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
ac50828240824b2db1f8350399c1f0228ba8a3b2
8ee451314e51ee5ea2093a57594e5a3f02ddd027
/server/src/main/java/org/gluu/fido2/service/processors/AttestationFormatProcessor.java
f86ae3537d90094f70ce29ae5bf6738a5fb3f33d
[ "MIT" ]
permissive
kepuss/fido2
72f1ff45dc8f245e1b8a1a27e442d18175036d21
7fa76a41fe7092425b450783c1cd65595efb329d
refs/heads/master
2022-11-22T16:26:13.204997
2020-07-24T11:42:26
2020-07-24T11:42:26
283,915,302
0
0
MIT
2020-07-31T01:41:14
2020-07-31T01:41:14
null
UTF-8
Java
false
false
1,148
java
/* * Copyright (c) 2018 Mastercard * Copyright (c) 2020 Gluu * * 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.gluu.fido2.service.processors; import org.gluu.fido2.ctap.AttestationFormat; import org.gluu.fido2.model.auth.AuthData; import org.gluu.fido2.model.auth.CredAndCounterData; import org.gluu.fido2.model.entry.Fido2RegistrationData; import com.fasterxml.jackson.databind.JsonNode; public interface AttestationFormatProcessor { AttestationFormat getAttestationFormat(); void process(JsonNode attStmt, AuthData authData, Fido2RegistrationData credential, byte[] clientDataHash, CredAndCounterData credIdAndCounters); }
[ "Yuriy.Movchan@gmail.com" ]
Yuriy.Movchan@gmail.com
1f16fb855edfcf8e4cc029a853c923f38e937e31
7dbc40ea98d17fdc2180563c2ffd8b25504714b3
/me/gopro336/goprohack/util/Hole.java
00773f35620c5c44366d77cdcbc02b256f792833
[]
no_license
WarriorCrystal/Zenith-0.7-src
c144e3548f7ae1542df2ce6a29de864aec25b87d
34fd7a76d0e1b59518c813da6f5dd339a0425d58
refs/heads/main
2023-01-21T04:42:58.249921
2020-11-29T21:37:31
2020-11-29T21:37:31
317,043,706
1
2
null
null
null
null
UTF-8
Java
false
false
1,162
java
// // Decompiled by Procyon v0.5.36 // package me.gopro336.goprohack.util; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.Vec3i; public class Hole extends Vec3i { private BlockPos blockPos; private boolean tall; private HoleTypes HoleType; public Hole(final int x, final int y, final int z, final BlockPos pos, final HoleTypes p_Type) { super(x, y, z); this.blockPos = pos; this.SetHoleType(p_Type); } public Hole(final int x, final int y, final int z, final BlockPos pos, final HoleTypes p_Type, final boolean tall) { super(x, y, z); this.blockPos = pos; this.tall = true; this.SetHoleType(p_Type); } public boolean isTall() { return this.tall; } public BlockPos GetBlockPos() { return this.blockPos; } public HoleTypes GetHoleType() { return this.HoleType; } public void SetHoleType(final HoleTypes holeType) { this.HoleType = holeType; } public enum HoleTypes { None, Normal, Obsidian, Bedrock; } }
[ "68621329+Warrior80@users.noreply.github.com" ]
68621329+Warrior80@users.noreply.github.com
cd7115164993d6ea67e2d8befbd499f2fed773d1
9254e7279570ac8ef687c416a79bb472146e9b35
/sofa-20190815/src/main/java/com/aliyun/sofa20190815/models/UpdateLinkeBahamutReleasedependencyRequest.java
b24dad0c447a86d106626e7ef89441cee4188c7b
[ "Apache-2.0" ]
permissive
lquterqtd/alibabacloud-java-sdk
3eaa17276dd28004dae6f87e763e13eb90c30032
3e5dca8c36398469e10cdaaa34c314ae0bb640b4
refs/heads/master
2023-08-12T13:56:26.379027
2021-10-19T07:22:15
2021-10-19T07:22:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,499
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sofa20190815.models; import com.aliyun.tea.*; public class UpdateLinkeBahamutReleasedependencyRequest extends TeaModel { @NameInMap("AppName") public String appName; @NameInMap("DependencyRepeatList") public java.util.List<String> dependencyRepeatList; @NameInMap("ReleaseExternalId") public String releaseExternalId; public static UpdateLinkeBahamutReleasedependencyRequest build(java.util.Map<String, ?> map) throws Exception { UpdateLinkeBahamutReleasedependencyRequest self = new UpdateLinkeBahamutReleasedependencyRequest(); return TeaModel.build(map, self); } public UpdateLinkeBahamutReleasedependencyRequest setAppName(String appName) { this.appName = appName; return this; } public String getAppName() { return this.appName; } public UpdateLinkeBahamutReleasedependencyRequest setDependencyRepeatList(java.util.List<String> dependencyRepeatList) { this.dependencyRepeatList = dependencyRepeatList; return this; } public java.util.List<String> getDependencyRepeatList() { return this.dependencyRepeatList; } public UpdateLinkeBahamutReleasedependencyRequest setReleaseExternalId(String releaseExternalId) { this.releaseExternalId = releaseExternalId; return this; } public String getReleaseExternalId() { return this.releaseExternalId; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
fed7b59407406c0e7fadfd0d2cda3e6da30873fa
cec1602d23034a8f6372c019e5770773f893a5f0
/sources/com/iwown/sport_module/pojo/data/TrainingTodayUIItem.java
e3a8cbd6a86a07b4f61d05f8cfac76ed37df0032
[]
no_license
sengeiou/zeroner_app
77fc7daa04c652a5cacaa0cb161edd338bfe2b52
e95ae1d7cfbab5ca1606ec9913416dadf7d29250
refs/heads/master
2022-03-31T06:55:26.896963
2020-01-24T09:20:37
2020-01-24T09:20:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
947
java
package com.iwown.sport_module.pojo.data; import com.chad.library.adapter.base.entity.MultiItemEntity; import java.util.ArrayList; import java.util.List; public class TrainingTodayUIItem implements MultiItemEntity { private List<TodayTraningItem> mTodayTraningItems = new ArrayList(); public List<TodayTraningItem> getTodayTraningItems() { return this.mTodayTraningItems; } public void setTodayTraningItems(List<TodayTraningItem> todayTraningItems) { this.mTodayTraningItems = todayTraningItems; } public void addItem(TodayTraningItem item) { this.mTodayTraningItems.add(item); } public void addAllItem(List<TodayTraningItem> items) { this.mTodayTraningItems.addAll(items); } public void removeItem(TodayTraningItem item) { this.mTodayTraningItems.remove(item); } public int getItemType() { return BaseTraningItem.UI_TYPE_TODAY_INFOS; } }
[ "johan@sellstrom.me" ]
johan@sellstrom.me
6ba0187d251533ece809e0b6a39f14f02a5f2832
421f0a75a6b62c5af62f89595be61f406328113b
/generated_tests/no_seeding/75_openhre-com.browsersoft.openhre.hl7.impl.config.HL7MessageConfigReaderImpl-1.0-2/com/browsersoft/openhre/hl7/impl/config/HL7MessageConfigReaderImpl_ESTest.java
fd393a7dc34fe046d8c3acc7e6c17ed38c686864
[]
no_license
tigerqiu712/evosuite-model-seeding-empirical-evaluation
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
11a920b8213d9855082d3946233731c843baf7bc
refs/heads/master
2020-12-23T21:04:12.152289
2019-10-30T08:02:29
2019-10-30T08:02:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
697
java
/* * This file was automatically generated by EvoSuite * Mon Oct 28 14:52:16 GMT 2019 */ package com.browsersoft.openhre.hl7.impl.config; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true) public class HL7MessageConfigReaderImpl_ESTest extends HL7MessageConfigReaderImpl_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pderakhshanfar@bsr01.win.tue.nl" ]
pderakhshanfar@bsr01.win.tue.nl
252e361e7c5a5d80885c334297fcd95958209a2c
e2f8e846eb75cf8a0cc4c5ee8d9578a655f29c05
/PluginsAndFeatures/com.microsoftopentechnologies.wacommon/src/com/microsoftopentechnologies/wacommon/utils/Messages.java
cc71ae0ba77e12d0912c0e5456827d4970931242
[ "MIT" ]
permissive
pk-karthik/azure-tools-for-java
816647840d1ee0e2ab652bd15c2c029f3cf4bbb1
dd8db921d55ddffc514e39de07d5957c3af2dbd0
refs/heads/master
2021-01-18T10:00:52.194039
2016-07-05T21:48:15
2016-07-05T21:48:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,482
java
/** * Copyright (c) Microsoft Corporation * * All rights reserved. * * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files * (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, * publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH * THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package com.microsoftopentechnologies.wacommon.utils; import org.eclipse.osgi.util.NLS; public final class Messages extends NLS { private static final String BUNDLE_NAME = "com.microsoftopentechnologies.wacommon.utils.messages"; /* Common messages - start */ public static String pluginFolder; public static String waCommonFolderID; public static String commonPluginID; public static String dataFileName; public static String dataFileEntry; public static String telAgrEvtName; public static String preferenceQueMsg; public static String preferenceQueTtl; public static String lnkOpenErrMsg; public static String hdinsgihtPrefTil; public static String hdinsightPerenceQueMsg; public static String encFileName; public static String encFileEntry; public static String version; public static String instID; public static String prefVal; public static String hdinshgtPrefVal; public static String preferenceMsg; public static String preferenceLinkMsg; /* Common messages - end */ /* Base64 messages - start */ public static String base64InvldStr; /* Base64 messages - end */ public static String nameNtErMsg; public static String nameGetErMsg; public static String pubUrlNtErMsg; public static String pubUrlGetErMsg; public static String portUrlGetErMsg; public static String blbUrlNtErMsg; public static String blbUrlGetErMsg; public static String mngUrlNtErMsg; public static String mngUrlGetErMsg; public static String parseErMsg; public static String inValArg; public static String err; public static String prefFileName; public static String bundleName; public static String nameSetErMsg; public static String saveErMsg; public static String prefSaveErMsg; public static String sdkLibBundleName; public static String SDKLocErrMsg; public static String sdkLibBaseJar; public static String cmdUtilErrMsg; public static String resCLExWkspRfrsh; public static String cmhLblStrgAcc; public static String cmhPropFor; public static String rolsDlgErr; public static String projDlgErrMsg; public static String aiTxt; public static String crtErrMsg; public static String azExpMsg; static { // initialize resource bundle NLS.initializeMessages(BUNDLE_NAME, Messages.class); } private Messages() { super(); } }
[ "v-prajpe@microsoft.com" ]
v-prajpe@microsoft.com
51312632b9d39eb5b831fdae4b4dc82e2b783ea4
c8e9e1cd89a7599a8a559c7d75d792602769c995
/StackAndQueuesExercise/src/RecursiveFibonacci.java
7ab385d69cd2bd1a7849b4e7e21f5ec5aabfd952
[]
no_license
CrazyMachine2/JavaAdvanced
caa27be7117246c715159143f43f11f8ab3b0912
2b6aedfb1d6eacef276e9f8ee571beaf6b080a90
refs/heads/master
2020-08-28T04:39:57.538703
2019-10-25T18:37:41
2019-10-25T18:37:41
217,593,774
0
0
null
null
null
null
UTF-8
Java
false
false
864
java
import java.util.Scanner; public class RecursiveFibonacci { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = Integer.parseInt(scan.nextLine()); long fibonacci = fibonacciWithBottomUpDP(n); System.out.println(fibonacci); } private static long recursiveFibonacci(int n) { if (n <= 1) { return 1; } return recursiveFibonacci(n - 1) + recursiveFibonacci(n - 2); } private static long fibonacciWithBottomUpDP(int n) { long[] fibonacciNumbers = new long[n + 1]; fibonacciNumbers[0] = 1; fibonacciNumbers[1] = 1; for (int i = 2; i <= n; i++) { fibonacciNumbers[i] = fibonacciNumbers[i - 1] + fibonacciNumbers[i - 2]; } return fibonacciNumbers[n]; } }
[ "andres03@abv.bg" ]
andres03@abv.bg
12697f34aa481121576e7e59e6e55403f9be8495
e5c37bb14e53f778784805d0b8b77bde5a78ae60
/rabbitTool-core/src/main/java/com/rabbit/core/bean/copier/provider/MapValueProvider.java
b3080a0009cd922f06f17fa1f3d52e45134a212d
[]
no_license
RabbitWFly/RabbitTool
b603a404ca953608c27d9641ca5689bfe6dfb0ca
06d56c78c65a6c96e475c340c846e26ba7abbb72
refs/heads/master
2021-06-26T22:30:57.887738
2019-11-18T07:13:28
2019-11-18T07:13:28
153,452,205
0
0
null
2020-10-13T17:32:24
2018-10-17T12:21:27
Java
UTF-8
Java
false
false
1,293
java
package com.rabbit.core.bean.copier.provider; import java.lang.reflect.Type; import java.util.Map; import com.rabbit.core.bean.copier.ValueProvider; import com.rabbit.core.convert.Convert; import com.rabbit.core.map.CaseInsensitiveMap; import com.rabbit.core.util.StrUtil; /** * Map值提供者 * * @author looly * */ public class MapValueProvider implements ValueProvider<String> { private Map<?, ?> map; /** * 构造 * * @param map Map * @param ignoreCase 是否忽略key的大小写 */ public MapValueProvider(Map<?, ?> map, boolean ignoreCase) { if(false == ignoreCase || map instanceof CaseInsensitiveMap) { //不忽略大小写或者提供的Map本身为CaseInsensitiveMap则无需转换 this.map = map; }else { //转换为大小写不敏感的Map this.map = new CaseInsensitiveMap<>(map); } } @Override public Object value(String key, Type valueType) { Object value = map.get(key); if(null == value) { //检查下划线模式 value = map.get(StrUtil.toUnderlineCase(key)); } return Convert.convert(valueType, value); } @Override public boolean containsKey(String key) { //检查下划线模式 if(map.containsKey(key)) { return true; }else { return map.containsKey(StrUtil.toUnderlineCase(key)); } } }
[ "chentao@daokoudai.com" ]
chentao@daokoudai.com
5c289a3902f9de9e098e3165a7cb995f353d9326
fd1c4a1746ab7d8d756cfb04470e3e8d0a854ac4
/WuYe/src/com/e1858/widget/ClearEditText.java
01ef546f78038c77cfd48a353571128490ecab81
[]
no_license
wangzhongli/shenghuo
8c4682bd850ef61992a439b6459c6759449e104a
a30a05d92d0e1da814570abce616a3e0e18594ba
refs/heads/master
2021-01-10T20:24:44.563043
2015-03-30T02:17:53
2015-03-30T02:17:53
33,098,647
0
0
null
null
null
null
UTF-8
Java
false
false
4,104
java
package com.e1858.widget; import com.e1858.wuye.R; import android.content.Context; import android.graphics.drawable.Drawable; import android.text.Editable; import android.text.TextWatcher; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import android.view.View.OnFocusChangeListener; import android.view.animation.Animation; import android.view.animation.CycleInterpolator; import android.view.animation.TranslateAnimation; import android.widget.EditText; public class ClearEditText extends EditText implements OnFocusChangeListener, TextWatcher { /** * 删除按钮的引用 */ private Drawable mClearDrawable; /** * 控件是否有焦点 */ private boolean hasFoucs; public ClearEditText(Context context) { this(context, null); } public ClearEditText(Context context, AttributeSet attrs) { this(context, attrs, android.R.attr.editTextStyle); } public ClearEditText(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); init(); } private void init() { //获取EditText的DrawableRight,假如没有设置我们就使用默认的图片 mClearDrawable = getCompoundDrawables()[2]; if (mClearDrawable == null) { // throw new NullPointerException("You can add drawableRight attribute in XML"); mClearDrawable = getResources().getDrawable(R.drawable.selector_bg_delete); } mClearDrawable.setBounds(0, 0, mClearDrawable.getIntrinsicWidth(), mClearDrawable.getIntrinsicHeight()); //默认设置隐藏图标 setClearIconVisible(false); //设置焦点改变的监听 setOnFocusChangeListener(this); //设置输入框里面内容发生改变的监听 addTextChangedListener(this); } @Override public boolean onTouchEvent(MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_UP) { if (getCompoundDrawables()[2] != null) { boolean touchable = event.getX() > (getWidth() - getTotalPaddingRight()) && (event.getX() < ((getWidth() - getPaddingRight()))); if (touchable) { this.setText(""); } } } return super.onTouchEvent(event); } /** * 当ClearEditText焦点发生变化的时候,判断里面字符串长度设置清除图标的显示与隐藏 */ public void onFocusChange(View v, boolean hasFocus) { this.hasFoucs = hasFocus; if (hasFocus) { setClearIconVisible(getText().length() > 0); } else { setClearIconVisible(false); } } /** * 设置清除图标的显示与隐藏,调用setCompoundDrawables为EditText绘制上去 * @param visible */ protected void setClearIconVisible(boolean visible) { Drawable right = visible ? mClearDrawable : null; setCompoundDrawables(getCompoundDrawables()[0], getCompoundDrawables()[1], right, getCompoundDrawables()[3]); } /** * 当输入框里面内容发生变化的时候回调的方法 */ @Override public void onTextChanged(CharSequence s, int start, int count, int after) { if(hasFoucs){ setClearIconVisible(s.length() > 0); } } public void beforeTextChanged(CharSequence s, int start, int count, int after) { } public void afterTextChanged(Editable s) { } /** * 设置晃动动画 */ public void setShakeAnimation(){ this.setAnimation(shakeAnimation(5)); } /** * 晃动动画 * @param counts 1秒钟晃动多少下 * @return */ public static Animation shakeAnimation(int counts){ Animation translateAnimation = new TranslateAnimation(0, 10, 0, 0); translateAnimation.setInterpolator(new CycleInterpolator(counts)); translateAnimation.setDuration(1000); return translateAnimation; } }
[ "wangzhongli@gmail.com" ]
wangzhongli@gmail.com
42708c02b7df79b300fc7328a7de67b84b35ce0d
5d7b7c9c49c3808bb638b986a00a87dabb3f4361
/boot/security-redis-jpa-restdoc-swagger-jwt-email-angular-thymeleaf-multi/cms/src/main/java/com/ceragem/iot/cms/config/security/CsrfHeaderFilter.java
dac539c68a67a8a3e618a315c96958dd73186881
[]
no_license
kopro-ov/lib-spring
f4e67f8d9e81f9ec4cfbf190e30479013a2bcc1c
89e7d4b9a6318138d24f81e4e0fc2646f2d6a3d5
refs/heads/master
2023-04-04T07:56:14.312704
2021-02-15T01:59:59
2021-02-15T01:59:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,189
java
package com.ceragem.iot.cms.config.security; import org.springframework.security.web.csrf.CsrfToken; import org.springframework.web.filter.OncePerRequestFilter; import org.springframework.web.util.WebUtils; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; public class CsrfHeaderFilter extends OncePerRequestFilter { public static final String CSRF_TOKEN_COOKE_NAME = "XSRF-TOKEN"; @Override protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { CsrfToken csrf = (CsrfToken) request.getAttribute(CsrfToken.class.getName()); if (csrf != null) { Cookie cookie = WebUtils.getCookie(request, CSRF_TOKEN_COOKE_NAME); String token = csrf.getToken(); if (cookie==null || token!=null && !token.equals(cookie.getValue())) { cookie = new Cookie(CSRF_TOKEN_COOKE_NAME, token); cookie.setPath("/"); response.addCookie(cookie); } } filterChain.doFilter(request, response); } }
[ "visualkhh@gmail.com" ]
visualkhh@gmail.com
b3dc12572e53e1d4e86a8dc262678e8b2d87b388
dfe9cef788995ff6db7ff6c9f5f9e42336c1fd25
/src/main/java/com/mycompany/myapp/ApplicationWebXml.java
5a4319c2003cc0610a2365190b836bbb60d9c0c4
[]
no_license
Penda2M/Gestion-Patient-JHipster-Angular
8537202b4ef95b14e8ed699149874977ace67b84
e32e1e5570f22752f4ced5cd1b2c9aaf84d6d37e
refs/heads/main
2023-02-28T11:21:00.535426
2021-02-07T14:37:40
2021-02-07T14:37:40
336,808,714
0
0
null
null
null
null
UTF-8
Java
false
false
833
java
package com.mycompany.myapp; import io.github.jhipster.config.DefaultProfileUtil; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; /** * This is a helper Java class that provides an alternative to creating a {@code web.xml}. * This will be invoked only when the application is deployed to a Servlet container like Tomcat, JBoss etc. */ public class ApplicationWebXml extends SpringBootServletInitializer { @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { // set a default to use when no profile is configured. DefaultProfileUtil.addDefaultProfile(application.application()); return application.sources(JhipsterProjetGestionPatientApp.class); } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
63c36a15a5d93664c5f7619be9dd446723d786ff
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/25/25_e5c079cb5df9ef0fa9b93f4df80f9002c351db61/SetBinding/25_e5c079cb5df9ef0fa9b93f4df80f9002c351db61_SetBinding_s.java
4c7c26f966f0a9b386913b46b14beb87ac25ba5c
[]
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,246
java
/* * Copyright (C) 2012 Google, Inc. * Copyright (C) 2012 Square, 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 dagger.internal; import java.util.Collections; import java.util.LinkedHashSet; import java.util.Map; import java.util.Set; /** * A {@code Binding<T>} which contains contributors (other bindings marked with * {@code @Provides} {@code @OneOf}), to which it delegates provision * requests on an as-needed basis. */ public final class SetBinding<T> extends Binding<Set<T>> { public static <T> void add(Map<String, Binding<?>> bindings, String elementKey, Binding<?> binding) { SetBinding<T> elementBinding = (SetBinding<T>) bindings.get(elementKey); if (elementBinding == null) { elementBinding = new SetBinding<T>(elementKey); bindings.put(elementBinding.provideKey, elementBinding); } elementBinding.contributors.add(Linker.scope(binding)); } private final Set<Binding<?>> contributors = new LinkedHashSet<Binding<?>>(); public SetBinding(String key) { super(key, null, false, null); } @Override public void attach(Linker linker) { for (Binding<?> contributor : contributors) { contributor.attach(linker); } } @SuppressWarnings("unchecked") // Bindings<T> are the only thing added to contributors. @Override public Set<T> get() { Set<T> result = new LinkedHashSet<T>(contributors.size()); for (Binding<?> contributor : contributors) { result.add((T) contributor.get()); // Let runtime exceptions through. } return Collections.unmodifiableSet(result); } @Override public String toString() { return "SetBinding" + contributors; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
ba87ab531ab7bfa155de17fe1370b1bb47186728
064875f6746ff611f142c44c2e19deadbcb94b36
/platform/src/main/java/net/firejack/platform/installation/processor/UpgradeMetadataProcessor.java
010b77fa7b2089ee0238352133e3ea8148eded7b
[ "Apache-2.0" ]
permissive
alim-firejack/Firejack-Platform
d7faeb35091c042923e698d598d0118f3f4b0c11
bc1f58d425d91425cfcd6ab4fb6b1eed3fe0b815
refs/heads/master
2021-01-15T09:23:05.489281
2014-02-27T17:39:25
2014-02-27T17:39:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,063
java
/* * Firejack Platform - Copyright (c) 2011 Firejack Technologies * * This source code is the product of the Firejack Technologies * Core Technologies Team (Benjamin A. Miller, Oleg Marshalenko, and Timur * Asanov) and licensed only under valid, executed license agreements * between Firejack Technologies and its customers. Modification and / or * re-distribution of this source code is allowed only within the terms * of an executed license agreement. * * Any modification of this code voids any and all warranties and indemnifications * for the component in question and may interfere with upgrade path. Firejack Technologies * encourages you to extend the core framework and / or request modifications. You may * also submit and assign contributions to Firejack Technologies for consideration * as improvements or inclusions to the platform to restore modification * warranties and indemnifications upon official re-distributed in patch or release form. */ package net.firejack.platform.installation.processor; import net.firejack.platform.api.OPFEngine; import net.firejack.platform.api.registry.model.PackageFileType; import net.firejack.platform.core.config.translate.StatusProviderTranslationResult; import net.firejack.platform.core.exception.OpenFlameRuntimeException; import net.firejack.platform.core.model.registry.domain.PackageModel; import net.firejack.platform.core.store.registry.IPackageStore; import net.firejack.platform.core.utils.FileUtils; import net.firejack.platform.core.utils.OpenFlame; import net.firejack.platform.installation.processor.event.OpenflameUpgradeEvent; import net.firejack.platform.model.helper.FileHelper; import net.firejack.platform.model.service.PackageInstallationService; import net.firejack.platform.service.registry.helper.PackageVersionHelper; import org.apache.commons.io.IOUtils; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.ApplicationListener; import org.springframework.stereotype.Component; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; @SuppressWarnings("unused") @Component public class UpgradeMetadataProcessor implements ApplicationListener<OpenflameUpgradeEvent> { private static final Logger logger = Logger.getLogger(UpgradeMetadataProcessor.class); @Autowired @Qualifier("packageInstallationService") private PackageInstallationService packageInstallationService; @Autowired private FileHelper helper; @Autowired private IPackageStore packageStore; @Autowired private PackageVersionHelper packageVersionHelper; @Override public void onApplicationEvent(OpenflameUpgradeEvent event) { try { upgradeMetadata(); } catch (OpenFlameRuntimeException e) { logger.error(e.getMessage()); } } /***/ public void upgradeMetadata() { PackageModel packageRN = packageStore.findByLookup(OpenFlame.PACKAGE); if (packageRN != null) { if (packageRN.getDatabaseVersion() > packageRN.getVersion()) { File packageXmlInstallationFile = FileUtils.getResource("dbupdate", PackageFileType.PACKAGE_XML.getOfrFileName()); File resourceZipInstallationFile = FileUtils.getResource("dbupdate", PackageFileType.RESOURCE_ZIP.getOfrFileName()); try { FileInputStream packageXml = new FileInputStream(packageXmlInstallationFile); FileInputStream resourceZip = new FileInputStream(resourceZipInstallationFile); StatusProviderTranslationResult result = packageInstallationService.activatePackage(packageXml, resourceZip); IOUtils.closeQuietly(packageXml); IOUtils.closeQuietly(resourceZip); if (result.getResult()) { Integer oldVersion = packageRN.getVersion(); packageRN = packageStore.updatePackageVersion(packageRN.getId(), result.getVersionNumber()); try { packageVersionHelper.archiveVersion(packageRN, oldVersion, result.getOldPackageXml()); packageXml = new FileInputStream(packageXmlInstallationFile); String packageXmlName = packageRN.getName() + PackageFileType.PACKAGE_XML.getDotExtension(); OPFEngine.FileStoreService.upload(OpenFlame.FILESTORE_BASE, packageXmlName,packageXml, helper.getVersion(), String.valueOf(packageRN.getId()), packageRN.getVersion().toString()); IOUtils.closeQuietly(packageXml); resourceZip = new FileInputStream(packageXmlInstallationFile); String resourceZipName = packageRN.getName() + PackageFileType.RESOURCE_ZIP.getDotExtension(); OPFEngine.FileStoreService.upload(OpenFlame.FILESTORE_BASE,resourceZipName,resourceZip, helper.getVersion(), String.valueOf(packageRN.getId()), packageRN.getVersion().toString()); IOUtils.closeQuietly(resourceZip); } catch (IOException e) { logger.error(e.getMessage(), e); } } } catch (FileNotFoundException e) { logger.error(e); } } } else { logger.error("Could not find OpenFlame package"); } } }
[ "CF8DCmPgvS" ]
CF8DCmPgvS
77d4823c4dc58a6361ec770b38d26400e9318a97
6453fbede0c02603eb466cc4b3348909ad202256
/resource/old/oldtest/java/net/ion/radon/client/async/RedirectConnectionUsageTest.java
0061fab57e14fbbd5bf4dadb161e41d190cdcf32
[]
no_license
marcus-EIP/aradonClient
cd02eee8f3d647097a799114dcdef53eca91ae85
28d331270259c9a0e0a37732a328294835a986dc
refs/heads/master
2022-10-09T23:45:48.673804
2013-02-28T06:48:52
2013-02-28T06:48:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,481
java
/* * Copyright 2010 Ning, Inc. * * Ning licenses this file to you under the Apache License, version 2.0 * (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ package net.ion.radon.client.async; import net.ion.radon.client.AsyncHttpClient; import net.ion.radon.client.AsyncHttpClientConfig; import net.ion.radon.client.AsyncHttpProviderConfig; import net.ion.radon.client.ListenableFuture; import net.ion.radon.client.RequestBuilder; import net.ion.radon.client.Response; import net.ion.radon.client.providers.netty.NettyAsyncHttpProviderConfig; import org.eclipse.jetty.server.Connector; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.nio.SelectChannelConnector; import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet.ServletHolder; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.OutputStream; import java.util.Date; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertNotNull; import static org.testng.FileAssert.fail; /** * Test for multithreaded url fetcher calls that use two separate sets of ssl certificates. This then tests that the certificate settings do not clash (override each other), resulting in the peer not authenticated exception * * @author dominict */ public abstract class RedirectConnectionUsageTest extends AbstractBasicTest { private String BASE_URL; private String servletEndpointRedirectUrl; @BeforeClass public void setUp() throws Exception { server = new Server(); port1 = findFreePort(); Connector listener = new SelectChannelConnector(); listener.setHost("localhost"); listener.setPort(port1); server.addConnector(listener); ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS); context.setContextPath("/"); server.setHandler(context); context.addServlet(new ServletHolder(new MockRedirectHttpServlet()), "/redirect/*"); context.addServlet(new ServletHolder(new MockFullResponseHttpServlet()), "/*"); server.start(); BASE_URL = "http://localhost" + ":" + port1; servletEndpointRedirectUrl = BASE_URL + "/redirect"; } @AfterClass public void tearDown() { try { if (server != null) { server.stop(); } } catch (Exception e) { System.err.print("Error stopping servlet tester"); e.printStackTrace(); } } /** * Tests that after a redirect the final url in the response reflect the redirect */ @Test public void testGetRedirectFinalUrl() { AsyncHttpClient c = null; try { AsyncHttpClientConfig.Builder bc = new AsyncHttpClientConfig.Builder(); bc.setAllowPoolingConnection(true); bc.setMaximumConnectionsPerHost(1); bc.setMaximumConnectionsTotal(1); bc.setConnectionTimeoutInMs(1000); bc.setRequestTimeoutInMs(1000); bc.setFollowRedirects(true); c = getAsyncHttpClient(bc.build()); RequestBuilder builder = new RequestBuilder("GET"); builder.setUrl(servletEndpointRedirectUrl); net.ion.radon.client.Request r = builder.build(); try { ListenableFuture<Response> response = c.executeRequest(r); Response res = null; res = response.get(); assertNotNull(res.getResponseBody()); assertEquals(BASE_URL + "/overthere", BASE_URL + "/overthere", res.getUri().toString()); } catch (Exception e) { System.err.print("============"); e.printStackTrace(); System.err.print("============"); System.err.flush(); fail("Should not get here, The request threw an exception"); } } finally { // can hang here if (c != null) c.close(); } } protected abstract AsyncHttpProviderConfig getProviderConfig(); @SuppressWarnings("serial") class MockRedirectHttpServlet extends HttpServlet { public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.sendRedirect("/overthere"); } } @SuppressWarnings("serial") class MockFullResponseHttpServlet extends HttpServlet { private static final String contentType = "text/xml"; private static final String xml = "<?xml version=\"1.0\"?><hello date=\"%s\"></hello>"; public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String xmlToReturn = String.format(xml, new Object[] { new Date().toString() }); res.setStatus(200, "Complete, XML Being Returned"); res.addHeader("Content-Type", contentType); res.addHeader("X-Method", req.getMethod()); res.addHeader("MultiValue", "1"); res.addHeader("MultiValue", "2"); res.addHeader("MultiValue", "3"); OutputStream os = res.getOutputStream(); byte[] retVal = xmlToReturn.getBytes(); res.setContentLength(retVal.length); os.write(retVal); os.close(); } } }
[ "bleujin@gmail.com" ]
bleujin@gmail.com
643b193013257bb076f1330f4be05856798c8291
a33aac97878b2cb15677be26e308cbc46e2862d2
/data/libgdx/GdxSetup_readResourceAsString.java
24def82b45a9d2f0eb74140e1c510a32cdda6e18
[]
no_license
GabeOchieng/ggnn.tensorflow
f5d7d0bca52258336fc12c9de6ae38223f28f786
7c62c0e8427bea6c8bec2cebf157b6f1ea70a213
refs/heads/master
2022-05-30T11:17:42.278048
2020-05-02T11:33:31
2020-05-02T11:33:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
209
java
private String readResourceAsString(File file) { try { return new String(readResource(file), "UTF-8"); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } }
[ "bdqnghi@gmail.com" ]
bdqnghi@gmail.com
abde2c5d1e4d8464d011af0075b1a3dfc5ad15d3
082e26b011e30dc62a62fae95f375e4f87d9e99c
/docs/weixin_7.0.4_source/反编译源码/未反混淆/src/main/java/com/tencent/mm/protocal/protobuf/bjp.java
0a0dca51cb56510b18930f14433a4e86d95c2bd1
[]
no_license
xsren/AndroidReverseNotes
9631a5aabc031006e795a112b7ac756a8edd4385
9202c276fe9f04a978e4e08b08e42645d97ca94b
refs/heads/master
2021-04-07T22:50:51.072197
2019-07-16T02:24:43
2019-07-16T02:24:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,903
java
package com.tencent.mm.protocal.protobuf; import com.tencent.matrix.trace.core.AppMethodBeat; import e.a.a.b; import e.a.a.c.a; import java.util.LinkedList; public final class bjp extends btd { public final int op(int i, Object... objArr) { AppMethodBeat.i(56904); b bVar; int ix; if (i == 0) { a aVar = (a) objArr[0]; if (this.BaseResponse == null) { bVar = new b("Not all required fields were included: BaseResponse"); AppMethodBeat.o(56904); throw bVar; } if (this.BaseResponse != null) { aVar.iy(1, this.BaseResponse.computeSize()); this.BaseResponse.writeFields(aVar); } AppMethodBeat.o(56904); return 0; } else if (i == 1) { if (this.BaseResponse != null) { ix = e.a.a.a.ix(1, this.BaseResponse.computeSize()) + 0; } else { ix = 0; } AppMethodBeat.o(56904); return ix; } else if (i == 2) { e.a.a.a.a aVar2 = new e.a.a.a.a((byte[]) objArr[0], unknownTagHandler); for (ix = com.tencent.mm.bt.a.getNextFieldNumber(aVar2); ix > 0; ix = com.tencent.mm.bt.a.getNextFieldNumber(aVar2)) { if (!super.populateBuilderWithField(aVar2, this, ix)) { aVar2.ems(); } } if (this.BaseResponse == null) { bVar = new b("Not all required fields were included: BaseResponse"); AppMethodBeat.o(56904); throw bVar; } AppMethodBeat.o(56904); return 0; } else if (i == 3) { e.a.a.a.a aVar3 = (e.a.a.a.a) objArr[0]; bjp bjp = (bjp) objArr[1]; int intValue = ((Integer) objArr[2]).intValue(); switch (intValue) { case 1: LinkedList Vh = aVar3.Vh(intValue); int size = Vh.size(); for (intValue = 0; intValue < size; intValue++) { byte[] bArr = (byte[]) Vh.get(intValue); BaseResponse baseResponse = new BaseResponse(); e.a.a.a.a aVar4 = new e.a.a.a.a(bArr, unknownTagHandler); for (boolean z = true; z; z = baseResponse.populateBuilderWithField(aVar4, baseResponse, com.tencent.mm.bt.a.getNextFieldNumber(aVar4))) { } bjp.BaseResponse = baseResponse; } AppMethodBeat.o(56904); return 0; default: AppMethodBeat.o(56904); return -1; } } else { AppMethodBeat.o(56904); return -1; } } }
[ "alwangsisi@163.com" ]
alwangsisi@163.com
db4a09000ff126b2427c0f576fcb663d76f30848
3b91ed788572b6d5ac4db1bee814a74560603578
/com/tencent/mm/plugin/sns/model/af$36.java
f5f9f3d24e0ffdd5838c0c172cb6cb744925183c
[]
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
228
java
package com.tencent.mm.plugin.sns.model; import com.tencent.mm.bt.h.d; import com.tencent.mm.plugin.sns.storage.o; class af$36 implements d { af$36() { } public final String[] xb() { return o.diD; } }
[ "707194831@qq.com" ]
707194831@qq.com
a59b0f13685da5d063ea8dea634b093d937ca5dd
473b311ca79ff79ade7004af72e57258cdf5790c
/app/src/main/java/com/lsjr/zizisteward/utils/SsX509TrustManager.java
d06e96fbdcc59518830f616f288c2442101c141c
[]
no_license
gyymz1993/ZiZisteward1.0
687296995bb4ba0f4102a50e523841932261570e
73b393ddd877bb5a56c97694af4db2c1f2e0c894
refs/heads/master
2021-01-01T19:05:09.633865
2017-10-13T01:48:35
2017-10-13T01:48:54
98,502,871
2
0
null
null
null
null
UTF-8
Java
false
false
2,708
java
package com.lsjr.zizisteward.utils; import android.annotation.SuppressLint; import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; import java.security.cert.X509Certificate; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.HttpsURLConnection; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLSession; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; /** * Volley允许HTTPS * * Created by yuyh on 15/12/28. */ public class SsX509TrustManager implements X509TrustManager { private static TrustManager[] trustManagers; private static final X509Certificate[] _AcceptedIssuers = new X509Certificate[]{}; @SuppressLint("TrustAllX509TrustManager") @Override public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws java.security.cert.CertificateException { //To change body of implemented methods use File | Settings | File Templates. } @SuppressLint("TrustAllX509TrustManager") @Override public void checkServerTrusted(X509Certificate[] x509Certificates, String s) throws java.security.cert.CertificateException { //To change body of implemented methods use File | Settings | File Templates. } public boolean isClientTrusted(X509Certificate[] chain) { return true; } public boolean isServerTrusted(X509Certificate[] chain) { return true; } @Override public X509Certificate[] getAcceptedIssuers() { return _AcceptedIssuers; } /** * 允许所有的SSL请求,添加在new StringRequest()之前 */ public static void allowAllSSL() { HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() { @SuppressLint("BadHostnameVerifier") @Override public boolean verify(String arg0, SSLSession arg1) { // TODO Auto-generated method stub return true; } }); SSLContext context = null; if (trustManagers == null) { trustManagers = new TrustManager[]{new SsX509TrustManager()}; } try { context = SSLContext.getInstance("TLS"); context.init(null, trustManagers, new SecureRandom()); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } catch (KeyManagementException e) { e.printStackTrace(); } assert context != null; HttpsURLConnection.setDefaultSSLSocketFactory(context.getSocketFactory()); } }
[ "gyymz1993@126.com" ]
gyymz1993@126.com
1bb631d4f8edd091a4141bff778b71954c742c93
8b4acacda36c6a252c557988edc110377148c50b
/aliyun-java-sdk-sofa/src/main/java/com/aliyuncs/sofa/model/v20190815/QueryTSJobItemsRequest.java
a03c9e78d8f30d2841568e770a5bd3999157d02f
[ "Apache-2.0" ]
permissive
huangbncly/aliyun-openapi-java-sdk
f8cb1bb7b124976a7ef18afd47bbd5fcb6d8ea19
d22f77c6d5b08c720b9ce56afe22ea6e2744b03c
refs/heads/master
2021-07-21T12:55:22.159198
2020-07-24T08:29:31
2020-07-24T08:29:31
199,572,334
0
0
NOASSERTION
2020-05-15T04:59:44
2019-07-30T04:07:24
Java
UTF-8
Java
false
false
1,845
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.aliyuncs.sofa.model.v20190815; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; import com.aliyuncs.sofa.Endpoint; /** * @author auto create * @version */ public class QueryTSJobItemsRequest extends RpcAcsRequest<QueryTSJobItemsResponse> { private Long jobId; private String instanceId; public QueryTSJobItemsRequest() { super("SOFA", "2019-08-15", "QueryTSJobItems", "ApplySidecarCert"); setMethod(MethodType.POST); try { com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); } catch (Exception e) {} } public Long getJobId() { return this.jobId; } public void setJobId(Long jobId) { this.jobId = jobId; if(jobId != null){ putBodyParameter("JobId", jobId.toString()); } } public String getInstanceId() { return this.instanceId; } public void setInstanceId(String instanceId) { this.instanceId = instanceId; if(instanceId != null){ putBodyParameter("InstanceId", instanceId); } } @Override public Class<QueryTSJobItemsResponse> getResponseClass() { return QueryTSJobItemsResponse.class; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
75341783e25db15bafb8b7d923c00c67e58d3075
37d8b470e71ea6edff6ed108ffd2b796322b7943
/zkdemo/test/test/Test2.java
988fe4acc1c957645a7f6d69b996fc2f55c5064b
[]
no_license
haifeiforwork/myfcms
ef9575be5fc7f476a048d819e7c0c0f2210be8ca
fefce24467df59d878ec5fef2750b91a29e74781
refs/heads/master
2020-05-15T11:37:50.734759
2014-06-28T08:31:55
2014-06-28T08:31:55
null
0
0
null
null
null
null
GB18030
Java
false
false
383
java
/** * <p>项目名称:</p> * <p>版权所有 (c) </p> * <p>版本:1.0</p> * <p>日期:Apr 9, 2010</p> * <p>更新:</p> */ package test; import java.util.ArrayList; /** * @author xiacc * * 描述: */ public class Test2 { /** * 描述: * @param args */ public static void main(String[] args) { new ArrayList(null); } }
[ "yourfei@live.cn@c1c2bf6e-ae9d-b823-7fc2-ff1dc594729e" ]
yourfei@live.cn@c1c2bf6e-ae9d-b823-7fc2-ff1dc594729e
146175e73b8245a5e9b3fed72471951c8866f557
37903e9a9e446b089aa1ae3acd440d03adc9c373
/Kinetise/src/com/kinetise/data/application/alterapimanager/LoginRequestRunnable.java
7ff1015962ae5a6ed9ab5f07fe1f7df57d906519
[]
no_license
mobilechampion/Cieo-Home
43b62cf1c499fd1446641b264629aac947d55740
d56c302e910c213bcb654092cda9de622f89a9bf
refs/heads/master
2020-06-25T04:59:41.784713
2017-06-10T07:33:44
2017-06-10T07:33:44
94,236,177
1
1
null
null
null
null
UTF-8
Java
false
false
852
java
package com.kinetise.data.application.alterapimanager; import android.text.TextUtils; import com.kinetise.data.descriptors.types.AGHttpMethodType; import com.kinetise.helpers.http.HttpRequestManager; import java.util.Map; public class LoginRequestRunnable extends AbstractRequestRunnable { public LoginRequestRunnable(AGHttpMethodType method, String url, String postBody, Map<String, String> headers, String responseTransform, IRequestCallback callback) { super(method, url, postBody, headers, responseTransform, HttpRequestManager.RequestType.LOGIN, callback); } @Override protected boolean hasRequiredNodes(AAResponse alterApiResponse) { if (alterApiResponse == null || TextUtils.isEmpty(alterApiResponse.sessionId)) return false; else return true; } }
[ "henryblanc0403@yahoo.com" ]
henryblanc0403@yahoo.com
934b9d0dfd9ea58ffb24737cf5ee5bfd05cbfe44
0ca9a0873d99f0d69b78ed20292180f513a20d22
/saved/sources/com/google/android/gms/internal/zzblh.java
a73815dacbeac5b22b224464157f8d047e9ef144
[]
no_license
Eliminater74/com.google.android.tvlauncher
44361fbbba097777b99d7eddd6e03d4bbe5f4d60
e8284f9970d77a05042a57e9c2173856af7c4246
refs/heads/master
2021-01-14T23:34:04.338366
2020-02-24T16:39:53
2020-02-24T16:39:53
242,788,539
1
0
null
null
null
null
UTF-8
Java
false
false
457
java
package com.google.android.gms.internal; import android.os.RemoteException; import com.google.android.gms.common.api.Status; import com.google.android.gms.common.api.internal.zzo; /* compiled from: CommonApiImpl */ final class zzblh extends zzblb { private final zzo<Status> zza; public zzblh(zzo<Status> zzo) { this.zza = zzo; } public final void zza(int i) throws RemoteException { this.zza.zza(new Status(i)); } }
[ "eliminater74@gmail.com" ]
eliminater74@gmail.com
8bd25558f17d91243e12517d945a010ba584a4e5
1c47c4f834ec5f5a89d2262768486da8054d7544
/src/generators/java/mekanism/generators/common/network/PacketGeneratorsGuiInteract.java
4c459b67cc42e98e957b303765f2610ce47afbfc
[ "MIT" ]
permissive
Sinmis077/Meka-Guide
d4443cd1ae48929aa6ff5f811e2d00d7caf3ba17
c42191d9d5a4e8add654a6cf8720abc8af2896c3
refs/heads/main
2023-08-07T19:45:42.813342
2021-09-26T21:55:10
2021-09-26T21:55:10
383,550,665
1
1
MIT
2021-09-26T21:55:11
2021-07-06T17:34:34
Java
UTF-8
Java
false
false
4,660
java
package mekanism.generators.common.network; import java.util.function.Supplier; import mekanism.api.functions.TriConsumer; import mekanism.common.tile.base.TileEntityMekanism; import mekanism.common.util.WorldUtils; import mekanism.generators.common.tile.fission.TileEntityFissionReactorCasing; import mekanism.generators.common.tile.fission.TileEntityFissionReactorLogicAdapter; import mekanism.generators.common.tile.fission.TileEntityFissionReactorLogicAdapter.FissionReactorLogic; import mekanism.generators.common.tile.fusion.TileEntityFusionReactorBlock; import mekanism.generators.common.tile.fusion.TileEntityFusionReactorController; import mekanism.generators.common.tile.fusion.TileEntityFusionReactorLogicAdapter; import mekanism.generators.common.tile.fusion.TileEntityFusionReactorLogicAdapter.FusionReactorLogic; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.network.PacketBuffer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.math.BlockPos; import net.minecraftforge.fml.network.NetworkEvent.Context; /** * Used for informing the server that an action happened in a GUI */ public class PacketGeneratorsGuiInteract { private final GeneratorsGuiInteraction interaction; private final BlockPos tilePosition; private final double extra; public PacketGeneratorsGuiInteract(GeneratorsGuiInteraction interaction, TileEntity tile) { this(interaction, tile.getPos()); } public PacketGeneratorsGuiInteract(GeneratorsGuiInteraction interaction, TileEntity tile, double extra) { this(interaction, tile.getPos(), extra); } public PacketGeneratorsGuiInteract(GeneratorsGuiInteraction interaction, BlockPos tilePosition) { this(interaction, tilePosition, 0); } public PacketGeneratorsGuiInteract(GeneratorsGuiInteraction interaction, BlockPos tilePosition, double extra) { this.interaction = interaction; this.tilePosition = tilePosition; this.extra = extra; } public static void handle(PacketGeneratorsGuiInteract message, Supplier<Context> context) { Context ctx = context.get(); ctx.enqueueWork(() -> { PlayerEntity player = ctx.getSender(); if (player != null) { TileEntityMekanism tile = WorldUtils.getTileEntity(TileEntityMekanism.class, player.world, message.tilePosition); if (tile != null) { message.interaction.consume(tile, player, message.extra); } } }); ctx.setPacketHandled(true); } public static void encode(PacketGeneratorsGuiInteract pkt, PacketBuffer buf) { buf.writeEnumValue(pkt.interaction); buf.writeBlockPos(pkt.tilePosition); buf.writeDouble(pkt.extra); } public static PacketGeneratorsGuiInteract decode(PacketBuffer buf) { return new PacketGeneratorsGuiInteract(buf.readEnumValue(GeneratorsGuiInteraction.class), buf.readBlockPos(), buf.readDouble()); } public enum GeneratorsGuiInteraction { INJECTION_RATE((tile, player, extra) -> { if (tile instanceof TileEntityFusionReactorBlock) { ((TileEntityFusionReactorController) tile).setInjectionRateFromPacket((int) Math.round(extra)); } else if (tile instanceof TileEntityFissionReactorCasing) { ((TileEntityFissionReactorCasing) tile).setRateLimitFromPacket(extra); } }), LOGIC_TYPE((tile, player, extra) -> { if (tile instanceof TileEntityFissionReactorLogicAdapter) { ((TileEntityFissionReactorLogicAdapter) tile).setLogicTypeFromPacket(FissionReactorLogic.byIndexStatic((int) Math.round(extra))); } else if (tile instanceof TileEntityFusionReactorLogicAdapter) { ((TileEntityFusionReactorLogicAdapter) tile).setLogicTypeFromPacket(FusionReactorLogic.byIndexStatic((int) Math.round(extra))); } }), FISSION_ACTIVE((tile, player, extra) -> { if (tile instanceof TileEntityFissionReactorCasing) { ((TileEntityFissionReactorCasing) tile).setReactorActive(Math.round(extra) == 1); } }); private final TriConsumer<TileEntityMekanism, PlayerEntity, Double> consumerForTile; GeneratorsGuiInteraction(TriConsumer<TileEntityMekanism, PlayerEntity, Double> consumerForTile) { this.consumerForTile = consumerForTile; } public void consume(TileEntityMekanism tile, PlayerEntity player, double extra) { consumerForTile.accept(tile, player, extra); } } }
[ "llelga8@gmail.com" ]
llelga8@gmail.com
01498fcf9f66b4fe12a45d4f8c5ee7b05e35e2de
6611230f3756dc0fef28d1b2875f60356a377cc6
/src/br/com/orlandoburli/core/dao/vendas/pedido/PedidoContaReceberDAO.java
4bf5e01d97d373f1c0fea73d200b0e94f20434a1
[]
no_license
orlandoburli/personalerp-legacy
37881e9a53226d0ad969034703ccc8370f05f302
2a236f3b75bda32a043906df854589a178ff0281
refs/heads/master
2023-06-14T09:07:33.806764
2013-11-05T23:47:55
2013-11-05T23:47:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
272
java
package br.com.orlandoburli.core.dao.vendas.pedido; import br.com.orlandoburli.core.dao.BaseCadastroDAO; import br.com.orlandoburli.core.vo.vendas.pedido.PedidoContaReceberVO; public class PedidoContaReceberDAO extends BaseCadastroDAO<PedidoContaReceberVO> { }
[ "orlando.developermaster@gmail.com" ]
orlando.developermaster@gmail.com
385ce1ec5c8e449594cdc3e3d40b1204d5d7a85c
26a41203694014098e96a7bdb38ef641439b68f2
/microservices/appliance-maintenance-management/android-application/app/src/main/java/com/appl_maint_mngt/pending_maintenance_scheduling/models/interfaces/IPendingMaintenanceScheduleReadable.java
53f478190558068d493ada7558545177bcae652f
[ "Apache-2.0" ]
permissive
Kyledmw/student-projects
42035d41cb4db04ef47e783d32424903436f5c8a
766ef9d4b879c8c2d2086c2abe0fa224e2e051c6
refs/heads/master
2021-09-06T22:42:01.507696
2018-02-12T18:51:41
2018-02-12T18:51:41
100,615,064
0
0
null
null
null
null
UTF-8
Java
false
false
577
java
package com.appl_maint_mngt.pending_maintenance_scheduling.models.interfaces; import com.appl_maint_mngt.pending_maintenance_scheduling.models.constants.ScheduleStatus; import com.appl_maint_mngt.pending_maintenance_scheduling.models.constants.SchedulerType; import java.sql.Timestamp; /** * Created by Kyle on 23/03/2017. */ public interface IPendingMaintenanceScheduleReadable { Long getId(); Long getRepairReportId(); Timestamp getStartTime(); Timestamp getEndTime(); SchedulerType getSchedulerType(); ScheduleStatus getScheduleStatus(); }
[ "kyle.d.m.williamson@gmail.com" ]
kyle.d.m.williamson@gmail.com
ae2c1efcd808fc7a48a5a425bbf03566f0f62b88
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Lang/40/org/apache/commons/lang/time/FastDateFormat_TwoDigitMonthField_1410.java
cbc2bafbab11a1346d98fac608a43a7209566f45
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
2,685
java
org apach common lang time fast date format fastdateformat fast thread safe version link java text simpl date format simpledateformat direct replac code simpl date format simpledateformat code format situat multi thread server environ code simpl date format simpledateformat code thread safe jdk version sun close bug rfe format support pattern compat simpl date format simpledateformat time zone java introduc pattern letter code 'z' code repres time zone rfc822 format code code code code pattern letter jdk version addit pattern code zz' 'zz' code made repres iso8601 full format time zone code code code code introduc minor incompat java gain function author tea trove teatrov project author brian neill o'neil author sean schofield author gari gregori author stephen colebourn author nikolai metchev version fast date format fastdateformat format construct instanc code digit month field twodigitmonthfield code digit month field twodigitmonthfield
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
81df142b5fcf8cf8b4ec7cb8a3de00da01ba14de
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/neuron-20211115/src/main/java/com/aliyun/neuron20211115/models/NeuronAppToken.java
3a9ba7deb9fde6de47424f11e457ab447c664fe4
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
583
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.neuron20211115.models; import com.aliyun.tea.*; public class NeuronAppToken extends TeaModel { @NameInMap("token") public String token; public static NeuronAppToken build(java.util.Map<String, ?> map) throws Exception { NeuronAppToken self = new NeuronAppToken(); return TeaModel.build(map, self); } public NeuronAppToken setToken(String token) { this.token = token; return this; } public String getToken() { return this.token; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
75896b1a83c7990562d86704af7a8d4ef1aaa833
00cb6f98d9796ca777afc9d26cb557b6f5fe3cda
/mygo/mygo-alipay/src/main/java/com/alipay/api/response/AlipayMobilePublicGisGetResponse.java
9735565fb4055bcace441c69d3f4e595777e6f54
[]
no_license
caizhongao/mygo
e79a493948443e6bb17a4390d0b31033cd98d377
08a36fe0aced49fc46f4541af415d6e86d77d9c9
refs/heads/master
2020-09-06T12:45:37.350935
2017-06-26T05:51:50
2017-06-26T05:51:50
94,418,912
0
0
null
null
null
null
UTF-8
Java
false
false
1,920
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.mobile.public.gis.get response. * * @author auto create * @since 1.0, 2016-10-09 11:38:26 */ public class AlipayMobilePublicGisGetResponse extends AlipayResponse { private static final long serialVersionUID = 5146438625416786128L; /** * 精确度 */ @ApiField("accuracy") private String accuracy; /** * 经纬度所在位置 */ @ApiField("city") private String city; /** * 结果码 */ @ApiField("code") private String code; /** * 纬度信息 */ @ApiField("latitude") private String latitude; /** * 经度信息 */ @ApiField("longitude") private String longitude; /** * 结果信息 */ @ApiField("msg") private String msg; /** * 经纬度对应位置所在的省份 */ @ApiField("province") private String province; public void setAccuracy(String accuracy) { this.accuracy = accuracy; } public String getAccuracy( ) { return this.accuracy; } public void setCity(String city) { this.city = city; } public String getCity( ) { return this.city; } public void setCode(String code) { this.code = code; } public String getCode( ) { return this.code; } public void setLatitude(String latitude) { this.latitude = latitude; } public String getLatitude( ) { return this.latitude; } public void setLongitude(String longitude) { this.longitude = longitude; } public String getLongitude( ) { return this.longitude; } public void setMsg(String msg) { this.msg = msg; } public String getMsg( ) { return this.msg; } public void setProvince(String province) { this.province = province; } public String getProvince( ) { return this.province; } }
[ "mufeng@juanpi.com" ]
mufeng@juanpi.com
2d7a4bf3dbab81d78f7eeabac4ac7d6b7fe47e92
f46891cca8db8bb3b4b7a1acdf4b60e50f709b0b
/thirdparty-osgi/cayenne/cayenne-1.1RC3/src/cayenne/org/objectstyle/cayenne/project/validator/DomainValidator.java
dcaf93c5fd7cb6fd41cb8c805d3f01db3d2d1ad7
[]
no_license
BackupTheBerlios/osgirepo
7778117c9850bbde753e5a470fd546b1ed39063d
581645f2d269a577c76c4bdc40cc01cd68bffbd3
refs/heads/master
2021-01-19T14:58:47.088987
2005-07-29T09:18:00
2005-07-29T09:18:00
40,255,705
0
0
null
null
null
null
UTF-8
Java
false
false
4,195
java
/* ==================================================================== * * The ObjectStyle Group Software License, version 1.1 * ObjectStyle Group - http://objectstyle.org/ * * Copyright (c) 2002-2004, Andrei (Andrus) Adamchik and individual authors * of the software. 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. The end-user documentation included with the redistribution, if any, * must include the following acknowlegement: * "This product includes software developed by independent contributors * and hosted on ObjectStyle Group web site (http://objectstyle.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "ObjectStyle Group" and "Cayenne" must not be used to endorse * or promote products derived from this software without prior written * permission. For written permission, email * "andrus at objectstyle dot org". * * 5. Products derived from this software may not be called "ObjectStyle" * or "Cayenne", nor may "ObjectStyle" or "Cayenne" appear in their * names without prior written permission. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE OBJECTSTYLE GROUP OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals and hosted on ObjectStyle Group web site. For more * information on the ObjectStyle Group, please see * <http://objectstyle.org/>. */ package org.objectstyle.cayenne.project.validator; import java.util.Iterator; import org.objectstyle.cayenne.access.DataDomain; import org.objectstyle.cayenne.project.Project; import org.objectstyle.cayenne.project.ProjectPath; import org.objectstyle.cayenne.util.Util; /** * @author Andrei Adamchik */ public class DomainValidator extends TreeNodeValidator { /** * Constructor for DomainValidator. */ public DomainValidator() { super(); } public void validateObject(ProjectPath path, Validator validator) { // check for empty name DataDomain domain = (DataDomain) path.getObject(); String name = domain.getName(); if (Util.isEmptyString(name)) { validator.registerError("Unnamed DataDomain.", path); // no more name assertions return; } Project project = (Project) path.getObjectParent(); if (project == null) { return; } // check for duplicate names in the parent context Iterator it = project.getChildren().iterator(); while (it.hasNext()) { DataDomain dom = (DataDomain) it.next(); if (dom == domain) { continue; } if (name.equals(dom.getName())) { validator.registerError("Duplicate DataDomain name: " + name + ".", path); return; } } } }
[ "afrei" ]
afrei
abcb22a15cb3eafce93b30e47f262d46a8af922e
1ca86d5d065372093c5f2eae3b1a146dc0ba4725
/spring-5-reactive-security/src/main/java/com/surya/reactive/security/SpringSecurity5Application.java
40577933755a467d3877f9cbcddd4ec8fb29dea7
[]
no_license
Suryakanta97/DemoExample
1e05d7f13a9bc30f581a69ce811fc4c6c97f2a6e
5c6b831948e612bdc2d9d578a581df964ef89bfb
refs/heads/main
2023-08-10T17:30:32.397265
2021-09-22T16:18:42
2021-09-22T16:18:42
391,087,435
0
1
null
null
null
null
UTF-8
Java
false
false
1,471
java
package com.surya.reactive.security; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.http.server.reactive.HttpHandler; import org.springframework.http.server.reactive.ReactorHttpHandlerAdapter; import org.springframework.web.reactive.config.EnableWebFlux; import org.springframework.web.server.adapter.WebHttpHandlerBuilder; import reactor.netty.DisposableServer; import reactor.netty.http.server.HttpServer; @ComponentScan(basePackages = {"com.surya.reactive.security"}) @EnableWebFlux public class SpringSecurity5Application { public static void main(String[] args) { try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SpringSecurity5Application.class)) { context.getBean(DisposableServer.class).onDispose().block(); } } @Bean public DisposableServer disposableServer(ApplicationContext context) { HttpHandler handler = WebHttpHandlerBuilder.applicationContext(context) .build(); ReactorHttpHandlerAdapter adapter = new ReactorHttpHandlerAdapter(handler); HttpServer httpServer = HttpServer.create().host("localhost").port(8083); return httpServer.handle(adapter).bindNow(); } }
[ "suryakanta97@github.com" ]
suryakanta97@github.com
d992a3faada9209bb163708872bc092240c6a3bf
3812fd66174486bf11f34b95f0a40029a20a296d
/library_base/src/main/java/com/zhq/library_base/base_library/crash/CaocInitProvider.java
bfd9e22d68f8795186e20ba116fdbb0047636217
[]
no_license
qiangshi/Assembly_MVVM_Wan
372b5131ffe79a227ba7d792fb56cdc5aa88fd26
934e42c63e50a7cf09b50125f47054211c1a1a25
refs/heads/master
2022-12-01T10:20:02.255645
2020-08-12T01:54:41
2020-08-12T01:54:41
286,889,501
0
0
null
null
null
null
UTF-8
Java
false
false
1,816
java
/* * Copyright 2014-2017 Eduard Ereza Martínez * * 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.zhq.library_base.base_library.crash; import android.content.ContentProvider; import android.content.ContentValues; import android.database.Cursor; import android.net.Uri; import androidx.annotation.NonNull; import androidx.annotation.Nullable; public class CaocInitProvider extends ContentProvider { public boolean onCreate() { CustomActivityOnCrash.install(getContext()); return false; } @Nullable @Override public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable String selection, @Nullable String[] selectionArgs, @Nullable String sortOrder) { return null; } @Nullable @Override public String getType(@NonNull Uri uri) { return null; } @Nullable @Override public Uri insert(@NonNull Uri uri, @Nullable ContentValues values) { return null; } @Override public int delete(@NonNull Uri uri, @Nullable String selection, @Nullable String[] selectionArgs) { return 0; } @Override public int update(@NonNull Uri uri, @Nullable ContentValues values, @Nullable String selection, @Nullable String[] selectionArgs) { return 0; } }
[ "1104827297@qq.com" ]
1104827297@qq.com
731c5f1f536a5f71cea68132cda64d064f3b60ad
979a704abd329ffc0e44e5583a7099c15afcaa15
/LearningSpringBoot/src/main/java/com/zjc/LearningSpringBoot/config/AuthorSettings.java
534ce7f2e101b0bc4ca84ab1e822692a9977e8ba
[]
no_license
Daniel49zhu/LearningSpringBoot
afe2e9f0d97487041c7318ebb5b5ff1a4a3827e8
02fb5db561a47c4a32f1063f038198028b465154
refs/heads/master
2020-04-13T08:37:04.443636
2019-02-12T14:01:26
2019-02-12T14:01:26
163,086,435
0
0
null
null
null
null
UTF-8
Java
false
false
565
java
package com.zjc.LearningSpringBoot.config; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @Component @ConfigurationProperties(prefix="book") public class AuthorSettings { private String name; private Long price; public void setName(String name) { this.name = name; } public void setPrice(Long price) { this.price = price; } public String getName() { return name; } public Long getPrice() { return price; } }
[ "zhujiacheng94@163.com" ]
zhujiacheng94@163.com
d6c13a65365f8917cdad308f6c0d7432b50f7e46
92dd6bc0a9435c359593a1f9b309bb58d3e3f103
/src/Mar2021Leetcode/_0357CountNumbersWithUniqueDigits.java
c46c4e0d6ce21de454160a75ac32ade92b859a5b
[ "MIT" ]
permissive
darshanhs90/Java-Coding
bfb2eb84153a8a8a9429efc2833c47f6680f03f4
da76ccd7851f102712f7d8dfa4659901c5de7a76
refs/heads/master
2023-05-27T03:17:45.055811
2021-06-16T06:18:08
2021-06-16T06:18:08
36,981,580
3
3
null
null
null
null
UTF-8
Java
false
false
187
java
package Mar2021Leetcode; public class _0357CountNumbersWithUniqueDigits { public static void main(String[] args) { } public static int countNumbersWithUniqueDigits(int n) { } }
[ "hsdars@gmail.com" ]
hsdars@gmail.com
d82c438d9070041339be81b7b3e43ac1d96ea07c
192febb058e15b4f287cf121f4b06669ace180e0
/mvp/src/main/java/com/hannesdorfmann/mosby/mvp/conductor/delegate/MvpConductorDelegateCallback.java
8c304aefc0446402a5c562ed0cb6a7399000fbd3
[ "Apache-2.0" ]
permissive
beloving/mosby-conductor
1924e2a66a90b26cd897816622b7f74ab05d49ef
60d47bb4027829e020176d189560e8eb471adfb5
refs/heads/master
2020-12-11T05:40:49.081824
2016-07-19T01:52:01
2016-07-19T01:52:01
64,463,826
1
0
null
2016-07-29T08:20:04
2016-07-29T08:20:04
null
UTF-8
Java
false
false
1,358
java
package com.hannesdorfmann.mosby.mvp.conductor.delegate; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.hannesdorfmann.mosby.mvp.MvpPresenter; import com.hannesdorfmann.mosby.mvp.MvpView; /** * The MvpDelegate callback that will be called from {@link * MvpConductorLifecycleListener}. This interface must be implemented by all * Conductor Controllers that you want to support mosbys mvp. * * @param <V> The type of {@link MvpView} * @param <P> The type of {@link MvpPresenter} * @author Hannes Dorfmann * @since 1.0 */ public interface MvpConductorDelegateCallback<V extends MvpView, P extends MvpPresenter<V>> { /** * Creates the presenter instance * * @return the created presenter instance */ @NonNull public P createPresenter(); /** * Get the presenter. If null is returned, then a internally a new presenter instance gets * created * by calling {@link #createPresenter()} * * @return the presenter instance. can be null. */ @Nullable public P getPresenter(); /** * Sets the presenter instance * * @param presenter The presenter instance */ public void setPresenter(@NonNull P presenter); /** * Get the MvpView for the presenter * * @return The view associated with the presenter */ @NonNull public V getMvpView(); }
[ "hannes.dorfmann@gmail.com" ]
hannes.dorfmann@gmail.com
ce7ff36cd62250e60b7e6bad93cf5b0745776e9c
bc54945492bae2938c35a0d207d2a305d48719cb
/gulimail-product/src/main/java/com/itdemo/gulimail/product/dao/AttrAttrgroupRelationDao.java
cd307eab43dcad97396e6f42626276245091d6f0
[]
no_license
zzz25712/gulimail
13db45dc4a90b3acc43cedc811f643f79a345f05
bc26f0a4dbf72546f05b3a9b3dae990dc8469977
refs/heads/master
2023-03-27T07:11:33.825719
2021-03-01T08:34:38
2021-03-01T08:35:24
343,344,068
0
0
null
null
null
null
UTF-8
Java
false
false
601
java
package com.itdemo.gulimail.product.dao; import com.itdemo.gulimail.product.entity.AttrAttrgroupRelationEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 属性&属性分组关联 * * @author lvxiaofei * @email sunlightcs@gmail.com * @date 2020-08-25 10:47:49 */ @Mapper public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> { void deleteBatchRelation(@Param("entities") List<AttrAttrgroupRelationEntity> entities); }
[ "2571200135@qq.com" ]
2571200135@qq.com
051bd6332e87479038c91d050417e7d3d67963c2
5014ee54763493de8aca1900783821680137abbb
/s4/b173333/TestCase.java
b104969ae33a483d04db85f35a626bf750c357ca
[]
no_license
tut173304/tut2017informationQuantity
3c7b63bfd8b0896be888d31a80adefaa517c3d7d
40e0f5604469eb26464a29f00ba43a5a70611784
refs/heads/master
2021-09-06T17:59:26.002396
2018-02-09T10:53:18
2018-02-09T10:53:18
114,734,634
0
1
null
2017-12-19T07:42:35
2017-12-19T07:42:35
null
UTF-8
Java
false
false
2,998
java
package s4.b173333; // Please modify to s4.Bnnnnnn, where nnnnnn is your student ID. import java.lang.*; import s4.specification.*; /* interface FrequencerInterface { // This interface provides the design for frequency counter. void setTarget(byte[] target); // set the data to search. void setSpace(byte[] space); // set the data to be searched target from. int frequency(); //It return -1, when TARGET is not set or TARGET's length is zero //Otherwise, it return 0, when SPACE is not set or Space's length is zero //Otherwise, get the frequency of TAGET in SPACE int subByteFrequency(int start, int end); // get the frequency of subByte of taget, i.e target[start], taget[start+1], ... , target[end-1]. // For the incorrect value of START or END, the behavior is undefined. } */ /* package s4.specification; public interface InformationEstimatorInterface{ void setTarget(byte target[]); // set the data for computing the information quantities void setSpace(byte space[]); // set data for sample space to computer probability double estimation(); // It returns 0.0 when the target is not set or Target's length is zero; // It returns Double.MAX_VALUE, when the true value is infinite, or space is not set. // The behavior is undefined, if the true value is finete but larger than Double.MAX_VALUE. // Note that this happens only when the space is unreasonably large. We will encounter other problem anyway. // Otherwise, estimation of information quantity, } */ public class TestCase { public static void main(String[] args) { try { FrequencerInterface myObject; int freq; System.out.println("checking s4.b173333.Frequencer"); myObject = new s4.b173333.Frequencer(); myObject.setSpace("Hi Ho Hi Ho".getBytes()); myObject.setTarget("H".getBytes()); freq = myObject.frequency(); System.out.print("\"H\" in \"Hi Ho Hi Ho\" appears "+freq+" times. "); if(4 == freq) { System.out.println("OK"); } else {System.out.println("WRONG"); } } catch(Exception e) { System.out.println("Exception occurred: STOP"); } try { InformationEstimatorInterface myObject; double value; System.out.println("checking s4.b173333.InformationEstimator"); myObject = new s4.b173333.InformationEstimator(); myObject.setSpace("3210321001230123".getBytes()); myObject.setTarget("0".getBytes()); value = myObject.estimation(); System.out.println(">0 "+value); myObject.setTarget("01".getBytes()); value = myObject.estimation(); System.out.println(">01 "+value); myObject.setTarget("0123".getBytes()); value = myObject.estimation(); System.out.println(">0123 "+value); myObject.setTarget("00".getBytes()); value = myObject.estimation(); System.out.println(">00 "+value); } catch(Exception e) { System.out.println("Exception occurred: STOP"); } } }
[ "tut.umemura.lab@gmail.com" ]
tut.umemura.lab@gmail.com
8d4ccc03714f978d243e04a4b73ff5ca61b12cfa
e46bef0081eba3a3f7d595d99b98d3166a67d8ab
/benchmarks/h2/Main.java
f6b3d9e0fb5880fcd36fb2fb113e83f97f8b5ef2
[ "Apache-2.0", "BSD-3-Clause", "SMLNJ" ]
permissive
midwinter1993/RoadRunner
17cf10a6d221f9c39a3238eeedef7ce297428f1a
da7e6b3c04b37864d2340fb2f3e8950467e720a1
refs/heads/master
2020-12-30T02:10:01.532709
2020-07-15T09:45:49
2020-07-15T09:45:49
238,826,274
0
0
NOASSERTION
2020-02-07T02:16:46
2020-02-07T02:16:45
null
UTF-8
Java
false
false
2,275
java
/****************************************************************************** Copyright (c) 2016, Cormac Flanagan (University of California, Santa Cruz) and Stephen Freund (Williams College) 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 names of the University of California, Santa Cruz and Williams College 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 HOLDER 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. ******************************************************************************/ import java.io.File; public class Main { public static void main(String args[]) throws Exception { // TPCC modified to process proper command line args... org.dacapo.h2.TPCC x = org.dacapo.h2.TPCC.make(null, new File("scratch/"), true, true); String size; if (args.length == 0) { size="default"; } else { size = args[0]; } x.prepare(size); x.preIteration(size); x.iteration(size); x.postIteration(size); } }
[ "freund@cs.williams.edu" ]
freund@cs.williams.edu
4e9e8e4e526405fe6a646aefded4943a95716be0
d4005a7e9ee5e8421bfa5e614c67c06350df0fa5
/Programmierung/Graph/src/org/graph/weighted/DijkstraForAdjacencyArray.java
1a86625d6f1b9ea607645300628438abd60b250f
[]
no_license
matthiasbode/multiskalen
cccf4ea7473f5362fd4d015881304d03baf15b79
fb555ce9aa49a0e8d80a5688e5106701c36e737f
refs/heads/master
2021-01-18T23:26:29.775565
2016-07-08T20:11:19
2016-07-08T20:11:19
34,849,433
0
1
null
null
null
null
UTF-8
Java
false
false
4,328
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.graph.weighted; import com.google.common.collect.BiMap; import com.google.common.collect.HashBiMap; import java.util.HashMap; import java.util.IdentityHashMap; import org.graph.algorithms.pathsearch.PairShortestPathAlgorithm; import org.graph.weighted.EdgeWeight; import org.graph.weighted.WeightedDirectedGraph; import org.graph.weighted.WeightedPath; import org.util.FibonacciHeap; import org.util.FibonacciHeapNode; /** * * @author rinke */ public class DijkstraForAdjacencyArray<V,W extends EdgeWeight<W>> implements PairShortestPathAlgorithm<V,W> { private final FibonacciHeap<Integer> fibonacciCandidates; private final HashMap<Integer,Item> map; public DijkstraForAdjacencyArray() { fibonacciCandidates = new FibonacciHeap<Integer>(); map = new HashMap<Integer, Item>(); } @Override public WeightedPath<V, W> singlePairShortestPath(WeightedDirectedGraph<V, W> graph, V source, V destination) { if(graph instanceof WeightedDirectedGraphAsAdjacencyArray) { WeightedDirectedGraphAsAdjacencyArray<V,W> graphAAA = (WeightedDirectedGraphAsAdjacencyArray<V,W>) graph; W einsWeight = graphAAA.weightsPerEdge.get(0).getEinsElement(); fibonacciCandidates.clear(); map.clear(); HashBiMap<V, Integer> vertexMap = graphAAA.getVertexMap(); BiMap<Integer, V> inverse = vertexMap.inverse(); int sourceIndex = vertexMap.get(source); int destIndex = vertexMap.get(destination); Item sourceItem = new Item(sourceIndex, sourceIndex, einsWeight); fibonacciCandidates.insert(sourceItem,0); map.put(sourceIndex, sourceItem); //while a candidate is in the candidate set while (!fibonacciCandidates.isEmpty()) { Item candidate = (Item) fibonacciCandidates.removeMin(); W distance = candidate.weight; //returns shortest path if the end is reached if (candidate.getData()==destIndex) { WeightedPath<V,W> path = new WeightedPath<V, W>(distance, destination); int parent = map.get(candidate.getData()).parent; while(parent != sourceIndex) { path.appendVertexInFront(inverse.get(parent)); parent = map.get(parent).parent; } path.appendVertexInFront(inverse.get(parent)); return path; } //analyses successors of the candidate else { for (int succ : graphAAA.getSuccessors(candidate.getData())) { //successor in the initial set if (!map.containsKey(succ)) { W edge = graphAAA.getEdgeWeight(candidate.getData(), succ); W dist = distance.product(edge); Item succNode = new Item(succ, candidate.getData(), dist); fibonacciCandidates.insert(succNode, dist.doubleValue()); map.put(succ, succNode); } else { W edge = graphAAA.getEdgeWeight(candidate.getData(), succ); W dist = distance.product(edge); Item succItem = map.get(succ); if(dist.compareTo(succItem.weight) < 0) { succItem.parent = candidate.getData(); succItem.weight = dist; fibonacciCandidates.decreaseKey(succItem, dist.doubleValue()); } } } } } } return null; } private class Item extends FibonacciHeapNode<Integer>{ int parent; W weight; Item(int vertex, int parent, W weight) { super(vertex); this.parent = parent; this.weight = weight; } } }
[ "mail@matthiasbo.de" ]
mail@matthiasbo.de
53634edbe87a1a38ecb3029d475b83831ff48437
a3c3167757a5ddc541db8148ffe42d7f1964261e
/app/src/main/java/com/zh/touchassistant/util/AppInfoUtil.java
e79f895bbe1cd2954402fe8a89e797ef134d751f
[]
no_license
Solunadigital/miui_touch_assistant
a0e1e6b932c432ed83505a0388ade2b0aa6b58b1
e30809ae99c5c22a70291b71e5e6124429c9567a
refs/heads/master
2022-03-18T21:10:37.370173
2019-11-13T09:17:33
2019-11-13T09:17:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,908
java
package com.zh.touchassistant.util; import android.content.Context; import android.content.pm.ApplicationInfo; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import com.zh.touchassistant.model.InstallAppInfoModel; import java.util.ArrayList; import java.util.List; /** * <b>Package:</b> com.zh.touchassistant.util <br> * <b>FileName:</b> AppInfoUtil <br> * <b>Create Date:</b> 2018/12/17 下午4:12 <br> * <b>Author:</b> zihe <br> * <b>Description:</b> <br> */ public class AppInfoUtil { private AppInfoUtil() { } /** * 获取所有已安装的App信息,不包含系统应用 * @param isFilterSystem 是否过滤系统应用 */ public static List<InstallAppInfoModel> getInstallAppInfoList(Context context, boolean isFilterSystem) { List<InstallAppInfoModel> appList = new ArrayList<>(); PackageManager packageManager = context.getApplicationContext().getPackageManager(); List<PackageInfo> packages = packageManager.getInstalledPackages(0); for (int i = 0; i < packages.size(); i++) { PackageInfo packageInfo = packages.get(i); if (isFilterSystem) { //过滤掉系统应用 if ((packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { continue; } } InstallAppInfoModel infoModel = new InstallAppInfoModel(); infoModel.setAppName(packageInfo.applicationInfo.loadLabel(packageManager).toString()); infoModel.setPackageName(packageInfo.packageName); infoModel.setVersionName(packageInfo.versionName); infoModel.setVersionCode(packageInfo.versionCode); infoModel.setAppIcon(packageInfo.applicationInfo.loadIcon(packageManager)); appList.add(infoModel); } return appList; } }
[ "hezihao@linghit.com" ]
hezihao@linghit.com
95ea3ecdb2208698a27360026410db081b7f17c9
b6f38f3a74eaf7fdb7bc7e944d3c495c87cc0bf0
/src/com/hua/util/LogUtils2.java
d19ed93ed964731f664f6ec2e952457c66ab74f8
[]
no_license
tianshiaimili/MyIMTestDemo
1fb6adf4c4654b56b3f8ef178f424dc0bed07b35
7960e81fa594cd3f80d93e18f6c638c60056f1bb
refs/heads/master
2020-03-30T05:46:46.373273
2014-12-27T11:28:29
2014-12-27T11:28:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,597
java
package com.hua.util; import android.util.Log; public class LogUtils2 { private static final boolean DEBUG = true; private static final String TAG = "LogUtils"; public static void e(String message) { if (DEBUG) { StackTraceElement[] elements = Thread.currentThread() .getStackTrace(); if (elements.length < 4) { Log.e(TAG, "Stack to shallow"); } else { String fullClassName = elements[3].getClassName(); String className = fullClassName.substring(fullClassName .lastIndexOf(".") + 1); String methodName = elements[3].getMethodName(); int lineNumber = elements[3].getLineNumber(); // Log.e(className + "." + methodName + "():" + lineNumber, // message); Log.e(TAG,className + ":" + lineNumber+"行:"+ message); } } } public static void e(String tag,String message) { if (DEBUG) { StackTraceElement[] elements = Thread.currentThread() .getStackTrace(); if (elements.length < 4) { Log.e(tag, "Stack to shallow"); } else { String fullClassName = elements[3].getClassName(); String className = fullClassName.substring(fullClassName .lastIndexOf(".") + 1); String methodName = elements[3].getMethodName(); int lineNumber = elements[3].getLineNumber(); // Log.e(className + "." + methodName + "():" + lineNumber, // message); Log.e(tag,className + ":" + lineNumber+"行:"+ message); } } } public static void d(String message) { if (DEBUG) { StackTraceElement[] elements = Thread.currentThread() .getStackTrace(); if (elements.length < 3) { Log.e(TAG, "Stack to shallow"); } else { String fullClassName = elements[3].getClassName(); String className = fullClassName.substring(fullClassName .lastIndexOf(".") + 1); String methodName = elements[3].getMethodName(); int lineNumber = elements[3].getLineNumber(); // Log.d("TAG",className + "." + methodName + "():" + lineNumber+"行"+ // message); Log.d(TAG,className + " : " + lineNumber+"行:"+ message); } } } public static void d(String TAG,String message) { if (DEBUG) { StackTraceElement[] elements = Thread.currentThread() .getStackTrace(); if (elements.length < 3) { Log.e(TAG, "Stack to shallow"); } else { String fullClassName = elements[3].getClassName(); String className = fullClassName.substring(fullClassName .lastIndexOf(".") + 1); String methodName = elements[3].getMethodName(); int lineNumber = elements[3].getLineNumber(); // Log.d("TAG",className + "." + methodName + "():" + lineNumber+"行"+ // message); Log.d(TAG,className + " : " + lineNumber+"行:"+ message); } } } public static void i(String message) { if (DEBUG) { StackTraceElement[] elements = Thread.currentThread() .getStackTrace(); if (elements.length < 3) { Log.e(TAG, "Stack to shallow"); } else { String fullClassName = elements[3].getClassName(); String className = fullClassName.substring(fullClassName .lastIndexOf(".") + 1); String methodName = elements[3].getMethodName(); int lineNumber = elements[3].getLineNumber(); // Log.i(className + "." + methodName + "():" + lineNumber, // message); Log.i(TAG,className + " : " + lineNumber+"行:"+ message); } } } /// public static void i(String TAG,String message) { if (DEBUG) { StackTraceElement[] elements = Thread.currentThread() .getStackTrace(); if (elements.length < 3) { Log.e(TAG, "Stack to shallow"); } else { String fullClassName = elements[3].getClassName(); String className = fullClassName.substring(fullClassName .lastIndexOf(".") + 1); String methodName = elements[3].getMethodName(); int lineNumber = elements[3].getLineNumber(); // Log.i(className + "." + methodName + "():" + lineNumber, // message); Log.i(TAG,className + " : " + lineNumber+"行:"+ message); } } } public static void w(String message) { if (DEBUG) { StackTraceElement[] elements = Thread.currentThread() .getStackTrace(); if (elements.length < 3) { Log.e(TAG, "Stack to shallow"); } else { String fullClassName = elements[3].getClassName(); String className = fullClassName.substring(fullClassName .lastIndexOf(".") + 1); String methodName = elements[3].getMethodName(); int lineNumber = elements[3].getLineNumber(); // Log.w(className + "." + methodName + "():" + lineNumber, // message); Log.w(TAG,className + " : " + lineNumber+"行:"+ message); } } } //// public static void w(String TAG,String message) { if (DEBUG) { StackTraceElement[] elements = Thread.currentThread() .getStackTrace(); if (elements.length < 3) { Log.e(TAG, "Stack to shallow"); } else { String fullClassName = elements[3].getClassName(); String className = fullClassName.substring(fullClassName .lastIndexOf(".") + 1); String methodName = elements[3].getMethodName(); int lineNumber = elements[3].getLineNumber(); // Log.w(className + "." + methodName + "():" + lineNumber, // message); Log.w(TAG,className + " : " + lineNumber+"行:"+ message); } } } public static void v(String message) { if (DEBUG) { StackTraceElement[] elements = Thread.currentThread() .getStackTrace(); if (elements.length < 3) { Log.e(TAG, "Stack to shallow"); } else { String fullClassName = elements[3].getClassName(); String className = fullClassName.substring(fullClassName .lastIndexOf(".") + 1); String methodName = elements[3].getMethodName(); int lineNumber = elements[3].getLineNumber(); // Log.v(className + "." + methodName + "():" + lineNumber, // message); Log.v(TAG,className + " : " + lineNumber+"行:"+ message); } } } /// public static void v(String TAG,String message) { if (DEBUG) { StackTraceElement[] elements = Thread.currentThread() .getStackTrace(); if (elements.length < 3) { Log.e(TAG, "Stack to shallow"); } else { String fullClassName = elements[3].getClassName(); String className = fullClassName.substring(fullClassName .lastIndexOf(".") + 1); String methodName = elements[3].getMethodName(); int lineNumber = elements[3].getLineNumber(); // Log.v(className + "." + methodName + "():" + lineNumber, // message); Log.v(TAG,className + " : " + lineNumber+"行:"+ message); } } } }
[ "913540483@qq.com" ]
913540483@qq.com
224a08fb312248f317dcd5692e6027269e012057
595a818369bbc2ef8acca39a7cbe5d593b0bf8f7
/app/src/main/java/com/tdr/familytreasure/zxing/BitmapLuminanceSource.java
92835f4f9fad38401eb4ea5e12ce708791229ee9
[]
no_license
KingJA/FamilyTreasure
7a6453fa621620561770821c7fb17a296c3109fe
3ec6089eab8f5e4cc20d11147deb0463275a3294
refs/heads/master
2021-01-19T12:00:38.798224
2017-06-21T01:24:45
2017-06-21T01:24:45
69,009,911
0
0
null
null
null
null
UTF-8
Java
false
false
874
java
package com.tdr.familytreasure.zxing; import android.graphics.Bitmap; import com.google.zxing.LuminanceSource; /** * @describe * * @version 1.0 * @author leon */ public class BitmapLuminanceSource extends LuminanceSource { private byte bitmapPixels[]; protected BitmapLuminanceSource(Bitmap bitmap) { super(bitmap.getWidth(), bitmap.getHeight()); int[] data = new int[bitmap.getWidth() * bitmap.getHeight()]; this.bitmapPixels = new byte[bitmap.getWidth() * bitmap.getHeight()]; bitmap.getPixels(data, 0, getWidth(), 0, 0, getWidth(), getHeight()); for (int i = 0; i < data.length; i++) { this.bitmapPixels[i] = (byte) data[i]; } } @Override public byte[] getMatrix() { return bitmapPixels; } @Override public byte[] getRow(int y, byte[] row) { System.arraycopy(bitmapPixels, y * getWidth(), row, 0, getWidth()); return row; } }
[ "kingjavip@gmail.com" ]
kingjavip@gmail.com
c292daa3dc7bdbfd14f57184f069d5cfa3903c17
a5491b14e36b3a4d308b392f3b17a85fe6c1c17c
/app/src/main/java/com/fenazola/mxcome/entry/ransfer/InformationEntry.java
282f70f2bd3eb8037126eca65d3ce003dbd2b260
[]
no_license
Xdone111/mxcome_android
c3ef8ea1d993afe8fd6aa07295562c790e0d804c
7e56d1777a0de0135e9b3eb46ae8a36d9369c372
refs/heads/master
2020-03-17T04:57:43.940130
2018-05-14T02:42:56
2018-05-14T02:42:56
133,296,442
1
0
null
null
null
null
UTF-8
Java
false
false
1,276
java
package com.fenazola.mxcome.entry.ransfer; /** * 传递模块杂志的实体类 * Created by xhx on 2017/6/6. */ public class InformationEntry { private String titleName; private String subtitleTitleName; private String imgUrl; public InformationEntry(){ } public InformationEntry(String titleName,String subtitleTitleName,String imgUrl){ this.titleName=titleName; this.subtitleTitleName=subtitleTitleName; this.imgUrl=imgUrl; } public String getTitleName() { return titleName; } public void setTitleName(String titleName) { this.titleName = titleName; } public String getSubtitleTitleName() { return subtitleTitleName; } public void setSubtitleTitleName(String subtitleTitleName) { this.subtitleTitleName = subtitleTitleName; } public String getImgUrl() { return imgUrl; } public void setImgUrl(String imgUrl) { this.imgUrl = imgUrl; } @Override public String toString() { return "InformationEntry{" + "titleName='" + titleName + '\'' + ", subtitleTitleName='" + subtitleTitleName + '\'' + ", imgUrl='" + imgUrl + '\'' + '}'; } }
[ "502180980@qq.com" ]
502180980@qq.com
98ba9f3fea7bc0d8ba394ae92d1c84c757a89714
8d4a69e281915a8a68b0488db0e013b311942cf4
/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/metadata/ItemMetadataTests.java
5218ded3778795be0dac76bbdc6c279f8c619a97
[ "Apache-2.0" ]
permissive
yuanmabiji/spring-boot-2.1.0.RELEASE
798b4c29d25fdcb22fa3a0baf24a08ddd0dfa27e
6fe0467c9bc95d3849eb2ad5bae04fd9bdee3a82
refs/heads/master
2023-03-10T05:20:52.846557
2022-03-25T15:53:13
2022-03-25T15:53:13
252,902,347
320
107
Apache-2.0
2023-02-22T07:44:16
2020-04-04T03:49:51
Java
UTF-8
Java
false
false
1,499
java
/* * Copyright 2012-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.boot.configurationprocessor.metadata; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; /** * Tests for {@link ItemMetadata}. * * @author Stephane Nicoll */ public class ItemMetadataTests { @Test public void newItemMetadataPrefixWithCapitalizedPrefix() { assertThat(newItemMetadataPrefix("Prefix.", "value")).isEqualTo("prefix.value"); } @Test public void newItemMetadataPrefixWithCamelCaseSuffix() { assertThat(newItemMetadataPrefix("prefix.", "myValue")) .isEqualTo("prefix.my-value"); } @Test public void newItemMetadataPrefixWithUpperCamelCaseSuffix() { assertThat(newItemMetadataPrefix("prefix.", "MyValue")) .isEqualTo("prefix.my-value"); } private String newItemMetadataPrefix(String prefix, String suffix) { return ItemMetadata.newItemMetadataPrefix(prefix, suffix); } }
[ "983656956@qq.com" ]
983656956@qq.com
cbab6acd4d9c940df105138ff1d550f2b1017be6
78e340dda73697b4c7e32ac346f116b61c981226
/src/org/dmd/dmv/server/generated/dmw/InitRuleDataIterableDMW.java
e6385b44457da203fba9e8b8f5a03e10b894cafe
[]
no_license
dark-matter-org/dark-matter-data
451e7b9da3ae34d94deb4084d462b887d1624da9
b2e9bc79a6a8162651672871e2c7ccdf47a642e7
refs/heads/master
2023-05-25T00:47:44.782732
2023-05-19T17:15:06
2023-05-19T17:15:06
46,194,282
4
0
null
2023-05-19T17:15:07
2015-11-14T22:17:39
Java
UTF-8
Java
false
false
1,036
java
package org.dmd.dmv.server.generated.dmw; import java.util.Iterator; import org.dmd.dmw.DmwContainerIterator; import org.dmd.dmv.shared.generated.types.InitRuleDataREF; import org.dmd.dmv.server.generated.dmw.InitRuleDataDMW; /** * The InitRuleDataIteratorDMW will cast from an underlying InitRuleDataREF class to * the associated wrapper class: InitRuleDataDMW when accessing object references in a wrapper context. * <P> * Generated from the dmv schema at version 0.1 * <P> * This code was auto-generated by the dmggenerator utility and shouldn't be altered manually! * Generated from: org.dmd.dmg.generators.BaseDMWGenerator.dumpIterable(BaseDMWGenerator.java:323) */ public class InitRuleDataIterableDMW extends DmwContainerIterator<InitRuleDataDMW,InitRuleDataREF> { public final static InitRuleDataIterableDMW emptyList = new InitRuleDataIterableDMW(); protected InitRuleDataIterableDMW(){ super(); } public InitRuleDataIterableDMW(Iterator<InitRuleDataREF> it){ super(it); } }
[ "pstrong99@gmail.com" ]
pstrong99@gmail.com
c32fc5524591918894c439c8655aa4a4018e19f2
04a12720462c0cfce091e25b8cdaedb13f921b61
/tanhua/day07小视频功能实现/代码/tanhua/tanhua-domain/src/main/java/com/tanhua/domain/db/BlackList.java
4275d898957930425811d345ec6a20e81134d1da
[]
no_license
haoxiangjiao/Java20210921
31662732e44b248208b21f6f1aaf18e6335b398c
6edcbd081d33bace427fdc6041e9eeaac89def8a
refs/heads/main
2023-07-19T03:42:17.498075
2021-09-25T15:06:11
2021-09-25T15:06:11
409,024,583
0
0
null
2021-09-22T01:19:43
2021-09-22T01:19:43
null
UTF-8
Java
false
false
184
java
package com.tanhua.domain.db; import lombok.Data; @Data public class BlackList extends BasePojo { private Long id; private Long userId; private Long blackUserId; }
[ "70306977+liufanpy@users.noreply.github.com" ]
70306977+liufanpy@users.noreply.github.com
b31c82043880b67c96a2cacbe4bb2a59fa38bdc3
1e7a4b87edc7e9e6a870b15acf177edf9233932d
/entity-view/testsuite/src/test/java/com/blazebit/persistence/view/testsuite/update/subview/simple/mutableonly/EntityViewUpdateSimpleMutableOnlySubviewMapsTest.java
98067a90f106d758dc51c2189661f0d0b5ed693e
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
vincentDAO/blaze-persistence
4b98c168024371a62e0d2e7756c20ec7ef9081c2
9d30ff5c96cc320d3b8d68492f7dc677a64dd172
refs/heads/master
2020-03-26T23:19:04.190101
2018-08-17T13:36:41
2018-08-19T20:28:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,231
java
/* * Copyright 2014 - 2018 Blazebit. * * 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.blazebit.persistence.view.testsuite.update.subview.simple.mutableonly; import com.blazebit.persistence.testsuite.base.jpa.assertion.AssertStatementBuilder; import com.blazebit.persistence.testsuite.base.jpa.category.NoDatanucleus; import com.blazebit.persistence.testsuite.base.jpa.category.NoEclipselink; import com.blazebit.persistence.testsuite.entity.Document; import com.blazebit.persistence.testsuite.entity.Person; import com.blazebit.persistence.view.FlushMode; import com.blazebit.persistence.view.FlushStrategy; import com.blazebit.persistence.view.spi.EntityViewConfiguration; import com.blazebit.persistence.view.testsuite.update.AbstractEntityViewUpdateDocumentTest; import com.blazebit.persistence.view.testsuite.update.subview.simple.mutableonly.model.UpdatableDocumentWithMapsView; import com.blazebit.persistence.view.testsuite.update.subview.simple.mutableonly.model.UpdatablePersonView; import org.junit.Assert; import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import java.util.HashMap; import java.util.Map; import static org.junit.Assert.*; /** * * @author Christian Beikov * @since 1.2.0 */ @RunWith(Parameterized.class) // NOTE: No Datanucleus support yet @Category({ NoDatanucleus.class, NoEclipselink.class}) public class EntityViewUpdateSimpleMutableOnlySubviewMapsTest extends AbstractEntityViewUpdateDocumentTest<UpdatableDocumentWithMapsView> { public EntityViewUpdateSimpleMutableOnlySubviewMapsTest(FlushMode mode, FlushStrategy strategy, boolean version) { super(mode, strategy, version, UpdatableDocumentWithMapsView.class); } @Parameterized.Parameters(name = "{0} - {1} - VERSIONED={2}") public static Object[][] combinations() { return MODE_STRATEGY_VERSION_COMBINATIONS; } @Override protected void registerViewTypes(EntityViewConfiguration cfg) { cfg.addEntityView(UpdatablePersonView.class); } @Test public void testUpdateReplaceCollection() { // Given final UpdatableDocumentWithMapsView docView = getDoc1View(); clearQueries(); // When & Then try { docView.setContacts(new HashMap<>(docView.getContacts())); fail("Expected the setter of a mutable only field to fail!"); } catch (IllegalArgumentException ex) { assertTrue(ex.getMessage().contains("Updating the mutable-only attribute 'contacts'")); } } @Test public void testUpdateAddToCollection() { // Given final UpdatableDocumentWithMapsView docView = getDoc1View(); UpdatablePersonView newPerson = getP2View(UpdatablePersonView.class); clearQueries(); // When & Then try { docView.getContacts().put(2, newPerson); fail("Expected mutating collection operations to fail!"); } catch (UnsupportedOperationException ex) { assertTrue(ex.getMessage().contains("Collection is not updatable")); } } public static void assertSubviewEquals(Map<Integer, Person> persons, Map<Integer, ? extends UpdatablePersonView> personSubviews) { if (persons == null) { assertNull(personSubviews); return; } assertNotNull(personSubviews); assertEquals(persons.size(), personSubviews.size()); for (Map.Entry<Integer, Person> entry : persons.entrySet()) { Person p = entry.getValue(); boolean found = false; UpdatablePersonView pSub = personSubviews.get(entry.getKey()); if (pSub != null) { if (p.getName().equals(pSub.getName())) { found = true; break; } } if (!found) { Assert.fail("Could not find a person subview instance with the name: " + p.getName()); } } } @Override protected AssertStatementBuilder fullFetch(AssertStatementBuilder builder) { return builder.assertSelect() .fetching(Document.class) .fetching(Document.class, "contacts") .fetching(Person.class) .and(); } @Override protected AssertStatementBuilder fullUpdate(AssertStatementBuilder builder) { return fullFetch(builder) .update(Person.class); } @Override protected AssertStatementBuilder versionUpdate(AssertStatementBuilder builder) { return builder.update(Document.class); } }
[ "christian.beikov@gmail.com" ]
christian.beikov@gmail.com
edd178bf0839ebdf42e9895edcbf1b163689f5b2
868bf400c0143e6a13c9dc2804726449816e4b68
/Java-Projects-master/BasicJava/Comment.java
1773eb6502a7b8c41499302a42f39bd6002d2d7b
[]
no_license
EngrDevDom/Java-Codes
7d39efd8fc7f5d9589c34f98adaa71fc923308b9
ab6934cbe5a3e0330b64cca53738180675a1f74a
refs/heads/master
2022-12-02T08:14:58.380076
2020-08-11T16:02:18
2020-08-11T16:02:18
286,783,520
1
0
null
null
null
null
UTF-8
Java
false
false
654
java
/** * Write a description of class Comment here. * * @author (your name) * @version (a version number or a date) */ // normal comment /** * * Long Comment */ public class Comment { public static void main(String[] args) { String string="Hello there"; System.out.println("Hello World Again"); System.out.println("Hello" + "World"); System.out.println("Hello" +" " + " " + "World"); System.out.println(" "); System.out.println(string); System.out.println(2+2+77); System.out.println(2+2+77 - 55.4 *344.595); System.out.print("Hello"); System.out.print("ldjfa;lsdfja;lsd"); } }
[ "60880034+EngrDevDom@users.noreply.github.com" ]
60880034+EngrDevDom@users.noreply.github.com
42f429013ff4fd9e9e953641d7e0006c93608d61
2ee9a8936f889bade976b475d5ed257f49f8a32f
/core/src/main/java/com/huawei/openstack4j/openstack/heat/internal/StackServiceImpl.java
0b0a2e41540ab4645fc25e2f0657eb3dc123a617
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
huaweicloud/huaweicloud-sdk-java
f44532a5e6eae867e9620923a9467ed431d13611
c1372d4be2d86382dfd20ccc084ae66c5ca4a4ce
refs/heads/master
2023-09-01T06:10:00.487173
2022-09-01T01:50:12
2022-09-01T01:50:12
148,595,939
49
45
NOASSERTION
2023-07-18T02:12:39
2018-09-13T07:01:08
Java
UTF-8
Java
false
false
4,568
java
/******************************************************************************* * Copyright 2016 ContainX and OpenStack4j * * 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.huawei.openstack4j.openstack.heat.internal; import java.util.List; import java.util.Map; import com.huawei.openstack4j.api.Builders; import com.huawei.openstack4j.api.heat.StackService; import com.huawei.openstack4j.model.common.ActionResponse; import com.huawei.openstack4j.model.heat.Stack; import com.huawei.openstack4j.model.heat.StackCreate; import com.huawei.openstack4j.model.heat.StackUpdate; import com.huawei.openstack4j.openstack.compute.functions.ToActionResponseFunction; import com.huawei.openstack4j.openstack.heat.domain.HeatStack; import com.huawei.openstack4j.openstack.heat.domain.HeatStack.Stacks; import static com.google.common.base.Preconditions.checkNotNull; /** * This class implements all methods for manipulation of {@link HeatStack} objects. The * non-exhaustive list of methods is oriented along * http://developer.openstack.org/api-ref-orchestration-v1.html#stacks * * @author Matthias Reisser * */ public class StackServiceImpl extends BaseHeatServices implements StackService { @Override public Stack create(StackCreate newStack) { checkNotNull(newStack); return post(HeatStack.class, uri("/stacks")).entity(newStack).execute(); } @Override public Stack create(String name, String template, Map<String, String> parameters, boolean disableRollback, Long timeoutMins) { checkNotNull(name); checkNotNull(template); checkNotNull(parameters); checkNotNull(timeoutMins); return create(Builders.stack().name(name).template(template) .parameters(parameters).timeoutMins(timeoutMins).build()); } @Override public List<? extends Stack> list() { return get(Stacks.class, uri("/stacks")).execute().getList(); } @Override public List<? extends Stack> list(Map<String, String> filteringParams) { Invocation<Stacks> req = get(Stacks.class, uri("/stacks")); if (filteringParams != null) { for (Map.Entry<String, String> entry : filteringParams.entrySet()) { req = req.param(entry.getKey(), entry.getValue()); } } return req.execute().getList(); } @Override public ActionResponse delete(String stackName, String stackId) { checkNotNull(stackId); return deleteWithResponse(uri("/stacks/%s/%s", stackName, stackId)).execute(); } @Override public Stack getDetails(String stackName, String stackId) { checkNotNull(stackName); checkNotNull(stackId); return get(HeatStack.class, uri("/stacks/%s/%s", stackName, stackId)).execute(); } @Override public ActionResponse update(String stackName, String stackId, StackUpdate stackUpdate) { checkNotNull(stackName); checkNotNull(stackId); checkNotNull(stackUpdate); return ToActionResponseFunction.INSTANCE .apply(put(Void.class, uri("/stacks/%s/%s", stackName, stackId)) .entity(stackUpdate) .executeWithResponse()); } @Override public Stack getStackByName(String stackName) { checkNotNull(stackName); return get(HeatStack.class, uri("/stacks/%s", stackName)).execute(); } }
[ "289228042@qq.com" ]
289228042@qq.com
22d5b4451a47851e9f42b5b838ed06f41e2dccbe
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
/crash-reproduction-ws/results/XWIKI-13141-1-15-Single_Objective_GGA-WeightedSum/com/xpn/xwiki/store/XWikiHibernateStore_ESTest_scaffolding.java
b2882d0bde01e79e29e2daa1708a04ed3d371372
[ "MIT", "CC-BY-4.0" ]
permissive
STAMP-project/Botsing-basic-block-coverage-application
6c1095c6be945adc0be2b63bbec44f0014972793
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
refs/heads/master
2022-07-28T23:05:55.253779
2022-04-20T13:54:11
2022-04-20T13:54:11
285,771,370
0
0
null
null
null
null
UTF-8
Java
false
false
443
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sat Jan 18 05:37:15 UTC 2020 */ package com.xpn.xwiki.store; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class XWikiHibernateStore_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
268e86846b23662d48aaf558fcdd6b4042fb0d5b
82fe21bdee764d60e405ed420605537a8f61282e
/src/coletapreco/dao/montador/ProdutoMontador.java
339d89d0341bfc0a721d422d5a6bd24d74b4c583
[]
no_license
paulofor/ColetorGeralPrecos
4d07d5476fd13cde8863de2daa8ce2215a1a902d
49512c8afe480ef8b81211038ed461ffea4508ca
refs/heads/master
2021-07-09T05:26:21.108893
2020-12-27T21:03:00
2020-12-27T21:03:00
224,445,622
0
0
null
null
null
null
UTF-8
Java
false
false
3,054
java
package coletapreco.dao.montador; import java.util.*; import br.com.digicom.lib.dao.*; import br.com.digicom.lib.*; import br.com.digicom.lib.util.*; import coletapreco.modelo.Produto; import coletapreco.modelo.FabricaVo; // Nao consegui fazer extender classe MontadorDao para nao precisar // implementar todos os metodos de MontadorDaoI ( metodos novos ) // achei o caminho mais simples colocar os metodos aqui. public class ProdutoMontador implements MontadorDaoI { public DaoItemRetorno extraiRegistroListaInterna(ResultadoLista result,DCIObjetoDominio objeto) throws DaoException { DaoItemRetorno retorno = new DaoItemRetorno(); objeto = ((MontadorDaoI)this).extraiRegistro(result); retorno.setInsere(true); retorno.setObjeto(objeto); return retorno; } public DaoItemRetorno extraiRegistroInterno(ResultadoLista result, DCIObjetoDominio objeto) throws DaoException { DaoItemRetorno retorno = new DaoItemRetorno(); objeto = ((MontadorDaoI)this).extraiRegistro(result); retorno.setInsere(true); retorno.setObjeto(objeto); return retorno; } public DCIObjetoDominio extraiRegistro( ResultadoLista resultadoLista ) throws DaoException{ DCIObjetoDominio objeto; objeto = FabricaVo.criaProduto(); return extraiRegistro(resultadoLista, objeto, 1); } public DCIObjetoDominio extraiRegistro( ResultadoLista resultadoLista , int pos ) throws DaoException{ DCIObjetoDominio objeto; objeto = FabricaVo.criaProduto(); return extraiRegistro(resultadoLista, objeto, pos ); } public DCIObjetoDominio extraiRegistro( ResultadoLista resultadoLista , DCIObjetoDominio entrada , int pos ) throws DaoException{ Produto objeto; objeto = (Produto)entrada; objeto.setIdProduto(resultadoLista.getInt(pos++)); objeto.setUrlOrigem(resultadoLista.getString(pos++)); objeto.setImagemLocal(resultadoLista.getString(pos++)); objeto.setDataInclusao(resultadoLista.getString(pos++)); objeto.setUrl(resultadoLista.getString(pos++)); objeto.setNome(resultadoLista.getString(pos++)); objeto.setPosicaoProduto(resultadoLista.getInt(pos++)); objeto.setImagem(resultadoLista.getString(pos++)); objeto.setVerificacaoNomeOk(resultadoLista.getLogicoConvertido(pos++)); objeto.setIdLojaVirtualLe(resultadoLista.getInt(pos++)); objeto.setIdMarcaP(resultadoLista.getInt(pos++)); return objeto; } public int quantidadeCampos() { return 11; } /* Acho que fiz errado criando isso. @Override public DaoItemRetorno extraiRegistroListaInterna(ResultadoLista paramResultadoLista, DCIObjetoDominio objeto) throws DaoException, ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException { throw new UnsupportedOperationException(); } @Override public DaoItemRetorno extraiRegistroInterno(ResultadoLista paramResultadoLista, DCIObjetoDominio objeto) throws DaoException { throw new UnsupportedOperationException(); } */ }
[ "tr626987@oi.corp.net" ]
tr626987@oi.corp.net
4249af43ab36ecc5cef20384235f6606ae1d3c78
b2f07f3e27b2162b5ee6896814f96c59c2c17405
/sun/net/httpserver/HttpExchangeImpl.java
2e98f1dfe78f7a7934f7e7f518514438d9054bef
[]
no_license
weiju-xi/RT-JAR-CODE
e33d4ccd9306d9e63029ddb0c145e620921d2dbd
d5b2590518ffb83596a3aa3849249cf871ab6d4e
refs/heads/master
2021-09-08T02:36:06.675911
2018-03-06T05:27:49
2018-03-06T05:27:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,231
java
/* */ package sun.net.httpserver; /* */ /* */ import com.sun.net.httpserver.Headers; /* */ import com.sun.net.httpserver.HttpExchange; /* */ import com.sun.net.httpserver.HttpPrincipal; /* */ import java.io.IOException; /* */ import java.io.InputStream; /* */ import java.io.OutputStream; /* */ import java.net.InetSocketAddress; /* */ import java.net.URI; /* */ /* */ class HttpExchangeImpl extends HttpExchange /* */ { /* */ ExchangeImpl impl; /* */ /* */ HttpExchangeImpl(ExchangeImpl paramExchangeImpl) /* */ { /* 43 */ this.impl = paramExchangeImpl; /* */ } /* */ /* */ public Headers getRequestHeaders() { /* 47 */ return this.impl.getRequestHeaders(); /* */ } /* */ /* */ public Headers getResponseHeaders() { /* 51 */ return this.impl.getResponseHeaders(); /* */ } /* */ /* */ public URI getRequestURI() { /* 55 */ return this.impl.getRequestURI(); /* */ } /* */ /* */ public String getRequestMethod() { /* 59 */ return this.impl.getRequestMethod(); /* */ } /* */ /* */ public HttpContextImpl getHttpContext() { /* 63 */ return this.impl.getHttpContext(); /* */ } /* */ /* */ public void close() { /* 67 */ this.impl.close(); /* */ } /* */ /* */ public InputStream getRequestBody() { /* 71 */ return this.impl.getRequestBody(); /* */ } /* */ /* */ public int getResponseCode() { /* 75 */ return this.impl.getResponseCode(); /* */ } /* */ /* */ public OutputStream getResponseBody() { /* 79 */ return this.impl.getResponseBody(); /* */ } /* */ /* */ public void sendResponseHeaders(int paramInt, long paramLong) /* */ throws IOException /* */ { /* 86 */ this.impl.sendResponseHeaders(paramInt, paramLong); /* */ } /* */ /* */ public InetSocketAddress getRemoteAddress() { /* 90 */ return this.impl.getRemoteAddress(); /* */ } /* */ /* */ public InetSocketAddress getLocalAddress() { /* 94 */ return this.impl.getLocalAddress(); /* */ } /* */ /* */ public String getProtocol() { /* 98 */ return this.impl.getProtocol(); /* */ } /* */ /* */ public Object getAttribute(String paramString) { /* 102 */ return this.impl.getAttribute(paramString); /* */ } /* */ /* */ public void setAttribute(String paramString, Object paramObject) { /* 106 */ this.impl.setAttribute(paramString, paramObject); /* */ } /* */ /* */ public void setStreams(InputStream paramInputStream, OutputStream paramOutputStream) { /* 110 */ this.impl.setStreams(paramInputStream, paramOutputStream); /* */ } /* */ /* */ public HttpPrincipal getPrincipal() { /* 114 */ return this.impl.getPrincipal(); /* */ } /* */ /* */ ExchangeImpl getExchangeImpl() { /* 118 */ return this.impl; /* */ } /* */ } /* Location: C:\Program Files\Java\jdk1.7.0_79\jre\lib\rt.jar * Qualified Name: sun.net.httpserver.HttpExchangeImpl * JD-Core Version: 0.6.2 */
[ "yuexiahandao@gmail.com" ]
yuexiahandao@gmail.com
41ee8ff4173d0c63b67b1a9bbb77b47049ae2429
d0063fc595213137dc442905e63ab2e5b0518e38
/aula04/exemplo02/AppPilha.java
08a3d1552406901842d56a7f735ba91d0b253de3
[]
no_license
AmericoAlves35/turmaED
22405dea38cc7dfbaf43e5605a7ff8e5880584af
ff5e0dbd3a8dcda62591b816622235517e7f5ae3
refs/heads/master
2023-06-11T18:22:52.766800
2021-07-01T21:19:39
2021-07-01T21:19:39
382,154,754
0
0
null
null
null
null
UTF-8
Java
false
false
785
java
package exemplo02; public class AppPilha { public static void main(String[] args) { Pilha p; p = new Pilha(3); System.out.println("Pilha vazia? " + p.estaVazia()); System.out.println("Pilha cheia? " + p.estaCheia()); p.empilhar(1); System.out.println("Pilha vazia? " + p.estaVazia()); System.out.println("Pilha cheia? " + p.estaCheia()); p.empilhar(2); p.empilhar(3); p.empilhar(4); System.out.println("Pilha vazia? " + p.estaVazia()); System.out.println("Pilha cheia? " + p.estaCheia()); System.out.println("Valor do topo = " + p.valorNoTopo()); while(!p.estaVazia()) { System.out.println("Removeu: " + p.desempillhar()); } } }
[ "emerson.paduan@gmail.com" ]
emerson.paduan@gmail.com
47b132139a32d84890693fb9016ede3937420579
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/17/17_718c7aa71fbf868153f0d45fad3081e62e6854b3/SecuredEditor/17_718c7aa71fbf868153f0d45fad3081e62e6854b3_SecuredEditor_t.java
59500272556c5879b9c46be4205de0fbb5f9e832
[]
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
3,185
java
package com.mkovacs.android.secure.preferences; import java.util.Set; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.os.Build; import com.mkovacs.android.secure.preferences.encryption.EncryptionHelper; /** * An {@link Editor} decorator using AES encription. * * @author NoTiCe */ public class SecuredEditor implements Editor { public static final String SET_DELIMITER = "|\u2006|"; private Editor editor; private EncryptionHelper helper; /** * Initializes with the {@link EncryptionHelper} an the original * {@link Editor}. * @param helper * The helper to use. * @param edit * The editor to use. */ public SecuredEditor(EncryptionHelper helper, Editor edit) { this.helper = helper; this.editor = edit; } @Override public SecuredEditor putString(String key, String value) { editor.putString(key, helper.encode(value)); return this; } @Override public SecuredEditor putStringSet(String key, Set<String> values) { editor.putString(key, helper.encode(values)); return this; } @Override public SecuredEditor putInt(String key, int value) { editor.putString(key, helper.encode(value)); return this; } @Override public SecuredEditor putLong(String key, long value) { editor.putString(key, helper.encode(value)); return this; } @Override public SecuredEditor putFloat(String key, float value) { editor.putString(key, helper.encode(value)); return this; } @Override public SecuredEditor putBoolean(String key, boolean value) { editor.putString(key, helper.encode(value)); return this; } @Override public SecuredEditor remove(String key) { editor.remove(key); return this; } @Override public SecuredEditor clear() { editor.clear(); return this; } @Override public boolean commit() { return editor.commit(); } @Override public void apply() { editor.apply(); } /** * Compatibility version of original {@link android.content.SharedPreferences.Editor#apply()} * method that simply call {@link android.content.SharedPreferences.Editor#commit()} for pre Android Honeycomb (API 11). * This method is thread safe also on pre API 11. * Note that when two editors are modifying preferences at the same time, the last one to call apply wins. (Android Doc) */ public void save() { compatilitySave(this); } /** * Saves the {@link SharedPreferences}. See save method. * @param editor The editor to save/commit. */ public static void compatilitySave(Editor editor) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { editor.apply(); } else { synchronized (SecuredEditor.class) { editor.commit(); } } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
56139053cdbf846a3cb3a3f3cfd7c1d84ee4936b
c85c460e7c7410e66aec5d2b1c5b44467a320d58
/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterTableTruncatePartition.java
e3af8b79d408b967a33605ac938b1396e0b06174
[]
no_license
Pengxiaolong/druid
f51900708114a34872b79a397a254344f066bb54
cc6956c7df7c2037d8d2169cea068444b20f7d5d
refs/heads/master
2020-12-25T17:03:11.640854
2012-08-18T14:28:42
2012-08-18T14:28:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
691
java
package com.alibaba.druid.sql.dialect.oracle.ast.stmt; import com.alibaba.druid.sql.ast.SQLName; import com.alibaba.druid.sql.dialect.oracle.visitor.OracleASTVisitor; public class OracleAlterTableTruncatePartition extends OracleAlterTableItem { private static final long serialVersionUID = 1L; private SQLName name; @Override public void accept0(OracleASTVisitor visitor) { if (visitor.visit(this)) { acceptChild(visitor, name); } visitor.endVisit(this); } public SQLName getName() { return name; } public void setName(SQLName name) { this.name = name; } }
[ "xiusiyan@gmail.com" ]
xiusiyan@gmail.com
1158466a45b47ba03a96a648357b979e738b7681
678a3d58c110afd1e9ce195d2f20b2531d45a2e0
/sources/com/airbnb/android/lib/fragments/communitycommitment/CommunityCommitmentCancelAccountFragment_ObservableResubscriber.java
7ddf7cb1a1ecb59e3584627abb269b07c7039b8f
[]
no_license
jasonnth/AirCode
d1c37fb9ba3d8087efcdd9fa2103fb85d13735d5
d37db1baa493fca56f390c4205faf5c9bbe36604
refs/heads/master
2020-07-03T08:35:24.902940
2019-08-12T03:34:56
2019-08-12T03:34:56
201,842,970
0
2
null
null
null
null
UTF-8
Java
false
false
717
java
package com.airbnb.android.lib.fragments.communitycommitment; import com.airbnb.rxgroups.AutoTaggableObserver; import com.airbnb.rxgroups.BaseObservableResubscriber; import com.airbnb.rxgroups.ObservableGroup; public class CommunityCommitmentCancelAccountFragment_ObservableResubscriber extends BaseObservableResubscriber { public CommunityCommitmentCancelAccountFragment_ObservableResubscriber(CommunityCommitmentCancelAccountFragment target, ObservableGroup group) { setTag((AutoTaggableObserver) target.declineCommunityCommitmentListener, "CommunityCommitmentCancelAccountFragment_declineCommunityCommitmentListener"); group.resubscribeAll(target.declineCommunityCommitmentListener); } }
[ "thanhhuu2apc@gmail.com" ]
thanhhuu2apc@gmail.com
80c36cd4f3ea3f6e6d36968d4369f9c0a62bd5ce
cd48551346edeef17d95527f1acd78bb3d4c47f3
/src/main/java/org/openide/util/FileURLConvertor14.java
2a3505663db5a4005f4da29c5fb9f27e53fdb5f1
[ "Apache-2.0" ]
permissive
tszielin/q-lab-editor
56c387f5a8f2437857813754b1e17fcc9ecd4411
eaf1baa4373d8ee476c0b8cfbc30c54fe0afbd46
refs/heads/master
2021-01-10T02:23:49.816445
2016-03-02T16:56:10
2016-03-02T16:56:10
52,768,617
1
0
null
null
null
null
UTF-8
Java
false
false
1,326
java
/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2002 Sun * Microsystems, Inc. All Rights Reserved. */ package org.openide.util; import java.io.File; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; /** * Convert between files and URLs under JDK 1.4. * @author Jesse Glick * @see "#29711" */ class FileURLConvertor14 implements Utilities.FileURLConvertor { public FileURLConvertor14() {} public URL toURL(File f) throws MalformedURLException { URI uri = f.toURI(); return uri.toURL(); } public File toFile(URL u) { try { URI uri = new URI(u.toExternalForm()); return new File(uri); } catch (URISyntaxException use) { // malformed URL return null; } catch (IllegalArgumentException iae) { // not a file: URL return null; } } }
[ "thomas.zielinski@cognizant.com" ]
thomas.zielinski@cognizant.com
1423a85d601a9fe26045249114df78dacd76c670
262058d78bb1ec264cb8972f9d53243fb81a0ad1
/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/util/exceptions/NotDoubleInputException.java
b6cffefebf1b6b5b2cfe73a052b1b2ca87a1fc10
[ "BSD-3-Clause" ]
permissive
SCHS-Robotics/HAL9001-Legacy
c99dbcf1d25b1c4133add64ca15523ff7f3bb823
a7a678ccc84a21837eeb6639d04bd084fc451efd
refs/heads/master
2022-03-04T06:11:25.651905
2019-11-07T03:16:14
2019-11-07T03:16:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
575
java
/* * Filename: NotDoubleInputException.java * Author: Dylan Zueck * Team Name: Crow Force * Date: 7/20/19 */ package org.firstinspires.ftc.teamcode.util.exceptions; /** * An exception thrown when a button meant to return double data is mapped to a button that does not return double data. */ public class NotDoubleInputException extends RuntimeException { /** * Ctor for NotDoubleInputException. * * @param message - The message to print to the screen. */ public NotDoubleInputException(String message) { super(message); } }
[ "colesavage02@gmail.com" ]
colesavage02@gmail.com
25db67ac53d5b9964ddc697d2bbf657bb31e0cf4
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Chart/5/org/jfree/chart/plot/Plot_getForegroundAlpha_855.java
4d335c07dee9d4d2487e85688fbda8127eebc8be
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
1,786
java
org jfree chart plot base plot free chart jfreechart link org jfree chart free chart jfreechart deleg draw ax data plot base facil common plot type plot axi chang listen axischangelisten return alpha transpar plot foreground alpha transpar set foreground alpha setforegroundalpha foreground alpha getforegroundalpha foreground alpha foregroundalpha
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
ae89b2ae0c62d046f293e397602b250215a6f217
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/15/15_cb33008dcbcd67cbeade84642de5bf2fddefb3de/TopologicalSortCoordinator/15_cb33008dcbcd67cbeade84642de5bf2fddefb3de_TopologicalSortCoordinator_s.java
de1a3eaa55434ef4fbfbb49318c2dc9d7b093447
[]
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
1,318
java
/* Copyright (C) 2012-2013 the original author or authors. See the LICENSE.txt file distributed with this work for additional information regarding copyright ownership. 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 jcommon.graph.impl; import jcommon.graph.ITopologicalSortAsyncResult; import jcommon.graph.ITopologicalSortCoordinator; /** * @see jcommon.graph.jdeps.ITopologicalSortCoordinator */ final class TopologicalSortCoordinator implements ITopologicalSortCoordinator { private final ITopologicalSortAsyncResult asyncResult; public TopologicalSortCoordinator(ITopologicalSortAsyncResult asyncResult) { this.asyncResult = asyncResult; } @Override public boolean discontinueScheduling() { return asyncResult.discontinueScheduling(); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
44d6d90c3583c27e000cb350b42aa6c574c85c48
20ecfcaea334a6371edd0c24733b087000ea0106
/src/main/java/com/glaf/flowable/executionlistener/SpringBeanInjectListener.java
994f6bc82111c22fde9eb887c4436935e7b04455
[ "Apache-2.0" ]
permissive
gitee2008/glaf
a0d312390dac3e44426dc15e23afb9c34bdac0d9
5fa5a7d48f7fc8d2409ee38c2ee070563e8d8dbd
refs/heads/master
2022-12-21T11:11:13.229342
2020-10-20T13:37:16
2020-10-20T13:37:16
97,379,234
2
4
Apache-2.0
2022-12-16T15:51:41
2017-07-16T11:37:04
JavaScript
UTF-8
Java
false
false
2,191
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.glaf.flowable.executionlistener; import org.flowable.common.engine.api.delegate.Expression; import org.flowable.engine.delegate.DelegateExecution; import org.flowable.engine.delegate.ExecutionListener; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.glaf.core.context.ContextFactory; public class SpringBeanInjectListener implements ExecutionListener { private static final long serialVersionUID = 1L; protected final static Log logger = LogFactory .getLog(SpringBeanInjectListener.class); protected Expression beanId; protected Expression targetId; public Expression getBeanId() { return beanId; } public Expression getTargetId() { return targetId; } @Override public void notify(DelegateExecution execution) { logger.debug("----------------------------------------------------"); logger.debug("----------------SpringBeanInjectListener------------"); logger.debug("----------------------------------------------------"); if (beanId != null && targetId != null) { String source = beanId.getExpressionText(); String target = targetId.getExpressionText(); execution.setVariable(target, ContextFactory.getBean(source)); } } public void setBeanId(Expression beanId) { this.beanId = beanId; } public void setTargetId(Expression targetId) { this.targetId = targetId; } }
[ "jior2008@gmail.com" ]
jior2008@gmail.com
d317fd6a4debb3645798cdafacaa3a0351c24451
3d6c08744ab6b8b58466ee251c7e3d5d35611018
/citrus-support/src/main/java/com/github/yiuman/citrus/support/crud/query/Condition.java
510b3225956d6c02cb1cca9333111a99999fc97c
[ "Apache-2.0" ]
permissive
Yiuman/citrus
32f5a51965df69effa5538c1ce02d36342a696aa
669746f651721815e6d719c4942494c3cfda19f4
refs/heads/master
2023-01-10T14:25:57.850197
2022-11-30T01:34:17
2022-11-30T01:34:17
253,016,300
442
135
Apache-2.0
2022-11-30T01:34:18
2020-04-04T14:20:50
Java
UTF-8
Java
false
false
736
java
package com.github.yiuman.citrus.support.crud.query; import javax.servlet.http.HttpServletRequest; /** * 查询条件接口 * * @author yiuman * @date 2020/7/23 */ public interface Condition { /** * 根据当前请求获取查询条件Wrapper * * @param request 当前请求 * @return 查询条件QueryWrapper * @throws Exception 可能为反射异常 */ Query getQueryCondition(HttpServletRequest request) throws Exception; /** * 根据当前请求获取请求参数实例 * * @param request 当前请求 * @return 请求查询实例 * @throws Exception 一般为反射异常 */ Object getQueryParams(HttpServletRequest request) throws Exception; }
[ "415481084@qq.com" ]
415481084@qq.com
16bc671b2493c2afbe4a6f7bcc8276fb0050fe09
5d20c826f57fc9254b8c3f88006bd872a1d2eb0f
/client-designer-gateway-archetype/src/main/resources/archetype-resources/__rootArtifactId__-client/src/main/java/client/ClientHook.java
24e4af760c5830f36a102aaa24a9058948af86ce
[ "Apache-2.0" ]
permissive
0-artnoc/ignition-sdk-archetypes
5f477c132b54ddeb758e7b0662a616dee75a64a6
8dbf1d90fc9b7a293380174f97623bf103d83310
refs/heads/master
2022-01-09T07:25:40.301544
2019-05-28T20:09:31
2019-05-28T20:15:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
676
java
package ${package}.client; import com.inductiveautomation.ignition.client.model.ClientContext; import com.inductiveautomation.ignition.common.licensing.LicenseState; import com.inductiveautomation.vision.api.client.AbstractClientModuleHook; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class ClientHook extends AbstractClientModuleHook { private final Logger logger = LoggerFactory.getLogger(getClass()); @Override public void startup(ClientContext context, LicenseState activationState) throws Exception { super.startup(context, activationState); } @Override public void shutdown() { super.shutdown(); } }
[ "kevinherron@gmail.com" ]
kevinherron@gmail.com
10c04f26b7b0f9e030473129201100c4880c9749
2a3f19a4a2b91d9d715378aadb0b1557997ffafe
/sources/android/support/p000v4/print/PrintHelperApi20.java
6e5a4bf0416924b70674aa5f6d2bd140a2dbbbf1
[]
no_license
amelieko/McDonalds-java
ce5062f863f7f1cbe2677938a67db940c379d0a9
2fe00d672caaa7b97c4ff3acdb0e1678669b0300
refs/heads/master
2022-01-09T22:10:40.360630
2019-04-21T14:47:20
2019-04-21T14:47:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
425
java
package android.support.p000v4.print; import android.annotation.TargetApi; import android.content.Context; import android.support.annotation.RequiresApi; @TargetApi(20) @RequiresApi /* renamed from: android.support.v4.print.PrintHelperApi20 */ class PrintHelperApi20 extends PrintHelperKitkat { PrintHelperApi20(Context context) { super(context); this.mPrintActivityRespectsOrientation = false; } }
[ "makfc1234@gmail.com" ]
makfc1234@gmail.com
c75843231e761e1f59ceffddc73a53c7452bf54f
fe35dc8ae836abe66b9493b7e33c268d2e21f6e9
/src/data_structure/treeset/ProgTreeSet.java
12f3fd4fc89ed4c972140e1dbca912920d1cdaa8
[]
no_license
LamhotJM/CS-390
e59f16bda2a3a433f5484f881b95c6c64d6d8034
62af985203be7d0858d6dd3eb9176fd5ac99bc4f
refs/heads/master
2022-04-13T07:13:08.173801
2020-03-13T15:48:34
2020-03-13T15:48:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
430
java
package data_structure.treeset; import java.util.TreeSet; public class ProgTreeSet { public static void main(String[] args) { TreeSet<String> ts1 = new TreeSet<String>(); // Elements are added using add() method ts1.add("A"); ts1.add("B"); ts1.add("C"); // Duplicates will not get insert ts1.add("C"); // Elements get stored in default natural // Sorting Order(Ascending) System.out.println(ts1); } }
[ "lamhotjms@gmail.com" ]
lamhotjms@gmail.com
e802b7a849493bc75cefe1580efb1ee3bba33a01
95c14adc382890aec7a4f042d8dc1f1e302829f1
/src/main/java/references/socialnetwork/Member.java
777330c592aedd0a00a1e9e59d912e2e82bada9d
[]
no_license
kovacseni/training-solutions
fdfbc0b113beea226346dc57abe4404beb855464
834e4f86fc8d403249913256a64918250d3434ed
refs/heads/master
2023-04-18T04:03:41.893938
2021-05-05T20:00:44
2021-05-05T20:00:44
308,728,317
0
2
null
null
null
null
UTF-8
Java
false
false
826
java
package references.socialnetwork; import java.util.ArrayList; import java.util.List; public class Member { private String name; private List<Member> connections = new ArrayList<>(); public Member(String name) { this.name = name; } public String getName() { return name; } public List<Member> getConnections() { return connections; } public void connectMember (Member member) { connections.add(member); } private List<String> connectedNames() { List<String> connectedNames = new ArrayList<>(); for (Member member : connections) { connectedNames.add(member.getName()); } return connectedNames; } @Override public String toString(){ return name + "-" + connectedNames(); } }
[ "kovacseni@gmail.com" ]
kovacseni@gmail.com
ac7e53c7b56c377cea9047f5d89298ef947f4bb2
a280aa9ac69d3834dc00219e9a4ba07996dfb4dd
/regularexpress/home/weilaidb/work/java/je-6.4.25/src/com/sleepycat/je/recovery/CheckpointEnd.java
cadcdf920e18d5cd9d096ee52f12796aeae61179
[]
no_license
weilaidb/PythonExample
b2cc6c514816a0e1bfb7c0cbd5045cf87bd28466
798bf1bdfdf7594f528788c4df02f79f0f7827ce
refs/heads/master
2021-01-12T13:56:19.346041
2017-07-22T16:30:33
2017-07-22T16:30:33
68,925,741
4
2
null
null
null
null
UTF-8
Java
false
false
295
java
package com.sleepycat.je.recovery; import java.nio.ByteBuffer; import java.util.Calendar; import com.sleepycat.je.log.LogUtils; import com.sleepycat.je.log.Loggable; import com.sleepycat.je.utilint.DbLsn; import com.sleepycat.je.utilint.Timestamp; public class CheckpointEnd implements Loggable
[ "weilaidb@localhost.localdomain" ]
weilaidb@localhost.localdomain
b2cc8200d227e34605a5353b4b55f5daf143c8d2
22e506ee8e3620ee039e50de447def1e1b9a8fb3
/java_src/com/j256/ormlite/stmt/mapped/MappedRefresh.java
9992e78c87a3004c0eec926a44f49c6c72ca3bf5
[]
no_license
Qiangong2/GraffitiAllianceSource
477152471c02aa2382814719021ce22d762b1d87
5a32de16987709c4e38594823cbfdf1bd37119c5
refs/heads/master
2023-07-04T23:09:23.004755
2021-08-11T18:10:17
2021-08-11T18:10:17
395,075,728
0
0
null
null
null
null
UTF-8
Java
false
false
1,895
java
package com.j256.ormlite.stmt.mapped; import com.j256.ormlite.dao.ObjectCache; import com.j256.ormlite.field.FieldType; import com.j256.ormlite.p083db.DatabaseType; import com.j256.ormlite.support.DatabaseConnection; import com.j256.ormlite.table.TableInfo; import java.sql.SQLException; public class MappedRefresh<T, ID> extends MappedQueryForId<T, ID> { private MappedRefresh(TableInfo<T, ID> tableInfo, String statement, FieldType[] argFieldTypes, FieldType[] resultFieldTypes) { super(tableInfo, statement, argFieldTypes, resultFieldTypes, "refresh"); } /* JADX DEBUG: Multi-variable search result rejected for r8v0, resolved type: com.j256.ormlite.stmt.mapped.MappedRefresh<T, ID> */ /* JADX WARN: Multi-variable type inference failed */ public int executeRefresh(DatabaseConnection databaseConnection, T data, ObjectCache objectCache) throws SQLException { Object execute = super.execute(databaseConnection, this.idField.extractJavaFieldValue(data), null); if (execute == null) { return 0; } FieldType[] fieldTypeArr = this.resultsFieldTypes; for (FieldType fieldType : fieldTypeArr) { if (fieldType != this.idField) { fieldType.assignField(data, fieldType.extractJavaFieldValue(execute), false, objectCache); } } return 1; } public static <T, ID> MappedRefresh<T, ID> build(DatabaseType databaseType, TableInfo<T, ID> tableInfo) throws SQLException { FieldType idField = tableInfo.getIdField(); if (idField == null) { throw new SQLException("Cannot refresh " + tableInfo.getDataClass() + " because it doesn't have an id field"); } return new MappedRefresh<>(tableInfo, buildStatement(databaseType, tableInfo, idField), new FieldType[]{tableInfo.getIdField()}, tableInfo.getFieldTypes()); } }
[ "sassafrass@fasizzle.com" ]
sassafrass@fasizzle.com
048cd3b9948ea607bb8fe829fd3da5a0484bfc68
c9fa31aad25798733108b03bf56e9e5c1f902038
/app/src/main/java/me/zhanghai/android/douya/ui/BaseListFragment.java
631e45284b4f916428c7e5e0db26a2e6c5b0036f
[ "Apache-2.0" ]
permissive
ybhgl/Douya
6fd4774e5a318877f2bdff5bc052e988e80fd8b9
e304824d6a9a7d07d63e6cb0f0a9ffe397372339
refs/heads/master
2020-04-17T07:02:09.201307
2018-12-04T09:20:27
2018-12-04T09:20:27
166,350,790
1
0
null
2019-01-18T05:45:18
2019-01-18T05:45:18
null
UTF-8
Java
false
false
5,324
java
/* * Copyright (c) 2017 Zhang Hai <Dreaming.in.Code.ZH@Gmail.com> * All Rights Reserved. */ package me.zhanghai.android.douya.ui; import android.app.Activity; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.widget.FriendlySwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ProgressBar; import java.util.List; import butterknife.BindView; import butterknife.ButterKnife; import me.zhanghai.android.douya.R; import me.zhanghai.android.douya.content.MoreListResourceFragment; import me.zhanghai.android.douya.network.api.ApiError; import me.zhanghai.android.douya.util.LogUtils; import me.zhanghai.android.douya.util.ToastUtils; import me.zhanghai.android.douya.util.ViewUtils; public abstract class BaseListFragment<T> extends Fragment { @BindView(R.id.swipe_refresh) protected FriendlySwipeRefreshLayout mSwipeRefreshLayout; @BindView(R.id.list) protected RecyclerView mList; @BindView(R.id.progress) protected ProgressBar mProgress; protected SimpleAdapter<T, ?> mItemAdapter; protected LoadMoreAdapter mAdapter; protected MoreListResourceFragment<?, List<T>> mResource; @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.base_list_fragment, container, false); } @Override public void onViewCreated(@NonNull View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); ButterKnife.bind(this, view); } @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); mResource = onAttachResource(); mSwipeRefreshLayout.setOnRefreshListener(this::onSwipeRefresh); // TODO: OK? //mList.setHasFixedSize(true); mList.setItemAnimator(new NoChangeAnimationItemAnimator()); mList.setLayoutManager(onCreateLayoutManager()); mItemAdapter = onCreateAdapter(); if (mResource.has()) { mItemAdapter.replace(mResource.get()); } mAdapter = new LoadMoreAdapter(mItemAdapter); mList.setAdapter(mAdapter); onAttachScrollListener(); updateRefreshing(); } protected RecyclerView.LayoutManager onCreateLayoutManager() { return new LinearLayoutManager(getActivity()); } abstract protected SimpleAdapter<T, ?> onCreateAdapter(); protected void onAttachScrollListener() { mList.addOnScrollListener(new OnVerticalScrollListener() { @Override public void onScrolledToBottom() { mResource.load(true); } }); } @Override public void onDestroy() { super.onDestroy(); mResource.detach(); } protected abstract MoreListResourceFragment<?, List<T>> onAttachResource(); protected void onLoadListStarted() { updateRefreshing(); } protected void onLoadListFinished() { updateRefreshing(); } protected void onLoadListError(ApiError error) { LogUtils.e(error.toString()); Activity activity = getActivity(); ToastUtils.show(ApiError.getErrorString(error, activity), activity); } protected void onListChanged(List<T> newList) { mItemAdapter.replace(newList); //noinspection unchecked onListUpdated(mResource.get()); } protected void onListAppended(List<T> appendedList) { mItemAdapter.addAll(appendedList); //noinspection unchecked onListUpdated(mResource.get()); } protected void onItemChanged(int position, T newItem) { mItemAdapter.set(position, newItem); //noinspection unchecked onListUpdated(mResource.get()); } protected void onItemInserted(int position, T insertedItem) { mItemAdapter.add(position, insertedItem); //noinspection unchecked onListUpdated(mResource.get()); } protected void onItemRemoved(int position) { mItemAdapter.remove(position); //noinspection unchecked onListUpdated(mResource.get()); } protected void onListUpdated(List<T> list) {} protected void onItemWriteFinished(int position) { mItemAdapter.notifyItemChanged(position); } protected void onItemWriteStarted(int position) { mItemAdapter.notifyItemChanged(position); } private void updateRefreshing() { boolean loading = mResource.isLoading(); boolean empty = mResource.isEmpty(); boolean loadingMore = mResource.isLoadingMore(); mSwipeRefreshLayout.setRefreshing(loading && (mSwipeRefreshLayout.isRefreshing() || !empty) && !loadingMore); ViewUtils.setVisibleOrGone(mProgress, loading && empty); mAdapter.setLoading(loading && !empty && loadingMore); } protected void onSwipeRefresh() { mResource.load(false); } }
[ "dreaming.in.code.zh@gmail.com" ]
dreaming.in.code.zh@gmail.com
cdee919591a0bf5e442cecc7d203da4af7e4af67
719cf27ec2c7fee79be76fc751f1d280ecd73885
/consumer/src/main/java/org/gatein/wsrp/consumer/migration/ExportInfo.java
ca5d396299c787ac5b6fdff61b866fa1c6168230
[]
no_license
gatein/gatein-wsrp
1b2d9c3e63be553da00c7fe2b5c3d1adba5afede
fa0edeed1b82763b4d7bbfc82233e8cae5a73918
refs/heads/master
2020-12-23T01:29:45.344725
2016-09-20T11:54:04
2016-09-20T11:54:04
4,052,579
0
4
null
2017-07-19T13:20:19
2012-04-17T13:11:29
Java
UTF-8
Java
false
false
3,220
java
/* * JBoss, a division of Red Hat * Copyright 2010, Red Hat Middleware, LLC, and individual * contributors as indicated by the @authors tag. See the * copyright.txt in the distribution for a full listing of * individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.gatein.wsrp.consumer.migration; import org.gatein.common.util.ParameterValidation; import javax.xml.namespace.QName; import java.util.ArrayList; import java.util.List; import java.util.Locale; import java.util.SortedMap; import java.util.TreeMap; /** * Provides metadata information about the result of an export operation on a remote producer. * * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a> * @version $Revision$ */ public class ExportInfo extends BaseMigrationInfo { private final byte[] exportContext; private long expirationTime; private final SortedMap<String, byte[]> handleToExportedState; private static final SortedMap<String, byte[]> EMPTY_EXPORTED = new TreeMap<String, byte[]>(); public ExportInfo(long exportTime, SortedMap<QName, List<String>> errorCodeToHandles, SortedMap<String, byte[]> handleToState, byte[] exportContext) { super(exportTime, errorCodeToHandles); if (ParameterValidation.existsAndIsNotEmpty(handleToState)) { this.handleToExportedState = handleToState; } else { handleToExportedState = EMPTY_EXPORTED; } this.exportContext = exportContext; } public long getExpirationTime() { return expirationTime; } public String getHumanReadableExpirationTime(Locale locale) { return getHumanReadableTime(locale, expirationTime); } public List<String> getExportedPortletHandles() { return new ArrayList<String>(handleToExportedState.keySet()); } public byte[] getPortletStateFor(String portletHandle) { return handleToExportedState.get(portletHandle); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ExportInfo that = (ExportInfo)o; if (exportTime != that.exportTime) { return false; } return true; } @Override public int hashCode() { return (int)(exportTime ^ (exportTime >>> 32)); } public byte[] getExportContext() { return exportContext; } }
[ "metacosm@gmail.com" ]
metacosm@gmail.com
18cddb45d1122df7d755f0deb98c3e8a280267d0
bab5d3d1d1189886d76021caf817fa5654988094
/pousse-cafe-core/src/main/java/poussecafe/runtime/AttributesValidator.java
de1335df0e07fc1e16c1593c9a9cecb1fefe01aa
[ "Apache-2.0" ]
permissive
pousse-cafe/pousse-cafe
911cb08360e8624760ed191b678b9563f35b63a1
1f5339e0765ed29e7bd145a6c178ef0e14001850
refs/heads/master
2022-12-21T12:27:54.213701
2022-12-14T07:31:21
2022-12-14T07:31:21
79,997,885
6
4
Apache-2.0
2022-12-14T07:31:22
2017-01-25T08:55:21
Java
UTF-8
Java
false
false
2,921
java
package poussecafe.runtime; import java.util.Map; import java.util.Map.Entry; import java.util.Objects; import java.util.Optional; import java.util.function.BooleanSupplier; import poussecafe.util.InstanceField; import static poussecafe.util.ReflectionUtils.access; public class AttributesValidator { public void validOrElseThrow(Object container) { var accessor = access(container); for(Entry<String, ValidationType> attribute : attributes.entrySet()) { var attributeName = attribute.getKey(); var validationType = attribute.getValue(); AttributeMethod attributeMethod = new AttributeMethod.Builder() .containerClass(container.getClass()) .attributeName(attributeName) .build(); Optional<ValidationType> overridingValidationType = attributeMethod.validationType(); Optional<String> fieldName = attributeMethod.fieldName(); if(overridingValidationType.isPresent()) { validationType = overridingValidationType.get(); } var field = accessor.instanceField(fieldName.orElse(attributeName)); if(validationType == ValidationType.NONE) { // NoOp } else if(validationType == ValidationType.NOT_NULL) { requireNonNull(field, attributeName + " value cannot be null"); } else if(validationType == ValidationType.PRESENT) { requirePresent(field, attributeName + " field not found"); } else { throw new UnsupportedOperationException("Unsupported validation type " + validationType); } } } private Map<String, ValidationType> attributes; private void requireNonNull(InstanceField field, String errorMessage) { require(() -> field.isPresent() && field.get() != null, errorMessage); } private void require(BooleanSupplier predicate, String errorMessage) { if(!predicate.getAsBoolean()) { throw new IllegalArgumentException(errorMessage); } } private void requirePresent(InstanceField field, String errorMessage) { require(field::isPresent, errorMessage); } public static class Builder { private AttributesValidator validator = new AttributesValidator(); public AttributesValidator build() { Objects.requireNonNull(validator.attributes); return validator; } public Builder attributes(Map<String, ValidationType> attributes) { validator.attributes = attributes; return this; } public Builder definition(Class<?> attributesDefinition) { validator.attributes = AttributesValidatorAttributesFactory.build(attributesDefinition); return this; } } private AttributesValidator() { } }
[ "g.dethier@gmail.com" ]
g.dethier@gmail.com
04ee06fc9a6601c36936c65fd6d5bc7c3e079a19
372623bb8e3ce11adf0705961581c9df8ebb60ee
/jsignpdf-itxt/www/examples/com/lowagie/examples/fonts/getting/TrueType.java
a7043137595a1ac867de98f6f4b47080d0a1f5ab
[]
no_license
vovodroid/jsignpdf
9279f9b9a38405b8f43ba38bf25828c944350bdb
de56df122bb362ccefe94fa168f90f3dd82a8759
refs/heads/master
2021-01-21T03:30:29.776376
2015-06-02T09:52:02
2015-06-04T03:08:00
26,670,980
1
2
null
null
null
null
UTF-8
Java
false
false
2,394
java
/* * $Id: TrueType.java,v 1.1 2010/04/14 17:50:51 kwart Exp $ * * This code is part of the 'iText Tutorial'. * You can find the complete tutorial at the following address: * http://itextdocs.lowagie.com/tutorial/ * * This code is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * itext-questions@lists.sourceforge.net */ package com.lowagie.examples.fonts.getting; import java.io.FileOutputStream; import java.io.IOException; import com.lowagie.text.Document; import com.lowagie.text.DocumentException; import com.lowagie.text.Font; import com.lowagie.text.Paragraph; import com.lowagie.text.pdf.BaseFont; import com.lowagie.text.pdf.PdfWriter; /** * Embedding True Type fonts. */ public class TrueType { /** * Embedding True Type Fonts. * @param args no arguments needed */ public static void main(String[] args) { System.out.println("True Types (embedded)"); // step 1: creation of a document-object Document document = new Document(); try { // step 2: // we create a writer that listens to the document // and directs a PDF-stream to a file PdfWriter.getInstance(document, new FileOutputStream("truetype.pdf")); // step 3: we open the document document.open(); // step 4: we add content to the document BaseFont bfComic = BaseFont.createFont("c:\\windows\\fonts\\comic.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED); Font font = new Font(bfComic, 12); String text1 = "This is the quite popular True Type font 'Comic'."; String text2 = "Some greek characters: \u0393\u0394\u03b6"; String text3 = "Some cyrillic characters: \u0418\u044f"; document.add(new Paragraph(text1, font)); document.add(new Paragraph(text2, font)); document.add(new Paragraph(text3, font)); } catch(DocumentException de) { System.err.println(de.getMessage()); } catch(IOException ioe) { System.err.println(ioe.getMessage()); } // step 5: we close the document document.close(); } }
[ "josef.cacek@gmail.com" ]
josef.cacek@gmail.com
e6126fd6089fe878e83f0f2c9159954d03beecba
96f8d42c474f8dd42ecc6811b6e555363f168d3e
/budejie/sources/com/budejie/www/util/BudejieDownloadHelper$2.java
2a6376a70e39319312ed5b0a9d0b1203886a372e
[]
no_license
aheadlcx/analyzeApk
050b261595cecc85790558a02d79739a789ae3a3
25cecc394dde4ed7d4971baf0e9504dcb7fabaca
refs/heads/master
2020-03-10T10:24:49.773318
2018-04-13T09:44:45
2018-04-13T09:44:45
129,332,351
6
2
null
null
null
null
UTF-8
Java
false
false
521
java
package com.budejie.www.util; import android.app.Dialog; import android.view.View; import android.view.View.OnClickListener; class BudejieDownloadHelper$2 implements OnClickListener { final /* synthetic */ BudejieDownloadHelper$a a; final /* synthetic */ Dialog b; BudejieDownloadHelper$2(BudejieDownloadHelper$a budejieDownloadHelper$a, Dialog dialog) { this.a = budejieDownloadHelper$a; this.b = dialog; } public void onClick(View view) { this.a.a(view, this.b); } }
[ "aheadlcxzhang@gmail.com" ]
aheadlcxzhang@gmail.com
b6f2cb57d5a3925b2611de5a5339833aa6a22366
ca59718f60865008bb8909094a9e75f78c003a92
/src/main/java/org/onvif/ver10/schema/FindMetadataResultList.java
78b10c42353aaa21dc1c6432d9668b6d3e3bfe98
[]
no_license
yanxinorg/MyPTZTest
ea6a3457796d320e6f45393634fc428905bf9758
882448f7bfe3c191f5b3951d31178e7fcabb9944
refs/heads/master
2021-04-03T08:01:19.247051
2018-03-12T08:28:43
2018-03-12T08:28:43
124,856,618
3
1
null
null
null
null
UTF-8
Java
false
false
2,743
java
// // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 generiert // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // �nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. // Generiert: 2014.02.04 um 12:22:03 PM CET // package org.onvif.ver10.schema; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p> * Java-Klasse f�r FindMetadataResultList complex type. * * <p> * Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * * <pre> * <complexType name="FindMetadataResultList"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="SearchState" type="{http://www.onvif.org/ver10/schema}SearchState"/> * <element name="Result" type="{http://www.onvif.org/ver10/schema}FindMetadataResult" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "FindMetadataResultList", propOrder = { "searchState", "result" }) public class FindMetadataResultList { @XmlElement(name = "SearchState", required = true) protected SearchState searchState; @XmlElement(name = "Result") protected List<FindMetadataResult> result; /** * Ruft den Wert der searchState-Eigenschaft ab. * * @return possible object is {@link SearchState } * */ public SearchState getSearchState() { return searchState; } /** * Legt den Wert der searchState-Eigenschaft fest. * * @param value * allowed object is {@link SearchState } * */ public void setSearchState(SearchState value) { this.searchState = value; } /** * Gets the value of the result property. * * <p> * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the result property. * * <p> * For example, to add a new item, do as follows: * * <pre> * getResult().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list {@link FindMetadataResult } * * */ public List<FindMetadataResult> getResult() { if (result == null) { result = new ArrayList<FindMetadataResult>(); } return this.result; } }
[ "yanxinorg@163.com" ]
yanxinorg@163.com
6acde90f7135a115a70ffc2b60cb3cfc38481f0b
8212d4f7e302cbd8735cb49759117cd2e8267684
/whois-commons/src/test/java/net/ripe/db/whois/common/rpsl/RpslObjectFilterTest.java
54d26aab785dfe7b287346f2c01f5117be08baf7
[ "BSD-3-Clause" ]
permissive
zigri2612/whois
e05a087c1a20ff03176cab3634d2cca79e0fca4b
11f4f3505c04c9a32997794905d679e22fa0d60b
refs/heads/master
2021-01-23T23:56:05.558802
2015-12-21T04:05:56
2015-12-21T04:05:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,861
java
package net.ripe.db.whois.common.rpsl; import org.junit.Before; import org.junit.Test; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; public class RpslObjectFilterTest { RpslObject mntner; RpslObjectFilter subject; @Before public void setUp() throws Exception { mntner = RpslObject.parse("" + "mntner: DEV-MNT\n" + "descr: DEV maintainer\n" + "admin-c: VM1-DEV\n" + "tech-c: VM1-DEV\n" + "upd-to: v.m@example.net\n" + "mnt-nfy: auto@example.net\n" + "auth: MD5-PW $1$q8Su3Hq/$rJt5M3TNLeRE4UoCh5bSH/\n" + "remarks: password: secret\n" + "mnt-by: DEV-MNT\n" + "referral-by: DEV-MNT\n" + "changed: BECHA@example.net 20101010\n" + "source: DEV\n" ); subject = new RpslObjectFilter(mntner); } @Test(expected = AuthenticationException.class) public void getCertificateFromKeyCert() { subject.getCertificateFromKeyCert(); } @Test public void getSource() { assertThat(subject.getSource().toString(), is("DEV")); } @Test public void isFiltered() { final boolean filtered = RpslObjectFilter.isFiltered(mntner); assertThat(filtered, is(false)); } @Test public void getCertificateOnlyOneCertifAttribute() { RpslObject keycert = RpslObject.parse( "key-cert: X509-1\n" + "certif: -----BEGIN CERTIFICATE-----\n" + " MIIHaTCCBlGgAwIBAgICGSowDQYJKoZIhvcNAQEFBQAwgYwxCzAJBgNVBAYTAklM\n" + " -----END CERTIFICATE-----"); final String certificate = (new RpslObjectFilter(keycert)).getCertificateFromKeyCert(); assertThat(certificate, is( "-----BEGIN CERTIFICATE-----\n" + "MIIHaTCCBlGgAwIBAgICGSowDQYJKoZIhvcNAQEFBQAwgYwxCzAJBgNVBAYTAklM\n" + "-----END CERTIFICATE-----\n")); } @Test public void getCertificateMultipleCertifAttributes() { RpslObject keycert = RpslObject.parse( "key-cert: X509-1\n" + "certif: -----BEGIN CERTIFICATE-----\n" + "certif: MIIHaTCCBlGgAwIBAgICGSowDQYJKoZIhvcNAQEFBQAwgYwxCzAJBgNVBAYTAklM\n" + "certif: -----END CERTIFICATE-----"); final String certificate = (new RpslObjectFilter(keycert)).getCertificateFromKeyCert(); assertThat(certificate, is( "-----BEGIN CERTIFICATE-----\n" + "MIIHaTCCBlGgAwIBAgICGSowDQYJKoZIhvcNAQEFBQAwgYwxCzAJBgNVBAYTAklM\n" + "-----END CERTIFICATE-----\n")); } @Test public void certificateContinuationLines() { RpslObject keycert = RpslObject.parse( "key-cert: X509-1\n" + "certif: -----BEGIN CERTIFICATE-----\n" + " MIIHaTCCBlGgAwIBAgICGSowDQYJKoZIhvcNAQEFBQAwgYwxCzAJBgNVBAYTAklM\n" + "\t MRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSswKQYDVQQLEyJTZWN1cmUgRGlnaXRh\n" + "+ -----END CERTIFICATE-----"); final String certificate = (new RpslObjectFilter(keycert)).getCertificateFromKeyCert(); assertThat(certificate, is( "-----BEGIN CERTIFICATE-----\n" + "MIIHaTCCBlGgAwIBAgICGSowDQYJKoZIhvcNAQEFBQAwgYwxCzAJBgNVBAYTAklM\n" + "MRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSswKQYDVQQLEyJTZWN1cmUgRGlnaXRh\n" + "-----END CERTIFICATE-----\n")); } }
[ "agoston@ripe.net" ]
agoston@ripe.net
53d1536ac238c7aab06b1f5ed7e7c8ea35ec798e
180e78725121de49801e34de358c32cf7148b0a2
/dataset/protocol1/commons-lang/learning/6214/UnicodeUnescaper.java
b8142b991e627d5e1cf5906186a7263c016435b2
[]
no_license
ASSERT-KTH/synthetic-checkstyle-error-dataset
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
40c057e1669584bfc6fecf789b5b2854660222f3
refs/heads/master
2023-03-18T12:50:55.410343
2019-01-25T09:54:39
2019-01-25T09:54:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,733
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.lang3.text.translate; import java.io.IOException; import java.io.Writer; /** * Translates escaped Unicode values of the form \\u+\d\d\d\d back to * Unicode. It supports multiple 'u' characters and will work with or * without the +. * * @since 3.0 * @deprecated as of 3.6, use commons-text * <a href="https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/text/translate/UnicodeUnescaper.html"> * UnicodeUnescaper</a> instead */ @Deprecated public class UnicodeUnescaper extends CharSequenceTranslator { /** * {@inheritDoc} */ @Override public int translate(final CharSequence input, final int index, final Writer out) throws IOException { if (input.charAt(index) == '\\' && index + 1 < input.length() && input.charAt(index + 1) == 'u') { // consume optional additional 'u' chars int i = 2; while (index + i < input.length() && input.charAt(index + i) == 'u') { i++; } if (index + i < input.length() && input.charAt(index + i) == '+') { i++; } if (index + i + 4 <= input.length()) { // Get 4 hex digits final CharSequence unicode = input.subSequence(index + i, index + i + 4); try { final int value = Integer.parseInt(unicode.toString(), 16); out.write((char) value); } catch (final NumberFormatException nfe) { throw new IllegalArgumentException("Unable to parse unicode value: " + unicode, nfe); } return i + 4; } throw new IllegalArgumentException("Less than 4 hex digits in unicode value: '" + input.subSequence(index, input.length()) + "' due to end of CharSequence"); } return 0; } }
[ "bloriot97@gmail.com" ]
bloriot97@gmail.com
19ea027490259e77c92409c809272577f2a53a39
220dd3d627d6a68fe9592c404717b4d68fe6bab3
/src/bi/view/cells/CMCellGroupHeaderTDStructure.java
19abd50a4aeb7b7584a5fd74aa2582743e7bcdf6
[]
no_license
sergioemv/bin.dev.java.casemaker
b67fe8d2687bfc9c40a22e4788dba259f4509a5a
85fefdad3e51f2c620f7276c3f03a25b6d0ab70b
refs/heads/master
2023-03-28T13:28:04.979315
2021-04-04T03:53:28
2021-04-04T03:53:28
354,339,690
0
0
null
null
null
null
UTF-8
Java
false
false
217
java
/* Generated by Together */ package bi.view.cells; import java.util.Vector; public class CMCellGroupHeaderTDStructure extends Vector { public CMCellGroupHeaderTDStructure(int num) { super(num); } }
[ "sergioemv@gmail.com" ]
sergioemv@gmail.com
ea0ef1ccfe2063a63f700476913a3b0c69bf437d
2ccb4c6f253ec1e7418d468a664a2e31f62c3784
/app/src/main/java/com/bibinet/biunion/project/adapter/CityAdapter.java
04f1642248e179456160fa3aa16509c86138997f
[]
no_license
zhangyalong123feiyu/BiUnion
8207e1cae667a93a0ca62ceca7bddaaf60e6131b
5452c654c3efb929e714d0b8928eef902db4ce8a
refs/heads/master
2021-01-21T10:00:27.173330
2017-07-18T02:32:16
2017-07-18T02:32:19
91,677,294
2
0
null
null
null
null
UTF-8
Java
false
false
830
java
package com.bibinet.biunion.project.adapter; import android.content.Context; import com.bibinet.biunion.R; import com.bibinet.biunion.project.bean.cityselectbean.CityBean; import com.bibinet.biunion.project.utils.cityselectutil.CommonAdapter; import com.bibinet.biunion.project.utils.cityselectutil.Constance; import com.bibinet.biunion.project.utils.cityselectutil.ViewHolder; import java.util.List; /** * Created by zp on 2016/12/13. */ public class CityAdapter extends CommonAdapter<CityBean> { private int locateState= Constance.LOCATING; public CityAdapter(Context context, int layoutId, List<CityBean> datas) { super(context, layoutId, datas); } @Override public void convert(ViewHolder holder, CityBean cityBean) { holder.setText(R.id.tvCity,cityBean.getCityName()); } }
[ "409812937@qq.com" ]
409812937@qq.com
0d8aeed603c91f1d273fd1163094896ed44e5a28
f77d04f1e0f64a6a5e720ce24b65b1ccb3c546d2
/zyj-hec-master/zyj-hec/src/main/java/com/hand/hec/exp/dto/ExpMoEmpGroup.java
13b4b9eb7ba9f4b059647ae603bde0f667ffbea5
[]
no_license
floodboad/zyj-hssp
3139a4e73ec599730a67360cd04aa34bc9eaf611
dc0ef445935fa48b7a6e86522ec64da0042dc0f3
refs/heads/master
2023-05-27T21:28:01.290266
2020-01-03T06:21:59
2020-01-03T06:29:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,961
java
package com.hand.hec.exp.dto; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Transient; import javax.validation.constraints.NotNull; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.ToString; import org.hibernate.validator.constraints.Length; import org.hibernate.validator.constraints.NotEmpty; import com.hand.hap.core.annotation.MultiLanguage; import com.hand.hap.core.annotation.MultiLanguageField; import com.hand.hap.mybatis.annotation.ExtensionAttribute; import com.hand.hap.mybatis.common.query.Where; import com.hand.hap.system.dto.BaseDTO; /** * <p> * 员工组定义Dto * </p> * * @author xiuxian.wu 2019/03/06 14:48 */ @Getter @Setter @ToString @NoArgsConstructor @ExtensionAttribute(disable = true) @MultiLanguage @Table(name = "exp_mo_emp_group") public class ExpMoEmpGroup extends BaseDTO { public static final String FIELD_MO_EMP_GROUP_ID = "moEmpGroupId"; public static final String FIELD_MAG_ORG_ID = "magOrgId"; public static final String FIELD_MO_EMP_GROUP_CODE = "moEmpGroupCode"; public static final String FIELD_DESCRIPTION = "description"; public static final String FIELD_ENABLED_FLAG = "enabledFlag"; public static final String FIELD_EMPLOYEE_ID = "employeeId"; @Id @GeneratedValue @Where private Long moEmpGroupId; /** * 管理组织ID */ @NotNull @Where private Long magOrgId; /** * 员工组代码 */ @NotEmpty @Length(max = 30) @Where private String moEmpGroupCode; /** * 描述ID */ @NotEmpty @Length(max = 500) @MultiLanguageField @Where private String description; /** * 启用标志 */ @NotEmpty @Length(max = 1) @Where private String enabledFlag; /** * 员工ID */ @Transient private Long employeeId; }
[ "1961187382@qq.com" ]
1961187382@qq.com
60bb328748121dfedd5005c48fddb151fc681c7d
8bc41e1a19b37a19d5cf9e1c06c5a7ce206ff70e
/infra/franken-dom/src/main/java/kr/co/future/sslvpn/model/api/impl/ServerApiImpl.java
fde0ea70b893121d716b0518fde7b3fdc6d4ef42
[]
no_license
pkseop/franken
5121449f406da7ad30764f8e77f01bd23ac53664
bbb4c736c35a0c5e6ba04d0845a3e4926848e1dd
refs/heads/master
2021-01-22T01:11:21.956563
2017-09-02T15:48:45
2017-09-02T15:48:45
102,206,586
0
0
null
null
null
null
UTF-8
Java
false
false
3,329
java
package kr.co.future.sslvpn.model.api.impl; import java.util.Date; import java.util.List; import org.apache.felix.ipojo.annotations.Component; import org.apache.felix.ipojo.annotations.Provides; import org.apache.felix.ipojo.annotations.Requires; import kr.co.future.confdb.Config; import kr.co.future.confdb.ConfigDatabase; import kr.co.future.confdb.ConfigIterator; import kr.co.future.confdb.ConfigService; import kr.co.future.confdb.Predicates; import kr.co.future.dom.api.DefaultEntityEventProvider; import kr.co.future.msgbus.MsgbusException; import kr.co.future.sslvpn.model.IpEndpoint; import kr.co.future.sslvpn.model.Server; import kr.co.future.sslvpn.model.api.ServerApi; @Component(name = "frodo-server-api") @Provides public class ServerApiImpl extends DefaultEntityEventProvider<Server> implements ServerApi { @Requires private ConfigService conf; @Override public List<Server> getServers() { ConfigDatabase db = conf.ensureDatabase("frodo"); ConfigIterator it = db.findAll(Server.class); return (List<Server>) it.getDocuments(Server.class); } @Override public Server getServer(String guid) { ConfigDatabase db = conf.ensureDatabase("frodo"); Config c = db.findOne(Server.class, Predicates.field("guid", guid)); if (c == null) return null; return c.getDocument(Server.class); } @Override public void createServer(Server server) { ConfigDatabase db = conf.ensureDatabase("frodo"); server.setCreateDateTime(new Date()); server.setUpdateDateTime(new Date()); db.add(server); fireEntityAdded("localhost", server); } @Override public void updateServer(Server server) { ConfigDatabase db = conf.ensureDatabase("frodo"); Config c = db.findOne(Server.class, Predicates.field("guid", server.getGuid())); if (c == null) throw new IllegalStateException("server not found: " + server.getGuid()); Server old = c.getDocument(Server.class); old.setName(server.getName()); old.setDescription(server.getDescription()); old.setOperator(server.getOperator()); old.setPhone(server.getPhone()); old.setUpdateDateTime(new Date()); old.getEndpoints().clear(); for (IpEndpoint e : server.getEndpoints()) old.getEndpoints().add(e); db.update(c, old, true); fireEntityUpdated("localhost", server); } @Override public void removeServer(String id) { ConfigDatabase db = conf.ensureDatabase("frodo"); Config c = db.findOne(Server.class, Predicates.field("guid", id)); if (c == null) throw new MsgbusException("frodo", "server-not-found"); Server server = c.getDocument(Server.class); db.remove(c, true); fireEntityRemoved("localhost", server); } @Override public void removeServers(List<String> ids) { ConfigDatabase db = conf.ensureDatabase("frodo"); ConfigIterator it = db.find(Server.class, Predicates.in("guid", ids)); List<Server> servers = (List<Server>) it.getDocuments(Server.class); if (servers.size() != ids.size()) throw new MsgbusException("frodo", "server-not-found"); it = db.find(Server.class, Predicates.in("guid", ids)); while (it.hasNext()) { Config c = it.next(); Server server = c.getDocument(Server.class); db.remove(c, true); fireEntityRemoved("localhost", server); } } }
[ "patchboys@MacBook-Pro.local" ]
patchboys@MacBook-Pro.local
c0a274a23b348cf34c58b76f233f7cc58d936ca9
a5d01febfd8d45a61f815b6f5ed447e25fad4959
/Source Code/5.5.1/sources/com/iqoption/core/ui/widget/b/b.java
022ef502e395423887fe5dce365e5b69555cfd23
[]
no_license
kkagill/Decompiler-IQ-Option
7fe5911f90ed2490687f5d216cb2940f07b57194
c2a9dbbe79a959aa1ab8bb7a89c735e8f9dbc5a6
refs/heads/master
2020-09-14T20:44:49.115289
2019-11-04T06:58:55
2019-11-04T06:58:55
223,236,327
1
0
null
2019-11-21T18:17:17
2019-11-21T18:17:16
null
UTF-8
Java
false
false
2,561
java
package com.iqoption.core.ui.widget.b; import android.view.MotionEvent; import android.view.View; import android.view.View.OnTouchListener; import kotlin.i; import kotlin.jvm.internal.h; @i(aXC = {1, 1, 11}, aXD = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u0000 \r2\u00020\u0001:\u0001\rB\u000f\u0012\b\b\u0002\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0018\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\fH\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u000e"}, aXE = {"Lcom/iqoption/core/ui/widget/viewinterface/OnTouchAlphaEffect;", "Landroid/view/View$OnTouchListener;", "alpha", "", "(F)V", "getAlpha", "()F", "onTouch", "", "v", "Landroid/view/View;", "event", "Landroid/view/MotionEvent;", "Companion", "core_release"}) /* compiled from: OnTouchAlphaEffect.kt */ public final class b implements OnTouchListener { public static final a bgx = new a(); private final float alpha; @i(aXC = {1, 1, 11}, aXD = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\t\n\u0000\b†\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X‚T¢\u0006\u0002\n\u0000¨\u0006\u0005"}, aXE = {"Lcom/iqoption/core/ui/widget/viewinterface/OnTouchAlphaEffect$Companion;", "", "()V", "DURATION", "", "core_release"}) /* compiled from: OnTouchAlphaEffect.kt */ public static final class a { private a() { } public /* synthetic */ a(f fVar) { this(); } } public b() { this(0.0f, 1, null); } public b(float f) { this.alpha = f; } public /* synthetic */ b(float f, int i, f fVar) { if ((i & 1) != 0) { f = 0.5f; } this(f); } public boolean onTouch(View view, MotionEvent motionEvent) { h.e(view, "v"); h.e(motionEvent, "event"); if (motionEvent.getAction() == 0) { view.animate().alpha(this.alpha).setInterpolator(com.iqoption.core.graphics.animation.i.TI()).setDuration(150).start(); } else if (motionEvent.getAction() == 3 || motionEvent.getAction() == 1) { view.animate().alpha(1.0f).setInterpolator(com.iqoption.core.graphics.animation.i.TI()).setDuration(300).start(); } return false; } }
[ "yihsun1992@gmail.com" ]
yihsun1992@gmail.com
f74548398256ad3996fcb6c168824d40b7f7a9aa
f7225589426012257795b358127ba90886ccf932
/src/main/java/freenet/support/io/LineReadingInputStream.java
76e3da7fe932f95a0e219b2dfdca33d4623f9ec2
[]
no_license
SebastianWeetabix/fred-maven
db1b97692f862e68d47e2d303d13c4381ba0ac87
884f6a39c5432ae45ab922f9824f93d2cf25c283
refs/heads/master
2021-01-23T22:10:27.334433
2011-04-30T20:23:21
2011-04-30T20:23:21
1,589,630
1
0
null
null
null
null
UTF-8
Java
false
false
3,619
java
/* This code is part of Freenet. It is distributed under the GNU General * Public License, version 2 (or at your option any later version). See * http://www.gnu.org/ for further details of the GPL. */ package freenet.support.io; import java.io.FilterInputStream; import java.io.IOException; import java.io.InputStream; import freenet.support.HexUtil; /** * A FilterInputStream which provides readLine(). */ public class LineReadingInputStream extends FilterInputStream implements LineReader { public LineReadingInputStream(InputStream in) { super(in); } /** * Read a \n or \r\n terminated line of UTF-8 or ISO-8859-1. * @param maxLength The maximum length of a line. If a line is longer than this, we throw IOException rather * than keeping on reading it forever. * @param bufferSize The initial size of the read buffer. * @param utf If true, read as UTF-8, if false, read as ISO-8859-1. */ public String readLine(int maxLength, int bufferSize, boolean utf) throws IOException { if(maxLength < 1) return null; if(maxLength <= bufferSize) bufferSize = maxLength + 1; // Buffer too big, shrink it (add 1 for the optional \r) if(!markSupported()) return readLineWithoutMarking(maxLength, bufferSize, utf); byte[] buf = new byte[Math.max(Math.min(128, maxLength), Math.min(1024, bufferSize))]; int ctr = 0; mark(maxLength + 2); // in case we have both a \r and a \n while(true) { int x = read(buf, ctr, buf.length - ctr); if(x == -1) { if(ctr == 0) return null; return new String(buf, 0, ctr, utf ? "UTF-8" : "ISO-8859-1"); } // REDFLAG this is definitely safe with the above charsets, it may not be safe with some wierd ones. int end = ctr + x; for(; ctr < end; ctr++) { if(buf[ctr] == '\n') { String toReturn = ""; if(ctr != 0) { boolean removeCR = (buf[ctr - 1] == '\r'); toReturn = new String(buf, 0, (removeCR ? ctr - 1 : ctr), utf ? "UTF-8" : "ISO-8859-1"); } reset(); skip(ctr + 1); return toReturn; } if(ctr >= maxLength) throw new TooLongException("We reached maxLength="+maxLength+ " parsing\n "+HexUtil.bytesToHex(buf, 0, ctr) + "\n" + new String(buf, 0, ctr, utf ? "UTF-8" : "ISO-8859-1")); } if((buf.length < maxLength) && (buf.length - ctr < bufferSize)) { byte[] newBuf = new byte[Math.min(buf.length * 2, maxLength)]; System.arraycopy(buf, 0, newBuf, 0, ctr); buf = newBuf; } } } protected String readLineWithoutMarking(int maxLength, int bufferSize, boolean utf) throws IOException { if(maxLength < bufferSize) bufferSize = maxLength + 1; // Buffer too big, shrink it (add 1 for the optional \r) byte[] buf = new byte[Math.max(Math.min(128, maxLength), Math.min(1024, bufferSize))]; int ctr = 0; while(true) { int x = read(); if(x == -1) { if(ctr == 0) return null; return new String(buf, 0, ctr, utf ? "UTF-8" : "ISO-8859-1"); } // REDFLAG this is definitely safe with the above charsets, it may not be safe with some wierd ones. if(x == '\n') { if(ctr == 0) return ""; if(buf[ctr - 1] == '\r') ctr--; return new String(buf, 0, ctr, utf ? "UTF-8" : "ISO-8859-1"); } if(ctr >= maxLength) throw new TooLongException("We reached maxLength="+maxLength+ " parsing\n "+HexUtil.bytesToHex(buf, 0, ctr) + "\n" + new String(buf, 0, ctr, utf ? "UTF-8" : "ISO-8859-1")); if(ctr >= buf.length) { byte[] newBuf = new byte[Math.min(buf.length * 2, maxLength)]; System.arraycopy(buf, 0, newBuf, 0, buf.length); buf = newBuf; } buf[ctr++] = (byte) x; } } }
[ "freenet.10.technomation@recursor.net" ]
freenet.10.technomation@recursor.net
1b969b57ab7c7b0ca7f8eca0a7f6b8f7738560be
a069acd7abff87c04161a52dd5f0c69c1660ddac
/src/day46_Collections_part1/ArrayVSArrayList.java
d0457a53b3ff7f2a0292f3700e8d0ba6b1db0f57
[]
no_license
AdemTEN/OOP_Java
af2950095df3758d1c352516061f1c2e4ddf85f9
01747aa990c400c912ded97a94662623082b9dba
refs/heads/master
2022-12-24T03:24:01.637767
2020-09-23T20:10:53
2020-09-23T20:10:53
291,342,534
0
0
null
null
null
null
UTF-8
Java
false
false
670
java
package day46_Collections_part1; import java.util.ArrayList; import java.util.Collection; import java.util.List; public class ArrayVSArrayList { public static void main(String[] args) { int [] numsArray = {300,390,45,6,7}; String [] days = new String[7]; days[0] = "Moday"; Object[] obj = {2, "apple", true}; ArrayList<Integer> numberList = new ArrayList<>(); List<Integer> numberList2 = new ArrayList<>(); Collection<Integer> numberList3 = new ArrayList<>(); numberList3.add(40); numberList3.add(50); numberList3.add(100); System.out.println(numsArray[0]); System.out.println(numberList.get(0)); } }
[ "65685868+AdemTEN@users.noreply.github.com" ]
65685868+AdemTEN@users.noreply.github.com
19d91dcf013d3cd53581c7c124d24d1133a97ac2
fd3f1e7ed10e424286228904e4afae2dbbce7ab2
/src/main/java/com/hardik/bojack/service/MasterHouseService.java
c0a7008706860cfad8567339ba6778c462a74a23
[]
no_license
messaoudi-mounir/redis-caching-java-spring-boot
115ab4a6df1988bd936d2f80b032a532115ccc4b
d1083f8bc5fcb18a0e4608dd62ba6d621ef4b2b2
refs/heads/main
2023-06-20T03:24:58.486554
2021-07-06T03:12:04
2021-07-06T03:12:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,396
java
package com.hardik.bojack.service; import java.util.List; import java.util.UUID; import java.util.stream.Collectors; import org.springframework.cache.annotation.Cacheable; import org.springframework.stereotype.Service; import com.hardik.bojack.dto.HouseDto; import com.hardik.bojack.dto.WizardDto; import com.hardik.bojack.repository.MasterHouseRepository; import lombok.AllArgsConstructor; @Service @AllArgsConstructor public class MasterHouseService { private final MasterHouseRepository masterHouseRepository; public List<HouseDto> retreiveAll() { return masterHouseRepository .findAll().parallelStream().map(house -> HouseDto.builder().id(house.getId()) .createdAt(house.getCreatedAt()).name(house.getName()).updatedAt(house.getUpdatedAt()).build()) .collect(Collectors.toList()); } @Cacheable(value = "wizards", key = "#houseId") public List<WizardDto> retreiveWizardsByHouseId(final UUID houseId) { final var house = masterHouseRepository.findById(houseId).get(); return house.getWizards().parallelStream() .map(wizard -> WizardDto.builder().createdAt(wizard.getCreatedAt()).firstName(wizard.getFirstName()) .gender(wizard.getGender()).houseId(wizard.getHouseId()).id(wizard.getId()) .lastName(wizard.getLastName()).middleName(wizard.getMiddleName()) .updatedAt(wizard.getUpdatedAt()).build()) .collect(Collectors.toList()); } }
[ "hardik.behl7444@gmail.com" ]
hardik.behl7444@gmail.com
2b4701dc223cd13b8c269e1c0c1689a34baba6b2
b0cce84067ea5d37bf126bf671620a15b9d90890
/app/src/main/java/com/mouqu/zhailu/zhailu/ui/widget/StarBar.java
cc4c65e16a055d3f9c2125f057dad31ca71279da
[]
no_license
18668197127/ZhailuQB
f4df02dda885c5c8f19ef67857374f4b388542bd
846f5d29df4d2c2fa7bad2f6239a2e41701e2c11
refs/heads/master
2020-04-17T16:30:39.044861
2019-01-21T03:39:06
2019-01-21T03:39:06
166,743,120
0
0
null
null
null
null
UTF-8
Java
false
false
6,050
java
package com.mouqu.zhailu.zhailu.ui.widget; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Bitmap; import android.graphics.BitmapShader; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import com.mouqu.zhailu.zhailu.R; public class StarBar extends View { private int starDistance = 0; //星星间距 private int starCount = 5; //星星个数 private int starSize; //星星高度大小,星星一般正方形,宽度等于高度 private float starMark = 0.0F; //评分星星 private Bitmap starFillBitmap; //亮星星 private Drawable starEmptyDrawable; //暗星星 private OnStarChangeListener onStarChangeListener;//监听星星变化接口 private Paint paint; //绘制星星画笔 private boolean integerMark = false; public StarBar(Context context, AttributeSet attrs) { super(context, attrs); init(context, attrs); } public StarBar(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); init(context, attrs); } /** * 初始化UI组件 * * @param context * @param attrs */ private void init(Context context, AttributeSet attrs){ setClickable(true); TypedArray mTypedArray = context.obtainStyledAttributes(attrs, R.styleable.RatingBar); this.starDistance = (int) mTypedArray.getDimension(R.styleable.RatingBar_starDistance, 0); this.starSize = (int) mTypedArray.getDimension(R.styleable.RatingBar_starSize, 20); this.starCount = mTypedArray.getInteger(R.styleable.RatingBar_starCount, 5); this.starEmptyDrawable = mTypedArray.getDrawable(R.styleable.RatingBar_starEmpty); this.starFillBitmap = drawableToBitmap(mTypedArray.getDrawable(R.styleable.RatingBar_starFill)); mTypedArray.recycle(); paint = new Paint(); paint.setAntiAlias(true); paint.setShader(new BitmapShader(starFillBitmap, BitmapShader.TileMode.CLAMP, BitmapShader.TileMode.CLAMP)); } /** * 设置是否需要整数评分 * @param integerMark */ public void setIntegerMark(boolean integerMark){ this.integerMark = integerMark; } /** * 设置显示的星星的分数 * * @param mark */ public void setStarMark(float mark){ if (integerMark) { starMark = (int)Math.ceil(mark); }else { starMark = Math.round(mark * 10) * 1.0f / 10; } if (this.onStarChangeListener != null) { this.onStarChangeListener.onStarChange(starMark); //调用监听接口 } invalidate(); } /** * 获取显示星星的数目 * * @return starMark */ public float getStarMark(){ return starMark; } /** * 定义星星点击的监听接口 */ public interface OnStarChangeListener { void onStarChange(float mark); } /** * 设置监听 * @param onStarChangeListener */ public void setOnStarChangeListener(OnStarChangeListener onStarChangeListener){ this.onStarChangeListener = onStarChangeListener; } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); setMeasuredDimension(starSize * starCount + starDistance * (starCount - 1), starSize); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); if (starFillBitmap == null || starEmptyDrawable == null) { return; } for (int i = 0;i < starCount;i++) { starEmptyDrawable.setBounds((starDistance + starSize) * i, 0, (starDistance + starSize) * i + starSize, starSize); starEmptyDrawable.draw(canvas); } if (starMark > 1) { canvas.drawRect(0, 0, starSize, starSize, paint); if(starMark-(int)(starMark) == 0) { for (int i = 1; i < starMark; i++) { canvas.translate(starDistance + starSize, 0); canvas.drawRect(0, 0, starSize, starSize, paint); } }else { for (int i = 1; i < starMark - 1; i++) { canvas.translate(starDistance + starSize, 0); canvas.drawRect(0, 0, starSize, starSize, paint); } canvas.translate(starDistance + starSize, 0); canvas.drawRect(0, 0, starSize * (Math.round((starMark - (int) (starMark))*10)*1.0f/10), starSize, paint); } }else { canvas.drawRect(0, 0, starSize * starMark, starSize, paint); } } @Override public boolean onTouchEvent(MotionEvent event) { int x = (int) event.getX(); if (x < 0) x = 0; if (x > getMeasuredWidth()) x = getMeasuredWidth(); switch(event.getAction()){ case MotionEvent.ACTION_DOWN: { setStarMark(x*1.0f / (getMeasuredWidth()*1.0f/starCount)); break; } case MotionEvent.ACTION_MOVE: { setStarMark(x*1.0f / (getMeasuredWidth()*1.0f/starCount)); break; } case MotionEvent.ACTION_UP: { break; } } invalidate(); return super.onTouchEvent(event); } /** * drawable转bitmap * * @param drawable * @return */ private Bitmap drawableToBitmap(Drawable drawable) { if (drawable == null)return null; Bitmap bitmap = Bitmap.createBitmap(starSize, starSize, Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); drawable.setBounds(0, 0, starSize, starSize); drawable.draw(canvas); return bitmap; } }
[ "1013273644@qq.com" ]
1013273644@qq.com
327160ec972d38ed989af13712610d3007b1e01a
2088303ad9939663f5f8180f316b0319a54bc1a6
/src/main/java/com/lottery/lottype/dc/zjq/Dczjq10663.java
94098f2784fa0b3ec57c3816e290da324626fdab
[]
no_license
lichaoliu/lottery
f8afc33ccc70dd5da19c620250d14814df766095
7796650e5b851c90fce7fd0a56f994f613078e10
refs/heads/master
2022-12-23T05:30:22.666503
2019-06-10T13:46:38
2019-06-10T13:46:38
141,867,129
7
1
null
2022-12-16T10:52:50
2018-07-22T04:59:44
Java
UTF-8
Java
false
false
552
java
package com.lottery.lottype.dc.zjq; import java.math.BigDecimal; import java.util.List; import com.lottery.lottype.SplitedLot; public class Dczjq10663 extends DczjqX{ @Override public long getSingleBetAmount(String betcode, BigDecimal beishu, int oneAmount) { return getSingleBetAmountDF(betcode, beishu, oneAmount); } @Override public List<SplitedLot> splitByType(String betcode, int lotmulti, int oneAmount) { return splitByBetTypeDFN1(betcode, lotmulti, oneAmount); } @Override public int getPlayType() { return 663; } }
[ "1147149597@qq.com" ]
1147149597@qq.com
3991ac385032d5a61a22c0e1bb8ad8abd765d866
6252c165657baa6aa605337ebc38dd44b3f694e2
/org.eclipse.epsilon.egl.sync/Scalability-Tests/boiler-To-Generate-1000-Files/boiler-To-Generate-1000-Files/syncregions-1000Files/BoilerActuator618.java
5d2583252287f173c7fe461eb7f57860c31d02a3
[]
no_license
soha500/EglSync
00fc49bcc73f7f7f7fb7641d0561ca2b9a8ea638
55101bc781349bb14fefc178bf3486e2b778aed6
refs/heads/master
2021-06-23T02:55:13.464889
2020-12-11T19:10:01
2020-12-11T19:10:01
139,832,721
0
1
null
2019-05-31T11:34:02
2018-07-05T10:20:00
Java
UTF-8
Java
false
false
264
java
package syncregions; public class BoilerActuator618 { public int execute(int temperatureDifference618, boolean boilerStatus618) { //sync _bfpnGUbFEeqXnfGWlV2618, behaviour Half Change - return temperature - targetTemperature; //endSync } }
[ "sultanalmutairi@172.20.10.2" ]
sultanalmutairi@172.20.10.2
99a2043072a7a45538322c1babc34c92cf11ce09
4a4a68f3822f17b5e2cdd901decf65278ab205f4
/spring-mvc-param/src/main/java/com/hua/controller/ForwardController.java
cf08b1635650f25aeb865b6d785abe1377dc0cc3
[]
no_license
dearcode2018/spring
1fd075b0b8d7ec4f84492d4af15570a97ad9a77a
3c129a774836bbc06f2b86a3b9ff09acc08b64b5
refs/heads/master
2022-12-29T03:53:27.414603
2021-01-05T03:19:57
2021-01-05T03:19:57
129,203,719
0
0
null
2022-12-16T05:33:03
2018-04-12T06:27:08
Java
UTF-8
Java
false
false
4,205
java
/** * @filename ForwardController.java * @description * @version 1.0 * @author qianye.zheng */ package com.hua.controller; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.util.Map; import java.util.Set; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import com.hua.bean.Person; import com.hua.bean.ResultBean; import com.hua.constant.Constant; import com.hua.constant.UriConstant; import com.hua.util.DateTimeUtil; import com.hua.util.JacksonUtil; import com.hua.util.StringUtil; /** * @type ForwardController * @description 转发 * @author qianye.zheng */ @Controller @RequestMapping(UriConstant.FORWARD) public class ForwardController extends BaseController { /** * * @description GET转发 * @param request * @param response * @author qianye.zheng */ @RequestMapping(value = "/get", method = { RequestMethod.GET }) public void get(final HttpServletRequest request, final HttpServletResponse response) { // 从头部和url提取参数 String header1 = request.getHeader("X-AUTH"); String param1 = request.getParameter("name"); String param2 = request.getParameter("age"); String param3 = request.getParameter("sex"); String queryString = request.getQueryString(); System.out.println("header1 = " + header1); System.out.println("param1 = " + param1 + ", param2 = " + param2 + ", param3 = " + param3); try { if (StringUtil.isNotEmpty(queryString)) { // url解码 queryString = URLDecoder.decode(queryString, Constant.CHART_SET_UTF_8); System.out.println("queryString = " + queryString); } } catch (UnsupportedEncodingException e1) { e1.printStackTrace(); } // 响应 ResultBean result = new ResultBean(); result.setMessage("收到[" + param1 + "]的请求"); result.setMessageCode("205"); result.setSuccess(true); Person person = new Person(); person.setId("2001"); person.setUsername("王东22"); // 时间戳 // "lastLoginTime":1455591443154 person.setLastLoginTime(DateTimeUtil.getTimestamp()); // "utilDate":1455591443154 person.setUtilDate(DateTimeUtil.getDateTime()); // "sqlDate":"2016-02-16" person.setSqlDate(DateTimeUtil.getDate()); result.setData(person); try { response.setCharacterEncoding(Constant.CHART_SET_UTF_8); JacksonUtil.writeValue(response.getOutputStream(), result); } catch (IOException e) { e.printStackTrace(); } } /** * * @description POST转发 * @param request * @param response * @author qianye.zheng */ @RequestMapping(value = "/post", method = { RequestMethod.POST }) @SuppressWarnings({"unchecked"}) public void post(final HttpServletRequest request, final HttpServletResponse response) { try { Map<?, ?> params = JacksonUtil.readValue(request.getInputStream(), Map.class); System.out.println(JacksonUtil.writeAsString(params)); Map<String, String> params2 = (Map<String, String>) params; Set<Map.Entry<String, String>> entrySet = params2.entrySet(); // 逐个取出来 for (Map.Entry<String, String> e : entrySet) { System.out.println(e.getKey() + " = " + e.getValue()); } } catch (IOException e) { e.printStackTrace(); } // 响应 ResultBean result = new ResultBean(); result.setMessage("收到[" + "post" + "]的请求"); result.setMessageCode("205"); result.setSuccess(true); Person person = new Person(); person.setId("2001"); person.setUsername("王东22"); // 时间戳 // "lastLoginTime":1455591443154 person.setLastLoginTime(DateTimeUtil.getTimestamp()); // "utilDate":1455591443154 person.setUtilDate(DateTimeUtil.getDateTime()); // "sqlDate":"2016-02-16" person.setSqlDate(DateTimeUtil.getDate()); result.setData(person); try { response.setCharacterEncoding(Constant.CHART_SET_UTF_8); JacksonUtil.writeValue(response.getOutputStream(), result); } catch (IOException e) { e.printStackTrace(); } } }
[ "dearzqy@163.com" ]
dearzqy@163.com
6e28506cb812590642bae592c7b93ed423378580
45530fc639c0889794973ba5f8da885ca4648819
/src/main/java/main/taskstorage/IKillYourselfTaskStorage.java
df8be98fa242a56f3a1170922d53e2867e317fa0
[]
no_license
VictorLeonidovich/rwgheroku
b2cd454272118586f671c67d250f989c75f32b45
a3cc5bccaa73de164bb2894b93f4d88538020f7c
refs/heads/master
2020-04-05T05:06:03.586740
2018-11-07T17:07:12
2018-11-07T17:07:12
156,580,781
0
0
null
null
null
null
UTF-8
Java
false
false
186
java
package main.taskstorage; public interface IKillYourselfTaskStorage { public void addKillYourselfTaskToConcreteRobot(Long robotId); public void addKillYourselfTaskToAllRobots(); }
[ "k-v-l@tut.by" ]
k-v-l@tut.by
c115ace826d4edfd4f5cbd42bde619bbcbf3825b
eeb3c291c9eb303215a4b3b8e8ce248f6bb3c4ff
/merchant-loans-admin/src/main/java/cn/com/payu/modules/LoginController.java
bd28d09c873265aacf32e3292b39dcd17aa18b0e
[]
no_license
levphon/merchant-loans
e411049c5fe3592477bf0c14938e27e70053317c
76d5ef9c5f2094e15fd3274d2c3907543fa0c482
refs/heads/master
2022-12-18T08:03:54.222435
2020-09-09T15:58:08
2020-09-09T15:58:08
285,705,180
0
0
null
null
null
null
UTF-8
Java
false
false
4,062
java
package cn.com.payu.modules; import cn.com.payu.common.enmus.ResultCodeEnum; import cn.com.payu.modules.common.service.CommonService; import cn.com.payu.modules.customer.model.LoginByMobileDTO; import cn.com.payu.modules.customer.service.CustomerService; import cn.com.payu.modules.entity.Customer; import cn.com.payu.modules.entity.User; import cn.com.payu.modules.user.model.LoginDTO; import cn.com.payu.modules.user.service.UserService; import com.glsx.plat.common.utils.StringUtils; import com.glsx.plat.context.utils.PropertiesUtils; import com.glsx.plat.core.web.R; import com.glsx.plat.exception.BusinessException; import com.google.code.kaptcha.Producer; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import javax.imageio.ImageIO; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.awt.image.BufferedImage; import java.io.IOException; import java.util.HashMap; import java.util.Map; /** * @author payu */ @Slf4j @RestController public class LoginController { @Autowired private CommonService commonService; @Autowired private UserService userService; @Autowired private CustomerService customerService; @Autowired private Producer producer; @GetMapping("/captcha") public void captcha(HttpServletRequest request, HttpServletResponse response) throws IOException { response.setHeader("Cache-Control", "no-store, no-cache"); response.setContentType("image/jpeg"); //生成文字验证码 String text = PropertiesUtils.getProperty("captcha.sessionRad"); if (StringUtils.isNullOrEmpty(text)) text = producer.createText(); //生成图片验证码 BufferedImage image = producer.createImage(text); //保存到 session request.getSession().setAttribute(com.google.code.kaptcha.Constants.KAPTCHA_SESSION_KEY, text); ServletOutputStream out = response.getOutputStream(); ImageIO.write(image, "jpg", out); } /** * 后端管理登录 */ @PostMapping(value = "/login") public R adminLogin(@RequestBody LoginDTO loginDTO) { User user = userService.findByUsername(loginDTO.getUsername()); if (user == null) throw BusinessException.create(ResultCodeEnum.UNKNOWN_ACCOUNT.getCode(), ResultCodeEnum.UNKNOWN_ACCOUNT.getMsg()); // TODO: 2020/8/7 密码校验 String token = userService.createToken(user); Map<String, Object> rtnMap = new HashMap<>(); rtnMap.put("token", token); rtnMap.put("user", user); return R.ok().data(rtnMap); } /** * 验证码校验 * * @param request * @param captcha */ protected void doCaptchaValidate(HttpServletRequest request, String captcha) { // 从session中获取图形吗字符串 String kaptcha = (String) request.getSession().getAttribute(com.google.code.kaptcha.Constants.KAPTCHA_SESSION_KEY); //删除缓存验证码 request.getSession().removeAttribute(com.google.code.kaptcha.Constants.KAPTCHA_SESSION_KEY); // 校验 if (kaptcha == null || !kaptcha.equals(captcha)) { throw BusinessException.create(ResultCodeEnum.INCORRECT_CAPTCHA.getCode(), ResultCodeEnum.INCORRECT_CAPTCHA.getMsg()); } } /** * h5登录 */ @PostMapping(value = "/customer/login") public R customerLogin(@RequestBody LoginByMobileDTO loginDTO) { commonService.verifyCode(loginDTO.getPhone(), loginDTO.getCode()); Customer customer = customerService.login(loginDTO); String token = customerService.createToken(customer); return R.ok().data(token); } }
[ "liuyufeng@outlook.com" ]
liuyufeng@outlook.com
7b8257f729f8faca96c5243f58869b292771cfbd
f5049214ff99cdd7c37da74619b60ac4a26fc6ba
/orchestrator/common/config/hostconfig/eu.agno3.orchestrator.config.hostconfig/src/main/java/eu/agno3/orchestrator/config/hostconfig/network/RoutingConfigurationObjectTypeDescriptor.java
4474ace4487d967f207338d1240dcfc5ac6a274b
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
AgNO3/code
d17313709ee5db1eac38e5811244cecfdfc23f93
b40a4559a10b3e84840994c3fd15d5f53b89168f
refs/heads/main
2023-07-28T17:27:53.045940
2021-09-17T14:25:01
2021-09-17T14:31:41
407,567,058
0
2
null
null
null
null
UTF-8
Java
false
false
1,952
java
/** * © 2014 AgNO3 Gmbh & Co. KG * All right reserved. * * Created: 23.07.2014 by mbechler */ package eu.agno3.orchestrator.config.hostconfig.network; import org.eclipse.jdt.annotation.NonNull; import org.osgi.service.component.annotations.Component; import eu.agno3.orchestrator.config.hostconfig.i18n.HostConfigurationMessages; import eu.agno3.orchestrator.config.model.descriptors.AbstractObjectTypeDescriptor; import eu.agno3.orchestrator.config.model.descriptors.ObjectTypeDescriptor; /** * @author mbechler * */ @Component ( service = ObjectTypeDescriptor.class ) public class RoutingConfigurationObjectTypeDescriptor extends AbstractObjectTypeDescriptor<RoutingConfiguration, RoutingConfigurationImpl> { /** * */ public RoutingConfigurationObjectTypeDescriptor () { super( RoutingConfiguration.class, RoutingConfigurationImpl.class, HostConfigurationMessages.BASE_PACKAGE, "urn:agno3:objects:1.0:hostconfig:network"); //$NON-NLS-1$ } @Override public @NonNull RoutingConfiguration getGlobalDefaults () { RoutingConfigurationImpl def = new RoutingConfigurationImpl(); def.setAutoconfigureV4Routes(true); def.setAutoconfigureV6Routes(true); return def; } /** * {@inheritDoc} * * @see eu.agno3.orchestrator.config.model.descriptors.AbstractObjectTypeDescriptor#newInstance() */ @Override public @NonNull RoutingConfiguration newInstance () { return emptyInstance(); } /** * @return an empty instance */ public static @NonNull RoutingConfigurationMutable emptyInstance () { RoutingConfigurationImpl rc = new RoutingConfigurationImpl(); rc.setDefaultRouteV4(StaticRouteEntryObjectTypeDescriptor.emptyInstance()); rc.setDefaultRouteV6(StaticRouteEntryObjectTypeDescriptor.emptyInstance()); return rc; } }
[ "bechler@agno3.eu" ]
bechler@agno3.eu
ad20f17fb0e2501a311902420b26bf3955803cf0
cec628def1aad94ccbefa814d2a0dbd51588e9bd
/git.remote/src/org/netbeans/modules/git/remote/ui/history/SearchIncomingAction.java
671f137156acdd5517d29f24677d7716f3622461
[]
no_license
emilianbold/netbeans-releases
ad6e6e52a896212cb628d4522a4f8ae685d84d90
2fd6dc84c187e3c79a959b3ddb4da1a9703659c7
refs/heads/master
2021-01-12T04:58:24.877580
2017-10-17T14:38:27
2017-10-17T14:38:27
78,269,363
30
15
null
2020-10-13T08:36:08
2017-01-07T09:07:28
null
UTF-8
Java
false
false
5,376
java
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2011 Oracle and/or its affiliates. All rights reserved. * * Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (collectively, the * "License"). You may not use this file except in compliance with the * License. You can obtain a copy of the License at * http://www.netbeans.org/cddl-gplv2.html * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the * specific language governing permissions and limitations under the * License. When distributing the software, include this License Header * Notice in each file and include the License file at * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the GPL Version 2 section of the License file that * accompanied this code. If applicable, add the following below the * License Header, with the fields enclosed by brackets [] replaced by * your own identifying information: * "Portions Copyrighted [year] [name of copyright owner]" * * If you wish your version of this file to be governed by only the CDDL * or only the GPL Version 2, indicate your decision by adding * "[Contributor] elects to include this software in this distribution * under the [CDDL or GPL Version 2] license." If you do not indicate a * single choice of license, a recipient has the option to distribute * your version of this file under either the CDDL, the GPL Version 2 or * to extend the choice of license to its licensees as provided above. * However, if you add GPL Version 2 code and therefore, elected the GPL * Version 2 license, then the option applies only if the new code is * made subject to such option by the copyright holder. * * Contributor(s): * * Portions Copyrighted 2011 Sun Microsystems, Inc. */ package org.netbeans.modules.git.remote.ui.history; import java.awt.EventQueue; import org.netbeans.modules.git.remote.cli.GitBranch; import org.netbeans.modules.git.remote.ui.actions.MultipleRepositoryAction; import org.netbeans.modules.git.remote.ui.repository.RepositoryInfo; import org.netbeans.modules.remotefs.versioning.api.VCSFileProxySupport; import org.netbeans.modules.versioning.core.api.VCSFileProxy; import org.netbeans.modules.versioning.core.spi.VCSContext; import org.openide.DialogDisplayer; import org.openide.NotifyDescriptor; import org.openide.awt.ActionID; import org.openide.awt.ActionRegistration; import org.openide.util.NbBundle; import org.openide.util.RequestProcessor.Task; /** * * @author ondra */ @ActionID(id = "org.netbeans.modules.git.remote.ui.history.SearchIncomingAction", category = "GitRemote") @ActionRegistration(displayName = "#LBL_SearchIncomingAction_Name") @NbBundle.Messages({ "LBL_SearchIncomingAction_Name=Show &Incoming", "LBL_SearchIncomingAction_PopupName=Show Incoming", "# {0} - context name", "# {1} - branch name", "LBL_SearchIncomingTopComponent.title=Show Incoming - {0}/{1}", "MSG_SearchIncomingTopComponent.err.noBranch=Search cannot be started because you are currently not on a branch." }) public class SearchIncomingAction extends MultipleRepositoryAction { @Override protected Task performAction (final VCSFileProxy repository, final VCSFileProxy[] roots, final VCSContext context) { openSearch(repository, roots, VCSFileProxySupport.getContextDisplayName(context)); return null; } public void openSearch(final VCSFileProxy repository, final VCSFileProxy[] roots, final String contextName) { String branchName = getActiveBranchName(repository); if (branchName.equals(GitBranch.NO_BRANCH)) { NotifyDescriptor nd = new NotifyDescriptor.Message(Bundle.MSG_SearchIncomingTopComponent_err_noBranch(), NotifyDescriptor.ERROR_MESSAGE); DialogDisplayer.getDefault().notify(nd); return; } openSearch(repository, roots, branchName, contextName); } public void openSearch (final VCSFileProxy repository, final VCSFileProxy[] roots, final String branchName, final String contextName) { final String title = Bundle.LBL_SearchIncomingTopComponent_title(contextName, branchName); final RepositoryInfo info = RepositoryInfo.getInstance(repository); EventQueue.invokeLater(new Runnable() { @Override public void run () { SearchIncomingTopComponent tc = new SearchIncomingTopComponent(repository, info, roots); tc.setBranch(branchName); tc.setDisplayName(title); tc.open(); tc.requestActive(); tc.search(true); } }); } private static String getActiveBranchName (VCSFileProxy repository) { GitBranch activeBranch = RepositoryInfo.getInstance(repository).getActiveBranch(); String branchName = GitBranch.NO_BRANCH; if (activeBranch != GitBranch.NO_BRANCH_INSTANCE) { branchName = activeBranch.getName(); } return branchName; } }
[ "alexvsimon@netbeans.org" ]
alexvsimon@netbeans.org
18e079bacbc4e5a3c2c4c6195d1d705dc67d9dad
7016cec54fb7140fd93ed805514b74201f721ccd
/src/java/com/echothree/control/user/associate/server/AssociateBean.java
fb47b60c2aa189d36104e54bdf0c9fc483c0702b
[ "MIT", "Apache-1.1", "Apache-2.0" ]
permissive
echothreellc/echothree
62fa6e88ef6449406d3035de7642ed92ffb2831b
bfe6152b1a40075ec65af0880dda135350a50eaf
refs/heads/master
2023-09-01T08:58:01.429249
2023-08-21T11:44:08
2023-08-21T11:44:08
154,900,256
5
1
null
null
null
null
UTF-8
Java
false
false
8,025
java
// -------------------------------------------------------------------------------- // Copyright 2002-2023 Echo Three, LLC // // 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.echothree.control.user.associate.server; import com.echothree.control.user.associate.common.AssociateRemote; import com.echothree.control.user.associate.common.form.*; import com.echothree.control.user.associate.server.command.*; import com.echothree.model.data.user.common.pk.UserVisitPK; import com.echothree.util.common.command.CommandResult; import javax.ejb.Stateless; @Stateless public class AssociateBean extends AssociateFormsImpl implements AssociateRemote, AssociateLocal { // ------------------------------------------------------------------------- // Testing // ------------------------------------------------------------------------- @Override public String ping() { return "AssociateBean is alive!"; } // ------------------------------------------------------------------------- // Associate Programs // ------------------------------------------------------------------------- @Override public CommandResult createAssociateProgram(UserVisitPK userVisitPK, CreateAssociateProgramForm form) { return new CreateAssociateProgramCommand(userVisitPK, form).run(); } @Override public CommandResult getAssociateProgram(UserVisitPK userVisitPK, GetAssociateProgramForm form) { return new GetAssociateProgramCommand(userVisitPK, form).run(); } @Override public CommandResult getAssociatePrograms(UserVisitPK userVisitPK, GetAssociateProgramsForm form) { return new GetAssociateProgramsCommand(userVisitPK, form).run(); } @Override public CommandResult getAssociateProgramChoices(UserVisitPK userVisitPK, GetAssociateProgramChoicesForm form) { return new GetAssociateProgramChoicesCommand(userVisitPK, form).run(); } @Override public CommandResult setDefaultAssociateProgram(UserVisitPK userVisitPK, SetDefaultAssociateProgramForm form) { return new SetDefaultAssociateProgramCommand(userVisitPK, form).run(); } @Override public CommandResult editAssociateProgram(UserVisitPK userVisitPK, EditAssociateProgramForm form) { return new EditAssociateProgramCommand(userVisitPK, form).run(); } @Override public CommandResult deleteAssociateProgram(UserVisitPK userVisitPK, DeleteAssociateProgramForm form) { return new DeleteAssociateProgramCommand(userVisitPK, form).run(); } // ------------------------------------------------------------------------- // Associate Program Descriptions // ------------------------------------------------------------------------- @Override public CommandResult createAssociateProgramDescription(UserVisitPK userVisitPK, CreateAssociateProgramDescriptionForm form) { return new CreateAssociateProgramDescriptionCommand(userVisitPK, form).run(); } @Override public CommandResult getAssociateProgramDescriptions(UserVisitPK userVisitPK, GetAssociateProgramDescriptionsForm form) { return new GetAssociateProgramDescriptionsCommand(userVisitPK, form).run(); } @Override public CommandResult editAssociateProgramDescription(UserVisitPK userVisitPK, EditAssociateProgramDescriptionForm form) { return new EditAssociateProgramDescriptionCommand(userVisitPK, form).run(); } @Override public CommandResult deleteAssociateProgramDescription(UserVisitPK userVisitPK, DeleteAssociateProgramDescriptionForm form) { return new DeleteAssociateProgramDescriptionCommand(userVisitPK, form).run(); } // ------------------------------------------------------------------------- // Associates // ------------------------------------------------------------------------- @Override public CommandResult createAssociate(UserVisitPK userVisitPK, CreateAssociateForm form) { return new CreateAssociateCommand(userVisitPK, form).run(); } @Override public CommandResult getAssociate(UserVisitPK userVisitPK, GetAssociateForm form) { return new GetAssociateCommand(userVisitPK, form).run(); } @Override public CommandResult getAssociates(UserVisitPK userVisitPK, GetAssociatesForm form) { return new GetAssociatesCommand(userVisitPK, form).run(); } @Override public CommandResult getAssociateChoices(UserVisitPK userVisitPK, GetAssociateChoicesForm form) { return new GetAssociateChoicesCommand(userVisitPK, form).run(); } @Override public CommandResult deleteAssociate(UserVisitPK userVisitPK, DeleteAssociateForm form) { return new DeleteAssociateCommand(userVisitPK, form).run(); } // ------------------------------------------------------------------------- // Associate Contact Mechanisms // ------------------------------------------------------------------------- @Override public CommandResult createAssociatePartyContactMechanism(UserVisitPK userVisitPK, CreateAssociatePartyContactMechanismForm form) { return new CreateAssociatePartyContactMechanismCommand(userVisitPK, form).run(); } @Override public CommandResult getAssociatePartyContactMechanism(UserVisitPK userVisitPK, GetAssociatePartyContactMechanismForm form) { return new GetAssociatePartyContactMechanismCommand(userVisitPK, form).run(); } @Override public CommandResult getAssociatePartyContactMechanisms(UserVisitPK userVisitPK, GetAssociatePartyContactMechanismsForm form) { return new GetAssociatePartyContactMechanismsCommand(userVisitPK, form).run(); } @Override public CommandResult getAssociatePartyContactMechanismChoices(UserVisitPK userVisitPK, GetAssociatePartyContactMechanismChoicesForm form) { return new GetAssociatePartyContactMechanismChoicesCommand(userVisitPK, form).run(); } @Override public CommandResult setDefaultAssociatePartyContactMechanism(UserVisitPK userVisitPK, SetDefaultAssociatePartyContactMechanismForm form) { return new SetDefaultAssociatePartyContactMechanismCommand(userVisitPK, form).run(); } @Override public CommandResult deleteAssociatePartyContactMechanism(UserVisitPK userVisitPK, DeleteAssociatePartyContactMechanismForm form) { return new DeleteAssociatePartyContactMechanismCommand(userVisitPK, form).run(); } // ------------------------------------------------------------------------- // Associate Referrals // ------------------------------------------------------------------------- @Override public CommandResult getAssociateReferral(UserVisitPK userVisitPK, GetAssociateReferralForm form) { return new GetAssociateReferralCommand(userVisitPK, form).run(); } @Override public CommandResult getAssociateReferrals(UserVisitPK userVisitPK, GetAssociateReferralsForm form) { return new GetAssociateReferralsCommand(userVisitPK, form).run(); } @Override public CommandResult deleteAssociateReferral(UserVisitPK userVisitPK, DeleteAssociateReferralForm form) { return new DeleteAssociateReferralCommand(userVisitPK, form).run(); } }
[ "rich@echothree.com" ]
rich@echothree.com
c68632054cc280c0901b92053aaba64c83d10514
94445f7ad3d19d2b02bf813349421f6911ca8d70
/src/main/java/oasis/names/specification/ubl/schema/xsd/commonbasiccomponents_2/OriginalContractingSystemIDType.java
f181c492420376c4c3282204090ffdc52d8c2df8
[ "Apache-2.0" ]
permissive
project-smartlog/smartlog-client
f7ef19f203db7a696de4137163d1fe00a5736ed5
b59b90b70fca4fef39f44854c07458dad8d821f0
refs/heads/master
2020-04-25T03:48:42.214719
2019-02-25T12:05:15
2019-02-25T12:05:15
172,489,812
0
0
null
null
null
null
UTF-8
Java
false
false
1,335
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.11.17 at 03:30:58 PM EET // package oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2; import oasis.names.specification.ubl.schema.xsd.unqualifieddatatypes_2.IdentifierType; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for OriginalContractingSystemIDType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="OriginalContractingSystemIDType"> * &lt;simpleContent> * &lt;extension base="&lt;urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2>IdentifierType"> * &lt;/extension> * &lt;/simpleContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "OriginalContractingSystemIDType") public class OriginalContractingSystemIDType extends IdentifierType { }
[ "sami.hongisto@cygate.fi" ]
sami.hongisto@cygate.fi
993df8206bbdaf2e62458e7f6323a1b3361237a3
447520f40e82a060368a0802a391697bc00be96f
/apks/playstore_apps/com_ubercab/source/com/twilio/voice/impl/useragent/Codec.java
d3be0195eb012fdf6bd649ea927fdc9c5f08dba1
[ "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
2,351
java
package com.twilio.voice.impl.useragent; import com.twilio.voice.Logger; import com.twilio.voice.impl.session.SessionException; import java.util.Collections; import java.util.Iterator; import java.util.LinkedList; import java.util.List; public class Codec { private static volatile List<Codec> codecs; private static Object codecsLock = new Object(); private static final Logger logger = Logger.getLogger(Codec.class); private String codecId; private String codecIdPrefix; private Codec() {} private static final void ensureCodecs() { if (codecs == null) { synchronized (codecsLock) { List localList = codecs; if (localList == null) { try { codecs = initCodecs(); } catch (SessionException localSessionException) { logger.e("Internal error enumerating codecs", localSessionException); } } return; } } } public static List<Codec> get(String paramString) { ensureCodecs(); LinkedList localLinkedList = new LinkedList(); Iterator localIterator = codecs.iterator(); while (localIterator.hasNext()) { Codec localCodec = (Codec)localIterator.next(); if (localCodec.getCodecId().startsWith(paramString)) { localLinkedList.add(localCodec); } } return localLinkedList; } public static List<Codec> getAll() { ensureCodecs(); return Collections.unmodifiableList(codecs); } private native Codec.Priority getPriority(String paramString); private static native List<Codec> initCodecs() throws SessionException; private native void setPriority(Codec.Priority paramPriority, String paramString) throws SessionException; public static void setPriorityByPrefix(String paramString, Codec.Priority paramPriority) throws SessionException { paramString = get(paramString).iterator(); while (paramString.hasNext()) { ((Codec)paramString.next()).setPriority(paramPriority); } } public String getCodecId() { return this.codecId; } public Codec.Priority getPriority() { return getPriority(this.codecId); } public void setPriority(Codec.Priority paramPriority) throws SessionException { setPriority(paramPriority, this.codecId); } }
[ "antal.micky@yahoo.com" ]
antal.micky@yahoo.com
d2597e54c1e54c07d2325a9af92b71287fc186e3
c0ae74aceae0ea243732f378dcc9692cd65a7a1f
/src/main/java/uk/co/nfl/service/dto/UserDTO.java
f1a0422437bf7b1acd207c55a0c7d48f4e2cfd37
[]
no_license
nutritionalfocus/health-observation-application
d8bb377b1697ca60f34a3b473d1986a3b3071c1b
3431b726a69cb914b3be3211ecca2bab3336fd39
refs/heads/master
2020-08-10T22:55:16.177906
2019-10-11T13:19:42
2019-10-11T13:19:42
214,380,110
0
0
null
2019-10-11T12:56:52
2019-10-11T08:10:05
Java
UTF-8
Java
false
false
4,593
java
package uk.co.nfl.service.dto; import uk.co.nfl.config.Constants; import uk.co.nfl.domain.Authority; import uk.co.nfl.domain.User; import javax.validation.constraints.Email; import javax.validation.constraints.NotBlank; import javax.validation.constraints.*; import java.time.Instant; import java.util.Set; import java.util.stream.Collectors; /** * A DTO representing a user, with his authorities. */ public class UserDTO { private String id; @NotBlank @Pattern(regexp = Constants.LOGIN_REGEX) @Size(min = 1, max = 50) private String login; @Size(max = 50) private String firstName; @Size(max = 50) private String lastName; @Email @Size(min = 5, max = 254) private String email; @Size(max = 256) private String imageUrl; private boolean activated = false; @Size(min = 2, max = 10) private String langKey; private String createdBy; private Instant createdDate; private String lastModifiedBy; private Instant lastModifiedDate; private Set<String> authorities; public UserDTO() { // Empty constructor needed for Jackson. } public UserDTO(User user) { this.id = user.getId(); this.login = user.getLogin(); this.firstName = user.getFirstName(); this.lastName = user.getLastName(); this.email = user.getEmail(); this.activated = user.getActivated(); this.imageUrl = user.getImageUrl(); this.langKey = user.getLangKey(); this.createdBy = user.getCreatedBy(); this.createdDate = user.getCreatedDate(); this.lastModifiedBy = user.getLastModifiedBy(); this.lastModifiedDate = user.getLastModifiedDate(); this.authorities = user.getAuthorities().stream() .map(Authority::getName) .collect(Collectors.toSet()); } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getLogin() { return login; } public void setLogin(String login) { this.login = login; } 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 getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getImageUrl() { return imageUrl; } public void setImageUrl(String imageUrl) { this.imageUrl = imageUrl; } public boolean isActivated() { return activated; } public void setActivated(boolean activated) { this.activated = activated; } public String getLangKey() { return langKey; } public void setLangKey(String langKey) { this.langKey = langKey; } public String getCreatedBy() { return createdBy; } public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } public Instant getCreatedDate() { return createdDate; } public void setCreatedDate(Instant createdDate) { this.createdDate = createdDate; } public String getLastModifiedBy() { return lastModifiedBy; } public void setLastModifiedBy(String lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; } public Instant getLastModifiedDate() { return lastModifiedDate; } public void setLastModifiedDate(Instant lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } public Set<String> getAuthorities() { return authorities; } public void setAuthorities(Set<String> authorities) { this.authorities = authorities; } @Override public String toString() { return "UserDTO{" + "login='" + login + '\'' + ", firstName='" + firstName + '\'' + ", lastName='" + lastName + '\'' + ", email='" + email + '\'' + ", imageUrl='" + imageUrl + '\'' + ", activated=" + activated + ", langKey='" + langKey + '\'' + ", createdBy=" + createdBy + ", createdDate=" + createdDate + ", lastModifiedBy='" + lastModifiedBy + '\'' + ", lastModifiedDate=" + lastModifiedDate + ", authorities=" + authorities + "}"; } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
db61c9cf223b7689de25a766feb96b21c47252a3
52c36ce3a9d25073bdbe002757f08a267abb91c6
/src/main/java/com/alipay/api/domain/ZhimaCreditWatchlistBriefGetModel.java
8bb267554e94d6b2d7509ae77995131c98d635b4
[ "Apache-2.0" ]
permissive
itc7/alipay-sdk-java-all
d2f2f2403f3c9c7122baa9e438ebd2932935afec
c220e02cbcdda5180b76d9da129147e5b38dcf17
refs/heads/master
2022-08-28T08:03:08.497774
2020-05-27T10:16:10
2020-05-27T10:16:10
267,271,062
0
0
Apache-2.0
2020-05-27T09:02:04
2020-05-27T09:02:04
null
UTF-8
Java
false
false
2,140
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 行业关注名单普惠版 * * @author auto create * @since 1.0, 2017-11-23 14:20:59 */ public class ZhimaCreditWatchlistBriefGetModel extends AlipayObject { private static final long serialVersionUID = 6269243239211979192L; /** * 与参数cert_type对应,分别为:证件号完整值(例:420983190001010001) 或支付宝uid(例:2088102165398450) */ @ApiField("cert_no") private String certNo; /** * 证件类型 目前支持三种IDENTITY_CARD(身份证),PASSPORT(护照),ALIPAY_USER_ID(支付宝uid) */ @ApiField("cert_type") private String certType; /** * 用户姓名 当证件类型为ALIPAY_USER_ID时可以不填 */ @ApiField("name") private String name; /** * 产品码,直接使用[示例]给出的值 */ @ApiField("product_code") private String productCode; /** * 商户请求的唯一标志,64位长度的字母数字下划线组合。该标识作为对账的关键信息,商户要保证其唯一性,对于用户使用相同transaction_id的查询,芝麻在一天(86400秒)内返回首次查询数据,超过有效期的查询即为无效并返回异常,有效期内的重复查询不重新计费 */ @ApiField("transaction_id") private String transactionId; public String getCertNo() { return this.certNo; } public void setCertNo(String certNo) { this.certNo = certNo; } public String getCertType() { return this.certType; } public void setCertType(String certType) { this.certType = certType; } public String getName() { return this.name; } public void setName(String name) { this.name = name; } public String getProductCode() { return this.productCode; } public void setProductCode(String productCode) { this.productCode = productCode; } public String getTransactionId() { return this.transactionId; } public void setTransactionId(String transactionId) { this.transactionId = transactionId; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
50445f8bcb5a9418d092dc5fe82a93c27509182c
d60e287543a95a20350c2caeabafbec517cabe75
/LACCPlus/Hive/8669_1.java
04164b3c6924a4181b619570ffc74b0d2367f97f
[ "MIT" ]
permissive
sgholamian/log-aware-clone-detection
242067df2db6fd056f8d917cfbc143615c558b2c
9993cb081c420413c231d1807bfff342c39aa69a
refs/heads/main
2023-07-20T09:32:19.757643
2021-08-27T15:02:50
2021-08-27T15:02:50
337,837,827
0
0
null
null
null
null
UTF-8
Java
false
false
1,584
java
//,temp,ThriftHiveMetastore.java,36568,36595,temp,ThriftHiveMetastore.java,31701,31732 //,3 public class xxx { public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TSerializable msg; refresh_privileges_result result = new refresh_privileges_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); msg = result; } else if (e instanceof org.apache.thrift.transport.TTransportException) { _LOGGER.error("TTransportException inside handler", e); fb.close(); return; } else if (e instanceof org.apache.thrift.TApplicationException) { _LOGGER.error("TApplicationException inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TApplicationException)e; } else { _LOGGER.error("Exception inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); } catch (java.lang.Exception ex) { _LOGGER.error("Exception writing to internal frame buffer", ex); fb.close(); } } };
[ "SHOSHIN\\sgholamian@shoshin.uwaterloo.ca" ]
SHOSHIN\sgholamian@shoshin.uwaterloo.ca
3b6c7b6b6949a8e4b6a1e1d58e455426cd06c1f2
eb5f5353f49ee558e497e5caded1f60f32f536b5
/com/sun/corba/se/spi/transport/CorbaConnectionCache.java
89279e567356629773b2eff3199b36432ec841a9
[]
no_license
mohitrajvardhan17/java1.8.0_151
6fc53e15354d88b53bd248c260c954807d612118
6eeab0c0fd20be34db653f4778f8828068c50c92
refs/heads/master
2020-03-18T09:44:14.769133
2018-05-23T14:28:24
2018-05-23T14:28:24
134,578,186
0
2
null
null
null
null
UTF-8
Java
false
false
347
java
package com.sun.corba.se.spi.transport; public abstract interface CorbaConnectionCache { public abstract String getMonitoringName(); } /* Location: C:\Program Files (x86)\Java\jre1.8.0_151\lib\rt.jar!\com\sun\corba\se\spi\transport\CorbaConnectionCache.class * Java compiler version: 8 (52.0) * JD-Core Version: 0.7.1 */
[ "mohit.rajvardhan@ericsson.com" ]
mohit.rajvardhan@ericsson.com
5337c7699fecf25fa2ed48851823eb4cc526bd1b
3df76d43273824ddeb625acb338ce543a22904f7
/ds4p-receiver/ds4p-admin-test-harness/src/main/java/utsapi2_0/UtsMetathesaurusMetaData/GetAttributeNameResponse.java
44e96f4a22223bc4f8d118a4801919b240fa9772
[]
no_license
PilotDS4P/ds4p-pilot-receiver-public
c91ff3f41c9bf7cdf37d18a923b5479d9ce2163e
545c7dd006fd7a58daab8502e6ae85e4ec0e3804
refs/heads/master
2016-09-15T21:40:32.493523
2013-05-30T19:31:50
2013-05-30T19:31:50
10,087,112
0
0
null
null
null
null
UTF-8
Java
false
false
1,735
java
/** * This software is being provided per FARS 52.227-14 Rights in Data - General. * Any redistribution or request for copyright requires written consent by the * Department of Veterans Affairs. */ package UtsMetathesaurusMetaData; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for getAttributeNameResponse complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="getAttributeNameResponse"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="return" type="{http://webservice.uts.umls.nlm.nih.gov/}attributeNameDTO" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "getAttributeNameResponse", propOrder = { "_return" }) public class GetAttributeNameResponse { @XmlElement(name = "return") protected AttributeNameDTO _return; /** * Gets the value of the return property. * * @return * possible object is * {@link AttributeNameDTO } * */ public AttributeNameDTO getReturn() { return _return; } /** * Sets the value of the return property. * * @param value * allowed object is * {@link AttributeNameDTO } * */ public void setReturn(AttributeNameDTO value) { this._return = value; } }
[ "duane.decouteau@gmail.com" ]
duane.decouteau@gmail.com
f678717cf8424590a6c9e8fcb72d969957c2d20d
df3083f4adff3dc6a291c00205685867df632f1c
/src/main/java/com/tranboot/client/druid/sql/ast/statement/SQLForeignKeyConstraint.java
78a3541a080bbbb3781d1fd3965095cbab21dad3
[]
no_license
ayumiono/txc-client
1e7ac04105a0f76a34121ca308478b1f386a84a4
96898c8cc3594f36d035a176754bc165658498e3
refs/heads/master
2022-11-17T22:25:40.762312
2019-06-26T15:07:44
2019-06-26T15:07:44
177,992,963
0
0
null
2022-11-16T11:41:35
2019-03-27T12:45:53
Java
UTF-8
Java
false
false
1,024
java
/* * Copyright 1999-2017 Alibaba Group Holding Ltd. * * 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.tranboot.client.druid.sql.ast.statement; import java.util.List; import com.tranboot.client.druid.sql.ast.SQLName; public interface SQLForeignKeyConstraint extends SQLConstraint, SQLTableElement, SQLTableConstraint { List<SQLName> getReferencingColumns(); SQLName getReferencedTableName(); void setReferencedTableName(SQLName value); List<SQLName> getReferencedColumns(); }
[ "xuelong.chen@goodbaby.com" ]
xuelong.chen@goodbaby.com