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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cccd3aeadf1bfda779ab5be658fbb200887a58be
|
013e83b707fe5cd48f58af61e392e3820d370c36
|
/spring-context/src/main/java/org/springframework/cache/concurrent/package-info.java
|
834705cad91c5c1f267092942593f100a8bac918
|
[] |
no_license
|
yuexiaoguang/spring4
|
8376f551fefd33206adc3e04bc58d6d32a825c37
|
95ea25bbf46ee7bad48307e41dcd027f1a0c67ae
|
refs/heads/master
| 2020-05-27T20:27:54.768860
| 2019-09-02T03:39:57
| 2019-09-02T03:39:57
| 188,770,867
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 318
|
java
|
/**
* 基于{@code java.util.concurrent}的缓存的实现包.
* 提供 {@link org.springframework.cache.CacheManager CacheManager}和{@link org.springframework.cache.Cache Cache}实现,
* 以便在Spring上下文中使用, 在运行时使用基于线程池的JDK.
*/
package org.springframework.cache.concurrent;
|
[
"yuexiaoguang@vortexinfo.cn"
] |
yuexiaoguang@vortexinfo.cn
|
4729c9264eb09dd5cb37c41fd99863e318757e09
|
34491e8a3ed1499d840e0d18dcb8101546150720
|
/Designer/designer/src/org/oryxeditor/server/BPMN2PNServlet.java
|
53f724d03ed81cab0955f9d10a6450f7b3e7a747
|
[
"MIT"
] |
permissive
|
adele-robots/fiona
|
128061a86593bc75b3c5b0cf591de2158c681cc6
|
1ef1fb18e620e18b2187e79e4cca31d66d3f1fd2
|
refs/heads/master
| 2020-06-19T04:42:14.203355
| 2020-06-10T10:46:58
| 2020-06-10T10:46:58
| 196,561,178
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,605
|
java
|
package org.oryxeditor.server;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
import de.hpi.bpmn.BPMNDiagram;
import de.hpi.bpmn.analysis.BPMNNormalizer;
import de.hpi.bpmn.rdf.BPMN11RDFImporter;
import de.hpi.bpmn.rdf.BPMNRDFImporter;
import de.hpi.bpmn2pn.converter.Converter;
import de.hpi.bpmn2pn.converter.StandardConverter;
import de.hpi.petrinet.PetriNet;
import de.hpi.petrinet.layouting.PetriNetLayouter;
import de.hpi.petrinet.serialization.erdf.PetriNeteRDFSerializer;
/**
* Copyright (c) 2008 Kai Schlichting
*
* 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.
*/
public class BPMN2PNServlet extends HttpServlet {
private static final long serialVersionUID = -4589304713944851993L;
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
try {
//TODO correct mime type??
res.setContentType("application/xhtml");
String rdf = req.getParameter("rdf");
DocumentBuilder builder;
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
builder = factory.newDocumentBuilder();
Document document = builder.parse(new ByteArrayInputStream(rdf.getBytes("UTF-8")));
processDocument(document, res.getWriter());
} catch (ParserConfigurationException e) {
e.printStackTrace();
} catch (SAXException e) {
e.printStackTrace();
}
}
protected void processDocument(Document document, PrintWriter writer) {
String type = new StencilSetUtil().getStencilSet(document);
BPMNDiagram diagram = null;
if (type.equals("bpmn.json"))
diagram = new BPMNRDFImporter(document).loadBPMN();
else if (type.equals("bpmn1.1.json"))
diagram = new BPMN11RDFImporter(document).loadBPMN();
// Normalize diagram
BPMNNormalizer normalizer = new BPMNNormalizer(diagram);
normalizer.normalizeMultipleEndEvents = false;
normalizer.normalize();
Converter conv = new StandardConverter(diagram);
PetriNet pn = conv.convert();
PetriNetLayouter layouter = new PetriNetLayouter(pn);
layouter.layout();
String erdf = new PetriNeteRDFSerializer(this.getServletContext()).serializeDiagram(pn);
writer.write(erdf);
}
}
|
[
"root@euve263700.serverprofi24.net"
] |
root@euve263700.serverprofi24.net
|
69934ff904fc1e3393e809a9d19e7061ae33d72a
|
e471c3990167e8674a943ad519cf33b3ef7a5c0f
|
/network/com/ankamagames/dofus/network/messages/game/context/roleplay/houses/HousePropertiesMessage.java
|
2c1a5d4b1f7cce074e93adbfd8463b69f1fa0c68
|
[] |
no_license
|
Romain-P/Dofus-2.44.0-JProtocol
|
379f4008acc5a15cd536ce2a23458f5a57348215
|
db79dab05c3bacc6ec67b40d83741a16328a1fae
|
refs/heads/master
| 2021-05-15T17:33:24.510521
| 2017-10-20T08:24:03
| 2017-10-20T08:24:03
| 107,510,404
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,188
|
java
|
// Created by Heat the 2017-10-20 01:53:24+02:00
package com.ankamagames.dofus.network.messages.game.context.roleplay.houses;
import org.heat.dofus.network.NetworkType;
import org.heat.dofus.network.NetworkMessage;
import org.heat.shared.io.DataWriter;
import org.heat.shared.io.DataReader;
import org.heat.shared.io.BooleanByteWrapper;
import com.ankamagames.dofus.network.InternalProtocolTypeManager;
@SuppressWarnings("all")
public class HousePropertiesMessage extends NetworkMessage {
public static final int PROTOCOL_ID = 5734;
// vi32
public int houseId;
// array,i32
public int[] doorsOnMap;
// com.ankamagames.dofus.network.types.game.house.HouseInstanceInformations
public com.ankamagames.dofus.network.types.game.house.HouseInstanceInformations properties;
public HousePropertiesMessage() {}
public HousePropertiesMessage(
int houseId,
int[] doorsOnMap,
com.ankamagames.dofus.network.types.game.house.HouseInstanceInformations properties) {
this.houseId = houseId;
this.doorsOnMap = doorsOnMap;
this.properties = properties;
}
@Override
public int getProtocolId() {
return 5734;
}
@Override
public void serialize(DataWriter writer) {
writer.write_vi32(this.houseId);
writer.write_ui16(doorsOnMap.length);
writer.write_array_i32(this.doorsOnMap);
writer.write_ui16(this.properties.getProtocolId());
this.properties.serialize(writer);
}
@Override
public void deserialize(DataReader reader) {
this.houseId = reader.read_vi32();
int doorsOnMap_length = reader.read_ui16();
this.doorsOnMap = reader.read_array_i32(doorsOnMap_length);
int properties_typeId = reader.read_ui16();
this.properties =
(com.ankamagames.dofus.network.types.game.house.HouseInstanceInformations)
InternalProtocolTypeManager.get(properties_typeId);
this.properties.deserialize(reader);
}
@Override
public String toString() {
return "HousePropertiesMessage("
+ "houseId="
+ this.houseId
+ ", doorsOnMap="
+ java.util.Arrays.toString(this.doorsOnMap)
+ ", properties="
+ this.properties
+ ')';
}
}
|
[
"romain.pillot@epitech.eu"
] |
romain.pillot@epitech.eu
|
1f508429276b26ec22227e3bcfa72847e379643b
|
d3975566e7aa79f7db824c290d62e778d3f26363
|
/sk.stuba.fiit.perconik.core.java/src/sk/stuba/fiit/perconik/core/java/dom/NodeClassFilters.java
|
43c6b424c9b2e641f7d44e93fc022df479da78d9
|
[
"MIT"
] |
permissive
|
pruttned/perconik-ua-eclipse
|
15f780913b01effe2b2593bb884f04e4c6b3d0b1
|
b94d618e7d7693bc0ef65830f0c13f7537e364f3
|
refs/heads/master
| 2021-01-21T19:01:28.147299
| 2014-07-22T12:57:25
| 2014-07-22T12:57:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,787
|
java
|
package sk.stuba.fiit.perconik.core.java.dom;
import org.eclipse.jdt.core.dom.ASTNode;
import org.eclipse.jdt.core.dom.Annotation;
import org.eclipse.jdt.core.dom.Comment;
import org.eclipse.jdt.core.dom.Expression;
import org.eclipse.jdt.core.dom.Name;
import org.eclipse.jdt.core.dom.Statement;
import static sk.stuba.fiit.perconik.core.java.dom.NodeClassFilter.of;
public final class NodeClassFilters
{
private static final NodeClassFilter<?, Annotation> annotations = of(Annotation.class);
private static final NodeClassFilter<?, Comment> comments = of(Comment.class);
private static final NodeClassFilter<?, Expression> expressions = of(Expression.class);
private static final NodeClassFilter<?, Name> names = of(Name.class);
private static final NodeClassFilter<?, Statement> statements = of(Statement.class);
private NodeClassFilters()
{
throw new AssertionError();
}
private static final <N extends ASTNode, F extends ASTNode> NodeClassFilter<N, F> cast(final NodeClassFilter<?, ?> filter)
{
// only for stateless internal singletons shared across all types
@SuppressWarnings("unchecked")
NodeClassFilter<N, F> result = (NodeClassFilter<N, F>) filter;
return result;
}
public static final <N extends ASTNode> NodeClassFilter<N, Comment> annotations()
{
return cast(annotations);
}
public static final <N extends ASTNode> NodeClassFilter<N, Comment> comments()
{
return cast(comments);
}
public static final <N extends ASTNode> NodeClassFilter<N, Comment> expressions()
{
return cast(expressions);
}
public static final <N extends ASTNode> NodeClassFilter<N, Comment> names()
{
return cast(names);
}
public static final <N extends ASTNode> NodeClassFilter<N, Comment> statements()
{
return cast(statements);
}
}
|
[
"pavol.zbell@gmail.com"
] |
pavol.zbell@gmail.com
|
1ef01f6dd18844e542b5b988e18a1c00b7c44ae7
|
fba8af31d5d36d8a6cf0c341faed98b6cd5ec0cb
|
/src/main/java/com/alipay/api/domain/AlipayEbppJfexportBillQueryModel.java
|
959dcb943dc297f3e383b46b67e778b908e2bd91
|
[
"Apache-2.0"
] |
permissive
|
planesweep/alipay-sdk-java-all
|
b60ea1437e3377582bd08c61f942018891ce7762
|
637edbcc5ed137c2b55064521f24b675c3080e37
|
refs/heads/master
| 2020-12-12T09:23:19.133661
| 2020-01-09T11:04:31
| 2020-01-09T11:04:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,131
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 查询支付宝缴费订单
*
* @author auto create
* @since 1.0, 2018-10-19 10:38:53
*/
public class AlipayEbppJfexportBillQueryModel extends AlipayObject {
private static final long serialVersionUID = 5428689416355513134L;
/**
* 支付宝的业务订单号,具有唯一性和幂等性
*/
@ApiField("bill_no")
private String billNo;
/**
* 业务类型英文名称
*/
@ApiField("biz_type")
private String bizType;
/**
* 拓展字段,json串(key-value对)
*/
@ApiField("extend_field")
private String extendField;
public String getBillNo() {
return this.billNo;
}
public void setBillNo(String billNo) {
this.billNo = billNo;
}
public String getBizType() {
return this.bizType;
}
public void setBizType(String bizType) {
this.bizType = bizType;
}
public String getExtendField() {
return this.extendField;
}
public void setExtendField(String extendField) {
this.extendField = extendField;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
bec279776f4ac08bca4d9d708d73e65f35a23b0e
|
0a532b9d7ebc356ab684a094b3cf840b6b6a17cd
|
/java-source/src/main/com/sun/org/apache/bcel/internal/generic/IUSHR.java
|
fa11296d99dfb68ff726462df2de74746413a92e
|
[
"Apache-2.0"
] |
permissive
|
XWxiaowei/JavaCode
|
ac70d87cdb0dfc6b7468acf46c84565f9d198e74
|
a7e7cd7a49c36db3ee479216728dd500eab9ebb2
|
refs/heads/master
| 2022-12-24T10:21:28.144227
| 2020-08-22T08:01:43
| 2020-08-22T08:01:43
| 98,070,624
| 10
| 4
|
Apache-2.0
| 2022-12-16T04:23:38
| 2017-07-23T02:51:51
|
Java
|
UTF-8
|
Java
| false
| false
| 3,678
|
java
|
/*
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.sun.org.apache.bcel.internal.generic;
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Apache" and "Apache Software Foundation" and
* "Apache BCEL" must not be used to endorse or promote products
* derived from this software without prior written permission. For
* written permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* "Apache BCEL", nor may "Apache" appear in their name, without
* prior written permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
/**
* IUSHR - Logical shift right int
* <PRE>Stack: ..., value1, value2 -> ..., result</PRE>
*
* @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
*/
public class IUSHR extends ArithmeticInstruction {
public IUSHR() {
super(com.sun.org.apache.bcel.internal.Constants.IUSHR);
}
/**
* Call corresponding visitor method(s). The order is:
* Call visitor methods of implemented interfaces first, then
* call methods according to the class hierarchy in descending order,
* i.e., the most specific visitXXX() call comes last.
*
* @param v Visitor object
*/
public void accept(Visitor v) {
v.visitTypedInstruction(this);
v.visitStackProducer(this);
v.visitStackConsumer(this);
v.visitArithmeticInstruction(this);
v.visitIUSHR(this);
}
}
|
[
"2809641033@qq.com"
] |
2809641033@qq.com
|
cc36299ca5b6aaef676ff4bbc00ae6b75b79ede9
|
8abfe589faf5a4859b3a8e298ad5b99f1a7648bf
|
/permission-library/src/main/java/android/support/v4ox/net/ConnectivityManagerCompatHoneycombMR2.java
|
f03aba8c371b4d6f6c5d0f11b831984bb19174ab
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
qiongqiong-wu/permissionsModule
|
cfb2e4f5b6ca9b80157b5442acd77ee2749c3b99
|
dd126a94188f0ef8011bbfba93656f2da7314a75
|
refs/heads/master
| 2023-03-24T09:23:37.440698
| 2017-06-05T07:57:47
| 2017-06-05T07:57:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,178
|
java
|
/*
* Copyright (C) 2012 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 android.support.v4ox.net;
import static android.net.ConnectivityManager.TYPE_BLUETOOTH;
import static android.net.ConnectivityManager.TYPE_ETHERNET;
import static android.net.ConnectivityManager.TYPE_MOBILE;
import static android.net.ConnectivityManager.TYPE_MOBILE_DUN;
import static android.net.ConnectivityManager.TYPE_MOBILE_HIPRI;
import static android.net.ConnectivityManager.TYPE_MOBILE_MMS;
import static android.net.ConnectivityManager.TYPE_MOBILE_SUPL;
import static android.net.ConnectivityManager.TYPE_WIFI;
import static android.net.ConnectivityManager.TYPE_WIMAX;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
* Implementation of ConnectivityManagerCompat that can use Honeycomb MR2 APIs.
*/
class ConnectivityManagerCompatHoneycombMR2 {
public static boolean isActiveNetworkMetered(ConnectivityManager cm) {
final NetworkInfo info = cm.getActiveNetworkInfo();
if (info == null) {
// err on side of caution
return true;
}
final int type = info.getType();
switch (type) {
case TYPE_MOBILE:
case TYPE_MOBILE_DUN:
case TYPE_MOBILE_HIPRI:
case TYPE_MOBILE_MMS:
case TYPE_MOBILE_SUPL:
case TYPE_WIMAX:
return true;
case TYPE_WIFI:
case TYPE_BLUETOOTH:
case TYPE_ETHERNET:
return false;
default:
// err on side of caution
return true;
}
}
}
|
[
"nuborisar@gmail.com"
] |
nuborisar@gmail.com
|
2572459894f1dda915c56fe175e0532055421cdc
|
54c1dcb9a6fb9e257c6ebe7745d5008d29b0d6b6
|
/app/src/main/java/com/p118pd/sdk/C5538IiiL1l.java
|
2fb22d14958a0f8ada568f41ff39e0917ae8a428
|
[] |
no_license
|
rcoolboy/guilvN
|
3817397da465c34fcee82c0ca8c39f7292bcc7e1
|
c779a8e2e5fd458d62503dc1344aa2185101f0f0
|
refs/heads/master
| 2023-05-31T10:04:41.992499
| 2021-07-07T09:58:05
| 2021-07-07T09:58:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,749
|
java
|
package com.p118pd.sdk;
/* renamed from: com.pd.sdk.I丨ii丨L1l reason: invalid class name and case insensitive filesystem */
public class C5538IiiL1l extends C9841ill1Ii {
public static final int o0ooOOo = 24;
public C5538IiiL1l(byte[] bArr) {
super(bArr);
if (OooO00o(bArr, 0, bArr.length)) {
throw new IllegalArgumentException("attempt to create weak DESede key");
}
}
public static boolean OooO00o(byte[] bArr, int i) {
return OooO00o(bArr, i, bArr.length - i);
}
public static boolean OooO00o(byte[] bArr, int i, int i2) {
while (i < i2) {
if (C9841ill1Ii.OooO00o(bArr, i)) {
return true;
}
i += 8;
}
return false;
}
public static boolean OooO0O0(byte[] bArr, int i) {
boolean z = false;
for (int i2 = i; i2 != i + 8; i2++) {
if (bArr[i2] != bArr[i2 + 8]) {
z = true;
}
}
return z;
}
public static boolean OooO0OO(byte[] bArr, int i) {
int i2 = i;
boolean z = false;
boolean z2 = false;
boolean z3 = false;
while (true) {
boolean z4 = true;
if (i2 == i + 8) {
break;
}
int i3 = i2 + 8;
z |= bArr[i2] != bArr[i3];
int i4 = i2 + 16;
z2 |= bArr[i2] != bArr[i4];
if (bArr[i3] == bArr[i4]) {
z4 = false;
}
z3 |= z4;
i2++;
}
return z && z2 && z3;
}
public static boolean OooO0Oo(byte[] bArr, int i) {
return bArr.length == 16 ? OooO0O0(bArr, i) : OooO0OO(bArr, i);
}
}
|
[
"593746220@qq.com"
] |
593746220@qq.com
|
6204b035d10ba831ac06fec0ded68790aad442be
|
e0e3aa56cc6fe504b543a7057ecb560cb7850bb8
|
/reflectionBew1/fruitshop/controller/FruitReader.java
|
3b51ea976f1bcfee32edd97324625fe5f9678272
|
[] |
no_license
|
Mahnazshamissa/Reflection
|
e87aafcc2492e333aca027fac2cfe35f1318ca0b
|
1270a7f386d32edcd8582fffbb5d8ef7335838d8
|
refs/heads/master
| 2020-04-08T17:07:51.467275
| 2019-02-22T14:28:56
| 2019-02-22T14:28:56
| 159,552,164
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 580
|
java
|
package reflectionBew1.fruitshop.controller;
import reflectionBew1.fruitshop.model.Fruit;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public class FruitReader {
public static List<String> asList(String filePath) {
return FileReader.lines(filePath)
.collect(Collectors.toList());
}
protected static Fruit toFruits(Map.Entry<String, Long> fruitsAsString) {
return Fruit.builder()
.name(fruitsAsString.getKey()).amount(fruitsAsString.getValue())
.build();
}
}
|
[
"f.bakhshiani@gmail.com"
] |
f.bakhshiani@gmail.com
|
e26f766156dd3442ee2c36849a9b6cf04be09786
|
5d059d98ffd879095d503f8db0bc701fab13ed11
|
/sfm/src/main/java/org/sfm/csv/impl/writer/EndOfRowAppender.java
|
15f3a8451602cee490490114fffbb1f649484751
|
[
"MIT"
] |
permissive
|
sripadapavan/SimpleFlatMapper
|
c74cce774b0326d5ea5ea141ee9f3caf07a98372
|
8359a08abb3a321b3a47f91cd4046ca1a88590fd
|
refs/heads/master
| 2021-01-17T08:11:57.463205
| 2016-02-06T14:38:44
| 2016-02-07T16:50:53
| 51,313,393
| 1
| 0
| null | 2016-02-08T17:23:12
| 2016-02-08T17:23:12
| null |
UTF-8
|
Java
| false
| false
| 519
|
java
|
package org.sfm.csv.impl.writer;
import org.sfm.csv.CellWriter;
import org.sfm.map.FieldMapper;
import org.sfm.map.MappingContext;
public class EndOfRowAppender<S>
implements FieldMapper<S, Appendable> {
private final CellWriter cellWriter;
public EndOfRowAppender(CellWriter cellWriter) {
this.cellWriter = cellWriter;
}
@Override
public void mapTo(S source, Appendable target, MappingContext<? super S> context) throws Exception {
cellWriter.endOfRow(target);
}
}
|
[
"arnaud.roger@gmail.com"
] |
arnaud.roger@gmail.com
|
f97ff2d9720a67d0200676c88d5183a2c8801694
|
de161b3750a643a0a4bc158446c83b9537fdb2e8
|
/compiler/codegen/src/main/java/com/asakusafw/dag/compiler/codegen/ExtractInputAdapterGenerator.java
|
81e28af0edc1d28c3ec7b4fc6a467f0e23d970ac
|
[
"Apache-2.0"
] |
permissive
|
shino/asakusafw-dag
|
2ff22707256bb173a454a820c2858b5e16e4f01f
|
f0c8d7e192a8267ede5ac898eabd8dc5fc3c03bb
|
refs/heads/master
| 2021-01-18T03:03:03.980482
| 2016-09-13T05:47:35
| 2016-09-13T05:47:35
| 57,190,874
| 0
| 0
| null | 2016-04-27T06:53:00
| 2016-04-27T06:53:00
| null |
UTF-8
|
Java
| false
| false
| 2,718
|
java
|
/**
* Copyright 2011-2016 Asakusa Framework Team.
*
* 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.asakusafw.dag.compiler.codegen;
import static com.asakusafw.dag.compiler.codegen.AsmUtil.*;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
import com.asakusafw.dag.compiler.model.ClassData;
import com.asakusafw.dag.runtime.skeleton.ExtractInputAdapter;
import com.asakusafw.dag.utils.common.Arguments;
import com.asakusafw.lang.compiler.model.description.ClassDescription;
import com.asakusafw.lang.compiler.model.description.TypeDescription;
/**
* Generates {@link ExtractInputAdapter}.
*/
public class ExtractInputAdapterGenerator {
/**
* Generates {@link ExtractInputAdapter} class.
* @param context the current context
* @param input the target input spec
* @param target the target class
* @return the generated class data
*/
public ClassData generate(ClassGeneratorContext context, Spec input, ClassDescription target) {
ClassWriter writer = newWriter(target, ExtractInputAdapter.class);
defineAdapterConstructor(writer, ExtractInputAdapter.class, v -> {
v.visitVarInsn(Opcodes.ALOAD, 0);
getConst(v, input.id);
v.visitMethodInsn(
Opcodes.INVOKEVIRTUAL,
target.getInternalName(), "bind", //$NON-NLS-1$
Type.getMethodDescriptor(typeOf(ExtractInputAdapter.class), typeOf(String.class)),
false);
v.visitInsn(Opcodes.POP);
});
return new ClassData(target, writer::toByteArray);
}
/**
* Represents an input spec for extract-kind vertices.
*/
public static class Spec {
final String id;
final TypeDescription dataType;
/**
* Creates a new instance.
* @param id the input ID
* @param dataType the input data type
*/
public Spec(String id, TypeDescription dataType) {
Arguments.requireNonNull(id);
Arguments.requireNonNull(dataType);
this.id = id;
this.dataType = dataType;
}
}
}
|
[
"arakawa@nautilus-technologies.com"
] |
arakawa@nautilus-technologies.com
|
babec1451994be57959f546130921ce2448d70dd
|
bccb412254b3e6f35a5c4dd227f440ecbbb60db9
|
/hl7/model/V2_5/table/Table0495.java
|
8f71d6377a13b312251ab693060a7904a059a5c2
|
[] |
no_license
|
nlp-lap/Version_Compatible_HL7_Parser
|
8bdb307aa75a5317265f730c5b2ac92ae430962b
|
9977e1fcd1400916efc4aa161588beae81900cfd
|
refs/heads/master
| 2021-03-03T15:05:36.071491
| 2020-03-09T07:54:42
| 2020-03-09T07:54:42
| 245,967,680
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,487
|
java
|
package hl7.model.V2_5.table;
import hl7.bean.table.Table;
public class Table0495 extends Table{
private static final String VERSION = "2.5";
public static Table getInstance(){
if(table==null) new Table0495();
return table;
}
public static final String UPP = "?UPP";
public static final String ANT = "ANT";
public static final String BIL = "BIL";
public static final String DIS = "DIS";
public static final String EXT = "EXT";
public static final String L = "L";
public static final String LAT = "LAT";
public static final String LLQ = "LLQ";
public static final String LOW = "LOW";
public static final String LUQ = "LUQ";
public static final String MED = "MED";
public static final String POS = "POS";
public static final String PRO = "PRO";
public static final String R = "R";
public static final String RLQ = "RLQ";
public static final String RUQ = "RUQ";
private Table0495(){
setTableName("Body Site Modifier");
setOID("2.16.840.1.113883.12.495");
putMap("?UPP", "Upper");
putMap("ANT", "Anterior");
putMap("BIL", "Bilateral");
putMap("DIS", "Distal");
putMap("EXT", "External");
putMap("L", "Left");
putMap("LAT", "Lateral");
putMap("LLQ", "Quadrant, Left Lower");
putMap("LOW", "Lower");
putMap("LUQ", "Quadrant, Left Upper");
putMap("MED", "Medial");
putMap("POS", "Posterior");
putMap("PRO", "Proximal");
putMap("R", "Right");
putMap("RLQ", "Quadrant, Right Lower");
putMap("RUQ", "Quadrant, Right Upper");
}
}
|
[
"terminator800@hanmail.net"
] |
terminator800@hanmail.net
|
835f5a42cbac30279089c6ed2429c76a7eb30e52
|
67d27996beda81312c84213ff78870b87c485030
|
/sip-modules/sip-core/src/main/java/com/haoyu/sip/core/jdbc/MybatisDao.java
|
140cbf5a488b4bee05ca52b741a1257bf5f9856a
|
[] |
no_license
|
osuisumi/ss
|
84582fc3fbd82a549bb0320d1c1a3ca2566ebae3
|
6fdc679ad8a3e1bf5f96d8e797a6a9c83e7c39db
|
refs/heads/master
| 2021-01-22T04:33:35.862729
| 2017-02-13T01:28:32
| 2017-02-13T01:28:32
| 81,550,993
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,083
|
java
|
/**
*
*/
package com.haoyu.sip.core.jdbc;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.session.ResultHandler;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.haoyu.sip.core.utils.PropertiesLoader;
/**
* @author lianghuahuang
*
*/
public class MybatisDao extends SqlSessionDaoSupport {
protected SqlSessionFactory sqlSessionFactory;
protected String getDbUuid(){
return PropertiesLoader.get("db.uuid");
}
@Autowired
public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) {
if (this.getSqlSession()==null) {
this.setSqlSessionTemplate(new SqlSessionTemplate(sqlSessionFactory));
}
}
protected String namespace = StringUtils.replace(this.getClass().getName(),
"Dao", "Mapper");
public void setNamespace(String namespace) {
this.namespace = namespace;
}
/**
* {@inheritDoc}
*/
public <T> T selectOne(String statement) {
return this.getSqlSession().selectOne(namespace+"."+statement);
}
/**
* {@inheritDoc}
*/
public <T> T selectOne(String statement, Object parameter) {
return this.getSqlSession().selectOne(namespace+"."+statement, parameter);
}
/**
* {@inheritDoc}
*/
public <T> T selectByPrimaryKey(Object parameter) {
return this.getSqlSession().selectOne(namespace+".selectByPrimaryKey", parameter);
}
/**
* {@inheritDoc}
*/
public <K, V> Map<K, V> selectMap(String statement, String mapKey) {
return this.getSqlSession().selectMap(namespace+"."+statement, mapKey);
}
/**
* {@inheritDoc}
*/
public <K, V> Map<K, V> selectMap(String statement, Object parameter,
String mapKey) {
return this.getSqlSession().selectMap(namespace+"."+statement, parameter,
mapKey);
}
/**
* {@inheritDoc}
*/
public <K, V> Map<K, V> selectMap(String statement, Object parameter,
String mapKey, PageBounds pageBounds) {
if(pageBounds==null){
return this.selectMap(statement, parameter, mapKey);
}
return this.getSqlSession().selectMap(namespace+"."+statement, parameter,
mapKey, pageBounds);
}
/**
* {@inheritDoc}
*/
public <E> List<E> selectList(String statement) {
return this.getSqlSession(). selectList(namespace+"."+statement);
}
/**
* {@inheritDoc}
*/
public <E> List<E> selectList(String statement, Object parameter) {
return this.getSqlSession(). selectList(namespace+"."+statement, parameter);
}
/**
* {@inheritDoc}
*/
public <E> List<E> selectList(String statement, Object parameter,
PageBounds pageBounds) {
if(pageBounds==null){
return this.selectList(statement, parameter);
}
return this.getSqlSession().selectList(namespace+"."+statement, parameter,
pageBounds);
}
/**
* {@inheritDoc}
*/
public void select(String statement, ResultHandler handler) {
this.getSqlSession().select(namespace+"."+statement, handler);
}
/**
* {@inheritDoc}
*/
public void select(String statement, Object parameter, ResultHandler handler) {
this.getSqlSession().select(namespace+"."+statement, parameter, handler);
}
/**
* {@inheritDoc}
*/
public void select(String statement, Object parameter, PageBounds pageBounds,
ResultHandler handler) {
if(pageBounds==null){
this.select(statement, parameter, handler);
}else{
this.getSqlSession().select(namespace+"."+statement, parameter, pageBounds, handler);
}
}
/**
* {@inheritDoc}
*/
public int insert(String statement) {
return this.getSqlSession().insert(namespace+"."+statement);
}
public int insert(Object parameter){
return this.getSqlSession().insert(namespace+".insert", parameter);
}
/**
* {@inheritDoc}
*/
public int insert(String statement, Object parameter) {
return this.getSqlSession().insert(namespace+"."+statement, parameter);
}
/**
* {@inheritDoc}
*/
public int update(String statement) {
return this.getSqlSession().update(namespace+"."+statement);
}
/**
* {@inheritDoc}
*/
public int update(String statement, Object parameter) {
return this.getSqlSession().update(namespace+"."+statement, parameter);
}
/**
* {@inheritDoc}
*/
public int update(Object parameter) {
return this.getSqlSession().update(namespace+".updateByPrimaryKey", parameter);
}
/**
* {@inheritDoc}
*/
public int delete(String statement) {
return this.getSqlSession().delete(namespace+"."+statement);
}
/**
* {@inheritDoc}
*/
public int delete(String statement, Object parameter) {
return this.getSqlSession().delete(namespace+"."+statement, parameter);
}
public int deleteByPhysics(Object parameter){
return this.getSqlSession().delete(namespace+".deleteByPhysics", parameter);
}
public int deleteByLogic(Object parameter){
return this.getSqlSession().update(namespace+".deleteByLogic",parameter);
}
}
|
[
"osuisumi@163.com"
] |
osuisumi@163.com
|
48c6edae073abe987c5cbbbfd2c0a98785c2f357
|
f5d524f14d4c7f7c50e7a1e4a87eb8bec244c9ea
|
/src/test/java/com/test/MoreThread1.java
|
e8b8fe62024c6eb1ce6c18d3cc8ef81d03b06a0b
|
[] |
no_license
|
adaideluanmaku/SP_TEST_TOOLS
|
22bc851bff83c56b34d9d46db70dd800dae55f83
|
1de0bbd674e42a7779ea857854243211c10e0dea
|
refs/heads/master
| 2021-05-09T05:34:21.394085
| 2018-02-12T03:23:34
| 2018-02-12T03:23:34
| 119,313,905
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,373
|
java
|
package com.test;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class MoreThread1 {
//线程池
private static ThreadPoolExecutor pool = new ThreadPoolExecutor(3, 5, 5,
TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(10),
new ThreadPoolExecutor.CallerRunsPolicy());
//定义一个线程,相当于父线程
private static Thread t;
//保存线程池中当前所有正在执行任务的活动线程,相当于子线程
private static List<Thread> activeThreads = new ArrayList<Thread>(5);
//根据参数b的值,决定是启动线程还是停止线程
public static void test(boolean start) {
if(start){
//创建父线程
t = new Thread() {
@Override
public void run() {
//创建线程池要执行的两个任务r1和r2。这两个任务都是死循环
Runnable r1 = new Thread() {
@Override
public void run() {
Thread currentThread = Thread.currentThread();
activeThreads.add(currentThread);
int i = 1;
while (true) {
System.out.println(currentThread.getName()+"------------>"+(i++));
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
};
Runnable r2 = new Thread() {
@Override
public void run() {
Thread currentThread = Thread.currentThread();
activeThreads.add(currentThread);
int i = 1;
while (true) {
System.out.println(currentThread.getName()+"------------>"+(i++));
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
};
//在线程池中执行两个任务r1和r2,实际上相当于在t中开启了两个子线程,而两个子线程由线程池维护而已
pool.execute(r1);
pool.execute(r2);
};
};
//启动父线程
t.start();
}else{
System.out.println("start========================================");
//停止父线程,这里使用了Thread类的暴力停止方法stop
t.stop();
//遍历并停止所有子线程,这里使用了Thread类的暴力停止方法stop
//这里一定要把子线程也停止掉,原来以为停止了父线程,子线程就会自动停止,事实证明这是错误的,必须在停止父线程的同时停止掉子线程才能彻底停止掉整个线程
for (int i = 0; i < activeThreads.size(); i++) {
Thread t = activeThreads.get(i);
System.out.println(t.getName());
t.stop();
}
System.out.println("stop==========================================");
}
}
//测试方法
public static void main(String[] args) {
//传入false代表要启动线程执行任务
test(true);
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
//执行任务5秒之后,传入false代表要停止线程
test(false);
}
}
|
[
"531617826@qq.com"
] |
531617826@qq.com
|
fbcf1ed5849a98344dd35903546327788352c7e9
|
a8e47979b45aa428a32e16ddc4ee2578ec969dfe
|
/base/api/src/main/java/org/artifactory/api/bintray/distribution/reporting/model/BintrayProductModel.java
|
942ee87291f9a9f3f2132a48a8c904c3e1360e78
|
[] |
no_license
|
nuance-sspni/artifactory-oss
|
da505cac1984da131a61473813ee2c7c04d8d488
|
af3fcf09e27cac836762e9957ad85bdaeec6e7f8
|
refs/heads/master
| 2021-07-22T20:04:08.718321
| 2017-11-02T20:49:33
| 2017-11-02T20:49:33
| 109,313,757
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,541
|
java
|
/*
*
* Artifactory is a binaries repository manager.
* Copyright (C) 2016 JFrog Ltd.
*
* Artifactory is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Artifactory 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Artifactory. If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.artifactory.api.bintray.distribution.reporting.model;
import com.google.common.collect.Sets;
import java.util.Set;
/**
* @author Dan Feldman
*/
public class BintrayProductModel {
public String productName;
public Boolean created;
public Set<String> attachedPackages = Sets.newHashSet();
public BintrayProductModel(String productName) {
this.productName = productName;
}
public void merge(BintrayProductModel productModel) {
this.attachedPackages.addAll(productModel.attachedPackages);
}
public String getProductName() {
return productName;
}
public Boolean getCreated() {
return created;
}
public Set<String> getAttachedPackages() {
return attachedPackages;
}
}
|
[
"tuan-anh.nguyen@nuance.com"
] |
tuan-anh.nguyen@nuance.com
|
5b081f7424286f64ba332a9574200ebe56d5e291
|
cf2be80cf86ba39b894091a8d8b1c29d9ea36d48
|
/application-context-study/src/main/java/com/fly/context/demo/Foo.java
|
a0a97d9428c1f29df6761383c063ae5440930cf6
|
[] |
no_license
|
BobShare/fly-springboot
|
d1b8d56b6db3f0e44fe6c7726ac42a6fdc45ddb5
|
90cb7610da616f5af61bf0474ad588eb91ed78d3
|
refs/heads/master
| 2023-03-29T06:20:30.258454
| 2020-08-11T09:35:24
| 2020-08-11T09:35:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 150
|
java
|
package com.fly.context.demo;
/**
* @author zhangpanqin
*/
public class Foo {
public void init() {
System.out.println("init");
}
}
|
[
"zhangpanqin@outlook.com"
] |
zhangpanqin@outlook.com
|
91f4ed2eeb3d98478ebb860ed9670e166e412548
|
8eaa9ab38e99efb77f5d1029f0b57e58aec79f33
|
/app/src/main/java/buscardxian/ncrf/jiege/buscardxian/adapter/MyAdapter.java
|
17f2f9bbe528231826416dc734e00696ec8a2f3b
|
[] |
no_license
|
Spriteing/BusCardHeZe
|
9b9c90bea5ef3dc5ee6e9755c400eb25a0142be5
|
f3e883fa7a0439f3c425856a40f0986fd1674a42
|
refs/heads/master
| 2021-08-08T21:27:06.738483
| 2017-11-11T07:19:57
| 2017-11-11T07:19:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,425
|
java
|
package buscardxian.ncrf.jiege.buscardxian.adapter;
import android.content.Context;
import android.graphics.Color;
import android.os.Handler;
import android.text.TextPaint;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout.LayoutParams;
import java.util.ArrayList;
import java.util.List;
import buscardxian.ncrf.jiege.buscardxian.R;
import buscardxian.ncrf.jiege.buscardxian.tools.MyTextView;
import buscardxian.ncrf.jiege.buscardxian.util.SiteMsg_Util;
public class MyAdapter extends BaseAdapter {
private List<SiteMsg_Util> list = new ArrayList<>();
private LayoutInflater inflater;
private int index;
private MyTextView zdname, zdname1;
private ImageView img;
private FrameLayout layout;
private ImageView dqimg;
private Context context;
private int isdz;
public MyAdapter(List<SiteMsg_Util> list, Context context, int index, int isdz) {
this.list = list;
this.inflater = LayoutInflater.from(context);
this.context=context;
this.index = index;
this.isdz = isdz;
}
public int getCount() {
// TODO Auto-generated method stub
return list.size();
}
@Override
public Object getItem(int arg0) {
// TODO Auto-generated method stub
return list.get(arg0);
}
@Override
public long getItemId(int arg0) {
// TODO Auto-generated method stub
return arg0;
}
@Override
public View getView(int arg0, View view, ViewGroup arg2) {
view = inflater.inflate(R.layout.huangse_item, null);
zdname = view.findViewById(R.id.hhs_name);
zdname1 = view.findViewById(R.id.hhs_name1);
img = view.findViewById(R.id.type_img);
layout = view.findViewById(R.id.zdbuju);
LayoutParams lp;
lp = (LayoutParams) layout.getLayoutParams();
lp.width = context.getResources().getDimensionPixelSize(R.dimen.dp_1300) / list.size();
layout.setLayoutParams(lp);
zdname.setText(list.get(arg0).getStationName());
if (list.get(arg0).getStationName() != null) {
switch (list.get(arg0).getStationName().length()) {
case 2:
case 3:
case 4:
case 5:
zdname.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_22));
break;
case 6:
zdname.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_21));
break;
case 7:
zdname.setText(list.get(arg0).getStationName().substring(0, 4));
zdname1.setText(list.get(arg0).getStationName().substring(4, 7));
zdname1.setVisibility(View.VISIBLE);
zdname.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_22));
zdname1.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_22));
break;
case 8:
zdname.setText(list.get(arg0).getStationName().substring(0, 4));
zdname1.setText(list.get(arg0).getStationName().substring(4, 8));
zdname1.setVisibility(View.VISIBLE);
zdname.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_22));
zdname1.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_22));
break;
case 9:
zdname.setText(list.get(arg0).getStationName().substring(0, 5));
zdname1.setText(list.get(arg0).getStationName().substring(5, 9));
zdname1.setVisibility(View.VISIBLE);
zdname.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_22));
zdname1.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_22));
break;
case 10:
zdname.setText(list.get(arg0).getStationName().substring(0, 5));
zdname1.setText(list.get(arg0).getStationName().substring(5, 10));
zdname1.setVisibility(View.VISIBLE);
zdname.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_22));
zdname1.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_22));
break;
case 11:
zdname.setText(list.get(arg0).getStationName().substring(0, 6));
zdname1.setText(list.get(arg0).getStationName().substring(6, 11));
zdname1.setVisibility(View.VISIBLE);
zdname.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_21));
zdname1.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_21));
break;
case 12:
zdname.setText(list.get(arg0).getStationName().substring(0, 6));
zdname1.setText(list.get(arg0).getStationName().substring(6, 12));
zdname1.setVisibility(View.VISIBLE);
zdname.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_21));
zdname1.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_21));
break;
case 13:
zdname.setText(list.get(arg0).getStationName().substring(0, 7));
zdname1.setText(list.get(arg0).getStationName().substring(7, 13));
zdname1.setVisibility(View.VISIBLE);
zdname.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_19));
zdname1.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_21));
break;
case 14:
zdname.setText(list.get(arg0).getStationName().substring(0, 7));
zdname1.setText(list.get(arg0).getStationName().substring(7, 14));
zdname1.setVisibility(View.VISIBLE);
zdname.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_19));
zdname1.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_19));
break;
case 15:
zdname.setText(list.get(arg0).getStationName().substring(0, 8));
zdname1.setText(list.get(arg0).getStationName().substring(8, 15));
zdname1.setVisibility(View.VISIBLE);
zdname.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_18));
zdname1.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_19));
break;
case 16:
zdname.setText(list.get(arg0).getStationName().substring(0, 8));
zdname1.setText(list.get(arg0).getStationName().substring(8, 16));
zdname1.setVisibility(View.VISIBLE);
zdname.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_18));
zdname1.setTextSize(context.getResources().getDimensionPixelSize(R.dimen.sp_18));
break;
default:
break;
}
}
TextPaint tp = zdname.getPaint();
tp.setFakeBoldText(true);
TextPaint tp1 = zdname1.getPaint();
tp1.setFakeBoldText(true);
if (arg0 > index) {
img.setImageResource(R.mipmap.bs_yuan);
zdname.setTextColor(Color.parseColor("#000000"));
zdname1.setTextColor(Color.parseColor("#000000"));
} else if (arg0 == index) {
if (isdz == 1) {
img.setImageResource(R.mipmap.hs_yuan);
zdname.setTextColor(Color.parseColor("#ff0000"));
zdname1.setTextColor(Color.parseColor("#ff0000"));
} else {
dqimg = img;
handler.sendEmptyMessage(0x4141);
zdname.setTextColor(Color.parseColor("#ff0000"));
zdname1.setTextColor(Color.parseColor("#ff0000"));
}
} else {
img.setImageResource(R.mipmap.heise_yuan);
zdname.setTextColor(Color.parseColor("#000000"));
zdname1.setTextColor(Color.parseColor("#000000"));
}
return view;
}
Handler handler = new Handler() {
public void handleMessage(android.os.Message msg) {
switch (msg.what) {
case 0x4141:
dqimg.setImageResource(R.mipmap.bs_yuan);
handler.sendEmptyMessageDelayed(0x3131, 500);
break;
case 0x3131:
dqimg.setImageResource(R.mipmap.heise_yuan);
handler.sendEmptyMessageDelayed(0x4141, 500);
break;
default:
break;
}
};
};
}
|
[
"2295360491@qq.com"
] |
2295360491@qq.com
|
9df1a1ede610c233780e15b68bee27928e692eab
|
1fd05b32e1858a7a5a19f1804c32cb7f797443f6
|
/trunk/netx-shopping-mall/src/main/java/com/netx/shopping/enums/ProductStatusEnum.java
|
df58e57ea1182ebe996032eb10a78aca79467f5d
|
[] |
no_license
|
biantaiwuzui/netx
|
089a81cf53768121f99cb54a3daf2f6a1ec3d4c7
|
56c6e07864bd199befe90f8475bf72988c647392
|
refs/heads/master
| 2020-03-26T22:57:06.970782
| 2018-09-13T02:25:48
| 2018-09-13T02:25:48
| 145,498,445
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 653
|
java
|
package com.netx.shopping.enums;
/**
* Created By wj.liu
* Description: 商品状态枚举
* Date: 2017-09-14
*/
public enum ProductStatusEnum {
UP(1, "上架"),
DOWN(2, "下架"),
FORCEDOWN(3,"强制下架");
private Integer code;
private String name;
ProductStatusEnum(Integer code, String name){
this.code = code;
this.name = name;
}
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
[
"3043168786@qq.com"
] |
3043168786@qq.com
|
df21c89d9f1a1c2297800c1e6a285cbf30e03226
|
2c9e0541ed8a22bcdc81ae2f9610a118f62c4c4d
|
/harmony/tests/functional/src/test/functional/org/apache/harmony/test/func/reg/vm/btest6205/Btest6205.java
|
26fc4eb95bf0072253893643b4d6674b88b68bf0
|
[
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] |
permissive
|
JetBrains/jdk8u_tests
|
774de7dffd513fd61458b4f7c26edd7924c7f1a5
|
263c74f1842954bae0b34ec3703ad35668b3ffa2
|
refs/heads/master
| 2023-08-07T17:57:58.511814
| 2017-03-20T08:13:25
| 2017-03-20T08:16:11
| 70,048,797
| 11
| 9
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,368
|
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.harmony.test.func.reg.vm.btest6205;
import java.util.logging.Logger;
import org.apache.harmony.test.share.reg.RegressionTest;
/**
*/
public class Btest6205 extends RegressionTest {
static {
System.loadLibrary("Btest6205");
}
public static void main(String[] args) {
System.exit(new Btest6205().test(Logger.global, args));
}
public int test(Logger logger, String[] args) {
return runTest(new Btest6205()) ? pass() : fail();
}
static native boolean runTest(Object obj);
}
|
[
"vitaly.provodin@jetbrains.com"
] |
vitaly.provodin@jetbrains.com
|
3fef35bcf409d89e0ac35db7fe230a64867d1949
|
92ffd2d438119ffc4eab6dc23b15183e6ee7a108
|
/distributeme-generator/src/main/java/org/distributeme/generator/logwriter/LogWriter.java
|
72a6ac66ea1bff126163ecc6d8d30c177400067a
|
[
"MIT"
] |
permissive
|
jobe/distributeme
|
638715abe30f0a9b155076c52439af62b84e14cc
|
4b625b729e87aae8d2ff2eae87b3ec0c2e0ffc62
|
refs/heads/master
| 2021-01-18T00:36:17.554609
| 2016-04-15T21:48:13
| 2016-04-15T21:48:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 572
|
java
|
package org.distributeme.generator.logwriter;
/**
* A log writer which can be used to log output via custom framework (like util.logging, log4j, logback etc).
* @author lrosenberg
*
*/
public interface LogWriter {
String createExceptionOutput(String message, String exceptionName);
String createErrorOutput(String message);
String createErrorOutputWithException(String message, String exceptionName);
/**
* Provides code that is needed to initialize the logger.
* @param className
* @return
*/
String createLoggerInitialization(String className);
}
|
[
"leon.rosenberg@anotheria.net"
] |
leon.rosenberg@anotheria.net
|
868175741c2c341026ae5735f82e7ff0b2033cbd
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/18/18_7c469fe5e7e4073140d4a7d69fcfcf39c84437c3/ImageSerializer/18_7c469fe5e7e4073140d4a7d69fcfcf39c84437c3_ImageSerializer_t.java
|
c0e8f32284be766654da34eaca09dd83a83504ac
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,104
|
java
|
/*******************************************************************************
* Copyright (c) 2011 EclipseSource and others.
* 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
*
* Contributors:
* EclipseSource - initial API and implementation
******************************************************************************/
package org.eclipse.swt.graphics;
import java.io.*;
import org.eclipse.rwt.internal.engine.*;
import org.eclipse.rwt.internal.resources.ResourceUtil;
import org.eclipse.rwt.resources.IResourceManager;
import org.eclipse.rwt.service.ISessionStore;
import org.eclipse.swt.internal.widgets.IDisplayAdapter;
import org.eclipse.swt.widgets.Display;
class ImageSerializer {
private static class SerializableBytes implements Serializable {
private static final long serialVersionUID = 1L;
final byte[] data;
SerializableBytes( byte[] data ) {
this.data = data;
}
}
private class PostDeserializationValidation implements ObjectInputValidation {
private final SerializableBytes imageBytes;
PostDeserializationValidation( SerializableBytes imageBytes ) {
this.imageBytes = imageBytes;
}
public void validateObject() throws InvalidObjectException {
PostDeserialization.addProcessor( getSessionStore(), new Runnable() {
public void run() {
InputStream inputStream = new ByteArrayInputStream( imageBytes.data );
getResourceManager().register( image.internalImage.getResourceName(), inputStream );
}
} );
}
}
private final Image image;
ImageSerializer( Image image ) {
this.image = image;
}
void writeObject( ObjectOutputStream stream ) throws IOException {
stream.defaultWriteObject();
stream.writeObject( new SerializableBytes( getImageBytes() ) );
}
void readObject( ObjectInputStream stream ) throws IOException, ClassNotFoundException {
stream.defaultReadObject();
SerializableBytes imageBytes = ( SerializableBytes )stream.readObject();
stream.registerValidation( new PostDeserializationValidation( imageBytes ), 0 );
}
private byte[] getImageBytes() {
String resourceName = image.internalImage.getResourceName();
InputStream inputStream = getResourceManager().getRegisteredContent( resourceName );
try {
return ResourceUtil.readBinary( inputStream );
} catch( IOException ioe ) {
throw new RuntimeException( ioe );
}
}
private ISessionStore getSessionStore() {
Display display = ( Display )image.getDevice();
IDisplayAdapter adapter = ( IDisplayAdapter )display.getAdapter( IDisplayAdapter.class );
return adapter.getSessionStore();
}
private IResourceManager getResourceManager() {
return ApplicationContextUtil.get( getSessionStore() ).getResourceManager();
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
a7a53e0296f66d89c4edf5fb940d28551438bfed
|
ca030864a3a1c24be6b9d1802c2353da4ca0d441
|
/classes6.dex_source_from_JADX/com/facebook/photos/base/photos/VaultLocalPhoto.java
|
168568ad2f8557fc82f1d9c5cc8ba02a944ba710
|
[] |
no_license
|
pxson001/facebook-app
|
87aa51e29195eeaae69adeb30219547f83a5b7b1
|
640630f078980f9818049625ebc42569c67c69f7
|
refs/heads/master
| 2020-04-07T20:36:45.758523
| 2018-03-07T09:04:57
| 2018-03-07T09:04:57
| 124,208,458
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,599
|
java
|
package com.facebook.photos.base.photos;
import android.graphics.Bitmap;
import android.graphics.PointF;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.facebook.photos.base.photos.Photo.PhotoSize;
import com.facebook.ui.images.base.UrlImageProcessor;
import com.facebook.ui.images.cache.ImageCacheKey.Options;
import com.facebook.ui.images.cache.ImageCacheKey.OptionsBuilder;
import com.facebook.ui.images.fetch.FetchImageParams;
import com.facebook.ui.images.fetch.FetchImageParams.Builder;
import com.google.common.base.Objects;
/* compiled from: initial_privacy_override */
public class VaultLocalPhoto extends VaultPhoto {
public static final Creator<VaultLocalPhoto> CREATOR = new C08071();
private String f12757c;
private int f12758d;
private long f12759e;
public String f12760f;
/* compiled from: initial_privacy_override */
final class C08071 implements Creator<VaultLocalPhoto> {
C08071() {
}
public final Object createFromParcel(Parcel parcel) {
return new VaultLocalPhoto(parcel);
}
public final Object[] newArray(int i) {
return new VaultLocalPhoto[i];
}
}
/* compiled from: initial_privacy_override */
class LocalPhotoImageProcessor extends UrlImageProcessor {
private final String f12756b;
public LocalPhotoImageProcessor(int i, PhotoSize photoSize) {
this.f12756b = ":" + i + ":" + photoSize;
}
public final Bitmap mo1096a(Bitmap bitmap) {
return bitmap;
}
public final String mo1097a() {
return this.f12756b;
}
}
public VaultLocalPhoto(long j, String str, int i, long j2, String str2) {
this.f12744a = j;
this.f12757c = str;
this.f12758d = i;
this.f12759e = j2;
this.f12760f = str2;
}
public VaultLocalPhoto(Parcel parcel) {
this.a = parcel.readLong();
this.b = (PointF) parcel.readParcelable(PointF.class.getClassLoader());
this.f12757c = parcel.readString();
this.f12758d = parcel.readInt();
this.f12759e = parcel.readLong();
this.f12760f = parcel.readString();
}
public final FetchImageParams mo1095a(PhotoSize photoSize) {
if (this.f12757c == null) {
return null;
}
UrlImageProcessor localPhotoImageProcessor;
OptionsBuilder newBuilder = Options.newBuilder();
switch (photoSize) {
case SCREENNAIL:
newBuilder.a(true);
localPhotoImageProcessor = new LocalPhotoImageProcessor(this.f12758d, PhotoSize.SCREENNAIL);
break;
case THUMBNAIL:
newBuilder.a(240, 240);
localPhotoImageProcessor = new LocalPhotoImageProcessor(this.f12758d, PhotoSize.THUMBNAIL);
break;
default:
throw new IllegalArgumentException("unknown size: " + photoSize);
}
Options f = newBuilder.f();
Builder a = FetchImageParams.a(Uri.parse("file://" + this.f12757c));
a.d = localPhotoImageProcessor;
Builder builder = a;
builder.e = f;
return builder.a();
}
public final long mo1098b() {
return this.f12759e;
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel parcel, int i) {
parcel.writeLong(this.f12744a);
parcel.writeParcelable(this.f12745b, i);
parcel.writeString(this.f12757c);
parcel.writeInt(this.f12758d);
parcel.writeLong(this.f12759e);
parcel.writeString(this.f12760f);
}
public boolean equals(Object obj) {
if (!(obj instanceof VaultLocalPhoto)) {
return false;
}
VaultLocalPhoto vaultLocalPhoto = (VaultLocalPhoto) obj;
if (Objects.equal(Long.valueOf(this.f12744a), Long.valueOf(vaultLocalPhoto.f12744a)) && Objects.equal(this.f12745b, vaultLocalPhoto.f12745b) && Objects.equal(this.f12757c, vaultLocalPhoto.f12757c) && Objects.equal(Integer.valueOf(this.f12758d), Integer.valueOf(vaultLocalPhoto.f12758d)) && Objects.equal(Long.valueOf(this.f12759e), Long.valueOf(vaultLocalPhoto.f12759e)) && Objects.equal(this.f12760f, vaultLocalPhoto.f12760f)) {
return true;
}
return false;
}
public int hashCode() {
return Objects.hashCode(new Object[]{Long.valueOf(this.f12744a), this.f12745b, this.f12757c, Long.valueOf(this.f12759e), this.f12760f});
}
}
|
[
"son.pham@jmango360.com"
] |
son.pham@jmango360.com
|
cd4268bf3fb3ce1056a883abcafb5adbf42d7527
|
f940615d6f08c6098ebae5ffc4d4f62fe2d09939
|
/special/src/main/java/com/app/special/AstrictClickButton.java
|
569ad7220a9f9c6c3c5ca213ad4c632f821fa285
|
[] |
no_license
|
fengxiaocan/SpecialView
|
7fdd37adfd75d3392a79efc7e00beeeeb4a3740d
|
c8d72484766a77f12a5a6f2ea7232969518c37af
|
refs/heads/master
| 2021-12-30T01:07:41.183206
| 2021-12-13T03:39:10
| 2021-12-13T03:39:10
| 149,409,725
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,552
|
java
|
package com.app.special;
import android.content.Context;
import androidx.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
/**
* @项目名: xiaoyujia
* @包名: com.vooda.smartHome.view
* @创建者: Noah.冯
* @时间: 10:24
* @描述: 限制几秒内再次点击的Button
*/
public class AstrictClickButton extends ClickButton implements Runnable {
protected long mAstrictClickTime = 2000L;//限制点击时长
protected OnClickListener mOnClickListener;
public AstrictClickButton(Context context){
super(context);
}
public AstrictClickButton(Context context,AttributeSet attrs){
super(context,attrs);
}
public AstrictClickButton(Context context,AttributeSet attrs,
int defStyleAttr)
{
super(context,attrs,defStyleAttr);
}
@Override
public void onClick(View v){
if(isCanClick){
if(mOnClickListener != null){
closeClick();
postDelayed(this,mAstrictClickTime);
mOnClickListener.onClick(v);
}
}
}
@Override
public void setOnClickListener(@Nullable OnClickListener l){
mOnClickListener = l;
super.setOnClickListener(l);
}
@Override
public void run(){
openClick();
}
public void setAstrictClickTime(long astrictClickTime){
mAstrictClickTime = astrictClickTime;
}
public long getAstrictClickTime(){
return mAstrictClickTime;
}
}
|
[
"fengxiaocan@gmail.com"
] |
fengxiaocan@gmail.com
|
9965a86cca90915f7bd7a702d95c6634031b8314
|
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
|
/sources/com/avito/android/messenger/channels/ChannelsRouterKt.java
|
27ee8a424b08774095996611c10420b313eeef83
|
[] |
no_license
|
Auch-Auch/avito_source
|
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
|
76fdcc5b7e036c57ecc193e790b0582481768cdc
|
refs/heads/master
| 2023-05-06T01:32:43.014668
| 2021-05-25T10:19:22
| 2021-05-25T10:19:22
| 370,650,685
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 739
|
java
|
package com.avito.android.messenger.channels;
import kotlin.Metadata;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\b\n\u0002\u0010\b\n\u0002\b\u0005\"\u0016\u0010\u0001\u001a\u00020\u00008\u0000@\u0000XT¢\u0006\u0006\n\u0004\b\u0001\u0010\u0002\"\u0016\u0010\u0003\u001a\u00020\u00008\u0000@\u0000XT¢\u0006\u0006\n\u0004\b\u0003\u0010\u0002\"\u0016\u0010\u0004\u001a\u00020\u00008\u0000@\u0000XT¢\u0006\u0006\n\u0004\b\u0004\u0010\u0002¨\u0006\u0005"}, d2 = {"", "REQ_BLACKLIST", "I", "REQ_CHANNEL", "REQ_LOGIN", "messenger_release"}, k = 2, mv = {1, 4, 2})
public final class ChannelsRouterKt {
public static final int REQ_BLACKLIST = 2;
public static final int REQ_CHANNEL = 1;
public static final int REQ_LOGIN = 0;
}
|
[
"auchhunter@gmail.com"
] |
auchhunter@gmail.com
|
89756b1458339074dc140b5ee0b4fed584ea7da7
|
5a959164902dad87f927d040cb4b243d39b8ebe3
|
/qafe-mobile-gwt/src/main/java/com/qualogy/qafe/mgwt/server/ui/assembler/PasswordTextFieldUIAssembler.java
|
99b0c347c7877afa926f8e8a7b046c1925148eee
|
[
"Apache-2.0"
] |
permissive
|
JustusM/qafe-platform
|
0c8bc824d1faaa6021bc0742f26733bf78408606
|
0ef3b3d1539bcab16ecd6bfe5485d727606fecf1
|
refs/heads/master
| 2021-01-15T11:38:04.044561
| 2014-09-25T09:20:38
| 2014-09-25T09:20:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,562
|
java
|
/**
* Copyright 2008-2014 Qualogy Solutions B.V.
*
* 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.qualogy.qafe.mgwt.server.ui.assembler;
import com.qualogy.qafe.bind.core.application.ApplicationContext;
import com.qualogy.qafe.bind.domain.ApplicationMapping;
import com.qualogy.qafe.bind.presentation.component.Component;
import com.qualogy.qafe.bind.presentation.component.PasswordTextField;
import com.qualogy.qafe.bind.presentation.component.TextField;
import com.qualogy.qafe.bind.presentation.component.Window;
import com.qualogy.qafe.mgwt.client.vo.ui.ComponentGVO;
import com.qualogy.qafe.mgwt.client.vo.ui.PasswordTextFieldGVO;
import com.qualogy.qafe.mgwt.server.helper.UIAssemblerHelper;
import com.qualogy.qafe.web.util.SessionContainer;
public class PasswordTextFieldUIAssembler implements UIAssembler {
public PasswordTextFieldUIAssembler() {
}
public ComponentGVO convert(Component object, Window currentWindow,ApplicationMapping applicationMapping, ApplicationContext context, SessionContainer ss) {
ComponentGVO vo = null;
if (object != null) {
if (object instanceof PasswordTextField) {
PasswordTextField passwordTextField = (PasswordTextField)object;
PasswordTextFieldGVO voTemp = new PasswordTextFieldGVO();
UIAssemblerHelper.copyFields(passwordTextField, currentWindow,voTemp,applicationMapping, context, ss);
voTemp.setValue(passwordTextField.getValue());
voTemp.setEditable(passwordTextField.getEditable());
voTemp.setMaxLength(passwordTextField.getMaxLength());
voTemp.setMinLength(passwordTextField.getMinLength());
voTemp.setPasswordMask(passwordTextField.getPasswordMask());
voTemp.setRequired(passwordTextField.getRequired());
voTemp.setRequiredStyleClassName(passwordTextField.getRequiredStyleClassName());
voTemp.setOrientation(passwordTextField.getOrientation());
vo =voTemp;
}
}
return vo;
}
public String getStaticStyleName() {
return "passwordtextfield";
}
}
|
[
"rkha@f87ad13a-6d31-43dd-9311-282d20640c02"
] |
rkha@f87ad13a-6d31-43dd-9311-282d20640c02
|
1dc7a47d682d20a191f151af78431bb93af1afb7
|
ae8fb7e43fcfc43b8cee6a1116053bf82f903cd9
|
/sp01-base/src/test/java/com/zc/z04aop/TestBean.java
|
59a07d4b2a7ab019451a7200e95d2cfbcf6582c2
|
[] |
no_license
|
FlyingZC/MySpringDemo
|
2d302f197f6bf2b08b4df2183120699acd73ff2f
|
201fe55f04d2e88505ffcc91e5f1747b8d633cc8
|
refs/heads/master
| 2022-12-30T14:39:31.543658
| 2019-08-26T16:43:43
| 2019-08-26T16:43:43
| 159,504,484
| 0
| 0
| null | 2022-12-16T05:24:04
| 2018-11-28T13:14:15
|
Java
|
UTF-8
|
Java
| false
| false
| 305
|
java
|
package com.zc.z04aop;
public class TestBean {
private String testStr = "testStr";
public String getTestStr() {
return testStr;
}
public void setTestStr(String testStr) {
this.testStr = testStr;
}
public void test() {
System.out.println("test");
}
}
|
[
"1262797000@qq.com"
] |
1262797000@qq.com
|
0eab2da67d9ee485a3b34b9c541ac756452945d3
|
5cc0be0837eea9acaa4a6d0add28ecbea34161f5
|
/src/tw/org/iii/java/Brad03.java
|
83f4af78d4b17be2b01d5393c34025bd3e2f3b60
|
[] |
no_license
|
bradchao/bjava2
|
7dfada930f412300b0bc155f24416bbc8555f2a3
|
707af2ab4de4dbe1a146d7408a1e95bd019ea16c
|
refs/heads/master
| 2020-09-13T17:36:00.788448
| 2016-09-08T03:20:10
| 2016-09-08T03:20:10
| 66,902,150
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 209
|
java
|
package tw.org.iii.java;
public class Brad03 {
public static void main(String[] args) {
byte a, b, c;
byte d = 1;
byte e, f = 2, g;
a = b = c = 10;
//System.out.println(e);
}
}
|
[
"brad@brad.tw"
] |
brad@brad.tw
|
42eb2b7626bbbbe315130f6d20c77ba1b04f6246
|
0b203cc77a222f4fb24750c79b6386c7f8b6bbb1
|
/Android_Zone_Lib/src/and/base/WindowPop.java
|
cdaa43544f80dca86fa939c0daa8111475c2442b
|
[
"MIT"
] |
permissive
|
RyanYans/Android-Utils
|
bdd9341041cd245a9e9529ab9a349e9aba04b7f8
|
47d1175a8f72f8720491d1db11f7391a6b71705e
|
refs/heads/master
| 2021-01-22T11:04:01.377083
| 2017-05-15T02:00:32
| 2017-05-15T02:00:32
| 92,666,583
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,262
|
java
|
package and.base;
import android.content.Context;
import android.graphics.PixelFormat;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.FrameLayout;
import and.utils.data.info.ScreenUtils;
/**
* [2017] by Zone
* 悬浮窗支持
*/
public abstract class WindowPop {
private boolean isSlide;
private WindowManager.LayoutParams wmParams;
private View mFloatLayout;
private WindowManager mWindowManager;
protected Context context;
private int layoutId;
private SlideViewGroup slideViewGroup;
private int windowWidth, windowHeight;//屏幕那个高度不会影响太多就不判断了
/**
* @param context 尽量用 Application activity和他的生命周期不同!
* @param context
*/
public WindowPop(Context context) {
this(context, false);
}
public WindowPop(Context context, boolean isSlide) {
this.context = context;
this.isSlide = isSlide;
}
/**
* @param layoutId
*/
public void setPopContentView(int layoutId) {
this.layoutId = layoutId;
wmParams = new WindowManager.LayoutParams();
//获取WindowManagerImpl.CompatModeWrapper
mWindowManager = (WindowManager) context.getSystemService(context.WINDOW_SERVICE);
//设置window type 可以设置 屏幕外的层级!
// wmParams.type = WindowManager.LayoutParams.TYPE_PHONE;
wmParams.type = WindowManager.LayoutParams.TYPE_TOAST;
//设置图片格式,效果为背景透明
wmParams.format = PixelFormat.RGBA_8888;
//设置浮动窗口不可聚焦(实现操作除浮动窗口外的其他可见窗口的操作)
// wmParams.flags =
//// LayoutParams.FLAG_NOT_TOUCH_MODAL |
// WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
//// LayoutParams.FLAG_NOT_TOUCHABLE
// ;
wmParams.flags =
// WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL |
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN;
LayoutInflater inflater = LayoutInflater.from(context);
//获取浮动窗口视图所在布局
mFloatLayout = inflater.inflate(layoutId, new FrameLayout(context), false);
ViewGroup.LayoutParams lp = mFloatLayout.getLayoutParams();
wmParams.width = lp.width;
wmParams.height = lp.height;
initScreen();
slideViewGroup = new SlideViewGroup(context, new SlideViewGroup.Callback() {
@Override
public void update(int x, int y) {
if (!isSlide)
return;
updateLocation(wmParams.gravity, wmParams.x + x, wmParams.y + y);
log("11:--->x:" + x + "\t y:" + y);
log("12--->x:" + wmParams.x + "\t y:" + wmParams.y);
wmParams.x -= x;
wmParams.y -= y;
log("13restore--->x:" + wmParams.x + "\t y:" + wmParams.y);
}
@Override
public void upCancel(int x, int y) {
if (!isSlide)
return;
wmParams.x += x;
if (wmParams.x >= windowWidth - slideViewGroup.getWidth())
wmParams.x = windowWidth - slideViewGroup.getWidth();
else if (wmParams.x < 0)
wmParams.x = 0;
wmParams.y += y;
if (wmParams.y >= windowHeight - slideViewGroup.getHeight())
wmParams.y = windowHeight - slideViewGroup.getHeight();
else if (wmParams.y < 0)
wmParams.y = 0;
}
});
slideViewGroup.setLayoutParams(lp);
slideViewGroup.addView(mFloatLayout);
}
protected void initScreen() {
int[] pixs = ScreenUtils.getScreenPixByResources(context);
windowWidth = pixs[0];
windowHeight = pixs[1];
}
public void show() {
findView(slideViewGroup);
initData();
setListener();
setLocation();
}
public void remove() {
if (slideViewGroup != null) {
mWindowManager.removeView(slideViewGroup);
}
}
private void updateParams(int gravity, int x, int y) {
//设置悬浮窗口长宽数据
// wmParams.width = WindowManager.LayoutParams.WRAP_CONTENT;
// wmParams.height = WindowManager.LayoutParams.WRAP_CONTENT;
ViewGroup.LayoutParams lp = slideViewGroup.getLayoutParams();
wmParams.width = lp.width;
wmParams.height = lp.height;
//调整悬浮窗显示的停靠位置为左侧置顶
// wmParams.gravity = Gravity.LEFT | Gravity.TOP;
wmParams.gravity = gravity;
// 以屏幕左上角为原点,设置x、y初始值
wmParams.x = x;
wmParams.y = y;
/* 设置悬浮窗口长宽数据
wmParams.width = 200;
wmParams.height = 80;*/
}
public void showAtLocation(int gravity, int x, int y) {
updateParams(gravity, x, y);
//添加mFloatLayout
mWindowManager.addView(slideViewGroup, wmParams);
}
public void updateLocation(int gravity, int x, int y) {
updateParams(gravity, x, y);
//添加mFloatLayout
mWindowManager.updateViewLayout(slideViewGroup, wmParams);
}
/**
* 通过父类中的mMenuView找到pop内的控件
* <br>例如:tv_pop_cancel=(TextView) mMenuView.findViewById(R.id.tv_pop_cancel);
*
* @param mMenuView
*/
protected abstract void findView(View mMenuView);
protected abstract void initData();
protected abstract void setListener();
/**
* <br>也可以加动画 this.setAnimationStyle(R.style.PopSelectPicAnimation);
* <br>例子:this.showAtLocation(activity.findViewById(R.id.main), Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, 0);
* <br>并可以更改pop的其他设置
*/
protected abstract void setLocation();
protected void log(String s) {
if (1 == 1)
Log.i("WindowPop", s);
}
}
|
[
"1149324777@qq.com"
] |
1149324777@qq.com
|
3a25c5d8668961b3a8e5640faee66581791037f9
|
ab2ba7fd5f894bc77e3a14d4e0dd92687e75afaa
|
/src/main/java/org/tinymediamanager/ui/movies/actions/MovieClearImageCacheAction.java
|
4f9d6f715d56c73e3e7c3eb7b3f25ea84cf2a120
|
[
"Apache-2.0"
] |
permissive
|
vlagorce/tinyMediaManager
|
cf7ff6a3c695db4433fc5eaec3e6fb3328399e84
|
1843beddf85221695e24f813c1b7c323c4426a10
|
refs/heads/master
| 2021-04-09T14:24:59.278962
| 2018-02-08T10:24:25
| 2018-02-08T10:24:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,267
|
java
|
/*
* Copyright 2012 - 2017 Manuel Laggner
*
* 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.tinymediamanager.ui.movies.actions;
import java.awt.Cursor;
import java.awt.event.ActionEvent;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
import javax.swing.AbstractAction;
import org.tinymediamanager.core.ImageCache;
import org.tinymediamanager.core.movie.entities.Movie;
import org.tinymediamanager.ui.MainWindow;
import org.tinymediamanager.ui.UTF8Control;
import org.tinymediamanager.ui.movies.MovieUIModule;
/**
* MovieClearImageCacheAction - clear image cache for selected movies
*
* @author Manuel Laggner
*/
public class MovieClearImageCacheAction extends AbstractAction {
private static final long serialVersionUID = -5089957097690621345L;
private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("messages", new UTF8Control()); //$NON-NLS-1$
public MovieClearImageCacheAction() {
putValue(NAME, BUNDLE.getString("movie.clearimagecache")); //$NON-NLS-1$
putValue(LARGE_ICON_KEY, "");
}
/*
* (non-Javadoc)
*
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/
@Override
public void actionPerformed(ActionEvent e) {
List<Movie> selectedMovies = new ArrayList<>(MovieUIModule.getInstance().getSelectionModel().getSelectedMovies());
// get data of all files within all selected movies
MainWindow.getActiveInstance().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
for (Movie movie : selectedMovies) {
ImageCache.clearImageCacheForMediaEntity(movie);
}
MainWindow.getActiveInstance().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
}
}
|
[
"manuel.laggner@gmail.com"
] |
manuel.laggner@gmail.com
|
5601a72ca9ec4f23daa564b3fa42a457102c24bb
|
359ffc6bf89f610b1d4a5af0f5d6ea3e6eaab28a
|
/maven-plugin/src/main/java/org/stjs/maven/SuffixMappingWithCompressedTarget.java
|
7bb4ff2de61863b755207303b3c8b68cb038b660
|
[
"Apache-2.0"
] |
permissive
|
sgml/st-js
|
d3b29a0649af123910fa2aadb22cb95c4493e531
|
a97a611b39709477b8f6ddb3a05fa64b1976db17
|
refs/heads/master
| 2020-04-15T00:20:20.699194
| 2018-04-01T16:23:11
| 2018-04-01T16:23:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,326
|
java
|
/**
* Copyright 2011 Alexandru Craciun, Eyal Kaspi
*
* 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.stjs.maven;
import java.io.File;
import java.util.HashSet;
import java.util.Set;
import org.codehaus.plexus.compiler.util.scan.mapping.SourceMapping;
/**
* This class maps a source to a target folder by both changing the suffix and compressing the target folder by
* suppressing a part of the folder structure. That is it will transform a file [src folder]/org/stjs/example/Test.java
* in [target folder]/Test.java
*
* @author <a href='mailto:ax.craciun@gmail.com'>Alexandru Craciun</a>
* @version $Id: $Id
*/
public class SuffixMappingWithCompressedTarget implements SourceMapping {
private final String sourceSuffix;
private final String targetSuffix;
private final String removePrefix;
/**
* <p>Constructor for SuffixMappingWithCompressedTarget.</p>
*
* @param removePrefix a {@link java.lang.String} object.
* @param sourceSuffix a {@link java.lang.String} object.
* @param targetSuffix a {@link java.lang.String} object.
*/
public SuffixMappingWithCompressedTarget(String removePrefix, String sourceSuffix, String targetSuffix) {
this.sourceSuffix = sourceSuffix;
this.targetSuffix = targetSuffix;
this.removePrefix = removePrefix;
}
/** {@inheritDoc} */
@Override
public Set<File> getTargetFiles(File targetDir, String source) {
Set<File> targetFiles = new HashSet<File>();
if (source.endsWith(sourceSuffix) && source.startsWith(removePrefix)) {
String base = source.substring(removePrefix.length());
base = base.substring(0, base.length() - sourceSuffix.length());
targetFiles.add(new File(targetDir, base + targetSuffix));
}
return targetFiles;
}
}
|
[
"ax.craciun@gmail.com"
] |
ax.craciun@gmail.com
|
d8c038ebf9d63e6857bd131cbca2dbe83568ef4c
|
591184fe8b21134c30b47fa86d5a275edd3a6208
|
/openejb2/modules/openejb-core/src/main/java/org/openejb/config/ValidationRule.java
|
b367c11e6c38b0b7837eac44cafc0d28430c9fa0
|
[] |
no_license
|
codehaus/openejb
|
41649552c6976bf7d2e1c2fe4bb8a3c2b82f4dcb
|
c4cd8d75133345a23d5a13b9dda9cb4b43efc251
|
refs/heads/master
| 2023-09-01T00:17:38.431680
| 2006-09-14T07:14:22
| 2006-09-14T07:14:22
| 36,228,436
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,214
|
java
|
/**
* Redistribution and use of this software and associated documentation
* ("Software"), with or without modification, are permitted provided
* that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright
* statements and notices. Redistributions must also contain a
* copy of this document.
*
* 2. Redistributions in binary form must reproduce the
* above copyright notice, this list of conditions and the
* following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. The name "OpenEJB" must not be used to endorse or promote
* products derived from this Software without prior written
* permission of The OpenEJB Group. For written permission,
* please contact openejb-group@openejb.sf.net.
*
* 4. Products derived from this Software may not be called "OpenEJB"
* nor may "OpenEJB" appear in their names without prior written
* permission of The OpenEJB Group. OpenEJB is a registered
* trademark of The OpenEJB Group.
*
* 5. Due credit should be given to the OpenEJB Project
* (http://openejb.sf.net/).
*
* THIS SOFTWARE IS PROVIDED BY THE OPENEJB GROUP AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
* NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* THE OPENEJB GROUP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Copyright 2001 (C) The OpenEJB Group. All Rights Reserved.
*
* $Id$
*/
package org.openejb.config;
/**
* @author <a href="mailto:david.blevins@visi.com">David Blevins</a>
*/
public interface ValidationRule {
public void validate(EjbSet set);
}
|
[
"dain@2b0c1533-c60b-0410-b8bd-89f67432e5c6"
] |
dain@2b0c1533-c60b-0410-b8bd-89f67432e5c6
|
cf6638114f441d819ea8fbc32a57644422270a3a
|
a422de59c29d077c512d66b538ff17d179cc077a
|
/hsi/hsi-ds/hsi-ds-service/src/main/java/com/gy/hsi/ds/login/beans/Visitor.java
|
ef06897c89d15b213c6cd6a67685a06d70dd08e7
|
[] |
no_license
|
liveqmock/hsxt
|
c554e4ebfd891e4cc3d57e920d8a79ecc020b4dd
|
40bb7a1fe5c22cb5b4f1d700e5d16371a3a74c04
|
refs/heads/master
| 2020-03-28T14:09:31.939168
| 2018-09-12T10:20:46
| 2018-09-12T10:20:46
| 148,461,898
| 0
| 0
| null | 2018-09-12T10:19:11
| 2018-09-12T10:19:10
| null |
UTF-8
|
Java
| false
| false
| 2,808
|
java
|
package com.gy.hsi.ds.login.beans;
import java.io.Serializable;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.StringUtils;
import com.github.knightliao.apollo.db.bo.BaseObject;
import com.github.knightliao.apollo.utils.common.StringUtil;
import com.gy.hsi.ds.common.constant.UserConstant;
/**
* @author liaoqiqi
* @version 2013-11-26
*/
public class Visitor extends BaseObject<Long> implements Serializable {
private static final long serialVersionUID = 5621993194031128338L;
protected static final Logger LOG = LoggerFactory.getLogger(Visitor.class);
// uc's name
private String loginUserName;
// role
private int roleId;
// app list
private Set<Long> appIds;
//env list
private Set<Long> envIds;
/**
* @return the loginUserId
*/
public Long getLoginUserId() {
return getId();
}
/**
* @param loginUserId the loginUserId to set
*/
public void setLoginUserId(Long loginUserId) {
setId(loginUserId);
}
/**
* @return the loginUserName
*/
public String getLoginUserName() {
return loginUserName;
}
/**
* @param loginUserName the loginUserName to set
*/
public void setLoginUserName(String loginUserName) {
this.loginUserName = loginUserName;
}
public int getRoleId() {
return roleId;
}
public Set<Long> getAppIds() {
return appIds;
}
public Set<Long> getEnvIds() {
return envIds;
}
public void setAppIds(Set<Long> appIds) {
this.appIds = appIds;
}
public void setEnvIds(Set<Long> envIds) {
this.envIds = envIds;
}
public void setRoleId(int roleId) {
this.roleId = roleId;
}
@Override
public String toString() {
return "Visitor [loginUserName=" + loginUserName + ", roleId=" + roleId + ", appIds=" + appIds+ ", envIds=" + envIds + "]";
}
public void setAppIds(String appIds) {
if (!StringUtils.isEmpty(appIds)) {
try {
List<Long> ids = StringUtil.parseStringToLongList(appIds, UserConstant.USER_APP_SEP);
setAppIds(new HashSet<Long>(ids));
} catch (Exception e) {
LOG.error(e.toString());
}
}
}
public void setEnvIds(String envIds) {
if (!StringUtils.isEmpty(envIds)) {
try {
List<Long> ids = StringUtil.parseStringToLongList(envIds, UserConstant.USER_APP_SEP);
setEnvIds(new HashSet<Long>(ids));
} catch (Exception e) {
LOG.error(e.toString());
}
}
}
}
|
[
"864201042@qq.com"
] |
864201042@qq.com
|
5f52b4281caffb2336e0aff46e672837caae8553
|
964601fff9212bec9117c59006745e124b49e1e3
|
/matos-android/src/main/java/java/io/ByteArrayInputStream.java
|
a2aca16777d27bf40339fa05e37d5b01c2fb2079
|
[
"Apache-2.0"
] |
permissive
|
vadosnaprimer/matos-profiles
|
bf8300b04bef13596f655d001fc8b72315916693
|
fb27c246911437070052197aa3ef91f9aaac6fc3
|
refs/heads/master
| 2020-05-23T07:48:46.135878
| 2016-04-05T13:14:42
| 2016-04-05T13:14:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,471
|
java
|
package java.io;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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%
*/
public class ByteArrayInputStream
extends InputStream{
// Fields
protected byte [] buf;
protected int pos;
protected int mark;
protected int count;
// Constructors
public ByteArrayInputStream(byte [] arg1){
super();
}
public ByteArrayInputStream(byte [] arg1, int arg2, int arg3){
super();
}
// Methods
public void close() throws IOException{
}
public synchronized void mark(int arg1){
}
public synchronized void reset(){
}
public synchronized int read(){
return 0;
}
public synchronized int read(byte [] arg1, int arg2, int arg3){
return 0;
}
public synchronized int available(){
return 0;
}
public synchronized long skip(long arg1){
return 0l;
}
public boolean markSupported(){
return false;
}
}
|
[
"pierre.cregut@orange.com"
] |
pierre.cregut@orange.com
|
5c87e3b72a397e6c0054c69dc11de990870bb6b9
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-ws/results/XWIKI-13546-12-25-Single_Objective_GGA-WeightedSum/org/xwiki/mail/internal/thread/SendMailRunnable_ESTest.java
|
5bf47ad854556956e2c34e18e3de284958ee3fdb
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 569
|
java
|
/*
* This file was automatically generated by EvoSuite
* Mon Mar 30 19:21:02 UTC 2020
*/
package org.xwiki.mail.internal.thread;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class SendMailRunnable_ESTest extends SendMailRunnable_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
5e9bd3a2ccff0e0441f06fda5128261a3b4199cd
|
3d610d6fa4b3eb866c4c1bb6412d772b18087f94
|
/src/org/takeback/chat/websocket/listener/MessageReceiveListener.java
|
2ec868bfcd6683af22c4b071e08c76102f1d04ba
|
[] |
no_license
|
gileth/test
|
b5ad7782fa5dfd056c597d811824b32db10b3e7e
|
db91348d75aa972cde850370f74ac3ed29e2cf9e
|
refs/heads/master
| 2020-04-09T04:42:45.147875
| 2019-01-14T09:28:10
| 2019-01-14T09:28:10
| 160,033,342
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 330
|
java
|
//
// Decompiled by Procyon v0.5.30
//
package org.takeback.chat.websocket.listener;
import org.springframework.web.socket.WebSocketMessage;
import org.springframework.web.socket.WebSocketSession;
public interface MessageReceiveListener
{
void onMessageReceive(final WebSocketSession p0, final WebSocketMessage<?> p1);
}
|
[
"Administrator@windows10.microdone.cn"
] |
Administrator@windows10.microdone.cn
|
95aff3db110dbdacd3455af740b7058ce9c99120
|
124df74bce796598d224c4380c60c8e95756f761
|
/com.raytheon.uf.common.dataplugin.satellite/src/com/raytheon/uf/common/dataplugin/satellite/units/goes/convert/PixelToPercentConverter.java
|
30de0a87b519e2a4223b099f49bc5f18745028d1
|
[] |
no_license
|
Mapoet/AWIPS-Test
|
19059bbd401573950995c8cc442ddd45588e6c9f
|
43c5a7cc360b3cbec2ae94cb58594fe247253621
|
refs/heads/master
| 2020-04-17T03:35:57.762513
| 2017-02-06T17:17:58
| 2017-02-06T17:17:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,496
|
java
|
/**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
* to non-U.S. persons whether in the United States or abroad requires
* an export license or other authorization.
*
* Contractor Name: Raytheon Company
* Contractor Address: 6825 Pine Street, Suite 340
* Mail Stop B8
* Omaha, NE 68106
* 402.291.0100
*
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
* further licensing information.
**/
package com.raytheon.uf.common.dataplugin.satellite.units.goes.convert;
import javax.measure.converter.ConversionException;
import javax.measure.converter.UnitConverter;
import org.apache.commons.lang.builder.HashCodeBuilder;
/**
* TODO Add Description
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* May 11, 2010 jsanchez Initial creation
*
* </pre>
*
* @author jsanchez
* @version 1.0
*/
public class PixelToPercentConverter extends UnitConverter {
private static final long serialVersionUID = 1L;
/*
* (non-Javadoc)
*
* @see javax.measure.converter.UnitConverter#convert(double)
*/
@Override
public double convert(double aPixel) throws ConversionException {
return aPixel/100;
}
/*
* (non-Javadoc)
*
* @see javax.measure.converter.UnitConverter#equals(java.lang.Object)
*/
@Override
public boolean equals(Object aConverter) {
return (aConverter instanceof PixelToPercentConverter);
}
/*
* (non-Javadoc)
*
* @see javax.measure.converter.UnitConverter#hashCode()
*/
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
/*
* (non-Javadoc)
*
* @see javax.measure.converter.UnitConverter#inverse()
*/
@Override
public UnitConverter inverse() {
return new PercentToPixelConverter();
}
/*
* (non-Javadoc)
*
* @see javax.measure.converter.UnitConverter#isLinear()
*/
@Override
public boolean isLinear() {
return false;
}
}
|
[
"joshua.t.love@saic.com"
] |
joshua.t.love@saic.com
|
512b6f0b11f44b97d7a2cd1467b0ee74ac487498
|
31f609157ae46137cf96ce49e217ce7ae0008b1e
|
/bin/ext-commerce/commercefacades/src/de/hybris/platform/commercefacades/storelocator/helpers/DistanceHelper.java
|
455fec5902788e3af2c09d41f1b8e532da8965ed
|
[] |
no_license
|
natakolesnikova/hybrisCustomization
|
91d56e964f96373781f91f4e2e7ca417297e1aad
|
b6f18503d406b65924c21eb6a414eb70d16d878c
|
refs/heads/master
| 2020-05-23T07:16:39.311703
| 2019-05-15T15:08:38
| 2019-05-15T15:08:38
| 186,672,599
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,563
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package de.hybris.platform.commercefacades.storelocator.helpers;
import de.hybris.platform.store.BaseStoreModel;
/**
* Helper class provides unit recalculation
*/
public interface DistanceHelper
{
/**
* Gets the distance string for given distance value and the distance unit that is set in the base store model. In no
* distance unit is set in the store model default 'km' is assumed.
*
* @param baseStoreModel
* the base store model that provide distance unit
* @param distanceInKm
* the distance in km
* @return the calculated distance string
*/
String getDistanceStringForStore(BaseStoreModel baseStoreModel, double distanceInKm);
/**
* Gets the distance string for given distance value and the distance unit that is set in corresponding base store
* model. If no distance unit is set in the store model default 'km' is assumed.
*
* @param locationName
* the location name
* @param distanceInKm
* the distance in km
* @return the calculated distance string
*/
String getDistanceStringForLocation(String locationName, double distanceInKm);
}
|
[
"nataliia@spadoom.com"
] |
nataliia@spadoom.com
|
16fa74a27309b2b29ba71fd8d9fbe16f7ed813fe
|
1074c97cdd65d38c8c6ec73bfa40fb9303337468
|
/rda0105-agl-aus-java-a43926f304e3/xms-workflow/src/main/java/com/gms/xms/workflow/task2/generateetfile/toll/manifest/GetTollShipmentByCustomerListTask.java
|
17a17aa8efd5d1d541f96c46bf9d695a3c0d2fa6
|
[] |
no_license
|
gahlawat4u/repoName
|
0361859254766c371068e31ff7be94025c3e5ca8
|
523cf7d30018b7783e90db98e386245edad34cae
|
refs/heads/master
| 2020-05-17T01:26:00.968575
| 2019-04-29T06:11:52
| 2019-04-29T06:11:52
| 183,420,568
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,649
|
java
|
package com.gms.xms.workflow.task2.generateetfile.toll.manifest;
import com.gms.xms.common.constants.Attributes;
import com.gms.xms.common.constants.ErrorCode;
import com.gms.xms.common.constants.GenerateETFileConstants;
import com.gms.xms.common.context.ContextBase2;
import com.gms.xms.persistence.dao.webship.TollConnoteDao;
import com.gms.xms.txndb.vo.toll.TollShipmentVo;
import com.gms.xms.workflow.core2.Task2;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.util.List;
/**
* Posted from Sep 15, 2016 4:26:11 PM
* <p>
* Author huynd
*/
public class GetTollShipmentByCustomerListTask implements Task2 {
private static final Log log = LogFactory.getLog(GetTollShipmentByCustomerListTask.class);
@Override
public boolean execute(ContextBase2 context) throws Exception {
try {
Long customerCode = context.get(GenerateETFileConstants.CUSTOMER_CODE);
TollConnoteDao tollConnoteDao = new TollConnoteDao();
List<TollShipmentVo> tollShipmentVos = tollConnoteDao.getTollShipmentByCustomerGenerateList(customerCode);
if (tollShipmentVos.isEmpty()) {
throw new Exception("There is no records to generate.");
}
context.put(GenerateETFileConstants.TOLL_SHIPMENT_GENERATE_LIST, tollShipmentVos);
} catch (Exception e) {
context.put(Attributes.ERROR_CODE, ErrorCode.ERROR);
context.put(Attributes.ERROR_MESSAGE, e.getMessage());
log.error(e);
return false;
}
return true;
}
}
|
[
"sachin.gahlawat19@gmail.com"
] |
sachin.gahlawat19@gmail.com
|
ecbee3429eb8ea958c41e4c69dc468c76858f26d
|
6883c617e4439b8fa5497373f5c24152d843a1ba
|
/src/main/java/com/lothrazar/cyclicmagic/block/fan/ContainerFan.java
|
65649e8985137beafec14987715ce1da91d9dd5d
|
[
"MIT"
] |
permissive
|
sandtechnology/Cyclic
|
b84c8ba00d9d3ec099bb15c24069e2289bd62844
|
a668cfe42db63c0c2d660d3e6abebc21ac7a50b4
|
refs/heads/develop
| 2021-08-18T00:01:12.701994
| 2019-12-31T05:30:04
| 2019-12-31T05:30:04
| 131,421,090
| 0
| 0
|
MIT
| 2019-06-09T10:32:57
| 2018-04-28T15:25:17
|
Java
|
UTF-8
|
Java
| false
| false
| 2,209
|
java
|
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (C) 2014-2018 Sam Bassett (aka Lothrazar)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
******************************************************************************/
package com.lothrazar.cyclicmagic.block.fan;
import com.lothrazar.cyclicmagic.gui.container.ContainerBaseMachine;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.IContainerListener;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class ContainerFan extends ContainerBaseMachine {
public static final int SLOTX_START = 8;
public static final int SLOTY = 40;
public ContainerFan(InventoryPlayer inventoryPlayer, TileEntityFan te) {
super(te);
bindPlayerInventory(inventoryPlayer);
}
@Override
@SideOnly(Side.CLIENT)
public void updateProgressBar(int id, int data) {
this.tile.setField(id, data);
}
@Override
public void addListener(IContainerListener listener) {
super.addListener(listener);
listener.sendAllWindowProperties(this, this.tile);
}
}
|
[
"samson.bassett@gmail.com"
] |
samson.bassett@gmail.com
|
f0c3970cc4ca978590f6d3800e12764f5af5eae0
|
d1ea5077c83cb2e93fe69e3d19a2e26efe894a0e
|
/src/main/java/com/rograndec/feijiayun/chain/business/init/model/GoodsCategoryModel.java
|
9383032a101075b92892b72dcdf456ef783d85ce
|
[] |
no_license
|
Catfeeds/rog-backend
|
e89da5a3bf184e4636169e7492a97dfd0deef2a1
|
109670cfec6cbe326b751e93e49811f07045e531
|
refs/heads/master
| 2020-04-05T17:36:50.097728
| 2018-10-22T16:23:55
| 2018-10-22T16:23:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,417
|
java
|
package com.rograndec.feijiayun.chain.business.init.model;
import java.util.ArrayList;
import java.util.List;
/**
*
* @ClassName: GoodsCategoryModel
* @Description: 商品分类初始化数据模型
* @author zhongyi.li zhongyi.li@rograndec.com
* @date 2017年9月5日 上午11:56:36
*
*/
public class GoodsCategoryModel {
private Integer type;
private String code;
private String name;
public GoodsCategoryModel(){}
public GoodsCategoryModel(Integer type, String code, String name) {
super();
this.type = type;
this.code = code;
this.name = name;
}
public static List<GoodsCategoryModel> build(){
List<GoodsCategoryModel> gcList = new ArrayList<GoodsCategoryModel>();
gcList.add(new GoodsCategoryModel(1, "01", "药品"));
gcList.add(new GoodsCategoryModel(2, "02", "医疗器械"));
gcList.add(new GoodsCategoryModel(3, "03", "食品"));
gcList.add(new GoodsCategoryModel(4, "04", "化妆品"));
gcList.add(new GoodsCategoryModel(5, "05", "其它"));
return gcList;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
[
"ruifeng.jia@rograndec.com"
] |
ruifeng.jia@rograndec.com
|
c920f6b3148b2520f138bd30e6634df57ca6dc2b
|
ed7b82b79ac6bbcde17a4b1f5fcd5d990e13e687
|
/src/main/java/com/usthe/bootshiro/domain/bo/AuthOperationLog.java
|
666d773faa12085876ad7c9c5bfc8a8fd02baea4
|
[
"MIT"
] |
permissive
|
changsheng0224/bootshiro
|
f703a249aa30b83e34933b52aaf04480718ad6d0
|
defd530b9b856b2e0b3c125906264b264e848de6
|
refs/heads/master
| 2020-12-12T02:35:27.930487
| 2020-06-28T13:45:08
| 2020-06-28T13:45:08
| 234,022,546
| 0
| 0
|
MIT
| 2020-01-15T07:23:23
| 2020-01-15T07:23:23
| null |
UTF-8
|
Java
| false
| false
| 1,522
|
java
|
package com.usthe.bootshiro.domain.bo;
import java.util.Date;
/**
* 操作日志
* @author tomsun28
* @date 8:22 2018/4/22
*/
public class AuthOperationLog {
private Integer id;
private String logName;
private String userId;
private String api;
private String method;
private Short succeed;
private String message;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getLogName() {
return logName;
}
public void setLogName(String logName) {
this.logName = logName;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getApi() {
return api;
}
public void setApi(String api) {
this.api = api;
}
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public Short getSucceed() {
return succeed;
}
public void setSucceed(Short succeed) {
this.succeed = succeed;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}
|
[
"tomsun28@outlook.com"
] |
tomsun28@outlook.com
|
fed2d595b0eafbed3086f8630295bef3cab4af94
|
a915ebb5021e3f3158df57239ac1a82528bb9f4d
|
/coin-business/src/main/java/com/coin/shortline/util/ResultFactory.java
|
cafbaf5d22bf1b808ec02048609b806f78b610d6
|
[] |
no_license
|
ahuiwanglei/wolf-coin
|
15d54aa7b5f8896faeb48b880136ce1bd4fd245e
|
85c593289e99610a725529ff06e87ba12c36fec0
|
refs/heads/master
| 2020-03-30T11:46:29.891761
| 2018-10-03T06:09:25
| 2018-10-03T06:09:25
| 151,192,027
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,786
|
java
|
package com.coin.shortline.util;
import java.util.HashMap;
import java.util.Map;
public class ResultFactory {
public static <T> Result<T> getErrorResult(T data) {
Result model = new Result();
model.setMsg(CommonFinal.FAIL);
model.setResultStatus(CommonFinal.RESULT_CODE_FAILURE);
model.setResultData(data);
return model;
}
public static <T> Result<T> getErrorResult(Integer code, T data) {
Result model = new Result();
model.setMsg(CommonFinal.FAIL);
model.setResultStatus(code);
model.setResultData(data);
return model;
}
public static Result getErrorResult(String msg) {
return getErrorResult(CommonFinal.RESULT_CODE_FAILURE, msg);
}
public static <T> Result<T> getSuccessResult(T data) {
Result model = new Result();
model.setMsg(CommonFinal.SUCCESS);
model.setResultStatus(CommonFinal.RESULT_CODE_SUCCESS);
model.setResultData(data);
return model;
}
public static<T> Result<Map<String, T>> getSuccessResult(String key, T data){
Result model = new Result();
model.setMsg(CommonFinal.SUCCESS);
model.setResultStatus(CommonFinal.RESULT_CODE_SUCCESS);
Map<String, T> map = new HashMap<String, T>();
map.put(key, data);
model.setResultData(map);
return model;
}
public static Result<Map<String, Integer>> getSuccessResultForSumbitData(int id){
Result model = new Result();
model.setMsg(CommonFinal.SUCCESS);
model.setResultStatus(CommonFinal.RESULT_CODE_SUCCESS);
Map<String, Integer> map = new HashMap<String, Integer>();
map.put("id", id);
model.setResultData(map);
return model;
}
}
|
[
"ahuiwanglei@126.com"
] |
ahuiwanglei@126.com
|
2415d3ad39c46eaf99627d377e8f6b8aa5601fdf
|
b72d0a7c81f334819b64b860bc5aeff9a39b0344
|
/src/test/java/com/cbt/utilities/WebDriverFactory.java
|
27c6a96f266743fdeacf3724e8adc4844b878d5e
|
[] |
no_license
|
AdemTEN/BasicNavigationTests
|
8adc82dd9c348f018b7c12fa8b305d6ff0d1fe22
|
f3945e1b8f90386502d532a68664a885351402f2
|
refs/heads/master
| 2022-12-20T05:36:58.766233
| 2020-09-25T11:22:47
| 2020-09-25T11:22:47
| 291,351,678
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,477
|
java
|
package com.cbt.utilities;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.safari.SafariDriver;
public class WebDriverFactory {
public static WebDriver getDriver(String browserType) {
WebDriver driver = null;
switch (browserType.toLowerCase()) {
case "chrome":
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver();
break;
case "firefox":
WebDriverManager.firefoxdriver().setup();
driver = new FirefoxDriver();
break;
case "safari":
if(System.getProperty("os.name").toLowerCase().contains("win")){
driver = null;
}else if(System.getProperty("os.name").toLowerCase().contains("mac")){
driver = new SafariDriver();
}
case "edge":
if(System.getProperty("os.name").toLowerCase().contains("mac")){
driver = null;
}else if(System.getProperty("os.name").toLowerCase().contains("win")){
WebDriverManager.edgedriver().setup();
driver = new EdgeDriver();
}
}
return driver;
}
}
|
[
"65685868+AdemTEN@users.noreply.github.com"
] |
65685868+AdemTEN@users.noreply.github.com
|
76fd695778015b6f928aee6ae1aefd33c943c2ab
|
1a132432388f4d8eee6fb9c74da8a88b99707c74
|
/src/main/java/com/belk/car/app/webapp/validators/UserValidator.java
|
8800d15ed4c6ca10234ace0eaae9d1aa5b401d4f
|
[] |
no_license
|
Subbareddyg/CARS_new
|
7ed525e6f5470427e6343becd62e645e43558a6c
|
3024c932b54a7e0d808d887210b819bba2ccd1c1
|
refs/heads/master
| 2020-03-14T14:27:02.793772
| 2018-04-30T23:25:40
| 2018-04-30T23:25:40
| 131,653,774
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,162
|
java
|
package com.belk.car.app.webapp.validators;
import org.apache.commons.lang.StringUtils;
import org.appfuse.model.Role;
import org.appfuse.model.User;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import com.belk.car.app.model.UserType;
/**
* @author Antonio Gonzalez
*
*/
public class UserValidator implements Validator {
public boolean supports(Class clazz) {
return User.class.isAssignableFrom(clazz);
}
public void validate(Object obj, Errors errors) {
User user = (User)obj;
if (user.getRoles() != null && user.getRoles().size() > 0 && StringUtils.isNotBlank(user.getUserTypeCd())) {
String userTypeCd = user.getUserTypeCd();
//Check to see if the user selected any other role other than Car User and that the is usertype = 'VENDOR'
for(Role role : user.getRoles()) {
if(!role.getName().equalsIgnoreCase(Role.ROLE_USER) && userTypeCd.equalsIgnoreCase(UserType.VENDOR)) {
Object[] args = {userTypeCd};
errors.rejectValue("userTypeCd", "user.type.and.role.not.allowed", args, "A vendor can only be assigned to a role of type Cars User");
}
}
}
}
}
|
[
"subba_gunjikunta@belk.com"
] |
subba_gunjikunta@belk.com
|
2e9546906d2b5442260a7e3437f72c3f9f3a7f92
|
10be4cfa08f80d785cb20d780e5ad7379ef8ef4f
|
/Ciência da Computação - UNISUL 2007/5º Semestre - 2009_A/Linguagens Formais e Autômatos/Trabalho Analisador Léxico (Hideraldo)/AnalisadorLexico2/src/AnalisadorLexico/GUI/Pos.java
|
20ab4904e356f1d3e3f2f69f468181ac7fe3aa51
|
[] |
no_license
|
fdelameli/materiais-cursos
|
a62009f6bb56683e6031cec38bf02637fcdcba82
|
d2193beb570930f20f0bf7d65691b37909f12996
|
refs/heads/master
| 2022-06-29T11:18:48.861802
| 2018-06-28T14:43:59
| 2018-06-28T14:43:59
| null | 0
| 0
| null | null | null | null |
ISO-8859-1
|
Java
| false
| false
| 1,211
|
java
|
package AnalisadorLexico.GUI;
import java.awt.GridBagConstraints;
import java.awt.Insets;
public class Pos {
public static GridBagConstraints add(int coluna,int linha,
int qtCols,int qtLin,String tamanho){
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx=coluna;//posicionamento horizontal
gbc.gridy=linha;//posicionamento vertical
gbc.gridwidth=qtCols;//qt colunas
gbc.gridheight=qtLin;//qt linhas
//fill = tamanho do componente dentro da célula
if(tamanho.equals("NONE")){//respeita componente
gbc.fill=GridBagConstraints.NONE;
}
if(tamanho.equals("HORIZONTAL")){//ocupa toda célula horizontamente
gbc.fill=GridBagConstraints.HORIZONTAL;
}
if(tamanho.equals("VERTICAL")){//ocupa toda célula verticalmente
gbc.fill=GridBagConstraints.VERTICAL;
}
if(tamanho.equals("BOTH")){//ocupa todos os lados da célula
gbc.fill=GridBagConstraints.BOTH;
}
gbc.insets=new Insets(3,3,3,3);//epaçamento cima,baixo,direita,esquerda
//ipdad = bordas internas do componente
gbc.ipadx=0;
gbc.ipady=0;
//anchor = se o tamanho do componente não ocupar toda célula, onde será posicionado
gbc.anchor=GridBagConstraints.WEST;
return gbc;
}
}
|
[
"fabio.bruna@digitro.com.br"
] |
fabio.bruna@digitro.com.br
|
0bb5a8ebff37a25a9d78406fd286d056a3c2e032
|
dd49c014cb6bd14f72b835dfb613ddd6e0f4af90
|
/client/api/src/main/java/org/eclipse/microprofile/graphql/client/core/InlineFragment.java
|
0c8745e11ffa6366beaede90b7cdec8da9be3a99
|
[
"Apache-2.0"
] |
permissive
|
eclipse/microprofile-graphql
|
d002fbc8ae600dd63aaa9b693b055114e55fec9b
|
2fece355acad22f7e9f409fd819ec4d65609fec4
|
refs/heads/main
| 2023-08-23T01:22:56.926587
| 2023-08-16T02:45:07
| 2023-08-16T02:45:07
| 178,922,614
| 100
| 84
|
Apache-2.0
| 2023-09-05T02:36:18
| 2019-04-01T18:26:48
|
Java
|
UTF-8
|
Java
| false
| false
| 1,462
|
java
|
/*
* Copyright (c) 2020 Contributors to the Eclipse Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.eclipse.microprofile.graphql.client.core;
import java.util.List;
import static org.eclipse.microprofile.graphql.client.core.utils.ServiceUtils.getNewInstanceOf;
import static java.util.Arrays.asList;
/**
* Represents an inline fragment in a GraphQL document. This can be used
* anywhere where a field is expected (thus it implements `FieldOrFragment`).
*/
public interface InlineFragment extends FieldOrFragment {
static InlineFragment on(String type, FieldOrFragment... fields) {
InlineFragment fragment = getNewInstanceOf(InlineFragment.class);
fragment.setType(type);
fragment.setFields(asList(fields));
return fragment;
}
String getType();
void setType(String name);
List<FieldOrFragment> getFields();
void setFields(List<FieldOrFragment> fields);
}
|
[
"jmartisk@redhat.com"
] |
jmartisk@redhat.com
|
26e049c624fb3a4aa35a86c0d3e350856561d634
|
616412db7bc180dcee81e79c7b478bb1eeb40e85
|
/part10-Part10_12.StudentsOnAlphabeticalOrder/src/main/java/Student.java
|
2c702985e2de95f0af9ef54357d1a2245ddf9d19
|
[] |
no_license
|
kevin0110w/JavaProgrammingII
|
5971bf628153a8089597e78fe845ed03d25eef18
|
fe0c53e9eda0d6c7adcfce5d9bec1405e7df8d8b
|
refs/heads/master
| 2022-12-29T10:22:21.671833
| 2020-05-11T21:44:04
| 2020-05-11T21:44:04
| 263,164,114
| 0
| 0
| null | 2020-10-13T22:10:32
| 2020-05-11T21:38:47
|
Java
|
UTF-8
|
Java
| false
| false
| 401
|
java
|
public class Student implements Comparable<Student> {
private String name;
public Student(String name) {
this.name = name;
}
public String getName() {
return name;
}
@Override
public String toString() {
return name;
}
@Override
public int compareTo(Student o) {
return this.name.compareToIgnoreCase(o.getName());
}
}
|
[
"kevin0110w@gmail.com"
] |
kevin0110w@gmail.com
|
4bf57d10051a202af12ea948b52c832c04ba7ece
|
9cecda2b74ce148425eed8b6fc47ab835c25cde1
|
/src/main/java/primal/compute/math/DoubleArrayUtils.java
|
ad8a90e85365c80252886a62c7855e54aa8a441d
|
[
"LicenseRef-scancode-unknown-license-reference",
"WTFPL"
] |
permissive
|
yeojhenrie/React
|
7d787c02852655199fc76d1a9538aad7245cd970
|
4fcfc5b5b54f34316654931655f07d8aa29f978b
|
refs/heads/master
| 2022-12-14T20:57:35.142811
| 2020-09-02T12:44:25
| 2020-09-02T12:44:25
| 292,278,426
| 0
| 0
|
WTFPL
| 2020-09-02T12:36:07
| 2020-09-02T12:36:06
| null |
UTF-8
|
Java
| false
| false
| 516
|
java
|
package primal.compute.math;
public class DoubleArrayUtils
{
public static void shiftRight(double[] values, double push)
{
for(int index = values.length - 2; index >= 0; index--)
{
values[index + 1] = values[index];
}
values[0] = push;
}
public static void wrapRight(double[] values)
{
double last = values[values.length - 1];
shiftRight(values, last);
}
public static void fill(double[] values, double value)
{
for(int i = 0; i < values.length; i++)
{
values[i] = value;
}
}
}
|
[
"danielmillst@gmail.com"
] |
danielmillst@gmail.com
|
9af152d32cf3fc8abfec844614f1ddebac6f2a1b
|
76bcdc528075b6b82feefde2a1e40b7f6e35f37f
|
/component/LoginComponent/src/main/java/com/batman/logincomponent/ui/activity/LoginActivity.java
|
2d3c47af23f13ec4889c9291f0557ec870778696
|
[] |
no_license
|
NevermoreGu/Common
|
a402db2ee9f8279848e730388ac98a020705f63d
|
d0f635e66f58f9b461703249903e22b1711b320f
|
refs/heads/master
| 2020-06-18T12:30:58.173412
| 2020-01-17T06:54:38
| 2020-01-17T06:54:38
| 196,304,123
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,432
|
java
|
package com.batman.logincomponent.ui.activity;
import android.arch.lifecycle.ViewModelProviders;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.batman.baselibrary.RouterConstants;
import com.batman.baselibrary.api.ResponseCode;
import com.batman.baselibrary.base.BaseObserver;
import com.batman.baselibrary.preference.UserPres;
import com.batman.baselibrary.preference.UserResult;
import com.batman.baselibrary.utils.ActivityUtils;
import com.batman.baselibrary.utils.PhoneUtil;
import com.batman.baselibrary.utils.ToastUtils;
import com.batman.logincomponent.R;
import com.batman.logincomponent.R2;
import com.batman.logincomponent.api.ApiParams;
import com.batman.logincomponent.data.bean.request.UserRequest;
import com.batman.logincomponent.data.bean.request.WxLoginRequest;
import com.batman.logincomponent.viewmodel.LoginViewModel;
import com.network.Resource;
import com.network.utils.MD5;
import com.share.weixin.login.WeiXinLoginUtils;
import com.ui.widget.UINavigationView;
import java.util.HashMap;
import butterknife.BindView;
import butterknife.OnClick;
/**
* 登录页
*
* @author guqian
*/
@Route(path = RouterConstants.LOGIN_COMPONENT_LOGIN_PATH)
public class LoginActivity extends BaseLoginActivity {
private static final String KICK_OUT = "KICK_OUT";
@BindView(R2.id.uinv)
UINavigationView mUinv;
@BindView(R2.id.et_login_phone_number)
EditText mEtLoginPhoneNumber;
@BindView(R2.id.et_login_user_password)
EditText mEtLoginUserPassword;
private LoginViewModel mViewModel;
private String mPhone;
private String mPassword;
public static void start(Context context) {
start(context, false);
}
public static void start(Context context, boolean kickOut) {
Bundle bundle = new Bundle();
bundle.putBoolean(KICK_OUT, kickOut);
ActivityUtils.openActivitySingleTop(RouterConstants.LOGIN_COMPONENT_LOGIN_PATH, bundle);
}
@Override
public int getLayoutId() {
return R.layout.activity_login;
}
@Override
public void initViews() {
mUinv.setNavigationTitle(R.string.text_login_title);
mUinv.setNavigationRightText(R.string.text_register, new View.OnClickListener() {
@Override
public void onClick(View v) {
ActivityUtils.openActivity(RouterConstants.LOGIN_COMPONENT_REGISTER_PATH);
}
});
String phone = UserPres.getInstance().phone;
mEtLoginPhoneNumber.setText(phone);
mEtLoginUserPassword.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
if (hasFocus) {
mEtLoginPhoneNumber.clearFocus();
}
}
});
}
@Override
public void loadData(Bundle savedInstanceState) {
registerThreeLoginBroadcastReceiver();
mViewModel = ViewModelProviders.of(this).get(LoginViewModel.class);
}
@OnClick({R2.id.btn_login_login, R2.id.tv_login_forget_passsword, R2.id.img_login_wei_chat})
public void onViewClicked(View view) {
int i = view.getId();
if (i == R.id.btn_login_login) {
login();
} else if (i == R.id.tv_login_forget_passsword) {
ActivityUtils.openActivity(RouterConstants.LOGIN_COMPONENT_FIND_PASSWORD_PATH);
} else if (i == R.id.img_login_wei_chat) {
WeiXinLoginUtils.login();
}
}
// 云信只提供消息通道,并不包含用户资料逻辑。开发者需要在管理后台或通过服务器接口将用户帐号和token同步到云信服务器。
// 在这里直接使用同步到云信服务器的帐号和token登录。
// 这里为了简便起见,demo就直接使用了密码的md5作为token。
// 如果开发者直接使用这个demo,只更改appkey,然后就登入自己的账户体系的话,需要传入同步到云信服务器的token,而不是用户密码。
private void login() {
mPhone = mEtLoginPhoneNumber.getText().toString().trim();
mPassword = mEtLoginUserPassword.getText().toString().trim();
if (TextUtils.isEmpty(mPhone)) {
ToastUtils.showLongToast(LoginActivity.this, getString(R.string.hint_input_phone_number));
return;
}
if (TextUtils.isEmpty(mPassword)) {
ToastUtils.showLongToast(LoginActivity.this, getString(R.string.hint_input_login_password));
return;
}
UserRequest request = new UserRequest();
request.login_account = mPhone;
request.pwd = MD5.getStringMD5(mPassword);
request.firstLogin = "0";
request.deviceToken = PhoneUtil.getIMEI(mContext);
request.deviceName = PhoneUtil.getSystemModel();
HashMap requestParams = ApiParams.getLoginRequestParams(request);
mViewModel.login(requestParams).observe(this, new BaseObserver<UserResult>(this) {
@Override
public void uiSuccessful(Resource<UserResult> resource) {
if (resource.data != null && resource.data.yxuser != null) {
loginSuccess(resource);
}
}
@Override
public void uiError(Resource<UserResult> userResultResource) {
super.uiError(userResultResource);
if (userResultResource.errorCode.equals(ResponseCode.ERROR_CODE_10316)) {
Bundle bundle = new Bundle();
bundle.putString(RouterConstants.KEY_PHONE, userResultResource.data.phone);
ActivityUtils.openActivity(RouterConstants.LOGIN_COMPONENT_NEW_DEVICE_LOGIN_PATH, bundle);
}
}
@Override
public void uiCancel(DialogInterface dialog) {
}
});
}
private void wxlogin(String openId) {
WxLoginRequest request = new WxLoginRequest();
request.wx_openid = openId;
request.firstLogin = "0";
HashMap requestParams = ApiParams.getWXLoginParams(request);
mViewModel.wxLogin(requestParams).observe(this, new BaseObserver<UserResult>(this) {
@Override
public void uiSuccessful(Resource<UserResult> resource) {
if (resource.data != null && resource.data.yxuser != null) {
loginSuccess(resource);
}
}
@Override
public void uiError(Resource<UserResult> userResultResource) {
if (userResultResource.errorCode.equals(ResponseCode.ERROR_CODE_30001)) {
BindPhoneActivity.start(mContext, openId);
} else {
super.uiError(userResultResource);
}
}
@Override
public void uiCancel(DialogInterface dialog) {
}
});
}
private class LoinBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
String accessToken = intent.getStringExtra("accessToken");
String refreshToken = intent.getStringExtra("refreshToken");
String from = intent.getStringExtra("from");
String scope = intent.getStringExtra("scope");
String openId = intent.getStringExtra("openId");
wxlogin(openId);
}
}
@Override
protected void onDestroy() {
unRegisterThreeLoginBroadcastReceiver();
super.onDestroy();
}
private LoinBroadcastReceiver mBroadcastReceiver;
private void registerThreeLoginBroadcastReceiver() {
mBroadcastReceiver = new LoinBroadcastReceiver();
IntentFilter filter = new IntentFilter();
filter.addAction("LOGIN_GET_TOKEN_SUCCESS");
registerReceiver(mBroadcastReceiver, filter);
}
private void unRegisterThreeLoginBroadcastReceiver() {
if (mBroadcastReceiver != null) {
unregisterReceiver(mBroadcastReceiver);
}
}
}
|
[
"guq@tfinfo.cn"
] |
guq@tfinfo.cn
|
94545af9bcf4db7c1fa71c9fd758e714bf7c6674
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project31/src/test/java/org/gradle/test/performance31_4/Test31_324.java
|
f4a62038505292b8517dc339b76904dcf185ba05
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 292
|
java
|
package org.gradle.test.performance31_4;
import static org.junit.Assert.*;
public class Test31_324 {
private final Production31_324 production = new Production31_324("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
76d5fc8b755712e66ea4607f24d723861f5e1200
|
2a920f5f42c588dad01740da5d8c3d9aecbc2a90
|
/src/org/deegree/portal/portlet/modules/actions/LogoutUser.java
|
8df64b5b358939ca121ac982d556015445cd3eba
|
[] |
no_license
|
lat-lon/deegree2-rev30957
|
40b50297cd28243b09bfd05db051ea4cecc889e4
|
22aa8f8696e50c6e19c22adb505efb0f1fc805d8
|
refs/heads/master
| 2020-04-06T07:00:21.040695
| 2016-06-28T15:21:56
| 2016-06-28T15:21:56
| 12,290,316
| 0
| 0
| null | 2016-06-28T15:21:57
| 2013-08-22T06:49:45
|
Java
|
UTF-8
|
Java
| false
| false
| 4,108
|
java
|
//$HeadURL: https://scm.wald.intevation.org/svn/deegree/base/trunk/src/org/deegree/portal/portlet/modules/actions/LogoutUser.java $
/*----------------------------------------------------------------------------
This file is part of deegree, http://deegree.org/
Copyright (C) 2001-2009 by:
Department of Geography, University of Bonn
and
lat/lon GmbH
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your option)
any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact information:
lat/lon GmbH
Aennchenstr. 19, 53177 Bonn
Germany
http://lat-lon.de/
Department of Geography, University of Bonn
Prof. Dr. Klaus Greve
Postfach 1147, 53001 Bonn
Germany
http://www.geographie.uni-bonn.de/deegree/
e-mail: info@deegree.org
----------------------------------------------------------------------------*/
package org.deegree.portal.portlet.modules.actions;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Enumeration;
import javax.servlet.http.HttpSession;
import javax.xml.parsers.ParserConfigurationException;
import org.deegree.framework.xml.XMLFragment;
import org.deegree.portal.context.ViewContext;
import org.deegree.portal.context.XMLFactory;
/**
* This class can be used within listener classes that will be called if a user logs out from a
* portal. All contexts used at this moment will be stored in the users WMC directory having
* filenames starting with 'VIEWCONTEXT'.<BR>
* At the moment a concrete listener is available for Jetspeed 1.6
*
* @see org.deegree.portal.portlet.modules.actions.IGeoJetspeed16LogoutUser
*
*
* @version $Revision: 18195 $
* @author <a href="mailto:poth@lat-lon.de">Andreas Poth</a>
* @author last edited by: $Author: mschneider $
*
* @version 1.0. $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
*
* @since 2.0
*/
class LogoutUser {
/**
*
* @param dir
* @param ses
* @throws IOException
* @throws ParserConfigurationException
*/
void storeCurrentContexts( File dir, HttpSession ses )
throws ParserConfigurationException, IOException {
Enumeration en = ses.getAttributeNames();
// because a porlat may use more than one web map context
// parallel at different map windows we must iterate over
// all session attributes indicating a WMC currently in use
if ( en != null ) {
while ( en.hasMoreElements() ) {
String name = (String) en.nextElement();
Object val = ses.getAttribute( name );
if ( val != null && val instanceof ViewContext
&& name.indexOf( AbstractPortletPerform.CURRENT_WMC ) > -1 ) {
storeContext( dir, name, (ViewContext) val );
}
}
}
}
/**
* stores the passed web map context as loggedout WMC into the current users WMC directory
*
* @param dir
* @param name
* @param context
* @throws ParserConfigurationException
* @throws IOException
*/
private void storeContext( File dir, String name, ViewContext context )
throws ParserConfigurationException, IOException {
XMLFragment xml = XMLFactory.export( context );
File file = new File( dir.getAbsolutePath() + '/' + name + ".xml" );
FileOutputStream fos = new FileOutputStream( file );
xml.write( fos );
fos.close();
}
}
|
[
"erben@lat-lon.de"
] |
erben@lat-lon.de
|
cff79ca8ccee5a47852bd2b7fe4517d25343890b
|
d4028778cc8c83d77b5b90489a90f7e0a7710815
|
/plugins/org.bflow.toolbox.epc.diagram/src/org/bflow/toolbox/epc/diagram/edit/policies/ParticipantItemSemanticEditPolicy.java
|
a25775df0350e324a51d5173f6392603c710d4c5
|
[] |
no_license
|
bflowtoolbox/app
|
881a856ea055bb8466a1453e2ed3e1b23347e425
|
997baa8c73528d20603fa515e3d701334acb1be4
|
refs/heads/master
| 2021-06-01T15:19:14.222596
| 2020-06-15T18:36:49
| 2020-06-15T18:36:49
| 39,310,563
| 5
| 7
| null | 2019-02-05T16:02:49
| 2015-07-18T19:44:51
|
Java
|
UTF-8
|
Java
| false
| false
| 4,076
|
java
|
package org.bflow.toolbox.epc.diagram.edit.policies;
import org.bflow.toolbox.epc.diagram.edit.commands.ArcCreateCommand;
import org.bflow.toolbox.epc.diagram.edit.commands.ArcReorientCommand;
import org.bflow.toolbox.epc.diagram.edit.commands.InformationArcCreateCommand;
import org.bflow.toolbox.epc.diagram.edit.commands.InformationArcReorientCommand;
import org.bflow.toolbox.epc.diagram.edit.commands.RelationCreateCommand;
import org.bflow.toolbox.epc.diagram.edit.commands.RelationReorientCommand;
import org.bflow.toolbox.epc.diagram.edit.parts.ArcEditPart;
import org.bflow.toolbox.epc.diagram.edit.parts.InformationArcEditPart;
import org.bflow.toolbox.epc.diagram.edit.parts.RelationEditPart;
import org.bflow.toolbox.epc.diagram.providers.EpcElementTypes;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.commands.CompoundCommand;
import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand;
import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
import org.eclipse.gmf.runtime.notation.View;
/**
* @generated
*/
public class ParticipantItemSemanticEditPolicy extends
EpcBaseItemSemanticEditPolicy {
/**
* @generated
*/
protected Command getDestroyElementCommand(DestroyElementRequest req) {
CompoundCommand cc = getDestroyEdgesCommand();
addDestroyShortcutsCommand(cc);
View view = (View) getHost().getModel();
if (view.getEAnnotation("Shortcut") != null) { //$NON-NLS-1$
req.setElementToDestroy(view);
}
cc.add(getGEFWrapper(new DestroyElementCommand(req)));
return cc.unwrap();
}
/**
* @generated
*/
protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req)
: getCompleteCreateRelationshipCommand(req);
return command != null ? command : super
.getCreateRelationshipCommand(req);
}
/**
* @generated
*/
protected Command getStartCreateRelationshipCommand(
CreateRelationshipRequest req) {
if (EpcElementTypes.Arc_4001 == req.getElementType()) {
return getGEFWrapper(new ArcCreateCommand(req, req.getSource(), req
.getTarget()));
}
if (EpcElementTypes.Relation_4002 == req.getElementType()) {
return getGEFWrapper(new RelationCreateCommand(req,
req.getSource(), req.getTarget()));
}
if (EpcElementTypes.InformationArc_4003 == req.getElementType()) {
return getGEFWrapper(new InformationArcCreateCommand(req, req
.getSource(), req.getTarget()));
}
return null;
}
/**
* @generated
*/
protected Command getCompleteCreateRelationshipCommand(
CreateRelationshipRequest req) {
if (EpcElementTypes.Arc_4001 == req.getElementType()) {
return getGEFWrapper(new ArcCreateCommand(req, req.getSource(), req
.getTarget()));
}
if (EpcElementTypes.Relation_4002 == req.getElementType()) {
return getGEFWrapper(new RelationCreateCommand(req,
req.getSource(), req.getTarget()));
}
if (EpcElementTypes.InformationArc_4003 == req.getElementType()) {
return getGEFWrapper(new InformationArcCreateCommand(req, req
.getSource(), req.getTarget()));
}
return null;
}
/**
* Returns command to reorient EClass based link. New link target or source
* should be the domain model element associated with this node.
*
* @generated
*/
protected Command getReorientRelationshipCommand(
ReorientRelationshipRequest req) {
switch (getVisualID(req)) {
case ArcEditPart.VISUAL_ID:
return getGEFWrapper(new ArcReorientCommand(req));
case RelationEditPart.VISUAL_ID:
return getGEFWrapper(new RelationReorientCommand(req));
case InformationArcEditPart.VISUAL_ID:
return getGEFWrapper(new InformationArcReorientCommand(req));
}
return super.getReorientRelationshipCommand(req);
}
}
|
[
"astorch@ee779243-7f51-0410-ad50-ee0809328dc4"
] |
astorch@ee779243-7f51-0410-ad50-ee0809328dc4
|
5ed9fccef690ca5ae533114a35272f8d878348bd
|
51d3ba1d1ecfb84ce9fcedad7b73714f227454ad
|
/main/snap-core/src/main/java/org/snapscript/core/convert/FunctionProxyHandler.java
|
023798c900de81638ca7a30478bcfa0100d36671
|
[] |
no_license
|
ngallagher/snapscript
|
35c7342cfea851d2f7c6a9b48ea4f0992b40fa05
|
24db79d4c28108d0c985dbccac4eb93faeb1000b
|
refs/heads/master
| 2023-08-24T19:28:49.455702
| 2016-08-07T20:44:35
| 2016-08-07T20:44:35
| 42,607,765
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,679
|
java
|
package org.snapscript.core.convert;
import static org.snapscript.core.Reserved.METHOD_EQUALS;
import static org.snapscript.core.Reserved.METHOD_HASH_CODE;
import static org.snapscript.core.Reserved.METHOD_TO_STRING;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.concurrent.Callable;
import org.snapscript.core.Context;
import org.snapscript.core.InternalStateException;
import org.snapscript.core.Result;
import org.snapscript.core.Transient;
import org.snapscript.core.Value;
import org.snapscript.core.bind.FunctionBinder;
import org.snapscript.core.function.Function;
public class FunctionProxyHandler implements InvocationHandler {
private final ProxyArgumentExtractor extractor;
private final Function function;
private final Context context;
private final Value value;
public FunctionProxyHandler(ProxyWrapper wrapper, Context context, Function function) {
this.extractor = new ProxyArgumentExtractor(wrapper);
this.value = new Transient(function);
this.function = function;
this.context = context;
}
@Override
public Object invoke(Object proxy, Method method, Object[] arguments) throws Throwable {
Object[] convert = extractor.extract(arguments);
String name = method.getName();
int width = convert.length;
if(name.equals(METHOD_HASH_CODE)) {
if(width != 0) {
throw new InternalStateException("Closure "+ METHOD_HASH_CODE +" does not accept " + width + " arguments");
}
return function.hashCode();
}
if(name.equals(METHOD_TO_STRING)) {
if(width != 0) {
throw new InternalStateException("Closure "+METHOD_TO_STRING+" does not accept " + width + " arguments");
}
return function.toString();
}
if(name.equals(METHOD_EQUALS)) {
if(width != 1) {
throw new InternalStateException("Closure "+METHOD_EQUALS+" does not accept " + width + " arguments");
}
return function.equals(convert[0]);
}
return invoke(convert);
}
private Object invoke(Object[] arguments) throws Throwable {
FunctionBinder binder = context.getBinder();
Callable<Result> call = binder.bind(value, arguments); // here arguments can be null!!!
int width = arguments.length;
if(call == null) {
throw new InternalStateException("Closure not matched with " + width +" arguments");
}
Result result = call.call();
Object data = result.getValue();
return data;
}
public Function extract() {
return function;
}
}
|
[
"gallagher_niall@yahoo.com"
] |
gallagher_niall@yahoo.com
|
810a77ea28be1577791686a1a4675670e4a0fcb9
|
689cdf772da9f871beee7099ab21cd244005bfb2
|
/classes/com/iflytek/cloud/IdentityListener.java
|
ca10e2189e8ccb8ec9fffe65be58d97ba7844f85
|
[] |
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
| 535
|
java
|
package com.iflytek.cloud;
import android.os.Bundle;
public abstract interface IdentityListener
{
public abstract void onError(SpeechError paramSpeechError);
public abstract void onEvent(int paramInt1, int paramInt2, int paramInt3, Bundle paramBundle);
public abstract void onResult(IdentityResult paramIdentityResult, boolean paramBoolean);
}
/* Location: E:\apk\dazhihui2\classes-dex2jar.jar!\com\iflytek\cloud\IdentityListener.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
611c9b2a230ba4f8a9a101071b62edbe19099dc9
|
fbd9583fae54e8aebdb8c688b375ff54b59b339f
|
/leetcode/src/main/java/L200_Number_of_Islands.java
|
4fccc3ab1d10e911e54ba6e5ffd821849ba7611c
|
[] |
no_license
|
ramseyfeng/LeetCode
|
03251ca2e40ff0c742af475bd637a9cb18d76b1a
|
66329ff884b33b47af1e4fd14e6fbe20cbf3df5d
|
refs/heads/master
| 2020-08-09T10:05:55.338584
| 2019-10-09T15:07:37
| 2019-10-09T15:07:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 671
|
java
|
public class L200_Number_of_Islands {
int mx, my;
public int numIslands(char[][] grid) {
if (grid == null || grid.length == 0 || grid[0].length == 0) {
return 0;
}
mx = grid.length;
my = grid[0].length;
int rt = 0;
for (int x = 0; x < mx; x++) {
for (int y = 0; y < my; y++) {
if (grid[x][y] != '1') {
continue;
}
rt++;
dfs(grid, x, y);
}
}
return rt;
}
void dfs(char[][] grid, int x, int y) {
if (x < 0 || x >= mx || y < 0 || y >= my) {
return;
}
if (grid[x][y] == '1') {
grid[x][y] = '2';
dfs(grid, x + 1, y);
dfs(grid, x - 1, y);
dfs(grid, x, y + 1);
dfs(grid, x, y - 1);
}
}
}
|
[
"15822882820@163.com"
] |
15822882820@163.com
|
42610c4fbb09134fe9fbb56cb15839bdc5855996
|
4872ca95620a20e7c2a1a93b443e3f9466c6f9ba
|
/discovery-plugin-strategy-extension-service/src/main/java/com/nepxion/discovery/plugin/strategy/extension/service/context/ServiceStrategyContext.java
|
6e04059feddb475e013c1a45963128e4c84686d1
|
[
"Apache-2.0"
] |
permissive
|
shenzlly/Discovery
|
a8eda364318ea98c74e6369802adc8092cd59928
|
809c92177a1cea3652ccd06c4d09f53691e95df6
|
refs/heads/master
| 2021-06-18T18:16:56.565228
| 2021-01-16T07:27:06
| 2021-01-16T07:27:06
| 145,954,457
| 0
| 0
| null | 2018-08-24T06:54:57
| 2018-08-24T06:54:56
| null |
UTF-8
|
Java
| false
| false
| 2,081
|
java
|
package com.nepxion.discovery.plugin.strategy.extension.service.context;
/**
* <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 java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
public class ServiceStrategyContext {
private static final ThreadLocal<ServiceStrategyContext> THREAD_LOCAL = new InheritableThreadLocal<ServiceStrategyContext>() {
@Override
protected ServiceStrategyContext initialValue() {
return new ServiceStrategyContext();
}
};
public static ServiceStrategyContext getCurrentContext() {
return THREAD_LOCAL.get();
}
public static void clearCurrentContext() {
THREAD_LOCAL.remove();
}
private final Map<String, Object> attributes = new LinkedHashMap<String, Object>();
public ServiceStrategyContext add(String key, Object value) {
attributes.put(key, value);
return this;
}
public Object get(String key) {
return attributes.get(key);
}
public ServiceStrategyContext remove(String key) {
attributes.remove(key);
return this;
}
public ServiceStrategyContext clear() {
attributes.clear();
return this;
}
public Map<String, Object> getAttributes() {
return Collections.unmodifiableMap(attributes);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
@Override
public boolean equals(Object object) {
return EqualsBuilder.reflectionEquals(this, object);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
}
|
[
"1394997@qq.com"
] |
1394997@qq.com
|
97e4332d2f943b52d40829dc69739cc7bb851d8a
|
448a5b961946428a47c96fdfc38a87d3a1ca4372
|
/src/main/java/com/gnsg/app/domain/enumeration/LANGARMENU.java
|
f43eebde2d66eef822007c2d4de22575d4136956
|
[] |
no_license
|
harjeet-me/gnsgSchoolApp
|
c5c6289c2e08d626cbe44cd28ff78595139f9cdd
|
3fa6ab05f837fd7a8112aac6fd25fa7a0c4df8b7
|
refs/heads/master
| 2022-12-23T10:01:02.395535
| 2020-09-02T05:24:17
| 2020-09-02T05:24:17
| 243,640,807
| 0
| 0
| null | 2022-12-16T05:13:15
| 2020-02-27T23:53:49
|
Java
|
UTF-8
|
Java
| false
| false
| 294
|
java
|
package com.gnsg.app.domain.enumeration;
/**
* The LANGARMENU enumeration.
*/
public enum LANGARMENU {
SIMPLE_JALEBI_SHAHIPANEER, SIMPLE_JALEBI_MATARPANEER, SIMPLE_KHEER_SHAHIPANEER, SIMPLE_KHEER_MATARPANEER, SIMPLE_JALEBI_PALAKPANEER, SIMPLE_KHEER_PALAKPANEER, PAKOURE, JALEBI, KHEER
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
39581d3ff3fdd45e5bc5f05c6e21d77a05f22142
|
c8688db388a2c5ac494447bac90d44b34fa4132c
|
/sources/com/google/android/gms/internal/measurement/zzaa.java
|
d7a53babdfcb7623bcd96661075f1a48ff937b1b
|
[] |
no_license
|
mred312/apk-source
|
98dacfda41848e508a0c9db2c395fec1ae33afa1
|
d3ca7c46cb8bf701703468ddc88f25ba4fb9d975
|
refs/heads/master
| 2023-03-06T05:53:50.863721
| 2021-02-23T13:34:20
| 2021-02-23T13:34:20
| 341,481,669
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 884
|
java
|
package com.google.android.gms.internal.measurement;
import android.os.Bundle;
import android.os.Parcel;
/* compiled from: com.google.android.gms:play-services-measurement-base@@17.6.0 */
public abstract class zzaa extends zzc implements zzab {
public zzaa() {
super("com.google.android.gms.measurement.api.internal.IEventHandlerProxy");
}
/* access modifiers changed from: protected */
public final boolean zza(int i, Parcel parcel, Parcel parcel2, int i2) {
if (i == 1) {
zza(parcel.readString(), parcel.readString(), (Bundle) zzb.zza(parcel, Bundle.CREATOR), parcel.readLong());
parcel2.writeNoException();
} else if (i != 2) {
return false;
} else {
int zza = zza();
parcel2.writeNoException();
parcel2.writeInt(zza);
}
return true;
}
}
|
[
"mred312@gmail.com"
] |
mred312@gmail.com
|
3a6ac20c15f1f992750a1156cf90ed369cc411b7
|
6f024865f86614117e73ff1ad784398884edf765
|
/src/main/java/com/inteliclinic/neuroon/fragments/EnergyPlusFragment$$ViewInjector.java
|
330452d0e57d1575abb648242527a771937c9d8d
|
[] |
no_license
|
chakaponden/neuroon-classic-app
|
0df0ef593dd3e55bbffc325cdd0a399265dffb73
|
aa337afe4764a3af5094b3a0bc8cea54aa23dd34
|
refs/heads/main
| 2022-12-25T21:52:49.184564
| 2020-10-09T15:42:36
| 2020-10-09T15:42:36
| 302,444,442
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,849
|
java
|
package com.inteliclinic.neuroon.fragments;
import android.view.View;
import butterknife.ButterKnife;
import com.inteliclinic.neuroon.R;
import com.inteliclinic.neuroon.views.BottomToolbar;
import com.inteliclinic.neuroon.views.dashboard.NapView;
public class EnergyPlusFragment$$ViewInjector {
public static void inject(ButterKnife.Finder finder, final EnergyPlusFragment target, Object source) {
BaseFragment$$ViewInjector.inject(finder, target, source);
target.mBottomToolbar = (BottomToolbar) finder.findRequiredView(source, R.id.bottom_toolbar, "field 'mBottomToolbar'");
View view = finder.findRequiredView(source, R.id.light_boost, "field 'lightBoost' and method 'onLightBoostClick'");
target.lightBoost = (NapView) view;
view.setOnClickListener(new View.OnClickListener() {
public void onClick(View p0) {
target.onLightBoostClick();
}
});
View view2 = finder.findRequiredView(source, R.id.recharge_nap, "field 'rechargeNap' and method 'onPowerNapClick'");
target.rechargeNap = (NapView) view2;
view2.setOnClickListener(new View.OnClickListener() {
public void onClick(View p0) {
target.onPowerNapClick();
}
});
View view3 = finder.findRequiredView(source, R.id.body_nap, "field 'bodyNap' and method 'onBodyNapClick'");
target.bodyNap = (NapView) view3;
view3.setOnClickListener(new View.OnClickListener() {
public void onClick(View p0) {
target.onBodyNapClick();
}
});
View view4 = finder.findRequiredView(source, R.id.mind_nap, "field 'remNap' and method 'onMindNapClick'");
target.remNap = (NapView) view4;
view4.setOnClickListener(new View.OnClickListener() {
public void onClick(View p0) {
target.onMindNapClick();
}
});
View view5 = finder.findRequiredView(source, R.id.ultimate_nap, "field 'ultimateNap' and method 'onUltimateNapClick'");
target.ultimateNap = (NapView) view5;
view5.setOnClickListener(new View.OnClickListener() {
public void onClick(View p0) {
target.onUltimateNapClick();
}
});
finder.findRequiredView(source, R.id.menu, "method 'onMenuClick'").setOnClickListener(new View.OnClickListener() {
public void onClick(View p0) {
target.onMenuClick();
}
});
}
public static void reset(EnergyPlusFragment target) {
BaseFragment$$ViewInjector.reset(target);
target.mBottomToolbar = null;
target.lightBoost = null;
target.rechargeNap = null;
target.bodyNap = null;
target.remNap = null;
target.ultimateNap = null;
}
}
|
[
"motometalor@gmail.com"
] |
motometalor@gmail.com
|
e8d06036d77cc7a9b3392acf5fd881277af8108c
|
0428138996bebf683c0dcfe21d2a94b7c9743ce7
|
/src/main/java/hu/nive/ujratervezes/zarovizsga/aquarium/Fish.java
|
4bd1c17fdde27fb28ac0e2f06bb5e5e58e973fb8
|
[] |
no_license
|
kincza1971/zarovizsga-potvizsga2
|
f625a3d746e72154db837082aceb53563ef69eee
|
40a4fa6b3fc7e303296fc4df45316fbaad7cdfec
|
refs/heads/master
| 2023-03-27T17:56:14.498121
| 2021-03-27T08:52:15
| 2021-03-27T08:52:15
| 352,007,882
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,527
|
java
|
package hu.nive.ujratervezes.zarovizsga.aquarium;
public abstract class Fish {
private final String name;
private int weight;
private final String colour;
private final boolean memoryLoss;
protected Fish(String name, int weight, String colour, boolean hasMemoryLoss) {
this.name = name;
this.weight = weight;
this.colour = colour;
this.memoryLoss = hasMemoryLoss;
}
public String status() {
return name + ", weight: " + weight + ", color: " + colour + ", short term memory loss: " + memoryLoss;
}
public abstract void feed();
protected void incWeight(int w) {
weight += w;
}
public String getName() {
return name;
}
public int getWeight() {
return weight;
}
public String getColor() {
return colour;
}
public boolean hasMemoryLoss() {
return memoryLoss;
}
}
//Halak (OOP feladatrész, 20 pont, hozzá tartozó teszt: FishTest)
//Minden halnak van neve, súlya grammban és színe.
//
//Emellett minden hal számára elérhetőek az alábbi metódusok:
//
//status(): adja vissza a hal adatait egy Stringben, pl Dory, weight: 9, color: blue, short-term memory loss: true
//
//feed(): megnöveli a hal súlyát, a pontos implementáció a hal fajtájától függ.
//
//Clownfish
//A bohóchal 1 grammot hízik etetéskor.
//
//Tang
//A tang 1 grammot hízik etetéskor, és rövidtávú-memória zavarban szenvedhet.
//
//Kong
//A kong 2 grammot hízik etetéskor.
|
[
"kincza@gmail.com"
] |
kincza@gmail.com
|
ee86a231560068c968a3edd3ce814611a3cf6c69
|
fb53df541ee8c34a120937e05721798fdb4a9f61
|
/spring-security-with-session/src/main/java/com/yuntian/security/service/impl/SysRoleMenuServiceImpl.java
|
fdca2b54561a372ca6f1a7bf3f1c185b5d30a41b
|
[] |
no_license
|
chuzhonglingyan/certificate-authority
|
a5b91622dcb63e861bd5dcb5ff18e60b9892a67d
|
7346e2f36213d56c62ea3912f56f555150d4a060
|
refs/heads/master
| 2022-06-24T06:04:56.869938
| 2020-04-26T06:57:39
| 2020-04-26T06:57:39
| 256,471,636
| 0
| 0
| null | 2022-06-17T03:08:21
| 2020-04-17T10:23:39
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 1,905
|
java
|
package com.yuntian.security.service.impl;
import com.yuntian.security.model.entity.SysRoleMenu;
import com.yuntian.security.dao.SysRoleMenuDao;
import com.yuntian.security.service.SysRoleMenuService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* 后台系统-角色菜单关系表(SysRoleMenu)表服务实现类
*
* @author makejava
* @since 2020-04-19 10:52:15
*/
@Service("sysRoleMenuService")
public class SysRoleMenuServiceImpl implements SysRoleMenuService {
@Resource
private SysRoleMenuDao sysRoleMenuDao;
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
@Override
public SysRoleMenu queryById(Long id) {
return this.sysRoleMenuDao.queryById(id);
}
/**
* 查询多条数据
*
* @param offset 查询起始位置
* @param limit 查询条数
* @return 对象列表
*/
@Override
public List<SysRoleMenu> queryAllByLimit(int offset, int limit) {
return this.sysRoleMenuDao.queryAllByLimit(offset, limit);
}
/**
* 新增数据
*
* @param sysRoleMenu 实例对象
* @return 实例对象
*/
@Override
public SysRoleMenu insert(SysRoleMenu sysRoleMenu) {
this.sysRoleMenuDao.insert(sysRoleMenu);
return sysRoleMenu;
}
/**
* 修改数据
*
* @param sysRoleMenu 实例对象
* @return 实例对象
*/
@Override
public SysRoleMenu update(SysRoleMenu sysRoleMenu) {
this.sysRoleMenuDao.update(sysRoleMenu);
return this.queryById(sysRoleMenu.getId());
}
/**
* 通过主键删除数据
*
* @param id 主键
* @return 是否成功
*/
@Override
public boolean deleteById(Long id) {
return this.sysRoleMenuDao.deleteById(id) > 0;
}
}
|
[
"944610721@qq.com"
] |
944610721@qq.com
|
68e2490901903015f80cd9598d61c5178bac8d61
|
d71e879b3517cf4fccde29f7bf82cff69856cfcd
|
/ExtractedJars/RT_News_com.rt.mobile.english/javafiles/com/google/android/exoplayer2/source/smoothstreaming/manifest/StreamKey.java
|
985eb6d565f4e4ae03aa7b84f79ccb984ba0b130
|
[
"MIT"
] |
permissive
|
Andreas237/AndroidPolicyAutomation
|
b8e949e072d08cf6c6166c3f15c9c63379b8f6ce
|
c1ed10a2c6d4cf3dfda8b8e6291dee2c2a15ee8a
|
refs/heads/master
| 2020-04-10T02:14:08.789751
| 2019-05-16T19:29:11
| 2019-05-16T19:29:11
| 160,739,088
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,217
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.exoplayer2.source.smoothstreaming.manifest;
public final class StreamKey
implements Comparable
{
public StreamKey(int i, int j)
{
// 0 0:aload_0
// 1 1:invokespecial #15 <Method void Object()>
streamElementIndex = i;
// 2 4:aload_0
// 3 5:iload_1
// 4 6:putfield #17 <Field int streamElementIndex>
trackIndex = j;
// 5 9:aload_0
// 6 10:iload_2
// 7 11:putfield #19 <Field int trackIndex>
// 8 14:return
}
public int compareTo(StreamKey streamkey)
{
int j = streamElementIndex - streamkey.streamElementIndex;
// 0 0:aload_0
// 1 1:getfield #17 <Field int streamElementIndex>
// 2 4:aload_1
// 3 5:getfield #17 <Field int streamElementIndex>
// 4 8:isub
// 5 9:istore_3
int i = j;
// 6 10:iload_3
// 7 11:istore_2
if(j == 0)
//* 8 12:iload_3
//* 9 13:ifne 26
i = trackIndex - streamkey.trackIndex;
// 10 16:aload_0
// 11 17:getfield #19 <Field int trackIndex>
// 12 20:aload_1
// 13 21:getfield #19 <Field int trackIndex>
// 14 24:isub
// 15 25:istore_2
return i;
// 16 26:iload_2
// 17 27:ireturn
}
public volatile int compareTo(Object obj)
{
return compareTo((StreamKey)obj);
// 0 0:aload_0
// 1 1:aload_1
// 2 2:checkcast #2 <Class StreamKey>
// 3 5:invokevirtual #27 <Method int compareTo(StreamKey)>
// 4 8:ireturn
}
public boolean equals(Object obj)
{
if(this == obj)
//* 0 0:aload_0
//* 1 1:aload_1
//* 2 2:if_acmpne 7
return true;
// 3 5:iconst_1
// 4 6:ireturn
if(obj != null)
//* 5 7:aload_1
//* 6 8:ifnull 55
{
if(((Object)this).getClass() != obj.getClass())
//* 7 11:aload_0
//* 8 12:invokevirtual #34 <Method Class Object.getClass()>
//* 9 15:aload_1
//* 10 16:invokevirtual #34 <Method Class Object.getClass()>
//* 11 19:if_acmpeq 24
return false;
// 12 22:iconst_0
// 13 23:ireturn
obj = ((Object) ((StreamKey)obj));
// 14 24:aload_1
// 15 25:checkcast #2 <Class StreamKey>
// 16 28:astore_1
return streamElementIndex == ((StreamKey) (obj)).streamElementIndex && trackIndex == ((StreamKey) (obj)).trackIndex;
// 17 29:aload_0
// 18 30:getfield #17 <Field int streamElementIndex>
// 19 33:aload_1
// 20 34:getfield #17 <Field int streamElementIndex>
// 21 37:icmpne 53
// 22 40:aload_0
// 23 41:getfield #19 <Field int trackIndex>
// 24 44:aload_1
// 25 45:getfield #19 <Field int trackIndex>
// 26 48:icmpne 53
// 27 51:iconst_1
// 28 52:ireturn
// 29 53:iconst_0
// 30 54:ireturn
} else
{
return false;
// 31 55:iconst_0
// 32 56:ireturn
}
}
public int hashCode()
{
return 31 * streamElementIndex + trackIndex;
// 0 0:bipush 31
// 1 2:aload_0
// 2 3:getfield #17 <Field int streamElementIndex>
// 3 6:imul
// 4 7:aload_0
// 5 8:getfield #19 <Field int trackIndex>
// 6 11:iadd
// 7 12:ireturn
}
public String toString()
{
StringBuilder stringbuilder = new StringBuilder();
// 0 0:new #40 <Class StringBuilder>
// 1 3:dup
// 2 4:invokespecial #41 <Method void StringBuilder()>
// 3 7:astore_1
stringbuilder.append(streamElementIndex);
// 4 8:aload_1
// 5 9:aload_0
// 6 10:getfield #17 <Field int streamElementIndex>
// 7 13:invokevirtual #45 <Method StringBuilder StringBuilder.append(int)>
// 8 16:pop
stringbuilder.append(".");
// 9 17:aload_1
// 10 18:ldc1 #47 <String ".">
// 11 20:invokevirtual #50 <Method StringBuilder StringBuilder.append(String)>
// 12 23:pop
stringbuilder.append(trackIndex);
// 13 24:aload_1
// 14 25:aload_0
// 15 26:getfield #19 <Field int trackIndex>
// 16 29:invokevirtual #45 <Method StringBuilder StringBuilder.append(int)>
// 17 32:pop
return stringbuilder.toString();
// 18 33:aload_1
// 19 34:invokevirtual #52 <Method String StringBuilder.toString()>
// 20 37:areturn
}
public final int streamElementIndex;
public final int trackIndex;
}
|
[
"silenta237@gmail.com"
] |
silenta237@gmail.com
|
52d7f2859da56752a59ed3bc954ab419b463c8da
|
f928597092fdc5bc76fa073c38bf080ae45e1a9e
|
/src/test/java/org/assertj/core/internal/maps/Maps_assertDoesNotContainKeys_Test.java
|
9ce18a6b2c8af95def405d49f3875d3b30fcc7d5
|
[
"Apache-2.0"
] |
permissive
|
ZhenyiLi/assertj-core
|
a38215008de1646c04a8368d7e579b85779eeb10
|
fe00a8c7dbb4dfc2756b068c9b17fcbb475c379b
|
refs/heads/master
| 2020-04-05T23:26:19.898780
| 2015-01-20T08:17:48
| 2015-01-20T08:17:48
| 30,147,743
| 1
| 0
| null | 2015-02-01T14:02:57
| 2015-02-01T14:02:56
| null |
UTF-8
|
Java
| false
| false
| 2,816
|
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.
*
* Copyright 2012-2014 the original author or authors.
*/
package org.assertj.core.internal.maps;
import static org.assertj.core.error.ShouldNotContainKeys.shouldNotContainKeys;
import static org.assertj.core.test.TestData.someInfo;
import static org.assertj.core.test.TestFailures.failBecauseExpectedAssertionErrorWasNotThrown;
import static org.assertj.core.util.FailureMessages.actualIsNull;
import static org.assertj.core.util.Sets.newLinkedHashSet;
import static org.mockito.Mockito.verify;
import org.assertj.core.api.AssertionInfo;
import org.assertj.core.internal.MapsBaseTest;
import org.junit.Before;
import org.junit.Test;
/**
* Tests for <code>{@link org.assertj.core.internal.Maps#assertDoesNotContainKeys(org.assertj.core.api.AssertionInfo, java.util.Map, Object...)}</code>.
*
* @author dorzey
*/
public class Maps_assertDoesNotContainKeys_Test extends MapsBaseTest {
@Override
@Before
public void setUp() {
super.setUp();
actual.put(null, null);
}
@Test
public void should_pass_if_actual_does_not_contain_given_keys() {
maps.assertDoesNotContainKeys(someInfo(), actual, "age");
}
@Test
public void should_fail_if_actual_is_null() {
thrown.expectAssertionError(actualIsNull());
maps.assertDoesNotContainKeys(someInfo(), null, "name", "color");
}
@Test
public void should_pass_if_key_is_null() {
maps.assertDoesNotContainKeys(someInfo(), actual, (String) null);
}
@Test
public void should_fail_if_actual_contains_key() {
AssertionInfo info = someInfo();
String key = "name";
try {
maps.assertDoesNotContainKeys(info, actual, key);
} catch (AssertionError e) {
verify(failures).failure(info, shouldNotContainKeys(actual, newLinkedHashSet(key)));
return;
}
failBecauseExpectedAssertionErrorWasNotThrown();
}
@Test
public void should_fail_if_actual_contains_keys() {
AssertionInfo info = someInfo();
String key1 = "name";
String key2 = "color";
try {
maps.assertDoesNotContainKeys(info, actual, key1, key2);
} catch (AssertionError e) {
verify(failures).failure(info, shouldNotContainKeys(actual, newLinkedHashSet(key1, key2)));
return;
}
failBecauseExpectedAssertionErrorWasNotThrown();
}
}
|
[
"joel.costigliola@gmail.com"
] |
joel.costigliola@gmail.com
|
f0670ee90e083ce9f08aa73324aa3928cb8fe92d
|
e8b9a6903c7e7ef135dbcdb9d509fc033e242f00
|
/src/com/aotuspace/web/spgoods/model/po/task/SpAotuerpTreasureTask.java
|
1022e30c9d79cd6ffd17b7cb807358dbdf0e66e1
|
[] |
no_license
|
zowbman/aotuspace
|
007a8bbe2412e444dddc467810ba7fc04875495c
|
b33dc0c1595dfeaba9280495b1d81fdd595aaa19
|
refs/heads/master
| 2020-05-23T08:11:07.694339
| 2016-10-08T02:12:53
| 2016-10-08T02:12:55
| 70,296,277
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 2,678
|
java
|
package com.aotuspace.web.spgoods.model.po.task;
import java.util.Date;
/**
*
* Title:SpAotuerpTreasureTask
* Description:任务
* Company:aotuspace
* @author 伟宝
* @date 2015-11-30 下午6:01:45
*
*/
public class SpAotuerpTreasureTask {
private Integer spId;
private Integer spTreasureid;
private Date spTaskuploadtime;
private Date spTaskunloadtime;
private Integer spAnid;
private Integer spTaskaging;
private Integer spStatusid;
private String spTaskremark;
private Integer spTaskmodeid;
public Integer getSpId() {
return spId;
}
public void setSpId(Integer spId) {
this.spId = spId;
}
public Integer getSpTreasureid() {
return spTreasureid;
}
public void setSpTreasureid(Integer spTreasureid) {
this.spTreasureid = spTreasureid;
}
public Date getSpTaskuploadtime() {
return spTaskuploadtime;
}
public void setSpTaskuploadtime(Date spTaskuploadtime) {
this.spTaskuploadtime = spTaskuploadtime;
}
public Date getSpTaskunloadtime() {
return spTaskunloadtime;
}
public void setSpTaskunloadtime(Date spTaskunloadtime) {
this.spTaskunloadtime = spTaskunloadtime;
}
public Integer getSpAnid() {
return spAnid;
}
public void setSpAnid(Integer spAnid) {
this.spAnid = spAnid;
}
public Integer getSpTaskaging() {
return spTaskaging;
}
public void setSpTaskaging(Integer spTaskaging) {
this.spTaskaging = spTaskaging;
}
public Integer getSpStatusid() {
return spStatusid;
}
public void setSpStatusid(Integer spStatusid) {
this.spStatusid = spStatusid;
}
public String getSpTaskremark() {
return spTaskremark;
}
public void setSpTaskremark(String spTaskremark) {
this.spTaskremark = spTaskremark == null ? null : spTaskremark.trim();
}
public Integer getSpTaskmodeid() {
return spTaskmodeid;
}
public void setSpTaskmodeid(Integer spTaskmodeid) {
this.spTaskmodeid = spTaskmodeid;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((spId == null) ? 0 : spId.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
//if (getClass() != obj.getClass()) //因为mybatis、hibernate的代理模式问题,
//使得equal方法的getClass出来是有代理对象和真实对象,改为if (!(obj instanceof SpAotuerpTreasureTask))
if (!(obj instanceof SpAotuerpTreasureTask))
return false;
SpAotuerpTreasureTask other = (SpAotuerpTreasureTask) obj;
if (spId == null) {
if (other.spId != null)
return false;
} else if (!spId.equals(other.spId))
return false;
return true;
}
}
|
[
"zhangweibao@kugou.net"
] |
zhangweibao@kugou.net
|
064fbef800ad4021e8e8c10870c5d5018cb19564
|
39b6f3d034a4b3b4ab15e2d9fe0fc2bd30c6025b
|
/common/src/main/java/com/example/common/exception/user/UserException.java
|
b40daeb486711908bfb0ff3754c6009c2998c33d
|
[] |
no_license
|
service-java/tpl-ruoyi-vue-202007
|
a3ade3d771f72977911b783c18454fb07d6dd627
|
f64abab89691962fe5c9823e1079b7d2edc3c08f
|
refs/heads/master
| 2022-12-13T09:13:22.668341
| 2020-09-02T06:53:12
| 2020-09-02T06:53:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 362
|
java
|
package com.example.common.exception.user;
import com.example.common.exception.BaseException;
/**
* 用户信息异常类
*
* @author ruoyi
*/
public class UserException extends BaseException
{
private static final long serialVersionUID = 1L;
public UserException(String code, Object[] args)
{
super("user", code, args, null);
}
}
|
[
"1095847440@qq.com"
] |
1095847440@qq.com
|
56cef5531daa538f140f56c0650c753acecb05f3
|
e4aea93f2988e2cf1be4f96a39f6cc3328cbbd50
|
/src/com/flagleader/repository/db/FKModel.java
|
f7dc04e10d73e0796528e2490c54ba03838c52aa
|
[] |
no_license
|
lannerate/ruleBuilder
|
18116282ae55e9d56e9eb45d483520f90db4a1a6
|
b5d87495990aa1988adf026366e92f7cbb579b19
|
refs/heads/master
| 2016-09-05T09:13:43.879603
| 2013-11-10T08:32:58
| 2013-11-10T08:32:58
| 14,231,127
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,289
|
java
|
package com.flagleader.repository.db;
import com.flagleader.repository.AbstractElement;
import com.flagleader.repository.IElement;
import com.flagleader.repository.RepositoryVisitor;
import com.flagleader.repository.tree.AdvancedProperty;
import com.flagleader.sql.RuleKey;
import java.util.ArrayList;
public class FKModel extends AbstractElement
{
private String pkTableName = "";
private int pkType = 0;
private String FKTableName = "";
private int fkType = 0;
private String FKName = "";
private String PKName = "";
private String defaultValue = "NULL";
private int updateRule = 0;
private int deleteRule = 0;
ArrayList a = new ArrayList(1);
public FKModel(FKModel paramFKModel)
{
super(paramFKModel);
this.pkTableName = paramFKModel.pkTableName;
this.pkType = paramFKModel.pkType;
this.FKTableName = paramFKModel.FKTableName;
this.fkType = paramFKModel.fkType;
this.FKName = paramFKModel.FKName;
this.PKName = paramFKModel.PKName;
this.defaultValue = paramFKModel.defaultValue;
this.updateRule = paramFKModel.updateRule;
this.deleteRule = paramFKModel.deleteRule;
}
public FKModel(String paramString1, String paramString2)
{
this.pkTableName = paramString1;
this.FKTableName = paramString2;
}
public FKModel(String paramString1, int paramInt1, String paramString2, int paramInt2)
{
this.pkTableName = paramString1;
this.pkType = paramInt1;
this.FKTableName = paramString2;
this.fkType = paramInt2;
}
public FKModel()
{
}
public String toString()
{
return this.FKName;
}
public String getName()
{
return "fkModel";
}
public String getFKTableName()
{
return this.FKTableName;
}
public void setFieldName(String paramString)
{
if (this.a.size() == 0)
this.a.add(new AdvancedProperty());
((AdvancedProperty)this.a.get(0)).setKey(paramString);
}
public void addKey(String paramString1, String paramString2)
{
this.a.add(new AdvancedProperty(paramString1, paramString2));
}
public void setFKFieldName(String paramString)
{
if (this.a.size() == 0)
this.a.add(new AdvancedProperty());
((AdvancedProperty)this.a.get(0)).setProperty(paramString);
}
public boolean isFKField(String paramString1, String paramString2)
{
if (getFKTableName().equalsIgnoreCase(paramString1))
for (int i = 0; i < this.a.size(); i++)
if (((AdvancedProperty)this.a.get(i)).getProperty().equalsIgnoreCase(paramString2))
return true;
return false;
}
public String getPkFieldNames()
{
StringBuffer localStringBuffer = new StringBuffer();
for (int i = 0; i < this.a.size(); i++)
{
localStringBuffer.append(((AdvancedProperty)this.a.get(i)).getKey());
if (i >= this.a.size() - 1)
continue;
localStringBuffer.append(",");
}
return localStringBuffer.toString();
}
public boolean isFriendkey(String paramString1, String paramString2)
{
return (this.FKTableName.equalsIgnoreCase(paramString1)) && (this.a.size() == 1) && (((AdvancedProperty)this.a.get(0)).getProperty().equalsIgnoreCase(paramString2));
}
public String getFkFieldNames()
{
StringBuffer localStringBuffer = new StringBuffer();
for (int i = 0; i < this.a.size(); i++)
{
localStringBuffer.append(((AdvancedProperty)this.a.get(i)).getProperty());
if (i >= this.a.size() - 1)
continue;
localStringBuffer.append(",");
}
return localStringBuffer.toString();
}
public void setFKTableName(String paramString)
{
this.FKTableName = paramString;
}
public String getPkTableName()
{
return this.pkTableName;
}
public void setPkTableName(String paramString)
{
this.pkTableName = paramString;
}
public String getFKName()
{
if ((this.FKName == null) || (this.FKName.length() == 0))
return "FK_" + this.pkTableName + "_" + this.FKTableName;
return this.FKName;
}
public void setFKName(String paramString)
{
if (paramString != null)
this.FKName = paramString;
}
public String getPKName()
{
return this.PKName;
}
public void setPKName(String paramString)
{
if (paramString != null)
this.PKName = paramString;
}
public int getDeleteRule()
{
return this.deleteRule;
}
public void setDeleteRule(int paramInt)
{
this.deleteRule = paramInt;
}
public int getUpdateRule()
{
return this.updateRule;
}
public void setUpdateRule(int paramInt)
{
this.updateRule = paramInt;
}
public String getDefaultValue()
{
return this.defaultValue;
}
public void setDefaultValue(String paramString)
{
this.defaultValue = paramString;
}
public RuleKey getRuleKey()
{
RuleKey localRuleKey = new RuleKey(this.pkTableName, getPkFieldNames(), this.FKTableName, getFkFieldNames(), this.updateRule, this.deleteRule, this.defaultValue);
return localRuleKey;
}
public int getPkType()
{
return this.pkType;
}
public void setPkType(int paramInt)
{
this.pkType = paramInt;
}
public int getFkType()
{
return this.fkType;
}
public void setFkType(int paramInt)
{
this.fkType = paramInt;
}
public Object acceptVisitor(RepositoryVisitor paramRepositoryVisitor)
{
return paramRepositoryVisitor.visitFKModel(this);
}
public IElement deepClone()
{
return new FKModel(this);
}
public ArrayList getKeys()
{
return this.a;
}
public void addAdvanceProperty(AdvancedProperty paramAdvancedProperty)
{
a(paramAdvancedProperty.getKey());
this.a.add(paramAdvancedProperty);
}
private void a(String paramString)
{
for (int i = 0; i < this.a.size(); i++)
{
if (!((AdvancedProperty)this.a.get(i)).getKey().equals(paramString))
continue;
this.a.remove(i);
}
}
}
/* Location: D:\Dev_tools\ruleEngine\rbuilder.jar
* Qualified Name: com.flagleader.repository.db.FKModel
* JD-Core Version: 0.6.0
*/
|
[
"zhanghuizaizheli@hotmail.com"
] |
zhanghuizaizheli@hotmail.com
|
c22f06fd6598175e0f9efa1d7a50078c08b22a2c
|
45a7659a8f46f562debb95ad44d4f21fd38a7236
|
/src/OOD_Advanced/session01_basic_concept/vending_machine/CashPayment.java
|
8f1a6aa47932bd49567c05ec44bfb460bf00e281
|
[] |
no_license
|
t1lu/techbow
|
cf7249524f0c0bae19d99244a412e6b6449ab04e
|
92a533cd9bc794e28ed18724150742a10e986cee
|
refs/heads/master
| 2023-04-14T15:03:39.352369
| 2021-04-20T06:52:05
| 2021-04-20T06:52:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 223
|
java
|
package OOD_Advanced.session01_basic_concept.vending_machine;
public final class CashPayment implements Payment {
@Override
public boolean pay(Product product, double value) {
return value >= product.getPrice();
}
}
|
[
"iyangzeshi@outlook.com"
] |
iyangzeshi@outlook.com
|
d9a80b9bee0be721819ae7debefa45d6865d1778
|
15ff5ab048ba88e3630560fa3a8b401a23b0cb5d
|
/src/android/support/v7/widget/DropDownListView.java
|
8437d583127925b56ff44e3da62e1926cd6145c4
|
[] |
no_license
|
TinyTechGirl/JustJava
|
08695e27992ceeea0f6a532ef0b2a28c61c86ff7
|
8a1d1175b79df5d50e9ecfd08580b9b995dd6641
|
refs/heads/master
| 2020-03-19T18:57:07.304602
| 2018-06-10T18:02:53
| 2018-06-10T18:02:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,369
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package android.support.v7.widget;
import android.content.Context;
import android.support.v4.view.ViewPropertyAnimatorCompat;
import android.support.v4.widget.ListViewAutoScrollHelper;
import android.view.MotionEvent;
import android.view.View;
// Referenced classes of package android.support.v7.widget:
// ListViewCompat
class DropDownListView extends ListViewCompat
{
private ViewPropertyAnimatorCompat mClickAnimation;
private boolean mDrawsInPressedState;
private boolean mHijackFocus;
private boolean mListSelectionHidden;
private ListViewAutoScrollHelper mScrollHelper;
public DropDownListView(Context context, boolean flag)
{
super(context, null, android.support.v7.appcompat.R.attr.dropDownListViewStyle);
mHijackFocus = flag;
setCacheColorHint(0);
}
private void clearPressedItem()
{
mDrawsInPressedState = false;
setPressed(false);
drawableStateChanged();
View view = getChildAt(mMotionPosition - getFirstVisiblePosition());
if (view != null)
{
view.setPressed(false);
}
if (mClickAnimation != null)
{
mClickAnimation.cancel();
mClickAnimation = null;
}
}
private void clickPressedItem(View view, int i)
{
performItemClick(view, i, getItemIdAtPosition(i));
}
private void setPressedItem(View view, int i, float f, float f1)
{
mDrawsInPressedState = true;
if (android.os.Build.VERSION.SDK_INT >= 21)
{
drawableHotspotChanged(f, f1);
}
if (!isPressed())
{
setPressed(true);
}
layoutChildren();
if (mMotionPosition != -1)
{
View view1 = getChildAt(mMotionPosition - getFirstVisiblePosition());
if (view1 != null && view1 != view && view1.isPressed())
{
view1.setPressed(false);
}
}
mMotionPosition = i;
float f2 = view.getLeft();
float f3 = view.getTop();
if (android.os.Build.VERSION.SDK_INT >= 21)
{
view.drawableHotspotChanged(f - f2, f1 - f3);
}
if (!view.isPressed())
{
view.setPressed(true);
}
positionSelectorLikeTouchCompat(i, view, f, f1);
setSelectorEnabled(false);
refreshDrawableState();
}
public boolean hasFocus()
{
return mHijackFocus || super.hasFocus();
}
public boolean hasWindowFocus()
{
return mHijackFocus || super.hasWindowFocus();
}
public boolean isFocused()
{
return mHijackFocus || super.isFocused();
}
public boolean isInTouchMode()
{
return mHijackFocus && mListSelectionHidden || super.isInTouchMode();
}
public boolean onForwardedEvent(MotionEvent motionevent, int i)
{
boolean flag;
int j;
boolean flag1;
boolean flag2;
flag1 = true;
flag2 = true;
flag = false;
j = motionevent.getActionMasked();
j;
JVM INSTR tableswitch 1 3: default 44
// 1 119
// 2 122
// 3 110;
goto _L1 _L2 _L3 _L4
_L1:
flag1 = flag2;
i = ((flag) ? 1 : 0);
_L10:
if (!flag1 || i != 0)
{
clearPressedItem();
}
if (!flag1) goto _L6; else goto _L5
_L5:
if (mScrollHelper == null)
{
mScrollHelper = new ListViewAutoScrollHelper(this);
}
mScrollHelper.setEnabled(true);
mScrollHelper.onTouch(this, motionevent);
_L8:
return flag1;
_L4:
flag1 = false;
i = ((flag) ? 1 : 0);
continue; /* Loop/switch isn't completed */
_L2:
flag1 = false;
_L3:
int k = motionevent.findPointerIndex(i);
if (k < 0)
{
flag1 = false;
i = ((flag) ? 1 : 0);
} else
{
i = (int)motionevent.getX(k);
int l = (int)motionevent.getY(k);
k = pointToPosition(i, l);
if (k == -1)
{
i = 1;
} else
{
View view = getChildAt(k - getFirstVisiblePosition());
setPressedItem(view, k, i, l);
boolean flag3 = true;
i = ((flag) ? 1 : 0);
flag1 = flag3;
if (j == 1)
{
clickPressedItem(view, k);
i = ((flag) ? 1 : 0);
flag1 = flag3;
}
}
}
continue; /* Loop/switch isn't completed */
_L6:
if (mScrollHelper == null) goto _L8; else goto _L7
_L7:
mScrollHelper.setEnabled(false);
return flag1;
if (true) goto _L10; else goto _L9
_L9:
}
void setListSelectionHidden(boolean flag)
{
mListSelectionHidden = flag;
}
protected boolean touchModeDrawsInPressedStateCompat()
{
return mDrawsInPressedState || super.touchModeDrawsInPressedStateCompat();
}
}
|
[
"39646332+Daisy98Faith@users.noreply.github.com"
] |
39646332+Daisy98Faith@users.noreply.github.com
|
b7c7af4c837292482c0d10239e8017f025331fce
|
22de304febe0338d00d89a71aba66ff038b58767
|
/TPs2011/TP5_JeuDeLoie/JeuDeLoie/src/jeuDeLoie/oie/StartCell.java
|
d62955b34fb4129e275f18b96453cf91d1537924
|
[] |
no_license
|
TarikDjebienBachelor/COO
|
f1900a821d880364c4d65e42843fd667629671a6
|
248c5620d982d8f5239b7c158791ecc0e4fa2573
|
refs/heads/master
| 2021-05-07T01:58:47.585988
| 2017-11-12T00:27:03
| 2017-11-12T00:27:03
| 110,391,409
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 517
|
java
|
package jeuDeLoie.oie;
public class StartCell implements Cell {
protected PlayerList thePlayers;
@Override
public boolean canBeLeft() {
return true;
}
@Override
public int consequence(int dieThrow) {
return 0;
}
@Override
public int getIndex() {
return 0;
}
@Override
public Player getPlayer() {
return this.thePlayers.nextPlayer();
}
@Override
public boolean isBusy() {
return false;
}
@Override
public void setPlayer(Player player) {
this.thePlayers.addPlayer(player);
}
}
|
[
"tarik.djebien@gmail.com"
] |
tarik.djebien@gmail.com
|
3fd1fabef38aba6a0077ce64831ca259a19895ed
|
0e3f1ace4ca773d2190f44bacc7f718d4c4a10ca
|
/PlantCell Core/src/au/edu/unimelb/plantcell/io/read/fasta/SequenceExtractorNodeFactory.java
|
b6ac4b87abd91a470f5d4d1b3244847d1fcd5e49
|
[] |
no_license
|
BioKNIME/plantcell
|
35cf74347e4447668f17e359c2e0574f99bb6a9d
|
c02c7d9cbc86ee26db86047dbb46dee1e2aae20e
|
refs/heads/master
| 2021-01-19T14:28:37.099349
| 2014-09-03T05:25:16
| 2014-09-03T05:25:16
| 88,166,799
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,388
|
java
|
package au.edu.unimelb.plantcell.io.read.fasta;
import org.knime.core.node.NodeDialogPane;
import org.knime.core.node.NodeFactory;
import org.knime.core.node.NodeView;
/**
* <code>NodeFactory</code> for the "FastaReader" Node.
* This nodes reads sequences from the user-specified FASTA file and outputs three columns per sequence: * n1) Accession * n2) Description - often not accurate in practice * n3) Sequence data * n * nNo line breaks are preserved.
*
* @author Andrew Cassin
*/
public class SequenceExtractorNodeFactory
extends NodeFactory<SequenceExtractorNodeModel> {
/**
* {@inheritDoc}
*/
@Override
public SequenceExtractorNodeModel createNodeModel() {
return new SequenceExtractorNodeModel();
}
/**
* {@inheritDoc}
*/
@Override
public int getNrNodeViews() {
return 0;
}
/**
* {@inheritDoc}
*/
@Override
public NodeView<SequenceExtractorNodeModel> createNodeView(final int viewIndex,
final SequenceExtractorNodeModel nodeModel) {
return null; // no view for this node
}
/**
* {@inheritDoc}
*/
@Override
public boolean hasDialog() {
return true;
}
/**
* {@inheritDoc}
*/
@Override
public NodeDialogPane createNodeDialogPane() {
return new SequenceExtractorNodeDialog();
}
}
|
[
"pcbrc-enquiries@unimelb.edu.au@dddfb942-a9a2-2c26-f143-85623fb4cac2"
] |
pcbrc-enquiries@unimelb.edu.au@dddfb942-a9a2-2c26-f143-85623fb4cac2
|
ba1b39e81546fb414b617a7ef5b66c505074dab3
|
2dcf90c181b6737786013fccbbb273997ff92b09
|
/launcher/src/main/java/com/carrotsearch/console/jcommander/converters/BooleanConverter.java
|
8dbf8a2c4d0d10e78ef87b2342cd5c850f9ae2a8
|
[
"LicenseRef-scancode-bsd-ack-carrot2"
] |
permissive
|
carrotsearch/console-tools
|
91278717781c5a01b72af929cf88525d85e7fd7f
|
8a7012ec00cc65806196fcb1fe74d2f4a083969c
|
refs/heads/master
| 2023-09-06T05:55:58.528371
| 2023-01-13T13:49:39
| 2023-01-13T13:49:39
| 198,816,436
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 674
|
java
|
/*
* console-tools
*
* Copyright (C) 2019, Carrot Search s.c.
* All rights reserved.
*/
package com.carrotsearch.console.jcommander.converters;
import com.carrotsearch.console.jcommander.ParameterException;
/**
* Converts a string to a boolean.
*
* @author cbeust
*/
public class BooleanConverter extends BaseConverter<Boolean> {
public BooleanConverter(String optionName) {
super(optionName);
}
public Boolean convert(String value) {
if ("false".equalsIgnoreCase(value) || "true".equalsIgnoreCase(value)) {
return Boolean.parseBoolean(value);
} else {
throw new ParameterException(getErrorString(value, "a boolean"));
}
}
}
|
[
"dawid.weiss@carrotsearch.com"
] |
dawid.weiss@carrotsearch.com
|
dfdd068f122ef118d3b01aaa417d47e501ea8f4a
|
65f0b67ff69773d7f544cd83c0b7ecbe935a1cc2
|
/MavlinkProtocol/src/main/java/com/dronegcs/mavlink/is/protocol/msg_metadata/ardupilotmega/msg_camera_feedback.java
|
f9eed61c215b92b64ffdc72d37781ade65d5ec18
|
[] |
no_license
|
taljmars/Mavlink
|
eb73877e6b8639618768aff544404ae455aeef7b
|
211b7c6f94dc4e41946fec32099e0fec6af454fc
|
refs/heads/master
| 2021-01-19T02:50:32.407224
| 2020-11-21T19:57:06
| 2020-11-21T19:57:17
| 87,295,115
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,908
|
java
|
// MESSAGE CAMERA_FEEDBACK PACKING
package com.dronegcs.mavlink.is.protocol.msg_metadata.ardupilotmega;
import com.dronegcs.mavlink.is.protocol.msg_metadata.MAVLinkMessage;
import com.dronegcs.mavlink.is.protocol.msg_metadata.MAVLinkPacket;
import com.dronegcs.mavlink.is.protocol.msg_metadata.MAVLinkPayload;
/**
* Camera Capture Feedback
*/
public class msg_camera_feedback extends MAVLinkMessage{
public static final int MAVLINK_MSG_ID_CAMERA_FEEDBACK = 180;
public static final int MAVLINK_MSG_LENGTH = 45;
private static final long serialVersionUID = MAVLINK_MSG_ID_CAMERA_FEEDBACK;
/**
* Image timestamp (microseconds since UNIX epoch), as passed in by CAMERA_STATUS message (or autopilot if no CCB)
*/
public long time_usec;
/**
* Latitude in (deg * 1E7)
*/
public int lat;
/**
* Longitude in (deg * 1E7)
*/
public int lng;
/**
* Altitude Absolute (meters AMSL)
*/
public float alt_msl;
/**
* Altitude Relative (meters above HOME location)
*/
public float alt_rel;
/**
* Camera Roll angle (earth frame, degrees, +-180)
*/
public float roll;
/**
* Camera Pitch angle (earth frame, degrees, +-180)
*/
public float pitch;
/**
* Camera Yaw (earth frame, degrees, 0-360, true)
*/
public float yaw;
/**
* Focal Length (mm)
*/
public float foc_len;
/**
* Image index
*/
public short img_idx;
/**
* System ID
*/
public byte target_system;
/**
* Camera ID
*/
public byte cam_idx;
/**
* See CAMERA_FEEDBACK_FLAGS enum for definition of the bitmask
*/
public byte flags;
/**
* Generates the payload for a com.dronegcs.mavlink.is.mavlink message for a message of this type
* @return
*/
public MAVLinkPacket pack(){
MAVLinkPacket packet = build(MAVLINK_MSG_LENGTH);
packet.payload.putLong(time_usec);
packet.payload.putInt(lat);
packet.payload.putInt(lng);
packet.payload.putFloat(alt_msl);
packet.payload.putFloat(alt_rel);
packet.payload.putFloat(roll);
packet.payload.putFloat(pitch);
packet.payload.putFloat(yaw);
packet.payload.putFloat(foc_len);
packet.payload.putShort(img_idx);
packet.payload.putByte(target_system);
packet.payload.putByte(cam_idx);
packet.payload.putByte(flags);
return packet;
}
/**
* Decode a camera_feedback message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
time_usec = payload.getLong();
lat = payload.getInt();
lng = payload.getInt();
alt_msl = payload.getFloat();
alt_rel = payload.getFloat();
roll = payload.getFloat();
pitch = payload.getFloat();
yaw = payload.getFloat();
foc_len = payload.getFloat();
img_idx = payload.getShort();
target_system = payload.getByte();
cam_idx = payload.getByte();
flags = payload.getByte();
}
/**
* Constructor for a new message, just initializes the msgid
*/
public msg_camera_feedback(int sysid){
super(sysid);
msgid = MAVLINK_MSG_ID_CAMERA_FEEDBACK;
}
/**
* Constructor for a new message, initializes the message with the payload
* from a com.dronegcs.mavlink.is.mavlink packet
*
*/
public msg_camera_feedback(MAVLinkPacket mavLinkPacket){
this(mavLinkPacket.sysid);
unpack(mavLinkPacket.payload);
//Log.d("MAVLink", "CAMERA_FEEDBACK");
//Log.d("MAVLINK_MSG_ID_CAMERA_FEEDBACK", toString());
}
/**
* Returns a string with the MSG name and data
*/
public String toString(){
return "MAVLINK_MSG_ID_CAMERA_FEEDBACK -"+" time_usec:"+time_usec+" lat:"+lat+" lng:"+lng+" alt_msl:"+alt_msl+" alt_rel:"+alt_rel+" roll:"+roll+" pitch:"+pitch+" yaw:"+yaw+" foc_len:"+foc_len+" img_idx:"+img_idx+" target_system:"+target_system+" cam_idx:"+cam_idx+" flags:"+flags+"";
}
}
|
[
"taljmars@gmail.com"
] |
taljmars@gmail.com
|
0b855d4590fd0306dabe091cd2c30e1eb1c3258b
|
5d886e65dc224924f9d5ef4e8ec2af612529ab93
|
/sources/com/android/systemui/controls/controller/ControlInfo.java
|
d06372639685500f5d0941877e4d8fc3a4af975f
|
[] |
no_license
|
itz63c/SystemUIGoogle
|
99a7e4452a8ff88529d9304504b33954116af9ac
|
f318b6027fab5deb6a92e255ea9b26f16e35a16b
|
refs/heads/master
| 2022-05-27T16:12:36.178648
| 2020-04-30T04:21:56
| 2020-04-30T04:21:56
| 260,112,526
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,418
|
java
|
package com.android.systemui.controls.controller;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: ControlInfo.kt */
public final class ControlInfo {
private final String controlId;
private final CharSequence controlSubtitle;
private final CharSequence controlTitle;
private final int deviceType;
/* compiled from: ControlInfo.kt */
public static final class Builder {
public String controlId;
public CharSequence controlSubtitle;
public CharSequence controlTitle;
private int deviceType;
public final void setControlId(String str) {
Intrinsics.checkParameterIsNotNull(str, "<set-?>");
this.controlId = str;
}
public final void setControlTitle(CharSequence charSequence) {
Intrinsics.checkParameterIsNotNull(charSequence, "<set-?>");
this.controlTitle = charSequence;
}
public final void setControlSubtitle(CharSequence charSequence) {
Intrinsics.checkParameterIsNotNull(charSequence, "<set-?>");
this.controlSubtitle = charSequence;
}
public final void setDeviceType(int i) {
this.deviceType = i;
}
public final ControlInfo build() {
String str = this.controlId;
if (str != null) {
CharSequence charSequence = this.controlTitle;
if (charSequence != null) {
CharSequence charSequence2 = this.controlSubtitle;
if (charSequence2 != null) {
return new ControlInfo(str, charSequence, charSequence2, this.deviceType);
}
Intrinsics.throwUninitializedPropertyAccessException("controlSubtitle");
throw null;
}
Intrinsics.throwUninitializedPropertyAccessException("controlTitle");
throw null;
}
Intrinsics.throwUninitializedPropertyAccessException("controlId");
throw null;
}
}
public static /* synthetic */ ControlInfo copy$default(ControlInfo controlInfo, String str, CharSequence charSequence, CharSequence charSequence2, int i, int i2, Object obj) {
if ((i2 & 1) != 0) {
str = controlInfo.controlId;
}
if ((i2 & 2) != 0) {
charSequence = controlInfo.controlTitle;
}
if ((i2 & 4) != 0) {
charSequence2 = controlInfo.controlSubtitle;
}
if ((i2 & 8) != 0) {
i = controlInfo.deviceType;
}
return controlInfo.copy(str, charSequence, charSequence2, i);
}
public final ControlInfo copy(String str, CharSequence charSequence, CharSequence charSequence2, int i) {
Intrinsics.checkParameterIsNotNull(str, "controlId");
Intrinsics.checkParameterIsNotNull(charSequence, "controlTitle");
Intrinsics.checkParameterIsNotNull(charSequence2, "controlSubtitle");
return new ControlInfo(str, charSequence, charSequence2, i);
}
/* JADX WARNING: Code restructure failed: missing block: B:10:0x002a, code lost:
if (r2.deviceType == r3.deviceType) goto L_0x002f;
*/
/* Code decompiled incorrectly, please refer to instructions dump. */
public boolean equals(java.lang.Object r3) {
/*
r2 = this;
if (r2 == r3) goto L_0x002f
boolean r0 = r3 instanceof com.android.systemui.controls.controller.ControlInfo
if (r0 == 0) goto L_0x002d
com.android.systemui.controls.controller.ControlInfo r3 = (com.android.systemui.controls.controller.ControlInfo) r3
java.lang.String r0 = r2.controlId
java.lang.String r1 = r3.controlId
boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)
if (r0 == 0) goto L_0x002d
java.lang.CharSequence r0 = r2.controlTitle
java.lang.CharSequence r1 = r3.controlTitle
boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)
if (r0 == 0) goto L_0x002d
java.lang.CharSequence r0 = r2.controlSubtitle
java.lang.CharSequence r1 = r3.controlSubtitle
boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)
if (r0 == 0) goto L_0x002d
int r2 = r2.deviceType
int r3 = r3.deviceType
if (r2 != r3) goto L_0x002d
goto L_0x002f
L_0x002d:
r2 = 0
return r2
L_0x002f:
r2 = 1
return r2
*/
throw new UnsupportedOperationException("Method not decompiled: com.android.systemui.controls.controller.ControlInfo.equals(java.lang.Object):boolean");
}
public int hashCode() {
String str = this.controlId;
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
CharSequence charSequence = this.controlTitle;
int hashCode2 = (hashCode + (charSequence != null ? charSequence.hashCode() : 0)) * 31;
CharSequence charSequence2 = this.controlSubtitle;
if (charSequence2 != null) {
i = charSequence2.hashCode();
}
return ((hashCode2 + i) * 31) + Integer.hashCode(this.deviceType);
}
public ControlInfo(String str, CharSequence charSequence, CharSequence charSequence2, int i) {
Intrinsics.checkParameterIsNotNull(str, "controlId");
Intrinsics.checkParameterIsNotNull(charSequence, "controlTitle");
Intrinsics.checkParameterIsNotNull(charSequence2, "controlSubtitle");
this.controlId = str;
this.controlTitle = charSequence;
this.controlSubtitle = charSequence2;
this.deviceType = i;
}
public final String getControlId() {
return this.controlId;
}
public final CharSequence getControlTitle() {
return this.controlTitle;
}
public final CharSequence getControlSubtitle() {
return this.controlSubtitle;
}
public final int getDeviceType() {
return this.deviceType;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(':');
sb.append(this.controlId);
sb.append(':');
sb.append(this.controlTitle);
sb.append(':');
sb.append(this.deviceType);
return sb.toString();
}
}
|
[
"itz63c@statixos.com"
] |
itz63c@statixos.com
|
74de3103e1953b5f92634bba7510bf2b128a17ce
|
65437ff42acc1ed0ba4c89055b6dc08dbf07198b
|
/src/main/java/com/ghx/auto/cm/ui/angularjs/page/AjsCPMResetPasswordPage.java
|
582cb7b758e110ae669d05cc3e06df21b0552bab
|
[] |
no_license
|
DreamNk/auto-cm
|
352f77bbe883cd6dfab77f433870fbad0225060f
|
d5f944c5465cf863806434bfaca3f19fda69ba5b
|
refs/heads/master
| 2020-09-29T20:56:44.226535
| 2019-12-10T13:00:54
| 2019-12-10T13:00:54
| 227,121,131
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,325
|
java
|
package com.ghx.auto.cm.ui.angularjs.page;
import org.openqa.selenium.By;
import com.ghx.auto.cm.ui.page.CMAbstractPage;
public class AjsCPMResetPasswordPage extends CMAbstractPage<AjsCPMResetPasswordPage> {
private By reset_password_button = By.id("resetPasswordForm");
private By invalid_exisisting_password_error_msg = By.xpath("/html/body/div[4]/div/div/div[1]/div/div/form/div[2]/div/span/p");
private By minimum_password_requirement_error_msg = By.xpath("/html/body/div[4]/div/div/div[1]/div/div/form/div[3]/div/span[1]/p");
private By password_is_required_error_msg = By.xpath("/html/body/div[4]/div/div/div[1]/div/div/form/div[4]/div/span[1]/p");
private By password_requirement_instruction_msg = By.xpath("/html/body/div[4]/div/div/div[1]/div/div/p/i/span");
private By verify_new_password_error_msg = By.xpath("/html/body/div[4]/div/div/div[1]/div/div/form/div[4]/div/span[2]");
private By existing_password_textbox = By.id("resetPassword.existingPassword");
private By new_password_textbox = By.id("resetPassword.newPassword");
public AjsCPMResetPasswordPage click_reset_button(){
return click_button(reset_password_button);
}
public AjsCPMResetPasswordPage verify_invalid_exisisting_password_error_msg(String error_msg){
return verify_element_by_text(invalid_exisisting_password_error_msg, error_msg);
}
public AjsCPMResetPasswordPage verify_minimum_password_requirement_error_msg_in_new_password(String error_msg){
return verify_element_by_text(minimum_password_requirement_error_msg, error_msg);
}
public AjsCPMResetPasswordPage verify_password_is_required_error_msg(String error_msg){
return verify_element_by_text(password_is_required_error_msg, error_msg);
}
public AjsCPMResetPasswordPage verify_password_requirement_instruction_msg(String msg){
return verify_element_by_text(password_requirement_instruction_msg, msg);
}
public AjsCPMResetPasswordPage verify_new_password_error_msg(String msg){
return verify_element_by_text(verify_new_password_error_msg, msg);
}
public AjsCPMResetPasswordPage enter_existing_password(String msg){
return enter(existing_password_textbox, msg);
}
public AjsCPMResetPasswordPage enter_new_password(String msg){
return enter(new_password_textbox, msg);
}
}
|
[
"nban@netchexonline.com"
] |
nban@netchexonline.com
|
897463f3c070322126a578851be5cd36c12f33ba
|
f87b023f7437d65ed29eae1f2b1a00ddfd820177
|
/bitcamp-java-basic/src/step07_Instance/Calculator.java
|
31b737eefc3fb95c40f14589c81d98c5f09a1c37
|
[] |
no_license
|
GreedHJC/BitCamp
|
c0d01fc0713744e01832fabf06d2663577fde6e5
|
028894ab5171ef1fd89de73c3654e11cbc927a25
|
refs/heads/master
| 2021-01-24T10:28:07.820330
| 2018-06-04T07:51:58
| 2018-06-04T07:51:58
| 123,054,159
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 399
|
java
|
package step07_Instance;
//메서드 분류
//=> 관련된 기능을 수행하는 메서드를 한 그룹으로 묶는다.
public class Calculator {
public static int plus(int a, int b) {return a + b;}
public static int minus(int a, int b) {return a - b;}
public static int multiple(int a, int b) {return a * b;}
public static int divide(int a, int b) {return a / b;}
}
|
[
"qweqwe472@naver.com"
] |
qweqwe472@naver.com
|
6bf2bd36c5775ba5b553bf5aae71bf3622774be4
|
1d2a29cfb026add4f946998f1a630cce4dbc3bd0
|
/src/main/java/java8/stream/StreamTest11_parallelStream_sorted.java
|
d3b5a3fe9bec7df3232bdb1ea37702d84326acd3
|
[] |
no_license
|
quyixiao/ThinkJava
|
59a7e134dd3695a3474ebdf9bd28671df90879f7
|
ecf5948ea7e06f09b94fc0c736f5daf3d81a6b47
|
refs/heads/master
| 2022-06-30T15:25:35.752250
| 2019-05-29T07:30:20
| 2019-05-29T07:30:20
| 163,674,080
| 1
| 0
| null | 2022-06-17T02:04:00
| 2018-12-31T14:11:43
|
Java
|
UTF-8
|
Java
| false
| false
| 1,013
|
java
|
package java8.stream;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
public class StreamTest11_parallelStream_sorted {
public static void main(String[] args) {
long a = System.nanoTime();
List<String> list = new ArrayList<>(5000000);
for (int i = 0; i < 5000000; i++) {
list.add(UUID.randomUUID().toString());
}
long b = System.nanoTime();
System.out.println(TimeUnit.NANOSECONDS.toMillis(b - a));
System.out.println("开始排序");
//表示一个线程来做所有的操作
list.stream().sorted().count();
long c = System.nanoTime();
long millis = TimeUnit.NANOSECONDS.toMillis(c - b);
System.out.println(millis);
//表示通过多个线程来执行所有的操作
list.parallelStream().sorted().count();
long d = System.nanoTime();
System.out.println(TimeUnit.NANOSECONDS.toMillis(d - c));
}
}
|
[
"2621048238@qq.com"
] |
2621048238@qq.com
|
66b2851b169689faf3aec68f51956f6a041dc711
|
34f2fd171dc3bba4c6908da7fb597749e326232a
|
/src/day1/StringPractice.java
|
c63f65a0dc72565e5a3854b32fb3516541db3522
|
[] |
no_license
|
jdtash90/GitPracticeFall2019-1
|
3bfe4461734f158d724acae8593d054bef029e25
|
847af546fc229b6bf19f078fb5d81c51fa176f95
|
refs/heads/master
| 2021-04-24T11:54:38.108017
| 2020-03-25T23:42:51
| 2020-03-25T23:42:51
| 250,114,338
| 0
| 0
| null | 2020-03-25T23:26:04
| 2020-03-25T23:26:03
| null |
UTF-8
|
Java
| false
| false
| 214
|
java
|
package day1;
public class StringPractice {
public static void main(String[] args) {
System.out.println("Hello, world!");
String str = "Java is fun!";
System.out.println(str);
}
}
|
[
"github@cybertekschool.com"
] |
github@cybertekschool.com
|
4784f5013a1df31fbec0fcbf3669d8928e9e2367
|
e1e5bd6b116e71a60040ec1e1642289217d527b0
|
/Interlude/L2jFrozen_15/L2jFrozen_15_Revision_1596/L2jFrozen_15/head-src/com/l2jfrozen/gameserver/network/clientpackets/SuperCmdServerStatus.java
|
aff1e94004aa260d29d448863d93e297cfc93eb7
|
[] |
no_license
|
serk123/L2jOpenSource
|
6d6e1988a421763a9467bba0e4ac1fe3796b34b3
|
603e784e5f58f7fd07b01f6282218e8492f7090b
|
refs/heads/master
| 2023-03-18T01:51:23.867273
| 2020-04-23T10:44:41
| 2020-04-23T10:44:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 426
|
java
|
package com.l2jfrozen.gameserver.network.clientpackets;
/**
* Format ch c: (id) 0x39 h: (subid) 0x02
* @author -Wooden-
*/
public final class SuperCmdServerStatus extends L2GameClientPacket
{
@Override
protected void readImpl()
{
// trigger packet
}
@Override
protected void runImpl()
{
}
@Override
public String getType()
{
return "[C] 39:02 SuperCmdServerStatus";
}
}
|
[
"64197706+L2jOpenSource@users.noreply.github.com"
] |
64197706+L2jOpenSource@users.noreply.github.com
|
a082310fbf3595899de3736e4b76f3385db9e4df
|
69ee0508bf15821ea7ad5139977a237d29774101
|
/cmis-core/src/main/java/vmware/vim25/PowerOnFtSecondaryTimedout.java
|
46cfad86b1d9f28cf3b44b1c808d7c962d942045
|
[] |
no_license
|
bhoflack/cmis
|
b15bac01a30ee1d807397c9b781129786eba4ffa
|
09e852120743d3d021ec728fac28510841d5e248
|
refs/heads/master
| 2021-01-01T05:32:17.872620
| 2014-11-17T15:00:47
| 2014-11-17T15:00:47
| 8,852,575
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,498
|
java
|
package vmware.vim25;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for PowerOnFtSecondaryTimedout complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="PowerOnFtSecondaryTimedout">
* <complexContent>
* <extension base="{urn:vim25}Timedout">
* <sequence>
* <element name="vm" type="{urn:vim25}ManagedObjectReference"/>
* <element name="vmName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="timeout" type="{http://www.w3.org/2001/XMLSchema}int"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PowerOnFtSecondaryTimedout", propOrder = {
"vm",
"vmName",
"timeout"
})
public class PowerOnFtSecondaryTimedout
extends Timedout
{
@XmlElement(required = true)
protected ManagedObjectReference vm;
@XmlElement(required = true)
protected String vmName;
protected int timeout;
/**
* Gets the value of the vm property.
*
* @return
* possible object is
* {@link ManagedObjectReference }
*
*/
public ManagedObjectReference getVm() {
return vm;
}
/**
* Sets the value of the vm property.
*
* @param value
* allowed object is
* {@link ManagedObjectReference }
*
*/
public void setVm(ManagedObjectReference value) {
this.vm = value;
}
/**
* Gets the value of the vmName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVmName() {
return vmName;
}
/**
* Sets the value of the vmName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVmName(String value) {
this.vmName = value;
}
/**
* Gets the value of the timeout property.
*
*/
public int getTimeout() {
return timeout;
}
/**
* Sets the value of the timeout property.
*
*/
public void setTimeout(int value) {
this.timeout = value;
}
}
|
[
"brh@melexis.com"
] |
brh@melexis.com
|
c9b6d4b38a9b27b02e2efa7834d62abd7b7fae49
|
6cef7fc78cc935f733f3707fca94776effb94875
|
/pcap/kraken-smb-decoder/src/main/java/org/krakenapps/pcap/decoder/smb/comparser/QueryInfo2Parser.java
|
66450150f8c0f3cbbb28d2c9e55aef909dcd6911
|
[] |
no_license
|
xeraph/kraken
|
1a5657d837caeaa8c6c045b24cd309d7184fd5b5
|
a2b6fe120b5c7d7cde0309ec1d4c3335abef17a1
|
refs/heads/master
| 2021-01-20T23:36:48.613826
| 2013-01-15T01:03:44
| 2013-01-15T01:03:44
| 7,766,261
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,677
|
java
|
package org.krakenapps.pcap.decoder.smb.comparser;
import org.krakenapps.pcap.decoder.smb.SmbSession;
import org.krakenapps.pcap.decoder.smb.request.QueryInfo2Request;
import org.krakenapps.pcap.decoder.smb.response.QueryInfo2Response;
import org.krakenapps.pcap.decoder.smb.rr.FileAttributes;
import org.krakenapps.pcap.decoder.smb.structure.SmbData;
import org.krakenapps.pcap.decoder.smb.structure.SmbHeader;
import org.krakenapps.pcap.util.Buffer;
import org.krakenapps.pcap.util.ByteOrderConverter;
//0x23
public class QueryInfo2Parser implements SmbDataParser{
@Override
public SmbData parseRequest(SmbHeader h , Buffer b , SmbSession session) {
QueryInfo2Request data = new QueryInfo2Request();
data.setWordCount(b.get());
data.setFid(ByteOrderConverter.swap(b.getShort()));
data.setByteCount(ByteOrderConverter.swap(b.getShort()));
return data;
}
@Override
public SmbData parseResponse(SmbHeader h , Buffer b ,SmbSession session) {
QueryInfo2Response data = new QueryInfo2Response();
data.setWordCount(b.get());
data.setCreateDate(ByteOrderConverter.swap(b.getShort()));
data.setCreateTime(ByteOrderConverter.swap(b.getShort()));
data.setLastAccessDate(ByteOrderConverter.swap(b.getShort()));
data.setLastAccessTime(ByteOrderConverter.swap(b.getShort()));
data.setLastWriteDate(ByteOrderConverter.swap(b.getShort()));
data.setLastWriteTime(ByteOrderConverter.swap(b.getShort()));
data.setFileDateSize(b.getInt());
data.setFileAllocationSize(b.getInt());
data.setFileAttributes(FileAttributes.parse(b.get() & 0xff));
data.setByteCount(ByteOrderConverter.swap(b.getShort()));
return data;
}
}
|
[
"devnull@localhost"
] |
devnull@localhost
|
edd2d64aef53e6cc9f5c67ffabcefc58eddcfae6
|
621a865f772ccbab32471fb388e20b620ebba6b0
|
/GameServer/java/net/sf/l2j/gameserver/handler/itemhandlers/CrystalCarol.java
|
c5abe1b45bf401f66c705d7eb4c1c9ffc6530696
|
[] |
no_license
|
BloodyDawn/Scions_of_Destiny
|
5257de035cdb7fe5ef92bc991119b464cba6790c
|
e03ef8117b57a1188ba80a381faff6f2e97d6c41
|
refs/heads/master
| 2021-01-12T00:02:47.744333
| 2017-04-24T06:30:39
| 2017-04-24T06:30:39
| 78,662,280
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,759
|
java
|
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package net.sf.l2j.gameserver.handler.itemhandlers;
import net.sf.l2j.gameserver.handler.IItemHandler;
import net.sf.l2j.gameserver.model.L2ItemInstance;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.actor.instance.L2PlayableInstance;
import net.sf.l2j.gameserver.serverpackets.MagicSkillUse;
/**
* This class ...
* @version $Revision: 1.2.4.4 $ $Date: 2005/03/27 15:30:07 $
*/
public class CrystalCarol implements IItemHandler
{
private static int[] _itemIds =
{
5562,
5563,
5564,
5565,
5566,
5583,
5584,
5585,
5586,
5587,
4411,
4412,
4413,
4414,
4415,
4416,
4417,
5010,
6903,
7061,
7062
};
@Override
public void useItem(L2PlayableInstance playable, L2ItemInstance item)
{
if (!(playable instanceof L2PcInstance))
{
return;
}
L2PcInstance activeChar = (L2PcInstance) playable;
int itemId = item.getItemId();
if (itemId == 5562)
{ // crystal_carol_01
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2140, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_carol_01");
}
else if (itemId == 5563)
{ // crystal_carol_02
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2141, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_carol_02");
}
else if (itemId == 5564)
{ // crystal_carol_03
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2142, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_carol_03");
}
else if (itemId == 5565)
{ // crystal_carol_04
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2143, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_carol_04");
}
else if (itemId == 5566)
{ // crystal_carol_05
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2144, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_carol_05");
}
else if (itemId == 5583)
{ // crystal_carol_06
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2145, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_carol_06");
}
else if (itemId == 5584)
{ // crystal_carol_07
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2146, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_carol_07");
}
else if (itemId == 5585)
{ // crystal_carol_08
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2147, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_carol_08");
}
else if (itemId == 5586)
{ // crystal_carol_09
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2148, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_carol_09");
}
else if (itemId == 5587)
{ // crystal_carol_10
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2149, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_carol_10");
}
else if (itemId == 4411)
{ // crystal_journey
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2069, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_journey");
}
else if (itemId == 4412)
{ // crystal_battle
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2068, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_battle");
}
else if (itemId == 4413)
{ // crystal_love
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2070, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_love");
}
else if (itemId == 4414)
{ // crystal_solitude
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2072, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_solitude");
}
else if (itemId == 4415)
{ // crystal_festival
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2071, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_festival");
}
else if (itemId == 4416)
{ // crystal_celebration
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2073, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_celebration");
}
else if (itemId == 4417)
{ // crystal_comedy
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2067, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_comedy");
}
else if (itemId == 5010)
{ // crystal_victory
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2066, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_victory");
}
else if (itemId == 6903)
{ // music_box_m
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2187, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"EtcSound.battle");
}
else if (itemId == 7061)
{ // crystal_birthday
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2073, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound2.crystal_celebration");
}
else if (itemId == 7062)
{ // crystal_wedding
MagicSkillUse MSU = new MagicSkillUse(playable, activeChar, 2230, 1, 1, 0);
activeChar.broadcastPacket(MSU);
// playCrystalSound(activeChar,"SkillSound5.wedding");
}
activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);
}
@Override
public int[] getItemIds()
{
return _itemIds;
}
}
|
[
"psv71@yandex.ru"
] |
psv71@yandex.ru
|
db0ad9260bae54304319433f7d750b2ad38be5da
|
09b7f281818832efb89617d6f6cab89478d49930
|
/root/projects/web-client/source/java/org/alfresco/web/bean/wcm/preview/URITemplatePreviewURIService.java
|
25f48df82b9d6a0d559059b193087bdb928116bd
|
[] |
no_license
|
verve111/alfresco3.4.d
|
54611ab8371a6e644fcafc72dc37cdc3d5d8eeea
|
20d581984c2d22d5fae92e1c1674552c1427119b
|
refs/heads/master
| 2023-02-07T14:00:19.637248
| 2020-12-25T10:19:17
| 2020-12-25T10:19:17
| 323,932,520
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,776
|
java
|
/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco.web.bean.wcm.preview;
/**
* A PreviewURIService that takes a URI template and replaces the following parameters per request:
* <ul>
* <li>{storeId} - the store Id of the preview request</li>
* <li>{pathToAsset} - the full path and filename of the asset being previewed (including a leading '/')</li>
* </ul>
*
* @author Peter Monks (peter.monks@alfresco.com)
*
* @since 2.2.1
*
* @deprecated see org.alfresco.wcm.preview.URITemplatePreviewURIService
*/
public class URITemplatePreviewURIService extends org.alfresco.wcm.preview.URITemplatePreviewURIService implements PreviewURIService
{
public URITemplatePreviewURIService(final String uriTemplate)
{
// PRECONDITIONS
assert uriTemplate != null : "uriTemplate must not be null.";
// Body
this.uriTemplate = uriTemplate;
}
public String getPreviewURI(final String storeId, final String webapp)
{
return super.getPreviewURI(storeId, webapp, null);
}
}
|
[
"verve111@mail.ru"
] |
verve111@mail.ru
|
ac687c714406f4101fdd00eac3944518d2a44a97
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Time/14/org/joda/time/MutableDateTime_MutableDateTime_209.java
|
7d4f995adec7b8f34e55d7e5fd48938b29905b01
|
[] |
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,354
|
java
|
org joda time
mutabl date time mutabledatetim standard implement modifi datetim
hold datetim millisecond java epoch t00 01t00 00z
chronolog intern chronolog determin
millisecond instant convert date time field
chronolog code iso chronolog isochronolog code agre
intern standard compat modern gregorian calendar
individu field access wai
code hour dai gethourofdai code
code hour dai hourofdai code
techniqu access method
field
numer
set numer
add numer
add numer wrap field
text
text
set text
field maximum
field minimum
mutabl date time mutabledatetim mutabl thread safe concurr thread
invok mutat method
author gui allard
author brian neill o'neil
author stephen colebourn
author mike schrag
date time datetim
mutabl date time mutabledatetim
construct instanc set millisecond t00 01t00 00z
code iso chronolog isochronolog code time zone
param instant millisecond t00 01t00 00z
mutabl date time mutabledatetim instant
instant
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
31e8330455bf41d4ab20a3772997dd32fac36ef8
|
c8ef83ee4a7ea02bb72be397099d7eaaa0f20107
|
/src/main/java/prosayj/thinking/jdk8/examples/chapter8/observer/Nasa.java
|
9cf38abf910572c34c6f02532c440281e3ef8537
|
[
"Apache-2.0"
] |
permissive
|
ProSayJ/thinking-in-jdk8
|
136034ed5aae7b3d204f0f6797b789a6597f9da1
|
7ebe6f64fe50776a5da04270f46df874d7fe2329
|
refs/heads/main
| 2023-03-10T20:34:07.970802
| 2021-02-23T14:29:03
| 2021-02-23T14:29:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 296
|
java
|
package prosayj.thinking.jdk8.examples.chapter8.observer;
// BEGIN Nasa
public class Nasa implements LandingObserver {
@Override
public void observeLanding(String name) {
if (name.contains("Apollo")) {
System.out.println("We made it!");
}
}
}
// END Nasa
|
[
"15665662468@163.com"
] |
15665662468@163.com
|
0e6a82b88ca652a89e41bcfb08cf80c7b5b87346
|
9e632588def0ba64442d92485b6d155ccb89a283
|
/mx-webadmin/webadmin-dao/src/main/java/com/balicamp/dao/admin/AdminGenericDao.java
|
26f1b401e88d2a0afa5faeb80974193f0ef896d0
|
[] |
no_license
|
prihako/sims2019
|
6986bccbbd35ec4d1e5741aa77393f01287d752a
|
f5e82e3d46c405d4c3c34d529c8d67e8627adb71
|
refs/heads/master
| 2022-12-21T07:38:06.400588
| 2021-04-29T07:30:37
| 2021-04-29T07:30:37
| 212,565,332
| 0
| 0
| null | 2022-12-16T00:41:00
| 2019-10-03T11:41:00
|
Java
|
UTF-8
|
Java
| false
| false
| 2,003
|
java
|
package com.balicamp.dao.admin;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import com.balicamp.dao.GenericDao;
import com.balicamp.model.admin.BaseAdminModel;
/**
* The base interface of all Data Access Object.
*
* @author <a href="mailto:wayan.agustina@sigma.co.id">I Wayan Ari Agustina</a>
*
* @param <POJO> Aplication Pojo
* @param <PK> Primary key type, must be serializable object.
*/
public interface AdminGenericDao<POJO extends Serializable, PK extends Serializable> extends GenericDao<POJO, PK> {
/**
* Find some records by specific columns(fields name).
*
* @param filter The query filter, in format(FieldName, fieldValue)
* @param maxResult The maximum query result.
* @return List of of pojo.
*/
public List<POJO> findByFieldName(Map<String, Object> filter, int maxResult);
/**
* Same as findByFieldName(Map<String, Object>, int),
* but return only a single result.
* @param filter The query filter, in format(FieldName, fieldValue)
* @return Single pojo specified by the fieldName and fieldValue.
* @throws Exception if the result set returns more than 1 record.
*/
public POJO findSingleByFieldName(Map<String, Object> filter);
/**
* set Identifier automatically for each class of children who extends {@link BaseAdminModel}
* @param pojo definition of BaseAdminModel
*/
public void setIdentifier(POJO pojo);
void setIdentifier(Collection<POJO> coolection);
/**
* This method same as getHibernateTemplate().loadAll(this.persistentClass)<br>Customize with String Query
* @param fieldName {@link List} of FiledName who mapping AS {@link Collection} with other table
* @param filter the Query filter, in format (filterString, filterValue)
* @return Single pojo specified by the fieldName and filter
*/
public List<POJO> findAllByFieldName(List<String> fieldName, Map<String, Object> filter);
public List<POJO> findAllByFieldName(Map<String, Object> filter);
}
|
[
"nurukat@gmail.com"
] |
nurukat@gmail.com
|
64bfa99f1ec16c7ed8dbcc5e14397e5c6615068c
|
0c83929b8df7b8b31e02a097d0a70a4a89f4730e
|
/src/main/java/com/babuwyt/siji/utils/maputils/ICallBack.java
|
680b69af51ab195a532a734db0cf1a10841637ac
|
[] |
no_license
|
jon-yuan/sijiapp
|
d289527549cc94274df7bfa551564cb04ae89033
|
1a093668ebf29f8a691c8646ead5b0bee7085f69
|
refs/heads/master
| 2021-09-13T02:03:07.600732
| 2018-02-01T00:31:48
| 2018-02-01T00:31:48
| 111,382,374
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 316
|
java
|
package com.babuwyt.siji.utils.maputils;
/**
* 创建时间:2017-9-20 下午3:37:55
* 项目名称:IndexActivity
*
* @author liqi
* @version 1.0
* @since JDK 1.6.0_21
* 文件名称:TTS.java
* 类说明:
*/
/**
* 播报回调类
*/
public interface ICallBack {
void onCompleted(int code);
}
|
[
"yw_loveyou@163.com"
] |
yw_loveyou@163.com
|
1b6e1c24215f697d4aa643613daac88aa0605c7c
|
fb823c1b36200b246ba00f5f2ee1fb01705fde44
|
/src/test/java/com/helpers/WebDriverUtils.java
|
3fea862ae1b43c30b3a49dd0d9c9df71adb9ef1f
|
[] |
no_license
|
didevel/TestAutomationFromVadim
|
c801ba107d1795eeb537c0b8a4d68f1fcdadaaa7
|
5d809594fac85aeab6a6cb971bd09cce5968794c
|
refs/heads/master
| 2023-08-25T02:04:35.393678
| 2021-09-17T18:50:03
| 2021-09-17T18:50:03
| 406,495,527
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,889
|
java
|
package com.helpers;
import org.openqa.selenium.*;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.util.List;
public class WebDriverUtils {
private WebDriver driver;
public WebDriverUtils() {
}
public WebDriverUtils(WebDriver driver) {
this.driver = driver;
}
// Custom waiter
public boolean isElementFound(By by, int timeOut) throws InterruptedException {
return isElementFound(by, timeOut, driver);
}
public static boolean isElementFound(By by, int timeOut, WebDriver driver) throws InterruptedException {
List<WebElement> elements = driver.findElements(by);
for (int i = 0; (i < timeOut) && (elements.size() == 0); i++) {
Thread.sleep(1000);
elements = driver.findElements(by);
}
return elements.size() > 0; // !elements.isEmpty()
}
public static boolean waitForElement(WebElement element, int timeOut) throws InterruptedException {
for (int i = 0; i < timeOut * 2; i++) {
if (element.isEnabled() & element.isDisplayed()) return true;
Thread.sleep(500);
}
return false;
}
// Simulating CTRL + V action
public static void pasteTextToElementFromClipboard(WebElement element, String text) {
// copy text to memory buffer
Toolkit toolkit = Toolkit.getDefaultToolkit();
Clipboard systemClipboard = toolkit.getSystemClipboard();
StringSelection stringSelection = new StringSelection(text);
systemClipboard.setContents(stringSelection, null);
// paste it to the field
element.sendKeys(Keys.CONTROL, "v");
}
public static void clickWithJavaScript(WebElement element, JavascriptExecutor executor) {
executor.executeScript("arguments[0].click()", element);
}
}
|
[
"oth-corp@yandex.ru"
] |
oth-corp@yandex.ru
|
e9b7e309e947f0c945cbe47e7eb2ec4b301a4e27
|
17e8438486cb3e3073966ca2c14956d3ba9209ea
|
/dso/branches/2.5.3/code/base/dso-container-tests/tests.system/com/tctest/webapp/listeners/InvalidatorSessionListener.java
|
e14488b439a61c3fce9b9f955ba657212e03a8a0
|
[] |
no_license
|
sirinath/Terracotta
|
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
|
00a7662b9cf530dfdb43f2dd821fa559e998c892
|
refs/heads/master
| 2021-01-23T05:41:52.414211
| 2015-07-02T15:21:54
| 2015-07-02T15:21:54
| 38,613,711
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,622
|
java
|
/*
* All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
* notice. All rights reserved.
*/
package com.tctest.webapp.listeners;
import com.tctest.webapp.servlets.InvalidatorServlet;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
public class InvalidatorSessionListener implements HttpSessionListener {
public InvalidatorSessionListener() {
System.err.println("### SessionListener() is here!!!");
}
public void sessionCreated(HttpSessionEvent httpsessionevent) {
System.err.println("### SessionListener.sessionCreated() is here!!!");
InvalidatorServlet.incrementCallCount("SessionListener.sessionCreated");
}
public void sessionDestroyed(HttpSessionEvent httpsessionevent) {
testAttributeAccess(httpsessionevent.getSession());
System.err.println("### SessionListener.sessionDestroyed() is here!!!");
InvalidatorServlet.incrementCallCount("SessionListener.sessionDestroyed");
}
private void testAttributeAccess(HttpSession session) {
// While session destroyed event is being called, you should still be able to get
// attributes
String[] attrs = session.getValueNames();
if (attrs == null || attrs.length == 0) {
// please make at least one attribute is present
throw new AssertionError("Attributes should be present during this phase");
}
for (int i = 0; i < attrs.length; i++) {
String attr = attrs[i];
session.getAttribute(attr);
session.removeAttribute(attr);
}
}
}
|
[
"jvoegele@7fc7bbf3-cf45-46d4-be06-341739edd864"
] |
jvoegele@7fc7bbf3-cf45-46d4-be06-341739edd864
|
622cf4bae177afa31ededd1126a1f6e9097d773f
|
46167791cbfeebc8d3ddc97112764d7947fffa22
|
/spring-boot/src/main/java/com/justexample/repository/Entity1869Repository.java
|
5f44c9a2cd1496fa9c9980b2930db79ec00fc780
|
[] |
no_license
|
kahlai/unrealistictest
|
4f668b4822a25b4c1f06c6b543a26506bb1f8870
|
fe30034b05f5aacd0ef69523479ae721e234995c
|
refs/heads/master
| 2023-08-25T09:32:16.059555
| 2021-11-09T08:17:22
| 2021-11-09T08:17:22
| 425,726,016
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 252
|
java
|
package com.justexample.repository;
import java.util.List;
import com.justexample.entity.Entity1869;
import org.springframework.data.jpa.repository.JpaRepository;
public interface Entity1869Repository extends JpaRepository<Entity1869,Long>{
}
|
[
"laikahhoe@gmail.com"
] |
laikahhoe@gmail.com
|
997ec74b274a010215788d0e11c2897d5d94ce55
|
f072523c1391462970c174ef33133b4c4c981c42
|
/springboot-wechat/src/main/java/com/thinkingcao/weixin/config/WxMpProperties.java
|
eb8c10eb205329b9ad02d6fb8d3d110eecdc9100
|
[] |
no_license
|
Thinkingcao/SpringBootLearning
|
a689b522ac7fe2c4998097f553335e3126526b7d
|
4f3dd49c29baffb027c366884e1fdade165e6946
|
refs/heads/master
| 2022-06-29T16:04:14.605974
| 2022-05-19T13:42:22
| 2022-05-19T13:42:22
| 182,008,253
| 97
| 101
| null | 2022-06-21T04:15:31
| 2019-04-18T03:16:14
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 956
|
java
|
package com.thinkingcao.weixin.config;
import com.thinkingcao.weixin.utils.JsonUtils;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.List;
/**
* wechat mp properties
*
* @author Binary Wang(https://github.com/binarywang)
*/
@Data
@ConfigurationProperties(prefix = "wx.mp")
public class WxMpProperties {
private List<MpConfig> configs;
@Data
public static class MpConfig {
/**
* 设置微信公众号的appid
*/
private String appId;
/**
* 设置微信公众号的app secret
*/
private String secret;
/**
* 设置微信公众号的token
*/
private String token;
/**
* 设置微信公众号的EncodingAESKey
*/
private String aesKey;
}
@Override
public String toString() {
return JsonUtils.toJson(this);
}
}
|
[
"617271837@qq.com"
] |
617271837@qq.com
|
80f8c113283d384c48a43efc16abdb2c921c18f4
|
780575c32773c06584f249f250c8f5179c6bb437
|
/alfonz-mvvm/src/main/java/org/alfonz/mvvm/AlfonzViewModel.java
|
11a23722f52683106febdd8c5fb4469fb491325b
|
[
"Apache-2.0"
] |
permissive
|
semtle/Alfonz
|
57f853f53eebd7f6e22eda2d79a2687a623390d1
|
568b9903f1ea1ea63a16cf2fcadb0df7331f10c0
|
refs/heads/master
| 2021-01-01T06:22:35.022759
| 2017-07-07T21:25:03
| 2017-07-07T21:25:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,060
|
java
|
package org.alfonz.mvvm;
import android.databinding.Observable;
import android.databinding.PropertyChangeRegistry;
import android.support.annotation.NonNull;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import eu.inloop.viewmodel.AbstractViewModel;
public abstract class AlfonzViewModel<T extends AlfonzView> extends AbstractViewModel<T> implements Observable
{
private transient PropertyChangeRegistry mObservableCallbacks;
private Queue<ViewAction<T>> mViewActionQueue;
public interface ViewAction<T>
{
void run(@NonNull T view);
}
@Override
public void onBindView(@NonNull T view)
{
super.onBindView(view);
processPendingViewActions(view);
}
@Override
public synchronized void addOnPropertyChangedCallback(OnPropertyChangedCallback callback)
{
if(mObservableCallbacks == null)
{
mObservableCallbacks = new PropertyChangeRegistry();
}
mObservableCallbacks.add(callback);
}
@Override
public synchronized void removeOnPropertyChangedCallback(OnPropertyChangedCallback callback)
{
if(mObservableCallbacks != null)
{
mObservableCallbacks.remove(callback);
}
}
public synchronized void notifyChange()
{
if(mObservableCallbacks != null)
{
mObservableCallbacks.notifyCallbacks(this, 0, null);
}
}
public void notifyPropertyChanged(int fieldId)
{
if(mObservableCallbacks != null)
{
mObservableCallbacks.notifyCallbacks(this, fieldId, null);
}
}
public void runViewAction(ViewAction<T> viewAction)
{
if(getView() != null)
{
viewAction.run(getView());
}
else
{
addPendingViewAction(viewAction);
}
}
private synchronized void addPendingViewAction(ViewAction<T> viewAction)
{
if(mViewActionQueue == null)
{
mViewActionQueue = new ConcurrentLinkedQueue<>();
}
mViewActionQueue.add(viewAction);
}
private void processPendingViewActions(@NonNull T view)
{
while(mViewActionQueue != null && !mViewActionQueue.isEmpty())
{
ViewAction<T> viewAction = mViewActionQueue.remove();
viewAction.run(view);
}
}
}
|
[
"petr.nohejl@gmail.com"
] |
petr.nohejl@gmail.com
|
4af6423d5a814b5cf2f58f1dee63dcbd813872c8
|
fe38769d59d5a6494b32da3f3f75a95cefd0424d
|
/tool/test/org/antlr/v4/test/rt/py2/TestSemPredEvalLexer.java
|
072c7e55029152bd9bf531b23ae62ffae0b3a244
|
[] |
no_license
|
parrt/antlr4-python2
|
7a5fb0322d423a15036491878e659ee28611775f
|
4ef7a3635e8d8cf489d9967a445a37470f0ea3a3
|
refs/heads/master
| 2021-01-17T06:41:24.462227
| 2015-06-18T17:56:06
| 2015-06-18T17:56:06
| 21,369,960
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,688
|
java
|
package org.antlr.v4.test.rt.py2;
import org.junit.Test;
import static org.junit.Assert.*;
public class TestSemPredEvalLexer extends BasePython2Test {
/* this file and method are generated, any edit will be overwritten by the next generation */
@Test
public void testDisableRule() throws Exception {
StringBuilder sb = new StringBuilder();
sb.append("lexer grammar L;\n");
sb.append("E1 : 'enum' { False }? ;\n");
sb.append("E2 : 'enum' { True }? ; // winner not E1 or ID\n");
sb.append("ID : 'a'..'z'+ ;\n");
sb.append("WS : (' '|'\\n') -> skip;\n");
String grammar = sb.toString();
String found = execLexer("L.g4", grammar, "L", "enum abc", true);
assertEquals("[@0,0:3='enum',<2>,1:0]\n" +
"[@1,5:7='abc',<3>,1:5]\n" +
"[@2,8:7='<EOF>',<-1>,1:8]\n" +
"s0-' '->:s5=>4\n" +
"s0-'a'->:s6=>3\n" +
"s0-'e'->:s1=>3\n" +
":s1=>3-'n'->:s2=>3\n" +
":s2=>3-'u'->:s3=>3\n" +
":s6=>3-'b'->:s6=>3\n" +
":s6=>3-'c'->:s6=>3\n", found);
assertNull(this.stderrDuringParse);
}
/* this file and method are generated, any edit will be overwritten by the next generation */
@Test
public void testIDvsEnum() throws Exception {
StringBuilder sb = new StringBuilder();
sb.append("lexer grammar L;\n");
sb.append("ENUM : 'enum' { False }? ;\n");
sb.append("ID : 'a'..'z'+ ;\n");
sb.append("WS : (' '|'\\n') -> skip;\n");
String grammar = sb.toString();
String found = execLexer("L.g4", grammar, "L", "enum abc enum", true);
assertEquals("[@0,0:3='enum',<2>,1:0]\n" +
"[@1,5:7='abc',<2>,1:5]\n" +
"[@2,9:12='enum',<2>,1:9]\n" +
"[@3,13:12='<EOF>',<-1>,1:13]\n" +
"s0-' '->:s5=>3\n" +
"s0-'a'->:s4=>2\n" +
"s0-'e'->:s1=>2\n" +
":s1=>2-'n'->:s2=>2\n" +
":s2=>2-'u'->:s3=>2\n" +
":s4=>2-'b'->:s4=>2\n" +
":s4=>2-'c'->:s4=>2\n", found);
assertNull(this.stderrDuringParse);
}
/* this file and method are generated, any edit will be overwritten by the next generation */
@Test
public void testIDnotEnum() throws Exception {
StringBuilder sb = new StringBuilder();
sb.append("lexer grammar L;\n");
sb.append("ENUM : [a-z]+ { False }? ;\n");
sb.append("ID : [a-z]+ ;\n");
sb.append("WS : (' '|'\\n') -> skip;\n");
String grammar = sb.toString();
String found = execLexer("L.g4", grammar, "L", "enum abc enum", true);
assertEquals("[@0,0:3='enum',<2>,1:0]\n" +
"[@1,5:7='abc',<2>,1:5]\n" +
"[@2,9:12='enum',<2>,1:9]\n" +
"[@3,13:12='<EOF>',<-1>,1:13]\n" +
"s0-' '->:s2=>3\n", found);
assertNull(this.stderrDuringParse);
}
/* this file and method are generated, any edit will be overwritten by the next generation */
@Test
public void testEnumNotID() throws Exception {
StringBuilder sb = new StringBuilder();
sb.append("lexer grammar L;\n");
sb.append("ENUM : [a-z]+ { self.text==\"enum\" }? ;\n");
sb.append("ID : [a-z]+ ;\n");
sb.append("WS : (' '|'\\n') -> skip;\n");
String grammar = sb.toString();
String found = execLexer("L.g4", grammar, "L", "enum abc enum", true);
assertEquals("[@0,0:3='enum',<1>,1:0]\n" +
"[@1,5:7='abc',<2>,1:5]\n" +
"[@2,9:12='enum',<1>,1:9]\n" +
"[@3,13:12='<EOF>',<-1>,1:13]\n" +
"s0-' '->:s3=>3\n", found);
assertNull(this.stderrDuringParse);
}
/* this file and method are generated, any edit will be overwritten by the next generation */
@Test
public void testIndent() throws Exception {
StringBuilder sb = new StringBuilder();
sb.append("lexer grammar L;\n");
sb.append("ID : [a-z]+ ;\n");
sb.append("INDENT : [ \\t]+ { self._tokenStartColumn==0 }?\n");
sb.append(" { print(\"INDENT\") } ;\n");
sb.append("NL : '\\n';\n");
sb.append("WS : [ \\t]+ ;\n");
String grammar = sb.toString();
String found = execLexer("L.g4", grammar, "L", "abc\n def \n", true);
assertEquals("INDENT\n" +
"[@0,0:2='abc',<1>,1:0]\n" +
"[@1,3:3='\\n',<3>,1:3]\n" +
"[@2,4:5=' ',<2>,2:0]\n" +
"[@3,6:8='def',<1>,2:2]\n" +
"[@4,9:10=' ',<4>,2:5]\n" +
"[@5,11:11='\\n',<3>,2:7]\n" +
"[@6,12:11='<EOF>',<-1>,3:0]\n" +
"s0-'\n" +
"'->:s2=>3\n" +
"s0-'a'->:s1=>1\n" +
"s0-'d'->:s1=>1\n" +
":s1=>1-'b'->:s1=>1\n" +
":s1=>1-'c'->:s1=>1\n" +
":s1=>1-'e'->:s1=>1\n" +
":s1=>1-'f'->:s1=>1\n", found);
assertNull(this.stderrDuringParse);
}
/* this file and method are generated, any edit will be overwritten by the next generation */
@Test
public void testLexerInputPositionSensitivePredicates() throws Exception {
StringBuilder sb = new StringBuilder();
sb.append("lexer grammar L;\n");
sb.append("WORD1 : ID1+ { print(self.text) } ;\n");
sb.append("WORD2 : ID2+ { print(self.text) } ;\n");
sb.append("fragment ID1 : { self.column < 2 }? [a-zA-Z];\n");
sb.append("fragment ID2 : { self.column >= 2 }? [a-zA-Z];\n");
sb.append("WS : (' '|'\\n') -> skip;\n");
String grammar = sb.toString();
String found = execLexer("L.g4", grammar, "L", "a cde\nabcde\n", true);
assertEquals("a\n" +
"cde\n" +
"ab\n" +
"cde\n" +
"[@0,0:0='a',<1>,1:0]\n" +
"[@1,2:4='cde',<2>,1:2]\n" +
"[@2,6:7='ab',<1>,2:0]\n" +
"[@3,8:10='cde',<2>,2:2]\n" +
"[@4,12:11='<EOF>',<-1>,3:0]\n", found);
assertNull(this.stderrDuringParse);
}
/* this file and method are generated, any edit will be overwritten by the next generation */
@Test
public void testPredicatedKeywords() throws Exception {
StringBuilder sb = new StringBuilder();
sb.append("lexer grammar L;\n");
sb.append("ENUM : [a-z]+ { self.text==\"enum\" }? { print(\"enum!\") } ;\n");
sb.append("ID : [a-z]+ { print(\"ID \" + self.text) } ;\n");
sb.append("WS : [ \\n] -> skip ;\n");
String grammar = sb.toString();
String found = execLexer("L.g4", grammar, "L", "enum enu a", false);
assertEquals("enum!\n" +
"ID enu\n" +
"ID a\n" +
"[@0,0:3='enum',<1>,1:0]\n" +
"[@1,5:7='enu',<2>,1:5]\n" +
"[@2,9:9='a',<2>,1:9]\n" +
"[@3,10:9='<EOF>',<-1>,1:10]\n", found);
assertNull(this.stderrDuringParse);
}
}
|
[
"eric.vergnaud@wanadoo.fr"
] |
eric.vergnaud@wanadoo.fr
|
daddd7ac7d3618184d03bc263aa390cfd141a235
|
cded08c92cd17d66eaf5c412eaa4ce0f11f4c54a
|
/inference-framework/checker-framework/checkers/jdk/sflow/src/java/util/AbstractCollection.java
|
0123124d6c16b76bd602e4fe28172a7e0d30e4f3
|
[
"Apache-2.0"
] |
permissive
|
ANter-xidian/type-inference
|
77aa54f5fa93abc8dfcdbc93be4654cfebaa5ad9
|
90d002a1e2d0a3d160ab204084da9d5be5fdd971
|
refs/heads/master
| 2020-09-27T14:53:33.530140
| 2019-01-22T21:26:11
| 2019-01-22T21:26:11
| 226,540,844
| 1
| 0
|
NOASSERTION
| 2019-12-07T16:12:36
| 2019-12-07T16:12:35
| null |
UTF-8
|
Java
| false
| false
| 1,853
|
java
|
package java.util;
import checkers.inference.reim.quals.*;
public abstract class AbstractCollection<E> implements Collection<E> {
protected AbstractCollection() { throw new RuntimeException("skeleton method"); }
public abstract @Polyread Iterator<E> iterator(@Polyread AbstractCollection<E> this) ;
public abstract int size(@Readonly AbstractCollection<E> this) ;
public boolean isEmpty(@Readonly AbstractCollection<E> this) { throw new RuntimeException("skeleton method"); }
public boolean contains(@Readonly AbstractCollection<E> this, @Readonly Object o) { throw new RuntimeException("skeleton method"); }
public Object[] toArray(@Readonly AbstractCollection<E> this) { throw new RuntimeException("skeleton method"); }
public <T> T[] toArray(@Readonly AbstractCollection<E> this, T[] a) { throw new RuntimeException("skeleton method"); }
private static <T> T[] finishToArray(T[] r, Iterator<?> it) { throw new RuntimeException("skeleton method"); }
public boolean add(@Readonly E e) { throw new RuntimeException("skeleton method"); } //WEI K
public boolean remove(@Readonly Object o) { throw new RuntimeException("skeleton method"); }
public boolean containsAll(@Readonly AbstractCollection<E> this, @Readonly Collection<?> c) { throw new RuntimeException("skeleton method"); }
public boolean addAll(@Readonly Collection<? extends E> c) { throw new RuntimeException("skeleton method"); }
public boolean removeAll(@Readonly Collection<?> c) { throw new RuntimeException("skeleton method"); }
public boolean retainAll(@Readonly Collection<?> c) { throw new RuntimeException("skeleton method"); }
public void clear() { throw new RuntimeException("skeleton method"); }
public String toString(@Readonly AbstractCollection<E> this) { throw new RuntimeException("skeleton method"); }
}
|
[
"csweihuang@gmail.com@e039eaa7-eea3-5927-096b-721137851c37"
] |
csweihuang@gmail.com@e039eaa7-eea3-5927-096b-721137851c37
|
f83e08cfea4187efb0bb062f26807da5acc45f05
|
0d4edfbd462ed72da9d1e2ac4bfef63d40db2990
|
/gsyvideoplayer/src/main/java/com/shuyu/gsyvideoplayer/player/SystemPlayerManager.java
|
d5c7ffb0823fba5aea2479f88ff8ec7a8e0f7c56
|
[] |
no_license
|
dvc890/MyBilibili
|
1fc7e0a0d5917fb12a7efed8aebfd9030db7ff9f
|
0483e90e6fbf42905b8aff4cbccbaeb95c733712
|
refs/heads/master
| 2020-05-24T22:49:02.383357
| 2019-11-23T01:14:14
| 2019-11-23T01:14:14
| 187,502,297
| 31
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,921
|
java
|
package com.shuyu.gsyvideoplayer.player;
import android.content.Context;
import android.media.AudioManager;
import android.media.PlaybackParams;
import android.net.TrafficStats;
import android.net.Uri;
import android.os.Build;
import android.os.Message;
import android.view.Surface;
import com.shuyu.gsyvideoplayer.cache.ICacheManager;
import com.shuyu.gsyvideoplayer.model.GSYModel;
import com.shuyu.gsyvideoplayer.model.VideoOptionModel;
import com.shuyu.gsyvideoplayer.utils.Debuger;
import java.util.List;
import tv.danmaku.ijk.media.player.AndroidMediaPlayer;
import tv.danmaku.ijk.media.player.IMediaPlayer;
/**
* 系统播放器,总觉得不好用
* Created by guoshuyu on 2018/1/11.
*/
public class SystemPlayerManager implements IPlayerManager {
private Context context;
private AndroidMediaPlayer mediaPlayer;
private Surface surface;
private boolean release;
private long lastTotalRxBytes = 0;
private long lastTimeStamp = 0;
@Override
public IMediaPlayer getMediaPlayer() {
return mediaPlayer;
}
@Override
public void initVideoPlayer(Context context, Message msg, List<VideoOptionModel> optionModelList, ICacheManager cacheManager) {
this.context = context.getApplicationContext();
mediaPlayer = new AndroidMediaPlayer();
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
release = false;
GSYModel gsyModel = (GSYModel) msg.obj;
try {
if (gsyModel.isCache() && cacheManager != null) {
cacheManager.doCacheLogic(context, mediaPlayer, gsyModel, gsyModel.getMapHeadData(), gsyModel.getCachePath());
} else {
mediaPlayer.setDataSource(context, Uri.parse(gsyModel.getUrl()), gsyModel.getMapHeadData());
}
mediaPlayer.setLooping(gsyModel.isLooping());
if (gsyModel.getSpeed() != 1 && gsyModel.getSpeed() > 0) {
setSpeed(gsyModel.getSpeed());
}
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public void showDisplay(Message msg) {
if (msg.obj == null && mediaPlayer != null && !release) {
mediaPlayer.setSurface(null);
} else if (msg.obj != null) {
Surface holder = (Surface) msg.obj;
surface = holder;
if (mediaPlayer != null && holder.isValid() && !release) {
mediaPlayer.setSurface(holder);
}
}
}
@Override
public void setSpeed(float speed, boolean soundTouch) {
setSpeed(speed);
}
@Override
public void setNeedMute(boolean needMute) {
try {
if (mediaPlayer != null && !release) {
if (needMute) {
mediaPlayer.setVolume(0, 0);
} else {
mediaPlayer.setVolume(1, 1);
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public void releaseSurface() {
if (surface != null) {
//surface.release();
surface = null;
}
}
@Override
public void release() {
if (mediaPlayer != null) {
release = true;
mediaPlayer.release();
}
lastTotalRxBytes = 0;
lastTimeStamp = 0;
}
@Override
public int getBufferedPercentage() {
return -1;
}
@Override
public long getNetSpeed() {
if (mediaPlayer != null) {
return getNetSpeed(context);
}
return 0;
}
@Override
public void setSpeedPlaying(float speed, boolean soundTouch) {
}
@Override
public void start() {
if (mediaPlayer != null) {
mediaPlayer.start();
}
}
@Override
public void stop() {
if (mediaPlayer != null) {
mediaPlayer.stop();
}
}
@Override
public void pause() {
if (mediaPlayer != null) {
mediaPlayer.pause();
}
}
@Override
public int getVideoWidth() {
if (mediaPlayer != null) {
return mediaPlayer.getVideoWidth();
}
return 0;
}
@Override
public int getVideoHeight() {
if (mediaPlayer != null) {
return mediaPlayer.getVideoHeight();
}
return 0;
}
@Override
public boolean isPlaying() {
if (mediaPlayer != null) {
return mediaPlayer.isPlaying();
}
return false;
}
@Override
public void seekTo(long time) {
if (mediaPlayer != null) {
mediaPlayer.seekTo(time);
}
}
@Override
public long getCurrentPosition() {
if (mediaPlayer != null) {
return mediaPlayer.getCurrentPosition();
}
return 0;
}
@Override
public long getDuration() {
if (mediaPlayer != null) {
return mediaPlayer.getDuration();
}
return 0;
}
@Override
public int getVideoSarNum() {
if (mediaPlayer != null) {
return mediaPlayer.getVideoSarNum();
}
return 1;
}
@Override
public int getVideoSarDen() {
if (mediaPlayer != null) {
return mediaPlayer.getVideoSarDen();
}
return 1;
}
@Override
public boolean isSurfaceSupportLockCanvas() {
return false;
}
private void setSpeed(float speed) {
if (release) {
return;
}
if (mediaPlayer != null && mediaPlayer.getInternalMediaPlayer() != null && mediaPlayer.isPlayable()) {
try {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
PlaybackParams playbackParams = new PlaybackParams();
playbackParams.setSpeed(speed);
mediaPlayer.getInternalMediaPlayer().setPlaybackParams(playbackParams);
} else {
Debuger.printfError(" not support setSpeed");
}
} catch (Exception e){
e.printStackTrace();
}
}
}
private long getNetSpeed(Context context) {
if (context == null) {
return 0;
}
long nowTotalRxBytes = TrafficStats.getUidRxBytes(context.getApplicationInfo().uid) == TrafficStats.UNSUPPORTED ? 0 : (TrafficStats.getTotalRxBytes() / 1024);//转为KB
long nowTimeStamp = System.currentTimeMillis();
long calculationTime = (nowTimeStamp - lastTimeStamp);
if (calculationTime == 0) {
return calculationTime;
}
//毫秒转换
long speed = ((nowTotalRxBytes - lastTotalRxBytes) * 1000 / calculationTime);
lastTimeStamp = nowTimeStamp;
lastTotalRxBytes = nowTotalRxBytes;
return speed;
}
}
|
[
"dvc890@139.com"
] |
dvc890@139.com
|
5fd6e25198b2bb5668b039f71ed6324e1dd47354
|
20591524b55c1ce671fd325cbe41bd9958fc6bbd
|
/service-consumer/src/main/java/com/rongdu/loans/loan/option/xjbk/WorkStudentInfo.java
|
48800b0c921b71bf1ccfffc086eaf18ab4f45017
|
[] |
no_license
|
ybak/loans-suniu
|
7659387eab42612fce7c0fa80181f2a2106db6e1
|
b8ab9bfa5ad8be38dc42c0e02b73179b11a491d5
|
refs/heads/master
| 2021-03-24T01:00:17.702884
| 2019-09-25T15:28:35
| 2019-09-25T15:28:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 971
|
java
|
package com.rongdu.loans.loan.option.xjbk;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* Auto-generated: 2018-05-24 15:47:37
*
* @author www.jsons.cn
* @website http://www.jsons.cn/json2java/
*/
public class WorkStudentInfo implements Serializable {
private static final long serialVersionUID = 3775299365973516100L;
@JsonProperty("school_name")
private String schoolName;
private String location;
private String entrance;
public void setSchoolName(String schoolName) {
this.schoolName = schoolName;
}
public String getSchoolName() {
return schoolName;
}
public void setLocation(String location) {
this.location = location;
}
public String getLocation() {
return location;
}
public void setEntrance(String entrance) {
this.entrance = entrance;
}
public String getEntrance() {
return entrance;
}
}
|
[
"tiramisuy18@163.com"
] |
tiramisuy18@163.com
|
024568e9f5194c5a96138bab864d34a11344c865
|
22b0ed54854237f2bb3abeb2ebe3affe00c0d48d
|
/collections/src/main/java/ru/ubrr/collections/CollectionsExample.java
|
6b0276215b5ea74246bab6026f1b8faf01080009
|
[] |
no_license
|
Vyacheslav-Lapin/ubrr-demo
|
0da657b8aa900d56aadf735bc5288cb799ff409e
|
9c101a43b0ee5315fbd2719e8f7add9fb2de5477
|
refs/heads/master
| 2023-07-04T22:24:39.281701
| 2021-08-16T17:50:56
| 2021-08-16T17:50:56
| 360,635,494
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 576
|
java
|
package ru.ubrr.collections;
import static java.util.Collections.reverseOrder;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import lombok.experimental.ExtensionMethod;
@ExtensionMethod(Collections.class)
public class CollectionsExample {
public static void main(String[] args) {
List<String> list1 = Arrays.asList("red", "greean", "blue");
list1.sort();
System.out.println(list1);
List<String> list2 = Arrays.asList("greean", "red", "yellow", "blue");
list2.sort(reverseOrder());
System.out.println(list2);
}
}
|
[
"Vyacheslav.Lapin@gmail.com"
] |
Vyacheslav.Lapin@gmail.com
|
f23001f51f0c6a6c8b6a257c542bc753fba471a2
|
bfac99890aad5f43f4d20f8737dd963b857814c2
|
/reg3/v0/xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-api/src/main/java/org/xwiki/security/authorization/RuleState.java
|
d52bbf5d7096371c734682d0b1b8ea7236a4da33
|
[] |
no_license
|
STAMP-project/dbug
|
3b3776b80517c47e5cac04664cc07112ea26b2a4
|
69830c00bba4d6b37ad649aa576f569df0965c72
|
refs/heads/master
| 2021-01-20T03:59:39.330218
| 2017-07-12T08:03:40
| 2017-07-12T08:03:40
| 89,613,961
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,554
|
java
|
/*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.xwiki.security.authorization;
/**
* The state of a particular right as determined by a security rule.
*
* @version $Id: 6b842da975ab6ac60cf1cdbf663fa93c9704c87e $
* @since 4.0M2
*/
public enum RuleState
{
/** Right state undetermined. */
UNDETERMINED(0x0),
/** Right is denied. */
DENY(0x2),
/** Right is allowed. */
ALLOW(0x3);
/** Value of this rule state. */
private final int value;
/** @param value state of a rule. */
RuleState(int value)
{
this.value = value;
}
/** @return state of a rule. */
public int getValue()
{
return value;
}
}
|
[
"caroline.landry@inria.fr"
] |
caroline.landry@inria.fr
|
353b9f05209b66f6de9eb594eec139c6f0accc83
|
11b9a30ada6672f428c8292937dec7ce9f35c71b
|
/src/main/java/com/sun/corba/se/PortableActivationIDL/EndPointInfo.java
|
a8f84fe98b7a7280d064190bf572014b430505d5
|
[] |
no_license
|
bogle-zhao/jdk8
|
5b0a3978526723b3952a0c5d7221a3686039910b
|
8a66f021a824acfb48962721a20d27553523350d
|
refs/heads/master
| 2022-12-13T10:44:17.426522
| 2020-09-27T13:37:00
| 2020-09-27T13:37:00
| 299,039,533
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 776
|
java
|
/***** Lobxxx Translate Finished ******/
package com.sun.corba.se.PortableActivationIDL;
/**
* com/sun/corba/se/PortableActivationIDL/EndPointInfo.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u45/3627/corba/src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl
* Thursday, April 30, 2015 12:42:08 PM PDT
*/
public final class EndPointInfo implements org.omg.CORBA.portable.IDLEntity
{
public String endpointType = null;
public int port = (int)0;
public EndPointInfo ()
{
} // ctor
public EndPointInfo (String _endpointType, int _port)
{
endpointType = _endpointType;
port = _port;
} // ctor
} // class EndPointInfo
|
[
"zhaobo@MacBook-Pro.local"
] |
zhaobo@MacBook-Pro.local
|
bd48f7875d6e9c8e34fd33217014ee18989c8ce0
|
67da3917c854d39e99ccb3a04f8d698534f35fa9
|
/JAVAFILES/levelOrder.java
|
f9a7741f43ffb8f55df917d05a4d19dcc70e1259
|
[] |
no_license
|
livewire15/Java-codes
|
d3c3bf6412c287298de5a966e04e37cdb8c383d8
|
403fac0873f8e2b00f11c3a956693a45b8a00848
|
refs/heads/master
| 2020-06-04T01:49:38.439231
| 2019-06-13T19:24:52
| 2019-06-13T19:24:52
| 191,821,575
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 860
|
java
|
import java.util.*;
class Node
{
int data;
Node left,right;
}
class levelOrder
{
static Node root=null;
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
while(n-->0)
{
int val=sc.nextInt();
root=insert(root,val);
}
levelOrder(root);
}
static Node insert(Node root,int val)
{
if(root==null)
{
Node ptr=new Node();
ptr.data=val;
root=ptr;
}
else if(val<root.data)
{
root.left=insert(root.left,val);
}
else
{
root.right=insert(root.right,val);
}
return root;
}
static void levelOrder(Node root)
{
Queue<Node> queue=new LinkedList<>();
queue.add(root);
while(!queue.isEmpty())
{
Node val=queue.poll();
System.out.print(val.data+" ");
if(val.left!=null)
queue.add(val.left);
if(val.right!=null)
queue.add(val.right);
}
}
}
|
[
"pratyushchhibber@gmail.com"
] |
pratyushchhibber@gmail.com
|
68e68157054bbbd1baa97120b5f52c546fb87642
|
6d4b5e738465850f233cae98364d0bd1f97068f2
|
/android/app/src/main/java/com/weedetect_15010/MainApplication.java
|
04c122350985dc5eea73418ae6ead3da44a0b428
|
[] |
no_license
|
crowdbotics-apps/weedetect-15010
|
349ea962d2fd1ffcda4b8fcb1975038425128364
|
cd769e64ee9a2bb47d2fb2f7871a93d2e036b700
|
refs/heads/master
| 2023-02-05T16:05:43.952803
| 2020-03-24T02:10:07
| 2020-03-24T02:10:07
| 249,590,446
| 0
| 0
| null | 2023-01-26T15:02:51
| 2020-03-24T02:09:13
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 1,368
|
java
|
package com.weedetect_15010;
import android.app.Application;
import android.util.Log;
import com.facebook.react.PackageList;
import com.facebook.hermes.reactexecutor.HermesExecutorFactory;
import com.facebook.react.bridge.JavaScriptExecutorFactory;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.soloader.SoLoader;
import java.util.List;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
return packages;
}
@Override
protected String getJSMainModuleName() {
return "index";
}
};
@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
}
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
}
}
|
[
"team@crowdbotics.com"
] |
team@crowdbotics.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.