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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72d552c69d942a93e47e6bb79e64898b05d7dca3
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project88/src/main/java/org/gradle/test/performance88_5/Production88_422.java
|
8049075c8ac633cad6317e32eda46a2c7dcd0821
|
[] |
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
| 305
|
java
|
package org.gradle.test.performance88_5;
public class Production88_422 extends org.gradle.test.performance17_5.Production17_422 {
private final String property;
public Production88_422() {
this.property = "foo";
}
public String getProperty() {
return property;
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
445fd6de8379defb887b878a0e7ca4feee49caed
|
072742f580167c59cb6ccf388dd74c486d8efbe7
|
/sources/com/txznet/txz/T/Tn.java
|
276973b862d5c912c2b292b40c2924ba7b344bd6
|
[] |
no_license
|
1989rat/libcan59-TsMainUI
|
3ff2034fc162943419998edab8ad4f1dd9dc8a02
|
9fe822b23d0f748dd8c6c109a5e93150f54458aa
|
refs/heads/master
| 2023-03-20T07:56:55.859764
| 2021-01-26T05:07:11
| 2021-01-26T05:07:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 870
|
java
|
package com.txznet.txz.T;
import com.txznet.comm.Tr.Tr.T9;
import com.txznet.comm.Tr.Tr.Th;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
/* compiled from: Proguard */
public class Tn {
/* renamed from: T reason: collision with root package name */
static final ReadWriteLock f891T = new ReentrantReadWriteLock(false);
static Map<String, T> Tr = new HashMap();
public static int Ty = 1;
/* compiled from: Proguard */
public interface T {
}
static {
com.txznet.comm.Tr.Tr.Tn.Tr();
T9.T();
Th.T();
com.txznet.comm.Tr.Tr.T.Tk();
}
public static void T(String prefix, T proc) {
f891T.writeLock().lock();
Tr.put(prefix, proc);
f891T.writeLock().unlock();
}
}
|
[
"nicholas@prjkt.io"
] |
nicholas@prjkt.io
|
e689e418175aa7ccb07881e6d94eb6ac5e374a9a
|
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
|
/project_1_1/src/b/b/g/i/Calc_1_1_11686.java
|
7b7d3ced4fc3948b8d4d480a0869686cee1089f2
|
[] |
no_license
|
chalstrick/bigRepo1
|
ac7fd5785d475b3c38f1328e370ba9a85a751cff
|
dad1852eef66fcec200df10083959c674fdcc55d
|
refs/heads/master
| 2016-08-11T17:59:16.079541
| 2015-12-18T14:26:49
| 2015-12-18T14:26:49
| 48,244,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 134
|
java
|
package b.b.g.i;
public class Calc_1_1_11686 {
/** @return the sum of a and b */
public int add(int a, int b) {
return a+b;
}
}
|
[
"christian.halstrick@sap.com"
] |
christian.halstrick@sap.com
|
6b7dea6353f7af956a8f288836913f4ca7aba21a
|
8b0ae134884d6f84217587194a2a0f775866ef55
|
/Vivo_y93/src/main/java/com/vivo/services/security/server/db/ICursorDataExtractor.java
|
0bf5b58c35f751926746aa903f72e35c550624e4
|
[] |
no_license
|
wanbing/VivoFramework
|
69032750f376178d27d0d1ac170cf89bba907cc7
|
8d31381ecc788afb023960535bafbfa3b7df7d9b
|
refs/heads/master
| 2023-05-11T16:57:04.582985
| 2019-02-27T04:43:44
| 2019-02-27T04:43:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 237
|
java
|
package com.vivo.services.security.server.db;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
public interface ICursorDataExtractor<T> {
T extractData(SQLiteDatabase sQLiteDatabase, Cursor cursor);
}
|
[
"lygforbs0@gmail.com"
] |
lygforbs0@gmail.com
|
0dd50a9307a83ea8d5ec0da9b586e9fde69b365c
|
97911bb23b6d406b351b48b5c824797410ceb3e6
|
/app/src/main/java/mo/macauhub/macauhub/ui/ImageAcitivity.java
|
995bb65d7cc919793b6c61a0e28036026b4376c1
|
[] |
no_license
|
zhoumcu/macauhub
|
de3d0b0c6dcc305202b0e44ec861f703f562d5fc
|
7acab4c14fc337dbf9e8893a80590f717ad668bf
|
refs/heads/master
| 2021-01-19T13:12:57.604227
| 2017-06-13T02:07:35
| 2017-06-13T02:07:35
| 88,073,909
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,450
|
java
|
package mo.macauhub.macauhub.ui;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
import mo.macauhub.macauhub.R;
import mo.macauhub.macauhub.utils.SmoothImageView;
import uk.co.senab.photoview.PhotoViewAttacher;
/**
* Created by ymn on 2017/4/16.
*/
public class ImageAcitivity extends AppCompatActivity {
@Bind(R.id.close)
ImageView close;
@Bind(R.id.img_photo)
SmoothImageView imgPhoto;
private int mLocationX;
private int mLocationY;
private int mHeight;
private int mWidth;
private String mDatas;
private float scale = 1.0f;
private PhotoViewAttacher attacher;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.aty_img);
ButterKnife.bind(this);
initView();
}
public void initView() {
mDatas = (String) getIntent().getStringExtra("images");
mLocationX = getIntent().getIntExtra("locationX", 0);
mLocationY = getIntent().getIntExtra("locationY", 0);
mWidth = getIntent().getIntExtra("width", 0);
mHeight = getIntent().getIntExtra("height", 0);
imgPhoto.setOriginalInfo(mWidth, mHeight, mLocationX, mLocationY);
imgPhoto.transformIn();
//imgPhoto.setLayoutParams(new ViewGroup.LayoutParams(-1, -1));
imgPhoto.setScaleType(ImageView.ScaleType.FIT_CENTER);
attacher = new PhotoViewAttacher(imgPhoto);
attacher.setZoomable(true);
//attacher.setMinimumScale(1.50f);
attacher.setZoomTransitionDuration(1000);
attacher.update();
// ImageLoader.getInstance().displayImage(mDatas, imageView);
imgPhoto.setImageResource(R.drawable.map);
handler.postDelayed(runnable, 100);
}
private Runnable runnable = new Runnable() {
@Override
public void run() {
scale += 0.1f;
if (scale < 3.00f) {
attacher.setScale(scale, true);
attacher.update();
handler.postDelayed(runnable, 100);
}
}
};
private Handler handler = new Handler();
@OnClick(R.id.close)
public void onClick() {
finish();
}
}
|
[
"1032324589@qq.com"
] |
1032324589@qq.com
|
1871ec77631c48834aaaf011ddc4131dbc611265
|
3cb5aa63961d3099b1e782d51a8ef5e5a23ee31a
|
/datasource-test-proxy/src/main/java/net/ttddyy/dsproxy/test/hamcrest/SqlTypeMatcher.java
|
5118a0bdce16558fd5cdd3377062759c76729d7c
|
[
"MIT"
] |
permissive
|
rilaby/datasource-proxy
|
e4cede3e129ef25ae98d4e59a86c3309de74d48a
|
6112c2496f9d933a338ffec6f7d56817c54cc28a
|
refs/heads/master
| 2020-12-25T08:59:57.281407
| 2016-06-19T09:46:22
| 2016-06-19T09:46:22
| 61,473,058
| 0
| 0
| null | 2016-06-19T09:28:15
| 2016-06-19T09:28:14
| null |
UTF-8
|
Java
| false
| false
| 2,283
|
java
|
package net.ttddyy.dsproxy.test.hamcrest;
import org.hamcrest.Description;
import org.hamcrest.TypeSafeMatcher;
import java.lang.reflect.Field;
import java.sql.Types;
import java.util.HashMap;
import java.util.Map;
/**
* Hamcrest matcher for {@link java.sql.Types}(int).
*
* @author Tadaya Tsuyukubo
* @see java.sql.Types
* @since 1.4
*/
public class SqlTypeMatcher extends TypeSafeMatcher<Integer> {
public static final Map<Integer, String> typeNameByValue = new HashMap<Integer, String>();
static {
try {
Field[] fields = Types.class.getDeclaredFields();
for (Field field : fields) {
typeNameByValue.put(field.getInt(null), field.getName());
}
} catch (Exception e) {
}
}
protected int expectedSqlType;
protected String messagePrefix = "";
protected String messageSuffix = "";
public SqlTypeMatcher(int expectedSqlType) {
this.expectedSqlType = expectedSqlType;
}
public SqlTypeMatcher(int expectedSqlType, String messagePrefix, String messageSuffix) {
this.expectedSqlType = expectedSqlType;
this.messagePrefix = messagePrefix;
this.messageSuffix = messageSuffix;
}
@Override
protected boolean matchesSafely(Integer item) {
if (item == null) {
return false;
}
return this.expectedSqlType == item;
}
@Override
public void describeTo(Description description) {
// expected message
description.appendText(getMessage(this.expectedSqlType));
}
@Override
protected void describeMismatchSafely(Integer item, Description mismatchDescription) {
// for actual(but was) message
mismatchDescription.appendText(getMessage(item));
}
protected String getMessage(Integer sqlType) {
String typeName = typeNameByValue.get(sqlType);
if (typeName == null) {
typeName = "UNKNOWN";
}
return this.messagePrefix + typeName + ":" + sqlType + this.messageSuffix;
}
public void setMessagePrefix(String messagePrefix) {
this.messagePrefix = messagePrefix;
}
public void setMessageSuffix(String messageSuffix) {
this.messageSuffix = messageSuffix;
}
}
|
[
"tadaya@ttddyy.net"
] |
tadaya@ttddyy.net
|
0816ecd4c7ab68b425e5c0d673496492a86381e3
|
efca855f83be608cc5fcd5f9976b820f09f11243
|
/ethereum/api/src/main/java/org/enterchain/enter/ethereum/api/jsonrpc/internal/methods/miner/MinerStart.java
|
fe2ec250d1676ce4333cff780797cf908c2d24dd
|
[
"Apache-2.0"
] |
permissive
|
enterpact/enterchain
|
5438e127c851597cbd7e274526c3328155483e58
|
d8b272fa6885e5d263066da01fff3be74a6357a0
|
refs/heads/master
| 2023-05-28T12:48:02.535365
| 2021-06-09T20:44:01
| 2021-06-09T20:44:01
| 375,483,000
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,166
|
java
|
/*
* Copyright ConsenSys AG.
*
* 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.
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.enterchain.enter.ethereum.api.jsonrpc.internal.methods.miner;
import org.enterchain.enter.ethereum.api.jsonrpc.RpcMethod;
import org.enterchain.enter.ethereum.api.jsonrpc.internal.JsonRpcRequestContext;
import org.enterchain.enter.ethereum.api.jsonrpc.internal.methods.JsonRpcMethod;
import org.enterchain.enter.ethereum.api.jsonrpc.internal.response.JsonRpcError;
import org.enterchain.enter.ethereum.api.jsonrpc.internal.response.JsonRpcErrorResponse;
import org.enterchain.enter.ethereum.api.jsonrpc.internal.response.JsonRpcResponse;
import org.enterchain.enter.ethereum.api.jsonrpc.internal.response.JsonRpcSuccessResponse;
import org.enterchain.enter.ethereum.blockcreation.CoinbaseNotSetException;
import org.enterchain.enter.ethereum.blockcreation.MiningCoordinator;
public class MinerStart implements JsonRpcMethod {
private final MiningCoordinator miningCoordinator;
public MinerStart(final MiningCoordinator miningCoordinator) {
this.miningCoordinator = miningCoordinator;
}
@Override
public String getName() {
return RpcMethod.MINER_START.getMethodName();
}
@Override
public JsonRpcResponse response(final JsonRpcRequestContext requestContext) {
final boolean enabled;
try {
enabled = miningCoordinator.enable();
} catch (final CoinbaseNotSetException e) {
return new JsonRpcErrorResponse(
requestContext.getRequest().getId(), JsonRpcError.COINBASE_NOT_SET);
}
return new JsonRpcSuccessResponse(requestContext.getRequest().getId(), enabled);
}
}
|
[
"webframes@gmail.com"
] |
webframes@gmail.com
|
f55797fa449c20b2da2b821adaa7722cb5a8577b
|
d05ac0e945576eb8e51cb38dcf7350296bacdba1
|
/jbossws-core/src/org/jboss/ws/core/soap/HRefInlineHandler.java
|
d1801a21b26c0e78e4e9fdd9ecc651c005992d8c
|
[] |
no_license
|
Arckman/CBPM
|
9b6a125ea2bebe44749c09cfc37f89fdc15d69b7
|
10663b40abf151c90d0b20878f8f7f20c8077b30
|
refs/heads/master
| 2016-09-06T09:02:15.819806
| 2014-05-22T02:40:16
| 2014-05-22T02:40:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,493
|
java
|
/*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.ws.core.soap;
//$Id: HRefInlineHandler.java 3959 2007-07-20 14:44:19Z heiko.braun@jboss.com $
import java.util.Iterator;
import javax.xml.soap.Node;
import javax.xml.soap.SOAPBodyElement;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPException;
import javax.xml.soap.Text;
import org.jboss.logging.Logger;
import org.jboss.wsf.common.DOMUtils;
import org.jboss.wsf.common.DOMWriter;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
/**
* Inline rpc/encoded hrefs
*
* @author Thomas.Diesler@jboss.com
* @since 27-Mar-2007
*/
public class HRefInlineHandler
{
// provide logging
private static Logger log = Logger.getLogger(HRefInlineHandler.class);
private SOAPFactoryImpl soapFactory = new SOAPFactoryImpl();
private SOAPBodyImpl soapBody;
public HRefInlineHandler(SOAPBodyImpl soapBody)
{
this.soapBody = soapBody;
}
public void processHRefs() throws SOAPException
{
String bodyStr = DOMWriter.printNode(soapBody, true);
log.debug("Begin processHRefs:\n" + bodyStr);
SOAPBodyElement soapBodyElement = soapBody.getBodyElement();
processElement(soapBodyElement);
// Process elements after SOAPBodyElement
Iterator it = soapBody.getChildElements();
while (it.hasNext())
{
Object next = it.next();
if (next instanceof SOAPElement)
{
// Remove id elements
SOAPElement soapElement = (SOAPElement)next;
if ((soapElement instanceof SOAPBodyElement) == false)
soapBody.removeChild(soapElement);
}
}
bodyStr = DOMWriter.printNode(soapBody, true);
log.debug("End processHRefs:\n" + bodyStr);
}
private void processElement(SOAPElement soapElement) throws SOAPException
{
// Do inner first outer last
Iterator it = soapElement.getChildElements();
while (it.hasNext())
{
Node childElement = (Node)it.next();
if (childElement instanceof SOAPElement)
processElement((SOAPElement)childElement);
}
String href = soapElement.getAttribute("href");
if (href.length() > 0)
{
processHRef(soapElement, href);
soapElement.removeAttribute("href");
}
}
private void processHRef(SOAPElement hrefElement, String href) throws SOAPException
{
SOAPElement idElement = null;
Iterator it = soapBody.getChildElements();
while (it.hasNext())
{
Object next = it.next();
if (next instanceof SOAPElement)
{
SOAPElement auxElement = (SOAPElement)next;
if (href.equals("#" + auxElement.getAttribute("id")))
{
idElement = (SOAPElement)auxElement;
break;
}
}
}
if (idElement == null)
throw new IllegalStateException("Cannot get href element: " + href);
// process nested hrefs
processElement(idElement);
// Copy most attributes, except id
copyMostAttributes(hrefElement, idElement);
// Append id element children
if (DOMUtils.hasChildElements(idElement))
{
Iterator itid = idElement.getChildElements();
while (itid.hasNext())
{
Node childNode = (Node)itid.next();
if (childNode instanceof SOAPElement)
{
SOAPElement childClone = soapFactory.createElement((SOAPElement)childNode, true);
hrefElement.addChildElement(childClone);
}
else if (childNode instanceof Text)
{
String value = childNode.getValue();
hrefElement.setValue(value);
}
}
}
// If no children, copy the value
else
{
String value = idElement.getValue();
hrefElement.setValue(value);
}
}
private void copyMostAttributes(Element destElement, Element srcElement)
{
NamedNodeMap attribs = srcElement.getAttributes();
for (int i = 0; i < attribs.getLength(); i++)
{
Attr attr = (Attr)attribs.item(i);
String uri = attr.getNamespaceURI();
String qname = attr.getName();
String value = attr.getNodeValue();
// Do not copy the id attribute
if ("id".equals(qname) == false)
destElement.setAttributeNS(uri, qname, value);
}
}
}
|
[
"fengrj1989@gmail.com"
] |
fengrj1989@gmail.com
|
ff7d386fa1539a5a27825fdb63ca9eea3fff6190
|
54f352a242a8ad6ff5516703e91da61e08d9a9e6
|
/Source Codes/AtCoder/agc026/A/4143300.java
|
969cef356a4648b8cd944de784a523697a5fdb1d
|
[] |
no_license
|
Kawser-nerd/CLCDSA
|
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
|
aee32551795763b54acb26856ab239370cac4e75
|
refs/heads/master
| 2022-02-09T11:08:56.588303
| 2022-01-26T18:53:40
| 2022-01-26T18:53:40
| 211,783,197
| 23
| 9
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 703
|
java
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] a = new int[n];
for (int i = 0; i<n; i++) {
a[i] = sc.nextInt();
}
sc.close();
int prev = -1;
int ren = 1;
int ans = 0;
for (int i = 0; i<n; i++) {
//System.out.println(prev+","+ren+","+ans);
if (prev==a[i]) ren++;
else {
ans += (ren/2);
ren = 1;
}
prev = a[i];
}
ans += (ren/2);
System.out.println(ans);
}
}
|
[
"kwnafi@yahoo.com"
] |
kwnafi@yahoo.com
|
843c52679db1aaca8912fdf7c33f7e8e4f1e6362
|
a35b21de1b30f820214ed6a3f42543e0005c295b
|
/AJC/05.SpringEssential/01.Spring_Core/01.SpringTraining/src/main/java/com/music/Guitarist.java
|
8a9a76802118122be208f0e4319434b055209c39
|
[] |
no_license
|
rosie-s/courses
|
a8baf2c0e0962b8e2429958e54cf1591f7aaaebf
|
379d3b1472e4e79d40ea3b539368bd321174c209
|
refs/heads/master
| 2022-06-23T19:39:50.897293
| 2020-10-23T13:32:26
| 2020-10-23T13:32:26
| 117,899,193
| 2
| 0
| null | 2022-06-21T04:07:50
| 2018-01-17T22:14:54
|
Java
|
UTF-8
|
Java
| false
| false
| 364
|
java
|
package com.music;
public class Guitarist implements IntfMusician {
private IntfInstrument instrument;
public Guitarist() {
}
@Override
public void play() {
System.out.println("The guitarist plays " + instrument.toString());
}
public void setInstrument(Guitar instrument) {
this.instrument = instrument;
}
}
|
[
"rosie-s@users.noreply.github.com"
] |
rosie-s@users.noreply.github.com
|
4cd739b72676408617914e43b265bb29437c8a4e
|
ca030864a3a1c24be6b9d1802c2353da4ca0d441
|
/classes2.dex_source_from_JADX/com/facebook/http/common/HttpRequestFilter.java
|
dd8e2236f060ad4d117d98b0cc26e733a6e7a8dc
|
[] |
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
| 284
|
java
|
package com.facebook.http.common;
import org.apache.http.impl.client.RequestWrapper;
/* compiled from: registration_contact_point_suggestions */
public interface HttpRequestFilter {
int mo1679a();
void mo1680a(RequestWrapper requestWrapper, FbHttpRequest fbHttpRequest);
}
|
[
"son.pham@jmango360.com"
] |
son.pham@jmango360.com
|
7c7983ad387f10b869cb490e92385a146ac21855
|
883b7801d828a0994cae7367a7097000f2d2e06a
|
/python/experiments/projects/self-xdsd-self-core/real_error_dataset/1/24/ProjectContracts.java
|
cffc333c6e063a15c731b79d0931845941bcdee9
|
[] |
no_license
|
pombredanne/styler
|
9c423917619912789289fe2f8982d9c0b331654b
|
f3d752d2785c2ab76bacbe5793bd8306ac7961a1
|
refs/heads/master
| 2023-07-08T05:55:18.284539
| 2020-11-06T05:09:47
| 2020-11-06T05:09:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,777
|
java
|
/**
* Copyright (c) 2020, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"),
* to read the Software only. Permission is hereby NOT GRANTED to use, copy,
* modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software.
* <p>
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
package com.selfxdsd.core.contracts;
import com.selfxdsd.api.Contract;
import com.selfxdsd.api.Contracts;
import com.selfxdsd.api.Contributor;
import java.math.BigDecimal;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;
/**
* Contracts belonging to a Project. Pay attention:
* this class <b>just represents</b> the contracts.
* The actual filtering has to be done in an upper layer,
* so we can take care of e.g. pagination.
* @author Mihai Andronache (amihaiemil@gmail.com)
* @version $Id$
* @since 0.0.1
*/
public final class ProjectContracts implements Contracts {
/**
* ID of the Project.
*/
private final int projectId;
/**
* The project's contracts.
*/
private final List<Contract> contracts;
/**
* Constructor.
* @param projectId Project ID.
* @param contracts Project's contracts.
*/
public ProjectContracts(
final int projectId,
final List<Contract> contracts
) {
this.projectId = projectId;
this.contracts = contracts;
}
@Override
public Contracts ofProject(final int projId) {
if(this.projectId == projId) {
return this;
}
throw new IllegalStateException(
"Already seeing the contracts of Project " + this.projectId + "."
);
}
@Override
public Contracts ofContributor(final Contributor contributor) {
final List<Contract> ofContributor = this.contracts
.stream()
.filter(
contract -> {
return contract
.contributor()
.username()
.equals(contributor.username())
&& contract
.contributor()
.provider()
.equals(contributor.provider());
}
)
.collect(Collectors.toList());
return new ContributorContracts(contributor, ofContributor);
}
@Override
public Contract addContract(final int projectId,
final String contributorUsername,
final String contributorProvider,
final BigDecimal hourlyRate,
final String role) {
throw new UnsupportedOperationException("Not yet implemented");
}
@Override
public Iterator<Contract> iterator() {
return this.contracts.iterator();
}
}
|
[
"fer.madeiral@gmail.com"
] |
fer.madeiral@gmail.com
|
4b9c66540a41404b5361bc6c5fadfff820450831
|
c0b312c7418f22ccbe1b1b3358667838e00b6243
|
/src/com/gridscape/sep/org/zigbee/sep/ApplianceLoadReductionType.java
|
e304ff05c6ff77dcb8925902693082ee17bc9bd5
|
[] |
no_license
|
rahul-me/e-ope
|
cb8005ad93dfe9b5b2f792379f33b678c1bc76a3
|
3b2e76c3c0109ab10eb2caf013ed541ed54fb260
|
refs/heads/master
| 2022-04-16T18:17:45.953574
| 2020-04-10T17:44:41
| 2020-04-10T17:44:41
| 254,696,703
| 0
| 0
| null | null | null | null |
WINDOWS-1252
|
Java
| false
| false
| 2,021
|
java
|
package com.gridscape.sep.org.zigbee.sep;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
/**
* 0 - Delay Appliance Load
* Parameter requesting the appliance to respond by providing a moderate load reduction for the duration of a delay period. Typically referring to a “non-emergency” event in which appliances can continue operating if already in a load consuming period.
*
* 1 - Temporary Appliance Load Reduction
* Parameter requesting the appliance to respond by providing an aggressive load reduction for a short time period. Typically referring to an “emergency/spinning reserve” event in which an appliance should start shedding load if currently in a load consuming period.
*
* * Full definition of how appliances react when receiving each parameter is document in the EPA document - ENERGY STAR® Program Requirements, Product Specification for Residential Refrigerators and Freezers, Eligibility Criteria 5, Draft 2 Version 5.0.
*
* All other values reserved.
*
* <p>Java class for ApplianceLoadReductionType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ApplianceLoadReductionType">
* <simpleContent>
* <extension base="<http://zigbee.org/sep>UInt8">
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ApplianceLoadReductionType", propOrder = {
"value"
})
public class ApplianceLoadReductionType {
@XmlValue
protected short value;
/**
* Unsigned integer, max inclusive 255 (2^8-1)
*
*/
public short getValue() {
return value;
}
/**
* Sets the value of the value property.
*
*/
public void setValue(short value) {
this.value = value;
}
}
|
[
"crahul10101991@gmail.com"
] |
crahul10101991@gmail.com
|
6d4492702a876332df361d628b55c2690b98372e
|
93e4a334b3559dfcff2843d271396c5b0f66815a
|
/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGSetElement.java
|
8b6f3115fb294204b1bbe52d9b153fcb8dc62fb7
|
[
"Apache-2.0"
] |
permissive
|
sudami/htmlunit-android
|
39e5074150911327cfc4d406dd2922341333ea64
|
9032c4c667d7db9f7b444658f7acb0b15b998d97
|
refs/heads/master
| 2021-09-10T17:03:38.493362
| 2018-03-29T21:58:57
| 2018-03-29T21:58:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,471
|
java
|
/*
* Copyright (c) 2002-2017 Gargoyle Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.gargoylesoftware.htmlunit.javascript.host.svg;
import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.CHROME;
import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.FF;
import com.gargoylesoftware.htmlunit.javascript.configuration.JsxClass;
import com.gargoylesoftware.htmlunit.javascript.configuration.JsxConstructor;
import com.gargoylesoftware.htmlunit.javascript.configuration.WebBrowser;
import com.gargoylesoftware.htmlunit.svg.SvgSet;
/**
* A JavaScript object for {@code SVGSetElement}.
*
* @author Ahmed Ashour
* @author Frank Danek
*/
@JsxClass(domClass = SvgSet.class, browsers = { @WebBrowser(FF), @WebBrowser(CHROME)})
public class SVGSetElement extends SVGAnimationElement {
/**
* Creates an instance.
*/
@JsxConstructor
public SVGSetElement() {
}
}
|
[
"sermojohn@gmail.com"
] |
sermojohn@gmail.com
|
e0ab347c043d208eeada78f174ee522b7579110b
|
18a9d5eac08ed322268c6df263d48cbc37319fb6
|
/kiji-phonebook/src/test/java/org/kiji/examples/phonebook/IntegrationTestPhonebookImporter.java
|
bdcffa4b6c38ebf8ff71902873645b91fc91805e
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
indix/kiji
|
d1b69a737a0c66559de3b1bd186afd13bca8c0a8
|
52fa4e8fec17ecdc704b22a00a4a1abe916bec09
|
refs/heads/master
| 2021-01-23T06:01:28.687506
| 2017-05-18T13:26:34
| 2017-05-18T13:26:34
| 86,329,288
| 0
| 0
| null | 2017-03-27T11:52:28
| 2017-03-27T11:52:27
| null |
UTF-8
|
Java
| false
| false
| 6,015
|
java
|
/**
* (c) Copyright 2013 WibiData, Inc.
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kiji.examples.phonebook;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;
import com.google.common.base.Preconditions;
import org.apache.commons.io.IOUtils;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.kiji.mapreduce.KijiMapReduceJob;
import org.kiji.schema.Kiji;
import org.kiji.schema.KijiDataRequest;
import org.kiji.schema.KijiRowData;
import org.kiji.schema.KijiRowScanner;
import org.kiji.schema.KijiTable;
import org.kiji.schema.KijiTableReader;
import org.kiji.schema.KijiURI;
import org.kiji.schema.layout.KijiTableLayout;
import org.kiji.schema.testutil.AbstractKijiIntegrationTest;
import org.kiji.schema.util.ResourceUtils;
import org.kiji.schema.util.Resources;
/** Tests PhonebookImporter. */
public class IntegrationTestPhonebookImporter
extends AbstractKijiIntegrationTest {
private Configuration mConf = null;
private FileSystem mFS = null;
private Path mInputPath = null;
private Kiji mKiji = null;
private KijiTable mOutputTable = null;
/**
* Generates a random HDFS path.
*
* @param prefix Prefix for the random file name.
* @return a random HDFS path.
* @throws Exception on error.
*/
private Path makeRandomHdfsPath(String prefix) throws Exception {
Preconditions.checkNotNull(mFS);
final Path base = new Path(FileSystem.getDefaultUri(mConf));
final Random random = new Random(System.nanoTime());
return new Path(base, String.format("/%s-%s", prefix, random.nextLong()));
}
private void writeTestResource(Path path, String testResource) throws Exception {
final OutputStream ostream = mFS.create(path);
final InputStream istream = Resources.openSystemResource(testResource);
IOUtils.copy(istream, ostream);
istream.close();
ostream.close();
}
private void createPhonebookTable() throws Exception {
InputStream jsonStream = Resources.openSystemResource("phonebook/layout.json");
KijiTableLayout layout = KijiTableLayout.createFromEffectiveJson(jsonStream);
mKiji.createTable("phonebook", layout);
}
@Before
public void setUp() throws Exception {
mConf = createConfiguration();
mFS = FileSystem.get(mConf);
mInputPath = makeRandomHdfsPath("phonebook-input");
writeTestResource(mInputPath, "phonebook/input-data.txt");
mKiji = Kiji.Factory.open(getKijiURI(), mConf);
createPhonebookTable();
mOutputTable = mKiji.openTable("phonebook");
}
@After
public void tearDown() throws Exception {
ResourceUtils.releaseOrLog(mOutputTable);
ResourceUtils.releaseOrLog(mKiji);
mFS.delete(mInputPath, false);
mOutputTable = null;
mKiji = null;
mInputPath = null;
mFS = null;
mConf = null;
}
@Test
public void testPhonebookImporter() throws Exception {
PhonebookImporter importer = new PhonebookImporter();
importer.setConf(mConf);
// configure a MapReduce job that uses our specific HBase instance as well as the
// one-off filename for the input data.
final KijiURI tableURI = KijiURI.newBuilder(getKijiURI()).withTableName("phonebook").build();
KijiMapReduceJob job = importer.configureJob(mInputPath, tableURI);
final boolean jobSuccess = job.run();
assertTrue("Importer exited with non-zero status", jobSuccess);
checkOutputTable();
}
@Test
public void testStandaloneImporter() throws Exception {
StandalonePhonebookImporter importer = new StandalonePhonebookImporter();
File inputFile = File.createTempFile("input", "txt", null);
inputFile.deleteOnExit();
final OutputStream ostream = new FileOutputStream(inputFile);
final InputStream istream = Resources.openSystemResource("phonebook/input-data.txt");
IOUtils.copy(istream, ostream);
istream.close();
ostream.close();
importer.setConf(mConf);
importer.setKijiURI(getKijiURI());
String[] args = { inputFile.getAbsolutePath() };
int ret = importer.run(args);
assertEquals("Return code from standalone importer non-zero!", 0, ret);
checkOutputTable();
}
/**
* Check that the output table was properly populated w/ phonebook entries.
*
* @throws IOException if there's an error reading from the table.
*/
private void checkOutputTable() throws IOException {
final KijiTableReader reader = mOutputTable.openTableReader();
final KijiDataRequest kdr = KijiDataRequest.create("info", "firstname");
KijiRowScanner scanner = reader.getScanner(kdr);
Set<String> actual = new HashSet<String>();
for (KijiRowData row : scanner) {
actual.add(row.getMostRecentValue("info", "firstname").toString());
}
scanner.close();
reader.close();
Set<String> expected = new HashSet<String>();
expected.add("Aaron");
expected.add("John");
expected.add("Alice");
expected.add("Bob");
assertEquals("Output data doesn't match expected results", expected, actual);
}
}
|
[
"taton@wibidata.com"
] |
taton@wibidata.com
|
a6b80835e3548a0e3ca99b0d1406f7df043c7712
|
17c30fed606a8b1c8f07f3befbef6ccc78288299
|
/P9_8_0_0/src/main/java/com/huawei/android/media/AudioManagerEx.java
|
8a1c751e0a0b8e9080ca679e831d4d309a2571a7
|
[] |
no_license
|
EggUncle/HwFrameWorkSource
|
4e67f1b832a2f68f5eaae065c90215777b8633a7
|
162e751d0952ca13548f700aad987852b969a4ad
|
refs/heads/master
| 2020-04-06T14:29:22.781911
| 2018-11-09T05:05:03
| 2018-11-09T05:05:03
| 157,543,151
| 1
| 0
| null | 2018-11-14T12:08:01
| 2018-11-14T12:08:01
| null |
UTF-8
|
Java
| false
| false
| 4,648
|
java
|
package com.huawei.android.media;
import android.content.Context;
import android.media.AudioManager;
import android.media.AudioSystem;
import android.os.Binder;
import android.os.IBinder;
import android.os.Parcel;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.util.Log;
import com.huawei.facerecognition.FaceCamera;
public class AudioManagerEx {
private static final int ENABLE_VOLUME_ADJUST_TOKEN = 1102;
private static final int IS_ADJUST_VOLUME_ENABLE_TOKEN = 1101;
public static final int STREAM_FM;
public static final int STREAM_INCALL_MUSIC = 3;
public static final int STREAM_VOICE_HELPER = 11;
private static final String TAG = "AudioManagerEx";
static {
boolean supportFmStream = true;
try {
AudioSystem.class.getDeclaredField("STREAM_FM");
} catch (NoSuchFieldException e) {
supportFmStream = false;
}
if (supportFmStream) {
STREAM_FM = 10;
} else {
STREAM_FM = 3;
}
Log.i(TAG, "STREAM_FM = " + STREAM_FM);
}
public static final String getVolumeChangedAction() {
return "android.media.VOLUME_CHANGED_ACTION";
}
public static final String getExtraVolumeStreamType() {
return "android.media.EXTRA_VOLUME_STREAM_TYPE";
}
public static final String getExtraVolumeStreamValue() {
return "android.media.EXTRA_VOLUME_STREAM_VALUE";
}
public static void setSpeakermediaOn(Context context, boolean on) {
Parcel data = Parcel.obtain();
Parcel reply = Parcel.obtain();
if (on) {
data.writeInt(1);
} else {
data.writeInt(0);
}
try {
ServiceManager.getService("audio").transact(101, data, reply, 0);
} catch (RemoteException e) {
Log.e(TAG, "add-on setSpeakermediaOn in exception....");
}
}
public static boolean isFMActive(AudioManager am) {
return 1 == AudioSystem.getDeviceConnectionState(1048576, "");
}
public static boolean isSourceActive(int source) {
return AudioSystem.isSourceActive(source);
}
public static boolean isAdjuseVolumeEnable() {
int ret = 0;
Parcel data = Parcel.obtain();
Parcel reply = Parcel.obtain();
try {
ServiceManager.getService("audio").transact(1101, data, reply, 0);
reply.readException();
ret = reply.readInt();
} catch (RemoteException e) {
Log.e(TAG, "add-on isAdjuseVolumeEnable in exception....", e);
} finally {
reply.recycle();
data.recycle();
}
if (ret > 0) {
return true;
}
return false;
}
public static void enableVolumeAdjust(boolean enable) {
Parcel data = Parcel.obtain();
Parcel reply = Parcel.obtain();
data.writeStrongBinder(new Binder());
if (enable) {
data.writeInt(1);
} else {
data.writeInt(0);
}
try {
ServiceManager.getService("audio").transact(ENABLE_VOLUME_ADJUST_TOKEN, data, reply, 0);
} catch (RemoteException e) {
Log.e(TAG, "add-on enableVolumeAdjust in exception....");
} finally {
reply.recycle();
data.recycle();
}
}
public static boolean isWiredHeadsetOnWithMicrophone() {
if (AudioSystem.getDeviceConnectionState(4, "") == 1) {
return true;
}
return false;
}
public static boolean isAudioOutputUSBDevieIn() {
if (AudioSystem.getDeviceConnectionState(16384, "") == 1) {
return true;
}
return false;
}
public static void disableHeadPhone(boolean disabled) {
if (disabled) {
IBinder b = ServiceManager.getService("audio");
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken("android.media.IAudioService");
if (b != null) {
b.transact(FaceCamera.RET_REPEAT_REQUEST_FAILED, _data, _reply, 0);
}
_reply.readException();
} catch (RemoteException e) {
Log.e(TAG, "disableHeadPhone transact e: " + e);
} finally {
_reply.recycle();
_data.recycle();
}
}
}
public static int getRingerModeInternal(AudioManager audioManager) {
return audioManager.getRingerModeInternal();
}
}
|
[
"lygforbs0@mail.com"
] |
lygforbs0@mail.com
|
fca7facdeddf34dafbc4cdca6e3a65decd16f7e5
|
5e3f026081ea6b51bcd6ac814634d69e95ff782f
|
/src/main/java/repository/builder/lib/annotations/order/OrderingBy.java
|
129ca4b920c3acff8a87a9326138e3dfa3ace94d
|
[] |
no_license
|
A4B5TQ/RepositoryBuilder
|
90adda748ecf2d4c2f5452d18dd6aa54e946cf35
|
fc74825db02741e7b16580e0d753514f642f6dec
|
refs/heads/master
| 2020-12-24T10:24:08.287342
| 2017-01-07T12:14:16
| 2017-01-07T12:14:16
| 73,082,865
| 13
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 428
|
java
|
package repository.builder.lib.annotations.order;
import repository.builder.lib.enums.OrderBy;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface OrderingBy {
String name() default "";
OrderBy type() default OrderBy.ASC;
}
|
[
"ivanov.ivan_@abv.bg"
] |
ivanov.ivan_@abv.bg
|
0b231c4fb984ad84bd10ddb990a6f5e8393ce55d
|
fd34bc57a54757fd6c29980347eb0a22213f5430
|
/econyx-core/src/main/java/it/mate/econyx/server/services/DocumentAdapter.java
|
aff03608dd0f4cf118e8e0d1a8d3dec10ec9b585
|
[] |
no_license
|
urazovm/marcelatelab
|
7b64c1c3f6bad786590964e5115d811787bc91a2
|
b9e264ecb4fe99b8966a8e4babc588b4aec4725f
|
refs/heads/master
| 2021-06-01T06:25:35.860311
| 2016-04-29T12:22:07
| 2016-04-29T12:22:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 858
|
java
|
package it.mate.econyx.server.services;
import it.mate.econyx.server.model.impl.DocumentDs;
import it.mate.econyx.shared.model.Document;
import it.mate.econyx.shared.model.DocumentFolder;
import java.util.List;
public interface DocumentAdapter {
public List<DocumentFolder> findAllFolders();
public DocumentFolder updateFolder(DocumentFolder entity);
public void deleteFolder(DocumentFolder entity);
public DocumentFolder createFolder(DocumentFolder entity);
public DocumentFolder findFolderById(String id);
public Document findDocumentByCode(String code);
public Document findDocumentById(String id, boolean fetchContent);
public Document updateDocument(Document Document);
public DocumentDs findDocumentDsById(String id);
public DocumentDs findDocumentDsByCode(String code);
}
|
[
"demarco.m73@gmail.com"
] |
demarco.m73@gmail.com
|
079979ad8309913f78fb0a7ff01640ccaf483c26
|
4aacd4f0f6002f3889a737c250628d0fd5dbd3b0
|
/src/main/java/features/axes/DepthTopDemo.java
|
a81f695af1375e124b4a7f4b692d4f40e7c37af3
|
[] |
no_license
|
marcozfr/chart-samples
|
11b24d3463deee4db13190a41cf1086d370a7a84
|
5765f9667d0f8789b67614c994fdf199c8265a78
|
refs/heads/main
| 2022-12-25T13:45:43.648257
| 2020-10-07T03:59:37
| 2020-10-07T03:59:37
| 301,921,360
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,574
|
java
|
/*
* DepthTopDemo.java
*
* <p>Copyright: (c) 2005-2007 by Steema Software SL. All Rights Reserved.</p>
*
* <p>Company: Steema Software SL</p>
*/
package features.axes;
import com.steema.teechart.axis.Axis;
import com.steema.teechart.drawing.Color;
import com.steema.teechart.styles.Tower;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.Box;
import javax.swing.JCheckBox;
import javax.swing.JPanel;
import features.ChartSamplePanel;
/**
*
* @author tom
*/
public class DepthTopDemo extends ChartSamplePanel
implements ItemListener {
/** Creates a new instance of DepthTopDemo */
public DepthTopDemo() {
super();
depthButton.addItemListener(this);
depthTopButton.addItemListener(this);
}
public void itemStateChanged(ItemEvent e) {
Object source = e.getItemSelectable();
boolean isSelected = (e.getStateChange() == ItemEvent.SELECTED);
if (source == depthButton) {
chart1.getAxes().getDepth().setVisible(isSelected);
} else if (source == depthTopButton) {
chart1.getAxes().getDepthTop().setVisible(isSelected);
}
}
protected void initChart() {
super.initChart();
chart1.getLegend().setVisible(false);
Axis axis = chart1.getAxes().getDepthTop();
axis.getLabels().getFont().setColor(Color.WHITE_SMOKE);
axis.getLabels().getFont().setSize(13);
axis.getLabels().getFont().getShadow().setColor(Color.WHITE);
axis.getLabels().getFont().getShadow().setHorizSize(1);
axis.getLabels().getFont().getShadow().setVertSize(1);
axis.setVisible(true);
}
protected void initComponents() {
super.initComponents();
Tower series = new Tower(chart1.getChart());
series.fillSampleValues();
depthTopButton = new JCheckBox("View DepthTop Axis");
depthTopButton.setSelected(chart1.getAxes().getDepthTop().getVisible());
depthButton = new JCheckBox("View Depth Axis");
depthButton.setSelected(chart1.getAxes().getDepth().getVisible());
}
protected void initGUI() {
super.initGUI();
JPanel tmpPane = getButtonPane();
{
tmpPane.add(depthTopButton);
tmpPane.add(Box.createHorizontalStrut(10));
tmpPane.add(depthButton);
tmpPane.add(Box.createHorizontalGlue());
}
}
private JCheckBox depthButton, depthTopButton;
}
|
[
"marcozfr@gmail.com"
] |
marcozfr@gmail.com
|
b0204eab1f1b8704aab41b6b7e95789a19e70951
|
4627d514d6664526f58fbe3cac830a54679749cd
|
/results/cling/math-org.apache.commons.math.geometry.Rotation-org.apache.commons.math.geometry.CardanEulerSingularityException-19/org/apache/commons/math/geometry/Rotation_ESTest_scaffolding.java
|
324c9d95b4f0c3230f4aec408cbfdbfcf48aad32
|
[] |
no_license
|
STAMP-project/Cling-application
|
c624175a4aa24bb9b29b53f9b84c42a0f18631bd
|
0ff4d7652b434cbfd9be8d8bb38cfc8d8eaa51b5
|
refs/heads/master
| 2022-07-27T09:30:16.423362
| 2022-07-19T12:01:46
| 2022-07-19T12:01:46
| 254,310,667
| 2
| 2
| null | 2021-07-12T12:29:50
| 2020-04-09T08:11:35
| null |
UTF-8
|
Java
| false
| false
| 4,564
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* Tue Mar 03 15:52:52 GMT 2020
*/
package org.apache.commons.math.geometry;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
import static org.evosuite.shaded.org.mockito.Mockito.*;
@EvoSuiteClassExclude
public class Rotation_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.math.geometry.Rotation";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
setSystemProperties();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
try { initMocksToAvoidTimeoutsInTheTests(); } catch(ClassNotFoundException e) {}
}
@AfterClass
public static void clearEvoSuiteFramework(){
Sandbox.resetDefaultSecurityManager();
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public static void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(Rotation_ESTest_scaffolding.class.getClassLoader() ,
"org.apache.commons.math.geometry.Rotation",
"org.apache.commons.math.geometry.Vector3D",
"org.apache.commons.math.MathException",
"org.apache.commons.math.geometry.RotationOrder",
"org.apache.commons.math.geometry.CardanEulerSingularityException",
"org.apache.commons.math.geometry.NotARotationMatrixException"
);
}
private static void initMocksToAvoidTimeoutsInTheTests() throws ClassNotFoundException {
mock(Class.forName("org.apache.commons.math.geometry.RotationOrder", false, Rotation_ESTest_scaffolding.class.getClassLoader()));
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(Rotation_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"org.apache.commons.math.geometry.Rotation",
"org.apache.commons.math.MathException",
"org.apache.commons.math.geometry.CardanEulerSingularityException",
"org.apache.commons.math.geometry.Vector3D",
"org.apache.commons.math.geometry.RotationOrder",
"org.apache.commons.math.geometry.NotARotationMatrixException"
);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
f3845def64741781c85da4158400563bead838b3
|
5a0bfac7ad00c079fe8e0bdf1482f4271c46eeab
|
/app/src/main/wechat6.5.3/com/tencent/mm/svg/a/a/sb.java
|
8f4cae5d7518f4af64f18f98a8b3478b4f82498e
|
[] |
no_license
|
newtonker/wechat6.5.3
|
8af53a870a752bb9e3c92ec92a63c1252cb81c10
|
637a69732afa3a936afc9f4679994b79a9222680
|
refs/heads/master
| 2020-04-16T03:32:32.230996
| 2017-06-15T09:54:10
| 2017-06-15T09:54:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,396
|
java
|
package com.tencent.mm.svg.a.a;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Join;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.os.Looper;
import com.tencent.mm.svg.WeChatSVGRenderC2Java;
import com.tencent.mm.svg.c;
import com.tencent.smtt.sdk.WebView;
public final class sb extends c {
private final int height = 120;
private final int width = 120;
protected final int j(int i, Object... objArr) {
switch (i) {
case 0:
return 120;
case 1:
return 120;
case 2:
Canvas canvas = (Canvas) objArr[0];
Looper looper = (Looper) objArr[1];
c.d(looper);
c.c(looper);
Paint g = c.g(looper);
g.setFlags(385);
g.setStyle(Style.FILL);
Paint g2 = c.g(looper);
g2.setFlags(385);
g2.setStyle(Style.STROKE);
g.setColor(WebView.NIGHT_MODE_COLOR);
g2.setStrokeWidth(1.0f);
g2.setStrokeCap(Cap.BUTT);
g2.setStrokeJoin(Join.MITER);
g2.setStrokeMiter(4.0f);
g2.setPathEffect(null);
c.a(g2, looper).setStrokeWidth(1.0f);
canvas.save();
g2 = c.a(g, looper);
g2.setColor(-921103);
Path h = c.h(looper);
h.moveTo(0.0f, 0.0f);
h.lineTo(120.0f, 0.0f);
h.lineTo(120.0f, 120.0f);
h.lineTo(0.0f, 120.0f);
h.lineTo(0.0f, 0.0f);
h.close();
canvas.drawPath(h, g2);
canvas.restore();
canvas.save();
Paint a = c.a(g, looper);
a.setColor(-3552823);
Path h2 = c.h(looper);
h2.moveTo(50.865784f, 61.30489f);
h2.cubicTo(54.72159f, 67.43002f, 48.319912f, 70.20336f, 45.64623f, 71.743996f);
h2.cubicTo(34.143787f, 78.28783f, 29.117647f, 80.738686f, 29.117647f, 83.92295f);
h2.lineTo(29.117647f, 88.272575f);
h2.cubicTo(29.117647f, 89.670944f, 30.16357f, 90.882355f, 31.727423f, 90.882355f);
h2.lineTo(88.272575f, 90.882355f);
h2.cubicTo(89.83643f, 90.882355f, 90.882355f, 89.670944f, 90.882355f, 88.272575f);
h2.lineTo(90.882355f, 83.92295f);
h2.cubicTo(90.882355f, 80.738686f, 85.85622f, 78.28783f, 74.35377f, 71.743996f);
h2.cubicTo(71.680084f, 70.20336f, 65.27841f, 67.43002f, 69.13422f, 61.30489f);
h2.cubicTo(72.55844f, 56.21983f, 75.23033f, 54.14847f, 75.223694f, 45.64623f);
h2.cubicTo(75.23033f, 37.574806f, 69.26139f, 29.117647f, 60.434963f, 29.117647f);
h2.cubicTo(50.73861f, 29.117647f, 44.769665f, 37.574806f, 44.776306f, 45.64623f);
h2.cubicTo(44.769665f, 54.14847f, 47.44156f, 56.21983f, 50.865784f, 61.30489f);
h2.close();
WeChatSVGRenderC2Java.setFillType(h2, 2);
canvas.drawPath(h2, a);
canvas.restore();
c.f(looper);
break;
}
return 0;
}
}
|
[
"zhangxhbeta@gmail.com"
] |
zhangxhbeta@gmail.com
|
53d4a5122a43d8c458ce3a0a19db3f9c90d071f9
|
719786b440bda077e4105a1c14a51a2751bca45d
|
/src/main/java/com.javarush.glushko/level05/lesson12/home02/Solution.java
|
1be0532f8cca5cef105ef11ea198ff393c723dfe
|
[] |
no_license
|
dase1243/JavaRush
|
e486e6b135d0ac2ccc615c9b475290fad3bd7f9e
|
48553f8e5c7c34b9a568c99ae6b14c1358d5858e
|
refs/heads/master
| 2021-10-11T11:29:35.327809
| 2019-01-25T09:09:30
| 2019-01-25T09:09:30
| 74,195,817
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,062
|
java
|
package com.javarush.glushko.level05.lesson12.home02;
/* Man and Woman
1. Внутри класса Solution создай public static классы Man и Woman.
2. У классов должны быть поля: name(String), age(int), address(String).
3. Создай конструкторы, в которые передаются все возможные параметры.
4. Создай по два объекта каждого класса со всеми данными используя конструктор.
5. Объекты выведи на экран в таком формате [name + " " + age + " " + address].
*/
public class Solution {
public static void main(String[] args) {
// Создай по два объекта каждого класса тут
Man man1 = new Man("Igor", 17, "Vidradnyi prospect");
Man man2 = new Man("Vlad", 40, "Yaya");
Woman woman1 = new Woman("Diana", 150, "Nah");
Woman woman2 = new Woman("Maria", 9, "detsad");
// Выведи их на экран тут
System.out.println(man1);
System.out.println(man2);
System.out.println(woman1);
System.out.println(woman2);
}
// Напиши тут свои классы
public static class Man {
public String name;
public int age;
public String address;
public Man(String name, int age, String address) {
this.name = name;
this.age = age;
this.address = address;
}
public String toString() {
return name.toString() + age + address.toString();
}
}
public static class Woman {
public String name;
public int age;
public String address;
public Woman(String name, int age, String address) {
this.name = name;
this.age = age;
this.address = address;
}
public String toString() {
return name.toString() + age + address.toString();
}
}
}
|
[
"dreiglushko@gmail.com"
] |
dreiglushko@gmail.com
|
e4cd249e12e2a4a6c1625b7cc064fa6661b10a02
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project11/src/test/java/org/gradle/test/performance11_4/Test11_356.java
|
5e8489674c00e494cbc4f69385d06e1cbdf0fda3
|
[] |
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.performance11_4;
import static org.junit.Assert.*;
public class Test11_356 {
private final Production11_356 production = new Production11_356("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
89d0229764abad76a96a3c7276c89503c4dd1084
|
f3aec68bc48dc52e76f276fd3b47c3260c01b2a4
|
/core/drugstore-tier/src/main/java/org/hl7/v3/COCTMT230100UVSubject22.java
|
e8f59d894ad78a0c8a00f53d3175569ce4244ada
|
[] |
no_license
|
MarsStirner/core
|
c9a383799a92e485e2395d81a0bc95d51ada5fa5
|
6fbf37af989aa48fabb9c4c2566195aafd2b16ab
|
refs/heads/master
| 2020-12-03T00:39:51.407573
| 2016-04-29T12:28:32
| 2016-04-29T12:28:32
| 96,041,573
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,597
|
java
|
package org.hl7.v3;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for COCT_MT230100UV.Subject22 complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="COCT_MT230100UV.Subject22">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="realmCode" type="{urn:hl7-org:v3}CS" maxOccurs="unbounded" minOccurs="0"/>
* <element name="typeId" type="{urn:hl7-org:v3}II" minOccurs="0"/>
* <element name="templateId" type="{urn:hl7-org:v3}II" maxOccurs="unbounded" minOccurs="0"/>
* <element name="characteristic" type="{urn:hl7-org:v3}COCT_MT230100UV.Characteristic"/>
* </sequence>
* <attribute name="nullFlavor" type="{urn:hl7-org:v3}NullFlavor" />
* <attribute name="typeCode" use="required" type="{urn:hl7-org:v3}ParticipationTargetSubject" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "COCT_MT230100UV.Subject22", propOrder = {
"realmCode",
"typeId",
"templateId",
"characteristic"
})
public class COCTMT230100UVSubject22 {
protected List<CS> realmCode;
protected II typeId;
protected List<II> templateId;
@XmlElement(required = true, nillable = true)
protected COCTMT230100UVCharacteristic characteristic;
@XmlAttribute(name = "nullFlavor")
protected NullFlavor nullFlavor;
@XmlAttribute(name = "typeCode", required = true)
protected ParticipationTargetSubject typeCode;
/**
* Gets the value of the realmCode property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the realmCode property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRealmCode().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CS }
*
*
*/
public List<CS> getRealmCode() {
if (realmCode == null) {
realmCode = new ArrayList<CS>();
}
return this.realmCode;
}
/**
* Gets the value of the typeId property.
*
* @return
* possible object is
* {@link II }
*
*/
public II getTypeId() {
return typeId;
}
/**
* Sets the value of the typeId property.
*
* @param value
* allowed object is
* {@link II }
*
*/
public void setTypeId(II value) {
this.typeId = value;
}
/**
* Gets the value of the templateId property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the templateId property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTemplateId().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link II }
*
*
*/
public List<II> getTemplateId() {
if (templateId == null) {
templateId = new ArrayList<II>();
}
return this.templateId;
}
/**
* Gets the value of the characteristic property.
*
* @return
* possible object is
* {@link COCTMT230100UVCharacteristic }
*
*/
public COCTMT230100UVCharacteristic getCharacteristic() {
return characteristic;
}
/**
* Sets the value of the characteristic property.
*
* @param value
* allowed object is
* {@link COCTMT230100UVCharacteristic }
*
*/
public void setCharacteristic(COCTMT230100UVCharacteristic value) {
this.characteristic = value;
}
/**
* Gets the value of the nullFlavor property.
*
* @return
* possible object is
* {@link NullFlavor }
*
*/
public NullFlavor getNullFlavor() {
return nullFlavor;
}
/**
* Sets the value of the nullFlavor property.
*
* @param value
* allowed object is
* {@link NullFlavor }
*
*/
public void setNullFlavor(NullFlavor value) {
this.nullFlavor = value;
}
/**
* Gets the value of the typeCode property.
*
* @return
* possible object is
* {@link ParticipationTargetSubject }
*
*/
public ParticipationTargetSubject getTypeCode() {
return typeCode;
}
/**
* Sets the value of the typeCode property.
*
* @param value
* allowed object is
* {@link ParticipationTargetSubject }
*
*/
public void setTypeCode(ParticipationTargetSubject value) {
this.typeCode = value;
}
}
|
[
"NosovDE@gmail.com"
] |
NosovDE@gmail.com
|
7a1a081d1968e7705fac5fcd306f89a2925b2238
|
f1a960e0a62e8188a05fb8e50751a11d19133e4a
|
/crux-dev/src/main/java/org/cruxframework/crux/core/client/event/SelectStartHandler.java
|
8beea0707f62f5eb492abd98940b002af66cfceb
|
[] |
no_license
|
CruxFramework/crux
|
4fe5b6dbf9ee02c86ca84339e4489c197b84c0ab
|
b11bdc7c8ef6a70c62aa7460453109d853134b18
|
refs/heads/master
| 2022-12-23T23:31:52.415055
| 2016-08-05T19:10:55
| 2016-08-05T19:10:55
| 33,684,032
| 27
| 13
| null | 2022-12-13T19:14:41
| 2015-04-09T17:59:03
|
Java
|
UTF-8
|
Java
| false
| false
| 891
|
java
|
/*
* Copyright 2011 cruxframework.org.
*
* 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.cruxframework.crux.core.client.event;
import com.google.gwt.event.shared.EventHandler;
/**
*
* @author Thiago da Rosa de Bustamante
*
*/
public interface SelectStartHandler extends EventHandler
{
void onSelectStart(SelectStartEvent event);
}
|
[
"thiago@cruxframework.org"
] |
thiago@cruxframework.org
|
a76ae157f9743add9e27143a520aef0b4ddec7f6
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-hbase/src/main/java/com/aliyuncs/hbase/model/v20190101/DescribeEndpointsResponse.java
|
5c5aba25688599aa4ca7550024a03cffbd3e2cc7
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-openapi-java-sdk
|
a263fa08e261f12d45586d1b3ad8a6609bba0e91
|
e19239808ad2298d32dda77db29a6d809e4f7add
|
refs/heads/master
| 2023-09-03T12:28:09.765286
| 2023-09-01T09:03:00
| 2023-09-01T09:03:00
| 39,555,898
| 1,542
| 1,317
|
NOASSERTION
| 2023-09-14T07:27:05
| 2015-07-23T08:41:13
|
Java
|
UTF-8
|
Java
| false
| false
| 2,904
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.hbase.model.v20190101;
import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.hbase.transform.v20190101.DescribeEndpointsResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class DescribeEndpointsResponse extends AcsResponse {
private String requestId;
private String netType;
private String vpcId;
private String vSwitchId;
private String engine;
private List<ConnAddrInfo> connAddrs;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getNetType() {
return this.netType;
}
public void setNetType(String netType) {
this.netType = netType;
}
public String getVpcId() {
return this.vpcId;
}
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
public String getVSwitchId() {
return this.vSwitchId;
}
public void setVSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
}
public String getEngine() {
return this.engine;
}
public void setEngine(String engine) {
this.engine = engine;
}
public List<ConnAddrInfo> getConnAddrs() {
return this.connAddrs;
}
public void setConnAddrs(List<ConnAddrInfo> connAddrs) {
this.connAddrs = connAddrs;
}
public static class ConnAddrInfo {
private String connType;
private String connAddr;
private String connAddrPort;
private String netType;
public String getConnType() {
return this.connType;
}
public void setConnType(String connType) {
this.connType = connType;
}
public String getConnAddr() {
return this.connAddr;
}
public void setConnAddr(String connAddr) {
this.connAddr = connAddr;
}
public String getConnAddrPort() {
return this.connAddrPort;
}
public void setConnAddrPort(String connAddrPort) {
this.connAddrPort = connAddrPort;
}
public String getNetType() {
return this.netType;
}
public void setNetType(String netType) {
this.netType = netType;
}
}
@Override
public DescribeEndpointsResponse getInstance(UnmarshallerContext context) {
return DescribeEndpointsResponseUnmarshaller.unmarshall(this, context);
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
409f487605673b65dc1ae3628747065d2798bb4c
|
7cab112a472df702c9b616c760b8940d50324550
|
/aionxemu-master/GameServer/data/scripts/system/handlers/usercommands/GiveMissingSkills.java
|
1dda845e96166193faa7249629390e3a5d0ceb5d
|
[] |
no_license
|
luckychenheng/server_demo
|
86d31c939fd895c7576156b643ce89354e102209
|
97bdcb1f6cd614fd360cfed800c479fbdb695cd3
|
refs/heads/master
| 2020-05-15T02:59:07.396818
| 2019-05-09T10:30:47
| 2019-05-09T10:30:47
| 182,059,222
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,829
|
java
|
/**
* This file is part of Aion X Emu <aionxemu.com>
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser Public License as published by
* the Free Software Foundation, either version 3 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 Public License for more details.
*
* You should have received a copy of the GNU Lesser Public License
* along with this software. If not, see <http://www.gnu.org/licenses/>.
*/
package usercommands;
import gameserver.configs.main.CustomConfig;
import gameserver.model.gameobjects.player.Player;
import gameserver.services.SkillLearnService;
import gameserver.utils.PacketSendUtility;
import gameserver.utils.chathandlers.UserCommand;
import gameserver.utils.i18n.CustomMessageId;
import gameserver.utils.i18n.LanguageHandler;
/**
*
*
*/
public class GiveMissingSkills extends UserCommand {
public GiveMissingSkills() {
super("givemissingskills");
}
private int countSkills(Player player) {
int count = 0;
for (int i = 0; i < player.getSkillList().getAllSkills().length; i++) {
if (!player.getSkillList().getAllSkills()[i].isStigma()) {
count++;
}
}
return count;
}
private int countStigmaSkills(Player player) {
int count = 0;
for (int i = 0; i < player.getSkillList().getAllSkills().length; i++) {
if (player.getSkillList().getAllSkills()[i].isStigma()) {
count++;
}
}
return count;
}
@Override
public void executeCommand(Player player, String params) {
if (!CustomConfig.SKILL_AUTOLEARN) {
PacketSendUtility.sendMessage(player, LanguageHandler.translate(CustomMessageId.COMMAND_DISABLED));
return;
}
int bStigmaCount = countStigmaSkills(player);
int bSkillCount = countSkills(player);
SkillLearnService.addMissingSkills(player);
int aStigmaCount = countStigmaSkills(player);
int aSkillCount = countSkills(player);
if (CustomConfig.STIGMA_AUTOLEARN) {
PacketSendUtility.sendMessage(player, LanguageHandler.translate(CustomMessageId.COMMAND_MISSING_SKILLS_STIGMAS_ADDED, aSkillCount - bSkillCount, aStigmaCount - bStigmaCount));
} else {
PacketSendUtility.sendMessage(player, LanguageHandler.translate(CustomMessageId.COMMAND_MISSING_SKILLS_ADDED, aSkillCount - bSkillCount));
}
}
}
|
[
"seemac@seedeMacBook-Pro.local"
] |
seemac@seedeMacBook-Pro.local
|
bc570c7782fe52071b9c1b53cdf2deba48ab3019
|
605b6e800c0449736d7dfe86793b1c07bb0617b6
|
/src/minecraft/net/minecraft/util/Rotations.java
|
dd5424127068a6ceebcc7ea1b5aba3b3e5339ef8
|
[] |
no_license
|
HaxDevsClub/WordStorm
|
20f07737942cbda2cd8e7002c4c971ade0725461
|
79323e0848830016429307e76042844204cbed5f
|
refs/heads/master
| 2020-12-24T10:14:57.662136
| 2016-11-07T17:36:41
| 2016-11-07T17:36:41
| 73,095,787
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,560
|
java
|
package net.minecraft.util;
import net.minecraft.nbt.NBTTagFloat;
import net.minecraft.nbt.NBTTagList;
public class Rotations
{
/** Rotation on the X axis */
protected final float x;
/** Rotation on the Y axis */
protected final float y;
/** Rotation on the Z axis */
protected final float z;
private static final String __OBFID = "CL_00002316";
public Rotations(float x, float y, float z)
{
this.x = x;
this.y = y;
this.z = z;
}
public Rotations(NBTTagList nbt)
{
this.x = nbt.getFloatAt(0);
this.y = nbt.getFloatAt(1);
this.z = nbt.getFloatAt(2);
}
public NBTTagList writeToNBT()
{
NBTTagList var1 = new NBTTagList();
var1.appendTag(new NBTTagFloat(this.x));
var1.appendTag(new NBTTagFloat(this.y));
var1.appendTag(new NBTTagFloat(this.z));
return var1;
}
public boolean equals(Object p_equals_1_)
{
if (!(p_equals_1_ instanceof Rotations))
{
return false;
}
else
{
Rotations var2 = (Rotations)p_equals_1_;
return this.x == var2.x && this.y == var2.y && this.z == var2.z;
}
}
/**
* Gets the X axis rotation
*/
public float getX()
{
return this.x;
}
/**
* Gets the Y axis rotation
*/
public float getY()
{
return this.y;
}
/**
* Gets the Z axis rotation
*/
public float getZ()
{
return this.z;
}
}
|
[
"jaspersmit2801@gmail.com"
] |
jaspersmit2801@gmail.com
|
4661dcee86b0532bbb02224a654932c99d300372
|
d1fbbf51bff682287b2a0d9768f12bd2dab669fe
|
/src/main/java/org/hongxi/sample/webflux/SampleApplication.java
|
bd89dc820789060283381b11d8de400de6ad1d5e
|
[] |
no_license
|
lstarby/webflux-sample
|
bf2bb3eb8a4216df54c1ea64309c16572f49a8f3
|
e045208a1cecb7e7215fc7859ef4605242f7d6bb
|
refs/heads/main
| 2023-06-01T01:49:19.241847
| 2021-07-01T08:39:57
| 2021-07-01T08:39:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 382
|
java
|
package org.hongxi.sample.webflux;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import reactor.core.publisher.Hooks;
@SpringBootApplication
public class SampleApplication {
public static void main(String[] args) {
Hooks.onOperatorDebug();
SpringApplication.run(SampleApplication.class, args);
}
}
|
[
"javahongxi@qq.com"
] |
javahongxi@qq.com
|
a858cc8b980a59c9611df43848e98490e03407ca
|
ca9371238f2f8fbec5f277b86c28472f0238b2fe
|
/src/mx/com/kubo/model/CreditHistoryAttempt.java
|
7926f0ae1419d0cf43574dbb1a69644fadf72163
|
[] |
no_license
|
ocg1/kubo.portal
|
64cb245c8736a1f8ec4010613e14a458a0d94881
|
ab022457d55a72df73455124d65b625b002c8ac2
|
refs/heads/master
| 2021-05-15T17:23:48.952576
| 2017-05-08T17:18:09
| 2017-05-08T17:18:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,695
|
java
|
package mx.com.kubo.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity @Table(name = "gn_credit_history_attempt")
public class CreditHistoryAttempt
implements Serializable
{
private static final long serialVersionUID = 990390006859361639L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column int attempt_id;
@Column int company_id;
@Column String user; //varchar(10)
@Column String password; //varchar(10)
@Column String first_name; //varchar(45)
@Column String middle_name; //varchar(45)
@Column String father_last_name; //varchar(45)
@Column String mother_last_name; //varchar(45)
@Column String mx_rfc; //varchar(13)
@Column String street; //varchar(60)
@Column String mx_manzana; //varchar(5)
@Column String mx_lote; //varchar(5)
@Column String address_number; //varchar(10)
@Column String apt_number; //varchar(10)
@Column String neighborhood_name; //varchar(60)
@Column String town_name; //varchar(60)
@Column String state_name; //varchar(60)
@Column String zip_code; //varchar(10)
@Column String phone; //varchar(45)
@Column String mx_curp; //varchar(18)
@Column String creditcard_four_digits; //varchar(4)
@Column String status_res; //varchar(4)
@Column String info_res; //varchar(250)
@Column String is_check; //datetime
@Column Integer prospectus_id;
@Column Integer mx_lada; //int(5)
@Column Integer creditcard_is_principal;//tinyint(3)
@Column Integer mortgage_is_principal; //tinyint(3)
@Column Integer car_is_principal; //tinyint(3)
@Column Date consultation_date; //datetime
@Column java.sql.Date date_of_birth; //date
@Column String tipo_consulta;
public int getAttempt_id()
{
return attempt_id;
}
public void setAttempt_id(int attempt_id)
{
this.attempt_id = attempt_id;
}
public int getCompany_id() {
return company_id;
}
public void setCompany_id(int company_id) {
this.company_id = company_id;
}
public Integer getProspectus_id() {
return prospectus_id;
}
public void setProspectus_id(Integer prospectus_id) {
this.prospectus_id = prospectus_id;
}
public String getUser() {
return user;
}
public void setUser(String user) {
this.user = user;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getFirst_name() {
return first_name;
}
public void setFirst_name(String first_name) {
this.first_name = first_name;
}
public String getMiddle_name() {
return middle_name;
}
public void setMiddle_name(String middle_name) {
this.middle_name = middle_name;
}
public String getFather_last_name() {
return father_last_name;
}
public void setFather_last_name(String father_last_name) {
this.father_last_name = father_last_name;
}
public String getMother_last_name() {
return mother_last_name;
}
public void setMother_last_name(String mother_last_name) {
this.mother_last_name = mother_last_name;
}
public java.sql.Date getDate_of_birth() {
return date_of_birth;
}
public void setDate_of_birth(java.sql.Date date_of_birth) {
this.date_of_birth = date_of_birth;
}
public String getMx_rfc() {
return mx_rfc;
}
public void setMx_rfc(String mx_rfc) {
this.mx_rfc = mx_rfc;
}
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
public String getMx_manzana() {
return mx_manzana;
}
public void setMx_manzana(String mx_manzana) {
this.mx_manzana = mx_manzana;
}
public String getMx_lote() {
return mx_lote;
}
public void setMx_lote(String mx_lote) {
this.mx_lote = mx_lote;
}
public String getAddress_number() {
return address_number;
}
public void setAddress_number(String address_number) {
this.address_number = address_number;
}
public String getApt_number() {
return apt_number;
}
public void setApt_number(String apt_number) {
this.apt_number = apt_number;
}
public String getNeighborhood_name() {
return neighborhood_name;
}
public void setNeighborhood_name(String neighborhood_name) {
this.neighborhood_name = neighborhood_name;
}
public String getTown_name() {
return town_name;
}
public void setTown_name(String town_name) {
this.town_name = town_name;
}
public String getState_name() {
return state_name;
}
public void setState_name(String state_name) {
this.state_name = state_name;
}
public String getZip_code() {
return zip_code;
}
public void setZip_code(String zip_code) {
this.zip_code = zip_code;
}
public Integer getMx_lada() {
return mx_lada;
}
public void setMx_lada(Integer mx_lada) {
this.mx_lada = mx_lada;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getMx_curp() {
return mx_curp;
}
public void setMx_curp(String mx_curp) {
this.mx_curp = mx_curp;
}
public Integer getCreditcard_is_principal() {
return creditcard_is_principal;
}
public void setCreditcard_is_principal(Integer creditcard_is_principal) {
this.creditcard_is_principal = creditcard_is_principal;
}
public String getCreditcard_four_digits() {
return creditcard_four_digits;
}
public void setCreditcard_four_digits(String creditcard_four_digits) {
this.creditcard_four_digits = creditcard_four_digits;
}
public Integer getMortgage_is_principal() {
return mortgage_is_principal;
}
public void setMortgage_is_principal(Integer mortgage_is_principal) {
this.mortgage_is_principal = mortgage_is_principal;
}
public Integer getCar_is_principal() {
return car_is_principal;
}
public void setCar_is_principal(Integer car_is_principal) {
this.car_is_principal = car_is_principal;
}
public String getStatus_res() {
return status_res;
}
public void setStatus_res(String status_res) {
this.status_res = status_res;
}
public String getInfo_res() {
return info_res;
}
public void setInfo_res(String info_res) {
this.info_res = info_res;
}
public Date getConsultation_date() {
return consultation_date;
}
public void setConsultation_date(Date consultation_date) {
this.consultation_date = consultation_date;
}
public String getIs_check() {
return is_check;
}
public void setIs_check(String is_check) {
this.is_check = is_check;
}
public String getTipo_consulta() {
return tipo_consulta;
}
public void setTipo_consulta(String tipo_consulta) {
this.tipo_consulta = tipo_consulta;
}
}
|
[
"damian.tapia.nava@gmail.com"
] |
damian.tapia.nava@gmail.com
|
4a4ff258b51caf445576e83e25dc17c16d2250ff
|
598d0fa96387dcd1f4809452bf70354027bb9b86
|
/software/webapp/src/test/java/brooklyn/entity/proxy/TrackingAbstractControllerImpl.java
|
e648b108af92f9c1a7fa0ecb1a439a39d2b40b83
|
[
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] |
permissive
|
bmwshop/brooklyn
|
33d6211992e83744d317f1f40eab87e9b88efe30
|
734034f0a91d41bca405cd0d248a3047ea36fb1e
|
refs/heads/master
| 2020-12-29T02:55:22.487235
| 2014-06-23T18:01:00
| 2014-06-23T18:01:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,270
|
java
|
package brooklyn.entity.proxy;
import java.util.Collection;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import brooklyn.entity.driver.MockSshDriver;
import com.google.common.collect.Lists;
public class TrackingAbstractControllerImpl extends AbstractControllerImpl implements TrackingAbstractController {
private static final Logger log = LoggerFactory.getLogger(TrackingAbstractControllerImpl.class);
private final List<Collection<String>> updates = Lists.newCopyOnWriteArrayList();
@Override
public List<Collection<String>> getUpdates() {
return updates;
}
@Override
public void connectSensors() {
super.connectSensors();
setAttribute(SERVICE_UP, true);
}
@Override
protected void reconfigureService() {
log.info("test controller reconfigure, addresses "+serverPoolAddresses);
if ((!serverPoolAddresses.isEmpty() && updates.isEmpty()) || (!updates.isEmpty() && serverPoolAddresses!=updates.get(updates.size()-1))) {
updates.add(serverPoolAddresses);
}
}
@Override
public Class getDriverInterface() {
return MockSshDriver.class;
}
public void reload() {
// no-op
}
}
|
[
"aled.sage@gmail.com"
] |
aled.sage@gmail.com
|
5ca458830ab3e7bb46fc577cdc2246254722d32c
|
96f8d42c474f8dd42ecc6811b6e555363f168d3e
|
/budejie/sources/android/support/v4/app/RemoteInputCompatApi20.java
|
f2524884ba37b1d8fb2d6e12df74e321a5805398
|
[] |
no_license
|
aheadlcx/analyzeApk
|
050b261595cecc85790558a02d79739a789ae3a3
|
25cecc394dde4ed7d4971baf0e9504dcb7fabaca
|
refs/heads/master
| 2020-03-10T10:24:49.773318
| 2018-04-13T09:44:45
| 2018-04-13T09:44:45
| 129,332,351
| 6
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,930
|
java
|
package android.support.v4.app;
import android.app.RemoteInput.Builder;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.RemoteInputCompatBase.RemoteInput;
import android.support.v4.app.RemoteInputCompatBase.RemoteInput.Factory;
class RemoteInputCompatApi20 {
RemoteInputCompatApi20() {
}
static RemoteInput[] toCompat(android.app.RemoteInput[] remoteInputArr, Factory factory) {
if (remoteInputArr == null) {
return null;
}
RemoteInput[] newArray = factory.newArray(remoteInputArr.length);
for (int i = 0; i < remoteInputArr.length; i++) {
android.app.RemoteInput remoteInput = remoteInputArr[i];
newArray[i] = factory.build(remoteInput.getResultKey(), remoteInput.getLabel(), remoteInput.getChoices(), remoteInput.getAllowFreeFormInput(), remoteInput.getExtras());
}
return newArray;
}
static android.app.RemoteInput[] fromCompat(RemoteInput[] remoteInputArr) {
if (remoteInputArr == null) {
return null;
}
android.app.RemoteInput[] remoteInputArr2 = new android.app.RemoteInput[remoteInputArr.length];
for (int i = 0; i < remoteInputArr.length; i++) {
RemoteInput remoteInput = remoteInputArr[i];
remoteInputArr2[i] = new Builder(remoteInput.getResultKey()).setLabel(remoteInput.getLabel()).setChoices(remoteInput.getChoices()).setAllowFreeFormInput(remoteInput.getAllowFreeFormInput()).addExtras(remoteInput.getExtras()).build();
}
return remoteInputArr2;
}
static Bundle getResultsFromIntent(Intent intent) {
return android.app.RemoteInput.getResultsFromIntent(intent);
}
static void addResultsToIntent(RemoteInput[] remoteInputArr, Intent intent, Bundle bundle) {
android.app.RemoteInput.addResultsToIntent(fromCompat(remoteInputArr), intent, bundle);
}
}
|
[
"aheadlcxzhang@gmail.com"
] |
aheadlcxzhang@gmail.com
|
289a9ba09524694f9289c23db2a257d00537ca9c
|
1b4e26f158eb60b53b655cbae4c79376717b37e0
|
/future-jbs/src/main/java/com/study/servlet/create/OutputInfoServlet.java
|
4b8077e90d5ea0f70c85f4e996c66e80030d8c27
|
[] |
no_license
|
guodongwu/future-parent
|
87881564ad0c15773af8549fe9e669125f75362d
|
f42a18296afaea0daab146b519968f7d63ba15bf
|
refs/heads/master
| 2020-03-26T23:24:31.957024
| 2018-11-01T04:22:38
| 2018-11-01T04:22:38
| 145,539,967
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,817
|
java
|
package com.study.servlet.create;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;
/**
* Created by wu on 2018/9/3.
*/
public class OutputInfoServlet extends HttpServlet{
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
resp.setContentType("text/html;charset=utf-8");
PrintWriter out=resp.getWriter();
Enumeration headNames=req.getHeaderNames();
out.println("<html><head><title>INFO PAGE</title>");
out.println(" <link href=\"static/css/bootstrap.min.css\" rel=\"stylesheet\"/>");
out.println("</head><body>");
out.println("<table class=\"table\"><tr><td>消息报头的名字</td><td>消息报头的值</td></tr>");
while (headNames.hasMoreElements()){
String name= (String) headNames.nextElement();
String value=req.getHeader(name);
out.println(String.format("<tr><td>%s</td><td>%s</td></tr>",name,value));
}
out.println("</table>");
out.println("<ul class=\"list-group\">");
out.println(String.format("<li class=\"list-group-item\">客户端IP:%s</li>",req.getRemoteAddr()));
out.println(String.format("<li class=\"list-group-item\">客户端端口:%s</li>",req.getRemotePort()));
out.println(String.format("<li class=\"list-group-item\">服务端IP:%s</li>",req.getLocalAddr()));
out.println(String.format("<li class=\"list-group-item\">服务端端口:%s</li>",req.getLocalPort()));
out.println("</ul>");
out.println("</body></html>");
}
}
|
[
"18610639412@163.com"
] |
18610639412@163.com
|
fd356a271a4b5d66470e4cc91b0aeb76beba4ae6
|
447520f40e82a060368a0802a391697bc00be96f
|
/apks/malware/app46/source/com/google/android/gms/internal/ev.java
|
760506c5103504c62c6f3d1966914a7db13b941a
|
[
"Apache-2.0"
] |
permissive
|
iantal/AndroidPermissions
|
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
|
d623b732734243590b5f004d167e542e2e2ae249
|
refs/heads/master
| 2023-07-19T01:29:26.689186
| 2019-09-30T19:01:42
| 2019-09-30T19:01:42
| 107,239,248
| 0
| 0
|
Apache-2.0
| 2023-07-16T07:41:38
| 2017-10-17T08:22:57
| null |
UTF-8
|
Java
| false
| false
| 829
|
java
|
package com.google.android.gms.internal;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
public final class ev
implements SafeParcelable
{
public static final ew CREATOR = new ew();
public String sw;
public int sx;
public int sy;
public boolean sz;
public final int versionCode;
public ev(int paramInt1, int paramInt2, boolean paramBoolean) {}
ev(int paramInt1, String paramString, int paramInt2, int paramInt3, boolean paramBoolean)
{
this.versionCode = paramInt1;
this.sw = paramString;
this.sx = paramInt2;
this.sy = paramInt3;
this.sz = paramBoolean;
}
public int describeContents()
{
return 0;
}
public void writeToParcel(Parcel paramParcel, int paramInt)
{
ew.a(this, paramParcel, paramInt);
}
}
|
[
"antal.micky@yahoo.com"
] |
antal.micky@yahoo.com
|
16a35c3baef2915be05ec0ce6bcac9e6a594f90c
|
d00c01db3663330c1d02e3e8f1bc09c3550e90d0
|
/Samples/Sample/src/com/suresh/mathamatical/AddTwoBinaryNumbers.java
|
15dd67fff5f9acb68de2b463c39dbacb9b840332
|
[] |
no_license
|
manisuresh84/datastructures
|
a2d13df6b8a9a5458730801bd5061b9fa6fd365e
|
b752d8431c8907e38153dcdd58a51cba2c09e7ff
|
refs/heads/master
| 2023-01-05T07:30:14.169637
| 2020-11-01T05:39:05
| 2020-11-01T05:39:05
| 309,031,634
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,105
|
java
|
package com.suresh.mathamatical;
/*
* Add two binary numbers
*
*
* http://www.programcreek.com/2014/05/leetcode-add-binary-java/
*/
public class AddTwoBinaryNumbers {
public static void main(String args[]) {
AddTwoBinaryNumbers s = new AddTwoBinaryNumbers();
String b1 = "11", b2 = "111";
String result = null;
result = s.addTwoBinaryNumbers(b1, b2);
System.out.println(result);
}
// Time :O(m+n)
public String addTwoBinaryNumbers(String b1, String b2) {
if (b1 == null || b1.length() <= 0)
return b2;
if (b2 == null || b2.length() <= 0)
return b1;
StringBuilder sb = new StringBuilder();
int carry = 0, l, r, res;
int i = b1.length() - 1, j = b2.length() - 1;
while (i >= 0 || j >= 0) {
l = (i >= 0) ? b1.charAt(i) - '0' : 0;
r = (j >= 0) ? b2.charAt(j) - '0' : 0;
res = l + r + carry;
if (res == 3) {
sb.append('1');
carry = 1;
} else if (res == 2) {
sb.append('0');
carry = 1;
} else {
sb.append(res);
carry = 0;
}
i--;
j--;
}
if (carry == 1)
sb.append(carry);
return sb.reverse().toString();
}
}
|
[
"sbsaibairav@gmail.com"
] |
sbsaibairav@gmail.com
|
f98eac9e6557fe113c0436d25f6161428eac8b6d
|
73c5f5a5545036967df0d5ddf2cbfaa97fbe49ed
|
/src/src/com/rapidminer/operator/performance/AttributeCounter.java
|
d57c70d386f970c3ed915301366b6f7b0efee13a
|
[] |
no_license
|
hejiming/rapiddataminer
|
74b103cb4523ccba47150045c165dc384cf7d38f
|
177e15fa67dee28b311f6d9176bbfeedae6672e2
|
refs/heads/master
| 2021-01-10T11:35:48.036839
| 2015-12-31T12:29:43
| 2015-12-31T12:29:43
| 48,233,639
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,300
|
java
|
/*
* RapidMiner
*
* Copyright (C) 2001-2008 by Rapid-I and the contributors
*
* Complete list of developers available at our web site:
*
* http://rapid-i.com
*
* This program 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.
*
* 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see http://www.gnu.org/licenses/.
*/
package com.rapidminer.operator.performance;
import java.util.List;
import com.rapidminer.example.ExampleSet;
import com.rapidminer.operator.IOObject;
import com.rapidminer.operator.InputDescription;
import com.rapidminer.operator.MissingIOObjectException;
import com.rapidminer.operator.Operator;
import com.rapidminer.operator.OperatorDescription;
import com.rapidminer.operator.OperatorException;
import com.rapidminer.operator.Value;
import com.rapidminer.parameter.ParameterType;
import com.rapidminer.parameter.ParameterTypeCategory;
/**
* Returns a performance vector just counting the number of attributes currently
* used for the given example set.
*
* @author Ingo Mierswa
* @version $Id: AttributeCounter.java,v 1.5 2008/05/09 19:22:43 ingomierswa Exp $
*/
public class AttributeCounter extends Operator {
/** The parameter name for "Indicates if the fitness should for maximal or minimal number of features." */
public static final String PARAMETER_OPTIMIZATION_DIRECTION = "optimization_direction";
private double lastCount = Double.NaN;
public AttributeCounter(OperatorDescription description) {
super(description);
addValue(new Value("attributes", "The currently selected number of attributes.") {
public double getValue() {
return lastCount;
}
});
}
/**
* Creates a new performance vector if the given one is null. Adds a MDL
* criterion. If the criterion was already part of the performance vector
* before it will be overwritten.
*/
private PerformanceVector count(ExampleSet exampleSet, PerformanceVector performanceCriteria) throws OperatorException {
if (performanceCriteria == null)
performanceCriteria = new PerformanceVector();
MDLCriterion mdlCriterion = new MDLCriterion(getParameterAsInt(PARAMETER_OPTIMIZATION_DIRECTION));
mdlCriterion.startCounting(exampleSet, true);
this.lastCount = mdlCriterion.getAverage();
performanceCriteria.addCriterion(mdlCriterion);
return performanceCriteria;
}
public IOObject[] apply() throws OperatorException {
ExampleSet exampleSet = getInput(ExampleSet.class);
PerformanceVector inputPerformance = null;
try {
inputPerformance = getInput(PerformanceVector.class);
} catch (MissingIOObjectException e) {
// tries to use input performance if available
// no problem if none is given --> create new
}
PerformanceVector performance = count(exampleSet, inputPerformance);
return new IOObject[] { performance };
}
/** Shows a parameter keep_example_set with default value "false". */
public InputDescription getInputDescription(Class cls) {
if (ExampleSet.class.isAssignableFrom(cls)) {
return new InputDescription(cls, false, true);
} else {
return super.getInputDescription(cls);
}
}
public Class[] getInputClasses() {
return new Class[] { ExampleSet.class };
}
public Class[] getOutputClasses() {
return new Class[] { PerformanceVector.class };
}
public List<ParameterType> getParameterTypes() {
List<ParameterType> types = super.getParameterTypes();
types.add(new ParameterTypeCategory(PARAMETER_OPTIMIZATION_DIRECTION, "Indicates if the fitness should for maximal or minimal number of features.", MDLCriterion.DIRECTIONS, MDLCriterion.MINIMIZATION));
return types;
}
}
|
[
"dao.xiang.cun@163.com"
] |
dao.xiang.cun@163.com
|
4b4930db909d2764c5c853cc052f7c1161bcd972
|
b79d189fc142f49adc1c34dd9a72bb82926a5a87
|
/SysVentasJSTL/src/main/java/pe/com/syscenterlife/dao/compra/ProveedorDaoImpl.java
|
dc9313ef2e6274a41c8013c0277f926bb74e2b50
|
[] |
no_license
|
davidmp/ProyectJavaArquitecturas
|
c749fba1bf184167f328d60a2638f2123d805212
|
8c780af50c9930973f870e290674c0cfac110790
|
refs/heads/master
| 2020-03-26T21:55:08.801988
| 2018-11-21T17:12:08
| 2018-11-21T17:12:08
| 145,417,711
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,438
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pe.com.syscenterlife.dao.compra;
import java.io.Serializable;
import java.util.List;
import org.springframework.stereotype.Repository;
import pe.com.syscenterlife.SysDataAccess;
import pe.com.syscenterlife.modelo.CompProveedores;
/**
*
* @author LAB_SOFTWARE-DTI
*/
@Repository
public class ProveedorDaoImpl extends SysDataAccess<Integer, CompProveedores> implements ProveedorDaoI{
@SuppressWarnings("unchecked")
@Override
public List<CompProveedores> listarEntidad(){return getListAll();}
@Override
public List<CompProveedores> listarEntidadDato(String dato){
return (List<CompProveedores>)sessionFactory.getCurrentSession()
.createQuery("SELECT px FROM CompProveedores px WHERE CONCAT(px.ruc,' ', px.razonsocial) LIKE ?1")
.setParameter(1, "%"+dato+"%").list();
}
@Override
public CompProveedores buscarEntidadId(int id){return getById(id);}
@Override
public void guardarEntidad(CompProveedores proveedores){savev(proveedores);}
@Override
public void eliminarEntidad(int id){delete(id);}
@Override
public void modificarEntidad(CompProveedores proveedores){update(proveedores);}
}
|
[
"mamanipari@gmail.com"
] |
mamanipari@gmail.com
|
5dc0681f363e5052468cd6ccd4774c207e71edca
|
1c2fc95d66ea34fdcb4f2352c8d2d362b3b5b367
|
/Test/lang/lang/WeakReferenceTest.java
|
31b628d6db532edda88a6ec823b43efdb52bbbd1
|
[] |
no_license
|
lryxxh/Study
|
2473647837535055af9cf3f6c048a81cc09be2bb
|
47c556afeff8223aba3e324407fe6af97071884a
|
refs/heads/master
| 2020-12-02T12:46:27.455563
| 2017-07-08T03:07:22
| 2017-07-08T03:07:22
| 96,589,823
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,484
|
java
|
package lang;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
public class WeakReferenceTest {
/**
* @param args
*/
public static void main(String[] args) {
ArrayList<data> list = new ArrayList();
for(int i =0;i<5440000;i++){
data d = new data();
d.setX(i);
d.setY(i);
d.setTime(Calendar.getInstance().getTimeInMillis());
list.add(d);
}
ArrayList temp = new ArrayList();
WeakReference<ArrayList> reference = new WeakReference<ArrayList>(temp);
for (int j=0;j<500;j++) {
list.get(0).setTime(1234567890l*j);
long total = Runtime.getRuntime().totalMemory();
long free = Runtime.getRuntime().freeMemory();
// System.err.println("total=" + total +" " + (float)(total-free) * 100/total+"%" +" "+j);
System.out.println("total=" + total/1024/1024 +"m " + (float)(total-free) * 100/total+"%" +" "+j);
// temp.clear();
// temp = null;
ArrayList tt = reference.get();
if(tt==null) {
tt = new ArrayList();
tt.addAll((Collection) list.clone());
System.out.println("-----------------------------------");
} else {
tt = (ArrayList) list.clone();
}
System.out.println(tt.size()+" ");
try {
Thread.sleep(50);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
// for (int j=0;j<500;j++) {
// list.get(0).setTime(1234567890l*j);
// long total = Runtime.getRuntime().totalMemory();
// long free = Runtime.getRuntime().freeMemory();
//// System.err.println("total=" + total +" " + (float)(total-free) * 100/total+"%" +" "+j);
// System.out.println("total=" + total/1024/1024 +"m " + (float)(total-free) * 100/total+"%" +" "+j);
//// temp.clear();
//// temp = null;
// temp.clear();
// temp.addAll((Collection) list.clone());
// System.out.println(temp.size()+" ");
// try {
// Thread.sleep(50);
// } catch (InterruptedException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }
// }
}
}
class data{
int x ;
int y;
long time ;
public data() {
}
public data(int x,int y, long time) {
this.x = x;
this.y = y;
this.time = time;
}
public void setX(int x) {
this.x = x;
}
public int getX() {
return x;
}
public void setY(int y) {
this.y = y;
}
public int getY() {
return y;
}
public void setTime(long time) {
this.time = time;
}
public long getTime() {
return time;
}
}
|
[
"lryxxh@163.com"
] |
lryxxh@163.com
|
12c7027ebce2f7d874458819bd3f232b5da1f47d
|
9dae38286b0d430a2c33eab688926a43c8661c3a
|
/src/main/java/javassist/compiler/ast/ASTree.java
|
af789669f0e8e5757cb8c93be31ea2ad7e38fb1d
|
[] |
no_license
|
SkidJava/Orbit-1.12.2
|
a4cd3cb11f5a245168c20ae211bbd156668485e5
|
41d445d1f5ba99b826ee3b57552539e0caaf9a37
|
refs/heads/master
| 2022-04-25T21:12:53.403324
| 2020-04-28T17:37:16
| 2020-04-28T17:37:16
| 258,465,036
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,982
|
java
|
/*
* Javassist, a Java-bytecode translator toolkit.
* Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. Alternatively, the contents of this file may be used under
* the terms of the GNU Lesser General Public License Version 2.1 or later,
* or the Apache License Version 2.0.
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*/
package javassist.compiler.ast;
import javassist.compiler.CompileError;
import java.io.Serializable;
/**
* Abstract Syntax Tree. An ASTree object represents a node of
* a binary tree. If the node is a leaf node, both <code>getLeft()</code>
* and <code>getRight()</code> returns null.
*/
public abstract class ASTree implements Serializable
{
public ASTree getLeft()
{
return null;
}
public ASTree getRight()
{
return null;
}
public void setLeft(ASTree _left) {}
public void setRight(ASTree _right) {}
/**
* Is a method for the visitor pattern. It calls
* <code>atXXX()</code> on the given visitor, where
* <code>XXX</code> is the class name of the node object.
*/
public abstract void accept(Visitor v) throws CompileError;
public String toString()
{
StringBuffer sbuf = new StringBuffer();
sbuf.append('<');
sbuf.append(getTag());
sbuf.append('>');
return sbuf.toString();
}
/**
* Returns the type of this node. This method is used by
* <code>toString()</code>.
*/
protected String getTag()
{
String name = getClass().getName();
return name.substring(name.lastIndexOf('.') + 1);
}
}
|
[
"skidjava@gmail.com"
] |
skidjava@gmail.com
|
6de3bec5508a1cf70da8fe6ea0f1a3ee7236b987
|
9da2a3149b5668c02841191640b8c60e2597a8cf
|
/oms/src/main/java/com/cn/thinkx/oms/module/margin/mapper/MerchantCashManageMapper.java
|
1d33091cc555ce04625ade0a47454dd0a286ada5
|
[] |
no_license
|
wang-shun/wecard-maindir
|
e1ff253978d37a54ad2dcc68c7e720678dccc439
|
438070cfb10f8a466d016858ea62c340cf4b2a46
|
refs/heads/master
| 2022-07-17T07:37:11.638365
| 2019-05-04T07:48:05
| 2019-05-04T07:48:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 689
|
java
|
package com.cn.thinkx.oms.module.margin.mapper;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.cn.thinkx.oms.module.margin.model.MerchantCashManage;
@Repository("merchantCashManageMapper")
public interface MerchantCashManageMapper {
public MerchantCashManage getMchntCashManagetById(String id);
public int insertMchntCashManaget(MerchantCashManage entity);
public int updateMchntCashManage(MerchantCashManage entity);
public List<MerchantCashManage> getMerchantCashManageList(MerchantCashManage entity);
public int deleteMerchantCashManage(String id);
public MerchantCashManage getMerchantCashManageByMchntId(String mchntId);
}
|
[
"zhu_qiuyou@ebeijia.com"
] |
zhu_qiuyou@ebeijia.com
|
d039e354809b0e3942ad6c58dc5ab68fe8a4145d
|
4f0b2c117555bb83eb062a063b8567d71826e480
|
/src/main/java/com/thoughtworks/capability/gtb/Practice2.java
|
ccfc707b5e13d9c2e6abc7bbdcbf47a883442303
|
[] |
no_license
|
slsefe/B-java8-date-time-api-homework
|
b6915c601c55295e7bdf447dbb7e962d8c401473
|
b0e191c6f1ce23e08b66b6d6fdd36608b317293c
|
refs/heads/master
| 2022-11-09T16:26:37.543099
| 2020-06-09T07:31:04
| 2020-06-09T07:31:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 300
|
java
|
package com.thoughtworks.capability.gtb;
import java.time.LocalDate;
/**
* 对任意日期获取下一个工作日, 不考虑节假日
*
* @author itutry
* @create 2020-05-15_17:20
*/
public class Practice2 {
public static LocalDate getNextWorkDate(LocalDate date) {
return null;
}
}
|
[
"zhaozhang@thoughtworks.com"
] |
zhaozhang@thoughtworks.com
|
11e6114ff97675a7011061eca6dfaf282d2f6c41
|
b4e4ab3fdaf818b8a48fe945391ae1be74b4008f
|
/source/utils/utils-serialize/src/main/java/com/jd/blockchain/utils/serialize/json/JSONStringDeserializer.java
|
671b61c1d11767ae263c400622dfec515111df07
|
[
"Apache-2.0"
] |
permissive
|
Spark3122/jdchain
|
78ef86ffdec066a1514c3152b35a42955fa2866d
|
3378c0321b2fcffa5b91eb9739001784751742c5
|
refs/heads/master
| 2020-07-27T20:27:35.258501
| 2019-09-04T17:51:15
| 2019-09-04T17:51:15
| 209,207,377
| 1
| 0
|
Apache-2.0
| 2019-09-18T03:17:36
| 2019-09-18T03:17:36
| null |
UTF-8
|
Java
| false
| false
| 777
|
java
|
package com.jd.blockchain.utils.serialize.json;
import java.lang.reflect.Type;
import com.alibaba.fastjson.parser.DefaultJSONParser;
import com.alibaba.fastjson.parser.JSONToken;
import com.alibaba.fastjson.parser.deserializer.ObjectDeserializer;
public class JSONStringDeserializer implements ObjectDeserializer{
@SuppressWarnings("unchecked")
@Override
public <T> T deserialze(DefaultJSONParser parser, Type type, Object fieldName) {
if (type instanceof Class && JSONString.class.isAssignableFrom((Class<?>) type)) {
String jsonString = parser.parseObject(String.class);
return (T) new JSONString(jsonString);
}
return (T) parser.parse(fieldName);
}
@Override
public int getFastMatchToken() {
return JSONToken.LBRACE;
}
}
|
[
"huanghaiquan@jd.com"
] |
huanghaiquan@jd.com
|
e467ad3cd6a6a10dedff7999852991b61e3b7e81
|
f08256664e46e5ac1466f5c67dadce9e19b4e173
|
/sources/com/bamtech/sdk4/account/AccountPluginExtra.java
|
f6b584ae0e05dec07850384ddb19848799b36298
|
[] |
no_license
|
IOIIIO/DisneyPlusSource
|
5f981420df36bfbc3313756ffc7872d84246488d
|
658947960bd71c0582324f045a400ae6c3147cc3
|
refs/heads/master
| 2020-09-30T22:33:43.011489
| 2019-12-11T22:27:58
| 2019-12-11T22:27:58
| 227,382,471
| 6
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,151
|
java
|
package com.bamtech.sdk4.account;
import com.bamtech.core.networking.converters.Converter;
import com.bamtech.sdk4.plugin.PluginExtra;
import kotlin.Metadata;
@Metadata(mo31005bv = {1, 0, 3}, mo31006d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001B\u000f\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0004R\u0016\u0010\u0002\u001a\u0004\u0018\u00010\u0003X\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, mo31007d2 = {"Lcom/bamtech/sdk4/account/AccountPluginExtra;", "Lcom/bamtech/sdk4/plugin/PluginExtra;", "converter", "Lcom/bamtech/core/networking/converters/Converter;", "(Lcom/bamtech/core/networking/converters/Converter;)V", "getConverter$plugin_account", "()Lcom/bamtech/core/networking/converters/Converter;", "plugin-account"}, mo31008k = 1, mo31009mv = {1, 1, 15})
/* compiled from: AccountPlugin.kt */
public final class AccountPluginExtra implements PluginExtra {
private final Converter converter;
public final Converter getConverter$plugin_account() {
return this.converter;
}
}
|
[
"101110@vivaldi.net"
] |
101110@vivaldi.net
|
f53f005653ad783b13e874ec8fd61c01a4578953
|
85e5dd19cc0a19078df57755ace4e88ed5586dc9
|
/spi/src/main/java/org/femtoframework/service/rmi/ObjID.java
|
9da79bc0ee7ebd6f6b06cbd8cdc9ab57f43f9c62
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
femtoframework/femto-service
|
badf44d55c68db2a18cfb429d441d62fc380211a
|
5f2cf85349430eec1bda94b85e98bbcdd55ef019
|
refs/heads/master
| 2020-04-24T22:24:22.740252
| 2019-11-23T16:37:22
| 2019-11-23T16:37:22
| 172,310,912
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 639
|
java
|
package org.femtoframework.service.rmi;
import org.femtoframework.io.Streamable;
import java.io.Externalizable;
/**
* 对象标识
*
* @author fengyun
* @version 1.00 2005-8-14 0:40:53
*/
public interface ObjID extends Streamable, Externalizable {
/**
* Returns the hash code for the <code>ObjID</code> (the object number).
*/
int hashCode();
/**
* Two object identifiers are considered equal if they have the
* same contents.
*
* @since JDK1.1
*/
boolean equals(Object obj);
/**
* 字符串信息
*
* @return 字符串信息
*/
String toString();
}
|
[
"shaoxt@gmail.com"
] |
shaoxt@gmail.com
|
5c47f3879b21cf0f0ec23788007239de6982daf9
|
edfb435ee89eec4875d6405e2de7afac3b2bc648
|
/tags/selenium-2.0-beta-1/selenium/test/java/com/thoughtworks/selenium/corebased/TestSetSpeed.java
|
ee211003306e27fb85ccba6a3a1356e1d0e6da0c
|
[
"Apache-2.0"
] |
permissive
|
Escobita/selenium
|
6c1c78fcf0fb71604e7b07a3259517048e584037
|
f4173df37a79ab6dd6ae3f1489ae0cd6cc7db6f1
|
refs/heads/master
| 2021-01-23T21:01:17.948880
| 2012-12-06T22:47:50
| 2012-12-06T22:47:50
| 8,271,631
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 810
|
java
|
package com.thoughtworks.selenium.corebased;
import com.thoughtworks.selenium.InternalSelenseTestNgBase;
import org.testng.annotations.Test;
public class TestSetSpeed extends InternalSelenseTestNgBase {
@Test(dataProvider = "system-properties") public void testSetSpeed() throws Exception {
String lastSpeed = selenium.getSpeed();
// The max value in slider is 1000, but setSpeed command can set higher than this
selenium.setSpeed("1600");
verifyEquals(selenium.getSpeed(), "1600");
selenium.setSpeed("500");
verifyEquals(selenium.getSpeed(), "500");
// Negative value should be treated as 0
selenium.setSpeed("0");
verifyEquals(selenium.getSpeed(), "0");
selenium.setSpeed("-100");
verifyEquals(selenium.getSpeed(), "0");
selenium.setSpeed(lastSpeed);
Thread.sleep(100);
}
}
|
[
"simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9"
] |
simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9
|
09c37c6eaed6b9cb1851883819c79f3b142bc44e
|
d4dafb381a9c5930918db8bedf403944df918884
|
/src/main/java/cn/com/sky/collections/map/TestConcurrentHashMap4Test.java
|
898f62f57589635026ea3fe2e51eb8b5ce941bf3
|
[] |
no_license
|
git-sky/javabasics
|
3f307d33876e17b260740492fcd6c33bdf91bddb
|
25bf3ddbe6c08b77b499450cfdbd75e4eb81b51d
|
refs/heads/master
| 2022-12-25T12:01:04.569153
| 2021-06-20T14:48:55
| 2021-06-20T14:48:55
| 97,925,787
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,656
|
java
|
package cn.com.sky.collections.map;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Map.Entry;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
public class TestConcurrentHashMap4Test {
static ConcurrentHashMap<String, String> map = null;
static List<String> list = null;
static int NUM = 30;
@BeforeClass
public static void setUpBeforeClass() throws Exception {
map = new ConcurrentHashMap<String, String>(2 * 2, 6f, 2);
list = new ArrayList<String>();
for (int i = 0; i < NUM; i++) {
list.add(String.valueOf(i));
}
}
@Test
public void print() {
map.print();
}
@Test
public void add() {// rehash
for (String s : list) {
String key = "k" + s;
String value = "v" + s;
System.out.println("===============================================================================");
System.out.println(key);
map.put(key, value);
print();
}
}
// @Test
// public void rehash() {
// addMap();
// print();
//
// // rehash:k25
// // rehash:k51
//
// }
@Test
public void remove() {
addMap();
print();
// for (String s : list) {
// String key = "k" + s;
// System.out.println("===============================================================================");
// System.out.println(key);
// map.remove(key);
// print();
// }
map.remove("k" + 15);
print();
}
@Test
public void get() {
addMap();
print();
for (String s : list) {
String key = "k" + s;
System.out.println("==============================================");
System.out.println(key);
map.get(key);
}
}
private void addMap() {
for (String s : list) {
String key = "k" + s;
String value = "v" + s;
map.put(key, value);
}
}
@Test
public void entrySet() {
Set<Map.Entry<String, String>> set = map.entrySet();
Iterator<Entry<String, String>> iter = set.iterator();
while (iter.hasNext()) {
Entry<String, String> entry = iter.next();
entry.getKey();
entry.getValue();
}
}
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
}
|
[
"linkme2008@sina.com"
] |
linkme2008@sina.com
|
e7a01cb420f3551d4f25e3ceace285c70f03e6eb
|
f134d1629baac7412603a5449877b415f5153b05
|
/basic/src/main/java/net/happyonroad/credential/WmiCredential.java
|
92b375966be28232599be6273c5df15106bb68fc
|
[] |
no_license
|
Kadvin/spring-service-components
|
ebb381237cfd03e92d1ddcbdef85c64401100227
|
df206c7f7fc720c66b952b873ec3afe40cdf7ff4
|
refs/heads/master
| 2021-01-01T18:34:15.234215
| 2016-02-12T15:03:11
| 2016-02-12T15:03:11
| 27,476,179
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 192
|
java
|
package net.happyonroad.credential;
import net.happyonroad.model.Credential;
/**
* <h1>Wmi Credential</h1>
*
* @author Jay Xiong
*/
public interface WmiCredential extends Credential {
}
|
[
"kadvin@gmail.com"
] |
kadvin@gmail.com
|
7ce3b0d9cb4177b46bed2928e5d31e96c041e918
|
58da62dfc6e145a3c836a6be8ee11e4b69ff1878
|
/src/main/java/com/alipay/api/domain/AlipayUserBenefitCreateModel.java
|
93ef6065eac622c738a703c2009730b84e783bb5
|
[
"Apache-2.0"
] |
permissive
|
zhoujiangzi/alipay-sdk-java-all
|
00ef60ed9501c74d337eb582cdc9606159a49837
|
560d30b6817a590fd9d2c53c3cecac0dca4449b3
|
refs/heads/master
| 2022-12-26T00:27:31.553428
| 2020-09-07T03:39:05
| 2020-09-07T03:39:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,010
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 蚂蚁会员合作权益创建接口
*
* @author auto create
* @since 1.0, 2020-08-17 21:22:07
*/
public class AlipayUserBenefitCreateModel extends AlipayObject {
private static final long serialVersionUID = 2388331796641858938L;
/**
* 权益专区码,在创建权益前应该先向蚂蚁会员平台申请一个合适的专区码。 专区必须存在。
*/
@ApiField("benefit_area_code")
private String benefitAreaCode;
/**
* 权益图标地址
*/
@ApiField("benefit_icon_url")
private String benefitIconUrl;
/**
* 权益的名称
*/
@ApiField("benefit_name")
private String benefitName;
/**
* 是否将权益的名称用作专区的副标题, 若为true,则会使用该权益的名称自动覆盖所属专区的副标题(暂未实现)
*/
@ApiField("benefit_name_as_area_subtitle")
private Boolean benefitNameAsAreaSubtitle;
/**
* 权益详情页面地址
*/
@ApiField("benefit_page_url")
private String benefitPageUrl;
/**
* 权益兑换消耗的积分数
*/
@ApiField("benefit_point")
private Long benefitPoint;
/**
* 权益使用场景索引ID,接入时需要咨询@田豫如何取值
*/
@ApiField("benefit_rec_biz_id")
private String benefitRecBizId;
/**
* 支付宝商家券 ALIPAY_MERCHANT_COUPON
口碑商家券 KOUBEI_MERCHANT_COUPON
花呗分期免息券 HUABEI_FENQI_FREE_INTEREST_COUP
淘系通用券 TAOBAO_COMMON_COUPON
淘系商家券 TAOBAO_MERCHANT_COUPON
国际线上商家券 INTER_ONLINE_MERCHANT_COUPON
国际线下商家券 INTER_OFFLINE_MERCHANT_COUPON
通用商户权益 COMMON_MERCHANT_GOODS
其它 OTHERS, 接入是需要咨询@田豫如何选值
*/
@ApiField("benefit_rec_type")
private String benefitRecType;
/**
* 权益的副标题,用于补充描述权益
*/
@ApiField("benefit_subtitle")
private String benefitSubtitle;
/**
* 支付宝的营销活动id,若不走支付宝活动,则不需要填
*/
@ApiField("camp_id")
private String campId;
/**
* primary,golden,platinum,diamond分别对应大众、黄金、铂金、钻石会员等级。eligible_grade属性用于限制能够兑换当前权益的用户等级,用户必须不低于配置的等级才能进行兑换。如果没有等级要求,则不要填写该字段。
*/
@ApiField("eligible_grade")
private String eligibleGrade;
/**
* 权益展示结束时间,使用Date.getTime()。结束时间必须大于起始时间。
*/
@ApiField("end_time")
private Long endTime;
/**
* 兑换规则以及不满足该规则后给用户的提示文案,规则id和文案用:分隔;可配置多个,多个之间用,分隔。(分隔符皆是英文半角字符)规则id联系蚂蚁会员pd或运营提供
*/
@ApiField("exchange_rule_ids")
private String exchangeRuleIds;
/**
* 该权益对应每个等级会员的兑换折扣。等级和折扣用:分隔,多组折扣规则用:分隔。折扣0~1。分隔符皆为英文半角字符
*/
@ApiField("grade_discount")
private String gradeDiscount;
/**
* 权益展示起始时间, 使用Date.getTime()。开始时间必须大于当前时间,且结束时间需要大于开始时间
*/
@ApiField("start_time")
private Long startTime;
public String getBenefitAreaCode() {
return this.benefitAreaCode;
}
public void setBenefitAreaCode(String benefitAreaCode) {
this.benefitAreaCode = benefitAreaCode;
}
public String getBenefitIconUrl() {
return this.benefitIconUrl;
}
public void setBenefitIconUrl(String benefitIconUrl) {
this.benefitIconUrl = benefitIconUrl;
}
public String getBenefitName() {
return this.benefitName;
}
public void setBenefitName(String benefitName) {
this.benefitName = benefitName;
}
public Boolean getBenefitNameAsAreaSubtitle() {
return this.benefitNameAsAreaSubtitle;
}
public void setBenefitNameAsAreaSubtitle(Boolean benefitNameAsAreaSubtitle) {
this.benefitNameAsAreaSubtitle = benefitNameAsAreaSubtitle;
}
public String getBenefitPageUrl() {
return this.benefitPageUrl;
}
public void setBenefitPageUrl(String benefitPageUrl) {
this.benefitPageUrl = benefitPageUrl;
}
public Long getBenefitPoint() {
return this.benefitPoint;
}
public void setBenefitPoint(Long benefitPoint) {
this.benefitPoint = benefitPoint;
}
public String getBenefitRecBizId() {
return this.benefitRecBizId;
}
public void setBenefitRecBizId(String benefitRecBizId) {
this.benefitRecBizId = benefitRecBizId;
}
public String getBenefitRecType() {
return this.benefitRecType;
}
public void setBenefitRecType(String benefitRecType) {
this.benefitRecType = benefitRecType;
}
public String getBenefitSubtitle() {
return this.benefitSubtitle;
}
public void setBenefitSubtitle(String benefitSubtitle) {
this.benefitSubtitle = benefitSubtitle;
}
public String getCampId() {
return this.campId;
}
public void setCampId(String campId) {
this.campId = campId;
}
public String getEligibleGrade() {
return this.eligibleGrade;
}
public void setEligibleGrade(String eligibleGrade) {
this.eligibleGrade = eligibleGrade;
}
public Long getEndTime() {
return this.endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public String getExchangeRuleIds() {
return this.exchangeRuleIds;
}
public void setExchangeRuleIds(String exchangeRuleIds) {
this.exchangeRuleIds = exchangeRuleIds;
}
public String getGradeDiscount() {
return this.gradeDiscount;
}
public void setGradeDiscount(String gradeDiscount) {
this.gradeDiscount = gradeDiscount;
}
public Long getStartTime() {
return this.startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
eba199a0d37335b9020f5652760e9e0fd7a1d58d
|
adad299298b3a4ddbc0d152093b3e5673a940e52
|
/neohort4ape/src/neohort/universal/output/lib_pdf/document_header.java
|
3216c693fa464beacc9ba2f566f727d888e2cfce
|
[] |
no_license
|
surban1974/neohort
|
a692e49c8e152cea0b155d81c2b2b1b167630ba8
|
0c371590e739defbc25d5befd1d44fcf18d1bcab
|
refs/heads/master
| 2022-07-27T18:57:49.916560
| 2022-01-04T18:00:12
| 2022-01-04T18:00:12
| 5,521,942
| 2
| 1
| null | 2022-06-30T20:10:02
| 2012-08-23T08:33:40
|
Java
|
UTF-8
|
Java
| false
| false
| 2,826
|
java
|
/**
* Creation date: (14/12/2005)
* @author: Svyatoslav Urbanovych surban@bigmir.net svyatoslav.urbanovych@gmail.com
*/
/********************************************************************************
*
* Copyright (C) 2005 Svyatoslav Urbanovych
*
* 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
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*********************************************************************************/
package neohort.universal.output.lib_pdf;
import java.util.Hashtable;
import neohort.log.stubs.iStub;
import neohort.universal.output.iConst;
import neohort.universal.output.lib.bean;
import neohort.universal.output.lib.report_element_base;
import com.itextpdf.text.pdf.PdfPTable;
public class document_header extends element{
private static final long serialVersionUID = 1408043714901888998L;
PdfPTable table;
public document_header() {
super();
}
public void drawCanvas(Hashtable _tagLibrary, Hashtable _beanLibrary) {
initCanvas(_tagLibrary,_beanLibrary);
}
public void executeFirst(Hashtable _tagLibrary, Hashtable _beanLibrary){
}
public void executeLast(Hashtable _tagLibrary, Hashtable _beanLibrary){
try{
bean _sysPdfPageHeader = new bean();
_sysPdfPageHeader.setContent(table);
_sysPdfPageHeader.setName("SYSTEM");
_sysPdfPageHeader.setID(iConst.iHORT_SYSTEM_DocumentHeader);
_beanLibrary.put(_sysPdfPageHeader.getName()+":"+_sysPdfPageHeader.getID(),_sysPdfPageHeader);
if(_tagLibrary.get(getName()+":"+getID())==null)
_tagLibrary.remove(getName()+":"+getID()+"_ids_"+this.motore.hashCode());
else _tagLibrary.remove(getName()+":"+getID());
}catch(Exception e){
setError(e,iStub.log_WARN);
}
}
public void reimposta() {
setName("DOCUMENT_HEADER");
STYLE_ID = "";
}
public void setCanvas(Hashtable _tagLibrary, Hashtable _beanLibrary) {
try{
table = new com.itextpdf.text.pdf.PdfPTable(1);
table.setHorizontalAlignment(50);
table.setWidthPercentage(100);
((java.util.Vector)(((report_element_base)_beanLibrary.get("SYSTEM:"+iConst.iHORT_SYSTEM_Canvas)).getContent())).addElement(table);
}catch(Exception e){
setError(e,iStub.log_ERROR);
}
}
}
|
[
"svyatoslav.urbanovych@gmail.com"
] |
svyatoslav.urbanovych@gmail.com
|
7ab12150a3d78e5596f36274c54e3ac9b8808f32
|
139960e2d7d55e71c15e6a63acb6609e142a2ace
|
/mobile_app1/module228/src/main/java/module228packageJava0/Foo29.java
|
a88a5ddac1f9bd5eadba0dbc93bacd13187ac531
|
[
"Apache-2.0"
] |
permissive
|
uber-common/android-build-eval
|
448bfe141b6911ad8a99268378c75217d431766f
|
7723bfd0b9b1056892cef1fef02314b435b086f2
|
refs/heads/master
| 2023-02-18T22:25:15.121902
| 2023-02-06T19:35:34
| 2023-02-06T19:35:34
| 294,831,672
| 83
| 7
|
Apache-2.0
| 2021-09-24T08:55:30
| 2020-09-11T23:27:37
|
Java
|
UTF-8
|
Java
| false
| false
| 452
|
java
|
package module228packageJava0;
import java.lang.Integer;
public class Foo29 {
Integer int0;
public void foo0() {
new module228packageJava0.Foo28().foo7();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
public void foo6() {
foo5();
}
public void foo7() {
foo6();
}
}
|
[
"oliviern@uber.com"
] |
oliviern@uber.com
|
d9845910082eb700f678e96024df819a3f059f16
|
d2697b2dc2ada2a5db3d3b763f00648be682a3c5
|
/bookexchangeUpdated(1)_source_from_JADX/sources/com/google/android/gms/internal/firebase_auth/zzhq.java
|
950fe49b906fbbb0b5f66d0116ba4fe5177b5008
|
[] |
no_license
|
cseadnan16/Uncomplete-project--Android-
|
3639b51512c23bfe5baf97d0328a4939133bab15
|
3b7036115db7ae1f141678282cc892ed1bc5f56e
|
refs/heads/main
| 2023-03-06T20:25:28.244479
| 2021-02-21T07:35:29
| 2021-02-21T07:35:29
| 340,841,260
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 236
|
java
|
package com.google.android.gms.internal.firebase_auth;
import com.google.android.gms.internal.firebase_auth.zzjn;
/* compiled from: com.google.firebase:firebase-auth@@19.3.0 */
public class zzhq<ContainingType extends zzjn, Type> {
}
|
[
"adnanan.cse2016@gmail.com"
] |
adnanan.cse2016@gmail.com
|
dcd7fd7498ed49fce9eb3cecfd7db72914274498
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/21/21_b09deb6ec91a0f5902e0852c7f2101b58c98a567/MainReference/21_b09deb6ec91a0f5902e0852c7f2101b58c98a567_MainReference_s.java
|
1b3d6c84557acc56167f5d2a9fb938b5c1b2e5ff
|
[] |
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,982
|
java
|
/*
* Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* $Id: MainReference.java,v 1.2 2004/02/27 17:41:26 jeremias Exp $ */
package org.apache.fop.area;
import java.util.List;
import java.util.Iterator;
/**
* The main-reference-area generated by an fo:region-body
* This object holds one or more span-reference-areas (block-areas
* stacked in the block progression direction)
* See fo:region-body definition in the XSL Rec for more information.
*/
public class MainReference extends Area {
private BodyRegion parent;
private List spanAreas = new java.util.ArrayList();
private int width;
private boolean isEmpty = true;
/**
* Constructor
*
* @param parent the body region this reference area is placed in.
*/
public MainReference(BodyRegion parent) {
this.parent = parent;
addTrait(Trait.IS_REFERENCE_AREA, Boolean.TRUE);
}
/**
* Add a span area to this area.
*
* @param spanAll whether to make a single-column span
* @return the created span area.
*/
public Span createSpan(boolean spanAll) {
RegionViewport rv = parent.getRegionViewport();
int ipdWidth = (int) parent.getIPD()
- rv.getBorderAndPaddingWidthStart() - rv.getBorderAndPaddingWidthEnd();
Span newSpan = new Span(((spanAll) ? 1 : getColumnCount()),
getColumnGap(), ipdWidth);
spanAreas.add(newSpan);
return getCurrentSpan();
}
/**
* Get the span areas from this area.
*
* @return the list of span areas
*/
public List getSpans() {
return spanAreas;
}
/**
* Get the span area currently being filled (i.e., the last span created).
* @return the active span.
*/
public Span getCurrentSpan() {
return (Span) spanAreas.get(spanAreas.size() - 1);
}
/**
* Indicates whether any child areas have been added to this reference area.
*
* This is achieved by looping through each span.
* @return true if no child areas have been added yet.
*/
public boolean isEmpty() {
if (isEmpty) {
int areaCount = 0;
if (spanAreas != null) {
for (Iterator spaniter = spanAreas.iterator(); spaniter.hasNext();) {
Span spanArea = (Span) spaniter.next();
for (int i = 0; i < spanArea.getColumnCount(); i++) {
NormalFlow flow = spanArea.getNormalFlow(i);
if (flow != null) {
if (flow.getChildAreas() != null) {
areaCount += flow.getChildAreas().size();
}
}
}
}
}
isEmpty = (areaCount == 0);
}
return isEmpty;
}
/** @return the number of columns */
public int getColumnCount() {
return parent.getColumnCount();
}
/** @return the column gap in millipoints */
public int getColumnGap() {
return parent.getColumnGap();
}
/**
* Get the width of this reference area.
*
* @return the width
*/
public int getWidth() {
return width;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
6193395bddc00f142a4058be5f5c9150ce3d2386
|
d1ea5077c83cb2e93fe69e3d19a2e26efe894a0e
|
/src/main/java/com/rograndec/feijiayun/chain/business/goods/pharmacy/service/IncompatibilityService.java
|
b30f825d9c49f12ac23100677c22340d7c5beab7
|
[] |
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,353
|
java
|
package com.rograndec.feijiayun.chain.business.goods.pharmacy.service;
import com.rograndec.feijiayun.chain.business.goods.pharmacy.vo.IncompatibilityGoodsVO;
import com.rograndec.feijiayun.chain.business.goods.pharmacy.vo.IncompatibilityVO3;
import com.rograndec.feijiayun.chain.business.goods.pharmacy.vo.SaveIncompatibilityVO;
import com.rograndec.feijiayun.chain.business.goods.pharmacy.vo.SelectGoodsVO;
import com.rograndec.feijiayun.chain.common.Page;
import com.rograndec.feijiayun.chain.common.vo.UserVO;
import java.util.List;
/**
* Created by zeshi.sun on 2017/9/7.
*/
public interface IncompatibilityService {
List<IncompatibilityGoodsVO> getIncompatibilityGoodsByGoodsId(UserVO loginUser,String goodsId);
List<SelectGoodsVO> selectGoodsVoPage(int pageNo, int pageSize, String key, Long enterpriseId, Page page,UserVO userVO);
int deleteIncompatibility(Long id,UserVO loginUser) throws Exception;
List<IncompatibilityVO3> incompatibilityVoPage(int pageNo, int pageSize, String key, Long enterpriseId, Page page, Long type, String orderType,UserVO loginUser);
void saveIncompatibility(UserVO loginUser, SaveIncompatibilityVO saveIncompatibilityVO) throws Exception;
void updateIncompatibilitys(UserVO loginUser, SaveIncompatibilityVO saveIncompatibilityVO) throws Exception;
}
|
[
"ruifeng.jia@rograndec.com"
] |
ruifeng.jia@rograndec.com
|
817736890fca1b3c03f16ac43956a4f1138ba1e7
|
c1308d37420a6e1b71376208377bd983ef26b328
|
/src/main/java/cn/ncut/service/finance/refund/impl/RefundService.java
|
5c6ab430079f6dd38a7e9e04976d5a3124e0d84f
|
[] |
no_license
|
ncut-database-lab/dccm
|
ad830af13f1f99b43e4049f9286d6848a071a3cf
|
f8d5e523dee0363a735fe226a1e7d1c599504de5
|
refs/heads/master
| 2018-10-05T20:38:13.478844
| 2018-06-17T13:54:53
| 2018-06-17T13:54:53
| 117,047,610
| 1
| 1
| null | 2018-01-11T03:55:54
| 2018-01-11T03:55:54
| null |
UTF-8
|
Java
| false
| false
| 1,906
|
java
|
package cn.ncut.service.finance.refund.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cn.ncut.dao.DaoSupport;
import cn.ncut.entity.Page;
import cn.ncut.util.PageData;
import cn.ncut.service.finance.refund.RefundManager;
/**
*
*
*<p>Title:退款详情</p>
*<p>Description:对订单状态为已预约或已过期的订单执行退款操作</p>
*<p>Company:ncut</p>
* @author lph
* @date 2017-2-20上午9:54:21
*
*/
@Service("refundService")
public class RefundService implements RefundManager{
@Resource(name = "daoSupport")
private DaoSupport dao;
/**新增
* @param pd
* @throws Exception
*/
public void save(PageData pd)throws Exception{
dao.save("RefundMapper.save", pd);
}
/**删除
* @param pd
* @throws Exception
*/
public void delete(PageData pd)throws Exception{
dao.delete("RefundMapper.delete", pd);
}
/**修改
* @param pd
* @throws Exception
*/
public void edit(PageData pd)throws Exception{
dao.update("RefundMapper.edit", pd);
}
/**列表
* @param page
* @throws Exception
*/
@SuppressWarnings("unchecked")
public List<PageData> list(Page page)throws Exception{
return (List<PageData>)dao.findForList("RefundMapper.datalistPage", page);
}
/**列表(全部)
* @param pd
* @throws Exception
*/
@SuppressWarnings("unchecked")
public List<PageData> listAll(PageData pd)throws Exception{
return (List<PageData>)dao.findForList("RefundMapper.listAll", pd);
}
/**通过id获取数据
* @param pd
* @throws Exception
*/
public PageData findById(PageData pd)throws Exception{
return (PageData)dao.findForObject("RefundMapper.findById", pd);
}
/**批量删除
* @param ArrayDATA_IDS
* @throws Exception
*/
public void deleteAll(String[] ArrayDATA_IDS)throws Exception{
dao.delete("RefundMapper.deleteAll", ArrayDATA_IDS);
}
}
|
[
"690074384@qq.com"
] |
690074384@qq.com
|
c6cdba176ec28441d0d3f0209d1b0b6e755b84d5
|
8195ff2bc040c046c1c8afe91ce8f7a09cf72989
|
/javadsl.java
|
2f8463e2ff77c974fbab7a0d890da7291b8f1bf1
|
[] |
no_license
|
ptrthomas/karate-showcase
|
81169d04bd4d320b3ceea3bf718b9aedf5e878a5
|
1458d78e2f6cfc42ddc8dc1b4cec7b0cef3be4cc
|
refs/heads/main
| 2023-02-17T19:02:42.574220
| 2021-01-14T06:42:10
| 2021-01-14T06:42:10
| 325,565,040
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 625
|
java
|
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS com.intuit.karate:karate-core:0.9.9.RC3
//FILES logback.xml
import com.intuit.karate.*;
import java.util.List;
public class javadsl {
public static void main(String[] args) {
List users = Http.to("https://jsonplaceholder.typicode.com/users")
.get().json().asList();
Match.that(users.get(0)).contains("{ name: 'Leanne Graham' }");
String city = Json.of(users).get("$[0].address.city");
Match.that("Gwenborough").isEqualTo(city);
System.out.println("\n*** second user: " + Json.of(users.get(1)).toString());
}
}
|
[
"peter_thomas@intuit.com"
] |
peter_thomas@intuit.com
|
6c4860f8ac0c4a7cfaf4a205c075ccf0e0b8ede8
|
1e3e043877f9a8d71f0c70dec547737226e7784e
|
/winit-label-parent/winit-label-spring/src/main/java/com/winit/svr/spring/components/config/annotations/LabelConfiguration.java
|
3defe3956fbc9f6522080d6d643fa84fdd761d9a
|
[] |
no_license
|
raisedragon/work
|
d12e285f506e441902db2e4b31a3246ef272df1b
|
15e31c3f4b2b5f2ea30420d8885dfc469aa26914
|
refs/heads/master
| 2021-03-12T23:42:05.450864
| 2015-07-15T03:08:30
| 2015-07-15T03:08:30
| 24,010,744
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,549
|
java
|
package com.winit.svr.spring.components.config.annotations;
import java.sql.Driver;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.sql.DataSource;
import com.winit.svr.IdentityService;
import com.winit.svr.LabelException;
import com.winit.svr.LabelServer;
import com.winit.svr.LabelServerConfiguration;
import com.winit.svr.LabelService;
import com.winit.svr.ManagementService;
import com.winit.svr.PropertyService;
import com.winit.svr.spring.LabelServerFactoryBean;
import com.winit.svr.spring.SpringLabelServerConfiguration;
import com.winit.svr.spring.annotations.ActivitiConfigurer;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.core.task.SyncTaskExecutor;
import org.springframework.core.task.TaskExecutor;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.jdbc.datasource.SimpleDriverDataSource;
import org.springframework.transaction.PlatformTransactionManager;
/**
* {@code @Configuration} class that registers a
* {@link com.winit.svr.LabelServer process engine} which has the
* {@code bean} name {@code labelService}. The result is comparable to
* {@code <activiti:annotation-driven>}.
*
* @author Josh Long
* @see com.winit.svr.spring.annotations.EnableActiviti
*/
@Configuration
public class LabelConfiguration {
@Autowired(required = false)
private List<TaskExecutor> executors;
@Autowired(required = false)
private List<ActivitiConfigurer> activitiConfigurers;
@Autowired(required = false)
private Map<String, DataSource> dataSources;
@Autowired(required = false)
private List<PlatformTransactionManager> platformTransactionManagers;
@Bean
public SpringLabelServerConfiguration springLabelServerConfiguration() {
ActivitiConfigurer configurer = activitiConfigurer(activitiConfigurers);
List<Resource> processDefinitionResources = new ArrayList<Resource>();
configurer.processDefinitionResources(processDefinitionResources);
SpringLabelServerConfiguration engine = new SpringLabelServerConfiguration();
if (processDefinitionResources.size() > 0) {
engine.setDeploymentResources(processDefinitionResources
.toArray(new Resource[processDefinitionResources.size()]));
}
DataSource dataSource = dataSource(configurer, dataSources);
engine.setDataSource(dataSource);
engine.setTransactionManager(platformTransactionManager(dataSource));
engine.setDatabaseSchemaUpdate(LabelServerConfiguration.DB_SCHEMA_UPDATE_TRUE);
configurer.postProcessSpringLabelServerConfiguration(engine);
return engine;
}
@Bean
public LabelServerFactoryBean labelService(SpringLabelServerConfiguration springLabelServerConfiguration) {
LabelServerFactoryBean labelServiceFactoryBean = new LabelServerFactoryBean();
labelServiceFactoryBean.setLabelServerConfiguration(springLabelServerConfiguration);
return labelServiceFactoryBean;
}
@Bean
public ManagementService managementService(LabelServer labelService) {
return labelService.getManagementService();
}
@Bean
public IdentityService identityService(LabelServer labelService) {
return labelService.getIdentityService();
}
@Bean
public LabelService labelService(LabelServer labelService) {
return labelService.getLabelService();
}
@Bean
public PropertyService propertyService(LabelServer labelService) {
return labelService.getPropertyService();
}
/*
* @Bean public static ProcessScopeBeanFactoryPostProcessor processScope() {
* return new ProcessScopeBeanFactoryPostProcessor(); }
*
* @Bean public SharedProcessInstanceFactoryBean
* processInstanceFactoryBean(SharedProcessInstanceHolder
* sharedProcessInstanceHolder) { return new
* SharedProcessInstanceFactoryBean(sharedProcessInstanceHolder); }
*
* @Bean public SharedProcessInstanceHolder processScopeContextHolder() {
* return new SharedProcessInstanceHolder(); }
*/
protected PlatformTransactionManager platformTransactionManager(final DataSource dataSource) {
return first(this.platformTransactionManagers,
new ObjectFactory<PlatformTransactionManager>() {
@Override
public PlatformTransactionManager getObject() throws BeansException {
return new DataSourceTransactionManager(dataSource);
}
});
}
protected ActivitiConfigurer activitiConfigurer(final List<ActivitiConfigurer> activitiConfigurers) {
return new ActivitiConfigurer() {
@Override
public void processDefinitionResources(List<Resource> resourceList) {
List<Resource> resources = new ArrayList<Resource>();
// lets first see if any exist in the default place:
Resource defaultClassPathResourceMatcher = new ClassPathResource("classpath:/processes/**bpmn20.xml");
if (defaultClassPathResourceMatcher.exists()) {
resources.add(defaultClassPathResourceMatcher);
}
if (activitiConfigurers != null && activitiConfigurers.size() > 0) {
for (ActivitiConfigurer ac : activitiConfigurers) {
ac.processDefinitionResources(resources);
}
}
resourceList.addAll(resources);
}
@Override
public void postProcessSpringLabelServerConfiguration(SpringLabelServerConfiguration springLabelServerConfiguration) {
if (activitiConfigurers != null) {
for (ActivitiConfigurer configurer : activitiConfigurers) {
configurer.postProcessSpringLabelServerConfiguration(springLabelServerConfiguration);
}
}
}
@Override
public DataSource dataSource() {
return null;
}
};
}
/**
* Sifts through beans available and returns the right one based on some common heuristics
*/
@SuppressWarnings("unchecked")
private DataSource dataSource(ActivitiConfigurer activitiConfigurer, Map<String, DataSource> dataSourceMap) {
DataSource ds = null;
if (activitiConfigurer != null) {
DataSource dataSource = activitiConfigurer.dataSource();
if (null != dataSource) {
ds = dataSource;
}
}
if (dataSourceMap != null) {
if (dataSourceMap.size() > 0) {
for (DataSource d : dataSourceMap.values()) {
ds = d;
}
}
String defaultName = "activitiDataSource";
if (dataSourceMap.containsKey(defaultName)) {
ds = dataSourceMap.get(defaultName);
}
}
// If no datasource is found at this point, we create a simple in-memory H2
if (ds == null) {
try {
SimpleDriverDataSource simpleDriverDataSource = new SimpleDriverDataSource();
simpleDriverDataSource.setDriverClass((Class<? extends Driver>) Class.forName("org.h2.Driver"));
simpleDriverDataSource.setUrl("jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000");
simpleDriverDataSource.setUsername("sa");
simpleDriverDataSource.setPassword("");
ds = simpleDriverDataSource;
}
catch (ClassNotFoundException e) {
throw new LabelException("No dataSource bean was found. Tried to create default H2 in memory database, "
+ "but couldn't find the driver on the classpath");
}
}
return ds;
}
private static <T> T first(List<T> tList, ObjectFactory<T> tObjectFactory) {
T rt;
if (tList != null && tList.size() > 0) {
rt = tList.iterator().next();
} else {
rt = tObjectFactory.getObject();
}
return rt;
}
}
|
[
"wang2009long@126.com"
] |
wang2009long@126.com
|
35007673b3102eb04aa3344c59876ad7c1851b2c
|
c7bdefcaa4b2c7d1a857bfd5253c556df0159cbc
|
/SLOTGAMES/src/test/java/stepDefinition_FrenzyFruits/FrenzyFruits_Balance_Deduction_AccordingToBetType1_3.java
|
ea2eda9793f95365837c25f4bcfa5c0418ab52e6
|
[] |
no_license
|
pavanysecit/SLOTGAMES_MOBILES
|
62a97bded1f4d0df0f50fc2176e473ce3dac267b
|
80bb25d81feda93b3f9137080bd2f0922e882da6
|
refs/heads/master
| 2021-02-15T04:56:59.388043
| 2021-01-07T09:36:44
| 2021-01-07T09:36:44
| 244,863,982
| 0
| 0
| null | 2020-10-13T20:03:05
| 2020-03-04T09:52:42
|
Java
|
UTF-8
|
Java
| false
| false
| 3,818
|
java
|
package stepDefinition_FrenzyFruits;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileElement;
public class FrenzyFruits_Balance_Deduction_AccordingToBetType1_3 {
AppiumDriver<MobileElement> driver;
public FrenzyFruits_Balance_Deduction_AccordingToBetType1_3() throws InterruptedException {
this.driver = FrenzyFruits_URL_Login.getDriver();
//this.driver = FrenzyFruits_URL_TryNow.getDriver();
}
@Given("^Chrome browser, valid URL, valid login details, Frenzy Fruits slot game, bet type as (\\d+)\\.(\\d+), bet value as ONE, balance, spin button and win amount$")
public void chrome_browser_valid_URL_valid_login_details_Frenzy_Fruits_slot_game_bet_type_as_bet_value_as_ONE_balance_spin_button_and_win_amount(int arg1, int arg2) throws Throwable {
WebDriverWait wait = new WebDriverWait(driver, 80);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("hud_Hud_txtBalance1")));
}
@When("^Open the Frenzy Fruits slot game by entering the valid URL in browser, enter the valid login details, select the bet type as (\\d+)\\.(\\d+), select the bet value as ONE, click on spin button, check the win amount and check the balance$")
public void open_the_Frenzy_Fruits_slot_game_by_entering_the_valid_URL_in_browser_enter_the_valid_login_details_select_the_bet_type_as_select_the_bet_value_as_ONE_click_on_spin_button_check_the_win_amount_and_check_the_balance(int arg1, int arg2) throws Throwable {
//Storing the value before spin
String preSpin = driver.findElement(By.id("hud_Hud_txtBalance1")).getText();
String str = preSpin.replaceAll(",", "");
System.out.println("Current balance of the account Before spin: " +str);
//Selecting the credit as 0.02 from the drop down
driver.findElement(By.id("hud_txtCredit")).click();
Thread.sleep(2000);
driver.findElement(By.id("hud_CreditPopup10.02")).click();
Thread.sleep(2000);
String actual = driver.findElement(By.id("hud_txtCredit")).getText();
System.out.println("Selected credit value is : " +actual);
String expected = "0.02";
Assert.assertEquals(actual, expected);
//Selecting the bet amount as 1 from the drop down
driver.findElement(By.id("hud_txtBetAmount")).click();
Thread.sleep(2000);
driver.findElement(By.id("hud_BetPopup31")).click();
Thread.sleep(2000);
String actual1 = driver.findElement(By.id("hud_txtBetAmount")).getText();
String expected1 = "1";
System.out.println("Selected bet value is : " +actual1);
Assert.assertEquals(actual1, expected1);
//Clicking on Spin button
driver.findElement(By.id("hud_btnSpin")).click();
Thread.sleep(5000);
//Storing the value after spin
String postSpin = driver.findElement(By.id("hud_Hud_txtBalance1")).getText();
String str1 = postSpin.replaceAll(",", "");
System.out.println("Current balance of the account After spin: " +str1);
//Deducting bet value from the preSpin and formating string to double
double fValue = Double.parseDouble(str) - Double.parseDouble(actual1);
String dbi = String.format("%.2f", fValue);
System.out.println("Final balance after deducting bet amount from the balance : "+dbi);
Assert.assertEquals(dbi,str1);
}
@Then("^Current Balance should get deducted by ONE as bet type is selected as (\\d+)\\.(\\d+) and bet value as ONE in Frenzy Fruits game$")
public void current_Balance_should_get_deducted_by_ONE_as_bet_type_is_selected_as_and_bet_value_as_ONE_in_Frenzy_Fruits_game(int arg1, int arg2) throws Throwable {
Thread.sleep(2000);
driver.quit();
}
}
|
[
"pavan.kumar@ysecit.com"
] |
pavan.kumar@ysecit.com
|
5561ff653efbf8f4c54df564413cb11c6c15db47
|
875d88ee9cf7b40c9712178d1ee48f0080fa0f8a
|
/geronimo-jaxrs_2.0_spec/src/main/java/javax/ws/rs/core/FeatureContext.java
|
4900bed6c96782e5311d36dac2d9fbfb20b39f37
|
[
"Apache-2.0",
"W3C",
"W3C-19980720"
] |
permissive
|
jgallimore/geronimo-specs
|
b152164488692a7e824c73a9ba53e6fb72c6a7a3
|
09c09bcfc1050d60dcb4656029e957837f851857
|
refs/heads/trunk
| 2022-12-15T14:02:09.338370
| 2020-09-14T18:21:46
| 2020-09-14T18:21:46
| 284,994,475
| 0
| 1
|
Apache-2.0
| 2020-09-14T18:21:47
| 2020-08-04T13:51:47
|
Java
|
UTF-8
|
Java
| false
| false
| 794
|
java
|
/*
* #%L
* Apache Geronimo JAX-RS Spec 2.0
* %%
* Copyright (C) 2003 - 2014 The Apache Software Foundation
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package javax.ws.rs.core;
public interface FeatureContext extends Configurable<FeatureContext> {
}
|
[
"rmannibucau@apache.org"
] |
rmannibucau@apache.org
|
5c9dbcd576e9f7d156229e731bde350b2490501b
|
16be4b5d7b111dae18a4117b0dcf434cf44e4215
|
/src/main/java/q1000/Q993_CousinsInBinaryTree.java
|
bdc90a89557955d8b35cf42e3ad67afee81117ae
|
[
"MIT"
] |
permissive
|
sunxuia/leetcode-solution-java
|
a3d8d680fabc014216ef9837d119b02acde923b5
|
2794f83c9e80574f051c00b8a24c6a307bccb6c5
|
refs/heads/master
| 2022-11-12T13:31:04.464274
| 2022-11-09T14:20:28
| 2022-11-09T14:20:28
| 219,247,361
| 1
| 0
|
MIT
| 2020-10-26T10:55:12
| 2019-11-03T03:43:25
|
Java
|
UTF-8
|
Java
| false
| false
| 2,555
|
java
|
package q1000;
import org.junit.runner.RunWith;
import util.provided.TreeNode;
import util.runner.Answer;
import util.runner.LeetCodeRunner;
import util.runner.TestData;
import util.runner.data.DataExpectation;
/**
* [Easy] 993. Cousins in Binary Tree
* https://leetcode.com/problems/cousins-in-binary-tree/
*
* In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1.
*
* Two nodes of a binary tree are cousins if they have the same depth, but have different parents.
*
* We are given the root of a binary tree with unique values, and the values x and y of two different nodes in the tree.
*
* Return true if and only if the nodes corresponding to the values x and y are cousins.
*
* Example 1:
* (图Q993_PIC1.png)
* Input: root = [1,2,3,4], x = 4, y = 3
* Output: false
*
* Example 2:
* (图Q993_PIC2.png)
* Input: root = [1,2,3,null,4,null,5], x = 5, y = 4
* Output: true
*
* Example 3:
* (图Q993_PIC3.png)
* Input: root = [1,2,3,null,4], x = 2, y = 3
* Output: false
*
* Constraints:
*
* The number of nodes in the tree will be between 2 and 100.
* Each node has a unique integer value from 1 to 100.
*/
@RunWith(LeetCodeRunner.class)
public class Q993_CousinsInBinaryTree {
@Answer
public boolean isCousins(TreeNode root, int x, int y) {
this.x = x;
this.y = y;
xDepth = -1;
yDepth = -1;
dfs(null, root, 0);
return xDepth == yDepth && xParent != yParent;
}
private int x, y, xDepth, yDepth;
private TreeNode xParent, yParent;
private void dfs(TreeNode parent, TreeNode node, int depth) {
if (node == null) {
return;
}
if (node.val == x) {
xDepth = depth;
xParent = parent;
} else if (node.val == y) {
yDepth = depth;
yParent = parent;
} else if (xDepth == -1 || yDepth == -1) {
dfs(node, node.left, depth + 1);
dfs(node, node.right, depth + 1);
}
}
@TestData
public DataExpectation example1 = DataExpectation
.createWith(TreeNode.createByLevel(1, 2, 3, 4), 4, 3)
.expect(false);
@TestData
public DataExpectation example2 = DataExpectation
.createWith(TreeNode.createByLevel(1, 2, 3, null, 4, null, 5), 5, 4)
.expect(true);
@TestData
public DataExpectation example3 = DataExpectation
.createWith(TreeNode.createByLevel(1, 2, 3, null, 4), 2, 3)
.expect(false);
}
|
[
"ntsunxu@163.com"
] |
ntsunxu@163.com
|
c722b14a1025b0080631c35f234b8c87066088bf
|
55821b09861478c6db214d808f12f493f54ff82a
|
/trunk/java.prj/ecc/src/com/dragonflow/SiteView/DetectConfigurationChange.java
|
86e9c09c01ae8e426bdc20023d3a89f8f19a0f36
|
[] |
no_license
|
SiteView/ECC8.13
|
ede526a869cf0cb076cd9695dbc16075a1cf9716
|
bced98372138b09140dc108b33bb63f33ef769fe
|
refs/heads/master
| 2016-09-05T13:57:21.282048
| 2012-06-12T08:54:40
| 2012-06-12T08:54:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,469
|
java
|
/*
*
* Created on 2005-2-15 12:50:01
*
* DetectConfigurationChange.java
*
* History:
*
*/
package com.dragonflow.SiteView;
/**
* Comment for <code>DetectConfigurationChange</code>
*
* @author
* @version 0.0
*
*
*/
import java.io.File;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Iterator;
import jgl.Array;
import jgl.HashMap;
import jgl.HashMapIterator;
import com.dragonflow.Log.LogManager;
import com.dragonflow.Utils.FileUtils;
// Referenced classes of package com.dragonflow.SiteView:
// Action, SiteViewGroup, TopazConfigurator
public class DetectConfigurationChange extends Action {
private HashMap fileNameMap;
private static boolean configHasChanged = false;
private static DetectConfigurationChange ourInstance;
public DetectConfigurationChange() {
fileNameMap = new HashMap();
}
public static synchronized DetectConfigurationChange getInstance() {
if (ourInstance == null) {
ourInstance = new DetectConfigurationChange();
}
ourInstance.initialize();
return ourInstance;
}
public void initialize() {
runType = 1;
}
public void setConfigChangeFlag() {
configHasChanged = true;
}
private void clearConfigChangeFlag() {
configHasChanged = false;
}
public boolean isConfigChanged() {
return configHasChanged;
}
public synchronized boolean execute() {
try {
SiteViewGroup siteviewgroup = SiteViewGroup.currentSiteView();
Array array = new Array();
Array array1 = new Array();
Array array2 = new Array();
Array array3 = siteviewgroup.getGroupFiles();
Enumeration enumeration = array3.elements();
File file = null;
File file1 = null;
File file2 = null;
File file3 = null;
HashSet hashset = new HashSet();
for (Enumeration enumeration1 = fileNameMap.keys(); enumeration1
.hasMoreElements(); hashset.add(enumeration1.nextElement())) {
}
String s;
for (; enumeration.hasMoreElements(); hashset.remove(s)) {
File file4 = (File) enumeration.nextElement();
s = file4.getAbsolutePath();
Long long1 = (Long) fileNameMap.get(s);
if (long1 == null) {
if (file4.getName().equals("history.config")) {
file = file4;
} else if (file4.getName().equals("dynamic.config")) {
file2 = file4;
} else {
array.add(file4);
}
} else if (long1.longValue() != file4.lastModified()) {
if (file4.getName().equals("history.config")) {
file1 = file4;
} else if (file4.getName().equals("dynamic.config")) {
file3 = file4;
} else {
array1.add(file4);
if (file4.getAbsolutePath().endsWith(".mg")) {
// TopazConfigurator.checkModified(file4);
}
}
}
long1 = new Long(file4.lastModified());
fileNameMap.put(s, long1);
}
if (file2 != null) {
array.add(file2);
}
if (file3 != null) {
array1.add(file3);
}
if (file != null) {
array.add(file);
}
if (file1 != null) {
array1.add(file1);
}
String s1;
for (Iterator iterator = hashset.iterator(); iterator.hasNext(); LogManager
.log("Debug", "group deleted: " + s1)) {
s1 = (String) iterator.next();
fileNameMap.remove(s1);
File file5 = new File(s1);
array2.add(file5);
if (file5.getAbsolutePath().endsWith(".mg")) {
// TopazConfigurator.checkDeleted(file5);
}
}
HashMap hashmap = new HashMap();
siteviewgroup.adjustGroups(array, array1, array2, hashmap);
for (HashMapIterator hashmapiterator = hashmap.begin(); !hashmapiterator
.atEnd(); hashmapiterator.advance()) {
fileNameMap.put(hashmapiterator.key(), hashmapiterator.value());
}
} catch (Exception exception) {
LogManager
.log("Error", "Error loading configuration: " + exception);
LogManager.log("Error", " detail: "
+ FileUtils.stackTraceText(exception));
}
clearConfigChangeFlag();
return true;
}
public String toString() {
return "detect configuration change";
}
public synchronized void resetFileTimeStamp(String s) {
String s1 = (new File(s)).getAbsolutePath();
Long long1 = (Long) fileNameMap.get(s1);
if (long1 != null) {
fileNameMap.remove(s1);
fileNameMap.put(s1, new Long(0L));
}
}
}
|
[
"136122085@163.com"
] |
136122085@163.com
|
da5d1e81c927f945ecaf0db11ffb59faf86805f8
|
f7cc8938ccf25a514c6a6ccdfb4dcc49f80b5c12
|
/microvibe-booster/booster-core/src/main/java/io/microvibe/booster/core/base/model/JsTreeView.java
|
620b04befc73070d66172ff1b49ae248839be98d
|
[
"Apache-2.0"
] |
permissive
|
microsignal/vibe
|
6f8b8d91aa6fa0dfc7020ca023ea8c3cb0d82e37
|
4b3e2d5b5a6f3b3e021276b7e496d6eaa1b7b665
|
refs/heads/master
| 2021-09-25T13:07:16.911688
| 2018-10-22T05:14:14
| 2018-10-22T05:14:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,150
|
java
|
package io.microvibe.booster.core.base.model;
import com.alibaba.fastjson.util.TypeUtils;
import io.microvibe.booster.core.base.entity.Treeable;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.beanutils.PropertyUtils;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
* JSTree 模型
*
* @author Qt
* @since Jul 28, 2018
*/
@Data
@Slf4j
public class JsTreeView implements Serializable {
private static final long serialVersionUID = 1L;
private String id;
private String parent;
private String text;
private String icon;
private State state;
private Long orderNo;
private List<JsTreeView> children;
public JsTreeView() {
}
public <T extends Treeable<T, ID>, ID extends Serializable> JsTreeView(T treeable) {
ID id = treeable.getId();
if(id == null){
setId(null);
}else if(id instanceof String){
setId((String) id);
}else{
setId(id.toString());
}
ID parentId = treeable.getParentId();
if(parentId == null){
setParent(null);
}else if(parentId instanceof String){
setParent((String) parentId);
}else{
setParent(parentId.toString());
}
try {
setText(TypeUtils.castToString(PropertyUtils.getProperty(treeable, "text")));
} catch (Exception e) {
log.debug(e.getMessage(), e);
}
try {
setIcon(TypeUtils.castToString(PropertyUtils.getProperty(treeable, "icon")));
} catch (Exception e) {
log.debug(e.getMessage(), e);
}
try {
setOrderNo(TypeUtils.castToLong(PropertyUtils.getProperty(treeable, "orderNo")));
} catch (Exception e) {
log.debug(e.getMessage(), e);
}
Collection<T> children = treeable.getChildren();
if (children.size() > 0) {
this.children = new ArrayList<>(children.size());
for (T child : children) {
this.children.add(new JsTreeView(child));
}
}
}
@Data
public static class State {
private boolean opened;
private boolean selected;
private boolean disabled;
public State() {
}
public State(boolean selected) {
this.selected = selected;
}
public static State selected() {
return new State(true);
}
}
}
|
[
"kylinmania@163.com"
] |
kylinmania@163.com
|
ab0897c7339072b81140feb9da6b020df9efa1a5
|
48fd1d4142439be057c4b226b1c8e4ec88c344c6
|
/20230408/spring/src/main/java/com/example/demo/application/LogoutService.java
|
4a824e70e00f007707b1c9cc5b189ce3db176307
|
[] |
no_license
|
ahastudio/CodingLife
|
2323d4b105f85935be1e6534433338e4ea806b3f
|
dfbddf92e3c4f93ba357a66ed4171b1cd6172d56
|
refs/heads/main
| 2023-07-19T22:04:56.830668
| 2023-07-09T20:25:48
| 2023-07-09T20:27:25
| 19,508,919
| 73
| 42
| null | 2022-03-23T22:51:43
| 2014-05-06T20:07:00
|
Jupyter Notebook
|
UTF-8
|
Java
| false
| false
| 508
|
java
|
package com.example.demo.application;
import jakarta.transaction.Transactional;
import org.springframework.stereotype.Service;
import com.example.demo.infrastructure.UserDetailsDao;
@Service
@Transactional
public class LogoutService {
private final UserDetailsDao userDetailsDao;
public LogoutService(UserDetailsDao userDetailsDao) {
this.userDetailsDao = userDetailsDao;
}
public void logout(String accessToken) {
userDetailsDao.removeAccessToken(accessToken);
}
}
|
[
"ahastudio@gmail.com"
] |
ahastudio@gmail.com
|
8fe0cf0e128aeae963b9eb6185c99162a883482d
|
53d677a55e4ece8883526738f1c9d00fa6560ff7
|
/com/tencent/mm/plugin/honey_pay/ui/HoneyPayCardManagerUI$8.java
|
b878654339ef1e563044ea45578e544008ac2685
|
[] |
no_license
|
0jinxing/wechat-apk-source
|
544c2d79bfc10261eb36389c1edfdf553d8f312a
|
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
|
refs/heads/master
| 2020-06-07T20:06:03.580028
| 2019-06-21T09:17:26
| 2019-06-21T09:17:26
| 193,069,132
| 9
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 909
|
java
|
package com.tencent.mm.plugin.honey_pay.ui;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.protocal.protobuf.bdh;
import com.tencent.mm.ui.MMActivity;
import com.tencent.mm.ui.q;
import com.tencent.mm.wallet_core.ui.e;
final class HoneyPayCardManagerUI$8
implements View.OnClickListener
{
HoneyPayCardManagerUI$8(HoneyPayCardManagerUI paramHoneyPayCardManagerUI, bdh parambdh)
{
}
public final void onClick(View paramView)
{
AppMethodBeat.i(41800);
e.n(this.nrS.mController.ylL, this.nrV.url, false);
AppMethodBeat.o(41800);
}
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes4-dex2jar.jar
* Qualified Name: com.tencent.mm.plugin.honey_pay.ui.HoneyPayCardManagerUI.8
* JD-Core Version: 0.6.2
*/
|
[
"172601673@qq.com"
] |
172601673@qq.com
|
faeaae56e83d40150d52f3cd119a438f804c7e5c
|
daae183b831e5c0afdb9da8978bae4ef2c01ed81
|
/multithread/src/main/java/chapter2/t8/syn_Out_asyn/MyList.java
|
161b399f7b4f7d4023f1372157528aa3f25456e7
|
[] |
no_license
|
apple006/FaithAkaJava
|
95c5f1c600a48e4a46f08c53462054243fe0b715
|
1df80dfed44492d2ad315d062980acf8e9ac91fe
|
refs/heads/master
| 2021-03-30T22:08:11.319054
| 2017-12-08T03:40:11
| 2017-12-08T03:40:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 766
|
java
|
package chapter2.t8.syn_Out_asyn;
import java.util.ArrayList;
import java.util.List;
/**
* @author nickChen
* @create 2017-04-20 15:35.
*/
public class MyList {
private List list = new ArrayList();
synchronized public void add(String username){
System.out.println("ThreadName="+Thread.currentThread().getName()+" execute add()");
list.add(username);
System.out.println("ThreadName="+Thread.currentThread().getName()+" exit add()");
}
synchronized public int getSize(){
System.out.println("ThreadName="+Thread.currentThread().getName()+" execute getSize()");
int size = list.size();
System.out.println("ThreadName="+Thread.currentThread().getName()+" exit getSize()");
return size;
}
}
|
[
"nickChenyx@gmail.com"
] |
nickChenyx@gmail.com
|
573757267c9c67ac73b08f9293913c95b00f6f44
|
3cb3004c7b44f9886b095197192df38581e51826
|
/atu-api-web/src/main/java/demo/Test.java
|
bddfd8e9c6ca4326d2536708993bc613e7d19d93
|
[] |
no_license
|
github188/atu_api
|
0c8fe985285bb59adf79944665c2046dc970ef65
|
2df7c270c40b1bb54e2cc4ab7c014cb17f9f0540
|
refs/heads/master
| 2020-03-22T13:55:14.394152
| 2017-12-04T03:58:45
| 2017-12-04T03:58:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 515
|
java
|
package demo;
import java.io.IOException;
import java.util.Calendar;
public class Test {
public static void main(String[] args) throws IOException {
Calendar cal = Calendar.getInstance();
int year=cal.get(Calendar.YEAR);//得到年
int month=cal.get(Calendar.MONTH)+1;//得到月,因为从0开始的,所以要加1
int day=cal.get(Calendar.DAY_OF_MONTH);//得到天
String fileName = "D:\\imageUpload\\" + year +"\\" + month+"\\"+day;
System.out.println(fileName);//打印
}
}
|
[
"359953111@qq.com"
] |
359953111@qq.com
|
40699d645b4f439ad42a5e90cc66e86ff0ba3fd1
|
d6c7eced27e93c594789b27dec6831343ee57ea6
|
/src/main/java/com/kosmos/network/packets/PacketChat.java
|
a9a1fa42ca42c86f18158fe70ae35e8fbcb637bc
|
[] |
no_license
|
mattparks/New-Kosmos
|
e7825aef8f2cacd3f0c0e1240d1ff7d0aae4a4d9
|
b5d672be2e00a384abe8ed0d1b19b9a1e3bd0cef
|
refs/heads/master
| 2022-09-18T11:31:52.368537
| 2022-09-11T00:12:10
| 2022-09-11T00:12:10
| 79,647,660
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,688
|
java
|
/*
* Copyright (C) 2017, Equilibrium Games - All Rights Reserved.
*
* This source file is part of New Kosmos.
*
* Unauthorized copying of this file, via any medium is strictly prohibited.
* Proprietary and confidential.
*/
package com.kosmos.network.packets;
import com.flounder.logger.*;
import com.flounder.maths.*;
import com.flounder.networking.*;
import com.kosmos.uis.*;
import java.net.*;
public class PacketChat extends Packet {
private String username;
private String chatMessage;
public PacketChat(byte[] data) {
String[] d = readData(data).split(",");
this.username = d[0].trim();
this.chatMessage = d[1].trim();
}
public PacketChat(String username, String chatMessage) {
this.username = username;
this.chatMessage = chatMessage;
}
@Override
public void writeData(Client client) {
client.sendData(getData());
}
@Override
public void writeData(Server server) {
server.sentDataToOtherClient(getData(), username);
}
@Override
public void clientHandlePacket(Client client, InetAddress address, int port) {
String message = username + " has said: " + chatMessage;
FlounderLogger.get().log(message);
OverlayChat.addText(message, new Colour(1.0f, 1.0f, 1.0f));
}
@Override
public void serverHandlePacket(Server server, InetAddress address, int port) {
FlounderLogger.get().log("[" + address.getHostAddress() + ":" + port + "] " + username + " has said: " + chatMessage);
this.writeData(server);
}
@Override
public byte[] getData() {
return (getDataPrefix() + username + "," + chatMessage).getBytes();
}
public String getUsername() {
return username;
}
public String getChatMessage() {
return chatMessage;
}
}
|
[
"mattparks5855@gmail.com"
] |
mattparks5855@gmail.com
|
79ecfbc38095ac481c025571df2d4b24d06c608b
|
4560dcc6564baea1b5e3f4b2e0cfa401a19b644f
|
/springQuick_Ex04/src/main/java/com/springbook/view/common/JDBCUtil.java
|
d234be6c56c6319076bccb87c7e8d6fa3e1aee6d
|
[] |
no_license
|
taeheon1/SpringExam
|
4c11f5170aafb3aaca01c7065f4e5559c1b4cf05
|
8081a93d188d8c1366090b4571ac4d545cf36ccc
|
refs/heads/master
| 2022-10-19T03:36:46.790482
| 2020-06-12T09:30:09
| 2020-06-12T09:30:09
| 268,393,484
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,562
|
java
|
package com.springbook.view.common;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class JDBCUtil {
public static Connection getConnection() {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
// Class.forName("oracle.jdbc.pool.OracleDataSource");
return DriverManager.getConnection("jdbc:oracle:thin:@218.50.121.249:1521:orcl", "taeh", "0201");
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
public static void close(PreparedStatement stmt, Connection conn) {
if (stmt != null) {
try {
if (!stmt.isClosed()) {
stmt.close();
}
} catch (Exception e) {
e.printStackTrace();
} finally {
stmt = null;
}
}
if (conn != null) {
try {
if (!conn.isClosed()) {
conn.close();
}
} catch (Exception e) {
e.printStackTrace();
} finally {
conn = null;
}
}
}
public static void close(ResultSet rs, PreparedStatement stmt, Connection conn) {
if (rs != null) {
try {
if (!rs.isClosed()) {
rs.close();
}
} catch (Exception e) {
e.printStackTrace();
} finally {
rs = null;
}
}
if (stmt != null) {
try {
if (!stmt.isClosed()) {
stmt.close();
}
} catch (Exception e) {
e.printStackTrace();
} finally {
stmt = null;
}
}
if (conn != null) {
try {
if (!conn.isClosed()) {
conn.close();
}
} catch (Exception e) {
e.printStackTrace();
} finally {
conn = null;
}
}
}
}
|
[
"pengdoong95@gmail.com"
] |
pengdoong95@gmail.com
|
c54e2948ea1005537cf3c82c5b3294e427368553
|
706dae6cc6526064622d4f5557471427441e5c5e
|
/src/test/java/com/anbo/juja/patterns/builder_20/sample/windows/composite/HorizontalAlignmentTest.java
|
0d8d540b40f0c7d07113181d0b56fdd1d2b4489d
|
[] |
no_license
|
Anton-Bondar/Design-patterns-JUJA-examples-
|
414edabfd8c4148640de7de8d01f809b01c3c17c
|
9e3d628f7e45c0106514f8f459ea30fffed702d5
|
refs/heads/master
| 2021-10-09T04:45:42.372993
| 2018-12-21T12:09:00
| 2018-12-21T12:11:14
| 121,509,668
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,889
|
java
|
package com.anbo.juja.patterns.builder_20.sample.windows.composite;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Created by oleksandr.baglai on 27.10.2015.
*/
public class HorizontalAlignmentTest {
@Test
public void testDrawSimpleWindow() {
// given
Window window = new HorizontalAlignment();
window.add(new StubWindow('+', 6, 1));
// when
String draw = window.draw();
// then
assertEquals(
"┌──────┐\n" +
"│++++++│\n" +
"└──────┘\n", draw);
assertEquals(6 + 2, window.width());
assertEquals(1 + 2, window.height());
}
@Test
public void testDrawSimpleWindow_case2() {
// given
Window window = new HorizontalAlignment();
window.add(new StubWindow('+', 1, 6));
// when
String draw = window.draw();
// then
assertEquals(
"┌─┐\n" +
"│+│\n" +
"│+│\n" +
"│+│\n" +
"│+│\n" +
"│+│\n" +
"│+│\n" +
"└─┘\n", draw);
assertEquals(1 + 2, window.width());
assertEquals(6 + 2, window.height());
}
@Test
public void testDrawMultilineWindow() {
// given
Window window = new HorizontalAlignment();
window.add(new StubWindow('+', 6, 3));
// when
String draw = window.draw();
// then
assertEquals(
"┌──────┐\n" +
"│++++++│\n" +
"│++++++│\n" +
"│++++++│\n" +
"└──────┘\n", draw);
// when then
assertEquals(6 + 2, window.width());
assertEquals(3 + 2, window.height());
}
@Test
public void testDrawTwoMultilineWindow() {
// given
Window window = new HorizontalAlignment();
window.add(new StubWindow('+', 3, 6));
window.add(new StubWindow('-', 2, 6));
// when
String draw = window.draw();
// then
assertEquals(
"┌─────┐\n" +
"│+++--│\n" +
"│+++--│\n" +
"│+++--│\n" +
"│+++--│\n" +
"│+++--│\n" +
"│+++--│\n" +
"└─────┘\n", draw);
// when then
assertEquals(3 + 2 + 2, window.width());
assertEquals(6 + 2, window.height());
}
@Test
public void testDrawTwoMultilineWindow_whenOneWidthLessThanOther() {
// given
Window window = new HorizontalAlignment();
window.add(new StubWindow('+', 3, 2));
window.add(new StubWindow('-', 2, 6));
// when
String draw = window.draw();
// then
assertEquals(
"┌─────┐\n" +
"│+++--│\n" +
"│+++--│\n" +
"│ --│\n" +
"│ --│\n" +
"│ --│\n" +
"│ --│\n" +
"└─────┘\n", draw);
// when then
assertEquals(3 + 2 + 2, window.width());
assertEquals(6 + 2, window.height());
}
@Test
public void testDrawTwoMultilineWindow_whenOneWidthLessThanOther_case2() {
// given
Window window = new HorizontalAlignment();
window.add(new StubWindow('+', 3, 6));
window.add(new StubWindow('-', 2, 2));
// when
String draw = window.draw();
// then
assertEquals(
"┌─────┐\n" +
"│+++--│\n" +
"│+++--│\n" +
"│+++ │\n" +
"│+++ │\n" +
"│+++ │\n" +
"│+++ │\n" +
"└─────┘\n", draw);
// when then
assertEquals(3 + 2 + 2, window.width());
assertEquals(6 + 2, window.height());
}
@Test
public void testDrawThreeMultilineWindow() {
// given
Window window = new HorizontalAlignment();
window.add(new StubWindow('+', 1, 3));
window.add(new StubWindow('-', 2, 1));
window.add(new StubWindow('=', 3, 2));
// when
String draw = window.draw();
// then
assertEquals(
"┌──────┐\n" +
"│+--===│\n" +
"│+ ===│\n" +
"│+ │\n" +
"└──────┘\n", draw);
// when then
assertEquals(1 + 2 + 3 + 2, window.width());
assertEquals(3 + 2, window.height());
}
}
|
[
"AntonBondar2013@gmail.com"
] |
AntonBondar2013@gmail.com
|
89090ed0aee3dbf3d5516f5267c6223cf9a5c357
|
b4b411a19f7ca6ca4ed6e5ddd00aa630daea6e2a
|
/src/main/java/com/algorithm/problems/longest_harmonious_subsequence/Solution1.java
|
2ce6b7f9c5b6b3b5b754e05f45ac3f9168e86de6
|
[] |
no_license
|
unknown-peter/algorithm-problems
|
ca9d4fdf31cb09cbaa0728a09f22e06d4363cc90
|
7185679c671caf567619242417e020a8da624e82
|
refs/heads/master
| 2022-10-24T10:55:22.860449
| 2022-10-23T04:58:40
| 2022-10-23T04:58:40
| 186,918,222
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,263
|
java
|
/**
* Leetcode - longest_harmonious_subsequence
*/
package com.algorithm.problems.longest_harmonious_subsequence;
import java.util.Arrays;
class Solution1 implements Solution {
/**
* 数组排序,遍历计算当前值的元素的数量到curCount,
* 如果下一个值与其相差1则preCount=curCount并遍历计算值的元素数量到curCount
* 如果preCount、curCount均不为0,则相加和sum取最大值
*/
@Override
public int findLHS(int[] nums) {
int preCount = 0;
int curCount = 1;
int sum = 0;
Arrays.sort(nums);
int i = 1;
while (i < nums.length) {
while (i < nums.length && nums[i] == nums[i - 1]) {
curCount++;
i++;
}
if (preCount != 0 && curCount != 0) sum = Math.max(sum, preCount + curCount);
if (i >= nums.length) break;
if ((nums[i] - nums[i - 1]) == 1) {
preCount = curCount;
curCount = 1;
} else {
preCount = 0;
curCount = 1;
}
i++;
}
if (preCount != 0 && curCount != 0) sum = Math.max(sum, preCount + curCount);
return sum;
}
}
|
[
"unknown-peter@protonmail.com"
] |
unknown-peter@protonmail.com
|
0159dc8c25c630dcb7e75fead1caf592debb9fa4
|
2ee773cbdc216c9165029632eb36fedd8de36ca5
|
/app/src/main/java/org/firstinspires/ftc/robotcore/internal/android/dx/ssa/back/RegisterAllocator.java
|
2821142f300b57ee4c272133388ff15aa336e174
|
[] |
no_license
|
Killian-Townsend/Custom-FTC-Driver-Station-2021
|
6bee582afdb032ad2921b394280a2321f0f815ec
|
16e8999d7593ef2c4189902bf2d376db8a3a6b41
|
refs/heads/master
| 2023-03-28T04:48:30.704409
| 2021-03-19T01:09:18
| 2021-03-19T01:09:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,174
|
java
|
package org.firstinspires.ftc.robotcore.internal.android.dx.ssa.back;
import java.util.ArrayList;
import org.firstinspires.ftc.robotcore.internal.android.dx.rop.code.Insn;
import org.firstinspires.ftc.robotcore.internal.android.dx.rop.code.PlainInsn;
import org.firstinspires.ftc.robotcore.internal.android.dx.rop.code.RegisterSpec;
import org.firstinspires.ftc.robotcore.internal.android.dx.rop.code.RegisterSpecList;
import org.firstinspires.ftc.robotcore.internal.android.dx.rop.code.Rops;
import org.firstinspires.ftc.robotcore.internal.android.dx.rop.code.SourcePosition;
import org.firstinspires.ftc.robotcore.internal.android.dx.rop.type.TypeBearer;
import org.firstinspires.ftc.robotcore.internal.android.dx.ssa.NormalSsaInsn;
import org.firstinspires.ftc.robotcore.internal.android.dx.ssa.RegisterMapper;
import org.firstinspires.ftc.robotcore.internal.android.dx.ssa.SsaBasicBlock;
import org.firstinspires.ftc.robotcore.internal.android.dx.ssa.SsaInsn;
import org.firstinspires.ftc.robotcore.internal.android.dx.ssa.SsaMethod;
import org.firstinspires.ftc.robotcore.internal.android.dx.util.IntIterator;
public abstract class RegisterAllocator {
protected final InterferenceGraph interference;
protected final SsaMethod ssaMeth;
public RegisterAllocator(SsaMethod paramSsaMethod, InterferenceGraph paramInterferenceGraph) {
this.ssaMeth = paramSsaMethod;
this.interference = paramInterferenceGraph;
}
public abstract RegisterMapper allocateRegisters();
protected final int getCategoryForSsaReg(int paramInt) {
SsaInsn ssaInsn = this.ssaMeth.getDefinitionForRegister(paramInt);
return (ssaInsn == null) ? 1 : ssaInsn.getResult().getCategory();
}
protected final RegisterSpec getDefinitionSpecForSsaReg(int paramInt) {
SsaInsn ssaInsn = this.ssaMeth.getDefinitionForRegister(paramInt);
return (ssaInsn == null) ? null : ssaInsn.getResult();
}
protected final RegisterSpec insertMoveBefore(SsaInsn paramSsaInsn, RegisterSpec paramRegisterSpec) {
SsaBasicBlock ssaBasicBlock = paramSsaInsn.getBlock();
ArrayList<SsaInsn> arrayList = ssaBasicBlock.getInsns();
int i = arrayList.indexOf(paramSsaInsn);
if (i >= 0) {
RegisterSpecList registerSpecList;
if (i == arrayList.size() - 1) {
RegisterSpec registerSpec = RegisterSpec.make(this.ssaMeth.makeNewSsaReg(), paramRegisterSpec.getTypeBearer());
arrayList.add(i, SsaInsn.makeFromRop((Insn)new PlainInsn(Rops.opMove((TypeBearer)registerSpec.getType()), SourcePosition.NO_INFO, registerSpec, RegisterSpecList.make(paramRegisterSpec)), ssaBasicBlock));
int j = registerSpec.getReg();
IntIterator intIterator = ssaBasicBlock.getLiveOutRegs().iterator();
while (intIterator.hasNext())
this.interference.add(j, intIterator.next());
registerSpecList = paramSsaInsn.getSources();
int k = registerSpecList.size();
for (i = 0; i < k; i++)
this.interference.add(j, registerSpecList.get(i).getReg());
this.ssaMeth.onInsnsChanged();
return registerSpec;
}
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("Adding move here not supported:");
stringBuilder.append(registerSpecList.toHuman());
throw new IllegalArgumentException(stringBuilder.toString());
}
throw new IllegalArgumentException("specified insn is not in this block");
}
protected boolean isDefinitionMoveParam(int paramInt) {
SsaInsn ssaInsn = this.ssaMeth.getDefinitionForRegister(paramInt);
boolean bool = ssaInsn instanceof NormalSsaInsn;
boolean bool2 = false;
boolean bool1 = bool2;
if (bool) {
bool1 = bool2;
if (((NormalSsaInsn)ssaInsn).getOpcode().getOpcode() == 3)
bool1 = true;
}
return bool1;
}
public abstract boolean wantsParamsMovedHigh();
}
/* Location: C:\Users\Student\Desktop\APK Decompiling\com.qualcomm.ftcdriverstation_38_apps.evozi.com\classes-dex2jar.jar!\org\firstinspires\ftc\robotcore\internal\android\dx\ssa\back\RegisterAllocator.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 1.1.3
*/
|
[
"admin@thatsfuckingstupid.org"
] |
admin@thatsfuckingstupid.org
|
a7e56bb9b24b83adf4497581a3897f9fe2f5aa12
|
18c36d681eea1616e18c1ff56154a633f4156d33
|
/test/DatabaseTest.java
|
9bdeefa7d2c148885cdc07628ff6847cb5ed2aeb
|
[
"Apache-2.0"
] |
permissive
|
mayconbordin/ubipri-server
|
094774889d7339b8d5f7fa8cb84597b56186feae
|
ffc4fa78fdef493d8b7d8314347e233f205cc448
|
refs/heads/master
| 2021-01-20T22:05:49.478600
| 2015-09-25T17:23:10
| 2015-09-25T17:23:10
| 63,781,276
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 659
|
java
|
import base.GuiceApplicationBaseTest;
import com.google.common.collect.ImmutableMap;
import org.junit.*;
import utils.db.FixturesUtil;
import java.util.Map;
public class DatabaseTest extends GuiceApplicationBaseTest {
@Test
public void createDatabase() {
//
}
@Override
protected Map<String, String> getDatabaseConfig() {
return ImmutableMap.of(
"driver" , "org.postgresql.Driver",
"url" , "jdbc:postgresql://localhost/ubipri",
"username", "postgres",
"password", "postgres"
);
}
@Override
public void stopPlay() {
// do nothing
}
}
|
[
"mayconbordin@gmail.com"
] |
mayconbordin@gmail.com
|
652a34948d03ade7106a78937c3500742f8c2420
|
64735343162d3f2abf2af7e995fd050067f8bc3b
|
/src/l/series/CreateBinaryTree.java
|
a1d33d2ead18ad25bff8d7b5ff0b1b92eadd540c
|
[] |
no_license
|
Luckylau/my-algorithm-training
|
275d20282c7a338fa881358952af1d538951ecaf
|
d7505e7a1175364123cbe8b496d7ccf5045738ac
|
refs/heads/master
| 2022-05-24T14:00:43.498487
| 2022-05-08T14:42:46
| 2022-05-08T14:42:46
| 72,265,981
| 1
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 974
|
java
|
package l.series;
/**
* 有序数组构建二叉查找树
*/
public class CreateBinaryTree {
public static void main(String[] args) {
int[] nums = {1, 2, 3, 4, 5, 6, 7, 8, 9};
CreateBinaryTree createBinaryTree = new CreateBinaryTree();
createBinaryTree.createBinaryTree(nums);
}
public TreeNode createBinaryTree(int[] nums) {
if (nums == null || nums.length == 0) {
return null;
}
return helper(nums, 0, nums.length - 1);
}
private TreeNode helper(int[] nums, int start, int end) {
if (start > end) {
return null;
}
int mid = start + (end - start) / 2;
TreeNode root = new TreeNode(nums[mid]);
root.left = helper(nums, start, mid - 1);
root.right = helper(nums, mid + 1, end);
return root;
}
}
class TreeNode {
int val;
TreeNode left, right;
public TreeNode(int val) {
this.val = val;
}
}
|
[
"laujunbupt0203@163.com"
] |
laujunbupt0203@163.com
|
989aeffd19ae70ad99ef418a6c05f01a5613ae92
|
c06837ffd4009cd700b25b8a565a08187b0f720e
|
/im/src/main/java/cn/lds/im/data/CityBean.java
|
49c11096b4492b2d49bacbaeb5f21d88a79e6b3f
|
[] |
no_license
|
binbin5257/A002
|
034c469b8607a368aa80c0c31fc833ab858f45f4
|
9a78f4516b7be45c30eed4ff66c44410042b9828
|
refs/heads/master
| 2020-04-06T08:27:10.603355
| 2019-08-08T01:35:20
| 2019-08-08T01:35:20
| 157,305,134
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,367
|
java
|
package cn.lds.im.data;
/**
* Created by E0608 on 2017/9/25.
*/
public class CityBean {
private String name;
private String code;
private double lat;
private double log;
private String cityAddress;
private String address;
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getCityAddress() {
return cityAddress;
}
public void setCityAddress(String cityAddress) {
this.cityAddress = cityAddress;
}
private boolean isSelectCity;
public boolean isSelectCity() {
return isSelectCity;
}
public void setSelectCity(boolean selectCity) {
isSelectCity = selectCity;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public double getLat() {
return lat;
}
public void setLat(double lat) {
this.lat = lat;
}
public double getLog() {
return log;
}
public void setLog(double log) {
this.log = log;
}
}
|
[
"13624266523@163.com"
] |
13624266523@163.com
|
70ec5b4c8a8f0853f03613428eca90a2fc58d0f7
|
2fc0657f5612ee1482bd5cfe134e6d955d284f5d
|
/IFLCustomerService-portlet/docroot/WEB-INF/src/com/ifl/rapid/customer/model/impl/CRM_Trn_AddressImpl.java
|
2b8908cf5e8c93535588abc7247bf9f7d86fb87d
|
[] |
no_license
|
vvraju/portlets
|
92396db5a48a5190e9d73ebe8d119186f55ba785
|
6a9203aa106be116e43fc2ea36a7b74b912f9cc9
|
refs/heads/master
| 2016-09-06T11:52:22.313088
| 2014-07-17T13:06:16
| 2014-07-17T13:06:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,344
|
java
|
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of the Liferay Enterprise
* Subscription License ("License"). You may not use this file except in
* compliance with the License. You can obtain a copy of the License by
* contacting Liferay, Inc. See the License for the specific language governing
* permissions and limitations under the License, including but not limited to
* distribution rights of the Software.
*
*
*
*/
package com.ifl.rapid.customer.model.impl;
/**
* The extended model implementation for the CRM_Trn_Address service. Represents a row in the "CRM_Trn_Address" database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link com.ifl.rapid.customer.model.CRM_Trn_Address} interface.
* </p>
*
* @author Satya Kola
*/
public class CRM_Trn_AddressImpl extends CRM_Trn_AddressBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a c r m_ trn_ address model instance should use the {@link com.ifl.rapid.customer.model.CRM_Trn_Address} interface instead.
*/
public CRM_Trn_AddressImpl() {
}
}
|
[
"laga.kp@gmail.com"
] |
laga.kp@gmail.com
|
a8dfc341e23511afeda970dbfefa3062cb502a71
|
77e35fd24cf1a219b688d901cc2e0c226ba164cc
|
/src/langs/bevent/exprs/defs/SetDef.java
|
a4215f3a7c48da90bd3ee479a895ca5fbd5d5b57
|
[] |
no_license
|
stratosphr/exotest
|
cf83c28172fc8271470f20d85e6fd349259ed47c
|
57d897d5ee00428aaeb42745a4fc8fdff70738f3
|
refs/heads/master
| 2020-03-18T14:55:21.092051
| 2018-06-11T11:29:18
| 2018-06-11T11:29:18
| 134,875,315
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 638
|
java
|
package langs.bevent.exprs.defs;
import langs.bevent.exprs.arith.Const;
import langs.bevent.exprs.sets.AFiniteSetExpr;
import visitors.formatters.object.IObjectFormatter;
import java.util.LinkedHashSet;
/**
* Created by gvoiron on 08/06/18.
* Time : 10:20
*/
public final class SetDef extends ADef {
public SetDef(String name, AFiniteSetExpr domain) {
super(name, domain);
}
@Override
public String accept(IObjectFormatter formatter) {
return formatter.visit(this);
}
@Override
public LinkedHashSet<Const> getRequiredConsts() {
return getDomain().getRequiredConsts();
}
}
|
[
"stratosphr@gmail.com"
] |
stratosphr@gmail.com
|
d4b1c7b2b06eb69ee06ce4d4510a51c229cc0ee7
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project28/src/main/java/org/gradle/test/performance28_3/Production28_235.java
|
23763ea938f8b7c6145a6eb1885c7e09ccd305bb
|
[] |
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
| 305
|
java
|
package org.gradle.test.performance28_3;
public class Production28_235 extends org.gradle.test.performance11_3.Production11_235 {
private final String property;
public Production28_235() {
this.property = "foo";
}
public String getProperty() {
return property;
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
383fd4510efdf3b77dd413dc1fec0d18f1bfca99
|
fa1408365e2e3f372aa61e7d1e5ea5afcd652199
|
/src/testcases/CWE191_Integer_Underflow/s03/CWE191_Integer_Underflow__long_rand_sub_73b.java
|
4f1e79d81308e094f4cddb6486b95c9ad33e2e49
|
[] |
no_license
|
bqcuong/Juliet-Test-Case
|
31e9c89c27bf54a07b7ba547eddd029287b2e191
|
e770f1c3969be76fdba5d7760e036f9ba060957d
|
refs/heads/master
| 2020-07-17T14:51:49.610703
| 2019-09-03T16:22:58
| 2019-09-03T16:22:58
| 206,039,578
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,058
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__long_rand_sub_73b.java
Label Definition File: CWE191_Integer_Underflow.label.xml
Template File: sources-sinks-73b.tmpl.java
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: rand Set data to result of rand()
* GoodSource: A hardcoded non-zero, non-min, non-max, even number
* Sinks: sub
* GoodSink: Ensure there will not be an underflow before subtracting 1 from data
* BadSink : Subtract 1 from data, which can cause an Underflow
* Flow Variant: 73 Data flow: data passed in a LinkedList from one method to another in different source files in the same package
*
* */
package testcases.CWE191_Integer_Underflow.s03;
import testcasesupport.*;
import java.util.LinkedList;
public class CWE191_Integer_Underflow__long_rand_sub_73b
{
public void badSink(LinkedList<Long> dataLinkedList ) throws Throwable
{
long data = dataLinkedList.remove(2);
/* POTENTIAL FLAW: if data == Long.MIN_VALUE, this will overflow */
long result = (long)(data - 1);
IO.writeLine("result: " + result);
}
/* goodG2B() - use GoodSource and BadSink */
public void goodG2BSink(LinkedList<Long> dataLinkedList ) throws Throwable
{
long data = dataLinkedList.remove(2);
/* POTENTIAL FLAW: if data == Long.MIN_VALUE, this will overflow */
long result = (long)(data - 1);
IO.writeLine("result: " + result);
}
/* goodB2G() - use BadSource and GoodSink */
public void goodB2GSink(LinkedList<Long> dataLinkedList ) throws Throwable
{
long data = dataLinkedList.remove(2);
/* FIX: Add a check to prevent an overflow from occurring */
if (data > Long.MIN_VALUE)
{
long result = (long)(data - 1);
IO.writeLine("result: " + result);
}
else
{
IO.writeLine("data value is too small to perform subtraction.");
}
}
}
|
[
"bqcuong2212@gmail.com"
] |
bqcuong2212@gmail.com
|
c8365fa0fe8ea378e921072591b5945fe98f9d7c
|
6ccfd0eb067b0f083ff6241f9b7b37322129ae28
|
/src/main/java/com/newlecture/web/dao/oracle/OracleNoticeFileDao.java
|
a8dcad2bd9b097a65a723b67da655a31ef70813e
|
[] |
no_license
|
JoshEmbrace/springmavenprj
|
c1288e5e97d24b1e468695a84c6c5367fa5c0735
|
dd34ed729e8da339d765a5348c05f531fbdde3e0
|
refs/heads/master
| 2022-12-21T07:55:31.744968
| 2019-08-02T02:57:55
| 2019-08-02T02:57:55
| 197,738,323
| 0
| 0
| null | 2022-05-20T21:03:40
| 2019-07-19T08:52:07
|
Java
|
UHC
|
Java
| false
| false
| 3,166
|
java
|
package com.newlecture.web.dao.oracle;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.newlecture.web.dao.NoticeFileDao;
import com.newlecture.web.entity.NoticeFile;
public class OracleNoticeFileDao implements NoticeFileDao {
@Override
public List<NoticeFile> getListByNoticeId(int noticeId) throws ClassNotFoundException, SQLException {
List<NoticeFile> list = new ArrayList<>();
String sql = "SELECT * FROM NOTICE_file WHERE notice_id=?";
String url = "jdbc:oracle:thin:@192.168.0.15:1521/xepdb1";
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection(url, "\"newlec\"", "l4class");
PreparedStatement st = con.prepareStatement(sql);
st.setInt(1, noticeId);//->'%A%'
ResultSet rs = st.executeQuery();
while (rs.next()) {
NoticeFile notice = new NoticeFile(
rs.getInt("id"),
rs.getString("name"),
rs.getInt("notice_id")
);
list.add(notice);
}
rs.close();
st.close();
con.close();
return list;
}
@Override
public int insert(NoticeFile noticeFile) throws ClassNotFoundException, SQLException {
int result = 0;
String sql = "insert into notice_file(id,name,notice_id)"+"values(notice_file_seq.nextval,?,?)";
String url = "jdbc:oracle:thin:@192.168.0.15:1521/xepdb1";
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection(url, "\"newlec\"", "l4class");
PreparedStatement st = con.prepareStatement(sql);//sql실행해주는 애, 미리셋팅
st.setString(1, noticeFile.getName());
st.setInt(2, noticeFile.getNoticeId());
result = st.executeUpdate();
st.close();
con.close();
return result;
}
@Override
public int update(NoticeFile noticeFile) throws ClassNotFoundException, SQLException {
int result = 0;
String sql = "update notice_file set title=?, content=? where id =?";
String url = "jdbc:oracle:thin:@192.168.0.15:1521/xepdb1";
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection(url, "\"newlec\"", "l4class");
PreparedStatement st = con.prepareStatement(sql);
st.setString(1, noticeFile.getName());
st.setInt(2, noticeFile.getNoticeId());
st.setInt(3, noticeFile.getId());
result = st.executeUpdate();
st.close();
con.close();
return result;
}
@Override
public int delete(int id) throws ClassNotFoundException, SQLException {
int result = 0;
String sql = "delete notice_file where id=?";
String url = "jdbc:oracle:thin:@192.168.0.15:1521/xepdb1";
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection(url, "\"newlec\"", "l4class");
PreparedStatement st = con.prepareStatement(sql);//sql실행해주는 애, 미리셋팅
st.setInt(1, id);
result = st.executeUpdate();
st.close();
con.close();
return result;
}
}
|
[
"JHTA@JHTA-PC"
] |
JHTA@JHTA-PC
|
1a9446315c0a07c585e0d73159a36c819c9afe16
|
b9a298842daab2df42652526a2aa8eea46fdc43c
|
/src/main/java/com/zto/sxy/java8/streamapi/Laziness.java
|
745d6253f792f58635dc8f15af951952b7eb9b4f
|
[] |
no_license
|
spilledyear/SJava
|
efca5acb1f8182b8db2696abf4e8cb3615981717
|
cf129a044e320e58d89e87958029b2f13a0bb838
|
refs/heads/master
| 2022-06-21T18:29:37.902556
| 2019-12-21T12:17:02
| 2019-12-21T12:17:02
| 149,408,865
| 0
| 0
| null | 2022-06-21T00:55:19
| 2018-09-19T07:19:15
|
HTML
|
UTF-8
|
Java
| false
| false
| 883
|
java
|
package com.zto.sxy.java8.streamapi;
import static java.util.stream.Collectors.toList;
import java.util.Arrays;
import java.util.List;
/**
* 流操作-中间操作
*/
public class Laziness {
public static void main(String[] args) {
List<Integer> numbers = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8);
List<Integer> twoEvenSquares =
numbers.stream()
.filter(n -> {
System.out.println("filtering " + n);
return n % 2 == 0;
})
.map(n -> {
System.out.println("mapping " + n);
return n * n;
})
.limit(2)
.collect(toList());
twoEvenSquares.stream().forEach(System.out::println);
}
}
|
[
"spilledyear@outlook.com"
] |
spilledyear@outlook.com
|
69e3a6c7b48128ccd9d32cf153fde06f0f6a5e91
|
df9aa1ec9dc6fc05d0ff87f819d0e7212f267c0c
|
/src/com/company/GFG/tree/IsCompleteBinaryTree.java
|
2059a20fb433e0b3c387dea16d55809893ee2f7d
|
[] |
no_license
|
TheNinjaRahul/ProblemSolving
|
bb8f7dcc645a84e18695b2eca3555217cb5b0ca3
|
263b2fccac3f0900bb35b43ec582d25db3480c12
|
refs/heads/master
| 2023-03-24T16:08:37.190795
| 2021-03-05T14:03:26
| 2021-03-05T14:03:26
| 262,782,533
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 470
|
java
|
package com.company.GFG.tree;
public class IsCompleteBinaryTree {
public static void main(String[] args) {
}
boolean isFullTree(TreeNode root) {
if (root == null) return true;
if (root.left != null && root.right != null) {
return isFullTree(root.left) && isFullTree(root.right);
} else if (root.left == null && root.right == null) {
return true;
} else {
return false;
}
}
}
|
[
"chudasama.rahul.r@gmail.com"
] |
chudasama.rahul.r@gmail.com
|
dcb47a50fc0ded21952311f2a35636dd4859a30f
|
2ebe6e87a7f96bbee2933103a4f43f46ea239996
|
/samples/testsuite-xlt/src/scripting/neg/createCookie/CreateCookie_value_squareBracket_left.java
|
877507392c9b58932637a0735d7c10b4a3b7eaf7
|
[
"Apache-2.0",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"EPL-1.0",
"CDDL-1.1",
"EPL-2.0",
"MPL-2.0",
"MIT",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
Xceptance/XLT
|
b4351c915d8c66d918b02a6c71393a151988be46
|
c6609f0cd9315217727d44b3166f705acc4da0b4
|
refs/heads/develop
| 2023-08-18T18:20:56.557477
| 2023-08-08T16:04:16
| 2023-08-08T16:04:16
| 237,251,821
| 56
| 12
|
Apache-2.0
| 2023-09-01T14:52:25
| 2020-01-30T16:13:24
|
Java
|
UTF-8
|
Java
| false
| false
| 1,387
|
java
|
/*
* Copyright (c) 2005-2023 Xceptance Software Technologies GmbH
*
* 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 scripting.neg.createCookie;
import org.junit.After;
import org.junit.Test;
import scripting.util.AbstractCreateCookie;
import scripting.util.PageOpener;
import com.xceptance.xlt.api.util.XltException;
import com.xceptance.xlt.api.webdriver.XltDriver;
/**
*
*/
public class CreateCookie_value_squareBracket_left extends AbstractCreateCookie
{
/**
* Constructor.
*/
public CreateCookie_value_squareBracket_left()
{
super(new XltDriver(true), null);
}
@Test(expected = XltException.class)
public void test() throws Throwable
{
PageOpener.examplePage( this );
create( CreateCookie_value_squareBracket_left.class.getSimpleName(), "foo[bar" );
}
@After
public void after()
{
getWebDriver().quit();
}
}
|
[
"4639399+jowerner@users.noreply.github.com"
] |
4639399+jowerner@users.noreply.github.com
|
532c0fbaa88ed6cf3682bbfcd99599a1e67adeb5
|
943f1a0ccef6d577405a940a8c63d0b2d5c025a4
|
/src/main/java/com/sebastian_daschner/jaxrs_analyzer/backend/asciidoc/AsciiDocBackend.java
|
e970b83c4355e3fe9249df0237edb6d4dbef2ba0
|
[
"Apache-2.0"
] |
permissive
|
HenryP3/jaxrs-analyzer
|
0ad5fcb9c116eb8bb4782829fef2c75f5969916c
|
a5c76b7d4828f4523b3977a97513995b02d8c6a0
|
refs/heads/master
| 2021-01-17T08:09:51.823533
| 2016-06-16T07:30:08
| 2016-06-16T10:15:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,104
|
java
|
package com.sebastian_daschner.jaxrs_analyzer.backend.asciidoc;
import com.sebastian_daschner.jaxrs_analyzer.backend.Backend;
import com.sebastian_daschner.jaxrs_analyzer.backend.JsonRepresentationAppender;
import com.sebastian_daschner.jaxrs_analyzer.model.Types;
import com.sebastian_daschner.jaxrs_analyzer.model.rest.*;
import com.sebastian_daschner.jaxrs_analyzer.utils.StringUtils;
import java.util.Comparator;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.stream.Collectors;
import static com.sebastian_daschner.jaxrs_analyzer.backend.ComparatorUtils.mapKeyComparator;
import static com.sebastian_daschner.jaxrs_analyzer.backend.ComparatorUtils.parameterComparator;
import static com.sebastian_daschner.jaxrs_analyzer.model.JavaUtils.toReadableType;
/**
* A backend implementation which produces an AsciiDoc representation of the JAX-RS project.
*
* @author Sebastian Daschner
*/
class AsciiDocBackend implements Backend {
private static final String NAME = "AsciiDoc";
private static final String DOCUMENT_TITLE = "= REST resources of ";
private static final String TYPE_WILDCARD = "\\*/*";
private final Lock lock = new ReentrantLock();
private StringBuilder builder;
private Resources resources;
private String projectName;
private String projectVersion;
private TypeRepresentationVisitor visitor;
@Override
public String render(final Project project) {
lock.lock();
try {
// initialize fields
builder = new StringBuilder();
resources = project.getResources();
projectName = project.getName();
projectVersion = project.getVersion();
visitor = new JsonRepresentationAppender(builder, resources.getTypeRepresentations());
return renderInternal();
} finally {
lock.unlock();
}
}
private String renderInternal() {
appendHeader();
resources.getResources().stream().sorted().forEach(this::appendResource);
return builder.toString();
}
private void appendHeader() {
builder.append(DOCUMENT_TITLE).append(projectName).append('\n')
.append(projectVersion).append("\n\n");
}
private void appendResource(final String resource) {
resources.getMethods(resource).stream()
.sorted(Comparator.comparing(ResourceMethod::getMethod))
.forEach(resourceMethod -> {
appendMethod(resources.getBasePath(), resource, resourceMethod);
appendRequest(resourceMethod);
appendResponse(resourceMethod);
});
}
private void appendMethod(final String baseUri, final String resource, final ResourceMethod resourceMethod) {
builder.append("== `").append(resourceMethod.getMethod()).append(' ');
if (!StringUtils.isBlank(baseUri))
builder.append(baseUri).append('/');
builder.append(resource).append("`\n\n");
}
private void appendRequest(final ResourceMethod resourceMethod) {
builder.append("=== Request\n");
if (resourceMethod.getRequestBody() != null) {
builder.append("*Content-Type*: `");
builder.append(resourceMethod.getRequestMediaTypes().isEmpty() ? TYPE_WILDCARD : toString(resourceMethod.getRequestMediaTypes()));
builder.append("` + \n");
builder.append("*Request Body*: (").append(toTypeOrCollection(resourceMethod.getRequestBody())).append(") + \n");
Optional.ofNullable(resources.getTypeRepresentations().get(resourceMethod.getRequestBody())).ifPresent(r -> {
builder.append('`');
r.accept(visitor);
builder.append("` + \n");
});
} else {
builder.append("_No body_ + \n");
}
final Set<MethodParameter> parameters = resourceMethod.getMethodParameters();
appendParams("Path Param", parameters, ParameterType.PATH);
appendParams("Query Param", parameters, ParameterType.QUERY);
appendParams("Form Param", parameters, ParameterType.FORM);
appendParams("Header Param", parameters, ParameterType.HEADER);
appendParams("Cookie Param", parameters, ParameterType.COOKIE);
appendParams("Matrix Param", parameters, ParameterType.MATRIX);
builder.append('\n');
}
private void appendParams(final String name, final Set<MethodParameter> parameters, final ParameterType parameterType) {
parameters.stream().filter(p -> p.getParameterType() == parameterType)
.sorted(parameterComparator()).forEach(p -> builder
.append('*')
.append(name)
.append("*: `")
.append(p.getName())
.append("`, `")
.append(toReadableType(p.getType()))
// TODO add default value
.append("` + \n"));
}
private void appendResponse(final ResourceMethod resourceMethod) {
builder.append("=== Response\n");
builder.append("*Content-Type*: `");
builder.append(resourceMethod.getResponseMediaTypes().isEmpty() ? TYPE_WILDCARD : toString(resourceMethod.getResponseMediaTypes()));
builder.append("`\n\n");
resourceMethod.getResponses().entrySet().stream().sorted(mapKeyComparator()).forEach(e -> {
builder.append("==== `").append(e.getKey()).append(' ')
.append(javax.ws.rs.core.Response.Status.fromStatusCode(e.getKey()).getReasonPhrase()).append("`\n");
final Response response = e.getValue();
response.getHeaders().forEach(h -> builder.append("*Header*: `").append(h).append("` + \n"));
if (response.getResponseBody() != null) {
builder.append("*Response Body*: ").append('(').append(toTypeOrCollection(response.getResponseBody())).append(") + \n");
Optional.ofNullable(resources.getTypeRepresentations().get(response.getResponseBody())).ifPresent(r -> {
builder.append('`');
r.accept(visitor);
builder.append("` + \n");
});
}
builder.append('\n');
});
}
private String toTypeOrCollection(final TypeIdentifier type) {
final TypeRepresentation representation = resources.getTypeRepresentations().get(type);
if (representation != null && !representation.getComponentType().equals(type) && !type.getType().equals(Types.JSON)) {
return "Collection of `" + toReadableType(representation.getComponentType().getType()) + '`';
}
return '`' + toReadableType(type.getType()) + '`';
}
private static String toString(final Set<String> set) {
return set.stream().sorted().map(Object::toString).collect(Collectors.joining(", "));
}
@Override
public String getName() {
return NAME;
}
}
|
[
"git@sebastian-daschner.de"
] |
git@sebastian-daschner.de
|
9b2497b292abd5a5bed34eaca81330e28bda40e8
|
8799ac7be9e0fe8a80ea2ae002beb7a68a1a4392
|
/Algorithm/BaekJoon Algorithm/BJ1790.java
|
7af000c9349498f3c0f36a8e780a5b8b54fb6970
|
[] |
no_license
|
jeon9825/TIP
|
c45f73db7e1f9dffc8edf5a4268f0d7ee14e6709
|
fc8067e4597189b1762453ed29ba91d000e03160
|
refs/heads/master
| 2021-08-18T10:00:26.373784
| 2021-08-05T13:52:42
| 2021-08-05T13:52:42
| 174,329,195
| 1
| 2
| null | null | null | null |
UHC
|
Java
| false
| false
| 1,114
|
java
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class BJ1790 {
static int length(int n) { // n의 길이
int result = 0;
while (n > 0) {
result++;
n /= 10;
}
return result;
}
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer tokenizer = new StringTokenizer(reader.readLine());
int N = Integer.parseInt(tokenizer.nextToken());
int k = Integer.parseInt(tokenizer.nextToken());
int result = 0;
// StringBuilder builder = new StringBuilder();
int i;
for (i = 1; i <= N; i++) {
// builder.append(i);
result += length(i);
if (result >= k)
break;
}
if (k > result)
System.out.println(-1);
else {
String s = String.valueOf(i);
int index = s.length() - 1 - (result - k); //이거 구하기가 어려움.........
System.out.println(s.charAt(index));
// System.out.println(builder.toString().charAt(k - 1)); // index는 0부터 시작
}
}
}
|
[
"jeon9825@naver.com"
] |
jeon9825@naver.com
|
ad2d0bbc271b4c0ea99fde4c10fd40fa179095f7
|
f4fd782488b9cf6d99d4375d5718aead62b63c69
|
/com/planet_ink/coffee_mud/Commands/Below.java
|
fec0a473d4ea13fb78c250b0ee66927f382358eb
|
[
"Apache-2.0"
] |
permissive
|
sfunk1x/CoffeeMud
|
89a8ca1267ecb0c2ca48280e3b3930ee1484c93e
|
0ac2a21c16dfe3e1637627cb6373d34615afe109
|
refs/heads/master
| 2021-01-18T11:20:53.213200
| 2015-09-17T19:16:30
| 2015-09-17T19:16:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,380
|
java
|
package com.planet_ink.coffee_mud.Commands;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;
import java.util.*;
/*
Copyright 2013-2015 Bo Zimmerman
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.
*/
@SuppressWarnings("rawtypes")
public class Below extends Go
{
public Below(){}
private final String[] access=I(new String[]{"BELOW"});
@Override public String[] getAccessWords(){return access;}
@Override
public boolean execute(MOB mob, Vector commands, int metaFlags)
throws java.io.IOException
{
if(!standIfNecessary(mob,metaFlags, true))
return false;
if(mob.isAttribute(MOB.Attrib.AUTORUN))
CMLib.tracking().run(mob, Directions.DOWN, false,false,false);
else
CMLib.tracking().walk(mob, Directions.DOWN, false,false,false);
return false;
}
@Override public boolean canBeOrdered(){return true;}
@Override
public boolean securityCheck(MOB mob)
{
return (mob==null) || (mob.isMonster()) || (mob.location()==null)
|| (mob.location() instanceof BoardableShip) || (mob.location().getArea() instanceof BoardableShip);
}
}
|
[
"bo@zimmers.net"
] |
bo@zimmers.net
|
0413a17d3c47485316d41daccd33bc60ff7ad994
|
fc2af5d61af1ad7d526257517560205d0added5d
|
/java_jdk_api/src/main/java/com/java/api/concurrent/Test_01.java
|
41df5cde8c428a5f6cd53a75446362efc8d5472f
|
[] |
no_license
|
fengwuxp/study-demo
|
f1d83348de12ae5a7f811bf667597e7aaaa676da
|
2aaf841b5594a0908ee71014bd314f34f4187699
|
refs/heads/master
| 2022-12-11T23:25:52.456718
| 2021-01-11T14:14:37
| 2021-01-11T14:14:37
| 186,108,604
| 1
| 0
| null | 2022-11-15T23:49:06
| 2019-05-11T08:40:22
|
Java
|
UTF-8
|
Java
| false
| false
| 2,032
|
java
|
package com.java.api.concurrent;
import org.quartz.spi.ThreadExecutor;
import java.util.Objects;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
/**
* 使用复杂对象作为锁对象是不安全的
* 例如在这个类型的2个对象相等 a.equals(b)=true ,然而 a==b =false
*/
public class Test_01 {
public static void main(String[] args) throws Exception {
SynchronizedHandle synchronizedHandle = new SynchronizedHandle();
ExecutorService executorService = Executors.newFixedThreadPool(30);
int maxLength = 1000000;
//
LockObject[] lockObjects = {new LockObject("1"), new LockObject("1")};
for (int i = 0; i < maxLength; i++) {
LockObject lockObject = lockObjects[i % 2];
executorService.execute(() -> synchronizedHandle.handle(lockObject));
}
Thread.sleep(1000);
executorService.shutdown();
int count = synchronizedHandle.getCount();
System.out.println(count);
System.out.println(maxLength);
}
}
class LockObject {
private String id;
public LockObject(String id) {
this.id = id;
}
public String getId() {
return id;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof LockObject)) return false;
LockObject that = (LockObject) o;
return Objects.equals(getId(), that.getId());
}
@Override
public int hashCode() {
return Objects.hash(getId());
}
}
class SynchronizedHandle {
private int count;
public void handle(final LockObject lockObject) {
if (lockObject == null) {
return;
}
// synchronized (lockObject) { //使用这种方式可能会出错
synchronized (lockObject.getId().intern()) {
this.count++;
}
}
public int getCount() {
return count;
}
}
|
[
"1109695647@qq.com"
] |
1109695647@qq.com
|
1755fa061e2a4f7570cd8d4e9b0559483a8ad832
|
5f82aae041ab05a5e6c3d9ddd8319506191ab055
|
/Projects/Math/102/src/test/org/apache/commons/math/ode/GraggBulirschStoerStepInterpolatorTest.java
|
7bf373fc36e2c6a4d51ce47144ab284108cf879f
|
[] |
no_license
|
lingming/prapr_data
|
e9ddabdf971451d46f1ef2cdbee15ce342a6f9dc
|
be9ababc95df45fd66574c6af01122ed9df3db5d
|
refs/heads/master
| 2023-08-14T20:36:23.459190
| 2021-10-17T13:49:39
| 2021-10-17T13:49:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,480
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.ode;
import junit.framework.*;
import java.util.Random;
import java.io.ByteArrayOutputStream;
import java.io.ByteArrayInputStream;
import java.io.ObjectOutputStream;
import java.io.ObjectInputStream;
import java.io.IOException;
import org.apache.commons.math.ode.ContinuousOutputModel;
import org.apache.commons.math.ode.DerivativeException;
import org.apache.commons.math.ode.GraggBulirschStoerIntegrator;
import org.apache.commons.math.ode.IntegratorException;
public class GraggBulirschStoerStepInterpolatorTest
extends TestCase {
public GraggBulirschStoerStepInterpolatorTest(String name) {
super(name);
}
public void testSerialization()
throws DerivativeException, IntegratorException,
IOException, ClassNotFoundException {
TestProblem3 pb = new TestProblem3(0.9);
double minStep = 0;
double maxStep = pb.getFinalTime() - pb.getInitialTime();
double absTolerance = 1.0e-8;
double relTolerance = 1.0e-8;
GraggBulirschStoerIntegrator integ =
new GraggBulirschStoerIntegrator(minStep, maxStep,
absTolerance, relTolerance);
integ.setStepHandler(new ContinuousOutputModel());
integ.integrate(pb,
pb.getInitialTime(), pb.getInitialState(),
pb.getFinalTime(), new double[pb.getDimension()]);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(bos);
oos.writeObject(integ.getStepHandler());
assertTrue(bos.size () > 34000);
assertTrue(bos.size () < 35000);
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
ObjectInputStream ois = new ObjectInputStream(bis);
ContinuousOutputModel cm = (ContinuousOutputModel) ois.readObject();
Random random = new Random(347588535632l);
double maxError = 0.0;
for (int i = 0; i < 1000; ++i) {
double r = random.nextDouble();
double time = r * pb.getInitialTime() + (1.0 - r) * pb.getFinalTime();
cm.setInterpolatedTime(time);
double[] interpolatedY = cm.getInterpolatedState ();
double[] theoreticalY = pb.computeTheoreticalState(time);
double dx = interpolatedY[0] - theoreticalY[0];
double dy = interpolatedY[1] - theoreticalY[1];
double error = dx * dx + dy * dy;
if (error > maxError) {
maxError = error;
}
}
assertTrue(maxError < 5.0e-11);
}
public void testClone()
throws DerivativeException, IntegratorException {
TestProblem3 pb = new TestProblem3(0.9);
double minStep = 0;
double maxStep = pb.getFinalTime() - pb.getInitialTime();
double scalAbsoluteTolerance = 1.0e-8;
double scalRelativeTolerance = scalAbsoluteTolerance;
GraggBulirschStoerIntegrator integ = new GraggBulirschStoerIntegrator(minStep, maxStep,
scalAbsoluteTolerance,
scalRelativeTolerance);
integ.setStepHandler(new StepHandler() {
public void handleStep(StepInterpolator interpolator, boolean isLast)
throws DerivativeException {
StepInterpolator cloned = interpolator.copy();
double tA = cloned.getPreviousTime();
double tB = cloned.getCurrentTime();
double halfStep = Math.abs(tB - tA) / 2;
assertEquals(interpolator.getPreviousTime(), tA, 1.0e-12);
assertEquals(interpolator.getCurrentTime(), tB, 1.0e-12);
for (int i = 0; i < 10; ++i) {
double t = (i * tB + (9 - i) * tA) / 9;
interpolator.setInterpolatedTime(t);
assertTrue(Math.abs(cloned.getInterpolatedTime() - t) > (halfStep / 10));
cloned.setInterpolatedTime(t);
assertEquals(t, cloned.getInterpolatedTime(), 1.0e-12);
double[] referenceState = interpolator.getInterpolatedState();
double[] cloneState = cloned.getInterpolatedState();
for (int j = 0; j < referenceState.length; ++j) {
assertEquals(referenceState[j], cloneState[j], 1.0e-12);
}
}
}
public boolean requiresDenseOutput() {
return true;
}
public void reset() {
}
});
integ.integrate(pb,
pb.getInitialTime(), pb.getInitialState(),
pb.getFinalTime(), new double[pb.getDimension()]);
}
public static Test Norun() {
return new TestSuite(GraggBulirschStoerStepInterpolatorTest.class);
}
}
|
[
"2890268106@qq.com"
] |
2890268106@qq.com
|
2ea9ba1f3ea39339986563686cc7c9ca4bf4e146
|
1e7f68d62f0b9408054a7ddee252a02d94bf93fc
|
/CommModule/src/ca/uhn/hl7v2/model/v26/group/ORL_O36_ORDER.java
|
dc0f8b0b0b3418c0a44694d3d0a006181e076eb7
|
[] |
no_license
|
sac10nikam/TX
|
8b296211601cddead3749e48876e3851e867b07d
|
e5a5286f1092ce720051036220e1780ba3408893
|
refs/heads/master
| 2021-01-15T16:00:19.517997
| 2013-01-21T09:38:09
| 2013-01-21T09:38:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,151
|
java
|
/*
* This class is an auto-generated source file for a HAPI
* HL7 v2.x standard structure class.
*
* For more information, visit: http://hl7api.sourceforge.net/
*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* (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.mozilla.org/MPL/
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the
* specific language governing rights and limitations under the License.
*
* The Original Code is "[file_name]". Description:
* "[one_line_description]"
*
* The Initial Developer of the Original Code is University Health Network. Copyright (C)
* 2012. All Rights Reserved.
*
* Contributor(s): ______________________________________.
*
* Alternatively, the contents of this file may be used under the terms of the
* GNU General Public License (the "GPL"), in which case the provisions of the GPL are
* applicable instead of those above. If you wish to allow use of your version of this
* file only under the terms of the GPL and not to allow others to use your version
* of this file under the MPL, indicate your decision by deleting the provisions above
* and replace them with the notice and other provisions required by the GPL License.
* If you do not delete the provisions above, a recipient may use your version of
* this file under either the MPL or the GPL.
*
*/
package ca.uhn.hl7v2.model.v26.group;
import ca.uhn.hl7v2.model.v26.segment.*;
import java.util.List;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.parser.ModelClassFactory;
import ca.uhn.hl7v2.model.*;
import net.newel.android.Log;
import ca.uhn.hl7v2.util.Constants;
/**
* <p>Represents a ORL_O36_ORDER group structure (a Group object).
* A Group is an ordered collection of message segments that can repeat together or be optionally in/excluded together.
* This Group contains the following elements:
* </p>
* <ul>
* <li>1: ORC (Common Order) <b> </b></li>
* <li>2: ORL_O36_TIMING (a Group object) <b>optional repeating</b></li>
* <li>3: ORL_O36_OBSERVATION_REQUEST (a Group object) <b>optional </b></li>
* </ul>
*/
public class ORL_O36_ORDER extends AbstractGroup {
private static final long serialVersionUID = 1L;
/**
* Creates a new ORL_O36_ORDER group
*/
public ORL_O36_ORDER(Group parent, ModelClassFactory factory) {
super(parent, factory);
init(factory);
}
private void init(ModelClassFactory factory) {
try {
this.add(ORC.class, true, false);
this.add(ORL_O36_TIMING.class, false, true);
this.add(ORL_O36_OBSERVATION_REQUEST.class, false, false);
} catch(HL7Exception e) {
Log.e(Constants.TAG, "Unexpected error creating ORL_O36_ORDER - this is probably a bug in the source code generator.", e);
}
}
/**
* Returns "2.6"
*/
public String getVersion() {
return "2.6";
}
/**
* Returns
* ORC (Common Order) - creates it if necessary
*/
public ORC getORC() {
ORC retVal = getTyped("ORC", ORC.class);
return retVal;
}
/**
* Returns
* the first repetition of
* TIMING (a Group object) - creates it if necessary
*/
public ORL_O36_TIMING getTIMING() {
ORL_O36_TIMING retVal = getTyped("TIMING", ORL_O36_TIMING.class);
return retVal;
}
/**
* Returns a specific repetition of
* TIMING (a Group object) - creates it if necessary
*
* @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
* @throws HL7Exception if the repetition requested is more than one
* greater than the number of existing repetitions.
*/
public ORL_O36_TIMING getTIMING(int rep) {
ORL_O36_TIMING retVal = getTyped("TIMING", rep, ORL_O36_TIMING.class);
return retVal;
}
/**
* Returns the number of existing repetitions of TIMING
*/
public int getTIMINGReps() {
return getReps("TIMING");
}
/**
* <p>
* Returns a non-modifiable List containing all current existing repetitions of TIMING.
* <p>
* <p>
* Note that unlike {@link #getTIMING()}, this method will not create any reps
* if none are already present, so an empty list may be returned.
* </p>
*/
public List<ORL_O36_TIMING> getTIMINGAll() throws HL7Exception {
return getAllAsList("TIMING", ORL_O36_TIMING.class);
}
/**
* Inserts a specific repetition of TIMING (a Group object)
* @see AbstractGroup#insertRepetition(Structure, int)
*/
public void insertTIMING(ORL_O36_TIMING structure, int rep) throws HL7Exception {
super.insertRepetition("TIMING", structure, rep);
}
/**
* Inserts a specific repetition of TIMING (a Group object)
* @see AbstractGroup#insertRepetition(Structure, int)
*/
public ORL_O36_TIMING insertTIMING(int rep) throws HL7Exception {
return (ORL_O36_TIMING)super.insertRepetition("TIMING", rep);
}
/**
* Removes a specific repetition of TIMING (a Group object)
* @see AbstractGroup#removeRepetition(String, int)
*/
public ORL_O36_TIMING removeTIMING(int rep) throws HL7Exception {
return (ORL_O36_TIMING)super.removeRepetition("TIMING", rep);
}
/**
* Returns
* OBSERVATION_REQUEST (a Group object) - creates it if necessary
*/
public ORL_O36_OBSERVATION_REQUEST getOBSERVATION_REQUEST() {
ORL_O36_OBSERVATION_REQUEST retVal = getTyped("OBSERVATION_REQUEST", ORL_O36_OBSERVATION_REQUEST.class);
return retVal;
}
}
|
[
"nacrotic@hotmail.com"
] |
nacrotic@hotmail.com
|
c03db0032fb9717b5c7c8ef369febca84a9bac66
|
85fdcf0631ca2cc72ce6385c2bc2ac3c1aea4771
|
/temp/src/minecraft_server/net/minecraft/src/AchievementList.java
|
8c8fe6d75981370aa2b4a3bd7bbe72baa99d8665
|
[] |
no_license
|
lcycat/Cpsc410-Code-Trip
|
c3be6d8d0d12fd7c32af45b7e3b8cd169e0e28d4
|
cb7f76d0f98409af23b602d32c05229f5939dcfb
|
refs/heads/master
| 2020-12-24T14:45:41.058181
| 2014-11-21T06:54:49
| 2014-11-21T06:54:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,411
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst
package net.minecraft.src;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
// Referenced classes of package net.minecraft.src:
// Achievement, Item, Block
public class AchievementList
{
public static int field_76010_a;
public static int field_76008_b;
public static int field_76009_c;
public static int field_76006_d;
public static List field_76007_e;
public static Achievement field_76004_f;
public static Achievement field_76005_g;
public static Achievement field_76017_h;
public static Achievement field_76018_i;
public static Achievement field_76015_j;
public static Achievement field_76016_k;
public static Achievement field_76013_l;
public static Achievement field_76014_m;
public static Achievement field_76011_n;
public static Achievement field_76012_o;
public static Achievement field_76026_p;
public static Achievement field_76025_q;
public static Achievement field_76024_r;
public static Achievement field_76023_s;
public static Achievement field_76022_t;
public static Achievement field_76021_u;
public static Achievement field_76020_v;
public static Achievement field_76019_w;
public static Achievement field_76029_x;
public static Achievement field_76028_y;
public static Achievement field_76027_z;
public static Achievement field_76001_A;
public static Achievement field_76002_B;
public static Achievement field_76003_C;
public static Achievement field_75998_D;
public static Achievement field_75999_E;
public static Achievement field_76000_F;
public static void func_75997_a()
{
}
static
{
field_76007_e = new ArrayList();
field_76004_f = (new Achievement(0, "openInventory", 0, 0, Item.field_77760_aL, null)).func_75986_a().func_75985_c();
field_76005_g = (new Achievement(1, "mineWood", 2, 1, Block.field_71951_J, field_76004_f)).func_75985_c();
field_76017_h = (new Achievement(2, "buildWorkBench", 4, -1, Block.field_72060_ay, field_76005_g)).func_75985_c();
field_76018_i = (new Achievement(3, "buildPickaxe", 4, 2, Item.field_77713_t, field_76017_h)).func_75985_c();
field_76015_j = (new Achievement(4, "buildFurnace", 3, 4, Block.field_72052_aC, field_76018_i)).func_75985_c();
field_76016_k = (new Achievement(5, "acquireIron", 1, 4, Item.field_77703_o, field_76015_j)).func_75985_c();
field_76013_l = (new Achievement(6, "buildHoe", 2, -3, Item.field_77678_N, field_76017_h)).func_75985_c();
field_76014_m = (new Achievement(7, "makeBread", -1, -3, Item.field_77684_U, field_76013_l)).func_75985_c();
field_76011_n = (new Achievement(8, "bakeCake", 0, -5, Item.field_77746_aZ, field_76013_l)).func_75985_c();
field_76012_o = (new Achievement(9, "buildBetterPickaxe", 6, 2, Item.field_77720_x, field_76018_i)).func_75985_c();
field_76026_p = (new Achievement(10, "cookFish", 2, 6, Item.field_77753_aV, field_76015_j)).func_75985_c();
field_76025_q = (new Achievement(11, "onARail", 2, 3, Block.field_72056_aG, field_76016_k)).func_75987_b().func_75985_c();
field_76024_r = (new Achievement(12, "buildSword", 6, -1, Item.field_77715_r, field_76017_h)).func_75985_c();
field_76023_s = (new Achievement(13, "killEnemy", 8, -1, Item.field_77755_aX, field_76024_r)).func_75985_c();
field_76022_t = (new Achievement(14, "killCow", 7, -3, Item.field_77770_aF, field_76024_r)).func_75985_c();
field_76021_u = (new Achievement(15, "flyPig", 8, -4, Item.field_77765_aA, field_76022_t)).func_75987_b().func_75985_c();
field_76020_v = (new Achievement(16, "snipeSkeleton", 7, 0, Item.field_77707_k, field_76023_s)).func_75987_b().func_75985_c();
field_76019_w = (new Achievement(17, "diamonds", -1, 5, Item.field_77702_n, field_76016_k)).func_75985_c();
field_76029_x = (new Achievement(18, "portal", -1, 7, Block.field_72089_ap, field_76019_w)).func_75985_c();
field_76028_y = (new Achievement(19, "ghast", -4, 8, Item.field_77732_bp, field_76029_x)).func_75987_b().func_75985_c();
field_76027_z = (new Achievement(20, "blazeRod", 0, 9, Item.field_77731_bo, field_76029_x)).func_75985_c();
field_76001_A = (new Achievement(21, "potion", 2, 8, Item.field_77726_bs, field_76027_z)).func_75985_c();
field_76002_B = (new Achievement(22, "theEnd", 3, 10, Item.field_77748_bA, field_76027_z)).func_75987_b().func_75985_c();
field_76003_C = (new Achievement(23, "theEnd2", 4, 13, Block.field_72084_bK, field_76002_B)).func_75987_b().func_75985_c();
field_75998_D = (new Achievement(24, "enchantments", -4, 4, Block.field_72096_bE, field_76019_w)).func_75985_c();
field_75999_E = (new Achievement(25, "overkill", -4, 1, Item.field_77718_z, field_75998_D)).func_75987_b().func_75985_c();
field_76000_F = (new Achievement(26, "bookcase", -3, 6, Block.field_72093_an, field_75998_D)).func_75985_c();
System.out.println((new StringBuilder()).append(field_76007_e.size()).append(" achievements").toString());
}
}
|
[
"kye.13@hotmail.com"
] |
kye.13@hotmail.com
|
ca6b79354a3a98db9e38234afd72aa1349155513
|
1aab934ed9ad146b31e23f6ddeec417f8778c178
|
/src/main/java/com/luna/common/utils/RestUtils.java
|
5eca3b89b96654dacea72971746b5b11a461c127
|
[
"Apache-2.0"
] |
permissive
|
luna1024/luna-commons
|
359f15d068b5348c14049c26de8c6b8952c3cb96
|
3c27668959be03140bead9a9cd2a35e582a52a56
|
refs/heads/master
| 2022-09-07T16:44:22.268847
| 2020-05-28T13:40:31
| 2020-05-28T13:40:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,055
|
java
|
package com.luna.common.utils;
import java.util.Map;
import com.luna.common.http.HttpUtils;
import org.apache.commons.collections4.MapUtils;
import org.apache.http.HttpResponse;
import com.google.common.collect.Maps;
/**
* @author Tony
*/
public class RestUtils {
private static final String ENCODE = "utf-8";
public static String doGet(String host, String path, Map<String, String> headers,
Map<String, String> queries) {
HttpResponse httpResponse = HttpUtils.doGet(host, path, headers, queries);
return HttpUtils.checkResponseAndGetResult(httpResponse);
}
public static String doPost(String host, String path, Map<String, String> headers,
Map<String, String> queries, String body) {
if (MapUtils.isEmpty(headers)) {
headers = Maps.newHashMap();
}
headers.put("Content-Type", "application/json");
HttpResponse httpResponse = HttpUtils.doPost(host, path, headers, queries, body);
return HttpUtils.checkResponseAndGetResult(httpResponse);
}
}
|
[
"iszychen@gmail.com"
] |
iszychen@gmail.com
|
dfb0f7ab50267e664b39c8a2171d2c0c4b54617b
|
b6a44acd62ebbb31a50a22e37d6e94465f0036bf
|
/org.integratedmodelling.thinklab.core/src/main/java/org/integratedmodelling/thinklab/commands/PLoad.java
|
d8cac4a2ad9f1600f08208fb70d661a92b14f8d5
|
[] |
no_license
|
noorbakerally/imt
|
cd83edda86942ada2f411165708816547cc2004d
|
49a7c5031025dbaab5b4ea9aa18187aa733a3917
|
refs/heads/master
| 2020-12-11T01:42:07.638456
| 2010-06-27T14:08:07
| 2010-06-27T14:08:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,538
|
java
|
package org.integratedmodelling.thinklab.commands;
import org.integratedmodelling.thinklab.Thinklab;
import org.integratedmodelling.thinklab.command.Command;
import org.integratedmodelling.thinklab.exception.ThinklabException;
import org.integratedmodelling.thinklab.exception.ThinklabPluginException;
import org.integratedmodelling.thinklab.interfaces.IThinklabPlugin;
import org.integratedmodelling.thinklab.interfaces.annotations.ThinklabCommand;
import org.integratedmodelling.thinklab.interfaces.applications.ISession;
import org.integratedmodelling.thinklab.interfaces.commands.ICommandHandler;
import org.integratedmodelling.thinklab.interfaces.literals.IValue;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleException;
/**
* Just activate the named plugin.
*
* @author Ferdinando
*
*/
@ThinklabCommand(
name="pload",
argumentNames="plugin",
argumentTypes="thinklab-core:Text",
argumentDescriptions="plugin name or unambiguous suffix")
public class PLoad implements ICommandHandler {
@Override
public IValue execute(Command command, ISession session) throws ThinklabException {
String plugin = command.getArgumentAsString("plugin");
plugin = Thinklab.resolvePluginName(plugin, true);
for (Bundle b : Thinklab.getThinklabPlugins()) {
if (b.getSymbolicName().equals(plugin)) {
try {
b.start();
} catch (BundleException e) {
throw new ThinklabPluginException(e);
}
break;
}
}
return null;
}
}
|
[
"fvilla@ca20354d-2f28-0410-8711-9259e250f5a2"
] |
fvilla@ca20354d-2f28-0410-8711-9259e250f5a2
|
d84bc14915f5c83d9d8a6ed79182837e6777dc4f
|
656ce78b903ef3426f8f1ecdaee57217f9fbc40e
|
/src/o/aec.java
|
f8d22cf62f298a0e6c3f12385ffa0dc0ad7fdbb7
|
[] |
no_license
|
zhuharev/periscope-android-source
|
51bce2c1b0b356718be207789c0b84acf1e7e201
|
637ab941ed6352845900b9d465b8e302146b3f8f
|
refs/heads/master
| 2021-01-10T01:47:19.177515
| 2015-12-25T16:51:27
| 2015-12-25T16:51:27
| 48,586,306
| 8
| 10
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 440
|
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 o;
public final class aec
{
public final boolean bgm;
public final boolean bgn;
public final boolean bgo;
public aec(boolean flag, boolean flag1, boolean flag2)
{
bgm = flag;
bgn = flag1;
bgo = flag2;
}
}
|
[
"hostmaster@zhuharev.ru"
] |
hostmaster@zhuharev.ru
|
df7ff3d49d1053c58943a27c2c64256fcc839287
|
99858071ba8149c85c2f75cf8ad53e01d0c95ebd
|
/it.univaq.disim.oop.java/src/lezione4/Switch.java
|
f38f78b43ffd4d8b328405a868288659b8d0bb3d
|
[] |
no_license
|
rominaeramo/oop
|
41bd30415b6cef59c9fb9f450e9bd2d043daf57c
|
7bab45f0adc8f28bbf7e512dc154abd03faccda9
|
refs/heads/master
| 2021-06-17T05:33:21.918271
| 2017-05-10T09:08:25
| 2017-05-10T09:08:25
| 32,725,525
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 334
|
java
|
package lezione4;
public class Switch {
static boolean checkAnswer (char c) {
boolean res;
switch (c) {
case 'y':
res = true;
default:
res = false;
}
return res;
}
public static void main(String args[]){
char x='y';
System.out.println(checkAnswer(x));
}
}
|
[
"r.eramo@gmail.com"
] |
r.eramo@gmail.com
|
4995bc3b1b570667dd640562637c42837f144311
|
a1b258819c939111981795d587e2a733d66ed8ce
|
/src/main/java/ftb/lib/ForgeConfigFile.java
|
e01c10a22f2c2d35cc4ddbed879815093a56d3f3
|
[] |
no_license
|
smbarbour/FTBLib
|
9964c4c16295d8f2071e8c9ced92d3118c66dc39
|
9065f56d0249691fa29d6244c83829bb6f0ae230
|
refs/heads/1.8.9
| 2021-01-19T04:25:32.792427
| 2016-03-13T23:15:14
| 2016-03-13T23:15:14
| 53,918,164
| 0
| 0
| null | 2016-03-15T05:44:34
| 2016-03-15T05:44:34
| null |
UTF-8
|
Java
| false
| false
| 1,713
|
java
|
package ftb.lib;
public class ForgeConfigFile// implements IConfigFile // ConfigFile
{
/*
public final ConfigGroup configGroup;
public final Configuration config;
public ForgeConfigFile(String id, Configuration c)
{
configGroup = new ConfigGroup(id);
configGroup.parentFile = this;
config = c;
for(String s : c.getCategoryNames())
{
ConfigGroup g = new ConfigGroup(s);
ConfigCategory cat = c.getCategory(s);
for(java.util.Map.Entry<String, Property> e0 : cat.entrySet())
{
ConfigEntry e = null;
String s1 = e0.getKey();
Property p = e0.getValue();
if(p.isList())
{
if(p.isBooleanList()) ;
else if(p.isIntList()) e = new ConfigEntryIntArray(s1, IntList.asList(p.getIntList()));
else if(p.isDoubleList()) e = new ConfigEntryDoubleArray(s1, p.getDoubleList());
else e = new ConfigEntryStringArray(s1, Arrays.asList(p.getStringList()));
}
else
{
if(p.isBooleanValue()) e = new ConfigEntryBool(s1, p.getBoolean());
else if(p.isIntValue())
e = new ConfigEntryInt(s1, new IntBounds(p.getInt(), Integer.parseInt(p.getMinValue()), Integer.parseInt(p.getMaxValue())));
else if(p.isDoubleValue())
e = new ConfigEntryDouble(s1, new DoubleBounds((float) p.getDouble(), (float) Double.parseDouble(p.getMinValue()), (float) Double.parseDouble(p.getMaxValue())));
else e = new ConfigEntryString(s1, p.getString());
}
if(e != null)
{
g.add(e, false);
e.setInfo(p.comment);
}
}
configGroup.add(g, false);
}
}
public ConfigGroup getGroup()
{ return configGroup; }
public void load()
{ config.load(); }
public void save()
{ config.save(); }
*/
}
|
[
"latvianmodder@gmail.com"
] |
latvianmodder@gmail.com
|
474d8627eecf1b5b6b1b2578619a4a15989cd9cb
|
2a7e06c7c2a1b5f544de90272831ec53b1d74c65
|
/Actividades/OrientacionObjetos/Herencia/Ejercicio24PuestoFeria/src/Chucheria.java
|
bdc9f691a571ce1a3380bc3b136ef9760a5fd30c
|
[] |
no_license
|
lauriiShii/JAVA
|
fbcf3def9bb40e04edd7dcf0528c888e99004283
|
140a8b6727c77c9fded4ddc5428fc2cb25ed2af3
|
refs/heads/master
| 2020-03-22T06:33:35.637779
| 2018-07-03T23:20:11
| 2018-07-03T23:20:11
| 139,642,653
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 136
|
java
|
public class Chucheria extends Sorpresa{
public Chucheria(String nombre) throws NombreIncorrectoException {
super(nombre);
}
}
|
[
"lauracalventedominguez@gmail.com"
] |
lauracalventedominguez@gmail.com
|
21c44760dd1c95d9d7e06a997553812235984886
|
499faea013ee326417e5725ac80eb1a54ef6e802
|
/wf-region-smida/src/main/java/org/igov/model/action/event/ActionEventTypeGroup.java
|
bd8e95cea01621b08537a89a3a3fcd2eb895f69d
|
[] |
no_license
|
dolinets/iDoc
|
03ff38313f137d440e7568b214a8dc6ebf50fc59
|
9d0383c00149af94441cc62692aad1204395be87
|
refs/heads/master
| 2021-04-28T20:48:48.062254
| 2018-02-24T12:15:44
| 2018-02-24T12:15:44
| 121,933,992
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 778
|
java
|
package org.igov.model.action.event;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.persistence.Column;
import org.igov.model.core.AbstractEntity;
/**
*
* @author alex
*/
@javax.persistence.Entity
public class ActionEventTypeGroup extends AbstractEntity {
private static final long serialVersionUID = 1L;
@JsonProperty(value = "sName")
@Column
private String sName;
@JsonProperty(value = "sNote")
@Column
private String sNote;
public String getsName() {
return sName;
}
public void setsName(String sName) {
this.sName = sName;
}
public String getsNote() {
return sNote;
}
public void setsNote(String sNote) {
this.sNote = sNote;
}
}
|
[
"dolinets123@gmail.com"
] |
dolinets123@gmail.com
|
3dd3eb07edf965290669230bd2ac7eaa5cc0c66a
|
e49e1373922e55ae8a65d95841dac72fdeeb35f9
|
/src/main/java/org/codelibs/fess/dict/userdict/UserDictItem.java
|
6bf17aafab71a5bef58bd0e9ea1f654b99b0799c
|
[
"Apache-2.0"
] |
permissive
|
tairaku/fess
|
0f30f15e4f159d1fff9df39253e9c444b27b8238
|
51514ba3d6daa0597b141af532e818891ccbb651
|
refs/heads/master
| 2021-01-15T19:58:52.936841
| 2015-03-30T05:55:30
| 2015-03-30T05:55:30
| 32,498,074
| 0
| 0
| null | 2015-03-19T03:12:15
| 2015-03-19T03:12:13
| null |
UTF-8
|
Java
| false
| false
| 5,589
|
java
|
/*
* Copyright 2009-2015 the CodeLibs Project and the Others.
*
* 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.codelibs.fess.dict.userdict;
import org.codelibs.fess.dict.DictionaryItem;
public class UserDictItem extends DictionaryItem {
private final String token;
private final String segmentation;
private final String reading;
private final String pos;
private String newToken;
private String newSegmentation;
private String newReading;
private String newPos;
public UserDictItem(final long id, final String token, final String segmentation, final String reading, final String pos) {
this.id = id;
this.token = token;
this.segmentation = segmentation;
this.reading = reading;
this.pos = pos;
if (id == 0) {
// create
newToken = token;
newSegmentation = segmentation;
newReading = reading;
newPos = pos;
}
}
public String getNewToken() {
return newToken;
}
public void setNewToken(final String newToken) {
this.newToken = newToken;
}
public String getNewSegmentation() {
return newSegmentation;
}
public void setNewSegmentation(final String newSegmentation) {
this.newSegmentation = newSegmentation;
}
public String getNewReading() {
return newReading;
}
public void setNewReading(final String newReading) {
this.newReading = newReading;
}
public String getNewPos() {
return newPos;
}
public void setNewPos(final String newPos) {
this.newPos = newPos;
}
public String getToken() {
return token;
}
public String getSegmentation() {
return segmentation;
}
public String getReading() {
return reading;
}
public String getPos() {
return pos;
}
public boolean isUpdated() {
return newToken != null;
}
public boolean isDeleted() {
return isUpdated() && newToken.length() == 0;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + (pos == null ? 0 : pos.hashCode());
result = prime * result + (reading == null ? 0 : reading.hashCode());
result = prime * result + (segmentation == null ? 0 : segmentation.hashCode());
result = prime * result + (token == null ? 0 : token.hashCode());
return result;
}
@Override
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final UserDictItem other = (UserDictItem) obj;
if (pos == null) {
if (other.pos != null) {
return false;
}
} else if (!pos.equals(other.pos)) {
return false;
}
if (reading == null) {
if (other.reading != null) {
return false;
}
} else if (!reading.equals(other.reading)) {
return false;
}
if (segmentation == null) {
if (other.segmentation != null) {
return false;
}
} else if (!segmentation.equals(other.segmentation)) {
return false;
}
if (token == null) {
if (other.token != null) {
return false;
}
} else if (!token.equals(other.token)) {
return false;
}
return true;
}
@Override
public String toString() {
return "UserDictItem [token=" + token + ", segmentation=" + segmentation + ", reading=" + reading + ", pos=" + pos + ", newToken="
+ newToken + ", newSegmentation=" + newSegmentation + ", newReading=" + newReading + ", newPos=" + newPos + "]";
}
public String toLineString() {
final StringBuilder buf = new StringBuilder(100);
if (isUpdated()) {
buf.append(quoteEscape(newToken));
buf.append(',');
buf.append(quoteEscape(newSegmentation));
buf.append(',');
buf.append(quoteEscape(newReading));
buf.append(',');
buf.append(quoteEscape(newPos));
} else {
buf.append(quoteEscape(token));
buf.append(',');
buf.append(quoteEscape(segmentation));
buf.append(',');
buf.append(quoteEscape(reading));
buf.append(',');
buf.append(quoteEscape(pos));
}
return buf.toString();
}
private static String quoteEscape(final String original) {
String result = original;
if (result.indexOf('\"') >= 0) {
result = result.replace("\"", "\"\"");
}
if (result.indexOf(',') >= 0) {
result = "\"" + result + "\"";
}
return result;
}
}
|
[
"shinsuke@yahoo.co.jp"
] |
shinsuke@yahoo.co.jp
|
6a9dece32ceab1240f7ef0503af4cf5570dc67e1
|
47e128c03741c6137bc4305f23f87755f46d1399
|
/java-project2-server/src24-25 PBC Wr/main/java/com/eomcs/lms/service/impl/BoardServiceImpl.java
|
c26387b395defcc052730aab873fe0655a3b658d
|
[] |
no_license
|
jeajoong/bitcamp-java-2018-12
|
cda916ca6ec02336bf39c374178a3c158faa1a15
|
f10ccbcb498de0d11d02d78b7204fde6ed8e296d
|
refs/heads/master
| 2021-07-25T09:41:30.978244
| 2020-05-07T08:32:54
| 2020-05-07T08:32:54
| 163,650,670
| 0
| 0
| null | 2020-04-30T11:56:40
| 2018-12-31T08:00:40
|
Java
|
UTF-8
|
Java
| false
| false
| 805
|
java
|
package service.impl;
import java.util.List;
import com.eomcs.lms.dao.BoardDao;
import com.eomcs.lms.domain.Board;
import service.BoardService;
public class BoardServiceImpl implements BoardService{
BoardDao boardDao;
public BoardServiceImpl(BoardDao boardDao) {
this.boardDao = boardDao;
}
@Override
public List<Board> list() {
return boardDao.findAll();
}
@Override
public int add(Board board) {
return boardDao.insert(board);
}
@Override
public Board get(int no) {
Board board = boardDao.findByNo(no);
if(board != null) {
boardDao.increaseCount(no);
}
return board;
}
@Override
public int update(Board board) {
return boardDao.update(board);
}
@Override
public int delete(int no) {
return boardDao.delete(no);
}
}
|
[
"jeajoong605@gmail.com"
] |
jeajoong605@gmail.com
|
cd6819fe535de6c2a701052fff1b872612631a94
|
88d3adf0d054afabe2bc16dc27d9e73adf2e7c61
|
/3rdparty/httpclient/src/main/java/org/apache/http/conn/scheme/LayeredSchemeSocketFactory.java
|
9bc57c99bbc4c1b971c6095868d0f4151ae18086
|
[
"Apache-2.0"
] |
permissive
|
nntoan/vietspider
|
5afc8d53653a1bb3fc2e20fb12a918ecf31fdcdc
|
79d563afea3abd93f7fdff5bcecb5bac2162d622
|
refs/heads/master
| 2021-01-10T06:23:20.588974
| 2020-05-06T09:44:32
| 2020-05-06T09:44:32
| 54,641,132
| 0
| 2
| null | 2020-05-06T07:52:29
| 2016-03-24T12:45:02
|
Java
|
UTF-8
|
Java
| false
| false
| 2,406
|
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.
* ====================================================================
*
* 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/>.
*
*/
package org.apache.http.conn.scheme;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
/**
* A {@link SocketFactory SocketFactory} for layered sockets (SSL/TLS).
* See there for things to consider when implementing a socket factory.
*
* @since 4.1
*/
public interface LayeredSchemeSocketFactory extends SchemeSocketFactory {
/**
* Returns a socket connected to the given host that is layered over an
* existing socket. Used primarily for creating secure sockets through
* proxies.
*
* @param socket the existing socket
* @param target the name of the target host.
* @param port the port to connect to on the target host
* @param autoClose a flag for closing the underling socket when the created
* socket is closed
*
* @return Socket a new socket
*
* @throws IOException if an I/O error occurs while creating the socket
* @throws UnknownHostException if the IP address of the host cannot be
* determined
*/
Socket createLayeredSocket(
Socket socket,
String target,
int port,
boolean autoClose
) throws IOException, UnknownHostException;
}
|
[
"nntoan@users.noreply.github.com"
] |
nntoan@users.noreply.github.com
|
ac98c96a7662b9f2c119c568a4581a7c68c59cc4
|
3dd35c0681b374ce31dbb255b87df077387405ff
|
/generated/com/guidewire/_generated/entity/GL7PremOpsLossCost007RTInternal.java
|
e8796835688cef7d86d4f7bfdda11dfdd513da08
|
[] |
no_license
|
walisashwini/SBTBackup
|
58b635a358e8992339db8f2cc06978326fed1b99
|
4d4de43576ec483bc031f3213389f02a92ad7528
|
refs/heads/master
| 2023-01-11T09:09:10.205139
| 2020-11-18T12:11:45
| 2020-11-18T12:11:45
| 311,884,817
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,626
|
java
|
package com.guidewire._generated.entity;
@javax.annotation.Generated(value = "com.guidewire.pl.metadata.codegen.Codegen", comments = "GL7PremOpsLossCost007RT.eti;GL7PremOpsLossCost007RT.eix;GL7PremOpsLossCost007RT.etx")
@java.lang.SuppressWarnings(value = {"deprecation", "unchecked"})
public interface GL7PremOpsLossCost007RTInternal extends com.guidewire._generated.entity.RetireableInternal, com.guidewire._generated.entity.SimpleEffDatedInternal {
/**
* Gets the value of the ClassCodeCGLProds field.
* ClassCodeCGLProds
*/
@gw.internal.gosu.parser.ExtendedProperty
public java.lang.String getClassCodeCGLProds();
/**
* Gets the value of the Jurisdiction field.
* Jurisdiction
*/
@gw.internal.gosu.parser.ExtendedProperty
public typekey.Jurisdiction getJurisdiction();
/**
* Gets the value of the PremOpsTerr field.
* PremOpsTerr
*/
@gw.internal.gosu.parser.ExtendedProperty
public java.lang.String getPremOpsTerr();
/**
* Gets the value of the Value field.
* Value
*/
@gw.internal.gosu.parser.ExtendedProperty
public java.math.BigDecimal getValue();
/**
* Sets the value of the ClassCodeCGLProds field.
*/
public void setClassCodeCGLProds(java.lang.String value);
/**
* Sets the value of the Jurisdiction field.
*/
public void setJurisdiction(typekey.Jurisdiction value);
/**
* Sets the value of the PremOpsTerr field.
*/
public void setPremOpsTerr(java.lang.String value);
/**
* Sets the value of the Value field.
*/
public void setValue(java.math.BigDecimal value);
}
|
[
"ashwini@cruxxtechnologies.com"
] |
ashwini@cruxxtechnologies.com
|
ed262a2b01e7b4aab672bd42f1238a0d424c49df
|
c1c6dc7d6806f6891e42c73ec0af7c32881aa2ec
|
/jstarcraft-ai-data/src/main/java/com/jstarcraft/ai/data/converter/JsonConverter.java
|
b7503c34d7792fc945a771fc90d8dacaa4d8a6f8
|
[
"Apache-2.0"
] |
permissive
|
HongZhaoHua/jstarcraft-ai
|
21ead2a6c216c51dfb4f986406235029b3da165b
|
05b156623385dd817543bd1ac83943d2af0cb043
|
refs/heads/master
| 2023-04-18T04:44:51.601053
| 2023-04-11T03:14:22
| 2023-04-11T03:14:22
| 160,455,791
| 195
| 52
|
Apache-2.0
| 2022-08-06T05:14:00
| 2018-12-05T03:34:38
|
Java
|
UTF-8
|
Java
| false
| false
| 5,707
|
java
|
package com.jstarcraft.ai.data.converter;
import java.io.BufferedReader;
import java.io.IOException;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Map.Entry;
import com.jstarcraft.ai.data.DataModule;
import com.jstarcraft.ai.data.attribute.QualityAttribute;
import com.jstarcraft.ai.data.attribute.QuantityAttribute;
import com.jstarcraft.ai.data.module.DenseModule;
import com.jstarcraft.ai.data.module.SparseModule;
import com.jstarcraft.core.common.conversion.ConversionUtility;
import com.jstarcraft.core.common.conversion.json.JsonUtility;
import com.jstarcraft.core.common.reflection.TypeUtility;
import com.jstarcraft.core.utility.KeyValue;
import com.jstarcraft.core.utility.StringUtility;
import it.unimi.dsi.fastutil.ints.Int2FloatRBTreeMap;
import it.unimi.dsi.fastutil.ints.Int2FloatSortedMap;
import it.unimi.dsi.fastutil.ints.Int2IntRBTreeMap;
import it.unimi.dsi.fastutil.ints.Int2IntSortedMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
/**
* JavaScript Object Notation转换器
*
* @author Birdy
*
*/
public class JsonConverter extends StreamConverter {
private final static Type denseType = TypeUtility.parameterize(ArrayList.class, Object.class);
private final static Type sparseType = TypeUtility.parameterize(Int2ObjectOpenHashMap.class, Object.class);
public JsonConverter(Collection<QualityAttribute> qualityAttributes, Collection<QuantityAttribute> quantityAttributes) {
super(qualityAttributes, quantityAttributes);
}
@Override
protected int parseData(DataModule module, BufferedReader buffer) throws IOException {
int count = 0;
Int2IntSortedMap qualityFeatures = new Int2IntRBTreeMap();
Int2FloatSortedMap quantityFeatures = new Int2FloatRBTreeMap();
int size = module.getQualityOrder() + module.getQuantityOrder();
if (module instanceof DenseModule) {
String line = null;
while ((line = buffer.readLine()) != null) {
if (StringUtility.isBlank(line)) {
// TODO 考虑改为异常或者日志.
continue;
}
ArrayList<Object> datas = JsonUtility.string2Object(line, denseType);
for (int index = 0; index < size; index++) {
Object value = datas.get(index);
Entry<Integer, KeyValue<String, Boolean>> term = module.getOuterKeyValue(index);
KeyValue<String, Boolean> keyValue = term.getValue();
if (keyValue.getValue()) {
QualityAttribute attribute = qualityAttributes.get(keyValue.getKey());
value = ConversionUtility.convert(value, attribute.getType());
int feature = attribute.convertData((Comparable) value);
qualityFeatures.put(module.getQualityInner(keyValue.getKey()) + index - term.getKey(), feature);
} else {
QuantityAttribute attribute = quantityAttributes.get(keyValue.getKey());
value = ConversionUtility.convert(value, attribute.getType());
float feature = attribute.convertData((Number) value);
quantityFeatures.put(module.getQuantityInner(keyValue.getKey()) + index - term.getKey(), feature);
}
}
module.associateInstance(qualityFeatures, quantityFeatures);
qualityFeatures.clear();
quantityFeatures.clear();
count++;
}
} else if (module instanceof SparseModule) {
String line = null;
while ((line = buffer.readLine()) != null) {
if (StringUtility.isBlank(line)) {
// TODO 考虑改为异常或者日志.
continue;
}
Int2ObjectOpenHashMap<Object> datas = JsonUtility.string2Object(line, sparseType);
for (Int2ObjectMap.Entry<Object> element : datas.int2ObjectEntrySet()) {
int index = element.getIntKey();
Object value = element.getValue();
Entry<Integer, KeyValue<String, Boolean>> term = module.getOuterKeyValue(index);
KeyValue<String, Boolean> keyValue = term.getValue();
if (keyValue.getValue()) {
QualityAttribute attribute = qualityAttributes.get(keyValue.getKey());
value = ConversionUtility.convert(value, attribute.getType());
int feature = attribute.convertData((Comparable) value);
qualityFeatures.put(module.getQualityInner(keyValue.getKey()) + index - term.getKey(), feature);
} else {
QuantityAttribute attribute = quantityAttributes.get(keyValue.getKey());
value = ConversionUtility.convert(value, attribute.getType());
float feature = attribute.convertData((Number) value);
quantityFeatures.put(module.getQuantityInner(keyValue.getKey()) + index - term.getKey(), feature);
}
}
module.associateInstance(qualityFeatures, quantityFeatures);
qualityFeatures.clear();
quantityFeatures.clear();
count++;
}
}
return count;
}
}
|
[
"Birdy@LAPTOP-QRG8T75T"
] |
Birdy@LAPTOP-QRG8T75T
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.