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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7f10bc5d977e1cbe8c373a4a46f0ba67d446588d
|
ee99c44457879e56bdfdb9004072bd088aa85b15
|
/live-core/src/main/java/cn/idongjia/live/db/mybatis/po/PureLiveBookPO.java
|
34847fbeb98a909ccc354434b6df7be868bfdd23
|
[] |
no_license
|
maikezhang/maike_live
|
b91328b8694877f3a2a8132dcdd43c130b66e632
|
a16be995e4e3f8627a6168d348f8fefd1a205cb3
|
refs/heads/master
| 2020-04-07T15:10:52.210492
| 2018-11-21T03:21:18
| 2018-11-21T03:21:18
| 158,475,020
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 651
|
java
|
package cn.idongjia.live.db.mybatis.po;
import lombok.Getter;
import lombok.Setter;
import java.sql.Timestamp;
/**
* Created by zhang on 2017/3/9.
* 纯直播订阅数据表类
*/
@Getter
@Setter
public class PureLiveBookPO extends BasePO {
/**
* 唯一ID
*/
private Long id;
/**
* 用户ID
*/
private Long userId;
/**
* 直播ID
*/
private Long liveId;
/**
* 订阅状态-1、删除0、正常
*/
private Integer status;
/**
* 创建时间
*/
private Timestamp createTime;
/**
* 最后修改时间
*/
private Timestamp modifiedTime;
}
|
[
"zhangyingjie@idongjia.cn"
] |
zhangyingjie@idongjia.cn
|
247b601ce2924756e3944765821dc38968855502
|
5b20675279b8c3559512397563b7dacc690e8785
|
/gameserver/branches/obfuscated/login-src/com/l2jfrozen/loginserver/network/serverpackets/PlayOk.java
|
2903e045d10ef40728ae29c540ab1bab3a2d7154
|
[] |
no_license
|
Bokoa/l2jfrozen
|
0226a1d30eaf4bfa0078fedb46ac4f650cbca805
|
624d29604b1626f379929f0100c6a3a431a7f89b
|
refs/heads/master
| 2023-02-11T01:39:49.699822
| 2020-05-10T12:50:46
| 2020-05-10T12:50:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,135
|
java
|
/*
* Copyright (C) 2004-2016 L2J Server
*
* This file is part of L2J Server.
*
* L2J Server is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* L2J Server is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jfrozen.loginserver.network.serverpackets;
import a.a.aa;
/**
*
*/
public final class PlayOk extends L2LoginServerPacket
{
private final int _playOk1, _playOk2;
public PlayOk(final aa sessionKey)
{
_playOk1 = sessionKey.a;
_playOk2 = sessionKey.b;
}
@Override
public void write()
{
C(0x07);
D(_playOk1);
D(_playOk2);
}
}
|
[
"77194947+Shyla-L2jFrozen@users.noreply.github.com"
] |
77194947+Shyla-L2jFrozen@users.noreply.github.com
|
9df2f6e5a3250a803004326ff6e2ea81b3fa275b
|
1d1e9aa76a882ce430f17c6c6570a00086b0b79c
|
/src/main/java/no/cantara/docsite/executor/ExecutorService.java
|
9a5631ee9864f1a13232a7883c723b040e7fddd8
|
[
"Apache-2.0"
] |
permissive
|
mortsa/SourceCodePortal
|
32d71317b824f370aa23cce36e3c47bbd6b513ed
|
a1d42eb5f73674e0a677cb62bf98852492ed891b
|
refs/heads/master
| 2020-04-03T10:04:16.539283
| 2018-10-26T15:45:51
| 2018-10-26T15:45:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 613
|
java
|
package no.cantara.docsite.executor;
import java.util.concurrent.ThreadPoolExecutor;
public interface ExecutorService {
int MAX_RETRIES = 3;
int BLOCKING_QUEUE_SIZE = 5000;
long WAIT_FOR_THREAD_POOL = 50;
long WAIT_FOR_TERMINATION = 100;
long SLEEP_INTERVAL = 100;
void start();
void shutdown();
void waitForWorkerCompletion() throws InterruptedException;
ThreadPoolExecutor getThreadPool();
void queue(WorkerTask workerTask);
int queued();
int countActiveThreads();
static ExecutorService create() {
return new ExecutorThreadPool();
}
}
|
[
"oranheim@gmail.com"
] |
oranheim@gmail.com
|
0d29a7339019493739bd32b945b94f1b983bfb8f
|
724c2eeac5a587f6e9ff8f02b4bd393ef3351e19
|
/src/main/java/be/docarch/maven/oxt/JarMojo.java
|
0d51982729ddf28d06eefb225aae2d6be37ad10d
|
[] |
no_license
|
bertfrees/oxt-maven-plugin
|
2dd175abd15459e90981a62b0080fe736ba6b03a
|
89afaee9b421a859bd8adb9cfdebb7778f2dcb3b
|
refs/heads/master
| 2021-01-10T20:36:00.009876
| 2019-05-31T10:38:05
| 2019-05-31T10:38:05
| 6,322,823
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,469
|
java
|
package be.docarch.maven.oxt;
import java.io.File;
import org.apache.commons.lang.StringUtils;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.BuildPluginManager;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration;
import org.codehaus.plexus.util.DirectoryScanner;
import org.codehaus.plexus.util.xml.Xpp3Dom;
import static org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo;
import static org.twdata.maven.mojoexecutor.MojoExecutor.executionEnvironment;
import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId;
import static org.twdata.maven.mojoexecutor.MojoExecutor.configuration;
import static org.twdata.maven.mojoexecutor.MojoExecutor.element;
import static org.twdata.maven.mojoexecutor.MojoExecutor.goal;
import static org.twdata.maven.mojoexecutor.MojoExecutor.groupId;
import static org.twdata.maven.mojoexecutor.MojoExecutor.plugin;
import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
import static org.twdata.maven.mojoexecutor.PlexusConfigurationUtils.toXpp3Dom;
/**
* Create Manifest and build JAR for OpenOffice extension.
*
* @goal jar
* @phase package
*/
public class JarMojo extends AbstractMojo {
private static final String centralRegistrationClass = "be.docarch.maven.oxt.CentralRegistration";
/**
* Directory containing the generated JAR.
*
* @parameter expression="${project.build.directory}/oxt"
* @required
*/
private File outputDirectory;
/**
* Name of the generated JAR.
*
* @parameter expression="${project.build.finalName}"
* @required
*/
private String finalName;
/**
* List of files to include.
*
* @parameter
*/
protected XmlPlexusConfiguration includes;
/**
* List of files to exclude.
*
* @parameter
*/
protected XmlPlexusConfiguration excludes;
/**
* Space separated list of registration classes.
*
* @parameter
* @required
*/
private String registrationClasses;
/**
* Comma separated list of files to include in the ClassPath.
* Specified as fileset patterns which are relative to outputDirectory.
*
* @parameter
*/
private String classPath = "";
/**
* The project currently being build.
*
* @parameter expression="${project}"
* @required
* @readonly
*/
private MavenProject project;
/**
* The current Maven session.
*
* @parameter expression="${session}"
* @required
* @readonly
*/
private MavenSession session;
/**
* The Maven BuildPluginManager component.
*
* @component
* @required
*/
private BuildPluginManager pluginManager;
public void execute() throws MojoExecutionException {
try {
String[] classPathFiles = StringUtils.split(classPath, ':');
if (classPath.contains("*")) {
DirectoryScanner scanner = new DirectoryScanner();
scanner.setBasedir(outputDirectory.getAbsolutePath());
scanner.setIncludes(classPathFiles);
scanner.scan();
classPathFiles = scanner.getIncludedFiles(); }
Xpp3Dom configuration = configuration(
element("outputDirectory", outputDirectory.getAbsolutePath()),
element("finalName", finalName),
element("archive",
element("manifestEntries",
element("Implementation-Title", "${project.artifactId}"),
element("Implementation-Version", "${project.version}"),
element("UNO-Type-Path", ""),
element("RegistrationClassName", centralRegistrationClass),
element("Class-Path", StringUtils.join(classPathFiles, " "))),
element("manifestSections",
element("manifestSection",
element("name",
centralRegistrationClass.replaceAll("\\.", "/") + ".class"),
element("manifestEntries",
element("RegistrationClasses",
registrationClasses.trim().replaceAll("\\s+", " ")))))));
if (includes != null)
configuration.addChild(toXpp3Dom(includes));
if (excludes != null)
configuration.addChild(toXpp3Dom(excludes));
executeMojo(
plugin(
groupId("org.apache.maven.plugins"),
artifactId("maven-jar-plugin"),
version("2.4")),
goal("jar"),
configuration,
executionEnvironment(
project,
session,
pluginManager));
project.getArtifact().setFile(null); }
catch (Exception e) {
throw new MojoExecutionException("Error generating JAR", e); }
}
}
|
[
"bertfrees@gmail.com"
] |
bertfrees@gmail.com
|
91358cfd74a8977fbdfa0e821c89cea325bb8737
|
20059c7e0d529c5bfb296e98f3d984a696c9e966
|
/common/src/main/java/com/serenegiant/media/MediaVideoDecoder.java
|
8b8d7d7f7b42fc2fd629be2b7b984f89c0c8311d
|
[
"Apache-2.0"
] |
permissive
|
pocketfpv/libcommon
|
96ec5693c25793a7d1094d049ec7284c697aa8f6
|
c5839d68581028dae530681f0a27c38b700f3871
|
refs/heads/master
| 2021-01-23T13:08:30.634537
| 2019-01-25T01:55:09
| 2019-01-25T01:55:09
| 93,223,526
| 0
| 0
|
Apache-2.0
| 2019-01-25T01:55:10
| 2017-06-03T04:32:28
|
Java
|
UTF-8
|
Java
| false
| false
| 3,593
|
java
|
package com.serenegiant.media;
/*
* libcommon
* utility/helper classes for myself
*
* Copyright (c) 2014-2018 saki t_saki@serenegiant.com
*
* 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.
*/
import android.annotation.TargetApi;
import android.media.MediaCodec;
import android.media.MediaExtractor;
import android.media.MediaFormat;
import android.media.MediaMetadataRetriever;
import android.os.Build;
import android.text.TextUtils;
import android.util.Log;
import android.view.Surface;
import com.serenegiant.common.BuildConfig;
import java.io.IOException;
import java.nio.ByteBuffer;
@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
public class MediaVideoDecoder extends MediaDecoder {
private static final boolean DEBUG = BuildConfig.DEBUG;
private Surface mSurface;
private int mVideoWidth, mVideoHeight;
private int mRotation;
public int getVideoWidth() {
return mVideoWidth;
}
public int getVideoHeight() {
return mVideoHeight;
}
public int getRotation() {
return mRotation;
}
@Override
protected int handlePrepare(final MediaExtractor media_extractor) {
int track_index = selectTrack(media_extractor, "video/");
if (track_index >= 0) {
final MediaFormat format = media_extractor.getTrackFormat(track_index);
mVideoWidth = format.getInteger(MediaFormat.KEY_WIDTH);
mVideoHeight = format.getInteger(MediaFormat.KEY_HEIGHT);
if (DEBUG) Log.v(TAG, String.format("format:size(%d,%d),duration=%d,bps=%d,rotation=%d",
mVideoWidth, mVideoHeight, getDuration(), getBitRate(), mRotation));
}
return track_index;
}
@Override
protected MediaCodec createCodec(final MediaExtractor media_extractor,
final int track_index, final MediaFormat format)
throws IOException {
if (Build.VERSION.SDK_INT > 18) {
format.setInteger(MediaFormat.KEY_PUSH_BLANK_BUFFERS_ON_STOP, 1);
}
return super.createCodec(media_extractor, track_index, format);
}
public void setSurface(Surface surface) {
mSurface = surface;
}
@Override
protected Surface getOutputSurface() {
if (mSurface == null) {
final IllegalArgumentException e
= new IllegalArgumentException("need to call setSurface before prepare");
if (!callErrorHandler(e)) {
throw e;
}
}
return mSurface;
}
@Override
protected boolean handleOutput(final ByteBuffer buffer,
final int offset, final int size,
final long presentationTimeUs) {
return false;
}
@Override
protected void updateMovieInfo(final MediaMetadataRetriever metadata) {
super.updateMovieInfo(metadata);
mVideoWidth = mVideoHeight = mRotation = 0;
String value = metadata.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH);
if (!TextUtils.isEmpty(value)) {
mVideoWidth = Integer.parseInt(value);
}
value = metadata.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT);
if (!TextUtils.isEmpty(value)) {
mVideoHeight = Integer.parseInt(value);
}
value = metadata.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_ROTATION);
if (!TextUtils.isEmpty(value)) {
mRotation = Integer.parseInt(value);
}
}
}
|
[
"saki4510t@gmail.com"
] |
saki4510t@gmail.com
|
e51e45f984ef2d671958f1c1c1fcc693eee6fe31
|
8e20336d5c5bd0500e8d952ce9613f3f0382845c
|
/src/org/omg/PortableInterceptor/NON_EXISTENT.java
|
aca023086357f952f1cb2719a843980a851572e4
|
[] |
no_license
|
ifhuang/jdk1.7.0_45-src
|
b49a62386d6200c594b195d5b366a508c069b063
|
502a8a00b0ae4744d1c7360040f77a5b448471b5
|
refs/heads/master
| 2020-06-15T05:11:47.111092
| 2015-08-30T13:42:42
| 2015-08-30T13:42:42
| 24,877,648
| 0
| 9
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 451
|
java
|
package org.omg.PortableInterceptor;
/**
* org/omg/PortableInterceptor/NON_EXISTENT.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from ../../../../src/share/classes/org/omg/PortableInterceptor/Interceptors.idl
* Tuesday, October 8, 2013 5:42:17 AM PDT
*/
public interface NON_EXISTENT
{
/** Object adapter state indicating that the adapter has been destroyed.
*/
public static final short value = (short)(4);
}
|
[
"ifhuang91@gmail.com"
] |
ifhuang91@gmail.com
|
34a88b2b8c8a0e2d9ad4f8fc0b2356cdcea650a0
|
43b02ae78c60d27927a93347ba6e53aa06ffe30d
|
/third-party/java/dx/src/com/android/dx/ssa/PhiTypeResolver.java
|
2fc999d2e00e331470d71356e4e129ad857039b3
|
[
"Apache-2.0"
] |
permissive
|
bocon13/buck
|
75e7b6bb2cba9976d2f836e22a6980ae12966ff1
|
bb08f203569a2527a78b6471d016479d52783f3e
|
refs/heads/master
| 2021-01-18T08:33:02.435393
| 2017-12-20T22:23:17
| 2017-12-20T22:30:51
| 55,684,269
| 0
| 1
|
Apache-2.0
| 2017-12-20T22:30:52
| 2016-04-07T10:05:28
|
Java
|
UTF-8
|
Java
| false
| false
| 6,294
|
java
|
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.dx.ssa;
import com.android.dx.cf.code.Merger;
import com.android.dx.rop.code.LocalItem;
import com.android.dx.rop.code.RegisterSpec;
import com.android.dx.rop.code.RegisterSpecList;
import com.android.dx.rop.type.Type;
import java.util.BitSet;
import java.util.List;
/**
* Resolves the result types of phi instructions. When phi instructions
* are inserted, their result types are set to BT_VOID (which is a nonsensical
* type for a register) but must be resolve to a real type before converting
* out of SSA form.<p>
*
* The resolve is done as an iterative merge of each phi's operand types.
* Phi operands may be themselves be the result of unresolved phis,
* and the algorithm tries to find the most-fit type (for example, if every
* operand is the same constant value or the same local variable info, we want
* that to be reflected).<p>
*
* This algorithm assumes a dead-code remover has already removed all
* circular-only phis that may have been inserted.
*/
public class PhiTypeResolver {
SsaMethod ssaMeth;
/** indexed by register; all registers still defined by unresolved phis */
private final BitSet worklist;
/**
* Resolves all phi types in the method
* @param ssaMeth method to process
*/
public static void process (SsaMethod ssaMeth) {
new PhiTypeResolver(ssaMeth).run();
}
private PhiTypeResolver(SsaMethod ssaMeth) {
this.ssaMeth = ssaMeth;
worklist = new BitSet(ssaMeth.getRegCount());
}
/**
* Runs the phi-type resolver.
*/
private void run() {
int regCount = ssaMeth.getRegCount();
for (int reg = 0; reg < regCount; reg++) {
SsaInsn definsn = ssaMeth.getDefinitionForRegister(reg);
if (definsn != null
&& (definsn.getResult().getBasicType() == Type.BT_VOID)) {
worklist.set(reg);
}
}
int reg;
while ( 0 <= (reg = worklist.nextSetBit(0))) {
worklist.clear(reg);
/*
* definitions on the worklist have a type of BT_VOID, which
* must have originated from a PhiInsn.
*/
PhiInsn definsn = (PhiInsn)ssaMeth.getDefinitionForRegister(reg);
if (resolveResultType(definsn)) {
/*
* If the result type has changed, re-resolve all phis
* that use this.
*/
List<SsaInsn> useList = ssaMeth.getUseListForRegister(reg);
int sz = useList.size();
for (int i = 0; i < sz; i++ ) {
SsaInsn useInsn = useList.get(i);
RegisterSpec resultReg = useInsn.getResult();
if (resultReg != null && useInsn instanceof PhiInsn) {
worklist.set(resultReg.getReg());
}
}
}
}
}
/**
* Returns true if a and b are equal, whether
* or not either of them are null.
* @param a
* @param b
* @return true if equal
*/
private static boolean equalsHandlesNulls(LocalItem a, LocalItem b) {
return (a == b) || ((a != null) && a.equals(b));
}
/**
* Resolves the result of a phi insn based on its operands. The "void"
* type, which is a nonsensical type for a register, is used for
* registers defined by as-of-yet-unresolved phi operations.
*
* @return true if the result type changed, false if no change
*/
boolean resolveResultType(PhiInsn insn) {
insn.updateSourcesToDefinitions(ssaMeth);
RegisterSpecList sources = insn.getSources();
// Start by finding the first non-void operand
RegisterSpec first = null;
int firstIndex = -1;
int szSources = sources.size();
for (int i = 0 ; i <szSources ; i++) {
RegisterSpec rs = sources.get(i);
if (rs.getBasicType() != Type.BT_VOID) {
first = rs;
firstIndex = i;
}
}
if (first == null) {
// All operands are void -- we're not ready to resolve yet
return false;
}
LocalItem firstLocal = first.getLocalItem();
Type mergedType = first.getType();
boolean sameLocals = true;
for (int i = 0 ; i < szSources ; i++) {
if (i == firstIndex) {
continue;
}
RegisterSpec rs = sources.get(i);
// Just skip void (unresolved phi results) for now
if (rs.getBasicType() == Type.BT_VOID){
continue;
}
sameLocals = sameLocals
&& equalsHandlesNulls(firstLocal, rs.getLocalItem());
mergedType = (Type)Merger.mergeType(mergedType, rs.getType());
}
Type newResultType;
if (mergedType != null) {
newResultType = mergedType;
} else {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < szSources; i++) {
sb.append(sources.get(i).toString());
sb.append(' ');
}
throw new RuntimeException ("Couldn't map types in phi insn:" + sb);
}
LocalItem newLocal = sameLocals ? firstLocal : null;
RegisterSpec result = insn.getResult();
if ((result.getTypeBearer() == newResultType)
&& equalsHandlesNulls(newLocal, result.getLocalItem())) {
return false;
}
insn.changeResultType(newResultType, newLocal);
return true;
}
}
|
[
"sdwilsh@fb.com"
] |
sdwilsh@fb.com
|
387e54bef11af904046a86c1afb98d225b107abe
|
df134b422960de6fb179f36ca97ab574b0f1d69f
|
/org/bukkit/entity/minecart/StorageMinecart.java
|
2481e23525a8c23a140dd09cdab89eeaa414a529
|
[] |
no_license
|
TheShermanTanker/NMS-1.16.3
|
bbbdb9417009be4987872717e761fb064468bbb2
|
d3e64b4493d3e45970ec5ec66e1b9714a71856cc
|
refs/heads/master
| 2022-12-29T15:32:24.411347
| 2020-10-08T11:56:16
| 2020-10-08T11:56:16
| 302,324,687
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 491
|
java
|
package org.bukkit.entity.minecart;
import com.destroystokyo.paper.loottable.LootableEntityInventory;
import org.bukkit.entity.Minecart;
import org.bukkit.inventory.InventoryHolder;
public interface StorageMinecart extends Minecart, InventoryHolder, LootableEntityInventory {}
/* Location: C:\Users\Josep\Downloads\Decompile Minecraft\tuinity-1.16.3.jar!\org\bukkit\entity\minecart\StorageMinecart.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
[
"tanksherman27@gmail.com"
] |
tanksherman27@gmail.com
|
fd8333065875cbfa1f0cd9e64a89712d7b53ad13
|
5313a900a672805bdaf6dd586dec96523c6caf55
|
/src/main/java/com/ociweb/pronghorn/pipe/PipeConfig.java
|
af87d1273c731934cda29c2059e0f143a99c6a98
|
[] |
no_license
|
stgk4/PronghornPipes
|
41e8170f68bce13955c88e8d768637f0dc1838b2
|
cfa44f4754651a3f1a3199eb4c834c083fdef925
|
refs/heads/master
| 2021-01-25T08:27:47.895745
| 2017-07-19T19:05:59
| 2017-07-19T19:05:59
| 93,766,298
| 0
| 0
| null | 2017-07-07T22:16:52
| 2017-06-08T15:41:55
|
Java
|
UTF-8
|
Java
| false
| false
| 6,412
|
java
|
package com.ociweb.pronghorn.pipe;
/**
* @param <T>
*/
public class PipeConfig<T extends MessageSchema<T>> {
//try to keep all this under 20MB and 1 RB under 64K if possible under 256K is highly encouraged
final byte slabBits;
final byte blobBits;
final byte[] byteConst;
final T schema;
int debugFlags = 0;
/**
* This is NOT the constructor you are looking for.
*/
public PipeConfig(byte primaryBits, byte byteBits, byte[] byteConst, T messageSchema) {
this.slabBits = primaryBits;
this.blobBits = byteBits;
this.byteConst = byteConst;
this.schema = messageSchema;
}
public PipeConfig(T messageSchema) {
//default size which is smaller than half of 64K because this is the L1 cache size on intel haswell.
this.slabBits = 6;
this.blobBits = 15;
this.byteConst = null;
this.schema = messageSchema;
//validate
FieldReferenceOffsetManager.maxVarLenFieldsPerPrimaryRingSize(MessageSchema.from(messageSchema), 1<<slabBits);
}
public long totalBytesAllocated() {
return (1L<<blobBits)+(4L<<slabBits);
}
public byte slabBits() {
return slabBits;
}
public int minimumFragmentsOnPipe() {
return (1<<slabBits)/FieldReferenceOffsetManager.maxFragmentSize(schema.from);
}
public int maxVarLenSize() {
return FieldReferenceOffsetManager.maxVarLenFieldsPerPrimaryRingSize(schema.from, 1<<slabBits);
}
public static <S extends MessageSchema<S>> Pipe<S> pipe(PipeConfig<S> config) {
return new Pipe<S>(config);
}
public String toString() {
return "Primary:"+slabBits+" Secondary:"+blobBits;
}
/**
* This is the constructor you are looking for.
*
* Build a reusable ring configuration object that holds the FROM and ring size definition. We wait to allocate
* the ring later to support NUMA platforms. In order to wait we require an object to hold this information.
*
* Because some messages are made up of multiple fragments and not all fragments are the same size this constructor will
* make use of the largest fragment defined in the from as the bases for how big to make the primary ring. Once the
* primary ring is defined we find the fragment with the highest ratio of variable length fields and assume the ring
* is full of those exclusively. This gives us the maximum number of variable length fields that can be expected which
* is multiplied by the provided maximumLenghOfVariableLengthFields to get the minimum size of the byte ring. This value is
* then rounded up to the next power of 2.
*/
public PipeConfig(T messageSchema, int minimumFragmentsOnRing) {
this(messageSchema, minimumFragmentsOnRing, 0);
}
public PipeConfig(T messageSchema, int minimumFragmentsOnRing, int maximumLenghOfVariableLengthFields) {
int biggestFragment = FieldReferenceOffsetManager.maxFragmentSize(MessageSchema.from(messageSchema));
int primaryMinSize = minimumFragmentsOnRing*biggestFragment;
this.slabBits = (byte)(32 - Integer.numberOfLeadingZeros(primaryMinSize - 1));
int maxVarFieldsInRingAtOnce = FieldReferenceOffsetManager.maxVarLenFieldsPerPrimaryRingSize(MessageSchema.from(messageSchema), 1<<slabBits);
int totalBlobSize = maxVarFieldsInRingAtOnce * maximumLenghOfVariableLengthFields;
this.blobBits = ((0==maximumLenghOfVariableLengthFields) | (0==maxVarFieldsInRingAtOnce))? (byte)0 : (byte)(32 - Integer.numberOfLeadingZeros(totalBlobSize - 1));
this.byteConst = null;
this.schema = messageSchema;
validate(minimumFragmentsOnRing, maximumLenghOfVariableLengthFields);
}
private void validate(int minimumFragmentsOnRing, int maximumLenghOfVariableLengthFields) {
if (blobBits>31) {
throw new UnsupportedOperationException("Unable to support blob data larger than 1GB Reduce either the data size or count of desired message msgs:"+
minimumFragmentsOnRing+" varLen:"+maximumLenghOfVariableLengthFields);
}
if (slabBits>31) {
throw new UnsupportedOperationException("Unable to support slab data larger than 1GB, Reduce the count of desired message");
}
}
public PipeConfig(T messageSchema, int minimumFragmentsOnRing, int maximumLenghOfVariableLengthFields, byte[] byteConst) {
int biggestFragment = FieldReferenceOffsetManager.maxFragmentSize(MessageSchema.from(messageSchema));
int primaryMinSize = minimumFragmentsOnRing*biggestFragment;
this.slabBits = (byte)(32 - Integer.numberOfLeadingZeros(primaryMinSize - 1));
int maxVarFieldsInRingAtOnce = FieldReferenceOffsetManager.maxVarLenFieldsPerPrimaryRingSize(MessageSchema.from(messageSchema), 1<<slabBits);
int secondaryMinSize = maxVarFieldsInRingAtOnce * maximumLenghOfVariableLengthFields;
this.blobBits = ((0==maximumLenghOfVariableLengthFields) | (0==maxVarFieldsInRingAtOnce))? (byte)0 : (byte)(32 - Integer.numberOfLeadingZeros(secondaryMinSize - 1));
this.byteConst = byteConst;
this.schema = messageSchema;
validate(minimumFragmentsOnRing, maximumLenghOfVariableLengthFields );
}
public PipeConfig<T> grow2x(){
return new PipeConfig<T>((byte)(1+slabBits), (byte)(1+blobBits), byteConst, schema);
}
public PipeConfig<T> blobGrow2x(){
return new PipeConfig<T>((byte)(slabBits), (byte)(1+blobBits), byteConst, schema);
}
public PipeConfig<T> debug(int debugFlags){
PipeConfig<T> result = new PipeConfig<T>((byte)(slabBits), (byte)(blobBits), byteConst, schema);
result.debugFlags = debugFlags;
return result;
}
public static final int SHOW_HEAD_PUBLISH = 1;
/**
* Returns true if this configuration is of the same schema and is larger or equal to the source config.
*/
public boolean canConsume(PipeConfig<T> sourceConfig) {
if (this.schema == sourceConfig.schema) {
if (this.blobBits>=sourceConfig.blobBits) {
if (this.slabBits>=sourceConfig.slabBits) {
//NOTE: proably also want to check the ratio.
return true;
}
}
}
return false;
}
}
|
[
"nathan@tippy.name"
] |
nathan@tippy.name
|
6664e2aa2fbec81b940fe331cbe408e9985732cb
|
c04f812bea53c3d180baeea583f43176a6565005
|
/app/src/main/java/com/yuyh/github/api/git/CommitInfoClient.java
|
fa9862130c0b1e7d84d01d5b602e9ab336fe6c7a
|
[
"Apache-2.0"
] |
permissive
|
tim0523/GithubClient
|
4fd83457be59e9c7124655c115d9dff2c189e2bc
|
2ab35289f21f9cb1cb7ee955c9df3c5577d5a139
|
refs/heads/master
| 2021-05-02T11:37:28.020500
| 2016-11-02T09:41:59
| 2016-11-02T09:41:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 646
|
java
|
package com.yuyh.github.api.git;
import com.yuyh.github.api.client.BaseClient;
import com.yuyh.github.bean.info.RepoInfo;
import com.yuyh.github.bean.resp.GitCommit;
import retrofit2.Retrofit;
import rx.Observable;
/**
* @author yuyh.
* @date 2016/11/2.
*/
public class CommitInfoClient extends BaseClient<GitCommit> {
private RepoInfo info;
public CommitInfoClient(RepoInfo info) {
this.info = info;
}
@Override
protected Observable<GitCommit> getApiObservable(Retrofit retrofit) {
return retrofit.create(GitDataService.class)
.repoCommit(info.owner, info.name, info.branch);
}
}
|
[
"352091626@qq.com"
] |
352091626@qq.com
|
1f12c1e4338d8e44fe3a246c578e7ae374b24a89
|
1851d5e827b3941ad92aba68d45a7f009da53a48
|
/ax-boot-admin/src/main/java/com/chequer/axboot/admin/domain/BaseService.java
|
7dd9a98c75afba0458b1fe117c02a0657630abd2
|
[
"MIT"
] |
permissive
|
neoguru/axboot-emp-dept
|
1d6f6651050968d99f9975c58fe59641846967b0
|
c3bac4e8bdfc0e3473808804b720b4fbd073e392
|
refs/heads/master
| 2020-04-26T02:45:26.745480
| 2019-03-03T06:32:49
| 2019-03-03T06:32:49
| 173,244,389
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,475
|
java
|
package com.chequer.axboot.admin.domain;
import com.chequer.axboot.admin.domain.code.QCommonCode;
import com.chequer.axboot.admin.domain.file.QCommonFile;
import com.chequer.axboot.admin.domain.program.QProgram;
import com.chequer.axboot.admin.domain.program.menu.QMenu;
import com.chequer.axboot.admin.domain.user.QUser;
import com.chequer.axboot.admin.domain.user.auth.QUserAuth;
import com.chequer.axboot.admin.domain.user.auth.menu.QAuthGroupMenu;
import com.chequer.axboot.admin.domain.user.role.QUserRole;
import com.chequer.axboot.core.domain.base.AXBootBaseService;
import com.chequer.axboot.core.domain.base.AXBootJPAQueryDSLRepository;
import java.io.Serializable;
public class BaseService<T, ID extends Serializable> extends AXBootBaseService<T, ID> {
protected QUserRole qUserRole = QUserRole.userRole;
protected QAuthGroupMenu qAuthGroupMenu = QAuthGroupMenu.authGroupMenu;
protected QCommonCode qCommonCode = QCommonCode.commonCode;
protected QUser qUser = QUser.user;
protected QProgram qProgram = QProgram.program;
protected QUserAuth qUserAuth = QUserAuth.userAuth;
protected QMenu qMenu = QMenu.menu;
protected QCommonFile qCommonFile = QCommonFile.commonFile;
protected AXBootJPAQueryDSLRepository<T, ID> repository;
public BaseService() {
super();
}
public BaseService(AXBootJPAQueryDSLRepository<T, ID> repository) {
super(repository);
this.repository = repository;
}
}
|
[
"dlstj3039@gmail.com"
] |
dlstj3039@gmail.com
|
c5e63590f5eaa5aff8642190cfa280674cab9e92
|
e0ce65ca68416abe67d41f340e13d7d7dcec8e0f
|
/src/main/java/org/trypticon/luceneupgrader/lucene3/internal/lucene/search/function/DocValues.java
|
1dd8f0db8f3013208fb226e41695f8e01a21e419
|
[
"Apache-2.0"
] |
permissive
|
arandomgal/lucene-one-stop-index-upgrader
|
943264c22e6cadfef13116f41766f7d5fb2d3a7c
|
4c8b35dcda9e57f0507de48d8519e9c31cb8efb6
|
refs/heads/main
| 2023-06-07T04:18:20.805332
| 2021-07-05T22:28:46
| 2021-07-05T22:28:46
| 383,277,257
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,876
|
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.trypticon.luceneupgrader.lucene3.internal.lucene.search.function;
import org.trypticon.luceneupgrader.lucene3.internal.lucene.search.Explanation;
public abstract class DocValues {
/*
* DocValues is distinct from ValueSource because
* there needs to be an object created at query evaluation time that
* is not referenced by the query itself because:
* - Query objects should be MT safe
* - For caching, Query objects are often used as keys... you don't
* want the Query carrying around big objects
*/
public abstract float floatVal(int doc);
public int intVal(int doc) {
return (int) floatVal(doc);
}
public long longVal(int doc) {
return (long) floatVal(doc);
}
public double doubleVal(int doc) {
return floatVal(doc);
}
public String strVal(int doc) {
return Float.toString(floatVal(doc));
}
public abstract String toString(int doc);
public Explanation explain(int doc) {
return new Explanation(floatVal(doc), toString(doc));
}
Object getInnerArray() {
throw new UnsupportedOperationException("this optional method is for test purposes only");
}
// --- some simple statistics on values
private float minVal = Float.NaN;
private float maxVal = Float.NaN;
private float avgVal = Float.NaN;
private boolean computed=false;
// compute optional values
private void compute() {
if (computed) {
return;
}
float sum = 0;
int n = 0;
while (true) {
float val;
try {
val = floatVal(n);
} catch (ArrayIndexOutOfBoundsException e) {
break;
}
sum += val;
minVal = Float.isNaN(minVal) ? val : Math.min(minVal, val);
maxVal = Float.isNaN(maxVal) ? val : Math.max(maxVal, val);
++n;
}
avgVal = n == 0 ? Float.NaN : sum / n;
computed = true;
}
public float getMinValue() {
compute();
return minVal;
}
public float getMaxValue() {
compute();
return maxVal;
}
public float getAverageValue() {
compute();
return avgVal;
}
}
|
[
"ying.andrews@gmail.com"
] |
ying.andrews@gmail.com
|
d893b6661a23efc7ec9a097a9a741a8cd6287cf9
|
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
|
/sources/com/avito/android/publish/drafts/di/PublishDraftsModule_ProvidePublishDraftRepositoryFactory.java
|
b8a4e67b007b688e66cf20709ce05cd70f056e11
|
[] |
no_license
|
Auch-Auch/avito_source
|
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
|
76fdcc5b7e036c57ecc193e790b0582481768cdc
|
refs/heads/master
| 2023-05-06T01:32:43.014668
| 2021-05-25T10:19:22
| 2021-05-25T10:19:22
| 370,650,685
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,052
|
java
|
package com.avito.android.publish.drafts.di;
import android.app.Application;
import com.avito.android.app.work.PublishDraftsSyncWorkFactory;
import com.avito.android.publish.drafts.PublishDraftRepository;
import com.avito.android.remote.DeviceIdProvider;
import com.avito.android.remote.PublishApi;
import com.avito.android.remote.model.category_parameters.AttributesTreeConverter;
import com.avito.android.remote.model.category_parameters.CategoryParametersConverter;
import com.avito.android.util.BuildInfo;
import com.avito.android.util.SchedulersFactory;
import com.avito.android.util.preferences.PreferenceFactory;
import com.google.gson.Gson;
import com.jakewharton.rxrelay3.PublishRelay;
import dagger.internal.Factory;
import dagger.internal.Preconditions;
import javax.inject.Provider;
public final class PublishDraftsModule_ProvidePublishDraftRepositoryFactory implements Factory<PublishDraftRepository> {
public final Provider<Application> a;
public final Provider<BuildInfo> b;
public final Provider<PreferenceFactory> c;
public final Provider<Gson> d;
public final Provider<PublishApi> e;
public final Provider<CategoryParametersConverter> f;
public final Provider<AttributesTreeConverter> g;
public final Provider<PublishDraftsSyncWorkFactory> h;
public final Provider<DeviceIdProvider> i;
public final Provider<SchedulersFactory> j;
public final Provider<PublishRelay<String>> k;
public PublishDraftsModule_ProvidePublishDraftRepositoryFactory(Provider<Application> provider, Provider<BuildInfo> provider2, Provider<PreferenceFactory> provider3, Provider<Gson> provider4, Provider<PublishApi> provider5, Provider<CategoryParametersConverter> provider6, Provider<AttributesTreeConverter> provider7, Provider<PublishDraftsSyncWorkFactory> provider8, Provider<DeviceIdProvider> provider9, Provider<SchedulersFactory> provider10, Provider<PublishRelay<String>> provider11) {
this.a = provider;
this.b = provider2;
this.c = provider3;
this.d = provider4;
this.e = provider5;
this.f = provider6;
this.g = provider7;
this.h = provider8;
this.i = provider9;
this.j = provider10;
this.k = provider11;
}
public static PublishDraftsModule_ProvidePublishDraftRepositoryFactory create(Provider<Application> provider, Provider<BuildInfo> provider2, Provider<PreferenceFactory> provider3, Provider<Gson> provider4, Provider<PublishApi> provider5, Provider<CategoryParametersConverter> provider6, Provider<AttributesTreeConverter> provider7, Provider<PublishDraftsSyncWorkFactory> provider8, Provider<DeviceIdProvider> provider9, Provider<SchedulersFactory> provider10, Provider<PublishRelay<String>> provider11) {
return new PublishDraftsModule_ProvidePublishDraftRepositoryFactory(provider, provider2, provider3, provider4, provider5, provider6, provider7, provider8, provider9, provider10, provider11);
}
public static PublishDraftRepository providePublishDraftRepository(Application application, BuildInfo buildInfo, PreferenceFactory preferenceFactory, Gson gson, PublishApi publishApi, CategoryParametersConverter categoryParametersConverter, AttributesTreeConverter attributesTreeConverter, PublishDraftsSyncWorkFactory publishDraftsSyncWorkFactory, DeviceIdProvider deviceIdProvider, SchedulersFactory schedulersFactory, PublishRelay<String> publishRelay) {
return (PublishDraftRepository) Preconditions.checkNotNullFromProvides(PublishDraftsModule.providePublishDraftRepository(application, buildInfo, preferenceFactory, gson, publishApi, categoryParametersConverter, attributesTreeConverter, publishDraftsSyncWorkFactory, deviceIdProvider, schedulersFactory, publishRelay));
}
@Override // javax.inject.Provider
public PublishDraftRepository get() {
return providePublishDraftRepository(this.a.get(), this.b.get(), this.c.get(), this.d.get(), this.e.get(), this.f.get(), this.g.get(), this.h.get(), this.i.get(), this.j.get(), this.k.get());
}
}
|
[
"auchhunter@gmail.com"
] |
auchhunter@gmail.com
|
c83d189dbcd9ddbf7ccb62c308e0c686f2ab35b0
|
13c2d3db2d49c40c74c2e6420a9cd89377f1c934
|
/program_data/JavaProgramData/22/374.java
|
fbb15371f5162cf2441d35cdfca47effbdeafdbd
|
[
"MIT"
] |
permissive
|
qiuchili/ggnn_graph_classification
|
c2090fefe11f8bf650e734442eb96996a54dc112
|
291ff02404555511b94a4f477c6974ebd62dcf44
|
refs/heads/master
| 2021-10-18T14:54:26.154367
| 2018-10-21T23:34:14
| 2018-10-21T23:34:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 909
|
java
|
package <missing>;
public class GlobalMembers
{
public static void Main()
{
String s = new String(new char[500]);
int[] a = new int[200];
int len;
int n;
int i;
int r = 0;
int j;
int max1 = 0;
int max2 = 0;
int p;
s = new Scanner(System.in).nextLine();
len = s.length();
for (i = 0;i < len;i++)
{
if (s.charAt(i) == ',')
{
r++;
}
else
{
a[r] = a[r] * 10 + s.charAt(i) - '0';
}
}
for (j = 0;j <= r;j++)
{
if (a[j] > max1)
{
max2 = max1;
max1 = a[j];
}
if (a[j] < max1 && a[j]> max2)
{
max2 = a[j];
}
}
for (i = 1;i <= r;i++)
{
if (a[i] != a[0])
{
break;
}
}
if (i == r + 1)
{
p = 1;
}
if (r == 0)
{
System.out.print("No");
}
else if (p == 1)
{
System.out.print("No");
}
else
{
System.out.printf("%d",max2);
}
}
}
|
[
"y.yu@open.ac.uk"
] |
y.yu@open.ac.uk
|
214659d981cfff1d57dc271dc95cbd2093b436ba
|
1c5fd654b46d3fb018032dc11aa17552b64b191c
|
/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/jdbc/JdbcTestWithIncludeFilterIntegrationTests.java
|
72b771e979d8521b6cd9070b05dba9b6fc89c30a
|
[
"Apache-2.0"
] |
permissive
|
yangfancoming/spring-boot-build
|
6ce9b97b105e401a4016ae4b75964ef93beeb9f1
|
3d4b8cbb8fea3e68617490609a68ded8f034bc67
|
refs/heads/master
| 2023-01-07T11:10:28.181679
| 2021-06-21T11:46:46
| 2021-06-21T11:46:46
| 193,871,877
| 0
| 0
|
Apache-2.0
| 2022-12-27T14:52:46
| 2019-06-26T09:19:40
|
Java
|
UTF-8
|
Java
| false
| false
| 1,152
|
java
|
package org.springframework.boot.test.autoconfigure.jdbc;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.stereotype.Repository;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringRunner;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Integration test with custom include filter for {@link JdbcTest}.
*
* @author Stephane Nicoll
*/
@RunWith(SpringRunner.class)
@JdbcTest(includeFilters = @Filter(Repository.class))
@TestPropertySource(properties = "spring.datasource.schema=classpath:org/springframework/boot/test/autoconfigure/jdbc/schema.sql")
public class JdbcTestWithIncludeFilterIntegrationTests {
@Autowired
private ExampleRepository repository;
@Test
public void testRepository() {
this.repository.save(new ExampleEntity(42, "Smith"));
ExampleEntity entity = this.repository.findById(42);
assertThat(entity).isNotNull();
assertThat(entity.getName()).isEqualTo("Smith");
}
}
|
[
"34465021+jwfl724168@users.noreply.github.com"
] |
34465021+jwfl724168@users.noreply.github.com
|
7ff8a62b7e42ea818c6b435e22f6f9d03acccc2f
|
cb5f27eb6960c64542023d7382d6b917da38f0fc
|
/sources/com/google/android/gms/internal/firebase_auth/zzgu.java
|
223ce37bf15af0ecf1d788f05268fe434bdd38d1
|
[] |
no_license
|
djtwisty/ccah
|
a9aee5608d48448f18156dd7efc6ece4f32623a5
|
af89c8d3c216ec3371929436545227682e811be7
|
refs/heads/master
| 2020-04-13T05:33:08.267985
| 2018-12-24T13:52:39
| 2018-12-24T13:52:39
| 162,995,366
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 377
|
java
|
package com.google.android.gms.internal.firebase_auth;
public final class zzgu<K, V> {
static <K, V> void zza(zzfa zzfa, zzgv<K, V> zzgv, K k, V v) {
zzfk.zza(zzfa, zzgv.zzzc, 1, k);
zzfk.zza(zzfa, zzgv.zzze, 2, v);
}
static <K, V> int zza(zzgv<K, V> zzgv, K k, V v) {
return zzfk.zza(zzgv.zzzc, 1, k) + zzfk.zza(zzgv.zzze, 2, v);
}
}
|
[
"alex@Alexs-MacBook-Pro.local"
] |
alex@Alexs-MacBook-Pro.local
|
20b53a385f9a17d48306510e7ec715e29db54125
|
940c83f519088a82938b4f1a7775e640642a6332
|
/core/core-service/src/main/java/com/dreameddeath/core/service/registrar/ClientRegistrar.java
|
e46e6c1d50a734997344b2556db3f100ae545392
|
[] |
no_license
|
renovate-bot/couchbase-testing
|
53fc2dc3c94f6fc51bc858171c75d98cc04589c9
|
4c8f260599944ca5315156c9ee764312c07020a8
|
refs/heads/master
| 2023-06-08T12:48:44.750880
| 2015-12-22T13:50:37
| 2015-12-22T13:50:37
| 479,451,774
| 0
| 0
| null | 2022-04-08T15:52:40
| 2022-04-08T15:52:39
| null |
UTF-8
|
Java
| false
| false
| 2,141
|
java
|
/*
* Copyright Christophe Jeunesse
*
* 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.dreameddeath.core.service.registrar;
import com.dreameddeath.core.curator.registrar.impl.CuratorRegistrarImpl;
import com.dreameddeath.core.json.ObjectMapperFactory;
import com.dreameddeath.core.service.model.ClientInstanceInfo;
import com.dreameddeath.core.service.utils.ServiceNamingUtils;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.curator.framework.CuratorFramework;
/**
* Created by Christophe Jeunesse on 09/12/2015.
*/
public class ClientRegistrar extends CuratorRegistrarImpl<ClientInstanceInfo> {
private final ObjectMapper mapper = ObjectMapperFactory.BASE_INSTANCE.getMapper();
private final String daemonUid;
private final String webServerUid;
private final String domain;
public ClientRegistrar(CuratorFramework curatorFramework, String domain,String daemonUid,String webServerUid) {
super(curatorFramework, ServiceNamingUtils.buildServiceDomainPathName(domain, ServiceNamingUtils.DomainPathType.CLIENT));
this.daemonUid = daemonUid;
this.webServerUid = webServerUid;
this.domain = domain;
}
@Override
protected void preparePath() {
ServiceNamingUtils.buildServiceDomain(getCuratorFramework(),domain);
super.preparePath();
}
public void enrich(ClientInstanceInfo obj){
obj.setDaemonUid(daemonUid);
obj.setWebServerUid(webServerUid);
}
@Override
protected byte[] serialize(ClientInstanceInfo obj) throws Exception {
return mapper.writeValueAsBytes(obj);
}
}
|
[
"christophejeunesse@hotmail.com"
] |
christophejeunesse@hotmail.com
|
7687239ef48a44ef0d8556dda297bcba6ed3c59b
|
fb1e2c9654fc0143e9dd09f8bf7307598ec351b6
|
/src/main/java/org/ml4j/wit/api/impl/AbstractWitOperations.java
|
a18acf1803e9dbec39d5a5e9a1093f035ee18d88
|
[
"Apache-2.0"
] |
permissive
|
anuragpatle/wit-java-client
|
488486397ec83ef6a70a2371ed7f33edeab9c545
|
3dc26afe40d0785f54e32aba2675260fbc7862cb
|
refs/heads/master
| 2021-01-12T13:22:26.445419
| 2015-01-15T17:16:54
| 2015-01-15T17:16:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,138
|
java
|
/*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ml4j.wit.api.impl;
import org.springframework.web.client.RestTemplate;
/**
* @author Michael Lavelle
*/
public abstract class AbstractWitOperations {
protected final RestTemplate restTemplate;
private String apiBaseUrl;
protected String version;
public AbstractWitOperations(String apiBaseUrl, RestTemplate restTemplate, String version) {
this.restTemplate = restTemplate;
this.apiBaseUrl = apiBaseUrl;
this.version = version;
}
protected String getApiBaseUrl() {
return apiBaseUrl;
}
}
|
[
"michael@lavelle.name"
] |
michael@lavelle.name
|
260fbdf5892d90a58590e29f52dda849f85a02dd
|
821d68cfac0976bc0ab201771630c2f9794074f8
|
/src/com/medicom/passlan/inter/imp/sys/FrequencyImpl.java
|
6f146a7873ab891c9c3d5aca940bb0caa3fd34da
|
[] |
no_license
|
adaideluanmaku/pass_java_anli
|
ae8de6a620dab998734dbfc1148d4991fa23d4f9
|
75891687bf1b982c79a85dcad655c43198838501
|
refs/heads/master
| 2021-05-09T05:36:55.350672
| 2018-02-26T06:00:28
| 2018-02-26T06:00:28
| 119,314,915
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,137
|
java
|
package com.medicom.passlan.inter.imp.sys;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import com.medicom.passlan.inter.imp.CommonInface;
import com.medicom.passlan.redis.sys.SysFrequency;
import com.medicom.passlan.util.FieldUtils;
import redis.clients.jedis.ShardedJedis;
/**
*
* <ul>
* <li>项目名称:PassLanManage </li>
* <li>类名称: FrequencyImpl </li>
* <li>类描述: 给药频次的</li>
* <li>创建人:周应强 </li>
* <li>创建时间:2016年7月4日 </li>
* <li>修改备注:</li>
* </ul>
*/
@Service
public class FrequencyImpl extends CommonInface<SysFrequency>{
private final String SEARCH_FREQUENCY = " select distinct match_scheme,frequency, times,days from mc_dict_frequency where times is not null and times > 0";
@Autowired
private JdbcTemplate jdbcTemplate;
private final String FREQUENCY_TITLE = "dict_frequency-";
private Logger logger = Logger.getLogger(FrequencyImpl.class);
public boolean addOrUpdate(SysFrequency t) {
try{
String key = FREQUENCY_TITLE+t.getMatchscheme()+"-"+ t.getFrequency().trim();
return this.addOrUpdateCommon(t, key);
}catch(Exception e){
logger.error(e.getMessage());
return false;
}
}
/**
*
* <ul>
* <li>方法名: initDateByCon </li>
* <li>功能描述:通过给定的条件初始化redis的数据 </li>
* <li>创建人: 周应强 </li>
* <li>创建时间:2016年6月27日 </li>
* </ul>
* @param hiscode
* @return
*/
public boolean initDateByCon(Integer matchscheme,String frequency){
try{
StringBuffer sb = new StringBuffer(SEARCH_FREQUENCY);
List<Map<String,Object>> list = null;
if(StringUtils.isNotBlank(frequency)
&&StringUtils.isNotBlank(String.valueOf(matchscheme)) ){
sb.append(" and match_scheme=? and frequency=? ");
List<Object> listvalue =new ArrayList<Object>();
listvalue.add(matchscheme);
listvalue.add(frequency);
list = jdbcTemplate.queryForList(sb.toString(), listvalue.toArray());
}
if(list!=null&&list.size()>0){
for(int i=0;i<list.size();i++){
SysFrequency priv = copyFromMap(list.get(0));
this.addOrUpdate(priv);
}
return true;
}else{
String key = FREQUENCY_TITLE+matchscheme+"-"+ frequency.trim();
this.delete(key);
}
}catch(Exception e){
e.printStackTrace();
return false;
}
return false;
}
/**
*
* <ul>
* <li>方法名: copyFromMap </li>
* <li>功能描述:把从数据库的数据直接返回对象 </li>
* <li>创建人: 周应强 </li>
* <li>创建时间:2016年6月28日 </li>
* </ul>
* @param map 数据库中查询出来的对象
* @return
*/
public SysFrequency copyFromMap(Map<String,Object> map){
SysFrequency custom = new SysFrequency();
//match_scheme,frequency, times,days
custom.setMatchscheme(FieldUtils.getDefaultInt(map.get("match_scheme"),0));
custom.setFrequency(FieldUtils.getNullStr(map.get("frequency"),""));
custom.setTimes(FieldUtils.getDefaultInt(map.get("times"),0));
custom.setDays(FieldUtils.getDefaultInt(map.get("days"),0));
return custom;
}
/**
*
* <ul>
* <li>方法名: initAll </li>
* <li>功能描述:初始化所有的数据 </li>
* <li>创建人: 周应强 </li>
* <li>创建时间:2016年7月5日 </li>
* </ul>
*/
public void initAll(){
List<Map<String,Object>> list = jdbcTemplate.queryForList(SEARCH_FREQUENCY);
if(list!=null&&list.size()>0){
//ShardedJedis jedis = this.getShardedJedisPool().getResource();
for(int i=0;i<list.size();i++){
SysFrequency t = copyFromMap(list.get(i));
String key = FREQUENCY_TITLE+t.getMatchscheme()+"-"+ t.getFrequency().trim();
this.addOrUpdate(t,key);
}
}
}
}
|
[
"531617826@qq.com"
] |
531617826@qq.com
|
ffcdb540092fbdb4659105944caaf0cd62e39e7c
|
b8e42a5722f55c00c79b3d183f5452061085639d
|
/chrome/browser/share/android/java/src/org/chromium/chrome/browser/share/long_screenshots/bitmap_generation/BitmapGenerator.java
|
2cc5a098111dab29565368b1ff02809a682e6a08
|
[
"BSD-3-Clause"
] |
permissive
|
jovanivanovic/chromium
|
943f5978d415bcd92a6354d5a4a1075ac00e476f
|
dd3be1f4832766bb94603f69d6edf8a6938b9e2b
|
refs/heads/master
| 2023-05-05T07:53:36.937804
| 2021-05-06T08:52:50
| 2021-05-06T08:52:50
| 365,790,229
| 0
| 0
|
BSD-3-Clause
| 2021-05-09T15:50:21
| 2021-05-09T15:50:21
| null |
UTF-8
|
Java
| false
| false
| 5,084
|
java
|
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.share.long_screenshots.bitmap_generation;
import android.graphics.Bitmap;
import android.graphics.Rect;
import androidx.annotation.VisibleForTesting;
import org.chromium.base.Callback;
import org.chromium.chrome.browser.tab.Tab;
import org.chromium.components.paint_preview.common.proto.PaintPreview.PaintPreviewProto;
import org.chromium.components.paintpreview.player.CompositorStatus;
import org.chromium.url.GURL;
/**
* Class responsible for processing the initial request, calling {@link LongScreenshotsTab} service
* to capture the webpage, then using {@link LongScreenshotsCompositor} to composite the bitmap.
* Callers of this class should supply a GeneratorCallback to receive status updates.
*/
public class BitmapGenerator implements LongScreenshotsTabService.CaptureProcessor {
// Response with a pointer to the skia image
private PaintPreviewProto mProtoResponse;
// Compositor delegate responsible for compositing the skia
private LongScreenshotsCompositor mCompositor;
private LongScreenshotsTabService mTabService;
private Tab mTab;
private static final String DIR_NAME = "long_screenshots_dir";
protected GeneratorCallBack mGeneratorCallBack;
private ScreenshotBoundsManager mBoundsManager;
/**
* Users of the {@link LongScreenshotsEntry} class have to implement and pass this interface in
* the constructor.
*/
public interface GeneratorCallBack {
/**
* Called when the compositor cannot be successfully initialized.
*/
void onCompositorResult(@CompositorStatus int status);
/**
* Called when the capture is complete.
*/
void onCaptureResult(@Status int status);
}
/**
* @param tab The current tab being screen-shotted.
* @param rect The area of the webpage to capture
* @param callback Callback to receive updates from the generation.
*/
public BitmapGenerator(
Tab tab, ScreenshotBoundsManager boundsManager, GeneratorCallBack callback) {
mTab = tab;
mBoundsManager = boundsManager;
mGeneratorCallBack = callback;
}
/**
* Starts the capture of the screenshot.
*/
public void captureTab() {
if (mTabService == null) {
mTabService = LongScreenshotsTabServiceFactory.getServiceInstance();
}
mTabService.setCaptureProcessor(this);
mTabService.captureTab(mTab, mBoundsManager.getCaptureBounds());
}
/**
* Called from native after the tab has been captured. If status is OK, then calls the
* compositor on the response. Otherwise, calls the GeneratorCallback with the status.
*
* @param response Response with details about the capture.
* @param status Status of the capture.
*/
@Override
public void processCapturedTab(PaintPreviewProto response, @Status int status) {
if (status == Status.OK && mCompositor == null) {
mCompositor = new LongScreenshotsCompositor(new GURL(response.getMetadata().getUrl()),
mTabService, DIR_NAME, response, this::onCompositorResult);
} else {
onCaptureResult(status);
}
}
/**
* Composites the capture into a bitmap for the bounds defined. Callers should wait for the
* onBitmapGeneratedFunction to be called with the generated Bitmap.
*
* @param rect The bounds of the webpage (not capture) to composite into bitmap.
* @param errorCallback Callback for when an error is encountered
* @param onBitmapGenerated Called with the generated bitmap.
* @return id of the request.
*/
public int compositeBitmap(
Rect rect, Runnable errorCallback, Callback<Bitmap> onBitmapGenerated) {
// Check if the compositor is ready and whether the rect is within the bounds of the
// the capture.
return mCompositor.requestBitmap(mBoundsManager.calculateBoundsRelativeToCapture(rect),
errorCallback, onBitmapGenerated);
}
/**
* Destroy and clean up any memory.
*/
public void destroy() {
if (mCompositor != null) {
mCompositor.destroy();
mCompositor = null;
}
if (mTabService != null) {
mTabService.longScreenshotsClosed();
}
}
@VisibleForTesting
public void setTabServiceAndCompositorForTest(
LongScreenshotsTabService tabService, LongScreenshotsCompositor compositor) {
mTabService = tabService;
mCompositor = compositor;
}
private void onCompositorResult(@CompositorStatus int status) {
mGeneratorCallBack.onCompositorResult(status);
}
private void onCaptureResult(@Status int status) {
// TODO(tgupta): Add metrics logging here.
mGeneratorCallBack.onCaptureResult(status);
}
}
|
[
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] |
chromium-scoped@luci-project-accounts.iam.gserviceaccount.com
|
d0f4ddb3fff6bb3f3651dbb20a592d9656ec53f6
|
004832e529873885f1559eb8c864384b3e1cda3f
|
/java/lineage2/gameserver/model/entity/events/actions/AnnounceAction.java
|
cf09751314b737bcefa47862f00ca1d0dda43191
|
[] |
no_license
|
wks1222/mobius-source
|
02323e79316eabd4ce7e5b29f8cd5749c930d098
|
325a49fa23035f4d529e5a34b809b83c68d19cad
|
refs/heads/master
| 2021-01-10T02:22:17.746138
| 2015-01-17T20:08:13
| 2015-01-17T20:08:13
| 36,601,733
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,332
|
java
|
/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package lineage2.gameserver.model.entity.events.actions;
import lineage2.gameserver.model.entity.events.EventAction;
import lineage2.gameserver.model.entity.events.GlobalEvent;
/**
* @author Mobius
* @version $Revision: 1.0 $
*/
public class AnnounceAction implements EventAction
{
private final int _id;
/**
* Constructor for AnnounceAction.
* @param id int
*/
public AnnounceAction(int id)
{
_id = id;
}
/**
* Method call.
* @param event GlobalEvent
* @see lineage2.gameserver.model.entity.events.EventAction#call(GlobalEvent)
*/
@Override
public void call(GlobalEvent event)
{
event.announce(_id);
}
}
|
[
"mobius@cyber-wizard.com"
] |
mobius@cyber-wizard.com
|
a47bfbde0712ca4f08158970b45a73b492abb374
|
d7dab538d6fc5390c5160c28f5c8231834c0a406
|
/src/main/java/gov/nist/javax/sip/header/CallInfoList.java
|
07f641db184df4951aa4d63f48c30e2d1329e23e
|
[
"Apache-2.0"
] |
permissive
|
fhg-fokus-nubomedia/nubomedia-ims-connector
|
037cbcc11c2f053fc3c159b3c53735dcc27fdcaf
|
a6dac8810f779c75351355cdd03933fedf07a99a
|
refs/heads/master
| 2020-04-06T06:42:11.608858
| 2016-07-29T12:40:34
| 2016-07-29T12:40:34
| 49,443,826
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,027
|
java
|
/*
* Conditions Of Use
*
* This software was developed by employees of the National Institute of
* Standards and Technology (NIST), an agency of the Federal Government.
* Pursuant to title 15 Untied States Code Section 105, works of NIST
* employees are not subject to copyright protection in the United States
* and are considered to be in the public domain. As a result, a formal
* license is not needed to use the software.
*
* This software is provided by NIST as a service and is expressly
* provided "AS IS." NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
* AND DATA ACCURACY. NIST does not warrant or make any representations
* regarding the use of the software or the results thereof, including but
* not limited to the correctness, accuracy, reliability or usefulness of
* the software.
*
* Permission to use this software is contingent upon your acceptance
* of the terms of this agreement
*
* .
*
*/
/*******************************************************************************
* Product of NIST/ITL Advanced Networking Technologies Division (ANTD). *
*******************************************************************************/
package gov.nist.javax.sip.header;
import javax.sip.header.*;
/**
* A list of CallInfo headers (there can be multiple in a message).
*
* @author M. Ranganathan <br/>
* @version 1.2 $Revision: 1.6 $ $Date: 2009/07/17 18:57:28 $
* @since 1.1
*
*/
public class CallInfoList extends SIPHeaderList {
/**
* Comment for <code>serialVersionUID</code>
*/
private static final long serialVersionUID = -4949850334388806423L;
public Object clone() {
CallInfoList retval = new CallInfoList ();
retval.clonehlist(this.hlist);
return retval;
}
/**
* Default constructor
*/
public CallInfoList() {
super(CallInfo.class, CallInfoHeader.NAME);
}
}
|
[
"alice.cheambe@fokus.fraunhofer.de"
] |
alice.cheambe@fokus.fraunhofer.de
|
9e8fc430cd135b254e7e776534b700d8ee987b1e
|
128eb90ce7b21a7ce621524dfad2402e5e32a1e8
|
/laravel-converted/src/main/java/com/project/convertedCode/includes/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/file_MorphToMany_php.java
|
294f8d251f7e890d2faf7261225660e92ad28e66
|
[
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
RuntimeConverter/RuntimeConverterLaravelJava
|
657b4c73085b4e34fe4404a53277e056cf9094ba
|
7ae848744fbcd993122347ffac853925ea4ea3b9
|
refs/heads/master
| 2020-04-12T17:22:30.345589
| 2018-12-22T10:32:34
| 2018-12-22T10:32:34
| 162,642,356
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,243
|
java
|
package com.project.convertedCode.includes.vendor.laravel.framework.src.Illuminate.Database.Eloquent.Relations;
import com.runtimeconverter.runtime.RuntimeStack;
import com.runtimeconverter.runtime.interfaces.ContextConstants;
import com.runtimeconverter.runtime.includes.RuntimeIncludable;
import com.runtimeconverter.runtime.includes.IncludeEventException;
import com.runtimeconverter.runtime.classes.RuntimeClassBase;
import com.runtimeconverter.runtime.RuntimeEnv;
import com.runtimeconverter.runtime.interfaces.UpdateRuntimeScopeInterface;
import com.runtimeconverter.runtime.arrays.ZPair;
/*
Converted with The Runtime Converter (runtimeconverter.com)
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/MorphToMany.php
*/
public class file_MorphToMany_php implements RuntimeIncludable {
public static final file_MorphToMany_php instance = new file_MorphToMany_php();
public final void include(RuntimeEnv env, RuntimeStack stack) throws IncludeEventException {
Scope1136 scope = new Scope1136();
stack.pushScope(scope);
this.include(env, stack, scope);
stack.popScope();
}
public final void include(RuntimeEnv env, RuntimeStack stack, Scope1136 scope)
throws IncludeEventException {
// Namespace import was here
// Namespace import was here
// Namespace import was here
// Conversion Note: class named MorphToMany was here in the source code
env.addManualClassLoad("Illuminate\\Database\\Eloquent\\Relations\\MorphToMany");
}
private static final ContextConstants runtimeConverterContextContantsInstance =
new ContextConstants()
.setDir("/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations")
.setFile(
"/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/MorphToMany.php");
public ContextConstants getContextConstants() {
return runtimeConverterContextContantsInstance;
}
private static class Scope1136 implements UpdateRuntimeScopeInterface {
public void updateStack(RuntimeStack stack) {}
public void updateScope(RuntimeStack stack) {}
}
}
|
[
"git@runtimeconverter.com"
] |
git@runtimeconverter.com
|
17f10d940f7eae07b2547b42a719733d0f3db636
|
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
|
/Code Snippet Repository/Hibernate/Hibernate8691.java
|
dd44bd71e4b49d3f4160d66d12cec1fd35f5398f
|
[] |
no_license
|
saber13812002/DeepCRM
|
3336a244d4852a364800af3181e03e868cf6f9f5
|
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
|
refs/heads/master
| 2023-03-16T00:08:06.473699
| 2018-04-18T05:29:50
| 2018-04-18T05:29:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 611
|
java
|
@Test
public void testEncapsulatedCompositeIdNoFetches2() {
// Parent is an entity with a composite identifier mapped via a @EmbeddedId class (ParentPK) which is defined
// using just basic types (strings, ints, etc)
Configuration cfg = new Configuration();
cfg.addAnnotatedClass( EncapsulatedCompositeIdResultSetProcessorTest.Parent.class );
SessionFactoryImplementor sf = (SessionFactoryImplementor) cfg.buildSessionFactory();
try {
doCompare( sf, (OuterJoinLoadable) sf.getClassMetadata( EncapsulatedCompositeIdResultSetProcessorTest.Parent.class ) );
}
finally {
sf.close();
}
}
|
[
"Qing.Mi@my.cityu.edu.hk"
] |
Qing.Mi@my.cityu.edu.hk
|
a86ed5740b74124ad0eed0e7b55539c929eabf99
|
c9578323a36528593ae98f9dc55fd426711f38c6
|
/app/src/main/java/kioskmode/com/epoptia/viewmodel/models/NetworkStateViewModel.java
|
d5888b108c4254dcd80278df31a97675541c7338
|
[] |
no_license
|
tsironis13/EpoptiaKioskModeApp
|
43e262a341faa0708c73f84c796b5963767660a6
|
6b83dd9113be49b2cf01f64da088a3746fb32c5b
|
refs/heads/master
| 2021-01-21T13:30:27.903913
| 2019-05-12T13:39:44
| 2019-05-12T13:39:44
| 102,132,242
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 702
|
java
|
package kioskmode.com.epoptia.viewmodel.models;
import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;
import androidx.databinding.library.baseAdapters.BR;
import javax.inject.Inject;
public class NetworkStateViewModel extends BaseObservable {
//region Private Properties
private String msg;
//endregion
//region Constructor
@Inject
public NetworkStateViewModel() {}
//endregion
//region Setters
public void setMsg(String msg) {
this.msg = msg;
notifyPropertyChanged(BR.msg);
}
//endregion
//region Getters
@Bindable
public String getMsg() {
return msg;
}
//endregion
}
|
[
"gtsironis8@gmail.com"
] |
gtsironis8@gmail.com
|
158c721be70e5348e4f3a0645bacc5d5b43c3565
|
351ab8768c9786a52a6b5b54ecd68d8283f7b2f0
|
/app/src/main/java/com/example/administrator/my_ali_im/MyApplication.java
|
cd461a3f4f4e97d14dd4c6f0e79570d6e4c68da9
|
[] |
no_license
|
liuxin1234/My_Ali_IM
|
0d091181e79cfc33f70684b718447add89b5fe76
|
099b2e23de69042c651d860b3307b2353c5e129a
|
refs/heads/master
| 2021-01-01T16:45:56.948836
| 2017-07-21T06:15:59
| 2017-07-21T06:15:59
| 97,909,913
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,601
|
java
|
package com.example.administrator.my_ali_im;
import android.app.Application;
import android.content.Context;
import android.support.multidex.MultiDex;
import com.alibaba.wxlib.util.SysUtil;
import com.example.administrator.my_ali_im.IMsample.InitHelper;
/**
* 项目:OkHttp_Retrofit
* 作者:nbcei
* 时间:2017/7/4
* 功能:
*/
public class MyApplication extends Application{
/***
* 经常使用的对象在MyApplication中初始化
*/
private static Context context;
@Override
public void onCreate() {
super.onCreate();
context = getApplicationContext();
//todo Application.onCreate中,首先执行这部分代码,以下代码固定在此处,不要改动,这里return是为了退出Application.onCreate!!!
if(mustRunFirstInsideApplicationOnCreate()){
//todo 如果在":TCMSSevice"进程中,无需进行openIM和app业务的初始化,以节省内存
return;
}
//初始化云旺SDK
InitHelper.initYWSDK(this);
//初始化反馈功能(未使用反馈功能的用户无需调用该初始化)
InitHelper.initFeedBack(this);
}
public static Context getContext(){
return context;
}
private boolean mustRunFirstInsideApplicationOnCreate() {
//必须的初始化
SysUtil.setApplication(this);
return SysUtil.isTCMSServiceProcess(context);
}
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
}
|
[
"750954283@qq.com"
] |
750954283@qq.com
|
fe7c33c819d641bc7d6d8683e63516b54af65e18
|
44abee7981ec47704f59d0cb9345efc4b909ad4f
|
/src/chap14/textbook/s140402/UsingLocalVariable.java
|
9c20e659c6806acf252ce55007674fa834bdea33
|
[] |
no_license
|
hyojjjin/java20200929
|
ad24e96c2c3837f695951be783c59418559eceee
|
8a2d7b34bc814465c83ae0efa0bd59f29205c738
|
refs/heads/master
| 2023-03-11T22:56:51.890496
| 2021-03-02T01:08:15
| 2021-03-02T01:08:15
| 299,485,576
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 479
|
java
|
package chap14.textbook.s140402;
public class UsingLocalVariable {
void method(int arg) { // arg는 final 특성을 가짐
int localVar = 30; // locarvar는 final 특성을 가짐
//arg = 31; //final 특성으로 수정 불가
//localVar = 41; //fibal 수정 불가
//람다식
MyFunctionalInterface fi = () -> {
//로컬 변수 읽기
System.out.println("arg: " + arg);
System.out.println("localVar: " + localVar + "\n");
};
fi.method();
}
}
|
[
"hjjin2_@naver.com"
] |
hjjin2_@naver.com
|
f13a39b895081c7268428740311cb3ffa47eb3c1
|
84e3dfdf4e7887c0bc421c0771bb6e3eb5f19ead
|
/opennlp-distr/target/filtered-md/opennlp-tools/src/main/java/opennlp/tools/cmdline/parser/BuildModelUpdaterTool.java
|
f8827ce57fd1470fc6fe989d6495d62e57bd38ec
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
shrsv/opennlp-testing
|
0db621dfc112fe56a1777d90ee53f3adb74c14f4
|
aad23bcbbedb628dce0e30cf0982a87ff06a5fa9
|
refs/heads/master
| 2023-04-23T01:36:18.018271
| 2020-05-30T23:01:42
| 2020-05-30T23:01:42
| 258,618,873
| 1
| 0
|
Apache-2.0
| 2021-04-26T20:20:05
| 2020-04-24T20:37:28
|
HTML
|
UTF-8
|
Java
| false
| false
| 2,485
|
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 opennlp.tools.cmdline.parser;
import opennlp.tools.dictionary.Dictionary;
import opennlp.tools.ml.EventTrainer;
import opennlp.tools.ml.TrainerFactory;
import opennlp.tools.ml.model.Event;
import opennlp.tools.ml.model.MaxentModel;
import opennlp.tools.parser.Parse;
import opennlp.tools.parser.ParserEventTypeEnum;
import opennlp.tools.parser.ParserModel;
import opennlp.tools.parser.chunking.ParserEventStream;
import opennlp.tools.util.ObjectStream;
import opennlp.tools.util.model.ModelUtil;
import java.io.IOException;
public final class BuildModelUpdaterTool extends ModelUpdaterTool {
public String getShortDescription() {
return "trains and updates the build model in a parser model";
}
@Override
protected ParserModel trainAndUpdate(ParserModel originalModel,
ObjectStream<Parse> parseSamples, ModelUpdaterParams parameters)
throws IOException {
Dictionary mdict = ParserTrainerTool.buildDictionary(parseSamples, originalModel.getHeadRules(), 5);
parseSamples.reset();
// TODO: training individual models should be in the chunking parser, not here
// Training build
System.out.println("Training builder");
ObjectStream<Event> bes = new ParserEventStream(parseSamples,
originalModel.getHeadRules(), ParserEventTypeEnum.BUILD, mdict);
EventTrainer trainer = TrainerFactory.getEventTrainer(
ModelUtil.createDefaultTrainingParameters(), null);
MaxentModel buildModel = trainer.train(bes);
parseSamples.close();
return originalModel.updateBuildModel(buildModel);
}
}
|
[
"shrijith.sv@gmail.com"
] |
shrijith.sv@gmail.com
|
78f13bb8c1ab9558f3009854a606d14402157a59
|
7261cf7a1f2616cfc58f2a194bc4e17e97092a2c
|
/src/main/java/com/opslab/helper/ImageHelper.java
|
82342344e8dd0812d20d2f6d66e7576766f7fb52
|
[] |
no_license
|
WGWangTrendSetter/opslabJutil
|
8df3d3a8fb0efb32738c71672fd380db683992e1
|
66f9276fa49eba80a262de077c90ac60dcec5909
|
refs/heads/master
| 2020-09-22T17:18:44.002572
| 2019-10-29T06:58:12
| 2019-10-29T06:58:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,142
|
java
|
package com.opslab.helper;
import com.opslab.bean.ResultBean;
import com.opslab.util.RandomUtil;
import com.opslab.util.image.CaptchaUtil;
import javax.imageio.ImageIO;
import java.awt.*;
import java.io.File;
public final class ImageHelper {
/**
* 判断呢是否是图片
*
* @param filePath 文件路径
* @return
*/
public static boolean isImage(String filePath) {
File imageFile = new File(filePath);
if (!imageFile.exists()) {
return false;
}
Image img = null;
try {
img = ImageIO.read(imageFile);
if (img == null || img.getWidth(null) <= 0 || img.getHeight(null) <= 0) {
return false;
}
return true;
} catch (Exception e) {
return false;
} finally {
img = null;
}
}
/**
* 生产一张png格式的验证图片在指定的位置
*
* @param strlen 验证码长度
* @param width 图片宽带
* @param height 图片高度
* @param file 文件位置
*/
public static ResultBean pngCaptcha(int strlen, int width, int height, String file) {
String random = RandomUtil.string(strlen);
if (CaptchaUtil.pngCaptcha(random, width, height, file)) {
return new ResultBean(random,null,true);
}
return new ResultBean(random,null,false);
}
/**
* 生成一张png格式的验证码图片以base64编码返回
* @param strlen 验证码长度
* @param width 图片宽带
* @param height 图片高度
* @return
*/
public static ResultBean pngCaptchaBase64(int strlen,int width,int height) {
String random = RandomUtil.string(strlen);
String data = CaptchaUtil.pngCaptchaBase64(random, width, height);
if(data != null){
return new ResultBean(random,data,true);
}
return new ResultBean(random,null,false);
}
/**
* 生成一张gif的验证码
* @param strlen 验证码长度
* @param width 图片宽带
* @param height 图片高度
* @param file 文件位置
* @return
*/
public static ResultBean gifCaptch(int strlen,int width,int height, String file) {
String random = RandomUtil.string(strlen);
if (CaptchaUtil.gifCaptcha(random, width, height, file)) {
return new ResultBean(random,null,true);
}
return new ResultBean(random,null,false);
}
/**
* 生成一张gif的验证码
* @param strlen 验证码长度
* @param width 图片宽带
* @param height 图片高度
* @return
*/
public static ResultBean gifCaptchBase64(int strlen,int width,int height) {
String random = RandomUtil.string(strlen);
String data = CaptchaUtil.gifCaptchaBase64(random, width, height);
if(data != null){
return new ResultBean(random,data,true);
}
return new ResultBean(random,null,false);
}
}
|
[
"909070781@qq.com"
] |
909070781@qq.com
|
14a436a0957bb3187516a25a978fd39b206d9339
|
984784c4a9bffd0a0456cf6d3ec8b568ebdc5f86
|
/src/com/wemall/manage/seller/action/WaterMarkSellerAction.java
|
e21c1854d6937263dfdad31f09ad43ccef6b097c
|
[] |
no_license
|
javaknow/wemall
|
6e5b44460ff2f27613f01eeb828fe098779cee94
|
3813150e4089ef8d716739583a55a5a24d3ed96c
|
refs/heads/master
| 2020-09-15T03:52:32.623846
| 2019-08-31T10:03:50
| 2019-08-31T10:03:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,491
|
java
|
package com.wemall.manage.seller.action;
import com.wemall.core.annotation.SecurityMapping;
import com.wemall.core.mv.JModelAndView;
import com.wemall.core.security.support.SecurityUserHolder;
import com.wemall.core.tools.CommUtil;
import com.wemall.core.tools.WebForm;
import com.wemall.foundation.domain.Accessory;
import com.wemall.foundation.domain.Store;
import com.wemall.foundation.domain.WaterMark;
import com.wemall.foundation.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 卖家图片水印控制器
*/
@Controller
public class WaterMarkSellerAction {
@Autowired
private ISysConfigService configService;
@Autowired
private IUserConfigService userConfigService;
@Autowired
private IWaterMarkService watermarkService;
@Autowired
private IAccessoryService accessoryService;
@Autowired
private IUserService userService;
@SecurityMapping(display = false, rsequence = 0, title = "图片水印", value = "/seller/watermark.htm*", rtype = "seller", rname = "图片管理", rcode = "album_seller", rgroup = "其他设置")
@RequestMapping({"/seller/watermark.htm"})
public ModelAndView watermark(HttpServletRequest request, HttpServletResponse response){
ModelAndView mv = new JModelAndView(
"user/default/usercenter/watermark.html",
this.configService.getSysConfig(),
this.userConfigService.getUserConfig(), 0, request, response);
Store store = this.userService.getObjById(
SecurityUserHolder.getCurrentUser().getId()).getStore();
if (store != null){
Map params = new HashMap();
params.put("store_id", store.getId());
List wms = this.watermarkService
.query("select obj from WaterMark obj where obj.store.id=:store_id",
params, -1, -1);
if (wms.size() > 0){
mv.addObject("obj", wms.get(0));
}
}
return mv;
}
@SecurityMapping(display = false, rsequence = 0, title = "图片水印保存", value = "/seller/watermark_save.htm*", rtype = "seller", rname = "图片管理", rcode = "album_seller", rgroup = "其他设置")
@RequestMapping({"/seller/watermark_save.htm"})
public ModelAndView watermark_save(HttpServletRequest request, HttpServletResponse response, String id, String currentPage, String cmd){
ModelAndView mv = null;
if (SecurityUserHolder.getCurrentUser().getStore() != null){
WebForm wf = new WebForm();
WaterMark watermark = null;
if (id.equals("")){
watermark = (WaterMark)wf.toPo(request, WaterMark.class);
watermark.setAddTime(new Date());
}else{
WaterMark obj = this.watermarkService.getObjById(
Long.valueOf(Long.parseLong(id)));
watermark = (WaterMark)wf.toPo(request, obj);
}
watermark.setStore(SecurityUserHolder.getCurrentUser().getStore());
String path = request.getSession().getServletContext()
.getRealPath("/") +
"upload/wm";
try {
Map map = CommUtil.saveFileToServer(request, "wm_img", path,
null, null);
if (!map.get("fileName").equals("")){
Accessory wm_image = new Accessory();
wm_image.setAddTime(new Date());
wm_image.setHeight(CommUtil.null2Int(map.get("height")));
wm_image.setName(CommUtil.null2String(map.get("fileName")));
wm_image.setPath("upload/wm");
wm_image.setSize(CommUtil.null2Float(map.get("fileSize")));
wm_image.setUser(SecurityUserHolder.getCurrentUser());
wm_image.setWidth(CommUtil.null2Int("width"));
this.accessoryService.save(wm_image);
watermark.setWm_image(wm_image);
}
} catch (IOException e){
e.printStackTrace();
}
if (id.equals(""))
this.watermarkService.save(watermark);
else
this.watermarkService.update(watermark);
mv = new JModelAndView("success.html",
this.configService.getSysConfig(),
this.userConfigService.getUserConfig(), 1, request,
response);
mv.addObject("op_title", "水印设置成功");
}else{
mv = new JModelAndView("error.html", this.configService.getSysConfig(),
this.userConfigService.getUserConfig(), 1, request,
response);
mv.addObject("op_title", "您尚未开店");
}
mv.addObject("url", CommUtil.getURL(request) + "/seller/watermark.htm");
return mv;
}
}
|
[
"jhy..1008611"
] |
jhy..1008611
|
0f56c25bc9262c45a9e95a73bd8a4873fc9910a0
|
29f78bfb928fb6f191b08624ac81b54878b80ded
|
/generated_SPs_SCs/IADC/SCs/SC_command/src/main/java/SP_aircraftcarrier1/output/OutputDataClassName_2_4.java
|
766d8c3ac8a6596cbe813634123a3e1344eb3804
|
[] |
no_license
|
MSPL4SOA/MSPL4SOA-tool
|
8a78e73b4ac7123cf1815796a70f26784866f272
|
9f3419e416c600cba13968390ee89110446d80fb
|
refs/heads/master
| 2020-04-17T17:30:27.410359
| 2018-07-27T14:18:55
| 2018-07-27T14:18:55
| 66,304,158
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,858
|
java
|
package SP_aircraftcarrier1.output;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "OutputDataClassName_2_4")
public class OutputDataClassName_2_4 implements Serializable {
private static final long serialVersionUID = 1L;
@XmlElement(name = "OutputName_2_4_4")
protected String OutputName_2_4_4;
@XmlElement(name = "OutputName_2_4_5")
protected String OutputName_2_4_5;
@XmlElement(name = "OutputName_2_4_6")
protected Integer OutputName_2_4_6;
@XmlElement(name = "OutputName_2_4_1")
protected Integer OutputName_2_4_1;
@XmlElement(name = "OutputName_2_4_2")
protected Float OutputName_2_4_2;
@XmlElement(name = "OutputName_2_4_3")
protected Float OutputName_2_4_3;
public String getOutputName_2_4_4() {
return OutputName_2_4_4;
}
public String getOutputName_2_4_5() {
return OutputName_2_4_5;
}
public Integer getOutputName_2_4_6() {
return OutputName_2_4_6;
}
public Integer getOutputName_2_4_1() {
return OutputName_2_4_1;
}
public Float getOutputName_2_4_2() {
return OutputName_2_4_2;
}
public Float getOutputName_2_4_3() {
return OutputName_2_4_3;
}
public void setOutputName_2_4_4(String value) {
this.OutputName_2_4_4 = value;
}
public void setOutputName_2_4_5(String value) {
this.OutputName_2_4_5 = value;
}
public void setOutputName_2_4_6(Integer value) {
this.OutputName_2_4_6 = value;
}
public void setOutputName_2_4_1(Integer value) {
this.OutputName_2_4_1 = value;
}
public void setOutputName_2_4_2(Float value) {
this.OutputName_2_4_2 = value;
}
public void setOutputName_2_4_3(Float value) {
this.OutputName_2_4_3 = value;
}
}
|
[
"akram.kamoun@gmail.com"
] |
akram.kamoun@gmail.com
|
0b9b3737ae6aa8bf0a8d795086c7020442558611
|
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
|
/JFreeChart/rev91-389/left-branch-389/tests/org/jfree/chart/plot/junit/MeterPlotTests.java
|
2472a96a1a3549f4b73f281e736488a93c475ff4
|
[] |
no_license
|
joliebig/featurehouse_fstmerge_examples
|
af1b963537839d13e834f829cf51f8ad5e6ffe76
|
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
|
refs/heads/master
| 2016-09-05T10:24:50.974902
| 2013-03-28T16:28:47
| 2013-03-28T16:28:47
| 9,080,611
| 3
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,784
|
java
|
package org.jfree.chart.plot.junit;
import java.awt.Color;
import java.awt.Font;
import java.awt.GradientPaint;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import java.text.DecimalFormat;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.jfree.chart.plot.DialShape;
import org.jfree.chart.plot.MeterInterval;
import org.jfree.chart.plot.MeterPlot;
import org.jfree.data.Range;
import org.jfree.data.general.DefaultValueDataset;
public class MeterPlotTests extends TestCase {
public static Test suite() {
return new TestSuite(MeterPlotTests.class);
}
public MeterPlotTests(String name) {
super(name);
}
public void testEquals() {
MeterPlot plot1 = new MeterPlot();
MeterPlot plot2 = new MeterPlot();
assertTrue(plot1.equals(plot2));
plot1.setUnits("mph");
assertFalse(plot1.equals(plot2));
plot2.setUnits("mph");
assertTrue(plot1.equals(plot2));
plot1.setRange(new Range(50.0, 70.0));
assertFalse(plot1.equals(plot2));
plot2.setRange(new Range(50.0, 70.0));
assertTrue(plot1.equals(plot2));
plot1.addInterval(new MeterInterval("Normal", new Range(55.0, 60.0)));
assertFalse(plot1.equals(plot2));
plot2.addInterval(new MeterInterval("Normal", new Range(55.0, 60.0)));
assertTrue(plot1.equals(plot2));
plot1.setDialOutlinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.blue));
assertFalse(plot1.equals(plot2));
plot2.setDialOutlinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.blue));
assertTrue(plot1.equals(plot2));
plot1.setDialShape(DialShape.CHORD);
assertFalse(plot1.equals(plot2));
plot2.setDialShape(DialShape.CHORD);
assertTrue(plot1.equals(plot2));
plot1.setDialBackgroundPaint(new GradientPaint(9.0f, 8.0f, Color.red,
7.0f, 6.0f, Color.blue));
assertFalse(plot1.equals(plot2));
plot2.setDialBackgroundPaint(new GradientPaint(9.0f, 8.0f, Color.red,
7.0f, 6.0f, Color.blue));
assertTrue(plot1.equals(plot2));
plot1.setNeedlePaint(new GradientPaint(9.0f, 8.0f, Color.red,
7.0f, 6.0f, Color.blue));
assertFalse(plot1.equals(plot2));
plot2.setNeedlePaint(new GradientPaint(9.0f, 8.0f, Color.red,
7.0f, 6.0f, Color.blue));
assertTrue(plot1.equals(plot2));
plot1.setValueFont(new Font("Serif", Font.PLAIN, 6));
assertFalse(plot1.equals(plot2));
plot2.setValueFont(new Font("Serif", Font.PLAIN, 6));
assertTrue(plot1.equals(plot2));
plot1.setValuePaint(new GradientPaint(1.0f, 2.0f, Color.black,
3.0f, 4.0f, Color.white));
assertFalse(plot1.equals(plot2));
plot2.setValuePaint(new GradientPaint(1.0f, 2.0f, Color.black,
3.0f, 4.0f, Color.white));
assertTrue(plot1.equals(plot2));
plot1.setTickLabelsVisible(false);
assertFalse(plot1.equals(plot2));
plot2.setTickLabelsVisible(false);
assertTrue(plot1.equals(plot2));
plot1.setTickLabelFont(new Font("Serif", Font.PLAIN, 6));
assertFalse(plot1.equals(plot2));
plot2.setTickLabelFont(new Font("Serif", Font.PLAIN, 6));
assertTrue(plot1.equals(plot2));
plot1.setTickLabelPaint(Color.red);
assertFalse(plot1.equals(plot2));
plot2.setTickLabelPaint(Color.red);
assertTrue(plot1.equals(plot2));
plot1.setTickLabelFormat(new DecimalFormat("0"));
assertFalse(plot1.equals(plot2));
plot2.setTickLabelFormat(new DecimalFormat("0"));
assertTrue(plot1.equals(plot2));
plot1.setTickPaint(Color.green);
assertFalse(plot1.equals(plot2));
plot2.setTickPaint(Color.green);
assertTrue(plot1.equals(plot2));
plot1.setTickSize(1.23);
assertFalse(plot1.equals(plot2));
plot2.setTickSize(1.23);
assertTrue(plot1.equals(plot2));
plot1.setDrawBorder(!plot1.getDrawBorder());
assertFalse(plot1.equals(plot2));
plot2.setDrawBorder(plot1.getDrawBorder());
assertTrue(plot1.equals(plot2));
plot1.setMeterAngle(22);
assertFalse(plot1.equals(plot2));
plot2.setMeterAngle(22);
assertTrue(plot1.equals(plot2));
}
public void testCloning() {
MeterPlot p1 = new MeterPlot();
MeterPlot p2 = null;
try {
p2 = (MeterPlot) p1.clone();
}
catch (CloneNotSupportedException e) {
e.printStackTrace();
}
assertTrue(p1 != p2);
assertTrue(p1.getClass() == p2.getClass());
assertTrue(p1.equals(p2));
assertTrue(p1.getDataset() == p2.getDataset());
p1.getTickLabelFormat().setMinimumIntegerDigits(99);
assertFalse(p1.equals(p2));
p2.getTickLabelFormat().setMinimumIntegerDigits(99);
assertTrue(p1.equals(p2));
p1.addInterval(new MeterInterval("Test", new Range(1.234, 5.678)));
assertFalse(p1.equals(p2));
p2.addInterval(new MeterInterval("Test", new Range(1.234, 5.678)));
assertTrue(p1.equals(p2));
}
public void testSerialization1() {
MeterPlot p1 = new MeterPlot(null);
p1.setDialBackgroundPaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.blue));
p1.setDialBackgroundPaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.blue));
p1.setNeedlePaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.blue));
p1.setTickLabelPaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.blue));
p1.setTickPaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.blue));
MeterPlot p2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(p1);
out.close();
ObjectInput in = new ObjectInputStream(
new ByteArrayInputStream(buffer.toByteArray()));
p2 = (MeterPlot) in.readObject();
in.close();
}
catch (Exception e) {
e.printStackTrace();
}
assertEquals(p1, p2);
}
public void testSerialization2() {
MeterPlot p1 = new MeterPlot(new DefaultValueDataset(1.23));
MeterPlot p2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(p1);
out.close();
ObjectInput in = new ObjectInputStream(
new ByteArrayInputStream(buffer.toByteArray()));
p2 = (MeterPlot) in.readObject();
in.close();
}
catch (Exception e) {
e.printStackTrace();
}
assertEquals(p1, p2);
}
}
|
[
"joliebig@fim.uni-passau.de"
] |
joliebig@fim.uni-passau.de
|
878b4fd0dd9b001e059d6d203ca6c516b0b1dec6
|
082e26b011e30dc62a62fae95f375e4f87d9e99c
|
/docs/weixin_7.0.4_source/反编译源码/反混淆后/src/main/java/com/google/android/gms/common/api/internal/LifecycleActivity.java
|
e84c80c5ab3f1949bc4d80c708bec125ec8022a1
|
[] |
no_license
|
xsren/AndroidReverseNotes
|
9631a5aabc031006e795a112b7ac756a8edd4385
|
9202c276fe9f04a978e4e08b08e42645d97ca94b
|
refs/heads/master
| 2021-04-07T22:50:51.072197
| 2019-07-16T02:24:43
| 2019-07-16T02:24:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 978
|
java
|
package com.google.android.gms.common.api.internal;
import android.app.Activity;
import android.support.p057v4.app.FragmentActivity;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.internal.Preconditions;
import com.tencent.matrix.trace.core.AppMethodBeat;
@KeepForSdk
public class LifecycleActivity {
private final Object zzkz;
public LifecycleActivity(Activity activity) {
AppMethodBeat.m2504i(89480);
Preconditions.checkNotNull(activity, "Activity must not be null");
this.zzkz = activity;
AppMethodBeat.m2505o(89480);
}
public final boolean zzbv() {
return this.zzkz instanceof FragmentActivity;
}
public final boolean zzbw() {
return this.zzkz instanceof Activity;
}
public final Activity zzbx() {
return (Activity) this.zzkz;
}
public final FragmentActivity zzby() {
return (FragmentActivity) this.zzkz;
}
}
|
[
"alwangsisi@163.com"
] |
alwangsisi@163.com
|
d28629d5fd0e3bd36fd9d2f562d305b5fc77d59f
|
139960e2d7d55e71c15e6a63acb6609e142a2ace
|
/mobile_app1/module342/src/main/java/module342packageJava0/Foo715.java
|
84d88b44d3ae1b1867b374313f9f37cbc11c9a3c
|
[
"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
| 511
|
java
|
package module342packageJava0;
import java.lang.Integer;
public class Foo715 {
Integer int0;
Integer int1;
public void foo0() {
new module342packageJava0.Foo714().foo8();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
public void foo6() {
foo5();
}
public void foo7() {
foo6();
}
public void foo8() {
foo7();
}
}
|
[
"oliviern@uber.com"
] |
oliviern@uber.com
|
f29bf0675a449a0b00262dd1801940b3a3744c4e
|
5ffd030d9eae417ccba8a71017dbb5c5e02a41d4
|
/src/main/java/com/mycompany/myapp/service/impl/LocationServiceImpl.java
|
392aa500c225d3a64f032e0062e9ae98157464c0
|
[] |
no_license
|
MousaAsmaran/jhipster-sample-application
|
28284dd8390c85efc661e73a38dda35611893ae2
|
62f9989a2fef2e56542ea0db585132a333dc2cf7
|
refs/heads/master
| 2022-12-24T06:04:06.992663
| 2020-01-21T07:47:16
| 2020-01-21T07:47:16
| 235,282,973
| 0
| 0
| null | 2022-12-16T04:43:29
| 2020-01-21T07:44:48
|
Java
|
UTF-8
|
Java
| false
| false
| 3,656
|
java
|
package com.mycompany.myapp.service.impl;
import com.mycompany.myapp.service.LocationService;
import com.mycompany.myapp.domain.Location;
import com.mycompany.myapp.repository.LocationRepository;
import com.mycompany.myapp.repository.search.LocationSearchRepository;
import com.mycompany.myapp.service.dto.LocationDTO;
import com.mycompany.myapp.service.mapper.LocationMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.LinkedList;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
import static org.elasticsearch.index.query.QueryBuilders.*;
/**
* Service Implementation for managing {@link Location}.
*/
@Service
@Transactional
public class LocationServiceImpl implements LocationService {
private final Logger log = LoggerFactory.getLogger(LocationServiceImpl.class);
private final LocationRepository locationRepository;
private final LocationMapper locationMapper;
private final LocationSearchRepository locationSearchRepository;
public LocationServiceImpl(LocationRepository locationRepository, LocationMapper locationMapper, LocationSearchRepository locationSearchRepository) {
this.locationRepository = locationRepository;
this.locationMapper = locationMapper;
this.locationSearchRepository = locationSearchRepository;
}
/**
* Save a location.
*
* @param locationDTO the entity to save.
* @return the persisted entity.
*/
@Override
public LocationDTO save(LocationDTO locationDTO) {
log.debug("Request to save Location : {}", locationDTO);
Location location = locationMapper.toEntity(locationDTO);
location = locationRepository.save(location);
LocationDTO result = locationMapper.toDto(location);
locationSearchRepository.save(location);
return result;
}
/**
* Get all the locations.
*
* @return the list of entities.
*/
@Override
@Transactional(readOnly = true)
public List<LocationDTO> findAll() {
log.debug("Request to get all Locations");
return locationRepository.findAll().stream()
.map(locationMapper::toDto)
.collect(Collectors.toCollection(LinkedList::new));
}
/**
* Get one location by id.
*
* @param id the id of the entity.
* @return the entity.
*/
@Override
@Transactional(readOnly = true)
public Optional<LocationDTO> findOne(Long id) {
log.debug("Request to get Location : {}", id);
return locationRepository.findById(id)
.map(locationMapper::toDto);
}
/**
* Delete the location by id.
*
* @param id the id of the entity.
*/
@Override
public void delete(Long id) {
log.debug("Request to delete Location : {}", id);
locationRepository.deleteById(id);
locationSearchRepository.deleteById(id);
}
/**
* Search for the location corresponding to the query.
*
* @param query the query of the search.
* @return the list of entities.
*/
@Override
@Transactional(readOnly = true)
public List<LocationDTO> search(String query) {
log.debug("Request to search Locations for query {}", query);
return StreamSupport
.stream(locationSearchRepository.search(queryStringQuery(query)).spliterator(), false)
.map(locationMapper::toDto)
.collect(Collectors.toList());
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
52e282b3194ee579dfd938d0b017d4097ff0d3b9
|
81b3984cce8eab7e04a5b0b6bcef593bc0181e5a
|
/android/CarLife/app/src/main/java/com/facebook/imagepipeline/memory/C5641n.java
|
020b269a81333ec222b4b34c38f1e4a795eaf50a
|
[] |
no_license
|
ausdruck/Demo
|
20ee124734d3a56b99b8a8e38466f2adc28024d6
|
e11f8844f4852cec901ba784ce93fcbb4200edc6
|
refs/heads/master
| 2020-04-10T03:49:24.198527
| 2018-07-27T10:14:56
| 2018-07-27T10:14:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,450
|
java
|
package com.facebook.imagepipeline.memory;
import com.facebook.common.internal.C5350k;
import com.facebook.common.internal.VisibleForTesting;
import com.facebook.common.p140h.C2921a;
import com.facebook.imagepipeline.memory.C5640y.C5655a;
import javax.annotation.concurrent.GuardedBy;
import javax.annotation.concurrent.ThreadSafe;
@ThreadSafe
/* compiled from: NativePooledByteBuffer */
/* renamed from: com.facebook.imagepipeline.memory.n */
public class C5641n implements C5640y {
@GuardedBy("this")
@VisibleForTesting
/* renamed from: a */
C2921a<NativeMemoryChunk> f22776a;
/* renamed from: b */
private final int f22777b;
public C5641n(C2921a<NativeMemoryChunk> bufRef, int size) {
C5350k.m18310a((Object) bufRef);
boolean z = size >= 0 && size <= ((NativeMemoryChunk) bufRef.a()).m19450b();
C5350k.m18315a(z);
this.f22776a = bufRef.b();
this.f22777b = size;
}
/* renamed from: a */
public synchronized int mo4155a() {
m19556d();
return this.f22777b;
}
/* renamed from: a */
public synchronized byte mo4154a(int offset) {
byte a;
boolean z = true;
synchronized (this) {
boolean z2;
m19556d();
if (offset >= 0) {
z2 = true;
} else {
z2 = false;
}
C5350k.m18315a(z2);
if (offset >= this.f22777b) {
z = false;
}
C5350k.m18315a(z);
a = ((NativeMemoryChunk) this.f22776a.a()).m19446a(offset);
}
return a;
}
/* renamed from: a */
public synchronized void mo4156a(int offset, byte[] buffer, int bufferOffset, int length) {
m19556d();
C5350k.m18315a(offset + length <= this.f22777b);
((NativeMemoryChunk) this.f22776a.a()).m19451b(offset, buffer, bufferOffset, length);
}
/* renamed from: b */
public synchronized long mo4157b() {
m19556d();
return ((NativeMemoryChunk) this.f22776a.a()).m19452c();
}
/* renamed from: c */
public synchronized boolean mo4158c() {
return !C2921a.a(this.f22776a);
}
public synchronized void close() {
C2921a.c(this.f22776a);
this.f22776a = null;
}
/* renamed from: d */
synchronized void m19556d() {
if (mo4158c()) {
throw new C5655a();
}
}
}
|
[
"objectyan@gmail.com"
] |
objectyan@gmail.com
|
dd27cfd8aa7e52bde215271390078089c4d97a24
|
a4178e5042f43f94344789794d1926c8bdba51c0
|
/iwxxmCore/src/main/resources/schemabindings2_1/net/opengis/gml/v_3_2_1/VectorType.java
|
abfb931e6e93e25feb2fda1da978440ee8c17348
|
[
"Apache-2.0"
] |
permissive
|
moryakovdv/iwxxmConverter
|
c6fb73bc49765c4aeb7ee0153cca04e3e3846ab0
|
5c2b57e57c3038a9968b026c55e381eef0f34dad
|
refs/heads/master
| 2023-07-20T06:58:00.317736
| 2023-07-05T10:10:10
| 2023-07-05T10:10:10
| 128,777,786
| 11
| 7
|
Apache-2.0
| 2023-07-05T10:03:12
| 2018-04-09T13:38:59
|
Java
|
UTF-8
|
Java
| false
| false
| 1,156
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.02.27 at 12:41:52 PM MSK
//
package net.opengis.gml.v_3_2_1;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* For some applications the components of the position may be adjusted to yield a unit vector.
*
* <p>Java class for VectorType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="VectorType">
* <simpleContent>
* <restriction base="<http://www.opengis.net/gml/3.2>DirectPositionType">
* </restriction>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VectorType")
public class VectorType
extends DirectPositionType
{
}
|
[
"moryakovdv@gmail.com"
] |
moryakovdv@gmail.com
|
24f2393ad69a517ec8c82ed0b200c1664f7012a6
|
cecf17c0c2adaa885a67b4012b9fd479f08cbf51
|
/jstorm/jstorm-client/src/main/java/backtype/storm/serialization/KryoTupleSerializer.java
|
e04b145ba7f959776600047edecbb21fd65d3c27
|
[
"Apache-2.0"
] |
permissive
|
bopopescu/CodeRead
|
39cef6c23ae0b09d5d8285fe516fd96b17ccb435
|
d193c4aae47dd22f4913961be6dc8945bc39ba13
|
refs/heads/master
| 2022-11-29T15:46:21.446310
| 2017-05-19T01:13:53
| 2017-05-19T01:13:53
| 281,996,462
| 0
| 0
| null | 2020-07-23T16:01:14
| 2020-07-23T16:01:13
| null |
UTF-8
|
Java
| false
| false
| 1,952
|
java
|
package backtype.storm.serialization;
import backtype.storm.task.GeneralTopologyContext;
import backtype.storm.tuple.Tuple;
import backtype.storm.tuple.TupleExt;
import com.esotericsoftware.kryo.io.Output;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Map;
public class KryoTupleSerializer implements ITupleSerializer {
KryoValuesSerializer _kryo;
SerializationFactory.IdDictionary _ids;
Output _kryoOut;
public KryoTupleSerializer(final Map conf,
final GeneralTopologyContext context) {
_kryo = new KryoValuesSerializer(conf);
_kryoOut = new Output(2000, 2000000000);
_ids = new SerializationFactory.IdDictionary(context.getRawTopology());
}
/**
* @@@ in the furture, it will skill serialize 'targetTask' through check
* some flag
* @see backtype.storm.serialization.ITupleSerializer#serialize(int,
* backtype.storm.tuple.Tuple)
*/
public byte[] serialize(Tuple tuple) {
try {
_kryoOut.clear();
if (tuple instanceof TupleExt) {
_kryoOut.writeInt(((TupleExt) tuple).getTargetTaskId());
}
_kryoOut.writeInt(tuple.getSourceTask(), true);
_kryoOut.writeInt(
_ids.getStreamId(tuple.getSourceComponent(),
tuple.getSourceStreamId()), true);
tuple.getMessageId().serialize(_kryoOut);
_kryo.serializeInto(tuple.getValues(), _kryoOut);
return _kryoOut.toBytes();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public static byte[] serialize(int targetTask) {
ByteBuffer buff = ByteBuffer.allocate((Integer.SIZE / 8));
buff.putInt(targetTask);
byte[] rtn = buff.array();
return rtn;
}
// public long crc32(Tuple tuple) {
// try {
// CRC32OutputStream hasher = new CRC32OutputStream();
// _kryo.serializeInto(tuple.getValues(), hasher);
// return hasher.getValue();
// } catch (IOException e) {
// throw new RuntimeException(e);
// }
// }
}
|
[
"zqhxuyuan@gmail.com"
] |
zqhxuyuan@gmail.com
|
c48eac133582df639f5ee668b99713a525e63f82
|
3cd69da4d40f2d97130b5bf15045ba09c219f1fa
|
/sources/kotlinx/coroutines/DispatchersKt.java
|
6b8d5ac83842b5ef67fb010128d91b2418941ffa
|
[] |
no_license
|
TheWizard91/Album_base_source_from_JADX
|
946ea3a407b4815ac855ce4313b97bd42e8cab41
|
e1d228fc2ee550ac19eeac700254af8b0f96080a
|
refs/heads/master
| 2023-01-09T08:37:22.062350
| 2020-11-11T09:52:40
| 2020-11-11T09:52:40
| 311,927,971
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 515
|
java
|
package kotlinx.coroutines;
import kotlin.Metadata;
@Metadata(mo33669bv = {1, 0, 3}, mo33670d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\"\u000e\u0010\u0000\u001a\u00020\u0001XT¢\u0006\u0002\n\u0000¨\u0006\u0002"}, mo33671d2 = {"IO_PARALLELISM_PROPERTY_NAME", "", "kotlinx-coroutines-core"}, mo33672k = 2, mo33673mv = {1, 1, 15})
/* compiled from: Dispatchers.kt */
public final class DispatchersKt {
public static final String IO_PARALLELISM_PROPERTY_NAME = "kotlinx.coroutines.io.parallelism";
}
|
[
"agiapong@gmail.com"
] |
agiapong@gmail.com
|
11117af30e690440ff26a3f3f470b1be01da71bb
|
f0cdf98c1332634fdac66764779f3e722349cd02
|
/library/extractor/src/test/java/com/upax/exoplayer2/extractor/flac/FlacExtractorTest.java
|
894175b29ae8cdfa0c2a225510b6771e35c6f53b
|
[
"Apache-2.0"
] |
permissive
|
UlaiS/exoplayer2
|
acc8a565b4f2c379fe129c561786371b5078105c
|
73ea2e4283b753d081da603dbcd6b8079aeb0935
|
refs/heads/main
| 2022-07-29T19:57:50.987503
| 2021-11-23T23:52:06
| 2021-11-23T23:52:06
| 431,241,943
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,968
|
java
|
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.upax.exoplayer2.extractor.flac;
import com.upax.exoplayer2.testutil.ExtractorAsserts;
import com.upax.exoplayer2.testutil.ExtractorAsserts.AssertionConfig;
import com.google.common.collect.ImmutableList;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.ParameterizedRobolectricTestRunner;
import org.robolectric.ParameterizedRobolectricTestRunner.Parameter;
import org.robolectric.ParameterizedRobolectricTestRunner.Parameters;
/** Unit tests for {@link FlacExtractor}. */
@RunWith(ParameterizedRobolectricTestRunner.class)
public class FlacExtractorTest {
@Parameters(name = "{0}")
public static ImmutableList<ExtractorAsserts.SimulationConfig> params() {
return ExtractorAsserts.configs();
}
@Parameter public ExtractorAsserts.SimulationConfig simulationConfig;
@Test
public void sample() throws Exception {
ExtractorAsserts.assertBehavior(
FlacExtractor::new,
"media/flac/bear.flac",
new AssertionConfig.Builder().setDumpFilesPrefix("extractordumps/flac/bear_flac").build(),
simulationConfig);
}
@Test
public void sampleWithId3HeaderAndId3Enabled() throws Exception {
ExtractorAsserts.assertBehavior(
FlacExtractor::new,
"media/flac/bear_with_id3.flac",
new AssertionConfig.Builder()
.setDumpFilesPrefix("extractordumps/flac/bear_with_id3_enabled_flac")
.build(),
simulationConfig);
}
@Test
public void sampleWithId3HeaderAndId3Disabled() throws Exception {
ExtractorAsserts.assertBehavior(
() -> new FlacExtractor(FlacExtractor.FLAG_DISABLE_ID3_METADATA),
"media/flac/bear_with_id3.flac",
new AssertionConfig.Builder()
.setDumpFilesPrefix("extractordumps/flac/bear_with_id3_disabled_flac")
.build(),
simulationConfig);
}
@Test
public void sampleUnseekable() throws Exception {
ExtractorAsserts.assertBehavior(
FlacExtractor::new,
"media/flac/bear_no_seek_table_no_num_samples.flac",
new AssertionConfig.Builder()
.setDumpFilesPrefix("extractordumps/flac/bear_no_seek_table_no_num_samples_flac")
.build(),
simulationConfig);
}
@Test
public void sampleWithVorbisComments() throws Exception {
ExtractorAsserts.assertBehavior(
FlacExtractor::new,
"media/flac/bear_with_vorbis_comments.flac",
new AssertionConfig.Builder()
.setDumpFilesPrefix("extractordumps/flac/bear_with_vorbis_comments_flac")
.build(),
simulationConfig);
}
@Test
public void sampleWithPicture() throws Exception {
ExtractorAsserts.assertBehavior(
FlacExtractor::new,
"media/flac/bear_with_picture.flac",
new AssertionConfig.Builder()
.setDumpFilesPrefix("extractordumps/flac/bear_with_picture_flac")
.build(),
simulationConfig);
}
@Test
public void oneMetadataBlock() throws Exception {
ExtractorAsserts.assertBehavior(
FlacExtractor::new,
"media/flac/bear_one_metadata_block.flac",
new AssertionConfig.Builder()
.setDumpFilesPrefix("extractordumps/flac/bear_one_metadata_block_flac")
.build(),
simulationConfig);
}
@Test
public void noMinMaxFrameSize() throws Exception {
ExtractorAsserts.assertBehavior(
FlacExtractor::new,
"media/flac/bear_no_min_max_frame_size.flac",
new AssertionConfig.Builder()
.setDumpFilesPrefix("extractordumps/flac/bear_no_min_max_frame_size_flac")
.build(),
simulationConfig);
}
@Test
public void noNumSamples() throws Exception {
ExtractorAsserts.assertBehavior(
FlacExtractor::new,
"media/flac/bear_no_num_samples.flac",
new AssertionConfig.Builder()
.setDumpFilesPrefix("extractordumps/flac/bear_no_num_samples_flac")
.build(),
simulationConfig);
}
@Test
public void uncommonSampleRate() throws Exception {
ExtractorAsserts.assertBehavior(
FlacExtractor::new,
"media/flac/bear_uncommon_sample_rate.flac",
new AssertionConfig.Builder()
.setDumpFilesPrefix("extractordumps/flac/bear_uncommon_sample_rate_flac")
.build(),
simulationConfig);
}
}
|
[
"ulainava@gmail.com"
] |
ulainava@gmail.com
|
3b98543effa1a05d5d432f6e55090fd107d46e91
|
a7412e915e3115ea12629eb764aba7b6d7d618fa
|
/app/src/main/java/com/puyue/www/qiaoge/model/home/GetEquipmentByIdAndDateModel.java
|
dc3460ab8f6cf1140667192d851d6f306c0a20ec
|
[] |
no_license
|
wang15855271796/qiaoge
|
a50a93f03a0e5b64562f7f85a2d8d5c7ce5aa56e
|
b6f8009e72cbf9bdcf293dd9760dcb904e164f00
|
refs/heads/master
| 2023-03-22T05:34:09.716442
| 2021-03-20T07:19:30
| 2021-03-20T07:19:30
| 349,652,900
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,460
|
java
|
package com.puyue.www.qiaoge.model.home;
import java.util.List;
/**
* If I become novel would you like ?
* Created by WinSinMin on 2018/4/23.
*/
public class GetEquipmentByIdAndDateModel {
/**
* code : 1
* message : 成功
* data : {"id":1,"name":"设备1","spec":"规格1","price":"100.00","number":85,"totalReservation":3,"deposit":"100.00","picUrlList":["https://barbecue-img.oss-cn-hangzhou.aliyuncs.com/product/879fdf10a6a247479f4649cdeb65145a.jpg","https://barbecue-img.oss-cn-hangzhou.aliyuncs.com/product/879fdf10a6a247479f4649cdeb65145a.jpg","https://barbecue-img.oss-cn-hangzhou.aliyuncs.com/product/879fdf10a6a247479f4649cdeb65145a.jpg","https://barbecue-img.oss-cn-hangzhou.aliyuncs.com/product/879fdf10a6a247479f4649cdeb65145a.jpg"],"desc":"规格1规格1说明","mainPic":"https://barbecue-img.oss-cn-hangzhou.aliyuncs.com/product/879fdf10a6a247479f4649cdeb65145a.jpg","monthSalesVolume":10,"totalSale":100,"sellPrice":"1000.00"}
* success : true
* error : false
*/
public int code;
public String message;
public DataBean data;
public boolean success;
public boolean error;
public static class DataBean {
/**
* id : 1
* name : 设备1
* spec : 规格1
* price : 100.00
* number : 85
* totalReservation : 3
* deposit : 100.00
* picUrlList : ["https://barbecue-img.oss-cn-hangzhou.aliyuncs.com/product/879fdf10a6a247479f4649cdeb65145a.jpg","https://barbecue-img.oss-cn-hangzhou.aliyuncs.com/product/879fdf10a6a247479f4649cdeb65145a.jpg","https://barbecue-img.oss-cn-hangzhou.aliyuncs.com/product/879fdf10a6a247479f4649cdeb65145a.jpg","https://barbecue-img.oss-cn-hangzhou.aliyuncs.com/product/879fdf10a6a247479f4649cdeb65145a.jpg"]
* desc : 规格1规格1说明
* mainPic : https://barbecue-img.oss-cn-hangzhou.aliyuncs.com/product/879fdf10a6a247479f4649cdeb65145a.jpg
* monthSalesVolume : 10
* totalSale : 100
* sellPrice : 1000.00
*/
public int id;
public String name;
public String spec;
public String price;
public int number;
public int totalReservation;
public String deposit;
public String desc;
public String mainPic;
public int monthSalesVolume;
public int totalSale;
public String sellPrice;
public List<String> picUrlList;
}
}
|
[
"1433953566@qq.com"
] |
1433953566@qq.com
|
8013d41d56068c8354b3a2ae7612ca767e8989bb
|
6253283b67c01a0d7395e38aeeea65e06f62504b
|
/decompile/app/HwSystemManager/src/main/java/com/huawei/systemmanager/addviewmonitor/IAppChangeListener.java
|
0202a3c2e02cc4a46a3cbf0b6f5ed80c9c57f628
|
[] |
no_license
|
sufadi/decompile-hw
|
2e0457a0a7ade103908a6a41757923a791248215
|
4c3efd95f3e997b44dd4ceec506de6164192eca3
|
refs/heads/master
| 2023-03-15T15:56:03.968086
| 2017-11-08T03:29:10
| 2017-11-08T03:29:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 198
|
java
|
package com.huawei.systemmanager.addviewmonitor;
public interface IAppChangeListener {
void onPackageAdded(String str, AddViewAppInfo addViewAppInfo);
void onPackageRemoved(String str);
}
|
[
"liming@droi.com"
] |
liming@droi.com
|
14384920d4ca277bc63b1e0373e6b8c5bb1366dd
|
3f3c51248f812750a702e3349bcb29653942a886
|
/spring-messaging/src/main/java/org/springframework/messaging/simp/user/DestinationUserNameProvider.java
|
8c0ac7d191b77fa74617d60bf1babfac20ff83aa
|
[
"Apache-2.0"
] |
permissive
|
sniper602/spring-framework-4.1
|
f17b05f36b640ab1beee38d75c3a8098e0168827
|
6628bade53173075024bd1104ce1f04743cd69c4
|
refs/heads/master
| 2020-09-12T06:56:36.349853
| 2018-11-24T02:53:14
| 2018-11-24T02:53:14
| 222,347,493
| 1
| 0
| null | 2019-11-18T02:31:24
| 2019-11-18T02:31:24
| null |
UTF-8
|
Java
| false
| false
| 579
|
java
|
package org.springframework.messaging.simp.user;
/**
* An interface to be implemented in addition to {@link java.security.Principal}
* when {@link java.security.Principal#getName()} is not globally unique enough
* for use in user destinations. For more on user destination see
* {@link org.springframework.messaging.simp.user.UserDestinationResolver}.
*
* @author Rossen Stoyanchev
* @since 4.0.1
*/
public interface DestinationUserNameProvider {
/**
* Return the (globally unique) user name to use with user destinations.
*/
String getDestinationUserName();
}
|
[
"yemuyu240@163.com"
] |
yemuyu240@163.com
|
e324a5d924d8c47f0a18f303ed80f9be8c3ff1e4
|
25baed098f88fc0fa22d051ccc8027aa1834a52b
|
/src/main/java/com/ljh/controller/base/JytPrivatecloudZzController.java
|
440b28676ac595bd0d6dc014b0549ca1da08cd16
|
[] |
no_license
|
woai555/ljh
|
a5015444082f2f39d58fb3e38260a6d61a89af9f
|
17cf8f4415c9ae7d9fedae46cd9e9d0d3ce536f9
|
refs/heads/master
| 2022-07-11T06:52:07.620091
| 2022-01-05T06:51:27
| 2022-01-05T06:51:27
| 132,585,637
| 0
| 0
| null | 2022-06-17T03:29:19
| 2018-05-08T09:25:32
|
Java
|
UTF-8
|
Java
| false
| false
| 329
|
java
|
package com.ljh.controller.base;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* 前端控制器
* </p>
*
* @author ljh
* @since 2020-10-26
*/
@Controller
@RequestMapping("/jytPrivatecloudZz")
public class JytPrivatecloudZzController {
}
|
[
"37681193+woai555@users.noreply.github.com"
] |
37681193+woai555@users.noreply.github.com
|
65daa3c1c07b52cd8a1f73de1b800c18ba836519
|
83204cdcdf62a8f78dc701eb68d7f26131c4b474
|
/ch4/src/main/java/com/apress/prospring3/ch4/NonSingleton.java
|
1ac0b8887c5f6c56fe6e543888ba2b17f39da67b
|
[] |
no_license
|
wikibook/prospring3
|
1974189e573b8bf7c42ba570339375c84b29ee12
|
1a463948898753d8817088d093e14c819ce0e040
|
refs/heads/master
| 2021-01-01T05:31:25.398537
| 2013-10-25T13:57:17
| 2013-10-25T13:57:17
| 13,862,097
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 744
|
java
|
/**
* Created on Sep 22, 2011
*/
package com.apress.prospring3.ch4;
import org.springframework.context.support.GenericXmlApplicationContext;
/**
* @author Clarence
*
*/
public class NonSingleton {
public static void main(String[] args) {
GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
ctx.load("classpath:app-context-xml.xml");
ctx.refresh();
String s1 = (String) ctx.getBean("nonSingleton");
String s2 = (String) ctx.getBean("nonSingleton");
System.out.println("Identity Equal?: " + (s1 ==s2));
System.out.println("Value Equal:? " + s1.equals(s2));
System.out.println(s1);
System.out.println(s2);
}
}
|
[
"dylee@wikibook.co.kr"
] |
dylee@wikibook.co.kr
|
d0305b644ee3bb1c979591803f85da0bbeddecce
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/17/17_081acf11cb40cbe48f1a1939b7370a3aff8b4ed1/CachedActivity/17_081acf11cb40cbe48f1a1939b7370a3aff8b4ed1_CachedActivity_t.java
|
7fb57a290120ed81ba313f6a56b017e1c0b55d7f
|
[] |
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
| 2,056
|
java
|
/*
*
* This file is part of ASage.
*
* ASage is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ASage 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 ASage. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2012 wise
*
*
*/
/**
CachedActivity.java
*/
package com.wise;
import java.io.File;
import java.io.IOException;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.net.http.HttpResponseCache;
/**
* an Activity that use the same httpResponseCache for saving the feed
* inside the cache
*
*
* @author Giovanni Visentini
*/
public class CachedActivity extends Activity {
private final long httpCacheSize =2 * 1024*1024; // 2mb
private final static String TAG = "CachedActivity";
/**
* @see android.app.Activity#onCreate(android.os.Bundle)
*/
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if(HttpResponseCache.getInstalled()==null)
setHttpCache();
}
protected void setHttpCache(){
try {
File httpCacheDir = new File(getCacheDir(), "http");
HttpResponseCache.install(httpCacheDir, httpCacheSize);
}catch (IOException e) {
Log.i(TAG, "HTTP response cache installation failed:" + e);
}
}
protected void onStop(){
super.onStop();
HttpResponseCache cache = HttpResponseCache.getInstalled();
if (cache != null) {
cache.flush();
}//if
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
70423398f61880610c6b7468747ec9da891ab1a0
|
5f68b5878db3ed4a8d6d736c8259762647717968
|
/src/com/fzjt/xiaoliu/read/interfaces/business/pc/home/bean/bottom/rsp/RspBottomBean.java
|
fea7e52848621ce2b5ac7df2607057439394cdbb
|
[] |
no_license
|
haoziapple/recommend
|
04cb3c37c74b1d1e4221d0cbf6ff76f75adb66e2
|
ba4b3a7cf15854d921b7659639639a2a2fa99a1d
|
refs/heads/master
| 2021-01-10T11:33:50.805750
| 2016-04-05T05:31:38
| 2016-04-05T05:31:38
| 55,469,573
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,337
|
java
|
/**
* Copyright (C) 2015 FuZhong
*
*
* @className:com.fzjt.xiaoliu.read.interfaces.business.pc.home.bean.bottom.rsp.RspBottomBean
* @description:TODO
*
* @version:v1.0.0
* @author:LiangJin
*
* Modification History:
* Date Author Version Description
* -----------------------------------------------------------------
* 2015-12-2 LiangJin v1.0.0 create
*
*
*/
package com.fzjt.xiaoliu.read.interfaces.business.pc.home.bean.bottom.rsp;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.fzjt.xiaoliu.read.interfaces.bean.response.RspBean;
/**
* pc响应底部按钮信息bean
*
* @className:com.fzjt.xiaoliu.read.interfaces.business.pc.home.bean.bottom.rsp.RspBottomBean
* @description:TODO
* @version:v1.0.0
* @date:2015-12-2 下午3:12:42
* @author:LiangJin
*/
@XmlRootElement(name = "fzjt")
@XmlAccessorType(XmlAccessType.FIELD)
public class RspBottomBean extends RspBean
{
@XmlElement(name = "body")
private RspBottomBody rspBottomBody;
public RspBottomBody getRspBottomBody()
{
return rspBottomBody;
}
public void setRspBottomBody(RspBottomBody rspBottomBody)
{
this.rspBottomBody = rspBottomBody;
}
}
|
[
"haozixiaowang@163.com"
] |
haozixiaowang@163.com
|
aa4854c50f9bb9f5a994b1afbbe79c9c05694028
|
72670efb51af91ac86ca5b0f6145287d7547c34c
|
/src/gui/EliminarClientePanel.java
|
f2a8ec9cea260348972927e7d7c07f01509354de
|
[] |
no_license
|
ccpomposo/Zapateria-KD
|
4bd6306c2fcc8e3e982018813bb87f47270dceb2
|
c734841daf7adb978410cbb4df2faee757b65ab0
|
refs/heads/master
| 2021-01-19T12:09:00.196757
| 2017-04-12T07:12:07
| 2017-04-12T07:12:07
| 88,021,188
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,352
|
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 gui;
import controller.Controlador;
import exceptions.ClienteNoEncontradoException;
import java.awt.FlowLayout;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
/**
*
* @author j4v13
*/
public class EliminarClientePanel extends JPanel{
private JTextField txtBuscar;
private JButton btnEliminar;
private Controlador controlador;
public EliminarClientePanel() {
super.setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
super.setBorder(BorderFactory.createEmptyBorder(50,0,0,0));
controlador = new Controlador();
txtBuscar = new JTextField(20);
btnEliminar = new JButton("Eliminar");
btnEliminar.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent ae) {
try {
String parametro = txtBuscar.getText();
controlador.eliminarCliente(parametro);
JOptionPane.showMessageDialog(EliminarClientePanel.this, "Cliente eliminado!");
} catch(ClienteNoEncontradoException ex) {
JOptionPane.showMessageDialog(EliminarClientePanel.this, "No se encuentra el cliente", "Error", JOptionPane.ERROR_MESSAGE);
}
}
});
JPanel pnlTitulo = new JPanel();
pnlTitulo.setLayout(new FlowLayout());
pnlTitulo.add(new JLabel("Dar de baja cliente"));
JPanel pnlBusqueda = new JPanel();
pnlBusqueda.setLayout(new FlowLayout());
pnlBusqueda.add(new JLabel("Buscar:"));
pnlBusqueda.add(txtBuscar);
JPanel pnlBoton = new JPanel();
pnlBoton.setLayout(new FlowLayout());
pnlBoton.add(btnEliminar);
super.add(pnlTitulo);
super.add(pnlBusqueda);
super.add(pnlBoton);
}
}
|
[
"Usuario"
] |
Usuario
|
af3371d9436c240b7a1c8ed1323be2a33d42d15f
|
104cda8eafe0617e2a5fa1e2b9f242d78370521b
|
/aliyun-java-sdk-vod/src/main/java/com/aliyuncs/vod/model/v20170321/GetMediaAuditResultTimelineResponse.java
|
9b0b79ff82e23a842e48609909e9aa9c2be84bcd
|
[
"Apache-2.0"
] |
permissive
|
SanthosheG/aliyun-openapi-java-sdk
|
89f9b245c1bcdff8dac0866c36ff9a261aa40684
|
38a910b1a7f4bdb1b0dd29601a1450efb1220f79
|
refs/heads/master
| 2020-07-24T00:00:59.491294
| 2019-09-09T23:00:27
| 2019-09-11T04:29:56
| 207,744,099
| 2
| 0
|
NOASSERTION
| 2019-09-11T06:55:58
| 2019-09-11T06:55:58
| null |
UTF-8
|
Java
| false
| false
| 3,296
|
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.vod.model.v20170321;
import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.vod.transform.v20170321.GetMediaAuditResultTimelineResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class GetMediaAuditResultTimelineResponse extends AcsResponse {
private String requestId;
private MediaAuditResultTimeline mediaAuditResultTimeline;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public MediaAuditResultTimeline getMediaAuditResultTimeline() {
return this.mediaAuditResultTimeline;
}
public void setMediaAuditResultTimeline(MediaAuditResultTimeline mediaAuditResultTimeline) {
this.mediaAuditResultTimeline = mediaAuditResultTimeline;
}
public static class MediaAuditResultTimeline {
private List<PornItem> porn;
private List<TerrorismItem> terrorism;
public List<PornItem> getPorn() {
return this.porn;
}
public void setPorn(List<PornItem> porn) {
this.porn = porn;
}
public List<TerrorismItem> getTerrorism() {
return this.terrorism;
}
public void setTerrorism(List<TerrorismItem> terrorism) {
this.terrorism = terrorism;
}
public static class PornItem {
private String label;
private String score;
private String timestamp;
public String getLabel() {
return this.label;
}
public void setLabel(String label) {
this.label = label;
}
public String getScore() {
return this.score;
}
public void setScore(String score) {
this.score = score;
}
public String getTimestamp() {
return this.timestamp;
}
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
}
public static class TerrorismItem {
private String label;
private String score;
private String timestamp;
public String getLabel() {
return this.label;
}
public void setLabel(String label) {
this.label = label;
}
public String getScore() {
return this.score;
}
public void setScore(String score) {
this.score = score;
}
public String getTimestamp() {
return this.timestamp;
}
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
}
}
@Override
public GetMediaAuditResultTimelineResponse getInstance(UnmarshallerContext context) {
return GetMediaAuditResultTimelineResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
[
"haowei.yao@alibaba-inc.com"
] |
haowei.yao@alibaba-inc.com
|
30f5d05613e9b9fee65183cf0bcc4790031e592a
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/src/irvine/oeis/a081/A081598.java
|
95a87c644ba5a59f8222446e43570dc52a021cd3
|
[] |
no_license
|
flywind2/joeis
|
c5753169cf562939b04dd246f8a2958e97f74558
|
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
|
refs/heads/master
| 2020-09-13T18:34:35.080552
| 2019-11-19T05:40:55
| 2019-11-19T05:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 516
|
java
|
package irvine.oeis.a081;
// Generated by gen_pattern.pl - DO NOT EDIT here!
import irvine.oeis.GeneratingFunctionSequence;
/**
* A081598 Let <code>n = 10x + y</code> where <code>0 <= y <= 9, x >= 0</code>. Then <code>a(n) = 7x+y</code>.
* @author Georg Fischer
*/
public class A081598 extends GeneratingFunctionSequence {
/** Construct the sequence. */
public A081598() {
super(0, new long[] {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, -2},
new long[] {1, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 1});
}
}
|
[
"sean.irvine@realtimegenomics.com"
] |
sean.irvine@realtimegenomics.com
|
2173b2a0d7cd0e684fa9a50b1cd131848968fa2b
|
4a7cb14aa934df8f362cf96770e3e724657938d8
|
/MFES/ATS/Project/structuring/projectsPOO_1920/96/Grupo242_POO2020/projeto/Projeto/EncomendasAceites.java
|
9765583c3291aca25c0901dbd49436de4c5a6160
|
[] |
no_license
|
pCosta99/Masters
|
7091a5186f581a7d73fd91a3eb31880fa82bff19
|
f835220de45a3330ac7a8b627e5e4bf0d01d9f1f
|
refs/heads/master
| 2023-08-11T01:01:53.554782
| 2021-09-22T07:51:51
| 2021-09-22T07:51:51
| 334,012,667
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 576
|
java
|
package Projeto;
import java.util.ArrayList;
public class EncomendasAceites {
private ArrayList<Encomenda> encAceites;
public EncomendasAceites(ArrayList<Encomenda> encAceites){
this.encAceites = encAceites;
}
public EncomendasAceites(){
this.encAceites = new ArrayList<Encomenda>();
}
public void addEncomendaAceite(Encomenda cod){
this.encAceites.add(cod);
}
@Override
public String toString() {
return "EncomendasAceites{" +
"encAceites=" + encAceites +
'}';
}
}
|
[
"costapedro.a1999@gmail.com"
] |
costapedro.a1999@gmail.com
|
962d6d8ab8613ea02af0ceef7e7de180cf8e376f
|
7c9f969db90ae6434b7003aa224a16d244126ebf
|
/HipsWriter/src/main/java/io/github/pascalgrimaud/hipswriter/security/SecurityUtils.java
|
d7d7369c21ba8aacee5cd03ac6c55e264d144c0a
|
[] |
no_license
|
pascalgrimaud/jhipster-kafka-samples
|
2156dd663964f227d803d59e7ced55f426aec6f8
|
59bd907388313569a54f28cf1fb6387c9bef991d
|
refs/heads/master
| 2020-05-17T11:45:54.755844
| 2019-04-26T21:24:23
| 2019-04-26T21:24:23
| 183,693,854
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,008
|
java
|
package io.github.pascalgrimaud.hipswriter.security;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import java.util.Optional;
/**
* Utility class for Spring Security.
*/
public final class SecurityUtils {
private SecurityUtils() {
}
/**
* Get the login of the current user.
*
* @return the login of the current user.
*/
public static Optional<String> getCurrentUserLogin() {
SecurityContext securityContext = SecurityContextHolder.getContext();
return Optional.ofNullable(securityContext.getAuthentication())
.map(authentication -> {
if (authentication.getPrincipal() instanceof UserDetails) {
UserDetails springSecurityUser = (UserDetails) authentication.getPrincipal();
return springSecurityUser.getUsername();
} else if (authentication.getPrincipal() instanceof String) {
return (String) authentication.getPrincipal();
}
return null;
});
}
/**
* Get the JWT of the current user.
*
* @return the JWT of the current user.
*/
public static Optional<String> getCurrentUserJWT() {
SecurityContext securityContext = SecurityContextHolder.getContext();
return Optional.ofNullable(securityContext.getAuthentication())
.filter(authentication -> authentication.getCredentials() instanceof String)
.map(authentication -> (String) authentication.getCredentials());
}
/**
* Check if a user is authenticated.
*
* @return true if the user is authenticated, false otherwise.
*/
public static boolean isAuthenticated() {
SecurityContext securityContext = SecurityContextHolder.getContext();
return Optional.ofNullable(securityContext.getAuthentication())
.map(authentication -> authentication.getAuthorities().stream()
.noneMatch(grantedAuthority -> grantedAuthority.getAuthority().equals(AuthoritiesConstants.ANONYMOUS)))
.orElse(false);
}
/**
* If the current user has a specific authority (security role).
* <p>
* The name of this method comes from the {@code isUserInRole()} method in the Servlet API.
*
* @param authority the authority to check.
* @return true if the current user has the authority, false otherwise.
*/
public static boolean isCurrentUserInRole(String authority) {
SecurityContext securityContext = SecurityContextHolder.getContext();
return Optional.ofNullable(securityContext.getAuthentication())
.map(authentication -> authentication.getAuthorities().stream()
.anyMatch(grantedAuthority -> grantedAuthority.getAuthority().equals(authority)))
.orElse(false);
}
}
|
[
"pascalgrimaud@gmail.com"
] |
pascalgrimaud@gmail.com
|
51dd8fea774db5ec7de5e961981c49b29ea97dd7
|
f87904b0d14bc865b174c21b9c6e8406ccccf6d1
|
/object-class/app1/src/com/lara/Manager11.java
|
a62167c2179bacf7cbec406dea03f959ea8d6c82
|
[] |
no_license
|
nextuser88/lara_java_code
|
f7c90e662b4d25cfb9a572f68a8ab86773febb92
|
f53349afa87aa5a8fa475b29ccf0c5ea903dcc74
|
refs/heads/master
| 2021-05-15T20:19:00.931695
| 2017-10-22T06:28:48
| 2017-10-22T06:28:48
| 107,842,369
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 192
|
java
|
package com.lara;
class K
{
int i = 10;
}
public class Manager11
{
public static void main(String[] args)
{
K k1 = new K();
K k2 = new K();
System.out.println(k1 == k2);
}
}
|
[
"abhishekmishra034@gmail.com"
] |
abhishekmishra034@gmail.com
|
38900bf95972c7995dbbae4393d31ecff57e5552
|
f034fffa1ff323bfe976c62c613b6a2774c9ae24
|
/app/src/main/java/com/example/ylf019/zlxandroid/home/adapter/ZlxrecommendAdapter.java
|
52f576ce6d263ea378f80ec3999da1bdb159cc91
|
[] |
no_license
|
yuanlifan/zlxandroid
|
8286b9ac8e5326df91c6233b3bd0386c674d98cd
|
dd5443662ec504bc03c8949f727a8aa2117f5e7f
|
refs/heads/master
| 2020-03-07T08:43:01.089791
| 2018-05-30T01:41:53
| 2018-05-30T01:41:53
| 127,386,502
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,134
|
java
|
package com.example.ylf019.zlxandroid.home.adapter;
import android.content.Intent;
import android.support.annotation.Nullable;
import android.support.v7.widget.CardView;
import android.text.TextUtils;
import android.view.View;
import android.widget.FrameLayout;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.ylf019.zlxandroid.R;
import com.example.ylf019.zlxandroid.appconfig.AppSpContact;
import com.example.ylf019.zlxandroid.http.info.WeiboInfo;
import com.example.ylf019.zlxandroid.http.model.ZlxObjectListModel;
import com.example.ylf019.zlxandroid.utils.Distance;
import com.example.ylf019.zlxandroid.zlxcenter.ZlxHomePageActivity;
import com.makeramen.roundedimageview.RoundedImageView;
import java.util.List;
/**
* Created by yjx on 2018/5/8.
*/
public class ZlxrecommendAdapter extends BaseQuickAdapter<ZlxObjectListModel.DataBean, BaseViewHolder> {
private double mLong1;
private double mLat1;
public ZlxrecommendAdapter(int layoutResId, @Nullable List<ZlxObjectListModel.DataBean> data, double long1, double lat1) {
super(layoutResId, data);
mLong1 = long1;
mLat1 = lat1;
}
@Override
protected void convert(BaseViewHolder helper, final ZlxObjectListModel.DataBean item) {
RoundedImageView imageView = helper.getView(R.id.iv_picture);
RoundedImageView ri_round_bg = helper.getView(R.id.ri_round_bg);
if(item.getLatitude() !=null && item.getLongitude() != null && !TextUtils.isEmpty(item.getLatitude()) && !TextUtils.isEmpty(item.getLongitude())) {
double distance = Distance.DistanceOfTwoPoints(mLat1, mLong1, Double.parseDouble(item.getLatitude()), Double.parseDouble(item.getLongitude()));
int dis = (int) distance;
helper.setText(R.id.tv_age, " " + item.getAge() + "岁 | " + dis + "公里");
}else {
helper.setText(R.id.tv_age, " " + item.getAge() + "岁");
}
Glide.with(mContext).load(item.getHeadurl()).placeholder(R.drawable.ic_default_picture).dontAnimate().into(imageView);
helper.setText(R.id.tv_name, item.getNickname())
.setText(R.id.tv_user_info, item.getCity() + item.getArea() + " " + item.getEducation())
.setText(R.id.tv_like_tag, item.getObject_label());
FrameLayout fl_object = helper.getView(R.id.fl_object);
fl_object.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(mContext, ZlxHomePageActivity.class);
intent.putExtra(AppSpContact.SP_KEY_LX_NUM, item.getLx_num());
mContext.startActivity(intent);
}
});
if(item.getSex() != null && item.getSex().equals("男")) {
ri_round_bg.setBackground(mContext.getResources().getDrawable(R.color.color_object_boy));
}else{
ri_round_bg.setBackground(mContext.getResources().getDrawable(R.color.color_object_girl));
}
}
}
|
[
"1308289210@qq.com"
] |
1308289210@qq.com
|
fb570e53a9163108de443a2a5bfaa8f0a46d0e03
|
3d2a5f21535a8ebeac4dbdf678d9b4307429e565
|
/src/main/java/br/com/blog/security/AutenticaUsuarioListener.java
|
92b3787385705ca123fe62d6d43da4a16601409f
|
[] |
no_license
|
gilmardeveloper/java-blog
|
1afa6b01f4a4f68df76f4c7f3263155ea8a43a79
|
d1066ce38ec7b5492b72286fcefc356de4fd3f0b
|
refs/heads/master
| 2021-05-13T14:00:28.098054
| 2018-08-22T21:33:51
| 2018-08-22T21:33:51
| 116,725,027
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 577
|
java
|
package br.com.blog.security;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
import br.com.blog.model.Usuario;
@Component
public class AutenticaUsuarioListener implements ApplicationListener<AutenticaUsuario>{
@Autowired
private AutenticaRegistroUsuario autenticador;
@Override
public void onApplicationEvent(AutenticaUsuario autentica) {
Usuario usuario = autentica.getUsuario();
autenticador.criarVerificacao(usuario);
}
}
|
[
"gilmarcarlos.developer@gmail.com"
] |
gilmarcarlos.developer@gmail.com
|
a31385b865b3d63d5e28d5d9ce99527c377f990e
|
f7d18cb63acfca73d23e74bceb160eb9ffa8fdcc
|
/src/main/java/io/github/frodo/application/web/rest/errors/LoginAlreadyUsedException.java
|
eedb1d0dc2210ac9f098e7c12c9bd1b7d1edb770
|
[] |
no_license
|
Patzifist/Frodo
|
3047c1d63debe0480febba5101479f7a0dd66807
|
a4411f58fb2522524692b052fcff8d968c029c59
|
refs/heads/master
| 2020-04-22T06:24:07.490848
| 2019-02-12T15:25:15
| 2019-02-12T15:25:15
| 170,189,077
| 0
| 0
| null | 2019-02-11T19:36:21
| 2019-02-11T19:32:51
|
Java
|
UTF-8
|
Java
| false
| false
| 347
|
java
|
package io.github.frodo.application.web.rest.errors;
public class LoginAlreadyUsedException extends BadRequestAlertException {
private static final long serialVersionUID = 1L;
public LoginAlreadyUsedException() {
super(ErrorConstants.LOGIN_ALREADY_USED_TYPE, "Login name already used!", "userManagement", "userexists");
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
33442f41a9df0e691b2a11f0c08463362a4d0d07
|
7736da1e7eb763d838e6715e89293d75ea536d3a
|
/a20/src/main/java/memoizrlabs/com/a20/util8/util6/util3/util6/util4/util1/Ut11.java
|
3f2109425de37c6c985aa92848906510ad340692
|
[
"Apache-2.0"
] |
permissive
|
memoizr/gradle-build-times-stress-test
|
6944af4a731bda6e84cd27525837b4efed84ebcf
|
16bf4e9c8291ad90ccc083f287fb00a8218a43e8
|
refs/heads/master
| 2020-09-21T04:36:39.864158
| 2016-09-13T12:11:15
| 2016-09-13T12:11:15
| 67,682,637
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 507
|
java
|
package memoizrlabs.com.a20.util8.util6.util3.util6.util4.util1;
public class Ut11 {
class Foo {
public void printHey() {
System.out.println("hey");
}
}
class Foo2 {
public void printHey() {
System.out.println("hey");
}
}
class Foo3 {
public void printHey() {
System.out.println("hey");
}
}
class Foo4 {
public void printHey() {
System.out.println("hey");
}
}
}
|
[
"memoizrlabs@gmail.com"
] |
memoizrlabs@gmail.com
|
aa1a21d86482b6e77f53c7e6ff8450e47f53fe83
|
01563cf663b502102e22b73bd3ff6a16dde701d0
|
/src/main/java/com/jk51/annotation/TimeRequired.java
|
6387cf195d42b9f9972bd786773130042c095fb7
|
[] |
no_license
|
tomzhang/springTestB
|
17cc2d866723d7200302b068a30239732a9cda26
|
af4bd2d5cc90d44f0b786fb115577a811d1eaac7
|
refs/heads/master
| 2020-05-02T04:35:50.729767
| 2018-10-24T02:24:35
| 2018-10-24T02:24:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 445
|
java
|
package com.jk51.annotation;
import org.springframework.web.bind.annotation.Mapping;
import java.lang.annotation.*;
/**
* 版权所有(C) 2017 上海伍壹健康科技有限公司
* 描述:
* 作者: dumingliang
* 创建日期: 2018-09-07
* 修改记录:
*/
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Mapping
public @interface TimeRequired {
boolean required() default true;
}
|
[
"gaojie@51jk.com"
] |
gaojie@51jk.com
|
a8dc94908c4339870780d66c7030601be2577a50
|
ba9375cd1003cfa631e2b8dacdb6f02cde782d9d
|
/driver-embedded/src/main/com/mongodb/embedded/client/EmbeddedServer.java
|
f070d231abb5b39403bcb1e79f65e71bb5f87ddf
|
[
"Apache-2.0"
] |
permissive
|
will-wangv/mongo-java-driver
|
b352fb7ecc834c0b2de40f571159e0ed19f6e010
|
4311d95791c2313d102e4509850044966e73d77d
|
refs/heads/master
| 2020-08-29T07:52:23.208633
| 2019-10-22T20:18:30
| 2019-10-24T17:06:16
| 217,973,671
| 1
| 0
|
Apache-2.0
| 2019-10-28T06:36:52
| 2019-10-28T05:39:56
|
Java
|
UTF-8
|
Java
| false
| false
| 7,578
|
java
|
/*
* Copyright 2008-present MongoDB, 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.mongodb.embedded.client;
import com.mongodb.MongoDriverInformation;
import com.mongodb.MongoException;
import com.mongodb.ServerAddress;
import com.mongodb.async.SingleResultCallback;
import com.mongodb.connection.AsyncConnection;
import com.mongodb.connection.ClusterConnectionMode;
import com.mongodb.connection.Connection;
import com.mongodb.connection.Server;
import com.mongodb.connection.ServerDescription;
import com.mongodb.diagnostics.logging.Logger;
import com.mongodb.diagnostics.logging.Loggers;
import com.mongodb.embedded.capi.MongoEmbeddedInstance;
import com.mongodb.embedded.capi.MongoEmbeddedLibrary;
import com.mongodb.event.CommandListener;
import com.mongodb.internal.connection.ClusterClock;
import com.mongodb.internal.connection.ClusterClockAdvancingSessionContext;
import com.mongodb.internal.connection.CommandHelper;
import com.mongodb.internal.connection.CommandProtocol;
import com.mongodb.internal.connection.DefaultServerConnection;
import com.mongodb.internal.connection.DescriptionHelper;
import com.mongodb.internal.connection.InternalConnection;
import com.mongodb.internal.connection.LegacyProtocol;
import com.mongodb.internal.connection.ProtocolExecutor;
import com.mongodb.session.SessionContext;
import org.bson.BsonDocument;
import org.bson.BsonInt32;
import java.io.Closeable;
import java.io.File;
import static com.mongodb.assertions.Assertions.isTrue;
import static com.mongodb.internal.async.ErrorHandlingResultCallback.errorHandlingCallback;
import static com.mongodb.internal.connection.ClientMetadataHelper.createClientMetadataDocument;
import static com.mongodb.internal.event.EventListenerHelper.getCommandListener;
import static java.lang.String.format;
class EmbeddedServer implements Server, Closeable {
private static final Logger LOGGER = Loggers.getLogger("embedded.client");
private static final MongoDriverInformation MONGO_DRIVER_INFORMATION = MongoDriverInformation.builder().driverName("embedded").build();
private final MongoEmbeddedInstance instance;
private final ClusterClock clusterClock;
private final CommandListener commandListener;
private final ServerAddress serverAddress;
private final ServerDescription serverDescription;
private final EmbeddedInternalConnectionPool connectionPool;
private volatile boolean isClosed;
EmbeddedServer(final MongoEmbeddedLibrary mongoEmbeddedLibrary, final MongoClientSettings mongoClientSettings) {
this.instance = createInstance(mongoEmbeddedLibrary, mongoClientSettings);
this.clusterClock = new ClusterClock();
this.commandListener = getCommandListener(mongoClientSettings.getCommandListeners());
this.serverAddress = new ServerAddress();
this.connectionPool = new EmbeddedInternalConnectionPool(new EmbeddedInternalConnectionFactory() {
@Override
public EmbeddedInternalConnection create() {
return new EmbeddedInternalConnection(instance, commandListener,
createClientMetadataDocument(mongoClientSettings.getApplicationName(), MONGO_DRIVER_INFORMATION));
}
});
this.serverDescription = createServerDescription();
}
@Override
public ServerDescription getDescription() {
isTrue("open", !isClosed);
return serverDescription;
}
@Override
public Connection getConnection() {
isTrue("open", !isClosed);
return new DefaultServerConnection(connectionPool.get(), new DefaultServerProtocolExecutor(), ClusterConnectionMode.SINGLE);
}
@Override
public void getConnectionAsync(final SingleResultCallback<AsyncConnection> callback) {
throw new UnsupportedOperationException("Async not supported");
}
@Override
public void close() {
if (!isClosed) {
isClosed = true;
connectionPool.close();
instance.close();
}
}
private MongoEmbeddedInstance createInstance(final MongoEmbeddedLibrary mongoEmbeddedLibrary,
final MongoClientSettings mongoClientSettings) {
File directory = new File(mongoClientSettings.getDbPath());
try {
if (directory.mkdirs() && LOGGER.isInfoEnabled()) {
LOGGER.info(format("Created dbpath directory: %s", mongoClientSettings.getDbPath()));
}
} catch (SecurityException e) {
throw new MongoException(format("Could not validate / create the dbpath: %s", mongoClientSettings.getDbPath()));
}
String yamlConfig = createYamlConfig(mongoClientSettings);
return mongoEmbeddedLibrary.createInstance(yamlConfig);
}
private String createYamlConfig(final MongoClientSettings mongoClientSettings) {
return format("{ storage: { dbPath: %s } }", mongoClientSettings.getDbPath());
}
private class DefaultServerProtocolExecutor implements ProtocolExecutor {
@Override
public <T> T execute(final LegacyProtocol<T> protocol, final InternalConnection connection) {
protocol.setCommandListener(commandListener);
return protocol.execute(connection);
}
@Override
public <T> void executeAsync(final LegacyProtocol<T> protocol, final InternalConnection connection,
final SingleResultCallback<T> callback) {
protocol.setCommandListener(commandListener);
protocol.executeAsync(connection, callback);
}
@Override
public <T> T execute(final CommandProtocol<T> protocol, final InternalConnection connection,
final SessionContext sessionContext) {
protocol.sessionContext(new ClusterClockAdvancingSessionContext(sessionContext, clusterClock));
return protocol.execute(connection);
}
@Override
public <T> void executeAsync(final CommandProtocol<T> protocol, final InternalConnection connection,
final SessionContext sessionContext, final SingleResultCallback<T> callback) {
protocol.sessionContext(new ClusterClockAdvancingSessionContext(sessionContext, clusterClock));
protocol.executeAsync(connection, errorHandlingCallback(callback, LOGGER));
}
}
private ServerDescription createServerDescription() {
InternalConnection connection = connectionPool.get();
try {
long start = System.nanoTime();
BsonDocument isMasterResult = CommandHelper.executeCommand("admin", new BsonDocument("ismaster", new BsonInt32(1)),
clusterClock, connection);
return DescriptionHelper.createServerDescription(serverAddress, isMasterResult, connection.getDescription().getServerVersion(),
System.nanoTime() - start);
} finally {
connection.close();
}
}
}
|
[
"ross.lawley@gmail.com"
] |
ross.lawley@gmail.com
|
c0e5d3990f8a86ffa39308395e92674116dfb65f
|
23c672f64283b889eb5bc087f1108a9f04a952a1
|
/Simulator/2015MockWpi/src/com/snobot/simulator/AnalogWrapper.java
|
4599d5b7fa2b191c79c6b761b4164ef97a199977
|
[] |
no_license
|
ArcticWarriors/snobot-2015
|
5074f6847586edbaad9988b19151b2ff6d49489f
|
460ef7b1cec6fdc3dfe8082714a4e9923c1e6cae
|
refs/heads/master
| 2021-05-31T18:10:50.456370
| 2015-12-09T03:37:11
| 2015-12-09T03:37:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 555
|
java
|
package com.snobot.simulator;
public class AnalogWrapper extends ASensorWrapper
{
public AnalogWrapper(int aIndex)
{
super("Analog " + aIndex);
}
private double mVoltage;
private double mAccumulator;
public void setVoltage(double aVoltage)
{
mVoltage = aVoltage;
}
public double getVoltage()
{
return mVoltage;
}
public void setAccumulator(double aValue)
{
mAccumulator = aValue;
}
public double getAccumulator()
{
return mAccumulator;
}
}
|
[
"pj.reiniger@gmail.com"
] |
pj.reiniger@gmail.com
|
5859e374db659ffd8ff80527f85f511a778be417
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_296/Testnull_29593.java
|
0e67b396fe0f7038f620e38b3dfb0948867a4609
|
[] |
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
| 308
|
java
|
package org.gradle.test.performancenull_296;
import static org.junit.Assert.*;
public class Testnull_29593 {
private final Productionnull_29593 production = new Productionnull_29593("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
54a318af62c25ef2fc52e36ce61e8158124d910c
|
22361430ab12e5a7c1eba4664293fc4a39051d9b
|
/QMRPublic/src/com/game/dataserver/manager/SyncPlayerError.java
|
90f605e0900ae1870e73cdb14ab4f71e45c19129
|
[] |
no_license
|
liuziangexit/QMR
|
ab93a66623e670a7f276683d94188d1b627db853
|
91ea3bd35ee3a1ebf994fb3fd6ffdbaa6fbf4d22
|
refs/heads/master
| 2020-03-30T00:22:31.028514
| 2017-12-20T05:41:17
| 2017-12-20T05:41:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 431
|
java
|
package com.game.dataserver.manager;
public class SyncPlayerError {
//角色不存在
public static int PLAYER_NOT_EXITS = 1;
//账号不存在
public static int USER_NOT_EXITS = 2;
//正在跨服中
public static int ALREADY_CROSS_SERVER = 3;
//当前跨服对象不正确
public static int CROSS_SERVER_PLAYER_ERROR = 4;
//没有准备好跨服
public static int NOT_READY_FOR_CROSS = 5;
}
|
[
"ctl70000@163.com"
] |
ctl70000@163.com
|
5d9c50c28c84f9e42771e5021313976660caa0f3
|
42db8ca1afb6b9a695b67507414166164b9c26d8
|
/java/src/encapsulamento/Main2.java
|
2c77888f7bce3f43125f09f45cc4ab3fcfad56c7
|
[] |
no_license
|
Andressaffs/turma16java
|
9ba990249f7f0536a659b13dbd335079679d81aa
|
c91f1ac67e8ddf8cc6db2590d762500e639076ee
|
refs/heads/main
| 2023-03-20T04:52:27.811805
| 2021-03-08T14:09:50
| 2021-03-08T14:09:50
| 329,985,454
| 0
| 0
| null | null | null | null |
ISO-8859-1
|
Java
| false
| false
| 369
|
java
|
package encapsulamento;
public class Main2 {
public static void main(String[] args) {
Classe1 camiseta = new Classe1("Algodão","Manga longa","Alta","Florido","Nike","Verde");
Classe2 calca= new Classe2("Jeans","Classica","Grande",true,"Adidas","Azul");
camiseta.vestir();
calca.setBolso("pequeno");
System.out.println(calca.getBolso());
}
}
|
[
"you@example.com"
] |
you@example.com
|
5bc634d55b35a94f9441904b478ea31b0d5aa587
|
205a24a4aff316504ed9a86a74f8e407b91af2c8
|
/src/test/java/houseware/learn/j8/stream/Streams7.java
|
a948977015a6f9d4f35fbf6e8494fffc9ca68f12
|
[] |
no_license
|
bcntec-learning/j8
|
11729a79661e22ea323f07f4328a51a2d9048ddb
|
9bd221729c86ac35db8208be0292f9d3f4b796b3
|
refs/heads/master
| 2021-09-07T22:48:11.884923
| 2018-03-02T11:46:57
| 2018-03-02T11:46:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,419
|
java
|
package houseware.learn.j8.stream;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.IntStream;
/**
* @author fphilip@houseware.es
*/
public class Streams7 {
static class Foo {
String name;
List<Bar> bars = new ArrayList<>();
Foo(String name) {
this.name = name;
}
}
static class Bar {
String name;
Bar(String name) {
this.name = name;
}
}
@Test
public void test2() {
IntStream.range(1, 4)
.mapToObj(num -> new Foo("Foo" + num))
.peek(f -> IntStream.range(1, 4)
.mapToObj(num -> new Bar("Bar" + num + " <- " + f.name))
.forEach(f.bars::add))
.flatMap(f -> f.bars.stream())
.forEach(b -> System.out.println(b.name));
}
@Test
public void test1() {
List<Foo> foos = new ArrayList<>();
IntStream
.range(1, 4)
.forEach(num -> foos.add(new Foo("Foo" + num)));
foos.forEach(f ->
IntStream
.range(1, 4)
.forEach(num -> f.bars.add(new Bar("Bar" + num + " <- " + f.name))));
foos.stream()
.flatMap(f -> f.bars.stream())
.forEach(b -> System.out.println(b.name));
}
}
|
[
"fphilip@houseware.es"
] |
fphilip@houseware.es
|
0fd43e477fcf918806c36fe68396b5e489d9adf0
|
9e632588def0ba64442d92485b6d155ccb89a283
|
/billingSystem/billingsystem-web/src/main/java/com/balicamp/webapp/action/customerservice/UnblockUser.java
|
3dbfe90b90001fcdaaf498e4c69390fc12d409d2
|
[] |
no_license
|
prihako/sims2019
|
6986bccbbd35ec4d1e5741aa77393f01287d752a
|
f5e82e3d46c405d4c3c34d529c8d67e8627adb71
|
refs/heads/master
| 2022-12-21T07:38:06.400588
| 2021-04-29T07:30:37
| 2021-04-29T07:30:37
| 212,565,332
| 0
| 0
| null | 2022-12-16T00:41:00
| 2019-10-03T11:41:00
|
Java
|
UTF-8
|
Java
| false
| false
| 2,392
|
java
|
package com.balicamp.webapp.action.customerservice;
import static com.balicamp.webapp.constant.WebConstant.User.STATUS_BLOCKED;
import org.apache.tapestry.IPage;
import org.apache.tapestry.annotations.InjectObject;
import org.apache.tapestry.annotations.InjectPage;
import org.apache.tapestry.form.IFormComponent;
import org.apache.tapestry.valid.ValidationConstraint;
import com.balicamp.model.user.User;
import com.balicamp.service.user.UserManager;
import com.balicamp.webapp.action.BasePage;
/**
* @author <a href="mailto:bagus.sugitayasa@gmail.com">Sugitayasa</a>
* @version $Id: UnblockUser.java 345 2013-02-21 06:34:33Z bagus.sugitayasa $
*/
public abstract class UnblockUser extends BasePage {
@InjectObject("spring:userManager")
public abstract UserManager getUserManager();
public abstract String getUserId();
public abstract void setUserId(String userId);
@InjectPage("information")
public abstract Information getInformation();
@InjectPage("confirmUnblock")
public abstract ConfirmUnblock getConfirmUnblock();
public IPage doUnblock() {
if (getDelegate().getHasErrors()) {
return null;
}
User user = null;
if (getUserId() == null) {
setUserId("");
}
try {
if (getUserId().equals("")) {
addError(getDelegate(), (IFormComponent) null, getText("unblockUser.userId.required"),
ValidationConstraint.CONSISTENCY);
} else {
user = (User) getUserManager().loadUserByUsername(getUserId());
if (user == null) {
addError(getDelegate(), (IFormComponent) null, getText("unblockUser.userId.invalid"),
ValidationConstraint.CONSISTENCY);
} /*
* else if (user.getStatus().equals(STATUS_ADMIN)) {
* addError(getDelegate(), (IFormComponent) null,
* getText("unblockUser.userId.exceptAdmin"),
* ValidationConstraint.CONSISTENCY);
* }
*/else if (!user.getStatus().equals(STATUS_BLOCKED)) {
addError(getDelegate(), (IFormComponent) null, getText("unblockUser.userId.already"),
ValidationConstraint.CONSISTENCY);
}
}
} catch (Exception e) {
addError(getDelegate(), (IFormComponent) null, getText("unblockUser.invalidUserId"),
ValidationConstraint.CONSISTENCY);
}
if (getDelegate().getHasErrors()) {
return null;
}
ConfirmUnblock confirmUnblock = getConfirmUnblock();
confirmUnblock.setUserName(user.getUserName());
return confirmUnblock;
}
}
|
[
"nurukat@gmail.com"
] |
nurukat@gmail.com
|
3096c28559b8311ea5b67bd40874fec8309d2173
|
330f4d819c36d7e26ac13504861d02ddf6dfee19
|
/src/main/java/com/techshroom/wood/module/ModuleLoader.java
|
e0f65d12011b85813fd68ad6c570d25fcc4e8f6e
|
[
"MIT"
] |
permissive
|
TechShroom/WoodPilings
|
22754462a6b031c970d829fbd72891b68f02101c
|
469f5e452dbfa3c4c5a780056a689516bde8f27d
|
refs/heads/master
| 2021-01-12T16:27:20.961013
| 2016-09-27T14:37:28
| 2016-09-27T14:37:28
| 69,277,021
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,971
|
java
|
/*
* This file is part of WoodPilings, licensed under the MIT License (MIT).
*
* Copyright (c) TechShroom Studios <https://techshroom.com>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.techshroom.wood.module;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.ServiceConfigurationError;
import java.util.ServiceLoader;
import java.util.TreeMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Loads {@link Module Modules} using {@link ServiceLoader}.
* <p>
* Note: Module discovery DOES NOT OCCUR until {@link #load()} has been called.
* </p>
*/
public final class ModuleLoader {
private static final Logger LOGGER = LoggerFactory.getLogger(ModuleLoader.class);
private static final Object LOAD_LOCK = new Object();
private static boolean initialized;
private static final Map<String, Module> moduleMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
private static final Map<String, Module> unmodifiableModuleMap = Collections.unmodifiableMap(moduleMap);
private static List<Module> dependencyOrder;
public static Map<String, Module> getAllModules() {
return unmodifiableModuleMap;
}
public static void load() {
synchronized (LOAD_LOCK) {
if (initialized) {
return;
}
initialized = true;
LOGGER.info("Initializing module system...");
new LoadManager().doLoad();
LOGGER.info("Injecting dependencies");
dependencyOrder.forEach(m -> {
ModuleDependencyInjector.inject(m, moduleMap);
});
LOGGER.info("Firing pre-init");
dependencyOrder.forEach(m -> {
try {
m.onPreInit();
} catch (Exception e) {
LOGGER.error("Error in preInit for module " + m.getMetadata().getId(), e);
}
});
LOGGER.info("Firing init");
dependencyOrder.forEach(m -> {
try {
m.onInit();
} catch (Exception e) {
LOGGER.error("Error in init for module " + m.getMetadata().getId(), e);
}
});
}
}
/**
* Loading logic is encapsulated in this class.
*/
private static final class LoadManager {
private static final Logger LOGGER = LoggerFactory.getLogger(LoadManager.class);
private final ServiceLoader<Module> loader = ServiceLoader.load(Module.class);
private void doLoad() {
moduleMap.clear();
try {
for (Module info : this.loader) {
ModuleMetadata metadata = info.getMetadata();
Module old = moduleMap.put(metadata.getId(), info);
// this is efficient because we expect to not have
// duplicates
// so we'll only do one put in most cases
if (old != null) {
moduleMap.put(metadata.getId(), old);
if (LOGGER.isWarnEnabled()) {
LOGGER.warn(String.format("%s tried to override id %s, but it is already used by %s.",
Modules.getBasicRepresentation(info), metadata.getId(),
Modules.getBasicRepresentation(old)));
}
}
}
} catch (Exception | ServiceConfigurationError t) {
LOGGER.error("Error creating modules", t);
}
try {
dependencyOrder = new ModuleDependencySolver(moduleMap).computeDependencyOrder();
} catch (Exception e) {
LOGGER.info("Error while calculating depdency graph", e);
}
}
}
}
|
[
"ket1999@gmail.com"
] |
ket1999@gmail.com
|
7eb2cab34dea9e552d1fe317365b44b5395c92be
|
f2ac70adc55d0df8269f20721f24cb83e4eda801
|
/ServiciosWebSIOT/ServiciosWebSIOT-war/src/java/modelo/logica/generadorReportes/GestionMotorbd.java
|
b269427fd77c09af99fb73d64a45dd2f9d15cf82
|
[] |
no_license
|
julianmira01/servintesa
|
23966d3a73b5a118b880f3c81af8ad2f8e780d4f
|
3ab90faf126f3b5964e5d21931b8ff9b1ba4c6d6
|
refs/heads/master
| 2021-01-09T20:08:30.825588
| 2016-06-08T15:12:39
| 2016-06-08T15:12:39
| 60,717,674
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,215
|
java
|
package modelo.logica.generadorReportes;
import java.sql.Connection;
import java.util.List;
import modelo.conexion.Conexion;
import modelo.datos.dao.generadorReportes.MotorbdDao;
import modelo.datos.objetos.generadorReportes.Motorbd;
import utilidades.Funciones;
public class GestionMotorbd {
Conexion conexion;
Connection conn;
String myMotor;
public GestionMotorbd() {
super();
crearObjetos();
}
private void crearObjetos(){
conexion = new Conexion();
myMotor = "";
try{
myMotor = Funciones.leer_ini("/WSTransito.ini", "MOTOR");
}catch(Exception exce){}
if(myMotor.equals(""))
try{
myMotor = Funciones.leer_ini("c:\\WSTransito.ini", "MOTOR");
}catch(Exception exce){}
}
/**
* Inserta nuevo registro en la tabla
* @param Motorbd obj
* @return Retorna el mismo objeto pero con la llave primaria configurada
*/
public Motorbd crearMotorbd(Motorbd obj) {
List lista = null;
try {
MotorbdDao dao = new MotorbdDao();
conn = conexion.conectar();
//int id = Funciones.obtenerId(conn, "MOTORBD", "GEN_MOTORBD", myMotor);
//obj.setID(id);
dao.create(conn, obj);
int id = lastId();
obj.setID(id);
//verificar existencia
//obj = new Motorbd();
//obj.setID(id);
//lista = dao.searchMatching(conn, obj);
//if (lista != null && lista.size() > 0) {
// obj = (Motorbd)lista.get(0);
//}
//else {
// obj.setID(-1);
//}
} catch (Exception e) {
e.printStackTrace();
obj.setID(-1);
} finally {
conexion.cerrarCx();
}
return obj;
}
/**
* Edita un registro en la tabla
* @param Motorbd obj
* @return boolean indicando si se realizo o no la actualizacion
*/
public boolean editarMotorbd(Motorbd obj) {
boolean resultado;
resultado = false;
int id = 0;
try {
MotorbdDao dao = new MotorbdDao();
conn = conexion.conectar();
dao.save(conn, obj);
resultado = true;
} catch (Exception e) {
e.printStackTrace();
resultado = false;
} finally {
conexion.cerrarCx();
}
return resultado;
}
/**
* Busca el primer registro que coincida con los datos enviados
* @param Motorbd obj
* @return Retorna el mismo objeto pero con los datos consultados
*/
public Motorbd buscarPrimeroMotorbd(Motorbd obj) {
List lista = null;
try {
MotorbdDao dao = new MotorbdDao();
conn = conexion.conectar();
lista = dao.searchMatching(conn, obj);
if (lista != null && lista.size() > 0) {
obj = (Motorbd)lista.get(0);
}
else {
obj.setID(-1);
}
} catch (Exception e) {
e.printStackTrace();
obj.setID(-1);
} finally {
conexion.cerrarCx();
}
return obj;
}
/**
* Busca los registros que coincidan con los datos enviados
* @param Motorbd obj
* @return Retorna la lista de los registros que coinciden
*/
public List buscarMotorbd(Motorbd obj) {
List lista = null;
try {
MotorbdDao dao = new MotorbdDao();
conn = conexion.conectar();
lista = dao.searchMatching(conn, obj);
} catch (Exception e) {
e.printStackTrace();
} finally {
conexion.cerrarCx();
}
return lista;
}
/**
* Consulta todos los registros de la tabla
* @param Motorbd obj
* @return Retorna la lista de los registros en la tabla
*/
public List listarMotorbd() {
List lista = null;
try {
MotorbdDao dao = new MotorbdDao();
conn = conexion.conectar();
lista = dao.loadAll(conn);
} catch (Exception e) {
e.printStackTrace();
} finally {
conexion.cerrarCx();
}
return lista;
}
/**
* Elimina un registro de la tabla
* @param Motorbd obj
* @return Retorna un boolean indicando si se realizo o no la operacion
*/
public boolean eliminarMotorbd(Motorbd obj) {
boolean resultado;
resultado = false;
int id = 0;
try {
MotorbdDao dao = new MotorbdDao();
conn = conexion.conectar();
dao.delete(conn, obj);
resultado = true;
} catch (Exception e) {
e.printStackTrace();
resultado = false;
} finally {
conexion.cerrarCx();
}
return resultado;
}
/**
* Lee el ultimo id auto incremental insertado en la tabla Marca.
*
* @return int : -1 si hubo algun error. >= 0.
*/
public int lastId() {
String sql = "SELECT IDENT_CURRENT('MOTOR_BD') AS id ";
java.sql.PreparedStatement stmt = null;
java.sql.ResultSet result = null;
try {
conn = conexion.conectar();
stmt = conn.prepareStatement(sql);
result = stmt.executeQuery();
if (result.next()) {
return result.getInt("id");
} else {
System.out.println("Id autoincremental no encontrado!");
}
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (result != null)
result.close();
if (stmt != null)
stmt.close();
}
catch (java.sql.SQLException e) {
e.printStackTrace();
}
conexion.cerrarCx();
}
return -1;
}
}
|
[
"danielfyo@hotmail.com"
] |
danielfyo@hotmail.com
|
f21b812e1196aa2d67ba6837b03c1ff19f0c6629
|
ac41341eb32557d0159b633881ed5668044b99ca
|
/src/org/genesys/models/Node.java
|
e0870ba1cc028455e5686c85f605699645d4b4df
|
[] |
no_license
|
utopia-group/neo
|
421651732cc0b7f698265d689d02359f904ee487
|
1d3572ff4fee0c55c741dea2852e2562c160d589
|
refs/heads/master
| 2020-06-18T15:18:07.517234
| 2019-07-11T23:43:30
| 2019-07-11T23:43:30
| 196,342,026
| 5
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,004
|
java
|
package org.genesys.models;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.genesys.language.Production;
/**
* Created by yufeng on 5/26/17.
*/
public class Node {
private boolean pe_ = false;
private Object symbol;
public int id = -1;
public int component = -1;
public int level = -1;
public String function;
public List<Node> children = new ArrayList<>();
public HashMap<Production, Boolean> activeDomain = new HashMap<>();
public List<Production> domain = new ArrayList<>();
public Production decision = null;
public Node() {
this.function = "";
this.children = new ArrayList<>();
this.domain = new ArrayList<>();
this.activeDomain = new HashMap<>();
}
public Node(String function, List<Node> children) {
this.function = function;
this.children = children;
}
public Node(String function, List<Node> children, List<Production> productions) {
this.function = function;
this.children = children;
for (Production p : productions) {
activeDomain.put(p, true);
}
domain = productions;
}
public void setDomain(List<Production> productions) {
for (Production p : productions) {
activeDomain.put(p, true);
}
domain = productions;
}
public boolean isConcrete() {
return pe_;
}
public void setConcrete(boolean value) {
pe_ = value;
}
public void addChild(Node node) {
children.add(node);
}
public Node(String function) {
this.function = function;
}
public Object getSymbol() {
return symbol;
}
public void setSymbol(Object symbol) {
this.symbol = symbol;
}
@Override
public boolean equals(Object o) {
assert o instanceof Node;
Node other = (Node) o;
//if (!function.equals(other.function)) return false;
if (component != other.component) return false;
if (children.size() != other.children.size()) return false;
return children.equals(other.children);
}
@Override
public int hashCode() {
int result = 17;
//result = 31 * result + function.hashCode();
result = 31 * result + component;
for (Node child : children) {
result = 31 * result + child.hashCode();
}
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
if (this.children.size() > 0) {
sb.append("(");
}
sb.append(this.function).append(" ");
for (Node child : this.children) {
// sb.append("[id=" + child.id + "]");
sb.append(child.toString()).append(" ");
}
sb.deleteCharAt(sb.length() - 1);
if (this.children.size() > 0) {
sb.append(")");
}
return sb.toString();
}
}
|
[
"fengyu8299@gmail.com"
] |
fengyu8299@gmail.com
|
5f47e279a5d2750f0adea10e9f8104ad9076af30
|
d3679002d911a2b4e62e9270be387e7da099f81c
|
/src/p15/textbook/TreeSetExample1.java
|
7f7c254cde93a866f025132e921e8c364ce650c5
|
[] |
no_license
|
dailydevp/java20210325
|
3fb3315fbbba31b914959c32b51eaf4d12d52883
|
7c022fc6f194de3b5e876b2e74c61bbd2b33f702
|
refs/heads/master
| 2023-04-23T00:36:19.028568
| 2021-05-04T12:52:35
| 2021-05-04T12:52:35
| 351,269,342
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,198
|
java
|
package p15.textbook;
import java.util.TreeSet;
public class TreeSetExample1 {
@SuppressWarnings("deprecation")
public static void main(String[] args) {
TreeSet<Integer> scores = new TreeSet<Integer>();
scores.add(new Integer(87));
scores.add(new Integer(98));
scores.add(new Integer(75));
scores.add(new Integer(95));
scores.add(new Integer(80));
Integer score = null;
score = scores.first();
System.out.println("가장 낮은 점수: " +score);
score = scores.last();
System.out.println("가장 높은 점수: "+ score);
System.out.println();
score = scores.lower(new Integer(95));
System.out.println("95점 아래 점수: " + score);
score = scores.higher(new Integer(95));
System.out.println("95점 위의 점수: "+ score);
System.out.println();
score = scores.floor(new Integer(95));
System.out.println("95점 이거나 바로 아래 점수:" + score);
score = scores.ceiling(new Integer(85));
System.out.println("85점 이거나 바로 위의 점수:" + scores.size()+"\n");
while(!scores.isEmpty()) {
score = scores.pollFirst();
System.out.println(score + "(남은 객체 수:" + scores.size()+")");
}
}
}
|
[
"hyde8547@naver.com"
] |
hyde8547@naver.com
|
936d4b16c459f3ddf2569cdd0338242fc38294ad
|
ecb84d38338596f5f72ac657b64260b28f447d7b
|
/RealTradingV2/src/clientConnection/Util.java
|
4655dab83bc48a6d80ab6b55d8c8b416e4c3a616
|
[] |
no_license
|
edisonnica/RealTradingV2
|
595fe08e7d1a92f0f37f859c756eb9b125d99fc6
|
27f17a6df0e1c14bdf924b7107b4899fdd4ebd35
|
refs/heads/master
| 2021-01-22T08:48:34.297843
| 2013-02-19T02:51:58
| 2013-02-19T02:51:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,711
|
java
|
/*
* Util.java
*/
package clientConnection;
import java.util.Vector;
public class Util {
public static boolean StringIsEmpty(String str) {
return str == null || str.length() == 0;
}
public static String NormalizeString(String str) {
return str != null ? str : "";
}
public static int StringCompare(String lhs, String rhs) {
return NormalizeString(lhs).compareTo(NormalizeString(rhs));
}
public static int StringCompareIgnCase(String lhs, String rhs) {
return NormalizeString(lhs).compareToIgnoreCase(NormalizeString(rhs));
}
public static boolean VectorEqualsUnordered(Vector lhs, Vector rhs) {
if (lhs == rhs)
return true;
int lhsCount = lhs == null ? 0 : lhs.size();
int rhsCount = rhs == null ? 0 : rhs.size();
if (lhsCount != rhsCount)
return false;
if (lhsCount == 0)
return true;
boolean[] matchedRhsElems = new boolean[rhsCount];
for (int lhsIdx = 0; lhsIdx < lhsCount; ++lhsIdx) {
Object lhsElem = lhs.get(lhsIdx);
int rhsIdx = 0;
for (; rhsIdx < rhsCount; ++rhsIdx) {
if (matchedRhsElems[rhsIdx]) {
continue;
}
if (lhsElem.equals(rhs.get(rhsIdx))) {
matchedRhsElems[rhsIdx] = true;
break;
}
}
if (rhsIdx >= rhsCount) {
// no matching elem found
return false;
}
}
return true;
}
public static String IntMaxString(int value) {
return (value == Integer.MAX_VALUE) ? "" : "" + value;
}
public static String DoubleMaxString(double value) {
return (value == Double.MAX_VALUE) ? "" : "" + value;
}
}
|
[
"denman@denman-PC"
] |
denman@denman-PC
|
0af732cb21fd9db41738c5eef6f8082212c7fa05
|
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
|
/Code Snippet Repository/Spring/Spring7048.java
|
80fd729fd2844f7cacc78076430465f12944a36d
|
[] |
no_license
|
saber13812002/DeepCRM
|
3336a244d4852a364800af3181e03e868cf6f9f5
|
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
|
refs/heads/master
| 2023-03-16T00:08:06.473699
| 2018-04-18T05:29:50
| 2018-04-18T05:29:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 532
|
java
|
@Test
public void activeMQResourceAdapterSetup() {
activationSpecConfig.setAcknowledgeMode(Session.SESSION_TRANSACTED);
JmsActivationSpecFactory activationSpecFactory = new DefaultJmsActivationSpecFactory();
StubActiveMQActivationSpec spec = (StubActiveMQActivationSpec) activationSpecFactory.createActivationSpec(
new StubActiveMQResourceAdapter(), activationSpecConfig);
assertEquals(5, spec.getMaxSessions());
assertEquals(3, spec.getMaxMessagesPerSessions());
assertTrue(spec.isUseRAManagedTransaction());
}
|
[
"Qing.Mi@my.cityu.edu.hk"
] |
Qing.Mi@my.cityu.edu.hk
|
5c04c71998904b0a7b6233ca0ed8c8fbbbdf07b7
|
53b95b8940411003fb4fa82f920c91326656fea0
|
/branches/BR_DEV_ADMIN_CONSOLE_2/zoie-admin/src/proj/zoie/admin/client/ZoieAdmin.java
|
239cac4198d670b887135010c0fdb3d2da7bbe9b
|
[] |
no_license
|
BGCX261/zoie-svn-to-git
|
a8a9c272a952e96490e159f56e9d901885760e23
|
092ccdb992d57872337420ba9f7218b73e7118c5
|
refs/heads/master
| 2016-08-04T22:19:45.459439
| 2015-08-25T15:35:52
| 2015-08-25T15:35:52
| 41,485,815
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,430
|
java
|
package proj.zoie.admin.client;
import proj.zoie.admin.client.jmx.JMXAdminService;
import proj.zoie.admin.client.jmx.JMXAdminServiceAsync;
import proj.zoie.admin.client.search.SearchService;
import proj.zoie.admin.client.search.SearchServiceAsync;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TabPanel;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class ZoieAdmin implements EntryPoint {
/**
* The message displayed to the user when the server cannot be reached or
* returns an error.
*/
private static final String SERVER_ERROR = "An error occurred while "
+ "attempting to contact the server. Please check your network "
+ "connection and try again.";
private final SearchServiceAsync searchService = GWT.create(SearchService.class);
private final JMXAdminServiceAsync jmxService = GWT.create(JMXAdminService.class);
/**
* This is the entry point method.
*/
public void onModuleLoad() {
TabPanel topTab = new TabPanel();
//topTab.setWidth("100%");
//topTab.setHeight("100%");
topTab.setAnimationEnabled(true);
topTab.add(new OverviewPanel(jmxService), "Overview");
topTab.add(new SearchPanel(searchService),"Search");
topTab.selectTab(0);
RootPanel.get("toptab").add(topTab);
}
}
|
[
"you@example.com"
] |
you@example.com
|
276d31d7cd3b977a5696c94578d9e761017d24f4
|
4473046026ff215c6c9fbb6ecd1cad9b1f95a67e
|
/JavaDB/DatabasesAdvancedHibernate/XMLProcessing/ProductsShopXml/src/main/java/app/utils/XmlParserImpl.java
|
176cf0f033da67b839ab1708ad56e4a7cf48f3d7
|
[] |
no_license
|
miroslavangelov/Java-Development
|
e105248d82dd0772902eeeefbeb2389919fec262
|
61fcc2fb8a5ae9f38647f85eb63f809e7d8df350
|
refs/heads/master
| 2022-12-12T04:27:27.932969
| 2019-12-08T12:38:36
| 2019-12-08T12:38:36
| 138,468,780
| 0
| 0
| null | 2022-11-24T08:50:00
| 2018-06-24T09:18:55
|
Java
|
UTF-8
|
Java
| false
| false
| 1,020
|
java
|
package app.utils;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import java.io.*;
public class XmlParserImpl implements XmlParser {
@Override
public <O> O parseXml(Class<O> objectClass, String path) throws JAXBException, FileNotFoundException {
JAXBContext context = JAXBContext.newInstance(objectClass);
BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(new File(path))));
Unmarshaller unmarshaller = context.createUnmarshaller();
return (O) unmarshaller.unmarshal(reader);
}
public <O> void exportToXml(O object, Class<O> objectClass, String path) throws JAXBException {
JAXBContext context = JAXBContext.newInstance(objectClass);
Marshaller marshaller = context.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
marshaller.marshal(object, new File(path));
}
}
|
[
"miroslav@devision.com"
] |
miroslav@devision.com
|
f84b76fa19d2f2efb8a855956f73368c9d8d287c
|
b7a7906ab61c28d260a0be87d3ff77d818a0c817
|
/web/webcommon/java/so/wwb/creditbox/web/defense/biz/enums/DefenseAction.java
|
36ae3b55cfa525e101b6680e05b8e29c6d19d4fa
|
[] |
no_license
|
as12334/xy-creditbox
|
c136aa2b4d00c8667f7e19742b827d2253723614
|
7091fb9174cd9ddcdd2a4e3e8f5d3a70abaa0e52
|
refs/heads/master
| 2022-12-21T01:01:10.182917
| 2019-12-04T17:12:50
| 2019-12-04T17:12:50
| 215,942,849
| 3
| 4
| null | 2022-12-16T08:45:21
| 2019-10-18T04:43:59
|
Java
|
UTF-8
|
Java
| false
| false
| 870
|
java
|
package so.wwb.creditbox.web.defense.biz.enums;
import org.soul.commons.enums.EnumTool;
import org.soul.commons.enums.ICodeEnum;
public enum DefenseAction implements ICodeEnum {
PLAYER_REGISTER("player_register","防御:玩家注册"),
AGENT_REGISTER("agent_register","防御:代理注册"),
PHONE("phone","防御:手机验证"),
MAIL("mail","防御:邮箱验证"),
PLAYER_LOGIN("player_login", "防御:玩家登录");
private String code;
private String trans;
DefenseAction(String code, String trans) {
this.code = code;
this.trans = trans;
}
@Override
public String getCode() {
return code;
}
@Override
public String getTrans() {
return trans;
}
public static DefenseAction enumOf(String code) {
return EnumTool.enumOf(DefenseAction.class, code);
}
}
|
[
"kejunjie1991@163.com"
] |
kejunjie1991@163.com
|
19bbe9d9b707e250bd40c63d5e74e4dfa7ac25ef
|
19f7e40c448029530d191a262e5215571382bf9f
|
/decompiled/instagram/sources/p000X/DSm.java
|
0199392ec3486056294802a77206cf735fcd9611
|
[] |
no_license
|
stanvanrooy/decompiled-instagram
|
c1fb553c52e98fd82784a3a8a17abab43b0f52eb
|
3091a40af7accf6c0a80b9dda608471d503c4d78
|
refs/heads/master
| 2022-12-07T22:31:43.155086
| 2020-08-26T03:42:04
| 2020-08-26T03:42:04
| 283,347,288
| 18
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 324
|
java
|
package p000X;
import java.lang.reflect.Field;
/* 'enum' modifier removed */
/* renamed from: X.DSm */
public final class DSm extends DSj {
public DSm() {
super("UPPER_CAMEL_CASE_WITH_SPACES", 2);
}
public final String Brh(Field field) {
return DSj.A00(DSj.A01(field.getName(), " "));
}
}
|
[
"stan@rooy.works"
] |
stan@rooy.works
|
ac4bef78509f980f65cccb8b85405facb9f2d64d
|
cbcab39e220ad555c8af4f19408335d5fc5aecdd
|
/src/org.hyperflex.componentmodels.orocos.model/src/org/hyperflex/orocoscomponentmodel/AbstractComponent.java
|
f19c778ef9bbbf0f98b9a9390bcf48802f985327
|
[] |
no_license
|
GertKanter/HyperFlex
|
2d6b5133e9b94b04459897e546126626d29d30c3
|
427613e076f7604dcfdb40b7e4a491146ba071a8
|
refs/heads/master
| 2020-03-28T20:39:44.513690
| 2014-09-11T15:10:15
| 2014-09-11T15:10:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,219
|
java
|
/**
* HyperFlex Toolchain
*
* Copyright (c) 2013
* All rights reserved.
*
* Luca Gherardi
* University of Bergamo
* Department of Engineering
*
* ***********************************************************************************************
*
* Author: <A HREF="mailto:lucagh@ethz.ch">Luca Gherardi</A>
*
* In collaboration with:
* <A HREF="mailto:brugali@unibg.it">Davide Brugali</A>, Department of Engineering
*
* ***********************************************************************************************
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*
*/
package org.hyperflex.orocoscomponentmodel;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Abstract Component</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.hyperflex.orocoscomponentmodel.AbstractComponent#getName <em>Name</em>}</li>
* </ul>
* </p>
*
* @see org.hyperflex.orocoscomponentmodel.orocoscomponentmodelPackage#getAbstractComponent()
* @model abstract="true"
* @generated
*/
public interface AbstractComponent extends EObject {
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.hyperflex.orocoscomponentmodel.orocoscomponentmodelPackage#getAbstractComponent_Name()
* @model
* @generated
*/
String getName();
/**
* Sets the value of the '{@link org.hyperflex.orocoscomponentmodel.AbstractComponent#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void setName(String value);
} // AbstractComponent
|
[
"lucaghera8@gmail.com"
] |
lucaghera8@gmail.com
|
d1aa074b23ea8b1daeb4e90487cc21ceb530fef4
|
471a1d9598d792c18392ca1485bbb3b29d1165c5
|
/jadx-MFP/src/main/java/com/google/ads/interactivemedia/v3/internal/fn.java
|
a93a3b0cbb568a698bafc2c870cbaf1ed688f9c7
|
[] |
no_license
|
reed07/MyPreferencePal
|
84db3a93c114868dd3691217cc175a8675e5544f
|
365b42fcc5670844187ae61b8cbc02c542aa348e
|
refs/heads/master
| 2020-03-10T23:10:43.112303
| 2019-07-08T00:39:32
| 2019-07-08T00:39:32
| 129,635,379
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,958
|
java
|
package com.google.ads.interactivemedia.v3.internal;
import java.util.Arrays;
/* compiled from: IMASDK */
public final class fn implements fy {
public final int a;
public final int[] b;
public final long[] c;
public final long[] d;
public final long[] e;
private final long f;
public fn(int[] iArr, long[] jArr, long[] jArr2, long[] jArr3) {
this.b = iArr;
this.c = jArr;
this.d = jArr2;
this.e = jArr3;
this.a = iArr.length;
int i = this.a;
if (i > 0) {
this.f = jArr2[i - 1] + jArr3[i - 1];
} else {
this.f = 0;
}
}
public final boolean a() {
return true;
}
public final int b(long j) {
return vf.a(this.e, j, true, true);
}
public final long b() {
return this.f;
}
public final fz a(long j) {
int b2 = b(j);
gb gbVar = new gb(this.e[b2], this.c[b2]);
if (gbVar.b >= j || b2 == this.a - 1) {
return new fz(gbVar);
}
int i = b2 + 1;
return new fz(gbVar, new gb(this.e[i], this.c[i]));
}
public final String toString() {
int i = this.a;
String arrays = Arrays.toString(this.b);
String arrays2 = Arrays.toString(this.c);
String arrays3 = Arrays.toString(this.e);
String arrays4 = Arrays.toString(this.d);
StringBuilder sb = new StringBuilder(String.valueOf(arrays).length() + 71 + String.valueOf(arrays2).length() + String.valueOf(arrays3).length() + String.valueOf(arrays4).length());
sb.append("ChunkIndex(length=");
sb.append(i);
sb.append(", sizes=");
sb.append(arrays);
sb.append(", offsets=");
sb.append(arrays2);
sb.append(", timeUs=");
sb.append(arrays3);
sb.append(", durationsUs=");
sb.append(arrays4);
sb.append(")");
return sb.toString();
}
}
|
[
"anon@ymous.email"
] |
anon@ymous.email
|
b834468f75ce479499dd85aa5f837fe799cf8816
|
65f2e38158413af5c8688813321c5c4f24488ac8
|
/src/main/java/com/yx/pos/service/impl/VipDiscountDetailServiceImpl.java
|
99d4359c0bdd89d62d243e9eb9664ddf3f3a37f3
|
[] |
no_license
|
langrs/pos
|
177141dea8161753d1b5ff319d92ac4a161412e5
|
19c3b0f0f28fb6f98066136330e4c2402b9e51dd
|
refs/heads/master
| 2020-04-11T06:26:59.406350
| 2018-12-13T03:50:50
| 2018-12-13T03:50:50
| 161,580,934
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 704
|
java
|
package com.yx.pos.service.impl;
import com.yx.pos.base.BaseDao;
import com.yx.pos.base.BaseServiceImpl;
import com.yx.pos.dao.VipDiscountDetailDao;
import com.yx.pos.model.VipDiscountDetail;
import com.yx.pos.service.VipDiscountDetailService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
* 对象功能:VipDiscountDetail Service Impl 对象
* 开发人员:LZM
*/
@Service("VipDiscountDetailService")
public class VipDiscountDetailServiceImpl extends BaseServiceImpl<String, VipDiscountDetail> implements VipDiscountDetailService
{
@Resource
VipDiscountDetailDao dao;
@Override
protected BaseDao<String, VipDiscountDetail> getDao() {
return dao;
}
}
|
[
"27617839@qq.com"
] |
27617839@qq.com
|
84881ed4c2dcffb55ebc0a2516cf7640c6d4729b
|
0529524c95045b3232f6553d18a7fef5a059545e
|
/app/src/androidTest/java/TestCase_abdelrahman_photorecovery__1538805655.java
|
247548ce59a2c3c744c36326340855f4bee3a44b
|
[] |
no_license
|
sunxiaobiu/BasicUnitAndroidTest
|
432aa3e10f6a1ef5d674f269db50e2f1faad2096
|
fed24f163d21408ef88588b8eaf7ce60d1809931
|
refs/heads/main
| 2023-02-11T21:02:03.784493
| 2021-01-03T10:07:07
| 2021-01-03T10:07:07
| 322,577,379
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 290
|
java
|
import androidx.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(AndroidJUnit4.class)
public class TestCase_abdelrahman_photorecovery__1538805655 {
@Test
public void testCase() throws Exception {
// $FF: Couldn't be decompiled
}
}
|
[
"sunxiaobiu@gmail.com"
] |
sunxiaobiu@gmail.com
|
44096b9cd3e4e586935ecdd5905177c14a6a0a69
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/1/1_74cfd064a5324fb45d0a27c4dbf06c92c9a81b79/AttributeTypeImpl/1_74cfd064a5324fb45d0a27c4dbf06c92c9a81b79_AttributeTypeImpl_t.java
|
474f2548eae9b6a44a82c7c0b3a040aa29c09771
|
[] |
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
| 8,026
|
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.directory.studio.apacheds.schemaeditor.model;
import javax.naming.NamingException;
import org.apache.directory.shared.ldap.schema.AbstractAttributeType;
import org.apache.directory.shared.ldap.schema.AttributeType;
import org.apache.directory.shared.ldap.schema.MatchingRule;
import org.apache.directory.shared.ldap.schema.MutableSchemaObject;
import org.apache.directory.shared.ldap.schema.Syntax;
import org.apache.directory.shared.ldap.schema.UsageEnum;
/**
* This class represents an attribute type.
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
* @version $Rev$, $Date$
*/
public class AttributeTypeImpl extends AbstractAttributeType implements MutableSchemaObject
{
private static final long serialVersionUID = 1L;
/** The object OID */
private String objectOid;
/** The name of the superior */
private String superiorName;
/** The OID of the syntax */
private String syntaxOid;
/** The name of the equality matching rule */
private String equalityName;
/** The name of the ordering matching rule */
private String orderingName;
/** The name of the substr matching rule */
private String substrName;
/**
* Creates a new instance of AttributeTypeImpl.
*
* @param oid
* the OID of the attribute type
*/
public AttributeTypeImpl( String oid )
{
super( oid );
objectOid = oid;
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AbstractSchemaObject#setNames(java.lang.String[])
*/
public void setNames( String[] names )
{
super.setNames( names );
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AbstractSchemaObject#getOid()
*/
public String getOid()
{
return objectOid;
}
/**
* Set the OID.
*
* @param oid
* the OID value
*/
public void setOid( String oid )
{
objectOid = oid;
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AbstractSchemaObject#setDescription(java.lang.String)
*/
public void setDescription( String description )
{
super.setDescription( description );
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AbstractSchemaObject#setObsolete(boolean)
*/
public void setObsolete( boolean obsolete )
{
super.setObsolete( obsolete );
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AbstractAttributeType#setCanUserModify(boolean)
*/
public void setCanUserModify( boolean canUserModify )
{
super.setCanUserModify( canUserModify );
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AbstractAttributeType#setCollective(boolean)
*/
public void setCollective( boolean collective )
{
super.setCollective( collective );
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AbstractAttributeType#setSingleValue(boolean)
*/
public void setSingleValue( boolean singleValue )
{
super.setSingleValue( singleValue );
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AbstractAttributeType#setUsage(org.apache.directory.shared.ldap.schema.UsageEnum)
*/
public void setUsage( UsageEnum usage )
{
super.setUsage( usage );
}
/**
* Gets the superior name.
*
* @return
* the superior name
*/
public String getSuperiorName()
{
return superiorName;
}
/**
* Sets the superior name.
*
* @param superiorName
* the superior name
*/
public void setSuperiorName( String superiorName )
{
this.superiorName = superiorName;
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AttributeType#getSuperior()
*/
public AttributeType getSuperior() throws NamingException
{
return null;
}
/**
* Gets the OID of the syntax.
*
* @return
* the OID of the syntax
*/
public String getSyntaxOid()
{
return syntaxOid;
}
/**
* Sets the OID of the syntax.
*
* @param syntaxOid
* the OID of the syntax
*/
public void setSyntaxOid( String syntaxOid )
{
this.syntaxOid = syntaxOid;
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AttributeType#getSyntax()
*/
public Syntax getSyntax() throws NamingException
{
return null;
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AbstractAttributeType#setLength(int)
*/
public void setLength( int length )
{
super.setLength( length );
}
/**
* Gets the equality matching rule name.
*
* @return
* the equality matching rule name
*/
public String getEqualityName()
{
return equalityName;
}
/**
* Sets the equality matching rule name.
*
* @param equalityName
* the equality matching rule name
*/
public void setEqualityName( String equalityName )
{
this.equalityName = equalityName;
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AttributeType#getEquality()
*/
public MatchingRule getEquality() throws NamingException
{
return null;
}
/**
* Gets the ordering matching rule name.
*
* @return
* the ordering matching rule name
*/
public String getOrderingName()
{
return orderingName;
}
/**
* Sets the ordering matching rule name.
*
* @param orderingName
* the ordering matching rule name
*/
public void setOrderingName( String orderingName )
{
this.orderingName = orderingName;
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AttributeType#getOrdering()
*/
public MatchingRule getOrdering() throws NamingException
{
return null;
}
/**
* Gets the substring matching rule name.
*
* @return
* the substring matching rule name
*/
public String getSubstrName()
{
return substrName;
}
/**
* Sets the substring matching rule name.
*
* @param substrName
* the substring matching rule name
*/
public void setSubstrName( String substrName )
{
this.substrName = substrName;
}
/* (non-Javadoc)
* @see org.apache.directory.shared.ldap.schema.AttributeType#getSubstr()
*/
public MatchingRule getSubstr() throws NamingException
{
return null;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
1d3ada2e161ce7f3671289a3ea424852d39a9cb7
|
d217153d3a9ae32e3dab6a91e1e05a9aa881c074
|
/src/com/huiyin/ui/flash/FlashGridAdapter.java
|
47afcc9d4a97e391d032f5d3b1613b1b43211378
|
[] |
no_license
|
sengeiou/huiyinlehu
|
c892c6d804a5410de9d1f56db34b5df0f407be58
|
47a6523104746353950a482ab95600e19887b2e0
|
refs/heads/master
| 2020-05-30T11:00:09.656997
| 2015-07-28T07:32:52
| 2015-07-28T07:32:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,875
|
java
|
package com.huiyin.ui.flash;
import android.content.Context;
import android.text.Html;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.StrikethroughSpan;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.huiyin.R;
import com.huiyin.ui.flash.FlashPrefectureBean.FrashGoods;
import com.huiyin.utils.ImageManager;
import com.huiyin.utils.MathUtil;
import com.huiyin.utils.ViewHolder;
import java.util.ArrayList;
public class FlashGridAdapter extends BaseAdapter {
private Context mContext;
private ArrayList<FrashGoods> list;
public FlashGridAdapter(Context mContext) {
this.mContext = mContext;
list = new ArrayList<FrashGoods>();
}
public FlashGridAdapter(Context mContext, ArrayList<FrashGoods> list) {
this.mContext = mContext;
this.list = list;
}
@Override
public int getCount() {
return list.size();
}
@Override
public Object getItem(int position) {
return list.get(position);
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
if (convertView == null) {
convertView = LayoutInflater.from(mContext).inflate(R.layout.flash_grid_item_layout, parent, false);
}
ImageView image = ViewHolder.get(convertView, R.id.zhuan_qu2_iv_img);
TextView name = ViewHolder.get(convertView, R.id.zhuan_qu2_tv_title);
TextView price = ViewHolder.get(convertView, R.id.zhuan_qu2_tv_price);
TextView delPrice = ViewHolder.get(convertView, R.id.zhuan_qu2_tv_del_price);
TextView count = ViewHolder.get(convertView, R.id.zhuan_qu2_tv_buy_num);
FrashGoods temp = list.get(position);
name.setText(temp.getCOMMODITYNAME());
price.setText(Html.fromHtml("<font color=\"#484848\">闪购价:</font>" + MathUtil.priceForAppWithSign(temp.getLHPRICE())));
SpannableString sp = null;
sp = new SpannableString("乐虎价:" + MathUtil.priceForAppWithSign(temp.getPRICE()));
sp.setSpan(new StrikethroughSpan(), 4,sp.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
delPrice.setText(sp);
// delPrice.setText("乐虎价:" +
// MathUtil.priceForAppWithSign(temp.getLHPRICE()));
// delPrice.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);
count.setText("已有" + temp.getJOINNUM() + "人参加");
ImageManager.LoadWithServer(temp.getIMG(), image);
return convertView;
}
public void deleteItem() {
list.clear();
notifyDataSetChanged();
}
public void addItem(ArrayList<FrashGoods> temp) {
if (temp == null) {
return;
}
if (temp instanceof ArrayList) {
list.addAll(temp);
}
notifyDataSetChanged();
}
public int getID(int position) {
return ((FrashGoods) getItem(position)).getPRODUCEID();
}
}
|
[
"293575570@qq.com"
] |
293575570@qq.com
|
a20522a89ebbf1b5992e4a34ca47a0b783472ddb
|
fe711416301bdc8fcd798a5c20d7a02f37f61362
|
/hibernate_day02/src/test/java/cn/itheima/d_tx/Demo.java
|
7716d095f5fc83cde5cd0cd64a403362fe38cd88
|
[] |
no_license
|
chaiguolong/javaweb_step1
|
e9175521485813c40e763a95629c1ef929405010
|
e9e8d3e70fd5d9495b6675c60e35d8ca12eefdc2
|
refs/heads/master
| 2022-07-07T18:10:59.431906
| 2020-04-28T05:41:51
| 2020-04-28T05:41:51
| 143,223,415
| 1
| 0
| null | 2022-06-21T00:55:31
| 2018-08-02T00:53:40
|
Java
|
UTF-8
|
Java
| false
| false
| 807
|
java
|
package cn.itheima.d_tx;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import org.junit.Test;
import cn.itheima.domain.Customer;
import cn.itheima.utils.HibernateUtils;
//测试getCurrentSession
public class Demo {
@Test
//返回同一个与线程绑定的session
public void fun1(){
Session session1 = HibernateUtils.getCurrentSession();
Session session2 = HibernateUtils.getCurrentSession();
System.out.println(session1==session2);//true
}
@Test
//返回不同的session
public void fun2(){
Session session1 = HibernateUtils.openSession();
Session session2 = HibernateUtils.openSession();
System.out.println(session1==session2);//false
}
}
|
[
"584238433@qq.com"
] |
584238433@qq.com
|
3e963e83c58dcbb37fc550967b69cfb0361200eb
|
46fa5d39a3091f4d42b9e07baf3ad2633ba9c21d
|
/evaluation/subjects/rsa_modpow_834443/src/modpow/SimplifiedRSA.java
|
e6684571cbf28976643e66d6d3de6ebd4fa5409e
|
[
"Apache-2.0"
] |
permissive
|
yannicnoller/qfuzz
|
0231db497de3c16937c1a4501f44385ddfde5774
|
ca03bf187cb1127763a9c78f7547cda536a69a4e
|
refs/heads/master
| 2023-04-14T15:36:20.927575
| 2021-05-17T00:35:36
| 2021-05-17T00:35:36
| 204,430,941
| 12
| 2
|
Apache-2.0
| 2021-12-03T03:41:05
| 2019-08-26T08:28:10
|
Java
|
UTF-8
|
Java
| false
| false
| 596
|
java
|
package modpow;
public class SimplifiedRSA {
public static int modPowFastKocherReduction(int num, int e, int m, int max_high) {
// computes num^e mod m
int s = 1;
int y = num;
int res = 0;
int bound = (int) (Math.log(max_high + 1) / Math.log(2));
int j=0;
while (e > 0) {
if (e % 2 == 1) {
// res = (s * y) % m;
// reduction:
int tmp = s * y;
if (tmp > m) {
tmp = tmp - m;
}
res = tmp % m;
} else {
res = s;
}
s = (res * res) % m; // squaring the base
e /= 2;
j++;
if(j==bound) break;
}
return res;
}
}
|
[
"yannic.noller@gmx.de"
] |
yannic.noller@gmx.de
|
ae4343ea94a816fd52f38d232c011cf9fca6833e
|
dec6bd85db1d028edbbd3bd18fe0ca628eda012e
|
/netbeans-projects/Java/src/ShowColors2Frame/ShowColors2Frame.java
|
cf84c10b03da8199b26bc3aa542c09fff34d625c
|
[] |
no_license
|
MatheusGrenfell/java-projects
|
21b961697e2c0c6a79389c96b588e142c3f70634
|
93c7bfa2e4f73a232ffde2d38f30a27f2a816061
|
refs/heads/master
| 2022-12-29T12:55:00.014296
| 2020-10-16T00:54:30
| 2020-10-16T00:54:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,205
|
java
|
package ShowColors2Frame;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JColorChooser;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class ShowColors2Frame extends JFrame {
private JButton changeColorJButton;
private Color color = Color.LIGHT_GRAY;
private JPanel colorJPanel;
public ShowColors2Frame() {
super("Using JColorChooser");
colorJPanel = new JPanel();
colorJPanel.setBackground(color);
changeColorJButton = new JButton("Change Color");
changeColorJButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evento) {
Color cor = JColorChooser.showDialog(ShowColors2Frame.this, "Choose a color", color);
if (color != null) {
colorJPanel.setBackground(cor);
}
}
});
add(colorJPanel, BorderLayout.CENTER);
add(changeColorJButton, BorderLayout.SOUTH);
setSize(400, 130);
setLocationRelativeTo(null);
setVisible(true);
}
}
|
[
"caiohobus@gmail.com"
] |
caiohobus@gmail.com
|
7dc786279491f133ddf3b385b6ff481c6845d2a9
|
3e43b899a0352fc5848ae31cc80ac4e00b92399e
|
/hybris/bin/custom/mercury/mercuryfulfilmentprocess/src/org/mercury/fulfilmentprocess/actions/order/SendPaymentFailedNotificationAction.java
|
83e30eee45e0e12b364b8d9dec3cc30b9a988e6c
|
[] |
no_license
|
vinayj344/interviewpractice
|
8e84c876336a737cb32858ab24f56e50d35d2269
|
3d61c30e9f32b7ac3787d5190e11032b4f07836c
|
refs/heads/master
| 2020-06-26T03:03:07.195821
| 2019-08-03T06:22:20
| 2019-08-03T06:22:20
| 199,505,882
| 0
| 0
| null | 2019-08-03T06:22:21
| 2019-07-29T18:23:35
|
Java
|
UTF-8
|
Java
| false
| false
| 1,475
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with hybris.
*
*
*/
package org.mercury.fulfilmentprocess.actions.order;
import de.hybris.platform.orderprocessing.events.PaymentFailedEvent;
import de.hybris.platform.orderprocessing.model.OrderProcessModel;
import de.hybris.platform.processengine.action.AbstractProceduralAction;
import de.hybris.platform.servicelayer.event.EventService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Required;
public class SendPaymentFailedNotificationAction extends AbstractProceduralAction<OrderProcessModel>
{
private static final Logger LOG = Logger.getLogger(SendPaymentFailedNotificationAction.class);
private EventService eventService;
@Override
public void executeAction(final OrderProcessModel process)
{
if (LOG.isInfoEnabled())
{
LOG.info("Process: " + process.getCode() + " in step " + getClass());
}
getEventService().publishEvent(new PaymentFailedEvent(process));
}
protected EventService getEventService()
{
return eventService;
}
@Required
public void setEventService(final EventService eventService)
{
this.eventService = eventService;
}
}
|
[
"vinay.j344@gmail.com"
] |
vinay.j344@gmail.com
|
6c8502e1c64b2321b9df519756314c37045396f9
|
4440dfc7ec2ea83d3e41b627004a700e42487aad
|
/source/src/main/java/java/util/concurrent/Executor.java
|
6651f65dee26a14e619e739c43679430d35f1cd6
|
[] |
no_license
|
bdluck/jdk
|
35f9b6b984a9cd06e70542f27bff6b0a320a1539
|
e7d23f3dc666036a68bf75a2888cd219209e82a9
|
refs/heads/master
| 2022-11-10T15:05:35.074409
| 2020-06-23T07:24:58
| 2020-06-23T07:24:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,768
|
java
|
/*
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
/*
*
*
*
*
*
* Written by Doug Lea with assistance from members of JCP JSR-166
* Expert Group and released to the public domain, as explained at
* http://creativecommons.org/publicdomain/zero/1.0/
*/
package java.util.concurrent;
/**
* An object that executes submitted {@link Runnable} tasks. This
* interface provides a way of decoupling task submission from the
* mechanics of how each task will be run, including details of thread
* use, scheduling, etc. An {@code Executor} is normally used
* instead of explicitly creating threads. For top.jlpan.top.jlpan.example, rather than
* invoking {@code new Thread(new(RunnableTask())).start()} for each
* of a set of tasks, you might use:
*
* <pre>
* Executor executor = <em>anExecutor</em>;
* executor.execute(new RunnableTask1());
* executor.execute(new RunnableTask2());
* ...
* </pre>
*
* However, the {@code Executor} interface does not strictly
* require that execution be asynchronous. In the simplest case, an
* executor can run the submitted task immediately in the caller's
* thread:
*
* <pre> {@code
* class DirectExecutor implements Executor {
* public void execute(Runnable r) {
* r.run();
* }
* }}</pre>
*
* More typically, tasks are executed in some thread other
* than the caller's thread. The executor below spawns a new thread
* for each task.
*
* <pre> {@code
* class ThreadPerTaskExecutor implements Executor {
* public void execute(Runnable r) {
* new Thread(r).start();
* }
* }}</pre>
*
* Many {@code Executor} implementations impose some sort of
* limitation on how and when tasks are scheduled. The executor below
* serializes the submission of tasks to a second executor,
* illustrating a composite executor.
*
* <pre> {@code
* class SerialExecutor implements Executor {
* final Queue<Runnable> tasks = new ArrayDeque<Runnable>();
* final Executor executor;
* Runnable active;
*
* SerialExecutor(Executor executor) {
* this.executor = executor;
* }
*
* public synchronized void execute(final Runnable r) {
* tasks.offer(new Runnable() {
* public void run() {
* try {
* r.run();
* } finally {
* scheduleNext();
* }
* }
* });
* if (active == null) {
* scheduleNext();
* }
* }
*
* protected synchronized void scheduleNext() {
* if ((active = tasks.poll()) != null) {
* executor.execute(active);
* }
* }
* }}</pre>
*
* The {@code Executor} implementations provided in this package
* implement {@link ExecutorService}, which is a more extensive
* interface. The {@link ThreadPoolExecutor} class provides an
* extensible thread pool implementation. The {@link Executors} class
* provides convenient factory methods for these Executors.
*
* <p>Memory consistency effects: Actions in a thread prior to
* submitting a {@code Runnable} object to an {@code Executor}
* <a href="package-summary.html#MemoryVisibility"><i>happen-before</i></a>
* its execution begins, perhaps in another thread.
*
* @since 1.5
* @author Doug Lea
*/
public interface Executor {
/**
* Executes the given command at some time in the future. The command
* may execute in a new thread, in a pooled thread, or in the calling
* thread, at the discretion of the {@code Executor} implementation.
*
* @param command the runnable task
* @throws RejectedExecutionException if this task cannot be
* accepted for execution
* @throws NullPointerException if command is null
*/
void execute(Runnable command);
}
|
[
"18723083600@163.com"
] |
18723083600@163.com
|
d8e59dd81c22718c3a97c3edeba3ea763229f75b
|
df0142ad807e93d4b08267475eabcc1a27864b78
|
/app/src/main/java/com/example/samsung/p0621_alertdialogitems/MainActivity.java
|
f0a679af6269886ebb1290e6aa57d3efb6b23fbe
|
[] |
no_license
|
btow/P0621_AlertDialogItems
|
d5b89291f09322e802ac64c3d4a7ab4209f5da5f
|
98676f8fd20c4346ab061754dd9392fbf7344d02
|
refs/heads/master
| 2021-01-18T15:52:44.107475
| 2017-03-30T11:33:22
| 2017-03-30T11:33:22
| 86,686,540
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,355
|
java
|
package com.example.samsung.p0621_alertdialogitems;
import android.app.Dialog;
import android.content.DialogInterface;
import android.database.Cursor;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.BaseAdapter;
import android.widget.ListAdapter;
import android.widget.Toast;
import static android.view.View.*;
public class MainActivity extends AppCompatActivity {
final String LOG_TAG = "myLogs";
final int DIALOG_ITEMS = 1,
DIALOG_ADAPTER = 2,
DIALOG_CURSOR = 3;
int cnt = 0;
String[] data;
DB db;
Cursor cursor;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
data = getResources().getStringArray(R.array.data);
db = new DB(this);
db.open();
cursor = db.getAllData();
startManagingCursor(cursor);
}
public void onClickButton(View view) {
chengeCount();
switch (view.getId()) {
case R.id.btnItems :
showDialog(DIALOG_ITEMS);
break;
case R.id.btnAdapter :
showDialog(DIALOG_ADAPTER);
break;
case R.id.btnCursor :
showDialog(DIALOG_CURSOR);
break;
default :
break;
}
}
//Изменение значения счётчика
private void chengeCount() {
cnt++;
//Обновление массива
data[3] = String.valueOf(cnt);
//Обновляем БД
db.chengeRec(4, data[3]);
cursor.requery();
}
protected Dialog onCreateDialog(int id) {
AlertDialog.Builder adb = new AlertDialog.Builder(this);
switch (id) {
//Диалог из Массива
case DIALOG_ITEMS :
adb.setTitle(R.string.items);
adb.setItems(data, myClicListener);
break;
//Диалог из Адаптера
case DIALOG_ADAPTER :
adb.setTitle(R.string.adapter);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(
this, android.R.layout.select_dialog_item, data
);
adb.setAdapter(adapter, myClicListener);
break;
//Диалог из Курсора
case DIALOG_CURSOR :
adb.setTitle(R.string.cursor);
adb.setCursor(cursor, myClicListener, DB.COLUMN_TXT);
break;
}
return adb.create();
}
// For Android below 3.2
protected void onPrepareDialog(int id, Dialog dialog) {
//Доступ к адаптеру списка диалога
AlertDialog aDialog = (AlertDialog) dialog;
ListAdapter lAdapter = aDialog.getListView().getAdapter();
switch (id) {
case DIALOG_ITEMS :
case DIALOG_ADAPTER :
//Проверка возможности преобразования
if (lAdapter instanceof BaseAdapter) {
//Преобразование и вызов мета-уведомления о новых данных
BaseAdapter bAdapter = (BaseAdapter) lAdapter;
bAdapter.notifyDataSetChanged();
}
break;
case DIALOG_CURSOR :
break;
default :
break;
}
}
@Override
protected void onDestroy() {
super.onDestroy();
db.close();
}
//Обработчик нажатия на пункт списка в диалоге
DialogInterface.OnClickListener myClicListener = new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
//Вывод в лог позиции нажатого элемента
String message = "Rowse number = " + which;
Toast.makeText(getBaseContext(), message, Toast.LENGTH_SHORT).show();
Log.d(LOG_TAG, message);
}
};
}
|
[
"btow@yandex.ru"
] |
btow@yandex.ru
|
ea68fc6e5a3b1f1b7218070c5a03b856dd448c96
|
d2b62ff1c6b197b0d4dc84fdf962d3916f8df868
|
/SceTris MyCourses/Iteration 4 (Shift focus on webapp)/svn r1387 2010-11-28/src/de/fu/scetris/web/tests/ServletTest.java
|
621826f6750067accb84ca730331d47d1a1b8fc9
|
[] |
no_license
|
scravy/SceTris
|
51247efb21c5885c74dc44fe8e344ca8db79c963
|
29497641a2dafb7836a1e6d0d64ad411e79cdfaa
|
refs/heads/master
| 2021-01-25T06:36:38.365033
| 2012-11-01T13:55:30
| 2012-11-01T13:55:30
| 1,563,487
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,094
|
java
|
/* ServletTest.java / 11:05:22 PM
* Part of SCORE myCourses
*
* Team Scetris: David Bialik, Julian Fleischer,
* Hagen Mahnke, Konrad Reiche, André Zoufahl
*/
package de.fu.scetris.web.tests;
import org.json.JSONTokener;
import org.junit.Test;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.servlet.Context;
import org.mortbay.jetty.servlet.ServletHolder;
import de.fu.scetris.web.Fourtris;
/**
*
* @author Julian Fleischer
* @since Iteration4
*/
public class ServletTest {
@Test
public void testJSON() throws Exception {
JSONTokener tokenizer = new JSONTokener("{a: 1, b: 2}");
Object obj = tokenizer.nextValue();
System.out.println(obj.getClass());
}
@Test
public void testServlet() throws Exception {
Server server = new Server(8081);
Context context = new Context(server, "/", Context.SESSIONS);
Fourtris fourtris = new Fourtris();
System.out.println(fourtris.loadProperties("scetris.properties", "scetris."));
context.addServlet(new ServletHolder(fourtris), "/scetris/*");
server.start();
Thread.sleep(15000);
server.stop();
}
}
|
[
"julian.fleischer@fu-berlin.de"
] |
julian.fleischer@fu-berlin.de
|
704fb6f1f3bd03706c67fe10760ee8dd09ee391e
|
9541f55fd2c9b0b645af315196ea6bb32d1d4192
|
/vertx-jooq-generate/src/test/java/generated/classic/jdbc/regular/vertx/tables/Somethingcomposite.java
|
99704dc4c38ab3ff87d8d47179c01229a643ee16
|
[
"MIT"
] |
permissive
|
dlkw/vertx-jooq
|
59477f312c4afe97522d9add9bd7a519fb4033f3
|
783ecb0a1b61be4d457dac22185c3e51a35b25dd
|
refs/heads/master
| 2021-04-27T04:16:26.447340
| 2018-02-23T09:24:06
| 2018-02-23T09:24:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| true
| 4,432
|
java
|
/*
* This file is generated by jOOQ.
*/
package generated.classic.jdbc.regular.vertx.tables;
import generated.classic.jdbc.regular.vertx.Indexes;
import generated.classic.jdbc.regular.vertx.Keys;
import generated.classic.jdbc.regular.vertx.Vertx;
import generated.classic.jdbc.regular.vertx.tables.records.SomethingcompositeRecord;
import io.github.jklingsporn.vertx.jooq.shared.JsonObjectConverter;
import io.vertx.core.json.JsonObject;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.10.4"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Somethingcomposite extends TableImpl<SomethingcompositeRecord> {
private static final long serialVersionUID = -700382794;
/**
* The reference instance of <code>VERTX.SOMETHINGCOMPOSITE</code>
*/
public static final Somethingcomposite SOMETHINGCOMPOSITE = new Somethingcomposite();
/**
* The class holding records for this type
*/
@Override
public Class<SomethingcompositeRecord> getRecordType() {
return SomethingcompositeRecord.class;
}
/**
* The column <code>VERTX.SOMETHINGCOMPOSITE.SOMEID</code>.
*/
public final TableField<SomethingcompositeRecord, Integer> SOMEID = createField("SOMEID", org.jooq.impl.SQLDataType.INTEGER, this, "");
/**
* The column <code>VERTX.SOMETHINGCOMPOSITE.SOMESECONDID</code>.
*/
public final TableField<SomethingcompositeRecord, Integer> SOMESECONDID = createField("SOMESECONDID", org.jooq.impl.SQLDataType.INTEGER, this, "");
/**
* The column <code>VERTX.SOMETHINGCOMPOSITE.SOMEJSONOBJECT</code>.
*/
public final TableField<SomethingcompositeRecord, JsonObject> SOMEJSONOBJECT = createField("SOMEJSONOBJECT", org.jooq.impl.SQLDataType.VARCHAR(45), this, "", new JsonObjectConverter());
/**
* Create a <code>VERTX.SOMETHINGCOMPOSITE</code> table reference
*/
public Somethingcomposite() {
this(DSL.name("SOMETHINGCOMPOSITE"), null);
}
/**
* Create an aliased <code>VERTX.SOMETHINGCOMPOSITE</code> table reference
*/
public Somethingcomposite(String alias) {
this(DSL.name(alias), SOMETHINGCOMPOSITE);
}
/**
* Create an aliased <code>VERTX.SOMETHINGCOMPOSITE</code> table reference
*/
public Somethingcomposite(Name alias) {
this(alias, SOMETHINGCOMPOSITE);
}
private Somethingcomposite(Name alias, Table<SomethingcompositeRecord> aliased) {
this(alias, aliased, null);
}
private Somethingcomposite(Name alias, Table<SomethingcompositeRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Vertx.VERTX;
}
/**
* {@inheritDoc}
*/
@Override
public List<Index> getIndexes() {
return Arrays.<Index>asList(Indexes.SYS_IDX_SYS_PK_10165_10166);
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<SomethingcompositeRecord> getPrimaryKey() {
return Keys.SYS_PK_10165;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<SomethingcompositeRecord>> getKeys() {
return Arrays.<UniqueKey<SomethingcompositeRecord>>asList(Keys.SYS_PK_10165);
}
/**
* {@inheritDoc}
*/
@Override
public Somethingcomposite as(String alias) {
return new Somethingcomposite(DSL.name(alias), this);
}
/**
* {@inheritDoc}
*/
@Override
public Somethingcomposite as(Name alias) {
return new Somethingcomposite(alias, this);
}
/**
* Rename this table
*/
@Override
public Somethingcomposite rename(String name) {
return new Somethingcomposite(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Somethingcomposite rename(Name name) {
return new Somethingcomposite(name, null);
}
}
|
[
"klingsporn@badmonkee.de"
] |
klingsporn@badmonkee.de
|
d6abdb80eb12d0aff5d74978a311391182dcc334
|
72a69bd3edc5fe15160e2a8d2a04b25078044ad6
|
/core/src/testFixtures/java/io/zero88/jooqx/ReactiveTestDefinition.java
|
92244b659e47312de0534f8c0a0d6bb4c3a5bd62
|
[
"Apache-2.0"
] |
permissive
|
Smile8488/jooqx
|
74176707e5e839a8f7855010076a35cd0f381f7f
|
e2a08c3e7328d85b521f043de62a02923d2b5458
|
refs/heads/main
| 2023-03-24T23:54:07.015214
| 2021-03-24T08:33:23
| 2021-03-24T08:33:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,871
|
java
|
package io.zero88.jooqx;
import org.testcontainers.containers.JdbcDatabaseContainer;
import io.vertx.core.Vertx;
import io.vertx.junit5.VertxTestContext;
import io.vertx.sqlclient.Pool;
import io.vertx.sqlclient.Row;
import io.vertx.sqlclient.RowSet;
import io.vertx.sqlclient.SqlClient;
import io.vertx.sqlclient.SqlConnection;
import io.vertx.sqlclient.Tuple;
import io.zero88.jooqx.DBProvider.DBContainerProvider;
import io.zero88.jooqx.DBProvider.DBMemoryProvider;
import io.zero88.jooqx.ReactiveSQLImpl.ReactiveSQLPQ;
import io.zero88.jooqx.SQLTestImpl.DBContainerSQLTest;
import io.zero88.jooqx.SQLTestImpl.DBMemorySQLTest;
import lombok.NonNull;
public interface ReactiveTestDefinition {
interface ReactiveJooqxProvider<S extends SqlClient> extends
JooqxProvider<S, Tuple, ReactiveSQLPreparedQuery,
RowSet<Row>, ReactiveSQLResultCollector, ReactiveJooqxBase<S>> {
@Override
default ReactiveJooqxBase<S> createExecutor(Vertx vertx, JooqDSLProvider dslProvider, S sqlClient) {
return ReactiveJooqxBase.<S>baseBuilder().vertx(vertx)
.dsl(dslProvider.dsl())
.sqlClient(sqlClient)
.preparedQuery(createPreparedQuery())
.errorConverter(errorConverter())
.typeMapperRegistry(typeMapperRegistry())
.build();
}
@Override
default ReactiveSQLPreparedQuery createPreparedQuery() {
return new ReactiveSQLPQ();
}
}
abstract class ReactiveDBContainerTest<S extends SqlClient, K extends JdbcDatabaseContainer<?>>
extends DBContainerSQLTest<S, Tuple, ReactiveSQLPreparedQuery, RowSet<Row>, ReactiveSQLResultCollector, ReactiveJooqxBase<S>, K>
implements ReactiveSQLTest<S, K, DBContainerProvider<K>> {
}
abstract class ReactiveDBMemoryTest<S extends SqlClient>
extends DBMemorySQLTest<S, Tuple, ReactiveSQLPreparedQuery, RowSet<Row>, ReactiveSQLResultCollector, ReactiveJooqxBase<S>>
implements ReactiveSQLTest<S, String, DBMemoryProvider> {
}
interface ReactiveSQLClientProvider<S extends SqlClient> extends SQLClientProvider<S> {
@Override
default void closeClient(VertxTestContext context) {
sqlClient().close(context.succeedingThenComplete());
}
}
interface ReactiveSQLTest<S extends SqlClient, K, D extends DBProvider<K>>
extends SQLTest<S, Tuple, ReactiveSQLPreparedQuery, RowSet<Row>, ReactiveSQLResultCollector, ReactiveJooqxBase<S>, K, D>,
ReactiveJooqxProvider<S>, ReactiveSQLClientProvider<S> {
@Override
default SQLClientProvider<S> clientProvider() { return this; }
default ReactiveJooqxProvider<S> jooqxProvider() { return this; }
}
interface ReactiveRxHelper {
default <S extends Pool> io.zero88.jooqx.reactivex.ReactiveJooqx rxPool(@NonNull ReactiveJooqxBase<S> jooqx) {
return io.zero88.jooqx.reactivex.ReactiveJooqx.newInstance(ReactiveJooqx.builder()
.vertx(jooqx.vertx())
.dsl(jooqx.dsl())
.sqlClient(jooqx.sqlClient())
.preparedQuery(jooqx.preparedQuery())
.resultCollector(jooqx.resultCollector())
.errorConverter(jooqx.errorConverter())
.typeMapperRegistry(jooqx.typeMapperRegistry())
.build());
}
default <S extends SqlConnection> io.zero88.jooqx.reactivex.ReactiveJooqxConn rxConn(@NonNull ReactiveJooqxBase<S> jooqx) {
return io.zero88.jooqx.reactivex.ReactiveJooqxConn.newInstance(ReactiveJooqxConn.builder()
.vertx(jooqx.vertx())
.dsl(jooqx.dsl())
.sqlClient(jooqx.sqlClient())
.preparedQuery(jooqx.preparedQuery())
.resultCollector(jooqx.resultCollector())
.errorConverter(jooqx.errorConverter())
.typeMapperRegistry(jooqx.typeMapperRegistry())
.build());
}
}
}
|
[
"sontt246@gmail.com"
] |
sontt246@gmail.com
|
f79e61f8c2ee071992989f33eee5d3d2a25938b5
|
d074f79febe5868a2e907ea7799125a528fbb92e
|
/src/com/killing3k/gamepoker/MetaItem.java
|
9a95362c997b26fb0d344b1aaa92b65e565a8962
|
[] |
no_license
|
Arcaneless/GamePoker
|
ba681bebb2fcec16d4e9bc2f6a9e2568d32dd81f
|
b0721f1520eaaa26971404d79227ded3da64bb71
|
refs/heads/master
| 2021-01-19T17:25:05.087696
| 2020-08-24T12:59:35
| 2020-08-24T12:59:35
| 82,454,020
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 769
|
java
|
package com.killing3k.gamepoker;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import java.util.List;
public class MetaItem extends ItemStack {
public MetaItem(Material type, int meta, String name, List<String> lore) {
super(type, 1, (byte) meta);
ItemMeta nmeta = getItemMeta();
nmeta.setDisplayName(name);
nmeta.setLore(lore);
setItemMeta(nmeta);
}
public MetaItem(Material type, int meta, String name) {
super(type, 1, (byte) meta);
ItemMeta nmeta = getItemMeta();
nmeta.setDisplayName(name);
setItemMeta(nmeta);
}
public MetaItem(Material type, int meta) {
super(type, 1, (byte) meta);
}
}
|
[
"unconfigured@null.spigotmc.org"
] |
unconfigured@null.spigotmc.org
|
3d69a62e9c054a76428ba5ee67f84cac844f8c92
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-ws/results/XWIKI-13303-1-4-Single_Objective_GGA-WeightedSum/com/xpn/xwiki/doc/XWikiDocument_ESTest.java
|
f43510523f5f72f1281cb985e68d7c4b0b5df6e2
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 550
|
java
|
/*
* This file was automatically generated by EvoSuite
* Mon Mar 30 23:08:41 UTC 2020
*/
package com.xpn.xwiki.doc;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class XWikiDocument_ESTest extends XWikiDocument_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
59bafe2b6723798e7d10cb224db98095b46afada
|
eacfc7cf6b777649e8e017bf2805f6099cb9385d
|
/APK Source/src/com/adobe/air/Automation.java
|
03f7fb6e75d2c41a4d336e082f5430bfde82204d
|
[] |
no_license
|
maartenpeels/WordonHD
|
8b171cfd085e1f23150162ea26ed6967945005e2
|
4d316eb33bc1286c4b8813c4afd478820040bf05
|
refs/heads/master
| 2021-03-27T16:51:40.569392
| 2017-06-12T13:32:51
| 2017-06-12T13:32:51
| 44,254,944
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,534
|
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 com.adobe.air;
import android.os.SystemClock;
import android.view.KeyEvent;
import android.view.MotionEvent;
import com.adobe.air.utils.AIRLogger;
// Referenced classes of package com.adobe.air:
// AIRWindowSurfaceView
public class Automation
{
public Automation()
{
}
public boolean dispatchKeyEvent(AIRWindowSurfaceView airwindowsurfaceview, int i, int j, int k, boolean flag, boolean flag1, boolean flag2)
{
if (android.os.Build.VERSION.SDK_INT < 9)
{
return false;
}
k = 0;
if (flag)
{
k = 0 | 2;
}
int l = k;
if (flag1)
{
l = k | 1;
}
KeyEvent keyevent;
if (flag2)
{
k = l | 4;
} else
{
k = l;
}
keyevent = new KeyEvent(SystemClock.uptimeMillis(), SystemClock.uptimeMillis(), i, j, 0, k);
if (i == 0)
{
try
{
airwindowsurfaceview.onKeyDown(j, keyevent);
}
// Misplaced declaration of an exception variable
catch (AIRWindowSurfaceView airwindowsurfaceview)
{
AIRLogger.d("Automation", (new StringBuilder()).append("[JP] dispatchKeyEvent caught ").append(airwindowsurfaceview).toString());
}
break MISSING_BLOCK_LABEL_136;
}
if (i != 1)
{
break MISSING_BLOCK_LABEL_136;
}
airwindowsurfaceview.onKeyUp(j, keyevent);
return true;
}
public boolean dispatchTouchEvent(AIRWindowSurfaceView airwindowsurfaceview, int i, float f, float f1, float f2, int j, float f3,
float f4, boolean flag, float af[], int k)
{
if (android.os.Build.VERSION.SDK_INT < 9)
{
return false;
}
try
{
airwindowsurfaceview.onTouchEvent(MotionEvent.obtain(SystemClock.uptimeMillis(), SystemClock.uptimeMillis(), i, f, f1, k));
}
// Misplaced declaration of an exception variable
catch (AIRWindowSurfaceView airwindowsurfaceview)
{
AIRLogger.d("Automation", (new StringBuilder()).append("[JP] dispatchTouchEvent caught ").append(airwindowsurfaceview).toString());
}
return true;
}
}
|
[
"maartenpeels1012@hotmail.com"
] |
maartenpeels1012@hotmail.com
|
7da075f7fd46512b2f79f9e71cb7cf5d995f2bff
|
95c49f466673952b465e19a5ee3ae6eff76bee00
|
/src/main/java/com/zhihu/android/api/model/ListAdAutoJacksonDeserializer.java
|
dfa9dfbf4dc7370aa8cf977433beb7ecadd190ea
|
[] |
no_license
|
Phantoms007/zhihuAPK
|
58889c399ae56b16a9160a5f48b807e02c87797e
|
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
|
refs/heads/main
| 2023-01-24T01:34:18.716323
| 2020-11-25T17:14:55
| 2020-11-25T17:14:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,677
|
java
|
package com.zhihu.android.api.model;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.p519b.JsonParser;
import com.fasterxml.jackson.p519b.JsonToken;
import com.secneo.apkwrapper.C6969H;
import com.zhihu.android.autojackson.BaseStdDeserializer;
import com.zhihu.android.autojackson.JacksonDeserializers;
import com.zhihu.android.p945ad.utils.StringDeserializer;
import java.io.IOException;
public class ListAdAutoJacksonDeserializer extends BaseStdDeserializer<ListAd> {
public ListAdAutoJacksonDeserializer() {
this(ListAd.class);
}
public ListAdAutoJacksonDeserializer(Class<?> cls) {
super(cls);
}
@Override // com.fasterxml.jackson.databind.JsonDeserializer
public ListAd deserialize(JsonParser jVar, DeserializationContext gVar) throws IOException {
if (jVar.mo29308a(JsonToken.VALUE_NULL)) {
return null;
}
if (jVar.mo29332p()) {
ListAd listAd = new ListAd();
jVar.mo29271a(listAd);
String h = jVar.mo29559h();
while (h != null) {
jVar.mo29323f();
boolean a = jVar.mo29308a(JsonToken.VALUE_NULL);
char c = 65535;
int hashCode = h.hashCode();
if (hashCode != -1422315637) {
if (hashCode != 116079) {
if (hashCode == 3575610 && h.equals(C6969H.m41409d("G7D9AC51F"))) {
c = 2;
}
} else if (h.equals(C6969H.m41409d("G7C91D9"))) {
c = 1;
}
} else if (h.equals(C6969H.m41409d("G6887DF09B03E"))) {
c = 0;
}
switch (c) {
case 0:
listAd.adJson = (String) JacksonDeserializers.m86696b(StringDeserializer.class, a, jVar, gVar);
break;
case 1:
listAd.url = JacksonDeserializers.m86697b(a, jVar, gVar);
break;
case 2:
listAd.type = JacksonDeserializers.m86697b(a, jVar, gVar);
break;
default:
JacksonDeserializers.m86694a(h, jVar, gVar);
break;
}
h = jVar.mo29559h();
}
JacksonDeserializers.m86693a(jVar, gVar, JsonToken.END_OBJECT, this._valueClass);
return listAd;
}
throw new IllegalArgumentException("container class not supported yet");
}
}
|
[
"seasonpplp@qq.com"
] |
seasonpplp@qq.com
|
fb6125542bee1e3c5f9ffeb063ae25d6c4f9c983
|
95e944448000c08dd3d6915abb468767c9f29d3c
|
/sources/com/google/android/gms/internal/ads/C16051tb.java
|
cdb2341c3a6a65ff019298021e4fd0ee1e6a9b7d
|
[] |
no_license
|
xrealm/tiktok-src
|
261b1faaf7b39d64bb7cb4106dc1a35963bd6868
|
90f305b5f981d39cfb313d75ab231326c9fca597
|
refs/heads/master
| 2022-11-12T06:43:07.401661
| 2020-07-04T20:21:12
| 2020-07-04T20:21:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 563
|
java
|
package com.google.android.gms.internal.ads;
import java.util.concurrent.CountDownLatch;
/* renamed from: com.google.android.gms.internal.ads.tb */
final /* synthetic */ class C16051tb implements Runnable {
/* renamed from: a */
private final C16050ta f45000a;
/* renamed from: b */
private final CountDownLatch f45001b;
C16051tb(C16050ta taVar, CountDownLatch countDownLatch) {
this.f45000a = taVar;
this.f45001b = countDownLatch;
}
public final void run() {
this.f45000a.mo41975a(this.f45001b);
}
}
|
[
"65450641+Xyzdesk@users.noreply.github.com"
] |
65450641+Xyzdesk@users.noreply.github.com
|
99dab4a08a799bab64fcd20a2e362f83c00f6a2f
|
534efe193f0fdcf0a386b5092508779555587c80
|
/1.JavaSyntax/src/com/javarush/task/task03/task0304/Solution.java
|
eb7760e98db0b71f146ad1afdbe6237059d80348
|
[] |
no_license
|
teoheel/JavaRushTasks
|
b1ddef5da78858aa1b462d19042208a5f1241688
|
447e9c3172324251aaaccd1e50134c2b4005b544
|
refs/heads/master
| 2023-07-16T04:59:32.379948
| 2021-09-06T14:54:15
| 2021-09-06T14:54:15
| 284,746,280
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 337
|
java
|
package com.javarush.task.task03.task0304;
/*
Задача на проценты
*/
public class Solution {
public static double addTenPercent(int i) {
//напишите тут ваш код
return 1.1 * i;
}
public static void main(String[] args) {
System.out.println(addTenPercent(9));
}
}
|
[
"69160439+teoheel@users.noreply.github.com"
] |
69160439+teoheel@users.noreply.github.com
|
c62ba27310c9604d2d680278abf37902508440d6
|
4989cdf349ea3b221e06390c57652bf32727d084
|
/src/main/java/org/n3r/eql/parser/IsEmptyParser.java
|
74f14fff0ecd6e5337a97e30b53b29186d81fd89
|
[] |
no_license
|
pipinior/eql
|
dcd987fa89f1b693588d0fc3e57515b2fe1f8549
|
283ad3dd750dcdf2e89e48f3df460f9960da6662
|
refs/heads/master
| 2021-01-18T03:00:00.981849
| 2014-04-15T06:55:33
| 2014-04-15T06:55:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,697
|
java
|
package org.n3r.eql.parser;
import java.util.List;
import java.util.regex.Matcher;
public class IsEmptyParser implements PartParser {
protected final String expr;
protected MultiPart multiPart = new MultiPart();
public IsEmptyParser(String expr) {
this.expr = expr;
}
@Override
public EqlPart createPart() {
return new IsEmptyPart(expr, multiPart);
}
@Override
public int parse(List<String> mergedLines, int index) {
int i = index;
EqlPart lastPart = null;
for (int ii = mergedLines.size(); i < ii; ++i) {
String line = mergedLines.get(i);
String clearLine;
if (line.startsWith("--")) {
clearLine = ParserUtils.substr(line, "--".length());
} else {
Matcher matcher = ParserUtils.inlineComment.matcher(line);
if (matcher.matches()) {
clearLine = matcher.group(1).trim();
} else {
lastPart = new LiteralPart(line);
multiPart.addPart(lastPart);
continue;
}
}
if ("end".equalsIgnoreCase(clearLine)) {
return i + 1;
}
PartParser partParser = PartParserFactory.tryParse(clearLine);
if (partParser != null) {
i = partParser.parse(mergedLines, i + 1) - 1;
multiPart.addPart(partParser.createPart());
lastPart = null;
} else if (lastPart instanceof LiteralPart) {
((LiteralPart) lastPart).appendComment(line);
}
}
return i;
}
}
|
[
"bingoo.huang@gmail.com"
] |
bingoo.huang@gmail.com
|
0cf0447fefa243b28e8f0dd82aa91f0fc45bb808
|
7b73756ba240202ea92f8f0c5c51c8343c0efa5f
|
/classes2/rbk.java
|
815ce553576b5b9a7b753fbe0a26aaa80a7a7af9
|
[] |
no_license
|
meeidol-luo/qooq
|
588a4ca6d8ad579b28dec66ec8084399fb0991ef
|
e723920ac555e99d5325b1d4024552383713c28d
|
refs/heads/master
| 2020-03-27T03:16:06.616300
| 2016-10-08T07:33:58
| 2016-10-08T07:33:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,119
|
java
|
import android.net.Uri;
import android.net.Uri.Builder;
import android.provider.ContactsContract.RawContacts;
import com.tencent.mobileqq.contactsync.ContactSyncManager;
import com.tencent.mobileqq.hotpatch.NotVerifyClass;
public class rbk
{
public static final int a = 0;
public static final String[] a = { "_id", "sourceid", "contact_id" };
public static final int b = 1;
public static final String[] b = { "sync1", "sync2", "sync3" };
public static final int c = 2;
private static final int d = 0;
private static final int e = 1;
private static final int f = 2;
static
{
boolean bool = NotVerifyClass.DO_VERIFY_CLASS;
}
public static final Uri a(String paramString)
{
return ContactsContract.RawContacts.CONTENT_URI.buildUpon().appendQueryParameter("account_name", paramString).appendQueryParameter("account_type", "com.tencent.mobileqq.account").appendQueryParameter("caller_is_syncadapter", ContactSyncManager.b()).build();
}
}
/* Location: E:\apk\QQ_91\classes2-dex2jar.jar!\rbk.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
b0c9895a90b70e9734510631687e6e73a5eee143
|
d78655cbf31bb6aed9f9ddc82a2f3d031b6c4243
|
/web/src/main/java/com.songsy.iframe/Application.java
|
4eb6c9512cdd844967e98cbeac3fe669f0c47666
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
homelucky/iframe
|
1c73fdb5fb50e40c04615b6ea4cf2b1e1170f28a
|
3f4140be08b91949c7a9be3dd6bf6b8651a3c610
|
refs/heads/master
| 2021-03-28T04:30:33.533304
| 2019-10-23T10:16:40
| 2019-10-23T10:16:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 581
|
java
|
package com.songsy.iframe;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/**
* @author songshuiyang
* @date 2018/10/28 9:31
*/
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@MapperScan("com.songsy.iframe.mapper")
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
|
[
"1459074711@qq.com"
] |
1459074711@qq.com
|
522d61be057fad5968ba0f93ccf301c2cf2bceda
|
005fcf8ac7bb289b0f97f842dcb4d07581eaedc0
|
/src/OfficeHours/practice_05_04_21/LameBD.java
|
46405618400f23d74af17cc018841cc223fb94d8
|
[] |
no_license
|
VladislavShekhovsev/java-programming
|
6b780641a4243071716d1fdebe9ce3689c56d4de
|
f2e3f87a8aee3e465e78deac741957ace794e164
|
refs/heads/master
| 2023-05-27T00:09:03.613616
| 2021-06-20T15:23:40
| 2021-06-20T15:23:40
| 365,674,623
| 0
| 0
| null | 2021-05-28T02:16:23
| 2021-05-09T05:27:57
|
Java
|
UTF-8
|
Java
| false
| false
| 1,963
|
java
|
package OfficeHours.practice_05_04_21;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class LameBD {
public static String lameDb(String db, String op, String id, String data) {
ArrayList<String> list = new ArrayList<>(Arrays.asList(db.split("#")));
System.out.println(list);
int idNum = Integer.parseInt(id);
switch (op){
case "add":
if(idNum > list.size()){
list.add(idNum-1, id + data);
} else {
int newId = 1;
String str = "";
for(int i=0; i < list.size(); i++){
if(i == idNum-1){
str += newId++ + data + "#";
}
str += newId++ + list.get(i).substring(1) + "#";
}
return str.substring(0, str.length()-1);
}
break;
case "edit":
list.set(idNum-1, id + data);
break;
case "delete":
list.remove(idNum-1);
break;
}
String listStr= list.toString();
return listStr.substring(1, listStr.length()-1).replace(", ", "#");
}
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
//System.out.println(lameDb(in.next(), in.next(), in.next(), in.next()));
// System.out.println(lameDb("1etsy#2wooden#3spoon","add","4","aaa"));
System.out.println(lameDb("1etsy#2wooden#3spoon","add","3","bbb"));
// System.out.println(lameDb("1test#2bla#3foo","edit","1","bbb"));
// System.out.println(lameDb("1tst#2bla#3foo","delete","1",""));
}
}
|
[
"vladislav13457@gmail.com"
] |
vladislav13457@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.