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
62299b6a9bd24e8d569bcfe1fe9418d30543fb33
d7494dd4043a6c844830a9843330897b5fefcd21
/benchmark-applications/reiminfer-oopsla-2012/source/TinySQL/src/ORG/as220/tinySQL/sqlparser/ColumnDefinition.java
a204a15fb5385a0def409b5ade6215dcc1ccceb9
[ "MIT" ]
permissive
terminiter/immutability-benchmark
bae71185e4527005d3886f67e6f11364198e8ecd
28931bd5720e671c68f3b3abf0869f83f5543b75
refs/heads/master
2021-01-22T17:53:09.644370
2016-12-14T21:36:19
2016-12-14T21:36:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,229
java
/* * * Copyright 1996, Brian C. Jepson * (bjepson@ids.net) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ package ORG.as220.tinySQL.sqlparser; import ORG.as220.tinySQL.tinySQLException; import ORG.as220.tinySQL.tsColumn; //import checkers.inference.ownership.quals.*; /** * A column definition holds a single definition for a new column used in * CREATE TABLE. * * "(" name type ["(" size [ "," decimals ] ")" ] ")" */ public class ColumnDefinition { private String name; private int type; private int size; private int decimals; private boolean nullable; /** * creates a new column definition for a column with the specified name. * The definition has to be valid to the underlying database, or a database * error is thrown on execution. */ public ColumnDefinition(String name) { this.name = name; } /** * returns the defined name for this column. */ public String getName() { return name; } /** * Alters the name of the column to the give java.sql.Types constant. * If the database does not support this type, a error will be thrown * on execution. */ public void setType(int type) { this.type = type; } /** * returns the data type of this column. */ public int getType() { return type; } /** * sets the size of the column. Decimals are set to 0. If size is * negative, a tinySQLException is thrown. */ public void setSize(int size) throws tinySQLException { if (size <= 0) throw new tinySQLException("Size must be > 0"); this.size = size; this.decimals = 0; } /** * sets the size of the column. Decimals are set to the specified value. * If size is negative or decimals is not smaller than size, a * tinySQLException is thrown. */ public void setSize(int size, int decimals) throws tinySQLException { if (size <= decimals) throw new tinySQLException("Decimals may not be greater or equal to size"); if (size <= 0) throw new tinySQLException("Size must be > 0"); this.size = size; this.decimals = decimals; } /** * returns the size of this column. */ public int getSize() { return size; } /** * returns the decimal places used in this column. */ public int getDecimals() { return decimals; } /** * declares whether this column can contain null values. This property * defaults to false. */ public void setNullable(boolean b) { this.nullable = b; } /** * returns whether this column can contain null values. */ public boolean isNullable() { return nullable; } /** * forms a tsColumn object from this column definition. */ public tsColumn getColumn() { tsColumn myCol = new tsColumn(getName()); if (getSize() > 0) { myCol.setSize(getSize(), getDecimals()); } myCol.setType(getType()); myCol.setNullable(isNullable()); return myCol; } /** * returns a string representation of this object. */ public String toString() { StringBuffer b = new /*@RepRep*/ StringBuffer(); b.append("( "); b.append(name); b.append("; type= "); b.append(ParserUtils.typeToLiteral(type)); b.append("; size= "); if (size == 0) { b.append("DEFAULT )"); } else { b.append(size); b.append("; decimals= "); b.append(decimals); b.append(") "); } return b.toString(); } }
[ "benjholla@gmail.com" ]
benjholla@gmail.com
c8d17c5aa58cc7493c5b5e27e06c5c9ff069b39e
419d8ddce5a33e2025a906638fb1ab4918464cd2
/spring-data-redis-2.2.12.RELEASE/src/main/java/org/springframework/data/redis/core/convert/RedisData.java
70435baa3b928cbc977fa721f96f6a19f349ab35
[ "Apache-2.0" ]
permissive
ynan1213/Java-Study
43ac8ba546fc5a6188ee8872767fa316dfea4a32
1d933138e79ef2cb8ea4de57abc84ac12d883a0a
refs/heads/master
2022-06-30T11:54:23.245439
2021-12-05T01:43:03
2021-12-05T01:43:03
152,955,095
1
0
null
2022-06-21T04:21:49
2018-10-14T08:44:55
Java
UTF-8
Java
false
false
4,158
java
/* * Copyright 2015-2020 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.data.redis.core.convert; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.Map; import java.util.Set; import java.util.concurrent.TimeUnit; import org.springframework.lang.Nullable; import org.springframework.util.Assert; /** * Data object holding {@link Bucket} representing the domain object to be stored in a Redis hash. Index information * points to additional structures holding the objects is for searching. * * @author Christoph Strobl * @author Mark Paluch * @since 1.7 */ public class RedisData { private final Bucket bucket; private final Set<IndexedData> indexedData; private @Nullable String keyspace; private @Nullable String id; private @Nullable Long timeToLive; /** * Creates new {@link RedisData} with empty {@link Bucket}. */ public RedisData() { this(Collections.emptyMap()); } /** * Creates new {@link RedisData} with {@link Bucket} holding provided values. * * @param raw should not be {@literal null}. */ public RedisData(Map<byte[], byte[]> raw) { this(Bucket.newBucketFromRawMap(raw)); } /** * Creates new {@link RedisData} with {@link Bucket} * * @param bucket must not be {@literal null}. */ public RedisData(Bucket bucket) { Assert.notNull(bucket, "Bucket must not be null!"); this.bucket = bucket; this.indexedData = new HashSet<>(); } /** * Set the id to be used as part of the key. * * @param id */ public void setId(@Nullable String id) { this.id = id; } /** * @return */ @Nullable public String getId() { return this.id; } /** * Get the time before expiration in seconds. * * @return {@literal null} if not set. */ @Nullable public Long getTimeToLive() { return timeToLive; } /** * @param index must not be {@literal null}. */ public void addIndexedData(IndexedData index) { Assert.notNull(index, "IndexedData to add must not be null!"); this.indexedData.add(index); } /** * @param indexes must not be {@literal null}. */ public void addIndexedData(Collection<IndexedData> indexes) { Assert.notNull(indexes, "IndexedData to add must not be null!"); this.indexedData.addAll(indexes); } /** * @return never {@literal null}. */ public Set<IndexedData> getIndexedData() { return Collections.unmodifiableSet(this.indexedData); } /** * @return */ @Nullable public String getKeyspace() { return keyspace; } /** * @param keyspace */ public void setKeyspace(@Nullable String keyspace) { this.keyspace = keyspace; } /** * @return */ public Bucket getBucket() { return bucket; } /** * Set the time before expiration in {@link TimeUnit#SECONDS}. * * @param timeToLive can be {@literal null}. */ public void setTimeToLive(Long timeToLive) { this.timeToLive = timeToLive; } /** * Set the time before expiration converting the given arguments to {@link TimeUnit#SECONDS}. * * @param timeToLive must not be {@literal null} * @param timeUnit must not be {@literal null} */ public void setTimeToLive(Long timeToLive, TimeUnit timeUnit) { Assert.notNull(timeToLive, "TimeToLive must not be null when used with TimeUnit!"); Assert.notNull(timeToLive, "TimeUnit must not be null!"); setTimeToLive(TimeUnit.SECONDS.convert(timeToLive, timeUnit)); } /* * (non-Javadoc) * @see java.lang.Object#toString() */ @Override public String toString() { return "RedisDataObject [key=" + keyspace + ":" + id + ", hash=" + bucket + "]"; } }
[ "452245790@qq.com" ]
452245790@qq.com
f1436d919aaab4aed68577c7f24cfdb74c920350
88252dad1b411dd2a580f1182af707d0c0981841
/JavaSE210301/Project02/src/com/atguigu/p2/Customer.java
cce5e7489089af13556aac472647a988bfbc793b
[]
no_license
FatterXiao/myJavaLessons
37db50d24cbcc5524e5b8060803ab08ab3b3ac0c
fa6ff208b46048527b899001561bd952f48bbe15
refs/heads/main
2023-04-20T09:18:06.694611
2021-04-29T10:18:30
2021-04-29T10:18:30
347,562,482
0
1
null
null
null
null
UTF-8
Java
false
false
1,380
java
package com.atguigu.p2; /** * Customer为实体类,用来封装客户信息 * * @author shkstart * @create 11:28 */ public class Customer { private String name;//客户姓名 private char gender; //性别 private int age; //年龄 private String phone;//电话号码 private String email; //电子邮箱 public Customer() { } public Customer(String name, char gender, int age, String phone, String email) { this.name = name; this.gender = gender; this.age = age; this.phone = phone; this.email = email; } public String getName() { return name; } public void setName(String name) { this.name = name; } public char getGender() { return gender; } public void setGender(char gender) { this.gender = gender; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getDetails(){ return name + "\t" + gender + "\t\t" + age + "\t\t\t" + phone + "\t\t" + email; } }
[ "xuweijunxinlan@yeah.net" ]
xuweijunxinlan@yeah.net
3fcb25e9fc8463393ccaf08e6f302be958cc3e73
49853a5988f114b129bb74fd29b52df97d524585
/src/main/java/com/junmeng/condition案例/service/impl/UserService.java
77a9d6eee5330f929d4501b058d9c2d99b0acf42
[]
no_license
xujunmeng/Test-spring-boot
f3192cebac2ac8880d9f34475c6c7f83be0d3aea
fc16b8638394609449e715d43b1e7cd11d87c888
refs/heads/master
2021-04-06T01:32:38.022167
2018-11-28T03:00:31
2018-11-28T03:00:31
125,185,283
0
0
null
null
null
null
UTF-8
Java
false
false
490
java
package com.junmeng.condition案例.service.impl; import com.junmeng.condition案例.dao.UserDAO; import com.junmeng.condition案例.service.IUserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * @author james * @date 2018/11/27 */ @Service public class UserService implements IUserService { @Autowired private UserDAO userDAO; @Override public void test() { userDAO.test(); } }
[ "xujunmeng2012@163.com" ]
xujunmeng2012@163.com
7e17a72bc13910c8aaaaf1d9f9a6b310daa77467
258a8585ed637342645b56ab76a90a1256ecbb45
/Folitics/src/main/java/com/ohmuk/folitics/hibernate/repository/like/IChartCountLikeRepository.java
7462946c4300d6601278fef767a3d798ff2c6494
[]
no_license
exatip407/folitics
06e899aae2dbfdeda981c40c0ce578d223979568
aff3392e09c35f5f799e3fb1c4534b5343a22f01
refs/heads/master
2021-01-01T16:23:14.684470
2017-07-20T10:27:08
2017-07-20T10:27:08
97,819,592
0
0
null
null
null
null
UTF-8
Java
false
false
1,049
java
package com.ohmuk.folitics.hibernate.repository.like; import com.ohmuk.folitics.hibernate.entity.like.ChartLikeCount; import com.ohmuk.folitics.hibernate.entity.like.ChartLikeCountId; import com.ohmuk.folitics.hibernate.entity.like.SentimentLikeCount; import com.ohmuk.folitics.hibernate.entity.like.SentimentLikeCountId; public interface IChartCountLikeRepository extends ILikeCountHibernateRepository<ChartLikeCount> { /** * This method is for finding the record for entity: * {@link ChartLikeCount} by id * * @author Harish * @param com * .ohmuk.folitics.hibernate.entity.like.ChartLikeCountId * @return com.ohmuk.folitics.hibernate.entity.like.ChartLikeCount */ public ChartLikeCount find(ChartLikeCountId id); /** * This method is for deleting the record from database for entity: * {@link ChartLikeCount} by id * * @author Harish * @param com * .ohmuk.folitics.hibernate.entity.like.ChartLikeCountId */ public void delete(ChartLikeCountId id); }
[ "gautam@exatip.com" ]
gautam@exatip.com
b9ae21893cbc483033f80eafaeb218bf69307286
22b1fe6a0af8ab3c662551185967bf2a6034a5d2
/experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation2/Class_540.java
a04bba7c916d4eb3ea003c6d3cd7176404129bca
[ "Apache-2.0" ]
permissive
lesaint/experimenting-annotation-processing
b64ed2182570007cb65e9b62bb2b1b3f69d168d6
1e9692ceb0d3d2cda709e06ccc13290262f51b39
refs/heads/master
2021-01-23T11:20:19.836331
2014-11-13T10:37:14
2014-11-13T10:37:14
26,336,984
1
0
null
null
null
null
UTF-8
Java
false
false
145
java
package fr.javatronic.blog.massive.annotation2; import fr.javatronic.blog.processor.Annotation_002; @Annotation_002 public class Class_540 { }
[ "sebastien.lesaint@gmail.com" ]
sebastien.lesaint@gmail.com
42dac203f11e561895a36a959e07c3c43282d4c0
8c01b699aa2a999b0d9a3bde9ae62ce2a393b598
/src/test/java/com/werghemmi/gc/config/NoOpMailConfiguration.java
7ecc114532df8f12bebd1057c78de3b2e8447c5c
[]
no_license
Werghemmi/gestion-commerciale-jhipster
5df6f2e57eb989b6df0e3ca0044202085bb53f6e
82eb5a04f06ee5af1a266d210ecd09a3eac846df
refs/heads/main
2023-03-13T10:39:30.218221
2021-02-28T19:21:04
2021-02-28T19:21:04
342,685,028
0
0
null
2021-02-28T19:21:05
2021-02-26T19:51:38
Java
UTF-8
Java
false
false
681
java
package com.werghemmi.gc.config; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.mock; import com.werghemmi.gc.service.MailService; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class NoOpMailConfiguration { private final MailService mockMailService; public NoOpMailConfiguration() { mockMailService = mock(MailService.class); doNothing().when(mockMailService).sendActivationEmail(any()); } @Bean public MailService mailService() { return mockMailService; } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
35ce996f02e6ba02d0164d0ffae5b99ca5857119
95091380a1271516ef5758768a15e1345de75ef1
/src/org/omg/PortableInterceptor/ObjectReferenceFactoryHolder.java
186abe6794fe925955b1eb235ada71ae2185faef
[]
no_license
auun/jdk-source-learning
575c52b5b2fddb2451eea7b26356513d3e6adf0e
0a48a0ce87d08835bd9c93c0e957a3f3e354ef1c
refs/heads/master
2020-07-20T21:55:15.886061
2019-09-06T06:06:56
2019-09-06T06:06:56
206,714,837
0
0
null
null
null
null
UTF-8
Java
false
false
1,231
java
package org.omg.PortableInterceptor; /** * org/omg/PortableInterceptor/ObjectReferenceFactoryHolder.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from /build/java8-openjdk/src/jdk8u-jdk8u222-b05/corba/src/share/classes/org/omg/PortableInterceptor/Interceptors.idl * Tuesday, June 18, 2019 10:26:12 AM CEST */ /** The object reference factory. This provides the capability of * creating an object reference. */ public final class ObjectReferenceFactoryHolder implements org.omg.CORBA.portable.Streamable { public org.omg.PortableInterceptor.ObjectReferenceFactory value = null; public ObjectReferenceFactoryHolder () { } public ObjectReferenceFactoryHolder (org.omg.PortableInterceptor.ObjectReferenceFactory initialValue) { value = initialValue; } public void _read (org.omg.CORBA.portable.InputStream i) { value = org.omg.PortableInterceptor.ObjectReferenceFactoryHelper.read (i); } public void _write (org.omg.CORBA.portable.OutputStream o) { org.omg.PortableInterceptor.ObjectReferenceFactoryHelper.write (o, value); } public org.omg.CORBA.TypeCode _type () { return org.omg.PortableInterceptor.ObjectReferenceFactoryHelper.type (); } }
[ "guanglaihe@gmail.com" ]
guanglaihe@gmail.com
a11b3d17d09dca30aef745eff84c2bba7fe13615
7fca2d4a23cdb5414a4673d70eaca410a1a2b73a
/src/main/java/br/com/bf/xml/model/recepcaoevento/TransformsType.java
4081a9ed05b39a37451db8ec7231647ba40b75cf
[]
no_license
MarioJunio/SEFAZ-BUSCA-FICO
29991278da458829eb790bb9d4fdcc962cf63d7e
6279ea0e57047d15b20ad96208913d1e0796ccd6
refs/heads/master
2020-12-30T15:54:46.306751
2017-05-13T15:46:40
2017-05-13T15:46:40
91,184,640
0
0
null
null
null
null
UTF-8
Java
false
false
2,291
java
// // Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 // Consulte <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. // Gerado em: 2017.05.04 às 03:21:40 PM BRT // package br.com.bf.xml.model.recepcaoevento; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Classe Java de TransformsType complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType name="TransformsType"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TransformsType", propOrder = { "transform" }) public class TransformsType { @XmlElement(name = "Transform", required = true) protected List<TransformType> transform; /** * Gets the value of the transform property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the transform property. * * <p> * For example, to add a new item, do as follows: * <pre> * getTransform().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TransformType } * * */ public List<TransformType> getTransform() { if (transform == null) { transform = new ArrayList<TransformType>(); } return this.transform; } }
[ "mario.mj.95@gmail.com" ]
mario.mj.95@gmail.com
63a8daaa7b1b8f73f89b13d88e90f8e744ecb76e
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/methods/Method_5792.java
c7f7471a51e1fab9210ef5ac1e302c7b57ba4f55
[]
no_license
P79N6A/icse_20_user_study
5b9c42c6384502fdc9588430899f257761f1f506
8a3676bc96059ea2c4f6d209016f5088a5628f3c
refs/heads/master
2020-06-24T08:25:22.606717
2019-07-25T15:31:16
2019-07-25T15:31:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
315
java
/** * Returns a copy of this {@link DataSpec} with the specified Uri. * @param uri The new source {@link Uri}. * @return The copied {@link DataSpec} with the specified Uri. */ public DataSpec withUri(Uri uri){ return new DataSpec(uri,httpMethod,httpBody,absoluteStreamPosition,position,length,key,flags); }
[ "sonnguyen@utdallas.edu" ]
sonnguyen@utdallas.edu
a675748072633293e099d405ba54e527d674343f
90eb7a131e5b3dc79e2d1e1baeed171684ef6a22
/sources/com/airbnb/lottie/network/LottieNetworkFetcher.java
112d93eed524675e6776856e2ae9b8a9e31d40ab
[]
no_license
shalviraj/greenlens
1c6608dca75ec204e85fba3171995628d2ee8961
fe9f9b5a3ef4a18f91e12d3925e09745c51bf081
refs/heads/main
2023-04-20T13:50:14.619773
2021-04-26T15:45:11
2021-04-26T15:45:11
361,799,768
0
0
null
null
null
null
UTF-8
Java
false
false
241
java
package com.airbnb.lottie.network; import androidx.annotation.NonNull; import androidx.annotation.WorkerThread; public interface LottieNetworkFetcher { @WorkerThread @NonNull LottieFetchResult fetchSync(@NonNull String str); }
[ "73280944+shalviraj@users.noreply.github.com" ]
73280944+shalviraj@users.noreply.github.com
8ad1f11a6f9fc4e9de9d7ee0769b286e1e5700bc
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-13372-12-25-NSGA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/extension/xar/internal/handler/XarExtensionHandler_ESTest_scaffolding.java
a52ae2b4e11b1e79ffef870c4b60ecb625b895e3
[]
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
464
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Thu Apr 02 01:29:12 UTC 2020 */ package org.xwiki.extension.xar.internal.handler; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class XarExtensionHandler_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
5b9aee30ac6655c567e13c6e3d732146c7aaa5ed
15df00f5e670d704621950e0efb8ac587b97c46b
/app/src/main/java/com/yzf/king/ui/activitys/LoginActivity.java
cbda94fd851d5bee2a18c16e504d7ab5cf44632d
[]
no_license
chocozhao/BrushFace
109c325b73b0fddd8389468b5b4a9290faf89ea9
577591d921d57d8aac185d8851eac13083fb2e02
refs/heads/master
2020-08-03T15:34:08.682062
2019-09-30T07:38:35
2019-09-30T07:38:35
211,799,717
1
0
null
null
null
null
UTF-8
Java
false
false
6,078
java
package com.yzf.king.ui.activitys; import android.Manifest; import android.os.Bundle; import android.support.annotation.NonNull; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.afollestad.materialdialogs.DialogAction; import com.afollestad.materialdialogs.MaterialDialog; import com.gyf.barlibrary.ImmersionBar; import com.xw.repo.XEditText; import com.yzf.king.R; import com.yzf.king.kit.AppTools; import com.yzf.king.kit.utils.AesUtil; import com.yzf.king.kit.utils.PermissionPageUtils; import com.yzf.king.present.PLogin; import com.yzf.king.widget.StateButton; import butterknife.BindView; import butterknife.OnClick; import cn.droidlover.xdroidmvp.cache.SharedPref; import cn.droidlover.xdroidmvp.mvp.ToastType; import cn.droidlover.xdroidmvp.mvp.XActivity; import cn.droidlover.xdroidmvp.net.NetError; import cn.droidlover.xdroidmvp.router.Router; import rx.functions.Action1; /** *   ┏┓   ┏┓+ + *  ┏┛┻━━━┛┻┓ + + *  ┃       ┃ *  ┃   ━   ┃ ++ + + + * ████━████ ┃+ *  ┃       ┃ + *  ┃   ┻   ┃ *  ┃       ┃ + + *  ┗━┓   ┏━┛ *    ┃   ┃ *    ┃   ┃ + + + + *    ┃   ┃ *    ┃   ┃ + 神兽镇楼 *    ┃   ┃ 代码无bug *    ┃   ┃  + *    ┃    ┗━━━┓ + + *    ┃        ┣┓ *    ┃        ┏┛ *    ┗┓┓┏━┳┓┏┛ + + + + *     ┃┫┫ ┃┫┫ *     ┗┻┛ ┗┻┛+ + + + * <p> * ClassName:LoginActivity * Description:登陆页面 * Author:JensenWei * QQ: 2188307188 * Createtime:2018/8/24 14:58 * Modified By: * Fixtime:2018/8/24 14:58 * FixDescription: */ public class LoginActivity extends XActivity<PLogin> { @BindView(R.id.login_phone_et) XEditText loginPhoneEt; @BindView(R.id.login_pwd_et) XEditText loginPwdEt; @BindView(R.id.login_forget_tv) TextView loginForgetTv; @BindView(R.id.login_bt) StateButton loginBt; @Override public int getLayoutId() { return R.layout.activity_login; } @Override public void initData(Bundle bundle) { initView(); getRxPermissions()//获取内、外部存储权限 .request(Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE) .subscribe(new Action1<Boolean>() { @Override public void call(Boolean granted) { if (granted) { //TODO 许可 } else { //TODO 未许可 showNoticeDialog("尚未获取权限,是否去开启权限?", new MaterialDialog.SingleButtonCallback() { @Override public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) { if (which == DialogAction.POSITIVE) { PermissionPageUtils permissionPageUtils = new PermissionPageUtils(context); permissionPageUtils.jumpPermissionPage(); } } }); } } }); } public PLogin newP() { return new PLogin(); } private void initView() { String phone = SharedPref.getInstance(this.context).getString("phone", ""); String password = SharedPref.getInstance(this.context).getString("password", ""); String decrypt = null; if (!AppTools.isEmpty(password)) { decrypt = AesUtil.decrypt(password); } this.loginPhoneEt.setText(phone); this.loginPwdEt.setText(decrypt); } /** * activity跳转 */ public void JumpActivity(Class<?> activity, boolean isfinish) { getvDelegate().dismissLoading(); Router.newIntent(context) .to(activity) .launch(); if (isfinish) { Router.pop(context); } } public void showToast(String str) { getvDelegate().toastShort(str); } public void showToast(String str, ToastType type) { getvDelegate().toast(str, type); } public void showErrorDialog(String str) { getvDelegate().showErrorDialog(str); } public void showError(NetError netError) { getvDelegate().showError(netError); } /** * 显示双按钮对话框 * * @param msg * @param callback */ public void showNoticeDialog(String msg, MaterialDialog.SingleButtonCallback callback) { getvDelegate().showNoticeDialog(msg, callback); } @OnClick({R.id.login_bt, R.id.login_forget_tv}) public void onViewClicked(View view) { switch (view.getId()) { case R.id.login_forget_tv: JumpActivity(FindPasswordActivity.class, false); break; case R.id.login_bt: String phone = loginPhoneEt.getTextEx(); String pwd = loginPwdEt.getTextEx(); if (AppTools.isEmpty(phone)) { showToast(getString(R.string.input_phone)); } if (!AppTools.isMobile(phone)) { showToast(getString(R.string.phone_incorrect), ToastType.ERROR); } if (AppTools.isEmpty(pwd)) { showToast(getString(R.string.input_pwd), ToastType.ERROR); } getvDelegate().showLoading(); getP().login(phone, pwd, null, "0", null, null, null); break; default: } } }
[ "you@example.com" ]
you@example.com
b204f25788902671385b7f29743519bb63b5c46f
fe0622b62c8ff249f5c3f22109d6e89f1f30e525
/src/main/java/cn/net/colin/service/articleManage/impl/ArticleInfoServiceImpl.java
4e93d0a6a5e2c4481ef898671c842ed03747996a
[]
no_license
siasColin/springboot2example
ec58876b998ec9adbeba1d211370bda352dc3f34
7127ce49411f38940748a32b2b946b01afc8e23f
refs/heads/master
2023-04-27T01:50:24.912515
2023-02-23T06:24:12
2023-02-23T06:24:12
244,126,899
4
3
null
2023-04-14T17:33:08
2020-03-01T10:14:27
Java
UTF-8
Java
false
false
2,768
java
package cn.net.colin.service.articleManage.impl; import cn.net.colin.mapper.articleManage.ArticleInfoMapper; import cn.net.colin.model.articleManage.ArticleInfo; import cn.net.colin.model.articleManage.ArticleInfoCriteria; import cn.net.colin.service.articleManage.IArticleInfoService; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class ArticleInfoServiceImpl implements IArticleInfoService { @Autowired private ArticleInfoMapper articleInfoMapper; private static final Logger logger = LoggerFactory.getLogger(ArticleInfoServiceImpl.class); public long countByExample(ArticleInfoCriteria example) { long count = this.articleInfoMapper.countByExample(example); logger.debug("count: {}", count); return count; } public ArticleInfo selectByPrimaryKey(Long id) { return this.articleInfoMapper.selectByPrimaryKey(id); } public List<ArticleInfo> selectByExample(ArticleInfoCriteria example) { return this.articleInfoMapper.selectByExample(example); } public List<ArticleInfo> selectByExampleWithBLOBs(ArticleInfoCriteria example) { return this.articleInfoMapper.selectByExampleWithBLOBs(example); } public int deleteByPrimaryKey(Long id) { return this.articleInfoMapper.deleteByPrimaryKey(id); } public int updateByPrimaryKeySelective(ArticleInfo record) { return this.articleInfoMapper.updateByPrimaryKeySelective(record); } public int updateByPrimaryKey(ArticleInfo record) { return this.articleInfoMapper.updateByPrimaryKey(record); } public int updateByPrimaryKeyWithBLOBs(ArticleInfo record) { return this.articleInfoMapper.updateByPrimaryKeyWithBLOBs(record); } public int deleteByExample(ArticleInfoCriteria example) { return this.articleInfoMapper.deleteByExample(example); } public int updateByExampleSelective(ArticleInfo record, ArticleInfoCriteria example) { return this.articleInfoMapper.updateByExampleSelective(record, example); } public int updateByExample(ArticleInfo record, ArticleInfoCriteria example) { return this.articleInfoMapper.updateByExample(record, example); } public int updateByExampleWithBLOBs(ArticleInfo record,ArticleInfoCriteria example) { return this.articleInfoMapper.updateByExampleWithBLOBs(record,example); } public int insert(ArticleInfo record) { return this.articleInfoMapper.insert(record); } public int insertSelective(ArticleInfo record) { return this.articleInfoMapper.insertSelective(record); } }
[ "1540247870@qq.com" ]
1540247870@qq.com
d4fc301b1cb2b8a92913696b0dcc9212d5b5dc31
e6c45382331d9a02a218226fdbb571e2971a7dfa
/java-fpp/src/fpp/Day6/GuiDemo1.java
271307c80f68c6bd6f04281104ef026caedf79ac
[]
no_license
rubenpazch/javaBasic
d9937a25046c6793a78bf703e75a65b0329337d1
ae3574891574544b266a5248f6409b696813ce7c
refs/heads/master
2020-03-21T15:46:28.460028
2018-07-11T14:08:17
2018-07-11T14:08:17
138,731,941
0
0
null
null
null
null
UTF-8
Java
false
false
894
java
package javaswingexamples; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; public class GuiDemo1 implements ActionListener{ JButton button; public static void main(String[] args) { GuiDemo1 gui=new GuiDemo1(); gui.go(); } public void go() { JFrame frame=new JFrame(); button=new JButton("Click"); frame.getContentPane().add(button); button.addActionListener(this); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(300, 200); frame.setTitle("Click Demo"); frame.setVisible(true); } @Override public void actionPerformed(ActionEvent e) { button.setText("I've been clicked"); } }
[ "rubenpazchuspe@outlook.com" ]
rubenpazchuspe@outlook.com
1d2c210bbbf1b1de034e1a35116f4c1875226243
7a637e9654f3b6720d996e9b9003f53e40f94814
/aylson-manage/src/main/java/com/aylson/dc/partner/controller/CouponController.java
2232a90920941f0fb10da9d9ad29caa8149a93e1
[]
no_license
hemin1003/aylson-parent
118161fc9f7a06b583aa4edd23d36bdd6e000f33
1a2a4ae404705871717969449370da8531028ff9
refs/heads/master
2022-12-26T14:12:19.452615
2019-09-20T01:58:40
2019-09-20T01:58:40
97,936,256
161
103
null
2022-12-16T07:38:18
2017-07-21T10:30:03
JavaScript
UTF-8
Java
false
false
5,094
java
package com.aylson.dc.partner.controller; import java.util.List; 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.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import com.aylson.core.easyui.EasyuiDataGridJson; import com.aylson.core.frame.controller.BaseController; import com.aylson.core.frame.domain.Result; import com.aylson.core.frame.domain.ResultCode; import com.aylson.dc.partner.search.CouponSearch; import com.aylson.dc.partner.service.CouponService; import com.aylson.dc.partner.vo.CouponVo; /** * 优惠券管理 * @author wwx * @since 2017-01 * @version v1.0 * */ @Controller @RequestMapping("/partner/coupon") public class CouponController extends BaseController { @Autowired private CouponService couponService; //优惠券服务 /** * 后台-首页 * * @return */ @RequestMapping(value = "/admin/toIndex", method = RequestMethod.GET) public String toIndex() { return "/jsp/partner/admin/coupon/index"; } /** * 获取列表-分页 * @return list */ @RequestMapping(value = "/admin/list", method = RequestMethod.GET) @ResponseBody public EasyuiDataGridJson list(CouponSearch couponSearch){ EasyuiDataGridJson result = new EasyuiDataGridJson();//页面DataGrid结果集 try{ couponSearch.setIsPage(true); List<CouponVo> list = this.couponService.getList(couponSearch); result.setTotal(this.couponService.getRowCount(couponSearch)); result.setRows(list); return result; }catch(Exception e){ e.printStackTrace(); return null; } } /** * 获取列表-不分页 * 根据条件获取列表信息 * @param couponSearch * @return */ @ResponseBody @RequestMapping(value = "/getList", method = RequestMethod.GET) public List<CouponVo> getList(CouponSearch couponSearch) { List<CouponVo> list = this.couponService.getList(couponSearch); return list; } /** * 后台-添加页面 * @return */ @RequestMapping(value = "/admin/toAdd", method = RequestMethod.GET) public String toAdd() { return "/jsp/partner/admin/coupon/add"; } /** * 后台-添加 * @param couponVo * @return */ @RequestMapping(value = "/admin/add", method = RequestMethod.POST) @ResponseBody public Result add(CouponVo couponVo) { Result result = new Result(); try{ Boolean flag = this.couponService.add(couponVo); if(flag){ result.setOK(ResultCode.CODE_STATE_200, "操作成功"); }else{ result.setError(ResultCode.CODE_STATE_4006, "操作失败"); } }catch(Exception e){ e.printStackTrace(); result.setError(ResultCode.CODE_STATE_500, e.getMessage()); } return result; } /** * 后台-编辑页面 * @param id * @return */ @RequestMapping(value = "/admin/toEdit", method = RequestMethod.GET) public String toEdit(Integer id) { if(id != null){ CouponVo couponVo = this.couponService.getById(id); this.request.setAttribute("couponVo",couponVo); } return "/jsp/partner/admin/coupon/add"; } /** * 后台-编辑保存 * @param couponVo * @return */ @RequestMapping(value = "/admin/update", method = RequestMethod.POST) @ResponseBody public Result update(CouponVo couponVo) { Result result = new Result(); try { Boolean flag = this.couponService.edit(couponVo); if(flag){ result.setOK(ResultCode.CODE_STATE_200, "操作成功"); }else{ result.setError(ResultCode.CODE_STATE_4006, "操作失败"); } } catch (Exception e) { e.printStackTrace(); result.setError(ResultCode.CODE_STATE_500, e.getMessage()); } return result; } /** * 根据id删除 * @param id * @return */ @RequestMapping(value = "/admin/deleteById", method = RequestMethod.POST) @ResponseBody public Result deleteById(Integer id) { Result result = new Result(); try{ Boolean flag = this.couponService.deleteById(id); if(flag){ result.setOK(ResultCode.CODE_STATE_200, "删除成功"); }else{ result.setError(ResultCode.CODE_STATE_4006, "删除失败"); } }catch(Exception e){ e.printStackTrace(); result.setError(ResultCode.CODE_STATE_500, e.getMessage()); } return result; } /** * 上架/下架 * @param couponVo * @return */ @RequestMapping(value = "/admin/upDown", method = RequestMethod.POST) @ResponseBody public Result upDown(CouponVo couponVo) { Result result = new Result(); try { Boolean flag = this.couponService.edit(couponVo); if(flag){ result.setOK(ResultCode.CODE_STATE_200, "操作成功"); }else{ result.setError(ResultCode.CODE_STATE_4006, "操作失败"); } } catch (Exception e) { e.printStackTrace(); result.setError(ResultCode.CODE_STATE_500, e.getMessage()); } return result; } }
[ "hemin_it@163.com" ]
hemin_it@163.com
1db0b71915256677f6a2441316acb173b3b52ec6
40d38003df4807bf1f00ed1ebcf29d4ce444460d
/src/com/jeta/abeille/gui/table/mysql/MySQLTableView.java
349dc919ad27f0cbabf771e112bca67aa79a2978
[]
no_license
jeff-tassin/abeilledb
c869dbd95fc229abc88b7f3938cd932dcedd8099
94ffd3d3dff345e35ed64173833d254685af13a1
refs/heads/master
2023-08-10T16:36:08.328238
2022-01-31T19:46:41
2022-01-31T19:46:41
225,102,904
2
1
null
null
null
null
UTF-8
Java
false
false
7,166
java
package com.jeta.abeille.gui.table.mysql; import java.awt.BorderLayout; import javax.swing.BorderFactory; import javax.swing.JPanel; import javax.swing.JTabbedPane; import com.jeta.abeille.database.model.Database; import com.jeta.abeille.database.model.TableId; import com.jeta.abeille.database.model.TableIdGetter; import com.jeta.abeille.database.model.TableMetaData; import com.jeta.abeille.database.model.TSConnection; import com.jeta.abeille.database.utils.DbUtils; import com.jeta.abeille.gui.common.DefaultTableSelectorModel; import com.jeta.abeille.gui.indexes.IndexesView; import com.jeta.abeille.gui.indexes.mysql.MySQLIndexesModel; import com.jeta.abeille.gui.indexes.mysql.MySQLIndexesViewController; import com.jeta.abeille.gui.model.ModelerModel; import com.jeta.abeille.gui.modeler.AlterColumnsController; import com.jeta.abeille.gui.modeler.AlterForeignKeysController; import com.jeta.abeille.gui.modeler.AlterPrimaryKeyController; import com.jeta.abeille.gui.modeler.ColumnsGuiModel; import com.jeta.abeille.gui.modeler.ColumnsPanel; import com.jeta.abeille.gui.modeler.ForeignKeysModel; import com.jeta.abeille.gui.modeler.ForeignKeysView; import com.jeta.abeille.gui.modeler.PrimaryKeyView; import com.jeta.abeille.gui.modeler.SQLPanel; import com.jeta.abeille.gui.modeler.TableChangedListener; import com.jeta.abeille.gui.jdbc.ColumnInfoPanel; import com.jeta.abeille.gui.table.TableView; import com.jeta.foundation.gui.components.TSPanel; import com.jeta.foundation.gui.utils.TSGuiToolbox; import com.jeta.foundation.i18n.I18N; import com.jeta.foundation.utils.TSUtils; /** * This view displays all the properties for a table in a JTabbedPane * * @author Jeff Tassin */ public class MySQLTableView extends TableView implements TableIdGetter, TableChangedListener { /** the columns model for the table */ private ColumnsGuiModel m_colsmodel; /** the view for the primary key */ private PrimaryKeyView m_pkview; /** the foreign key model */ private ForeignKeysModel m_foreignkeymodel; /** the model for the table indices */ private MySQLIndexesModel m_indicesmodel; /** the table attributes view for MySQL */ private MySQLTableAttributesView m_mysqlview; /** displays the MySQL column status */ private MySQLColumnStatusView m_colstatusview; /** displays the MySQL table status */ private MySQLTableStatusView m_tablestatusview; /** JDBC driver info */ private ColumnInfoPanel m_jdbcview; // this pane shows raw jdbc information // about a table in the database // ////////////////////////////////////////////////////// // sql pane private SQLPanel m_sqlview; /** * ctor */ public MySQLTableView(TSConnection conn) { super(conn); initialize(); setController(new MySQLTableViewController(this)); } /** * @return the view that displays the MySQL column status */ private TSPanel createColumnStatusView() { m_colstatusview = new MySQLColumnStatusView(getConnection()); return m_colstatusview; } /** * Creates the view that displays the columns */ private TSPanel createColumnsView() { m_colsmodel = new ColumnsGuiModel(getConnection(), false, null, false); ColumnsPanel colsview = new ColumnsPanel(m_colsmodel, false); // colsview.setController( new AlterColumnsController( colsview )); return colsview; } /** * Creates the foreign keys view */ private TSPanel createForeignKeysView() { ForeignKeysView fkview = new ForeignKeysView(m_colsmodel, getConnection(), ModelerModel.getDefaultInstance(getConnection()), this, false); // fkview.setController( new AlterForeignKeysController( fkview ) ); m_foreignkeymodel = fkview.getModel(); return fkview; } /** * Creates the indices view for the selected table */ private TSPanel createIndexesView() { m_indicesmodel = new MySQLIndexesModel(getConnection(), null); IndexesView view = new IndexesView(m_indicesmodel); // view.setController( new MySQLIndexesViewController( view ) ); return view; } /** * Creates the JDBC Panel. Called by initialize. This panel allows the user * to raw information about the table from the JDBC driver */ private TSPanel createJDBCView() { m_jdbcview = new ColumnInfoPanel(); m_jdbcview.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); return m_jdbcview; } /** * Creates the MySQLAttributes View */ private TSPanel createMySQLAttributesView() { m_mysqlview = new MySQLTableAttributesView(getConnection()); return m_mysqlview; } /** * Creates the primary key view */ private TSPanel createPrimaryKeyView() { m_pkview = new PrimaryKeyView(getConnection(), m_colsmodel, null, false); // m_pkview.setController( new AlterPrimaryKeyController( m_pkview, this // ) ); return m_pkview; } /** * Creates the SQL Panel. Called by initialize. This panel allows the user * to view/tweak the generated SQL */ private SQLPanel createSQLView() { m_sqlview = new SQLPanel(getConnection()); return m_sqlview; } /** * @return the view that displays the MySQL table status for the selected * table */ private TSPanel createTableStatusView() { m_tablestatusview = new MySQLTableStatusView(getConnection()); return m_tablestatusview; } /** * Initializes and creates the sub-views for this view */ private void initialize() { addView(I18N.getLocalizedMessage("Columns"), createColumnsView(), null); addView(I18N.getLocalizedMessage("Primary Key"), createPrimaryKeyView(), null); addView("MySQL", createMySQLAttributesView(), null); addView(I18N.getLocalizedMessage("Foreign Keys"), createForeignKeysView(), null); addView(I18N.getLocalizedMessage("Indexes"), createIndexesView(), null); addView(I18N.getLocalizedMessage("Column Status"), createColumnStatusView(), null); addView(I18N.getLocalizedMessage("Table Status"), createTableStatusView(), null); addView(I18N.getLocalizedMessage("SQL"), createSQLView(), null); addView("JDBC", createJDBCView(), null); } /** * Sets the current table id for the view. All tabs are updated to display * the properties for the given table */ public void setTableId(TableId tableId) { try { super.setTableId(tableId); // make sure the table is fully loaded TableMetaData tmd = null; if (tableId != null) { tmd = getConnection().getModel(tableId.getCatalog()).getTableEx(tableId, TableMetaData.LOAD_FOREIGN_KEYS | TableMetaData.LOAD_COLUMNS_EX); } m_colsmodel.setTableId(tableId); m_pkview.loadData(m_colsmodel); m_foreignkeymodel.setTableId(tableId); m_indicesmodel.setTableId(tableId); m_mysqlview.setTableId(tableId); m_jdbcview.refresh(getConnection().getMetaDataConnection(), tableId); m_colstatusview.setTableId(tableId); m_tablestatusview.setTableId(tableId); if (tmd == null) m_sqlview.setText(""); else m_sqlview.setText(DbUtils.createTableSQL(getConnection(), tmd)); } catch (Exception e) { TSUtils.printStackTrace(e); } } /** * TableChangedListener implementation */ public void tableChanged(TableId tableid) { getConnection().getModel(tableid.getCatalog()).reloadTable(tableid); setTableId(tableid); } }
[ "jtassin@zco.tech" ]
jtassin@zco.tech
e73c67c5886411ea0803fe74cbf9b3932a6565b2
461619a84c6617ceaf2b7913ef58c99ff32c0fb5
/dagger/annotationProvides/annotationProvides/AP/AP_/app/src/main/java/com/bgstation0/dagger/sample/ap_/PumpBaseModule2.java
b1972ea7c045c324b2d3c672c40d83fb772e0492
[ "MIT" ]
permissive
bg1bgst333/Sample
cf066e48facac8ecd203c56665251fa1aa103844
298a4253dd8123b29bc90a3569f2117d7f6858f8
refs/heads/master
2023-09-02T00:46:31.139148
2023-09-01T02:41:42
2023-09-01T02:41:42
27,908,184
9
10
MIT
2023-09-06T20:49:55
2014-12-12T06:22:49
Java
UTF-8
Java
false
false
453
java
package com.bgstation0.dagger.sample.ap_; import dagger.Module; import dagger.Provides; // パンプベースモジュール2. @Module public class PumpBaseModule2 { // パンプベースの提供. @Provides static PumpBase providePumpBase(Pump2 pump2){ return pump2; // pump2を返す. } // ヒーターベースの提供 @Provides static HeaterBase provideHeaterBase(){ return new Heater2(); } }
[ "bg1bgst333@gmail.com" ]
bg1bgst333@gmail.com
7b6c22699fece1fbc13e513dc68effce5f01f55d
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/9/org/apache/commons/math3/linear/AbstractFieldMatrix_checkColumnIndex_1010.java
965e94dc8f1db2cbc4da7c41bbb786192d9693b0
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
1,718
java
org apach common math3 linear basic implement link field matrix fieldmatrix method underli storag method implement link entri getentri access matrix element deriv provid faster implement param type field element version abstract field matrix abstractfieldmatrix field element fieldel check column index valid param column column index check rang except outofrangeexcept code index valid check column index checkcolumnindex column rang except outofrangeexcept column column column dimens getcolumndimens rang except outofrangeexcept local format localizedformat column index column column dimens getcolumndimens
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
3c4087c98b90d711277056efdd2e0e958d237f9b
f42d7da85f9633cfb84371ae67f6d3469f80fdcb
/com4j-20120426-2/samples/iTunes/build/src/iTunes/def/IITLibraryPlaylist.java
15ec5defb3262da700f62be403905d1d436f8c60
[ "BSD-2-Clause" ]
permissive
LoongYou/Wanda
ca89ac03cc179cf761f1286172d36ead41f036b5
2c2c4d1d14e95e98c0a3af365495ec53775cc36b
refs/heads/master
2023-03-14T13:14:38.476457
2021-03-06T10:20:37
2021-03-06T10:20:37
231,610,760
1
0
null
null
null
null
UTF-8
Java
false
false
2,001
java
package iTunes.def ; import com4j.*; /** * IITLibraryPlaylist Interface */ @IID("{53AE1704-491C-4289-94A0-958815675A3D}") public interface IITLibraryPlaylist extends iTunes.def.IITPlaylist { // Methods: /** * <p> * Add the specified file path to the library. * </p> * @param filePath Mandatory java.lang.String parameter. * @return Returns a value of type iTunes.def.IITOperationStatus */ @DISPID(1610874880) //= 0x60040000. The runtime will prefer the VTID if present @VTID(30) iTunes.def.IITOperationStatus addFile( java.lang.String filePath); /** * <p> * Add the specified array of file paths to the library. filePaths can be of type VT_ARRAY|VT_VARIANT, where each entry is a VT_BSTR, or VT_ARRAY|VT_BSTR. You can also pass a JScript Array object. * </p> * @param filePaths Mandatory java.lang.Object parameter. * @return Returns a value of type iTunes.def.IITOperationStatus */ @DISPID(1610874881) //= 0x60040001. The runtime will prefer the VTID if present @VTID(31) iTunes.def.IITOperationStatus addFiles( java.lang.Object filePaths); /** * <p> * Add the specified streaming audio URL to the library. * </p> * @param url Mandatory java.lang.String parameter. * @return Returns a value of type iTunes.def.IITURLTrack */ @DISPID(1610874882) //= 0x60040002. The runtime will prefer the VTID if present @VTID(32) iTunes.def.IITURLTrack addURL( java.lang.String url); /** * <p> * Add the specified track to the library. iTrackToAdd is a VARIANT of type VT_DISPATCH that points to an IITTrack. * </p> * @param iTrackToAdd Mandatory java.lang.Object parameter. * @return Returns a value of type iTunes.def.IITTrack */ @DISPID(1610874883) //= 0x60040003. The runtime will prefer the VTID if present @VTID(33) iTunes.def.IITTrack addTrack( java.lang.Object iTrackToAdd); // Properties: }
[ "815234949@qq.com" ]
815234949@qq.com
5edde6a01265308f905def515e22197e286884c7
60892bf36fc81470ee9084c049d02acb55228889
/src/main/java/org/com/cay/mmall/dao/ShippingMapper.java
a59126812661ed492e27d9fbc817f7b99ddb5832
[]
no_license
caychen/mmall
6b237ebc2c00317166bdca3e77f7f96faaf6a457
f3af68960002a7ce1de615f1333752a237a2f554
refs/heads/master
2020-03-20T17:41:24.690887
2018-07-09T03:28:28
2018-07-09T03:28:28
137,563,939
1
0
null
null
null
null
UTF-8
Java
false
false
731
java
package org.com.cay.mmall.dao; import org.apache.ibatis.annotations.Param; import org.com.cay.mmall.entity.Shipping; import java.util.List; public interface ShippingMapper { int deleteByPrimaryKey(Integer id); int insert(Shipping record); int insertSelective(Shipping record); Shipping selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(Shipping record); int updateByPrimaryKey(Shipping record); int deleteByShippingIdUserId(@Param("userId") Integer userId, @Param("shippingId") Integer shippingId); int updateShipping(Shipping shipping); Shipping selectByShippingIdUserId(@Param("userId") Integer userId, @Param("shippingId") Integer shippingId); List<Shipping> selectByUserId(Integer userId); }
[ "412425870@qq.com" ]
412425870@qq.com
df8056ffaed1960e5e5c2caeee3b38d1fde6cf42
dbc96367c33e80cdf5575c81adc14f8f0b31804b
/src/com/suijtha/practies/MultipleWindowsTest.java
dbdb542d750a1af30f8646695f5c3ee47fe8723d
[]
no_license
Selenium4/WebDriver
9a77f918b0ee6264f35d1052b102002827274d0d
cae9c7e7f6550d37ee4fbbabba7e920c432971f6
refs/heads/master
2020-04-25T03:56:10.491073
2019-02-25T11:33:48
2019-02-25T11:33:48
172,493,662
0
0
null
null
null
null
UTF-8
Java
false
false
1,194
java
package com.suijtha.practies; import java.util.Iterator; import java.util.Set; import org.openqa.selenium.By; import org.openqa.selenium.firefox.FirefoxDriver; public class MultipleWindowsTest { public static void main(String[] args) { FirefoxDriver driver=new FirefoxDriver(); driver.navigate().to("Http://hdfcbank.com"); driver.manage().window().maximize(); String parent=driver.getWindowHandle(); //111111 //System.out.println(parent); driver.findElement(By.id("loginsubmit")).click(); Set<String> windows=driver.getWindowHandles();//111111&222222 Iterator<String> it=windows.iterator(); while(it.hasNext()) { String child=it.next().toString(); //System.out.println(child); driver.switchTo().window(child); driver.close(); } /*for (String child : windows) { //System.out.println(child); driver.switchTo().window(child); //System.out.println(driver.getTitle()); //driver.close(); if (!parent.equals(child)) { driver.switchTo().window(child); driver.findElement(By.xpath("html/body/div[4]/div[2]/div[1]/a")).click(); } if (!driver.getTitle().equals("NetBanking")) { driver.close(); } }*/ } }
[ "vasu.584@gmail.com" ]
vasu.584@gmail.com
4a801d0224ea179a71c4d9270982298a80d63c7c
647eef4da03aaaac9872c8b210e4fc24485e49dc
/TestMemory/admobsdk/src/main/java/com/google/android/gms/internal/zzge.java
1f7abcc2f6435ae5f05c0fa1cffe60aaccbdb63f
[]
no_license
AlbertSnow/git_workspace
f2d3c68a7b6e62f41c1edcd7744f110e2bf7f021
a0b2cd83cfa6576182f440a44d957a9b9a6bda2e
refs/heads/master
2021-01-22T17:57:16.169136
2016-12-05T15:59:46
2016-12-05T15:59:46
28,154,580
1
1
null
null
null
null
UTF-8
Java
false
false
4,826
java
package com.google.android.gms.internal; import android.content.Intent; import android.os.Binder; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import android.os.Parcelable.Creator; import android.os.RemoteException; public abstract interface zzge extends IInterface { public abstract void onCreate() throws RemoteException; public abstract void onDestroy() throws RemoteException; public abstract void onActivityResult(int paramInt1, int paramInt2, Intent paramIntent) throws RemoteException; public static abstract class zza extends Binder implements zzge { public zza() { attachInterface(this, "com.google.android.gms.ads.internal.purchase.client.IInAppPurchaseManager"); } public static zzge zzQ(IBinder paramIBinder) { if (paramIBinder == null) return null; IInterface localIInterface = paramIBinder.queryLocalInterface("com.google.android.gms.ads.internal.purchase.client.IInAppPurchaseManager"); if ((localIInterface != null) && ((localIInterface instanceof zzge))) return (zzge)localIInterface; return new zza(paramIBinder); } public IBinder asBinder() { return this; } public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException { switch (code) { case 1598968902: reply.writeString("com.google.android.gms.ads.internal.purchase.client.IInAppPurchaseManager"); return true; case 1: data.enforceInterface("com.google.android.gms.ads.internal.purchase.client.IInAppPurchaseManager"); onCreate(); reply.writeNoException(); return true; case 2: data.enforceInterface("com.google.android.gms.ads.internal.purchase.client.IInAppPurchaseManager"); onDestroy(); reply.writeNoException(); return true; case 3: data.enforceInterface("com.google.android.gms.ads.internal.purchase.client.IInAppPurchaseManager"); int i = data.readInt(); int j = data.readInt(); Intent localIntent; if (0 != data.readInt()) localIntent = (Intent)Intent.CREATOR.createFromParcel(data); else localIntent = null; onActivityResult(i, j, localIntent); reply.writeNoException(); return true; } return super.onTransact(code, data, reply, flags); } private static class zza implements zzge { private IBinder zzoz; zza(IBinder paramIBinder) { this.zzoz = paramIBinder; } public IBinder asBinder() { return this.zzoz; } public void onCreate() throws RemoteException { Parcel localParcel1 = Parcel.obtain(); Parcel localParcel2 = Parcel.obtain(); try { localParcel1.writeInterfaceToken("com.google.android.gms.ads.internal.purchase.client.IInAppPurchaseManager"); this.zzoz.transact(1, localParcel1, localParcel2, 0); localParcel2.readException(); } finally { localParcel2.recycle(); localParcel1.recycle(); } } public void onDestroy() throws RemoteException { Parcel localParcel1 = Parcel.obtain(); Parcel localParcel2 = Parcel.obtain(); try { localParcel1.writeInterfaceToken("com.google.android.gms.ads.internal.purchase.client.IInAppPurchaseManager"); this.zzoz.transact(2, localParcel1, localParcel2, 0); localParcel2.readException(); } finally { localParcel2.recycle(); localParcel1.recycle(); } } public void onActivityResult(int requestCode, int resultCode, Intent data) throws RemoteException { Parcel localParcel1 = Parcel.obtain(); Parcel localParcel2 = Parcel.obtain(); try { localParcel1.writeInterfaceToken("com.google.android.gms.ads.internal.purchase.client.IInAppPurchaseManager"); localParcel1.writeInt(requestCode); localParcel1.writeInt(resultCode); if (data != null) { localParcel1.writeInt(1); data.writeToParcel(localParcel1, 0); } else { localParcel1.writeInt(0); } this.zzoz.transact(3, localParcel1, localParcel2, 0); localParcel2.readException(); } finally { localParcel2.recycle(); localParcel1.recycle(); } } } } } /* Location: C:\Users\Administrator\Downloads\classes.jar * Qualified Name: com.google.android.gms.internal.zzge * JD-Core Version: 0.6.0 */
[ "zhaojialiang@conew.com" ]
zhaojialiang@conew.com
4daca04fb190fdf11eab4a6eca1ad0b72cc9f1b2
caec973a94edda1833ccfbf6f365094af2db6505
/src/main/java/dev/ftb/mods/ftbmoney/gui/SortType.java
e58effc719ad61857ff399d3d8290812c39d9a52
[]
no_license
FTBTeam/FTB-Money
b5f2d81b6e623a93811d2f345881ea548861ccf6
a47e80db32db1439b26d4ed45778fcbe918af0d8
refs/heads/main
2023-06-08T05:36:21.544496
2022-07-21T16:24:52
2022-07-21T16:24:52
158,704,501
9
14
null
2023-07-12T10:28:17
2018-11-22T13:37:18
Java
UTF-8
Java
false
false
1,059
java
package dev.ftb.mods.ftbmoney.gui; import dev.ftb.mods.ftbmoney.shop.ShopEntry; import java.util.Comparator; /** * @author LatvianModder */ public enum SortType { PRICE_H_L("price_h_l", (o1, o2) -> { int i = Long.compare(o2.buy, o1.buy); return i == 0 ? compareNamesAZ(o1, o2) : i; }), PRICE_L_H("price_l_h", (o1, o2) -> { int i = Long.compare(o1.buy, o2.buy); return i == 0 ? compareNamesAZ(o1, o2) : i; }), NAME_A_Z("name_a_z", SortType::compareNamesAZ), NAME_Z_A("name_z_a", SortType::compareNamesZA); public static SortType sort = SortType.PRICE_H_L; public static int compareNamesAZ(ShopEntry o1, ShopEntry o2) { return o1.stack.getHoverName().getString().compareToIgnoreCase(o2.stack.getHoverName().getString()); } public static int compareNamesZA(ShopEntry o1, ShopEntry o2) { return -compareNamesAZ(o2, o1); } public static final SortType[] VALUES = values(); public final String name; public final Comparator<ShopEntry> comparator; SortType(String n, Comparator<ShopEntry> c) { name = n; comparator = c; } }
[ "latvianmodder@gmail.com" ]
latvianmodder@gmail.com
42eb3a625661ec606c551201497836856bf3c85e
a1781e9083b2940bd917b4e4e324db7852245a0c
/src/main/java/pl/training/shop/mails/MailMessage.java
e3b1c83a2b973468e9317464cb804a1ac087ea2f
[]
no_license
warkoczek/spring-masterclass
8ed9e79af65dc2b7b4936fe702ea6e4015132f24
be49c33f0326a69805595da024d0eb9711a0375a
refs/heads/master
2023-03-09T18:02:02.463827
2021-02-19T11:31:27
2021-02-19T11:31:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
312
java
package pl.training.shop.mails; import lombok.*; import java.io.Serializable; @Builder @Data @AllArgsConstructor @NoArgsConstructor public class MailMessage implements Serializable { @NonNull private String recipient; @NonNull private String subject; @NonNull private String text; }
[ "landrzejewski.poczta@gmail.com" ]
landrzejewski.poczta@gmail.com
8e720288bd78ea30ab80b67195e1907fd5737832
2395a9adc271362b10e9189582d2e82237a369f3
/MinecraftTools/server/work/decompile-ba9a3cce/net/minecraft/server/OldNibbleArray.java
5a118b70897fb58bece1a8b8e0dd20621fb5d643
[]
no_license
pkrakow/PennyProjects
4abb06e7d64cef1e43866006199f17375c42cfcf
bfb661501c625035bd539a40ac9e0f6182213d78
refs/heads/master
2021-01-21T04:50:59.299863
2018-02-17T15:40:55
2018-02-17T15:40:55
54,284,291
0
0
null
null
null
null
UTF-8
Java
false
false
496
java
package net.minecraft.server; public class OldNibbleArray { public final byte[] a; private final int b; private final int c; public OldNibbleArray(byte[] abyte, int i) { this.a = abyte; this.b = i; this.c = i + 4; } public int a(int i, int j, int k) { int l = i << this.c | k << this.b | j; int i1 = l >> 1; int j1 = l & 1; return j1 == 0 ? this.a[i1] & 15 : this.a[i1] >> 4 & 15; } }
[ "pennykrakow@Nicoles-Mac-mini.local" ]
pennykrakow@Nicoles-Mac-mini.local
3cdb2ce2e319935de4a0b33613e9c139ec719ef5
2f85883004a31285852b2193ea3446c545b46bcb
/level31/src/main/java/lesson15/big01/FileProperties.java
045a4786668db7a73f998546b608e5050d7d0f76
[]
no_license
kirillkrohmal/JavaRush
ba1459b9ec608a17bab223a9c936aa07bb9b97bb
b86820579d6da270839888f54dd9db9c9dd9ac56
refs/heads/master
2023-07-05T12:07:25.694405
2023-06-23T08:30:58
2023-06-23T08:30:58
267,278,419
0
1
null
2023-06-20T10:06:31
2020-05-27T09:35:22
Java
UTF-8
Java
false
false
1,434
java
package lesson15.big01; public class FileProperties { private String name; private long size; private long compressedSize; private int compressionMethod; public FileProperties(String name, long size, long compressedSize, int compressionMethod) { this.name = name; this.size = size; this.compressedSize = compressedSize; this.compressionMethod = compressionMethod; } public String getName() { return name; } public long getSize() { return size; } public long getCompressedSize() { return compressedSize; } public int getCompressionMethod() { return compressionMethod; } public long getCompressionRatio() { // Вычисляем степень сжатия return 100 - ((compressedSize * 100) / size); } @Override public String toString() { // Строим красивую строку из свойств StringBuilder builder = new StringBuilder(); builder.append(name); if (size > 0) { builder.append("\t"); builder.append(size / 1024); builder.append(" Kb ("); builder.append(compressedSize / 1024); builder.append(" Kb) сжатие: "); builder.append(getCompressionRatio()); builder.append("%"); } return builder.toString(); } }
[ "krohmal_kirill@mail.ru" ]
krohmal_kirill@mail.ru
3cf54693c4390703a20bd6a8e96bc96824ffbe61
dcf67ac4bce5026f44bb9ccfd345f3e13c3c60ea
/milestone-4-observer+factory-method+facade+templete-method+log-de-acoes/Sistema de Alocacao de Salas/src/sas/excecoes/alocacao/LaboratoriosAbertosNaoSaoEscalonaveisException.java
5d257493f70fd9fcfb8fe55e51076d59c84570c3
[]
no_license
trandreluis/sistema-alocacao-salas
2fe3cb593a726c6babaf2ba6bf48df252843e6c7
50af1775f1d651d5f9d3d55ad553d2f395070e7e
refs/heads/master
2021-01-19T23:03:06.773717
2017-04-20T22:33:21
2017-04-20T22:33:21
88,914,640
0
0
null
null
null
null
UTF-8
Java
false
false
488
java
package sas.excecoes.alocacao; /** * Excecao que e lancada quando se tentar alocar um laboratorio aberto * * @author Andre Luis * */ @SuppressWarnings("serial") public class LaboratoriosAbertosNaoSaoEscalonaveisException extends RoomsAllocationException { /** * Metodo contrutor da Exception * * @param msg * Mensagem a ser exibida quando a excecao for lancada */ public LaboratoriosAbertosNaoSaoEscalonaveisException(String msg) { super(msg); } }
[ "tr.andreluis@gmail.com" ]
tr.andreluis@gmail.com
b2bab056ff269b603ee18ec4ef36757b2464fca9
15b260ccada93e20bb696ae19b14ec62e78ed023
/v2/src/main/java/com/alipay/api/response/AlipayUserAntpaasUseridGetResponse.java
3a4e4ee5d582bebeadb83880c6dcbe920198bfc8
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-java-all
df461d00ead2be06d834c37ab1befa110736b5ab
8cd1750da98ce62dbc931ed437f6101684fbb66a
refs/heads/master
2023-08-27T03:59:06.566567
2023-08-22T14:54:57
2023-08-22T14:54:57
132,569,986
470
207
Apache-2.0
2022-12-25T07:37:40
2018-05-08T07:19:22
Java
UTF-8
Java
false
false
597
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.user.antpaas.userid.get response. * * @author auto create * @since 1.0, 2021-07-13 10:41:53 */ public class AlipayUserAntpaasUseridGetResponse extends AlipayResponse { private static final long serialVersionUID = 8276246963796639125L; /** * 支付宝用户id */ @ApiField("user_id") private String userId; public void setUserId(String userId) { this.userId = userId; } public String getUserId( ) { return this.userId; } }
[ "auto-publish" ]
auto-publish
c7c0c4b87755feec73702e0a0974809deb7c0d02
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-13196-8-22-FEMO-WeightedSum:TestLen:CallDiversity/org/xwiki/search/solr/internal/DefaultSolrIndexer$Resolver_ESTest_scaffolding.java
de89babc28ca998e9e55b3585e34bf7b4d371cfd
[]
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
462
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sat Apr 04 06:47:39 UTC 2020 */ package org.xwiki.search.solr.internal; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class DefaultSolrIndexer$Resolver_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
34598650eb1b6366ff735ce9d29de3693cdd7665
c80f25f9c8faa1ea9db5bb1b8e36c3903a80a58b
/laosiji-sources/feng2/sources/com/feng/car/adapter/VideoAlbumAdapter.java
6abf9b454fa75e9d3b98fb55d1d353831e411a44
[]
no_license
wenzhaot/luobo_tool
05c2e009039178c50fd878af91f0347632b0c26d
e9798e5251d3d6ba859bb15a00d13f085bc690a8
refs/heads/master
2020-03-25T23:23:48.171352
2019-09-21T07:09:48
2019-09-21T07:09:48
144,272,972
0
0
null
null
null
null
UTF-8
Java
false
false
1,967
java
package com.feng.car.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.ViewGroup; import com.feng.car.R; import com.feng.car.databinding.PhotoVideoItemBinding; import com.feng.car.entity.model.ImageVideoBucket; import java.util.List; public class VideoAlbumAdapter extends MvvmBaseAdapter<ImageVideoBucket, PhotoVideoItemBinding> { private int m100 = this.mContext.getResources().getDimensionPixelSize(R.dimen.default_100PX); private int mSelectPost = 0; public VideoAlbumAdapter(Context context, List<ImageVideoBucket> list) { super(context, list); } public void setSelectPost(int sel) { this.mSelectPost = sel; notifyDataSetChanged(); } public void onBaseBindViewHolder(MvvmViewHolder<PhotoVideoItemBinding> holder, int position) { ImageVideoBucket bucket = (ImageVideoBucket) this.mList.get(position); ((PhotoVideoItemBinding) holder.binding).tvName.setText(bucket.bucketName); ((PhotoVideoItemBinding) holder.binding).tvNum.setText("(" + bucket.count + ")"); ((PhotoVideoItemBinding) holder.binding).ivCover.setDraweeImage("file://" + bucket.list.get(0).url, this.m100, this.m100); if (this.mSelectPost == position) { ((PhotoVideoItemBinding) holder.binding).rlParent.setSelected(true); } else { ((PhotoVideoItemBinding) holder.binding).rlParent.setSelected(false); } if (bucket.selCount > 0) { ((PhotoVideoItemBinding) holder.binding).ivSelect.setVisibility(0); } else { ((PhotoVideoItemBinding) holder.binding).ivSelect.setVisibility(8); } } public PhotoVideoItemBinding getBinding(ViewGroup parent, int viewType) { return PhotoVideoItemBinding.inflate(LayoutInflater.from(this.mContext)); } public void dataBindingTo(PhotoVideoItemBinding photoVideoItemBinding, ImageVideoBucket videoBucket) { } }
[ "tanwenzhao@vipkid.com.cn" ]
tanwenzhao@vipkid.com.cn
bd8899f65ddd3d87834f0c4586459a9f6e164cd5
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XCOMMONS-928-8-12-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/xwiki/job/AbstractJob_ESTest.java
f23f3f87a0c9d9dcb64755d029551adf214e76c7
[]
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
542
java
/* * This file was automatically generated by EvoSuite * Sun Apr 05 14:17:06 UTC 2020 */ package org.xwiki.job; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class AbstractJob_ESTest extends AbstractJob_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
b73e6f93f292c0b39cdfd61974fd088c8dd9f7d8
c24e883bba5235840239de3bd5640d92e0c8db66
/product/product_commons/src/main/java/com/smart/website/product_commons/event/MessageQueueEventI.java
020c5c99199276aa451548aeb9698262f6d9bf0d
[]
no_license
hotHeart48156/mallwebsite
12fe2f7d4e108ceabe89b82eacca75898d479357
ba865c7ea22955009e2de7b688038ddd8bc9febf
refs/heads/master
2022-11-23T23:22:28.967449
2020-01-07T15:27:27
2020-01-07T15:27:27
231,905,626
0
0
null
2022-11-15T23:54:56
2020-01-05T11:14:43
Java
UTF-8
Java
false
false
229
java
package com.smart.website.product_commons.event; /** * @author: caiqiang.w * @date: 2019/2/14 * @description: */ public interface MessageQueueEventI extends EventI { String getEventType(); String getEventTopic(); }
[ "2680323775@qq.com" ]
2680323775@qq.com
55d168db1948381d8956386ac2831e784894d75b
ff05965a1216a8b5f17285f438558e6ed06e0db4
/integration/jbi/src/main/java/org/apache/cxf/jbi/se/CXFServiceEngine.java
7822d801f127a5e7cb92a5c2ef8293ab6940f05d
[]
no_license
liucong/jms4cxf2
5ba89e857e9c6a4c542dffe0a13b3f704a19be77
56f6d8211dba6704348ee7e7551aa1a1f2c4d889
refs/heads/master
2023-01-09T18:08:51.730922
2009-09-16T03:16:48
2009-09-16T03:16:48
194,633
1
4
null
2023-01-02T21:54:29
2009-05-07T03:43:06
Java
UTF-8
Java
false
false
5,411
java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.jbi.se; import java.util.logging.Level; import java.util.logging.Logger; import javax.jbi.JBIException; import javax.jbi.component.Component; import javax.jbi.component.ComponentContext; import javax.jbi.component.ComponentLifeCycle; import javax.jbi.component.ServiceUnitManager; import javax.jbi.messaging.MessageExchange; import javax.jbi.servicedesc.ServiceEndpoint; import javax.management.ObjectName; import org.w3c.dom.Document; import org.w3c.dom.DocumentFragment; import org.apache.cxf.common.i18n.Message; import org.apache.cxf.common.logging.LogUtils; import org.apache.cxf.jbi.se.state.AbstractServiceEngineStateMachine; import org.apache.cxf.jbi.se.state.ServiceEngineStateFactory; import org.apache.cxf.jbi.se.state.ServiceEngineStateMachine; /** A JBI component. Initializes the CXF JBI transport */ public class CXFServiceEngine implements ComponentLifeCycle, Component { public static final String JBI_TRANSPORT_ID = "http://cxf.apache.org/transports/jbi"; private static final Logger LOG = LogUtils.getL7dLogger(CXFServiceEngine.class); private ServiceEngineStateFactory stateFactory = ServiceEngineStateFactory.getInstance(); public CXFServiceEngine() { stateFactory.setCurrentState(stateFactory.getShutdownState()); } // Implementation of javax.jbi.component.ComponentLifeCycle public final ObjectName getExtensionMBeanName() { return null; } public final void shutDown() throws JBIException { try { LOG.info(new Message("SE.SHUTDOWN", LOG).toString()); stateFactory.getCurrentState().changeState(ServiceEngineStateMachine.SEOperation.shutdown, null); } catch (Throwable ex) { LOG.log(Level.SEVERE, ex.getMessage(), ex); throw new JBIException(ex); } } public final void init(ComponentContext componentContext) throws JBIException { try { stateFactory.getCurrentState().changeState( ServiceEngineStateMachine.SEOperation.init, componentContext); } catch (Throwable ex) { LOG.log(Level.SEVERE, new Message("SE.FAILED.INIT.BUS", LOG).toString(), ex); throw new JBIException(ex); } } public final void start() throws JBIException { try { LOG.info(new Message("SE.STARTUP", LOG).toString()); stateFactory.getCurrentState().changeState(ServiceEngineStateMachine.SEOperation.start, null); } catch (Exception ex) { LOG.log(Level.SEVERE, ex.getMessage(), ex); throw new JBIException(ex); } } public final void stop() throws JBIException { try { LOG.info(new Message("SE.STOP", LOG).toString()); stateFactory.getCurrentState().changeState(ServiceEngineStateMachine.SEOperation.stop, null); } catch (Exception ex) { LOG.log(Level.SEVERE, ex.getMessage(), ex); throw new JBIException(ex); } } // Implementation of javax.jbi.component.Component public final ComponentLifeCycle getLifeCycle() { LOG.fine("CXFServiceEngine returning life cycle"); return this; } public final ServiceUnitManager getServiceUnitManager() { LOG.fine("CXFServiceEngine return service unit manager"); return AbstractServiceEngineStateMachine.getSUManager(); } public final Document getServiceDescription(final ServiceEndpoint serviceEndpoint) { Document doc = AbstractServiceEngineStateMachine.getSUManager().getServiceDescription(serviceEndpoint); LOG.fine("CXFServiceEngine returning service description: " + doc); return doc; } public final boolean isExchangeWithConsumerOkay(final ServiceEndpoint ep, final MessageExchange exchg) { LOG.fine("isExchangeWithConsumerOkay: endpoint: " + ep + " exchange: " + exchg); return true; } public final boolean isExchangeWithProviderOkay(final ServiceEndpoint ep, final MessageExchange exchng) { LOG.fine("isExchangeWithConsumerOkay: endpoint: " + ep + " exchange: " + exchng); return true; } public final ServiceEndpoint resolveEndpointReference(final DocumentFragment documentFragment) { return null; } }
[ "liucong07@gmail.com" ]
liucong07@gmail.com
f65e1ee6e3232cb29dfd7124db42a6b6ea5c255a
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project70/src/main/java/org/gradle/test/performance70_4/Production70_338.java
e2f5aa70e15b7eddf940b788bd1e1d449f630602
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
305
java
package org.gradle.test.performance70_4; public class Production70_338 extends org.gradle.test.performance16_4.Production16_338 { private final String property; public Production70_338() { this.property = "foo"; } public String getProperty() { return property; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
aebf59484096ccdc63a132dfec6b90cd47a09617
36ba7792e0cccfe9c217a2fe58700292af6d2204
/in_dev_npc_combat_b/Kolodion1605Combat.java
787fb0f7bb03948eb3f6e36a8a0fd1767fbfa95b
[]
no_license
danielsojohn/BattleScape-Server-NoMaven
92a678ab7d0e53a68b10d047638c580c902673cb
793a1c8edd7381a96db0203b529c29ddf8ed8db9
refs/heads/master
2020-09-09T01:55:54.517436
2019-11-15T05:08:02
2019-11-15T05:08:02
221,307,980
0
0
null
2019-11-12T20:41:54
2019-11-12T20:41:53
null
UTF-8
Java
false
false
2,696
java
package script.npc.combat; import java.util.Arrays; import java.util.List; import com.palidino.osrs.io.cache.NpcId; import com.palidino.osrs.model.npc.combat.NpcCombatDefinition; import com.palidino.osrs.model.npc.combat.NpcCombatSpawn; import com.palidino.osrs.model.Graphic; import com.palidino.osrs.model.npc.combat.NpcCombatHitpoints; import com.palidino.osrs.model.npc.combat.NpcCombatStats; import com.palidino.osrs.model.CombatBonus; import com.palidino.osrs.model.npc.combat.NpcCombatAggression; import com.palidino.osrs.model.npc.combat.style.NpcCombatStyle; import com.palidino.osrs.model.npc.combat.style.NpcCombatStyleType; import com.palidino.osrs.model.npc.combat.style.NpcCombatDamage; import com.palidino.osrs.model.npc.combat.style.NpcCombatProjectile; import com.palidino.osrs.model.npc.combat.NpcCombat; import lombok.var; public class Kolodion1605Combat extends NpcCombat { @Override public List<NpcCombatDefinition> getCombatDefinitions() { var combat = NpcCombatDefinition.builder(); combat.id(NpcId.KOLODION_1605); combat.spawn(NpcCombatSpawn.builder().lock(4).phrase("You must prove yourself... now!").graphic(new Graphic(86, 100)).respawnId(NpcId.KOLODION_1606).deathDelay(8).build()); combat.hitpoints(NpcCombatHitpoints.total(3)); combat.stats(NpcCombatStats.builder().magicLevel(60).bonus(CombatBonus.ATTACK_MAGIC, 16).build()); combat.aggression(NpcCombatAggression.PLAYERS); combat.combatScript("KolodionCS").deathAnimation(714).blockAnimation(424); var style = NpcCombatStyle.builder(); style.type(NpcCombatStyleType.MAGIC); style.damage(NpcCombatDamage.builder().maximum(20).splashOnMiss(true).build()); style.animation(811).attackSpeed(4); style.targetGraphic(new Graphic(76, 100)); style.projectile(NpcCombatProjectile.id(335)); combat.style(style.build()); style = NpcCombatStyle.builder(); style.type(NpcCombatStyleType.MAGIC); style.damage(NpcCombatDamage.builder().maximum(20).splashOnMiss(true).build()); style.animation(811).attackSpeed(4); style.targetGraphic(new Graphic(77, 100)); style.projectile(NpcCombatProjectile.id(335)); combat.style(style.build()); style = NpcCombatStyle.builder(); style.type(NpcCombatStyleType.MAGIC); style.damage(NpcCombatDamage.builder().maximum(20).splashOnMiss(true).build()); style.animation(811).attackSpeed(4); style.targetGraphic(new Graphic(78)); style.projectile(NpcCombatProjectile.id(335)); combat.style(style.build()); return Arrays.asList(combat.build()); } }
[ "palidino@Daltons-MacBook-Air.local" ]
palidino@Daltons-MacBook-Air.local
18d0faf482c1275b11ab77585017169a6a1dfa7a
69c00032e21079eb41b86c2085d38b8ba3e6e5cb
/Development_library/05Coding/安卓/andr_c/src/com/huift/hfq/cust/activity/MyPayTwoCodeActivity.java
8d6c627054de68b0203fadab394d6f60f0f4affd
[]
no_license
qiaobenlaing/coupon
476b90ac9c8a9bb56f4c481c3e0303adc9575133
32a53667f0c496cda0d7df71651e07f0138001d3
refs/heads/master
2023-01-20T03:40:42.118722
2020-11-20T00:59:29
2020-11-20T01:13:28
312,522,162
0
0
null
null
null
null
UTF-8
Java
false
false
401
java
package com.huift.hfq.cust.activity; import com.huift.hfq.cust.fragment.MyPayTwoCodeFragment; import android.app.Fragment; import com.huift.hfq.base.SingleFragmentActivity; /** * 我的付款二维码 * @author yanfang.li * */ public class MyPayTwoCodeActivity extends SingleFragmentActivity { @Override protected Fragment createFragment() { return MyPayTwoCodeFragment.newInstance(); } }
[ "980415842@qq.com" ]
980415842@qq.com
4023d28fc95aea046feb605f129c7c2239edfd7c
1446665395f616ac96de34aceb48d4aa6ff49f93
/common/src/main/java/com/myylook/common/utils/RouteUtil.java
c80e5c463c41c6f8ff5d33a1a3afce9b7862e3ef
[]
no_license
838245284/livedemo
c459c68cefa35cce4c11217f05f5bddb0db424d3
1031e7530a7ea3ad94c7ba644c63a74f65881ae5
refs/heads/develop
2023-06-08T18:40:24.103366
2021-06-25T14:53:37
2021-06-25T14:53:37
376,277,522
0
0
null
2021-06-25T14:53:38
2021-06-12T11:51:09
Java
UTF-8
Java
false
false
7,323
java
package com.myylook.common.utils; import android.app.Activity; import android.content.Context; import android.content.Intent; import com.alibaba.android.arouter.launcher.ARouter; import com.myylook.common.Constants; import com.myylook.common.http.CommonHttpUtil; import com.myylook.common.http.HttpCallback; /** * Created by cxf on 2019/2/25. */ public class RouteUtil { //Intent隐式启动 action public static final String PATH_LAUNCHER = "/app/LauncherActivity"; public static final String PATH_LOGIN_INVALID = "/main/LoginInvalidActivity"; public static final String PATH_LOGIN = "/main/LoginActivity"; public static final String PATH_USER_HOME = "/main/UserHomeActivity"; public static final String PATH_COIN = "/main/MyCoinActivity"; public static final String PATH_GOODS = "/main/ShopGoodsActivity"; public static final String PATH_CASH_ACCOUNT = "/main/CashActivity"; public static final String PATH_VIDEO_RECORD = "/main/ActiveVideoRecordActivity"; public static final String PATH_ACTIVE_VIDEO_PLAY = "/main/ActiveVideoPlayActivity"; public static final String PATH_MALL_BUYER = "/mall/BuyerActivity"; public static final String PATH_MALL_SELLER = "/mall/SellerActivity"; public static final String PATH_MALL_GOODS_SEARCH = "/mall/GoodsSearchActivity"; public static final String PATH_MALL_GOODS_DETAIL = "/mall/GoodsDetailActivity"; public static final String PATH_MALL_GOODS_DETAIL_OUT = "/mall/GoodsOutSideDetailActivity"; public static final String PATH_MALL_PAY_CONTENT_DETAIL = "/mall/PayContentDetailActivity"; public static final String PATH_MALL_ORDER_MSG = "/mall/OrderMessageActivity"; public static final String PATH_MALL_GOODS_OUTSIDE = "/mall/GoodsAddOutSideActivity"; /** * 启动页 */ public static void forwardLauncher(Context context) { ARouter.getInstance().build(PATH_LAUNCHER) .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK) .navigation(); } /** * 登录 */ public static void forwardLogin(String tip) { ARouter.getInstance().build(PATH_LOGIN) .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK) .withString(Constants.TIP, tip) .navigation(); } /** * 登录过期 */ public static void forwardLoginInvalid(String tip) { ARouter.getInstance().build(PATH_LOGIN_INVALID) .withString(Constants.TIP, tip) .navigation(); } /** * 跳转到个人主页 */ public static void forwardUserHome(Context context, String toUid) { forwardUserHome(context, toUid, false, null); } /** * 跳转到个人主页 */ public static void forwardUserHome(Context context, String toUid, boolean fromLiveRoom, String fromLiveUid) { ARouter.getInstance().build(PATH_USER_HOME) .withString(Constants.TO_UID, toUid) .withBoolean(Constants.FROM_LIVE_ROOM, fromLiveRoom) .withString(Constants.LIVE_UID, fromLiveUid) .navigation(); } /** * 跳转到充值页面 */ public static void forwardMyCoin(Context context) { ARouter.getInstance().build(PATH_COIN).navigation(); } // public static void forwardGoods(Context context, GoodsBean goodsBean, String storeId, boolean mustBuy) { // Postcard postcard = ARouter.getInstance().build(PATH_GOODS); // postcard.withParcelable(Constants.GOODS, goodsBean); // postcard.withBoolean(Constants.MUST_BUY, mustBuy); // // if (!TextUtils.isEmpty(storeId)) { // postcard.withString(Constants.UID, storeId); // } // postcard.navigation(context); // } // // public static void forwardGoods(Context context, GoodsBean goodsBean, String storeId) { // forwardGoods(context, goodsBean, storeId, false); // } public static void videoRecord(Activity activity, int requestCode) { ARouter.getInstance().build(PATH_VIDEO_RECORD) .navigation(activity, requestCode); } public static void searchMallGoods(Activity activity, int requestCode) { ARouter.getInstance().build(PATH_MALL_GOODS_SEARCH) .navigation(activity, requestCode); } /** * 提现 选择账户 */ public static void forwardCashAccount(Activity activity, int requestCode, String accountId) { ARouter.getInstance().build(PATH_CASH_ACCOUNT) .withString(Constants.CASH_ACCOUNT_ID, accountId) .navigation(activity, requestCode); } /** * 商品详情页面 */ public static void forwardGoodsDetail(final String goodsId, final boolean fromShop, final String liveUid) { CommonHttpUtil.checkGoodsExist(goodsId, new HttpCallback() { @Override public void onSuccess(int code, String msg, String[] info) { if (code == 0) { ARouter.getInstance().build(PATH_MALL_GOODS_DETAIL) .withString(Constants.MALL_GOODS_ID, goodsId) .withString(Constants.LIVE_UID, liveUid) .withBoolean(Constants.MALL_GOODS_FROM_SHOP, fromShop) .navigation(); } else { ToastUtil.show(msg); } } }); } /** * 站外商品详情页面 */ public static void forwardGoodsDetailOutSide(final String goodsId, final boolean fromShop) { CommonHttpUtil.checkGoodsExist(goodsId, new HttpCallback() { @Override public void onSuccess(int code, String msg, String[] info) { if (code == 0) { ARouter.getInstance().build(PATH_MALL_GOODS_DETAIL_OUT) .withString(Constants.MALL_GOODS_ID, goodsId) .withString(Constants.LIVE_UID, "0") .withBoolean(Constants.MALL_GOODS_FROM_SHOP, fromShop) .navigation(); } else { ToastUtil.show(msg); } } }); } /** * 付费内容详情页面 */ public static void forwardPayContentDetail(String goodsId) { ARouter.getInstance().build(PATH_MALL_PAY_CONTENT_DETAIL) .withString(Constants.MALL_GOODS_ID, goodsId) .navigation(); } /** * 站外商品详情页面 */ public static void forwardGoodsOutSide(String goodsId) { ARouter.getInstance().build(PATH_MALL_GOODS_OUTSIDE) .withString(Constants.MALL_GOODS_ID, goodsId) .navigation(); } /** * 跳转到视频播放 */ public static void forwardVideoPlay(String videoUrl, String coverImgUrl) { ARouter.getInstance().build(PATH_ACTIVE_VIDEO_PLAY) .withString(Constants.VIDEO_PATH, videoUrl) .withString(Constants.URL, coverImgUrl) .navigation(); } public static void forward(String path) { ARouter.getInstance().build(path).navigation(); } }
[ "838245284@qq.com" ]
838245284@qq.com
79ca5f8939cda7e2d577547191a54083e31f8947
c15b74e50f249df767047dcb2564faf6b8166c51
/src/main/java/com/xwy/four/chapter1/cas/AbaDemo1.java
317ce6b35d8932bdb690028368b1e7026c003b05
[]
no_license
never123450/thread
09c469e97ea1e81d1fdec96bd0784808982540ca
d5727a1643de3a10130166b3b396bac0d294ca63
refs/heads/master
2022-07-22T20:06:05.124971
2022-07-21T02:33:41
2022-07-21T02:33:41
204,009,094
0
0
null
2022-07-11T21:09:34
2019-08-23T13:57:56
Java
UTF-8
Java
false
false
2,184
java
package com.xwy.four.chapter1.cas; import java.util.concurrent.atomic.AtomicStampedReference; // aba 问题 // 重复操作 / 过时操作。 public class AbaDemo1 { // 模拟充值 // 有3个线程在给用户充值,当用户余额少于20时,就给用户充值20元。 // 有100个线程在消费,每次消费10元。用户初始有9元 static AtomicStampedReference<Integer> money = new AtomicStampedReference<Integer>(19, 0); public static void main(String[] args) throws InterruptedException { for (int i = 0; i < 3; i++) { final int timestamp = money.getStamp(); new Thread(() -> { while (true) { while (true) { Integer m = money.getReference(); if (m < 20) { if (money.compareAndSet(m, m + 20, timestamp, timestamp + 1)) { System.out.println("充值成功,余额:" + money.getReference()); break; } } else { break; } } } }).start(); } new Thread(() -> { for (int i = 0; i < 100; i++) { while (true) { int timestamp = money.getStamp(); Integer m = money.getReference(); if (m > 10) { if (money.compareAndSet(m, m - 10, timestamp, timestamp + 1)) { System.out.println("消费10元,余额:" + money.getReference()); break; } } else { break; } } try { Thread.sleep(100); } catch (Exception e) { // TODO: handle exception } } }).start(); } }
[ "845619585@qq.com" ]
845619585@qq.com
7acc29d858aadb9ce9b13a47f890fa1fb023d5a1
e68a3d3147d46daad66f44c0b33b5c44d4c0d2a3
/Core/src/main/java/se/claremont/taf/core/gui/teststructure/TestStep.java
c19e83295d610dbb2a4004b645bb70f317fd3b64
[ "Apache-2.0" ]
permissive
claremontqualitymanagement/TestAutomationFramework
742af2edea1b9199673a3efa099f02473dafb256
5ecacc5e6d9e9b7046150c1570bd6c53fdd9d3b4
refs/heads/development
2022-08-10T18:44:16.528076
2020-02-04T12:39:16
2020-02-04T12:39:16
68,586,699
16
8
Apache-2.0
2022-05-20T20:51:37
2016-09-19T08:46:33
Java
UTF-8
Java
false
false
3,324
java
package se.claremont.taf.core.gui.teststructure; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import se.claremont.taf.core.gui.guistyle.TafLabel; import se.claremont.taf.core.gui.guistyle.TafPanel; import se.claremont.taf.core.gui.guistyle.TafTextField; import se.claremont.taf.core.testcase.TestCase; import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; import java.awt.*; import java.io.Serializable; public abstract class TestStep implements Serializable { @JsonIgnore private TafPanel panel; @JsonProperty private String description; @JsonProperty private String name; private Object runTimeElement; @JsonIgnore private TafTextField component = new TafTextField(" < initial default name > "); @JsonProperty public String actionName; @JsonProperty public String elementName; @JsonProperty public Object data; @JsonIgnore TestCase testCase; public TestStep(){} public TestStep(String name, String description) { this.name = name; this.description = description; } public void setDescription(String description){ this.description = description; this.component.setToolTipText(description); } public void setName(String name){ component.setText(name); this.name = name; } public abstract String asCode(); public abstract TestStep clone(); public void assignTestCase(TestCase testCase){ this.testCase = testCase; } public TestCase getTestCase() { return testCase; } public void setActionName(String actionName){ this.actionName = actionName; } public void setElementName(String elementName){ this.elementName = elementName; } public void setAssociatedData(Object data){ this.data = data; } public Object getAssociatedData(){ return data; } public String getName(){ return name; } public String getDescription(){ return description; } public abstract String getTestStepTypeShortName(); public abstract TestStepResult execute(); public Component guiComponent() { panel = new TafPanel(name + "Panel"); panel.add(new TafLabel(getTestStepTypeShortName())); component.setText(name); component.setToolTipText(description); component.getDocument().addDocumentListener(new DocumentListener() { @Override public void insertUpdate(DocumentEvent e) { updateName(); } @Override public void removeUpdate(DocumentEvent e) { updateName(); } @Override public void changedUpdate(DocumentEvent e) { updateName(); } }); panel.add(component); return panel; } private void updateName() { this.name = component.getText(); } @Override public String toString(){ return getTestStepTypeShortName() + " " + name; } public Object getRunTimeElement() { return runTimeElement; } public void setRunTimeElement(Object runTimeElement) { this.runTimeElement = runTimeElement; } }
[ "Fingal95" ]
Fingal95
5679b587466dfae600a0686a255fe69180e0a433
03a61bb6280683cb0064e5168401fa4808295cd1
/FrameWork_Lib/JevaESUI2001-03-03/src/edu/mit/ai/psg/jevaES/JNEConditionalAndExpression.java
501b9bb75f9b686af093050e5c3686cc0ad58952
[]
no_license
M6C/framework-lib
43de75541a97d69ebf51fbad0fa91e7d5726d0fe
10857b7db360265a20b3e6b18198abd37a4c2435
refs/heads/master
2021-01-10T17:00:55.892574
2017-01-05T12:48:33
2017-01-05T12:48:33
52,559,057
0
0
null
null
null
null
UTF-8
Java
false
false
2,126
java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) // Source File Name: jevaES/JNEConditionalAndExpression.java package edu.mit.ai.psg.jevaES; // Referenced classes of package edu.mit.ai.psg.jevaES: // ExpressionNode, IExpressionNode, IllegalTypeException, ThrowException, // VerifyingError, VerifyingException, SimpleNode, EvalMethods, // IJevaNode, IEnv public class JNEConditionalAndExpression extends ExpressionNode { JNEConditionalAndExpression(int id) { super(id); } public Class computeType(IEnv env) throws VerifyingException { for(int i = 0; i < jjtGetNumChildren(); i++) { IExpressionNode child = (IExpressionNode)jjtGetChild(i); if(Boolean.TYPE != EvalMethods.getType(child, env)) throw new IllegalTypeException(this, env, "Parameters to && must be boolean: " + child.printToString()); } return Boolean.TYPE; } public boolean computeIsConstant(IEnv env) throws VerifyingException { EvalMethods.getType(this, env); for(int i = 0; i < jjtGetNumChildren(); i++) { IExpressionNode child = (IExpressionNode)jjtGetChild(i); if(!EvalMethods.isConstant(child, env)) return false; try { if(Boolean.FALSE.equals(EvalMethods.eval(child, env))) return true; } catch(ThrowException e) { throw new VerifyingError(this, env, e); } } return true; } public Object eval(IEnv env) throws ThrowException { for(int i = 0; i < jjtGetNumChildren(); i++) { IExpressionNode child = (IExpressionNode)jjtGetChild(i); Boolean result = (Boolean)EvalMethods.eval(child, env); if(Boolean.FALSE.equals(result)) return Boolean.FALSE; } return Boolean.TRUE; } }
[ "david.roca@free.fr" ]
david.roca@free.fr
6c78daec0a2bb4ec674366c7a7a0eefe964590b6
7a58d08e242b6dc28e9ba9a61865275353883423
/src/thinkinjava/chapter16_arrays/ParameterizedArrayType.java
501e9de59a9e74a605f5eb5300ece143240a5de8
[]
no_license
zjxht62/learnJava
8bcf10dc7ee4f6ad001983273a22a76f55870de2
f25357ce44b82aeb2560688bb66a74851fbe51f0
refs/heads/master
2022-01-21T04:17:23.288413
2022-01-17T06:11:37
2022-01-17T06:11:37
210,154,936
0
0
null
null
null
null
UTF-8
Java
false
false
696
java
package thinkinjava.chapter16_arrays; /** * 数组与泛型 * * @author trevor.zhao * @date 2020/10/14 */ class ClassParameter<T> { public T[] f(T[] arg) { return arg; } } class MethodParameter { public static <T> T[] f(T[] arg) { return arg; } } public class ParameterizedArrayType { public static void main(String[] args) { Integer[] ints = {1, 2, 3, 4, 5}; Double[] doubles = {1.1, 2.2, 3.3, 4.4, 5.5}; Integer[] ints2 = new ClassParameter<Integer>().f(ints); Double[] doubles2 = new ClassParameter<Double>().f(doubles); ints2 = MethodParameter.f(ints); doubles2 = MethodParameter.f(doubles); } }
[ "zhao_ji_xiang@126.com" ]
zhao_ji_xiang@126.com
37b1898ad1b783d427ec0b469ecadd76d8ee1429
5b8f0cbd2076b07481bd62f26f5916d09a050127
/src/LCJuneChallenge/LC174.java
922226057d79abc3a3154e37f2e98107e7f55383
[]
no_license
micgogi/micgogi_algo
b45664de40ef59962c87fc2a1ee81f86c5d7c7ba
7cffe8122c04059f241270bf45e033b1b91ba5df
refs/heads/master
2022-07-13T00:00:56.090834
2022-06-15T14:02:51
2022-06-15T14:02:51
209,986,655
7
3
null
2020-10-20T07:41:03
2019-09-21T13:06:43
Java
UTF-8
Java
false
false
820
java
package LCJuneChallenge; import java.util.Arrays; /** * @author Micgogi * on 6/21/2020 2:27 PM * Rahul Gogyani */ public class LC174 { public static void main(String[] args) { int a[][] = { {-2,-3,3}, {-5,-10,1}, {10,30,-5}}; int m = a.length; int n = a[0].length; int dp[][] = new int[m+1][n+1]; for(int b[]:dp){ Arrays.fill(b, Integer.MAX_VALUE); } dp[m][n-1] = 1; dp[m-1][n] = 1; System.out.println(Arrays.deepToString(dp)); for (int i = m-1; i >=0 ; i--) { for (int j = n-1; j >=0 ; j--) { dp[i][j]=Math.max(1,Math.min(dp[i+1][j],dp[i][j+1])-a[i][j]); } } System.out.println(Arrays.deepToString(dp)); } }
[ "rahul.gogyani@gmail.com" ]
rahul.gogyani@gmail.com
140c372fa8b19e351ff71c18371164fce2eaa6a4
b3ec06fab450ac371b78298bc9992f5b2f722638
/src/main/java/af/gov/anar/query/infrastructure/common/api/ParameterListInclusionStrategy.java
b5ee361b82164a4f578af1814deff2992473dbae
[]
no_license
Anar-Framework/anar-adhocquery
ca349d97755dbb6322dd376afa53e33474c2d593
329d5d706cb03802a4ef69ad773ba184f00ded0d
refs/heads/master
2020-12-21T02:23:05.395941
2020-02-05T04:30:15
2020-02-05T04:30:15
236,278,110
0
0
null
null
null
null
UTF-8
Java
false
false
730
java
package af.gov.anar.query.infrastructure.common.api; import java.util.Set; import com.google.gson.ExclusionStrategy; import com.google.gson.FieldAttributes; public class ParameterListInclusionStrategy implements ExclusionStrategy { private final Set<String> parameterNamesToInclude; public ParameterListInclusionStrategy(final Set<String> parameterNamesToSkip) { this.parameterNamesToInclude = parameterNamesToSkip; } @Override public boolean shouldSkipField(final FieldAttributes f) { return !this.parameterNamesToInclude.contains(f.getName()); } @SuppressWarnings("unused") @Override public boolean shouldSkipClass(final Class<?> clazz) { return false; } }
[ "mohammadbadarhashimi@gmail.com" ]
mohammadbadarhashimi@gmail.com
dc3f29c7a4de1a26a5761cb30b0f2e36ce1aa947
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/32/32_27cf2a74a886728da6d1fbeebdfe7d20ab6a1b26/RestaurantHelper/32_27cf2a74a886728da6d1fbeebdfe7d20ab6a1b26_RestaurantHelper_t.java
5dca3de565d0f36811957b3a007c8d4a3ced1b40
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
2,284
java
package csci498.strupper.munchlist; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class RestaurantHelper extends SQLiteOpenHelper { private static final String DB_NAME = "munchlist.db"; private static final int VERSION = 1; RestaurantHelper(Context context) { super(context, DB_NAME, null, VERSION); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL("CREATE TABLE restaurant (" + "_id INTEGER PRIMARY KEY AUTOINCREMENT," + "name TEXT," + "address TEXT," + "type TEXT," + "notes TEXT);"); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { // blah, don't care } public void insert(Restaurant r) { ContentValues cv = new ContentValues(); cv.put("name", r.getName()); cv.put("address", r.getAddress()); cv.put("type", r.getType()); getWritableDatabase().insert("restaurant", "name", cv); } public void update(String id, Restaurant r) { String[] args = {id}; ContentValues cv = new ContentValues(); cv.put("name", r.getName()); cv.put("address", r.getAddress()); cv.put("type", r.getType()); getWritableDatabase().update("restaurant", cv, "_ID=?", args); } public Cursor getById(String id) { String[] args = { id }; return getReadableDatabase() .rawQuery("SELECT _id, name, address, type FROM restaurant WHERE _ID=?", args); } public Cursor getAll() { return getReadableDatabase().rawQuery( "SELECT * FROM restaurant ORDER BY NAME", null); } /** * Helper method to unmarshal a restaurant from the current row of a cursor. * Don't you just love databases? * * @param c a cursor from the restaurant database. * @return the restaurant from the cursor's current row. */ public static Restaurant restaurantOf(Cursor c) { return new Restaurant(c.getString(1), c.getString(2), c.getString(3)); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
e6ffbda37e2a655ac5824af08eefe5e66c2a558e
f380c5d9711e4db7eaae8e7b1b92c0463a36ed6a
/src/main/java/cn/arvix/office/service/mapper/UserMapper.java
88b30319404b5ec7b8457e618e4f63ecf5df6047
[]
no_license
yguo/office4rent
b2ec99421a45d4f090141aa3d7d9da861da6ff92
6b50acc36c69c74853fdd266bb2928fad0a79d18
refs/heads/master
2021-03-12T09:03:14.398457
2020-03-11T15:19:46
2020-03-11T15:19:46
246,606,260
2
0
null
2020-07-19T20:58:26
2020-03-11T15:19:28
Java
UTF-8
Java
false
false
2,551
java
package cn.arvix.office.service.mapper; import cn.arvix.office.domain.Authority; import cn.arvix.office.domain.User; import cn.arvix.office.service.dto.UserDTO; import java.util.*; import java.util.stream.Collectors; import org.springframework.stereotype.Service; /** * Mapper for the entity {@link User} and its DTO called {@link UserDTO}. * * Normal mappers are generated using MapStruct, this one is hand-coded as MapStruct * support is still in beta, and requires a manual step with an IDE. */ @Service public class UserMapper { public List<UserDTO> usersToUserDTOs(List<User> users) { return users.stream().filter(Objects::nonNull).map(this::userToUserDTO).collect(Collectors.toList()); } public UserDTO userToUserDTO(User user) { return new UserDTO(user); } public List<User> userDTOsToUsers(List<UserDTO> userDTOs) { return userDTOs.stream().filter(Objects::nonNull).map(this::userDTOToUser).collect(Collectors.toList()); } public User userDTOToUser(UserDTO userDTO) { if (userDTO == null) { return null; } else { User user = new User(); user.setId(userDTO.getId()); user.setLogin(userDTO.getLogin()); user.setFirstName(userDTO.getFirstName()); user.setLastName(userDTO.getLastName()); user.setEmail(userDTO.getEmail()); user.setImageUrl(userDTO.getImageUrl()); user.setActivated(userDTO.isActivated()); user.setLangKey(userDTO.getLangKey()); Set<Authority> authorities = this.authoritiesFromStrings(userDTO.getAuthorities()); user.setAuthorities(authorities); return user; } } private Set<Authority> authoritiesFromStrings(Set<String> authoritiesAsString) { Set<Authority> authorities = new HashSet<>(); if (authoritiesAsString != null) { authorities = authoritiesAsString .stream() .map( string -> { Authority auth = new Authority(); auth.setName(string); return auth; } ) .collect(Collectors.toSet()); } return authorities; } public User userFromId(Long id) { if (id == null) { return null; } User user = new User(); user.setId(id); return user; } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
8706b363cd1453e0ae0afc96b79c718bdb52664e
b4dfa80c46ee8498bbac0f7daee97e5eecfdb17f
/nalu-processor/src/test/resources/com/github/nalukit/nalu/processor/compositeCreator/ok/ICompositeComponent.java
938846717005e7041ff3a973e51decfcdf17edd8
[ "Apache-2.0" ]
permissive
elnicko/nalu
a2d3b5e13db390ab0d10f72d4ce04fb2987db3bf
d41e2b172ce8834791b5f0d850156582ebcc6119
refs/heads/master
2021-05-22T14:20:50.981642
2020-04-08T15:14:53
2020-04-08T15:14:53
252,959,963
0
0
Apache-2.0
2020-04-04T09:47:50
2020-04-04T09:47:50
null
UTF-8
Java
false
false
1,057
java
/* * Copyright (c) 2018 - 2020 - Frank Hossfeld * * 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.github.nalukit.nalu.processor.compositeCreator.ok; import com.github.nalukit.nalu.client.component.IsCompositeComponent; import com.github.nalukit.nalu.processor.compositeCreator.ok.ICompositeComponent.Controller; import elemental2.dom.HTMLElement; public interface ICompositeComponent extends IsCompositeComponent<Controller, HTMLElement> { interface Controller extends IsCompositeComponent.Controller { } }
[ "frank.hossfeld@googlemail.com" ]
frank.hossfeld@googlemail.com
59981332ddbaae61d9c7b7d734e810b096efad6f
ae564d0173d28e3a04385f3e83e5bda2ff10c2f0
/test/org/traccar/protocol/EelinkProtocolDecoderTest.java
f8a16c46fa524ca5408f27c2877148798e4cf0b5
[ "Apache-2.0" ]
permissive
meteviasa/traccar
b5d1f388cf14519624607445f9a8042f22d6673b
d99184f5cceebec994c0eec4ad157480872d6b7b
refs/heads/master
2020-04-27T09:33:38.932541
2019-03-07T20:53:26
2019-03-07T20:53:26
174,219,826
0
0
Apache-2.0
2019-03-06T20:56:53
2019-03-06T20:56:53
null
UTF-8
Java
false
false
5,302
java
package org.traccar.protocol; import org.junit.Test; import org.traccar.ProtocolTest; import org.traccar.model.Position; public class EelinkProtocolDecoderTest extends ProtocolTest { @Test public void testDecode() throws Exception { EelinkProtocolDecoder decoder = new EelinkProtocolDecoder(null); verifyNull(decoder, binary( "454C0027E753035254407167747167670100180002035254407167747100200205020500010432000086BD")); verifyAttribute(decoder, binary( "676712003400e45c5b0ade02012e03702d87064546aa24066a1086018a0000002dc1a0ffffffff0afd074d000000000000000000000000fce0"), Position.PREFIX_TEMP + 2, -50.0); verifyAttribute(decoder, binary( "6767120043000e5c37387c0304e4e1b4f8194fa800160013009408012e03702d8706453c6e5b066f115f05710000001b067f8d248d240313020500000000000000000000000001cc"), Position.PREFIX_TEMP + 2, 28.75); verifyPosition(decoder, binary( "676714002414B05AD43A7D03026B92B10C395499FFD7000000000701CC00002495000014203604067B")); verifyNotNull(decoder, binary( "676714004F14B0E68CAFE58AA8E68AA5E8ADA621E5B9BFE4B89CE79C81E6B7B1E59CB3E5B882E58D97E5B1B1E58CBAE696B0E8A5BFE8B7AF3138EFBC88E8B79DE5AE87E998B3E5A4A7E58EA63230E7B1B3EFBC89")); verifyPosition(decoder, binary( "676780005a000001000000004c61743a4e33312e38333935352c4c6f6e3a5738322e36313334362c436f757273653a302e30302c53706565643a302e30306b6d2f682c4461746554696d653a323031372d31322d30322031313a32393a3433")); verifyPosition(decoder, binary( "676780005E5788014C754C754C61743A4E32332E3131313734330A4C6F6E3A453131342E3430393233380A436F757273653A302E30300A53706565643A302E31374B4D2F480A446174652054696D653A323031352D30392D31332032303A32313A3230")); verifyPosition(decoder, binary( "454C0050EAE2035254407167747167671200410021590BD93803026B940D0C3952AD0021000000000501CC0001A53F0170F0AB1305890F11000000000000C2D0001C001600000000000000000000000000000000")); verifyNull(decoder, binary( "676701000c007b03525440717505180104")); verifyPosition(decoder, binary( "6767120048000559c1829213059a7400008e277d000c000000000800cc00080d2a000034df3cf0b429dd82cad3048910320000000000007b7320d005ba0000000019a000000000000000000000")); verifyPosition(decoder, binary( "6767050020213b59c6aecdff41dce70b8b977d00000001fe000a36e30078fe010159c6aecd")); verifyPosition(decoder, binary( "676705002102b459ae7388fcd360d7034332b1000000028f000a4f64002eb101010159ae7388")); verifyPosition(decoder, binary( "676702001c02b259ae7387fcd360d6034332b2000000028f000a4f64002eb10101")); verifyPosition(decoder, binary( "6767050022001F59643640000000000000000000000001CC0000249500142000015964A6C0006E")); verifyAttributes(decoder, binary( "67670300040021006E")); verifyPosition(decoder, binary( "676705002200255964369D000000000000000000000001CC0000249500142000025964A71D006A")); verifyAttributes(decoder, binary( "67670300040028006A")); verifyPosition(decoder, binary( "676712002d066c592cca6803002631a60b22127700240046005c08020d000301af000da0fd12007f11ce05820000001899c0")); verifyPosition(decoder, binary( "676702002509f65868507603a1e92e03cf90fe000000019f000117ee00111e0120631145003101510000")); verifyAttributes(decoder, binary( "676712001e0092579714d60201f90001785003a301cd1a006a118504f2000000000000")); verifyPosition(decoder, binary( "676712003400505784cc0b130246479b07d05a06001800000000070195039f046100002cc52e6466b391604a4900890e7c00000000000006ca")); verifyPosition(decoder, binary( "676714002b00515784cc24130246479b07d05a06001800010000060195039f046100002cc52f6466b391604a49020089")); verifyNull(decoder, binary( "676701000c002603541880486128290120")); verifyPosition(decoder, binary( "676704001c01a4569ff2dd0517a0f7020b0d9a06011000d8001e005b0004450183")); verifyPosition(decoder, binary( "676705002200ba569fc3520517a0d8020b0f740f007100d8001e005b0004460101569fd162001f")); verifyPosition(decoder, binary( "676702002500bb569fc3610517a091020b116000001900d8001e005b00044601001f1170003200000000")); verifyPosition(decoder, binary( "676704001c00b7569fc3020517a2d7020b08e100000000d8001e005b0004460004")); verifyNull(decoder, binary( "676701000b001b035418804661834901")); verifyAttributes(decoder, binary( "6767030004001A0001")); verifyNull(decoder, binary( "6767070088001050E2281400FFFFFFFF02334455660333445566043344556605AA00000007334455660A334455660B334455660C4E2000000DAA0000000E334455660F3344556610AAAA000011334455661C334455661F334455662133445566423344556646334455664D334455665C334455665E33445566880000000089000000008A000000008B00000000")); verifyPosition(decoder, binary( "676702001b03c5538086df0190c1790b3482df0f0157020800013beb00342401")); } }
[ "anton.tananaev@gmail.com" ]
anton.tananaev@gmail.com
28ca9fd7c93842d73ae25efa5a4b97bcd3bc1252
b85d31811aec959143affd1b748f65d829ab37b5
/learnCode/src/day14/review/Test12.java
71c2721fe33af9bd79cd927dd17053abf50500b6
[]
no_license
ZJM128/IdeaCodeSpace
5498b55ed636f7b1177328ff0898ef1faa1ca725
6e204d49c6f225d9fa6e618d63b5dca76572b0da
refs/heads/master
2023-02-03T07:48:59.055736
2020-10-22T16:04:07
2020-10-22T16:04:07
271,928,166
1
0
null
2020-10-10T04:38:42
2020-06-13T02:43:46
Java
UTF-8
Java
false
false
755
java
package day14.review; public class Test12 { public static void main(String[] args) { String str = "1、 hello 2. world 3. java 4.String 5. hahhhhha 6、HELLO"; char[] chars = str.replace(" ","").toLowerCase().toCharArray(); int maxCount=0; char charIndex=' '; for(int i=0;i<chars.length;i++){ int count=0; for(int j=i;j<chars.length;j++){ if(chars[i]==chars[j]){ count++; } } if(count>=maxCount){ maxCount=count; charIndex=chars[i]; } } System.out.println("出现次数最多的是"+charIndex+" 出现的次数是"+maxCount); } }
[ "2541811741@qq.com" ]
2541811741@qq.com
d502c43d62a9e7a623f1189b4d6f78e780fa359c
a3ad307ddbe0d3fe1e1e7d6470cefe7351096da2
/levin-learn-seda/src/main/java/org/jcyclone/core/internal/MonitoredSink.java
bc9a50fc1681458adf5b391bf3e6bb8e2fc0adc1
[]
no_license
talentxpOrganization/levin-learn
6d0e00e6f82343e1657834144396362d16e4b6b5
1733bf092e93e879b73014d378679df9b1a9a99b
refs/heads/master
2021-05-06T17:16:28.188323
2015-09-17T16:41:54
2015-09-17T16:41:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,397
java
/* * Copyright (c) 2001 by Matt Welsh and The Regents of the University of * California. All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement is * hereby granted, provided that the above copyright notice and the following * two paragraphs appear in all copies of this software. * * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Author: Matt Welsh <mdw@cs.berkeley.edu> * */ package org.jcyclone.core.internal; import org.jcyclone.core.profiler.IProfilable; import org.jcyclone.core.profiler.JCycloneProfiler; import org.jcyclone.core.queue.IElement; import org.jcyclone.core.queue.ISink; import org.jcyclone.core.queue.ITransaction; import org.jcyclone.core.queue.SinkException; import org.jcyclone.core.stage.IStageManager; import java.util.Hashtable; import java.util.List; /** * Used as a proxy to observe and measure communication behavior between * stages. By handing out a sink proxy, it is * possible to gather statistics on event communication between stages. * This is used by StageGraph to construct a graph of the communication * patterns between stages. * * @author Matt Welsh */ public class MonitoredSink implements ISink, IProfilable { private static final boolean DEBUG = false; private IStageWrapper toStage; private StageGraph stageGraph; public ISink thesink; private Thread client = null; private Hashtable clientTbl = null; /** * Maintains a running sum of the number of elements enqueued onto * this sink. */ public int enqueueCount; /** * Maintains a running sum of the number of elements successfully * enqueued onto this sink (that is, not rejected by the enqueue predicate). */ public int enqueueSuccessCount; /** * Used to maintain a timer for statistics gathering. */ public long timer; /** * Create a SinkProxy for the given sink. * * @param sink The sink to create a proxy for. * @param mgr The associated manager. * @param toStage The stage which this sink pushes events to. */ public MonitoredSink(ISink sink, IStageManager mgr, IStageWrapper toStage) { this.thesink = sink; this.stageGraph = ((JCycloneProfiler) mgr.getProfiler()).getGraphProfiler(); this.toStage = toStage; this.enqueueCount = 0; this.enqueueSuccessCount = 0; this.timer = 0; } /** * Return the size of the queue. */ public int size() { return thesink.size(); } public void setCapacity(int newCapacity) { thesink.setCapacity(newCapacity); } public int capacity() { return thesink.capacity(); } public void enqueue(IElement enqueueMe) throws SinkException { recordUse(); enqueueCount++; thesink.enqueue(enqueueMe); enqueueSuccessCount++; } public boolean enqueueLossy(IElement enqueueMe) { recordUse(); enqueueCount++; boolean pass = thesink.enqueueLossy(enqueueMe); if (pass) enqueueSuccessCount++; return pass; } public void enqueueMany(List list) throws SinkException { recordUse(); if (list != null) { enqueueCount += list.size(); } thesink.enqueueMany(list); if (list != null) { enqueueSuccessCount += list.size(); } } /** * Return the profile size of the queue. */ public int profileSize() { return size(); } public ITransaction enqueuePrepare(List elements) throws SinkException { recordUse(); if (elements != null) { enqueueCount += elements.size(); } ITransaction key = thesink.enqueuePrepare(elements); if (elements != null) { enqueueSuccessCount += elements.size(); } return key; } public void enqueuePrepare(List elements, ITransaction txn) throws SinkException { recordUse(); if (elements != null) { enqueueCount += elements.size(); } thesink.enqueuePrepare(elements, txn); if (elements != null) { enqueueSuccessCount += elements.size(); } } public String toString() { return "[SinkProxy for toStage=" + toStage + "]"; } private void recordUse() { if (DEBUG) System.err.println("SinkProxy: Recording use of " + this + " by thread " + Thread.currentThread()); if (client == null) { client = Thread.currentThread(); StageGraphEdge edge = new StageGraphEdge(); edge.fromStage = stageGraph.getStageFromThread(client); edge.toStage = toStage; edge.sink = this; stageGraph.addEdge(edge); } else { Thread t = Thread.currentThread(); if (client != t) { if (clientTbl == null) clientTbl = new Hashtable(); if (clientTbl.get(t) == null) { clientTbl.put(t, t); StageGraphEdge edge = new StageGraphEdge(); edge.fromStage = stageGraph.getStageFromThread(t); edge.toStage = toStage; edge.sink = this; stageGraph.addEdge(edge); } } } } }
[ "dingweiqiong@gmail.com" ]
dingweiqiong@gmail.com
a9c56a8c43b596ca826efde9163f86e21586f13e
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/btripopen-20220520/src/main/java/com/aliyun/btripopen20220520/models/CarApplyModifyResponse.java
b03c6b3cc682b4fdf43153c7d4a13662a3aff790
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
1,363
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.btripopen20220520.models; import com.aliyun.tea.*; public class CarApplyModifyResponse extends TeaModel { @NameInMap("headers") @Validation(required = true) public java.util.Map<String, String> headers; @NameInMap("statusCode") @Validation(required = true) public Integer statusCode; @NameInMap("body") @Validation(required = true) public CarApplyModifyResponseBody body; public static CarApplyModifyResponse build(java.util.Map<String, ?> map) throws Exception { CarApplyModifyResponse self = new CarApplyModifyResponse(); return TeaModel.build(map, self); } public CarApplyModifyResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public CarApplyModifyResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public CarApplyModifyResponse setBody(CarApplyModifyResponseBody body) { this.body = body; return this; } public CarApplyModifyResponseBody getBody() { return this.body; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
e1049aaf8434ae9c61fdd3171090d38d650ff374
dd71f242351d8ae37199ebfd6a857bd9a8752c39
/crm/src/main/java/com/zhiyou100/servlet/Information/ServletNotice.java
3accf6ebdea498fc882b8f424b09f8bb75c5584c
[ "MIT" ]
permissive
realguoshuai/crm
d91065f02115fdbc9f0aaaba4be40245f02bb5ec
038a3331153acbb56a8c60fcffbfef702e39e345
refs/heads/master
2021-08-31T13:13:38.277345
2017-12-21T12:05:13
2017-12-21T12:05:13
113,383,916
5
1
null
null
null
null
UTF-8
Java
false
false
2,575
java
package com.zhiyou100.servlet.Information; import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.zhiyou100.entity.NoticeDo; import com.zhiyou100.service.NoticeService; import com.zhiyou100.service.impl.NoticeServiceImpl; import com.zhiyou100.util.NoticeSearchTypeName; /** * Servlet implementation class ServletNotice */ public class ServletNotice extends HttpServlet { private static final long serialVersionUID = 1L; private NoticeService service = new NoticeServiceImpl(); protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Long pageIndex = 1L; String pageIndexString = request.getParameter("pageIndex"); if (pageIndexString != null) { //获取到pageIndex或者使用默认的 pageIndex = Long.parseLong(pageIndexString); } String keyword = request.getParameter("keyword"); String type = request.getParameter("type"); if (keyword != null && type != null) { // 继续拧下一步 NoticeSearchTypeName typeEnum = null; switch (type) { case "1": { typeEnum = NoticeSearchTypeName.NOTICE_TITLE; } break; case "2": { typeEnum = NoticeSearchTypeName.NOTICE_CONTENT; } break; case "3": { typeEnum = NoticeSearchTypeName.USER_NAME; } break; case "4": { typeEnum = NoticeSearchTypeName.DEPARTMENT_NAME; } break; default: break; } //查出pageCount long pageCount = service.countNotice(keyword, typeEnum); if (pageIndex > pageCount) { pageIndex = pageCount; } if (pageCount!=0) { List<NoticeDo> list =service.listNotice(keyword, typeEnum, pageIndex); request.setAttribute("list", list); request.setAttribute("pageIndex", pageIndex); request.setAttribute("pageCount", pageCount); } request.setAttribute("keyword", keyword); request.setAttribute("type", type); }else{ //如果没有关键字,表示没有查询 Long pageCount = service.countNotice(); if (pageIndex > pageCount) { pageIndex = pageCount; } if(pageCount != 0){ List<NoticeDo> list = service.listNotice(pageIndex); request.setAttribute("list", list); request.setAttribute("pageIndex", pageIndex); request.setAttribute("pageCount", pageCount); } } request.getRequestDispatcher("/WEB-INF/jsp/inside_info/note_list.jsp").forward(request, response); } }
[ "yooless@163.com" ]
yooless@163.com
c7416c47a0a237b8cb5ab4241b1b171b744043aa
3b1112e6d5d57bad698b9ce255d9bbd25606ae04
/src/test/java/_148_SortList/SolutionTest.java
694238a6db66bc76cd76c5cc8327edbc945fb079
[]
no_license
jchanghong/leetcode-java-Test
dbd9cd52e834ea528cbe5b8d734ec1249f466013
f84c80f1b609ad2cf3323fb32261b7435d46cbaa
refs/heads/master
2021-06-23T10:51:31.964246
2017-08-15T07:42:14
2017-08-15T07:42:18
100,351,439
2
0
null
null
null
null
UTF-8
Java
false
false
2,696
java
package _148_SortList; import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.Timeout; import com.leetcode.ListNode; public class SolutionTest { /** Test method for {@link _148_SortList.Solution } */ Solution solution; @Rule public Timeout globalTimeout = new Timeout(200); @Before public void setUp() throws Exception { solution = new Solution(); } @After public void tearDown() throws Exception { solution = null; } @Test public void Test1() { int[] nums = {}; ListNode head = ListNode.constructLinkedList(nums); ListNode actual = solution.sortList(head); int[] exps = {}; ListNode expected = ListNode.constructLinkedList(exps); assertTrue(ListNode.isSameList(actual, expected)); } @Test public void Test2() { int[] nums = {2}; ListNode head = ListNode.constructLinkedList(nums); ListNode actual = solution.sortList(head); int[] exps = {2}; ListNode expected = ListNode.constructLinkedList(exps); assertTrue(ListNode.isSameList(actual, expected)); } @Test public void Test3() { int[] nums = {1, 2, 3, 4, 5, 6}; ListNode head = ListNode.constructLinkedList(nums); ListNode actual = solution.sortList(head); int[] exps = {1, 2, 3, 4, 5, 6}; ListNode expected = ListNode.constructLinkedList(exps); assertTrue(ListNode.isSameList(actual, expected)); } @Test public void Test4() { int[] nums = {5, 4, 3, 2, 1}; ListNode head = ListNode.constructLinkedList(nums); ListNode actual = solution.sortList(head); int[] exps = {1, 2, 3, 4, 5}; ListNode expected = ListNode.constructLinkedList(exps); assertTrue(ListNode.isSameList(actual, expected)); } @Test public void Test5() { int[] nums = {4, 6, 2, 7, 91, 1, 10, 23, 5, 5}; ListNode head = ListNode.constructLinkedList(nums); ListNode actual = solution.sortList(head); int[] exps = {1, 2, 4, 5, 5, 6, 7, 10, 23, 91}; ListNode expected = ListNode.constructLinkedList(exps); assertTrue(ListNode.isSameList(actual, expected)); } @Test public void Test6() { int[] nums = {5, 1, 3, 4, 2}; ListNode head = ListNode.constructLinkedList(nums); ListNode actual = solution.sortList(head); int[] exps = {1, 2, 3, 4, 5}; ListNode expected = ListNode.constructLinkedList(exps); assertTrue(ListNode.isSameList(actual, expected)); } }
[ "3200601@qq.com" ]
3200601@qq.com
7f49fd4d6700949cd38980808281229be238bc66
1a97dcde2bc40ceebdc4f234648f7eb7d8a1e35d
/csv/CsvProcessor.java
b5c12fddbed30d2be43cc3920e7bb15bbc6244d0
[]
no_license
AIG14/AutomaticInfographicGenerator
9fdb15c270820a8a543a78d03261478667e5fb72
fe474d7e86fbfc27b0f3e1f01e7d7296f9a3c2f7
refs/heads/master
2020-05-19T11:00:07.407358
2014-07-13T04:54:01
2014-07-13T04:54:01
21,783,212
2
2
null
null
null
null
UTF-8
Java
false
false
5,703
java
/** Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **/ package csv; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import csv.entity.CsvColumn; import csv.entity.CsvFile; import csv.headerprocessor.*; /** * Csv Processor. * * @author Peter */ public class CsvProcessor { /** * MD5 checksum string. */ private String md5checksum = null; /** * Csv Processor. */ public CsvProcessor() { } /** * Get a MD5 string of the file contents. * * @return String the MD5 checksum of the file contents. */ public String getMD5Checksum() { return this.md5checksum; } /** * Process Csv file. * * @param filename * string the filename of the CSV data to read. * @return A CsvFile populated with the CSV data contents read by the * provided filename. * @throws FileNotFoundException * @throws IOException */ public CsvFile Process(String filename) throws FileNotFoundException, IOException { CsvFile csvContent = new CsvFile(); File file = new File(filename); char seperater = ','; try (BufferedReader bufferedReader = new BufferedReader(new FileReader( file))) { StringBuilder inputBuffer = new StringBuilder(); String line = bufferedReader.readLine(); int ignoreLines = 0; boolean firstLines = true; while (line != null) { inputBuffer.append(line); inputBuffer.append(System.lineSeparator()); if (line.indexOf(seperater) == -1) { if (firstLines) { ignoreLines++; } } else { firstLines = false; } line = bufferedReader.readLine(); } MessageDigest messageDigest; try { messageDigest = MessageDigest.getInstance("MD5"); messageDigest.update(inputBuffer.toString().getBytes()); byte[] digest = messageDigest.digest(); StringBuffer md5checksumTmp = new StringBuffer(); for (byte b : digest) { md5checksumTmp.append(String.format("%02x", b & 0xff)); } md5checksum = md5checksumTmp.toString(); } catch (NoSuchAlgorithmException e) { } inputBuffer.append("\n"); ArrayList<CsvColumn> csvColumns = new ArrayList<CsvColumn>(); // Process CSV data. String rawCsvData = inputBuffer.toString(); int numberOfCharacters = rawCsvData.length(); int columnCounter = 0; boolean currentlyEscaped = false; boolean passedHeaderRow = false; boolean rowUpdated = false; StringBuilder valueBuffer = new StringBuilder(); for (int characterCounter = 0; characterCounter < numberOfCharacters; characterCounter++) { char currentCharacter = rawCsvData.charAt(characterCounter); char nextCharacter = characterCounter + 1 < numberOfCharacters ? rawCsvData .charAt(characterCounter + 1) : '\0'; if (currentCharacter == seperater && !currentlyEscaped) { if (passedHeaderRow) { if (columnCounter < csvColumns.size()) { csvColumns.get(columnCounter).addData( valueBuffer.toString()); } } else { csvColumns.add(new CsvColumn(valueBuffer.toString())); } valueBuffer.setLength(0); columnCounter++; rowUpdated = true; } else if (currentCharacter == '"' && nextCharacter != '"') { currentlyEscaped = !currentlyEscaped; } else if ((currentCharacter == '\r' || currentCharacter == '\n') && !currentlyEscaped) { if (ignoreLines > 0) { if (currentCharacter == '\n') { ignoreLines--; } } else { if (rowUpdated) { if (passedHeaderRow) { if (columnCounter < csvColumns.size()) { csvColumns.get(columnCounter).addData( valueBuffer.toString()); } for (int remainingHeaders = columnCounter + 1; remainingHeaders < csvColumns .size(); remainingHeaders++) { csvColumns.get(columnCounter).addData(""); } } else { csvColumns.add(new CsvColumn(valueBuffer .toString())); passedHeaderRow = true; } valueBuffer.setLength(0); } columnCounter = 0; rowUpdated = false; } } else { if (currentCharacter == '\r' || currentCharacter == '\n') { currentCharacter = ' '; } valueBuffer.append(currentCharacter); rowUpdated = true; if (currentCharacter == '"' && nextCharacter == '"') { characterCounter++; } } } for (CsvColumn csvColumn : csvColumns) { csvContent.addColumn(csvColumn); } } new DataTypeColumnProcessor().setProperty(csvContent); csvContent.setTitle(file.getName()); return csvContent; } }
[ "you@example.com" ]
you@example.com
cac827fc4ccfca49d3a4583682e742f0ef906876
9e5a398d20e1a7d485c0767fd38aca1ca6a1d7fb
/1_6.h12_dev/sonos.jad/src/android/support/v8/renderscript/RSIllegalArgumentException.java
be4e5429e55b834d6b339448ebd4e5e150cada83
[]
no_license
witokondoria/OpenWrt_Luci_Lua
6690e0f9cce38676ea93d176a7966546fd03fd32
07d1a20e1a950a330b51625b89cb6466ffaec84b
refs/heads/master
2021-06-01T18:25:09.937542
2016-08-26T13:14:10
2016-08-26T13:14:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
462
java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) package android.support.v8.renderscript; // Referenced classes of package android.support.v8.renderscript: // RSRuntimeException public class RSIllegalArgumentException extends RSRuntimeException { public RSIllegalArgumentException(String s) { super(s); } }
[ "huangruohai2010@gmail.com" ]
huangruohai2010@gmail.com
74c4579db9a742429e1a72c24b13ef770b3b3f3a
a8378b15a6907870056c1696ae463e950a46fbe5
/src/alg865/Solution.java
9c70fcebcd2b3d48a518d1b7d43d367cb305da9b
[]
no_license
CourageDz/LeetCodePro
38a90ad713d46911b64c893c7fcae04fb0b20791
d0dfeab630357c8172395ff8533e38b5fb9498c5
refs/heads/master
2020-03-28T14:18:58.656373
2020-03-18T05:00:12
2020-03-18T05:00:12
148,476,780
0
0
null
null
null
null
UTF-8
Java
false
false
3,246
java
package alg865; import java.util.*; public class Solution { //运行报错,通过56/57 public TreeNode subtreeWithAllDeepest(TreeNode root) { Deque<TreeNode> nodeQueue = new LinkedList<>(); Map<Integer, TreeNode> nodeMap = new HashMap<>(); Map<Integer, Integer> parentNode = new HashMap<>(); List<Integer> nodeList = new ArrayList<>(); nodeQueue.offer(root); while (!nodeQueue.isEmpty()) { int n = nodeQueue.size(); nodeList.clear(); for (int i = 0; i < n; i++) { TreeNode node = nodeQueue.pollFirst(); nodeMap.put(node.val, node); nodeList.add(node.val); if (node.left != null) { nodeQueue.offerLast(node.left); parentNode.put(node.left.val, node.val); } if (node.right != null) { nodeQueue.offerLast(node.right); parentNode.put(node.right.val, node.val); } } } boolean isSame = false; Integer[] parent = nodeList.toArray(new Integer[nodeList.size()]); if (nodeList.size() == 1) { return nodeMap.get(nodeList.get(0)); } while (!isSame) { isSame = true; for (int i = 0; i < nodeList.size(); i++) { parent[i] = parentNode.get(parent[i]); if (i > 0 && parent[i] != parent[i - 1]) { isSame = false; } } } return nodeMap.get(parent[0]); } public static void main(String[] args) { // String s1="(3,5,1,6,2,9,8,null,null,7)"; String s1 = "(0,1,3,null,2)"; Solution sol = new Solution(); TreeNode root = sol.stringToTreeNode(s1); TreeNode result = sol.subtreeWithAllDeepest(root); System.out.println(result.val); } public TreeNode stringToTreeNode(String input) { input = input.trim(); input = input.substring(1, input.length() - 1); if (input.length() == 0) { return null; } String[] parts = input.split(","); String item = parts[0]; TreeNode root = new TreeNode(Integer.parseInt(item)); Queue<TreeNode> nodeQueue = new LinkedList<>(); nodeQueue.add(root); int index = 1; while (!nodeQueue.isEmpty()) { TreeNode node = nodeQueue.remove(); if (index == parts.length) { break; } item = parts[index++]; item = item.trim(); if (!item.equals("null")) { int leftNumber = Integer.parseInt(item); node.left = new TreeNode(leftNumber); nodeQueue.add(node.left); } if (index == parts.length) { break; } item = parts[index++]; item = item.trim(); if (!item.equals("null")) { int rightNumber = Integer.parseInt(item); node.right = new TreeNode(rightNumber); nodeQueue.add(node.right); } } return root; } }
[ "39013348@qq.com" ]
39013348@qq.com
069ee869503ccab984ada5203566c36b76d3d5a4
c8e8827b325f183c654742638a6cecfaef0c5e53
/store_v1/src/cn/itcast/store/service/serviceImp/CategoryServiceImp.java
57ce8b7ccd6efeaaf8a952a0668e6efd66782286
[]
no_license
xjlxw2014521/Test
ead3a6804dfd8b0575599b37dc48f37b63f6199e
2933999d9faf082dd5671f569fc5ec6bd3e04920
refs/heads/master
2022-06-23T05:46:22.198712
2020-05-05T11:28:46
2020-05-05T11:28:46
261,159,538
0
0
null
null
null
null
UTF-8
Java
false
false
921
java
package cn.itcast.store.service.serviceImp; import java.util.List; import cn.itcast.store.dao.CategoryDao; import cn.itcast.store.dao.daoImp.CategoryDaoImp; import cn.itcast.store.domain.Category; import cn.itcast.store.service.CategoryService; import cn.itcast.store.utils.BeanFactory; import cn.itcast.store.utils.JedisUtils; import redis.clients.jedis.Jedis; public class CategoryServiceImp implements CategoryService { CategoryDao categoryDao = (CategoryDao) BeanFactory.createObject("CategoryDao"); @Override public List<Category> getAllCats() throws Exception { List<Category>list = categoryDao.getAllCats(); return list; } @Override public void addCategory(Category category) throws Exception { //本质是向Mysql插入一条数据 categoryDao.addCategory(category); //更新redis缓存 Jedis jedis = JedisUtils.getJedis(); jedis.del("allCats"); JedisUtils.closeJedis(jedis); } }
[ "test@runoob.com" ]
test@runoob.com
88db3c0f962e9d63980c1a361d159a0ee912691e
4aa90348abcb2119011728dc067afd501f275374
/app/src/main/java/com/tencent/mm/plugin/pwdgroup/ui/FacingCreateChatRoomAllInOneUI$5.java
68df187dbe7a3c9d36662039506dd375554b8262
[]
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
554
java
package com.tencent.mm.plugin.pwdgroup.ui; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; class FacingCreateChatRoomAllInOneUI$5 implements OnCancelListener { final /* synthetic */ FacingCreateChatRoomAllInOneUI pmn; FacingCreateChatRoomAllInOneUI$5(FacingCreateChatRoomAllInOneUI facingCreateChatRoomAllInOneUI) { this.pmn = facingCreateChatRoomAllInOneUI; } public final void onCancel(DialogInterface dialogInterface) { FacingCreateChatRoomAllInOneUI.bjS(); } }
[ "malin.myemail@163.com" ]
malin.myemail@163.com
e51117c09381e9fda482df1472c6d4ad216ec857
aaa17f8233980b699ef5dae6010c01232cb9fce9
/Java/269.AlienDictionary/Solution.java
4c80c2320a9e583af919c34b73f2d2704d240f21
[]
no_license
mud2man/LeetCode
6aa329a66c4785ecfe550b52b04b5fededdfb814
7f97f9fc0ff1d57d35b67d9d240ac990d66ac5aa
refs/heads/master
2021-12-12T01:40:43.208616
2021-11-21T06:12:13
2021-11-21T06:12:13
63,312,728
2
1
null
null
null
null
UTF-8
Java
false
false
3,083
java
/* Topological sort: Time:O(n), Space: O(n), where n is number of characters of string array * 1. Add edges from all the continuous two words. e.g., t->f for "wrt" and "wrf" * 2. Use topological sort to find the order */ import java.util.*; public class Solution { private void findEdge(String parent, String child, Map<Character, Set<Character>> ajdacencyList, int[] indegree){ for(int i = 0; i < Math.min(parent.length(), child.length()); ++i){ char source = parent.charAt(i); char target = child.charAt(i); if(source != target){ ajdacencyList.putIfAbsent(source, new HashSet<>()); if(!ajdacencyList.get(source).contains(target)){ ajdacencyList.get(source).add(target); indegree[source - 'a'] = (indegree[source - 'a'] == -1)? 0: indegree[source - 'a']; indegree[target - 'a'] = (indegree[target - 'a'] == -1)? 1: indegree[target - 'a'] + 1; } break; } } for(int j = 0; j < parent.length(); ++j){ indegree[parent.charAt(j) - 'a'] = (indegree[parent.charAt(j) - 'a'] == -1)? 0: indegree[parent.charAt(j) - 'a']; } for(int j = 0; j < child.length(); ++j){ indegree[child.charAt(j) - 'a'] = (indegree[child.charAt(j) - 'a'] == -1)? 0: indegree[child.charAt(j) - 'a']; } } public String alienOrder(String[] words) { Map<Character, Set<Character>> ajdacencyList = new HashMap<>(); int[] indegree = new int[26]; Arrays.fill(indegree, -1); for(int i = 0; i < words.length; ++i){ findEdge(words[i], (i + 1 < words.length)? words[i + 1]: words[i], ajdacencyList, indegree); } // find nodes with indegree 0 as sources Deque<Character> queue = new LinkedList<>(); int nodeCount = 0; for(int i = 0; i < indegree.length; ++i){ if(indegree[i] == 0){ queue.add((char)(i + 'a')); } nodeCount = (indegree[i] != -1)? nodeCount + 1: nodeCount; } // topological sort StringBuilder order = new StringBuilder(""); int visitedCount = 0; while(!queue.isEmpty()){ char currentNode = queue.pollFirst(); visitedCount++; order.append(currentNode); Set<Character> children = ajdacencyList.getOrDefault(currentNode, new HashSet<>()); for(char child: children){ indegree[child - 'a']--; if(indegree[child - 'a'] == 0){ queue.add(child); } } } return (visitedCount == nodeCount)? order.toString(): ""; } public static void main(String[] args){ String[] words = {"wrt", "wrf", "er", "ett", "rftt"}; Solution sol = new Solution(); System.out.println("words:" + Arrays.toString(words)); System.out.println("order:" + sol.alienOrder(words)); } }
[ "chih-hung.lu@columbia.edu" ]
chih-hung.lu@columbia.edu
646d78b09bfe90790f255563f9b0e17831c1c449
096e862f59cf0d2acf0ce05578f913a148cc653d
/code/providers/TelephonyProvider/src/com/android/providers/telephony/ext/adapter/MmsSmsProviderAdapter.java
18dc64d2513a8ea7172db9102cac5c7c455da4f4
[ "Apache-2.0" ]
permissive
Phenix-Collection/Android-6.0-packages
e2ba7f7950c5df258c86032f8fbdff42d2dfc26a
ac1a67c36f90013ac1de82309f84bd215d5fdca9
refs/heads/master
2021-10-10T20:52:24.087442
2017-05-27T05:52:42
2017-05-27T05:52:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,552
java
package com.android.providers.telephony.ext.adapter; import android.content.*; import android.database.sqlite.*; import java.lang.*; import java.lang.reflect.*; import java.util.*; import com.sprd.providers.stubs.backup.MmsBackupStub; public class MmsSmsProviderAdapter { private static final String TAG="MmsSmsProviderAdapter"; private Context mContext; private SQLiteDatabase mSQLiteDatabase; private Method mUpdateAllThreads; private static MmsSmsProviderAdapter sMmsSmsProviderAdapter; private MmsSmsProviderAdapter(Context context){ mContext = context; } public static synchronized MmsSmsProviderAdapter get(Context context){ if (sMmsSmsProviderAdapter==null){ sMmsSmsProviderAdapter = new MmsSmsProviderAdapter(context); } return sMmsSmsProviderAdapter; } public SQLiteDatabase getSQLiteDatabase(){ if (mSQLiteDatabase == null){ mSQLiteDatabase = MmsBackupStub.getInstance(mContext).getWritableSQLiteDatabase(); } return mSQLiteDatabase; } public long getOrCreateThreadId(List<String> recipients, List<String> recipientNames) { long threadId = -1; threadId = MmsBackupStub.getInstance(mContext).getOrCreateThreadId(recipients, recipientNames); return threadId; } public void updateAllThreads(SQLiteDatabase db, String where, String[] whereArgs){ MmsBackupStub.getInstance(mContext).updateAllThreads(db, where, whereArgs); } }
[ "wangjicong6403660@126.com" ]
wangjicong6403660@126.com
e040daf286dc639d8ec50a360d5f56c3ab849727
bf23a339a8a3834795ae4f59e79152866b1955c9
/src/main/java/com/mikhail/holub/dao/HibernateTokenRepositoryImpl.java
13ced42af3c64da8927396b4c4901e587a17e060
[]
no_license
karuneshapk/library_spring
2cf3d26e83bf5628a709382d7a5c66cebd9c3d93
a9c5195f2f6de44739e09b84f68301e76efd1284
refs/heads/master
2021-01-18T18:16:54.632324
2018-04-28T11:50:27
2018-04-28T11:50:27
59,864,511
0
0
null
null
null
null
UTF-8
Java
false
false
2,549
java
package com.mikhail.holub.dao; import java.util.Date; import org.hibernate.Criteria; import org.hibernate.criterion.Restrictions; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken; import org.springframework.security.web.authentication.rememberme.PersistentTokenRepository; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import com.mikhail.holub.model.PersistentLogin; @Repository("tokenRepositoryDao") @Transactional public class HibernateTokenRepositoryImpl extends AbstractDao<String, PersistentLogin> implements PersistentTokenRepository { static final Logger logger = LoggerFactory.getLogger(HibernateTokenRepositoryImpl.class); @Override public void createNewToken(PersistentRememberMeToken token) { logger.info("Creating Token for user : {}", token.getUsername()); PersistentLogin persistentLogin = new PersistentLogin(); persistentLogin.setUsername(token.getUsername()); persistentLogin.setSeries(token.getSeries()); persistentLogin.setToken(token.getTokenValue()); persistentLogin.setLast_used(token.getDate()); persist(persistentLogin); } @Override public PersistentRememberMeToken getTokenForSeries(String seriesId) { logger.info("Fetch Token if any for seriesId : {}", seriesId); try { Criteria crit = createEntityCriteria(); crit.add(Restrictions.eq("series", seriesId)); PersistentLogin persistentLogin = (PersistentLogin) crit.uniqueResult(); return new PersistentRememberMeToken(persistentLogin.getUsername(), persistentLogin.getSeries(), persistentLogin.getToken(), persistentLogin.getLast_used()); } catch (Exception e) { logger.info("Token not found..."); return null; } } @Override public void removeUserTokens(String username) { logger.info("Removing Token if any for user : {}", username); Criteria crit = createEntityCriteria(); crit.add(Restrictions.eq("username", username)); PersistentLogin persistentLogin = (PersistentLogin) crit.uniqueResult(); if (persistentLogin != null) { logger.info("rememberMe was selected"); delete(persistentLogin); } } @Override public void updateToken(String seriesId, String tokenValue, Date lastUsed) { logger.info("Updating Token for seriesId : {}", seriesId); PersistentLogin persistentLogin = getByKey(seriesId); persistentLogin.setToken(tokenValue); persistentLogin.setLast_used(lastUsed); update(persistentLogin); } }
[ "1234" ]
1234
2f1af0e9bd433398b396f759624a6c63f0bf7223
8169406d0b57b39bda13941fad9e0f8f5ddd7307
/spring-07/src/main/java/ru/otus/spring/homework/spring07/service/BookService.java
ed8b27770f779daa8952ccf60a4e8c33d85df5d7
[]
no_license
DimsonK/2020-11-otus-spring-konovalov
0b2ed6aba988756d28601daea60a61d2a69e9a95
46b368d0ab255a8f822e44b42dd862f1add1708e
refs/heads/main
2023-06-09T14:38:39.391631
2023-05-26T14:38:31
2023-05-26T14:38:31
315,385,944
0
0
null
null
null
null
UTF-8
Java
false
false
377
java
package ru.otus.spring.homework.spring07.service; import ru.otus.spring.homework.spring07.models.Book; import java.util.List; public interface BookService { List<Book> getAll(); Book getBook(long bookId); Book getBookFull(long bookId); Book addBook(Book book); Book updateBook(Book book); void deleteBook(long bookId); long getCount(); }
[ "dimsonk@gmail.com" ]
dimsonk@gmail.com
72b140b55ad7f52e4b1a912659a2a37d3a16963f
5ecd15baa833422572480fad3946e0e16a389000
/framework/MCS-Open/subsystems/styling/test/tests/java/com/volantis/styling/unit/engine/StylerSpecificityComparatorTestCase.java
f580cd4045d33f54ff1f3b30758d580d6a67b77c
[]
no_license
jabley/volmobserverce
4c5db36ef72c3bb7ef20fb81855e18e9b53823b9
6d760f27ac5917533eca6708f389ed9347c7016d
refs/heads/master
2021-01-01T05:31:21.902535
2009-02-04T02:29:06
2009-02-04T02:29:06
38,675,289
0
1
null
null
null
null
UTF-8
Java
false
false
6,790
java
/* This file is part of Volantis Mobility Server. Volantis Mobility Server is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Volantis Mobility Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Volantis Mobility Server.  If not, see <http://www.gnu.org/licenses/>. */ /* ---------------------------------------------------------------------------- * (c) Volantis Systems Ltd 2005. * ---------------------------------------------------------------------------- */ package com.volantis.styling.unit.engine; import com.volantis.styling.compiler.SpecificityMock; import com.volantis.mcs.themes.Priority; import com.volantis.styling.impl.engine.StylerSpecificityComparator; import com.volantis.styling.impl.sheet.Styler; import com.volantis.styling.impl.sheet.StylerMock; import com.volantis.mcs.themes.Priority; import java.util.Arrays; import java.util.Comparator; import java.util.List; /** * Test cases for {@link StylerSpecificityComparator}. */ public class StylerSpecificityComparatorTestCase extends ComparatorTestAbstract { protected StylerMock normalPriorityHighSpecificityMock; protected StylerMock normalPriorityLowSpecificityMock; protected StylerMock importantPriorityHighSpecificityMock; protected StylerMock importantPriorityLowSpecificityMock; protected SpecificityMock highSpecificityMock; protected SpecificityMock lowSpecificityMock; private static final int GREATER_THAN = 1; private static final int LESS_THAN = -1; // Javadoc inherited. public Comparator createComparator() { return new StylerSpecificityComparator(); } // Javadoc inherited. protected void setUp() throws Exception { super.setUp(); // ===================================================================== // Create Mocks // ===================================================================== highSpecificityMock = new SpecificityMock( "highSpecificityMock", expectations); lowSpecificityMock = new SpecificityMock( "lowSpecificityMock", expectations); normalPriorityHighSpecificityMock = createStylerMock( "normalPriorityHighSpecificityMock", highSpecificityMock, Priority.NORMAL); normalPriorityLowSpecificityMock = createStylerMock( "normalPriorityLowSpecificityMock", lowSpecificityMock, Priority.NORMAL); importantPriorityHighSpecificityMock = createStylerMock( "importantPriorityHighSpecificityMock", highSpecificityMock, Priority.IMPORTANT); importantPriorityLowSpecificityMock = createStylerMock( "importantPriorityLowSpecificityMock", lowSpecificityMock, Priority.IMPORTANT); // ===================================================================== // Set Expectations // ===================================================================== highSpecificityMock.expects.compareTo(lowSpecificityMock) .returns(GREATER_THAN).any(); lowSpecificityMock.expects.compareTo(highSpecificityMock) .returns(LESS_THAN).any(); } private StylerMock createStylerMock( final String identifier, final SpecificityMock specificityMock, final Priority priority) { StylerMock stylerMock = new StylerMock( identifier, expectations); stylerMock.expects.getSpecificity() .returns(specificityMock).any(); stylerMock.expects.getPriority() .returns(priority).any(); return stylerMock; } /** * Test that the comparator works when priorities are equal. */ public void testComparatorPrioritiesEqual() { // ===================================================================== // Test Expectations // ===================================================================== Comparator comparator = createComparator(); int result = comparator.compare(normalPriorityHighSpecificityMock, normalPriorityLowSpecificityMock); assertEquals("Comparator result", GREATER_THAN, result); } /** * Test that the comparator works when priorities are different. */ public void testComparatorPrioritiesDiffer() { // Calculate the expected result. int expectedResult = Priority.IMPORTANT.compareTo(Priority.NORMAL); // ===================================================================== // Test Expectations // ===================================================================== Comparator comparator = createComparator(); int result = comparator.compare(importantPriorityLowSpecificityMock, normalPriorityLowSpecificityMock); assertEquals("Comparator result", expectedResult, result); } /** * Test that the ordering works properly. */ public void testOrdering() { List inputList = Arrays.asList(new Styler[]{ importantPriorityHighSpecificityMock, importantPriorityLowSpecificityMock, normalPriorityHighSpecificityMock, normalPriorityLowSpecificityMock, }); List expectedList = Arrays.asList(new Styler[] { normalPriorityLowSpecificityMock, normalPriorityHighSpecificityMock, importantPriorityLowSpecificityMock, importantPriorityHighSpecificityMock, }); doTestComparatorOrder(createComparator(), inputList, expectedList); } } /* =========================================================================== Change History =========================================================================== $Log$ 29-Nov-05 10347/1 pduffin VBM:2005111405 Massive changes for performance 29-Sep-05 9654/1 pduffin VBM:2005092817 Added support for expressions and functions in styles 18-Aug-05 9007/1 pduffin VBM:2005071209 Committing massive changes to the product to improve styling, specifically for layouts 18-Jul-05 9029/1 pduffin VBM:2005071301 Adding ability for styling engine to support nested style sheets =========================================================================== */
[ "iwilloug@b642a0b7-b348-0410-9912-e4a34d632523" ]
iwilloug@b642a0b7-b348-0410-9912-e4a34d632523
355e3faca2ca6985bdc23fe4a06fdd05d74eafcc
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/35/35_ae25c7072e817ef983e38d6ecd416b0f7739040c/HtmlFileEditor/35_ae25c7072e817ef983e38d6ecd416b0f7739040c_HtmlFileEditor_s.java
bd19d8fb1dab5ecef132bf9ece71e825196213fb
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
2,555
java
/* * Copyright (c) 2011, the Dart project authors. * * Licensed under the Eclipse Public License v1.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.eclipse.org/legal/epl-v10.html * * 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.google.dart.tools.ui.internal.htmleditor; import org.eclipse.jface.action.IMenuManager; import org.eclipse.ui.IFileEditorInput; import org.eclipse.ui.editors.text.TextEditor; import org.eclipse.ui.texteditor.ITextEditorActionConstants; // TODO(devoncarew): investigate using a more full-featured html editor (WTP?) /** * An editor for HTML files. Defining this editor causes the default double-click action on an html * file to open it for editing, instead of opening it in the embedded web browser. */ public class HtmlFileEditor extends TextEditor { /** * Create a new HTML editor. */ public HtmlFileEditor() { setRulerContextMenuId("#DartHtmlFileEditorRulerContext"); //$NON-NLS-1$ } @Override public String getTitleToolTip() { if (getEditorInput() instanceof IFileEditorInput) { IFileEditorInput input = (IFileEditorInput) getEditorInput(); if (input.getFile().getLocation() != null) { return input.getFile().getLocation().toFile().toString(); } } return super.getTitleToolTip(); } @Override protected void editorContextMenuAboutToShow(IMenuManager menu) { // Cut/Copy/Paste actions.. addAction(menu, ITextEditorActionConstants.UNDO); addAction(menu, ITextEditorActionConstants.CUT); addAction(menu, ITextEditorActionConstants.COPY); addAction(menu, ITextEditorActionConstants.PASTE); } @Override protected void initializeKeyBindingScopes() { setKeyBindingScopes(new String[] {"com.google.dart.tools.ui.dartViewScope"}); //$NON-NLS-1$ } @Override protected boolean isOverviewRulerVisible() { return false; } @Override protected void rulerContextMenuAboutToShow(IMenuManager menu) { super.rulerContextMenuAboutToShow(menu); // Remove the Preferences menu item menu.remove(ITextEditorActionConstants.RULER_PREFERENCES); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
64c9323816adf645113787e828ec9f952753c9a8
4be72dee04ebb3f70d6e342aeb01467e7e8b3129
/bin/ext-commerce/commercefacades/src/de/hybris/platform/commercefacades/promotion/impl/DefaultCommercePromotionRestrictionFacade.java
63cb95c8a3ef9b86ef53c84d136c14ff30de9c59
[]
no_license
lun130220/hybris
da00774767ba6246d04cdcbc49d87f0f4b0b1b26
03c074ea76779f96f2db7efcdaa0b0538d1ce917
refs/heads/master
2021-05-14T01:48:42.351698
2018-01-07T07:21:53
2018-01-07T07:21:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,996
java
/* * [y] hybris Platform * * Copyright (c) 2000-2015 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with hybris. * * */ package de.hybris.platform.commercefacades.promotion.impl; import de.hybris.platform.commercefacades.promotion.CommercePromotionRestrictionFacade; import de.hybris.platform.commerceservices.model.promotions.PromotionOrderRestrictionModel; import de.hybris.platform.commerceservices.order.CommerceCartService; import de.hybris.platform.commerceservices.promotion.CommercePromotionRestrictionException; import de.hybris.platform.commerceservices.promotion.CommercePromotionRestrictionService; import de.hybris.platform.commerceservices.promotion.CommercePromotionService; import de.hybris.platform.commerceservices.service.data.CommerceCartParameter; import de.hybris.platform.core.model.order.CartModel; import de.hybris.platform.order.CartService; import de.hybris.platform.order.exceptions.CalculationException; import de.hybris.platform.promotions.model.AbstractPromotionModel; import de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Required; public class DefaultCommercePromotionRestrictionFacade implements CommercePromotionRestrictionFacade { private static final Logger LOG = Logger.getLogger(DefaultCommercePromotionRestrictionFacade.class); private CommercePromotionRestrictionService commercePromotionRestrictionService; private CommercePromotionService commercePromotionService; private CommerceCartService commerceCartService; private CartService cartService; @Override public void enablePromotionForCurrentCart(final String promotionCode) throws CommercePromotionRestrictionException { final AbstractPromotionModel promotion = getCommercePromotionService().getPromotion(promotionCode); final PromotionOrderRestrictionModel restriction; try { restriction = getCommercePromotionRestrictionService().getPromotionOrderRestriction(promotion); } catch (UnknownIdentifierException e) { throw new CommercePromotionRestrictionException(e.getMessage()); } final CartModel sessionCart = getCartService().getSessionCart(); getCommercePromotionRestrictionService().addOrderToRestriction(restriction, sessionCart); try { final CommerceCartParameter parameter = new CommerceCartParameter(); parameter.setEnableHooks(true); parameter.setCart(sessionCart); getCommerceCartService().recalculateCart(parameter); } catch (final CalculationException ex) { LOG.error("Failed to recalculate order [" + sessionCart.getCode() + "]", ex); } } @Override public void disablePromotionForCurrentCart(final String promotionCode) throws CommercePromotionRestrictionException { final AbstractPromotionModel promotion = getCommercePromotionService().getPromotion(promotionCode); final PromotionOrderRestrictionModel restriction; try { restriction = getCommercePromotionRestrictionService().getPromotionOrderRestriction(promotion); } catch (UnknownIdentifierException e) { throw new CommercePromotionRestrictionException(e.getMessage()); } final CartModel sessionCart = getCartService().getSessionCart(); getCommercePromotionRestrictionService().removeOrderFromRestriction(restriction, sessionCart); try { final CommerceCartParameter parameter = new CommerceCartParameter(); parameter.setEnableHooks(true); parameter.setCart(sessionCart); getCommerceCartService().recalculateCart(parameter); } catch (final CalculationException ex) { LOG.error("Failed to recalculate order [" + sessionCart.getCode() + "]", ex); } } protected CommercePromotionRestrictionService getCommercePromotionRestrictionService() { return commercePromotionRestrictionService; } @Required public void setCommercePromotionRestrictionService( final CommercePromotionRestrictionService commercePromotionRestrictionService) { this.commercePromotionRestrictionService = commercePromotionRestrictionService; } protected CommercePromotionService getCommercePromotionService() { return commercePromotionService; } @Required public void setCommercePromotionService(final CommercePromotionService commercePromotionService) { this.commercePromotionService = commercePromotionService; } protected CartService getCartService() { return cartService; } @Required public void setCartService(final CartService cartService) { this.cartService = cartService; } protected CommerceCartService getCommerceCartService() { return commerceCartService; } @Required public void setCommerceCartService(final CommerceCartService commerceCartService) { this.commerceCartService = commerceCartService; } }
[ "lun130220@gamil.com" ]
lun130220@gamil.com
b41dc1a56542a418319bda758de1a3814c8dbd08
4a308bb4f309bc03626790d1b8847b7d388a75e9
/core/JavaSource/com/fantasy/file/FileManager.java
31912ef2e111399da88549b50023a2dd6b2abef4
[ "MIT" ]
permissive
caohaibing/jfantasy
69f87822798d1a09851e26376a1d50d1448543f2
086f4473df1fe507f3d3bcb588c453bddc64bdd1
refs/heads/master
2021-01-21T17:36:54.751311
2015-10-21T03:06:44
2015-10-21T03:06:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,485
java
package com.fantasy.file; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.List; /** * 文件管理接口 * * @author 李茂峰 * @version 1.0 * @since 2012-9-28 下午12:09:54 */ public interface FileManager { /** * 将一个 File 对象写入地址对应的文件中 * * @param remotePath 路径 * @param file 文件对象 * @throws IOException */ void writeFile(String remotePath, File file) throws IOException; /** * 将 InputStream 写到地址对应的文件中 * * @param remotePath 路径 * @param in 输出流 * @throws IOException */ void writeFile(String remotePath, InputStream in) throws IOException; /** * 返回一个 out 流,用来接收要写入的内容 * * @param remotePath 路径 * @return {OutputStream} * @throws IOException */ OutputStream writeFile(String remotePath) throws IOException; /** * 通过地址将一个文件写到一个本地地址 * * @param remotePath 路径 * @param localPath 路径 * @throws IOException */ void readFile(String remotePath, String localPath) throws IOException; /** * 通过地址将文件写入到 OutputStream 中 * * @param remotePath 路径 * @param out 输出流 * @throws IOException */ void readFile(String remotePath, OutputStream out) throws IOException; /** * 通过一个地址获取文件对应的 InputStream * * @param remotePath 路径 * @return 返回 InputStream 对象 * @throws IOException */ InputStream readFile(String remotePath) throws IOException; /** * 获取跟目录的文件列表 * * @return {List<FileItem>} */ List<FileItem> listFiles(); /** * 获取指定路径下的文件列表 * * @param remotePath 路径 * @return {List<FileItem>} */ List<FileItem> listFiles(String remotePath); /** * 通过 FileItemSelector 接口 筛选文件,当前对象必须为文件夹,此方法有效 * * @param selector FileItemSelector * @return {List<FileItem>} */ List<FileItem> listFiles(FileItemSelector selector); /** * 通过 FileItemSelector 接口 筛选文件,当前对象必须为文件夹,此方法有效 * * @param remotePath 路径 * @param selector FileItemSelector * @return {List<FileItem>} */ List<FileItem> listFiles(String remotePath, FileItemSelector selector); /** * 通过 FileItemFilter 接口 筛选文件,当前对象必须为文件夹,此方法有效 * * @param filter FileItemFilter * @return {List<FileItem>} */ List<FileItem> listFiles(FileItemFilter filter); /** * 通过 FileItemFilter 接口 筛选文件,当前对象必须为文件夹,此方法有效 * * @param remotePath 路径 * @param filter FileItemFilter * @return {List<FileItem>} */ List<FileItem> listFiles(String remotePath, FileItemFilter filter); /** * 获取目录对应的 FileItem 对象 * * @param remotePath 地址 * @return {FileItem} */ FileItem getFileItem(String remotePath); /** * 删除地址对应的文件 * * @param remotePath 地址 */ void removeFile(String remotePath); }
[ "limaofeng@msn.com" ]
limaofeng@msn.com
d91f019587be3a02f82855671832df54ca3f71e3
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/17/17_851bac2c8b3a8b6902b5c4b88fffef587466a0ac/MemberList/17_851bac2c8b3a8b6902b5c4b88fffef587466a0ac_MemberList_t.java
60042eca94786b4e919c4955edf0a572ba1fb54d
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
2,410
java
package com.twilio.sdk.resource.list; import java.util.Map; import com.twilio.sdk.TwilioRestClient; import com.twilio.sdk.resource.ListResource; import com.twilio.sdk.resource.instance.Member; /** * The {@link MemberList} represents the list resource for {@link Member}s. * * For more information see <a * href="http://www.twilio.com/docs/api/rest/member">http://www.twilio.com/docs/api/rest/member</a> */ public class MemberList extends ListResource<Member> { /** * The queue sid. */ private String queueSid; /** * Instantiates a new participant list. * * @param client * the client to use */ public MemberList(final TwilioRestClient client) { super(client); } /** * Instantiates a new {@link MemberList}. * * @param client * the client * @param filters * the filters if any */ public MemberList(final TwilioRestClient client, final Map<String, String> filters) { super(client, filters); } /** *Instantiates a new {@link MemberList}. * * @param client * the {@link TwilioRestClient} to use * @param queueSid * the queue sid for which this {@link MemberList} exists */ public MemberList(final TwilioRestClient client, final String queueSid) { super(client); this.queueSid = queueSid; } /* * (non-Javadoc) * * @see com.twilio.sdk.resource.Resource#getResourceLocation() */ @Override protected String getResourceLocation() { return "/" + TwilioRestClient.DEFAULT_VERSION + "/Accounts/" + this.getRequestAccountSid() + "/Queues/" + this.queueSid + "/Members.json"; } /* * (non-Javadoc) * * @see com.twilio.sdk.resource.ListResource#makeNew(com.twilio.sdk.TwilioRestClient, java.util.Map) */ @Override protected Member makeNew(final TwilioRestClient client, final Map<String, Object> params) { return new Member(client, params, queueSid); } /* * (non-Javadoc) * * @see com.twilio.sdk.resource.ListResource#getListKey() */ @Override protected String getListKey() { return "queue_members"; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
4251e40dc7f63b6ace85eec9aefb4d6336355821
e3d6330b1358fffaef563248fb15722aeb977acc
/upa-impl/src/main/java/net/vpc/upa/impl/uql/compiledexpression/CompiledVarVal.java
2a63ca39db200689b369d8082157c923df53642f
[]
no_license
nesrinesghaier/upa
92fd779838c045e0e3bbe71d33870e5b13d2e3fe
2eb005e03477adad5eb127c830bc654ab62f5cc9
refs/heads/master
2021-04-09T11:33:36.714597
2018-02-24T12:04:41
2018-02-24T12:04:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,647
java
package net.vpc.upa.impl.uql.compiledexpression; import net.vpc.upa.impl.ext.expressions.CompiledExpressionExt; /** * @author Taha BEN SALAH <taha.bensalah@gmail.com> * @creationdate 12/29/12 5:52 PM */ public class CompiledVarVal extends DefaultCompiledExpressionImpl { private CompiledVar var; private CompiledExpressionExt val; public CompiledVarVal(CompiledVar var, CompiledExpressionExt val) { this.var = var; this.val = val; bindChildren(var, val); } @Override public CompiledExpressionExt[] getSubExpressions() { return new CompiledExpressionExt[]{var, val}; } @Override public void setSubExpression(int index, CompiledExpressionExt expression) { switch (index) { case 0: { unbindChildren(this.val); var = (CompiledVar) expression; bindChildren(expression); return; } case 1: { unbindChildren(this.val); val = expression; bindChildren(expression); return; } } throw new UnsupportedOperationException("Invalid index"); } public CompiledExpressionExt copy() { CompiledVarVal compiledVarVal = new CompiledVarVal(var == null ? null : ((CompiledVar) var.copy()), val == null ? null : val.copy()); return compiledVarVal; } public CompiledVar getVar() { return var; } public CompiledExpressionExt getVal() { return val; } public void setVal(CompiledExpressionExt val) { this.val = val; } }
[ "vpc@linux-booster" ]
vpc@linux-booster
87703bfb9f53887bc21dbad19e7ddf9078548d4d
602f6f274fe6d1d0827a324ada0438bc0210bc39
/spring-framework/src/main/java/org/springframework/core/style/ValueStyler.java
731fb3aed3d3c492e878a03617f4dc2d6be875a5
[ "Apache-2.0" ]
permissive
1091643978/spring
c5db27b126261adf256415a0c56c4e7fbea3546e
c832371e96dffe8af4e3dafe9455a409bfefbb1b
refs/heads/master
2020-08-27T04:26:22.672721
2019-10-31T05:31:59
2019-10-31T05:31:59
217,243,879
0
0
Apache-2.0
2019-10-24T07:58:34
2019-10-24T07:58:31
null
UTF-8
Java
false
false
1,021
java
/* * Copyright 2002-2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.core.style; /** * Strategy that encapsulates value String styling algorithms * according to Spring conventions. * * @author Keith Donald * @since 1.2.2 */ public interface ValueStyler { /** * Style the given value, returning a String representation. * @param value the Object value to style * @return the styled String */ String style(Object value); }
[ "784990655@qq.com" ]
784990655@qq.com
a668d688e05db4ac74f7bdec6a8109b2a449b798
d7de50fc318ff59444caabc38d274f3931349f19
/src/com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$2.java
e6d6e3daeecb42ab5e4044b67cede35547731d59
[]
no_license
reverseengineeringer/fr.dvilleneuve.lockito
7bbd077724d61e9a6eab4ff85ace35d9219a0246
ad5dbd7eea9a802e5f7bc77e4179424a611d3c5b
refs/heads/master
2021-01-20T17:21:27.500016
2016-07-19T16:23:04
2016-07-19T16:23:04
63,709,932
1
1
null
null
null
null
UTF-8
Java
false
false
744
java
package com.fasterxml.jackson.databind.introspect; import com.fasterxml.jackson.databind.AnnotationIntrospector; import com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty; class POJOPropertyBuilder$2 implements POJOPropertyBuilder.WithMember<AnnotationIntrospector.ReferenceProperty> { POJOPropertyBuilder$2(POJOPropertyBuilder paramPOJOPropertyBuilder) {} public AnnotationIntrospector.ReferenceProperty withMember(AnnotatedMember paramAnnotatedMember) { return this$0._annotationIntrospector.findReferenceType(paramAnnotatedMember); } } /* Location: * Qualified Name: com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder.2 * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
47860e546d028e8b4313779459c9a1e005e4f759
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/appbrand/launching/ab.java
0f61ba4c2bb9158141a178fd79820d8b668b1b61
[]
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
558
java
package com.tencent.mm.plugin.appbrand.launching; import android.content.Context; import android.content.Intent; import com.tencent.mm.ui.MMActivity.a; public abstract interface ab { public abstract void a(MMActivity.a parama, Intent paramIntent, int paramInt); public abstract boolean czG(); public abstract Context getBaseContext(); } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes5.jar * Qualified Name: com.tencent.mm.plugin.appbrand.launching.ab * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
588d110b61dbb4552b249ea39f2b033ef68333ed
2f1be4753f3314f513edde7df8a340f9693c8f2e
/bamboo-jdk/src/main/java/com/bamboo/jdk/lambda/GreetingServiceMain.java
257c2412e55066075379b227d138a9a0100d120b
[]
no_license
smileszx/bamboo
19656747edae739792382d6427409ff9ef7a5dac
b76942cc95d350c0d19a5300c833fcd1985c9c4b
refs/heads/master
2022-12-30T11:41:53.764505
2019-11-10T02:07:27
2019-11-10T02:07:27
195,080,240
1
0
null
2022-12-16T05:02:05
2019-07-03T15:20:37
Java
UTF-8
Java
false
false
380
java
package com.bamboo.jdk.lambda; /** * @Description TODO * @Author victor su * @Date 2019/8/6 10:44 **/ public class GreetingServiceMain { public static void main(String[] args) { GreetingService greetingService = message -> System.out.println("Hello " + message); greetingService.sendMessage("Bad boy!"); greetingService.defaultMethod(); } }
[ "smile.szx@outlook.com" ]
smile.szx@outlook.com
1b79a0fe20a42cc58594844faf6087e1de8f93e1
adad299298b3a4ddbc0d152093b3e5673a940e52
/2018/neohort-pdf-openpdf/src/main/java/neohort/universal/output/lib_pdf/goto_.java
2b86c71729a757fdc3b7d65a1bc4012969934ee4
[]
no_license
surban1974/neohort
a692e49c8e152cea0b155d81c2b2b1b167630ba8
0c371590e739defbc25d5befd1d44fcf18d1bcab
refs/heads/master
2022-07-27T18:57:49.916560
2022-01-04T18:00:12
2022-01-04T18:00:12
5,521,942
2
1
null
2022-06-30T20:10:02
2012-08-23T08:33:40
Java
UTF-8
Java
false
false
4,894
java
/** * Creation date: (14/12/2005) * @author: Svyatoslav Urbanovych surban@bigmir.net svyatoslav.urbanovych@gmail.com */ /******************************************************************************** * * Copyright (C) 2005 Svyatoslav Urbanovych * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *********************************************************************************/ package neohort.universal.output.lib_pdf; import java.awt.Color; import java.util.Hashtable; import neohort.log.stubs.iStub; import neohort.universal.output.iConst; import neohort.universal.output.lib.report_element_base; import neohort.universal.output.lib.style; import com.lowagie.text.Chunk; import com.lowagie.text.Phrase; import com.lowagie.text.pdf.PdfPCell; import com.lowagie.text.pdf.PdfWriter; public class goto_ extends element{ private static final long serialVersionUID = -1L; private java.lang.String REFERENCE; public goto_() { super(); } public void drawCanvas(Hashtable<String, report_element_base> _tagLibrary, Hashtable<String, report_element_base> _beanLibrary) { initCanvas(_tagLibrary,_beanLibrary); } public void executeFirst(Hashtable<String, report_element_base> _tagLibrary, Hashtable<String, report_element_base> _beanLibrary){ } public void executeLast(Hashtable<String, report_element_base> _tagLibrary, Hashtable<String, report_element_base> _beanLibrary){ try{ int _align = getField_Int(new PdfPCell(new Phrase("")).getClass(),"ALIGN_"+internal_style.getALIGN(),0); int _f_size = 10; try{ _f_size = Integer.valueOf(internal_style.getFONT_SIZE()).intValue(); }catch(Exception e){} int _f_name = getField_Int(new com.lowagie.text.Font().getClass(),internal_style.getFONT(),com.lowagie.text.Font.COURIER); int _f_type = getField_Int(new com.lowagie.text.Font().getClass(),internal_style.getFONT_TYPE(),com.lowagie.text.Font.NORMAL); Color _fColor =getField_Color(internal_style.getFONT_COLOR(),Color.black); Color _bColor = getField_Color(internal_style.getBACK_COLOR(),Color.white); String content=prepareContentString(internal_style.getFORMAT()); com.lowagie.text.Font font = new com.lowagie.text.Font(_f_name, _f_size, _f_type); font.setColor(_fColor); if(getStyle()!=null && !getStyle().getFONT_STYLE().equals("")) font.setStyle(getStyle().getFONT_STYLE().toLowerCase()); Object canvas_prev = null; try{ canvas_prev = _beanLibrary.get("SYSTEM:"+iConst.iHORT_SYSTEM_Canvas).getContentLastElement(); }catch(Exception e){} if( canvas_prev!=null && (canvas_prev instanceof com.lowagie.text.pdf.PdfPCell || canvas_prev instanceof com.lowagie.text.pdf.PdfPTable)){ int border = 15; try{ border = Integer.valueOf(internal_style.getBORDER()).intValue(); }catch(Exception e){} float padding = 0; try{ padding = Float.valueOf(internal_style.getPADDING()).floatValue(); }catch(Exception e){} Chunk chunk = new Chunk(content); chunk.setLocalGoto(getREFERENCE()); chunk.setFont(font); PdfPCell cell = new PdfPCell(new Phrase(chunk)); cell.setHorizontalAlignment(_align); cell.setBorder(border); cell.setBackgroundColor(_bColor); if(padding!=0) cell.setPadding(padding); if(!internal_style.getDIRECTION().equals("") && internal_style.getDIRECTION().equalsIgnoreCase("RTL")){ if(cell!=null) cell.setRunDirection(PdfWriter.RUN_DIRECTION_RTL); } _beanLibrary.get("SYSTEM:"+iConst.iHORT_SYSTEM_Canvas).add2content(cell); }else{ Chunk chunk = new Chunk(content); chunk.setLocalGoto(getREFERENCE()); chunk.setFont(font); _beanLibrary.get("SYSTEM:"+iConst.iHORT_SYSTEM_Canvas).add2content(chunk); } if(_tagLibrary.get(getName()+":"+getID())==null) _tagLibrary.remove(getName()+":"+getID()+"_ids_"+this.motore.hashCode()); else _tagLibrary.remove(getName()+":"+getID()); }catch(Exception e){ setError(e,iStub.log_WARN); } } public String getREFERENCE() { return REFERENCE; } public boolean refreshText() { return true; } public void reimposta() { setName("GOTO_"); REFERENCE = ""; STYLE_ID = ""; } public void reStyle(style style_new) { if(internal_style==null) return; internal_style.reStyle(style_new); } public void setREFERENCE(String newLINK) { REFERENCE = newLINK; } }
[ "svyatoslav.urbanovych@gmail.com" ]
svyatoslav.urbanovych@gmail.com
201ca32de6df99c7dd3f38e4160a62be6861685d
5f503e1ea83c689c2e8ece66f41d9dde059556f6
/src/java/serif-util/src/main/java/com/bbn/serif/util/events/consolidator/common/SentenceNPs.java
502ae758fe34a928a6d097c36558de57c6f71e10
[ "Apache-2.0" ]
permissive
BBN-E/Hume
b3354e140142a858a864f7b4d17cdf42861b841d
3d5d7f8e17f7e77ecf94a6de58ac5859a03789ce
refs/heads/master
2022-12-26T01:44:34.565265
2022-03-31T20:58:49
2022-03-31T20:58:49
137,688,498
5
2
Apache-2.0
2022-12-14T20:31:08
2018-06-17T21:33:12
Python
UTF-8
Java
false
false
917
java
package com.bbn.serif.util.events.consolidator.common; import com.bbn.serif.theories.DocTheory; import com.bbn.serif.theories.SentenceTheory; import com.google.common.collect.ImmutableMap; public final class SentenceNPs { private final ImmutableMap<Integer, NPChunks> sentenceNPs; private SentenceNPs(final ImmutableMap<Integer, NPChunks> sentenceNPs) { this.sentenceNPs = sentenceNPs; } public static SentenceNPs from(DocTheory doc) { final ImmutableMap.Builder<Integer, NPChunks> sentenceNPsBuilder = ImmutableMap.builder(); for (final SentenceTheory st : doc.nonEmptySentenceTheories()) { final int sentenceNumber = st.sentenceNumber(); final NPChunks np = NPChunks.create(st); sentenceNPsBuilder.put(sentenceNumber, np); } return new SentenceNPs(sentenceNPsBuilder.build()); } public ImmutableMap<Integer, NPChunks> toMap() { return sentenceNPs; } }
[ "hqiu@bbn.com" ]
hqiu@bbn.com
207d4617b6a4ccacddc61e2ff9846f704ce1efae
8fe809808931203aa6913d130afb2f41ac58ef2c
/src/com/ai/aris/server/webservice/bean/AisStudyReportData.java
294606f8e7994b904b601d5fc64f558d99fbe486
[]
no_license
yangsense/bpris
08332632f39fa33584bdcb95f07e5d61b635a347
77bed9caebc4fd1a4b5a90e5de884ffc414fc5cc
refs/heads/master
2020-06-05T16:54:31.536441
2019-06-18T09:49:47
2019-06-18T09:49:47
192,486,051
0
0
null
2019-06-18T07:46:34
2019-06-18T07:12:00
null
UTF-8
Java
false
false
5,122
java
package com.ai.aris.server.webservice.bean; import java.sql.Timestamp; import java.util.Date; public class AisStudyReportData { private long reportId; private long studyinfoId; private Timestamp reportDatetime; private String reportDoctorid; private Timestamp reportVerifydatetime; private String reportVerifydoctorid; private Timestamp reportFinaldatetime; private String reportFinaldoctorid; private String reportRecord; private long reportIsvisible; private long reportIsprinted; private long reportIssent; private Timestamp reportPrintdatetime; private String reportPrintcareprovid; private long reportIscompleted; private String reportUncompletedreason; private String reportExammethod; private String reportExam; private String reportResult; private long reportIspositive; private long reportLock; private String reportRemark; private String reportAcrcode; private String reportIcd10; private String orgId; public String getOrgId() { return orgId; } public void setOrgId(String orgId) { this.orgId = orgId; } public long getReportId() { return reportId; } public void setReportId(long reportId) { this.reportId = reportId; } public long getStudyinfoId() { return studyinfoId; } public void setStudyinfoId(long studyinfoId) { this.studyinfoId = studyinfoId; } public String getReportDoctorid() { return reportDoctorid; } public void setReportDoctorid(String reportDoctorid) { this.reportDoctorid = reportDoctorid; } public String getReportVerifydoctorid() { return reportVerifydoctorid; } public void setReportVerifydoctorid(String reportVerifydoctorid) { this.reportVerifydoctorid = reportVerifydoctorid; } public String getReportFinaldoctorid() { return reportFinaldoctorid; } public void setReportFinaldoctorid(String reportFinaldoctorid) { this.reportFinaldoctorid = reportFinaldoctorid; } public String getReportRecord() { return reportRecord; } public void setReportRecord(String reportRecord) { this.reportRecord = reportRecord; } public long getReportIsvisible() { return reportIsvisible; } public void setReportIsvisible(long reportIsvisible) { this.reportIsvisible = reportIsvisible; } public long getReportIsprinted() { return reportIsprinted; } public void setReportIsprinted(long reportIsprinted) { this.reportIsprinted = reportIsprinted; } public long getReportIssent() { return reportIssent; } public void setReportIssent(long reportIssent) { this.reportIssent = reportIssent; } public Timestamp getReportDatetime() { return reportDatetime; } public void setReportDatetime(Timestamp reportDatetime) { this.reportDatetime = reportDatetime; } public Timestamp getReportVerifydatetime() { return reportVerifydatetime; } public void setReportVerifydatetime(Timestamp reportVerifydatetime) { this.reportVerifydatetime = reportVerifydatetime; } public Timestamp getReportFinaldatetime() { return reportFinaldatetime; } public void setReportFinaldatetime(Timestamp reportFinaldatetime) { this.reportFinaldatetime = reportFinaldatetime; } public Timestamp getReportPrintdatetime() { return reportPrintdatetime; } public void setReportPrintdatetime(Timestamp reportPrintdatetime) { this.reportPrintdatetime = reportPrintdatetime; } public String getReportPrintcareprovid() { return reportPrintcareprovid; } public void setReportPrintcareprovid(String reportPrintcareprovid) { this.reportPrintcareprovid = reportPrintcareprovid; } public long getReportIscompleted() { return reportIscompleted; } public void setReportIscompleted(long reportIscompleted) { this.reportIscompleted = reportIscompleted; } public String getReportUncompletedreason() { return reportUncompletedreason; } public void setReportUncompletedreason(String reportUncompletedreason) { this.reportUncompletedreason = reportUncompletedreason; } public String getReportExammethod() { return reportExammethod; } public void setReportExammethod(String reportExammethod) { this.reportExammethod = reportExammethod; } public String getReportExam() { return reportExam; } public void setReportExam(String reportExam) { this.reportExam = reportExam; } public String getReportResult() { return reportResult; } public void setReportResult(String reportResult) { this.reportResult = reportResult; } public long getReportIspositive() { return reportIspositive; } public void setReportIspositive(long reportIspositive) { this.reportIspositive = reportIspositive; } public long getReportLock() { return reportLock; } public void setReportLock(long reportLock) { this.reportLock = reportLock; } public String getReportRemark() { return reportRemark; } public void setReportRemark(String reportRemark) { this.reportRemark = reportRemark; } public String getReportAcrcode() { return reportAcrcode; } public void setReportAcrcode(String reportAcrcode) { this.reportAcrcode = reportAcrcode; } public String getReportIcd10() { return reportIcd10; } public void setReportIcd10(String reportIcd10) { this.reportIcd10 = reportIcd10; } }
[ "mr_yang_sen@163.com" ]
mr_yang_sen@163.com
4a29e5755305bf75ebc3b46c2d1c0de4f077fddf
6a66fc1279beb2ccc3048b39a334bc71dc8dc1f3
/prettydog/src/main/java/org/wc/prettydog/db/dao/CSequenceMapper.java
bdd8e10e9cf44bc6141408c41aec48fb210e0d3f
[]
no_license
dkisser/middleware
12984ad989ce847829e48e757bd8046b2178582a
4d8510ca5d5a970bed9442124365fe1f1f829942
refs/heads/master
2022-07-01T18:08:31.828391
2020-05-15T03:05:11
2020-05-15T03:05:11
187,583,971
5
0
null
2022-06-21T01:37:00
2019-05-20T06:53:20
TSQL
UTF-8
Java
false
false
277
java
package org.wc.prettydog.db.dao; import org.springframework.stereotype.Repository; import org.wc.prettydog.db.pojo.CSequence; @Repository public interface CSequenceMapper extends BaseQueryMapper{ int insert(CSequence record); int insertSelective(CSequence record); }
[ "437631891@qq.com" ]
437631891@qq.com
c8aae82a0f18f827457bd59828e1264e9bf8750b
00c51efa9c531d910531833a7f303bce12bf0bfd
/app/src/main/java/com/mainstreetcode/teammate/repository/GameRoundRepository.java
72df68d5f820d462b5210ad2ec767f9ede61f100
[]
no_license
nikitagudkovs/teammate-android
8ac5ccede4c684097db27c9432bad9e02c7dd021
3aacfe486b5cd974b44547528c05a82e9b69dbe1
refs/heads/master
2020-05-25T22:05:23.937059
2019-03-28T19:27:48
2019-03-28T19:27:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,290
java
package com.mainstreetcode.teammate.repository; import androidx.annotation.Nullable; import com.mainstreetcode.teammate.model.Game; import com.mainstreetcode.teammate.model.Tournament; import com.mainstreetcode.teammate.persistence.AppDatabase; import com.mainstreetcode.teammate.persistence.EntityDao; import com.mainstreetcode.teammate.persistence.GameDao; import com.mainstreetcode.teammate.rest.TeammateApi; import com.mainstreetcode.teammate.rest.TeammateService; import java.util.List; import io.reactivex.Flowable; import io.reactivex.Maybe; import io.reactivex.Single; import io.reactivex.functions.Function; import static io.reactivex.schedulers.Schedulers.io; public class GameRoundRepository extends QueryRepository<Game, Tournament, Integer> { private static GameRoundRepository ourInstance; private final TeammateApi api; private final GameDao gameDao; private GameRoundRepository() { api = TeammateService.getApiInstance(); gameDao = AppDatabase.getInstance().gameDao(); } public static GameRoundRepository getInstance() { if (ourInstance == null) ourInstance = new GameRoundRepository(); return ourInstance; } @Override public EntityDao<? super Game> dao() { return gameDao; } @Override public Single<Game> createOrUpdate(Game game) { return GameRepository.getInstance().createOrUpdate(game); } @Override public Flowable<Game> get(String id) { return GameRepository.getInstance().get(id); } @Override public Single<Game> delete(Game game) { return GameRepository.getInstance().delete(game); } @Override Maybe<List<Game>> localModelsBefore(Tournament tournament, @Nullable Integer round) { if (round == null) round = 0; return gameDao.getGames(tournament.getId(), round, 30).subscribeOn(io()); } @Override Maybe<List<Game>> remoteModelsBefore(Tournament tournament, @Nullable Integer round) { return api.getGamesForRound(tournament.getId(), round == null ? 0 : round, 30).map(getSaveManyFunction()).toMaybe(); } @Override Function<List<Game>, List<Game>> provideSaveManyFunction() { return GameRepository.getInstance().provideSaveManyFunction(); } }
[ "tjdah100@gmail.com" ]
tjdah100@gmail.com
261f778503a0b88ba26c8232ddf34973ae69cb93
4c9d35da30abf3ec157e6bad03637ebea626da3f
/eclipse/src/org/ripple/power/hft/OrderCxR.java
059dcd6bc308e3645844bf147367feeda777658f
[ "Apache-2.0" ]
permissive
youweixue/RipplePower
9e6029b94a057e7109db5b0df3b9fd89c302f743
61c0422fa50c79533e9d6486386a517565cd46d2
refs/heads/master
2020-04-06T04:40:53.955070
2015-04-02T12:22:30
2015-04-02T12:22:30
33,860,735
0
0
null
2015-04-13T09:52:14
2015-04-13T09:52:11
null
UTF-8
Java
false
false
169
java
package org.ripple.power.hft; public interface OrderCxR extends Order { public int getSize(); public String getOrderId(); public double getLimitPrice(); }
[ "longwind2012@hotmail.com" ]
longwind2012@hotmail.com
6d4fdc28c0cb53a0803b3f3075aa4f75331a7a20
6de2301bbc9048d1a363d44231273f3db9da4ec6
/bitcamp-java-basic/src/step04/Exam03_5.java
31f126e49710b620bca30d36034295f93af1934e
[]
no_license
sunghyeondong/bitcamp
5265d207306adec04223dd0e0d958661334731fa
c4a7d0ba01b0d6b684c67004e6c487b61c6656d6
refs/heads/master
2021-01-24T10:28:52.267015
2018-10-24T01:32:45
2018-10-24T01:32:45
123,054,630
0
0
null
null
null
null
UTF-8
Java
false
false
3,016
java
// 논리 연산자 : 비트 연산 package step04; public class Exam03_5 { public static void main(String[] args) { int a = 0b0110_1100; int b = 0b0101_0101; // 정수 값에 대해서는 &&와 ||, !을 사용할 수 없다. //System.out.println(a && b); // 컴파일 오류! //System.out.println(a || b); // 컴파일 오류! //System.out.println(!a); // 컴파일 오류! // 그러나 &, |, ^, !는 사용할 수 있다. // => 각 비트 단위로 연산을 수행한다. // => 1은 true, 0은 false라고 간주하고 계산한다. // => 출력 결과도 정수이다. System.out.println(a & b); // a = 0000 0000 0000 0000 0000 0000 0110 1100 // b = 0000 0000 0000 0000 0000 0000 0101 0101 // -------------------------------------------- // 0000 0000 0000 0000 0000 0000 0100 0100 = 68 System.out.println(a | b); // a = 0000 0000 0000 0000 0000 0000 0110 1100 // b = 0000 0000 0000 0000 0000 0000 0101 0101 // -------------------------------------------- // 0000 0000 0000 0000 0000 0000 0111 1101 = 125 System.out.println(a ^ b); // a = 0000 0000 0000 0000 0000 0000 0110 1100 // b = 0000 0000 0000 0000 0000 0000 0101 0101 // -------------------------------------------- // 0000 0000 0000 0000 0000 0000 0011 1001 = 57 // 비트 연산에서 not은 ! 연산자가 아니라 ~ 연산자 이다. System.out.println(~a); // a = 0000 0000 0000 0000 0000 0000 0110 1100 // -------------------------------------------- // 1111 1111 1111 1111 1111 1111 1001 0011 = -109 } } // 정리! // => 도대체 비트 연산자는 어디에 쓰이는가? // - 이미지 및 영상 처리에 사용된다. // - 예) 마스킹, 오버레이 기법에 사용된다. // - 예) 색조 변경에 사용된다. // // 사진을 컴퓨터에 저장하려면 2진수화 시켜야 한다. // 일단 사진을 점(픽셀; pixel)으로 바꾼다. // 각 픽셀의 색상은 RGB의 값(빛의 삼원색)으로 표현한다. // 즉 빨강,파랑,초록의 색 세기를 조정하여 다양한 색상을 표현하는 것이다. // 보통 천연색을 표현하기 위해 RGB 각 색상을 8비트로 표현한다. // 빨강의 빛의 세기: 0 ~ 255 => 0000 0000 ~ 1111 1111 // 파랑의 빛의 세기: 0 ~ 255 => 0000 0000 ~ 1111 1111 // 초록의 빛의 세기: 0 ~ 255 => 0000 0000 ~ 1111 1111 // 이 3개의 값을 합쳐서 한 개의 픽셀 색상을 표현하는 것이다. // 즉 24비트(3바이트)로 픽셀 색상을 표현하는 것이다. // 빨강 색의 한 픽셀: 1111 1111 0000 0000 0000 0000 = 0xFF0000 // 초록 색의 한 픽셀: 0000 0000 1111 1111 0000 0000 = 0x00FF00 // 파랑 색의 한 픽셀: 0000 0000 0000 0000 1111 1111 = 0x0000FF // 노랑 색의 한 픽셀: 1111 1111 1111 1111 0000 0000 = 0xFFFF00
[ "tjdgusehd0@naver.com" ]
tjdgusehd0@naver.com
56e7e12ed8d346900b629305ee47c229b388f4db
d223db75fc58daa583d180973611834eccc53190
/src/main/java/com/skilrock/lms/BulkFinalReceipt.java
3853205403b9a6a2526cf0ebc4beb272265d2f5e
[]
no_license
gouravSkilrock/NumbersGame
c1d6665afccee9218f1b53c1eee6fbcc95841bd0
bbc8af08e436fd51c5dbb01b5b488d80235a0442
refs/heads/master
2021-01-20T15:04:59.198617
2017-05-09T07:00:29
2017-05-09T07:00:29
90,712,376
0
1
null
null
null
null
UTF-8
Java
false
false
1,989
java
package com.skilrock.lms; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import com.skilrock.lms.common.db.DBConnect; public class BulkFinalReceipt { public static void main(String[] args) { Connection con = DBConnect.getConnection(); new BulkFinalReceipt().updateTemp(con); /* * String arr[] = tiket.split("','"); for(int i = 0; i<arr.length; i++) { * * //System.out.println(); arr[i] = arr[i].trim(); * * String newtkt = * arr[i].substring(0,3)+"-"+arr[i].substring(3,9)+"-"+arr[i].substring(9,12); * * System.out.print("'"+newtkt+"',"); } */ System.out.println("ENd Main"); } void updateTemp(Connection con) { try { Statement stmt = con.createStatement(); Statement stmt1 = con.createStatement(); // con.setAutoCommit(false); int gameId = 48; ResultSet rs = stmt .executeQuery("select tp.virn_code, final_receipt_num," + " bp.transaction_id , tm.receipt_id from st_lms_bo_receipts_trn_mapping" + " tm, st_tmp_pwt_inv tp, st_se_bo_pwt bp where tp.game_id = " + gameId + " and" + " tp.virn_code = bp.virn_code and tp.game_id = bp.game_id and" + " bp.transaction_id = tm.transaction_id and final_receipt_num != tm.receipt_id " + "order by receipt_id desc"); while (rs.next()) { int finalReceiptOld = rs.getInt("final_receipt_num"); int newReceipt = rs.getInt("receipt_id"); String virnCode = rs.getString("virn_code"); String updateQuery = "update st_tmp_pwt_inv set final_receipt_num = " + newReceipt + " where virn_code = '" + virnCode + "' and game_id = " + gameId + " and final_receipt_num = " + finalReceiptOld; System.out.println(updateQuery); int row = stmt1.executeUpdate(updateQuery); System.out.println(); } } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
[ "anuj.sharma@skilrock.com" ]
anuj.sharma@skilrock.com
289aaf2f6b9a82d6210438491f62fdf1974fd751
20eb62855cb3962c2d36fda4377dfd47d82eb777
/IntroClassJava/dataset/grade/c9d718f379a877bd04e4544ee830a1c4c256bb4f104f214afd1ccaf81e7b25dea689895678bb1e6f817d8b0939eb175f8e847130f30a9a22e980d38125933516/002/mutations/209/grade_c9d718f3_002.java
8b311b6ac18f2d2777b37a0d6ea763691fb6c9cd
[]
no_license
ozzydong/CapGen
356746618848065cce4e253e5d3c381baa85044a
0ba0321b6b1191443276021f1997833342f02515
refs/heads/master
2023-03-18T20:12:02.923428
2020-08-21T03:08:28
2020-08-21T03:08:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,561
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class grade_c9d718f3_002 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { grade_c9d718f3_002 mainClass = new grade_c9d718f3_002 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { FloatObj grade = new FloatObj (), per1 = new FloatObj (), per2 = new FloatObj (), per3 = new FloatObj(value) , per4 = new FloatObj (); output += (String.format ("Enter thresholds for A, B, C, D\n")); output += (String.format ("in that order, decreasing percentages > ")); per1.value = scanner.nextFloat (); per2.value = scanner.nextFloat (); per3.value = scanner.nextFloat (); per4.value = scanner.nextFloat (); output += (String.format ("Thank you. Now enter student score (percent) >")); grade.value = scanner.nextFloat (); if (grade.value >= per1.value) { output += (String.format ("Student has an A grade\n")); } else if (grade.value >= per2.value && grade.value < per1.value) { output += (String.format ("Student has an B grade\n")); } else if (grade.value >= per3.value && grade.value < per2.value) { output += (String.format ("Studnet has an C grade\n")); } else if (grade.value >= per4.value && grade.value < per3.value) { output += (String.format ("Student has an D grade\n")); } else if (grade.value < per4.value) { output += (String.format ("Studnet has failed the course\n")); } if (true) return;; } }
[ "justinwm@163.com" ]
justinwm@163.com
22e774c73233869131e4bcb46e9f530ba177f528
dea92fc41db6a97d8cb32b266c399edd3a61989f
/source/org.strategoxt.imp.spoofax.generator/src-gen/org/strategoxt/imp/spoofax/generator/continue_to_label_$Base$Package_0_1.java
ea496c2d098754ce7b25e0dd1dad10382f5f8dd6
[]
no_license
adilakhter/spoofaxlang
19170765e690477a79069e05fd473f521d1d1ddc
27515280879cc108a3cf2108df00760b6d39e15e
refs/heads/master
2020-03-17T01:15:18.833754
2015-01-22T07:12:05
2015-01-22T07:12:05
133,145,594
1
0
null
null
null
null
UTF-8
Java
false
false
1,369
java
package org.strategoxt.imp.spoofax.generator; import org.strategoxt.stratego_lib.*; import org.strategoxt.stratego_lib.*; import org.strategoxt.stratego_sglr.*; import org.strategoxt.stratego_gpp.*; import org.strategoxt.stratego_xtc.*; import org.strategoxt.stratego_aterm.*; import org.strategoxt.stratego_rtg.*; import org.strategoxt.stratego_sdf.*; import org.strategoxt.stratego_tool_doc.*; import org.strategoxt.java_front.*; import org.strategoxt.lang.*; import org.spoofax.interpreter.terms.*; import static org.strategoxt.lang.Term.*; import org.spoofax.interpreter.library.AbstractPrimitive; import java.util.ArrayList; import java.lang.ref.WeakReference; @SuppressWarnings("all") public class continue_to_label_$Base$Package_0_1 extends Strategy { public static continue_to_label_$Base$Package_0_1 instance = new continue_to_label_$Base$Package_0_1(); @Override public IStrategoTerm invoke(Context context, IStrategoTerm term, IStrategoTerm t_4457) { context.push("continue_to_label_BasePackage_0_1"); Fail27272: { IStrategoTerm v_4457 = null; v_4457 = term; term = dr_continue_0_2.instance.invoke(context, v_4457, generator.const7448, t_4457); if(term == null) break Fail27272; context.popOnSuccess(); if(true) return term; } context.popOnFailure(); return null; } }
[ "md.adilakhter@gmail.com" ]
md.adilakhter@gmail.com
8d16d1db358f5695d222b0598d94b20cbd5961a7
09dfa9547a6f16cc0320ba82ccfae0a4b9101211
/src/main/java/com/experts/core/biller/statemachine/api/model/domain/jpa/crm/contact/CustomerEmail.java
612d5466cc88f4809ce507409fc2907adcca6079
[]
no_license
yousefataya/CloudServer2.0
06d6da5fc18c1742f5ad5177bde8743cd637053e
5b59297555f28da08354c9ede43d1f2113795a21
refs/heads/master
2022-12-08T15:01:29.777783
2019-12-21T16:14:28
2019-12-21T16:14:28
229,401,900
0
2
null
2022-11-15T23:53:30
2019-12-21T08:55:45
Java
UTF-8
Java
false
false
1,809
java
package com.experts.core.biller.statemachine.api.model.domain.jpa.crm.contact; import com.experts.core.biller.statemachine.api.model.domain.jpa.crm.contact.lookup.CustomerEmailLookup; import com.experts.core.biller.statemachine.api.model.domain.jpa.crm.customer.CustomerDetails; import com.experts.core.biller.statemachine.api.rovo.awsxray.domain.entities.mongo.BaseEntity; import lombok.Builder; import lombok.Data; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import org.springframework.cache.annotation.CacheEvict; import javax.persistence.*; import javax.validation.constraints.Email; import java.util.Date; @Entity @Table(name = "customer_email") @Data @Builder @Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL) public class CustomerEmail extends BaseEntity { @Column(name = "description" , nullable = true) private String description; @Column(name = "notes" , nullable = true) private String notes; @Column(name = "expired" , nullable = false) private boolean isExpired = false; @Column(name = "email" , nullable = false) @Email private String email; @Column(name = "issue_date" , nullable = false) @Temporal(TemporalType.TIMESTAMP) private Date issueDate; @ManyToOne(fetch = FetchType.LAZY , cascade = CascadeType.ALL) @JoinColumn(name = "customer_id" , nullable = false) private CustomerDetails customerDetails; @ManyToOne(fetch = FetchType.LAZY , cascade = CascadeType.ALL) @JoinColumn(name = "customer_email_lookup" , nullable = false) private CustomerEmailLookup customerEmailLookup; /* customer reference key */ /* organization reference key */ /* email lookup reference key */ }
[ "yousef.experts@outlook.com" ]
yousef.experts@outlook.com
510137a130de3f3256c092e7c10c8626e8c5e63b
da049f1efd756eaac6f40a4f6a9c4bdca7e16a06
/PrizeHBhelper/app/src/main/java/com/android/lpserver/widget/MoreQuestionPreference.java
9aef1f6ea9a1059b4b1a3138095a7f2f9605bcca
[]
no_license
evilhawk00/AppGroup
c22e693320039f4dc7b384976a513f94be5bccbe
a22714c1e6b9f5c157bebb2c5dbc96b854ba949a
refs/heads/master
2022-01-11T18:04:27.481162
2018-04-19T03:02:26
2018-04-19T03:02:26
420,370,518
1
0
null
null
null
null
UTF-8
Java
false
false
1,510
java
package com.android.lpserver.widget; import android.content.Context; import android.content.Intent; import android.preference.Preference; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.android.lpserver.MoreQuestionActivity; import com.android.lpserver.R; /** * Created by prize on 2016/11/16. */ public class MoreQuestionPreference extends Preference { private TextView moreQuestionView; public MoreQuestionPreference(Context context) { super(context); } public MoreQuestionPreference(Context context, AttributeSet attrs) { super(context, attrs); } public MoreQuestionPreference(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } @Override protected View onCreateView(ViewGroup parent) { super.onCreateView(parent); LayoutInflater inflater=(LayoutInflater)getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); View layout = inflater.inflate(R.layout.preferencereminder, null); moreQuestionView = (TextView)layout.findViewById(R.id.text5); moreQuestionView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { getContext().startActivity(new Intent(getContext(),MoreQuestionActivity.class)); } }); return layout; } }
[ "649830103@qq.com" ]
649830103@qq.com
c5aa32d3ec8dc11a7d6a2baec2f115223f590560
36698a8464c18cfe4476b954eed4c9f3911b5e2c
/ZimbraServer/src/java/com/zimbra/cs/service/admin/QueryWaitSet.java
a35816a3696bd3771498f78023d98fd489b2576b
[]
no_license
mcsony/Zimbra-1
392ef27bcbd0e0962dce99ceae3f20d7a1e9d1c7
4bf3dc250c68a38e38286bdd972c8d5469d40e34
refs/heads/master
2021-12-02T06:45:15.852374
2011-06-13T13:10:57
2011-06-13T13:10:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,415
java
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2008, 2009, 2010, 2011 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://www.zimbra.com/license. * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. * ***** END LICENSE BLOCK ***** */ package com.zimbra.cs.service.admin; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.zimbra.common.service.ServiceException; import com.zimbra.common.soap.AdminConstants; import com.zimbra.common.soap.Element; import com.zimbra.common.soap.MailConstants; import com.zimbra.cs.account.accesscontrol.AdminRight; import com.zimbra.cs.session.IWaitSet; import com.zimbra.cs.session.WaitSetMgr; import com.zimbra.soap.ZimbraSoapContext; /** * This API is used to dump the internal state of a wait set. This API is intended * for debugging use only. */ public class QueryWaitSet extends AdminDocumentHandler { @Override public Element handle(Element request, Map<String, Object> context) throws ServiceException { ZimbraSoapContext zsc = getZimbraSoapContext(context); WaitSetMgr.checkRightForAllAccounts(zsc); // must be a global admin Element response = zsc.createElement(AdminConstants.QUERY_WAIT_SET_RESPONSE); String waitSetId = request.getAttribute(MailConstants.A_WAITSET_ID, null); List<IWaitSet> sets; if (waitSetId != null) { sets = new ArrayList<IWaitSet>(1); IWaitSet ws = WaitSetMgr.lookup(waitSetId); if (ws == null) { throw AdminServiceException.NO_SUCH_WAITSET(waitSetId); } sets.add(ws); } else { sets = WaitSetMgr.getAll(); } for (IWaitSet set : sets) { Element waitSetElt = response.addElement(AdminConstants.E_WAITSET); set.handleQuery(waitSetElt); } return response; } @Override public void docRights(List<AdminRight> relatedRights, List<String> notes) { notes.add(AdminRightCheckPoint.Notes.SYSTEM_ADMINS_ONLY); } }
[ "dstites@autobase.net" ]
dstites@autobase.net
bedaae52f2a076cdfd1e502ba70253058d85d9f2
9a857d1407cf27764f402399adb9fc81c3511b6c
/src/20141123/partner-sdk/src/main/java/com/lodogame/ldsg/partner/model/guguo/GuGuoPaymentObj.java
7735612c8e7afcdb4425022a7a11e740a36920ac
[]
no_license
zihanbobo/smsg-server
fcfec6fc6b55441d7ab64bb8b769d072752592c0
abfebf8b1fff83332090b922e390b892483da6ed
refs/heads/master
2021-06-01T00:01:43.208825
2016-05-10T10:10:01
2016-05-10T10:10:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,275
java
package com.lodogame.ldsg.partner.model.guguo; import com.lodogame.ldsg.partner.model.PaymentObj; public class GuGuoPaymentObj extends PaymentObj { private String openId; private String serverId; private String serverName; private String roleId; private String roleName; private String orderId; private String orderStatus; private String payType; private String amount; private String remark; private String callBackInfo; private String payTime; private String paySUTime; private String sign; public String getOpenId() { return openId; } public void setOpenId(String openId) { this.openId = openId; } public String getServerId() { return serverId; } public void setServerId(String serverId) { this.serverId = serverId; } public String getServerName() { return serverName; } public void setServerName(String serverName) { this.serverName = serverName; } public String getRoleId() { return roleId; } public void setRoleId(String roleId) { this.roleId = roleId; } public String getRoleName() { return roleName; } public void setRoleName(String roleName) { this.roleName = roleName; } public String getOrderId() { return orderId; } public void setOrderId(String orderId) { this.orderId = orderId; } public String getOrderStatus() { return orderStatus; } public void setOrderStatus(String orderStatus) { this.orderStatus = orderStatus; } public String getPayType() { return payType; } public void setPayType(String payType) { this.payType = payType; } public String getAmount() { return amount; } public void setAmount(String amount) { this.amount = amount; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public String getCallBackInfo() { return callBackInfo; } public void setCallBackInfo(String callBackInfo) { this.callBackInfo = callBackInfo; } public String getPayTime() { return payTime; } public void setPayTime(String payTime) { this.payTime = payTime; } public String getPaySUTime() { return paySUTime; } public void setPaySUTime(String paySUTime) { this.paySUTime = paySUTime; } public String getSign() { return sign; } public void setSign(String sign) { this.sign = sign; } }
[ "dogdog7788@qq.com" ]
dogdog7788@qq.com
56738a00106c9d0152f0d11fdb5f92266baf1fc0
7c42475d8b91111f29b864aabe3656604d7332e1
/src/main/java/me/leetcode3/P112.java
fa46c805f265d720c8132e34e83be7b82cbf4948
[]
no_license
paranoidq/leetcode-2018
1c2dbc0acd9deebecebb26754326d0486daac304
eff63e4b577aa41358e6fdee44e4c05b816a3666
refs/heads/master
2021-05-12T15:31:32.536428
2018-10-30T12:43:44
2018-10-30T12:43:44
116,986,425
0
0
null
null
null
null
UTF-8
Java
false
false
435
java
package me.leetcode3; import me.TreeNode; /** * @author paranoidq * @since 1.0.0 */ public class P112 { public boolean hasPathSum(TreeNode root, int sum) { if (root == null) { return false; } if (root.left == null && root.right == null) { return root.val == sum; } return hasPathSum(root.left, sum - root.val) || hasPathSum(root.right, sum - root.val); } }
[ "paranoid.qian@gmail.com" ]
paranoid.qian@gmail.com
de0d5a6423cf6cdebda8f184bcd9dcb030e6305f
78f7fd54a94c334ec56f27451688858662e1495e
/partyanalyst-service/trunk/src/main/java/com/itgrids/partyanalyst/model/Attendance.java
beb153545212093e45d2dd3957936065a43ea42e
[]
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
7,996
java
package com.itgrids.partyanalyst.model; import java.io.Serializable; import java.util.Date; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import org.hibernate.annotations.LazyToOne; import org.hibernate.annotations.LazyToOneOption; import org.hibernate.annotations.NotFoundAction; @Entity @Table(name="attendance") @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public class Attendance extends BaseModel implements Serializable{ private static final long serialVersionUID = -1488161375914198130L; private Long attendanceId; private TdpCadre tdpCadre; private PublicRepresentative publicRepresentative; private Date attendedTime; private String rfid; private String imei; private String uniqueKey; private Date insertedTime; private String latitude; private String longitude; private AttendanceTabUser tabUser; private AttendanceTabUser currentTabUser; private String syncSource; private User insertedBy; private Long tdpCadreId; private Long publicRepresentativeId; private Long tabUserId; private Long currentTabUserId; private Long insertedById; private Long tabPrimaryKey; private Long activityLocationPublicAttendanceId; private ActivityLocationPublicAttendance activityLocationPublicAttendance; private String imageStr; private String imgPath; public Attendance(){} @Id @GeneratedValue(strategy=GenerationType.AUTO) @Column(name="attendance_id", unique=true, nullable=false) public Long getAttendanceId() { return attendanceId; } public void setAttendanceId(Long attendanceId) { this.attendanceId = attendanceId; } @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY) @JoinColumn(name="tdp_cadre_id",updatable = false, insertable = false) @LazyToOne(LazyToOneOption.NO_PROXY) @org.hibernate.annotations.NotFound(action=NotFoundAction.IGNORE) public TdpCadre getTdpCadre() { return tdpCadre; } public void setTdpCadre(TdpCadre tdpCadre) { this.tdpCadre = tdpCadre; } @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY) @JoinColumn(name="public_representative_id",updatable = false, insertable = false) @LazyToOne(LazyToOneOption.NO_PROXY) @org.hibernate.annotations.NotFound(action=NotFoundAction.IGNORE) public PublicRepresentative getPublicRepresentative() { return publicRepresentative; } public void setPublicRepresentative(PublicRepresentative publicRepresentative) { this.publicRepresentative = publicRepresentative; } @Column(name="attended_time") public Date getAttendedTime() { return attendedTime; } public void setAttendedTime(Date attendedTime) { this.attendedTime = attendedTime; } @Column(name="rfid") public String getRfid() { return rfid; } public void setRfid(String rfid) { this.rfid = rfid; } @Column(name="imei") public String getImei() { return imei; } public void setImei(String imei) { this.imei = imei; } @Column(name="unique_key") public String getUniqueKey() { return uniqueKey; } public void setUniqueKey(String uniqueKey) { this.uniqueKey = uniqueKey; } @Column(name="inserted_time") public Date getInsertedTime() { return insertedTime; } public void setInsertedTime(Date insertedTime) { this.insertedTime = insertedTime; } @Column(name="latitude") public String getLatitude() { return latitude; } public void setLatitude(String latitude) { this.latitude = latitude; } @Column(name="longitude") public String getLongitude() { return longitude; } public void setLongitude(String longitude) { this.longitude = longitude; } @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY) @JoinColumn(name="tab_user_id",updatable = false, insertable = false) @LazyToOne(LazyToOneOption.NO_PROXY) @org.hibernate.annotations.NotFound(action=NotFoundAction.IGNORE) public AttendanceTabUser getTabUser() { return tabUser; } public void setTabUser(AttendanceTabUser tabUser) { this.tabUser = tabUser; } @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY) @JoinColumn(name="current_tab_user_id",updatable = false, insertable = false) @LazyToOne(LazyToOneOption.NO_PROXY) @org.hibernate.annotations.NotFound(action=NotFoundAction.IGNORE) public AttendanceTabUser getCurrentTabUser() { return currentTabUser; } public void setCurrentTabUser(AttendanceTabUser currentTabUser) { this.currentTabUser = currentTabUser; } @Column(name="sync_source") public String getSyncSource() { return syncSource; } public void setSyncSource(String syncSource) { this.syncSource = syncSource; } @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY) @JoinColumn(name="inserted_by",updatable = false, insertable = false) @LazyToOne(LazyToOneOption.NO_PROXY) @org.hibernate.annotations.NotFound(action=NotFoundAction.IGNORE) public User getInsertedBy() { return insertedBy; } public void setInsertedBy(User insertedBy) { this.insertedBy = insertedBy; } @Column(name="tdp_cadre_id") public Long getTdpCadreId() { return tdpCadreId; } public void setTdpCadreId(Long tdpCadreId) { this.tdpCadreId = tdpCadreId; } @Column(name="public_representative_id") public Long getPublicRepresentativeId() { return publicRepresentativeId; } public void setPublicRepresentativeId(Long publicRepresentativeId) { this.publicRepresentativeId = publicRepresentativeId; } @Column(name="tab_user_id") public Long getTabUserId() { return tabUserId; } public void setTabUserId(Long tabUserId) { this.tabUserId = tabUserId; } @Column(name="current_tab_user_id") public Long getCurrentTabUserId() { return currentTabUserId; } public void setCurrentTabUserId(Long currentTabUserId) { this.currentTabUserId = currentTabUserId; } @Column(name="inserted_by") public Long getInsertedById() { return insertedById; } public void setInsertedById(Long insertedById) { this.insertedById = insertedById; } @Column(name="tab_primary_key") public Long getTabPrimaryKey() { return tabPrimaryKey; } public void setTabPrimaryKey(Long tabPrimaryKey) { this.tabPrimaryKey = tabPrimaryKey; } @Column(name="activity_location_public_attendance_id") public Long getActivityLocationPublicAttendanceId() { return activityLocationPublicAttendanceId; } public void setActivityLocationPublicAttendanceId( Long activityLocationPublicAttendanceId) { this.activityLocationPublicAttendanceId = activityLocationPublicAttendanceId; } @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY) @JoinColumn(name="activity_location_public_attendance_id",updatable = false, insertable = false) @LazyToOne(LazyToOneOption.NO_PROXY) @org.hibernate.annotations.NotFound(action=NotFoundAction.IGNORE) public ActivityLocationPublicAttendance getActivityLocationPublicAttendance() { return activityLocationPublicAttendance; } public void setActivityLocationPublicAttendance( ActivityLocationPublicAttendance activityLocationPublicAttendance) { this.activityLocationPublicAttendance = activityLocationPublicAttendance; } @Column(name="image_str") public String getImageStr() { return imageStr; } public void setImageStr(String imageStr) { this.imageStr = imageStr; } @Column(name="img_path") public String getImgPath() { return imgPath; } public void setImgPath(String imgPath) { this.imgPath = imgPath; } }
[ "itgrids@b17b186f-d863-de11-8533-00e0815b4126" ]
itgrids@b17b186f-d863-de11-8533-00e0815b4126
7a70c1e1850b03783373fdc335bcdeadeef3966a
9d93eadf80abc6f6e441451bbc1594161eedced6
/src/java/hrms/dao/relieve/MaxRelieveIdDAOImpl.java
7b22a7badcdf43f80f6f9c5050ec0ee4261b53f3
[]
no_license
durgaprasad2882/HRMSOpenSourceFor466anydesk
1bac7eb2e231a4fb3389b6b1cb8fb4384a757522
e7ef76f77d7ecf98464e9bcccc2246b2091efeb4
refs/heads/main
2023-06-29T16:26:04.663376
2021-08-05T09:19:02
2021-08-05T09:19:02
392,978,868
0
0
null
null
null
null
UTF-8
Java
false
false
1,934
java
package hrms.dao.relieve; import hrms.common.CommonFunctions; import hrms.common.DataBaseFunctions; import java.sql.Connection; import java.sql.ResultSet; import java.sql.Statement; import javax.annotation.Resource; import javax.sql.DataSource; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Repository; @Repository @Scope("singleton") public class MaxRelieveIdDAOImpl implements MaxRelieveIdDAO { @Resource(name = "dataSource") protected DataSource dataSource; public DataSource getDataSource() { return dataSource; } public void setDataSource(DataSource dataSource) { this.dataSource = dataSource; } private String mCode; @Override public String getMaxRelieveId() { Statement st = null; ResultSet rs = null; String fixedId = "21910000000000"; Connection con = null; try { if (mCode != null) { mCode = CommonFunctions.getNextString(mCode); } else { con = this.dataSource.getConnection(); st = con.createStatement(); rs = st.executeQuery("SELECT MAX(cast ( RELIEVE_ID as BIGINT )) MCODE FROM EMP_RELIEVE"); if (rs.next()) { mCode = rs.getString("MCODE"); if (mCode != null) { // modified by Surendra for keep track of HRMS 2.0 transaction // if (fixedId.compareTo(mCode) > 0) { mCode = "21910000000001"; } else { mCode = CommonFunctions.getNextString(mCode); } } } } } catch (Exception e) { e.printStackTrace(); } finally { DataBaseFunctions.closeSqlObjects(con); } return mCode; } }
[ "dm.prasad@hotmail.com" ]
dm.prasad@hotmail.com
92686c5db65596b979e7c3e1fe02f444a093e2d1
1930d97ebfc352f45b8c25ef715af406783aabe2
/src/main/java/com/alipay/api/domain/AlipayFundTransGroupfundsFundbillsQueryModel.java
b3e65d00eb0749ed0ef339a50a1439bb01ce39c5
[ "Apache-2.0" ]
permissive
WQmmm/alipay-sdk-java-all
57974d199ee83518523e8d354dcdec0a9ce40a0c
66af9219e5ca802cff963ab86b99aadc59cc09dd
refs/heads/master
2023-06-28T03:54:17.577332
2021-08-02T10:05:10
2021-08-02T10:05:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,775
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 团体资金单据(资金流水)查询接口 * * @author auto create * @since 1.0, 2019-05-17 11:53:36 */ public class AlipayFundTransGroupfundsFundbillsQueryModel extends AlipayObject { private static final long serialVersionUID = 7355821975141139683L; /** * 流水关联的批次号 */ @ApiField("batch_no") private String batchNo; /** * 当前查询单据流水的用户支付宝账户ID */ @ApiField("current_user_id") private String currentUserId; /** * 扩展参数,可选,业务扩展时使用 */ @ApiField("ext_param") private String extParam; /** * 查询类型,SINGLE: 表示仅查询当前用户流水,ALL: 表示查询所有流水,默认为SINGLE */ @ApiField("query_type") private String queryType; /** * 业务来源,对于聚会小程序统一透传"openParty" */ @ApiField("source") private String source; public String getBatchNo() { return this.batchNo; } public void setBatchNo(String batchNo) { this.batchNo = batchNo; } public String getCurrentUserId() { return this.currentUserId; } public void setCurrentUserId(String currentUserId) { this.currentUserId = currentUserId; } public String getExtParam() { return this.extParam; } public void setExtParam(String extParam) { this.extParam = extParam; } public String getQueryType() { return this.queryType; } public void setQueryType(String queryType) { this.queryType = queryType; } public String getSource() { return this.source; } public void setSource(String source) { this.source = source; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
f2ce39a68b743fa127d9a05084e28baa31c2d411
e515834c3af4049e99a2bbd07383f081c16fcff1
/web/src/main/java/com/example/springboot/web/WebApplication.java
c2ebf67bfa953264727a98c46611fa52667edd11
[]
no_license
dabengxiang/spring-boot-example
1e59da1ff49eeadad6f04cb1be67be7e2caf3c1d
32e9a72589c9acc12a1a0be8e164e2cf7ed24a51
refs/heads/master
2020-04-07T05:27:46.591950
2018-11-22T23:10:19
2018-11-22T23:10:19
158,097,454
0
0
null
null
null
null
UTF-8
Java
false
false
435
java
package com.example.springboot.web; import com.fasterxml.jackson.databind.ser.Serializers; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import springfox.documentation.swagger2.annotations.EnableSwagger2; @SpringBootApplication public class WebApplication { public static void main(String[] args) { SpringApplication.run(WebApplication.class, args); } }
[ "aaa" ]
aaa
e2d05200a69a4bb448055a499aca66e0818562ba
b95ee8022eab9c6671a12b0313cb7e0e7aa5f36c
/design-patterns/src/main/java/com/hz/observer/v1/PopupWindow.java
c47cb32e54801689a938e2df391ea03e26de08d3
[]
no_license
mp2930696631/newStart
c10f399a8e1ae04404d806ed9a5249b68cfa09a1
bc3a05c52081826af099201a4434d44190e81937
refs/heads/main
2023-03-14T13:23:44.439150
2021-03-08T07:44:52
2021-03-08T07:44:52
306,849,648
1
1
null
null
null
null
UTF-8
Java
false
false
197
java
package com.hz.observer.v1; /** * @Auther zehua * @Date 2020/11/8 7:32 */ public class PopupWindow { public void popup() { System.out.println("弹窗出现............"); } }
[ "891393221@qq.com" ]
891393221@qq.com
41905f479ea135beb33b40f2aa00be2ecd58823b
25e99a0af5751865bce1702ee85cc5c080b0715c
/opencv/src/OpenCV-for-Java/opencv2.4.13/ch04/Panel.java
b7b3aab1bd122de675a8a64ffdcca99c2222852c
[]
no_license
jasonblog/note
215837f6a08d07abe3e3d2be2e1f183e14aa4a30
4471f95736c60969a718d854cab929f06726280a
refs/heads/master
2023-05-31T13:02:27.451743
2022-04-04T11:28:06
2022-04-04T11:28:06
35,311,001
130
67
null
2023-02-10T21:26:36
2015-05-09T02:04:40
C
UTF-8
Java
false
false
1,747
java
package ch04; import java.awt.Graphics; import java.awt.image.BufferedImage; import javax.swing.JPanel; import org.opencv.core.Mat; class Panel extends JPanel { private BufferedImage image; public Panel() { super(); } private BufferedImage getimage() { return image; } public void setimage(BufferedImage newimage) { image = newimage; return; } public void setimagewithMat(Mat newimage) { image = this.matToBufferedImage(newimage); return; } public BufferedImage matToBufferedImage(Mat matrix) { int cols = matrix.cols(); int rows = matrix.rows(); int elemSize = (int) matrix.elemSize(); byte[] data = new byte[cols * rows * elemSize]; int type; matrix.get(0, 0, data); switch (matrix.channels()) { case 1: type = BufferedImage.TYPE_BYTE_GRAY; break; case 3: type = BufferedImage.TYPE_3BYTE_BGR; // bgr to rgb byte b; for (int i = 0; i < data.length; i = i + 3) { b = data[i]; data[i] = data[i + 2]; data[i + 2] = b; } break; default: return null; } BufferedImage image2 = new BufferedImage(cols, rows, type); image2.getRaster().setDataElements(0, 0, cols, rows, data); return image2; } @Override protected void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage temp = getimage(); if (temp != null) { g.drawImage(temp, 10, 10, temp.getWidth(), temp.getHeight(), this); } } }
[ "jason_yao" ]
jason_yao
5514dc73b926ce02ca66a9780b54f8cc5e1801da
b3a694913d943bdb565fbf828d6ab8a08dd7dd12
/sources/p003f/p004a/p005a/p012b/p103l/p107d/C0696a.java
81381ac114a4babf5ddd0ce129a0eeed64f8cd08
[]
no_license
v1ckxy/radar-covid
feea41283bde8a0b37fbc9132c9fa5df40d76cc4
8acb96f8ccd979f03db3c6dbfdf162d66ad6ac5a
refs/heads/master
2022-12-06T11:29:19.567919
2020-08-29T08:00:19
2020-08-29T08:00:19
294,198,796
1
0
null
2020-09-09T18:39:43
2020-09-09T18:39:43
null
UTF-8
Java
false
false
2,354
java
package p003f.p004a.p005a.p012b.p103l.p107d; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.net.Uri; import p002es.gob.radarcovid.features.main.view.MainActivity; import p002es.gob.radarcovid.features.onboarding.view.OnboardingActivity; import p003f.p004a.p005a.p012b.p103l.p106c.C0694b; import p213q.p214a.p215a.p216a.C1965a; import p392u.p401r.p403c.C4638h; /* renamed from: f.a.a.b.l.d.a */ public final class C0696a implements C0694b { /* renamed from: a */ public final Context f2145a; public C0696a(Context context) { if (context != null) { this.f2145a = context; } else { C4638h.m10271a("context"); throw null; } } /* renamed from: a */ public void mo3867a() { String str = "android.intent.action.VIEW"; try { this.f2145a.startActivity(new Intent(str, Uri.parse("market://details?id=com.google.android.gms"))); } catch (ActivityNotFoundException unused) { Context context = this.f2145a; StringBuilder sb = new StringBuilder(); sb.append("https://play.google.com/store/apps/details?id="); sb.append("com.google.android.gms"); context.startActivity(new Intent(str, Uri.parse(sb.toString()))); } } /* renamed from: b */ public void mo3868b() { this.f2145a.startActivity(new Intent(this.f2145a, OnboardingActivity.class)); } /* renamed from: c */ public void mo3869c() { String str = "android.intent.action.VIEW"; try { Context context = this.f2145a; StringBuilder sb = new StringBuilder(); sb.append("market://details?id="); sb.append(this.f2145a.getPackageName()); context.startActivity(new Intent(str, Uri.parse(sb.toString()))); } catch (Exception unused) { Context context2 = this.f2145a; StringBuilder a = C1965a.m4756a("https://play.google.com/store/apps/details?id="); a.append(this.f2145a.getPackageName()); context2.startActivity(new Intent(str, Uri.parse(a.toString()))); } } /* renamed from: d */ public void mo3870d() { MainActivity.m1348a(this.f2145a, false); } }
[ "josemmoya@outlook.com" ]
josemmoya@outlook.com
48195cece7aa3d721097317384920660b7a81d6e
82e2fa3b1128edc8abd2bd84ecfc01c932831bc0
/jena-cmds/src/main/java/arq/iri.java
dfb8db08415034967d014c41ee59e7f040fb8bf7
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
apache/jena
b64f6013582f2b5aa38d1c9972d7b14e55686316
fb41e79d97f065b8df9ebbc6c69b3f983b6cde04
refs/heads/main
2023-08-14T15:16:21.086308
2023-08-03T08:34:08
2023-08-03T08:34:08
7,437,073
966
760
Apache-2.0
2023-09-02T09:04:08
2013-01-04T08:00:32
Java
UTF-8
Java
false
false
1,877
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package arq; import java.util.Iterator ; import org.apache.jena.iri.IRI ; import org.apache.jena.iri.IRIFactory ; import org.apache.jena.iri.Violation ; import org.apache.jena.irix.SetupJenaIRI; public class iri { public static void main(String... args) { IRIFactory iriFactory = SetupJenaIRI.iriCheckerFactory() ; boolean first = true ; for ( String iriStr : args ) { if ( iriStr.startsWith("<") && iriStr.endsWith(">") ) iriStr = iriStr.substring(1, iriStr.length()-1) ; if ( ! first ) System.out.println() ; first = false ; IRI iri = iriFactory.create(iriStr) ; System.out.println(iriStr + " ==> "+iri) ; if ( iri.isRelative() ) System.out.println("Relative: "+iri.isRelative()) ; Iterator<Violation> vIter = iri.violations(true) ; for ( ; vIter.hasNext() ; ) { System.out.println(vIter.next().getShortMessage()) ; } } } }
[ "andy@apache.org" ]
andy@apache.org
f7d24f650e967de28c0b0ce55776587866a78e82
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
/crash-reproduction-new-fitness/results/MATH-78b-3-20-Single_Objective_GGA-IntegrationSingleObjective-BasicBlockCoverage-opt/org/apache/commons/math/ode/events/EventState_ESTest_scaffolding.java
5bf4a9299eaf95b07cbcaf55288a0baff4f0ec65
[ "MIT", "CC-BY-4.0" ]
permissive
STAMP-project/Botsing-basic-block-coverage-application
6c1095c6be945adc0be2b63bbec44f0014972793
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
refs/heads/master
2022-07-28T23:05:55.253779
2022-04-20T13:54:11
2022-04-20T13:54:11
285,771,370
0
0
null
null
null
null
UTF-8
Java
false
false
6,607
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Fri Oct 29 06:55:30 UTC 2021 */ package org.apache.commons.math.ode.events; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import static org.evosuite.shaded.org.mockito.Mockito.*; @EvoSuiteClassExclude public class EventState_ESTest_scaffolding { @org.junit.Rule public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); @BeforeClass public static void initEvoSuiteFramework() { org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.math.ode.events.EventState"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.Runtime.getInstance().resetRuntime(); try { initMocksToAvoidTimeoutsInTheTests(); } catch(ClassNotFoundException e) {} } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(EventState_ESTest_scaffolding.class.getClassLoader() , "org.apache.commons.math.ode.DerivativeException", "org.apache.commons.math.MathException", "org.apache.commons.math.linear.ArrayRealVectorTest$RealVectorTestImpl", "org.apache.commons.math.ConvergenceException", "org.apache.commons.math.linear.RealMatrixImplTest$SetVisitor", "org.apache.commons.math.analysis.solvers.UnivariateRealSolver", "org.apache.commons.math.linear.RealMatrixImplTest$GetVisitor", "org.apache.commons.math.analysis.solvers.UnivariateRealSolverImpl", "org.apache.commons.math.util.OpenIntToDoubleHashMap", "org.apache.commons.math.ode.events.EventState$1", "org.apache.commons.math.analysis.UnivariateRealFunction", "org.apache.commons.math.linear.RealMatrix", "org.apache.commons.math.ode.events.EventException", "org.apache.commons.math.ode.sampling.DummyStepInterpolator", "org.apache.commons.math.ode.events.EventHandler", "org.apache.commons.math.linear.DefaultRealMatrixChangingVisitor", "org.apache.commons.math.ode.nonstiff.StepProblem", "org.apache.commons.math.linear.SparseRealVectorTest", "org.apache.commons.math.linear.ArrayRealVectorTest", "org.apache.commons.math.ode.TestProblem4$Bounce", "org.apache.commons.math.util.CompositeFormat", "org.apache.commons.math.ConvergingAlgorithm", "org.apache.commons.math.linear.SparseRealVector", "org.apache.commons.math.ode.sampling.StepInterpolator", "org.apache.commons.math.MathRuntimeException", "org.apache.commons.math.ode.FirstOrderDifferentialEquations", "org.apache.commons.math.linear.ArrayRealVector", "org.apache.commons.math.MathRuntimeException$1", "org.apache.commons.math.MathRuntimeException$2", "org.apache.commons.math.MathRuntimeException$3", "org.apache.commons.math.MathRuntimeException$4", "org.apache.commons.math.ode.AbstractIntegrator$EndTimeChecker", "org.apache.commons.math.MathRuntimeException$5", "org.apache.commons.math.MathRuntimeException$6", "org.apache.commons.math.MathRuntimeException$7", "org.apache.commons.math.MathRuntimeException$8", "org.apache.commons.math.MathRuntimeException$10", "org.apache.commons.math.MathRuntimeException$9", "org.apache.commons.math.linear.Array2DRowRealMatrixTest$SetVisitor", "org.apache.commons.math.linear.RealMatrixImpl", "org.apache.commons.math.linear.SparseRealVectorTest$SparseRealVectorTestImpl", "org.apache.commons.math.linear.DecompositionSolver", "org.apache.commons.math.linear.RealVectorFormat", "org.apache.commons.math.linear.AnyMatrix", "org.apache.commons.math.ode.sampling.NordsieckStepInterpolator", "org.apache.commons.math.MaxIterationsExceededException", "org.apache.commons.math.linear.Array2DRowRealMatrix", "org.apache.commons.math.linear.RealMatrixPreservingVisitor", "org.apache.commons.math.ode.sampling.AbstractStepInterpolator", "org.apache.commons.math.ode.sampling.DummyStepInterpolatorTest$BadStepInterpolator", "org.apache.commons.math.ode.events.EventState", "org.apache.commons.math.ode.TestProblem4$Stop", "org.apache.commons.math.linear.SparseRealMatrix", "org.apache.commons.math.linear.NonSquareMatrixException", "org.apache.commons.math.linear.BlockRealMatrixTest$GetVisitor", "org.apache.commons.math.linear.MatrixVisitorException", "org.apache.commons.math.FunctionEvaluationException", "org.apache.commons.math.linear.MatrixIndexException", "org.apache.commons.math.linear.AbstractRealMatrix", "org.apache.commons.math.linear.DefaultRealMatrixPreservingVisitor", "org.apache.commons.math.analysis.solvers.BrentSolver", "org.apache.commons.math.linear.BlockRealMatrix", "org.apache.commons.math.linear.OpenMapRealVector", "org.apache.commons.math.ConvergingAlgorithmImpl", "org.apache.commons.math.linear.InvalidMatrixException", "org.apache.commons.math.linear.RealVector", "org.apache.commons.math.linear.RealMatrixChangingVisitor", "org.apache.commons.math.linear.Array2DRowRealMatrixTest$GetVisitor", "org.apache.commons.math.linear.OpenMapRealMatrix", "org.apache.commons.math.linear.BlockRealMatrixTest$SetVisitor" ); } private static void initMocksToAvoidTimeoutsInTheTests() throws ClassNotFoundException { mock(Class.forName("org.apache.commons.math.ode.events.EventHandler", false, EventState_ESTest_scaffolding.class.getClassLoader())); } }
[ "pderakhshanfar@serg2.ewi.tudelft.nl" ]
pderakhshanfar@serg2.ewi.tudelft.nl
560fdd00691941cf5ca31c78a066997c78c837da
e26a8434566b1de6ea6cbed56a49fdb2abcba88b
/model-common-types/src/generated/java/com/prowidesoftware/swift/model/mx/dic/ProprietaryStatusJustification.java
26526ea89dd9fa77805ff20f57b708bb758f553c
[ "Apache-2.0" ]
permissive
adilkangerey/prowide-iso20022
6476c9eb8fafc1b1c18c330f606b5aca7b8b0368
3bbbd6804eb9dc4e1440680e5f9f7a1726df5a61
refs/heads/master
2023-09-05T21:41:47.480238
2021-10-03T20:15:26
2021-10-03T20:15:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,261
java
package com.prowidesoftware.swift.model.mx.dic; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; /** * Defines proprietary reason to reject a transaction. * * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ProprietaryStatusJustification", propOrder = { "prtryStsRsn", "rsn" }) public class ProprietaryStatusJustification { @XmlElement(name = "PrtryStsRsn", required = true) protected String prtryStsRsn; @XmlElement(name = "Rsn", required = true) protected String rsn; /** * Gets the value of the prtryStsRsn property. * * @return * possible object is * {@link String } * */ public String getPrtryStsRsn() { return prtryStsRsn; } /** * Sets the value of the prtryStsRsn property. * * @param value * allowed object is * {@link String } * */ public ProprietaryStatusJustification setPrtryStsRsn(String value) { this.prtryStsRsn = value; return this; } /** * Gets the value of the rsn property. * * @return * possible object is * {@link String } * */ public String getRsn() { return rsn; } /** * Sets the value of the rsn property. * * @param value * allowed object is * {@link String } * */ public ProprietaryStatusJustification setRsn(String value) { this.rsn = value; return this; } @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE); } @Override public boolean equals(Object that) { return EqualsBuilder.reflectionEquals(this, that); } @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } }
[ "sebastian@prowidesoftware.com" ]
sebastian@prowidesoftware.com
276998173cfa52a3d1d36e07d45dcd582347032e
88551b526bdcd1f6ffdba032d3e6f8daa81d66eb
/src/main/java/lobotomyMod/relic/toolAbnormality/AspirationHeart.java
833188a0efc57dc0816785b4df2cc718d6197a08
[]
no_license
HOYKJ/Lobotomy-Mod
bf04be1275e13a3fba68dd822c4b5dd7be937549
b1a5cfab578c0f92ae13b5332847bb9d4f7c3bdd
refs/heads/master
2021-10-25T02:34:31.525819
2021-10-21T13:38:29
2021-10-21T13:38:29
224,196,182
0
0
null
null
null
null
UTF-8
Java
false
false
3,509
java
package lobotomyMod.relic.toolAbnormality; import com.megacrit.cardcrawl.actions.common.DrawCardAction; import com.megacrit.cardcrawl.dungeons.AbstractDungeon; import com.megacrit.cardcrawl.monsters.AbstractMonster; import com.megacrit.cardcrawl.relics.AbstractRelic; import lobotomyMod.card.relicCard.AbstractLobotomyRelicCard; import lobotomyMod.card.relicCard.AspirationHeartRelic; import lobotomyMod.monster.Ordeal.AbstractOrdealMonster; import java.lang.reflect.Field; /** * @author hoykj */ public class AspirationHeart extends AbstractLobotomyAbnRelic { public static final String ID = "AspirationHeart"; private boolean killed = true; public AspirationHeart() { super("AspirationHeart", RelicTier.COMMON, LandingSound.MAGICAL); } @Override public void onEquip() { AbstractDungeon.player.increaseMaxHp(10, true); this.killed = true; } @Override public void atBattleStart() { super.atBattleStart(); // if(AbstractDungeon.getCurrRoom().monsters.monsters.get(0) instanceof AbstractOrdealMonster){ // return; // } // if(!this.killed){ // AbstractDungeon.player.maxHealth /= 2.0F; // if(AbstractDungeon.player.currentHealth > AbstractDungeon.player.maxHealth){ // AbstractDungeon.player.currentHealth = AbstractDungeon.player.maxHealth; // } // AbstractDungeon.player.healthBarUpdatedEvent(); // } this.killed = false; } @Override public void onMonsterDeath(AbstractMonster m) { super.onMonsterDeath(m); this.killed = true; AbstractDungeon.actionManager.addToBottom(new DrawCardAction(AbstractDungeon.player, 1)); } @Override public void onVictory() { super.onVictory(); if (!this.killed) { AbstractDungeon.player.maxHealth /= 2.0F; if (AbstractDungeon.player.currentHealth > AbstractDungeon.player.maxHealth) { AbstractDungeon.player.currentHealth = AbstractDungeon.player.maxHealth; } AbstractDungeon.player.healthBarUpdatedEvent(); this.killed = true; } } @Override public void update() { super.update(); if(AbstractDungeon.screen == AbstractDungeon.CurrentScreen.COMBAT_REWARD){ try { Field smoke = AbstractDungeon.combatRewardScreen.getClass().getDeclaredField("smoke"); smoke.setAccessible(true); if((boolean)smoke.get(AbstractDungeon.combatRewardScreen)) { if (!this.killed) { AbstractDungeon.player.maxHealth /= 2.0F; if (AbstractDungeon.player.currentHealth > AbstractDungeon.player.maxHealth) { AbstractDungeon.player.currentHealth = AbstractDungeon.player.maxHealth; } AbstractDungeon.player.healthBarUpdatedEvent(); this.killed = true; } } } catch (NoSuchFieldException | IllegalAccessException e) { e.printStackTrace(); } } } @Override public AbstractLobotomyRelicCard getCard() { return new AspirationHeartRelic(); } public String getUpdatedDescription() { return this.DESCRIPTIONS[0]; } public AbstractRelic makeCopy() { return new AspirationHeart(); } }
[ "1500959719@qq.com" ]
1500959719@qq.com
35f137b6088dee4165002e4697f31c6d1b4e6ad8
4abd603f82fdfa5f5503c212605f35979b77c406
/html/Programs/hw10/ebf5cbe831ed38a273545785a6fd6bad/FindNeighbors.java
15f60699060a449f41c85ca9b0481a692d5e545a
[]
no_license
dn070017/1042-PDSA
b23070f51946c8ac708d3ab9f447ab8185bd2a34
5e7d7b1b2c9d751a93de9725316aa3b8f59652e6
refs/heads/master
2020-03-20T12:13:43.229042
2018-06-15T01:00:48
2018-06-15T01:00:48
137,424,305
0
0
null
null
null
null
UTF-8
Java
false
false
3,465
java
import static java.lang.Math.abs; public class FindNeighbors { private Node root; // DO NOT MODIFY THE CONSTRUCTOR! // private MaxPQ<Point2D> pq = new MaxPQ<Point2D>(); // private MaxPQ<Double> dpq = new MaxPQ<Double>(); private BST<Double, Point2D> dpq = new BST<Double, Point2D>(); public FindNeighbors() { } // TODO // please use the Point2D from algs4.jar private class Node { private Point2D p; // associated data private Node left, right; // left and right subtrees private boolean vertical = true; private int N; public Node(Point2D p, Node left, Node right, boolean vertical) { this.p = p; this.left = left; this.right = right; this.vertical = vertical; } } public void init(Point2D[] points) { for (int i = 0; i < points.length; i++) { root = doInsert(root, points[i], true); } return; } private Node doInsert(Node node, Point2D p, boolean vertical) { if (node == null) { return new Node(p, null, null, vertical); } if (p.equals(node.p)) { return node; } if (isSmallerThanPointInNode(p, node)) { node.left = doInsert(node.left, p, !node.vertical); } else { node.right = doInsert(node.right, p, !node.vertical); } node.N = 1 + node.left.N + node.right.N; return node; } private boolean isSmallerThanPointInNode(Point2D p, Node node) { int cmp; if (node.vertical) { cmp = Point2D.X_ORDER.compare(p, node.p); } else { cmp = Point2D.Y_ORDER.compare(p, node.p); } return (cmp < 0); } // TODO // the result should be sorted accordingly to their distances to the query, from small to large // please use the Point2D from algs4.jar public Point2D[] query(Point2D point, int k) { nearestpoint(root, point, k); Point2D[] result = new Point2D[k]; for (int i = 0; i < k; i++) { double key = dpq.max(); result[k-1-i] = dpq.get(key); dpq.deleteMax();; } return result; } private void nearestpoint(Node node, Point2D query, int target) { double dist = node.p.distanceTo(query); dpq.put(dist, node.p); if (dpq.size() > target) { dpq.deleteMax(); } if (isSmallerThanPointInNode(query, node)) { nearestpoint(node.left, query, target); double distv; if (node.vertical) { distv = abs(query.x() - node.p.x()); } else { distv = abs(query.y() - node.p.y()); } if (dpq.max() > distv || dpq.size() < target) { nearestpoint(node.right, query, target); } }else{ nearestpoint(node.right, query, target); double distv; if (node.vertical) { distv = abs(query.x() - node.p.x()); } else { distv = abs(query.y() - node.p.y()); } if (dpq.max() > distv || dpq.size() < target) { nearestpoint(node.left, query, target); } } } }
[ "dn070017@gmail.com" ]
dn070017@gmail.com
00b2625356972cebc45989450e3e5296cf25de90
51d3d90be271a50a2f5d12a2726ffb1cc827824f
/src/main/java/com/deloitte/sample/integration/demo/publisher/tracking/TrackingSample.java
91f641c7d5ce12455b92688ecf8b8584a1c0a6bd
[]
no_license
rashmirao156/accelerator-transform-publish
051e9f8ba91c542e45614e17eadffe5fc4799fc3
d153c2ee9b4deb2856ab7471d9c3bcc354f489ea
refs/heads/master
2020-04-22T09:58:57.048142
2019-03-19T06:21:43
2019-03-19T06:21:43
170,289,792
0
0
null
null
null
null
UTF-8
Java
false
false
931
java
package com.deloitte.sample.integration.demo.publisher.tracking; import java.io.Serializable; public class TrackingSample implements Serializable { private String id; public String getTrackingStatus() { return trackingStatus; } public void setTrackingStatus(String trackingStatus) { this.trackingStatus = trackingStatus; } private String trackingStatus; public BusinessData getBusinessData() { return businessData; } public void setBusinessData(BusinessData businessData) { this.businessData = businessData; } private BusinessData businessData; public String getId() { return id; } public void setId(String id) { this.id = id; } @Override public String toString() { return "TrackingSample{" + "id='" + id + '\'' + ", trackingStatus='" + trackingStatus + '\'' + ", businessData=" + businessData + '}'; } }
[ "rashmirao156@gmail.com" ]
rashmirao156@gmail.com