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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b21db13942648cb064d9b720529b416488bf03ed
|
e69fbe41b7f347d59c5c11580af5721688407378
|
/ad/src/main/java/com/example/adtest/splash/SplashViewADLoadListener.java
|
c2f9dc5ac225070caa5b11b6c3042da1dd0edda4
|
[] |
no_license
|
ZhouSilverBullet/mobiclearsafe-overseas
|
578fa39a3a320e41c68e9c6f6703647b5f6d4fc8
|
f885469217c1942eb680da712f083bede8ee4fd7
|
refs/heads/master
| 2022-07-03T13:06:38.407425
| 2020-05-11T02:58:22
| 2020-05-11T02:58:22
| 261,681,978
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 581
|
java
|
package com.example.adtest.splash;
/**
* author : liangning
* date : 2019-11-28 21:54
*/
public interface SplashViewADLoadListener {
void LoadError(String channel, int errorCode, String errorMsg);//广告加载错误
void onTimeout(String channel);//广告加载超时
void onAdClicked(String channel);//广告被点击
void onAdShow(String channel);//广告显示
void onSplashAdLoad(String channel);//广告加载成功
default void onAdSkip(String channel) { //广告跳过
}
default void onAdTimeOver() { //广告倒计时结束
}
}
|
[
"zhousaito@163.com"
] |
zhousaito@163.com
|
6efcd2482f44faedbb6590c1c742eb2dabd1be5c
|
706dae6cc6526064622d4f5557471427441e5c5e
|
/src/main/java/com/anbo/juja/patterns/nullObject_15/sample/codenjoy/Point.java
|
bbfaf717c3cd6fe213c39ac6c65db829b8a942c8
|
[] |
no_license
|
Anton-Bondar/Design-patterns-JUJA-examples-
|
414edabfd8c4148640de7de8d01f809b01c3c17c
|
9e3d628f7e45c0106514f8f459ea30fffed702d5
|
refs/heads/master
| 2021-10-09T04:45:42.372993
| 2018-12-21T12:09:00
| 2018-12-21T12:11:14
| 121,509,668
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 336
|
java
|
package com.anbo.juja.patterns.nullObject_15.sample.codenjoy;
/**
* Created by oleksandr.baglai on 10.12.2015.
*/
// координата x, y
public interface Point {
// тоже синглтончик (смотри Game.NULL - там объяснение)
Point NULL = new NullPoint();
int getX();
int getY();
}
|
[
"AntonBondar2013@gmail.com"
] |
AntonBondar2013@gmail.com
|
7daca65a166813501ff418a66c899ed07db2c4ba
|
0462af66f84057513387bb09616b74441970082b
|
/primavera/primavera-web/src/main/java/br/com/leonardoferreira/primavera/web/request/handler/RequestHandlerMetadata.java
|
6a391bd1bf16efb902f3b4e260a9f0f65ab2d95f
|
[] |
no_license
|
LeonardoFerreiraa/vacation-projects
|
d468a98dc8fc819bd2f3dccac1adc60cb1e59a6f
|
839860333a69f5efddbae3686eea38b978197b1b
|
refs/heads/master
| 2022-12-22T15:35:47.117575
| 2022-05-13T18:52:08
| 2022-05-13T18:52:08
| 228,439,669
| 0
| 0
| null | 2022-12-14T20:43:20
| 2019-12-16T17:29:42
|
Java
|
UTF-8
|
Java
| false
| false
| 2,283
|
java
|
package br.com.leonardoferreira.primavera.web.request.handler;
import br.com.leonardoferreira.primavera.functional.Outcome;
import br.com.leonardoferreira.primavera.util.AnnotationUtils;
import br.com.leonardoferreira.primavera.web.request.RequestMethod;
import br.com.leonardoferreira.primavera.web.resolver.MethodArgumentResolver;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;
@Data
@Builder(access = AccessLevel.PRIVATE)
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
public class RequestHandlerMetadata {
private final RequestMethod requestMethod;
private final Object instance;
private final Method method;
private final RequestPath path;
public static RequestHandlerMetadata newInstance(final Object instance, final Method method) {
return AnnotationUtils.findAnnotation(method, RequestHandler.class)
.map(handler -> RequestHandlerMetadata.builder()
.instance(instance)
.method(method)
.requestMethod(handler.method())
.path(RequestPath.fromPath(handler.path()))
.build())
.orElse(null);
}
public boolean canHandle(final HttpServletRequest req) {
final String pathInfo = req.getPathInfo();
final RequestMethod method = RequestMethod.valueOf(req.getMethod());
return path.matches(pathInfo) && method.equals(this.requestMethod);
}
public Outcome<Object, Throwable> handle(final HttpServletRequest request,
final HttpServletResponse response,
final Set<MethodArgumentResolver> resolvers) {
return Outcome.of(() -> {
final Object[] args = Arrays.stream(method.getParameters())
.map(parameter -> MethodArgumentResolver.resolve(request, response, this, resolvers, parameter))
.toArray();
return method.invoke(instance, args);
});
}
}
|
[
"mail@leonardoferreira.com.br"
] |
mail@leonardoferreira.com.br
|
d8b3e1cc3d9145a3b9ca4ec13db11b629bcfbe4e
|
7c2f5bdf6199ee25afafbc8bc2eb77541976d00e
|
/Game/src/main/java/io/riguron/game/winner/solo/order/PlaceOrderBy.java
|
2ca17afecbc54e6c967e3e3275199de5cddcd021
|
[
"MIT"
] |
permissive
|
Stijn-van-Nieulande/MinecraftNetwork
|
0995d2fad0f7e1150dff0394c2568d9e8f6d1dca
|
7ed43098a5ba7574e2fb19509e363c3cf124fc0b
|
refs/heads/master
| 2022-04-03T17:48:42.635003
| 2020-01-22T05:22:49
| 2020-01-22T05:22:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 240
|
java
|
package io.riguron.game.winner.solo.order;
import io.riguron.game.player.GamePlayer;
import java.util.function.Function;
public interface PlaceOrderBy extends Function<GamePlayer, Integer> {
Integer apply(GamePlayer gamePlayer);
}
|
[
"25826296+riguron@users.noreply.github.com"
] |
25826296+riguron@users.noreply.github.com
|
04f3927123292263abedd40d91306ee9b43e5d39
|
c212cfc47cbddd789d1988753c3a0a1bc88a5203
|
/src/main/java/de/uni_koeln/info/extraction/Writer.java
|
4bddab960205d86fdc11fc4418831238b991d592
|
[] |
no_license
|
matana/rg-sent-preprocessor
|
7bc36fe76df06797b2e3ad12bd933346b86141e6
|
5e227a504794f40c7d348cb7e42834c37243eba9
|
refs/heads/master
| 2020-06-16T22:13:04.644932
| 2016-11-29T09:29:56
| 2016-11-29T09:29:56
| 75,062,753
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 656
|
java
|
package de.uni_koeln.info.extraction;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
public class Writer {
/**
* This routine writes the extracted sentences into a plain text file. Each
* line represents a sentence.
*/
public static void writeSentenceFile(File file, List<String> data) throws IOException {
BufferedWriter bw = new BufferedWriter(new FileWriter(file));
for (int i = 0; i < data.size(); i++) {
bw.write(data.get(i));
bw.newLine();
}
bw.close();
System.out.println(Writer.class.getName() + " | ouput: '" + file + "'");
}
}
|
[
"atanassov.mihail@gmail.com"
] |
atanassov.mihail@gmail.com
|
9ea1e865f34112111354e0f0590d526da73f2357
|
863acb02a064a0fc66811688a67ce3511f1b81af
|
/sources/com/google/android/gms/internal/ads/zzcsm.java
|
b002a902de7b07c565e9b6d6b7d6ca48b1ea22f1
|
[
"MIT"
] |
permissive
|
Game-Designing/Custom-Football-Game
|
98d33eb0c04ca2c48620aa4a763b91bc9c1b7915
|
47283462b2066ad5c53b3c901182e7ae62a34fc8
|
refs/heads/master
| 2020-08-04T00:02:04.876780
| 2019-10-06T06:55:08
| 2019-10-06T06:55:08
| 211,914,568
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 681
|
java
|
package com.google.android.gms.internal.ads;
import com.google.android.gms.common.util.Clock;
public final class zzcsm implements zzdti<zzcsk<zzcsg>> {
/* renamed from: a */
private final zzdtu<zzcsh> f27335a;
/* renamed from: b */
private final zzdtu<Clock> f27336b;
public zzcsm(zzdtu<zzcsh> zzdtu, zzdtu<Clock> zzdtu2) {
this.f27335a = zzdtu;
this.f27336b = zzdtu2;
}
public final /* synthetic */ Object get() {
zzcsk zzcsk = new zzcsk((zzcsh) this.f27335a.get(), 10000, (Clock) this.f27336b.get());
zzdto.m30114a(zzcsk, "Cannot return null from a non-@Nullable @Provides method");
return zzcsk;
}
}
|
[
"tusharchoudhary0003@gmail.com"
] |
tusharchoudhary0003@gmail.com
|
313d556869ec48e052021d60c8fdff78f6b683db
|
b111b77f2729c030ce78096ea2273691b9b63749
|
/db-example-large-multi-project/project58/src/test/java/org/gradle/test/performance/mediumjavamultiproject/project58/p293/Test5875.java
|
3b4deeb15bf3e028d00252b3995af4c66529c293
|
[] |
no_license
|
WeilerWebServices/Gradle
|
a1a55bdb0dd39240787adf9241289e52f593ccc1
|
6ab6192439f891256a10d9b60f3073cab110b2be
|
refs/heads/master
| 2023-01-19T16:48:09.415529
| 2020-11-28T13:28:40
| 2020-11-28T13:28:40
| 256,249,773
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,556
|
java
|
package org.gradle.test.performance.mediumjavamultiproject.project58.p293;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test5875 {
Production5875 objectUnderTest = new Production5875();
@Test
public void testProperty0() throws Exception {
String value = "value";
objectUnderTest.setProperty0(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty0());
}
@Test
public void testProperty1() throws Exception {
String value = "value";
objectUnderTest.setProperty1(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty1());
}
@Test
public void testProperty2() throws Exception {
String value = "value";
objectUnderTest.setProperty2(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty2());
}
@Test
public void testProperty3() throws Exception {
String value = "value";
objectUnderTest.setProperty3(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty3());
}
@Test
public void testProperty4() throws Exception {
String value = "value";
objectUnderTest.setProperty4(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty4());
}
@Test
public void testProperty5() throws Exception {
String value = "value";
objectUnderTest.setProperty5(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty5());
}
@Test
public void testProperty6() throws Exception {
String value = "value";
objectUnderTest.setProperty6(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty6());
}
@Test
public void testProperty7() throws Exception {
String value = "value";
objectUnderTest.setProperty7(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty7());
}
@Test
public void testProperty8() throws Exception {
String value = "value";
objectUnderTest.setProperty8(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty8());
}
@Test
public void testProperty9() throws Exception {
String value = "value";
objectUnderTest.setProperty9(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty9());
}
}
|
[
"nateweiler84@gmail.com"
] |
nateweiler84@gmail.com
|
9ffcecb42ad0f23c54b2552307c0c791e2c6ecdc
|
8cdd38dfd700c17d688ac78a05129eb3a34e68c7
|
/JVXML_HOME/org.jvoicexml/unittests/src/org/jvoicexml/documentserver/schemestrategy/scriptableobjectserializer/TestJSONSerializer.java
|
8f45fea70795eb33f0d5333b8e7088a4c1e56814
|
[] |
no_license
|
tymiles003/JvoiceXML-Halef
|
b7d975dbbd7ca998dc1a4127f0bffa0552ee892e
|
540ff1ef50530af24be32851c2962a1e6a7c9dbb
|
refs/heads/master
| 2021-01-18T18:13:56.781237
| 2014-05-13T15:56:07
| 2014-05-13T15:56:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,033
|
java
|
/*
* File: $HeadURL: https://svn.code.sf.net/p/jvoicexml/code/trunk/org.jvoicexml/unittests/src/org/jvoicexml/documentserver/schemestrategy/scriptableobjectserializer/TestJSONSerializer.java $
* Version: $LastChangedRevision: 2715 $
* Date: $Date: 2011-06-21 19:23:54 +0200 (Tue, 21 Jun 2011) $
* Author: $LastChangedBy: schnelle $
*
* JVoiceXML - A free VoiceXML implementation.
*
* Copyright (C) 2011 JVoiceXML group - http://jvoicexml.sourceforge.net
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
package org.jvoicexml.documentserver.schemestrategy.scriptableobjectserializer;
import java.util.Collection;
import java.util.Iterator;
import junit.framework.Assert;
import org.apache.http.NameValuePair;
import org.junit.Test;
import org.jvoicexml.documentserver.schemestrategy.ScriptableObjectSerializer;
import org.jvoicexml.event.JVoiceXMLEvent;
import org.jvoicexml.interpreter.ScriptingEngine;
import org.mozilla.javascript.ScriptableObject;
/**
* Test cases for {@link JSONSerializer}.
* @author Dirk Schnelle-Walka
* @version $Revision: 2715 $
* @since 0.7.5
*/
public final class TestJSONSerializer {
/**
* Test method for {@link org.jvoicexml.documentserver.schemestrategy.scriptableobjectserializer.JSONSerializer#serialize(org.mozilla.javascript.ScriptableObject)}.
* @exception JVoiceXMLEvent
* test failed
*/
@Test
public void testSerialize() throws JVoiceXMLEvent {
final ScriptingEngine scripting = new ScriptingEngine(null);
scripting.eval("var A = new Object();");
scripting.eval("A.B = 'test';");
scripting.eval("A.C = new Object();");
scripting.eval("A.C.D = 42.0;");
scripting.eval("A.C.E = null;");
final ScriptableObjectSerializer serializer = new JSONSerializer();
final ScriptableObject object =
(ScriptableObject) scripting.getVariable("A");
final Collection<NameValuePair> pairs =
serializer.serialize("A", object);
Assert.assertEquals(1, pairs.size());
final Iterator<NameValuePair> iterator = pairs.iterator();
final NameValuePair pair = iterator.next();
Assert.assertEquals("A", pair.getName());
Assert.assertEquals("{\"B\":\"test\",\"C\":{\"D\":42,\"E\":null}}",
pair.getValue());
}
}
|
[
"malatawy15@gmail.com"
] |
malatawy15@gmail.com
|
7a070ee144d10f91fc0814f81a955ca6bc4a28da
|
e566984f0c53ff5a53b40b4d8dbbdc6e2c4d0887
|
/pm-api-home/pm-api/src/main/java/com/heb/pm/core/service/CostLinkService.java
|
62f9bedc487d1c8777d9739c276115fabf99025d
|
[] |
no_license
|
khoale22/pm-api
|
11a580ba3a82634f3dc7d8a0e7916a461d9d4f84
|
0f6dddbb78541fb8740185fef5c01ba11239dc83
|
refs/heads/master
| 2020-09-26T11:22:57.790522
| 2019-12-06T04:22:35
| 2019-12-06T04:22:35
| 226,244,772
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,257
|
java
|
package com.heb.pm.core.service;
import com.heb.pm.core.model.CostLink;
import com.heb.pm.core.model.Item;
import com.heb.pm.core.model.Supplier;
import com.heb.pm.core.repository.CostLinkRepository;
import com.heb.pm.core.repository.CostRepository;
import com.heb.pm.core.repository.ItemMasterRepository;
import com.heb.pm.dao.core.entity.DcmCostLink;
import com.heb.pm.dao.core.entity.ItemMaster;
import com.heb.pm.dao.core.entity.ItemMasterKey;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import java.math.BigDecimal;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
/**
* Contains business logic related to cost links.
*/
@Service
public class CostLinkService {
private static final Logger logger = LoggerFactory.getLogger(CostLinkService.class);
private static final Long NO_COST_LINK = 0L;
@Autowired
private transient CostLinkRepository costLinkRepository;
@Autowired
private transient ItemService itemService;
@Autowired
private transient ItemMasterRepository itemMasterRepository;
@Autowired
private transient CostRepository costRepository;
/**
* Returns cost link information for a requested cost link number. Will return empty if that cost link is not found.
*
* @param costLinkNumber The cost link number to look for.
* @return The cost link for a given number.
*/
public Optional<CostLink> getCostLinkById(Long costLinkNumber) {
logger.debug(String.format("Searching for cost link %d", costLinkNumber));
if (Objects.isNull(costLinkNumber)) {
return Optional.empty();
}
return this.costLinkRepository.findById(costLinkNumber).map(this::dcmCostLinkToCostLink);
}
/**
* Returns cost link information for a requested item code. Will return empty if that item does not exist
* or is not part of a cost link or the cost link it is part of is not found.
*
* @param itemCode The item code to search for.
* @return The cost link this item is part of.
*/
public Optional<CostLink> getCostLinkByItemCode(Long itemCode) {
ItemMasterKey itemMasterKey = ItemMasterKey.of().setItemId(itemCode).setItemKeyTypeCode(ItemMasterKey.WAREHOUSE);
Optional<ItemMaster> itemMaster = this.itemMasterRepository.findById(itemMasterKey);
if (itemMaster.isEmpty()) {
return Optional.empty();
}
Optional<CostLink> toReturn = this.itemMasterToCostLink(itemMaster.get());
toReturn.ifPresent(costLink -> costLink.setSearchedItemCode(itemCode));
return toReturn;
}
/**
* Converts an ItemMaster to a CostLink if possible. Will return empty if item is not tied to a cost link.
*
* @param im The ItemMaster to convert.
* @return The converted CostLink.
*/
private Optional<CostLink> itemMasterToCostLink(ItemMaster im) {
// Get the cost link number from the warehouse location item records.
if (CollectionUtils.isEmpty(im.getWarehouseLocationItems())) {
logger.info(String.format("Item %d has not matching warehouse location item records.",
im.getKey().getItemId()));
return Optional.empty();
}
// See what the cost link number is of the item. If 0, then it's not part of a cost link.
Long costLinkNumber = im.getWarehouseLocationItems().get(0).getCostLinkNumber();
if (NO_COST_LINK.equals(costLinkNumber)) {
logger.info(String.format("Item %d is not part of a cost link.", im.getKey().getItemId()));
return Optional.empty();
}
// Since we have the number, we can use the other functions, just make sure to pull the info from the
// item the user passed in rather than just selecting the first active item.
return this.costLinkRepository.findById(costLinkNumber)
.map((cl) -> this.overlayItem(cl, im))
.map(this::dcmCostLinkToCostLink);
}
/**
* Adds a passed in item to the front of the list in a DcmCostLink. This is just so when they are searching by
* item code so we can try the user's item first before going through the rest of the list..
*
* @param dcmCostLink The DcmCostLink to add to.
* @param im The item to add.
* @return The modified DcmCostLink
*/
private DcmCostLink overlayItem(DcmCostLink dcmCostLink, ItemMaster im) {
dcmCostLink.getItems().add(0, im);
return dcmCostLink;
}
/**
* Converts a DcmCostLink to a CostLink.
*
* @param dcmCostLink The DcmCostLink to convert.
* @return The converted DcmCostLink.
*/
private CostLink dcmCostLinkToCostLink(DcmCostLink dcmCostLink) {
Item representativeItem =
this.getRepresentativeItem(dcmCostLink.getItems()).orElse(null);
Supplier vendor = Supplier.of().setApNumber(dcmCostLink.getApNumber())
.setSupplierType(dcmCostLink.getApType().equalsIgnoreCase("AP") ? Supplier.WAREHOUSE : Supplier.DSD);
CostLink costLink = CostLink.of().setCostLinkNumber(dcmCostLink.getCostLinkNumber())
.setDescription(dcmCostLink.getDescription())
.setActive(dcmCostLink.getActive()).setVendor(vendor)
.setListCost(BigDecimal.valueOf(this.costRepository.getCurrentListCost(representativeItem.getItemCode(), dcmCostLink.getApNumber())));
if (Objects.nonNull(representativeItem)) {
costLink.setCommodity(representativeItem.getCommodity())
.setPack(representativeItem.getContainedUpc().getPack())
.setRepresentativeItemCode(representativeItem.getItemCode());
} else {
logger.warn(String.format("Cost link %d has no active items.", dcmCostLink.getCostLinkNumber()));
}
return costLink;
}
/**
* Takes a list of ItemMasters and tries to find an active item to use to pull cost link information from.
*
* @param itemMasters The list of ItemMasters to look through.
* @return An EntireCostLink if an active warehouse item is found and an empty optional otherwise.
*/
private Optional<Item> getRepresentativeItem(List<ItemMaster> itemMasters) {
for (ItemMaster im : itemMasters) {
if (im.getKey().isDsd() || im.isDiscontinued()) {
continue;
}
Item item = this.itemService.itemMasterToItem(im);
if (item.getMrt()) {
logger.debug(String.format("Link contains MRT %d", im.getKey().getItemId()));
} else {
return Optional.of(item);
}
}
return Optional.empty();
}
}
|
[
"tran.than@heb.com"
] |
tran.than@heb.com
|
061d664fc95088b617c2323228eab1f6c4dab2be
|
1a32d704493deb99d3040646afbd0f6568d2c8e7
|
/BOOT-INF/lib/com/google/common/collect/AbstractIndexedListIterator.java
|
45b9823377e5d1447678f562ca2b37592200fc38
|
[] |
no_license
|
yanrumei/bullet-zone-server-2.0
|
e748ff40f601792405143ec21d3f77aa4d34ce69
|
474c4d1a8172a114986d16e00f5752dc019cdcd2
|
refs/heads/master
| 2020-05-19T11:16:31.172482
| 2019-03-25T17:38:31
| 2019-03-25T17:38:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,584
|
java
|
/* */ package com.google.common.collect;
/* */
/* */ import com.google.common.annotations.GwtCompatible;
/* */ import com.google.common.base.Preconditions;
/* */ import java.util.NoSuchElementException;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GwtCompatible
/* */ abstract class AbstractIndexedListIterator<E>
/* */ extends UnmodifiableListIterator<E>
/* */ {
/* */ private final int size;
/* */ private int position;
/* */
/* */ protected abstract E get(int paramInt);
/* */
/* */ protected AbstractIndexedListIterator(int size)
/* */ {
/* 52 */ this(size, 0);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ protected AbstractIndexedListIterator(int size, int position)
/* */ {
/* 67 */ Preconditions.checkPositionIndex(position, size);
/* 68 */ this.size = size;
/* 69 */ this.position = position;
/* */ }
/* */
/* */ public final boolean hasNext()
/* */ {
/* 74 */ return this.position < this.size;
/* */ }
/* */
/* */ public final E next()
/* */ {
/* 79 */ if (!hasNext()) {
/* 80 */ throw new NoSuchElementException();
/* */ }
/* 82 */ return (E)get(this.position++);
/* */ }
/* */
/* */ public final int nextIndex()
/* */ {
/* 87 */ return this.position;
/* */ }
/* */
/* */ public final boolean hasPrevious()
/* */ {
/* 92 */ return this.position > 0;
/* */ }
/* */
/* */ public final E previous()
/* */ {
/* 97 */ if (!hasPrevious()) {
/* 98 */ throw new NoSuchElementException();
/* */ }
/* 100 */ return (E)get(--this.position);
/* */ }
/* */
/* */ public final int previousIndex()
/* */ {
/* 105 */ return this.position - 1;
/* */ }
/* */ }
/* Location: C:\Users\ikatwal\Downloads\bullet-zone-server-2.0.jar!\BOOT-INF\lib\guava-22.0.jar!\com\google\common\collect\AbstractIndexedListIterator.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 0.7.1
*/
|
[
"ishankatwal@gmail.com"
] |
ishankatwal@gmail.com
|
89ad067b394c5107f885a6d2672491cb3d7c42bc
|
75950d61f2e7517f3fe4c32f0109b203d41466bf
|
/modules/tags/fabric3-modules-parent-pom-1.7/extension/implementation/fabric3-web/src/main/java/org/fabric3/implementation/web/runtime/ServletContextInjector.java
|
776c3a079dbf75eb86856f203a2a1826a5f8fd33
|
[] |
no_license
|
codehaus/fabric3
|
3677d558dca066fb58845db5b0ad73d951acf880
|
491ff9ddaff6cb47cbb4452e4ddbf715314cd340
|
refs/heads/master
| 2023-07-20T00:34:33.992727
| 2012-10-31T16:32:19
| 2012-10-31T16:32:19
| 36,338,853
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,857
|
java
|
/*
* Fabric3
* Copyright (c) 2009-2011 Metaform Systems
*
* Fabric3 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, with the
* following exception:
*
* Linking this software statically or dynamically with other
* modules is making a combined work based on this software.
* Thus, the terms and conditions of the GNU General Public
* License cover the whole combination.
*
* As a special exception, the copyright holders of this software
* give you permission to link this software with independent
* modules to produce an executable, regardless of the license
* terms of these independent modules, and to copy and distribute
* the resulting executable under terms of your choice, provided
* that you also meet, for each linked independent module, the
* terms and conditions of the license of that module. An
* independent module is a module which is not derived from or
* based on this software. If you modify this software, you may
* extend this exception to your version of the software, but
* you are not obligated to do so. If you do not wish to do so,
* delete this exception statement from your version.
*
* Fabric3 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 Fabric3.
* If not, see <http://www.gnu.org/licenses/>.
*/
package org.fabric3.implementation.web.runtime;
import javax.servlet.ServletContext;
import org.fabric3.implementation.pojo.injection.MultiplicityObjectFactory;
import org.fabric3.spi.objectfactory.Injector;
import org.fabric3.spi.objectfactory.ObjectCreationException;
import org.fabric3.spi.objectfactory.ObjectFactory;
/**
* Injects objects (reference proxies, properties, contexts) into a ServletContext.
*
* @version $Rev$ $Date$
*/
public class ServletContextInjector implements Injector<ServletContext> {
private ObjectFactory<?> objectFactory;
private String key;
public void inject(ServletContext context) throws ObjectCreationException {
context.setAttribute(key, objectFactory.getInstance());
}
public void setObjectFactory(ObjectFactory<?> objectFactory, Object key) {
this.objectFactory = objectFactory;
this.key = key.toString();
}
public void clearObjectFactory() {
if (this.objectFactory instanceof MultiplicityObjectFactory<?>) {
((MultiplicityObjectFactory<?>) this.objectFactory).clear();
} else {
objectFactory = null;
key = null;
}
}
}
|
[
"jmarino@83866bfc-822f-0410-aa35-bd5043b85eaf"
] |
jmarino@83866bfc-822f-0410-aa35-bd5043b85eaf
|
f45bb894f3d23f7123c84b187a6e027c74f23970
|
182d0f4acc532472514c1a5f292436866145726a
|
/src/com/shangde/edu/cus/domain/Experience.java
|
93b7f9648fd8c8f1a2a66de62918496d5119f556
|
[] |
no_license
|
fairyhawk/sedu_admin-Deprecated
|
1c018f17381cd195a1370955b010b3278d893309
|
eb3d22edc44b2c940942d16ffe2b4b7e41eddbfb
|
refs/heads/master
| 2021-01-17T07:08:44.802635
| 2014-01-25T10:28:03
| 2014-01-25T10:28:03
| 8,679,677
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 951
|
java
|
package com.shangde.edu.cus.domain;
import java.io.Serializable;
public class Experience implements Serializable{
/**
* 当前经验值
*/
private int expValue;
/**
* 下一级的经验值
*/
private int nextExpValue;
/**
* 当前级别名称
*/
private String expName;
/**
* 当前等级
*/
private int expLevel;
public int getExpValue() {
return expValue;
}
public void setExpValue(int expValue) {
this.expValue = expValue;
}
public int getNextExpValue() {
return nextExpValue;
}
public void setNextExpValue(int nextExpValue) {
this.nextExpValue = nextExpValue;
}
public String getExpName() {
return expName;
}
public void setExpName(String expName) {
this.expName = expName;
}
public int getExpLevel() {
return expLevel;
}
public void setExpLevel(int expLevel) {
this.expLevel = expLevel;
}
}
|
[
"bis@foxmail.com"
] |
bis@foxmail.com
|
a7be26136e1e7baf1d72cbe8ca0ee83875440b15
|
764ce39c1bad590bf7839b4e175539eecbb9584a
|
/terminator-pubhook-common/src/main/java/com/qlangtech/tis/manage/common/ProcessConfigFile.java
|
726621de28186b5af50c0d791644289a4b9682a1
|
[
"MIT"
] |
permissive
|
GSIL-Monitor/tis-neptune
|
9b758ec5f6e977d353ce66c7c625537dfb1253e2
|
28f4d1dc3d4ada256457837ead3249e4addac7c2
|
refs/heads/master
| 2020-04-17T11:13:35.969979
| 2019-01-19T09:55:00
| 2019-01-19T09:55:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,600
|
java
|
/*
* The MIT License
*
* Copyright (c) 2018-2022, qinglangtech Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.qlangtech.tis.manage.common;
import org.apache.commons.lang.StringUtils;
import com.qlangtech.tis.manage.common.ConfigFileContext.ContentProcess;
import com.qlangtech.tis.pubhook.common.ConfigConstant;
/* *
* @author 百岁(baisui@qlangtech.com)
* @date 2019年1月17日
*/
public class ProcessConfigFile {
private final ConfigFileContext.ContentProcess process;
private final SnapshotDomain domain;
public ProcessConfigFile(ContentProcess process, SnapshotDomain domain) {
super();
this.process = process;
this.domain = domain;
}
public void execute() {
try {
for (PropteryGetter getter : ConfigFileReader.getConfigList()) {
if (ConfigConstant.FILE_JAR.equals(getter.getFileName())) {
continue;
}
// 没有属性得到
if (getter.getUploadResource(domain) == null) {
continue;
}
String md5 = getter.getMd5CodeValue(this.domain);
if (StringUtils.isBlank(md5)) {
continue;
}
try {
Thread.sleep(500);
} catch (Throwable e) {
}
process.execute(getter, getter.getContent(this.domain));
}
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
|
[
"baisui@2dfire.com"
] |
baisui@2dfire.com
|
32b97b519c758e32836bd74e7737301ffa40cce5
|
1ca8207218786f99f808ff82e68065b34bf64ae3
|
/src/main/java/br/com/ivanfsilva/editora/web/validator/FuncionarioValidator.java
|
b8c97d514c8d7ca7b448ac13ac5b1b1974423c12
|
[] |
no_license
|
ivanfsilva/editora-spring-jdbc
|
eef0b88956b5f16f2bd27bb7edc998c985a452f7
|
663f4006f81cb28633031db153188250c44ee45b
|
refs/heads/master
| 2023-01-24T14:37:27.922421
| 2020-11-24T16:48:56
| 2020-11-24T16:48:56
| 312,687,497
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,187
|
java
|
package br.com.ivanfsilva.editora.web.validator;
import br.com.ivanfsilva.editora.entity.Funcionario;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
import java.time.LocalDate;
public class FuncionarioValidator implements Validator {
private EnderecoValidator enderecoValidator;
public FuncionarioValidator(EnderecoValidator enderecoValidator) {
this.enderecoValidator = enderecoValidator;
}
@Override
public boolean supports(Class<?> clazz) {
return Funcionario.class.equals(clazz);
}
@Override
public void validate(Object target, Errors errors) {
ValidationUtils.rejectIfEmptyOrWhitespace(errors, "nome", "error.nome",
"O campo nome é obrigatório");
Funcionario f = (Funcionario) target;
if (f.getSalario() != null) {
if (f.getSalario() < 0 ) {
errors.rejectValue("nome", "error.salario", "O salário não deve ser negativo");
}
} else {
errors.rejectValue("nome", "error.salario", "O campo salário é obrigatório");
}
if (f.getDataEntrada() != null) {
LocalDate atual = LocalDate.now();
if (f.getDataEntrada().isAfter(atual) ) {
errors.rejectValue("dataEntrada", "error.dataEntrara",
"A data de entrada deve ser anterior ou igual a data atual");
}
} else {
errors.rejectValue("dataEntrada", "error.dataEntrada",
"O campo data de entrada é obrigatório");
}
if (f.getDataSaida() != null) {
if (f.getDataSaida().isBefore(f.getDataEntrada())) {
errors.rejectValue("dataSaida", "error.dataSaida",
"A data de saída deve ser posterior ou igual a data de entrada");
}
}
if (f.getCargo() == null) {
errors.rejectValue("cargo", "erroer.cargo", "O campo cargo é obrigatório");
}
ValidationUtils.invokeValidator(enderecoValidator, f.getEndereco(), errors);
}
}
|
[
"ivanfs27@gmail.com"
] |
ivanfs27@gmail.com
|
011b722fdbf5007d251cdb2d9e3bf7ebb977efe2
|
ad52debc9b29bcda0bd3e0d8f77bf9f42162cd84
|
/src/A06_Tiefensuche/Tiefensuche.java
|
85bafaeec1b89190c34470d1d7a0a3962b3f7a33
|
[] |
no_license
|
milli133/ALDUEUebungen
|
146cd259f5d5c48f10b18a0233b5f73ec83981e4
|
7a64d91f85503f2121fa3d64fac5739ef65e657b
|
refs/heads/master
| 2023-04-25T16:13:52.610567
| 2021-05-17T12:28:25
| 2021-05-17T12:28:25
| 362,909,902
| 0
| 0
| null | null | null | null |
MacCentralEurope
|
Java
| false
| false
| 1,093
|
java
|
package A06_Tiefensuche;
import java.util.List;
import A05_Breitensuche.BaseTree;
import A05_Breitensuche.Node;
public class Tiefensuche extends BaseTree<Film> {
@Override
/**
* Sortierkriterium im Baum: Lšnge des Films
*/
protected int compare(Film a, Film b) {
if (a.getLšnge() > b.getLšnge())
return -1;
if (a.getLšnge() < b.getLšnge())
return 1;
return 0;
}
/**
* Retourniert die Titelliste der Film-Knoten des Teilbaums in symmetrischer Folge (engl. in-order, d.h. links-Knoten-rechts)
* @param node Wurzelknoten des Teilbaums
* @return Liste der Titel in symmetrischer Reihenfolge
*/
public List<String> getNodesInOrder(Node<Film> node) {
return null;
}
/**
* Retourniert Titelliste jener Filme, deren Lšnge zwischen min und max liegt, in Hauptreihenfolge (engl. pre-order, d.h. Knoten-links-rechts)
* @param min Minimale Lšnge des Spielfilms
* @param max Maximale Lšnge des Spielfilms
* @return Liste der Filmtitel in Hauptreihenfolge
*/
public List<String> getMinMaxPreOrder(double min, double max) {
return null;
}
}
|
[
"you@example.com"
] |
you@example.com
|
1d94d4ad71e1991b17d75156fc481dd8e66252f2
|
318b813ad38900bf63c6d7978dc5e0f674d1f847
|
/Chapter 4 - Example 16/src/main/java/br/com/acaosistemas/amazonwrapped/BrowseNodeLookup.java
|
9ea53e432b13c117ebc48e20eda49f8132697b1d
|
[] |
no_license
|
MarceloLeite2604/JWSUR2E
|
9f14ef3ade90549b7c3d55890a317d23e93fdf6b
|
d77d595ed98cd11059376eae00a40954dcd157c1
|
refs/heads/master
| 2021-01-10T17:01:25.254898
| 2019-07-02T18:41:54
| 2019-07-02T18:41:54
| 43,815,334
| 0
| 0
| null | 2020-06-30T23:15:32
| 2015-10-07T12:49:16
|
Java
|
ISO-8859-1
|
Java
| false
| false
| 6,471
|
java
|
package br.com.acaosistemas.amazonwrapped;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java de anonymous complex type.
*
* <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="MarketplaceDomain" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="AWSAccessKeyId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="AssociateTag" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Validate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="XMLEscaping" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Shared" type="{http://webservices.amazon.com/AWSECommerceService/2011-08-01}BrowseNodeLookupRequest" minOccurs="0"/>
* <element name="Request" type="{http://webservices.amazon.com/AWSECommerceService/2011-08-01}BrowseNodeLookupRequest" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"marketplaceDomain",
"awsAccessKeyId",
"associateTag",
"validate",
"xmlEscaping",
"shared",
"request"
})
@XmlRootElement(name = "BrowseNodeLookup")
public class BrowseNodeLookup {
@XmlElement(name = "MarketplaceDomain")
protected String marketplaceDomain;
@XmlElement(name = "AWSAccessKeyId")
protected String awsAccessKeyId;
@XmlElement(name = "AssociateTag")
protected String associateTag;
@XmlElement(name = "Validate")
protected String validate;
@XmlElement(name = "XMLEscaping")
protected String xmlEscaping;
@XmlElement(name = "Shared")
protected BrowseNodeLookupRequest shared;
@XmlElement(name = "Request")
protected List<BrowseNodeLookupRequest> request;
/**
* Obtém o valor da propriedade marketplaceDomain.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMarketplaceDomain() {
return marketplaceDomain;
}
/**
* Define o valor da propriedade marketplaceDomain.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMarketplaceDomain(String value) {
this.marketplaceDomain = value;
}
/**
* Obtém o valor da propriedade awsAccessKeyId.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAWSAccessKeyId() {
return awsAccessKeyId;
}
/**
* Define o valor da propriedade awsAccessKeyId.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAWSAccessKeyId(String value) {
this.awsAccessKeyId = value;
}
/**
* Obtém o valor da propriedade associateTag.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAssociateTag() {
return associateTag;
}
/**
* Define o valor da propriedade associateTag.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAssociateTag(String value) {
this.associateTag = value;
}
/**
* Obtém o valor da propriedade validate.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValidate() {
return validate;
}
/**
* Define o valor da propriedade validate.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValidate(String value) {
this.validate = value;
}
/**
* Obtém o valor da propriedade xmlEscaping.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXMLEscaping() {
return xmlEscaping;
}
/**
* Define o valor da propriedade xmlEscaping.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setXMLEscaping(String value) {
this.xmlEscaping = value;
}
/**
* Obtém o valor da propriedade shared.
*
* @return
* possible object is
* {@link BrowseNodeLookupRequest }
*
*/
public BrowseNodeLookupRequest getShared() {
return shared;
}
/**
* Define o valor da propriedade shared.
*
* @param value
* allowed object is
* {@link BrowseNodeLookupRequest }
*
*/
public void setShared(BrowseNodeLookupRequest value) {
this.shared = value;
}
/**
* Gets the value of the request 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 request property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRequest().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link BrowseNodeLookupRequest }
*
*
*/
public List<BrowseNodeLookupRequest> getRequest() {
if (request == null) {
request = new ArrayList<BrowseNodeLookupRequest>();
}
return this.request;
}
}
|
[
"marceloleite2604@gmail.com"
] |
marceloleite2604@gmail.com
|
baefe63b73b08e28a480e58c8d445bdb4f39e8a9
|
c82f89b0e6d1547c2829422e7de7664b378c1039
|
/src/com/hongyu/service/impl/ReceiptDetailBranchServiceImpl.java
|
dae8c02d89fbf97f5885df796f2d001cc3ed8687
|
[] |
no_license
|
chenxiaoyin3/shetuan_backend
|
1bab5327cafd42c8086c25ade7e8ce08fda6a1ac
|
e21a0b14a2427c9ad52ed00f68d5cce2689fdaeb
|
refs/heads/master
| 2022-05-15T14:52:07.137000
| 2022-04-07T03:30:57
| 2022-04-07T03:30:57
| 250,762,749
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 700
|
java
|
package com.hongyu.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.grain.service.impl.BaseServiceImpl;
import com.hongyu.dao.ReceiptDetailBranchDao;
import com.hongyu.entity.ReceiptDetailBranch;
import com.hongyu.service.ReceiptDetailBranchService;
@Service("receiptDetailBranchServiceImpl")
public class ReceiptDetailBranchServiceImpl extends BaseServiceImpl<ReceiptDetailBranch, Long>
implements ReceiptDetailBranchService {
@Resource(name = "receiptDetailBranchDaoImpl")
ReceiptDetailBranchDao dao;
@Resource(name = "receiptDetailBranchDaoImpl")
public void setBaseDao(ReceiptDetailBranchDao dao) {
super.setBaseDao(dao);
}
}
|
[
"925544714@qq.com"
] |
925544714@qq.com
|
a8805b7b28a94384b80e312ba8f4bed14ca993e7
|
17c7cc174a4212674a83206b08d43893b0c5c822
|
/src/main/java/gutenberg/pegdown/plugin/AttributeListNode.java
|
9b33e1afe2f19d3b3bcf656c1b12f698a78e0bb0
|
[
"MIT"
] |
permissive
|
Arnauld/gutenberg
|
b321bb34dedd371820f359b0ca8c052d72c09767
|
18d761ddba378ee58a3f3dc6316f66742df8d985
|
refs/heads/master
| 2021-05-15T01:47:02.146235
| 2019-02-12T21:50:43
| 2019-02-12T21:50:43
| 22,622,311
| 3
| 3
|
MIT
| 2019-02-12T21:44:20
| 2014-08-04T22:36:02
|
Java
|
UTF-8
|
Java
| false
| false
| 933
|
java
|
package gutenberg.pegdown.plugin;
import org.parboiled.common.ImmutableList;
import org.pegdown.ast.AbstractNode;
import org.pegdown.ast.Node;
import org.pegdown.ast.Visitor;
import java.util.ArrayList;
import java.util.List;
/**
* @author <a href="http://twitter.com/aloyer">@aloyer</a>
*/
public class AttributeListNode extends AbstractNode {
private List<AttributeNode> nodes = new ArrayList<AttributeNode>();
public AttributeListNode() {
}
@Override
public void accept(Visitor visitor) {
visitor.visit(this);
}
@Override
public List<Node> getChildren() {
return ImmutableList.of();
}
@Override
public String toString() {
return "AttributeListNode{" + nodes + '}';
}
public boolean append(AttributeNode node) {
nodes.add(node);
return true;
}
public List<AttributeNode> getAttributes() {
return nodes;
}
}
|
[
"arnauld.loyer@gmail.com"
] |
arnauld.loyer@gmail.com
|
b24ef74efef23e65db94688448cb889d57523b9b
|
32ca101b67386e514d4521e4d0d857181bde0919
|
/javaSE_20180801/src/com/test113/Main.java
|
e750e490257a19a933a9e90c166b51dcee0c3538
|
[] |
no_license
|
JeonEunmi/javaSE
|
a51fb8f4631bfba963d47b806e17eff9464c7fc0
|
cbbde15cc71eb6257b6e3baa27679be9bd4c8cc7
|
refs/heads/master
| 2020-04-11T10:39:50.453601
| 2018-12-14T07:23:50
| 2018-12-14T07:23:50
| 161,722,611
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 438
|
java
|
package com.test113;
public class Main {
public static void main(String[] args) {
// Box<T> 클래스에 대한 객체 생성
// -> 타입파라미터에 대한 명시적 자료형 지정 필요
// String, Integer로 지정한 경우
Box<String, Integer> box1 = new Box<String, Integer>("M01", 100);
System.out.println(box1.getKey()); //"M01"
System.out.println(box1.getValue()); // 100
}
}
|
[
"bunny648@hanmail.net"
] |
bunny648@hanmail.net
|
fd268b470725e3dcf28ab4a5a02067d16e1c48a8
|
2b6e3a34ec277f72a5da125afecfe3f4a61419f5
|
/Ruyicai_General/v4.0.0_plugin/src/com/ruyicai/activity/usercenter/ChangePasswordActivity.java
|
49814702f209f4d1ba65ec38dc1819701be9065c
|
[] |
no_license
|
surport/Android
|
03d538fe8484b0ff0a83b8b0b2499ad14592c64b
|
afc2668728379caeb504c9b769011f2ba1e27d25
|
refs/heads/master
| 2020-04-02T10:29:40.438348
| 2013-12-18T09:55:42
| 2013-12-18T09:55:42
| 15,285,717
| 3
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,656
|
java
|
package com.ruyicai.activity.usercenter;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.palmdream.RuyicaiAndroid.R;
import com.ruyicai.net.newtransaction.ChangePasswordInterface;
import com.ruyicai.util.RWSharedPreferences;
/**
* 密码修改
*
* @author miao
*
*/
public class ChangePasswordActivity extends Activity {
private String phonenum, sessionid, userno;
private String re;
private JSONObject obj;
ProgressDialog progressDialog;
EditText oldPassWD, newPassWD, newPassWDAgain;
Button submit, cancle;
final int DIALOG1_KEY = 0;
/**
* 处理登录的消息及注册的消息
*/
final Handler handler = new Handler() {
public void handleMessage(Message msg) {
switch (msg.what) {
case 1:
progressDialog.dismiss();
Toast.makeText(ChangePasswordActivity.this, (String) msg.obj,
Toast.LENGTH_LONG).show();
finish();
break;
}
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.usercenter_changepawd);
oldPassWD = (EditText) findViewById(R.id.usercenter_edittext_originalpwd);
newPassWD = (EditText) findViewById(R.id.usercenter_edittext_newpwd);
newPassWDAgain = (EditText) findViewById(R.id.usercenter_edittext_confirmnewpwd);
submit = (Button) findViewById(R.id.usercenter_changepwd_submit);
submit.setOnClickListener(changepawdlistener);
cancle = (Button) findViewById(R.id.usercenter_changepwd_back);
cancle.setOnClickListener(changepawdlistener);
initPojo();
}
private void initPojo() {
RWSharedPreferences shellRW = new RWSharedPreferences(this, "addInfo");
phonenum = shellRW.getStringValue("phonenum");
sessionid = shellRW.getStringValue("sessionid");
userno = shellRW.getStringValue("userno");
}
public void editPassword() {
final String originalpwd = oldPassWD.getText().toString();
final String newpwd = newPassWD.getText().toString();
final String confirmpwd = newPassWDAgain.getText().toString();
// wangyl 7.21 验证密码长度
if (oldPassWD.length() >= 6 && oldPassWD.length() <= 16
&& newPassWD.length() >= 6 && newPassWD.length() <= 16
&& newPassWDAgain.length() >= 6
&& newPassWDAgain.length() <= 16) {
if (!confirmpwd.equalsIgnoreCase(newpwd)) {
newPassWDAgain.setText("");
Toast.makeText(this, R.string.usercenter_changPSWRemind2,
Toast.LENGTH_SHORT).show();
} else {
showDialog(0);
new Thread(new Runnable() {
public void run() {
String changepassback = ChangePasswordInterface
.getInstance().changePass(phonenum,
originalpwd, newpwd, sessionid, userno);
try {
JSONObject changepassjson = new JSONObject(
changepassback);
String errorCode = changepassjson
.getString("error_code");
String message = changepassjson
.getString("message");
Message msg = new Message();
msg.what = 1;
msg.obj = message;
handler.sendMessage(msg);
} catch (JSONException e) {
// TODO Auto-generated catch block
}
}
}).start();
}
} else {
Toast.makeText(this, R.string.usercenter_changPSWRemind,
Toast.LENGTH_SHORT).show();
}
}
OnClickListener changepawdlistener = new OnClickListener() {
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.usercenter_changepwd_submit:
editPassword();
break;
case R.id.usercenter_changepwd_back:
finish();
break;
default:
break;
}
}
};
protected Dialog onCreateDialog(int id) {
progressDialog = new ProgressDialog(this);
switch (id) {
case DIALOG1_KEY: {
progressDialog.setTitle(R.string.usercenter_netDialogTitle);
progressDialog
.setMessage(getString(R.string.usercenter_netDialogRemind));
progressDialog.setIndeterminate(true);
progressDialog.setCancelable(true);
return progressDialog;
}
}
return progressDialog;
}
@Override
protected void onPause() {
super.onPause();
}
@Override
protected void onResume() {
super.onResume();
}
}
|
[
"zxflimit@gmail.com"
] |
zxflimit@gmail.com
|
be26b26fe6774fb29d4ef33344409b53d38f64bf
|
7fa9c6b0fa1d0726ae1cda0199716c811a1ea01b
|
/Crawler/data/Observations.java
|
d300df23b2b82610d822ad9d29891a55642c2b36
|
[] |
no_license
|
NayrozD/DD2476-Project
|
b0ca75799793d8ced8d4d3ba3c43c79bb84a72c0
|
94dfb3c0a470527b069e2e0fd9ee375787ee5532
|
refs/heads/master
| 2023-03-18T04:04:59.111664
| 2021-03-10T15:03:07
| 2021-03-10T15:03:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,405
|
java
|
14
https://raw.githubusercontent.com/mjtb49/LattiCG/master/src/randomreverser/reversal/observation/Observations.java
package randomreverser.reversal.observation;
import randomreverser.reversal.constraint.ChoiceConstraint;
import randomreverser.reversal.constraint.Constraint;
import randomreverser.reversal.constraint.RangeConstraint;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;
public class Observations {
private static final Map<String, Function<Constraint<?>, ? extends Observation>> observationCreators = new HashMap<>();
private static final Map<Class<? extends Observation>, String> names = new HashMap<>();
static {
registerObservation("range", RangeObservation.class, (Function<RangeConstraint, RangeObservation>) RangeObservation::new);
registerChoiceObservation();
}
@SuppressWarnings("unchecked")
private static void registerChoiceObservation() {
registerObservation(
"choice",
(Class<ChoiceObservation<?>>) (Class<?>) ChoiceObservation.class,
(Constraint<ChoiceObservation<?>> c) -> new ChoiceObservation<>((ChoiceConstraint<?>) (Constraint<?>) c)
);
}
@SuppressWarnings("unchecked")
public static <T extends Observation> void registerObservation(String name, Class<T> clazz, Function<? extends Constraint<T>, T> creator) {
observationCreators.put(name, (Function<Constraint<?>, ? extends Observation>) (Function<?, ?>) creator);
names.put(clazz, name);
}
public static String getName(Observation observation) {
String name = names.get(observation.getClass());
if (name == null) {
throw new IllegalArgumentException("Unregistered observation " + observation.getClass().getName());
}
return name;
}
@SuppressWarnings("unchecked")
public static <T extends Observation> T createEmptyObservation(String name, Constraint<T> constraint) {
Function<Constraint<T>, T> creator = (Function<Constraint<T>, T>) (Function<?, ?>) observationCreators.get(name);
if (creator == null) {
throw new IllegalArgumentException("Unknown observation '" + name + "'");
}
return creator.apply(constraint);
}
public static boolean isObservation(String name) {
return observationCreators.containsKey(name);
}
}
|
[
"veronika.cucorova@gmail.com"
] |
veronika.cucorova@gmail.com
|
3f85b30ca94741bd2ced5f28d3f91d83a9a7b057
|
5407585b7749d94f5a882eee6f7129afc6f79720
|
/dm-code/dm-service/src/test/java/org/finra/dm/service/helper/S3PropertiesLocationHelperTest.java
|
bf21a1bcf2d8aae034739f52e806940e95a8a6af
|
[
"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
| 4,307
|
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.helper;
import org.junit.Assert;
import org.junit.Test;
import org.finra.dm.model.api.xml.S3PropertiesLocation;
import org.finra.dm.service.AbstractServiceTest;
public class S3PropertiesLocationHelperTest extends AbstractServiceTest
{
/**
* validate() throws no errors when {@link S3PropertiesLocation} is given with both bucket name and key as a non-blank string.
* The given object's bucket name and key should be trimmed as a side effect.
*/
@Test
public void testValidateNoErrorsAndTrimmed()
{
S3PropertiesLocation s3PropertiesLocation = getS3PropertiesLocation();
String expectedBucketName = s3PropertiesLocation.getBucketName();
String expectedKey = s3PropertiesLocation.getKey();
s3PropertiesLocation.setBucketName(BLANK_TEXT + s3PropertiesLocation.getBucketName() + BLANK_TEXT);
s3PropertiesLocation.setKey(BLANK_TEXT + s3PropertiesLocation.getKey() + BLANK_TEXT);
try
{
s3PropertiesLocationHelper.validate(s3PropertiesLocation);
Assert.assertEquals("s3PropertiesLocation bucketName", expectedBucketName, s3PropertiesLocation.getBucketName());
Assert.assertEquals("s3PropertiesLocation key", expectedKey, s3PropertiesLocation.getKey());
}
catch (Exception e)
{
Assert.fail("unexpected exception was thrown. " + e);
}
}
/**
* validate() throws an IllegalArgumentException when bucket name is blank.
*/
@Test
public void testValidateWhenBucketNameIsBlankThrowsError()
{
S3PropertiesLocation s3PropertiesLocation = getS3PropertiesLocation();
s3PropertiesLocation.setBucketName(BLANK_TEXT);
testValidateThrowsError(s3PropertiesLocation, IllegalArgumentException.class, "S3 properties location bucket name must be specified.");
}
/**
* validate() throws an IllegalArgumentException when key is blank.
*/
@Test
public void testValidateWhenObjectKeyIsBlankThrowsError()
{
S3PropertiesLocation s3PropertiesLocation = getS3PropertiesLocation();
s3PropertiesLocation.setKey(BLANK_TEXT);
testValidateThrowsError(s3PropertiesLocation, IllegalArgumentException.class, "S3 properties location object key must be specified.");
}
/**
* Tests that validate() throws an exception with called with the given {@link S3PropertiesLocation}.
*
* @param s3PropertiesLocation {@link S3PropertiesLocation}
* @param expectedExceptionType expected exception type
* @param expectedMessage expected exception message
*/
private void testValidateThrowsError(S3PropertiesLocation s3PropertiesLocation, Class<? extends Exception> expectedExceptionType, String expectedMessage)
{
try
{
s3PropertiesLocationHelper.validate(s3PropertiesLocation);
Assert.fail("expected " + expectedExceptionType.getSimpleName() + ", but no exception was thrown");
}
catch (Exception e)
{
Assert.assertEquals("thrown exception type", expectedExceptionType, e.getClass());
Assert.assertEquals("thrown exception message", expectedMessage, e.getMessage());
}
}
/**
* Creates a new {@link S3PropertiesLocation} with bucket name and key.
*
* @return {@link S3PropertiesLocation}
*/
private S3PropertiesLocation getS3PropertiesLocation()
{
S3PropertiesLocation s3PropertiesLocation = new S3PropertiesLocation();
s3PropertiesLocation.setBucketName("testBucketName");
s3PropertiesLocation.setKey("testKey");
return s3PropertiesLocation;
}
}
|
[
"mchao47@gmail.com"
] |
mchao47@gmail.com
|
62da99fa6e991019aec7bf6f962c26819cd527af
|
0c993ac3c8ac60aa0765561530959feb9847c0a3
|
/geek-spring-part-two-19/shop-user-service/src/main/java/ru/geekbrains/controller/repr/UserRepr.java
|
a061f674882258c34f7b9720bde2bf1b9b19bb40
|
[] |
no_license
|
D1mkaGit/GeekBrains
|
0b96bb871b70708e6ad3f8f7ca74ad3908d9205e
|
a638f697e3380c2c1461156fa8b8153f825f220e
|
refs/heads/master
| 2023-04-06T06:47:20.423827
| 2022-12-25T19:31:18
| 2022-12-25T19:31:18
| 221,762,240
| 1
| 1
| null | 2023-03-24T01:17:50
| 2019-11-14T18:30:42
|
Java
|
UTF-8
|
Java
| false
| false
| 2,161
|
java
|
package ru.geekbrains.controller.repr;
import ru.geekbrains.persist.model.Role;
import ru.geekbrains.persist.model.User;
import javax.validation.constraints.NotEmpty;
import java.util.Set;
public class UserRepr {
Long id;
@NotEmpty
String username;
String password; // todo: нужно где-то на бэке проверять, что пароль не пустой на реге, а в профайле сохранять без пароля
String firstName;
String lastName;
String email;
Set<Role> roles;
public UserRepr() {
}
public UserRepr(User user) {
this.id = user.getId();
this.username = user.getUsername();
this.password = user.getPassword();
this.firstName = user.getFirstName();
this.lastName = user.getLastName();
this.email = user.getEmail();
this.roles = user.getRoles();
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
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 getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Set<Role> getRoles() {
return roles;
}
public void setRoles(Set<Role> roles) {
this.roles = roles;
}
@Override
public String toString() {
return "UserRepr{" +
"id=" + id +
", username='" + username + '\'' +
", password='" + password + '\'' +
'}';
}
}
|
[
"30922998+D1mkaGit@users.noreply.github.com"
] |
30922998+D1mkaGit@users.noreply.github.com
|
3d10ea1b136936d8158a0f8c499c9a979194ff50
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/9/9_44091ec1f69a57d0e04f4e3081d07467f825bcba/Preferences/9_44091ec1f69a57d0e04f4e3081d07467f825bcba_Preferences_t.java
|
fda31f205b37ef4fae2984c394a6b5d93186063f
|
[] |
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,676
|
java
|
package com.noshufou.android.su.preferences;
public class Preferences {
public static final String PIN = "pref_pin";
public static final String CHANGE_PIN = "pref_change_pin";
public static final String TIMEOUT = "pref_timeout";
public static final String AUTOMATIC_ACTION = "pref_automatic_action";
public static final String GHOST_MODE = "pref_ghost_mode";
public static final String SECRET_CODE = "pref_secret_code";
public static final String SHOW_STATUS_ICONS = "pref_show_status_icons";
public static final String STATUS_ICON_TYPE = "pref_status_icon_type";
public static final String APPLIST_SHOW_LOG_DATA = "pref_applist_show_log_data";
public static final String LOGGING = "pref_logging";
public static final String DELETE_OLD_LOGS = "pref_delete_old_logs";
public static final String LOG_ENTRY_LIMIT = "pref_log_entry_limit";
public static final String HOUR_FORMAT = "pref_24_hour_format";
public static final String SHOW_SECONDS = "pref_show_seconds";
public static final String DATE_FORMAT = "pref_date_format";
public static final String CLEAR_LOG = "pref_clear_log";
public static final String NOTIFICATIONS = "pref_notifications";
public static final String NOTIFICATION_TYPE = "pref_notification_type";
public static final String TOAST_LOCATION = "pref_toast_location";
public static final String USE_ALLOW_TAG = "pref_use_allow_tag";
public static final String WRITE_ALLOW_TAG = "pref_write_allow_tag";
public static final String VERSION = "pref_version";
public static final String BIN_VERSION = "pref_bin_version";
public static final String CHANGELOG = "pref_changelog";
public static final String GET_ELITE = "pref_get_elite";
public static final String CATEGORY_SECURITY = "pref_category_security";
public static final String CATEGORY_APPLIST = "pref_category_applist";
public static final String CATEGORY_LOG = "pref_category_log";
public static final String CATEGORY_NOTIFICATION = "pref_category_notification";
public static final String CATEGORY_NFC = "pref_category_nfc";
public static final String CATEGORY_INFO = "pref_category_info";
public static final String ELITE_PREFS[] = new String[] {
CATEGORY_SECURITY + ":" + PIN,
CATEGORY_SECURITY + ":" + CHANGE_PIN,
CATEGORY_SECURITY + ":" + TIMEOUT,
CATEGORY_SECURITY + ":" + GHOST_MODE,
CATEGORY_SECURITY + ":" + SECRET_CODE,
CATEGORY_LOG + ":" + LOG_ENTRY_LIMIT ,
CATEGORY_NOTIFICATION + ":" + TOAST_LOCATION,
CATEGORY_NFC + ":all"
};
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
121895191c5b819eeb70d4860a737a82fd4118f4
|
051cf5dcfe5c651274f034f2ae694c7a12f4db70
|
/app/src/main/java/com/conquer/sharp/main/MainAdapter.java
|
5cca06e6123f1b7c9b0d780908f36180f0a73749
|
[] |
no_license
|
wanghaihui/Sharp
|
a8fddfac59c25b957ac129e496f83b3acd046fbc
|
f58e9a504ad1170050dd12b196e7a470a719794a
|
refs/heads/master
| 2021-07-18T20:52:49.305736
| 2020-04-18T10:50:47
| 2020-04-18T10:50:47
| 137,014,501
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,245
|
java
|
package com.conquer.sharp.main;
import android.content.Context;
import android.view.View;
import com.conquer.sharp.R;
import com.conquer.sharp.recycler.BaseRecyclerAdapter;
import com.conquer.sharp.recycler.OnRVItemClickListener;
import com.conquer.sharp.recycler.RecyclerViewHolder;
import java.util.ArrayList;
public class MainAdapter extends BaseRecyclerAdapter<String> {
private OnRVItemClickListener onRVItemClickListener;
public void setOnRVItemClickListener(OnRVItemClickListener listener) {
onRVItemClickListener = listener;
}
public MainAdapter(Context context, int layoutId) {
super(context, layoutId);
mDataList = new ArrayList<>();
}
public void convert(RecyclerViewHolder holder, String name, int position) {
holder.setText(R.id.tvName, name);
holder.getConvertView().setTag(position);
holder.getConvertView().setOnClickListener(onClickListener);
}
private View.OnClickListener onClickListener = new View.OnClickListener() {
@Override
public void onClick(View view) {
if (onRVItemClickListener != null) {
onRVItemClickListener.onItemClick((Integer) view.getTag());
}
}
};
}
|
[
"465495722@qq.com"
] |
465495722@qq.com
|
a26ad98472e2d332df025267fb10dec3e7bf56cd
|
479038f3dac22eaeb4ef2f9c8909c60540e871f3
|
/app/src/main/java/org/tangze/work/widget/stickygridheaders/StickyGridHeadersSimpleAdapter.java
|
7201b5d6e53fd87a1c10c73bbb96bab4de951065
|
[] |
no_license
|
AliesYangpai/TangZeShopping
|
1ef55ea467e5c5f13e7dd2b3cf9a0b4669147416
|
db6ff3e815c65ddd160bc540cffa7cbffc6172e3
|
refs/heads/master
| 2020-03-29T22:48:19.205460
| 2018-09-26T14:39:04
| 2018-09-26T14:39:04
| 150,441,150
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,304
|
java
|
/*
Copyright 2013 Tonic Artos
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.tangze.work.widget.stickygridheaders;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListAdapter;
/**
* Adapter interface for StickyGridHeadersGridView. The adapter expects two sets
* of data, items, and headers. Implement this interface to provide an optimised
* method for generating the header data set.
*
* The is a second interface
*
*
* @author Tonic Artos
*/
public interface StickyGridHeadersSimpleAdapter extends ListAdapter {
/**
* Get the header id associated with the specified position in the list.
*
* @param position
* The position of the item within the adapter's data set whose
* header id we want.
* @return The id of the header at the specified position.
*/
long getHeaderId(int position);
/**
* Get a View that displays the header data at the specified position in the
* set. You can either create a View manually or inflate it from an XML
* layout file.
*
* @param position
* The position of the header within the adapter's header data
* set.
* @param convertView
* The old view to reuse, if possible. Note: You should check
* that this view is non-null and of an appropriate type before
* using. If it is not possible to convert this view to display
* the correct data, this method can create a new view.
* @param parent
* The parent that this view will eventually be attached to.
* @return A View corresponding to the data at the specified position.
*/
View getHeaderView(int position, View convertView, ViewGroup parent);
}
|
[
"yangpai_beibei@163.com"
] |
yangpai_beibei@163.com
|
b716926808f6f378dae72c41b4e819142e0e6c0a
|
0d3b137f74ae72b42348a898d1d7ce272d80a73b
|
/src/main/java/com/dingtalk/api/response/OapiSmartdeviceDeviceUnbindResponse.java
|
0b7afa6d2a25c59833ada4623f2539760d74da35
|
[] |
no_license
|
devezhao/dingtalk-sdk
|
946eaadd7b266a0952fb7a9bf22b38529ee746f9
|
267ff4a7569d24465d741e6332a512244246d814
|
refs/heads/main
| 2022-07-29T22:58:51.460531
| 2021-08-31T15:51:20
| 2021-08-31T15:51:20
| 401,749,078
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,110
|
java
|
package com.dingtalk.api.response;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoResponse;
/**
* TOP DingTalk-API: dingtalk.oapi.smartdevice.device.unbind response.
*
* @author top auto create
* @since 1.0, null
*/
public class OapiSmartdeviceDeviceUnbindResponse extends TaobaoResponse {
private static final long serialVersionUID = 8663875899963267178L;
/**
* 错误代码
*/
@ApiField("errcode")
private Long errcode;
/**
* 错误信息
*/
@ApiField("errmsg")
private String errmsg;
/**
* 是否成功
*/
@ApiField("success")
private Boolean success;
public void setErrcode(Long errcode) {
this.errcode = errcode;
}
public Long getErrcode( ) {
return this.errcode;
}
public void setErrmsg(String errmsg) {
this.errmsg = errmsg;
}
public String getErrmsg( ) {
return this.errmsg;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public Boolean getSuccess( ) {
return this.success;
}
public boolean isSuccess() {
return getErrcode() == null || getErrcode().equals(0L);
}
}
|
[
"zhaofang123@gmail.com"
] |
zhaofang123@gmail.com
|
260d9b54bda263b4ca570737da43391494c56357
|
e71853010ac315df7690d886b1c59a8c18024096
|
/smallrye-reactive-messaging-http/src/main/java/io/smallrye/reactive/messaging/http/converters/Converter.java
|
7dcb41c9ba5ef38a57b069d3a822aba3b0bfc08b
|
[
"Apache-2.0"
] |
permissive
|
BechirLandolsi/smallrye-reactive-messaging
|
b8b5f7199fed1a5cd66232e6ab359594455da8e6
|
1acec96282d3406e83468009d48f57a04d6d12f4
|
refs/heads/master
| 2020-07-15T23:16:52.484357
| 2019-08-29T14:49:08
| 2019-08-29T14:49:08
| 205,669,820
| 1
| 1
|
Apache-2.0
| 2019-09-01T11:56:34
| 2019-09-01T11:56:34
| null |
UTF-8
|
Java
| false
| false
| 251
|
java
|
package io.smallrye.reactive.messaging.http.converters;
import java.util.concurrent.CompletionStage;
public interface Converter<I, O> {
CompletionStage<O> convert(I payload);
Class<? extends I> input();
Class<? extends O> ouput();
}
|
[
"clement.escoffier@gmail.com"
] |
clement.escoffier@gmail.com
|
152b2e6eec6ca9ef997eba5aae8f81100e008ff1
|
57cee9cd3be1b87a994681b9d82526668c38918c
|
/src/main/java/com/ithinksky/java/n05mutilthread/dbpool/t001/ConnectionPoolTest.java
|
db526cb889c70dfa54eb8cf99e25e79ea3dd609f
|
[
"MIT"
] |
permissive
|
ithinksky/java-base-bucket
|
8a99f42925bdec8c10fa10f9cb386846fdb4b5ff
|
3155d69ae4d56ec49f3d61588bbcffe6250ad84e
|
refs/heads/master
| 2023-07-14T11:05:17.354138
| 2023-06-28T08:37:06
| 2023-06-28T08:37:06
| 173,917,105
| 3
| 0
|
MIT
| 2023-09-14T07:07:27
| 2019-03-05T09:34:25
|
Java
|
UTF-8
|
Java
| false
| false
| 2,600
|
java
|
package com.ithinksky.java.n05mutilthread.dbpool.t001;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicInteger;
/**
* 测试数据库连接池
*
* @author tengpeng.gao
* @since 2019/3/9
*/
public class ConnectionPoolTest {
static ConnectionPool pool = new ConnectionPool(10);
// 保证所有 ConnectionRunner 同时开始
static CountDownLatch start = new CountDownLatch(1);
// main 线程将会等待所有 ConnectionRunner 结束后才能继续进行
static CountDownLatch end;
static class ConnectionRunner implements Runnable {
int count;
AtomicInteger got;
AtomicInteger notGot;
public ConnectionRunner(int count, AtomicInteger got, AtomicInteger notGot) {
this.count = count;
this.got = got;
this.notGot = notGot;
}
@Override
public void run() {
try {
start.await();
} catch (InterruptedException e) {
e.printStackTrace();
}
while (count > 0) {
try {
Connection connection = pool.fetchConnection(1000);
if (connection != null) {
try {
connection.executeSql();
} finally {
pool.releaseConnection(connection);
got.incrementAndGet();
}
} else {
notGot.incrementAndGet();
}
} catch (InterruptedException e) {
e.printStackTrace();
} finally {
count--;
}
}
end.countDown();
}
}
public static void main(String[] args) throws InterruptedException {
int threadCount = 50;
end = new CountDownLatch(threadCount);
// 每个线程申请数据库连接次数
int count = 20;
AtomicInteger got = new AtomicInteger();
AtomicInteger notGot = new AtomicInteger();
for (int i = 1; i <= threadCount; i++) {
Thread thread = new Thread(new ConnectionRunner(count, got, notGot), "ConnectionRunnerThread-" + i);
thread.start();
}
start.countDown();
end.await();
System.out.println("total invoke: " + (threadCount * count));
System.out.println("got connection: " + got);
System.out.println("not got connection: " + notGot);
}
}
|
[
"tengpeng.gao@gmail.com"
] |
tengpeng.gao@gmail.com
|
c38ed76b4e8f7d0c8e648ea7fcc163fdd85ec1be
|
d9e9d8902871f954d5afc3b880791a64b8b7e218
|
/institute-run/src/main/java/com/webstack/instituterun/dto/StudentDTO.java
|
39ac1f03cca86b7fec615abb5a6db59ca667f22e
|
[] |
no_license
|
keyur2714/webstack
|
4e85f1a6897d0fb6478f1b5ba0f63cf58b2fd147
|
21b04b3fd788c9b8c87bedbf599baed136cdf3d6
|
refs/heads/master
| 2023-01-10T11:53:34.821273
| 2019-12-21T04:35:54
| 2019-12-21T04:35:54
| 229,220,607
| 0
| 0
| null | 2023-01-07T13:03:27
| 2019-12-20T08:13:52
|
Java
|
UTF-8
|
Java
| false
| false
| 3,213
|
java
|
package com.webstack.instituterun.dto;
import java.sql.Date;
public class StudentDTO {
private Long id;
private String name;
private String mobileNo;
private String email;
private Long totalFees;
private Integer discount;
private Long finalFees;
private Long feesPaid;
private Long feesRemaining;
private String feesStatus;
private Date registrationDate;
private Long courseId;
private String courseCode;
private String courseName;
private Long fees;
private Long batchId;
private String batchName;
private String batchType;
private String batchTime;
private boolean selected;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getMobileNo() {
return mobileNo;
}
public void setMobileNo(String mobileNo) {
this.mobileNo = mobileNo;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Long getTotalFees() {
return totalFees;
}
public void setTotalFees(Long totalFees) {
this.totalFees = totalFees;
}
public Integer getDiscount() {
return discount;
}
public void setDiscount(Integer discount) {
this.discount = discount;
}
public Long getFinalFees() {
return finalFees;
}
public void setFinalFees(Long finalFees) {
this.finalFees = finalFees;
}
public Long getFeesPaid() {
return feesPaid;
}
public void setFeesPaid(Long feesPaid) {
this.feesPaid = feesPaid;
}
public Long getFeesRemaining() {
return feesRemaining;
}
public void setFeesRemaining(Long feesRemaining) {
this.feesRemaining = feesRemaining;
}
public String getFeesStatus() {
return feesStatus;
}
public void setFeesStatus(String feesStatus) {
this.feesStatus = feesStatus;
}
public Date getRegistrationDate() {
return registrationDate;
}
public void setRegistrationDate(Date registrationDate) {
this.registrationDate = registrationDate;
}
public Long getCourseId() {
return courseId;
}
public void setCourseId(Long courseId) {
this.courseId = courseId;
}
public String getCourseCode() {
return courseCode;
}
public void setCourseCode(String courseCode) {
this.courseCode = courseCode;
}
public String getCourseName() {
return courseName;
}
public void setCourseName(String courseName) {
this.courseName = courseName;
}
public Long getFees() {
return fees;
}
public void setFees(Long fees) {
this.fees = fees;
}
public Long getBatchId() {
return batchId;
}
public void setBatchId(Long batchId) {
this.batchId = batchId;
}
public String getBatchName() {
return batchName;
}
public void setBatchName(String batchName) {
this.batchName = batchName;
}
public String getBatchType() {
return batchType;
}
public void setBatchType(String batchType) {
this.batchType = batchType;
}
public String getBatchTime() {
return batchTime;
}
public void setBatchTime(String batchTime) {
this.batchTime = batchTime;
}
public boolean isSelected() {
return selected;
}
public void setSelected(boolean selected) {
this.selected = selected;
}
}
|
[
"keyur.555kn@gmail.com"
] |
keyur.555kn@gmail.com
|
def2b8cf06b140326e0a6a36c5ba36418349605f
|
e7ee311e20b40c87bf6d23a53a1d7b11fd29d2c3
|
/src/chosun/ciis/hd/yadjm/ds/HD_YADJM_167001_ADataSet.java
|
40b67c7f4122a8bbff72625843dc327372d55f79
|
[] |
no_license
|
nosmoon/misdevteam
|
4e3695ef7bbdcd231bb84d7d8d7df54a23ff0a60
|
1829d5bd489eb6dd307ca244f0e183a31a1de773
|
refs/heads/master
| 2020-04-15T15:57:05.480056
| 2019-01-10T01:12:01
| 2019-01-10T01:12:01
| 164,812,547
| 1
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 2,705
|
java
|
/***************************************************************************************************
* 파일명 : .java
* 기능 : 독자우대-구독신청
* 작성일자 : 2007-05-22
* 작성자 : 김대섭
***************************************************************************************************/
/***************************************************************************************************
* 수정내역 :
* 수정자 :
* 수정일자 :
* 백업 :
***************************************************************************************************/
package chosun.ciis.hd.yadjm.ds;
import java.sql.*;
import java.util.*;
import somo.framework.db.*;
import somo.framework.util.*;
import chosun.ciis.hd.yadjm.dm.*;
import chosun.ciis.hd.yadjm.rec.*;
/**
*
*/
public class HD_YADJM_167001_ADataSet extends somo.framework.db.BaseDataSet implements java.io.Serializable{
public String errcode;
public String errmsg;
public HD_YADJM_167001_ADataSet(){}
public HD_YADJM_167001_ADataSet(String errcode, String errmsg){
this.errcode = errcode;
this.errmsg = errmsg;
}
public void setErrcode(String errcode){
this.errcode = errcode;
}
public void setErrmsg(String errmsg){
this.errmsg = errmsg;
}
public String getErrcode(){
return this.errcode;
}
public String getErrmsg(){
return this.errmsg;
}
public void getValues(CallableStatement cstmt) throws SQLException{
this.errcode = Util.checkString(cstmt.getString(1));
this.errmsg = Util.checkString(cstmt.getString(2));
}
}/*----------------------------------------------------------------------------------------------------
Web Tier에서 DataSet 객체 관련 코드 작성시 사용하십시오.
<%
HD_YADJM_167001_ADataSet ds = (HD_YADJM_156001_ADataSet)request.getAttribute("ds");
%>
Web Tier에서 Record 객체 관련 코드 작성시 사용하십시오.
----------------------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------
Web Tier에서 DataSet 객체의 <%= %> 작성시 사용하십시오.
<%= ds.getErrcode()%>
<%= ds.getErrmsg()%>
----------------------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------
Web Tier에서 Record 객체의 <%= %> 작성시 사용하십시오.
----------------------------------------------------------------------------------------------------*/
/* 작성시간 : Mon Dec 21 14:17:54 KST 2015 */
|
[
"DLCOM000@172.16.30.11"
] |
DLCOM000@172.16.30.11
|
4a60f20fad797ac36a365cd07f0dc562923cb5fd
|
e5871ece699da23892937e263068df1378f0a4cd
|
/Spring-Projects/EXAM PREP 3/ColonialCouncilBank/src/main/java/app/ccb/util/XmlParserImpl.java
|
c1ed56a33ab69dd97832009eb8f285e2abfa69fc
|
[
"MIT"
] |
permissive
|
DenislavVelichkov/Java-DBS-Module-June-2019
|
a047d5f534378b1682410c86595fd40466638cdc
|
643422bf41d99af1e0bbd3898fa5adfba8b2c36c
|
refs/heads/master
| 2022-12-22T12:08:47.625449
| 2020-02-10T09:21:15
| 2020-02-10T09:21:15
| 204,847,760
| 0
| 0
|
MIT
| 2022-12-16T05:03:18
| 2019-08-28T04:26:36
|
Java
|
UTF-8
|
Java
| false
| false
| 1,114
|
java
|
package app.ccb.util;
import org.springframework.stereotype.Component;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import java.io.*;
@Component
public class XmlParserImpl implements XmlParser {
@Override
public <O> O parseXml(Class<O> objectClass, String path) throws JAXBException, FileNotFoundException {
JAXBContext context = JAXBContext.newInstance(objectClass);
BufferedReader reader =
new BufferedReader(new InputStreamReader(new FileInputStream(new File(path))));
Unmarshaller unmarshaller = context.createUnmarshaller();
return (O) unmarshaller.unmarshal(reader);
}
@Override
public <O> void exportToXml(O object, Class<O> objectClass, String path) throws JAXBException {
JAXBContext context = JAXBContext.newInstance(objectClass);
Marshaller marshaller = context.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
marshaller.marshal(object, new File(path));
}
}
|
[
"denislav.velichkov@gmail.com"
] |
denislav.velichkov@gmail.com
|
53fdf6e730a38e04915caee59309c268a13a6399
|
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
|
/src/main/output/moment/city_number_city/night.java
|
3ede2d32d6c61389f01752d87dab04ff2843ce4b
|
[] |
no_license
|
matkosoric/GenericNameTesting
|
860a22af1098dda9ea9e24a1fc681bb728aa2d69
|
03f4a38229c28bc6d83258e5a84fce4b189d5f00
|
refs/heads/master
| 2021-01-08T22:35:20.022350
| 2020-02-21T11:28:21
| 2020-02-21T11:28:21
| 242,123,053
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,348
|
java
|
using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using Newtonsoft.Json;
using Microsoft.Extensions.Configuration;
using System.Linq;
/* in this repo */
using dfbStartup;
namespace cog_console
{
class Program
{
public const string subscriptionkey_Emotion = "c965a908e198edb28a0b259e7601410a";
public const string subscriptionkey_LanguageTranslation = "4238bbff5fafb7c6bf2b2df132ee5331";
static void Main(string[] args)
{
//Console.WriteLine("Hello World!");
//EmotionFromImage().Wait();
//TranslateList().Wait();
JsonConfiguration.Init("azureKeys.json");
Console.WriteLine(JsonConfiguration.Config["emotion"]);
}
private static async Task EmotionFromImage()
{
string uri = "https://westus.api.cognitive.microsoft.com/emotion/v1.0/recognize";
var myAvatar = @"{'url': 'https://secure.gravatar.com/avatar/234khd9823hf9823hf93hf9.jpg?s=512&r=g&d=mm'}";
HttpContent contentPost = new StringContent(myAvatar, Encoding.UTF8, "application/json");
var client = new HttpClient();
client.DefaultRequestHeaders.Add("71008f23d08ec5b9d85b49fe4d753362", subscriptionkey_Emotion);
//client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var response = await client.PostAsync(uri, contentPost);
var content = await response.Content.ReadAsStringAsync();
Console.Write(content + "\n\r");
}
private static async Task TranslateList()
{
string subscriptionKey = "0483e8583a0484a88b0d78b294aa8ea2";
string uri = "https://api.microsofttranslator.com/v2/Http.svc/GetLanguagesForTranslate";
var client = new HttpClient();
client.DefaultRequestHeaders.Add("a62a48dad535e2010c8e467aad51c1e8", subscriptionkey_LanguageTranslation);
//client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var response = await client.GetAsync(uri);
var content = await response.Content.ReadAsStringAsync();
Console.Write(content);
}
}
}
|
[
"soric.matko@gmail.com"
] |
soric.matko@gmail.com
|
43fa03e0b18fc407ab962dfbadf3c8d35e00992e
|
764d198a5d3329dc5da9de4dc44344300f07de35
|
/src/main/java/com/ruisi/ext/engine/dao/DaoHelper.java
|
7ce546a18e3f6126630d619b765756b9296445bd
|
[] |
no_license
|
DarrickAZ/rsbi
|
a403cd93b034dde11370026e80e68e31d0670c7f
|
c82cd481d86e0f2ba4fd08f53b824b60bfd3170f
|
refs/heads/master
| 2020-04-26T17:32:35.928254
| 2019-03-14T06:35:31
| 2019-03-14T06:35:31
| 173,717,187
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 731
|
java
|
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.ruisi.ext.engine.dao;
import java.util.List;
import java.util.Map;
import org.springframework.jdbc.core.ConnectionCallback;
import org.springframework.jdbc.core.PreparedStatementCallback;
public interface DaoHelper {
List queryForList(String var1);
Map queryForMap(String var1);
Object queryForObject(String var1, Class var2);
Object execute(String var1, PreparedStatementCallback var2);
Long queryForLong(String var1);
void execute(String var1);
int queryForInt(String var1);
List queryForList(String var1, Object[] var2);
Object execute(ConnectionCallback var1);
}
|
[
"zhwwhx@126.com"
] |
zhwwhx@126.com
|
76f1f427d7a0075750226af375b04bd9801c8ab8
|
2daea090c54d11688b7e2f40fbeeda22fe3d01f6
|
/test/src/test/java/org/zstack/test/kvm/TestKvmMaintenanceMode2.java
|
b1a9c5ab16b3320500809ba8838e676aff0fac1e
|
[
"Apache-2.0"
] |
permissive
|
jxg01713/zstack
|
1f0e474daa6ca4647d0481c7e44d86a860ac209c
|
182fb094e9a6ef89cf010583d457a9bf4f033f33
|
refs/heads/1.0.x
| 2021-06-20T12:36:16.609798
| 2016-03-17T08:03:29
| 2016-03-17T08:03:29
| 197,339,567
| 0
| 0
|
Apache-2.0
| 2021-03-19T20:23:19
| 2019-07-17T07:36:39
|
Java
|
UTF-8
|
Java
| false
| false
| 2,467
|
java
|
package org.zstack.test.kvm;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.zstack.compute.host.HostGlobalConfig;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.componentloader.ComponentLoader;
import org.zstack.core.db.DatabaseFacade;
import org.zstack.header.host.HostInventory;
import org.zstack.header.host.HostState;
import org.zstack.header.identity.SessionInventory;
import org.zstack.simulator.kvm.KVMSimulatorConfig;
import org.zstack.test.Api;
import org.zstack.test.ApiSenderException;
import org.zstack.test.DBUtil;
import org.zstack.test.WebBeanConstructor;
import org.zstack.test.deployer.Deployer;
import org.zstack.test.storage.backup.sftp.TestSftpBackupStorageDeleteImage2;
import org.zstack.utils.Utils;
import org.zstack.utils.logging.CLogger;
import java.util.Arrays;
/*
* 3 vms on host1
* host1 enters maintenance mode
* all vms migrate failed
* all vms stop failed
* ignore maintenance error set to true
* result: host1 entered maintenance mode
*/
public class TestKvmMaintenanceMode2 {
CLogger logger = Utils.getLogger(TestSftpBackupStorageDeleteImage2.class);
Deployer deployer;
Api api;
ComponentLoader loader;
CloudBus bus;
DatabaseFacade dbf;
SessionInventory session;
KVMSimulatorConfig config;
@Before
public void setUp() throws Exception {
DBUtil.reDeployDB();
WebBeanConstructor con = new WebBeanConstructor();
deployer = new Deployer("deployerXml/kvm/TestKvmMaintenance.xml", con);
deployer.addSpringConfig("KVMRelated.xml");
deployer.build();
api = deployer.getApi();
loader = deployer.getComponentLoader();
bus = loader.getComponent(CloudBus.class);
dbf = loader.getComponent(DatabaseFacade.class);
config = loader.getComponent(KVMSimulatorConfig.class);
session = api.loginAsAdmin();
}
@Test
public void test() throws ApiSenderException {
HostInventory host1 = deployer.hosts.get("host1");
config.migrateVmSuccess = false;
config.stopVmSuccess = false;
HostGlobalConfig.IGNORE_ERROR_ON_MAINTENANCE_MODE.updateValue(true);
api.maintainHost(host1.getUuid());
host1 = api.listHosts(Arrays.asList(host1.getUuid())).get(0);
Assert.assertEquals(HostState.Maintenance.toString(), host1.getState());
}
}
|
[
"xing5820@gmail.com"
] |
xing5820@gmail.com
|
b2f46152af7b74559a1b09a157390d94fe2a49ff
|
88388166a3ac2a6defbf48f50395dc8dd25bb820
|
/android-health-data-example/HealthCheckApp/app/src/main/java/com/minsait/onesait/platform/android/healthcheckapp/MainHealthActivity.java
|
4e1dfbc84aabf96d4aa83378e915dbaedb7f4b00
|
[
"Apache-2.0"
] |
permissive
|
evalinani/onesait-cloud-platform-examples
|
7caa405c09a94dbdc1ead2c145c23e090c835802
|
7b69e05d3f39261b97081b345df9b6e1823207f6
|
refs/heads/master
| 2023-05-14T12:50:37.241695
| 2020-06-11T10:27:26
| 2020-06-11T10:27:26
| 375,388,837
| 0
| 0
|
Apache-2.0
| 2021-06-09T14:42:38
| 2021-06-09T14:42:37
| null |
UTF-8
|
Java
| false
| false
| 3,916
|
java
|
/**
* Copyright Indra Soluciones Tecnologías de la Información, S.L.U.
* 2013-2019 SPAIN
*
* 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.minsait.onesait.platform.android.healthcheckapp;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.Toast;
import java.util.ArrayList;
public class MainHealthActivity extends AppCompatActivity implements MainMenuAdapter.ListItemClickListener {
private MainMenuAdapter mAdapter;
private RecyclerView mItemsRV;
private ArrayList<MainItem> mMainItemsArray = new ArrayList<>();
protected String mAccessToken = "";
protected String mUsername = "";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main_health);
mAccessToken = getIntent().getStringExtra("accessToken");
mUsername = getIntent().getStringExtra("username");
getSupportActionBar().setTitle(mUsername);
loadMenuItems();
mItemsRV = (RecyclerView) findViewById(R.id.list_main);
LinearLayoutManager layoutManager = new LinearLayoutManager(MainHealthActivity.this);
mItemsRV.setLayoutManager(layoutManager);
mItemsRV.setHasFixedSize(true);
}
@Override
protected void onResume() {
super.onResume();
mAdapter = new MainMenuAdapter(mMainItemsArray,this);
mItemsRV.setAdapter(mAdapter);
}
private void loadMenuItems() {
for(int i=0; i<3; i++){
mMainItemsArray.add(new MainItem());
}
// mMainItemsArray.get(0).setDescription("Sensor");
//mMainItemsArray.get(0).setImageId(R.drawable.ic_bluetooth);
mMainItemsArray.get(0).setDescription("FILL-IN FORM");
mMainItemsArray.get(0).setImageId(R.drawable.ic_003_forms);
mMainItemsArray.get(1).setDescription("HISTORICAL DATA");
mMainItemsArray.get(1).setImageId(R.drawable.ic_002_graph);
mMainItemsArray.get(2).setDescription("SPECIALIST'S FEEDBACK");
mMainItemsArray.get(2).setImageId(R.drawable.ic_syringe);
}
@Override
public void onListItemClick(int clickedItemId) {
Intent mIntent = null;
switch(clickedItemId){
case -1:
Toast.makeText(this, mAccessToken,Toast.LENGTH_SHORT).show();
break;
case 0:
mIntent = new Intent(MainHealthActivity.this,FormActivity.class);
mIntent.putExtra("accessToken",mAccessToken);
mIntent.putExtra("username",mUsername);
startActivity(mIntent);
break;
case 1:
mIntent = new Intent(MainHealthActivity.this,HistActivity.class);
mIntent.putExtra("accessToken",mAccessToken);
mIntent.putExtra("username",mUsername);
startActivity(mIntent);
break;
case 2:
mIntent = new Intent(MainHealthActivity.this,FeedbackActivity.class);
mIntent.putExtra("accessToken",mAccessToken);
mIntent.putExtra("username",mUsername);
startActivity(mIntent);
break;
}
}
}
|
[
"danzig6661@gmail.com"
] |
danzig6661@gmail.com
|
7773f3a4d15812ebdbf300a5bcf0a41d5a1ec2b6
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/mapstruct/learning/7671/ContainerMappingMethod.java
|
55bcfff75527cbf981c756c7341b62a9db74fe92
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,265
|
java
|
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.internal.model;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import org.mapstruct.ap.internal.model.common.Assignment;
import org.mapstruct.ap.internal.model.common.Parameter;
import org.mapstruct.ap.internal.model.common.Type;
import org.mapstruct.ap.internal.model.source.Method;
import org.mapstruct.ap.internal.model.source.SelectionParameters;
import org.mapstruct.ap.internal.util.Strings;
/**
* A {@link MappingMethod} implemented by a {@link Mapper} class which does mapping of generic types.
* For example Iterable or Stream.
* The generic elements are mapped either by a {@link TypeConversion} or another mapping method.
*
* @author Filip Hrisafov
*/
public abstract class ContainerMappingMethod extends NormalTypeMappingMethod {
private final Assignment elementAssignment;
private final String loopVariableName;
private final SelectionParameters selectionParameters;
private final String index1Name;
private final String index2Name;
private IterableCreation iterableCreation;
ContainerMappingMethod(Method method, Collection<String> existingVariables, Assignment parameterAssignment,
MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName,
List<LifecycleCallbackMethodReference> beforeMappingReferences,
List<LifecycleCallbackMethodReference> afterMappingReferences,
SelectionParameters selectionParameters) {
super( method, existingVariables, factoryMethod, mapNullToDefault, beforeMappingReferences,
afterMappingReferences );
this.elementAssignment = parameterAssignment;
this.loopVariableName = loopVariableName;
this.selectionParameters = selectionParameters;
this.index1Name = Strings.getSafeVariableName( "i", existingVariables );
this.index2Name = Strings.getSafeVariableName( "j", existingVariables );
}
public Parameter getSourceParameter() {
for ( Parameter parameter : getParameters() ) {
if ( !parameter.isMappingTarget() && !parameter.isMappingContext() ) {
return parameter;
}
}
throw new IllegalStateException( "Method " + this + " has no source parameter." );
}
public IterableCreation getIterableCreation() {
if ( iterableCreation == null ) {
iterableCreation = IterableCreation.create( this, getSourceParameter() );
}
return iterableCreation;
}
public Assignment getElementAssignment() {
return elementAssignment;
}
@Override
public Set<Type> getImportTypes() {
Set<Type> types = super.getImportTypes();
if ( elementAssignment != null ) {
types.addAll( elementAssignment.getImportTypes() );
}
if ( iterableCreation != null ) {
types.addAll ( iterableCreation.getImportTypes() );
}
return types;
}
public String getLoopVariableName() {
return loopVariableName;
}
public abstract Type getResultElementType();
public String getIndex1Name() {
return index1Name;
}
public String getIndex2Name() {
return index2Name;
}
@Override
public int hashCode() {
//Needed for Checkstyle, otherwise it fails due to EqualsHashCode rule
return super.hashCode();
}
@Override
public boolean equals(Object obj) {
if ( this == obj ) {
return true;
}
if ( obj == null ) {
return false;
}
if ( getClass() != obj.getClass() ) {
return false;
}
if ( !super.equals( obj ) ) {
return false;
}
ContainerMappingMethod other = (ContainerMappingMethod) obj;
if ( this.selectionParameters != null ) {
if ( !this.selectionParameters.equals( other.selectionParameters ) ) {
return false;
}
}
else if ( other.selectionParameters != null ) {
return false;
}
return true;
}
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
9a2d7d09ad75b8f449298bc4801974a40ed99eb7
|
d124bd5327aedbcba7b784f93ac2c766b36d885b
|
/src/test/java/com/phrase/client/model/KeyPreviewTest.java
|
24b5512607edae285ea6b3e224cf93851ab3060d
|
[
"MIT"
] |
permissive
|
AMailanov/phrase-java
|
3df0b87d0e95f9422f980d8e88f3bdc1c9069d88
|
ef63c62b3710375bba406192876aea3694fdc22d
|
refs/heads/master
| 2023-08-03T02:21:07.031916
| 2021-10-05T12:08:17
| 2021-10-05T12:08:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,346
|
java
|
/*
* Phrase API Reference
*
* The version of the OpenAPI document: 2.0.0
* Contact: support@phrase.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.phrase.client.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 org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for KeyPreview
*/
public class KeyPreviewTest {
private final KeyPreview model = new KeyPreview();
/**
* Model tests for KeyPreview
*/
@Test
public void testKeyPreview() {
// TODO: test KeyPreview
}
/**
* Test the property 'id'
*/
@Test
public void idTest() {
// TODO: test id
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
/**
* Test the property 'plural'
*/
@Test
public void pluralTest() {
// TODO: test plural
}
}
|
[
"support@phrase.com"
] |
support@phrase.com
|
4527da565b7715faff6e22faa1e131259b157cec
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Lang/23/org/apache/commons/lang3/time/DateUtils_isSameInstant_238.java
|
3c4b04ce5a17ea6f6170a1d360f59edb73f585c9
|
[] |
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
| 2,892
|
java
|
org apach common lang3 time
suit util surround
link java util calendar link java util date object
date util dateutil lot common method manipul
date calendar method requir extra explan
truncat ceil round method consid math floor
math ceil math round version date
date field bottom order
complement method introduc fragment method
method date field top order
date year valid date decid
kind date field result instanc millisecond dai
author apach softwar foundat
author href mailto sergek lokitech serg knystauta
author janek bogucki
author href mailto ggregori seagullsw gari gregori
author phil steitz
author robert scholt
author paul benedict
version
date util dateutil
check calendar object repres instant time
method compar millisecond time object
param cal1 calendar alter
param cal2 calendar alter
repres millisecond instant
illeg argument except illegalargumentexcept date code code
instant issameinst calendar cal1 calendar cal2
cal1 cal2
illeg argument except illegalargumentexcept date
cal1 time gettim time gettim cal2 time gettim time gettim
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
f527b6e92a5574c68e7da58af485cbdcd3797d2b
|
675cbffa1d3e6716f0f89db8ac0ca637105967cf
|
/app/src/main/java/com/huatu/handheld_huatu/utils/ActivityPermissionDispatcher.java
|
74d255d831632431655c265ccf53a1b6ec36fbf8
|
[] |
no_license
|
led-os/HTWorks
|
d5bd33e7fddf99930c318ced94869c17f7a97836
|
ee94e8a2678b8a2ea79e73026d665d57f312f7e2
|
refs/heads/master
| 2022-04-05T02:56:14.051111
| 2020-01-21T07:38:25
| 2020-01-21T07:38:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,077
|
java
|
package com.huatu.handheld_huatu.utils;
import android.Manifest;
import android.app.Activity;
import android.content.pm.PackageManager;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
/**
* @author zhaodongdong
*/
public class ActivityPermissionDispatcher {
private static ActivityPermissionDispatcher mDispatcher;
public static ActivityPermissionDispatcher getInstance() {
if (mDispatcher == null) {
synchronized (ActivityPermissionDispatcher.class) {
if (mDispatcher == null) {
mDispatcher = new ActivityPermissionDispatcher();
}
}
}
return mDispatcher;
}
private PermissionCallback mCallback;
public interface PermissionCallback {
void onPermissionNeverAskAgain(int request);
void onPermissionDenied(int request);
void onPermissionSuccess(int request);
void onPermissionExplain(int request);
}
/**
* 设置权限回调
*
* @param callback 权限回调
*/
public void setPermissionCallback(PermissionCallback callback) {
mCallback = callback;
}
public ActivityPermissionDispatcher() {
}
/**
* SD卡读写权限
*
* @param activity activity
*/
public void checkedWithStorage(Activity activity) {
checkedWithPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE, Constant.PERMISSION_STORAGE_REQUEST_CODE);
}
/**
* camera 权限
*
* @param activity activity
*/
public void checkedWithCamera(Activity activity) {
checkedWithPermission(activity, Manifest.permission.CAMERA, Constant.PERMISSION_CAMERA_REQUEST_CODE);
}
/**
* 短信操作权限
*
* @param activity activity
*/
public void checkedWithSMS(Activity activity) {
checkedWithPermission(activity, Manifest.permission.READ_SMS, Constant.PERMISSION_SMS_REQUEST_CODE);
}
/**
* 电话权限
*
* @param activity activity
*/
public void checkedWithPhone(Activity activity) {
checkedWithPermission(activity, Manifest.permission.READ_PHONE_STATE, Constant.PERMISSION_PHONE_REQUEST_CODE);
}
/**
* 联系人权限
*
* @param activity activity
*/
public void checkedWithContacts(Activity activity) {
checkedWithPermission(activity, Manifest.permission.READ_CONTACTS, Constant.PERMISSION_CONTACTS_REQUEST_CODE);
}
/**
* 位置权限
*
* @param activity activity
*/
public void checkedWithLocation(Activity activity) {
checkedWithPermission(activity, Manifest.permission.ACCESS_FINE_LOCATION, Constant.PERMISSION_LOCATION_REQUEST_CODE);
}
/**
* 权限处理
*
* @param activity activity
* @param permission Manifest.permission.
* @param request 权限请求码
*/
public void checkedWithPermission(Activity activity, String permission, int request) {
int hasPermissionStorage = ContextCompat.checkSelfPermission(activity, permission);
if (hasPermissionStorage != PackageManager.PERMISSION_GRANTED) {
if (ActivityCompat.shouldShowRequestPermissionRationale(activity, permission)) {
mCallback.onPermissionExplain(request);
} else {
ActivityCompat.requestPermissions(activity, new String[]{permission},
request);
}
} else {
mCallback.onPermissionSuccess(request);
}
}
/**
* 权限请求结果处理
*
* @param activity activity
* @param requestCode 请求码
* @param grantResults result
*/
public void onRequestPermissionResult(Activity activity, int requestCode, int[] grantResults) {
switch (requestCode) {
case Constant.PERMISSION_STORAGE_REQUEST_CODE:
if (verifyPermission(grantResults)) {
mCallback.onPermissionSuccess(requestCode);
} else {
//denied
if (!ActivityCompat.shouldShowRequestPermissionRationale(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
mCallback.onPermissionNeverAskAgain(requestCode);
} else {
mCallback.onPermissionDenied(requestCode);
}
}
break;
}
}
/**
* 验证请求结果
*
* @param grantResults result
* @return true为通过
*/
private boolean verifyPermission(int... grantResults) {
if (grantResults.length == 0) {
return false;
}
for (int result : grantResults) {
if (result != PackageManager.PERMISSION_GRANTED) {
return false;
}
}
return true;
}
/**
* 销毁持有对象,防止内存泄露
*/
public void clear() {
mCallback = null;
}
}
|
[
"yaohu2011@163.com"
] |
yaohu2011@163.com
|
47c35a382d3e8c51db3692a69d40cdfb1e2328d9
|
50597bff5504a44a7ab7dd441a5fcfe8cbc4a23d
|
/smartag-20180313/src/main/java/com/aliyun/smartag20180313/models/CreateNetworkOptimizationResponse.java
|
f068add5d57e1f0c7bcc8e522ddca44e1168673e
|
[
"Apache-2.0"
] |
permissive
|
shayv-123/alibabacloud-java-sdk
|
63fe9c0f6afe094d9dcfc19bf317e7ef8d5303e1
|
df7a6f7092f75ea3ba62de2c990dfcd986c3f66f
|
refs/heads/master
| 2023-05-05T02:22:41.236951
| 2021-05-11T09:55:17
| 2021-05-11T09:55:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,155
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.smartag20180313.models;
import com.aliyun.tea.*;
public class CreateNetworkOptimizationResponse extends TeaModel {
@NameInMap("headers")
@Validation(required = true)
public java.util.Map<String, String> headers;
@NameInMap("body")
@Validation(required = true)
public CreateNetworkOptimizationResponseBody body;
public static CreateNetworkOptimizationResponse build(java.util.Map<String, ?> map) throws Exception {
CreateNetworkOptimizationResponse self = new CreateNetworkOptimizationResponse();
return TeaModel.build(map, self);
}
public CreateNetworkOptimizationResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public CreateNetworkOptimizationResponse setBody(CreateNetworkOptimizationResponseBody body) {
this.body = body;
return this;
}
public CreateNetworkOptimizationResponseBody getBody() {
return this.body;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
4d699d22c5c3edb78c166288899ecce63ae4a518
|
62517597fc25687e19d58d4120721f33f2505322
|
/src/main/java/com/evacipated/cardcrawl/mod/bard/cards/MelodyCard.java
|
3e7947d91d7e1659f5000e1742f330860143bcc5
|
[] |
no_license
|
Rita-Bernstein/Bard
|
cee20590b44954d96ae4b5cc2032acdc755b4495
|
997d39f7e0a05892d4cd64ef532c3196822b1148
|
refs/heads/master
| 2020-05-25T15:08:03.407382
| 2019-06-06T15:21:50
| 2019-06-06T15:21:50
| 187,860,907
| 0
| 0
| null | 2019-06-06T15:19:43
| 2019-05-21T15:02:58
|
Java
|
UTF-8
|
Java
| false
| false
| 2,093
|
java
|
package com.evacipated.cardcrawl.mod.bard.cards;
import basemod.abstracts.CustomCard;
import com.evacipated.cardcrawl.mod.bard.BardMod;
import com.evacipated.cardcrawl.mod.bard.CardIgnore;
import com.evacipated.cardcrawl.mod.bard.characters.Bard;
import com.evacipated.cardcrawl.mod.bard.notes.AbstractNote;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import java.util.List;
import java.util.function.Consumer;
@CardIgnore
public class MelodyCard extends CustomCard
{
public static final String ID = BardMod.makeID("MelodyCard");
private static final int COST = -2;
public List<AbstractNote> notes;
public boolean consumeNotes = true;
private Consumer<Boolean> playCallback;
public MelodyCard(String name, String description, List<AbstractNote> notes, CardType type)
{
this(name, new RegionName(null), description, notes, type, CardTarget.NONE, null);
}
public MelodyCard(String name, RegionName img, String description, List<AbstractNote> notes, CardTarget target, Consumer<Boolean> playCallback)
{
this(name, img, description, notes, CardType.POWER, target, playCallback);
}
public MelodyCard(String name, RegionName img, String description, List<AbstractNote> notes, CardType type, CardTarget target, Consumer<Boolean> playCallback)
{
super(ID, name, img, COST, description, type, Bard.Enums.COLOR, CardRarity.SPECIAL, target);
this.notes = notes;
this.playCallback = playCallback;
}
@Override
public void use(AbstractPlayer p, AbstractMonster m)
{
if (playCallback != null) {
playCallback.accept(consumeNotes);
}
}
@Override
public boolean canUpgrade()
{
return false;
}
@Override
public void upgrade()
{
}
@Override
public AbstractCard makeCopy()
{
return new MelodyCard(name, new RegionName(assetUrl), rawDescription, notes, target, playCallback);
}
}
|
[
"kiooeht@gmail.com"
] |
kiooeht@gmail.com
|
16ad430be1e4081df4138f426291ba60a3d588be
|
cde4358da2cbef4d8ca7caeb4b90939ca3f1f1ef
|
/java/quantserver/snmpagent/src/main/java/deltix/snmp/mibc/StandardEntityBean.java
|
029c7fe57c147f7f58515475d90022485c34feb1
|
[
"Apache-2.0"
] |
permissive
|
ptuyo/TimeBase
|
e17a33e0bfedcbbafd3618189e4de45416ec7259
|
812e178b814a604740da3c15cc64e42c57d69036
|
refs/heads/master
| 2022-12-18T19:41:46.084759
| 2020-09-29T11:03:50
| 2020-09-29T11:03:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 327
|
java
|
package deltix.snmp.mibc;
/**
*
*/
public abstract class StandardEntityBean implements CompiledEntity {
private final String id;
public StandardEntityBean (String id) {
this.id = id;
}
@Override
public String getId () {
return (id);
}
}
|
[
"akarpovich@deltixlab.com"
] |
akarpovich@deltixlab.com
|
285750bfcff797e0de934fb988f6e4efa7c94e01
|
0907c886f81331111e4e116ff0c274f47be71805
|
/sources/androidx/media2/exoplayer/external/extractor/ts/DefaultTsPayloadReaderFactory.java
|
8d4b7d03e72b97e394916ce9bd774f21a34e6818
|
[
"MIT"
] |
permissive
|
Minionguyjpro/Ghostly-Skills
|
18756dcdf351032c9af31ec08fdbd02db8f3f991
|
d1a1fb2498aec461da09deb3ef8d98083542baaf
|
refs/heads/Android-OS
| 2022-07-27T19:58:16.442419
| 2022-04-15T07:49:53
| 2022-04-15T07:49:53
| 415,272,874
| 2
| 0
|
MIT
| 2021-12-21T10:23:50
| 2021-10-09T10:12:36
|
Java
|
UTF-8
|
Java
| false
| false
| 6,063
|
java
|
package androidx.media2.exoplayer.external.extractor.ts;
import android.util.SparseArray;
import androidx.media2.exoplayer.external.Format;
import androidx.media2.exoplayer.external.drm.DrmInitData;
import androidx.media2.exoplayer.external.extractor.ts.TsPayloadReader;
import androidx.media2.exoplayer.external.text.cea.Cea708InitializationData;
import androidx.media2.exoplayer.external.util.ParsableByteArray;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public final class DefaultTsPayloadReaderFactory implements TsPayloadReader.Factory {
private final List<Format> closedCaptionFormats;
private final int flags;
public DefaultTsPayloadReaderFactory() {
this(0);
}
public DefaultTsPayloadReaderFactory(int i) {
this(i, Collections.singletonList(Format.createTextSampleFormat((String) null, "application/cea-608", 0, (String) null)));
}
public DefaultTsPayloadReaderFactory(int i, List<Format> list) {
this.flags = i;
this.closedCaptionFormats = list;
}
public SparseArray<TsPayloadReader> createInitialPayloadReaders() {
return new SparseArray<>();
}
public TsPayloadReader createPayloadReader(int i, TsPayloadReader.EsInfo esInfo) {
if (i == 2) {
return new PesReader(new H262Reader(buildUserDataReader(esInfo)));
}
if (i == 3 || i == 4) {
return new PesReader(new MpegAudioReader(esInfo.language));
}
if (i != 15) {
if (i != 17) {
if (i == 21) {
return new PesReader(new Id3Reader());
}
if (i != 27) {
if (i == 36) {
return new PesReader(new H265Reader(buildSeiReader(esInfo)));
}
if (i == 89) {
return new PesReader(new DvbSubtitleReader(esInfo.dvbSubtitleInfos));
}
if (i != 138) {
if (i == 172) {
return new PesReader(new Ac4Reader(esInfo.language));
}
if (i != 129) {
if (i != 130) {
if (i != 134) {
if (i != 135) {
return null;
}
} else if (isSet(16)) {
return null;
} else {
return new SectionReader(new SpliceInfoSectionReader());
}
} else if (!isSet(64)) {
return null;
}
}
return new PesReader(new Ac3Reader(esInfo.language));
}
return new PesReader(new DtsReader(esInfo.language));
} else if (isSet(4)) {
return null;
} else {
return new PesReader(new H264Reader(buildSeiReader(esInfo), isSet(1), isSet(8)));
}
} else if (isSet(2)) {
return null;
} else {
return new PesReader(new LatmReader(esInfo.language));
}
} else if (isSet(2)) {
return null;
} else {
return new PesReader(new AdtsReader(false, esInfo.language));
}
}
private SeiReader buildSeiReader(TsPayloadReader.EsInfo esInfo) {
return new SeiReader(getClosedCaptionFormats(esInfo));
}
private UserDataReader buildUserDataReader(TsPayloadReader.EsInfo esInfo) {
return new UserDataReader(getClosedCaptionFormats(esInfo));
}
private List<Format> getClosedCaptionFormats(TsPayloadReader.EsInfo esInfo) {
int i;
String str;
List<byte[]> list;
if (isSet(32)) {
return this.closedCaptionFormats;
}
ParsableByteArray parsableByteArray = new ParsableByteArray(esInfo.descriptorBytes);
List<Format> list2 = this.closedCaptionFormats;
while (parsableByteArray.bytesLeft() > 0) {
int readUnsignedByte = parsableByteArray.readUnsignedByte();
int position = parsableByteArray.getPosition() + parsableByteArray.readUnsignedByte();
if (readUnsignedByte == 134) {
list2 = new ArrayList<>();
int readUnsignedByte2 = parsableByteArray.readUnsignedByte() & 31;
for (int i2 = 0; i2 < readUnsignedByte2; i2++) {
String readString = parsableByteArray.readString(3);
int readUnsignedByte3 = parsableByteArray.readUnsignedByte();
boolean z = true;
boolean z2 = (readUnsignedByte3 & 128) != 0;
if (z2) {
i = readUnsignedByte3 & 63;
str = "application/cea-708";
} else {
str = "application/cea-608";
i = 1;
}
byte readUnsignedByte4 = (byte) parsableByteArray.readUnsignedByte();
parsableByteArray.skipBytes(1);
if (z2) {
if ((readUnsignedByte4 & 64) == 0) {
z = false;
}
list = Cea708InitializationData.buildData(z);
} else {
list = null;
}
list2.add(Format.createTextSampleFormat((String) null, str, (String) null, -1, 0, readString, i, (DrmInitData) null, Long.MAX_VALUE, list));
}
}
parsableByteArray.setPosition(position);
}
return list2;
}
private boolean isSet(int i) {
return (i & this.flags) != 0;
}
}
|
[
"66115754+Minionguyjpro@users.noreply.github.com"
] |
66115754+Minionguyjpro@users.noreply.github.com
|
0e99fe149c58e8bb131070b1296758857f88b54a
|
ed19e2f1c19d68d0215df75cac9f7f6bfcf41742
|
/trunk/WEB/src/com/partycommittee/remote/vo/PcStatsVo.java
|
7a0fb92063f4dd04eeac0bc1f290675afc8b6a80
|
[] |
no_license
|
BGCX262/zzsh-svn-to-git
|
064f50b5592cce6271ee0ca305135a5e5c77fed5
|
98a05351dda45c2d69c6bf98281ba87993230691
|
refs/heads/master
| 2021-01-12T13:49:50.693451
| 2015-08-23T06:48:07
| 2015-08-23T06:48:07
| 41,315,383
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,162
|
java
|
package com.partycommittee.remote.vo;
import java.io.Serializable;
import java.sql.Date;
import javax.persistence.Column;
import com.partycommittee.persistence.po.PcStats;
public class PcStatsVo implements Serializable {
private static final long serialVersionUID = -1190776206070964607L;
private Integer id;
private Integer agencyId;
private String name;
private Integer codeId;
private String code;
private Integer parentId;
private Integer year;
private Integer quarter;
private Integer month;
private Integer typeId;
private Integer total;
private Integer totalSuccess;
private Integer totalReturn;
private Integer totalDelay;
private Integer reported;
private Double reportedRate;
private Double returnRate;
private Double delayRate;
private Integer attend;
private Integer asence;
private Double attendRate;
private Integer eva;
private Double evaRate;
private Integer eva1;
private Integer eva2;
private Integer eva3;
private Integer eva4;
private Double eva1Rate;
private Double eva2Rate;
private Double eva3Rate;
private Double eva4Rate;
private Integer agencyGoodjob;
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getAgencyId() {
return this.agencyId;
}
public void setAgencyId(Integer agencyId) {
this.agencyId = agencyId;
}
public Integer getCodeId() {
return this.codeId;
}
public void setCodeId(Integer codeId) {
this.codeId = codeId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public Integer getParentId() {
return this.parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public Integer getQuarter() {
return this.quarter;
}
public void setQuarter(Integer quarter) {
this.quarter = quarter;
}
public Integer getTypeId() {
return this.typeId;
}
public void setTypeId(Integer typeId) {
this.typeId = typeId;
}
public Integer getYear() {
return this.year;
}
public void setYear(Integer year) {
this.year = year;
}
public Integer getTotal() {
return total;
}
public void setTotal(Integer total) {
this.total = total;
}
public Integer getReported() {
return reported;
}
public void setReported(Integer reported) {
this.reported = reported;
}
public Double getReportedRate() {
return reportedRate;
}
public void setReportedRate(Double reportedRate) {
this.reportedRate = reportedRate;
}
public Integer getEva() {
return eva;
}
public void setEva(Integer eva) {
this.eva = eva;
}
public Double getEvaRate() {
return evaRate;
}
public void setEvaRate(Double evaRate) {
this.evaRate = evaRate;
}
public Integer getAttend() {
return attend;
}
public void setAttend(Integer attend) {
this.attend = attend;
}
public Integer getAsence() {
return asence;
}
public void setAsence(Integer asence) {
this.asence = asence;
}
public Double getAttendRate() {
return attendRate;
}
public void setAttendRate(Double attendRate) {
this.attendRate = attendRate;
}
public Integer getAgencyGoodjob() {
return agencyGoodjob;
}
public void setAgencyGoodjob(Integer agencyGoodjob) {
this.agencyGoodjob = agencyGoodjob;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public Integer getMonth() {
return month;
}
public void setMonth(Integer month) {
this.month = month;
}
public Integer getTotalSuccess() {
return totalSuccess;
}
public void setTotalSuccess(Integer totalSuccess) {
this.totalSuccess = totalSuccess;
}
public Integer getTotalReturn() {
return totalReturn;
}
public void setTotalReturn(Integer totalReturn) {
this.totalReturn = totalReturn;
}
public Integer getTotalDelay() {
return totalDelay;
}
public void setTotalDelay(Integer totalDelay) {
this.totalDelay = totalDelay;
}
public Double getReturnRate() {
return returnRate;
}
public void setReturnRate(Double returnRate) {
this.returnRate = returnRate;
}
public Double getDelayRate() {
return delayRate;
}
public void setDelayRate(Double delayRate) {
this.delayRate = delayRate;
}
public Integer getEva1() {
return eva1;
}
public void setEva1(Integer eva1) {
this.eva1 = eva1;
}
public Integer getEva2() {
return eva2;
}
public void setEva2(Integer eva2) {
this.eva2 = eva2;
}
public Integer getEva3() {
return eva3;
}
public void setEva3(Integer eva3) {
this.eva3 = eva3;
}
public Integer getEva4() {
return eva4;
}
public void setEva4(Integer eva4) {
this.eva4 = eva4;
}
public Double getEva1Rate() {
return eva1Rate;
}
public void setEva1Rate(Double eva1Rate) {
this.eva1Rate = eva1Rate;
}
public Double getEva2Rate() {
return eva2Rate;
}
public void setEva2Rate(Double eva2Rate) {
this.eva2Rate = eva2Rate;
}
public Double getEva3Rate() {
return eva3Rate;
}
public void setEva3Rate(Double eva3Rate) {
this.eva3Rate = eva3Rate;
}
public Double getEva4Rate() {
return eva4Rate;
}
public void setEva4Rate(Double eva4Rate) {
this.eva4Rate = eva4Rate;
}
public static PcStatsVo fromPcStats(PcStats pevo) {
PcStatsVo vo = new PcStatsVo();
vo.setAgencyId(pevo.getAgencyId());
vo.setCodeId(pevo.getCodeId());
vo.setCode(pevo.getCode());
vo.setId(pevo.getId());
vo.setName(pevo.getName());
vo.setParentId(pevo.getParentId());
vo.setQuarter(pevo.getQuarter());
vo.setTypeId(pevo.getTypeId());
vo.setYear(pevo.getYear());
vo.setMonth(pevo.getMonth());
vo.setTotal(pevo.getTotal());
vo.setTotalSuccess(pevo.getTotalSuccess());
vo.setTotalReturn(pevo.getTotalReturn());
vo.setTotalDelay(pevo.getTotalDelay());
vo.setReported(pevo.getReported());
vo.setReportedRate(pevo.getReportedRate());
vo.setReturnRate(pevo.getReturnRate());
vo.setDelayRate(pevo.getDelayRate());
vo.setAttend(pevo.getAttend());
vo.setAsence(pevo.getAsence());
vo.setAttendRate(pevo.getAttendRate());
vo.setEva(pevo.getEva());
vo.setEvaRate(pevo.getEvaRate());
vo.setEva1(pevo.getEva1());
vo.setEva2(pevo.getEva2());
vo.setEva3(pevo.getEva3());
vo.setEva4(pevo.getEva4());
vo.setEva1Rate(pevo.getEva1Rate());
vo.setEva2Rate(pevo.getEva2Rate());
vo.setEva3Rate(pevo.getEva3Rate());
vo.setEva4Rate(pevo.getEva4Rate());
vo.setAgencyGoodjob(pevo.getAgencyGoodjob());
return vo;
}
public static PcStats toPcStats(PcStatsVo pevo) {
PcStats vo = new PcStats();
vo.setAgencyId(pevo.getAgencyId());
vo.setCodeId(pevo.getCodeId());
vo.setCode(pevo.getCode());
vo.setId(pevo.getId());
vo.setName(pevo.getName());
vo.setParentId(pevo.getParentId());
vo.setQuarter(pevo.getQuarter());
vo.setTypeId(pevo.getTypeId());
vo.setYear(pevo.getYear());
vo.setMonth(pevo.getMonth());
vo.setTotal(pevo.getTotal());
vo.setTotalSuccess(pevo.getTotalSuccess());
vo.setTotalReturn(pevo.getTotalReturn());
vo.setTotalDelay(pevo.getTotalDelay());
vo.setReported(pevo.getReported());
vo.setReportedRate(pevo.getReportedRate());
vo.setReturnRate(pevo.getReturnRate());
vo.setDelayRate(pevo.getDelayRate());
vo.setAttend(pevo.getAttend());
vo.setAsence(pevo.getAsence());
vo.setAttendRate(pevo.getAttendRate());
vo.setEva(pevo.getEva());
vo.setEvaRate(pevo.getEvaRate());
vo.setEva1(pevo.getEva1());
vo.setEva2(pevo.getEva2());
vo.setEva3(pevo.getEva3());
vo.setEva4(pevo.getEva4());
vo.setEva1Rate(pevo.getEva1Rate());
vo.setEva2Rate(pevo.getEva2Rate());
vo.setEva3Rate(pevo.getEva3Rate());
vo.setEva4Rate(pevo.getEva4Rate());
vo.setAgencyGoodjob(pevo.getAgencyGoodjob());
return vo;
}
}
|
[
"you@example.com"
] |
you@example.com
|
0a5d1a3803aa529bf59faef07cf478b1261647c0
|
2a1f6afb809b5d3347bd1a4521d2f876665cc2ca
|
/demo/j2cl/src/main/java/org/treblereel/mvp/presenter/css/ButtonsPresenter.java
|
9b489faecf5733045e6ea5e692bce818e177f0d6
|
[
"Apache-2.0"
] |
permissive
|
treblereel/gwtbootstrap3
|
8ddab0f20a2222be79c44894f202194b4bae6606
|
f362536b6a0dc4994db5d1bab5bd2d69e49123b4
|
refs/heads/master
| 2022-04-30T20:20:58.179484
| 2022-03-31T04:33:55
| 2022-03-31T04:33:55
| 190,029,044
| 9
| 0
|
Apache-2.0
| 2022-03-31T04:33:55
| 2019-06-03T15:08:43
|
Java
|
UTF-8
|
Java
| false
| false
| 1,150
|
java
|
package org.treblereel.mvp.presenter.css;
/*
* #%L
* GwtBootstrap3
* %%
* Copyright (C) 2013 - 2021 GwtBootstrap3
* %%
* 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.
* #L%
*/
import org.gwtproject.user.client.ui.Composite;
import org.gwtproject.user.client.ui.Panel;
import org.treblereel.mvp.presenter.Presenter;
import org.treblereel.mvp.view.css.Buttons;
/**
* @author Dmitrii Tikhomirov
* Created by treblereel 7/21/19
*/
public class ButtonsPresenter implements Presenter {
private Composite display = new Buttons();
@Override
public void dispatch(Panel container) {
container.add(display);
}
}
|
[
"chani.liet@gmail.com"
] |
chani.liet@gmail.com
|
a9b67814311c2e900d0022625c77f4c0a3098ba1
|
15b260ccada93e20bb696ae19b14ec62e78ed023
|
/v2/src/main/java/com/alipay/api/domain/TechriskInnovateMpcpromoSceneReleaseModel.java
|
c5ad6ad55f6d7f517256a1ec1af7361b47da3978
|
[
"Apache-2.0"
] |
permissive
|
alipay/alipay-sdk-java-all
|
df461d00ead2be06d834c37ab1befa110736b5ab
|
8cd1750da98ce62dbc931ed437f6101684fbb66a
|
refs/heads/master
| 2023-08-27T03:59:06.566567
| 2023-08-22T14:54:57
| 2023-08-22T14:54:57
| 132,569,986
| 470
| 207
|
Apache-2.0
| 2022-12-25T07:37:40
| 2018-05-08T07:19:22
|
Java
|
UTF-8
|
Java
| false
| false
| 1,177
|
java
|
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 场景中商品删除
*
* @author auto create
* @since 1.0, 2023-06-30 11:52:18
*/
public class TechriskInnovateMpcpromoSceneReleaseModel extends AlipayObject {
private static final long serialVersionUID = 3832264222767436361L;
/**
* 商品列表
*/
@ApiListField("data_list")
@ApiField("string")
private List<String> dataList;
/**
* 坑位码,入参必须为数字或者英文字母
*/
@ApiField("position_code")
private String positionCode;
/**
* 场景id
*/
@ApiField("scene_id")
private String sceneId;
public List<String> getDataList() {
return this.dataList;
}
public void setDataList(List<String> dataList) {
this.dataList = dataList;
}
public String getPositionCode() {
return this.positionCode;
}
public void setPositionCode(String positionCode) {
this.positionCode = positionCode;
}
public String getSceneId() {
return this.sceneId;
}
public void setSceneId(String sceneId) {
this.sceneId = sceneId;
}
}
|
[
"auto-publish"
] |
auto-publish
|
b9dde647fbd4c8d2ef2cb5b7f5e281dad42deeb7
|
0a2924f4ae6dafaa6aa28e2b947a807645494250
|
/dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/validation/ValidateValidationCriteriaAction.java
|
75af2585e691cb9a9bab222e1ceb22fa726561d5
|
[
"BSD-3-Clause",
"BSD-2-Clause"
] |
permissive
|
filoi/ImmunizationRepository
|
9483ee02afd0b46d0f321a1e1ff8a0f6d8ca7f71
|
efb9f2bb9ae3da8c6ac60e5d5661b8a79a6939d5
|
refs/heads/master
| 2023-03-16T03:26:34.564453
| 2023-03-06T08:32:07
| 2023-03-06T08:32:07
| 126,012,725
| 0
| 0
|
BSD-3-Clause
| 2022-12-16T05:59:21
| 2018-03-20T12:17:24
|
Java
|
UTF-8
|
Java
| false
| false
| 4,101
|
java
|
package org.hisp.dhis.trackedentity.action.validation;
/*
* Copyright (c) 2004-2015, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* Neither the name of the HISP project nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
import org.hisp.dhis.i18n.I18n;
import org.hisp.dhis.validation.ValidationCriteria;
import org.hisp.dhis.validation.ValidationCriteriaService;
import com.opensymphony.xwork2.Action;
/**
* @author Chau Thu Tran
* @version ValidateValidationCriteriaAction.java Apr 29, 2010 10:49:37 AM
*/
public class ValidateValidationCriteriaAction
implements Action
{
// -------------------------------------------------------------------------
// Dependencies
// -------------------------------------------------------------------------
private ValidationCriteriaService validationCriteriaService;
public void setValidationCriteriaService( ValidationCriteriaService validationCriteriaService )
{
this.validationCriteriaService = validationCriteriaService;
}
private I18n i18n;
public void setI18n( I18n i18n )
{
this.i18n = i18n;
}
// -------------------------------------------------------------------------
// Input
// -------------------------------------------------------------------------
private Integer id;
public void setId( Integer id )
{
this.id = id;
}
private String name;
public void setName( String name )
{
this.name = name;
}
// -------------------------------------------------------------------------
// Output
// -------------------------------------------------------------------------
private String message;
public String getMessage()
{
return message;
}
// -------------------------------------------------------------------------
// Action implementation
// -------------------------------------------------------------------------
@Override
public String execute()
{
if ( name == null || name.isEmpty() )
{
message = i18n.getString( "specify_name" );
return INPUT;
}
else
{
name = name.trim();
if ( name.length() == 0 )
{
message = i18n.getString( "specify_name" );
return INPUT;
}
ValidationCriteria match = validationCriteriaService.getValidationCriteria( name );
if ( match != null && (id == null || match.getId() != id) )
{
message = i18n.getString( "name_in_use" );
return INPUT;
}
}
return SUCCESS;
}
}
|
[
"neeraj@filoi.in"
] |
neeraj@filoi.in
|
f58b1c70c7d9628de051c045db4c1d323e9721f8
|
a7214eeb0e7dab722a66941270816ba425ed1769
|
/base/CharSet1ac.java
|
9df6fa0ce85e02af4a433141f7921094a9b7df40
|
[] |
no_license
|
AnderJoeSun/JavaSE-Demos
|
5f9106ced7d8a00298c8415262cbef5d97d7aec2
|
ba47fd0638604b8be2971241a709dbb408d0b1a3
|
refs/heads/master
| 2020-12-20T04:19:51.583187
| 2020-01-24T07:45:52
| 2020-01-24T07:45:52
| 235,959,429
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 615
|
java
|
import java.util.*;
import java.nio.charset.*;
public class CharSet1ac{
public static void main(String arg[]) throws Exception{
Properties pps=System.getProperties();
pps.put("file.encoding","IS0-8859-1");
int data;
int i=0;
byte[] b=new byte[100];
while((data=System.in.read())!='q'){
b[i]=(byte)data;
i++;
}
String str1=new String(b,0,i);//用"IS0-8859-1"解码得字符串
System.out.println(str1);//此字符串先被OUT对象用“GBK”编码成字节数组再打印
/*String str2=new String(str1.getBytes("IS0-8859-1"),"GBK");
System.out.println(str2);*/
}
}
|
[
"abc@abc.com"
] |
abc@abc.com
|
10fbbb19715e7cee82089945845031d6f4767587
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-12798-31-1-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/display/internal/DocumentContentDisplayer_ESTest_scaffolding.java
|
86114c220504c8ce65e1e82339cfebc0c567fe38
|
[] |
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
| 455
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Wed Apr 08 19:36:32 UTC 2020
*/
package org.xwiki.display.internal;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class DocumentContentDisplayer_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
9f66112d2d3c410973665eb7e71498cc9f1766df
|
8810972d0375c0a853e3a66bd015993932be9fad
|
/modelicaml/org.openmodelica.modelicaml.editor.xtext.valuebinding.client/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/client/impl/component_referenceImpl.java
|
7f9f6102923408c313f69a569d41408752e154ab
|
[] |
no_license
|
OpenModelica/MDT
|
275ffe4c61162a5292d614cd65eb6c88dc58b9d3
|
9ffbe27b99e729114ea9a4b4dac4816375c23794
|
refs/heads/master
| 2020-09-14T03:35:05.384414
| 2019-11-27T22:35:04
| 2019-11-27T23:08:29
| 222,999,464
| 3
| 2
| null | 2019-11-27T23:08:31
| 2019-11-20T18:15:27
|
Java
|
WINDOWS-1252
|
Java
| false
| false
| 2,745
|
java
|
/*
* This file is part of OpenModelica.
*
* Copyright (c) 1998-CurrentYear, Open Source Modelica Consortium (OSMC),
* c/o Linköpings universitet, Department of Computer and Information Science,
* SE-58183 Linköping, Sweden.
*
* All rights reserved.
*
* THIS PROGRAM IS PROVIDED UNDER THE TERMS OF GPL VERSION 3 LICENSE OR
* THIS OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.2.
* ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
* OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3, ACCORDING TO RECIPIENTS CHOICE.
*
* The OpenModelica software and the Open Source Modelica
* Consortium (OSMC) Public License (OSMC-PL) are obtained
* from OSMC, either from the above address,
* from the URLs: http://www.ida.liu.se/projects/OpenModelica or
* http://www.openmodelica.org, and in the OpenModelica distribution.
* GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html.
*
* This program is distributed WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH
* IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS OF OSMC-PL.
*
* See the full OSMC Public License conditions for more details.
*
* Main author: Wladimir Schamai, EADS Innovation Works / Linköping University, 2009-now
*
* Contributors:
* Uwe Pohlmann, University of Paderborn 2009-2010, contribution to the Modelica code generation for state machine behavior, contribution to Papyrus GUI adaptations
* Parham Vasaiely, EADS Innovation Works / Hamburg University of Applied Sciences 2009-2011, implementation of simulation plugins
*/
package org.openmodelica.modelicaml.editor.xtext.valuebinding.client.impl;
import org.eclipse.emf.ecore.EClass;
import org.openmodelica.modelicaml.editor.xtext.valuebinding.client.ClientPackage;
import org.openmodelica.modelicaml.editor.xtext.valuebinding.client.component_reference;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>component reference</b></em>'.
* <!-- end-user-doc -->
* <p>
* </p>
*
* @generated
*/
public class component_referenceImpl extends org.openmodelica.modelicaml.editor.xtext.model.modeleditor.impl.component_referenceImpl implements component_reference
{
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected component_referenceImpl()
{
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass()
{
return ClientPackage.Literals.COMPONENT_REFERENCE;
}
} //component_referenceImpl
|
[
"wschamai"
] |
wschamai
|
175edf10086b6761382cec6515bee641b643f911
|
58d6947e8df55adb2329956ee3be9a74e6f6c2cc
|
/boboface-design-pattern/src/main/java/observerpattern/weather/push/Client.java
|
27fc3eab14b3f65b233e79aeb3a23a71fae1aa85
|
[] |
no_license
|
zowbman/java-study
|
c38bba5a144322dfff1172d741fabe449d078605
|
e0dfb38fda7ce112199fd430fa8bcb82655417c2
|
refs/heads/master
| 2021-01-20T11:22:39.989711
| 2017-02-23T04:31:08
| 2017-02-23T04:31:08
| 82,781,309
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 906
|
java
|
package observerpattern.weather.push;
/**
* Created by zwb on 2017/2/22.推模式
*/
public class Client {
public static void main(String[] args) {
//1、创建目标
ConcreteWeatherSubject weather = new ConcreteWeatherSubject();
//2、创建观察者
ConcreteObserver observerGirl = new ConcreteObserver();
observerGirl.setObserverName("小明的女朋友");
observerGirl.setRemindThing("是我们的第一次约会,地点你家");
ConcreteObserver observerMum = new ConcreteObserver();
observerMum.setObserverName("小明的老妈");
observerMum.setRemindThing("逛街");
//3、注册观察者
weather.attach(observerGirl);
weather.attach(observerMum);
//4、目标发布天气
weather.setWeatherContent("明天是一个好日子");
//统一通知,分别处理
}
}
|
[
"zhangweibao@kugou.net"
] |
zhangweibao@kugou.net
|
dad9e9c52f88b9c418691fab531bce84b399b3f8
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-14227-5-30-NSGA_II-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/store/migration/AbstractDataMigrationManager_ESTest_scaffolding.java
|
df8445a4be80db148066d59741d476a437fbe463
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 462
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sat Jan 18 19:44:11 UTC 2020
*/
package com.xpn.xwiki.store.migration;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class AbstractDataMigrationManager_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
4aea6de83ef8e3e813cbfb5c88656f96556a3ef9
|
e3c4870c8e8192df2c5735b0c27f51c22e059720
|
/src/sun/swing/MenuItemCheckIconFactory.java
|
8e0964c65b7013a53dd4b1a2015a69277231e113
|
[] |
no_license
|
xiangtch/Java
|
fec461aee7fd1dfd71dd21a482a75022ce35af9d
|
64440428d9af03779ba96b120dbb4503c83283b1
|
refs/heads/master
| 2020-07-14T01:23:46.298973
| 2019-08-29T17:49:18
| 2019-08-29T17:49:18
| 205,199,738
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 434
|
java
|
package sun.swing;
import javax.swing.Icon;
import javax.swing.JMenuItem;
public abstract interface MenuItemCheckIconFactory
{
public abstract Icon getIcon(JMenuItem paramJMenuItem);
public abstract boolean isCompatible(Object paramObject, String paramString);
}
/* Location: E:\java_source\rt.jar!\sun\swing\MenuItemCheckIconFactory.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 0.7.1
*/
|
[
"imsmallmouse@gmail"
] |
imsmallmouse@gmail
|
9e19a0c016d810a4ffefad0b8ef64760af29b5fc
|
37fbe5ca85d248d761eb2c22404ab24bafb58c58
|
/src/main/java/marmot/dataset/DataSetNotFoundException.java
|
322df0ffd6891893a4ed0dfbc0ee55288c017645
|
[] |
no_license
|
kwlee0220/marmot.common
|
1f7950f9c3934ab2f2c9481b15aa096c746af2ce
|
35bffef62696dc6345848c39d0fc1518b59628c4
|
refs/heads/master
| 2023-08-19T04:06:39.589471
| 2023-08-13T05:29:41
| 2023-08-13T05:29:41
| 153,080,188
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 271
|
java
|
package marmot.dataset;
/**
*
* @author Kang-Woo Lee (ETRI)
*/
public class DataSetNotFoundException extends DataSetException {
private static final long serialVersionUID = 6191966431080864900L;
public DataSetNotFoundException(String name) {
super(name);
}
}
|
[
"kwlee@etri.re.kr"
] |
kwlee@etri.re.kr
|
31f72f06b976a8c3031ce95d3cdf46512249241c
|
4e9c5e37a4380d5a11a27781187918a6aa31f3f9
|
/dse-core-6.7.0/com/datastax/bdp/cassandra/auth/LegacyKerberosAuthenticator.java
|
4e609da3435c13fafa6e8cdc8d60689d9d0f7b6d
|
[] |
no_license
|
jiafu1115/dse67
|
4a49b9a0d7521000e3c1955eaf0911929bc90d54
|
62c24079dd5148e952a6ff16bc1161952c222f9b
|
refs/heads/master
| 2021-10-11T15:38:54.185842
| 2019-01-28T01:28:06
| 2019-01-28T01:28:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 457
|
java
|
package com.datastax.bdp.cassandra.auth;
import org.apache.cassandra.exceptions.ConfigurationException;
public class LegacyKerberosAuthenticator extends DseAuthenticator {
public LegacyKerberosAuthenticator() {
super(true);
}
public void validateConfiguration() throws ConfigurationException {
this.validateKeytab();
this.defaultScheme = AuthenticationScheme.KERBEROS;
this.allowedSchemes.add(this.defaultScheme);
}
}
|
[
"superhackerzhang@sina.com"
] |
superhackerzhang@sina.com
|
16b5de10fc4c2e5f7d87c6c517838e3598c5b9f2
|
e58a8e0fb0cfc7b9a05f43e38f1d01a4d8d8cf1f
|
/WeaselWeb/src/com/puttysoftware/weaselweb/maze/objects/TeleportWand.java
|
fc0a50964e0567b059450fc489c8f4155c0aa12f
|
[
"Unlicense"
] |
permissive
|
retropipes/older-java-games
|
777574e222f30a1dffe7936ed08c8bfeb23a21ba
|
786b0c165d800c49ab9977a34ec17286797c4589
|
refs/heads/master
| 2023-04-12T14:28:25.525259
| 2021-05-15T13:03:54
| 2021-05-15T13:03:54
| 235,693,016
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,518
|
java
|
/* WeaselWeb: A Maze-Solving Game
Copyright (C) 2008-2010 Eric Ahnell
Any questions should be directed to the author via email at: products@puttysoftware.com
*/
package com.puttysoftware.weaselweb.maze.objects;
import com.puttysoftware.weaselweb.Application;
import com.puttysoftware.weaselweb.WeaselWeb;
import com.puttysoftware.weaselweb.maze.generic.GenericWand;
import com.puttysoftware.weaselweb.maze.generic.MazeObject;
import com.puttysoftware.weaselweb.resourcemanagers.SoundConstants;
import com.puttysoftware.weaselweb.resourcemanagers.SoundManager;
public class TeleportWand extends GenericWand {
public TeleportWand() {
super();
}
@Override
public String getName() {
return "Teleport Wand";
}
@Override
public String getPluralName() {
return "Teleport Wands";
}
@Override
public void useHelper(final int x, final int y, final int z) {
this.useAction(null, x, y, z);
SoundManager.playSound(SoundConstants.SOUND_CATEGORY_SOLVING_MAZE,
SoundConstants.SOUND_TELEPORT);
}
@Override
public void useAction(final MazeObject mo, final int x, final int y,
final int z) {
final Application app = WeaselWeb.getApplication();
app.getGameManager().updatePositionAbsolute(x, y, z);
}
@Override
public String getDescription() {
return "Teleport Wands will teleport you to the target square when used. You cannot teleport to areas you cannot see.";
}
}
|
[
"eric.ahnell@puttysoftware.com"
] |
eric.ahnell@puttysoftware.com
|
5d134f2e09149484264365844cde79636ecb828c
|
e3d0f7f75e4356413d05ba78e14c484f8555b2b5
|
/azure-resourcemanager-hybrid/src/main/java/com/azure/resourcemanager/hybrid/iothub/implementation/EndpointHealthDataImpl.java
|
a9cfacc16e7e4cb4aef4de02767b571663f1a532
|
[
"MIT"
] |
permissive
|
weidongxu-microsoft/azure-stack-java-samples
|
1df227502c367f128916f121ccc0f5bc77b045e5
|
afdfd0ed220f2f8a603c6fa5e16311a7842eb31c
|
refs/heads/main
| 2023-04-04T12:24:07.405360
| 2021-04-07T08:06:00
| 2021-04-07T08:06:00
| 337,593,216
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,314
|
java
|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybrid.iothub.implementation;
import com.azure.resourcemanager.hybrid.iothub.fluent.models.EndpointHealthDataInner;
import com.azure.resourcemanager.hybrid.iothub.models.EndpointHealthData;
import com.azure.resourcemanager.hybrid.iothub.models.EndpointHealthStatus;
public final class EndpointHealthDataImpl implements EndpointHealthData {
private EndpointHealthDataInner innerObject;
private final com.azure.resourcemanager.hybrid.iothub.IotHubManager serviceManager;
EndpointHealthDataImpl(
EndpointHealthDataInner innerObject, com.azure.resourcemanager.hybrid.iothub.IotHubManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
public String endpointId() {
return this.innerModel().endpointId();
}
public EndpointHealthStatus healthStatus() {
return this.innerModel().healthStatus();
}
public EndpointHealthDataInner innerModel() {
return this.innerObject;
}
private com.azure.resourcemanager.hybrid.iothub.IotHubManager manager() {
return this.serviceManager;
}
}
|
[
"weidxu@microsoft.com"
] |
weidxu@microsoft.com
|
9a4af3a907cd71a093d204657e00ffd9fb1ae40b
|
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
|
/sources/com/avito/android/floating_views/FloatingViewsPresenterState.java
|
3bcb42ca27e2f33ca6e6e7e3fc78705042dda070
|
[] |
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
| 643
|
java
|
package com.avito.android.floating_views;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.inject.Qualifier;
import kotlin.Metadata;
@Qualifier
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0002\b\u0003\b\u0002\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/avito/android/floating_views/FloatingViewsPresenterState;", "", "<init>", "()V", "floating-views_release"}, k = 1, mv = {1, 4, 2})
@Retention(RetentionPolicy.RUNTIME)
@kotlin.annotation.Retention
public @interface FloatingViewsPresenterState {
}
|
[
"auchhunter@gmail.com"
] |
auchhunter@gmail.com
|
ff809143d178bfbb4862168de7732cf3c8650714
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mobileqqi/classes.jar/com/tencent/a/a/a/c.java
|
bd74cb56aca31f4165803743246775bf183dc217
|
[] |
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
| 6,040
|
java
|
package com.tencent.a.a.a;
import android.os.IBinder;
import android.os.Parcel;
final class c
implements a
{
private IBinder a;
c(IBinder paramIBinder)
{
this.a = paramIBinder;
}
/* Error */
public final int a(d paramd)
{
// Byte code:
// 0: invokestatic 23 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 3: astore_3
// 4: invokestatic 23 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 7: astore 4
// 9: aload_3
// 10: ldc 25
// 12: invokevirtual 29 android/os/Parcel:writeInterfaceToken (Ljava/lang/String;)V
// 15: aload_1
// 16: ifnull +52 -> 68
// 19: aload_1
// 20: invokeinterface 35 1 0
// 25: astore_1
// 26: aload_3
// 27: aload_1
// 28: invokevirtual 38 android/os/Parcel:writeStrongBinder (Landroid/os/IBinder;)V
// 31: aload_0
// 32: getfield 15 com/tencent/a/a/a/c:a Landroid/os/IBinder;
// 35: iconst_2
// 36: aload_3
// 37: aload 4
// 39: iconst_0
// 40: invokeinterface 44 5 0
// 45: pop
// 46: aload 4
// 48: invokevirtual 47 android/os/Parcel:readException ()V
// 51: aload 4
// 53: invokevirtual 51 android/os/Parcel:readInt ()I
// 56: istore_2
// 57: aload 4
// 59: invokevirtual 54 android/os/Parcel:recycle ()V
// 62: aload_3
// 63: invokevirtual 54 android/os/Parcel:recycle ()V
// 66: iload_2
// 67: ireturn
// 68: aconst_null
// 69: astore_1
// 70: goto -44 -> 26
// 73: astore_1
// 74: aload 4
// 76: invokevirtual 54 android/os/Parcel:recycle ()V
// 79: aload_3
// 80: invokevirtual 54 android/os/Parcel:recycle ()V
// 83: aload_1
// 84: athrow
// Local variable table:
// start length slot name signature
// 0 85 0 this c
// 0 85 1 paramd d
// 56 11 2 i int
// 3 77 3 localParcel1 Parcel
// 7 68 4 localParcel2 Parcel
// Exception table:
// from to target type
// 9 15 73 finally
// 19 26 73 finally
// 26 57 73 finally
}
/* Error */
public final int a(String paramString1, String paramString2, d paramd)
{
// Byte code:
// 0: invokestatic 23 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 3: astore 5
// 5: invokestatic 23 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 8: astore 6
// 10: aload 5
// 12: ldc 25
// 14: invokevirtual 29 android/os/Parcel:writeInterfaceToken (Ljava/lang/String;)V
// 17: aload 5
// 19: aload_1
// 20: invokevirtual 58 android/os/Parcel:writeString (Ljava/lang/String;)V
// 23: aload 5
// 25: aload_2
// 26: invokevirtual 58 android/os/Parcel:writeString (Ljava/lang/String;)V
// 29: aload_3
// 30: ifnull +57 -> 87
// 33: aload_3
// 34: invokeinterface 35 1 0
// 39: astore_1
// 40: aload 5
// 42: aload_1
// 43: invokevirtual 38 android/os/Parcel:writeStrongBinder (Landroid/os/IBinder;)V
// 46: aload_0
// 47: getfield 15 com/tencent/a/a/a/c:a Landroid/os/IBinder;
// 50: iconst_1
// 51: aload 5
// 53: aload 6
// 55: iconst_0
// 56: invokeinterface 44 5 0
// 61: pop
// 62: aload 6
// 64: invokevirtual 47 android/os/Parcel:readException ()V
// 67: aload 6
// 69: invokevirtual 51 android/os/Parcel:readInt ()I
// 72: istore 4
// 74: aload 6
// 76: invokevirtual 54 android/os/Parcel:recycle ()V
// 79: aload 5
// 81: invokevirtual 54 android/os/Parcel:recycle ()V
// 84: iload 4
// 86: ireturn
// 87: aconst_null
// 88: astore_1
// 89: goto -49 -> 40
// 92: astore_1
// 93: aload 6
// 95: invokevirtual 54 android/os/Parcel:recycle ()V
// 98: aload 5
// 100: invokevirtual 54 android/os/Parcel:recycle ()V
// 103: aload_1
// 104: athrow
// Local variable table:
// start length slot name signature
// 0 105 0 this c
// 0 105 1 paramString1 String
// 0 105 2 paramString2 String
// 0 105 3 paramd d
// 72 13 4 i int
// 3 96 5 localParcel1 Parcel
// 8 86 6 localParcel2 Parcel
// Exception table:
// from to target type
// 10 29 92 finally
// 33 40 92 finally
// 40 74 92 finally
}
public final byte[] a(String paramString, byte[] paramArrayOfByte)
{
Parcel localParcel1 = Parcel.obtain();
Parcel localParcel2 = Parcel.obtain();
try
{
localParcel1.writeInterfaceToken("com.tencent.assistant.sdk.remote.BaseService");
localParcel1.writeString(paramString);
localParcel1.writeByteArray(paramArrayOfByte);
this.a.transact(3, localParcel1, localParcel2, 0);
localParcel2.readException();
paramString = localParcel2.createByteArray();
return paramString;
}
finally
{
localParcel2.recycle();
localParcel1.recycle();
}
}
public final IBinder asBinder()
{
return this.a;
}
public final void b(String paramString, byte[] paramArrayOfByte)
{
Parcel localParcel1 = Parcel.obtain();
Parcel localParcel2 = Parcel.obtain();
try
{
localParcel1.writeInterfaceToken("com.tencent.assistant.sdk.remote.BaseService");
localParcel1.writeString(paramString);
localParcel1.writeByteArray(paramArrayOfByte);
this.a.transact(4, localParcel1, localParcel2, 0);
localParcel2.readException();
return;
}
finally
{
localParcel2.recycle();
localParcel1.recycle();
}
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mobileqqi\classes2.jar
* Qualified Name: com.tencent.a.a.a.c
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
21d0e80c9d68ac1f1a99b9f0a8cda255d8618a25
|
c25d6df96ac47b0b99f5f6f06d1754f418982576
|
/enderio-machines/src/main/java/crazypants/enderio/machines/machine/teleport/telepad/gui/IDialingDeviceRemoteExec.java
|
6e5cca6d9c7dbf7ad587c3ee5170cb0d82b58087
|
[
"Unlicense",
"CC-BY-NC-3.0",
"CC0-1.0",
"CC-BY-3.0",
"LicenseRef-scancode-public-domain"
] |
permissive
|
HenryLoenwind/EnderIO
|
243183bffdef65134d8aeda5c756bc68977f32f5
|
ec8b521f3065fbf7dbe12e17813ccbdd1762f0ae
|
refs/heads/master
| 2021-05-25T12:09:28.460330
| 2020-05-30T15:48:23
| 2020-05-30T15:48:23
| 30,419,947
| 0
| 0
|
Unlicense
| 2020-06-01T06:26:12
| 2015-02-06T15:55:10
|
Java
|
UTF-8
|
Java
| false
| false
| 1,061
|
java
|
package crazypants.enderio.machines.machine.teleport.telepad.gui;
import javax.annotation.Nonnull;
import crazypants.enderio.base.network.GuiPacket;
import crazypants.enderio.base.network.IRemoteExec;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
public interface IDialingDeviceRemoteExec {
static final int ID_DO_TELEPORT = 0;
public interface GUI extends IRemoteExec.IGui {
default void doTeleport(@Nonnull BlockPos telepad, int targetID, boolean initiateTeleport) {
GuiPacket.send(this, ID_DO_TELEPORT, targetID, initiateTeleport, telepad);
}
}
public interface Container extends IRemoteExec.IContainer {
IMessage doTeleport(@Nonnull BlockPos telepad, int targetID, boolean initiateTeleport);
@Override
default IMessage networkExec(int id, @Nonnull GuiPacket message) {
if (id == ID_DO_TELEPORT) {
return doTeleport(BlockPos.fromLong(message.getLong(2)), message.getInt(0), message.getBoolean(1));
}
return null;
}
}
}
|
[
"henry@loenwind.info"
] |
henry@loenwind.info
|
b0f34558b5b3b2e5c4ed5f588482f7b4e15e172c
|
1719da83896537005fba7214b294cc76a3d5e667
|
/src/vo/MemberVO.java
|
f1b622dc236756fa030187382eaadb3d56f2d4e1
|
[] |
no_license
|
samgo222/Member
|
7bdb0fd96be2ce540b1903092844dc1a354ce011
|
e4b72e0d5681965c919e171477a8a02516ec18f0
|
refs/heads/master
| 2021-01-10T03:56:05.483741
| 2015-10-06T05:54:12
| 2015-10-06T05:54:12
| 43,732,461
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 865
|
java
|
package vo;
public class MemberVO {
private String id;
private String name;
private String tel;
private String add;
public MemberVO(String id, String name, String tel, String add) {
this.setId(id);
this.setName(name);
this.setTel(tel);
this.setAdd(add);
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public String getAdd() {
return add;
}
public void setAdd(String add) {
this.add = add;
}
public String toString() {
return "MemberVO [id=" + id + ", name=" + name + ", tel=" + tel
+ ", add=" + add + "]";
}
}
|
[
"bit-user@bit"
] |
bit-user@bit
|
c16497ecbdcf076354b83919c631bcde612e2e55
|
7dbc40ea98d17fdc2180563c2ffd8b25504714b3
|
/org/yaml/snakeyaml/introspector/GenericProperty.java
|
bf6a3be7462c41751e1da91384b523918a05be51
|
[] |
no_license
|
WarriorCrystal/Zenith-0.7-src
|
c144e3548f7ae1542df2ce6a29de864aec25b87d
|
34fd7a76d0e1b59518c813da6f5dd339a0425d58
|
refs/heads/main
| 2023-01-21T04:42:58.249921
| 2020-11-29T21:37:31
| 2020-11-29T21:37:31
| 317,043,706
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,118
|
java
|
//
// Decompiled by Procyon v0.5.36
//
package org.yaml.snakeyaml.introspector;
import java.lang.reflect.Array;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
public abstract class GenericProperty extends Property
{
private Type genType;
private boolean actualClassesChecked;
private Class<?>[] actualClasses;
public GenericProperty(final String name, final Class<?> aClass, final Type aType) {
super(name, aClass);
this.genType = aType;
this.actualClassesChecked = (aType == null);
}
@Override
public Class<?>[] getActualTypeArguments() {
if (!this.actualClassesChecked) {
if (this.genType instanceof ParameterizedType) {
final ParameterizedType parameterizedType = (ParameterizedType)this.genType;
final Type[] actualTypeArguments = parameterizedType.getActualTypeArguments();
if (actualTypeArguments.length > 0) {
this.actualClasses = (Class<?>[])new Class[actualTypeArguments.length];
for (int i = 0; i < actualTypeArguments.length; ++i) {
if (actualTypeArguments[i] instanceof Class) {
this.actualClasses[i] = (Class<?>)actualTypeArguments[i];
}
else if (actualTypeArguments[i] instanceof ParameterizedType) {
this.actualClasses[i] = (Class<?>)((ParameterizedType)actualTypeArguments[i]).getRawType();
}
else {
if (!(actualTypeArguments[i] instanceof GenericArrayType)) {
this.actualClasses = null;
break;
}
final Type componentType = ((GenericArrayType)actualTypeArguments[i]).getGenericComponentType();
if (!(componentType instanceof Class)) {
this.actualClasses = null;
break;
}
this.actualClasses[i] = Array.newInstance((Class<?>)componentType, 0).getClass();
}
}
}
}
else if (this.genType instanceof GenericArrayType) {
final Type componentType2 = ((GenericArrayType)this.genType).getGenericComponentType();
if (componentType2 instanceof Class) {
this.actualClasses = (Class<?>[])new Class[] { (Class)componentType2 };
}
}
else if (this.genType instanceof Class) {
final Class<?> classType = (Class<?>)this.genType;
if (classType.isArray()) {
(this.actualClasses = (Class<?>[])new Class[1])[0] = this.getType().getComponentType();
}
}
this.actualClassesChecked = true;
}
return this.actualClasses;
}
}
|
[
"68621329+Warrior80@users.noreply.github.com"
] |
68621329+Warrior80@users.noreply.github.com
|
aa4f6080f67dd901ab4487ad9febe0d7a493307e
|
1629e37bba65c44f8cf5e88d73c71870089041a4
|
/JAVA基础/day04/代码/控制流程语句/Demo1.java
|
fac7cc9688ba298a17bae64e1e1bfc6f713a1543
|
[] |
no_license
|
15529343201/Java-Web
|
e202e242663911420879685c6762c8d232ef5d61
|
15886604aa7b732d42f7f5783f73766da34923e2
|
refs/heads/master
| 2021-01-19T08:50:32.816256
| 2019-03-28T23:34:31
| 2019-03-28T23:34:31
| 87,683,430
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 787
|
java
|
/*
控制流程语句之---if 判断语句
格式一: 只适用于一种情况下去使用。
if(判断条件){
符合条件执行的代码;
}
格式二:适用于两种情况下去使用
if(判断条件){
符合条件执行的代码
}else{
不符合条件执行 的 代码
}
]
格式3: 适用于多种情况使用的
if(判断条件1){
符合条件1执行的 语句;
}else if(判断条件2){
符合条件2执行 的语句;
}else if(判断条件3){
符合条件3执行 的语句;
}else if(判断条件4){
符合条件4执行 的语句;
}......else{
都不符合上述 条件执行的代码...
}
*/
class Demo1
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}
|
[
"15529343201@139.com"
] |
15529343201@139.com
|
5035b69a005f46d89ef701749eeeeef7c1e16d70
|
78348f3d385a2d1eddcf3d7bfee7eaf1259d3c6e
|
/examples/modularized-state-machines/fr.inria.diverse.puzzle.examples.composedLanguage/src-gen/CompleteDSLPckg/Trigger.java
|
1302e698a1d2fd6798e8e1ada4a84149bda37832
|
[] |
no_license
|
damenac/puzzle
|
6ac0a2fba6eb531ccfa7bec3a5ecabf6abb5795e
|
f74b23fd14ed5d6024667bf5fbcfe0418dc696fa
|
refs/heads/master
| 2021-06-14T21:23:05.874869
| 2017-03-27T10:24:31
| 2017-03-27T10:24:31
| 40,361,967
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,312
|
java
|
/**
*/
package CompleteDSLPckg;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Trigger</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link CompleteDSLPckg.Trigger#getExpression <em>Expression</em>}</li>
* </ul>
* </p>
*
* @see CompleteDSLPckg.CompleteDSLPckgPackage#getTrigger()
* @model
* @generated
*/
public interface Trigger extends EObject {
/**
* Returns the value of the '<em><b>Expression</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Expression</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Expression</em>' attribute.
* @see #setExpression(String)
* @see CompleteDSLPckg.CompleteDSLPckgPackage#getTrigger_Expression()
* @model
* @generated
*/
String getExpression();
/**
* Sets the value of the '{@link CompleteDSLPckg.Trigger#getExpression <em>Expression</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Expression</em>' attribute.
* @see #getExpression()
* @generated
*/
void setExpression(String value);
} // Trigger
|
[
"damenac@gmail.com"
] |
damenac@gmail.com
|
4746caf662137652cfc8d2dc236c3791d7a38857
|
7304952f40d96163e8f58f014c5fd813a3be024c
|
/app/src/main/java/com/smartstudy/xxd/mvp/model/SchoolModel.java
|
f3a3cd8b3b760e052bef6ffb8eebffb5b6bf744e
|
[] |
no_license
|
lymluck/proj_abroad
|
c6268a5bb5e3af9a0117170ac9f18029c6d77d9e
|
d0c1ac1e3b85561dc2e49826b9db4aba09537254
|
refs/heads/master
| 2020-03-27T08:25:45.694061
| 2018-09-04T09:16:02
| 2018-09-04T09:16:02
| 146,253,422
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,973
|
java
|
package com.smartstudy.xxd.mvp.model;
import android.text.TextUtils;
import com.smartstudy.commonlib.base.callback.BaseCallback;
import com.smartstudy.commonlib.base.config.BaseRequestConfig;
import com.smartstudy.commonlib.base.server.RequestManager;
import com.smartstudy.commonlib.utils.HttpUrlUtils;
import com.smartstudy.commonlib.utils.ParameterUtils;
import java.util.HashMap;
import java.util.Map;
/**
* Created by louis on 17/4/6.
*/
public class SchoolModel {
public static void getSchools(final String country_id, final String rankRange, final String egRange, final String feeRange, final int page,
BaseCallback<String> callback) {
RequestManager.getInstance().doGet(ParameterUtils.NETWORK_ELSE_CACHED, new BaseRequestConfig() {
@Override
public String getUrl() {
return HttpUrlUtils.getUrl(HttpUrlUtils.URL_SCHOOLS);
}
@Override
public Map getParams() {
Map map = new HashMap();
if (!TextUtils.isEmpty(country_id)) {
map.put("countryId", country_id);
}
if (!TextUtils.isEmpty(rankRange)) {
map.put("localRank", rankRange);
}
if (!TextUtils.isEmpty(feeRange)) {
map.put("feeTotal", feeRange);
}
if (!TextUtils.isEmpty(egRange)) {
String type = TextUtils.split(egRange, ":")[0];
String value = TextUtils.split(egRange, ":")[1];
if ("toefl".equals(type)) {
map.put("scoreToefl", value);
} else if ("ielts".equals(type)) {
map.put("scoreIelts", value);
}
}
map.put("page", page + "");
return map;
}
}, callback);
}
public static void getSchools(final String ids,
BaseCallback<String> callback) {
RequestManager.getInstance().doGet(ParameterUtils.NETWORK_ELSE_CACHED, new BaseRequestConfig() {
@Override
public String getUrl() {
return HttpUrlUtils.getUrl(HttpUrlUtils.URL_SCHOOLS);
}
@Override
public Map getParams() {
Map map = new HashMap();
map.put("ids", ids);
return map;
}
}, callback);
}
public static void getCollegeIntro(final String id,
BaseCallback<String> callback) {
RequestManager.getInstance().doGet(ParameterUtils.CACHED_ELSE_NETWORK, new BaseRequestConfig() {
@Override
public String getUrl() {
return HttpUrlUtils.getUrl(HttpUrlUtils.URL_SCHOOL_INFO);
}
@Override
public Map getParams() {
Map map = new HashMap();
map.put("id", id);
return map;
}
}, callback);
}
public static void getCollegeInfo(final String id,
BaseCallback<String> callback) {
RequestManager.getInstance().doGet(ParameterUtils.NETWORK_ELSE_CACHED, new BaseRequestConfig() {
@Override
public String getUrl() {
return HttpUrlUtils.getUrl(HttpUrlUtils.URL_SCHOOL_DETAIL);
}
@Override
public Map getParams() {
Map map = new HashMap();
map.put("id", id);
return map;
}
}, callback);
}
public static void getHighSchoolInfo(final String schoolId, BaseCallback<String> callback) {
RequestManager.getInstance().doGet(ParameterUtils.NETWORK_ELSE_CACHED, new BaseRequestConfig() {
@Override
public String getUrl() {
return HttpUrlUtils.getUrl(HttpUrlUtils.URL_HIGHSCHOOL_DETAIL);
}
@Override
public Map getParams() {
Map map = new HashMap();
map.put("id", schoolId);
return map;
}
}, callback);
}
public static void postErr(final String schoolId, final String section, final String content,
BaseCallback<String> callback) {
RequestManager.getInstance().doPost(new BaseRequestConfig() {
@Override
public String getUrl() {
return HttpUrlUtils.getUrl(HttpUrlUtils.URL_APP_SCHOOL_ERR);
}
@Override
public Map getParams() {
Map map = new HashMap();
map.put("schoolId", schoolId);
map.put("section", section);
map.put("content", content);
return map;
}
}, callback);
}
}
|
[
"luoyongming@innobuddy.com"
] |
luoyongming@innobuddy.com
|
e4b12ab05d6237d931f2282d03560db7c686f33d
|
d4aa30664a3610f9906aa665716289677b82b6b1
|
/src/main/java/chapter5/Product.java
|
874590330138df53585d321675358d7ce6ec7bd8
|
[] |
no_license
|
gfyan/concurrent-programming
|
49d037ac34ab0cd265e1b397fdf5741fe33041cd
|
ea040825b6a138b40ad955797d58abb753e21726
|
refs/heads/master
| 2021-05-15T20:59:31.283648
| 2018-02-02T11:57:33
| 2018-02-02T11:57:33
| 107,916,511
| 2
| 0
| null | 2017-10-23T01:10:21
| 2017-10-23T01:10:21
| null |
UTF-8
|
Java
| false
| false
| 511
|
java
|
package chapter5;
/**
* Created by 13 on 2017/5/6.
*/
public final class Product {
private final String no;
private final String name;
private final String price;
public Product(String no, String name, String price) {
super();
this.no = no;
this.name = name;
this.price = price;
}
public String getNo() {
return no;
}
public String getName() {
return name;
}
public String getPrice() {
return price;
}
}
|
[
"1034683568@qq.com"
] |
1034683568@qq.com
|
6bca3f5264cbc2f96afec95def2c1a864a4590b3
|
282ac1db767ec2b4eb5d0829fc3478eb909f348e
|
/framework/modules/boot-starter/src/main/java/ms/dew/core/doc/DocLocalAutoConfiguration.java
|
456841074439cc9cedb444fca7401e6c3258f0b4
|
[
"Apache-2.0"
] |
permissive
|
LiuHongcheng/dew
|
653166a21fdc96b0abda669592ed2959b4af2f18
|
6ad2d9db5b6e758331e1afc1cdf75bc618adf0c5
|
refs/heads/master
| 2020-05-19T17:27:14.741921
| 2019-10-30T07:01:39
| 2019-10-30T07:01:39
| 185,134,486
| 0
| 0
|
Apache-2.0
| 2019-05-06T06:13:41
| 2019-05-06T06:13:41
| null |
UTF-8
|
Java
| false
| false
| 1,833
|
java
|
/*
* Copyright 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 ms.dew.core.doc;
import ms.dew.Dew;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.ArrayList;
/**
* Doc local auto configuration.
*
* @author gudaoxuri
*/
@Configuration
@ConditionalOnMissingClass("org.springframework.cloud.client.discovery.DiscoveryClient")
public class DocLocalAutoConfiguration {
@Value("${server.ssl.key-store:}")
private String localSSLKeyStore;
@Value("${server.context-path:}")
private String localContextPath;
/**
* Doc controller doc controller.
*
* @return the doc controller
*/
@Bean
public DocController docController() {
return new DocController(() ->
new ArrayList<String>() {
{
add((localSSLKeyStore == null || localSSLKeyStore.isEmpty() ? "http" : "https")
+ "://localhost:" + Dew.Info.webPort + localContextPath + "/v2/api-docs");
}
}
);
}
}
|
[
"i@sunisle.org"
] |
i@sunisle.org
|
4440558d540cd32dbdea0ef40027c8a239f9c06f
|
17f76f8c471673af9eae153c44e5d9776c82d995
|
/convertor/java_code/includes/fromanceH.java
|
41fa4f1b8d572f1b6c8c0531b1248a02b854b056
|
[] |
no_license
|
javaemus/arcadeflex-067
|
ef1e47f8518cf214acc5eb246b1fde0d6cbc0028
|
1ea6e5c6a73cf8bca5d234b26d2b5b6312df3931
|
refs/heads/main
| 2023-02-25T09:25:56.492074
| 2021-02-05T11:40:36
| 2021-02-05T11:40:36
| 330,649,950
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 621
|
java
|
/***************************************************************************
Game Driver for Video System Mahjong series and Pipe Dream.
Driver by Takahiro Nogi <nogi@kt.rim.or.jp> 2001/02/04 -
and Bryan McPhail, Nicola Salmoria, Aaron Giles
***************************************************************************/
/*
* ported to v0.67
* using automatic conversion tool v0.01
*/
package includes;
public class fromanceH
{
/*----------- defined in vidhrdw/fromance.c -----------*/
VIDEO_START( fromance );
VIDEO_START( nekkyoku );
VIDEO_UPDATE( fromance );
VIDEO_UPDATE( pipedrm );
}
|
[
"giorgosmrls@gmail.com"
] |
giorgosmrls@gmail.com
|
1a1babc461716131e820e4e97c61c1caa4696791
|
f1dd381b36337d6d9aeed0244626c161e0577d33
|
/app/src/main/java/cn/protector/logic/entity/ChatMessage.java
|
523175217ad1bdd1dafa01f8c04366f07f5d3eeb
|
[] |
no_license
|
czg12300/Protector
|
d85bc38b4778377c6f0557b90ece5af7d4c9048e
|
7df9fb4e3002aa68005ba5f9b7337ed90f6076ee
|
refs/heads/master
| 2020-12-13T16:10:30.340658
| 2015-10-20T09:56:33
| 2015-10-20T09:56:33
| 40,595,970
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 521
|
java
|
package cn.protector.logic.entity;
import java.io.Serializable;
/**
* 描述:宝贝信息实体类
*
* @author Created by Administrator on 2015/9/4.
*/
public class ChatMessage implements JsonParse {
public static final int TYPE_MESSAGE=1;
public static final int TYPE_VOICE=2;
public String name;
public String avator;
public String time;
public String message;
public int type;
public String voice;
public int id;
@Override
public void parse(String json) {
}
}
|
[
"903475400@qq.com"
] |
903475400@qq.com
|
bb69a9f4e5f94d0b59a3906d5996a97d2e13941e
|
5741045375dcbbafcf7288d65a11c44de2e56484
|
/reddit-decompilada/kotlin/reflect/jvm/internal/impl/load/kotlin/header/KotlinClassHeader.java
|
2dbc4918d8604166281a3d12103f194f5956e76c
|
[] |
no_license
|
miarevalo10/ReporteReddit
|
18dd19bcec46c42ff933bb330ba65280615c281c
|
a0db5538e85e9a081bf268cb1590f0eeb113ed77
|
refs/heads/master
| 2020-03-16T17:42:34.840154
| 2018-05-11T10:16:04
| 2018-05-11T10:16:04
| 132,843,706
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,088
|
java
|
package kotlin.reflect.jvm.internal.impl.load.kotlin.header;
import java.util.LinkedHashMap;
import java.util.Map;
import kotlin.collections.MapsKt__MapsKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.ranges.RangesKt___RangesKt;
import kotlin.reflect.jvm.internal.impl.load.java.JvmBytecodeBinaryVersion;
import kotlin.reflect.jvm.internal.impl.load.kotlin.JvmMetadataVersion;
/* compiled from: KotlinClassHeader.kt */
public final class KotlinClassHeader {
public final Kind f25837a;
public final JvmMetadataVersion f25838b;
public final String[] f25839c;
public final String[] f25840d;
public final String[] f25841e;
public final int f25842f;
private final JvmBytecodeBinaryVersion f25843g;
private final String f25844h;
/* compiled from: KotlinClassHeader.kt */
public enum Kind {
;
public static final Companion f25833g = null;
private static final Map<Integer, Kind> f25835j = null;
private final int f25836i;
/* compiled from: KotlinClassHeader.kt */
public static final class Companion {
private Companion() {
}
static Map<Integer, Kind> m27382a() {
return Kind.f25835j;
}
}
private Kind(int i) {
this.f25836i = i;
}
static {
f25833g = new Companion();
Object[] objArr = (Object[]) values();
Map linkedHashMap = new LinkedHashMap(RangesKt___RangesKt.m32855c(MapsKt__MapsKt.m36115a(objArr.length), 16));
int i;
while (i < objArr.length) {
Object obj = objArr[i];
linkedHashMap.put(Integer.valueOf(((Kind) obj).f25836i), obj);
i++;
}
f25835j = linkedHashMap;
}
public static final Kind m27384a(int i) {
Kind kind = (Kind) Companion.m27382a().get(Integer.valueOf(i));
return kind == null ? f25827a : kind;
}
}
public KotlinClassHeader(Kind kind, JvmMetadataVersion jvmMetadataVersion, JvmBytecodeBinaryVersion jvmBytecodeBinaryVersion, String[] strArr, String[] strArr2, String[] strArr3, String str, int i) {
Intrinsics.m26847b(kind, "kind");
Intrinsics.m26847b(jvmMetadataVersion, "metadataVersion");
Intrinsics.m26847b(jvmBytecodeBinaryVersion, "bytecodeVersion");
this.f25837a = kind;
this.f25838b = jvmMetadataVersion;
this.f25843g = jvmBytecodeBinaryVersion;
this.f25839c = strArr;
this.f25840d = strArr2;
this.f25841e = strArr3;
this.f25844h = str;
this.f25842f = i;
}
public final String m27385a() {
return Intrinsics.m26845a(this.f25837a, Kind.f25832f) ? this.f25844h : null;
}
public final String toString() {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append(this.f25837a);
stringBuilder.append(" version=");
stringBuilder.append(this.f25838b);
return stringBuilder.toString();
}
}
|
[
"mi.arevalo10@uniandes.edu.co"
] |
mi.arevalo10@uniandes.edu.co
|
7e3b990c37f1b7716e9b39841ec6f851ae89a7bd
|
958a03242e1e29c942c72d104ff09326618114f9
|
/app/src/main/java/com/study/modularization/MainApp.java
|
90d938165deef7beea5da72be04dd8ec6c8687f0
|
[] |
no_license
|
hcgrady2/Modularization
|
6a2d2137412e083e342f81459c9e6a3ea911fd27
|
5ea8916059ad996927d10c83b2be60f69792c075
|
refs/heads/master
| 2020-04-25T04:53:03.909480
| 2019-02-26T08:15:21
| 2019-02-26T08:15:21
| 172,525,027
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,378
|
java
|
package com.study.modularization;
import android.app.Application;
import android.util.Log;
import com.study.compontlib.AppConfig;
import com.study.compontlib.IAppComponet;
/**
* Created by hcw on 2019/2/25.
* Copyright©hcw.All rights reserved.
*/
public class MainApp extends Application implements IAppComponet{
private static MainApp application;
public static MainApp getApplication(){
return application;
}
@Override
public void onCreate() {
super.onCreate();
initialize(this);
}
@Override
public void initialize(Application app) {
application = (MainApp)app;
for (String componet: AppConfig.CONPONENTS){
try {
Class<?> clazz = Class.forName(componet);
Object object = clazz.newInstance();
/**
* 当组件存在并且实现了IAppCompone接口,则通过反射初始化
*/
if (object instanceof IAppComponet){
((IAppComponet)object).initialize(this);
}
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InstantiationException e) {
e.printStackTrace();
}
}
}
}
|
[
"hcwang1024@163.com"
] |
hcwang1024@163.com
|
677c5f038f42e04b01811f6599e4dbe184fb2364
|
053f65f90759a200c743e872cd1b4bf99d66a7b0
|
/src/com/aoeng/dp/cat1/flyweight/Main.java
|
d9ecdb3f6a6ce850f53a962af4285fd56dbc663e
|
[] |
no_license
|
tianshan20081/J2SETools
|
e58bb851a6a6e0082a810463405544d6b092619d
|
39e3263128ce9fcc00d1dc4a43f3c76570df16d6
|
refs/heads/master
| 2020-06-01T15:35:25.571665
| 2015-02-06T11:02:39
| 2015-02-06T11:02:39
| 22,879,436
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 496
|
java
|
/**
*
*/
package com.aoeng.dp.cat1.flyweight;
import org.junit.Test;
/**
* Jun 20, 2014 4:41:49 PM
*
* 享元模式 :如果在一个系统中存在多个相同的对象,那么只需共享一份对象的拷贝,
* 而不必为每一次使都创建新的对象。
*/
public class Main {
@Test
public void testFlyWeight() {
ReportManagerFactory factory = new ReportManagerFactory();
IReportManager rp = factory.getFinancialIReportManager("A");
System.out.println(rp);
}
}
|
[
"zhangshch2008@gmail.com"
] |
zhangshch2008@gmail.com
|
e451ed8596b563d00cc7b2dca043c455af053491
|
5f949538bbfb0430d1f80eae0aac10ee9346144d
|
/src/main/java/bitcamp/java89/ems/servlet/StudentListServlet.java
|
043229f3357d0d811bfb9e1c6bb691a0a701038b
|
[] |
no_license
|
Nina-K/java89-web
|
2dfc193b2aacc9f0cf02f84d5c3004650f4db377
|
f431846b71199856d9f17c6e8dcdd7386fb42637
|
refs/heads/master
| 2020-06-12T14:07:54.280495
| 2016-12-05T08:18:23
| 2016-12-05T08:18:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,885
|
java
|
package bitcamp.java89.ems.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebServlet;
import bitcamp.java89.ems.dao.impl.StudentMysqlDao;
import bitcamp.java89.ems.vo.Student;
// 톰캣 서버가 실행할 수 있는 클래스는 반드시 Servlet 규격에 맞추어 제작해야 한다.
// 그러나 Servlet 인터페이스의 메서드가 많아서 구현하기 번거롭다.
// 그래서 AbstractServlet이라는 추상 클래스를 만들어서,
// 이 클래스를 상속 받아 간접적으로 Servlet인터페이스를 구현하는 방식을 취한다.
// 이 클래스를 상속받게 되면 오직 service() 메서드만 만들면 되기 때문에 코드가 편리하다.
@WebServlet("/student/list")
public class StudentListServlet extends AbstractServlet {
@Override
public void service(ServletRequest request, ServletResponse response)
throws ServletException, IOException {
try {
StudentMysqlDao studentDao = StudentMysqlDao.getInstance();
// 웹브라우저 쪽으로 출력할 수 있도록 출력 스트림 객체를 얻는다.
response.setContentType("text/plain;charset=UTF-8");
PrintWriter out = response.getWriter();
ArrayList<Student> list = studentDao.getList();
for (Student student : list) {
out.printf("%s,%s,%s,%s,%s,%s,%d,%s\n",
student.getUserId(),
student.getPassword(),
student.getName(),
student.getTel(),
student.getEmail(),
((student.isWorking())?"yes":"no"),
student.getBirthYear(),
student.getSchool());
}
} catch (Exception e) {
throw new ServletException(e);
}
}
}
|
[
"jinyoung.eom@gmail.com"
] |
jinyoung.eom@gmail.com
|
15be59e22c30b5faf1674e0812eea57406411c7a
|
2408639641881ca6b083e1bdf05b866cc5712b15
|
/src/main/java/org/spacehq/mc/protocol/data/game/world/notify/EnterCreditsValue.java
|
04eb00d73e0406aa1913810876f5c472c3948826
|
[
"MIT"
] |
permissive
|
games647/MCProtocolLib
|
2c40dbda3924d212b2ca48478ff5285de7f642ee
|
f0de35df53f40c8fdeee058ec46f4c1607389fd8
|
refs/heads/master
| 2021-01-13T03:44:20.650029
| 2020-11-04T11:24:41
| 2020-11-04T11:24:41
| 77,235,758
| 0
| 0
|
MIT
| 2020-11-04T11:24:43
| 2016-12-23T15:57:23
|
Java
|
UTF-8
|
Java
| false
| false
| 159
|
java
|
package org.spacehq.mc.protocol.data.game.world.notify;
public enum EnterCreditsValue implements ClientNotificationValue {
SEEN_BEFORE,
FIRST_TIME;
}
|
[
"Steveice10@gmail.com"
] |
Steveice10@gmail.com
|
298c2920c8fd0d4d71945bbc2f0be7c324b25406
|
cc9b5c59184bda2966d615239807140574f90917
|
/src/main/java/com/braintreegateway/MultipleValueNode.java
|
82ad7014ad75bafd7ee11bc4743e07cbfceb8716
|
[
"LicenseRef-scancode-free-unknown",
"MIT",
"LicenseRef-scancode-other-permissive",
"Apache-2.0"
] |
permissive
|
appscode/braintree_java
|
210562eebad91ee3e3d4f19d481874473f87628a
|
b4433b31179f0e1a770d2a5babdc044f9d182fea
|
refs/heads/master
| 2021-01-11T19:00:48.798614
| 2017-01-11T19:59:42
| 2017-01-11T19:59:42
| 79,289,710
| 2
| 0
|
MIT
| 2019-07-21T21:14:13
| 2017-01-18T01:14:19
|
Java
|
UTF-8
|
Java
| false
| false
| 535
|
java
|
package com.braintreegateway;
import java.util.Arrays;
import java.util.List;
public class MultipleValueNode<T extends SearchRequest, S> extends SearchNode<T> {
public MultipleValueNode(String nodeName, T parent) {
super(nodeName, parent);
}
public T in(List<S> items) {
return assembleMultiValueCriteria(items);
}
public T in(S... items) {
return in(Arrays.asList(items));
}
@SuppressWarnings("unchecked")
public T is(S item) {
return in(item);
}
}
|
[
"code@getbraintree.com"
] |
code@getbraintree.com
|
37a7efd90db4e920b9a08d4d098aaa0354ae315b
|
6897222174736708531da65c74edbb3cc6baf506
|
/src/Filter/UploadVedioServlet.java
|
ddd6a1a0356d26e4d6a0fc78384548a70f8c2cb7
|
[] |
no_license
|
GZzzhsmart/FitmentStore
|
208ab4146f7be9be4dc7b648deb27d57ff6bd70c
|
a2300ff5a875d6cc1c97ebe8967e4cdf4a82dc05
|
refs/heads/master
| 2021-07-24T09:22:43.149639
| 2017-11-05T11:07:31
| 2017-11-05T11:07:31
| 104,160,796
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,615
|
java
|
package Filter;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.oreilly.servlet.MultipartRequest;
public class UploadVedioServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doPost(request, response);
}
/*文件上传:
* 1.要把cos.jar文件拷贝到WEB-INF/lib文件夹
* 2.创建上传的jsp页面,页面的表单必须有如下2个属性,并且值是固定的
* 1.enctype="multipart/form-data"
* 2.method = "post"
* 3.FileRenameUtil改类主要功能是对文件进行重命名,该类必须实现FileRenamePolicy接口
* 4.创建文件上传的servlet,实现文件上传
*
*
* */
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// 保存文件的路径,必须是tomcat里面当前项目下的子路径
String filePath = getServletContext().getRealPath("/") + "vedio";
System.out.println(filePath);//输出存放上传文件所到的路径
File uploadPath = new File(filePath);
// 检查文件夹是否存在 不存在 创建一个
if (!uploadPath.exists()) {
//创建文件夹
uploadPath.mkdir();
}
// 文件最大容量 1G
int fileMaxSize = 1024 * 1024 * 1024;
// 存放文件描述
@SuppressWarnings("unused")
String[] fileDiscription = { null, null };
// 文件名
String fileName = null;
// 上传文件数
int fileCount = 0;
// 重命名策略
FileRenameUtil rfrp = new FileRenameUtil();
// 上传文件
MultipartRequest mulit =null;
try{
mulit = new MultipartRequest(request, filePath,
fileMaxSize, "UTF-8", rfrp);//取得上传文件
}catch(Exception e){
request.setAttribute("msg", "上传文件的大小不能超过1G");
getServletContext().getRequestDispatcher("/T13/uploadVedio.jsp").forward(request, response);
return;
}
//获取普通控件的值,不能使用request对象
String section = mulit.getParameter("section");
System.out.println(section);
Enumeration filesname = mulit.getFileNames();//取得上传的所有文件(相当于标识)
while (filesname.hasMoreElements()) {
//控件名称
String name = (String) filesname.nextElement();//标识
System.out.println(name);
fileName = mulit.getFilesystemName(name); //取得文件名
String contentType = mulit.getContentType(name);//工具标识取得的文件类型
if (fileName != null) {
fileCount++;
}
// System.out.println("文件名:" + fileName);
// System.out.println("文件类型: " + contentType);
//在页面显示上传成功的图片
// out.println("<img src='upload/"+fileName+"' />");
}
PrintWriter out = response.getWriter();
response.setContentType("text/html;charset=utf-8");
out.println("正在开发中.............");
System.out.println("共上传" + fileCount + "个文件!");
out.close();
}
}
|
[
"1729340612@qq.com"
] |
1729340612@qq.com
|
b8636f03a6074de8d318ee94adeecbc6aaa3570d
|
09a00394429e4bad33d18299358a54fcd395423d
|
/gradle/wrapper/dists/gradle-1.12-all/4ff8jj5a73a7zgj5nnzv1ubq0/gradle-1.12/src/launcher/org/gradle/tooling/internal/provider/ConfiguringBuildAction.java
|
dce07f0c8884da1670c2d4db3334779e2ce52a00
|
[
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.1-or-later",
"MIT",
"CPL-1.0",
"LGPL-2.1-only"
] |
permissive
|
agneske-arter-walter-mostertruck-firetr/pushfish-android
|
35001c81ade9bb0392fda2907779c1d10d4824c0
|
09157e1d5d2e33a57b3def177cd9077cd5870b24
|
refs/heads/master
| 2021-12-02T21:13:04.281907
| 2021-10-18T21:48:59
| 2021-10-18T21:48:59
| 215,611,384
| 0
| 0
|
BSD-2-Clause
| 2019-10-16T17:58:05
| 2019-10-16T17:58:05
| null |
UTF-8
|
Java
| false
| false
| 6,838
|
java
|
/*
* Copyright 2011 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.gradle.tooling.internal.provider;
import org.gradle.StartParameter;
import org.gradle.api.logging.LogLevel;
import org.gradle.cli.CommandLineArgumentException;
import org.gradle.initialization.BuildAction;
import org.gradle.initialization.BuildController;
import org.gradle.initialization.DefaultCommandLineConverter;
import org.gradle.launcher.cli.converter.PropertiesToStartParameterConverter;
import org.gradle.tooling.internal.impl.LaunchableImplementation;
import org.gradle.tooling.internal.protocol.InternalLaunchable;
import org.gradle.tooling.internal.protocol.exceptions.InternalUnsupportedBuildArgumentException;
import org.gradle.tooling.internal.provider.connection.ProviderOperationParameters;
import org.gradle.tooling.model.UnsupportedMethodException;
import java.io.File;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
class ConfiguringBuildAction<T> implements BuildAction<T>, Serializable {
private static List<InternalLaunchable> getLaunchables(ProviderOperationParameters parameters) {
try {
return parameters.getLaunchables();
} catch (UnsupportedMethodException ume) {
// older consumer version
return null;
}
}
private LogLevel buildLogLevel;
private List<String> arguments;
private List<String> tasks;
private List<InternalLaunchable> launchables;
private BuildAction<? extends T> action;
private File projectDirectory;
private File gradleUserHomeDir;
private Boolean searchUpwards;
private Map<String, String> properties = new HashMap<String, String>();
// Important that this is constructed on the client so that it has the right gradleHomeDir internally
private final StartParameter startParameterTemplate = new StartParameter();
public ConfiguringBuildAction() {}
public ConfiguringBuildAction(ProviderOperationParameters parameters, BuildAction<? extends T> action, Map<String, String> properties) {
this.properties.putAll(properties);
this.gradleUserHomeDir = parameters.getGradleUserHomeDir();
this.projectDirectory = parameters.getProjectDir();
this.searchUpwards = parameters.isSearchUpwards();
this.buildLogLevel = parameters.getBuildLogLevel();
this.arguments = parameters.getArguments(Collections.<String>emptyList());
this.tasks = parameters.getTasks();
this.launchables = getLaunchables(parameters);
this.action = action;
}
StartParameter configureStartParameter() {
return configureStartParameter(new PropertiesToStartParameterConverter());
}
StartParameter configureStartParameter(PropertiesToStartParameterConverter propertiesToStartParameterConverter) {
StartParameter startParameter = startParameterTemplate.newInstance();
startParameter.setProjectDir(projectDirectory);
if (gradleUserHomeDir != null) {
startParameter.setGradleUserHomeDir(gradleUserHomeDir);
}
if (launchables != null) {
List<String> allTasks = new ArrayList<String>();
String projectPath = null;
for (InternalLaunchable launchable : launchables) {
if (launchable instanceof LaunchableImplementation) {
LaunchableImplementation launchableImpl = (LaunchableImplementation) launchable;
allTasks.add(launchableImpl.getTaskName());
if (launchableImpl.getProjectPath() != null) {
if (projectPath != null && !projectPath.equals(launchableImpl.getProjectPath())) {
throw new InternalUnsupportedBuildArgumentException(
"Problem with provided launchable arguments: " + launchables + ". "
+ "\nOnly selector from the same Gradle project can be built."
);
}
projectPath = launchableImpl.getProjectPath();
}
} else {
throw new InternalUnsupportedBuildArgumentException(
"Problem with provided launchable arguments: " + launchables + ". "
+ "\nOnly objects from this provider can be built."
);
}
}
if (projectPath != null) {
startParameter.setProjectPath(projectPath);
}
startParameter.setTaskNames(allTasks);
} else if (tasks != null) {
startParameter.setTaskNames(tasks);
}
propertiesToStartParameterConverter.convert(properties, startParameter);
if (arguments != null) {
DefaultCommandLineConverter converter = new DefaultCommandLineConverter();
try {
converter.convert(arguments, startParameter);
} catch (CommandLineArgumentException e) {
throw new InternalUnsupportedBuildArgumentException(
"Problem with provided build arguments: " + arguments + ". "
+ "\n" + e.getMessage()
+ "\nEither it is not a valid build option or it is not supported in the target Gradle version."
+ "\nNot all of the Gradle command line options are supported build arguments."
+ "\nExamples of supported build arguments: '--info', '-u', '-p'."
+ "\nExamples of unsupported build options: '--daemon', '-?', '-v'."
+ "\nPlease find more information in the javadoc for the BuildLauncher class.", e);
}
}
if (searchUpwards != null) {
startParameter.setSearchUpwards(searchUpwards);
}
if (buildLogLevel != null) {
startParameter.setLogLevel(buildLogLevel);
}
return startParameter;
}
public T run(BuildController buildController) {
buildController.setStartParameter(configureStartParameter());
return action.run(buildController);
}
}
|
[
"mega@ioexception.at"
] |
mega@ioexception.at
|
48a19c9851278d8e96bb266ff40d6e9dfd63ad4d
|
a55b85b6dd6a4ebf856b3fd80c9a424da2cd12bd
|
/orderloader/src/main/java/org/marketcetera/orderloader/system/EnumProcessor.java
|
f369b9e52fc49302c03bef98a347d1fb49ac8f44
|
[] |
no_license
|
jeffreymu/marketcetera-2.2.0-16652
|
a384a42b2e404bcc6140119dd2c6d297d466596c
|
81cdd34979492f839233552432f80b3606d0349f
|
refs/heads/master
| 2021-12-02T11:18:01.399940
| 2013-08-09T14:36:21
| 2013-08-09T14:36:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,464
|
java
|
package org.marketcetera.orderloader.system;
import org.marketcetera.util.misc.ClassVersion;
import org.marketcetera.util.log.I18NMessage2P;
import org.marketcetera.util.log.I18NBoundMessage2P;
import org.marketcetera.orderloader.OrderParsingException;
import java.util.EnumSet;
import java.util.Set;
/**
* Extracts enum value from an order row.
*
* @author anshul@marketcetera.com
* @version $Id: EnumProcessor.java 16154 2012-07-14 16:34:05Z colin $
* @since 1.0.0
*/
@ClassVersion("$Id: EnumProcessor.java 16154 2012-07-14 16:34:05Z colin $")
abstract class EnumProcessor<T extends Enum<T>>
extends IndexedProcessor {
/**
* Creates an instance.
*
* @param inClass the enum class handled by this instance.
* @param inDisallowedValue the enum value that is not allowed as a
* valid value.
* @param inErrorMessage the error message to display when the specified
* enum value is not valid.
* @param inIndex the column index of the index value in the order row.
*/
protected EnumProcessor(Class<T> inClass, T inDisallowedValue,
I18NMessage2P inErrorMessage, int inIndex) {
super(inIndex);
mClass = inClass;
mErrorMessage = inErrorMessage;
mValidValues = EnumSet.allOf(inClass);
mValidValues.remove(inDisallowedValue);
}
/**
* Extracts the enum value from the specified order row.
*
* @param inRow the order row.
*
* @return the enum value from the supplied row.
*
* @throws OrderParsingException if the value found in the row is not
* a valid enum value.
*/
protected T getEnumValue(String [] inRow) throws OrderParsingException {
String value = getValue(inRow);
if(value == null || value.isEmpty()) {
return null;
}
try {
T t = Enum.valueOf(mClass, getValue(inRow));
if(!mValidValues.contains(t)) {
throw new OrderParsingException(new I18NBoundMessage2P(
mErrorMessage, value, mValidValues.toString()));
}
return t;
} catch (IllegalArgumentException e) {
throw new OrderParsingException(e, new I18NBoundMessage2P(
mErrorMessage, value, mValidValues.toString()));
}
}
private final Set<T> mValidValues;
private final I18NMessage2P mErrorMessage;
private final Class<T> mClass;
}
|
[
"vladimir_petrovich@yahoo.com"
] |
vladimir_petrovich@yahoo.com
|
2c06e35128f2bb44d511e8372722de7a12b68639
|
0caffe05aeee72bc681351c7ba843bb4b2a4cd42
|
/dcma-gwt/dcma-gwt-home/src/main/java/com/ephesoft/dcma/gwt/home/client/TableModelServiceAsync.java
|
e58c39f398a7b7ae97fdb2646588ed71c7857e68
|
[] |
no_license
|
plutext/ephesoft
|
d201a35c6096f9f3b67df00727ae262976e61c44
|
d84bf4fa23c9ed711ebf19f8d787a93a71d97274
|
refs/heads/master
| 2023-06-23T10:15:34.223961
| 2013-02-13T18:35:49
| 2013-02-13T18:35:49
| 43,588,917
| 4
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,894
|
java
|
/*********************************************************************************
* Ephesoft is a Intelligent Document Capture and Mailroom Automation program
* developed by Ephesoft, Inc. Copyright (C) 2010-2012 Ephesoft Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY EPHESOFT, EPHESOFT DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* 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 Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact Ephesoft, Inc. headquarters at 111 Academy Way,
* Irvine, CA 92617, USA. or at email address info@ephesoft.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Ephesoft" logo.
* If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by Ephesoft".
********************************************************************************/
package com.ephesoft.dcma.gwt.home.client;
import java.util.List;
import com.ephesoft.dcma.core.common.Order;
import com.ephesoft.dcma.gwt.core.client.DCMARemoteServiceAsync;
import com.ephesoft.dcma.gwt.core.shared.BatchInstanceDTO;
import com.ephesoft.dcma.gwt.core.shared.DataFilter;
import com.google.gwt.user.client.rpc.AsyncCallback;
/**
* TableModelServiceAsync is a service interface that asynchronously provides data for displaying in a GWT AdvancedTable widget. The
* implementing class should provide paging, filtering and sorting as this interface specifies.
*
* Life-cycle: 1) getColumns() is called by the client to populate the table columns 2) getRowsCount() is called by the client to
* estimate the number of available records on the server. 3) getRows() is called by the client to display a particular page (a subset
* of the available data) The client call getRowsCount() and getRows() with the same filter. The implementing class can use database or
* other back-end as data source.
*
* The first table column is used as row identifier (primary key). It can be visible in the table or can be hidden and is passed as row
* id when a row is selected.
*
* @author Ephesoft
* @version 1.0
* @see com.ephesoft.dcma.gwt.core.client.DCMARemoteServiceAsync
*/
public interface TableModelServiceAsync extends DCMARemoteServiceAsync {
/**
* API to get total Rows Count for the given data filters asynchronously.
*
* @param filters {@link DataFilter}[ ]
* @param callback {@link AsyncCallback} < {@link Integer} >
*/
void getRowsCount(DataFilter[] filters, AsyncCallback<Integer> callback);
/**
* API to get Rows of the table in the form of BatchInstanceDTO for the given batch and filters asynchronously.
*
* @param batchNameToBeSearched {@link String}
* @param startRow int
* @param rowsCount int
* @param filters {@link DataFilter}[ ]
* @param order {@link Order}
* @param callback {@link AsyncCallback} < List< {@link BatchInstanceDTO}> >
*/
void getRows(String batchNameToBeSearched, int startRow, int rowsCount, DataFilter[] filters, Order order,
AsyncCallback<List<BatchInstanceDTO>> callback);
/**
* API to get Individual Row Counts for each batch asynchronously.
*
* @param callback {@link AsyncCallback} < {@link Integer}[ ] >
*/
void getIndividualRowCounts(AsyncCallback<Integer[]> asyncCallback);
/**
* API to get Next Batch Instance asynchronously.
*
* @param callback {@link AsyncCallback} < {@link String} >
*/
void getNextBatchInstance(AsyncCallback<String> callback);
/**
* API to get Rows Count of a batch passing the given data filters asynchronously.
*
* @param batchName {@link String}
* @param filters {@link DataFilter}[ ]
* @param callback {@link AsyncCallback} < {@link Integer} >
*/
void getRowsCount(String batchName, DataFilter[] filters, AsyncCallback<Integer> callback);
}
|
[
"enterprise.support@ephesoft.com"
] |
enterprise.support@ephesoft.com
|
829ab16b57bb58b80f4d56f21cd89d59f21718a8
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/30/30_3827cc02205cb3cfc18b384ff60b7a804d8914ea/Test/30_3827cc02205cb3cfc18b384ff60b7a804d8914ea_Test_s.java
|
f2de47c2334612d40a9ed6df9a82220c5f12fa0d
|
[] |
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
| 1,581
|
java
|
package org.encog.engine;
import org.encog.engine.data.BasicEngineDataSet;
import org.encog.engine.data.EngineDataSet;
import org.encog.engine.network.flat.FlatNetwork;
import org.encog.engine.network.train.TrainFlatNetworkResilient;
import org.encog.engine.data.EngineData;
public class Test {
public static double XOR_INPUT[][] = { { 0.0, 0.0 }, { 1.0, 0.0 },
{ 0.0, 1.0 }, { 1.0, 1.0 } };
public static double XOR_IDEAL[][] = { { 0.0 }, { 1.0 }, { 1.0 }, { 0.0 } };
public static void main(String[] args)
{
EncogEngine.getInstance().initCL();
FlatNetwork network = new FlatNetwork(2,3,0,1,true);
System.out.println( network.getWeights().length );
for(int i=0;i<network.getWeights().length;i++)
{
network.getWeights()[i] = (Math.random()*2.0) - 1.0;
}
EngineDataSet trainingSet = new BasicEngineDataSet(XOR_INPUT, XOR_IDEAL);
TrainFlatNetworkResilient train = new TrainFlatNetworkResilient(network,trainingSet);
int epoch = 1;
do {
train.iteration();
System.out
.println("Epoch #" + epoch + " Error:" + train.getError());
epoch++;
} while(train.getError() > 0.01);
// test the neural network
double[] output = new double[2];
System.out.println("Neural Network Results:");
for(EngineData pair: trainingSet ) {
network.compute(pair.getInput(),output);
System.out.println(pair.getInput()[0] + "," + pair.getInput()[1]
+ ", actual=" + output[0] + ",ideal=" + pair.getIdeal()[0]);
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
60449a6990cd9b3df23d009d40f3efb7367fd285
|
e9e7ab1d69a42719f6bfadc9b221b3fc82a3c1d2
|
/src/main/java/ng/upperlink/nibss/cmms/dto/emandates/AuthenticationRequest.java
|
a44785434e9b96ce1865b20073342a62dcc74a50
|
[] |
no_license
|
jtobiora/cmms_central_lib_module
|
375d26257d74fa4b0534d82f71a3720996ef9187
|
d6bdcb8aae827a3150ede0ce7ba1e8d3a3060aba
|
refs/heads/master
| 2020-05-05T03:28:39.207074
| 2019-04-05T12:10:29
| 2019-04-05T12:10:29
| 179,674,023
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,362
|
java
|
package ng.upperlink.nibss.cmms.dto.emandates;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.math.BigDecimal;
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class AuthenticationRequest {
@XmlElement(name = "SessionID")
private String sessionId;
@XmlElement(name = "RequestorID")
private String requestorID;
@XmlElement(name = "PayerPhoneNumber")
private String payerPhoneNumber;
@XmlElement(name = "Amount")
private BigDecimal amount;
@XmlElement(name = "AdditionalFIRequiredData")
private String additionalFIRequiredData;
@XmlElement(name = "FIInstitution")
private String fIInstitution;
@XmlElement(name = "AccountNumber")
private String accountNumber;
@XmlElement(name = "AccountName")
private String accountName;
@XmlElement(name = "PassCode")
private String passCode;
@XmlElement(name = "MandateReferenceNumber")
private String mandateReferenceNumber;
@XmlElement(name = "ProductCode")
private String productCode;
}
|
[
"jtobiora@gmail.com"
] |
jtobiora@gmail.com
|
67283d682710a78a5c6862211fadeb4ce6256bad
|
1064c459df0c59a4fb169d6f17a82ba8bd2c6c1a
|
/trunk/bbs/src/service/cn/itcast/bbs/service/base/BaseService.java
|
fc8ebceae98532df754e9c82dca5a6f62d9e89f7
|
[] |
no_license
|
BGCX261/zju-svn-to-git
|
ad87ed4a95cea540299df6ce2d68b34093bcaef7
|
549378a9899b303cb7ac24a4b00da465b6ccebab
|
refs/heads/master
| 2021-01-20T05:53:28.829755
| 2015-08-25T15:46:49
| 2015-08-25T15:46:49
| 41,600,366
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,205
|
java
|
package cn.itcast.bbs.service.base;
import javax.annotation.Resource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import cn.itcast.bbs.dao.ConfigDao;
import cn.itcast.bbs.dao.UserDao;
import cn.itcast.bbs.dao.article.ArticleDao;
import cn.itcast.bbs.dao.article.AttachmentDao;
import cn.itcast.bbs.dao.article.CategoryDao;
import cn.itcast.bbs.dao.article.DeletedArticleDao;
import cn.itcast.bbs.dao.article.ForumDao;
import cn.itcast.bbs.dao.article.ReplyDao;
import cn.itcast.bbs.dao.article.TopicDao;
import cn.itcast.bbs.dao.article.VoteDao;
import cn.itcast.bbs.dao.article.VoteItemDao;
import cn.itcast.bbs.dao.article.VoteRecordDao;
import cn.itcast.bbs.dao.log.ExceptionLogDao;
import cn.itcast.bbs.dao.log.OperationLogDao;
import cn.itcast.bbs.dao.privilege.GroupDao;
import cn.itcast.bbs.dao.privilege.PermissionDao;
import cn.itcast.bbs.dao.privilege.PermissionGroupDao;
import cn.itcast.bbs.dao.privilege.RoleDao;
import cn.itcast.bbs.dao.search.ArticleIndexDao;
import cn.itcast.bbs.service.article.impl.CategoryServiceImpl;
/**
*
* @author 传智播客.汤阳光 Dec 15, 2008
*/
public abstract class BaseService {
protected static Log log = LogFactory.getLog(CategoryServiceImpl.class);
@Resource protected UserDao userDao;
@Resource protected ConfigDao configDao;
@Resource protected CategoryDao categoryDao;
@Resource protected ForumDao forumDao;
@Resource protected ArticleDao articleDao;
@Resource protected TopicDao topicDao;
@Resource protected ReplyDao replyDao;
@Resource protected AttachmentDao attachmentDao;
@Resource protected DeletedArticleDao deletedArticleDao;
@Resource protected VoteDao voteDao;
@Resource protected VoteItemDao voteItemDao;
@Resource protected VoteRecordDao voteRecordDao;
@Resource protected GroupDao groupDao;
@Resource protected RoleDao roleDao;
@Resource protected PermissionDao permissionDao;
@Resource protected PermissionGroupDao permissionGroupDao;
@Resource protected OperationLogDao operationLogDao;
@Resource protected ExceptionLogDao exceptionLogDao;
@Resource protected ArticleIndexDao articleIndexDao;
}
|
[
"you@example.com"
] |
you@example.com
|
d4637b1aa3be911d795a8ad723fc760954207442
|
5478fd6356e89dc0a8632319881b3396e840650c
|
/drools-core/src/main/java/org/drools/time/impl/ExpressionIntervalTimer.java
|
b92dff519d8fc69f11c6f945f3d9852cdd648599
|
[
"Apache-2.0"
] |
permissive
|
chrisdolan/drools
|
edb64f347746fffbe4691f37b5ce02600d82b2c1
|
69b0998cfc295f78840b635c30b97b4fae7c600e
|
refs/heads/master
| 2021-01-18T08:02:40.324841
| 2012-04-17T10:48:11
| 2012-04-17T10:48:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,922
|
java
|
/*
* Copyright 2010 JBoss 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 org.drools.time.impl;
import org.drools.WorkingMemory;
import org.drools.base.mvel.MVELObjectExpression;
import org.drools.common.InternalWorkingMemory;
import org.drools.runtime.Calendars;
import org.drools.spi.Activation;
import org.drools.time.TimeUtils;
import org.drools.time.Trigger;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.Date;
public class ExpressionIntervalTimer
implements
Timer,
Externalizable {
private Date startTime;
private Date endTime;
private int repeatLimit;
private MVELObjectExpression delay;
private MVELObjectExpression period;
public ExpressionIntervalTimer() {
}
public ExpressionIntervalTimer(Date startTime,
Date endTime,
int repeatLimit,
MVELObjectExpression delay,
MVELObjectExpression period) {
this.startTime = startTime;
this.endTime = endTime;
this.repeatLimit = repeatLimit;
this.delay = delay;
this.period = period;
}
public void writeExternal(ObjectOutput out) throws IOException {
out.writeObject( startTime );
out.writeObject( endTime );
out.writeInt( repeatLimit );
out.writeObject( delay );
out.writeObject( period );
}
public void readExternal(ObjectInput in) throws IOException,
ClassNotFoundException {
this.startTime = (Date) in.readObject();
this.endTime = (Date) in.readObject();
this.repeatLimit = in.readInt();
this.delay = (MVELObjectExpression) in.readObject();
this.period = (MVELObjectExpression) in.readObject();
}
public Date getStartTime() {
return startTime;
}
public Date getEndTime() {
return endTime;
}
public MVELObjectExpression getDelay() {
return delay;
}
public MVELObjectExpression getPeriod() {
return period;
}
public Trigger createTrigger( Activation item, WorkingMemory wm ) {
long timestamp = ((InternalWorkingMemory) wm).getTimerService().getCurrentTime();
String[] calendarNames = item.getRule().getCalendars();
Calendars calendars = ((InternalWorkingMemory) wm).getCalendars();
return new IntervalTrigger( timestamp,
this.startTime,
this.endTime,
this.repeatLimit,
delay != null ? evalDelay( item, wm ) : 0,
period != null ? evalPeriod( item, wm ) : 0,
calendarNames,
calendars );
}
private long evalPeriod( Activation item, WorkingMemory wm ) {
Object p = this.period.getValue( item.getTuple(), item.getRule(), wm );
if ( p instanceof Number ) {
return ((Number) p).longValue();
} else {
return TimeUtils.parseTimeString( p.toString() );
}
}
private long evalDelay(Activation item, WorkingMemory wm) {
Object d = this.delay.getValue( item.getTuple(), item.getRule(), wm );
if ( d instanceof Number ) {
return ((Number) d).longValue();
} else {
return TimeUtils.parseTimeString( d.toString() );
}
}
public Trigger createTrigger(long timestamp,
String[] calendarNames,
Calendars calendars) {
return new IntervalTrigger( timestamp,
this.startTime,
this.endTime,
this.repeatLimit,
0,
0,
calendarNames,
calendars );
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + delay.hashCode();
result = prime * result + ((endTime == null) ? 0 : endTime.hashCode());
result = prime * result + period.hashCode();
result = prime * result + repeatLimit;
result = prime * result + ((startTime == null) ? 0 : startTime.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if ( this == obj ) return true;
if ( obj == null ) return false;
if ( getClass() != obj.getClass() ) return false;
ExpressionIntervalTimer other = (ExpressionIntervalTimer) obj;
if ( delay != other.delay ) return false;
if ( repeatLimit != other.repeatLimit ) return false;
if ( endTime == null ) {
if ( other.endTime != null ) return false;
} else if ( !endTime.equals( other.endTime ) ) return false;
if ( period != other.period ) return false;
if ( startTime == null ) {
if ( other.startTime != null ) return false;
} else if ( !startTime.equals( other.startTime ) ) return false;
return true;
}
}
|
[
"mario.fusco@gmail.com"
] |
mario.fusco@gmail.com
|
dc8641f1e733bcf65930a6d816148856334895db
|
4875bb49ea87fa36faeae3ee80f97e6beaf7bae5
|
/meiling_android_mes.git/app/src/main/java/com/mingjiang/android/app/bean/MaterialList.java
|
9ebc98a265fdbf28dbaf43e573f63844a59873a1
|
[] |
no_license
|
zhangyoulai/ZongHeGuanLang
|
47f3b3fbaec80008d51b3a33d9848873e0637dc9
|
3520e8ff854523fd46e8f2a2eeda8992a52ef540
|
refs/heads/master
| 2021-01-19T11:45:57.338250
| 2017-04-10T06:23:01
| 2017-04-10T06:23:01
| 82,263,332
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 583
|
java
|
package com.mingjiang.android.app.bean;
/**
* Created by kouzeping on 2016/3/23.
* email:kouzeping@shmingjiang.org.cn
*
* {
"material_id": "12",物料编码
"alter_number": "12"退料数量
}
*/
public class MaterialList {
public String material_name;
public String material_id;
public int alter_number;
public MaterialList() {
}
public MaterialList(String material_name, String material_id, int alter_number) {
this.material_name = material_name;
this.material_id = material_id;
this.alter_number = alter_number;
}
}
|
[
"2865046990@qq.com"
] |
2865046990@qq.com
|
4f702efab6fb39391d38102bca5e3dd0ddd10eef
|
e12af772256dccc4f44224f68b7a3124673d9ced
|
/jitsi/src/net/java/sip/communicator/impl/protocol/jabber/extensions/coin/UserLanguagesPacketExtension.java
|
c82fe8b66ade74fbf0b6419c00daa66da9c42114
|
[] |
no_license
|
leshikus/dataved
|
bc2f17d9d5304b3d7c82ccb0f0f58c7abcd25b2a
|
6c43ab61acd08a25b21ed70432cd0294a5db2360
|
refs/heads/master
| 2021-01-22T02:33:58.915867
| 2016-11-03T08:35:22
| 2016-11-03T08:35:22
| 32,135,163
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,682
|
java
|
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.protocol.jabber.extensions.coin;
import java.util.*;
import org.jivesoftware.smack.packet.*;
import net.java.sip.communicator.impl.protocol.jabber.extensions.*;
/**
* User languages packet extension.
*
* @author Sebastien Vincent
*/
public class UserLanguagesPacketExtension
extends AbstractPacketExtension
{
/**
* The namespace that user languages belongs to.
*/
public static final String NAMESPACE = "";
/**
* The name of the element that contains the user languages data.
*/
public static final String ELEMENT_NAME = "languages";
/**
* The name of the element that contains the media data.
*/
public static final String ELEMENT_LANGUAGES = "stringvalues";
/**
* The list of languages separated by space.
*/
private String languages = null;
/**
* Constructor.
*/
public UserLanguagesPacketExtension()
{
super(NAMESPACE, ELEMENT_NAME);
}
/**
* Set languages.
*
* @param languages list of languages
*/
public void setLanguages(String languages)
{
this.languages = languages;
}
/**
* Get languages.
*
* @return languages
*/
public String getLanguages()
{
return languages;
}
/**
* Get an XML string representation.
*
* @return XML string representation
*/
@Override
public String toXML()
{
StringBuilder bldr = new StringBuilder();
bldr.append("<").append(getElementName()).append(" ");
if(getNamespace() != null)
bldr.append("xmlns='").append(getNamespace()).append("'");
//add the rest of the attributes if any
for(Map.Entry<String, String> entry : attributes.entrySet())
{
bldr.append(" ")
.append(entry.getKey())
.append("='")
.append(entry.getValue())
.append("'");
}
bldr.append(">");
if(languages != null)
{
bldr.append("<").append(ELEMENT_LANGUAGES).append(">").append(
languages).append("</").append(
ELEMENT_LANGUAGES).append(">");
}
for(PacketExtension ext : getChildExtensions())
{
bldr.append(ext.toXML());
}
bldr.append("</").append(getElementName()).append(">");
return bldr.toString();
}
}
|
[
"alexei.fedotov@917aa43a-1baf-11df-844d-27937797d2d2"
] |
alexei.fedotov@917aa43a-1baf-11df-844d-27937797d2d2
|
cd74744ec2e693974e88f25dec71b215ed9a50e9
|
527e6c527236f7a1f49800667a9331dc52c7eefa
|
/src/main/java/it/csi/siac/siacconsultazioneentitaapp/frontend/ui/util/datainfo/NumeroMovimentoGestioneTestataSubDataInfo.java
|
f6c618895428d1f3595f99631d7741c84b6362d7
|
[] |
no_license
|
unica-open/siacbilapp
|
4953a8519a839c997798c3d39e220f61c0bce2b6
|
bf2bf7d5609fe32cee2409057b811e5a6fa47a76
|
refs/heads/master
| 2021-01-06T14:57:26.105285
| 2020-03-03T17:01:19
| 2020-03-03T17:01:19
| 241,366,496
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,901
|
java
|
/*
*SPDX-FileCopyrightText: Copyright 2020 | CSI Piemonte
*SPDX-License-Identifier: EUPL-1.2
*/
package it.csi.siac.siacconsultazioneentitaapp.frontend.ui.util.datainfo;
/**
* @author Marchino Alessandro
* @version 1.0.0 - 13/03/2017
*
*/
public class NumeroMovimentoGestioneTestataSubDataInfo extends PopoverDataInfo {
/**
* Costruttore
* @param name il nome del campo
* @param dataPlacement il posizionamento del popover
* @param descrizioneMovimentoGestioneKey la descrizione dell'accertamento
* @param annoMovimentoGestioneKey l'anno dell'accertamento
* @param numeroMovimentoGestioneKey il numero dell'accertamento
* @param numeroSubMovimentoGestioneKey il numero del subaccertamento
* @param testataSub se sia un accertamento o un subaccertamento
*/
public NumeroMovimentoGestioneTestataSubDataInfo(String name, String dataPlacement,String descrizioneMovimentoGestioneKey, String annoMovimentoGestioneKey, String numeroMovimentoGestioneKey, String numeroSubMovimentoGestioneKey, String testataSub) {
super(name, "{0}", dataPlacement, "Descrizione", "%%NUM_MG%%", descrizioneMovimentoGestioneKey, annoMovimentoGestioneKey, numeroMovimentoGestioneKey, numeroSubMovimentoGestioneKey, testataSub);
}
@Override
protected String preProcessPattern(String pattern, Object[] argumentsObject) {
String patternNew = pattern;
// Il parametro numero 4 indica se sono ub accertamento o un sub
if(argumentsObject.length > 4 && "T".equals(argumentsObject[4])) {
patternNew = patternNew.replaceAll("%%NUM_MG%%", "{1,number,#}/{2,number,#}");
} else {
patternNew = patternNew.replaceAll("%%NUM_MG%%", "{1,number,#}/{2,number,#}-{3}");
}
for (int i = 0; i < argumentsObject.length; i++) {
Object o = argumentsObject[i];
if(o==null){
patternNew = patternNew.replaceAll("\\{"+i+"(.*?)\\}", getDefaultForNullValues());
}
}
return patternNew;
}
}
|
[
"michele.perdono@csi.it"
] |
michele.perdono@csi.it
|
a6108efd6d6a8868db30e7518f81e491968b9ed2
|
349bb12680991950c7686c336046d354d0e21836
|
/src/main/java/org/lecture/design/pattern/factory/factorymethod/pizzastore/order/BJOrderPizza.java
|
fa9e7af14ee57bc6427cbc5c545db50dbf24c1ec
|
[] |
no_license
|
kusebingtang/DesignPattern_Lecture
|
49b89c9de441e25d43179a11fb92e1b4d9b32447
|
f14693af54214a4c1f94259ea585e982f733aa81
|
refs/heads/master
| 2021-05-16T19:13:46.597198
| 2020-04-09T04:51:39
| 2020-04-09T04:51:39
| 250,434,921
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 724
|
java
|
package org.lecture.design.pattern.factory.factorymethod.pizzastore.order;
import org.lecture.design.pattern.factory.factorymethod.pizzastore.pizza.BJCheesePizza;
import org.lecture.design.pattern.factory.factorymethod.pizzastore.pizza.BJPepperPizza;
import org.lecture.design.pattern.factory.factorymethod.pizzastore.pizza.Pizza;
public class BJOrderPizza extends OrderPizza {
@Override
Pizza createPizza(String orderType) {
Pizza pizza = null;
if (orderType.equals("cheese")) {
pizza = new BJCheesePizza();
} else if (orderType.equals("pepper")) {
pizza = new BJPepperPizza();
}
// TODO Auto-generated method stub
return pizza;
}
}
|
[
"jb@98game.cn"
] |
jb@98game.cn
|
66473db8acc849277bf8c2bbeac8837a883f6dd3
|
35beca9a8466f19678f43a6a9ebe95eec0fb2963
|
/src/cn/com/yunqitong/test/SentMessage2Wx.java
|
3b6d51613d20cfcee36ac6ef319e4b82ea8783e2
|
[] |
no_license
|
chinadx/payServer
|
6e938a4dde4584e7e68cbfec0e31106145e6f06d
|
00578b4ab7ff43747f94ac950e79896a208447ce
|
refs/heads/master
| 2021-01-16T19:33:12.504564
| 2016-02-01T06:31:56
| 2016-02-01T06:31:56
| 50,765,036
| 0
| 0
| null | 2016-01-31T08:17:12
| 2016-01-31T08:17:12
| null |
UTF-8
|
Java
| false
| false
| 1,246
|
java
|
package cn.com.yunqitong.test;
import java.util.Iterator;
import java.util.Map;
import java.util.SortedMap;
import java.util.TreeMap;
import java.util.Map.Entry;
import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import org.junit.Test;
public class SentMessage2Wx {
@Test
public void t() {
/*String url = PropertyFactory.getProperty("WXADDR");
TOrderRecord record = new TOrderRecord();
record.setBody("CA");
record.setDetail("不知道");
try {
JAXBContext context = JAXBContext.newInstance(TOrderRecord.class);
Marshaller marshaller = context.createMarshaller();
marshaller.marshal(record, System.out);
// HttpsUtil.doPostXml(url, xml);
} catch (JAXBException e) {
e.printStackTrace();
}*/
}
@Test
public void get() {
SortedMap<Object, Object> parameters = new TreeMap<Object, Object>();
parameters.put("appid", "3434");
parameters.put("mch_id", "344534");
parameters.put("body", "346ghgh34");
parameters.put("nonce_str", "348934");
parameters.put("out_trade_no", "34uii34");
parameters.put("trade_type", "343rtrt4");
parameters.put("notify_url", "34ere34");
parameters.put("total_fee", "34erqewr34");
}
}
|
[
"18612045235@163.com"
] |
18612045235@163.com
|
0ae723ef59787c3ddb6d0a0907c90b0118207ecf
|
5e224ff6d555ee74e0fda6dfa9a645fb7de60989
|
/database/src/main/java/adila/db/on5xelteins.java
|
02524565ca9dbccf599dffb796bceb7d8ff24611
|
[
"MIT"
] |
permissive
|
karim/adila
|
8b0b6ba56d83f3f29f6354a2964377e6197761c4
|
00f262f6d5352b9d535ae54a2023e4a807449faa
|
refs/heads/master
| 2021-01-18T22:52:51.508129
| 2016-11-13T13:08:04
| 2016-11-13T13:08:04
| 45,054,909
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 234
|
java
|
// This file is automatically generated.
package adila.db;
/*
* Samsung Galaxy J5 Prime
*
* DEVICE: on5xelteins
* MODEL: SM-G570F
*/
final class on5xelteins {
public static final String DATA = "Samsung|Galaxy J5 Prime|";
}
|
[
"keldeeb@gmail.com"
] |
keldeeb@gmail.com
|
c84eb8e507cab3b1d6b2ea08e468f4d6d49e6f8b
|
4659c2c3e7d8f5e85d1b1248134fc9cf802a2a14
|
/RTDW-gmall-realtime/src/main/java/com/shangbaishuyao/gmall/realtime/bean/OrderDetail.java
|
5bc132e634b80338d79ba0bdef107663189b3a4c
|
[
"Apache-2.0"
] |
permissive
|
corersky/flink-learning-from-zhisheng
|
e68dfad1f91196d8cfeaaa0014fce7c55cb66847
|
9765eaee0e2cf49d2a925d8d55ebc069f9bdcda1
|
refs/heads/main
| 2023-05-14T07:12:49.610363
| 2021-06-06T15:21:17
| 2021-06-06T15:21:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 489
|
java
|
package com.shangbaishuyao.gmall.realtime.bean;
import lombok.Data;
import java.math.BigDecimal;
/**
* Author: 上白书妖
* Date: 2021/2/5
* Desc: 订单明细实体类
*/
@Data
public class OrderDetail {
Long id;
Long order_id ;
Long sku_id;
BigDecimal order_price ;
Long sku_num ;
String sku_name;
String create_time;
BigDecimal split_total_amount;
BigDecimal split_activity_amount;
BigDecimal split_coupon_amount;
Long create_ts;
}
|
[
"shangbaishuyao@163.com"
] |
shangbaishuyao@163.com
|
802aa4fa9b076260c0fc012150c2bd473171b076
|
660020c00ddb414ded5523ab93ebefffaacabfd4
|
/SDK/src/main/java/com/qiyei/sdk/server/core/CoreWakeUpService.java
|
906bd016e6121dc6b3b087270054819a1fe1f15e
|
[] |
no_license
|
1296695625/EssayJoke
|
202fe93f539745334ea9f67b36a9f3971f66bf02
|
bcb7da2e79d2506006d71f44c75564576d32e2c4
|
refs/heads/master
| 2020-04-09T06:50:25.325200
| 2018-11-23T03:40:24
| 2018-11-23T03:40:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,395
|
java
|
package com.qiyei.sdk.server.core;
import android.annotation.TargetApi;
import android.app.Notification;
import android.app.job.JobInfo;
import android.app.job.JobParameters;
import android.app.job.JobScheduler;
import android.app.job.JobService;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import com.qiyei.sdk.common.RuntimeEnv;
import com.qiyei.sdk.log.LogManager;
import static com.qiyei.sdk.common.RuntimeEnv.serviceAlive;
/**
* Email: 1273482124@qq.com
* Created by qiyei2015 on 2017/6/23.
* Version: 1.0
* Description:
*/
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public class CoreWakeUpService extends JobService {
private static final String TAG = CoreWakeUpService.class.getSimpleName();
private final int jobWakeUpId = 1;
@Override
public void onCreate() {
super.onCreate();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O){
LogManager.i(TAG,"startForeground");
startForeground(1,new Notification());
}
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
JobInfo.Builder builder = new JobInfo.Builder(jobWakeUpId,
new ComponentName(this,CoreWakeUpService.class));
builder.setPeriodic(1000); //1秒
JobScheduler jobScheduler = (JobScheduler) getSystemService(Context.JOB_SCHEDULER_SERVICE);
jobScheduler.schedule(builder.build());
return START_STICKY;
}
@Override
public boolean onStartJob(JobParameters params) {
// 开启定时任务,定时轮寻 , 看MessageService有没有被杀死
// 如果杀死了启动 轮寻onStartJob
// 判断服务有没有在运行
boolean alive = RuntimeEnv.serviceAlive(CoreService.class.getName());
if(!alive){
//startService Android 8.0以上不支持启动在后台的service
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.N_MR1){
startForegroundService(new Intent(this,CoreService.class));
}else {
startService(new Intent(this,CoreService.class));
}
LogManager.i(TAG,"startService CoreService");
}
return false;
}
@Override
public boolean onStopJob(JobParameters params) {
return false;
}
}
|
[
"1273482124@qq.com"
] |
1273482124@qq.com
|
5943e0b25ebe7d37d6ba5ea5612700693004d10e
|
45d79816326381fef81a1f5ef852b6a9f9610b92
|
/sso-client-demo/sso-client-shiro-demo/src/main/java/com/toceansoft/cas/shiro/client/demo/confg/ClientConfiguration.java
|
fd7b4c3c1e918b86fa6041132ed23c23329c0db0
|
[
"MIT"
] |
permissive
|
pologood/toceansoft-cas
|
8a26c412fa42a6dc266f85e6158087da6ce1317b
|
3de98181b68ab971d222bd89502ab516f5e51f92
|
refs/heads/master
| 2021-01-06T14:15:03.870538
| 2018-11-06T11:38:53
| 2018-11-06T11:38:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,675
|
java
|
/*
* 版权所有.(c)2010-2018. 拓胜科技
*/
package com.toceansoft.cas.shiro.client.demo.confg;
import com.toceansoft.cas.shiro.client.demo.confg.pros.GithubProperties;
import com.toceansoft.cas.shiro.client.demo.core.ClientStrategy;
import com.toceansoft.cas.shiro.client.demo.core.ClientStrategyFactory;
import com.toceansoft.cas.shiro.client.demo.core.PrincipalBindResolver;
import com.toceansoft.cas.shiro.client.demo.core.github.GitHubClientStrategy;
import com.toceansoft.cas.shiro.client.demo.core.github.GitHubMemoryPrincipalBindResolver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import java.util.HashMap;
import java.util.Map;
/**
* @author Narci.Lee
* @date 2018/10/8
* @since 1.0.0
*/
@Configuration
@Profile("dev")
public class ClientConfiguration {
@Autowired
private GithubProperties properties;
@Bean
protected ClientStrategyFactory clientStrategyFactory() {
Map<String, ClientStrategy> clientStrategyMap = new HashMap<>();
GitHubClientStrategy clientStrategy = new GitHubClientStrategy(bindResolver());
clientStrategyMap.put(clientStrategy.name(), clientStrategy);
return new ClientStrategyFactory(clientStrategyMap);
}
/**
* 绑定用户取决器
* @return
*/
@Bean
protected PrincipalBindResolver bindResolver() {
GitHubMemoryPrincipalBindResolver gitHubBinder = new GitHubMemoryPrincipalBindResolver(properties.getBindId());
return gitHubBinder;
}
}
|
[
"narci.ltc@toceansoft.com"
] |
narci.ltc@toceansoft.com
|
8b9d9c37c506c8500980615bad9a168c52e91ea5
|
d6975c7340f2eb05ead754d08fc839c0712e7101
|
/08-object/src/com/itutry/test/TernaryTest.java
|
50f3052b0edf28916f4f54758e48fce981ec9876
|
[] |
no_license
|
china-university-mooc/Java-Basics-Atguigu
|
5da9d1d9512b2ac8b431a2f241eabd4ad9edd60c
|
40d28ce5d421dee46de7d80e16a840bddc4b6b7a
|
refs/heads/master
| 2021-05-17T21:23:42.095525
| 2020-07-05T11:55:51
| 2020-07-05T11:55:51
| 250,959,175
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 344
|
java
|
package com.itutry.test;
import org.junit.Test;
public class TernaryTest {
@Test
public void test1() {
Object o1 = true ? new Integer(1) : new Double(2.0);
System.out.println(o1);
}
@Test
public void test2() {
Object o2;
if (true) {
o2 = new Integer(1);
} else {
o2 = new Double(2.0);
}
System.out.println();
}
}
|
[
"zhaozhang@thoughtworks.com"
] |
zhaozhang@thoughtworks.com
|
f74b81a72afae34b01099d25678cb4a37896cbff
|
e4b6315f4adcbe85b45156b1a6636c6377a633cd
|
/java11/src/main/java/java.xml/com/sun/org/apache/bcel/internal/generic/I2B.java
|
5f60143507ac4a90eb66bbc1288c3505df4df442
|
[] |
no_license
|
sunxiongkun/jdk-source
|
48f0664d50f8c63e6f92eb1bb643e3ed452f99ee
|
068e4867e17e5a965703d2edf561781b4f7b22a2
|
refs/heads/master
| 2020-04-15T01:56:30.872418
| 2019-01-07T02:33:58
| 2019-01-07T02:33:58
| 164,297,232
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,897
|
java
|
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* 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 com.sun.org.apache.bcel.internal.generic;
/**
* I2B - Convert int to byte
* <PRE>Stack: ..., value -> ..., result</PRE>
*
* @version $Id: I2B.java 1747278 2016-06-07 17:28:43Z britter $
*/
public class I2B extends ConversionInstruction {
/** Convert int to byte
*/
public I2B() {
super(com.sun.org.apache.bcel.internal.Const.I2B);
}
/**
* Call corresponding visitor method(s). The order is:
* Call visitor methods of implemented interfaces first, then
* call methods according to the class hierarchy in descending order,
* i.e., the most specific visitXXX() call comes last.
*
* @param v Visitor object
*/
@Override
public void accept( final Visitor v ) {
v.visitTypedInstruction(this);
v.visitStackProducer(this);
v.visitStackConsumer(this);
v.visitConversionInstruction(this);
v.visitI2B(this);
}
}
|
[
"sunxiongkun2018@163.com"
] |
sunxiongkun2018@163.com
|
7dcdd34bbd4f0b95840b48b1d30dba5384d3e196
|
791265898121d8a17e8d2c2eeb1f9a61afa69385
|
/bancol_avaluos/src/main/java/com/helio4/bancol/avaluos/servicio/datos/FotografiaService.java
|
d77e61577f03e0e89ef1cfdaa362d5c48c7f9ac4
|
[] |
no_license
|
jarivera94/spring
|
2309f0520294927c5a5b31f16115a424d036b945
|
b180131f7396dbe0a72af10f6fff16dae417ca3f
|
refs/heads/master
| 2020-04-05T00:44:20.775243
| 2018-11-06T15:54:51
| 2018-11-06T15:54:51
| 116,262,012
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,172
|
java
|
package com.helio4.bancol.avaluos.servicio.datos;
import java.util.List;
import com.helio4.bancol.avaluos.servicio.excepciones.FotografiaNotFoundException;
import org.springframework.stereotype.Service;
import com.helio4.bancol.avaluos.dto.FotografiaDTO;
@Service
public interface FotografiaService {
/**
* Crea un nuevo fotografia.
*
* @param fotografiaDTO
* La información del nuevo fotografia.
* @return El valuo creado
*/
public FotografiaDTO crear(FotografiaDTO fotografiaDTO);
/**
* Crea un nuevo anexo.
*
* @param fotografiaDTO
* La información del nuevo anexo.
* @return El valuo creado
*/
public FotografiaDTO crearAnexo(FotografiaDTO fotografiaDTO);
/**
* Crea un nuevo croquis.
*
* @param fotografiaDTO
* La información del nuevo croquis.
* @return El valuo creado
*/
public FotografiaDTO crearCroquis(FotografiaDTO fotografiaDTO);
/**
* Elimina el fotografia
*
* @param fotografiaId
* El identificador del fotografia que se va a eliminar.
* @throws FotografiaNotFoundException
* Si el fotografia no existe.
* @return El fotografia que se eliminó.
*/
public FotografiaDTO eliminar(Long fotografiaId)
throws FotografiaNotFoundException;
/**
* Elimina el anexo
*
* @param anexoId
* El identificador del anexo que se va a eliminar.
* @throws FotografiaNotFoundException
* Si el anexo no existe.
* @return El anexo que se eliminó.
*/
public FotografiaDTO eliminarAnexo(Long anexoId)
throws FotografiaNotFoundException;
/**
* Elimina el croquis
*
* @param croquisId
* El identificador del croquis que se va a eliminar.
* @throws FotografiaNotFoundException
* Si el croquis no existe.
* @return El croquis que se eliminó.
*/
public FotografiaDTO eliminarCroquis(Long anexoId)
throws FotografiaNotFoundException;
/**
* Encuentra todos los fotografias.
*
* @return Una lista con todos los fotografias.
*/
public List<FotografiaDTO> encontrarTodos();
/**
* Encuentra el fotografia por el identificador.
*
* @param id
* El identificador del fotografia que se quiere encontrar.
* @return
*/
public FotografiaDTO encontrarPorId(Long id);
/**
* Retorna las fotografias del avaluo (Inicialización perezosa manual)
*
* @param avaluo
* @return
*/
public List<FotografiaDTO> buscarFotografiasAvaluo(Long avaluoId);
/**
* Retorna los anexos del avaluo (Inicialización perezosa manual)
*
* @param avaluo
* @return
*/
public List<FotografiaDTO> buscarAnexosAvaluo(Long avaluoId);
/**
* Retorna los croquis del avaluo (Inicialización perezosa manual)
*
* @param avaluo
* @return
*/
public List<FotografiaDTO> buscarCroquisAvaluo(Long avaluoId);
/**
* Actualiza la información de un fotografia.
*
* @param actualizado
* La información del fotografia actualizado
* @return El avaluuo actualizado
* @throws FotografiaNotFoundException
* Si no hay un fotografia con el id dado.
*/
public FotografiaDTO actualizar(FotografiaDTO actualizado)
throws FotografiaNotFoundException;
/**
* Actualiza la información de un anexo.
*
* @param actualizado
* La información del anexo actualizado
* @return El avaluo actualizado
* @throws FotografiaNotFoundException
* Si no hay un fotografia con el id dado.
*/
public FotografiaDTO actualizarAnexo(FotografiaDTO actualizado)
throws FotografiaNotFoundException;
/**
* Actualiza la información de un croquis.
*
* @param actualizado
* La información del croquis actualizado
* @return El avaluo actualizado
* @throws FotografiaNotFoundException
* Si no hay un croquis con el id dado.
*/
public FotografiaDTO actualizarCroquis(FotografiaDTO actualizado)
throws FotografiaNotFoundException;
/**
* Guarda la ruta de la fotografia que se pasa como parametro
*
* @param fotografiaDTO
* @return
*/
public FotografiaDTO guardarRutaFotografia(FotografiaDTO fotografiaDTO)
throws FotografiaNotFoundException;
/**
* Guarda la ruta del anexo que se pasa como parametro
*
* @param fotografiaDTO
* @return
*/
public FotografiaDTO guardarRutaAnexo(FotografiaDTO fotografiaDTO)
throws FotografiaNotFoundException;
/**
* Guarda la ruta del croquis que se pasa como parametro
*
* @param fotografiaDTO
* @return
*/
public FotografiaDTO guardarRutaCroquis(FotografiaDTO fotografiaDTO)
throws FotografiaNotFoundException;
}
|
[
"jrivera@koghi.com"
] |
jrivera@koghi.com
|
8653ef04186b9fc39292cb68a4edf8949ad6e913
|
68f4e86658b037b71270cb57527b4691afdcd880
|
/src/main/java/com/qgailab/raftkv/exception/RaftRemotingException.java
|
f38bc17a81b5f92b5d191a91f8c6f95ae7adef0f
|
[] |
no_license
|
linux5396/raft-kv
|
7ede46fbd7b5acaae4fe3f5abe6bb2d545268fd2
|
05ba9b774a0f7eb3c3390c2da5a6d9d4fff1f4d1
|
refs/heads/master
| 2022-08-08T22:08:25.535640
| 2020-01-19T07:22:41
| 2020-01-19T07:22:41
| 234,613,215
| 21
| 7
| null | 2022-06-17T02:52:57
| 2020-01-17T18:39:38
|
Java
|
UTF-8
|
Java
| false
| false
| 247
|
java
|
package com.qgailab.raftkv.exception;
public class RaftRemotingException extends RuntimeException {
public RaftRemotingException() {
super();
}
public RaftRemotingException(String message) {
super(message);
}
}
|
[
"929159338@qq.com"
] |
929159338@qq.com
|
db24a7222744368d363f4b30a478fe1c7061f8da
|
29d1d260cc822b0c0281482d151331d92996ec89
|
/app/src/main/java/com/partnerx/roboth_server/HelpActivity.java
|
edde2613c0ea4573d3f2afda51d7d34e09a9b64a
|
[] |
no_license
|
guanqingguang0914/GroupCortorl_H_Server
|
35e195320b048087a54c492515b66e68de647e45
|
0461c3bb1a652b4108ec5081a170c4bb4f1ab2e0
|
refs/heads/master
| 2023-09-01T10:07:57.845317
| 2018-12-05T05:21:28
| 2018-12-05T05:21:28
| 160,465,142
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,963
|
java
|
package com.partnerx.roboth_server;
import android.app.Activity;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ScrollView;
import android.widget.TextView;
public class HelpActivity extends Activity {
private ImageView back;
private ScrollView scrollView;
private TextView help;
private TextView title;
// /////总图
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_help);
scrollView = (ScrollView) findViewById(R.id.scrollViewH);
help = (TextView) findViewById(R.id.helpH);
title = (TextView) findViewById(R.id.titleH);;
String titleStr = getString(R.string.help1);
String str = null;
try {
str = " "+getString(R.string.help2)+ " \n"+
" "+ getString(R.string.help3)+ " \n"+
" "+ getString(R.string.help4)+ " \n"+
" "+ getString(R.string.help5)+ " \n"+
" "+ getString(R.string.help6)+ " \n"+
" "+ getString(R.string.help7)+ " \n"+
" "+ getString(R.string.help8) + " \n"+" \n"+
" " + getPackageManager().getPackageInfo(this.getPackageName(),0).versionName;
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
title.setText(titleStr);
help.setText(str);
titleStr = null;
str = null;
back = (ImageView) findViewById(R.id.backH);
back.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
finish();
}
});
}
protected void onDestroy() {
super.onDestroy();
finish();
}
}
|
[
"guanqingguang0914@163.com"
] |
guanqingguang0914@163.com
|
b1d0994eb5b0b8aa735dd2f7b4c2db9266c418e1
|
a9a4a49505040c2dbf0c3ed1ee8e8b4c38380e72
|
/spring-aot/src/test/java/org/springframework/aot/context/bootstrap/generator/infrastructure/nativex/NativeSerializationEntryTests.java
|
ab6c3f9b29e33920f0a0a9e9f37d6cbea2433412
|
[
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] |
permissive
|
saki-osive/spring-native
|
bf9b798b259f8991718b77702c74fab4b7e5c347
|
32dbf6190ed6ad90dd638f5fdcb3b6e826fd75e4
|
refs/heads/main
| 2023-08-26T05:30:05.882182
| 2021-11-07T02:00:23
| 2021-11-07T02:00:23
| 425,388,113
| 0
| 0
|
Apache-2.0
| 2021-11-07T01:36:10
| 2021-11-07T01:36:09
| null |
UTF-8
|
Java
| false
| false
| 2,022
|
java
|
/*
* Copyright 2019-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.aot.context.bootstrap.generator.infrastructure.nativex;
import org.junit.jupiter.api.Test;
import org.springframework.nativex.domain.serialization.SerializationDescriptor;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
/**
* Tests for {@link NativeSerializationEntry}.
*
* @author Sebastien Deleuze
*/
public class NativeSerializationEntryTests {
@Test
void ofTypeWithNull() {
assertThatIllegalArgumentException().isThrownBy(() -> NativeSerializationEntry.ofType(null));
}
@Test
void contributeType() {
SerializationDescriptor serializationDescriptor = new SerializationDescriptor();
NativeSerializationEntry.ofType(String.class).contribute(serializationDescriptor);
assertThat(serializationDescriptor.getSerializableTypes()).singleElement().isEqualTo(String.class.getName());
}
@Test
void ofTypeNameWithNull() {
assertThatIllegalArgumentException().isThrownBy(() -> NativeSerializationEntry.ofTypeName(null));
}
@Test
void contributeTypeName() {
SerializationDescriptor serializationDescriptor = new SerializationDescriptor();
NativeSerializationEntry.ofTypeName(String.class.getName()).contribute(serializationDescriptor);
assertThat(serializationDescriptor.getSerializableTypes()).singleElement().isEqualTo(String.class.getName());
}
}
|
[
"snicoll@vmware.com"
] |
snicoll@vmware.com
|
1504f2db1a6cd6615e475f5e47e9d4cfa9ed12f0
|
9f204342f63c82b26908792c84144d80c67911cc
|
/src/org/omg/WorkflowModel/_WfResourceImplBase.java
|
98852a03f1a6107eae272a41ef818d2e18e13487
|
[] |
no_license
|
kinnara-digital-studio/shark
|
eaada7bbb4ba976e1c876defdcab9d5ee15b81eb
|
7abf690837152da11ddda360ad2436ec68c7bdb4
|
refs/heads/master
| 2023-03-16T07:27:02.867938
| 2013-05-05T13:12:25
| 2013-05-05T13:12:25
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 5,708
|
java
|
package org.omg.WorkflowModel;
/**
* org/omg/WorkflowModel/_WfResourceImplBase.java .
* 由 IDL-to-Java 编译器(可移植),版本 "3.2" 生成
* 来自 WorkflowModel.idl
* 2009年2月3日 星期二 下午05时32分29秒 CST
*/
public abstract class _WfResourceImplBase extends org.omg.CORBA.portable.ObjectImpl
implements org.omg.WorkflowModel.WfResource, org.omg.CORBA.portable.InvokeHandler
{
// Constructors
public _WfResourceImplBase ()
{
}
private static java.util.Hashtable _methods = new java.util.Hashtable ();
static
{
_methods.put ("how_many_work_item", new java.lang.Integer (0));
_methods.put ("get_iterator_work_item", new java.lang.Integer (1));
_methods.put ("get_sequence_work_item", new java.lang.Integer (2));
_methods.put ("is_member_of_work_items", new java.lang.Integer (3));
_methods.put ("resource_key", new java.lang.Integer (4));
_methods.put ("resource_name", new java.lang.Integer (5));
_methods.put ("release", new java.lang.Integer (6));
}
public org.omg.CORBA.portable.OutputStream _invoke (String $method,
org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler $rh)
{
org.omg.CORBA.portable.OutputStream out = null;
java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
if (__method == null)
throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
switch (__method.intValue ())
{
case 0: // WorkflowModel/WfResource/how_many_work_item
{
try {
int $result = (int)0;
$result = this.how_many_work_item ();
out = $rh.createReply();
out.write_long ($result);
} catch (org.omg.WfBase.BaseException $ex) {
out = $rh.createExceptionReply ();
org.omg.WfBase.BaseExceptionHelper.write (out, $ex);
}
break;
}
case 1: // WorkflowModel/WfResource/get_iterator_work_item
{
try {
org.omg.WorkflowModel.WfAssignmentIterator $result = null;
$result = this.get_iterator_work_item ();
out = $rh.createReply();
org.omg.WorkflowModel.WfAssignmentIteratorHelper.write (out, $result);
} catch (org.omg.WfBase.BaseException $ex) {
out = $rh.createExceptionReply ();
org.omg.WfBase.BaseExceptionHelper.write (out, $ex);
}
break;
}
case 2: // WorkflowModel/WfResource/get_sequence_work_item
{
try {
int max_number = in.read_long ();
org.omg.WorkflowModel.WfAssignment $result[] = null;
$result = this.get_sequence_work_item (max_number);
out = $rh.createReply();
org.omg.WorkflowModel.WfAssignmentSequenceHelper.write (out, $result);
} catch (org.omg.WfBase.BaseException $ex) {
out = $rh.createExceptionReply ();
org.omg.WfBase.BaseExceptionHelper.write (out, $ex);
}
break;
}
case 3: // WorkflowModel/WfResource/is_member_of_work_items
{
try {
org.omg.WorkflowModel.WfAssignment member = org.omg.WorkflowModel.WfAssignmentHelper.read (in);
boolean $result = false;
$result = this.is_member_of_work_items (member);
out = $rh.createReply();
out.write_boolean ($result);
} catch (org.omg.WfBase.BaseException $ex) {
out = $rh.createExceptionReply ();
org.omg.WfBase.BaseExceptionHelper.write (out, $ex);
}
break;
}
case 4: // WorkflowModel/WfResource/resource_key
{
try {
String $result = null;
$result = this.resource_key ();
out = $rh.createReply();
out.write_wstring ($result);
} catch (org.omg.WfBase.BaseException $ex) {
out = $rh.createExceptionReply ();
org.omg.WfBase.BaseExceptionHelper.write (out, $ex);
}
break;
}
case 5: // WorkflowModel/WfResource/resource_name
{
try {
String $result = null;
$result = this.resource_name ();
out = $rh.createReply();
out.write_wstring ($result);
} catch (org.omg.WfBase.BaseException $ex) {
out = $rh.createExceptionReply ();
org.omg.WfBase.BaseExceptionHelper.write (out, $ex);
}
break;
}
case 6: // WorkflowModel/WfResource/release
{
try {
org.omg.WorkflowModel.WfAssignment from_assigment = org.omg.WorkflowModel.WfAssignmentHelper.read (in);
String release_info = in.read_wstring ();
this.release (from_assigment, release_info);
out = $rh.createReply();
} catch (org.omg.WfBase.BaseException $ex) {
out = $rh.createExceptionReply ();
org.omg.WfBase.BaseExceptionHelper.write (out, $ex);
} catch (org.omg.WorkflowModel.NotAssigned $ex) {
out = $rh.createExceptionReply ();
org.omg.WorkflowModel.NotAssignedHelper.write (out, $ex);
}
break;
}
default:
throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
}
return out;
} // _invoke
// Type-specific CORBA::Object operations
private static String[] __ids = {
"IDL:omg.org/WorkflowModel/WfResource:1.0",
"IDL:omg.org/WfBase/BaseBusinessObject:1.0"};
public String[] _ids ()
{
return (String[])__ids.clone ();
}
} // class _WfResourceImplBase
|
[
"classic1999@sina.com"
] |
classic1999@sina.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.