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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
912200d95d1d75ee63ca7a2d670a33791570fddf
|
6bac1a560bf008cb2d898438050d720653ce628a
|
/telekom/Siebel/gensrc/com/siebel/ordermanagement/quote/data/ListOfQuoteItem.java
|
18aa09ec094c34d618d128edee22bc43bd446626
|
[] |
no_license
|
vkscorpio3/TelekomPOC
|
8ff40774bbbfc6868b4a3f84a971d972b9dc9ab7
|
c437ef7c30e93ea24c1d8acc0110b985401d049b
|
refs/heads/master
| 2020-03-08T16:54:42.639312
| 2017-08-26T22:25:25
| 2017-08-26T22:25:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,965
|
java
|
package com.siebel.ordermanagement.quote.data;
import java.io.Serializable;
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>Java class for ListOfQuoteItem complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ListOfQuoteItem">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="QuoteItem" type="{http://siebel.com/OrderManagement/Quote/Data}QuoteItem" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ListOfQuoteItem", propOrder = {
"quoteItem"
})
public class ListOfQuoteItem
implements Serializable
{
@XmlElement(name = "QuoteItem")
protected List<QuoteItem> quoteItem;
/**
* Gets the value of the quoteItem 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 quoteItem property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getQuoteItem().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link QuoteItem }
*
*
*/
public List<QuoteItem> getQuoteItem() {
if (quoteItem == null) {
quoteItem = new ArrayList<QuoteItem>();
}
return this.quoteItem;
}
}
|
[
"vivek.singh4@techmahindra.com"
] |
vivek.singh4@techmahindra.com
|
51277fc781648c51f33805d9d0a446be9ae73cca
|
59a1c9a75f6d82a8872499bee3f4c0e62e4cbb99
|
/src/com/javarush/test/level15/lesson12/home04/Sun.java
|
1f8d081b63fdc3125939947b11f37729e1ea8f40
|
[] |
no_license
|
Mistes/MyRep
|
9dbfcfc391510be739dca19ced3eafcc52a43444
|
1700a6f1c04f31a40a9dc1312f7a9125f61e7119
|
refs/heads/master
| 2020-04-06T04:12:20.857417
| 2016-10-11T08:01:16
| 2016-10-11T08:01:16
| 57,094,487
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 350
|
java
|
package com.javarush.test.level15.lesson12.home04;
/**
* Created by Администратор on 26.05.2016.
*/
public class Sun implements Planet
{
private static Sun instance;
private Sun(){}
public static Sun getInstance(){
if (instance ==null){
instance = new Sun();
}
return instance;
}
}
|
[
"kurilenko.dm@gmail.com"
] |
kurilenko.dm@gmail.com
|
f748c6bc8935ecb2f1bd946e834711da5203c1ad
|
8f78ab591f8c0ae0c19a88b2460bb8b3460993e8
|
/src/main/java/com/eshare/abstractfactory/example5/XmlDetailDAOImpl.java
|
242e423f3e87ab2c44033b07dd27c8cca53fea77
|
[] |
no_license
|
EvanLeung08/designPattern
|
ccab257aceddd32ff9d0c68f1309c59ba1de1931
|
d72c3b2279b62c5cdfe834f79b2cc9e1645243b0
|
refs/heads/master
| 2021-09-02T06:31:44.382749
| 2017-12-31T02:41:33
| 2017-12-31T02:41:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 203
|
java
|
package com.eshare.abstractfactory.example5;
public class XmlDetailDAOImpl implements OrderDetailDAO{
public void saveOrderDetail() {
System.out.println("now in XmlDAOImpl2 saveOrderDetail");
}
}
|
[
"10856214@163.com"
] |
10856214@163.com
|
8e1776de9040eea49737dc2b4dad8a5cb99857e7
|
d8396830276efc393ebed8a0fddcdb0488d2ddd3
|
/jOOQ-examples/jOOQ-testcontainers-flyway-example/src/main/java/org/jooq/example/testcontainersflyway/db/tables/PaymentP2007_02.java
|
69a29681a503c529f48dd95f106c9ff460068b2d
|
[
"Apache-2.0"
] |
permissive
|
mabroukb/jOOQ
|
f741dc4e50270e7ae447cce274bb893f8fc127f0
|
ac6a63dab2f7d61c2a39228409b4afa2a11200ca
|
refs/heads/main
| 2022-02-22T19:15:31.334294
| 2022-02-02T15:06:10
| 2022-02-02T15:06:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| true
| 6,898
|
java
|
/*
* This file is generated by jOOQ.
*/
package org.jooq.example.testcontainersflyway.db.tables;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import org.jooq.Check;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row6;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.example.testcontainersflyway.db.Indexes;
import org.jooq.example.testcontainersflyway.db.Keys;
import org.jooq.example.testcontainersflyway.db.Public;
import org.jooq.example.testcontainersflyway.db.tables.records.PaymentP2007_02Record;
import org.jooq.impl.DSL;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PaymentP2007_02 extends TableImpl<PaymentP2007_02Record> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.payment_p2007_02</code>
*/
public static final PaymentP2007_02 PAYMENT_P2007_02 = new PaymentP2007_02();
/**
* The class holding records for this type
*/
@Override
public Class<PaymentP2007_02Record> getRecordType() {
return PaymentP2007_02Record.class;
}
/**
* The column <code>public.payment_p2007_02.payment_id</code>.
*/
public final TableField<PaymentP2007_02Record, Long> PAYMENT_ID = createField(DSL.name("payment_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column <code>public.payment_p2007_02.customer_id</code>.
*/
public final TableField<PaymentP2007_02Record, Long> CUSTOMER_ID = createField(DSL.name("customer_id"), SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>public.payment_p2007_02.staff_id</code>.
*/
public final TableField<PaymentP2007_02Record, Long> STAFF_ID = createField(DSL.name("staff_id"), SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>public.payment_p2007_02.rental_id</code>.
*/
public final TableField<PaymentP2007_02Record, Long> RENTAL_ID = createField(DSL.name("rental_id"), SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>public.payment_p2007_02.amount</code>.
*/
public final TableField<PaymentP2007_02Record, BigDecimal> AMOUNT = createField(DSL.name("amount"), SQLDataType.NUMERIC(5, 2).nullable(false), this, "");
/**
* The column <code>public.payment_p2007_02.payment_date</code>.
*/
public final TableField<PaymentP2007_02Record, LocalDateTime> PAYMENT_DATE = createField(DSL.name("payment_date"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "");
private PaymentP2007_02(Name alias, Table<PaymentP2007_02Record> aliased) {
this(alias, aliased, null);
}
private PaymentP2007_02(Name alias, Table<PaymentP2007_02Record> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>public.payment_p2007_02</code> table reference
*/
public PaymentP2007_02(String alias) {
this(DSL.name(alias), PAYMENT_P2007_02);
}
/**
* Create an aliased <code>public.payment_p2007_02</code> table reference
*/
public PaymentP2007_02(Name alias) {
this(alias, PAYMENT_P2007_02);
}
/**
* Create a <code>public.payment_p2007_02</code> table reference
*/
public PaymentP2007_02() {
this(DSL.name("payment_p2007_02"), null);
}
public <O extends Record> PaymentP2007_02(Table<O> child, ForeignKey<O, PaymentP2007_02Record> key) {
super(child, key, PAYMENT_P2007_02);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public List<Index> getIndexes() {
return Arrays.asList(Indexes.IDX_FK_PAYMENT_P2007_02_CUSTOMER_ID, Indexes.IDX_FK_PAYMENT_P2007_02_STAFF_ID);
}
@Override
public Identity<PaymentP2007_02Record, Long> getIdentity() {
return (Identity<PaymentP2007_02Record, Long>) super.getIdentity();
}
@Override
public List<ForeignKey<PaymentP2007_02Record, ?>> getReferences() {
return Arrays.asList(Keys.PAYMENT_P2007_02__PAYMENT_P2007_02_CUSTOMER_ID_FKEY, Keys.PAYMENT_P2007_02__PAYMENT_P2007_02_STAFF_ID_FKEY, Keys.PAYMENT_P2007_02__PAYMENT_P2007_02_RENTAL_ID_FKEY);
}
private transient Customer _customer;
private transient Staff _staff;
private transient Rental _rental;
/**
* Get the implicit join path to the <code>public.customer</code> table.
*/
public Customer customer() {
if (_customer == null)
_customer = new Customer(this, Keys.PAYMENT_P2007_02__PAYMENT_P2007_02_CUSTOMER_ID_FKEY);
return _customer;
}
/**
* Get the implicit join path to the <code>public.staff</code> table.
*/
public Staff staff() {
if (_staff == null)
_staff = new Staff(this, Keys.PAYMENT_P2007_02__PAYMENT_P2007_02_STAFF_ID_FKEY);
return _staff;
}
/**
* Get the implicit join path to the <code>public.rental</code> table.
*/
public Rental rental() {
if (_rental == null)
_rental = new Rental(this, Keys.PAYMENT_P2007_02__PAYMENT_P2007_02_RENTAL_ID_FKEY);
return _rental;
}
@Override
public List<Check<PaymentP2007_02Record>> getChecks() {
return Arrays.asList(
Internal.createCheck(this, DSL.name("payment_p2007_02_payment_date_check"), "(((payment_date >= '2007-02-01 00:00:00'::timestamp without time zone) AND (payment_date < '2007-03-01 00:00:00'::timestamp without time zone)))", true)
);
}
@Override
public PaymentP2007_02 as(String alias) {
return new PaymentP2007_02(DSL.name(alias), this);
}
@Override
public PaymentP2007_02 as(Name alias) {
return new PaymentP2007_02(alias, this);
}
/**
* Rename this table
*/
@Override
public PaymentP2007_02 rename(String name) {
return new PaymentP2007_02(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public PaymentP2007_02 rename(Name name) {
return new PaymentP2007_02(name, null);
}
// -------------------------------------------------------------------------
// Row6 type methods
// -------------------------------------------------------------------------
@Override
public Row6<Long, Long, Long, Long, BigDecimal, LocalDateTime> fieldsRow() {
return (Row6) super.fieldsRow();
}
}
|
[
"lukas.eder@gmail.com"
] |
lukas.eder@gmail.com
|
b0f53e5a2f155d484226d158376937adf3e4a92a
|
a7c85a1e89063038e17ed2fa0174edf14dc9ed56
|
/spring-aop-perf-tests/src/main/java/coas/perf/TargetClass150/Advice121.java
|
ed36385b19d90d3e1cbf8cb8a53c191ac04e891f
|
[] |
no_license
|
pmaslankowski/java-contracts
|
28b1a3878f68fdd759d88b341c8831716533d682
|
46518bb9a83050956e631faa55fcdf426589830f
|
refs/heads/master
| 2021-03-07T13:15:28.120769
| 2020-09-07T20:06:31
| 2020-09-07T20:06:31
| 246,267,189
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 738
|
java
|
package coas.perf.TargetClass150;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;
import coas.perf.TargetClass150.Subject150;
@Aspect
@Component("Advice_150_121")
public class Advice121 {
private int counter = 0;
@Around("execution(* Subject150.*(..))")
public Object onTarget(ProceedingJoinPoint joinPoint) throws Throwable {
int res = (int) joinPoint.proceed();
for (int i=0; i < 1000; i++) {
if (res % 2 == 0) {
res /= 2;
} else {
res = 2 * res + 1;
}
}
return res;
}
}
|
[
"pmaslankowski@gmail.com"
] |
pmaslankowski@gmail.com
|
6b696bece5dad63428df5cd7c109763929a9de66
|
56456387c8a2ff1062f34780b471712cc2a49b71
|
/com/google/android/gms/games/internal/api/EventsImpl$2.java
|
0d8e2b5160e044ac22efa8ac67abb90bdc577b99
|
[] |
no_license
|
nendraharyo/presensimahasiswa-sourcecode
|
55d4b8e9f6968eaf71a2ea002e0e7f08d16c5a50
|
890fc86782e9b2b4748bdb9f3db946bfb830b252
|
refs/heads/master
| 2020-05-21T11:21:55.143420
| 2019-05-10T19:03:56
| 2019-05-10T19:03:56
| 186,022,425
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 737
|
java
|
package com.google.android.gms.games.internal.api;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.games.internal.GamesClientImpl;
class EventsImpl$2
extends EventsImpl.LoadImpl
{
EventsImpl$2(EventsImpl paramEventsImpl, GoogleApiClient paramGoogleApiClient, boolean paramBoolean)
{
super(paramGoogleApiClient, null);
}
public void zza(GamesClientImpl paramGamesClientImpl)
{
boolean bool = this.zzaFO;
paramGamesClientImpl.zzd(this, bool);
}
}
/* Location: C:\Users\haryo\Desktop\enjarify-master\presensi-enjarify.jar!\com\google\android\gms\games\internal\api\EventsImpl$2.class
* Java compiler version: 5 (49.0)
* JD-Core Version: 0.7.1
*/
|
[
"haryo.nendra@gmail.com"
] |
haryo.nendra@gmail.com
|
612f6881b21af4bb4a759c1094dfca0432b26c23
|
a00326c0e2fc8944112589cd2ad638b278f058b9
|
/src/main/java/000/135/322/CWE369_Divide_by_Zero__float_Environment_divide_75a.java
|
348df9307df6f71da374746b51b6574ade8440fa
|
[] |
no_license
|
Lanhbao/Static-Testing-for-Juliet-Test-Suite
|
6fd3f62713be7a084260eafa9ab221b1b9833be6
|
b095b11c7cb6d4a5bb2b76181e35d6ee00e96e68
|
refs/heads/master
| 2020-08-24T13:34:04.004149
| 2019-10-25T09:26:00
| 2019-10-25T09:26:00
| 216,822,684
| 0
| 1
| null | 2019-11-08T09:51:54
| 2019-10-22T13:37:13
|
Java
|
UTF-8
|
Java
| false
| false
| 7,497
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE369_Divide_by_Zero__float_Environment_divide_75a.java
Label Definition File: CWE369_Divide_by_Zero__float.label.xml
Template File: sources-sinks-75a.tmpl.java
*/
/*
* @description
* CWE: 369 Divide by zero
* BadSource: Environment Read data from an environment variable
* GoodSource: A hardcoded non-zero number (two)
* Sinks: divide
* GoodSink: Check for zero before dividing
* BadSink : Dividing by a value that may be zero
* Flow Variant: 75 Data flow: data passed in a serialized object from one method to another in different source files in the same package
*
* */
import java.io.ByteArrayOutputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import java.io.IOException;
import java.util.logging.Level;
public class CWE369_Divide_by_Zero__float_Environment_divide_75a extends AbstractTestCase
{
public void bad() throws Throwable
{
float data;
data = -1.0f; /* Initialize data */
/* get environment variable ADD */
/* POTENTIAL FLAW: Read data from an environment variable */
{
String stringNumber = System.getenv("ADD");
if (stringNumber != null)
{
try
{
data = Float.parseFloat(stringNumber.trim());
}
catch (NumberFormatException exceptNumberFormat)
{
IO.logger.log(Level.WARNING, "Number format exception parsing data from string", exceptNumberFormat);
}
}
}
/* serialize data to a byte array */
ByteArrayOutputStream streamByteArrayOutput = null;
ObjectOutput outputObject = null;
try
{
streamByteArrayOutput = new ByteArrayOutputStream() ;
outputObject = new ObjectOutputStream(streamByteArrayOutput) ;
outputObject.writeObject(data);
byte[] dataSerialized = streamByteArrayOutput.toByteArray();
(new CWE369_Divide_by_Zero__float_Environment_divide_75b()).badSink(dataSerialized );
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "IOException in serialization", exceptIO);
}
finally
{
/* clean up stream writing objects */
try
{
if (outputObject != null)
{
outputObject.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing ObjectOutputStream", exceptIO);
}
try
{
if (streamByteArrayOutput != null)
{
streamByteArrayOutput.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing ByteArrayOutputStream", exceptIO);
}
}
}
public void good() throws Throwable
{
goodG2B();
goodB2G();
}
/* goodG2B() - use GoodSource and BadSink */
private void goodG2B() throws Throwable
{
float data;
/* FIX: Use a hardcoded number that won't a divide by zero */
data = 2.0f;
/* serialize data to a byte array */
ByteArrayOutputStream streamByteArrayOutput = null;
ObjectOutput outputObject = null;
try
{
streamByteArrayOutput = new ByteArrayOutputStream() ;
outputObject = new ObjectOutputStream(streamByteArrayOutput) ;
outputObject.writeObject(data);
byte[] dataSerialized = streamByteArrayOutput.toByteArray();
(new CWE369_Divide_by_Zero__float_Environment_divide_75b()).goodG2BSink(dataSerialized );
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "IOException in serialization", exceptIO);
}
finally
{
/* clean up stream writing objects */
try
{
if (outputObject != null)
{
outputObject.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing ObjectOutputStream", exceptIO);
}
try
{
if (streamByteArrayOutput != null)
{
streamByteArrayOutput.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing ByteArrayOutputStream", exceptIO);
}
}
}
/* goodB2G() - use BadSource and GoodSink */
private void goodB2G() throws Throwable
{
float data;
data = -1.0f; /* Initialize data */
/* get environment variable ADD */
/* POTENTIAL FLAW: Read data from an environment variable */
{
String stringNumber = System.getenv("ADD");
if (stringNumber != null)
{
try
{
data = Float.parseFloat(stringNumber.trim());
}
catch (NumberFormatException exceptNumberFormat)
{
IO.logger.log(Level.WARNING, "Number format exception parsing data from string", exceptNumberFormat);
}
}
}
/* serialize data to a byte array */
ByteArrayOutputStream streamByteArrayOutput = null;
ObjectOutput outputObject = null;
try
{
streamByteArrayOutput = new ByteArrayOutputStream() ;
outputObject = new ObjectOutputStream(streamByteArrayOutput) ;
outputObject.writeObject(data);
byte[] dataSerialized = streamByteArrayOutput.toByteArray();
(new CWE369_Divide_by_Zero__float_Environment_divide_75b()).goodB2GSink(dataSerialized );
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "IOException in serialization", exceptIO);
}
finally
{
/* clean up stream writing objects */
try
{
if (outputObject != null)
{
outputObject.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing ObjectOutputStream", exceptIO);
}
try
{
if (streamByteArrayOutput != null)
{
streamByteArrayOutput.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing ByteArrayOutputStream", exceptIO);
}
}
}
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"anhtluet12@gmail.com"
] |
anhtluet12@gmail.com
|
6e932e6d2f6412f43428e364753cb55b6a60f076
|
bdba19cc0346b5719e200c74159896391117723f
|
/tps/TPSAdmn/src/igc/tech/com/dao/RegionDao.java
|
32172da1a7c102f60b5382bf956b33362d2d6a0a
|
[] |
no_license
|
tilakpeace/tps1
|
181f2812b640cf2f28624a825047c19ad01db28a
|
dd164199c635dd6783f63248759de0073750491e
|
refs/heads/master
| 2021-01-22T03:06:19.769511
| 2017-02-06T15:41:04
| 2017-02-06T15:41:04
| 81,099,126
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 219
|
java
|
package igc.tech.com.dao;
import java.util.List;
public interface RegionDao {
public List procRegion(String regionId, String regionName,
String countryId, String user, String flag);
}
|
[
"tilakpeace0000@gmail.com"
] |
tilakpeace0000@gmail.com
|
5358ffe88bdb5f2be767faf26128ca2f03ce2144
|
13200e547eec0d67ff9da9204c72ab26a93f393d
|
/src/com/android/launcher3/Workspace$10.java
|
b1c3863a468fb1d783187cb8aa528f6e61e48033
|
[] |
no_license
|
emtee40/DecompiledPixelLauncher
|
d72d107eaafb42896aa903b9f0f34f5f09f5a15c
|
fb954b108a7bf3377da5c28fd9a2f22e1b6990ea
|
refs/heads/master
| 2020-04-03T03:18:06.239632
| 2018-01-19T08:49:36
| 2018-01-19T08:49:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 995
|
java
|
//
// Decompiled by Procyon v0.5.30
//
package com.android.launcher3;
final class Workspace$10 implements Runnable
{
final /* synthetic */ Workspace this$0;
final /* synthetic */ long val$container;
final /* synthetic */ ItemInfo val$item;
final /* synthetic */ PendingAddItemInfo val$pendingInfo;
final /* synthetic */ long val$screenId;
Workspace$10(final Workspace this$0, final PendingAddItemInfo val$pendingInfo, final long val$container, final long val$screenId, final ItemInfo val$item) {
this.this$0 = this$0;
this.val$pendingInfo = val$pendingInfo;
this.val$container = val$container;
this.val$screenId = val$screenId;
this.val$item = val$item;
}
public void run() {
this.this$0.deferRemoveExtraEmptyScreen();
this.this$0.mLauncher.addPendingItem(this.val$pendingInfo, this.val$container, this.val$screenId, this.this$0.mTargetCell, this.val$item.spanX, this.val$item.spanY);
}
}
|
[
"azaidi@live.nl"
] |
azaidi@live.nl
|
2349489907c4859058270656f7470ddb927596d0
|
81b0bb3cfb2e9501f53451e7f03ec072ee2b0e13
|
/src/me/lyft/android/application/driver/VehicleService.java
|
4f9cc592715c4b994e61408c916b4879ccbc9e6c
|
[] |
no_license
|
reverseengineeringer/me.lyft.android
|
48bb85e8693ce4dab50185424d2ec51debf5c243
|
8c26caeeb54ffbde0711d3ce8b187480d84968ef
|
refs/heads/master
| 2021-01-19T02:32:03.752176
| 2016-07-19T16:30:00
| 2016-07-19T16:30:00
| 63,710,356
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,354
|
java
|
package me.lyft.android.application.driver;
import com.lyft.android.api.dto.UpdateVehicleRequestDTO;
import com.lyft.android.api.dto.VehicleDocumentsDTO;
import com.lyft.android.api.dto.VehiclesDTO;
import java.io.File;
import java.util.Iterator;
import java.util.List;
import me.lyft.android.common.Iterables;
import me.lyft.android.common.Objects;
import me.lyft.android.common.Unit;
import me.lyft.android.domain.driver.Vehicle;
import me.lyft.android.domain.driver.Vehicle.Status;
import me.lyft.android.domain.driver.VehiclesMapper;
import me.lyft.android.domain.driverdocuments.DriverDocumentsMapper;
import me.lyft.android.domain.driverdocuments.Inspection;
import me.lyft.android.domain.driverdocuments.Insurance;
import me.lyft.android.domain.driverdocuments.Registration;
import me.lyft.android.infrastructure.environment.IS3Api;
import me.lyft.android.infrastructure.lyft.ILyftApi;
import rx.Observable;
import rx.functions.Func1;
public class VehicleService
implements IVehicleService
{
private IS3Api IS3Api;
private ILyftApi lyftApi;
private Vehicle updatedVehicle;
public VehicleService(ILyftApi paramILyftApi, IS3Api paramIS3Api)
{
lyftApi = paramILyftApi;
IS3Api = paramIS3Api;
}
public Observable<Vehicle> activateDriverVehicle(final String paramString)
{
lyftApi.activateDriverVehicle(paramString).map(new Func1()
{
public Vehicle call(VehiclesDTO paramAnonymousVehiclesDTO)
{
paramAnonymousVehiclesDTO = VehiclesMapper.fromDriverVehiclesDto(paramAnonymousVehiclesDTO).iterator();
while (paramAnonymousVehiclesDTO.hasNext())
{
Vehicle localVehicle = (Vehicle)paramAnonymousVehiclesDTO.next();
if (paramString.equals(localVehicle.getId())) {
return localVehicle;
}
}
return Vehicle.empty();
}
});
}
public Observable<List<Vehicle>> getDriverVehicles()
{
lyftApi.getDriverVehicles().map(new Func1()
{
public List<Vehicle> call(VehiclesDTO paramAnonymousVehiclesDTO)
{
VehicleService.access$002(VehicleService.this, Vehicle.empty());
return VehiclesMapper.fromDriverVehiclesDto(paramAnonymousVehiclesDTO);
}
});
}
public Observable<Vehicle> getInUseOrFirstVehicle()
{
getDriverVehicles().map(new Func1()
{
public Vehicle call(List<Vehicle> paramAnonymousList)
{
Iterator localIterator = paramAnonymousList.iterator();
while (localIterator.hasNext())
{
Vehicle localVehicle = (Vehicle)localIterator.next();
if (Vehicle.Status.SELECTED.equals(localVehicle.getStatus())) {
return localVehicle;
}
}
return (Vehicle)Iterables.firstOrDefault(paramAnonymousList, Vehicle.empty());
}
});
}
public Vehicle getUpdatedVehicle()
{
return (Vehicle)Objects.firstNonNull(updatedVehicle, Vehicle.empty());
}
public Observable<Vehicle> getVehicleById(String paramString)
{
getDriverVehicles().map(new Func1()
{
public Vehicle call(List<Vehicle> paramAnonymousList)
{
Iterator localIterator = paramAnonymousList.iterator();
while (localIterator.hasNext())
{
Vehicle localVehicle = (Vehicle)localIterator.next();
if (localVehicle.getId().equals(localVehicle.getId())) {
return localVehicle;
}
}
return (Vehicle)Iterables.firstOrDefault(paramAnonymousList, Vehicle.empty());
}
});
}
public Observable<Vehicle> updateInspection(final String paramString, final Inspection paramInspection, final File paramFile)
{
IS3Api.uploadFile(paramInspection.getPhotoUploadUrl(), paramFile).flatMap(new Func1()
{
public Observable<VehiclesDTO> call(Unit paramAnonymousUnit)
{
paramAnonymousUnit = new VehicleDocumentsDTO(null, DriverDocumentsMapper.fromInspection(paramInspection), null);
return lyftApi.updateDriverVehicleDocuments(paramString, new UpdateVehicleRequestDTO(paramAnonymousUnit));
}
}).map(new Func1()
{
public Vehicle call(VehiclesDTO paramAnonymousVehiclesDTO)
{
paramAnonymousVehiclesDTO = VehiclesMapper.fromDriverVehiclesDto(paramAnonymousVehiclesDTO).iterator();
while (paramAnonymousVehiclesDTO.hasNext())
{
Vehicle localVehicle = (Vehicle)paramAnonymousVehiclesDTO.next();
if (localVehicle.getId().equals(paramString))
{
VehicleService.access$002(VehicleService.this, localVehicle);
updatedVehicle.getInspection().setPhotoFile(paramFile);
return localVehicle;
}
}
return Vehicle.empty();
}
});
}
public Observable<Vehicle> updateInsurance(final String paramString, final Insurance paramInsurance, final File paramFile)
{
IS3Api.uploadFile(paramInsurance.getPhotoUploadUrl(), paramFile).flatMap(new Func1()
{
public Observable<VehiclesDTO> call(Unit paramAnonymousUnit)
{
paramAnonymousUnit = new VehicleDocumentsDTO(DriverDocumentsMapper.fromInsurance(paramInsurance), null, null);
return lyftApi.updateDriverVehicleDocuments(paramString, new UpdateVehicleRequestDTO(paramAnonymousUnit));
}
}).map(new Func1()
{
public Vehicle call(VehiclesDTO paramAnonymousVehiclesDTO)
{
paramAnonymousVehiclesDTO = VehiclesMapper.fromDriverVehiclesDto(paramAnonymousVehiclesDTO).iterator();
while (paramAnonymousVehiclesDTO.hasNext())
{
Vehicle localVehicle = (Vehicle)paramAnonymousVehiclesDTO.next();
if (localVehicle.getId().equals(paramString))
{
VehicleService.access$002(VehicleService.this, localVehicle);
updatedVehicle.getInsurance().setPhotoFile(paramFile);
return localVehicle;
}
}
return Vehicle.empty();
}
});
}
public Observable<Vehicle> updateRegistration(final String paramString, final Registration paramRegistration, final File paramFile)
{
IS3Api.uploadFile(paramRegistration.getPhotoUploadUrl(), paramFile).flatMap(new Func1()
{
public Observable<VehiclesDTO> call(Unit paramAnonymousUnit)
{
paramAnonymousUnit = new VehicleDocumentsDTO(null, null, DriverDocumentsMapper.fromRegistration(paramRegistration));
return lyftApi.updateDriverVehicleDocuments(paramString, new UpdateVehicleRequestDTO(paramAnonymousUnit));
}
}).map(new Func1()
{
public Vehicle call(VehiclesDTO paramAnonymousVehiclesDTO)
{
paramAnonymousVehiclesDTO = VehiclesMapper.fromDriverVehiclesDto(paramAnonymousVehiclesDTO).iterator();
while (paramAnonymousVehiclesDTO.hasNext())
{
Vehicle localVehicle = (Vehicle)paramAnonymousVehiclesDTO.next();
if (localVehicle.getId().equals(paramString))
{
VehicleService.access$002(VehicleService.this, localVehicle);
updatedVehicle.getRegistration().setPhotoFile(paramFile);
return localVehicle;
}
}
return Vehicle.empty();
}
});
}
}
/* Location:
* Qualified Name: me.lyft.android.application.driver.VehicleService
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
29fcc7321a4119d107c36ab6cce7a863dec8b9e0
|
a840a5e110b71b728da5801f1f3e591f6128f30e
|
/src/main/java/com/google/security/zynamics/binnavi/Gui/MainWindow/ProjectTree/Nodes/Debugger/CDebuggerNode.java
|
56011f221aa0d2923d32e29fc8d757cad7276970
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
tpltnt/binnavi
|
0a25d2fde2c6029aeef4fcfec8eead5c8e51f4b4
|
598c361d618b2ca964d8eb319a686846ecc43314
|
refs/heads/master
| 2022-10-20T19:38:30.080808
| 2022-07-20T13:01:37
| 2022-07-20T13:01:37
| 107,143,332
| 0
| 0
|
Apache-2.0
| 2023-08-20T11:22:53
| 2017-10-16T15:02:35
|
Java
|
UTF-8
|
Java
| false
| false
| 4,178
|
java
|
/*
Copyright 2011-2016 Google Inc. All Rights Reserved.
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.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Debugger;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import com.google.common.base.Preconditions;
import com.google.security.zynamics.binnavi.CMain;
import com.google.security.zynamics.binnavi.Database.Interfaces.IDatabase;
import com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.CAbstractLazyComponent;
import com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.CAbstractNodeComponent;
import com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.CProjectTreeNode;
import com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Debugger.Component.CDebuggerNodeComponent;
import com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate;
import com.google.security.zynamics.binnavi.debug.debugger.interfaces.IDebuggerTemplateListener;
/**
* Node that represents individual debuggers in the project tree.
*/
public final class CDebuggerNode extends CProjectTreeNode<DebuggerTemplate> {
/**
* Used for serialization.
*/
private static final long serialVersionUID = 4377093985630890630L;
/**
* Icon used by this node.
*/
private static final ImageIcon ICON_DEBUGGER = new ImageIcon(
CMain.class.getResource("data/projecttreeicons/debugger3.png"));
/**
* Debugger represented by the node.
*/
private final DebuggerTemplate m_debugger;
/**
* Updates the node on relevant changes in the debugger.
*/
private final InternalDebuggerDescriptionListener m_listener =
new InternalDebuggerDescriptionListener();
/**
* Creates a new node object.
*
* @param projectTree Project tree of the main window.
* @param parentNode Parent node of this node.
* @param database Database the debugger belongs to.
* @param debugger Debugger represented by the node.
*/
public CDebuggerNode(final JTree projectTree, final DefaultMutableTreeNode parentNode,
final IDatabase database, final DebuggerTemplate debugger) {
super(projectTree, new CAbstractLazyComponent() {
@Override
protected CAbstractNodeComponent createComponent() {
return new CDebuggerNodeComponent(debugger);
}
}, new CDebuggerNodeMenuBuilder(projectTree, parentNode, null, database,
new DebuggerTemplate[] {debugger}), debugger);
Preconditions.checkNotNull(database, "IE01965: Database argument can not be null.");
m_debugger = Preconditions.checkNotNull(debugger, "IE01966: Debugger argument can not be null");
m_debugger.addListener(m_listener);
}
@Override
protected void createChildren() {
// no children
}
@Override
public void dispose() {
super.dispose();
m_debugger.removeListener(m_listener);
}
@Override
public void doubleClicked() {
// Do nothing
}
@Override
public Icon getIcon() {
return ICON_DEBUGGER;
}
@Override
public String toString() {
return m_debugger.getName();
}
/**
* Updates the node on relevant changes in the debugger.
*/
private class InternalDebuggerDescriptionListener implements IDebuggerTemplateListener {
@Override
public void changedHost(final DebuggerTemplate debugger) {
// do nothing
}
@Override
public void changedName(final DebuggerTemplate debugger) {
getTreeModel().nodeChanged(CDebuggerNode.this);
}
@Override
public void changedPort(final DebuggerTemplate debugger) {
// do nothing
}
}
}
|
[
"cblichmann@google.com"
] |
cblichmann@google.com
|
d4f329c55c32db24d75c6d426e1f7e1d9ad78865
|
6d60a8adbfdc498a28f3e3fef70366581aa0c5fd
|
/codebase/dataset/x/68_frag2.java
|
c2760112e09f41c1030375606e6f13bcf4533c18
|
[] |
no_license
|
rayhan-ferdous/code2vec
|
14268adaf9022d140a47a88129634398cd23cf8f
|
c8ca68a7a1053d0d09087b14d4c79a189ac0cf00
|
refs/heads/master
| 2022-03-09T08:40:18.035781
| 2022-02-27T23:57:44
| 2022-02-27T23:57:44
| 140,347,552
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 169
|
java
|
void write(char c) {
try {
writer.write(c);
} catch (IOException e) {
throw new WrappedIOException(e);
}
}
|
[
"aaponcseku@gmail.com"
] |
aaponcseku@gmail.com
|
b89d7e4be4284492f816f8f89d2bca8404f5455c
|
9d265892d49e97e98078f7cdba620acd33f69dd9
|
/gratewall/sjzx_wcm/src/com/gwssi/AppConstants.java
|
f65ab76f3256af05d8714f7f84abe1cb54d85369
|
[] |
no_license
|
gxlioper/collections
|
70d11d5f3e6c999d40fc9f92b1fc26e6d78bf15d
|
2458b9e260edd91d564b063072801905e0377a00
|
refs/heads/master
| 2023-06-21T22:17:49.069471
| 2021-08-10T15:43:51
| 2021-08-10T15:43:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,215
|
java
|
package com.gwssi;
/**
* 系统常量
* @author chaihw, liuhailong
*
*/
public class AppConstants {
/**
* 请求参数名:Controller。
*/
public final static String REQUEST_PARAM_NAME_CONTROLLER = "c";
/**
* 请求参数名:Method。
*/
public final static String REQUEST_PARAM_NAME_METHOD = "m";
/**
* SESSION KEY : 用户ID,对应值形如LINQY1@SZAIC。
*/
public final static String SESSION_KEY_USER_ID = "gwssi_userId";
/**
* SESSION KEY : 用户姓名,对应值形如“林其友”。
*/
public final static String SESSION_KEY_USER_NAME = "gwssi_userName";
/**
* SESSION KEY : 用户IP,对应值形如“10.1.32.70”。
*/
public final static String SESSION_KEY_USER_IP = "gwssi_userIp";
/**
* SESSION KEY :SSO用户对象。
*/
public final static String SESSION_KEY_SSO_USER = "gwssi_ssoUser";
/**
* 数据源名:应用集成。
*/
public final static String DATASOURCE_KEY_WCMOPTION = "sjw_wcm_option";
/**
* 数据源名:应用集成。
*/
public final static String DATASOURCE_KEY_YYJC = "yyjc";
/**
* 数据源名:门户新闻投稿。
*/
public final static String DATASOURCE_KEY_WCM = "wcm_db";
/**
* 数据源名:财务待办。
*/
public final static String DATASOURCE_KEY_CW = "cwdaiban";
/**
* 数据源名:浪潮待办(食品、人事、登记许可、特种设备等)。
*/
public final static String DATASOURCE_KEY_DJXK = "djxk_db";
/**
* 数据源名:门户后台数据同步数据库。
*/
public final static String DATASOURCE_KEY_WCM_SYNC = "sjw_wcm1201";
/***
* 当前页
*/
public final static String CURR_PAGE = "page";
/***
* 页显示个数
*/
public final static String PAGE_SIZE = "rows";
/***
* 栏目id
*/
public final static String DOC_CHANNEL_ID = "docChannelId";
/***
* 标题
*/
public final static String TITLE = "title";
/***
* 查询开始时间
*/
public final static String START_CREATE_TIME = "startCreateTime";
/***
* 查询开始时间
*/
public final static String END_CREATE_TIME = "endCreateTime";
/***
* 创建人
*/
public final static String CREATE_NAME = "createName";
}
|
[
"1039288191@qq.com"
] |
1039288191@qq.com
|
c7768367e263499733f2660d4e9f9cd61f40982d
|
c0fe21b86f141256c85ab82c6ff3acc56b73d3db
|
/jdfusion/src/main/java/com/jdcloud/sdk/service/jdfusion/model/GetVmImagesResponse.java
|
e1672c4491c7d84b6d0751c6db898f0295d9eb9c
|
[
"Apache-2.0"
] |
permissive
|
jdcloud-api/jdcloud-sdk-java
|
3fec9cf552693520f07b43a1e445954de60e34a0
|
bcebe28306c4ccc5b2b793e1a5848b0aac21b910
|
refs/heads/master
| 2023-07-25T07:03:36.682248
| 2023-07-25T06:54:39
| 2023-07-25T06:54:39
| 126,275,669
| 47
| 61
|
Apache-2.0
| 2023-09-07T08:41:24
| 2018-03-22T03:41:41
|
Java
|
UTF-8
|
Java
| false
| false
| 1,103
|
java
|
/*
* Copyright 2018 JDCLOUD.COM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:#www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Vm-Image
* 关于主机镜像操作的相关接口
*
* OpenAPI spec version: v1
* Contact:
*
* NOTE: This class is auto generated by the jdcloud code generator program.
*/
package com.jdcloud.sdk.service.jdfusion.model;
import com.jdcloud.sdk.service.JdcloudResponse;
/**
* 根据过滤条件,取得镜像资源的信息
*/
public class GetVmImagesResponse extends JdcloudResponse<GetVmImagesResult> implements java.io.Serializable {
private static final long serialVersionUID = 1L;
}
|
[
"wangbibo@jd.com"
] |
wangbibo@jd.com
|
f7e81eaa412f066c6d1c47e09b88df64b633bbad
|
f3ed53704451a762efb292ea78a0082deb834186
|
/jdk1.9/src/main/java/java.corba/org/omg/IOP/ServiceIdHelper.java
|
e9b9f0efef2019fbfcf3d34937bee2b9852b2155
|
[] |
no_license
|
kongzhidea/jdk-source
|
8811c193b29cc638737079fb86585124a7780118
|
edd6501bb03f6cc5dcc5c19d8de16bd7f9702afe
|
refs/heads/master
| 2020-04-01T10:53:47.271739
| 2018-10-15T16:15:12
| 2018-10-15T16:15:12
| 153,136,405
| 2
| 0
| null | 2018-10-15T15:21:34
| 2018-10-15T15:21:34
| null |
UTF-8
|
Java
| false
| false
| 1,558
|
java
|
package org.omg.IOP;
/**
* org/omg/IOP/ServiceIdHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/workspace/9-2-build-windows-amd64-cygwin-phase2/jdk9/6725/corba/src/java.corba/share/classes/org/omg/PortableInterceptor/IOP.idl
* Wednesday, August 2, 2017 9:29:15 PM PDT
*/
/** A service id, represented as an int */
abstract public class ServiceIdHelper
{
private static String _id = "IDL:omg.org/IOP/ServiceId:1.0";
public static void insert (org.omg.CORBA.Any a, int that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static int extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
__typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulong);
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.IOP.ServiceIdHelper.id (), "ServiceId", __typeCode);
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static int read (org.omg.CORBA.portable.InputStream istream)
{
int value = (int)0;
value = istream.read_ulong ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, int value)
{
ostream.write_ulong (value);
}
}
|
[
"limm33@outlook.com"
] |
limm33@outlook.com
|
7e0e95a2c70698152be77f21a52909d3209192b4
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/66/org/apache/commons/math/MathRuntimeException_createConcurrentModificationException_486.java
|
ad976f0670006c2479f7892fff150eef0c49d26b
|
[] |
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,555
|
java
|
org apach common math
base common math uncheck except
version revis date
math runtim except mathruntimeexcept runtim except runtimeexcept
construct code concurr modif except concurrentmodificationexcept code format detail messag
messag format deleg link java text messag format messageformat
param pattern format specifi
param argument format argument
built except
concurr modif except concurrentmodificationexcept creat concurr modif except createconcurrentmodificationexcept localiz pattern
object argument
concurr modif except concurrentmodificationexcept
serializ version identifi
serial version uid serialversionuid 1878427236170442052 1878427236170442052l
inherit doc inheritdoc
overrid
string messag getmessag
build messag buildmessag local pattern argument
inherit doc inheritdoc
overrid
string local messag getlocalizedmessag
build messag buildmessag local default getdefault pattern argument
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
9552cf353fd5837c521e8487e2fea740f61cdac4
|
c6d93152ab18b0e282960b8ff224a52c88efb747
|
/安慧软件资料/gitRepository/ITMS-3.0/Code/cy.its.violation/cy.its.violation.rest/src/main/java/cy/its/violation/rest/action/IWhiteListAction.java
|
89758cf329d24a240233ddaad7c67b74f86868a3
|
[] |
no_license
|
BAT6188/company-database
|
adfe5d8b87b66cd51efd0355e131de164b69d3f9
|
40d0342345cadc51ca2555840e32339ca0c83f51
|
refs/heads/master
| 2023-05-23T22:18:22.702550
| 2018-12-25T00:58:15
| 2018-12-25T00:58:15
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 1,139
|
java
|
/**
* @Title: IWhiteListAction.java
* @Package cy.its.violation.rest.action
* @Description: TODO(这里要填写用途)
* @author wangyf wangyf@cychina.cn
* @date 2015年11月4日 下午2:56:33
* @version V1.0
* @Revision : $Rev$
* @Id: $Id$
*
* Company: 安徽超远信息技术有限公司
* Copyright: Copyright (c) 2015
*/
package cy.its.violation.rest.action;
import java.text.ParseException;
import java.util.Map;
import cy.its.violation.rest.dto.WhiteListDto;
/**
* @ClassName: IWhiteListAction
* @Description: TODO(这里要填写用途)
* @author wangyf wangyf@cychina.cn
* @date 2015年11月4日 下午2:56:33
*
*/
public interface IWhiteListAction {
// 查询
Map searchWhiteList(WhiteListDto whiteListDto);
// 查询
Map searchWhiteVioList(WhiteListDto whiteListDto);
// 添加
String createWhiteList(WhiteListDto whiteListDto) throws ParseException;
// 更新
public String goUpdateWhiteList(WhiteListDto whiteListDto) throws ParseException;
// 批量删除
public String goDeleteWhiteList(String whiteListStrId);
// 单个删除
public String goRemoveWhiteList(String whiteListId);
}
|
[
"729235023@qq.com"
] |
729235023@qq.com
|
01f1939ababc9b2724caff03b3c26acefcb99eb2
|
20eb62855cb3962c2d36fda4377dfd47d82eb777
|
/IntroClassJava/dataset/grade/cd2d9b5b5cff96b07c5b22c0d139ffa2aa36b01823c9eb4db6eca19065a0ce2c4d2516bfcc2f1bc95daeae5b0bbd5e9c15b83feda776735e7bc3de6c49d25144/003/mutations/44/grade_cd2d9b5b_003.java
|
61207a5afcb6d2826ad9826eb9fc75c2f8ea0bd6
|
[] |
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,119
|
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_cd2d9b5b_003 {
public java.util.Scanner scanner;
public String output = "";
public static void main (String[]args) throws Exception {
grade_cd2d9b5b_003 mainClass = new grade_cd2d9b5b_003 ();
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 num1 = new FloatObj (), num2 = new FloatObj (), num3 =
new FloatObj (), num4 = new FloatObj ();
FloatObj score = new FloatObj ();
output +=
(String.format
("Enter thresholds for A, B, C, D\nin that order, decreasing percentages > "));
num1.value = scanner.nextFloat ();
num2.value = scanner.nextFloat ();
num3.value = scanner.nextFloat ();
num4.value = scanner.nextFloat ();
output +=
(String.format ("Thank you. Now enter student score (percent) >"));
if (true) return ;
score.value = scanner.nextFloat ();
output += (String.format ("Student has an A grade"));
output +=
(String.format
("%f%f%f%f%f", num1.value, num2.value, num3.value, num4.value,
score.value));
if (true)
return;;
}
}
|
[
"justinwm@163.com"
] |
justinwm@163.com
|
19a27d5a2f1115bcff45cd00c71ca138c2a55946
|
f52981eb9dd91030872b2b99c694ca73fb2b46a8
|
/Source/Plugins/Core/com.equella.admin/src/com/tle/admin/AdminConsole.java
|
40ada3474a62568946ca9afaf71d50ea31ac34c7
|
[
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"LicenseRef-scancode-jdom",
"GPL-1.0-or-later",
"ICU",
"CDDL-1.0",
"LGPL-3.0-only",
"LicenseRef-scancode-other-permissive",
"CPL-1.0",
"MIT",
"GPL-2.0-only",
"Apache-2.0",
"NetCDF",
"Apache-1.1",
"EPL-1.0",
"Classpath-exception-2.0",
"CDDL-1.1",
"LicenseRef-scancode-freemarker"
] |
permissive
|
phette23/Equella
|
baa41291b91d666bf169bf888ad7e9f0b0db9fdb
|
56c0d63cc1701a8a53434858a79d258605834e07
|
refs/heads/master
| 2020-04-19T20:55:13.609264
| 2019-01-29T03:27:40
| 2019-01-29T22:31:24
| 168,427,559
| 0
| 0
|
Apache-2.0
| 2019-01-30T22:49:08
| 2019-01-30T22:49:08
| null |
UTF-8
|
Java
| false
| false
| 5,011
|
java
|
/*
* Copyright 2017 Apereo
*
* 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.tle.admin;
import java.awt.Window;
import java.io.IOException;
import java.net.URL;
import java.util.Locale;
import java.util.TimeZone;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.tle.admin.boot.LoadingDialog;
import com.tle.client.harness.HarnessInterface;
import com.tle.client.impl.ClientLocaleImplementation;
import com.tle.client.impl.ClientServiceImpl;
import com.tle.client.impl.CurrentTimeZoneClientSide;
import com.tle.common.applet.SessionHolder;
import com.tle.common.applet.client.ClientService;
import com.tle.common.i18n.CurrentLocale;
import com.tle.common.i18n.CurrentTimeZone;
import com.tle.core.remoting.RemoteLanguageService;
import com.tle.i18n.BundleCache;
/**
* This is the main class that launches the Administration Console.
*
* @author Nicholas Read
*/
@SuppressWarnings("nls")
public class AdminConsole implements HarnessInterface
{
private static final Log LOGGER = LogFactory.getLog(AdminConsole.class);
private static final String DOCUMENTBUILDERFACTORY = "javax.xml.parsers.DocumentBuilderFactory";
private static final String DEFAULT_XML_PARSER5 = "com.sun.org.apache.xerces.internal.jaxp."
+ "DocumentBuilderFactoryImpl";
private static final String ERROR_TITLE = "Error";
private static final String ERROR_MESSAGE = "There has been an error loading the Administration Console"
+ "\nPlease consult your System Administrator";
private Window managementDialog;
private ClientService clientService;
private Locale locale;
private URL endpointURL;
private PluginServiceImpl pluginService;
public AdminConsole()
{
final String javaVersion = System.getProperty("java.version");
final String osName = System.getProperty("os.name");
LOGGER.info("Java version is '" + javaVersion + "'");
LOGGER.info("OS name is '" + osName + "'");
}
protected void initLanguageBundles() throws IOException
{
// TODO: change the rtl stuff (if we ever support rtl in admin console)
LOGGER.info("Locale is " + locale);
CurrentLocale.initialise(new ClientLocaleImplementation(endpointURL, getBundleGroups(), locale, false));
CurrentTimeZone.initialise(new CurrentTimeZoneClientSide(TimeZone.getDefault()));
}
public String[] getBundleGroups()
{
return new String[]{"admin-console", "recipient-selector"};
}
@Override
public void start()
{
try
{
// Detect the Mac hack param
String tempDir = System.getProperty("jnlp.java.io.tmpdir");
if( tempDir != null && !tempDir.equals("") )
{
System.setProperty("java.io.tmpdir", tempDir);
}
// Initialise server session
SessionHolder holder = new SessionHolder(endpointURL);
// Initialise services
clientService = new ClientServiceImpl(holder);
// Initialise bundle cache
BundleCache.initialise(clientService.getService(RemoteLanguageService.class));
// Make sure we are using the default XML Parser.
System.setProperty(DOCUMENTBUILDERFACTORY, DEFAULT_XML_PARSER5);
setupLookAndFeel();
final LoadingDialog loading = new LoadingDialog("Equella: Administration Console");
loading.setVisible(true);
loading.toFront();
// Initialise language bundle now
initLanguageBundles();
// Create the driver interface.
Driver.create(clientService, pluginService);
// Create the management dialog.
managementDialog = new ManagementDialog();
loading.setVisible(false);
loading.dispose();
// Switch the visible windows
managementDialog.setVisible(true);
managementDialog.toFront();
}
catch( Exception ex )
{
ex.printStackTrace();
JOptionPane.showMessageDialog(managementDialog, ERROR_MESSAGE, ERROR_TITLE, JOptionPane.ERROR_MESSAGE);
clientService.stop();
return;
}
}
/**
* Ensures the system's native look and feel is set by default.
*/
private void setupLookAndFeel()
{
try
{
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch( Exception ex )
{
System.err.println("Look And Feel could not be set.");
ex.printStackTrace();
}
}
@Override
public void setLocale(Locale locale)
{
this.locale = locale;
}
@Override
public void setEndpointURL(URL endpointURL)
{
this.endpointURL = endpointURL;
}
@Override
public void setPluginService(PluginServiceImpl pluginService)
{
this.pluginService = pluginService;
}
}
|
[
"doolse@gmail.com"
] |
doolse@gmail.com
|
27c40da04dc5a2e5c2031e1970d9ef908f574609
|
53d677a55e4ece8883526738f1c9d00fa6560ff7
|
/com/tencent/mm/plugin/ipcall/ui/IPCallPackageUI$a$1$1.java
|
bf875c6f86045800ac6abd95e9bb6229443702d4
|
[] |
no_license
|
0jinxing/wechat-apk-source
|
544c2d79bfc10261eb36389c1edfdf553d8f312a
|
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
|
refs/heads/master
| 2020-06-07T20:06:03.580028
| 2019-06-21T09:17:26
| 2019-06-21T09:17:26
| 193,069,132
| 9
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,026
|
java
|
package com.tencent.mm.plugin.ipcall.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.ipcall.a.e.f;
import com.tencent.mm.protocal.protobuf.crx;
final class IPCallPackageUI$a$1$1
implements DialogInterface.OnClickListener
{
IPCallPackageUI$a$1$1(IPCallPackageUI.a.1 param1, crx paramcrx)
{
}
public final void onClick(DialogInterface paramDialogInterface, int paramInt)
{
AppMethodBeat.i(22224);
paramDialogInterface = IPCallPackageUI.b(IPCallPackageUI.a.a(this.nDU.nDS));
paramDialogInterface.nyT += 1;
IPCallPackageUI.a(IPCallPackageUI.a.a(this.nDU.nDS), this.nDT.ProductID);
AppMethodBeat.o(22224);
}
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes5-dex2jar.jar
* Qualified Name: com.tencent.mm.plugin.ipcall.ui.IPCallPackageUI.a.1.1
* JD-Core Version: 0.6.2
*/
|
[
"172601673@qq.com"
] |
172601673@qq.com
|
d6304fbfe904aeeac64bad5a67419a2de4bfff50
|
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
|
/Code Snippet Repository/Junit/Junit411.java
|
01c47ec6c0e5db25ec0c2d065b2e2ca59991e6b8
|
[] |
no_license
|
saber13812002/DeepCRM
|
3336a244d4852a364800af3181e03e868cf6f9f5
|
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
|
refs/heads/master
| 2023-03-16T00:08:06.473699
| 2018-04-18T05:29:50
| 2018-04-18T05:29:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 740
|
java
|
@Test
void templateWithSupportingProviderButNoInvocationsReportsFailure() {
LauncherDiscoveryRequest request = request().selectors(
selectMethod(MyTestTemplateTestCase.class, "templateWithSupportingProviderButNoInvocations")).build();
ExecutionEventRecorder eventRecorder = executeTests(request);
assertRecordedExecutionEventsContainsExactly(eventRecorder.getExecutionEvents(), //
wrappedInContainerEvents(MyTestTemplateTestCase.class, //
event(container("templateWithSupportingProviderButNoInvocations"), started()), //
event(container("templateWithSupportingProviderButNoInvocations"), finishedWithFailure(
message("No supporting TestTemplateInvocationContextProvider provided an invocation context")))));
}
|
[
"Qing.Mi@my.cityu.edu.hk"
] |
Qing.Mi@my.cityu.edu.hk
|
72e80d79b6f0ab2301e1a59e9ca34de8eed62805
|
ca85b4da3635bcbea482196e5445bd47c9ef956f
|
/iexhub/src/main/java/PDQSupplier/org/hl7/v3/GTSAbbreviationHolidaysUSNational.java
|
2f277d2d507dbdb472234a92e40b679c20063925
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
bhits/iexhub-generated
|
c89a3a9bd127140f56898d503bc0c924d0398798
|
e53080ae15f0c57c8111a54d562101d578d6c777
|
refs/heads/master
| 2021-01-09T05:59:38.023779
| 2017-02-01T13:30:19
| 2017-02-01T13:30:19
| 80,863,998
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,189
|
java
|
/*******************************************************************************
* Copyright (c) 2015, 2016 Substance Abuse and Mental Health Services Administration (SAMHSA)
*
* 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.
*
* Contributors:
* Eversolve, LLC - initial IExHub implementation for Health Information Exchange (HIE) integration
* Anthony Sute, Ioana Singureanu
*******************************************************************************/
package PDQSupplier.org.hl7.v3;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for GTSAbbreviationHolidaysUSNational.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="GTSAbbreviationHolidaysUSNational">
* <restriction base="{urn:hl7-org:v3}cs">
* <enumeration value="JHNUS"/>
* <enumeration value="JHNUSCLM"/>
* <enumeration value="JHNUSIND"/>
* <enumeration value="JHNUSIND1"/>
* <enumeration value="JHNUSIND5"/>
* <enumeration value="JHNUSLBR"/>
* <enumeration value="JHNUSMEM"/>
* <enumeration value="JHNUSMEM5"/>
* <enumeration value="JHNUSMEM6"/>
* <enumeration value="JHNUSMLK"/>
* <enumeration value="JHNUSPRE"/>
* <enumeration value="JHNUSTKS"/>
* <enumeration value="JHNUSTKS5"/>
* <enumeration value="JHNUSVET"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "GTSAbbreviationHolidaysUSNational")
@XmlEnum
public enum GTSAbbreviationHolidaysUSNational {
JHNUS("JHNUS"),
JHNUSCLM("JHNUSCLM"),
JHNUSIND("JHNUSIND"),
@XmlEnumValue("JHNUSIND1")
JHNUSIND_1("JHNUSIND1"),
@XmlEnumValue("JHNUSIND5")
JHNUSIND_5("JHNUSIND5"),
JHNUSLBR("JHNUSLBR"),
JHNUSMEM("JHNUSMEM"),
@XmlEnumValue("JHNUSMEM5")
JHNUSMEM_5("JHNUSMEM5"),
@XmlEnumValue("JHNUSMEM6")
JHNUSMEM_6("JHNUSMEM6"),
JHNUSMLK("JHNUSMLK"),
JHNUSPRE("JHNUSPRE"),
JHNUSTKS("JHNUSTKS"),
@XmlEnumValue("JHNUSTKS5")
JHNUSTKS_5("JHNUSTKS5"),
JHNUSVET("JHNUSVET");
private final String value;
GTSAbbreviationHolidaysUSNational(String v) {
value = v;
}
public String value() {
return value;
}
public static GTSAbbreviationHolidaysUSNational fromValue(String v) {
for (GTSAbbreviationHolidaysUSNational c: GTSAbbreviationHolidaysUSNational.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
|
[
"michael.hadjiosif@feisystems.com"
] |
michael.hadjiosif@feisystems.com
|
f0fe8788c671edc86342f31acef1db07142885bd
|
f11c6d612a9017d13cc2c230b9a1521949108c76
|
/src/main/java/com/ina/persistence/RegularDAO.java
|
d60cf853461b2af001e4db1c6b7f11e9c840fe6a
|
[] |
no_license
|
inalee/kindergarten
|
5e05d4792a5bf56f8bd9b134f4503a91d6c7440e
|
43be3a8749d390cb877a6ee4661a94d3e582b222
|
refs/heads/master
| 2020-04-30T06:39:02.949212
| 2018-08-24T05:20:23
| 2018-08-24T05:20:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,125
|
java
|
package com.ina.persistence;
import java.util.List;
import java.util.Map;
import com.ina.domain.Regular_finalVO;
import com.ina.domain.regular_recruitVO;
import com.kinder.domain.KindergartenVO;
import com.kinder.domain.SearchCri;
public interface RegularDAO {
public void make_regular(regular_recruitVO rrv);
public List<regular_recruitVO> list_regular(int kincode);
public List<Map<String, Object>> list_regular_par();
public regular_recruitVO detail_regular(int recode);
public KindergartenVO kinder_info(int kincode);
public List<Map<String, Object>> list_del_regular(int gcode);
public void regular_final(Regular_finalVO rf);
public List<Map<String, Object>> final_list(int kincode);
public void no_file(int re_encode);
public List<Map<String, Object>> cancel_list(int kincode);
public List<Map<String, Object>> search_regular(SearchCri cri);
public void delete_regular(int recode);
public Map<String, Object> sel_kinder_info(int kincode);
public void modify_kinder(KindergartenVO kv);
public int sel_number_class (int kincode);
}
|
[
"USER@USER-PC"
] |
USER@USER-PC
|
3de10fa6ef5b7f2c705423568908e86eba505973
|
cc0854fa6079f0e2632419af9b0191638c58b859
|
/app/src/main/java/com/dlwx/wisdomschool/utiles/LookPic.java
|
653d00c101745602f7fbe5010bc498e529ade0e0
|
[] |
no_license
|
wch2219/wisdomschool
|
6c381b1ec95b829ce1743614dc7f56bb6a61ff80
|
a5be78c454dcb0acf2861bb1f27830469fe0ca7a
|
refs/heads/master
| 2021-09-06T17:55:16.684624
| 2018-02-09T09:21:30
| 2018-02-09T09:21:30
| 115,481,370
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,587
|
java
|
package com.dlwx.wisdomschool.utiles;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.v4.view.ViewPager;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.PopupWindow;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.target.SimpleTarget;
import com.bumptech.glide.request.transition.Transition;
import com.dlwx.baselib.bean.Image;
import com.dlwx.wisdomschool.R;
import com.dlwx.wisdomschool.adapter.BigPicandDownAdapter;
import java.io.File;
import java.util.List;
/**
* Created by Administrator on 2018/1/6/006.
*/
public class LookPic {
public static void showPic (final Context ctx, final View parent, final List<Image> images, final int pos){
View view = LayoutInflater.from(ctx).inflate(R.layout.popu_showpic,null);
final PopupWindow popu = new PopupWindow(view, RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT);
popu.setFocusable(true);
popu.showAtLocation(parent, Gravity.CENTER,0,0);
ViewPager iv_pic = view.findViewById(R.id.iv_pic);
ImageView iv_down = (ImageView) view.findViewById(R.id.iv_down);
final TextView tv_num = (TextView) view.findViewById(R.id.tv_num);
final BigPicandDownAdapter picViewPAgeAdapter = new BigPicandDownAdapter(ctx, images);
picViewPAgeAdapter.setGone(true);
iv_pic.setAdapter(picViewPAgeAdapter);
for (int i = 0; i < images.size(); i++) {
Image image = images.get(i);
int oldposition = image.getOldposition();
if (oldposition == pos) {
iv_pic.setCurrentItem(i);
tv_num.setText(i+1+"/"+images.size());
}
}
iv_down.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String path = images.get(downpos).getPath();
Glide.with(ctx).asFile().load(path).into(new SimpleTarget<File>() {
@Override
public void onResourceReady(File resource, Transition<? super File> transition) {
Toast toast = Toast.makeText(ctx, "图片保存在:" + resource, Toast.LENGTH_SHORT);
toast.setGravity(Gravity.CENTER,0,0);
toast.show();
// 最后通知图库更新
ctx.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE,
Uri.fromFile(resource)));
}
});
}
});
picViewPAgeAdapter.setPicOnclick(new BigPicandDownAdapter.PicOnclick() {
@Override
public void close() {
popu.dismiss();
}
});
iv_pic.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
}
@Override
public void onPageSelected(int position) {
downpos = position;
tv_num.setText(position+1+"/"+images.size());
}
@Override
public void onPageScrollStateChanged(int state) {
}
});
}
private static int downpos;
}
|
[
"wangchonghui2219@126.com"
] |
wangchonghui2219@126.com
|
d6368d00fd162602c60185525f55da14c6bdc3a3
|
6538de683b78fe1abe746b9b7a6648822274f0de
|
/src/main/java/net/opengis/gml/v_3_2_1/VolumeType.java
|
9f99a22a99c37e4e40af976a2bb5ba2167d38ddc
|
[] |
no_license
|
CleanSpark/cs-te-ven
|
9355f8340c249290fc47eb831adfb2c862c26b35
|
88c81bc26747deba073ea2d5010178d00becb4a9
|
refs/heads/master
| 2016-08-13T02:05:44.142696
| 2016-02-24T23:07:53
| 2016-02-24T23:07:53
| 52,289,995
| 1
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,027
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.02.05 at 11:06:51 AM PST
//
package net.opengis.gml.v_3_2_1;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for VolumeType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="VolumeType">
* <simpleContent>
* <extension base="<http://www.opengis.net/gml/3.2>MeasureType">
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VolumeType")
public class VolumeType
extends MeasureType
{
}
|
[
"shane.yamamoto@yahoo.com"
] |
shane.yamamoto@yahoo.com
|
932ce39cf7ec830d5fbdc502ae5e5d87cafd2313
|
e4ffc6c82a320d8d835126d8422f3e49ba9c868c
|
/HouseService/src/main/java/com/cl/house/common/FileUtil.java
|
c7cc5d76f1495473e3bfae47f6be104a7bd2c8e6
|
[] |
no_license
|
chenlingyx/house
|
129f13e21902a076f9059fad70f4feeae58c6242
|
26d6a95425a8cee2460b4a8d73b34728af0bfd6d
|
refs/heads/master
| 2020-05-16T15:12:19.490122
| 2019-04-24T01:47:35
| 2019-04-24T01:47:35
| 183,125,393
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 614
|
java
|
package com.cl.house.common;
import java.io.File;
import java.io.IOException;
import java.time.Instant;
import org.springframework.web.multipart.MultipartFile;
import com.google.common.io.Files;
public class FileUtil {
public static File saveToLocal(MultipartFile file, String filePath) throws IOException {
File newfile = new File(filePath+"/"+Instant.now().getEpochSecond()+"/"+file.getOriginalFilename());
if (!newfile.exists()) {
newfile.getParentFile().mkdirs();
newfile.createNewFile();
}
Files.write(file.getBytes(), newfile);
return newfile;
}
}
|
[
"chenlingys@live.com"
] |
chenlingys@live.com
|
d2eb4942f54d8fdb99c010cadb1f0b07b71e4850
|
87ffe6cef639e2b96b8d5236b5ace57e16499491
|
/app/src/main/java/u/aly/y.java
|
76f3b012cabf160e533ec988f1a028d593494030
|
[] |
no_license
|
leerduo/FoodsNutrition
|
24ffeea902754b84a2b9fbd3299cf4fceb38da3f
|
a448a210e54f789201566da48cc44eceb719b212
|
refs/heads/master
| 2020-12-11T05:45:34.531682
| 2015-08-28T04:35:05
| 2015-08-28T04:35:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,419
|
java
|
package u.aly;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.content.pm.ApplicationInfo;
import java.lang.reflect.Method;
public class y
{
public static be a(Context paramContext)
{
try
{
be localbe = new be();
long[] arrayOfLong = b(paramContext);
if ((arrayOfLong[0] > 0L) && (arrayOfLong[1] > 0L))
{
SharedPreferences localSharedPreferences = u.a(paramContext);
long l1 = localSharedPreferences.getLong("uptr", -1L);
long l2 = localSharedPreferences.getLong("dntr", -1L);
localSharedPreferences.edit().putLong("uptr", arrayOfLong[1]).putLong("dntr", arrayOfLong[0]).commit();
if ((l1 <= 0L) || (l2 <= 0L)) {
break label185;
}
arrayOfLong[0] -= l2;
arrayOfLong[1] -= l1;
if ((arrayOfLong[0] <= 0L) || (arrayOfLong[1] <= 0L)) {
break label187;
}
localbe.b((int)arrayOfLong[0]);
localbe.a((int)arrayOfLong[1]);
return localbe;
}
}
catch (Exception localException)
{
bj.d("MobclickAgent", "sdk less than 2.2 has get no traffic");
return null;
}
return null;
label185:
return null;
label187:
return null;
}
private static long[] b(Context paramContext)
{
Class localClass = Class.forName("android.net.TrafficStats");
Class[] arrayOfClass1 = new Class[1];
arrayOfClass1[0] = Integer.TYPE;
Method localMethod1 = localClass.getMethod("getUidRxBytes", arrayOfClass1);
Class[] arrayOfClass2 = new Class[1];
arrayOfClass2[0] = Integer.TYPE;
Method localMethod2 = localClass.getMethod("getUidTxBytes", arrayOfClass2);
int i = paramContext.getApplicationInfo().uid;
if (i == -1) {
return null;
}
long[] arrayOfLong = new long[2];
Object[] arrayOfObject1 = new Object[1];
arrayOfObject1[0] = Integer.valueOf(i);
arrayOfLong[0] = ((Long)localMethod1.invoke(null, arrayOfObject1)).longValue();
Object[] arrayOfObject2 = new Object[1];
arrayOfObject2[0] = Integer.valueOf(i);
arrayOfLong[1] = ((Long)localMethod2.invoke(null, arrayOfObject2)).longValue();
return arrayOfLong;
}
}
/* Location: D:\15036015\反编译\shiwuku\classes_dex2jar.jar
* Qualified Name: u.aly.y
* JD-Core Version: 0.7.0-SNAPSHOT-20130630
*/
|
[
"1060221762@qq.com"
] |
1060221762@qq.com
|
7ec4cc502d70c07967743fdf75c1c27cbaec5679
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-13544-6-21-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/display/internal/DocumentContentDisplayer_ESTest.java
|
8a5d833b8e57ccc70fe7ab59fa1de1eb4a2f41e7
|
[] |
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
| 581
|
java
|
/*
* This file was automatically generated by EvoSuite
* Mon Jan 20 00:47:46 UTC 2020
*/
package org.xwiki.display.internal;
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 DocumentContentDisplayer_ESTest extends DocumentContentDisplayer_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
bea713df0d33ab8b7bf46c2c858e7bbd177f6a38
|
3ebaee3a565d5e514e5d56b44ebcee249ec1c243
|
/assetBank 3.77 decomplied fixed/src/java/com/bright/assetbank/report/form/SearchReportForm.java
|
44d98405c1c30fbde99eab2e374fb85cee689d96
|
[] |
no_license
|
webchannel-dev/Java-Digital-Bank
|
89032eec70a1ef61eccbef6f775b683087bccd63
|
65d4de8f2c0ce48cb1d53130e295616772829679
|
refs/heads/master
| 2021-10-08T19:10:48.971587
| 2017-11-07T09:51:17
| 2017-11-07T09:51:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,345
|
java
|
/* */ package com.bright.assetbank.report.form;
/* */
/* */ import com.bn2web.common.exception.Bn2Exception;
/* */ import com.bn2web.common.form.Bn2Form;
/* */ import com.bright.assetbank.application.constant.AssetBankConstants;
/* */ import com.bright.framework.database.bean.DBTransaction;
/* */ import com.bright.framework.message.constant.MessageConstants;
/* */ import com.bright.framework.simplelist.bean.ListItem;
/* */ import com.bright.framework.simplelist.service.ListManager;
/* */ import com.bright.framework.user.bean.UserProfile;
/* */ import com.bright.framework.util.StringUtil;
/* */ import java.util.Date;
/* */ import java.util.Vector;
/* */ import javax.servlet.http.HttpServletRequest;
/* */
/* */ public class SearchReportForm extends Bn2Form
/* */ implements MessageConstants, AssetBankConstants
/* */ {
/* 42 */ private Vector m_vecReportLines = null;
/* 43 */ private int m_iSuccessType = 0;
/* 44 */ private String m_sStartDateString = null;
/* 45 */ private String m_sEndDateString = null;
/* 46 */ private Date m_dtStartDate = null;
/* 47 */ private Date m_dtEndDate = null;
/* 48 */ private boolean m_bGroupedReport = false;
/* 49 */ private String m_sReportFilename = null;
/* */
/* */ public void setReportLines(Vector a_vecReportLines)
/* */ {
/* 53 */ this.m_vecReportLines = a_vecReportLines;
/* */ }
/* */
/* */ public Vector getReportLines()
/* */ {
/* 58 */ return this.m_vecReportLines;
/* */ }
/* */
/* */ public void setSuccessType(int a_iSuccessType)
/* */ {
/* 63 */ this.m_iSuccessType = a_iSuccessType;
/* */ }
/* */
/* */ public int getSuccessType()
/* */ {
/* 68 */ return this.m_iSuccessType;
/* */ }
/* */
/* */ public void setStartDate(Date a_dtStartDate)
/* */ {
/* 73 */ this.m_dtStartDate = a_dtStartDate;
/* */ }
/* */
/* */ public Date getStartDate()
/* */ {
/* 78 */ return this.m_dtStartDate;
/* */ }
/* */
/* */ public void setEndDate(Date a_dtEndDate)
/* */ {
/* 83 */ this.m_dtEndDate = a_dtEndDate;
/* */ }
/* */
/* */ public Date getEndDate()
/* */ {
/* 88 */ return this.m_dtEndDate;
/* */ }
/* */
/* */ public String getEndDateString()
/* */ {
/* 94 */ return this.m_sEndDateString;
/* */ }
/* */
/* */ public void setEndDateString(String a_sEndDateString)
/* */ {
/* 100 */ this.m_sEndDateString = a_sEndDateString;
/* */ }
/* */
/* */ public String getStartDateString()
/* */ {
/* 106 */ return this.m_sStartDateString;
/* */ }
/* */
/* */ public void setStartDateString(String a_sStartDateString)
/* */ {
/* 112 */ this.m_sStartDateString = a_sStartDateString;
/* */ }
/* */
/* */ public void setGroupedReport(boolean a_bGroupedReport)
/* */ {
/* 117 */ this.m_bGroupedReport = a_bGroupedReport;
/* */ }
/* */
/* */ public boolean getGroupedReport()
/* */ {
/* 122 */ return this.m_bGroupedReport;
/* */ }
/* */
/* */ public void validate(HttpServletRequest a_request, UserProfile a_userProfile, DBTransaction a_dbTransaction, ListManager a_listManager) throws Bn2Exception
/* */ {
/* 127 */ if (((StringUtil.stringIsPopulated(getStartDateString())) && (!StringUtil.stringIsDate(getStartDateString()))) || ((StringUtil.stringIsPopulated(getEndDateString())) && (!StringUtil.stringIsDate(getEndDateString()))))
/* */ {
/* 131 */ addError(a_listManager.getListItem(a_dbTransaction, "failedValidationDateFormat", a_userProfile.getCurrentLanguage()).getBody());
/* */ }
/* */ }
/* */
/* */ public String getReportFilename()
/* */ {
/* 137 */ return this.m_sReportFilename;
/* */ }
/* */
/* */ public void setReportFilename(String a_sReportFilename)
/* */ {
/* 142 */ this.m_sReportFilename = a_sReportFilename;
/* */ }
/* */ }
/* Location: C:\Users\mamatha\Desktop\com.zip
* Qualified Name: com.bright.assetbank.report.form.SearchReportForm
* JD-Core Version: 0.6.0
*/
|
[
"42003122+code7885@users.noreply.github.com"
] |
42003122+code7885@users.noreply.github.com
|
0cbd4b1429e125ff7046622d857c0c43263d819a
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/repairnator/learning/5071/PipelineState.java
|
7c8e8adf83a2170d83c2ef74bf6e77cd4447efef
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 493
|
java
|
package fr.inria.spirals.repairnator.states;
/**
* Created by urli on 03/01/2017.
*/
public enum PipelineState {
TESTABLE,
PATCHED,
BUILDNOTCHECKEDOUT,
TESTERRORS,
SOURCEDIRNOTCOMPUTED,
NOTBUILDABLE,
CHECKSTYLE_ERRORS,
TESTFAILURES ,
NOTCLONABLE,
NOTFAILING,
NOTTESTABLE,
CLASSPATHERROR,
TESTDIRNOTCOMPUTED,
MODULESNOTCOMPUTED,
PLUGINSNOTCOMPUTED,
PROPERTY_FILE_NOT_WRITTEN,
BUG_FAILING_PASSING,
BUG_PASSING_PASSING
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
8fcd44b376b476c3d31d0747d362e5c3ba65b56a
|
7e7c0942f0b95f25ccf600d71ff10e4c992e0eb8
|
/app/src/main/java/com/rxjy/pm/entity/EnvironmentDetailInfo.java
|
44e6f2904d75ad108385fe2ab715aea9c50f4198
|
[] |
no_license
|
WCYu/pm
|
10ad7200266e5fa9b67bb001a8255ea5f6b0885b
|
a353d6adb28e7155e377537eb3e8f208c12873cf
|
refs/heads/master
| 2020-03-19T13:19:25.980087
| 2018-06-28T06:28:58
| 2018-06-28T06:28:58
| 136,573,325
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,652
|
java
|
package com.rxjy.pm.entity;
import java.util.List;
/**
* Created by Administrator on 2017/4/27.
*/
public class EnvironmentDetailInfo {
private int StatusCode;
private String StatusMsg;
private List<EnvironmentDetail> Body;
public int getStatusCode() {
return StatusCode;
}
public void setStatusCode(int StatusCode) {
this.StatusCode = StatusCode;
}
public String getStatusMsg() {
return StatusMsg;
}
public void setStatusMsg(String StatusMsg) {
this.StatusMsg = StatusMsg;
}
public List<EnvironmentDetail> getBody() {
return Body;
}
public void setBody(List<EnvironmentDetail> Body) {
this.Body = Body;
}
public static class EnvironmentDetail {
private int StepId;
private int ProcessId;
private String StepName;
private String StepDesc;
private int StepPhotoID;
private String StepPhotoUrl;
private String PhotoUrl;
private int CheckState;
private int XjId;
public int getCheckState() {
return CheckState;
}
public void setCheckState(int checkState) {
CheckState = checkState;
}
public int getXjId() {
return XjId;
}
public void setXjId(int xjId) {
XjId = xjId;
}
public int getStepId() {
return StepId;
}
public void setStepId(int StepId) {
this.StepId = StepId;
}
public int getProcessId() {
return ProcessId;
}
public void setProcessId(int ProcessId) {
this.ProcessId = ProcessId;
}
public String getStepName() {
return StepName;
}
public void setStepName(String StepName) {
this.StepName = StepName;
}
public String getStepDesc() {
return StepDesc;
}
public void setStepDesc(String StepDesc) {
this.StepDesc = StepDesc;
}
public int getStepPhotoID() {
return StepPhotoID;
}
public void setStepPhotoID(int StepPhotoID) {
this.StepPhotoID = StepPhotoID;
}
public String getStepPhotoUrl() {
return StepPhotoUrl;
}
public void setStepPhotoUrl(String StepPhotoUrl) {
this.StepPhotoUrl = StepPhotoUrl;
}
public String getPhotoUrl() {
return PhotoUrl;
}
public void setPhotoUrl(String PhotoUrl) {
this.PhotoUrl = PhotoUrl;
}
}
}
|
[
"13466941275@163.com"
] |
13466941275@163.com
|
10acb9d1a74557114e2b53371b49ab375b8a6c21
|
7fa9c6b0fa1d0726ae1cda0199716c811a1ea01b
|
/Crawler/data/DemoCook.java
|
a2df748621f972c1e96d2cdaeb1fbf6e028f30c0
|
[] |
no_license
|
NayrozD/DD2476-Project
|
b0ca75799793d8ced8d4d3ba3c43c79bb84a72c0
|
94dfb3c0a470527b069e2e0fd9ee375787ee5532
|
refs/heads/master
| 2023-03-18T04:04:59.111664
| 2021-03-10T15:03:07
| 2021-03-10T15:03:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,012
|
java
|
2
https://raw.githubusercontent.com/chengcheng1021/javaStudy/master/src/java2/Cook/DemoCook.java
package java2.Cook;
/**
* 需求:
* 给定一个厨子 Cook 接口,内含唯一的抽象方法 makeFood,且无参数,无返回值
* 使用 Lambda 的标准格式调用 invokeCook 方法,打印出"吃饭啦!"字样
*/
public class DemoCook {
public static void main(String[] args) {
//调用invokeCook方法,参数是cook接口,传递cook接口的匿名内部类对象
invokeCook(new Cook() {
@Override
public void makeFood() {
System.out.println("吃饭啦!");
}
});
//使用Lambda表达式,简化匿名内部类的书写
invokeCook(()->{
System.out.println("吃饭啦!");
});
}
//定义一个方法,参数传递Cook接口,方法内部调用Cook接口的方法makeFood
public static void invokeCook(Cook cook){
cook.makeFood();
}
}
|
[
"veronika.cucorova@gmail.com"
] |
veronika.cucorova@gmail.com
|
7d9e471d8a00614db1327509fe7ff4365e95d349
|
784ae808ea202f4c917a0878ddc0a8600d4a8b00
|
/Week6/MotorcycleService/src/main/java/com/revature/controller/MotorcycleController.java
|
5eaa46fcdb0b80e3d3f435db2ca773ba0425d386
|
[] |
no_license
|
jurczakn/1811Java-Nick
|
6a33e4418d80707a82f77942bc9131264a5bbb09
|
5712117a0720b7b56611c5c7574d12a93fe06f81
|
refs/heads/master
| 2020-04-04T11:48:24.595512
| 2019-01-07T21:33:19
| 2019-01-07T21:33:19
| 155,904,091
| 0
| 0
| null | 2018-12-19T20:08:58
| 2018-11-02T18:05:16
|
Java
|
UTF-8
|
Java
| false
| false
| 1,188
|
java
|
package com.revature.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.revature.bean.Motorcycle;
import com.revature.service.MotorcycleService;
@RestController("/motorcycle")
public class MotorcycleController {
@Autowired
MotorcycleService mcService;
@GetMapping
public List<Motorcycle> getAllMotorcycles(){
return mcService.getAllMotorcycles();
}
@GetMapping("/motorcycle/{id}")
public Motorcycle getMotorcycle(@PathVariable Integer id){
return mcService.getMotorcycleById(id);
}
@PostMapping
public void makeMotorcycle(@RequestBody Motorcycle motorcycle){
mcService.createMotorcycle(motorcycle);
}
@DeleteMapping("/motorcycle/{id}")
public void removeMotorcycle(@PathVariable Integer id){
mcService.deleteMotorcycle(id);
}
}
|
[
"nickolas.jurczak@gmail.com"
] |
nickolas.jurczak@gmail.com
|
59ca08c5474c62ecb7d09bfb92f9692d5a7c0f8f
|
d001000626f1c4279663f0070b5cd32391b661fe
|
/src/main/java/com/imaginea/javapractise/j2ee1001/Testjj.java
|
52584daa8d1f0f8403a20b02301be9edc4179f8e
|
[] |
no_license
|
scharanjit/JavaPractise
|
26e5de6e285ed489239bc025cfec9941096006d5
|
de07f66274fe97fce7697a2b3057cb00fa5d39f1
|
refs/heads/master
| 2016-09-12T09:00:52.967466
| 2016-05-20T07:07:28
| 2016-05-20T07:07:28
| 59,269,704
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 745
|
java
|
package j2ee1001;
public class Testjj
{
public static void main(String[] args)
{
Boolean b= true;
b=!b;
System.out.println(b);
int x=5,y=3;
if(x==y)
{
System.out.println("IF");
}
else
{
System.out.println("ELSE");
}
try
{
String zz= "10t";
System.out.println("In first try");
int i= parseInt(17);
System.out.println("second try : "+i);
}
catch(ArithmeticException e)
{
System.out.println("In catch");
}
finally
{
System.out.println("Finally");
}
System.out.println("---------------hi-------------------");
}
private static int parseInt(int i) {
// TODO Auto-generated method stub
return ++i;
}
}
|
[
"charanjit.singh@imaginea.com"
] |
charanjit.singh@imaginea.com
|
85ac15f530136e2bf02012ff5445332f5e20e819
|
5ef2582fb3df514f11a50022d5e06d46ef2aa818
|
/src/java/com/bsw/dao/TbBW2StatusDao.java
|
fa1a778efeb07cf7cd75a0f868ead1eae26909ed
|
[] |
no_license
|
mauwahid/BSWRestAPI
|
8abb129d8ac312aae5bc97d6f46a4d654b99be19
|
f0cbf087b02582061808aafee4e16a2880d5e678
|
refs/heads/master
| 2021-05-15T03:31:43.703716
| 2017-10-17T04:42:20
| 2017-10-17T04:42:20
| 107,218,865
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,721
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.bsw.dao;
import com.bsw.domain.TbBW2Status;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author Maulana Wahid Abdurrahman
*/
public class TbBW2StatusDao {
private Connection connection;
private String query = "select * from TBBW2_STATUS order by STATUS";
public TbBW2StatusDao(Connection conn){
connection = conn;
}
public List<TbBW2Status> getStatus(){
Statement statement = null;
ResultSet rs = null;
List<TbBW2Status> list = new ArrayList<TbBW2Status>();
try {
statement = connection.createStatement();
rs = statement.executeQuery(query);
TbBW2Status tbBWStatus = null;
while (rs.next()) {
tbBWStatus = new TbBW2Status();
tbBWStatus.setStatus(rs.getString("STATUS"));
list.add(tbBWStatus);
}
statement.close();
connection.close();
} catch (SQLException exception) {
try {
statement.close();
connection.close();
} catch (SQLException ex) {
Logger.getLogger(TbComTMPDao.class.getName()).log(Level.SEVERE, null, ex);
}
}
return list;
}
}
|
[
"mau.wahid@gmail.com"
] |
mau.wahid@gmail.com
|
12b8ffabc15d1ba5dab9db3d9606791bf64e2971
|
5a076617e29016fe75d6421d235f22cc79f8f157
|
/Angle v1.0/src/com/android/angle/AngleActivity.java
|
5d9eb065bc23471f15e115d294b6f6b62d636600
|
[] |
no_license
|
dddddttttt/androidsourcecodes
|
516b8c79cae7f4fa71b97a2a470eab52844e1334
|
3d13ab72163bbeed2ef226a476e29ca79766ea0b
|
refs/heads/master
| 2020-08-17T01:38:54.095515
| 2018-04-08T15:17:24
| 2018-04-08T15:17:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,046
|
java
|
package com.android.angle;
import java.io.IOException;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;
/**
* Main Activity
*
* @author Ivan Pajuelo
*
*/
public class AngleActivity extends Activity
{
public AngleSurfaceView mGLSurfaceView; // The main GL View
public XmlPullParser xmlParser;
protected AngleUI mCurrentUI = null;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
try
{
Thread.sleep(100);
mGLSurfaceView = new AngleSurfaceView(this);
mGLSurfaceView.setAwake(true);
mGLSurfaceView.start();
}
catch (InterruptedException e)
{
e.printStackTrace();
}
}
/**
* Set the current user interface
*
* @param currentUI
*/
public void setUI(AngleUI currentUI)
{
if (mCurrentUI != currentUI)
{
if (mCurrentUI != null)
{
mCurrentUI.onDeactivate();
mGLSurfaceView.removeObject(mCurrentUI);
}
mCurrentUI = currentUI;
if (mCurrentUI != null)
{
mCurrentUI.onActivate();
mGLSurfaceView.addObject(mCurrentUI);
}
}
}
@Override
public boolean onTouchEvent(MotionEvent event)
{
if (mCurrentUI != null)
if (mCurrentUI.onTouchEvent(event))
return true;
return super.onTouchEvent(event);
}
@Override
public boolean onTrackballEvent(MotionEvent event)
{
if (mCurrentUI != null)
if (mCurrentUI.onTrackballEvent(event))
return true;
return super.onTrackballEvent(event);
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
if (mCurrentUI != null)
if (mCurrentUI.onKeyDown(keyCode, event))
return true;
return super.onKeyDown(keyCode, event);
}
@Override
protected void onPause()
{
super.onPause();
mGLSurfaceView.onPause();
if (mCurrentUI != null)
mCurrentUI.onPause();
}
@Override
protected void onResume()
{
super.onResume();
mGLSurfaceView.onResume();
if (mCurrentUI != null)
mCurrentUI.onResume();
}
@Override
public void finish()
{
mGLSurfaceView.delete();
super.finish();
}
public boolean executeXML(int resId)
{
xmlParser = getResources().getXml(resId);
Log.d("XML", "executeXML " + resId);
return nextXMLCommand();
}
public boolean nextXMLCommand()
{
try
{
xmlParser.next();
while ( ((xmlParser.getEventType() != XmlPullParser.START_TAG)|| (xmlParser.getDepth() != 2)) && (xmlParser.getEventType() != XmlPullParser.END_DOCUMENT) )
xmlParser.next();// skip comments
if (xmlParser.getEventType() != XmlPullParser.END_DOCUMENT)
{
Log.d("XML", "nextXMLCommand");
executeXMLCommand(xmlParser.getName().toLowerCase());
return true;
}
else
executeXMLCommand(null);
}
catch (XmlPullParserException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}
return false;
}
protected void executeXMLCommand(String command)
{
}
}
|
[
"harry.han@gmail.com"
] |
harry.han@gmail.com
|
fbaa21dda7a60d453f2d263ab5c0b2512ee41a6f
|
520eecc1e9b24989fe22cd0e84d4a198293e61dc
|
/app/src/main/java/com/example/login/model/ChangeDocumentSendRequest.java
|
b730ea069a0f1fd1e161bece1afdbbae4b57ac5c
|
[] |
no_license
|
nguyenkiemhieu1/loginVNPT
|
985e5450dc5c2a08f1a5bed6fb8121ce664e893b
|
cc22259bc11232cd708f2935c81e21399b208692
|
refs/heads/master
| 2023-02-23T02:41:01.434336
| 2021-01-25T14:07:04
| 2021-01-25T14:07:04
| 321,529,283
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,428
|
java
|
package com.example.login.model;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@AllArgsConstructor(suppressConstructorProperties = true)
@NoArgsConstructor
public class ChangeDocumentSendRequest {
@SerializedName("docId")
@Setter
@Getter
private String docId;
@SerializedName("chuTri")
@Setter @Getter
private String chuTri;
@SerializedName("phoiHop")
@Setter @Getter
private String phoiHop;
@SerializedName("sFunc")
@Setter @Getter
private String sFunc;
@SerializedName("sApproved")
@Setter @Getter
private String sApproved;
@SerializedName("sMore")
@Setter @Getter
private String sMore;
@SerializedName("act")
@Setter @Getter
private String act;
@SerializedName("assigner")
@Setter @Getter
private String assigner;
@SerializedName("dongGui")
@Setter @Getter
private String dongGui;
@SerializedName("formId")
@Setter @Getter
private String formId;
@SerializedName("sendType")
@Setter @Getter
private String sendType;
@SerializedName("job")
@Setter @Getter
private int job;
@SerializedName("hanXuLy")
@Setter @Getter
private String hanXuLy;
@SerializedName("files")
@Setter @Getter
private List<Object> files;
}
|
[
"hieunguyen18021999@gmail.com"
] |
hieunguyen18021999@gmail.com
|
2f847e5ef6b7dd211ebd37abf0e6bf0accafaf14
|
f8687ed371b2cc82cbb94cb0eee718fda51d9d90
|
/Persistence/egovframework.rte.psl.data.jpa/src/test/java/egovframework/rte/psl/data/jpa/repository/ArticleRepository.java
|
33275c74ae7caa21bdb08d138c6303ae42067366
|
[
"Apache-2.0"
] |
permissive
|
ddONGzaru/egovframework.rte.root
|
bdafd4c4c20a245bb3e059b829c10e51bac34fd3
|
5fae80337e05697f5e2242a69a9c91767eb00509
|
refs/heads/master
| 2021-01-17T08:33:01.048440
| 2013-07-30T01:04:23
| 2013-07-30T01:04:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 246
|
java
|
package egovframework.rte.psl.data.jpa.repository;
import org.springframework.data.repository.CrudRepository;
import egovframework.rte.psl.data.jpa.domain.Article;
public interface ArticleRepository extends CrudRepository<Article, Long> {
}
|
[
"whiteship@epril.com"
] |
whiteship@epril.com
|
17d28e659db347e329aa2d8fe67c15b2c93dd84c
|
a602903c73834edbd6b1161dd202d1e36428a7ca
|
/Java/restassured.sandata.interop/src/test/java/openevv/PA/Member/R2223_TC94708_OpenEVV_Member_ClientCity_Length.java
|
cb180f0cec80c8612f43eaefa88e165875fa00c6
|
[] |
no_license
|
PharahPhat/Selenium
|
e5e0ce5ca91708f63005fe205b061f23f1cd2c8e
|
572fcf773c9e70b7ac168752d11c11b24837cab9
|
refs/heads/master
| 2022-12-08T12:59:52.010706
| 2020-04-01T04:49:04
| 2020-04-01T04:49:04
| 143,975,962
| 0
| 0
| null | 2022-12-06T00:44:30
| 2018-08-08T07:20:16
|
Java
|
UTF-8
|
Java
| false
| false
| 3,989
|
java
|
/**
*
*/
package openevv.PA.Member;
import Utills_ExtentReport_Log4j.BaseTest;
import com.globalMethods.core.CommonMethods;
import com.globalMethods.core.GenerateUniqueParam;
import com.globalMethods.core.globalVariables;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.ParseException;
import org.testng.annotations.Test;
import java.io.IOException;
//Test Case 94708: OpenEVV Member: Validate maximum length for ClientCity (MemberCity)(30)
public class R2223_TC94708_OpenEVV_Member_ClientCity_Length extends BaseTest {
private GenerateUniqueParam GenerateUniqueParam=new GenerateUniqueParam();
@Test(groups = {"All"})
public void R2223_TC94708_OpenEVV_Member_ClientCity_MaxLength() throws InterruptedException, IOException, ParseException, java.text.ParseException
{
// logger = extent.startTest("R2223_TC94708_OpenEVV_Member_ClientCity_MaxLength");
JSONArray jsonArray = GenerateUniqueParam.MemberParams_OpenEVV(globalVariables.openevv_member_json);
JSONObject jsonObject = (JSONObject) jsonArray.get(0);
JSONArray jsonArrayProg = (JSONArray) jsonObject.get("ClientAddress");
JSONObject jsonObjectProg = (JSONObject) jsonArrayProg.get(1);
jsonObjectProg.put(globalVariables.ClientCity, CommonMethods.generateRandomStringOfFixLength(30));
CommonMethods.validateResponse(jsonArray,
CommonMethods.propertyfileReader(globalVariables.member_post_url));
}
@Test(groups = {"All"})
public void R2223_TC94708_OpenEVV_Member_ClientCity_minLength() throws InterruptedException, IOException, ParseException, java.text.ParseException
{
// logger = extent.startTest("R2223_TC94708_OpenEVV_Member_ClientCity_minLength");
JSONArray jsonArray = GenerateUniqueParam.MemberParams_OpenEVV(globalVariables.openevv_member_json);
JSONObject jsonObject = (JSONObject) jsonArray.get(0);
JSONArray jsonArrayProg = (JSONArray) jsonObject.get("ClientAddress");
JSONObject jsonObjectProg = (JSONObject) jsonArrayProg.get(1);
jsonObjectProg.put(globalVariables.ClientCity,CommonMethods.generateRandomStringOfFixLength(1));
CommonMethods.validateResponse(jsonArray,
CommonMethods.propertyfileReader(globalVariables.member_post_url));
}
@Test(groups = {"All"})
public void R2223_TC94708_OpenEVV_Member_ClientCity_MaxLength_Exceeds() throws InterruptedException, java.text.ParseException, IOException, ParseException
{
// logger = extent.startTest("R2223_TC94708_OpenEVV_Member_ClientCity_MaxLength_Exceeds");
JSONArray jsonArray = GenerateUniqueParam.MemberParams_OpenEVV(globalVariables.openevv_member_json);
JSONObject jsonObject = (JSONObject) jsonArray.get(0);
JSONArray jsonArrayProg = (JSONArray) jsonObject.get("ClientAddress");
JSONObject jsonObjectProg = (JSONObject) jsonArrayProg.get(0);
jsonObjectProg.put(globalVariables.ClientCity, CommonMethods.generateRandomStringOfFixLength(35));
String bodyAsString = CommonMethods.capturePostResponse(jsonArray,
CommonMethods.propertyfileReader(globalVariables.member_post_url));
CommonMethods.verifyjsonassertFailcase(bodyAsString, globalVariables.ClientCitylength_error);
}
@Test(groups = {"All"})
public void R2223_TC94708_OpenEVV_Member_ClientCity_null() throws InterruptedException, java.text.ParseException, IOException, ParseException
{
// logger = extent.startTest("R2223_TC94708_OpenEVV_Member_ClientCity_null");
JSONArray jsonArray = GenerateUniqueParam.MemberParams_OpenEVV(globalVariables.openevv_member_json);
JSONObject jsonObject = (JSONObject) jsonArray.get(0);
JSONArray jsonArrayProg = (JSONArray) jsonObject.get("ClientAddress");
JSONObject jsonObjectProg = (JSONObject) jsonArrayProg.get(0);
jsonObjectProg.put(globalVariables.ClientCity, null);
String bodyAsString = CommonMethods.capturePostResponse(jsonArray,
CommonMethods.propertyfileReader(globalVariables.member_post_url));
CommonMethods.verifyjsonassertFailcase(bodyAsString, globalVariables.ClientCity_nullerror);
}
}
|
[
"phattnguyen@kms-technology.com"
] |
phattnguyen@kms-technology.com
|
8867523022e65ec566075eab64a9237c0591a7e9
|
d71e879b3517cf4fccde29f7bf82cff69856cfcd
|
/ExtractedJars/Ibotta_com.ibotta.android/javafiles/android/support/design/widget/ViewOffsetBehavior.java
|
9ea8bebd8edf16893ae013bbfde4570c8b3bf193
|
[
"MIT"
] |
permissive
|
Andreas237/AndroidPolicyAutomation
|
b8e949e072d08cf6c6166c3f15c9c63379b8f6ce
|
c1ed10a2c6d4cf3dfda8b8e6291dee2c2a15ee8a
|
refs/heads/master
| 2020-04-10T02:14:08.789751
| 2019-05-16T19:29:11
| 2019-05-16T19:29:11
| 160,739,088
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,118
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.support.design.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
// Referenced classes of package android.support.design.widget:
// ViewOffsetHelper, CoordinatorLayout
class ViewOffsetBehavior extends CoordinatorLayout.Behavior
{
public ViewOffsetBehavior()
{
// 0 0:aload_0
// 1 1:invokespecial #14 <Method void CoordinatorLayout$Behavior()>
tempTopBottomOffset = 0;
// 2 4:aload_0
// 3 5:iconst_0
// 4 6:putfield #16 <Field int tempTopBottomOffset>
tempLeftRightOffset = 0;
// 5 9:aload_0
// 6 10:iconst_0
// 7 11:putfield #18 <Field int tempLeftRightOffset>
// 8 14:return
}
public ViewOffsetBehavior(Context context, AttributeSet attributeset)
{
super(context, attributeset);
// 0 0:aload_0
// 1 1:aload_1
// 2 2:aload_2
// 3 3:invokespecial #22 <Method void CoordinatorLayout$Behavior(Context, AttributeSet)>
tempTopBottomOffset = 0;
// 4 6:aload_0
// 5 7:iconst_0
// 6 8:putfield #16 <Field int tempTopBottomOffset>
tempLeftRightOffset = 0;
// 7 11:aload_0
// 8 12:iconst_0
// 9 13:putfield #18 <Field int tempLeftRightOffset>
// 10 16:return
}
public int getTopAndBottomOffset()
{
ViewOffsetHelper viewoffsethelper = viewOffsetHelper;
// 0 0:aload_0
// 1 1:getfield #26 <Field ViewOffsetHelper viewOffsetHelper>
// 2 4:astore_1
if(viewoffsethelper != null)
//* 3 5:aload_1
//* 4 6:ifnull 14
return viewoffsethelper.getTopAndBottomOffset();
// 5 9:aload_1
// 6 10:invokevirtual #30 <Method int ViewOffsetHelper.getTopAndBottomOffset()>
// 7 13:ireturn
else
return 0;
// 8 14:iconst_0
// 9 15:ireturn
}
protected void layoutChild(CoordinatorLayout coordinatorlayout, View view, int i)
{
coordinatorlayout.onLayoutChild(view, i);
// 0 0:aload_1
// 1 1:aload_2
// 2 2:iload_3
// 3 3:invokevirtual #38 <Method void CoordinatorLayout.onLayoutChild(View, int)>
// 4 6:return
}
public boolean onLayoutChild(CoordinatorLayout coordinatorlayout, View view, int i)
{
layoutChild(coordinatorlayout, view, i);
// 0 0:aload_0
// 1 1:aload_1
// 2 2:aload_2
// 3 3:iload_3
// 4 4:invokevirtual #43 <Method void layoutChild(CoordinatorLayout, View, int)>
if(viewOffsetHelper == null)
//* 5 7:aload_0
//* 6 8:getfield #26 <Field ViewOffsetHelper viewOffsetHelper>
//* 7 11:ifnonnull 26
viewOffsetHelper = new ViewOffsetHelper(view);
// 8 14:aload_0
// 9 15:new #28 <Class ViewOffsetHelper>
// 10 18:dup
// 11 19:aload_2
// 12 20:invokespecial #46 <Method void ViewOffsetHelper(View)>
// 13 23:putfield #26 <Field ViewOffsetHelper viewOffsetHelper>
viewOffsetHelper.onViewLayout();
// 14 26:aload_0
// 15 27:getfield #26 <Field ViewOffsetHelper viewOffsetHelper>
// 16 30:invokevirtual #49 <Method void ViewOffsetHelper.onViewLayout()>
i = tempTopBottomOffset;
// 17 33:aload_0
// 18 34:getfield #16 <Field int tempTopBottomOffset>
// 19 37:istore_3
if(i != 0)
//* 20 38:iload_3
//* 21 39:ifeq 56
{
viewOffsetHelper.setTopAndBottomOffset(i);
// 22 42:aload_0
// 23 43:getfield #26 <Field ViewOffsetHelper viewOffsetHelper>
// 24 46:iload_3
// 25 47:invokevirtual #53 <Method boolean ViewOffsetHelper.setTopAndBottomOffset(int)>
// 26 50:pop
tempTopBottomOffset = 0;
// 27 51:aload_0
// 28 52:iconst_0
// 29 53:putfield #16 <Field int tempTopBottomOffset>
}
i = tempLeftRightOffset;
// 30 56:aload_0
// 31 57:getfield #18 <Field int tempLeftRightOffset>
// 32 60:istore_3
if(i != 0)
//* 33 61:iload_3
//* 34 62:ifeq 79
{
viewOffsetHelper.setLeftAndRightOffset(i);
// 35 65:aload_0
// 36 66:getfield #26 <Field ViewOffsetHelper viewOffsetHelper>
// 37 69:iload_3
// 38 70:invokevirtual #56 <Method boolean ViewOffsetHelper.setLeftAndRightOffset(int)>
// 39 73:pop
tempLeftRightOffset = 0;
// 40 74:aload_0
// 41 75:iconst_0
// 42 76:putfield #18 <Field int tempLeftRightOffset>
}
return true;
// 43 79:iconst_1
// 44 80:ireturn
}
public boolean setTopAndBottomOffset(int i)
{
ViewOffsetHelper viewoffsethelper = viewOffsetHelper;
// 0 0:aload_0
// 1 1:getfield #26 <Field ViewOffsetHelper viewOffsetHelper>
// 2 4:astore_2
if(viewoffsethelper != null)
//* 3 5:aload_2
//* 4 6:ifnull 15
{
return viewoffsethelper.setTopAndBottomOffset(i);
// 5 9:aload_2
// 6 10:iload_1
// 7 11:invokevirtual #53 <Method boolean ViewOffsetHelper.setTopAndBottomOffset(int)>
// 8 14:ireturn
} else
{
tempTopBottomOffset = i;
// 9 15:aload_0
// 10 16:iload_1
// 11 17:putfield #16 <Field int tempTopBottomOffset>
return false;
// 12 20:iconst_0
// 13 21:ireturn
}
}
private int tempLeftRightOffset;
private int tempTopBottomOffset;
private ViewOffsetHelper viewOffsetHelper;
}
|
[
"silenta237@gmail.com"
] |
silenta237@gmail.com
|
ba5dc400d45ede9d97aa034f740cc4782f8b98ee
|
e466207ae77f6d74e2a106f5e43256e31e7999e9
|
/src/main/java/com/efimov/process/service/impl/ConsumerServiceImpl.java
|
91964187f665e80af16f5f4571ae602889118819
|
[] |
no_license
|
Usernumber123/process
|
d5bb5255048162767aef1b95fabcce6a3256e859
|
3c751d0127b7d3bf4227fd7901633ae1d9640995
|
refs/heads/master
| 2023-07-18T21:31:30.924881
| 2021-09-17T09:35:23
| 2021-09-17T09:35:23
| 394,652,816
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,095
|
java
|
package com.efimov.process.service.impl;
import com.efimov.process.model.Message;
import com.efimov.process.service.ConsumerService;
import com.efimov.process.service.ForbiddenWordsStoreService;
import com.efimov.process.service.ProducerService;
import com.efimov.process.service.StringParserService;
import lombok.RequiredArgsConstructor;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Service;
@Service
@RequiredArgsConstructor
public class ConsumerServiceImpl implements ConsumerService {
public static final String MESSAGE_FOR_CENSURED_TOPIC = "messageForCensuredTopic";
public static final String REGISTRATION_FORBIDDEN_WORDS_TOPIC = "registrationForbiddenWordsTopic";
public static final String DELETE_FORBIDDEN_WORDS_TOPIC = "deleteForbiddenWordsTopic";
public static final String LISTENER_ID_1 = "listenerId1";
public static final String LISTENER_ID_2 = "listenerId2";
public static final String LISTENER_ID_3 = "listenerId3";
private final StringParserService stringParserService;
private final ProducerService producerService;
private final ForbiddenWordsStoreService forbiddenWordsService;
@Override
@KafkaListener(id = LISTENER_ID_1, topics = MESSAGE_FOR_CENSURED_TOPIC)
public void messageForCensuredListener(ConsumerRecord<String, Object> record) {
Message message = stringParserService.stringParse(record.value().toString());
producerService.sendMessageForStore(message);
}
@Override
@KafkaListener(id = LISTENER_ID_2, topics = REGISTRATION_FORBIDDEN_WORDS_TOPIC)
public void forbiddenWordsListener(ConsumerRecord<String, Object> record) {
forbiddenWordsService.saveForbiddenWord(record.value().toString());
}
@Override
@KafkaListener(id = LISTENER_ID_3, topics = DELETE_FORBIDDEN_WORDS_TOPIC)
public void deleteForbiddenWordsListener(ConsumerRecord<String, Object> record) {
forbiddenWordsService.deleteForbiddenWord(record.value().toString());
}
}
|
[
"d"
] |
d
|
04f4c254ef3c1b65d033c633ba8e5b13275b5bf2
|
17181bbb5b7f6316ff9d48766598b9b1ffb0710d
|
/video/src/main/java/com/yunbao/video/adapter/VideoShareAdapter.java
|
af76accd0495f657dd81b8656f7e59158ac5d00c
|
[] |
no_license
|
hyb1234hi/anyu_an
|
91c177f7af121f1e9dd64f73584646cac3e82a1f
|
1fa94f31602a704fa0dda4dfea8b03a66ffa09c5
|
refs/heads/main
| 2023-07-29T08:39:32.230456
| 2021-09-06T01:55:59
| 2021-09-06T01:55:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,430
|
java
|
package com.yunbao.video.adapter;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.yunbao.common.interfaces.OnItemClickListener;
import com.yunbao.common.mob.MobBean;
import com.yunbao.video.R;
import java.util.List;
/**
* Created by cxf on 2018/10/19.
* 视频分享
*/
public class VideoShareAdapter extends RecyclerView.Adapter<VideoShareAdapter.Vh> {
private List<MobBean> mList;
private LayoutInflater mInflater;
private View.OnClickListener mOnClickListener;
private OnItemClickListener<MobBean> mOnItemClickListener;
public VideoShareAdapter(Context context, List<MobBean> list) {
mList = list;
mInflater = LayoutInflater.from(context);
mOnClickListener = new View.OnClickListener() {
@Override
public void onClick(View v) {
Object tag = v.getTag();
if (tag != null) {
if (mOnItemClickListener != null) {
mOnItemClickListener.onItemClick((MobBean) tag, 0);
}
}
}
};
}
public void setOnItemClickListener(OnItemClickListener<MobBean> onItemClickListener) {
mOnItemClickListener = onItemClickListener;
}
@NonNull
@Override
public Vh onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
return new Vh(mInflater.inflate(R.layout.item_video_share, parent, false));
}
@Override
public void onBindViewHolder(@NonNull Vh vh, int position) {
vh.setData(mList.get(position));
}
@Override
public int getItemCount() {
return mList.size();
}
class Vh extends RecyclerView.ViewHolder {
ImageView mIcon;
TextView mName;
public Vh(View itemView) {
super(itemView);
mIcon = (ImageView) itemView.findViewById(R.id.icon);
mName = (TextView) itemView.findViewById(R.id.name);
itemView.setOnClickListener(mOnClickListener);
}
void setData(MobBean bean) {
itemView.setTag(bean);
mIcon.setImageResource(bean.getIcon1());
mName.setText(bean.getName());
}
}
}
|
[
"qiuql@daqsoft.com"
] |
qiuql@daqsoft.com
|
314f6e569508773791f847ae1759bee1bf9614fe
|
315af64ea65cc45354e8a393ab2b9aa13337b446
|
/cofpasgers/src/main/java/com/huiketong/cofpasgers/json/data/ExcelData.java
|
b6d9254310a450385a7b94bda3ebc4581f6c6bf3
|
[
"Apache-2.0"
] |
permissive
|
ZuofeiGithub/javaweb_huiketong
|
3d7d3777f9081101fa1fc4ac6bdb25ff96010b23
|
0c2e630fd1be9a0ecf02230acf6b82e9b6bc8b2c
|
refs/heads/master
| 2020-04-19T08:01:30.179765
| 2019-05-28T07:58:26
| 2019-05-28T07:58:26
| 168,064,380
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 796
|
java
|
package com.huiketong.cofpasgers.json.data;
import java.io.Serializable;
import java.util.List;
public class ExcelData implements Serializable {
private static final long serialVersionUID = 4444017239100620999L;
// 表头
private List<String> titles;
// 数据
private List<List<Object>> rows;
// 页签名称
private String name;
public List<String> getTitles() {
return titles;
}
public void setTitles(List<String> titles) {
this.titles = titles;
}
public List<List<Object>> getRows() {
return rows;
}
public void setRows(List<List<Object>> rows) {
this.rows = rows;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
[
"348068347@qq.com"
] |
348068347@qq.com
|
ed72df93127987ec2bd921ba619fc40f71901102
|
f092877c3dc58880dbc648aaeed3e424ba4a61fc
|
/src/main/java/exercises/ex2/BookRepository.java
|
9dc45795858a6125315904791f5d690513c45b4c
|
[] |
no_license
|
MikiKru/java_adv_sda
|
a39f645fd54242fbfb814bdce8cf83bc96a0bfb7
|
b489fa0a97cadc8da9582bc8a51b57ff43d3a177
|
refs/heads/master
| 2023-04-18T23:35:09.259072
| 2021-04-26T13:57:29
| 2021-04-26T13:57:29
| 359,376,985
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 343
|
java
|
package exercises.ex2;
import java.util.ArrayList;
import java.util.List;
public interface BookRepository {
List<Book> books = new ArrayList<>();
void addBook(String isbn, String title, String author, int publicationDate);
Book getBookByTitle(String title);
Book getBookByIndex(int index);
void removeBook(int index);
}
|
[
"michal_kruczkowski@o2.pl"
] |
michal_kruczkowski@o2.pl
|
29115ad85db2a2b8d3a91b1802517d28acd0b126
|
fe6525533f19e76ad5385b9016ee0aeb852b6d2a
|
/src/CRUDs/CRUDJugadores.java
|
11caeeef749b0db939b4d1a0ce95c836aead5e75
|
[] |
no_license
|
Cinthy-sophia/AutocartasRest
|
a0991ab3cf5cd0c060d474316e1dae95648c139f
|
9072a2a5d9897fd3ad1d885d533df5c98a44a8f8
|
refs/heads/master
| 2023-04-07T11:45:47.778942
| 2020-02-26T23:25:38
| 2020-02-26T23:25:38
| 242,207,771
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,608
|
java
|
package CRUDs;
import java.util.ArrayList;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.apache.commons.lang3.StringUtils;
import org.glassfish.jersey.server.ResourceConfig;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.query.Query;
import com.google.gson.Gson;
import Clases.HibernateUtil;
import Clases.Jugadas;
import Clases.Jugadores;
import Clases.Partidas;
@Path("/jugadores")
public class CRUDJugadores extends ResourceConfig {
private SessionFactory sessionF = HibernateUtil.getSessionFactory();
private Session session;
private Transaction transaction;
/**
* Muestra los jugadores que existen en la base de datos
* @return
*/
@GET
@Produces(MediaType.APPLICATION_JSON)
public Response obtenerPartidas() {
ArrayList<Jugadores> jugadores = new ArrayList<>();
session = sessionF.openSession();
transaction = session.beginTransaction();
Query q = session.createQuery("from Jugadores");
if(q.list().size()!=0) {
jugadores =(ArrayList<Jugadores>) q.list();
}
Gson g = new Gson();
return Response.status(Response.Status.OK).entity(g.toJson(jugadores)).build();
}
/**
* Insertamos un nuevo jugador a la base de datos para que pueda ser utilizado en una partida.
* Recibe el jugador, y luego comprueba que no exista en la base de datos, para luego insertarlo.
* @param jugador
* @return
*/
@POST
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@Produces(MediaType.APPLICATION_JSON)
public Response insertarJugadores(@FormParam("nick") String nick, @FormParam("password") String password) {
ArrayList<Jugadores> jugadores = new ArrayList<>();
Gson g = new Gson();
session = sessionF.openSession();
transaction = session.beginTransaction();
Query q = session.createQuery("from Jugadores");
if(q.list().size()!=0) {
jugadores =(ArrayList<Jugadores>) q.list();
}
for (Jugadores jug : jugadores) {
if(nick.equalsIgnoreCase(jug.getNick())) {
//Si encuentra una con el mismo id, no la inserta y devuelve null
return Response.status(Response.Status.OK).entity(g.toJson(null)).build();
}
}
Jugadores j = new Jugadores(nick,password,0,0,0);
session.save(j);
transaction.commit();
//Si ha podido ser insertada la muestra
return Response.status(Response.Status.OK).entity(g.toJson(j)).build();
}
/**
* Reemplaza un jugado por el que recibe como parametro en la base de datos
* @return
*/
@PUT
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@Produces(MediaType.APPLICATION_JSON)
public Response actualizarJugadores(@FormParam("jugador")String jugador) {
ArrayList<Jugadores> jugadores = new ArrayList<>();
Gson g = new Gson();
session = sessionF.openSession();
transaction = session.beginTransaction();
Query q = session.createQuery("from Jugadores");
Jugadores j = g.fromJson(jugador, Jugadores.class);
if(q.list().size()!=0) {
jugadores =(ArrayList<Jugadores>) q.list();
}
for (Jugadores jug : jugadores) {
if(j.getNick().equalsIgnoreCase(jug.getNick())) {
session.update(j);
transaction.commit();
//Si el jugador ha sido actualizado regresa el jugador cambiado
return Response.status(Response.Status.OK).entity(g.toJson(j)).build();
}
}
//Si no ha podido ser actualizado devuelve null
return Response.status(Response.Status.OK).entity(g.toJson(null)).build();
}
/**
* Elimina el jugador indicado de la base de datos
* @return
*/
@DELETE
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
public Response borrarJugadores(@FormParam("jugador")String jugador) {
ArrayList<Jugadores> jugadores = new ArrayList<>();
Gson g = new Gson();
session = sessionF.openSession();
transaction = session.beginTransaction();
Query q = session.createQuery("from Jugadores");
if(q.list().size()!=0) {
jugadores =(ArrayList<Jugadores>) q.list();
}
Jugadores j = g.fromJson(jugador, Jugadores.class);
for (Jugadores jug : jugadores) {
if(j.getNick().equalsIgnoreCase(jug.getNick())) {
session.delete(jug);
transaction.commit();
//Regresa el objeto borrado
return Response.status(Response.Status.OK).entity(g.toJson(jug)).build();
}
}
//no pudo ser borrado
return Response.status(Response.Status.OK).entity(null).build();
}
}
|
[
"you@example.com"
] |
you@example.com
|
51636b6fc388d31bc4716caefa2a69872a5a521f
|
b0dbf0f5ff8ca96b1732d01ef0c00fa3029dc8ee
|
/src/main/java/thevixen/powers/AbstractTheVixenPower.java
|
fc6abaa734932c9c3e9d2881049bf36cd67c96f1
|
[] |
no_license
|
a-personal-account/thevixen
|
8a0c01652104de277dd22ec6f8cbd2d2df75bfb1
|
23d63a24df9a81d915513fc4c9a6cef2e27fb5af
|
refs/heads/master
| 2023-03-06T11:04:01.091824
| 2023-02-22T11:32:34
| 2023-02-22T11:32:34
| 190,781,722
| 0
| 0
| null | 2020-01-15T07:09:40
| 2019-06-07T17:13:51
|
Java
|
UTF-8
|
Java
| false
| false
| 722
|
java
|
package thevixen.powers;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.megacrit.cardcrawl.powers.AbstractPower;
import thevixen.TheVixenMod;
import thevixen.helpers.AssetLoader;
public class AbstractTheVixenPower extends AbstractPower {
private static final String BASE_DIR = TheVixenMod.getResourcePath("powers/");
public AbstractTheVixenPower(String imgName) {
this.region128 =
new TextureAtlas.AtlasRegion(
AssetLoader.loadImage(BASE_DIR + "128/" + imgName), 0, 0, 128, 128);
this.region48 =
new TextureAtlas.AtlasRegion(
AssetLoader.loadImage(BASE_DIR + "48/" + imgName), 0, 0, 48, 48);
}
}
|
[
"razash@gmail.com"
] |
razash@gmail.com
|
d037ec8555866ccc13b0ac662343eccf31e1a22e
|
4699828c261e133a71e8412426db031fcf5fb39f
|
/app/src/main/java/com/powerrich/office/oa/bean/VersionInfoBean.java
|
d3bb93e8aed3a0dbe802009d9a1b22e3ad958167
|
[] |
no_license
|
huyuanhao/Office
|
b63b65db696ed09f84d782622d06b7c7093d2c20
|
162cdc43e0117e624ef067d36ad6e5545fa47934
|
refs/heads/master
| 2020-06-12T07:58:01.055734
| 2019-06-28T08:36:20
| 2019-06-28T08:36:20
| 194,238,082
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,629
|
java
|
package com.powerrich.office.oa.bean;
import android.text.TextUtils;
import java.io.Serializable;
/**
* @author MingPeng
* @date 2018/1/25
*/
public class VersionInfoBean implements Serializable {
/**
* APKSIZE : 10M
* CONTENT : 基础版本
* DATATIME : 2018-01-25 11:37:29
* DOWNPATH : /xzsp/20180125/201801251137281882880760306
* FILENAME : iyingtan.apk
* FILETYPE : apk
* HDFSFILENAME : 1516851448138_iyingtan.apk
* ISFORCE : 0 是否强制更新 0是 1否
* PROJECT_ID : 201801251137294480965450146
* SYSNO : 1 app类型 0为ios 1为android
* URL : /xzsp/20180125/201801251137281882880760306
* VERCODE : 0.1.0
* VERNAME : iyingtan
*/
private String APKSIZE;
private String CONTENT;
private String DATATIME;
private String DOWNPATH;
private String FILENAME;
private String FILETYPE;
private String HDFSFILENAME;
/**
* 是否强制更新 0是 1否
*/
private String ISFORCE;
private String PROJECT_ID;
/**
* app类型 0为ios 1为android
*/
private String SYSNO;
private String URL;
private String VERCODE;
private String VERNAME;
public String getAPKSIZE() {
return APKSIZE;
}
public long getApkByteSize() {
if (!TextUtils.isEmpty(APKSIZE)) {
if (APKSIZE.endsWith("M") || APKSIZE.endsWith("MB")) {
return Long.parseLong(APKSIZE.split("M")[0]) * 1024 * 1024;
}
if (APKSIZE.endsWith("K") || APKSIZE.endsWith("KB")) {
return Long.parseLong(APKSIZE.split("K")[0]) * 1024;
}
}
return Long.parseLong(APKSIZE);
}
public void setAPKSIZE(String APKSIZE) {
this.APKSIZE = APKSIZE.toUpperCase();
}
public String getCONTENT() {
return CONTENT;
}
public void setCONTENT(String CONTENT) {
this.CONTENT = CONTENT;
}
public String getDATATIME() {
return DATATIME;
}
public void setDATATIME(String DATATIME) {
this.DATATIME = DATATIME;
}
public String getDOWNPATH() {
return DOWNPATH;
}
public void setDOWNPATH(String DOWNPATH) {
this.DOWNPATH = DOWNPATH;
}
public String getFILENAME() {
return FILENAME;
}
public void setFILENAME(String FILENAME) {
this.FILENAME = FILENAME;
}
public String getFILETYPE() {
return FILETYPE;
}
public void setFILETYPE(String FILETYPE) {
this.FILETYPE = FILETYPE;
}
public String getHDFSFILENAME() {
return HDFSFILENAME;
}
public void setHDFSFILENAME(String HDFSFILENAME) {
this.HDFSFILENAME = HDFSFILENAME;
}
public boolean getISFORCE() {
return "0".equals(ISFORCE);
}
public void setISFORCE(String ISFORCE) {
this.ISFORCE = ISFORCE;
}
public String getPROJECT_ID() {
return PROJECT_ID;
}
public void setPROJECT_ID(String PROJECT_ID) {
this.PROJECT_ID = PROJECT_ID;
}
public String getSYSNO() {
return SYSNO;
}
public void setSYSNO(String SYSNO) {
this.SYSNO = SYSNO;
}
public String getURL() {
return URL;
}
public void setURL(String URL) {
this.URL = URL;
}
public String getVERCODE() {
return VERCODE;
}
public void setVERCODE(String VERCODE) {
this.VERCODE = VERCODE;
}
public String getVERNAME() {
return VERNAME;
}
public void setVERNAME(String VERNAME) {
this.VERNAME = VERNAME;
}
}
|
[
"593746220@qq.com"
] |
593746220@qq.com
|
bc6338b5438395bf7b1d8cb11812f40a31f04085
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/apereo--cas/7028e8201d289108088204881900026b80cd4efd/after/RestMultifactorAuthenticationTrustStorage.java
|
e0c18f4208feee0d75c2d7ab9325880fdc9ec1e6
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,729
|
java
|
package org.apereo.cas.trusted.authentication.storage;
import com.google.common.collect.Sets;
import org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;
import java.time.LocalDate;
import java.util.Set;
/**
* This is {@link RestMultifactorAuthenticationTrustStorage}.
*
* @author Misagh Moayyed
* @since 5.0.0
*/
public class RestMultifactorAuthenticationTrustStorage extends BaseMultifactorAuthenticationTrustStorage {
private String endpoint;
public RestMultifactorAuthenticationTrustStorage(final String endpoint) {
this.endpoint = endpoint;
}
@Override
public Set<MultifactorAuthenticationTrustRecord> get(final String principal) {
final String url = (!this.endpoint.endsWith("/") ? this.endpoint.concat("/") : this.endpoint).concat(principal);
return getResults(url);
}
@Override
public void expire(final LocalDate onOrBefore) {
final RestTemplate restTemplate = new RestTemplate();
restTemplate.postForEntity(this.endpoint, onOrBefore, Object.class);
}
@Override
public void expire(final String key) {
final RestTemplate restTemplate = new RestTemplate();
restTemplate.postForEntity(this.endpoint, key, Object.class);
}
@Override
public Set<MultifactorAuthenticationTrustRecord> get(final LocalDate onOrAfterDate) {
final String url = (!this.endpoint.endsWith("/") ? this.endpoint.concat("/") : this.endpoint).concat(onOrAfterDate.toString());
return getResults(url);
}
@Override
protected MultifactorAuthenticationTrustRecord setInternal(final MultifactorAuthenticationTrustRecord record) {
final RestTemplate restTemplate = new RestTemplate();
final ResponseEntity<Object> response = restTemplate.postForEntity(this.endpoint, record, Object.class);
if (response != null && response.getStatusCode() == HttpStatus.OK) {
return record;
}
return null;
}
private static Set<MultifactorAuthenticationTrustRecord> getResults(final String url) {
final RestTemplate restTemplate = new RestTemplate();
final ResponseEntity<MultifactorAuthenticationTrustRecord[]> responseEntity =
restTemplate.getForEntity(url, MultifactorAuthenticationTrustRecord[].class);
if (responseEntity.getStatusCode() == HttpStatus.OK) {
final MultifactorAuthenticationTrustRecord[] results = responseEntity.getBody();
return Sets.newHashSet(results);
}
return Sets.newHashSet();
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
2150b92aa1156462d53038093c06cd5e0b5197c2
|
6d60a8adbfdc498a28f3e3fef70366581aa0c5fd
|
/codebase/dataset/t3/410_frag1.java
|
176cec530ba0d79c7625d1a8fa95801ef62b16e5
|
[] |
no_license
|
rayhan-ferdous/code2vec
|
14268adaf9022d140a47a88129634398cd23cf8f
|
c8ca68a7a1053d0d09087b14d4c79a189ac0cf00
|
refs/heads/master
| 2022-03-09T08:40:18.035781
| 2022-02-27T23:57:44
| 2022-02-27T23:57:44
| 140,347,552
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,472
|
java
|
public static void benchmarkDoublePWPL2D(int threads) {
ConcurrencyUtils.setNumberOfThreads(threads);
Opener o = new Opener();
ImagePlus blurImage = o.openImage(path + blur_image);
ImagePlus[][] psfImage = new ImagePlus[1][1];
psfImage[0][0] = o.openImage(path + psf_image);
double av_time_deblur = 0;
long elapsedTime_deblur = 0;
System.out.println("Benchmarking DoublePWPL2D using " + threads + " threads");
WPLOptions options = new WPLOptions(0.01, 1.0, 1.0, true, false, false, 0, false, false, false, 0);
for (int i = 0; i < NITER; i++) {
elapsedTime_deblur = System.nanoTime();
WPLDoubleIterativeDeconvolver2D wpl = new WPLDoubleIterativeDeconvolver2D(blurImage, psfImage[0][0], boundary, resizing, output, MAXITER, false, options);
ImagePlus imX = wpl.deconvolve();
elapsedTime_deblur = System.nanoTime() - elapsedTime_deblur;
av_time_deblur = av_time_deblur + elapsedTime_deblur;
wpl = null;
imX = null;
}
blurImage = null;
psfImage = null;
System.out.println("Average execution time (tol = " + PREC_TOL + "): " + String.format(format, av_time_deblur / 1000000000.0 / (double) NITER) + " sec");
writeResultsToFile("DoublePWPL2D_" + threads + "_threads.txt", (double) av_time_deblur / 1000000000.0 / (double) NITER, PREC_TOL);
}
|
[
"aaponcseku@gmail.com"
] |
aaponcseku@gmail.com
|
f70760f2002a822ebb8b5fe0e0b41510ab58d237
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/21/21_6b198cb44af0970af1f180172cbb65945e4bd9a6/ProfileApplication/21_6b198cb44af0970af1f180172cbb65945e4bd9a6_ProfileApplication_t.java
|
75a8f0dcdac52760d984f20866ff26216c05108c
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,317
|
java
|
/**
* Copyright (c) 2008-2010 The Sakai Foundation
*
* Licensed under the Educational Community 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.osedu.org/licenses/ECL-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.sakaiproject.profile2.tool;
import org.apache.wicket.Page;
import org.apache.wicket.Request;
import org.apache.wicket.RequestCycle;
import org.apache.wicket.Response;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.protocol.http.WebRequest;
import org.apache.wicket.protocol.http.WebRequestCycle;
import org.apache.wicket.protocol.http.WebResponse;
import org.apache.wicket.spring.injection.annot.SpringComponentInjector;
import org.sakaiproject.profile2.logic.ProfileLogic;
import org.sakaiproject.profile2.logic.SakaiProxy;
import org.sakaiproject.profile2.service.ProfileImageService;
import org.sakaiproject.profile2.tool.pages.MyProfile;
public class ProfileApplication extends WebApplication {
private transient SakaiProxy sakaiProxy;
private transient ProfileLogic profileLogic;
private transient ProfileImageService profileImageService;
protected void init(){
super.init();
// Configure general Wicket application settings
addComponentInstantiationListener(new SpringComponentInjector(this));
getResourceSettings().setThrowExceptionOnMissingResource(false);
getMarkupSettings().setStripWicketTags(true);
getMarkupSettings().setDefaultBeforeDisabledLink(null);
getMarkupSettings().setDefaultAfterDisabledLink(null);
// On Wicket session timeout, redirect to main page
getApplicationSettings().setPageExpiredErrorPage(MyProfile.class);
getApplicationSettings().setAccessDeniedPage(MyProfile.class);
}
// Throw RuntimeExceptions so they are caught by the Sakai ErrorReportHandler
@Override
public RequestCycle newRequestCycle(Request request, Response response) {
return new WebRequestCycle(this, (WebRequest)request, (WebResponse)response) {
@Override
public Page onRuntimeException(Page page, RuntimeException e) {
throw e;
}
};
}
public ProfileApplication() {
}
//setup homepage
public Class<Dispatcher> getHomePage() {
return Dispatcher.class;
}
//expose SakaiProxy API
public void setSakaiProxy(SakaiProxy sakaiProxy) {
this.sakaiProxy = sakaiProxy;
}
public SakaiProxy getSakaiProxy() {
return sakaiProxy;
}
//expose Profile API
public void setProfileLogic(ProfileLogic profileLogic) {
this.profileLogic = profileLogic;
}
public ProfileLogic getProfileLogic() {
return profileLogic;
}
//expose Profile API
public void setProfileImageService(ProfileImageService profileImageService) {
this.profileImageService = profileImageService;
}
public ProfileImageService getProfileImageService() {
return profileImageService;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
ccf8155aa47301edb588ef9e922d50974a584bb2
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/19/19_f0d7ff771b260a99be52ded2cc6c63b16a3c84bc/Thread_UpdateName/19_f0d7ff771b260a99be52ded2cc6c63b16a3c84bc_Thread_UpdateName_t.java
|
1934598881ea1cd377db920e2ab85cebe5f65044
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 8,021
|
java
|
package thread;
/* This program is licensed under the terms of the GPL V3 or newer*/
/* Written by Johannes Putzke*/
/* eMail: die_eule@gmx.net*/
import gui.Gui_TablePanel;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ResourceBundle;
import control.SRSOutput;
import misc.Stream;
/**
* This Thread reads streams from the process of an streamripper process
* and updates names and error in the right cell on StreamRipStars mainwindow.
* @author Johannes Putzke
*
*/
public class Thread_UpdateName extends Thread
{
private String i = "";
private Stream stream;
private int row;
private Gui_TablePanel tablePanel;
private Boolean isDead = false;
private ResourceBundle trans = ResourceBundle.getBundle("translations.StreamRipStar");
private Process streamProcess;
private BufferedReader b,c;
/**
* To create with this constructor you need the stream, you want to record, the table
* where the new track names will updates in and the row in the table. Make sure there
* really exist. There are no tests for valid parameters.
* @param astream
* @param arow
* @param tablePanel
*/
public Thread_UpdateName(Stream astream, int arow, Gui_TablePanel tablePanel)
{
this.stream = astream;
this.row = arow;
this.tablePanel = tablePanel;
}
/**
* set an variable to kill this thread
*/
public void killMe()
{
SRSOutput.getInstance().log("Kill update names in cells for stream: "+ stream.name);
isDead = true;
}
/**
* Start the thread running and with it read from the input streams
*/
public void run()
{
streamProcess = stream.getProcess();
if(isDead == false && streamProcess != null )
{
try
{
boolean streamG = false;
boolean serverG = false;
boolean bitrateG = false;
boolean metaG = false;
String[] metaData = {"-","-","-","-"};
tablePanel.setSelectedCurrentNameCellAndTitle(trans.getString("receivMeta"),row,true);
b = new BufferedReader(new InputStreamReader(streamProcess.getInputStream()));
c = new BufferedReader(new InputStreamReader(streamProcess.getErrorStream()));
//read metaData as long as:
//- it comes no Killsignal to stop this Thread (isDead)
//- all data is read correctly (*G)
//- and the streamProcess exist (streamProcess != null?
while(!isDead && !(streamG && serverG && bitrateG && metaG)&& streamProcess != null)
{
//Test if byte are in the cache,
testErrorstream();
String tmpo = b.readLine();
if(tmpo == null )
{
isDead = true;
} else {
tmpo = tmpo.toLowerCase();
//if you can't connect, streamRipStar print out the reason
// for 8 seconds
if(tmpo.startsWith("error") && !isDead)
{
tablePanel.setSelectedCurrentNameCellAndTitle(tmpo,row,true);
//make the 8 seconds stoppable:
int sleepTime = 0; // in ms
while(!isDead && sleepTime <=8000) {
Thread.sleep(100);
sleepTime+=100;
}
isDead = true;
}
if(tmpo.startsWith("connecting") && !isDead)
{
tablePanel.setSelectedCurrentNameCellAndTitle(
trans.getString("connecting"),row,true);
}
if(tmpo.startsWith("stream:")&& !isDead)
{
metaData[0] = tmpo.substring(7).trim();
streamG=true;
tablePanel.setSelectedCurrentNameCellAndTitle(
trans.getString("streamReceived"),row,true);
}
if(tmpo.startsWith("server name")&& !isDead)
{
metaData[1] = tmpo.substring(12).trim();
serverG=true;
tablePanel.setSelectedCurrentNameCellAndTitle(
trans.getString("serverNameReceived"),row,true);
}
//need to look for the bitrate in an hole string, because the word bitrate
//is changed its position in every version of streamripper
if(tmpo.contains("bitrate:") && !tmpo.startsWith("server name") && !isDead)
{
metaData[2] = tmpo.substring(8).replace("bitrate", "").replace(":", "").trim() + " kbit/s";
bitrateG=true;
tablePanel.setSelectedCurrentNameCellAndTitle(
trans.getString("bitrateReceived"),row,true);
}
if(tmpo.startsWith("meta interval:")&& !isDead)
{
metaData[3] = tmpo.substring(14).trim();
metaG=true;
tablePanel.setSelectedCurrentNameCellAndTitle(
trans.getString("metaIntervallReceived"),row,true);
}
// this is needed for streamripper > 1.63, because of
// new name update issues
// this skip fetching serverinfo for streamRipStar
if(tmpo.startsWith("[skipping")&& !isDead) {
metaG=true;
streamG=true;
bitrateG=true;
serverG=true;
tablePanel.setSelectedCurrentNameCellAndTitle(
trans.getString("skipBefore"),row,true);
}
//failsave: if you are here, not all data where collected
//but the server sends already the title. In this case,
//break searching for metadata
if(tmpo.startsWith("[ripping")&& !isDead) {
metaG=true;
streamG=true;
bitrateG=true;
serverG=true;
}
}
}
//write metaData in stream
stream.setMetaData(metaData);
// From here StreamRipStar using it usually
//Read as long as stream is alive or a kill signal comes
while(!isDead && stream.getProcess()!= null && (i = b.readLine()) != null) {
//first test, if an error appears
testErrorstream();
//looks, that it write in the right cell
if(!(stream.name.equals(tablePanel.getNameFromRow(row)))) {
int row2 = tablePanel.getNewRowForNameForUpdate(stream.name);
tablePanel.setSelectedCurrentNameCellAndTitle("",row,false);
row = row2;
}
if(i.startsWith("Time to stop"))
tablePanel.setSelectedCurrentNameCellAndTitle(i,row,true);
else if(i.startsWith("[ripping...")) {
if(i.length()>= 17)
tablePanel.setSelectedCurrentNameCellAndTitle(i.substring(17),row,true);
}
else if(i.startsWith("[buffering")) {
tablePanel.setSelectedCurrentNameCellAndTitle(trans.getString("buffering"),row,true);
}
else if(i.startsWith("[skipping")) {
if(i.length()>= 16)
tablePanel.setSelectedCurrentNameCellAndTitle(i.substring(16),row,true);
}
//Thread.sleep(200);
}
} catch (IOException e) {
SRSOutput.getInstance().logE("Controlled IOException: "+e.getMessage());
stream.setStatus(false);
} catch (InterruptedException f) {
SRSOutput.getInstance().logE("Controlled InterruptedException: "+f.getMessage());
stream.setStatus(false);
}
}
if(stream.getStatus())
stream.setStop(false);
tablePanel.setSelectedCurrentNameCellAndTitle("",row,false);
}
public void testErrorstream() {
try {
if(streamProcess.getErrorStream().available() != 0) {
String tmpe;
//read as long as the message "error" comes
while((tmpe = c.readLine()) != null && !isDead) {
//look for the error message
//then print it in the right cell for 8 seconds
//and kill the thread
if((tmpe != null) && !isDead && tmpe.toLowerCase().startsWith("error")) {
tablePanel.setSelectedCurrentNameCellAndTitle(tmpe,row,true);
//make the 8 seconds stoppable:
int sleepTime = 0; // in ms
while(!isDead && sleepTime <=8000) {
Thread.sleep(100);
sleepTime+=100;
}
isDead = true;
}
}
}
}
catch (InterruptedException f) {
SRSOutput.getInstance().logE(f.getMessage());
stream.setStatus(false);
} catch (IOException e) {
SRSOutput.getInstance().logE(e.getMessage());
stream.setStatus(false);
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
35a8dd2f0de75bb4dd368d4f242ed7fddf70e652
|
c0e4430afc85ab61f93bbcda31f6fb479e539140
|
/src/main/java/iyunu/NewTLOL/enumeration/EItemSellEvent.java
|
a73f33a6b6e7542d4b03582123400f18d2a63b71
|
[] |
no_license
|
Liuguozhu/MyWork
|
68e0b5bca566b16f7da59f229e493875d3b7a943
|
86a6c7eac8cf50e839a4ce018e399d7e26648a33
|
refs/heads/master
| 2021-05-29T18:14:28.386853
| 2015-08-28T09:14:49
| 2015-08-28T09:30:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 181
|
java
|
package iyunu.NewTLOL.enumeration;
public enum EItemSellEvent {
打孔器销售,
vip月卡销售,
背包拓展销售,
补血丹销售,
内力丹销售,
;
}
|
[
"fhyfhy17@163.com"
] |
fhyfhy17@163.com
|
9d4b0340a40642b379d1603d763b0f88b4b4d729
|
d2c7893a967738a97583368dbf1e41caeb1d47c7
|
/aTalk/src/main/java/org/jivesoftware/smackx/coin/DisconnectionType.java
|
0029ffc5c93193849ea41f02532e5bd6c864488d
|
[
"Apache-2.0"
] |
permissive
|
cmeng-git/atalk-android
|
0b5a7f48d04ba0173852d2f2ccbe786830669603
|
a821544edc644fdb3f63402340051dc1e86c1c59
|
refs/heads/master
| 2023-07-08T08:58:44.604534
| 2023-07-07T14:24:52
| 2023-07-07T14:24:52
| 116,449,957
| 148
| 79
|
Apache-2.0
| 2023-03-28T10:31:34
| 2018-01-06T03:27:17
|
Java
|
UTF-8
|
Java
| false
| false
| 1,566
|
java
|
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package org.jivesoftware.smackx.coin;
/**
* Disconnection type.
*
* @author Sebastien Vincent
*/
public enum DisconnectionType
{
/**
* Departed.
*/
departed("departed"),
/**
* Booted.
*/
booted("booted"),
/**
* Failed.
*/
failed("failed"),
/**
* Busy
*/
busy("busy");
/**
* The name of this type.
*/
private final String type;
/**
* Creates a <code>DisconnectionType</code> instance with the specified name.
*
* @param type type name.
*/
private DisconnectionType(String type)
{
this.type = type;
}
/**
* Returns the type name.
*
* @return type name
*/
@Override
public String toString()
{
return type;
}
/**
* Returns a <code>DisconnectionType</code>.
*
* @param typeStr the <code>String</code> that we'd like to parse.
* @return an DisconnectionType.
* @throws IllegalArgumentException in case <code>typeStr</code> is not a valid <code>EndPointType</code>.
*/
public static DisconnectionType fromString(String typeStr)
throws IllegalArgumentException
{
for (DisconnectionType value : values())
if (value.toString().equals(typeStr))
return value;
throw new IllegalArgumentException(typeStr + " is not a valid reason");
}
}
|
[
"cmeng.gm@gmail.com"
] |
cmeng.gm@gmail.com
|
2bbf51841f1073cddbbcdd037f28eebbca420433
|
0c2cfa473a0f8ab64ed86b73d19077dae817e53b
|
/src/com/mresearch/databank/shared/MetaUnitDTO.java
|
465d857be1727473b84caa18946c16388d9db2ef
|
[] |
no_license
|
reshet/DataBankIDEA
|
5bef96a5ece9a1fdc2c0e4ef12129272d8506a82
|
407296381f98a4bbfcbcdcafdd7133696588d55f
|
refs/heads/master
| 2020-02-26T14:33:59.772768
| 2013-10-13T15:18:02
| 2013-10-13T15:18:02
| 12,902,240
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 997
|
java
|
package com.mresearch.databank.shared;
import java.io.Serializable;
public class MetaUnitDTO implements Serializable{
/**
*
*/
private static final long serialVersionUID = -4221470333954907316L;
/**
*
*/
private Long id;
private String desc;
private String unique_name;
public String getUnique_name() {
return unique_name;
}
public void setUnique_name(String unique_name) {
this.unique_name = unique_name;
}
//private Class c_type;
public MetaUnitDTO(){}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
// public Class getC_type() {
// return c_type;
// }
// public void setC_type(Class c_type) {
// this.c_type = c_type;
// }
/**
* @return the desc
*/
public String getDesc() {
return desc;
}
/**
* @param desc the desc to set
*/
public void setDesc(String desc) {
this.desc = desc;
}
/**
* @return the isCatalogizable
*/
}
|
[
"reshet.ukr@gmail.com"
] |
reshet.ukr@gmail.com
|
834b1555dd11cd2ec934e83307dd97361570d22a
|
d0a20d78a7aa7c38bcf6fbd942111de2ea68391f
|
/src/main/java/net/earthcomputer/multiconnect/protocols/v1_13_2/mixin/ZombieVillagerEntityAccessor.java
|
0f80ac3a4f1554fb7848ac198293f0aaab0eed4e
|
[
"MIT"
] |
permissive
|
creeper123123321/multiconnect
|
2937b03298983e861993071bb17f2be3582525a4
|
6f56aceb60ad353a83c25e5c44f4a3413735f7e3
|
refs/heads/master
| 2023-06-15T04:28:32.323135
| 2021-07-13T10:27:06
| 2021-07-13T10:27:06
| 277,079,348
| 0
| 0
|
MIT
| 2020-07-04T09:29:52
| 2020-07-04T09:29:51
| null |
UTF-8
|
Java
| false
| false
| 578
|
java
|
package net.earthcomputer.multiconnect.protocols.v1_13_2.mixin;
import net.earthcomputer.multiconnect.impl.MixinHelper;
import net.minecraft.entity.data.TrackedData;
import net.minecraft.entity.mob.ZombieVillagerEntity;
import net.minecraft.village.VillagerData;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
@Mixin(ZombieVillagerEntity.class)
public interface ZombieVillagerEntityAccessor {
@Accessor("VILLAGER_DATA")
static TrackedData<VillagerData> getVillagerData() {
return MixinHelper.fakeInstance();
}
}
|
[
"burtonjae@hotmail.co.uk"
] |
burtonjae@hotmail.co.uk
|
4d7f78900945c1232e2c1b2148e511a56d9fdc2b
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Lang/41/org/apache/commons/lang/ClassUtils_getAllInterfaces_305.java
|
2302929b52ba07c4f1ef8b885a839ffb5c222142
|
[] |
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,607
|
java
|
org apach common lang
oper class reflect
handl invalid code code input
method document behaviour detail
notion code canon code includ human
readabl type code code
canon method variant work jvm name
code code
author stephen colebourn
author gari gregori
author norm dean
author alban peignier
author tomasz blachowicz
version
class util classutil
interfac getallinterfac class cl hash set hashset class interfac found interfacesfound
cl
class interfac cl interfac getinterfac
class interfac
interfac found interfacesfound add
interfac getallinterfac interfac found interfacesfound
cl cl superclass getsuperclass
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
6e99c93044a9d3ef94b6b461052072f9201c3e4e
|
778da6dbb2eb27ace541338d0051f44353c3f924
|
/src/main/java/com/espertech/esper/view/ViewProcessingException.java
|
ee65f0efea43ed66a944a8232e570e8f9145ef7c
|
[] |
no_license
|
jiji87432/ThreadForEsperAndBenchmark
|
daf7188fb142f707f9160173d48c2754e1260ec7
|
fd2fc3579b3dd4efa18e079ce80d3aee98bf7314
|
refs/heads/master
| 2021-12-12T02:15:18.810190
| 2016-12-01T12:15:01
| 2016-12-01T12:15:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,642
|
java
|
/**************************************************************************************
* Copyright (C) 2006-2015 EsperTech Inc. All rights reserved. *
* http://www.espertech.com/esper *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
**************************************************************************************/
package com.espertech.esper.view;
/**
* This exception is thrown to indicate a problem with a view expression.
*/
public final class ViewProcessingException extends RuntimeException
{
private static final long serialVersionUID = -4098966582612999347L;
/**
* Constructor.
* @param message is the error message
*/
public ViewProcessingException(final String message)
{
super(message);
}
/**
* Constructor for an inner exception and message.
* @param message is the error message
* @param cause is the inner exception
*/
public ViewProcessingException(final String message, final Throwable cause)
{
super(message, cause);
}
/**
* Constructor.
* @param cause is the inner exception
*/
public ViewProcessingException(final Throwable cause)
{
super(cause);
}
}
|
[
"qinjie2012@163.com"
] |
qinjie2012@163.com
|
973ca0f0af70ed4675dbba97aaef2914e9b4d466
|
76875917925793ea446a1b1536606633a3272653
|
/evo-netty-all/src/main/java/com/tazine/evo/socket/netty/client/ClientChannelChain.java
|
284e83ecf10d535863412c66848a0b7c0d079be5
|
[
"MIT"
] |
permissive
|
BookFrank/EVO-World
|
01555355c434fac65406e158ffa5f7aebf3ff7dc
|
3d27ae414f0281668024838a4c64db4bdd4a6377
|
refs/heads/master
| 2022-06-22T05:56:43.648597
| 2020-05-05T15:44:32
| 2020-05-05T15:44:32
| 147,456,884
| 1
| 1
|
MIT
| 2022-06-21T02:58:35
| 2018-09-05T03:54:10
|
Java
|
UTF-8
|
Java
| false
| false
| 1,125
|
java
|
package com.tazine.evo.socket.netty.client;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.codec.DelimiterBasedFrameDecoder;
import io.netty.handler.codec.Delimiters;
import io.netty.handler.codec.string.StringDecoder;
import io.netty.handler.codec.string.StringEncoder;
/**
* ChildHandler 处理链
*
* @author frank
* @date 2018/11/05
*/
public class ClientChannelChain extends ChannelInitializer<SocketChannel> {
@Override
protected void initChannel(SocketChannel socketChannel) throws Exception {
ChannelPipeline pipeline = socketChannel.pipeline();
// 以("\n")为结尾分割的解码器
//pipeline.addLast("framer", new DelimiterBasedFrameDecoder(8192, Delimiters.lineDelimiter()));
// 字符串解码和编码
//pipeline.addLast("decoder", new StringDecoder());
pipeline.addLast("encoder", new StringEncoder());
// 自己的逻辑 Handler,用于写自己的处理逻辑
pipeline.addLast(new ClientChannelHandler());
}
}
|
[
"bookfrank@foxmail.com"
] |
bookfrank@foxmail.com
|
9278adb3aeac6aaca5498d4630e1d21efc4e41fc
|
7b82d70ba5fef677d83879dfeab859d17f4809aa
|
/tmp/sys/springboot-manager/src/main/java/com/company/project/entity/SysDictEntity.java
|
0da58a40fde82626013fc5d469d10c1a73be277c
|
[
"MIT"
] |
permissive
|
apollowesley/jun_test
|
fb962a28b6384c4097c7a8087a53878188db2ebc
|
c7a4600c3f0e1b045280eaf3464b64e908d2f0a2
|
refs/heads/main
| 2022-12-30T20:47:36.637165
| 2020-10-13T18:10:46
| 2020-10-13T18:10:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 997
|
java
|
package com.company.project.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.company.project.vo.req.PageReqVO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
* 字典管理
*
* @author wenbin
* @version V1.0
* @date 2020年3月18日
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_dict")
public class SysDictEntity extends PageReqVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId("id")
private String id;
/**
* 字典名称
*/
@TableField("name")
private String name;
/**
* 备注
*/
@TableField("remark")
private String remark;
/**
* 创建时间
*/
@TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime;
}
|
[
"wujun728@hotmail.com"
] |
wujun728@hotmail.com
|
bacc9a62962eba60cc1f3ec23c5e5fe02ebbf5fe
|
a9c527b00c33462185c1a8b2fc46a9a8bc75e222
|
/app/src/main/java/com/example/administrator/thefirstnavigation/fragment/HuaTiFragment.java
|
9dc74f76501f3b5fa5e0ec039a17a2d3ac4520dd
|
[] |
no_license
|
moxun/ThefirstNavigation
|
8fbd3c718ff0fe2056f09f2d40b0a01c6ef91056
|
26333020c103005f63205cdfa62ebd6cd4746126
|
refs/heads/master
| 2020-04-24T02:22:30.734306
| 2019-02-20T08:45:18
| 2019-02-20T08:45:18
| 171,634,690
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,811
|
java
|
package com.example.administrator.thefirstnavigation.fragment;
import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.administrator.thefirstnavigation.MvpInterface.TopicMvp;
import com.example.administrator.thefirstnavigation.R;
import com.example.administrator.thefirstnavigation.activity.InsertTopicAvtivity;
import com.example.administrator.thefirstnavigation.adapter.TopicRecyAdapter;
import com.example.administrator.thefirstnavigation.base.fragment.BaseFragment;
import com.example.administrator.thefirstnavigation.base.fragment.SimpleFragment;
import com.example.administrator.thefirstnavigation.bean.httpbane.TopicBean;
import com.example.administrator.thefirstnavigation.bean.jsonbean.DownNews;
import com.example.administrator.thefirstnavigation.bean.jsonbean.Topic;
import com.example.administrator.thefirstnavigation.chartarray.Characterl;
import com.example.administrator.thefirstnavigation.presenter.TopicPresenter;
import com.google.gson.Gson;
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import static android.content.ContentValues.TAG;
/**
* Created by Administrator on 2019/1/28.
*/
public class HuaTiFragment extends BaseFragment<TopicMvp.TopicView,TopicPresenter<TopicMvp.TopicView>> implements TopicMvp.TopicView, InsertTopicAvtivity.OnItemClick {
@BindView(R.id.channel_recy_more)
RecyclerView mChannelRecyMore;
@BindView(R.id.swipe_refresh)
SwipeRefreshLayout mSwipeRefresh;
private View view;
private Unbinder unbinder;
private TopicRecyAdapter mTopicRecyAdapter;
private String cursor="0";
@Override
public int createLayoutId() {
return R.layout.fragment_huati;
}
@Override
protected void initData() {
List<TopicBean.TopicListBean> topicListBeans=new ArrayList<>();
mTopicRecyAdapter = new TopicRecyAdapter(topicListBeans,mActivity);
mChannelRecyMore.setLayoutManager(new LinearLayoutManager(mActivity));
mChannelRecyMore.setAdapter(mTopicRecyAdapter);
Topic topic = new Topic("0", cursor, Characterl.newsid, "");
Gson gson = new Gson();
String json = gson.toJson(topic);
presenter.getLoad(json);
mSwipeRefresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
mTopicRecyAdapter.mList.clear();
mTopicRecyAdapter.notifyDataSetChanged();
Topic topic = new Topic("0", cursor, Characterl.newsid, "");
Gson gson = new Gson();
String json = gson.toJson(topic);
presenter.getLoad(json);
mSwipeRefresh.setRefreshing(false);
}
});
mChannelRecyMore.addOnScrollListener(new RecyclerView.OnScrollListener() {
@Override
public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
super.onScrolled(recyclerView, dx, dy);
int lastVisibleItem = ((LinearLayoutManager) mChannelRecyMore.getLayoutManager()).findLastVisibleItemPosition();
int totalItemCount = mChannelRecyMore.getLayoutManager().getItemCount();
if (lastVisibleItem >= totalItemCount - 2 && dy > 0) { //还剩2个Item时加载更多
Topic topic = new Topic("0", cursor, Characterl.newsid, "");
Gson gson = new Gson();
String json = gson.toJson(topic);
presenter.getLoad(json);
}
}
});
InsertTopicAvtivity.setOnItemClick(this);
}
@Override
public void hideProgressbar() {
}
@Override
public void showLoad(TopicBean topicBean) {
cursor=topicBean.getCursor();
Log.d("moxun", "showLoad: "+topicBean.getCursor());
mTopicRecyAdapter.addAll(topicBean.getTopicList(),0);
}
@Override
public void showRefresh(TopicBean topicBean) {
mTopicRecyAdapter.setSearch(topicBean.getTopicList());
}
@Override
protected TopicPresenter<TopicMvp.TopicView> createPresenter() {
return new TopicPresenter<>();
}
@Override
public void onItem() {
mTopicRecyAdapter.mList.clear();
mTopicRecyAdapter.notifyDataSetChanged();
Topic topic = new Topic("0", "0", Characterl.newsid, "");
Gson gson = new Gson();
String json = gson.toJson(topic);
presenter.getLoad(json);
}
}
|
[
"2636216883@qq.com"
] |
2636216883@qq.com
|
8d310dee4160e5df785449da38b7eab077b486fa
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/tencent/mm/emoji/debug/EmojiDebugUI$g.java
|
227fa1d1a7c84d375990d6c204837d095069786f
|
[] |
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
| 1,817
|
java
|
package com.tencent.mm.emoji.debug;
import com.tencent.matrix.trace.core.AppMethodBeat;
import kotlin.Metadata;
import kotlin.ah;
import kotlin.g.a.a;
@Metadata(d1={""}, d2={"Lcom/tencent/mm/emoji/debug/EmojiDebugUI$GetterItem;", "Lcom/tencent/mm/emoji/debug/EmojiDebugUI$AbsItem;", "Lcom/tencent/mm/emoji/debug/EmojiDebugUI;", "title", "Lkotlin/Function0;", "", "value", "onClick", "", "(Lcom/tencent/mm/emoji/debug/EmojiDebugUI;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V", "getOnClick", "()Lkotlin/jvm/functions/Function0;", "getTitle", "getValue", "plugin-emojisdk_release"}, k=1, mv={1, 5, 1}, xi=48)
public final class EmojiDebugUI$g
extends EmojiDebugUI.a
{
private final a<String> aWJ;
private final a<ah> meC;
private final a<String> meH;
public EmojiDebugUI$g(a<String> parama1, a<String> parama2, a<ah> parama)
{
super(parama1);
AppMethodBeat.i(105345);
this.meH = parama2;
this.aWJ = parama;
Object localObject;
this.meC = localObject;
AppMethodBeat.o(105345);
}
public final String aUa()
{
AppMethodBeat.i(105342);
String str = (String)this.meH.invoke();
AppMethodBeat.o(105342);
return str;
}
public final void onClick()
{
AppMethodBeat.i(105344);
a locala = this.meC;
if (locala != null) {
locala.invoke();
}
AppMethodBeat.o(105344);
}
public final String value()
{
AppMethodBeat.i(105343);
String str = (String)this.aWJ.invoke();
AppMethodBeat.o(105343);
return str;
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes3.jar
* Qualified Name: com.tencent.mm.emoji.debug.EmojiDebugUI.g
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
31eef8747b9a2a3e4310bf07bd20039ee5e35fec
|
ab5f9981491e414629a0b63a3f63784f3f40e090
|
/bitsim-server/src/main/java/netty/ssl/SSLSocketFactoryGenerator.java
|
22b653b29e583916c14954ef5c1c11719bf9ecf3
|
[] |
no_license
|
moyu3390/BitsIM
|
54e0fc0e859776b1c5b3f5fe139ffccd36ee2e89
|
3c21023eb2a68ca68181110c31b45946b943ff84
|
refs/heads/master
| 2021-08-24T01:36:32.853166
| 2017-12-07T13:43:22
| 2017-12-07T13:43:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,200
|
java
|
package netty.ssl;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.bouncycastle.openssl.*;
import org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter;
import org.bouncycastle.openssl.jcajce.JcePEMDecryptorProviderBuilder;
import javax.net.ssl.KeyManagerFactory;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManagerFactory;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileReader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.security.KeyPair;
import java.security.KeyStore;
import java.security.Security;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.util.Properties;
public class SSLSocketFactoryGenerator {
/**
* 根据配置文件创建SSL Socket
*/
public static SSLSocketFactory getSocketFactory(String propsFilePath) throws Exception {
Properties props = new Properties();
props.load(Publisher.class.getClassLoader().getResourceAsStream(propsFilePath));
String caCrtFile = props.getProperty("ssl.ca.certificate.path");
String crtFile = props.getProperty("ssl.client.certificate.path");
String keyFile = props.getProperty("ssl.client.key.path");
String password = props.getProperty("ssl.client.key.passphrase");
Security.addProvider(new BouncyCastleProvider());
CertificateFactory cf = CertificateFactory.getInstance("X.509");
X509Certificate caCert = (X509Certificate) cf
.generateCertificate(new ByteArrayInputStream(Files.readAllBytes(Paths.get(caCrtFile))));
X509Certificate cert = (X509Certificate) cf
.generateCertificate(new ByteArrayInputStream(Files.readAllBytes(Paths.get(crtFile))));
File privateKeyFile = new File(keyFile);
PEMParser pemParser = new PEMParser(new FileReader(privateKeyFile));
PEMDecryptorProvider decProv = new JcePEMDecryptorProviderBuilder().build(password.toCharArray());
JcaPEMKeyConverter converter = new JcaPEMKeyConverter().setProvider("BC");
Object object = pemParser.readObject();
KeyPair kp;
if (object instanceof PEMEncryptedKeyPair) {
kp = converter.getKeyPair(((PEMEncryptedKeyPair) object)
.decryptKeyPair(decProv));
} else {
kp = converter.getKeyPair((PEMKeyPair) object);
}
pemParser.close();
// CA certificate is used to authenticate server
KeyStore caKs = KeyStore.getInstance(KeyStore.getDefaultType());
caKs.load(null, null);
caKs.setCertificateEntry("ca-certificate", caCert);
TrustManagerFactory tmf = TrustManagerFactory
.getInstance(TrustManagerFactory.getDefaultAlgorithm());
tmf.init(caKs);
// client key and certificates are sent to server so it can authenticate
// us
KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
ks.load(null, null);
ks.setCertificateEntry("certificate", cert);
ks.setKeyEntry("private-key", kp.getPrivate(), password.toCharArray(),
new java.security.cert.Certificate[]{cert});
KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory
.getDefaultAlgorithm());
kmf.init(ks, password.toCharArray());
// finally, create SSL socket factory
SSLContext context = SSLContext.getInstance("TLSv1");
context.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
return context.getSocketFactory();
}
/**
* 根据四个参数件创建SSL Socket
*/
public static SSLSocketFactory getSocketFactory(final String caCrtFile, final String crtFile, final String keyFile,
final String password) throws Exception {
Security.addProvider(new BouncyCastleProvider());
CertificateFactory cf = CertificateFactory.getInstance("X.509");
X509Certificate caCert = (X509Certificate) cf
.generateCertificate(new ByteArrayInputStream(Files.readAllBytes(Paths.get(caCrtFile))));
X509Certificate cert = (X509Certificate) cf
.generateCertificate(new ByteArrayInputStream(Files.readAllBytes(Paths.get(crtFile))));
File privateKeyFile = new File(keyFile);
PEMParser pemParser = new PEMParser(new FileReader(privateKeyFile));
PEMDecryptorProvider decProv = new JcePEMDecryptorProviderBuilder().build(password.toCharArray());
JcaPEMKeyConverter converter = new JcaPEMKeyConverter().setProvider("BC");
Object object = pemParser.readObject();
KeyPair kp;
if (object instanceof PEMEncryptedKeyPair) {
kp = converter.getKeyPair(((PEMEncryptedKeyPair) object)
.decryptKeyPair(decProv));
} else {
kp = converter.getKeyPair((PEMKeyPair) object);
}
pemParser.close();
// CA certificate is used to authenticate server
KeyStore caKs = KeyStore.getInstance(KeyStore.getDefaultType());
caKs.load(null, null);
caKs.setCertificateEntry("ca-certificate", caCert);
TrustManagerFactory tmf = TrustManagerFactory
.getInstance(TrustManagerFactory.getDefaultAlgorithm());
tmf.init(caKs);
// client key and certificates are sent to server so it can authenticate
// us
KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
ks.load(null, null);
ks.setCertificateEntry("certificate", cert);
ks.setKeyEntry("private-key", kp.getPrivate(), password.toCharArray(),
new java.security.cert.Certificate[]{cert});
KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory
.getDefaultAlgorithm());
kmf.init(ks, password.toCharArray());
// finally, create SSL socket factory
SSLContext context = SSLContext.getInstance("TLSv1");
context.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
return context.getSocketFactory();
}
}
|
[
"patrickyateschn@gmail.com"
] |
patrickyateschn@gmail.com
|
2424263a3a93879f2b427538693106895d693e49
|
48631c3851b15fbc20e61e29b82480b64eec2885
|
/upup/src/main/resources/玩转数据结构/src/09-Segment-Tree/03-Building-Segment-Tree/src/SegmentTree.java
|
fca8b50613dc8654c8f80d1b88db4539dda9ce11
|
[
"Apache-2.0"
] |
permissive
|
ProSayJ/springbootstudy
|
56cb7f80502888d2c564d7a4bda23dd0650750f7
|
04b5ce563b9e6163ab6d6217292d7dd266e105c3
|
refs/heads/master
| 2022-12-25T10:42:49.047945
| 2021-04-09T15:20:12
| 2021-04-09T15:20:12
| 147,488,466
| 0
| 0
|
Apache-2.0
| 2022-12-16T03:22:22
| 2018-09-05T08:52:00
|
Java
|
UTF-8
|
Java
| false
| false
| 2,185
|
java
|
package com.prosayj.springboot.java数据结构.玩转数据结构.src
public class SegmentTree<E> {
private E[] tree;
private E[] data;
private Merger<E> merger;
public SegmentTree(E[] arr, Merger<E> merger){
this.merger = merger;
data = (E[])new Object[arr.length];
for(int i = 0 ; i < arr.length ; i ++)
data[i] = arr[i];
tree = (E[])new Object[4 * arr.length];
buildSegmentTree(0, 0, arr.length - 1);
}
// 在treeIndex的位置创建表示区间[l...r]的线段树
private void buildSegmentTree(int treeIndex, int l, int r){
if(l == r){
tree[treeIndex] = data[l];
return;
}
int leftTreeIndex = leftChild(treeIndex);
int rightTreeIndex = rightChild(treeIndex);
// int mid = (l + r) / 2;
int mid = l + (r - l) / 2;
buildSegmentTree(leftTreeIndex, l, mid);
buildSegmentTree(rightTreeIndex, mid + 1, r);
tree[treeIndex] = merger.merge(tree[leftTreeIndex], tree[rightTreeIndex]);
}
public int getSize(){
return data.length;
}
public E get(int index){
if(index < 0 || index >= data.length)
throw new IllegalArgumentException("Index is illegal.");
return data[index];
}
// 返回完全二叉树的数组表示中,一个索引所表示的元素的左孩子节点的索引
private int leftChild(int index){
return 2*index + 1;
}
// 返回完全二叉树的数组表示中,一个索引所表示的元素的右孩子节点的索引
private int rightChild(int index){
return 2*index + 2;
}
@Override
public String toString(){
StringBuilder res = new StringBuilder();
res.append('[');
for(int i = 0 ; i < tree.length ; i ++){
if(tree[i] != null)
res.append(tree[i]);
else
res.append("null");
if(i != tree.length - 1)
res.append(", ");
}
res.append(']');
return res.toString();
}
}
|
[
"prosayj@gmail.com"
] |
prosayj@gmail.com
|
976f3165bb84577a43d88209b9a731301a0e6e79
|
d76d10c5d04a7a5028dc26679b1e6254e95bd589
|
/herd-code/herd-service/src/main/java/org/finra/herd/service/helper/EmrPigStepHelper.java
|
fa73c1eab38d9b8ba2024d7ad882f06b41ec5f9d
|
[
"Apache-2.0"
] |
permissive
|
seoj/herd
|
860b137215a9583cdce7e7a6c6951f0aecaafe77
|
e5cbf6fb543c13377eecfbb5029b5a8d4edc8c48
|
refs/heads/master
| 2020-12-29T00:55:35.225483
| 2016-04-27T17:31:42
| 2016-04-27T17:31:42
| 43,754,151
| 0
| 2
| null | 2015-10-06T13:58:53
| 2015-10-06T13:58:53
| null |
UTF-8
|
Java
| false
| false
| 6,170
|
java
|
/*
* Copyright 2015 herd contributors
*
* 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.finra.herd.service.helper;
import java.util.ArrayList;
import java.util.List;
import com.amazonaws.services.elasticmapreduce.model.ActionOnFailure;
import com.amazonaws.services.elasticmapreduce.model.StepConfig;
import com.amazonaws.services.elasticmapreduce.util.StepFactory;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import org.finra.herd.model.api.xml.EmrPigStep;
import org.finra.herd.model.api.xml.EmrPigStepAddRequest;
/**
* The Pig step helper.
*/
@Component
public class EmrPigStepHelper extends EmrStepHelper
{
@Override
public String getStepType()
{
return EmrPigStep.class.getName();
}
@Override
public String getStepRequestType()
{
return EmrPigStepAddRequest.class.getName();
}
@Override
public Object buildResponseFromRequest(Object stepRequest)
{
EmrPigStepAddRequest emrPigStepAddRequest = (EmrPigStepAddRequest) stepRequest;
EmrPigStep step = new EmrPigStep();
step.setNamespace(emrPigStepAddRequest.getNamespace());
step.setEmrClusterDefinitionName(emrPigStepAddRequest.getEmrClusterDefinitionName());
step.setEmrClusterName(emrPigStepAddRequest.getEmrClusterName());
step.setStepName(emrPigStepAddRequest.getStepName().trim());
step.setScriptLocation(emrPigStepAddRequest.getScriptLocation().trim().replaceAll(getS3ManagedReplaceString(), emrHelper.getS3StagingLocation()));
// Add the script arguments
if (!CollectionUtils.isEmpty(emrPigStepAddRequest.getScriptArguments()))
{
List<String> scriptArguments = new ArrayList<>();
step.setScriptArguments(scriptArguments);
for (String argument : emrPigStepAddRequest.getScriptArguments())
{
scriptArguments.add(argument.trim());
}
}
step.setContinueOnError(emrPigStepAddRequest.isContinueOnError());
return step;
}
@Override
public StepConfig getEmrStepConfig(Object step)
{
EmrPigStep pigStep = (EmrPigStep) step;
// Default ActionOnFailure is to cancel the execution and wait
ActionOnFailure actionOnFailure = ActionOnFailure.CANCEL_AND_WAIT;
if (pigStep.isContinueOnError() != null && pigStep.isContinueOnError())
{
// Override based on user input
actionOnFailure = ActionOnFailure.CONTINUE;
}
// If there are no arguments to hive script
if (CollectionUtils.isEmpty(pigStep.getScriptArguments()))
{
// Just build the StepConfig object and return
return new StepConfig().withName(pigStep.getStepName().trim()).withActionOnFailure(actionOnFailure)
.withHadoopJarStep(new StepFactory().newRunPigScriptStep(pigStep.getScriptLocation().trim()));
}
// If there are arguments specified
else
{
return new StepConfig().withName(pigStep.getStepName().trim()).withActionOnFailure(actionOnFailure).withHadoopJarStep(new StepFactory()
.newRunPigScriptStep(pigStep.getScriptLocation().trim(),
pigStep.getScriptArguments().toArray(new String[pigStep.getScriptArguments().size()])));
}
}
@Override
public void validateAddStepRequest(Object step)
{
EmrPigStepAddRequest pigStepRequest = (EmrPigStepAddRequest) step;
validateStepName(pigStepRequest.getStepName());
validateScriptLocation(pigStepRequest.getScriptLocation());
}
@Override
public String getStepId(Object step)
{
return ((EmrPigStep) step).getId();
}
@Override
public void setStepId(Object step, String stepId)
{
((EmrPigStep) step).setId(stepId);
}
@Override
public String getRequestStepName(Object stepRequest)
{
return ((EmrPigStepAddRequest) stepRequest).getStepName();
}
@Override
public void setRequestStepName(Object stepRequest, String stepName)
{
((EmrPigStepAddRequest) stepRequest).setStepName(stepName);
}
@Override
public Boolean isRequestContinueOnError(Object stepRequest)
{
return ((EmrPigStepAddRequest) stepRequest).isContinueOnError();
}
@Override
public void setRequestContinueOnError(Object stepRequest, Boolean continueOnError)
{
((EmrPigStepAddRequest) stepRequest).setContinueOnError(continueOnError);
}
@Override
public String getRequestNamespace(Object stepRequest)
{
return ((EmrPigStepAddRequest) stepRequest).getNamespace();
}
@Override
public void setRequestNamespace(Object stepRequest, String namespace)
{
((EmrPigStepAddRequest) stepRequest).setNamespace(namespace);
}
@Override
public String getRequestEmrClusterDefinitionName(Object stepRequest)
{
return ((EmrPigStepAddRequest) stepRequest).getEmrClusterDefinitionName();
}
@Override
public void setRequestEmrClusterDefinitionName(Object stepRequest, String clusterDefinitionName)
{
((EmrPigStepAddRequest) stepRequest).setEmrClusterDefinitionName(clusterDefinitionName);
}
@Override
public String getRequestEmrClusterName(Object stepRequest)
{
return ((EmrPigStepAddRequest) stepRequest).getEmrClusterName();
}
@Override
public void setRequestEmrClusterName(Object stepRequest, String clusterName)
{
((EmrPigStepAddRequest) stepRequest).setEmrClusterName(clusterName);
}
}
|
[
"mchao47@gmail.com"
] |
mchao47@gmail.com
|
b455eafa705b38471b6d9bd94ba1df4fe993cfe4
|
300f9a5476d80533b4cec1081a621d156cb934b2
|
/mmm-util/mmm-util-core/src/main/java/net/sf/mmm/util/event/api/EventListener.java
|
474f42d432c645eca24a98783b21689115e41a16
|
[
"Apache-2.0"
] |
permissive
|
cbonami/mmm
|
931157236175aa749280e71851fda1d8f5a4c5dc
|
cd69e59a9696ff44e87678ab1cc879d20d7188f7
|
refs/heads/master
| 2021-01-20T17:12:37.355366
| 2014-01-29T22:27:15
| 2014-01-29T22:27:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 945
|
java
|
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.event.api;
/**
* This is the interface for a generic event listener.
*
* @param <E> is the templated type of events to listen to.
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 1.0.1
*/
public interface EventListener<E extends Event> extends java.util.EventListener {
/**
* This method is called if an event occurred.<br>
* <b>WARNING:</b><br>
* Depending on the implementation of {@link EventSource} it may NOT be legal to
* {@link EventSource#addListener(EventListener) add} or {@link EventSource#removeListener(EventListener)
* remove} listeners during the call of this method because this may lead to a dead-lock.
*
* @param event is the event that notifies about something that happened.
*/
void handleEvent(E event);
}
|
[
"joerg@j-hohwiller.de"
] |
joerg@j-hohwiller.de
|
215a107d8257b4cbf67d2ee5d41c10f276880865
|
a06cfccfcb642316cbe3f9f534b89966440eb84e
|
/src/main/java/com/memoizrlabs/retrooptional/Optional.java
|
ba773414ed2ef0e5b479ba4fc87813659529f232
|
[
"Apache-2.0"
] |
permissive
|
andrewfinnell/retro-optional
|
b6b5799ad7e97e8e0ac540438885c20917c5f6c3
|
e3270a31f2f5603093d95bc7dbfe9fee2959f586
|
refs/heads/master
| 2020-03-29T16:19:37.323219
| 2017-06-23T11:32:17
| 2017-06-23T11:32:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,571
|
java
|
package com.memoizrlabs.retrooptional;
import java.io.Serializable;
/**
* A wrapper class that wraps non-null values that may or may not be there. As this wrapper acts as a
* monad, it is possible to safely perform chained operations on wrapped values that may or may not exist.
*
* As this is a value-based class, equals and hashcode operations are simply forwarded to the wrapped object.
* This may cause unexpected behavior for some identity-sensitive operations, therefore equals and hascode operations
* should generally be avoided on wrappers.
*
* @param <T> the type of the wrapped value.
*/
public abstract class Optional<T> implements Serializable {
private static final Empty<?> EMPTY = new Empty<>();
/**
* Wraps a value in a non-empty wrapper if the value is non-null and returns the wrapped value,
* returns an empty wrapper in case the value is null.
*
* @param value the nullable value to wrap.
* @param <T> the type of the value to be wrapped.
* @return the wrapped value or an empty wrapper if the value is null.
*/
public static <T> Optional<T> of(T value) {
if (value == null) {
return empty();
} else {
return new Some<>(value);
}
}
/**
* Returns an empty instance to wrap missing values.
*
* @param <T> the type of the missing value.
* @return the empty wrapper.
*/
@SuppressWarnings("unchecked")
public static <T> Optional<T> empty() {
return (Optional<T>) EMPTY;
}
/**
* Extracts the value from the wrapper. Throws a NoSuchElementException if
* performed on an empty wrapper.
*
* @return the unwrapped value.
*/
public abstract T get();
/**
* Returns a wrapped object obtained from a function if performed on a non-empty wrapper.
*
* @param function the factory function that generates the object.
* @param <S> the type of the transformed object;
* @return the transformed object or an empty wrapper if executed on an empty-wrapper.
*/
public abstract <S> Optional<S> map(Function1<? super T, S> function);
/**
* If the predicate evaluates to true, returns the instance, otherwise returns an empty
* wrapper.
*
* @param predicate the predicate function to evaluated.
* @return the same instance of the wrapped object.
*/
public abstract Optional<T> filter(Predicate<? super T> predicate);
/**
* If performed on a non-empty wrapper, returns the wrapped object returned by the specified
* function. Otherwise returns an empty wrapper.
*
* @param function the function that returns another wrapped object.
* @param <S> the type of the new returned object.
* @return the wrapped object returned by the function.
*/
public abstract <S> Optional<S> flatMap(Function1<? super T, Optional<S>> function);
/**
* Tells whether this wrapper is non-empty or empty.
*
* @return true if the wrapper is non-empty, false if empty.
*/
public abstract boolean isPresent();
/**
* Calls a function if called on a non-empty wrapper.
*
* @param action1 the function to call.
*/
public abstract void doIfPresent(Action1<T> action1);
/**
* Returns the unwrapped value if called on a non-empty wrapper, or returns the specified value if called
* on an empty wrapper.
*
* @param alternative the value to return in case the wrapper is empty.
* @return either the unwrapped value or the specified one.
*/
public abstract T orElse(T alternative);
/**
* Returns the unwrapped value if called on a non-empty wrapper, or returns the value returned by the
* specified function if called on an empty wrapper.
*
* @param function the unwrapped value or the specified one.
* @return either the unwrapped value or the value obtained from the specified function.
*/
public abstract T orElseGet(Function0<T> function);
/**
* Returns the unwrapped valued if called on a non-empty wrapper, or throws the exeception returned by the
* specified function if called on an empty wrapper.
*
* @param function the function that returns the exception in case the wrapper is empty.
* @param <X> the type of the exception
* @return the exception to throw
* @throws X the thrown exception.
*/
public abstract <X extends Throwable> T orElseThrow(Function0<X> function) throws X;
}
|
[
"memoizrlabs@gmail.com"
] |
memoizrlabs@gmail.com
|
0066ff051886096133d1b20c0319a8f17f5976ea
|
16bd4e214cccbb931d32d610490214aee017b5eb
|
/training/trainingcore/src/com/sri/pal/training/core/assessment/ArgumentLocation.java
|
180574c66fe0f6db093be16aeeff767dc22daaaf
|
[
"Apache-2.0"
] |
permissive
|
SRI-SAVE/ESE
|
df081e0f974fc37c1054f0a6d552d3fbf69fe300
|
e06ec5cd47d69ee6da10e0c7544787a53189a024
|
refs/heads/master
| 2021-01-10T15:31:33.086493
| 2016-07-26T17:05:01
| 2016-07-26T17:05:01
| 54,749,142
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,306
|
java
|
/*
* Copyright 2016 SRI International
*
* 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.sri.pal.training.core.assessment;
import java.util.List;
import com.sri.pal.training.core.basemodels.ArgumentLocationBase;
public class ArgumentLocation extends ArgumentLocationBase {
public ArgumentLocation() {
super();
}
public ArgumentLocation(final int atomIdx, final List<String> accessors) {
super();
setAtomIndex(atomIdx);
getAccessors().addAll(accessors);
}
public String getAccessorString() {
StringBuffer accessor = new StringBuffer();
for (int i = accessors.size() - 1; i >= 0; i--)
accessor.append(accessors.get(i) + " of ");
return accessor.substring(0, accessor.length() - 3);
}
}
|
[
"christian.jones@sri.com"
] |
christian.jones@sri.com
|
a667cbdde44314dc59f854107248e78245930068
|
1d5d6f298aad8242f0c4c0f86a666b7e2033d196
|
/apache-shardingsphere-incubating-4.0.1-src/shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/main/java/org/apache/shardingsphere/sql/parser/core/extractor/impl/ddl/column/ModifyColumnDefinitionExtractor.java
|
9b1812b6e09bf80ef88e93a5b1c9110f1cc2663b
|
[
"Apache-2.0"
] |
permissive
|
kongq1983/opensourcecode
|
b0a2c951e24220c22dae3136d1cc5ed7e5230ed9
|
96242fe545e65c41b1a1a3bc9230e49792fa348b
|
refs/heads/master
| 2023-03-06T08:35:13.730272
| 2022-11-15T15:14:57
| 2022-11-15T15:14:57
| 193,943,067
| 0
| 0
|
Apache-2.0
| 2023-02-22T07:31:30
| 2019-06-26T16:42:03
|
Java
|
UTF-8
|
Java
| false
| false
| 3,084
|
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.shardingsphere.sql.parser.core.extractor.impl.ddl.column;
import com.google.common.base.Optional;
import org.antlr.v4.runtime.ParserRuleContext;
import org.apache.shardingsphere.sql.parser.core.extractor.api.CollectionSQLSegmentExtractor;
import org.apache.shardingsphere.sql.parser.core.extractor.util.ExtractorUtils;
import org.apache.shardingsphere.sql.parser.core.extractor.util.RuleName;
import org.apache.shardingsphere.sql.parser.sql.segment.ddl.column.ColumnDefinitionSegment;
import org.apache.shardingsphere.sql.parser.sql.segment.ddl.column.alter.ModifyColumnDefinitionSegment;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Map;
/**
* Modify column definition extractor.
*
* @author duhongjun
*/
public class ModifyColumnDefinitionExtractor implements CollectionSQLSegmentExtractor {
private final ColumnDefinitionExtractor columnDefinitionExtractor = new ColumnDefinitionExtractor();
@Override
public final Collection<ModifyColumnDefinitionSegment> extract(final ParserRuleContext ancestorNode, final Map<ParserRuleContext, Integer> parameterMarkerIndexes) {
Collection<ModifyColumnDefinitionSegment> result = new LinkedList<>();
for (ParserRuleContext each : ExtractorUtils.getAllDescendantNodes(ancestorNode, RuleName.MODIFY_COLUMN_SPECIFICATION)) {
Optional<ColumnDefinitionSegment> columnDefinitionSegment = columnDefinitionExtractor.extract(each, parameterMarkerIndexes);
if (columnDefinitionSegment.isPresent()) {
ModifyColumnDefinitionSegment modifyColumnDefinitionSegment = new ModifyColumnDefinitionSegment(
each.getStart().getStartIndex(), each.getStop().getStopIndex(), columnDefinitionSegment.get());
postExtractColumnDefinition(each, modifyColumnDefinitionSegment, parameterMarkerIndexes);
result.add(modifyColumnDefinitionSegment);
}
}
return result;
}
protected void postExtractColumnDefinition(final ParserRuleContext modifyColumnNode,
final ModifyColumnDefinitionSegment modifyColumnDefinitionSegment, final Map<ParserRuleContext, Integer> parameterMarkerIndexes) {
}
}
|
[
"king@qq.com"
] |
king@qq.com
|
15ce8900050adbdbea62ddffde209e92b0dcac70
|
169fffd7dce1c1ef121f96026ed1ca2f0d2fea9b
|
/DuomiManager.backup/src/com/bf/duomi/bean/request/AddShoppingCarRequest.java
|
db6b215189772cd975c555fdb3485b8600cecd9b
|
[] |
no_license
|
zanezyx/Summer
|
a7264f471f92eea068015853fe7c5c0d9898602d
|
5cf87baf59a1a9113a75e9538d9b3608b70d7c09
|
refs/heads/master
| 2021-06-27T15:43:01.331072
| 2019-04-24T08:50:59
| 2019-04-24T08:50:59
| 136,446,651
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,480
|
java
|
package com.bf.duomi.bean.request;
import com.bf.duomi.commication.BaseRequest;
/**
*
* @author zyx
* @anotion 添加购物车项
*/
public class AddShoppingCarRequest extends BaseRequest {
private int customId;
private int productId;
private int amout;
public String customMobile;
public String productName;
public double price;
public String productLogo;
public AddShoppingCarRequest() {
super(REQUESTTYPE.GET, REQUESTSHOWTYPE.DISPLAY);
}
@Override
public String getUrl() {
return getSERVIER_URL() + getPath() + toParams();
}
public int getCustomId() {
return customId;
}
public void setCustomId(int customId) {
this.customId = customId;
}
public int getProductId() {
return productId;
}
public void setProductId(int productId) {
this.productId = productId;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
public int getAmout() {
return amout;
}
public void setAmout(int amout) {
this.amout = amout;
}
public String getCustomMobile() {
return customMobile;
}
public void setCustomMobile(String customMobile) {
this.customMobile = customMobile;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getProductLogo() {
return productLogo;
}
public void setProductLogo(String productLogo) {
this.productLogo = productLogo;
}
}
|
[
"79255569@qq.com"
] |
79255569@qq.com
|
89f39399df7cd7378f3f43deb0a2f0c2fb16dc8d
|
1930d97ebfc352f45b8c25ef715af406783aabe2
|
/src/main/java/com/alipay/api/domain/PaginationCommGroup.java
|
079a111da987d70f5bd916aa85151d12ac376430
|
[
"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,647
|
java
|
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 客制化组分页模型
*
* @author auto create
* @since 1.0, 2020-09-07 16:13:50
*/
public class PaginationCommGroup extends AlipayObject {
private static final long serialVersionUID = 4752149859957176645L;
/**
* 出参列表
*/
@ApiListField("list")
@ApiField("kbdish_comm_group_info")
private List<KbdishCommGroupInfo> list;
/**
* 页码,表示当前页数
*/
@ApiField("page_no")
private String pageNo;
/**
* 每页条数
*/
@ApiField("page_size")
private String pageSize;
/**
* 总条数
*/
@ApiField("total_count")
private String totalCount;
/**
* 总页数
*/
@ApiField("total_page")
private String totalPage;
public List<KbdishCommGroupInfo> getList() {
return this.list;
}
public void setList(List<KbdishCommGroupInfo> list) {
this.list = list;
}
public String getPageNo() {
return this.pageNo;
}
public void setPageNo(String pageNo) {
this.pageNo = pageNo;
}
public String getPageSize() {
return this.pageSize;
}
public void setPageSize(String pageSize) {
this.pageSize = pageSize;
}
public String getTotalCount() {
return this.totalCount;
}
public void setTotalCount(String totalCount) {
this.totalCount = totalCount;
}
public String getTotalPage() {
return this.totalPage;
}
public void setTotalPage(String totalPage) {
this.totalPage = totalPage;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
7008f5d47270297933b7e7bccf769f20a295e3a0
|
1ca86d5d065372093c5f2eae3b1a146dc0ba4725
|
/libraries-4/src/main/java/com/surya/jdeffered/FilterDemo.java
|
ad88aec40277997452abb1efdfb870821598bf1f
|
[] |
no_license
|
Suryakanta97/DemoExample
|
1e05d7f13a9bc30f581a69ce811fc4c6c97f2a6e
|
5c6b831948e612bdc2d9d578a581df964ef89bfb
|
refs/heads/main
| 2023-08-10T17:30:32.397265
| 2021-09-22T16:18:42
| 2021-09-22T16:18:42
| 391,087,435
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 587
|
java
|
package com.surya.jdeffered;
import org.jdeferred.Deferred;
import org.jdeferred.Promise;
import org.jdeferred.impl.DeferredObject;
class FilterDemo {
private static String modifiedMsg;
static String filter(String msg) {
Deferred<String, ?, ?> d = new DeferredObject<>();
Promise<String, ?, ?> p = d.promise();
Promise<String, ?, ?> filtered = p.then((result) -> {
modifiedMsg = "Hello " + result;
});
filtered.done(r -> System.out.println("filtering done"));
d.resolve(msg);
return modifiedMsg;
}
}
|
[
"suryakanta97@github.com"
] |
suryakanta97@github.com
|
5bedd2d75b68428942f8e63eb6b2e2747a6d3d50
|
53ba9bc4f33ad237b3328d3c7a5352d5f4c6fbbf
|
/cicada-core/src/main/java/top/crossoverjie/cicada/server/action/res/CicadaResponse.java
|
fc9d173627b29f829cfad250140cdfa2c037e272
|
[
"Apache-2.0"
] |
permissive
|
zxkete/cicada
|
348237223ee7b890dc421d34303c53339881804d
|
8e68a58e06fcb655de71ffef84f37ba0f6b1c1a6
|
refs/heads/master
| 2020-03-30T03:37:08.996022
| 2018-10-23T01:53:29
| 2018-10-23T01:53:29
| 150,698,101
| 0
| 0
|
Apache-2.0
| 2018-09-28T06:52:33
| 2018-09-28T06:52:33
| null |
UTF-8
|
Java
| false
| false
| 694
|
java
|
package top.crossoverjie.cicada.server.action.res;
import java.util.Map;
/**
* Function:
*
* @author crossoverJie
* Date: 2018/10/5 00:53
* @since JDK 1.8
*/
public interface CicadaResponse {
/**
* get all customer headers
* @return
*/
Map<String, String> getHeaders();
/**
* set content type
* @param contentType
*/
void setContentType(String contentType);
/**
* get content type
* @return
*/
String getContentType();
/**
* set http body
* @param content
*/
void setHttpContent(String content);
/**
* get http body
* @return
*/
String getHttpContent();
}
|
[
"crossoverjie@gmail.com"
] |
crossoverjie@gmail.com
|
ea9f08dbf6725bfea1352cc6a25dbadbc5478b9a
|
850bf40f625b4429531133fbe0319abf74c59fb6
|
/bilan/app/src/main/java/com/lanmei/bilan/bean/WithdrawCardListBean.java
|
b456b6578b8af700446182fa235aa513f5f794fb
|
[] |
no_license
|
xiongkai888/bilan
|
b2b2a502379aafaa898983f77918d7c8c0198dd9
|
c2b2ad5978bca96c8252b4561aaedee9980a1161
|
refs/heads/master
| 2020-04-13T07:34:33.593905
| 2018-12-25T07:35:21
| 2018-12-25T07:35:21
| 163,055,685
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,145
|
java
|
package com.lanmei.bilan.bean;
/**
* Created by xkai on 2018/1/24.
* 申请提现列表
*/
public class WithdrawCardListBean {
/**
* id : 6
* uid : 92
* banks_id : 0
* banks_name : 中国工商银行
* realname : 熊猫
* banks_no : 1587556546954565545
* provinceid : 0
* cityid : 0
* status : 1
* addtime : 2017-07-25 17:18:02
*/
private String id;
private String uid;
private String banks_id;
private String banks_name;
private String realname;
private String banks_no;
private String provinceid;
private String cityid;
private String status;
private String addtime;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public String getBanks_id() {
return banks_id;
}
public void setBanks_id(String banks_id) {
this.banks_id = banks_id;
}
public String getBanks_name() {
return banks_name;
}
public void setBanks_name(String banks_name) {
this.banks_name = banks_name;
}
public String getRealname() {
return realname;
}
public void setRealname(String realname) {
this.realname = realname;
}
public String getBanks_no() {
return banks_no;
}
public void setBanks_no(String banks_no) {
this.banks_no = banks_no;
}
public String getProvinceid() {
return provinceid;
}
public void setProvinceid(String provinceid) {
this.provinceid = provinceid;
}
public String getCityid() {
return cityid;
}
public void setCityid(String cityid) {
this.cityid = cityid;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getAddtime() {
return addtime;
}
public void setAddtime(String addtime) {
this.addtime = addtime;
}
}
|
[
"173422042@qq.com"
] |
173422042@qq.com
|
76e99a7c739ca70ad5ccf41c55d934c7507f8c0b
|
6d3bb1a10e7b819895276e28b0eb1447967f8f0e
|
/jpa-spec/src/main/java/io/github/jeddict/jpa/spec/Lob.java
|
ce5c09ab4ae12b809cc5c9505053e9f83e25aa55
|
[
"Apache-2.0",
"EPL-2.0"
] |
permissive
|
alexkarezin/jeddict
|
4a558afbcf3015b849f0c462fe6b29017df87e7e
|
49936979a289081e0b8bfbc2c0f0c83676d48d54
|
refs/heads/master
| 2022-04-23T17:59:37.740990
| 2020-04-16T15:46:42
| 2020-04-16T15:46:42
| 258,093,633
| 0
| 0
|
Apache-2.0
| 2020-04-23T04:24:56
| 2020-04-23T04:24:55
| null |
UTF-8
|
Java
| false
| false
| 1,324
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.01.21 at 01:52:19 PM IST
//
package io.github.jeddict.jpa.spec;
import io.github.jeddict.source.MemberExplorer;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
*
* @Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface Lob {}
*
*
*
* <p>
* Java class for lob complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within
* this class.
*
* <pre>
* <complexType name="lob">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "lob")
public class Lob {
public static Lob load(MemberExplorer member) {
return member.isAnnotationPresent(javax.persistence.Lob.class) ? new Lob() : null;
}
}
|
[
"gaurav.gupta.jc@gmail.com"
] |
gaurav.gupta.jc@gmail.com
|
7919966fb0a96e339e01f82c6db1590bdc602853
|
a98021b825f3c004421330cdfdc0f1a27d5c2317
|
/projects/eDataShare/eDmvData/eDmvDataGen/src/main/java/ejava/projects/edmv/bo/DMVVehicleRegistration.java
|
b255219d6a9cc7ae10202eda53d7bb22747f8e22
|
[] |
no_license
|
ejavaguy/ejava-student
|
78e9c9a11250ed7bc0f32a5cc8cd1bc80dbc919a
|
0dc378dcf4a7f56a1f40ec2c9cee0ec269d6e87f
|
refs/heads/master
| 2022-11-30T18:37:18.070284
| 2019-08-22T11:03:56
| 2019-08-22T11:03:56
| 19,055,611
| 5
| 7
| null | 2022-11-24T09:36:48
| 2014-04-23T03:27:01
|
Java
|
UTF-8
|
Java
| false
| false
| 1,872
|
java
|
package ejava.projects.edmv.bo;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* This class is used to represent a vehicle registration from the test data
* database.
*
*/
public class DMVVehicleRegistration {
protected long id;
protected String vin;
protected String make;
protected String model;
protected String year;
protected String color;
protected String tagNo;
protected Date expiration;
protected List<DMVPerson> owners = new ArrayList<DMVPerson>();
protected DMVVehicleRegistration() {}
public DMVVehicleRegistration(long id) {
this.id = id;
}
public long getId() {
return id;
}
protected void setId(long id) {
this.id = id;
}
public String getVin() {
return vin;
}
public void setVin(String vin) {
this.vin = vin;
}
public String getMake() {
return make;
}
public void setMake(String make) {
this.make = make;
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model;
}
public String getYear() {
return year;
}
public void setYear(String year) {
this.year = year;
}
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
public String getTagNo() {
return tagNo;
}
public void setTagNo(String tagNo) {
this.tagNo = tagNo;
}
public Date getExpiration() {
return expiration;
}
public void setExpiration(Date expiration) {
this.expiration = expiration;
}
public List<DMVPerson> getOwners() {
return owners;
}
public void setOwners(List<DMVPerson> owners) {
this.owners = owners;
}
}
|
[
"ejavaguy@gmail.com"
] |
ejavaguy@gmail.com
|
ce2582b1e928dfe237a8012c6a1d8438dc8ab8f4
|
6b4125b3d69cbc8fc291f93a2025f9f588d160d3
|
/private-components/integrated-ui/src/main/java/org/limewire/ui/swing/UncaughtExceptionHandlerImpl.java
|
f01d5876b1bb3dcda90fda7b1e18dd10b1e08d77
|
[] |
no_license
|
mnutt/limewire5-ruby
|
d1b079785524d10da1b9bbae6fe065d461f7192e
|
20fc92ea77921c83069e209bb045b43b481426b4
|
refs/heads/master
| 2022-02-10T12:20:02.332362
| 2009-09-11T15:47:07
| 2009-09-11T15:47:07
| 89,669
| 2
| 3
| null | 2022-01-27T16:18:46
| 2008-12-12T19:40:01
|
Java
|
UTF-8
|
Java
| false
| false
| 2,097
|
java
|
package org.limewire.ui.swing;
import java.util.ArrayList;
import java.util.List;
import org.limewire.service.ErrorService;
import com.limegroup.gnutella.util.LimeWireUtils;
public class UncaughtExceptionHandlerImpl implements Thread.UncaughtExceptionHandler {
private final List<StackTraceElement> filters;
public UncaughtExceptionHandlerImpl() {
filters = new ArrayList<StackTraceElement>();
filters.add(new StackTraceElement("javax.jmdns.DNSRecord", "suppressedBy", null, -1));
// add more filters here.
}
public void uncaughtException(Thread thread, Throwable throwable) {
if (LimeWireUtils.isTestingVersion()) {
StackTraceElement[] stackTraceElements = throwable.getStackTrace();
for (StackTraceElement stackTraceElement : stackTraceElements) {
if (matches(stackTraceElement)) {
throwable.printStackTrace();
return;
}
}
ErrorService.error(throwable, "Uncaught thread error: " + thread.getName());
}
}
/**
* Checks to see if the give stack trace matches any of the filters.
*/
private boolean matches(StackTraceElement stackTraceElement) {
for (StackTraceElement filter : filters) {
if (matches(filter, stackTraceElement)) {
return true;
}
}
return false;
}
/**
* Checks to see if a given stack trace element matches against a given
* filter. For a match to be successful, either the ClassName methodName and
* line number must match. Or the class name method name can match and the
* filter line number can be a wild card by having a negative value.
*/
private boolean matches(StackTraceElement filter, StackTraceElement element) {
return filter.getClassName().equals(element.getClassName())
&& filter.getMethodName().equals(element.getMethodName())
&& (filter.getLineNumber() < 0 || filter.getLineNumber() == element.getLineNumber());
}
}
|
[
"michael@nuttnet.net"
] |
michael@nuttnet.net
|
67f40e3e9c7c72511aae008e632756ed99f077cc
|
0deb0a9a5d627365179e8e6eb560b8ce5eb4462e
|
/java/src/test/java/com/yourtion/leetcode/daily/m06/d19/SolutionTest.java
|
1068ab08262b595cec870b8ee562fd5e175cc3c6
|
[
"MIT"
] |
permissive
|
yourtion/LeetCode
|
511bdd344b2d5a6a436ae0a6c0458c73205d54da
|
61ee9fb1f97274e1621f8415dcdd8c7e424d20b3
|
refs/heads/master
| 2021-08-16T21:50:13.852242
| 2021-07-09T01:58:46
| 2021-07-09T01:58:46
| 231,171,224
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 923
|
java
|
package com.yourtion.leetcode.daily.m06.d19;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.stream.Stream;
import static org.junit.jupiter.params.provider.Arguments.arguments;
@DisplayName("每日一题 - 20200619")
class SolutionTest {
static Stream<Arguments> testDataProvider() {
return Stream.of(
arguments("A man, a plan, a canal: Panama", true),
arguments("race a car", false)
);
}
@ParameterizedTest()
@MethodSource("testDataProvider")
void isPalindrome(String source, boolean res) {
System.out.printf("runTest: %s , res: %b", source, res);
Assertions.assertEquals(res, new Solution().isPalindrome(source));
}
}
|
[
"yourtion@gmail.com"
] |
yourtion@gmail.com
|
8f19434a5287014d4f71a87738b77f66e0a26f43
|
37515a0a63e3e6e62ba5104567201d2f14360f13
|
/uidl.component/src/main/java/edu/fudan/langlab/theme/blue/client/grid/MyColumnHeaderDefaultAppearance.java
|
1d27bc25296b48026b54de1c20b6d2a2808d5a10
|
[] |
no_license
|
rockguo2015/newmed
|
9d95e161ba7cb9c59b24c4fb0bec2eb328214831
|
b4818912e5bbc6e0147d47e8ba475c0ac5c80c2e
|
refs/heads/master
| 2021-01-10T05:16:25.491087
| 2015-05-29T10:03:23
| 2015-05-29T10:03:23
| 36,384,873
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 532
|
java
|
package edu.fudan.langlab.theme.blue.client.grid;
import com.google.gwt.core.client.GWT;
import com.sencha.gxt.theme.base.client.grid.ColumnHeaderDefaultAppearance;
public class MyColumnHeaderDefaultAppearance extends
ColumnHeaderDefaultAppearance {
public interface MyColumnHeaderResources extends ColumnHeaderResources {
@Source("ColumnHeader.css")
ColumnHeaderStyle style();
}
public MyColumnHeaderDefaultAppearance() {
super(GWT.<ColumnHeaderResources> create(MyColumnHeaderResources.class));
}
}
|
[
"rock.guo@me.com"
] |
rock.guo@me.com
|
46cbf94f73c6f1af229b88f844172f0c8a6613d3
|
bb13907de0911a1c03f1a32a7ea16740234abf1c
|
/src/main/java/com/emc/fapi/jaxws/v4_3_1/GetGroupSnapshotsResponse.java
|
cbb12eb6a1fdfa1cbc5dc9a22a04bd7bdfa56424
|
[] |
no_license
|
noamda/fal431
|
9287e95fa2bacdace92e65b16ec6985ce2ded29c
|
dad30667424970fba049df3ba2c2023b82b9276e
|
refs/heads/master
| 2021-01-21T14:25:10.211169
| 2016-06-20T08:55:43
| 2016-06-20T08:58:33
| 58,481,483
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,372
|
java
|
package com.emc.fapi.jaxws.v4_3_1;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "getGroupSnapshotsResponse", propOrder = {"_return"})
public class GetGroupSnapshotsResponse {
@XmlElement(name = "return")
protected ConsistencyGroupSnapshots _return;
public GetGroupSnapshotsResponse() {
}
public GetGroupSnapshotsResponse(ConsistencyGroupSnapshots _return) {
this._return = _return;
}
public ConsistencyGroupSnapshots getReturn() {
return this._return;
}
public void setReturn(ConsistencyGroupSnapshots value) {
this._return = value;
}
public boolean equals(Object obj) {
if (!(obj instanceof GetGroupSnapshotsResponse)) {
return false;
}
GetGroupSnapshotsResponse otherObj = (GetGroupSnapshotsResponse) obj;
return this._return == otherObj._return ? true : this._return != null ? this._return.equals(otherObj._return) : false;
}
public int hashCode() {
return this._return != null ? this._return.hashCode() : 0;
}
public String toString() {
return "GetGroupSnapshotsResponse [_return=" + this._return + "]";
}
}
|
[
"style.daniel@gmail.com"
] |
style.daniel@gmail.com
|
303c302078ff8a567b594fbc8922ecdadc1e4903
|
b280a34244a58fddd7e76bddb13bc25c83215010
|
/scmv6/sie-application/src/main/java/com/smate/sie/web/logger/auditlog/resolver/IrisReturnValueAsJsonResourceResolver.java
|
bca5058457be6a5e8605d5bb097bed40f59a7677
|
[] |
no_license
|
hzr958/myProjects
|
910d7b7473c33ef2754d79e67ced0245e987f522
|
d2e8f61b7b99a92ffe19209fcda3c2db37315422
|
refs/heads/master
| 2022-12-24T16:43:21.527071
| 2019-08-16T01:46:18
| 2019-08-16T01:46:18
| 202,512,072
| 2
| 3
| null | 2022-12-16T05:31:05
| 2019-08-15T09:21:04
|
Java
|
UTF-8
|
Java
| false
| false
| 2,276
|
java
|
/**
* Licensed to IRIS-System co. Copyright (C) 2014 IRIS, The IRIS Systems (Shenzhen) Limited.
*/
package com.smate.sie.web.logger.auditlog.resolver;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.aspectj.lang.JoinPoint;
import com.github.inspektr.audit.spi.AuditResourceResolver;
import net.sf.json.JSONArray;
/**
* Implementation of {@link com.github.inspektr.audit.spi.AuditResourceResolver} that uses the
* toString version of the return value as the resource.
*
* @author yxy
*/
public final class IrisReturnValueAsJsonResourceResolver implements AuditResourceResolver {
@Override
@SuppressWarnings("rawtypes")
public String[] resolveFrom(final JoinPoint auditableTarget, final Object retval) {
final List<String> stringArgsRet = new ArrayList<String>();
final List<String> stringArgs = new ArrayList<String>();
if (retval instanceof Collection) {
final Collection c = (Collection) retval;
/* final String[] retvals = new String[c.size()]; */
int i = 0;
for (final Iterator iter = c.iterator(); iter.hasNext() && i < c.size(); i++) {
final Object o = iter.next();
if (o != null) {
if (o instanceof Map) {
stringArgs.add(o.toString());
} else {
stringArgs.add(iter.next().toString());
}
}
}
stringArgsRet.add(JSONArray.fromObject(stringArgs).toString());
return stringArgsRet.toArray(new String[stringArgsRet.size()]);
}
if (retval instanceof Object[]) {
final Object[] vals = (Object[]) retval;
for (int i = 0; i < vals.length; i++) {
stringArgs.add(vals[i].toString());
}
stringArgsRet.add(JSONArray.fromObject(stringArgs).toString());
return stringArgsRet.toArray(new String[stringArgsRet.size()]);
}
return new String[] {retval == null ? "return value is null" : retval.toString()};
}
@Override
public String[] resolveFrom(final JoinPoint auditableTarget, final Exception exception) {
final String message = exception.getMessage();
if (message != null) {
return new String[] {message};
}
return new String[] {exception.toString()};
}
}
|
[
"zhiranhe@irissz.com"
] |
zhiranhe@irissz.com
|
92de32ae1441c1274c8bd8e9cb70071b91ebe9a7
|
553392b78d2110c70433af1acbb3bde9660fc860
|
/editor/src/com/kotcrab/vis/editor/ui/dialog/EnterPathDialog.java
|
8a83ca80330ae23ca4777541c9395f144bedb7e8
|
[
"Apache-2.0"
] |
permissive
|
stbachmann/VisEditor
|
00b9ece7e587099e1c32786a1d05b04a0a02b5fa
|
0c5d052858753d2828c22e4b3ef16619e12b1f95
|
refs/heads/master
| 2021-01-18T00:04:05.249500
| 2016-06-08T20:06:31
| 2016-06-08T20:06:31
| 52,627,769
| 3
| 0
| null | 2016-02-26T19:32:40
| 2016-02-26T19:32:40
| null |
UTF-8
|
Java
| false
| false
| 3,339
|
java
|
/*
* Copyright 2014-2016 See AUTHORS file.
*
* 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.kotcrab.vis.editor.ui.dialog;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.Color;
import com.kotcrab.vis.editor.ui.WindowResultListener;
import com.kotcrab.vis.editor.util.scene2d.VisChangeListener;
import com.kotcrab.vis.ui.util.TableUtils;
import com.kotcrab.vis.ui.util.form.FormInputValidator;
import com.kotcrab.vis.ui.util.form.FormValidator;
import com.kotcrab.vis.ui.widget.VisLabel;
import com.kotcrab.vis.ui.widget.VisTextButton;
import com.kotcrab.vis.ui.widget.VisValidatableTextField;
import com.kotcrab.vis.ui.widget.VisWindow;
/** TODO: Temp dialog until we have some nice way to allow user select target directory from fixed parent. */
/**
* Dialog used to enter new path during asset transaction
* @author Kotcrab
*/
public class EnterPathDialog extends VisWindow {
private final WindowResultListener<EnterPathDialogResult> listener;
public EnterPathDialog (FileHandle root, String relativePath, WindowResultListener<EnterPathDialogResult> listener) {
super("Enter new path");
this.listener = listener;
setModal(true);
addCloseButton();
closeOnEscape();
centerWindow();
TableUtils.setSpacingDefaults(this);
String extension = relativePath.substring(relativePath.lastIndexOf(".") + 1);
VisLabel errorLabel = new VisLabel(" ");
errorLabel.setColor(Color.RED);
VisValidatableTextField fieldPath = new VisValidatableTextField(relativePath);
VisTextButton refactorButton = new VisTextButton("Refactor");
FormValidator validator = new FormValidator(refactorButton, errorLabel);
validator.notEmpty(fieldPath, "Path is empty");
validator.fileNotExists(fieldPath, root, "This file already exist");
validator.custom(fieldPath, new FormInputValidator("The path is unchanged") {
@Override
protected boolean validate (String input) {
return input.equals(relativePath) == false;
}
});
validator.custom(fieldPath, new FormInputValidator("Extension cannot be changed") {
@Override
protected boolean validate (String input) {
String newExt = input.substring(input.lastIndexOf(".") + 1);
return newExt.equals(extension);
}
});
add(fieldPath).colspan(2).expandX().fillX().row();
add(errorLabel).width(200).expand().fill();
add(refactorButton).padBottom(2).padRight(1);
refactorButton.addListener(new VisChangeListener((event, actor) -> {
listener.finished(new EnterPathDialogResult(fieldPath.getText()));
fadeOut();
}));
pack();
}
@Override
protected void close () {
super.close();
listener.canceled();
}
public static class EnterPathDialogResult {
public String relativePath;
public EnterPathDialogResult (String relativePath) {
this.relativePath = relativePath;
}
}
}
|
[
"kotcrab@gmail.com"
] |
kotcrab@gmail.com
|
6805aa44308473dfa46b90d98cc6123c6ccd0061
|
a97313154ff67d48c20b2f35b38af4677a60fbaa
|
/src/test/java/com/timetrade/connector2/qa/CrudAppointmentsTest.java
|
7811da48ed93cb82d949cf956cce254276b3b041
|
[] |
no_license
|
okydiuk-tt/connector2.0-tests
|
0adcb595f7e80e51d7956f75a9dc8adaf2df0481
|
d2ed9e946d8e552f38a95627cc2e873f89ce8f08
|
refs/heads/master
| 2020-04-01T23:55:29.888697
| 2018-11-05T14:25:43
| 2018-11-05T14:25:43
| 153,779,655
| 0
| 0
| null | 2018-10-25T13:05:05
| 2018-10-19T12:31:04
|
Java
|
UTF-8
|
Java
| false
| false
| 4,263
|
java
|
package com.timetrade.connector2.qa;
import com.timetrade.connector2.qa.service.wrappers.TTExchangeService;
import microsoft.exchange.webservices.data.core.enumeration.property.LegacyFreeBusyStatus;
import microsoft.exchange.webservices.data.core.enumeration.service.ConflictResolutionMode;
import microsoft.exchange.webservices.data.core.enumeration.service.DeleteMode;
import microsoft.exchange.webservices.data.core.enumeration.service.SendInvitationsMode;
import microsoft.exchange.webservices.data.core.service.item.Appointment;
import microsoft.exchange.webservices.data.property.complex.MessageBody;
import microsoft.exchange.webservices.data.property.complex.time.OlsonTimeZoneDefinition;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.yandex.qatools.allure.annotations.Step;
import ru.yandex.qatools.allure.annotations.Title;
import java.util.Calendar;
import java.util.TimeZone;
/**
* Created by oleksandr.kydiuk on Oct, 2018
*/
public class CrudAppointmentsTest extends BaseTest {
private static final Log logger = LogFactory.getLog(CrudAppointmentsTest.class);
private Appointment appointment;
private Calendar calStart;
private Calendar calEnd;
@Step
@BeforeMethod
public void setUpInitialAppointment() throws Exception {
calStart = Calendar.getInstance();
calStart.set(Calendar.HOUR_OF_DAY, 10);
calStart.set(Calendar.MINUTE, 0);
calEnd = Calendar.getInstance();
calEnd.set(Calendar.HOUR_OF_DAY, 10);
calEnd.set(Calendar.MINUTE, 29);
calEnd.set(Calendar.SECOND, 59);
assertSlotIsFree(11);
logger.info("Creating appointment with startTime " + calStart.getTime().toString() + "and endTime " + calEnd.getTime().toString());
TTExchangeService service = new TTExchangeService(userOfAccount);
appointment = new Appointment(service);
appointment.setSubject("Dentist Appointment to GA 333");
appointment.setBody(new MessageBody("The appointment is with Dr. Smith."));
appointment.setStart(calStart.getTime());
appointment.setStartTimeZone(new OlsonTimeZoneDefinition(TimeZone.getTimeZone("UTC")));
appointment.setEnd(calEnd.getTime());
appointment.save(SendInvitationsMode.SendToNone);
}
@Step
@AfterMethod
public void tearDown(){
try {
appointment.delete(DeleteMode.HardDelete);
assertSlotIsFree(11);
} catch (Exception e) {
logger.info("Deleting appointment after test error. Message: " + e.getMessage());
}
}
@Title("Create Appointment GA Test")
@Test
public void testCreateAppointment() throws InterruptedException {
assertSlotIsBooked(11);
}
@Title("Update Appointment GA Test")
@Test
public void testUpdateAppointment() throws Exception {
assertSlotIsBooked(11);
appointment.setLegacyFreeBusyStatus(LegacyFreeBusyStatus.Tentative);
appointment.update(ConflictResolutionMode.AlwaysOverwrite);
assertSlotIsTentative(11);
}
@Title("Reschedule Appointment GA Test")
@Test
public void testRescheduleAppointment() throws Exception {
assertSlotIsBooked(11);
//shifting appointment by 1 hour
calStart.add(Calendar.HOUR, 1);
calEnd.add(Calendar.HOUR, 1);
appointment.setStart(calStart.getTime());
appointment.setEnd(calEnd.getTime());
appointment.update(ConflictResolutionMode.AlwaysOverwrite);
assertSlotIsBooked(12);
//shifting appointment backwards
calStart.add(Calendar.HOUR, -1);
calEnd.add(Calendar.HOUR, -1);
appointment.setStart(calStart.getTime());
appointment.setEnd(calEnd.getTime());
appointment.update(ConflictResolutionMode.AlwaysOverwrite);
assertSlotIsBooked(11);
}
@Title("Delete Appointment GA Test")
@Test
public void testDeleteAppointment() throws Exception {
assertSlotIsBooked(11);
appointment.delete(DeleteMode.SoftDelete);
assertSlotIsFree(11);
}
}
|
[
"okydiuk@timetrade.com"
] |
okydiuk@timetrade.com
|
7ae7b9bec05d96a7e7890fbd4f17db7eafcfafb2
|
e034eadd636b4a43f6c7b97627af7d718dec58ff
|
/ngpm/com.sap.runlet.apps.opportunitymanagement.ui/gxt/src/com/extjs/gxt/ui/client/widget/treegrid/TreeGridView.java
|
34980c45951e2b4550e6fb9366859f23533863d4
|
[] |
no_license
|
FURCAS-dev/FURCAS
|
ed89b3152a56466fee04285fa02b09d3124adf8f
|
1f5651283f45666792b4747c5ce97128807761f1
|
refs/heads/master
| 2020-06-03T21:46:35.150521
| 2017-08-09T10:20:45
| 2017-08-09T10:20:45
| 1,083,639
| 2
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,435
|
java
|
/*
* Ext GWT - Ext for GWT
* Copyright(c) 2007-2009, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
package com.extjs.gxt.ui.client.widget.treegrid;
import java.util.List;
import com.extjs.gxt.ui.client.GXT;
import com.extjs.gxt.ui.client.core.El;
import com.extjs.gxt.ui.client.core.XDOM;
import com.extjs.gxt.ui.client.data.ModelData;
import com.extjs.gxt.ui.client.event.GridEvent;
import com.extjs.gxt.ui.client.store.TreeStore;
import com.extjs.gxt.ui.client.widget.grid.BufferView;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.widget.treegrid.TreeGrid.TreeNode;
import com.extjs.gxt.ui.client.widget.treepanel.TreePanel.Joint;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.ui.AbstractImagePrototype;
@SuppressWarnings("unchecked")
public class TreeGridView extends BufferView {
protected TreeGrid tree;
protected TreeStore treeStore;
private String collapseHtml = GXT.IMAGES.tree_collapsed().getHTML();
private String expandHtml = GXT.IMAGES.tree_expanded().getHTML();
public TreeGridView() {
setRowSelectorDepth(20);
setCellSelectorDepth(10);
}
public void collapse(TreeNode node) {
ModelData p = node.m;
ModelData lc = treeStore.getLastChild(p);
if (tree.isExpanded(lc)) {
lc = treeStore.getLastChild(lc);
}
int start = ds.indexOf(p);
int end = ds.indexOf(lc);
for (int i = end; i > start; i--) {
ds.remove(grid.getStore().getAt(i));
}
tree.refresh(node.m);
}
public void expand(TreeNode node) {
ModelData p = node.m;
List<ModelData> children = treeStore.getChildren(p);
int idx = ds.indexOf(p);
ds.insert(children, idx + 1);
for (ModelData child : children) {
TreeNode cn = tree.findNode(child);
if (cn.isExpanded()) {
expand(cn);
}
}
tree.refresh(node.m);
}
public Element getJointElement(TreeNode node) {
Element row = getRowElement(node);
if (row != null) {
El jointEl = fly(row).selectNode(".x-tree3-el");
return jointEl == null ? null : (Element) jointEl.dom.getChildNodes().getItem(1);
}
return null;
}
public String getTemplate(ModelData m, String id, String text,
AbstractImagePrototype icon, boolean checkable, Joint joint, int level) {
StringBuffer sb = new StringBuffer();
sb.append("<div id=\"");
sb.append(id);
sb.append("\" class=\"x-tree3-node\">");
sb.append("<div class=\"x-tree3-el\">");
String h = "";
switch (joint) {
case COLLAPSED:
h = collapseHtml;
break;
case EXPANDED:
h = expandHtml;
break;
default:
h = "<img src=\"" + GXT.BLANK_IMAGE_URL + "\" style='width: 16px'>";
}
sb.append("<img src=\"");
sb.append(GXT.BLANK_IMAGE_URL);
sb.append("\" style=\"height: 18px; width: ");
sb.append(level * 18);
sb.append("px;\" />");
sb.append(h);
if (checkable) {
sb.append(GXT.IMAGES.unchecked().getHTML());
} else {
sb.append("<span></span>");
}
if (icon != null) {
sb.append(icon.getHTML());
} else {
sb.append("<span></span>");
}
sb.append("<span class=\"x-tree3-node-text\">");
sb.append(text);
sb.append("</span>");
sb.append("</div>");
sb.append("</div>");
return sb.toString();
}
public boolean isSelectableTarget(ModelData model, Element target) {
TreeNode node = tree.findNode(model);
if (node != null) {
if (DOM.isOrHasChild(getJointElement(node), target)) {
return false;
}
}
return true;
}
public void onIconStyleChange(TreeNode node, AbstractImagePrototype icon) {
El nodeEl = fly(getRowElement(node)).selectNode(".x-tree3-el");
if (nodeEl != null) {
Element iconEl = nodeEl.dom.getChildNodes().getItem(3).cast();
if (iconEl != null) {
if (icon != null) {
iconEl.getParentElement().insertBefore(icon.createElement(), iconEl);
} else {
iconEl.getParentElement().insertBefore(DOM.createSpan(), iconEl);
}
El.fly(iconEl).remove();
}
}
}
public void onJointChange(TreeNode node, Joint joint) {
Element jointEl = getJointElement(node);
if (jointEl != null) {
switch (joint) {
case EXPANDED:
jointEl.getParentElement().insertBefore(
GXT.IMAGES.tree_expanded().createElement(), jointEl);
break;
case COLLAPSED:
jointEl.getParentElement().insertBefore(
GXT.IMAGES.tree_collapsed().createElement(), jointEl);
break;
default:
jointEl.getParentElement().insertBefore(
XDOM.create("<img src=\"" + GXT.BLANK_IMAGE_URL + "\" style='width: 16px'>"),
jointEl);
}
El.fly(jointEl).remove();
}
}
protected Element getRowElement(TreeNode node) {
return getRow(ds.indexOf(node.m)).cast();
}
@Override
protected void init(Grid grid) {
super.init(grid);
tree = (TreeGrid) grid;
treeStore = tree.getTreeStore();
}
protected void onClick(GridEvent<ModelData> ce) {
if (ce.getModel() != null && !isSelectableTarget(ce.getModel(), ce.getTarget())) {
return;
}
super.onClick(ce);
}
@Override
protected void onHeaderClick(Grid<ModelData> grid, int column) {
}
}
|
[
"goldschm@.fzi.de"
] |
goldschm@.fzi.de
|
a5b4cac0bc1dc390e238f29325aebc8a8212b026
|
de07a799efe3453dd203905f4f70be1a87e1a379
|
/org.xtext.example.videogen/src-gen/org/xtext/example/mydsl/videoGen/AlternativeVideoSeq.java
|
596c0ab4cde017666c3e4d5a58d3d63a2cce386f
|
[] |
no_license
|
acherm/teaching-MDE-MIAGE1718
|
ade816cb29542b15c655b89d6fd0fbb13ad37062
|
2d40bc4be77b380ee57759d440899684dd0cbb7d
|
refs/heads/master
| 2021-09-06T23:07:31.907906
| 2018-02-13T06:43:04
| 2018-02-13T06:43:04
| 103,909,008
| 7
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,278
|
java
|
/**
* generated by Xtext 2.12.0
*/
package org.xtext.example.mydsl.videoGen;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Alternative Video Seq</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.xtext.example.mydsl.videoGen.AlternativeVideoSeq#getVideoid <em>Videoid</em>}</li>
* <li>{@link org.xtext.example.mydsl.videoGen.AlternativeVideoSeq#getVideodescs <em>Videodescs</em>}</li>
* </ul>
*
* @see org.xtext.example.mydsl.videoGen.VideoGenPackage#getAlternativeVideoSeq()
* @model
* @generated
*/
public interface AlternativeVideoSeq extends VideoSeq
{
/**
* Returns the value of the '<em><b>Videoid</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Videoid</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Videoid</em>' attribute.
* @see #setVideoid(String)
* @see org.xtext.example.mydsl.videoGen.VideoGenPackage#getAlternativeVideoSeq_Videoid()
* @model
* @generated
*/
String getVideoid();
/**
* Sets the value of the '{@link org.xtext.example.mydsl.videoGen.AlternativeVideoSeq#getVideoid <em>Videoid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Videoid</em>' attribute.
* @see #getVideoid()
* @generated
*/
void setVideoid(String value);
/**
* Returns the value of the '<em><b>Videodescs</b></em>' containment reference list.
* The list contents are of type {@link org.xtext.example.mydsl.videoGen.VideoDescription}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Videodescs</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Videodescs</em>' containment reference list.
* @see org.xtext.example.mydsl.videoGen.VideoGenPackage#getAlternativeVideoSeq_Videodescs()
* @model containment="true"
* @generated
*/
EList<VideoDescription> getVideodescs();
} // AlternativeVideoSeq
|
[
"mathieu.acher@irisa.fr"
] |
mathieu.acher@irisa.fr
|
8deaab3db7847e87fe7f8d0d39771b248cf9dab1
|
8453e56375c907948d0fccee820aac8eeefaa336
|
/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/CreateScalingNotificationResponse.java
|
ce3a9251c014558fe1fc094fd13b6fe42a3e2b95
|
[
"Apache-2.0"
] |
permissive
|
xionghao-hw/huaweicloud-sdk-java-v3
|
cfc8e37302bc4e059dbd30521ab378246aa65c40
|
225f99bf54fabcd6a19c9a5c47d1f079434b46e8
|
refs/heads/master
| 2022-08-31T18:43:33.388382
| 2020-05-19T07:33:06
| 2020-05-19T07:33:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,373
|
java
|
package com.huaweicloud.sdk.as.v1.model;
import java.util.Objects;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.*;
import com.huaweicloud.sdk.core.SdkResponse;
/**
* Response Object
*/
public class CreateScalingNotificationResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="topic_urn")
private String topicUrn;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="topic_scene")
private List<String> topicScene = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="topic_name")
private String topicName;
public CreateScalingNotificationResponse withTopicUrn(String topicUrn) {
this.topicUrn = topicUrn;
return this;
}
/**
* SMN服务中Topic的唯一的资源标识。
* @return topicUrn
*/
public String getTopicUrn() {
return topicUrn;
}
public void setTopicUrn(String topicUrn) {
this.topicUrn = topicUrn;
}
public CreateScalingNotificationResponse withTopicScene(List<String> topicScene) {
this.topicScene = topicScene;
return this;
}
public CreateScalingNotificationResponse addTopicSceneItem(String topicSceneItem) {
if (this.topicScene == null) {
this.topicScene = new ArrayList<>();
}
this.topicScene.add(topicSceneItem);
return this;
}
public CreateScalingNotificationResponse withTopicScene(Consumer<List<String>> topicSceneSetter) {
if(this.topicScene == null ){
this.topicScene = new ArrayList<>();
}
topicSceneSetter.accept(this.topicScene);
return this;
}
/**
* 通知场景,有以下五种类型。SCALING_UP:扩容成功。SCALING_UP_FAIL:扩容失败。SCALING_DOWN:减容成功。SCALING_DOWN_FAIL:减容失败。SCALING_GROUP_ABNORMAL:伸缩组发生异常
* @return topicScene
*/
public List<String> getTopicScene() {
return topicScene;
}
public void setTopicScene(List<String> topicScene) {
this.topicScene = topicScene;
}
public CreateScalingNotificationResponse withTopicName(String topicName) {
this.topicName = topicName;
return this;
}
/**
* SMN服务中Topic的资源名称。
* @return topicName
*/
public String getTopicName() {
return topicName;
}
public void setTopicName(String topicName) {
this.topicName = topicName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateScalingNotificationResponse createScalingNotificationResponse = (CreateScalingNotificationResponse) o;
return Objects.equals(this.topicUrn, createScalingNotificationResponse.topicUrn) &&
Objects.equals(this.topicScene, createScalingNotificationResponse.topicScene) &&
Objects.equals(this.topicName, createScalingNotificationResponse.topicName);
}
@Override
public int hashCode() {
return Objects.hash(topicUrn, topicScene, topicName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateScalingNotificationResponse {\n");
sb.append(" topicUrn: ").append(toIndentedString(topicUrn)).append("\n");
sb.append(" topicScene: ").append(toIndentedString(topicScene)).append("\n");
sb.append(" topicName: ").append(toIndentedString(topicName)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"wuchen25@huawei.com"
] |
wuchen25@huawei.com
|
7493a946aacae3cf7fd063ba6250befec4b39507
|
eee526007ca1b019ccb33588ce27e4dd9fddde8f
|
/src/main/java/com/utp/exception/ExceptionResponse.java
|
0cb7e80d32fb9d2b18cede0721069953baa4e3b2
|
[] |
no_license
|
ralejotuanama/utp-backend
|
7a9a42c40b978b82eba4d51c9100aadc439ee056
|
7ac64f65593683adcd14cf63f1febb6f5c5f328c
|
refs/heads/main
| 2023-04-19T18:32:51.510647
| 2021-05-05T23:03:46
| 2021-05-05T23:03:46
| 364,651,032
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 732
|
java
|
package com.utp.exception;
import java.time.LocalDateTime;
public class ExceptionResponse {
private LocalDateTime fecha;
private String mensaje;
private String detalles;
public ExceptionResponse(LocalDateTime fechaHora, String mensaje, String detalles) {
this.fecha = fechaHora;
this.mensaje = mensaje;
this.detalles = detalles;
}
public LocalDateTime getFecha() {
return fecha;
}
public void setFecha(LocalDateTime fecha) {
this.fecha = fecha;
}
public String getMensaje() {
return mensaje;
}
public void setMensaje(String mensaje) {
this.mensaje = mensaje;
}
public String getDetalles() {
return detalles;
}
public void setDetalles(String detalles) {
this.detalles = detalles;
}
}
|
[
"="
] |
=
|
281971e19d09be05a1af31450be609a13a9a644c
|
125b073f9d405efe6e9ae5f9edeb8ea093d8a525
|
/AnnoncesAutoGenerique/src/fr/RivaMedia/AnnoncesAutoGenerique/net/NetChargement.java
|
270b58e600e6881b7b0bf280b9cdd497b11c9959
|
[] |
no_license
|
kevindjf/kevin-flo-entreprise
|
68c34ac2e63e247e1f9409bd4e65661a9bc9e044
|
4eefa913d1e9fe581008bc2a879a0034becd997d
|
refs/heads/master
| 2021-01-10T08:23:35.969822
| 2014-04-19T13:58:47
| 2014-04-19T13:58:47
| 48,982,588
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,690
|
java
|
package fr.RivaMedia.AnnoncesAutoGenerique.net;
import java.util.List;
import fr.RivaMedia.AnnoncesAutoGenerique.Constantes;
import fr.RivaMedia.AnnoncesAutoGenerique.model.AutoPromo;
import fr.RivaMedia.AnnoncesAutoGenerique.model.Categorie;
import fr.RivaMedia.AnnoncesAutoGenerique.model.Departement;
import fr.RivaMedia.AnnoncesAutoGenerique.model.Energie;
import fr.RivaMedia.AnnoncesAutoGenerique.model.Marque;
import fr.RivaMedia.AnnoncesAutoGenerique.model.Modele;
import fr.RivaMedia.AnnoncesAutoGenerique.model.core.ClientParametres;
import fr.RivaMedia.AnnoncesAutoGenerique.net.core.Net;
import fr.RivaMedia.AnnoncesAutoGenerique.xml.AutoPromoXmlParser;
import fr.RivaMedia.AnnoncesAutoGenerique.xml.CategorieXmlParser;
import fr.RivaMedia.AnnoncesAutoGenerique.xml.ClientParametreXmlParser;
import fr.RivaMedia.AnnoncesAutoGenerique.xml.DepartementXmlParser;
import fr.RivaMedia.AnnoncesAutoGenerique.xml.EnergieXmlParser;
import fr.RivaMedia.AnnoncesAutoGenerique.xml.MarqueXmlParser;
import fr.RivaMedia.AnnoncesAutoGenerique.xml.ModeleXmlParser;
public class NetChargement extends Net{
public static ClientParametres chargerClientParametres(){
String xml = Net.requeteGet(Constantes.URL_CLIENT_PARAMETRE, null);
return new ClientParametreXmlParser(xml).getClientParametres();
}
public static List<Marque> chargerMarques(){
String xml = Net.requeteGet(Constantes.URL_MARQUES, Net.construireDonnes(
Constantes.MARQUES_TOUTES, Constantes.MARQUES_TOUTES_VALUE
));
return new MarqueXmlParser(xml).getMarques();
}
public static List<Marque> chargerMarquesPubliees(){
String xml = Net.requeteGet(Constantes.URL_MARQUES, null);
return new MarqueXmlParser(xml).getMarques();
}
public static List<Modele> chargerModeles(String marqueId, boolean tout){
String xml = Net.requeteGet(Constantes.URL_MODELES,
Net.construireDonnes(
Constantes.MODELES_MARQUE_ID, marqueId
),tout);
return new ModeleXmlParser(xml).getModeles();
}
public static List<Categorie> chargerCategories(){
String xml = Net.requeteGet(Constantes.URL_CATEGORIES, null);
return new CategorieXmlParser(xml).getCategories();
}
public static List<Energie> chargerEnergies(){
String xml = Net.requeteGet(Constantes.URL_ENERGIES, null);
return new EnergieXmlParser(xml).getEnergies();
}
public static AutoPromo chargerAutoPromo(){
String xml = Net.requeteGet(Constantes.URL_AUTO_PROMO, null);
return new AutoPromoXmlParser(xml).getAutoPromo();
}
public static List<Departement> chargerDepartements(){
String xml = Net.requeteGet(Constantes.URL_DEPARTEMENTS, null);
return new DepartementXmlParser(xml).getDepartements();
}
}
|
[
"champigny.florent@gmail.com"
] |
champigny.florent@gmail.com
|
17b4b639eafe49d7fc5a2f22c10fed2c4d4b047a
|
d866c060f4752eafb10664b0855e02d112537788
|
/webuy-learning/webuy-learning-socket/src/main/java/com/weweibuy/webuy/learning/socket/netty/http/NettyHttpClient.java
|
b3eaaf95a0e68594368944b61e5608fc74ed8a9f
|
[] |
no_license
|
weweibuy/weweibuy
|
75910a4fa229efda39b626740f0f8138db4d4cb2
|
d48ec7ce9135293991703ecfae4bfc3b08112e85
|
refs/heads/master
| 2023-07-20T06:27:57.327861
| 2022-12-24T14:13:16
| 2022-12-24T14:13:16
| 150,745,949
| 14
| 5
| null | 2023-09-05T22:03:32
| 2018-09-28T13:37:34
|
Java
|
UTF-8
|
Java
| false
| false
| 2,336
|
java
|
package com.weweibuy.webuy.learning.socket.netty.http;
import io.netty.bootstrap.Bootstrap;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.handler.codec.http.*;
import java.net.URI;
/**
* @author durenhao
* @date 2020/6/14 21:18
**/
public class NettyHttpClient {
public static void main(String[] args) throws Exception {
NioEventLoopGroup worker = new NioEventLoopGroup(5);
Bootstrap bootstrap = new Bootstrap();
bootstrap.group( worker)
.channel(NioSocketChannel.class)
.handler(new ChannelInitializer<SocketChannel>() {
@Override
protected void initChannel(SocketChannel socketChannel) throws Exception {
socketChannel.pipeline()
.addLast(new HttpResponseDecoder())
// 客户端发送的是httprequest,所以要使用HttpRequestEncoder进行编码
.addLast(new HttpRequestEncoder())
.addLast(new HttpClientHandler());
;
}
})
.option(ChannelOption.SO_BACKLOG, 128);
ChannelFuture sync = bootstrap.connect("localhost", 9000).sync();
SocketChannel channel = (SocketChannel)sync.channel();
URI url = new URI("/hello");
String meg = "hello";
//配置HttpRequest的请求数据和一些配置信息
FullHttpRequest request = new DefaultFullHttpRequest(
HttpVersion.HTTP_1_1, HttpMethod.GET, url.toASCIIString(), Unpooled.wrappedBuffer(meg.getBytes("UTF-8")));
request.headers()
.set(HttpHeaderNames.CONTENT_TYPE, "text/plain;charset=UTF-8")
//开启长连接
.set(HttpHeaderNames.CONNECTION, HttpHeaderValues.KEEP_ALIVE)
//设置传递请求内容的长度
.set(HttpHeaderNames.CONTENT_LENGTH, request.content().readableBytes());
//发送数据
channel.writeAndFlush(request);
}
}
|
[
"ak514250@126.com"
] |
ak514250@126.com
|
6ce55f3259bc9e9171cdedb97005bb019c271c6c
|
bb023c0ac7f252ebd15e56baf19a56b1e7111397
|
/src/main/java/ml/wonwoo/springjdbcexample/jdbc/SelectJdbc.java
|
0df3d771141a21bc77cb484b28712e22798dbd8b
|
[] |
no_license
|
wonwoo/spring-jdbc-example
|
ceaf3a10e73e8d2ee99a70ccaad1e10dc3f9f890
|
fb6624c02f97b6e576ebc7c60a184d36eeeee636
|
refs/heads/master
| 2020-03-07T18:25:17.685888
| 2018-04-01T14:41:55
| 2018-04-01T14:41:55
| 127,637,775
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,495
|
java
|
package ml.wonwoo.springjdbcexample.jdbc;
import ml.wonwoo.springjdbcexample.model.Person;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.ResultSetExtractor;
import org.springframework.stereotype.Service;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
@Service
public class SelectJdbc {
private final JdbcTemplate jdbcTemplate;
public SelectJdbc(JdbcTemplate jdbcTemplate) {
this.jdbcTemplate = jdbcTemplate;
}
public Map<String, Object> findAllMap(Long id) {
return this.jdbcTemplate.queryForMap("SELECT id FROM persons where id = ?", id);
}
public Person findOne(Long id) {
return this.jdbcTemplate.queryForObject("SELECT id, name FROM persons where id = ?",
(rs, rowNum) -> new Person(rs.getLong("id"), rs.getString("name")),
id);
}
public List<Person> findAll() {
return this.jdbcTemplate.query("SELECT id, name FROM persons",
(rs, rowNum) -> new Person(rs.getLong("id"), rs.getString("name")), 1);
}
public Long findId(Long id) {
return this.jdbcTemplate.queryForObject("SELECT id FROM persons where id = ?", Long.class, id);
}
public List<Long> findAllId() {
return this.jdbcTemplate.queryForList("SELECT id FROM persons", Long.class);
}
public int count() {
return this.jdbcTemplate.queryForObject("SELECT count(id) FROM persons", int.class);
}
}
|
[
"aoruqjfu@gmail.com"
] |
aoruqjfu@gmail.com
|
0e33a04b4b02d32bf4173d435d99aa9f70a2891e
|
5338608df0a9ab38bdf6e61e0c1e343aaf411391
|
/provider/user-provider-service/src/main/java/com/study/shop/provider/service/fallback/TbUserServiceFallback.java
|
5e33b657298508d6024fea2ea0d033a3cb492a44
|
[
"Apache-2.0"
] |
permissive
|
yhuihu/shop_api
|
3b723a72725cc7cafa4a8fb557674d187ecc94d3
|
890320848cf5a1334a1679308579844923069611
|
refs/heads/master
| 2022-05-25T01:18:28.107044
| 2020-06-24T07:06:53
| 2020-06-24T07:06:53
| 223,896,315
| 1
| 1
|
Apache-2.0
| 2022-05-20T21:28:39
| 2019-11-25T08:18:12
|
Java
|
UTF-8
|
Java
| false
| false
| 739
|
java
|
package com.study.shop.provider.service.fallback;
import com.study.shop.provider.domain.TbUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author Admin
*/
public class TbUserServiceFallback {
private static final Logger logger = LoggerFactory.getLogger(TbUserServiceFallback.class);
/**
* 熔断方法
*
* @param username {@code String} 用户名
* @param ex {@code Throwable} 异常信息
* @return {@link TbUser} 熔断后的固定结果
*/
public static TbUser getByUsernameFallback(String username, Throwable ex) {
logger.warn("Invoke getByUsernameFallback: " + ex.getClass().getTypeName());
ex.printStackTrace();
return null;
}
}
|
[
"35516186+yhuihu@users.noreply.github.com"
] |
35516186+yhuihu@users.noreply.github.com
|
d5aeb5dbeaa55c725975280f6c51f3b567a0091b
|
6baa09045c69b0231c35c22b06cdf69a8ce227d6
|
/modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201601/cm/SelectorErrorReason.java
|
2ab8dc6ab833e1022718aaae5d89e34e85332b94
|
[
"Apache-2.0"
] |
permissive
|
remotejob/googleads-java-lib
|
f603b47117522104f7df2a72d2c96ae8c1ea011d
|
a330df0799de8d8de0dcdddf4c317d6b0cd2fe10
|
refs/heads/master
| 2020-12-11T01:36:29.506854
| 2016-07-28T22:13:24
| 2016-07-28T22:13:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,209
|
java
|
/**
* SelectorErrorReason.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.adwords.axis.v201601.cm;
public class SelectorErrorReason implements java.io.Serializable {
private java.lang.String _value_;
private static java.util.HashMap _table_ = new java.util.HashMap();
// Constructor
protected SelectorErrorReason(java.lang.String value) {
_value_ = value;
_table_.put(_value_,this);
}
public static final java.lang.String _INVALID_FIELD_NAME = "INVALID_FIELD_NAME";
public static final java.lang.String _MISSING_FIELDS = "MISSING_FIELDS";
public static final java.lang.String _MISSING_PREDICATES = "MISSING_PREDICATES";
public static final java.lang.String _OPERATOR_DOES_NOT_SUPPORT_MULTIPLE_VALUES = "OPERATOR_DOES_NOT_SUPPORT_MULTIPLE_VALUES";
public static final java.lang.String _INVALID_PREDICATE_ENUM_VALUE = "INVALID_PREDICATE_ENUM_VALUE";
public static final java.lang.String _MISSING_PREDICATE_OPERATOR = "MISSING_PREDICATE_OPERATOR";
public static final java.lang.String _MISSING_PREDICATE_VALUES = "MISSING_PREDICATE_VALUES";
public static final java.lang.String _INVALID_PREDICATE_FIELD_NAME = "INVALID_PREDICATE_FIELD_NAME";
public static final java.lang.String _INVALID_PREDICATE_OPERATOR = "INVALID_PREDICATE_OPERATOR";
public static final java.lang.String _INVALID_FIELD_SELECTION = "INVALID_FIELD_SELECTION";
public static final java.lang.String _INVALID_PREDICATE_VALUE = "INVALID_PREDICATE_VALUE";
public static final java.lang.String _INVALID_SORT_FIELD_NAME = "INVALID_SORT_FIELD_NAME";
public static final java.lang.String _SELECTOR_ERROR = "SELECTOR_ERROR";
public static final java.lang.String _FILTER_BY_DATE_RANGE_NOT_SUPPORTED = "FILTER_BY_DATE_RANGE_NOT_SUPPORTED";
public static final java.lang.String _START_INDEX_IS_TOO_HIGH = "START_INDEX_IS_TOO_HIGH";
public static final java.lang.String _TOO_MANY_PREDICATE_VALUES = "TOO_MANY_PREDICATE_VALUES";
public static final java.lang.String _UNKNOWN_ERROR = "UNKNOWN_ERROR";
public static final SelectorErrorReason INVALID_FIELD_NAME = new SelectorErrorReason(_INVALID_FIELD_NAME);
public static final SelectorErrorReason MISSING_FIELDS = new SelectorErrorReason(_MISSING_FIELDS);
public static final SelectorErrorReason MISSING_PREDICATES = new SelectorErrorReason(_MISSING_PREDICATES);
public static final SelectorErrorReason OPERATOR_DOES_NOT_SUPPORT_MULTIPLE_VALUES = new SelectorErrorReason(_OPERATOR_DOES_NOT_SUPPORT_MULTIPLE_VALUES);
public static final SelectorErrorReason INVALID_PREDICATE_ENUM_VALUE = new SelectorErrorReason(_INVALID_PREDICATE_ENUM_VALUE);
public static final SelectorErrorReason MISSING_PREDICATE_OPERATOR = new SelectorErrorReason(_MISSING_PREDICATE_OPERATOR);
public static final SelectorErrorReason MISSING_PREDICATE_VALUES = new SelectorErrorReason(_MISSING_PREDICATE_VALUES);
public static final SelectorErrorReason INVALID_PREDICATE_FIELD_NAME = new SelectorErrorReason(_INVALID_PREDICATE_FIELD_NAME);
public static final SelectorErrorReason INVALID_PREDICATE_OPERATOR = new SelectorErrorReason(_INVALID_PREDICATE_OPERATOR);
public static final SelectorErrorReason INVALID_FIELD_SELECTION = new SelectorErrorReason(_INVALID_FIELD_SELECTION);
public static final SelectorErrorReason INVALID_PREDICATE_VALUE = new SelectorErrorReason(_INVALID_PREDICATE_VALUE);
public static final SelectorErrorReason INVALID_SORT_FIELD_NAME = new SelectorErrorReason(_INVALID_SORT_FIELD_NAME);
public static final SelectorErrorReason SELECTOR_ERROR = new SelectorErrorReason(_SELECTOR_ERROR);
public static final SelectorErrorReason FILTER_BY_DATE_RANGE_NOT_SUPPORTED = new SelectorErrorReason(_FILTER_BY_DATE_RANGE_NOT_SUPPORTED);
public static final SelectorErrorReason START_INDEX_IS_TOO_HIGH = new SelectorErrorReason(_START_INDEX_IS_TOO_HIGH);
public static final SelectorErrorReason TOO_MANY_PREDICATE_VALUES = new SelectorErrorReason(_TOO_MANY_PREDICATE_VALUES);
public static final SelectorErrorReason UNKNOWN_ERROR = new SelectorErrorReason(_UNKNOWN_ERROR);
public java.lang.String getValue() { return _value_;}
public static SelectorErrorReason fromValue(java.lang.String value)
throws java.lang.IllegalArgumentException {
SelectorErrorReason enumeration = (SelectorErrorReason)
_table_.get(value);
if (enumeration==null) throw new java.lang.IllegalArgumentException();
return enumeration;
}
public static SelectorErrorReason fromString(java.lang.String value)
throws java.lang.IllegalArgumentException {
return fromValue(value);
}
public boolean equals(java.lang.Object obj) {return (obj == this);}
public int hashCode() { return toString().hashCode();}
public java.lang.String toString() { return _value_;}
public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);}
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.EnumSerializer(
_javaType, _xmlType);
}
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.EnumDeserializer(
_javaType, _xmlType);
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(SelectorErrorReason.class);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "SelectorError.Reason"));
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
}
|
[
"jradcliff@google.com"
] |
jradcliff@google.com
|
b6debeb36d1d3ab80814c51e4ef35336ec783b3a
|
4881186576e35e46f03182ec91d60c4078c84471
|
/src/main/java/com/fayayo/study/binlogTemplate/mysql/listener/IncrementListener.java
|
b067daeaecbe4ff240c29d02992f6bafe7e290a8
|
[] |
no_license
|
lizu18xz/study
|
6adc45cbb0e9f4e694e4ae6865ba675a8231c364
|
dc680f1f781bc9cc2acf6ee717d7dea51161007e
|
refs/heads/master
| 2022-07-04T13:36:39.936825
| 2020-03-01T07:18:50
| 2020-03-01T07:18:50
| 150,547,064
| 0
| 1
| null | 2022-06-20T22:54:03
| 2018-09-27T07:30:39
|
Java
|
UTF-8
|
Java
| false
| false
| 2,524
|
java
|
package com.fayayo.study.binlogTemplate.mysql.listener;
import com.fayayo.study.binlogTemplate.mysql.constants.Constant;
import com.fayayo.study.binlogTemplate.mysql.constants.OpType;
import com.fayayo.study.binlogTemplate.mysql.dto.BinlogRowData;
import com.fayayo.study.binlogTemplate.mysql.dto.MySqlRowData;
import com.fayayo.study.binlogTemplate.mysql.dto.TableTemplate;
import com.fayayo.study.binlogTemplate.sender.ISender;
import com.github.shyiko.mysql.binlog.event.EventType;
import lombok.extern.slf4j.Slf4j;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Slf4j
public class IncrementListener implements Ilistener {
//投递方式
private ISender sender;
private AggregationListener aggregationListener;
public IncrementListener(ISender sender, AggregationListener aggregationListener) {
this.sender = sender;
this.aggregationListener = aggregationListener;
}
//注册处理器,要在初始化的时候就注册,系统启动的时候
@Override
public void register() {
log.info("IncrementListener register db and table info");
Constant.table2Db.forEach((k, v) ->
aggregationListener.register(v, k, this));
}
//将BinlogRowData ---> MySqlRowData 然后发送出去,比如到kafka
@Override
public void onEvent(BinlogRowData eventData) {
TableTemplate table = eventData.getTable();
EventType eventType = eventData.getEventType();
// 包装成最后需要投递的数据
MySqlRowData rowData = new MySqlRowData();
rowData.setTableName(table.getTableName());
rowData.setLevel(eventData.getTable().getLevel());
OpType opType = OpType.to(eventType);
rowData.setOpType(opType);
// 取出模板中该操作对应的字段列表
List<String> fieldList = table.getOpTypeFieldSetMap().get(opType);
if (null == fieldList) {
log.warn("{} not support for {}", opType, table.getTableName());
return;
}
for (Map<String, String> afterMap : eventData.getAfter()) {
Map<String, String> _afterMap = new HashMap<>();
for (Map.Entry<String, String> entry : afterMap.entrySet()) {
String colName = entry.getKey();
String colValue = entry.getValue();
_afterMap.put(colName, colValue);
}
rowData.getFieldValueMap().add(_afterMap);
}
sender.sender(rowData);
}
}
|
[
"535733495@qq.com"
] |
535733495@qq.com
|
606ff8a0a8c6284c9a0d9711c461df2190e74f1e
|
07dde126873cb2a0bd20a3af4ce2fd10ea94c810
|
/src/test/java/com/nd/auxo/recommend/web/controller/v1/course/vo/CategoryRelationLevelVoTest.java
|
beb7a08bff03552250fd21b08dd50bae4f1999e1
|
[] |
no_license
|
azhangge/seniorWhy
|
0c280cc781b32e82745edeaf5a9a87f1bac3b2d8
|
1e9542e00cf72babeecefad3fd2b859f90e5eb48
|
refs/heads/master
| 2020-03-27T12:08:09.238373
| 2018-09-03T02:01:57
| 2018-09-03T02:01:57
| 146,528,572
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 535
|
java
|
package com.nd.auxo.recommend.web.controller.v1.course.vo;
import com.nd.auxo.recommend.BasicLombokObjTest;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
/**
* Created by auto on 2017-02-10.
*/
@RunWith(BlockJUnit4ClassRunner.class)
public class CategoryRelationLevelVoTest extends BasicLombokObjTest {
@Before
public void init() throws InstantiationException, IllegalAccessException {
super.init(new CategoryRelationLevelVo());
}
}
|
[
"1007009258@qq.com"
] |
1007009258@qq.com
|
969a7ac644faaec93987391624fb511231fdc25a
|
8cd17dbcebf542ba8f191f23d24ea28beb8d7088
|
/src/info/photoorganizer/gui/components/tree/POTreeModel.java
|
b059207438849ec53d7d5fc37f11371147d4323c
|
[] |
no_license
|
mikaelsvensson/photoorganizer-gui
|
392974c594c209f8dd220f577e6023afb95f5a7e
|
88369351fe68fc7afe686a8f8216ad18a9bd9d47
|
refs/heads/master
| 2021-01-19T10:58:17.804335
| 2011-10-01T20:04:32
| 2011-10-01T20:04:32
| 1,850,088
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,290
|
java
|
package info.photoorganizer.gui.components.tree;
import info.photoorganizer.util.Event;
import info.photoorganizer.util.Event.EventExecuter;
import javax.swing.event.TreeModelEvent;
import javax.swing.event.TreeModelListener;
import javax.swing.tree.TreeModel;
public abstract class POTreeModel implements TreeModel
{
private Event<TreeModelListener, TreeModelEvent> _treeNodesChangedEvent = new Event<TreeModelListener, TreeModelEvent>(
new EventExecuter<TreeModelListener, TreeModelEvent>()
{
@Override
public void fire(TreeModelListener listener, TreeModelEvent event)
{
listener.treeNodesChanged(event);
}
});
private Event<TreeModelListener, TreeModelEvent> _treeNodesInsertedEvent = new Event<TreeModelListener, TreeModelEvent>(
new EventExecuter<TreeModelListener, TreeModelEvent>()
{
@Override
public void fire(TreeModelListener listener, TreeModelEvent event)
{
listener.treeNodesInserted(event);
}
});
private Event<TreeModelListener, TreeModelEvent> _treeNodesRemovedEvent = new Event<TreeModelListener, TreeModelEvent>(
new EventExecuter<TreeModelListener, TreeModelEvent>()
{
@Override
public void fire(TreeModelListener listener, TreeModelEvent event)
{
listener.treeNodesRemoved(event);
}
});
private Event<TreeModelListener, TreeModelEvent> _treeStructureChangedEvent = new Event<TreeModelListener, TreeModelEvent>(
new EventExecuter<TreeModelListener, TreeModelEvent>()
{
@Override
public void fire(TreeModelListener listener, TreeModelEvent event)
{
listener.treeStructureChanged(event);
}
});
@Override
public void addTreeModelListener(TreeModelListener l)
{
_treeNodesChangedEvent.addListener(l);
_treeNodesInsertedEvent.addListener(l);
_treeNodesRemovedEvent.addListener(l);
_treeStructureChangedEvent.addListener(l);
}
protected void fireTreeNodesInsertedEvent(Object source, Object[] path, int[] childIndices, Object[] children)
{
_treeNodesInsertedEvent.fire(new TreeModelEvent(source, path, childIndices, children));
}
protected void fireTreeNodesRemovedEvent(Object source, Object[] path, int[] childIndices, Object[] children)
{
_treeNodesRemovedEvent.fire(new TreeModelEvent(source, path, childIndices, children));
}
protected void fireTreeStructureChangedEvent(Object source, Object[] path)
{
_treeStructureChangedEvent.fire(new TreeModelEvent(source, path));
}
@Override
public void removeTreeModelListener(TreeModelListener l)
{
_treeNodesChangedEvent.removeListener(l);
_treeNodesInsertedEvent.removeListener(l);
_treeNodesRemovedEvent.removeListener(l);
_treeStructureChangedEvent.removeListener(l);
}
}
|
[
"github@mikaelsvensson.info"
] |
github@mikaelsvensson.info
|
98c68d37cdfe80c5be0b6437a823ae11f1c4f10a
|
1d64bf4b7cec44c8a12e4086ad2918e8df6dcc76
|
/SpringRelatedJars/spring-framework-2.0.5/dist/org/springframework/scheduling/backportconcurrent/ConcurrentTaskExecutor.java
|
4d0ce7a96c1b869fe2d6b826214a85f6e4ad7824
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
XerO00/AllJarFiles
|
03472690fad55b5c2fcae530ac7de6294c54521e
|
d546337cfa29f4d33c3d3c5a4479a35063771612
|
refs/heads/master
| 2020-05-07T15:51:39.184855
| 2019-04-10T20:08:57
| 2019-04-10T20:08:57
| 180,655,268
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,263
|
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.scheduling.backportconcurrent;
import edu.emory.mathcs.backport.java.util.concurrent.Executor;
import edu.emory.mathcs.backport.java.util.concurrent.Executors;
import edu.emory.mathcs.backport.java.util.concurrent.RejectedExecutionException;
import org.springframework.core.task.TaskRejectedException;
import org.springframework.scheduling.SchedulingTaskExecutor;
/**
* Adapter that takes a JSR-166 backport
* <code>edu.emory.mathcs.backport.java.util.concurrent.Executor</code> and
* exposes a Spring {@link org.springframework.core.task.TaskExecutor} for it.
*
* <p><b>NOTE:</b> This class implements Spring's
* {@link org.springframework.core.task.TaskExecutor} interface as well as
* the JSR-166 {@link edu.emory.mathcs.backport.java.util.concurrent.Executor}
* interface, with the former being the primary interface, the other just
* serving as secondary convenience. For this reason, the exception handling
* follows the TaskExecutor contract rather than the Executor contract, in
* particular regarding the {@link org.springframework.core.task.TaskRejectedException}.
*
* <p>Note that there is a pre-built {@link ThreadPoolTaskExecutor} that allows for
* defining a JSR-166 backport
* {@link edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor} in bean
* style, exposing it as a Spring {@link org.springframework.core.task.TaskExecutor}
* directly. This is a convenient alternative to a raw ThreadPoolExecutor
* definition with a separate definition of the present adapter class.
*
* @author Juergen Hoeller
* @since 2.0.3
* @see edu.emory.mathcs.backport.java.util.concurrent.Executor
* @see edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor
* @see edu.emory.mathcs.backport.java.util.concurrent.Executors
* @see ThreadPoolTaskExecutor
*/
public class ConcurrentTaskExecutor implements SchedulingTaskExecutor, Executor {
private Executor concurrentExecutor;
/**
* Create a new ConcurrentTaskExecutor,
* using a single thread executor as default.
* @see edu.emory.mathcs.backport.java.util.concurrent.Executors#newSingleThreadExecutor()
*/
public ConcurrentTaskExecutor() {
setConcurrentExecutor(null);
}
/**
* Create a new ConcurrentTaskExecutor,
* using the given JSR-166 backport concurrent executor.
* @param concurrentExecutor the JSR-166 backport concurrent executor to delegate to
*/
public ConcurrentTaskExecutor(Executor concurrentExecutor) {
setConcurrentExecutor(concurrentExecutor);
}
/**
* Specify the JSR-166 backport concurrent executor to delegate to.
*/
public void setConcurrentExecutor(Executor concurrentExecutor) {
this.concurrentExecutor =
(concurrentExecutor != null ? concurrentExecutor : Executors.newSingleThreadExecutor());
}
/**
* Return the JSR-166 backport concurrent executor that this adapter
* delegates to.
*/
public Executor getConcurrentExecutor() {
return this.concurrentExecutor;
}
/**
* Delegates to the specified JSR-166 backport concurrent executor.
* @see edu.emory.mathcs.backport.java.util.concurrent.Executor#execute(Runnable)
*/
public void execute(Runnable task) {
try {
this.concurrentExecutor.execute(task);
}
catch (RejectedExecutionException ex) {
throw new TaskRejectedException(
"Executor [" + this.concurrentExecutor + "] did not accept task: " + task, ex);
}
}
/**
* This task executor prefers short-lived work units.
*/
public boolean prefersShortLivedTasks() {
return true;
}
}
|
[
"prasannadandhalkar1@gmail.com"
] |
prasannadandhalkar1@gmail.com
|
31b0f6ed81f008f569988d87c2bd5c644fd7d5a5
|
e76f84bc537cf0e86ecd0669682dce40f398c4e3
|
/ratpack-core/src/main/java/org/ratpackframework/error/ErroredHttpExchange.java
|
265c3c66d7e6dc5d0a095346dde40b9d89b72e31
|
[
"Apache-2.0"
] |
permissive
|
nsteenv/ratpack
|
f761c3b13ffec4139126b1b89fc550fdbbc688e1
|
156a7845f87728675373e7c222cf6a48efd504d8
|
refs/heads/master
| 2021-01-09T20:55:23.279821
| 2013-04-12T14:08:05
| 2013-04-12T14:08:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,184
|
java
|
/*
* Copyright 2012 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.ratpackframework.error;
import org.ratpackframework.http.HttpExchange;
/**
* Encapsulates a http exchange and an exception that occurred when processing the exchange.
*/
public class ErroredHttpExchange {
private final HttpExchange exchange;
private final Exception exception;
public ErroredHttpExchange(HttpExchange exchange, Exception exception) {
this.exchange = exchange;
this.exception = exception;
}
public HttpExchange getExchange() {
return exchange;
}
public Exception getException() {
return exception;
}
}
|
[
"ld@ldaley.com"
] |
ld@ldaley.com
|
33b0253d5c767e3f2656884a7f42939dac800479
|
d71e879b3517cf4fccde29f7bf82cff69856cfcd
|
/ExtractedJars/RT_News_com.rt.mobile.english/javafiles/com/google/android/gms/internal/ads/zzani.java
|
196978b5980023bf1e73acb291cd88af61f0a621
|
[
"MIT"
] |
permissive
|
Andreas237/AndroidPolicyAutomation
|
b8e949e072d08cf6c6166c3f15c9c63379b8f6ce
|
c1ed10a2c6d4cf3dfda8b8e6291dee2c2a15ee8a
|
refs/heads/master
| 2020-04-10T02:14:08.789751
| 2019-05-16T19:29:11
| 2019-05-16T19:29:11
| 160,739,088
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,886
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.gms.internal.ads;
import java.util.concurrent.*;
// Referenced classes of package com.google.android.gms.internal.ads:
// zzaod, zzaoc, zzanz
public abstract class zzani extends AbstractExecutorService
implements zzaod
{
public zzani()
{
// 0 0:aload_0
// 1 1:invokespecial #11 <Method void AbstractExecutorService()>
// 2 4:return
}
protected final RunnableFuture newTaskFor(Runnable runnable, Object obj)
{
return ((RunnableFuture) (new zzaoc(runnable, obj)));
// 0 0:new #16 <Class zzaoc>
// 1 3:dup
// 2 4:aload_1
// 3 5:aload_2
// 4 6:invokespecial #19 <Method void zzaoc(Runnable, Object)>
// 5 9:areturn
}
protected final RunnableFuture newTaskFor(Callable callable)
{
return ((RunnableFuture) (new zzaoc(callable)));
// 0 0:new #16 <Class zzaoc>
// 1 3:dup
// 2 4:aload_1
// 3 5:invokespecial #25 <Method void zzaoc(Callable)>
// 4 8:areturn
}
public Future submit(Runnable runnable)
{
return ((Future) (zze(runnable)));
// 0 0:aload_0
// 1 1:aload_1
// 2 2:invokevirtual #32 <Method zzanz zze(Runnable)>
// 3 5:areturn
}
public Future submit(Runnable runnable, Object obj)
{
return ((Future) ((zzanz)super.submit(runnable, obj)));
// 0 0:aload_0
// 1 1:aload_1
// 2 2:aload_2
// 3 3:invokespecial #36 <Method Future AbstractExecutorService.submit(Runnable, Object)>
// 4 6:checkcast #38 <Class zzanz>
// 5 9:areturn
}
public Future submit(Callable callable)
{
return ((Future) (zza(callable)));
// 0 0:aload_0
// 1 1:aload_1
// 2 2:invokevirtual #44 <Method zzanz zza(Callable)>
// 3 5:areturn
}
public final zzanz zza(Callable callable)
throws RejectedExecutionException
{
return (zzanz)super.submit(callable);
// 0 0:aload_0
// 1 1:aload_1
// 2 2:invokespecial #48 <Method Future AbstractExecutorService.submit(Callable)>
// 3 5:checkcast #38 <Class zzanz>
// 4 8:areturn
}
public final zzanz zze(Runnable runnable)
throws RejectedExecutionException
{
return (zzanz)super.submit(runnable);
// 0 0:aload_0
// 1 1:aload_1
// 2 2:invokespecial #52 <Method Future AbstractExecutorService.submit(Runnable)>
// 3 5:checkcast #38 <Class zzanz>
// 4 8:areturn
}
}
|
[
"silenta237@gmail.com"
] |
silenta237@gmail.com
|
2d053b7c16d9aa013c3b869f2db979b8e257e0fa
|
53ec01fa57d9cdc7e7fd3364990713d211e1c414
|
/ABC147/b/Main.java
|
180a0b9bfb7195550e83a5699bb0dc2fc1f79fe2
|
[] |
no_license
|
nekoTheShadow/atcoder-answers
|
4f2cae82ac2b24df4153c43381ce58084647704c
|
461e5a9b00718fd9a3b19dc6071da0fb3192f34e
|
refs/heads/master
| 2022-02-03T18:24:01.673661
| 2022-01-24T14:43:44
| 2022-01-24T14:43:44
| 165,072,722
| 0
| 0
| null | 2020-03-22T13:25:56
| 2019-01-10T14:19:52
|
Java
|
UTF-8
|
Java
| false
| false
| 1,799
|
java
|
package b;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.regex.Pattern;
public class Main {
public void solve(Stdin stdin, PrintWriter stdout) throws NumberFormatException, IOException {
String s = stdin.next();
int ans = 0;
for (int i = 0, len = s.length(); i < len / 2; i++) {
char c1 = s.charAt(i);
char c2 = s.charAt(len - i - 1);
if (c1 != c2) {
ans++;
}
}
stdout.println(ans);
}
public static void main(String[] args) throws NumberFormatException, IOException {
Stdin stdin = new Stdin();
PrintWriter stdout = new PrintWriter(System.out, false);
new Main().solve(stdin, stdout);
stdout.flush();
}
public static class Stdin {
private Deque<String> queue;
private BufferedReader stdin;
private Pattern delimiter;
public Stdin() {
queue = new ArrayDeque<>();
stdin = new BufferedReader(new InputStreamReader(System.in));
delimiter = Pattern.compile(" ");
}
public String next() throws IOException {
if (queue.isEmpty()) {
delimiter.splitAsStream(stdin.readLine()).forEach(queue::addLast);
}
return queue.removeFirst();
}
public int nextInt() throws NumberFormatException, IOException {
return Integer.parseInt(next());
}
public long nextLong() throws NumberFormatException, IOException {
return Long.parseLong(next());
}
}
}
|
[
"h.nakamura0903@gmail.com"
] |
h.nakamura0903@gmail.com
|
d5b04f6ae622985f1a4ca434276aa123e3c58969
|
2ae2ce54b0e1a4623bf1c0d6f906a881246baea2
|
/lty-big-websocket/src/main/java/com/lty/big/websocket/kafak/Receiver.java
|
3c78196c2165579d3c5bbd5c6dbdd73585cf382e
|
[] |
no_license
|
woodyyoung/ytl-big-bus
|
2566d81c715fae7ef3be75f16daf5a4ab41bf31d
|
199acfe4499f45f58bb59850879b7a7f24ca65e2
|
refs/heads/master
| 2021-08-19T17:38:05.447750
| 2017-11-27T03:37:33
| 2017-11-27T03:37:33
| 112,140,083
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 255
|
java
|
package com.lty.big.websocket.kafak;
import org.springframework.stereotype.Component;
@Component
public class Receiver {
/*
* @KafkaListener(topics = "mytopic5") public void processMessage(String
* content) { System.out.println(content); }
*/
}
|
[
"864201042@qq.com"
] |
864201042@qq.com
|
9291c70e61caaa91d87642ffbe3429bbfa0d051c
|
5211a5dfeaad7499f15e73347a9945840d174e01
|
/src/main/java/com/aplos/common/beans/communication/BulkMessageSourceGroup.java
|
e51f6f3011c7a55023f73bd7abd7109c34d51c42
|
[] |
no_license
|
aplossystems/aplos-common
|
f406a5633480dfdb354a6de070facd9c5d2bf4bc
|
6a08a5acb1509ac9b033031c0f4ed60e7ad6cb92
|
refs/heads/master
| 2022-09-25T11:38:31.300861
| 2021-07-18T22:07:01
| 2021-07-18T22:07:01
| 38,530,563
| 0
| 2
| null | 2022-09-01T22:42:57
| 2015-07-04T10:36:40
|
Java
|
UTF-8
|
Java
| false
| false
| 8,005
|
java
|
package com.aplos.common.beans.communication;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.aplos.common.annotations.DynamicMetaValueKey;
import com.aplos.common.annotations.DynamicMetaValues;
import com.aplos.common.annotations.persistence.AnyMetaDef;
import com.aplos.common.annotations.persistence.Column;
import com.aplos.common.annotations.persistence.Entity;
import com.aplos.common.annotations.persistence.FetchType;
import com.aplos.common.annotations.persistence.JoinColumn;
import com.aplos.common.annotations.persistence.JoinTable;
import com.aplos.common.annotations.persistence.ManyToAny;
import com.aplos.common.aql.BeanDao;
import com.aplos.common.beans.AplosBean;
import com.aplos.common.beans.Subscriber;
import com.aplos.common.interfaces.BulkEmailSource;
import com.aplos.common.interfaces.BulkGroupedMessageSource;
import com.aplos.common.interfaces.BulkMessageSource;
import com.aplos.common.interfaces.BulkSmsSource;
import com.aplos.common.interfaces.BulkSubscriberSource;
import com.aplos.common.interfaces.SubscriberInter;
import com.aplos.common.utils.CommonUtil;
@Entity
@DynamicMetaValueKey(oldKey="BULK_SOURCE_GROUP")
public class BulkMessageSourceGroup extends AplosBean implements BulkGroupedMessageSource {
private static final long serialVersionUID = -7527301091503107469L;
private Class<? extends BulkMessageSource> sourceType = Subscriber.class;
private String name;
@ManyToAny( metaColumn = @Column( name = "bulk_source_type" ), fetch=FetchType.EAGER )
@AnyMetaDef( idType = "long", metaType = "string", metaValues = { /* Meta Values added in at run-time */ } )
@JoinTable( inverseJoinColumns = @JoinColumn( name = "bulkMessageSources_id" ) )
@DynamicMetaValues
private List<BulkMessageSource> bulkMessageSources = new ArrayList<BulkMessageSource>();
private boolean isEmailRequired = true;
private boolean isSmsRequired = false;
private boolean isVisibleInSearches = false;
// @Override
// public void hibernateInitialiseAfterCheck(boolean fullInitialisation) {
// super.hibernateInitialiseAfterCheck(fullInitialisation);
// if( fullInitialisation ) {
// HibernateUtil.initialiseList(bulkMessageSources, false);
// }
// }
@Override
public String getDisplayName() {
int validForSmsCount = 0;
for (BulkMessageSource bms : bulkMessageSources) {
if (bms instanceof BulkSmsSource && ((BulkSmsSource)bms).getInternationalNumber() != null && CommonUtil.validateTelephone(((BulkSmsSource)bms).getInternationalNumber().getSafeFullNumber())) {
validForSmsCount++;
}
}
return name + " (" + bulkMessageSources.size() + " addresses, " + validForSmsCount + " valid for SMS)";
}
@Override
public Long getMessageSourceId() {
return getId();
}
@Override
public String getTrailDisplayName() {
//stop it returning display name which causes lazy init exceptions
return "Bulk Message Source Group";
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<BulkMessageSource> getBulkMessageSources() {
return bulkMessageSources;
}
public void setBulkMessageSources(List<BulkMessageSource> bulkEmailSources) {
this.bulkMessageSources = bulkEmailSources;
}
public static void filterBulkEmailSources( AplosEmail aplosEmail, List<BulkMessageSource> bulkMessageSourceList, Set<BulkEmailSource> bulkEmailSourceSet, boolean removeUnsubscribed, boolean validateEmailAddress, Set<String> emailAddresses ) {
for( BulkMessageSource tempBulkMessageSource : bulkMessageSourceList ) {
if (tempBulkMessageSource instanceof BulkMessageSourceGroup) {
if( tempBulkMessageSource.getMessageSourceId() != null ) {
filterBulkEmailSources( aplosEmail, ((BulkMessageSourceGroup)tempBulkMessageSource).getBulkMessageSources(), bulkEmailSourceSet, removeUnsubscribed, validateEmailAddress, emailAddresses );
} else {
filterBulkEmailSources( aplosEmail, ((BulkMessageSourceGroup) tempBulkMessageSource).getBulkMessageSources(), bulkEmailSourceSet, removeUnsubscribed, validateEmailAddress, emailAddresses );
}
} else if( tempBulkMessageSource instanceof BulkEmailSource ) {
if( removeUnsubscribed ) {
if( tempBulkMessageSource instanceof BulkSubscriberSource ) {
SubscriberInter subscriber = ((BulkSubscriberSource) tempBulkMessageSource).getSourceSubscriber();
if ( subscriber.getEmailAddress() != null && subscriber.determineIsSubscribed( aplosEmail )) {
addBulkEmailSourceToSet( bulkEmailSourceSet, (BulkEmailSource)tempBulkMessageSource, validateEmailAddress, emailAddresses);
}
}
} else {
addBulkEmailSourceToSet( bulkEmailSourceSet, (BulkEmailSource)tempBulkMessageSource, validateEmailAddress, emailAddresses);
}
}
}
}
public static void addBulkEmailSourceToSet( Set<BulkEmailSource> bulkEmailSourceSet, BulkEmailSource bulkEmailSource, boolean validateEmailAddress, Set<String> emailAddresses ) {
if( (!validateEmailAddress || CommonUtil.validateEmailAddressFormat(bulkEmailSource.getEmailAddress()))
&& !emailAddresses.contains( bulkEmailSource.getEmailAddress() ) ) {
bulkEmailSourceSet.add( bulkEmailSource );
emailAddresses.add( bulkEmailSource.getEmailAddress() );
}
}
public static void filterBulkSmsSources( SmsMessage smsMessage, List<BulkMessageSource> bulkMessageSourceList, Set<BulkSmsSource> bulkSmsSourceSet, boolean removeUnsubscribed ) {
for( BulkMessageSource tempBulkMessageSource : bulkMessageSourceList ) {
if (tempBulkMessageSource instanceof BulkMessageSourceGroup) {
if( tempBulkMessageSource.getMessageSourceId() != null ) {
BulkMessageSourceGroup loadedGroup = new BeanDao(BulkMessageSourceGroup.class).get( ((BulkMessageSourceGroup) tempBulkMessageSource).getId() );
// loadedGroup.hibernateInitialise(true);
filterBulkSmsSources( smsMessage, loadedGroup.getBulkMessageSources(), bulkSmsSourceSet, removeUnsubscribed );
} else {
filterBulkSmsSources( smsMessage, ((BulkMessageSourceGroup) tempBulkMessageSource).getBulkMessageSources(), bulkSmsSourceSet, removeUnsubscribed );
}
} else if( tempBulkMessageSource instanceof BulkSmsSource ) {
BulkSmsSource bulkSmsSource = (BulkSmsSource) tempBulkMessageSource;
if( bulkSmsSource.getInternationalNumber() != null ) {
if( !removeUnsubscribed || bulkSmsSource.determineIsSmsSubscribed( smsMessage ) ) {
bulkSmsSourceSet.add( bulkSmsSource );
}
}
}
}
}
public Set<BulkEmailSource> getBulkEmailSources( AplosEmail aplosEmail, boolean removeUnsubscribed, boolean validateEmailAddress ) {
Set<BulkEmailSource> bulkEmailSourceSet = new HashSet<BulkEmailSource>();
filterBulkEmailSources(aplosEmail, getBulkMessageSources(), bulkEmailSourceSet, removeUnsubscribed, validateEmailAddress, new HashSet<String>());
return bulkEmailSourceSet;
}
public boolean containsRequiredClass(Class<? extends BulkMessageSource> bulkSourceClass) {
for (BulkMessageSource source : bulkMessageSources) {
if (bulkSourceClass.isAssignableFrom(source.getClass())) {
return true;
}
}
return false;
}
public Class<? extends BulkMessageSource> getSourceType() {
return sourceType;
}
public void setSourceType(Class<? extends BulkMessageSource> sourceType) {
this.sourceType = sourceType;
}
@Override
public String getSourceUniqueDisplayName() {
return name;
}
public boolean isEmailRequired() {
return isEmailRequired;
}
public void setEmailRequired(boolean isEmailRequired) {
this.isEmailRequired = isEmailRequired;
}
public boolean isSmsRequired() {
return isSmsRequired;
}
public void setSmsRequired(boolean isSmsRequired) {
this.isSmsRequired = isSmsRequired;
}
public boolean isVisibleInSearches() {
return isVisibleInSearches;
}
public void setVisibleInSearches(boolean isVisibleInSearches) {
this.isVisibleInSearches = isVisibleInSearches;
}
}
|
[
"info@aplossystems.co.uk"
] |
info@aplossystems.co.uk
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.