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
fe844965f8d9ec76f238174261604718d9088c9c
c7c2847a41b49cb0f0009d2eb00a1d918fa8a772
/app-inventor-releases/appinventor/components/src/com/google/appinventor/components/runtime/HorizontalArrangement.java
7a82ab6d9d192444a7a47dad4bd3cfc111367c5a
[]
no_license
andersontran/THESIS_PROJECT
5e25afd59112abc7f58c44a5383bfd19f7c38dfb
2641758e8c1ec7eabaa65efc764f14ffa160919b
refs/heads/master
2021-01-01T06:11:46.651229
2012-10-13T04:50:13
2012-10-13T04:50:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,132
java
// Copyright 2009 Google Inc. All Rights Reserved. package com.google.appinventor.components.runtime; import com.google.appinventor.components.annotations.DesignerComponent; import com.google.appinventor.components.annotations.SimpleObject; import com.google.appinventor.components.common.ComponentCategory; import com.google.appinventor.components.common.ComponentConstants; import com.google.appinventor.components.common.YaVersion; /** * A horizontal arrangement of components * @author sharon@google.com (Sharon Perl) * */ @DesignerComponent(version = YaVersion.HORIZONTALARRANGEMENT_COMPONENT_VERSION, description = "<p>A formatting element in which to place components " + "that should be displayed from left to right. If you wish to have " + "components displayed one over another, use " + "<code>VerticalArrangement</code> instead.</p>", category = ComponentCategory.ARRANGEMENTS) @SimpleObject public class HorizontalArrangement extends HVArrangement { public HorizontalArrangement(ComponentContainer container) { super(container, ComponentConstants.LAYOUT_ORIENTATION_HORIZONTAL); } }
[ "anderson.tran@uqconnect.edu.au" ]
anderson.tran@uqconnect.edu.au
74418d2ca06294a5b97e03f90ddf12211eaef1a9
5598faaaaa6b3d1d8502cbdaca903f9037d99600
/code_changes/Apache_projects/MAPREDUCE-24/6f1788dd6d434bdec64cc630923d3ceef9f28db6/ScriptBasedMapping.java
3a6b45018446740d1a716430099e2b8010f66c34
[]
no_license
SPEAR-SE/LogInBugReportsEmpirical_Data
94d1178346b4624ebe90cf515702fac86f8e2672
ab9603c66899b48b0b86bdf63ae7f7a604212b29
refs/heads/master
2022-12-18T02:07:18.084659
2020-09-09T16:49:34
2020-09-09T16:49:34
286,338,252
0
2
null
null
null
null
UTF-8
Java
false
false
5,152
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.net; import java.util.*; import java.io.*; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.util.*; import org.apache.hadoop.util.Shell.ShellCommandExecutor; import org.apache.hadoop.conf.*; /** * This class implements the {@link DNSToSwitchMapping} interface using a * script configured via topology.script.file.name . */ public final class ScriptBasedMapping extends CachedDNSToSwitchMapping implements Configurable { public ScriptBasedMapping() { super(new RawScriptBasedMapping()); } // script must accept at least this many args static final int MIN_ALLOWABLE_ARGS = 1; static final int DEFAULT_ARG_COUNT = 100; static final String SCRIPT_FILENAME_KEY = "topology.script.file.name"; static final String SCRIPT_ARG_COUNT_KEY = "topology.script.number.args"; public ScriptBasedMapping(Configuration conf) { this(); setConf(conf); } public Configuration getConf() { return ((RawScriptBasedMapping)rawMapping).getConf(); } public void setConf(Configuration conf) { ((RawScriptBasedMapping)rawMapping).setConf(conf); } private static final class RawScriptBasedMapping implements DNSToSwitchMapping { private String scriptName; private Configuration conf; private int maxArgs; //max hostnames per call of the script private static Log LOG = LogFactory.getLog(ScriptBasedMapping.class); public void setConf (Configuration conf) { this.scriptName = conf.get(SCRIPT_FILENAME_KEY); this.maxArgs = conf.getInt(SCRIPT_ARG_COUNT_KEY, DEFAULT_ARG_COUNT); this.conf = conf; } public Configuration getConf () { return conf; } public RawScriptBasedMapping() {} public List<String> resolve(List<String> names) { List <String> m = new ArrayList<String>(names.size()); if (names.isEmpty()) { return m; } if (scriptName == null) { for (int i = 0; i < names.size(); i++) { m.add(NetworkTopology.DEFAULT_RACK); } return m; } String output = runResolveCommand(names); if (output != null) { StringTokenizer allSwitchInfo = new StringTokenizer(output); while (allSwitchInfo.hasMoreTokens()) { String switchInfo = allSwitchInfo.nextToken(); m.add(switchInfo); } if (m.size() != names.size()) { // invalid number of entries returned by the script LOG.warn("Script " + scriptName + " returned " + Integer.toString(m.size()) + " values when " + Integer.toString(names.size()) + " were expected."); return null; } } else { // an error occurred. return null to signify this. // (exn was already logged in runResolveCommand) return null; } return m; } private String runResolveCommand(List<String> args) { int loopCount = 0; if (args.size() == 0) { return null; } StringBuffer allOutput = new StringBuffer(); int numProcessed = 0; if (maxArgs < MIN_ALLOWABLE_ARGS) { LOG.warn("Invalid value " + Integer.toString(maxArgs) + " for " + SCRIPT_ARG_COUNT_KEY + "; must be >= " + Integer.toString(MIN_ALLOWABLE_ARGS)); return null; } while (numProcessed != args.size()) { int start = maxArgs * loopCount; List <String> cmdList = new ArrayList<String>(); cmdList.add(scriptName); for (numProcessed = start; numProcessed < (start + maxArgs) && numProcessed < args.size(); numProcessed++) { cmdList.add(args.get(numProcessed)); } File dir = null; String userDir; if ((userDir = System.getProperty("user.dir")) != null) { dir = new File(userDir); } ShellCommandExecutor s = new ShellCommandExecutor( cmdList.toArray(new String[0]), dir); try { s.execute(); allOutput.append(s.getOutput() + " "); } catch (Exception e) { LOG.warn(StringUtils.stringifyException(e)); return null; } loopCount++; } return allOutput.toString(); } } }
[ "archen94@gmail.com" ]
archen94@gmail.com
c5ce92ea64b7dc4b46adf9925a1f2958d9ea607f
2c42d04cba77776514bc15407cd02f6e9110b554
/src/org/processmining/mining/organizationmining/profile/AbstractProfile.java
13d1aa5d29d12ced17f864ac8cbd28fe304454e4
[]
no_license
pinkpaint/BPMNCheckingSoundness
7a459b55283a0db39170c8449e1d262e7be21e11
48cc952d389ab17fc6407a956006bf2e05fac753
refs/heads/master
2021-01-10T06:17:58.632082
2015-06-22T14:58:16
2015-06-22T14:58:16
36,382,761
0
1
null
2015-06-14T10:15:32
2015-05-27T17:11:29
null
UTF-8
Java
false
false
7,661
java
/* * Copyright (c) 2007 Minseok Song * * LICENSE: * * This code is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * * EXEMPTION: * * License to link and use is also granted to open source programs which * are not licensed under the terms of the GPL, given that they satisfy one * or more of the following conditions: * 1) Explicit license is granted to the ProM and ProMimport programs for * usage, linking, and derivative work. * 2) Carte blance license is granted to all programs developed at * Eindhoven Technical University, The Netherlands, or under the * umbrella of STW Technology Foundation, The Netherlands. * For further exemptions not covered by the above conditions, please * contact the author of this code. * */ package org.processmining.mining.organizationmining.profile; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Random; import org.processmining.mining.organizationmining.distance.DistanceMatrix; import org.processmining.mining.organizationmining.distance.DistanceMetric; import org.processmining.mining.organizationmining.util.EfficientSparseDoubleArray; import org.processmining.framework.log.LogReader; import org.processmining.framework.ui.Progress; /** * @author Minseok Song * */ public abstract class AbstractProfile extends Profile { /** * Array, which holds for each process instance a * sparse array, holding the values (Double precision) for each item. */ protected EfficientSparseDoubleArray[] values;// SparseArray<Double>[] values; /** * Set, holding all item keys present for any instance. */ protected List<String> itemKeys; /** * Hash map for faster item index access (buffering of indices) */ protected HashMap<String,Integer> itemIndices; /** * Holds the maximal value currently set for any item measurement */ protected double valueMaximum; /** * Creates a new profile * @param aName name of the profile * @param aDescription human-readable, 1-sentence description of the profile * @param log LogReader instance used to build the profile */ protected AbstractProfile(String aName, String aDescription, LogReader aLog) { super(aLog, aName, aDescription); normalizationMaximum = 1.0; valueMaximum = 0.0; invert = false; itemKeys = new ArrayList<String>(); itemIndices = new HashMap<String,Integer>(); values = new EfficientSparseDoubleArray[log.getLogSummary().getOriginators().length]; //String users[] = summary.getOriginators(); // initialize profile's data structure for(int i=0; i<log.getLogSummary().getOriginators().length; i++) { values[i] = new EfficientSparseDoubleArray(0.0); } } protected double normalizationFactor() { if(valueMaximum > 0) { return normalizationMaximum / valueMaximum; } else { return normalizationMaximum; } } protected double normalize(double value) { if(valueMaximum > 0) { return (value * normalizationMaximum) / valueMaximum; } else { return 0.0; } } public List<String> getItemKeys() { return itemKeys; } /* (non-Javadoc) * @see org.processmining.analysis.traceclustering.profile.Profile#getItemKey(int) */ @Override public String getItemKey(int index) { return itemKeys.get(index); } /* (non-Javadoc) * @see org.processmining.analysis.traceclustering.profile.Profile#numberOfItems() */ @Override public int numberOfItems() { return itemKeys.size(); } public double getValue(int originatorIndex, int itemIndex) { return normalize(values[originatorIndex].get(itemIndex)); } public double getValue(String originatorName, int itemIndex) { return normalize(values[originators.indexOf(originatorName)].get(itemIndex)); } public double getValue(String originatorName, String itemId) { int itemIndex = itemIndices.get(itemId); if(itemIndex < 0) { // invalid index given! throw new IllegalArgumentException("Invalid item ID given!"); } else { return normalize(values[originators.indexOf(originatorName)].get(itemIndex)); } } public double getValue(int originatorIndex, String itemId) { int itemIndex = itemIndices.get(itemId); if(itemIndex < 0) { // invalid index given! throw new IllegalArgumentException("Invalid item ID given!"); } else { return normalize(values[originatorIndex].get(itemIndex)); } } public double getRandomValue(int itemIndex) { double minimum = Double.MAX_VALUE; double maximum = Double.MIN_VALUE; double value; // look for column's minimum and maximum value for(int i=getNumberOfOriginators()-1; i>=0; i--) { value = getValue(originators.get(i), itemIndex); if(value > maximum) { maximum = value; } if(value < minimum) { minimum = value; } } // generate and return randomly distributed // value within the determined column's range double rnd = minimum + (random.nextDouble() * (maximum - minimum)); return normalize(rnd); } public double getRandomValue(String itemId) { return getRandomValue(itemKeys.indexOf(itemId)); } /** * Manually sets the value for a specific process instance / * item combination in this profile * @param instanceId * @param itemId * @param value */ protected void setValue(int instanceIndex, String itemId, double value) { // add item id to global set if necessary Integer itemIndexObj = itemIndices.get(itemId); int itemIndex; if(itemIndexObj != null) { itemIndex = itemIndexObj; } else { // not present yet, add itemIndex = itemKeys.size(); itemKeys.add(itemId); itemIndices.put(itemId, itemIndex); } if(value > valueMaximum) { // adjust local value maximum to newly set value valueMaximum = value; } values[instanceIndex].set(itemIndex, value); } /** * Increments the value stored for a specific process instance / * item combination stored in this profile, by the given increment * @param originatorName * @param itemId * @param increment */ protected void incrementValue(String originatorName, String itemId, double increment) { double currentValue = 0.0; // add item id to global set if necessary Integer itemIndexObj = itemIndices.get(itemId); int itemIndex; if(itemIndexObj != null) { itemIndex = itemIndexObj; currentValue = values[originators.indexOf(originatorName)].get(itemIndex); } else { // not present yet, add itemIndex = itemKeys.size(); itemKeys.add(itemId); itemIndices.put(itemId, itemIndex); } // increment current value currentValue += increment; if(currentValue > valueMaximum) { // adjust local value maximum to newly set value valueMaximum = currentValue; } values[originators.indexOf(originatorName)].set(itemIndex, currentValue); } public DistanceMatrix getDistanceMatrix(DistanceMetric metric, Progress progress) { DistanceMatrix distanceMatrix = metric.getDistanceMatrix(this); distanceMatrix.normalizeToMaximum(this.normalizationMaximum); if(invert == true) { distanceMatrix.invert(); } return distanceMatrix; } }
[ "pinkpaint.ict@gmail.com" ]
pinkpaint.ict@gmail.com
6930fe2b82cf0cd66eab47b03c30c9dbc9be8b1b
012e9bd5bfbc5ceca4e36af55a7ddf4fce98b403
/code/app/src/main/java/com/yzb/card/king/ui/appwidget/BaseViewGroup.java
69f847c1e137f5cb544bbf996c35d75dd68fdb8f
[]
no_license
litliang/ms
a7152567c2f0e4d663efdda39503642edd33b4b6
d7483bc76d43e060906c47acc1bc2c3179838249
refs/heads/master
2021-09-01T23:51:50.934321
2017-12-29T07:30:49
2017-12-29T07:30:49
115,697,248
1
0
null
null
null
null
UTF-8
Java
false
false
4,956
java
package com.yzb.card.king.ui.appwidget; import android.content.Context; import android.text.TextUtils; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.LinearLayout; import com.yzb.card.king.bean.ticket.GoodActivityBean; import com.yzb.card.king.bean.ticket.ShopGoodsActivityBean; import com.yzb.card.king.bean.travel.DateBean; import com.yzb.card.king.bean.travel.TravelLineBean; import com.yzb.card.king.bean.travel.TravelProduDetailBean; import com.yzb.card.king.ui.discount.bean.BankBean; import com.yzb.card.king.ui.discount.bean.PjBean; import com.yzb.card.king.ui.manage.UserManager; import com.yzb.card.king.ui.travel.view.ITravelDetailDataProvider; import com.yzb.card.king.ui.travel.view.ITravelDetailViewNotifier; import com.yzb.card.king.util.ToastUtil; import java.util.List; /** * 功能:ViewGroup 基类; * * @author:gengqiyun * @date: 2016/11/18 */ public abstract class BaseViewGroup extends LinearLayout implements ITravelDetailViewNotifier { protected int curHeight = 0; protected LayoutInflater inflater; protected View rootView; protected Context mContext; protected ITravelDetailDataProvider provider; //数据提供者; public BaseViewGroup(Context context) { super(context); init(); } public BaseViewGroup(Context context, AttributeSet attrs) { super(context, attrs); init(); } public BaseViewGroup(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); init(); } protected void toast(int resId) { ToastUtil.i(mContext, resId); } protected void toast(String msg) { ToastUtil.i(mContext, msg); } /** * 初始化view; */ protected void init() { mContext = getContext(); inflater = LayoutInflater.from(mContext); setOrientation(VERTICAL); if (getLayoutResId() > 0) { rootView = inflater.inflate(getLayoutResId(), this); } } protected abstract int getLayoutResId(); @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h, oldw, oldh); curHeight = h; } /** * 判断登录; * * @return */ protected boolean isLogin() { return UserManager.getInstance().isLogin(); } public boolean isEmpty(String msg) { if (TextUtils.isEmpty(msg)) { return true; } return false; } /** * 获取当前view的新高度; */ public int getCurHeight() { return curHeight; } @Override public void notifyDataChanged() { if (provider != null && provider.getProduDetailBean() != null) { fillViewData(provider.getProduDetailBean()); } } /** * 通知优惠银行数据改变; */ public void notifyCouponBanksChanged() { if (provider != null && provider.getCouponBankBean() != null) { fillViewCouponBanks(provider.getCouponBankBean()); } } /** * 通知线路列表数据改变; */ public void notifyTravelLineChanged() { if (provider != null && provider.getTravelLineBeans() != null) { fillViewTravelLines(provider.getTravelLineBeans()); } } /** * 通知评价列表数据改变; */ public void notifyEvaluateChanged() { if (provider != null && provider.getPjBeanList() != null) { fillViewEvaluates(provider.getPjBeanList()); } } /** * 通知日期列表数据改变; */ public void notifyDateListChanged() { if (provider != null && provider.getDateBeanList() != null) { fillViewDateList(provider.getDateBeanList()); } } /** * 子类填充评价列表; * * @param pjBeanList */ public void fillViewDateList(List<DateBean> pjBeanList) { } /** * 子类填充评价列表; * * @param pjBeanList */ public void fillViewEvaluates(List<PjBean> pjBeanList) { } /** * 子类填充线路列表数据; * * @param lineBeans */ public void fillViewTravelLines(List<TravelLineBean> lineBeans) { } /** * 子类填充优惠银行数据; * * @param detailBean */ protected void fillViewCouponBanks(List<GoodActivityBean> detailBean) { } /** * 子类填充数据; * * @param detailBean */ protected void fillViewData(TravelProduDetailBean detailBean) { } @Override public void setDataProvider(ITravelDetailDataProvider provider) { this.provider = provider; } }
[ "864631546@qq.com" ]
864631546@qq.com
c7db4e9b1ea6053733073da7ff7ec51204386c1f
d432d922a0c7ca88f0b2f22ea217f00e03e8d735
/src/com/facebook/buck/intellij/plugin/src/com/facebook/buck/intellij/plugin/ui/tree/BuckTreeNodeDetail.java
cfaeeba607b2581ea9684c5dcdbff75795021ae4
[ "Apache-2.0" ]
permissive
Bostonncity/buck
6b0f3bad2643a03ec36b9817c716afc13d65045c
73b04f44e4004ddbecf9b8e6210c56f2d7a9714d
refs/heads/master
2020-04-06T03:50:26.228683
2015-12-17T22:24:47
2015-12-17T22:28:16
48,203,367
2
0
null
2015-12-17T23:15:45
2015-12-17T23:15:45
null
UTF-8
Java
false
false
1,864
java
/* * Copyright 2015-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ package com.facebook.buck.intellij.plugin.ui.tree; import javax.swing.tree.TreeNode; import java.util.Enumeration; public class BuckTreeNodeDetail implements TreeNode { public enum DetailType { ERROR, WARNING, INFO } protected DetailType mType; protected String mDetail; protected TreeNode mParent; public BuckTreeNodeDetail(TreeNode parent, DetailType type, String detail) { mType = type; mDetail = detail; mParent = parent; } @Override public TreeNode getChildAt(int childIndex) { return null; } @Override public int getChildCount() { return 0; } @Override public TreeNode getParent() { return mParent; } @Override public int getIndex(TreeNode node) { return 0; } @Override public boolean getAllowsChildren() { return false; } @Override public boolean isLeaf() { return true; } @Override public Enumeration children() { return null; } public String getDetail() { return mDetail; } public void setDetail(String detail) { mDetail = detail; } public DetailType getType() { return mType; } }
[ "sdwilsh@fb.com" ]
sdwilsh@fb.com
abaabefcd604488070e5c7d6d80837a07b9ac01f
101fd0052efd5580f64711b20c43b569570d7afe
/src/com/javaex/dao/EmaillistDao.java
70fc3ef911011557d7e1d314353d449244e660d6
[]
no_license
seungmi9191/mvc2_emaillist2
475410e88ec911eff14b11a5c83f9fd2f5773c8a
21929ccb392737fa07b042e81b87f738d04f25d7
refs/heads/master
2020-03-11T22:12:46.968244
2018-04-20T00:13:30
2018-04-20T00:13:30
130,285,903
0
0
null
null
null
null
UTF-8
Java
false
false
3,718
java
package com.javaex.dao; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import com.javaex.vo.EmailVO; public class EmaillistDao { public void insert(EmailVO vo) { // 0. import java.sql.*; Connection conn = null; PreparedStatement pstmt = null; //ResultSet rs = null; int count; try { // 1. JDBC 드라이버 (Oracle) 로딩 Class.forName("oracle.jdbc.driver.OracleDriver"); // 2. Connection 얻어오기 String url = "jdbc:oracle:thin:@localhost:1521:xe"; conn = DriverManager.getConnection(url, "webdb", "webdb"); // 3. SQL문 준비 / 바인딩 / 실행 String query ="insert into emaillist values( seq_emaillist_no.nextval, ?, ?, ?)"; pstmt = conn.prepareStatement(query); //쿼리문의 ?를 문자열로 변경해주기 pstmt.setString(1, vo.getLastName()); //(����, �ۿ��� �޾ƿ��� ��) pstmt.setString(2, vo.getFirstName()); pstmt.setString(3, vo.getEmail()); //db날려주기 - 성공 1, 실패0 count = pstmt.executeUpdate(); // 4.결과처리 System.out.println(count + "건 등록"); } catch (ClassNotFoundException e) { System.out.println("error:드라이버 로딩 실패 - " + e); } catch (SQLException e) { System.out.println("error:" + e); } finally { // 5. 자원정리 try { // if (rs != null) { // rs.close(); // } if (pstmt != null) { pstmt.close(); } if (conn != null) { conn.close(); } } catch (SQLException e) { System.out.println("error:" + e); } } } public List<EmailVO> getList() { // 0. import java.sql.*; Connection conn = null; PreparedStatement pstmt = null; ResultSet rs = null; List<EmailVO> list = new ArrayList<EmailVO>(); try { // 1. JDBC 드라이버 (Oracle) 로딩 Class.forName("oracle.jdbc.driver.OracleDriver"); // 2. Connection 얻어오기 String url = "jdbc:oracle:thin:@localhost:1521:xe"; conn = DriverManager.getConnection(url, "webdb", "webdb"); // 3. SQL문 준비 / 바인딩 / 실행 String query ="select no, last_name, first_name, email " + "from emaillist " + "order by no desc "; pstmt = conn.prepareStatement(query); rs = pstmt.executeQuery(); //db날려주기 - 성공 1, 실패0 while(rs.next()) { int no = rs.getInt("no"); String lastName = rs.getString("last_name"); String firstName = rs.getString("first_name"); String email = rs.getString("email"); EmailVO vo = new EmailVO(no, lastName, firstName, email); list.add(vo); } // 4.결과처리 } catch (ClassNotFoundException e) { System.out.println("error: ����̹� �ε� ���� - " + e); } catch (SQLException e) { System.out.println("error:" + e); } finally { // 5. 자원정리 try { if (rs != null) { rs.close(); } if (pstmt != null) { pstmt.close(); } if (conn != null) { conn.close(); } } catch (SQLException e) { System.out.println("error:" + e); } } return list; } }
[ "bit-user@DESKTOP-C1QR4BV" ]
bit-user@DESKTOP-C1QR4BV
3ae543088a792cd23cba2e65e6dcdca571a2846d
26b1ebc160df1329064c0c28dd9de767e94f2d4e
/src/main/java/org/squashleague/web/controller/login/RegistrationController.java
06db418a65cee2a8d2d33592fa6e490c48309008
[]
no_license
jamesdbloom/london-squash-league-java
5eb934d29876a7d0e681c726fdafd99fd04e1061
46e05faee50df0af7b0b4a4e9631d93128e60cb5
refs/heads/master
2023-08-24T12:32:57.886531
2014-04-06T19:59:35
2014-04-06T19:59:35
10,134,379
2
0
null
null
null
null
UTF-8
Java
false
false
3,431
java
package org.squashleague.web.controller.login; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.core.env.Environment; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.validation.BindingResult; import org.springframework.validation.ObjectError; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.mvc.support.RedirectAttributes; import org.squashleague.dao.account.UserDAO; import org.squashleague.domain.account.MobilePrivacy; import org.squashleague.domain.account.Role; import org.squashleague.domain.account.User; import org.squashleague.service.email.EmailService; import org.squashleague.service.uuid.UUIDService; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.validation.Valid; import java.io.UnsupportedEncodingException; import java.net.MalformedURLException; @Controller public class RegistrationController { protected Logger logger = LoggerFactory.getLogger(getClass()); @Resource private UserDAO userDAO; @Resource private Environment environment; @Resource private EmailService emailService; @Resource private UUIDService uuidService; private void setupModel(Model uiModel) { uiModel.addAttribute("mobilePrivacyOptions", MobilePrivacy.enumToFormOptionMap()); uiModel.addAttribute("passwordPattern", User.PASSWORD_PATTERN); uiModel.addAttribute("emailPattern", User.EMAIL_PATTERN); uiModel.addAttribute("environment", environment); } @RequestMapping(value = "/register", method = RequestMethod.GET) public String registerForm(Model uiModel) { setupModel(uiModel); uiModel.addAttribute("user", new User()); return "page/user/register"; } @RequestMapping(value = "/register", method = RequestMethod.POST) public String register(@Valid final User user, BindingResult bindingResult, final HttpServletRequest request, Model uiModel, RedirectAttributes redirectAttributes) throws MalformedURLException, UnsupportedEncodingException { boolean userAlreadyExists = user.getEmail() != null && (userDAO.findByEmail(user.getEmail()) != null); if (bindingResult.hasErrors() || userAlreadyExists) { setupModel(uiModel); if (userAlreadyExists) { bindingResult.addError(new ObjectError("user", environment.getProperty("validation.user.alreadyExists"))); } uiModel.addAttribute("bindingResult", bindingResult); uiModel.addAttribute("user", user); return "page/user/register"; } userDAO.register(user .withRoles(("jamesdbloom@gmail.com".equals(user.getEmail()) ? Role.ROLE_ADMIN : Role.ROLE_USER)) .withOneTimeToken(uuidService.generateUUID()) ); emailService.sendRegistrationMessage(user, request); redirectAttributes.addFlashAttribute("message", "Your account has been created and an email has been sent to " + user.getEmail() + " with a link to create your password and login, please check your spam folder if you don't see the email within 5 minutes"); redirectAttributes.addFlashAttribute("title", "Account Created"); return "redirect:/message"; } }
[ "jamesdbloom@gmail.com" ]
jamesdbloom@gmail.com
85ab52f5e3178e7d1f728ab19e3ef751f3524286
f8dded68b9125a95e64745b3838c664b11ce7bbe
/cdm/src/main/java/ucar/nc2/iosp/mcidas/McIDASGridServiceProvider.java
c41c9c443c6b880ea1b30a993494a46a8f4cc2ed
[ "NetCDF" ]
permissive
melissalinkert/netcdf
8d01f27f377b0b6639ac47bfc891e1b92e5b3bd1
18482c15fce43a4b378dacdc9177ec600280c903
refs/heads/master
2016-09-09T19:25:59.885325
2012-02-07T01:44:35
2012-02-07T01:44:35
3,373,307
1
4
null
null
null
null
UTF-8
Java
false
false
7,050
java
/* * $Id: IDV-Style.xjs,v 1.3 2007/02/16 19:18:30 dmurray Exp $ * * Copyright 1998-2009 University Corporation for Atmospheric Research/Unidata * * Portions of this software were developed by the Unidata Program at the * University Corporation for Atmospheric Research. * * Access and use of this software shall impose the following obligations * and understandings on the user. The user is granted the right, without * any fee or cost, to use, copy, modify, alter, enhance and distribute * this software, and any derivative works thereof, and its supporting * documentation for any purpose whatsoever, provided that this entire * notice appears in all copies of the software, derivative works and * supporting documentation. Further, UCAR requests that the user credit * UCAR/Unidata in any publications that result from the use of this * software or in any product that includes this software. The names UCAR * and/or Unidata, however, may not be used in any advertising or publicity * to endorse or promote any products or commercial entity unless specific * written permission is obtained from UCAR/Unidata. The user also * understands that UCAR/Unidata is not obligated to provide the user with * any support, consulting, training or assistance of any kind with regard * to the use, operation and performance of this software nor to provide * the user with any updates, revisions, new versions or "bug fixes." * * THIS SOFTWARE IS PROVIDED BY UCAR/UNIDATA "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 UCAR/UNIDATA BE LIABLE FOR ANY SPECIAL, * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION * WITH THE ACCESS, USE OR PERFORMANCE OF THIS SOFTWARE. */ package ucar.nc2.iosp.mcidas; import ucar.grid.GridIndex; import ucar.grid.GridRecord; import ucar.ma2.*; import ucar.nc2.*; import ucar.nc2.iosp.IOServiceProvider; import ucar.nc2.iosp.grid.*; import ucar.nc2.util.CancelTask; import ucar.unidata.io.RandomAccessFile; import java.io.IOException; /** * An IOSP for McIDAS Grid data * * @author IDV Development Team * @version $Revision: 1.3 $ */ public class McIDASGridServiceProvider extends GridServiceProvider { /** McIDAS file reader */ protected McIDASGridReader mcGridReader; /** * Is this a valid file? * * @param raf RandomAccessFile to check * * @return true if a valid McIDAS grid file * * @throws IOException problem reading file */ public boolean isValidFile(RandomAccessFile raf) throws IOException { try { mcGridReader = new McIDASGridReader(); mcGridReader.init(raf, false); } catch (IOException ioe) { return false; } return true; } /** * Get the file type id * * @return the file type id */ public String getFileTypeId() { return "McIDASGrid"; } /** * Get the file type description * * @return the file type description */ public String getFileTypeDescription() { return "McIDAS Grid file"; } /** * Open the service provider for reading. * @param raf file to read from * @param ncfile netCDF file we are writing to (memory) * @param cancelTask task for cancelling * * @throws IOException problem reading file */ public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException { //debugProj = true; super.open(raf, ncfile, cancelTask); long start = System.currentTimeMillis(); if (mcGridReader == null) { mcGridReader = new McIDASGridReader(); } mcGridReader.init(raf); GridIndex index = ((McIDASGridReader) mcGridReader).getGridIndex(); open(index, cancelTask); if (debugOpen) { System.out.println(" GridServiceProvider.open " + ncfile.getLocation() + " took " + (System.currentTimeMillis() - start)); } } /** * Open the index and create the netCDF file from that * * @param index GridIndex to use * @param cancelTask cancel task * * @throws IOException problem reading the file */ protected void open(GridIndex index, CancelTask cancelTask) throws IOException { McIDASLookup lookup = new McIDASLookup( (McIDASGridRecord) index.getGridRecords().get(0)); GridIndexToNC delegate = new GridIndexToNC(index.filename); //delegate.setUseDescriptionForVariableName(false); delegate.open(index, lookup, 4, ncfile, fmrcCoordSys, cancelTask); ncfile.finish(); } /** * Sync and extend * * @return false */ public boolean sync() { try { if ( !mcGridReader.init()) { return false; } GridIndex index = ((McIDASGridReader) mcGridReader).getGridIndex(); // reconstruct the ncfile objects ncfile.empty(); open(index, null); return true; } catch (IOException ioe) { return false; } } /** * Read the data for this GridRecord * * @param gr grid identifier * * @return the data (or null) * * @throws IOException problem reading the data */ protected float[] _readData(GridRecord gr) throws IOException { return mcGridReader.readGrid((McIDASGridRecord) gr); } /** * Test this * * @param args filename * * @throws IOException problem reading file */ public static void main(String[] args) throws IOException { IOServiceProvider mciosp = new McIDASGridServiceProvider(); RandomAccessFile rf = new RandomAccessFile(args[0], "r", 2048); NetcdfFile ncfile = new MakeNetcdfFile(mciosp, rf, args[0], null); } /** * Not sure why we need this * * @author IDV Development Team * @version $Revision: 1.3 $ */ static class MakeNetcdfFile extends NetcdfFile { /** * wrapper for a netCDF file * * @param spi iosp * @param raf random access file * @param location location of the file * @param cancelTask cancel task * * @throws IOException problem reading file */ MakeNetcdfFile(IOServiceProvider spi, RandomAccessFile raf, String location, CancelTask cancelTask) throws IOException { super(spi, raf, location, cancelTask); } } }
[ "melissa@glencoesoftware.com" ]
melissa@glencoesoftware.com
69ad3216d541ec58dde8a7e1eeb6cc57284f13dd
3e6298b5f5e8017fa057c2054ef024ca1c5ebc82
/src/main/java/com/yuminsoft/cps/pic/common/kit/HttpKit.java
0dd50735f7ef599aebcac299f2ab674ffa0eefd9
[]
no_license
InverseOfControl/pic
7513df16ce0557d3a2d5c27595cf5598ee4681b5
5aa61aef3ce9327a3e6fe17651b205e5b7eb0546
refs/heads/master
2020-03-11T12:58:19.051596
2018-04-18T06:08:12
2018-04-18T06:08:12
130,011,990
0
0
null
null
null
null
UTF-8
Java
false
false
383
java
package com.yuminsoft.cps.pic.common.kit; import javax.servlet.http.HttpServletRequest; public class HttpKit { /** * 判断ajax请求 * * @param request * @return */ public static boolean isAjax(HttpServletRequest request) { return (request.getHeader("X-Requested-With") != null && "XMLHttpRequest".equalsIgnoreCase(request.getHeader("X-Requested-With"))); } }
[ "gaohongxuhappy@163.com" ]
gaohongxuhappy@163.com
db903d6547af469a4c34ddf1c283158fc3e0c770
469a2e6d9985b680d93c7183ac58cee59054de02
/bluej/src/org/reflections/scanners/SubTypesScanner.java
18631b2c2dda29e84b66895fee6fe12cfe6c260c
[]
no_license
danlangford/greenfoot-mirror
8aaec447775f38a96e9e75fb80a965156ff35f86
9b508ae8643f590d25a234789c8ce62fc34e3cfb
refs/heads/master
2021-01-01T05:19:55.369341
2016-04-26T04:50:10
2016-04-26T04:50:10
57,012,099
1
1
null
null
null
null
UTF-8
Java
false
false
1,340
java
package org.reflections.scanners; import org.reflections.util.FilterBuilder; import java.util.List; /** scans for superclass and interfaces of a class, allowing a reverse lookup for subtypes */ public class SubTypesScanner extends AbstractScanner { /** created new SubTypesScanner. will exclude direct Object subtypes */ public SubTypesScanner() { this(true); //exclude direct Object subtypes by default } /** created new SubTypesScanner. * @param excludeObjectClass if false, include direct {@link Object} subtypes in results. */ public SubTypesScanner(boolean excludeObjectClass) { if (excludeObjectClass) { filterResultsBy(new FilterBuilder().exclude(Object.class.getName())); //exclude direct Object subtypes } } @SuppressWarnings({"unchecked"}) public void scan(final Object cls) { String className = getMetadataAdapter().getClassName(cls); String superclass = getMetadataAdapter().getSuperclassName(cls); if (acceptResult(superclass)) { getStore().put(superclass, className); } for (String anInterface : (List<String>) getMetadataAdapter().getInterfacesNames(cls)) { if (acceptResult(anInterface)) { getStore().put(anInterface, className); } } } }
[ "danlangford@gmail.com" ]
danlangford@gmail.com
1a0b25e3e20260c5ece6cbdbf4288416a60bc769
09d0ddd512472a10bab82c912b66cbb13113fcbf
/TestApplications/WhereYouGo-0.9.3-beta/DecompiledCode/Procyon/src/main/java/android/support/v4/media/TransportStateListener.java
afd8d63caa2ce84fc3421ae151506ac9a68a72b6
[]
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
417
java
// // Decompiled by Procyon v0.5.34 // package android.support.v4.media; @Deprecated public class TransportStateListener { @Deprecated public TransportStateListener() { } @Deprecated public void onPlayingChanged(final TransportController transportController) { } @Deprecated public void onTransportControlsChanged(final TransportController transportController) { } }
[ "crash@home.home.hr" ]
crash@home.home.hr
862407b96ffaeda002fdbbd5922954a0161964ce
6baa09045c69b0231c35c22b06cdf69a8ce227d6
/modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201605/cm/MediaServiceInterfacequery.java
dd249f9aef9162062f9fe8024eb71889e6da7571
[ "Apache-2.0" ]
permissive
remotejob/googleads-java-lib
f603b47117522104f7df2a72d2c96ae8c1ea011d
a330df0799de8d8de0dcdddf4c317d6b0cd2fe10
refs/heads/master
2020-12-11T01:36:29.506854
2016-07-28T22:13:24
2016-07-28T22:13:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,812
java
package com.google.api.ads.adwords.jaxws.v201605.cm; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * * Returns the list of {@link Media} objects that match the query. * * @param query The SQL-like AWQL query string * @returns A list of {@code Media} objects. * @throws ApiException when the query is invalid or there are errors processing the request. * * * <p>Java class for query element declaration. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;element name="query"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="query" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "query" }) @XmlRootElement(name = "query") public class MediaServiceInterfacequery { protected String query; /** * Gets the value of the query property. * * @return * possible object is * {@link String } * */ public String getQuery() { return query; } /** * Sets the value of the query property. * * @param value * allowed object is * {@link String } * */ public void setQuery(String value) { this.query = value; } }
[ "jradcliff@users.noreply.github.com" ]
jradcliff@users.noreply.github.com
b2d5aeffede99242cba0e7e8ca69e5eba7e40a10
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/10/10_74d72c622b7272e6505b9c289662a7f055cbbc07/OFSwitchAcceptor/10_74d72c622b7272e6505b9c289662a7f055cbbc07_OFSwitchAcceptor_s.java
d1f7a243f76c48bf4b804d8d00385227dfc32525
[]
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,247
java
package org.flowvisor.ofswitch; import java.io.IOException; import java.net.BindException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.nio.channels.SelectionKey; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.util.List; import org.flowvisor.classifier.FVClassifier; import org.flowvisor.events.FVEvent; import org.flowvisor.events.FVEventHandler; import org.flowvisor.events.FVEventLoop; import org.flowvisor.events.FVIOEvent; import org.flowvisor.exceptions.UnhandledEvent; import org.flowvisor.log.FVLog; import org.flowvisor.log.LogLevel; import org.flowvisor.resources.SlicerLimits; public class OFSwitchAcceptor implements FVEventHandler { FVEventLoop pollLoop; int backlog; int listenPort; ServerSocketChannel ssc; List<FVClassifier> switches; private SlicerLimits slicerLimits; public OFSwitchAcceptor(FVEventLoop pollLoop, int port, int backlog) throws IOException { this.pollLoop = pollLoop; ssc = ServerSocketChannel.open(); ssc.socket().setReuseAddress(true); try { // FIXME: check -Djava.net.preferIPv4Stack=true instead of brute force? // try IPv6 first; this works on dual stacked machines too ssc.socket().bind( new InetSocketAddress(InetAddress.getByName("::"), port), backlog); } catch (java.net.SocketException e) { // try default/ipv4 if that fails try { FVLog.log(LogLevel.NOTE, this, "failed to bind IPv6 address; trying IPv4"); ssc.socket().bind( new InetSocketAddress(port), backlog); } catch (BindException be) { FVLog.log(LogLevel.FATAL, this, "Unable to listen on port " + port + " on localhost; verify that nothing else is running on that port."); System.exit(1); } catch (java.net.SocketException se) { FVLog.log(LogLevel.NOTE, this, "failed to bind IPv4 address; Quitting"); FVLog.log(LogLevel.NOTE, this, "OF Control address already in use."); e.printStackTrace(); System.exit(1); } } ssc.configureBlocking(false); this.listenPort = ssc.socket().getLocalPort(); FVLog.log(LogLevel.INFO, this, "Listenning on port " + this.listenPort); // register this module with the polling loop pollLoop.register(ssc, SelectionKey.OP_ACCEPT, this); } @Override public boolean needsConnect() { return false; } @Override public boolean needsRead() { return false; } @Override public boolean needsWrite() { return false; } @Override public boolean needsAccept() { return true; } /** * @return the listenPort */ public int getListenPort() { return listenPort; } @Override public long getThreadContext() { return pollLoop.getThreadContext(); } @Override public void tearDown() { try { ssc.close(); } catch (IOException e) { // ignore if shutting down throws an error... we're already shutting // down } } @Override public void handleEvent(FVEvent e) throws UnhandledEvent { if (Thread.currentThread().getId() != this.getThreadContext()) { // this event was sent from a different thread context pollLoop.queueEvent(e); // queue event return; // and process later } if (e instanceof FVIOEvent) handleIOEvent((FVIOEvent) e); else throw new UnhandledEvent(e); } void handleIOEvent(FVIOEvent event) { SocketChannel sock = null; try { sock = ssc.accept(); if (sock == null) { FVLog.log(LogLevel.CRIT, null, "ssc.accept() returned null !?! FIXME!"); return; } FVLog.log(LogLevel.INFO, this, "got new connection: " + sock); FVClassifier fvc = new FVClassifier(pollLoop, sock); fvc.setSlicerLimits(this.slicerLimits); fvc.init(); } catch (IOException e) // ignore IOExceptions -- is this the right // thing to do? { FVLog.log(LogLevel.CRIT, this, "Got IOException for " + (sock != null ? sock : "unknown socket :: ") + e); throw new RuntimeException(e); } } @Override public String getName() { return "OFSwitchAcceptor"; } public void setSlicerLimits(SlicerLimits slicerLimits) { this.slicerLimits = slicerLimits; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
418f985c9ec0155f603859c17d10a7c2790da5ec
a9de22590675be8ee38163127a2c24a20c248a0b
/src/com/iremote/infraredcode/stb/codequery/Wuwei.java
d626a4aac96a8316fdeca1e99e0905ea5189f5eb
[]
no_license
jessicaallen777/iremote2
0943622300286f8d16e9bb4dca349613ffc23bb1
b27aa81785fc8bf5467a1ffcacd49a04e41f6966
refs/heads/master
2023-03-16T03:20:00.746888
2019-12-12T04:02:30
2019-12-12T04:02:30
null
0
0
null
null
null
null
GB18030
Java
false
false
1,870
java
package com.iremote.infraredcode.stb.codequery; import com.iremote.infraredcode.tv.codequery.CodeQueryBase; public class Wuwei extends CodeQueryBase { @Override public String getProductor() { return "Wuwei"; } @Override public String[] getQueryCodeLiberay() { return querycode; } private static String[] querycode = new String[] { //机顶盒 武威(Wuwei) 1 "00e04700348235811028662820281f281f281f2a1f291f291f296528202866296628652866286628652820282028662864286628202866286529662965281f291f2a1f2965291f2920288999823b8086280000000000000000000000000000000000000000000000000000000000", //机顶盒 武威(Wuwei) 2 "00e04700338233810f2866281f291f29202a1f291f291f2920286629202865286528662866286528662820281f286529662965281f29652965286528652a1f291f291f2966281f291f298997823b8087280000000000000000000000000000000000000000000000000000000000", //机顶盒 武威(Wuwei) 3 "00e047003382358110282028202865291f292029202965281f28652a65291f296528652920291f296528652a65291f2965281f2a1f291f291f2920281f2866281f2966286528662865298997823b8087290000000000000000000000000000000000000000000000000000000000", //机顶盒 武威(Wuwei) 4 "00e0470033823581102965291f291f292028202820282028202866281f296628662865286528662865291f29202965286528652a1f2965286529652965281f2920281f2965291f291f288999823b8087280000000000000000000000000000000000000000000000000000000000", //机顶盒 武威(Wuwei) 5 "00e04700338234810f28662820281f291f2920291f291f291f292028662965296528662965296528652a652965281f2920281f291f29202820281f2820286628662865286628662865288997823b8086280000000000000000000000000000000000000000000000000000000000", //机顶盒 武威(Wuwei) 6 "00e047003382348111286529202820281f282029202820291f281f28652a652965286529652965286529652866281f281f281f2a1f291f291f2920281f286628652965286628652965288997823c8086290000000000000000000000000000000000000000000000000000000000", }; }
[ "stevenbluesky@163.com" ]
stevenbluesky@163.com
68658b3a155789635bad436cf8f3c33dcd77f9ce
1e13cd3c2efbf08e0a6ed29be6b17be2b7395618
/corejava8vol2/src/core/ch02/file/serialization/SerailCloneTest.java
3c7ee6448205cd188f786f8ba2c07f003df07fde
[]
no_license
barcvilla/javasecore
f3c2526200b91f8c2c09ecc889912450cf854910
7e7979363391a2e80cf40c1525500b503f905005
refs/heads/master
2018-09-09T02:47:47.240151
2018-08-27T19:18:47
2018-08-27T19:18:47
107,985,518
0
0
null
null
null
null
UTF-8
Java
false
false
743
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package core.ch02.file.serialization; /** * * @author PC */ public class SerailCloneTest { public static void main(String[] args)throws CloneNotSupportedException { EmployeeSerial harry = new EmployeeSerial("Harry Hacker", 35000, 1989, 10, 1); /*Clone harry*/ EmployeeSerial harry2 = (EmployeeSerial) harry.clone(); /*mutate harry*/ harry.raiseSalary(10); /*ahora harry y el clon son diferente*/ System.out.println(harry); System.out.println(harry2); } }
[ "ceva_19@hotmail.com" ]
ceva_19@hotmail.com
de3bdd5d85ade1db42e78cdfc106d205e7fea8f8
0af8b92686a58eb0b64e319b22411432aca7a8f3
/single-large-project/src/main/java/org/gradle/test/performancenull_279/Productionnull_27843.java
7685c375674c1945a0f1d837da759a07c914e9d8
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
588
java
package org.gradle.test.performancenull_279; public class Productionnull_27843 { private final String property; public Productionnull_27843(String param) { this.property = param; } public String getProperty() { return property; } private String prop0; public String getProp0() { return prop0; } public void setProp0(String value) { prop0 = value; } private String prop1; public String getProp1() { return prop1; } public void setProp1(String value) { prop1 = value; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
573acf63d113dc2de70f79147cfdd169d2f2f7ad
800b992074dcc5451ce10caf8a30efdec54e884d
/src/Ch_08/Video08_05/Start/NaiveBayesExample.java
eb1f209564caaa087e6a6fe7f71af06cc5850147
[]
no_license
gauthierwakay/data-science-using-java
37fe2e9b139f8fc3c35cd1404246992da5c616d0
284b279b0ccdd58bbc0f4cf30c0d0b8a8749302b
refs/heads/master
2023-07-18T01:20:45.707587
2021-09-03T19:15:28
2021-09-03T19:15:28
402,875,471
0
0
null
null
null
null
UTF-8
Java
false
false
661
java
package Ch_08.Video08_05.Start; import java.util.List; import java.util.stream.Collectors; public class NaiveBayesExample { public static void main(String[] args) { List<String> lines = TextLoader.getLines("iris.data"); List<FlowerRecord> flowers = lines.stream() .map((line) -> FlowerRecordUtil.parseFlower(line)) .collect(Collectors.toList()); NaiveBayesClassifier classifier = new NaiveBayesClassifier(); flowers.forEach((flower) -> classifier.addDataItem(flower)); System.out.println( classifier.classifyPoint(new FlowerRecord(6.8,2.8,4.8,1.4, "?"))); } }
[ "jet9seven@gmail.com" ]
jet9seven@gmail.com
844377cf4b9765d1429ea81a7699c59f5f62d237
7c2ae1b522ba46dea701533b962d4c9ac3688120
/JavaFxTutorial/src/main13/Controller.java
51dcf58477ab678cce987c3800c0c3fc84686c7a
[]
no_license
huyhue/javaFX
6da93bb62376494b934d84536e27f1e61faa8cc9
75420fb983e7ba3be22ee37f98b3ef6f6f6f28e7
refs/heads/master
2022-04-27T12:50:36.408587
2020-04-29T10:17:04
2020-04-29T10:17:04
259,892,185
0
0
null
null
null
null
UTF-8
Java
false
false
1,484
java
package main13; import javafx.concurrent.Task; import javafx.fxml.FXML; import javafx.scene.control.Label; import javafx.scene.control.ProgressBar; import javafx.scene.control.ProgressIndicator; import javafx.event.ActionEvent; public class Controller { @FXML ProgressBar progressBar; @FXML ProgressIndicator progressIndicator; @FXML Label label; doWork task; public void start (ActionEvent event){ task = new doWork(); progressBar.progressProperty().bind(task.progressProperty()); progressIndicator.progressProperty().bind(task.progressProperty()); label.textProperty().bind(task.messageProperty()); new Thread(task).start(); } public void cancel (ActionEvent event){ task.cancel(); progressBar.progressProperty().unbind(); progressBar.setProgress(0); progressIndicator.progressProperty().unbind(); progressIndicator.setProgress(0); label.textProperty().unbind(); label.setText("ready"); } } class doWork extends Task<Void>{ @Override protected Void call() throws Exception { for (int i=0; i<10; i++){ if (isCancelled()){ updateMessage("Cancelled"); break; } updateProgress(i+1,10); //10 max updateMessage("Loading"); Thread.sleep(1000); //nghi 1 s } updateMessage("Finished"); return null; } }
[ "tpgiahuy5@gmail.com" ]
tpgiahuy5@gmail.com
a552ebbda384d82a1b207fcb343aafe8ba89c59c
b03e73ff19caff0eef688ebc651de913c67592c0
/2018.2/IA/Projeto/weka_source_from_jdcore/weka/classifiers/Sourcable.java
cd4e856f34d45c93affefc967bb6419a97269620
[]
no_license
fiorentinogiuseppe/Projetos_UFRPE
51a577680909979c9728ff71520b497b1d8e11e8
52d5fb74648e5221d455cbb5faf3f2c8ac2c0c64
refs/heads/master
2020-12-09T05:52:39.522462
2020-01-16T10:35:28
2020-01-16T10:35:28
233,209,784
0
0
null
null
null
null
UTF-8
Java
false
false
143
java
package weka.classifiers; public abstract interface Sourcable { public abstract String toSource(String paramString) throws Exception; }
[ "fiorentinogiuseppebcc@gmail.com" ]
fiorentinogiuseppebcc@gmail.com
5d28fa33ce996da68196483be37cc1adb7504f04
90dabee5e2977422befc41df11694633defb5b4b
/com/hbm/blocks/MachineDeuterium.java
5cb56a0a51b02a6c73eb39031906c2156080d29d
[]
no_license
arond1/Hbm-s-Nuclear-Tech-GIT
045a7ccdd0ffd6c8f9dd39667809b765db038dd0
208a32410f886a9fca486bf8e14aad693bb050b2
refs/heads/master
2021-01-23T07:16:21.091823
2016-11-30T09:21:39
2016-11-30T09:21:39
80,508,593
1
0
null
2017-01-31T09:54:51
2017-01-31T09:54:50
null
UTF-8
Java
false
false
5,323
java
package com.hbm.blocks; import java.util.Random; import com.hbm.lib.RefStrings; import com.hbm.main.MainRegistry; import com.hbm.tileentity.TileEntityMachineDeuterium; import cpw.mods.fml.common.network.internal.FMLNetworkHandler; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; public class MachineDeuterium extends BlockContainer { private final Random field_149933_a = new Random(); private Random rand; private static boolean keepInventory; @SideOnly(Side.CLIENT) private IIcon iconTop; protected MachineDeuterium(Material p_i45386_1_) { super(p_i45386_1_); } @Override @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister iconRegister) { this.iconTop = iconRegister.registerIcon(RefStrings.MODID + ":machine_deuterium_side"); this.blockIcon = iconRegister.registerIcon(RefStrings.MODID + ":machine_deuterium_front"); } @Override @SideOnly(Side.CLIENT) public IIcon getIcon(int side, int metadata) { return side == 1 ? this.iconTop : (side == 0 ? this.iconTop : this.blockIcon); } @Override public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) { return new TileEntityMachineDeuterium(); } @Override public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) { return Item.getItemFromBlock(ModBlocks.machine_deuterium); } @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) { if(world.isRemote) { return true; } else if(!player.isSneaking()) { TileEntityMachineDeuterium entity = (TileEntityMachineDeuterium) world.getTileEntity(x, y, z); if(entity != null) { FMLNetworkHandler.openGui(player, MainRegistry.instance, ModBlocks.guiID_machine_deuterium, world, x, y, z); } return true; } else { return false; } } @Override public void breakBlock(World p_149749_1_, int p_149749_2_, int p_149749_3_, int p_149749_4_, Block p_149749_5_, int p_149749_6_) { if (!keepInventory) { TileEntityMachineDeuterium tileentityfurnace = (TileEntityMachineDeuterium)p_149749_1_.getTileEntity(p_149749_2_, p_149749_3_, p_149749_4_); if (tileentityfurnace != null) { for (int i1 = 0; i1 < tileentityfurnace.getSizeInventory(); ++i1) { ItemStack itemstack = tileentityfurnace.getStackInSlot(i1); if (itemstack != null) { float f = this.field_149933_a.nextFloat() * 0.8F + 0.1F; float f1 = this.field_149933_a.nextFloat() * 0.8F + 0.1F; float f2 = this.field_149933_a.nextFloat() * 0.8F + 0.1F; while (itemstack.stackSize > 0) { int j1 = this.field_149933_a.nextInt(21) + 10; if (j1 > itemstack.stackSize) { j1 = itemstack.stackSize; } itemstack.stackSize -= j1; EntityItem entityitem = new EntityItem(p_149749_1_, p_149749_2_ + f, p_149749_3_ + f1, p_149749_4_ + f2, new ItemStack(itemstack.getItem(), j1, itemstack.getItemDamage())); if (itemstack.hasTagCompound()) { entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy()); } float f3 = 0.05F; entityitem.motionX = (float)this.field_149933_a.nextGaussian() * f3; entityitem.motionY = (float)this.field_149933_a.nextGaussian() * f3 + 0.2F; entityitem.motionZ = (float)this.field_149933_a.nextGaussian() * f3; p_149749_1_.spawnEntityInWorld(entityitem); } } } p_149749_1_.func_147453_f(p_149749_2_, p_149749_3_, p_149749_4_, p_149749_5_); } } super.breakBlock(p_149749_1_, p_149749_2_, p_149749_3_, p_149749_4_, p_149749_5_, p_149749_6_); } @Override @SideOnly(Side.CLIENT) public void randomDisplayTick(World p_149734_1_, int x, int y, int z, Random rand) { if (((TileEntityMachineDeuterium) p_149734_1_.getTileEntity(x, y, z)).isProcessing()) { int l = p_149734_1_.getBlockMetadata(x, y, z); float f = x + 0.5F; float f1 = y + 1.0F; float f2 = z + 0.5F; p_149734_1_.spawnParticle("cloud", f, f1, f2, 0.0D, 0.1D, 0.0D); } } }
[ "hbmmods@gmail.com" ]
hbmmods@gmail.com
6f23d06326803b208ac0c33a14efd71b949b39df
bf79a9a7b2bfc58e65661b7dd23974dc1c64cfec
/tags/hdcookbook-66/grin/library/src/com/hdcookbook/grin/util/Debug.java
138998aeb959c0b99c4d21cd52d3a9eea14fdd3d
[ "BSD-3-Clause" ]
permissive
zxlooong/hdcookbook
925f8030ef26750b3fa08ffacebcb063b1bffd07
38aeee7d8879e677f13ef81e5fd034eb16c2048f
refs/heads/master
2021-01-13T01:23:24.798423
2012-09-12T19:41:38
2012-09-12T19:41:38
13,239,901
3
1
null
null
null
null
UTF-8
Java
false
false
5,157
java
/* * Copyright (c) 2007, Sun Microsystems, Inc. * * 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 Sun Microsystems nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Note: In order to comply with the binary form redistribution * requirement in the above license, the licensee may include * a URL reference to a copy of the required copyright notice, * the list of conditions and the disclaimer in a human readable * file with the binary form of the code that is subject to the * above license. For example, such file could be put on a * Blu-ray disc containing the binary form of the code or could * be put in a JAR file that is broadcast via a digital television * broadcast medium. In any event, you must include in any end * user licenses governing any code that includes the code subject * to the above license (in source and/or binary form) a disclaimer * that is at least as protective of Sun as the disclaimers in the * above license. * * A copy of the required copyright notice, the list of conditions and * the disclaimer will be maintained at * https://hdcookbook.dev.java.net/misc/license.html . * Thus, licensees may comply with the binary form redistribution * requirement with a text file that contains the following text: * * A copy of the license(s) governing this code is located * at https://hdcookbook.dev.java.net/misc/license.html */ package com.hdcookbook.grin.util; /** * Debugging support. Before shipping a final disc, you should modify the * constant values in this class and re-compile. * * @author Bill Foote (http://jovial.com) */ public class Debug { /** * Variable to say that assertions are enabled. If * set false, then javac should strip all assertions * out of the generated code. * <p> * Usage: * <pre> * if (Debug.ASSERT && some condition that should be false) { * Debug.println(something interesting); * } * </pre> * <p> * Note that JDK 1.4's assertion facility can't be used * for Blu-Ray, since PBP 1.0 is based on JDK 1.3. **/ public final static boolean ASSERT = true; /** * Debug level. 2 = noisy, 1 = some debug, 0 = none. **/ public final static int LEVEL = 2; private Debug() { } public static void println() { if (LEVEL > 0) { println(""); } } public static void println(Object o) { if (LEVEL > 0) { System.err.println(o); } } /** * Called on assertion failure. This is a useful during development: When * you detect a condition that should be impossible, you can trigger an * assertion failure. That means you've found a bug. When an assertion * failure is detected, you basically want to shut everything down, * so that the developer notices immediately, and sees the message. **/ public static void assertFail(String msg) { if (ASSERT) { Thread.dumpStack(); System.err.println("\n*** Assertion failure: " + msg + " ***\n"); AssetFinder.abort(); } } /** * Called on assertion failure. This is a useful during development: When * you detect a condition that should be impossible, you can trigger an * assertion failure. That means you've found a bug. When an assertion * failure is detected, you basically want to shut everything down, * so that the developer notices immediately, and sees the message. **/ public static void assertFail() { if (ASSERT) { assertFail(""); } } }
[ "chihiro_saito@e5771d8f-0841-e040-ffdb-cc069419ffcf" ]
chihiro_saito@e5771d8f-0841-e040-ffdb-cc069419ffcf
a051d99ef34286bf7fcd805cebde07dc3d6465a4
dea4eff3981b09791671018cdf830338eae864c1
/gate/src/main/java/org/zgl/register/TestMethod.java
8cca4893283c1ddf70638b81033a8394e70f0ca4
[]
no_license
zglbig/zglgame
d7d95dd86615c67f0804f29790c0c12d93080df6
27ee1d976e1b5c35216890e105cb59337b271a9e
refs/heads/master
2020-03-21T04:34:48.773642
2018-07-09T10:23:09
2018-07-09T10:23:09
138,115,877
1
1
null
null
null
null
UTF-8
Java
false
false
160
java
package org.zgl.register; /** * @作者: big * @创建时间: 2018/6/30 * @文件描述: */ public interface TestMethod { void methods(int i); }
[ "1030681978@qq.com" ]
1030681978@qq.com
5dcad712b8d2544bd5b7b0fe825a5edea0e64f0c
c1046be200e5defff7a0b27f6ae6ae6dab93ac47
/healthadaper-sandbox-disi/smarteven-mock/src/main/java/com/itel/healthadapter/sandbox/smartevenmock/ICustomFhirClient.java
d7674c0cf6ccd7a95f86b0bf85a243a338079f91
[]
no_license
shizhaojingszj/natMaterial
df186ca4bafdc81fb3d772b5dded3eccc2b6d934
123b475097606d0c6570802f42207e37b28b3b71
refs/heads/master
2023-01-20T21:21:35.705709
2020-11-25T08:08:06
2020-11-25T08:08:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
539
java
package com.itel.healthadapter.sandbox.smartevenmock; import ca.uhn.fhir.rest.annotation.RequiredParam; import ca.uhn.fhir.rest.annotation.Search; import ca.uhn.fhir.rest.client.api.IBasicClient; import ca.uhn.fhir.rest.client.api.IGenericClient; import org.hl7.fhir.r4.model.IdType; import org.hl7.fhir.r4.model.Patient; import java.util.List; public interface ICustomFhirClient extends IBasicClient { @Search public List<Patient> findPatientsByIdentifier(@RequiredParam(name = Patient.SP_IDENTIFIER) IdType theIdentifier); }
[ "antonio.natali@unibo.it" ]
antonio.natali@unibo.it
74e23ae9d6682d7a756c3d6ee5d745e3e824a4d0
3ce0c632e643fd2cf554d2349881970dc7ae9bfd
/dialer/src/main/java/com/kinstalk/her/dialer/calllog/ClearCallLogDialog.java
80daabeeac4d855dc8250bfe56dbcbb78218b8d0
[]
no_license
sherry5707/mzx-c-m-c-c-voip
85033e179714b83e6939fe7a58ebcd690ed0b5ca
b282d8b241cd34b43ecf1a8ac33c41a2bc17afe4
refs/heads/master
2020-04-06T13:35:59.468776
2019-03-27T08:14:27
2019-03-27T08:14:27
157,507,267
0
0
null
null
null
null
UTF-8
Java
false
false
4,149
java
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License */ package com.kinstalk.her.dialer.calllog; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.app.FragmentManager; import android.app.ProgressDialog; import android.content.ContentResolver; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.os.AsyncTask; import android.os.Bundle; import android.provider.CallLog.Calls; import com.kinstalk.her.dialer.R; import com.kinstalk.her.dialer.service.CachedNumberLookupService; import com.kinstalk.her.dialerbind.ObjectFactory; /** * Dialog that clears the call log after confirming with the user */ public class ClearCallLogDialog extends DialogFragment { private static final CachedNumberLookupService mCachedNumberLookupService = ObjectFactory.newCachedNumberLookupService(); /** Preferred way to show this dialog */ public static void show(FragmentManager fragmentManager) { ClearCallLogDialog dialog = new ClearCallLogDialog(); dialog.show(fragmentManager, "deleteCallLog"); } @Override public Dialog onCreateDialog(Bundle savedInstanceState) { final ContentResolver resolver = getActivity().getContentResolver(); final Context context = getActivity().getApplicationContext(); final OnClickListener okListener = new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { final ProgressDialog progressDialog = ProgressDialog.show(getActivity(), getString(R.string.clearCallLogProgress_title), "", true, false); progressDialog.setOwnerActivity(getActivity()); final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground(Void... params) { resolver.delete(Calls.CONTENT_URI, null, null); if (mCachedNumberLookupService != null) { mCachedNumberLookupService.clearAllCacheEntries(context); } return null; } @Override protected void onPostExecute(Void result) { final Activity activity = progressDialog.getOwnerActivity(); if (activity == null || activity.isDestroyed() || activity.isFinishing()) { return; } if (progressDialog != null && progressDialog.isShowing()) { progressDialog.dismiss(); } } }; // TODO: Once we have the API, we should configure this ProgressDialog // to only show up after a certain time (e.g. 150ms) progressDialog.show(); task.execute(); } }; return new AlertDialog.Builder(getActivity()) .setTitle(R.string.clearCallLogConfirmation_title) .setIconAttribute(android.R.attr.alertDialogIcon) .setMessage(R.string.clearCallLogConfirmation) .setNegativeButton(android.R.string.cancel, null) .setPositiveButton(android.R.string.ok, okListener) .setCancelable(true) .create(); } }
[ "meng.zhaoxue@shuzijiayuan.com" ]
meng.zhaoxue@shuzijiayuan.com
5c95ebec48b50a78f335c54c629f37df09a5e295
a88404e860f9e81f175d80c51b8e735fa499c93c
/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/codesystems/IdentifierUseEnumFactory.java
3c1ba4b2645cb9592dbb611747c53c3d79d0f27e
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
sabri0/hapi-fhir
4a53409d31b7f40afe088aa0ee8b946860b8372d
c7798fee4880ee8ffc9ed2e42c29c3b8f6753a1c
refs/heads/master
2020-06-07T20:02:33.258075
2019-06-18T09:40:00
2019-06-18T09:40:00
193,081,738
2
0
Apache-2.0
2019-06-21T10:46:17
2019-06-21T10:46:17
null
UTF-8
Java
false
false
2,804
java
package org.hl7.fhir.dstu3.model.codesystems; /* Copyright (c) 2011+, HL7, Inc. 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 HL7 nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0 import org.hl7.fhir.dstu3.model.EnumFactory; public class IdentifierUseEnumFactory implements EnumFactory<IdentifierUse> { public IdentifierUse fromCode(String codeString) throws IllegalArgumentException { if (codeString == null || "".equals(codeString)) return null; if ("usual".equals(codeString)) return IdentifierUse.USUAL; if ("official".equals(codeString)) return IdentifierUse.OFFICIAL; if ("temp".equals(codeString)) return IdentifierUse.TEMP; if ("secondary".equals(codeString)) return IdentifierUse.SECONDARY; throw new IllegalArgumentException("Unknown IdentifierUse code '"+codeString+"'"); } public String toCode(IdentifierUse code) { if (code == IdentifierUse.USUAL) return "usual"; if (code == IdentifierUse.OFFICIAL) return "official"; if (code == IdentifierUse.TEMP) return "temp"; if (code == IdentifierUse.SECONDARY) return "secondary"; return "?"; } public String toSystem(IdentifierUse code) { return code.getSystem(); } }
[ "jamesagnew@gmail.com" ]
jamesagnew@gmail.com
4db63df99b961b037ca77b266b803e2cf12c9492
50e2cde8f9806bfb39bae55fcab58c490a43be27
/automationqsp/src/qsp/LaunchChromeBrowser.java
9153c55187d5783baca872f31f98edcfc4509bf6
[]
no_license
ashwinikhade1902/ashwinikhade1902
ecb050960a7e703f9acd1a68e045b7c6e38c9a20
1ccd7067bcc8f0b52c0ef7adaf88211172c5362b
refs/heads/master
2023-08-15T09:28:27.346195
2021-09-17T04:08:13
2021-09-17T04:08:13
407,385,205
0
0
null
null
null
null
UTF-8
Java
false
false
380
java
package qsp; import org.openqa.selenium.chrome.ChromeDriver; public class LaunchChromeBrowser { public static void main(String[] args) { System.out.println("Open chrome browser"); System.setProperty("webdriver.chrome.driver", "./drivers/chromedriver.exe"); ChromeDriver driver = new ChromeDriver(); driver.close(); } }
[ "Admin@Admin-PC" ]
Admin@Admin-PC
5f78dbbe0221fec6e23bd9eb80bcfec19309882e
7569f9a68ea0ad651b39086ee549119de6d8af36
/cocoon-2.1.9/src/blocks/forms/java/org/apache/cocoon/forms/datatype/validationruleimpl/AbstractValidationRule.java
0e612c0e8814ac3a8db229c7cd4907f56d4d1e51
[ "Apache-2.0" ]
permissive
tpso-src/cocoon
844357890f8565c4e7852d2459668ab875c3be39
f590cca695fd9930fbb98d86ae5f40afe399c6c2
refs/heads/master
2021-01-10T02:45:37.533684
2015-07-29T18:47:11
2015-07-29T18:47:11
44,549,791
0
0
null
null
null
null
UTF-8
Java
false
false
5,013
java
/* * 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. */ package org.apache.cocoon.forms.datatype.validationruleimpl; import org.apache.cocoon.forms.datatype.ValidationRule; import org.apache.cocoon.forms.formmodel.CannotYetResolveWarning; import org.apache.cocoon.forms.validation.ValidationError; import org.apache.excalibur.xml.sax.XMLizable; import org.outerj.expression.Expression; import org.outerj.expression.ExpressionContext; import org.outerj.expression.ExpressionException; import java.math.BigDecimal; /** * Abstract base class providing common functionality for many {@link ValidationRule} * implementations. * * @version $Id: AbstractValidationRule.java 56582 2004-11-04 10:16:22Z sylvain $ */ public abstract class AbstractValidationRule implements ValidationRule { private XMLizable failMessage; /** * Sets the failmessage to use for this validation rule, this will be used * instead of the validation rules' built-in message. The message itself should * be an object impementing XMLizable, such as a SaxBuffer instance. This * allows fail messages to contain mixed content (instead of just * being a string). */ public void setFailMessage(XMLizable object) { this.failMessage = object; } /** * Returns the failMessage wrapped in a ValidationError object. */ public ValidationError getFailMessage() { return new ValidationError(failMessage); } /** * Returns true if this validation rule has a user-defined fail message. */ public boolean hasFailMessage() { return failMessage != null; } /** * Helper method for evaluating expressions whose result is numeric. * * @param exprName a name for the expression that's descriptive for the user, e.g. the name of the attribute in which it was defined * @param ruleName a descriptive name for the validation rule, usually the rule's element name * @return either a ValidationError (because expression evaluation failed) or a CannotYetResolveWarning * (because another, required field referenced in the expression has not yet a value), or a BigDecimal. */ protected Object evaluateNumeric(Expression expression, ExpressionContext expressionContext, String exprName, String ruleName) { Object expressionResult; try { expressionResult = expression.evaluate(expressionContext); } catch (CannotYetResolveWarning w) { return w; } catch (ExpressionException e) { return new ValidationError("Error evaluating \"" + exprName + "\" expression on \"" + ruleName + "\" validation rule", false); } if (!(expressionResult instanceof BigDecimal)) { return new ValidationError("Got non-numeric result from \"" + exprName + "\" expression on \"" + ruleName + "\" validation rule", false); } return expressionResult; } /** * Helper method for evaluating expressions whose result is comparable. * * @param exprName a name for the expression that's descriptive for the user, e.g. the name of the attribute in which it was defined * @param ruleName a descriptive name for the validation rule, usually the rule's element name * @return either a ValidationError (because expression evaluation failed) or a CannotYetResolveWarning * (because another, required field referenced in the expression has not yet a value), or a BigDecimal. */ protected Object evaluateComparable(Expression expression, ExpressionContext expressionContext, String exprName, String ruleName) { Object expressionResult; try { expressionResult = expression.evaluate(expressionContext); } catch (CannotYetResolveWarning w) { return w; } catch (ExpressionException e) { return new ValidationError("Error evaluating \"" + exprName + "\" expression on \"" + ruleName + "\" validation rule", false); } if (!(expressionResult instanceof Comparable)) { return new ValidationError("Got non-comparable result from \"" + exprName + "\" expression on \"" + ruleName + "\" validation rule", false); } return expressionResult; } }
[ "ms@tpso.com" ]
ms@tpso.com
f781a411e3c209387103009a73c5100a1f7cb607
f8a202159c4c7c3b6fba2713926d565a940bb399
/pma/src/test/java/org/broadband_forum/obbaa/adapter/handler/DeployAdapterActionHandlerTest.java
388fc131537c50af6c76af6c568a1da56dc01010
[ "Apache-2.0" ]
permissive
BroadbandForum/obbaa
54fbc2fa11e28a572bb2ee54955918ff8d55b930
805f969ff314b3a59b7355384afade9f15c23f94
refs/heads/master
2023-07-20T22:27:55.692755
2023-07-19T09:21:10
2023-07-19T09:21:10
143,049,657
19
11
Apache-2.0
2023-06-14T22:25:46
2018-07-31T18:04:26
Java
UTF-8
Java
false
false
7,291
java
/* * Copyright 2018 Broadband Forum * * 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.broadband_forum.obbaa.adapter.handler; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import static org.mockito.Matchers.any; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.mockito.MockitoAnnotations.initMocks; import java.net.URI; import java.net.URISyntaxException; import org.apache.karaf.kar.KarService; import org.broadband_forum.obbaa.adapter.AdapterDeployer; import org.broadband_forum.obbaa.device.adapter.AdapterManager; import org.broadband_forum.obbaa.device.adapter.DeviceAdapterId; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import org.osgi.framework.BundleException; public class DeployAdapterActionHandlerTest { private String m_stagingArea; private AdapterDeployer m_adapterActionHandler; @Mock private KarService m_karService; private URI m_url; @Mock private AdapterManager m_adapterManager; @Mock private DeviceAdapterId m_deviceAdapterId; @Before public void setUp() throws BundleException, URISyntaxException { initMocks(this); m_stagingArea = "/home"; m_url = new URI("file:///home/test/adapter.kar"); m_adapterActionHandler = new DeviceAdapterActionHandlerImpl(m_stagingArea, m_karService, m_adapterManager); } @Test public void testDeployCodedAdapter() throws Exception { m_adapterActionHandler.deployAdapter("bbf-dpu-4lt-1.0.kar"); // verify(m_karService).install(m_url); //the url in windows will be : "file:///D:/home/test/adapter.kar", which will cause the case fail verify(m_karService).install(any()); } @Test public void testDeployCodedAdapterWrongPattenForVendor() throws Exception { String expectedMessage; expectedMessage = "File name is not in the expected pattern"; try { m_adapterActionHandler.deployAdapter("b123b!@#$f)(*&-dpu-4lt-1.0.kar"); fail("Expected a runtimeException"); } catch (Exception e) { assertTrue("File name is not in the expected pattern(vendor-type-model-interfaceVersion.kar)", e.getMessage().contains(expectedMessage)); } } @Test public void testDeployCodedAdapterWrongPattenForType() throws Exception { String expectedMessage; expectedMessage = "File name is not in the expected pattern"; try { m_adapterActionHandler.deployAdapter("bbf-123!@#$-4lt-10.kar"); fail("Expected a runtimeException"); } catch (Exception e) { assertTrue("File name is not in the expected pattern(vendor-type-model-interfaceVersion.kar)", e.getMessage().contains(expectedMessage)); } } @Test public void testDeployCodedAdapterWrongPattenForModel() throws Exception { String expectedMessage; expectedMessage = "File name is not in the expected pattern"; try { m_adapterActionHandler.deployAdapter("bbf-olt-4.!lt-1.0.kar"); fail("Expected a runtimeException"); } catch (Exception e) { assertTrue("File name is not in the expected pattern(vendor-type-model-interfaceVersion.kar)", e.getMessage().contains(expectedMessage)); } } @Test public void testDeployCodedAdapterWrongPattenForIfversion() throws Exception { String expectedMessage; expectedMessage = "File name is not in the expected pattern"; try { m_adapterActionHandler.deployAdapter("bbf-olt-8lt-1234.kar"); fail("Expected a runtimeException"); } catch (Exception e) { assertTrue("File name is not in the expected pattern(vendor-type-model-interfaceVersion.kar)", e.getMessage().contains(expectedMessage)); } } @Test public void testDeployCodedAdapterWrongPatten() throws Exception { String expectedMessage; expectedMessage = "File name is not in the expected pattern"; try { m_adapterActionHandler.deployAdapter("bbfolt4lt1.0.kar"); fail("Expected a runtimeException"); } catch (Exception e) { assertTrue("File name is not in the expected pattern(vendor-type-model-interfaceVersion.kar)", e.getMessage().contains(expectedMessage)); } } @Test public void testDeployAdapterInstallingKarThrowsError() throws Exception { doThrow(new RuntimeException("Install error")).when(m_karService).install(m_url); try { m_adapterActionHandler.deployAdapter("bbf-dpu-4lt-1.0.kar"); } catch (Exception e) { assertTrue(e.getMessage().contains("Install error")); } } @Test public void testUndeployKar() throws Exception { m_adapterActionHandler.undeployAdapter("bbf-olt-8lt-1.0.kar"); verify(m_karService).uninstall("bbf-olt-8lt-1.0"); } @Test public void testUndeployKarwhenWrongPattern() throws Exception { String expectedMessage; expectedMessage = "File name is not in the expected pattern"; try { m_adapterActionHandler.undeployAdapter("bbfolt4lt1.0.kar"); fail("Expected a runtimeException"); } catch (Exception e) { assertTrue("File name is not in the expected pattern(vendor-type-model-interfaceVersion.kar)", e.getMessage().contains(expectedMessage)); } } @Test public void testUndeployKarWhichIsNotInstalled() throws Exception { doThrow(new RuntimeException("uninstall error")).when(m_karService).uninstall("bbf-olt-8lt-1.0"); try { m_adapterActionHandler.undeployAdapter("bbf-olt-8lt-1.0.kar"); fail("Should have failed while uninstalling kar"); } catch (RuntimeException e) { assertTrue(e.getMessage().contains("uninstall error")); } } @Test public void testUndeployKarWhenAdapterInUse() throws Exception { when(m_adapterManager.isAdapterInUse(any())).thenReturn(true); try { m_adapterActionHandler.undeployAdapter("bbf-olt-8lt-1.0.kar"); fail("Should have failed while uninstalling kar"); } catch (RuntimeException e) { assertTrue(e.getMessage().contains("Adapter in Use, Undeploy operation not allowed")); } } @Test public void testUndeployKarWhenNotInUse() throws Exception { when(m_adapterManager.isAdapterInUse(any())).thenReturn(false); m_adapterActionHandler.undeployAdapter("bbf-olt-8lt-1.0.kar"); verify(m_karService).uninstall("bbf-olt-8lt-1.0"); } }
[ "selvaraj.ramasamy@nokia.com" ]
selvaraj.ramasamy@nokia.com
7acd9b18b31e1f83e5902012613942199b1a88d7
c4623aa95fb8cdd0ee1bc68962711c33af44604e
/src/android/support/design/widget/TextInputLayout$1.java
f9752d6666759b801f4e3900651de788e73f65b4
[]
no_license
reverseengineeringer/com.yelp.android
48f7f2c830a3a1714112649a6a0a3110f7bdc2b1
b0ac8d4f6cd5fc5543f0d8de399b6d7b3a2184c8
refs/heads/master
2021-01-19T02:07:25.997811
2016-07-19T16:37:24
2016-07-19T16:37:24
38,555,675
1
0
null
null
null
null
UTF-8
Java
false
false
691
java
package android.support.design.widget; import android.text.Editable; import android.text.TextWatcher; class TextInputLayout$1 implements TextWatcher { TextInputLayout$1(TextInputLayout paramTextInputLayout) {} public void afterTextChanged(Editable paramEditable) { TextInputLayout.a(a, true); } public void beforeTextChanged(CharSequence paramCharSequence, int paramInt1, int paramInt2, int paramInt3) {} public void onTextChanged(CharSequence paramCharSequence, int paramInt1, int paramInt2, int paramInt3) {} } /* Location: * Qualified Name: android.support.design.widget.TextInputLayout.1 * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
7ff8e5771035d9fa3a1fddbce2d5dd53b14abce1
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/62/org/apache/commons/math/linear/BlockRealMatrix_toBlocksLayout_205.java
c36bef89840c4810569fb97fe358c8c35d001f60
[]
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
4,688
java
org apach common math linear cach friendli implement real matrix realmatrix flat arrai store squar block matrix implement special design cach friendli squar block store small arrai effici travers data row major direct column major direct block time greatli increas perform algorithm cross direct loop multipl transposit size squar block paramet tune cach size target comput processor rule thumb largest block simultan cach matrix multipl 52x52 block suit processor 64k cach block hold valu byte lower 36x36 processor 32k cach regular block repres link block size link block size squar block hand side bottom side smaller fit matrix dimens squar block flatten row major order singl dimens arrai link block size element regular block block organ row major order block size 52x52 100x60 matrix store block block arrai hold upper left 52x52 squar block arrai hold upper 52x8 rectangl block arrai hold lower left 48x52 rectangl block arrai hold lower 48x8 rectangl layout complex overhead versu simpl map matric java arrai neglig small matric gain cach effici lead fold improv matric moder larg size version revis date block real matrix blockrealmatrix abstract real matrix abstractrealmatrix serializ convert data arrai raw layout block layout raw layout straightforward layout element row column arrai element code raw data rawdata code block layout layout link block real matrix blockrealmatrix instanc matrix split squar block bottom side block rectangular fit matrix size block store flatten dimension arrai method creat arrai block layout input arrai raw layout provid arrai argument link block real matrix blockrealmatrix constructor param raw data rawdata data arrai raw layout data arrai entri block layout except illeg argument except illegalargumentexcept code raw data rawdata code rectangular row length creat block layout createblockslayout block real matrix blockrealmatrix block layout toblockslayout raw data rawdata illeg argument except illegalargumentexcept row raw data rawdata length column raw data rawdata length block row blockrow row block size block size block column blockcolumn column block size block size safeti check raw data rawdata length length raw data rawdata length length column math runtim except mathruntimeexcept creat illeg argument except createillegalargumentexcept local format localizedformat row length column length convert arrai block block row blockrow block column blockcolumn block index blockindex block iblock block iblock block row blockrow block iblock start pstart block iblock block size end pend fast math fastmath min start pstart block size row height iheight end pend start pstart block jblock block jblock block column blockcolumn block jblock start qstart block jblock block size end qend fast math fastmath min start qstart block size column width jwidth end qend start qstart alloc block block height iheight width jwidth block block index blockindex block copi data index start pstart end pend system arraycopi raw data rawdata start qstart block index width jwidth index width jwidth block index blockindex block
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
6f7d05557dfbb99000f0543dfcec512a1ec2436e
2e336731cae9ff9fb3c54dd3d572e6b96e2080bb
/app/src/main/java/com/ab/hicarecommercialapp/view/splash/SplashActivity.java
ac1a522f0d9b4cefba6af8d267bcd33992f529f9
[]
no_license
hicarecodebase/HiCareConnect
05183af522c52a60c430be2056ed520506399989
a162706c3a3345d2610e67a235db2d76dd0d0ff3
refs/heads/master
2023-08-10T13:37:56.450045
2020-05-16T04:09:02
2020-05-16T04:09:02
401,256,267
0
1
null
null
null
null
UTF-8
Java
false
false
3,229
java
package com.ab.hicarecommercialapp.view.splash; import androidx.appcompat.app.AppCompatActivity; import android.content.Context; import android.content.Intent; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.location.Location; import android.os.Bundle; import android.os.Handler; import android.provider.Settings; import android.widget.ImageView; import android.widget.TextView; import com.ab.hicarecommercialapp.BaseActivity; import com.ab.hicarecommercialapp.R; import com.ab.hicarecommercialapp.location_service.LocationManager; import com.ab.hicarecommercialapp.location_service.listner.LocationManagerListner; import com.ab.hicarecommercialapp.utils.SharedPreferencesUtility; import com.ab.hicarecommercialapp.view.company.CompanyCodeActivity; import com.ab.hicarecommercialapp.view.company.CompanyCodeFragment; import com.ab.hicarecommercialapp.view.dashboard.activity.HomeActivity; import com.ab.hicarecommercialapp.view.login.LoginActivity; import com.squareup.picasso.Picasso; import butterknife.BindView; import butterknife.ButterKnife; public class SplashActivity extends BaseActivity { @BindView(R.id.imgSplash) ImageView imgSplash; @BindView(R.id.txtVersion) TextView txtVersion; private static int SPLASH_TIME_OUT = 3000; Handler handler = new Handler(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); ButterKnife.bind(this); Picasso.get().load(R.mipmap.splash).into(imgSplash); loadSplashScreen(); PackageInfo pInfo = null; SharedPreferencesUtility.savePrefBoolean(this, SharedPreferencesUtility.IS_TODAY, true); try { pInfo = getPackageManager().getPackageInfo(getPackageName(), 0); String mobileVersion = pInfo.versionName; txtVersion.setText("V " + mobileVersion); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } } private void loadSplashScreen() { try { handler.postDelayed(() -> { // locationManager = // (android.location.LocationManager) getApplicationContext().getSystemService(Context.LOCATION_SERVICE); // if (locationManager.isProviderEnabled(android.location.LocationManager.GPS_PROVIDER)) { if (SharedPreferencesUtility.getPrefBoolean(this, SharedPreferencesUtility.IS_USER_LOGIN)) { startActivity(new Intent(this, HomeActivity.class)); overridePendingTransition(R.anim.fadein, R.anim.fadeout); finish(); }else { startActivity(new Intent(this, CompanyCodeActivity.class)); overridePendingTransition(R.anim.fadein, R.anim.fadeout); finish(); } // }else { // handler.removeCallbacksAndMessages(null); // } }, SPLASH_TIME_OUT); }catch (Exception e){ e.printStackTrace(); } } }
[ "bhatt.arjun97@gmail.com" ]
bhatt.arjun97@gmail.com
63040688a35e324a0ceca19e022729508a786bc9
bb13907de0911a1c03f1a32a7ea16740234abf1c
/src/main/java/com/emc/fapi/jaxws/v4_3_1/CollectLogsRPAResultValue.java
8cb5a28b7b5f45e27c98043b7bda274741e330d3
[]
no_license
noamda/fal431
9287e95fa2bacdace92e65b16ec6985ce2ded29c
dad30667424970fba049df3ba2c2023b82b9276e
refs/heads/master
2021-01-21T14:25:10.211169
2016-06-20T08:55:43
2016-06-20T08:58:33
58,481,483
0
0
null
null
null
null
UTF-8
Java
false
false
1,350
java
package com.emc.fapi.jaxws.v4_3_1; import org.codehaus.jackson.annotate.JsonTypeName; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; @JsonTypeName("CollectLogsRPAResultValue") @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CollectLogsRPAResultValue", propOrder = {"rpa"}) public class CollectLogsRPAResultValue extends CollectLogsResultValue { protected RpaUID rpa; public CollectLogsRPAResultValue() { } public CollectLogsRPAResultValue(RpaUID rpa) { this.rpa = rpa; } public RpaUID getRpa() { return this.rpa; } public void setRpa(RpaUID value) { this.rpa = value; } public boolean equals(Object obj) { if (!(obj instanceof CollectLogsRPAResultValue)) { return false; } CollectLogsRPAResultValue otherObj = (CollectLogsRPAResultValue) obj; return (super.equals(obj)) && (this.rpa != null ? this.rpa.equals(otherObj.rpa) : this.rpa == otherObj.rpa); } public int hashCode() { return super.hashCode() ^ (this.rpa != null ? this.rpa.hashCode() : 0); } public String toString() { return "CollectLogsRPAResultValue [super=" + super.toString() + ", " + "rpa=" + this.rpa + "]"; } }
[ "style.daniel@gmail.com" ]
style.daniel@gmail.com
5ca6f07cc7716f23434b7c578d178387aa97fa63
c0438b45e7942225fdc9e6c42b83f386c9987086
/src/main/java/hibernate/test/TestHibernateEhcache.java
0dec2d3a43742144fd9031b06425309b9001d9ba
[]
no_license
Cache-Hibernate/HibernateSimpleExample6
045d57c4c547c75e2b11cb54ea8d32ce2fd23b76
d769ac175bb3a5fb5c7ef0aba58cbad1e35adfd5
refs/heads/master
2020-12-24T12:02:15.034116
2015-03-17T14:09:38
2015-03-17T14:09:38
32,396,600
0
0
null
null
null
null
UTF-8
Java
false
false
4,254
java
package hibernate.test; import hibernate.test.dto.DepartmentEntity; import org.hibernate.Session; /** * {@link http://howtodoinjava.com/2013/07/01/understanding-hibernate-first-level-cache-with-example/} ** {@link http://howtodoinjava.com/2013/07/04/hibernate-ehcache-configuration-tutorial/} * ************************************************************************************* * ehcache6 | DEPARTMENT,EMPLOYEE * * "JPA" - это интерфейс, который реализуется с помощью других ORM. * Эти - "ORM" (Object/Relational Mapping) - выступают в качестве поставщика для этого, это способ сохранения объектов в реляционную базу данных. * * "Entity Manager" - является частью спецификации JPA для выполнения доступа к базе данных с помощью управляемых объектов. * "Hibernate" - это один из самых популярных на сегодняшний день ORM-фреймворков * "Hibernate" кэш-памяти первого уровня-cache - чтобы вернуть кэшированные <hibernate лиц>. * ************************************************************************************* */ public class TestHibernateEhcache { public static void main(String[] args) { storeData(); try{ // Open the hibernate session (открываем 'hibernate'-сессию) Session session = HibernateUtil.getSessionFactory().openSession(); session.beginTransaction(); // fetch the department entity from database first time (впервые извлечь объект-'department' из базы данных) DepartmentEntity department = (DepartmentEntity) session.load(DepartmentEntity.class, new Integer(1)); System.out.println("впервые извлечь объект-'department' из базы данных >> " + department.getName()); // fetch the department entity again; Fetched from first level cache (снова извлечь объект-'department' - извлекается из кэша первого уровне) department = (DepartmentEntity) session.load(DepartmentEntity.class, new Integer(1)); System.out.println("снова извлечь объект-'department' - извлекается из кэша первого уровне >> " + department.getName()); // Let's close the session (давайте закроем сессию) session.getTransaction().commit(); session.close(); // Try to get department in new session (попытайтесь получить объект-'department' в новой сессии) Session anotherSession = HibernateUtil.getSessionFactory().openSession(); anotherSession.beginTransaction(); System.out.println("попытайтесь получить объект-'department' в новой сессии"); // Here entity is already in second level cache so no database query will be hit (Сущность уже находится в кэш-памяти второго уровня, так запрос к базе данных не будет выполнен) department = (DepartmentEntity) anotherSession.load(DepartmentEntity.class, new Integer(1)); System.out.println("Сущность уже находится в кэш-памяти второго уровня, так запрос к базе данных не будет выполнен >> " + department.getName()); anotherSession.getTransaction().commit(); anotherSession.close(); } finally { System.out.println(HibernateUtil.getSessionFactory().getStatistics().getEntityFetchCount()); // Prints 1 System.out.println(HibernateUtil.getSessionFactory().getStatistics().getSecondLevelCacheHitCount()); // Prints 1 HibernateUtil.shutdown(); } } private static void storeData(){ Session session = HibernateUtil.getSessionFactory().openSession(); session.beginTransaction(); DepartmentEntity department = new DepartmentEntity(); department.setName("Human Resource"); session.save(department); session.getTransaction().commit(); } }
[ "dn200978lak@gmail.com" ]
dn200978lak@gmail.com
a5bdb92ea1651acf36d155e27a2984d0354c3c8a
eeca771cfa828884be1c56e732d63a451f179c52
/java-basic/src/main/java/ch19/e/Array.java
782c7e11bbec73ea087be9a7a559157619258700
[]
no_license
eikhyeonchoi/bitcamp-java-2018-12
54e03db59224d8378de0a5a392917f4ae87cd72f
66d6bce206d8de7b09c482f4695af6f3cd1acf14
refs/heads/master
2021-08-06T17:17:30.648837
2020-04-30T13:12:48
2020-04-30T13:12:48
163,650,669
1
2
null
2020-04-30T17:33:35
2018-12-31T08:00:40
Java
UTF-8
Java
false
false
581
java
// 배열 복제를 도와주는 class package ch19.e; public class Array { LinkedList list; public Array(LinkedList list) { this.list = list; } // 입력된 순서대로 배열을 만든다 public Object[] copy() { Object[] arr = new Object[list.size()]; for (int i = 0; i < list.size(); i++) { arr[i] = list.get(i); } return arr; } public Object[] reverseCopy() { Object[] arr = new Object[list.size()]; for (int i = list.size()-1, j = 0; i >= 0; i--, j++) { arr[j] = list.get(i); } return arr; } }
[ "eikhyeon.choi@gmail.com" ]
eikhyeon.choi@gmail.com
e1f7fd5b8713afc523e633ae0ab2276b306b33ca
952a08f553b6a92ddef3c3ffaa54adf1a9ba8c81
/invoice-app/src/main/java/com/siigo/invoice/model/ItemWarehouse.java
dfb9029d8e85d4fe027612ba1e4a4cd2447c7c8f
[]
no_license
charles1226/hackathonsigo-dllo
d272fd76309cafda35fed13db4d2c44ea90d13cf
28b506ae80e2fc552a7a0a2273cd812dc6063e08
refs/heads/master
2023-01-13T04:26:53.538703
2020-02-23T21:56:14
2020-02-23T21:56:14
242,357,003
0
0
null
2023-01-07T15:13:18
2020-02-22T14:39:13
Java
UTF-8
Java
false
false
1,046
java
package com.siigo.invoice.model; import java.io.Serializable; import java.util.UUID; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import org.hibernate.annotations.GenericGenerator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.Getter; import lombok.Setter; @Getter @Setter @Entity @Table(name = "almacen_productos") public class ItemWarehouse implements Serializable{ @Id @GeneratedValue(generator = "uuid2") @GenericGenerator(name = "uuid2", strategy = "uuid2") @Column(columnDefinition = "UUID") private UUID id; private Integer cantidad; @JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" }) @ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = "producto_id") private Producto producto; private static final long serialVersionUID = 1L; }
[ "=" ]
=
c7567c0e6261786680ebe84ac9b4a9a5ee52f2d2
23d5894b723765b4200889da55aa05ec37e8ab69
/sellingpartner-notifications-api/src/main/java/com/amazon/spapi/notifications/model/DeleteSubscriptionByIdResponse.java
7099387393ba556bc0e3cc66e4fd5aef79d19135
[]
no_license
penghaiping/selling-partner-sdk
420b5e2a48aa98189aa9e0d16514004377e53685
8a89d17b492f1fb1c319cc1fa5a7cc0a30abc8b9
refs/heads/master
2023-05-31T12:10:01.348630
2021-07-05T02:24:55
2021-07-05T02:24:55
322,236,368
19
8
null
null
null
null
UTF-8
Java
false
false
2,877
java
/* * Selling Partner API for Notifications * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package com.amazon.spapi.notifications.model; import java.util.Objects; import java.util.Arrays; import com.amazon.spapi.model.ErrorList; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; /** * The response schema for the deleteSubscriptionById operation. */ @ApiModel(description = "The response schema for the deleteSubscriptionById operation.") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:51:27.111+08:00") public class DeleteSubscriptionByIdResponse { @SerializedName("errors") private ErrorList errors = null; public DeleteSubscriptionByIdResponse errors(ErrorList errors) { this.errors = errors; return this; } /** * An unexpected condition occurred during the deleteSubscriptionById operation. * @return errors **/ @ApiModelProperty(value = "An unexpected condition occurred during the deleteSubscriptionById operation.") public ErrorList getErrors() { return errors; } public void setErrors(ErrorList errors) { this.errors = errors; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DeleteSubscriptionByIdResponse deleteSubscriptionByIdResponse = (DeleteSubscriptionByIdResponse) o; return Objects.equals(this.errors, deleteSubscriptionByIdResponse.errors); } @Override public int hashCode() { return Objects.hash(errors); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteSubscriptionByIdResponse {\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
[ "penghp@pingpongx.com" ]
penghp@pingpongx.com
ffacef179fea3c7976ea8bfb61c95c77f75efd95
2958df3f24ae8a8667394b6ebb083ba6a9a1d36a
/Universal08Cloud/src/br/UFSC/GRIMA/capp/GraphicsElements.java
c9c6c5a1e07cdff8760fc86e0654fb8e67530799
[]
no_license
igorbeninca/utevolux
27ac6af9a6d03f21d815c057f18524717b3d1c4d
3f602d9cf9f58d424c3ea458346a033724c9c912
refs/heads/master
2021-01-19T02:50:04.157218
2017-10-13T16:19:41
2017-10-13T16:19:41
51,842,805
0
0
null
null
null
null
UTF-8
Java
false
false
1,105
java
package br.UFSC.GRIMA.capp; import java.awt.Shape; import java.awt.geom.Rectangle2D; import br.UFSC.GRIMA.entidades.machiningResources.DrillingMachine; import br.UFSC.GRIMA.entidades.machiningResources.MachineTool; import br.UFSC.GRIMA.entidades.machiningResources.MillingMachine; public class GraphicsElements { private MachineTool machine; private double zoom = 1; public GraphicsElements(MachineTool machine) { this.machine = machine; } public Shape createShape() { Shape machineShape = null; if(machine.getClass() == DrillingMachine.class) { machineShape = this.createDrillingMachineShape(); } else if(machine.getClass() == MillingMachine.class) { machineShape = this.createMillingMachineShape(); } return machineShape; } private Shape createDrillingMachineShape() { Shape saida = null; saida = new Rectangle2D.Double(0, 0, 40 * zoom, 25 * zoom); return saida; } private Shape createMillingMachineShape() { Shape saida = null; saida = new Rectangle2D.Double(0, 0, 40 * zoom, 25 * zoom); return saida; } }
[ "pilarrmeister@gmail.com" ]
pilarrmeister@gmail.com
6f008214ef46bf52c2021b8ac01598f581ad527f
67efc0f6305391b8ff4675b429160777ebdceca3
/src/main/java/com/volmit/react/util/PacketHandler.java
f97aa1f9312ba1a7314a55cededb1ab2ebb00ddb
[]
no_license
cyberpwnn/React6
55d40b131ea698f363481e6b715af203fe72900f
884eefab1deb4797c88360274cfe315dd4758dd9
refs/heads/master
2021-03-27T09:09:40.947746
2018-12-10T04:01:10
2018-12-10T04:01:10
107,302,322
0
0
null
null
null
null
UTF-8
Java
false
false
1,409
java
package com.volmit.react.util; import com.volmit.volume.lang.collections.GList; public class PacketHandler { private GList<IPacket> accept; private PacketBinding side; private OSS out; private ISS in; public PacketHandler(PacketBinding side, OSS out, ISS in) { accept = new GList<IPacket>(); redirect(out, in); } public void redirect(OSS out, ISS in) { this.in = in; this.out = out; } public void accept(IPacket packet) throws IncompatablePacketException { if(packet.getBinding().equals(side)) { throw new IncompatablePacketException("Packet cannot send " + side + " to " + side); } accept.add(packet); } private IPacket findPacket(int id) { for(IPacket i : accept) { if(i.getId() == id) { return i; } } return null; } public IPacket read() throws Exception { int id = in.readInt(); int length = in.readInt(); byte[] pdata = new byte[length]; in.readFully(pdata); IPacket packet = findPacket(id); ISS inv = new ISS(pdata); if(packet == null) { inv.close(); throw new UnhandledPacketException("Unable to identify packet id: " + id); } packet.fromBytes(inv); inv.close(); return packet; } public void write(IPacket packet) throws Exception { OSS buf = new OSS(); packet.toBytes(buf); byte[] pdata = buf.getBytes(); out.writeInt(packet.getId()); out.writeInt(pdata.length); out.write(pdata); } }
[ "danielmillst@gmail.com" ]
danielmillst@gmail.com
2de6617e57a182eaeba40d8c1c1b4d3235713535
11ee9d37708a69a6ea579e9555659321c579c75e
/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTransitionRouteGroupsCallableFactory.java
c2368b6e1264589fe7a1edc5cbde9b79dc4789a1
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jessiexjiang27/java-dialogflow-cx
8e781f38656ba676d7e9758444a411386718df5d
fcd1ffbdd8fd5b7c0b47b7d20ba3ffdfab22f770
refs/heads/master
2023-01-25T05:20:48.370355
2020-12-03T09:28:07
2020-12-03T09:28:07
290,818,673
0
0
NOASSERTION
2020-08-27T15:54:29
2020-08-27T15:54:29
null
UTF-8
Java
false
false
5,089
java
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.cloud.dialogflow.cx.v3beta1.stub; import com.google.api.core.BetaApi; import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcCallableFactory; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientStreamingCallable; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS /** * gRPC callable factory implementation for Dialogflow API. * * <p>This class is for advanced usage. */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class GrpcTransitionRouteGroupsCallableFactory implements GrpcStubCallableFactory { @Override public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable( GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, UnaryCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext) { return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); } @Override public <RequestT, ResponseT, PagedListResponseT> UnaryCallable<RequestT, PagedListResponseT> createPagedCallable( GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, PagedCallSettings<RequestT, ResponseT, PagedListResponseT> pagedCallSettings, ClientContext clientContext) { return GrpcCallableFactory.createPagedCallable( grpcCallSettings, pagedCallSettings, clientContext); } @Override public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable( GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, BatchingCallSettings<RequestT, ResponseT> batchingCallSettings, ClientContext clientContext) { return GrpcCallableFactory.createBatchingCallable( grpcCallSettings, batchingCallSettings, clientContext); } @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") @Override public <RequestT, ResponseT, MetadataT> OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable( GrpcCallSettings<RequestT, com.google.longrunning.Operation> grpcCallSettings, OperationCallSettings<RequestT, ResponseT, MetadataT> operationCallSettings, ClientContext clientContext, OperationsStub operationsStub) { return GrpcCallableFactory.createOperationCallable( grpcCallSettings, operationCallSettings, clientContext, operationsStub); } @Override public <RequestT, ResponseT> BidiStreamingCallable<RequestT, ResponseT> createBidiStreamingCallable( GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, StreamingCallSettings<RequestT, ResponseT> streamingCallSettings, ClientContext clientContext) { return GrpcCallableFactory.createBidiStreamingCallable( grpcCallSettings, streamingCallSettings, clientContext); } @Override public <RequestT, ResponseT> ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable( GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, ServerStreamingCallSettings<RequestT, ResponseT> streamingCallSettings, ClientContext clientContext) { return GrpcCallableFactory.createServerStreamingCallable( grpcCallSettings, streamingCallSettings, clientContext); } @Override public <RequestT, ResponseT> ClientStreamingCallable<RequestT, ResponseT> createClientStreamingCallable( GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, StreamingCallSettings<RequestT, ResponseT> streamingCallSettings, ClientContext clientContext) { return GrpcCallableFactory.createClientStreamingCallable( grpcCallSettings, streamingCallSettings, clientContext); } }
[ "chingor@google.com" ]
chingor@google.com
6a4a7f45d92327d82a926b205d20a9b2e95c5ef5
be1e3535974528e715955b53b54e13413c1273cc
/examples/bank_example/01-1.java_hibernate/src/main/java/step05/Main.java
0a8e64d1b10b0f5901ec786de6b26ee99d2e41c4
[]
no_license
boojongmin/study_examples
fdb0efa66815e54c33351c74c0c661a4bab13a91
b0ab5d55842312574dfc5438a29a825ea58b3b19
refs/heads/master
2021-06-07T10:44:48.204709
2015-03-21T13:31:23
2015-03-21T13:31:23
31,471,030
0
0
null
2021-05-21T21:47:51
2015-02-28T18:00:03
Java
UTF-8
Java
false
false
1,318
java
package step05; import java.util.List; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; public class Main { public static void main(String[] args) { SessionFactory factory = new Configuration() .configure("step05/hibernate.cfg.xml") .buildSessionFactory(); Session session = factory.openSession(); Transaction tx = session.beginTransaction(); // StudentVo studentVo = new StudentVo("boojongmin01", "부종민01"); // PhoneNumberVo phoneNumberVo = new PhoneNumberVo("010-0000-0000"); // studentVo.setPhoneNumberVo(phoneNumberVo); // //phoneNumberVo.setStudentVo(studentVo); // session.save(studentVo); // // StudentVo studentVo2 = new StudentVo("boojongmin02", "부종민02"); // studentVo2.setPhoneNumberVo(phoneNumberVo); // session.save(studentVo2); SchoolVo schoolVo = new SchoolVo("학교01"); StudentVo studentVo1 = new StudentVo("boojongmin03", "부종민01"); StudentVo studentVo2 = new StudentVo("boojongmin04", "부종민02"); studentVo1.setSchoolVo(schoolVo); studentVo2.setSchoolVo(schoolVo); schoolVo.getStudentList().add(studentVo1); schoolVo.getStudentList().add(studentVo2); session.save(schoolVo); tx.commit(); System.exit(0); } }
[ "boojongmin@gmail.com" ]
boojongmin@gmail.com
cc5f5ea62120c4f101dfb156d868fa9414a5922c
ef01c02b57b7909ab51e9a51b5542db9a31568d0
/app/src/main/java/com/task/system/bean/ScaleRate.java
d20086c7750909bfcfba028dfad0e8179493cd63
[]
no_license
yanchengdeng/TaskSystem
3ddd4a7e6c5e3b6114e91d7422f76829c674e4e4
5ae106402ae3649f5eca9fcbabc414ae7a8badb5
refs/heads/master
2021-10-20T10:18:08.855313
2019-07-02T16:35:44
2019-07-02T16:35:44
175,538,745
0
0
null
null
null
null
UTF-8
Java
false
false
256
java
package com.task.system.bean; import java.io.Serializable; public class ScaleRate implements Serializable { public String title;// "备注", public String type;// "text", public String tips;// "备注" public String value;// "80004529" }
[ "yanchengdeng@gmail.com" ]
yanchengdeng@gmail.com
591d6db14e53ba71636bd4b4e26a3c6955c7aa03
c699fe58ca7b58a34f47cc3259fb8d567c676866
/softwarereuse/com/software/reuze/gb_TerrainPolarCamera.java
f9eefc0881cb9f0e5ab7a1c671f636cb38c310a9
[]
no_license
ammarblue/brad-baze-code-bank
9b0b300ab09f5ed315ce6ac0a8352fcd8a6e03e8
0cc496fbdef4f7b466d4905c23ae0bedaf9624c9
refs/heads/master
2021-01-01T05:47:15.497877
2013-05-31T15:05:31
2013-05-31T15:05:31
39,472,729
0
0
null
null
null
null
UTF-8
Java
false
false
1,029
java
package com.software.reuze; public class gb_TerrainPolarCamera { public gb_Vector3 m_camPos = new gb_Vector3(0.0f,2.4f,0.0f); public float m_CamAngleX = 0.f; public float m_CamAngleY = -0.3f; public gb_Vector3 m_camDir=new gb_Vector3(); public gb_TerrainPolarCamera(gb_Vector3 cpos, float angX, float angY ) { m_camPos = cpos; m_CamAngleX = angX; m_CamAngleY = angY; update(0,0); } public gb_TerrainPolarCamera() { update(0,0); } public void update(float dy, float dz) { m_CamAngleX += dy; m_CamAngleY += -dz; float cy=(float)Math.cos(m_CamAngleY); m_camDir.set((float)Math.sin(m_CamAngleX)*cy, (float)Math.sin(m_CamAngleY),(float)Math.cos(m_CamAngleX)*cy); } public void forward(float v ) { m_camPos.add(m_camDir.tmp().mul(v*0.25f)); } public void side(float v ) { gb_Vector3 f = m_camDir.tmp().crs(new gb_Vector3(0,1,0)); f.nor(); f.mul(v*0.25f); m_camPos.add(f); } }
[ "in_tech@mac.com" ]
in_tech@mac.com
b2e9a6b1cec900cf0ddf85b460856d700e8ad0b4
ca030864a3a1c24be6b9d1802c2353da4ca0d441
/classes8.dex_source_from_JADX/com/facebook/timeline/event/TimelineStoryEvent.java
363195ce98404e44bf4cc38416e6adaf78e7ca1e
[]
no_license
pxson001/facebook-app
87aa51e29195eeaae69adeb30219547f83a5b7b1
640630f078980f9818049625ebc42569c67c69f7
refs/heads/master
2020-04-07T20:36:45.758523
2018-03-07T09:04:57
2018-03-07T09:04:57
124,208,458
4
0
null
null
null
null
UTF-8
Java
false
false
180
java
package com.facebook.timeline.event; import com.facebook.content.event.FbEvent; /* compiled from: map_location */ public abstract class TimelineStoryEvent implements FbEvent { }
[ "son.pham@jmango360.com" ]
son.pham@jmango360.com
9449d076b02e8c1b454eedeba139e42d43eca704
8aac068aaeb2f3edd5a8e4516711ac503500f926
/icosom 16-12-19 backup/iCosom Social/app/src/main/java/com/icosom/social/fragment/TransactionHistoryFragment.java
43d73f2995c4dd2ca1d2dadbe4799544500c6429
[]
no_license
greenusys/androidBackUp
f436c0f2d7c91ad99b2223556acc8a0b1c730bf1
2cb69c8087f7758f7711ab79ea4b1b05ec47dc34
refs/heads/master
2020-12-14T11:14:33.403690
2020-01-18T11:29:22
2020-01-18T11:29:22
234,721,480
0
0
null
null
null
null
UTF-8
Java
false
false
790
java
package com.icosom.social.fragment; import android.os.Bundle; import androidx.fragment.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.icosom.social.R; /** * A simple {@link Fragment} subclass. */ public class TransactionHistoryFragment extends Fragment { public TransactionHistoryFragment() { // Required empty public constructor } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final View view = inflater.inflate(R.layout.fragment_transaction_history, container, false); // Inflate the layout for this fragment return view; } }
[ "sayed@Sayed.Md.Kaif" ]
sayed@Sayed.Md.Kaif
d3aebc164c49dc10abd78bd0261670e8de58183f
f633a3e286512f48d7f997bd132db378be65a104
/src/org.xtuml.bp.ui.canvas.test/src/org/xtuml/bp/ui/canvas/test/InterfaceDrawingTests.java
4b06307ece26a4a1da38cd22f20bdcd624cb8b3e
[ "Apache-2.0" ]
permissive
yakashi/bridgepoint
d14a5d31bab762d33d0766e2a302cd533222feef
3301b74190286a23d4a7982fe1070d573e63b9bb
refs/heads/master
2021-01-18T10:19:28.177619
2016-03-21T13:33:29
2016-03-21T13:33:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,471
java
package org.xtuml.bp.ui.canvas.test; //===================================================================== // //File: InterfaceDrawingTests.java // //(c) Copyright 2004-2014 Mentor Graphics Corporation All rights reserved. // //===================================================================== import org.xtuml.bp.core.Package_c; import org.xtuml.bp.core.common.ClassQueryInterface_c; import org.xtuml.bp.test.common.UITestingUtilities; import org.xtuml.bp.ui.graphics.editor.GraphicalEditor; public class InterfaceDrawingTests extends CanvasTest { public InterfaceDrawingTests(String name) { super(null, name); } private Package_c testPackage; private String test_id; private static boolean generate; @Override protected void initialSetup() throws Exception { super.initialSetup(); loadProject("testInterfaceDrawing"); testPackage = Package_c.getOneEP_PKGOnR1401(m_sys, new ClassQueryInterface_c() { @Override public boolean evaluate(Object candidate) { return ((Package_c) candidate).getName().equals("Package"); } }); } public void testIntefaceDrawing() { test_id = "1"; CanvasTestUtilities.openDiagramEditor(testPackage); GraphicalEditor editor = (GraphicalEditor) UITestingUtilities.getActiveEditor(); validateOrGenerateResults(editor, generate); } @Override protected String getResultName() { return "InterfaceDrawingTests" + "_" + test_id; } }
[ "s.keith.brown@gmail.com" ]
s.keith.brown@gmail.com
8aa5f9a7aa02610a6a7bfe27058cf066e440f707
bcdcfb873617f90c963f2a37718a1196b08a4501
/workplace/free/src/android/support/v4/app/NavUtilsJB.java
42e1a1a7b00aea63a367fc1bd07f0e4c1a132ea1
[]
no_license
realjune/androidCode
13dc10be2becbdc4778ed2fb768c1acd199aee85
9437d3154ed01fa8a25ef918151e49bcd47fd9b6
refs/heads/master
2021-01-01T18:02:55.627149
2014-05-04T10:22:24
2014-05-04T10:22:24
11,117,339
0
0
null
null
null
null
UTF-8
Java
false
false
927
java
package android.support.v4.app; import android.app.Activity; import android.content.Intent; import android.content.pm.ActivityInfo; class NavUtilsJB { public static Intent getParentActivityIntent(Activity paramActivity) { return paramActivity.getParentActivityIntent(); } public static String getParentActivityName(ActivityInfo paramActivityInfo) { return paramActivityInfo.parentActivityName; } public static void navigateUpTo(Activity paramActivity, Intent paramIntent) { paramActivity.navigateUpTo(paramIntent); } public static boolean shouldUpRecreateTask(Activity paramActivity, Intent paramIntent) { return paramActivity.shouldUpRecreateTask(paramIntent); } } /* Location: C:\Users\junxu.wang\Desktop\goldfree app\apk_tools\classes_dex2jar.jar * Qualified Name: android.support.v4.app.NavUtilsJB * JD-Core Version: 0.5.4 */
[ "7978241a@163.com" ]
7978241a@163.com
264060c29b787c18b3695af94e628ff599d84220
cf90c7625b1e8787438e485a46f91a87df5182cd
/src/main/java/io/ebean/hazelcast/HzCache.java
dbcd230dbffc46196cb1fa54c271fee34e7a998f
[ "Apache-2.0" ]
permissive
ebean-orm/ebean-hazelcast
8a7059bc662af8713c458f96908833045364e24f
c2408080868ca6598de0addc0455798e11dbbbab
refs/heads/master
2023-08-31T23:51:00.677163
2022-11-23T22:39:17
2022-11-23T22:39:17
55,578,138
0
4
Apache-2.0
2022-12-27T14:41:29
2016-04-06T05:27:42
Java
UTF-8
Java
false
false
915
java
package io.ebean.hazelcast; import com.hazelcast.map.IMap; import io.ebean.cache.ServerCache; import java.util.Map; import java.util.Set; /** * IMap cache implementation for Ebean ServerCache interface. */ final class HzCache implements ServerCache { private final IMap<Object, Object> map; HzCache(IMap<Object, Object> map) { this.map = map; } @Override public Map<Object, Object> getAll(Set<Object> keys) { return map.getAll(keys); } @Override public void putAll(Map<Object, Object> keyValues) { map.putAll(keyValues); } @Override public Object get(Object id) { return map.get(id); } @Override public void put(Object id, Object value) { map.put(id, value); } @Override public void remove(Object id) { map.delete(id); } @Override public void clear() { map.clear(); } @Override public int size() { return map.size(); } }
[ "robin.bygrave@gmail.com" ]
robin.bygrave@gmail.com
d25e858ec9762bbca2ca6512a2f6e7be680986ee
ef44d044ff58ebc6c0052962b04b0130025a102b
/com.freevisiontech.fvmobile_source_from_JADX/sources/org/xutils/p018db/sqlite/WhereBuilder.java
ca336dd212185474971b0e827a22f5c63303b355
[]
no_license
thedemoncat/FVShare
e610bac0f2dc394534ac0ccec86941ff523e2dfd
bd1e52defaec868f0d1f9b4f2039625c8ff3ee4a
refs/heads/master
2023-08-06T04:11:16.403943
2021-09-25T10:11:13
2021-09-25T10:11:13
410,232,121
2
0
null
null
null
null
UTF-8
Java
false
false
7,588
java
package org.xutils.p018db.sqlite; import android.text.TextUtils; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.xutils.p018db.converter.ColumnConverterFactory; import org.xutils.p018db.table.ColumnUtils; /* renamed from: org.xutils.db.sqlite.WhereBuilder */ public class WhereBuilder { private final List<String> whereItems = new ArrayList(); private WhereBuilder() { } /* renamed from: b */ public static WhereBuilder m1577b() { return new WhereBuilder(); } /* renamed from: b */ public static WhereBuilder m1578b(String columnName, String op, Object value) { WhereBuilder result = new WhereBuilder(); result.appendCondition((String) null, columnName, op, value); return result; } public WhereBuilder and(String columnName, String op, Object value) { appendCondition(this.whereItems.size() == 0 ? null : "AND", columnName, op, value); return this; } public WhereBuilder and(WhereBuilder where) { return expr((this.whereItems.size() == 0 ? " " : "AND ") + "(" + where.toString() + ")"); } /* renamed from: or */ public WhereBuilder mo20902or(String columnName, String op, Object value) { appendCondition(this.whereItems.size() == 0 ? null : "OR", columnName, op, value); return this; } /* renamed from: or */ public WhereBuilder mo20903or(WhereBuilder where) { return expr((this.whereItems.size() == 0 ? " " : "OR ") + "(" + where.toString() + ")"); } public WhereBuilder expr(String expr) { this.whereItems.add(" " + expr); return this; } public int getWhereItemSize() { return this.whereItems.size(); } public String toString() { if (this.whereItems.size() == 0) { return ""; } StringBuilder sb = new StringBuilder(); for (String item : this.whereItems) { sb.append(item); } return sb.toString(); } private void appendCondition(String conj, String columnName, String op, Object value) { StringBuilder builder = new StringBuilder(); if (this.whereItems.size() > 0) { builder.append(" "); } if (!TextUtils.isEmpty(conj)) { builder.append(conj).append(" "); } builder.append("\"").append(columnName).append("\""); if ("!=".equals(op)) { op = "<>"; } else if ("==".equals(op)) { op = "="; } if (value != null) { builder.append(" ").append(op).append(" "); if ("IN".equalsIgnoreCase(op)) { Iterable<?> items = null; if (value instanceof Iterable) { items = (Iterable) value; } else if (value.getClass().isArray()) { int len = Array.getLength(value); List<Object> arrayList = new ArrayList<>(len); for (int i = 0; i < len; i++) { arrayList.add(Array.get(value, i)); } items = arrayList; } if (items != null) { StringBuilder inSb = new StringBuilder("("); for (Object item : items) { Object itemColValue = ColumnUtils.convert2DbValueIfNeeded(item); if (ColumnDbType.TEXT.equals(ColumnConverterFactory.getDbColumnType(itemColValue.getClass()))) { String valueStr = itemColValue.toString(); if (valueStr.indexOf(39) != -1) { valueStr = valueStr.replace("'", "''"); } inSb.append("'").append(valueStr).append("'"); } else { inSb.append(itemColValue); } inSb.append(","); } inSb.deleteCharAt(inSb.length() - 1); inSb.append(")"); builder.append(inSb.toString()); } else { throw new IllegalArgumentException("value must be an Array or an Iterable."); } } else if ("BETWEEN".equalsIgnoreCase(op)) { Iterable<?> items2 = null; if (value instanceof Iterable) { items2 = (Iterable) value; } else if (value.getClass().isArray()) { int len2 = Array.getLength(value); List<Object> arrayList2 = new ArrayList<>(len2); for (int i2 = 0; i2 < len2; i2++) { arrayList2.add(Array.get(value, i2)); } items2 = arrayList2; } if (items2 != null) { Iterator<?> iterator = items2.iterator(); if (!iterator.hasNext()) { throw new IllegalArgumentException("value must have tow items."); } Object start = iterator.next(); if (!iterator.hasNext()) { throw new IllegalArgumentException("value must have tow items."); } Object end = iterator.next(); Object startColValue = ColumnUtils.convert2DbValueIfNeeded(start); Object endColValue = ColumnUtils.convert2DbValueIfNeeded(end); if (ColumnDbType.TEXT.equals(ColumnConverterFactory.getDbColumnType(startColValue.getClass()))) { String startStr = startColValue.toString(); if (startStr.indexOf(39) != -1) { startStr = startStr.replace("'", "''"); } String endStr = endColValue.toString(); if (endStr.indexOf(39) != -1) { endStr = endStr.replace("'", "''"); } builder.append("'").append(startStr).append("'"); builder.append(" AND "); builder.append("'").append(endStr).append("'"); } else { builder.append(startColValue); builder.append(" AND "); builder.append(endColValue); } } else { throw new IllegalArgumentException("value must be an Array or an Iterable."); } } else { Object value2 = ColumnUtils.convert2DbValueIfNeeded(value); if (ColumnDbType.TEXT.equals(ColumnConverterFactory.getDbColumnType(value2.getClass()))) { String valueStr2 = value2.toString(); if (valueStr2.indexOf(39) != -1) { valueStr2 = valueStr2.replace("'", "''"); } builder.append("'").append(valueStr2).append("'"); } else { builder.append(value2); } } } else if ("=".equals(op)) { builder.append(" IS NULL"); } else if ("<>".equals(op)) { builder.append(" IS NOT NULL"); } else { builder.append(" ").append(op).append(" NULL"); } this.whereItems.add(builder.toString()); } }
[ "nl.ruslan@yandex.ru" ]
nl.ruslan@yandex.ru
e7f1adcad0290ed99acfb5d5a3fd630fe14a111e
660c3dd5b03ad4dda1ccbb05744792360d8a9773
/app/src/main/java/com/kikikeji/weizhuo/CustomAppWidget.java
303dcf4577fc37f588d2f74147207c3f6a4e82fc
[ "Apache-2.0" ]
permissive
luoran-gaolili/launcher3-N-full_folder
40e0079c2bd459edb2dc966f4087a8890d283ca5
d8aab62c6caefb6323a4e8f8839dccf4da5a5655
refs/heads/master
2021-06-27T10:47:50.482543
2017-09-15T07:23:17
2017-09-15T07:23:17
103,620,963
2
5
null
null
null
null
UTF-8
Java
false
false
339
java
package com.kikikeji.weizhuo; public interface CustomAppWidget { public String getLabel(); public int getPreviewImage(); public int getIcon(); public int getWidgetLayout(); public int getSpanX(); public int getSpanY(); public int getMinSpanX(); public int getMinSpanY(); public int getResizeMode(); }
[ "1466746723@qq.com" ]
1466746723@qq.com
09892fd875ad2060061ec853db514a22ba426587
2da87d8ef7afa718de7efa72e16848799c73029f
/ikep4-lightpack/src/main/java/com/lgcns/ikep4/lightpack/board/restful/model/BoardParam.java
123107794b7b859bb1e65e0a9734d1185b7e910c
[]
no_license
haifeiforwork/ehr-moo
d3ee29e2cae688f343164384958f3560255e52b2
921ff597b316a9a0111ed4db1d5b63b88838d331
refs/heads/master
2020-05-03T02:34:00.078388
2018-04-05T00:54:04
2018-04-05T00:54:04
178,373,434
0
1
null
2019-03-29T09:21:01
2019-03-29T09:21:01
null
UTF-8
Java
false
false
2,774
java
/* * Copyright (C) 2011 LG CNS Inc. * All rights reserved. * * 모든 권한은 LG CNS(http://www.lgcns.com)에 있으며, * LG CNS의 허락없이 소스 및 이진형식으로 재배포, 사용하는 행위를 금지합니다. */ package com.lgcns.ikep4.lightpack.board.restful.model; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement(name="boardParam") public class BoardParam{ private String portalId; private String userId; private String boardId; private String searchWord; private int listSize; private int page; private String itemId; private String itemTitle; private String itemContent; private String itemParentId; private String itemGroupId; private int itemStep; private int itemLevel; private String commentContent; private String commentId; public String getPortalId() { return portalId; } public void setPortalId(String portalId) { this.portalId = portalId; } public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } public String getBoardId() { return boardId; } public void setBoardId(String boardId) { this.boardId = boardId; } public String getSearchWord() { return searchWord; } public void setSearchWord(String searchWord) { this.searchWord = searchWord; } public int getListSize() { return listSize; } public void setListSize(int listSize) { this.listSize = listSize; } public int getPage() { return page; } public void setPage(int page) { this.page = page; } public String getItemId() { return itemId; } public void setItemId(String itemId) { this.itemId = itemId; } public String getItemTitle() { return itemTitle; } public void setItemTitle(String itemTitle) { this.itemTitle = itemTitle; } public String getItemContent() { return itemContent; } public void setItemContent(String itemContent) { this.itemContent = itemContent; } public String getItemParentId() { return itemParentId; } public void setItemParentId(String itemParentId) { this.itemParentId = itemParentId; } public String getItemGroupId() { return itemGroupId; } public void setItemGroupId(String itemGroupId) { this.itemGroupId = itemGroupId; } public int getItemStep() { return itemStep; } public void setItemStep(int itemStep) { this.itemStep = itemStep; } public int getItemLevel() { return itemLevel; } public void setItemLevel(int itemLevel) { this.itemLevel = itemLevel; } public String getCommentContent() { return commentContent; } public void setCommentContent(String commentContent) { this.commentContent = commentContent; } public String getCommentId() { return commentId; } public void setCommentId(String commentId) { this.commentId = commentId; } }
[ "haneul9@gmail.com" ]
haneul9@gmail.com
b89e1c3d124e7101fa2970aa277c857690b11f40
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/61/org/apache/commons/math/exception/util/MessageFactory_buildMessage_42.java
be433d1881e29d1e1037ae98b6a9db7b41d45323
[]
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
450
java
org apach common math except util class construct local messag version revis date messag factori messagefactori build messag string pattern argument param local local messag translat param pattern format specifi param argument format argument local messag string string build messag buildmessag local local localiz pattern object argument build messag buildmessag local pattern argument
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
4db8794de0c97410dc8bac66540dc7d0c6a0460a
288cfde56612f9935f84846737d9ee631ddd25b5
/TFS.IRP.V8 Project/Project/src/com/tfs/irp/opertype/entity/IrpOpertype.java
6a823e7167c8d7dd21b87923204217b7c248d2b4
[]
no_license
tfsgaotong/irpv8
b97d42e616a71d8d4f4260b27d2b26dc391d4acc
6d2548544903dcfbcb7dfdb8e95e8f73937691f2
refs/heads/master
2021-05-15T07:25:15.874960
2017-11-22T09:51:27
2017-11-22T09:51:27
111,659,185
0
0
null
null
null
null
UTF-8
Java
false
false
6,682
java
package com.tfs.irp.opertype.entity; import java.util.Date; import com.tfs.irp.base.IrpBaseObj; public class IrpOpertype extends IrpBaseObj{ /** * This field was generated by Apache iBATIS ibator. This field corresponds to the database column IRP_OPERTYPE.OPERTYPEID * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ private Long opertypeid; /** * This field was generated by Apache iBATIS ibator. This field corresponds to the database column IRP_OPERTYPE.OPERTYPE * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ private String opertype; /** * This field was generated by Apache iBATIS ibator. This field corresponds to the database column IRP_OPERTYPE.OPERNAME * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ private String opername; /** * This field was generated by Apache iBATIS ibator. This field corresponds to the database column IRP_OPERTYPE.OPERDESC * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ private String operdesc; /** * This field was generated by Apache iBATIS ibator. This field corresponds to the database column IRP_OPERTYPE.CRTIME * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ private Date crtime; /** * This field was generated by Apache iBATIS ibator. This field corresponds to the database column IRP_OPERTYPE.CRUSER * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ private String cruser; /** * This field was generated by Apache iBATIS ibator. This field corresponds to the database column IRP_OPERTYPE.MODIFIED * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ private Integer modified; /** * This method was generated by Apache iBATIS ibator. This method returns the value of the database column IRP_OPERTYPE.OPERTYPEID * @return the value of IRP_OPERTYPE.OPERTYPEID * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public Long getOpertypeid() { return opertypeid; } /** * This method was generated by Apache iBATIS ibator. This method sets the value of the database column IRP_OPERTYPE.OPERTYPEID * @param opertypeid the value for IRP_OPERTYPE.OPERTYPEID * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public void setOpertypeid(Long opertypeid) { this.opertypeid = opertypeid; } /** * This method was generated by Apache iBATIS ibator. This method returns the value of the database column IRP_OPERTYPE.OPERTYPE * @return the value of IRP_OPERTYPE.OPERTYPE * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public String getOpertype() { return opertype; } /** * This method was generated by Apache iBATIS ibator. This method sets the value of the database column IRP_OPERTYPE.OPERTYPE * @param opertype the value for IRP_OPERTYPE.OPERTYPE * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public void setOpertype(String opertype) { this.opertype = opertype; } /** * This method was generated by Apache iBATIS ibator. This method returns the value of the database column IRP_OPERTYPE.OPERNAME * @return the value of IRP_OPERTYPE.OPERNAME * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public String getOpername() { return opername; } /** * This method was generated by Apache iBATIS ibator. This method sets the value of the database column IRP_OPERTYPE.OPERNAME * @param opername the value for IRP_OPERTYPE.OPERNAME * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public void setOpername(String opername) { this.opername = opername; } /** * This method was generated by Apache iBATIS ibator. This method returns the value of the database column IRP_OPERTYPE.OPERDESC * @return the value of IRP_OPERTYPE.OPERDESC * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public String getOperdesc() { return operdesc; } /** * This method was generated by Apache iBATIS ibator. This method sets the value of the database column IRP_OPERTYPE.OPERDESC * @param operdesc the value for IRP_OPERTYPE.OPERDESC * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public void setOperdesc(String operdesc) { this.operdesc = operdesc; } /** * This method was generated by Apache iBATIS ibator. This method returns the value of the database column IRP_OPERTYPE.CRTIME * @return the value of IRP_OPERTYPE.CRTIME * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public Date getCrtime() { return crtime; } /** * This method was generated by Apache iBATIS ibator. This method sets the value of the database column IRP_OPERTYPE.CRTIME * @param crtime the value for IRP_OPERTYPE.CRTIME * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public void setCrtime(Date crtime) { this.crtime = crtime; } /** * This method was generated by Apache iBATIS ibator. This method returns the value of the database column IRP_OPERTYPE.CRUSER * @return the value of IRP_OPERTYPE.CRUSER * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public String getCruser() { return cruser; } /** * This method was generated by Apache iBATIS ibator. This method sets the value of the database column IRP_OPERTYPE.CRUSER * @param cruser the value for IRP_OPERTYPE.CRUSER * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public void setCruser(String cruser) { this.cruser = cruser; } /** * This method was generated by Apache iBATIS ibator. This method returns the value of the database column IRP_OPERTYPE.MODIFIED * @return the value of IRP_OPERTYPE.MODIFIED * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public Integer getModified() { return modified; } /** * This method was generated by Apache iBATIS ibator. This method sets the value of the database column IRP_OPERTYPE.MODIFIED * @param modified the value for IRP_OPERTYPE.MODIFIED * @ibatorgenerated Sat Apr 13 16:02:30 CST 2013 */ public void setModified(Integer modified) { this.modified = modified; } /** 对象表名 **/ public final static String TABLE_NAME = "IRP_OPERTYPE"; /** 主键字段�?**/ public final static String ID_FIELD_NAME = "OPERTYPEID"; @Override public Long getId() { // TODO Auto-generated method stub return this.opertypeid; } @Override public String getName() { // TODO Auto-generated method stub return this.opername; } @Override public String getTableName() { // TODO Auto-generated method stub return TABLE_NAME; } @Override public String getIdFieldName() { // TODO Auto-generated method stub return ID_FIELD_NAME; } }
[ "gao.tong@ruisiming.com.cn" ]
gao.tong@ruisiming.com.cn
4a77cc6c5e9c224f4b09058dacdfbf55b494e666
26e611565ce0e9eed154caaf6548a281a829d356
/onvif-ws-client/src/main/java/org/onvif/ver10/media/wsdl/AddMetadataConfigurationResponse.java
b0f6bc2fce8ab416d66e152db40639115b7f4c0f
[ "Apache-2.0" ]
permissive
doniexun/onvif-1
ecb366070dca73781c7baf3b9bcff94dd68001f5
ff9839c099e5f81d877a1753598a508c5c0bfc6b
refs/heads/master
2020-05-27T09:14:42.784064
2017-12-20T18:15:59
2017-12-20T18:15:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
846
java
package org.onvif.ver10.media.wsdl; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Classe Java per anonymous complex type. * * <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe. * * <pre> * &lt;complexType&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;sequence&gt; * &lt;/sequence&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "AddMetadataConfigurationResponse") public class AddMetadataConfigurationResponse { }
[ "f.pompermaier@gmail.com" ]
f.pompermaier@gmail.com
e76e14299dfafddf793b228166c9748a114115c9
2374823caba6967f47870b8214d819af1e720ec3
/app/src/main/java/cn/ucai/fulicenter/data/net/OnCompleteListener.java
a6f5cb51f165478b68f011e55d4de3aa2d64ca32
[]
no_license
clawpo/fulicenter-mvp
ba6f56e6007a7d3c7ad6b6776e051a0bf8e3baff
6d95bc13fba81fd10d457541a9347fc534f80d7c
refs/heads/master
2021-04-29T06:06:06.013808
2017-01-06T09:56:42
2017-01-06T09:56:42
77,970,134
0
1
null
null
null
null
UTF-8
Java
false
false
176
java
package cn.ucai.fulicenter.data.net; import cn.ucai.fulicenter.data.utils.OkHttpUtils; public interface OnCompleteListener<T> extends OkHttpUtils.OnCompleteListener<T> { }
[ "clawpo@foxmail.com" ]
clawpo@foxmail.com
dab9d368f17114675259ac336b154a87387629af
bb85a06d3fff8631f5dca31a55831cd48f747f1f
/src/main/core/com/goisan/system/tools/NumTrans.java
3ab497da94191398c00b667117bdaa42d2dfe0e4
[]
no_license
lqj12267488/Gemini
01e2328600d0dfcb25d1880e82c30f6c36d72bc9
e1677dc1006a146e60929f02dba0213f21c97485
refs/heads/master
2022-12-23T10:55:38.115096
2019-12-05T01:51:26
2019-12-05T01:51:26
229,698,706
0
0
null
2022-12-16T11:36:09
2019-12-23T07:20:16
Java
UTF-8
Java
false
false
1,260
java
package com.goisan.system.tools; import java.util.Scanner; public class NumTrans { private static Scanner sc ; private static String input; private static String[] units = {"", "十", "百", "千", "万", "十", "百", "千", "亿"}; private static String[] nums = {"零", "一", "二", "三", "四", "五", "六", "七", "八", "九", "十"}; private static String[] result; public static String get(String input) { String out = ""; result = new String[input.length()]; for(int i=0;i<result.length;i++) { result[i] = String.valueOf(input.charAt(i)); } int back = 0; for(int i=0;i<result.length;i++) { if(!"0".equals(result[i])) { back = result.length-i-1; out += nums[Integer.parseInt(result[i])]; out += units[back]; }else { if(i==result.length-1) { }else { if(!"0".equals(result[i + 1])) { out += nums[0]; } } } } if ("1".equals(result[0]) && input.length()==2) { out = out.substring(1,out.length()); } return out; } }
[ "1240414272" ]
1240414272
73b7e37143384fca425c3279fbdd9d2568294b38
bb6929a3365adeaf22dbc0c6590206a8ce608e7c
/Code/xsd/test/com/accela/adapter/model/function/GetActivitySummarys.java
471790e631825a138e8ce020ce66a33127aca5f1
[]
no_license
accela-robinson/CERS
a33c7a58ae90d82f430fcb9188a7a32951c47d81
58624383e0cb9db8d2d70bc6134edca585610eba
refs/heads/master
2020-04-02T12:23:34.108097
2015-04-10T05:34:02
2015-04-10T05:34:02
30,371,654
2
1
null
2015-04-08T07:01:04
2015-02-05T18:39:49
Java
UTF-8
Java
false
false
2,254
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.12.04 at 06:33:27 PM CST // package com.accela.adapter.model.function; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for getActivitySummarys complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="getActivitySummarys"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="capIds" type="{}capIds" minOccurs="0"/> * &lt;element name="system" type="{}system" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "getActivitySummarys", propOrder = { "capIds", "system" }) public class GetActivitySummarys { protected CapIds capIds; protected System system; /** * Gets the value of the capIds property. * * @return * possible object is * {@link CapIds } * */ public CapIds getCapIds() { return capIds; } /** * Sets the value of the capIds property. * * @param value * allowed object is * {@link CapIds } * */ public void setCapIds(CapIds value) { this.capIds = value; } /** * Gets the value of the system property. * * @return * possible object is * {@link System } * */ public System getSystem() { return system; } /** * Sets the value of the system property. * * @param value * allowed object is * {@link System } * */ public void setSystem(System value) { this.system = value; } }
[ "rleung@accela.com" ]
rleung@accela.com
8d42d69796ead1ebbe3ecddf969097e49e4828ea
297334a20620a6b1e3d28c1b3d8051e3520bf9cb
/app/src/main/java/com/facebook/commom/executors/impl/ConstrainedExecutorService.java
8d3c8c732233db3435d66c73a80114852394f14d
[]
no_license
joydit/MyFresco
077810c3b7aba239f4e8e0ccb3f0916529516fb4
da1b97684f3c39c0c224147edb25b4631521dadc
refs/heads/master
2021-07-13T21:01:07.125564
2017-10-20T11:12:08
2017-10-20T11:12:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,443
java
package com.facebook.commom.executors.impl; /** * Created by heshixiyang on 2017/3/12. */ import com.facebook.commom.logging.FLog; import java.util.List; import java.util.concurrent.AbstractExecutorService; import java.util.concurrent.BlockingQueue; import java.util.concurrent.Executor; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.RejectedExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; /** * 一个代理已经存在的{@link Executor}的{@link java.util.concurrent.ExecutorService} * 但是其通过预先的设置来约束当前执行的task * A {@link java.util.concurrent.ExecutorService} that delegates to an existing {@link Executor} * but constrains the number of concurrently executing tasks to a pre-configured value. */ public class ConstrainedExecutorService extends AbstractExecutorService { private static final Class<?> TAG = ConstrainedExecutorService.class; private final String mName; private final Executor mExecutor; private volatile int mMaxConcurrency; private final BlockingQueue<Runnable> mWorkQueue; private final Worker mTaskRunner; private final AtomicInteger mPendingWorkers; private final AtomicInteger mMaxQueueSize; /** * Creates a new {@code ConstrainedExecutorService}. * @param name Friendly name to identify the executor in logging and reporting. * @param maxConcurrency Maximum number of tasks to execute in parallel on the delegate executor. * @param executor Delegate executor for actually running tasks. * @param workQueue Queue to hold {@link Runnable}s for eventual execution. */ public ConstrainedExecutorService( String name, int maxConcurrency, Executor executor, BlockingQueue<Runnable> workQueue) { if (maxConcurrency <= 0) { throw new IllegalArgumentException("max concurrency must be > 0"); } mName = name; mExecutor = executor; mMaxConcurrency = maxConcurrency; mWorkQueue = workQueue; mTaskRunner = new Worker(); mPendingWorkers = new AtomicInteger(0); mMaxQueueSize = new AtomicInteger(0); } /** * 一个创建{@code ConstrainedExecutorService}的工厂,基于{@link LinkedBlockingQueue} * Factory method to create a new {@code ConstrainedExecutorService} with an unbounded * {@link LinkedBlockingQueue} queue. * @param name Friendly name to identify the executor in logging and reporting. * @param maxConcurrency Maximum number of tasks to execute in parallel on the delegate executor. * @param queueSize Number of items that can be queued before new submissions are rejected. * @param executor Delegate executor for actually running tasks. * @return new {@code ConstrainedExecutorService} instance. */ public static ConstrainedExecutorService newConstrainedExecutor( String name, int maxConcurrency, int queueSize, Executor executor) { return new ConstrainedExecutorService( name, maxConcurrency, executor, new LinkedBlockingQueue<Runnable>(queueSize)); } /** * 判断队列是否空闲。 * Determine whether or not the queue is idle. * @return true if there is no work being executed and the work queue is empty, false otherwise. */ public boolean isIdle() { return mWorkQueue.isEmpty() && (mPendingWorkers.get() == 0); } /** * 提交一个任务执行 * Submit a task to be executed in the future. * @param runnable The task to be executed. */ @Override public void execute(Runnable runnable) { if (runnable == null) { throw new NullPointerException("runnable parameter is null"); } if (!mWorkQueue.offer(runnable)) { throw new RejectedExecutionException( mName + " queue is full, size=" + mWorkQueue.size()); } final int queueSize = mWorkQueue.size(); final int maxSize = mMaxQueueSize.get(); if ((queueSize > maxSize) && mMaxQueueSize.compareAndSet(maxSize, queueSize)) { FLog.v(TAG, "%s: max pending work in queue = %d", mName, queueSize); } // else, there was a race and another thread updated and logged the max queue size startWorkerIfNeeded(); } /** * Submits the single {@code Worker} instance {@code mTaskRunner} to the underlying executor an * additional time if there are fewer than {@code mMaxConcurrency} pending submissions. Does * nothing if the maximum number of workers is already pending. */ private void startWorkerIfNeeded() { // Perform a compare-and-swap retry loop for synchronization to make sure we don't start more // workers than desired. int currentCount = mPendingWorkers.get(); while (currentCount < mMaxConcurrency) { int updatedCount = currentCount + 1; if (mPendingWorkers.compareAndSet(currentCount, updatedCount)) { // Start a new worker. FLog.v(TAG, "%s: starting worker %d of %d", mName, updatedCount, mMaxConcurrency); mExecutor.execute(mTaskRunner); break; } // else: compareAndSet failed due to race; snapshot the new count and try again FLog.v(TAG, "%s: race in startWorkerIfNeeded; retrying", mName); currentCount = mPendingWorkers.get(); } } @Override public void shutdown() { throw new UnsupportedOperationException(); } @Override public List<Runnable> shutdownNow() { throw new UnsupportedOperationException(); } @Override public boolean isShutdown() { return false; } @Override public boolean isTerminated() { return false; } @Override public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { throw new UnsupportedOperationException(); } /** * 一个私有的class,其可以不断的从work队列中移除task并且运行它, * 这个class是没有状态的,所以这个单例可能会被提交多次 * Private worker class that removes one task from the work queue and runs it. This class * maintains no state of its own, so a single instance may be submitted to an executor * multiple times. */ private class Worker implements Runnable { @Override public void run() { try { Runnable runnable = mWorkQueue.poll(); if (runnable != null) { runnable.run(); } else { // It is possible that a new worker was started before a previously started worker // de-queued its work item. FLog.v(TAG, "%s: Worker has nothing to run", mName); } } finally { int workers = mPendingWorkers.decrementAndGet(); if (!mWorkQueue.isEmpty()) { startWorkerIfNeeded(); } else { FLog.v(TAG, "%s: worker finished; %d workers left", mName, workers); } } } } }
[ "a1018998632@gmail.com" ]
a1018998632@gmail.com
2015aface5a923209ae649637edda774000b7f42
466a11bec8c8559e3e4e42a20e284d54d8972680
/requisition/src/main/java/com/tqmars/requisition/presentation/actions/management/SysDataDict.java
2c94035c33d4e894751e34a6edf93ee29f8a0b76
[ "Apache-2.0" ]
permissive
huahuajjh/mvn_requisition
456e2033e71f757eea4522e1384d7f82a236cfcd
d4c83548f4e68d4619cdec6657cc18ecfe986fd9
refs/heads/master
2020-04-02T03:16:48.697670
2016-07-22T11:34:28
2016-07-22T11:34:28
63,935,273
0
0
null
null
null
null
UTF-8
Java
false
false
5,348
java
package com.tqmars.requisition.presentation.actions.management; import java.io.IOException; import java.util.UUID; import com.tqmars.requisition.infrastructure.utils.Serialization; import com.tqmars.requisition.presentation.actions.BaseAction; import com.tqmars.requisition.presentation.dto.share.AddressDto; import com.tqmars.requisition.presentation.serviceContract.share.IAddressServiceContract; import com.tqmars.requisition.presentation.serviceContract.share.IShareTypeServiceContract; @SuppressWarnings("serial") public class SysDataDict extends BaseAction { public SysDataDict(){ this.shareTypeServiceContract = getService("shareTypeService", IShareTypeServiceContract.class); this.addressServiceContract = getService("addressService", IAddressServiceContract.class); } private IShareTypeServiceContract shareTypeServiceContract; private IAddressServiceContract addressServiceContract; private String id; private String pid; private String name; private String ids; @Override public String execute() throws Exception { return SUCCESS; } //获取所有户口类型 public String getAllHouseholdType() throws IOException{ String jsonState = this.shareTypeServiceContract.getAllHouseholdType(); response().getWriter().write(jsonState); return null; } public String deleteHouseholdType() throws IOException{//删除 String jsonData = this.shareTypeServiceContract.delHouseholdType(UUID.fromString(id)); response().getWriter().write(jsonData); return null; } public String editHouseholdType() throws IOException{//修改 String jsonData = this.shareTypeServiceContract.editHouseholdType(UUID.fromString(id), name); response().getWriter().write(jsonData); return null; } public String addHouseholdType() throws IOException{ String jsonData = this.shareTypeServiceContract.addHouseholdType(name); response().getWriter().write(jsonData); return null; } //获取所有与户主关系集合 public String getAllRelationshipType() throws IOException{ String jsonState = this.shareTypeServiceContract.getAllRelationshipType(); response().getWriter().write(jsonState); return null; } public String deleteRelationshipType() throws IOException{ String JsonData = this.shareTypeServiceContract.delRelationshipType(UUID.fromString(id)); response().getWriter().write(JsonData); return null; } public String editRelationshipType() throws IOException{ String jsonData = this.shareTypeServiceContract.editRelationshipType(UUID.fromString(id), name); response().getWriter().write(jsonData); return null; } public String addRelationshipType() throws IOException{ String jsonData = this.shareTypeServiceContract.addRelationshipType(name); response().getWriter().write(jsonData); return null; } //获取所有社保类型集合 public String getAllSocialsecurityType() throws IOException{ String jsonState = this.shareTypeServiceContract.getAllSocialsecurityType(); response().getWriter().write(jsonState); return null; } public String deleteSocialsecurityType() throws IOException{ String jsonData = this.shareTypeServiceContract.delSSType(UUID.fromString(id)); response().getWriter().write(jsonData); return null; } public String editSocialsecurityType() throws IOException{ String jsonData = this.shareTypeServiceContract.editSSType(UUID.fromString(id), name); response().getWriter().write(jsonData); return null; } public String addSocialsecurityType() throws IOException{ String jsonData = this.shareTypeServiceContract.addSSType(name); response().getWriter().write(jsonData); return null; } //获取所有地址 public String getAddress() throws IOException{ String jsonState = this.addressServiceContract.getAllAddresses(); response().getWriter().write(jsonState); return null; } public String deleteAddress() throws IOException{ String[] arr = Serialization.toObject(ids, String[].class); UUID[] addressIds =new UUID[arr.length]; for (int i = 0; i < arr.length; i++) { addressIds[i] = UUID.fromString(arr[i]); } String jsonState = this.addressServiceContract.deleteAddress(addressIds); response().getWriter().write(jsonState); return null; } public String editAddress() throws IOException{ AddressDto dto = new AddressDto(); dto.setId(UUID.fromString(id)); dto.setName(name); if(null==pid||pid.trim().equals("")) { dto.setPid(null); } else { dto.setPid(UUID.fromString(pid)); } String jsonDate = this.addressServiceContract.editAddress(dto); response().getWriter().write(jsonDate); return null; } public String addAddress() throws IOException{ AddressDto dto = new AddressDto(); dto.setName(name); if(pid != null && !pid.equals("")){ dto.setPid(UUID.fromString(pid)); } String jsonDate = this.addressServiceContract.addNewAddress(dto); response().getWriter().write(jsonDate); return null; } //政策法规类型 public String getPolicyType(){ return null; } public String editPolicyType(){ return null; } public String deletePolicyType(){ return null; } public String addPolicyType(){ return null; } public void setId(String id) { this.id = id; } public void setPid(String pid) { this.pid = pid; } public void setName(String name) { this.name = name; } public void setIds(String ids) { this.ids = ids; } }
[ "703825021@qq.com" ]
703825021@qq.com
c15b7c2dc52e4adc5741257b39667b600cec8598
7fa9c6b0fa1d0726ae1cda0199716c811a1ea01b
/Crawler/data/Bundle.java
25f3c60f38d8a6dc5600e6cd5575adbbb6537873
[]
no_license
NayrozD/DD2476-Project
b0ca75799793d8ced8d4d3ba3c43c79bb84a72c0
94dfb3c0a470527b069e2e0fd9ee375787ee5532
refs/heads/master
2023-03-18T04:04:59.111664
2021-03-10T15:03:07
2021-03-10T15:03:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
980
java
16 https://raw.githubusercontent.com/wmm1996528/unidbg_douyin10/master/src/main/java/com/github/unidbg/linux/android/dvm/api/Bundle.java package com.github.unidbg.linux.android.dvm.api; import com.github.unidbg.linux.android.dvm.DvmObject; import com.github.unidbg.linux.android.dvm.VM; import unicorn.UnicornException; import java.util.Properties; public class Bundle extends DvmObject<Properties> { public Bundle(VM vm, Properties properties) { super(vm.resolveClass("android/os/Bundle"), properties); } public int getInt(String key) { String value = super.value.getProperty(key); if (value == null) { throw new UnicornException("key=" + key); } return Integer.parseInt(value, 16); } public String getString(String key) { String value = super.value.getProperty(key); if (value == null) { throw new UnicornException("key=" + key); } return value; } }
[ "veronika.cucorova@gmail.com" ]
veronika.cucorova@gmail.com
02750db7ba389d254d5107e65a654c3b9d5f3178
20eb62855cb3962c2d36fda4377dfd47d82eb777
/IntroClassJava/dataset/smallest/346b1d3c1cdc3032d07222a8a5e0027a2abf95bb1697b9d367d7cca7db1af769d8298e232c56471a122f05e87e79f4bd965855c9c0f8b173ebc0ef5d0abebc7b/003/mutations/825/smallest_346b1d3c_003.java
7cce38f8f84ea0ae9c28cd304d8f37e89e5044ee
[]
no_license
ozzydong/CapGen
356746618848065cce4e253e5d3c381baa85044a
0ba0321b6b1191443276021f1997833342f02515
refs/heads/master
2023-03-18T20:12:02.923428
2020-08-21T03:08:28
2020-08-21T03:08:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,540
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class smallest_346b1d3c_003 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { smallest_346b1d3c_003 mainClass = new smallest_346b1d3c_003 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { IntObj a = new IntObj (), b = new IntObj (), c = new IntObj (), d = new IntObj (), num_1 = new IntObj (), num_2 = new IntObj (), num_3 = new IntObj (), num_4 = new IntObj (); output += (String.format ("Please enter 4 numbers separated by spaces > ")); num_1.value = scanner.nextInt (); num_2.value = scanner.nextInt (); num_3.value = scanner.nextInt (); num_4.value = scanner.nextInt (); a.value = (num_1.value); b.value = (num_2.value); c.value = (num_3.value); d.value = (num_4.value); if (a.value < b.value && a.value < c.value && a.value < d.value) { output += (String.format ("%d is the smallest\n", a.value)); } else if (b.value < a.value && b.value < c.value && b.value < d.value) { output += (String.format ("%d is the smalles\n", b.value)); } else if (((c.value) < (a.value)) && ((c.value) < (b.value))) && ((c.value) < (d.value) && c.value < d.value) { output += (String.format ("%d is the smallest\n", c.value)); } else if (d.value < a.value && d.value < b.value && d.value < c.value) { output += (String.format ("%d is the smallest\n", d.value)); } if (true) return;; } }
[ "justinwm@163.com" ]
justinwm@163.com
4026e4c8dada6d47f2f1b448ff6128b0ef87f72b
7dbbe21b902fe362701d53714a6a736d86c451d7
/BzenStudio-5.6/Source/com/zend/ide/bc/d.java
0d6f4135293ab04e63c82416b4b1e2deede5a1c3
[]
no_license
HS-matty/dev
51a53b4fd03ae01981549149433d5091462c65d0
576499588e47e01967f0c69cbac238065062da9b
refs/heads/master
2022-05-05T18:32:24.148716
2022-03-20T16:55:28
2022-03-20T16:55:28
196,147,486
0
0
null
null
null
null
UTF-8
Java
false
false
332
java
package com.zend.ide.bc; import com.zend.ide.p.w; class d implements Runnable { final c a; d(c paramc) { } public void run() { c.a(this.a).grabFocus(); } } /* Location: C:\Program Files\Zend\ZendStudio-5.5.1\bin\ZendIDE.jar * Qualified Name: com.zend.ide.bc.d * JD-Core Version: 0.6.0 */
[ "byqdes@gmail.com" ]
byqdes@gmail.com
82f1f3bb7907feeed8c1b365ed25de9e1873c2ba
5ca3901b424539c2cf0d3dda52d8d7ba2ed91773
/src_fernflower/y/g/q.java
8abd224abdbda2adfa3df42300cf428e64c1f116
[]
no_license
fjh658/bindiff
c98c9c24b0d904be852182ecbf4f81926ce67fb4
2a31859b4638404cdc915d7ed6be19937d762743
refs/heads/master
2021-01-20T06:43:12.134977
2016-06-29T17:09:03
2016-06-29T17:09:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
338
java
package y.g; import y.g.t; import y.g.u; import y.g.v; public class q { public static y.c.c a(Object[] var0) { return new t((double[])null, (int[])null, (boolean[])null, var0); } public static y.c.c a(Object var0) { return new v(var0); } public static y.c.c a(y.c.c var0) { return new u(var0); } }
[ "manouchehri@riseup.net" ]
manouchehri@riseup.net
d2777d24420b4a35984b7c3cb92a41237d3b4f97
fd49852c3426acf214b390c33927b5a30aeb0e0a
/aosp/javalib/android/app/IInstrumentationWatcher$Stub$Proxy.java
ff66e397314ddf67f0389b2930a01eb7480d0263
[]
no_license
HanChangHun/MobilePlus-Prototype
fb72a49d4caa04bce6edb4bc060123c238a6a94e
3047c44a0a2859bf597870b9bf295cf321358de7
refs/heads/main
2023-06-10T19:51:23.186241
2021-06-26T08:28:58
2021-06-26T08:28:58
333,411,414
0
0
null
null
null
null
UTF-8
Java
false
false
2,821
java
package android.app; import android.content.ComponentName; import android.os.Bundle; import android.os.IBinder; import android.os.Parcel; import android.os.RemoteException; class Proxy implements IInstrumentationWatcher { public static IInstrumentationWatcher sDefaultImpl; private IBinder mRemote; Proxy(IBinder paramIBinder) { this.mRemote = paramIBinder; } public IBinder asBinder() { return this.mRemote; } public String getInterfaceDescriptor() { return "android.app.IInstrumentationWatcher"; } public void instrumentationFinished(ComponentName paramComponentName, int paramInt, Bundle paramBundle) throws RemoteException { Parcel parcel1 = Parcel.obtain(); Parcel parcel2 = Parcel.obtain(); try { parcel1.writeInterfaceToken("android.app.IInstrumentationWatcher"); if (paramComponentName != null) { parcel1.writeInt(1); paramComponentName.writeToParcel(parcel1, 0); } else { parcel1.writeInt(0); } parcel1.writeInt(paramInt); if (paramBundle != null) { parcel1.writeInt(1); paramBundle.writeToParcel(parcel1, 0); } else { parcel1.writeInt(0); } if (!this.mRemote.transact(2, parcel1, parcel2, 0) && IInstrumentationWatcher.Stub.getDefaultImpl() != null) { IInstrumentationWatcher.Stub.getDefaultImpl().instrumentationFinished(paramComponentName, paramInt, paramBundle); return; } parcel2.readException(); return; } finally { parcel2.recycle(); parcel1.recycle(); } } public void instrumentationStatus(ComponentName paramComponentName, int paramInt, Bundle paramBundle) throws RemoteException { Parcel parcel1 = Parcel.obtain(); Parcel parcel2 = Parcel.obtain(); try { parcel1.writeInterfaceToken("android.app.IInstrumentationWatcher"); if (paramComponentName != null) { parcel1.writeInt(1); paramComponentName.writeToParcel(parcel1, 0); } else { parcel1.writeInt(0); } parcel1.writeInt(paramInt); if (paramBundle != null) { parcel1.writeInt(1); paramBundle.writeToParcel(parcel1, 0); } else { parcel1.writeInt(0); } if (!this.mRemote.transact(1, parcel1, parcel2, 0) && IInstrumentationWatcher.Stub.getDefaultImpl() != null) { IInstrumentationWatcher.Stub.getDefaultImpl().instrumentationStatus(paramComponentName, paramInt, paramBundle); return; } parcel2.readException(); return; } finally { parcel2.recycle(); parcel1.recycle(); } } } /* Location: /home/chun/Desktop/temp/!/android/app/IInstrumentationWatcher$Stub$Proxy.class * Java compiler version: 8 (52.0) * JD-Core Version: 1.1.3 */
[ "ehwjs1914@naver.com" ]
ehwjs1914@naver.com
fe0261004ee830d00805be7f796f929f8e9e79c9
def65e60efd1ad39013c19bdc50f67347cbe557e
/app/src/main/java/com/pbids/sanqin/ui/recyclerview/swipe/interfaces/SwipeItemMangerInterface.java
8a6cf444836763f6396d026a9ad08d76028c9069
[]
no_license
dengluo/SanQin-Version-1.2.4
b60ac2cf58968b23c807101c3f35fc3609095049
e02166ac3bf6180e6c403420f71ac6eb4bd46b73
refs/heads/master
2020-04-02T09:15:22.337720
2018-10-23T08:02:43
2018-10-23T08:36:22
154,284,164
1
0
null
null
null
null
UTF-8
Java
false
false
704
java
package com.pbids.sanqin.ui.recyclerview.swipe.interfaces; import com.pbids.sanqin.ui.recyclerview.swipe.SwipeLayout; import com.pbids.sanqin.ui.recyclerview.swipe.util.Attributes; import java.util.List; public interface SwipeItemMangerInterface { public void openItem(int position); public void closeItem(int position); public void closeAllExcept(SwipeLayout layout); public void closeAllItems(); public List<Integer> getOpenItems(); public List<SwipeLayout> getOpenLayouts(); public void removeShownLayouts(SwipeLayout layout); public boolean isOpen(int position); public Attributes.Mode getMode(); public void setMode(Attributes.Mode mode); }
[ "dengluo2008@163.com" ]
dengluo2008@163.com
8aabaace7d2a8806ea72f82b34c3a9f394826ff8
b7bcff9ea821d90071cbff87872e7640bd6aff68
/core/src/java/org/opencrx/kernel/text/XmlDocToText.java
02379554b0bae03e93c54d8e8e6eafbefde6494a
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause", "Apache-2.0", "JSON" ]
permissive
sangjiexun/opencrx4
26be272f64a872713964cbb6128c9af35d3d8516
4e8fb194f5b392e3efca228ab88500bcbcfb83b0
refs/heads/master
2020-12-28T09:36:05.167852
2017-10-14T08:40:57
2017-10-14T08:40:57
238,270,604
1
0
null
2020-02-04T18:00:05
2020-02-04T18:00:04
null
UTF-8
Java
false
false
3,252
java
/* * ==================================================================== * Project: openCRX/Core, http://www.opencrx.org/ * Description: XmlDocToText * Owner: CRIXP AG, Switzerland, http://www.crixp.com * ==================================================================== * * This software is published under the BSD license * as listed below. * * Copyright (c) 2007-2014, CRIXP Corp., Switzerland * 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 CRIXP Corp. nor the names of the contributors * to openCRX may be used to endorse or promote products derived * from this software without specific prior written permission * * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * ------------------ * * This product includes software developed by the Apache Software * Foundation (http://www.apache.org/). * * This product includes software developed by contributors to * openMDX (http://www.openmdx.org/) */ package org.opencrx.kernel.text; import java.io.InputStream; import java.io.Reader; import java.io.StringReader; import org.apache.poi.POIXMLTextExtractor; import org.apache.poi.extractor.ExtractorFactory; import org.apache.poi.util.PackageHelper; import org.openmdx.base.exception.ServiceException; /** * Re-factored from * http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/extractor/WordExtractor.java?view=log */ public class XmlDocToText { /** * Gets the text from an XML document. * * @param in The InputStream representing the XML document. */ public Reader parse( InputStream in ) throws ServiceException { StringBuilder text = new StringBuilder(); try { POIXMLTextExtractor extractor = ExtractorFactory.createExtractor( PackageHelper.open(in) ); text.append(extractor.getText()); } catch(Exception e) { throw new ServiceException(e); } return new StringReader(text.toString()); } }
[ "wfro@users.sourceforge.net" ]
wfro@users.sourceforge.net
dc57431eb527eafa80958e89f6365daa2f42bc2b
bd729ef9fcd96ea62e82bb684c831d9917017d0e
/keche/trunk/supp_app/dispatch/src/main/java/com/ctfo/storage/dispatch/model/ResponseModel.java
2a5c750aab46f47530021d91194f53a4217ed7be
[]
no_license
shanghaif/workspace-kepler
849c7de67b1f3ee5e7da55199c05c737f036780c
ac1644be26a21f11a3a4a00319c450eb590c1176
refs/heads/master
2023-03-22T03:38:55.103692
2018-03-24T02:39:41
2018-03-24T02:39:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,426
java
package com.ctfo.storage.dispatch.model; import org.apache.mina.core.session.IoSession; /** * ResponseModel * 通用应答 * * * @author huangjincheng * 2014-6-12下午03:09:45 * */ public class ResponseModel { /** 连接session*/ private IoSession session ; /** 接收源数据*/ private String sourceStr ; /** 应答指令*/ private String command = "C001"; /** 长度*/ private String length = "00000005"; /** * 获取连接session的值 * @return 连接session */ public IoSession getSession() { return session; } /** * 设置连接session的值 * @param 连接session */ public void setSession(IoSession session) { this.session = session; } /** * 获取接收源数据的值 * @return sourceStr */ public String getSourceStr() { return sourceStr; } /** * 设置接收源数据的值 * @param sourceStr */ public void setSourceStr(String sourceStr) { this.sourceStr = sourceStr; } /** * 获取应答指令的值 * @return command */ public String getCommand() { return command; } /** * 设置应答指令的值 * @param command */ public void setCommand(String command) { this.command = command; } /** * 获取长度的值 * @return length */ public String getLength() { return length; } /** * 设置长度的值 * @param length */ public void setLength(String length) { this.length = length; } }
[ "zhangjunfang0505@163.com" ]
zhangjunfang0505@163.com
e8171595cb945ea7a667eca8b061c989fe648dea
208ba847cec642cdf7b77cff26bdc4f30a97e795
/zd/zc/src/main/java/org.wp.zc/ui/suggestion/util/SuggestionUtils.java
d0a1c64a62c98a63476b46c1d8d2f511e56852f9
[]
no_license
kageiit/perf-android-large
ec7c291de9cde2f813ed6573f706a8593be7ac88
2cbd6e74837a14ae87c1c4d1d62ac3c35df9e6f8
refs/heads/master
2021-01-12T14:00:19.468063
2016-09-27T13:10:42
2016-09-27T13:10:42
69,685,305
0
0
null
2016-09-30T16:59:49
2016-09-30T16:59:48
null
UTF-8
Java
false
false
2,676
java
package org.wp.zc.ui.suggestion.util; import android.content.Context; import org.wp.zc.WordPress; import org.wp.zc.datasets.SuggestionTable; import org.wp.zc.models.Blog; import org.wp.zc.models.Suggestion; import org.wp.zc.models.Tag; import org.wp.zc.ui.suggestion.adapters.SuggestionAdapter; import org.wp.zc.ui.suggestion.adapters.TagSuggestionAdapter; import java.util.List; public class SuggestionUtils { public static SuggestionAdapter setupSuggestions(final int remoteBlogId, Context context, SuggestionServiceConnectionManager serviceConnectionManager) { Blog blog = WordPress.wpDB.getBlogForDotComBlogId(Integer.toString(remoteBlogId)); boolean isDotComFlag = (blog != null && blog.isDotcomFlag()); return SuggestionUtils.setupSuggestions(remoteBlogId, context, serviceConnectionManager, isDotComFlag); } public static SuggestionAdapter setupSuggestions(final int remoteBlogId, Context context, SuggestionServiceConnectionManager serviceConnectionManager, boolean isDotcomFlag) { if (!isDotcomFlag) { return null; } SuggestionAdapter suggestionAdapter = new SuggestionAdapter(context); List<Suggestion> suggestions = SuggestionTable.getSuggestionsForSite(remoteBlogId); // if the suggestions are not stored yet, we want to trigger an update for it if (suggestions.isEmpty()) { serviceConnectionManager.bindToService(); } suggestionAdapter.setSuggestionList(suggestions); return suggestionAdapter; } public static TagSuggestionAdapter setupTagSuggestions(final int remoteBlogId, Context context, SuggestionServiceConnectionManager serviceConnectionManager) { Blog blog = WordPress.wpDB.getBlogForDotComBlogId(Integer.toString(remoteBlogId)); boolean isDotComFlag = (blog != null && blog.isDotcomFlag()); return SuggestionUtils.setupTagSuggestions(remoteBlogId, context, serviceConnectionManager, isDotComFlag); } public static TagSuggestionAdapter setupTagSuggestions(final int remoteBlogId, Context context, SuggestionServiceConnectionManager serviceConnectionManager, boolean isDotcomFlag) { if (!isDotcomFlag) { return null; } TagSuggestionAdapter tagSuggestionAdapter = new TagSuggestionAdapter(context); List<Tag> tags = SuggestionTable.getTagsForSite(remoteBlogId); // if the tags are not stored yet, we want to trigger an update for it if (tags.isEmpty()) { serviceConnectionManager.bindToService(); } tagSuggestionAdapter.setTagList(tags); return tagSuggestionAdapter; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
93b93c7c67b6e085f50517c1e08b75da834fc599
860794735fe561dee62eb91ad239e6346ad9bb4e
/components/forks/mdbtools/src/mdbtools/dbengine/sql/Equation.java
9c64e206c81f5c92fe1b6b87a1d326f3f4148669
[]
no_license
mhl/libbio-formats-java
30de58c312480420169926742c88f19483f362f0
2dfc50e24babd86fac30d503472d0a86e62abc60
refs/heads/master
2021-01-10T19:09:35.621218
2012-01-07T11:13:19
2012-01-07T11:13:19
3,123,938
1
1
null
null
null
null
UTF-8
Java
false
false
1,439
java
package mdbtools.dbengine.sql; public class Equation { public static final int EQUALS = 0; public static final int LESS_THAN = 1; public static final int GREATER_THAN = 2; public static final int NOT_EQUALS = 3; public static final int GREATER_THAN_OR_EQUALS = 4; public static final int LESS_THAN_OR_EQUALS = 5; private static final String[] operators = new String[] { "=", "<", ">", "<>", ">=", "<=" }; Object left; int operator; Object right; public boolean equals(Object o) { if (o instanceof Equation) { Equation equation = (Equation)o; return left.equals(equation.left) && operator == equation.operator && right.equals(equation.right); } else return false; } public String toString() { return left.toString() + " " + operators[operator] + " " + right.toString(); } public String toString(Select sql) { return Util.toString(sql,left) + " " + operators[operator] + " " + Util.toString(sql,right); } public Object getLeft() { return left; } public int getOperator() { return operator; } public Object getRight() { return right; } public void setLeft(Object left) { this.left = left; } public void setOperator(int operator) { this.operator = operator; } public void setRight(Object right) { this.right = right; } }
[ "melissa@glencoesoftware.com" ]
melissa@glencoesoftware.com
9b2b16c1a3d0383457bc0529753965242f24d175
3d6c20dc57a8eb1a015c5d2353a515f29525a1d6
/Asdvanced java swing shamim/HortonBookSolution/404140 Code from the book/ch02/BitwiseOps.java
d87366b4f735d0c5dee1b8cd64f1b385cd3a9027
[]
no_license
nparvez71/NetbeanSoftware
b9e5c93addc2583790c69f53c650c29665e16721
1e18ff07914c4c4530bcfd93693d838bea8f9641
refs/heads/master
2020-03-13T19:14:53.285683
2018-04-29T04:34:07
2018-04-29T04:34:07
131,249,843
0
0
null
null
null
null
UTF-8
Java
false
false
1,358
java
import static java.lang.Integer.toBinaryString; public class BitwiseOps { public static void main(String[] args) { int indicators = 0b1111_1111_0000_0111; // Same as 0xFF07 int selectBit3 = 0b0000_0000_0000_0100; // Mask to select the 3rd bit, 0x4 // Try the bitwise AND to select the third bit in indicators System.out.println("indicators = " + toBinaryString(indicators)); System.out.println("selectBit3 = " + toBinaryString(selectBit3)); indicators &= selectBit3; System.out.println("indicators & selectBit3 = " + toBinaryString(indicators)); // Try the bitwise OR to switch the third bit on indicators = 0b1111_1111_0000_1001; // Same as 0xFF09 System.out.println("\nindicators = " + toBinaryString(indicators)); System.out.println("selectBit3 = " + toBinaryString(selectBit3)); indicators |= selectBit3; System.out.println("indicators | selectBit3 = " + toBinaryString(indicators)); // Now switch the third bit off again indicators &= ~selectBit3; System.out.println("\nThe third bit in the previous value of indicators" + " has been switched off"); System.out.println("indicators & ~selectBit3 = " + toBinaryString(indicators)); } }
[ "nparvez92@gmail.com" ]
nparvez92@gmail.com
4c4c515a92a52c840467fd65a432c12c364b8fa3
d7e582a4340f32d10e92a8666e5cb7d84cf0fd0e
/src/com/KaPrimov/todolist/datamodel/TodoData.java
7147a06449821bdae8b41f08cae5916f980299c8
[]
no_license
KaPrimov/TodoListWithJavaFX
715492863ee83624e5d6cca3e069e59e4a74b2ec
794d1920f995be914c832fbd984e8fdeec2faf8a
refs/heads/master
2021-01-11T16:31:52.433998
2017-01-26T09:28:26
2017-01-26T09:28:26
80,100,341
0
0
null
null
null
null
UTF-8
Java
false
false
2,688
java
package com.KaPrimov.todolist.datamodel; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.Iterator; public class TodoData { private static TodoData instance = new TodoData(); private static String filename = "TodoListItems.txt"; private ObservableList<TodoItem> todoItems; private DateTimeFormatter formatter; public static TodoData getInstance() { return instance; } private TodoData() { formatter = DateTimeFormatter.ofPattern("dd-MMMM-yyyy"); } public ObservableList<TodoItem> getTodoItems() { return todoItems; } public void addTodoItem(TodoItem item) { todoItems.add(item); } public void loadTodoItems() throws IOException { todoItems = FXCollections.observableArrayList(); Path path = Paths.get(filename); BufferedReader br = Files.newBufferedReader(path); String input; try { while((input = br.readLine()) != null) { String[] itemPieces = input.split("\t"); String shortDesc = itemPieces[0]; String details = itemPieces[1]; String dateString = itemPieces[2]; LocalDate date = LocalDate.parse(dateString, formatter); TodoItem todoItem = new TodoItem(shortDesc, details, date); todoItems.add(todoItem); } } finally { if (br != null) { br.close(); } } } public void storeTodoItems() throws IOException { Path path = Paths.get(filename); BufferedWriter bw = Files.newBufferedWriter(path); try { Iterator<TodoItem> iter = todoItems.iterator(); while (iter.hasNext()) { TodoItem item = iter.next(); bw.write(String.format("%s\t%s\t%s", item.getShortDescription(), item.getDetails(), item.getDeadline().format(formatter))); bw.newLine(); } } finally { if (bw != null) { bw.close(); } } } public void deleteTodoItem(TodoItem item) { todoItems.remove(item); } public void replaceTodo(TodoItem oldItem, TodoItem newItem) { todoItems.remove(oldItem); todoItems.add(newItem); } }
[ "k.primov92@gmail.com" ]
k.primov92@gmail.com
63e09280bc6a314d05f9ed6b4a4360877985095f
1cc6988da857595099e52dd9dd2e6c752d69f903
/ZimbraSoap/src/wsdl-test/generated/zcsclient/admin/testCheckRightResponse.java
7215ac8102df02e1e51a7a3e0e2246a41760616d
[]
no_license
mmariani/zimbra-5682-slapos
e250d6a8d5ad4ddd9670ac381211ba4b5075de61
d23f0f8ab394d3b3e8a294e10f56eaef730d2616
refs/heads/master
2021-01-19T06:58:19.601688
2013-03-26T16:30:38
2013-03-26T16:30:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,430
java
/* * ***** BEGIN LICENSE BLOCK ***** * * Zimbra Collaboration Suite Server * Copyright (C) 2011, 2012 VMware, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://www.zimbra.com/license. * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. * * ***** END LICENSE BLOCK ***** */ package generated.zcsclient.admin; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for checkRightResponse complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="checkRightResponse"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="via" type="{urn:zimbraAdmin}rightViaInfo" minOccurs="0"/> * &lt;/sequence> * &lt;attribute name="allow" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" /> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "checkRightResponse", propOrder = { "via" }) public class testCheckRightResponse { protected testRightViaInfo via; @XmlAttribute(name = "allow", required = true) protected boolean allow; /** * Gets the value of the via property. * * @return * possible object is * {@link testRightViaInfo } * */ public testRightViaInfo getVia() { return via; } /** * Sets the value of the via property. * * @param value * allowed object is * {@link testRightViaInfo } * */ public void setVia(testRightViaInfo value) { this.via = value; } /** * Gets the value of the allow property. * */ public boolean isAllow() { return allow; } /** * Sets the value of the allow property. * */ public void setAllow(boolean value) { this.allow = value; } }
[ "marco.mariani@nexedi.com" ]
marco.mariani@nexedi.com
cc5ec312005e60099c946284ab8d86e8bff2f1e7
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
/checkstyle_cluster/11908/src_0.java
86f43e654c468bb24a067969d10dbb28b2470aad
[]
no_license
martinezmatias/GenPat-data-C3
63cfe27efee2946831139747e6c20cf952f1d6f6
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
refs/heads/master
2022-04-25T17:59:03.905613
2020-04-15T14:41:34
2020-04-15T14:41:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
633
java
package com.puppycrawl.tools.checkstyle.checks; import com.puppycrawl.tools.checkstyle.BaseCheckTestCase; import com.puppycrawl.tools.checkstyle.DefaultConfiguration; public class RedundantModifierTest extends BaseCheckTestCase { public void testIt() throws Exception { final DefaultConfiguration checkConfig = createCheckConfig(RedundantModifierCheck.class); final String[] expected = { "32:9: Redundant 'public' modifier.", "38:9: Redundant 'abstract' modifier.", }; verify(checkConfig, getPath("InputModifier.java"), expected); } }
[ "375833274@qq.com" ]
375833274@qq.com
a500b1965d7d7b543bb06d4231eb0837630e65db
38c4451ab626dcdc101a11b18e248d33fd8a52e0
/identifiers/lucene-3.6.2/backwards/src/test/org/apache/lucene/util/TestSetOnce.java
2b0ae499e37a3decfe74445bc7d111df3c8790e5
[]
no_license
habeascorpus/habeascorpus-data
47da7c08d0f357938c502bae030d5fb8f44f5e01
536d55729f3110aee058ad009bcba3e063b39450
refs/heads/master
2020-06-04T10:17:20.102451
2013-02-19T15:19:21
2013-02-19T15:19:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,918
java
org PACKAGE_IDENTIFIER false apache PACKAGE_IDENTIFIER false lucene PACKAGE_IDENTIFIER false util PACKAGE_IDENTIFIER false java PACKAGE_IDENTIFIER false util PACKAGE_IDENTIFIER false Random TYPE_IDENTIFIER false org PACKAGE_IDENTIFIER false apache PACKAGE_IDENTIFIER false lucene PACKAGE_IDENTIFIER false util PACKAGE_IDENTIFIER false SetOnce TYPE_IDENTIFIER false AlreadySetException TYPE_IDENTIFIER false org PACKAGE_IDENTIFIER false junit PACKAGE_IDENTIFIER false Test TYPE_IDENTIFIER false TestSetOnce TYPE_IDENTIFIER true LuceneTestCase TYPE_IDENTIFIER false SetOnceThread TYPE_IDENTIFIER true Thread TYPE_IDENTIFIER false SetOnce TYPE_IDENTIFIER false Integer TYPE_IDENTIFIER false set VARIABLE_IDENTIFIER true success VARIABLE_IDENTIFIER true Random TYPE_IDENTIFIER false RAND VARIABLE_IDENTIFIER true SetOnceThread METHOD_IDENTIFIER false Random TYPE_IDENTIFIER false random VARIABLE_IDENTIFIER true RAND VARIABLE_IDENTIFIER false Random TYPE_IDENTIFIER false random VARIABLE_IDENTIFIER false nextLong METHOD_IDENTIFIER false Override TYPE_IDENTIFIER false run METHOD_IDENTIFIER true sleep METHOD_IDENTIFIER false RAND VARIABLE_IDENTIFIER false nextInt METHOD_IDENTIFIER false set VARIABLE_IDENTIFIER false set METHOD_IDENTIFIER false Integer TYPE_IDENTIFIER false Integer TYPE_IDENTIFIER false parseInt METHOD_IDENTIFIER false getName METHOD_IDENTIFIER false substring METHOD_IDENTIFIER false success VARIABLE_IDENTIFIER false InterruptedException TYPE_IDENTIFIER false e VARIABLE_IDENTIFIER true RuntimeException TYPE_IDENTIFIER false e VARIABLE_IDENTIFIER true success VARIABLE_IDENTIFIER false Test TYPE_IDENTIFIER false testEmptyCtor METHOD_IDENTIFIER true Exception TYPE_IDENTIFIER false SetOnce TYPE_IDENTIFIER false Integer TYPE_IDENTIFIER false set VARIABLE_IDENTIFIER true SetOnce TYPE_IDENTIFIER false Integer TYPE_IDENTIFIER false assertNull METHOD_IDENTIFIER false set VARIABLE_IDENTIFIER false get METHOD_IDENTIFIER false Test TYPE_IDENTIFIER false expected METHOD_IDENTIFIER false AlreadySetException TYPE_IDENTIFIER false testSettingCtor METHOD_IDENTIFIER true Exception TYPE_IDENTIFIER false SetOnce TYPE_IDENTIFIER false Integer TYPE_IDENTIFIER false set VARIABLE_IDENTIFIER true SetOnce TYPE_IDENTIFIER false Integer TYPE_IDENTIFIER false Integer TYPE_IDENTIFIER false assertEquals METHOD_IDENTIFIER false set VARIABLE_IDENTIFIER false get METHOD_IDENTIFIER false intValue METHOD_IDENTIFIER false set VARIABLE_IDENTIFIER false set METHOD_IDENTIFIER false Integer TYPE_IDENTIFIER false Test TYPE_IDENTIFIER false expected METHOD_IDENTIFIER false AlreadySetException TYPE_IDENTIFIER false testSetOnce METHOD_IDENTIFIER true Exception TYPE_IDENTIFIER false SetOnce TYPE_IDENTIFIER false Integer TYPE_IDENTIFIER false set VARIABLE_IDENTIFIER true SetOnce TYPE_IDENTIFIER false Integer TYPE_IDENTIFIER false set VARIABLE_IDENTIFIER false set METHOD_IDENTIFIER false Integer TYPE_IDENTIFIER false assertEquals METHOD_IDENTIFIER false set VARIABLE_IDENTIFIER false get METHOD_IDENTIFIER false intValue METHOD_IDENTIFIER false set VARIABLE_IDENTIFIER false set METHOD_IDENTIFIER false Integer TYPE_IDENTIFIER false Test TYPE_IDENTIFIER false testSetMultiThreaded METHOD_IDENTIFIER true Exception TYPE_IDENTIFIER false SetOnce TYPE_IDENTIFIER false Integer TYPE_IDENTIFIER false set VARIABLE_IDENTIFIER true SetOnce TYPE_IDENTIFIER false Integer TYPE_IDENTIFIER false SetOnceThread TYPE_IDENTIFIER false threads VARIABLE_IDENTIFIER true SetOnceThread TYPE_IDENTIFIER false i VARIABLE_IDENTIFIER true i VARIABLE_IDENTIFIER false threads VARIABLE_IDENTIFIER false length VARIABLE_IDENTIFIER false i VARIABLE_IDENTIFIER false threads VARIABLE_IDENTIFIER false i VARIABLE_IDENTIFIER false SetOnceThread TYPE_IDENTIFIER false random VARIABLE_IDENTIFIER false threads VARIABLE_IDENTIFIER false i VARIABLE_IDENTIFIER false setName METHOD_IDENTIFIER false i VARIABLE_IDENTIFIER false threads VARIABLE_IDENTIFIER false i VARIABLE_IDENTIFIER false set VARIABLE_IDENTIFIER false set VARIABLE_IDENTIFIER false Thread TYPE_IDENTIFIER false t VARIABLE_IDENTIFIER true threads VARIABLE_IDENTIFIER false t VARIABLE_IDENTIFIER false start METHOD_IDENTIFIER false Thread TYPE_IDENTIFIER false t VARIABLE_IDENTIFIER true threads VARIABLE_IDENTIFIER false t VARIABLE_IDENTIFIER false join METHOD_IDENTIFIER false SetOnceThread TYPE_IDENTIFIER false t VARIABLE_IDENTIFIER true threads VARIABLE_IDENTIFIER false t VARIABLE_IDENTIFIER false success VARIABLE_IDENTIFIER false expectedVal VARIABLE_IDENTIFIER true Integer TYPE_IDENTIFIER false parseInt METHOD_IDENTIFIER false t VARIABLE_IDENTIFIER false getName METHOD_IDENTIFIER false substring METHOD_IDENTIFIER false assertEquals METHOD_IDENTIFIER false t VARIABLE_IDENTIFIER false getName METHOD_IDENTIFIER false expectedVal VARIABLE_IDENTIFIER false t VARIABLE_IDENTIFIER false set VARIABLE_IDENTIFIER false get METHOD_IDENTIFIER false intValue METHOD_IDENTIFIER false
[ "pschulam@gmail.com" ]
pschulam@gmail.com
4e559ff61f85e620f8b7bfb31bcdc2dce3d2208f
d09942d3f616e5f79f124d0a5ac003f66c9b81a6
/lib/netty-bgp4/src/main/java/org/bgp4j/netty/service/BGPv4Client.java
bce32863419d711d317ade311455361a8d53e71a
[ "Apache-2.0", "MIT" ]
permissive
rbieniek/BGP4J
c69fb429a0fd2d00b637f40ebd8a6032cafc388f
2ee0e64ffe1018cca038d74ec8b6f69e55613a57
refs/heads/master
2020-05-18T19:35:22.884031
2015-02-09T17:19:23
2015-02-09T17:19:23
3,314,133
10
8
null
null
null
null
UTF-8
Java
false
false
3,143
java
/** * Copyright 2012 Rainer Bieniek (Rainer.Bieniek@web.de) * * 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.bgp4j.netty.service; import javax.inject.Inject; import org.bgp4j.config.nodes.PeerConfiguration; import org.bgp4j.netty.handlers.BGPv4ClientEndpoint; import org.bgp4j.netty.handlers.BGPv4Codec; import org.bgp4j.netty.handlers.BGPv4Reframer; import org.bgp4j.netty.handlers.InboundOpenCapabilitiesProcessor; import org.bgp4j.netty.handlers.ValidateServerIdentifier; import org.jboss.netty.bootstrap.ClientBootstrap; import org.jboss.netty.channel.Channel; import org.jboss.netty.channel.ChannelFactory; import org.jboss.netty.channel.ChannelFuture; import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.channel.ChannelPipelineFactory; import org.jboss.netty.channel.Channels; import org.slf4j.Logger; /** * @author Rainer Bieniek (Rainer.Bieniek@web.de) * */ public class BGPv4Client { private @Inject Logger log; private @Inject BGPv4ClientEndpoint clientEndpoint; private @Inject BGPv4Codec codec; private @Inject InboundOpenCapabilitiesProcessor inboundOpenCapProcessor; private @Inject ValidateServerIdentifier validateServer; private @Inject BGPv4Reframer reframer; private @Inject @ClientFactory ChannelFactory channelFactory; private Channel clientChannel; public ChannelFuture startClient(PeerConfiguration peerConfiguration) { ClientBootstrap bootstrap = new ClientBootstrap(channelFactory); bootstrap.setPipelineFactory(new ChannelPipelineFactory() { @Override public ChannelPipeline getPipeline() throws Exception { ChannelPipeline pipeline = Channels.pipeline(); pipeline.addLast(BGPv4Reframer.HANDLER_NAME, reframer); pipeline.addLast(BGPv4Codec.HANDLER_NAME, codec); pipeline.addLast(InboundOpenCapabilitiesProcessor.HANDLER_NAME, inboundOpenCapProcessor); pipeline.addLast(ValidateServerIdentifier.HANDLER_NAME, validateServer); pipeline.addLast(BGPv4ClientEndpoint.HANDLER_NAME, clientEndpoint); return pipeline; } }); bootstrap.setOption("tcpnoDelay", true); bootstrap.setOption("keepAlive", true); log.info("connecting remote peer " + peerConfiguration.getPeerName() + " with address " + peerConfiguration.getClientConfig().getRemoteAddress()); return bootstrap.connect(peerConfiguration.getClientConfig().getRemoteAddress()); } public void stopClient() { if(clientChannel != null) { clientChannel.close(); this.clientChannel = null; } } /** * @return the clientChannel */ public Channel getClientChannel() { return clientChannel; } }
[ "Rainer.Bieniek@web.de" ]
Rainer.Bieniek@web.de
c6e79726a1cdcca99a2422d88d71be088ab10ff1
1d11d02630949f18654d76ed8d5142520e559b22
/TreeGrowServer/src/org/tolweb/treegrowserver/AbstractNodeWrapper.java
2fe0ae7ae6f8ac2ee479ed5bb2d1168dc4588aca
[]
no_license
tolweb/tolweb-app
ca588ff8f76377ffa2f680a3178351c46ea2e7ea
3a7b5c715f32f71d7033b18796d49a35b349db38
refs/heads/master
2021-01-02T14:46:52.512568
2012-03-31T19:22:24
2012-03-31T19:22:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,354
java
/* * Created on Dec 22, 2004 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ package org.tolweb.treegrowserver; /** * @author dmandel * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public abstract class AbstractNodeWrapper { private Long nodeId; /** * @hibernate.property column="node_id" * @return */ public Long getNodeId() { return nodeId; } public void setNodeId(Long value) { nodeId = value; } public boolean equals(Object o) { if (o == null || !(o instanceof AbstractNodeWrapper)) { return false; } else { AbstractNodeWrapper other = (AbstractNodeWrapper) o; if (other.getNodeId() != null && getNodeId() != null) { return other.getNodeId().equals(getNodeId()); } else { return false; } } } public int hashCode() { if (getNodeId() != null) { return getNodeId().hashCode(); } else { return System.identityHashCode(this); } } public String toString() { return getClass().getName() + ": with id: " + getNodeId(); } }
[ "lenards@iplantcollaborative.org" ]
lenards@iplantcollaborative.org
946bc2d985e035e3421c4e1e25ed704be8da9231
fac5d6126ab147e3197448d283f9a675733f3c34
/src/main/java/com/mapbox/mapboxsdk/snapshotter/MapSnaphotUtil.java
fdc008051e36cee25c3cf6e5d5549bbc121bbf1e
[]
no_license
KnzHz/fpv_live
412e1dc8ab511b1a5889c8714352e3a373cdae2f
7902f1a4834d581ee6afd0d17d87dc90424d3097
refs/heads/master
2022-12-18T18:15:39.101486
2020-09-24T19:42:03
2020-09-24T19:42:03
294,176,898
0
0
null
2020-09-09T17:03:58
2020-09-09T17:03:57
null
UTF-8
Java
false
false
674
java
package com.mapbox.mapboxsdk.snapshotter; import android.graphics.BitmapFactory; class MapSnaphotUtil { MapSnaphotUtil() { } static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) { int height = options.outHeight; int width = options.outWidth; int inSampleSize = 1; if (height > reqHeight || width > reqWidth) { int halfHeight = height / 2; int halfWidth = width / 2; while (halfHeight / inSampleSize >= reqHeight && halfWidth / inSampleSize >= reqWidth) { inSampleSize *= 2; } } return inSampleSize; } }
[ "michael@districtrace.com" ]
michael@districtrace.com
a76cf6b1159cae404b05754bc8658017ed488ef9
b8108ba80e8cab81cae3958ee8ded2fd69e38701
/fushenlan-java/FWD-service-webservice/src/main/java/com/fulan/application/custom/controller/CustomerController.java
7073178bfe4d2db4c9a1386752e9909b1e560fe2
[]
no_license
huangjixin/zhiwo-mall
585418b3efad818ebd572a1377566742bb22e927
3f8b8ff1445749fe06afc2dd45ef6b2524415cb6
refs/heads/master
2022-07-14T20:03:43.572458
2018-10-26T03:38:09
2018-10-26T03:38:09
94,043,571
0
4
null
2022-07-01T02:11:10
2017-06-12T01:31:47
Java
UTF-8
Java
false
false
7,365
java
/** * Project Name:FWD-service-webservice * File Name:CustomerController.java * Package Name:com.fulan.application.custom.controller * Date:2018年4月9日上午10:19:07 * Copyright (c) 上海复深蓝软件股份有限公司. * */ package com.fulan.application.custom.controller; import com.fulan.api.agent.vo.CustomerSearchParm; import com.fulan.api.agent.vo.CustomerVo; import com.fulan.application.service.CustomerFamilyService; import com.fulan.application.service.CustomerService; import com.fulan.application.service.ProposalService; import com.fulan.application.util.domain.Response; import com.fulan.application.util.util.JsonMsgBean; import com.fulan.core.monitoring.log.annotation.NoLog; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.List; /** * ClassName:CustomerController * Date: 2018年4月9日 上午10:19:07 * @author chen.zhuang * @version * @since JDK 1.8 */ @NoLog @Api(tags = "Customer", description = "客户信息") @RestController @RequestMapping(value ="/customer") public class CustomerController { private static final Logger logger = LoggerFactory.getLogger(CustomerController.class); @Autowired private CustomerService customerService; @Autowired private CustomerFamilyService familyService; @Autowired private ProposalService proposalService; @ApiOperation(value = "根据条件查询个人信息", notes = "根据条件查询个人信息", response = Response.class) @RequestMapping(value = "/search",produces = { "application/json;charset=utf-8" }, method = RequestMethod.GET) @ResponseBody public Response<String> customerSearch(String userId,String token, String systemId, @RequestBody(required=false) CustomerSearchParm req) { try { return customerService.customerSearch(userId, systemId, token, req); } catch (Exception e) { e.printStackTrace(); logger.error(e.getMessage()); return new Response<String>(Response.ERROR,"根据条件查询个人信息失败"); } } @ApiOperation(value = "修改个人信息", notes = "修改个人信息", response = Response.class) @RequestMapping(value = "/update",produces = { "application/json;charset=utf-8" }, method = RequestMethod.POST) @ResponseBody public Response<String> customerUpdate(String userId,String token, String systemId, @RequestBody CustomerVo req) { try { return customerService.customerUpdate(userId, systemId, token, req); } catch (Exception e) { e.printStackTrace(); logger.error(e.getMessage()); return new Response<String>(Response.ERROR,"修改信息失败"); } } @ApiOperation(value = "插入个人信息(客户回写)", notes = "插入个人信息(客户回写)", response = Response.class) @RequestMapping(value = "/create",produces = { "application/json;charset=utf-8" }, method = RequestMethod.POST) @ResponseBody public Response<String> customerCreate(String userId,String token, String systemId, @RequestBody CustomerVo req) { try { return customerService.customerCreate(userId, systemId, token, req); } catch (Exception e) { e.printStackTrace(); logger.error(e.getMessage()); return new Response<String>(Response.ERROR,"插入个人信息失败"); } } /** * 获取客户分组列表(A-Z分组) * @Date 20180408 * @return */ @GetMapping("customerGroupList") @ResponseBody @ApiOperation( value="列表模式获取代理人的客户信息", notes="通过客户类型获取,默认不传全查客户 ") public String customerGroupList( @ApiParam(name = "customerType",defaultValue ="0",example = "0",value = "客户类型,A_老客户,B_准客户,C_线上客户") @RequestParam(name = "customerType",required = false,defaultValue ="0")Integer customerType, @ApiParam(name = "key",value = "搜索关键字",example = "like %customerName% or %mobile% or %others%") @RequestParam(name = "key",required = false) String key, @ApiParam(name = "flags",value = "标签规则数组",example = "['rule1','rule2']") @RequestParam(name = "flags",required = false) List<String> flags ) { return customerService.getAgentCustomerGroupList(customerType,null); } /** * 地图模式获取客户列表信息 * @Date 20180408 * @return */ @GetMapping("customerMapList") @ResponseBody @ApiOperation( value="地图模式获取代理人的客户信息", notes="通过客户类型获取,默认不传全查客户") public String customerMapList( @ApiParam(name = "key",value = "搜索关键字",example = "代理人") @RequestParam(name = "key",required = false) String key, @ApiParam(name = "scope",value = "几公里以内",example = "N公里以内,N代表几公里以内") @RequestParam(name = "scope",required = true,defaultValue = "1")Integer scope, @ApiParam(name = "longitude",value = "经度",example = "经度") @RequestParam(name = "longitude",required = false) String longitude, @ApiParam(name = "latitude",value = "经度",example = "纬度") @RequestParam(name = "latitude",required = false) String latitude ) { return customerService.getCustomerMapGroupList(null); } @ApiOperation(value = "查询建议书", notes = "查询建议书", response = Response.class) @RequestMapping(value = "/selectCustomerProposal",produces = { "application/json;charset=utf-8" }, method = RequestMethod.GET) @ResponseBody public Response<String> selectCustomerProposal(String customerId,String agentCode) { /*try { JsonMsgBean jsonMsgBean = proposalService.selectCustomerProposal(customerId,agentCode); Response<Object> response = new Response<>(Response.SUCCESS,"查询建议书成功"); if (JsonMsgBean.SUCCESS_CODE.equals(jsonMsgBean.getCode())){ response.setData(jsonMsgBean.getData()); } return response; } catch (Exception e) { e.printStackTrace(); logger.error(e.getMessage()); return new Response<>(Response.ERROR,"查询建议书失败"); }*/ return customerService.getCustomerProposal("proposal.json"); } @ApiOperation(value = "查询家庭树", notes = "查询家庭树", response = Response.class) @RequestMapping(value = "/selectCustomerFamily",produces = { "application/json;charset=utf-8" }, method = RequestMethod.GET) @ResponseBody public Response<String> selectCustomerFamily(String customerId) { /*try { JsonMsgBean jsonMsgBean = familyService.selectCustomerFamily(customerId); Response<Object> response = new Response<>(Response.SUCCESS,"查询家庭树成功"); if (JsonMsgBean.SUCCESS_CODE.equals(jsonMsgBean.getCode())){ response.setData(jsonMsgBean.getData()); } return response; } catch (Exception e) { e.printStackTrace(); logger.error(e.getMessage()); return new Response<>(Response.ERROR,"查询家庭树失败"); }*/ return customerService.getCustomerFamily("family.json"); } }
[ "635152644@qq.com" ]
635152644@qq.com
b540ee70334b1daf62341756938108b166172bae
1a4770c215544028bad90c8f673ba3d9e24f03ad
/second/quark/src/main/java/com/loc/ac.java
b376887de5a8849dc935f22f31e3ca3af9a9d01d
[]
no_license
zhang1998/browser
e480fbd6a43e0a4886fc83ea402f8fbe5f7c7fce
4eee43a9d36ebb4573537eddb27061c67d84c7ba
refs/heads/master
2021-05-03T06:32:24.361277
2018-02-10T10:35:36
2018-02-10T10:35:36
120,590,649
8
10
null
null
null
null
UTF-8
Java
false
false
2,521
java
package com.loc; import android.content.Context; import android.text.TextUtils; import java.io.File; import java.lang.reflect.Constructor; /* compiled from: ProGuard */ public final class ac { public static <T> T a(Context context, ep epVar, String str, Class cls, Class[] clsArr, Object[] objArr) throws dw { af a; T t = null; try { a = ag.a().a(context, epVar); } catch (Throwable th) { es.a(th, "InstanceFactory", "getInstance1"); a = null; } if (a != null) { try { if (a.a() && a.d) { Class loadClass = a.loadClass(str); if (loadClass != null) { Constructor declaredConstructor = loadClass.getDeclaredConstructor(clsArr); declaredConstructor.setAccessible(true); t = declaredConstructor.newInstance(objArr); return t; } } } catch (Throwable th2) { es.a(th2, "InstanceFactory", "getInstance1()"); } } if (cls != null) { try { Constructor declaredConstructor2 = cls.getDeclaredConstructor(clsArr); declaredConstructor2.setAccessible(true); t = declaredConstructor2.newInstance(objArr); } catch (Throwable th3) { es.a(th3, "InstanceFactory", "getInstance2()"); dw dwVar = new dw("获取对象错误"); } } return t; } public static void a(Context context, aa aaVar, ep epVar) { if (aaVar != null) { try { if (!TextUtils.isEmpty(aaVar.a) && !TextUtils.isEmpty(aaVar.b) && !TextUtils.isEmpty(aaVar.e)) { new z(context, aaVar, epVar).start(); } } catch (Throwable th) { es.a(th, "InstanceFactory", "dDownload()"); } } } public static void a(Context context, String str) { try { fa.b().submit(new ab(context, str)); } catch (Throwable th) { es.a(th, "InstanceFactory", "rollBack"); } } public static boolean a(Context context, ep epVar) { try { return new File(ak.b(context, epVar.a(), epVar.b())).exists(); } catch (Throwable th) { es.a(th, "IFactory", "isdowned"); return false; } } }
[ "2764207312@qq.com" ]
2764207312@qq.com
2ed9a0e1daf472def08e63037443536d2f1b904e
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
/Code Snippet Repository/Maven/Maven1143.java
fef1cee86e76c361ee04a48595da9a400e38c756
[]
no_license
saber13812002/DeepCRM
3336a244d4852a364800af3181e03e868cf6f9f5
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
refs/heads/master
2023-03-16T00:08:06.473699
2018-04-18T05:29:50
2018-04-18T05:29:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
660
java
public void testBuildValidParentVersionRangeLocally() throws Exception { File f1 = getTestFile( "src/test/resources/projects/parent-version-range-local-valid/child/pom.xml" ); final MavenProject childProject = getProject( f1 ); assertNotNull( childProject.getParentArtifact() ); assertEquals( childProject.getParentArtifact().getVersion(), "1" ); assertNotNull( childProject.getParent() ); assertEquals( childProject.getParent().getVersion(), "1" ); assertNotNull( childProject.getModel().getParent() ); assertEquals( childProject.getModel().getParent().getVersion(), "[1,10]" ); }
[ "Qing.Mi@my.cityu.edu.hk" ]
Qing.Mi@my.cityu.edu.hk
b3ed58770d101c96f181f7b381b92332f0639375
03a289c1012bc0f84d6b232bf5e274a4eb5dfec0
/JavaLearning/designPattern/src/main/java/com/leon/artofpattern/simplefactory/HistogramChart.java
ee8d62b7cedab61400d2e3e0d7ce35e7095f0381
[]
no_license
severalfly/MyTest
f4d93f0cf8a4b7204861a2254670a095affccbe7
27f831899378b5602b32e29ca778cab63d604a14
refs/heads/master
2022-12-20T08:13:10.727855
2019-07-16T14:21:28
2019-07-16T14:21:28
22,954,817
0
0
null
2022-12-10T04:18:57
2014-08-14T13:30:12
C
UTF-8
Java
false
false
254
java
package com.leon.artofpattern.simplefactory; public class HistogramChart implements Chart { public HistogramChart() { System.out.println("创建柱状图"); } public void display() { System.out.println("显示柱状图"); } }
[ "zhangsmile90@gmail.com" ]
zhangsmile90@gmail.com
e4f0560baaa41f32757ca9c3ef9c7e1d16a39c69
0f2d15e30082f1f45c51fdadc3911472223e70e0
/src/3.7/plugins/com.perforce.team.ui/src/com/perforce/team/ui/p4java/actions/DepotDiffPreviousAction.java
faa20dcfd6a0045f1656038a3125841db47c1343
[ "BSD-2-Clause" ]
permissive
eclipseguru/p4eclipse
a28de6bd211df3009d58f3d381867d574ee63c7a
7f91b7daccb2a15e752290c1f3399cc4b6f4fa54
refs/heads/master
2022-09-04T05:50:25.271301
2022-09-01T12:47:06
2022-09-01T12:47:06
136,226,938
2
1
BSD-2-Clause
2022-09-01T19:42:29
2018-06-05T19:45:54
Java
UTF-8
Java
false
false
3,078
java
/** * Copyright (c) 2009 Perforce Software. All rights reserved. */ package com.perforce.team.ui.p4java.actions; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jface.dialogs.MessageDialog; import com.perforce.p4java.core.file.IFileSpec; import com.perforce.team.core.p4java.IP4File; import com.perforce.team.core.p4java.IP4Resource; import com.perforce.team.core.p4java.IP4Runnable; import com.perforce.team.core.p4java.IP4SubmittedFile; import com.perforce.team.core.p4java.P4Runnable; import com.perforce.team.ui.P4UIUtils; import com.perforce.team.ui.PerforceUIPlugin; import com.perforce.team.ui.editor.CompareUtils; /** * @author Kevin Sawicki (ksawicki@perforce.com) * */ public class DepotDiffPreviousAction extends P4Action { private static void showDiffDeleted() { PerforceUIPlugin.syncExec(new Runnable() { public void run() { MessageDialog.openError(P4UIUtils.getShell(), Messages.DepotDiffPreviousAction_CantDiffDeletedTitle, Messages.DepotDiffPreviousAction_CantDiffDeletedMessage); } }); } private static void showDiffAdded() { PerforceUIPlugin.syncExec(new Runnable() { public void run() { MessageDialog.openError(P4UIUtils.getShell(), Messages.DepotDiffPreviousAction_CantDiffAddedTitle, Messages.DepotDiffPreviousAction_CantDiffAddedMessage); } }); } /** * @see com.perforce.team.ui.p4java.actions.P4Action#runAction() */ @Override protected void runAction() { IP4Resource resource = getSingleResourceSelection(); if (resource instanceof IP4SubmittedFile) { final IP4File file = ((IP4SubmittedFile) resource).getFile(); if (file != null) { IP4Runnable runnable = new P4Runnable() { @Override public void run(IProgressMonitor monitor) { IFileSpec spec = file.getP4JFile(); if (spec != null) { if (file.openedForDelete()) { showDiffDeleted(); } else { String depot = file.getRemotePath(); int end = spec.getEndRevision(); if (end > 1) { CompareUtils.doCompare(file, depot, depot, end, end - 1); } else { showDiffAdded(); } } } } @Override public String getTitle() { return Messages.DepotDiffPreviousAction_GeneratingDiff; } }; runRunnable(runnable); } } } }
[ "gunnar@wagenknecht.org" ]
gunnar@wagenknecht.org
3726da31d00fdbdcffbc12522dfc0acfff3ceddf
08a95d58927c426e515d7f6d23631abe734105b4
/Project/bean/com/dimata/harisma/entity/service/notification/NotificationEmailRecord.java
e3b8fbf109f4677b39a2a4bfa1b4e09846b30433
[]
no_license
Bagusnanda90/javaproject
878ce3d82f14d28b69b7ef20af675997c73b6fb6
1c8f105d4b76c2deba2e6b8269f9035c67c20d23
refs/heads/master
2020-03-23T15:15:38.449142
2018-07-21T00:31:47
2018-07-21T00:31:47
141,734,002
0
1
null
null
null
null
UTF-8
Java
false
false
1,548
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.dimata.harisma.entity.service.notification; import com.dimata.qdep.entity.Entity; import java.util.Date; /** * * @author GUSWIK */ public class NotificationEmailRecord extends Entity { private long notificationEmailId = 0; private String email = ""; private Date dateSend = new Date(); private String subject = ""; /** * @return the notificationEmailId */ public long getNotificationEmailId() { return notificationEmailId; } /** * @param notificationEmailId the notificationEmailId to set */ public void setNotificationEmailId(long notificationEmailId) { this.notificationEmailId = notificationEmailId; } /** * @return the email */ public String getEmail() { return email; } /** * @param email the email to set */ public void setEmail(String email) { this.email = email; } /** * @return the dateSend */ public Date getDateSend() { return dateSend; } /** * @param dateSend the dateSend to set */ public void setDateSend(Date dateSend) { this.dateSend = dateSend; } /** * @return the subject */ public String getSubject() { return subject; } /** * @param subject the subject to set */ public void setSubject(String subject) { this.subject = subject; } }
[ "agungbagusnanda90@gmai.com" ]
agungbagusnanda90@gmai.com
d42750d0d9962dd18e1373710925f667fbe99678
1da9bcaeadb0502347a84a23082183747b809bb3
/core/src/main/java/org/apache/calcite/rel/logical/LogicalCorrelate.java
e5d3bd741f8fdd53ec8f15fca54e0ed3d58a1359
[ "Apache-2.0" ]
permissive
KylinOLAP/incubator-calcite
b1e80e0fe3079f0884b34216f89c92fc9db4304a
fede7e568398370ec73e8061a63c2f07f58c39d2
refs/heads/master
2020-12-28T22:01:08.950348
2014-12-14T20:56:52
2014-12-14T20:57:08
28,013,469
1
2
null
null
null
null
UTF-8
Java
false
false
3,650
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.calcite.rel.logical; import org.apache.calcite.plan.Convention; import org.apache.calcite.plan.RelOptCluster; import org.apache.calcite.plan.RelTraitSet; import org.apache.calcite.rel.RelInput; import org.apache.calcite.rel.RelNode; import org.apache.calcite.rel.RelShuttle; import org.apache.calcite.rel.core.Correlate; import org.apache.calcite.rel.core.CorrelationId; import org.apache.calcite.sql.SemiJoinType; import org.apache.calcite.util.ImmutableBitSet; /** * A relational operator that performs nested-loop joins. * * <p>It behaves like a kind of {@link org.apache.calcite.rel.core.Join}, * but works by setting variables in its environment and restarting its * right-hand input. * * <p>A LogicalCorrelate is used to represent a correlated query. One * implementation strategy is to de-correlate the expression. * * @see org.apache.calcite.rel.core.CorrelationId */ public final class LogicalCorrelate extends Correlate { //~ Instance fields -------------------------------------------------------- //~ Constructors ----------------------------------------------------------- /** * Creates a LogicalCorrelate. * @param cluster cluster this relational expression belongs to * @param left left input relational expression * @param right right input relational expression * @param correlationId variable name for the row of left input * @param requiredColumns * @param joinType join type */ public LogicalCorrelate( RelOptCluster cluster, RelNode left, RelNode right, CorrelationId correlationId, ImmutableBitSet requiredColumns, SemiJoinType joinType) { super( cluster, cluster.traitSetOf(Convention.NONE), left, right, correlationId, requiredColumns, joinType); } /** * Creates a LogicalCorrelate by parsing serialized output. */ public LogicalCorrelate(RelInput input) { this( input.getCluster(), input.getInputs().get(0), input.getInputs().get(1), new CorrelationId((Integer) input.get("correlationId")), input.getBitSet("requiredColumns"), input.getEnum("joinType", SemiJoinType.class)); } //~ Methods ---------------------------------------------------------------- @Override public LogicalCorrelate copy(RelTraitSet traitSet, RelNode left, RelNode right, CorrelationId correlationId, ImmutableBitSet requiredColumns, SemiJoinType joinType) { assert traitSet.containsIfApplicable(Convention.NONE); return new LogicalCorrelate( getCluster(), left, right, correlationId, requiredColumns, joinType); } @Override public RelNode accept(RelShuttle shuttle) { return shuttle.visit(this); } } // End LogicalCorrelate.java
[ "sitnikov.vladimir@gmail.com" ]
sitnikov.vladimir@gmail.com
8a5993f4d3009ced7d5fade380f8204e27da6097
627b5fa45456a81a5fc65f4b04c280bba0e17b01
/code-maven-plugin/trunk/esb/esb-management/esb-management-web/src/main/java/com/deppon/esb/management/web/action/sysuser/LoginAction.java
6e21a85471f774f8a7f418c8e73c62e4b3afbc28
[]
no_license
zgdkik/aili
046e051b65936c4271dd01b866a3c263cfb884aa
e47e3c62afcc7bec9409aff952b11600572a8329
refs/heads/master
2020-03-25T01:29:14.798728
2018-04-07T06:58:45
2018-04-07T06:58:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,838
java
package com.deppon.esb.management.web.action.sysuser; import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.apache.commons.lang.StringUtils; import org.apache.struts2.interceptor.CookiesAware; import org.apache.struts2.interceptor.ServletRequestAware; import org.apache.struts2.interceptor.ServletResponseAware; import org.apache.struts2.interceptor.SessionAware; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; import com.deppon.esb.management.user.domain.SysUserInfo; import com.deppon.esb.management.user.service.ISysUserService; import com.deppon.esb.management.web.MD5Util; import com.deppon.esb.management.web.deploy.struts.ESBActionSupport; import com.deppon.esb.management.web.deploy.struts.interceptor.LoginInterceptor; @Controller("loginAction") @Scope("prototype") public class LoginAction extends ESBActionSupport implements SessionAware,ServletRequestAware,ServletResponseAware,CookiesAware { private static final long serialVersionUID = -8848590532137519362L; @Resource private ISysUserService sysUserService; private String loginName; private String password; private boolean rememberMe; private HttpServletResponse response; private HttpServletRequest request; @SuppressWarnings("rawtypes") private Map session; @SuppressWarnings("rawtypes") private Map cookies; private String goingToURL; @SuppressWarnings("unchecked") public String login() throws Exception { if(loginName==null || password == null){ addActionMessage("user name or password can not be null."); return INPUT; } SysUserInfo sysUserInfo = sysUserService.attemptLogin(loginName, MD5Util.md5(password)); if (sysUserInfo != null) { if (rememberMe) { Cookie cookie = new Cookie(LoginInterceptor.COOKIE_REMEMBERME_KEY, sysUserInfo.getSysUserName() + "==" + sysUserInfo.getPassword()); cookie.setMaxAge(60 * 60 * 24 * 14); response.addCookie(cookie); } session.put(LoginInterceptor.USER_SESSION_KEY, sysUserInfo); String goingToURL = (String) session.get(LoginInterceptor.GOING_TO_URL_KEY); if (StringUtils.isNotBlank(goingToURL)) { setGoingToURL(goingToURL); session.remove(LoginInterceptor.GOING_TO_URL_KEY); } else { setGoingToURL("index.action"); } request.setAttribute("currentUserName", sysUserInfo.getUserName()); return SUCCESS; } else { addActionMessage("user name or password is not corrected."); return INPUT; } } public String logout() throws Exception { HttpSession session = request.getSession(false); if (session != null) { session.removeAttribute(LoginInterceptor.USER_SESSION_KEY); } Cookie[] cookies = request.getCookies(); if (cookies != null) { for (Cookie cookie : cookies) { if (LoginInterceptor.COOKIE_REMEMBERME_KEY.equals(cookie.getName())) { cookie.setValue(""); cookie.setMaxAge(0); response.addCookie(cookie); return "login"; } } } return "login"; } public String getLoginName() { return loginName; } public void setLoginName(String loginName) { this.loginName = loginName; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public boolean isRememberMe() { return rememberMe; } public void setRememberMe(boolean rememberMe) { this.rememberMe = rememberMe; } public HttpServletResponse getResponse() { return response; } public void setResponse(HttpServletResponse response) { this.response = response; } public HttpServletRequest getRequest() { return request; } public void setRequest(HttpServletRequest request) { this.request = request; } @SuppressWarnings("rawtypes") public Map getSession() { return session; } @SuppressWarnings("rawtypes") public Map getCookies() { return cookies; } @SuppressWarnings("rawtypes") public void setCookies(Map cookies) { this.cookies = cookies; } public String getGoingToURL() { return goingToURL; } public void setGoingToURL(String goingToURL) { this.goingToURL = goingToURL; } @Override public void setSession(Map<String, Object> session) { this.session = session; } @Override public void setCookiesMap(Map<String, String> cookies) { this.cookies = cookies; } @Override public void setServletResponse(HttpServletResponse response) { this.response = response; } @Override public void setServletRequest(HttpServletRequest request) { this.request = request; } }
[ "1024784402@qq.com" ]
1024784402@qq.com
cda7efff8a518bb720e456b2d10e47b2bcf11d51
b26d0ac0846fc13080dbe3c65380cc7247945754
/src/main/java/imports/aws/Wafv2RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java
4639a3917bea5411aeda7f3d00f6113c05691952
[]
no_license
nvkk-devops/cdktf-java-aws
1431404f53df8de517f814508fedbc5810b7bce5
429019d87fc45ab198af816d8289dfe1290cd251
refs/heads/main
2023-03-23T22:43:36.539365
2021-03-11T05:17:09
2021-03-11T05:17:09
346,586,402
0
0
null
null
null
null
UTF-8
Java
false
false
3,680
java
package imports.aws; @javax.annotation.Generated(value = "jsii-pacmak/1.24.0 (build b722f66)", date = "2021-03-10T09:47:02.987Z") @software.amazon.jsii.Jsii(module = imports.aws.$Module.class, fqn = "aws.Wafv2RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString") @software.amazon.jsii.Jsii.Proxy(Wafv2RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.Jsii$Proxy.class) public interface Wafv2RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString extends software.amazon.jsii.JsiiSerializable { /** * @return a {@link Builder} of {@link Wafv2RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString} */ static Builder builder() { return new Builder(); } /** * A builder for {@link Wafv2RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString} */ public static final class Builder implements software.amazon.jsii.Builder<Wafv2RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString> { /** * Builds the configured instance. * @return a new instance of {@link Wafv2RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString} * @throws NullPointerException if any required attribute was not provided */ @Override public Wafv2RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { return new Jsii$Proxy(); } } /** * An implementation for {@link Wafv2RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString} */ @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Wafv2RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy() { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("aws.Wafv2RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } } }
[ "venkata.nidumukkala@emirates.com" ]
venkata.nidumukkala@emirates.com
0f2cafd088ec4a14c7ca88c9a7e6ca05af1ba6ad
016ab3789f8c3c3f4cd3d0cd001ac4e657e010f5
/ActivityLifeCycleTest/app/src/main/java/com/example/android/activitylifecycletest/NormalActivity.java
18a5f84b67871ec6dbf7076347bfe45ea746c36e
[]
no_license
ltt19921124/LearningAndroid
b7c353d41fbc6d9a7b97692f1f9b849629087c3b
ced1543af2a290f8d35ee4f37e21e2ff727bdc41
refs/heads/master
2021-01-12T05:02:55.266232
2017-02-05T16:14:53
2017-02-05T16:14:53
77,838,120
0
0
null
null
null
null
UTF-8
Java
false
false
439
java
package com.example.android.activitylifecycletest; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Window; public class NormalActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.normal_layout); } }
[ "ltt19921124@163.com" ]
ltt19921124@163.com
544db8ec2b383bd6b55de76bf705125d8f5a92e8
70b8eb4de0af1b738b7cb3726d3a0948326143b1
/src/BasicJava/lesson_6_1/Main.java
b664ac6139db7fcc1797f2607872afd0d678ebe4
[]
no_license
A1QA/Stepik-java
5874927f2b92ef603b9c6587a752842156acbfb3
1574ea7b587bf69707b5c03b3dfc3b256b385804
refs/heads/master
2020-04-11T19:22:35.466551
2016-11-29T08:54:09
2016-11-29T08:54:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,122
java
package BasicJava.lesson_6_1; import javax.lang.model.element.Element; import java.util.*; /** * * Created by btow on 21.11.2016. */ public class Main { public static void main(String[] args) { Pair<Integer, String> pair = Pair.of(1, "hello"); Integer i = pair.getFirst(); // 1 String s = pair.getSecond(); // "hello" Pair<Integer, String> pair2 = Pair.of(1, "hello"); boolean mustBeTrue = pair.equals(pair2); // true! boolean mustAlsoBeTrue = pair.hashCode() == pair2.hashCode(); // true! // Collection<?> collection = new ArrayList<>(); // Object object = new String("Hello!"); // // collection.addAll(Arrays.asList(object)); // boolean objectAdded = collection.add(object); // Iterator<?> it = collection.iterator(); // Integer collectionSize = collection.size(); // boolean collectionContainsObject = collection.contains(object); // Object[] words = collection.toArray(); // collection.clear(); // boolean jbjectRemovedFromCollection = collection.remove(object); // // Set<String> set = new LinkedHashSet<>(); //// add some elements to the set // Iterator<String> iterator = set.iterator(); } public static <T extends Element> Set<T> symmetricDifference(Set<? extends T> set1, Set<? extends T> set2) { Set<? extends T> firstSet = new HashSet<T>(set1), secondSet = new HashSet<T>(set2), retainSet = new HashSet<T>(set2); Set<T> result = new HashSet<T>(set1); boolean retainSetContainsDatas = retainSet.retainAll(firstSet); boolean resultContainsAllUnicalElementsOfFirstAndSecondSets = result.addAll(secondSet); boolean resultContainsSymmetricDifferenceOfFirstAndSecondSets = result.removeAll(retainSet); boolean stopFlag = retainSetContainsDatas & resultContainsAllUnicalElementsOfFirstAndSecondSets & resultContainsSymmetricDifferenceOfFirstAndSecondSets; if (!stopFlag) { result = null; } return result; } }
[ "btow@yandex.ru" ]
btow@yandex.ru
19f867d0545952ac046887efe9c4b149edc22849
59f37c07577b6f14bc9c6d05d68e416e8f6932a0
/src/main/java/victor/training/cleancode/BooleanParameters.java
4080b6f5a95baba215e0ca901b32f7fa7b394763
[ "MIT" ]
permissive
mafteiervin1/clean-code-java
14a940ee8990f4d9fbac928f36aca4e875c71bc5
4fc5cc898ec3b3b9ea1e074eb6891d32c95c777d
refs/heads/master
2022-12-21T12:37:30.700122
2020-09-26T03:13:14
2020-09-26T03:13:14
299,281,841
0
0
MIT
2020-09-28T11:07:33
2020-09-28T11:07:32
null
UTF-8
Java
false
false
1,789
java
package victor.training.cleancode; import java.util.List; public class BooleanParameters { public static void main(String[] args) { // The big method is called from various foreign places in the codebase bigUglyMethod(1, 5); bigUglyMethod(2, 4); bigUglyMethod(3, 3); bigUglyMethod(4, 2); bigUglyMethod(5, 1); // TODO From my use-case #323, I call it too, to do more within: bigUglyMethod(2, 1); } static void bigUglyMethod(int b, int a) { System.out.println("Complex Logic 1 " + a + " and " + b); System.out.println("Complex Logic 2 " + a); System.out.println("Complex Logic 3 " + a); System.out.println("More Complex Logic " + b); System.out.println("More Complex Logic " + b); System.out.println("More Complex Logic " + b); } // ============== "BOSS" LEVEL: Deeply nested functions are a lot harder to break down ================= public void bossLevel(boolean stuff, boolean fluff, List<Integer> tasks) { int i = 0; // TODO move closer to usages int j = tasks.size(); System.out.println("Logic1"); if (stuff) { System.out.println("Logic2"); if (fluff) { System.out.println("Logic3"); for (int task : tasks) { i++; System.out.println("Logic4: Validate " + task); // TODO When **I** call this method, I want this to run HERE, too: // System.out.println("My Logic: " + task); System.out.println("Logic5 " + i + " on " + task); } System.out.println("Logic6 " + j); } else { System.out.println("Logic7 " + tasks); } } System.out.println("Logic7"); } } class Task { }
[ "victorrentea@gmail.com" ]
victorrentea@gmail.com
e84bc6c72ef3b00d9f53560c8efe218b65780ce6
b2bfac7b91b2542228931c10c668ca2f67e86b51
/fba/app/src/main/java/com/ppu/fba/p009d/C0305b.java
00a6c0aaf16ce532488d2ae5d3a1095321993fbf
[]
no_license
abozanona/fbaAndroid
b58be90fc94ceec5170d84133c1e8c4e2be8806f
f058eb0317df3e76fd283e285c4dd3dbc354aef5
refs/heads/master
2021-09-26T22:05:31.517265
2018-11-03T07:21:17
2018-11-03T07:21:17
108,681,428
1
0
null
null
null
null
UTF-8
Java
false
false
731
java
package com.ppu.fba.p009d; import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.view.View; import android.view.View.OnClickListener; import com.ppu.fba.free.R; final class C0305b implements OnClickListener { final /* synthetic */ Context f1389a; final /* synthetic */ Dialog f1390b; C0305b(Context context, Dialog dialog) { this.f1389a = context; this.f1390b = dialog; } public void onClick(View view) { this.f1389a.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=" + this.f1389a.getResources().getText(R.string.package_name)))); this.f1390b.dismiss(); } }
[ "abozanona@gmail.com" ]
abozanona@gmail.com
6a5f0b0ea211cb68bcf50b9eb19e63520825c253
846646a1018991a497ad33bcb64be784271368a6
/src/main/com/yqc/beforePractice/demo/MultiThreadShareData.java
4206fb571c11afdfca8693893b90d9a668cedf78
[]
no_license
arsenal-ac/concurrent-resource
09c95f16e898ded4e61a2b1f57550b235ceb4e5d
e77da48cbd9f117c872facda67680a199634b6ac
refs/heads/master
2020-12-30T13:46:28.431098
2017-06-06T07:35:33
2017-06-06T07:35:33
91,253,307
0
0
null
null
null
null
UTF-8
Java
false
false
524
java
package com.yqc.beforePractice.demo; public class MultiThreadShareData { public static void main(String[] args) { ShareData1 data1=new ShareData1(); new Thread(data1).start(); new Thread(data1).start(); } } class ShareData1 implements Runnable{ private int count=100; int j=0; public synchronized void increment(){ j++; } public synchronized void decrement(){ j--; } @Override public void run() { while(count>=0){ System.out.println(Thread.currentThread().getName()+":"+count); count--; } } }
[ "yangqc_ars@outlook.com" ]
yangqc_ars@outlook.com
b5be02953ce68853edb65e59947568d84a917706
faeca64421552139996a3f8cdd765882262f1a47
/src/test/java/walkingkooka/net/http/server/HttpRequestAttributeRoutingTestCase.java
8394934c7ed331160c69a8aae8ba20aef77efbd0
[ "Apache-2.0" ]
permissive
mP1/walkingkooka-net
10f3a5bd5a167586b7c5a2f863a53ce2f9c43ccc
6b362ea7ada91bd38cf30ad870dbf722a15dfc0d
refs/heads/master
2023-07-22T19:17:17.966722
2023-07-15T09:37:33
2023-07-15T09:37:33
198,601,695
0
1
Apache-2.0
2023-07-15T09:37:35
2019-07-24T09:22:18
Java
UTF-8
Java
false
false
1,249
java
/* * Copyright 2019 Miroslav Pokorny (github.com/mP1) * * 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 walkingkooka.net.http.server; import walkingkooka.ToStringTesting; import walkingkooka.reflect.ClassTesting2; import walkingkooka.reflect.TypeNameTesting; public abstract class HttpRequestAttributeRoutingTestCase<T> implements ClassTesting2<T>, ToStringTesting<T>, TypeNameTesting<T> { HttpRequestAttributeRoutingTestCase() { super(); } // TypeNameTesting.................................................................................................. @Override public String typeNamePrefix() { return HttpRequestAttributeRouting.class.getSimpleName(); } }
[ "miroslav.pokorny@gmail.com" ]
miroslav.pokorny@gmail.com
598116daf5da96b7cec4c1ae6f3ef078e7fa4472
1bf4dc9938c01f35037608d6711818fd99fac7b3
/src/main/java/works/tonny/apps/user/service/impl/JobServiceImpl.java
d929e28b826589c46292d8f04084c5c34ae4b36b
[]
no_license
tonny1228/works-core
f3d89a0c0959b2e0bdf05d79277be8ea852d2062
7e8f7316adceaddb082c5e1c93ae980d00262670
refs/heads/master
2021-01-21T04:59:48.280655
2016-07-21T06:55:28
2016-07-21T06:55:28
55,477,358
0
0
null
null
null
null
UTF-8
Java
false
false
3,252
java
package works.tonny.apps.user.service.impl; // Generated 2012-12-3 13:14:30 by Hibernate Tools 3.4.0.CR1 import java.util.List; import org.llama.library.utils.Assert; import org.llama.library.utils.PropertiesUtils; import org.springframework.transaction.annotation.Transactional; import works.tonny.apps.user.AuthedAbstractService; import works.tonny.apps.user.dao.JobDAO; import works.tonny.apps.user.dao.JobLevelDAO; import works.tonny.apps.user.model.Job; import works.tonny.apps.user.model.JobLevel; import works.tonny.apps.user.service.JobService; /** * Service object for domain model class Job. * * @see entity.Job * @author Tonny Liu */ public class JobServiceImpl extends AuthedAbstractService implements JobService { private JobDAO jobDAO; private JobLevelDAO jobLevelDAO; /** * 读取Job * * @param id 编号 * @return Job */ public Job get(String id) { Job job = jobDAO.get(id); job.getJobLevels().size(); return job; } /** * 创建Job * * @param job * @return */ public String save(Job job) { validate(job); return jobDAO.save(job); } /** * 验证并初始数据 */ private void validate(Job job) { } /** * 更新Job * * @param job */ public void update(Job job) { Job db = get(job.getId()); PropertiesUtils.copyProperties(db, job, "name", "info", "orderNo", "jobLevels"); jobDAO.update(db); } /** * 通过id删除Job * * @param id 编号 */ public void delete(String id) { Job job = jobDAO.get(id); Assert.notNull(job); jobDAO.delete(job); } /** * 通过多个id删除Job * * @param ids id数组 */ @Transactional(rollbackFor = Exception.class) public void delete(String[] ids) { for (String id : ids) { delete(id); } } /** * 分页查询Job列表 * * @param page 页码 * @param pagesize 每页条数 * @return 分页列表 */ public List<Job> list() { return jobDAO.list(); } public JobDAO getJobDAO() { return jobDAO; } public void setJobDAO(JobDAO jobDAO) { this.jobDAO = jobDAO; } public JobLevelDAO getJobLevelDAO() { return jobLevelDAO; } public void setJobLevelDAO(JobLevelDAO jobLevelDAO) { this.jobLevelDAO = jobLevelDAO; } /** * * @see com.zxtx.apps.user.JobService#saveJobLevel(com.zxtx.apps.user.JobLevel, * java.lang.String) */ public String saveJobLevel(String name, String info, int level, String jobId) { Job job = jobDAO.get(jobId); JobLevel jobLevel = new JobLevel(job, name, info, level); return jobLevelDAO.save(jobLevel); } /** * * @see com.zxtx.apps.user.JobService#updateJobLevel(java.lang.String, * java.lang.String, java.lang.String, int) */ public void updateJobLevel(String id, String name, String info, int level) { JobLevel jobLevel = jobLevelDAO.get(id); jobLevel.setInfo(info); jobLevel.setName(name); jobLevel.setLevel(level); jobLevelDAO.update(jobLevel); } /** * * @see com.zxtx.apps.user.JobService#deleteJobLevel(java.lang.String) */ public void deleteJobLevel(String id) { jobLevelDAO.delete(getJobLevel(id)); } /** * * @see com.zxtx.apps.user.JobService#getJobLevel(java.lang.String) */ public JobLevel getJobLevel(String id) { return jobLevelDAO.get(id); } }
[ "tonny1228@163.com" ]
tonny1228@163.com
4869e7581d755ed5e8acc322cc78594cde895ad0
3cd63aba77b753d85414b29279a77c0bc251cea9
/main/plugins/org.talend.designer.components.libs/libs_src/crm4client/com/microsoft/schemas/crm/_2007/webservices/impl/CancelSalesOrderRequestImpl.java
bf5d27a98885a158ebb50ab1d31ebdbf59525417
[ "Apache-2.0" ]
permissive
195858/tdi-studio-se
249bcebb9700c6bbc8905ccef73032942827390d
4fdb5cfb3aeee621eacfaef17882d92d65db42c3
refs/heads/master
2021-04-06T08:56:14.666143
2018-10-01T14:11:28
2018-10-01T14:11:28
124,540,962
1
0
null
2018-10-01T14:11:29
2018-03-09T12:59:25
Java
UTF-8
Java
false
false
4,927
java
/* * XML Type: CancelSalesOrderRequest * Namespace: http://schemas.microsoft.com/crm/2007/WebServices * Java type: com.microsoft.schemas.crm._2007.webservices.CancelSalesOrderRequest * * Automatically generated - do not modify. */ package com.microsoft.schemas.crm._2007.webservices.impl; /** * An XML CancelSalesOrderRequest(@http://schemas.microsoft.com/crm/2007/WebServices). * * This is a complex type. */ public class CancelSalesOrderRequestImpl extends com.microsoft.schemas.crm._2007.webservices.impl.RequestImpl implements com.microsoft.schemas.crm._2007.webservices.CancelSalesOrderRequest { public CancelSalesOrderRequestImpl(org.apache.xmlbeans.SchemaType sType) { super(sType); } private static final javax.xml.namespace.QName ORDERCLOSE$0 = new javax.xml.namespace.QName("http://schemas.microsoft.com/crm/2007/WebServices", "OrderClose"); private static final javax.xml.namespace.QName STATUS$2 = new javax.xml.namespace.QName("http://schemas.microsoft.com/crm/2007/WebServices", "Status"); /** * Gets the "OrderClose" element */ public com.microsoft.schemas.crm._2006.webservices.BusinessEntity getOrderClose() { synchronized (monitor()) { check_orphaned(); com.microsoft.schemas.crm._2006.webservices.BusinessEntity target = null; target = (com.microsoft.schemas.crm._2006.webservices.BusinessEntity)get_store().find_element_user(ORDERCLOSE$0, 0); if (target == null) { return null; } return target; } } /** * Sets the "OrderClose" element */ public void setOrderClose(com.microsoft.schemas.crm._2006.webservices.BusinessEntity orderClose) { synchronized (monitor()) { check_orphaned(); com.microsoft.schemas.crm._2006.webservices.BusinessEntity target = null; target = (com.microsoft.schemas.crm._2006.webservices.BusinessEntity)get_store().find_element_user(ORDERCLOSE$0, 0); if (target == null) { target = (com.microsoft.schemas.crm._2006.webservices.BusinessEntity)get_store().add_element_user(ORDERCLOSE$0); } target.set(orderClose); } } /** * Appends and returns a new empty "OrderClose" element */ public com.microsoft.schemas.crm._2006.webservices.BusinessEntity addNewOrderClose() { synchronized (monitor()) { check_orphaned(); com.microsoft.schemas.crm._2006.webservices.BusinessEntity target = null; target = (com.microsoft.schemas.crm._2006.webservices.BusinessEntity)get_store().add_element_user(ORDERCLOSE$0); return target; } } /** * Gets the "Status" element */ public int getStatus() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$2, 0); if (target == null) { return 0; } return target.getIntValue(); } } /** * Gets (as xml) the "Status" element */ public org.apache.xmlbeans.XmlInt xgetStatus() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlInt target = null; target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(STATUS$2, 0); return target; } } /** * Sets the "Status" element */ public void setStatus(int status) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$2, 0); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$2); } target.setIntValue(status); } } /** * Sets (as xml) the "Status" element */ public void xsetStatus(org.apache.xmlbeans.XmlInt status) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlInt target = null; target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(STATUS$2, 0); if (target == null) { target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(STATUS$2); } target.set(status); } } }
[ "bchen@f6f1c999-d317-4740-80b0-e6d1abc6f99e" ]
bchen@f6f1c999-d317-4740-80b0-e6d1abc6f99e
4d0ed55717560b9755bd31f778c9b505ca521acb
6edf6c315706e14dc6aef57788a2abea17da10a3
/com/planet_ink/marble_mud/WebMacros/AbilityCursesNext.java
38883472b221810005a8fed3bdb0e52c36e5281b
[]
no_license
Cocanuta/Marble
c88efd73c46bd152098f588ba1cdc123316df818
4306fbda39b5488dac465a221bf9d8da4cbf2235
refs/heads/master
2020-12-25T18:20:08.253300
2012-09-10T17:09:50
2012-09-10T17:09:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,594
java
package com.planet_ink.marble_mud.WebMacros; import com.planet_ink.marble_mud.core.interfaces.*; import com.planet_ink.marble_mud.core.*; import com.planet_ink.marble_mud.core.collections.*; import com.planet_ink.marble_mud.Abilities.interfaces.*; import com.planet_ink.marble_mud.Areas.interfaces.*; import com.planet_ink.marble_mud.Behaviors.interfaces.*; import com.planet_ink.marble_mud.CharClasses.interfaces.*; import com.planet_ink.marble_mud.Libraries.interfaces.*; import com.planet_ink.marble_mud.Common.interfaces.*; import com.planet_ink.marble_mud.Exits.interfaces.*; import com.planet_ink.marble_mud.Items.interfaces.*; import com.planet_ink.marble_mud.Locales.interfaces.*; import com.planet_ink.marble_mud.MOBS.interfaces.*; import com.planet_ink.marble_mud.Races.interfaces.*; import java.util.*; /* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ public class AbilityCursesNext extends StdWebMacro { public String name(){return this.getClass().getName().substring(this.getClass().getName().lastIndexOf('.')+1);} public String runMacro(ExternalHTTPRequests httpReq, String parm) { if(!CMProps.getBoolVar(CMProps.SYSTEMB_MUDSTARTED)) return " @break@"; java.util.Map<String,String> parms=parseParms(parm); String last=httpReq.getRequestParameter("ABILITY"); if(parms.containsKey("RESET")) { if(last!=null) httpReq.removeRequestParameter("ABILITY"); return ""; } String lastID=""; String deityName=httpReq.getRequestParameter("DEITY"); Deity D=null; if((deityName!=null)&&(deityName.length()>0)) D=CMLib.map().getDeity(deityName); if(D==null) { if(parms.containsKey("EMPTYOK")) return "<!--EMPTY-->"; return " @break@"; } for(int a=0;a<D.numCurses();a++) { Ability A=D.fetchCurse(a); if((last==null)||((last.length()>0)&&(last.equals(lastID))&&(!A.ID().equals(lastID)))) { httpReq.addRequestParameters("ABILITY",A.ID()); return ""; } lastID=A.ID(); } httpReq.addRequestParameters("ABILITY",""); if(parms.containsKey("EMPTYOK")) return "<!--EMPTY-->"; return " @break@"; } }
[ "Cocanuta@Gmail.com" ]
Cocanuta@Gmail.com
38f68629bdc31fffcda428f0cf7562e397107652
24d282171fc5f682136e13515fb4ec980f7ee5ca
/java/src/homework/day2/Test1.java
643d73f281f60fe388d0746a6c77950e08226852
[]
no_license
yexiu728/mingwan
0c0075ff2479a95830da083c51e547935e98d3b6
85eebcb28dbf5fbad7cd81f2e1bb42afea3f19fc
refs/heads/master
2021-01-07T19:40:10.245612
2020-02-20T05:24:35
2020-02-20T05:24:35
241,800,503
0
0
null
null
null
null
UTF-8
Java
false
false
316
java
package homework.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
a25b983a2a18613e43c14c4c24b5280febf05995
0dad44aecd47b6ca5326a3dcb3e06dcb91832158
/CommonApp/src/com/fss/Common/uiModule/square_progressbar/utils/PercentStyle.java
6b8d20a460e5604fb1e088ba7cf991d1f65fcf68
[ "Apache-2.0" ]
permissive
xiu307/CommonLibsForAndroid
8c985e43157dd39323c02fa031f659db145c8fde
2c1b020d6d996e15ede662351d1c7e61172a4946
refs/heads/master
2021-01-20T21:46:24.454349
2014-07-02T09:05:14
2014-07-02T09:05:14
21,447,501
1
0
null
null
null
null
UTF-8
Java
false
false
1,716
java
package com.fss.Common.uiModule.square_progressbar.utils; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Paint.Align; public class PercentStyle { private Align align; private float textSize; private boolean percentSign; private String customText = "%"; private int textColor = Color.BLACK; public PercentStyle() { // do nothing } public PercentStyle(Align align, float textSize, boolean percentSign) { super(); this.align = align; this.textSize = textSize; this.percentSign = percentSign; } public Align getAlign() { return align; } public void setAlign(Align align) { this.align = align; } public float getTextSize() { return textSize; } public void setTextSize(float textSize) { this.textSize = textSize; } public boolean isPercentSign() { return percentSign; } public void setPercentSign(boolean percentSign) { this.percentSign = percentSign; } public String getCustomText() { return customText; } /** * With this you can set a custom text which should get displayed right * behind the number of the progress. Per default it displays a <i>%</i>. * * @param customText * The custom text you want to display. * @since 1.4.0 */ public void setCustomText(String customText) { this.customText = customText; } public int getTextColor() { return textColor; } /** * Set the color of the text that display the current progress. This will * also change the color of the text that normally represents a <i>%</i>. * * @param textColor * the color to set the text to. * @since 1.4.0 */ public void setTextColor(int textColor) { this.textColor = textColor; } }
[ "cymcsg@gmail.com" ]
cymcsg@gmail.com
107ba5373f9b353d452cf69d4a17d5f73c655a44
5aaebaafeb75c7616689bcf71b8dd5ab2c89fa3b
/src/ANXGallery/sources/com/miui/gallery/adapter/BaseAdapter.java
b71ad4d1edae9129cfe9eb85c8165a8c5c5787e3
[]
no_license
gitgeek4dx/ANXGallery9
9bf2b4da409ab16492e64340bde4836d716ea7ec
af2e3c031d1857fa25636ada923652b66a37ff9e
refs/heads/master
2022-01-15T05:23:24.065872
2019-07-25T17:34:35
2019-07-25T17:34:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,900
java
package com.miui.gallery.adapter; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.text.TextUtils; import android.widget.CursorAdapter; import com.miui.gallery.Config.ThumbConfig; import com.miui.gallery.cloud.CloudUtils; import com.miui.gallery.util.FileUtils; import com.miui.gallery.util.StorageUtils; import com.miui.gallery.util.uil.CloudUriAdapter; import com.nostra13.universalimageloader.core.DisplayImageOptions; import com.nostra13.universalimageloader.core.DisplayImageOptions.Builder; import com.nostra13.universalimageloader.core.assist.ImageSize; import com.nostra13.universalimageloader.core.assist.ViewScaleType; public abstract class BaseAdapter extends CursorAdapter { private static String sMainMicroFolder = StorageUtils.getPriorMicroThumbnailDirectory(); protected Context mContext; protected DisplayImageOptions mDefaultDisplayImageOptions; protected Builder mDisplayImageOptionBuilder; public BaseAdapter(Context context) { super(context, null, false); this.mContext = context; initDisplayImageOptions(); } protected static Uri getDownloadUri(int i, long j) { if (i == 0) { return getDownloadUri(j); } return null; } protected static Uri getDownloadUri(long j) { return CloudUriAdapter.getDownloadUri(j); } protected static Uri getDownloadUri(Cursor cursor, int i) { return getDownloadUri(cursor.getLong(i)); } public static Uri getDownloadUri(Cursor cursor, int i, int i2) { return getDownloadUri(cursor.getInt(i), cursor.getLong(i2)); } public static String getMicroPath(Cursor cursor, int i, int i2) { String string = cursor.getString(i); return (!TextUtils.isEmpty(string) || i2 < 0) ? string : FileUtils.concat(sMainMicroFolder, CloudUtils.getThumbnailNameBySha1(cursor.getString(i2))); } private boolean isValidPosition(int i) { return i >= 0 && i < getCount(); } public String getClearThumbFilePath(int i) { return null; } /* access modifiers changed from: protected */ public Cursor getCursorByPosition(int i) { if (isValidPosition(i)) { return (Cursor) getItem(i); } throw new IllegalArgumentException(String.format("Wrong cursor position %d, total count %d", new Object[]{Integer.valueOf(i), Integer.valueOf(getCount())})); } /* access modifiers changed from: protected */ public DisplayImageOptions getDisplayImageOptions(int i) { long fileLength = getFileLength(i); return fileLength > 0 ? this.mDisplayImageOptionBuilder.considerFileLength(true).fileLength(fileLength).build() : this.mDefaultDisplayImageOptions; } /* access modifiers changed from: protected */ public ImageSize getDisplayImageSize(int i) { return ThumbConfig.get().sMicroTargetSize; } /* access modifiers changed from: protected */ public ViewScaleType getDisplayScaleType(int i) { return ViewScaleType.CROP; } public Uri getDownloadUri(int i) { return null; } public long getFileLength(int i) { return 0; } public String getLocalPath(int i) { return null; } public String getMicroThumbFilePath(int i) { return null; } public String getOriginFilePath(int i) { return null; } public String getThumbFilePath(int i) { return null; } /* access modifiers changed from: protected */ public void initDisplayImageOptions() { this.mDisplayImageOptionBuilder = new Builder().cloneFrom(ThumbConfig.get().MICRO_THUMB_DISPLAY_IMAGE_OPTIONS_DEFAULT); this.mDefaultDisplayImageOptions = this.mDisplayImageOptionBuilder.build(); } public boolean isFavorite(int i) { return false; } }
[ "sv.xeon@gmail.com" ]
sv.xeon@gmail.com
9b0fc26b64d9144a9c52ae25c3308e7384b98325
9ab5bdb918b886f1f2d09d81efb63ff83a86bfb0
/core/src/main/java/com/jdt/fedlearn/core/entity/verticalLinearRegression/LinearP2Request.java
2c697cebd6f73782c99428bbb839f065ce007b5d
[ "Apache-2.0" ]
permissive
BestJex/fedlearn
75a795ec51c4a37af34886c551874df419da3a9c
15395f77ac3ddd983ae3affb1c1a9367287cc125
refs/heads/master
2023-06-17T01:27:36.143351
2021-07-19T10:43:09
2021-07-19T10:43:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,183
java
/* Copyright 2020 The FedLearn Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package com.jdt.fedlearn.core.entity.verticalLinearRegression; import com.jdt.fedlearn.core.entity.ClientInfo; import com.jdt.fedlearn.core.entity.Message; import java.util.List; public class LinearP2Request implements Message { private ClientInfo client; private List<LinearP1Response> bodies; public LinearP2Request(ClientInfo client, List<LinearP1Response> bodies) { this.client = client; this.bodies = bodies; } public ClientInfo getClient() { return client; } public List<LinearP1Response> getBodies() { return bodies; } }
[ "wangpeiqi@jd.com" ]
wangpeiqi@jd.com
0ca886743cea3ed513b2d8f93df3c95980c5f466
fba8af31d5d36d8a6cf0c341faed98b6cd5ec0cb
/src/main/java/com/alipay/api/response/AlipayInsDataDsbImageUploadResponse.java
66967251c8121d0136f09c80140fe474560f1492
[ "Apache-2.0" ]
permissive
planesweep/alipay-sdk-java-all
b60ea1437e3377582bd08c61f942018891ce7762
637edbcc5ed137c2b55064521f24b675c3080e37
refs/heads/master
2020-12-12T09:23:19.133661
2020-01-09T11:04:31
2020-01-09T11:04:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
673
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.ins.data.dsb.image.upload response. * * @author auto create * @since 1.0, 2019-01-07 20:51:15 */ public class AlipayInsDataDsbImageUploadResponse extends AlipayResponse { private static final long serialVersionUID = 2582762741156881784L; /** * 图像文件在oss存储上的路径 */ @ApiField("image_path") private String imagePath; public void setImagePath(String imagePath) { this.imagePath = imagePath; } public String getImagePath( ) { return this.imagePath; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
f5f56dd58c7a570b389f9a8d200212b3eab468ed
90b23e57b20873a1aaea1824379a34776f54dd4f
/Mage/src/mage/abilities/costs/common/RemoveVariableCountersSourceCost.java
8de3941e674569f467c6d92894d7c04645a856a0
[]
no_license
Nick456/mage
c4c103b853dc01455d9017ad09e2595da8392b67
d2f83b1ade4f7a2953635f594f6541e7b72157ce
refs/heads/master
2021-01-17T13:45:23.038905
2013-09-24T14:54:55
2013-09-24T14:54:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,509
java
/* * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``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 BetaSteward_at_googlemail.com OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those of the * authors and should not be interpreted as representing official policies, either expressed * or implied, of BetaSteward_at_googlemail.com. */ package mage.abilities.costs.common; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.costs.CostImpl; import mage.abilities.costs.VariableCost; import mage.counters.Counter; import mage.filter.FilterMana; import mage.game.Game; import mage.game.permanent.Permanent; import mage.players.Player; /** * * @author LevelX2 */ public class RemoveVariableCountersSourceCost extends CostImpl<RemoveVariableCountersSourceCost> implements VariableCost { protected int amountPaid = 0; protected int minimalCountersToPay = 0; private String name; public RemoveVariableCountersSourceCost(Counter counter, int minimalCountersToPay) { this.minimalCountersToPay = minimalCountersToPay; this.name = counter.getName(); this.text = "Remove X " + name + " counter from {this}"; } public RemoveVariableCountersSourceCost(Counter counter) { this(counter, 0); } public RemoveVariableCountersSourceCost(final RemoveVariableCountersSourceCost cost) { super(cost); this.amountPaid = cost.amountPaid; this.minimalCountersToPay = cost.minimalCountersToPay; this.name = cost.name; } @Override public boolean canPay(UUID sourceId, UUID controllerId, Game game) { Permanent permanent = game.getPermanent(sourceId); if (permanent.getCounters().getCount(name) >= minimalCountersToPay) { return true; } return false; } @Override public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana) { Permanent permanent = game.getPermanent(sourceId); Player player = game.getPlayer(permanent.getControllerId()); this.amountPaid = player.getAmount(minimalCountersToPay, permanent.getCounters().getCount(name), "Choose X counters to remove", game); if (this.amountPaid >= minimalCountersToPay) { permanent.removeCounters(name, amountPaid, game); this.paid = true; } game.informPlayers(player.getName() + " removes " + this.amountPaid + " " + name + " counter from " + permanent.getName()); return paid; } @Override public void clearPaid() { paid = false; amountPaid = 0; } @Override public int getAmount() { return amountPaid; } @Override public void setAmount(int amount) { amountPaid = amount; } /** * Not Supported * @param filter */ @Override public void setFilter(FilterMana filter) { } /** * Not supported * @return */ @Override public FilterMana getFilter() { return new FilterMana(); } @Override public RemoveVariableCountersSourceCost copy() { return new RemoveVariableCountersSourceCost(this); } }
[ "ludwig.hirth@online.de" ]
ludwig.hirth@online.de