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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ccadf9d6c7d6b146588b34c2afe02681029b24ac
|
c172277968872fed622af288f299b2312cc8797c
|
/library/src/main/java/com/designer/library/utils/BitUtils.java
|
7fd627af536f53d6f4d9ac06507879b1255d8acf
|
[] |
no_license
|
meihuali/TuiTuiZhu
|
3b1a824713b807cca5c88202b03ca295113b4327
|
dc1867374f747ea63904dfdfafe599f3e10483cd
|
refs/heads/master
| 2020-05-02T03:36:52.444123
| 2019-03-26T07:03:57
| 2019-03-26T07:03:57
| 177,732,689
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,270
|
java
|
/*
* Copyright (C) 2018,米珈科技有限公司 All rights reserved.
* Project:TongHeChuanMei
* Author:姜涛
* Date:11/12/18 4:49 PM
*/
package com.designer.library.utils;
import android.util.Log;
/**
* <pre>
* author: Blankj
* blog : http://blankj.com
* time : 2018/03/21
* desc : 位运算工具类
* </pre>
*/
public final class BitUtils {
private BitUtils() {
throw new UnsupportedOperationException("u can't instantiate me...");
}
/**
* 获取运算数指定位置的值<br>
* 例如: 0000 1011 获取其第 0 位的值为 1, 第 2 位 的值为 0<br>
*
* @param source 需要运算的数
* @param pos 指定位置 (0...7)
* @return 指定位置的值(0 or 1)
*/
public static byte getBitValue(byte source, int pos) {
return (byte) ((source >> pos) & 1);
}
/**
* 将运算数指定位置的值置为指定值<br>
* 例: 0000 1011 需要更新为 0000 1111, 即第 2 位的值需要置为 1<br>
*
* @param source 需要运算的数
* @param pos 指定位置 (0<=pos<=7)
* @param value 只能取值为 0, 或 1, 所有大于0的值作为1处理, 所有小于0的值作为0处理
* @return 运算后的结果数
*/
public static byte setBitValue(byte source, int pos, byte value) {
byte mask = (byte) (1 << pos);
if (value > 0) {
source |= mask;
} else {
source &= (~mask);
}
return source;
}
/**
* 将运算数指定位置取反值<br>
* 例: 0000 1011 指定第 3 位取反, 结果为 0000 0011; 指定第2位取反, 结果为 0000 1111<br>
*
* @param pos 指定位置 (0<=pos<=7)
* @return 运算后的结果数
*/
public static byte reverseBitValue(byte source, int pos) {
byte mask = (byte) (1 << pos);
return (byte) (source ^ mask);
}
/**
* 检查运算数的指定位置是否为1<br>
*
* @param source 需要运算的数
* @param pos 指定位置 (0<=pos<=7)
* @return true 表示指定位置值为1, false 表示指定位置值为 0
*/
public static boolean checkBitValue(byte source, int pos) {
source = (byte) (source >>> pos);
return (source & 1) == 1;
}
/**
* 入口函数做测试<br>
*/
public static void main(String[] args) {
// 取十进制 11 (二级制 0000 1011) 为例子
byte source = 11;
// 取第2位值并输出, 结果应为 0000 1011
for (byte i = 7; i >= 0; i--) {
Log.d("BitUtils", getBitValue(source, i) + "");
}
// 将第6位置为1并输出 , 结果为 75 (0100 1011)
Log.d("BitUtils", setBitValue(source, 6, (byte) 1) + "");
// 将第6位取反并输出, 结果应为75(0100 1011)
Log.d("BitUtils", reverseBitValue(source, 6) + "");
// 检查第6位是否为1,结果应为false
Log.d("BitUtils", checkBitValue(source, 6) + "");
// 输出为1的位, 结果应为 0 1 3
for (byte i = 0; i < 8; i++) {
if (checkBitValue(source, i)) {
Log.d("BitUtils", i + "");
}
}
}
}
|
[
"77299007@qq.com"
] |
77299007@qq.com
|
0e5bcfaf2bfaa0a818e85615d2efb77e620982bc
|
dee3cbc549953b17049ef93973088db9dc39b6f6
|
/src/main/java/daris/web/client/model/dataset/DerivedDatasetCreator.java
|
d019ae1016ef525f91d407c442a424fe466d7965
|
[
"MIT"
] |
permissive
|
uom-daris/daris-web
|
060e4750ced71c1acea11bdebbaa29aae610d9aa
|
b5d10d33530084f35522ffcadb0f869573e6b172
|
refs/heads/master
| 2021-01-06T20:42:55.488215
| 2018-08-10T01:00:28
| 2018-08-10T01:00:28
| 78,803,017
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,339
|
java
|
package daris.web.client.model.dataset;
import java.util.AbstractMap.SimpleEntry;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import arc.mf.client.xml.XmlWriter;
import daris.web.client.model.CiteableIdUtils;
import daris.web.client.model.object.DObjectRef;
public class DerivedDatasetCreator extends DatasetCreator {
private Map<String, String> _inputs;
private Boolean _processed;
public DerivedDatasetCreator(DObjectRef parent, Map<String, String> inputs) {
super(parent);
_inputs = inputs;
}
@SafeVarargs
public DerivedDatasetCreator(DObjectRef parent, SimpleEntry<String, String>... inputs) {
super(parent);
if (inputs != null && inputs.length > 0) {
_inputs = new HashMap<String, String>();
for (SimpleEntry<String, String> input : inputs) {
_inputs.put(input.getKey(), input.getValue());
}
}
}
public DerivedDatasetCreator(Dataset input) {
this(new DObjectRef(CiteableIdUtils.parent(input.citeableId()), -1),
new SimpleEntry<String, String>(input.citeableId(), input.contentVid()));
}
public Map<String, String> inputs() {
return _inputs;
}
public void setInputs(Map<String, String> inputs) {
_inputs = inputs;
}
public void addInput(String cid, String vid) {
if (_inputs == null) {
_inputs = new HashMap<String, String>();
}
_inputs.put(cid, vid);
}
@Override
public String serviceName() {
return "om.pssd.dataset.derivation.create";
}
@Override
public void serviceArgs(XmlWriter w) {
w.add("pid", parentObject().citeableId());
if (allowIncompleteMeta()) {
w.add("allow-incomplete-meta", allowIncompleteMeta());
}
if (fillInIdNumber()) {
w.add("fillin", true);
}
if (name() != null) {
w.add("name", name());
}
if (description() != null) {
w.add("description", description());
}
if (mimeType() != null) {
w.add("type", mimeType());
}
if (contentType() != null) {
w.add("ctype", contentType());
}
if (logicalContentType() != null) {
w.add("lctype", logicalContentType());
}
if (hasInputs()) {
Set<String> inputCids = _inputs.keySet();
for (String inputCid : inputCids) {
w.add("input", new String[] { "vid", _inputs.get(inputCid) }, inputCid);
}
}
if (_processed != null) {
w.add("processed", _processed);
}
if (methodStep() != null) {
w.push("method");
w.add("step", methodStep());
if (methodId() != null) {
w.add("id", methodId());
}
w.pop();
}
if (numberOfFiles() == 1 && archiveType() == null) {
w.add("filename", files().iterator().next().file.name());
}
}
public boolean hasInputs() {
return _inputs != null && !_inputs.isEmpty();
}
public void setProcessed(Boolean processed) {
_processed = processed;
}
public Boolean processed() {
return _processed;
}
}
|
[
"wliu5@unimelb.edu.au"
] |
wliu5@unimelb.edu.au
|
35a1b49f37b41aad2dd258a445a76d54c50ed2fc
|
c0fdef195d19802d3d103b1dcea7918568fa29cd
|
/src/main/java/com/dxj/skc/enumeration/CommonEnum.java
|
ef7b1b14754ed6039f1a9daca6c9878524dbe237
|
[] |
no_license
|
Allen47/skc-spring-boot-starter
|
3792bf64746378ed662655b671643ca959bd4541
|
1b4e09cce17468861b4e083c88f9c67419d607da
|
refs/heads/master
| 2023-02-07T19:27:43.991702
| 2020-12-25T07:42:42
| 2020-12-25T07:42:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 801
|
java
|
package com.dxj.skc.enumeration;
/**
* @Description:
* @Author: Sinkiang
* @Date: 2020/3/30 8:48
* @CopyRight: 2020 sk-admin all rights reserved.
*/
public enum CommonEnum {
/**
* 正常标志
*/
STATUS_NORMAL(0, "正常标志"),
/**
* 禁用标志
*/
STATUS_DISABLE(-1, "禁用标志"),
/**
* 删除标志
*/
DEL_FLAG(1, "删除标志"),
/**
* 操作成功
*/
SUCCESS(200, "操作成功"),
/**
* 操作失败
*/
FAILED(500, "操作失败");
CommonEnum(int key, String value) {
this.key = key;
this.value = value;
}
private int key;
private String value;
public int getKey() {
return key;
}
public String getValue() {
return value;
}
}
|
[
"dengsinkiang@gmail.com"
] |
dengsinkiang@gmail.com
|
c0242edc6ba621426fc953cec6c39a70b9bcfb15
|
ece91115823fdfb9907250853f4fee7400825803
|
/src/org/llrp/ltk/generated/parameters/LastSeenTimestampUTC.java
|
0249fa3be3b2db9cb8fc292b59600cbd580d176c
|
[] |
no_license
|
wwhtiancai/LLRP
|
8110e76486afe8af1835167620de8fd399f0a1fd
|
be4367fa8576b4bee0eb25dae28c1580b67c7d0c
|
refs/heads/master
| 2020-11-29T18:36:30.352968
| 2019-12-26T03:49:10
| 2019-12-26T03:49:10
| 230,190,502
| 0
| 0
| null | 2020-09-03T01:59:07
| 2019-12-26T03:46:20
|
Java
|
UTF-8
|
Java
| false
| false
| 6,116
|
java
|
/*
*
* This file was generated by LLRP Code Generator
* see http://llrp-toolkit.cvs.sourceforge.net/llrp-toolkit
* for more information
* Generated on: Mon Apr 10 16:16:16 CST 2017;
*
*/
/*
* Copyright 2007 ETH Zurich
*
* 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.llrp.ltk.generated.parameters;
import org.apache.log4j.Logger;
import org.jdom.Content;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.Namespace;
import org.llrp.ltk.exceptions.InvalidLLRPMessageException;
import org.llrp.ltk.exceptions.MissingParameterException;
import org.llrp.ltk.generated.LLRPConstants;
import org.llrp.ltk.types.LLRPBitList;
import org.llrp.ltk.types.LLRPMessage;
import org.llrp.ltk.types.SignedShort;
import org.llrp.ltk.types.TLVParameter;
import org.llrp.ltk.types.TVParameter;
import org.llrp.ltk.types.UnsignedLong;
import org.llrp.ltk.types.UnsignedShort;
import java.util.LinkedList;
import java.util.List;
/**
*
See also
*/
/**
*
See also
.
*/
public class LastSeenTimestampUTC extends TLVParameter {
public static final SignedShort TYPENUM = new SignedShort(507);
private static final Logger LOGGER = Logger.getLogger(LastSeenTimestampUTC.class);
protected UnsignedLong microseconds;
/**
* empty constructor to create new parameter.
*/
public LastSeenTimestampUTC() {
}
/**
* Constructor to create parameter from binary encoded parameter
* calls decodeBinary to decode parameter.
* @param list to be decoded
*/
public LastSeenTimestampUTC(LLRPBitList list) {
decodeBinary(list);
}
/**
* Constructor to create parameter from xml encoded parameter
* calls decodeXML to decode parameter.
* @param element to be decoded
*/
public LastSeenTimestampUTC(Element element)
throws InvalidLLRPMessageException {
decodeXML(element);
}
/**
* {@inheritDoc}
*/
public LLRPBitList encodeBinarySpecific() {
LLRPBitList resultBits = new LLRPBitList();
if (microseconds == null) {
LOGGER.warn(" microseconds not set");
throw new MissingParameterException(
" microseconds not set for Parameter of Type LastSeenTimestampUTC");
}
resultBits.append(microseconds.encodeBinary());
return resultBits;
}
/**
* {@inheritDoc}
*/
public Content encodeXML(String name, Namespace ns) {
// element in namespace defined by parent element
Element element = new Element(name, ns);
// child element are always in default LLRP namespace
ns = Namespace.getNamespace("", LLRPConstants.LLRPNAMESPACE);
if (microseconds == null) {
LOGGER.warn(" microseconds not set");
throw new MissingParameterException(" microseconds not set");
} else {
element.addContent(microseconds.encodeXML("Microseconds", ns));
}
//parameters
return element;
}
/**
* {@inheritDoc}
*/
protected void decodeBinarySpecific(LLRPBitList binary) {
int position = 0 + TYPENUMBERLENGTH + PARAMETERTYPELENGTH; //change by wuwh
int tempByteLength;
int tempLength = 0;
int count;
SignedShort type;
int fieldCount;
microseconds = new UnsignedLong(binary.subList(position,
UnsignedLong.length()));
position += UnsignedLong.length();
}
/**
* {@inheritDoc}
*/
public void decodeXML(Element element) throws InvalidLLRPMessageException {
List<Element> tempList = null;
boolean atLeastOnce = false;
Element temp = null;
// child element are always in default LLRP namespace
Namespace ns = Namespace.getNamespace(LLRPConstants.LLRPNAMESPACE);
temp = element.getChild("Microseconds", ns);
if (temp != null) {
microseconds = new UnsignedLong(temp);
}
element.removeChild("Microseconds", ns);
if (element.getChildren().size() > 0) {
String message = "LastSeenTimestampUTC has unknown element " +
((Element) element.getChildren().get(0)).getName();
throw new InvalidLLRPMessageException(message);
}
}
//setters
/**
* set microseconds of type UnsignedLong .
* @param microseconds to be set
*/
public void setMicroseconds(final UnsignedLong microseconds) {
this.microseconds = microseconds;
}
// end setter
//getters
/**
* get microseconds of type UnsignedLong.
* @return type UnsignedLong to be set
*/
public UnsignedLong getMicroseconds() {
return this.microseconds;
}
// end getters
//add methods
// end add
/**
* For TLV Parameter length can not be determined at compile time. This method therefore always returns 0.
* @return Integer always zero
*/
public static Integer length() {
return 0;
}
/**
* {@inheritDoc}
*/
public SignedShort getTypeNum() {
return TYPENUM;
}
/**
* {@inheritDoc}
*/
public String getName() {
return "LastSeenTimestampUTC";
}
/**
* return string representation. All field values but no parameters are included
* @return String
*/
public String toString() {
String result = "LastSeenTimestampUTC: ";
result += ", microseconds: ";
result += microseconds;
result = result.replaceFirst(", ", "");
return result;
}
}
|
[
"626961224@qq.com"
] |
626961224@qq.com
|
975340c86ae91064dbd28b2389f89a0de220ed0b
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Chart/5/org/jfree/chart/labels/StandardXYToolTipGenerator_clone_193.java
|
e17f58176c8e5fa17bec07b38f3cc1741a58bfe5
|
[] |
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
| 541
|
java
|
org jfree chart label
standard tool tip gener
link org jfree chart render item render xyitemrender
standard tool tip gener standardxytooltipgener abstract item label gener abstractxyitemlabelgener
return independ copi gener
clone
clone support except clonenotsupportedexcept clone support
object clone clone support except clonenotsupportedexcept
clone
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
9f79c67d122c7ef4c2dd4ee139921f8778f82749
|
b6241305aaa96a09b2720a8b5e050755e6172408
|
/out/production/LifeOfLight/src/lol/gameevents/GameEventManager.java
|
3abfd0838691e239dab0b4f1afdd4ec8e6fac087
|
[] |
no_license
|
qhuydtvt/lifeoflight
|
bbd823d7f2a37f51603bd4dfd1ad63cc3f2ef76f
|
64f44a0c8a2daadd7871395e95fbac1f9f5121da
|
refs/heads/master
| 2021-01-01T19:18:43.981463
| 2017-09-16T13:27:08
| 2017-09-16T13:27:08
| 98,563,130
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,847
|
java
|
package lol.gameevents;
import lol.events.EventManager;
import lol.gameentities.eventconfigs.EventConfig;
import lol.gameevents.processors.Processor;
import lol.gameevents.processors.global.*;
import lol.inputs.CommandListener;
import lol.gameentities.State;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
/**
* Created by huynq on 8/1/17.
*/
public class GameEventManager implements CommandListener {
public static final GameEventManager instance = new GameEventManager();
State state = State.instance;
private GameEvent currentEvent;
private HashMap<String, Processor> globalCommandProcessors = new HashMap<String, Processor>() {{
put("HELP", new HelpProcessor());
put("INVENTORY", new InventoryProcessor());
put("INSPECT", new InspectProcessor());
put("TRASH", new TrashProcessor());
put("QUIT", new QuitProcessor());
put("USE", new UseProcessor());
put("EQUIPMENT", new EquipmentProcessor());
put("STORE", new StoreProcessor());
}};
private GameEventManager() {
currentEvent = new MainGameEvent();
}
public void loadData() {
state.load();
EventConfig.load();
}
@Override
public void onCommandFinished(String command) {
List<String> commands = Arrays.asList(command.toUpperCase().split("_"));
if (commands.size() > 0) {
if (commands.get(0).equals("TEST")) {
EventManager.pushUIMessage("Văn học là khoa học nghiên cứu về văn chương. Nó lấy các hiện tượng văn chương nghệ thuật làm đối tượng cho mình. Quan hệ giữa văn chương và văn học là quan hệ giữa đối tượng và chủ thể, giữa nghệ thuật và khoa học; văn chương (nghệ thuật) là đối tượng của văn học (khoa học). Chính thế bạn tăng ;#46ff2d2 HP");
return;
}
if (commands.get(0).equals("CLEAR")) {
EventManager.pushClearUI();
return;
}
}
String mainCommand = commands.get(0);
GameEvent resultEvent;
if (globalCommandProcessors.containsKey(mainCommand)) {
Processor processor = globalCommandProcessors.get(mainCommand);
resultEvent = Processor.forward(commands, processor, currentEvent);
} else {
resultEvent = currentEvent.process(commands);
}
if (resultEvent != null) {
GameEvent preProcessResult = resultEvent.preProcess();
if (preProcessResult != null) {
currentEvent = preProcessResult;
} else {
currentEvent = resultEvent;
}
}
}
@Override
public void commandChanged(String command) {
}
}
|
[
"qhuydtvt@gmail.com"
] |
qhuydtvt@gmail.com
|
fa46b81e982a641fbcd876ddbeab8e6c603c6356
|
263b4cec21e9475ef06bc45866787bb6fec61fb1
|
/store/src/java/com/zimbra/cs/service/admin/CollectConfigFiles.java
|
d9529680fb71507061832dec4944b00c1c566ea1
|
[] |
no_license
|
jiteshsojitra/zm-mailbox
|
b23d8c06e27b50cbc5833dfa8d840c293c92df98
|
82b0458676572580a140fbcec0dfbce747af7095
|
refs/heads/develop
| 2021-01-20T09:19:43.296258
| 2017-05-04T07:24:23
| 2017-05-04T07:24:23
| 90,125,624
| 0
| 0
| null | 2017-05-03T08:22:58
| 2017-05-03T08:22:58
| null |
UTF-8
|
Java
| false
| false
| 3,175
|
java
|
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2007, 2009, 2010, 2011, 2013, 2014, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
* ***** END LICENSE BLOCK *****
*/
package com.zimbra.cs.service.admin;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import javax.mail.Part;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zimbra.common.account.Key;
import com.zimbra.common.mime.ContentDisposition;
import com.zimbra.common.service.ServiceException;
import com.zimbra.common.util.ByteUtil;
import com.zimbra.cs.account.AuthToken;
import com.zimbra.cs.account.Provisioning;
import com.zimbra.cs.account.Server;
import com.zimbra.cs.rmgmt.RemoteCommands;
import com.zimbra.cs.rmgmt.RemoteManager;
import com.zimbra.cs.rmgmt.RemoteResult;
import com.zimbra.cs.servlet.ZimbraServlet;
public class CollectConfigFiles extends ZimbraServlet {
private static final String P_HOST = "host";
private static final String DOWNLOAD_CONTENT_TYPE = "application/x-compressed";
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
try {
//check the auth token
AuthToken authToken = getAdminAuthTokenFromCookie(req, resp);
if (authToken == null) {
resp.sendError(HttpServletResponse.SC_UNAUTHORIZED);
}
if(!authToken.isAdmin()) {
resp.sendError(HttpServletResponse.SC_UNAUTHORIZED);
}
//take the host name
Provisioning prov = Provisioning.getInstance();
String hostName = req.getParameter(P_HOST);
Server server = prov.get(Key.ServerBy.name, hostName);
if (server == null) {
throw ServiceException.INVALID_REQUEST("server with name " + hostName + " could not be found", null);
}
//call RemoteManager
RemoteManager rmgr = RemoteManager.getRemoteManager(server);
RemoteResult rr = rmgr.execute(RemoteCommands.COLLECT_CONFIG_FILES);
//stream the data
resp.setContentType(DOWNLOAD_CONTENT_TYPE);
ContentDisposition cd = new ContentDisposition(Part.INLINE).setParameter("filename", hostName+".conf.tgz");
resp.addHeader("Content-Disposition", cd.toString());
ByteUtil.copy(new ByteArrayInputStream(rr.getMStdout()), true, resp.getOutputStream(), false);
} catch (ServiceException e) {
returnError(resp, e);
return;
}
}
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
doGet(req, resp);
}
}
|
[
"shriram.vishwanathan@synacor.com"
] |
shriram.vishwanathan@synacor.com
|
da0f629ffb2e8b25197a0e76fb2f609975c891c4
|
3b9d7793433613a4d7d641e744e3c6e2308b435c
|
/OpportunitiesUpdate/src/main/java/org/apache/camel/salesforce/dto/TaskStatus.java
|
0aed842dfedda75f26a5a25e6e23ff5cc7cdb4cc
|
[] |
no_license
|
weimeilin79/forresterdemo
|
18fa908c954f6c4c11c11f6c3fbb0e99ae6292b9
|
0307d867f88df06b6c7eed7840b159a860a2ef87
|
refs/heads/master
| 2020-12-03T08:26:04.746267
| 2016-08-31T14:56:49
| 2016-08-31T14:56:49
| 66,553,934
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,593
|
java
|
/*
* Salesforce DTO generated by camel-salesforce-maven-plugin
* Generated on: Wed Aug 31 01:24:49 CST 2016
*/
package org.apache.camel.salesforce.dto;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import org.apache.camel.component.salesforce.api.dto.AbstractSObjectBase;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* Salesforce DTO for SObject TaskStatus
*/
@XStreamAlias("TaskStatus")
public class TaskStatus extends AbstractSObjectBase {
// MasterLabel
private String MasterLabel;
@JsonProperty("MasterLabel")
public String getMasterLabel() {
return this.MasterLabel;
}
@JsonProperty("MasterLabel")
public void setMasterLabel(String MasterLabel) {
this.MasterLabel = MasterLabel;
}
// SortOrder
private Integer SortOrder;
@JsonProperty("SortOrder")
public Integer getSortOrder() {
return this.SortOrder;
}
@JsonProperty("SortOrder")
public void setSortOrder(Integer SortOrder) {
this.SortOrder = SortOrder;
}
// IsDefault
private Boolean IsDefault;
@JsonProperty("IsDefault")
public Boolean getIsDefault() {
return this.IsDefault;
}
@JsonProperty("IsDefault")
public void setIsDefault(Boolean IsDefault) {
this.IsDefault = IsDefault;
}
// IsClosed
private Boolean IsClosed;
@JsonProperty("IsClosed")
public Boolean getIsClosed() {
return this.IsClosed;
}
@JsonProperty("IsClosed")
public void setIsClosed(Boolean IsClosed) {
this.IsClosed = IsClosed;
}
}
|
[
"weimeilin@gmail.com"
] |
weimeilin@gmail.com
|
6ca3984f7f8a1d9548f088c7500f1c7f70312b1a
|
f5ed8774d8fd5f24b887b19bcbf85540421efe24
|
/app0528/src/app0528/network/multi/gui/ClientMsgThread.java
|
b30667b38bb194e222d54ea73053ee3cee5a5f41
|
[] |
no_license
|
zino1187/korea202102_javaworkspace
|
84b9e553817cc62e6a6ac7e1f60111ae939b7946
|
ad42b6a473b400de6b4b4d28f40753d5484955d7
|
refs/heads/master
| 2023-06-01T04:34:37.608211
| 2021-06-07T23:55:49
| 2021-06-07T23:55:49
| 362,066,936
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,492
|
java
|
package app0528.network.multi.gui;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.Socket;
//다른 접속자가 보낸 메시지를 실시간으로 듣기 위해서는 listen() 메서드를 무한루프로 처리해야 하므로,
//메인쓰레드가 아닌 개발자 정의 쓰레드로 처리해야, 프로그램의 GUI 가 대기상태에 빠지지 않는다..
public class ClientMsgThread extends Thread{
Socket socket;
BufferedReader buffr;
BufferedWriter buffw;
ChatClient chatClient;
public ClientMsgThread(ChatClient chatClient) {
this.chatClient=chatClient;
this.socket=chatClient.socket;
//입,출력스트림 뽑기
try {
buffr=new BufferedReader(new InputStreamReader(socket.getInputStream()));
buffw=new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
} catch (IOException e) {
e.printStackTrace();
}
}
//말하기
public void send(String msg) {
try {
buffw.write(msg+"\n");
buffw.flush();
} catch (IOException e) {
e.printStackTrace();
}
}
//듣기
public void listen() {
String msg=null;
try {
msg=buffr.readLine();
chatClient.area.append(msg+"\n"); //클라이언트에 메시지 로그 남기기
} catch (IOException e) {
e.printStackTrace();
}
}
//실시간 청취를 위한 루프!!!
public void run() {
while(true) {
listen();
}
}
}
|
[
"zino1187@gmail.com"
] |
zino1187@gmail.com
|
dc1c2b870476fef4d1b26487ebb7ae05bc6ae960
|
04fbd5fb9c22eb0ec5ac6b000ea0e4da3f5380f6
|
/JProgramming/src/studychecktest/ifmethodrealization/Flyable.java
|
062901a79bdfb24e6d9d2d71ca4bae3b98fd415c
|
[] |
no_license
|
PetroRulov/COURSE-JAVA-PROGRAMMER
|
56be01254d7112b1f915ddbaa681cafbbdbfd8e0
|
24260c12f052bfb543ef91dcf7e38b434113611d
|
refs/heads/master
| 2021-01-23T21:48:11.950605
| 2019-02-19T19:06:20
| 2019-02-19T19:06:20
| 56,302,822
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 530
|
java
|
package studychecktest.ifmethodrealization;
/**
* Created by prulov on 21.08.2016.
*/
public interface Flyable {
// method may have body only with keyword "default"
default void methodWithRealization(){
System.out.println("DEFAULT REALIZATION!");
}
default Dicker transformation(InterfaceInheritor ii){
return new Dicker(ii.getName(), ii.getColor());
}
static void civilizate(){
System.out.println("Civilizated!!!");
};
void pushCommits();
Object getReturn();
}
|
[
"prulov.pr@gmail.com"
] |
prulov.pr@gmail.com
|
87e8fae7b5c3ed276910bc11ffff493974b7f59d
|
3114f83fe5dc1f0347c635ce6096238520ffd102
|
/api/src/main/java/com/lapsa/mail/MailMessageBuilder.java
|
00850870846ee5839e3f1cf575a9e320c014d5ba
|
[] |
no_license
|
eurasia-insurance/lapsa-mail
|
83456f574bf820bea108f725e20ec4aa8a1de534
|
29c55768a4d62c65ae2faf6937403d940e3ac69e
|
refs/heads/master
| 2020-03-28T14:18:10.108540
| 2019-03-17T20:19:29
| 2019-03-17T20:19:29
| 148,475,158
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,422
|
java
|
package com.lapsa.mail;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import org.w3c.dom.Document;
public interface MailMessageBuilder {
public static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8");
/*
* createAddress methods
*/
MailAddress createAddress(String smtpAddress) throws MailException;
MailAddress createAddress(String smtpAddress, String friendlyName) throws MailException;
/*
* createMessage methods
*/
MailMessage createMessage() throws MailException;
MailMessage createMessage(Charset charset) throws MailException;
MailMessage createMessage(String subject) throws MailException;
MailMessage createMessage(String subject, Charset charset) throws MailException;
MailMessage createMessage(MailAddress to, String subject) throws MailException;
MailMessage createMessage(MailAddress to, String subject, Charset charset) throws MailException;
MailMessage createMessage(MailAddress from, MailAddress to, String subject) throws MailException;
MailMessage createMessage(MailAddress from, MailAddress to, String subject, Charset charset) throws MailException;
/*
* createTextPart methods
*/
MailMessageTextPart createTextPart(String text) throws MailException;
MailMessageTextPart createTextPart(String text, String contentId) throws MailException;
MailMessageTextPart createTextPart(String text, Charset charset) throws MailException;
MailMessageTextPart createTextPart(String text, Charset charset, String contentId) throws MailException;
MailMessageTextPart createTextPart(Exception e) throws MailException;
MailMessageTextPart createTextPart(Exception e, String contentId) throws MailException;
/*
* createHTMLPart methods
*/
MailMessageHTMLPart createHTMLPart(String html) throws MailException;
MailMessageHTMLPart createHTMLPart(String html, String contentId) throws MailException;
MailMessageHTMLPart createHTMLPart(String html, Charset charset) throws MailException;
MailMessageHTMLPart createHTMLPart(String html, Charset charset, String contentId) throws MailException;
/*
* createXMLPart methods
*/
MailMessagePart createXMLPart(Document doc) throws MailException;
MailMessagePart createXMLPart(Document doc, String contentId) throws MailException;
MailMessagePart createXMLPart(Document doc, Charset charset) throws MailException;
MailMessagePart createXMLPart(Document doc, Charset charset, String contentId) throws MailException;
/*
* createFilePart methods
*/
MailMessageFilePart createFilePart(File file) throws MailException;
MailMessageFilePart createFilePart(File file, String contentId) throws MailException;
/*
* createStreamPart methods
*/
MailMessageStreamPart createStreamPart(String name, String contentType, InputStream inputStream)
throws MailException, IOException;
MailMessageStreamPart createStreamPart(String name, String contentType, InputStream inputStream,
boolean readImmediately)
throws MailException, IOException;
MailMessageStreamPart createStreamPart(String name, String contentType, InputStream inputStream, String contentId)
throws MailException, IOException;
MailMessageStreamPart createStreamPart(String name, String contentType, InputStream inputStream,
boolean readImmediately, String contentId)
throws MailException, IOException;
/*
* createByteArrayPart methods
*/
MailMessageByteArrayPart createByteArrayPart(String name, String contentType, byte[] bytes)
throws MailException, IOException;
MailMessageByteArrayPart createByteArrayPart(String name, String contentType, byte[] bytes, String contentId)
throws MailException, IOException;
/*
* createInlineImagePart methods
*/
/*
* source File
*/
MailMessageAttachementPart createInlineImagePart(String contentType, File file) throws MailException, IOException;
MailMessageAttachementPart createInlineImagePart(String contentType, File file, String contentId)
throws MailException, IOException;
/*
* source InputStream
*/
MailMessageAttachementPart createInlineImagePart(String contentType, InputStream inputStream, String fileName)
throws MailException, IOException;
MailMessageAttachementPart createInlineImagePart(String contentType, InputStream inputStream, String fileName,
String contentId)
throws MailException, IOException;
// createAttachement methods
MailMessageAttachementPart createTextAttachement(String content, String contentType, String fileName);
MailMessageAttachementPart createTextAttachement(String content, String contentType, String fileName,
String contentId);
MailMessageAttachementPart createBytesAttachement(byte[] content, String contentType, String fileName);
MailMessageAttachementPart createBytesAttachement(byte[] content, String contentType, String fileName,
String contentId);
MailMessageAttachementPart createStreamAttachement(InputStream content, String contentType, String fileName)
throws IOException;
MailMessageAttachementPart createStreamAttachement(InputStream content, String contentType, String fileName,
String contentId) throws IOException;
}
|
[
"vadim.o.isaev@gmail.com"
] |
vadim.o.isaev@gmail.com
|
4f3e4c01a844bf3aa0acb0695a455eb0369f6a98
|
828ae7dcabe4bf33dadc03ad45bc63bebc7c8e08
|
/DS4P/access-control-service/brms/factmodel/src/main/java/gov/samhsa/acs/brms/domain/SubjectPurposeOfUse.java
|
d1d616ff516bd33824674afa5e5f8b46735fa8df
|
[
"BSD-3-Clause"
] |
permissive
|
taolinqu/ds4p
|
4121fcfc1167404433584ac355f83052386a2308
|
a12559e46e35c483686264cec2669651537fa23b
|
refs/heads/master
| 2021-05-30T18:43:55.199316
| 2014-01-20T15:59:03
| 2014-01-20T15:59:03
| 15,943,695
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,815
|
java
|
/*******************************************************************************
* Open Behavioral Health Information Technology Architecture (OBHITA.org)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the <organization> nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************************************************************/
package gov.samhsa.acs.brms.domain;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* The Enum SubjectPurposeOfUse.
*/
@XmlEnum
public enum SubjectPurposeOfUse {
@XmlEnumValue("HMARKT")
healthcareMarketing("HMARKT"),
@XmlEnumValue("HOPERAT")
healthcareOperations("HOPERAT"),
@XmlEnumValue("HOUTCOMS")
outcomeMeasure("HOUTCOMS"),
@XmlEnumValue("HPRGRP")
programReporting("HPRGRP"),
@XmlEnumValue("PERFMSR")
performanceMeasure("PERFMSR"),
@XmlEnumValue("HPAYMT")
healthcarePayment("HPAYMT"),
@XmlEnumValue("HRESCH")
healthcareResearch("HRESCH"),
@XmlEnumValue("CLINTRCH")
clinicalTrialResearch("CLINTRCH"),
@XmlEnumValue("TREAT")
treatment("TREAT"),
@XmlEnumValue("ETREAT")
emergencyTreatment("ETREAT"),
@XmlEnumValue("POPHLTH")
populationHealthTreatment("POPHLTH");
private final String purpose;
SubjectPurposeOfUse(String p) {purpose = p;}
public static SubjectPurposeOfUse fromValue(String v) {
return valueOf(v);
}
public String getPurpose() {return purpose;}
}
|
[
"tao.lin@feisystems.com"
] |
tao.lin@feisystems.com
|
a491250ca6d212f8e5e265daf411eabee1997001
|
082e26b011e30dc62a62fae95f375e4f87d9e99c
|
/docs/weixin_7.0.4_source/反编译源码/反混淆后/src/main/java/com/tencent/p177mm/plugin/sns/p520ui/C13633av.java
|
556b9c73634df13bb6deae0034b1bcc5cb6afb22
|
[] |
no_license
|
xsren/AndroidReverseNotes
|
9631a5aabc031006e795a112b7ac756a8edd4385
|
9202c276fe9f04a978e4e08b08e42645d97ca94b
|
refs/heads/master
| 2021-04-07T22:50:51.072197
| 2019-07-16T02:24:43
| 2019-07-16T02:24:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,946
|
java
|
package com.tencent.p177mm.plugin.sns.p520ui;
import com.tencent.p177mm.p264n.C7486a;
import com.tencent.p177mm.plugin.sns.data.C43538d;
import com.tencent.p177mm.plugin.sns.storage.C21980a;
import com.tencent.p177mm.plugin.sns.storage.C21984b;
import com.tencent.p177mm.plugin.sns.storage.C46236n;
import com.tencent.p177mm.protocal.protobuf.TimeLineObject;
import com.tencent.p177mm.protocal.protobuf.bav;
import com.tencent.p177mm.protocal.protobuf.cbf;
import com.tencent.p177mm.vending.p638d.C5683b;
import com.tencent.p177mm.vending.p644j.C5710a;
/* renamed from: com.tencent.mm.plugin.sns.ui.av */
public final class C13633av {
public int auo;
public String igi;
public String mAppName;
public cbf qBX;
public C46236n qBY;
public TimeLineObject qCc;
public String rAA;
public C21980a rAB;
public C21984b rAC;
public String rAD;
public String rAE;
public String rAF;
public String rAG;
public String rAH;
public boolean rAI;
public boolean rAJ;
public boolean rAK;
public int rAL;
public boolean rAM;
public String rAN;
public boolean rAO;
public boolean rAP;
public boolean rAQ;
public boolean rAR;
public String rAS;
public String rAT;
public boolean rAU;
public boolean rAV;
public int rAW;
public boolean rAX;
public boolean rAY;
public String rAZ;
public C43538d rAp;
public CharSequence rAq = null;
public C7486a rAr;
public String rAs;
public long rAt;
public String rAu;
public int rAv;
public int rAw;
public int rAx;
public boolean rAy;
public String rAz;
public boolean rBa;
public boolean rBb;
public int rBc;
public double rBd;
public C5683b<C5710a> rBe;
public C5683b<C5710a> rBf;
public C5683b<C5710a> rBg;
public boolean rBh;
public String rBi;
public bav rBj;
public boolean rgZ;
public String riA;
}
|
[
"alwangsisi@163.com"
] |
alwangsisi@163.com
|
4e09aa2f61479879d20f90942e891c009c099a87
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/11/11_da4a669b930c6f8c61bd37042363bd1d07f0469c/BPELTest/11_da4a669b930c6f8c61bd37042363bd1d07f0469c_BPELTest_s.java
|
56af10c84e4651900e9c89511b52c10d8717ad1c
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 5,400
|
java
|
package org.jboss.tools.bpel.ui.bot.test.suite;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.Path;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
import org.eclipse.swtbot.swt.finder.SWTBot;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
public class BPELTest extends SWTTestExt {
public static void prepare() {
log.info("BPEL All Test started...");
// jbt.closeReportUsageWindowIfOpened(true);
// eclipse.maximizeActiveShell();
// eclipse.closeView(IDELabel.View.WELCOME);
// bot.closeAllEditors();
}
public static void clean() {
util.waitForNonIgnoredJobs();
bot.sleep(TIME_5S, "BPEL All Tests Finished!");
}
/**
* Creates a new process in a project identified by it's name.
*
* TODO: extend WSDL validation
*
* @param project project name in which to create the new process
* @param name process name
* @param type process type (sync, async, empty)
* @param isAbstract is the process supposed to be abstract?
*
* @return process file
*/
protected IFile createNewProcess(String project, String name, String type, boolean isAbstract) {
SWTBotView view = bot.viewByTitle("Project Explorer");
view.show();
view.setFocus();
SWTBot viewBot = view.bot();
SWTBotTreeItem item = viewBot.tree().expandNode(project).expandNode("bpelContent");
item.select();
bot.menu("File").menu("New").menu("Other...").click();
bot.shell("New").activate();
SWTBotTree tree = bot.tree();
tree.expandNode("BPEL 2.0").expandNode("New BPEL Process File").select();
assertTrue(bot.button("Next >").isEnabled());
bot.button("Next >").click();
assertFalse(bot.button("Next >").isEnabled());
bot.textWithLabel("BPEL Process Name:").setText(name);
bot.comboBoxWithLabel("Namespace:").setText("http://eclipse.org/bpel/sample");
bot.comboBoxWithLabel("Template:").setSelection(type + " BPEL Process");
if(isAbstract) {
bot.checkBox().select();
} else {
bot.checkBox().deselect();
assertTrue(bot.button("Next >").isEnabled());
bot.button("Next >").click();
assertEquals(name, bot.textWithLabel("Service Name").getText());
}
bot.button("Finish").click();
bot.sleep(5000);
IProject iproject = ResourcesPlugin.getWorkspace().getRoot().getProject(project);
IFile bpelFile = iproject.getFile(new Path("bpelContent/" + name + ".bpel"));
assertNotNull(bpelFile);
assertNotNull(iproject.getFile(new Path("bpelContent/" + name + ".bpelex")));
assertNotNull(iproject.getFile(new Path("bpelContent/" + name + "Artifacts.wsdl")));
return bpelFile;
}
/**
* Creates a new ODE deployment descriptor in a project identified by it's name.
*
* @author psrna
*
* @param project project name in which to create the new ODE deployment descriptor
* @return deployment descriptor file
*/
protected IFile createNewDeployDescriptor(String project){
SWTBotView view = bot.viewByTitle("Project Explorer");
view.show();
view.setFocus();
SWTBot viewBot = view.bot();
SWTBotTreeItem item = viewBot.tree().expandNode(project).expandNode("bpelContent");
item.select();
bot.menu("File").menu("New").menu("Other...").click();
bot.shell("New").activate();
SWTBotTree tree = bot.tree();
tree.expandNode("BPEL 2.0").expandNode("Apache ODE Deployment Descriptor").select();
assertTrue(bot.button("Next >").isEnabled());
bot.button("Next >").click();
assertTrue(bot.textWithLabel("BPEL Project:").getText().equals("/" + project + "/bpelContent"));
assertTrue(bot.textWithLabel("File name:").getText().equals("deploy.xml"));
bot.button("Finish").click();
bot.sleep(5000);
IProject iproject = ResourcesPlugin.getWorkspace().getRoot().getProject(project);
IFile deployFile = iproject.getFile(new Path("bpelContent/deploy.xml"));
assertNotNull(deployFile);
return deployFile;
}
/**
* Create a new BPEL project
* @param name project name
* @return project reference
*/
protected IProject createNewProject(String name) {
SWTBotView view = bot.viewByTitle("Project Explorer");
view.show();
view.setFocus();
bot.menu("File").menu("New").menu("Project...").click();
bot.shell("New Project").activate();
SWTBotTree tree = bot.tree();
tree.expandNode("BPEL 2.0").expandNode("BPEL Project").select();
assertTrue(bot.button("Next >").isEnabled());
bot.button("Next >").click();
bot.shell("New BPEL Project").activate();
assertFalse(bot.button("Finish").isEnabled());
bot.textWithLabel("Project name:").setText(name);
assertTrue(bot.button("Finish").isEnabled());
bot.button("Finish").click();
bot.sleep(3000);
IProject iproject = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
assertNotNull(iproject);
return iproject;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
1f8de5e07ec4871268d2678d9221b053bf4d0db1
|
157766b704093ec0e526b4bc998c9ca903f21794
|
/4.JavaCollections/src/com/javarush/task/task36/task3605/Solution.java
|
e1e481dc4466f43fd663f84c4f9dffc4a9822270
|
[] |
no_license
|
zenonwch/JavaRushEducation_2.0
|
58d6990e4bf2fe22aa60b7e4d1da35ec1c16bfab
|
10950e74f53c268cfbbdbf72e26e1b32ecd78db8
|
refs/heads/master
| 2020-05-26T14:33:32.197795
| 2017-05-14T10:43:38
| 2017-05-14T10:43:38
| 82,482,269
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,033
|
java
|
package com.javarush.task.task36.task3605;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;
/*
Использование TreeSet
*/
public class Solution {
public static void main(final String[] args) throws IOException {
final String fileName = args[0];
if (fileName == null) return;
final Set<Character> letters = new TreeSet<>();
final BufferedReader reader = new BufferedReader(new FileReader(fileName));
int symbol;
while ((symbol = reader.read()) != -1) {
final char ch = (char) symbol;
if (Character.isLetter(ch)) {
letters.add(Character.toLowerCase(ch));
}
}
reader.close();
final Iterator<Character> iterator = letters.iterator();
int i = 5;
while (iterator.hasNext() && i > 0) {
System.out.print(iterator.next());
i--;
}
}
}
|
[
"andrey.veshtard@ctco.lv"
] |
andrey.veshtard@ctco.lv
|
056f625f1cc9e4b43491eb3833949bbcce4fdfd6
|
70f7a06017ece67137586e1567726579206d71c7
|
/alimama/src/main/java/mtopsdk/network/domain/NetworkStats.java
|
2fcc8fd12dbfa2764f8ad4101ba317d3be5944d0
|
[] |
no_license
|
liepeiming/xposed_chatbot
|
5a3842bd07250bafaffa9f468562021cfc38ca25
|
0be08fc3e1a95028f8c074f02ca9714dc3c4dc31
|
refs/heads/master
| 2022-12-20T16:48:21.747036
| 2020-10-14T02:37:49
| 2020-10-14T02:37:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,437
|
java
|
package mtopsdk.network.domain;
import com.taobao.weex.el.parse.Operators;
import java.io.Serializable;
import mtopsdk.common.util.StringUtils;
public class NetworkStats implements Serializable, Cloneable {
private static final long serialVersionUID = -3538602124202475612L;
public String connectionType = "";
public long dataSpeed = 0;
public long firstDataTime = 0;
public String host = "";
public String ip_port = "";
public boolean isRequestSuccess = false;
public boolean isSSL = false;
public String netStatSum;
public long oneWayTime_ANet = 0;
public long processTime = 0;
public long recDataTime = 0;
public long recvSize = 0;
public int resultCode = 0;
public int retryTimes;
public long sendSize = 0;
public long sendWaitTime = 0;
public long serverRT = 0;
public String sumNetStat() {
StringBuilder sb = new StringBuilder(128);
sb.append("oneWayTime_ANet=");
sb.append(this.oneWayTime_ANet);
sb.append(",resultCode=");
sb.append(this.resultCode);
sb.append(",isRequestSuccess=");
sb.append(this.isRequestSuccess);
sb.append(",host=");
sb.append(this.host);
sb.append(",ip_port=");
sb.append(this.ip_port);
sb.append(",isSSL=");
sb.append(this.isSSL);
sb.append(",connType=");
sb.append(this.connectionType);
sb.append(",processTime=");
sb.append(this.processTime);
sb.append(",firstDataTime=");
sb.append(this.firstDataTime);
sb.append(",recDataTime=");
sb.append(this.recDataTime);
sb.append(",sendWaitTime=");
sb.append(this.sendWaitTime);
sb.append(",serverRT=");
sb.append(this.serverRT);
sb.append(",sendSize=");
sb.append(this.sendSize);
sb.append(",recvSize=");
sb.append(this.recvSize);
sb.append(",dataSpeed=");
sb.append(this.dataSpeed);
sb.append(",retryTimes=");
sb.append(this.retryTimes);
return sb.toString();
}
public String toString() {
if (StringUtils.isBlank(this.netStatSum)) {
this.netStatSum = sumNetStat();
}
StringBuilder sb = new StringBuilder(128);
sb.append("NetworkStats [");
sb.append(this.netStatSum);
sb.append(Operators.ARRAY_END_STR);
return sb.toString();
}
}
|
[
"zhangquan@snqu.com"
] |
zhangquan@snqu.com
|
c753c1de85ab7364f53ae7ca7c3bc776749d2867
|
6b36756d2abcc132600e429744347bcc69d67f68
|
/src/main/java/com/aa/whattoplay/games/domain/suggestions/RecommendedGames.java
|
2ce10b3d8f681b2ace7704a359360db0fab69d35
|
[] |
no_license
|
GraphZero/WhatToPlay2
|
62ba73a099484d1d860823bdce3fc61ba1971c47
|
095f4d23f36d934ed0937dffeae7c98140693287
|
refs/heads/master
| 2020-03-07T06:54:56.765297
| 2018-11-06T12:07:16
| 2018-11-06T12:07:16
| 127,334,681
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 703
|
java
|
package com.aa.whattoplay.games.domain.suggestions;
import com.aa.whattoplay.games.domain.suggestions.value.GameDto;
import com.aa.whattoplay.games.domain.suggestions.value.Genre;
import lombok.AllArgsConstructor;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
@AllArgsConstructor
public class RecommendedGames {
public long owningUserId;
public List<GameDto> games;
public Map<Genre, Long> getGenreOccurences() {
return games
.stream()
.flatMap(x -> x.getGenres().stream())
.collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
}
}
|
[
"@"
] |
@
|
8c4bd2d8897ba43212df0d56668624825112706b
|
f2488e535c7ae345e9f49e33433a6ebf567a8ba4
|
/Code/02/023/Project/TopButton/app/src/main/java/com/mingrisoft/topbutton/MainActivity.java
|
825f3c13b757432189ce6bc72926e073e9e141f3
|
[] |
no_license
|
stytooldex/Test
|
d4f0241a0a35100219ba8c0b21b76200f16914b8
|
993080d7ec0032230b26563f01a1554ff7f8fe3d
|
refs/heads/master
| 2022-03-15T01:01:08.465767
| 2019-12-03T05:36:58
| 2019-12-03T05:36:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,166
|
java
|
package com.mingrisoft.topbutton;
import android.content.Context;
import android.content.res.TypedArray;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ListView;
import java.util.ArrayList;
import java.util.List;
public class MainActivity extends AppCompatActivity {
private ListView listView;
private ListAdapter adapter;
private ImageButton imageBtn;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
listView = (ListView) findViewById(R.id.list_view);
adapter = new ListAdapter(this);
listView.setAdapter(adapter);
imageBtn = (ImageButton) findViewById(R.id.up_btn);
imageBtn.setOnClickListener(new View.OnClickListener() { //置顶按钮的点击事件
@Override
public void onClick(View v) {
listView.smoothScrollToPosition(0); //是ListView置顶
}
});
add();
listView.setOnTouchListener(new MyGestureListener(listView, imageBtn, this));
}
private void add() {
TypedArray ar = getResources().obtainTypedArray(R.array.listTitle); //获取数据数组
int len = ar.length(); //获取数组的长度
List list = new ArrayList<>(); //初始化list
for (int i = 0; i < len; i++) { //for循环添加数据
list.add(i, ar.getString(i));
} //向ListView中添加数据
adapter.addData(list); //将数据传给adapter
}
public class MyGestureListener extends GestureListener {
public MyGestureListener(ListView listview, ImageButton button, Context context) {
super(listview, button, context);
}
@Override
public boolean up(ImageButton imageBtn) {
return super.up(imageBtn);
}
@Override
public boolean down(ImageButton button) {
return super.down(button);
}
}
}
|
[
"1581184882@qq.com"
] |
1581184882@qq.com
|
9f38fa9463d895443e1d2cafc19ea62357cdebeb
|
d10b03a30d2cbb58be2500c08a82207eaab070a0
|
/src/main/java/org/spongepowered/common/data/util/PotionUtil.java
|
0b853b0cdb6544ad9c692dbffa9bfcacd048657b
|
[
"MIT"
] |
permissive
|
hsyyid/SpongeCommon
|
587d1dd6b5e49020011fdeea6a1852a791c8fd39
|
49b565e59953188a42d16d59ae4ba55c03fd3ec2
|
refs/heads/master
| 2020-12-25T01:05:31.768497
| 2016-04-01T18:02:41
| 2016-04-01T20:50:52
| 40,790,345
| 0
| 2
| null | 2015-08-15T23:01:17
| 2015-08-15T23:01:17
| null |
UTF-8
|
Java
| false
| false
| 2,089
|
java
|
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.spongepowered.common.data.util;
import net.minecraft.potion.PotionEffect;
import org.spongepowered.common.mixin.core.potion.MixinPotionEffect;
public final class PotionUtil {
public static PotionEffect copyToNative(org.spongepowered.api.effect.potion.PotionEffect effect) {
return new PotionEffect(((PotionEffect) effect).getPotionID(), effect.getDuration(), effect.getAmplifier(), effect.isAmbient(),
effect.getShowParticles());
}
public static org.spongepowered.api.effect.potion.PotionEffect copyToApi(PotionEffect effect) {
return (org.spongepowered.api.effect.potion.PotionEffect) new PotionEffect(effect.getPotionID(), effect.getDuration(), effect.getAmplifier(),
effect.getIsAmbient(), effect.getIsShowParticles());
}
private PotionUtil() {
}
}
|
[
"gabizou@me.com"
] |
gabizou@me.com
|
c3a0ef45c4aba86cac1d86f8637679234d3a2f11
|
12a99ab3fe76e5c7c05609c0e76d1855bd051bbb
|
/src/main/java/com/alipay/api/response/AlipayOverseasTaxAdvancedUnfreezeResponse.java
|
c16e6abf75530aad95718140d7e8d8c82da07142
|
[
"Apache-2.0"
] |
permissive
|
WindLee05-17/alipay-sdk-java-all
|
ce2415cfab2416d2e0ae67c625b6a000231a8cfc
|
19ccb203268316b346ead9c36ff8aa5f1eac6c77
|
refs/heads/master
| 2022-11-30T18:42:42.077288
| 2020-08-17T05:57:47
| 2020-08-17T05:57:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 695
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.overseas.tax.advanced.unfreeze response.
*
* @author auto create
* @since 1.0, 2020-06-08 11:25:36
*/
public class AlipayOverseasTaxAdvancedUnfreezeResponse extends AlipayResponse {
private static final long serialVersionUID = 6617497334869942349L;
/**
* 支付宝退税资金订单号
*/
@ApiField("tax_refund_no")
private String taxRefundNo;
public void setTaxRefundNo(String taxRefundNo) {
this.taxRefundNo = taxRefundNo;
}
public String getTaxRefundNo( ) {
return this.taxRefundNo;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
8a9fd5030ce0cafc07c2b9a84e0a179ab25bc845
|
ddaef19f0ec7fee1679456c11a618c9241e8a5e8
|
/.metadata/.plugins/org.eclipse.core.resources/.history/44/50ed5f566fcd001610b5bb3f0be9b20b
|
43eae56748cd365fcec8a373924f61315a8230d6
|
[] |
no_license
|
shaath/Venkat_Sruthy
|
18bb3deebd83b46ca5ab875a57b0c5c90456ee4d
|
174bc2d196a75544f9c23f2c6393fd97c0b17f46
|
refs/heads/master
| 2021-01-12T04:53:11.858629
| 2017-01-02T02:27:36
| 2017-01-02T02:27:36
| 77,806,177
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,141
|
package grid;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.Platform;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.testng.annotations.Test;
public class GridEg1
{
@Test
public void test() throws MalformedURLException
{
// DesiredCapabilities cap=DesiredCapabilities.firefox();
// cap.setBrowserName("firefox");
// cap.setPlatform(Platform.WINDOWS);
DesiredCapabilities cap=DesiredCapabilities.chrome();
cap.setBrowserName("chrome");
cap.setPlatform(Platform.WINDOWS);
WebDriver driver=new RemoteWebDriver(new URL("http://10.172.0.15:4444/wd/hub"), cap);
String date="18/march/2018";
String[] split=date.split("/");
String day=split[0];
String month=split[1];
String year=split[2];
System.out.println(day+"----"+month+"------"+year);
driver.get("https://www.cleartrip.com/");
driver.manage().window().maximize();
driver.findElement(By.id("DepartDate")).click();
//year selection
String calyear=driver.findElement(By.className("ui-datepicker-year")).getText();
System.out.println(calyear);
while(!year.equals(calyear))
{
driver.findElement(By.className("nextMonth ")).click();
calyear=driver.findElement(By.className("ui-datepicker-year")).getText();
}
//month selection
String calmonth=driver.findElement(By.className("ui-datepicker-month")).getText();
while (!month.equalsIgnoreCase(calmonth))
{
driver.findElement(By.className("nextMonth ")).click();
calmonth=driver.findElement(By.className("ui-datepicker-month")).getText();
}
//Day selection
List<WebElement> cols=driver.findElements(By.xpath(".//*[@id='ui-datepicker-div']/div[1]/table/tbody/tr/td"));
for (int i = 0; i < cols.size(); i++)
{
String calday=cols.get(i).getText();
if (calday.equals(day))
{
cols.get(i).click();
break;
}
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
|
8d8d5625d9f59100027b323de2a9b6cb21f36059
|
d016d046eb2af59f8a438326c6dfa03ae083e659
|
/models/contracts-mock/src/main/java/org/venuspj/studio/core/model/event/flyers/FlyersMock.java
|
42c622b4662f3b1ad6b78cc63987afc8361f25d2
|
[] |
no_license
|
mizo432/studio
|
dcab5736c44e4aecfe518f4bdbd59c66a03e1099
|
730111885adbd47df01938c72533342a25dc6bd1
|
refs/heads/master
| 2021-05-01T17:21:55.002284
| 2017-12-15T07:22:48
| 2017-12-15T07:22:48
| 79,422,901
| 0
| 0
| null | 2017-09-14T04:55:08
| 2017-01-19T06:30:12
|
HTML
|
UTF-8
|
Java
| false
| false
| 580
|
java
|
package org.venuspj.studio.core.model.event.flyers;
import org.venuspj.util.collect.Lists2;
/**
*/
public class FlyersMock {
public static Flyers createDummy(FlyersType anEventIDType) {
return new Flyers(Lists2.newArrayList(FlyerMock.createDummy()));
}
public enum FlyersType {
EVENT_ON_END_OF_LAST_MONTH, EVENT_ON_START_OF_THIS_MONTH, EVENT_ON_YESTERDAY, EVENT_ON_TODAY, EVENT_ON_THREE_DAYS_AFTER, EVENT_ON_END_OF_THIS_MONTH, EVENT_ON_START_OF_NEXT_MONTH, DEFAULT;
public Integer eventIdValue() {
return 1;
}
}
}
|
[
"hachirouuemon.mizoguchi@gmail.com"
] |
hachirouuemon.mizoguchi@gmail.com
|
7e263898723c7ff1168529cd09733c107e4227e6
|
1f0a896d12afa98b937f546b352046deef3326fd
|
/src/test/java/edu/msstate/nsparc/wings/integration/tests/trade/TC_03_01_Contextual_Information_Pane_Wagner_Peyser.java
|
b4f575656a6327a4b4f212f8bf6249924291db19
|
[] |
no_license
|
allaallala/wings_maven
|
8e3f2fc9e9a789664b4f4ccf4e506895cf595853
|
8f33c3cb567ffde08921e22a91d8dc75efbc97cb
|
refs/heads/master
| 2022-01-26T06:30:26.290273
| 2019-06-04T13:12:17
| 2019-06-04T13:12:17
| 190,203,243
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,987
|
java
|
package edu.msstate.nsparc.wings.integration.tests.trade;
import edu.msstate.nsparc.wings.integration.base.BaseWingsTest;
import edu.msstate.nsparc.wings.integration.enums.Popup;
import edu.msstate.nsparc.wings.integration.enums.Roles;
import edu.msstate.nsparc.wings.integration.forms.everify.EverifyDetailsForm;
import edu.msstate.nsparc.wings.integration.forms.everify.EverifySearchForm;
import edu.msstate.nsparc.wings.integration.forms.menu.WingsTopMenu;
import edu.msstate.nsparc.wings.integration.models.User;
import edu.msstate.nsparc.wings.integration.models.participant.Participant;
import edu.msstate.nsparc.wings.integration.steps.BaseWingsSteps;
import edu.msstate.nsparc.wings.integration.steps.EverifySteps;
import edu.msstate.nsparc.wings.integration.steps.ParticipantSteps.ParticipantCreationSteps;
import edu.msstate.nsparc.xray.info.TestCase;
import framework.AccountUtils;
@TestCase(id = "WINGS-10555")
public class TC_03_01_Contextual_Information_Pane_Wagner_Peyser extends BaseWingsTest {
public void main() {
info("For E-Verifying we need:");
info("Unverified Participant");
Participant participant = new Participant(AccountUtils.getParticipantAccount());
ParticipantCreationSteps.createParticipantDriver(participant, Boolean.TRUE, Boolean.FALSE);
EverifySteps.eVerifyParticipant(participant, new User(Roles.STAFF));
logStep("Log in WINGS and open required page.");
BaseWingsSteps.openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_WP_E_VERIFY, Popup.Search);
logStep("Find E-Verify record and open it");
EverifySearchForm everifySearchForm = new EverifySearchForm();
everifySearchForm.performSearchAndOpen(participant);
logStep("Validate information in the Contextual Information Pane");
EverifyDetailsForm detailsForm = new EverifyDetailsForm();
detailsForm.validateWagnerPeyserContextualInformationPane(participant);
}
}
|
[
"B2eQa&udeg"
] |
B2eQa&udeg
|
953b7b29d552b3e75245d714c5e62baac8c107f4
|
242025d14be3a21a91c989158c3034a11af941de
|
/EclipseAdapter44/test/krasa/formatter/eclipse/GWTTest.java
|
52e7bcac623483dc4175108c36778acb34da4ee9
|
[
"Apache-2.0"
] |
permissive
|
thrand-Antharo/EclipseCodeFormatter
|
4807a9853f5976b93d059deaf724301b45dad745
|
4c1107de9380cdcd4ae8588f2bfd17a53cdcab3c
|
refs/heads/master
| 2020-03-16T05:36:58.849660
| 2018-04-17T07:17:18
| 2018-04-17T07:17:18
| 132,536,315
| 0
| 0
|
Apache-2.0
| 2018-05-08T01:27:17
| 2018-05-08T01:27:17
| null |
UTF-8
|
Java
| false
| false
| 1,781
|
java
|
package krasa.formatter.eclipse;
import java.util.HashMap;
import junit.framework.Assert;
import krasa.formatter.adapter.JsniFormattingUtil;
import org.eclipse.jface.text.Document;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.TypedPosition;
import org.eclipse.text.edits.TextEdit;
import org.junit.Test;
/**
* @author Vojtech Krasa
*/
public class GWTTest {
public static final String INPUT = "package aaa.shared;\n"
+ "\n"
+ "import krasa.JavaScriptObject;\n"
+ "\n"
+ "public class FieldVerifier {\n"
+ "\n"
+ "\tprivate native JavaScriptObject jsInit() /*-{\tvar self = this;\t(function() {\talert(\"Hello\");\t})();\t}-*/;\n"
+ "}";
public static final String FORMATTED = "package aaa.shared;\n" + "\n" + "import krasa.JavaScriptObject;\n" + "\n"
+ "public class FieldVerifier {\n" + "\n" + "\tprivate native JavaScriptObject jsInit() /*-{\n"
+ "\t\tvar self = this;\n" + "\t\t(function() {\n" + "\t\t\talert(\"Hello\");\n" + "\t\t})();\n"
+ "\t}-*/;\n" + "}";
@Test
public void testName() throws Exception {
HashMap<String, String> javaFormattingPrefs = TestUtils.getJavaProperties();
int i = INPUT.indexOf("/*-");
int i2 = INPUT.indexOf("-*/");
TypedPosition partition = new TypedPosition(i, i2 - i + 3, "");
HashMap<String, String> jsMap = TestUtils.getJSProperties();
IDocument document = new Document(INPUT);
JsniFormattingUtil jsniFormattingUtil = new JsniFormattingUtil();
TextEdit format1 = jsniFormattingUtil.format(document, partition, javaFormattingPrefs, jsMap, null);
// TextEdit format1 = JsniFormattingUtil.format(document,javaFormattingPrefs, jsMap, null);
format1.apply(document);
Assert.assertEquals(FORMATTED, document.get());
System.err.println(FORMATTED);
}
}
|
[
"vojta.krasa@gmail.com"
] |
vojta.krasa@gmail.com
|
470cfd1fb2a489c5779fa265e93cbfd7b7067da2
|
e1f029ead343c996be15a0248f45edec0fe23889
|
/cmall-service/cmall-service-auth/src/main/java/com/cmall/provider/service/UacUserService.java
|
6d385fa4f6e8866326047f77631020c8cc8b69bb
|
[] |
no_license
|
nicky1224/cmall
|
f0e013609d479b5d0d68e5504f49579f2b130518
|
bd9340c51bf7a6b12c30592a1932a5ee49f34746
|
refs/heads/master
| 2022-11-11T03:01:18.031814
| 2020-04-30T08:58:32
| 2020-04-30T08:58:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,448
|
java
|
package com.cmall.provider.service;
import com.cmall.base.dto.LoginAuthDto;
import com.cmall.core.support.IService;
import com.cmall.provider.model.entity.UacLog;
import com.cmall.provider.model.entity.UacUser;
import com.cmall.provider.model.dto.menu.UserMenuDto;
import com.cmall.provider.model.dto.user.*;
import com.cmall.provider.model.vo.UserBindRoleVo;
import com.cmall.security.core.SecurityUser;
import com.github.pagehelper.PageInfo;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
import javax.servlet.http.HttpServletRequest;
import java.util.Collection;
import java.util.List;
/**
* The interface Uac user service.
*
*/
public interface UacUserService extends IService<UacUser> {
/**
* 根据登录名查询用户信息
*
* @param loginName the login name
*
* @return the uac user
*/
UacUser findByLoginName(String loginName);
/**
* 根据手机号查询用户信息.
*
* @param mobileNo the mobile no
*
* @return the uac user
*/
UacUser findByMobileNo(String mobileNo);
/**
* 校验用户是否合法
*
* @param loginReqDto the login req dto
*/
void checkUserIsCorrect(LoginReqDto loginReqDto);
/**
* 获得项目下所有的资源权限列表, 用于程序启动时的初始化工作
* String[0] = 资源
* String[1] = 权限
*
* @return all perms
*/
List<Perm> getAllPerms();
/**
* 获得用户拥有的权限列表, 在首次验证用户对某个资源是否有权限时, 会调用此方法, 初始化用户权限
*
* @param userId the user id
*
* @return the user perms
*/
List<String> getUserPerms(Long userId);
/**
* 更新用户信息
*
* @param uacUser the uac user
*
* @return the int
*/
int updateUser(UacUser uacUser);
/**
* Query user list with page list.
*
* @param uacUser the uac user
*
* @return the list
*/
PageInfo queryUserListWithPage(UacUser uacUser);
/**
* 根据用户ID删除用户.
*
* @param userId the user id
*
* @return the int
*/
int deleteUserById(Long userId);
/**
* 根据用户ID查询用户信息.
*
* @param userId the user id
*
* @return the uac user
*/
UacUser findUserInfoByUserId(Long userId);
/**
* 保存用户.
*
* @param user the user
* @param loginAuthDto the login auth dto
*/
void saveUacUser(UacUser user, LoginAuthDto loginAuthDto);
/**
* 根据用户ID查询用户日志集合.
*
* @param userId the user id
*
* @return the list
*/
List<UacLog> queryUserLogListWithUserId(Long userId);
/**
* 根据用户ID修改用户状态.
*
* @param uacUser the uac user
* @param loginAuthDto the login auth dto
*
* @return the int
*/
int modifyUserStatusById(UacUser uacUser, LoginAuthDto loginAuthDto);
/**
* 绑定用户角色信息.
*
* @param bindUserRolesDto the bind user roles dto
* @param loginAuthDto the login auth dto
*/
void bindUserRoles(BindUserRolesDto bindUserRolesDto, LoginAuthDto loginAuthDto);
/**
* 查询用户菜单.
*
* @param loginAuthDto the login auth dto
*
* @return the list
*/
List<UserMenuDto> queryUserMenuDtoData(LoginAuthDto loginAuthDto);
/**
* 用户绑定菜单.
*
* @param menuIdList the menu id list
* @param loginAuthDto the login auth dto
*
* @return the int
*/
int bindUserMenus(List<Long> menuIdList, LoginAuthDto loginAuthDto);
/**
* 根据用户ID查询用户信息.
*
* @param userId the user id
*
* @return the uac user
*/
UacUser queryByUserId(Long userId);
/**
* 用户修改密码
*
* @param userModifyPwdDto the user modify pwd dto
* @param authResDto the auth res dto
*
* @return the int
*/
int userModifyPwd(UserModifyPwdDto userModifyPwdDto, LoginAuthDto authResDto);
/**
* 用户忘记密码
*
* @param userResetPwdDto the user reset pwd dto
*
* @return the int
*/
int userResetPwd(UserResetPwdDto userResetPwdDto);
/**
* 注册用户.
*
* @param registerDto the register dto
*/
void register(UserRegisterDto registerDto);
/**
* 校验登录名是否存在.
*
* @param loginName the login name
*
* @return the boolean
*/
boolean checkLoginName(String loginName);
/**
* 校验邮箱是否存在.
*
* @param loginName the login name
*
* @return the boolean
*/
boolean checkEmail(String loginName);
/**
* 校验手机号是否存在.
*
* @param validValue the valid value
*
* @return the boolean
*/
boolean checkMobileNo(String validValue);
/**
* 根据邮箱和登录名查询用户数量.
*
* @param loginName the login name
* @param email the email
*
* @return the int
*/
int countUserByLoginNameAndEmail(String loginName, String email);
/**
* 重置密码.
*
* @param forgetResetPasswordDto 忘记密码实体
*
* @return the int
*/
int userEmailResetPwd(ForgetResetPasswordDto forgetResetPasswordDto);
/**
* 修改用户邮箱.
*
* @param email the email
* @param emailCode the email code
* @param loginAuthDto the login auth dto
*/
void modifyUserEmail(String email, String emailCode, LoginAuthDto loginAuthDto);
/**
* 重置登录密码.
*
* @param userId the user id
* @param loginAuthDto the login auth dto
*/
void resetLoginPwd(Long userId, LoginAuthDto loginAuthDto);
/**
* 重置登录密码.
*
* @param resetLoginPwdDto the reset login pwd dto
*/
void resetLoginPwd(ResetLoginPwdDto resetLoginPwdDto);
/**
* 获取绑定的角色信息.
*
* @param userId the user id
*
* @return the user bind role dto
*/
UserBindRoleVo getUserBindRoleDto(Long userId);
/**
* 激活用户.
*
* @param activeUserToken the active user token
*/
void activeUser(String activeUserToken);
/**
* 获取用户拥有的所有权限编码.
*
* @param userId the user id
*
* @return the collection
*/
Collection<GrantedAuthority> loadUserAuthorities(Long userId);
/**
* Handler login data.
*
* @param token the token
* @param principal the principal
* @param request the request
*/
void handlerLoginData(OAuth2AccessToken token, final SecurityUser principal, final HttpServletRequest request);
/**
* Find user info by login name uac user.
*
* @param loginName the login name
*
* @return the uac user
*/
UacUser findUserInfoByLoginName(String loginName);
}
|
[
"luoqingping@ppdai.com"
] |
luoqingping@ppdai.com
|
213b968c8ac9e6c56cdb6ead20639c783000ea7f
|
19599ad278e170175f31f3544f140a8bc4ee6bab
|
/src/com/ametis/cms/dao/impl/BatchClaimDaoImpl.java
|
73be107da09b3f4b1c2a585cfaa613c029787182
|
[] |
no_license
|
andreHer/owlexaGIT
|
a2a0df83cd64a399e1c57bb6451262434e089631
|
426df1790443e8e8dd492690d6b7bd8fd37fa3d7
|
refs/heads/master
| 2021-01-01T04:26:16.039616
| 2016-05-12T07:37:20
| 2016-05-12T07:37:20
| 58,693,624
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,216
|
java
|
package com.ametis.cms.dao.impl;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.dao.DataAccessException;
import org.springframework.orm.hibernate3.HibernateTemplate;
import com.ametis.cms.dao.BatchClaimDao;
import com.ametis.cms.datamodel.BatchClaim;
import com.ametis.cms.util.dao.DaoSupportUtil;
// imports+
// imports-
/**
* BatchClaimDao adalah bean implementation untuk DAO tabel batch_claim.
*/
public class BatchClaimDaoImpl extends DaoSupportUtil implements BatchClaimDao
// extends+
// extends-
{
/*
* Method create (BatchClaim object) berfungsi untuk melakukan penambahan
* sebuah object kedalam database
* @param object adalah sebuah object yang ingin diubah
* @return object baru hasil create dengan assigned primary key , exception jika gagal
*/
public BatchClaim create (BatchClaim object) throws DataAccessException {
this.getHibernateTemplate().save(object);
return object;
}
/*
* Method updateBatchClaim (BatchClaim object) berfungsi untuk melakukan perubahan terhadap
* sebuah object yang terdapat didalam database
* @param object adalah sebuah object yang ingin diubah
* @return object hasil update apabila proses update berhasil dilakukan, dan exception jika gagal.
*/
public BatchClaim update (BatchClaim object) throws DataAccessException{
this.getHibernateTemplate().update(object);
return object;
}
/*
* Method delete (BatchClaim object) berfungsi untuk melakukan penghapusan terhadap
* sebuah object yang terdapat didalam database
* @param object adalah sebuah object yang ingin dihapus, isi dari object tersebut cukup dengan
* mengisi field-field primary key
* @return no return value karena objeknya sendiri sudah dihapus - just for consistency. Again,
* exception if fail
*
*/
public BatchClaim delete (BatchClaim object) throws DataAccessException{
this.getHibernateTemplate().delete(object);
return object;
}
/*
* Method get (BatchClaim object) berfungsi untuk melakukan retrieval terhadap
* sebuah object yang terdapat didalam database
* @param object adalah sebuah object yang mempunyai ciri-ciri (example) sesuai dengan data yang diinginkan
* @return Object yang dihasilkan dari proses retrieval, apabila object tidak ditemukan
* maka method akan mengembalikan nilai "NULL"
*/
public BatchClaim get (java.io.Serializable pkey) throws DataAccessException {
return (BatchClaim) this.getHibernateTemplate().get (BatchClaim.class, pkey);
}
/*
BASIC IMPLEMENTATION !! USE WITH CAUTION !
USE IT IF NO OTHER OPTION LEFT
@return criteria
*/
public Criteria getCriteria() throws Exception {
HibernateTemplate template = this.getHibernateTemplate();
SessionFactory sessionFactory = template.getSessionFactory();
Session session = sessionFactory.getCurrentSession();
Criteria criteria = session.createCriteria(BatchClaim.class);
return criteria;
}
/*
BASIC IMPLEMENTATION !! USE WITH CAUTION !
USE IT IF NO OTHER OPTION LEFT
WARNING !! DONT" FORGET TO SET THE PROJECTION
example : detachedCriteria.setProjection(Property.forName("primary_key_field"));
@return DetachedCriteria
*
*/
public DetachedCriteria getDetachedCriteria() throws Exception {
DetachedCriteria dc = DetachedCriteria.forClass(BatchClaim.class);
return dc;
}
public Session getBatchSession() throws Exception {
// TODO Auto-generated method stub
return this.getHibernateTemplate().getSessionFactory().getCurrentSession();
}
//------------------------------------------------
// GAGAL TERUS -GAK SEMUA JALAN DENGAN BAIK - DINONAKTIFKAN
/* public Collection searchBatchClaim (BatchClaim object) throws Exception{
HibernateTemplate template = getHibernateTemplate();
SessionFactory sessionFactory = template.getSessionFactory();
Session session = sessionFactory.getCurrentSession();
Criteria criteria = session.createCriteria(BatchClaim.class);
criteria.add(Example.create(object));
return criteria.list();
}
*/
// class+
// class-
}
|
[
"mashuri@7a4bab5d-9f4e-4b47-a10f-b21823e054b7"
] |
mashuri@7a4bab5d-9f4e-4b47-a10f-b21823e054b7
|
142eaa37f11dc0b003526f10527025069340deb1
|
75a8892e4be8c81cbebc07153d53ccc379528287
|
/capitulo3/application/Exemplo05_Versao02.java
|
c051e79a52e2e7aa42ac26d0dda175e5a6c235e6
|
[] |
no_license
|
lfbessegato/Estudos-Java
|
da2d50c5965eae6b804306fef0457885341f7ac1
|
d358a777feb967147c125bf10cf302a1e9b96e43
|
refs/heads/master
| 2020-08-07T02:04:22.877913
| 2019-10-06T22:26:50
| 2019-10-06T22:26:50
| 213,252,991
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 649
|
java
|
package course.capitulo3.application;
import java.util.Locale;
import java.util.Scanner;
import course.capitulo3.util.Calculator;
public class Exemplo05_Versao02 {
public static void main(String[] args) {
Locale.setDefault(Locale.US);
Scanner sc = new Scanner(System.in);
Calculator calc = new Calculator();
System.out.print("Enter radius: ");
double radius = sc.nextDouble();
double c = calc.circumference(radius);
double v = calc.volume(radius);
System.out.printf("Circumference: %.2f%n", c);
System.out.printf("Volume: %.2f%n", v);
System.out.printf("PI Volume: %.2f%n", calc.PI);
sc.close();
}
}
|
[
"lfrbessegato@gmail.com"
] |
lfrbessegato@gmail.com
|
bb33e43fbfc7fb619da585c12ef0026a005b1cc4
|
79b835844a094daeca1220304adf0758630161f0
|
/app/src/main/java/com/dueeeke/dkplayer/activity/list/ListViewActivity.java
|
b4d4a97d845972eeddb077326f14b4ed632b0484
|
[
"Apache-2.0"
] |
permissive
|
juedishu/dkplayer
|
0e1483de75477f1f28676b7c382282d187aa0ede
|
2b89e0dad1597e34c72fa2ee27cae32d95fa077f
|
refs/heads/master
| 2020-06-02T07:46:20.286769
| 2019-04-02T05:59:56
| 2019-04-02T05:59:56
| 191,087,418
| 1
| 0
|
Apache-2.0
| 2019-06-10T03:06:34
| 2019-06-10T03:06:34
| null |
UTF-8
|
Java
| false
| false
| 4,734
|
java
|
package com.dueeeke.dkplayer.activity.list;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android.view.View;
import android.widget.AbsListView;
import android.widget.ListView;
import com.dueeeke.dkplayer.R;
import com.dueeeke.dkplayer.adapter.VideoListViewAdapter;
import com.dueeeke.dkplayer.util.DataUtil;
import com.dueeeke.videoplayer.player.IjkVideoView;
import com.dueeeke.videoplayer.player.VideoViewManager;
/**
* ListView
* Created by Devlin_n on 2017/6/14.
*/
public class ListViewActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_list_view);
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setTitle(R.string.str_list_view);
actionBar.setDisplayHomeAsUpEnabled(true);
}
ListView listView = findViewById(R.id.lv);
listView.setAdapter(new VideoListViewAdapter(DataUtil.getVideoList(), this));
listView.setOnScrollListener(new AbsListView.OnScrollListener() {
private View firstView; //记录当前屏幕中第一个可见的item对象
private View lastView; //记录当前屏幕中最后个可见的item对象
private int lastFirstVisibleItem; //记录当前屏幕中第一个可见的item的position
private int lastVisibleItem; // 记录屏幕中最后一个可见的item的position
private boolean scrollFlag;// 记录滑动状态
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
switch (scrollState) {
case AbsListView.OnScrollListener.SCROLL_STATE_IDLE:
scrollFlag = false;
break;
case AbsListView.OnScrollListener.SCROLL_STATE_TOUCH_SCROLL:
scrollFlag = true;
break;
case AbsListView.OnScrollListener.SCROLL_STATE_FLING:
scrollFlag = true;
break;
}
}
@Override
public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
if (scrollFlag) { // 避免不必要的执行
//如果记录的 屏幕中第一个可见的item的position 已经小于当前屏幕中第一个可见item的position,表示item已经完全滑出屏幕了
//这种情况一般出现在ListView上滑的时候,故此时我们可以把firstView上的播放器停止
if (lastFirstVisibleItem < firstVisibleItem) {
gcView(firstView);
//通过firstVisibleItem + visibleItemCount - 1我们可以得到当前屏幕上最后一个item的position
//如果屏幕中最后一个可见的item的position已经大于当前屏幕上最后一个item的position,表示item已经完全滑出屏幕了
//这种情况一般出现在ListView下滑的时候,故此时我们可以把lastView上的播放器停止
} else if (lastVisibleItem > firstVisibleItem + visibleItemCount - 1) {
gcView(lastView);
}
lastFirstVisibleItem = firstVisibleItem;
lastVisibleItem = firstVisibleItem + visibleItemCount - 1;
firstView = view.getChildAt(0);
lastView = view.getChildAt(visibleItemCount - 1);
}
}
private void gcView(View gcView) {
if (gcView != null) {
IjkVideoView ijkVideoView = gcView.findViewById(R.id.video_player);
if (ijkVideoView != null && !ijkVideoView.isFullScreen()) {
ijkVideoView.stopPlayback();
}
}
}
});
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == android.R.id.home) {
finish();
}
return super.onOptionsItemSelected(item);
}
@Override
protected void onPause() {
super.onPause();
VideoViewManager.instance().releaseVideoPlayer();
}
@Override
public void onBackPressed() {
if (!VideoViewManager.instance().onBackPressed()) {
super.onBackPressed();
}
}
}
|
[
"xinyunjian1995@gmail.com"
] |
xinyunjian1995@gmail.com
|
b14186c7e2f7c4e8b5bbdd246b993757c56fdeeb
|
e8962c6f9e9074ae6b57e19a8b683c4d6f8b2f6a
|
/felix/src/test/java/org/jboss/test/osgi/resolver/DynamicPackageImportResolverTest.java
|
c18ec39be1aa2338d320a524bb70c8e932f743c8
|
[
"Apache-2.0"
] |
permissive
|
theHilikus/jbosgi-resolver
|
8054cd675dfc72a3eaab257d8aece2b2e738cd4b
|
09d0114c59e82c84a401126eda9c74f8b79dbe5a
|
refs/heads/master
| 2021-01-15T11:44:37.913960
| 2013-10-01T21:18:19
| 2013-10-01T21:18:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,993
|
java
|
/*
* #%L
* JBossOSGi Resolver Felix
* %%
* Copyright (C) 2010 - 2012 JBoss by Red Hat
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package org.jboss.test.osgi.resolver;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.io.InputStream;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.jboss.osgi.metadata.OSGiManifestBuilder;
import org.jboss.osgi.resolver.XResource;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.Asset;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Test;
import org.osgi.resource.Resource;
import org.osgi.resource.Wire;
/**
* Test the default resolver integration.
*
* @author thomas.diesler@jboss.com
* @since 25-Feb-2012
*/
public class DynamicPackageImportResolverTest extends AbstractResolverTest {
@Test
public void testBundleSymbolicNameDirective() throws Exception {
final JavaArchive archiveA = ShrinkWrap.create(JavaArchive.class, "tb8a");
archiveA.setManifest(new Asset() {
public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleManifestVersion(2);
builder.addBundleSymbolicName(archiveA.getName());
builder.addExportPackages("org.jboss.test.osgi.framework.classloader.support.a");
return builder.openStream();
}
});
XResource resourceA = createResource(archiveA);
final JavaArchive archiveB = ShrinkWrap.create(JavaArchive.class, "tb8b");
archiveB.setManifest(new Asset() {
public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleManifestVersion(2);
builder.addBundleSymbolicName(archiveB.getName());
builder.addExportPackages("org.jboss.test.osgi.framework.classloader.support.a");
return builder.openStream();
}
});
XResource resourceB = createResource(archiveB);
final JavaArchive archiveC = ShrinkWrap.create(JavaArchive.class, "tb17c");
archiveC.setManifest(new Asset() {
public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleManifestVersion(2);
builder.addBundleSymbolicName(archiveC.getName());
String packageA = "org.jboss.test.osgi.framework.classloader.support.a";
builder.addDynamicImportPackages(packageA + ";bundle-symbolic-name=tb8b," + packageA + ";bundle-symbolic-name=tb8a");
return builder.openStream();
}
});
XResource resourceC = createResource(archiveC);
installResources(resourceA, resourceB, resourceC);
List<XResource> mandatory = Arrays.asList(resourceA, resourceB, resourceC);
Map<Resource,List<Wire>> map = resolver.resolve(getResolveContext(mandatory, null));
assertNotNull("Wire map not null", map);
assertEquals(3, map.size());
assertTrue("No wires", map.get(resourceA).isEmpty());
assertTrue("No wires", map.get(resourceB).isEmpty());
assertTrue("No wires", map.get(resourceC).isEmpty());
}
}
|
[
"thomas.diesler@jboss.com"
] |
thomas.diesler@jboss.com
|
f25ac09d2d53bca40eb5114a4eaa2106d12158d6
|
7d1609b510e3c97b2f00568e91cd9a51438275c8
|
/Java/JavaDB/02.Databases Frameworks - Hibernate & Spring Data - October 2018/10.Homework_XML_Processing/XMLProductShopHomework/src/main/java/products/dto/bindings/UsersImportXmlDto.java
|
385b5bf46128a27caa66f238ef833077118ce9ae
|
[
"MIT"
] |
permissive
|
mgpavlov/SoftUni
|
80a5d2cbd0348e895f6538651e86fcff65dcebf5
|
cef1a7e4e475c69bbeb7bfdcaf7b3e64c88d604c
|
refs/heads/master
| 2021-01-24T12:36:57.475329
| 2019-04-30T00:06:15
| 2019-04-30T00:06:15
| 123,138,723
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 694
|
java
|
package products.dto.bindings;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
@XmlRootElement(name = "users")
@XmlAccessorType(XmlAccessType.FIELD)
public class UsersImportXmlDto {
@XmlElement(name = "user")
private List<UserImportDto> userImportDtos;
public UsersImportXmlDto() {
}
public List<UserImportDto> getUserImportDtos() {
return this.userImportDtos;
}
public void setUserImportDtos(List<UserImportDto> userImportDtos) {
this.userImportDtos = userImportDtos;
}
}
|
[
"30524177+mgpavlov@users.noreply.github.com"
] |
30524177+mgpavlov@users.noreply.github.com
|
a9191fc4585eb6a258d130f47a9ea77fb92161a8
|
06578e855f7004a3aae22aa7c79a5e92ddb57b83
|
/app/src/main/java/ping/otmsapp/assemblys/services/connect/MyServiceConnection.java
|
a5fcfdd073c513f711f40d1efc15f4b657e4496b
|
[] |
no_license
|
15608447849/OTMSAPP
|
e81bf95a34680855bbb15e410a2e93075a6e5536
|
d15887b2d7fe55f53cea3b77c1cf3ff5b8386448
|
refs/heads/master
| 2021-07-16T19:21:15.382844
| 2018-12-28T03:25:48
| 2018-12-28T03:25:48
| 127,735,914
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,121
|
java
|
package ping.otmsapp.assemblys.services.connect;
import android.app.Service;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
/**
* Created by user on 2018/3/8.
* 用于连接后台服务
*/
public class MyServiceConnection<T extends BinderAbs> implements ServiceConnection {
protected Class<?> serviceClassType;
private boolean isConnected;
public <S extends Service> MyServiceConnection(Context context,Class<S> clazz) {
this.serviceClassType = clazz;
context.startService(new Intent(context,serviceClassType)); //打开服务
}
private T binder;
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
isConnected =true;
binder = (T)service;
if (listener!=null){
listener.onServiceConnected(binder);
}
}
@Override
public void onServiceDisconnected(ComponentName name) {
isConnected = false;
binder = null;
}
@Override
public void onBindingDied(ComponentName name) {
binder = null;
}
public void bind(Context context,ConnectedListener listener){
if (!isConnected){
setListener(listener);
context.bindService( new Intent(context,serviceClassType),this, Context.BIND_ABOVE_CLIENT);
}
}
public void unbind(Context context){
if (isConnected){
context.unbindService(this);
listener = null;
isConnected = false;
}
}
public T getBinder() {
return binder;
}
private ConnectedListener listener;
public void setListener(ConnectedListener listener) {
this.listener = listener;
}
public void stopServer(Context context) {
unbind(context);
context.stopService(new Intent(context,serviceClassType)); //关闭服务
}
/**
* 连接成功监听
*
*/
public interface ConnectedListener{
void onServiceConnected(BinderAbs binder);
}
}
|
[
"793065165@qq.com"
] |
793065165@qq.com
|
2587554964b7ad4c44f759ae5e56c9c09acdffdc
|
12c85a6c3ee763dff3153a98c0549526c2cffc5a
|
/src/org/ironrhino/security/oauth/server/action/ClientAction.java
|
30405a70859104386a97927f7458f9f8f4bec232
|
[] |
no_license
|
kpaxer/ironrhino
|
978cc8840fd054fbf325d887ef3d63402832b9f3
|
fb6a9e87850a0e7a75389b0a453925b23392e283
|
refs/heads/master
| 2020-12-11T07:52:18.730018
| 2015-11-13T03:15:53
| 2015-11-13T03:15:53
| 46,122,649
| 1
| 0
| null | 2015-11-13T13:10:38
| 2015-11-13T13:10:35
| null |
UTF-8
|
Java
| false
| false
| 3,436
|
java
|
package org.ironrhino.security.oauth.server.action;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;
import org.ironrhino.core.metadata.Authorize;
import org.ironrhino.core.model.ResultPage;
import org.ironrhino.core.security.role.UserRole;
import org.ironrhino.core.service.BaseManager;
import org.ironrhino.core.struts.EntityAction;
import org.ironrhino.core.util.AuthzUtils;
import org.ironrhino.security.model.User;
import org.ironrhino.security.oauth.server.model.Client;
import com.opensymphony.xwork2.interceptor.annotations.InputConfig;
import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;
import com.opensymphony.xwork2.validator.annotations.Validations;
import com.opensymphony.xwork2.validator.annotations.ValidatorType;
public class ClientAction extends EntityAction<Client> {
private static final long serialVersionUID = -4833030589707102084L;
private Client client;
public Client getClient() {
return client;
}
public void setClient(Client client) {
this.client = client;
}
@Override
@Authorize(ifAllGranted = UserRole.ROLE_BUILTIN_USER)
public String checkavailable() {
return super.checkavailable();
}
@InputConfig(resultName = "apply")
@Authorize(ifAllGranted = UserRole.ROLE_BUILTIN_USER)
@Validations(requiredStrings = {
@RequiredStringValidator(type = ValidatorType.FIELD, fieldName = "client.name", trim = true, key = "validation.required"),
@RequiredStringValidator(type = ValidatorType.FIELD, fieldName = "client.redirectUri", trim = true, key = "validation.required") })
public String apply() {
client.setEnabled(false);
client.setOwner(AuthzUtils.<User> getUserDetails());
getEntityManager(Client.class).save(client);
addActionMessage(getText("save.success"));
return SUCCESS;
}
@Authorize(ifAllGranted = UserRole.ROLE_BUILTIN_USER)
public String mine() {
BaseManager<Client> clientManager = getEntityManager(Client.class);
DetachedCriteria dc = clientManager.detachedCriteria();
dc.add(Restrictions.eq("owner", AuthzUtils.<User> getUserDetails()));
if (resultPage == null)
resultPage = new ResultPage<>();
resultPage.setCriteria(dc);
resultPage = clientManager.findByResultPage(resultPage);
return "mine";
}
@Authorize(ifAllGranted = UserRole.ROLE_BUILTIN_USER)
public String show() {
client = getEntityManager(Client.class).get(getUid());
return "show";
}
@Override
@Authorize(ifAllGranted = UserRole.ROLE_BUILTIN_USER)
public String disable() {
BaseManager<Client> clientManager = getEntityManager(Client.class);
String[] id = getId();
if (id != null) {
List<Client> list;
if (id.length == 1) {
list = new ArrayList<>(1);
list.add(clientManager.get(id[0]));
} else {
DetachedCriteria dc = clientManager.detachedCriteria();
dc.add(Restrictions.in("id", id));
list = clientManager.findListByCriteria(dc);
}
if (list.size() > 0) {
for (Client temp : list) {
if (AuthzUtils.authorize(null, UserRole.ROLE_ADMINISTRATOR, null)
|| AuthzUtils.getUsername().equals(temp.getOwner().getUsername())) {
temp.setEnabled(false);
clientManager.save(temp);
}
}
addActionMessage(getText("operate.success"));
}
}
return REFERER;
}
}
|
[
"zhouyanming@gmail.com"
] |
zhouyanming@gmail.com
|
6ff1091389ac89c15e62ac0b71b42b6a477652ee
|
f80cb654dc812373023737bb7eb74699d0639f5f
|
/hbase-server/src/test/java/org/apache/hadoop/hbase/replication/multiwal/TestReplicationKillMasterRSCompressedWithMultipleAsyncWAL.java
|
4685f24c0de11a9a7b501ee3f6498bdb1d8d23ba
|
[
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-protobuf",
"CC-BY-3.0"
] |
permissive
|
xiaobai5150/hbase
|
ec32f908a41ce6fb119f6e8d40d79b168f7f5afb
|
f30d6c958a17cfa90081e363e96a87e5b51f8a6e
|
refs/heads/master
| 2020-05-15T20:56:48.591232
| 2019-04-13T09:53:56
| 2019-04-20T20:03:32
| 182,490,494
| 1
| 0
|
Apache-2.0
| 2019-04-21T04:43:10
| 2019-04-21T04:43:09
| null |
UTF-8
|
Java
| false
| false
| 1,949
|
java
|
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hbase.replication.multiwal;
import org.apache.hadoop.hbase.HBaseClassTestRule;
import org.apache.hadoop.hbase.replication.TestReplicationKillMasterRSCompressed;
import org.apache.hadoop.hbase.testclassification.LargeTests;
import org.apache.hadoop.hbase.testclassification.ReplicationTests;
import org.apache.hadoop.hbase.wal.RegionGroupingProvider;
import org.apache.hadoop.hbase.wal.WALFactory;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.experimental.categories.Category;
@Category({ReplicationTests.class, LargeTests.class})
public class TestReplicationKillMasterRSCompressedWithMultipleAsyncWAL extends
TestReplicationKillMasterRSCompressed {
@ClassRule
public static final HBaseClassTestRule CLASS_RULE =
HBaseClassTestRule.forClass(TestReplicationKillMasterRSCompressedWithMultipleAsyncWAL.class);
@BeforeClass
public static void setUpBeforeClass() throws Exception {
conf1.set(WALFactory.WAL_PROVIDER, "multiwal");
conf1.set(RegionGroupingProvider.DELEGATE_PROVIDER, "asyncfs");
TestReplicationKillMasterRSCompressed.setUpBeforeClass();
}
}
|
[
"zhangduo@apache.org"
] |
zhangduo@apache.org
|
5d19b967aec6448522b7398f59a84c7024ae233d
|
323c723bdbdc9bdf5053dd27a11b1976603609f5
|
/nssicc/nssicc_service/src/main/java/biz/belcorp/ssicc/service/sisicc/impl/InterfazAVIEnviarConsultoraCDRCabeceraServiceImpl.java
|
17e026ae256e5d0ff5817df3d039c316383e9ba9
|
[] |
no_license
|
cbazalar/PROYECTOS_PROPIOS
|
adb0d579639fb72ec7871334163d3fef00123a1c
|
3ba232d1f775afd07b13c8246d0a8ac892e93167
|
refs/heads/master
| 2021-01-11T03:38:06.084970
| 2016-10-24T01:33:00
| 2016-10-24T01:33:00
| 71,429,267
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,470
|
java
|
package biz.belcorp.ssicc.service.sisicc.impl;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import biz.belcorp.ssicc.dao.sisicc.InterfazAVIDAO;
import biz.belcorp.ssicc.service.sisicc.framework.exception.InterfazException;
import biz.belcorp.ssicc.service.sisicc.framework.impl.BaseInterfazSalidaAbstractService;
/**
* Service para el envio de Consultoras CDR Cabecera de la Interfaz AVI.
*
* @author <a href="mailto:sapaza@belcorp.biz">Sergio Apaza</a>
*/
@Service("sisicc.InterfazAVIEnviarConsultoraCDRCabeceraService")
@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class)
public class InterfazAVIEnviarConsultoraCDRCabeceraServiceImpl extends
BaseInterfazSalidaAbstractService {
@Resource(name="sisicc.interfazAVIDAO")
private InterfazAVIDAO interfazAVIDAO;
protected List readData(Map queryParams) throws InterfazException {
if (log.isDebugEnabled())
log.debug("Entering 'readData' method ");
List listConsultoraCDR = null;
try {
listConsultoraCDR = this.interfazAVIDAO
.getInterfazAVIConsultoraCDRCabecera(queryParams);
} catch (Exception e) {
log.error("Error al leer los datos: " + e.getMessage());
throw new InterfazException(e.getMessage());
}
return listConsultoraCDR;
}
}
|
[
"cbazalarlarosa@gmail.com"
] |
cbazalarlarosa@gmail.com
|
3aa572ba55569db5c9bcee96af1f863bff1fbbd9
|
bfe8ad69a2f9c544392530d3d26511f28ecd599a
|
/src/main/java/com/qg/anywork/exception/testpaper/TestPaperTimeException.java
|
5c3c152d36e2bccdbd653ee508ddc482681ed2d6
|
[] |
no_license
|
qimingXia/anywork
|
d7df9f9edf8fc6dd6244a04452ce01d2872173d3
|
fcf5236dcb4a77cdf2dbe4473ab10e82b1198285
|
refs/heads/master
| 2020-09-28T20:25:06.316532
| 2018-12-14T11:18:24
| 2018-12-14T11:18:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 350
|
java
|
package com.qg.anywork.exception.testpaper;
import com.qg.anywork.enums.StatEnum;
/**
* Create by ming on 18-10-6 上午12:23
*
* @author ming
* I'm the one to ignite the darkened skies.
*/
public class TestPaperTimeException extends TestPaperException {
public TestPaperTimeException(StatEnum statEnum) {
super(statEnum);
}
}
|
[
"1594998836@qq.com"
] |
1594998836@qq.com
|
e75700f28dba2402e8b936ede97072ae15017521
|
6b2a8dd202fdce77c971c412717e305e1caaac51
|
/solutions_1595491_0/java/Greentie/PracticeJam.java
|
8b2dcaec02c192c5a7bdb3e107a3d6e8a9ab6668
|
[] |
no_license
|
alexandraback/datacollection
|
0bc67a9ace00abbc843f4912562f3a064992e0e9
|
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
|
refs/heads/master
| 2021-01-24T18:27:24.417992
| 2017-05-23T09:23:38
| 2017-05-23T09:23:38
| 84,313,442
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,085
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package practicejam;
import java.io.*;
/**
*
* @author GreenTie
*/
public class PracticeJam {
// public int[] compute(int[][] input){
// int[] result=new int[input.length];
// for(int i=0;i<input.length;i++)
// result[i]=compute(input[0],input[1]);
// return result;
// }
public static int compute(int n, int k) {
if ((k & 0x01) == 0) {
return 0;
} else {
int x = (1 << n);
return (k + 1) % x == 0 ? 1 : 0;
}
}
public static final String[] Result = {"OFF", "ON"};
public static final char[] DicB = {'Y', 'H', 'E', 'S', 'O', 'C', 'V', 'X', 'D', 'U', 'I', 'G', 'L', 'B', 'K', 'R', 'Z', 'T', 'N', 'W', 'J', 'P', 'F', 'M', 'A', 'Q'};
public static final char[] DicA = {'y', 'h', 'e', 's', 'o', 'c', 'v', 'x', 'd', 'u', 'i', 'g', 'l', 'b', 'k', 'r', 'z', 't', 'n', 'w', 'j', 'p', 'f', 'm', 'a', 'q'};
public static final int[] Normal = {0, 1, 1, 1,
2, 2, 2,
3, 3, 3,
4, 4, 4,
5, 5, 5,
6, 6, 6,
7, 7, 7,
8, 8, 8,
9, 9, 9,
10, 10, 10};
public static final int[] Surprising = {0,
0, 2, 2,
2, 3, 3,
3, 4, 4,
4, 5, 5,
5, 6, 6,
6, 7, 7,
7, 8, 8,
8, 9, 9,
9, 10, 10,
10, 0, 0
};
public static String problemA(String G) {
StringBuilder sb = new StringBuilder(G.length());
for (int i = 0; i < G.length(); i++) {
char x = G.charAt(i);
if (x >= 'A' && x <= 'Z') {
sb.append(DicB[x - 'A']);
} else if (x >= 'a' && x <= 'z') {
sb.append(DicA[x - 'a']);
} else {
sb.append(x);
}
}
return sb.toString();
}
public static int problemB(String G){
int result=0;
String[] temp=G.split(" ");
int N=Integer.parseInt(temp[0]);
int S=Integer.parseInt(temp[1]);
int p=Integer.parseInt(temp[2]);
int[] scr=new int[N];
int count=N;
int suprise=S;
for(int i=0;i<N;i++){
scr[i]=Integer.parseInt(temp[i+3]);
if(scr[i]>=29){result++;count--;}
else if(scr[i]==1){count--;if(p<=1)result++;}
else if(scr[i]==0){count--;if(p==0)result++;}
else if(Normal[scr[i]]>=p){
result++;count--;
}
else{
if(Surprising[scr[i]]>=p&&suprise>0){
result++;
count--;
suprise--;
}
}
}
return result;
}
/**
* @param args the command line arguments
*/
public static void mainA(String[] args) {
String[] x = {"ejp mysljylc kd kxveddknmc re jsicpdrysi", "rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd", "de kr kd eoya kw aej tysr re ujdr lkgc jv"};
for (String G : x) {
System.out.println(problemA(G));
}
}
public static void main(String[] args) throws FileNotFoundException, IOException {
BufferedReader br = new BufferedReader(new FileReader(new File("B-small-attempt0.in")));
int x = Integer.parseInt(br.readLine());
StringBuilder sb = new StringBuilder();
for (int i = 1; i <= x; i++) {
//String[] temp=br.readLine().trim().split(" ");
sb.append("Case #").append(i).append(": ").append(problemB(br.readLine()));
sb.append('\n');
//sb.append("Case #").append(i).append(": ").append(Result[compute(Integer.parseInt(temp[0]),Integer.parseInt(temp[1]))]).append('\n');
//System.out.printf("Case #%d: %s\n",i,Result[compute(Integer.parseInt(temp[0]),Integer.parseInt(temp[1]))]);
}
System.setOut(new PrintStream(new File("B-small-attempt0.out")));
System.out.print(sb.toString());
br.close();
}
}
|
[
"eewestman@gmail.com"
] |
eewestman@gmail.com
|
e923c11a8f6bb5f14d3f37a5f57cc219e4091e3f
|
c34450b892219eee12f010bc3006eeac75c6e198
|
/drools/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/builder/generator/operatorspec/TemporalOperatorSpec.java
|
6be5f7fc572a4025cae71056088f55aa6b9a88d5
|
[
"Apache-2.0"
] |
permissive
|
mariofusco/qs-playground
|
3e40b47297c1fc319400350c1b6ec3ba88a993ae
|
07118d046a4f2559fb1415abd0dea271ed077bd0
|
refs/heads/master
| 2020-04-21T17:01:29.982492
| 2019-02-07T19:46:42
| 2019-02-07T19:46:42
| 169,722,673
| 0
| 0
| null | 2019-02-08T11:07:04
| 2019-02-08T11:07:04
| null |
UTF-8
|
Java
| false
| false
| 2,563
|
java
|
package org.drools.modelcompiler.builder.generator.operatorspec;
import static org.drools.modelcompiler.builder.generator.DslMethodNames.NOT_CALL;
import org.drools.javaparser.ast.drlx.expr.PointFreeExpr;
import org.drools.javaparser.ast.drlx.expr.TemporalChunkExpr;
import org.drools.javaparser.ast.drlx.expr.TemporalLiteralChunkExpr;
import org.drools.javaparser.ast.drlx.expr.TemporalLiteralExpr;
import org.drools.javaparser.ast.drlx.expr.TemporalLiteralInfiniteChunkExpr;
import org.drools.javaparser.ast.expr.MethodCallExpr;
import org.drools.modelcompiler.builder.generator.RuleContext;
import org.drools.modelcompiler.builder.generator.TypedExpression;
import org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper;
public class TemporalOperatorSpec implements OperatorSpec {
public static final TemporalOperatorSpec INSTANCE = new TemporalOperatorSpec();
public Expression getExpression(RuleContext context, PointFreeExpr pointFreeExpr, TypedExpression left, ExpressionTyper expressionTyper) {
MethodCallExpr methodCallExpr = new MethodCallExpr( null, "D." + pointFreeExpr.getOperator().asString() );
if (pointFreeExpr.getArg1() != null) {
addArgumentToMethodCall( pointFreeExpr.getArg1(), methodCallExpr );
if (pointFreeExpr.getArg2() != null) {
addArgumentToMethodCall( pointFreeExpr.getArg2(), methodCallExpr );
}
}
return pointFreeExpr.isNegated() ? new MethodCallExpr( null, NOT_CALL ).addArgument( methodCallExpr ) : methodCallExpr;
}
@Override
public boolean isStatic() {
return true;
}
public static void addArgumentToMethodCall(Expression expr, MethodCallExpr methodCallExpr ) {
if (expr instanceof TemporalLiteralExpr) {
TemporalChunkExpr firstTemporalExpression = ((TemporalLiteralExpr) expr).getChunks().iterator().next();
if (firstTemporalExpression instanceof TemporalLiteralInfiniteChunkExpr) {
methodCallExpr.addArgument( Long.MAX_VALUE + "L" );
methodCallExpr.addArgument( "java.util.concurrent.TimeUnit.MILLISECONDS" );
} else {
final TemporalLiteralChunkExpr literal = ( TemporalLiteralChunkExpr ) firstTemporalExpression;
methodCallExpr.addArgument( literal.getValue() + "L" );
methodCallExpr.addArgument( "java.util.concurrent.TimeUnit." + literal.getTimeUnit() );
}
} else {
methodCallExpr.addArgument( expr );
}
}
}
|
[
"swiderski.maciej@gmail.com"
] |
swiderski.maciej@gmail.com
|
582889cadb081958a9422d6e918ac2fad2f690a1
|
5598faaaaa6b3d1d8502cbdaca903f9037d99600
|
/code_changes/Apache_projects/HDFS-54/fc90f1ad783a31c6a700bdf2cba928a5343027e1/XAttr.java
|
c60b7084d83c698254c404b67d2f6077f2bc9656
|
[] |
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
| 4,608
|
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.fs;
import java.util.Arrays;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.hadoop.classification.InterfaceAudience;
/**
* XAttr is the POSIX Extended Attribute model similar to that found in
* traditional Operating Systems. Extended Attributes consist of one
* or more name/value pairs associated with a file or directory. Four
* namespaces are defined: user, trusted, security and system.
* 1) USER namespace attributes may be used by any user to store
* arbitrary information. Access permissions in this namespace are
* defined by a file directory's permission bits.
* <br>
* 2) TRUSTED namespace attributes are only visible and accessible to
* privileged users (a file or directory's owner or the fs
* admin). This namespace is available from both user space
* (filesystem API) and fs kernel.
* <br>
* 3) SYSTEM namespace attributes are used by the fs kernel to store
* system objects. This namespace is only available in the fs
* kernel. It is not visible to users.
* <br>
* 4) SECURITY namespace attributes are used by the fs kernel for
* security features. It is not visible to users.
* <p/>
* @see <a href="http://en.wikipedia.org/wiki/Extended_file_attributes">
* http://en.wikipedia.org/wiki/Extended_file_attributes</a>
*
*/
@InterfaceAudience.Private
public class XAttr {
public static enum NameSpace {
USER,
TRUSTED,
SECURITY,
SYSTEM;
}
private final NameSpace ns;
private final String name;
private final byte[] value;
public static class Builder {
private NameSpace ns = NameSpace.USER;
private String name;
private byte[] value;
public Builder setNameSpace(NameSpace ns) {
this.ns = ns;
return this;
}
public Builder setName(String name) {
this.name = name;
return this;
}
public Builder setValue(byte[] value) {
this.value = value;
return this;
}
public XAttr build() {
return new XAttr(ns, name, value);
}
}
private XAttr(NameSpace ns, String name, byte[] value) {
this.ns = ns;
this.name = name;
this.value = value;
}
public NameSpace getNameSpace() {
return ns;
}
public String getName() {
return name;
}
public byte[] getValue() {
return value;
}
@Override
public int hashCode() {
return new HashCodeBuilder(811, 67)
.append(name)
.append(ns)
.append(value)
.toHashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) { return false; }
if (obj == this) { return true; }
if (obj.getClass() != getClass()) {
return false;
}
XAttr rhs = (XAttr) obj;
return new EqualsBuilder()
.append(ns, rhs.ns)
.append(name, rhs.name)
.append(value, rhs.value)
.isEquals();
}
/**
* Similar to {@link #equals(Object)}, except ignores the XAttr value.
*
* @param obj to compare equality
* @return if the XAttrs are equal, ignoring the XAttr value
*/
public boolean equalsIgnoreValue(Object obj) {
if (obj == null) { return false; }
if (obj == this) { return true; }
if (obj.getClass() != getClass()) {
return false;
}
XAttr rhs = (XAttr) obj;
return new EqualsBuilder()
.append(ns, rhs.ns)
.append(name, rhs.name)
.isEquals();
}
@Override
public String toString() {
return "XAttr [ns=" + ns + ", name=" + name + ", value="
+ Arrays.toString(value) + "]";
}
}
|
[
"archen94@gmail.com"
] |
archen94@gmail.com
|
66f8021469a1cb354a4cd357c9e55dade174a501
|
4e84c9dbc699cfdf090a2872a7e2bdf79b9dc971
|
/fanweHybridLive/src/main/java/com/fanwe/auction/model/MessageGetListDataModel.java
|
6dc81f275cf3faea7064eec3caa86245cadd1782
|
[] |
no_license
|
nickoo123/FanweLive11
|
d994f5b6d36a0dd7ac06858f8c78239bfca629a4
|
2cecccf5c6795c4492f6c9d213d6cf27b6188dd4
|
refs/heads/master
| 2023-03-19T18:17:29.493984
| 2020-03-20T08:50:41
| 2020-03-20T08:50:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 844
|
java
|
package com.fanwe.auction.model;
import com.fanwe.live.model.PageModel;
import java.util.List;
/**
* Created by Administrator on 2016/8/11.
*/
public class MessageGetListDataModel
{
private int rs_count;
private PageModel page;
private List<MessageGetListDataListItemModel> list;
public int getRs_count()
{
return rs_count;
}
public void setRs_count(int rs_count)
{
this.rs_count = rs_count;
}
public PageModel getPage()
{
return page;
}
public void setPage(PageModel page)
{
this.page = page;
}
public List<MessageGetListDataListItemModel> getList()
{
return list;
}
public void setList(List<MessageGetListDataListItemModel> list)
{
this.list = list;
}
}
|
[
"zq090428"
] |
zq090428
|
98b014449d176692f1d45cf71d00a610dd13120b
|
4e2f16f2904d75e55cce1b2cef54acf79aa21280
|
/gradle-experimental/src/main/java/com/android/build/gradle/managed/JsonConfigFile.java
|
f588b05b97531a6ead066d1d4215eb67ca17df51
|
[
"Apache-2.0"
] |
permissive
|
yuweiguocn/build-system
|
0e49a836728614efd30e9bae8c7e92b0d8371f2e
|
bc4c85f7b25770caa4c565176b8f92e1cdd9cf70
|
refs/heads/master
| 2020-09-21T16:20:14.670290
| 2019-11-29T12:07:13
| 2019-11-29T12:07:13
| 224,846,645
| 13
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,349
|
java
|
/*
* Copyright (C) 2015 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.android.build.gradle.managed;
import java.io.File;
import java.util.List;
import org.gradle.model.Managed;
/**
* Managed type for specifying a JSON configurations file.
*/
@Managed
public interface JsonConfigFile {
/**
* JSON data files for configuring the ExternalNativeComponentPlugin.
*/
List<File> getConfigs();
/**
* Command for generating a JSON data file.
*
* If a JSON data file is used to configure this plugin and the data file is generated from
* another program, the command to generate the data file can be specified such that it will be
* invoke by the generateBuildData task.
*/
String getCommand();
void setCommand(String command);
}
|
[
"yuweiguocn@gmail.com"
] |
yuweiguocn@gmail.com
|
4d9b9f599509bb9c0abd8d1c50eff7f4d667ab62
|
15b260ccada93e20bb696ae19b14ec62e78ed023
|
/v2/src/main/java/com/alipay/api/response/KoubeiMallScanpurchasePreorderCreateResponse.java
|
ed31b32528a479a77a84a5ca39fad05f426c9a76
|
[
"Apache-2.0"
] |
permissive
|
alipay/alipay-sdk-java-all
|
df461d00ead2be06d834c37ab1befa110736b5ab
|
8cd1750da98ce62dbc931ed437f6101684fbb66a
|
refs/heads/master
| 2023-08-27T03:59:06.566567
| 2023-08-22T14:54:57
| 2023-08-22T14:54:57
| 132,569,986
| 470
| 207
|
Apache-2.0
| 2022-12-25T07:37:40
| 2018-05-08T07:19:22
|
Java
|
UTF-8
|
Java
| false
| false
| 1,111
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: koubei.mall.scanpurchase.preorder.create response.
*
* @author auto create
* @since 1.0, 2023-05-30 20:37:50
*/
public class KoubeiMallScanpurchasePreorderCreateResponse extends AlipayResponse {
private static final long serialVersionUID = 2312948484567994498L;
/**
* 预订单编号
*/
@ApiField("advance_order_id")
private String advanceOrderId;
/**
* 二维码code
*/
@ApiField("qr_code")
private String qrCode;
/**
* 二维码链接地址
*/
@ApiField("qr_code_url")
private String qrCodeUrl;
public void setAdvanceOrderId(String advanceOrderId) {
this.advanceOrderId = advanceOrderId;
}
public String getAdvanceOrderId( ) {
return this.advanceOrderId;
}
public void setQrCode(String qrCode) {
this.qrCode = qrCode;
}
public String getQrCode( ) {
return this.qrCode;
}
public void setQrCodeUrl(String qrCodeUrl) {
this.qrCodeUrl = qrCodeUrl;
}
public String getQrCodeUrl( ) {
return this.qrCodeUrl;
}
}
|
[
"auto-publish"
] |
auto-publish
|
b0d1e17c3a0bda1c45d28f6f0b90071a20154cac
|
5fc707b4ef12826faca8ec1c580cb1dcf4cc7dc2
|
/news-master/service-provider-news/src/main/java/com/kanfa/news/info/biz/KpiTypeConfigBiz.java
|
3b30ce3cb47f46ee0a2901038f55b33ed8e8bf71
|
[] |
no_license
|
MavonCmc/wdw
|
06597b8aca4054ecc6be7d2062543311da2073c0
|
814911c723fe6a9a7cd2c13e968776ead71f1b1b
|
refs/heads/master
| 2023-03-15T14:49:46.993701
| 2018-08-29T08:34:42
| 2018-08-29T08:34:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 997
|
java
|
package com.kanfa.news.info.biz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kanfa.news.info.entity.KpiTypeConfig;
import com.kanfa.news.info.mapper.KpiTypeConfigMapper;
import com.kanfa.news.common.biz.BaseBiz;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
*
*
* @author chenjie
* @email chenjie@kanfanews.com
* @date 2018-04-03 16:37:55
*/
@Service
@Transactional(rollbackFor = Exception.class)
public class KpiTypeConfigBiz extends BaseBiz<KpiTypeConfigMapper,KpiTypeConfig> {
@Autowired
private KpiTypeConfigMapper kpiTypeConfigMapper;
public List<KpiTypeConfig> selectWorkTypeForLive(){
List<KpiTypeConfig> kpiTypeConfigs = kpiTypeConfigMapper.selectWorkTypeForLive();
return kpiTypeConfigs;
}
public List<KpiTypeConfig> selectWorkTypeForDemand(){
return kpiTypeConfigMapper.selectWorkTypeForDemand();
}
}
|
[
"wdw.ok@163.com"
] |
wdw.ok@163.com
|
6fc175f45fb7cbe529a870212d270f1318297e5b
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/jdbi/learning/7779/SqlStatements.java
|
2b8e9c5ec837e519e629a453aeeed2518138bc38
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,932
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jdbi.v3.core.statement;
import java.sql.SQLException;
import java.sql.Statement;
import java.time.temporal.ChronoUnit;
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import javax.annotation.Nullable;
import org.jdbi.v3.core.config.JdbiConfig;
import org.jdbi.v3.meta.Beta;
/**
* Configuration holder for {@link SqlStatement}s.
*/
public final class SqlStatements implements JdbiConfig<SqlStatements > {
private final Map<String, Object> attributes;
private TemplateEngine templateEngine;
private SqlParser sqlParser;
private SqlLogger sqlLogger;
private Integer queryTimeout;
private boolean allowUnusedBindings;
private final Collection<StatementCustomizer> customizers = new CopyOnWriteArrayList<>();
public SqlStatements() {
attributes = new ConcurrentHashMap<>();
templateEngine = new DefinedAttributeTemplateEngine();
sqlParser = new ColonPrefixSqlParser();
sqlLogger = SqlLogger.NOP_SQL_LOGGER;
queryTimeout = null;
}
private SqlStatements(SqlStatements that) {
this.attributes = new ConcurrentHashMap<>(that.attributes);
this.templateEngine = that.templateEngine;
this.sqlParser = that.sqlParser;
this.sqlLogger = that.sqlLogger;
this.queryTimeout = that.queryTimeout;
this.allowUnusedBindings = that.allowUnusedBindings;
this.customizers.addAll(that.customizers);
}
/**
* Define an attribute for {@link StatementContext} for statements executed by Jdbi.
*
* @param key the key for the attribute
* @param value the value for the attribute
* @return this
*/
public SqlStatements define(String key, Object value) {
if (value == null) {
attributes.remove(key);
} else {
attributes.put(key, value);
}
return this;
}
/**
* Defines attributes for each key/value pair in the Map.
*
* @param values map of attributes to define.
* @return this
*/
public SqlStatements defineMap(final Map<String, ?> values) {
if (values != null) {
attributes.putAll(values);
}
return this;
}
/**
* Obtain the value of an attribute
*
* @param key the name of the attribute
* @return the value of the attribute
*/
public Object getAttribute(String key) {
return attributes.get(key);
}
/**
* Returns the attributes which will be applied to {@link SqlStatement SQL statements} created by Jdbi.
*
* @return the defined attributes.
*/
public Map<String, Object> getAttributes() {
return attributes;
}
/**
* Provides a means for custom statement modification. Common customizations
* have their own methods, such as {@link Query#setMaxRows(int)}
*
* @param customizer instance to be used to customize a statement
* @return this
*/
public SqlStatements addCustomizer(final StatementCustomizer customizer) {
this.customizers.add(customizer);
return this;
}
/**
* @return the template engine which renders the SQL template prior to
* parsing parameters.
*/
public TemplateEngine getTemplateEngine() {
return templateEngine;
}
/**
* Sets the {@link TemplateEngine} used to render SQL for all
* {@link SqlStatement SQL statements} executed by Jdbi. The default
* engine replaces <code><name></code>-style tokens
* with attributes {@link StatementContext#define(String, Object) defined}
* on the statement context.
*
* @param templateEngine the new template engine.
* @return this
*/
public SqlStatements setTemplateEngine(TemplateEngine templateEngine) {
this.templateEngine = templateEngine;
return this;
}
public SqlParser getSqlParser() {
return sqlParser;
}
/**
* Sets the {@link SqlParser} used to parse parameters in SQL statements
* executed by Jdbi. The default parses colon-prefixed named parameter
* tokens, e.g. <code>:name</code>.
*
* @param sqlParser the new SQL parser.
* @return this
*/
public SqlStatements setSqlParser(SqlParser sqlParser) {
this.sqlParser = sqlParser;
return this;
}
/**
* @return the timing collector
*
* @deprecated use {@link #getSqlLogger} instead
*/
@Deprecated
public TimingCollector getTimingCollector() {
return (elapsed, ctx) -> sqlLogger.logAfterExecution(ctx);
}
/**
* Sets the {@link TimingCollector} used to collect timing about the {@link SqlStatement SQL statements} executed
* by Jdbi. The default collector does nothing.
*
* @deprecated use {@link #setSqlLogger} instead
* @param timingCollector the new timing collector
* @return this
*/
@Deprecated
public SqlStatements setTimingCollector(TimingCollector timingCollector) {
this.sqlLogger = timingCollector == null ? SqlLogger.NOP_SQL_LOGGER : new SqlLogger() {
@Override
public void logAfterExecution(StatementContext context) {
timingCollector.collect(context.getElapsedTime(ChronoUnit.NANOS), context);
}
};
return this;
}
public SqlLogger getSqlLogger() {
return sqlLogger;
}
public SqlStatements setSqlLogger(SqlLogger sqlLogger) {
this.sqlLogger = sqlLogger == null ? SqlLogger.NOP_SQL_LOGGER : sqlLogger;
return this;
}
@Beta
public Integer getQueryTimeout() {
return queryTimeout;
}
/**
* Jdbi does not implement its own timeout mechanism: it simply calls {@link java.sql.Statement#setQueryTimeout}, leaving timeout handling to your jdbc driver.
*
* @param seconds the time in seconds to wait for a query to complete; 0 to disable the timeout; null to leave it at defaults (i.e. Jdbi will not call {@code setQueryTimeout(int)})
*/
@Beta
public SqlStatements setQueryTimeout(@Nullable Integer seconds) {
if (seconds != null && seconds < 0) {
throw new IllegalArgumentException("queryTimeout must not be < 0");
}
this.queryTimeout = seconds;
return this;
}
public boolean isUnusedBindingAllowed() {
return allowUnusedBindings;
}
/**
* Sets whether or not an exception should be thrown when any arguments are given to a query but not actually used in it. Unused bindings tend to be bugs or oversights, but can also just be convenient. Defaults to false: unused bindings are not allowed.
*
* @see org.jdbi.v3.core.argument.Argument
*/
public SqlStatements setUnusedBindingAllowed(boolean allowUnusedBindings) {
this.allowUnusedBindings = allowUnusedBindings;
return this;
}
void customize(Statement statement) throws SQLException {
if (queryTimeout != null) {
statement.setQueryTimeout(queryTimeout);
}
}
@Override
public SqlStatements createCopy() {
return new SqlStatements(this);
}
Collection<StatementCustomizer> getCustomizers() {
return customizers;
}
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
8feb4f9798119680faf44641b6c23b45520f57aa
|
977e821ab3b45a90c315c673e8644709312d8e64
|
/marketplace/sla-core/sla-repository/src/main/java/eu/atos/sla/dao/jpa/TemplateDAOJpa.java
|
93c9a9a0fefc4ee28fa9c7d8d87b8ad9ad5ee661
|
[
"Apache-2.0"
] |
permissive
|
5GExchange/Marketplace
|
570143909c4777b7a7fd5d02ede176b3bce61814
|
ab35a8850df2d7603b3fe8209ebe6279c73d4afd
|
refs/heads/master
| 2021-01-12T12:21:03.116743
| 2018-10-07T11:53:43
| 2018-10-07T11:53:43
| 72,448,752
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,164
|
java
|
package eu.atos.sla.dao.jpa;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityNotFoundException;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import javax.persistence.TypedQuery;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import eu.atos.sla.dao.ITemplateDAO;
import eu.atos.sla.datamodel.ITemplate;
import eu.atos.sla.datamodel.bean.Template;
@Repository("TemplateRepository")
public class TemplateDAOJpa implements ITemplateDAO {
private static Logger logger = LoggerFactory.getLogger(TemplateDAOJpa.class);
private EntityManager entityManager;
@PersistenceContext(unitName = "slarepositoryDB")
public void setEntityManager(EntityManager entityManager) {
this.entityManager = entityManager;
}
public EntityManager getEntityManager() {
return entityManager;
}
@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
public Template getById(Long id) {
return entityManager.find(Template.class, id);
}
@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
public Template getByUuid(String uuid) {
try {
Query query = entityManager
.createNamedQuery(Template.QUERY_FIND_BY_UUID);
query.setParameter("uuid", uuid);
Template template = null;
template = (Template) query.getSingleResult();
return template;
} catch (NoResultException e) {
logger.debug("No Result found: " + e);
return null;
}
}
@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
public List<ITemplate> search(String providerId, String []serviceIds) {
TypedQuery<ITemplate> query = entityManager.createNamedQuery(
Template.QUERY_SEARCH, ITemplate.class);
query.setParameter("providerId", providerId);
query.setParameter("serviceIds", (serviceIds!=null)?Arrays.asList(serviceIds):null);
query.setParameter("flagServiceIds", (serviceIds!=null)?"flag":null);
logger.debug("providerId:{} - serviceIds:{}" , providerId, (serviceIds!=null)?Arrays.asList(serviceIds):null);
List<ITemplate> templates = new ArrayList<ITemplate>();
templates = (List<ITemplate>) query.getResultList();
if (templates != null) {
logger.debug("Number of templates:" + templates.size());
} else {
logger.debug("No Result found.");
}
return templates;
}
@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
public List<ITemplate> getByAgreement(String agreement) {
TypedQuery<ITemplate> query = entityManager.createNamedQuery(
Template.QUERY_FIND_BY_AGREEMENT, ITemplate.class);
query.setParameter("agreement", agreement);
List<ITemplate> templates = new ArrayList<ITemplate>();
templates = (List<ITemplate>) query.getResultList();
if (templates != null) {
logger.debug("Number of templates:" + templates.size());
} else {
logger.debug("No Result found.");
}
return templates;
}
@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
public List<ITemplate> getAll() {
TypedQuery<ITemplate> query = entityManager.createNamedQuery(
Template.QUERY_FIND_ALL, ITemplate.class);
List<ITemplate> templates = new ArrayList<ITemplate>();
templates = (List<ITemplate>) query.getResultList();
if (templates != null) {
logger.debug("Number of templates:" + templates.size());
} else {
logger.debug("No Result found.");
}
return templates;
}
@Override
@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
public ITemplate save(ITemplate template) {
logger.info("template.getUuid() "+template.getUuid());
entityManager.persist(template);
entityManager.flush();
return template;
}
@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
public boolean update(String uuid, ITemplate template) {
Template templateDB = null;
try {
Query query = entityManager.createNamedQuery(Template.QUERY_FIND_BY_UUID);
query.setParameter("uuid", uuid);
templateDB = (Template)query.getSingleResult();
} catch (NoResultException e) {
logger.debug("No Result found: " + e);
}
if (templateDB!=null){
template.setId(templateDB.getId());
logger.info("template to update with id"+template.getId());
entityManager.merge(template);
entityManager.flush();
}else
return false;
return true;
}
@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
public boolean delete(ITemplate template) {
try {
Template templateDeleted = entityManager.getReference(Template.class, template.getId());
entityManager.remove(templateDeleted);
entityManager.flush();
return true;
} catch (EntityNotFoundException e) {
logger.debug("Template[{}] not found", template.getId());
return false;
}
}
}
|
[
"javier.melian@atos.net"
] |
javier.melian@atos.net
|
536ca55f5ff2182208c6e9ae1859935aa18f2951
|
b91eb1725bff02300387c02d70e8017c587479ff
|
/src/main/java/edu/ucsf/rbvi/CyAnimator/internal/model/interpolators/CrossfadeCustomGraphicsProxy.java
|
8c494b42753a16c64efabde6ae4820a596e57156
|
[] |
no_license
|
RBVI/CyAnimator
|
23c0736b2ea7865931f598459cafa7b14149b25c
|
1db3bb36fc1e66aaf0ad8c0abdd1b20e90a48247
|
refs/heads/master
| 2021-01-19T19:31:14.289393
| 2020-03-03T19:30:26
| 2020-03-03T19:30:26
| 12,259,667
| 4
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,871
|
java
|
package edu.ucsf.rbvi.CyAnimator.internal.model.interpolators;
import java.awt.AlphaComposite;
import java.awt.Image;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.image.BufferedImage;
import java.awt.image.ImageObserver;
import java.awt.geom.AffineTransform;
import java.awt.geom.Rectangle2D;
import java.awt.geom.Rectangle2D.Float;
import java.awt.TexturePaint;
import java.io.File;
import java.util.Collections;
import java.util.List;
import javax.imageio.ImageIO;
import org.cytoscape.model.CyIdentifiable;
import org.cytoscape.view.model.CyNetworkView;
import org.cytoscape.view.model.View;
import org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer;
import org.cytoscape.view.presentation.customgraphics.CyCustomGraphics;
import org.cytoscape.view.presentation.customgraphics.ImageCustomGraphicLayer;
public class CrossfadeCustomGraphicsProxy implements CyCustomGraphics<BaseCustomGraphicsLayer> {
float step;
Boolean fadeIn;
Long id = null;
float fitRatio = 1.0f;
int width;
int height;
CyCustomGraphics<?> cgOne;
CyCustomGraphics<?> cgTwo;
public CrossfadeCustomGraphicsProxy(CyCustomGraphics<?> cgOne,
CyCustomGraphics<?> cgTwo, float step, Boolean fadeIn) {
this.cgOne = cgOne;
this.cgTwo = cgTwo;
this.step = step;
this.fadeIn = fadeIn;
}
@Override
public String getDisplayName() {return "Crossfade proxy";}
@Override
public void setDisplayName(String name) {}
@Override
public float getFitRatio() {return fitRatio;}
@Override
public void setFitRatio(float fitRatio) {this.fitRatio = fitRatio;}
@Override
public int getHeight() {return height;}
@Override
public void setHeight(int height) {this.height = height;}
@Override
public int getWidth() {return width;}
@Override
public void setWidth(int width) {this.width = width;}
@Override
public Long getIdentifier() {return id;}
@Override
public void setIdentifier(Long id) {this.id = id;}
@Override
public List<BaseCustomGraphicsLayer> getLayers(CyNetworkView networkView,
View<? extends CyIdentifiable> grView) {
List<?> layersOne = cgOne.getLayers(networkView, grView);
List<?> layersTwo = cgTwo.getLayers(networkView, grView);
if (layersOne == null || layersOne.size() == 0 || layersTwo == null || layersTwo.size() == 0)
return null;
CustomGraphicLayer l1 = (CustomGraphicLayer)layersOne.get(0);
CustomGraphicLayer l2 = (CustomGraphicLayer)layersTwo.get(0);
return Collections.singletonList(new BaseCustomGraphicsLayer(l1, l2, step, fadeIn));
}
@Override
public Image getRenderedImage() {
// System.out.println("CrossfadeCustomGraphics: "+this+" getRenderedImage");
// Thread.dumpStack();
return null;
}
@Override
public String toSerializableString() {
return null;
}
}
|
[
"scooter@cgl.ucsf.edu"
] |
scooter@cgl.ucsf.edu
|
990d27c665fd7452a87f73a09af26f305b6e6bd1
|
37ee3360bada6e36461fa4e2af51430383bf4e47
|
/ch09_prj2_AccountBalanceCalculator/test/SavingsAccountTest.java
|
53210372e1a82b2b22d75d09fc631e9fbfc6370f
|
[] |
no_license
|
sean-blessing/java-kroger
|
93e7551f5569ab0ff5b824fa40e2bfceb3cec047
|
1cc1d78e2b2ae1220042f61c788c1c67424cda8e
|
refs/heads/master
| 2020-04-07T14:12:46.040940
| 2018-11-20T19:05:52
| 2018-11-20T19:05:52
| 157,189,311
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 579
|
java
|
import static org.junit.Assert.*;
import org.junit.*;
public class SavingsAccountTest {
private SavingsAccount sa;
@Before
public void setup() {
sa = new SavingsAccount(1000.0,0.01);
}
@Test
public void addInterestTest() {
double balance = sa.getBalance();
double monthlyInterestRate = sa.getMonthlyInterestRate();
double expIntPmt = balance * monthlyInterestRate;
sa.applyInterestToBalance();
assertEquals(expIntPmt, sa.getMonthlyInterestPayment(), 0.0);
assertEquals(balance+expIntPmt, sa.getBalance(), 0.0);
}
}
|
[
"snblessing@gmail.com"
] |
snblessing@gmail.com
|
17eb0170b0a3c8286abc42219fc147b4aaef509b
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/iacservice-20210806/src/main/java/com/aliyun/iacservice20210806/models/DetachRabbitmqPublisherResponse.java
|
2fdc6a50be711ed0fce592eb48adf4168623cd9a
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 1,454
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.iacservice20210806.models;
import com.aliyun.tea.*;
public class DetachRabbitmqPublisherResponse extends TeaModel {
@NameInMap("headers")
@Validation(required = true)
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
@Validation(required = true)
public Integer statusCode;
@NameInMap("body")
@Validation(required = true)
public DetachRabbitmqPublisherResponseBody body;
public static DetachRabbitmqPublisherResponse build(java.util.Map<String, ?> map) throws Exception {
DetachRabbitmqPublisherResponse self = new DetachRabbitmqPublisherResponse();
return TeaModel.build(map, self);
}
public DetachRabbitmqPublisherResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public DetachRabbitmqPublisherResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public DetachRabbitmqPublisherResponse setBody(DetachRabbitmqPublisherResponseBody body) {
this.body = body;
return this;
}
public DetachRabbitmqPublisherResponseBody getBody() {
return this.body;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
60bc2f88fcf7ce13f82061336571327a487d3f7b
|
31f043184e2839ad5c3acbaf46eb1a26408d4296
|
/src/main/java/com/github/highcharts4gwt/model/highcharts/option/api/seriesarearange/HideHandler.java
|
9eba35c0a285ec00bbe08fc99bfce1f9205f30bb
|
[] |
no_license
|
highcharts4gwt/highchart-wrapper
|
52ffa84f2f441aa85de52adb3503266aec66e0ac
|
0a4278ddfa829998deb750de0a5bd635050b4430
|
refs/heads/master
| 2021-01-17T20:25:22.231745
| 2015-06-30T15:05:01
| 2015-06-30T15:05:01
| 24,794,406
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 244
|
java
|
package com.github.highcharts4gwt.model.highcharts.option.api.seriesarearange;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesarearange.HideEvent;
public interface HideHandler {
void onHide(HideEvent hideEvent);
}
|
[
"ronan.quillevere@gmail.com"
] |
ronan.quillevere@gmail.com
|
df8edac995119ac31c3625ad3e8eb239ee5b8ed6
|
e12b5a858c47f6d2569350a73f7440ebbf93117a
|
/osrs-script/src/main/java/com/palidinodh/osrsscript/incomingpacket/widget/QuestWidget.java
|
5e15a665a3713b6d392aa50ecc3cdf2dcb0b6670
|
[] |
no_license
|
sw130637/BattleScape-Server
|
287ade1cc49893ff2a0784a2b114cb162c26bb9a
|
4d83d24c64a0881c3309e5308fc744b20cc84615
|
refs/heads/master
| 2020-09-16T03:24:43.300718
| 2019-11-23T18:27:20
| 2019-11-23T18:27:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,426
|
java
|
package com.palidinodh.osrsscript.incomingpacket.widget;
import com.palidinodh.osrscore.io.incomingpacket.WidgetHandler;
import com.palidinodh.osrscore.io.cache.id.WidgetId;
import com.palidinodh.osrscore.model.player.AchievementDiary;
import com.palidinodh.osrscore.model.player.Player;
public class QuestWidget implements WidgetHandler {
@Override
public int[] getIds() {
return new int[] {WidgetId.QUEST_CONTAINER, WidgetId.QUEST, WidgetId.ACHIEVEMENT_DIARY};
}
@Override
public void execute(Player player, int option, int widgetId, int childId, int slot, int itemId) {
if (widgetId == WidgetId.QUEST_CONTAINER) {
if (childId == 3) {
player.getWidgetManager().sendQuestOverlay(WidgetId.QUEST);
} else if (childId == 4) {
player.getWidgetManager().sendQuestOverlay(WidgetId.ACHIEVEMENT_DIARY);
}
} else if (widgetId == WidgetId.ACHIEVEMENT_DIARY) {
if (player.isLocked()) {
return;
}
if (childId == 2) {
if (slot == 2) {
AchievementDiary.getDiary(AchievementDiary.Name.FALADOR).sendTaskList(player);
} /*
* else if (slot == 3) {
* AchievementDiary.getDiary(AchievementDiary.Name.WILDERNESS).sendTaskList(player); }
*/ else {
player.getGameEncoder().sendMessage("This diary is currently unavailable.");
}
}
}
}
}
|
[
"palidino@Daltons-MacBook-Air.local"
] |
palidino@Daltons-MacBook-Air.local
|
466bcb95d4c09f6fdbe1d671fcc2f29871b6c6aa
|
bb5d9acb1fe05868036e70ec48989cfccb890531
|
/admin-web/src/main/java/com/jasmine/crawler/web/admin/mapper/BlockRuleMapper.java
|
303356cf2b18a6d3c90026412399f7e628ff4aa2
|
[] |
no_license
|
anlei-fu/jasmine-crawler
|
0a46dc0daaa8197471f406be080e90dd2aec333b
|
af727fa68b651031cf8114bde6dbabc411419842
|
refs/heads/master
| 2022-12-28T15:18:47.997474
| 2020-10-11T12:51:49
| 2020-10-11T12:51:49
| 282,859,677
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 393
|
java
|
package com.jasmine.crawler.web.admin.mapper;
import com.jasmine.crawler.common.pojo.entity.BlockRule;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface BlockRuleMapper {
int add(BlockRule blockRule);
int delete(Integer id);
int deleteBatch(List<Integer> ids);
List<BlockRule> getByDownSystemSiteId(Integer downSystemSiteId);
}
|
[
"767550758@qq.com"
] |
767550758@qq.com
|
ea36b83d0cf9818669a95a9a9f4eaeddebc24573
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/16/16_3037b8b0916560aafd6ff10fc6005e5aff0603b6/BuilderMap/16_3037b8b0916560aafd6ff10fc6005e5aff0603b6_BuilderMap_s.java
|
bd58c4ba5fe1a48ba481e25bc6c8303faba32e96
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 5,256
|
java
|
package collections.builders;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* This {@code BuilderMap} can be used to quickly construct a map from another collection or as a base class to simplify
* building a map that self populate from a custom type.
* <p/>
* It is constructed with a {@link Builder} and an optional backing {@link Map}.
* <p/>
* The {@link Builder#build()} method must be implemented to provide the logic that will be used to build the keys and
* values that will be held within the map. The {@link Builder#build()} method will be repeatedly called until it
* returns {@code null}.
* <p/>
* The backing map is the actual collection that will hold the built keys and values. If no backing map is supplied then
* a {@link HashMap} will be used.
* <p/>
* Example:
* <code>
* Map<Integer, String> map = new HashMap<>();
* map.put(4, "four");
* map.put(5, "five");
* map.put(6, "six");
* <p/>
* final Iterator<String> numbers = Arrays.asList("one", "two", "three").iterator();
* <p/>
* Map<Integer, String> builderMap = new BuilderMap<>(new Builder<Entry<Integer, String>>() {
* <p/>
* private int i = 0;
*
* public Entry<Integer, String> build() {
* <p/>
* if (numbers.hasNext()) return new SimpleEntry<Integer, String>(++i, numbers.next());
* <p/>
* return null;
* }
* }, map); // {1=one, 2=two, 3=three, 4=four, 5=five, 6=six}
* </code>
*
* @param <K> the generic type of the maps keys.
* @param <V> the generic type of the maps values.
*/
public class BuilderMap<K, V> implements Map<K, V> {
private final Map<K, V> map;
/**
* Instantiate a new {@code BuilderMap} that will use the supplied {@link Builder} to build it's entries and the
* supplied backing {@link Map} to hold it's keys and values.
*
* @param builder the builder used to build the entries for the new map.
* @param map the map that will be used to hold the built keys and value.
*/
public BuilderMap(Builder<Entry<K, V>> builder, Map<K, V> map) {
if (null == builder) {
throw new IllegalArgumentException(getClass().getName() + "(Builder, Map) builder must not be null.");
}
if (null == map) {
throw new IllegalArgumentException(getClass().getName() + "(Builder, Map) map must not be null.");
}
this.map = map;
for (Entry<K, V> entry = builder.build(); null != entry; entry = builder.build()) {
this.map.put(entry.getKey(), entry.getValue());
}
}
/**
* Instantiate a new {@code BuilderMap} that will use the supplied {@link Builder} to build it's entries.
*
* @param builder the builder used to build the entries for the new map.
*/
public BuilderMap(Builder<Entry<K, V>> builder) {
this(builder, new HashMap<K, V>());
}
/**
* {@inheritDoc}
*/
@Override
public int size() {
return map.size();
}
/**
* {@inheritDoc}
*/
@Override
public boolean isEmpty() {
return map.isEmpty();
}
/**
* {@inheritDoc}
*/
@Override
public boolean containsKey(Object key) {
return map.containsKey(key);
}
/**
* {@inheritDoc}
*/
@Override
public boolean containsValue(Object value) {
return map.containsValue(value);
}
/**
* {@inheritDoc}
*/
@Override
public V get(Object key) {
return map.get(key);
}
/**
* {@inheritDoc}
*/
@Override
public V put(K key, V value) {
return map.put(key, value);
}
/**
* {@inheritDoc}
*/
@Override
public V remove(Object key) {
return map.remove(key);
}
/**
* {@inheritDoc}
*/
@Override
public void putAll(Map<? extends K, ? extends V> map) {
this.map.putAll(map);
}
/**
* {@inheritDoc}
*/
@Override
public void clear() {
map.clear();
}
/**
* {@inheritDoc}
*/
@Override
public Set<K> keySet() {
return map.keySet();
}
/**
* {@inheritDoc}
*/
@Override
public Collection<V> values() {
return map.values();
}
/**
* {@inheritDoc}
*/
@Override
public Set<Entry<K, V>> entrySet() {
return map.entrySet();
}
/**
* {@inheritDoc}
*/
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
BuilderMap that = (BuilderMap) o;
return map.equals(that.map);
}
/**
* {@inheritDoc}
*/
@Override
public int hashCode() {
return map.hashCode();
}
/**
* {@inheritDoc}
*/
@Override
public String toString() {
return map.toString();
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
8711ba389784ab20eef8424e8f4a04d995d844fb
|
d2ec57598c338498027c2ecbcbb8af675667596b
|
/src/myfaces-core-module-2.1.10/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/core/SetPropertyActionListenerHandler.java
|
9aaa83f1b3838bb2c5f350b70ebf732e14bf3d35
|
[
"Apache-2.0"
] |
permissive
|
JavaQualitasCorpus/myfaces_core-2.1.10
|
abf6152e3b26d905eff87f27109e9de1585073b5
|
10c9f2d038dd91c0b4f78ba9ad9ed44b20fb55c3
|
refs/heads/master
| 2023-08-12T09:29:23.551395
| 2020-06-02T18:06:36
| 2020-06-02T18:06:36
| 167,005,005
| 0
| 0
|
Apache-2.0
| 2022-07-01T21:24:07
| 2019-01-22T14:08:49
|
Java
|
UTF-8
|
Java
| false
| false
| 7,922
|
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.myfaces.view.facelets.tag.jsf.core;
import java.io.IOException;
import java.io.Serializable;
import javax.el.ELContext;
import javax.el.ELException;
import javax.el.ExpressionFactory;
import javax.el.ValueExpression;
import javax.faces.FacesException;
import javax.faces.component.ActionSource;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.event.AbortProcessingException;
import javax.faces.event.ActionEvent;
import javax.faces.event.ActionListener;
import javax.faces.view.ActionSource2AttachedObjectHandler;
import javax.faces.view.Location;
import javax.faces.view.facelets.ComponentHandler;
import javax.faces.view.facelets.FaceletContext;
import javax.faces.view.facelets.FaceletException;
import javax.faces.view.facelets.TagAttribute;
import javax.faces.view.facelets.TagConfig;
import javax.faces.view.facelets.TagException;
import javax.faces.view.facelets.TagHandler;
import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFFaceletAttribute;
import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFFaceletTag;
import org.apache.myfaces.view.facelets.FaceletCompositionContext;
import org.apache.myfaces.view.facelets.el.ContextAware;
import org.apache.myfaces.view.facelets.el.ContextAwareELException;
@JSFFaceletTag(
name = "f:setPropertyActionListener",
bodyContent = "empty",
tagClass="org.apache.myfaces.taglib.core.SetPropertyActionListenerTag")
public class SetPropertyActionListenerHandler extends TagHandler
implements ActionSource2AttachedObjectHandler
{
private final TagAttribute _target;
private final TagAttribute _value;
public SetPropertyActionListenerHandler(TagConfig config)
{
super(config);
this._value = this.getRequiredAttribute("value");
this._target = this.getRequiredAttribute("target");
}
public void apply(FaceletContext ctx, UIComponent parent)
throws IOException, FacesException, FaceletException, ELException
{
//Apply only if we are creating a new component
if (!ComponentHandler.isNew(parent))
{
return;
}
if (parent instanceof ActionSource)
{
applyAttachedObject(ctx.getFacesContext(), parent);
}
else if (UIComponent.isCompositeComponent(parent))
{
FaceletCompositionContext mctx = FaceletCompositionContext.getCurrentInstance(ctx);
mctx.addAttachedObjectHandler(parent, this);
}
else
{
throw new TagException(this.tag,
"Parent is not composite component or of type ActionSource, type is: " + parent);
}
}
private static class SetPropertyListener implements ActionListener, Serializable
{
private ValueExpression _target;
private ValueExpression _value;
public SetPropertyListener()
{
};
public SetPropertyListener(ValueExpression value, ValueExpression target)
{
_value = value;
_target = target;
}
public void processAction(ActionEvent evt) throws AbortProcessingException
{
FacesContext facesContext = FacesContext.getCurrentInstance();
ELContext elContext = facesContext.getELContext();
// Spec f:setPropertyActionListener:
// Call getValue() on the "value" ValueExpression.
Object value = _value.getValue(elContext);
// If value of the "value" expression is null, call setValue() on the "target" ValueExpression with the null
// If the value of the "value" expression is not null, call getType()on the "value" and "target"
// ValueExpressions to determine their property types.
if (value != null)
{
Class<?> targetType = _target.getType(elContext);
// Spec says: "all getType() on the "value" to determine property type" but it is not necessary
// beacuse type we have objValue already
// Coerce the value of the "value" expression to
// the "target" expression value type following the Expression
// Language coercion rules.
ExpressionFactory expressionFactory = facesContext.getApplication().getExpressionFactory();
try
{
value = expressionFactory.coerceToType(value, targetType);
}
catch (ELException e)
{
// Happens when type of attribute "value" is not convertible to type of attribute "target"
// by EL coercion rules.
// For example: value="#{10}" target="#{bean.booleanProperty}"
// In this case is not sure if problematic attribute is "value" or "target". But EL
// impls say:
// JUEL: "Cannot coerce from class java.lang.Long to class java.lang.Boolean"
// Tomcat EL: Cannot convert 10 of type class java.long.Long to class java.lang.Boolean
// Thus we report "value" attribute as exception source - that should be enough for user
// to solve the problem.
Location location = null;
// Wrapping of ValueExpressions to org.apache.myfaces.view.facelets.el.ContextAware
// can be disabled:
if (_value instanceof ContextAware)
{
ContextAware contextAware = (ContextAware) _value;
location = contextAware.getLocation();
}
throw new ContextAwareELException(location,
_value.getExpressionString(), "value", e);
}
}
// Call setValue()on the "target" ValueExpression with the resulting value.
_target.setValue(elContext, value);
}
}
public void applyAttachedObject(FacesContext context, UIComponent parent)
{
// Retrieve the current FaceletContext from FacesContext object
FaceletContext faceletContext = (FaceletContext) context.getAttributes().get(
FaceletContext.FACELET_CONTEXT_KEY);
ActionSource src = (ActionSource) parent;
ValueExpression valueExpr = _value.getValueExpression(faceletContext, Object.class);
ValueExpression targetExpr = _target.getValueExpression(faceletContext, Object.class);
src.addActionListener(new SetPropertyListener(valueExpr, targetExpr));
}
/**
* TODO: Document me!
*/
@JSFFaceletAttribute
public String getFor()
{
TagAttribute forAttribute = getAttribute("for");
if (forAttribute == null)
{
return null;
}
else
{
return forAttribute.getValue();
}
}
}
|
[
"taibi@sonar-scheduler.rd.tut.fi"
] |
taibi@sonar-scheduler.rd.tut.fi
|
2b1f35850f1c911e98e55350db23160a77398026
|
da240aa08f3c0602ea56424b767cb81b71cad056
|
/src/com/emplog/action/emp/SaveEmpViewAction.java
|
242975fdf671bda0ca97f48af5f3978ce988629d
|
[] |
no_license
|
lookskystar/empLogPro
|
e6c4ab72983fcb08cf14c6baf2453b5131cb1c69
|
b2ecd449825c87779d5e9611c524b1a0457a53a8
|
refs/heads/master
| 2021-01-10T08:16:51.897287
| 2016-03-17T05:25:57
| 2016-03-17T05:25:57
| 54,082,874
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 568
|
java
|
package com.emplog.action.emp;
import java.util.Map;
import com.emplog.service.DepService;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
public class SaveEmpViewAction extends ActionSupport {
private DepService service;
public void setService(DepService service) {
this.service = service;
}
@Override
public String execute() throws Exception {
Map request=(Map)ActionContext.getContext().get("request");
request.put("list", this.service.findAllDep());
return SUCCESS;
}
}
|
[
"lookskystar@163.com"
] |
lookskystar@163.com
|
d035248fd06c6b2d25897d567b5d8b50da848d56
|
60386d67d984f99c518414d6e12458eb710b0026
|
/src/main/java/com/easylinker/iot/v2/except/framework/SpringBootException.java
|
3098adf58277954907f5da0ab3263c9a2a424eec
|
[] |
no_license
|
wanglanfeng/easylinker2
|
2c26204b5e7d0daae3ef49080088fb945972c29a
|
10dadd97ac695bb330ae49eeccd128934f8fe818
|
refs/heads/master
| 2021-01-25T12:42:23.885633
| 2018-01-17T15:42:43
| 2018-01-17T15:42:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 129
|
java
|
package com.easylinker.iot.v2.except.framework;
/**
* Created by wwhai on 2017/11/16.
*/
public class SpringBootException {
}
|
[
"751957846@qq.com"
] |
751957846@qq.com
|
5480d104ed6bc1d901963261d078b545bbae6c45
|
42786befcc2abf65082812618f1bb8596c7fb7e4
|
/src/main/java/jpuppeteer/cdp/client/entity/overlay/FlexNodeHighlightConfig.java
|
48a2ee6043d4f8228722df632abd0a88a92a82ce
|
[
"Apache-2.0"
] |
permissive
|
sunshinex/jpuppeteer
|
3e30fcd434d7ddedabd0d9eeb35620707cd5bd87
|
0b60d1800e31decf309311671ee5f9262ea22ca5
|
refs/heads/2.0
| 2023-07-20T14:27:19.565745
| 2023-07-12T17:32:48
| 2023-07-12T17:32:48
| 203,903,640
| 33
| 7
|
Apache-2.0
| 2023-07-12T17:34:26
| 2019-08-23T01:49:32
|
Java
|
UTF-8
|
Java
| false
| false
| 1,243
|
java
|
package jpuppeteer.cdp.client.entity.overlay;
/**
* experimental
*/
public class FlexNodeHighlightConfig {
/**
* A descriptor for the highlight appearance of flex containers.
*/
private jpuppeteer.cdp.client.entity.overlay.FlexContainerHighlightConfig flexContainerHighlightConfig;
/**
* Identifier of the node to highlight.
*/
private Integer nodeId;
public void setFlexContainerHighlightConfig (jpuppeteer.cdp.client.entity.overlay.FlexContainerHighlightConfig flexContainerHighlightConfig) {
this.flexContainerHighlightConfig = flexContainerHighlightConfig;
}
public jpuppeteer.cdp.client.entity.overlay.FlexContainerHighlightConfig getFlexContainerHighlightConfig() {
return this.flexContainerHighlightConfig;
}
public void setNodeId (Integer nodeId) {
this.nodeId = nodeId;
}
public Integer getNodeId() {
return this.nodeId;
}
public FlexNodeHighlightConfig(jpuppeteer.cdp.client.entity.overlay.FlexContainerHighlightConfig flexContainerHighlightConfig, Integer nodeId) {
this.flexContainerHighlightConfig = flexContainerHighlightConfig;
this.nodeId = nodeId;
}
public FlexNodeHighlightConfig() {
}
}
|
[
"jarvis.xu@vipshop.com"
] |
jarvis.xu@vipshop.com
|
c3b51f42a3e55080778b0750c89c91aab50afbb6
|
3f5d19ac4afb5ce1d38df0aa6638e18103f468e0
|
/com.revolsys.open.gis.oracle/src/main/java/com/revolsys/gis/oracle/io/OracleBlobFieldAdder.java
|
a9930adf6b134f52e4a483db2b9283536efcc886
|
[
"Apache-2.0"
] |
permissive
|
lequynhnhu/com.revolsys.open
|
e94a25a8a127f5315a10aad32da6776407857e60
|
d660384b05a402fb4b62d30d1592563c74ae8df5
|
refs/heads/master
| 2020-12-25T03:39:55.125381
| 2015-02-21T01:18:19
| 2015-02-21T01:18:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 800
|
java
|
package com.revolsys.gis.oracle.io;
import com.revolsys.data.record.schema.FieldDefinition;
import com.revolsys.data.record.schema.RecordDefinitionImpl;
import com.revolsys.jdbc.attribute.JdbcFieldAdder;
public class OracleBlobFieldAdder extends JdbcFieldAdder {
public OracleBlobFieldAdder() {
}
@Override
public FieldDefinition addField(final RecordDefinitionImpl recordDefinition,
final String dbName, final String name, final String dataTypeName,
final int sqlType, final int length, final int scale,
final boolean required, final String description) {
final OracleJdbcBlobFieldDefinition attribute = new OracleJdbcBlobFieldDefinition(
dbName, name, sqlType, length, required, description);
recordDefinition.addField(attribute);
return attribute;
}
}
|
[
"paul.austin@revolsys.com"
] |
paul.austin@revolsys.com
|
07bb3c0ec787a08becaabac2e93e471b11a1c184
|
aaac30301a5b18e8b930d9932a5e11d514924c7e
|
/framework/spring-boot/ssmboot/src/main/java/com/woniuxy/boot/ssmboot/controller/PigController.java
|
92aed34b41a0bf99d77c4fbf3907476a3aedb367
|
[] |
no_license
|
stickgoal/trainning
|
9206e30fc0b17c817c5826a6e212ad25a3b9d8a6
|
58348f8a3d21e91cad54d0084078129e788ea1f4
|
refs/heads/master
| 2023-03-14T12:29:11.508957
| 2022-12-01T09:17:50
| 2022-12-01T09:17:50
| 91,793,279
| 1
| 0
| null | 2023-02-22T06:55:38
| 2017-05-19T10:06:01
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 681
|
java
|
package com.woniuxy.boot.ssmboot.controller;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 前端控制器
* </p>
*
* @author Lucas
* @since 2019-11-12
*/
@RestController
@RequestMapping("/ssmboot/pig")
public class PigController {
// @RequiresRoles("president")
@RequiresPermissions("dismiss")
@GetMapping("getData")
public String getData(){
return "one pink pig";
}
}
|
[
"stick.goal@163.com"
] |
stick.goal@163.com
|
e5bb4d605d8377bec7be02172a85f45bd56f4935
|
51892a18345ad84ccd1424c581da101e9b27f22c
|
/ex03/src/main/java/main/MainForSpring2.java
|
8c6e0d84d41ff10558a843a100b12fac31294f94
|
[] |
no_license
|
nekisse-lee/spring4-intellij
|
733298f3896236d7571d4d523694bd3ea3ccceb3
|
3b2c055fe7f2f1d6088f2906ae74bc66cfbebac4
|
refs/heads/master
| 2021-10-22T00:24:20.199049
| 2019-03-07T08:53:44
| 2019-03-07T08:53:44
| 110,520,828
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,490
|
java
|
package main;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;
import spring.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class MainForSpring2 {
private static ApplicationContext ctx = null;
public static void main(String[] args) throws IOException {
// ctx = new GenericXmlApplicationContext("classpath:appCtx2.xml");
//두개 이상의 설정파일 사용
// String[] conf = {"classpath:conf1.xml", "classpath:conf2.xml"};
String[] conf = {"classpath:configImport.xml"};
ctx = new GenericXmlApplicationContext(conf);
// ctx = new GenericXmlApplicationContext("classpath:conf1.xml", "classpath:conf2.xml")
BufferedReader reader =
new BufferedReader(new InputStreamReader(System.in));
while (true) {
System.out.println("명령어를 입력");
String command = reader.readLine();
if (command.equalsIgnoreCase("exit")) {
System.out.println("종료합니다.");
break;
}
if (command.startsWith("new")) {
processNewCommand(command.split(" "));
continue;
} else if (command.startsWith("change")) {
processChangeCommand(command.split(" "));
continue;
} else if (command.startsWith("list")) {
processListCommand();
continue;
} else if (command.startsWith("info ")) {
processInfoCommand(command.split(" "));
continue;
} else if (command.startsWith("version")) {
processVersionCommand();
continue;
}
printHelp();
}
}
private static void processNewCommand(String[] arg) {
if (arg.length != 5) {
printHelp();
return;
}
MemberRegisterService regSvc =
ctx.getBean("memberRegSvc", MemberRegisterService.class);
RegisterRequest req = new RegisterRequest();
req.setEmail(arg[1]);
req.setName(arg[2]);
req.setPassword(arg[3]);
req.setConfirmPassword(arg[4]);
if (!req.isPasswordEqualToConfirmPassword()) {
System.out.println("암호와 확인이 일치하지 않습니다.\n");
return;
}
try {
regSvc.regist(req);
System.out.println("등록.\n");
} catch (AlreadyExistingMemberException e) {
System.out.println("이미 존재하는 이메일 .\n");
}
}
private static void processChangeCommand(String[] arg) {
if (arg.length != 4) {
printHelp();
return;
}
ChangePasswordService changePwdSvc =
ctx.getBean("changePwdSvc", ChangePasswordService.class);
try {
changePwdSvc.changePassword(arg[1], arg[2], arg[3]);
System.out.println("암호를 변경.\n");
} catch (MemberNotFoundException e) {
System.out.println("존재하지 않는 이메읿 .\n");
} catch (IdPasswordNotMatchingException e) {
System.out.println("이메일과 암호가 일치하지 않습니다.\n");
}
}
private static void processListCommand() {
MemberListPrinter listPrinter =
ctx.getBean("listPrinter", MemberListPrinter.class);
listPrinter.printAll();
}
private static void processInfoCommand(String[] arg) {
if (arg.length != 2) {
printHelp();
return;
}
MemberInfoPrinter infoPrinter =
ctx.getBean("infoPrinter", MemberInfoPrinter.class);
infoPrinter.printMemberInfo(arg[1]);
}
private static void processVersionCommand() {
VersionPrinter versionPrinter =
ctx.getBean("versionPrinter", VersionPrinter.class);
versionPrinter.print();
}
private static void printHelp(){
System.out.println();
System.out.println("잘못된 명령. 아래 명령어 사용법을 확인.");
System.out.println("명령어 사용법:");
System.out.println("new 이메일 이름 암호 암호확인");
System.out.println("change 이메일 현재비번 변경비번 ");
System.out.println();
}
}
|
[
"lsh891224@gmail.com"
] |
lsh891224@gmail.com
|
355e305dcf1e8cc24e691a068244bb933c18636d
|
ecc661f2a8b336e976041073310316559238aceb
|
/06022016/AndroidPlayground/android/support/v4/media/routing/MediaRouterJellybeanMr1.java
|
cd2f44cc16ca79a8aa15f80f4cb1b194d6f49536
|
[] |
no_license
|
dinghu/Zhong-Lin
|
a0030b575ef5cfbc74bc741563115abdb9a468d6
|
81e9f97c4108f2dbcc6069fca01fd2213f3ceb22
|
refs/heads/master
| 2021-01-13T04:58:48.163719
| 2016-07-01T23:21:23
| 2016-07-01T23:21:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,421
|
java
|
package android.support.v4.media.routing;
import android.content.Context;
import android.hardware.display.DisplayManager;
import android.media.MediaRouter;
import android.media.MediaRouter.RouteInfo;
import android.os.Build.VERSION;
import android.os.Handler;
import android.util.Log;
import android.view.Display;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
class MediaRouterJellybeanMr1
extends MediaRouterJellybean
{
private static final String TAG = "MediaRouterJellybeanMr1";
public static Object createCallback(Callback paramCallback)
{
return new CallbackProxy(paramCallback);
}
public static final class ActiveScanWorkaround
implements Runnable
{
private static final int WIFI_DISPLAY_SCAN_INTERVAL = 15000;
private boolean mActivelyScanningWifiDisplays;
private final DisplayManager mDisplayManager;
private final Handler mHandler;
private Method mScanWifiDisplaysMethod;
public ActiveScanWorkaround(Context paramContext, Handler paramHandler)
{
if (Build.VERSION.SDK_INT != 17) {
throw new UnsupportedOperationException();
}
this.mDisplayManager = ((DisplayManager)paramContext.getSystemService("display"));
this.mHandler = paramHandler;
try
{
this.mScanWifiDisplaysMethod = DisplayManager.class.getMethod("scanWifiDisplays", new Class[0]);
return;
}
catch (NoSuchMethodException paramContext) {}
}
public void run()
{
if (this.mActivelyScanningWifiDisplays) {}
try
{
this.mScanWifiDisplaysMethod.invoke(this.mDisplayManager, new Object[0]);
this.mHandler.postDelayed(this, 15000L);
return;
}
catch (IllegalAccessException localIllegalAccessException)
{
for (;;)
{
Log.w("MediaRouterJellybeanMr1", "Cannot scan for wifi displays.", localIllegalAccessException);
}
}
catch (InvocationTargetException localInvocationTargetException)
{
for (;;)
{
Log.w("MediaRouterJellybeanMr1", "Cannot scan for wifi displays.", localInvocationTargetException);
}
}
}
public void setActiveScanRouteTypes(int paramInt)
{
if ((paramInt & 0x2) != 0) {
if (!this.mActivelyScanningWifiDisplays)
{
if (this.mScanWifiDisplaysMethod == null) {
break label35;
}
this.mActivelyScanningWifiDisplays = true;
this.mHandler.post(this);
}
}
label35:
while (!this.mActivelyScanningWifiDisplays)
{
return;
Log.w("MediaRouterJellybeanMr1", "Cannot scan for wifi displays because the DisplayManager.scanWifiDisplays() method is not available on this device.");
return;
}
this.mActivelyScanningWifiDisplays = false;
this.mHandler.removeCallbacks(this);
}
}
public static abstract interface Callback
extends MediaRouterJellybean.Callback
{
public abstract void onRoutePresentationDisplayChanged(Object paramObject);
}
static class CallbackProxy<T extends MediaRouterJellybeanMr1.Callback>
extends MediaRouterJellybean.CallbackProxy<T>
{
public CallbackProxy(T paramT)
{
super();
}
public void onRoutePresentationDisplayChanged(MediaRouter paramMediaRouter, MediaRouter.RouteInfo paramRouteInfo)
{
((MediaRouterJellybeanMr1.Callback)this.mCallback).onRoutePresentationDisplayChanged(paramRouteInfo);
}
}
public static final class IsConnectingWorkaround
{
private Method mGetStatusCodeMethod;
private int mStatusConnecting;
public IsConnectingWorkaround()
{
if (Build.VERSION.SDK_INT != 17) {
throw new UnsupportedOperationException();
}
try
{
this.mStatusConnecting = MediaRouter.RouteInfo.class.getField("STATUS_CONNECTING").getInt(null);
this.mGetStatusCodeMethod = MediaRouter.RouteInfo.class.getMethod("getStatusCode", new Class[0]);
return;
}
catch (IllegalAccessException localIllegalAccessException) {}catch (NoSuchMethodException localNoSuchMethodException) {}catch (NoSuchFieldException localNoSuchFieldException) {}
}
public boolean isConnecting(Object paramObject)
{
paramObject = (MediaRouter.RouteInfo)paramObject;
if (this.mGetStatusCodeMethod != null) {}
try
{
int i = ((Integer)this.mGetStatusCodeMethod.invoke(paramObject, new Object[0])).intValue();
int j = this.mStatusConnecting;
return i == j;
}
catch (InvocationTargetException paramObject)
{
return false;
}
catch (IllegalAccessException paramObject)
{
for (;;) {}
}
}
}
public static final class RouteInfo
{
public static Display getPresentationDisplay(Object paramObject)
{
return ((MediaRouter.RouteInfo)paramObject).getPresentationDisplay();
}
public static boolean isEnabled(Object paramObject)
{
return ((MediaRouter.RouteInfo)paramObject).isEnabled();
}
}
}
/* Location: C:\playground\dex2jar-2.0\dex2jar-2.0\classes-dex2jar.jar!\android\support\v4\media\routing\MediaRouterJellybeanMr1.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"zhonglin@alien"
] |
zhonglin@alien
|
646c273d5798ab855219fc6f25136722d248968f
|
ee4cbc27087d3b7f4da7de2a36c39a2ebf381f79
|
/eis-yqfs-parent/eis-yqfs-master/src/main/java/com/prolog/eis/service/pointlocation/IPointLocationService.java
|
37399fe5cb150601756a88f6b960a7f6b0b51b4a
|
[] |
no_license
|
Chaussure-org/eis-yq-plg
|
161126bd784095bb5eb4b45ae581439169fa0e38
|
19313dbbc74fbe79e38f35594ee5a5b3dc26b3cb
|
refs/heads/master
| 2023-01-02T08:27:57.747759
| 2020-10-19T07:22:52
| 2020-10-19T07:22:52
| 305,276,116
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 785
|
java
|
package com.prolog.eis.service.pointlocation;
import com.prolog.eis.model.point.PointLocation;
import com.sun.javafx.collections.MappingChange;
import java.util.List;
import java.util.Map;
public interface IPointLocationService {
PointLocation getPoint(String pointId);
List<PointLocation> getPointByStation(int stationId);
List<PointLocation> getPointByStation(int stationId,int pointType);
List<PointLocation> getPointByType(int pointType);
List<PointLocation> findByMap(Map map);
void add(PointLocation pointLocation) throws Exception;
void addBath(List<PointLocation> pointLocations) throws Exception;
void update(PointLocation pointLocation) throws Exception;
void delete(String pointId);
void deleteAll();
long getTotalCount();
}
|
[
"chaussure@qq.com"
] |
chaussure@qq.com
|
6ee7f4df3b6946f0494f71e09f6866833c9e510b
|
d800d32081cf72de93cd350d8724a88685ff50e7
|
/src/com/aliasi/symbol/SymbolTable.java
|
d700a2720c2d9ee5af4f7da87e4844736c502f89
|
[] |
no_license
|
Spirit-Dongdong/NLP-learn
|
584615b4806ca71a41cda5b6ce11eb569f2e0137
|
96fec17c87d28442e6be32e014194a19c443abc5
|
refs/heads/master
| 2016-09-06T16:33:47.539877
| 2013-12-12T03:09:22
| 2013-12-12T03:09:22
| 13,031,595
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,808
|
java
|
/*
* LingPipe v. 3.9
* Copyright (C) 2003-2010 Alias-i
*
* This program is licensed under the Alias-i Royalty Free License
* Version 1 WITHOUT ANY WARRANTY, without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Alias-i
* Royalty Free License Version 1 for more details.
*
* You should have received a copy of the Alias-i Royalty Free License
* Version 1 along with this program; if not, visit
* http://alias-i.com/lingpipe/licenses/lingpipe-license-1.txt or contact
* Alias-i, Inc. at 181 North 11th Street, Suite 401, Brooklyn, NY 11211,
* +1 (718) 290-9170.
*/
package com.aliasi.symbol;
/**
* Interface mapping symbols as strings to integer identifiers and
* vice-versa. In addition to the mapping, the symbol table provides
* interfaces for optional operations of removing a symbol or clearing
* the entire symbol, as well as adding a symbol to the table.
*
* @author Bob Carpenter
* @version 2.0
* @since LingPipe1.0
*/
public interface SymbolTable {
/**
* Return the identifier corresponding to the specified symbol,
* <code>-1</code> if the symbol does not exist. The constant
* <code>-1</code> is available as the value of {@link
* #UNKNOWN_SYMBOL_ID}.
*
* @param symbol Symbol whose identifier is returned.
* @return Identifier corresponding to specified symbol or
* <code>-1</code> if the symbol does not exist.
*/
public int symbolToID(String symbol);
/**
* Return the symbol corresponding to the specified identifier.
* Symbols exist for identifiers between <code>0</code> and the
* number of symbols in the table minus one, inclusive. Raises an
* index out of bounds exception for identifiers out of range.
*
* @param id Identifier whose symbol is returned.
* @return Symbol corresponding to the specified identifier.
* @throws IndexOutOfBoundsException If there is no symbol for the
* specified identifier.
*/
public String idToSymbol(int id);
/**
* Returns the number of symbols in this symbol table.
*
* @return Number of symbols in this table.
*/
public int numSymbols();
/**
* Returns the identifier for the specified symbol. If
* the symbol is not in the table before the call to this
* method, it is added and its identifier returned. Optional
* operation.
*
* @param symbol Symbol whose identifier is returned.
* @return Integer identifier for specified symbol.
* @throws UnsupportedOperationException If this operation is not
* supproted.
*/
public int getOrAddSymbol(String symbol);
/**
* Removes the specified symbol from the symbol table if
* it was in the table and returns its identifier. If the
* symbol was not in the table, <code>-1</code>, or
* {@link #UNKNOWN_SYMBOL_ID} is returned. Optional operation.
*
* @param symbol Symbol to remove.
* @return Previous identifier for the symbol, or
* <code>-1</code> if it didn't exist.
* @throws UnsupportedOperationException If this operation is
* not supported by this implementation.
*/
public int removeSymbol(String symbol);
/**
* Removes all the symbols from the symbol table.
*
* <P>If an implementing class does not allow removal, it may
* throw an unsupported operation exception for this method.
* OPtional operationl.
*
* @throws UnsupportedOperationException If this operation is
* not supported by this implementation.
*/
public void clear();
/**
* The value returned for a symbol that is not in
* the symbol table, namely <code>-1</code>.
*/
public static final int UNKNOWN_SYMBOL_ID = -1;
}
|
[
"spirit.dongdong@gmail.com"
] |
spirit.dongdong@gmail.com
|
ac08d9e2cfb9dfbb2ec99dc4328d1d99e82b3d14
|
76f3f97eea31c6993b2d9ab2739e8858d8a3fe6e
|
/consumer/src/main/java/com/xzxx/decorate/o2o/requests/order/OrderComplainRequest.java
|
a325cd12c1166da93c3bba156e5fdd7ff11c24b9
|
[] |
no_license
|
shanghaif/o2o-android-app
|
4309dc88047ca16c7ae0bc2477e420070bcb486a
|
a883287a00d91c62eee4d7d5847b544828402973
|
refs/heads/master
| 2022-03-04T08:35:58.649521
| 2019-11-04T07:40:35
| 2019-11-04T07:42:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 559
|
java
|
package com.xzxx.decorate.o2o.requests.order;
import com.kiun.modelcommonsupport.network.MCBaseRequest;
import java.util.List;
/**
* Created by kiun_2007 on 2018/8/8.
* 投诉请求.
*/
public class OrderComplainRequest extends MCBaseRequest {
/**
投诉内容.
*/
public String compainContent;
/**
投诉类型.
*/
public String compainType;
/**
投诉文件.
*/
public List orderFiles;
/**
订单id,.
*/
public String orderId;
@Override
public String requestPath() {
return "order/customer/orderComplain";
}
}
|
[
"kiun_2007@aliyun.com"
] |
kiun_2007@aliyun.com
|
2638868d81689b4f1c0e117d4bbc3586f0b0577a
|
689cdf772da9f871beee7099ab21cd244005bfb2
|
/classes/com/tencent/avsdkhost/widget/ChatInputViewHost$SizeChange.java
|
9cb0999d2c1a756ee981bc7cb0ed689f3691eaa8
|
[] |
no_license
|
waterwitness/dazhihui
|
9353fd5e22821cb5026921ce22d02ca53af381dc
|
ad1f5a966ddd92bc2ac8c886eb2060d20cf610b3
|
refs/heads/master
| 2020-05-29T08:54:50.751842
| 2016-10-08T08:09:46
| 2016-10-08T08:09:46
| 70,314,359
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 371
|
java
|
package com.tencent.avsdkhost.widget;
public abstract interface ChatInputViewHost$SizeChange
{
public abstract void onSizeChange(boolean paramBoolean, int paramInt);
}
/* Location: E:\apk\dazhihui2\classes-dex2jar.jar!\com\tencent\avsdkhost\widget\ChatInputViewHost$SizeChange.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
a151c51170278e22b55f76cc46cbd3de785bbf8a
|
4ec3bf36837420a2cb84bec4adb772d2664f6e92
|
/FrameworkDartesESP_alunosSDIS/brokerOM2M/org.eclipse.om2m/org.eclipse.om2m.commons/src/main/java/org/eclipse/om2m/commons/resource/flexcontainerspec/DeviceContactDetectorFlexContainerAnnc.java
|
cfb8d58be73609b1bf29e01bec67034d3ca1bb6d
|
[] |
no_license
|
BaltasarAroso/SDIS_OM2M
|
1f2ce310b3c1bf64c2a95ad9d236c64bf672abb0
|
618fdb4da1aba5621a85e49dae0442cafef5ca31
|
refs/heads/master
| 2020-04-08T19:08:22.073674
| 2019-01-20T15:42:48
| 2019-01-20T15:42:48
| 159,641,777
| 0
| 2
| null | 2020-03-06T15:49:51
| 2018-11-29T09:35:02
|
C
|
UTF-8
|
Java
| false
| false
| 3,162
|
java
|
/*
********************************************************************************
* Copyright (c) 2014, 2017 Orange.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
********************************************************************************
Device : DeviceContactDetectorAnnc
A ContactDetector is a device that trigger alarm when contact is lost.
Created: 2017-09-28 17:26:40
*/
package org.eclipse.om2m.commons.resource.flexcontainerspec;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.eclipse.om2m.commons.resource.AbstractFlexContainer;
import org.eclipse.om2m.commons.resource.AbstractFlexContainerAnnc;
@XmlRootElement(name = DeviceContactDetectorFlexContainerAnnc.SHORT_NAME, namespace = "http://www.onem2m.org/xml/protocols/homedomain")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = DeviceContactDetectorFlexContainerAnnc.SHORT_NAME, namespace = "http://www.onem2m.org/xml/protocols/homedomain")
public class DeviceContactDetectorFlexContainerAnnc extends AbstractFlexContainerAnnc {
public static final String LONG_NAME = "deviceContactDetectorAnnc";
public static final String SHORT_NAME = "deCDrAnnc";
public DeviceContactDetectorFlexContainerAnnc () {
setContainerDefinition("org.onem2m.home.device." + DeviceContactDetectorFlexContainer.LONG_NAME);
setLongName(LONG_NAME);
setShortName(SHORT_NAME);
}
public void finalizeSerialization() {
getContactSensor();
getContactSensorAnnc();
}
public void finalizeDeserialization() {
if (this.contactSensor != null) {
setContactSensor(this.contactSensor);
}
if (this.contactSensorAnnc != null) {
setContactSensorAnnc(this.contactSensorAnnc);
}
}
@XmlElement(name="conSr", required=true, type=ContactSensorFlexContainerAnnc.class)
private ContactSensorFlexContainer contactSensor;
public void setContactSensor(ContactSensorFlexContainer contactSensor) {
this.contactSensor = contactSensor;
getFlexContainerOrContainerOrSubscription().add(contactSensor);
}
public ContactSensorFlexContainer getContactSensor() {
this.contactSensor = (ContactSensorFlexContainer) getResourceByName(ContactSensorFlexContainer.SHORT_NAME);
return contactSensor;
}
@XmlElement(name="conSrAnnc", required=true, type=ContactSensorFlexContainerAnnc.class)
private ContactSensorFlexContainerAnnc contactSensorAnnc;
public void setContactSensorAnnc(ContactSensorFlexContainerAnnc contactSensorAnnc) {
this.contactSensorAnnc = contactSensorAnnc;
getFlexContainerOrContainerOrSubscription().add(contactSensorAnnc);
}
public ContactSensorFlexContainerAnnc getContactSensorAnnc() {
this.contactSensorAnnc = (ContactSensorFlexContainerAnnc) getResourceByName(ContactSensorFlexContainerAnnc.SHORT_NAME);
return contactSensorAnnc;
}
}
|
[
"ba_aroso@icloud.com"
] |
ba_aroso@icloud.com
|
a078410a4c597ed10c786aa5edf9ed7bbb28246c
|
5f7da95996c3a2caa501c798bb95e8c25378d5ad
|
/miru-siphon-deployable/src/main/java/com/jivesoftware/os/miru/siphon/deployable/MiruSiphonServiceInitializer.java
|
bf2dc8dc217d57904609860a15317078c2d26933
|
[
"Apache-2.0"
] |
permissive
|
jivesoftware/miru
|
7325f0b8ddc21a1bbb31a9854350fd665ef9c872
|
a23a6221d8b2b4287c13cdad2b3234a62b7eae53
|
refs/heads/master
| 2021-01-23T17:43:39.184716
| 2018-03-22T23:06:30
| 2018-03-22T23:06:30
| 22,760,763
| 12
| 10
|
Apache-2.0
| 2018-03-22T23:00:02
| 2014-08-08T14:39:01
|
Java
|
UTF-8
|
Java
| false
| false
| 636
|
java
|
package com.jivesoftware.os.miru.siphon.deployable;
import com.jivesoftware.os.miru.siphon.deployable.region.MiruSiphonHomeRegion;
import com.jivesoftware.os.miru.siphon.deployable.region.MiruSiphonHeaderRegion;
import com.jivesoftware.os.miru.ui.MiruSoyRenderer;
public class MiruSiphonServiceInitializer {
public MiruSiphonUIService initialize(MiruSoyRenderer renderer) throws Exception {
return new MiruSiphonUIService(
renderer,
new MiruSiphonHeaderRegion("soy.siphon.chrome.headerRegion", renderer),
new MiruSiphonHomeRegion("soy.siphon.page.home", renderer)
);
}
}
|
[
"jonathan.colt@jivesoftware.com"
] |
jonathan.colt@jivesoftware.com
|
7860649f8bd2d84aa3f2e528f69c64c68f8e31a8
|
1143804a8ce4a7bd6ad5ee09ec4b01fda4a65f2e
|
/src/test/java/com/xpcoder/robot/wechat/service/AuditEventServiceIT.java
|
a84a6326f30fb916dec5cf5c94aa65db29901e08
|
[] |
no_license
|
xpcode-art/wechat-robot
|
6a6517791b792fb18975960c8e41603f4b134cc5
|
2f64efe51d230a3463a620c166aa532c9c3c1057
|
refs/heads/main
| 2023-03-04T18:39:33.026400
| 2021-02-13T15:25:02
| 2021-02-13T15:25:02
| 338,602,967
| 0
| 0
| null | 2021-02-13T15:25:02
| 2021-02-13T15:20:12
|
Java
|
UTF-8
|
Java
| false
| false
| 3,010
|
java
|
package com.xpcoder.robot.wechat.service;
import static org.assertj.core.api.Assertions.assertThat;
import com.xpcoder.robot.wechat.RobotApp;
import com.xpcoder.robot.wechat.domain.PersistentAuditEvent;
import com.xpcoder.robot.wechat.repository.PersistenceAuditEventRepository;
import io.github.jhipster.config.JHipsterProperties;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.transaction.annotation.Transactional;
/**
* Integration tests for {@link AuditEventService}.
*/
@SpringBootTest(classes = RobotApp.class)
@Transactional
public class AuditEventServiceIT {
@Autowired
private AuditEventService auditEventService;
@Autowired
private PersistenceAuditEventRepository persistenceAuditEventRepository;
@Autowired
private JHipsterProperties jHipsterProperties;
private PersistentAuditEvent auditEventOld;
private PersistentAuditEvent auditEventWithinRetention;
private PersistentAuditEvent auditEventNew;
@BeforeEach
public void init() {
auditEventOld = new PersistentAuditEvent();
auditEventOld.setAuditEventDate(Instant.now().minus(jHipsterProperties.getAuditEvents().getRetentionPeriod() + 1, ChronoUnit.DAYS));
auditEventOld.setPrincipal("test-user-old");
auditEventOld.setAuditEventType("test-type");
auditEventWithinRetention = new PersistentAuditEvent();
auditEventWithinRetention.setAuditEventDate(
Instant.now().minus(jHipsterProperties.getAuditEvents().getRetentionPeriod() - 1, ChronoUnit.DAYS)
);
auditEventWithinRetention.setPrincipal("test-user-retention");
auditEventWithinRetention.setAuditEventType("test-type");
auditEventNew = new PersistentAuditEvent();
auditEventNew.setAuditEventDate(Instant.now());
auditEventNew.setPrincipal("test-user-new");
auditEventNew.setAuditEventType("test-type");
}
@Test
@Transactional
public void verifyOldAuditEventsAreDeleted() {
persistenceAuditEventRepository.deleteAll();
persistenceAuditEventRepository.save(auditEventOld);
persistenceAuditEventRepository.save(auditEventWithinRetention);
persistenceAuditEventRepository.save(auditEventNew);
persistenceAuditEventRepository.flush();
auditEventService.removeOldAuditEvents();
persistenceAuditEventRepository.flush();
assertThat(persistenceAuditEventRepository.findAll().size()).isEqualTo(2);
assertThat(persistenceAuditEventRepository.findByPrincipal("test-user-old")).isEmpty();
assertThat(persistenceAuditEventRepository.findByPrincipal("test-user-retention")).isNotEmpty();
assertThat(persistenceAuditEventRepository.findByPrincipal("test-user-new")).isNotEmpty();
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
1135e1c2e2ef53fd7047e8a3fa1e93758ce7f537
|
687c0a1b8b2fe3a2700810a13b4e8e13301c3087
|
/leetcode/design/ValidWordAbbr.java
|
62a7a17a59d52d2d4fea38508f23650c7571b720
|
[
"MIT"
] |
permissive
|
hzheng/algo-problems
|
871f40e07d92636513ffcceef30f2b387ca0cbae
|
780f6cc6799cb82954b2ba2386aa7391f71d5003
|
refs/heads/main
| 2023-02-19T06:57:38.417365
| 2023-02-14T19:08:41
| 2023-02-14T19:08:41
| 153,545,000
| 4
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,315
|
java
|
import java.lang.reflect.*;
import java.util.*;
import org.junit.Test;
import static org.junit.Assert.*;
// LC288: https://leetcode.com/problems/unique-word-abbreviation/
//
// An abbreviation of a word follows the form <first letter><number><last letter>.
// Assume you have a dictionary and given a word, find whether its abbreviation
// is unique in the dictionary. A word's abbreviation is unique if no other word
// from the dictionary has the same abbreviation.
public class ValidWordAbbr {
interface IValidWordAbbr {
public boolean isUnique(String word);
}
// Hash Table + Set
// beats 57.65%(240 ms for 54 tests)
static class ValidWordAbbr1 implements IValidWordAbbr {
private Map<String, Integer> map = new HashMap<>();
private Set<String> dict = new HashSet<>();
public ValidWordAbbr1(String[] dictionary) {
for (String word : dictionary) {
if (dict.add(word)) {
String key = getKey(word);
map.put(key, map.getOrDefault(key, 0) + 1);
}
}
}
public boolean isUnique(String word) {
int count = map.getOrDefault(getKey(word), 0);
return count == 0 || count == 1 && dict.contains(word);
}
private String getKey(String word) {
int len = word.length();
String key = word;
if (len > 2) {
key = key.charAt(0) + Integer.toString(len - 2) + key.charAt(len - 1);
}
return key;
}
}
// Hash Table + Set
// beats 84.17%(216 ms for 54 tests)
static class ValidWordAbbr2 implements IValidWordAbbr {
private int[][][] map;
private Set<String> dict = new HashSet<>();
public ValidWordAbbr2(String[] dictionary) {
int maxLen = 0;
for (String word : dictionary) {
maxLen = Math.max(maxLen, word.length());
}
map = new int[26][26][Math.max(0, maxLen - 2)];
for (String word : dictionary) {
if (dict.add(word)) {
int len = word.length();
if (len > 2) {
map[word.charAt(0) - 'a'][word.charAt(len - 1) - 'a'][len - 3]++;
}
}
}
}
public boolean isUnique(String word) {
int len = word.length();
if (len <= 2 || len >= map[0][0].length + 3) return true;
int count = map[word.charAt(0) - 'a'][word.charAt(len - 1) - 'a'][len - 3];
return count == 0 || count == 1 && dict.contains(word);
}
}
// Hash Table
// beats 80.82%(220 ms for 54 tests)
static class ValidWordAbbr3 implements IValidWordAbbr {
private Map<String, String> map = new HashMap<>();
public ValidWordAbbr3(String[] dictionary) {
for (String word : dictionary) {
String key = getKey(word);
String prev = map.get(key);
if (prev == null) {
map.put(key, word);
} else if (!prev.equals(word)) {
map.put(key, "");
}
}
}
public boolean isUnique(String word) {
String val = map.get(getKey(word));
return val == null || val.equals(word);
}
private String getKey(String word) {
int len = word.length();
String key = word;
if (len > 2) {
key = key.charAt(0) + Integer.toString(len - 2) + key.charAt(len - 1);
}
return key;
}
}
void test(IValidWordAbbr obj, String[] uniques, String[] nonUniques) {
for (String word : uniques) {
assertTrue(word + " should be unique", obj.isUnique(word));
}
for (String word : nonUniques) {
assertFalse(word + " should not be unique", obj.isUnique(word));
}
}
private void test(String className, String[] dictionary, String[] uniques, String[] nonUniques) {
try {
Class<?> clazz = Class.forName("ValidWordAbbr$" + className);
Constructor<?> ctor = clazz.getConstructor(String[].class);
test((IValidWordAbbr)ctor.newInstance(new Object[]{dictionary}), uniques, nonUniques);
} catch (Exception e) {
e.printStackTrace();
}
}
private void test(String[] dictionary, String[] uniques, String[] nonUniques) {
test("ValidWordAbbr1", dictionary, uniques, nonUniques);
test("ValidWordAbbr2", dictionary, uniques, nonUniques);
test("ValidWordAbbr3", dictionary, uniques, nonUniques);
}
@Test
public void test() {
test(new String[] {"aba", "a"}, new String[] {"abba"}, new String[] {"aca"});
test(new String[] {"a", "a"}, new String[] {"a", ""}, new String[] {});
test(new String[] {"hello"}, new String[] {"hello"}, new String[] {});
test(new String[] {"deer", "door", "cake", "card"},
new String[] {"cart", "make"},
new String[] {"dear", "cane", "door"});
}
public static void main(String[] args) {
org.junit.runner.JUnitCore.main("ValidWordAbbr");
}
}
|
[
"xyzdll@gmail.com"
] |
xyzdll@gmail.com
|
041d9ad5f612666ece31684fa5759f6910fdf1e7
|
d2b48be9cbf494aad41a8a07bfbc6551cacf2f23
|
/server/src/main/java/datart/server/config/DatabaseMigrationAware.java
|
a74f7f82f66502d145c95b3305933f729b935b08
|
[
"Apache-2.0"
] |
permissive
|
running-elephant/datart
|
9a9b1ca11928357dddfcb7a867aa22ae4a474b8a
|
f52621a3064cd919b631b3cfbc5972edf7501875
|
refs/heads/master
| 2023-07-09T14:45:47.307315
| 2023-04-07T04:34:34
| 2023-04-07T04:34:34
| 417,448,864
| 1,357
| 470
|
Apache-2.0
| 2023-09-06T06:22:32
| 2021-10-15T09:50:39
|
TypeScript
|
UTF-8
|
Java
| false
| false
| 1,723
|
java
|
/*
* Datart
* <p>
* Copyright 2021
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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 datart.server.config;
import datart.core.migration.DatabaseMigration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class DatabaseMigrationAware implements ApplicationContextAware, Ordered {
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
String migrationEnable = applicationContext.getEnvironment().getProperty("datart.migration.enable");
if (migrationEnable == null || "false".equals(migrationEnable)) {
return;
}
DatabaseMigration databaseMigration = applicationContext.getBean(DatabaseMigration.class);
try {
databaseMigration.migration();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
@Override
public int getOrder() {
return 0;
}
}
|
[
"761302945@qq.com"
] |
761302945@qq.com
|
23104461ffa53ed66dd66e0a8f0b834372136f9a
|
f561b0b83cc7c62da02739061749355c8504143d
|
/src/main/java/com/cjw/rhmanager/utils/HandleEnum.java
|
636dc277b77065eec1e7d450d02d533dc1917660
|
[] |
no_license
|
cjw363/rhmanager
|
1b07040ef783f3ac89aa2dd6d5573afbf8769a4b
|
f367b0496f3dec5bbb2577fabadd1dc398278290
|
refs/heads/master
| 2021-01-24T18:25:15.794856
| 2018-04-06T05:46:56
| 2018-04-06T05:46:56
| 123,223,065
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 613
|
java
|
package com.cjw.rhmanager.utils;
public enum HandleEnum {
FAIL(0,"操作异常"),
SUCCESS(1,"操作成功"),
UNLOGIN(2,"未登录");
private int code;
private String message;
HandleEnum(int code, String message) {
this.code = code;
this.message = message;
}
public int getCode() {
return code;
}
public String getMessage() {
return message;
}
public static HandleEnum codeOf(int index){
for (HandleEnum code : values()){
if (code.getCode()==index){
return code;
}
}
return null;
}
}
|
[
"771613512@qq.com"
] |
771613512@qq.com
|
1c30c5a1496b10d48e68b2b3debdb332861657cf
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/test/irvine/oeis/a027/A027273Test.java
|
88ee025a269101a44d20c42a30b000f4a70168ea
|
[] |
no_license
|
flywind2/joeis
|
c5753169cf562939b04dd246f8a2958e97f74558
|
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
|
refs/heads/master
| 2020-09-13T18:34:35.080552
| 2019-11-19T05:40:55
| 2019-11-19T05:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 195
|
java
|
package irvine.oeis.a027;
import irvine.oeis.AbstractSequenceTest;
/**
* Tests the corresponding class.
* @author Sean A. Irvine
*/
public class A027273Test extends AbstractSequenceTest {
}
|
[
"sairvin@gmail.com"
] |
sairvin@gmail.com
|
6488720fa516d47dbd4032e67155cedd6b23bd56
|
093e942f53979299f3e56c9ab1f987e5e91c13ab
|
/storm-client/src/jvm/org/apache/storm/windowing/StatefulWindowManager.java
|
3d6da2b088c2eebd707b6c0360d0f07e95c49f79
|
[
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
] |
permissive
|
Whale-Storm/Whale
|
09bab86ce0b56412bc1b984bb5d47935cf0814aa
|
9b3e5e8bffbeefa54c15cd2de7f2fb67f36d64b2
|
refs/heads/master
| 2022-09-26T10:56:51.916884
| 2020-06-11T08:36:44
| 2020-06-11T08:36:44
| 266,803,131
| 3
| 0
|
Apache-2.0
| 2022-09-17T00:00:04
| 2020-05-25T14:39:22
|
Java
|
UTF-8
|
Java
| false
| false
| 5,951
|
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.storm.windowing;
import java.util.Collection;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.function.Supplier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.apache.storm.windowing.EvictionPolicy.Action.EXPIRE;
import static org.apache.storm.windowing.EvictionPolicy.Action.PROCESS;
import static org.apache.storm.windowing.EvictionPolicy.Action.STOP;
/**
* Window manager that handles windows with state persistence.
*/
public class StatefulWindowManager<T> extends WindowManager<T> {
private static final Logger LOG = LoggerFactory.getLogger(StatefulWindowManager.class);
public StatefulWindowManager(WindowLifecycleListener<T> lifecycleListener) {
super(lifecycleListener);
}
/**
* Constructs a {@link StatefulWindowManager}
* @param lifecycleListener the {@link WindowLifecycleListener}
* @param queue a collection where the events in the window can be enqueued.
* <br/>
* <b>Note:</b> This collection has to be thread safe.
*/
public StatefulWindowManager(WindowLifecycleListener<T> lifecycleListener, Collection<Event<T>> queue) {
super(lifecycleListener, queue);
}
@Override
protected void compactWindow() {
// NOOP
}
@Override
public boolean onTrigger() {
Supplier<Iterator<T>> scanEventsStateful = this::scanEventsStateful;
Iterator<T> it = scanEventsStateful.get();
boolean hasEvents = it.hasNext();
if (hasEvents) {
final IteratorStatus status = new IteratorStatus();
LOG.debug("invoking windowLifecycleListener onActivation with iterator");
// reuse the retrieved iterator
Supplier<Iterator<T>> wrapper = new Supplier<Iterator<T>>() {
Iterator<T> initial = it;
@Override
public Iterator<T> get() {
if (status.isValid()) {
Iterator<T> res;
if (initial != null) {
res = initial;
initial = null;
} else {
res = scanEventsStateful.get();
}
return expiringIterator(res, status);
}
throw new IllegalStateException("Stale window, the window is valid only within the corresponding execute");
}
};
windowLifecycleListener.onActivation(wrapper, null, null, evictionPolicy.getContext().getReferenceTime());
// invalidate the iterator
status.invalidate();
} else {
LOG.debug("No events in the window, skipping onActivation");
}
triggerPolicy.reset();
return hasEvents;
}
private Iterator<T> scanEventsStateful() {
LOG.debug("Scan events, eviction policy {}", evictionPolicy);
evictionPolicy.reset();
Iterator<T> it = new Iterator<T>() {
private Iterator<Event<T>> inner = queue.iterator();
private T windowEvent;
private boolean stopped;
@Override
public boolean hasNext() {
while (!stopped && windowEvent == null && inner.hasNext()) {
Event<T> cur = inner.next();
EvictionPolicy.Action action = evictionPolicy.evict(cur);
if (action == EXPIRE) {
inner.remove();
} else if (action == STOP) {
stopped = true;
} else if (action == PROCESS) {
windowEvent = cur.get();
}
}
return windowEvent != null;
}
@Override
public T next() {
if (!hasNext()) {
throw new NoSuchElementException();
}
T res = windowEvent;
windowEvent = null;
return res;
}
};
return it;
}
private static <T> Iterator<T> expiringIterator(Iterator<T> inner, IteratorStatus status) {
return new Iterator<T>() {
@Override
public boolean hasNext() {
if (status.isValid()) {
return inner.hasNext();
}
throw new IllegalStateException("Stale iterator, the iterator is valid only within the corresponding execute");
}
@Override
public T next() {
if (status.isValid()) {
return inner.next();
}
throw new IllegalStateException("Stale iterator, the iterator is valid only within the corresponding execute");
}
};
}
private static class IteratorStatus {
private boolean valid = true;
void invalidate() {
valid = false;
}
boolean isValid() {
return valid;
}
}
}
|
[
"798750509@qq.com"
] |
798750509@qq.com
|
fbc15761fb33a1eb01a0042e1556c2422d120956
|
042cad4adb02d040690d178ba7358a791e571da1
|
/src/main/java/holding/ListIteration.java
|
d98ec45300097995d538922d80da82ec6c299c54
|
[] |
no_license
|
weixiaouser/ThinkInJava
|
8b2eb21cdeb4b5cfdeaa762eb7c3ea213abdb541
|
e14f86a3a1947a2022de569d06237a90d8b626d0
|
refs/heads/master
| 2022-06-16T08:58:47.897839
| 2020-08-18T09:15:40
| 2020-08-18T09:15:40
| 39,371,558
| 0
| 0
| null | 2022-05-20T21:49:52
| 2015-07-20T08:18:16
|
Java
|
UTF-8
|
Java
| false
| false
| 1,109
|
java
|
package holding;
import typeinfo.pets.Pet;
import typeinfo.pets.Pets;
import java.util.List;
import java.util.ListIterator;
/**
* Created by weixiao on 2018/9/30.
*/
public class ListIteration {
public static void main(String[] args) {
List<Pet> pets = Pets.arrayList(8);
ListIterator<Pet> it = pets.listIterator();
while (it.hasNext()){
System.out.println(it.next()+", "+it.nextIndex()+", "+it
.previousIndex()+";");
}
System.out.println();
while (it.hasPrevious()){
System.out.print(it.previous().id() + " ");
}
System.out.println();
System.out.println(pets);
it = pets.listIterator(3);
while (it.hasNext()){
it.next();
it.set(Pets.randomPet());
}
System.out.println(pets);
}
}/*output:
Rat, 1, 0;
Manx, 2, 1;
Cymric, 3, 2;
Mutt, 4, 3;
Pug, 5, 4;
Cymric, 6, 5;
Pug, 7, 6;
Manx, 8, 7;
7 6 5 4 3 2 1 0
[Rat, Manx, Cymric, Mutt, Pug, Cymric, Pug, Manx]
[Rat, Manx, Cymric, Cymric, Rat, EgyptianMau, Hamster, EgyptianMau]
*/
|
[
"weixiao930101@163.com"
] |
weixiao930101@163.com
|
f3c13a4303a4354bae28f6b5671282cf2b8c8079
|
e10600cf88f847d535a06bcda156efebc7ea9d78
|
/src/test/java/com/avaje/tests/batchload/TestSecondaryQueries.java
|
c74a7fd61d1473ca4b5722b0b9c786da296078a6
|
[
"Apache-2.0"
] |
permissive
|
mochalov/avaje-ebeanorm-server
|
34133890ac8004c3ff4423c973922ad5790f2acd
|
fe4bd22c159a61510ce89825b211369af477bbfe
|
refs/heads/master
| 2021-01-21T00:35:54.079385
| 2013-01-11T10:36:26
| 2013-01-11T10:36:26
| 7,557,822
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 986
|
java
|
package com.avaje.tests.batchload;
import java.util.List;
import junit.framework.TestCase;
import org.junit.Assert;
import com.avaje.ebean.Ebean;
import com.avaje.tests.model.basic.Customer;
import com.avaje.tests.model.basic.Order;
import com.avaje.tests.model.basic.ResetBasicData;
public class TestSecondaryQueries extends TestCase {
public void testQueries() {
ResetBasicData.reset();
Order testOrder = ResetBasicData.createOrderCustAndOrder("testSecQry10");
Integer custId = testOrder.getCustomer().getId();
Customer cust = Ebean.find(Customer.class)
.select("name")
.fetch("contacts","+query")
.setId(custId)
.findUnique();
Assert.assertNotNull(cust);
List<Order> list = Ebean.find(Order.class)
.select("status")
.fetch("details","+query(10)")
.fetch("customer","+query name, status")
.fetch("customer.contacts")
.where().eq("status", Order.Status.NEW)
.findList();
Assert.assertTrue(list.size() > 0);
}
}
|
[
"="
] |
=
|
cb3688285be702ff11de5c7140b56c74f8618d81
|
1ec73a5c02e356b83a7b867580a02b0803316f0a
|
/java/bj/Java1200/col01/ch22_数据库操作/ch22_3_数据库与数据表/_532/VireFrame.java
|
16f3559ee3f0e1efd2dc7c668e16ce93b8c7d9a3
|
[] |
no_license
|
jxsd0084/JavaTrick
|
f2ee8ae77638b5b7654c3fcf9bceea0db4626a90
|
0bb835fdac3c2f6d1a29d1e6e479b553099ece35
|
refs/heads/master
| 2021-01-20T18:54:37.322832
| 2016-06-09T03:22:51
| 2016-06-09T03:22:51
| 60,308,161
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,531
|
java
|
package bj.Java1200.col01.ch22_数据库操作.ch22_3_数据库与数据表._532;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;
public class VireFrame extends JFrame {
private JPanel contentPane;
private JTable table;
LocalTableModel model = new LocalTableModel();
GetFrame getFrame = new GetFrame();
private JComboBox nameComboBox;
/**
* Launch the application.
*/
public static void main( String[] args ) {
EventQueue.invokeLater( new Runnable() {
public void run() {
try {
VireFrame frame = new VireFrame();
frame.setVisible( true );
} catch ( Exception e ) {
e.printStackTrace();
}
}
} );
}
/**
* Create the frame.
*/
public VireFrame() {
setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
setBounds( 100, 100, 532, 300 );
contentPane = new JPanel();
contentPane.setBorder( new EmptyBorder( 5, 5, 5, 5 ) );
setContentPane( contentPane );
contentPane.setLayout( null );
setTitle( "查看数据表结构" );
JLabel nameLabel = new JLabel( "数据表:" );
nameLabel.setBounds( 86, 39, 54, 15 );
contentPane.add( nameLabel );
List list = getFrame.GetRs();
String name[] = new String[ list.size() ];
for ( int i = 0; i < list.size(); i++ ) {
name[ i ] = list.get( i ).toString();
}
nameComboBox = new JComboBox( name );
nameComboBox.setBounds( 179, 36, 136, 21 );
contentPane.add( nameComboBox );
JButton viewButton = new JButton( "查看" );
viewButton.addActionListener( new ActionListener() {
public void actionPerformed( ActionEvent arg0 ) {
do_viewButton_actionPerformed( arg0 );
}
} );
viewButton.setBounds( 362, 35, 93, 23 );
contentPane.add( viewButton );
JScrollPane scrollPane = new JScrollPane();
scrollPane.setBounds( 10, 79, 496, 173 );
contentPane.add( scrollPane );
table = new JTable( model );
scrollPane.setViewportView( table );
}
//查看按钮的单击事件
protected void do_viewButton_actionPerformed( ActionEvent arg0 ) {
String name = nameComboBox.getSelectedItem().toString();
List list = getFrame.getMessage( name );
model.setRowCount( 0 );
for ( int i = 0; i < list.size(); i++ ) {
Student stu = ( Student ) list.get( i );
model.addRow( new Object[]{ stu.getId(), stu.getName(), stu.getLength(),
stu.getType(), stu.getDepict(), stu.getIfNull(), stu.getDigit(), stu.getAcquiescence() } );
}
}
}
|
[
"chenlong88882001@163.com"
] |
chenlong88882001@163.com
|
8d8a9111f632605778f4d642fe9a177acfcd0283
|
8311139d16e04e0ada7a45b8c530ae2e5f600b1c
|
/jaxws/hugeWsdl.war/WEB-INF/classes/com/redhat/gss/ws19/BigObject45.java
|
abc1b8cd4407f006710de7f754b2f9767ad7cc21
|
[] |
no_license
|
kylape/support-examples
|
b9a494bf7dbc3671b21def7d89a32e35d4d0d00c
|
ade17506093fa3f50bc8d8a685572cf6329868e7
|
refs/heads/master
| 2020-05-17T10:43:54.707699
| 2014-11-28T16:22:14
| 2014-11-28T16:22:14
| 6,583,210
| 2
| 2
| null | 2014-06-19T22:38:39
| 2012-11-07T17:27:56
|
Java
|
UTF-8
|
Java
| false
| false
| 4,253
|
java
|
package com.redhat.gss.ws19;
public class BigObject45
{
private String arg0 = null;
private String arg1 = null;
private String arg2 = null;
private String arg3 = null;
private String arg4 = null;
private String arg5 = null;
private String arg6 = null;
private String arg7 = null;
private String arg8 = null;
private String arg9 = null;
private String arg10 = null;
private String arg11 = null;
private String arg12 = null;
private String arg13 = null;
private String arg14 = null;
private String arg15 = null;
private String arg16 = null;
private String arg17 = null;
private String arg18 = null;
private String arg19 = null;
private String arg20 = null;
private String arg21 = null;
private String arg22 = null;
private String arg23 = null;
private String arg24 = null;
private String arg25 = null;
public String getArg25()
{
return this.arg25;
}
public void setArg25(String arg25)
{
this.arg25 = arg25;
}
public String getArg24()
{
return this.arg24;
}
public void setArg24(String arg24)
{
this.arg24 = arg24;
}
public String getArg23()
{
return this.arg23;
}
public void setArg23(String arg23)
{
this.arg23 = arg23;
}
public String getArg22()
{
return this.arg22;
}
public void setArg22(String arg22)
{
this.arg22 = arg22;
}
public String getArg21()
{
return this.arg21;
}
public void setArg21(String arg21)
{
this.arg21 = arg21;
}
public String getArg20()
{
return this.arg20;
}
public void setArg20(String arg20)
{
this.arg20 = arg20;
}
public String getArg19()
{
return this.arg19;
}
public void setArg19(String arg19)
{
this.arg19 = arg19;
}
public String getArg18()
{
return this.arg18;
}
public void setArg18(String arg18)
{
this.arg18 = arg18;
}
public String getArg17()
{
return this.arg17;
}
public void setArg17(String arg17)
{
this.arg17 = arg17;
}
public String getArg16()
{
return this.arg16;
}
public void setArg16(String arg16)
{
this.arg16 = arg16;
}
public String getArg15()
{
return this.arg15;
}
public void setArg15(String arg15)
{
this.arg15 = arg15;
}
public String getArg14()
{
return this.arg14;
}
public void setArg14(String arg14)
{
this.arg14 = arg14;
}
public String getArg13()
{
return this.arg13;
}
public void setArg13(String arg13)
{
this.arg13 = arg13;
}
public String getArg12()
{
return this.arg12;
}
public void setArg12(String arg12)
{
this.arg12 = arg12;
}
public String getArg11()
{
return this.arg11;
}
public void setArg11(String arg11)
{
this.arg11 = arg11;
}
public String getArg10()
{
return this.arg10;
}
public void setArg10(String arg10)
{
this.arg10 = arg10;
}
public String getArg9()
{
return this.arg9;
}
public void setArg9(String arg9)
{
this.arg9 = arg9;
}
public String getArg8()
{
return this.arg8;
}
public void setArg8(String arg8)
{
this.arg8 = arg8;
}
public String getArg7()
{
return this.arg7;
}
public void setArg7(String arg7)
{
this.arg7 = arg7;
}
public String getArg6()
{
return this.arg6;
}
public void setArg6(String arg6)
{
this.arg6 = arg6;
}
public String getArg5()
{
return this.arg5;
}
public void setArg5(String arg5)
{
this.arg5 = arg5;
}
public String getArg4()
{
return this.arg4;
}
public void setArg4(String arg4)
{
this.arg4 = arg4;
}
public String getArg3()
{
return this.arg3;
}
public void setArg3(String arg3)
{
this.arg3 = arg3;
}
public String getArg2()
{
return this.arg2;
}
public void setArg2(String arg2)
{
this.arg2 = arg2;
}
public String getArg1()
{
return this.arg1;
}
public void setArg1(String arg1)
{
this.arg1 = arg1;
}
public String getArg0()
{
return this.arg0;
}
public void setArg0(String arg0)
{
this.arg0 = arg0;
}
}
|
[
"kyle.lape@redhat.com"
] |
kyle.lape@redhat.com
|
39d5f9d8525b0617f7179215806ca669a03cac8c
|
40e39f1ef8864138052d807e2843bf837c02cbbb
|
/jpaedu/src/main/java/com/example/jpaedu/controller/HelloController.java
|
a01240e6ab70ef68b95d9bb81f44c27c795355e9
|
[] |
no_license
|
icarus8050/study
|
bb3c0a952cf6c2e02a04943b7b09d5c74af1d7a1
|
9364c1074c748c3faf2ce6b91ad807a579bc93a8
|
refs/heads/master
| 2020-05-05T04:52:47.978849
| 2019-09-08T06:25:29
| 2019-09-08T06:25:29
| 179,728,475
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,235
|
java
|
package com.example.jpaedu.controller;
import com.example.jpaedu.domain.Member;
import com.example.jpaedu.domain.Team;
import com.example.jpaedu.service.MemberService;
import com.example.jpaedu.service.MemberServiceWithCriteria;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Pageable;
import org.springframework.data.web.PageableDefault;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequiredArgsConstructor
public class HelloController {
private final MemberService memberService;
private final MemberServiceWithCriteria memberServiceWithCriteria;
@GetMapping("/hello")
@ResponseBody
public String hello() {
return "hello";
}
@GetMapping("/hello2")
public ResponseEntity<Member> hello2() {
Member member = Member.builder()
.id(Long.valueOf(4))
.name("독일")
.age(Integer.valueOf(39))
.build();
return new ResponseEntity<>(member, HttpStatus.OK);
}
@PostMapping("/signup")
public ResponseEntity<Member> saveMember(@RequestBody Member member) {
Member joinedMember = memberService.signUp(member.getName(), member.getAge());
return new ResponseEntity<>(joinedMember, HttpStatus.OK);
}
@GetMapping("/find")
@ResponseBody
public Member find(Long id) {
return memberService.find(id);
}
@GetMapping("/findmemberteam")
@ResponseBody
public Team findteam(Long id) {
Member member = memberService.find(id);
return member.getTeam();
}
@GetMapping("/findbyusername")
@ResponseBody
public Member findByUserName(String name) {
return memberService.findByUserName(name);
}
@GetMapping("/getmembers")
@ResponseBody
public List<Member> findByMembers() {
return memberServiceWithCriteria.findByMembers();
}
@GetMapping("/pagingmembers")
@ResponseBody
public List<Member> pagingMember(@PageableDefault Pageable pageable) {
return memberService.findByPagingMember(pageable).getContent();
}
}
|
[
"icarus8050@naver.com"
] |
icarus8050@naver.com
|
53af077f8d08616f4eb45ac87a8282b316a5c1d9
|
25587613b4eb203ac093b4b93aefd6c738b2a3d5
|
/OswegoConcurrency/src/main/java/edu/oswego/cs/dl/util/concurrent/LayeredSync.java
|
49b238d5244cf0d754ada39067aeb40d638757db
|
[
"Apache-2.0"
] |
permissive
|
goranstack/bluebrim
|
80b4f5d2aba0a5cadbda310d673b97ce64d84e6e
|
eb6edbeada72ed7fd1294391396432cb25575fe0
|
refs/heads/master
| 2021-05-02T07:39:42.782432
| 2018-06-19T14:30:14
| 2018-06-19T14:30:14
| 35,280,662
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,107
|
java
|
package edu.oswego.cs.dl.util.concurrent;
/*
File: LayeredSync.java
Originally written by Doug Lea and released into the public domain.
This may be used for any purposes whatsoever without acknowledgment.
Thanks for the assistance and support of Sun Microsystems Labs,
and everyone contributing, testing, and using this code.
History:
Date Who What
1Aug1998 dl Create public version
*/
/**
* A class that can be used to compose Syncs.
* A LayeredSync object manages two other Sync objects,
* <em>outer</em> and <em>inner</em>. The acquire operation
* invokes <em>outer</em>.acquire() followed by <em>inner</em>.acquire(),
* but backing out of outer (via release) upon an exception in inner.
* The other methods work similarly.
* <p>
* LayeredSyncs can be used to compose arbitrary chains
* by arranging that either of the managed Syncs be another
* LayeredSync.
*
* <p>[<a href="http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html"> Introduction to this package. </a>]
**/
public class LayeredSync implements Sync {
protected final Sync outer_;
protected final Sync inner_;
/**
* Create a LayeredSync managing the given outer and inner Sync
* objects
**/
public LayeredSync(Sync outer, Sync inner) {
outer_ = outer;
inner_ = inner;
}
public void acquire() throws InterruptedException {
outer_.acquire();
try {
inner_.acquire();
}
catch (InterruptedException ex) {
outer_.release();
throw ex;
}
}
public boolean attempt(long msecs) throws InterruptedException {
long start = (msecs <= 0)? 0 : System.currentTimeMillis();
long waitTime = msecs;
if (outer_.attempt(waitTime)) {
try {
if (msecs > 0)
waitTime = msecs - (System.currentTimeMillis() - start);
if (inner_.attempt(waitTime))
return true;
else {
outer_.release();
return false;
}
}
catch (InterruptedException ex) {
outer_.release();
throw ex;
}
}
else
return false;
}
public void release() {
inner_.release();
outer_.release();
}
}
|
[
"goran.stack@atg.se"
] |
goran.stack@atg.se
|
7fe98d26fa9ffaaeb39d840c1180f1a907379d6f
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/4/4_60d00c078ba15c17409cff84263c1b4ddab44c13/ComponentManager/4_60d00c078ba15c17409cff84263c1b4ddab44c13_ComponentManager_t.java
|
7002ad8c2edf1a8f94e1efe61ee1f03d53312a59
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 5,875
|
java
|
/**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2005, 2006, 2007, 2008 Sakai Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
**********************************************************************************/
package org.sakaiproject.component.cover;
import java.util.Set;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import org.sakaiproject.component.impl.MockCompMgr;
import org.sakaiproject.component.impl.SpringCompMgr;
/**
* <p>
* ComponentManager is a static Cover for the
* {@link org.sakaiproject.component.api.ComponentManager Component Manager};
* see that interface for usage details.
* </p>
* <p>
* This cover is special. As a cover for the component manager, it cannot use
* the component manager to find the instance. Instead, this is where a static
* single-instance singleton ComponentManger of a particular type is created.
* </p>
*/
@SuppressWarnings("unchecked")
public class ComponentManager {
/** A component manager - use the Spring based one. */
protected static org.sakaiproject.component.api.ComponentManager m_componentManager = null;
/**
* If true, covers will cache the components they find once - good for
* production, bad for some unit testing.
*/
public static final boolean CACHE_COMPONENTS = true;
public static java.lang.String SAKAI_COMPONENTS_ROOT_SYS_PROP = org.sakaiproject.component.api.ComponentManager.SAKAI_COMPONENTS_ROOT_SYS_PROP;
// Making this non-fair works around a bug in JDK-1.5 in which the current thread can't reaquire the lock
// correctly and so deadlocks.
private static Lock m_lock = new ReentrantLock(false);
private static boolean lateRefresh = false;
/**
* Setup the CM in testingMode if this is true (this is to be used for unit tests only),
* has no effect if the CM is already initialized
*/
public static boolean testingMode = false;
/**
* @return true if this CM is in testing mode
*/
public static boolean isTestingMode() {
return (m_componentManager == null && testingMode) || m_componentManager instanceof MockCompMgr;
}
/**
* TESTING ONLY <br/>
* closes and then destroys the component manager <br/>
* WARNING: this is NOT safe to do in a production system
*/
public static void shutdown() {
m_lock.lock();
try {
if (m_componentManager != null) {
m_componentManager.close();
m_componentManager = null;
}
} finally {
m_lock.unlock();
}
}
/**
* Access the component manager of the single instance.
*
* @return The ComponentManager.
*/
public static org.sakaiproject.component.api.ComponentManager getInstance() {
// make sure we make only one instance
m_lock.lock();
try {
// if we do not yet have our component manager instance, create and
// init / populate it
if (m_componentManager == null) {
if (testingMode) {
m_componentManager = new MockCompMgr(false);
} else {
m_componentManager = new SpringCompMgr(null);
((SpringCompMgr) m_componentManager).init(lateRefresh);
}
}
} finally {
m_lock.unlock();
}
return m_componentManager;
}
public static Object get(Class iface) {
return getInstance().get(iface);
}
public static Object get(String ifaceName) {
return getInstance().get(ifaceName);
}
public static boolean contains(Class iface) {
return getInstance().contains(iface);
}
public static boolean contains(String ifaceName) {
return getInstance().contains(ifaceName);
}
public static Set getRegisteredInterfaces() {
return getInstance().getRegisteredInterfaces();
}
public static void loadComponent(Class iface, Object component) {
getInstance().loadComponent(iface, component);
}
public static void loadComponent(String ifaceName, Object component) {
getInstance().loadComponent(ifaceName, component);
}
public static void close() {
getInstance().close();
}
/**
* @deprecated This method is redundant, not used by any known client, would
* expose implementation details, and will be removed in a
* future release. Use the ServerConfigurationService instead.
*/
@Deprecated
public static java.util.Properties getConfig() {
return getInstance().getConfig();
}
/**
* When the component manager this can be called by a background thread to wait until
* the component manager has been configured. If the component manager hasn't yet
* started it will return straight away. If the component manager fails to start it will
* return. This is to prevent a deadlock between shutdown and startup.
*/
public static void waitTillConfigured() {
try {
m_lock.lockInterruptibly();
m_lock.unlock();
} catch (InterruptedException e) {
// We got interrupted and so should shutdown.
}
}
public static boolean hasBeenClosed() {
return getInstance().hasBeenClosed();
}
public static void setLateRefresh(boolean b) {
lateRefresh = b;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
688a8eba8ba4f6b199a0ee637b6957ec40409226
|
489a56de7fce32f0c5fdcfa916da891047c7712b
|
/gewara-new/src/main/java/com/gewara/untrans/spider/RemoteSpiderService.java
|
df80e8bfe254adfc60bcfea6e026b9ae0645f157
|
[] |
no_license
|
xie-summer/GWR
|
f5506ea6f41800788463e33377d34ebefca21c01
|
0894221d00edfced294f1f061c9f9e6aa8d51617
|
refs/heads/master
| 2021-06-22T04:45:17.720266
| 2017-06-15T09:48:32
| 2017-06-15T09:48:32
| 89,137,292
| 2
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 338
|
java
|
package com.gewara.untrans.spider;
import java.sql.Timestamp;
import java.util.List;
import com.gewara.support.ErrorCode;
import com.gewara.xmlbind.ticket.SynchPlayItem;
public interface RemoteSpiderService {
ErrorCode<List<SynchPlayItem>> getRemotePlayItemListByUpdatetime(
Timestamp updatetime, Long cinemaid);
}
|
[
"xieshengrong@live.com"
] |
xieshengrong@live.com
|
d2630ae79bd0e72cedfc446966279f840417b63b
|
e05a290f18b0ae8089709f4fbe92f3f49042daee
|
/kernel/kernel-core/src/main/java/io/mosip/kernel/core/util/constant/CalendarUtilConstants.java
|
49855ef577de57ee722320fb9f3c67fe04425808
|
[] |
no_license
|
Aswin-MN/personal
|
25e6d6bf306e61a236d0ea886d33ea621bb7dc56
|
d096fa6ab16e13a66a82be0325cf4d117d3669f3
|
refs/heads/master
| 2021-10-11T16:24:08.604019
| 2019-01-28T12:52:41
| 2019-01-28T12:52:41
| 166,238,628
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 515
|
java
|
package io.mosip.kernel.core.util.constant;
public enum CalendarUtilConstants {
ILLEGAL_ARGUMENT_CODE("KER-UTL-001"), ARITHMETIC_EXCEPTION_CODE("KER-UTL-002"),
NULL_ARGUMENT_CODE("KER-UTL-003"),ILLEGAL_ARGUMENT_MESSAGE("Invalid_Argument"),
YEAR_OVERFLOW_MESSAGE("Year_can't_be_greater_than_280million"),
DATE_NULL_MESSAGE("Date_can't_be_null");
private final String errorCode;
private CalendarUtilConstants(String eCode) {
errorCode = eCode;
}
public String getErrorCode() {
return errorCode;
}
}
|
[
"info@mosip.io"
] |
info@mosip.io
|
3909626cc72b25172a9958e794676b31c79963e2
|
3ef55e152decb43bdd90e3de821ffea1a2ec8f75
|
/large/module1364/src/java/module1364/a/IFoo1.java
|
2b335459a48eddac9ad4db2f69b8a1c614ef84ed
|
[
"BSD-3-Clause"
] |
permissive
|
salesforce/bazel-ls-demo-project
|
5cc6ef749d65d6626080f3a94239b6a509ef145a
|
948ed278f87338edd7e40af68b8690ae4f73ebf0
|
refs/heads/master
| 2023-06-24T08:06:06.084651
| 2023-03-14T11:54:29
| 2023-03-14T11:54:29
| 241,489,944
| 0
| 5
|
BSD-3-Clause
| 2023-03-27T11:28:14
| 2020-02-18T23:30:47
|
Java
|
UTF-8
|
Java
| false
| false
| 861
|
java
|
package module1364.a;
import javax.naming.directory.*;
import javax.net.ssl.*;
import javax.rmi.ssl.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
* Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
*
* @see javax.annotation.processing.Completion
* @see javax.lang.model.AnnotatedConstruct
* @see javax.management.Attribute
*/
@SuppressWarnings("all")
public interface IFoo1<V> extends module1364.a.IFoo0<V> {
javax.naming.directory.DirContext f0 = null;
javax.net.ssl.ExtendedSSLSession f1 = null;
javax.rmi.ssl.SslRMIClientSocketFactory f2 = null;
String getName();
void setName(String s);
V get();
void set(V e);
}
|
[
"gwagenknecht@salesforce.com"
] |
gwagenknecht@salesforce.com
|
7eaa0998859aa7731f9fcdcd3bc491580d429025
|
a7d76e908474819840e93ee3af82ac1022d6f36f
|
/core/src/main/java/org/vertexium/property/MutablePropertyImpl.java
|
8e1c55f35cc5e938e5cd6c30fcf7ab697f5230ab
|
[
"Apache-2.0"
] |
permissive
|
dupin64/vertexium
|
4e7f71503ab14b0f2e82a6c28028568bb119b5bd
|
8693af23e6a2bec69b31d10bcf6da3dc0ffe9e10
|
refs/heads/master
| 2021-01-23T04:53:18.870399
| 2017-01-25T01:38:05
| 2017-01-25T01:38:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,254
|
java
|
package org.vertexium.property;
import org.vertexium.Authorizations;
import org.vertexium.Metadata;
import org.vertexium.Property;
import org.vertexium.Visibility;
import org.vertexium.util.IncreasingTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
public class MutablePropertyImpl extends MutableProperty {
private final String key;
private final String name;
private Set<Visibility> hiddenVisibilities;
private Object value;
private Visibility visibility;
private long timestamp;
private final Metadata metadata;
public MutablePropertyImpl(String key, String name, Object value, Metadata metadata, Long timestamp, Set<Visibility> hiddenVisibilities, Visibility visibility) {
if (metadata == null) {
metadata = new Metadata();
}
this.key = key;
this.name = name;
this.value = value;
this.metadata = metadata;
this.timestamp = timestamp == null ? IncreasingTime.currentTimeMillis() : timestamp;
this.visibility = visibility;
this.hiddenVisibilities = hiddenVisibilities;
}
public String getKey() {
return key;
}
public String getName() {
return name;
}
public Object getValue() {
return value;
}
@Override
public long getTimestamp() {
return timestamp;
}
public Visibility getVisibility() {
return visibility;
}
public Metadata getMetadata() {
return metadata;
}
@Override
public Iterable<Visibility> getHiddenVisibilities() {
if (this.hiddenVisibilities == null) {
return new ArrayList<>();
}
return this.hiddenVisibilities;
}
@Override
public boolean isHidden(Authorizations authorizations) {
if (hiddenVisibilities != null) {
for (Visibility v : getHiddenVisibilities()) {
if (authorizations.canRead(v)) {
return true;
}
}
}
return false;
}
public void setValue(Object value) {
this.value = value;
}
@Override
public void setTimestamp(long timestamp) {
this.timestamp = timestamp;
}
public void setVisibility(Visibility visibility) {
this.visibility = visibility;
}
@Override
public void addHiddenVisibility(Visibility visibility) {
if (this.hiddenVisibilities == null) {
this.hiddenVisibilities = new HashSet<>();
}
this.hiddenVisibilities.add(visibility);
}
@Override
public void removeHiddenVisibility(Visibility visibility) {
if (this.hiddenVisibilities == null) {
this.hiddenVisibilities = new HashSet<>();
}
this.hiddenVisibilities.remove(visibility);
}
@Override
protected void updateMetadata(Property property) {
Collection<Metadata.Entry> entries = new ArrayList<>(property.getMetadata().entrySet());
this.metadata.clear();
for (Metadata.Entry metadataEntry : entries) {
this.metadata.add(metadataEntry.getKey(), metadataEntry.getValue(), metadataEntry.getVisibility());
}
}
}
|
[
"joe@fernsroth.com"
] |
joe@fernsroth.com
|
88f4231a282f54b757116aa8576d8f91fa21fdf6
|
e0b11a101c6ef411b5b281d3e6a09242bdef96cc
|
/day22 分布式唯一主键+FastDFS+JVM/代码/my-canal-demo/src/main/java/com/qf/canal/TestCanalClient.java
|
31bc5b1dd9fbe9446abaf2e1c7e18a9d299341bb
|
[] |
no_license
|
lei720/phase-4
|
9bf26ef8877eebf1d8fa70998807a087ece73b57
|
3a9cb4d27a3cc7e1f907b29b941ce1e4e3d9ac3d
|
refs/heads/main
| 2023-08-18T17:59:23.504331
| 2021-10-16T06:08:37
| 2021-10-16T06:08:37
| 417,735,056
| 0
| 0
| null | 2021-10-16T06:07:07
| 2021-10-16T06:07:07
| null |
UTF-8
|
Java
| false
| false
| 4,839
|
java
|
package com.qf.canal;
import java.net.InetSocketAddress;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.otter.canal.client.CanalConnector;
import com.alibaba.otter.canal.client.CanalConnectors;
import com.alibaba.otter.canal.protocol.Message;
import com.alibaba.otter.canal.protocol.CanalEntry.Column;
import com.alibaba.otter.canal.protocol.CanalEntry.Entry;
import com.alibaba.otter.canal.protocol.CanalEntry.EntryType;
import com.alibaba.otter.canal.protocol.CanalEntry.EventType;
import com.alibaba.otter.canal.protocol.CanalEntry.RowChange;
import com.alibaba.otter.canal.protocol.CanalEntry.RowData;
import com.qf.canal.util.RedisUtil;
/**
* @author Thor
* @公众号 Java架构栈
*/
public class TestCanalClient {
public static void main(String args[]) {
// 创建链接,hostname位canal服务器ip port位canal服务器端口,username,password可不填
CanalConnector connector = CanalConnectors.newSingleConnector(new InetSocketAddress("127.0.0.1",
11111), "example", "", "");
int batchSize = 1000;
try {
connector.connect();
connector.subscribe(".*\\..*");
connector.rollback();
while (true) {
Message message = connector.getWithoutAck(batchSize); // 获取指定数量的数据
long batchId = message.getId();
int size = message.getEntries().size();
if (batchId == -1 || size == 0) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
} else {
printEntry(message.getEntries());
}
connector.ack(batchId); // 提交确认
// connector.rollback(batchId); // 处理失败, 回滚数据
}
} finally {
connector.disconnect();
}
}
private static void printEntry(List<Entry> entrys) {
for (Entry entry : entrys) {
if (entry.getEntryType() == EntryType.TRANSACTIONBEGIN || entry.getEntryType() == EntryType.TRANSACTIONEND) {
continue;
}
RowChange rowChage = null;
try {
rowChage = RowChange.parseFrom(entry.getStoreValue());
} catch (Exception e) {
throw new RuntimeException("ERROR ## parser of eromanga-event has an error , data:" + entry.toString(),
e);
}
EventType eventType = rowChage.getEventType();
System.out.println(String.format("================> binlog[%s:%s] , name[%s,%s] , eventType : %s",
entry.getHeader().getLogfileName(), entry.getHeader().getLogfileOffset(),
entry.getHeader().getSchemaName(), entry.getHeader().getTableName(),
eventType));
for (RowData rowData : rowChage.getRowDatasList()) {
if (eventType == EventType.DELETE) {
redisDelete(rowData.getBeforeColumnsList());
} else if (eventType == EventType.INSERT) {
redisInsert(rowData.getAfterColumnsList());
} else {
System.out.println("-------> before");
printColumn(rowData.getBeforeColumnsList());
System.out.println("-------> after");
//对于热点数据防止高并发下的redis的脏读的出现。那么可以用先更新数据库,后删除缓存的策略。
redisDelete(rowData.getBeforeColumnsList());
// redisUpdate(rowData.getAfterColumnsList());
printColumn(rowData.getAfterColumnsList());
}
}
}
}
/**
* 打印变化的数据
*
* @param columns
*/
private static void printColumn(List<Column> columns) {
for (Column column : columns) {
System.out.println(column.getName() + " : " + column.getValue() + " update=" + column.getUpdated());
}
}
/**
* 数据插入同步redis
*
* @param columns
*/
private static void redisInsert(List<Column> columns) {
JSONObject json = new JSONObject();
for (Column column : columns) {
json.put(column.getName(), column.getValue());
}
if (columns.size() > 0) {
RedisUtil.stringSet("user:" + columns.get(0).getValue(), json.toJSONString());
}
}
/**
* 更新同步redis
*
* @param columns
*/
private static void redisUpdate(List<Column> columns) {
JSONObject json = new JSONObject();
for (Column column : columns) {
json.put(column.getName(), column.getValue());
}
if (columns.size() > 0) {
RedisUtil.stringSet("user:" + columns.get(0).getValue(), json.toJSONString());
}
}
/**
* 数据删除同步redis
*
* @param columns
*/
private static void redisDelete(List<Column> columns) {
JSONObject json = new JSONObject();
for (Column column : columns) {
json.put(column.getName(), column.getValue());
}
if (columns.size() > 0) {
RedisUtil.delKey("user:" + columns.get(0).getValue());
}
}
}
|
[
"790165133@qq.com"
] |
790165133@qq.com
|
b669deb6b21673518e0795e7e617592c51efa148
|
92e9b3d38f21631869235962c2109c55f9d51fc1
|
/plugins/entando-plugin-jpfrontshortcut/src/main/java/org/entando/entando/plugins/jpfrontshortcut/apsadmin/tags/ApsAjaxActionParamSubTag.java
|
d50cdc4a1f380817f4e838b20a804ccf8d828489
|
[] |
no_license
|
muddasani/entando-components
|
17014a155e71ce0e7eb5c4c0fa3a14b89866dd20
|
74757435156cb2a1b71df55f0db82bb3f27260e4
|
refs/heads/master
| 2020-12-25T04:26:58.795455
| 2015-08-05T08:26:32
| 2015-08-05T08:26:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,178
|
java
|
/*
* Copyright 2013-Present Entando Corporation (http://www.entando.com) All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.entando.entando.plugins.jpfrontshortcut.apsadmin.tags;
import com.agiletec.apsadmin.tags.ApsActionParamSubTag;
import com.opensymphony.xwork2.util.ValueStack;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.entando.entando.plugins.jpfrontshortcut.apsadmin.tags.util.ApsAjaxActionParamComponent;
/**
* @author E.Santoboni
*/
public class ApsAjaxActionParamSubTag extends ApsActionParamSubTag {
@Override
public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse resp) {
ApsAjaxActionParamTag parent = (ApsAjaxActionParamTag) findAncestorWithClass(this, ApsAjaxActionParamTag.class);
return parent.getComponent();
}
@Override
protected void populateParams() {
super.populateParams();
ApsAjaxActionParamComponent component = (ApsAjaxActionParamComponent) this.getComponent();
component.setParam(this.getName(), this.getValue());
}
}
|
[
"eugenio.santoboni@gmail.com"
] |
eugenio.santoboni@gmail.com
|
1520b1bf9d80418d7cb9e1fa6839a07324716397
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/37/org/apache/commons/math/complex/Complex_reciprocal_299.java
|
a7d960c32eea95ee0167012a33c5cf6bded79aa1
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 2,064
|
java
|
org apach common math complex
represent complex number number
real imaginari part
implement arithmet oper handl code nan
infinit valu rule link java lang doubl
link equal equival relat instanc
code nan real imaginari part
consid equal
code nani
code nan
code nan nani
note contradict ieee standard float
point number test code fail
code code nan method
link org apach common math util precis equal
equal primit link org apach common math util precis
conform ieee conform standard behavior
java object type
implement serializ
version
complex field element fieldel complex serializ
inherit doc inheritdoc
complex reciproc
isnan
nan
real imaginari
nan
infinit isinfinit
fast math fastmath ab real fast math fastmath ab imaginari
real imaginari
scale real imaginari
creat complex createcomplex scale scale
imaginari real
scale imaginari real
creat complex createcomplex scale scale
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
d13f482f81fde547590b59a9d3c09051d879f86b
|
0e87e32fb92c5080e76257d94c04b2ec05b023fe
|
/src/test/java/org/compass/core/test/querybuilder/fuzzylookup/FuzzyLookupTests.java
|
e0b6e6d936e1c5066a4bb8fd6572186b2b795d46
|
[
"Apache-2.0"
] |
permissive
|
molindo/elastic-compass
|
7216e4f69bc75bbfcd91c3b7a43a2cc48453f2c5
|
dd8c19e48efd9f620a92e07f7b35fefae556b9fc
|
refs/heads/master
| 2016-09-06T15:09:45.331273
| 2011-05-09T09:51:33
| 2011-05-09T09:51:33
| 1,649,609
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,241
|
java
|
/*
* Copyright 2004-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.compass.core.test.querybuilder.fuzzylookup;
import org.compass.core.CompassSession;
import org.compass.core.test.AbstractTestCase;
/**
* @author kimchy
*/
public class FuzzyLookupTests extends AbstractTestCase {
protected String[] getMappings() {
return new String[]{"querybuilder/fuzzylookup/mapping.cpm.xml"};
}
public void testFuzzyLookup() {
CompassSession session = openSession();
A a = new A();
a.id = 1;
a.value = "text";
session.save(a);
assertEquals(1, session.find("test~0.5").length());
session.close();
}
}
|
[
"stf+git@molindo.at"
] |
stf+git@molindo.at
|
2ec5311656bfd2adccfa72773d1d9da9fb3505b0
|
9ae5965121f143fa5a5781b413d686311b734a2c
|
/samples/testsuite-posters/src/posters/functional/errorChecking/TChangeEmailWrongPassword.java
|
d9395b8942338fa057f8a64bae0cc1ff4ae08950
|
[
"EPL-2.0",
"MIT",
"EPL-1.0",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"MPL-2.0",
"CDDL-1.1",
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause"
] |
permissive
|
andre-becker/XLT
|
41395ec5b673193412b26df35cc64e05ac55c9b4
|
174f9f467ab3094bcdbf80bcea818134a9d1180a
|
refs/heads/master
| 2022-04-21T09:20:03.443914
| 2020-03-12T09:48:41
| 2020-03-12T09:48:41
| 257,584,910
| 0
| 0
|
Apache-2.0
| 2020-04-21T12:14:39
| 2020-04-21T12:14:38
| null |
UTF-8
|
Java
| false
| false
| 516
|
java
|
/*
* NOTE: This file is generated. Do not edit! Your changes will be lost.
*/
package posters.functional.errorChecking;
import com.xceptance.xlt.api.engine.scripting.AbstractScriptTestCase;
import com.xceptance.xlt.api.engine.scripting.ScriptName;
/**
* <p>Verifies that an error is shown if the user wants to update the email and types a wrong password.</p>
*/
@ScriptName
("posters.functional.errorChecking.TChangeEmailWrongPassword")
public class TChangeEmailWrongPassword extends AbstractScriptTestCase
{
}
|
[
"4639399+jowerner@users.noreply.github.com"
] |
4639399+jowerner@users.noreply.github.com
|
4c6750ffd95c5511f8381a604ac95178d99cf438
|
df7bba03d18d77cac6e28488b2397d7175d1d496
|
/discovery-plugin-strategy/discovery-plugin-strategy-starter-gateway/src/main/java/com/nepxion/discovery/plugin/strategy/gateway/monitor/DefaultGatewayStrategyMonitor.java
|
2df155fe2bcd7d9b593d04735bb098a70b6c91a6
|
[
"Apache-2.0"
] |
permissive
|
HeHeHa/Discovery
|
35503142d513d933bc39b8c9ce45c00b3894ca65
|
add40efbf58a51c1dbe090bca0c7822ee3e6f818
|
refs/heads/master
| 2023-01-21T07:50:40.621980
| 2020-11-23T04:54:19
| 2020-11-23T04:54:19
| 315,515,070
| 2
| 0
|
Apache-2.0
| 2020-11-24T04:09:11
| 2020-11-24T04:09:10
| null |
UTF-8
|
Java
| false
| false
| 783
|
java
|
package com.nepxion.discovery.plugin.strategy.gateway.monitor;
/**
* <p>Title: Nepxion Discovery</p>
* <p>Description: Nepxion Discovery</p>
* <p>Copyright: Copyright (c) 2017-2050</p>
* <p>Company: Nepxion</p>
* @author Haojun Ren
* @version 1.0
*/
import org.springframework.web.server.ServerWebExchange;
import com.nepxion.discovery.plugin.strategy.monitor.StrategyMonitor;
public class DefaultGatewayStrategyMonitor extends StrategyMonitor implements GatewayStrategyMonitor {
@Override
public void monitor(ServerWebExchange exchange) {
spanBuild();
loggerOutput();
loggerDebug();
spanOutput(null);
}
@Override
public void release(ServerWebExchange exchange) {
loggerClear();
spanFinish();
}
}
|
[
"1394997@qq.com"
] |
1394997@qq.com
|
17c9f4e23a73d6810dd87040458bfd6af01662e2
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithLambdasApi21/applicationModule/src/main/java/applicationModulepackageJava9/Foo357.java
|
7da44f18701e3a9a66346f42f1718fa4b333c9eb
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 575
|
java
|
package applicationModulepackageJava9;
public class Foo357 {
public void foo0() {
final Runnable anything0 = () -> System.out.println("anything");
new applicationModulepackageJava9.Foo356().foo9();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
public void foo6() {
foo5();
}
public void foo7() {
foo6();
}
public void foo8() {
foo7();
}
public void foo9() {
foo8();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
eeae5fd86b26842409129ec725f517b4f46d18aa
|
bbfa56cfc81b7145553de55829ca92f3a97fce87
|
/plugins/org.ifc4emf.metamodel.ifc/src/IFC2X3/jaxb/IfcStructuralSurfaceMemberImplAdapter.java
|
7f62b89105bcdbae115f3b5d0300fdc33053da0a
|
[] |
no_license
|
patins1/raas4emf
|
9e24517d786a1225344a97344777f717a568fdbe
|
33395d018bc7ad17a0576033779dbdf70fa8f090
|
refs/heads/master
| 2021-08-16T00:27:12.859374
| 2021-07-30T13:01:48
| 2021-07-30T13:01:48
| 87,889,951
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 322
|
java
|
package IFC2X3.jaxb;
import org.eclipse.emf.ecore.jaxb.EObjectImplAdapter;
import IFC2X3.IfcStructuralSurfaceMember;
import IFC2X3.impl.IfcStructuralSurfaceMemberImpl;
public class IfcStructuralSurfaceMemberImplAdapter extends EObjectImplAdapter<IfcStructuralSurfaceMemberImpl, IfcStructuralSurfaceMember> {
}
|
[
"patins@f81cfaeb-dc96-476f-bd6d-b0d16e38694e"
] |
patins@f81cfaeb-dc96-476f-bd6d-b0d16e38694e
|
418f3b9264cc080c09c6129f1f4e0ac15fcf1713
|
a129386863ccf46cab82819db1dcffac78dd73a0
|
/target/generated-sources/jooq/org/jooq/sources/routines/StTransform1.java
|
a31ec4f5d57447a8416af5a667bfe45c885791e4
|
[] |
no_license
|
alsamancov/jooqzkgis
|
5f01ef8cebfb9c3a9e6e535080987d94fad3290d
|
9082a66c349a1715e5ecdff41671e535eaa45ce4
|
refs/heads/master
| 2021-09-08T12:31:49.647475
| 2018-03-09T16:48:24
| 2018-03-09T16:48:24
| 124,567,389
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| true
| 2,469
|
java
|
/*
* This file is generated by jOOQ.
*/
package org.jooq.sources.routines;
import com.vividsolutions.jts.geom.Geometry;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Parameter;
import org.jooq.impl.AbstractRoutine;
import org.jooq.sources.Public;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.10.3"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class StTransform1 extends AbstractRoutine<Geometry> {
private static final long serialVersionUID = -1891221416;
/**
* The parameter <code>public.st_transform.RETURN_VALUE</code>.
*/
public static final Parameter<Geometry> RETURN_VALUE = createParameter("RETURN_VALUE", org.jooq.impl.DefaultDataType.getDefaultDataType("USER-DEFINED"), false, false, new GeometryConverter());
/**
* The parameter <code>public.st_transform._1</code>.
*/
public static final Parameter<Geometry> _1 = createParameter("_1", org.jooq.impl.DefaultDataType.getDefaultDataType("USER-DEFINED"), false, true, new GeometryConverter());
/**
* The parameter <code>public.st_transform._2</code>.
*/
public static final Parameter<Integer> _2 = createParameter("_2", org.jooq.impl.SQLDataType.INTEGER, false, true);
/**
* Create a new routine call instance
*/
public StTransform1() {
super("st_transform", Public.PUBLIC, org.jooq.impl.DefaultDataType.getDefaultDataType("USER-DEFINED"), new GeometryConverter());
setReturnParameter(RETURN_VALUE);
addInParameter(_1);
addInParameter(_2);
setOverloaded(true);
}
/**
* Set the <code>_1</code> parameter IN value to the routine
*/
public void set__1(Geometry value) {
setValue(_1, value);
}
/**
* Set the <code>_1</code> parameter to the function to be used with a {@link org.jooq.Select} statement
*/
public void set__1(Field<Geometry> field) {
setField(_1, field);
}
/**
* Set the <code>_2</code> parameter IN value to the routine
*/
public void set__2(Integer value) {
setValue(_2, value);
}
/**
* Set the <code>_2</code> parameter to the function to be used with a {@link org.jooq.Select} statement
*/
public void set__2(Field<Integer> field) {
setField(_2, field);
}
}
|
[
"alsamancov@gmail.com"
] |
alsamancov@gmail.com
|
827209d7abd4769a85df54743bd8d890a9c4177c
|
0b4844d550c8e77cd93940e4a1d8b06d0fbeabf7
|
/JavaSource/dream/part/rpt/mastat/service/MaPtRecStatListService.java
|
ad1e31c3a6d936faa18e035aa1189e69892b6b0e
|
[] |
no_license
|
eMainTec-DREAM/DREAM
|
bbf928b5c50dd416e1d45db3722f6c9e35d8973c
|
05e3ea85f9adb6ad6cbe02f4af44d941400a1620
|
refs/heads/master
| 2020-12-22T20:44:44.387788
| 2020-01-29T06:47:47
| 2020-01-29T06:47:47
| 236,912,749
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 682
|
java
|
package dream.part.rpt.mastat.service;
import java.util.List;
import common.bean.User;
import dream.part.rpt.mastat.dto.MaPtRecStatCommonDTO;
/**
* 자재입고내역 - 목록 service
* @author ssong
* @version $Id:$
* @since 1.0
*/
public interface MaPtRecStatListService
{
/**
* grid find
* @author ssong
* @version $Id:$
* @param maPtRecStatCommonDTO
* @since 1.0
*
* @return 조회 결과
* @throws Exception
*/
public List findList(MaPtRecStatCommonDTO maPtRecStatCommonDTO);
public String findTotalCount(MaPtRecStatCommonDTO maPtRecStatCommonDTO, User user);
}
|
[
"HN4741@10.31.0.185"
] |
HN4741@10.31.0.185
|
e759214fb159cc4402af6558598c385424ddcb8f
|
06b84a787aaf6080c9c64152eca6ac5314d3247f
|
/workcraft/WorkcraftCore/src/org/workcraft/utils/BisonSyntaxUtils.java
|
9814f2bccc82efa5528f06c6665c902876975320
|
[
"MIT"
] |
permissive
|
workcraft/workcraft
|
d2b2aeb90013c3c862d8f2ad502767d70429f5c9
|
19a18bd2b2fd0eb26481321bd9d4b551f50df77e
|
refs/heads/master
| 2023-08-31T01:49:46.457080
| 2023-08-24T18:39:07
| 2023-08-24T18:39:07
| 51,246,530
| 44
| 270
|
MIT
| 2023-09-07T08:26:52
| 2016-02-07T12:18:49
|
Java
|
UTF-8
|
Java
| false
| false
| 5,664
|
java
|
package org.workcraft.utils;
import org.workcraft.gui.controls.CodePanel;
import org.workcraft.tasks.ExternalProcessOutput;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class BisonSyntaxUtils {
private static final String MESSAGE_REGEX = "(.+)\\R";
private static final String MESSAGE_WITH_LOCATION_REGEX = "(.+) \\(located at (\\d+).(\\d+)(-((\\d+).)?(\\d+))?\\)\\R";
private static final int MESSAGE_GROUP = 1;
private static final int START_ROW_GROUP = 2;
private static final int START_COL_GROUP = 3;
private static final int END_ROW_GROUP = 6;
private static final int END_COL_GROUP = 7;
private static final Pattern UNEXPECTED_MESSAGE_PATTERN = Pattern.compile("^syntax error, unexpected (.+)$");
private static final Pattern UNDECLARED_MESSAGE_PATTERN = Pattern.compile("^Undeclared identifier: (.+)$");
private static final String SYNTAX_ERROR_PREFIX = "Syntax error: ";
private static final String WARNING_PREFIX = "Potential issue: ";
public static void processPossibleWarning(String patternPrefix, ExternalProcessOutput output, CodePanel codePanel) {
String text = output == null ? "" : output.getStderrString();
Pattern messageWithLocationPattern = Pattern.compile(patternPrefix + MESSAGE_WITH_LOCATION_REGEX, Pattern.UNIX_LINES);
Matcher messageWithLocationMatcher = messageWithLocationPattern.matcher(text);
Pattern messagePattern = Pattern.compile(patternPrefix + MESSAGE_REGEX, Pattern.UNIX_LINES);
Matcher messageMatcher = messagePattern.matcher(text);
if (messageWithLocationMatcher.find()) {
String message = WARNING_PREFIX + processDetail(messageWithLocationMatcher.group(MESSAGE_GROUP));
LogUtils.logWarning(message);
String startRowStr = messageWithLocationMatcher.group(START_ROW_GROUP);
String startColStr = messageWithLocationMatcher.group(START_COL_GROUP);
String endRowStr = messageWithLocationMatcher.group(END_ROW_GROUP);
String endColStr = messageWithLocationMatcher.group(END_COL_GROUP);
int startRow = Integer.parseInt(startRowStr);
int startCol = Integer.parseInt(startColStr);
int endRow = endRowStr == null ? startRow : Integer.parseInt(endRowStr);
int endCol = endColStr == null ? startCol + 1 : Integer.parseInt(endColStr);
int startPos = TextUtils.getTextPosition(codePanel.getText(), startRow, startCol);
int endPos = TextUtils.getTextPosition(codePanel.getText(), endRow, endCol);
codePanel.highlightWarning(startPos, endPos, message);
} else if (messageMatcher.find()) {
String message = WARNING_PREFIX + processDetail(messageMatcher.group(MESSAGE_GROUP));
LogUtils.logWarning(message);
codePanel.showWarningStatus(message);
} else {
String message = "Expression is syntactically correct";
codePanel.showInfoStatus(message);
LogUtils.logInfo(message);
}
}
public static void processSyntaxError(String patternPrefix, ExternalProcessOutput output, CodePanel codePanel) {
String text = output == null ? "" : output.getStderrString();
Pattern messageWithLocationPattern = Pattern.compile(patternPrefix + MESSAGE_WITH_LOCATION_REGEX, Pattern.UNIX_LINES);
Matcher messageWithLocationMatcher = messageWithLocationPattern.matcher(text);
Pattern messagePattern = Pattern.compile(patternPrefix + MESSAGE_REGEX, Pattern.UNIX_LINES);
Matcher messageMatcher = messagePattern.matcher(text);
if (messageWithLocationMatcher.find()) {
String message = SYNTAX_ERROR_PREFIX + processDetail(messageWithLocationMatcher.group(MESSAGE_GROUP));
LogUtils.logError(message);
String startRowStr = messageWithLocationMatcher.group(START_ROW_GROUP);
String startColStr = messageWithLocationMatcher.group(START_COL_GROUP);
String endRowStr = messageWithLocationMatcher.group(END_ROW_GROUP);
String endColStr = messageWithLocationMatcher.group(END_COL_GROUP);
int startRow = Integer.parseInt(startRowStr);
int startCol = Integer.parseInt(startColStr);
int endRow = endRowStr == null ? startRow : Integer.parseInt(endRowStr);
int endCol = endColStr == null ? startCol + 1 : Integer.parseInt(endColStr);
int startPos = TextUtils.getTextPosition(codePanel.getText(), startRow, startCol);
int endPos = TextUtils.getTextPosition(codePanel.getText(), endRow, endCol);
codePanel.highlightError(startPos, endPos, message);
} else if (messageMatcher.find()) {
String message = SYNTAX_ERROR_PREFIX + processDetail(messageMatcher.group(MESSAGE_GROUP));
LogUtils.logError(message);
codePanel.showErrorStatus(message);
} else {
String message = "Syntax check failed.";
LogUtils.logError(message);
codePanel.showErrorStatus(message);
}
}
private static String processDetail(String detail) {
Matcher unexpectedMessageMatcher = UNEXPECTED_MESSAGE_PATTERN.matcher(detail);
if (unexpectedMessageMatcher.find()) {
return "unexpected " + unexpectedMessageMatcher.group(1);
}
Matcher undeclaredMessageMatcher = UNDECLARED_MESSAGE_PATTERN.matcher(detail);
if (undeclaredMessageMatcher.find()) {
return "undeclared identifier '" + undeclaredMessageMatcher.group(1) + "'";
}
return detail;
}
}
|
[
"danilovesky@gmail.com"
] |
danilovesky@gmail.com
|
303b097d0fa468ed2ba3b535a6141b432f05b2bc
|
03d23c78e7bbbfc455b9e5bf8c0e9f3b5884c4c0
|
/es.kybele.elastic.models.pcn/src/pcn/validation/PCNMonetaryBenefitValidator.java
|
e061bbe79223161eace527a241adaa543e0c776d
|
[] |
no_license
|
AngelMorenoMDE/innovaserv_pcn
|
d0d9826f3d2129572f25943f0194b6c4569fc710
|
c77a4f750030fe415a29b8908ee107692dd71b48
|
refs/heads/master
| 2021-01-13T00:52:41.297309
| 2016-03-02T16:49:01
| 2016-03-02T16:49:01
| 52,977,811
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 506
|
java
|
/**
*
* $Id$
*/
package pcn.validation;
/**
* A sample validator interface for {@link pcn.PCNMonetaryBenefit}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface PCNMonetaryBenefitValidator {
boolean validate();
}
|
[
"a.morenoper@gmail.com"
] |
a.morenoper@gmail.com
|
5ddd29599805046cad832b7fb10d8744a790944c
|
24ac6c55bf6d48f9add548134d520d94a7ed5079
|
/src/main/java/com/github/chen004/eswrapper/ElasticSearchService.java
|
82d897e84b04eccaf013acda613495ad84ca08fd
|
[
"MIT"
] |
permissive
|
chen0040/simple-elasticsearch-service
|
5f3910935f09f188d2c4c003b39d3394eb6d775d
|
c713d60a9976c8a2105ce0fd708db6b7beed2437
|
refs/heads/master
| 2021-08-11T06:54:55.534142
| 2017-11-13T08:59:18
| 2017-11-13T08:59:18
| 109,196,431
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,106
|
java
|
package com.github.chen004.eswrapper;
import com.github.chen004.eswrapper.models.IndexMap;
import org.elasticsearch.search.builder.SearchSourceBuilder;
import java.io.IOException;
import java.util.List;
/**
* Created by xschen on 16/7/2017.
*/
public interface ElasticSearchService {
void index(String indexName) throws IOException;
void index(Object source, String indexName, String typeName, String id) throws IOException;
void indexMapping(String indexName, String typeName, IndexMap im) throws IOException;
void create(Object source, String indexName, String typeName, String id) throws IOException;
void update(Object source, String indexName, String typeName, String id) throws IOException;
<T> T get(String id, String indexName, String typeName, Class<T> clazz) throws IOException;
boolean exists(String id, String indexName, String typeName) throws IOException;
void delete(String indexName, String typeName, String id) throws IOException;
<T> List<T> search(String indexName, String typeName, SearchSourceBuilder builder, Class<T> clazz) throws IOException;
}
|
[
"xs0040@gmail.com"
] |
xs0040@gmail.com
|
06ee113a7b03f5963188a668fb61fa3f634d7045
|
a5d01febfd8d45a61f815b6f5ed447e25fad4959
|
/Source Code/5.5.1/sources/com/iqoption/d/akq.java
|
6ca49ffe487937f67c8faf2c9c8d705e11b5de74
|
[] |
no_license
|
kkagill/Decompiler-IQ-Option
|
7fe5911f90ed2490687f5d216cb2940f07b57194
|
c2a9dbbe79a959aa1ab8bb7a89c735e8f9dbc5a6
|
refs/heads/master
| 2020-09-14T20:44:49.115289
| 2019-11-04T06:58:55
| 2019-11-04T06:58:55
| 223,236,327
| 1
| 0
| null | 2019-11-21T18:17:17
| 2019-11-21T18:17:16
| null |
UTF-8
|
Java
| false
| false
| 880
|
java
|
package com.iqoption.d;
import android.databinding.DataBindingComponent;
import android.databinding.ViewDataBinding;
import android.support.annotation.NonNull;
import android.support.constraint.ConstraintLayout;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
/* compiled from: ToolsContentSettingsBinding */
public abstract class akq extends ViewDataBinding {
@NonNull
public final TextView agA;
@NonNull
public final RecyclerView bTK;
@NonNull
public final ConstraintLayout bTL;
protected akq(DataBindingComponent dataBindingComponent, View view, int i, RecyclerView recyclerView, TextView textView, ConstraintLayout constraintLayout) {
super(dataBindingComponent, view, i);
this.bTK = recyclerView;
this.agA = textView;
this.bTL = constraintLayout;
}
}
|
[
"yihsun1992@gmail.com"
] |
yihsun1992@gmail.com
|
8e91784196396c1619da8ba255d75296271517b1
|
e5af7ef41d139a4bbbbfe00496006206878ce7de
|
/edu.uci.isr.bna4/src/edu/uci/isr/bna4/facets/IHasMutableReferencePointFractionOffset.java
|
0606e4248dd32da89bede4c5ba9319d803bf3a40
|
[] |
no_license
|
isr-uci-edu/ArchStudio4
|
766fced9044592d7e88ff3a8e70595dddb465380
|
ba6d9eeeb7aa4cf2348b7036e754841006211b53
|
refs/heads/master
| 2020-12-30T09:59:19.361848
| 2015-10-27T05:37:27
| 2015-10-27T05:37:27
| 13,413,160
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 361
|
java
|
package edu.uci.isr.bna4.facets;
public interface IHasMutableReferencePointFractionOffset extends IRelativeMovable, IHasBoundingBox {
public static final String REFERENCE_POINT_FRACTION_OFFSET_PROPERTY_NAME = "referencePointFractionOffset";
public float[] getReferencePointFractionOffset();
public void setReferencePointFractionOffset(float[] offset);
}
|
[
"sahendrickson@gmail.com"
] |
sahendrickson@gmail.com
|
0bd9d80f970682ab41fc69ec9ab3659029626568
|
27f902afe3f47037fab636d2da9635d57b581636
|
/AsyncTaskLoaderTest/app/src/main/java/com/dstrube/asynctaskloadertest/asynckloadersample/MainActivity.java
|
2aef5a9a2f0a73cb37efc6f6055c9be25628ae08
|
[] |
no_license
|
dstrube1/playground_android
|
704349ce48eb20b9a3b4ffc0ea83b7e945c5c2c7
|
fd21e578d020939ab67910d989905c30d80763ea
|
refs/heads/master
| 2023-06-24T17:18:23.973314
| 2023-06-20T17:12:50
| 2023-06-20T17:12:50
| 182,904,948
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 925
|
java
|
package com.dstrube.asynctaskloadertest.asynckloadersample;
import android.app.Activity;
import android.os.Bundle;
import com.dstrube.asynctaskloadertest.R;
//import android.support.v4.app.FragmentActivity;
//import android.support.v4.app.FragmentManager;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// to give support on lower android version, we are not calling getFragmentManager()
// FragmentManager fm = getSupportFragmentManager();
//
// // Create the list fragment and add it as our sole content.
// if (fm.findFragmentById(android.R.id.content) == null) {
// DataListFragment list = new DataListFragment();
//
//
// fm.beginTransaction().add(android.R.id.content, list).commit();
}
}
|
[
"dstrube@gmail.com"
] |
dstrube@gmail.com
|
c0f985b3f85dcdd77d0d1956311a4f4ef259b0f8
|
6635387159b685ab34f9c927b878734bd6040e7e
|
/src/net/simonvt/numberpicker/SnapchatTimePicker$d.java
|
e3be1cb523d753ae4a9301391efa32d39177725f
|
[] |
no_license
|
RepoForks/com.snapchat.android
|
987dd3d4a72c2f43bc52f5dea9d55bfb190966e2
|
6e28a32ad495cf14f87e512dd0be700f5186b4c6
|
refs/heads/master
| 2021-05-05T10:36:16.396377
| 2015-07-16T16:46:26
| 2015-07-16T16:46:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 232
|
java
|
package net.simonvt.numberpicker;
public abstract interface SnapchatTimePicker$d {}
/* Location:
* Qualified Name: net.simonvt.numberpicker.SnapchatTimePicker.d
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
3b542e55bd681cd9451a26b6be712b6c38beabd4
|
e56afd6c2bcc8d11524909aabeee200155bade02
|
/Hello03/app/src/main/java/com/callor/hello/JoinActivity.java
|
2e7ac036240abc40a9dcb96ac99a25176367585f
|
[
"Apache-2.0"
] |
permissive
|
dkdud8140/Android
|
8ee93d000c77d0073add185ef30bb3fb3ce2b9f5
|
911a77afe19d21ee50f9f47de4e7fdebc62bb5c8
|
refs/heads/main
| 2023-07-28T03:26:52.972875
| 2021-08-23T04:57:57
| 2021-08-23T04:57:57
| 389,844,199
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,383
|
java
|
package com.callor.hello;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import org.w3c.dom.Text;
public class JoinActivity extends AppCompatActivity {
private TextView view_id = null ;
private TextView view_password = null ;
private TextView view_name = null ;
private TextView view_addr = null ;
private TextView view_tel = null ;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_join);
view_id = findViewById(R.id.view_id);
view_password = findViewById(R.id.view_password);
view_name = findViewById(R.id.view_name);
view_addr = findViewById(R.id.view_addr);
view_tel = findViewById(R.id.view_tel);
Intent intent = getIntent();
String id = intent.getExtras().getString("id");
String password = intent.getExtras().getString("password");
String name = intent.getExtras().getString("name");
String addr = intent.getExtras().getString("addr");
String tel = intent.getExtras().getString("tel");
view_id.setText(id);
view_password.setText(password);
view_name.setText(name);
view_addr.setText(addr);
view_tel.setText(tel);
}
}
|
[
"cho.ay4@gmail.com"
] |
cho.ay4@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.