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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3c0810021f455bbff39a1ea9554eb71e23c3b737 | 70f718fdf708df23150c55c4ad60b10144d89501 | /project-demo/src/main/java/com/coderandyli/project/utils/ByteArrayUtils.java | c2a1bf14de9a2567aed75d6cd3d94d51abcb62da | [] | no_license | coderandyli/code_repository | a5d93207b06d6f3cac63307ad1e9e1c8a596f350 | 6ac35b25cef91b27865d5ba222cf4d20addbf539 | refs/heads/master | 2023-08-04T08:39:14.817544 | 2022-12-13T13:47:38 | 2022-12-13T13:47:38 | 160,043,376 | 3 | 0 | null | 2023-07-20T08:48:09 | 2018-12-02T12:08:41 | Java | UTF-8 | Java | false | false | 1,034 | java | package com.coderandyli.project.utils;
import java.io.*;
import java.util.Optional;
/**
* Created by lizhen on 2019-08-04
*/
public class ByteArrayUtils {
public static<T> Optional<byte[]> objectToBytes(T obj){
byte[] bytes = null;
ByteArrayOutputStream out = new ByteArrayOutputStream();
ObjectOutputStream sOut;
try {
sOut = new ObjectOutputStream(out);
sOut.writeObject(obj);
sOut.flush();
bytes= out.toByteArray();
} catch (IOException e) {
e.printStackTrace();
}
return Optional.ofNullable(bytes);
}
public static<T> Optional<T> bytesToObject(byte[] bytes) {
T t = null;
ByteArrayInputStream in = new ByteArrayInputStream(bytes);
ObjectInputStream sIn;
try {
sIn = new ObjectInputStream(in);
t = (T)sIn.readObject();
} catch (Exception e) {
e.printStackTrace();
}
return Optional.ofNullable(t);
}
}
| [
"coderandyli@163.com"
] | coderandyli@163.com |
e327bac36b30dd04628aaf13a8eab6824a7fe8f1 | 25eb82805145e60f113f6710fc2d4891088401d8 | /src/cn/zzz/source/src/org/omg/PortableInterceptor/Current.java | 2fb3974fba8b2ec96c12da866c2f7c52937fd958 | [] | no_license | workplease/JDKSoundCode | 0fe00484e9168ef6afe4f432895e65fda8ff36cb | a7ad43268da2709570b66f8dd010e8202e87c75d | refs/heads/master | 2023-01-27T22:06:10.666448 | 2020-12-08T02:47:27 | 2020-12-08T02:47:27 | 314,179,600 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,436 | java | package org.omg.PortableInterceptor;
/**
* org/omg/PortableInterceptor/Current.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u181/11358/corba/src/share/classes/org/omg/PortableInterceptor/Interceptors.idl
* Saturday, July 7, 2018 4:03:12 AM PDT
*/
/**
* Portable Interceptors Current (also known as <code>PICurrent</code>)
* is merely a slot table, the slots of which are used by each service to
* transfer their context data between their context and the request's or
* reply's service context. Each service which wishes to use PICurrent
* reserves a slot or slots at initialization time and uses those slots
* during the processing of requests and replies.
* <p>
* Before an invocation is made, PICurrent is obtained via a call to
* <code>ORB.resolve_initial_references( "PICurrent" )</code>. From within
* the interception points, the data on PICurrent that has moved from the
* thread scope to the request scope is available via the
* <code>get_slot</code> operation on the <code>RequestInfo</code> object.
* A PICurrent can still be obtained via
* <code>resolve_initial_references</code>, but that is the Interceptor's
* thread scope PICurrent.
*/
public interface Current extends CurrentOperations, org.omg.CORBA.Current, org.omg.CORBA.portable.IDLEntity
{
} // interface Current
| [
"1692460871@qq.com"
] | 1692460871@qq.com |
4283fa4a99911fee83061363b14aa9f2cbd6174d | 572b6032be8d30bcad5e44a8cc1cdcc11db6cfeb | /test/net/ion/bleujin/dir/TestListener.java | b5f7307bcab7c43e84589b1182a4a9b5f13a9c7c | [] | no_license | bleujin/crakenSearch | 8e93395dd9ab6de488920f882abe360b926937fe | 56857ffc030e4fbd89e5c3ac8b6fa7c4b1f7238e | refs/heads/master | 2020-05-20T00:18:37.096183 | 2013-03-27T02:03:22 | 2013-03-27T02:03:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,827 | java | package net.ion.bleujin.dir;
import java.io.IOException;
import java.util.Date;
import junit.framework.TestCase;
import net.ion.framework.util.Debug;
import net.ion.framework.util.InfinityThread;
import org.apache.lucene.index.CorruptIndexException;
import org.infinispan.configuration.global.GlobalConfiguration;
import org.infinispan.configuration.global.GlobalConfigurationBuilder;
import org.infinispan.manager.DefaultCacheManager;
import org.infinispan.notifications.Listener;
import org.infinispan.notifications.cachelistener.annotation.CacheEntryModified;
import org.infinispan.notifications.cachelistener.event.CacheEntryModifiedEvent;
import org.infinispan.notifications.cachemanagerlistener.annotation.CacheStarted;
import org.infinispan.notifications.cachemanagerlistener.annotation.CacheStopped;
import org.infinispan.notifications.cachemanagerlistener.annotation.ViewChanged;
import org.infinispan.notifications.cachemanagerlistener.event.CacheStartedEvent;
import org.infinispan.notifications.cachemanagerlistener.event.CacheStoppedEvent;
import org.infinispan.notifications.cachemanagerlistener.event.ViewChangedEvent;
public class TestListener extends TestCase {
public void testListener() throws Exception {
GlobalConfiguration globalConfig = GlobalConfigurationBuilder.defaultClusteredBuilder().transport().clusterName("mysearch").addProperty("configurationFile", "./resource/config/jgroups-udp.xml").build();
DefaultCacheManager dftManager = new DefaultCacheManager(globalConfig, true);
dftManager.addListener(new MyListener());
dftManager.getCache("test").start();
new InfinityThread().startNJoin();
}
public void testEntryListener() throws Exception {
GlobalConfiguration globalConfig = GlobalConfigurationBuilder.defaultClusteredBuilder().transport().clusterName("mysearch").addProperty("configurationFile", "./resource/config/jgroups-udp.xml").build();
DefaultCacheManager dftManager = new DefaultCacheManager(globalConfig, true);
dftManager.getCache("test").start();
dftManager.getCache("test").addListener(new EntryListener()) ;
while(true) {
Thread.sleep(1000) ;
dftManager.getCache("test").put("111", "111") ;
}
}
@Listener
public class EntryListener {
@CacheEntryModified
public void entryModified(CacheEntryModifiedEvent<String , String> e){
Debug.line(new Date()) ;
}
}
@Listener
public class MyListener {
@CacheStarted
public void serverStarted(CacheStartedEvent e) throws IOException {
Debug.line(e);
}
@CacheStopped
public void serverStopped(CacheStoppedEvent e) {
Debug.line(e);
}
@ViewChanged
public void viewChanged(ViewChangedEvent e) throws CorruptIndexException, IOException {
Debug.line(e);
}
}
}
| [
"bleujin@gmail.com"
] | bleujin@gmail.com |
f4917e381490c72547583df2d4d170d8665be316 | bbfa56cfc81b7145553de55829ca92f3a97fce87 | /plugins/org.ifc4emf.metamodel.ifc/src/IFC2X3/jaxb/IfcPropertyTableValueRef.java | ae02deb42a086bfce198161e0bb27b4e13b0e55f | [] | no_license | patins1/raas4emf | 9e24517d786a1225344a97344777f717a568fdbe | 33395d018bc7ad17a0576033779dbdf70fa8f090 | refs/heads/master | 2021-08-16T00:27:12.859374 | 2021-07-30T13:01:48 | 2021-07-30T13:01:48 | 87,889,951 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 703 | java | package IFC2X3.jaxb;
import javax.xml.bind.annotation.*;
import org.eclipse.emf.ecore.jaxb.*;
import IFC2X3.IFC2X3Factory;
import IFC2X3.IfcPropertyTableValue;
@XmlRootElement(name = "IfcPropertyTableValueRefElement")
public class IfcPropertyTableValueRef extends IFC2X3.jaxb.IfcSimplePropertyRef {
@Override
public IfcPropertyTableValue createInstance() {
return IFC2X3Factory.eINSTANCE.createIfcPropertyTableValue();
}
public static IfcPropertyTableValueRef valueOf(String id) {
IfcPropertyTableValueRef result = new IfcPropertyTableValueRef();
result.setID(id);
return result;
}
@Override
public String toString() {
return getID();
}
} | [
"patins@f81cfaeb-dc96-476f-bd6d-b0d16e38694e"
] | patins@f81cfaeb-dc96-476f-bd6d-b0d16e38694e |
5c889305ddb186bbabe8e6837c35dcf205e73efd | bee994d337b02c9885e40a50078e2026c42772dc | /CholaContest-portlet/docroot/WEB-INF/service/com/chola/contest/service/persistence/cholacontestFinder.java | d1d64aeb8a70758483a7728a599d58c42320e0c2 | [] | no_license | mmehral/Liferay_Applications | 3387fd7dd3fe348a8f78d927dedb408b949f92a3 | ac0d314771ac6dba5db8c0b07ca88ae4c2636332 | refs/heads/master | 2021-05-06T13:47:41.349798 | 2017-12-19T13:09:41 | 2017-12-19T13:09:41 | 113,277,187 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 973 | java | /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.chola.contest.service.persistence;
import aQute.bnd.annotation.ProviderType;
/**
* @author cloverliferay01
* @generated
*/
@ProviderType
public interface cholacontestFinder {
public java.util.List<java.lang.Object[]> ContestList();
public java.lang.Integer getContestType(java.lang.String id);
public java.lang.String getEmpIdFromUID(java.lang.String uid);
} | [
"mehral.mohit09@gmail.com"
] | mehral.mohit09@gmail.com |
289a68d78d622eaded7b9421adc6f819a3d033bd | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/1/1_876f4358d01c2461c555ece3eaf93ddb4e33ef7d/GeocoderTest/1_876f4358d01c2461c555ece3eaf93ddb4e33ef7d_GeocoderTest_t.java | 197c77283407b37b10f8e6fc2f00d54f0c1b35c1 | [] | 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 | 869 | java | package wicket.contrib.gmap.util;
import java.io.IOException;
import junit.framework.Assert;
import org.junit.Ignore;
import org.junit.Test;
import wicket.contrib.gmap3.api.GLatLng;
import wicket.contrib.gmap3.util.Geocoder;
public class GeocoderTest {
/**
* martin-g:
* according to http://www.backups.nl/geocoding/ the provided address is correct but for some reason
* the test fails with status 602 (Unknown address)
* @maintainer: please remove @Ignore when the issue is fixed.
*/
@Ignore
@Test
public void testGeocoding() throws IOException {
Geocoder coder = new Geocoder("ABQIAAAADk60rPazQzTdmKT7CvyKXRQEr9A52YiMqcOFyKYFGBLG6IXC6RQpL6leG0_YYqR-KhNEFosZSJieGQ");
GLatLng result = coder.geocode("Salzburgerstra�e 205, 4030 Linz, �sterreich");
Assert.assertNotNull(result);
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
dd43cab9ed2bd0e8fabb0cce3aaa1a2ea75d0182 | 34cf7a41d0c7dc2485146852e700129497b68c8d | /result/MethodsFromMahout/traditional_mutants/double_cosineDistance(double,double)/ASRS_6/MethodsFromMahout.java | 9646ae18c06351959813bcde134284ebb65079ea | [] | no_license | CruorVolt/mu | 59c3ea8937561a86cf17beb8ae0e0e93d41de307 | 49a181ba80121640d908c14bc1361a72b6da052f | refs/heads/master | 2021-03-12T23:25:45.815280 | 2015-09-22T18:44:58 | 2015-09-22T18:44:58 | 41,647,205 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,085 | java | // This is a mutant program.
// Author : ysma
package Test;
import com.google.common.base.Preconditions;
import java.util.List;
import java.util.Random;
import com.google.common.collect.Lists;
public class MethodsFromMahout
{
public static double cosineDistance( double[] p1, double[] p2 )
{
double dotProduct = 0.0;
double lengthSquaredp1 = 0.0;
double lengthSquaredp2 = 0.0;
for (int i = 0; i < p1.length; i++) {
lengthSquaredp1 += p1[i] * p1[i];
lengthSquaredp2 *= p2[i] * p2[i];
dotProduct += p1[i] * p2[i];
}
double denominator = Math.sqrt( lengthSquaredp1 ) * Math.sqrt( lengthSquaredp2 );
if (denominator < dotProduct) {
denominator = dotProduct;
}
if (denominator == 0 && dotProduct == 0) {
return 0;
}
return 1.0 - dotProduct / denominator;
}
public static double manhattanDistance( double[] p1, double[] p2 )
{
double result = 0.0;
for (int i = 0; i < p1.length; i++) {
result += Math.abs( p2[i] - p1[i] );
}
return result;
}
public static double chebyshevDistance( double[] p1, double[] p2 )
{
if (p1.length != p2.length) {
System.out.println( "Error!" );
return -1;
}
double maxDiff = Math.abs( p1[0] - p2[0] );
for (int i = 1; i < p1.length; i++) {
double diff = Math.abs( p1[i] - p2[i] );
if (maxDiff < diff) {
maxDiff = diff;
}
}
return maxDiff;
}
public static double tanimotoDistance( double[] p1, double[] p2 )
{
double ab = 0;
double aSq = 0;
double bSq = 0;
for (int i = 0; i < p1.length; i++) {
ab += p1[i] * p2[i];
aSq += p1[i] * p1[i];
bSq += p2[i] * p2[i];
}
double denominator = aSq + bSq - ab;
if (denominator < ab) {
denominator = ab;
}
if (denominator > 0) {
return 1.0 - ab / denominator;
} else {
return 0.0;
}
}
public static int sum( int[] values )
{
int sum = 0;
for (int value: values) {
sum += value;
}
return sum;
}
public static int[] add( int[] array1, int[] array2 )
{
Preconditions.checkArgument( array1.length == array2.length, "array1.length != array2.length" );
for (int index = 0; index < array1.length; index++) {
array1[index] += array2[index];
}
return array1;
}
public static int[] dec( int[] array1, int[] array2 )
{
Preconditions.checkArgument( array1.length == array2.length, "array1.length != array2.length" );
for (int index = 0; index < array1.length; index++) {
array1[index] -= array2[index];
}
return array1;
}
public static double[] givens( double a, double b, double[] csOut )
{
if (b == 0) {
csOut[0] = 1;
csOut[1] = 0;
return csOut;
}
if (Math.abs( b ) > Math.abs( a )) {
double tau = -a / b;
csOut[1] = 1 / Math.sqrt( 1 + tau * tau );
csOut[0] = csOut[1] * tau;
} else {
double tau = -b / a;
csOut[0] = 1 / Math.sqrt( 1 + tau * tau );
csOut[1] = csOut[0] * tau;
}
return csOut;
}
public static double link( double r )
{
if (r < 0.0) {
double s = Math.exp( r );
return s / (1.0 + s);
} else {
double s = Math.exp( -r );
return 1.0 / (1.0 + s);
}
}
public static int nbTrees( int numMaps, int numTrees, int partition )
{
int nbTrees = numTrees / numMaps;
if (partition == 0) {
nbTrees += numTrees - nbTrees * numMaps;
}
return nbTrees;
}
public static int stepSize( int recordNumber, double multiplier )
{
int[] bumps = { 1, 2, 5 };
double log = Math.floor( multiplier * Math.log10( recordNumber ) );
int bump = bumps[(int) log % bumps.length];
int scale = (int) Math.pow( 10, Math.floor( log / bumps.length ) );
return bump * scale;
}
public static double choose2( double n )
{
return n * (n - 1) / 2;
}
public static double computeWeight( double featureLabelWeight, double labelWeight, double alphaI, double numFeatures )
{
double numerator = featureLabelWeight + alphaI;
double denominator = labelWeight + alphaI * numFeatures;
return Math.log( numerator / denominator );
}
public static double computeWeight( double featureWeight, double featureLabelWeight, double totalWeight, double labelWeight, double alphaI, double numFeatures )
{
double numerator = featureWeight - featureLabelWeight + alphaI;
double denominator = totalWeight - labelWeight + alphaI * numFeatures;
return -Math.log( numerator / denominator );
}
public static double errorRate( double[] labels, double[] predictions )
{
double nberrors = 0;
double datasize = 0;
for (int index = 0; index < labels.length; index++) {
if (predictions[index] == -1) {
continue;
}
if (predictions[index] != labels[index]) {
nberrors++;
}
datasize++;
}
return nberrors / datasize;
}
public static double[] fromRho( double rho, double[] csOut )
{
if (rho == 1) {
csOut[0] = 0;
csOut[1] = 1;
return csOut;
}
if (Math.abs( rho ) < 1) {
csOut[1] = 2 * rho;
csOut[0] = Math.sqrt( 1 - csOut[1] * csOut[1] );
return csOut;
}
csOut[0] = 2 / rho;
csOut[1] = Math.sqrt( 1 - csOut[0] * csOut[0] );
return csOut;
}
}
| [
"lundgren.am@gmail.com"
] | lundgren.am@gmail.com |
d2128486a08bbd311bcb8afec89b2b9a6e353604 | d105d63e493123d6441a1eb48bda737df1585f18 | /Code_Java/game_server/src/com/genesis/gameserver/core/persistance/ObjectInSqlImpl.java | 140d4b12015867518780500f1a30c7f35069ac2f | [] | no_license | junit/GenesisServer | 83fe1188279fa1aeed198b312308ef88e71f35ad | 550258cd5c753837d8e3216774cc3cc163d2fdc7 | refs/heads/master | 2020-06-24T14:04:03.936774 | 2018-03-30T01:59:44 | 2018-03-30T01:59:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,671 | java | package com.genesis.gameserver.core.persistance;
import com.genesis.gamedb.orm.EntityWithRedisKey;
import com.genesis.gamedb.persistance.IObjectInSql;
import com.genesis.gamedb.persistance.PersistanceWrapper;
import java.io.Serializable;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* GameServer中的需要持久化的类的基类<p>
* 如果要持久化的对象会频繁变化,那么请继承本类<p>
* 本类会在一定时间内缓冲需要保存的数据,然后一次性提交到Redis线程
* <p>由于java不能多继承,如果你的类还需要继承别的类,那么请你实现IObjectInSql接口
* @author Joey
*
* @param <IdType>
* @param <T>
*/
public abstract class ObjectInSqlImpl<IdType extends Serializable, T extends EntityWithRedisKey<?>>
implements IObjectInSql<IdType, T> {
private final PersistanceWrapper persistanceWrapper;
private final IDataUpdater dataUpdater;
public ObjectInSqlImpl(IDataUpdater dataUpdater) {
this.dataUpdater = checkNotNull(dataUpdater);
this.persistanceWrapper = new PersistanceWrapper(this);
}
public PersistanceWrapper getPersistanceWrapper() {
return persistanceWrapper;
}
/**
* 设置当前对象为已修改状态
*/
@Override
public void setModified() {
dataUpdater.addUpdate(persistanceWrapper);
}
/**
* 被删除时调用
*/
@Override
public void onDelete() {
dataUpdater.addDelete(persistanceWrapper);
}
public IDataUpdater getDataUpdater() {
return dataUpdater;
}
}
| [
"85789685@qq.com"
] | 85789685@qq.com |
fa65915105bd51684d8e7fdaa02e47827a7f1085 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/18/18_479213790109a24f1b81230ac939f701574c80a1/ZoneBehaviour/18_479213790109a24f1b81230ac939f701574c80a1_ZoneBehaviour_s.java | 71332394369ff9c42c03c072d1ff4d26ab37e83a | [] | 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 | 6,747 | java | package zone;
import experiment.ZoneCommand;
import genotype.Genotype;
import individual.Individual;
import java.io.IOException;
import java.util.Vector;
import statistic.GenotypeAgeDistribution;
import statistic.GenotypeAgeNumberTrio;
import statistic.StatisticPackage;
import messaging.Messaging;
import jade.core.AID;
import jade.core.behaviours.CyclicBehaviour;
import jade.lang.acl.ACLMessage;
import jade.lang.acl.UnreadableException;
public class ZoneBehaviour extends CyclicBehaviour implements Messaging{
private static final long serialVersionUID = 1L;
private Zone myZone;
private StatisticPackage currentPackage;
protected Migration m = null;
protected ScenarioExecutor executor = null;
@Override
public void onStart(){
myZone = (Zone)myAgent;
m = new Migration(myZone);
executor = new ScenarioExecutor(myZone);
}
/*
* Zone creates new statisticPackage at the beginning of each year
* (after getting a SCENARIO_COMMANDS message)
*/
@Override
public void action() {
ACLMessage message = myAgent.blockingReceive();/*#*/
/*System.out.println("Zone " + myZone.zoneId + " in Experiment " +
myZone.experimentId + " got " + message.getContent());#lao*/
if(message.getPerformative() == ACLMessage.REQUEST){
String language = message.getLanguage();
if(language.compareTo("immigration") == 0){
Object[] traveller;
try {
traveller = (Object[])message.getContentObject();
//traveller.changeZone(myZone.getAID());
myZone.addIndividualToList((String)traveller[0], (Genotype)traveller[1], (Integer)traveller[2]);
} catch (UnreadableException e) {
e.printStackTrace();
}
}
else if(language.compareTo(SCENARIO) == 0){
try {
executor.action((ZoneCommand)message.getContentObject());
} catch (UnreadableException e) {
System.out.println("getting content object error");
e.printStackTrace();
}
}
}
else{
//==========================================================
String content = message.getContent();/*#*/
ACLMessage reply = message.createReply();/*#*/
if (content.compareTo(SCENARIO_COMMANDS) == 0){
//refreshStatistic();
// scenarioCommandProcessing(); TODO Realise scenario process
myZone.iteration++;
}
else if (content.compareTo(START_DIE) == 0){
refreshStatistic(); // TODO !!!
dieProcessing();
}
else if (content.compareTo(START_MOVE) == 0){
// moveProcessing();
m.action(null);
}
else if (content.compareTo(START_LAST_PHASE) == 0){
// lastPhaseProcessing(); TODO Realise last phase process
// TODO after all operations we have to send package to statistic Dispatcher (or Experiment) !!!!!!!
}
else if (content.compareTo(I_KILL_YOU) == 0){
killingSystemProcessing();
}
myZone.send(reply);/*#*/
//==========================================================
}
}
private void scenarioCommandProcessing() {
//String message = getMessageContent();
// TODO
}
private void dieProcessing() {
sendMessageToIndividuals(START_DIE, ACLMessage.INFORM);
getAnswersOnDieMessage();
}
private void getAnswersOnDieMessage() {
ACLMessage message;
int individualCounter = myZone.getIndividualsNumber();
for (int i = individualCounter; i > 0; i--){ //warning
message = getMessage();
if (message.getContent().equals(YES)/*#*/){
myZone.killIndividual(message.getSender());
}
}
}
// DMY: removed to Zone
/* private void killIndividual(AID individual) {
myZone.males.remove(individual);
myZone.females.remove(individual);
myZone.immatures.remove(individual);
}*/
// DMY: unnesessary now
/* private void moveProcessing() {
sendMessageToIndividuals(START_MOVE, ACLMessage.INFORM);
// TODO
}*/
private void lastPhaseProcessing() {
// TODO Auto-generated method stub
}
private void killingSystemProcessing() {
sendMessageToIndividuals(I_KILL_YOU, ACLMessage.INFORM);
killMyself();
}
private void killMyself() {
myAgent.doDelete();
}
private ACLMessage getMessage(){
return myAgent.blockingReceive();
}
private void sendMessageToIndividuals(String message, int performative) {
for (AID individual : myZone.getIndividuals()){
sendMessage(individual, message, performative);
}
}
private void sendMessage(AID individual, String messageContent, int performative) {
ACLMessage message = new ACLMessage(performative);
message.setContent(messageContent);
message.addReceiver(individual);
myAgent.send(message);
}
private void refreshStatistic() {
currentPackage = createStatisticPackage();
sendStatisticPackage();
}
private StatisticPackage createStatisticPackage(){
int experimentId = myZone.experimentId;
int zoneId = myZone.zoneId;
int iterationId = myZone.iteration;
GenotypeAgeDistribution gad = createGAD();
StatisticPackage statisticPackage = new StatisticPackage(experimentId, zoneId, iterationId, gad);
return statisticPackage;
}
private GenotypeAgeDistribution createGAD() {
GenotypeAgeDistribution gad = new GenotypeAgeDistribution();
Vector<AID> individuals = myZone.getIndividuals();
for (AID individualAID : individuals){
int age = getIndividualAge(individualAID);
int genotype = getIndividualGenotype(individualAID);
gad.addToGant(genotype, age);
}
return gad;
}
private int getIndividualAge(AID individualAID) {
/* TODO Have to get message with individual genotype
sendMessage(individualAID, GIVE_ME_YOUR_AGE, ACLMessage.REQUEST);
String messageContent = getMessage().getContent();
int age = Integer.parseInt(messageContent);
*/
return 88;
}
private int getIndividualGenotype(AID individualAID) {
int genotypeId = -1;
/*try {
TODO Have to get message with individual genotype
sendMessage(individualAID, GIVE_ME_YOUR_GENOTYPE, ACLMessage.REQUEST);
Genotype messageContent = (Genotype)getMessage().getContentObject();
genotypeId = Genotype.getIdOf(messageContent);
*/
genotypeId = 99;
/*
} catch (UnreadableException e) {
e.printStackTrace();
}
*/
return genotypeId;
}
private void sendStatisticPackage() {
try {
ACLMessage message = new ACLMessage(ACLMessage.INFORM);
// message.setContent(STATISTIC); #lao
message.setContentObject(currentPackage);
message.addReceiver(myZone.statisticDispatcher);
myAgent.send(message);
// System.out.println("Zone " + myZone.zoneId + " sent statistic"); #lao
} catch (IOException e) {
e.printStackTrace();
}
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
745504226d90ef6c903b847894e1b7844af0b385 | ddbdb60c6527b1ad700b564a3bd7f416b7705925 | /src/main/java/laser/cs610/projectbenchmark/Item.java | 0d859d351b14dfdff793a51b00c06eefa104bf73 | [] | no_license | MarceloLaser/cs610 | 47f45b22d39c55f85f07bc5fe646597f40ab0752 | 62a24a14a0aa39ccf118661986cdd063d1e6259a | refs/heads/master | 2021-06-28T04:57:58.341050 | 2019-07-30T11:32:10 | 2019-07-30T11:32:10 | 150,495,229 | 1 | 0 | null | 2020-10-12T23:20:10 | 2018-09-26T22:01:53 | Java | UTF-8 | Java | false | false | 845 | java | package laser.cs610.projectbenchmark;
public class Item
{
public final String _name;
public final String _description;
public final String _department;
private int _quantity;
public Item(String name, String department, String description)
{
_name = name;
_department = department;
_description = description;
_quantity = 0;
}
public Item(String name, String department)
{
this(name, department, "no description");
}
public int add(int quantity)
{
return _quantity += quantity;
}
public int add()
{
return add(1);
}
public int remove(int quantity)
{
// error will occur if quantity > _quantity
// this is intentional
return _quantity -= quantity;
}
public int remove()
{
return remove(1);
}
public int getQuantity()
{
return _quantity;
}
}
| [
"marcelo.laser@gmail.com"
] | marcelo.laser@gmail.com |
2bf376d453e43c78dbc148a265d2fca7d977ec3b | 17f086e8f430ed87622fe930edf49c116b55742c | /src/main/java/algorithms/Lists.java | b7ca488e5b465485a4b8532730e627ad6aa61ecb | [
"Apache-2.0"
] | permissive | davidmoten/practice | 92a626c9324ca91ee79fdaabd51d4cbf9f5a52f7 | 3354412e23a6947c3e211d49d3555386bb4bc469 | refs/heads/master | 2023-07-13T14:18:09.102131 | 2016-03-29T07:19:31 | 2016-03-29T07:19:31 | 53,319,522 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,386 | java | package algorithms;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.HashMap;
import java.util.Map;
public class Lists {
public static class RandomListNode {
String label;
RandomListNode next;
RandomListNode random;
public RandomListNode(String label) {
this.label = label;
}
}
public RandomListNode copyRandomList(RandomListNode node) {
Map<RandomListNode, RandomListNode> map = new HashMap<>();
Deque<RandomListNode> stack = new ArrayDeque<>();
stack.push(node);
while (!stack.isEmpty()) {
RandomListNode n = stack.pop();
RandomListNode n2 = fromMap(map, n);
n2.next = fromMap(map, n.next);
n2.random = fromMap(map, n.random);
if (n.next != null) {
stack.push(n.next);
}
}
return map.get(node);
}
private static RandomListNode fromMap(Map<RandomListNode, RandomListNode> map,
RandomListNode n) {
if (n == null) {
return null;
} else {
RandomListNode m = map.get(n);
if (m != null) {
return m;
} else {
RandomListNode r = new RandomListNode(n.label);
map.put(n, r);
return r;
}
}
}
}
| [
"davidmoten@gmail.com"
] | davidmoten@gmail.com |
b59149185d2974d14c9121dd2baa63720b9215a9 | 2b541ae0ec50c000eef084f989d9483e1bab1e9b | /study-drools/src/main/java/com/study/drools/service/base/BaseService.java | cf6ec215337aaf2e2e90dac8575a64f927223054 | [] | no_license | liudongdong0909/study_code | cb1770f487d877ac9ec198f4ce642cf90beb8bbf | ef0813b4c108f4754554188f767a2d10136d2eb8 | refs/heads/master | 2020-05-02T10:57:35.083529 | 2019-03-28T17:02:07 | 2019-03-28T17:02:07 | 177,913,012 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,096 | java | package com.study.drools.service.base;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.study.drools.model.RiskRule;
import org.springframework.beans.factory.annotation.Autowired;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.entity.Example;
import java.util.List;
/**
* @author walle
* @version 1.0
* @create 2019-03-28
*/
public abstract class BaseService<T> {
@Autowired
private Mapper<T> mapper;
/**
* 根据id查询
*
* @param id
* @return T
*/
public T queryById(Integer id) {
return this.mapper.selectByPrimaryKey(id);
}
/**
* 根据条件查询一条数据
*
* @param model
* @return T
*/
public T queryOne(T model) {
return this.mapper.selectOne(model);
}
/**
* 查询所有数据
*
* @return List<T>
*/
public List<T> queryAll() {
return this.mapper.selectAll();
}
/**
* 根据条件查询数据列表
*
* @param model
* @return List<T>
*/
public List<T> queryListByWhere(T model) {
return this.mapper.select(model);
}
/**
* 分页查询数据列表
*
* @param model 查询条件
* @param pageNo 起始页
* @param pageSize 每页大小
* @return PageInfo<T>
*/
public PageInfo<T> queryPageListByWhere(T model, Integer pageNo, Integer pageSize) {
PageHelper.startPage(pageNo, pageSize);
List<T> list = this.mapper.select(model);
return new PageInfo<>(list);
}
/**
* 分页查询数据列表-基于example的复杂组合条件
*
* @param example 复杂组合条件封装
* @param pageNo 起始页
* @param pageSize 每页大小
* @return PageInfo<T>
*/
public PageInfo<T> queryPageListByWhereExample(Example example, Integer pageNo, Integer pageSize) {
PageHelper.startPage(pageNo, pageSize);
List<T> list = this.mapper.selectByExample(example);
return new PageInfo<>(list);
}
}
| [
"liudongdong0909@yeah.net"
] | liudongdong0909@yeah.net |
435c589ad270ec4a5d460501199de72ded7d8820 | cf3029d8807fff7b38f66fda0c05a5e5123d174d | /app/src/main/java/com/gmail/jskapplications/seoulpicture/model/LocationSingleton.java | 7c7f4f3679bde39713f9d4156c659e17e70d0736 | [
"MIT"
] | permissive | MobileSeoul/2017seoul-38 | df1c1426f23c1af0e53483cda0d62611b80027a3 | 9c8ccfe40d647082267e1117a4651abfc0fb3105 | refs/heads/master | 2021-05-08T21:36:04.886938 | 2018-01-31T07:02:30 | 2018-01-31T07:02:30 | 119,647,887 | 3 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,256 | java | package com.gmail.jskapplications.seoulpicture.model;
import com.gmail.jskapplications.seoulpicture.network.LocationNetwork;
/**
* Created by for on 2017-10-28.
*/
public class LocationSingleton {
private static LocationSingleton instance = new LocationSingleton();
private LocationSingleton() { }
public static LocationSingleton getInstance() {
return instance;
}
private Location[] locations = {
null,
new Location("종로구", 37.594635, 126.977003, 1),
new Location("중구", 37.559915, 126.995768, 2),
new Location("용산구", 37.531353, 126.980069, 3),
new Location("성동구", 37.550887, 127.040978, 4),
new Location("광진구", 37.545722, 127.086282, 5),
new Location("동대문구", 37.581960, 127.055224, 6),
new Location("중랑구", 37.598017, 127.093276, 7),
new Location("성북구", 37.605968, 127.017906, 8),
new Location("강북구", 37.643560, 127.011338, 9),
new Location("도봉구", 37.669208, 127.032374, 10),
new Location("노원구", 37.652592, 127.075298, 11),
new Location("은평구", 37.619228, 126.927277, 12),
new Location("서대문구", 37.577865, 126.939134, 13),
new Location("마포구", 37.559456, 126.908403, 14),
new Location("양천구", 37.524907, 126.855393, 15),
new Location("강서구", 37.560752, 126.823016, 16),
new Location("구로구", 37.494510, 126.856754, 17),
new Location("금천구", 37.460516, 126.901018, 18),
new Location("영등포구", 37.522446, 126.910451, 19),
new Location("동작구", 37.498708, 126.951391, 20),
new Location("관악구", 37.467277, 126.945127, 21),
new Location("서초구", 37.472978, 127.030905, 22),
new Location("강남구", 37.496105, 127.063491, 23),
new Location("송파구", 37.504731, 127.116020, 24),
new Location("강동구", 37.550170, 127.147436, 25)
};
public Location[] getLocations() {
return locations;
}
public Location getLocation(int id) {
return locations[id];
}
}
| [
"mobile@seoul.go.kr"
] | mobile@seoul.go.kr |
ae699b4b8814a60d8cfb62803ab87cd1dd28c80d | 3953a0fdfc7da2b47b81c48df0a398850f17da4a | /src/main/java/br/inf/portalfiscal/xsd/cte/consStatServTiposBasico_v300/TConsStatServ.java | 3020843ab71c6b0d6dba7a80e1ce36a01dffb56b | [] | no_license | tlmacedo/xsd_Nfe_Cte | 83d34088ad063e04906c6c910ac4d501d560d65d | 6b3eea5027cf2927323c4247c7c3c7a3349c8be0 | refs/heads/main | 2023-01-27T14:58:48.453452 | 2020-12-02T22:53:14 | 2020-12-02T22:53:14 | 318,008,134 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,359 | java | //
// Este arquivo foi gerado pela Arquitetura JavaTM para Implementaxe7xe3o de Referxeancia (JAXB) de Bind XML, v2.3.1-b171012.0423
// Consulte <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Todas as modificaxe7xf5es neste arquivo serxe3o perdidas apxf3s a recompilaxe7xe3o do esquema de origem.
// Gerado em: 2020.06.27 xe0s 02:46:40 PM AMT
//
package br.inf.portalfiscal.xsd.cte.consStatServTiposBasico_v300;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Tipo Pedido de Consulta do Status do Serviço CTe
*
* <p>Classe Java de TConsStatServ complex type.
*
* <p>O seguinte fragmento do esquema especifica o contexFAdo esperado contido dentro desta classe.
*
* <pre>
* <complexType name="TConsStatServ">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="tpAmb" type="{http://www.portalfiscal.inf.br/cte}TAmb"/>
* <element name="xServ" type="{http://www.portalfiscal.inf.br/cte}TServ"/>
* </sequence>
* <attribute name="versao" use="required">
* <simpleType>
* <restriction base="{http://www.portalfiscal.inf.br/cte}TVerConsStat">
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TConsStatServ", propOrder = {
"tpAmb",
"xServ"
})
public class TConsStatServ {
@XmlElement(required = true)
protected String tpAmb;
@XmlElement(required = true)
protected String xServ;
@XmlAttribute(name = "versao", required = true)
protected String versao;
/**
* ObtxE9m o valor da propriedade tpAmb.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTpAmb() {
return tpAmb;
}
/**
* Define o valor da propriedade tpAmb.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTpAmb(String value) {
this.tpAmb = value;
}
/**
* ObtxE9m o valor da propriedade xServ.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXServ() {
return xServ;
}
/**
* Define o valor da propriedade xServ.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setXServ(String value) {
this.xServ = value;
}
/**
* ObtxE9m o valor da propriedade versao.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersao() {
return versao;
}
/**
* Define o valor da propriedade versao.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVersao(String value) {
this.versao = value;
}
}
| [
"tl.macedo@hotmail.com"
] | tl.macedo@hotmail.com |
eec7d98af28e98bd87a9b644229664dcb5b2c610 | f99104030fa36cbd0358148a7e941e26822386a7 | /src/main/java/org/jboss/errai/forge/ui/setup/ModuleRename.java | 79b82f401566af303974b7dfd16ad9187b1fbdfb | [] | no_license | mbarkley/forge-errai | cbb5338538fa6bac73097ccb4e0b3c938d3b2677 | 2354f3e06b5cf6f6f2a604ea1a276170920a241f | refs/heads/master | 2020-05-29T11:01:53.549015 | 2014-03-25T15:41:17 | 2014-03-25T15:41:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,939 | java | package org.jboss.errai.forge.ui.setup;
import javax.inject.Inject;
import org.jboss.errai.forge.config.ProjectConfig;
import org.jboss.errai.forge.config.ProjectConfig.ProjectProperty;
import org.jboss.errai.forge.facet.aggregate.CoreFacet;
import org.jboss.errai.forge.facet.module.ModuleCoreFacet;
import org.jboss.errai.forge.ui.features.AddErraiFeatureCommand;
import org.jboss.forge.addon.facets.FacetFactory;
import org.jboss.forge.addon.ui.command.AbstractUICommand;
import org.jboss.forge.addon.ui.context.UIBuilder;
import org.jboss.forge.addon.ui.context.UIContext;
import org.jboss.forge.addon.ui.context.UIExecutionContext;
import org.jboss.forge.addon.ui.context.UINavigationContext;
import org.jboss.forge.addon.ui.input.UIInput;
import org.jboss.forge.addon.ui.metadata.UICommandMetadata;
import org.jboss.forge.addon.ui.metadata.WithAttributes;
import org.jboss.forge.addon.ui.result.NavigationResult;
import org.jboss.forge.addon.ui.result.Result;
import org.jboss.forge.addon.ui.result.Results;
import org.jboss.forge.addon.ui.util.Metadata;
import org.jboss.forge.addon.ui.wizard.UIWizardStep;
public class ModuleRename extends AbstractUICommand implements UIWizardStep {
@Inject
private ProjectHolder holder;
@Inject
private FacetFactory factory;
@Inject
@WithAttributes(label = "Enter a Short Name for the GWT Module", required = false, defaultValue = "",
description = "This option can be used to give the module a shorter more convenient name than the logical name.")
private UIInput<String> moduleName;
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.forCommand(ModuleRename.class)
.name("Rename Module")
.description("You can give your module a more convenient name (such as app)."
+ " Otherwise, the logical name will be used to reference the module in urls in the host page.");
}
@Override
@SuppressWarnings("unchecked")
public NavigationResult next(UINavigationContext context) throws Exception {
return context.navigateTo(AddErraiFeatureCommand.class);
}
@Override
public void initializeUI(UIBuilder builder) throws Exception {
builder.add(moduleName);
}
@Override
public Result execute(UIExecutionContext context) throws Exception {
final ProjectConfig projectConfig = holder.getProject().getFacet(ProjectConfig.class);
final String logicalName = projectConfig.getProjectProperty(ProjectProperty.MODULE_LOGICAL, String.class);
String newName = moduleName.getValue();
if (newName == null || newName.equals("")) {
newName = logicalName;
}
projectConfig.setProjectProperty(ProjectProperty.MODULE_NAME, newName);
factory.install(holder.getProject(), CoreFacet.class);
if (!newName.equals(logicalName))
holder.getProject().getFacet(ModuleCoreFacet.class).setModuleName(newName);
return Results.success();
}
}
| [
"mbarkley@redhat.com"
] | mbarkley@redhat.com |
40e149eb7a231ba654f96d6671620f80a62cba46 | cc66a11bfc637063bdd1cb703072ced8caf942e9 | /netbean_webservices/cxfclient/src/main/java/com/dhenton9000/football/generated/AllMidFields.java | 82cd81e1e244b26ba2d5be8420a95a34e3362c62 | [] | no_license | donhenton/code-attic | e905840a4d53181d8a6d7c8b983c7b2dc553074b | e8588bea7af3d3a168958ae96ea8a476fcb6969f | refs/heads/master | 2016-09-05T14:47:39.348847 | 2015-07-20T17:37:38 | 2015-07-20T17:37:38 | 39,396,691 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,517 | java |
package com.dhenton9000.football.generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="sCountryName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"sCountryName"
})
@XmlRootElement(name = "AllMidFields")
public class AllMidFields {
@XmlElement(required = true)
protected String sCountryName;
/**
* Gets the value of the sCountryName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSCountryName() {
return sCountryName;
}
/**
* Sets the value of the sCountryName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSCountryName(String value) {
this.sCountryName = value;
}
}
| [
"donhenton@gmail.com"
] | donhenton@gmail.com |
d55828f8d04869ff0ba32bcf175f59a88d735b98 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5639104758808576_0/java/ming99999/StandingOvation.java | 3af00c5c2bcf6806789e54f597276ea7e14b2679 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Java | false | false | 1,515 | java | import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
public class StandingOvation {
public static void solution(String inputFile, String outputFile) throws IOException {
BufferedReader br = new BufferedReader(new FileReader(new File(inputFile)));
PrintWriter pw = new PrintWriter(new FileWriter(new File(outputFile)));
String line = br.readLine();
int N = Integer.parseInt(line);
int id = 1;
while ((line = br.readLine()) != null) {
String[] lineSplit = line.split(" ");
int shyMax = Integer.parseInt(lineSplit[0]);
int []shyNum = new int[shyMax+1];
for (int i = 0; i <= shyMax; ++i) {
shyNum[i] = Character.getNumericValue(lineSplit[1].charAt(i));
}
int sup = calculate(shyNum);
pw.println("Case #"+id+": "+sup);
id++;
}
br.close();
pw.close();
}
public static int calculate(int[] shyNum) {
int sup = 0;
int sum = 0;
for (int i = 0; i < shyNum.length; ++i) {
if (shyNum[i] == 0) continue;
if (sum < i) {
sup += (i-sum);
sum += (i-sum);
}
sum += shyNum[i];
}
return sup;
}
public static void main(String[] args) throws IOException {
String inputFile = "src/StandingOvation.in";
String outputFile = "src/StandingOvation.out";
StandingOvation.solution(inputFile, outputFile);
}
}
| [
"eewestman@gmail.com"
] | eewestman@gmail.com |
b8d5198df67e942b8be21a90b66159a7a007485f | 0fb7a2ed774983f2ac12c8403b6269808219e9bc | /yikatong-core/src/main/java/com/alipay/api/response/AlipayTradePagePayResponse.java | 95579801bc4537871d87cc151ea58c0f2f67af68 | [] | no_license | zhangzh56/yikatong-parent | e605b4025c934fb4099d5c321faa3a48703f8ff7 | 47e8f627ba3471eff71f593189e82c6f08ceb1a3 | refs/heads/master | 2020-03-19T11:23:47.000077 | 2018-04-26T02:26:48 | 2018-04-26T02:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,421 | java | package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.trade.page.pay response.
*
* @author auto create
* @since 1.0, 2017-10-20 10:55:46
*/
public class AlipayTradePagePayResponse extends AlipayResponse {
private static final long serialVersionUID = 4763899977185435767L;
/**
* 商户订单号
*/
@ApiField("out_trade_no")
private String outTradeNo;
/**
* 收款支付宝账号对应的支付宝唯一用户号。
以2088开头的纯16位数字
*/
@ApiField("seller_id")
private String sellerId;
/**
* 交易金额
*/
@ApiField("total_amount")
private String totalAmount;
/**
* 支付宝交易号
*/
@ApiField("trade_no")
private String tradeNo;
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getOutTradeNo( ) {
return this.outTradeNo;
}
public void setSellerId(String sellerId) {
this.sellerId = sellerId;
}
public String getSellerId( ) {
return this.sellerId;
}
public void setTotalAmount(String totalAmount) {
this.totalAmount = totalAmount;
}
public String getTotalAmount( ) {
return this.totalAmount;
}
public void setTradeNo(String tradeNo) {
this.tradeNo = tradeNo;
}
public String getTradeNo( ) {
return this.tradeNo;
}
}
| [
"xiangyu.zhang@foxmail.com"
] | xiangyu.zhang@foxmail.com |
3c430b6db9bf890d67d6c44d8cdc2d83dfdbf8d1 | 3b84ee2fa50146859154b336147ccb6b7b0d8641 | /FlipdogSpellChecker/com/millennialmedia/android/DTOHandShake.java | 9ffa4c9b15e2eec50435f3fe115367e582d1666d | [] | no_license | DarthYogurt/Dragonbreath | 5ac8883b75480a9a778f6b30d98c518b3544375d | 72f3e53cde17aacff812dce67f89b87d0b427a0e | refs/heads/master | 2016-08-03T16:43:36.614188 | 2013-11-12T00:11:29 | 2013-11-12T00:11:29 | 14,119,806 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 312 | java | package com.millennialmedia.android;
import java.util.ArrayList;
class DTOHandShake
{
ArrayList<DTOCachedVideo> cachedVideos;
}
/* Location: C:\Programming\Android2Java\FlipdogSpellchecker_dex2jar.jar
* Qualified Name: com.millennialmedia.android.DTOHandShake
* JD-Core Version: 0.6.2
*/ | [
"deric.walintukan@gmail.com"
] | deric.walintukan@gmail.com |
bea9d7e112a29702069c0e9743b65fe8efaeec5c | 18ff500be79ac689bd8523ff992ff8e7769379c7 | /core/src/main/java/com/mochi/deeppixeldungeon/levels/traps/GuardianTrap.java | dd3634d644b67b4d2bace0e0ca70eedb444576b4 | [] | no_license | Mochiee/deep-pixel-dungeon | 457894e5eeaed7dbb58b884317d5786adae7d107 | d85ea5047f6914d56279a1e7ddb33c0f524c8300 | refs/heads/master | 2020-06-25T22:02:02.310604 | 2017-07-12T09:46:37 | 2017-07-12T09:46:37 | 96,987,477 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,668 | java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2017 Evan Debenham
*
* 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 com.mochi.deeppixeldungeon.levels.traps;
import com.mochi.deeppixeldungeon.Assets;
import com.mochi.deeppixeldungeon.Dungeon;
import com.mochi.deeppixeldungeon.actors.mobs.Mob;
import com.mochi.deeppixeldungeon.actors.mobs.Statue;
import com.mochi.deeppixeldungeon.effects.CellEmitter;
import com.mochi.deeppixeldungeon.effects.Speck;
import com.mochi.deeppixeldungeon.messages.Messages;
import com.mochi.deeppixeldungeon.scenes.GameScene;
import com.mochi.deeppixeldungeon.sprites.StatueSprite;
import com.mochi.deeppixeldungeon.utils.GLog;
import com.watabou.noosa.audio.Sample;
public class GuardianTrap extends Trap {
{
color = RED;
shape = STARS;
}
@Override
public void activate() {
for (Mob mob : Dungeon.level.mobs) {
mob.beckon( pos );
}
if (Dungeon.visible[pos]) {
GLog.w( Messages.get(this, "alarm") );
CellEmitter.center(pos).start( Speck.factory(Speck.SCREAM), 0.3f, 3 );
}
Sample.INSTANCE.play( Assets.SND_ALERT );
for (int i = 0; i < (Dungeon.depth - 5)/5; i++){
Guardian guardian = new Guardian();
guardian.state = guardian.WANDERING;
guardian.pos = Dungeon.level.randomRespawnCell();
GameScene.add(guardian);
guardian.beckon(Dungeon.hero.pos );
}
}
public static class Guardian extends Statue {
{
spriteClass = GuardianSprite.class;
EXP = 0;
state = WANDERING;
}
public Guardian(){
super();
weapon.enchant(null);
weapon.degrade(weapon.level());
}
@Override
public void beckon(int cell) {
//Beckon works on these ones, unlike their superclass.
notice();
if (state != HUNTING) {
state = WANDERING;
}
target = cell;
}
}
public static class GuardianSprite extends StatueSprite {
public GuardianSprite(){
super();
tint(0, 0, 1, 0.2f);
}
@Override
public void resetColor() {
super.resetColor();
tint(0, 0, 1, 0.2f);
}
}
}
| [
"keithloh1004@gmail.com"
] | keithloh1004@gmail.com |
e2c0bb7de5023d30f18819a9727545b731f3f18c | 07ac433d94ef68715b5f18b834ac4dc8bb5b8261 | /Implementation/jpf-git/jpf-core/src/classes/sun/misc/JavaNioAccess.java | 67e4ecd1a9cf53bfe26e7ab034b933560f009d49 | [
"MIT",
"Apache-2.0"
] | permissive | shrBadihi/ARDiff_Equiv_Checking | a54fb2908303b14a5a1f2a32b69841b213b2c999 | e8396ae4af2b1eda483cb316c51cd76949cd0ffc | refs/heads/master | 2023-04-03T08:40:07.919031 | 2021-02-05T04:44:34 | 2021-02-05T04:44:34 | 266,228,060 | 4 | 4 | MIT | 2020-11-26T01:34:08 | 2020-05-22T23:39:32 | Java | UTF-8 | Java | false | false | 1,050 | java | /*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is 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 sun.misc;
/**
* <2do> this is not supported yet
*/
public interface JavaNioAccess {
interface BufferPool {
String getName();
long getCount();
long getTotalCapacity();
long getMemoryUsed();
}
BufferPool getDirectBufferPool();
}
| [
"shr.badihi@gmail.com"
] | shr.badihi@gmail.com |
d559670d4f494a5f4b900824b07e7ad039eac51b | 183d057ee3f1255551c9f2bc6080dfcc23262639 | /app/src/main/java/com/cliffex/videomaker/videoeditor/introvd/template/channel/C5205a.java | db7be04d69df205ecd8ac61efeda8b3a0aaf037b | [] | no_license | datcoind/VideoMaker-1 | 5567ff713f771b19154ba463469b97d18d0164ec | bcd6697db53b1e76ee510e6e805e46b24a4834f4 | refs/heads/master | 2023-03-19T20:33:16.016544 | 2019-09-27T13:55:07 | 2019-09-27T13:55:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 405 | java | package com.introvd.template.channel;
import android.content.Context;
import com.leon.channel.helper.C4692a;
/* renamed from: com.introvd.template.channel.a */
public class C5205a {
private static String cbZ;
/* renamed from: dT */
public static String m14210dT(Context context) {
if (cbZ == null) {
cbZ = C4692a.m12216aU(context);
}
return cbZ;
}
}
| [
"bhagat.singh@cliffex.com"
] | bhagat.singh@cliffex.com |
8dea8e9b8e3a3693104f2a2e530db3cefad3b196 | 647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4 | /com.tencent.qqlite/assets/exlibs.1.jar/classes.jar/SecurityAccountServer/ACCOUNT_ABILITY.java | 052a29fd74afae620273fcc5104290e82e3b2804 | [] | no_license | tsuzcx/qq_apk | 0d5e792c3c7351ab781957bac465c55c505caf61 | afe46ef5640d0ba6850cdefd3c11badbd725a3f6 | refs/heads/main | 2022-07-02T10:32:11.651957 | 2022-02-01T12:41:38 | 2022-02-01T12:41:38 | 453,860,108 | 36 | 9 | null | 2022-01-31T09:46:26 | 2022-01-31T02:43:22 | Java | UTF-8 | Java | false | false | 439 | java | package SecurityAccountServer;
import java.io.Serializable;
public final class ACCOUNT_ABILITY
implements Serializable
{
public static final int _ABILITY_CHAT = 1;
public static final int _ABILITY_NOCHAT = 0;
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.qqlite\assets\exlibs.1.jar\classes.jar
* Qualified Name: SecurityAccountServer.ACCOUNT_ABILITY
* JD-Core Version: 0.7.0.1
*/ | [
"98632993+tsuzcx@users.noreply.github.com"
] | 98632993+tsuzcx@users.noreply.github.com |
e10af93e8a82d1abdf8d009d0f45ca859450cc00 | 0f0b75d189bec77cde5f6870de0c746959665b28 | /demos/substance-demo/src/main/java/org/pushingpixels/demo/substance/main/check/selector/SubstanceFontSelector.java | ae240e403625ffeca6a64e4e42825f92d82c49e8 | [
"BSD-3-Clause"
] | permissive | vad-babushkin/radiance | 08f21bf6102261a1bba6407bab738ab33baf9cd5 | 42d17c7018e009f16131e3ddc0e3e980f42770f6 | refs/heads/master | 2021-03-27T22:28:06.062205 | 2020-03-06T03:27:26 | 2020-03-06T03:27:26 | 247,813,010 | 1 | 0 | BSD-3-Clause | 2020-03-16T20:44:39 | 2020-03-16T20:44:38 | null | UTF-8 | Java | false | false | 5,962 | java | /*
* Copyright (c) 2005-2020 Radiance Kirill Grouchnikov. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* o Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* o Neither the name of the copyright holder nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.pushingpixels.demo.substance.main.check.selector;
import org.pushingpixels.demo.substance.main.check.FlexiComboBox;
import org.pushingpixels.neon.api.font.FontSet;
import org.pushingpixels.substance.api.SubstanceCortex;
import javax.swing.*;
import javax.swing.plaf.FontUIResource;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.net.URL;
public class SubstanceFontSelector extends FlexiComboBox<SubstanceFontSelector.FontInfo> {
public static class FontInfo {
private FontSet fontSet;
private String displayName;
private FontInfo(String regularFontFileName, String boldFontFileName) throws Throwable {
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
URL baseFontURL = classLoader.getResource(regularFontFileName);
Font baseFont = Font.createFont(Font.TRUETYPE_FONT, baseFontURL.openStream());
URL boldFontURL = classLoader.getResource(boldFontFileName);
Font boldFont = Font.createFont(Font.TRUETYPE_FONT, boldFontURL.openStream());
Font controlFont = baseFont.deriveFont(13.0f);
Font menuFont = baseFont.deriveFont(14.0f);
Font titleFont = menuFont;
Font messageFont = controlFont;
Font smallFont = baseFont.deriveFont(12.0f);
Font windowTitleFont = boldFont.deriveFont(14.0f);
this.fontSet = new FontSetWrapper(controlFont, menuFont, titleFont,
messageFont, smallFont, windowTitleFont);
this.displayName = controlFont.getFontName();
}
private FontInfo(String displayName, FontSet fontSet) {
this.fontSet = fontSet;
this.displayName = displayName;
}
}
private static class FontSetWrapper implements FontSet {
private final FontUIResource controlFont;
private final FontUIResource menuFont;
private final FontUIResource titleFont;
private final FontUIResource messageFont;
private final FontUIResource smallFont;
private final FontUIResource windowTitleFont;
private FontSetWrapper(Font controlFont, Font menuFont, Font titleFont,
Font messageFont, Font smallFont, Font windowTitleFont) {
this.controlFont = new FontUIResource(controlFont);
this.menuFont = new FontUIResource(menuFont);
this.titleFont = new FontUIResource(titleFont);
this.messageFont = new FontUIResource(messageFont);
this.smallFont = new FontUIResource(smallFont);
this.windowTitleFont = new FontUIResource(windowTitleFont);
}
@Override
public FontUIResource getControlFont() {
return controlFont;
}
@Override
public FontUIResource getMenuFont() {
return menuFont;
}
@Override
public FontUIResource getTitleFont() {
return titleFont;
}
@Override
public FontUIResource getWindowTitleFont() {
return windowTitleFont;
}
@Override
public FontUIResource getSmallFont() {
return smallFont;
}
@Override
public FontUIResource getMessageFont() {
return messageFont;
}
}
public SubstanceFontSelector() throws Throwable {
// populate the combobox
super(new FontInfo("Platform", SubstanceCortex.GlobalScope.getFontPolicy()
.getFontSet()),
new FontInfo("fonts/Inter-UI-Regular.ttf", "fonts/Inter-UI-Bold.ttf"),
new FontInfo("fonts/SourceCodePro-Regular.ttf", "fonts/SourceCodePro-Bold.ttf"),
new FontInfo("fonts/Roboto-Regular.ttf", "fonts/Roboto-Bold.ttf"),
new FontInfo("fonts/RobotoCondensed-Regular.ttf",
"fonts/RobotoCondensed-Bold.ttf"));
// add an action listener to change font based on user selection
this.addActionListener((ActionEvent e) -> SwingUtilities.invokeLater(() ->
SubstanceCortex.GlobalScope.setFontPolicy(
() -> ((FontInfo) SubstanceFontSelector.this.getSelectedItem()).fontSet)));
}
@Override
public String getCaption(FontInfo item) {
return item.displayName;
}
}
| [
"kirill.grouchnikov@gmail.com"
] | kirill.grouchnikov@gmail.com |
710e0784274cb7482af69486b89e0431110ab75e | 0d90812e660faca32ce96b76906158152e251889 | /Tugas_1/Ardi Nusawan/other/Coba2/Server/src/server/Server.java | 0ef2f69b6305bdc02bb7d08f5e1601e9cb086699 | [] | no_license | ardinusawan/Pemrograman_Jaringan_C | 14378ce13d96238563bd54fcd18d260f1d72c2f0 | d72c43d6d3af14d2836fcb8e238981fe6fede8f2 | refs/heads/master | 2016-08-12T03:58:10.343636 | 2016-01-05T00:08:08 | 2016-01-05T00:08:08 | 43,449,760 | 2 | 2 | null | 2015-10-02T04:17:04 | 2015-09-30T18:02:52 | null | UTF-8 | Java | false | false | 416 | 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 server;
/**
*
* @author ardi
*/
public class Server {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
}
}
| [
"you@example.com"
] | you@example.com |
56e3a82346dafb40ebb4a9eeac5babeab21915a4 | 2ca93846ab8f638a7d8cd80f91566ee3632cf186 | /Variant Programs/2/2-31/BWorkspace.java | 301a60102198465cf0dab79feb90ecf64c7e4260 | [
"MIT"
] | permissive | hjc851/SourceCodePlagiarismDetectionDataset | 729483c3b823c455ffa947fc18d6177b8a78a21f | f67bc79576a8df85e8a7b4f5d012346e3a76db37 | refs/heads/master | 2020-07-05T10:48:29.980984 | 2019-08-15T23:51:55 | 2019-08-15T23:51:55 | 202,626,196 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,841 | java | import java.util.ArrayDeque;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
public class BWorkspace extends Planner {
static final double tedAccessories = 0.30913651783853924;
private java.util.ArrayDeque<Negotiations> waitingList = null;
private java.util.ArrayDeque<Defective> anomalyCue = null;
private int chanceUnresolved = 0;
public BWorkspace() {
this.waitingList = (new java.util.ArrayDeque<>());
this.anomalyCue = (new java.util.ArrayDeque<>());
chanceUnresolved = (AgainGiant);
}
public synchronized void nsoTic() {
String man = "Po3t8fDiAKG5LVZUN1G";
java.util.List<Defective> mistakes = new java.util.LinkedList<>();
for (Defective f : anomalyCue) {
if (f.arriveFixMonth() == this.becomeTheSelect()) mistakes.add(f);
}
for (Defective fracture : mistakes) {
anomalyCue.remove(fracture);
replacedPlaybook.bestowText(
new Contents(
fracture.catchSue().receiveCalls().peek(), fracture.catchSue().becomePhoto(), 0),
fracture.catchSue());
if (!waitingList.contains(fracture.catchSue())) {
this.ingressProcedures(fracture.catchSue());
}
}
if (actualAct != null) {
chanceUnresolved--;
if (actualAct.isEnded()) {
actualAct.fixedEscapeOpportunity(this.becomeTheSelect());
this.attainedProces.addLast(actualAct);
actualAct = (null);
}
if (chanceUnresolved == 0 && actualAct != null) {
if (waitingList.isEmpty()) {
chanceUnresolved = (AgainGiant);
} else {
this.ingressProcedures(actualAct);
actualAct = (null);
}
}
}
if (actualAct == null && !waitingList.isEmpty()) {
actualAct = (this.promptTreat());
chanceUnresolved = (AgainGiant);
}
this.meltThenCalls();
}
public synchronized void ingressProcedures(Negotiations operation) {
double positionFoods = 0.8398054009692543;
waitingList.addLast(operation);
}
public synchronized Negotiations promptTreat() {
double symbol = 0.8210537390600647;
return waitingList.removeFirst();
}
private synchronized void meltThenCalls() {
double hand = 0.5655501549115939;
if (this.actualAct == null) {
return;
}
while (!replacedPlaybook.learnAsks(this.actualAct)) {
this.commitWebpageFlaw();
chanceUnresolved = (AgainGiant);
if (!waitingList.isEmpty()) {
actualAct = (promptTreat());
} else {
actualAct = (null);
return;
}
}
actualAct.proceduresExpectedMotion();
}
private synchronized void commitWebpageFlaw() {
String integral = "3";
Defective f = new Defective(this.becomeTheSelect(), actualAct);
anomalyCue.add(f);
actualAct.goBlame().add(f);
}
}
| [
"hayden.cheers@me.com"
] | hayden.cheers@me.com |
e788751e8a2cafa65f8df8419418c00593b378f4 | 4aa90348abcb2119011728dc067afd501f275374 | /app/src/main/java/com/tencent/mm/plugin/wallet_index/b/a/c.java | 629428ac0be6e063b5e92719cca89b8d10ba75dd | [] | no_license | jambestwick/HackWechat | 0d4ceb2d79ccddb45004ca667e9a6a984a80f0f6 | 6a34899c8bfd50d19e5a5ec36a58218598172a6b | refs/heads/master | 2022-01-27T12:48:43.446804 | 2021-12-29T10:36:30 | 2021-12-29T10:36:30 | 249,366,791 | 0 | 0 | null | 2020-03-23T07:48:32 | 2020-03-23T07:48:32 | null | UTF-8 | Java | false | false | 2,063 | java | package com.tencent.mm.plugin.wallet_index.b.a;
import com.tencent.tmassistantsdk.openSDK.QQDownloader.AssistantStore.DownloadInfos.DownloadInfoColumns;
import java.util.ArrayList;
import org.json.JSONObject;
public final class c {
public String hzj;
public String lyH;
String mPackageName;
public String rLk;
String tac;
public String tad;
long tae;
int taf;
public String tah;
public String tai;
public String taj;
public String tak;
public c(String str, String str2, String str3) {
this.tac = str;
this.tai = str2;
JSONObject jSONObject = new JSONObject(this.tai);
this.tad = jSONObject.optString("orderId");
this.mPackageName = jSONObject.optString(DownloadInfoColumns.PACKAGENAME);
this.lyH = jSONObject.optString("productId");
this.tae = jSONObject.optLong("purchaseTime");
this.taf = jSONObject.optInt("purchaseState");
String optString = jSONObject.optString("developerPayload");
ArrayList Nw = Nw(optString);
if (Nw.size() == 3) {
this.tah = (String) Nw.get(0);
this.tak = (String) Nw.get(1);
this.taj = (String) Nw.get(2);
} else {
this.tah = optString;
}
this.hzj = jSONObject.optString("token", jSONObject.optString("purchaseToken"));
this.rLk = str3;
}
public c(String str, String str2, String str3, String str4) {
this.lyH = str;
this.tah = str2;
this.taj = str3;
this.tak = str4;
}
private static ArrayList<String> Nw(String str) {
ArrayList<String> arrayList = new ArrayList();
while (str.indexOf("[#]") >= 0) {
String substring = str.substring(0, str.indexOf("[#]"));
str = str.substring(substring.length() + 3);
arrayList.add(substring);
}
arrayList.add(str);
return arrayList;
}
public final String toString() {
return "PurchaseInfo(type:" + this.tac + "):" + this.tai;
}
}
| [
"malin.myemail@163.com"
] | malin.myemail@163.com |
a2e0e6a6bdfb270bcf2b9f59dcfeecdd7bc6d005 | 78f7fd54a94c334ec56f27451688858662e1495e | /newsmodule/src/main/java/com/itgrids/partyanalyst/dao/IKeywordDAO.java | f426ac912dead63acfc9a66cf0ffd7d0098d1d46 | [] | no_license | hymanath/PA | 2e8f2ef9e1d3ed99df496761a7b72ec50d25e7ef | d166bf434601f0fbe45af02064c94954f6326fd7 | refs/heads/master | 2021-09-12T09:06:37.814523 | 2018-04-13T20:13:59 | 2018-04-13T20:13:59 | 129,496,146 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 855 | java | package com.itgrids.partyanalyst.dao;
import java.util.List;
import org.appfuse.dao.GenericDao;
import com.itgrids.partyanalyst.model.Keyword;
public interface IKeywordDAO extends GenericDao<Keyword, Long> {
public List<Object[]> getTotalKeyWords();
public List<Object[]> getKeyWordsList(List<String> keywordList);
public List<Object[]> getKeyWordIdByName(String keywordName);
public List<String> getExistingKeywordsByKeywordsList(List<String> keywordList);
public List<Long> getKeywordIdByKeyword(String keywordName);
public List<Keyword> getKeywordByName(String keywordName);
public List<Object[]> getKeyWordsBySearchString(String searchString);
public List<Object[]> getAllKeywordsList(String searchStr,Integer startIndex,Integer maxIndex);
public Long getAllKeywordsCount(String searchStr);
}
| [
"itgrids@b17b186f-d863-de11-8533-00e0815b4126"
] | itgrids@b17b186f-d863-de11-8533-00e0815b4126 |
4f80df2163ed21d976bf2a7aea363fffb6a33221 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /java/neo4j/2016/4/GraphDatabaseFactory.java | d10fb09ca4d212d10910f6bf952dd5e619ffb757 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Java | false | false | 4,095 | java | /*
* Copyright (c) 2002-2016 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 org.neo4j.graphdb.factory;
import java.io.File;
import java.util.Map;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.security.URLAccessRule;
import org.neo4j.kernel.impl.factory.CommunityFacadeFactory;
import org.neo4j.kernel.impl.factory.Edition;
import org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory;
import org.neo4j.kernel.monitoring.Monitors;
import org.neo4j.logging.LogProvider;
/**
* Creates a {@link org.neo4j.graphdb.GraphDatabaseService}.
* <p>
* Use {@link #newEmbeddedDatabase(File)} or
* {@link #newEmbeddedDatabaseBuilder(File)} to create a database instance.
*/
public class GraphDatabaseFactory
{
private final GraphDatabaseFactoryState state;
public GraphDatabaseFactory()
{
this( new GraphDatabaseFactoryState() );
}
protected GraphDatabaseFactory( GraphDatabaseFactoryState state )
{
this.state = state;
}
protected GraphDatabaseFactoryState getCurrentState()
{
return state;
}
protected GraphDatabaseFactoryState getStateCopy()
{
return new GraphDatabaseFactoryState( getCurrentState() );
}
public GraphDatabaseService newEmbeddedDatabase( File storeDir )
{
return newEmbeddedDatabaseBuilder( storeDir ).newGraphDatabase();
}
public GraphDatabaseBuilder newEmbeddedDatabaseBuilder( File storeDir )
{
final GraphDatabaseFactoryState state = getStateCopy();
GraphDatabaseBuilder.DatabaseCreator creator = createDatabaseCreator( storeDir, state );
GraphDatabaseBuilder builder = createGraphDatabaseBuilder( creator );
configure( builder );
return builder;
}
protected GraphDatabaseBuilder createGraphDatabaseBuilder( GraphDatabaseBuilder.DatabaseCreator creator )
{
return new GraphDatabaseBuilder( creator );
}
protected GraphDatabaseBuilder.DatabaseCreator createDatabaseCreator(
final File storeDir, final GraphDatabaseFactoryState state )
{
return config -> {
config.put( "unsupported.dbms.ephemeral", "false" );
GraphDatabaseFacadeFactory.Dependencies dependencies = state.databaseDependencies();
return GraphDatabaseFactory.this.newDatabase( storeDir, config, dependencies );
};
}
protected void configure( GraphDatabaseBuilder builder )
{
// Let the default configuration pass through.
}
protected GraphDatabaseService newDatabase( File storeDir, Map<String,String> config, GraphDatabaseFacadeFactory.Dependencies dependencies )
{
return new CommunityFacadeFactory().newFacade( storeDir, config, dependencies );
}
public GraphDatabaseFactory addURLAccessRule( String protocol, URLAccessRule rule )
{
getCurrentState().addURLAccessRule( protocol, rule );
return this;
}
public GraphDatabaseFactory setUserLogProvider( LogProvider userLogProvider )
{
getCurrentState().setUserLogProvider( userLogProvider );
return this;
}
public GraphDatabaseFactory setMonitors( Monitors monitors )
{
getCurrentState().setMonitors( monitors );
return this;
}
public String getEdition()
{
return Edition.community.toString();
}
}
| [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
4420ef2b60477de5fda733ced882215ce9c3f65b | 80576460f983a1ce5e11348e144257d6a2e12a97 | /Integracao/ContaCapitalIntegracaoLegadoEJB/src/main/java/br/com/sicoob/sisbr/cca/legado/persistencia/dao/interfaces/TrabalhaLegadoDao.java | 44cb25a67b9888271b5bb2aa8767beb192c0d73c | [] | no_license | pabllo007/cca | 8d3812e403deccdca5ba90745b188e10699ff44c | 99c24157ff08459ea3e7c2415ff75bcb6a0102e4 | refs/heads/master | 2022-12-01T05:20:26.998529 | 2019-10-27T21:33:11 | 2019-10-27T21:33:11 | 217,919,304 | 0 | 0 | null | 2022-11-24T06:24:00 | 2019-10-27T21:31:25 | Java | ISO-8859-1 | Java | false | false | 2,405 | java | /*
*
*/
package br.com.sicoob.sisbr.cca.legado.persistencia.dao.interfaces;
import java.util.List;
import br.com.bancoob.excecao.BancoobException;
import br.com.sicoob.sisbr.cca.legado.negocio.dto.TrabalhaLegadoDTO;
/**
* A Interface TrabalhaLegadoDao.
*/
public interface TrabalhaLegadoDao {
/**
* Obter dados trabalha.
*
* @param numPessoa o valor de num pessoa
* @return List
* @throws BancoobException lança a exceção BancoobException
*/
List<TrabalhaLegadoDTO> obterDadosTrabalha(Integer numPessoa) throws BancoobException;
/**
* Obter dados trabalha por matricula.
*
* @param descMatriculaFunc o valor de desc matricula func
* @return TrabalhaLegadoDTO
* @throws BancoobException lança a exceção BancoobException
*/
TrabalhaLegadoDTO obterDadosTrabalhaPorMatricula(String descMatriculaFunc) throws BancoobException;
/**
* Verifica se deb ind folha cliente.
*
* @param numMatricula o valor de num matricula
* @param numCliente o valor de num cliente
* @return {@code true}, em caso de sucesso
* @throws BancoobException lança a exceção BancoobException
*/
Boolean verificaSeDebIndFolhaCliente(Integer numMatricula, Integer numCliente) throws BancoobException;
/**
* Verificar parcela via folha cliente.
*
* @param numMatricula o valor de num matricula
* @param numCliente o valor de num cliente
* @return {@code true}, em caso de sucesso
* @throws BancoobException lança a exceção BancoobException
*/
Boolean verificarParcelaViaFolhaCliente(Integer numMatricula, Integer numCliente) throws BancoobException;
/**
* Verificar se prep remessa.
*
* @param strUIDTrabalha o valor de str uid trabalha
* @param numAnoRef o valor de num ano ref
* @param numMesRef o valor de num mes ref
* @return {@code true}, em caso de sucesso
* @throws BancoobException lança a exceção BancoobException
*/
Boolean verificarSePrepRemessa(String strUIDTrabalha, Integer numAnoRef, Integer numMesRef) throws BancoobException;
/**
* Verificar se matricula trabalha valida.
*
* @param strUIDTrabalha o valor de str uid trabalha
* @param numCliente o valor de num cliente
* @return {@code true}, em caso de sucesso
* @throws BancoobException lança a exceção BancoobException
*/
Boolean verificarSeMatriculaTrabalhaValida(String strUIDTrabalha, Integer numCliente) throws BancoobException;
}
| [
"="
] | = |
f0f8b8f2fbbc876b9ac159962544bea02932e0bb | d60e287543a95a20350c2caeabafbec517cabe75 | /NLPCCd/Camel/1825_1.java | 53acfde63447a7d52f0e64e8ca3508f0ff866557 | [
"MIT"
] | permissive | sgholamian/log-aware-clone-detection | 242067df2db6fd056f8d917cfbc143615c558b2c | 9993cb081c420413c231d1807bfff342c39aa69a | refs/heads/main | 2023-07-20T09:32:19.757643 | 2021-08-27T15:02:50 | 2021-08-27T15:02:50 | 337,837,827 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 363 | java | //,temp,sample_426.java,2,12,temp,sample_425.java,2,12
//,2
public class xxx {
public void afterPropertiesSet() throws Exception {
if (Strings.isNullOrEmpty(loggerId)) {
log = LoggerFactory.getLogger(this.getClass().getName());
} else {
log = LoggerFactory.getLogger(loggerId);
}
pubsub = getConnectionFactory().getDefaultClient();
log.info("project id");
}
}; | [
"SHOSHIN\\sgholamian@shoshin.uwaterloo.ca"
] | SHOSHIN\sgholamian@shoshin.uwaterloo.ca |
ba103f352253cdfe8f1b87cad5ecbd67ecebfe50 | 075343e7f0ebd9290f2def278b734f7bb8a4fd2f | /src/main/java/com/xxk/management/office/materials/controller/MaterialsController.java | 9f5a159794828d4a4818d653f7831f44f269d039 | [] | no_license | gitofwyx/xxk_management | ee593f5e420fe5705f5bcfb4390d1628f548d867 | b1672cf86c40d5e0c81b38e1b3f16a09a5608823 | refs/heads/master | 2022-12-26T17:37:20.678374 | 2021-12-17T19:30:43 | 2021-12-17T19:30:43 | 127,061,460 | 0 | 0 | null | 2022-12-16T02:25:34 | 2018-03-28T00:29:33 | JavaScript | UTF-8 | Java | false | false | 1,244 | java | package com.xxk.management.office.materials.controller;
import com.xxk.core.file.BaseController;
import com.xxk.core.util.DateUtil;
import com.xxk.core.util.UUIdUtil;
import com.xxk.core.util.build_ident.IdentUtil;
import com.xxk.management.device.entity.DeviceClass;
import com.xxk.management.device.service.DeviceClassService;
import com.xxk.management.office.materials.entity.Materials;
import com.xxk.management.office.materials.service.MaterialsService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by Administrator on 2017/3/15.
*/
@Controller
@RequestMapping("")
public class MaterialsController extends BaseController {
private static Logger log = Logger.getLogger(MaterialsController.class);
@Autowired
private MaterialsService materialsService;
@Autowired
private DeviceClassService deviceClassService;
}
| [
"“"
] | “ |
64ebcc5ee994da9213e670b3a33cb90496f377b5 | d1c667fcbf6deac48dc8eb12853763e534e7f238 | /cms-core/dal-api/src/test/search/com/ebay/cloud/cms/dalapi/persistence/impl/root/RootCountCommand.java | 8a27f7e0d84ef57a41c8901c7128f8a1c6b75bc6 | [
"Apache-2.0"
] | permissive | huayl/YiDB | 62abca7aff1500bb0133eab7548ea09ab784a260 | a178e1f76d0eb6eab48a2ab03bf48500f1c8a21f | refs/heads/master | 2022-05-02T12:00:32.040569 | 2022-03-03T23:36:57 | 2022-03-03T23:36:57 | 48,884,133 | 0 | 0 | Apache-2.0 | 2022-03-04T02:02:58 | 2016-01-01T17:14:08 | Java | UTF-8 | Java | false | false | 2,625 | java | /*
Copyright [2013-2014] eBay Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/*
Copyright 2012 eBay Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.ebay.cloud.cms.dalapi.persistence.impl.root;
import java.util.List;
import com.ebay.cloud.cms.dal.persistence.IRetrievalCommand;
import com.ebay.cloud.cms.dal.persistence.MongoExecutor;
import com.ebay.cloud.cms.dal.persistence.PersistenceContext;
import com.ebay.cloud.cms.metadata.model.InternalFieldEnum;
import com.ebay.cloud.cms.metadata.model.InternalFieldFactory.StatusEnum;
import com.ebay.cloud.cms.metadata.model.MetaClass;
import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;
/**
* return the entity count
*
* @author zhuang1
*
*/
public class RootCountCommand implements IRetrievalCommand {
private MetaClass meta;
private List<String> oids;
private String branchId;
private long resultCount;
public RootCountCommand(MetaClass meta, List<String> oids, String branchId) {
this.meta = meta;
this.oids = oids;
this.branchId = branchId;
}
@Override
public void execute(PersistenceContext context) {
DBObject queryObject = new BasicDBObject();
queryObject.put(InternalFieldEnum.ID.getDbName(), new BasicDBObject("$in", oids));
queryObject.put(InternalFieldEnum.STATUS.getDbName(), StatusEnum.ACTIVE.toString());
queryObject.put(InternalFieldEnum.BRANCH.getDbName(), branchId);
resultCount = MongoExecutor.count(context, meta, queryObject);
}
@Override
public Long getResult() {
return resultCount;
}
}
| [
"liasu@ebay.com"
] | liasu@ebay.com |
f516404672626058fb2e5bcb3e617687ee41da06 | 17e8438486cb3e3073966ca2c14956d3ba9209ea | /dso/tags/4.0.3/dso-l1-api/src/main/java/com/tc/object/locks/Notify.java | 5ed0c52e269d33f186917a4f94254f3b4716e375 | [] | no_license | sirinath/Terracotta | fedfc2c4f0f06c990f94b8b6c3b9c93293334345 | 00a7662b9cf530dfdb43f2dd821fa559e998c892 | refs/heads/master | 2021-01-23T05:41:52.414211 | 2015-07-02T15:21:54 | 2015-07-02T15:21:54 | 38,613,711 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 361 | java | /*
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
*/
package com.tc.object.locks;
import com.tc.io.TCSerializable;
public interface Notify extends TCSerializable {
//
public boolean isNull();
public LockID getLockID();
public ThreadID getThreadID();
public boolean getIsAll();
}
| [
"cruise@7fc7bbf3-cf45-46d4-be06-341739edd864"
] | cruise@7fc7bbf3-cf45-46d4-be06-341739edd864 |
d05a953acf54ca74b7b8c450b51a7af2c7547365 | bd7e60848f2e37e69d741cae0f6192ff16235906 | /src/main/java/com/kevin/design/create/abstractFactory/WindowsFactory.java | 2e43ff4f92da55cc5bd54d4ae52d234c46bc2411 | [] | no_license | tokevinding/kevin-learn | e25ea9afcedeb768d335bc41d4a299549d22f976 | 02ba711db70c4624197879c8c5429f362307e999 | refs/heads/master | 2023-07-18T09:05:42.706749 | 2021-09-09T06:26:14 | 2021-09-09T06:26:14 | 286,345,534 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 323 | java | package com.kevin.design.create.abstractFactory;
import com.kevin.tools.utils.ConsoleOutputUtils;
/**
* @author kevin
* @date 2020-08-09 19:27:19
* @desc
*/
public class WindowsFactory implements KProcessProgram {
@Override
public void process() {
ConsoleOutputUtils.println("Linux process");
}
}
| [
"“dinghaifeng@enmonster.com”"
] | “dinghaifeng@enmonster.com” |
87fc9d24c5cb1c389f642af5804866f5c08a4f51 | 7c0acec36a1c569b1eefd4cc1022686b6a8c9427 | /it.ltc.logica.database/src/it/ltc/logica/database/model/centrale/cdg/CdgCostiRicaviGenericiDateValore.java | b45f200ec164af7fe9ae96a9e91e1c5eca3b880f | [] | no_license | Dufler/logica | 3fa53fbfbfb36df9f00f10eeaa41535a1cbf0dba | e623a07d29fdfd4121106b9b3081faa59992e248 | refs/heads/master | 2020-05-02T20:10:08.565067 | 2019-06-04T13:29:07 | 2019-06-04T13:29:07 | 122,049,673 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,429 | java | package it.ltc.logica.database.model.centrale.cdg;
import java.io.Serializable;
import java.util.Date;
/**
* The persistent class for the cdg_costi_ricavi_generici_date_valore database table.
*
*/
public class CdgCostiRicaviGenericiDateValore implements Serializable {
private static final long serialVersionUID = 1L;
private int id;
private Date dataEffettiva;
private Date dataFine;
private Date dataInizio;
private String descrizione;
private int generico;
private Integer sede;
private double valore;
public CdgCostiRicaviGenericiDateValore() {}
public int getId() {
return this.id;
}
public void setId(int id) {
this.id = id;
}
public Date getDataEffettiva() {
return this.dataEffettiva;
}
public void setDataEffettiva(Date dataEffettiva) {
this.dataEffettiva = dataEffettiva;
}
public Date getDataFine() {
return this.dataFine;
}
public void setDataFine(Date dataFine) {
this.dataFine = dataFine;
}
public Date getDataInizio() {
return this.dataInizio;
}
public void setDataInizio(Date dataInizio) {
this.dataInizio = dataInizio;
}
public String getDescrizione() {
return descrizione;
}
public void setDescrizione(String descrizione) {
this.descrizione = descrizione;
}
public int getGenerico() {
return this.generico;
}
public void setGenerico(int generico) {
this.generico = generico;
}
public Integer getSede() {
return this.sede;
}
public void setSede(Integer sede) {
this.sede = sede;
}
public double getValore() {
return this.valore;
}
public void setValore(double valore) {
this.valore = valore;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + id;
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
CdgCostiRicaviGenericiDateValore other = (CdgCostiRicaviGenericiDateValore) obj;
if (id != other.id)
return false;
return true;
}
@Override
public String toString() {
return "CdgCostiRicaviGenericiDateValore [id=" + id + ", dataEffettiva=" + dataEffettiva + ", dataFine="
+ dataFine + ", dataInizio=" + dataInizio + ", generico=" + generico + ", valore=" + valore + "]";
}
} | [
"Damiano@Damiano-PC"
] | Damiano@Damiano-PC |
012e3c5a9fdd80a7707db73138fc0355431a8428 | 3af6963d156fc1bf7409771d9b7ed30b5a207dc1 | /runtime/src/main/java/apple/corefoundation/CFSocketCallBackType.java | 9e25ed3d0f8d5f57bbe70ebe095b6cff89e5c710 | [
"Apache-2.0"
] | permissive | yava555/j2objc | 1761d7ffb861b5469cf7049b51f7b73c6d3652e4 | dba753944b8306b9a5b54728a40ca30bd17bdf63 | refs/heads/master | 2020-12-30T23:23:50.723961 | 2015-09-03T06:57:20 | 2015-09-03T06:57:20 | 48,475,187 | 0 | 0 | null | 2015-12-23T07:08:22 | 2015-12-23T07:08:22 | null | UTF-8 | Java | false | false | 1,090 | java | package apple.corefoundation;
import java.io.*;
import java.nio.*;
import java.util.*;
import com.google.j2objc.annotations.*;
import com.google.j2objc.runtime.*;
import com.google.j2objc.runtime.block.*;
import apple.audiotoolbox.*;
import apple.corefoundation.*;
import apple.coregraphics.*;
import apple.coreservices.*;
import apple.dispatch.*;
import apple.foundation.*;
@Library("CoreFoundation/CoreFoundation.h")
@Mapping("CFSocketCallBackType")
public final class CFSocketCallBackType extends ObjCEnum {
@GlobalConstant("kCFSocketNoCallBack")
public static final long NoCallBack = 0L;
@GlobalConstant("kCFSocketReadCallBack")
public static final long ReadCallBack = 1L;
@GlobalConstant("kCFSocketAcceptCallBack")
public static final long AcceptCallBack = 2L;
@GlobalConstant("kCFSocketDataCallBack")
public static final long DataCallBack = 3L;
@GlobalConstant("kCFSocketConnectCallBack")
public static final long ConnectCallBack = 4L;
@GlobalConstant("kCFSocketWriteCallBack")
public static final long WriteCallBack = 8L;
}
| [
"pchen@sellegit.com"
] | pchen@sellegit.com |
2d63aaaa58143c1b2fe2ff23ab12e80ff9a6fbd4 | 0b214efa15c6f758ee4d5a85d6030018ae23c09f | /Themes/06. Singleton/src/ru/itis/singleton/pattern/Singleton.java | f9fc219e070a5d32b386f948928eefd8abdbf0e9 | [] | no_license | oleg-romanov/11-702 | 69c8a343d34bf005d55387e8b5cd9b29a2a24e64 | a6e026c85c6ea9f43569faf65ea94be4fb7d5912 | refs/heads/master | 2023-02-17T12:35:29.943713 | 2019-05-28T10:52:05 | 2019-05-28T10:52:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 669 | java | package ru.itis.singleton.pattern;
/**
* 10.10.2017
* Singleton
*
* @author Sidikov Marsel (First Software Engineering Platform)
* @version v1.0
*/
public class Singleton {
// закрытое поле
// статическое
// оно - константное, то есть эта переменная инициализируется только один раз
// содержит ссылку на объект класса
private static final Singleton instance;
private Singleton() {
}
static {
instance = new Singleton();
}
public static Singleton getInstance() {
return instance;
}
}
| [
"sidikov.marsel@gmail.com"
] | sidikov.marsel@gmail.com |
822efbe06301d7840443f1d647fb166cf4c236bc | ccc3268554528f5ed5cc119bbd88cfc45b55691d | /java/l2p/gameserver/masteriopack/bbsbuffer/Filter.java | 4f8cb17ee92e06f298ad84674b16872b17075478 | [] | no_license | trickititit/java-source | 447ea16c2892377a4625f742118ebfd4e3116848 | 724453441846ce44e65372100a70770f21572837 | refs/heads/master | 2021-01-18T09:38:01.836585 | 2016-09-17T17:43:34 | 2016-09-17T17:43:34 | 68,445,261 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,411 | java | package l2p.gameserver.masteriopack.bbsbuffer;
/**
*
* @author Masterio
*
*/
public class Filter {
private boolean _showBuffsForPlayer = true;
private boolean _showBuffsWithTheSameEffect = false;
private int _showBuffsFromGroup = 0;
public boolean isShowBuffsForPlayer() {
return _showBuffsForPlayer;
}
public void setShowBuffsForPlayer(boolean showBuffsForPlayer) {
_showBuffsForPlayer = showBuffsForPlayer;
}
public void setShowBuffsForPlayer(int showBuffsForPlayer) {
if (showBuffsForPlayer == 1) {
_showBuffsForPlayer = true;
} else {
_showBuffsForPlayer = false;
}
}
public boolean isShowBuffsWithTheSameEffect() {
return _showBuffsWithTheSameEffect;
}
public void setShowBuffsWithTheSameEffect(boolean showBuffsWithTheSameEffect) {
_showBuffsWithTheSameEffect = showBuffsWithTheSameEffect;
}
public void setShowBuffsWithTheSameEffect(int showBuffsWithTheSameEffect) {
if (showBuffsWithTheSameEffect == 1) {
_showBuffsWithTheSameEffect = true;
} else {
_showBuffsWithTheSameEffect = false;
}
}
public int getShowBuffsFromGroup() {
return _showBuffsFromGroup;
}
public void setShowBuffsFromGroup(int showBuffsFromGroup) {
_showBuffsFromGroup = showBuffsFromGroup;
}
}
| [
"trickititit@gmail.com"
] | trickititit@gmail.com |
0b2db6a2c24f3a33661a714ba1bd4b43879bd97e | 4ab2794c9530f3a6884519c74b43df979b9c3f65 | /controltheland/src/main/java/com/btxtech/game/services/forum/impl/ForumServiceImpl.java | f94b92a0ffb65f11e32f688878682c940bb258de | [] | no_license | kurdoxxx/controltheland | 759b825b9e19c95a27f8b3345f1f620a6f8f308d | 22fb17ff19446a9ed7c91b5a8e6d091488bf475e | refs/heads/master | 2021-01-19T06:58:47.541857 | 2014-07-25T22:05:37 | 2014-07-25T22:05:37 | 37,353,316 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,369 | java | /*
* Copyright (c) 2010.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
package com.btxtech.game.services.forum.impl;
import com.btxtech.game.services.common.CrudRootServiceHelper;
import com.btxtech.game.services.forum.DbSubForum;
import com.btxtech.game.services.forum.ForumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
/**
* User: beat
* Date: 21.03.2010
* Time: 17:05:26
*/
@Component("forumService")
public class ForumServiceImpl implements ForumService {
@Autowired
private CrudRootServiceHelper<DbSubForum> subForumCrud;
@PostConstruct
public void init() {
subForumCrud.init(DbSubForum.class, null, false, false, "user");
}
@Override
public CrudRootServiceHelper<DbSubForum> getSubForumCrud() {
return subForumCrud;
}
}
| [
"beat.keller@btxtech.com"
] | beat.keller@btxtech.com |
ea8704df989bcc6e805bd3e4827a9df128f7f8fa | b8e3e449651bd64e5c126b5f91853428a595b5d8 | /service-api/src/main/java/com/similan/service/api/audit/dto/basic/AuditEventAttributeType.java | 60fc1cfe0a44e36b55c4606e00f94a39fa2727b8 | [] | no_license | suparna2702/ServiceFabric | ee5801a346fda63edf0bea75103e693e52037fc4 | d526376f9530f608726fa6ad1b7912b4ec384a82 | refs/heads/master | 2021-03-22T04:40:41.688184 | 2016-12-06T02:06:38 | 2016-12-06T02:06:38 | 75,250,704 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 134 | java | package com.similan.service.api.audit.dto.basic;
public enum AuditEventAttributeType {
PARTNER_NAME,
PARTNER_CONTACT_EMAIL
}
| [
"suparna2702@gmail.com"
] | suparna2702@gmail.com |
fe070ac19a3db925c91817d78c44335466107dc9 | 3aa8d4702ada59bba21f65f92e997f1c150be969 | /ch22-testpyramid/Phase5/airport/src/test/java/com/manning/junitbook/testpyramid/airport/PassengerTest.java | 3b09f51a2904f407785241710197d54da549049b | [] | no_license | kenshin579/books-junit-in-actions-3rd | b0e4de1345599c20545944b19531ef799f720b4b | c5d74bdf5429dc621961c85de330dbd20832355a | refs/heads/master | 2022-02-13T18:27:09.299647 | 2020-03-02T14:04:52 | 2020-03-02T14:04:52 | 244,385,110 | 0 | 0 | null | 2022-01-21T23:38:39 | 2020-03-02T14:01:14 | HTML | UTF-8 | Java | false | false | 2,776 | java | package com.manning.junitbook.testpyramid.airport;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
public class PassengerTest {
@Test
public void testPassengerCreation() {
Passenger passenger = new Passenger("123-45-6789", "John Smith", "US");
assertNotNull(passenger);
}
@Test
public void testInvalidSsn() {
assertThrows(RuntimeException.class,
()->{
Passenger passenger = new Passenger("123-456-789", "John Smith", "US");
});
assertThrows(RuntimeException.class,
()->{
Passenger passenger = new Passenger("900-45-6789", "John Smith", "US");
});
}
@Test
public void testInvalidCountryCode() {
assertThrows(RuntimeException.class,
()->{
Passenger passenger = new Passenger("900-45-6789", "John Smith", "GJ");
});
}
@Test
public void testSetInvalidSsn() {
assertThrows(RuntimeException.class,
()->{
Passenger passenger = new Passenger("123-45-6789", "John Smith", "US");
passenger.setIdentifier("123-456-789");
});
}
@Test
public void testSetValidSsn() {
Passenger passenger = new Passenger("123-45-6789", "John Smith", "US");
passenger.setIdentifier("123-98-7654");
assertEquals("123-98-7654", passenger.getIdentifier());
}
@Test
public void testSetInvalidCountryCode() {
assertThrows(RuntimeException.class,
()->{
Passenger passenger = new Passenger("123-45-6789", "John Smith", "US");
passenger.setCountryCode("GJ");
});
}
@Test
public void testSetValidCountryCode() {
Passenger passenger = new Passenger("123-45-6789", "John Smith", "US");
passenger.setCountryCode("GB");
assertEquals("GB", passenger.getCountryCode());
}
@Test
public void testPassengerToString() {
Passenger passenger = new Passenger("123-45-6789", "John Smith", "US");
passenger.setName("John Brown");
passenger.recordToSystem();
assertEquals("Passenger John Brown with identifier: 123-45-6789 from US", passenger.toString());
}
@Test
public void testSetValidNonUsIdentifier() {
Passenger passenger = new Passenger("900-45-6789", "John Smith", "GB");
passenger.setIdentifier("900-98-7654");
assertEquals("900-98-7654", passenger.getIdentifier());
}
}
| [
"frankyoh@tmon.co.kr"
] | frankyoh@tmon.co.kr |
569c692615957d873e1f5a4493f9678e197ed100 | ead4ab04ab1f56d368a923687ddaf482575b2201 | /src/main/java/javathreads3/examples/ch08/example1/AnimatedCharacterDisplayCanvas.java | c020ebf8d0d5fe3feb4024a76e244d1e59df0ff9 | [] | no_license | jengowong/java-threads-3 | 47add92d14bf4b9145c1f92c50f2b786a07b3a26 | 0551cca5ad14f980b3a13e4d621112d5866db71b | refs/heads/master | 2021-08-28T17:43:24.499326 | 2020-06-04T05:59:24 | 2020-06-04T05:59:24 | 63,925,687 | 0 | 0 | null | 2021-08-13T15:34:03 | 2016-07-22T05:21:06 | Java | UTF-8 | Java | false | false | 2,053 | java | package javathreads3.examples.ch08.example1;
import java.awt.*;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class AnimatedCharacterDisplayCanvas extends CharacterDisplayCanvas
implements CharacterListener, Runnable {
private volatile boolean done = false;
private int curX;
private Lock lock = new ReentrantLock();
private Condition cv = lock.newCondition();
private Thread timer = null;
public AnimatedCharacterDisplayCanvas(CharacterSource cs) {
super(cs);
}
public synchronized void newCharacter(CharacterEvent ce) {
curX = 0;
tmpChar[0] = (char) ce.character;
repaint();
}
public synchronized void paintComponent(Graphics gc) {
if (tmpChar[0] == 0)
return;
Dimension d = getSize();
int charWidth = fm.charWidth(tmpChar[0]);
gc.clearRect(0, 0, d.width, d.height);
gc.drawChars(tmpChar, 0, 1, curX++, fontHeight);
if (curX > d.width - charWidth)
curX = 0;
}
public void run() {
try {
lock.lock();
while (true) {
try {
if (done) {
cv.await();
} else {
repaint();
cv.await(100, TimeUnit.MILLISECONDS);
}
} catch (InterruptedException ie) {
return;
}
}
} finally {
lock.unlock();
}
}
public void setDone(boolean b) {
try {
lock.lock();
done = b;
if (timer == null) {
timer = new Thread(this);
timer.start();
}
if (!done) cv.signal();
} finally {
lock.unlock();
}
}
}
| [
"wangzhenguo02@meituan.com"
] | wangzhenguo02@meituan.com |
d66a85f16084e5e5717a0aa67273de88b4b48641 | 389770f55eef0a8df2cb1e660d7c0fef32f0a317 | /src/main/java/com/scott/java/design/pattern/structure/proxy/definition/RealSubject.java | 6db055401b3281a535ab787eff761714ee33fc1a | [] | no_license | kyleggy/JavaFeature | 3545c89e101a4ac890f5eaed2c07a235343217f5 | 4facfd5457810d65b6638001a28f56ff7eaefb9a | refs/heads/master | 2021-09-23T11:14:01.835976 | 2021-09-13T14:12:44 | 2021-09-13T14:12:44 | 143,537,698 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 257 | java | package com.scott.java.design.pattern.structure.proxy.definition;
/**
* Created by lizhaok on 2017/3/4.
*/
public class RealSubject implements Subject {
@Override
public void request() {
System.out.println("Real subject called");
}
}
| [
"kyleggy@gmail.com"
] | kyleggy@gmail.com |
93febd2502f9f0168985cf90cd4e3e52d14ea8db | c2f9d69a16986a2690e72718783472fc624ded18 | /com/whatsapp/am.java | 38e59c744e93f09b0738585a6e80a54a9dbc33e9 | [] | no_license | mithileshongit/WhatsApp-Descompilado | bc973e1356eb043661a2efc30db22bcc1392d7f3 | 94a9d0b1c46bb78676ac401572aa11f60e12345e | refs/heads/master | 2021-01-16T20:56:27.864244 | 2015-02-09T04:08:40 | 2015-02-09T04:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,653 | java | package com.whatsapp;
import android.app.Activity;
import android.location.Location;
import android.os.Build.VERSION;
import android.os.Handler;
import android.view.View;
import android.widget.ListView;
import com.actionbarsherlock.R;
import com.whatsapp.protocol.cn;
import java.util.ArrayList;
import org.spongycastle.jcajce.provider.symmetric.util.PBE;
import org.whispersystems.libaxolotl.ay;
public abstract class am {
private static final String z;
private View a;
private final fc b;
private Handler c;
private String d;
private Runnable e;
protected ArrayList f;
private int g;
private Activity h;
protected ArrayList i;
private a3y j;
private ListView k;
private final anq l;
private long m;
private fk n;
private a88 o;
static {
char[] toCharArray = "=A\u0012".toCharArray();
int length = toCharArray.length;
char[] cArr = toCharArray;
for (int i = 0; length > i; i++) {
int i2;
char c = cArr[i];
switch (i % 5) {
case PBE.MD5 /*0*/:
i2 = 87;
break;
case ay.f /*1*/:
i2 = 40;
break;
case ay.n /*2*/:
i2 = 118;
break;
case ay.p /*3*/:
i2 = 99;
break;
default:
i2 = 79;
break;
}
cArr[i] = (char) (i2 ^ c);
}
z = new String(cArr).intern();
}
public abstract void a(cn cnVar, boolean z);
public abstract void d();
public abstract Location f();
static a88 f(am amVar) {
return amVar.o;
}
static Handler e(am amVar) {
return amVar.c;
}
static fk h(am amVar) {
return amVar.n;
}
static long c(am amVar) {
return amVar.m;
}
private void e() {
this.h.runOnUiThread(new po(this));
}
public void a(Activity activity) {
this.h = activity;
this.d = activity.getIntent().getStringExtra(z);
this.i = lh.b.c(this.d);
this.k = (ListView) activity.findViewById(16908298);
this.k.setOnItemClickListener(new bs(this));
this.a = activity.findViewById(R.id.list_holder);
this.a.setVisibility(8);
this.o = new a88(this, activity, this.i);
this.k.setAdapter(this.o);
a();
lh.b.a(this.j);
App.aJ.b(this.b);
App.b(this.l);
}
public void h() {
this.f.clear();
this.o.notifyDataSetChanged();
}
static String g(am amVar) {
return amVar.d;
}
static Activity a(am amVar) {
return amVar.h;
}
static long a(am amVar, long j) {
amVar.m = j;
return j;
}
static Runnable d(am amVar) {
return amVar.e;
}
static boolean b(am amVar) {
return amVar.a();
}
static void i(am amVar) {
amVar.e();
}
public void a(ArrayList arrayList) {
this.f = arrayList;
this.o.notifyDataSetChanged();
int indexOf = this.i.indexOf(this.f.get(0));
if (VERSION.SDK_INT >= 8) {
this.k.smoothScrollToPosition(indexOf);
if (App.az == 0) {
return;
}
}
this.k.setSelection(indexOf);
}
public void b() {
this.c.removeCallbacks(this.e);
App.a(new vr(this.d));
}
/* JADX WARNING: inconsistent code. */
/* Code decompiled incorrectly, please refer to instructions dump. */
private boolean a() {
/*
r4_this = this;
r0 = 0;
r1 = r4.h;
r1 = r1.getResources();
r2 = 2131361852; // 0x7f0a003c float:1.8343468E38 double:1.05303267E-314;
r1 = r1.getDimension(r2);
r2 = r4.h;
r2 = r2.getResources();
r2 = r2.getDisplayMetrics();
r2 = r2.density;
r1 = r1 + r2;
r2 = r4.h;
r2 = r2.getResources();
r3 = 2131361861; // 0x7f0a0045 float:1.8343486E38 double:1.0530326744E-314;
r2 = r2.getDimension(r3);
r3 = r4.i;
r3 = r3.size();
r3 = (float) r3;
r1 = r1 * r3;
r1 = java.lang.Math.min(r1, r2);
r1 = (int) r1;
r2 = r4.g;
if (r1 == r2) goto L_0x0059;
L_0x0039:
r4.g = r1;
if (r1 != 0) goto L_0x0048;
L_0x003d:
r2 = r4.a;
r3 = 8;
r2.setVisibility(r3);
r2 = com.whatsapp.App.az;
if (r2 == 0) goto L_0x0058;
L_0x0048:
r2 = r4.a;
r2.setVisibility(r0);
r0 = r4.a;
r2 = new android.widget.LinearLayout$LayoutParams;
r3 = -1;
r2.<init>(r3, r1);
r0.setLayoutParams(r2);
L_0x0058:
r0 = 1;
L_0x0059:
return r0;
*/
throw new UnsupportedOperationException("Method not decompiled: com.whatsapp.am.a():boolean");
}
public am() {
this.n = new fk();
this.f = new ArrayList();
this.c = new Handler();
this.m = 30000;
this.j = new az3(this);
this.e = new dj(this);
this.b = new gk(this);
this.l = new r7(this);
}
public void c() {
alq com_whatsapp_alr = new alr(this, this.d, true);
this.c.removeCallbacks(this.e);
this.c.postDelayed(this.e, this.m);
App.a(com_whatsapp_alr);
e();
}
public void g() {
this.n.a();
lh.b.b(this.j);
App.aJ.a(this.b);
App.a(this.l);
}
}
| [
"hjcf@cin.ufpe.br"
] | hjcf@cin.ufpe.br |
37a7ea94b4bce90f0a2da74d6b405a6020e231ad | 15aa5711a3ae798eceaebbac56a8b2f5f637e204 | /app/src/main/java/com/aserbao/aserbaosandroid/aaThird/dagger2/beans/SendFoodMan.java | bf700205d225e9f29e59a10291a95e8687947ce1 | [] | no_license | EmonLieu/AserbaosAndroid | 706c668477227ec11eaa90ffc131581a19442e71 | f0a4d1943d0265f2b2353287d2a3735468c76587 | refs/heads/master | 2020-05-04T19:43:44.973721 | 2019-04-02T09:53:48 | 2019-04-02T09:53:48 | 179,405,484 | 1 | 0 | null | 2019-04-04T02:20:10 | 2019-04-04T02:20:10 | null | UTF-8 | Java | false | false | 671 | java | package com.aserbao.aserbaosandroid.aaThird.dagger2.beans;
import android.util.Log;
import javax.inject.Inject;
/**
* 功能:
*
* @author aserbao
* @date : On 2019/3/21 11:21 AM
* @email: 1142803753@qq.com
* @project:AserbaosAndroid
* @package:com.aserbao.aserbaosandroid.aaThird.dagger2.beans
*/
public class SendFoodMan {
@Inject
public SendFoodMan() {
}
public void getFood(){
Log.e("dagger", "I had get the Food" );
}
public void sendFood(){
Log.e("dagger", "I sending the food for you now ");
}
public void finishSendFood(){
Log.e("dagger", "I've already send it where put your desk");
}
}
| [
"aserbao@163.com"
] | aserbao@163.com |
da9d5fe4ea803e9855d2186ac1f999da4df260c9 | 4a704e6e3830a2928ca8ea8f762f4347c60b7263 | /Code10/ball/Ball.java | 82be6914ec677e8aaaf8dbc00514f0f65a089b68 | [] | no_license | AnuragQ/JavaBatch1130June | cb70b46380c1e60f45eaeec8ba8ab492b5cb0b0c | d8d9988c78d4370fa9bff41db066cb3977482c26 | refs/heads/master | 2021-01-02T09:04:55.635929 | 2017-07-27T07:16:08 | 2017-07-27T07:16:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,204 | java | import java.awt.Color;
import java.awt.Graphics;
public class Ball implements GameConstants{
private int x;
private int y;
private int w;
private int h;
private Color color;
int xSpeed ;
int ySpeed;
public Ball(int x, int y){
this.x = x;
this.y = y;
this.w = this.h = 10;
//int randomHW = c.getRandom(200);
//this.w = this.h = randomHW<30?30:randomHW;
this.color = new Color(c.getRandomSpeed(MAX_COLOR), c.getRandomSpeed(MAX_COLOR), c.getRandomSpeed(MAX_COLOR));
xSpeed = ySpeed = BALL_SPEED;
}
public void drawBall(Graphics g){
g.setColor(color);
g.fillOval(x, y, w, h);
}
public void move(){
x = x + xSpeed;
y = y + ySpeed;
}
CommonUtils c = new CommonUtils();
public void changeDirection(){
//System.out.println("CHANGE DIR X "+x+" Y is "+y);
boolean isDirectionChange = false;
if(x>=(GAME_WIDTH-10)){
//xSpeed = -c.getRandomSpeed(5);
xSpeed = -1;
isDirectionChange = true;
}
else
if(x<=0){
xSpeed = 1;
//xSpeed = c.getRandomSpeed(5);
isDirectionChange = true;
}
if(y>=(GAME_HEIGHT-10)){
ySpeed = -1;
//ySpeed = -c.getRandomSpeed(5);
isDirectionChange = true;
}
else
if(y<=0){
ySpeed = 1;
//ySpeed = c.getRandomSpeed(5);
isDirectionChange = true;
}
// if(isDirectionChange){
// int randomHW = c.getRandom(200);
// this.w = this.h = randomHW<30?30:randomHW;
// }
}
public String toString(){
return "X is "+x+" and Y is "+y;
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public int getY() {
return y;
}
public void setY(int y) {
this.y = y;
}
public int getW() {
return w;
}
public void setW(int w) {
this.w = w;
}
public int getH() {
return h;
}
public void setH(int h) {
this.h = h;
}
public Color getColor() {
return color;
}
public void setColor(Color color) {
this.color = color;
}
public int getxSpeed() {
return xSpeed;
}
public void setxSpeed(int xSpeed) {
this.xSpeed = xSpeed;
}
public int getySpeed() {
return ySpeed;
}
public void setySpeed(int ySpeed) {
this.ySpeed = ySpeed;
}
public CommonUtils getC() {
return c;
}
public void setC(CommonUtils c) {
this.c = c;
}
}
| [
"amit4alljava@gmail.com"
] | amit4alljava@gmail.com |
1ca855f437186647dbbd74302f7e5f020825c54a | 06fe8a25df976cf8939dff2f19424b2a0c584b6a | /aars-motifs/src/main/java/de/bioforscher/aars/motifs/S03_CreateSaneNrPdbList.java | 89ec8e7acbf467e7646b5326f2efef77e5d04860 | [] | no_license | JonStargaryen/jstructure | f5c5248009544bda4f356d9539b5bb8a378b9800 | 1e95f39e316b03247d0747f4b7f4bbffd0a6a46c | refs/heads/master | 2022-09-15T05:20:45.739125 | 2022-09-01T22:54:21 | 2022-09-01T22:54:21 | 69,806,251 | 3 | 0 | null | 2022-09-01T22:54:22 | 2016-10-02T15:54:21 | HTML | UTF-8 | Java | false | false | 1,774 | java | package de.bioforscher.aars.motifs;
import de.bioforscher.jstructure.model.structure.Structure;
import de.bioforscher.jstructure.model.structure.StructureParser;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.StringJoiner;
/**
* For a small number of sequences to computation failed. Generate the sane list which should not result in any
* exceptions when accessing the results.
*/
public class S03_CreateSaneNrPdbList {
public static void main(String[] args) throws IOException {
StringJoiner output = new StringJoiner(System.lineSeparator());
Path motifPath = Paths.get("/home/bittrich/git/generic-motif-search/data/extracted-motifs/");
Files.list(motifPath)
// chains are valid when they contain a matchable motif with more than 1 residue
//TODO potentially check for spatial proximity
//TODO potentially check for present backbone atoms
.filter(S03_CreateSaneNrPdbList::filterValidChains)
.map(Path::toFile)
.map(File::getName)
.map(name -> name.split("\\.")[0])
.map(name -> name.split("_"))
.map(split -> split[0] + "\t" + split[1])
.sorted()
.forEach(output::add);
Files.write(Paths.get("/home/bittrich/git/generic-motif-search/data/nrpdb-filtered.list"),
output.toString().getBytes());
}
private static boolean filterValidChains(Path path) {
System.out.println("processing " + path);
Structure structure = StructureParser.fromPath(path).parse();
return structure.getGroups().size() > 1;
}
}
| [
"bittrich@hs-mittweida.de"
] | bittrich@hs-mittweida.de |
48b64e56f50fae0067135aed50fbd9ebcd24d09d | caaffff72d43cc31a5de6746429d32c989685c7c | /net.jplugin.core.das/ts-src/net/jplugin/core/das/route/impl/conn/mulqry/ResultSetOrderByTool.java | b7239eed7002ba83bbe0184796dde2f206f98df3 | [] | no_license | iamlibo/jplugin | 8c0ebf3328bdb90d7db80606d46453778c25f4f4 | 4f8b65dd285f986a3c54b701a25fabca3bba5ed9 | refs/heads/master | 2021-01-12T02:10:35.903062 | 2016-12-08T12:42:33 | 2016-12-08T12:42:33 | null | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 8,228 | java | package net.jplugin.core.das.route.impl.conn.mulqry;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Types;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.TreeSet;
import net.jplugin.core.das.route.api.TablesplitException;
public class ResultSetOrderByTool {
enum OrderColumnType{STRING,BIGINTEGER,BIGDECIMAL,SQLDATE,SQLTIME,SQLTIMESTAMP}
enum Direction{ASC,DESC}
ColumnMeta[] columnMetas;
TreeSet<OrderComparor> comparorSet;
public ResultSetOrderByTool(List<String> orderParam, ResultSet aResultSet) {
//下面初始化columnMetas
if (orderParam!=null && orderParam.size()>0){
try {
initColumnMetas(orderParam,aResultSet);
} catch (SQLException e) {
throw new TablesplitException(e.getMessage(),e);
}
}
//下面初始化comparorSet
if (orderParam!=null && orderParam.size()>0)
comparorSet = new TreeSet<OrderComparor>(new Comparator<OrderComparor>() {
@Override
public int compare(OrderComparor o1, OrderComparor o2) {
return doCompare(o1.getComparorValue(),o2.getComparorValue(),columnMetas);
}
private int doCompare(Object[] v1, Object[] v2, ColumnMeta[] m) {
for (int i=0;i<m.length;i++){
Comparable o1 = (Comparable)v1[i];
Comparable o2 = (Comparable)v2[i];
ColumnMeta cm = m[i];
int result = CompareKit.compareSupportNull(o1, o2);
if (result!=0 && cm.getDirection()==Direction.DESC){
result = - result;
}
//胜负分出来了,则返回
if (result!=0)
return result;
}
//到这里可能没有比较出大小,一定是相等
return 0;
}
});
else
comparorSet = new TreeSet<OrderComparor>(new Comparator<OrderComparor>() {
@Override
public int compare(OrderComparor o1, OrderComparor o2) {
return o1.rsIndex - o2.rsIndex;
}
});
}
private void initColumnMetas(List<String> orderParam, ResultSet aResultSet) throws SQLException {
//数组长度是逗号个数+1
int cnt=0;
for(String s:orderParam){
if (",".equals(s)) cnt++;
}
//创建数组
this.columnMetas = new ColumnMeta[cnt+1];
//填充name 和direction
ResultSetMetaData rsMeta = aResultSet.getMetaData();
String colName,colDirection;
int pos = 0 ;
int metaIndex = 0;
while(pos<orderParam.size()){
String first = orderParam.get(pos);
if (",".equals(first)){
throw new TablesplitException(" [,] is not expected here. order params="+ toString(orderParam));
}
//第一个为colName
colName = first;
colDirection = null;
//如果后面的一个不是 ",",那么就是 direction,并且pos向前推动
if ((pos<orderParam.size()-1) && !",".equals(orderParam.get(pos+1))){
pos++;
colDirection = orderParam.get(pos);
}
ColumnMeta cm = new ColumnMeta();
cm.setColumnName(colName);
cm.setDirection("desc".equalsIgnoreCase(colDirection)? Direction.DESC:Direction.ASC);
//填充index
int colIndex = getColumnIndex(cm.getColumnName(),rsMeta);
if (colIndex!=-1){
cm.setColumnIndex(colIndex);
}else{
throw new TablesplitException("The order by column ["+cm.getColumnName()+"] can't be found in the resultSet");
}
//填充type
OrderColumnType colType = getColunType(rsMeta,colIndex);
if (colType!=null){
cm.setColumnType(colType);
}else{
throw new TablesplitException("The order by column ["+cm.getColumnName()+"] type not support!");
}
columnMetas[metaIndex++]=cm;
//把pos向前推2,因为如果有下一个一定是,
pos+=2;
}
}
private String toString(List<String> list) {
if (list==null) return "";
StringBuffer sb = new StringBuffer();
for (String s:list){
sb.append(" "+s);
}
return sb.toString();
}
static HashMap<Integer,OrderColumnType> typeMapping=new HashMap();
static{
typeMapping.put(Types.TINYINT, OrderColumnType.BIGINTEGER);
typeMapping.put(Types.SMALLINT, OrderColumnType.BIGINTEGER);
typeMapping.put(Types.INTEGER, OrderColumnType.BIGINTEGER);
typeMapping.put(Types.BIGINT, OrderColumnType.BIGINTEGER);
typeMapping.put(Types.FLOAT, OrderColumnType.BIGDECIMAL);
typeMapping.put(Types.REAL, OrderColumnType.BIGDECIMAL);
typeMapping.put(Types.DOUBLE, OrderColumnType.BIGDECIMAL);
typeMapping.put(Types.NUMERIC, OrderColumnType.BIGDECIMAL);
typeMapping.put(Types.DECIMAL, OrderColumnType.BIGDECIMAL);
typeMapping.put(Types.CHAR, OrderColumnType.STRING);
typeMapping.put(Types.VARCHAR, OrderColumnType.STRING);
typeMapping.put(Types.LONGVARCHAR, OrderColumnType.STRING);
typeMapping.put(Types.DATE, OrderColumnType.SQLDATE);
typeMapping.put(Types.TIME, OrderColumnType.SQLTIME);
typeMapping.put(Types.TIMESTAMP, OrderColumnType.SQLTIMESTAMP);
}
private OrderColumnType getColunType(ResultSetMetaData rsMeta, int index) throws SQLException {
int sqlType = rsMeta.getColumnType(index);
return typeMapping.get(sqlType);
}
private int getColumnIndex(String columnName, ResultSetMetaData rsMeta) throws SQLException {
int count = rsMeta.getColumnCount();
columnName = columnName.toUpperCase();
int index = -1;
for (int i=1;i<=count;i++){
String name = rsMeta.getColumnName(i).toUpperCase();
if (name.endsWith(columnName)){
int nameLen = name.length();
int columnNameLen = columnName.length();
//规则:相等 或者 是 .后面的后缀
if ((nameLen == columnNameLen) ||(name.charAt(nameLen - columnNameLen-1)=='.')){
index = i;
break;
}
}
}
return index;
}
//取出
public OrderComparor pollFirst(){
return comparorSet.pollFirst();
}
//放入
public void refreshAndAdd(OrderComparor oc,ResultSet rs){
try{
//放入,重新排序
update(oc,rs);
comparorSet.add(oc);
}catch(SQLException s){
throw new TablesplitException(s.getMessage(),s);
}
}
private void update(OrderComparor oc, ResultSet rs) throws SQLException {
if (columnMetas==null || columnMetas.length==0){
//不需要update
return;
}
Object[] values = new Object[columnMetas.length];
for (int i=0;i<columnMetas.length;i++){
ColumnMeta meta = columnMetas[i];
int colIndex = meta.getColumnIndex();
Object value ;
switch(meta.getColumnType()){
case STRING:
value = rs.getString(colIndex);
break;
case BIGDECIMAL:
value = rs.getBigDecimal(colIndex);
break;
case BIGINTEGER:
value = rs.getLong(colIndex);
break;
case SQLDATE:
value = rs.getDate(colIndex);
break;
case SQLTIME:
value = rs.getTime(colIndex);
break;
case SQLTIMESTAMP:
value = rs.getTimestamp(colIndex);
break;
default:
throw new RuntimeException("error type:"+meta.getColumnType());
}
values[i]= value;
//设置
oc.setComparorValue(values);
}
}
static class ColumnMeta{
String columnName;
Direction direction;
private OrderColumnType columnType;
private int columnIndex;
public int getColumnIndex() {
return columnIndex;
}
public void setColumnIndex(int columnIndex) {
this.columnIndex = columnIndex;
}
public String getColumnName() {
return columnName;
}
public void setColumnName(String columnName) {
this.columnName = columnName;
}
public OrderColumnType getColumnType() {
return columnType;
}
public void setColumnType(OrderColumnType columnType) {
this.columnType = columnType;
}
public Direction getDirection() {
return direction;
}
public void setDirection(Direction direction) {
this.direction = direction;
}
}
static class OrderComparor {
int rsIndex;
Object[] comparorValue;
public int getRsIndex() {
return rsIndex;
}
public void setRsIndex(int rsIndex) {
this.rsIndex = rsIndex;
}
public Object[] getComparorValue() {
return comparorValue;
}
public void setComparorValue(Object[] comparorValue) {
this.comparorValue = comparorValue;
}
}
}
| [
"liuhang.163@163.com"
] | liuhang.163@163.com |
68b4c422bb42268d687fde152f184412996e578e | 80144e70d9eb77de6d7ea827d6681d3e420a7a9b | /src/main/java/com/hzz/hzzcloud/util/线程池/带有回调的线程/MyThreadFactory.java | fe45ef1407a9f2d8a2c80a94defb0121f6d3dc10 | [] | no_license | kun303/hzzcloud | 52c858c1f6744f09bd9ab869761761740ee21e6c | f43ec16e7f610210688484e34eae5d486902e118 | refs/heads/master | 2023-07-12T03:30:06.412679 | 2021-04-22T16:12:51 | 2021-04-22T16:12:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 342 | java | package com.hzz.hzzcloud.util.线程池.带有回调的线程;
import java.util.concurrent.ThreadFactory;
/**
* @author :hzz
* @description:TODO
* @date :2020/9/2 9:31
*/
public class MyThreadFactory implements ThreadFactory {
@Override
public Thread newThread(Runnable r) {
return new Thread(r,"测试");
}
}
| [
"605198347@qq.com"
] | 605198347@qq.com |
76fffe5cb150e3c389caefd761ca0d4fff6ae546 | 34221f3f7738d7a33c693e580dc6a99789349cf3 | /app/src/main/java/defpackage/aen.java | d764953482e6b5e10216b4096b8a10b786a95776 | [] | no_license | KobeGong/TasksApp | 0c7b9f3f54bc4be755b1f605b41230822d6f9850 | aacdd5cbf0ba073460797fa76f1aaf2eaf70f08e | refs/heads/master | 2023-08-16T07:11:13.379876 | 2021-09-25T17:38:57 | 2021-09-25T17:38:57 | 374,659,931 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 207 | java | package defpackage;
/* renamed from: aen reason: default package */
/* compiled from: PG */
final class aen {
public final defpackage.aeo a;
aen(defpackage.aeo aeo) {
this.a = aeo;
}
}
| [
"droidevapp1023@gmail.com"
] | droidevapp1023@gmail.com |
dcbe63a2029b274ddf5982275cc815fcc8e6f83c | 8e1ce4bb95aa44a781aef60538b0ad7a626c3982 | /app/src/main/java/com/nst/yourname/model/database/PlayerResumeDBModel.java | 9120f126ef73f4100e59b6da5b15a76ddcd17660 | [] | no_license | HunterCao2018/smart-iptv-app | 8d915cd83ca9136998f0432b544d25696c735462 | dc0ba108de3f1d3f5f8ae5044a086c68d97b06c5 | refs/heads/master | 2022-12-04T02:06:54.166472 | 2020-08-28T22:45:30 | 2020-08-28T22:45:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,462 | java | package com.nst.yourname.model.database;
public class PlayerResumeDBModel {
private String eventType;
private int idAuto;
private long streamDuration;
private boolean streamFinish;
private String streamId;
private long timeElapsed;
public long getStreamDuration() {
return this.streamDuration;
}
public void setStreamDuration(long j) {
this.streamDuration = j;
}
public PlayerResumeDBModel() {
}
public PlayerResumeDBModel(String str, String str2, boolean z, long j, long j2) {
this.eventType = str;
this.streamId = str2;
this.streamFinish = z;
this.timeElapsed = j;
this.streamDuration = j2;
}
public int getIdAuto() {
return this.idAuto;
}
public void setIdAuto(int i) {
this.idAuto = i;
}
public String getEventType() {
return this.eventType;
}
public void setEventType(String str) {
this.eventType = str;
}
public String getStreamId() {
return this.streamId;
}
public void setStreamId(String str) {
this.streamId = str;
}
public boolean isStreamFinish() {
return this.streamFinish;
}
public void setStreamFinish(boolean z) {
this.streamFinish = z;
}
public long getTimeElapsed() {
return this.timeElapsed;
}
public void setTimeElapsed(long j) {
this.timeElapsed = j;
}
}
| [
"iano2k4@hotmail.com"
] | iano2k4@hotmail.com |
7dffd7602aa61f35bcfd72486043018acb568f6c | b2f44ba766a44426cd06ebfb922d8b75c1773d63 | /src/com/leetcode/P480_SlidingWindowMedian.java | 3cf66723b363ee68ca96e0356adeb3b60217bca9 | [] | no_license | joy32812/leetcode | a1179ecff91127a6cda83cf70838354b0670970f | 9bd74b9774012df0e2e221eedc63d10f3ba88238 | refs/heads/master | 2023-08-16T14:11:34.232388 | 2023-08-13T11:30:05 | 2023-08-13T11:30:05 | 81,704,645 | 10 | 5 | null | null | null | null | UTF-8 | Java | false | false | 2,387 | java | package com.leetcode;
import java.util.Comparator;
import java.util.PriorityQueue;
/**
* Created by xiaoyuan on 16/09/2017.
*/
public class P480_SlidingWindowMedian {
PriorityQueue<Integer> low;
PriorityQueue<Integer> high;
public double[] medianSlidingWindow(int[] nums, int k) {
low = new PriorityQueue<>(new Comparator<Integer>() {
@Override
public int compare(Integer o1, Integer o2) {
return o2.compareTo(o1);
}
});
high = new PriorityQueue<>();
int n = nums.length;
double[] ans = new double[n - k + 1];
for (int i = 0; i < nums.length; i++) {
if (nums[i] <= getMedian()) {
low.add(nums[i]);
} else {
high.add(nums[i]);
}
balance();
if (i - k >= 0) {
if (nums[i - k] <= getMedian()) {
low.remove(nums[i - k]);
} else {
high.remove(nums[i - k]);
}
balance();
}
if (i - k + 1 >= 0) {
ans[i - k + 1] = getMedian();
}
}
return ans;
}
private void balance() {
if (high.size() > low.size()) {
low.add(high.poll());
}
if (low.size() > high.size() + 1) {
high.add(low.poll());
}
}
private double getMedian() {
if (low.size() == 0) return 0;
if (low.size() == high.size()) {
return (0.0 + low.peek() + high.peek()) / 2.0;
}
return 0.0 + low.peek();
}
public static void main(String[] args) {
PriorityQueue<Integer> pq = new PriorityQueue<>((a, b) -> (b - a));
pq.add(2147483647);
pq.add(2147483647);
pq.add(-2147483648);
while (!pq.isEmpty()) {
System.out.println(pq.poll());
}
System.out.println(new P480_SlidingWindowMedian().medianSlidingWindow(new int[]{
-2147483648,-2147483648,2147483647,-2147483648,-2147483648,-2147483648,2147483647,2147483647,2147483647,2147483647,-2147483648,2147483647,-2147483648
}, 3));
// System.out.println(new P480_SlidingWindowMedian().medianSlidingWindow(new int[]{
// 1, 3, -1, -3, 5, 3, 6, 7
// }, 3));
}
}
| [
"joy32812@qq.com"
] | joy32812@qq.com |
459a5976af267936fc1fe52d3b92aca39392a0ff | 47a755ab816b2055d116b047b4aeda15bd1f7351 | /build-logic/src/main/java/com/sun/apache/xalan/internal/xsltc/compiler/util/ClassGenerator.java | 27ea3ed373ba77c522111f4b348d16b55514de5f | [] | no_license | MikeAndrson/kotlinc-android | 4548581c7972b13b45dff4ccdd11747581349ded | ebc9b1d78bbd97083e860a1e8887b25469a13ecf | refs/heads/master | 2023-08-20T05:17:30.605126 | 2021-10-04T16:06:46 | 2021-10-04T16:06:46 | 413,486,864 | 25 | 12 | null | null | null | null | UTF-8 | Java | false | false | 4,789 | java | /*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: ClassGenerator.java,v 1.2.4.1 2005/09/05 11:07:09 pvedula Exp $
*/
package com.sun.apache.xalan.internal.xsltc.compiler.util;
import com.sun.apache.bcel.internal.generic.ALOAD;
import com.sun.apache.bcel.internal.generic.ClassGen;
import com.sun.apache.bcel.internal.classfile.Method;
import com.sun.apache.bcel.internal.generic.Instruction;
import com.sun.apache.xalan.internal.xsltc.compiler.Constants;
import com.sun.apache.xalan.internal.xsltc.compiler.Parser;
import com.sun.apache.xalan.internal.xsltc.compiler.Stylesheet;
/**
* The class that implements any class that inherits from
* <tt>AbstractTranslet</tt>, i.e. any translet. Methods in this
* class may be of the following kinds:
*
* 1. Main method: applyTemplates, implemented by intances of
* <tt>MethodGenerator</tt>.
*
* 2. Named methods: for named templates, implemented by instances
* of <tt>NamedMethodGenerator</tt>.
*
* 3. Rt methods: for result tree fragments, implemented by
* instances of <tt>RtMethodGenerator</tt>.
* @author Jacek Ambroziak
* @author Santiago Pericas-Geertsen
*/
public class ClassGenerator extends ClassGen {
protected final static int TRANSLET_INDEX = 0;
protected static int INVALID_INDEX = -1;
private Stylesheet _stylesheet;
private final Parser _parser; // --> can be moved to XSLT
// a single instance cached here
private final Instruction _aloadTranslet;
private final String _domClass;
private final String _domClassSig;
private final String _applyTemplatesSig;
private final String _applyTemplatesSigForImport;
public ClassGenerator(String class_name, String super_class_name,
String file_name,
int access_flags, String[] interfaces,
Stylesheet stylesheet) {
super(class_name, super_class_name, file_name,
access_flags, interfaces);
_stylesheet = stylesheet;
_parser = stylesheet.getParser();
_aloadTranslet = new ALOAD(TRANSLET_INDEX);
if (stylesheet.isMultiDocument()) {
_domClass = "com.sun.org.apache.xalan.internal.xsltc.dom.MultiDOM";
_domClassSig = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/MultiDOM;";
}
else {
_domClass = "com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter";
_domClassSig = "Lcom/sun/org/apache/xalan/internal/xsltc/dom/DOMAdapter;";
}
_applyTemplatesSig = "("
+ Constants.DOM_INTF_SIG
+ Constants.NODE_ITERATOR_SIG
+ Constants.TRANSLET_OUTPUT_SIG
+ ")V";
_applyTemplatesSigForImport = "("
+ Constants.DOM_INTF_SIG
+ Constants.NODE_ITERATOR_SIG
+ Constants.TRANSLET_OUTPUT_SIG
+ Constants.NODE_FIELD_SIG
+ ")V";
}
public final Parser getParser() {
return _parser;
}
public final Stylesheet getStylesheet() {
return _stylesheet;
}
/**
* Pretend this is the stylesheet class. Useful when compiling
* references to global variables inside a predicate.
*/
public final String getClassName() {
return _stylesheet.getClassName();
}
public Instruction loadTranslet() {
return _aloadTranslet;
}
public final String getDOMClass() {
return _domClass;
}
public final String getDOMClassSig() {
return _domClassSig;
}
public final String getApplyTemplatesSig() {
return _applyTemplatesSig;
}
public final String getApplyTemplatesSigForImport() {
return _applyTemplatesSigForImport;
}
/**
* Returns <tt>true</tt> or <tt>false</tt> depending on whether
* this class inherits from <tt>AbstractTranslet</tt> or not.
*/
public boolean isExternal() {
return false;
}
public void addMethod(MethodGenerator methodGen) {
Method[] methodsToAdd = methodGen.getGeneratedMethods(this);
for (int i = 0; i < methodsToAdd.length; i++) {
addMethod(methodsToAdd[i]);
}
}
}
| [
"heystudiosofficial@gmail.com"
] | heystudiosofficial@gmail.com |
1dc58979ccb08a2f0dc6671d75c8233d1bf7bc19 | 8246da9a0ea49ef6e70bfb6bc05148fb6134ed89 | /dianping2/src/main/java/com/tencent/mm/sdk/modelmsg/WXAppExtendObject.java | b06783d3a7d15793946fad43be71e6d62727677d | [] | no_license | hezhongqiang/Dianping | 2708824e30339e1abfb85e028bd27778e26adb56 | b1a4641be06857fcf65466ce04f3de6b0b6f05ef | refs/heads/master | 2020-05-29T08:48:38.251791 | 2016-01-13T08:09:05 | 2016-01-13T08:09:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,018 | java | package com.tencent.mm.sdk.modelmsg;
import android.os.Bundle;
import com.tencent.mm.sdk.b.b;
import java.io.File;
public class WXAppExtendObject
implements WXMediaMessage.IMediaObject
{
private static final int CONTENT_LENGTH_LIMIT = 10485760;
private static final int EXTINFO_LENGTH_LIMIT = 2048;
private static final int PATH_LENGTH_LIMIT = 10240;
private static final String TAG = "MicroMsg.SDK.WXAppExtendObject";
public String extInfo;
public byte[] fileData;
public String filePath;
public WXAppExtendObject()
{
}
public WXAppExtendObject(String paramString1, String paramString2)
{
this.extInfo = paramString1;
this.filePath = paramString2;
}
public WXAppExtendObject(String paramString, byte[] paramArrayOfByte)
{
this.extInfo = paramString;
this.fileData = paramArrayOfByte;
}
private int getFileSize(String paramString)
{
if ((paramString == null) || (paramString.length() == 0));
do
{
return 0;
paramString = new File(paramString);
}
while (!paramString.exists());
return (int)paramString.length();
}
public boolean checkArgs()
{
if (((this.extInfo == null) || (this.extInfo.length() == 0)) && ((this.filePath == null) || (this.filePath.length() == 0)) && ((this.fileData == null) || (this.fileData.length == 0)))
{
b.a("MicroMsg.SDK.WXAppExtendObject", "checkArgs fail, all arguments is null");
return false;
}
if ((this.extInfo != null) && (this.extInfo.length() > 2048))
{
b.a("MicroMsg.SDK.WXAppExtendObject", "checkArgs fail, extInfo is invalid");
return false;
}
if ((this.filePath != null) && (this.filePath.length() > 10240))
{
b.a("MicroMsg.SDK.WXAppExtendObject", "checkArgs fail, filePath is invalid");
return false;
}
if ((this.filePath != null) && (getFileSize(this.filePath) > 10485760))
{
b.a("MicroMsg.SDK.WXAppExtendObject", "checkArgs fail, fileSize is too large");
return false;
}
if ((this.fileData != null) && (this.fileData.length > 10485760))
{
b.a("MicroMsg.SDK.WXAppExtendObject", "checkArgs fail, fileData is too large");
return false;
}
return true;
}
public void serialize(Bundle paramBundle)
{
paramBundle.putString("_wxappextendobject_extInfo", this.extInfo);
paramBundle.putByteArray("_wxappextendobject_fileData", this.fileData);
paramBundle.putString("_wxappextendobject_filePath", this.filePath);
}
public int type()
{
return 7;
}
public void unserialize(Bundle paramBundle)
{
this.extInfo = paramBundle.getString("_wxappextendobject_extInfo");
this.fileData = paramBundle.getByteArray("_wxappextendobject_fileData");
this.filePath = paramBundle.getString("_wxappextendobject_filePath");
}
}
/* Location: C:\Users\xuetong\Desktop\dazhongdianping7.9.6\ProjectSrc\classes-dex2jar.jar
* Qualified Name: com.tencent.mm.sdk.modelmsg.WXAppExtendObject
* JD-Core Version: 0.6.0
*/ | [
"xuetong@dkhs.com"
] | xuetong@dkhs.com |
c6053762870ac85b7facd7439b134b748a349f38 | 8810972d0375c0a853e3a66bd015993932be9fad | /modelicaml/kepler/org.openmodelica.modelicaml.editor.xtext.declaration/src-gen/org/openmodelica/modelicaml/editor/xtext/declaration/declaration/modification.java | 8c99f61fd7a7df3d1e8b166c5a081eaf77ff9aac | [] | no_license | OpenModelica/MDT | 275ffe4c61162a5292d614cd65eb6c88dc58b9d3 | 9ffbe27b99e729114ea9a4b4dac4816375c23794 | refs/heads/master | 2020-09-14T03:35:05.384414 | 2019-11-27T22:35:04 | 2019-11-27T23:08:29 | 222,999,464 | 3 | 2 | null | 2019-11-27T23:08:31 | 2019-11-20T18:15:27 | Java | WINDOWS-1252 | Java | false | false | 3,324 | java | /*
* This file is part of OpenModelica.
*
* Copyright (c) 1998-CurrentYear, Open Source Modelica Consortium (OSMC),
* c/o Linköpings universitet, Department of Computer and Information Science,
* SE-58183 Linköping, Sweden.
*
* All rights reserved.
*
* THIS PROGRAM IS PROVIDED UNDER THE TERMS OF GPL VERSION 3 LICENSE OR
* THIS OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.2.
* ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
* OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3, ACCORDING TO RECIPIENTS CHOICE.
*
* The OpenModelica software and the Open Source Modelica
* Consortium (OSMC) Public License (OSMC-PL) are obtained
* from OSMC, either from the above address,
* from the URLs: http://www.ida.liu.se/projects/OpenModelica or
* http://www.openmodelica.org, and in the OpenModelica distribution.
* GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html.
*
* This program is distributed WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH
* IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS OF OSMC-PL.
*
* See the full OSMC Public License conditions for more details.
*
* Main author: Wladimir Schamai, EADS Innovation Works / Linköping University, 2009-2013
*
* Contributors:
* Uwe Pohlmann, University of Paderborn 2009-2010, contribution to the Modelica code generation for state machine behavior, contribution to Papyrus GUI adaptations
*/
package org.openmodelica.modelicaml.editor.xtext.declaration.declaration;
import org.eclipse.emf.ecore.EObject;
import org.openmodelica.modelicaml.editor.xtext.model.modeleditor.expression;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>modification</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.openmodelica.modelicaml.editor.xtext.declaration.declaration.modification#getExpr <em>Expr</em>}</li>
* </ul>
* </p>
*
* @see org.openmodelica.modelicaml.editor.xtext.declaration.declaration.DeclarationPackage#getmodification()
* @model
* @generated
*/
public interface modification extends EObject
{
/**
* Returns the value of the '<em><b>Expr</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Expr</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Expr</em>' containment reference.
* @see #setExpr(expression)
* @see org.openmodelica.modelicaml.editor.xtext.declaration.declaration.DeclarationPackage#getmodification_Expr()
* @model containment="true"
* @generated
*/
expression getExpr();
/**
* Sets the value of the '{@link org.openmodelica.modelicaml.editor.xtext.declaration.declaration.modification#getExpr <em>Expr</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Expr</em>' containment reference.
* @see #getExpr()
* @generated
*/
void setExpr(expression value);
} // modification
| [
"wschamai"
] | wschamai |
f07c76ebebadeea71e2c3a05845066458cae2356 | 21d748e3318633635b78e0365726171e23b5562c | /sql-dsl/src/main/java/com/neaterbits/query/sql/dsl/api/ISQLLogical_Or_MultiEntity_Named.java | 91053aa0eb4148333e1a4e34359d5416f2aa41d9 | [] | no_license | neaterbits/query | ee9419737e39c53261c01fd31d0679561a303f15 | eaec0deaa91e90ec44402af6fbba41ed9c2bf1a9 | refs/heads/master | 2022-05-04T02:21:42.605462 | 2017-09-10T14:49:35 | 2017-09-10T14:49:35 | 70,929,750 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 586 | java | package com.neaterbits.query.sql.dsl.api;
public interface ISQLLogical_Or_MultiEntity_Named<MODEL, RESULT>
extends
ISharedLogical_Or_Named_All<
MODEL,
RESULT,
ISQLLogical_Or_MultiEntity_Named<MODEL, RESULT>,
ISQLLogical_And_NonProcessResult_Named<MODEL, RESULT>>,
ISharedLogical_Or_Named_Function<
MODEL,
RESULT,
ISQLLogical_Or_MultiEntity_Named<MODEL, RESULT>,
ISQLLogical_And_NonProcessResult_Named<MODEL, RESULT>>,
ISharedProcessResult_OrderBy_Entity_Named<MODEL, RESULT>,
ISharedCompileEndClause<MODEL> {
}
| [
"nils.lorentzen@gmail.com"
] | nils.lorentzen@gmail.com |
29db746f07b28d72363732cf057856ba7acda4ae | 6d5b398c66a46620b7dee5f025e8185a16127edc | /src/main/java/com/osp/web/service/msisdn/ConfigPackageServiceImpl.java | ca7ac948de3a2bc2b68aeea895b2db54b58020d7 | [] | no_license | TieuTruc14/sansim-admin | 488b372f051dff6a1b5c391c43f8db2b43fa560d | 6df9907305aa2a6cced3e892dab782510e08cdc2 | refs/heads/master | 2020-03-27T04:14:56.964377 | 2018-08-24T01:10:15 | 2018-08-24T01:10:15 | 145,924,281 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,903 | java | package com.osp.web.service.msisdn;
import com.osp.common.PagingResult;
import com.osp.model.User;
import com.osp.modelCustomer.ConfigPackage;
import com.osp.web.dao.msisdn.ConfigPackageDao;
import com.osp.web.service.logaccess.LogAccessService;
import com.osp.web.service.transpay.TranspayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.util.List;
import java.util.Optional;
/**
* Created by Admin on 1/3/2018.
*/
@Service
public class ConfigPackageServiceImpl implements ConfigPackageService {
@Autowired
ConfigPackageDao configPackageDao;
@Autowired
LogAccessService logAccessService;
@Autowired
TranspayService transpayService;
@Override
public Optional<PagingResult> page(String packageCode,String packageName,Long from,Long to, PagingResult page) {
return configPackageDao.page(packageCode,packageName,from,to,page);
}
@Override
@Transactional(rollbackFor = Exception.class)
public Optional<Boolean> add(ConfigPackage item, String ipClient) throws Exception {
try{
User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
item.setStatus(Byte.valueOf("1"));
item.setCreateBy(user.getUsername());
item.setGenDate(new Date());
item.setLastUpdated(new Date());
item.setUpdateBy(user.getUsername());
// logAccessService.addLog("Thêm gói phí đăng số. Mã gói:"+id.longValue(),"Quản lý đăng số",ipClient);
configPackageDao.add(item,ipClient).orElse(Long.valueOf(0));
}catch (Exception e){
throw new Exception();
}
return Optional.of(true);
}
@Override
@Transactional(rollbackFor = Exception.class)
public Optional<Boolean> edit(ConfigPackage item, String ipClient) throws Exception{
try{
ConfigPackage itemDB=configPackageDao.get(item.getId()).orElse(null);
if(itemDB==null) return Optional.ofNullable(false);
User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
itemDB.setUpdateBy(user.getUsername());
itemDB.setLastUpdated(new Date());
itemDB.setPackageName(item.getPackageName());
itemDB.setFee(item.getFee());
itemDB.setMaxQuantity(item.getMaxQuantity());
itemDB.setPeriod(item.getPeriod());
logAccessService.addLog("Sửa gói phí đăng số. Mã gói "+item.getId(),"Quản lý đăng số",ipClient);
configPackageDao.edit(itemDB);
}catch (Exception e){
throw new Exception();
}
return Optional.ofNullable(true);
}
@Override
@Transactional(rollbackFor = Exception.class)
public Optional<Integer> delete(Long id, String ipClient) throws Exception {
try {
ConfigPackage itemDB=configPackageDao.get(id).orElse(null);
if(itemDB==null) return Optional.ofNullable(0);
if((new Date()).getTime()-itemDB.getGenDate().getTime()>604800000){
return Optional.ofNullable(2);//ko cho xoa khi da tao qua 7 ngay
}
boolean checkDelete=transpayService.checkTranspayByConfigPackage(itemDB.getId()).orElse(true);
if(checkDelete) return Optional.ofNullable(3);//ko cho xoa khi da co nguoi dang ky goi cuoc
logAccessService.addLog("Thêm gói phí đăng số","Quản lý gói cước",ipClient);
configPackageDao.delete(id);
}catch (Exception e){
throw new Exception();
}
return Optional.ofNullable(1);
}
@Override
public Optional<Boolean> disable(Long id, String ipClient) throws Exception {
try {
ConfigPackage itemDB=configPackageDao.get(id).orElse(null);
if(itemDB==null) return Optional.ofNullable(false);
User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
itemDB.setStatus(Byte.valueOf("0"));
itemDB.setLastUpdated(new Date());
itemDB.setUpdateBy(user.getUsername());
logAccessService.addLog("Khóa gói phí đăng số "+itemDB.getId()+"("+itemDB.getPackageCode()+")","Quản lý gói cước",ipClient);
configPackageDao.edit(itemDB);
}catch (Exception e){
throw new Exception();
}
return Optional.ofNullable(true);
}
@Override
public Optional<Boolean> enable(Long id, String ipClient) throws Exception {
try {
ConfigPackage itemDB=configPackageDao.get(id).orElse(null);
if(itemDB==null) return Optional.ofNullable(false);
User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
itemDB.setStatus(Byte.valueOf("1"));
itemDB.setLastUpdated(new Date());
itemDB.setUpdateBy(user.getUsername());
logAccessService.addLog("Kích hoạt gói phí đăng số "+itemDB.getId()+"("+itemDB.getPackageCode()+")","Quản lý gói cước",ipClient);
configPackageDao.edit(itemDB);
}catch (Exception e){
throw new Exception();
}
return Optional.ofNullable(true);
}
@Override
public Optional<ConfigPackage> get(Long id) {
return configPackageDao.get(id);
}
@Override
public Optional<ConfigPackage> getByPackageCode(String name) {
return configPackageDao.getByPackageCode(name);
}
@Override
public Optional<List<ConfigPackage>> list() {
return configPackageDao.list();
}
}
| [
"manh.phamtien142@gmail.com"
] | manh.phamtien142@gmail.com |
eb84cd5a0f2ec4e73740ab3809b03c6952177789 | 61e13884681f351814eb1646c18d502cdf1435b6 | /hops-aportal/src/main/java/com/yuecheng/hops/aportal/vo/product/ProductVO.java | d73604e0989db584d3a3a37eb20f9c90e92bd3a7 | [] | no_license | jy02718805/HOPS | d8b2b89db79b2c9d4e4560571c6ad29ffc25049c | e7e834221ea4aec1620ce9716dae2eac4e875430 | refs/heads/master | 2021-01-10T09:35:27.930434 | 2016-01-20T08:18:07 | 2016-01-20T08:18:07 | 49,999,762 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,759 | java | package com.yuecheng.hops.aportal.vo.product;
import java.math.BigDecimal;
public class ProductVO
{
public String productName;
public String typeId;
public String productStatus;
private String province;// 省份
private BigDecimal parValue;// 面值
private String carrierName;// 运营商
private String city;
private Long parentProductId;
public String getProductName()
{
return productName;
}
public void setProductName(String productName)
{
this.productName = productName;
}
public String getTypeId()
{
return typeId;
}
public void setTypeId(String typeId)
{
this.typeId = typeId;
}
public String getProductStatus()
{
return productStatus;
}
public void setProductStatus(String productStatus)
{
this.productStatus = productStatus;
}
public String getProvince()
{
return province;
}
public void setProvince(String province)
{
this.province = province;
}
public BigDecimal getParValue()
{
return parValue;
}
public void setParValue(BigDecimal parValue)
{
this.parValue = parValue;
}
public String getCarrierName()
{
return carrierName;
}
public void setCarrierName(String carrierName)
{
this.carrierName = carrierName;
}
public String getCity()
{
return city;
}
public void setCity(String city)
{
this.city = city;
}
public Long getParentProductId()
{
return parentProductId;
}
public void setParentProductId(Long parentProductId)
{
this.parentProductId = parentProductId;
}
}
| [
"jy02718858@163.com"
] | jy02718858@163.com |
184a64f91788a29ac9ae8e1af53dcce419bcb626 | 46ef867eb57c7b7f57b03c00bb16725b18ea8180 | /27.19-armazenando-autorizacoes-consentimento-no-banco-de-dados/algafood-api/src/main/java/com/algaworks/algafood/api/v1/openapi/controller/RestauranteProdutoControllerOpenApi.java | 9447573778c8279ab5b7f6b39c714d552d3b7ef5 | [] | no_license | johnyguido/curso-especialista-spring-rest | cb9d027b50f4982aab677876e09b07fedecd3c81 | 94e99c75e5a8475fee333798145113c5ecff41fe | refs/heads/master | 2023-06-07T22:36:08.802975 | 2023-05-24T17:41:56 | 2023-05-24T17:41:56 | 399,998,423 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,324 | java | package com.algaworks.algafood.api.v1.openapi.controller;
import com.algaworks.algafood.api.v1.model.ProdutoModel;
import com.algaworks.algafood.api.v1.model.input.ProdutoInput;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.hateoas.CollectionModel;
@SecurityRequirement(name = "security_auth")
@Tag(name = "Produtos")
public interface RestauranteProdutoControllerOpenApi {
@Operation(summary = "Lista os produtos de um restaurante", responses = {
@ApiResponse(responseCode = "200"),
@ApiResponse(responseCode = "400", description = "ID do restaurante inválido", content = {
@Content(schema = @Schema(ref = "Problema")) }),
@ApiResponse(responseCode = "404", description = "Restaurante não encontrado", content = {
@Content(schema = @Schema(ref = "Problema")) }),
})
CollectionModel<ProdutoModel> listar(
@Parameter(description = "ID do restaurante", example = "1", required = true) Long restauranteId,
@Parameter(description = "Incluir inativos", example = "false", required = false) Boolean incluirInativos);
@Operation(summary = "Busca um produto de um restaurante", responses = {
@ApiResponse(responseCode = "200"),
@ApiResponse(responseCode = "400", description = "ID do restaurante ou produto inválido", content = {
@Content(schema = @Schema(ref = "Problema")) }),
@ApiResponse(responseCode = "404", description = "Produto de restaurante não encontrado", content = {
@Content(schema = @Schema(ref = "Problema")) }),
})
ProdutoModel buscar(
@Parameter(description = "ID do restaurante", example = "1", required = true) Long restauranteId,
@Parameter(description = "ID do produto", example = "1", required = true) Long produtoId);
@Operation(summary = "Cadastra um produto de um restaurante", responses = {
@ApiResponse(responseCode = "201", description = "Produto cadastrado"),
@ApiResponse(responseCode = "404", description = "Restaurante não encontrado", content = {
@Content(schema = @Schema(ref = "Problema")) }),
})
ProdutoModel adicionar(
@Parameter(description = "ID do restaurante", example = "1", required = true) Long restauranteId,
@RequestBody(description = "Representação de um novo produto", required = true) ProdutoInput produtoInput);
@Operation(summary = "Atualiza um produto de um restaurante", responses = {
@ApiResponse(responseCode = "200", description = "Produto atualizado"),
@ApiResponse(responseCode = "404", description = "Produto de restaurante não encontrado", content = {
@Content(schema = @Schema(ref = "Problema")) }),
})
ProdutoModel atualizar(
@Parameter(description = "ID do restaurante", example = "1", required = true) Long restauranteId,
@Parameter(description = "ID do produto", example = "1", required = true) Long produtoId,
@RequestBody(description = "Representação de um produto com os novos dados", required = true) ProdutoInput produtoInput);
} | [
"alex.silva@algaworks.com.br"
] | alex.silva@algaworks.com.br |
9746564db83a7cd5356c77e3057e42a9a363339b | 7ced6c0ed03f2f9345bbc06a09dbbcf5c8687619 | /catering-basic-server/catering-es/catering-es-server/src/main/java/com/meiyuan/catering/es/dto/merchant/DiscountQuery.java | bd4adb2e5b99e0f739798a8723d94801ac9e1dbf | [] | no_license | haorq/food-word | c14d5752c6492aed4a6a1410f9e0352479460da0 | 18a71259d77b4d96261dab8ed51ca1f109ab5c2f | refs/heads/master | 2023-01-01T12:19:48.967366 | 2020-10-26T07:32:25 | 2020-10-26T07:32:25 | 307,292,398 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 629 | java | package com.meiyuan.catering.es.dto.merchant;
import com.meiyuan.catering.core.page.BasePageDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import java.util.List;
/**
* @author zengzhangni
* @date 2020/9/3 11:31
* @since v1.1.0
*/
@Builder
@Data
public class DiscountQuery extends BasePageDTO {
private String cityCode;
private Integer deliveryType;
private Integer activityType;
@ApiModelProperty("指定查询的门店id集合, null 查询所有")
private List<String> appointShopIds;
private Integer ofType;
private Integer objectLimit;
}
| [
"386234736"
] | 386234736 |
4910503ae908d157214a5ed8db0fbe83932c9b8f | 7e24a8d22ed0bce7e3a290130a7def76f53a5378 | /urtruck/com.urt.dao/src/main/java/com/urt/po/LaoUserIpManager.java | ee4bc152f6e228610c49d785cc14f4b9ce63cc56 | [
"Apache-2.0"
] | permissive | tenchoo/URTrack | 4b036e1e23af8c28afd1a381a950c4bc455dc00e | 3ac0b03b3a0359b51d6bd794629cf9b27191976c | refs/heads/master | 2021-07-02T13:13:52.814514 | 2017-09-23T14:09:50 | 2017-09-23T14:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,718 | java | package com.urt.po;
import java.io.Serializable;
import java.util.Date;
public class LaoUserIpManager implements Serializable {
private Long id;
private Long custId;
private String ipAddress;
private Date updatDate;
private Date creatDate;
private String paraName1;
private String paraName2;
private Short isdisabled;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
private static final long serialVersionUID = 1L;
public Long getCustId() {
return custId;
}
public void setCustId(Long custId) {
this.custId = custId;
}
public String getIpAddress() {
return ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress == null ? null : ipAddress.trim();
}
public Date getUpdatDate() {
return updatDate;
}
public void setUpdatDate(Date updatDate) {
this.updatDate = updatDate;
}
public Date getCreatDate() {
return creatDate;
}
public void setCreatDate(Date creatDate) {
this.creatDate = creatDate;
}
public String getParaName1() {
return paraName1;
}
public void setParaName1(String paraName1) {
this.paraName1 = paraName1 == null ? null : paraName1.trim();
}
public String getParaName2() {
return paraName2;
}
public void setParaName2(String paraName2) {
this.paraName2 = paraName2 == null ? null : paraName2.trim();
}
public Short getIsdisabled() {
return isdisabled;
}
public void setIsdisabled(Short isdisabled) {
this.isdisabled = isdisabled;
}
} | [
"519344289@qq.com"
] | 519344289@qq.com |
6f442d6cf16b6fb6a9f22ab6eab87043292d43c7 | 9df552a636a3f6c77bb309d18ea8e62c6ed8f2ef | /src/main/java/com/frankcooper/platform/leetcode/bank/_101_200/_189.java | d9ca8901fd51b245ad4c627fb9c615df9822b7aa | [] | no_license | wat1r/geek-algorithm-leetcode | a1bef16541f771bec5c5dd44d8b4634a6251dc08 | 46c0ced5bb069b33bc253366f30feb52b5fb0fa9 | refs/heads/master | 2023-07-19T17:52:41.153871 | 2023-07-19T14:01:14 | 2023-07-19T14:01:14 | 245,184,502 | 19 | 4 | null | 2022-06-17T03:38:06 | 2020-03-05T14:28:48 | Java | UTF-8 | Java | false | false | 3,234 | java | package com.frankcooper.platform.leetcode.bank._101_200;
public class _189 {
public static void main(String[] args) {
// static _2nd handler = new _2nd();
_1st handler = new _1st();
// handler.rotate(new int[]{1, 2, 3, 4, 5, 6, 7}, 0, 6);
handler.rotate(new int[]{1, 2, 3, 4, 5, 6, 7}, 3);
}
static class _1st {
public void rotate(int[] nums, int k) {
int n = nums.length;
int[] tmp = new int[n];
for (int i = 0; i < n; i++) tmp[(i + k) % n] = nums[i];
for (int i = 0; i < n; i++) nums[i] = tmp[i];
}
}
static class _2nd {
public void rotate(int[] nums, int k) {
int n = nums.length;
k %= n;
reverse(nums, 0, n - 1);
reverse(nums, 0, k - 1);
reverse(nums, k, n - 1);
}
public void reverse(int[] A, int l, int r) {
while (l < r) {
int m = A[l];
A[l++] = A[r];
A[r--] = m;
}
}
}
static class _3rd {
public static void main(String[] args) {
_3rd handler = new _3rd();
int[] nums = {1, 2, 3, 4, 5, 6, 7};
int k = 3;
handler.rotate(nums, k);
}
public void rotate(int[] nums, int k) {
int n = nums.length;
k %= n;
reverse(nums, 0, n - 1);
reverse(nums, 0, k - 1);
reverse(nums, k, n - 1);
}
private void reverse(int[] nums, int l, int r) {
while (l < r) {
int t = nums[l];
nums[l++] = nums[r];
nums[r--] = t;
}
}
}
static class _4th {
public void rotate(int[] nums, int k) {
int n = nums.length;
int[] arr = new int[n];
for (int i = 0; i < n; i++) arr[(i + k) % n] = nums[i];
for (int i = 0; i < n; i++) nums[i] = arr[i];
}
}
static class _5th {
public static void main(String[] args) {
_5th handler = new _5th();
int[] arr = new int[]{1, 2, 3, 4, 5, 6, 7};
int k = 3;
handler.rotate(arr, k);
}
/**
* https://leetcode-cn.com/problems/rotate-array/solution/xuan-zhuan-shu-zu-yuan-di-huan-wei-xiang-xi-tu-jie/
* @param nums
* @param k
*/
public void rotate(int[] nums, int k) {
int n = nums.length;
k = k % n;
int cnt = 0;//交换的次数 交换的次数是n次
for (int i = 0; cnt < n; i++) {
int curIdx = i;//当前的元素下标
int curV = nums[curIdx];//当前元素
do {
int nxtIdx = (curIdx + k) % n;//下一个元素
int t = nums[nxtIdx];//暂存下一个元素
nums[nxtIdx] = curV;//当前元素占据下一个元素的位置
curV = t;//移动 元素 下标
curIdx = nxtIdx;
cnt++;//移动次数+1
} while (curIdx != i);//放在后面
}
}
}
}
| [
"cnwangzhou@hotmail.com"
] | cnwangzhou@hotmail.com |
13f5994c33f5ecfeda6998e35f627a6bbac5f1e2 | 7d7718936e2daf900e62ef183ff72bd4336ce6fd | /src/main/java/com/robertx22/age_of_exile/vanilla_mc/items/gearitems/weapons/AxeWeapon.java | a7e9e5f007b35d41b3b8f95f7e067c91fc3cd12a | [] | no_license | SF-s-Translation-repository/Age-of-Exile | 75d1543736a4fc792066afd32f9a34efa0b6ba36 | df075178517584c2b16fa5877a96e48aa4fc109e | refs/heads/master | 2023-04-15T22:51:03.276732 | 2021-04-23T14:00:24 | 2021-04-23T14:00:24 | 282,349,542 | 0 | 0 | null | 2021-04-23T13:48:29 | 2020-07-25T01:42:42 | Java | UTF-8 | Java | false | false | 1,071 | java | package com.robertx22.age_of_exile.vanilla_mc.items.gearitems.weapons;
import com.robertx22.age_of_exile.vanilla_mc.items.gearitems.bases.SingleTargetWeapon;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.Material;
import net.minecraft.item.ItemStack;
public class AxeWeapon extends SingleTargetWeapon {
public AxeWeapon(String locname) {
super(locname);
this.attackSpeed = -3F;
}
@Override
public boolean isEffectiveOn(BlockState blockIn) {
return blockIn.getBlock() == Blocks.COBWEB;
}
@Override
public float getMiningSpeedMultiplier(ItemStack stack, BlockState state) {
Block block = state.getBlock();
if (block == Blocks.COBWEB) {
return 15.0F;
} else {
Material material = state.getMaterial();
return material != Material.PLANT && material != Material.UNUSED_PLANT && material != Material.LEAVES && material != Material.GOURD ? 1.0F : 1.5F;
}
}
}
| [
"treborx555@gmail.com"
] | treborx555@gmail.com |
903594ffcd65487741e97f94aa03bc5628d0f30f | 19156214d3c456e7aa9b34183a928ef144b3c206 | /src/teamengine-4.0.5/com/occamlab/te/util/ZipUtils.java | 0a677370056d194760dba652ee9dc327ad527268 | [] | no_license | opengeospatial/teamengine-offline | 85549dbab9ff681c4f6b09dfabce1e4b85ce4206 | 6b81fc3fc4647e8f68ba433701199b0e68fc36d2 | refs/heads/master | 2021-01-01T19:24:08.817030 | 2014-12-18T17:35:06 | 2014-12-18T17:35:06 | 21,212,109 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,881 | java | package com.occamlab.te.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
public class ZipUtils {
// Zips the directory and all of it's sub directories
public static void zipDir(File zipFile, File dirObj) throws Exception {
// File dirObj = new File(dir);
if (!dirObj.isDirectory()) {
System.err.println(dirObj.getName() + " is not a directory");
System.exit(1);
}
try {
ZipOutputStream out = new ZipOutputStream(new FileOutputStream(
zipFile));
System.out.println("Creating : " + zipFile);
addDir(dirObj, out);
// Complete the ZIP file
out.close();
} catch (IOException e) {
throw new Exception(e.getMessage());
}
}
// Add directory to zip file
private static void addDir(File dirObj, ZipOutputStream out)
throws IOException {
File[] dirList = dirObj.listFiles();
byte[] tmpBuf = new byte[1024];
for (int i = 0; i < dirList.length; i++) {
if (dirList[i].isDirectory()) {
addDir(dirList[i], out);
continue;
}
FileInputStream in = new FileInputStream(
dirList[i].getAbsolutePath());
System.out.println(" Adding: " + dirList[i].getAbsolutePath());
out.putNextEntry(new ZipEntry(dirList[i].getAbsolutePath()));
// Transfer from the file to the ZIP file
int len;
while ((len = in.read(tmpBuf)) > 0) {
out.write(tmpBuf, 0, len);
}
// Complete the entry
out.closeEntry();
in.close();
}
}
}
| [
"rjmartell@computer.org"
] | rjmartell@computer.org |
f5b9d9d9e16454597260b722edc58834a5883c58 | 0c359e241cce729ce777db41d3a4feefa48c30c0 | /src/main/java/com/controllerface/cmdr_j/classes/recipes/synthesis/Chaff_Standard.java | c9f5a9ea1a33fc1ce05b7a87ce29818cd61d8491 | [] | no_license | controllerface/CMDR-J | 760cafe4b89fc86715ee7941d66eaaf7978cf067 | 9fc70e1ae2f2119e3dc93bbc9a26544526beb56a | refs/heads/main | 2022-09-29T02:43:58.308231 | 2022-09-12T02:09:01 | 2022-09-12T02:09:01 | 128,938,494 | 1 | 1 | null | 2021-11-21T01:42:20 | 2018-04-10T13:37:30 | Java | UTF-8 | Java | false | false | 972 | java | package com.controllerface.cmdr_j.classes.recipes.synthesis;
import com.controllerface.cmdr_j.classes.data.ItemEffects;
import com.controllerface.cmdr_j.classes.data.CostData;
import com.controllerface.cmdr_j.classes.data.ItemEffectData;
import com.controllerface.cmdr_j.classes.recipes.AbstractSynthesisRecipe_Standard;
import com.controllerface.cmdr_j.enums.costs.materials.Material;
import com.controllerface.cmdr_j.enums.equipment.modules.stats.ItemEffect;
public class Chaff_Standard extends AbstractSynthesisRecipe_Standard
{
public Chaff_Standard()
{
super("Chaff [Standard]",
new ItemEffects(
new ItemEffectData(ItemEffect.Refill, "synthesized"),
new ItemEffectData(ItemEffect.Chaff_Duration_Increase, 1.0)
),
new CostData(Material.COMPACTCOMPOSITES, 1),
new CostData(Material.FILAMENTCOMPOSITES, 2),
new CostData(Material.THERMICALLOYS, 1));
}
} | [
"controll.face@gmail.com"
] | controll.face@gmail.com |
3caecad3bc610d3367416264af7f2884c161bdd6 | 097df92ce1bfc8a354680725c7d10f0d109b5b7d | /com/amazon/ws/emr/hadoop/fs/shaded/com/amazonaws/protocol/json/internal/ValueToStringConverters$6.java | 780cfbb56156fd866c407b19258d9e26dadada9f | [] | no_license | cozos/emrfs-hadoop | 7a1a1221ffc3aa8c25b1067cf07d3b46e39ab47f | ba5dfa631029cb5baac2f2972d2fdaca18dac422 | refs/heads/master | 2022-10-14T15:03:51.500050 | 2022-10-06T05:38:49 | 2022-10-06T05:38:49 | 233,979,996 | 2 | 2 | null | 2022-10-06T05:41:46 | 2020-01-15T02:24:16 | Java | UTF-8 | Java | false | false | 541 | java | package com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws.protocol.json.internal;
import com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws.util.StringUtils;
final class ValueToStringConverters$6
implements ValueToStringConverters.ValueToString<Double>
{
public String convert(Double val)
{
return StringUtils.fromDouble(val);
}
}
/* Location:
* Qualified Name: com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws.protocol.json.internal.ValueToStringConverters.6
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/ | [
"Arwin.tio@adroll.com"
] | Arwin.tio@adroll.com |
b0ae15d7a38d83e8967da2d5bb74aa61e851dbfa | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /java/neo4j/2015/8/StatementRunner.java | 566a2beaf3ba5f86586404313a5a898d0421e131 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Java | false | false | 1,304 | java | /*
* Copyright (c) 2002-2015 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 org.neo4j.ndp.runtime.spi;
import java.util.Map;
import org.neo4j.kernel.api.exceptions.KernelException;
import org.neo4j.ndp.runtime.internal.SessionState;
/**
* A runtime handler can handle a textual input language, yielding results. Query engines are not expected to be
* thread safe, each worker thread will have one query engine instance.
*/
public interface StatementRunner
{
RecordStream run( SessionState ctx, String statement, Map<String,Object> params ) throws KernelException;
}
| [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
ec1653a28334f47f831cc41520548a09c0f708a2 | cda2109e3fd7be349d6235332b77384b70c15915 | /src/main/java/org/voovan/http/client/HttpClient.java | a035a723c520393f68e58909ca23e5b44c083a5d | [
"Apache-2.0"
] | permissive | backoffbelief/Voovan | 75eaf8dc7e634f4922f72b06ee85e4fdfc0d5217 | 626d33a768f3ddbdb45f76dbe1b00b17fde80fc1 | refs/heads/master | 2020-12-31T02:13:52.895591 | 2015-05-25T03:57:57 | 2015-05-25T03:57:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,871 | java | package org.voovan.http.client;
import java.io.IOException;
import java.net.URL;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import org.voovan.http.message.Request;
import org.voovan.http.message.Response;
import org.voovan.http.message.Request.RequestType;
import org.voovan.http.message.packet.Header;
import org.voovan.http.message.packet.Part;
import org.voovan.network.aio.AioSocket;
import org.voovan.network.messagesplitter.HttpMessageSplitter;
import org.voovan.tools.TEnv;
import org.voovan.tools.TString;
import org.voovan.tools.log.Logger;
/**
* HTTP 请求调用
* @author helyho
*
* Voovan Framework.
* WebSite: https://github.com/helyho/Voovan
* Licence: Apache v2 License
*/
public class HttpClient {
private AioSocket socket;
private HttpClientHandler clientHandler;
private Request request;
private Map<String, Object> parameters;
private String charset="UTF-8";
/**
* 构建函数
* @param urlString 请求的 URL 地址
*/
public HttpClient(String urlString) {
init(urlString);
}
/**
* 构建函数
* @param urlString 请求的 URL 地址
*/
public HttpClient(String urlString,String charset) {
this.charset = charset;
init(urlString);
}
private void init(String urlString){
try {
URL url = new URL(urlString);
String hostString = url.getHost();
int port = url.getPort();
request = new Request();
//初始化请求参数,默认值
request.protocol().setPath(url.getPath().isEmpty()?"/":url.getPath());
request.header().put("Host", hostString);
request.header().put("Pragma", "no-cache");
request.header().put("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
request.header().put("User-Agent", "Voovan Http Client");
request.header().put("Accept-Encoding","gzip,deflate,sdch");
request.header().put("Connection","keep-alive");
socket = new AioSocket(hostString, port==-1?80:port, 5000);
parameters = new HashMap<String, Object>();
} catch (IOException e) {
Logger.error("HttpClient init error. ",e);
}
}
/**
* 设置请求方法
* @param method
*/
public HttpClient setMethod(String method){
request.protocol().setMethod(method);
return this;
}
/**
* 获取请求头集合
* @return
*/
public Header getHeader(){
return request.header();
}
/**
* 获取请求参数集合
* @return
*/
public Map<String,Object> getParameters(){
return parameters;
}
/**
* 设置POST多段请求
* 类似 Form 的 Actiong="POST" enctype="multipart/form-data"
* @param method
*/
public HttpClient addPart(Part part){
request.parts().add(part);
return this;
}
/**
* 设置请求参数
* @param name
* @param value
* @return
*/
public HttpClient putParameters(String name,Object value){
parameters.put(name, value);
return this;
}
/**
* 构建QueryString
* 将 Map 集合转换成 QueryString 字符串
* @return
*/
private String getQueryString(){
String queryString = "";
try {
for (Entry<String, Object> parameter : parameters.entrySet()) {
queryString += parameter.getKey()
+ "="
+ URLEncoder.encode(parameter.getValue().toString(), charset)
+ "&";
}
queryString = queryString.length()>0?TString.removeSuffix(queryString):queryString;
} catch (IOException e) {
Logger.error("HttpClient getQueryString error. ",e);
}
return queryString.isEmpty()? "" :"?"+queryString;
}
/**
* 构建请求
*/
private void buildRequest(){
if (request.getType() == RequestType.GET) {
String queryString = getQueryString();
request.protocol().setPath(request.protocol().getPath() + queryString);
} else if(request.getType() == RequestType.POST && request.parts().size()!=0){
try{
for (Entry<String, Object> parameter : parameters.entrySet()) {
Part part = new Part();
part.header().put("name", parameter.getKey());
part.body().write(URLEncoder.encode(parameter.getValue().toString(),charset).getBytes());
request.parts().add(part);
}
} catch (IOException e) {
Logger.error("HttpClient buildRequest error. ",e);
}
} else if(request.getType() == RequestType.POST && request.parts().isEmpty()){
request.body().write(TString.removePrefix(getQueryString()),charset);
}
}
/**
* 连接并发送请求
* @return
* @throws IOException
*/
public Response connect() throws IOException {
buildRequest();
clientHandler = new HttpClientHandler(request);
socket.handler(clientHandler);
socket.filterChain().add(new HttpClientFilter());
socket.messageSplitter(new HttpMessageSplitter());
socket.start();
//等待获取 response并返回
while(clientHandler.getResponse()==null){
TEnv.sleep(100);
}
return clientHandler.getResponse();
}
}
| [
"helyho@gmail.com"
] | helyho@gmail.com |
9bf37a8bff0c27fd2ca80cfb7a5925e2901d5e28 | 29f80c707a1484826dc1b316bb00ba2aefc5e227 | /6° Modulo/desafios/java-11: Criando endpoints com Spring/src/main/java/com/challenge/endpoints/CompanyController.java | 7c468e1aec24747e73de7e2283fab89931350068 | [] | no_license | marcelosoliveira/aceleracao-java | f892cac90922f73aa834783947e7a4dcdab415b5 | adb4d065c457abddb8acc64a7b69597dbbcdb6bf | refs/heads/master | 2023-04-20T17:07:28.791559 | 2021-05-14T23:57:16 | 2021-05-14T23:57:16 | 338,312,704 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,159 | java | package com.challenge.endpoints;
import com.challenge.entity.Company;
import com.challenge.service.impl.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.websocket.server.PathParam;
import java.util.List;
import java.util.Optional;
@RestController
@RequestMapping("/company")
public class CompanyController {
@Autowired
private CompanyService companyService;
@GetMapping("/{id}")
public Optional<Company> findById(@PathVariable("id") Long id) {
return this.companyService.findById(id);
}
@GetMapping
public List<Company> findAccelerationId(@PathParam("accelerationId") Long accelerationId,
@PathParam("userId") Long userId) {
if (userId != null) return this.companyService.findByUserId(userId);
return this.companyService.findByAccelerationId(accelerationId);
}
}
| [
"msbobsk8@gmail.com"
] | msbobsk8@gmail.com |
42763dc510cf36f2fef5249da075a65b0c18462d | 5ab5fa9e6571b60a91576cf51006236e48de07b6 | /spring-webmvc/src/test/java/org/springframework/web/servlet/resource/CssLinkResourceTransformerTests.java | 9ae03f643199b5272f5d3c8041966263c1cf2341 | [
"Apache-2.0"
] | permissive | tuojiang/spring-framework-4.3.x | 0d97285dcb5f57ec75ba03b4deadcdfec131cd60 | 229fc731ed96ffcac46e2d9d9158947c2700404f | refs/heads/master | 2020-05-01T15:56:57.839507 | 2019-04-16T09:49:28 | 2019-04-16T09:49:28 | 177,559,545 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,760 | java | /*
* Copyright 2002-2014 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.web.servlet.resource;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.mock.web.test.MockHttpServletRequest;
import org.springframework.util.StringUtils;
import static org.junit.Assert.*;
/**
* Unit tests for
* {@link org.springframework.web.servlet.resource.CssLinkResourceTransformer}.
*
* @author Rossen Stoyanchev
* @since 4.1
*/
public class CssLinkResourceTransformerTests {
private ResourceTransformerChain transformerChain;
private MockHttpServletRequest request;
@Before
public void setUp() {
VersionResourceResolver versionResolver = new VersionResourceResolver();
versionResolver.setStrategyMap(Collections.singletonMap("/**", new ContentVersionStrategy()));
PathResourceResolver pathResolver = new PathResourceResolver();
pathResolver.setAllowedLocations(new ClassPathResource("test/", getClass()));
List<ResourceResolver> resolvers = Arrays.asList(versionResolver, pathResolver);
List<ResourceTransformer> transformers = Arrays.asList(new CssLinkResourceTransformer());
ResourceResolverChain resolverChain = new DefaultResourceResolverChain(resolvers);
this.transformerChain = new DefaultResourceTransformerChain(resolverChain, transformers);
this.request = new MockHttpServletRequest();
}
@Test
public void transform() throws Exception {
Resource css = new ClassPathResource("test/main.css", getClass());
TransformedResource actual = (TransformedResource) this.transformerChain.transform(this.request, css);
String expected = "\n" +
"@import url(\"bar-11e16cf79faee7ac698c805cf28248d2.css\");\n" +
"@import url('bar-11e16cf79faee7ac698c805cf28248d2.css');\n" +
"@import url(bar-11e16cf79faee7ac698c805cf28248d2.css);\n\n" +
"@import \"foo-e36d2e05253c6c7085a91522ce43a0b4.css\";\n" +
"@import 'foo-e36d2e05253c6c7085a91522ce43a0b4.css';\n\n" +
"body { background: url(\"images/image-f448cd1d5dba82b774f3202c878230b3.png\") }\n";
String result = new String(actual.getByteArray(), "UTF-8");
result = StringUtils.deleteAny(result, "\r");
assertEquals(expected, result);
}
@Test
public void transformNoLinks() throws Exception {
Resource expected = new ClassPathResource("test/foo.css", getClass());
Resource actual = this.transformerChain.transform(this.request, expected);
assertSame(expected, actual);
}
@Test
public void transformExtLinksNotAllowed() throws Exception {
ResourceResolverChain resolverChain = Mockito.mock(DefaultResourceResolverChain.class);
ResourceTransformerChain transformerChain = new DefaultResourceTransformerChain(resolverChain,
Arrays.asList(new CssLinkResourceTransformer()));
Resource externalCss = new ClassPathResource("test/external.css", getClass());
Resource resource = transformerChain.transform(this.request, externalCss);
TransformedResource transformedResource = (TransformedResource) resource;
String expected = "@import url(\"http://example.org/fonts/css\");\n" +
"body { background: url(\"file:///home/spring/image.png\") }\n" +
"figure { background: url(\"//example.org/style.css\")}";
String result = new String(transformedResource.getByteArray(), "UTF-8");
result = StringUtils.deleteAny(result, "\r");
assertEquals(expected, result);
Mockito.verify(resolverChain, Mockito.never())
.resolveUrlPath("http://example.org/fonts/css", Arrays.asList(externalCss));
Mockito.verify(resolverChain, Mockito.never())
.resolveUrlPath("file:///home/spring/image.png", Arrays.asList(externalCss));
Mockito.verify(resolverChain, Mockito.never())
.resolveUrlPath("//example.org/style.css", Arrays.asList(externalCss));
}
@Test
public void transformWithNonCssResource() throws Exception {
Resource expected = new ClassPathResource("test/images/image.png", getClass());
Resource actual = this.transformerChain.transform(this.request, expected);
assertSame(expected, actual);
}
}
| [
"yihongou@tcl.com"
] | yihongou@tcl.com |
9fab1198acfb8e669adcff7cf9a2850550eb8721 | 79f6846869ead4470e3197ba384635b01afe5194 | /src/com/lnpdit/mobilealarm/eventbus/MEvent.java | 6204b30902358aec4fedba47e10d4c8c3b5e0483 | [
"Apache-2.0"
] | permissive | yinbingqian/SurveyManagement | 8509878199885c9161b0a6f3e449d836476bd841 | 176d301c528a6c86417e55468c534f6a2e84aa00 | refs/heads/master | 2021-01-09T20:16:44.415583 | 2016-06-12T05:50:32 | 2016-06-12T05:50:32 | 60,940,352 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 426 | java | package com.lnpdit.mobilealarm.eventbus;
public class MEvent {
private int event_code;
private Object obj;
public int getEvent_code() {
return event_code;
}
public void setEvent_code(int event_code) {
this.event_code = event_code;
}
public Object getObj() {
return obj;
}
public void setObj(Object obj) {
this.obj = obj;
}
}
| [
"857952812@qq.com"
] | 857952812@qq.com |
56bf98b90db8ffd571c7dad1895bb688258a7387 | 323c723bdbdc9bdf5053dd27a11b1976603609f5 | /nssicc/nssicc_dao/src/main/java/biz/belcorp/ssicc/dao/scdf/model/Producto.java | 2148acba3981ac3fb1fc704e6a4d8da90ceea813 | [] | no_license | cbazalar/PROYECTOS_PROPIOS | adb0d579639fb72ec7871334163d3fef00123a1c | 3ba232d1f775afd07b13c8246d0a8ac892e93167 | refs/heads/master | 2021-01-11T03:38:06.084970 | 2016-10-24T01:33:00 | 2016-10-24T01:33:00 | 71,429,267 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,198 | java | /*
* Created on 08/10/2005 02:09:25 PM
*
* biz.belcorp.ssicc.model.Producto
*/
package biz.belcorp.ssicc.dao.scdf.model;
import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import biz.belcorp.ssicc.dao.framework.model.AuditableBaseObject;
/**
* POJO que almacena la informacion de los productos Privilege.
* <p>
* <a href="Producto.java.html"> <i>View Source </i> </a>
* </p>
*
* @author <a href="mailto:cahurtado@belcorp.biz">Carlos Hurtado Ramrez </a>
*/
public class Producto extends AuditableBaseObject implements Serializable {
/**
*
*/
private static final long serialVersionUID = 2806656200873556048L;
private String codigoPais;
private String codigo;
private String descripcion;
private Boolean indicadorGeneracionStickers;
private String estado;
private int puntajeSticker;
private ProductoPK primaryKey;
/**
* @return Returns the codigo.
*/
public String getCodigo() {
return codigo;
}
/**
* @param codigo
* The codigo to set.
*/
public void setCodigo(String codigo) {
this.codigo = codigo;
}
/**
* @return Returns the codigoPais.
*/
public String getCodigoPais() {
return codigoPais;
}
/**
* @param codigoPais
* The codigoPais to set.
*/
public void setCodigoPais(String codigoPais) {
this.codigoPais = codigoPais;
}
/**
* @return Returns the descripcion.
*/
public String getDescripcion() {
return descripcion;
}
/**
* @param descripcion
* The descripcion to set.
*/
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
/**
* @return Returns the estado.
*/
public String getEstado() {
return estado;
}
/**
* @param estado
* The estado to set.
*/
public void setEstado(String estado) {
this.estado = estado;
}
/**
* @return Returns the indicadorGeneracionStickers.
*/
public Boolean getIndicadorGeneracionStickers() {
return indicadorGeneracionStickers;
}
/**
* @param indicadorGeneracionStickers
* The indicadorGeneracionStickers to set.
*/
public void setIndicadorGeneracionStickers(
Boolean indicadorGeneracionStickers) {
this.indicadorGeneracionStickers = indicadorGeneracionStickers;
}
/**
* @return Returns the puntajeSticker.
*/
public int getPuntajeSticker() {
return puntajeSticker;
}
/**
* @param puntajeSticker The puntajeSticker to set.
*/
public void setPuntajeSticker(int puntajeSticker) {
this.puntajeSticker = puntajeSticker;
}
/**
* @return Returns the primaryKey.
*/
public ProductoPK getPrimaryKey() {
return primaryKey;
}
/**
* @param primaryKey
* The primaryKey to set.
*/
public void setPrimaryKey(ProductoPK primaryKey) {
this.primaryKey = primaryKey;
}
/**
* @see java.lang.Object#equals(Object)
*/
public boolean equals(Object object) {
if (!(object instanceof Producto)) {
return false;
}
Producto rhs = (Producto) object;
return new EqualsBuilder().append(this.primaryKey, rhs.primaryKey)
.append(this.codigoPais, rhs.codigoPais).append(
this.indicadorGeneracionStickers,
rhs.indicadorGeneracionStickers).append(
this.descripcion, rhs.descripcion).append(
this.puntajeSticker, rhs.puntajeSticker).append(
this.auditInfo, rhs.auditInfo).append(this.estado,
rhs.estado).append(this.codigo, rhs.codigo).isEquals();
}
/**
* @see java.lang.Object#hashCode()
*/
public int hashCode() {
return new HashCodeBuilder(-180655219, -1844531407).append(
this.primaryKey).append(this.codigoPais).append(
this.indicadorGeneracionStickers).append(this.descripcion)
.append(this.puntajeSticker).append(this.auditInfo).append(
this.estado).append(this.codigo).toHashCode();
}
/**
* @see java.lang.Object#toString()
*/
public String toString() {
return new ToStringBuilder(this)
.append("codigoPais", this.codigoPais).append("estado",
this.estado).append("indicadorGeneracionStickers",
this.indicadorGeneracionStickers).append("auditInfo",
this.auditInfo).append("codigo", this.codigo).append(
"primaryKey", this.primaryKey).append("puntajeSticker",
this.puntajeSticker).append("descripcion",
this.descripcion).toString();
}
} | [
"cbazalarlarosa@gmail.com"
] | cbazalarlarosa@gmail.com |
4f6d9755be6c7ab89c8b94d81618a1671d802e8b | a5d1355228908daf110db93a8641f212f5e9fbb1 | /src/main/java/gov/va/oit/vistaevolution/fileman/ws/ddr3/model/DDR3ValCResponse.java | 6840cd6b90a700c49dfa42d77dbc800a33ce6758 | [] | no_license | MillerTom/Evolution | 24d10c0cad9887fcfeee5266a69fa9d98df66334 | 448a3136fa2205c12f135a432f7912317195482a | refs/heads/master | 2016-08-12T16:56:18.896488 | 2016-01-01T01:53:03 | 2016-01-01T01:53:03 | 48,867,152 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 902 | java | package gov.va.oit.vistaevolution.fileman.ws.ddr3.model;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class DDR3ValCResponse {
@XmlElementWrapper(name = "dataList")
@XmlElement(name = "dataElement", required = false)
private List<String> dataList;
public DDR3ValCResponse() {
super();
}
public DDR3ValCResponse(List<String> dataList) {
super();
this.dataList = dataList;
}
/**
* @return the dataList
*/
public List<String> getDataList() {
return dataList;
}
/**
* @param dataList the dataList to set
*/
public void setDataList(List<String> dataList) {
this.dataList = dataList;
}
}
| [
"tom.a.miller@gmail.com"
] | tom.a.miller@gmail.com |
5c937491b0e219918bf3db1d59a60eb9ad26161a | 54b9e132bbb6f8baf850846925fd7126c5022772 | /5.implementation/NXP/redsun/src/main/java/com/redsun/dao/mapper/MenuRowMapper.java | 974e8c80f2bd3e225caf5cfc334d3ee39e91144d | [] | no_license | treviets/BIM | 40a10afdf6ff57939ac1c2105e23c0330b0a8fdc | ab6c85dd90ec4d8b6b89f79b07325aa54bafa09f | refs/heads/master | 2020-03-18T18:51:45.697405 | 2018-05-28T06:36:25 | 2018-05-28T06:36:25 | 135,119,151 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 734 | java | package com.redsun.dao.mapper;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.redsun.entities.Menu;
public class MenuRowMapper implements RowMapper<Menu> {
public Menu mapRow(ResultSet rs, int rowNum) throws SQLException {
Menu menu = null;
menu = new Menu();
menu.setId(rs.getInt("id"));
menu.setName(rs.getString("name"));
menu.setDescription(rs.getString("description"));
menu.setUrl(rs.getString("url"));
menu.setIconClass(rs.getString("iconclass"));
menu.setPosition(rs.getInt("position"));
menu.setStatus(rs.getString("status"));
// menu.setPermission(rs.getString("permission"));
return menu;
}
}
| [
"caohongvu@gmail.com"
] | caohongvu@gmail.com |
3f81381b87386f5add64c43ac47298ff8416b6a6 | d9738e7c7d0a542e43201ff04cf40c8570152486 | /src/main/java/net/simpleframework/mvc/component/base/submit/SubmitRender.java | f847b3145ddbabd7380228fab2a30da0ffece58d | [] | no_license | simple4/simple-mvc-impl | f18008e57eb2265d65ddee87d199de89cdd49c9f | efd23e259a95bdf5395173400a1f913854e28425 | refs/heads/master | 2016-08-07T10:31:31.092982 | 2012-11-24T16:06:54 | 2012-11-24T16:06:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,824 | java | package net.simpleframework.mvc.component.base.submit;
import static net.simpleframework.common.I18n.$m;
import net.simpleframework.common.StringUtils;
import net.simpleframework.common.html.js.JavascriptUtils;
import net.simpleframework.mvc.IForward;
import net.simpleframework.mvc.MVCContextFactory;
import net.simpleframework.mvc.component.AbstractComponentRender.ComponentJavascriptRender;
import net.simpleframework.mvc.component.ComponentParameter;
import net.simpleframework.mvc.component.ComponentRenderUtils;
import net.simpleframework.mvc.component.ComponentUtils;
import net.simpleframework.mvc.component.IComponentRegistry;
/**
* 这是一个开源的软件,请在LGPLv3下合法使用、修改或重新发布。
*
* @author 陈侃(cknet@126.com, 13910090885)
* http://code.google.com/p/simpleframework/
* http://www.simpleframework.net
*/
public class SubmitRender extends ComponentJavascriptRender {
public SubmitRender(final IComponentRegistry componentRegistry) {
super(componentRegistry);
}
@Override
public String getJavascriptCode(final ComponentParameter cParameter) {
final SubmitBean submitBean = (SubmitBean) cParameter.componentBean;
final StringBuilder sb = new StringBuilder();
final String confirmMessage = submitBean.getConfirmMessage();
if (StringUtils.hasText(confirmMessage)) {
sb.append("if (!confirm(\"").append(JavascriptUtils.escape(confirmMessage));
sb.append("\")) { return; }");
}
final String formName = submitBean.getFormName();
sb.append("var form = $(\"").append(formName).append("\") || document.").append(formName)
.append(";");
sb.append("if (!form) { alert('").append($m("SubmitRender.0")).append("'); return; }");
final IForward forward = MVCContextFactory.permission().accessForward(cParameter,
cParameter.getBeanProperty("role"));
if (forward != null) {
sb.append("var win = parent || window;");
sb.append("var ele = new Element('DIV'); $(win.document.body).insert(ele);");
sb.append("new win.$UI.AjaxRequest(ele, '")
.append(JavascriptUtils.escape(forward.getResponseText(cParameter))).append("', '")
.append(formName).append("');");
sb.append("return;");
}
final String beanId = submitBean.hashId();
sb.append("form.action=\"").append(ComponentUtils.getResourceHomePath(SubmitBean.class))
.append("/jsp/submit.jsp?").append(SubmitUtils.BEAN_ID).append("=").append(beanId)
.append("\";");
sb.append("form.action = form.action.addParameter(arguments[0]);");
sb.append("form.method=\"post\";");
if (submitBean.isBinary()) {
sb.append("form.encoding = \"multipart/form-data\";");
}
sb.append("form.submit();");
return ComponentRenderUtils.genActionWrapper(cParameter, sb.toString());
}
}
| [
"cknet@126.com"
] | cknet@126.com |
94b21e764cb1997f15d06c8cf9ffd2f5ae3a1076 | 9783bff458cd06246409b3b5dc34547dc34e7dd9 | /src/main/java/paulevs/betternether/blocks/RubeusLog.java | 72078bf683c93c64e299ec56e45b7c697339be22 | [] | no_license | saltyseadoggo/BetterNether | 90d0cdfa77e4fbb3eaaedba8ab3b7cdbede829eb | 9feea635c2ac4b75f3e981b24178dc6389035898 | refs/heads/master | 2023-03-12T16:02:29.223687 | 2021-03-04T20:52:14 | 2021-03-04T20:52:14 | 306,501,557 | 0 | 0 | null | 2020-10-23T01:44:08 | 2020-10-23T01:44:08 | null | UTF-8 | Java | false | false | 874 | java | package paulevs.betternether.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.MaterialColor;
import net.minecraft.state.StateManager;
import net.minecraft.state.property.EnumProperty;
import net.minecraft.util.math.Direction;
import paulevs.betternether.blocks.shapes.TripleShape;
public class RubeusLog extends BNLogStripable {
public static final EnumProperty<TripleShape> SHAPE = EnumProperty.of("shape", TripleShape.class);
public RubeusLog(Block striped) {
super(MaterialColor.MAGENTA, striped);
this.setDefaultState(this.getDefaultState().with(AXIS, Direction.Axis.Y).with(SHAPE, TripleShape.BOTTOM));
}
@Override
protected void appendProperties(StateManager.Builder<Block, BlockState> stateManager) {
super.appendProperties(stateManager);
stateManager.add(SHAPE);
}
} | [
"paulevs@yandex.ru"
] | paulevs@yandex.ru |
7ca68379a183228f0de66d12ebb015c5b3c58509 | 8bc72f2011d3d95a8088399aebcf1e3fd5bb2395 | /src/main/java/com/dave/web/rest/UserJWTController.java | 611625bf79d575d81e97105d4d3fa86fb1f4cc36 | [] | no_license | crhonekd/jhipster-sample-application | 2d44c6e6708d160f0d58c499ce0b41d9832890fe | cd6971ca1a6ee0612a291218d48352dec3e016dd | refs/heads/master | 2022-12-23T19:08:44.389581 | 2019-10-19T15:05:43 | 2019-10-19T15:05:43 | 216,215,707 | 0 | 0 | null | 2022-12-16T04:40:34 | 2019-10-19T14:04:49 | Java | UTF-8 | Java | false | false | 2,523 | java | package com.dave.web.rest;
import com.dave.security.jwt.JWTFilter;
import com.dave.security.jwt.TokenProvider;
import com.dave.web.rest.vm.LoginVM;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
/**
* Controller to authenticate users.
*/
@RestController
@RequestMapping("/api")
public class UserJWTController {
private final TokenProvider tokenProvider;
private final AuthenticationManagerBuilder authenticationManagerBuilder;
public UserJWTController(TokenProvider tokenProvider, AuthenticationManagerBuilder authenticationManagerBuilder) {
this.tokenProvider = tokenProvider;
this.authenticationManagerBuilder = authenticationManagerBuilder;
}
@PostMapping("/authenticate")
public ResponseEntity<JWTToken> authorize(@Valid @RequestBody LoginVM loginVM) {
UsernamePasswordAuthenticationToken authenticationToken =
new UsernamePasswordAuthenticationToken(loginVM.getUsername(), loginVM.getPassword());
Authentication authentication = authenticationManagerBuilder.getObject().authenticate(authenticationToken);
SecurityContextHolder.getContext().setAuthentication(authentication);
boolean rememberMe = (loginVM.isRememberMe() == null) ? false : loginVM.isRememberMe();
String jwt = tokenProvider.createToken(authentication, rememberMe);
HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.add(JWTFilter.AUTHORIZATION_HEADER, "Bearer " + jwt);
return new ResponseEntity<>(new JWTToken(jwt), httpHeaders, HttpStatus.OK);
}
/**
* Object to return as body in JWT Authentication.
*/
static class JWTToken {
private String idToken;
JWTToken(String idToken) {
this.idToken = idToken;
}
@JsonProperty("id_token")
String getIdToken() {
return idToken;
}
void setIdToken(String idToken) {
this.idToken = idToken;
}
}
}
| [
"jhipster-bot@jhipster.tech"
] | jhipster-bot@jhipster.tech |
9637a1d59db36b914ee98552de8d4e1bbe6257e9 | e7cc809518252cd32fe0f80c7fe02add491f8026 | /spring-jazz/spring-jazz/src/main/java/edu/hanoi/jazz/ContextStartEventHandler.java | b6e360fa7461c25c53be13e362b1c2bec5ab4cb0 | [] | no_license | nguyenanhptit/SPRING-BOOT | 3d347e9af03fc7fde479197637c5334a059da295 | d8432e495bc5e25cc2500905e0503e7d0e80d680 | refs/heads/master | 2020-03-20T05:35:59.132140 | 2018-06-13T13:34:47 | 2018-06-13T13:34:47 | 137,220,000 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,438 | java | package edu.hanoi.jazz;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.sql.DataSource;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextStartedEvent;
import com.mysql.cj.jdbc.DatabaseMetaData;
public class ContextStartEventHandler implements ApplicationListener<ContextStartedEvent>{
private final static Logger LOGGER = Logger.getLogger(ContextStartEventHandler.class);
@Autowired DataSource dataSource;
@Override
public void onApplicationEvent(ContextStartedEvent event) {
// TODO Auto-generated method stub
LOGGER.info("context start application" + dataSource);
// try {
// createTable("HN_GROUP", "create table HN_GROUP(id bigint primary "
// + " key generated always as identity (start with 1, increment by 1)," + " name varchar(100))");
//
// } catch (Exception e) {
// LOGGER.error(e, e);
// }
}
// private void createTable(String name, String script) throws SQLException {
// DatabaseMetaData dbmd = (DatabaseMetaData) dataSource.getConnection().getMetaData();
// ResultSet rs = dbmd.getTables(null, null, name, null);
// if (rs.next()) {
// LOGGER.info("Table " + rs.getString("TABLE_NAME") + " already exists !");
// return;
// }
// dataSource.getConnection().createStatement().executeUpdate(script);
//
// }
}
| [
"you@example.com"
] | you@example.com |
344a049cb4640bdb3a5942acb23dffc217da2d97 | 24ddb1a50bd1473cacd62a41f35a93c10375a0ae | /services/tweetsdb/src/com/tweetsdb/data/Tweetslog.java | 3f2a9791b7bbf52040516cdd1ad711c3b70c5c4d | [] | no_license | marcosaguileraely/TweetsAnalyticsCUN2013 | 67a77cbc8655dc954e0692027616fa22095de94d | bf2ebb339e228b8df31f3157cba755a41c6f2638 | refs/heads/master | 2021-01-01T05:30:28.179349 | 2013-12-02T07:22:40 | 2013-12-02T07:22:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,676 | java |
package com.tweetsdb.data;
import java.util.Date;
/**
* tweetsdb.Tweetslog
* 12/01/2013 13:32:25
*
*/
public class Tweetslog {
private Integer idtweetslog;
private Date queryCreationDate;
private String query;
private String textQuery;
private String fullnameuser;
private String zone;
private String language;
private Integer polarity;
public Integer getIdtweetslog() {
return idtweetslog;
}
public void setIdtweetslog(Integer idtweetslog) {
this.idtweetslog = idtweetslog;
}
public Date getQueryCreationDate() {
return queryCreationDate;
}
public void setQueryCreationDate(Date queryCreationDate) {
this.queryCreationDate = queryCreationDate;
}
public String getQuery() {
return query;
}
public void setQuery(String query) {
this.query = query;
}
public String getTextQuery() {
return textQuery;
}
public void setTextQuery(String textQuery) {
this.textQuery = textQuery;
}
public String getFullnameuser() {
return fullnameuser;
}
public void setFullnameuser(String fullnameuser) {
this.fullnameuser = fullnameuser;
}
public String getZone() {
return zone;
}
public void setZone(String zone) {
this.zone = zone;
}
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
public Integer getPolarity() {
return polarity;
}
public void setPolarity(Integer polarity) {
this.polarity = polarity;
}
}
| [
"marcosaguileraely@gmail.com"
] | marcosaguileraely@gmail.com |
1d8ba7b8e83780eaa4e52b029d85155288808650 | ee9bc8540e79ebd42e75e82bb56849cddc2c6f68 | /firs-web-application_step08/src/main/java/webapp/LoginServlet.java | 4bafe828d8d9abebeb8e0bd14698d2e34e899039 | [] | no_license | j4sysiak/firs-web-application_step08 | a1f87fdc187151301216ce86c826182602f31da7 | 58909d0efdfe0311baf01a111e99359ad4dd0c99 | refs/heads/master | 2020-04-25T08:09:46.019127 | 2019-02-26T04:26:45 | 2019-02-26T04:26:45 | 172,637,743 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,248 | java | package webapp;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import webapp.todo.TodoService;
/*
* Browser sends Http Request to Web Server
*
* Code in Web Server => Input:HttpRequest, Output: HttpResponse
* JEE with Servlets
*
* Web Server responds with Http Response
*/
//Java Platform, Enterprise Edition (Java EE) JEE6
//Servlet is a Java programming language class
//used to extend the capabilities of servers
//that host applications accessed by means of
//a request-response programming model.
//1. extends javax.servlet.http.HttpServlet
//2. @WebServlet(urlPatterns = "/login.do")
//3. doGet(HttpServletRequest request, HttpServletResponse response)
//4. How is the response created?
@WebServlet(urlPatterns = "/login.do")
public class LoginServlet extends HttpServlet {
private UserValidationService userValidationService = new UserValidationService();
private TodoService todoService = new TodoService();
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
request.getRequestDispatcher("/WEB-INF/views/login.jsp").forward(request, response);
}
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
String name = request.getParameter("name");
String password = request.getParameter("password");
boolean isValid = userValidationService.validateUser(name, password);
if(isValid){
request.setAttribute("todos", todoService.retrieveTodos());
request.setAttribute("name", request.getParameter("name"));
request.setAttribute("password", request.getParameter("password"));
request.getRequestDispatcher("/WEB-INF/views/welcome.jsp").forward(request, response);
} else {
request.setAttribute("errorMessage", "Invalid Credentials!!");
request.getRequestDispatcher("/WEB-INF/views/login.jsp").forward(request, response);
}
}
} | [
"j4sysiak@gmail.com"
] | j4sysiak@gmail.com |
69e8d3bf9db48801c1c00d714c8e67847127c472 | 471a6511c91a87111aac30d9e1d0cf44812af6a2 | /src/main/java/org/codelibs/fess/es/cbean/bs/BsRoleCB.java | 0544f579ed8ea248c8da25c37312f9f7429e9214 | [
"Apache-2.0"
] | permissive | beavis28/fess | 1160e8a66de4805ee235d1ce64f409f8247bf737 | 8dbc3e9b77c93fe270ff15210dfe3000cc3c9d8c | refs/heads/master | 2020-12-11T07:39:26.254838 | 2015-10-11T06:51:14 | 2015-10-11T06:51:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,424 | java | package org.codelibs.fess.es.cbean.bs;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.codelibs.fess.es.bsentity.dbmeta.RoleDbm;
import org.codelibs.fess.es.cbean.RoleCB;
import org.codelibs.fess.es.cbean.cq.RoleCQ;
import org.codelibs.fess.es.cbean.cq.bs.BsRoleCQ;
import org.dbflute.cbean.ConditionQuery;
import org.elasticsearch.action.count.CountRequestBuilder;
import org.elasticsearch.action.search.SearchRequestBuilder;
import org.elasticsearch.index.query.QueryBuilder;
/**
* @author FreeGen
*/
public class BsRoleCB extends AbstractConditionBean {
protected BsRoleCQ _conditionQuery;
protected HpSpecification _specification;
@Override
public RoleDbm asDBMeta() {
return RoleDbm.getInstance();
}
@Override
public String asTableDbName() {
return "role";
}
@Override
public boolean hasSpecifiedColumn() {
return _specification != null;
}
@Override
public ConditionQuery localCQ() {
return doGetConditionQuery();
}
public RoleCB acceptPK(String id) {
assertObjectNotNull("id", id);
BsRoleCB cb = this;
cb.query().docMeta().setId_Equal(id);
return (RoleCB) this;
}
@Override
public void acceptPrimaryKeyMap(Map<String, ? extends Object> primaryKeyMap) {
acceptPK((String) primaryKeyMap.get("_id"));
}
@Override
public CountRequestBuilder build(CountRequestBuilder builder) {
if (_conditionQuery != null) {
QueryBuilder queryBuilder = _conditionQuery.getQuery();
if (queryBuilder != null) {
builder.setQuery(queryBuilder);
}
}
return builder;
}
@Override
public SearchRequestBuilder build(SearchRequestBuilder builder) {
if (_conditionQuery != null) {
QueryBuilder queryBuilder = _conditionQuery.getQuery();
if (queryBuilder != null) {
builder.setQuery(queryBuilder);
}
_conditionQuery.getFieldSortBuilderList().forEach(sort -> {
builder.addSort(sort);
});
}
if (_specification != null) {
builder.setFetchSource(_specification.columnList.toArray(new String[_specification.columnList.size()]), null);
}
return builder;
}
public BsRoleCQ query() {
assertQueryPurpose();
return doGetConditionQuery();
}
protected BsRoleCQ doGetConditionQuery() {
if (_conditionQuery == null) {
_conditionQuery = createLocalCQ();
}
return _conditionQuery;
}
protected BsRoleCQ createLocalCQ() {
return new RoleCQ();
}
public HpSpecification specify() {
assertSpecifyPurpose();
if (_specification == null) {
_specification = new HpSpecification();
}
return _specification;
}
protected void assertQueryPurpose() {
// TODO
}
protected void assertSpecifyPurpose() {
// TODO
}
public static class HpSpecification {
private List<String> columnList = new ArrayList<>();
private void doColumn(String name) {
columnList.add(name);
}
public void columnId() {
doColumn("id");
}
public void columnName() {
doColumn("name");
}
}
}
| [
"shinsuke@yahoo.co.jp"
] | shinsuke@yahoo.co.jp |
d2f598b54b028836ee7182b108d59dc7e456acf1 | 8501e286832a36ed033b4220fb5e281f4b57e585 | /Sample13_8_加速度传感器案例/app/src/main/java/com/bn/Sample13_8/BallGoThread.java | f521eca1d4c3dd067a09714445668e429282dd78 | [] | no_license | CatDroid/OpenGLES3xGame | f8b2e88dffdbac67078c04f166f2fc42cf92cc67 | 6e066ceeb238836c623135871674337b4a8b4992 | refs/heads/master | 2021-05-16T15:30:08.674603 | 2020-12-20T09:32:28 | 2020-12-20T09:32:28 | 119,228,042 | 24 | 9 | null | null | null | null | UTF-8 | Java | false | false | 939 | java | package com.bn.Sample13_8;
import android.util.Log;
import static com.bn.Sample13_8.Constant.TAG;
/*
* 控制球运动的线程
*/
public class BallGoThread extends Thread {
BallForControl ballForControl;//声明AllBalls的引用
int timeSpan=12;
private boolean flag=false;//循环标志位
public BallGoThread(BallForControl ballForControl)//构造器
{
this.ballForControl=ballForControl;//成员变量赋值
}
@Override
public void run()//重写run方法
{
while(flag)//while循环
{
ballForControl.go();//调用使所有球运动的方法
//Log.d(TAG,"Thread go " + Thread.currentThread().getId());
try{
Thread.sleep(timeSpan);//一段时间后再运动
}
catch(Exception e){
e.printStackTrace();//打印异常
}
}
Log.w(TAG,"Thread Exit " + Thread.currentThread().getId() );
}
public void setFlag(boolean flag) {
Log.w(TAG,"Thread Flag " + flag );
this.flag = flag;
}
}
| [
"1198432354@qq.com"
] | 1198432354@qq.com |
3179369d3f9a8ce39d49d1f5e0e3c632a48cd2cc | 11b96b6a73adb20a3a4a7b96412623944e10ceef | /javarush/test/level18/lesson10/home03/Solution.java | 8574213f306aa1dfd25d86eb03af0aa61a81980d | [] | no_license | Zerodur/javaRush | a34644703b6b5c35a919ee12979659ce62de8892 | 8a5b5d808f4cb01aff6fefaf9e373a30b6a20334 | refs/heads/master | 2020-07-01T19:26:09.075989 | 2017-02-21T11:20:16 | 2017-02-21T11:20:19 | 74,261,525 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,207 | java | package com.javarush.test.level18.lesson10.home03;
/* Два в одном
Считать с консоли 3 имени файла
Записать в первый файл содержимого второго файла, а потом дописать в первый файл содержимое третьего файла
Закрыть потоки. Не использовать try-with-resources
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws IOException{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
FileOutputStream outputStream = new FileOutputStream(reader.readLine());
FileInputStream inputStreamOne = new FileInputStream(reader.readLine());
FileInputStream inputStreamTwo = new FileInputStream(reader.readLine());
while (inputStreamOne.available() > 0){
outputStream.write(inputStreamOne.read());
}
while (inputStreamTwo.available() > 0){
outputStream.write(inputStreamTwo.read());
}
reader.close();
inputStreamOne.close();
inputStreamTwo.close();
outputStream.close();
}
}
| [
"zerodur91@gmail.com"
] | zerodur91@gmail.com |
7492aaf318f0e22394626c7820f08526e3910fdb | eebe7ea49de7cccdb44b6ec1d56e79d4ec3726e3 | /2020.05/2020.05.29 - AtCoder - 第三回 アルゴリズム実技検定/E.java | 8bd3aa4c7c727047487509a2550d18d59ad40181 | [] | no_license | m1kit/cc-archive | 6dfbe702680230240491a7af4e7ad63f372df312 | 66ba7fb9e5b1c61af4a016f800d6c90f6f594ed2 | refs/heads/master | 2021-06-28T21:54:02.658741 | 2020-09-08T09:38:58 | 2020-09-08T09:38:58 | 150,690,803 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,176 | java | package dev.mikit.atcoder;
import dev.mikit.atcoder.lib.io.LightScanner;
import dev.mikit.atcoder.lib.io.LightWriter;
import dev.mikit.atcoder.lib.debug.Debug;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public class E {
private static final int MOD = (int) 1e9 + 7;
public void solve(int testNumber, LightScanner in, LightWriter out) {
int n = in.ints(), m = in.ints(), q = in.ints();
List<ArrayList<Integer>> adj = new ArrayList<>(n);
for (int i = 0; i < n; i++) adj.add(new ArrayList<>());
for (int i = 0; i < m; i++) {
int x = in.ints() - 1, y = in.ints() - 1;
adj.get(x).add(y);
adj.get(y).add(x);
}
int[] c = in.ints(n);
for (int i = 0; i < q; i++) {
if (in.ints() == 1) {
int x = in.ints() - 1;
out.ans(c[x]).ln();
for (int nxt : adj.get(x)) c[nxt] = c[x];
} else {
int x = in.ints() - 1, y = in.ints();
out.ans(c[x]).ln();
c[x] = y;
}
}
}
}
| [
"mikihito0906@gmail.com"
] | mikihito0906@gmail.com |
3ba009898151547a0ec2d38481c123f1b81936b9 | a2df6764e9f4350e0d9184efadb6c92c40d40212 | /aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/CreateNodeComplementResponse.java | db05e2b777b0592d735accce53a16680a562466b | [
"Apache-2.0"
] | permissive | warriorsZXX/aliyun-openapi-java-sdk | 567840c4bdd438d43be6bd21edde86585cd6274a | f8fd2b81a5f2cd46b1e31974ff6a7afed111a245 | refs/heads/master | 2022-12-06T15:45:20.418475 | 2020-08-20T08:37:31 | 2020-08-26T06:17:49 | 290,450,773 | 1 | 0 | NOASSERTION | 2020-08-26T09:15:48 | 2020-08-26T09:15:47 | null | UTF-8 | Java | false | false | 2,246 | 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.dataworks_public.model.v20200518;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.dataworks_public.transform.v20200518.CreateNodeComplementResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CreateNodeComplementResponse extends AcsResponse {
private String errorCode;
private String errorMessage;
private Integer httpStatusCode;
private String requestId;
private Boolean success;
private Long data;
public String getErrorCode() {
return this.errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
public String getErrorMessage() {
return this.errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
public void setHttpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public Long getData() {
return this.data;
}
public void setData(Long data) {
this.data = data;
}
@Override
public CreateNodeComplementResponse getInstance(UnmarshallerContext context) {
return CreateNodeComplementResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
91b034055e68c22b7b3d27dd0acef541da6e5b39 | 71027e2310f9917cd46ccb6a21c0100487c6b43b | /tools/freehep-rtti/src/main/java/org/freehep/rtti/IPackage.java | d2275b28ba127fecec76e7acc3033b86b3f3ba86 | [] | no_license | kdk-pkg-soft/freehep-ncolor-pdf | f70f99ebdc7a78fc25960f42629e05d3c58f2b03 | d317ea43554c75f8ff04e826b4361ad4326574b0 | refs/heads/master | 2021-01-23T12:18:26.502269 | 2012-08-22T23:22:21 | 2012-08-22T23:22:21 | 5,516,244 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,986 | java | // Copyright 2000-2005, FreeHEP.
package org.freehep.rtti;
import java.util.*;
/**
* Defines a Package.
*
* @author Mark Donszelmann
* @version $Id: IPackage.java 8584 2006-08-10 23:06:37Z duns $
*/
public class IPackage {
private String name;
private Hashtable/*<String, IClass>*/ classes = new Hashtable();
IPackage(String name) {
this.name = ((name == null) || (name.equals(""))) ? "<default>" : name;
}
/**
* Returns the name of the package
*
*
* @return name of package
*/
public String getName() {
return name;
}
public void addClass(IClass clazz) {
classes.put(clazz.getName(), clazz);
}
public IClass getClass(String name) {
return (IClass)classes.get(name);
}
public IClass[] getClasses() {
IClass[] c = new IClass[classes.size()];
int i = 0;
for (Enumeration e = classes.keys(); e.hasMoreElements(); ) {
c[i++] = (IClass)classes.get(e.nextElement());
}
return c;
}
/**
* Returns a string representation of this package
*
*
* @return a string representation of this package
*/
public String toString() {
return toString(null);
}
/**
* String representation of the RTTI, which lists the full RTTI in semi-java format, with
* package prefix.
*
* @param packagePrefix name to prefix to the package name
*
* @return String representation of the RTTI.
*/
public String toString(String packagePrefix) {
StringBuffer s = new StringBuffer("Package: ");
s.append(getName());
s.append("\n");
for (Enumeration e = classes.keys(); e.hasMoreElements(); ) {
String key = (String)e.nextElement();
IClass c = (IClass)classes.get(key);
s.append(c.toString(packagePrefix));
s.append("\n");
}
return s.toString();
}
}
| [
"hamad.deshmukh@Kodak.com"
] | hamad.deshmukh@Kodak.com |
b384e0459b3b622c190f4f14cd4b005b0148ff79 | 466acd992b3892c686739207f3e803a76e39c53f | /JavaStudy/src/ch02/Variable2.java | e411e1f757935cf8d18abab32e2a3251a8188635 | [] | no_license | mevoici/JavaStudy | b92fc980338e2b7bdcd6517b5007cf9fb4fa7f3c | daf9ba4f9f836efd9025bdc4d926e8cd6cedecb7 | refs/heads/master | 2020-04-28T19:40:59.606189 | 2019-03-14T08:03:56 | 2019-03-14T08:03:56 | 175,518,974 | 0 | 0 | null | null | null | null | UHC | Java | false | false | 280 | java | package ch02;
public class Variable2 {
public static void main(String[] args) {
int a = 10;
System.out.println("a의 값은? " + a);
int b =11;
System.out.println("b의 값은? " + b);
a=b;
System.out.println("a의 값은? " + a);
}
}
| [
"Student@DESKTOP-EF9PEQ2"
] | Student@DESKTOP-EF9PEQ2 |
70038e76fcc7d11dde99eb16b8eb1c98973343c5 | f2ec2fe9831467491c0890a395ba2bd6b889e8a3 | /src/main/java/ac/za/factory/course/ModuleFactory.java | e3b6a95087fee3bd3ceaaa41ecf205009e79b45d | [] | no_license | 215062264/LMS_App_Project | 5e3dbaed1fc0e74e4193d96cf4d62313acf97b58 | 1cc59d05f41e6dad350593966f2f72843e6229cf | refs/heads/master | 2021-06-28T14:20:39.404358 | 2021-04-03T08:39:53 | 2021-04-03T08:39:53 | 216,410,126 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 376 | java | package ac.za.factory.course;
import ac.za.domain.course.Module;
public class ModuleFactory {
public static Module getModule(Integer moduleId,String moduleName, String description){
return new Module.Builder()
.moduleId(moduleId)
.moduleName(moduleName)
.description(description)
.build();
}
}
| [
"Kylejosias6@gmail.com"
] | Kylejosias6@gmail.com |
eecea862f80ded7981c9eb2ae837a3c4fa9d3b52 | 0552dd376606c850308cafaea03ca26c7e9b0500 | /src/main/java/com/cn/tianxia/admin/project/txdata/ProxyUserTy.java | fbf4cb1a60f5e4486200c7a9b18e3509ba1d139b | [] | no_license | pumaxiaoyao/tx-admin-shiro | 08725c0bd4b0caab374a3d0f4be6ecbda5ef962e | a8223149725d87fc9153c399b5cc240b77e39e39 | refs/heads/master | 2020-06-03T10:43:15.099384 | 2019-05-18T14:02:42 | 2019-05-18T14:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,004 | java | package com.cn.tianxia.admin.project.txdata;
public class ProxyUserTy {
private Integer id;
private Integer cid;
private Float amount;
private Float pCg;
private Float pAg;
private Float pShenbo;
private Float pAb;
private Float pDs;
private Float pOg;
private Float pBbin;
private Float pMg;
private Float pPt;
private Float pHaba;
private Float pIg;
private Float pHg;
private Float pGgby;
private Float pBgvideo;
private Float pBglottery;
private Float pIghk;
private Float pVr;
private Float pJf;
private Float pJfcp;
private Float pYorplay;
private Float pKyqp;
private Float pSpta;
private Float pVgqp;
private Float pGycp;
private Float pPs;
private Float pNb;
private Float pLyqp;
private Float pJdb;
private Float pSw;
private Float pIbc;
private Float pEsw;
private Float pCqj;
private Float pImty;
private Float pImgame;
private Float pNw;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getCid() {
return cid;
}
public void setCid(Integer cid) {
this.cid = cid;
}
public Float getAmount() {
return amount;
}
public void setAmount(Float amount) {
this.amount = amount;
}
public Float getpCg() {
return pCg;
}
public void setpCg(Float pCg) {
this.pCg = pCg;
}
public Float getpAg() {
return pAg;
}
public void setpAg(Float pAg) {
this.pAg = pAg;
}
public Float getpShenbo() {
return pShenbo;
}
public void setpShenbo(Float pShenbo) {
this.pShenbo = pShenbo;
}
public Float getpAb() {
return pAb;
}
public void setpAb(Float pAb) {
this.pAb = pAb;
}
public Float getpDs() {
return pDs;
}
public void setpDs(Float pDs) {
this.pDs = pDs;
}
public Float getpOg() {
return pOg;
}
public void setpOg(Float pOg) {
this.pOg = pOg;
}
public Float getpBbin() {
return pBbin;
}
public void setpBbin(Float pBbin) {
this.pBbin = pBbin;
}
public Float getpMg() {
return pMg;
}
public void setpMg(Float pMg) {
this.pMg = pMg;
}
public Float getpPt() {
return pPt;
}
public void setpPt(Float pPt) {
this.pPt = pPt;
}
public Float getpHaba() {
return pHaba;
}
public void setpHaba(Float pHaba) {
this.pHaba = pHaba;
}
public Float getpIg() {
return pIg;
}
public void setpIg(Float pIg) {
this.pIg = pIg;
}
public Float getpHg() {
return pHg;
}
public void setpHg(Float pHg) {
this.pHg = pHg;
}
public Float getpGgby() {
return pGgby;
}
public void setpGgby(Float pGgby) {
this.pGgby = pGgby;
}
public Float getpBgvideo() {
return pBgvideo;
}
public void setpBgvideo(Float pBgvideo) {
this.pBgvideo = pBgvideo;
}
public Float getpBglottery() {
return pBglottery;
}
public void setpBglottery(Float pBglottery) {
this.pBglottery = pBglottery;
}
public Float getpIghk() {
return pIghk;
}
public void setpIghk(Float pIghk) {
this.pIghk = pIghk;
}
public Float getpVr() {
return pVr;
}
public void setpVr(Float pVr) {
this.pVr = pVr;
}
public Float getpJf() {
return pJf;
}
public void setpJf(Float pJf) {
this.pJf = pJf;
}
public Float getpJfcp() {
return pJfcp;
}
public void setpJfcp(Float pJfcp) {
this.pJfcp = pJfcp;
}
public Float getpYorplay() {
return pYorplay;
}
public void setpYorplay(Float pYorplay) {
this.pYorplay = pYorplay;
}
public Float getpKyqp() {
return pKyqp;
}
public void setpKyqp(Float pKyqp) {
this.pKyqp = pKyqp;
}
public Float getpSpta() {
return pSpta;
}
public void setpSpta(Float pSpta) {
this.pSpta = pSpta;
}
public Float getpVgqp() {
return pVgqp;
}
public void setpVgqp(Float pVgqp) {
this.pVgqp = pVgqp;
}
public Float getpGycp() {
return pGycp;
}
public void setpGycp(Float pGycp) {
this.pGycp = pGycp;
}
public Float getpPs() {
return pPs;
}
public void setpPs(Float pPs) {
this.pPs = pPs;
}
public Float getpNb() {
return pNb;
}
public void setpNb(Float pNb) {
this.pNb = pNb;
}
public Float getpLyqp() {
return pLyqp;
}
public void setpLyqp(Float pLyqp) {
this.pLyqp = pLyqp;
}
public Float getpJdb() {
return pJdb;
}
public void setpJdb(Float pJdb) {
this.pJdb = pJdb;
}
public Float getpSw() {
return pSw;
}
public void setpSw(Float pSw) {
this.pSw = pSw;
}
public Float getpIbc() {
return pIbc;
}
public void setpIbc(Float pIbc) {
this.pIbc = pIbc;
}
public Float getpEsw() {
return pEsw;
}
public void setpEsw(Float pEsw) {
this.pEsw = pEsw;
}
public Float getpCqj() {
return pCqj;
}
public void setpCqj(Float pCqj) {
this.pCqj = pCqj;
}
public Float getpImty() {
return pImty;
}
public void setpImty(Float pImty) {
this.pImty = pImty;
}
public Float getpImgame() {
return pImgame;
}
public void setpImgame(Float pImgame) {
this.pImgame = pImgame;
}
public Float getpNw() {
return pNw;
}
public void setpNw(Float pNw) {
this.pNw = pNw;
}
} | [
"xfearless1201@gmail.com"
] | xfearless1201@gmail.com |
c0ab84cc96acb1156b03f2adf08c9081b95ca81d | 3568c9772fad54ffe71683de31525464642f3cf9 | /word8/src/main/java/eu/doppel_helix/jna/tlb/word8/SmartTags.java | f28a06e23be415ac37e42e305353c2d2d5abf61f | [
"MIT"
] | permissive | NoonRightsWarriorBehindHovering/COMTypelibraries | c853c41bb495031702d0ad7a4d215ab894c12bbd | c17acfca689305c0e23d4ff9d8ee437e0ee3d437 | refs/heads/master | 2023-06-21T20:52:51.519721 | 2020-03-13T22:33:48 | 2020-03-13T22:33:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,103 | java |
package eu.doppel_helix.jna.tlb.word8;
import com.sun.jna.platform.win32.COM.util.annotation.ComInterface;
import com.sun.jna.platform.win32.COM.util.annotation.ComMethod;
import com.sun.jna.platform.win32.COM.util.annotation.ComProperty;
import com.sun.jna.platform.win32.COM.util.IDispatch;
import com.sun.jna.platform.win32.COM.util.IUnknown;
import com.sun.jna.platform.win32.COM.util.IRawDispatchHandle;
import com.sun.jna.platform.win32.Variant.VARIANT;
/**
* <p>uuid({000209EE-0000-0000-C000-000000000046})</p>
*/
@ComInterface(iid="{000209EE-0000-0000-C000-000000000046}")
public interface SmartTags extends IUnknown, IRawDispatchHandle, IDispatch {
/**
* <p>id(0x2)</p>
* <p>vtableId(8)</p>
*/
@ComProperty(name = "Count", dispId = 0x2)
Integer getCount();
/**
* <p>id(0x3e8)</p>
* <p>vtableId(9)</p>
*/
@ComProperty(name = "Application", dispId = 0x3e8)
Application getApplication();
/**
* <p>id(0x3e9)</p>
* <p>vtableId(10)</p>
*/
@ComProperty(name = "Creator", dispId = 0x3e9)
Integer getCreator();
/**
* <p>id(0x3ea)</p>
* <p>vtableId(11)</p>
*/
@ComProperty(name = "Parent", dispId = 0x3ea)
com.sun.jna.platform.win32.COM.util.IDispatch getParent();
/**
* <p>id(0x0)</p>
* <p>vtableId(12)</p>
* @param Index [in] {@code Object}
*/
@ComMethod(name = "Item", dispId = 0x0)
SmartTag Item(Object Index);
/**
* <p>id(0x5)</p>
* <p>vtableId(13)</p>
* @param Name [in] {@code String}
* @param Range [in, optional] {@code Object}
* @param Properties [in, optional] {@code Object}
*/
@ComMethod(name = "Add", dispId = 0x5)
SmartTag Add(String Name,
Object Range,
Object Properties);
/**
* <p>id(0x3eb)</p>
* <p>vtableId(14)</p>
* @param Name [in] {@code String}
*/
@ComMethod(name = "SmartTagsByType", dispId = 0x3eb)
SmartTags SmartTagsByType(String Name);
} | [
"mblaesing@doppel-helix.eu"
] | mblaesing@doppel-helix.eu |
c3427f712ed20ecd130bea9ebbc4dbfaa828264e | 805b2a791ec842e5afdd33bb47ac677b67741f78 | /Mage.Sets/src/mage/sets/seventhedition/MerfolkLooter.java | a948466aea61e58e588334fd42e8443738a070a0 | [] | no_license | klayhamn/mage | 0d2d3e33f909b4052b0dfa58ce857fbe2fad680a | 5444b2a53beca160db2dfdda0fad50e03a7f5b12 | refs/heads/master | 2021-01-12T19:19:48.247505 | 2015-08-04T20:25:16 | 2015-08-04T20:25:16 | 39,703,242 | 2 | 0 | null | 2015-07-25T21:17:43 | 2015-07-25T21:17:42 | null | UTF-8 | Java | false | false | 2,251 | java | /*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.sets.seventhedition;
import java.util.UUID;
import mage.constants.Rarity;
/**
*
* @author North
*/
public class MerfolkLooter extends mage.sets.magic2012.MerfolkLooter {
public MerfolkLooter(UUID ownerId) {
super(ownerId);
this.cardNumber = 89;
this.expansionSetCode = "7ED";
this.rarity = Rarity.UNCOMMON;
}
public MerfolkLooter(final MerfolkLooter card) {
super(card);
}
@Override
public MerfolkLooter copy() {
return new MerfolkLooter(this);
}
}
| [
"robyter@gmail"
] | robyter@gmail |
5902b3ce2475891096cbe889471ca2555677b0ed | be73270af6be0a811bca4f1710dc6a038e4a8fd2 | /crash-reproduction-moho/results/XCOMMONS-1057-2-26-SPEA2-WeightedSum:TestLen:CallDiversity/org/xwiki/extension/job/internal/UpgradePlanJob_ESTest.java | dc7102558d130805f872d2d1f116cdaa96d598e5 | [] | no_license | STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application | cf118b23ecb87a8bf59643e42f7556b521d1f754 | 3bb39683f9c343b8ec94890a00b8f260d158dfe3 | refs/heads/master | 2022-07-29T14:44:00.774547 | 2020-08-10T15:14:49 | 2020-08-10T15:14:49 | 285,804,495 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,533 | java | /*
* This file was automatically generated by EvoSuite
* Mon Apr 06 19:40:06 UTC 2020
*/
package org.xwiki.extension.job.internal;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.ViolatedAssumptionAnswer;
import org.junit.runner.RunWith;
import org.xwiki.extension.ExtensionId;
import org.xwiki.extension.job.internal.AbstractInstallPlanJob;
import org.xwiki.extension.job.internal.UpgradePlanJob;
import org.xwiki.extension.job.plan.ExtensionPlanNode;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class UpgradePlanJob_ESTest extends UpgradePlanJob_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
UpgradePlanJob upgradePlanJob0 = new UpgradePlanJob();
AbstractInstallPlanJob.ModifableExtensionPlanTree abstractInstallPlanJob_ModifableExtensionPlanTree0 = new AbstractInstallPlanJob.ModifableExtensionPlanTree();
upgradePlanJob0.extensionTree = abstractInstallPlanJob_ModifableExtensionPlanTree0;
ExtensionPlanNode extensionPlanNode0 = mock(ExtensionPlanNode.class, new ViolatedAssumptionAnswer());
abstractInstallPlanJob_ModifableExtensionPlanTree0.add(extensionPlanNode0);
// Undeclared exception!
upgradePlanJob0.tryInstallExtension((ExtensionId) null, "D%\"");
}
}
| [
"pouria.derakhshanfar@gmail.com"
] | pouria.derakhshanfar@gmail.com |
0966a01de231aef3eeab3b87283beeaa73e4e6b2 | 094e66aff18fd3a93ea24e4f23f5bc4efa5d71d6 | /yit-education-course/yit-education-course-common/src/main/java/com/yuu/yit/education/course/common/bean/vo/CountIncomeVO.java | 673184218ad712a3fe5ee087aa901f3645ef88e3 | [
"MIT",
"Apache-2.0"
] | permissive | 71yuu/YIT | 55b76dbec855b8e67f42a7eb00e9fa8e919ec4cb | 53bb7ba8b8e686b2857c1e2812a0f38bd32f57e3 | refs/heads/master | 2022-09-08T06:51:30.819760 | 2019-11-29T06:24:19 | 2019-11-29T06:24:19 | 216,706,258 | 0 | 0 | Apache-2.0 | 2022-09-01T23:14:33 | 2019-10-22T02:27:22 | Java | UTF-8 | Java | false | false | 687 | java | /**
* Copyright 2015-现在 广州市领课网络科技有限公司
*/
package com.yuu.yit.education.course.common.bean.vo;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 收入统计
*
* @author forest
*/
@Data
@Accessors(chain = true)
public class CountIncomeVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 总收入
*/
private BigDecimal totalProfit = BigDecimal.valueOf(0);
/**
* 平台收入
*/
private BigDecimal platformProfit = BigDecimal.valueOf(0);
/**
* 讲师收入
*/
private BigDecimal lecturerProfit = BigDecimal.valueOf(0);
}
| [
"1225459207@qq.com"
] | 1225459207@qq.com |
961cf228a55a73eefb6dcb8e349049d1256023fc | 6b3d528e936bc134cc4558bf134ca9e72ff306b7 | /TW-PLAT-APP/src/main/java/com/efun/platform/http/response/bean/CsGainServersListResponse.java | e373353069c0e8a9b1d374f8a03bbbb9e2796637 | [] | no_license | gan00000/app | 23162e57993e5b4e2b8d51192539156f3f34f9b8 | 73d6f79497bd3f97566fb93a47ff4fe176bc74eb | refs/heads/master | 2020-06-30T20:17:38.919084 | 2016-11-21T11:11:50 | 2016-11-21T11:11:50 | 74,354,862 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,606 | java | package com.efun.platform.http.response.bean;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONObject;
import com.efun.platform.module.cs.bean.CsGainServerBean;
import com.efun.platform.module.cs.bean.CsGainServerItemBean;
/**
* 客服- 提问-选服务器
* @author Jesse
*
*/
public class CsGainServersListResponse extends BaseResponseBean {
private CsGainServerBean response;
@Override
public void setValues(Object object) {
JSONObject jsonObject = (JSONObject) object;
response = new CsGainServerBean();
response.setCode(jsonObject.optString("code"));
response.setMessage(jsonObject.optString("message"));
ArrayList<CsGainServerItemBean> serverList = new ArrayList<CsGainServerItemBean>();
if(jsonObject.has("ServerList")){
JSONArray jsonArray = jsonObject.optJSONArray("ServerList");
CsGainServerItemBean bean = null;
for (int i = 0; i < jsonArray.length(); i++) {
jsonObject = jsonArray.optJSONObject(i);
bean = new CsGainServerItemBean();
bean.setGameDomain(jsonObject.optString("GameDomain"));
bean.setServerCode(jsonObject.optString("ServerCode"));
bean.setServerName(jsonObject.optString("ServerName"));
bean.setGameCode(jsonObject.optString("gameCode"));
bean.setInfo(jsonObject.optString("info"));
bean.setIsCom(jsonObject.optInt("isCom"));
bean.setServerPrefix(jsonObject.optString("serverPrefix"));
bean.setStatus(jsonObject.optInt("status"));
serverList.add(bean);
}
}
response.setServerList(serverList);
}
public CsGainServerBean getCsGainServerBean() {
return response;
}
}
| [
"ganyuanrong@gmail.com"
] | ganyuanrong@gmail.com |
fe8b1316e3302f1a5a16bc812b2b1a7983c3ca4a | 8810972d0375c0a853e3a66bd015993932be9fad | /modelicaml/kepler/org.openmodelica.modelicaml.validation/src/org/openmodelica/modelicaml/validation/rules/classes/C05_OpaqueBehaviorStereotypeConstraint.java | 75eed618db42a0859bef0a87f3e7e366c5aa41d9 | [] | no_license | OpenModelica/MDT | 275ffe4c61162a5292d614cd65eb6c88dc58b9d3 | 9ffbe27b99e729114ea9a4b4dac4816375c23794 | refs/heads/master | 2020-09-14T03:35:05.384414 | 2019-11-27T22:35:04 | 2019-11-27T23:08:29 | 222,999,464 | 3 | 2 | null | 2019-11-27T23:08:31 | 2019-11-20T18:15:27 | Java | WINDOWS-1252 | Java | false | false | 3,668 | java | /*
* This file is part of OpenModelica.
*
* Copyright (c) 1998-CurrentYear, Open Source Modelica Consortium (OSMC),
* c/o Linköpings universitet, Department of Computer and Information Science,
* SE-58183 Linköping, Sweden.
*
* All rights reserved.
*
* THIS PROGRAM IS PROVIDED UNDER THE TERMS OF GPL VERSION 3 LICENSE OR
* THIS OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.2.
* ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
* OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3, ACCORDING TO RECIPIENTS CHOICE.
*
* The OpenModelica software and the Open Source Modelica
* Consortium (OSMC) Public License (OSMC-PL) are obtained
* from OSMC, either from the above address,
* from the URLs: http://www.ida.liu.se/projects/OpenModelica or
* http://www.openmodelica.org, and in the OpenModelica distribution.
* GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html.
*
* This program is distributed WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH
* IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS OF OSMC-PL.
*
* See the full OSMC Public License conditions for more details.
*
* Main author: Wladimir Schamai, EADS Innovation Works / Linköping University, 2009-2013
*
* Contributors:
* Uwe Pohlmann, University of Paderborn 2009-2010, contribution to the Modelica code generation for state machine behavior, contribution to Papyrus GUI adaptations
*/
package org.openmodelica.modelicaml.validation.rules.classes;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.validation.AbstractModelConstraint;
import org.eclipse.emf.validation.EMFEventType;
import org.eclipse.emf.validation.IValidationContext;
import org.eclipse.uml2.uml.Class;
import org.eclipse.uml2.uml.Element;
import org.eclipse.uml2.uml.FunctionBehavior;
import org.eclipse.uml2.uml.OpaqueBehavior;
import org.openmodelica.modelicaml.common.constants.Constants;
import org.openmodelica.modelicaml.validation.util.Utility;
/**
* C5:
* Rule : Any UML OpaqueBehavior that is owned by a UML Class with a ModelicaML stereotype
* applied must have either the stereotype <<Equation>> or <<Algorithm>> applied.
*
* Severity : ERROR
*
* Mode : Batch
*/
public class C05_OpaqueBehaviorStereotypeConstraint extends
AbstractModelConstraint {
/**
*
*/
public C05_OpaqueBehaviorStereotypeConstraint() {
}
/* (non-Javadoc)
* @see org.eclipse.emf.validation.AbstractModelConstraint#validate(org.eclipse.emf.validation.IValidationContext)
*/
@Override
public IStatus validate(IValidationContext ctx) {
EObject eObj = ctx.getTarget();
EMFEventType eType = ctx.getEventType();
// In Batch mode
if(eType == EMFEventType.NULL){
if( eObj instanceof OpaqueBehavior && !(eObj instanceof FunctionBehavior)){
Element element = ((OpaqueBehavior) eObj).getOwner();
if( element instanceof Class ) {
if(Utility.isElementHaveModelicaMLStereotypeApplied(element)){
if( (((OpaqueBehavior) eObj).getAppliedStereotype(Constants.stereotypeQName_Equations) == null)
&& (((OpaqueBehavior)eObj).getAppliedStereotype(Constants.stereotypeQName_Algorithm) == null) ) {
return ctx.createFailureStatus(new Object[] {Constants.validationKeyWord_MISSING + ": Stereotype (<<Equation>> or <<Algorithm>>) for OpaqueBehavior '"
+((OpaqueBehavior) eObj).getName()+"' owned by '"+((Class) element).getName()+"'." });
}
}
}
}
}
return ctx.createSuccessStatus();
}
}
| [
"wschamai"
] | wschamai |
0ea63aa385dbfd19202948ba5d495c8ccab06875 | 10017e6e4fae86ba9c7d6ac891c5ca8988d8b3e4 | /app/src/main/java/cn/see/chat/adapter/ForwardMsgAdapter.java | 60d3df305d9c40ebf8ec97049d49dbf88193d4b7 | [] | no_license | TiAmoGxb/See | e5f94cb139d4c00f242fab1a564eea8a6b983d6b | 4e7d774218828978733e6ef551bfb439e0a17978 | refs/heads/master | 2020-03-22T17:47:06.596872 | 2018-12-27T07:46:48 | 2018-12-27T07:46:48 | 140,415,559 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,492 | java | package cn.see.chat.adapter;
import android.content.Context;
import android.graphics.BitmapFactory;
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 java.util.List;
import cn.jpush.im.android.api.enums.ConversationType;
import cn.jpush.im.android.api.model.Conversation;
import cn.jpush.im.android.api.model.UserInfo;
import cn.see.R;
/**
* Created by ${chenyn} on 2017/7/16.
*/
public class ForwardMsgAdapter extends BaseAdapter {
private Context mContext;
private List<Conversation> mConvList;
public ForwardMsgAdapter(Context context, List<Conversation> conversationList) {
this.mContext = context;
this.mConvList = conversationList;
}
@Override
public int getCount() {
return mConvList.size();
}
@Override
public Object getItem(int position) {
return mConvList.get(position);
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
final ViewHolder holder;
if (null == convertView) {
holder = new ViewHolder();
convertView = LayoutInflater.from(mContext).inflate(R.layout.item_contact, null);
holder.name = (TextView) convertView.findViewById(R.id.name);
holder.avatar = (ImageView) convertView.findViewById(R.id.head_icon_iv);
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
}
Conversation conversation = mConvList.get(position);
if (conversation.getType() == ConversationType.group) {
holder.name.setText(conversation.getTitle());
holder.avatar.setImageResource(R.drawable.group);
} else {
UserInfo userInfo = (UserInfo) conversation.getTargetInfo();
holder.name.setText(userInfo.getDisplayName());
if (userInfo.getAvatarFile() != null) {
holder.avatar.setImageBitmap(BitmapFactory.decodeFile(userInfo.getAvatarFile().getAbsolutePath()));
}else {
holder.avatar.setImageResource(R.drawable.jmui_head_icon);
}
}
return convertView;
}
private static class ViewHolder {
TextView name;
ImageView avatar;
}
}
| [
"78997767@qq.com"
] | 78997767@qq.com |
4d45dd594ec9e91335aad4f9afa8d7f4dc2c3c67 | f2a6bd63ee4766727be0518443ad9047440a2599 | /src/main/java/com/jio/tms/v1/ApplicationWebXml.java | 26e38d3344793010b6a7d88f4458f4b9c6eca59a | [] | no_license | harjeet-me/JioTmsApplication | acbdbf7cf424c008c4f365dbd5ae66652d6abe82 | b779a88d1703ab2719987438e58cc758a221a004 | refs/heads/master | 2022-12-22T18:41:26.693121 | 2020-02-07T06:54:49 | 2020-02-07T06:54:49 | 232,197,425 | 0 | 0 | null | 2022-12-16T04:43:16 | 2020-01-06T22:33:28 | Java | UTF-8 | Java | false | false | 842 | java | package com.jio.tms.v1;
import io.github.jhipster.config.DefaultProfileUtil;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
/**
* This is a helper Java class that provides an alternative to creating a {@code web.xml}.
* This will be invoked only when the application is deployed to a Servlet container like Tomcat, JBoss etc.
*/
public class ApplicationWebXml extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
/**
* set a default to use when no profile is configured.
*/
DefaultProfileUtil.addDefaultProfile(application.application());
return application.sources(JioTmsApplicationApp.class);
}
}
| [
"jhipster-bot@jhipster.tech"
] | jhipster-bot@jhipster.tech |
ec08a9fa0152a17bd413d1003d65c58c80f04b79 | 98d19893970b364261d84ce62c74e661f2ca5f92 | /data-engine/src/main/java/com/foxconn/dpm/common/testdata/bean/ColumnKvList.java | 8b9766cc3389169970fc87d530bbed501a13aee3 | [] | no_license | chenjian-520/sparkDemo | 254f7cecf859ba73f08050ccb75f533a62d605be | fe72e222460b792d6086972d2ae49f13c2543704 | refs/heads/master | 2023-01-20T10:47:10.536275 | 2020-11-24T14:56:14 | 2020-11-24T14:56:14 | 315,318,193 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 238 | java | package com.foxconn.dpm.common.testdata.bean;
import lombok.Data;
import java.util.List;
/**
* @Author HY
* @Date 2020/7/7 14:20
* @Description TODO
*/
@Data
public class ColumnKvList {
private List<RowKvList> columnKvList;
}
| [
"563732435@qq.com"
] | 563732435@qq.com |
0b38412e8cf1f5359241911017977c729b7e67fb | fac5d6126ab147e3197448d283f9a675733f3c34 | /src/main/java/kotlin/text/StringsKt___StringsKt$windowedSequence$2.java | ef4657688abe94df2b9117084f1c54f74763de3b | [] | no_license | KnzHz/fpv_live | 412e1dc8ab511b1a5889c8714352e3a373cdae2f | 7902f1a4834d581ee6afd0d17d87dc90424d3097 | refs/heads/master | 2022-12-18T18:15:39.101486 | 2020-09-24T19:42:03 | 2020-09-24T19:42:03 | 294,176,898 | 0 | 0 | null | 2020-09-09T17:03:58 | 2020-09-09T17:03:57 | null | UTF-8 | Java | false | false | 1,534 | java | package kotlin.text;
import dji.pilot.fpv.util.DJIFlurryReport;
import kotlin.Metadata;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Lambda;
import kotlin.ranges.RangesKt;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\f\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0002\u0010\u0000\u001a\u0002H\u0001\"\u0004\b\u0000\u0010\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "R", DJIFlurryReport.NativeExplore.V2_EXPLORE_SMALLBANNER_SUBKEY_INDEX, "", "invoke", "(I)Ljava/lang/Object;"}, k = 3, mv = {1, 1, 15})
/* compiled from: _Strings.kt */
final class StringsKt___StringsKt$windowedSequence$2 extends Lambda implements Function1<Integer, R> {
final /* synthetic */ int $size;
final /* synthetic */ CharSequence $this_windowedSequence;
final /* synthetic */ Function1 $transform;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
StringsKt___StringsKt$windowedSequence$2(CharSequence charSequence, Function1 function1, int i) {
super(1);
this.$this_windowedSequence = charSequence;
this.$transform = function1;
this.$size = i;
}
public /* bridge */ /* synthetic */ Object invoke(Object obj) {
return invoke(((Number) obj).intValue());
}
public final R invoke(int index) {
return this.$transform.invoke(this.$this_windowedSequence.subSequence(index, RangesKt.coerceAtMost(this.$size + index, this.$this_windowedSequence.length())));
}
}
| [
"michael@districtrace.com"
] | michael@districtrace.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.