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
691df80f086200b82285c8d22dd0d4af260b4b48
6889f8f30f36928a2cd8ba880032c855ac1cc66c
/SemplestServiceMSNv8r3/src/com/microsoft/adcenter/v8/GetAdsByAdGroupIdResponse.java
4c6d29dbbdb3cfb75cc374cf5ae88baf9daae904
[]
no_license
enterstudio/semplest2
77ceb4fe6d076f8c161d24b510048802cd029b67
44eeade468a78ef647c62deb4cec2bea4318b455
refs/heads/master
2022-12-28T18:35:54.723459
2012-11-20T15:39:09
2012-11-20T15:39:09
86,645,696
0
0
null
2020-10-14T08:14:22
2017-03-30T01:32:35
Roff
UTF-8
Java
false
false
4,196
java
/** * GetAdsByAdGroupIdResponse.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.microsoft.adcenter.v8; public class GetAdsByAdGroupIdResponse implements java.io.Serializable { private com.microsoft.adcenter.v8.Ad[] ads; public GetAdsByAdGroupIdResponse() { } public GetAdsByAdGroupIdResponse( com.microsoft.adcenter.v8.Ad[] ads) { this.ads = ads; } /** * Gets the ads value for this GetAdsByAdGroupIdResponse. * * @return ads */ public com.microsoft.adcenter.v8.Ad[] getAds() { return ads; } /** * Sets the ads value for this GetAdsByAdGroupIdResponse. * * @param ads */ public void setAds(com.microsoft.adcenter.v8.Ad[] ads) { this.ads = ads; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof GetAdsByAdGroupIdResponse)) return false; GetAdsByAdGroupIdResponse other = (GetAdsByAdGroupIdResponse) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.ads==null && other.getAds()==null) || (this.ads!=null && java.util.Arrays.equals(this.ads, other.getAds()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getAds() != null) { for (int i=0; i<java.lang.reflect.Array.getLength(getAds()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getAds(), i); if (obj != null && !obj.getClass().isArray()) { _hashCode += obj.hashCode(); } } } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(GetAdsByAdGroupIdResponse.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("https://adcenter.microsoft.com/v8", ">GetAdsByAdGroupIdResponse")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("ads"); elemField.setXmlName(new javax.xml.namespace.QName("https://adcenter.microsoft.com/v8", "Ads")); elemField.setXmlType(new javax.xml.namespace.QName("https://adcenter.microsoft.com/v8", "Ad")); elemField.setMinOccurs(0); elemField.setNillable(true); elemField.setItemQName(new javax.xml.namespace.QName("https://adcenter.microsoft.com/v8", "Ad")); typeDesc.addFieldDesc(elemField); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer( _javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer( _javaType, _xmlType, typeDesc); } }
[ "mitch@02200ff9-b5b2-46f0-9171-221b09c08c7b" ]
mitch@02200ff9-b5b2-46f0-9171-221b09c08c7b
3968530d0733f1d5c15f53c23dcf0b3d2886a6e3
ae1befd8ac502909c2995092c04d14b731ba855b
/persist/src/main/java/com/mbv/persist/dao/impl/UserKycDAOImpl.java
6ec97b10a2616c47d8332988e3a0b89079384098
[]
no_license
Linnex/MBV-Backend
2079b9d6ded22b0072c6fd40ba877a18277f8f4e
ff9e04839858ef39399375fc98c72801dd0f0df6
refs/heads/master
2020-07-05T09:18:33.632052
2016-08-23T15:12:05
2016-08-23T15:12:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,494
java
package com.mbv.persist.dao.impl; import com.mbv.persist.dao.UserKycDAO; import com.mbv.persist.entity.UserKYC; import com.mbv.persist.enums.KYCType; import com.mbv.persist.enums.Status; import org.hibernate.Criteria; import org.hibernate.criterion.Restrictions; import java.util.List; import java.util.Map; /** * Created by arindamnath on 25/02/16. */ public class UserKycDAOImpl extends BaseEntityDAOImpl<UserKYC> implements UserKycDAO { public UserKycDAOImpl() { super(UserKYC.class); } @Override public List<UserKYC> getUserKYCInfoById(Long userId, Map<Object, Object> paginationInfo) { Criteria criteria = this.getSession().createCriteria(UserKYC.class); criteria.add(Restrictions.eq("userId", userId)); criteria.add(Restrictions.eq("status", Status.ACTIVE)); if(paginationInfo != null) { applyPagination(paginationInfo, criteria); } List<UserKYC> userKYCs = criteria.list(); evictCollection(userKYCs); return userKYCs; } @Override public UserKYC getUserKYCByDetials(Long userId, String id, KYCType type) { Criteria criteria = this.getSession().createCriteria(UserKYC.class); criteria.add(Restrictions.eq("userId", userId)); criteria.add(Restrictions.eq("kycId", id)); criteria.add(Restrictions.eq("type", type)); criteria.add(Restrictions.eq("status", Status.ACTIVE)); return (UserKYC) criteria.uniqueResult(); } }
[ "strider2023@gmail.com" ]
strider2023@gmail.com
085cbd0e7b4ebc3a8e3438659c2f8b1bd1c32342
6ec5469ec2bca932a2418de61fee961a04a503e3
/Courtyard-core/src/main/java/com/yard/baidu/ueditor/hunter/FileManager.java
05f5149bd94039e3cdcd1643041a5c1ed7748d4b
[]
no_license
Qiuyingx/CtyManager
e6cdb83c15dc9c46936c4d09046f25f9ce2ad250
8ec9ae87fe580b32f28fa77f8b182cb94119087d
refs/heads/master
2020-12-31T07:32:16.224703
2016-05-08T13:20:53
2016-05-08T13:20:53
58,313,077
0
1
null
null
null
null
UTF-8
Java
false
false
2,682
java
package com.yard.baidu.ueditor.hunter; import java.io.File; import java.util.Arrays; import java.util.Collection; import java.util.Map; import org.apache.commons.io.FileUtils; import com.yard.baidu.ueditor.PathFormat; import com.yard.baidu.ueditor.define.AppInfo; import com.yard.baidu.ueditor.define.BaseState; import com.yard.baidu.ueditor.define.MultiState; import com.yard.baidu.ueditor.define.State; public class FileManager { private String dir = null; private String rootPath = null; private String[] allowFiles = null; private int count = 0; public FileManager(Map<String, Object> conf) { this.rootPath = (String) conf.get("rootPath"); this.dir = this.rootPath + (String) conf.get("dir"); this.allowFiles = this.getAllowFiles(conf.get("allowFiles")); this.count = (Integer) conf.get("count"); } public State listFile(int index) { File dir = new File(this.dir); State state = null; if (!dir.exists()) { return new BaseState(false, AppInfo.NOT_EXIST); } if (!dir.isDirectory()) { return new BaseState(false, AppInfo.NOT_DIRECTORY); } Collection<File> list = FileUtils.listFiles(dir, this.allowFiles, true); if (index < 0 || index > list.size()) { state = new MultiState(true); } else { Object[] fileList = Arrays.copyOfRange(list.toArray(), index, index + this.count); state = this.getState(fileList); } state.putInfo("start", index); state.putInfo("total", list.size()); return state; } private State getState(Object[] files) { MultiState state = new MultiState(true); BaseState fileState = null; File file = null; for (Object obj : files) { if (obj == null) { break; } file = (File) obj; fileState = new BaseState(true); fileState.putInfo("url", PathFormat.format(this.getPath(file))); state.addState(fileState); } return state; } private String getPath(File file) { String path = file.getAbsolutePath(); // 在windows下,path的路径斜线是'\'是这样的,所以,要把rootPath里面/线换是File.separator // rootPath是通过application.getRealPath("/");得到的,所以全是这样的斜线/。 String rootPath = this.rootPath.replace("/", File.separator); return path.replace(rootPath, "/"); } private String[] getAllowFiles(Object fileExt) { String[] exts = null; String ext = null; if (fileExt == null) { return new String[0]; } exts = (String[]) fileExt; for (int i = 0, len = exts.length; i < len; i++) { ext = exts[i]; exts[i] = ext.replace(".", ""); } return exts; } }
[ "472128216@qq.com" ]
472128216@qq.com
2538a674c47b7d564f03990f567cc6db8041f039
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/training/org/apache/ignite/ml/preprocessing/imputing/ImputerPreprocessorTest.java
838cc1eb975d5f2e64b2138dd610d32c83b3539b
[]
no_license
STAMP-project/dspot-experiments
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
121487e65cdce6988081b67f21bbc6731354a47f
refs/heads/master
2023-02-07T14:40:12.919811
2019-11-06T07:17:09
2019-11-06T07:17:09
75,710,758
14
19
null
2023-01-26T23:57:41
2016-12-06T08:27:42
null
UTF-8
Java
false
false
1,843
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.ignite.ml.preprocessing.imputing; import org.apache.ignite.ml.math.primitives.vector.Vector; import org.apache.ignite.ml.math.primitives.vector.VectorUtils; import org.junit.Assert; import org.junit.Test; /** * Tests for {@link ImputerPreprocessor}. */ public class ImputerPreprocessorTest { /** * Tests {@code apply()} method. */ @Test public void testApply() { double[][] data = new double[][]{ new double[]{ Double.NaN, 20, 3 }, new double[]{ 2, Double.NaN, 8 }, new double[]{ Double.NaN, Double.NaN, Double.NaN } }; ImputerPreprocessor<Integer, Vector> preprocessor = new ImputerPreprocessor(VectorUtils.of(1.1, 10.1, 100.1), ( k, v) -> v); double[][] postProcessedData = new double[][]{ new double[]{ 1.1, 20, 3 }, new double[]{ 2, 10.1, 8 }, new double[]{ 1.1, 10.1, 100.1 } }; for (int i = 0; i < (data.length); i++) Assert.assertArrayEquals(postProcessedData[i], preprocessor.apply(i, VectorUtils.of(data[i])).asArray(), 1.0E-8); } }
[ "benjamin.danglot@inria.fr" ]
benjamin.danglot@inria.fr
6fbbc7379cfc5986c0b50c7535b33f35a64cd157
2ec282c465a50429743a6cfd10782ef6a50d6f8b
/src/Leetcode/CombinationSum.java
d17855b93e484af303f72256e46ea1fba92d9cc8
[]
no_license
kalpak92/TechInterview2020
c72f288e24c78bc69551e4e0b1d41b095cd93ef1
d835ab8f9fa4cc1fd1b54d377d833c5a2fda4d54
refs/heads/master
2023-04-12T02:29:45.858841
2021-04-14T02:50:03
2021-04-14T02:50:03
294,589,117
11
1
null
null
null
null
UTF-8
Java
false
false
2,348
java
package Leetcode; import java.util.ArrayList; import java.util.List; /** * @author kalpak * * Given an array of distinct integers candidates and a target integer target, * return a list of all unique combinations of candidates where the chosen numbers sum to target. * You may return the combinations in any order. * * The same number may be chosen from candidates an unlimited number of times. * Two combinations are unique if the frequency of at least one of the chosen numbers is different. * * It is guaranteed that the number of unique combinations that sum up to target is less than 150 combinations for the given input. * * * Example 1: * Input: candidates = [2,3,6,7], target = 7 * Output: [[2,2,3],[7]] * Explanation: * 2 and 3 are candidates, and 2 + 2 + 3 = 7. Note that 2 can be used multiple times. * 7 is a candidate, and 7 = 7. * These are the only two combinations. * * * Example 2: * Input: candidates = [2,3,5], target = 8 * Output: [[2,2,2,2],[2,3,3],[3,5]] * * * Example 3: * Input: candidates = [2], target = 1 * Output: [] * * * Example 4: * Input: candidates = [1], target = 1 * Output: [[1]] * * * Example 5: * Input: candidates = [1], target = 2 * Output: [[1,1]] * * * Constraints: * * 1 <= candidates.length <= 30 * 1 <= candidates[i] <= 200 * All elements of candidates are distinct. * 1 <= target <= 500 * */ public class CombinationSum { public static List<List<Integer>> combinationSum(int[] candidates, int target) { List<List<Integer>> result = new ArrayList<>(); List<Integer> temp = new ArrayList<>(); backtrack(result, temp, candidates, target, 0); return result; } private static void backtrack(List<List<Integer>> result, List<Integer> temp, int[] candidates, int target, int index) { if(target < 0) return; if(target == 0) { result.add(new ArrayList<>(temp)); return; } for(int i = index; i < candidates.length; i++) { temp.add(candidates[i]); backtrack(result, temp, candidates, target - candidates[i], i); temp.remove(temp.size() - 1); } } public static void main(String[] args) { int[] nums = new int[]{2, 3, 6, 7}; System.out.println(combinationSum(nums, 7)); } }
[ "kals9seals@gmail.com" ]
kals9seals@gmail.com
fd95071cefb2fbf7fb7a77301d75b7d6e0a7561b
cbf3c86437743b640716d05f62df0d0782f4cf24
/a_as/wulib/wu_template/src/wu/a/lib/view/CoverFlowActivity.java
eebf33ebaf386815d98970a9afe0a50173308f9f
[]
no_license
omusico/Code2
2dba213b63978aba5dc21ca400ba91b840bee283
0dd74ed835a49f86cbe7626991d3c29bc51fc8aa
refs/heads/master
2020-12-27T12:00:22.342560
2016-03-02T06:50:32
2016-03-02T06:52:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,407
java
package wu.a.lib.view; import wu.a.template.R; import android.app.Activity; import android.content.Context; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.LinearGradient; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.PorterDuff.Mode; import android.graphics.PorterDuffXfermode; import android.graphics.Shader.TileMode; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.AdapterView.OnItemSelectedListener; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; public class CoverFlowActivity extends Activity { /** Called when the activity is first created. */ CoverFlow cf; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewGroup cv=(ViewGroup) LayoutInflater.from(this).inflate(R.layout.coverflow_layout, null); setContentView(cv); cf = (CoverFlow) findViewById(R.id.Gallery01); cf.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { Toast.makeText(CoverFlowActivity.this, "position " + position, Toast.LENGTH_SHORT).show(); } @Override public void onNothingSelected(AdapterView<?> parent) { Toast.makeText(CoverFlowActivity.this, "none select", Toast.LENGTH_SHORT).show(); } }); // cf.setBackgroundResource(R.drawable.shape); LayoutAdapter layoutAdapter = new LayoutAdapter(this); cf.setAdapter(layoutAdapter); // cf.setTranslateModeX(true); // cf.setTranslateModeY(true); // cf.setTranslateModeZ(true); cf.setRotationModeY(true); cf.setSelection(2, true); // cf.setAnimationDuration(1000); initImageFlow(cv); } private void initImageFlow(ViewGroup vg) { CoverFlow cf = new CoverFlow(this); cf.setBackgroundColor(Color.BLUE); Integer[] images = { R.drawable.img0001, R.drawable.img0030, R.drawable.img0100, R.drawable.img0130, R.drawable.img0200, R.drawable.img0230, R.drawable.img0300, R.drawable.img0330, R.drawable.img0354 }; ImageAdapter adapter = new ImageAdapter(this, images); adapter.createReflectedImages(); cf.setAdapter(adapter); cf.setRotationModeY(true); vg.addView(cf); } } class LayoutAdapter extends BaseAdapter { private Context mContext; LayoutInflater lf; int account=15; public LayoutAdapter(Context c) { mContext = c; lf=(LayoutInflater) c.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public int getCount() { return account; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { if(convertView==null){ convertView=lf.inflate(R.layout.coverflow_item, null); CoverFlow.LayoutParams lp=new CoverFlow.LayoutParams(100, 100); convertView.setLayoutParams(lp); } ((TextView)convertView.findViewById(R.id.textView1)).setText("Item"+position); ((TextView)convertView.findViewById(R.id.textView1)).setSelected(false); ((TextView)convertView.findViewById(R.id.textView1)).setFocusable(false); return convertView; } } /**�������е�ͼƬ��Դ���ɴ���Ӱ�ĵ�ͼƬ��Ϊ�������ṩ��ȥ�� * @author junxu.wang * */ class ImageAdapter extends BaseAdapter { int mGalleryItemBackground; private Context mContext; private Integer[] mImageIds; private ImageView[] mImages; public ImageAdapter(Context c, Integer[] ImageIds) { mContext = c; mImageIds = ImageIds; mImages = new ImageView[mImageIds.length]; } /**���ش�����ͶӰ��ͼ�� * @return */ public boolean createReflectedImages() { /**ͼƬ��ͶӰ֮���϶�߶�*/ final int reflectionGap = 4; int index = 0; for (int imageId : mImageIds) { //����ͼ�� Bitmap originalImage = BitmapFactory.decodeResource(mContext.getResources(), imageId); int width = originalImage.getWidth(); int height = originalImage.getHeight(); //ͶӰ�任�� Matrix matrix = new Matrix(); matrix.preScale(1, -1); //����ͼ��ͶӰ����Bitmap���°벿�� Bitmap reflectionImage = Bitmap.createBitmap(originalImage, 0, height / 2, width, height / 2, matrix, false); //��ͶӰ��ͼ�� Bitmap bitmapWithReflection = Bitmap.createBitmap(width, (height + height / 2), Config.ARGB_8888); Canvas canvas = new Canvas(bitmapWithReflection); //����ԭ�� canvas.drawBitmap(originalImage, 0, 0, null); // Paint deafaultPaint = new Paint(); canvas.drawRect(0, height, width, height + reflectionGap, deafaultPaint); //����ͼ��ͶӰ���� canvas.drawBitmap(reflectionImage, 0, height + reflectionGap, null); Paint paint = new Paint(); //���Խ��� LinearGradient shader = new LinearGradient(0, originalImage .getHeight(), 0, bitmapWithReflection.getHeight() + reflectionGap, 0x70ffffff, 0x00ffffff, TileMode.CLAMP); paint.setShader(shader); paint.setXfermode(new PorterDuffXfermode(Mode.DST_IN)); canvas.drawRect(0, height, width, bitmapWithReflection.getHeight() + reflectionGap, paint); ImageView imageView = new ImageView(mContext); imageView.setImageBitmap(bitmapWithReflection); imageView.setLayoutParams(new CoverFlow.LayoutParams(180, 240)); // imageView.setScaleType(ScaleType.MATRIX); mImages[index++] = imageView; } return true; } private Resources getResources() { // TODO Auto-generated method stub return null; } public int getCount() { return mImageIds.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { return mImages[position]; } public float getScale(boolean focused, int offset) { return Math.max(0, 1.0f / (float) Math.pow(2, Math.abs(offset))); } }
[ "jx.wang@holaverse.com" ]
jx.wang@holaverse.com
88fcefe2093bac052a14a428e88ddf121e415da7
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XRENDERING-422-19-2-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/rendering/wikimodel/xhtml/filter/XHTMLWhitespaceXMLFilter_ESTest.java
dab0f21532feda3ba3ebddad6694eb7f6ff2e6d9
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
597
java
/* * This file was automatically generated by EvoSuite * Wed Apr 08 17:46:51 UTC 2020 */ package org.xwiki.rendering.wikimodel.xhtml.filter; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class XHTMLWhitespaceXMLFilter_ESTest extends XHTMLWhitespaceXMLFilter_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
38efeb5f9f8647220c7c7b89a382661c3c78295f
4913ef8eb5cde6e3b1ee74a27c3f3d54319148d9
/allbinary_src/BlisketVOJavaLibraryM/src/main/java/org/allbinary/logic/visual/dhtml/html/input/HtmlResetInput.java
f3acb1556ceb592a2c4e3e53fa5bd8cba96b978f
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
AllBinary/AllBinary-Platform
0876cfbe8f0d003b628181551f90df36f6203c6a
92adcd63427fcacbfac9cb4a6b47b92a3c2acaa7
refs/heads/master
2023-08-18T23:24:09.932268
2023-08-15T03:09:32
2023-08-15T03:09:32
1,953,077
16
3
NOASSERTION
2023-07-05T00:52:21
2011-06-25T18:29:09
Java
UTF-8
Java
false
false
633
java
/* * AllBinary Open License Version 1 * Copyright (c) 2011 AllBinary * * By agreeing to this license you and any business entity you represent are * legally bound to the AllBinary Open License Version 1 legal agreement. * * You may obtain the AllBinary Open License Version 1 legal agreement from * AllBinary or the root directory of AllBinary's AllBinary Platform repository. * * Created By: Travis Berthelot * */ package org.allbinary.logic.visual.dhtml.html.input; /** * * @author tberthel */ public class HtmlResetInput { /** Creates a new instance of HtmlResetInput */ public HtmlResetInput() { } }
[ "travisberthelot@hotmail.com" ]
travisberthelot@hotmail.com
d4d8150777e12b47c721a6ff4a15c4af3dd6d0cd
995f73d30450a6dce6bc7145d89344b4ad6e0622
/P40_HarmonyOS_2.0.0_Developer_Beta1/src/main/java/android/graphics/drawable/$$Lambda$RxCKGW6MkcsUhUvjMPifhn1hQlc.java
5c877747fc97421921ca58911e0c1eea036a09b6
[]
no_license
morningblu/HWFramework
0ceb02cbe42585d0169d9b6c4964a41b436039f5
672bb34094b8780806a10ba9b1d21036fd808b8e
refs/heads/master
2023-07-29T05:26:14.603817
2021-09-03T05:23:34
2021-09-03T05:23:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
679
java
package android.graphics.drawable; import android.animation.Animator; import java.util.function.Consumer; /* renamed from: android.graphics.drawable.-$$Lambda$RxCKGW6MkcsUhUvjMPifhn1hQlc reason: invalid class name */ /* compiled from: lambda */ public final /* synthetic */ class $$Lambda$RxCKGW6MkcsUhUvjMPifhn1hQlc implements Consumer { public static final /* synthetic */ $$Lambda$RxCKGW6MkcsUhUvjMPifhn1hQlc INSTANCE = new $$Lambda$RxCKGW6MkcsUhUvjMPifhn1hQlc(); private /* synthetic */ $$Lambda$RxCKGW6MkcsUhUvjMPifhn1hQlc() { } @Override // java.util.function.Consumer public final void accept(Object obj) { ((Animator) obj).end(); } }
[ "dstmath@163.com" ]
dstmath@163.com
f264e0bd12b0d8e047c61e73c269e34d5c87b6ce
9c352430deb438b54406653ce701a7626ba9aa2d
/src/main/assembly/conf/jmx/modules/snmp/SNMPAgentConnectionFactory.java
e0cafeb2701cdb866ff4516d3a957bbc9f4ae165
[]
no_license
pologood/apple-monitor
1314b9f32c37bf6bf332a02ce1e1e81c606c0955
f85eefc79969806d29c8db02d73c8adfb295c437
refs/heads/master
2020-05-18T15:40:57.092050
2018-10-22T12:27:54
2018-10-22T12:27:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,776
java
/** * Copyright (c) 2004-2005 jManage.org * * This is a free software; you can redistribute it and/or * modify it under the terms of the license at * http://www.jmanage.org. * * 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.appleframework.jmx.core.modules.snmp; import com.appleframework.jmx.core.management.ServerConnectionFactory; import com.appleframework.jmx.core.management.ServerConnection; import com.appleframework.jmx.core.management.ConnectionFailedException; import com.appleframework.jmx.core.config.ApplicationConfig; import snmp.SNMPv1CommunicationInterface; import java.net.InetAddress; /** * @author shashank * Date: Jul 31, 2005 */ public class SNMPAgentConnectionFactory implements ServerConnectionFactory{ /** * * @param config * @return * @throws ConnectionFailedException */ public ServerConnection getServerConnection(ApplicationConfig config) throws ConnectionFailedException { try{ InetAddress hostAddress = InetAddress.getByName(config.getHost()); SNMPv1CommunicationInterface commIntf = new SNMPv1CommunicationInterface(1, hostAddress, "public", config.getPort().intValue()); SNMPAgentConnection connection = new SNMPAgentConnection(commIntf); return connection; }catch(Throwable e){ throw new ConnectionFailedException(e); } } }
[ "xushaomin@foxmail.com" ]
xushaomin@foxmail.com
130b57bb01e93931e4ae13c7953a27e94ec0f585
5979994b215fabe125cd756559ef2166c7df7519
/aimir-model/src/main/java/com/aimir/dao/system/TimeZoneDao.java
5b1f584dfd995447b08820322da6381db3db41cf
[]
no_license
TechTinkerer42/Haiti
91c45cb1b784c9afc61bf60d43e1d5623aeba888
debaea96056d1d4611b79bd846af8f7484b93e6e
refs/heads/master
2023-04-28T23:39:43.176592
2021-05-03T10:49:42
2021-05-03T10:49:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
177
java
package com.aimir.dao.system; import com.aimir.dao.GenericDao; import com.aimir.model.system.TimeZone; public interface TimeZoneDao extends GenericDao<TimeZone, Integer> { }
[ "marsr0913@nuritelecom.com" ]
marsr0913@nuritelecom.com
b50e15b9792218edd1330d401e52c278b07fb1ba
a2579209b44f09c0617c6e4a6db0f1d92bc67884
/src/com/govoyage/ServiceTraduction/Detect.java
5b904b43e87360915489e13715d72098b39344e3
[]
no_license
BechirKaddech/BrainStormJava
1f5db67d13a5cfe931bd388b6a7957aef6622436
005c28e392b48bb2c3a34e87f9906d51d30d947f
refs/heads/master
2016-09-13T12:37:40.345172
2016-05-15T22:04:40
2016-05-15T22:04:40
58,886,720
0
0
null
null
null
null
UTF-8
Java
false
false
2,651
java
/* * Copyright 2013 Robert Theis * * 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.govoyage.ServiceTraduction; import java.net.URL; import java.net.URLEncoder; import com.govoyage.ServiceTraduction.ApiKeys; import com.govoyage.ServiceTraduction.YandexTranslatorAPI; import com.govoyage.ServiceTraduction.Language; import com.govoyage.ServiceTraduction.Translate; /** * Provides an interface to the Yandex Translator Detect service method */ public final class Detect extends YandexTranslatorAPI { private static final String SERVICE_URL = "https://translate.yandex.net/api/v1.5/tr.json/detect?"; private static final String DETECTION_LABEL = "lang"; // prevent instantiation private Detect(){}; /** * Detects the language of a supplied String. * * @param text The String to detect the language of. * @return A String containing the language * @throws Exception on error. */ public static Language execute(final String text) throws Exception { validateServiceState(text); final String params = PARAM_API_KEY + URLEncoder.encode(apiKey,ENCODING) + PARAM_TEXT + URLEncoder.encode(text,ENCODING); final URL url = new URL(SERVICE_URL + params); return Language.fromString(retrievePropString(url, DETECTION_LABEL)); } private static void validateServiceState(final String text) throws Exception { final int byteLength = text.getBytes(ENCODING).length; if(byteLength>10240) { // TODO What is the maximum text length allowable for Yandex? throw new RuntimeException("TEXT_TOO_LARGE - Yandex Translator (Detect) can handle up to 10,240 bytes per request"); } validateServiceState(); } public static void main(String[] args) { try { Translate.setKey(ApiKeys.YANDEX_API_KEY); Language translation = Detect.execute("The quick brown fox jumps over the lazy dog."); System.out.println("Detected: " + translation.toString()); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
[ "dell@dell-PC" ]
dell@dell-PC
506ae18fe5d279c274c1ab7ce797177c740ee211
8c706b0cda72bc7a4d931c76210f424ef36a4895
/thirdparty/jSCSI/bundles/initiator/src/main/java/org/jscsi/initiator/connection/state/IState.java
11e1cc02d4f5282bc8a2b40cc9dc947edcfd8506
[ "BSD-3-Clause", "LicenseRef-scancode-public-domain" ]
permissive
llbrt/eguan
6abd812f233648e8b4243d1154faac7283aa3cd5
85889da6cd7a6986468baa1019df1a0ccdd85997
refs/heads/master
2020-09-20T04:07:10.099211
2018-09-09T13:09:25
2018-09-09T13:09:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,034
java
/** * Copyright (c) 2012, University of Konstanz, Distributed Systems Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the University of Konstanz 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 <COPYRIGHT HOLDER> BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package org.jscsi.initiator.connection.state; import org.jscsi.exception.InternetSCSIException; import org.jscsi.initiator.connection.Connection; import org.jscsi.parser.ProtocolDataUnit; import org.jscsi.parser.ProtocolDataUnitFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * <h1>IState</h1> * <p/> * Each inherited state must implement this interface. * * @author Volker Wildi */ public interface IState { // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- /** * This method is always invoked, when a request message must be send or * response message must be received and then parsed. * * @throws InternetSCSIException * if any violation of the iSCSI Standard (RfC3720) has emerged. */ public void execute() throws InternetSCSIException; /** * This method shows if another state is following this one. * * @return <code>true</code>, if another state must follow this state. Else * an final state is reached. */ public boolean nextStateFollowing(); /** * This method checks the correctness of the given <code>ProtocolDataUnit</code> instance within the * current state of a * connection. * * @param protocolDataUnit * The <code>ProtocolDataUnit</code> instance to check. * @return <code>Exception</code> if any problem occured with the PDU, <code>null</code> otherwise. */ public Exception isCorrect(final ProtocolDataUnit protocolDataUnit); // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- } /** * <h1>AbstractState</h1> * <p/> * Each connection state must extend this abstract class to support some basic features. * * @author Volker Wildi */ abstract class AbstractState implements IState { // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- /** The Logger interface. */ protected static final Logger LOGGER = LoggerFactory.getLogger(AbstractState.class); // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- /** The context connection used by all message kinds. */ protected final Connection connection; /** Factory to create the <code>ProtocolDataUnit</code> instances. */ protected final ProtocolDataUnitFactory protocolDataUnitFactory = new ProtocolDataUnitFactory(); /** boolean to mark following states. */ protected boolean stateFollowing; //OODRIVE /** initiator task tag value. */ protected int initiatorTaskTag; // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- /** {@inheritDoc} */ public Exception isCorrect(final ProtocolDataUnit protocolDataUnit) { return null; } // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- /** * Constructor, which each subclass must implement to set the context * connection correctly. * * @param initConnection * The connection, which is used for the message transmission. */ protected AbstractState(final Connection initConnection, final int initInitiatorTaskTag) { connection = initConnection; // OODRIVE initiatorTaskTag = initInitiatorTaskTag ; } /** * {@inheritDoc} */ public boolean nextStateFollowing() { return this.stateFollowing; } // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- }
[ "p.wehrle@oodrive.com" ]
p.wehrle@oodrive.com
282af3271b591c2d08a511877c529f7ab7065201
a306f79281c4eb154fbbddedea126f333ab698da
/com/google/android/gms/common/internal/ImagesContract.java
ec747bad0bc14d8c0b8d9b7b4cd8dc6e6e23895f
[]
no_license
pkcsecurity/decompiled-lightbulb
50828637420b9e93e9a6b2a7d500d2a9a412d193
314bb20a383b42495c04531106c48fd871115702
refs/heads/master
2022-01-26T18:38:38.489549
2019-05-11T04:27:09
2019-05-11T04:27:09
186,070,402
0
0
null
null
null
null
UTF-8
Java
false
false
283
java
package com.google.android.gms.common.internal; import com.google.android.gms.common.annotation.KeepForSdk; @KeepForSdk public final class ImagesContract { @KeepForSdk public static final String LOCAL = "local"; @KeepForSdk public static final String URL = "url"; }
[ "josh@pkcsecurity.com" ]
josh@pkcsecurity.com
7d525eac6729776940611ac0229b0cb855d7ab9a
53040efbe1753beb22162874b649b64280af8e6a
/modules/crud/match/src/main/java/com/chun/modules/crud/dtos/MatchTimeDto.java
de5af11d63076c88d55ea0930aa9a12c3befef65
[]
no_license
ParkChunSo/we-are-player
a7eee32d98c9b7968c1beeabf1c49d8aa5748eaa
7c7ba93aee9e2c8fefc64ae5ce288dbc917831da
refs/heads/develop
2022-12-20T22:14:07.796918
2020-10-01T11:44:23
2020-10-01T11:44:23
276,661,861
1
0
null
2020-08-18T04:36:40
2020-07-02T14:03:20
Java
UTF-8
Java
false
false
213
java
package com.chun.modules.crud.dtos; import lombok.Builder; import lombok.Getter; import java.time.LocalDate; @Getter @Builder public class MatchTimeDto { private LocalDate from; private LocalDate to; }
[ "cnsth123@gmail.com" ]
cnsth123@gmail.com
0139eccb3f7df11897a2a515887116d5207fbb4c
9c4c1c5bebd24a4085e4da83224e2795b17e7ab5
/crmd-cas-sys/crmd-cas-sys-control/src/main/java/com/ffcs/crmd/cas/sys/control/StaffQueryController.java
c2148815607248922b9c7500063c8d7b9b79ee31
[]
no_license
myloveyuvip/cas
465ab0e5dde150e33c833a5bff8fad7250692460
3899eae2953111f5c4de396f3940cec9b92ba53a
refs/heads/master
2020-12-26T03:55:49.280946
2016-06-21T03:13:12
2016-06-21T03:13:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,315
java
package com.ffcs.crmd.cas.sys.control; import com.ctg.itrdc.platform.common.entity.PageInfo; import com.ctg.itrdc.platform.common.utils.type.StringUtils; import com.ffcs.crmd.cas.base.context.CasSessionContext; import com.ffcs.crmd.cas.core.control.CrmdBaseController; import com.ffcs.crmd.cas.sys.api.dto.StaffDTO; import com.ffcs.crmd.cas.sys.api.facade.ICasSysFacade; import com.ffcs.crmd.cas.sys.vo.SysQueryVo; import com.ffcs.crmd.platform.pub.ex.ExceptionUtils; import com.ffcs.crmd.platform.pub.vo.RetVo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @Controller @RequestMapping("/sys/staffQuery") @ResponseBody public class StaffQueryController extends CrmdBaseController { @Autowired ICasSysFacade casSysFacade; /** * 查询团队信息. * * @return * @author Luxb * 2016年1月4日 Luxb */ @RequestMapping("/qryStaffInfo") public RetVo qryStaffInfo(@RequestBody SysQueryVo sysQueryVo) { PageInfo pageInfo = null; try { RetVo retVo = new RetVo(true); if (StringUtils.isNullOrEmpty(sysQueryVo.getFromQryBtn())){ return retVo; } StaffDTO staffDTO = new StaffDTO(); if (StringUtils.isNullOrEmpty(sysQueryVo.getOrgId()) || 0L == sysQueryVo.getOrgId()) { ExceptionUtils.throwEx("预受理团队为空,请先选择预受理团队!"); } else { staffDTO.setOrgId(sysQueryVo.getOrgId()); } staffDTO.setStaffCode(sysQueryVo.getStaffCode()); staffDTO.setStaffName(sysQueryVo.getStaffName()); staffDTO.setPageNumber(sysQueryVo.getPageNumber()); staffDTO.setPageSize(sysQueryVo.getPageSize()); pageInfo = casSysFacade.qryStaff(staffDTO); retVo.setPageInfo(pageInfo); return retVo; } catch (Exception e) { e.printStackTrace(); RetVo retVo = new RetVo(false); retVo.setMsgTitle(e.getMessage()); return retVo; } } }
[ "qn_guo@sina.com" ]
qn_guo@sina.com
371876bb2d29731b176fa3718405b8037cd7946b
319a371ab83c04a9a2466b0ec1e2a67b93fa7f2f
/zx-erp/src/main/java/com/apih5/controller/ZxEqToEquipSourceQueryPageController.java
e7db9fbaf46820fc3d8a3e1db585b3f409630f6b
[]
no_license
zhangrenyi666/apih5-2
0232faa65e2968551d55db47fb35f689e5a03996
afd9b7d574fab11410aab5e0465a0bd706bcf942
refs/heads/master
2023-08-01T13:11:51.678508
2021-09-10T05:52:34
2021-09-10T05:52:34
406,647,352
0
0
null
null
null
null
UTF-8
Java
false
false
4,409
java
package com.apih5.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiOperation; import com.apih5.framework.annotation.RequireToken; import com.apih5.framework.entity.ResponseEntity; import com.apih5.mybatis.pojo.ZxEqEquipIntegratedQuery; import com.apih5.mybatis.pojo.ZxEqToEquipSourceQueryPage; import com.apih5.service.ZxEqToEquipSourceQueryPageService; @RestController public class ZxEqToEquipSourceQueryPageController { @Autowired(required = true) private ZxEqToEquipSourceQueryPageService zxEqToEquipSourceQueryPageService; @ApiOperation(value="查询设备来源查询", notes="查询设备来源查询") @ApiImplicitParam(name = "zxEqToEquipSourceQueryPage", value = "设备来源查询entity", dataType = "ZxEqToEquipSourceQueryPage") @RequireToken @PostMapping("/getZxEqToEquipSourceQueryPageList") public ResponseEntity getZxEqToEquipSourceQueryPageList(@RequestBody(required = false) ZxEqToEquipSourceQueryPage zxEqToEquipSourceQueryPage) { return zxEqToEquipSourceQueryPageService.getZxEqToEquipSourceQueryPageListByCondition(zxEqToEquipSourceQueryPage); } @ApiOperation(value="查询详情设备来源查询", notes="查询详情设备来源查询") @ApiImplicitParam(name = "zxEqToEquipSourceQueryPage", value = "设备来源查询entity", dataType = "ZxEqToEquipSourceQueryPage") @RequireToken @PostMapping("/getZxEqToEquipSourceQueryPageDetail") public ResponseEntity getZxEqToEquipSourceQueryPageDetail(@RequestBody(required = false) ZxEqToEquipSourceQueryPage zxEqToEquipSourceQueryPage) { return zxEqToEquipSourceQueryPageService.getZxEqToEquipSourceQueryPageDetail(zxEqToEquipSourceQueryPage); } @ApiOperation(value="新增设备来源查询", notes="新增设备来源查询") @ApiImplicitParam(name = "zxEqToEquipSourceQueryPage", value = "设备来源查询entity", dataType = "ZxEqToEquipSourceQueryPage") @RequireToken @PostMapping("/addZxEqToEquipSourceQueryPage") public ResponseEntity addZxEqToEquipSourceQueryPage(@RequestBody(required = false) ZxEqToEquipSourceQueryPage zxEqToEquipSourceQueryPage) { return zxEqToEquipSourceQueryPageService.saveZxEqToEquipSourceQueryPage(zxEqToEquipSourceQueryPage); } @ApiOperation(value="更新设备来源查询", notes="更新设备来源查询") @ApiImplicitParam(name = "zxEqToEquipSourceQueryPage", value = "设备来源查询entity", dataType = "ZxEqToEquipSourceQueryPage") @RequireToken @PostMapping("/updateZxEqToEquipSourceQueryPage") public ResponseEntity updateZxEqToEquipSourceQueryPage(@RequestBody(required = false) ZxEqToEquipSourceQueryPage zxEqToEquipSourceQueryPage) { return zxEqToEquipSourceQueryPageService.updateZxEqToEquipSourceQueryPage(zxEqToEquipSourceQueryPage); } @ApiOperation(value="删除设备来源查询", notes="删除设备来源查询") @ApiImplicitParam(name = "zxEqToEquipSourceQueryPageList", value = "设备来源查询List", dataType = "List<ZxEqToEquipSourceQueryPage>") @RequireToken @PostMapping("/batchDeleteUpdateZxEqToEquipSourceQueryPage") public ResponseEntity batchDeleteUpdateZxEqToEquipSourceQueryPage(@RequestBody(required = false) List<ZxEqToEquipSourceQueryPage> zxEqToEquipSourceQueryPageList) { return zxEqToEquipSourceQueryPageService.batchDeleteUpdateZxEqToEquipSourceQueryPage(zxEqToEquipSourceQueryPageList); } // ↓↓↓----扩展-(命名格式:export导出;import导入;sync同步;)----↓↓↓ @ApiOperation(value="报表设备来源查询", notes="报表设备来源查询") @ApiImplicitParam(name = "zxEqToEquipSourceQueryPage", value = "设备台账entity", dataType = "ZxEqToEquipSourceQueryPage") @RequireToken @PostMapping("/ureportZxEqToEquipSourceQueryPageIdle") public ResponseEntity ureportZxEqToEquipSourceQueryPageIdle(@RequestBody(required = false) ZxEqToEquipSourceQueryPage zxEqToEquipSourceQueryPage) { return zxEqToEquipSourceQueryPageService.ureportZxEqToEquipSourceQueryPageIdle(zxEqToEquipSourceQueryPage); } }
[ "2267843676@qq.com" ]
2267843676@qq.com
191a26bedb4adeb3405d6d8a7b17776fd0de403c
4b8e77c484421ad5c1eb1e92ca18a2d13472a063
/app/src/main/java/com/collegare/com/collegare/Parsers/MegernModelParser.java
d6cc3582d11c190b1089e296e715d30bf6d39fa4
[]
no_license
bxute/collegare-app
3ecccc7bb9ab2fce89282614ec800f3babc043d7
f4aea70e970ebfad5669069fcea87c91723ab482
refs/heads/master
2020-04-17T01:51:23.302915
2016-08-28T17:47:40
2016-08-28T17:47:40
46,253,540
50
3
null
null
null
null
UTF-8
Java
false
false
546
java
import org.json.JSONException; import org.json.JSONObject; class MegernModelParser { public MegernModelParser() { } public MegernModel parseMegernModel(String json_object) { MegernModel local_model = null; try { JSONObject jsobj = new JSONObject(json_object); local_model = new MegernModel(jsobj.getString("aspectRatio"), jsobj.getString("videoRespond"), jsobj.getString("embed"), jsobj.getString("list"), jsobj.getString("comment"), ); } catch (JSONException e) { e.printStackTrace(); } return local_model; } }
[ "ankit.kumar071460@gmail.com" ]
ankit.kumar071460@gmail.com
bfff2b8053ee8fff801d56cd94938d990ede771a
1c0c3a53b51f5141e7932078bdba8bd0e3766e09
/elephants-work/src/main/java/com/fayayo/elephants/client/handler/ScheduleRequestHandler.java
af0f107f7a5d3873fa6b725a71a5b652b5074e50
[]
no_license
lizu18xz/elephants
92cc17ccca8657696c5d486cfd844d7fb19a890d
e63e7624ddbb6b005ccbddf9d3482a78bca4c756
refs/heads/master
2020-05-07T12:12:19.710583
2019-04-10T03:43:35
2019-04-10T03:49:27
180,493,161
0
1
null
null
null
null
UTF-8
Java
false
false
786
java
package com.fayayo.elephants.client.handler; import com.fayayo.elephants.transport.protocol.request.ScheduleRequestPacket; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; import lombok.extern.slf4j.Slf4j; /** * @author dalizu on 2019/3/12. * @version v1.0 * @desc 处理 服务端 分发任务的请求 */ @Slf4j public class ScheduleRequestHandler extends SimpleChannelInboundHandler<ScheduleRequestPacket> { @Override protected void channelRead0(ChannelHandlerContext channelHandlerContext, ScheduleRequestPacket scheduleRequestPacket) throws Exception { log.info("~~receive server message requestId{},jobId{}~~",scheduleRequestPacket.getRequestId(),scheduleRequestPacket.getJobId()); } }
[ "535733495@qq.com" ]
535733495@qq.com
c845e254fcbfeb53daef79bcf74fc2c197ad65ea
66581bc32744f3a30be77c7638a534f024daddb6
/sakai-mini/2.8.0/sam/samigo-services/src/java/org/sakaiproject/tool/assessment/facade/AuthorizationFacade.java
7aa04cf1911ca2730627139f54233f6cc6133f16
[ "ECL-2.0" ]
permissive
lijiangt/sakai
087be33a4f20fe199458fe6a4404f37c613f3fa2
2647ef7e93617e33d53b1756918e64502522636b
refs/heads/master
2021-01-10T08:44:39.756518
2012-03-05T14:40:08
2012-03-05T14:40:08
36,716,620
1
1
null
null
null
null
UTF-8
Java
false
false
1,688
java
/********************************************************************************** * $URL: https://source.sakaiproject.org/svn/sam/trunk/component/src/java/org/sakaiproject/tool/assessment/facade/AuthorizationFacade.java $ * $Id: AuthorizationFacade.java 9273 2006-05-10 22:34:28Z daisyf@stanford.edu $ *********************************************************************************** * * Copyright (c) 2004, 2005, 2006, 2008 The Sakai Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.osedu.org/licenses/ECL-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.sakaiproject.tool.assessment.facade; import java.io.Serializable; /** * * An Authorization Facade * * @author Rachel Gollub <rgollub@stanford.edu> * @version 1.0 */ public class AuthorizationFacade implements Serializable { /** * */ private static final long serialVersionUID = 4982008711609686144L; public static boolean isAuthorized (String agentId, String function, String qualifier) { return true; } public static boolean createAuthorization (String agentId, String function, String qualifier) { return true; } }
[ "lijiangt@gmail.com" ]
lijiangt@gmail.com
9f84cc350a40b8473e8e3f0c2aa1d37a61426d24
f909ec612f17254be491c3ef9cdc1f0b186e8daf
/springboot_plugin/springboot_dubbox/platform-admin-web/src/main/java/cn/zhangxd/platform/admin/web/common/controller/BaseController.java
2dfac9041b30fe11c3ebbbc63d1c3f4e0f31d832
[]
no_license
kingking888/jun_java_plugin
8853f845f242ce51aaf01dc996ed88784395fd83
f57e31fa496d488fc96b7e9bab3c245f90db5f21
refs/heads/master
2023-06-04T19:30:29.554726
2021-06-24T17:19:55
2021-06-24T17:19:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
955
java
package cn.zhangxd.platform.admin.web.common.controller; import cn.zhangxd.platform.common.web.editor.DateEditor; import cn.zhangxd.platform.common.web.editor.StringEditor; import org.springframework.web.bind.WebDataBinder; import org.springframework.web.bind.annotation.InitBinder; import java.util.Date; /** * 控制器支持类 * * @author Wujun */ public abstract class BaseController { /** * 初始化数据绑定 * 1. 将所有传递进来的String进行HTML编码,防止XSS攻击 * 2. 将字段中Date类型转换为String类型 * * @param binder the binder */ @InitBinder protected void initBinder(WebDataBinder binder) { // String类型转换,将所有传递进来的String进行HTML编码,防止XSS攻击 binder.registerCustomEditor(String.class, new StringEditor()); // Date 类型转换 binder.registerCustomEditor(Date.class, new DateEditor()); } }
[ "wujun728@hotmail.com" ]
wujun728@hotmail.com
6cbf97f21db7f673be38a968ff4d966f00599c3a
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MATH-8b-1-30-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/apache/commons/math3/distribution/DiscreteDistribution_ESTest_scaffolding.java
c2f2a2e292463775e91f38114b86b2d14cc88b19
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
462
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Mon Apr 06 07:58:27 UTC 2020 */ package org.apache.commons.math3.distribution; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class DiscreteDistribution_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
f6432a0a56fd24911c583c2debe31b23b1626aff
69011b4a6233db48e56db40bc8a140f0dd721d62
/src/com/jshx/httpData/util/UploadQygljgxxTools.java
d492201f6e13ca41bd910fbd28da1132d377d1a8
[]
no_license
gechenrun/scysuper
bc5397e5220ee42dae5012a0efd23397c8c5cda0
e706d287700ff11d289c16f118ce7e47f7f9b154
refs/heads/master
2020-03-23T19:06:43.185061
2018-06-10T07:51:18
2018-06-10T07:51:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
8,214
java
package com.jshx.httpData.util; import java.util.List; import java.util.Map; import com.jshx.httpData.USRCoreService; import com.jshx.httpData.USRCoreServiceSoap; public class UploadQygljgxxTools { public static String parseMapToStr(List<Map> coms){ String content = "<?xml version='1.0' encoding='GB2312'?>"+ "<DataBody>"+ "<UserArea>"+ "<Token>6ba5f4e1-e131-4372-8eb7-27e788810b7d</Token>"+ "<MethodID>AJDataPost.DataExchange.DataPost</MethodID>"+ "<Params>"+ "<Param name='xml'><![CDATA[<?xml version='1.0' encoding='utf-8'?>"+ "<DataTable>"+ "<Name>qygljgxx</Name>"+ "<RowCount>1</RowCount>"+ "<ColumnDesc>"+ "<DeptID Range='DeptID' Default='' Required='1' DataFormat='A2' DataType='String' Text='上报市区编码'></DeptID>"+ "<Qyid Range='' Default='' Required='1' DataFormat='A32' DataType='String' Text='企业ID'></Qyid>"+ "<Aqzjxm Range='' Default='' Required='' DataFormat='A50' DataType='String' Text='安全总监:姓名'></Aqzjxm>"+ "<Aqzjzw Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='安全总监:职务'></Aqzjzw>"+ "<Aqzjxb Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='安全总监:性别'></Aqzjxb>"+ "<Aqzjdh Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='安全总监:办公电话'></Aqzjdh>"+ "<aqzjyj Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='安全总监:电子邮件'></aqzjyj>"+ "<aqzjsj Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='安全总监:手机号码'></aqzjsj>"+ "<Zyfzrxm Range='' Default='' Required='1' DataFormat='A50' DataType='String' Text='主要负责人:姓名'></Zyfzrxm>"+ "<Zyfzrzw Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='主要负责人:职务'></Zyfzrzw>"+ "<Zyfzrxb Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='主要负责人:性别'></Zyfzrxb>"+ "<Zyfzrdh Range='' Default='' Required='1' DataFormat='A100' DataType='String' Text='主要负责人:办公电话'></Zyfzrdh>"+ "<Zyfzryj Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='主要负责人:电子邮件'></Zyfzryj>"+ "<Zyfzrsj Range='' Default='' Required='1' DataFormat='A100' DataType='String' Text='主要负责人:手机号码'></Zyfzrsj>"+ "<Fgfzrxm Range='' Default='' Required='' DataFormat='A50' DataType='String' Text='分管负责人:姓名'></Fgfzrxm>"+ "<Fgfzrzw Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='分管负责人:职务'></Fgfzrzw>"+ "<Fgfzrxb Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='分管负责人:性别'></Fgfzrxb>"+ "<Fgfzrdh Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='分管负责人:办公电话'></Fgfzrdh>"+ "<Fgfzryj Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='分管负责人:电子邮件'></Fgfzryj>"+ "<Fgfzrsj Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='分管负责人:手机号码'></Fgfzrsj>"+ "<Jgfzrxm Range='' Default='' Required='' DataFormat='A50' DataType='String' Text='安全管理机构负责人:姓名'></Jgfzrxm>"+ "<Jgfzrzw Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='安全管理机构负责人:职务'></Jgfzrzw>"+ "<Jgfzrxb Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='安全管理机构负责人:性别'></Jgfzrxb>"+ "<Jgfzrdh Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='安全管理机构负责人:办公电话'></Jgfzrdh>"+ "<Jgfzryj Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='安全管理机构负责人:电子邮件'></Jgfzryj>"+ "<jgfzrsj Range='' Default='' Required='' DataFormat='A100' DataType='String' Text='安全管理机构负责人:手机号码'></jgfzrsj>"+ "</ColumnDesc>"+ "<Range>"+ "<Item name='DeptID' type='S'>"+ "<Dictionary>"+ "<Item key='01'>张家港市</Item>"+ "<Item key='02'>常熟市</Item>"+ "<Item key='03'>太仓市</Item>"+ "<Item key='04'>昆山市</Item>"+ "<Item key='05'>吴江区</Item>"+ "<Item key='06'>吴中区</Item>"+ "<Item key='07'>相城区</Item>"+ "<Item key='08'>姑苏区</Item>"+ "<Item key='09'>工业园区</Item>"+ "<Item key='10'>高新区</Item>"+ "</Dictionary>"+ "</Item>"+ "<Item name='Aqzjxb' type='S'>"+ "<Dictionary>"+ "<Item key='01'>男</Item>"+ "<Item key='02'>女</Item>"+ "</Dictionary>"+ "</Item>"+ "<Item name='Zyfzrxb' type='S'>"+ "<Dictionary>"+ "<Item key='01'>男</Item>"+ "<Item key='02'>女</Item>"+ "</Dictionary>"+ "</Item>"+ "<Item name='Fgfzrxb' type='S'>"+ "<Dictionary>"+ "<Item key='01'>男</Item>"+ "<Item key='02'>女</Item>"+ "</Dictionary>"+ "</Item>"+ "<Item name='Jgfzrxb' type='S'>"+ "<Dictionary>"+ "<Item key='01'>男</Item>"+ "<Item key='02'>女</Item>"+ "</Dictionary>"+ "</Item>"+ "</Range>"; if(coms!=null&&!coms.isEmpty()){ for(Map m:coms){ String com = "<RowContent>"+ "<DeptID>09</DeptID>"+ "<Qyid>"+convertObject(m.get("QYID"))+"</Qyid>"+ "<Aqzjxm>"+convertObject(m.get("AJXM"))+"</Aqzjxm>"+ "<Aqzjzw>安全总监</Aqzjzw>"+ "<Aqzjxb></Aqzjxb>"+ "<Aqzjdh>"+convertObject(m.get("AJHM"))+"</Aqzjdh>"+ "<aqzjyj>"+convertObject(m.get("AJYX"))+"</aqzjyj>"+ "<aqzjsj>"+convertObject(m.get("AJHM"))+"</aqzjsj>"+ "<Zyfzrxm>"+convertObject(m.get("ZYXM"))+"</Zyfzrxm>"+ "<Zyfzrzw>主要负责人</Zyfzrzw>"+ "<Zyfzrxb></Zyfzrxb>"+ "<Zyfzrdh>"+convertObject(m.get("ZYHM"))+"</Zyfzrdh>"+ "<Zyfzryj>"+convertObject(m.get("ZYYX"))+"</Zyfzryj>"+ "<Zyfzrsj>"+convertObject(m.get("ZYHM"))+"</Zyfzrsj>"+ "<Fgfzrxm>"+convertObject(m.get("FGXM"))+"</Fgfzrxm>"+ "<Fgfzrzw>分管负责人</Fgfzrzw>"+ "<Fgfzrxb></Fgfzrxb>"+ "<Fgfzrdh>"+convertObject(m.get("FGHM"))+"</Fgfzrdh>"+ "<Fgfzryj>"+convertObject(m.get("FGYX"))+"</Fgfzryj>"+ "<Fgfzrsj>"+convertObject(m.get("FGHM"))+"</Fgfzrsj>"+ "<Jgfzrxm>"+convertObject(m.get("JGXM"))+"</Jgfzrxm>"+ "<Jgfzrzw>安全管理机构负责人</Jgfzrzw>"+ "<Jgfzrxb></Jgfzrxb>"+ "<Jgfzrdh>"+convertObject(m.get("JGHM"))+"</Jgfzrdh>"+ "<Jgfzryj>"+convertObject(m.get("JGYX"))+"</Jgfzryj>"+ "<jgfzrsj>"+convertObject(m.get("JGHM"))+"</jgfzrsj>"+ "</RowContent>"; content += com; } content += "</DataTable>]]></Param></Params></UserArea></DataBody>"; } return content; } private static String convertObject(Object o){ if(o==null||"null".equals(o)){ return ""; } return String.valueOf(o).trim(); } private static String convertObjectSpecial(Object o){ if(o==null||"null".equals(o)){ return ""; } String s = String.valueOf(o).trim(); if(s.contains("<")){ s = s.replace("<", " &lt;"); } if(s.contains(">")){ s= s.replace(">", "&gt;"); } if(s.contains("&")){ s=s.replace(">", "&amp;"); } if(s.contains("\"")){ s=s.replace("\"", "&quot;"); } if(s.contains("\'")){ s=s.replace("\'", "&apos;"); } return s; } private static float convertObjectFloat(Object o){ if(o==null||"null".equals(o)){ return 0.0f; } return Float.parseFloat(o+""); } public static boolean uploadCompanys(List<Map> coms){ boolean flag = false; try { String content = parseMapToStr(coms); System.out.println("机构信息"+content); USRCoreService service = new USRCoreService(); USRCoreServiceSoap syn = service.getUSRCoreServiceSoap(); String result = syn.callDestService(content); if(result.contains("<Status>true</Status><Description>OK</Description>")){ flag = true; }else{ System.out.println("错误的企业"); } } catch (Exception e) { e.printStackTrace(); } return flag; } public static void main(String[] args) { try { /*List<Map> coms = new ArrayList<Map>(); Map m = new HashMap(); m.put("QYID","10000001"); coms.add(m);*/ String s = "26-07-09"; s.replace("-", "/"); System.out.println(s); } catch (Exception e) { e.printStackTrace(); } } }
[ "shellchange@sina.com" ]
shellchange@sina.com
71ebdb142b8a86a4583dcc1899426dd4f2ca6c7c
9c21c3c2a11b787d80c2754ede7960af29d37731
/server/src/org/apollo/game/event/encoder/OpenInterfaceSidebarEventEncoder.java
3bae493d38b8530e37e84919c38616cb85db6e8d
[ "ISC" ]
permissive
rafaelstronger/aj8
fca643c3ee15526bd685369fd17598bd4fdfaaaf
ed559054d495e0e720d4f4dd65d6d21236d684e1
refs/heads/master
2021-01-14T13:42:50.796105
2014-03-03T04:09:04
2014-03-03T04:09:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
949
java
package org.apollo.game.event.encoder; import org.apollo.game.event.EventEncoder; import org.apollo.game.event.annotate.EncodesEvent; import org.apollo.game.event.impl.OpenInterfaceSidebarEvent; import org.apollo.net.codec.game.DataTransformation; import org.apollo.net.codec.game.DataType; import org.apollo.net.codec.game.GamePacket; import org.apollo.net.codec.game.GamePacketBuilder; /** * An {@link EventEncoder} for the {@link OpenInterfaceSidebarEvent}. * @author Graham */ @EncodesEvent( OpenInterfaceSidebarEvent.class ) public final class OpenInterfaceSidebarEventEncoder extends EventEncoder<OpenInterfaceSidebarEvent> { @Override public GamePacket encode( OpenInterfaceSidebarEvent event ) { GamePacketBuilder builder = new GamePacketBuilder( 248 ); builder.put( DataType.SHORT, DataTransformation.ADD, event.getInterfaceId() ); builder.put( DataType.SHORT, event.getSidebarId() ); return builder.toGamePacket(); } }
[ "ryley.kimmel@live.com" ]
ryley.kimmel@live.com
0fbf75517635567c05b025202262a616d63eca3f
ff17aa326a62de027a014fab99a652f593c7381f
/module_mine/src/main/java/com/example/suggestion/SuggestionPresenter.java
d3e8e55543f8c20a5c42bf12a558148505be3d30
[]
no_license
majiaxue/jikehui
401aa2db1a3846bbbef9d29a29cdb934cb18b4c2
9b30feb8dbf058954fe59676303fd260ab5282c8
refs/heads/master
2022-08-22T18:25:08.014789
2020-05-23T10:40:22
2020-05-23T10:40:22
263,837,386
1
1
null
null
null
null
UTF-8
Java
false
false
2,530
java
package com.example.suggestion; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.view.MotionEvent; import android.view.View; import android.widget.EditText; import android.widget.Toast; import com.example.common.CommonResource; import com.example.mvp.BasePresenter; import com.example.net.OnDataListener; import com.example.net.OnMyCallBack; import com.example.net.RetrofitUtil; import com.example.suggestion_history.SuggestionHistoryActivity; import com.example.utils.LogUtil; import com.example.utils.MapUtil; import com.example.utils.SPUtil; import java.util.Map; import io.reactivex.Observable; public class SuggestionPresenter extends BasePresenter<SuggestionView> { public SuggestionPresenter(Context context) { super(context); } @Override protected void onViewDestroy() { } public void jumpToHistory() { mContext.startActivity(new Intent(mContext, SuggestionHistoryActivity.class)); } public void submit(String content) { Map map = MapUtil.getInstance().addParms("message", content).build(); Observable observable = RetrofitUtil.getInstance().getApi(CommonResource.BASEURL_4001).postHead(CommonResource.SUGGESTION, map, SPUtil.getToken()); RetrofitUtil.getInstance().toSubscribe(observable, new OnMyCallBack(new OnDataListener() { @Override public void onSuccess(String result, String msg) { LogUtil.e("提交意见:" + result); Toast.makeText(mContext, "反馈成功", Toast.LENGTH_SHORT).show(); ((Activity) mContext).finish(); } @Override public void onError(String errorCode, String errorMsg) { } })); } public boolean isShouldHideInput(View v, MotionEvent ev) { if (v != null && (v instanceof EditText)) { int[] leftTop = {0, 0}; //获取输入框当前的location位置 v.getLocationInWindow(leftTop); int left = leftTop[0]; int top = leftTop[1]; int bottom = top + v.getHeight(); int right = left + v.getWidth(); if (ev.getX() > left && ev.getX() < right && ev.getY() > top && ev.getY() < bottom) { // 点击的是输入框区域,保留点击EditText的事件 return false; } else { return true; } } return false; } }
[ "ellliot_zhang_z@163.com" ]
ellliot_zhang_z@163.com
e5d3f8fce96c659b31e3aeec81d5cfcbfbf23f4d
a26ec63279caad0dd0f57120f10440bbd3645ba4
/tvlivebundle/src/main/java/com/yunos/tvtaobao/tvlive/bo/model/bean/YGVideo.java
5fac799a25b2b716d4f2de84a1c02469f0c92bf1
[]
no_license
P79N6A/tvtao
6b0af50a878e882ad2c0da399a0a8c0304394dff
4943116ec8cfb946b85cbfea9641e87834e675ed
refs/heads/master
2020-04-25T15:27:50.798979
2019-02-27T08:55:16
2019-02-27T08:55:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
411
java
package com.yunos.tvtaobao.tvlive.bo.model.bean; import java.util.List; /** * Created by huangdaju on 17/7/19. * 央广视频实体类 */ public class YGVideo { private List<YGVideoInfo> mYGVideoInfos; public List<YGVideoInfo> getYGVideoInfos() { return mYGVideoInfos; } public void setYGVideoInfos(List<YGVideoInfo> YGVideoInfos) { mYGVideoInfos = YGVideoInfos; } }
[ "wb-wht434871@alibaba-inc.com" ]
wb-wht434871@alibaba-inc.com
64c91c7509317cad798844397b41bf25b11012c3
1ba27fc930ba20782e9ef703e0dc7b69391e191b
/Src/JDBCImporter/src/main/java/net/sourceforge/jdbcexporter/event/ExportEvent.java
99d5ed12adb2e5a3fc68d6334d87420aaaa709d8
[]
no_license
LO-RAN/codeQualityPortal
b0d81c76968bdcfce659959d0122e398c647b09f
a7c26209a616d74910f88ce0d60a6dc148dda272
refs/heads/master
2023-07-11T18:39:04.819034
2022-03-31T15:37:56
2022-03-31T15:37:56
37,261,337
0
0
null
null
null
null
UTF-8
Java
false
false
2,227
java
package net.sourceforge.jdbcexporter.event; /* * JDBC Importer - database import utility/framework. * Copyright (C) 2002 Chris Nagy * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Chris Nagy * Email: cnagyxyz@hotmail.com */ import java.util.EventObject; import net.sourceforge.jdbcexporter.ExportDef; import net.sourceforge.jdbcimporter.ImportDef; /** * The ExportEvent describes the state of the export. * * @version 0.67 * @author Chris Nagy */ public class ExportEvent extends EventObject { /** * The configuration of the export. */ protected ExportDef exportDef; /** * The classname of the ExportEngine in use. */ protected String engineClassname; /** * Constructs a new export event. * * @param source the source of the event * @param exportDef the configuration of the export * @param engineClassname the classname of the ExportEngine in use */ public ExportEvent(Object source, ExportDef exportDef, String engineClassname ) { super(source); this.exportDef = exportDef; this.engineClassname = engineClassname; } /** * Returns the number of entities in this import. * * @return number of entities */ public int getEntityCount() { return exportDef.getEntities().length; } /** * Returns the classname of the ExportEngine being used. * * @return the classname of the ExportEngine */ public String getEngineClassname() { return engineClassname; } }
[ "laurent.izac@gmail.com" ]
laurent.izac@gmail.com
2da1c97824a6ec66674fbfabcc71436437bcf624
47ea37f56c712cd3f7f3063ce817d640cc76d1c7
/net.sf.parteg.base/src/net/sf/parteg/base/testcasetree/actions/TestCaseGraphAddNodeAction.java
2220da8d7481b5ba2f83a42701aea492d09c9991
[]
no_license
Xilaew/uml-activity-testcasegenerator
c194e0f93d8ff6e92e04582bee39f9dce1d7f5fb
33b1833aaa70ebd2d05d2cf9fa2dc545129ea025
refs/heads/master
2020-05-18T06:51:19.024164
2014-07-08T23:31:13
2014-07-08T23:31:13
38,853,918
0
0
null
null
null
null
UTF-8
Java
false
false
1,037
java
package net.sf.parteg.base.testcasetree.actions; import net.sf.parteg.base.testcasetree.generated.TCGNode; import net.sf.parteg.base.testcasetree.ocl.TestCaseGraphHelper; public class TestCaseGraphAddNodeAction implements TestCaseGraphAction { private TCGNode m_oOldSourceNode; private TCGNode m_oNewTargetNode; private TestCaseGraphHelper m_oTestCaseGraphHelper; public TestCaseGraphAddNodeAction(TestCaseGraphHelper in_oTestCaseGraphHelper, TCGNode in_oOldSourceNode) { m_oTestCaseGraphHelper = in_oTestCaseGraphHelper; m_oOldSourceNode = in_oOldSourceNode; m_oNewTargetNode = null; } public TCGNode getNode() { return m_oNewTargetNode; } public void execute() { m_oNewTargetNode = m_oTestCaseGraphHelper.addNode(); m_oTestCaseGraphHelper.addTransition(m_oOldSourceNode, m_oNewTargetNode); m_oNewTargetNode.setDistanceToRoot(m_oOldSourceNode.getDistanceToRoot() + 1); } public void reverse() { m_oTestCaseGraphHelper.removeNode(m_oNewTargetNode); } }
[ "xilaew@gmail.com" ]
xilaew@gmail.com
9f298d60e7694017fbf035b422b88f48c167f6fb
187b211464d5a30a6865fcc4a00986ec02243d49
/luckwine-synthesize/luckwine-synthesize-web/src/main/java/com/luckwine/synthesize/handle/remote/SkuDetailRemoteService.java
7f0de29e1ed99c3d8a8eb357a30d36e72152d033
[]
no_license
guangtong-information/luckwine-mall
3b7fa3d809d9b1e9575e2643ea6915aedcb781e8
a564126d8a9b63e6650f72590f63af834822bf2e
refs/heads/master
2022-06-27T07:12:17.243240
2020-09-04T09:35:54
2020-09-04T09:35:54
171,574,799
10
10
null
2022-06-21T00:56:34
2019-02-20T00:53:24
TSQL
UTF-8
Java
false
false
977
java
package com.luckwine.synthesize.handle.remote; import com.alibaba.dubbo.config.annotation.Reference; import com.luckwine.goods.model.base.vo.SkuDetail; import com.luckwine.goods.model.request.sku.SkuDetailGetByIdsRequest; import com.luckwine.goods.model.service.SkuService; import com.luckwine.parent.entitybase.request.CommonRequest; import com.luckwine.parent.entitybase.response.CommonResponse; import com.luckwine.parent.template.SingleRemoteTemplate; import org.springframework.stereotype.Service; import java.util.List; @Service public class SkuDetailRemoteService extends SingleRemoteTemplate<SkuDetailGetByIdsRequest, List<SkuDetail>> { @Reference(version = "1.0.0", timeout = 5000) private SkuService skuService; @Override protected CommonResponse<List<SkuDetail>> callRemote(CommonRequest<SkuDetailGetByIdsRequest> request) { CommonResponse<List<SkuDetail>> remoteRes = skuService.getSkuDetail(request); return remoteRes; } }
[ "th15817161961@gmail.com" ]
th15817161961@gmail.com
877d6e8e90d9aabdbe93a4d1ac1987cda8ec37aa
0124e565b2ca5d223fddd10dd9d851437ab59dc2
/myjdk/src/com/sun/corba/se/PortableActivationIDL/TCPPortHelper.java
3ab7fc0d9694e292ef2a20611d5d5c94a50a1ca3
[]
no_license
lvcs123456/syncMore
331db4092017ba17b38ead80ab47fc4c6615683e
43074b41851cf6514e4b28037e2465fb806b46b1
refs/heads/master
2023-01-23T11:29:02.755417
2020-11-04T12:14:37
2020-11-04T12:14:37
309,552,899
0
0
null
null
null
null
UTF-8
Java
false
false
1,836
java
package com.sun.corba.se.PortableActivationIDL; /** * com/sun/corba/se/PortableActivationIDL/TCPPortHelper.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from c:/ade/jenkins/workspace/8-2-build-windows-i586-cygwin/jdk8u241/331/corba/src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl * Wednesday, December 11, 2019 10:25:11 AM UTC */ /** Type of TCP port number, used in structures that describe * transport endpoints. The valid range is actually 0-65535, but * we use a long here to avoid signed/unsigned conversion headaches * in Java. */ abstract public class TCPPortHelper { private static String _id = "IDL:PortableActivationIDL/TCPPort:1.0"; public static void insert (org.omg.CORBA.Any a, int that) { org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); a.type (type ()); write (out, that); a.read_value (out.create_input_stream (), type ()); } public static int extract (org.omg.CORBA.Any a) { return read (a.create_input_stream ()); } private static org.omg.CORBA.TypeCode __typeCode = null; synchronized public static org.omg.CORBA.TypeCode type () { if (__typeCode == null) { __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (com.sun.corba.se.PortableActivationIDL.TCPPortHelper.id (), "TCPPort", __typeCode); } return __typeCode; } public static String id () { return _id; } public static int read (org.omg.CORBA.portable.InputStream istream) { int value = (int)0; value = istream.read_long (); return value; } public static void write (org.omg.CORBA.portable.OutputStream ostream, int value) { ostream.write_long (value); } }
[ "1731033071@qq.com" ]
1731033071@qq.com
5c9cbba4c9a961ba9a762ffd1e1a27e33f0c4c0a
a385e88fd3bee2dfcce2c585d83ee3a555f859a0
/src/main/java/uk/ac/glam/wcsclient/wcs100/TimePeriodType.java
9cff47aa63b4b9a389d522b180e46c0c24392c1d
[]
no_license
deadpassive/wcsclient
d6bf681fc1cab5212cd4a97cf3922d48880f13a2
f0679c2403477b64616ffc1eda7ce1a078694f50
refs/heads/master
2016-09-06T03:09:35.958567
2012-11-15T09:46:15
2012-11-15T09:46:15
6,627,114
0
1
null
null
null
null
UTF-8
Java
false
false
6,369
java
/** * <copyright> * </copyright> * * $Id$ */ package uk.ac.glam.wcsclient.wcs100; import org.eclipse.emf.ecore.EObject; import uk.ac.glam.wcsclient.wcs100.gml.TimePositionType; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Time Period Type</b></em>'. * <!-- end-user-doc --> * * <!-- begin-model-doc --> * This is a variation of the GML TimePeriod, which allows the beginning and end of a time-period to be expressed in short-form inline using the begin/endPosition element, which allows an identifiable TimeInstant to be defined simultaneously with using it, or by reference, using xlinks on the begin/end elements. * <!-- end-model-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link uk.ac.glam.wcsclient.wcs100.TimePeriodType#getBeginPosition <em>Begin Position</em>}</li> * <li>{@link uk.ac.glam.wcsclient.wcs100.TimePeriodType#getEndPosition <em>End Position</em>}</li> * <li>{@link uk.ac.glam.wcsclient.wcs100.TimePeriodType#getTimeResolution <em>Time Resolution</em>}</li> * <li>{@link uk.ac.glam.wcsclient.wcs100.TimePeriodType#getFrame <em>Frame</em>}</li> * </ul> * </p> * * @see uk.ac.glam.wcsclient.wcs100.Wcs100Package#getTimePeriodType() * @model extendedMetaData="name='TimePeriodType' kind='elementOnly'" * @generated */ public interface TimePeriodType extends EObject { /** * Returns the value of the '<em><b>Begin Position</b></em>' containment reference. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Begin Position</em>' containment reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Begin Position</em>' containment reference. * @see #setBeginPosition(TimePositionType) * @see uk.ac.glam.wcsclient.wcs100.Wcs100Package#getTimePeriodType_BeginPosition() * @model containment="true" required="true" * extendedMetaData="kind='element' name='beginPosition' namespace='##targetNamespace'" * @generated */ TimePositionType getBeginPosition(); /** * Sets the value of the '{@link uk.ac.glam.wcsclient.wcs100.TimePeriodType#getBeginPosition <em>Begin Position</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Begin Position</em>' containment reference. * @see #getBeginPosition() * @generated */ void setBeginPosition(TimePositionType value); /** * Returns the value of the '<em><b>End Position</b></em>' containment reference. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>End Position</em>' containment reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>End Position</em>' containment reference. * @see #setEndPosition(TimePositionType) * @see uk.ac.glam.wcsclient.wcs100.Wcs100Package#getTimePeriodType_EndPosition() * @model containment="true" required="true" * extendedMetaData="kind='element' name='endPosition' namespace='##targetNamespace'" * @generated */ TimePositionType getEndPosition(); /** * Sets the value of the '{@link uk.ac.glam.wcsclient.wcs100.TimePeriodType#getEndPosition <em>End Position</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>End Position</em>' containment reference. * @see #getEndPosition() * @generated */ void setEndPosition(TimePositionType value); /** * Returns the value of the '<em><b>Time Resolution</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Time Resolution</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Time Resolution</em>' attribute. * @see #setTimeResolution(Object) * @see uk.ac.glam.wcsclient.wcs100.Wcs100Package#getTimePeriodType_TimeResolution() * @model dataType="uk.ac.glam.wcsclient.wcs100.gml.TimeDurationType" * extendedMetaData="kind='element' name='timeResolution' namespace='##targetNamespace'" * @generated */ Object getTimeResolution(); /** * Sets the value of the '{@link uk.ac.glam.wcsclient.wcs100.TimePeriodType#getTimeResolution <em>Time Resolution</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Time Resolution</em>' attribute. * @see #getTimeResolution() * @generated */ void setTimeResolution(Object value); /** * Returns the value of the '<em><b>Frame</b></em>' attribute. * The default value is <code>"#ISO-8601"</code>. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Frame</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Frame</em>' attribute. * @see #isSetFrame() * @see #unsetFrame() * @see #setFrame(String) * @see uk.ac.glam.wcsclient.wcs100.Wcs100Package#getTimePeriodType_Frame() * @model default="#ISO-8601" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.AnyURI" * extendedMetaData="kind='attribute' name='frame'" * @generated */ String getFrame(); /** * Sets the value of the '{@link uk.ac.glam.wcsclient.wcs100.TimePeriodType#getFrame <em>Frame</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Frame</em>' attribute. * @see #isSetFrame() * @see #unsetFrame() * @see #getFrame() * @generated */ void setFrame(String value); /** * Unsets the value of the '{@link uk.ac.glam.wcsclient.wcs100.TimePeriodType#getFrame <em>Frame</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetFrame() * @see #getFrame() * @see #setFrame(String) * @generated */ void unsetFrame(); /** * Returns whether the value of the '{@link uk.ac.glam.wcsclient.wcs100.TimePeriodType#getFrame <em>Frame</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>Frame</em>' attribute is set. * @see #unsetFrame() * @see #getFrame() * @see #setFrame(String) * @generated */ boolean isSetFrame(); } // TimePeriodType
[ "mankillseverything@gmail.com" ]
mankillseverything@gmail.com
d63cd2fdb88cca4e439732d5c3b67ae358b37242
dfd11915565d64fbd2a110feb3f616b94dd5a1f8
/java-web-test/shengsiyuansrc/main/java/com/shengsiyuan/filter/MyFilter2.java
832662c1d0bfb78a56bc1c6035a9ea1a7d3ff418
[ "Apache-2.0" ]
permissive
jiangxincode/JavaWebTest
64fe4e1a8cb80e6bc1aa1508bff1e4e111020651
a766e429360eecb79734f322853a14f360175b67
refs/heads/master
2023-08-30T12:36:14.374336
2023-08-18T12:04:07
2023-08-18T12:04:07
27,476,304
0
0
null
null
null
null
UTF-8
Java
false
false
794
java
package com.shengsiyuan.filter; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; public class MyFilter2 implements Filter { public void destroy() { // TODO Auto-generated method stub } public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { System.out.println("myFilter2 before chain.doFilter"); chain.doFilter(request, response); System.out.println("myFilter2 after chain.doFilter"); } public void init(FilterConfig filterConfig) throws ServletException { // TODO Auto-generated method stub } }
[ "jiangxinnju@163.com" ]
jiangxinnju@163.com
d3b196e52ccbf00d3130cf5d54ae702ba42a61a9
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/multitask/PluginMultiTask$$ExternalSyntheticLambda0.java
64e7f6233b05029fe2c1df6de3607562c6603698
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
438
java
package com.tencent.mm.plugin.multitask; import com.tencent.mm.ipcinvoker.f; public final class PluginMultiTask$$ExternalSyntheticLambda0 implements f { public final void onCallback(Object arg1) {} } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes8.jar * Qualified Name: com.tencent.mm.plugin.multitask.PluginMultiTask..ExternalSyntheticLambda0 * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
76e247cb2377ebd11a3865845a8af9fded93f470
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/lucene-solr/2015/12/BasicAccumulator.java
c78de1c4c9757b8bae19e6305ef5a77a52c4b0e5
[ "Apache-2.0" ]
permissive
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Java
false
false
6,587
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.solr.analytics.accumulator; import java.io.IOException; import java.lang.invoke.MethodHandles; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Set; import org.apache.lucene.index.LeafReaderContext; import org.apache.solr.analytics.expression.Expression; import org.apache.solr.analytics.expression.ExpressionFactory; import org.apache.solr.analytics.request.AnalyticsRequest; import org.apache.solr.analytics.request.ExpressionRequest; import org.apache.solr.analytics.statistics.StatsCollector; import org.apache.solr.analytics.statistics.StatsCollectorSupplierFactory; import org.apache.solr.common.SolrException; import org.apache.solr.common.SolrException.ErrorCode; import org.apache.solr.common.util.NamedList; import org.apache.solr.search.DocSet; import org.apache.solr.search.SolrIndexSearcher; import org.apache.solr.util.DateFormatUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.common.base.Supplier; /** * A <code>BasicAccumulator</code> manages the ValueCounters and Expressions without regard to Facets. */ public class BasicAccumulator extends ValueAccumulator { private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); protected final SolrIndexSearcher searcher; protected final AnalyticsRequest request; protected final DocSet docs; protected final Supplier<StatsCollector[]> statsCollectorArraySupplier; protected final StatsCollector[] statsCollectors; protected final Expression[] expressions; protected final String[] expressionNames; protected final String[] expressionStrings; protected final Set<String> hiddenExpressions; protected LeafReaderContext context = null; public BasicAccumulator(SolrIndexSearcher searcher, DocSet docs, AnalyticsRequest request) throws IOException { this.searcher = searcher; this.docs = docs; this.request = request; final List<ExpressionRequest> exRequests = new ArrayList<ExpressionRequest>(request.getExpressions()); // make a copy here Collections.sort(exRequests); log.info("Processing request '"+request.getName()+"'"); statsCollectorArraySupplier = StatsCollectorSupplierFactory.create(searcher.getSchema(), exRequests); statsCollectors = statsCollectorArraySupplier.get(); int size = exRequests.size(); expressionNames = new String[size]; expressionStrings = new String[size]; int count = 0; for (ExpressionRequest expRequest : exRequests) { expressionNames[count] = expRequest.getName(); expressionStrings[count++] = expRequest.getExpressionString(); } expressions = makeExpressions(statsCollectors); hiddenExpressions = request.getHiddenExpressions(); } @Override protected void doSetNextReader(LeafReaderContext context) throws IOException { this.context = context; for (StatsCollector counter : statsCollectors) { counter.setNextReader(context); } } public static BasicAccumulator create(SolrIndexSearcher searcher, DocSet docs, AnalyticsRequest request) throws IOException { return new BasicAccumulator(searcher,docs,request); } /** * Passes the documents on to the {@link StatsCollector}s to be collected. * @param doc Document to collect from */ @Override public void collect(int doc) throws IOException { for (StatsCollector statsCollector : statsCollectors) { statsCollector.collect(doc); } } @Override public void compute() { for (StatsCollector statsCollector : statsCollectors) { statsCollector.compute(); } } public NamedList<?> export(){ NamedList<Object> base = new NamedList<>(); for (int count = 0; count < expressions.length; count++) { if (!hiddenExpressions.contains(expressionNames[count])) { base.add(expressionNames[count], expressions[count].getValue()); } } return base; } /** * Builds an array of Expressions with the given list of counters * @param statsCollectors the stats collectors * @return The array of Expressions */ public Expression[] makeExpressions(StatsCollector[] statsCollectors) { Expression[] expressions = new Expression[expressionStrings.length]; for (int count = 0; count < expressionStrings.length; count++) { expressions[count] = ExpressionFactory.create(expressionStrings[count], statsCollectors); } return expressions; } /** * Returns the value of an expression to use in a field or query facet. * @param expressionName the name of the expression * @return String String representation of pivot value */ @SuppressWarnings({ "deprecation", "rawtypes" }) public String getResult(String expressionName) { for (int count = 0; count < expressionNames.length; count++) { if (expressionName.equals(expressionNames[count])) { Comparable value = expressions[count].getValue(); if (value.getClass().equals(Date.class)) { return DateFormatUtil.formatExternal((Date)value); } else { return value.toString(); } } } throw new SolrException(ErrorCode.BAD_REQUEST, "Pivot expression "+expressionName+" not found."); } /** * Used for JMX stats collecting. Counts the number of stats requests * @return number of unique stats collectors */ public long getNumStatsCollectors() { return statsCollectors.length; } /** * Used for JMX stats collecting. Counts the number of queries in all query facets * @return number of queries requested in all query facets. */ public long getNumQueries() { return 0l; } @Override public boolean needsScores() { return true; // TODO: is this true? } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
b6a99320fb6573c04db94bb3ec8ea785905a80f6
3af5db4d55072ba212ce9ae3f4745ee9bf73ee57
/Eclipse_WS/JavaTraining/src/com/aim/training/java/methods/MathematicalOperations.java
dc57328473d8ec8aefb8409547a0ad67f2034744
[]
no_license
Ab007007/Evening_Batch
84161f77c5c955f32114b3a2fd8405a49640648b
ccde97b210bf17188b26e06a6bf5e28afbee1f44
refs/heads/master
2023-03-12T12:15:03.773195
2021-03-06T03:08:25
2021-03-06T03:08:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
846
java
package com.aim.training.java.methods; public class MathematicalOperations { // Global variables // addition // substraction // multiplication // division // power of 2 int a, b, c; void addition() { int c = a + b; System.out.println("Sum of two numbers is :" + c); } void substraction() { c = a - b; System.out.println("Sub of two numbers is :" + c); } void multiplication() { int c = a * b; System.out.println("Mul of two numbers is :" + c); System.out.println("Global value of c is : "+ this.c); } void division() { int c = a / b; System.out.println("Div of two numbers is :" + c); } public static void main(String[] args) { MathematicalOperations mo = new MathematicalOperations(); mo.a = 100; mo.b = 50; mo.addition(); mo.substraction(); mo.multiplication(); mo.division(); } }
[ "aru03.info@gmail.com" ]
aru03.info@gmail.com
8b524b058dd0958b37bfd3f86d0cb5cfc997f0bb
5f4fd0deefcc1cb16e1fef226d901692456802d1
/src/pattern/abstractfactory/Circle.java
d72b2b31f30c0809e6e22f9d0beb0c14ba95e6bd
[]
no_license
antalpeti/Design-Patterns
fe1488de7d98235617e5238c402308cadc19b9ad
e29bc114f9151a652d5d05124e1d87b3e5335f9b
refs/heads/master
2016-09-01T17:11:04.863675
2015-04-07T14:04:03
2015-04-07T14:04:03
30,204,201
0
1
null
null
null
null
UTF-8
Java
false
false
181
java
package pattern.abstractfactory; public class Circle implements Shape { @Override public void draw() { System.out.println("Inside Circle::draw() method."); } }
[ "antalpeti@users.noreply.github.com" ]
antalpeti@users.noreply.github.com
fdbcca27c20a56ce5dd443bd1acc46017a87c8fe
eb6571aaf9bff31a91b0159394dedd73444fd251
/Coding Blocks/Ch1. Maths/BigInteger/JULIKA.java
b418de54816b1eb55d58d8efe36ea039463d7c3b
[]
no_license
shubhamkumar1739/Coding-Practice
ccf00037e9e5c164f3a3629674e759fca08bcfcb
d1e174472e831487de35c697d477afa318cb1ab2
refs/heads/master
2020-04-02T14:16:53.661493
2019-08-17T15:50:35
2019-08-17T15:50:35
154,518,291
0
0
null
null
null
null
UTF-8
Java
false
false
471
java
import java.util.*; import java.io.*; import java.math.BigInteger; class Abc { public static void main(String[] args) { for (int i=0;i<10;i++) { Scanner in=new Scanner(System.in); String cStr=in.next(); String kStr=in.next(); BigInteger C=new BigInteger(cStr); BigInteger K=new BigInteger(kStr); BigInteger X=(C.subtract(K)).divide(BigInteger.valueOf(2)); System.out.println((X.add(K)).toString()); System.out.println(X.toString()); } } }
[ "root@localhost.localdomain" ]
root@localhost.localdomain
2a285b91b962dc2a1371f4802503c3d4c03f0f31
9db6efa2f14baa0f4172272e361e1ed0c9940065
/aliyun-java-sdk-vpc/src/main/java/com/aliyuncs/vpc/transform/v20160428/DeleteForwardEntryResponseUnmarshaller.java
4cea43c8820dc4c8b01c3e71aedd3119443e42c0
[ "Apache-2.0" ]
permissive
ResetFull/aliyun-openapi-java-sdk
31fb2c2f7c2b939df4c9067f7a221c3f2c7cef2e
e299d1778d514cd555c870a3b1de117ae3b34474
refs/heads/master
2021-08-31T04:50:07.771585
2017-12-20T12:28:50
2017-12-20T12:28:50
114,978,860
1
0
null
2017-12-21T07:57:54
2017-12-21T07:57:54
null
UTF-8
Java
false
false
1,326
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.aliyuncs.vpc.transform.v20160428; import com.aliyuncs.vpc.model.v20160428.DeleteForwardEntryResponse; import com.aliyuncs.transform.UnmarshallerContext; public class DeleteForwardEntryResponseUnmarshaller { public static DeleteForwardEntryResponse unmarshall(DeleteForwardEntryResponse deleteForwardEntryResponse, UnmarshallerContext context) { deleteForwardEntryResponse.setRequestId(context.stringValue("DeleteForwardEntryResponse.RequestId")); return deleteForwardEntryResponse; } }
[ "haowei.yao@alibaba-inc.com" ]
haowei.yao@alibaba-inc.com
ef39cfd7fdbe90e057cd617b264a897f8d9f9627
089acdd1dbf815ffccbdebef7e92260013bd1f2c
/src/w3resource/basic/Ex67.java
39bdb7e99cbdb049d5fb8762326f197426ed59b0
[]
no_license
RossHS/w3resource
69b5c94cc405c06593df0e2d1bf4685213fa8aea
b53af8d9e7e7d1e1b3d65c08cb6bb3834211edce
refs/heads/master
2021-09-13T05:03:53.705887
2018-04-25T08:14:49
2018-04-25T08:14:49
106,040,991
0
0
null
null
null
null
UTF-8
Java
false
false
327
java
package w3resource.basic; /** * Created by Ross on 11.10.2017. */ public class Ex67 { public static void main(String[] args) { String str = "Java 9"; String[] strArr = str.split(" "); strArr[0] += " Tutorial "; for (String i : strArr) { System.out.print(i); } } }
[ "rossxpanteley@gmail.com" ]
rossxpanteley@gmail.com
1ac60782de4fe7c093c7acd488460f349cfba709
847ccc0b473bc3477be995f92c9a6d0f16b1fdb7
/app/src/main/java/cn/hi028/android/highcommunity/activity/AddressModifyAct.java
27908c31044113b5fe53fbb2c67488754a2fd91e
[]
no_license
CeruleanLee/Hi_V1.0
8f7359c3064ab6d852e9a7b53dc0cb3f7adbc236
61e09356596d9f03c80c9300093a63fd3028617f
refs/heads/master
2021-01-13T15:00:47.222633
2016-12-22T04:37:16
2016-12-22T04:37:16
76,313,068
0
0
null
null
null
null
UTF-8
Java
false
false
3,313
java
/*************************************************************************** * Copyright (c) by raythinks.com, Inc. All Rights Reserved **************************************************************************/ package cn.hi028.android.highcommunity.activity; import android.content.Intent; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.view.KeyEvent; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.Click; import org.androidannotations.annotations.EActivity; import org.androidannotations.annotations.ViewById; import cn.hi028.android.highcommunity.R; import cn.hi028.android.highcommunity.activity.fragment.*; /** * @功能:地址操作 新增 修改地址<br> * @作者: 李凌云<br> * @版本:1.0<br> * @时间:2016/1/21<br> */ @EActivity(resName = "act_activity") public class AddressModifyAct extends BaseFragmentActivity { public static final String ACTIVITYTAG = "AddressModifyAct"; public static final String INTENTTAG = "AddressModifyActIntent"; public static final String INTENTTAGDELETE_TAG = "addModifyDelete"; @ViewById(R.id.tv_secondtitle_name) TextView mTitle; @ViewById(R.id.img_second_delete) ImageView mDelete; @ViewById(R.id.title_secondTitle_Hight) View mHight; AddressModifyFrag mCreate; @AfterViews void initView() { if (!super.isVersionBiger()) { mHight.setVisibility(View.GONE); } int flag = getIntent().getIntExtra(ACTIVITYTAG, -1); FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); if (flag == 0) { mTitle.setText("新增收货地址"); mDelete.setVisibility(View.GONE); } else { mTitle.setText("修改收货地址"); mDelete.setVisibility(View.VISIBLE); } int flagDelete = getIntent().getIntExtra(INTENTTAGDELETE_TAG, 0); if (flagDelete != 0) { mDelete.setVisibility(View.INVISIBLE); } else { mDelete.setVisibility(View.VISIBLE); } mCreate = (AddressModifyFrag) new AddressModifyFrag_(); ft.replace(R.id.ll_activity_mainLayout, mCreate, AddressModifyFrag.FRAGMENTTAG); ft.commit(); } @Click(R.id.img_back) void back() { this.finish(); } @Click(R.id.img_second_delete) void delete() { if (mCreate != null) { mCreate.onRight(); } else { } } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { if (mCreate != null && mCreate.onKeyDown(keyCode, event)) { return true; } } return super.onKeyDown(keyCode, event); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == 0x22) { if (mCreate != null) { mCreate.onActivityResult(requestCode, resultCode, data); } } super.onActivityResult(requestCode, resultCode, data); } }
[ "cerulean_lee@163.com" ]
cerulean_lee@163.com
16bfea42141f3a1c086c09f8e1877741fc6b66ca
5dedeb9defbde87aeb8b0f0461590c9fc466287d
/moql-engine/src/main/java/org/datayoo/moql/operand/expression/bit/BitwiseNotExpression.java
0f2349a444a247a04b86291469e725507e660551
[ "Apache-2.0" ]
permissive
feiniu5566/moql
634d92b577ed9adedc5f2311632fbb985676ac9a
b0653cc4648ad5911989a68d72dd0d8bb125f295
refs/heads/master
2020-04-30T07:04:12.171188
2019-02-27T14:12:34
2019-02-27T14:12:34
176,673,419
1
0
Apache-2.0
2019-03-20T06:56:43
2019-03-20T06:56:42
null
UTF-8
Java
false
false
1,896
java
package org.datayoo.moql.operand.expression.bit; import org.datayoo.moql.EntityMap; import org.datayoo.moql.NumberConvertable; import org.datayoo.moql.Operand; import org.datayoo.moql.metadata.OperatorType; import org.datayoo.moql.operand.expression.AbstractOperationExpression; import org.datayoo.moql.util.StringFormater; public class BitwiseNotExpression extends AbstractOperationExpression { protected Object constantReturnValue; public BitwiseNotExpression(Operand operand) { super(OperatorType.UNARY, BitwiseOperator.BITWISENOT, null, operand); // TODO Auto-generated constructor stub initializeBitwise(); } protected void initializeBitwise() { Long rNumber = null; if (rOperand.isConstantReturn()) { rNumber = getNumber(rOperand, null); } if (rNumber != null) { constantReturn = true; constantReturnValue = ~rNumber; } } protected Long getNumber(Operand operand, EntityMap entityMap) { Object obj = operand.operate(entityMap); if (obj == null) return null; if (obj instanceof Long || obj instanceof Integer || obj instanceof Short || obj instanceof Byte) return ((Number) obj).longValue(); if (obj instanceof NumberConvertable) { Number num = ((NumberConvertable) obj).toNumber(); if (num != null) { if (num instanceof Long || num instanceof Integer || num instanceof Short || num instanceof Byte) return num.longValue(); } } throw new IllegalArgumentException(StringFormater .format("Operand '{}' is not a number!", operand.toString())); } @Override public Object operate(EntityMap entityMap) { // TODO Auto-generated method stub if (constantReturn) return constantReturnValue; Long rNumber = getNumber(rOperand, entityMap); if (rNumber == null) return null; return ~rNumber; } }
[ "ttd_ttt@sina.com.cn" ]
ttd_ttt@sina.com.cn
885a3a61b510779a3cb71ac5fb956fc83ac60d84
4bfedfe1ef1cd14f03cfaa2b76a54cc307cb75a3
/cs179e/cs179e/Compiler/src/lesani/image/core/parallel/MainCaller.java
afdb1388709db11ecf8f79d477fda25c24b27c2f
[]
no_license
XiaoLi0614/Secure_Partition
ad2c2b57c2eeb876bbc76214af2b09fbcd41acd9
5e5c519b9a9f2e924d647507d0049a8b2a38b268
refs/heads/master
2023-08-22T01:06:59.272088
2021-09-21T19:06:27
2021-09-21T19:06:27
303,326,552
0
0
null
null
null
null
UTF-8
Java
false
false
1,305
java
package lesani.image.core.parallel; import lesani.image.util.exception.NotAnImageFileException; /** * Created by IntelliJ IDEA. * User: mohsen * Date: Jun 3, 2010 * Time: 2:55:52 PM */ public class MainCaller { public static void main(String[] argz) throws NotAnImageFileException { String[] args = new String[2]; args[0] = "/media/MOHSENHD/1.Works/3.Research/0.Research/1.CDSC/1.ImageProcessing/2.Projects/Project/Images/Lena.jpg"; // "/media/MOHSENHD/1.Works/3.Research/0.Research/1.CDSC/1.ImageProcessing/2.Projects/Project/Images/lena124.jpg"; // "/media/MOHSENHD/1.Works/3.Research/0.Research/1.CDSC/1.ImageProcessing/2.Projects/Project/Images/lena256.jpg"; // "/media/MOHSENHD/1.Works/3.Research/0.Research/1.CDSC/1.ImageProcessing/2.Projects/Project/Images/lena512.jpg"; // "/media/MOHSENHD/1.Works/3.Research/0.Research/1.CDSC/1.ImageProcessing/2.Projects/Project/Images/Landscape1.jpg"; // "/media/MOHSENHD/1.Works/3.Research/0.Research/1.CDSC/1.ImageProcessing/2.Projects/Project/Images/Landscape2.jpg"; args[1] = "2"; ParallelEdgeDetectorLauncher.main(args); } }
[ "xli289@ucr.edu" ]
xli289@ucr.edu
090f732bd25aa65dc566551efb6d0dae3b032a54
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
/project_1_3/src/b/c/b/i/Calc_1_3_12183.java
a6dd5c34daedc899865bf9eda24c57a468616bdd
[]
no_license
chalstrick/bigRepo1
ac7fd5785d475b3c38f1328e370ba9a85a751cff
dad1852eef66fcec200df10083959c674fdcc55d
refs/heads/master
2016-08-11T17:59:16.079541
2015-12-18T14:26:49
2015-12-18T14:26:49
48,244,030
0
0
null
null
null
null
UTF-8
Java
false
false
134
java
package b.c.b.i; public class Calc_1_3_12183 { /** @return the sum of a and b */ public int add(int a, int b) { return a+b; } }
[ "christian.halstrick@sap.com" ]
christian.halstrick@sap.com
9645d2bb9294a4ff04d69b192756bbe57285d816
aeb92807dc9a77fd22a270c9622d8b725750df0e
/src/main/java/uz/pdp/clickup/repository/CategoryRepo.java
79d38f0ddbd1c310c3748910249b5e01ae4cda12
[]
no_license
Muhammad0224/click-up
e0d6777f4007f015f4c6c8a2c4c3b4a1c636e581
ae26480776ba492dcfb7589f6a2a7f92beca6206
refs/heads/master
2023-07-25T14:55:52.289204
2021-08-31T07:44:26
2021-08-31T07:44:26
398,373,142
2
0
null
null
null
null
UTF-8
Java
false
false
530
java
package uz.pdp.clickup.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import uz.pdp.clickup.domain.Category; import java.util.List; import java.util.UUID; @Repository public interface CategoryRepo extends JpaRepository<Category, UUID> { boolean existsByNameAndProjectId(String name, UUID project_id); boolean existsByNameAndProjectIdAndIdNot(String name, UUID project_id, UUID id); List<Category> findAllByProjectId(UUID project_id); }
[ "murtazayevmuhammad@gmail.com" ]
murtazayevmuhammad@gmail.com
2f3a3206fe791ec221fa260aa6000e63a268377c
4f707b4609bbaa053ff6fb7dc9e26e57315b1e71
/src/sysapp/cn/com/infostrategy/ui/sysapp/login/click2/SessionSQLListenerWFPanel.java
99ec431341165256e7c6379597af1dd2a2c8b045
[]
no_license
wnsalary/weblight
16f14e446b3aa44d66a9efef50d236e1c132b289
8b9a1700728c003862f55506ab7b600ef7006be2
refs/heads/master
2022-12-17T11:42:43.373712
2020-09-23T07:28:19
2020-09-23T07:28:19
263,282,545
1
0
null
null
null
null
GB18030
Java
false
false
8,267
java
package cn.com.infostrategy.ui.sysapp.login.click2; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.net.URL; import javax.swing.JCheckBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.SwingConstants; import org.jdesktop.jdic.desktop.Desktop; import cn.com.infostrategy.to.common.WLTLogger; import cn.com.infostrategy.ui.common.AbstractWorkPanel; import cn.com.infostrategy.ui.common.ClientEnvironment; import cn.com.infostrategy.ui.common.FrameWorkCommServiceIfc; import cn.com.infostrategy.ui.common.MessageBox; import cn.com.infostrategy.ui.common.UIUtil; import cn.com.infostrategy.ui.common.WLTButton; /** * SQL监听面板,即有时查看服务器端日志实在不方便,或因为大量用户并发,导致日志太多,不便查看. * 这时就需要一个只监听本次会话的SQL * @author xch * */ public class SessionSQLListenerWFPanel extends AbstractWorkPanel implements ActionListener { private static final long serialVersionUID = 1L; private JTextField textField = null; // private WLTButton btn_addListener = null; // private WLTButton btn_removeListener = null; // private WLTButton btn_queryListenerSQL = null; // private WLTButton btn_queryAndClearListenerSQL = null; // private WLTButton btn_clear = null; // private JCheckBox check_isautorefresh = null; // private JTextArea textArea = null; // private javax.swing.Timer timer = null; private int refreshPeriod = 2; //自动刷新的频率 public static void openMe(java.awt.Container _parent, String _tile, String _type) { JFrame frame = new JFrame("跟踪SQL监控"); frame.setSize(1000, 500); // frame.setIconImage(UIUtil.getImage("office_164.gif").getImage()); final SessionSQLListenerWFPanel panel = new SessionSQLListenerWFPanel(); // panel.initialize(); // frame.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent e) { // panel.beforeDispose(); } public void windowClosing(WindowEvent e) { panel.beforeDispose(); } }); // frame.getContentPane().add(panel); // frame.setVisible(true); // frame.toFront(); // } @Override public void initialize() { JLabel label = new JLabel("SessionId", SwingConstants.RIGHT); // label.setPreferredSize(new Dimension(60, 20)); // textField = new JTextField(); // textField.setPreferredSize(new Dimension(255, 20)); // textField.setText(ClientEnvironment.getCurrSessionVO().getHttpsessionid()); // btn_addListener = new WLTButton("注册监听"); // btn_removeListener = new WLTButton("移除监听"); // btn_queryListenerSQL = new WLTButton("查询SQL"); // btn_queryAndClearListenerSQL = new WLTButton("查询并清空SQL"); // btn_clear = new WLTButton("清空页面"); // check_isautorefresh = new JCheckBox("是否自动刷新并拷贝", false); // btn_queryListenerSQL.setToolTipText("按住Shift键可以在浏览器中查看"); /// btn_queryAndClearListenerSQL.setToolTipText("按住Shift键可以在浏览器中查看"); /// btn_addListener.addActionListener(this); btn_removeListener.addActionListener(this); btn_queryListenerSQL.addActionListener(this); btn_queryAndClearListenerSQL.addActionListener(this); btn_clear.addActionListener(this); check_isautorefresh.addActionListener(this); // JPanel panel_north = new JPanel(new FlowLayout(FlowLayout.LEFT)); // panel_north.add(label); // panel_north.add(textField); // panel_north.add(btn_addListener); // panel_north.add(btn_removeListener); // panel_north.add(btn_queryListenerSQL); // panel_north.add(btn_queryAndClearListenerSQL); // panel_north.add(btn_clear); // panel_north.add(check_isautorefresh); // textArea = new JTextArea(); // textArea.setEditable(false); // textArea.setLineWrap(true); //自动换行 JScrollPane scrollPanel = new JScrollPane(textArea); // this.setLayout(new BorderLayout()); // this.add(panel_north, BorderLayout.NORTH); // this.add(scrollPanel, BorderLayout.CENTER); // timer = new javax.swing.Timer(refreshPeriod * 1000, this); // } public void actionPerformed(ActionEvent e) { if (e.getSource() == btn_addListener) { onAddSQLListener(); // } else if (e.getSource() == btn_removeListener) { onRemoveSQLListener(); // } else if (e.getSource() == btn_queryListenerSQL) { if (e.getModifiers() == 17) { try { String str_url = System.getProperty("CALLURL") + "/state?type=sessionsql&sid=" + System.getProperty("SESSIONID") + "&isclear=N"; Desktop.browse(new URL(str_url)); // } catch (Exception ex) { ex.printStackTrace(); // } } else { onQuerySQLListenerText(false); // } } else if (e.getSource() == btn_queryAndClearListenerSQL) { if (e.getModifiers() == 17) { try { String str_url = System.getProperty("CALLURL") + "/state?type=sessionsql&sid=" + System.getProperty("SESSIONID") + "&isclear=Y"; Desktop.browse(new URL(str_url)); // } catch (Exception ex) { ex.printStackTrace(); // } } else { onQuerySQLListenerText(true); } } else if (e.getSource() == btn_clear) { onClear(); // } else if (e.getSource() == check_isautorefresh) { if (check_isautorefresh.isSelected()) { timer.start(); // } else { timer.stop(); } } else if (e.getSource() == timer) { onRefresh(); // } } private void onAddSQLListener() { try { String str_sessionid = textField.getText(); // if (str_sessionid == null || str_sessionid.trim().equals("")) { MessageBox.show(this, "请输入SessionId"); // return; } FrameWorkCommServiceIfc service = (FrameWorkCommServiceIfc) UIUtil.lookUpRemoteService(FrameWorkCommServiceIfc.class); String msg = service.addSessionSQLListener(str_sessionid); // MessageBox.show(this, msg); // } catch (Exception ex) { MessageBox.showException(this, ex); // } } private void onRemoveSQLListener() { try { String str_sessionid = textField.getText(); // if (str_sessionid == null || str_sessionid.trim().equals("")) { MessageBox.show(this, "请输入SessionId"); // return; } FrameWorkCommServiceIfc service = (FrameWorkCommServiceIfc) UIUtil.lookUpRemoteService(FrameWorkCommServiceIfc.class); String msg = service.removeSessionSQLListener(str_sessionid); // MessageBox.show(this, msg); // } catch (Exception ex) { MessageBox.showException(this, ex); // } } /** * 查询SQL */ private void onQuerySQLListenerText(boolean _isclean) { try { String str_sessionid = textField.getText(); // if (str_sessionid == null || str_sessionid.trim().equals("")) { MessageBox.show(this, "请输入SessionId"); // return; } FrameWorkCommServiceIfc service = (FrameWorkCommServiceIfc) UIUtil.lookUpRemoteService(FrameWorkCommServiceIfc.class); String str_text = service.getSessionSQLListenerText(str_sessionid, _isclean); // textArea.setText(str_text); // } catch (Exception ex) { MessageBox.showException(this, ex); // } } /** * 自动刷新.. */ protected void onRefresh() { WLTLogger.getLogger(this).debug("刷新SQL跟踪..."); // try { String str_sessionid = textField.getText(); // if (str_sessionid == null || str_sessionid.trim().equals("")) { return; } FrameWorkCommServiceIfc service = (FrameWorkCommServiceIfc) UIUtil.lookUpRemoteService(FrameWorkCommServiceIfc.class); String str_text = service.getSessionSQLListenerText(str_sessionid, false); // textArea.setText(str_text); // //StringSelection ss = new StringSelection(str_text); //Toolkit.getDefaultToolkit().getSystemClipboard().setContents(ss, null); //因为有时是模式窗口,没法看页面,所以干脆拷贝到系统的剪贴板中,这样就好拷贝了! } catch (Exception ex) { MessageBox.showException(this, ex); // } } private void onClear() { this.textArea.setText(""); // } /** * 关闭前做的事 */ public void beforeDispose() { timer.stop(); // timer = null; // } }
[ "17744571124@163.com" ]
17744571124@163.com
e8b70b07cfdc6f315c1bbb1ec51bb0198e830237
0d904eb41214b981f55482308814832d6c3ff4e5
/registry-ws-client/src/main/java/org/gbif/registry/ws/client/DatasetOccurrenceDownloadUsageWsClient.java
f94ba9ee0a5d5bfbd76df0856ca6beac2efe1cb4
[ "Apache-2.0" ]
permissive
digideskio/GBIF-Registry
39aace60a48232383b3296060747076871a4458d
3fc4acf65c76080691e6edbc238b374ad0a459bd
refs/heads/master
2021-01-23T20:30:41.203725
2016-06-17T12:07:41
2016-06-17T12:07:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,398
java
package org.gbif.registry.ws.client; import org.gbif.api.model.common.paging.Pageable; import org.gbif.api.model.common.paging.PagingResponse; import org.gbif.api.model.occurrence.Download; import org.gbif.api.model.registry.DatasetOccurrenceDownloadUsage; import org.gbif.api.service.registry.DatasetOccurrenceDownloadUsageService; import org.gbif.registry.ws.client.guice.RegistryWs; import org.gbif.ws.client.BaseWsGetClient; import java.util.UUID; import javax.annotation.Nullable; import com.google.inject.Inject; import com.sun.jersey.api.client.WebResource; import com.sun.jersey.api.client.filter.ClientFilter; /** * OccurrenceDownloadService web service client. */ public class DatasetOccurrenceDownloadUsageWsClient extends BaseWsGetClient<Download, String> implements DatasetOccurrenceDownloadUsageService { @Inject public DatasetOccurrenceDownloadUsageWsClient(@RegistryWs WebResource resource, @Nullable ClientFilter authFilter) { super(Download.class, resource.path("occurrence/download"), authFilter); } @Override public void create(DatasetOccurrenceDownloadUsage downloadDataset) { post(downloadDataset, "dataset"); } @Override public PagingResponse<DatasetOccurrenceDownloadUsage> listByDataset(UUID datasetKey, Pageable page) { return get(GenericTypes.PAGING_DATASET_OCCURRENCE_DOWNLOAD, page, "dataset", String.valueOf(datasetKey)); } }
[ "mdoering@gbif.org" ]
mdoering@gbif.org
c4c96aab50f99691edf531b8aa9b06c23ee21b7b
13dfd110df6cccc7ed5ce992ba5e7eadc56a42af
/sm-core/src/main/java/com/salesmanager/core/business/services/payments/gateway/razorpay/CustomerRazorPayOrderServiceImpl.java
5d2bedcccedc4b959646b8e0a1a8aa812c5b9c7e
[]
no_license
ajaytiwari000/Habbit
24ca9455f0200e648640079945a04b01918dac7b
1ccff760c0a17515748cdc7c9d133fae71b8d937
refs/heads/master
2023-03-21T11:32:26.708784
2021-03-12T07:38:02
2021-03-12T07:38:02
265,888,454
1
0
null
null
null
null
UTF-8
Java
false
false
1,936
java
package com.salesmanager.core.business.services.payments.gateway.razorpay; import com.salesmanager.core.business.exception.ServiceException; import com.salesmanager.core.business.repositories.payments.gateway.razorpay.CustomerRazorPayOrderRepository; import com.salesmanager.core.business.services.common.generic.SalesManagerEntityServiceImpl; import com.salesmanager.core.business.services.order.CustomerOrderServiceImpl; import com.salesmanager.core.model.order.CustomerRazorPayOrder; import javax.inject.Inject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; @Service("customerRazorPayOrderService") public class CustomerRazorPayOrderServiceImpl extends SalesManagerEntityServiceImpl<Long, CustomerRazorPayOrder> implements CustomerRazorPayOrderService { private static final Logger LOGGER = LoggerFactory.getLogger(CustomerOrderServiceImpl.class); CustomerRazorPayOrderRepository customerRazorPayOrderRepository; @Inject public CustomerRazorPayOrderServiceImpl( CustomerRazorPayOrderRepository customerRazorPayOrderRepository) { super(customerRazorPayOrderRepository); this.customerRazorPayOrderRepository = customerRazorPayOrderRepository; } @Override public CustomerRazorPayOrder getById(Long id) { return customerRazorPayOrderRepository.findById(id).orElse(null); } @Override public CustomerRazorPayOrder getByRazorPayOrderCode(String orderCode) throws ServiceException { try { return customerRazorPayOrderRepository.findByRazorPayOrderCode(orderCode).orElse(null); } catch (Exception e) { throw new ServiceException(e); } } @Override public CustomerRazorPayOrder getByReceipt(String receipt) throws ServiceException { try { return customerRazorPayOrderRepository.findByReceipt(receipt).orElse(null); } catch (Exception e) { throw new ServiceException(e); } } }
[ "ajaytiwari000@gmail.com" ]
ajaytiwari000@gmail.com
d3c122102343c37095895fbd83a5c5fbd2b058f3
08897c6e19afd500cf2d6340d8338f246f1f3355
/src/main/java/p455w0rdslib/client/model/ModelBoxFace.java
1ee16d9c81bc7d93706a4ce08cb679de874e2ed4
[ "MIT" ]
permissive
p455w0rd/p455w0rds-Library
be8cc730e56915b17de7e2a08b04e9ab0e893385
bb160b00f5aa71eea6263ebdb0ae4e7c3e787f9a
refs/heads/master
2021-01-11T17:06:55.684963
2018-09-13T02:21:29
2018-09-13T02:21:29
79,722,971
7
12
MIT
2019-07-17T21:02:23
2017-01-22T14:35:43
Java
UTF-8
Java
false
false
764
java
package p455w0rdslib.client.model; import net.minecraft.client.model.ModelBox; import net.minecraft.client.model.ModelRenderer; import net.minecraft.client.renderer.VertexBuffer; import p455w0rdslib.util.MCPrivateUtils; /** * Created by brandon3055 on 31/10/2016. */ public class ModelBoxFace extends ModelBox { public final int face; public ModelBoxFace(ModelRenderer renderer, int textureOffsetX, int textureOffsetY, float offX, float offY, float offZ, int width, int height, int depth, int face) { super(renderer, textureOffsetX, textureOffsetY, offX, offY, offZ, width, height, depth, 0); this.face = face; } @Override public void render(VertexBuffer renderer, float scale) { MCPrivateUtils.getQuadList(this)[face].draw(renderer, scale); } }
[ "p455w0rd@gmail.com" ]
p455w0rd@gmail.com
975df6f8c26ab9102a62bf0aeedbf90813bce666
b4e0e50e467ee914b514a4f612fde6acc9a82ba7
/hbase-server/src/test/java/org/apache/hadoop/hbase/TestNodeHealthCheckChore.java
27781223b21f00d971d552586c59796d0aecfbc2
[ "Apache-2.0", "CPL-1.0", "MPL-1.0" ]
permissive
tenggyut/HIndex
5054b13118c3540d280d654cfa45ed6e3edcd4c6
e0706e1fe48352e65f9f22d1f80038f4362516bb
refs/heads/master
2021-01-10T02:58:08.439962
2016-03-10T01:15:18
2016-03-10T01:15:18
44,219,351
3
4
Apache-2.0
2023-03-20T11:47:22
2015-10-14T02:34:53
Java
UTF-8
Java
false
false
5,973
java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hbase; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintWriter; import java.util.UUID; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.HealthChecker.HealthCheckerExitStatus; import org.apache.hadoop.util.Shell; import org.junit.After; import org.junit.Test; import org.junit.experimental.categories.Category; @Category(SmallTests.class) public class TestNodeHealthCheckChore { private static final Log LOG = LogFactory.getLog(TestNodeHealthCheckChore.class); private static final HBaseTestingUtility UTIL = new HBaseTestingUtility(); private static final int SCRIPT_TIMEOUT = 5000; private File healthScriptFile; private String eol = System.getProperty("line.separator"); @After public void cleanUp() throws IOException { // delete and recreate the test directory, ensuring a clean test dir between tests Path testDir = UTIL.getDataTestDir(); FileSystem fs = UTIL.getTestFileSystem(); fs.delete(testDir, true); if (!fs.mkdirs(testDir)) throw new IOException("Failed mkdir " + testDir); } @Test(timeout=60000) public void testHealthCheckerSuccess() throws Exception { String normalScript = "echo \"I am all fine\""; healthCheckerTest(normalScript, HealthCheckerExitStatus.SUCCESS); } @Test(timeout=60000) public void testHealthCheckerFail() throws Exception { String errorScript = "echo ERROR" + eol + "echo \"Node not healthy\""; healthCheckerTest(errorScript, HealthCheckerExitStatus.FAILED); } @Test(timeout=60000) public void testHealthCheckerTimeout() throws Exception { String timeOutScript = "sleep 10" + eol + "echo \"I am fine\""; healthCheckerTest(timeOutScript, HealthCheckerExitStatus.TIMED_OUT); } public void healthCheckerTest(String script, HealthCheckerExitStatus expectedStatus) throws Exception { Configuration config = getConfForNodeHealthScript(); config.addResource(healthScriptFile.getName()); String location = healthScriptFile.getAbsolutePath(); long timeout = config.getLong(HConstants.HEALTH_SCRIPT_TIMEOUT, SCRIPT_TIMEOUT); HealthChecker checker = new HealthChecker(); checker.init(location, timeout); createScript(script, true); HealthReport report = checker.checkHealth(); assertEquals(expectedStatus, report.getStatus()); LOG.info("Health Status:" + report.getHealthReport()); this.healthScriptFile.delete(); } @Test(timeout=60000) public void testRSHealthChore() throws Exception{ Stoppable stop = new StoppableImplementation(); Configuration conf = getConfForNodeHealthScript(); String errorScript = "echo ERROR" + eol + " echo \"Server not healthy\""; createScript(errorScript, true); HealthCheckChore rsChore = new HealthCheckChore(100, stop, conf); try { //Default threshold is three. rsChore.chore(); rsChore.chore(); assertFalse("Stoppable must not be stopped.", stop.isStopped()); rsChore.chore(); assertTrue("Stoppable must have been stopped.", stop.isStopped()); } finally { stop.stop("Finished w/ test"); } } private void createScript(String scriptStr, boolean setExecutable) throws Exception { if (!this.healthScriptFile.exists()) { if (!healthScriptFile.createNewFile()) { throw new IOException("Failed create of " + this.healthScriptFile); } } PrintWriter pw = new PrintWriter(new FileOutputStream(healthScriptFile)); try { pw.println(scriptStr); pw.flush(); } finally { pw.close(); } healthScriptFile.setExecutable(setExecutable); LOG.info("Created " + this.healthScriptFile + ", executable=" + setExecutable); } private Configuration getConfForNodeHealthScript() throws IOException { Configuration conf = UTIL.getConfiguration(); File tempDir = new File(UTIL.getDataTestDir().toString()); if (!tempDir.exists()) { if (!tempDir.mkdirs()) { throw new IOException("Failed mkdirs " + tempDir); } } String scriptName = "HealthScript" + UUID.randomUUID().toString() + (Shell.WINDOWS ? ".cmd" : ".sh"); healthScriptFile = new File(tempDir.getAbsolutePath(), scriptName); conf.set(HConstants.HEALTH_SCRIPT_LOC, healthScriptFile.getAbsolutePath()); conf.setLong(HConstants.HEALTH_FAILURE_THRESHOLD, 3); conf.setLong(HConstants.HEALTH_SCRIPT_TIMEOUT, SCRIPT_TIMEOUT); return conf; } /** * Simple helper class that just keeps track of whether or not its stopped. */ private static class StoppableImplementation implements Stoppable { private volatile boolean stop = false; @Override public void stop(String why) { this.stop = true; } @Override public boolean isStopped() { return this.stop; } } }
[ "tengyutong0213@gmail.com" ]
tengyutong0213@gmail.com
83cf04c67bab29eee18373194e2e02d273a8230a
0333f8a40ce16eb570b10edf4de4633e8a30f5cb
/app/src/main/java/com/example/dalellegamlek_admin/Activity/Add_annonce.java
c3cc166cb8fbbaf38d6c7f193fcd94800145f373
[]
no_license
mohamedfathyd/DalelleGamlek_admin
20b2389bb606ebfb2bd9547c3c73fa5bdfaea5aa
076ad1a9198f4a8c810288d2c599c4dcf07c7215
refs/heads/master
2020-05-30T12:35:08.932514
2019-06-14T22:52:36
2019-06-14T22:52:36
189,739,083
0
0
null
null
null
null
UTF-8
Java
false
false
5,560
java
package com.example.dalellegamlek_admin.Activity; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.Intent; import android.graphics.Bitmap; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.support.design.widget.TextInputEditText; import android.support.design.widget.TextInputLayout; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.AppCompatButton; import android.support.v7.widget.Toolbar; import android.util.Base64; import android.view.View; import android.widget.ImageView; import android.widget.Spinner; import android.widget.Toast; import com.example.dalellegamlek_admin.R; import com.example.dalellegamlek_admin.model.Apiclient_home; import com.example.dalellegamlek_admin.model.apiinterface_home; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.ArrayList; import okhttp3.ResponseBody; import retrofit2.Call; import retrofit2.Callback; import retrofit2.Response; public class Add_annonce extends AppCompatActivity { Intent intent; ArrayList<String> arrayList=new ArrayList<>(); ArrayList<Integer> arrayList_id=new ArrayList<>(); apiinterface_home apiinterface; AppCompatButton regesiter; private static final int IMAGE = 100; ImageView imageView; Toolbar toolbar; int category_id; Bitmap bitmap; ProgressDialog progressDialog; Spinner spinner; TextInputLayout textInputLayoutdetails,textInputLayoutname,textInputLayoutaddress,textInputLayoutphone; TextInputEditText textInputEditTextdetails,textInputEditTextname,textInputEditTextaddress,textInputEditTextphone; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_add_annonce); toolbar = (Toolbar) findViewById(R.id.app_bar); initializer(); this.setTitle(""); toolbar.setNavigationIcon(R.drawable.ic_keyboard_arrow_left_black_24dp); setSupportActionBar(toolbar); toolbar.setNavigationOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { finish(); } } ); imageView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { selectImage(); } }); textInputEditTextname.setVisibility(View.GONE); regesiter.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { fetchInfo(); regesiter.setClickable(false); } }); } public void initializer(){ imageView=(ImageView)findViewById(R.id.image); textInputLayoutname=(TextInputLayout)findViewById(R.id.textInputLayoutName); textInputEditTextname=(TextInputEditText)findViewById(R.id.textInputEditTextName); regesiter=(AppCompatButton)findViewById(R.id.appCompatButtonRegister); } private void selectImage() { Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(intent, IMAGE); } private String convertToString() { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.JPEG,70,byteArrayOutputStream); byte[] imgByte = byteArrayOutputStream.toByteArray(); return Base64.encodeToString(imgByte, Base64.DEFAULT); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if(requestCode== IMAGE && resultCode==RESULT_OK && data!=null) { Uri path = data.getData(); try { bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(),path); imageView.setImageBitmap(bitmap); } catch (IOException e) { e.printStackTrace(); } } } public void fetchInfo(){ progressDialog = ProgressDialog.show(Add_annonce.this,"جارى تسجيل الاعلان الجديد","Please wait...",false,false); progressDialog.show(); String image = convertToString(); apiinterface= Apiclient_home.getapiClient().create(apiinterface_home.class); Call<ResponseBody> call = apiinterface.getcontacts_add_annonce(image); call.enqueue(new Callback<ResponseBody>() { @Override public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) { progressDialog.dismiss(); AlertDialog.Builder dlgAlert = new AlertDialog.Builder(Add_annonce.this); dlgAlert.setMessage("تم تسجيل الاعلان الجديد بنجاح "); dlgAlert.setTitle("دللي جمالك"); dlgAlert.setPositiveButton("OK", null); dlgAlert.setCancelable(true); dlgAlert.create().show(); regesiter.setClickable(true); } @Override public void onFailure(Call<ResponseBody> call, Throwable t) { Toast.makeText(Add_annonce.this,t.toString(),Toast.LENGTH_LONG).show(); } }); } }
[ "m.fathy7793@gmail.com" ]
m.fathy7793@gmail.com
1f7dbd4484863f2868ddabf92f3e27efd1d343bb
0c5bf79bfe2d5170ca88fd96ec1fa45ee3bbf139
/modules/activity-analysis/reports/src/main/java/org/overlord/rtgov/reports/ReportManager.java
17cc4979368b1fbfcc03965865127d7caaf65605
[ "Apache-2.0" ]
permissive
brmeyer/rtgov
edb57265613ec4c80247df17054c9bda721db9bb
7628813e35abfa5a1d3537ae0c27fa195b3f94a4
refs/heads/master
2021-01-17T20:12:08.282569
2014-04-11T08:51:45
2014-04-11T08:51:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,944
java
/* * 2012-3 Red Hat Inc. and/or its affiliates and other contributors. * * 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.overlord.rtgov.reports; import org.overlord.rtgov.reports.model.Report; /** * This interface represents the component for managing reports. * */ public interface ReportManager { /** * This method registers the supplied report definition. * * @param rd The report definition * @throws Exception Failed to register report */ public void register(ReportDefinition rd) throws Exception; /** * This method unregisters the supplied report definition. * * @param rd The report definition * @throws Exception Failed to unregister report */ public void unregister(ReportDefinition rd) throws Exception; /** * This method returns a list of registered report definitions. * * @return The report definitions */ public java.util.List<ReportDefinition> getReportDefinitions(); /** * This method returns the report associated with the supplied name and parameters. * * @param reportName The report name * @param params The report parameters * @return The report, or null if no generator is available * @throws Exception Failed to generate the report */ public Report generate(String reportName, java.util.Map<String,Object> params) throws Exception; }
[ "gary@brownuk.com" ]
gary@brownuk.com
77fe8480a55fde4d78d0adf1c4a212fba8e97e95
6f9f976f459acad0a2101107fa4b2d56101acbf0
/elastic-job-lite-core/src/test/java/io/elasticjob/lite/internal/server/ServerNodeTest.java
c54600e12c0044ada9ef24731d617228f142ef00
[ "Apache-2.0" ]
permissive
dangdang-arch/elastic-job-lite
bcc504d57d353565dd7696e19a76a8a6ba21749b
dd97ea159cb4c0e6df1f41836efb68a0f32cbeb4
refs/heads/dev
2020-09-28T18:47:13.544556
2019-10-31T07:19:13
2019-10-31T07:19:13
226,838,505
2
0
Apache-2.0
2019-12-30T12:25:01
2019-12-09T09:53:20
null
UTF-8
Java
false
false
1,985
java
/* * Copyright 1999-2015 dangdang.com. * <p> * 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. * </p> */ package io.elasticjob.lite.internal.server; import io.elasticjob.lite.api.strategy.JobInstance; import io.elasticjob.lite.internal.schedule.JobRegistry; import org.junit.BeforeClass; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; public final class ServerNodeTest { private ServerNode serverNode = new ServerNode("test_job"); @BeforeClass public static void setUp() { JobRegistry.getInstance().addJobInstance("test_job", new JobInstance("127.0.0.1@-@0")); } @Test public void assertIsServerPath() { assertTrue(serverNode.isServerPath("/test_job/servers/127.0.0.1")); } @Test public void assertIsNotServerPath() { assertFalse(serverNode.isServerPath("/test_job/servers/255.255.255.256")); } @Test public void assertIsLocalServerPath() { assertTrue(serverNode.isLocalServerPath("/test_job/servers/127.0.0.1")); } @Test public void assertIsNotLocalServerPath() { assertFalse(serverNode.isLocalServerPath("/test_job/servers/127.0.0.2")); } @Test public void assertGetServerNode() { assertThat(serverNode.getServerNode("127.0.0.1"), is("servers/127.0.0.1")); } }
[ "terrymanu@163.com" ]
terrymanu@163.com
67b98ce56d077d4c1b2c29880dca37d632fe0bca
eac576976210a42aaeb484d45e2316033d1dae9e
/jOOQ/src/main/java/org/jooq/SelectConnectByConditionStep.java
eb07c59655f1087937ffa6bae3df426815d5fd9a
[ "Apache-2.0" ]
permissive
prashanth02/jOOQ
75fa46912cdeb72ef472b9020635c2a792dcf1af
2a4955abf1752a4e6e2b8127f429d13b8fe68be6
refs/heads/master
2022-10-03T15:32:45.960679
2016-05-30T10:14:52
2016-05-30T10:14:52
60,037,493
0
0
NOASSERTION
2022-09-22T19:34:19
2016-05-30T20:34:12
Java
UTF-8
Java
false
false
6,476
java
/** * Copyright (c) 2009-2016, Data Geekery GmbH (http://www.datageekery.com) * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Other licenses: * ----------------------------------------------------------------------------- * Commercial licenses for this work are available. These replace the above * ASL 2.0 and offer limited warranties, support, maintenance, and commercial * database integrations. * * For more information, please visit: http://www.jooq.org/licenses * * * * * * * * * * * * * * * * */ package org.jooq; import static org.jooq.SQLDialect.CUBRID; // ... import org.jooq.impl.DSL; /** * This type is used for the {@link Select}'s DSL API when selecting generic * {@link Record} types. * <p> * Example: <code><pre> * -- get all authors' first and last names, and the number * -- of books they've written in German, if they have written * -- more than five books in German in the last three years * -- (from 2011), and sort those authors by last names * -- limiting results to the second and third row * * SELECT T_AUTHOR.FIRST_NAME, T_AUTHOR.LAST_NAME, COUNT(*) * FROM T_AUTHOR * JOIN T_BOOK ON T_AUTHOR.ID = T_BOOK.AUTHOR_ID * WHERE T_BOOK.LANGUAGE = 'DE' * AND T_BOOK.PUBLISHED > '2008-01-01' * GROUP BY T_AUTHOR.FIRST_NAME, T_AUTHOR.LAST_NAME * HAVING COUNT(*) > 5 * ORDER BY T_AUTHOR.LAST_NAME ASC NULLS FIRST * LIMIT 2 * OFFSET 1 * FOR UPDATE * OF FIRST_NAME, LAST_NAME * NO WAIT * </pre></code> Its equivalent in jOOQ <code><pre> * create.select(TAuthor.FIRST_NAME, TAuthor.LAST_NAME, create.count()) * .from(T_AUTHOR) * .join(T_BOOK).on(TBook.AUTHOR_ID.equal(TAuthor.ID)) * .where(TBook.LANGUAGE.equal("DE")) * .and(TBook.PUBLISHED.greaterThan(parseDate('2008-01-01'))) * .groupBy(TAuthor.FIRST_NAME, TAuthor.LAST_NAME) * .having(create.count().greaterThan(5)) * .orderBy(TAuthor.LAST_NAME.asc().nullsFirst()) * .limit(2) * .offset(1) * .forUpdate() * .of(TAuthor.FIRST_NAME, TAuthor.LAST_NAME) * .noWait(); * </pre></code> Refer to the manual for more details * * @author Lukas Eder */ public interface SelectConnectByConditionStep<R extends Record> extends SelectStartWithStep<R> { /** * Combine the currently assembled conditions with another one using the * {@link Operator#AND} operator and proceed to the next step. */ @Support({ CUBRID }) SelectConnectByConditionStep<R> and(Condition condition); /** * Combine the currently assembled conditions with another one using the * {@link Operator#AND} operator and proceed to the next step. */ @Support({ CUBRID }) SelectConnectByConditionStep<R> and(Field<Boolean> condition); /** * Combine the currently assembled conditions with another one using the * {@link Operator#AND} operator and proceed to the next step. * * @deprecated - 3.8.0 - [#4763] - Use {@link #and(Condition)} or * {@link #and(Field)} instead. Due to ambiguity between * calling this method using {@link Field#equals(Object)} * argument, vs. calling the other method via a * {@link Field#equal(Object)} argument, this method will be * removed in the future. */ @Deprecated @Support({ CUBRID }) SelectConnectByConditionStep<R> and(Boolean condition); /** * Combine the currently assembled conditions with another one using the * {@link Operator#AND} operator and proceed to the next step. * <p> * <b>NOTE</b>: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @see DSL#condition(SQL) * @see SQL */ @Support({ CUBRID }) @PlainSQL SelectConnectByConditionStep<R> and(SQL sql); /** * Combine the currently assembled conditions with another one using the * {@link Operator#AND} operator and proceed to the next step. * <p> * <b>NOTE</b>: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @see DSL#condition(String) * @see SQL */ @Support({ CUBRID }) @PlainSQL SelectConnectByConditionStep<R> and(String sql); /** * Combine the currently assembled conditions with another one using the * {@link Operator#AND} operator and proceed to the next step. * <p> * <b>NOTE</b>: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @see DSL#condition(String, Object...) * @see SQL */ @Support({ CUBRID }) @PlainSQL SelectConnectByConditionStep<R> and(String sql, Object... bindings); /** * Combine the currently assembled conditions with another one using the * {@link Operator#AND} operator and proceed to the next step. * <p> * <b>NOTE</b>: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @see DSL#condition(String, QueryPart...) * @see SQL */ @Support({ CUBRID }) @PlainSQL SelectConnectByConditionStep<R> and(String sql, QueryPart... parts); }
[ "lukas.eder@gmail.com" ]
lukas.eder@gmail.com
e15c68c27e094d246b8d2f5e1d96b204d81440f8
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Lang/13/org/apache/commons/lang3/time/FastDatePrinter_appendTo_978.java
b0fd32d615c5feb2414c47002969da326395a6a8
[]
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,175
java
org apach common lang3 time fast date printer fastdateprint fast thread safe version link java text simpl date format simpledateformat direct replac code simpl date format simpledateformat format situat multi thread server environ code simpl date format simpledateformat thread safe jdk version sun close bug rfe format support pattern compat simpl date format simpledateformat time zone year pattern java introduc pattern letter code 'z' repres time zone rfc822 format code code pattern letter jdk version addit pattern code zz' 'zz' made repres iso8601 full format time zone code code introduc minor incompat java gain function javadoc cite year pattern format number pattern letter year truncat digit interpret number start java pattern 'y' yyy' 'yyy' format '2003' '03' java version fast date printer fastdateprint behavior java fast date printer fastdateprint date printer dateprint serializ inherit doc inheritdoc append appendto string buffer stringbuff buffer rule mrule append appendto buffer
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
45df33988a70230043c86d4baed7d69b9dea6bbf
e31880a194faa3e9f04611f4f6be792b3c3c6cc9
/war/src/main/java/ru/korus/tmis/pdm/ws/hl7/ActClassRightLateralDecubitus.java
20514e12e943dc942ca7490e3f6749d6daf0ebb4
[]
no_license
konglinghai123/pdm
e42c4350194825f9f9b0a7fc2a6c8760486ecaf4
64c192f43557107d0ff73dcd4c04fc961c244cc0
refs/heads/master
2020-05-15T10:07:35.796734
2015-09-09T16:45:27
2015-09-09T16:45:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
773
java
package ru.korus.tmis.pdm.ws.hl7; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for ActClassRightLateralDecubitus. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="ActClassRightLateralDecubitus"> * &lt;restriction base="{urn:hl7-org:v3}cs"> * &lt;enumeration value="RLD"/> * &lt;/restriction> * &lt;/simpleType> * </pre> * */ @XmlType(name = "ActClassRightLateralDecubitus") @XmlEnum public enum ActClassRightLateralDecubitus { RLD; public String value() { return name(); } public static ActClassRightLateralDecubitus fromValue(String v) { return valueOf(v); } }
[ "szgrebelny@korusconsulting.ru" ]
szgrebelny@korusconsulting.ru
6e946318ea1e2c539865ecfc365de57b53b576e1
928bdfb9b0f4b6db0043526e095fe1aa822b8e64
/src/main/java/com/taobao/api/request/JushitaJmsGroupAddRequest.java
020c3816b1f5639f4a73b27fb130d7dc91138dcc
[]
no_license
yu199195/jsb
de4f4874fb516d3e51eb3badb48d89be822e00f7
591ad717121dd8da547348aeac551fc71da1b8bd
refs/heads/master
2021-09-07T22:25:09.457212
2018-03-02T04:54:18
2018-03-02T04:54:18
102,316,111
4
3
null
null
null
null
UTF-8
Java
false
false
1,901
java
package com.taobao.api.request; import com.taobao.api.ApiRuleException; import com.taobao.api.BaseTaobaoRequest; import com.taobao.api.internal.util.RequestCheckUtils; import com.taobao.api.internal.util.TaobaoHashMap; import com.taobao.api.response.JushitaJmsGroupAddResponse; import java.util.Map; public class JushitaJmsGroupAddRequest extends BaseTaobaoRequest<JushitaJmsGroupAddResponse> { private String groupName; private String userNicks; private String userPlatform; public void setGroupName(String groupName) { this.groupName = groupName; } public String getGroupName() { return this.groupName; } public void setUserNicks(String userNicks) { this.userNicks = userNicks; } public String getUserNicks() { return this.userNicks; } public void setUserPlatform(String userPlatform) { this.userPlatform = userPlatform; } public String getUserPlatform() { return this.userPlatform; } public String getApiMethodName() { return "taobao.jushita.jms.group.add"; } public Map<String, String> getTextParams() { TaobaoHashMap txtParams = new TaobaoHashMap(); txtParams.put("group_name", this.groupName); txtParams.put("user_nicks", this.userNicks); txtParams.put("user_platform", this.userPlatform); if (this.udfParams != null) { txtParams.putAll(this.udfParams); } return txtParams; } public Class<JushitaJmsGroupAddResponse> getResponseClass() { return JushitaJmsGroupAddResponse.class; } public void check() throws ApiRuleException { RequestCheckUtils.checkNotEmpty(this.groupName, "groupName"); RequestCheckUtils.checkNotEmpty(this.userNicks, "userNicks"); RequestCheckUtils.checkMaxListSize(this.userNicks, 20, "userNicks"); } }
[ "yu.xiao@happylifeplat.com" ]
yu.xiao@happylifeplat.com
21af0910d33f8bf2b14944fc50b5a3ab8142461e
8f5db51c2849fa4503055b60e3f1f36d90712e1b
/src/main/java/sort/insertion/ShellSort.java
767a5d0d933d9faf0eb0fb47082b6067ff9a8ccf
[]
no_license
jobs-lgy/Algorithms-1
05e89f01a4991ba0592e28b83ff83ea51b37db5e
9dcbdd75ec69384ce3ca2ebcc2d9207d116a01f5
refs/heads/master
2020-07-30T17:22:40.415457
2019-03-05T16:10:54
2019-03-05T16:10:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
819
java
package sort.insertion; /** * Created with IntelliJ IDEA * * @author yuanhaoyue swithaoy@gmail.com * @description 希尔排序 * @date 2018-02-05 * @time 22:02 */ public class ShellSort { int[] shellSort(int[] a) { int length = a.length; int temp, j; //递增序列 1,4,13,40,121..... , 初始 h < 数组长度 int h = 1; while (h < length / 3) { h = h * 3 + 1; } while (h >= 1) { //不需要进行交换的插入排序 for (int i = h; i < length; i++) { temp = a[i]; for (j = i; j - h >= 0 && temp < a[j - h]; j -= h) { a[j] = a[j - h]; } a[j] = temp; } h /= 3; } return a; } }
[ "you@example.com" ]
you@example.com
79e9d59c1cc78cd200c47a18b19b231413e5ccb3
3bb932947a00b2f77deb1f9294340710f30ed2e0
/data/groundtruth/all/classNowFinal/spring-data-commons-1.13.0.RELEASE-sources/org/springframework/data/support/PersistableIsNewStrategy.java
51104d576c287892d099df793f95c04c0f311539
[ "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
crossminer/maracas
17684657b29293d82abe50249798e10312d192d6
4cb6fa22d8186d09c3bba6f5da0c548a26d044e1
refs/heads/master
2023-03-05T20:34:36.083662
2023-02-22T12:21:47
2023-02-22T12:21:47
175,425,329
8
0
null
2021-02-25T13:19:15
2019-03-13T13:21:53
Java
UTF-8
Java
false
false
1,310
java
/* * Copyright 2012 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.data.support; import org.springframework.data.domain.Persistable; /** * {@link IsNewStrategy} that invokes {@link Persistable#isNew()} on the given object. * * @author Oliver Gierke */ public enum PersistableIsNewStrategy implements IsNewStrategy { INSTANCE; /* * (non-Javadoc) * @see org.springframework.data.mapping.model.IsNewStrategy#isNew(java.lang.Object) */ public boolean isNew(Object entity) { if (!(entity instanceof Persistable)) { throw new IllegalArgumentException(String.format("Given object of type %s does not implement %s!", entity.getClass(), Persistable.class)); } return ((Persistable<?>) entity).isNew(); } }
[ "lina.m8a@gmail.com" ]
lina.m8a@gmail.com
7a032994fd53aab9c0a45501e8a17bb5bc1386bd
07724169a4b37f4cbdaa13d7f0e9545f0d7c16f4
/1.JavaSyntax/src/com/javarush/task/task09/task0922/Solution.java
a7026621a7c4c060f769793a7d1bbe0a87804044
[]
no_license
philipgold/JavaRush
ef1d9f95e29ac64a2eceb5652e57dd2c90284372
bc64ddd5c79c2e6e26c14f74ce256cb6c789fb34
refs/heads/master
2020-12-02T10:04:59.291394
2017-11-27T20:18:22
2017-11-27T20:18:22
96,688,155
0
4
null
null
null
null
UTF-8
Java
false
false
889
java
package com.javarush.task.task09.task0922; import java.io.BufferedReader; import java.io.InputStreamReader; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; /* Какое сегодня число? */ public class Solution { public static void main(String[] args) throws Exception { //напишите тут ваш код try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); SimpleDateFormat dateFormat1 = new SimpleDateFormat("MM/dd/yyyy"); SimpleDateFormat dateFormat2 = new SimpleDateFormat("MMM dd, yyyy", Locale.ENGLISH); Date d = dateFormat1.parse(br.readLine()); System.out.println(dateFormat2.format(d).toUpperCase()); } catch ( Exception e){ e.printStackTrace(); main(args); } } }
[ "philip.goldm@gmail.com" ]
philip.goldm@gmail.com
f0e25493193774ada0628b10998c2c77ed455368
5aa586fb3c6d1c5350af10e857f31a3daed9b970
/AC-Game/src/com/aionemu/gameserver/network/aion/serverpackets/SM_SERIAL_KILLER.java
d3dc8cae739302c2c91faffc21e40449c5f6e6b1
[]
no_license
JohannesPfau/aion48
c1b77a46b6f98759e3704507fd48a47c5da48021
ebed1fc243fa85ee56a2af49d84a6d6dcca6c027
refs/heads/master
2020-03-18T01:15:05.566820
2018-05-16T20:40:16
2018-05-16T20:40:16
134,134,369
0
1
null
null
null
null
UTF-8
Java
false
false
3,134
java
/** * This file is part of Aion-Lightning <aion-lightning.org>. * * Aion-Lightning is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Aion-Lightning is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * * You should have received a copy of the GNU General Public License * along with Aion-Lightning. * If not, see <http://www.gnu.org/licenses/>. * * * Credits goes to all Open Source Core Developer Groups listed below * Please do not change here something, ragarding the developer credits, except the "developed by XXXX". * Even if you edit a lot of files in this source, you still have no rights to call it as "your Core". * Everybody knows that this Emulator Core was developed by Aion Lightning * @-Aion-Lightning * @Goong_ADM */ package com.aionemu.gameserver.network.aion.serverpackets; import java.util.Collection; import com.aionemu.gameserver.model.gameobjects.player.Player; import com.aionemu.gameserver.network.PacketLoggerService; import com.aionemu.gameserver.network.aion.AionConnection; import com.aionemu.gameserver.network.aion.AionServerPacket; /** * @author Source & xTz */ public class SM_SERIAL_KILLER extends AionServerPacket { private int type; private int debuffLvl; private Collection<Player> players; public SM_SERIAL_KILLER(boolean showMsg, int debuffLvl) { this.type = showMsg ? 1 : 0; this.debuffLvl = debuffLvl; } public SM_SERIAL_KILLER(Collection<Player> players) { this.type = 4; this.players = players; } @Override protected void writeImpl(AionConnection con) { PacketLoggerService.getInstance().logPacketSM(this.getPacketName()); switch (type) { case 0: case 1: writeD(type); writeD(0x01); writeD(0x01); writeH(0x01); writeD(debuffLvl); break; case 4: writeD(type); writeD(0x01); // unk writeD(0x01); // unk writeH(players.size()); for (Player player : players) { writeD(player.getSKInfo().getRank()); writeD(player.getObjectId()); writeD(0x01); // unk writeD(player.getAbyssRank().getRank().getId()); writeH(player.getLevel()); writeF(player.getX()); writeF(player.getY()); writeS(player.getName(), 118); writeD(0x00); // unk writeD(0x00); // unk writeD(0x00); // unk writeD(0x00); // unk } break; } } }
[ "aion@gmx-topmail.de" ]
aion@gmx-topmail.de
f04513ce2baeefab25f6a0a9c73ead005296551d
336c4a321ba90d57989614d050ff2653905d6017
/app/src/main/java/com/ics/likeplayer/Adapter/AllDirectoriesAdapter.java
a8382cb1c423f3bcbf99ff576c7df9817cf97189
[]
no_license
NothingbutPro/likeplayerdecember
baff6dca7ec0fce36c33d0a7e9a7cac28d62cff3
62e044fb63b83b686f25d246d75f204a9c7400cf
refs/heads/master
2020-11-26T11:42:27.037622
2020-01-27T06:16:32
2020-01-27T06:16:32
229,061,487
0
0
null
null
null
null
UTF-8
Java
false
false
2,921
java
package com.ics.likeplayer.Adapter; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.recyclerview.widget.RecyclerView; import com.ics.likeplayer.FurtherActivity.AllVideoActivity; import com.ics.likeplayer.Model.DIrectories_Folders; import com.ics.likeplayer.R; import java.util.ArrayList; public class AllDirectoriesAdapter extends RecyclerView.Adapter<AllDirectoriesAdapter.ViewHolder> { private Context context; private ArrayList<DIrectories_Folders> pojoClassArrayList; public AllDirectoriesAdapter(Context context, ArrayList<DIrectories_Folders> pojoClassArrayList) { this.context = context; this.pojoClassArrayList = pojoClassArrayList; } @Override public AllDirectoriesAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View itemView = LayoutInflater.from(parent.getContext()) .inflate(R.layout.directories, parent, false); return new AllDirectoriesAdapter.ViewHolder(itemView); } @Override public void onBindViewHolder(AllDirectoriesAdapter.ViewHolder holder, int position) { Log.e("Dire namne is",""+pojoClassArrayList.get(position).getName()); // pojoClassArrayList.set(position , ) // DirectoriesList.set holder.Dir_Name.setText(pojoClassArrayList.get(position).getName() +" "+ pojoClassArrayList.get(position).getNo_of_SOngs()); holder.Dir_Name.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(v.getContext() , AllVideoActivity.class); intent.putExtra("dirpath" , ""+pojoClassArrayList.get(position).getBaseAddress()); intent.putExtra("sectionvid" , ""+pojoClassArrayList.get(position).getName()); intent.putExtra("nofsongs" , ""+pojoClassArrayList.get(position).getNo_of_SOngs()); v.getContext().startActivity(intent); // ((Activity)context).finish(); Log.e("aleardy " , "called"); } }); // holder.singer_name.setText(pojoClassArrayList.get(position).getSinger_name()); // holder.time.setText(pojoClassArrayList.get(position).getTime()); } @Override public int getItemCount() { return pojoClassArrayList.size(); } public class ViewHolder extends RecyclerView.ViewHolder { TextView Dir_Name,singer_name,time; public ViewHolder(View view) { super(view); Dir_Name = view.findViewById(R.id.dir_name); // singer_name = view.findViewById(R.id.singer_name); // time = view.findViewById(R.id.time); } } }
[ "paragsharma611@gmail.com" ]
paragsharma611@gmail.com
b3036eed3dfb7db7be3d2b672b14a8727216f0ed
bc9dee08c12255101c030d643b622f96cfe71648
/java/headFirstDesignPatterns/chap3/starbuzz/src/br/com/starbuzz/drinks/Beverage.java
7912984c7d971d718b23c2e3afe3cdd18ae3bdbd
[]
no_license
jcarlosadm/tutorials
01123d2fde1bf6e51392dd83b529298a9630a912
a546512dfa668424cb79e813d7e3e94af772ef6c
refs/heads/master
2021-01-01T16:19:00.308192
2016-02-21T18:09:08
2016-02-21T18:09:08
27,006,377
0
0
null
null
null
null
UTF-8
Java
false
false
233
java
package br.com.starbuzz.drinks; public abstract class Beverage { String description = "Unknown Beverage"; public String getDescription(){ return this.description; } public abstract double cost(); }
[ "carlosmaster10@gmail.com" ]
carlosmaster10@gmail.com
0d7eb4a5f54c8b08f6bc710256c88c88742f64e7
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/appbrand/permission/u$$ExternalSyntheticLambda2.java
c285e01f77775326a9a5ff3607d16e17ed1d25ad
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
477
java
package com.tencent.mm.plugin.appbrand.permission; import android.view.View; import android.view.View.OnClickListener; public final class u$$ExternalSyntheticLambda2 implements View.OnClickListener { public final void onClick(View arg1) {} } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes8.jar * Qualified Name: com.tencent.mm.plugin.appbrand.permission.u..ExternalSyntheticLambda2 * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
411f75ffaba120e146f9957befbf27b9561a88bd
542e78ed5a5fb6074e83f8b1afbf5a9165988a79
/bin/custom/training/trainingstorefront/web/src/com/training/storefront/renderer/ImageMapComponentRenderer.java
2ffc22d746c21a5bf36c298dbcb4a110b6589034
[]
no_license
VladislawL/hybris-commerce-trails
49d08b6639520a5e71273132b2761b5f27ddc114
a1ce4ae00952077bf23a78a64162a375cb50f1a1
refs/heads/master
2022-12-27T19:39:27.514634
2020-10-06T08:25:13
2020-10-06T08:25:13
299,559,346
0
0
null
null
null
null
UTF-8
Java
false
false
1,962
java
/* * Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. */ package com.training.storefront.renderer; import de.hybris.platform.acceleratorcms.component.renderer.CMSComponentRenderer; import de.hybris.platform.acceleratorcms.model.components.ImageMapComponentModel; import org.apache.commons.lang.StringUtils; import org.owasp.html.HtmlPolicyBuilder; import org.owasp.html.PolicyFactory; import javax.servlet.ServletException; import javax.servlet.jsp.JspWriter; import javax.servlet.jsp.PageContext; import java.io.IOException; public class ImageMapComponentRenderer implements CMSComponentRenderer<ImageMapComponentModel> { protected static final PolicyFactory policy = new HtmlPolicyBuilder().allowStandardUrlProtocols() .allowElements("div", "img", "map", "area").allowAttributes("src", "class", "title", "usemap", "alt", "srcset") .onElements("img").allowAttributes("shape", "coords", "href", "alt", "target").onElements("area").allowAttributes("name") .onElements("map").toFactory(); @Override public void renderComponent(final PageContext pageContext, final ImageMapComponentModel component) throws IOException { final StringBuilder html = new StringBuilder(); final String altText = StringUtils.defaultIfBlank(component.getMedia().getAltText(), ""); html.append("<div>"); html.append("<img"); if (StringUtils.isNotBlank(altText)) { html.append(" title=\""); html.append(altText); html.append("\" "); html.append(" alt=\""); html.append(altText); html.append("\" "); } html.append(" src=\""); html.append(component.getMedia().getURL()); html.append("\" "); html.append(" usemap=\"#map\">"); html.append("<map name=\"map\">"); html.append(component.getImageMapHTML()); html.append("</map>"); html.append("</div>"); final String sanitizedHTML = policy.sanitize(html.toString()); final JspWriter out = pageContext.getOut(); out.write(sanitizedHTML); } }
[ "vladislaw.logvin@yandex.ru" ]
vladislaw.logvin@yandex.ru
6a7b8410eed36ba76ac33621f876deb208443b39
0ea271177f5c42920ac53cd7f01f053dba5c14e4
/5.3.5/sources/org/telegram/messenger/MessagesController$PrintingUser.java
232a8949c83b35fedb32e26a13d054241162849e
[]
no_license
alireza-ebrahimi/telegram-talaeii
367a81a77f9bc447e729b2ca339f9512a4c2860e
68a67e6f104ab8a0888e63c605e8bbad12c4a20e
refs/heads/master
2020-03-21T13:44:29.008002
2018-12-09T10:30:29
2018-12-09T10:30:29
138,622,926
12
1
null
null
null
null
UTF-8
Java
false
false
226
java
package org.telegram.messenger; import org.telegram.tgnet.TLRPC$SendMessageAction; public class MessagesController$PrintingUser { public TLRPC$SendMessageAction action; public long lastTime; public int userId; }
[ "alireza.ebrahimi2006@gmail.com" ]
alireza.ebrahimi2006@gmail.com
e78de2e0af9a10ac85edd5a8a3ece3b3d3ba788c
83436380fe01acf30dd154294b3da930e58c5ceb
/BelejanorProject/src/com/belejanor/switcher/struct/servipagos/Registro.java
098be47dddd990584b38170135babe655673fd2c
[]
no_license
jmptrader/BelejanorSwitch
83e847ee3dc6a555a40e6347f40af4e106c9054f
ce11d46b5ed52b89d22b5890f1e4fad29730125a
refs/heads/master
2023-02-07T07:22:42.266465
2020-12-27T05:07:15
2020-12-27T05:07:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
786
java
package com.belejanor.switcher.struct.servipagos; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAttribute; @SuppressWarnings("serial") public class Registro implements Serializable{ private String tipo; private List<Campo> campo; public Registro(){ this.tipo = null; this.campo = new ArrayList<>(); } public Registro(String tipo){ this(); this.tipo = tipo; } public void addCampo(String id, String valor) { campo.add(new Campo(id, valor)); } @XmlAttribute public String getTipo() { return tipo; } public void setTipo(String tipo) { this.tipo = tipo; } public List<Campo> getCampo() { return campo; } public void setCampo(List<Campo> campo) { this.campo = campo; } }
[ "jorellana29@gmail.com" ]
jorellana29@gmail.com
83f22ba16d3c437d5aa611030846b3e69b58948a
269592748cf52fdb60b04d655b6096bc99ac19d3
/job_1/day12/src/com/send_recevie2/ReceiveTest.java
c3a6c7bd8192d14459cf647cd86ac458c64ffb7c
[]
no_license
xcm31725/xcm
bdc4f510473206fed1399cab09de9ebfd1790fa6
90e6c31bf0dd6cf50b0961b394e7ddc786fb73c8
refs/heads/master
2021-09-15T23:16:50.943304
2018-06-12T14:22:35
2018-06-12T14:22:35
115,909,747
0
0
null
null
null
null
GB18030
Java
false
false
787
java
package com.send_recevie2; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; public class ReceiveTest { public static void main(String[] args) throws IOException { //创建接收端对象 DatagramSocket ds = new DatagramSocket(520); //创建打包对象 byte[] bys = new byte[1024]; DatagramPacket dp = new DatagramPacket(bys, bys.length); //获取就收数据 ds.receive(dp); //解析数据 //获取发送端的IP InetAddress address = dp.getAddress(); //获取字节数组数据 byte[] data = dp.getData(); //获取长度 int len = dp.getLength(); //输出数据 System.out.println("send --->" + address.getHostAddress()); System.out.println(new String(bys, 0, len)); } }
[ "xltfn0317@gmail.com" ]
xltfn0317@gmail.com
73812c290954b667d0b02a163dfe8ddbdd139f42
c7b437dd08eb074e162ee3b8b0cc9692f134ed45
/boo-common/src/main/java/cn/edu/sysu/workflow/common/entity/BinStep.java
87db68a23a1dc617039f11ba932ae448658cf85a
[ "Apache-2.0" ]
permissive
SYSU-Workflow-Lab/BooWFMS
b30fb61a3772ccc7401677de0d42b606cb54e1ef
2122e57dd882822c72c31b5c78fc9d967b122c17
refs/heads/release/1.2.0
2022-07-01T17:59:55.730859
2020-06-14T08:22:09
2020-06-14T08:22:09
208,559,518
6
8
Apache-2.0
2022-06-17T03:18:09
2019-09-15T07:45:13
Java
UTF-8
Java
false
false
2,494
java
package cn.edu.sysu.workflow.common.entity; import cn.edu.sysu.workflow.common.entity.base.BooPagedQuery; import java.util.Arrays; import java.util.Objects; /** * BinStep of BooWFMS. * 流程实例单步数据快照。 * * @author Rinkako, Skye * Created on 2019/12/18 */ public class BinStep extends BooPagedQuery { private static final long serialVersionUID = 2776125695679340149L; public static final String PREFIX = "bs-"; /** * 数据库主键 */ private String binStepId; /** * 流程实例ID */ private String processInstanceId; /** * 父节点ID */ private String parentId; /** * 通知ID */ private String notificationId; /** * 内容数据 */ private byte[] binlog; public BinStep() { super(); } public String getBinStepId() { return binStepId; } public void setBinStepId(String binStepId) { this.binStepId = binStepId; } public String getProcessInstanceId() { return processInstanceId; } public void setProcessInstanceId(String processInstanceId) { this.processInstanceId = processInstanceId; } public String getParentId() { return parentId; } public void setParentId(String parentId) { this.parentId = parentId; } public String getNotificationId() { return notificationId; } public void setNotificationId(String notificationId) { this.notificationId = notificationId; } public byte[] getBinlog() { return binlog; } public void setBinlog(byte[] binlog) { this.binlog = binlog; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } BinStep binStep = (BinStep) o; return Objects.equals(binStepId, binStep.binStepId) && Objects.equals(processInstanceId, binStep.processInstanceId) && Objects.equals(parentId, binStep.parentId) && Objects.equals(notificationId, binStep.notificationId) && Arrays.equals(binlog, binStep.binlog); } @Override public int hashCode() { int result = Objects.hash(binStepId, processInstanceId, parentId, notificationId); result = 31 * result + Arrays.hashCode(binlog); return result; } }
[ "928016560@qq.com" ]
928016560@qq.com
cce427a52d119670ab732bbc81ddd9bba2638201
277bf3a0d3587808141942d0f0d42882e7b3cd8f
/ProjectSourceCode /Apache Commons Math v3.5/src/main/java/org/apache/commons/math3/stat/descriptive/moment/Skewness.java
5a82fe825858d99e1e05f18cdfb05f25aa30a5c5
[ "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
yashgolwala/Software_Measurement_Team_M
d1b13389651dacbc8f735dc87a7d0992829c8909
3d2aef4c0711b7a02155a42ca6b08bb6c2693d4c
refs/heads/master
2020-06-11T11:19:32.815146
2019-06-26T03:45:15
2019-06-26T03:45:15
193,592,231
0
0
Unlicense
2019-06-25T16:17:29
2019-06-24T22:57:31
HTML
UTF-8
Java
false
false
129
java
version https://git-lfs.github.com/spec/v1 oid sha256:ce7527d242513aea9a1243fe24759594c0aa312dddf7bf1c10d21ca179d78233 size 7226
[ "golwalayash@gmail.com" ]
golwalayash@gmail.com
83f09c7c48fee896cffc73ddc6d5ce3f3cf5525f
a6e0faabade66696829427d16107551edaddf485
/algorithms-algs4/src/main/java/com/brianway/learning/algorithms/algs4utils/Average.java
00f645a43717158d03479860d2dca4343088da56
[ "Apache-2.0" ]
permissive
brianway/algorithms-learning
ff979b84499c225d0429d01af67e0f325c9562f1
febc684107d80fda9fcfabc3336f40c1a9c3d42f
refs/heads/master
2022-12-22T02:45:40.046990
2022-12-11T13:46:58
2022-12-11T13:46:58
55,965,971
211
68
null
null
null
null
UTF-8
Java
false
false
2,748
java
/****************************************************************************** * Compilation: javac Average.java * Execution: java Average < data.txt * Dependencies: StdIn.java StdOut.java * * Reads in a sequence of real numbers, and computes their average. * * % java Average * 10.0 5.0 6.0 * 3.0 7.0 32.0 * [Ctrl-d] * Average is 10.5 * * Note [Ctrl-d] signifies the end of file on Unix. * On windows use [Ctrl-z]. ******************************************************************************/ package com.brianway.learning.algorithms.algs4utils; /** * The <tt>Average</tt> class provides a client for reading in a sequence * of real numbers and printing out their average. * <p> * For additional documentation, see <a href="http://algs4.cs.princeton.edu/11model">Section 1.1</a> of * <i>Algorithms, 4th Edition</i> by Robert Sedgewick and Kevin Wayne. * * @author Robert Sedgewick * @author Kevin Wayne */ public class Average { // this class should not be instantiated private Average() { } /** * Reads in a sequence of real numbers from standard input and prints * out their average to standard output. */ public static void main(String[] args) { int count = 0; // number input values double sum = 0.0; // sum of input values // read data and compute statistics while (!StdIn.isEmpty()) { double value = StdIn.readDouble(); sum += value; count++; } // compute the average double average = sum / count; // print results StdOut.println("Average is " + average); } } /****************************************************************************** * Copyright 2002-2015, Robert Sedgewick and Kevin Wayne. * * This file is part of algs4.jar, which accompanies the textbook * * Algorithms, 4th edition by Robert Sedgewick and Kevin Wayne, * Addison-Wesley Professional, 2011, ISBN 0-321-57351-X. * http://algs4.cs.princeton.edu * * * algs4.jar is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * algs4.jar is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with algs4.jar. If not, see http://www.gnu.org/licenses. ******************************************************************************/
[ "250902678@qq.com" ]
250902678@qq.com
c2d20b51487ae12c5512e47f6a5d87e3c049565c
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/boot/svg/code/drawable/bank_remit_transfer.java
ec62ecb44a5ce27673321e9bac18df2246a1b994
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
5,228
java
package com.tencent.mm.boot.svg.code.drawable; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Paint.Cap; import android.graphics.Paint.Join; import android.graphics.Paint.Style; import android.graphics.Path; import android.os.Looper; import com.tencent.mm.svg.WeChatSVGRenderC2Java; import com.tencent.mm.svg.c; public class bank_remit_transfer extends c { private final int height = 69; private final int width = 69; public int doCommand(int paramInt, Object... paramVarArgs) { switch (paramInt) { } for (;;) { return 0; return 69; return 69; Canvas localCanvas = (Canvas)paramVarArgs[0]; paramVarArgs = (Looper)paramVarArgs[1]; c.instanceMatrix(paramVarArgs); c.instanceMatrixArray(paramVarArgs); Paint localPaint = c.instancePaint(paramVarArgs); localPaint.setFlags(385); localPaint.setStyle(Paint.Style.FILL); Object localObject = c.instancePaint(paramVarArgs); ((Paint)localObject).setFlags(385); ((Paint)localObject).setStyle(Paint.Style.STROKE); localPaint.setColor(-16777216); ((Paint)localObject).setStrokeWidth(1.0F); ((Paint)localObject).setStrokeCap(Paint.Cap.BUTT); ((Paint)localObject).setStrokeJoin(Paint.Join.MITER); ((Paint)localObject).setStrokeMiter(4.0F); ((Paint)localObject).setPathEffect(null); c.instancePaint((Paint)localObject, paramVarArgs).setStrokeWidth(1.0F); localPaint = c.instancePaint(localPaint, paramVarArgs); localPaint.setColor(-1); localCanvas.save(); localPaint = c.instancePaint(localPaint, paramVarArgs); localObject = c.instancePath(paramVarArgs); ((Path)localObject).moveTo(41.076107F, 39.0F); ((Path)localObject).lineTo(41.075874F, 39.001709F); ((Path)localObject).lineTo(26.999348F, 38.992485F); ((Path)localObject).cubicTo(26.693531F, 38.992287F, 26.404617F, 38.852161F, 26.21512F, 38.612133F); ((Path)localObject).cubicTo(25.8729F, 38.178654F, 25.94688F, 37.549824F, 26.380358F, 37.207603F); ((Path)localObject).lineTo(41.176712F, 25.526272F); ((Path)localObject).cubicTo(41.389874F, 25.357986F, 41.662312F, 25.283638F, 41.931408F, 25.320316F); ((Path)localObject).cubicTo(42.478634F, 25.394903F, 42.861782F, 25.898981F, 42.787193F, 26.446207F); ((Path)localObject).lineTo(41.621311F, 35.0F); ((Path)localObject).lineTo(59.995052F, 35.0F); ((Path)localObject).cubicTo(61.102356F, 35.0F, 62.0F, 35.88773F, 62.0F, 37.0F); ((Path)localObject).cubicTo(62.0F, 38.104568F, 61.102974F, 39.0F, 59.995052F, 39.0F); ((Path)localObject).lineTo(41.076107F, 39.0F); ((Path)localObject).close(); ((Path)localObject).moveTo(48.257568F, 43.016853F); ((Path)localObject).lineTo(58.787849F, 43.02375F); ((Path)localObject).cubicTo(59.093666F, 43.023952F, 59.382576F, 43.164078F, 59.572075F, 43.404106F); ((Path)localObject).cubicTo(59.914295F, 43.837585F, 59.840317F, 44.466415F, 59.406837F, 44.808636F); ((Path)localObject).lineTo(44.610481F, 56.489967F); ((Path)localObject).cubicTo(44.39732F, 56.658253F, 44.124882F, 56.732601F, 43.855785F, 56.695923F); ((Path)localObject).cubicTo(43.308563F, 56.621334F, 42.925411F, 56.117256F, 43.0F, 55.57003F); ((Path)localObject).lineTo(44.168098F, 47.0F); ((Path)localObject).lineTo(28.004946F, 47.0F); ((Path)localObject).cubicTo(26.897646F, 47.0F, 26.0F, 46.11227F, 26.0F, 45.0F); ((Path)localObject).cubicTo(26.0F, 43.895432F, 26.897026F, 43.0F, 28.004946F, 43.0F); ((Path)localObject).lineTo(47.995052F, 43.0F); ((Path)localObject).cubicTo(48.08403F, 43.0F, 48.171654F, 43.005733F, 48.257568F, 43.016853F); ((Path)localObject).close(); ((Path)localObject).moveTo(57.0F, 31.0F); ((Path)localObject).lineTo(53.0F, 31.0F); ((Path)localObject).lineTo(53.0F, 18.0F); ((Path)localObject).lineTo(13.0F, 18.0F); ((Path)localObject).lineTo(13.0F, 50.0F); ((Path)localObject).lineTo(37.959999F, 50.0F); ((Path)localObject).lineTo(37.32F, 54.0F); ((Path)localObject).lineTo(12.0F, 54.0F); ((Path)localObject).cubicTo(10.343145F, 54.0F, 9.0F, 52.656853F, 9.0F, 51.0F); ((Path)localObject).lineTo(9.0F, 17.0F); ((Path)localObject).lineTo(9.0F, 17.0F); ((Path)localObject).cubicTo(9.0F, 15.343145F, 10.343145F, 14.0F, 12.0F, 14.0F); ((Path)localObject).lineTo(12.0F, 14.0F); ((Path)localObject).lineTo(54.0F, 14.0F); ((Path)localObject).cubicTo(55.656853F, 14.0F, 57.0F, 15.343145F, 57.0F, 17.0F); ((Path)localObject).lineTo(57.0F, 31.0F); ((Path)localObject).close(); WeChatSVGRenderC2Java.setFillType((Path)localObject, 2); localCanvas.drawPath((Path)localObject, localPaint); localCanvas.restore(); c.done(paramVarArgs); } } } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes12.jar * Qualified Name: com.tencent.mm.boot.svg.code.drawable.bank_remit_transfer * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
c4443948b8f87e57a2deb3f45077f1fba198e21f
eca4a253fe0eba19f60d28363b10c433c57ab7a1
/server/openjacob.engine/java/de/tif/jacob/core/data/impl/qbe/QBEFieldConstraint.java
e6b7933a5c820cd15fd0b60e455a0c45560e310b
[]
no_license
freegroup/Open-jACOB
632f20575092516f449591bf6f251772f599e5fc
84f0a6af83876bd21c453132ca6f98a46609f1f4
refs/heads/master
2021-01-10T11:08:03.604819
2015-05-25T10:25:49
2015-05-25T10:25:49
36,183,560
0
0
null
null
null
null
UTF-8
Java
false
false
7,337
java
/******************************************************************************* * This file is part of Open-jACOB * Copyright (C) 2005-2006 Tarragon GmbH * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA *******************************************************************************/ package de.tif.jacob.core.data.impl.qbe; import java.util.Locale; import de.tif.jacob.core.data.internal.IDataFieldConstraintPrivate; import de.tif.jacob.core.definition.ITableAlias; import de.tif.jacob.core.definition.ITableField; import de.tif.jacob.core.definition.fieldtypes.TextFieldType; /** * @author Andreas * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public final class QBEFieldConstraint implements IDataFieldConstraintPrivate { static public transient final String RCS_ID = "$Id: QBEFieldConstraint.java,v 1.3 2010/06/29 12:39:05 ibissw Exp $"; static public transient final String RCS_REV = "$Revision: 1.3 $"; private final ITableAlias alias; private final ITableField field; private final Object value; private final boolean exactMatch; private final String guiElementName; private final Locale locale; private QBEFieldConstraint linkedConstraint; /** * Optional flag indicating that the constraint should only be considered, if * a respective (linked) record exists. */ private boolean isOptional = false; /** * Constructor of field constraint * * @param alias * the alias of the constrained field * @param field * the constrained field * @param value * the QBE constraint value * @param exactMatch * <code>true</code> means <code>value</code> should be treated * as exact match value, otherwise <code>false</code> * @param locale * the locale used to parse the QBE constraint value or * <code>null</code> * @param guiElementName * the name of the constrained gui element or <code>null</code> */ public QBEFieldConstraint(ITableAlias alias, ITableField field, Object value, boolean exactMatch, Locale locale, String guiElementName) { if (null == alias) throw new NullPointerException("alias is null"); if (null == field) throw new NullPointerException("field is null"); if (null == value) throw new NullPointerException("value is null"); this.value = value; this.exactMatch = exactMatch; this.guiElementName = guiElementName; this.locale = locale; this.alias = alias; this.field = field; } public final ITableAlias getTableAlias() { return this.alias; } /** * @return Returns the field. */ public final ITableField getTableField() { return this.field; } /** * toString methode: creates a String representation of the object * @return the String representation * @author info.vancauwenberge.tostring plugin */ public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("QBEFieldConstraint["); buffer.append("alias = ").append(alias.getName()); buffer.append(", field = ").append(field.getName()); buffer.append(", value = ").append(value); buffer.append(", exactMatch = ").append(exactMatch); buffer.append(", guiElementName = ").append(guiElementName); buffer.append(", linkedConstraint = ").append(linkedConstraint); buffer.append("]"); return buffer.toString(); } public Object getValue() { if (this.linkedConstraint == null) return this.value; StringBuffer buffer = new StringBuffer(); getValue(buffer); return buffer.toString(); } private void getValue(StringBuffer buffer) { // Enforce exact match for text fields by means of '='. All others are exact match per default. if (this.exactMatch && field.getType() instanceof TextFieldType) buffer.append("="); buffer.append(this.value.toString()); if (this.linkedConstraint != null) { // make logical OR operation buffer.append("|"); this.linkedConstraint.getValue(buffer); } } public boolean isExactMatch() { return this.linkedConstraint == null && this.exactMatch; } public boolean isExactMatchRecursive() { return this.exactMatch && (this.linkedConstraint == null || this.linkedConstraint.isExactMatchRecursive()); } /** * Returns the locale used to parse the QBE constraint value. * * @return The locale or <code>null</code> */ public Locale getLocale() { return locale; } /** * Checks whether this constraint equals to an null check, i.e. the * respective field value should be <code>null</code>. * * @return <code>true</code> if null check, otherwise <code>false</code> */ public boolean isNullCheck() { if (!exactMatch && linkedConstraint == null && value instanceof String) { return ((String) value).trim().toUpperCase().equals("NULL"); } return false; } /** * Checks whether this constraint belongs to an OR-group. * * @return <code>true</code> if constraint belongs to an OR-group, otherwise <code>false</code> */ public boolean isOrGroupCheck() { if (!exactMatch && linkedConstraint == null && value instanceof String) { return ((String) value).trim().startsWith("|"); } return false; } public void add(QBEFieldConstraint otherConstraint) { if (this.exactMatch == otherConstraint.exactMatch && this.value.equals(otherConstraint.value)) { // same constraint -> ignore return; } if (this.linkedConstraint == null) this.linkedConstraint = otherConstraint; else this.linkedConstraint.add(otherConstraint); } /* (non-Javadoc) * @see de.tif.jacob.core.data.IDataFieldConstraint#getQbeValue() */ public String getQbeValue() { return this.value.toString(); } /* (non-Javadoc) * @see de.tif.jacob.core.data.IDataFieldConstraint#isQbeKeyValue() */ public boolean isQbeKeyValue() { return this.exactMatch; } /* (non-Javadoc) * @see de.tif.jacob.core.data.internal.IDataFieldConstraintPrivate#guiElementName() */ public String guiElementName() { return this.guiElementName; } /** * @return Returns the linkedConstraint. */ protected QBEFieldConstraint getLinkedConstraint() { return linkedConstraint; } /** * @return Returns the isOptional. */ public boolean isOptional() { return isOptional; } /** * @param isOptional The isOptional to set. */ public void setOptional() { this.isOptional = true; } }
[ "a.herz@freegroup.de" ]
a.herz@freegroup.de
1394d38aa79a9cd20e62f9b1ad8ba80235a55fb9
a8a7cc6bae2a202941e504aea4356e2a959e5e95
/jenkow-activiti/modules/activiti-engine/src/main/java/org/activiti/engine/impl/context/ExecutionContext.java
bafca0a863bbf429853cdb7c2f4b7262bfff631e
[ "Apache-2.0" ]
permissive
jenkinsci/jenkow-plugin
aed5d5db786ad260c16cebecf5c6bbbcbf498be5
228748890476b2f17f80b618c8d474a4acf2af8b
refs/heads/master
2023-08-19T23:43:15.544100
2013-05-14T00:49:56
2013-05-14T00:49:56
4,395,961
2
4
null
2022-12-20T22:37:41
2012-05-21T16:58:26
Java
UTF-8
Java
false
false
1,694
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 org.activiti.engine.impl.context; import org.activiti.engine.impl.persistence.entity.DeploymentEntity; import org.activiti.engine.impl.persistence.entity.ExecutionEntity; import org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntity; import org.activiti.engine.impl.pvm.runtime.InterpretableExecution; /** * @author Tom Baeyens */ public class ExecutionContext { protected ExecutionEntity execution; public ExecutionContext(InterpretableExecution execution) { this.execution = (ExecutionEntity) execution; } public ExecutionEntity getExecution() { return execution; } public ExecutionEntity getProcessInstance() { return execution.getProcessInstance(); } public ProcessDefinitionEntity getProcessDefinition() { return (ProcessDefinitionEntity) execution.getProcessDefinition(); } public DeploymentEntity getDeployment() { String deploymentId = getProcessDefinition().getDeploymentId(); DeploymentEntity deployment = Context .getCommandContext() .getDeploymentManager() .findDeploymentById(deploymentId); return deployment; } }
[ "m2spring@springdot.org" ]
m2spring@springdot.org
d19c15cd0f6e580581e0370cd3b9e0fb481bdb55
06e34596185c90f3c1cce7cbca5cfb4f2594782c
/xgen4j/src/test-gen/java/com/rodrigodev/xgen4j/test/message/descriptionWithCustomObjectThatGeneratesTheMessageCanBeUsed/RootError.java
003555127bb6a96e691d0a23dda411c48ce09a2c
[ "MIT" ]
permissive
RodrigoQuesadaDev/XGen4J
3e45593c1de9f842b2e2de682bec6b59c34d5ab7
8d7791494521f54cbf8d89b5e12001e295cff3f4
refs/heads/master
2021-01-21T05:00:42.559899
2015-07-28T10:11:13
2015-07-28T10:11:13
39,287,751
0
0
null
null
null
null
UTF-8
Java
false
false
959
java
package com.rodrigodev.xgen4j.test.message.descriptionWithCustomObjectThatGeneratesTheMessageCanBeUsed; import com.rodrigodev.xgen4j.test.message.descriptionWithCustomObjectThatGeneratesTheMessageCanBeUsed.RootException.ExceptionType; /** * Autogenerated by XGen4J on January 1, 0001. */ public abstract class RootError { public static final ErrorCode CODE = new ErrorCode("root"); protected static void throwExceptionForCommonError(ErrorCode code, ExceptionType exceptionType, String message) { if(exceptionType == null) throw new NullPointerException("exceptionType"); throw exceptionType.createException(code, message); } protected static void throwExceptionForCommonError(ErrorCode code, ExceptionType exceptionType, String message, Throwable cause) { if(exceptionType == null) throw new NullPointerException("exceptionType"); throw exceptionType.createException(code, message, cause); } }
[ "rodrigoquesada@gmail.com" ]
rodrigoquesada@gmail.com
023ea3a79561a9fb65329107274a94e7f2a1c4db
2fef56c23ca5b75a6ea4ef963ebfd821d3c30bec
/app/src/main/java/com/unsplash/wallsplash/collection/model/activity/EditResultObject.java
17a0ea503132cd7afe29350f7196b1b2e8717783
[]
no_license
hoanghiephui/wallsplash
ae37242934c063798c6b8f1f91f9c8579c70a40f
a8a53e4aaa19b701a50209eab56a0d49addfc5f2
refs/heads/master
2021-03-19T16:27:19.579976
2016-09-26T09:22:40
2016-09-26T09:22:45
67,116,840
0
0
null
null
null
null
UTF-8
Java
false
false
654
java
package com.unsplash.wallsplash.collection.model.activity; import com.unsplash.wallsplash.WallSplashApplication; import com.unsplash.wallsplash.common.i.model.EditResultModel; /** * Edit result object. */ public class EditResultObject implements EditResultModel { // data private Object key; /** * <br> life cycle. */ public EditResultObject() { this.key = WallSplashApplication.getInstance().getCollection(); } /** * <br> model. */ @Override public Object getEditKey() { return key; } @Override public void setEditKey(Object k) { key = k; } }
[ "hoanghiep.hui@gmail.com" ]
hoanghiep.hui@gmail.com
54f31fdf9c52dfc1ba4b9906eb1747c4ba3cd7f5
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/training/org/apache/activemq/plugin/BrokerStatisticsPluginTest.java
8b94582afff8fe22727e6e509c3a1bf39cfcc8b5
[]
no_license
STAMP-project/dspot-experiments
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
121487e65cdce6988081b67f21bbc6731354a47f
refs/heads/master
2023-02-07T14:40:12.919811
2019-11-06T07:17:09
2019-11-06T07:17:09
75,710,758
14
19
null
2023-01-26T23:57:41
2016-12-06T08:27:42
null
UTF-8
Java
false
false
6,642
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.activemq.plugin; import Message.DEFAULT_PRIORITY; import Session.AUTO_ACKNOWLEDGE; import StatisticsBroker.STATS_BROKER_PREFIX; import StatisticsBroker.STATS_BROKER_RESET_HEADER; import javax.jms.Connection; import javax.jms.MapMessage; import javax.jms.Message; import javax.jms.MessageConsumer; import javax.jms.MessageProducer; import javax.jms.Queue; import javax.jms.Session; import junit.framework.TestCase; import org.apache.activemq.broker.BrokerService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static StatisticsBroker.STATS_DESTINATION_PREFIX; /** * A BrokerStatisticsPluginTest * A testcase for https://issues.apache.org/activemq/browse/AMQ-2379 */ public class BrokerStatisticsPluginTest extends TestCase { private static final Logger LOG = LoggerFactory.getLogger(BrokerStatisticsPluginTest.class); private Connection connection; private BrokerService broker; public void testBrokerStats() throws Exception { Session session = connection.createSession(false, AUTO_ACKNOWLEDGE); Queue replyTo = session.createTemporaryQueue(); MessageConsumer consumer = session.createConsumer(replyTo); Queue query = session.createQueue(STATS_BROKER_PREFIX); MessageProducer producer = session.createProducer(query); Message msg = session.createMessage(); msg.setJMSReplyTo(replyTo); producer.send(msg); MapMessage reply = ((MapMessage) (consumer.receive((10 * 1000)))); TestCase.assertNotNull(reply); TestCase.assertTrue(reply.getMapNames().hasMoreElements()); TestCase.assertTrue(((reply.getJMSTimestamp()) > 0)); TestCase.assertEquals(DEFAULT_PRIORITY, reply.getJMSPriority()); /* for (Enumeration e = reply.getMapNames();e.hasMoreElements();) { String name = e.nextElement().toString(); System.err.println(name+"="+reply.getObject(name)); } */ } public void testBrokerStatsReset() throws Exception { Session session = connection.createSession(false, AUTO_ACKNOWLEDGE); Queue replyTo = session.createTemporaryQueue(); MessageConsumer consumer = session.createConsumer(replyTo); Queue testQueue = session.createQueue("Test.Queue"); Queue query = session.createQueue(STATS_BROKER_PREFIX); MessageProducer producer = session.createProducer(null); producer.send(testQueue, session.createMessage()); Message msg = session.createMessage(); msg.setJMSReplyTo(replyTo); producer.send(query, msg); MapMessage reply = ((MapMessage) (consumer.receive((10 * 1000)))); TestCase.assertNotNull(reply); TestCase.assertTrue(reply.getMapNames().hasMoreElements()); TestCase.assertTrue(((reply.getLong("enqueueCount")) >= 1)); msg = session.createMessage(); msg.setBooleanProperty(STATS_BROKER_RESET_HEADER, true); msg.setJMSReplyTo(replyTo); producer.send(query, msg); reply = ((MapMessage) (consumer.receive((10 * 1000)))); TestCase.assertNotNull(reply); TestCase.assertTrue(reply.getMapNames().hasMoreElements()); TestCase.assertEquals(0, reply.getLong("enqueueCount")); TestCase.assertTrue(((reply.getJMSTimestamp()) > 0)); TestCase.assertEquals(DEFAULT_PRIORITY, reply.getJMSPriority()); } public void testDestinationStats() throws Exception { Session session = connection.createSession(false, AUTO_ACKNOWLEDGE); Queue replyTo = session.createTemporaryQueue(); MessageConsumer consumer = session.createConsumer(replyTo); Queue testQueue = session.createQueue("Test.Queue"); MessageProducer producer = session.createProducer(null); Queue query = session.createQueue(((STATS_DESTINATION_PREFIX) + (testQueue.getQueueName()))); Message msg = session.createMessage(); producer.send(testQueue, msg); msg.setJMSReplyTo(replyTo); producer.send(query, msg); MapMessage reply = ((MapMessage) (consumer.receive((10 * 1000)))); TestCase.assertNotNull(reply); TestCase.assertTrue(reply.getMapNames().hasMoreElements()); TestCase.assertTrue(((reply.getJMSTimestamp()) > 0)); TestCase.assertEquals(DEFAULT_PRIORITY, reply.getJMSPriority()); TestCase.assertTrue(((reply.getLong("averageMessageSize")) > 0)); /* for (Enumeration e = reply.getMapNames();e.hasMoreElements();) { String name = e.nextElement().toString(); System.err.println(name+"="+reply.getObject(name)); } */ } public void testDestinationStatsWithDot() throws Exception { Session session = connection.createSession(false, AUTO_ACKNOWLEDGE); Queue replyTo = session.createTemporaryQueue(); MessageConsumer consumer = session.createConsumer(replyTo); Queue testQueue = session.createQueue("Test.Queue"); MessageProducer producer = session.createProducer(null); Queue query = session.createQueue((((STATS_DESTINATION_PREFIX) + ".") + (testQueue.getQueueName()))); Message msg = session.createMessage(); producer.send(testQueue, msg); msg.setJMSReplyTo(replyTo); producer.send(query, msg); MapMessage reply = ((MapMessage) (consumer.receive((10 * 1000)))); TestCase.assertNotNull(reply); TestCase.assertTrue(reply.getMapNames().hasMoreElements()); TestCase.assertTrue(((reply.getJMSTimestamp()) > 0)); TestCase.assertEquals(DEFAULT_PRIORITY, reply.getJMSPriority()); /* for (Enumeration e = reply.getMapNames();e.hasMoreElements();) { String name = e.nextElement().toString(); System.err.println(name+"="+reply.getObject(name)); } */ } }
[ "benjamin.danglot@inria.fr" ]
benjamin.danglot@inria.fr
1f62415e5b5bf0af47120d8a941c3eac1ca0b4cf
3e909d759fa6fb4694447064a80dfb185a77d907
/XmnWeb/.svn/pristine/bd/bd8a48b043628e16266312ba511fcca9b3c7555e.svn-base
ae1bc2a444280f14261d718ea27c85009e5f4afb
[]
no_license
liveqmock/seeyouagain
9703616f59ae0b9cd2e641d135170c84c18a257c
fae0cb3471f07520878e51358cfa5ea88e1d659c
refs/heads/master
2020-04-04T14:47:00.192619
2017-11-14T12:47:31
2017-11-14T12:47:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
610
package com.xmniao.xmn.core.system_settings.dao; import java.util.List; import com.xmniao.xmn.core.base.BaseDao; import com.xmniao.xmn.core.system_settings.entity.TAuthority; import com.xmniao.xmn.core.util.proxy.annotation.DataSource; /** * * @项目名称:XmnWeb * * @类名称:AuthorityDao * * @类描述: 资源 * * @创建人:zhou'sheng * * @创建时间:2014年11月19日10时19分59秒 * * @Copyright:广东寻蜜鸟网络技术有限公司 */ public interface AuthorityDao extends BaseDao<TAuthority>{ @DataSource("slave") public List<TAuthority> getAuthority(); }
[ "641013587@qq.com" ]
641013587@qq.com
5a9013dbc92704f763060f96c0e450b3a5373bca
1f84dabca413a98a3751373da2a03c71feb2767b
/bus-core/src/main/java/org/aoju/bus/core/collection/LineIter.java
b4d84feff7a98076e2c4c16624ff4fd5f7153396
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
348840275/bus
22f1120e0d0ac4ab5f68d576a038bcc1a45e65f8
8a944e4619deb6ebc29bb8029635058ce5ec6319
refs/heads/master
2020-11-30T14:23:05.750889
2019-12-27T09:14:30
2019-12-27T09:14:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,901
java
package org.aoju.bus.core.collection; import org.aoju.bus.core.lang.Assert; import org.aoju.bus.core.lang.exception.InstrumentException; import org.aoju.bus.core.utils.IoUtils; import java.io.*; import java.nio.charset.Charset; import java.util.Iterator; import java.util.NoSuchElementException; /** * 将Reader包装为一个按照行读取的Iterator * 此对象遍历结束后,应关闭之,推荐使用方式: * * @author Kimi Liu * @version 5.3.9 * @since JDK 1.8+ */ public class LineIter implements Iterator<String>, Iterable<String>, Closeable, Serializable { private static final long serialVersionUID = 1L; /** * 缓冲区读取. */ private final BufferedReader bufferedReader; /** * 当前行. */ private String cachedLine; /** * 指示迭代器是否已被完全读取的标志. */ private boolean finished = false; /** * 构造 * * @param in {@link InputStream} * @param charset 编码 * @throws IllegalArgumentException reader为null抛出此异常 */ public LineIter(InputStream in, Charset charset) throws IllegalArgumentException { this(IoUtils.getReader(in, charset)); } /** * 构造 * * @param reader {@link Reader}对象,不能为null * @throws IllegalArgumentException reader为null抛出此异常 */ public LineIter(Reader reader) throws IllegalArgumentException { Assert.notNull(reader, "Reader must not be null"); this.bufferedReader = IoUtils.getReader(reader); } /** * 判断{@link Reader}是否可以存在下一行. * * @return {@code true} 表示有更多行 * @throws InstrumentException 内部异常 */ @Override public boolean hasNext() throws InstrumentException { if (cachedLine != null) { return true; } else if (finished) { return false; } else { try { while (true) { String line = bufferedReader.readLine(); if (line == null) { finished = true; return false; } else if (isValidLine(line)) { cachedLine = line; return true; } } } catch (IOException ioe) { close(); throw new InstrumentException(ioe); } } } /** * 返回下一行内容 * * @return 下一行内容 * @throws NoSuchElementException 没有新行 */ @Override public String next() throws NoSuchElementException { return nextLine(); } /** * 返回下一行 * * @return 下一行 * @throws NoSuchElementException 没有更多行 */ public String nextLine() throws NoSuchElementException { if (false == hasNext()) { throw new NoSuchElementException("No more lines"); } String currentLine = this.cachedLine; this.cachedLine = null; return currentLine; } /** * 关闭Reader */ @Override public void close() { finished = true; IoUtils.close(bufferedReader); cachedLine = null; } /** * 不支持移除 * * @throws UnsupportedOperationException 始终抛出此异常 */ @Override public void remove() { throw new UnsupportedOperationException("Remove unsupported on LineIterator"); } /** * 重写此方法来判断是否每一行都被返回,默认全部为true * * @param line 需要验证的行 * @return 是否通过验证 */ protected boolean isValidLine(String line) { return true; } @Override public Iterator<String> iterator() { return this; } }
[ "839536@qq.com" ]
839536@qq.com
553b4b61f6ffc21fbed81987f7d1af0754081bd5
225011bbc304c541f0170ef5b7ba09b967885e95
/com/facebook/ads/internal/p063f/C1980c.java
f1a1e9e7a5f48094ce1d55f9af4a7e856380c532
[]
no_license
sebaudracco/bubble
66536da5367f945ca3318fecc4a5f2e68c1df7ee
e282cda009dfc9422594b05c63e15f443ef093dc
refs/heads/master
2023-08-25T09:32:04.599322
2018-08-14T15:27:23
2018-08-14T15:27:23
140,444,001
1
1
null
null
null
null
UTF-8
Java
false
false
1,707
java
package com.facebook.ads.internal.p063f; import android.content.Context; import android.os.Process; import android.support.annotation.Nullable; import com.facebook.ads.BuildConfig; import com.facebook.ads.internal.p056q.p057a.C2122m; import com.facebook.ads.internal.p056q.p057a.C2124p; import java.lang.Thread.UncaughtExceptionHandler; import java.util.Map; public class C1980c implements UncaughtExceptionHandler { private final UncaughtExceptionHandler f4623a; private final Context f4624b; private final Map<String, String> f4625c; public C1980c(@Nullable UncaughtExceptionHandler uncaughtExceptionHandler, Context context, Map<String, String> map) { this.f4623a = uncaughtExceptionHandler; if (context == null) { throw new IllegalArgumentException("Missing Context"); } this.f4624b = context.getApplicationContext(); this.f4625c = map; } private void m6244a(Thread thread, Throwable th) { if (this.f4623a != null) { this.f4623a.uncaughtException(thread, th); return; } try { Process.killProcess(Process.myPid()); } catch (Throwable th2) { } try { System.exit(10); } catch (Throwable th3) { } } public void uncaughtException(Thread thread, Throwable th) { try { String a = C2124p.m6810a(th); if (a != null && a.contains(BuildConfig.APPLICATION_ID)) { C1981e.m6249a(new C1977d(C2122m.m6805b(), C2122m.m6806c(), new C1979b(a, this.f4625c).m6243a()), this.f4624b); } } catch (Exception e) { } m6244a(thread, th); } }
[ "sebaudracco@gmail.com" ]
sebaudracco@gmail.com
12924eb0a31ab0f49e75f80168434299456f02de
5d5530e2d361fbf230d434e29e6140c7aa8e219e
/examples/rest-main/src/main/java/be/atbash/ee/security/rest/AuthenticationData.java
84d51ed1446a76338826d9dcb14a827cf66e5922
[ "Apache-2.0" ]
permissive
atbashEE/atbash-octopus
1b2efa004d4b009ede5230be76a414192a1d440a
122cd96f414fbb10a3dc850083b7f48907e6addc
refs/heads/master
2023-01-30T00:41:42.840435
2020-10-08T19:11:55
2020-10-08T19:11:55
113,004,137
4
0
Apache-2.0
2023-01-13T01:54:34
2017-12-04T06:30:28
Java
UTF-8
Java
false
false
1,957
java
/* * Copyright 2014-2019 Rudy De Busscher (https://www.atbash.be) * * 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 be.atbash.ee.security.rest; import be.atbash.ee.security.octopus.authc.AuthenticationInfo; import be.atbash.ee.security.octopus.authc.AuthenticationInfoProvider; import be.atbash.ee.security.octopus.realm.AuthenticationInfoBuilder; import be.atbash.ee.security.octopus.token.AuthenticationToken; import be.atbash.ee.security.octopus.token.UsernamePasswordToken; import javax.enterprise.context.ApplicationScoped; @ApplicationScoped public class AuthenticationData extends AuthenticationInfoProvider { private int principalId = 0; @Override public AuthenticationInfo getAuthenticationInfo(AuthenticationToken token) { if (token instanceof UsernamePasswordToken) { UsernamePasswordToken usernamePasswordToken = (UsernamePasswordToken) token; AuthenticationInfoBuilder authenticationInfoBuilder = new AuthenticationInfoBuilder(); authenticationInfoBuilder.principalId(principalId++).name(token.getPrincipal().toString()); authenticationInfoBuilder.userName(token.getPrincipal().toString()); // TODO: Change for production. Here we use username as password authenticationInfoBuilder.password(usernamePasswordToken.getUsername()); return authenticationInfoBuilder.build(); } return null; } }
[ "rdebusscher@gmail.com" ]
rdebusscher@gmail.com
92bf219951682e0fc38ee338453ea1d299e29497
399b2072a17c5302a3461179c19f7eaf05147717
/RTD_RTS2/src/eu/gloria/rts2/rtd/MrakCloudDetectorSensorRTD.java
aaf199779e643beecf0bce8bf1c9f03c80903a1e
[]
no_license
mclopez-uma/GLORIA_RTSInteractiveRTS2
544006bb99d1f12dd643a9950efc31371de076e1
b526c6a2970714799c2cddcc70921d3dafdc8d79
refs/heads/master
2021-01-25T03:54:52.348241
2014-05-20T11:35:01
2014-05-20T11:35:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,011
java
package eu.gloria.rts2.rtd; import java.util.ArrayList; import java.util.List; import eu.gloria.rt.entity.device.ActivityState; import eu.gloria.rt.entity.device.AlarmState; import eu.gloria.rt.entity.device.BlockState; import eu.gloria.rt.entity.device.Device; import eu.gloria.rt.entity.device.DeviceGeneral; import eu.gloria.rt.entity.device.DeviceProperty; import eu.gloria.rt.entity.device.DeviceType; import eu.gloria.rt.entity.device.MeasureUnit; import eu.gloria.rt.entity.device.SensorStateIntervalDouble; import eu.gloria.rt.exception.RTException; import eu.gloria.rt.exception.UnsupportedOpException; import eu.gloria.rtd.RTDCloudDetectorInterface; import eu.gloria.rts2.http.Rts2Date; import eu.gloria.rts2.http.Rts2GatewayDeviceManager; import eu.gloria.rts2.http.Rts2MessageType; import eu.gloria.rts2.http.Rts2Messages; /** * RTS2 mrak Cloud Detector Sensor * * @author mclopez * */ public class MrakCloudDetectorSensorRTD extends DeviceRTD implements RTDCloudDetectorInterface { private AlarmState previousAlarm = null; @Override public MeasureUnit cldGetMeasureUnit() throws RTException { return MeasureUnit.DEGREE; } /** * {@inheritDoc} * <p> * This sensor measures the temperature difference between in and outside. */ @Override public double cldGetMeasure() throws RTException { DeviceProperty property = this.devGetDeviceProperty("TEMP_DIFF"); return Double.valueOf(property.getValue().get(1)); } /** * {@inheritDoc} * <p> * Value of +/- 10000 represents +/- infinite */ @Override public void cldSetMeasureStates(List<SensorStateIntervalDouble> states) throws RTException { //NO SE HA PROBADO!!! String value = null; String property = null; if (states.size() != 2) throw new RTException ("Number of interval is not correct"); int k, j, i; i=0;j=1; for (k=0 ; k<states.size() ; k++){ if (states.get(i).isAlarm()){ if (states.get(j).isAlarm()) throw new RTException ("Interval specification is not correct"); if (Math.abs(states.get(i).getBeginValue()) != 10000){ if (Math.abs(states.get(i).getEndValue()) != 10000) throw new RTException ("Interval specification is not correct"); value = String.valueOf(states.get(i).getBeginValue()); }else{ if (Math.abs(states.get(i).getEndValue()) == 10000) throw new RTException ("Interval specification is not correct"); value = String.valueOf(states.get(i).getEndValue()); } property = "TRIGBAD"; }else{ if (!states.get(j).isAlarm()) throw new RTException ("Interval specification is not correct"); if (Math.abs(states.get(i).getBeginValue()) != 10000){ if (Math.abs(states.get(i).getEndValue()) != 10000) throw new RTException ("Interval specification is not correct"); value = String.valueOf(states.get(i).getBeginValue()); }else{ if (Math.abs(states.get(i).getEndValue()) == 10000) throw new RTException ("Interval specification is not correct"); value = String.valueOf(states.get(i).getEndValue()); } property = "TRIGGOOD"; } i=1;j=0; } List<String> valueProp = new ArrayList<String>(); valueProp.add(value); long time = Rts2Date.now(); this.devUpdateDeviceProperty(property, valueProp); //Message recovering String message = Rts2Messages.getMessageText (Rts2MessageType.error, getDeviceId(), time); if (message != null) throw new RTException(message); } /** * {@inheritDoc} * <p> * Value of +/- 10000 represents +/- infinite */ @Override public List<SensorStateIntervalDouble> cldGetMeasureStates() throws RTException { List<SensorStateIntervalDouble> intervals = new ArrayList<SensorStateIntervalDouble>(); SensorStateIntervalDouble interval = new SensorStateIntervalDouble(); interval = new SensorStateIntervalDouble(); interval.setBeginValue(10000); //Infinite interval.setBeginClosed(false); interval.setAlarm(false); DeviceProperty property = this.devGetDeviceProperty("TRIGGOOD"); interval.setEndValue(Double.valueOf(property.getValue().get(0))); interval.setEndClosed(false); intervals.add(interval); interval.setBeginValue(-10000); //Infinite interval.setBeginClosed(false); interval.setAlarm(true); property = this.devGetDeviceProperty("TRIGBAD"); interval.setEndValue(Double.valueOf(property.getValue().get(0))); interval.setEndClosed(false); intervals.add(interval); return intervals; } public Device devGetDevice(boolean allProperties) throws RTException{ DeviceGeneral dev = null; if (!allProperties){ List<String> propertyNames = new ArrayList<String> (); propertyNames.add("TRIGBAD"); propertyNames.add("TRIGGOOD"); propertyNames.add("TEMP_DIFF"); dev = (DeviceGeneral) super.getDevice(propertyNames); }else{ dev = (DeviceGeneral) super.devGetDevice(allProperties); } if (dev.getActivityState() != ActivityState.ERROR){ AlarmState alarm = getAlarmState(dev.getProperties()); if (alarm != null){ dev.setAlarmState(getAlarmState(dev.getProperties())); previousAlarm = alarm; }else{ if (previousAlarm == null) //First time value within margins dev.setAlarmState(AlarmState.NONE); else dev.setAlarmState(previousAlarm); } } return dev; } @Override public Device getDevice(List<String> propertyNames) throws RTException { Device dev = devGetDevice(false); //if (dev.getAlarmState() == AlarmState.NONE){ AlarmState alarm = getAlarmState(dev.getProperties()); if (alarm != null){ dev.setAlarmState(getAlarmState(dev.getProperties())); previousAlarm = alarm; }else{ if (previousAlarm == null) //First time value within margins dev.setAlarmState(AlarmState.NONE); else dev.setAlarmState(previousAlarm); } //} return dev; } private AlarmState getAlarmState(List<DeviceProperty> properties) throws RTException{ Double trigBad=null, trigGood=null, measure=null; for (DeviceProperty prop: properties){ if (prop.getName().equals("TRIGBAD")){ if (!prop.getValue().isEmpty()){ trigBad=Double.parseDouble(prop.getValue().get(0)); }else{ return null; } } if (prop.getName().equals("TRIGGOOD")){ if (!prop.getValue().isEmpty()){ trigGood=Double.parseDouble(prop.getValue().get(0)); }else{ return null; } } if (prop.getName().equals("TEMP_DIFF")){ if (!prop.getValue().isEmpty()){ measure=Double.parseDouble(prop.getValue().get(1)); }else{ return null; } } } if (measure < trigBad){ return AlarmState.WEATHER; }else if (measure > trigGood){ return AlarmState.NONE; } return null; } }
[ "mclopezc@uma.es" ]
mclopezc@uma.es
12f4d89c41027aa4982ba1d275e5def4bacbfda7
5a7ae4406b641d3ead886c76531de643d6e5d9f9
/src/main/java/co/afpa/gestion/ressources/config/LoggingAspectConfiguration.java
44ca0f392b9ab2f2c30da49da427e01620f43ae9
[]
no_license
lanaflonPerso/gestion-ressources-application
4e9d3a42c4ad97a9a614f40a85b445d128813412
65e255bda6d29164d2da4cbbba37e83d70756c2f
refs/heads/master
2022-05-18T12:46:16.949751
2020-03-08T17:15:10
2020-03-08T17:15:10
245,855,594
0
0
null
2022-03-08T21:19:08
2020-03-08T17:14:53
Java
UTF-8
Java
false
false
514
java
package co.afpa.gestion.ressources.config; import co.afpa.gestion.ressources.aop.logging.LoggingAspect; import io.github.jhipster.config.JHipsterConstants; import org.springframework.context.annotation.*; import org.springframework.core.env.Environment; @Configuration @EnableAspectJAutoProxy public class LoggingAspectConfiguration { @Bean @Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT) public LoggingAspect loggingAspect(Environment env) { return new LoggingAspect(env); } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
b206961d683736302b6cacd91b7c193291e138fb
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/17/17_ffe54f4a5c4801a34e9a75ce06b26022d78438a5/IndexedListData/17_ffe54f4a5c4801a34e9a75ce06b26022d78438a5_IndexedListData_s.java
9501d53ba93a3ac82a84d249e1509d3642daa646
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
4,641
java
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License"). You * may not use this file except in compliance with the License. You can * obtain a copy of the License at * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html * or packager/legal/LICENSE.txt. See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at packager/legal/LICENSE.txt. * * GPL Classpath Exception: * 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. * * Modifications: * If applicable, add the following below the License Header, with the fields * enclosed by brackets [] replaced by your own identifying information: * "Portions Copyright [year] [name of copyright owner]" * * Contributor(s): * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license." If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above. However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. */ package org.jvnet.hk2.internal; import java.util.Collection; import java.util.LinkedList; import java.util.TreeSet; /** * This object contains a list of values. The list is not always sorted, but will * always be returned sorted. * * All of the methods on here must be called with lock held. * * @author jwells * */ public class IndexedListData { private LinkedList<SystemDescriptor<?>> unsortedList = new LinkedList<SystemDescriptor<?>>(); private TreeSet<SystemDescriptor<?>> sortedList = null; public Collection<SystemDescriptor<?>> getSortedList() { if (sortedList != null) return sortedList; sortedList = new TreeSet<SystemDescriptor<?>>(ServiceLocatorImpl.DESCRIPTOR_COMPARATOR); sortedList.addAll(unsortedList); unsortedList.clear(); unsortedList = null; return sortedList; } public void addDescriptor(SystemDescriptor<?> descriptor) { if (sortedList != null) { sortedList.add(descriptor); } else { unsortedList.add(descriptor); } descriptor.addList(this); } public void removeDescriptor(SystemDescriptor<?> descriptor) { if (sortedList != null) { sortedList.remove(descriptor); } else { unsortedList.remove(descriptor); } descriptor.removeList(this); } public boolean isEmpty() { if (sortedList != null) { return sortedList.isEmpty(); } return unsortedList.isEmpty(); } /** * Called by a SystemDescriptor when its ranking has changed */ public void unSort() { if (sortedList != null) { unsortedList = new LinkedList<SystemDescriptor<?>>(sortedList); sortedList.clear(); sortedList = null; } } public void clear() { Collection<SystemDescriptor<?>> removeMe; if (sortedList != null) { removeMe = sortedList; } else { removeMe = unsortedList; } for (SystemDescriptor<?> descriptor : removeMe) { descriptor.removeList(this); } if (sortedList != null) { sortedList.clear(); sortedList = null; unsortedList = new LinkedList<SystemDescriptor<?>>(); } else { unsortedList.clear(); } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
adf159c63ae76d4cbe545d263779cccd255df1f7
a13ab684732add3bf5c8b1040b558d1340e065af
/java7-src/com/sun/org/apache/xml/internal/serializer/utils/SerializerMessages_fr.java
96e4619eb46f3b332aec8e99cba7125ffa30cd56
[]
no_license
Alivop/java-source-code
554e199a79876343a9922e13ccccae234e9ac722
f91d660c0d1a1b486d003bb446dc7c792aafd830
refs/heads/master
2020-03-30T07:21:13.937364
2018-10-25T01:49:39
2018-10-25T01:51:38
150,934,150
5
2
null
null
null
null
UTF-8
Java
false
false
4,808
java
/* * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * Copyright 1999-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * $Id: SerializerMessages_fr.java,v 1.1.4.1 2005/09/08 11:03:13 suresh_emailid Exp $ */ package com.sun.org.apache.xml.internal.serializer.utils; import java.util.ListResourceBundle; public class SerializerMessages_fr extends ListResourceBundle { public Object[][] getContents() { Object[][] contents = new Object[][] { // BAD_MSGKEY needs translation // BAD_MSGFORMAT needs translation { MsgKey.ER_SERIALIZER_NOT_CONTENTHANDLER, "La classe de la m\u00e9thode de s\u00e9rialisation ''{0}'' n''impl\u00e9mente pas org.xml.sax.ContentHandler."}, { MsgKey.ER_RESOURCE_COULD_NOT_FIND, "La ressource [ {0} ] est introuvable.\n {1}"}, { MsgKey.ER_RESOURCE_COULD_NOT_LOAD, "La ressource [ {0} ] n''a pas pu charger : {1} \n {2} \n {3}"}, { MsgKey.ER_BUFFER_SIZE_LESSTHAN_ZERO, "Taille du tampon <=0"}, { MsgKey.ER_INVALID_UTF16_SURROGATE, "Substitut UTF-16 non valide d\u00e9tect\u00e9 : {0} ?"}, { MsgKey.ER_OIERROR, "Erreur d''E-S"}, { MsgKey.ER_ILLEGAL_ATTRIBUTE_POSITION, "Ajout impossible de l''attribut {0} apr\u00e8s des noeuds enfants ou avant la production d''un \u00e9l\u00e9ment. L''attribut est ignor\u00e9."}, { MsgKey.ER_NAMESPACE_PREFIX, "L''espace de noms du pr\u00e9fixe ''{0}'' n''a pas \u00e9t\u00e9 d\u00e9clar\u00e9."}, // ER_STRAY_ATTRIBUTE needs translation { MsgKey.ER_STRAY_NAMESPACE, "La d\u00e9claration d''espace de noms ''{0}''=''{1}'' est \u00e0 l''ext\u00e9rieur de l''\u00e9l\u00e9ment."}, { MsgKey.ER_COULD_NOT_LOAD_RESOURCE, "Impossible de charger ''{0}'' (v\u00e9rifier CLASSPATH), les valeurs par d\u00e9faut sont donc employ\u00e9es "}, // ER_ILLEGAL_CHARACTER needs translation { MsgKey.ER_COULD_NOT_LOAD_METHOD_PROPERTY, "Impossible de charger le fichier de propri\u00e9t\u00e9s ''{0}'' pour la m\u00e9thode de sortie ''{1}'' (v\u00e9rifier CLASSPATH)"}, { MsgKey.ER_INVALID_PORT, "Num\u00e9ro de port non valide"}, { MsgKey.ER_PORT_WHEN_HOST_NULL, "Le port ne peut \u00eatre d\u00e9fini quand l'h\u00f4te est vide"}, { MsgKey.ER_HOST_ADDRESS_NOT_WELLFORMED, "L'h\u00f4te n'est pas une adresse bien form\u00e9e"}, { MsgKey.ER_SCHEME_NOT_CONFORMANT, "Le processus n'est pas conforme."}, { MsgKey.ER_SCHEME_FROM_NULL_STRING, "Impossible de d\u00e9finir le processus \u00e0 partir de la cha\u00eene vide"}, { MsgKey.ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE, "Le chemin d'acc\u00e8s contient une s\u00e9quence d'\u00e9chappement non valide"}, { MsgKey.ER_PATH_INVALID_CHAR, "Le chemin contient un caract\u00e8re non valide : {0}"}, { MsgKey.ER_FRAG_INVALID_CHAR, "Le fragment contient un caract\u00e8re non valide"}, { MsgKey.ER_FRAG_WHEN_PATH_NULL, "Le fragment ne peut \u00eatre d\u00e9fini quand le chemin d'acc\u00e8s est vide"}, { MsgKey.ER_FRAG_FOR_GENERIC_URI, "Le fragment ne peut \u00eatre d\u00e9fini que pour un URI g\u00e9n\u00e9rique"}, { MsgKey.ER_NO_SCHEME_IN_URI, "Processus introuvable dans l''URI : {0}"}, { MsgKey.ER_CANNOT_INIT_URI_EMPTY_PARMS, "Impossible d'initialiser l'URI avec des param\u00e8tres vides"}, { MsgKey.ER_NO_FRAGMENT_STRING_IN_PATH, "Le fragment ne doit pas \u00eatre indiqu\u00e9 \u00e0 la fois dans le chemin et dans le fragment"}, { MsgKey.ER_NO_QUERY_STRING_IN_PATH, "La cha\u00eene de requ\u00eate ne doit pas figurer dans un chemin et une cha\u00eene de requ\u00eate"}, { MsgKey.ER_NO_PORT_IF_NO_HOST, "Le port peut ne pas \u00eatre sp\u00e9cifi\u00e9 si l'h\u00f4te n'est pas sp\u00e9cifi\u00e9"}, { MsgKey.ER_NO_USERINFO_IF_NO_HOST, "Userinfo ne peut \u00eatre sp\u00e9cifi\u00e9 si l'h\u00f4te ne l'est pas"}, { MsgKey.ER_SCHEME_REQUIRED, "Processus requis !"} }; return contents; } }
[ "liulp@zjhjb.com" ]
liulp@zjhjb.com
f5ba9351d1217ccac931c610bc56277574b2a65b
f7fadc413cad92f03721742b9c5d94281c12ba02
/Java/others/Hotel/options.java
2e33c9926d16a3642675d4829d822a6079cdf766
[]
no_license
amitmca/EducationalMaterial
f7acc7f701b42fb5f2821e56bab4ce253532c3f7
088a1fe34a0bdd4b46ea5cc7f930d8d1a3f510d0
refs/heads/master
2021-06-06T18:20:39.774159
2019-11-30T15:52:07
2019-11-30T15:52:07
134,157,178
0
0
null
null
null
null
UTF-8
Java
false
false
1,115
java
import javax.swing.*; import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class options extends JFrame implements ActionListener { JLabel l3; JButton add,del,check; Container cc; JFrame ch; options(String title) { super(title); setSize(500,500); setVisible(true); cc = getContentPane(); cc.setLayout(null ); setLayout(null); l3=new JLabel("Select the operation to do"); add(l3); l3.setBounds(60,0,150,50); add=new JButton("ADD"); add(add); add.setBounds(100,80,60,20); add.addActionListener(this); del=new JButton("DELETE"); add(del); del.setBounds(100,120,80,20); del.addActionListener(this); setDefaultCloseOperation(EXIT_ON_CLOSE); } public void actionPerformed(ActionEvent e) { String arg=e.getActionCommand(); if(arg.equals("ADD")) { FormAdd f=new FormAdd("Customer Details"); f.setVisible(true); this.setVisible(false); } } }
[ "amitbaramatimca@gmail.com" ]
amitbaramatimca@gmail.com
489ca537c101db3c5d8b7f6833c73e604b415cbb
ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3
/java/baiduads-sdk-auto/src/test/java/com/baidu/dev2/api/sdk/dpaapiproductset/model/ProductFieldTypeTest.java
5014f4672a0d2a722c4198c85765c1c5c13d3551
[ "Apache-2.0" ]
permissive
baidu/baiduads-sdk
24c36b5cf3da9362ec5c8ecd417ff280421198ff
176363de5e8a4e98aaca039e4300703c3964c1c7
refs/heads/main
2023-06-08T15:40:24.787863
2023-05-20T03:40:51
2023-05-20T03:40:51
446,718,177
16
11
Apache-2.0
2023-06-02T05:19:40
2022-01-11T07:23:17
Python
UTF-8
Java
false
false
1,652
java
/* * dev2 api schema * 'dev2.baidu.com' api schema * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package com.baidu.dev2.api.sdk.dpaapiproductset.model; import com.baidu.dev2.api.sdk.dpaapiproductset.model.Condition; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; /** * Model tests for ProductFieldType */ public class ProductFieldTypeTest { private final ProductFieldType model = new ProductFieldType(); /** * Model tests for ProductFieldType */ @Test public void testProductFieldType() { // TODO: test ProductFieldType } /** * Test the property 'value' */ @Test public void valueTest() { // TODO: test value } /** * Test the property 'label' */ @Test public void labelTest() { // TODO: test label } /** * Test the property 'fieldType' */ @Test public void fieldTypeTest() { // TODO: test fieldType } /** * Test the property 'conditions' */ @Test public void conditionsTest() { // TODO: test conditions } }
[ "jiangyuan04@baidu.com" ]
jiangyuan04@baidu.com
69229ae66d307637e0e8a7fc57a93ac1184148d9
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
/project_1_2/src/b/b/a/c/Calc_1_2_11021.java
796e06c9cdd4678a4d6002b119370480418d9f38
[]
no_license
chalstrick/bigRepo1
ac7fd5785d475b3c38f1328e370ba9a85a751cff
dad1852eef66fcec200df10083959c674fdcc55d
refs/heads/master
2016-08-11T17:59:16.079541
2015-12-18T14:26:49
2015-12-18T14:26:49
48,244,030
0
0
null
null
null
null
UTF-8
Java
false
false
134
java
package b.b.a.c; public class Calc_1_2_11021 { /** @return the sum of a and b */ public int add(int a, int b) { return a+b; } }
[ "christian.halstrick@sap.com" ]
christian.halstrick@sap.com
aab93320e7b0dcd635d1122dc1172c1d350bad38
e9003edd0151ecf66ef4c2aa32459d7d61846487
/LeetCode For Internship/src/bd/StrOrgEnd.java
c91495e9b07ab55c0088df9e5d4b63e97addb88e
[]
no_license
iznauy/LeetCode
42ad1a2396c35f0313437a21b1b5d291065812e8
1e25b0b79fd5b2ead717724d7154a87cd61780dd
refs/heads/master
2021-01-20T14:54:22.155705
2019-04-26T16:01:30
2019-04-26T16:01:30
90,687,467
1
1
null
null
null
null
UTF-8
Java
false
false
245
java
package bd; /** * Created on 02/04/2019. * Description: * * @author iznauy */ public class StrOrgEnd { public static boolean canLink(String[] arr) { return false; } public static void main(String[] args) { } }
[ "zy05160516@126.com" ]
zy05160516@126.com
ecfcbec0c53188df7cd7034112eaa549f6d37c3f
7ba4917dc5ce48c9f8bb238509b3d8cc7f9c2679
/homework/src/day2/Test1.java
1b99fdf6a21648ff5ed4384f5efbce95b84ee62b
[]
no_license
yexiu728/java
7714ae1d439b7a049ef5a920921bfc63b67aac7f
0bcd56b9ca18d3b18c0d47b1554d0b04f58c7156
refs/heads/master
2020-12-11T08:40:53.091288
2020-01-19T08:13:35
2020-01-19T08:13:35
233,803,584
0
0
null
null
null
null
UTF-8
Java
false
false
307
java
package day2; public class Test1 { public static void main(String[] args) { int length = 10; int wide = 20; int area = length * wide; int girth = length * 2 + wide * 2; System.out.println("长方形的面积为:" + area + ",周长为:" + girth); } }
[ "728550528@qq.com" ]
728550528@qq.com
32060f11e3e3913b11d7529c8f66105f79045dba
ebc9b8449387fe43bf89a3687c36d68142472a7c
/common/src/main/java/com/example/common/entity/SeminarShareVO.java
4ea907ce307f1f4209a141664ee634a8de80be5d
[]
no_license
wenqiangperth/classmanage
e1188290ff0dccb55b9d7157a2bbb8be26cf3930
486d006c8cb37e7ddce08a907d0578cd38d6259a
refs/heads/master
2022-07-12T23:35:13.522332
2020-09-13T03:31:19
2020-09-13T03:31:19
161,910,202
2
0
null
2022-06-29T17:07:49
2018-12-15T13:59:29
Java
UTF-8
Java
false
false
922
java
package com.example.common.entity; import lombok.Data; /** * @ClassName SeminarShareVO * @Description * @Author perth * @Date 2018/12/19 0019 下午 9:27 * @Version 1.0 **/ @Data public class SeminarShareVO { private Long id; private Long mainCourseId; private Long mainCourseTeacherId; private String mainCourseName; private String mainCourseTeacherName; private Long subCourseId; private Long subCourseTeacherId; private String subCourseName; private String subCourseTeacherName; private Integer status; private Integer mainCourse; public void setStatus(int tempStatus) { this.status=tempStatus; } public int getStatus() { return this.status; } public void setMainCourse(int tempMainCourse) { this.mainCourse=tempMainCourse; } public int getMainCourse() { return this.mainCourse; } }
[ "=" ]
=
69c0f33655b9f0a9f8d6777e72873ee5144109d7
9c21c3c2a11b787d80c2754ede7960af29d37731
/server/src/org/apollo/game/model/EquipmentConstants.java
813fd7b975bb033eaa9bfb8ef17be42d7dd2dec9
[ "ISC" ]
permissive
rafaelstronger/aj8
fca643c3ee15526bd685369fd17598bd4fdfaaaf
ed559054d495e0e720d4f4dd65d6d21236d684e1
refs/heads/master
2021-01-14T13:42:50.796105
2014-03-03T04:09:04
2014-03-03T04:09:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
986
java
package org.apollo.game.model; /** * Contains equipment-related constants. * @author Graham */ public final class EquipmentConstants { /** * The hat slot. */ public static final int HAT = 0; /** * The cape slot. */ public static final int CAPE = 1; /** * The amulet slot. */ public static final int AMULET = 2; /** * The weapon slot. */ public static final int WEAPON = 3; /** * The chest slot. */ public static final int CHEST = 4; /** * The shield slot. */ public static final int SHIELD = 5; /** * The legs slot. */ public static final int LEGS = 7; /** * The hands slot. */ public static final int HANDS = 9; /** * The feet slot. */ public static final int FEET = 10; /** * The ring slot. */ public static final int RING = 12; /** * The arrows slot. */ public static final int ARROWS = 13; /** * Default private constructor to prevent instantiation; */ private EquipmentConstants() { } }
[ "ryley.kimmel@live.com" ]
ryley.kimmel@live.com
8a3ec1d3c6f8080aea08297394f77eb6b8108d74
bf815baa755798e34c6451c0140c0d7f8ec767a1
/WEB-INF/SendEmail.java
bc151688bca3cb89e8cfdbb2208b68fdab804fcc
[]
no_license
liyunpeng/javaweb
83b6d34e9c1e03f07fab6d2569729361decf700e
ea1f618a2a16ce5cadb5a274ee6829d95294772f
refs/heads/master
2021-05-16T21:49:14.726481
2020-03-27T09:58:21
2020-03-27T09:58:21
250,483,506
0
0
null
null
null
null
GB18030
Java
false
false
2,585
java
//package com.runoob.test; // //// 文件名 SendEmail.java //import java.io.*; //import java.util.*; //import javax.servlet.*; //import javax.servlet.http.*; //import javax.mail.*; //import javax.mail.internet.*; //import javax.activation.*; // //public class SendEmail extends HttpServlet{ // // public void doGet(HttpServletRequest request, // HttpServletResponse response) // throws ServletException, IOException // { // // 收件人的电子邮件 ID // String to = "ligang@longcheer.com"; // // // 发件人的电子邮件 ID // String from = "kylin27@126.com"; // // // 假设您是从本地主机发送电子邮件 // String host = "localhost"; // // // 获取系统的属性 // Properties properties = System.getProperties(); // // // 设置邮件服务器 // properties.setProperty("mail.smtp.host", host); // // // 获取默认的 Session 对象 // Session session = Session.getDefaultInstance(properties); // // // 设置响应内容类型 // response.setContentType("text/html;charset=UTF-8"); // PrintWriter out = response.getWriter(); // // try{ // // 创建一个默认的 MimeMessage 对象 // MimeMessage message = new MimeMessage(session); // // 设置 From: header field of the header. // message.setFrom(new InternetAddress(from)); // // 设置 To: header field of the header. // message.addRecipient(Message.RecipientType.TO, // new InternetAddress(to)); // // 设置 Subject: header field // message.setSubject("This is the Subject Line!"); // // 现在设置实际消息 // message.setText("This is actual message"); // // 发送消息 // Transport.send(message); // String title = "发送电子邮件"; // String res = "成功发送消息..."; // String docType = "<!DOCTYPE html> \n"; // out.println(docType + // "<html>\n" + // "<head><title>" + title + "</title></head>\n" + // "<body bgcolor=\"#f0f0f0\">\n" + // "<h1 align=\"center\">" + title + "</h1>\n" + // "<p align=\"center\">" + res + "</p>\n" + // "</body></html>"); // }catch (MessagingException mex) { // mex.printStackTrace(); // } // } //}
[ "you@example.com" ]
you@example.com
a020c4246653c1a4c67e25eec6e053e192f4ee25
56319e53f4155b0f0ae4ab249b1d3249fc8ddd98
/apache-tomcat-8.0.39/converted/org/apache/catalina/webresources/MainForTestJarResourceSetMount_testMkdirDirA.java
4eeab762267087343d6dd631c7ded97702f56ea4
[]
no_license
SnowOnion/J2mConvertedTestcases
2f904e2f2754f859f6125f248d3672eb1a70abd1
e74b0e4c08f12e5effeeb8581670156ace42640a
refs/heads/master
2021-01-11T19:01:42.207334
2017-01-19T12:22:22
2017-01-19T12:22:22
79,295,183
1
0
null
null
null
null
UTF-8
Java
false
false
562
java
package org.apache.catalina.webresources; import org.apache.catalina.webresources.TestJarResourceSetMount; public class MainForTestJarResourceSetMount_testMkdirDirA { public static void main(String[] args) { try { TestJarResourceSetMount objTestJarResourceSetMount = new TestJarResourceSetMount(); objTestJarResourceSetMount.setup(); objTestJarResourceSetMount.testMkdirDirA(); objTestJarResourceSetMount.teardown(); } catch (Throwable e) { e.printStackTrace(); } } }
[ "snowonionlee@gmail.com" ]
snowonionlee@gmail.com
89666e547ed3f9a90ea7740c865c40c7e5d97546
7eb6525f18d157fab7cc27962a879dec4858f211
/src/main/java/au/org/emii/portal/event/VisibilityToggleEventListener.java
fafbfc1f60e107e3396c7e5c6eaa87e52240697c
[]
no_license
linaizhong/spatial-portal
6a4e1e5b96d5fbfcbbb07fa4a77cfe0942b4cd12
1c3fc6e5f334ec7cc9467ed92dbaaee43381484f
refs/heads/master
2020-04-07T21:44:02.268176
2014-07-16T23:56:26
2014-07-16T23:56:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,952
java
package au.org.emii.portal.event; import au.org.emii.portal.composer.MapComposer; import au.org.emii.portal.javascript.OpenLayersJavascript; import au.org.emii.portal.menu.MapLayer; import au.org.emii.portal.session.PortalSession; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Required; import org.zkoss.zk.ui.Executions; import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zul.Checkbox; import org.zkoss.zul.Listitem; /** * Listener attached to the checkboxes for layers listed in active layers * * @author geoff */ public class VisibilityToggleEventListener implements EventListener { private static Logger logger = Logger.getLogger(VisibilityToggleEventListener.class); private OpenLayersJavascript openLayersJavascript = null; @Override public void onEvent(Event event) throws Exception { logger.debug("VisibilityToggleEventListener.onEvent() fired "); Checkbox checkbox = (Checkbox) event.getTarget(); MapComposer mapComposer = (MapComposer) event.getPage().getFellow("mapPortalPage"); if (mapComposer.safeToPerformMapAction()) { Listitem listitem = (Listitem) checkbox.getParent().getParent(); MapLayer layer = listitem.getValue(); boolean checked = checkbox.isChecked(); /* checkbox state will be saved automatically in MapLayer instances * with calls to activate/remove in OpenLayersJavascript */ if (checked) { PortalSession portalSession = (PortalSession) Executions.getCurrent() .getDesktop() .getSession() .getAttribute("portalSession"); openLayersJavascript.execute( OpenLayersJavascript.iFrameReferences + openLayersJavascript.activateMapLayer(layer, false, true) + openLayersJavascript.updateMapLayerIndexes( portalSession.getActiveLayers() ) ); checkbox.setTooltiptext("Hide"); mapComposer.refreshContextualMenu(); } else { openLayersJavascript.removeMapLayerNow(layer); checkbox.setTooltiptext("Show"); mapComposer.refreshContextualMenu(); } } else { /* there was a problem performing the action - 'undo' * the user's click on the checkbox */ checkbox.setChecked(!checkbox.isChecked()); } } public OpenLayersJavascript getOpenLayersJavascript() { return openLayersJavascript; } @Required public void setOpenLayersJavascript(OpenLayersJavascript openLayersJavascript) { this.openLayersJavascript = openLayersJavascript; } }
[ "adam.collins832@gmail.com" ]
adam.collins832@gmail.com
97524f1fee49bcefd7617420d79d43214a129e8e
95d20c83d8aff34e314c56a3ecb2b87c9fa9fc86
/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/overview/AbstractColorOverviewAction.java
73b733011e7cf5e91d639ead5a5fd588222250b6
[ "GPL-1.0-or-later", "GPL-3.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "LGPL-2.1-only", "LicenseRef-scancode-unknown-license-reference" ]
permissive
NationalSecurityAgency/ghidra
969fe0d2ca25cb8ac72f66f0f90fc7fb2dbfa68d
7cc135eb6bfabd166cbc23f7951dae09a7e03c39
refs/heads/master
2023-08-31T21:20:23.376055
2023-08-29T23:08:54
2023-08-29T23:08:54
173,228,436
45,212
6,204
Apache-2.0
2023-09-14T18:00:39
2019-03-01T03:27:48
Java
UTF-8
Java
false
false
1,537
java
/* ### * IP: GHIDRA * * 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 ghidra.app.plugin.core.overview; import java.awt.Component; import docking.ActionContext; import docking.action.DockingAction; import docking.action.MenuData; import ghidra.util.HelpLocation; /** * Base class for popup overview bar actions */ public abstract class AbstractColorOverviewAction extends DockingAction { private Component component; /** * Constructor * * @param name the name of the action * @param owner the name of the owner of the action. * @param component the color bar component. * @param help the help location for this action. */ public AbstractColorOverviewAction(String name, String owner, Component component, HelpLocation help) { super(name, owner); this.component = component; setPopupMenuData(new MenuData(new String[] { name })); setHelpLocation(help); } @Override public boolean isValidContext(ActionContext context) { return context.getContextObject() == component; } }
[ "46821332+nsadeveloper789@users.noreply.github.com" ]
46821332+nsadeveloper789@users.noreply.github.com
2750e80286d3130e1bc92169beb7a12e2b5624a2
b110664c3bbab92d81ad668dc6601159e426d8cd
/android/app/src/main/java/com/guc/practice2/MainActivity.java
de577edac9666123cf9104e923bf16358267ca3a
[]
no_license
icookingcode/practice2
67c4154e3a9680a3268591beb57227c39090ed86
3428b4c44ea47e460962876c9b819da35b0878ee
refs/heads/master
2020-05-30T20:23:05.935844
2019-06-04T05:41:13
2019-06-04T05:41:13
189,946,894
1
0
null
null
null
null
UTF-8
Java
false
false
362
java
package com.guc.practice2; import android.os.Bundle; import io.flutter.app.FlutterActivity; import io.flutter.plugins.GeneratedPluginRegistrant; public class MainActivity extends FlutterActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); GeneratedPluginRegistrant.registerWith(this); } }
[ "guchaochao@huiyunit.com" ]
guchaochao@huiyunit.com
9d755bafb7e3c4a5a3ad1305c6c0588cdaa8b856
9b3cfee564ff3065f3ed2acb804a7791f306670c
/src/main/java/org/ylgjj/loan/domain/DP005_单位分户账.java
4f9735b07e9ac132fb550bc54afe6572dab454db
[]
no_license
1026957152/supervision
ebbb40a8efddfee9f70f1e298d7562fc65fe222c
b150682d17d7f71095f02b6143c9a94f0862be1e
refs/heads/master
2020-09-16T08:23:48.320281
2020-01-03T08:16:03
2020-01-03T08:16:03
223,709,916
0
4
null
2019-12-09T07:23:35
2019-11-24T07:48:22
Java
UTF-8
Java
false
false
6,316
java
package org.ylgjj.loan.domain; import org.apache.commons.lang3.builder.ReflectionToStringBuilder; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import java.math.BigDecimal; import java.time.LocalDate; import java.util.Date; /** * Created by yuan zhao on 08/10/2015. */ @Entity @Table(name = "DP005") public class DP005_单位分户账 { @Id @Column(name = "unitaccnum") private String unitaccnum单位账号; @Column(name = "unitcustid") private String unitcustid_单位客户号; @Column(name = "unitaccname") private String unitaccname_单位名称; @Column(name = "subcode") private String subcode; @Column(name = "exttranslvl") private String exttranslvl; @Column(name = "unitaccstate") private String unitaccstate单位账户状态; @Column(name = "frzflag") private String frzflag_冻结标志; @Column(name = "unitacctype") private String unitacctype单位账户类型; // 1-普通4-自由5-军转6-托管7-执法8-久悬未取 9-预缴户 @Column(name = "lastbal") private BigDecimal lastbal_上日余额; @Column(name = "frzamt") private BigDecimal frzamt_冻结金额; @Column(name = "stpayamt") private BigDecimal stpayamt; @Column(name = "bal") private BigDecimal bal_余额; @Column(name = "lasttransdate") private Date lasttransdate_上笔发生日期; @Column(name = "begintdate") private Date begintdate_起息日期; @Column(name = "opnaccdate") private LocalDate opnaccdate开户日期; @Column(name = "clsaccdate") private LocalDate clsaccdate销户日期; @Column(name = "intaccu") private BigDecimal intaccu; @Column(name = "calintflag") private String calintflag; @Column(name = "accinstcode") private String accinstcode_账户机构; public String getAccinstcode_账户机构() { return accinstcode_账户机构; } public void setAccinstcode_账户机构(String accinstcode_账户机构) { this.accinstcode_账户机构 = accinstcode_账户机构; } public String getUnitaccnum单位账号() { return unitaccnum单位账号; } public void setUnitaccnum单位账号(String unitaccnum单位账号) { this.unitaccnum单位账号 = unitaccnum单位账号; } public String getUnitcustid_单位客户号() { return unitcustid_单位客户号; } public void setUnitcustid_单位客户号(String unitcustid_单位客户号) { this.unitcustid_单位客户号 = unitcustid_单位客户号; } public String getUnitaccname_单位名称() { return unitaccname_单位名称; } public void setUnitaccname_单位名称(String unitaccname_单位名称) { this.unitaccname_单位名称 = unitaccname_单位名称; } public String getSubcode() { return subcode; } public void setSubcode(String subcode) { this.subcode = subcode; } public String getExttranslvl() { return exttranslvl; } public void setExttranslvl(String exttranslvl) { this.exttranslvl = exttranslvl; } public String getUnitaccstate单位账户状态() { return unitaccstate单位账户状态; } public void setUnitaccstate单位账户状态(String unitaccstate_单位账户状态) { this.unitaccstate单位账户状态 = unitaccstate_单位账户状态; } public String getFrzflag_冻结标志() { return frzflag_冻结标志; } public void setFrzflag_冻结标志(String frzflag_冻结标志) { this.frzflag_冻结标志 = frzflag_冻结标志; } public String getUnitacctype单位账户类型() { return unitacctype单位账户类型; } public void setUnitacctype单位账户类型(String unitacctype_单位账户类型) { this.unitacctype单位账户类型 = unitacctype_单位账户类型; } public BigDecimal getLastbal_上日余额() { return lastbal_上日余额; } public void setLastbal_上日余额(BigDecimal lastbal_上日余额) { this.lastbal_上日余额 = lastbal_上日余额; } public BigDecimal getFrzamt_冻结金额() { return frzamt_冻结金额; } public void setFrzamt_冻结金额(BigDecimal frzamt_冻结金额) { this.frzamt_冻结金额 = frzamt_冻结金额; } public BigDecimal getStpayamt() { return stpayamt; } public void setStpayamt(BigDecimal stpayamt) { this.stpayamt = stpayamt; } public BigDecimal getBal_余额() { return bal_余额; } public void setBal_余额(BigDecimal bal_余额) { this.bal_余额 = bal_余额; } public Date getLasttransdate_上笔发生日期() { return lasttransdate_上笔发生日期; } public void setLasttransdate_上笔发生日期(Date lasttransdate_上笔发生日期) { this.lasttransdate_上笔发生日期 = lasttransdate_上笔发生日期; } public Date getBegintdate_起息日期() { return begintdate_起息日期; } public void setBegintdate_起息日期(Date begintdate_起息日期) { this.begintdate_起息日期 = begintdate_起息日期; } public LocalDate getOpnaccdate开户日期() { return opnaccdate开户日期; } public void setOpnaccdate开户日期(LocalDate opnaccdate__开户日期) { this.opnaccdate开户日期 = opnaccdate__开户日期; } public LocalDate getClsaccdate销户日期() { return clsaccdate销户日期; } public void setClsaccdate销户日期(LocalDate clsaccdate_销户日期) { this.clsaccdate销户日期 = clsaccdate_销户日期; } public BigDecimal getIntaccu() { return intaccu; } public void setIntaccu(BigDecimal intaccu) { this.intaccu = intaccu; } public String getCalintflag() { return calintflag; } public void setCalintflag(String calintflag) { this.calintflag = calintflag; } @Override public String toString() { return ReflectionToStringBuilder.toString(this); } }
[ "1026957152@qq.com" ]
1026957152@qq.com
7af52cd2e62bced18807878c47552683eeb188fa
09d0ddd512472a10bab82c912b66cbb13113fcbf
/TestApplications/TF-BETA-THERMATK-v5.7.1/DecompiledCode/JADX/src/main/java/org/telegram/p004ui/C3817-$$Lambda$PhotoViewer$4LlSn7fGI8FnhnGA3tv2t0xhh6E.java
3ec26991d576fff243a72d31c94598e9a182e038
[]
no_license
sgros/activity_flow_plugin
bde2de3745d95e8097c053795c9e990c829a88f4
9e59f8b3adacf078946990db9c58f4965a5ccb48
refs/heads/master
2020-06-19T02:39:13.865609
2019-07-08T20:17:28
2019-07-08T20:17:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
655
java
package org.telegram.p004ui; import org.telegram.p004ui.Components.PhotoCropView.PhotoCropViewDelegate; /* compiled from: lambda */ /* renamed from: org.telegram.ui.-$$Lambda$PhotoViewer$4LlSn7fGI8FnhnGA3tv2t0xhh6E */ public final /* synthetic */ class C3817-$$Lambda$PhotoViewer$4LlSn7fGI8FnhnGA3tv2t0xhh6E implements PhotoCropViewDelegate { private final /* synthetic */ PhotoViewer f$0; public /* synthetic */ C3817-$$Lambda$PhotoViewer$4LlSn7fGI8FnhnGA3tv2t0xhh6E(PhotoViewer photoViewer) { this.f$0 = photoViewer; } public final void onChange(boolean z) { this.f$0.lambda$createCropView$34$PhotoViewer(z); } }
[ "crash@home.home.hr" ]
crash@home.home.hr
4f515b054a0db8621eaecbef13c9921b647bb707
263b9556d76279459ab9942b0005a911e2b085c5
/src/main/java/com/alipay/api/domain/Contract.java
2d164229c9c0da6cb2fd43ca551015a3c62950e9
[ "Apache-2.0" ]
permissive
getsgock/alipay-sdk-java-all
1c98ffe7cb5601c715b4f4b956e6c2b41a067647
1ee16a85df59c08fb9a9b06755743711d5cd9814
refs/heads/master
2020-03-30T05:42:59.554699
2018-09-19T06:17:22
2018-09-19T06:17:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
928
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-03-10 17:07:31 */ public class Contract extends AlipayObject { private static final long serialVersionUID = 1655291967817932925L; /** * 合约文本内容 */ @ApiField("text") private String text; /** * 合约标题 */ @ApiField("title") private String title; /** * 合约类型 */ @ApiField("type") private String type; public String getText() { return this.text; } public void setText(String text) { this.text = text; } public String getTitle() { return this.title; } public void setTitle(String title) { this.title = title; } public String getType() { return this.type; } public void setType(String type) { this.type = type; } }
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
f8235c2c023b282364de747e190787f5bc84d8ec
d9be38d046341e2142415f4f4ae67f90c919068a
/protocol-common/src/main/java/com/kong/common/protocol/Responses.java
d58c2c7a3fd23e668ff0a9ad0ae665b2fe7d417a
[]
no_license
konvish/common
9a9cc742999167c3a8dabd83ebe5c256708f4b0a
a7a0a1b9d2cec14667117eeeccd61c549cd068f8
refs/heads/master
2021-04-06T19:56:35.053801
2017-03-24T03:13:09
2017-03-24T03:13:09
64,115,882
0
0
null
null
null
null
UTF-8
Java
false
false
1,595
java
package com.kong.common.protocol; import com.kong.common.exception.BizException; import com.kong.common.utils.RtnCodeEnum; /** * Response 工具类 * Created by kong on 2016/2/2. */ public class Responses { /** * 返回未知异常 * @return */ public static Response newUnknow(){ return new Response.ResponseBuilder(RtnCodeEnum.UNKNOW).build(); } /** * * 成功返回 * * @return */ public static Response newOK(){ return new Response.ResponseBuilder(RtnCodeEnum.SUCCESS).build(); } /** * * 业务异常返回 * * @return */ public static Response newResponse(BizException ex){ return new Response.ResponseBuilder(ex).build(); } /** * 正常业务对象的返回 * @param bizData * @return */ public static Response newResponse(Object bizData){ return new Response.ResponseBuilder(RtnCodeEnum.SUCCESS).bizData(bizData).build(); } /** * 返回网络异常 * @return */ public static Response newNetError(){ return new Response.ResponseBuilder(RtnCodeEnum.NET_ERROR).build(); } /** * 返回请求参数异常 * @return */ public static Response newParamError(){ return new Response.ResponseBuilder(RtnCodeEnum.PARAMETER_ERROR).build(); } /** * 返回调用次数超限异常 * @return */ public static Response newOverLimit(){ return new Response.ResponseBuilder(RtnCodeEnum.APP_OVER_INVOCATION_LIMIT).build(); } }
[ "konvish@163.com" ]
konvish@163.com