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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f87218359b3d79ef8d5615c9572af3f5dbfef70
|
c52772715b4e3e72cdbd605846a3f52d24bc8599
|
/src/net/sourceforge/plantuml/sequencediagram/Delay.java
|
383754e119b276542d3b60d62c63dadf0afa53e7
|
[
"MIT"
] |
permissive
|
vsujeesh/plantuml-mit
|
c172b089441a98e943c6acc559a4506d775da5a0
|
e7133c02afdda24b556a8ddb7b5cc416cc0365d6
|
refs/heads/master
| 2022-02-21T22:23:47.415151
| 2019-10-14T17:03:26
| 2019-10-14T17:03:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,692
|
java
|
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: http://plantuml.com
*
* If you like this project or if you find it useful, you can support us at:
*
* http://plantuml.com/patreon (only 1$ per month!)
* http://plantuml.com/paypal
*
* This file is part of PlantUML.
*
* Licensed under The MIT License (Massachusetts Institute of Technology License)
*
* See http://opensource.org/licenses/MIT
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
* IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*
* Original Author: Arnaud Roques
*/
package net.sourceforge.plantuml.sequencediagram;
import net.sourceforge.plantuml.cucadiagram.Display;
import net.sourceforge.plantuml.skin.ComponentType;
import net.sourceforge.plantuml.style.Style;
import net.sourceforge.plantuml.style.StyleBuilder;
import net.sourceforge.plantuml.style.StyleSignature;
import net.sourceforge.plantuml.style.WithStyle;
public class Delay extends AbstractEvent implements Event, WithStyle {
private final Display text;
final private Style style;
public StyleSignature getDefaultStyleDefinition() {
return ComponentType.DELAY_TEXT.getDefaultStyleDefinition();
}
public Style[] getUsedStyles() {
return new Style[] { style };
}
public Delay(Display text, StyleBuilder styleBuilder) {
this.text = text;
this.style = getDefaultStyleDefinition().getMergedStyle(styleBuilder);
}
public final Display getText() {
return text;
}
public boolean dealWith(Participant someone) {
return false;
}
}
|
[
"plantuml@gmail.com"
] |
plantuml@gmail.com
|
58ba5bef77b58e0d8318158951d61dc5486d3fb1
|
488a763ebb11d0e2786c94aa99fbe080602acf04
|
/src/main/java/com/ico/ltd/spring5mvcrest/repositories/CustomerRepository.java
|
62b04a119dfe397f3de23c551e9f1d1212fc14e4
|
[] |
no_license
|
Anthony17J8/spring5-mvc-rest
|
63781b8535437fe5f8df78ae2d19c1162bc287c4
|
e61c8c0fb122e82337a0a87f38480bc578a4c7e8
|
refs/heads/master
| 2020-12-21T20:44:08.219764
| 2020-02-06T19:06:12
| 2020-02-06T19:06:12
| 236,554,469
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 243
|
java
|
package com.ico.ltd.spring5mvcrest.repositories;
import com.ico.ltd.spring5mvcrest.domain.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
public interface CustomerRepository extends JpaRepository<Customer, Long> {
}
|
[
"j8kiselev@gmail.com"
] |
j8kiselev@gmail.com
|
61dcc8f7d838fdd7b4e66aebf9263811dd46ace0
|
835cce7f67fc31a131ee22cd18d3c57f8cd94d08
|
/app/src/main/java/com/familydemo/utils/ToastUtils.java
|
c2573e2c8f848bac6d93693ee04f465e2c2945f2
|
[] |
no_license
|
18300602795/FamilyDemo
|
6d017866fd95004d589b030fd0cfa265fdcc56f6
|
6f7ab6a0eb063761b4d0f5de667340fb769b01b7
|
refs/heads/master
| 2021-04-27T03:38:27.478335
| 2018-03-15T10:37:54
| 2018-03-15T10:37:54
| 122,717,765
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,816
|
java
|
package com.familydemo.utils;
import android.content.Context;
import android.view.ViewGroup;
import android.widget.Toast;
/**
* Toast统一管理类
*
*/
public class ToastUtils
{
private ViewGroup.LayoutParams layoutParams;
private ToastUtils()
{
/* cannot be instantiated */
throw new UnsupportedOperationException("cannot be instantiated");
}
public static boolean isShow = true;
/**
* 短时间显示Toast
*
* @param context
* @param message
*/
public static void showShort(Context context, CharSequence message)
{
if (isShow)
Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
}
/**
* 短时间显示Toast
*
* @param context
* @param message
*/
public static void showShort(Context context, int message)
{
if (isShow)
Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
}
/**
* 长时间显示Toast
*
* @param context
* @param message
*/
public static void showLong(Context context, CharSequence message)
{
if (isShow)
Toast.makeText(context, message, Toast.LENGTH_LONG).show();
}
/**
* 长时间显示Toast
*
* @param context
* @param message
*/
public static void showLong(Context context, int message)
{
if (isShow)
Toast.makeText(context, message, Toast.LENGTH_LONG).show();
}
/**
* 自定义显示Toast时间
*
* @param context
* @param message
* @param duration
*/
public static void show(Context context, CharSequence message, int duration)
{
if (isShow)
Toast.makeText(context, message, duration).show();
}
/**
* 自定义显示Toast时间
*
* @param context
* @param message
* @param duration
*/
public static void show(Context context, int message, int duration)
{
if (isShow)
Toast.makeText(context, message, duration).show();
}
}
|
[
"18300602795@163.com"
] |
18300602795@163.com
|
462c045beba5beda17c354fc0d75ac233327e244
|
e57083ea584d69bc9fb1b32f5ec86bdd4fca61c0
|
/sample-project-5400/src/main/java/com/example/project/sample5400/service/sample7/Component7_14.java
|
a7aef3c6ebc6d42137671de5e1172f608ee2f8e2
|
[] |
no_license
|
snicoll-scratches/test-spring-components-index
|
77e0ad58c8646c7eb1d1563bf31f51aa42a0636e
|
aa48681414a11bb704bdbc8acabe45fa5ef2fd2d
|
refs/heads/main
| 2021-06-13T08:46:58.532850
| 2019-12-09T15:11:10
| 2019-12-09T15:11:10
| 65,806,297
| 5
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 151
|
java
|
package com.example.project.sample5400.service.sample7;
import org.springframework.stereotype.Component;
@Component
public class Component7_14 {
}
|
[
"snicoll@pivotal.io"
] |
snicoll@pivotal.io
|
9032047504d7b0277f1ecb208723c9af6d1b18f8
|
f1ebb0a6c33b3cee11bec35b9aa9fa842d509a8d
|
/src/main/java/com/lsm1998/jvm/interpreter/instruction/loads/LLoad_0.java
|
3201e2155458f120f8027ba45dfe75e4fcd28585
|
[] |
no_license
|
lsm1998/jvm
|
33b31c9edeb976271d1563cf3e023b48943d3b9c
|
60308852255313ac136cfebd644c61351a142620
|
refs/heads/master
| 2022-12-20T19:19:11.123462
| 2020-05-04T02:40:36
| 2020-05-04T02:40:36
| 178,363,799
| 9
| 1
| null | 2022-12-14T20:43:15
| 2019-03-29T08:25:16
|
Java
|
UTF-8
|
Java
| false
| false
| 539
|
java
|
package com.lsm1998.jvm.interpreter.instruction.loads;
import com.lsm1998.jvm.interpreter.base.NoOperandsInstruction;
import com.lsm1998.jvm.rtda.pri.stack.Frame;
/**
* @作者:刘时明
* @时间:2019/3/22-21:15
* @说明:
*/
public class LLoad_0 extends NoOperandsInstruction
{
@Override
public void execute(Frame frame)
{
long temp=frame.getLocalVars().getLong(0);
frame.getOperandsStack().pushLong(temp);
}
@Override
public String toString()
{
return "lload_0";
}
}
|
[
"487005831@qq.com"
] |
487005831@qq.com
|
1ae7aa49ff90b287bd79da9a4cb3ccc7a973c680
|
95e944448000c08dd3d6915abb468767c9f29d3c
|
/sources/com/p280ss/android/ugc/bogut/library/p1722rc/BogutRcAdapter.java
|
99c9e82f398ab94f8d86f79cde677946ff7ac56d
|
[] |
no_license
|
xrealm/tiktok-src
|
261b1faaf7b39d64bb7cb4106dc1a35963bd6868
|
90f305b5f981d39cfb313d75ab231326c9fca597
|
refs/heads/master
| 2022-11-12T06:43:07.401661
| 2020-07-04T20:21:12
| 2020-07-04T20:21:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 545
|
java
|
package com.p280ss.android.ugc.bogut.library.p1722rc;
import android.support.p029v7.widget.RecyclerView.C1262a;
import android.support.p029v7.widget.RecyclerView.C1293v;
import android.view.ViewGroup;
/* renamed from: com.ss.android.ugc.bogut.library.rc.BogutRcAdapter */
public class BogutRcAdapter<T> extends C1262a<C1293v> {
public int getItemCount() {
return 0;
}
public void onBindViewHolder(C1293v vVar, int i) {
}
public C1293v onCreateViewHolder(ViewGroup viewGroup, int i) {
return null;
}
}
|
[
"65450641+Xyzdesk@users.noreply.github.com"
] |
65450641+Xyzdesk@users.noreply.github.com
|
6b2877a0bc4552e26ed942f3fec2386b046338e6
|
809bdffaaffc3810c3b9b42fa210a9b8981167a8
|
/commonservice/src/main/java/com/gpdi/searchengine/commonservice/ConfigUtil.java
|
ca0b0ad7a8536920f24a79febdfc48b9848c5cff
|
[] |
no_license
|
undergrowthlinear/searchengine
|
75341fdee35e5c7588187573e4ae124696fe003c
|
ab3bf891c72cab3220885f48a90905062828ff90
|
refs/heads/master
| 2021-01-20T17:37:20.960218
| 2016-08-08T10:21:23
| 2016-08-08T10:21:23
| 65,194,763
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 210
|
java
|
package com.gpdi.searchengine.commonservice;
/**
* 配置文件加载工具包
* @author zhangwu
* @version 1.0
* @created 08-8月-2016 10:08:58
*/
public class ConfigUtil {
public ConfigUtil(){
}
}
|
[
"undergrowth@126.com"
] |
undergrowth@126.com
|
0c7367566375d4d406599419c79ca47a9c0fbf01
|
0d6fdb000042281ecc829ede8e3b51221c63d627
|
/src/main/java/com/dreamit/proxystat/model/dto/.svn/text-base/MessageMail.java.svn-base
|
2b5c9c1073facfa1d5d58e0600e6bb38f8eceaa0
|
[] |
no_license
|
TarikDjebienJEE/proxystat
|
43622f193baed81526973e04984c229ec13f2fea
|
f8cdbf69e53f7a2390bad7c863a2895714940d28
|
refs/heads/master
| 2021-08-08T19:57:13.126465
| 2017-11-11T00:45:48
| 2017-11-11T00:45:48
| 110,306,166
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 968
|
package com.dreamit.proxystat.model.dto;
/**
*
* @author rudy
* classe non persistente
* utile pour le serviceSendMail
*/
public class MessageMail {
private String surname;
private String name;
private String email;
private String category;
private String message;
public MessageMail(){}
public String getSurname() {
return surname;
}
public void setSurname(String surname) {
this.surname = surname;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}
|
[
"tarik.djebien@gmail.com"
] |
tarik.djebien@gmail.com
|
|
c1b13b720cfc2c6e6849f71a358169c0b7bf14a4
|
4d89300333123125312e2a745ad476c971617471
|
/ReadACSVFileAndOutputToConsole/src/main/java/com/arun/reader/CricketerMapper.java
|
1329aa861a99ff4f6f7d9b889ff76bcd6617b5d7
|
[] |
no_license
|
arun786/SpringBatches
|
03a5fb7dc36ad7444ede4f8ca8703d49ae4e1685
|
2ddb8464ff6cc13771f990f1a37f8f71f6b5b825
|
refs/heads/master
| 2020-06-19T03:23:13.328991
| 2017-01-02T09:52:57
| 2017-01-02T09:52:57
| 74,923,440
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 568
|
java
|
package com.arun.reader;
import org.springframework.batch.item.file.mapping.FieldSetMapper;
import org.springframework.batch.item.file.transform.FieldSet;
import org.springframework.validation.BindException;
import com.arun.bean.Cricketer;
public class CricketerMapper implements FieldSetMapper<Cricketer>{
public Cricketer mapFieldSet(FieldSet fieldSet) throws BindException {
Cricketer crick = new Cricketer();
crick.setName(fieldSet.readString(0));
crick.setCountry(fieldSet.readString(1));
crick.setRuns(fieldSet.readDouble(2));
return crick;
}
}
|
[
"adwiti1975@gmail.com"
] |
adwiti1975@gmail.com
|
09e72ec47dee2bc197b18c87bc6617dd1ddd084e
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/neo4j/2017/8/Header.java
|
37987b90975fb4f4a632c2ca6cd8452411f889a8
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 5,389
|
java
|
/*
* Copyright (c) 2002-2017 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.unsafe.impl.batchimport.input.csv;
import java.util.Arrays;
import org.neo4j.csv.reader.CharSeeker;
import org.neo4j.csv.reader.Extractor;
/**
* Header of tabular/csv data input, specifying meta data about values in each "column", for example
* semantically of which {@link Type} they are and which {@link Extractor type of value} they are.
*/
public class Header implements Cloneable
{
public interface Factory
{
/**
* @param dataSeeker {@link CharSeeker} containing the data. Usually there's a header for us
* to read at the very top of it.
* @param configuration {@link Configuration} specific to the format of the data.
* @param idType type of values we expect the ids to be.
*/
Header create( CharSeeker dataSeeker, Configuration configuration, IdType idType );
}
private final Entry[] entries;
public Header( Entry... entries )
{
this.entries = entries;
}
public Entry[] entries()
{
return entries;
}
public Entry entry( Type type )
{
Entry result = null;
for ( Entry entry : entries )
{
if ( entry.type() == type )
{
if ( result != null )
{
throw new IllegalStateException( "Multiple header entries of type " + type );
}
result = entry;
}
}
return result;
}
@Override
public String toString()
{
return Arrays.toString( entries );
}
@Override
public Header clone()
{
Entry[] entries = new Entry[this.entries.length];
for ( int i = 0; i < entries.length; i++ )
{
entries[i] = this.entries[i].clone();
}
return new Header( entries );
}
public static class Entry implements Cloneable
{
private final String name;
private final Type type;
private final String groupName;
private final Extractor<?> extractor;
public Entry( String name, Type type, String groupName, Extractor<?> extractor )
{
this.name = name;
this.type = type;
this.groupName = groupName;
this.extractor = extractor;
}
@Override
public String toString()
{
return (name != null ? name : "") +
":" + (type == Type.PROPERTY ? extractor.toString().toLowerCase() : type.name()) +
(groupName != null ? "(" + groupName + ")" : "");
}
public Extractor<?> extractor()
{
return extractor;
}
public Type type()
{
return type;
}
public String groupName()
{
return groupName;
}
public String name()
{
return name;
}
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
if ( name != null )
{
result = prime * result + name.hashCode();
}
result = prime * result + type.hashCode();
if ( groupName != null )
{
result = prime * result + groupName.hashCode();
}
result = prime * result + extractor.hashCode();
return result;
}
@Override
public boolean equals( Object obj )
{
if ( this == obj )
{
return true;
}
if ( obj == null || getClass() != obj.getClass() )
{
return false;
}
Entry other = (Entry) obj;
return nullSafeEquals( name, other.name ) && type == other.type &&
nullSafeEquals( groupName, other.groupName ) && extractorEquals( extractor, other.extractor );
}
@Override
public Entry clone()
{
return new Entry( name, type, groupName, extractor != null ? extractor.clone() : null );
}
private boolean nullSafeEquals( Object o1, Object o2 )
{
return o1 == null || o2 == null ? o1 == o2 : o1.equals( o2 );
}
private boolean extractorEquals( Extractor<?> first, Extractor<?> other )
{
if ( first == null || other == null )
{
return first == other;
}
return first.getClass().equals( other.getClass() );
}
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
b65f172a29827d120592014bef6f15417c2d547a
|
440abbca6be2d13eb127a7519ef67074cd8e5a34
|
/laboratory/src/org/labkey/laboratory/query/LaboratoryEditingTableCustomizer.java
|
3d0eb3941b7ef2576f2cd04f41e89adefb49dfa4
|
[] |
no_license
|
bimberlabinternal/LabDevKitModules
|
828b3109a72a86a696bdf56dae7d142d4d1475b0
|
010fd28a03abe18db2a85c6201d7c3e2ae9f7939
|
refs/heads/discvr-23.7
| 2023-08-03T15:18:19.821814
| 2023-06-16T21:41:22
| 2023-06-16T21:41:22
| 204,153,361
| 0
| 4
| null | 2023-09-05T11:47:04
| 2019-08-24T12:19:20
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 488
|
java
|
package org.labkey.laboratory.query;
import org.labkey.api.data.TableCustomizer;
import org.labkey.api.data.TableInfo;
import org.labkey.api.ldk.LDKService;
/**
* Created by bimber on 2/3/2015.
*/
public class LaboratoryEditingTableCustomizer implements TableCustomizer
{
@Override
public void customize(TableInfo tableInfo)
{
LDKService.get().getDefaultTableCustomizer().customize(tableInfo);
new LaboratoryTableCustomizer().customize(tableInfo);
}
}
|
[
"bbimber@gmail.com"
] |
bbimber@gmail.com
|
b520b4e41ab74eec3d630407c8d5a85bfe9b82c9
|
08b8d598fbae8332c1766ab021020928aeb08872
|
/src/gcom/operacional/FiltroSistemaEsgoto.java
|
69c20644d1b0f9118bb215cf84508e2fb3dda7cd
|
[] |
no_license
|
Procenge/GSAN-CAGEPA
|
53bf9bab01ae8116d08cfee7f0044d3be6f2de07
|
dfe64f3088a1357d2381e9f4280011d1da299433
|
refs/heads/master
| 2020-05-18T17:24:51.407985
| 2015-05-18T23:08:21
| 2015-05-18T23:08:21
| 25,368,185
| 3
| 1
| null | null | null | null |
WINDOWS-1252
|
Java
| false
| false
| 4,418
|
java
|
/*
* Copyright (C) 2007-2007 the GSAN – Sistema Integrado de Gestão de Serviços de Saneamento
*
* This file is part of GSAN, an integrated service management system for Sanitation
*
* GSAN is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License.
*
* GSAN is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place – Suite 330, Boston, MA 02111-1307, USA
*/
/*
* GSAN – Sistema Integrado de Gestão de Serviços de Saneamento
* Copyright (C) <2007>
* Adriano Britto Siqueira
* Alexandre Santos Cabral
* Ana Carolina Alves Breda
* Ana Maria Andrade Cavalcante
* Aryed Lins de Araújo
* Bruno Leonardo Rodrigues Barros
* Carlos Elmano Rodrigues Ferreira
* Cláudio de Andrade Lira
* Denys Guimarães Guenes Tavares
* Eduardo Breckenfeld da Rosa Borges
* Fabíola Gomes de Araújo
* Flávio Leonardo Cavalcanti Cordeiro
* Francisco do Nascimento Júnior
* Homero Sampaio Cavalcanti
* Ivan Sérgio da Silva Júnior
* José Edmar de Siqueira
* José Thiago Tenório Lopes
* Kássia Regina Silvestre de Albuquerque
* Leonardo Luiz Vieira da Silva
* Márcio Roberto Batista da Silva
* Maria de Fátima Sampaio Leite
* Micaela Maria Coelho de Araújo
* Nelson Mendonça de Carvalho
* Newton Morais e Silva
* Pedro Alexandre Santos da Silva Filho
* Rafael Corrêa Lima e Silva
* Rafael Francisco Pinto
* Rafael Koury Monteiro
* Rafael Palermo de Araújo
* Raphael Veras Rossiter
* Roberto Sobreira Barbalho
* Rodrigo Avellar Silveira
* Rosana Carvalho Barbosa
* Sávio Luiz de Andrade Cavalcante
* Tai Mu Shih
* Thiago Augusto Souza do Nascimento
* Tiago Moreno Rodrigues
* Vivianne Barbosa Sousa
*
* Este programa é software livre; você pode redistribuí-lo e/ou
* modificá-lo sob os termos de Licença Pública Geral GNU, conforme
* publicada pela Free Software Foundation; versão 2 da
* Licença.
* Este programa é distribuído na expectativa de ser útil, mas SEM
* QUALQUER GARANTIA; sem mesmo a garantia implícita de
* COMERCIALIZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM
* PARTICULAR. Consulte a Licença Pública Geral GNU para obter mais
* detalhes.
* Você deve ter recebido uma cópia da Licença Pública Geral GNU
* junto com este programa; se não, escreva para Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307, USA.
*/
package gcom.operacional;
import gcom.util.filtro.Filtro;
import java.io.Serializable;
/**
* < <Descrição da Classe>>
*
* @author Administrador
*/
public class FiltroSistemaEsgoto
extends Filtro
implements Serializable {
private static final long serialVersionUID = 1L;
/**
* Constructor for the FiltroCliente object
*
* @param campoOrderBy
* Description of the Parameter
*/
public FiltroSistemaEsgoto(String campoOrderBy) {
this.campoOrderBy = campoOrderBy;
}
/**
* Construtor da classe FiltroQuadra
*/
public FiltroSistemaEsgoto() {
}
/**
* Description of the Field
*/
public final static String ID = "id";
/**
* Código do Sistema de Esgoto
*/
public final static String CODIGO = "codigo";
/**
* Descrição do Sistema de Esgoto
*/
public final static String DESCRICAO = "descricao";
/**
* Divisão de Esgoto
*/
public final static String DIVISAOESGOTO = "divisaoEsgoto";
/**
* Código da Divisão de Esgoto
*/
public final static String DIVISAOESGOTO_ID = "divisaoEsgoto.id";
/**
* Tipo de Tratamento
*/
public final static String TIPOTRATAMENTO = "sistemaEsgotoTratamentoTipo";
/**
* Código do Tipo de Tratamento
*/
public final static String TIPOTRATAMENTO_ID = "sistemaEsgotoTratamentoTipo.id";
/**
* Description of the Field
*/
public final static String INDICADOR_USO = "indicadorUso";
/**
* Gerência Regional
*/
public final static String GERENCIA_REGIONAL = "gerenciaRegional";
public final static String GERENCIA_REGIONAL_ID = "gerenciaRegional.id";
}
|
[
"Yara.Souza@procenge.com.br"
] |
Yara.Souza@procenge.com.br
|
85d2de3c24858d6b5be5e7426c1443c0ad143f06
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/33/33_dd44d7b00baf9d061431621509c91aec75770109/BestellungController/33_dd44d7b00baf9d061431621509c91aec75770109_BestellungController_s.java
|
dbfedb1840817290b90743d6467a5402f01435b8
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 6,894
|
java
|
package de.shop.bestellverwaltung.controller;
import static de.shop.util.Constants.JSF_DEFAULT_ERROR;
import static javax.ejb.TransactionAttributeType.REQUIRED;
import java.io.Serializable;
import java.lang.invoke.MethodHandles;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import javax.ejb.TransactionAttribute;
import javax.enterprise.context.RequestScoped;
import javax.enterprise.context.SessionScoped;
import javax.faces.context.Flash;
import javax.inject.Inject;
import javax.inject.Named;
import org.jboss.logging.Logger;
import de.shop.artikelverwaltung.domain.Artikel;
import de.shop.auth.controller.AuthController;
import de.shop.auth.controller.KundeLoggedIn;
import de.shop.bestellverwaltung.domain.Bestellposition;
import de.shop.bestellverwaltung.domain.BestellstatusType;
import de.shop.bestellverwaltung.domain.Bestellung;
import de.shop.bestellverwaltung.service.BestellungService;
import de.shop.kundenverwaltung.domain.Kunde;
import de.shop.kundenverwaltung.service.KundeService;
import de.shop.kundenverwaltung.service.KundeService.FetchType;
import de.shop.util.Client;
import de.shop.util.Log;
import de.shop.util.Transactional;
import de.shop.bestellverwaltung.service.AbstractBestellungValidationException;
import de.shop.bestellverwaltung.service.BestellungService.BestellungFetchType;
@Named("bc")
@SessionScoped
//@RequestScoped
@Log
public class BestellungController implements Serializable {
private static final long serialVersionUID = 8788102910739438907L;
private static final Logger LOGGER = Logger.getLogger(MethodHandles.lookup().lookupClass().getName());
private static final String JSF_VIEW_BESTELLUNG = "/bestellverwaltung/viewBestellung";
private Long bestellungId;
private Bestellung bestellung;
private String selectedBestellId;
private List<Bestellung> bestellungen = Collections.emptyList();
@Inject
private Warenkorb warenkorb;
@Inject
private BestellungService bs;
@Inject
private KundeService ks;
@Inject
private AuthController auth;
@Inject
@KundeLoggedIn
private Kunde kunde;
@Inject
@Client
private Locale locale;
@Inject
private Flash flash;
public Long getBestellungId() {
return bestellungId;
}
public void setBestellungId(Long bestellungId) {
this.bestellungId = bestellungId;
}
public List<Bestellung> getBestellungen() {
return bestellungen;
}
/**
* Action Methode, um eine Bestellung anhand der ID zu suchen
* @return URL fuer Anzeige der gefundenen Bestellung
* @throws Exception
*/
@TransactionAttribute(REQUIRED)
public String findBestellungById(Long id) throws Exception {
bestellung = bs.findBestellungById(id, BestellungFetchType.MIT_BESTELLPOSITIONEN, locale);
if (bestellung == null) {
// Keine Bestellung zu gegebener ID gefunden
//TODO implement method findBestellungByIdErrorMsg(String);
//return findBestellungByIdErrorMsg(bestellungId.toString());
System.out.println("es wurde keine Bestellung mit BestellId "+id+" gefunden");
}
System.out.println("Bestellung mit BestellId "+id+" gefunden");
flash.put("bestellung", bestellung);
return JSF_VIEW_BESTELLUNG;
}
@TransactionAttribute(REQUIRED)
public void findBestellungBySelectedId() {
bestellung = bs.findBestellungById(Long.valueOf(selectedBestellId), BestellungFetchType.MIT_BESTELLPOSITIONEN, locale);
if (bestellung == null) {
// Keine Bestellung zu gegebener ID gefunden
//TODO implement method findBestellungByIdErrorMsg(String);
//return findBestellungByIdErrorMsg(bestellungId.toString());
System.out.println("es wurde keine Bestellung mit BestellId "+selectedBestellId+" gefunden");
}
System.out.println("Bestellung mit BestellId "+selectedBestellId+" gefunden");
}
@Transactional
public String bestellen() {
if (!auth.isLoggedIn()) {
// Darf nicht passieren, wenn der Button zum Bestellen verfuegbar ist
return JSF_DEFAULT_ERROR;
}
auth.preserveLogin();
if (warenkorb == null || warenkorb.getPositionen() == null || warenkorb.getPositionen().isEmpty()) {
// Darf nicht passieren, wenn der Button zum Bestellen verfuegbar ist
return JSF_DEFAULT_ERROR;
}
// Den eingeloggten Kunden mit seinen Bestellungen ermitteln, und dann die neue Bestellung zu ergaenzen
//TODO FetchType MIT_BESTELLUNGEN in KS implementieren
//kunde = ks.findKundeById(kunde.getKundeId(), FetchType.MIT_BESTELLUNGEN, locale);
// Aus dem Warenkorb nur Positionen mit Anzahl > 0
final List<Bestellposition> positionen = warenkorb.getPositionen();
final List<Bestellposition> neuePositionen = new ArrayList<>(positionen.size());
for (Bestellposition bp : positionen) {
if (bp.getBestellmenge() > 0) {
neuePositionen.add(bp);
}
}
// Warenkorb zuruecksetzen
warenkorb.endConversation();
// Neue Bestellung mit neuen Bestellpositionen erstellen
Bestellung bestellung = new Bestellung();
bestellung.setStatus(BestellstatusType.OFFEN);
bestellung.setBestellpositionen(neuePositionen);
LOGGER.tracef("Neue Bestellung: %s\nBestellpositionen: %s", bestellung, bestellung.getBestellpositionen());
// Bestellung mit VORHANDENEM Kunden verknuepfen:
// dessen Bestellungen muessen geladen sein, weil es eine bidirektionale Beziehung ist
try {
bestellung = bs.createBestellung(bestellung, kunde, locale);
}
//ToDo Implement Class
catch (AbstractBestellungValidationException e) {
// Validierungsfehler KOENNEN NICHT AUFTRETEN, da Attribute durch JSF validiert wurden
// und in der Klasse Bestellung keine Validierungs-Methoden vorhanden sind
throw new IllegalStateException(e);
}
// Bestellung im Flash speichern wegen anschliessendem Redirect
flash.put("bestellung", bestellung);
return JSF_VIEW_BESTELLUNG;
}
// Bestellungen des eingeloggten Kunden ermitteln
@Transactional
public void findBestellungenByKunde() {
if (auth.isLoggedIn()) {
bestellungen = bs.findBestellungenByKunde(kunde.getKundeId());
}
}
@Transactional
public List<Bestellung> getAllBestellungen() {
return bs.findAllBestellungen(BestellungFetchType.NUR_BESTELLUNG, locale);
}
public int getAnzahlBestellungenByKunde() {
return bestellungen.size();
}
public String getSelectedBestellId() {
return selectedBestellId;
}
public void setSelectedBestellId(String selectedBestellId) {
this.selectedBestellId = selectedBestellId;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
3b530e689e490ae51cf6b75887ff7ca772f6f87f
|
a091f93d8abc3a6f9c1004a6acca71cacb642070
|
/src/main/java/training360/guinessapp/recorder/RecorderController.java
|
87574f049f199a86b093fb66636a1beb50df380b
|
[] |
no_license
|
ipp203/sv2021-jvjbf-kepesitovizsga
|
debadcf8958c73dd2f954e3dc8b15d496924ba37
|
2f7d2a347e1bd5500eba82e4579834745ddf7e47
|
refs/heads/master
| 2023-07-21T18:52:26.414572
| 2021-09-06T13:04:02
| 2021-09-06T13:04:02
| 403,573,706
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 893
|
java
|
package training360.guinessapp.recorder;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
import training360.guinessapp.dto.RecorderCreateCommand;
import training360.guinessapp.dto.RecorderDto;
import training360.guinessapp.dto.RecorderShortDto;
import javax.validation.Valid;
import java.util.List;
@RestController
public class RecorderController {
private final RecoderService service;
public RecorderController(RecoderService service) {
this.service = service;
}
@PostMapping("/api/recorders")
@ResponseStatus(HttpStatus.CREATED)
public RecorderDto createRecorder(@Valid @RequestBody RecorderCreateCommand command) {
return service.createRecorder(command);
}
@GetMapping("/api/recorders")
public List<RecorderShortDto> listRecorders() {
return service.listRecorders();
}
}
|
[
"ipp203@freemail.hu"
] |
ipp203@freemail.hu
|
466b95160579659105d2d5a752eff85745d87856
|
9f907527f44fdfc33b5add9f8d313bbeb96d1192
|
/src/codeforces/contests1801_1900/problemset1829/MrPerfectlyFine.java
|
a5c9f21561ca8010a55bf43a6555849503b39c71
|
[] |
no_license
|
kocko/algorithms
|
7af7052b13a080992dcfbff57171a2cac7c50c67
|
382b6b50538220a26e1af1644e72a4e1796374b6
|
refs/heads/master
| 2023-08-03T21:15:27.070471
| 2023-08-03T14:39:45
| 2023-08-03T14:39:45
| 45,342,667
| 5
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,589
|
java
|
package codeforces.contests1801_1900.problemset1829;
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import static java.lang.Math.*;
public class MrPerfectlyFine implements Closeable {
private InputReader in;
private PrintWriter out;
public MrPerfectlyFine() {
in = new InputReader(System.in);
out = new PrintWriter(System.out);
}
public void solve() {
int T = in.ni();
while (T-- > 0) {
int n = in.ni();
int[] time = new int[n];
String[] skills = new String[n];
for (int i = 0; i < n; i++) {
time[i] = in.ni();
skills[i] = in.next();
}
int result = Integer.MAX_VALUE;
for (int i = 0; i < n; i++) {
if ("11".equals(skills[i])) {
result = min(result, time[i]);
}
}
int minFirst = Integer.MAX_VALUE;
int minSecond = Integer.MAX_VALUE;
for (int i = 0; i < n; i++) {
if ("10".equals(skills[i])) {
minFirst = min(minFirst, time[i]);
} else if ("01".equals(skills[i])) {
minSecond = min(minSecond, time[i]);
}
}
if (minFirst != Integer.MAX_VALUE && minSecond != Integer.MAX_VALUE) {
result = min(result, minFirst + minSecond);
}
out.println(result == Integer.MAX_VALUE ? -1 : result);
}
}
@Override
public void close() throws IOException {
in.close();
out.close();
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int ni() {
return Integer.parseInt(next());
}
public long nl() {
return Long.parseLong(next());
}
public void close() throws IOException {
reader.close();
}
}
public static void main(String[] args) throws IOException {
try (MrPerfectlyFine instance = new MrPerfectlyFine()) {
instance.solve();
}
}
}
|
[
"konstantin.yovkov@gmail.com"
] |
konstantin.yovkov@gmail.com
|
ba2206b294d4b6d715ceae2dcc92ed4345ba018f
|
cdbd53ceb24f1643b5957fa99d78b8f4efef455a
|
/vertx-gaia/vertx-up/src/main/java/io/vertx/zero/exception/WorkerMissingException.java
|
22bbba2cab1daeca54a8c0d87b31ad228616ca63
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
chundcm/vertx-zero
|
f3dcb692ae6b9cc4ced52386cab01e5896e69d80
|
d2a2d096426c30d90be13b162403d66c8e72cc9a
|
refs/heads/master
| 2023-04-27T18:41:47.489584
| 2023-04-23T01:53:40
| 2023-04-23T01:53:40
| 244,054,093
| 0
| 0
|
Apache-2.0
| 2020-02-29T23:00:59
| 2020-02-29T23:00:58
| null |
UTF-8
|
Java
| false
| false
| 360
|
java
|
package io.vertx.zero.exception;
import io.vertx.up.exception.UpException;
public class WorkerMissingException extends UpException {
public WorkerMissingException(final Class<?> clazz,
final String address) {
super(clazz, address);
}
@Override
public int getCode() {
return -40014;
}
}
|
[
"silentbalanceyh@126.com"
] |
silentbalanceyh@126.com
|
aefd173b55fdd59f5cf8cacaaff6655473ae7b4e
|
805ec745004ff5a066393dd81f810f40f1d9e382
|
/src/main/java/myFrameU/util/commonUtil/text/PhoneUtil.java
|
151911d33b3adcfd974c7aa8d264a34a7ad66f29
|
[] |
no_license
|
ligson/hehuoren
|
ba9f2bcb36dd7cd97344cc35c462a4f49923c6b6
|
3b98f968e42a633acf9a084a3cc1c47b0aa62181
|
refs/heads/master
| 2021-01-10T08:44:15.941341
| 2016-01-03T03:05:31
| 2016-01-03T03:05:31
| 48,914,504
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,757
|
java
|
package myFrameU.util.commonUtil.text;
import java.util.ArrayList;
import java.util.List;
/**
*
* 手机号码的验证
*
*/
public class PhoneUtil {
private static List<String> telPhone_head=new ArrayList<String>();
static{
telPhone_head.add("177");
telPhone_head.add("134");
telPhone_head.add("135");
telPhone_head.add("136");
telPhone_head.add("137");
telPhone_head.add("138");
telPhone_head.add("139");
telPhone_head.add("150");
telPhone_head.add("151");
telPhone_head.add("152");
telPhone_head.add("157");
telPhone_head.add("158");
telPhone_head.add("159");
telPhone_head.add("182");
telPhone_head.add("188");
telPhone_head.add("147");
telPhone_head.add("183");
telPhone_head.add("187");
telPhone_head.add("130");
telPhone_head.add("131");
telPhone_head.add("132");
telPhone_head.add("155");
telPhone_head.add("156");
telPhone_head.add("186");
telPhone_head.add("145");
telPhone_head.add("133");
telPhone_head.add("153");
telPhone_head.add("189");
telPhone_head.add("180");
telPhone_head.add("181");
telPhone_head.add("185");
}
public static final String PHONE_MESSAGE_ERROR="手机号不正确";
public static final String PHONE_MESSAGE_11="手机号不是11位";
public static final String PHONE_MESSAGE_NULL="手机号不能为空";
//验证手机号是否正确,返回值为不合格的理由。
public static String vailterTelPhone(String telPhone){
if(null!=telPhone){
if(telPhone.length()==11){
String head=telPhone.substring(0,3);
if(telPhone_head.contains(head)){
return null;
}else{
return PHONE_MESSAGE_ERROR;
}
}else{
return PHONE_MESSAGE_11;
}
}else{
return PHONE_MESSAGE_NULL;
}
}
}
|
[
"593949938@qq.com"
] |
593949938@qq.com
|
c26286093808ce797fbadc318c742e4ad4174587
|
3efa417c5668b2e7d1c377c41d976ed31fd26fdc
|
/src/br/com/mind5/stats/statsStoreProfile/storeProfileMonthAggr/dao/StefilonagrDaoInsert.java
|
3c33571a0566ffec17090a28765e189eda525cc1
|
[] |
no_license
|
grazianiborcai/Agenda_WS
|
4b2656716cc49a413636933665d6ad8b821394ef
|
e8815a951f76d498eb3379394a54d2aa1655f779
|
refs/heads/master
| 2023-05-24T19:39:22.215816
| 2023-05-15T15:15:15
| 2023-05-15T15:15:15
| 109,902,084
| 0
| 0
| null | 2022-06-29T19:44:56
| 2017-11-07T23:14:21
|
Java
|
UTF-8
|
Java
| false
| false
| 948
|
java
|
package br.com.mind5.stats.statsStoreProfile.storeProfileMonthAggr.dao;
import java.sql.SQLException;
import java.util.List;
import br.com.mind5.dao.DaoStmtExec;
import br.com.mind5.dao.DaoStmtExecHelper;
import br.com.mind5.dao.DaoStmtExecOption;
import br.com.mind5.stats.statsStoreProfile.storeProfileMonthAggr.info.StefilonagrInfo;
public final class StefilonagrDaoInsert implements DaoStmtExec<StefilonagrInfo> {
private DaoStmtExec<StefilonagrInfo> helper;
public StefilonagrDaoInsert(List<DaoStmtExecOption<StefilonagrInfo>> options) {
helper = new DaoStmtExecHelper<>(options, StefilonagrDaoInsertSingle.class, StefilonagrInfo.class);
}
@Override public void executeStmt() throws SQLException {
helper.executeStmt();
}
@Override public List<StefilonagrInfo> getResultset() {
return helper.getResultset();
}
@Override public void close() {
helper.close();
}
}
|
[
"mmaciel@mind5.com.br"
] |
mmaciel@mind5.com.br
|
d4fb09edbeb4d1e0ff2f3b0f3c5061f2ca5a880a
|
dc9cb104cada3a033ab3a0f9886ac93f2219fd43
|
/src/test/java/org/docksidestage/javatry/colorbox/Step14DateTest.java
|
448dc323fc9d1e0508d9fcebf4abe2e75657f96b
|
[
"Apache-2.0"
] |
permissive
|
yukikom-biz/javatry
|
cbe32565bd19f669b3b5b8e69dfee702524ba5fa
|
b65920f6fa76d1d789d8d2722d6519439c5b16e8
|
refs/heads/master
| 2020-05-29T18:59:59.318791
| 2019-06-13T08:48:51
| 2019-06-13T08:48:51
| 189,318,119
| 1
| 0
|
Apache-2.0
| 2019-05-30T00:31:14
| 2019-05-30T00:31:14
| null |
UTF-8
|
Java
| false
| false
| 3,799
|
java
|
/*
* Copyright 2019-2019 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.docksidestage.javatry.colorbox;
import org.docksidestage.unit.PlainTestCase;
/**
* The test of Date with color-box. <br>
* Show answer by log() for question of javadoc.
* @author jflute
* @author your_name_here
*/
public class Step14DateTest extends PlainTestCase {
// ===================================================================================
// Basic
// =====
/**
* What string is date in color-boxes formatted as slash-separated (e.g. 2019/04/24)? <br>
* (カラーボックスに入っている日付をスラッシュ区切り (e.g. 2019/04/24) のフォーマットしたら?)
*/
public void test_formatDate() {
}
/**
* What string of toString() is converted to LocalDate from slash-separated date string (e.g. 2019/04/24) in Set in yellow color-box? <br>
* (yellowのカラーボックスに入っているSetの中のスラッシュ区切り (e.g. 2019/04/24) の日付文字列をLocalDateに変換してtoString()したら?)
*/
public void test_parseDate() {
}
/**
* What is total of month numbers of date in color-boxes? <br>
* (カラーボックスに入っている日付の月を全て足したら?)
*/
public void test_sumMonth() {
}
/**
* What day of week is second-found date in color-boxes added to three days? <br>
* (カラーボックスに入っている二番目に見つかる日付に3日進めると何曜日?)
*/
public void test_plusDays_weekOfDay() {
}
// ===================================================================================
// Challenge
// =========
/**
* How many days (number of day) are between two dates in yellow color-boxes? <br>
* (yellowのカラーボックスに入っている二つの日付は何日離れている?)
*/
public void test_diffDay() {
}
/**
* What date is LocalDate in yellow color-box
* that is month-added with LocalDateTime's seconds in the same color-box,
* and is day-added with Long value in red color-box,
* and is day-added with the first decimal place of BigDecimal that has three (3) as integer in List in color-boxes? <br>
* (yellowのカラーボックスに入っているLocalDateに、同じカラーボックスに入っているLocalDateTimeの秒数を月数として足して、
* redのカラーボックスに入っているLong型を日数として足して、カラーボックスに入っているリストの中のBigDecimalの整数値が3の小数点第一位の数を日数として引いた日付は?)
*/
public void test_birthdate() {
}
/**
* What second is LocalTime in color-boxes? <br>
* (カラーボックスに入っているLocalTimeの秒は?)
*/
public void test_beReader() {
}
}
|
[
"dbflute@gmail.com"
] |
dbflute@gmail.com
|
336e0ff23878f496a7727eb2cf1b5871fad6f7d5
|
b47489e86b1779013a98b18eb8430030dd7afb83
|
/spring3.x/chapter4x/src/main/java/com.baobaotao/ioc/Director.java
|
cf7dce9b57edfb06d53f15f3e19aca18d239f6f8
|
[
"Apache-2.0"
] |
permissive
|
cuiyuemin365/books
|
66be7059d309745a8045426fc193439b95a288e4
|
4ffdd959b4fc894f085ee5e80031ff8f77d475e6
|
refs/heads/master
| 2023-01-09T19:30:48.718134
| 2021-04-08T07:52:00
| 2021-04-08T07:52:00
| 120,096,744
| 0
| 0
|
Apache-2.0
| 2023-01-02T21:56:51
| 2018-02-03T14:08:45
|
Java
|
UTF-8
|
Java
| false
| false
| 242
|
java
|
package com.baobaotao.ioc;
public class Director {
public void direct() {
GeLi geli = new LiuDeHua();
MoAttack moAttack = new MoAttack();
moAttack.injectGeli(geli);
moAttack.cityGateAsk();
}
}
|
[
"cuiyuemin@mofanghr.com"
] |
cuiyuemin@mofanghr.com
|
f2fc39f0938a6d3673b4c4851e2de6c2116859ee
|
5407585b7749d94f5a882eee6f7129afc6f79720
|
/dm-code/dm-service/src/main/java/org/finra/dm/service/activiti/task/GenerateBusinessObjectDataDdl.java
|
fae3de7e0056b441045b3f7c960f50d6c2c98065
|
[
"Apache-2.0"
] |
permissive
|
walw/herd
|
67144b0192178050118f5572c5aa271e1525e14f
|
e236f8f4787e62d5ebf5e1a55eda696d75c5d3cf
|
refs/heads/master
| 2021-01-14T14:16:23.163693
| 2015-10-08T14:23:54
| 2015-10-08T14:23:54
| 43,558,552
| 0
| 1
| null | 2015-10-02T14:50:59
| 2015-10-02T14:50:59
| null |
UTF-8
|
Java
| false
| false
| 2,421
|
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.dm.service.activiti.task;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.Expression;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.finra.dm.model.api.xml.BusinessObjectDataDdl;
import org.finra.dm.model.api.xml.BusinessObjectDataDdlRequest;
import org.finra.dm.service.BusinessObjectDataService;
/**
* An Activiti task that generates the business object data DDL.
* <p/>
* <p/>
* <pre>
* <extensionElements>
* <activiti:field name="contentType" stringValue=""/>
* <activiti:field name="businessObjectDataDdlRequest" stringValue=""/>
* </extensionElements>
* </pre>
*/
@Component
public class GenerateBusinessObjectDataDdl extends BaseJavaDelegate
{
public static final String VARIABLE_DDL = "businessObjectDataDdl";
private Expression contentType;
private Expression businessObjectDataDdlRequest;
@Autowired
private BusinessObjectDataService businessObjectDataService;
@Override
public void executeImpl(DelegateExecution execution) throws Exception
{
String contentTypeString = activitiHelper.getRequiredExpressionVariableAsString(contentType, execution, "ContentType").trim();
String requestString =
activitiHelper.getRequiredExpressionVariableAsString(businessObjectDataDdlRequest, execution, "businessObjectDataDdlRequest").trim();
BusinessObjectDataDdlRequest request = getRequestObject(contentTypeString, requestString, BusinessObjectDataDdlRequest.class);
// Generate Ddl.
BusinessObjectDataDdl businessObjectDataDdl = businessObjectDataService.generateBusinessObjectDataDdl(request);
setTaskWorkflowVariable(execution, VARIABLE_DDL, businessObjectDataDdl.getDdl());
}
}
|
[
"mchao47@gmail.com"
] |
mchao47@gmail.com
|
3072f02f3598ca2d202e4c0201ee306f80d72486
|
9cfa20f826fc1e0042ebd4f11563f7abf5e3ec4d
|
/azure/src/main/java/org/jclouds/azure/storage/blob/blobstore/functions/ResourceToListBlobsResponse.java
|
2f065f802fe7f86bb06841290fcb8bdd99ceb8d5
|
[] |
no_license
|
rimuhosting/jclouds
|
e56e9c7dd83c1c2bd41d78f47faede73e3033823
|
f488c9f8c3072599fe4c6f015ea724d663dc5998
|
refs/heads/master
| 2022-07-30T11:47:18.202365
| 2009-11-25T00:55:02
| 2009-11-25T00:55:02
| 376,723
| 0
| 0
| null | 2022-07-06T19:59:46
| 2009-11-18T02:38:34
|
Java
|
UTF-8
|
Java
| false
| false
| 3,501
|
java
|
/**
*
* Copyright (C) 2009 Cloud Conscious, LLC. <info@cloudconscious.com>
*
* ====================================================================
* 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.jclouds.azure.storage.blob.blobstore.functions;
import java.util.SortedSet;
import javax.inject.Inject;
import javax.inject.Singleton;
import org.jclouds.azure.storage.blob.domain.ListBlobsResponse;
import org.jclouds.azure.storage.blob.domain.ListableBlobProperties;
import org.jclouds.azure.storage.blob.domain.MutableBlobProperties;
import org.jclouds.azure.storage.blob.domain.internal.TreeSetListBlobsResponse;
import org.jclouds.blobstore.domain.BlobMetadata;
import org.jclouds.blobstore.domain.ListContainerResponse;
import org.jclouds.blobstore.domain.ResourceMetadata;
import org.jclouds.blobstore.domain.ResourceType;
import com.google.common.base.Function;
import com.google.common.base.Predicate;
import com.google.common.collect.Iterables;
import com.google.common.collect.Sets;
/**
* @author Adrian Cole
*/
@Singleton
public class ResourceToListBlobsResponse implements
Function<ListContainerResponse<? extends ResourceMetadata>, ListBlobsResponse> {
private final BlobMetadataToBlobProperties blob2ObjectMd;
@Inject
public ResourceToListBlobsResponse(BlobMetadataToBlobProperties blob2ObjectMd) {
this.blob2ObjectMd = blob2ObjectMd;
}
public ListBlobsResponse apply(ListContainerResponse<? extends ResourceMetadata> list) {
Iterable<ListableBlobProperties> contents = Iterables.transform(Iterables.filter(list,
new Predicate<ResourceMetadata>() {
public boolean apply(ResourceMetadata input) {
return input.getType() == ResourceType.BLOB;
}
}), new Function<ResourceMetadata, ListableBlobProperties>() {
public MutableBlobProperties apply(ResourceMetadata from) {
return blob2ObjectMd.apply((BlobMetadata) from);
}
});
SortedSet<String> commonPrefixes = Sets.newTreeSet(Iterables.transform(Iterables.filter(list,
new Predicate<ResourceMetadata>() {
public boolean apply(ResourceMetadata input) {
return input.getType() == ResourceType.RELATIVE_PATH;
}
}), new Function<ResourceMetadata, String>() {
public String apply(ResourceMetadata from) {
return from.getName();
}
}));
return new TreeSetListBlobsResponse(contents, null, list.getPath(), null, list
.getMaxResults(),list.getMarker(), "/", commonPrefixes);
}
}
|
[
"adrian.f.cole@3d8758e0-26b5-11de-8745-db77d3ebf521"
] |
adrian.f.cole@3d8758e0-26b5-11de-8745-db77d3ebf521
|
b2c756eaae7aad774eff28229d50dde7f037e1de
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XRENDERING-481-57-18-FEMO-WeightedSum:TestLen:CallDiversity/org/xwiki/velocity/internal/DefaultVelocityEngine_ESTest.java
|
14cc4d778f4d0c3e4ffeed669887c982a22a2a31
|
[] |
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
| 576
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sat Apr 04 14:46:31 UTC 2020
*/
package org.xwiki.velocity.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 DefaultVelocityEngine_ESTest extends DefaultVelocityEngine_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
45ffe0c1ec80cf866574b5c561ac4edc2e3886d5
|
5e4100a6611443d0eaa8774a4436b890cfc79096
|
/src/main/java/com/alipay/api/response/KoubeiTradeOrderEnterpriseSettleResponse.java
|
5d3321c22874870db91fc16a6169dd452c1f1306
|
[
"Apache-2.0"
] |
permissive
|
coderJL/alipay-sdk-java-all
|
3b471c5824338e177df6bbe73ba11fde8bc51a01
|
4f4ed34aaf5a320a53a091221e1832f1fe3c3a87
|
refs/heads/master
| 2020-07-15T22:57:13.705730
| 2019-08-14T10:37:41
| 2019-08-14T10:37:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,250
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: koubei.trade.order.enterprise.settle response.
*
* @author auto create
* @since 1.0, 2019-03-29 18:50:02
*/
public class KoubeiTradeOrderEnterpriseSettleResponse extends AlipayResponse {
private static final long serialVersionUID = 3382149139311315445L;
/**
* 描述本次返回中的业务属性,该字段用于描述本次返回中的业务属性,现有:BIZ_ALREADY_SUCCESS(幂等业务码)
*/
@ApiField("biz_code")
private String bizCode;
/**
* 口碑订单号
*/
@ApiField("order_no")
private String orderNo;
/**
* 传入的商户订单号
*/
@ApiField("out_order_no")
private String outOrderNo;
public void setBizCode(String bizCode) {
this.bizCode = bizCode;
}
public String getBizCode( ) {
return this.bizCode;
}
public void setOrderNo(String orderNo) {
this.orderNo = orderNo;
}
public String getOrderNo( ) {
return this.orderNo;
}
public void setOutOrderNo(String outOrderNo) {
this.outOrderNo = outOrderNo;
}
public String getOutOrderNo( ) {
return this.outOrderNo;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
d6d43ea5d1d75357f9f90e598fe1a3854b2a7323
|
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
|
/benchmark/validation/com/alibaba/druid/bvt/sql/mysql/alter/MySqlAlterTableTest2.java
|
acf0797bd51ac12ddf40b2d2be8f1e3243bcaba3
|
[] |
no_license
|
STAMP-project/dspot-experiments
|
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
|
121487e65cdce6988081b67f21bbc6731354a47f
|
refs/heads/master
| 2023-02-07T14:40:12.919811
| 2019-11-06T07:17:09
| 2019-11-06T07:17:09
| 75,710,758
| 14
| 19
| null | 2023-01-26T23:57:41
| 2016-12-06T08:27:42
| null |
UTF-8
|
Java
| false
| false
| 2,052
|
java
|
/**
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* 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.alibaba.druid.bvt.sql.mysql.alter;
import Token.EOF;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.dialect.mysql.parser.MySqlStatementParser;
import junit.framework.TestCase;
import org.junit.Assert;
public class MySqlAlterTableTest2 extends TestCase {
public void test_alter_first() throws Exception {
String sql = "ALTER TABLE `test`.`tb1` ADD COLUMN `f2` VARCHAR(45) NULL FIRST ;";
MySqlStatementParser parser = new MySqlStatementParser(sql);
SQLStatement stmt = parser.parseStatementList().get(0);
parser.match(EOF);
String output = SQLUtils.toMySqlString(stmt);
Assert.assertEquals("ALTER TABLE `test`.`tb1`\n\tADD COLUMN `f2` VARCHAR(45) NULL FIRST;", output);
}
public void test_alter_add_column() throws Exception {
String sql = "ALTER TABLE `test`.`tb1` ADD COLUMN `f2` VARCHAR(45) NULL AFTER `fid` , ADD COLUMN `f3` VARCHAR(45) NULL FIRST `f2`";
MySqlStatementParser parser = new MySqlStatementParser(sql);
SQLStatement stmt = parser.parseStatementList().get(0);
parser.match(EOF);
String output = SQLUtils.toMySqlString(stmt);
Assert.assertEquals(("ALTER TABLE `test`.`tb1`"//
+ ("\n\tADD COLUMN `f2` VARCHAR(45) NULL AFTER `fid`,"//
+ "\n\tADD COLUMN `f3` VARCHAR(45) NULL FIRST `f2`")), output);
}
}
|
[
"benjamin.danglot@inria.fr"
] |
benjamin.danglot@inria.fr
|
6ef151044955227fa72776d0e96e24af31235ae7
|
4fab44e9f3205863c0c4e888c9de1801919dc605
|
/AL-Game/src/com/aionemu/gameserver/model/templates/portal/ConquestPortalLoc.java
|
6d96cb1ee768ce4d09e80054be5c74343af7531e
|
[] |
no_license
|
YggDrazil/AionLight9
|
fce24670dcc222adb888f4a5d2177f8f069fd37a
|
81f470775c8a0581034ed8c10d5462f85bef289a
|
refs/heads/master
| 2021-01-11T00:33:15.835333
| 2016-07-29T19:20:11
| 2016-07-29T19:20:11
| 70,515,345
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,306
|
java
|
/**
* This file is part of Aion-Lightning <aion-lightning.org>.
*
* Aion-Lightning is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Aion-Lightning is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License
* along with Aion-Lightning.
* If not, see <http://www.gnu.org/licenses/>.
*/
package com.aionemu.gameserver.model.templates.portal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* @author CoolyT
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PortalDest")
public class ConquestPortalLoc
{
@XmlAttribute(name = "x")
public float x;
@XmlAttribute(name = "y")
public float y;
@XmlAttribute(name = "z")
public float z;
@XmlAttribute(name = "h")
public byte h;
}
|
[
"michelgorter@outlook.com"
] |
michelgorter@outlook.com
|
fee699de5e1db049305ed5a3410bbdadd33337ee
|
2612f336d667a087823234daf946f09b40d8ca3d
|
/java/java-impl/src/com/intellij/psi/stubsHierarchy/impl/StubHierarchyIndex.java
|
e6019223e13ba3da4a88fbd03802f6dc1132a989
|
[
"Apache-2.0"
] |
permissive
|
tnorbye/intellij-community
|
df7f181861fc5c551c02c73df3b00b70ab2dd589
|
f01cf262fc196bf4dbb99e20cd937dee3705a7b6
|
refs/heads/master
| 2021-04-06T06:57:57.974599
| 2018-03-13T17:37:00
| 2018-03-13T17:37:00
| 125,079,130
| 2
| 0
|
Apache-2.0
| 2018-03-13T16:09:41
| 2018-03-13T16:09:41
| null |
UTF-8
|
Java
| false
| false
| 4,412
|
java
|
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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.intellij.psi.stubsHierarchy.impl;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.project.ProjectManager;
import com.intellij.openapi.roots.ProjectFileIndex;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.vfs.VirtualFileWithId;
import com.intellij.psi.impl.java.stubs.hierarchy.IndexTree;
import com.intellij.psi.stubsHierarchy.StubHierarchyIndexer;
import com.intellij.util.indexing.*;
import com.intellij.util.io.DataExternalizer;
import com.intellij.util.io.DataInputOutputUtil;
import com.intellij.util.io.EnumeratorIntegerDescriptor;
import com.intellij.util.io.KeyDescriptor;
import org.jetbrains.annotations.NotNull;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.stream.IntStream;
/**
* @author peter
*/
public class StubHierarchyIndex extends FileBasedIndexExtension<Integer, SerializedUnit> implements PsiDependentIndex {
private static final int KEY_COUNT = 20;
static final int[] BINARY_KEYS = IntStream.rangeClosed(1, KEY_COUNT).toArray();
static final int[] SOURCE_KEYS = IntStream.rangeClosed(-KEY_COUNT, -1).toArray();
static final ID<Integer, SerializedUnit> INDEX_ID = ID.create("jvm.hierarchy");
private static final StubHierarchyIndexer[] ourIndexers = StubHierarchyIndexer.EP_NAME.getExtensions();
@NotNull
@Override
public ID<Integer, SerializedUnit> getName() {
return INDEX_ID;
}
@NotNull
@Override
public DataIndexer<Integer, SerializedUnit, FileContent> getIndexer() {
return inputData -> {
for (StubHierarchyIndexer indexer : ourIndexers) {
VirtualFile file = inputData.getFile();
IndexTree.Unit unit = indexer.handlesFile(file) ? indexer.indexFile(inputData) : null;
if (unit != null && unit.myDecls.length > 0) {
int[] keys = file.getFileType().isBinary() ? BINARY_KEYS : SOURCE_KEYS;
return Collections.singletonMap(keys[((VirtualFileWithId) file).getId() % keys.length], new SerializedUnit(unit));
}
}
return Collections.emptyMap();
};
}
@NotNull
@Override
public KeyDescriptor<Integer> getKeyDescriptor() {
return EnumeratorIntegerDescriptor.INSTANCE;
}
@NotNull
@Override
public DataExternalizer<SerializedUnit> getValueExternalizer() {
return new DataExternalizer<SerializedUnit>() {
@Override
public void save(@NotNull DataOutput out, SerializedUnit value) throws IOException {
byte[] bytes = value.getSerializedBytes();
DataInputOutputUtil.writeINT(out, bytes.length);
out.write(bytes);
}
@Override
public SerializedUnit read(@NotNull DataInput in) throws IOException {
byte[] bytes = new byte[DataInputOutputUtil.readINT(in)];
in.readFully(bytes);
return new SerializedUnit(bytes);
}
};
}
@Override
public int getVersion() {
return IndexTree.STUB_HIERARCHY_ENABLED ? 8 + Arrays.stream(ourIndexers).mapToInt(StubHierarchyIndexer::getVersion).sum() : 0;
}
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter() {
return file -> IndexTree.STUB_HIERARCHY_ENABLED &&
Arrays.stream(ourIndexers).anyMatch(indexer -> indexer.handlesFile(file)) &&
isSourceOrLibrary(file);
}
private static boolean isSourceOrLibrary(VirtualFile file) {
for (Project project : ProjectManager.getInstance().getOpenProjects()) {
ProjectFileIndex index = ProjectFileIndex.SERVICE.getInstance(project);
if (index.isInLibraryClasses(file) || index.isInSourceContent(file)) {
return true;
}
}
return false;
}
@Override
public boolean dependsOnFileContent() {
return true;
}
}
|
[
"peter@jetbrains.com"
] |
peter@jetbrains.com
|
795a4b44ab8129cf83cb4fa355d27c03dc9ee446
|
03be3f540f93a1507e82e4e84a651e205ba2971e
|
/trunk/IVRAppliction/sourcecode/RCOM_POSTPAID/WEB-INF/src/flow/Evaluate_MN_0047.java
|
1f796168691f180215bcaab36a0ebd29af73605a
|
[] |
no_license
|
Tarunjain19/DXC_SVN
|
448103f0c56e79616a2801acbf5d369d6e256b36
|
99a90150d30374929382c3181ee8b1f914c905ae
|
refs/heads/master
| 2022-06-04T10:36:52.755986
| 2020-05-06T08:44:47
| 2020-05-06T08:44:47
| 261,372,252
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,844
|
java
|
package flow;
/**
* The Data class handles many types of server-side operations including data
* collection (from a data sources such as a database, or web service), variable
* assignments and operations (like copying variable values, performing mathematic
* operations, and collection iteration), conditional evaluation to control callflow
* execution based on variable values, and logging/tracing statements.
*
* Items created in the getDataActions() method are executed/evaluated in order
* and if a condional branch condition evaluates to "true" then the branch is
* activated and the execution of data actions is halted. If no "true" conditions
* are encountered, then all data actions will be executed/evaluated and the
* application will proceed to the "Default" servlet.
* Last generated by Orchestration Designer at: 2015-MAY-14 07:49:26 PM
*/
public class Evaluate_MN_0047 extends com.avaya.sce.runtime.Data {
//{{START:CLASS:FIELDS
//}}END:CLASS:FIELDS
/**
* Default constructor
* Last generated by Orchestration Designer at: 2015-MAY-14 07:49:26 PM
*/
public Evaluate_MN_0047() {
//{{START:CLASS:CONSTRUCTOR
super();
//}}END:CLASS:CONSTRUCTOR
}
/**
* Returns the Next item which will forward application execution
* to the next form in the call flow.
* Last generated by Orchestration Designer at: 2017-AUG-28 03:36:20 PM
*/
public com.avaya.sce.runtime.Next getNext(com.avaya.sce.runtimecommon.SCESession mySession) {
com.avaya.sce.runtime.Next next = null;
return next;
}
/**
* Create a list of local variables used by items in the data node.
*
* This method is generated automatically by the code generator
* and should not be manually edited. Manual edits may be overwritten
* by the code generator.
* Last generated by Orchestration Designer at: 2017-AUG-28 03:36:20 PM
*/
public java.util.Collection<VariableInfo> getLocalVariables(){
java.util.Collection<VariableInfo> variables = new java.util.ArrayList<VariableInfo>();
return variables;
}
/**
* Creates and conditionally executes operations that have been configured
* in the Callflow. This method will build a collection of operations and
* have the framework execute the operations by calling evaluateActions().
* If the evaluation causes the framework to forward to a different servlet
* then execution stops.
* Returning true from this method means that the framework has forwarded the
* request to a different servlet. Returning false means that the default
* Next will be invoked.
*
* This method is generated automatically by the code generator
* and should not be manually edited. Manual edits may be overwritten
* by the code generator.
* Last generated by Orchestration Designer at: 2017-AUG-28 03:36:20 PM
*/
public boolean executeDataActions(com.avaya.sce.runtimecommon.SCESession mySession) throws Exception {
java.util.Collection actions = null;
actions = new java.util.ArrayList(2);
actions.add(new com.avaya.sce.runtime.tracking.TraceInfo(com.avaya.sce.runtimecommon.ITraceInfo.TRACE_LEVEL_DEBUG, "--->LinkDown Flag", "Flag:isLinkDown").setDebugId(5924));
if(evaluateActions(actions, mySession)) {
return true;
}
actions = null;
if(((com.avaya.sce.runtime.Condition)new com.avaya.sce.runtime.Condition("condition1", "ServiceComplaint_MN_0047:ReturnCode", com.avaya.sce.runtime.Expression.STRING_EQUAL_IGNORE, "Constants:success", true).setDebugId(5925)).evaluate(mySession)) {
if(((com.avaya.sce.runtime.Condition)new com.avaya.sce.runtime.Condition("condition2", "ServiceComplaint_MN_0047:Value", com.avaya.sce.runtime.Expression.STRING_EQUAL_IGNORE, "NetworkComplaint", false).setDebugId(5926)).evaluate(mySession)) {
actions = new java.util.ArrayList(2);
actions.add(new com.avaya.sce.runtime.varoperations.Assign("CallData:transferReasonCode", "TR_0132", true).setDebugId(5961));
actions.add(new com.avaya.sce.runtime.Next("checkHNICaller", "NetworkComplaint").setDebugId(5927));
if(evaluateActions(actions, mySession)) {
return true;
}
actions = null;
} else if(((com.avaya.sce.runtime.Condition)new com.avaya.sce.runtime.Condition("condition3", "ServiceComplaint_MN_0047:Value", com.avaya.sce.runtime.Expression.STRING_EQUAL_IGNORE, "ProductComplaint", false).setDebugId(5928)).evaluate(mySession)) {
actions = new java.util.ArrayList(2);
actions.add(new com.avaya.sce.runtime.varoperations.Assign("CallData:transferReasonCode", "TR_0133", true).setDebugId(5962));
actions.add(new com.avaya.sce.runtime.Next("checkHNICaller", "ProductComplaint").setDebugId(5929));
if(evaluateActions(actions, mySession)) {
return true;
}
actions = null;
} else if(((com.avaya.sce.runtime.Condition)new com.avaya.sce.runtime.Condition("condition4", "ServiceComplaint_MN_0047:Value", com.avaya.sce.runtime.Expression.STRING_EQUAL_IGNORE, "Grammars:Previous", true).setDebugId(5936)).evaluate(mySession)) {
actions = new java.util.ArrayList(1);
actions.add(new com.avaya.sce.runtime.Next("Initialize_MN_0005", "Previous").setDebugId(5937));
if(evaluateActions(actions, mySession)) {
return true;
}
actions = null;
} else if(((com.avaya.sce.runtime.Condition)new com.avaya.sce.runtime.Condition("condition5", "ServiceComplaint_MN_0047:Value", com.avaya.sce.runtime.Expression.STRING_EQUAL_IGNORE, "Grammars:Repeat", true).setDebugId(5963)).evaluate(mySession)) {
actions = new java.util.ArrayList(1);
actions.add(new com.avaya.sce.runtime.Next("ServiceComplaint_MN_0047", "Repeat").setDebugId(5964));
if(evaluateActions(actions, mySession)) {
return true;
}
actions = null;
} else if(((com.avaya.sce.runtime.Condition)new com.avaya.sce.runtime.Condition("condition6", "ServiceComplaint_MN_0047:Value", com.avaya.sce.runtime.Expression.STRING_EQUAL_IGNORE, "Grammars:MainMenu", true).setDebugId(5938)).evaluate(mySession)) {
actions = new java.util.ArrayList(1);
actions.add(new com.avaya.sce.runtime.Next("Initialize_MN_0005", "MainMenu").setDebugId(5939));
if(evaluateActions(actions, mySession)) {
return true;
}
actions = null;
} else {
actions = new java.util.ArrayList(2);
actions.add(new com.avaya.sce.runtime.varoperations.Assign("CallData:transferReasonCode", "Constants:TR_0005", false).setDebugId(5941));
actions.add(new com.avaya.sce.runtime.Next("checkHNICaller", "Transfer").setDebugId(5942));
if(evaluateActions(actions, mySession)) {
return true;
}
actions = null;
}
} else {
actions = new java.util.ArrayList(2);
actions.add(new com.avaya.sce.runtime.varoperations.Assign("Flag:NIFlag", "ServiceComplaint_MN_0047:ReturnCode", false).setDebugId(6144));
actions.add(new com.avaya.sce.runtime.varoperations.Assign("CallData:transferReasonCode", "Constants:TR_0078", false).setDebugId(5944));
if(evaluateActions(actions, mySession)) {
return true;
}
actions = null;
if(((com.avaya.sce.runtime.Condition)new com.avaya.sce.runtime.Condition("condition7", "Flag:isFromIntelligentLayer", com.avaya.sce.runtime.Expression.STRING_EQUAL_IGNORE, "Constants:yes", true).setDebugId(5945)).evaluate(mySession)) {
actions = new java.util.ArrayList(1);
actions.add(new com.avaya.sce.runtime.Next("checkHNICaller", "NINM_MainMenu").setDebugId(5946));
if(evaluateActions(actions, mySession)) {
return true;
}
actions = null;
} else {
actions = new java.util.ArrayList(1);
actions.add(new com.avaya.sce.runtime.Next("checkHNICaller", "NINM_Transfer").setDebugId(5948));
if(evaluateActions(actions, mySession)) {
return true;
}
actions = null;
}
}
// return false if the evaluation of actions did not cause a servlet forward or redirect
return false;
}
}
|
[
"tarun.jain3@dxc.com"
] |
tarun.jain3@dxc.com
|
3f9fd78cbcf6f6aca1531c03e367728856a64fbd
|
e1450a329c75a55cf6ccd0ce2d2f3517b3ee51c5
|
/src/main/java/home/javarush/javaCore/task15/task1529/Plane.java
|
0a53d95b63b1f93c8f7fd5a7e103170c818d5b45
|
[] |
no_license
|
nikolaydmukha/netology-java-base-java-core
|
afcf0dd190f4c912c5feb2ca8897bc17c09a9ec1
|
eea55c27bbbab3b317c3ca5b0719b78db7d27375
|
refs/heads/master
| 2023-03-18T13:33:24.659489
| 2021-03-25T17:31:52
| 2021-03-25T17:31:52
| 326,259,412
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 231
|
java
|
package home.javarush.javaCore.task15.task1529;
public class Plane implements CanFly{
private int passNum;
public Plane(int passNum) {
this.passNum = passNum;
}
@Override
public void fly() {
}
}
|
[
"dmukha@mail.ru"
] |
dmukha@mail.ru
|
58a2b323a6aa2bb38a8369c9a5f9e0894149ada4
|
eb9f655206c43c12b497c667ba56a0d358b6bc3a
|
/python/src/com/jetbrains/python/debugger/smartstepinto/PySmartStepIntoVariantCallExpression.java
|
f6f4de01e25d36efd7ea2d6722b1f9945049315e
|
[
"Apache-2.0"
] |
permissive
|
JetBrains/intellij-community
|
2ed226e200ecc17c037dcddd4a006de56cd43941
|
05dbd4575d01a213f3f4d69aa4968473f2536142
|
refs/heads/master
| 2023-09-03T17:06:37.560889
| 2023-09-03T11:51:00
| 2023-09-03T12:12:27
| 2,489,216
| 16,288
| 6,635
|
Apache-2.0
| 2023-09-12T07:41:58
| 2011-09-30T13:33:05
| null |
UTF-8
|
Java
| false
| false
| 1,670
|
java
|
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.debugger.smartstepinto;
import com.intellij.openapi.util.TextRange;
import com.jetbrains.python.psi.PyCallExpression;
import com.jetbrains.python.psi.PyExpression;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class PySmartStepIntoVariantCallExpression extends PySmartStepIntoVariant {
@Nullable private final PyExpression myCallee;
public PySmartStepIntoVariantCallExpression(@NotNull PyCallExpression element, int callOrder, @NotNull PySmartStepIntoContext context) {
super(element, callOrder, context);
myCallee = element.getCallee();
}
@Nullable
@Override
public String getFunctionName() {
return myCallee != null ? myCallee.getName() : null;
}
@Nullable
@Override
public TextRange getHighlightRange() {
if (myCallee == null) return null;
String calleeName = myCallee.getName();
if (calleeName == null) return null;
TextRange range = myCallee.getTextRange();
// For example, for the `foo().bar().baz()` call expression the callee will be `foo().bar().baz`.
// The range must be adjusted in such cases to match only the last part which is `baz`.
if (calleeName.length() < range.getLength()) {
int diff = range.getLength() - calleeName.length();
return new TextRange(range.getStartOffset() + diff, range.getEndOffset());
}
return range;
}
@Nullable
@Override
public String getText() {
return myCallee != null ? myCallee.getText() + "()" : null;
}
}
|
[
"intellij-monorepo-bot-no-reply@jetbrains.com"
] |
intellij-monorepo-bot-no-reply@jetbrains.com
|
fa1a14331008ca5783e5a35eff30267d2004478d
|
421f0a75a6b62c5af62f89595be61f406328113b
|
/generated_tests/model_seeding/107_weka-weka.filters.unsupervised.attribute.MergeTwoValues-0.5-5/weka/filters/unsupervised/attribute/MergeTwoValues_ESTest_scaffolding.java
|
e7065924815707ceebbdb10546f03a1c329e58c9
|
[] |
no_license
|
tigerqiu712/evosuite-model-seeding-empirical-evaluation
|
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
|
11a920b8213d9855082d3946233731c843baf7bc
|
refs/heads/master
| 2020-12-23T21:04:12.152289
| 2019-10-30T08:02:29
| 2019-10-30T08:02:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 556
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Tue Oct 29 13:46:56 GMT 2019
*/
package weka.filters.unsupervised.attribute;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class MergeTwoValues_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pderakhshanfar@bsr01.win.tue.nl"
] |
pderakhshanfar@bsr01.win.tue.nl
|
1422b19a9b4a8c0d87421231ba6c05f88a148439
|
f72971fbab14458776400d240216442d8a46cbe1
|
/modules/common/src/main/java/wsimport/lib/amadeus/wstravelbuild/ArrayOfAcceptedPayment.java
|
ddb0b127afc05877d97ab8d6848e3a0b0ff9b9ad
|
[] |
no_license
|
hamzzy/Amadeus-Sabre-Java-Multi-GDS-SDK
|
cea5ee9f3be520bfbf509d5207adcc7c0f4ec4b8
|
a21e706c17b85d99e1ef573f66c88efa9e2918fe
|
refs/heads/master
| 2022-11-05T16:49:24.067050
| 2020-06-28T03:59:13
| 2020-06-28T03:59:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,020
|
java
|
package wsimport.lib.amadeus.wstravelbuild;
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 ArrayOfAcceptedPayment complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ArrayOfAcceptedPayment">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="AcceptedPayment" type="{http://traveltalk.com/wsTravelBuild}AcceptedPayment" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfAcceptedPayment", propOrder = {
"acceptedPayment"
})
public class ArrayOfAcceptedPayment {
@XmlElement(name = "AcceptedPayment")
protected List<AcceptedPayment> acceptedPayment;
/**
* Gets the value of the acceptedPayment 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 acceptedPayment property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAcceptedPayment().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AcceptedPayment }
*
*
*/
public List<AcceptedPayment> getAcceptedPayment() {
if (acceptedPayment == null) {
acceptedPayment = new ArrayList<AcceptedPayment>();
}
return this.acceptedPayment;
}
}
|
[
"info@brakket.tech"
] |
info@brakket.tech
|
9e898408861bc3981f43240a0d2879de7a3c250d
|
631afd8bb77a19ac0f0604c41176d11f63e90c7d
|
/kie-wb-common-stunner-backend/src/main/java/org/kie/workbench/common/stunner/backend/diagram/TenantDiagramManager.java
|
757b2409e70376d47ff171b268228001e289e70b
|
[] |
no_license
|
tsurdilo/wirez
|
86aaf88fcf412cfa1b03a9cfa8e81503b52439bc
|
fd8963cdd0dd6ec916b051dc5759f23bd6fe2074
|
refs/heads/master
| 2020-12-29T03:07:36.637532
| 2016-10-04T01:44:36
| 2016-10-04T02:29:18
| 68,604,988
| 0
| 0
| null | 2016-09-19T12:46:45
| 2016-09-19T12:46:45
| null |
UTF-8
|
Java
| false
| false
| 1,696
|
java
|
package org.kie.workbench.common.stunner.backend.diagram;
import org.kie.workbench.common.stunner.core.api.DiagramManager;
import org.kie.workbench.common.stunner.core.backend.annotation.Application;
import org.kie.workbench.common.stunner.core.backend.annotation.Tenant;
import org.kie.workbench.common.stunner.core.diagram.Diagram;
import javax.enterprise.context.SessionScoped;
import javax.inject.Inject;
import java.io.Serializable;
import java.util.Collection;
/**
* The diagram service for each tenant.
*/
@SessionScoped
@Tenant
public class TenantDiagramManager implements DiagramManager<Diagram>, Serializable {
DiagramManager<Diagram> appDiagramManager;
protected TenantDiagramManager() {
this( null );
}
@Inject
public TenantDiagramManager( @Application DiagramManager<Diagram> appDiagramManager) {
this.appDiagramManager = appDiagramManager;
}
@Override
public void update(Diagram diagram) {
appDiagramManager.update( diagram );
}
@Override
public void register(Diagram diagram) {
appDiagramManager.register( diagram );
}
@Override
public boolean contains(Diagram item) {
return appDiagramManager.contains( item );
}
@Override
public boolean remove(Diagram diagram) {
return appDiagramManager.remove( diagram );
}
@Override
public Diagram getDiagramByUUID(String uuid) {
return appDiagramManager.getDiagramByUUID( uuid );
}
@Override
public Collection<Diagram> getItems() {
return appDiagramManager.getItems();
}
@Override
public void clear() {
appDiagramManager.clear();
}
}
|
[
"roger600@gmail.com"
] |
roger600@gmail.com
|
74c1ecd5225c40297fa66db55f4320948034c2f7
|
cfca4d5453a0c3418b3e59f311de046c763b36fc
|
/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevInternalSettings.java
|
e3204e6457bf9f941c0184f618202a9876f65427
|
[
"MIT",
"CC-BY-4.0",
"CC-BY-SA-4.0",
"CC-BY-NC-SA-4.0"
] |
permissive
|
notjosh/Marzipants
|
e04b01328acbbfcc2ffba6fc88c729fdc6f573f0
|
4909a2502d9575469d2647a3d750a0c1a50ff9e9
|
refs/heads/master
| 2020-03-19T12:44:12.785247
| 2018-06-25T11:54:50
| 2018-06-25T11:54:50
| 136,536,830
| 151
| 2
|
MIT
| 2018-06-25T11:54:52
| 2018-06-07T22:13:24
|
Objective-C
|
UTF-8
|
Java
| false
| false
| 5,189
|
java
|
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.devsupport;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.facebook.react.common.annotations.VisibleForTesting;
import com.facebook.react.common.build.ReactBuildConfig;
import com.facebook.react.modules.debug.interfaces.DeveloperSettings;
import com.facebook.react.packagerconnection.PackagerConnectionSettings;
/**
* Helper class for accessing developers settings that should not be accessed outside of the package
* {@link com.facebook.react.devsupport}. For accessing some of the settings by external modules
* this class implements an external interface {@link DeveloperSettings}.
*/
@VisibleForTesting
public class DevInternalSettings implements
DeveloperSettings,
SharedPreferences.OnSharedPreferenceChangeListener {
private static final String PREFS_FPS_DEBUG_KEY = "fps_debug";
private static final String PREFS_JS_DEV_MODE_DEBUG_KEY = "js_dev_mode_debug";
private static final String PREFS_JS_MINIFY_DEBUG_KEY = "js_minify_debug";
private static final String PREFS_JS_BUNDLE_DELTAS_KEY = "js_bundle_deltas";
private static final String PREFS_ANIMATIONS_DEBUG_KEY = "animations_debug";
private static final String PREFS_RELOAD_ON_JS_CHANGE_KEY = "reload_on_js_change";
private static final String PREFS_INSPECTOR_DEBUG_KEY = "inspector_debug";
private static final String PREFS_HOT_MODULE_REPLACEMENT_KEY = "hot_module_replacement";
private static final String PREFS_REMOTE_JS_DEBUG_KEY = "remote_js_debug";
private final SharedPreferences mPreferences;
private final Listener mListener;
private final PackagerConnectionSettings mPackagerConnectionSettings;
public DevInternalSettings(
Context applicationContext,
Listener listener) {
mListener = listener;
mPreferences = PreferenceManager.getDefaultSharedPreferences(applicationContext);
mPreferences.registerOnSharedPreferenceChangeListener(this);
mPackagerConnectionSettings = new PackagerConnectionSettings(applicationContext);
}
public PackagerConnectionSettings getPackagerConnectionSettings() {
return mPackagerConnectionSettings;
}
@Override
public boolean isFpsDebugEnabled() {
return mPreferences.getBoolean(PREFS_FPS_DEBUG_KEY, false);
}
public void setFpsDebugEnabled(boolean enabled) {
mPreferences.edit().putBoolean(PREFS_FPS_DEBUG_KEY, enabled).apply();
}
@Override
public boolean isAnimationFpsDebugEnabled() {
return mPreferences.getBoolean(PREFS_ANIMATIONS_DEBUG_KEY, false);
}
@Override
public boolean isJSDevModeEnabled() {
return mPreferences.getBoolean(PREFS_JS_DEV_MODE_DEBUG_KEY, true);
}
@Override
public boolean isJSMinifyEnabled() {
return mPreferences.getBoolean(PREFS_JS_MINIFY_DEBUG_KEY, false);
}
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
if (mListener != null) {
if (PREFS_FPS_DEBUG_KEY.equals(key)
|| PREFS_RELOAD_ON_JS_CHANGE_KEY.equals(key)
|| PREFS_JS_DEV_MODE_DEBUG_KEY.equals(key)
|| PREFS_JS_BUNDLE_DELTAS_KEY.equals(key)
|| PREFS_JS_MINIFY_DEBUG_KEY.equals(key)) {
mListener.onInternalSettingsChanged();
}
}
}
public boolean isHotModuleReplacementEnabled() {
return mPreferences.getBoolean(PREFS_HOT_MODULE_REPLACEMENT_KEY, false);
}
public void setHotModuleReplacementEnabled(boolean enabled) {
mPreferences.edit().putBoolean(PREFS_HOT_MODULE_REPLACEMENT_KEY, enabled).apply();
}
public boolean isReloadOnJSChangeEnabled() {
return mPreferences.getBoolean(PREFS_RELOAD_ON_JS_CHANGE_KEY, false);
}
public void setReloadOnJSChangeEnabled(boolean enabled) {
mPreferences.edit().putBoolean(PREFS_RELOAD_ON_JS_CHANGE_KEY, enabled).apply();
}
public boolean isElementInspectorEnabled() {
return mPreferences.getBoolean(PREFS_INSPECTOR_DEBUG_KEY, false);
}
public void setElementInspectorEnabled(boolean enabled) {
mPreferences.edit().putBoolean(PREFS_INSPECTOR_DEBUG_KEY, enabled).apply();
}
@SuppressLint("SharedPreferencesUse")
public boolean isBundleDeltasEnabled() {
return mPreferences.getBoolean(PREFS_JS_BUNDLE_DELTAS_KEY, true);
}
@SuppressLint("SharedPreferencesUse")
public void setBundleDeltasEnabled(boolean enabled) {
mPreferences.edit().putBoolean(PREFS_JS_BUNDLE_DELTAS_KEY, enabled).apply();
}
@Override
public boolean isNuclideJSDebugEnabled() {
return ReactBuildConfig.IS_INTERNAL_BUILD && ReactBuildConfig.DEBUG;
}
@Override
public boolean isRemoteJSDebugEnabled() {
return mPreferences.getBoolean(PREFS_REMOTE_JS_DEBUG_KEY, false);
}
@Override
public void setRemoteJSDebugEnabled(boolean remoteJSDebugEnabled) {
mPreferences.edit().putBoolean(PREFS_REMOTE_JS_DEBUG_KEY, remoteJSDebugEnabled).apply();
}
public interface Listener {
void onInternalSettingsChanged();
}
}
|
[
"notjosh@gmail.com"
] |
notjosh@gmail.com
|
0e7e0e5c0565bac4186d0a23b80ec7a80e0138f0
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/23/23_91b4bcdf86258fae767a67b40b6164e30cf830d7/WriteRequestWrapper/23_91b4bcdf86258fae767a67b40b6164e30cf830d7_WriteRequestWrapper_t.java
|
866e5f899ec01350f098b216f8ef957ee661f2f0
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,173
|
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.mina.core.write;
import java.net.SocketAddress;
import org.apache.mina.core.future.WriteFuture;
/**
* A wrapper for an existing {@link WriteRequest}.
*
* @author <a href="http://mina.apache.org">Apache MINA Project</a>
*/
public class WriteRequestWrapper implements WriteRequest {
private final WriteRequest parentRequest;
/**
* Creates a new instance that wraps the specified request.
*/
public WriteRequestWrapper(WriteRequest parentRequest) {
if (parentRequest == null) {
throw new NullPointerException("parentRequest");
}
this.parentRequest = parentRequest;
}
public SocketAddress getDestination() {
return parentRequest.getDestination();
}
public WriteFuture getFuture() {
return parentRequest.getFuture();
}
public Object getMessage() {
return parentRequest.getMessage();
}
public WriteRequest getOriginalRequest() {
return parentRequest.getOriginalRequest();
}
/**
* Returns the wrapped request object.
*/
public WriteRequest getParentRequest() {
return parentRequest;
}
@Override
public String toString() {
return "WR Wrapper" + parentRequest.toString();
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
21de772642abfda6a6210d4423021e1c501bd2d7
|
73c24af73821763711573cc3a3f1f9aab5eef72d
|
/Mutation_Analysis/src/jointPackage_PetriNet2PNML/TrgURI.java
|
5cce27c0ed536318b539cfcb618ce3da2eb6a820
|
[] |
no_license
|
javitroya/test-case-gen-mutation-analysis
|
8a448648f54c90684558d92f4f6b32bb0120453c
|
2521cde3b79df877b1be876935075570cbb94cea
|
refs/heads/master
| 2021-02-11T11:24:52.675409
| 2020-03-03T13:21:35
| 2020-03-03T13:21:35
| 244,484,697
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,182
|
java
|
/**
*/
package jointPackage_PetriNet2PNML;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Trg URI</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link jointPackage_PetriNet2PNML.TrgURI#getValue <em>Value</em>}</li>
* </ul>
*
* @see jointPackage_PetriNet2PNML.JointPackage_PetriNet2PNMLPackage#getTrgURI()
* @model
* @generated
*/
public interface TrgURI extends TrgLocatedElement {
/**
* Returns the value of the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Value</em>' attribute.
* @see #setValue(String)
* @see jointPackage_PetriNet2PNML.JointPackage_PetriNet2PNMLPackage#getTrgURI_Value()
* @model required="true" ordered="false"
* @generated
*/
String getValue();
/**
* Sets the value of the '{@link jointPackage_PetriNet2PNML.TrgURI#getValue <em>Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Value</em>' attribute.
* @see #getValue()
* @generated
*/
void setValue(String value);
} // TrgURI
|
[
"jtroya@us.es"
] |
jtroya@us.es
|
472728d302d9aa166dc501ca63a84ca936e1980d
|
3647f3da5e8348d5449e2e6f7575a99a2b244849
|
/sday19_2Exception异常/src/demo01_异常概述/ExceptionDmeo.java
|
6f9713ac31d649e9b74acbbe4ca361a7f7dc290e
|
[] |
no_license
|
NianDUI/chuanzhi
|
f3f04b5da5c15797a9134846b1d20013363e853d
|
9d4a60b14801ee1483ddade080cf059a4037eacb
|
refs/heads/master
| 2022-07-02T01:14:07.768575
| 2019-11-24T12:45:15
| 2019-11-24T12:45:15
| 223,742,493
| 0
| 0
| null | 2022-06-21T02:18:19
| 2019-11-24T12:43:30
|
Java
|
GB18030
|
Java
| false
| false
| 1,822
|
java
|
package demo01_异常概述;
/*
* 异常:
* 举例:今天天气很好,班长出去旅游。骑着自行车,去山里面呼吸新鲜空气。
* 问题1:山路塌陷了,班长及时 停住了,但是过不去了。
* 问题2:班长出门推自行车,发现气没了,把气吹起来。
* 出发前就应该检查的问题。
* 问题3:班长骑着车在山路上惬意的行驶着,山路两边有 小石子,中间是平坦的水泥路。
* 一直在平坦的水泥路上形式是没有任何问题的,但是呢,他就偏偏喜欢骑到小石子上,结果爆胎了。
* 旅游的过程中出现问题。
*
* 程序的异常:Throwable
* 严重问题:Error 我们不处理,这种问题一般都是很严重的问题,比如说内存溢出。
* 问题:Exception
* 编译期问题:不是RuntimeException的异常
* 必须进行除理的,因为你不处理,编译就不能通过
* 运行期问题:RuntimeException
* 这种问题我们也不处理,因为是你的问题,而且这个问题出现肯定是我们的代码不够严谨,需要修改代码的。
*
* Throwable类:是 Java 语言中所有错误或异常的超类。
* |
* |--Error
* |--子类
* |
* |--Exception
* |--子类
* |--RuntimeException
* |--子类
*
* 如果程序出现了问题,我们没有做任何处理,最终JVM会做出默认的处理。
* 把异常的名称,原因及出现的问题等信息输出在控制台。
* 同时会结束程序。
*
*/
public class ExceptionDmeo {
public static void main(String[] args) {
// 第一阶段。
int a = 20;
// int b = 2;
int b = 0;
System.out.println(a / b); // ArithmeticException
// 第二阶段。
System.out.println("over");
}
}
|
[
"760664212@qq.com"
] |
760664212@qq.com
|
3d0dee482786996311b8eb51ee350f461eb8c48b
|
0a50b386848f9f61973cb6efb6c1145c2b078c22
|
/Database Frameworks - Hibernate and Spring Data - 2019/14. Exam Preparations/Most Wanted - Exam Prep/src/main/java/mostwanted/repository/RacerRepository.java
|
08b1244f614f011c16e587c67d05a44f9c6d6df2
|
[] |
no_license
|
Ignatovw99/SoftUni
|
d332e66687b7d977f5d37c12c49ff379f7f317b4
|
0cb4086e633218bf53c180cc9323e79ed03cb1b6
|
refs/heads/master
| 2022-07-15T21:45:34.603272
| 2020-09-11T20:12:27
| 2020-09-11T20:12:27
| 162,747,019
| 1
| 0
| null | 2022-06-21T01:52:15
| 2018-12-21T18:43:43
|
Java
|
UTF-8
|
Java
| false
| false
| 626
|
java
|
package mostwanted.repository;
import mostwanted.domain.entities.Racer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface RacerRepository extends JpaRepository<Racer, Integer> {
boolean existsByName(String racerName);
Racer findByName(String racerName);
@Query("SELECT r FROM Racer r " +
"WHERE SIZE(r.cars) > 0 AND r.age IS NOT NULL " +
"ORDER BY SIZE(r.cars) DESC, r.name ASC")
List<Racer> findAllWithCars();
}
|
[
"lyuboslavw@gmail.com"
] |
lyuboslavw@gmail.com
|
b79d0f8214b977f015cf29bec0683749bfc4340a
|
502ea93de54a1be3ef42edb0412a2bf4bc9ddbef
|
/sources/com/google/android/gms/location/C4709aj.java
|
5e9a02858d54449ec149ca5a26399cb0f09ec9cb
|
[] |
no_license
|
dovanduy/MegaBoicotApk
|
c0852af0773be1b272ec907113e8f088addb0f0c
|
56890cb9f7afac196bd1fec2d1326f2cddda37a3
|
refs/heads/master
| 2020-07-02T04:28:02.199907
| 2019-08-08T20:44:49
| 2019-08-08T20:44:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 990
|
java
|
package com.google.android.gms.location;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import com.google.android.gms.internal.location.C4654a;
import com.google.android.gms.internal.location.C4658ad;
/* renamed from: com.google.android.gms.location.aj */
public final class C4709aj extends C4654a implements C4707ah {
C4709aj(IBinder iBinder) {
super(iBinder, "com.google.android.gms.location.ILocationCallback");
}
/* renamed from: a */
public final void mo16936a(LocationAvailability locationAvailability) throws RemoteException {
Parcel a = mo16905a();
C4658ad.m20188a(a, (Parcelable) locationAvailability);
mo16908b(2, a);
}
/* renamed from: a */
public final void mo16937a(LocationResult locationResult) throws RemoteException {
Parcel a = mo16905a();
C4658ad.m20188a(a, (Parcelable) locationResult);
mo16908b(1, a);
}
}
|
[
"pablo.valle.b@gmail.com"
] |
pablo.valle.b@gmail.com
|
36a0798880419e558911181f5310e5d80fa823ff
|
08345dde7830b0080ae84c0dee096053febea69d
|
/designPatternn_chan/src/main/java/b6/proxy/section7/Client.java
|
b2a6d63a0522b0193ab70bd414b6373bb0d5160b
|
[] |
no_license
|
sumnear/codeLife
|
fbf2a929fd4b829c1cdd69464b30e169a5bc7fcf
|
227a2a2480d27fd1961e62f89173216d045736b1
|
refs/heads/master
| 2022-12-23T07:36:10.508350
| 2021-06-27T13:06:34
| 2021-06-27T13:06:34
| 198,769,670
| 0
| 0
| null | 2022-12-16T05:24:26
| 2019-07-25T06:18:32
|
Java
|
UTF-8
|
Java
| false
| false
| 642
|
java
|
package b6.proxy.section7;
/**
* @author cbf4Life cbf4life@126.com
* I'm glad to share my knowledge with you all.
* 场景类
*/
public class Client {
public static void main(String[] args) {
//定义个游戏的角色
IGamePlayer player = new GamePlayer("张三");
//获得指定的代理
IGamePlayer proxy = player.getProxy();
//开始打游戏,记下时间戳
System.out.println("开始时间是:2009-8-25 10:45");
proxy.login("zhangSan", "password");
//开始杀怪
proxy.killBoss();
//升级
proxy.upgrade();
//记录结束游戏时间
System.out.println("结束时间是:2009-8-26 03:40");
}
}
|
[
"402347012@qq.com"
] |
402347012@qq.com
|
6bfcca029815d284defaf204024fd577a58ecfdc
|
96f8d42c474f8dd42ecc6811b6e555363f168d3e
|
/zuiyou/sources/com/google/protobuf/NullValue.java
|
809c41925a9c4aa35d46dd962c3e1c01950b35e5
|
[] |
no_license
|
aheadlcx/analyzeApk
|
050b261595cecc85790558a02d79739a789ae3a3
|
25cecc394dde4ed7d4971baf0e9504dcb7fabaca
|
refs/heads/master
| 2020-03-10T10:24:49.773318
| 2018-04-13T09:44:45
| 2018-04-13T09:44:45
| 129,332,351
| 6
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,074
|
java
|
package com.google.protobuf;
import com.google.protobuf.Descriptors.EnumDescriptor;
import com.google.protobuf.Descriptors.EnumValueDescriptor;
import com.google.protobuf.Internal.EnumLiteMap;
public enum NullValue implements ProtocolMessageEnum {
NULL_VALUE(0),
UNRECOGNIZED(-1);
public static final int NULL_VALUE_VALUE = 0;
private static final NullValue[] VALUES = null;
private static final EnumLiteMap<NullValue> internalValueMap = null;
private final int value;
static {
internalValueMap = new NullValue$1();
VALUES = values();
}
public final int getNumber() {
if (this != UNRECOGNIZED) {
return this.value;
}
throw new IllegalArgumentException("Can't get the number of an unknown enum value.");
}
@Deprecated
public static NullValue valueOf(int i) {
return forNumber(i);
}
public static NullValue forNumber(int i) {
switch (i) {
case 0:
return NULL_VALUE;
default:
return null;
}
}
public static EnumLiteMap<NullValue> internalGetValueMap() {
return internalValueMap;
}
public final EnumValueDescriptor getValueDescriptor() {
return (EnumValueDescriptor) getDescriptor().getValues().get(ordinal());
}
public final EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final EnumDescriptor getDescriptor() {
return (EnumDescriptor) StructProto.getDescriptor().getEnumTypes().get(0);
}
public static NullValue valueOf(EnumValueDescriptor enumValueDescriptor) {
if (enumValueDescriptor.getType() != getDescriptor()) {
throw new IllegalArgumentException("EnumValueDescriptor is not for this type.");
} else if (enumValueDescriptor.getIndex() == -1) {
return UNRECOGNIZED;
} else {
return VALUES[enumValueDescriptor.getIndex()];
}
}
private NullValue(int i) {
this.value = i;
}
}
|
[
"aheadlcxzhang@gmail.com"
] |
aheadlcxzhang@gmail.com
|
a9b282e0f1d8bbe06d38472e7589eaecb78aa74d
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/RxJava/2016/8/FlowableSkipUntil.java
|
b374e9f76e9ae5049cf8803bca2692ff3e1a817b
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 4,351
|
java
|
/**
* Copyright 2016 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
* the License for the specific language governing permissions and limitations under the License.
*/
package io.reactivex.internal.operators.flowable;
import java.util.concurrent.atomic.AtomicBoolean;
import org.reactivestreams.*;
import io.reactivex.internal.subscriptions.*;
import io.reactivex.subscribers.SerializedSubscriber;
public final class FlowableSkipUntil<T, U> extends AbstractFlowableWithUpstream<T, T> {
final Publisher<U> other;
public FlowableSkipUntil(Publisher<T> source, Publisher<U> other) {
super(source);
this.other = other;
}
@Override
protected void subscribeActual(Subscriber<? super T> child) {
final SerializedSubscriber<T> serial = new SerializedSubscriber<T>(child);
final ArrayCompositeSubscription frc = new ArrayCompositeSubscription(2);
final SkipUntilSubscriber<T> sus = new SkipUntilSubscriber<T>(serial, frc);
other.subscribe(new Subscriber<U>() {
Subscription s;
@Override
public void onSubscribe(Subscription s) {
if (SubscriptionHelper.validate(this.s, s)) {
this.s = s;
if (frc.setResource(1, s)) {
s.request(Long.MAX_VALUE);
}
}
}
@Override
public void onNext(U t) {
s.cancel();
sus.notSkipping = true;
}
@Override
public void onError(Throwable t) {
frc.dispose();
// in case the other emits an onError before the main even sets a subscription
if (sus.compareAndSet(false, true)) {
EmptySubscription.error(t, serial);
} else {
serial.onError(t);
}
}
@Override
public void onComplete() {
sus.notSkipping = true;
}
});
source.subscribe(sus);
}
static final class SkipUntilSubscriber<T> extends AtomicBoolean implements Subscriber<T>, Subscription {
/** */
private static final long serialVersionUID = -1113667257122396604L;
final Subscriber<? super T> actual;
final ArrayCompositeSubscription frc;
Subscription s;
volatile boolean notSkipping;
boolean notSkippingLocal;
public SkipUntilSubscriber(Subscriber<? super T> actual, ArrayCompositeSubscription frc) {
this.actual = actual;
this.frc = frc;
}
@Override
public void onSubscribe(Subscription s) {
if (SubscriptionHelper.validate(this.s, s)) {
this.s = s;
if (frc.setResource(0, s)) {
if (compareAndSet(false, true)) {
actual.onSubscribe(this);
}
}
}
}
@Override
public void onNext(T t) {
if (notSkippingLocal) {
actual.onNext(t);
} else
if (notSkipping) {
notSkippingLocal = true;
actual.onNext(t);
} else {
s.request(1);
}
}
@Override
public void onError(Throwable t) {
frc.dispose();
actual.onError(t);
}
@Override
public void onComplete() {
frc.dispose();
actual.onComplete();
}
@Override
public void request(long n) {
s.request(n);
}
@Override
public void cancel() {
frc.dispose();
}
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
8ceb8b6c1b1393bbb58d1140781fdbedad7faf62
|
c978fb63a883c99fc716b965ad3c1cdf9ef16160
|
/projgroup/issue.action/src/cn/topdeep/issue/action/IssueImport.java
|
debc5052f0b652148f91718dfeadeaee5457fdc7
|
[] |
no_license
|
MessageDream/project1
|
db87104a89e3cb7eaf7a5f6c10ee20cf4faf2611
|
e86aa7a97fa030c9514b90f6c936e00e5c3d9040
|
refs/heads/master
| 2020-08-25T04:00:34.591254
| 2016-09-02T11:22:05
| 2016-09-02T11:22:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 419
|
java
|
package cn.topdeep.issue.action;
import java.sql.SQLException;
import common.cache2.CacheException;
import cn.topdeep.projgroup.entity.bugtracker.DbException;
import cn.topdeep.projgroup.entity.data.IssueLoginUser;
public class IssueImport extends BaseAction{
public String imports() throws DbException, SQLException, CacheException {
issueBiz.importOldData();
return SUCCESS;
}
}
|
[
"xtian.zhuang@topdeep.com"
] |
xtian.zhuang@topdeep.com
|
f616cf2ef5760c9e4afb7774b4dc99f7463811c0
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/3/3_29b98d38f8c845fb7c4f551f8ff61f975af70df1/ClientProxyProvider/3_29b98d38f8c845fb7c4f551f8ff61f975af70df1_ClientProxyProvider_t.java
|
fa1c7242e63f5364f932b071ba62fd5c80e8ef40
|
[] |
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
| 4,902
|
java
|
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual 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.jboss.webbeans.bean.proxy;
import java.io.Serializable;
import java.lang.reflect.Type;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.concurrent.Callable;
import javassist.util.proxy.ProxyFactory;
import javax.enterprise.inject.spi.Bean;
import org.jboss.webbeans.BeanManagerImpl;
import org.jboss.webbeans.DefinitionException;
import org.jboss.webbeans.util.Proxies;
import org.jboss.webbeans.util.collections.ConcurrentCache;
/**
* A proxy pool for holding scope adaptors (client proxies)
*
* @author Nicklas Karlsson
*
* @see org.jboss.webbeans.bean.proxy.ProxyMethodHandler
*/
public class ClientProxyProvider
{
private static final long serialVersionUID = 9029999149357529341L;
/**
* A container/cache for previously created proxies
*
* @author Nicklas Karlsson
*/
private final ConcurrentCache<Bean<? extends Object>, Object> pool;
/**
* Constructor
*/
public ClientProxyProvider()
{
this.pool = new ConcurrentCache<Bean<? extends Object>, Object>();
}
/**
* Creates a Javassist scope adaptor (client proxy) for a bean
*
* Creates a Javassist proxy factory. Gets the type info. Sets the interfaces
* and superclass to the factory. Hooks in the MethodHandler and creates the
* proxy.
*
* @param bean The bean to proxy
* @param beanIndex The index to the bean in the manager bean list
* @return A Javassist proxy
* @throws InstantiationException When the proxy couldn't be created
* @throws IllegalAccessException When the proxy couldn't be created
*/
private static <T> T createClientProxy(Bean<T> bean, BeanManagerImpl manager, int beanIndex) throws RuntimeException
{
try
{
ClientProxyMethodHandler proxyMethodHandler = new ClientProxyMethodHandler(bean, manager, beanIndex);
Set<Type> classes = new LinkedHashSet<Type>(bean.getTypes());
//classes.add(ClientProxyInstance.class);
classes.add(Serializable.class);
ProxyFactory proxyFactory = Proxies.getProxyFactory(classes);
proxyFactory.setHandler(proxyMethodHandler);
Class<?> clazz = proxyFactory.createClass();
@SuppressWarnings("unchecked")
T instance = (T) clazz.newInstance();
return instance;
}
catch (InstantiationException e)
{
throw new RuntimeException("Could not instantiate client proxy for " + bean, e);
}
catch (IllegalAccessException e)
{
throw new RuntimeException("Could not access bean correctly when creating client proxy for " + bean, e);
}
}
/**
* Gets a client proxy for a bean
*
* Looks for a proxy in the pool. If not found, one is created and added to
* the pool if the create argument is true.
*
* @param bean The bean to get a proxy to
* @return the client proxy for the bean
*/
public <T> T getClientProxy(final BeanManagerImpl manager, final Bean<T> bean)
{
T instance = pool.putIfAbsent(bean, new Callable<T>()
{
public T call() throws Exception
{
int beanIndex = manager.getBeans().indexOf(bean);
if (beanIndex < 0)
{
throw new DefinitionException(bean + " is not known to the manager");
}
return createClientProxy(bean, manager, beanIndex);
}
});
// TODO Break circular injection. Can we somehow support both?
//((ClientProxyInstance) instance).touch(Marker.INSTANCE);
return instance;
}
/**
* Gets a string representation
*
* @return The string representation
*/
@Override
public String toString()
{
return "Proxy pool with " + pool.size() + " proxies";
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
87f05f67948482511616438e2d613baf9bae1959
|
13e443a64c99bf0028db2eb27224eb6406f6c1c2
|
/src/main/java/net/minecraft/resources/data/PackMetadataSectionSerializer.java
|
7c0b6bdd0b7c38e550e4df2d39aa32e3919874e9
|
[] |
no_license
|
NicholasBlackburn1/Robo_Hacker
|
5a779679d643250676c1c075d6697b10e8a7a9c5
|
02506e742d30df6a255ba63b240773a08c40bd74
|
refs/heads/main
| 2023-06-19T14:37:19.499548
| 2021-05-10T15:08:28
| 2021-05-10T15:08:28
| 353,691,155
| 2
| 2
| null | 2021-04-02T14:16:50
| 2021-04-01T12:23:15
|
Java
|
UTF-8
|
Java
| false
| false
| 958
|
java
|
package net.minecraft.resources.data;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import net.minecraft.util.JSONUtils;
import net.minecraft.util.text.ITextComponent;
public class PackMetadataSectionSerializer implements IMetadataSectionSerializer<PackMetadataSection>
{
public PackMetadataSection deserialize(JsonObject json)
{
ITextComponent itextcomponent = ITextComponent.Serializer.getComponentFromJson(json.get("description"));
if (itextcomponent == null)
{
throw new JsonParseException("Invalid/missing description!");
}
else
{
int i = JSONUtils.getInt(json, "pack_format");
return new PackMetadataSection(itextcomponent, i);
}
}
/**
* The name of this section type as it appears in JSON.
*/
public String getSectionName()
{
return "pack";
}
}
|
[
"nickblackburn02@gmail.com"
] |
nickblackburn02@gmail.com
|
9b6949dc385f0efe529c04fff672245dfa5b6eaa
|
15783e25206e6b14cdd2217dcc01e5914134cb5d
|
/app/src/main/java/com/wyw/jiangsu/adapter/ZaiqianQueryAdapter.java
|
8ff1f9121af52cee4cfa3558b2f3eb9d6a25d2a0
|
[] |
no_license
|
993739033/JiangSu
|
7e1e0f2a457ea8e88629e716b8201f936c191bdb
|
d4b9524c06a103848631036d568c5577b70cad1a
|
refs/heads/master
| 2020-06-12T10:59:46.695256
| 2019-06-28T13:19:04
| 2019-06-28T13:19:04
| 194,276,952
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,444
|
java
|
package com.wyw.jiangsu.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.wyw.jiangsu.R;
import com.wyw.jiangsu.bean.ZaiqianCheckQueryBean;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Administrator on 2017/4/19.
*/
public class ZaiqianQueryAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
private List<ZaiqianCheckQueryBean.DataListBean> list = new ArrayList<>();
private Context context;
private LayoutInflater mLayoutInflater;
View headerView;
//建立枚举,2个item类型
public enum ITEM_TYPE {
ITEM_HEAD,
ITEM_LISTVIEM
}
public ZaiqianQueryAdapter(Context context, List<ZaiqianCheckQueryBean.DataListBean> list, View headerView) {
this.context = context;
this.headerView = headerView;
this.list = list;
mLayoutInflater = LayoutInflater.from(context);
}
public void clear() {
list.clear();
notifyDataSetChanged();
}
public List<ZaiqianCheckQueryBean.DataListBean> getDates() {
return list;
}
public void setmDatas(List<ZaiqianCheckQueryBean.DataListBean> list) {
if (this.list == null) {
this.list = list;
} else {
this.list.clear();
this.list.addAll(list);
}
notifyDataSetChanged();
}
public void addAll(List<ZaiqianCheckQueryBean.DataListBean> list) {
if (this.list == null) {
this.list = list;
} else {
this.list.addAll(list);
}
notifyDataSetChanged();
}
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
if (viewType == ITEM_TYPE.ITEM_HEAD.ordinal()) {
return new HeadViewHolder(headerView);
} else {
return new ListviewViewHolder(mLayoutInflater.inflate(R.layout.zaiqian_query_adapter, parent, false));
}
}
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
if (holder instanceof ListviewViewHolder) {
((ListviewViewHolder) holder).tvTuZaiBianhao.setText(list.get(position - 1).getTZJYBH());
((ListviewViewHolder) holder).tvTuZaiShijian.setText(list.get(position - 1).getFDate());
((ListviewViewHolder) holder).tvShenbaoBianhao.setText(list.get(position - 1).getSBDBH());
((ListviewViewHolder) holder).tvCheckNumber.setText(list.get(position - 1).getJCSL());
((ListviewViewHolder) holder).tvJianyiPeople.setText(list.get(position - 1).getJYRY());
((ListviewViewHolder) holder).tvJiluPeople.setText(list.get(position - 1).getJLRY());
}
}
//设置ITEM类型,可以自由发挥,这里设置item 0单数显示head item 其他显示listview item
@Override
public int getItemViewType(int position) {
if (position == 0) {
return ITEM_TYPE.ITEM_HEAD.ordinal();
} else {
return ITEM_TYPE.ITEM_LISTVIEM.ordinal();
}
}
@Override
public int getItemCount() {
if (list == null || list.size() == 0) {
return 1;
}
return list.size() + 1;
}
private class ListviewViewHolder extends RecyclerView.ViewHolder {
private TextView tvTuZaiBianhao;
private TextView tvTuZaiShijian;
private TextView tvShenbaoBianhao;
private TextView tvCheckNumber;
private TextView tvJianyiPeople;
private TextView tvJiluPeople;
private ListviewViewHolder(View view) {
super(view);
tvTuZaiBianhao = (TextView) view.findViewById(R.id.tv_tuzai_bianhao);
tvTuZaiShijian = (TextView) view.findViewById(R.id.tv_tuzai_shijian);
tvShenbaoBianhao = (TextView) view.findViewById(R.id.tv_shenbao_bianhao);
tvCheckNumber = (TextView) view.findViewById(R.id.tv_check_number);
tvJianyiPeople = (TextView) view.findViewById(R.id.tv_jianyi_people);
tvJiluPeople = (TextView) view.findViewById(R.id.tv_jilu_people);
}
}
private class HeadViewHolder extends RecyclerView.ViewHolder {
private HeadViewHolder(View view) {
super(view);
}
}
}
|
[
"993739033@qq.com"
] |
993739033@qq.com
|
c6ec91f866c5a6e9a37a4f00f1b397b102c6666f
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.minihd.qq/assets/exlibs.2.jar/classes.jar/gzk.java
|
8ca5eb5657e10da169b04b46df2cb4845e8b2426
|
[] |
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
| 947
|
java
|
import android.view.ViewTreeObserver;
import android.view.ViewTreeObserver.OnGlobalLayoutListener;
import android.widget.ImageView;
import com.tencent.mobileqq.activity.shortvideo.ShortVideoPreviewActivity;
import com.tencent.mobileqq.shortvideo.ShortVideoUtils;
public class gzk
implements ViewTreeObserver.OnGlobalLayoutListener
{
public gzk(ShortVideoPreviewActivity paramShortVideoPreviewActivity) {}
public void onGlobalLayout()
{
ShortVideoPreviewActivity.a(this.a, ShortVideoUtils.a(this.a, ShortVideoPreviewActivity.a(this.a)));
ShortVideoPreviewActivity.a(this.a).setImageBitmap(ShortVideoPreviewActivity.a(this.a));
ShortVideoPreviewActivity.a(this.a).getViewTreeObserver().removeGlobalOnLayoutListener(this);
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.minihd.qq\assets\exlibs.2.jar\classes.jar
* Qualified Name: gzk
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
7c1940224fba9e454bba0ac15da5e6e5de8b792f
|
ed49254b278b48473c9bdf1c3e70ef8010e83cf7
|
/BayesBaseNew/src/edu/cmuO/tetradapp/model/PcdRunner2.java
|
907b1da8834a4603728e8ad7865915f0a8c5e201
|
[] |
no_license
|
sfu-cl-lab/exception-mining
|
5ac1e70a9a527d4129d77df66e536c287e5b4e25
|
7b80481f7d906a49db99901adb4059b273ac6af6
|
refs/heads/master
| 2021-05-31T22:36:21.973306
| 2016-05-15T22:05:14
| 2016-05-15T22:05:14
| 58,755,606
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,483
|
java
|
///////////////////////////////////////////////////////////////////////////////
// For information as to what this class does, see the Javadoc, below. //
// Copyright (C) 2005 by Peter Spirtes, Richard Scheines, Joseph Ramsey, //
// and Clark Glymour. //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program; if not, write to the Free Software //
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
///////////////////////////////////////////////////////////////////////////////
package edu.cmu.tetradapp.model;
import edu.cmu.tetrad.data.Knowledge;
import edu.cmu.tetrad.graph.Dag;
import edu.cmu.tetrad.graph.Graph;
import edu.cmu.tetrad.search.IndTestType;
import edu.cmu.tetrad.search.IndependenceTest;
import edu.cmu.tetrad.search.PcdSearch;
import edu.cmu.tetrad.search.SearchGraphUtils;
/**
* Extends AbstractAlgorithmRunner to produce a wrapper for the PC algorithm.
*
* @author Joseph Ramsey
* @version $Revision: 5940 $ $Date: 2006-01-20 13:34:55 -0500 (Fri, 20 Jan
* 2006) $
*/
public class PcdRunner2 extends AbstractAlgorithmRunner
implements IndTestProducer, GraphSource {
static final long serialVersionUID = 23L;
//============================CONSTRUCTORS============================//
/**
* Constructs a wrapper for the given DataWrapper. The DataWrapper must
* contain a DataSet that is either a DataSet or a DataSet or a DataList
* containing either a DataSet or a DataSet as its selected model.
*/
public PcdRunner2(DataWrapper dataWrapper, PcSearchParams params) {
super(dataWrapper, params);
}
/**
* Constucts a wrapper for the given EdgeListGraph.
*/
public PcdRunner2(Graph graph, PcSearchParams params) {
super(graph, params);
}
/**
* Constucts a wrapper for the given EdgeListGraph.
*/
public PcdRunner2(GraphWrapper graphWrapper, PcSearchParams params) {
super(graphWrapper.getGraph(), params);
}
public PcdRunner2(DagWrapper dagWrapper, BasicSearchParams params) {
super(dagWrapper.getDag(), params);
}
public PcdRunner2(SemGraphWrapper dagWrapper, BasicSearchParams params) {
super(dagWrapper.getGraph(), params);
}
/**
* Generates a simple exemplar of this class to test serialization.
*
* @see edu.cmu.TestSerialization
* @see edu.cmu.tetradapp.util.TetradSerializableUtils
*/
public static PcdRunner serializableInstance() {
return new PcdRunner(Dag.serializableInstance(),
PcSearchParams.serializableInstance());
}
//===================PUBLIC METHODS OVERRIDING ABSTRACT================//
/**
* Executes the algorithm, producing (at least) a result workbench. Must be
* implemented in the extending class.
*/
// public void execute() {
// Knowledge knowledge = getParams().getKnowledge();
// IndependenceTest independenceTest = getIndependenceTest();
// PcdSearch pcdSearch = new PcdSearch(independenceTest, knowledge);
// pcdSearch.setDepth(getParams().getIndTestParams().getDepth());
// Graph resultGraph = pcdSearch.search();
//
// if (knowledge.isDefaultToKnowledgeLayout()) {
// SearchGraphUtils.arrangeByKnowledgeTiers(resultGraph, knowledge);
// }
//
// setResultGraph(resultGraph);
// }
@Override
public void execute() {
Knowledge knowledge = getParams().getKnowledge();
PcSearchParams searchParams = (PcSearchParams) getParams();
PcIndTestParams indTestParams =
(PcIndTestParams) searchParams.getIndTestParams();
PcdSearch pcSearch = new PcdSearch(getIndependenceTest(), knowledge);
pcSearch.setDepth(indTestParams.getDepth());
Graph graph = pcSearch.search();
if (knowledge.isDefaultToKnowledgeLayout()) {
SearchGraphUtils.arrangeByKnowledgeTiers(graph, knowledge);
}
setResultGraph(graph);
}
@Override
public IndependenceTest getIndependenceTest() {
Object dataModel = getDataSet();
if (dataModel == null) {
dataModel = getSourceGraph();
}
SearchParams params = getParams();
IndTestType testType = params.getIndTestType();
return new IndTestFactory().getTest(dataModel, getParams(), testType);
}
@Override
public Graph getGraph() {
return getResultGraph();
}
}
|
[
"sriahi@sfu.ca"
] |
sriahi@sfu.ca
|
d1b92fc6f6ab137294c965617af7236b78346f72
|
3cd75211c29d1a4f7e35d23beb68349f903c7067
|
/YilidiProject/android/Yilidi_Android/buyer/src/main/java/org/apache/cordova/customer/OperationPlugin.java
|
42625eee6e1b611c11dddc0e5f431079b5ed5a23
|
[] |
no_license
|
aszkj/MyProject
|
24f6e5f8febbebf2260fd6f1572921ecec03f643
|
26d4ea640a7ed8d13c900749988ce2ee0ef9cefb
|
refs/heads/master
| 2021-01-20T12:28:00.083434
| 2017-05-06T21:38:07
| 2017-05-06T21:38:07
| 90,360,785
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,408
|
java
|
package org.apache.cordova.customer;
import android.os.Message;
import com.yldbkd.www.buyer.android.activity.H5CordovaActivity;
import com.yldbkd.www.buyer.android.utils.Constants;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.json.JSONArray;
import org.json.JSONException;
/**
* cordova操作
* <p/>
* Created by lizhg on 16/12/10.
*/
public class OperationPlugin extends CordovaPlugin {
@Override
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
if (Constants.CordovaPlugin.OPERATIONBACK.equals(action)) {
H5CordovaActivity activity = (H5CordovaActivity) this.cordova.getActivity();
if (activity == null) {
return false;
}
Message message = new Message();
message.what = Constants.HandlerCode.CORDOVA_BACK;
activity.getSharePluginHandler().sendMessage(message);
return true;
}
if (Constants.CordovaPlugin.OPERATIONTOCARTPAGE.equals(action)) {
H5CordovaActivity activity = (H5CordovaActivity) this.cordova.getActivity();
if (activity == null) {
return false;
}
Message message = new Message();
message.what = Constants.HandlerCode.CORDOVA_TO_CART_PAGE;
activity.getSharePluginHandler().sendMessage(message);
return true;
}
if (Constants.CordovaPlugin.OPERATIONTOLOGINPAGE.equals(action)) {
H5CordovaActivity activity = (H5CordovaActivity) this.cordova.getActivity();
if (activity == null) {
return false;
}
Message message = new Message();
message.what = Constants.HandlerCode.CORDOVA_TO_LOGIN_PAGE;
activity.getSharePluginHandler().sendMessage(message);
return true;
}
if (Constants.CordovaPlugin.OPERATIONTOORDERLISTPAGE.equals(action)) {
H5CordovaActivity activity = (H5CordovaActivity) this.cordova.getActivity();
if (activity == null) {
return false;
}
Message message = new Message();
message.what = Constants.HandlerCode.CORDOVA_TO_ORDER_LIST_PAGE;
activity.getSharePluginHandler().sendMessage(message);
return true;
}
if (Constants.CordovaPlugin.OPERATIONTOORDERDETAILPAGE.equals(action)) {
H5CordovaActivity activity = (H5CordovaActivity) this.cordova.getActivity();
if (activity == null) {
return false;
}
Message message = new Message();
message.what = Constants.HandlerCode.CORDOVA_TO_ORDER_DETAIL_PAGE;
message.obj = args.getString(0);
activity.getSharePluginHandler().sendMessage(message);
return true;
}
if (Constants.CordovaPlugin.OPERATIONTOCLASSPAGE.equals(action)) {
H5CordovaActivity activity = (H5CordovaActivity) this.cordova.getActivity();
if (activity == null) {
return false;
}
Message message = new Message();
message.what = Constants.HandlerCode.CORDOVA_TO_CLASS_PAGE;
activity.getSharePluginHandler().sendMessage(message);
return true;
}
if (Constants.CordovaPlugin.OPERATIONTOBRANDPAGE.equals(action)) {
H5CordovaActivity activity = (H5CordovaActivity) this.cordova.getActivity();
if (activity == null) {
return false;
}
Message message = new Message();
message.what = Constants.HandlerCode.CORDOVA_TO_BRAND_PAGE;
activity.getSharePluginHandler().sendMessage(message);
return true;
}
if (Constants.CordovaPlugin.OPERATIONTOREDIRECTPAGE.equals(action)) {
H5CordovaActivity activity = (H5CordovaActivity) this.cordova.getActivity();
if (activity == null) {
return false;
}
Message message = new Message();
message.what = Constants.HandlerCode.CORDOVA_TO_REDIRECTPAGE;
message.obj = args.getString(0);
activity.getSharePluginHandler().sendMessage(message);
return true;
}
return false;
}
}
|
[
"mm@mmdeMac-mini.local"
] |
mm@mmdeMac-mini.local
|
eae61e3a2b9ce0d69d28225439eccf76e9445783
|
4a35d606897ed86e607aaaa2bee927b989db3149
|
/14.03.2019/14.03.2019/12..03.2019/09.03.2019/hotelbooking/src/main/java/com/jubayir/hotelbooking/controller/homeController.java
|
724dc8a796172f11dbd75af0225a63d749ff84ba
|
[] |
no_license
|
jubayirhossain4448/Spring
|
578c6ef6b082508a446a527a2c2c8ef47fd35683
|
c1d17456745f82b7a7dc0f314572a7b74e6981ac
|
refs/heads/master
| 2020-04-20T21:44:22.514254
| 2019-03-28T04:02:22
| 2019-03-28T04:02:22
| 169,117,943
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 788
|
java
|
package com.jubayir.hotelbooking.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class homeController {
@GetMapping(value = "/")
public String display(){
return "dashboard";
}
@GetMapping(value = "/about")
public String about(){
return "about";
}
@GetMapping(value = "/post")
public String post(){
return "quickpost";
}
@GetMapping(value = "/loginF")
public String login(){
return "loginF";
}
// @GetMapping(value = "/login")
// public String loginView(){
// return "login";
// }
//
// @GetMapping(value = "/userlist")
// public String userList(){
// return "userlist";
// }
}
|
[
"jubayirhossain4448@gmail.com"
] |
jubayirhossain4448@gmail.com
|
c6c1ed54f356939b3a936d28c9519549a5ecdbc5
|
4aa90348abcb2119011728dc067afd501f275374
|
/app/src/main/java/com/tencent/mm/plugin/wxcredit/ui/WalletWXCreditErrDetailUI.java
|
868c392b3857719cef6f88e7124d4091902d33b9
|
[] |
no_license
|
jambestwick/HackWechat
|
0d4ceb2d79ccddb45004ca667e9a6a984a80f0f6
|
6a34899c8bfd50d19e5a5ec36a58218598172a6b
|
refs/heads/master
| 2022-01-27T12:48:43.446804
| 2021-12-29T10:36:30
| 2021-12-29T10:36:30
| 249,366,791
| 0
| 0
| null | 2020-03-23T07:48:32
| 2020-03-23T07:48:32
| null |
UTF-8
|
Java
| false
| false
| 1,336
|
java
|
package com.tencent.mm.plugin.wxcredit.ui;
import android.os.Bundle;
import android.widget.TextView;
import com.tencent.mm.ae.k;
import com.tencent.mm.plugin.wallet_core.model.Bankcard;
import com.tencent.mm.plugin.wxpay.a.f;
import com.tencent.mm.plugin.wxpay.a.g;
import com.tencent.mm.plugin.wxpay.a.i;
import com.tencent.mm.wallet_core.ui.WalletBaseUI;
public class WalletWXCreditErrDetailUI extends WalletBaseUI {
private Bankcard sAg;
private String uaf;
private TextView uag;
private TextView uah;
protected final int getLayoutId() {
return g.uGf;
}
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setMMTitle(i.uPI);
initView();
}
protected final void initView() {
this.sAg = (Bankcard) this.vf.getParcelable("key_bankcard");
this.uaf = this.vf.getString("key_repayment_url");
if (this.sAg != null) {
this.uag = (TextView) findViewById(f.uxX);
this.uag.setOnClickListener(new 1(this));
this.uah = (TextView) findViewById(f.uxY);
this.uah.setOnClickListener(new 2(this));
this.uah.setVisibility(this.vf.getBoolean("key_can_unbind", true) ? 0 : 8);
}
}
public final boolean d(int i, int i2, String str, k kVar) {
return false;
}
}
|
[
"malin.myemail@163.com"
] |
malin.myemail@163.com
|
1066abceba81fdea54d17c56b85ad87c78068c24
|
3989547e6cbce83a6a59a04fb1cf021fe5c32adf
|
/esql-frontend/src/main/java/com/exxeta/iss/sonar/esql/tree/impl/function/OverlayFunctionTreeImpl.java
|
806141a58826592d570d233b38a10cc5b5f80c7c
|
[
"Apache-2.0"
] |
permissive
|
mresetar/sonar-esql-plugin
|
2294b2e7967acde7343e27619b466788e5c8e74c
|
516a7cd5a58564f8422ed445c8242d69bae53d8c
|
refs/heads/master
| 2021-05-14T06:20:30.343034
| 2018-01-04T08:28:52
| 2018-01-04T08:28:52
| 116,235,798
| 1
| 0
| null | 2018-01-04T08:38:02
| 2018-01-04T08:38:02
| null |
UTF-8
|
Java
| false
| false
| 4,457
|
java
|
/*
* Sonar ESQL Plugin
* Copyright (C) 2013-2018 Thomas Pohl and EXXETA AG
* http://www.exxeta.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.
*/
package com.exxeta.iss.sonar.esql.tree.impl.function;
import java.util.Iterator;
import com.google.common.collect.Iterators;
import com.exxeta.iss.sonar.esql.api.tree.Tree;
import com.exxeta.iss.sonar.esql.api.tree.expression.ExpressionTree;
import com.exxeta.iss.sonar.esql.api.tree.function.OverlayFunctionTree;
import com.exxeta.iss.sonar.esql.api.visitors.DoubleDispatchVisitor;
import com.exxeta.iss.sonar.esql.tree.impl.EsqlTree;
import com.exxeta.iss.sonar.esql.tree.impl.lexical.InternalSyntaxToken;
public class OverlayFunctionTreeImpl extends EsqlTree implements OverlayFunctionTree {
private InternalSyntaxToken overlayKeyword;
private InternalSyntaxToken openingParenthesis;
private ExpressionTree sourceString;
private InternalSyntaxToken placingKeyword;
private ExpressionTree sourceString2;
private InternalSyntaxToken fromKeyword;
private ExpressionTree startPosition;
private InternalSyntaxToken forKeyword;
private ExpressionTree stringLength;
private InternalSyntaxToken closingParenthesis;
public OverlayFunctionTreeImpl(InternalSyntaxToken overlayKeyword, InternalSyntaxToken openingParenthesis,
ExpressionTree sourceString, InternalSyntaxToken placingKeyword, ExpressionTree sourceString2,
InternalSyntaxToken fromKeyword, ExpressionTree startPosition, InternalSyntaxToken forKeyword,
ExpressionTree stringLength, InternalSyntaxToken closingParenthesis) {
super();
this.overlayKeyword = overlayKeyword;
this.openingParenthesis = openingParenthesis;
this.sourceString = sourceString;
this.placingKeyword = placingKeyword;
this.sourceString2 = sourceString2;
this.fromKeyword = fromKeyword;
this.startPosition = startPosition;
this.forKeyword = forKeyword;
this.stringLength = stringLength;
this.closingParenthesis = closingParenthesis;
}
public OverlayFunctionTreeImpl(InternalSyntaxToken overlayKeyword, InternalSyntaxToken openingParenthesis,
ExpressionTree sourceString, InternalSyntaxToken placingKeyword, ExpressionTree sourceString2,
InternalSyntaxToken fromKeyword, ExpressionTree startPosition, InternalSyntaxToken closingParenthesis) {
super();
this.overlayKeyword = overlayKeyword;
this.openingParenthesis = openingParenthesis;
this.sourceString = sourceString;
this.placingKeyword = placingKeyword;
this.sourceString2 = sourceString2;
this.fromKeyword = fromKeyword;
this.startPosition = startPosition;
this.forKeyword = null;
this.stringLength = null;
this.closingParenthesis = closingParenthesis;
}
@Override
public InternalSyntaxToken overlayKeyword() {
return overlayKeyword;
}
@Override
public InternalSyntaxToken openingParenthesis() {
return openingParenthesis;
}
@Override
public ExpressionTree sourceString() {
return sourceString;
}
@Override
public InternalSyntaxToken placingKeyword() {
return placingKeyword;
}
@Override
public ExpressionTree sourceString2() {
return sourceString2;
}
@Override
public InternalSyntaxToken fromKeyword() {
return fromKeyword;
}
@Override
public ExpressionTree startPosition() {
return startPosition;
}
@Override
public InternalSyntaxToken forKeyword() {
return forKeyword;
}
@Override
public ExpressionTree stringLength() {
return stringLength;
}
@Override
public InternalSyntaxToken closingParenthesis() {
return closingParenthesis;
}
@Override
public void accept(DoubleDispatchVisitor visitor) {
visitor.visitOverlayFunction(this);
}
@Override
public Kind getKind() {
return Kind.OVERLAY_FUNCTION;
}
@Override
public Iterator<Tree> childrenIterator() {
return Iterators.forArray(overlayKeyword, openingParenthesis,
sourceString, placingKeyword, sourceString2,
fromKeyword, startPosition,
forKeyword, stringLength, closingParenthesis);
}
}
|
[
"thomas.pohl@exxeta.de"
] |
thomas.pohl@exxeta.de
|
3e6b51406b01443990a88b8e7b78bc86775b913d
|
fa1408365e2e3f372aa61e7d1e5ea5afcd652199
|
/src/testcases/CWE80_XSS/s02/CWE80_XSS__Servlet_URLConnection_67b.java
|
e1516402d02169f83842b0628a40a8076a775abf
|
[] |
no_license
|
bqcuong/Juliet-Test-Case
|
31e9c89c27bf54a07b7ba547eddd029287b2e191
|
e770f1c3969be76fdba5d7760e036f9ba060957d
|
refs/heads/master
| 2020-07-17T14:51:49.610703
| 2019-09-03T16:22:58
| 2019-09-03T16:22:58
| 206,039,578
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,703
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE80_XSS__Servlet_URLConnection_67b.java
Label Definition File: CWE80_XSS__Servlet.label.xml
Template File: sources-sink-67b.tmpl.java
*/
/*
* @description
* CWE: 80 Cross Site Scripting (XSS)
* BadSource: URLConnection Read data from a web server with URLConnection
* GoodSource: A hardcoded string
* Sinks:
* BadSink : Display of data in web page without any encoding or validation
* Flow Variant: 67 Data flow: data passed in a class from one method to another in different source files in the same package
*
* */
package testcases.CWE80_XSS.s02;
import testcasesupport.*;
import javax.servlet.http.*;
public class CWE80_XSS__Servlet_URLConnection_67b
{
public void badSink(CWE80_XSS__Servlet_URLConnection_67a.Container dataContainer , HttpServletRequest request, HttpServletResponse response) throws Throwable
{
String data = dataContainer.containerOne;
if (data != null)
{
/* POTENTIAL FLAW: Display of data in web page without any encoding or validation */
response.getWriter().println("<br>bad(): data = " + data);
}
}
/* goodG2B() - use goodsource and badsink */
public void goodG2BSink(CWE80_XSS__Servlet_URLConnection_67a.Container dataContainer , HttpServletRequest request, HttpServletResponse response) throws Throwable
{
String data = dataContainer.containerOne;
if (data != null)
{
/* POTENTIAL FLAW: Display of data in web page without any encoding or validation */
response.getWriter().println("<br>bad(): data = " + data);
}
}
}
|
[
"bqcuong2212@gmail.com"
] |
bqcuong2212@gmail.com
|
1c6d547d9901ae5c856df8b52846620bad43fd63
|
6ca93af58a6bc9e41d6d753240345ab78dce4daf
|
/org.dbdoclet.tidbit.common/src/main/java/org/dbdoclet/tidbit/common/TidbitExceptionHandler.java
|
39d5a7f7d67eb067aa813f92b1b9eca04043b591
|
[] |
no_license
|
mfuchs23/dodo
|
a33a319c1701c7e94f0ef0cd04fe3a5dc589afb0
|
e47eb2ea463db021302248ea0dc17ff367e96880
|
refs/heads/master
| 2021-01-20T01:59:04.343254
| 2015-05-28T06:52:37
| 2015-05-28T06:52:37
| 37,484,721
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,180
|
java
|
package org.dbdoclet.tidbit.common;
import java.awt.Frame;
import java.io.FileNotFoundException;
import java.text.MessageFormat;
import java.util.ResourceBundle;
import org.dbdoclet.jive.dialog.ErrorBox;
import org.dbdoclet.jive.dialog.ExceptionBox;
import org.dbdoclet.service.ResourceServices;
public class TidbitExceptionHandler {
public static void handleException(Context context, Throwable oops) {
Frame dialogOwner = null;
if (context != null) {
dialogOwner = context.getDialogOwner();
}
handleException(dialogOwner, oops);
}
public static void handleException(Frame dialogOwner, Throwable oops) {
ResourceBundle res = StaticContext.getResourceBundle();
if (oops instanceof FileNotFoundException) {
String msg = MessageFormat.format(
res.getString("C_ERROR_FILE_DOESNT_EXIST"),
oops.getMessage());
ErrorBox.show(dialogOwner,
ResourceServices.getString(res, "C_ERROR"), msg);
return;
}
ExceptionBox ebox = new ExceptionBox(dialogOwner, oops);
ebox.toFront();
ebox.setVisible(true);
}
public static void handleException(Throwable oops) {
Frame dialogOwner = null;
handleException(dialogOwner, oops);
}
}
|
[
"michael.fuchs@dbdoclet.org"
] |
michael.fuchs@dbdoclet.org
|
e65834a73f2f71e640a0afc2c6da79994246c23b
|
e47bd40e61a7754143df185e6ef877dc56274bde
|
/app/src/main/java/com/ping/terminal/SendPictureOrder.java
|
f2b3722aef814e6cf45b05dd9c0a3fd78ad05dbc
|
[] |
no_license
|
MrSorrow/Terminal
|
acc802a9d62d74b03a44e419e3da8f8093bb6855
|
dec1d0fd7783fa1e808036ff033dc58532a6272b
|
refs/heads/master
| 2021-01-12T07:09:45.232194
| 2016-12-20T05:53:11
| 2016-12-20T05:53:14
| 76,921,291
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,464
|
java
|
package com.ping.terminal;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import java.io.FileInputStream;
import java.io.FileOutputStream;
/**
* 接收图片界面。
* Created by Mr.sorrow on 2016/10/12.
*/
public class SendPictureOrder extends Activity{
private ImageView imageView;
private Bitmap bitmap;
private String FILE_NAME = "rec.jpg";
private String content;
private boolean stopThread = false;
private boolean isFirstRec = true;
private int count = 0;
private TextView tv_recCheck;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_picture);
content = "";
bitmap = null;
imageView = (ImageView) findViewById(R.id.iv_picture);
tv_recCheck = (TextView) findViewById(R.id.tv_recCheck);
new Thread(new Runnable() {
@Override
public void run() {
while(!stopThread) {
byte[] buffer = new byte[1024];
BluetoothManager bluetoothManager = BluetoothManager.getManager();
int bytes = bluetoothManager.receiveData(buffer);
if (bytes > 0) {
byte[] buf_data = new byte[bytes];
for (int i = 0; i < bytes; i++) {
buf_data[i] = buffer[i];
}
String s = "";
s = MessageUtil.byte2StringNoSpace(buf_data);
content = content + s;
}
}
}
}).start();
}
public void read(View view){
if(content.equals(""))
{
Toast.makeText(SendPictureOrder.this,"未接收到数据,请尝试重发!",Toast.LENGTH_SHORT).show();
}else {
count ++;
if(count > 1){
isFirstRec = false;
}
if(isFirstRec){
content = "";
mHandler.sendEmptyMessage(1);
Button button = (Button)view;
button.setText("接收");
}else{
write(SendPictureOrder.this, content);
bitmap = readJpg(SendPictureOrder.this);
imageView.setImageBitmap(bitmap);
}
}
}
public void clearFile(View view){
content = "";
Toast.makeText(SendPictureOrder.this,"已清除!",Toast.LENGTH_SHORT).show();
}
@Override
protected void onDestroy() {
stopThread = true;
super.onDestroy();
}
private Handler mHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
// TODO Auto-generated method stub
switch (msg.what) {
case 1:
tv_recCheck.setText("握手校验成功,请继续发送...");
break;
default:
break;
}
}
};
private void write(Context context,String src){
FileOutputStream out = null;
try {
out = context.openFileOutput(FILE_NAME, Context.MODE_PRIVATE);
byte[] bytes = src.getBytes();
for (int i = 0; i < bytes.length; i += 2)
{
out.write(MessageUtil.charToInt(bytes[i]) * 16 + MessageUtil.charToInt(bytes[i + 1]));
}
} catch (Exception e) {
e.printStackTrace();
}
finally{
try {
out.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}
private Bitmap readJpg(Context context){
FileInputStream in = null;
try {
in = context.openFileInput(FILE_NAME); //获得输入流
Bitmap bitmap = BitmapFactory.decodeStream(in);
return bitmap;
} catch (Exception e) {
e.printStackTrace();
}
try{
in.close();
}
catch(Exception e){}
return null;
}
}
|
[
"Kingdompin@163.com"
] |
Kingdompin@163.com
|
8807953ee6a2f5a4de9f9283b0556164334990cd
|
92113121884930d2388a0e743ff06a5bf0569dc7
|
/src/main/java/com/jifenke/lepluslive/activity/service/ActivityCodeBurseService.java
|
ad0ba75aa745ceb9c579d7fc97c6b5e567fe2a30
|
[] |
no_license
|
tqy115992/lepluslife
|
12114193fc6c6fbb2b7e3ca33c1ea100199b800a
|
543e9455b886d38545442312f397989fbbd38dfb
|
refs/heads/master
| 2020-06-11T09:41:59.080567
| 2017-02-17T10:23:08
| 2017-02-17T10:23:08
| 77,131,968
| 0
| 0
| null | 2016-12-22T09:35:46
| 2016-12-22T09:35:46
| null |
UTF-8
|
Java
| false
| false
| 2,734
|
java
|
package com.jifenke.lepluslive.activity.service;
import com.jifenke.lepluslive.activity.domain.entities.ActivityCodeBurse;
import com.jifenke.lepluslive.activity.repository.ActivityCodeBurseRepository;
import com.jifenke.lepluslive.weixin.service.WeiXinService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import javax.inject.Inject;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
/**
* Created by wcg on 16/3/17.
*/
@Service
@Transactional(readOnly = true)
public class ActivityCodeBurseService {
@Inject
private ActivityCodeBurseRepository activityCodeBurseRepository;
@Inject
private WeiXinService weiXinService;
@Value("${bucket.ossBarCodeReadRoot}")
private String barCodeRootUrl;
@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public void saveActivityCodeBurse(ActivityCodeBurse codeBurse) {
activityCodeBurseRepository.save(codeBurse);
}
@Transactional(propagation = Propagation.REQUIRED, readOnly = true)
public Page findByPage(Integer offset, Integer limit) {
Sort sort = new Sort(Sort.Direction.DESC, "createDate");
return activityCodeBurseRepository.findAll(getWhereClause(),
new PageRequest(offset - 1, limit, sort));
}
public Specification<ActivityCodeBurse> getWhereClause() {
return new Specification<ActivityCodeBurse>() {
@Override
public Predicate toPredicate(Root<ActivityCodeBurse> r, CriteriaQuery<?> q,
CriteriaBuilder cb) {
Predicate predicate = cb.conjunction();
predicate.getExpressions().add(
cb.equal(r.get("type"), 1));
return predicate;
}
};
}
@Transactional(propagation = Propagation.REQUIRED, readOnly = true)
public ActivityCodeBurse findCodeBurseById(Long id) {
return activityCodeBurseRepository.findOne(id);
}
@Transactional(propagation = Propagation.REQUIRED, readOnly = true)
public ActivityCodeBurse findCodeBurseByTicket(String ticket) {
List<ActivityCodeBurse> list = activityCodeBurseRepository.findByTicket(ticket);
if (list.size() > 0) {
return list.get(0);
}
return null;
}
}
|
[
"zhangwenit@126.com"
] |
zhangwenit@126.com
|
d88373e166533f633202df7ce95af88050db4323
|
9db64117266ad2ee593ef28471826ffda26a4238
|
/rsps/location-service/src/main/java/com/izhuixin/rsps/service/feign/FeignService.java
|
0325ff3a4ff69d13d0eb176463a9c67fd277b353
|
[] |
no_license
|
CHUNBOZHAO/rsps
|
6152bc51490c675d0fe665abbef24418d6306910
|
25e5b7b7a0f7763dd480925c5cf051176d4259a1
|
refs/heads/master
| 2020-03-28T14:20:18.770868
| 2018-09-12T13:53:38
| 2018-09-12T13:53:38
| 148,479,060
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,283
|
java
|
package com.izhuixin.rsps.service.feign;
import com.izhuixin.rsps.model.BoxInfo;
import com.izhuixin.rsps.model.BoxInfoVO;
import com.izhuixin.rsps.model.BoxLocationRecordInfo;
import com.izhuixin.rsps.model.OperatorLocation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@FeignClient(value = "api-service")
public interface FeignService {
@RequestMapping(value = "v1/enterpriseData/entId/get/entCode/{entCode}",method = RequestMethod.POST)
String getEntIdByEntCode(@PathVariable(value = "entCode") String entCode);
@RequestMapping(value = "v1/enterpriseData/entCode/get/boxId/{boxId}",method = RequestMethod.GET)
String getEntCodeByBoxId(@PathVariable(value = "boxId") String boxId);
@RequestMapping(value = "v1/boxData/base/boxId/ble/get/{bleMac}",method = RequestMethod.GET)
String getBoxIdByBle(@PathVariable(value = "bleMac") String bleMac);
@RequestMapping(value = "v1/operatorData/location/exist/check/{operatorName}/{entId}",method = RequestMethod.POST)
boolean checkExist(@PathVariable(value = "operatorName") String operatorName, @PathVariable(value = "entId") String entId);
@RequestMapping(value = "v1/operatorData/location/update",method = RequestMethod.POST)
boolean updateLocation(@RequestBody OperatorLocation operatorLocation);
@RequestMapping(value = "v1/operatorData/location/save",method = RequestMethod.POST)
boolean saveLocation(@RequestBody OperatorLocation operatorLocation);
@RequestMapping(value = "v1/boxData/boxInfo/boxes/query/operatorId",method = RequestMethod.POST)
List<BoxInfoVO> queryBoxesByOperatorId(@RequestParam(value = "listStatus") List<Byte> listStatus, @RequestParam(value = "operatorId") String operatorId, @RequestParam(value = "entCode")String entCode);
@RequestMapping(value = "v1/boxData/boxInfo/update/rfid",method = RequestMethod.POST)
boolean updateBoxInfoByRfid(@RequestBody BoxInfo boxInfo, @RequestParam(value = "entCode")String entCode);
@RequestMapping(value = "v1/boxData/location/record/save",method = RequestMethod.POST)
boolean saveBoxLocation(@RequestBody BoxLocationRecordInfo boxLocationRecordInfo, @RequestParam(value = "entCode") String entCode);
}
|
[
"3373367703@qq.com"
] |
3373367703@qq.com
|
188be0d3d08944bca9cba2bc99757de4abce4732
|
b00c54389a95d81a22e361fa9f8bdf5a2edc93e3
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/DemuxOutputStream.java
|
5e501a30922d889df8e119ca88750543c9d694d0
|
[] |
no_license
|
mirek190/x86-android-5.0
|
9d1756fa7ff2f423887aa22694bd737eb634ef23
|
eb1029956682072bb7404192a80214189f0dc73b
|
refs/heads/master
| 2020-05-27T01:09:51.830208
| 2015-10-07T22:47:36
| 2015-10-07T22:47:36
| 41,942,802
| 15
| 20
| null | 2020-03-09T00:21:03
| 2015-09-05T00:11:19
| null |
UTF-8
|
Java
| false
| false
| 2,913
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.io.output;
import java.io.IOException;
import java.io.OutputStream;
/**
* Data written to this stream is forwarded to a stream that has been associated
* with this thread.
*
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
* @version $Revision: 437567 $ $Date: 2006-08-28 07:39:07 +0100 (Mon, 28 Aug 2006) $
*/
public class DemuxOutputStream
extends OutputStream
{
private InheritableThreadLocal<OutputStream> m_streams = new InheritableThreadLocal<OutputStream>();
/**
* Bind the specified stream to the current thread.
*
* @param output the stream to bind
* @return the OutputStream that was previously active
*/
public OutputStream bindStream( OutputStream output )
{
OutputStream stream = getStream();
m_streams.set( output );
return stream;
}
/**
* Closes stream associated with current thread.
*
* @throws IOException if an error occurs
*/
@Override
public void close()
throws IOException
{
OutputStream output = getStream();
if( null != output )
{
output.close();
}
}
/**
* Flushes stream associated with current thread.
*
* @throws IOException if an error occurs
*/
@Override
public void flush()
throws IOException
{
OutputStream output = getStream();
if( null != output )
{
output.flush();
}
}
/**
* Writes byte to stream associated with current thread.
*
* @param ch the byte to write to stream
* @throws IOException if an error occurs
*/
@Override
public void write( int ch )
throws IOException
{
OutputStream output = getStream();
if( null != output )
{
output.write( ch );
}
}
/**
* Utility method to retrieve stream bound to current thread (if any).
*
* @return the output stream
*/
private OutputStream getStream()
{
return m_streams.get();
}
}
|
[
"mirek190@gmail.com"
] |
mirek190@gmail.com
|
073f7c315d6757e5e1f6387cd450eb3b956e4138
|
e42b64eb93f609e98a3c2beb783a07cd22517dda
|
/app/src/main/java/com/scj/beilu/app/ui/home/adapter/HomeGoodsListAdapter.java
|
9573af417eaaf4edd63bc299065c74c179859ea5
|
[
"Apache-2.0"
] |
permissive
|
CharlesMing/beilu-android-open-project
|
c0cfab0ca37b9c76527b722bc6ac3f6c8eca5966
|
20b148189d05639c85842fb78895bef64276a9b0
|
refs/heads/master
| 2021-06-29T02:34:40.399361
| 2020-12-17T06:48:50
| 2020-12-17T06:48:50
| 203,488,655
| 14
| 9
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,952
|
java
|
package com.scj.beilu.app.ui.home.adapter;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.support.annotation.NonNull;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.mx.pro.lib.fragmentation.support.SupportFragment;
import com.scj.beilu.app.GlideApp;
import com.scj.beilu.app.GlideRequest;
import com.scj.beilu.app.R;
import com.scj.beilu.app.base.BaseViewHolder;
import com.scj.beilu.app.listener.OnItemClickListener;
import com.scj.beilu.app.mvp.store.bean.GoodsInfoBean;
import java.util.List;
/**
* @author Mingxun
* @time on 2019/3/12 19:39
*/
public class HomeGoodsListAdapter extends RecyclerView.Adapter<HomeGoodsListAdapter.GoodsViewHolder> {
private GlideRequest<Drawable> mOriginalGlideRequest;
private GlideRequest<Drawable> mThumbnailGlideRequest;
private List<GoodsInfoBean> mGoodsInfoList;
private OnItemClickListener<GoodsInfoBean> mItemClickListener;
public void setItemClickListener(OnItemClickListener<GoodsInfoBean> itemClickListener) {
mItemClickListener = itemClickListener;
}
public HomeGoodsListAdapter(SupportFragment fragment) {
mOriginalGlideRequest = GlideApp.with(fragment).asDrawable().optionalFitCenter();
mThumbnailGlideRequest = GlideApp.with(fragment).asDrawable().optionalFitCenter();
}
public void setGoodsInfoList(List<GoodsInfoBean> goodsInfoList) {
mGoodsInfoList = goodsInfoList;
notifyDataSetChanged();
}
@NonNull
@Override
public GoodsViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_home_page_goods_content, parent, false);
return new GoodsViewHolder(view);
}
@Override
public void onBindViewHolder(@NonNull GoodsViewHolder holder, int position) {
try {
GoodsInfoBean goodsInfo = mGoodsInfoList.get(position);
mOriginalGlideRequest
.load(goodsInfo.getProductPicOriginalAddr())
.thumbnail(mThumbnailGlideRequest.load(goodsInfo.getProductPicCompressionAddr()))
.into(holder.mIvGoodsImg);
holder.mTvTitle.setText(goodsInfo.getProductName());
holder.mTvPrice.setText("¥" + goodsInfo.getProductDiscountPrice());
holder.mTvOldPrice.setText("原价 " + goodsInfo.getProductOriginalPrice());
holder.mTvOldPrice.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public int getItemCount() {
return mGoodsInfoList == null ? 0 : mGoodsInfoList.size();
}
class GoodsViewHolder extends BaseViewHolder {
private ImageView mIvGoodsImg;
private TextView mTvTitle;
private TextView mTvPrice, mTvOldPrice;
private CardView mCardView;
public GoodsViewHolder(View itemView) {
super(itemView);
mIvGoodsImg = findViewById(R.id.iv_home_page_goods_img);
mTvTitle = findViewById(R.id.tv_home_page_goods_title);
mTvPrice = findViewById(R.id.tv_home_page_goods_price);
mTvOldPrice = findViewById(R.id.tv_home_page_goods_old_price);
mCardView = findViewById(R.id.card_view_goods_info);
mCardView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (mItemClickListener != null) {
mItemClickListener.onItemClick(getAdapterPosition(), mGoodsInfoList.get(getAdapterPosition()), v);
}
}
});
}
}
}
|
[
"12345678"
] |
12345678
|
c3c95b270614f98229f741f53ea2b774c7efc332
|
67310b5d7500649b9d53cf62226ec2d23468413c
|
/trunk/modules/gui-electric-adr/src/gui/projectManagement/DeleteProject.java
|
d51489eb18642cfa19475e02eb28ef476080b260
|
[] |
no_license
|
csnowleopard/guitar
|
e09cb77b2fe8b7e38d471be99b79eb7a66a5eb02
|
1fa5243fcf4de80286d26057db142b5b2357f614
|
refs/heads/master
| 2021-01-19T07:53:57.863136
| 2013-06-06T15:26:25
| 2013-06-06T15:26:25
| 10,353,457
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,932
|
java
|
package gui.projectManagement;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.Font;
import javax.swing.JLabel;
import javax.swing.JCheckBox;
/**
* JDialog that handles the deletion of a project.
* @author CSCHulze
*
*/
public class DeleteProject extends JDialog {
private final JPanel contentPanel = new JPanel();
private int value;
private JCheckBox chckbxContentondisc;
/**
* Launch the application.
*/
public static void main(String[] args) {
try {
DeleteProject dialog = new DeleteProject();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Create the dialog.
*/
public DeleteProject() {
value = 1;
setModal(true);
setBounds(100, 100, 573, 242);
getContentPane().setLayout(new BorderLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
getContentPane().add(contentPanel, BorderLayout.CENTER);
GridBagLayout gbl_contentPanel = new GridBagLayout();
gbl_contentPanel.columnWidths = new int[]{0, 154, 125, 129, 0, 0, 0};
gbl_contentPanel.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0};
gbl_contentPanel.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
gbl_contentPanel.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
contentPanel.setLayout(gbl_contentPanel);
{
JLabel lblDoYouReally = new JLabel("Are you sure that you want to delete the selected project?");
lblDoYouReally.setFont(new Font("Tahoma", Font.PLAIN, 20));
GridBagConstraints gbc_lblDoYouReally = new GridBagConstraints();
gbc_lblDoYouReally.gridwidth = 4;
gbc_lblDoYouReally.insets = new Insets(0, 0, 5, 5);
gbc_lblDoYouReally.gridx = 1;
gbc_lblDoYouReally.gridy = 1;
contentPanel.add(lblDoYouReally, gbc_lblDoYouReally);
}
{
chckbxContentondisc = new JCheckBox("Delete contents on disk (cannot be undone)");
chckbxContentondisc.setFont(new Font("Tahoma", Font.PLAIN, 15));
GridBagConstraints gbc_chckbxContentondisc = new GridBagConstraints();
gbc_chckbxContentondisc.anchor = GridBagConstraints.WEST;
gbc_chckbxContentondisc.gridwidth = 4;
gbc_chckbxContentondisc.insets = new Insets(0, 0, 5, 5);
gbc_chckbxContentondisc.gridx = 1;
gbc_chckbxContentondisc.gridy = 3;
contentPanel.add(chckbxContentondisc, gbc_chckbxContentondisc);
}
{
JButton btnDelete = new JButton("Delete");
btnDelete.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if(chckbxContentondisc.isSelected()){
value = -1;
}
else{
value = 0;
}
setVisible(false);
}
});
btnDelete.setFont(new Font("Tahoma", Font.PLAIN, 15));
GridBagConstraints gbc_btnDelete = new GridBagConstraints();
gbc_btnDelete.fill = GridBagConstraints.HORIZONTAL;
gbc_btnDelete.insets = new Insets(0, 0, 0, 5);
gbc_btnDelete.gridx = 3;
gbc_btnDelete.gridy = 5;
contentPanel.add(btnDelete, gbc_btnDelete);
}
{
JButton btnCancel = new JButton("Cancel");
btnCancel.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
value = 1;
setVisible(false);
}
});
btnCancel.setFont(new Font("Tahoma", Font.PLAIN, 15));
GridBagConstraints gbc_btnCancel = new GridBagConstraints();
gbc_btnCancel.fill = GridBagConstraints.HORIZONTAL;
gbc_btnCancel.insets = new Insets(0, 0, 0, 5);
gbc_btnCancel.gridx = 4;
gbc_btnCancel.gridy = 5;
contentPanel.add(btnCancel, gbc_btnCancel);
}
}
public int showDialog(){
setVisible(true);
return value;
}
}
|
[
"csnowleopard@gmail.com"
] |
csnowleopard@gmail.com
|
b65abaf37d84249cbc2111f49ba8b612fc819932
|
3c18b4ab3a20dab175dc48758835fb1a854a92c8
|
/probes/bctLP66.java
|
38167f2266acc2c4c69ab4862d732fd1d74665a3
|
[
"Apache-2.0"
] |
permissive
|
lta-disco-unimib-it/BCT
|
2c6bcf52894db8798d8ad14c7ebe066262dd22e4
|
1c7fcb52f42bae9f5169c94032ded919cb1c42c4
|
refs/heads/master
| 2020-08-24T16:32:03.904958
| 2019-10-22T20:30:10
| 2019-10-22T20:30:10
| 216,863,231
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,669
|
java
|
/*******************************************************************************
* Copyright 2019 Fabrizio Pastore, Leonardo Mariani
*
* 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.
*******************************************************************************/
// generated source from Probekit compiler
/* probekit /BCT_new/probes/bctComponentLogger.probe
*/
// "imports" specifications for probes (if any):
import probes.ComponentCallStack;
import probes.LoggerProbe;
class bctLP66 {
// Class for probe unnamed_probe
public static class Probe_0 {
// Fragment at class scope
int id = 1;
public static void _afterCall (
Object /*returnedObject*/ returnedObject,
String /*className*/ className,
String /*methodName*/ methodName,
String /*methodSig*/ methodSig,
Object[] /*args*/ args ) {
// Internal signature for this method: (Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
// ------------------ begin user-written fragment code ----------------
try{
//System.out.println("#"+Thread.currentThread().getId()+"#"+"CALLEXIT"+bctLP66.class);
ComponentCallStack.getInstance().pop();
LoggerProbe.exit(className,methodName,methodSig,args,returnedObject);
} catch ( Throwable e ){
System.err.println("BCT COMPONENT LOGGER ERROR/EXCEPTION: "+e.getMessage());
e.printStackTrace();
}
// ------------------- end user-written fragment code -----------------
}
public static void _beforeCall (
String /*className*/ className,
String /*methodName*/ methodName,
String /*methodSig*/ methodSig,
Object[] /*args*/ args ) {
// Internal signature for this method: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
try{
//System.out.println("#"+Thread.currentThread().getId()+"#"+"CALLENTER"+bctLP66.class);
ComponentCallStack s = ComponentCallStack.getInstance();
s.push( bctLP66.Probe_0.class );
LoggerProbe.enter(className,methodName,methodSig,args);
} catch ( Throwable e ){
System.err.println("BCT COMPONENT LOGGER ERROR/EXCEPTION: "+e.getMessage());
e.printStackTrace();
}
}
}
// Class for probe unnamed_probe
public static class Probe_1 {
// Fragment at class scope
int id = 0;
public static void _exit (
Object /*returnedObject*/ returnedObject,
String /*className*/ className,
String /*methodName*/ methodName,
String /*methodSig*/ methodSig,
Object[] /*args*/ args ) {
// Internal signature for this method: (Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
try{
ComponentCallStack s = ComponentCallStack.getInstance();
s.pop();
//System.out.println("#"+Thread.currentThread().getId()+"#"+"EXIT "+className+"."+methodName+" "+methodSig);
if ( bctLP66.Probe_1.class == s.lastElement() ){
//System.out.println("#"+Thread.currentThread().getId()+"#"+"DISCARD");
return;
}
LoggerProbe.exit(className,methodName,methodSig,args,returnedObject);
} catch ( Throwable e ){
System.err.println("BCT COMPONENT LOGGER ERROR/EXCEPTION: "+e.getMessage());
e.printStackTrace();
}
}
public static void _entry (
String /*className*/ className,
String /*methodName*/ methodName,
String /*methodSig*/ methodSig,
Object[] /*args*/ args ) {
// Internal signature for this method: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
try{
ComponentCallStack s = ComponentCallStack.getInstance();
//System.out.println("#"+Thread.currentThread().getId()+"#"+"ENTER "+className+"."+methodName+" "+methodSig);
if ( bctLP66.Probe_1.class == s.lastElement() ){
s.push( bctLP66.Probe_1.class );
//System.out.println("#"+Thread.currentThread().getId()+"#"+"DISCARD");
return;
}
s.push( bctLP66.Probe_1.class );
LoggerProbe.enter(className,methodName,methodSig,args);
} catch ( Throwable e ){
System.err.println("BCT COMPONENT LOGGER ERROR/EXCEPTION: "+e.getMessage());
e.printStackTrace();
}
}
}
}
|
[
"fabrizio.pastore@gmail.com"
] |
fabrizio.pastore@gmail.com
|
b829e0f55723cb7057781bb6822546262d50f7de
|
fff80cdaf12712704f36038479f50418253f42f3
|
/nifty/nifty-core/src/main/java/com/facebook/nifty/ssl/SslClientConfiguration.java
|
be23445868864ffd6a1a4367b49fb85f7a059700
|
[] |
no_license
|
rudolfkopriva/Facebook
|
1ea0cfbc116f68ae0317332eeb9155461af5645a
|
56e4c6a83f992bb01849ad353004b28409e53eef
|
refs/heads/master
| 2023-02-14T01:54:36.519860
| 2021-01-05T02:09:26
| 2021-01-05T02:09:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,680
|
java
|
/*
* Copyright (C) 2012-2016 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.facebook.nifty.ssl;
import com.google.common.base.Throwables;
import org.jboss.netty.handler.ssl.SslContext;
import org.jboss.netty.handler.ssl.SslHandler;
import javax.net.ssl.SSLException;
import java.io.File;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
public class SslClientConfiguration {
public static class Builder {
Iterable<String> ciphers;
File caFile;
long sessionCacheSize = 10000;
long sessionTimeoutSeconds = 86400;
SslContext clientContext;
public Builder ciphers(Iterable<String> ciphers) {
this.ciphers = ciphers;
return this;
}
public Builder caFile(File caFile) {
this.caFile = caFile;
return this;
}
public Builder sessionCacheSize(long sessionCacheSize) {
this.sessionCacheSize = sessionCacheSize;
return this;
}
public Builder sessionTimeoutSeconds(long sessionTimeoutSeconds) {
this.sessionTimeoutSeconds = sessionTimeoutSeconds;
return this;
}
/**
* Overrides the SslContext with one explicitly provided by the caller. If this is not null, the other
* builder parameters will be ignored. Currently only used for testing and may be removed in the future,
* once we have netty support for client-side certs.
*
* @param clientContext the client context.
* @return a reference to this builder.
*/
public Builder sslContext(SslContext clientContext) {
this.clientContext = clientContext;
return this;
}
public SslClientConfiguration build() {
return new SslClientConfiguration(this);
}
}
private SslContext clientContext;
public SslClientConfiguration(Builder builder) {
if (builder.clientContext == null) {
try {
clientContext =
SslContext.newClientContext(
null,
null,
builder.caFile,
null,
builder.ciphers,
null,
builder.sessionCacheSize,
builder.sessionTimeoutSeconds);
} catch (SSLException e) {
Throwables.propagate(e);
}
} else {
clientContext = builder.clientContext;
}
}
public SslHandler createHandler() throws Exception {
return clientContext.newHandler();
}
public SslHandler createHandler(SocketAddress address) throws Exception {
if (!(address instanceof InetSocketAddress)) {
return createHandler();
}
InetSocketAddress netAddress = (InetSocketAddress) address;
String host = netAddress.getHostString();
if (host == null) {
return createHandler();
}
return clientContext.newHandler(host, netAddress.getPort());
}
}
|
[
"nateweiler84@gmail.com"
] |
nateweiler84@gmail.com
|
a3e8f4f92516855e67a013a32411d90d72bb7e94
|
2cf3e438c4cb7acfc65b0b01843c3b24d53db69d
|
/mod/scythemod/dragon/entity/DragonRenderer.java
|
f8656fa6dc669675430e96cf0fa8c15bdb0b20ab
|
[] |
no_license
|
rich1051414/mods
|
c500fad7e862bfde0230b7b68f4a42545e8527ab
|
5b8e129ae3652a95f9173bc4af1d31e469d063c5
|
refs/heads/master
| 2021-01-18T10:26:07.158375
| 2013-06-12T09:32:44
| 2013-06-12T09:32:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,632
|
java
|
/*
** 2011 December 10
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
package scythemod.dragon.entity;
import net.minecraft.block.Block;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.util.MathHelper;
import org.lwjgl.opengl.GL11;
/**
* Generic renderer for all dragons.
*
* @author Nico Bergemann <barracuda415 at yahoo.de>
*/
public class DragonRenderer extends RenderLiving {
public static boolean updateModel;
public DragonRenderer(ModelBase model) {
super(model, 0);
renderPassModel = model;
}
/**
* Queries whether should render the specified pass or not.
*/
@Override
public int shouldRenderPass(EntityLiving entity, int pass, float scale) {
return shouldRenderPass((DragonEntity) entity, pass, scale);
}
public int shouldRenderPass(DragonEntity dragon, int pass, float scale) {
// update dragon model every second if enabled
if (pass == 0 && updateModel && dragon.ticksExisted % 20 == 0) {
mainModel = renderPassModel = new DragonModel();
}
((DragonModel)renderPassModel).renderPass = pass;
switch (pass) {
// pass 1 - saddle
case 0:
if (dragon.isSaddled()) {
loadTexture(dragon.getTexture(1));
return 1;
}
break;
case 3:
if (dragon.isSaddled()&& dragon.isZombie()) {
loadTexture(dragon.getTexture(5));
return 1;
}
break;
// pass 2 - glow overlay
case 1:
if (dragon.hurtTime == 0 ) {
loadTexture(dragon.getTexture(2));
// fix z-fighting
GL11.glDepthFunc(GL11.GL_EQUAL);
// disable alpha testing
GL11.glDisable(GL11.GL_ALPHA_TEST);
// enable blending
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
// use full lighting
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 0, 255);
return 1;
}
break;
case 4:
if (dragon.hurtTime == 0 && dragon.isZombie()) {
loadTexture(dragon.getTexture(4));
// fix z-fighting
GL11.glDepthFunc(GL11.GL_EQUAL);
// disable alpha testing
GL11.glDisable(GL11.GL_ALPHA_TEST);
// enable blending
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
// use full lighting
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 0, 255);
return 1;
}
break;
// pass 3 - reset glow overlay
case 2:
GL11.glDepthFunc(GL11.GL_LEQUAL);
break;
}
return -1;
}
@Override
protected void rotateCorpse(EntityLiving par1EntityLiving, float par2, float par3, float par4) {
rotateCorpse((DragonEntity) par1EntityLiving, par2, par3, par4);
}
protected void rotateCorpse(DragonEntity dragon, float par2, float par3, float par4) {
GL11.glRotatef(180 - par3, 0, 1, 0);
}
/**
* Renders the model in RenderLiving
*/
@Override
protected void renderModel(EntityLiving entity, float moveTime,
float moveSpeed, float ticksExisted, float lookYaw, float lookPitch,
float scale) {
renderModel((DragonEntity) entity, moveTime, moveSpeed, ticksExisted, lookYaw, lookPitch, scale);
}
protected void renderModel(DragonEntity dragon, float moveTime, float moveSpeed,
float ticksExisted, float lookYaw, float lookPitch, float scale) {
((DragonModel) renderPassModel).renderPass = -1;
if (dragon.getDeathTime() > 0 || dragon.isZombie() && dragon.deathTime >0) {
float alpha = dragon.getDeathTime() / (float) dragon.getMaxDeathTime();
GL11.glDepthFunc(GL11.GL_LEQUAL);
GL11.glEnable(GL11.GL_ALPHA_TEST);
GL11.glAlphaFunc(516, alpha);
loadDownloadableImageTexture(dragon.skinUrl, dragon.getTexture(3));
mainModel.render(dragon, moveTime, moveSpeed, ticksExisted, lookYaw, lookPitch, scale);
GL11.glAlphaFunc(516, 0.1f);
GL11.glDepthFunc(GL11.GL_EQUAL);
}
super.renderModel(dragon, moveTime, moveSpeed, ticksExisted, lookYaw, lookPitch, scale);
}
protected void renderEgg(DragonEntity dragon, double x, double y, double z, float pitch, float partialTicks) {
loadTexture("/terrain.png");
GL11.glPushMatrix();
GL11.glTranslatef((float) x, (float) y, (float) z);
// apply egg wiggle
float tickX = dragon.getEggWiggleX();
float tickZ = dragon.getEggWiggleZ();
float rotX = 0;
float rotZ = 0;
if (tickX > 0) {
rotX = (float) Math.sin(tickX - partialTicks) * 8;
}
if (tickZ > 0) {
rotZ = (float) Math.sin(tickZ - partialTicks) * 8;
}
GL11.glRotatef(rotX, 1, 0, 0);
GL11.glRotatef(rotZ, 0, 0, 1);
GL11.glDisable(GL11.GL_LIGHTING);
int bx = MathHelper.floor_double(dragon.posX);
int by = MathHelper.floor_double(dragon.posY);
int bz = MathHelper.floor_double(dragon.posZ);
double tx = -bx - 0.5;
double ty = -by;
double tz = -bz - 0.5;
Tessellator t = Tessellator.instance;
t.startDrawingQuads();
t.setTranslation(tx, ty, tz);
renderBlocks.blockAccess = dragon.worldObj;
renderBlocks.renderBlockByRenderType(Block.dragonEgg, bx, by, bz);
t.setTranslation(0, 0, 0);
t.draw();
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glPopMatrix();
}
@Override
public void doRender(Entity entity, double x, double y, double z, float yaw, float partialTicks) {
doRender((DragonEntity) entity, x, y, z, yaw, partialTicks);
}
public void doRender(DragonEntity dragon, double x, double y, double z, float yaw, float partialTicks) {
super.doRender(dragon, x, y, z, yaw, partialTicks);
}
/**
* Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
* entityLiving, partialTickTime
*/
@Override
protected void preRenderCallback(EntityLiving entity, float partialTicks) {
preRenderCallback((DragonEntity) entity, partialTicks);
}
protected void preRenderCallback(DragonEntity dragon, float partialTicks) {
float size = dragon.getSize() * 0.8f;
GL11.glScalef(size, size, size);
}
}
|
[
"robbeenaxel@hotmail.com"
] |
robbeenaxel@hotmail.com
|
655617d5466c82d1729e93b8483046da38a6ce07
|
208ba847cec642cdf7b77cff26bdc4f30a97e795
|
/p/src/main/java/org.wp.p/ui/notifications/adapters/NotesAdapter.java
|
ec18db9b12115983557e4829e97b6eff28bad223
|
[] |
no_license
|
kageiit/perf-android-large
|
ec7c291de9cde2f813ed6573f706a8593be7ac88
|
2cbd6e74837a14ae87c1c4d1d62ac3c35df9e6f8
|
refs/heads/master
| 2021-01-12T14:00:19.468063
| 2016-09-27T13:10:42
| 2016-09-27T13:10:42
| 69,685,305
| 0
| 0
| null | 2016-09-30T16:59:49
| 2016-09-30T16:59:48
| null |
UTF-8
|
Java
| false
| false
| 5,452
|
java
|
package org.wp.p.ui.notifications.adapters;
import android.content.Context;
import android.database.Cursor;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import org.wp.p.R;
import org.wp.p.ui.notifications.NotificationsListFragment;
import org.wp.p.util.StringUtils;
import org.wp.p.widgets.NoticonTextView;
import org.wp.p.widgets.WPNetworkImageView;
import java.util.ArrayList;
import java.util.List;
public class NotesAdapter extends CursorRecyclerViewAdapter<NotesAdapter.NoteViewHolder> {
private final int mAvatarSz;
private final int mColorRead;
private final int mColorUnread;
private final int mTextIndentSize;
private final List<String> mHiddenNoteIds = new ArrayList<>();
private final List<String> mModeratingNoteIds = new ArrayList<>();
private NotificationsListFragment.OnNoteClickListener mOnNoteClickListener;
public NotesAdapter(Context context) {
super(context, null);
setHasStableIds(true);
mAvatarSz = (int) context.getResources().getDimension(R.dimen.notifications_avatar_sz);
mColorRead = context.getResources().getColor(R.color.white);
mColorUnread = context.getResources().getColor(R.color.grey_light);
mTextIndentSize = context.getResources().getDimensionPixelSize(R.dimen.notifications_text_indent_sz);
}
public void closeCursor() {
Cursor cursor = getCursor();
if (cursor != null) {
cursor.close();
}
}
public void queryNotes() {
}
public void queryNotes(String columnName, Object value) {
}
public void addHiddenNoteId(String noteId) {
mHiddenNoteIds.add(noteId);
notifyDataSetChanged();
}
public void removeHiddenNoteId(String noteId) {
mHiddenNoteIds.remove(noteId);
notifyDataSetChanged();
}
public void addModeratingNoteId(String noteId) {
mModeratingNoteIds.add(noteId);
notifyDataSetChanged();
}
public void removeModeratingNoteId(String noteId) {
mModeratingNoteIds.remove(noteId);
notifyDataSetChanged();
}
private String getStringForColumnName(Cursor cursor, String columnName) {
if (columnName == null || cursor == null || cursor.getColumnIndex(columnName) == -1) {
return "";
}
return StringUtils.notNullStr(cursor.getString(cursor.getColumnIndex(columnName)));
}
private int getIntForColumnName(Cursor cursor, String columnName) {
if (columnName == null || cursor == null || cursor.getColumnIndex(columnName) == -1) {
return -1;
}
return cursor.getInt(cursor.getColumnIndex(columnName));
}
private long getLongForColumnName(Cursor cursor, String columnName) {
if (columnName == null || cursor == null || cursor.getColumnIndex(columnName) == -1) {
return -1;
}
return cursor.getLong(cursor.getColumnIndex(columnName));
}
public int getCount() {
if (getCursor() != null) {
return getCursor().getCount();
}
return 0;
}
@Override
public NoteViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.notifications_list_item, parent, false);
return new NoteViewHolder(view);
}
@Override
public void onBindViewHolder(NoteViewHolder noteViewHolder, Cursor cursor) {
}
public int getPositionForNote(String noteId) {
return RecyclerView.NO_POSITION;
}
public void setOnNoteClickListener(NotificationsListFragment.OnNoteClickListener mNoteClickListener) {
mOnNoteClickListener = mNoteClickListener;
}
class NoteViewHolder extends RecyclerView.ViewHolder {
private final View headerView;
private final View contentView;
private final TextView headerText;
private final TextView txtSubject;
private final TextView txtSubjectNoticon;
private final TextView txtDetail;
private final WPNetworkImageView imgAvatar;
private final NoticonTextView noteIcon;
private final View progressBar;
public NoteViewHolder(View view) {
super(view);
headerView = view.findViewById(R.id.time_header);
contentView = view.findViewById(R.id.note_content_container);
headerText = (TextView)view.findViewById(R.id.header_date_text);
txtSubject = (TextView) view.findViewById(R.id.note_subject);
txtSubjectNoticon = (TextView) view.findViewById(R.id.note_subject_noticon);
txtDetail = (TextView) view.findViewById(R.id.note_detail);
imgAvatar = (WPNetworkImageView) view.findViewById(R.id.note_avatar);
noteIcon = (NoticonTextView) view.findViewById(R.id.note_icon);
progressBar = view.findViewById(R.id.moderate_progress);
itemView.setOnClickListener(mOnClickListener);
}
}
private View.OnClickListener mOnClickListener = new View.OnClickListener() {
@Override
public void onClick(View v) {
if (mOnNoteClickListener != null && v.getTag() instanceof String) {
mOnNoteClickListener.onClickNote((String)v.getTag());
}
}
};
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
d7ff6955adaddf9f2ecdd41140a43e34ea741467
|
582ed13304579634b27275d6026486e4f74af73c
|
/app/src/main/java/com/knotlink/salseman/services/LocationService.java
|
2d5470287fc96ec80aad74d04ac7eb13c9fdf719
|
[] |
no_license
|
freelanceapp/Products
|
b2d3129f2bf49f6f3f03dc3aad2cad5721885c8a
|
c561fdbdaf22f9c79aead7c60bd054eb58625ec0
|
refs/heads/master
| 2020-07-02T06:53:34.251601
| 2019-08-07T05:20:21
| 2019-08-07T05:20:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,668
|
java
|
package com.knotlink.salseman.services;
import android.app.Service;
import android.content.Intent;
import android.location.Location;
import android.os.Bundle;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.GoogleApiClient.ConnectionCallbacks;
import com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener;
import com.google.android.gms.location.LocationListener;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.location.LocationServices;
import com.knotlink.salseman.utils.Constant;
import com.knotlink.salseman.utils.CustomLog;
import java.text.DateFormat;
import java.util.Date;
public class LocationService extends Service implements
ConnectionCallbacks, OnConnectionFailedListener, LocationListener {
public static long updateInterval = Constant.FUSED_API_DEFAULT_VALUE;
protected GoogleApiClient mGoogleApiClient;
protected LocationRequest mLocationRequest;
protected static Location mCurrentLocation = null;
protected static final String TAG = "LocationService";
/**
/**
* Tracks the status of the location updates request. Value changes when the user presses the
* Start Updates and Stop Updates buttons.
*/
protected Boolean mRequestingLocationUpdates;
/**
* Time when the location was updated represented as a String.
*/
protected String mLastUpdateTime;
@Nullable
@Override
public IBinder onBind(Intent intent) {
return null;
}
@Override
public void onCreate() {
CustomLog.d(TAG, "on create ");
mRequestingLocationUpdates = false;
buildGoogleApiClient();
super.onCreate();
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
super.onStartCommand(intent, flags, startId);
CustomLog.e(TAG, "onStartCommand " + " interval time " + updateInterval);
return START_STICKY;
}
/**
* Builds a GoogleApiClient. Uses the {@code #addApi} method to request the
* LocationServices API.
*/
protected synchronized void buildGoogleApiClient() {
CustomLog.d(TAG, "Building GoogleApiClient");
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(LocationServices.API)
.build();
onStart();
}
protected void createLocationRequest() {
mLocationRequest = new LocationRequest();
mLocationRequest.setInterval(updateInterval);
mLocationRequest.setFastestInterval(updateInterval);
mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
startLocationUpdates();
}
/**
* Requests location updates from the FusedLocationApi.
*/
protected void startLocationUpdates() {
try {
LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest, this);
} catch (SecurityException e) {
CustomLog.e(TAG,e.toString());
}
}
protected void onStart() {
try {
mGoogleApiClient.connect();
ConnectionCallbacks callbacks=new ConnectionCallbacks() {
@Override
public void onConnected(Bundle bundle) {
CustomLog.d(TAG,"ConnectionCallbacks onConnected");
createLocationRequest();
}
@Override
public void onConnectionSuspended(int i) {
}
};
mGoogleApiClient.registerConnectionCallbacks(callbacks);
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public void onDestroy() {
super.onDestroy();
CustomLog.d(TAG, "onDestroy called. stop location service");
mGoogleApiClient.disconnect();
}
@Override
public void onConnected(Bundle bundle) {
CustomLog.d(TAG, "onConnected");
if (mCurrentLocation == null) {
try {
mCurrentLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);
mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());
onReceiveLocation(mCurrentLocation);
} catch (SecurityException e) {
e.printStackTrace();
}
}
}
@Override
public void onConnectionSuspended(int i) {
Log.e("onConnectionSuspended", "onConnected");
}
@Override
public void onLocationChanged(Location location) {
CustomLog.d(TAG, "onLocationChanged connected");
if (location != null) {
CustomLog.d(TAG, "onLocationChanged accuracy" + location.getAccuracy());
mCurrentLocation = location;
mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());
onReceiveLocation(mCurrentLocation);
CustomLog.e("location interval ","interval "+mLocationRequest.getInterval()+" fastest interval "+mLocationRequest.getFastestInterval());
}
}
@Override
public void onConnectionFailed(ConnectionResult connectionResult) {
CustomLog.d(TAG, "onConnected");
}
public void onReceiveLocation(Location location){
}
public static Location getCurrentLocation() {
return mCurrentLocation;
}
}
|
[
"appslelo.com@gmail.com"
] |
appslelo.com@gmail.com
|
57fd70c030d8a3829e7d3724febd557c9dbc2b0d
|
71156bd9290a7eb62ee727b6038d83a9293440cf
|
/head-src/com/guardian/gameserver/network/serverpackets/PetItemList.java
|
e9be6f4c1ff131c0d00ed531b32f085c9e3c21b9
|
[] |
no_license
|
RafaelRauber/GameServerL2
|
bcdd732e0ca0210339c9ff484021755b944ffbaa
|
0261e4797d5d66aaee49c4cf7653a4ef539be0d5
|
refs/heads/master
| 2021-05-19T00:24:45.494956
| 2020-04-10T18:37:02
| 2020-04-10T18:37:02
| 251,491,266
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,951
|
java
|
/*
* L2Guardian - MrFreedomFights
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package com.guardian.gameserver.network.serverpackets;
import org.apache.log4j.Logger;
import com.guardian.Config;
import com.guardian.gameserver.model.actor.instance.L2ItemInstance;
import com.guardian.gameserver.model.actor.instance.L2PetInstance;
/**
* This class ...
* @version $Revision: 1.4.2.1.2.4 $ $Date: 2005/03/27 15:29:39 $
*/
public class PetItemList extends L2GameServerPacket
{
private static Logger LOGGER = Logger.getLogger(PetItemList.class);
private static final String _S__cb_PETITEMLIST = "[S] b2 PetItemList";
private final L2PetInstance _activeChar;
public PetItemList(final L2PetInstance character)
{
_activeChar = character;
if (Config.DEBUG)
{
final L2ItemInstance[] items = _activeChar.getInventory().getItems();
for (final L2ItemInstance temp : items)
{
LOGGER.debug("item:" + temp.getItem().getName() + " type1:" + temp.getItem().getType1() + " type2:" + temp.getItem().getType2());
}
}
}
@Override
protected final void writeImpl()
{
writeC(0xB2);
final L2ItemInstance[] items = _activeChar.getInventory().getItems();
final int count = items.length;
writeH(count);
for (final L2ItemInstance temp : items)
{
writeH(temp.getItem().getType1()); // item type1
writeD(temp.getObjectId());
writeD(temp.getItemId());
writeD(temp.getCount());
writeH(temp.getItem().getType2()); // item type2
writeH(0xff); // ?
if (temp.isEquipped())
{
writeH(0x01);
}
else
{
writeH(0x00);
}
writeD(temp.getItem().getBodyPart()); // rev 415 slot 0006-lr.ear 0008-neck 0030-lr.finger 0040-head 0080-?? 0100-l.hand 0200-gloves 0400-chest 0800-pants 1000-feet 2000-?? 4000-r.hand 8000-r.hand
// writeH(temp.getItem().getBodyPart()); // rev 377 slot 0006-lr.ear 0008-neck 0030-lr.finger 0040-head 0080-?? 0100-l.hand 0200-gloves 0400-chest 0800-pants 1000-feet 2000-?? 4000-r.hand 8000-r.hand
writeH(temp.getEnchantLevel()); // enchant level
writeH(0x00); // ?
}
}
/*
* (non-Javadoc)
* @see com.guardian.gameserver.serverpackets.ServerBasePacket#getType()
*/
@Override
public String getType()
{
return _S__cb_PETITEMLIST;
}
}
|
[
"rrafaelfr2@gmail.com"
] |
rrafaelfr2@gmail.com
|
ad377fd34c6b4a1278bef23dea5eee33b364e313
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/43/org/apache/commons/math/distribution/ChiSquaredDistribution_getDomainLowerBound_107.java
|
3cd117ce6082fc1b92cf466de8f0eaefc492ddfe
|
[] |
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
| 661
|
java
|
org apach common math distribut
implement chi squar distribut
href http wikipedia org wiki chi squar distribut chi squar distribut wikipedia
href http mathworld wolfram chi squar distribut squareddistribut html chi squar distribut math world mathworld
version chi squar distribut chisquareddistribut java 56z celestin
chi squar distribut chisquareddistribut
inherit doc inheritdoc
overrid
domain lower bound getdomainlowerbound
doubl min gamma beta getbeta
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
a2cf1e71c91d6bc822a632c5897f0af163521e8d
|
ee8b4a8e4e9e8688321bd34cd15fed7e281b6ee2
|
/app-common/src/main/java/com/eryansky/modules/sys/mapper/OrganExtend.java
|
3db7e93578bdc4851cd5644be34a0bdabfc7fbe6
|
[] |
no_license
|
eryanwcp/ec
|
245086ade1242ed22b489d1cbcfada5bf69b17db
|
298a0a03d5958f71ad815eed46d6a012871a0ed0
|
refs/heads/master
| 2023-08-14T06:19:47.354602
| 2023-08-14T01:54:08
| 2023-08-14T01:54:08
| 166,914,136
| 10
| 4
| null | 2023-06-21T00:21:57
| 2019-01-22T02:35:26
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 2,195
|
java
|
/**
* Copyright (c) 2012-2022 https://www.eryansky.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.eryansky.modules.sys.mapper;
import com.eryansky.common.model.TreeNode;
import com.eryansky.modules.sys.utils.OrganUtils;
/**
* 机构扩展
*
* @author Eryan
* @date 2018-05-08
*/
public class OrganExtend extends Organ {
private Integer treeLevel;
private String parentId;
private String companyId;
private String companyCode;
private String companyName;
private String homeCompanyId;
private String homeCompanyCode;
private String isLeaf;
public Integer getTreeLevel() {
return treeLevel;
}
public void setTreeLevel(Integer treeLevel) {
this.treeLevel = treeLevel;
}
@Override
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public String getCompanyId() {
return companyId;
}
public void setCompanyId(String companyId) {
this.companyId = companyId;
}
public String getCompanyCode() {
return companyCode;
}
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode;
}
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public String getHomeCompanyId() {
return homeCompanyId;
}
public void setHomeCompanyId(String homeCompanyId) {
this.homeCompanyId = homeCompanyId;
}
public String getHomeCompanyCode() {
return homeCompanyCode;
}
public void setHomeCompanyCode(String homeCompanyCode) {
this.homeCompanyCode = homeCompanyCode;
}
public String getIsLeaf() {
return isLeaf;
}
public void setIsLeaf(String isLeaf) {
this.isLeaf = isLeaf;
}
/**
* Treegrid 关闭状态设置
*
* @return
*/
public String getState() {
return Boolean.parseBoolean(isLeaf) ? TreeNode.STATE_OPEN : TreeNode.STATE_CLOASED;
}
}
|
[
"eryanwcp@gmail.com"
] |
eryanwcp@gmail.com
|
dcad11c5a5811a5870fe40625f744a3907c92ee6
|
b35fadf8d375525e320751e25893f6f69a04e37d
|
/leimingtech-core/src/main/java/com/leimingtech/core/entity/SurveyOptionExtEntity.java
|
3237a57de8e9c35837b81f1e43430a10161f2e08
|
[] |
no_license
|
dockercms/cms-4.0
|
8e41fca1142e121861a86006afaf378327f1917b
|
8f390cc00848124daeb997b8c09aefa0f465572c
|
refs/heads/master
| 2021-05-19T03:38:03.644558
| 2019-12-06T02:10:27
| 2019-12-06T02:10:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,298
|
java
|
package com.leimingtech.core.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
/**
* @Title: Entity
* @Description: 调查选项内容
* @author zhangdaihao
* @date 2014-05-05 17:45:52
* @version V1.0
*
*/
@Entity
@Table(name = "cms_survey_option_ext", schema = "")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class SurveyOptionExtEntity extends IdEntity implements java.io.Serializable {
/**选项ID*/
private java.lang.String optionsid;
/**选项名称*/
private java.lang.String extOptionname;
/**选项图片*/
private java.lang.String extOptionpicture;
/**数据类型*/
private java.lang.String extDatatype;
/**排序*/
private java.lang.String extSort;
/**创建时间*/
private java.util.Date createdtime;
/**
*方法: 取得java.lang.String
*@return: java.lang.String 创建时间
*/
@Column(name = "CREATEDTIME", nullable = true)
public java.util.Date getCreatedtime() {
return createdtime;
}
/**
*方法: 设置java.lang.String
*@return: java.lang.String 创建时间
*/
public void setCreatedtime(java.util.Date createdtime) {
this.createdtime = createdtime;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String 选项ID
*/
@Column(name ="OPTIONSID",nullable=true,length=255)
public java.lang.String getOptionsid(){
return this.optionsid;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String 选项ID
*/
public void setOptionsid(java.lang.String optionsid){
this.optionsid = optionsid;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String 选项名称
*/
@Column(name ="EXT_OPTIONNAME",nullable=true,length=255)
public java.lang.String getExtOptionname(){
return this.extOptionname;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String 选项名称
*/
public void setExtOptionname(java.lang.String extOptionname){
this.extOptionname = extOptionname;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String 选项图片
*/
@Column(name ="EXT_OPTIONPICTURE",nullable=true,length=255)
public java.lang.String getExtOptionpicture(){
return this.extOptionpicture;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String 选项图片
*/
public void setExtOptionpicture(java.lang.String extOptionpicture){
this.extOptionpicture = extOptionpicture;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String 数据类型
*/
@Column(name ="EXT_DATATYPE",nullable=true,length=255)
public java.lang.String getExtDatatype(){
return this.extDatatype;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String 数据类型
*/
public void setExtDatatype(java.lang.String extDatatype){
this.extDatatype = extDatatype;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String 排序
*/
@Column(name ="EXT_SORT",nullable=true,length=255)
public java.lang.String getExtSort(){
return this.extSort;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String 排序
*/
public void setExtSort(java.lang.String extSort){
this.extSort = extSort;
}
}
|
[
"pixiaoyong@leimingtech.com"
] |
pixiaoyong@leimingtech.com
|
b4f6893b9089155bc653b1c8840b918a8cf4dd0c
|
35617a1d2683112c96bdae2b2133ab1790226c70
|
/src/main/java/org/avishek/aashayein/command/LoginCommand.java
|
42d7484eece1f78542ee21a137174779b8fb869b
|
[] |
no_license
|
imavishek/Aashayein
|
8c9ecab0c706dbc57b4384ee35d33036d4e03ab4
|
cbc756a7a7b68802c145904ceebabbbaafbb1f83
|
refs/heads/master
| 2022-12-23T18:41:24.272533
| 2019-06-01T14:58:14
| 2019-06-01T14:58:14
| 151,979,098
| 1
| 0
| null | 2022-12-15T23:39:40
| 2018-10-07T19:47:55
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 1,019
|
java
|
package org.avishek.aashayein.command;
import javax.validation.constraints.Pattern;
public class LoginCommand {
@Pattern(regexp = "([A-Za-z0-9_\\-\\.])+\\@([A-Za-z0-9_\\-\\.])+\\.([A-Za-z]{2,4})", message = "Please enter valid Username")
private String username;
@Pattern(regexp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*#&])[A-Za-z\\d@$!%*#&]{8,25}$", message = "Please Enter Valid Password")
private String password;
private String rememberMe;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getRememberMe() {
return rememberMe;
}
public void setRememberMe(String rememberMe) {
this.rememberMe = rememberMe;
}
@Override
public String toString() {
return "LoginCommand [username=" + username + ", password=" + password + ", rememberMe=" + rememberMe + "]";
}
}
|
[
"avishek.akd@gmail.com"
] |
avishek.akd@gmail.com
|
b1d9caacb69a84486b21e1a8d7c4d7a2a27c656f
|
a42eaa1d4f8f9f63dc73d231f3a424859f2d48f3
|
/sharding-core/sharding-core-common/src/main/java/org/apache/shardingsphere/core/strategy/route/ShardingStrategyFactory.java
|
39360567ff287418eaf235ca04e6df7ab84773de
|
[
"Apache-2.0"
] |
permissive
|
beckhampu/sharding-sphere
|
c823208643f6dad2c8ec6b9490581e0c72b82415
|
a83de6018b17e8a0967e49c44501edc4942aef29
|
refs/heads/dev
| 2020-03-15T19:50:30.794082
| 2019-09-17T10:35:30
| 2019-09-17T10:35:30
| 132,318,484
| 2
| 1
|
Apache-2.0
| 2019-09-11T05:41:59
| 2018-05-06T08:02:04
|
Java
|
UTF-8
|
Java
| false
| false
| 3,139
|
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.core.strategy.route;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.apache.shardingsphere.api.config.sharding.strategy.ComplexShardingStrategyConfiguration;
import org.apache.shardingsphere.api.config.sharding.strategy.HintShardingStrategyConfiguration;
import org.apache.shardingsphere.api.config.sharding.strategy.InlineShardingStrategyConfiguration;
import org.apache.shardingsphere.api.config.sharding.strategy.ShardingStrategyConfiguration;
import org.apache.shardingsphere.api.config.sharding.strategy.StandardShardingStrategyConfiguration;
import org.apache.shardingsphere.core.strategy.route.complex.ComplexShardingStrategy;
import org.apache.shardingsphere.core.strategy.route.hint.HintShardingStrategy;
import org.apache.shardingsphere.core.strategy.route.inline.InlineShardingStrategy;
import org.apache.shardingsphere.core.strategy.route.none.NoneShardingStrategy;
import org.apache.shardingsphere.core.strategy.route.standard.StandardShardingStrategy;
/**
* Sharding strategy factory.
*
* @author zhangliang
*/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class ShardingStrategyFactory {
/**
* Create sharding algorithm.
*
* @param shardingStrategyConfig sharding strategy configuration
* @return sharding strategy instance
*/
public static ShardingStrategy newInstance(final ShardingStrategyConfiguration shardingStrategyConfig) {
if (shardingStrategyConfig instanceof StandardShardingStrategyConfiguration) {
return new StandardShardingStrategy((StandardShardingStrategyConfiguration) shardingStrategyConfig);
}
if (shardingStrategyConfig instanceof InlineShardingStrategyConfiguration) {
return new InlineShardingStrategy((InlineShardingStrategyConfiguration) shardingStrategyConfig);
}
if (shardingStrategyConfig instanceof ComplexShardingStrategyConfiguration) {
return new ComplexShardingStrategy((ComplexShardingStrategyConfiguration) shardingStrategyConfig);
}
if (shardingStrategyConfig instanceof HintShardingStrategyConfiguration) {
return new HintShardingStrategy((HintShardingStrategyConfiguration) shardingStrategyConfig);
}
return new NoneShardingStrategy();
}
}
|
[
"terrymanu@163.com"
] |
terrymanu@163.com
|
759517360b368e5cff9940b4d0e68cf4d8b8144a
|
e81cb572247b52f5610f5afe45d500c83c7c9498
|
/jOOQ-checker/src/main/java/org/jooq/checker/SQLDialectChecker.java
|
6600221469bb4f6477e960ca7f5871bc770ed450
|
[
"Apache-2.0"
] |
permissive
|
lasclocker/jOOQ
|
f14867a66902629d109f8ad86c65b284de22c508
|
e226b8e61e564e13eb2b785f40a403ffa3e3d63e
|
refs/heads/master
| 2020-06-11T07:52:50.388775
| 2016-12-04T11:11:23
| 2016-12-04T11:11:23
| 75,728,955
| 1
| 0
| null | 2016-12-06T12:24:35
| 2016-12-06T12:24:33
| null |
UTF-8
|
Java
| false
| false
| 5,952
|
java
|
/*
* Copyright (c) 2009-2016, Data Geekery GmbH (http://www.datageekery.com)
* 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.
*
* Other licenses:
* -----------------------------------------------------------------------------
* Commercial licenses for this work are available. These replace the above
* ASL 2.0 and offer limited warranties, support, maintenance, and commercial
* database integrations.
*
* For more information, please visit: http://www.jooq.org/licenses
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.jooq.checker;
import static com.sun.source.util.TreePath.getPath;
import static java.util.Arrays.asList;
import static org.checkerframework.javacutil.TreeUtils.elementFromDeclaration;
import static org.checkerframework.javacutil.TreeUtils.elementFromUse;
import static org.checkerframework.javacutil.TreeUtils.enclosingMethod;
import java.io.PrintWriter;
import java.util.EnumSet;
import javax.lang.model.element.Element;
import javax.lang.model.element.ExecutableElement;
import org.jooq.Allow;
import org.jooq.Require;
import org.jooq.SQLDialect;
import org.jooq.Support;
import org.checkerframework.framework.source.SourceVisitor;
import com.sun.source.tree.MethodInvocationTree;
/**
* A checker to compare {@link SQLDialect} from a use-site {@link Require}
* annotation with a declaration-site {@link Support} annotation.
*
* @author Lukas Eder
*/
public class SQLDialectChecker extends AbstractChecker {
@Override
protected SourceVisitor<Void, Void> createSourceVisitor() {
return new SourceVisitor<Void, Void>(getChecker()) {
@Override
public Void visitMethodInvocation(MethodInvocationTree node, Void p) {
try {
ExecutableElement elementFromUse = elementFromUse(node);
Support support = elementFromUse.getAnnotation(Support.class);
// In the absence of a @Support annotation, or if no SQLDialect is supplied,
// all jOOQ API method calls will type check.
if (support != null && support.value().length > 0) {
Element enclosing = elementFromDeclaration(enclosingMethod(getPath(root, node)));
EnumSet<SQLDialect> supported = EnumSet.copyOf(asList(support.value()));
EnumSet<SQLDialect> allowed = EnumSet.noneOf(SQLDialect.class);
EnumSet<SQLDialect> required = EnumSet.noneOf(SQLDialect.class);
boolean evaluateRequire = true;
while (enclosing != null) {
Allow allow = enclosing.getAnnotation(Allow.class);
if (allow != null)
allowed.addAll(asList(allow.value()));
if (evaluateRequire) {
Require require = enclosing.getAnnotation(Require.class);
if (require != null) {
evaluateRequire = false;
required.clear();
required.addAll(asList(require.value()));
}
}
enclosing = enclosing.getEnclosingElement();
}
if (allowed.isEmpty())
error(node, "No jOOQ API usage is allowed at current scope. Use @Allow.");
if (required.isEmpty())
error(node, "No jOOQ API usage is allowed at current scope due to conflicting @Require specification.");
boolean allowedFail = true;
allowedLoop:
for (SQLDialect a : allowed) {
for (SQLDialect s : supported) {
if (a.supports(s)) {
allowedFail = false;
break allowedLoop;
}
}
}
if (allowedFail)
error(node, "The allowed dialects in scope " + allowed + " do not include any of the supported dialects: " + supported);
boolean requiredFail = false;
requiredLoop:
for (SQLDialect r : required) {
for (SQLDialect s : supported)
if (r.supports(s))
continue requiredLoop;
requiredFail = true;
break requiredLoop;
}
if (requiredFail)
error(node, "Not all of the required dialects " + required + " from the current scope are supported " + supported);
}
}
catch (final Exception e) {
print(new Printer() {
@Override
public void print(PrintWriter t) {
e.printStackTrace(t);
}
});
}
return super.visitMethodInvocation(node, p);
}
};
}
}
|
[
"lukas.eder@gmail.com"
] |
lukas.eder@gmail.com
|
1e60fc2b33d6362e6bfb4a6a46bdd72ab23b2699
|
eae6fb036cb14222207903f48e8329e1eae1cf94
|
/Core/src/test/java/prompto/transpiler/JSSet.java
|
2a5c252b1ab3bb388f9dd11bff3d301596d09cd3
|
[] |
no_license
|
balqeesawawde/prompto-java
|
0cd765d3d3a7e2d530efef6208037b2e0c5e018f
|
9991ed6c3f47050ad882d87bee0840fbe8754976
|
refs/heads/master
| 2023-03-13T06:37:53.919759
| 2021-03-06T16:49:15
| 2021-03-06T16:49:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,046
|
java
|
package prompto.transpiler;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import jdk.nashorn.api.scripting.ScriptObjectMirror;
@SuppressWarnings("restriction")
public class JSSet {
Set<Object> set = new HashSet<>();
public JSSet() {
}
public JSSet(Object values) {
if(values instanceof ScriptObjectMirror) {
List<Object> list = convert((ScriptObjectMirror)values);
set.addAll(list);
} else if(values instanceof JSSet) {
set.addAll(((JSSet)values).set);
} else if(values != null)
throw new UnsupportedOperationException(values.getClass().getName());
}
public Set<Object> getSet() {
return set;
}
private List<Object> convert(ScriptObjectMirror values) {
Set<String> reserved = new HashSet<>(Arrays.asList("length", "mutable"));
return values.entrySet().stream()
.filter(entry -> !reserved.contains(entry.getKey()))
.filter(entry -> !isFunction(entry.getValue()))
.map(Map.Entry::getValue)
.collect(Collectors.toList());
}
private boolean isFunction(Object value) {
if(value instanceof ScriptObjectMirror)
return ((ScriptObjectMirror)value).isFunction();
return false;
}
public int getSize() {
return set.size();
}
public boolean has(Object value) {
return set.contains(value);
}
public void add(Object value) {
set.add(value);
}
public Object values() {
return new SetIterator();
}
public class SetIterator {
Iterator<Object> iterator;
public SetIterator() {
this.iterator = set.iterator();
}
public JSSet JSSet() {
return JSSet.this;
}
public int getLength() {
return set.size();
}
public Object next() {
SetIteration iter = new SetIteration();
if(iterator.hasNext()) {
iter.value = iterator.next();
iter.done = false;
} else
iter.done = true;
return iter;
}
public class SetIteration {
public boolean done;
public Object value;
}
}
}
|
[
"eric.vergnaud@wanadoo.fr"
] |
eric.vergnaud@wanadoo.fr
|
47ddde07ad1302909c0b594e014cb901c25b5dd9
|
7c7a244eb94f79b52f2bfbc80a5dc4a63a74ecda
|
/SpringBoot - Advance/spring-boot-06-cloud/eureka-server/src/test/java/com/atsanstwy27/eurekaserver/EurekaServerApplicationTests.java
|
3adb1a3eb8d69cc12b7b944d35db272cb277c14f
|
[] |
no_license
|
sanstwy777/SpringBoot
|
6965d212a5be76258340c19b72c79dbc6a00e46d
|
7a1e1b00f9c7ee9673c6e424245385be3d456e24
|
refs/heads/master
| 2023-01-04T17:00:38.795413
| 2020-08-09T17:17:44
| 2020-11-01T04:03:58
| 286,282,772
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 223
|
java
|
package com.atkjs927.eurekaserver;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class EurekaServerApplicationTests {
@Test
void contextLoads() {
}
}
|
[
"sanstwy777@outlook.com"
] |
sanstwy777@outlook.com
|
8c6d45e6de96023b8cb3b173411d3a2021e73a2d
|
6e57bdc0a6cd18f9f546559875256c4570256c45
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/AospLauncherStrategy.java
|
10a4930bb019fe0746df43543a05142c47826e66
|
[] |
no_license
|
dongdong331/test
|
969d6e945f7f21a5819cd1d5f536d12c552e825c
|
2ba7bcea4f9d9715cbb1c4e69271f7b185a0786e
|
refs/heads/master
| 2023-03-07T06:56:55.210503
| 2020-12-07T04:15:33
| 2020-12-07T04:15:33
| 134,398,935
| 2
| 1
| null | 2022-11-21T07:53:41
| 2018-05-22T10:26:42
| null |
UTF-8
|
Java
| false
| false
| 7,147
|
java
|
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.support.test.launcherhelper;
import android.support.test.uiautomator.By;
import android.support.test.uiautomator.BySelector;
import android.support.test.uiautomator.Direction;
import android.support.test.uiautomator.UiDevice;
import android.support.test.uiautomator.UiObject2;
import android.support.test.uiautomator.Until;
import android.widget.Button;
import android.widget.TextView;
import junit.framework.Assert;
/**
* Implementation of {@link ILauncherStrategy} to support AOSP launcher
*/
public class AospLauncherStrategy implements ILauncherStrategy {
private static final String LAUNCHER_PKG = "com.android.launcher";
private static final BySelector APPS_CONTAINER =
By.res(LAUNCHER_PKG, "apps_customize_pane_content");
private static final BySelector WORKSPACE = By.res(LAUNCHER_PKG, "workspace");
private static final BySelector HOTSEAT = By.res(LAUNCHER_PKG, "hotseat");
private UiDevice mDevice;
/**
* {@inheritDoc}
*/
@Override
public void open() {
// if we see hotseat, assume at home screen already
if (!mDevice.hasObject(getHotSeatSelector())) {
mDevice.pressHome();
Assert.assertTrue("Failed to open launcher",
mDevice.wait(Until.hasObject(By.pkg(LAUNCHER_PKG)), 5000));
mDevice.waitForIdle();
}
// remove cling if it exists
UiObject2 cling = mDevice.findObject(By.res(LAUNCHER_PKG, "workspace_cling"));
if (cling != null) {
cling.findObject(By.clazz(Button.class).text("OK")).click();
}
}
/**
* {@inheritDoc}
*/
@Override
public UiObject2 openAllApps(boolean reset) {
// if we see apps container, skip the opening step, only ensure that the "Apps" tab is
// selected
if (!mDevice.hasObject(APPS_CONTAINER)) {
open();
// taps on the "apps" button at the bottom of the screen
mDevice.findObject(By.desc("Apps")).click();
// wait until hotseat disappears, so that we know that we are no longer on home screen
mDevice.wait(Until.gone(getHotSeatSelector()), 2000);
mDevice.waitForIdle();
}
// check if there's a "cling" on screen
UiObject2 cling = mDevice.findObject(By.res(LAUNCHER_PKG, "cling_dismiss")
.clazz(Button.class).text("OK"));
if (cling != null) {
cling.click();
}
// taps on the "apps" page selector near the top of the screen
UiObject2 appsTab = mDevice.findObject(By.desc("Apps")
.clazz(TextView.class).selected(false));
if (appsTab != null) {
appsTab.click();
}
UiObject2 allAppsContainer = mDevice.findObject(APPS_CONTAINER);
Assert.assertNotNull("openAllApps: did not find all apps container", allAppsContainer);
if (reset) {
CommonLauncherHelper.getInstance(mDevice).scrollBackToBeginning(allAppsContainer,
Direction.reverse(getAllAppsScrollDirection()));
}
return allAppsContainer;
}
/**
* {@inheritDoc}
*/
@Override
public Direction getAllAppsScrollDirection() {
return Direction.RIGHT;
}
/**
* {@inheritDoc}
*/
@Override
public UiObject2 openAllWidgets(boolean reset) {
boolean needReset = true;
// if we see apps container, skip the opening step, only ensure that the "Widgets" tab is
// selected
if (!mDevice.hasObject(APPS_CONTAINER)) {
open();
// taps on the "apps" button at the bottom of the screen
mDevice.findObject(getAllAppsButtonSelector()).click();
// wait until hotseat disappears, so that we know that we are no longer on home screen
mDevice.wait(Until.gone(getHotSeatSelector()), 2000);
mDevice.waitForIdle();
}
// taps on the "Widgets" page selector near the top of the screen
UiObject2 widgetsTab = mDevice.findObject(By.desc("Widgets")
.clazz(TextView.class).selected(false));
if (widgetsTab != null) {
widgetsTab.click();
// if we switched into widget page, then there's no need to reset, since it will go
// back to beginning
needReset = false;
}
UiObject2 allWidgetsContainer = mDevice.findObject(APPS_CONTAINER);
Assert.assertNotNull(
"openAllWidgets: did not find all widgets container", allWidgetsContainer);
if (reset && needReset) {
// only way to reset is to switch to "Apps" then back to "Widget", scroll to beginning
// won't work
mDevice.findObject(By.desc("Apps").selected(false)).click();
mDevice.waitForIdle();
mDevice.findObject(By.desc("Widgets").selected(false)).click();
mDevice.waitForIdle();
}
return allWidgetsContainer;
}
/**
* {@inheritDoc}
*/
@Override
public Direction getAllWidgetsScrollDirection() {
return Direction.RIGHT;
}
/**
* {@inheritDoc}
*/
@Override
public long launch(String appName, String packageName) {
return CommonLauncherHelper.getInstance(mDevice).launchApp(this,
By.res("").clazz(TextView.class).desc(appName), packageName);
}
/**
* {@inheritDoc}
*/
@Override
public void setUiDevice(UiDevice uiDevice) {
mDevice = uiDevice;
}
/**
* {@inheritDoc}
*/
@Override
public String getSupportedLauncherPackage() {
return LAUNCHER_PKG;
}
/**
* {@inheritDoc}
*/
@Override
public BySelector getAllAppsButtonSelector() {
return By.desc("Apps");
}
/**
* {@inheritDoc}
*/
@Override
public BySelector getAllAppsSelector() {
return APPS_CONTAINER;
}
/**
* {@inheritDoc}
*/
@Override
public BySelector getAllWidgetsSelector() {
return APPS_CONTAINER;
}
/**
* {@inheritDoc}
*/
@Override
public BySelector getWorkspaceSelector() {
return WORKSPACE;
}
/**
* {@inheritDoc}
*/
@Override
public BySelector getHotSeatSelector() {
return HOTSEAT;
}
/**
* {@inheritDoc}
*/
@Override
public Direction getWorkspaceScrollDirection() {
return Direction.RIGHT;
}
}
|
[
"dongdong331@163.com"
] |
dongdong331@163.com
|
e23759059555a49c00cb9c7025e8e85e04579c88
|
c00b0135e26f8e3b9e97e0916529318fe1816dbe
|
/bitcamp-java-application4-server/0920/src/main/java/com/eomcs/lms/servlet/BoardListServlet.java
|
83fdf85406860fa90198d16a335a691554f58923
|
[] |
no_license
|
jisoo0516/bitcamp-java-20190527
|
40c0ae9fe7b07201cd977de7c12a182e398487ec
|
0e1efcd7405f088f6ad0fbcc21778d9142968f4c
|
refs/heads/master
| 2020-06-13T20:15:13.951155
| 2019-10-11T10:55:15
| 2019-10-11T10:55:15
| 194,775,331
| 0
| 0
| null | 2020-04-30T11:45:58
| 2019-07-02T02:41:01
|
Java
|
UTF-8
|
Java
| false
| false
| 1,585
|
java
|
package com.eomcs.lms.servlet;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.context.ApplicationContext;
import com.eomcs.lms.dao.BoardDao;
import com.eomcs.lms.domain.Board;
@WebServlet("/board/list")
public class BoardListServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
private BoardDao boardDao;
@Override
public void init() throws ServletException {
ApplicationContext appCtx =
(ApplicationContext) getServletContext().getAttribute("iocContainer");
boardDao = appCtx.getBean(BoardDao.class);
}
@Override
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
// 다른 서블릿/JSP 으로 인클루딩 할 때는 이쪽에서 콘텐츠 타입을 설정해야 한다.
response.setContentType("text/html;charset=UTF-8");
try {
List<Board> boards = boardDao.findAll();
request.setAttribute("boards", boards);
request.getRequestDispatcher("/jsp/board/list.jsp").include(request, response);
} catch (Exception e) {
request.setAttribute("message", "데이터 목록을 가져오는데 실패했습니다!");
request.setAttribute("error", e);
request.getRequestDispatcher("/jsp/error.jsp").include(request, response);
}
}
}
|
[
"classy960516@gmail.com"
] |
classy960516@gmail.com
|
721fba563eb822c898d23581e7fbd1bdc21e39c4
|
ff23e5c890216a1a63278ecb40cd7ac79ab7a4cd
|
/clients/client/java/src/test/java/sh/ory/model/SessionAuthenticationMethodTest.java
|
c063510833a7d95bb5048f8a8b1bc22277497f57
|
[
"Apache-2.0"
] |
permissive
|
ory/sdk
|
fcc212166a92de9d27b2dc8ff587dcd6919e53a0
|
7184e13464948d68964f9b605834e56e402ec78a
|
refs/heads/master
| 2023-09-01T10:04:39.547228
| 2023-08-31T08:46:23
| 2023-08-31T08:46:23
| 230,928,630
| 130
| 85
|
Apache-2.0
| 2023-08-14T11:09:31
| 2019-12-30T14:21:17
|
C#
|
UTF-8
|
Java
| false
| false
| 1,860
|
java
|
/*
* Ory APIs
* Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
*
* The version of the OpenAPI document: v1.1.51
* Contact: support@ory.sh
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package sh.ory.model;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.time.OffsetDateTime;
import sh.ory.model.AuthenticatorAssuranceLevel;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for SessionAuthenticationMethod
*/
public class SessionAuthenticationMethodTest {
private final SessionAuthenticationMethod model = new SessionAuthenticationMethod();
/**
* Model tests for SessionAuthenticationMethod
*/
@Test
public void testSessionAuthenticationMethod() {
// TODO: test SessionAuthenticationMethod
}
/**
* Test the property 'aal'
*/
@Test
public void aalTest() {
// TODO: test aal
}
/**
* Test the property 'completedAt'
*/
@Test
public void completedAtTest() {
// TODO: test completedAt
}
/**
* Test the property 'method'
*/
@Test
public void methodTest() {
// TODO: test method
}
/**
* Test the property 'provider'
*/
@Test
public void providerTest() {
// TODO: test provider
}
}
|
[
"3372410+aeneasr@users.noreply.github.com"
] |
3372410+aeneasr@users.noreply.github.com
|
4cbdaaa5d71e03ea1039426c13f891d79b1a32ae
|
b00c54389a95d81a22e361fa9f8bdf5a2edc93e3
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/MimeHeader.java
|
c578bad08be45330fa2ffbca24f8d824c0fa22f9
|
[] |
no_license
|
mirek190/x86-android-5.0
|
9d1756fa7ff2f423887aa22694bd737eb634ef23
|
eb1029956682072bb7404192a80214189f0dc73b
|
refs/heads/master
| 2020-05-27T01:09:51.830208
| 2015-10-07T22:47:36
| 2015-10-07T22:47:36
| 41,942,802
| 15
| 20
| null | 2020-03-09T00:21:03
| 2015-09-05T00:11:19
| null |
UTF-8
|
Java
| false
| false
| 5,251
|
java
|
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.emailcommon.internet;
import com.android.emailcommon.mail.MessagingException;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
public class MimeHeader {
/**
* Application specific header that contains Store specific information about an attachment.
* In IMAP this contains the IMAP BODYSTRUCTURE part id so that the ImapStore can later
* retrieve the attachment at will from the server.
* The info is recorded from this header on LocalStore.appendMessage and is put back
* into the MIME data by LocalStore.fetch.
*/
public static final String HEADER_ANDROID_ATTACHMENT_STORE_DATA = "X-Android-Attachment-StoreData";
public static final String HEADER_CONTENT_TYPE = "Content-Type";
public static final String HEADER_CONTENT_TRANSFER_ENCODING = "Content-Transfer-Encoding";
public static final String HEADER_CONTENT_DISPOSITION = "Content-Disposition";
public static final String HEADER_CONTENT_ID = "Content-ID";
/**
* Fields that should be omitted when writing the header using writeTo()
*/
private static final String[] WRITE_OMIT_FIELDS = {
// HEADER_ANDROID_ATTACHMENT_DOWNLOADED,
// HEADER_ANDROID_ATTACHMENT_ID,
HEADER_ANDROID_ATTACHMENT_STORE_DATA
};
protected final ArrayList<Field> mFields = new ArrayList<Field>();
public void clear() {
mFields.clear();
}
public String getFirstHeader(String name) throws MessagingException {
String[] header = getHeader(name);
if (header == null) {
return null;
}
return header[0];
}
public void addHeader(String name, String value) throws MessagingException {
mFields.add(new Field(name, value));
}
public void setHeader(String name, String value) throws MessagingException {
if (name == null || value == null) {
return;
}
removeHeader(name);
addHeader(name, value);
}
public String[] getHeader(String name) throws MessagingException {
ArrayList<String> values = new ArrayList<String>();
for (Field field : mFields) {
if (field.name.equalsIgnoreCase(name)) {
values.add(field.value);
}
}
if (values.size() == 0) {
return null;
}
return values.toArray(new String[] {});
}
public void removeHeader(String name) throws MessagingException {
ArrayList<Field> removeFields = new ArrayList<Field>();
for (Field field : mFields) {
if (field.name.equalsIgnoreCase(name)) {
removeFields.add(field);
}
}
mFields.removeAll(removeFields);
}
/**
* Write header into String
*
* @return CR-NL separated header string except the headers in writeOmitFields
* null if header is empty
*/
public String writeToString() {
if (mFields.size() == 0) {
return null;
}
StringBuilder builder = new StringBuilder();
for (Field field : mFields) {
if (!arrayContains(WRITE_OMIT_FIELDS, field.name)) {
builder.append(field.name + ": " + field.value + "\r\n");
}
}
return builder.toString();
}
public void writeTo(OutputStream out) throws IOException, MessagingException {
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out), 1024);
for (Field field : mFields) {
if (!arrayContains(WRITE_OMIT_FIELDS, field.name)) {
writer.write(field.name + ": " + field.value + "\r\n");
}
}
writer.flush();
}
private static class Field {
final String name;
final String value;
public Field(String name, String value) {
this.name = name;
this.value = value;
}
@Override
public String toString() {
return name + "=" + value;
}
}
@Override
public String toString() {
return (mFields == null) ? null : mFields.toString();
}
public final static boolean arrayContains(Object[] a, Object o) {
int index = arrayIndex(a, o);
return (index >= 0);
}
public final static int arrayIndex(Object[] a, Object o) {
for (int i = 0, count = a.length; i < count; i++) {
if (a[i].equals(o)) {
return i;
}
}
return -1;
}
}
|
[
"mirek190@gmail.com"
] |
mirek190@gmail.com
|
3678f13b36f8bbb51bc86e87d30e37699950bedf
|
56456387c8a2ff1062f34780b471712cc2a49b71
|
/com/bumptech/glide/load/engine/Engine$DecodeJobFactory.java
|
3e2f7af4b52620b7b9403e607d24e47c466e36ce
|
[] |
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
| 1,884
|
java
|
package com.bumptech.glide.load.engine;
import android.support.v4.h.k.a;
import com.bumptech.glide.GlideContext;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.Key;
import com.bumptech.glide.load.Options;
import com.bumptech.glide.util.Preconditions;
import com.bumptech.glide.util.pool.FactoryPools;
import java.util.Map;
class Engine$DecodeJobFactory
{
private int creationOrder;
final DecodeJob.DiskCacheProvider diskCacheProvider;
final k.a pool;
Engine$DecodeJobFactory(DecodeJob.DiskCacheProvider paramDiskCacheProvider)
{
Engine.DecodeJobFactory.1 local1 = new com/bumptech/glide/load/engine/Engine$DecodeJobFactory$1;
local1.<init>(this);
k.a locala = FactoryPools.simple(150, local1);
this.pool = locala;
this.diskCacheProvider = paramDiskCacheProvider;
}
DecodeJob build(GlideContext paramGlideContext, Object paramObject, EngineKey paramEngineKey, Key paramKey, int paramInt1, int paramInt2, Class paramClass1, Class paramClass2, Priority paramPriority, DiskCacheStrategy paramDiskCacheStrategy, Map paramMap, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3, Options paramOptions, DecodeJob.Callback paramCallback)
{
DecodeJob localDecodeJob = (DecodeJob)Preconditions.checkNotNull((DecodeJob)this.pool.acquire());
int i = this.creationOrder;
int j = i + 1;
this.creationOrder = j;
return localDecodeJob.init(paramGlideContext, paramObject, paramEngineKey, paramKey, paramInt1, paramInt2, paramClass1, paramClass2, paramPriority, paramDiskCacheStrategy, paramMap, paramBoolean1, paramBoolean2, paramBoolean3, paramOptions, paramCallback, i);
}
}
/* Location: C:\Users\haryo\Desktop\enjarify-master\presensi-enjarify.jar!\com\bumptech\glide\load\engine\Engine$DecodeJobFactory.class
* Java compiler version: 5 (49.0)
* JD-Core Version: 0.7.1
*/
|
[
"haryo.nendra@gmail.com"
] |
haryo.nendra@gmail.com
|
913075358c4f1c51e8031e51aec92449f5a67f7a
|
75d1f41d291ba9662b5abf12b5fd01a240f9cd5a
|
/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/crop/ImageViewUtil.java
|
5f34733bc538f8d8025229319f44965b32d358e6
|
[
"Apache-2.0"
] |
permissive
|
CrackerCat/XUI
|
4730ef38a46bf69e0cbf94ec5236fd4257b457b3
|
491d9f770fa74f51df6c50b8967810ae136ec2f1
|
refs/heads/master
| 2023-02-19T05:18:02.818052
| 2022-11-17T15:41:05
| 2022-11-17T15:41:05
| 239,412,037
| 0
| 1
|
Apache-2.0
| 2020-02-10T02:34:06
| 2020-02-10T02:34:06
| null |
UTF-8
|
Java
| false
| false
| 5,102
|
java
|
/*
* Copyright (C) 2019 xuexiangjys(xuexiangjys@163.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.
*
*/
package com.xuexiang.xui.widget.imageview.crop;
import android.graphics.Bitmap;
import android.graphics.Rect;
import android.view.View;
/**
* 图片处理工具类
*/
final class ImageViewUtil {
private ImageViewUtil() {
throw new UnsupportedOperationException("u can't instantiate me...");
}
/**
* Gets the rectangular position of a Bitmap if it were placed inside a View
* with scale type set to .
*
* @param bitmap the Bitmap
* @param view the parent View of the Bitmap
* @return the rectangular position of the Bitmap
*/
static Rect getBitmapRectCenterInside(Bitmap bitmap, View view) {
final int bitmapWidth = bitmap.getWidth();
final int bitmapHeight = bitmap.getHeight();
final int viewWidth = view.getWidth();
final int viewHeight = view.getHeight();
return getBitmapRectCenterInsideHelper(bitmapWidth, bitmapHeight, viewWidth, viewHeight);
}
/**
* Gets the rectangular position of a Bitmap if it were placed inside a View
* with scale type set to .
*
* @param bitmapWidth the Bitmap's width
* @param bitmapHeight the Bitmap's height
* @param viewWidth the parent View's width
* @param viewHeight the parent View's height
* @return the rectangular position of the Bitmap
*/
static Rect getBitmapRectCenterInside(int bitmapWidth,
int bitmapHeight,
int viewWidth,
int viewHeight) {
return getBitmapRectCenterInsideHelper(bitmapWidth, bitmapHeight, viewWidth, viewHeight);
}
/**
* Helper that does the work of the above functions. Gets the rectangular
* position of a Bitmap if it were placed inside a View with scale type set
* to
*
* @param bitmapWidth the Bitmap's width
* @param bitmapHeight the Bitmap's height
* @param viewWidth the parent View's width
* @param viewHeight the parent View's height
* @return the rectangular position of the Bitmap
*/
private static Rect getBitmapRectCenterInsideHelper(int bitmapWidth,
int bitmapHeight,
int viewWidth,
int viewHeight) {
double resultWidth;
double resultHeight;
int resultX;
int resultY;
double viewToBitmapWidthRatio = Double.POSITIVE_INFINITY;
double viewToBitmapHeightRatio = Double.POSITIVE_INFINITY;
// Checks if either width or height needs to be fixed
if (viewWidth < bitmapWidth) {
viewToBitmapWidthRatio = (double) viewWidth / (double) bitmapWidth;
}
if (viewHeight < bitmapHeight) {
viewToBitmapHeightRatio = (double) viewHeight / (double) bitmapHeight;
}
// If either needs to be fixed, choose smallest ratio and calculate from
// there
if (viewToBitmapWidthRatio != Double.POSITIVE_INFINITY || viewToBitmapHeightRatio != Double.POSITIVE_INFINITY) {
if (viewToBitmapWidthRatio <= viewToBitmapHeightRatio) {
resultWidth = viewWidth;
resultHeight = (bitmapHeight * resultWidth / bitmapWidth);
} else {
resultHeight = viewHeight;
resultWidth = (bitmapWidth * resultHeight / bitmapHeight);
}
}
// Otherwise, the picture is within frame layout bounds. Desired width
// is simply picture size
else {
resultHeight = bitmapHeight;
resultWidth = bitmapWidth;
}
// Calculate the position of the bitmap inside the ImageView.
if (resultWidth == viewWidth) {
resultX = 0;
resultY = (int) Math.round((viewHeight - resultHeight) / 2);
} else if (resultHeight == viewHeight) {
resultX = (int) Math.round((viewWidth - resultWidth) / 2);
resultY = 0;
} else {
resultX = (int) Math.round((viewWidth - resultWidth) / 2);
resultY = (int) Math.round((viewHeight - resultHeight) / 2);
}
return new Rect(resultX,
resultY,
resultX + (int) Math.ceil(resultWidth),
resultY + (int) Math.ceil(resultHeight));
}
}
|
[
"xuexiangjys@163.com"
] |
xuexiangjys@163.com
|
7be76e862904a6c00f6f87dd871384c4dc9c8215
|
54556275ca0ad0fb4850b92e5921725da73e3473
|
/src/org/apache/http/message/BasicHeaderElementIterator.java
|
84eebbc0550fd4840c8277c68fe2ff3dbd1335c0
|
[] |
no_license
|
xSke/CoreServer
|
f7ea539617c08e4bd2206f8fa3c13c58dfb76d30
|
d3655412008da22b58f031f4e7f08a6f6940bf46
|
refs/heads/master
| 2020-03-19T02:33:15.256865
| 2018-05-31T22:00:17
| 2018-05-31T22:00:17
| 135,638,686
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,573
|
java
|
/*
* Decompiled with CFR 0_129.
*/
package org.apache.http.message;
import java.util.NoSuchElementException;
import org.apache.http.FormattedHeader;
import org.apache.http.Header;
import org.apache.http.HeaderElement;
import org.apache.http.HeaderElementIterator;
import org.apache.http.HeaderIterator;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.message.BasicHeaderValueParser;
import org.apache.http.message.HeaderValueParser;
import org.apache.http.message.ParserCursor;
import org.apache.http.util.Args;
import org.apache.http.util.CharArrayBuffer;
@NotThreadSafe
public class BasicHeaderElementIterator
implements HeaderElementIterator {
private final HeaderIterator headerIt;
private final HeaderValueParser parser;
private HeaderElement currentElement = null;
private CharArrayBuffer buffer = null;
private ParserCursor cursor = null;
public BasicHeaderElementIterator(HeaderIterator headerIterator, HeaderValueParser parser) {
this.headerIt = Args.notNull(headerIterator, "Header iterator");
this.parser = Args.notNull(parser, "Parser");
}
public BasicHeaderElementIterator(HeaderIterator headerIterator) {
this(headerIterator, BasicHeaderValueParser.INSTANCE);
}
private void bufferHeaderValue() {
this.cursor = null;
this.buffer = null;
while (this.headerIt.hasNext()) {
Header h = this.headerIt.nextHeader();
if (h instanceof FormattedHeader) {
this.buffer = ((FormattedHeader)h).getBuffer();
this.cursor = new ParserCursor(0, this.buffer.length());
this.cursor.updatePos(((FormattedHeader)h).getValuePos());
break;
}
String value = h.getValue();
if (value == null) continue;
this.buffer = new CharArrayBuffer(value.length());
this.buffer.append(value);
this.cursor = new ParserCursor(0, this.buffer.length());
break;
}
}
private void parseNextElement() {
while (this.headerIt.hasNext() || this.cursor != null) {
if (this.cursor == null || this.cursor.atEnd()) {
this.bufferHeaderValue();
}
if (this.cursor == null) continue;
while (!this.cursor.atEnd()) {
HeaderElement e = this.parser.parseHeaderElement(this.buffer, this.cursor);
if (e.getName().length() == 0 && e.getValue() == null) continue;
this.currentElement = e;
return;
}
if (!this.cursor.atEnd()) continue;
this.cursor = null;
this.buffer = null;
}
}
public boolean hasNext() {
if (this.currentElement == null) {
this.parseNextElement();
}
return this.currentElement != null;
}
public HeaderElement nextElement() throws NoSuchElementException {
if (this.currentElement == null) {
this.parseNextElement();
}
if (this.currentElement == null) {
throw new NoSuchElementException("No more header elements available");
}
HeaderElement element = this.currentElement;
this.currentElement = null;
return element;
}
public final Object next() throws NoSuchElementException {
return this.nextElement();
}
public void remove() throws UnsupportedOperationException {
throw new UnsupportedOperationException("Remove not supported");
}
}
|
[
"voltasalt@gmail.com"
] |
voltasalt@gmail.com
|
db2ea7eae4398ffade1767e5beffae8c1335dde9
|
b2a50f92f359a63a4adf9c42e7d9734b1f87c50e
|
/src/test/java/com/epmresources/server/web/rest/PaypalClientResourceIT.java
|
26943f278479ad2e2c5597c52bdaf0dd00d89a3e
|
[] |
no_license
|
thetlwinoo/epm-resources
|
a9dbc08bacd45a0e57c31c14aff3a3e5c6a82597
|
88f2918de8c07cd1c3a2f701c4adfa97305b974d
|
refs/heads/master
| 2022-12-26T15:46:06.041561
| 2019-12-20T07:35:25
| 2019-12-20T07:35:25
| 220,428,422
| 0
| 0
| null | 2022-12-16T04:40:56
| 2019-11-08T09:06:17
|
Java
|
UTF-8
|
Java
| false
| false
| 1,574
|
java
|
package com.epmresources.server.web.rest;
import com.epmresources.server.EpmresourcesApp;
import com.epmresources.server.service.PaypalClientService;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.MockitoAnnotations;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
/**
* Test class for the PaypalClientResource REST controller.
*
* @see PaypalClientResource
*/
@SpringBootTest(classes = EpmresourcesApp.class)
public class PaypalClientResourceIT {
private MockMvc restMockMvc;
private final PaypalClientService paypalClientService;
public PaypalClientResourceIT(PaypalClientService paypalClientService) {
this.paypalClientService = paypalClientService;
}
@BeforeEach
public void setUp() {
MockitoAnnotations.initMocks(this);
PaypalClientResource paypalClientResource = new PaypalClientResource(paypalClientService);
restMockMvc = MockMvcBuilders
.standaloneSetup(paypalClientResource)
.build();
}
/**
* Test defaultAction
*/
@Test
public void testDefaultAction() throws Exception {
restMockMvc.perform(get("/api/paypal-client/default-action"))
.andExpect(status().isOk());
}
}
|
[
"thetlwinoo85@yahoo.com"
] |
thetlwinoo85@yahoo.com
|
cbc03dfdfea114a6c2ce25a2dc8bf78fdb5cd159
|
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
|
/benchmark/training/org/opengrok/suggest/query/SuggesterFuzzyQueryTest.java
|
80b7ecacc61746a52c98545f9557fdedb64ded1e
|
[] |
no_license
|
STAMP-project/dspot-experiments
|
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
|
121487e65cdce6988081b67f21bbc6731354a47f
|
refs/heads/master
| 2023-02-07T14:40:12.919811
| 2019-11-06T07:17:09
| 2019-11-06T07:17:09
| 75,710,758
| 14
| 19
| null | 2023-01-26T23:57:41
| 2016-12-06T08:27:42
| null |
UTF-8
|
Java
| false
| false
| 1,159
|
java
|
/**
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/**
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
*/
package org.opengrok.suggest.query;
import org.apache.lucene.index.Term;
import org.junit.Assert;
import org.junit.Test;
public class SuggesterFuzzyQueryTest {
@Test
public void testLength() {
SuggesterFuzzyQuery q = new SuggesterFuzzyQuery(new Term("test", "test"), 2, 0);
Assert.assertEquals("test".length(), q.length());
}
}
|
[
"benjamin.danglot@inria.fr"
] |
benjamin.danglot@inria.fr
|
6591c4832fb5a13ec398f948377231da8f3aec26
|
6d95c93db3b25292392b25bff82a2637eee875c9
|
/app/src/main/java/com/aigoule/starapp/fragment/ThematicVideoFragment.java
|
0da2ca122c45135d748215f1a5f64b5d6b4ea7d1
|
[] |
no_license
|
jason19990099/xiaohuangya
|
d4a5803d2e6d5f44be5ec9eb6152c9dbb45281d7
|
e2c7928476426aa80bef034ec1bdf5dcf1bed871
|
refs/heads/master
| 2020-06-23T08:59:29.919563
| 2019-08-27T08:31:07
| 2019-08-27T08:31:07
| 198,577,986
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,285
|
java
|
package com.aigoule.starapp.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import com.aigoule.starapp.R;
import com.aigoule.starapp.adapter.ThemeVideoListAdapter;
import com.aigoule.starapp.api.HttpCallback;
import com.aigoule.starapp.api.HttpRequest;
import com.aigoule.starapp.model.AllvideoThemeModel;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
public class ThematicVideoFragment extends Fragment implements SwipeRefreshLayout.OnRefreshListener {
Unbinder unbinder;
@BindView(R.id.lv_videotheme)
ListView lvVideotheme;
@BindView(R.id.swipe_container)
SwipeRefreshLayout swipeContainer;
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_thematicvideo, null);
unbinder = ButterKnife.bind(this, view);
swipeContainer.setOnRefreshListener(ThematicVideoFragment.this);
swipeContainer.setColorSchemeResources(android.R.color.holo_orange_dark,
android.R.color.holo_green_light,
android.R.color.holo_orange_light,
android.R.color.holo_red_light);
getAllTheme();
return view;
}
private void getAllTheme() {
HttpRequest.getInstance().getALLtheme(ThematicVideoFragment.this, new HttpCallback<AllvideoThemeModel>() {
@Override
public void onSuccess(AllvideoThemeModel data) {
ThemeVideoListAdapter adapter = new ThemeVideoListAdapter(data.getData(), getActivity());
lvVideotheme.setAdapter(adapter);
adapter.notifyDataSetChanged();
}
@Override
public void onFailure(int msgCode, String errorMsg) {
}
});
}
@Override
public void onRefresh() {
getAllTheme();
swipeContainer.setRefreshing(false);
}
}
|
[
"jason19990099@gmail.com"
] |
jason19990099@gmail.com
|
7def2cbb7322fa7c433dd23e1494720ae177c394
|
13496701ebeafb7eb840f409d8d196f2a1dd20bf
|
/isuite-core-ui/src/main/java/gov/nwcg/isuite/core/vo/CostSettingsVo.java
|
3c82cc8fad6b8b0634f7939878d103d09560efc3
|
[] |
no_license
|
paulduong222/development
|
9a79c65e79bdf3fb35e505355e7bd66652f3817c
|
ace0e056d7e6f2f056daa3dd34b7cdbea983612b
|
refs/heads/master
| 2023-01-09T23:01:17.546717
| 2019-09-19T21:49:27
| 2019-09-19T21:49:27
| 209,649,814
| 0
| 0
| null | 2023-01-07T09:56:09
| 2019-09-19T21:15:13
|
Java
|
UTF-8
|
Java
| false
| false
| 1,368
|
java
|
package gov.nwcg.isuite.core.vo;
import gov.nwcg.isuite.framework.core.vo.AbstractVo;
public class CostSettingsVo extends AbstractVo {
private Long incidentId;
private Long incidentGroupId;
private Integer costDefaultHours;
private String costDefaultHoursString;
private Boolean costAutoRun = false;
private String costAutoRunString;
public Integer getCostDefaultHours() {
return costDefaultHours;
}
public void setCostDefaultHours(Integer costDefaultHours) {
this.costDefaultHours = costDefaultHours;
}
public Boolean getCostAutoRun() {
return costAutoRun;
}
public void setCostAutoRun(Boolean costAutoRun) {
this.costAutoRun = costAutoRun;
}
public Long getIncidentId() {
return incidentId;
}
public void setIncidentId(Long incidentId) {
this.incidentId = incidentId;
}
public Long getIncidentGroupId() {
return incidentGroupId;
}
public void setIncidentGroupId(Long incidentGroupId) {
this.incidentGroupId = incidentGroupId;
}
public String getCostDefaultHoursString() {
return costDefaultHoursString;
}
public void setCostDefaultHoursString(String costDefaultHoursString) {
this.costDefaultHoursString = costDefaultHoursString;
}
public String getCostAutoRunString() {
return costAutoRunString;
}
public void setCostAutoRunString(String costAutoRunString) {
this.costAutoRunString = costAutoRunString;
}
}
|
[
"paulduong@yahoo.com"
] |
paulduong@yahoo.com
|
03aab10774fb8e02d7422745e0f24630ea70de1d
|
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
|
/sources/kotlin/coroutines/Continuation.java
|
873507777661066672f55a1e3524fd8b97782ab0
|
[] |
no_license
|
Auch-Auch/avito_source
|
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
|
76fdcc5b7e036c57ecc193e790b0582481768cdc
|
refs/heads/master
| 2023-05-06T01:32:43.014668
| 2021-05-25T10:19:22
| 2021-05-25T10:19:22
| 370,650,685
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,074
|
java
|
package kotlin.coroutines;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import org.jetbrains.annotations.NotNull;
@SinceKotlin(version = "1.3")
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\bg\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00002\u00020\u0002J \u0010\u0006\u001a\u00020\u00052\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H&ø\u0001\u0000¢\u0006\u0004\b\u0006\u0010\u0007R\u0016\u0010\u000b\u001a\u00020\b8&@&X¦\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\n\u0002\u0004\n\u0002\b\u0019¨\u0006\f"}, d2 = {"Lkotlin/coroutines/Continuation;", "T", "", "Lkotlin/Result;", "result", "", "resumeWith", "(Ljava/lang/Object;)V", "Lkotlin/coroutines/CoroutineContext;", "getContext", "()Lkotlin/coroutines/CoroutineContext;", "context", "kotlin-stdlib"}, k = 1, mv = {1, 4, 1})
public interface Continuation<T> {
@NotNull
CoroutineContext getContext();
void resumeWith(@NotNull Object obj);
}
|
[
"auchhunter@gmail.com"
] |
auchhunter@gmail.com
|
fb5d6c6d18f3c84f59abc1ce5bff4509879c830d
|
ed506d4395488ac6e397f0e13ef99557c5439a94
|
/HealthCareApp/src/com/example/healthcareapp/model/QuestionnaireDetailsItem.java
|
41b2cf426ac14a2e59f0ab502f4b8ceb3efdf201
|
[] |
no_license
|
4nakin/Healthcare-App
|
452f7ce7b46b5e461378be57fdc186e30434e18d
|
7b92fd5dc847afa134f6e0cb9f64b444770d78db
|
refs/heads/master
| 2021-01-22T10:18:51.989116
| 2013-09-25T17:06:39
| 2013-09-25T17:06:39
| 13,920,473
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,637
|
java
|
package com.example.healthcareapp.model;
public class QuestionnaireDetailsItem {
public static final int NORMAL = 0;
public static final int EDITABLE = 1;
private int mQuestionID;
private String mQuestion;
private int mType;
private String mAnswerText;
private boolean isTrue;
public QuestionnaireDetailsItem() { }
/**
*
* @param mQuestionID
*/
public QuestionnaireDetailsItem(int mQuestionID) {
super();
this.mQuestionID = mQuestionID;
}
/**
* @return the mQuestionID
*/
public int getQuestionID() {
return mQuestionID;
}
/**
* @param mQuestionID the mQuestionID to set
*/
public void setQuestionID(int mQuestionID) {
this.mQuestionID = mQuestionID;
}
/**
* @return the mQuestion
*/
public String getQuestion() {
return mQuestion;
}
/**
* @param mQuestion the mQuestion to set
*/
public void setQuestion(String mQuestion) {
this.mQuestion = mQuestion;
}
/**
* @return the mType
*/
public int getType() {
return mType;
}
/**
* @param mType the mType to set
*/
public void setType(int mType) {
this.mType = mType;
}
/**
* @return the isTrue
*/
public boolean isTrue() {
return isTrue;
}
/**
* @param isTrue the isTrue to set
*/
public void setTrue(boolean isTrue) {
this.isTrue = isTrue;
}
/**
* @return the mAnswerText
*/
public String getAnswerText() {
return mAnswerText;
}
/**
* @param mAnswerText the mAnswerText to set
*/
public void setAnswerText(String mAnswerText) {
this.mAnswerText = mAnswerText;
}
}
|
[
"strider2023@gmail.com"
] |
strider2023@gmail.com
|
b8ba91f121b7e122333a48a0cee80161277c8116
|
18e25013428dae7ab9e25c294c9c7465be1fa00f
|
/apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/service/refmetric/ServiceReferenceMetricCopy.java
|
825ebd1a070fe8039b5fb6d9db57e95a782412a2
|
[
"Apache-2.0"
] |
permissive
|
szsuyuji/incubator-skywalking
|
c5c4fde3401e8cff1042a46e66a6242b8b6bb0b2
|
121d0125a2654554fcadabcb46247ee23b8ef2ff
|
refs/heads/master
| 2020-03-07T08:46:53.438396
| 2018-04-11T02:31:24
| 2018-04-11T02:31:24
| 127,388,446
| 2
| 0
|
Apache-2.0
| 2018-04-11T02:31:25
| 2018-03-30T06:05:45
|
Java
|
UTF-8
|
Java
| false
| false
| 3,678
|
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.skywalking.apm.collector.analysis.metric.provider.worker.service.refmetric;
import org.apache.skywalking.apm.collector.storage.table.service.ServiceReferenceMetric;
/**
* @author peng-yongsheng
*/
public class ServiceReferenceMetricCopy {
public static ServiceReferenceMetric copy(ServiceReferenceMetric serviceReferenceMetric) {
ServiceReferenceMetric newServiceReferenceMetric = new ServiceReferenceMetric();
newServiceReferenceMetric.setId(serviceReferenceMetric.getId());
newServiceReferenceMetric.setMetricId(serviceReferenceMetric.getMetricId());
newServiceReferenceMetric.setSourceValue(serviceReferenceMetric.getSourceValue());
newServiceReferenceMetric.setFrontApplicationId(serviceReferenceMetric.getFrontApplicationId());
newServiceReferenceMetric.setFrontInstanceId(serviceReferenceMetric.getFrontInstanceId());
newServiceReferenceMetric.setFrontServiceId(serviceReferenceMetric.getFrontServiceId());
newServiceReferenceMetric.setBehindApplicationId(serviceReferenceMetric.getBehindApplicationId());
newServiceReferenceMetric.setBehindInstanceId(serviceReferenceMetric.getBehindInstanceId());
newServiceReferenceMetric.setBehindServiceId(serviceReferenceMetric.getBehindServiceId());
newServiceReferenceMetric.setTransactionCalls(serviceReferenceMetric.getTransactionCalls());
newServiceReferenceMetric.setTransactionDurationSum(serviceReferenceMetric.getTransactionDurationSum());
newServiceReferenceMetric.setTransactionErrorCalls(serviceReferenceMetric.getTransactionErrorCalls());
newServiceReferenceMetric.setTransactionErrorDurationSum(serviceReferenceMetric.getTransactionErrorDurationSum());
newServiceReferenceMetric.setBusinessTransactionCalls(serviceReferenceMetric.getBusinessTransactionCalls());
newServiceReferenceMetric.setBusinessTransactionDurationSum(serviceReferenceMetric.getBusinessTransactionDurationSum());
newServiceReferenceMetric.setBusinessTransactionErrorCalls(serviceReferenceMetric.getBusinessTransactionErrorCalls());
newServiceReferenceMetric.setBusinessTransactionErrorDurationSum(serviceReferenceMetric.getBusinessTransactionErrorDurationSum());
newServiceReferenceMetric.setMqTransactionCalls(serviceReferenceMetric.getMqTransactionCalls());
newServiceReferenceMetric.setMqTransactionDurationSum(serviceReferenceMetric.getMqTransactionDurationSum());
newServiceReferenceMetric.setMqTransactionErrorCalls(serviceReferenceMetric.getMqTransactionErrorCalls());
newServiceReferenceMetric.setMqTransactionErrorDurationSum(serviceReferenceMetric.getMqTransactionErrorDurationSum());
newServiceReferenceMetric.setTimeBucket(serviceReferenceMetric.getTimeBucket());
return newServiceReferenceMetric;
}
}
|
[
"8082209@qq.com"
] |
8082209@qq.com
|
71b7ea02dccb65f8157a7184abef54c521de482b
|
10ed26886054ca1f6a53cd28b1a05d72cf130f52
|
/app/src/main/java/com/forbitbd/automation/ui/signup/SignUpActivity.java
|
e82b9a71a962083c26a7c35a0f53b404b8e5ddfb
|
[] |
no_license
|
sohel2178/Automation_Android
|
bc736785c29ca49460585f800c142a1dcb63a5f3
|
f0b2d27339a853cc88a11658a6152f5f38f617ec
|
refs/heads/master
| 2022-04-05T16:01:18.344869
| 2020-02-19T06:24:15
| 2020-02-19T06:24:15
| 229,426,738
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,874
|
java
|
package com.forbitbd.automation.ui.signup;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.forbitbd.androidutils.utils.Constant;
import com.forbitbd.androidutils.utils.PrebaseActivity;
import com.forbitbd.automation.R;
import com.forbitbd.automation.ui.login.dialog.DialogClickListener;
import com.forbitbd.automation.ui.login.dialog.InfoDialog;
import com.google.android.material.textfield.TextInputLayout;
public class SignUpActivity extends PrebaseActivity implements View.OnClickListener,SignUpContract.View{
private TextView tvSignUp,tvLogin;
private SignUpPresenter mPresenter;
private TextInputLayout tiEmail,tiPassword;
private EditText etEmail,etPassword;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_sign_up);
mPresenter = new SignUpPresenter(this);
initView();
}
private void initView() {
tvSignUp = findViewById(R.id.sign_up);
tvLogin = findViewById(R.id.login);
tvSignUp.setOnClickListener(this);
tvLogin.setOnClickListener(this);
etEmail = findViewById(R.id.email);
etPassword = findViewById(R.id.password);
tiEmail = findViewById(R.id.ti_email);
tiPassword = findViewById(R.id.ti_password);
}
@Override
public void onClick(View view) {
switch (view.getId()){
case R.id.sign_up:
String email = etEmail.getText().toString().trim();
String password = etPassword.getText().toString().trim();
boolean valid = mPresenter.validate(email,password);
if(!valid){
return;
}
mPresenter.signUp(email,password);
break;
case R.id.login:
startLoginActivity();
break;
}
}
@Override
public void clearPreError() {
tiEmail.setErrorEnabled(false);
tiPassword.setErrorEnabled(false);
}
@Override
public void showErrorMessage(String message, int fieldId) {
switch (fieldId){
case 1:
etEmail.requestFocus();
tiEmail.setError(message);
break;
case 2:
etPassword.requestFocus();
tiPassword.setError(message);
break;
}
}
@Override
public void startLoginActivity() {
onBackPressed();
}
@Override
public void showToast(String message, int type) {
Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
}
@Override
public void showDialog() {
showProgressDialog();
}
@Override
public void hideDialog() {
hideProgressDialog();
}
@Override
public void showSignupSuceesDialog() {
InfoDialog infoDialog =InfoDialog.getInstance();
Bundle bundle = new Bundle();
bundle.putString(Constant.CONTENT,"We send a verification mail to your Email. Please verify and then Login");
infoDialog.setListener(new DialogClickListener() {
@Override
public void positiveButtonClick() {
SignUpActivity.this.onBackPressed();
}
});
infoDialog.setArguments(bundle);
infoDialog.show(getSupportFragmentManager(),"JJJJJ");
}
@Override
public void complete() {
hideProgressDialog();
finish();
}
}
|
[
"sohel.ahmed2178@gmail.com"
] |
sohel.ahmed2178@gmail.com
|
7c770762a23121a504dd0e3f46b9022d12c4ea49
|
c3039d190f406d29a18a787e707c1cf3d4e11d0f
|
/hz-task-master/src/main/java/com/hz/task/master/core/service/impl/DidCollectionAccountServiceImpl.java
|
d5d146d58978b1c227d7c53db4f0bfd248a555c5
|
[] |
no_license
|
hzhuazhi/hz-task
|
3e6c2addbcf6cc0a398376ac96805d49d5d6058b
|
f3d554f0826788bc3b0a23931194aa5ead2bd27c
|
refs/heads/master
| 2022-12-18T18:59:35.184254
| 2020-09-03T14:40:55
| 2020-09-03T14:40:55
| 271,976,042
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,780
|
java
|
package com.hz.task.master.core.service.impl;
import com.hz.task.master.core.common.dao.BaseDao;
import com.hz.task.master.core.common.service.impl.BaseServiceImpl;
import com.hz.task.master.core.mapper.DidCollectionAccountMapper;
import com.hz.task.master.core.model.did.DidCollectionAccountModel;
import com.hz.task.master.core.service.DidCollectionAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @Description 用户的收款账号的Service层的实现层
* @Author yoko
* @Date 2020/5/15 14:02
* @Version 1.0
*/
@Service
public class DidCollectionAccountServiceImpl<T> extends BaseServiceImpl<T> implements DidCollectionAccountService<T> {
/**
* 5分钟.
*/
public long FIVE_MIN = 300;
public long TWO_HOUR = 2;
@Autowired
private DidCollectionAccountMapper didCollectionAccountMapper;
public BaseDao<T> getDao() {
return didCollectionAccountMapper;
}
@Override
public void updateBasic(DidCollectionAccountModel model) {
didCollectionAccountMapper.updateBasic(model);
}
@Override
public void updateDidCollectionAccount(DidCollectionAccountModel model) {
didCollectionAccountMapper.updateDidCollectionAccount(model);
}
@Override
public int updateDidCollectionAccountTotalSwitch(DidCollectionAccountModel model) {
return didCollectionAccountMapper.updateDidCollectionAccountTotalSwitch(model);
}
@Override
public int updateDidCollectionAccountCheckData(DidCollectionAccountModel model) {
return didCollectionAccountMapper.updateDidCollectionAccountCheckData(model);
}
@Override
public int updateDidCollectionAccountCheckDataByFail(DidCollectionAccountModel model) {
return didCollectionAccountMapper.updateDidCollectionAccountCheckDataByFail(model);
}
@Override
public DidCollectionAccountModel getDidCollectionAccountByWxIdAndWxName(DidCollectionAccountModel model) {
return didCollectionAccountMapper.getDidCollectionAccountByWxIdAndWxName(model);
}
@Override
public int updateDidCollectionAccountByWxData(DidCollectionAccountModel model) {
return didCollectionAccountMapper.updateDidCollectionAccountByWxData(model);
}
@Override
public DidCollectionAccountModel getDidCollectionAccountByWxGroupId(DidCollectionAccountModel model) {
return didCollectionAccountMapper.getDidCollectionAccountByWxGroupId(model);
}
@Override
public DidCollectionAccountModel getDidCollectionAccountByWxGroupIdOrWxGroupNameAndYn(DidCollectionAccountModel model) {
return didCollectionAccountMapper.getDidCollectionAccountByWxGroupIdOrWxGroupNameAndYn(model);
}
@Override
public int updateDidCollectionAccountRedPackNumOrInvalid(DidCollectionAccountModel model) {
return didCollectionAccountMapper.updateDidCollectionAccountRedPackNumOrInvalid(model);
}
@Override
public List<DidCollectionAccountModel> getEffectiveDidCollectionAccountList(DidCollectionAccountModel model) {
return didCollectionAccountMapper.getEffectiveDidCollectionAccountList(model);
}
@Override
public int updateCheckByAcNum(DidCollectionAccountModel model) {
return didCollectionAccountMapper.updateCheckByAcNum(model);
}
@Override
public int updateLoginType(DidCollectionAccountModel model) {
return didCollectionAccountMapper.updateLoginType(model);
}
@Override
public List<DidCollectionAccountModel> getEffectiveDidCollectionAccountByWxGroup(DidCollectionAccountModel model) {
return didCollectionAccountMapper.getEffectiveDidCollectionAccountByWxGroup(model);
}
}
|
[
"duanfeng_1712@qq.com"
] |
duanfeng_1712@qq.com
|
18bf33fa6828e484f8eb08ad87ea337ff1297ac2
|
c3eaac04f8c9ed71f0b78f72addbc24227c9c38a
|
/addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/lessons_55/tests/GroupCreationTests.java
|
e76f1b53ef7dccc4ea197b9ded895e7634e4d0f8
|
[
"Apache-2.0"
] |
permissive
|
freeitgroupe/qa_crm
|
cf4695ae9f59ba472ab484c4be4a68d9f883c0bf
|
8c83f8cea3cf0f3bbc2970019838bf4f66ac97a4
|
refs/heads/main
| 2023-04-19T22:40:51.911379
| 2021-04-27T20:45:31
| 2021-04-27T20:45:31
| 311,136,256
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,101
|
java
|
package ru.stqa.pft.addressbook.lessons_55.tests;
import org.testng.Assert;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.lessons_55.model.GroupData;
import ru.stqa.pft.addressbook.lessons_55.model.Groups;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
public class GroupCreationTests extends TestBase {
//Тест для создания группы
@Test
public void testGroupCreation() throws Exception {
//переход а страницу группы
app.goTo().groupPage();
//список групп до создания теста
Groups before = app.group().all();
//Создадим переменную типа GroupData
GroupData group = new GroupData().withName("test4");
//создание группы
app.group().create(group);
//Список групп
Groups after = app.group().all();
//Проверяем количество групп до и после создания теста
Assert.assertEquals(after.size(), before.size() + 1);
//Проверка
assertThat(app.group().count(), equalTo(before.size()+1));
assertThat(after, equalTo(
before.withAdded(group.withId(after.stream().mapToInt((g) -> g.getId()).max().getAsInt()))));
}
//Тест для создания группы
@Test
public void testBadGroupCreation() throws Exception {
//переход а страницу группы
app.goTo().groupPage();
//список групп до создания теста
Groups before = app.group().all();
//Создадим переменную типа GroupData
GroupData group = new GroupData().withName("test'");
//создание группы
app.group().create(group);
//Проверка предварительная
assertThat(app.group().count(), equalTo(before.size()));
//Список групп
Groups after = app.group().all();
assertThat(after, equalTo(before));
}
}
|
[
"freeitgroupe@gmail.com"
] |
freeitgroupe@gmail.com
|
50e791952a2ea1634513058ec10ea97a72c43888
|
2a20984ee8a7a5fbf2351c560312f04de17f7485
|
/src/fr/badblock/bukkit/games/uhcmodifier/overrided_blocks/OBlockDeadBush.java
|
d915f52e76f527fe28be8020a2b888a26482f9f0
|
[] |
no_license
|
xMalware/BadBlock-UHCModifier
|
b9d79973c73b5312ef931c838fab49619482c28e
|
4eb29e76956a12f008e6f38e36fadadcf28d0ced
|
refs/heads/master
| 2020-07-23T01:27:50.731624
| 2019-09-09T20:36:17
| 2019-09-09T20:36:17
| 207,399,757
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 664
|
java
|
package fr.badblock.bukkit.games.uhcmodifier.overrided_blocks;
import java.util.Random;
import net.minecraft.server.v1_8_R3.Block;
import net.minecraft.server.v1_8_R3.BlockDeadBush;
import net.minecraft.server.v1_8_R3.IBlockData;
import net.minecraft.server.v1_8_R3.Item;
import net.minecraft.server.v1_8_R3.Items;
public class OBlockDeadBush extends BlockDeadBush {
public OBlockDeadBush() {
this.c(0.0F);
this.a(Block.h);
this.c("deadbush");
}
@Override
public Item getDropType(IBlockData iblockdata, Random random, int i) {
return Items.BREAD;
}
@Override
public int getDropCount(int i, Random random) {
return 2;
}
}
|
[
"xmalware2@gmail.com"
] |
xmalware2@gmail.com
|
3c0b10c25d1ca4eb285561841d95e027596f85a1
|
49ce1a640f315fe04b52bd0f3b583e7aa563a788
|
/src/p13/lecture/A04Generic.java
|
9a56866a72f4105d8938107021b1403d22b3873d
|
[] |
no_license
|
lim950914/java20210325
|
3decd232b3c2228f4c5e6c7fd1bd955939d0a986
|
47bb0555410f9b178d6d92ec40b7236fca4613e0
|
refs/heads/master
| 2023-07-10T09:10:28.691318
| 2021-08-06T00:05:46
| 2021-08-06T00:05:46
| 351,269,331
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 716
|
java
|
package p13.lecture;
public class A04Generic {
public static void main(String[] args) {
Generic4<String, Integer, Double> g4 = new Generic4<>();
g4.setField1("java");
g4.setField2(99);
g4.setField3(3.14);
String s = g4.getField1();
int i = g4.getField2();
double d = g4.getField3();
}
}
class Generic4<T, S, U> {
private T field1;
private S field2;
private U field3;
public T getField1() {
return field1;
}
public void setField1(T field1) {
this.field1 = field1;
}
public S getField2() {
return field2;
}
public void setField2(S field2) {
this.field2 = field2;
}
public U getField3() {
return field3;
}
public void setField3(U field3) {
this.field3 = field3;
}
}
|
[
"dlackswn2222@naver.com"
] |
dlackswn2222@naver.com
|
dd57ec9a631c94349ec69470848c7af4a436b9df
|
c4d1992bbfe4552ad16ff35e0355b08c9e4998d6
|
/releases/2.0.0RC/src/java/org/apache/poi/util/IOUtils.java
|
17fbfb46eb8c17a23651d1cfa6f915bb067d2735
|
[] |
no_license
|
BGCX261/zkpoi-svn-to-git
|
36f2a50d2618c73e40f24ddc2d3df5aadc8eca30
|
81a63fb1c06a2dccff20cab1291c7284f1687508
|
refs/heads/master
| 2016-08-04T08:42:59.622864
| 2015-08-25T15:19:51
| 2015-08-25T15:19:51
| 41,594,557
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,007
|
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.poi.util;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public final class IOUtils {
private IOUtils() {
// no instances of this class
}
/**
* Reads all the data from the input stream, and returns the bytes read.
*/
public static byte[] toByteArray(InputStream stream) throws IOException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte[] buffer = new byte[4096];
int read = 0;
while (read != -1) {
read = stream.read(buffer);
if (read > 0) {
baos.write(buffer, 0, read);
}
}
return baos.toByteArray();
}
/**
* Helper method, just calls <tt>readFully(in, b, 0, b.length)</tt>
*/
public static int readFully(InputStream in, byte[] b) throws IOException {
return readFully(in, b, 0, b.length);
}
/**
* Same as the normal <tt>in.read(b, off, len)</tt>, but tries to ensure
* that the entire len number of bytes is read.
* <p>
* If the end of file is reached before any bytes are read, returns -1. If
* the end of the file is reached after some bytes are read, returns the
* number of bytes read. If the end of the file isn't reached before len
* bytes have been read, will return len bytes.
*/
public static int readFully(InputStream in, byte[] b, int off, int len) throws IOException {
int total = 0;
while (true) {
int got = in.read(b, off + total, len - total);
if (got < 0) {
return (total == 0) ? -1 : total;
}
total += got;
if (total == len) {
return total;
}
}
}
/**
* Copies all the data from the given InputStream to the OutputStream. It
* leaves both streams open, so you will still need to close them once done.
*/
public static void copy(InputStream inp, OutputStream out) throws IOException {
byte[] buff = new byte[4096];
int count;
while ((count = inp.read(buff)) != -1) {
if (count > 0) {
out.write(buff, 0, count);
}
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
5001d2bf2f51430c15ecbc2c48653511d5c38d8b
|
d59ffa0745f4f940dcce64121044f15d76d14785
|
/client/src/main/java/me/retrodaredevil/solarthing/config/databases/implementations/InfluxDbDatabaseSettings.java
|
3d515308285012cc71736f04e9020d890b4bf389
|
[
"MIT"
] |
permissive
|
CapnJackOff/solarthing
|
d9990318d5c76fc9a2afb98a91b9b3d2ab86d7a7
|
c77bc800bf0bc47d520d7d4886b3c0502cc278bc
|
refs/heads/master
| 2021-04-22T20:41:50.765486
| 2020-12-25T22:33:30
| 2020-12-25T22:33:30
| 268,702,374
| 0
| 0
|
MIT
| 2020-06-02T04:40:32
| 2020-06-02T04:40:31
| null |
UTF-8
|
Java
| false
| false
| 4,707
|
java
|
package me.retrodaredevil.solarthing.config.databases.implementations;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import me.retrodaredevil.influxdb.InfluxProperties;
import me.retrodaredevil.okhttp3.OkHttpProperties;
import me.retrodaredevil.solarthing.config.databases.DatabaseSettings;
import me.retrodaredevil.solarthing.config.databases.DatabaseType;
import me.retrodaredevil.solarthing.config.databases.SimpleDatabaseType;
import me.retrodaredevil.solarthing.influxdb.retention.RetentionPolicySetting;
import me.retrodaredevil.solarthing.util.frequency.FrequentObject;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import static java.util.Objects.requireNonNull;
@JsonTypeName("influxdb")
@JsonDeserialize(builder = InfluxDbDatabaseSettings.Builder.class)
public final class InfluxDbDatabaseSettings implements DatabaseSettings {
public static final DatabaseType TYPE = new SimpleDatabaseType("influxdb");
private final InfluxProperties influxProperties;
private final OkHttpProperties okHttpProperties;
private final String databaseName;
private final String measurementName;
private final List<FrequentObject<RetentionPolicySetting>> frequentStatusRetentionPolicyList;
private final RetentionPolicySetting eventRetentionPolicySetting;
public InfluxDbDatabaseSettings(InfluxProperties influxProperties, OkHttpProperties okHttpProperties, String databaseName, String measurementName, Collection<FrequentObject<RetentionPolicySetting>> frequentRetentionPolicies, RetentionPolicySetting eventRetentionPolicySetting) {
this.influxProperties = requireNonNull(influxProperties);
this.okHttpProperties = requireNonNull(okHttpProperties);
this.databaseName = databaseName;
this.measurementName = measurementName;
this.frequentStatusRetentionPolicyList = Collections.unmodifiableList(new ArrayList<>(frequentRetentionPolicies));
this.eventRetentionPolicySetting = eventRetentionPolicySetting;
}
@Override
public DatabaseType getDatabaseType() {
return TYPE;
}
public InfluxProperties getInfluxProperties(){ return influxProperties; }
public OkHttpProperties getOkHttpProperties() {
return okHttpProperties;
}
/**
* @return The database name, or null to use
*/
public String getDatabaseName(){ return databaseName; }
public String getMeasurementName() { return measurementName; }
public List<FrequentObject<RetentionPolicySetting>> getFrequentStatusRetentionPolicyList() {
return frequentStatusRetentionPolicyList;
}
public RetentionPolicySetting getEventRetentionPolicy(){
return eventRetentionPolicySetting;
}
@JsonPOJOBuilder
public static class Builder {
private InfluxProperties influxProperties;
private OkHttpProperties okHttpProperties;
private String databaseName;
private String measurementName;
private Collection<FrequentObject<RetentionPolicySetting>> frequentStatusRetentionPolicies;
private RetentionPolicySetting eventRetentionPolicySetting;
// TODO fix this https://github.com/FasterXML/jackson-databind/issues/1061
@JsonUnwrapped
public Builder setInfluxProperties(InfluxProperties influxProperties) {
this.influxProperties = influxProperties;
return this;
}
@JsonUnwrapped
public Builder setOkHttpProperties(OkHttpProperties okHttpProperties) {
this.okHttpProperties = okHttpProperties;
return this;
}
@JsonProperty("database")
public Builder setDatabaseName(String databaseName) {
this.databaseName = databaseName;
return this;
}
@JsonProperty("measurement")
public Builder setMeasurementName(String measurementName) {
this.measurementName = measurementName;
return this;
}
@JsonProperty("status_retention_policies")
@JsonDeserialize(as = ArrayList.class)
public Builder setFrequentStatusRetentionPolicies(Collection<FrequentObject<RetentionPolicySetting>> frequentStatusRetentionPolicies) {
this.frequentStatusRetentionPolicies = frequentStatusRetentionPolicies;
return this;
}
@JsonProperty("event_retention_policy")
public Builder setEventRetentionPolicySetting(RetentionPolicySetting eventRetentionPolicySetting) {
this.eventRetentionPolicySetting = eventRetentionPolicySetting;
return this;
}
public InfluxDbDatabaseSettings build() {
return new InfluxDbDatabaseSettings(influxProperties, okHttpProperties, databaseName, measurementName, frequentStatusRetentionPolicies, eventRetentionPolicySetting);
}
}
}
|
[
"retrodaredevil@gmail.com"
] |
retrodaredevil@gmail.com
|
1bb3185a3de8661ea8111aa3ee374b301591ebb8
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdasApi21/applicationModule/src/main/java/applicationModulepackageJava8/Foo592.java
|
76ef0282ec324b6a0750624bba9026ca0d7ea9d4
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 346
|
java
|
package applicationModulepackageJava8;
public class Foo592 {
public void foo0() {
new applicationModulepackageJava8.Foo591().foo5();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
12365be8d4c337a300c6f8e7a67b617f9929dde2
|
3f8b769f67b30722af70fb0030c90f68bb1d0103
|
/src/main/java/programing2/wallet/Person.java
|
97bd52709611cca4a4e28b2bc369b20253273677
|
[] |
no_license
|
rimmugygr/SDAJava
|
61fff94e2d113a8892b9502bc1f3f980769790df
|
6b612b12a123e75c89d83620fccd1e08c5e7c93a
|
refs/heads/master
| 2022-12-11T22:32:52.009948
| 2020-09-21T15:47:36
| 2020-09-21T15:47:36
| 236,321,105
| 1
| 0
| null | 2022-11-23T11:26:44
| 2020-01-26T14:10:57
|
HTML
|
UTF-8
|
Java
| false
| false
| 6,100
|
java
|
package programing2.wallet;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.*;
import java.util.stream.Collectors;
public class Person {
private static final Logger LOGGER = LoggerFactory.getLogger(Main.class);
private String firstName;
private String lastName;
private Wallet wallet;
private Set<String> itemsHave;
private Set<Offer> itemsToBuy;
private Set<Offer> itemsToSell;
public Person(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
this.wallet = new Wallet();
this.itemsHave = new HashSet<>();
this.itemsToBuy = new HashSet<>();
this.itemsToSell = new HashSet<>();
}
public Person(String firstName, String lastName, Wallet wallet) {
this(firstName,lastName);
this.wallet = wallet;
}
public void addItem(String name){
LOGGER.info(this.firstName + " add item: " + name);
this.itemsHave.add(name);
this.itemsToBuy.remove(new Offer(name,null));
}
public void addItemToBuy(Offer offer){
LOGGER.info(this.firstName + " add offer: " + offer);
this.itemsToBuy.add(offer);
}
public void addItemToSell(Offer offer){
if (this.itemsHave.contains(offer.getName())) {
this.itemsToSell.add(offer);
} else {
LOGGER.warn(this.firstName + " dont add offer because dont have item: " + offer.getName());
}
}
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
public boolean transactionAllItem(Person sellingPerson) {
// check is items to trade
Set<String> itemsName = this.itemsToBuy.stream()
.map(Offer::getName)
.filter(sellingPerson::isItemToSell)
.collect(Collectors.toSet());
// if no items to transaction return false
if (itemsName.isEmpty()) return false;
// check offer
Map<String, Cash> resultTransaction = Offer.getSucceedOfferOnItem(itemsName, this.itemsToBuy, sellingPerson.getItemsToSell());
// if person have not enough money to give
return transactionMoneysAndItems(sellingPerson, resultTransaction);
}
public boolean transactionItem(Person sellingPerson, String item) {
if (item==null) return false;
// check offer
Map<String, Cash> resultTransaction = Offer.getSucceedOfferOnItem(Set.of(item), this.itemsToBuy, sellingPerson.getItemsToSell());
return transactionMoneysAndItems(sellingPerson, resultTransaction);
}
private boolean transactionMoneysAndItems(Person sellingPerson, Map<String, Cash> resultTransaction) {
// if person have not enough money to give
if (resultTransaction.isEmpty()) return false;
// trade accepted money for item
for (String name : resultTransaction.keySet()) {
transactionMoneyAndItem(sellingPerson, resultTransaction.get(name), name);
}
return true;
}
private void transactionMoneyAndItem(Person sellingPerson, Cash cashGiven, String name) {
// check is enough money in wallet
if (this.giveCashTo( sellingPerson, cashGiven)) {
// when not give item then take money back
if(sellingPerson.removeItem(name)){
this.addItem(name);
} else {
sellingPerson.giveCashTo(this, cashGiven);// todo
}
}
}
private boolean removeItem(String name) {
LOGGER.info(this.firstName + " remove item: " + name);
boolean result = this.itemsHave.remove(name);
this.itemsToSell.remove(new Offer(name,null));
return result;
}
public boolean isItemToSell(String name){
return this.itemsToSell.stream().map(Offer::getName).anyMatch(name::equals);
}
private boolean transactionMoney(Person sourcePerson, Person targetPerson, Cash cashGiven) {
boolean isRemovedFromSourcePerson = sourcePerson.removeMoney(cashGiven);
if (isRemovedFromSourcePerson) {
targetPerson.addMoney(cashGiven);
LOGGER.info(sourcePerson.getFirstName() + " give to " + targetPerson.getFirstName() + " " + cashGiven.toString());
return true;
} else {
LOGGER.info(sourcePerson.getFirstName() + " not give to " + targetPerson.getFirstName() + " " + cashGiven.toString());
return false;
}
}
public boolean giveCashTo(Person targetPerson, Cash cashGiven) {
return this.transactionMoney(this, targetPerson, cashGiven);
}
public boolean removeCashFrom(Person sourcePerson, Cash cashGiven) {
return this.transactionMoney(sourcePerson, this, cashGiven);
}
public boolean addMoney(Cash cash) {
if(this.wallet.addCash(cash)){
LOGGER.info(this.getFirstName() + " get " + cash.toString());
return true;
} else {
LOGGER.warn(this.getFirstName() + " dont get " + cash.toString());
return false;
}
}
public boolean removeMoney(Cash cash) {
if(this.wallet.removeCash(cash)){
LOGGER.info(this.getFirstName() + " remove " + cash.toString() + " from wallet");
return true;
} else {
LOGGER.warn(this.getFirstName() + " dont have " + cash.toString());
return false;
}
}
public Wallet getWallet() {
return wallet;
}
public void setWallet(Wallet wallet) {
this.wallet = wallet;
}
public Set<Offer> getItemsToBuy() {
return itemsToBuy;
}
public Set<Offer> getItemsToSell() {
return itemsToSell;
}
@Override
public String toString() {
return "Person " +
"firstName " + firstName +
" wallet " + wallet +
" itemsHave " + itemsHave +
" itemsToBuy " + itemsToBuy +
" itemsToSell " + itemsToSell;
}
}
|
[
"rimmugygr@gmail.com"
] |
rimmugygr@gmail.com
|
710b0f999e7a5b76008a4ef9cd1e22ecca30ae01
|
f0a2e8fb8f46da4d022dbd96539a385a0749931d
|
/YarnApplication/src/main/java/com/example/yarnapplication/helpers/Consts.java
|
847a76105dd82cbbcb8d22773bd631ad80080ee8
|
[] |
no_license
|
aqib1/spring-yarn-application
|
569668d94dc2cadfc3b2ca161841526a10f71479
|
365a3418e443f389baa8d882820dfba1bd0e8ed5
|
refs/heads/master
| 2020-08-04T13:00:11.831474
| 2019-10-04T04:32:49
| 2019-10-04T04:32:49
| 212,144,155
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,039
|
java
|
package com.example.yarnapplication.helpers;
import java.util.Objects;
public class Consts {
public static final String HEADER_OF_FILE = "id,date_time,site_name,posa_continent,user_location_country,user_location_region,user_location_city,orig_destination_distance,user_id,is_mobile,is_package,channel,srch_ci,srch_co,srch_adults_cnt,srch_children_cnt,srch_rm_cnt,srch_destination_id,srch_destination_type_id,hotel_continent,hotel_country,hotel_market";
public static final String SORTED_DIR = "_SORTED";
public static final String RESULT_MR_RESULT_NAME = "part-r-00000";
public static final int INDEX_SRCH_ADULTS_CNT = 14;
public static final int INDEX_HOTEL_CONTINENT = 19;
public static final int INDEX_HOTEL_COUNTRY = 20;
public static final int INDEX_HOTEL_MARKET = 21;
public static <T> boolean isNullOrEmptyArray(T [] arr) {
return Objects.isNull(arr) || arr.length == 0;
}
public static final boolean isNullOrEmptyString(String val) {
return Objects.isNull(val) || val.isEmpty();
}
private Consts() {
}
}
|
[
"aqibbutt3078@gmail.com"
] |
aqibbutt3078@gmail.com
|
3a83b4a456aac0aecbfa53d3b7d7579e13f5a450
|
1f6005ea4629810ae1da30e39f1f23034f58a9f9
|
/12_decorator/SideBorder.java
|
6a7e2c772260a58dfe987706a4c6d398d57fe46c
|
[] |
no_license
|
KimiyukiYamauchi/DesignPattern.2018
|
78aefb509f2241b3c422515579b570258f42b5a6
|
7a68534f505edbf3f21b2c43cef346043bbb66bb
|
refs/heads/master
| 2020-04-01T20:32:37.878687
| 2019-07-17T08:13:42
| 2019-07-17T08:13:42
| 153,608,593
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 484
|
java
|
public class SideBorder extends Border {
private char borderChar;
public SideBorder(Display display, char ch) {
super(display);
this.borderChar = ch;
}
@Override
public int getColumns() {
return 1 + display.getColumns() + 1;
}
@Override
public int getRows() {
return display.getRows();
}
@Override
public String getRowText(int row) {
return borderChar + display.getRowText(row) + borderChar;
}
}
|
[
"yamauchi@std.it-college.ac.jp"
] |
yamauchi@std.it-college.ac.jp
|
256c49aa810df5acf015df1bb17c813d77eab307
|
614c2dc5ae027283f37ec15c12e9acdf60ead011
|
/voltTable2/procedures/SelectItem_24.java
|
46996cdba1ea5fa3d630ee2b77737b3804372246
|
[] |
no_license
|
junshiguo/hybrid
|
d5f04e97706ff702773ecc589569af68aff27df7
|
7574e2243e77e5f912576157b2dddf74750abdba
|
refs/heads/master
| 2021-03-19T11:13:13.843164
| 2015-07-26T16:09:17
| 2015-07-26T16:09:17
| 21,557,559
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 375
|
java
|
import org.voltdb.*;
public class SelectItem_24 extends VoltProcedure {
public final SQLStmt sql = new SQLStmt("SELECT * FROM item24 WHERE tenant_id = ? AND is_insert = ? AND is_update = ?");
public VoltTable[] run(int tenant_id, int is_insert, int is_update) throws VoltAbortException {
voltQueueSQL(sql, tenant_id, is_insert, is_update);
return voltExecuteSQL();
}
}
|
[
"junshiguo@126.com"
] |
junshiguo@126.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.