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
64199a2cc77f8261bd855eeffec6c60cc9f23fec
9673cdbd0ade399da78650c169fe5921d171d40e
/eventuate-client-java-common-impl/src/main/java/io/eventuate/javaclient/commonimpl/schemametadata/EventSchemaMetadataManagerImpl.java
722d323afed25ca3955bff4543b6bdd19262dd3c
[ "Apache-2.0" ]
permissive
dialtahi/eventuate-client-java
242d53816a0e974c5fc13d342d6bf4ac709790c9
62b8ae6f41894b582429704467325076a236a485
refs/heads/master
2020-09-05T13:04:32.728794
2019-11-07T00:17:12
2019-11-07T00:24:06
220,113,918
0
0
NOASSERTION
2019-11-07T00:04:09
2019-11-07T00:04:08
null
UTF-8
Java
false
false
1,480
java
package io.eventuate.javaclient.commonimpl.schemametadata; import io.eventuate.javaclient.commonimpl.EventIdTypeAndData; import java.util.List; import java.util.Optional; import static java.util.stream.Collectors.toList; public class EventSchemaMetadataManagerImpl implements EventSchemaMetadataManager { @Override public Optional<String> currentVersion(Class clasz) { throw new UnsupportedOperationException(); } @Override public List<EventIdTypeAndData> upcastEvents(Class clasz, List<EventIdTypeAndData> events) { Optional<String> possibleVersion = currentVersion(clasz); if (possibleVersion.isPresent()) { return events.stream().map(event -> maybeUpcast(clasz, possibleVersion.get(), event)).collect(toList()); } else { return events; } } private EventIdTypeAndData maybeUpcast(Class clasz, String latestVersion, EventIdTypeAndData event) { return eventVersion(event).map(currentVersion -> needsUpcast(latestVersion, currentVersion) ? upcast(event, latestVersion, currentVersion) : event).orElse(event); } private EventIdTypeAndData upcast(EventIdTypeAndData event, String latestVersion, String actualVersion) { throw new UnsupportedOperationException(); } private Optional<String> eventVersion(EventIdTypeAndData event) { throw new UnsupportedOperationException(); } private boolean needsUpcast(String latestVersion, String currentVersion) { throw new UnsupportedOperationException(); } }
[ "chris@chrisrichardson.net" ]
chris@chrisrichardson.net
3931bddeee17d977ad5f02c5bd6ec3424f493584
a6fc9dec68a1ccc5a874a7c5f221553c4313d6da
/library/src/main/java/io/netopen/hotbitmapgg/library/view/SpeedView.java
4202ff5662a5c796ac2ff7e1d8250f50a872a2fa
[]
no_license
HotBitmapGG/SpeedView
035b23f7c0f51d444ff5acddac1a57e3279360cb
f82eb6f3850469afd8990f54dd56abad5a4a1790
refs/heads/master
2021-01-20T17:21:10.402894
2016-08-23T15:37:34
2016-08-23T15:37:34
64,356,154
0
0
null
null
null
null
UTF-8
Java
false
false
655
java
package io.netopen.hotbitmapgg.library.view; import android.content.Context; import android.util.AttributeSet; import android.view.View; /** * Created by hcc on 16/7/25 20:08 * 100332338@qq.com * <p/> * 一个内存加速的View */ public class SpeedView extends View { public SpeedView(Context context) { this(context, null); } public SpeedView(Context context, AttributeSet attrs) { this(context, attrs, 0); } public SpeedView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); init(); } private void init() { } }
[ "100332338@qq.com" ]
100332338@qq.com
ca9aa0c00b0453ae60ed430d4188cd46f0c511d6
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
/google/cloud/aiplatform/v1/google-cloud-aiplatform-v1-java/proto-google-cloud-aiplatform-v1-java/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesRequestOrBuilder.java
66edeaeadce0bea6a4399691dc630632bdb45fe5
[ "Apache-2.0" ]
permissive
oltoco/googleapis-gen
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
refs/heads/master
2023-07-17T22:11:47.848185
2021-08-29T20:39:47
2021-08-29T20:39:47
null
0
0
null
null
null
null
UTF-8
Java
false
true
3,491
java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/aiplatform/v1/migration_service.proto package com.google.cloud.aiplatform.v1; public interface BatchMigrateResourcesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.BatchMigrateResourcesRequest) com.google.protobuf.MessageOrBuilder { /** * <pre> * Required. The location of the migrated resource will live in. * Format: `projects/{project}/locations/{location}` * </pre> * * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** * <pre> * Required. The location of the migrated resource will live in. * Format: `projects/{project}/locations/{location}` * </pre> * * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); /** * <pre> * Required. The request messages specifying the resources to migrate. * They must be in the same location as the destination. * Up to 50 resources can be migrated in one batch. * </pre> * * <code>repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ java.util.List<com.google.cloud.aiplatform.v1.MigrateResourceRequest> getMigrateResourceRequestsList(); /** * <pre> * Required. The request messages specifying the resources to migrate. * They must be in the same location as the destination. * Up to 50 resources can be migrated in one batch. * </pre> * * <code>repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.cloud.aiplatform.v1.MigrateResourceRequest getMigrateResourceRequests(int index); /** * <pre> * Required. The request messages specifying the resources to migrate. * They must be in the same location as the destination. * Up to 50 resources can be migrated in one batch. * </pre> * * <code>repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ int getMigrateResourceRequestsCount(); /** * <pre> * Required. The request messages specifying the resources to migrate. * They must be in the same location as the destination. * Up to 50 resources can be migrated in one batch. * </pre> * * <code>repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ java.util.List<? extends com.google.cloud.aiplatform.v1.MigrateResourceRequestOrBuilder> getMigrateResourceRequestsOrBuilderList(); /** * <pre> * Required. The request messages specifying the resources to migrate. * They must be in the same location as the destination. * Up to 50 resources can be migrated in one batch. * </pre> * * <code>repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.cloud.aiplatform.v1.MigrateResourceRequestOrBuilder getMigrateResourceRequestsOrBuilder( int index); }
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
1f5d29797001f37a9341190348e37beb5dfec33b
409287d0a58f58ca85185a94e564624c9dd87233
/gulimall-coupon/src/main/java/com/atguigu/gulimall/coupon/service/SkuBoundsService.java
8bb1f4b798a7bb16cd1eabaaeae22b9dff791679
[ "Apache-2.0" ]
permissive
xuan25575/guliMall
8f5c9ed90a4450234180fabcf0a0920b8a350517
6b295c0ad446d811062f5ba32f75cb156139fbaa
refs/heads/master
2022-12-22T05:32:13.382713
2020-09-24T08:14:37
2020-09-24T08:14:37
294,621,518
0
0
null
null
null
null
UTF-8
Java
false
false
471
java
package com.atguigu.gulimall.coupon.service; import com.baomidou.mybatisplus.extension.service.IService; import com.atguigu.common.utils.PageUtils; import com.atguigu.gulimall.coupon.entity.SkuBoundsEntity; import java.util.Map; /** * 商品spu积分设置 * * @author huang_2 * @email huang_2@gmail.com * @date 2020-09-12 00:23:05 */ public interface SkuBoundsService extends IService<SkuBoundsEntity> { PageUtils queryPage(Map<String, Object> params); }
[ "xuanyu.huang@hand-china.com" ]
xuanyu.huang@hand-china.com
b91f9f20ab7066307147aa214ef57adc103e47e9
18ca253fce5fa43cbaf94390654e2d295feaa846
/Java8/ex23/src/ex23.java
dfc8673cfa2e88b735fbf65c7ec29c5406b3afe4
[]
no_license
Sudarsan-Sridharan/LiveLessons
d3586c3cc6e62857ee8d6bdbe87b9efc1feb2344
f194f56ec10cf34a6f8975850afd59adb0f03ad0
refs/heads/master
2021-08-15T15:24:59.527934
2017-11-17T23:00:17
2017-11-17T23:00:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,263
java
import utils.RunTimer; import java.io.IOException; import java.util.*; import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Function; import java.util.function.Supplier; import java.util.stream.Stream; import static java.util.stream.Collectors.toList; import static utils.FuturesCollectorStream.toFuture; /** * This example shows the difference between calling join() on * intermediate completable futures (which block and thus degrade * performance) vs. simply making one call to join() (and thus * enhancing greater parallelism). These tests demonstrate why join() * shouldn't be used in a stream pipeline on a CompletableFuture that * hasn't completed since it may impede parallelism. */ public class ex23 { /** * A counter used to monotonically/atomically generate a new value * each time it's called. */ private static AtomicInteger mCounter = new AtomicInteger(0); /** * This supplier increments the atomic counter, sleeps for 1 * second, and then returns the incremented value. */ private static Supplier<Integer> mSupplier = () -> { int result = mCounter.incrementAndGet(); display("enter Supplier with value " + result); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } display("leave Supplier"); return result; }; /** * This function returns even numbers passed to it and null if an * odd number is passed to it. */ private static Function<Integer, Integer> mAction = i -> { display("enter Function with value " + i); display("leave Function"); return (i % 2) == 0 ? i : null; }; /** * Main entry point into the test program. */ public static void main (String[] argv) throws IOException { // A list of suppliers that return integers. List<Supplier<Integer>> suppliers = Arrays.asList(mSupplier, mSupplier, mSupplier, mSupplier); // Run a test that makes multiple blocking join calls on // completable futures. RunTimer.timeRun(() -> testManyJoins(suppliers), "testManyJoins()"); // Run a test that makes just one blocking join calls on // completable futures. RunTimer.timeRun(() -> testOneJoin(suppliers), "testOneJoin()"); // Print the results. System.out.println(RunTimer.getTimingResults()); } /** * This test makes multiple blocking join calls when processing a * list of completable futures. */ private static void testManyJoins(List<Supplier<Integer>> suppliers) { System.out.println(">>> testManyJoins()"); // A future to a stream of integer results. CompletableFuture<Stream<Integer>> resultsFuture = suppliers // Convert the list of suppliers into a stream of suppliers. .stream() // Run each supplier asynchronously. .map(CompletableFuture::supplyAsync) // Filter out any null results. join() causes the call to // block, demonstrating the limitations of trying to use // filter() in conjunction with completable futures. .filter(intFuture -> intFuture.thenApply(mAction).join() != null) // Trigger intermediate operations and return a future to // a stream of results. .collect(toFuture()); resultsFuture // When all the futures associated with resultsFuture // complete then display the results. .thenAccept(stream -> display("results = " + stream // Trigger intermediate processing and // return a list of results. .collect(toList()))) // Block caller until all processing is complete. .join(); System.out.println("<<< leave testManyJoins()"); } /** * This test makes just one blocking join call when processing a * list of completable futures. */ private static void testOneJoin(List<Supplier<Integer>> suppliers) { System.out.println(">>> enter testOneJoin()"); // A future to a stream of integer results. CompletableFuture<Stream<Integer>> resultFuture = suppliers // Convert the list of suppliers into a stream of suppliers. .stream() // Run each supplier asynchronously. .map(CompletableFuture::supplyAsync) // Asynchronously apply the action to the results of the // previous completion stage. .map(intFuture -> intFuture.thenApply(mAction)) // Trigger intermediate operations and return a future to // a stream of results. .collect(toFuture()); resultFuture // When all the futures associated with resultsFuture // complete then display the results. .thenAccept(stream -> display("results = " + stream // Filter out any null results. .filter(Objects::nonNull) // Trigger intermediate processing and // return a list of results. .collect(toList()))) // Block caller until all processing is complete. .join(); System.out.println("<<< leave testOneJoin()\n"); } /** * Display the {@code string} after prepending the thread id and * curren time. */ private static void display(String string) { System.out.println("[" + Thread.currentThread().getId() + ", " + System.currentTimeMillis() + "] " + string); } }
[ "d.schmidt@vanderbilt.edu" ]
d.schmidt@vanderbilt.edu
19e6afb4de991b2ad9e9ec17748c3c5b93920ac5
1c3f530595dbc4eb57a3e0494d351678fde0aa87
/src/main/java/com/geldopc/model/MediaEstimativaSelic.java
5f4ac4c3dfc0d14fea53c4b32168e6bae6487e5b
[]
no_license
geldopc/Prova-Anbima-BackEndApi
d67feaeb41e67d27deebce111a812c8fd8ef3594
7a532ef988188e3c132e97687a7ededd3fca4e3a
refs/heads/master
2022-05-29T16:44:45.360445
2019-09-25T04:02:53
2019-09-25T04:02:53
210,748,771
0
0
null
2022-05-20T21:10:11
2019-09-25T03:36:16
Java
UTF-8
Java
false
false
440
java
package com.geldopc.model; public class MediaEstimativaSelic { private int ano; private double media; public MediaEstimativaSelic(int ano, double media) { this.ano = ano; this.media = media; } public int getAno() { return ano; } public void setAno(int ano) { this.ano = ano; } public double getMedia() { return media; } public void setMedia(double media) { this.media = media; } }
[ "you@example.com" ]
you@example.com
55465b924f5e20ab20960112bd26819dcb5dd357
ed25deb423edcd8a63d767d5ca2110756f323aed
/TwoCartDemo/src/main/java/com/dhw/twocart/util/BaseApplication.java
7d44704349c6fdcab59268b8289ac75b321483a5
[]
no_license
1657895829/ShoppingCart
a879af7124bfa90a160b0c81be8b803deb914eb7
1edd5cdb56226c45e1ae733cd78c089814b897a3
refs/heads/master
2021-05-07T03:57:17.884385
2017-11-22T12:33:13
2017-11-22T12:33:13
111,035,364
0
0
null
null
null
null
UTF-8
Java
false
false
288
java
package com.dhw.twocart.util; import android.app.Application; //全局初始化Application类 public class BaseApplication extends Application { @Override public void onCreate() { super.onCreate(); //配置imageLoader ImageLoaderUtil.init(this); } }
[ "1657895829@qq.com" ]
1657895829@qq.com
49264ed2aca8c533ad395b983a349c02d692d8c3
13ac75e91402706e2e45777ce963635f823d629f
/src/compile/xap/lui/compile/ca/jdt/core/dom/ArrayInitializer.java
1b4020fae4054356eaf3569530912ac803dca661
[]
no_license
gufanyi/wdp
86085600062e6d42adcacaf46968854c8632ead1
9f69f798b799ab258ed57febad10495a65574c9a
refs/heads/master
2021-01-10T10:59:49.283794
2015-12-17T15:33:23
2015-12-17T15:33:23
47,962,667
0
0
null
null
null
null
UTF-8
Java
false
false
4,455
java
/******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package xap.lui.compile.ca.jdt.core.dom; import java.util.ArrayList; import java.util.List; /** * Array initializer AST node type. * * <pre> * ArrayInitializer: * <b>{</b> [ Expression { <b>,</b> Expression} [ <b>,</b> ]] <b>}</b> * </pre> * * @since 2.0 * @noinstantiate This class is not intended to be instantiated by clients. */ public class ArrayInitializer extends Expression { /** * The "expressions" structural property of this node type. * @since 3.0 */ public static final ChildListPropertyDescriptor EXPRESSIONS_PROPERTY = new ChildListPropertyDescriptor(ArrayInitializer.class, "expressions", Expression.class, CYCLE_RISK); //$NON-NLS-1$ /** * A list of property descriptors (element type: * {@link StructuralPropertyDescriptor}), * or null if uninitialized. */ private static final List PROPERTY_DESCRIPTORS; static { List properyList = new ArrayList(2); createPropertyList(ArrayInitializer.class, properyList); addProperty(EXPRESSIONS_PROPERTY, properyList); PROPERTY_DESCRIPTORS = reapPropertyList(properyList); } /** * Returns a list of structural property descriptors for this node type. * Clients must not modify the result. * * @param apiLevel the API level; one of the * <code>AST.JLS*</code> constants * @return a list of property descriptors (element type: * {@link StructuralPropertyDescriptor}) * @since 3.0 */ public static List propertyDescriptors(int apiLevel) { return PROPERTY_DESCRIPTORS; } /** * The list of expressions (element type: * <code>Expression</code>). Defaults to an empty list. */ private ASTNode.NodeList expressions = new ASTNode.NodeList(EXPRESSIONS_PROPERTY); /** * Creates a new AST node for an array initializer owned by the * given AST. By default, the list of expressions is empty. * * @param ast the AST that is to own this node */ ArrayInitializer(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors(apiLevel); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalGetChildListProperty(ChildListPropertyDescriptor property) { if (property == EXPRESSIONS_PROPERTY) { return expressions(); } // allow default implementation to flag the error return super.internalGetChildListProperty(property); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final int getNodeType0() { return ARRAY_INITIALIZER; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { ArrayInitializer result = new ArrayInitializer(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.expressions().addAll(ASTNode.copySubtrees(target, expressions())); return result; } /* (omit javadoc for this method) * Method declared on ASTNode. */ final boolean subtreeMatch0(ASTMatcher matcher, Object other) { // dispatch to correct overloaded match method return matcher.match(this, other); } /* (omit javadoc for this method) * Method declared on ASTNode. */ void accept0(ASTVisitor visitor) { boolean visitChildren = visitor.visit(this); if (visitChildren) { acceptChildren(visitor, this.expressions); } visitor.endVisit(this); } /** * Returns the live ordered list of expressions in this array initializer. * * @return the live list of expressions * (element type: <code>Expression</code>) */ public List expressions() { return this.expressions; } /* (omit javadoc for this method) * Method declared on ASTNode. */ int memSize() { return BASE_NODE_SIZE + 1 * 4; } /* (omit javadoc for this method) * Method declared on ASTNode. */ int treeSize() { return memSize() + this.expressions.listSize(); } }
[ "303240304@qq.com" ]
303240304@qq.com
cef287b4c8eeeca562b436ffed4bb53ac3dbe377
76cc850c1cf37cb6629f1bc2a877e75ae6df280a
/primitives/src/main/java/io/atomix/primitives/lock/DistributedLock.java
3f088c92b073df4607bea5035a649c580f9c6be2
[ "Apache-2.0" ]
permissive
mapbased/atomix
63aea3959151c39dc3d1bb5589b554f8de39a681
61063469c4cd447d13eb8b7068d6a3fdec7a6779
refs/heads/master
2021-01-12T08:54:44.566577
2017-11-15T09:16:24
2017-11-15T09:16:24
76,713,439
0
0
null
2017-11-15T09:16:25
2016-12-17T08:46:55
Java
UTF-8
Java
false
false
1,542
java
/* * Copyright 2017-present Open Networking Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.atomix.primitives.lock; import io.atomix.primitives.SyncPrimitive; import io.atomix.time.Version; import java.time.Duration; import java.util.Optional; /** * Asynchronous lock primitive. */ public interface DistributedLock extends SyncPrimitive { @Override default Type primitiveType() { return Type.LOCK; } /** * Acquires the lock, blocking until it's available. * * @return the acquired lock version */ Version lock(); /** * Attempts to acquire the lock. * * @return indicates whether the lock was acquired */ Optional<Version> tryLock(); /** * Attempts to acquire the lock for a specified amount of time. * * @param timeout the timeout after which to give up attempting to acquire the lock * @return indicates whether the lock was acquired */ Optional<Version> tryLock(Duration timeout); /** * Unlocks the lock. */ void unlock(); }
[ "jordan.halterman@gmail.com" ]
jordan.halterman@gmail.com
d3eeadf4f66260de472851b558007115ef5c1540
0fe59b1dfb5cf2454cef805da2804b2d3e52f742
/bee-platform-system/platform-dinasdatadriver/src/main/java/com/bee/platform/dinas/datadriver/dao/mapper/DinasPurchaseOrderDetailMapper.java
269df2a00bb470996dc1901630e1a316fbd1ff78
[]
no_license
wensheng930729/platform
f75026113a841e8541017c364d30b80e94d6ad5c
49c57f1f59b1e2e2bcc2529fdf6cb515d38ab55c
refs/heads/master
2020-12-11T13:58:59.772611
2019-12-16T06:02:40
2019-12-16T06:02:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
637
java
package com.bee.platform.dinas.datadriver.dao.mapper; import com.bee.platform.dinas.datadriver.dto.DinasPurchaseOrderDetailDTO; import com.bee.platform.dinas.datadriver.entity.DinasPurchaseOrderDetail; import com.baomidou.mybatisplus.mapper.BaseMapper; import java.util.List; /** * <p> * 采购合同明细 Mapper 接口 * </p> * * @author liliang123 * @since 2019-08-13 */ public interface DinasPurchaseOrderDetailMapper extends BaseMapper<DinasPurchaseOrderDetail> { /** * 采购合同明细列表 * @param id * @return */ List<DinasPurchaseOrderDetailDTO> listPurchaseOrderDetail(Integer id); }
[ "414608036@qq.com" ]
414608036@qq.com
68b27489055accca84f16779a73f7ca772dc7be0
b2392b34dbd89246960b92dc15fe96770b73df9b
/trade/src/main/java/com/jhcz/trade/account/biz/service/UserService.java
32ee4a8c44482b903b47a07fa5e5868a3be9b2f2
[]
no_license
859162000/jhcztech
6db0366592a36f8f020ff3e7c83fc939876f9b76
4e2c27aa8c997913d00f181818915205908a7603
refs/heads/master
2021-06-07T07:36:17.144596
2016-07-28T19:12:15
2016-07-28T19:12:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,423
java
package com.jhcz.trade.account.biz.service; import java.util.Map; import com.jhcz.trade.account.biz.bean.UserInfo; import com.jhcz.trade.common.base.DataRow; /** * 描述:用户用关 * <br/>版权: Copyright (c) 2009 * <br/>公司: * <br/>作者: * <br/>版本: 1.0 * <br/>日期: 2016-3-15 * <br/>时间: 上午10:14:53 */ public interface UserService { /** * 验证手机号是否注册 * @return * @throws Exception */ public boolean checkMobileIsRegist(String mobile,String custNo,String custType,boolean isPeoReg,boolean isActAndNoMod) throws Exception; /** * 注册 * @param param * @return */ public void register(Map param) throws Exception; /** * 保存密码 * @param param * @throws Exception */ public void savePassword(Map param) throws Exception; /** * 重置密码 * @param param * @throws Exception */ public void resetPassword(DataRow param) throws Exception; /** * 生成客户号 * @return */ public String generateCustNo() throws Exception; /** * 通过登录ID获取用户信息 * @param loginId * @return * @throws Exception */ public UserInfo getUserBaseInfoByLoginId(String loginId) throws Exception; /** * 用户登录 * @param loginId * @param password * @return * @throws Exception */ public Map userLogin(UserInfo user,String loginId,String password,String pwdType) throws Exception; }
[ "285206405@qq.com" ]
285206405@qq.com
916254bba0055a1c7f87a50122871cbe8b4b4069
2c69695e5ec26c1d0e31f24a60b23073de06c40c
/android/app/src/main/java/com/xnew_app_4_dev_19922/MainApplication.java
651166b7b19fde0e09647af22f629519918a414d
[]
no_license
crowdbotics-apps/xnew-app-4-dev-19922
9bd199e67745c32de1963a8a5200b6c5e1a91ca8
888f5b9701605c1c802bd3658ed89baa99dbb825
refs/heads/master
2023-03-23T12:39:25.349366
2021-02-26T17:29:01
2021-02-26T17:29:01
342,649,270
0
0
null
null
null
null
UTF-8
Java
false
false
2,697
java
package com.xnew_app_4_dev_19922; import android.app.Application; import android.content.Context; import com.facebook.react.PackageList; import com.facebook.react.ReactInstanceManager; import com.facebook.react.ReactApplication; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; import com.facebook.soloader.SoLoader; import java.lang.reflect.InvocationTargetException; import java.util.List; public class MainApplication extends Application implements ReactApplication { private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { @Override public boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } @Override protected List<ReactPackage> getPackages() { @SuppressWarnings("UnnecessaryLocalVariable") List<ReactPackage> packages = new PackageList(this).getPackages(); // Packages that cannot be autolinked yet can be added manually here, for example: // packages.add(new MyReactNativePackage()); return packages; } @Override protected String getJSMainModuleName() { return "index"; } }; @Override public ReactNativeHost getReactNativeHost() { return mReactNativeHost; } @Override public void onCreate() { super.onCreate(); SoLoader.init(this, /* native exopackage */ false); initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); } /** * Loads Flipper in React Native templates. Call this in the onCreate method with something like * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); * * @param context * @param reactInstanceManager */ private static void initializeFlipper( Context context, ReactInstanceManager reactInstanceManager) { if (BuildConfig.DEBUG) { try { /* We use reflection here to pick up the class that initializes Flipper, since Flipper library is not available in release mode */ Class<?> aClass = Class.forName("com.rndiffapp.ReactNativeFlipper"); aClass .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) .invoke(null, context, reactInstanceManager); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } }
[ "team@crowdbotics.com" ]
team@crowdbotics.com
0b026ab27ee4080595eb9b16e56019c32fb8872b
b5efa839ac1ce6ff31324238895286ec874d7e30
/src/test/java/com/naturalprogrammer/spring/lemondemo/testutil/JsonPrefixFilter.java
7f9c21a06ef4b68072671acd8d16601cb231fee9
[ "Apache-2.0" ]
permissive
ikane/lemon-demo
e08d3a3a94a73a7ba844c8610b2e7ed587399de6
f6c4f2c5ab8d4060d035f0ce9837ef15f6dbf436
refs/heads/master
2020-05-25T20:26:51.918587
2017-02-10T01:43:01
2017-02-10T01:43:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,138
java
package com.naturalprogrammer.spring.lemondemo.testutil; import com.jayway.restassured.builder.ResponseBuilder; import com.jayway.restassured.filter.Filter; import com.jayway.restassured.filter.FilterContext; import com.jayway.restassured.response.Response; import com.jayway.restassured.specification.FilterableRequestSpecification; import com.jayway.restassured.specification.FilterableResponseSpecification; import com.naturalprogrammer.spring.lemon.LemonConfig; //@Component public class JsonPrefixFilter implements Filter { @Override public Response filter(FilterableRequestSpecification requestSpec, FilterableResponseSpecification responseSpec, FilterContext ctx) { final Response response = ctx.next(requestSpec, responseSpec); // Invoke the request by delegating to the next filter in the filter chain. String responseBody = response.asString(); if (responseBody.startsWith(LemonConfig.JSON_PREFIX)) { String updatedResponseBody = responseBody.substring(LemonConfig.JSON_PREFIX.length()); return new ResponseBuilder().clone(response).setBody(updatedResponseBody).build(); } return response; } }
[ "skpatel20@gmail.com" ]
skpatel20@gmail.com
6ad4eddd9ad29b4887668999a0d4c59357cda8a4
9f9a1cde67e7bf02f876714b66f4a24f8bbb7d54
/hu.bme.mit.trainbenchmark.benchmark.eclipseocl/src/main/java/hu/bme/mit/trainbenchmark/benchmark/eclipseocl/EclipseOCLBenchmarkCase.java
807556bf4de2c633951492d6f4d23c7fb3e7642a
[]
no_license
pappist/trainbenchmark
b9e742f9b798184eeb4bbfbe55cdec5aec9d9fce
203102f9c89ba52c1fdabc56c927aac14f2eaf3b
refs/heads/master
2021-01-21T05:43:37.055406
2015-08-01T11:20:18
2015-08-01T11:53:39
38,885,380
0
0
null
2015-07-10T14:45:35
2015-07-10T14:45:34
null
UTF-8
Java
false
false
1,740
java
/******************************************************************************* * Copyright (c) 2010-2015, Benedek Izso, Gabor Szarnyas, Istvan Rath and Daniel Varro * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Benedek Izso - initial API and implementation * Gabor Szarnyas - initial API and implementation *******************************************************************************/ package hu.bme.mit.trainbenchmark.benchmark.eclipseocl; import hu.bme.mit.trainbenchmark.benchmark.checker.Checker; import hu.bme.mit.trainbenchmark.benchmark.config.BenchmarkConfig; import hu.bme.mit.trainbenchmark.benchmark.eclipseocl.checkers.EclipseOCLChecker; import hu.bme.mit.trainbenchmark.constants.Scenario; import hu.bme.mit.trainbenchmark.emf.EMFDriver; import hu.bme.mit.trainbenchmark.emf.benchmarkcases.EMFBenchmarkCase; import hu.bme.mit.trainbenchmark.emf.matches.EMFMatch; import hu.bme.mit.trainbenchmark.emf.transformation.EMFTransformation; import hu.bme.mit.trainbenchmark.railway.RailwayElement; public class EclipseOCLBenchmarkCase<T extends RailwayElement> extends EMFBenchmarkCase { @Override public void benchmarkInit(final BenchmarkConfig bc) throws Exception { super.benchmarkInit(bc); final EMFDriver emfDriver = new EMFDriver(); driver = emfDriver; checker = (Checker<EMFMatch>) EclipseOCLChecker.newInstance(emfDriver, bc); if (bc.getScenario() != Scenario.BATCH) { transformation = EMFTransformation.newInstance(emfDriver, bc.getQuery(), bc.getScenario()); } } }
[ "szarnyasg@gmail.com" ]
szarnyasg@gmail.com
53dd17be41873eb9a4c481f7c4d4948210c95765
cd3cf25c4cf8fe7b8fbebdb2eec00b3e47c2843e
/src/main/java/com/crm/infrastructure/configuration/parsers/BranchsParser.java
e5ea1a3ba38c71a8a5a64cde8af82c144420ca09
[]
no_license
mmaico/ddd-bouderies-example
78395c0efdd0d44a431e78ec856b5fbedd7a21a9
76f3de428c191d2c2582ee4f8c2afa2fe51591c9
refs/heads/master
2021-01-09T20:17:49.086305
2016-07-08T15:05:55
2016-07-08T15:05:55
62,310,325
0
0
null
null
null
null
UTF-8
Java
false
false
2,235
java
package com.crm.infrastructure.configuration.parsers; import com.crm.infrastructure.entity.Branch; import com.crm.infrastructure.exceptions.InternalArchitectureException; import com.google.common.collect.Lists; import org.jdom.Document; import org.jdom.Element; import org.jdom.JDOMException; import org.jdom.input.SAXBuilder; import java.io.IOException; import java.io.InputStream; import java.util.List; public class BranchsParser { private static final String ID = "id"; private static final String NAME="name"; private static final String FILE_NAME = "/configurations/user_branch.xml"; public static List<Branch> getBranchs() { return loadBranchs(); } @SuppressWarnings("unchecked") protected static List<Branch> loadBranchs() { SAXBuilder sab = new SAXBuilder(); try { InputStream inputStream = findFile(); Document doc = (Document) sab.build(inputStream); Element rootElement = (Element) doc.getRootElement(); List<Branch> listBranchs = Lists.newArrayList(); List<Element> childrenRoot = rootElement.getChildren(); for (Element el : childrenRoot) { Branch branch = convertToBranch(el); listBranchs.add(branch); } return listBranchs; } catch (JDOMException e) { throw new InternalArchitectureException("Erro ao obter as configuracoes.", e); } catch (IOException e) { throw new InternalArchitectureException("Erro ao obter o arquivos de configuracoes.", e); } } @SuppressWarnings("unchecked") private static Branch convertToBranch(Element element) { String name = element.getAttributeValue(NAME); String id = element.getAttributeValue(ID); Branch branch = new Branch(); branch.setId(new Long(id)); branch.setName(name); return branch; } private static InputStream findFile() { try { return BranchsParser.class.getResourceAsStream(FILE_NAME); } catch (Exception e) { throw new IllegalArgumentException("Nao foi possivel encontrar o arquivo:" + FILE_NAME); } } }
[ "mmaico@gmail.com" ]
mmaico@gmail.com
d6781d7386a042eb81172387724224cf4208234c
893c7d2a51fa8aef224e0b89c47560ff653a164c
/cinema/src/main/java/ru/job4j/controllers/AccountServlet.java
7478826e20b3fc026ce620a5d2e70a6fc97fb8e1
[ "Apache-2.0" ]
permissive
Sir-Hedgehog/job4j
f644723c0dac5382ff53eeb5db3a7183775848fb
f26b2b3a9f51910392477c53f713df638ab398b7
refs/heads/master
2021-06-08T12:20:15.583865
2020-12-19T21:17:47
2020-12-19T21:17:47
143,559,660
4
0
Apache-2.0
2020-09-05T11:55:59
2018-08-04T20:06:56
Java
UTF-8
Java
false
false
2,096
java
package ru.job4j.controllers; import com.google.gson.Gson; import ru.job4j.models.*; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.ArrayList; import java.util.List; /** * @author Sir-Hedgehog (mailto:quaresma_08@mail.ru) * @version 3.0 * @since 09.06.2020 */ public class AccountServlet extends HttpServlet { private final Validation validation = ValidateService.getInstance(); /** * Метод через ajax получает данные от пользователя с целью их проверки на корректность * @param request - запрос серверу * @param response - ответ сервера */ @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { response.setContentType("json/application"); response.setCharacterEncoding("UTF-8"); String row = request.getParameter("row"); String place = request.getParameter("place"); String username = request.getParameter("username"); String phone = request.getParameter("phone"); List<String> values = new ArrayList<>(); if (this.writeData(row, place, username, phone)) { values.add("true"); values.add(username); values.add(phone); } else { values.add("false"); } String json = new Gson().toJson(values); response.getWriter().write(json); } /** * Проверка корректности данных и их добавление в случае успешности * @return - успешность операции */ private boolean writeData(String row, String place, String username, String phone) { int intRow = Integer.parseInt(row); int intPlace = Integer.parseInt(place); return validation.validateTransaction(new Hall(intRow, intPlace), new Account(username, phone)); } }
[ "mailto:quaresma_08@mail.ru" ]
mailto:quaresma_08@mail.ru
59c532a688ab065415d6d06395ef4ebf33f9f9ef
655ee072037b640ffbdf7996b42eb40b50889b0a
/src/com/cisco/eManager/common/inventory2/IRspInvokeMethod.java
a8dd8ee4a886ce77c5ff8693d4d443f0525dd9e4
[]
no_license
mamiles/eManager
23b4d97aeceeb6a34e1bee574a1fc2a48cfc9f68
74ec6897e36608001ef11b2946d3f48f2fcf9928
refs/heads/master
2016-08-05T00:34:24.885860
2012-02-11T21:43:13
2012-02-11T21:43:13
3,418,100
1
3
null
null
null
null
UTF-8
Java
false
false
6,686
java
/* * This class was automatically generated with * <a href="http://www.castor.org">Castor 0.9.5.2</a>, using an XML * Schema. * $Id$ */ package com.cisco.eManager.common.inventory2; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ import java.io.IOException; import java.io.Reader; import java.io.Serializable; import java.io.Writer; import java.util.Enumeration; import java.util.Vector; import org.exolab.castor.xml.MarshalException; import org.exolab.castor.xml.Marshaller; import org.exolab.castor.xml.Unmarshaller; import org.exolab.castor.xml.ValidationException; import org.xml.sax.ContentHandler; /** * Class IRspInvokeMethod. * * @version $Revision$ $Date$ */ public class IRspInvokeMethod implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Field _resultsList */ private java.util.Vector _resultsList; //----------------/ //- Constructors -/ //----------------/ public IRspInvokeMethod() { super(); _resultsList = new Vector(); } //-- com.cisco.eManager.common.inventory2.IRspInvokeMethod() //-----------/ //- Methods -/ //-----------/ /** * Method addResults * * @param vResults */ public void addResults(com.cisco.eManager.common.inventory2.NvPair vResults) throws java.lang.IndexOutOfBoundsException { _resultsList.addElement(vResults); } //-- void addResults(com.cisco.eManager.common.inventory2.NvPair) /** * Method addResults * * @param index * @param vResults */ public void addResults(int index, com.cisco.eManager.common.inventory2.NvPair vResults) throws java.lang.IndexOutOfBoundsException { _resultsList.insertElementAt(vResults, index); } //-- void addResults(int, com.cisco.eManager.common.inventory2.NvPair) /** * Method enumerateResults */ public java.util.Enumeration enumerateResults() { return _resultsList.elements(); } //-- java.util.Enumeration enumerateResults() /** * Method getResults * * @param index */ public com.cisco.eManager.common.inventory2.NvPair getResults(int index) throws java.lang.IndexOutOfBoundsException { //-- check bounds for index if ((index < 0) || (index > _resultsList.size())) { throw new IndexOutOfBoundsException(); } return (com.cisco.eManager.common.inventory2.NvPair) _resultsList.elementAt(index); } //-- com.cisco.eManager.common.inventory2.NvPair getResults(int) /** * Method getResults */ public com.cisco.eManager.common.inventory2.NvPair[] getResults() { int size = _resultsList.size(); com.cisco.eManager.common.inventory2.NvPair[] mArray = new com.cisco.eManager.common.inventory2.NvPair[size]; for (int index = 0; index < size; index++) { mArray[index] = (com.cisco.eManager.common.inventory2.NvPair) _resultsList.elementAt(index); } return mArray; } //-- com.cisco.eManager.common.inventory2.NvPair[] getResults() /** * Method getResultsCount */ public int getResultsCount() { return _resultsList.size(); } //-- int getResultsCount() /** * Method isValid */ public boolean isValid() { try { validate(); } catch (org.exolab.castor.xml.ValidationException vex) { return false; } return true; } //-- boolean isValid() /** * Method marshal * * @param out */ public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, out); } //-- void marshal(java.io.Writer) /** * Method marshal * * @param handler */ public void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, handler); } //-- void marshal(org.xml.sax.ContentHandler) /** * Method removeAllResults */ public void removeAllResults() { _resultsList.removeAllElements(); } //-- void removeAllResults() /** * Method removeResults * * @param index */ public com.cisco.eManager.common.inventory2.NvPair removeResults(int index) { java.lang.Object obj = _resultsList.elementAt(index); _resultsList.removeElementAt(index); return (com.cisco.eManager.common.inventory2.NvPair) obj; } //-- com.cisco.eManager.common.inventory2.NvPair removeResults(int) /** * Method setResults * * @param index * @param vResults */ public void setResults(int index, com.cisco.eManager.common.inventory2.NvPair vResults) throws java.lang.IndexOutOfBoundsException { //-- check bounds for index if ((index < 0) || (index > _resultsList.size())) { throw new IndexOutOfBoundsException(); } _resultsList.setElementAt(vResults, index); } //-- void setResults(int, com.cisco.eManager.common.inventory2.NvPair) /** * Method setResults * * @param resultsArray */ public void setResults(com.cisco.eManager.common.inventory2.NvPair[] resultsArray) { //-- copy array _resultsList.removeAllElements(); for (int i = 0; i < resultsArray.length; i++) { _resultsList.addElement(resultsArray[i]); } } //-- void setResults(com.cisco.eManager.common.inventory2.NvPair) /** * Method unmarshalIRspInvokeMethod * * @param reader */ public static java.lang.Object unmarshalIRspInvokeMethod(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (com.cisco.eManager.common.inventory2.IRspInvokeMethod) Unmarshaller.unmarshal(com.cisco.eManager.common.inventory2.IRspInvokeMethod.class, reader); } //-- java.lang.Object unmarshalIRspInvokeMethod(java.io.Reader) /** * Method validate */ public void validate() throws org.exolab.castor.xml.ValidationException { org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); validator.validate(this); } //-- void validate() }
[ "mamiles@cisco.com" ]
mamiles@cisco.com
39133efa6100c6cbdeb933a85fc2f5aa70d68462
8ed70ef0db75d42bfd9dc836b6b0274e96c8e581
/src/main/java/com/vaani/dsa/algo/paradigm/backtracking/PermutationsStringSorted.java
814979c6f9acf99f96e28f46d0eb834fdada007a
[]
no_license
kinshuk4/algorithms-java
8592ed4ab4aa7a8a26279f58f0843d3e0c1142bc
45c4f7539f046ba93f6671bf6af014a4c60dbb16
refs/heads/master
2023-04-14T10:57:17.690911
2023-02-19T09:59:51
2023-04-12T09:59:51
170,701,206
1
1
null
2022-10-05T19:20:50
2019-02-14T14:08:22
Java
UTF-8
Java
false
false
1,181
java
package com.vaani.dsa.algo.paradigm.backtracking; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class PermutationsStringSorted { public static void findPerms(List<String> permsList, String mystr, String chars) { if (chars.length() <= 1) permsList.add(mystr + chars); else for (int i = 0; i < chars.length(); i++) { String newString = chars.substring(0, i) + chars.substring(i + 1); findPerms(permsList, mystr + chars.charAt(i), newString); } } public static List<String> getPermutations(String chars) { List<String> myList = new ArrayList<>(); findPerms(myList, "", chars); return myList; } public static List<String> getSortedPermutations(String chars) { List<String> strList = getPermutations(chars); Collections.sort(strList); return strList; } public static void main(String args[]) { String chars = "help"; List<String> strList = getSortedPermutations(chars); for (String str : strList) System.out.print(" " + str); } }
[ "kinshuk.ram@gmail.com" ]
kinshuk.ram@gmail.com
1ce9720eb9953e80700bd4bda9b783b2ed105352
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/methods/Method_4520.java
6294d487d092a52dbd2ea3ca169dc879f2ad87f8
[]
no_license
P79N6A/icse_20_user_study
5b9c42c6384502fdc9588430899f257761f1f506
8a3676bc96059ea2c4f6d209016f5088a5628f3c
refs/heads/master
2020-06-24T08:25:22.606717
2019-07-25T15:31:16
2019-07-25T15:31:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
467
java
private SeekMap getSeekMapForNonSeekTableFlac(ExtractorInput input,FlacStreamInfo streamInfo){ long inputLength=input.getLength(); if (inputLength != C.LENGTH_UNSET) { long firstFramePosition=decoderJni.getDecodePosition(); flacBinarySearchSeeker=new FlacBinarySearchSeeker(streamInfo,firstFramePosition,inputLength,decoderJni); return flacBinarySearchSeeker.getSeekMap(); } else { return new SeekMap.Unseekable(streamInfo.durationUs()); } }
[ "sonnguyen@utdallas.edu" ]
sonnguyen@utdallas.edu
1d1b83af83cdac6b3131bca3c73fbb717c0202fd
5b8337c39cea735e3817ee6f6e6e4a0115c7487c
/sources/com/google/android/gms/internal/firebase_remote_config/zzfz.java
cb568035446e4b75e55b278f5f49a05c3da78bd5
[]
no_license
karthik990/G_Farm_Application
0a096d334b33800e7d8b4b4c850c45b8b005ccb1
53d1cc82199f23517af599f5329aa4289067f4aa
refs/heads/master
2022-12-05T06:48:10.513509
2020-08-10T14:46:48
2020-08-10T14:46:48
286,496,946
1
0
null
null
null
null
UTF-8
Java
false
false
306
java
package com.google.android.gms.internal.firebase_remote_config; abstract class zzfz implements zzgd { zzfz() { } public final void remove() { throw new UnsupportedOperationException(); } public /* synthetic */ Object next() { return Byte.valueOf(nextByte()); } }
[ "knag88@gmail.com" ]
knag88@gmail.com
58f15ee0f8ed7f95b5390d0d989b18ca16d9244c
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/kickstarter--android-oss/24df9e7a737014be91c6263790465517389da775/after/MessageHolderViewModel.java
4c572a3ca7487f95e51b49fabb1c45339d741e02
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
4,410
java
package com.kickstarter.viewmodels; import android.support.annotation.NonNull; import android.util.Pair; import com.kickstarter.R; import com.kickstarter.libs.ActivityViewModel; import com.kickstarter.libs.CurrentUserType; import com.kickstarter.libs.Environment; import com.kickstarter.models.Message; import com.kickstarter.services.ApiClientType; import com.kickstarter.ui.viewholders.MessageViewHolder; import rx.Observable; import rx.subjects.PublishSubject; import static com.kickstarter.libs.rx.transformers.Transformers.combineLatestPair; public interface MessageHolderViewModel { interface Inputs { /** Call to configure the view model with a message. */ void configureWith(Message message); } interface Outputs { /** Emits a boolean that determines whether the participant's avatar image should be hidden. */ Observable<Boolean> participantAvatarImageHidden(); /** Emits the url for the participant's avatar image. */ Observable<String> participantAvatarImageUrl(); /** Emits a boolean to determine whether the message body view should align the parent view's end and right. */ Observable<Boolean> messageBodyTextViewAlignParentEnd(); /** Emits the color int for the message background. */ Observable<Integer> messageBodyTextViewBackgroundColorInt(); /** Emits the message body text view text. */ Observable<String> messageBodyTextViewText(); /** Emits the color int for the message text. */ Observable<Integer> messageBodyTextViewTextColorInt(); } final class ViewModel extends ActivityViewModel<MessageViewHolder> implements Inputs, Outputs { private final ApiClientType client; private final CurrentUserType currentUser; public ViewModel(final @NonNull Environment environment) { super(environment); this.client = environment.apiClient(); this.currentUser = environment.currentUser(); final Observable<Pair<Message, Boolean>> messageAndCurrentUserIsSender = this.message .compose(combineLatestPair(this.currentUser.loggedInUser())) .map(mu -> Pair.create(mu.first, mu.first.sender().id() == mu.second.id())); this.participantAvatarImageHidden = messageAndCurrentUserIsSender.map(mb -> mb.second); this.participantAvatarImageUrl = messageAndCurrentUserIsSender .filter(mb -> !mb.second) .map(mb -> mb.first.sender().avatar().medium()); this.messageBodyTextViewAlignParentEnd = messageAndCurrentUserIsSender.map(mb -> mb.second); this.messageBodyTextViewText = this.message.map(Message::body); this.messageBodyTextViewBackgroundColor = messageAndCurrentUserIsSender .map(mb -> mb.second ? R.color.black : R.color.ksr_grey_400); this.messageBodyTextViewTextColor = messageAndCurrentUserIsSender .map(mb -> mb.second ? R.color.white : R.color.ksr_text_navy_700); } private final PublishSubject<Message> message = PublishSubject.create(); private final Observable<Boolean> participantAvatarImageHidden; private final Observable<String> participantAvatarImageUrl; private final Observable<Boolean> messageBodyTextViewAlignParentEnd; private final Observable<Integer> messageBodyTextViewBackgroundColor; private final Observable<String> messageBodyTextViewText; private final Observable<Integer> messageBodyTextViewTextColor; public final Inputs inputs = this; public final Outputs outputs = this; @Override public void configureWith(final @NonNull Message message) { this.message.onNext(message); } @Override public @NonNull Observable<Boolean> participantAvatarImageHidden() { return this.participantAvatarImageHidden; } @Override public @NonNull Observable<String> participantAvatarImageUrl() { return this.participantAvatarImageUrl; } @Override public @NonNull Observable<Boolean> messageBodyTextViewAlignParentEnd() { return this.messageBodyTextViewAlignParentEnd; } @Override public @NonNull Observable<Integer> messageBodyTextViewBackgroundColorInt() { return this.messageBodyTextViewBackgroundColor; } @Override public @NonNull Observable<String> messageBodyTextViewText() { return this.messageBodyTextViewText; } @Override public @NonNull Observable<Integer> messageBodyTextViewTextColorInt() { return this.messageBodyTextViewTextColor; } } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
f12e959628badb07969414a0efa15a5879281896
b0a70e691bf838258ec4a62e8a2668a378165248
/app/src/main/java/vision/genesis/clientapp/feature/main/wallet/transactions/TransactionsFragment.java
dcce3de93e731d0c13c335785e2a0ef8fb36d73e
[]
no_license
LinuXperia/android-client
e5d676986db5e1e33caa759ec9e32d712a417d37
4bfe11edc317a39ba06473183cfe3a293d1574a1
refs/heads/master
2023-04-01T02:17:01.503842
2020-09-22T09:48:44
2020-09-22T09:48:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,061
java
package vision.genesis.clientapp.feature.main.wallet.transactions; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ProgressBar; import android.widget.RelativeLayout; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import com.arellomobile.mvp.presenter.InjectPresenter; import java.util.List; import butterknife.BindDimen; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.Unbinder; import io.swagger.client.model.TransactionViewModel; import timber.log.Timber; import vision.genesis.clientapp.R; import vision.genesis.clientapp.feature.BaseFragment; import vision.genesis.clientapp.feature.main.wallet.WalletPagerAdapter; import vision.genesis.clientapp.ui.common.SimpleSectionedRecyclerViewAdapter; /** * GenesisVisionAndroid * Created by Vitaly on 17/02/2019. */ public class TransactionsFragment extends BaseFragment implements TransactionsView, WalletPagerAdapter.OnPageVisibilityChanged { public static final String LOCATION_WALLET = "location_wallet"; public static final String LOCATION_SPECIFIC_WALLET = "location_specific_wallet"; private static final String EXTRA_LOCATION = "extra_location"; private static final String EXTRA_WALLET_CURRENCY = "extra_wallet_id"; public static TransactionsFragment with(@NonNull String location, @Nullable String walletCurrency) { TransactionsFragment transactionsFragment = new TransactionsFragment(); Bundle arguments = new Bundle(2); arguments.putString(EXTRA_LOCATION, location); arguments.putString(EXTRA_WALLET_CURRENCY, walletCurrency); transactionsFragment.setArguments(arguments); return transactionsFragment; } @BindView(R.id.root) public ViewGroup root; @BindView(R.id.progress_bar) public ProgressBar progressBar; @BindView(R.id.group_no_transactions) public View groupNoTransactions; @BindView(R.id.recycler_view) public RecyclerView recyclerView; @BindView(R.id.filters) public RelativeLayout filtersView; @BindDimen(R.dimen.date_range_margin_bottom) public int filtersMarginBottom; @InjectPresenter public TransactionsPresenter transactionsPresenter; private TransactionsListAdapter transactionsListAdapter; private SimpleSectionedRecyclerViewAdapter sectionedAdapter; private Unbinder unbinder; @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_transactions, container, false); } @Override public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); unbinder = ButterKnife.bind(this, view); setFonts(); if (getArguments() != null) { String location = getArguments().getString(EXTRA_LOCATION); String walletCurrency = getArguments().getString(EXTRA_WALLET_CURRENCY); transactionsPresenter.setData(location, walletCurrency); initRecyclerView(); } else { Timber.e("Passed empty arguments to TransactionsFragment"); onBackPressed(); } } @Override public void onResume() { super.onResume(); transactionsPresenter.onShow(); } @Override public void onDestroyView() { if (unbinder != null) { unbinder.unbind(); unbinder = null; } super.onDestroyView(); } private void setFonts() { } private void initRecyclerView() { LinearLayoutManager layoutManager = new LinearLayoutManager(getContext()); recyclerView.setLayoutManager(layoutManager); transactionsListAdapter = new TransactionsListAdapter(); sectionedAdapter = new SimpleSectionedRecyclerViewAdapter(getContext(), R.layout.list_item_trades_date_section, R.id.text, transactionsListAdapter); recyclerView.setAdapter(sectionedAdapter); recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled(RecyclerView recyclerView, int dx, int dy) { LinearLayoutManager layoutManager = LinearLayoutManager.class.cast(recyclerView.getLayoutManager()); int totalItemCount = layoutManager.getItemCount(); int lastVisible = layoutManager.findLastCompletelyVisibleItemPosition(); boolean endHasBeenReached = lastVisible + 1 >= totalItemCount; if (totalItemCount > 0 && endHasBeenReached) { transactionsPresenter.onLastListItemVisible(); } } }); } @Override public void showProgress(boolean show) { progressBar.setVisibility(show ? View.VISIBLE : View.GONE); if (!show) { // filtersView.setVisibility(View.VISIBLE); recyclerView.setVisibility(View.VISIBLE); } } @Override public void setTransactions(List<TransactionViewModel> transactions, List<SimpleSectionedRecyclerViewAdapter.Section> sections) { if (transactions.isEmpty()) { groupNoTransactions.setVisibility(View.VISIBLE); recyclerView.setVisibility(View.GONE); return; } sectionedAdapter.setSections(sections); transactionsListAdapter.setTransactions(transactions); groupNoTransactions.setVisibility(View.GONE); recyclerView.setVisibility(View.VISIBLE); } @Override public void addTransactions(List<TransactionViewModel> transactions, List<SimpleSectionedRecyclerViewAdapter.Section> sections) { sectionedAdapter.setSections(sections); transactionsListAdapter.addTransactions(transactions); } @Override public void showSnackbarMessage(String message) { showSnackbar(message, recyclerView); } @Override public void pagerShow() { if (transactionsPresenter != null) { transactionsPresenter.onShow(); } } @Override public void pagerHide() { } public void onSwipeRefresh() { if (transactionsPresenter != null) { transactionsPresenter.onSwipeRefresh(); } } public void onOffsetChanged(int verticalOffset) { if (filtersView != null) { filtersView.setY(root.getHeight() - verticalOffset - filtersView.getHeight() - filtersMarginBottom); } } }
[ "dev.prus@gmail.com" ]
dev.prus@gmail.com
a72e54de92d9b8dd696631f921086437f27f114e
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/33/33_3e008cd89d215dff566528335cff144fb88da4ef/City/33_3e008cd89d215dff566528335cff144fb88da4ef_City_s.java
9d11d5181aaf828075a4f514337fffc162870f9f
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
3,852
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package viriussimulator; import java.util.ArrayList; import java.util.Random; import org.omg.PortableInterceptor.SYSTEM_EXCEPTION; /** * * @author baroba */ public class City extends location { public City (int streets) { Random generator = new Random(); System.out.println("Creating city"); nodes = new ArrayList<vNode>(); nodes.add(new streetNode("Route 1", generator.nextInt(1000))); int streetnames = 0; for (int i = 0; i < streets; i++) { ArrayList<vNode> temp = streetMaker(3, 1, 2 + i, 1 + streetnames); streetnames += temp.size() - 1; nodes.get(0).addConnection(temp.get(0)); temp.get(0).addConnection(nodes.get(0)); nodes.addAll(temp); System.out.println(nodes.size()+" node size"); } buildingNode start = new buildingNode("start point", 5000, 20); Virus infection = new illness(); nodes.get(0).addConnection(start); start.addConnection(nodes.get(0)); nodes.add(start); for (int i = 0; i < nodes.size(); i++) { nodes.get(i).setMap(nodes); } for (int i = 0; i < nodes.size(); i++) { nodes.get(i).createAgents(); } for (int i = 0; i < start.inhabitants.size(); i++) { Agent agent = start.inhabitants.get(i); agent.infect(infection); } /* nodes.add(new streetNode("route 1", 400)); nodes.add(new buildingNode("building 1", 500, 10)); nodes.add(new buildingNode("building 2", 200, 10)); nodes.add(new buildingNode("building 3", 600, 10)); nodes.add(new buildingNode("building 4", 1000, 10)); System.out.println("Adding connections"); for (int i = 1; i < 5; i++) { nodes.get(0).addConnection(nodes.get(i)); nodes.get(i).addConnection(nodes.get(0)); System.out.println("Number of connections is: " + nodes.get(i).connections.size()); } System.out.println("StreetConnection size is: " + nodes.get(0).connections.size()); for (int i = 0; i < nodes.size(); i++) { nodes.get(i).setMap(nodes); } for (int i = 0; i < nodes.size(); i++) nodes.get(i).createAgents(); nodes.get(4).inhabitants.get(0).infect(new illness());*/ } public void update() { for (int i = 0; i < nodes.size(); i++) { vNode node = nodes.get(i); node.infected(); node.avoidance(); node.updateStage(); node.update(); } for (int i = 0; i < nodes.size(); i++) { vNode node = nodes.get(i); System.out.println(node.readOut()); } }; public ArrayList streetMaker(int size, int population, int street, int building) { Random generator = new Random(); ArrayList<vNode> val=new ArrayList<>(); val.add(new streetNode("street "+street,generator.nextInt(100))); for (int i = 0; i < size; i++) { val.add(new buildingNode("building "+building, generator.nextInt(2000), population)); } System.out.println("Adding connections"); for (int i = 1; i < val.size(); i++) { val.get(0).addConnection(val.get(i)); val.get(i).addConnection(val.get(0)); } System.out.println(val.get(0).connections.size()+" val connections"); System.out.println(val.size()+" street size"); return val; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
58bff7ffa69f872ba27a30e281c953e843e43926
151702b14111901ec890523e97f41f5d777b89a0
/src/main/java/sjq/light/expr/atomic/TupleExpression.java
bc84b3f768ac7f76918531dac73af32010698509
[]
no_license
bichonghai/light-expr
50ea645d24aec912e524ac7039ebb42c8e4bdf1c
a6d55edcbec185240afe8e4682e8d2bf290bf136
refs/heads/master
2020-04-15T10:33:17.865342
2019-01-04T05:33:14
2019-01-04T05:33:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,061
java
package sjq.light.expr.atomic; import java.util.ArrayList; import java.util.List; import sjq.light.expr.BaseExpression; import sjq.light.expr.ItemExpression; import sjq.light.expr.util.IncomputableException; public class TupleExpression extends ItemExpression { private List<BaseExpression> expressionList; public TupleExpression(List<BaseExpression> expressionList) { this.expressionList = expressionList; } @Override public String toString() { return expressionList.toString(); } @Override public Object eval() throws IncomputableException { List<Object> results = new ArrayList<>(expressionList.size()); for(BaseExpression expression:expressionList) { Object eval = expression.eval(); results.add(eval); } return results; } public int countExpressionList() { return expressionList.size(); } public List<BaseExpression> getExpressionList() { return expressionList; } }
[ "laplacedemon.sjq@gmail.com" ]
laplacedemon.sjq@gmail.com
b6bcd2ff47b594cd18e59c33955fed443e393ccc
2370f5580c5a7ad14cdbafb64c190b592504e515
/org.tencompetence.imsldmodel/src/org/tencompetence/imsldmodel/properties/IPropertyGroupModel.java
0998777cb09669529563a48ca2218ff8e73a3512
[]
no_license
vicsanhu/ontoConcept
317f844eb5bad73ffabe875287c3518cd6bf7a16
eb89178a2612780a007d8d3325149b08655c87d8
refs/heads/master
2020-05-18T15:12:06.584603
2013-02-28T01:24:15
2013-02-28T01:24:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,576
java
/* * Copyright (c) 2007, Consortium Board TENCompetence * 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 TENCompetence 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 CONSORTIUM BOARD TENCOMPETENCE ``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 CONSORTIUM BOARD TENCOMPETENCE BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package org.tencompetence.imsldmodel.properties; import java.util.List; import org.tencompetence.imsldmodel.IIdentifier; import org.tencompetence.imsldmodel.ILDModelObject; import org.tencompetence.imsldmodel.ILDModelObjectReference; import org.tencompetence.imsldmodel.ITitle; /** * IPropertyGroupModel * * @author Phillip Beauvoir * @version $Id: IPropertyGroupModel.java,v 1.3 2009/11/26 09:16:04 phillipus Exp $ */ public interface IPropertyGroupModel extends ILDModelObject, IIdentifier, ITitle { String PROPERTY_PROPERTY_REFS_CHANGED = "Property.PropertyRefsChanged"; //$NON-NLS-1$ List<ILDModelObjectReference> getPropertyRefs(); boolean containsProperty(ILDModelObject child); /** * Add a Property Ref * @param child * @param index * @return The newly created reference */ IPropertyRefModel addProperty(ILDModelObject child, int index); void removeProperty(ILDModelObject child); }
[ "vicsanhu@alumnos.ubiobio.cl" ]
vicsanhu@alumnos.ubiobio.cl
db6c12abe8868d92871c73ed3f561e24c8b2c840
2ebe6e87a7f96bbee2933103a4f43f46ea239996
/src/test-hu/java/org/htmlunit/util/DebuggingWebConnectionTest.java
582122e84c136e464df705a51d0251a50b23e1b2
[ "Apache-2.0", "LGPL-2.0-or-later", "BSD-3-Clause", "EPL-1.0", "CDDL-1.1", "EPL-2.0", "MPL-2.0", "MIT", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Xceptance/XLT
b4351c915d8c66d918b02a6c71393a151988be46
c6609f0cd9315217727d44b3166f705acc4da0b4
refs/heads/develop
2023-08-18T18:20:56.557477
2023-08-08T16:04:16
2023-08-08T16:04:16
237,251,821
56
12
Apache-2.0
2023-09-01T14:52:25
2020-01-30T16:13:24
Java
UTF-8
Java
false
false
4,767
java
/* * Copyright (c) 2002-2023 Gargoyle Software 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 * 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.htmlunit.util; import static java.nio.charset.StandardCharsets.UTF_8; import java.io.ByteArrayOutputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.zip.GZIPOutputStream; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.junit.Test; import org.htmlunit.MockWebConnection; import org.htmlunit.SimpleWebTestCase; import org.htmlunit.WebRequest; import org.htmlunit.WebResponse; /** * Tests for {@link DebuggingWebConnection}. * * @author Marc Guillemot */ public class DebuggingWebConnectionTest extends SimpleWebTestCase { /** * @throws Exception if the test fails */ @Test public void nameValueListToJsMap() throws Exception { assertEquals("{}", DebuggingWebConnection.nameValueListToJsMap(null)); final List<NameValuePair> emptyList = Collections.emptyList(); assertEquals("{}", DebuggingWebConnection.nameValueListToJsMap(emptyList)); List<NameValuePair> list = Collections.singletonList(new NameValuePair("name", "value")); assertEquals("{'name': 'value'}", DebuggingWebConnection.nameValueListToJsMap(list)); list = Collections.singletonList(new NameValuePair("na me", "value")); assertEquals("{'na me': 'value'}", DebuggingWebConnection.nameValueListToJsMap(list)); list = new ArrayList<>(); list.add(new NameValuePair("na me", "value1")); list.add(new NameValuePair("key", "value 2")); list.add(new NameValuePair("key 2", "value 3")); list.add(new NameValuePair("key 4", "with ' quote")); // can it really happen in header? final String expected = "{'na me': 'value1', 'key': 'value 2', 'key 2': 'value 3', 'key 4': 'with \\' quote'}"; assertEquals(expected, DebuggingWebConnection.nameValueListToJsMap(list)); } /** * @throws Exception if the test fails */ @Test public void escapeJSString() throws Exception { assertEquals("", DebuggingWebConnection.escapeJSString("")); assertEquals("hello", DebuggingWebConnection.escapeJSString("hello")); assertEquals("I\\'m here", DebuggingWebConnection.escapeJSString("I'm here")); } /** * @throws Exception if the test fails */ @Test public void chooseExtension() throws Exception { assertEquals(".html", DebuggingWebConnection.chooseExtension(MimeType.TEXT_HTML)); assertEquals(".js", DebuggingWebConnection.chooseExtension("text/javascript")); assertEquals(".css", DebuggingWebConnection.chooseExtension(MimeType.TEXT_CSS)); assertEquals(".xml", DebuggingWebConnection.chooseExtension(MimeType.TEXT_XML)); assertEquals(".txt", DebuggingWebConnection.chooseExtension(MimeType.TEXT_PLAIN)); } /** * Ensures that Content-Encoding headers are removed when JavaScript is uncompressed. * (was causing java.io.IOException: Not in GZIP format). * @throws Exception if the test fails */ @Test public void gzip() throws Exception { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); try (GZIPOutputStream gzipOutputStream = new GZIPOutputStream(baos)) { IOUtils.write("alert(1)", gzipOutputStream, UTF_8); } final MockWebConnection mockConnection = new MockWebConnection(); final List<NameValuePair> responseHeaders = Arrays.asList( new NameValuePair("Content-Encoding", "gzip")); mockConnection.setResponse(URL_FIRST, baos.toByteArray(), 200, "OK", MimeType.APPLICATION_JAVASCRIPT, responseHeaders); final String dirName = "test-" + getClass().getSimpleName(); try (DebuggingWebConnection dwc = new DebuggingWebConnection(mockConnection, dirName)) { final WebRequest request = new WebRequest(URL_FIRST); final WebResponse response = dwc.getResponse(request); // was throwing here assertNull(response.getResponseHeaderValue("Content-Encoding")); FileUtils.deleteDirectory(dwc.getReportFolder()); } } }
[ "4639399+jowerner@users.noreply.github.com" ]
4639399+jowerner@users.noreply.github.com
ac494122806c4d972b03459cb6a3b815958d5b44
1095fea85170be0fead52a277f7c5c2661c747ff
/rs3 files/876 Deob Less Renamed/source/com/jagex/Class420.java
e7df1a1960a4966a7d4884854f44ff45ef84031c
[ "Apache-2.0" ]
permissive
emcry666/project-scape
fed5d533f561cb06b3187ea116ff2692b840b6b7
827d213f129a9fd266cf42e7412402609191c484
refs/heads/master
2021-09-01T01:01:40.472745
2017-12-23T19:55:02
2017-12-23T19:55:02
114,505,346
0
0
null
null
null
null
UTF-8
Java
false
false
5,795
java
/* Class420 - Decompiled by JODE * Visit http://jode.sourceforge.net/ */ package com.jagex; public class Class420 { static Class420 aClass420_4725; static Class420 aClass420_4726; static Class420 aClass420_4727 = new Class420("8", "8"); static Class420 aClass420_4728; static Class420 aClass420_4729; static Class420 aClass420_4730; static Class420 aClass420_4731; public static Class420 aClass420_4732; static Class420 aClass420_4733; static Class420 aClass420_4734; static Class420 aClass420_4735; static Class420 aClass420_4736; static Class420 aClass420_4737; static Class420 aClass420_4738; static Class420 aClass420_4739; static Class420 aClass420_4740; static Class420 aClass420_4741; static Class420 aClass420_4742; static Class420 aClass420_4743; static Class420 aClass420_4744; static Class420 aClass420_4745; static Class420 aClass420_4746; static Class420 aClass420_4747; static Class420 aClass420_4748; static Class420 aClass420_4749; public static Class420 aClass420_4750; static Class420 aClass420_4751; static Class420 aClass420_4752; static Class420 aClass420_4753; static Class420 aClass420_4754; static Class420 aClass420_4755; static Class420 aClass420_4756; static Class420 aClass420_4757; static Class420 aClass420_4758; static Class420 aClass420_4759; static Class420 aClass420_4760; static Class420 aClass420_4761; static Class420 aClass420_4762; static Class420 aClass420_4763; static Class420 aClass420_4764; static Class420 aClass420_4765; static Class420 aClass420_4766; static Class420 aClass420_4767; static Class420 aClass420_4768; static Class420 aClass420_4769; static Class420 aClass420_4770; static Class420 aClass420_4771; static Class420 aClass420_4772; static Class420 aClass420_4773; static Class420 aClass420_4774; static Class420 aClass420_4775; static Class420 aClass420_4776; public String aString4777; static { aClass420_4726 = new Class420("20", "20"); aClass420_4757 = new Class420("41", "41"); aClass420_4728 = new Class420("27", "27"); aClass420_4731 = new Class420("1", "1"); aClass420_4730 = new Class420("18", "18"); aClass420_4773 = new Class420("7", "7"); aClass420_4761 = new Class420("14", "14"); aClass420_4733 = new Class420("11", "11"); aClass420_4767 = new Class420("50", "50"); aClass420_4753 = new Class420("38", "38"); aClass420_4736 = new Class420("28", "28"); aClass420_4737 = new Class420("36", "36"); aClass420_4738 = new Class420("6", "6"); aClass420_4729 = new Class420("52", "52"); aClass420_4740 = new Class420("33", "33"); aClass420_4741 = new Class420("49", "49"); aClass420_4742 = new Class420("13", "13"); aClass420_4743 = new Class420("40", "40"); aClass420_4746 = new Class420("24", "24"); aClass420_4745 = new Class420("3", "3"); aClass420_4775 = new Class420("21", "21"); aClass420_4747 = new Class420("29", "29"); aClass420_4748 = new Class420("25", "25"); aClass420_4732 = new Class420("42", "42"); aClass420_4750 = new Class420("45", "45"); aClass420_4751 = new Class420("5", "5"); aClass420_4754 = new Class420("46", "46"); aClass420_4744 = new Class420("31", "31"); aClass420_4752 = new Class420("15", "15"); aClass420_4755 = new Class420("43", "43"); aClass420_4756 = new Class420("12", "12"); aClass420_4760 = new Class420("34", "34"); aClass420_4734 = new Class420("47", "47"); aClass420_4759 = new Class420("23", "23"); aClass420_4762 = new Class420("22", "22"); aClass420_4739 = new Class420("16", "16"); aClass420_4758 = new Class420("39", "39"); aClass420_4763 = new Class420("30", "30"); aClass420_4764 = new Class420("32", "32"); aClass420_4765 = new Class420("26", "26"); aClass420_4766 = new Class420("2", "2"); aClass420_4749 = new Class420("9", "9"); aClass420_4768 = new Class420("4", "4"); aClass420_4769 = new Class420("44", "44"); aClass420_4770 = new Class420("51", "51"); aClass420_4771 = new Class420("48", "48"); aClass420_4772 = new Class420("37", "37"); aClass420_4725 = new Class420("19", "19"); aClass420_4774 = new Class420("10", "10"); aClass420_4735 = new Class420("35", "35"); aClass420_4776 = new Class420("17", "17"); } public static Class420[] method6671() { return new Class420[] { aClass420_4766, aClass420_4737, aClass420_4742, aClass420_4729, aClass420_4767, aClass420_4756, aClass420_4760, aClass420_4730, aClass420_4762, aClass420_4763, aClass420_4751, aClass420_4748, aClass420_4774, aClass420_4745, aClass420_4735, aClass420_4728, aClass420_4732, aClass420_4764, aClass420_4749, aClass420_4738, aClass420_4755, aClass420_4731, aClass420_4739, aClass420_4754, aClass420_4747, aClass420_4741, aClass420_4759, aClass420_4727, aClass420_4768, aClass420_4734, aClass420_4736, aClass420_4750, aClass420_4758, aClass420_4725, aClass420_4776, aClass420_4757, aClass420_4772, aClass420_4746, aClass420_4773, aClass420_4771, aClass420_4769, aClass420_4775, aClass420_4753, aClass420_4740, aClass420_4761, aClass420_4743, aClass420_4744, aClass420_4752, aClass420_4770, aClass420_4733, aClass420_4765, aClass420_4726 }; } Class420(String string, String string_0_) { aString4777 = string_0_; } static final void method6672(Class669 class669, int i) { class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = class669.aClass523_Sub19_8569.method16052(((String) (class669.anObjectArray8559[((class669.anInt8560 -= 1235970069) * 240723773)])), -155614284); } static final void method6673(Class669 class669, int i) { int i_1_ = (class669.anIntArray8557[(class669.anInt8558 -= 2138772399) * 1357652815]); Class250 class250 = Class188.method3592(i_1_, -1011890349); class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = class250.anInt2539 * -1013149031; } }
[ "34613829+emcry666@users.noreply.github.com" ]
34613829+emcry666@users.noreply.github.com
9d7b1cc23fc486193ec6931d862a73391d27ce63
2a1f6afb809b5d3347bd1a4521d2f876665cc2ca
/demo/j2cl/src/main/java/org/treblereel/mvp/view/components/Panel_BinderImpl_TemplateImpl.java
6f293143946e4d30b3c5ed775737ff8a2168b31d
[ "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
3,147
java
package org.treblereel.mvp.view.components; /* * #%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% */ /** * This class is generated from org.treblereel.mvp.view.components.Panel_BinderImpl.Template, do not edit manually */ public class Panel_BinderImpl_TemplateImpl implements org.treblereel.mvp.view.components.Panel_BinderImpl.Template { /** * @Template("&lt;b:Panel&gt;\\n \\s\\s&lt;b:PanelHeader&gt;\\n \\s\\s\\s\\s&lt;b:Heading size=\"H3\" text=\"...\"/&gt;\\n \\s\\s&lt;/b:PanelHeader&gt;\\n \\s\\s&lt;b:PanelBody&gt;\\n \\s\\s\\s\\s&lt;b.html:Strong text=\"...\"/&gt;\\n \\s\\s&lt;/b:PanelBody&gt;\\n \\s\\s&lt;b:PanelFooter&gt;\\n \\s\\s\\s\\s&lt;b.html:Strong text=\"...\"/&gt;\\n \\s\\s&lt;/b:PanelFooter&gt;\\n &lt;/b:Panel&gt;\\n") */ public org.gwtproject.safehtml.shared.SafeHtml html1( ) { StringBuilder sb = new java.lang.StringBuilder(); sb.append("&lt;b:Panel&gt;\\n \\s\\s&lt;b:PanelHeader&gt;\\n \\s\\s\\s\\s&lt;b:Heading size=\"H3\" text=\"...\"/&gt;\\n \\s\\s&lt;/b:PanelHeader&gt;\\n \\s\\s&lt;b:PanelBody&gt;\\n \\s\\s\\s\\s&lt;b.html:Strong text=\"...\"/&gt;\\n \\s\\s&lt;/b:PanelBody&gt;\\n \\s\\s&lt;b:PanelFooter&gt;\\n \\s\\s\\s\\s&lt;b.html:Strong text=\"...\"/&gt;\\n \\s\\s&lt;/b:PanelFooter&gt;\\n &lt;/b:Panel&gt;\\n"); return new org.gwtproject.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString()); } /** * @Template("&lt;b:Panel type=\"INFO | DANGER | SUCCESS | PRIMARY | WARNING | DEFAULT\"&gt;\\n \\s\\s&lt;b:PanelHeader&gt;\\n \\s\\s\\s\\s&lt;b:Heading size=\"H3\" text=\"...\"/&gt;\\n \\s\\s&lt;/b:PanelHeader&gt;\\n \\s\\s&lt;b:PanelBody&gt;\\n \\s\\s\\s\\s&lt;b.html:Strong text=\"...\"/&gt;\\n \\s\\s&lt;/b:PanelBody&gt;\\n \\s\\s&lt;b:PanelFooter&gt;\\n \\s\\s\\s\\s&lt;b.html:Strong text=\"...\"/&gt;\\n \\s\\s&lt;/b:PanelFooter&gt;\\n &lt;/b:Panel&gt;\\n") */ public org.gwtproject.safehtml.shared.SafeHtml html2( ) { StringBuilder sb = new java.lang.StringBuilder(); sb.append("&lt;b:Panel type=\"INFO | DANGER | SUCCESS | PRIMARY | WARNING | DEFAULT\"&gt;\\n \\s\\s&lt;b:PanelHeader&gt;\\n \\s\\s\\s\\s&lt;b:Heading size=\"H3\" text=\"...\"/&gt;\\n \\s\\s&lt;/b:PanelHeader&gt;\\n \\s\\s&lt;b:PanelBody&gt;\\n \\s\\s\\s\\s&lt;b.html:Strong text=\"...\"/&gt;\\n \\s\\s&lt;/b:PanelBody&gt;\\n \\s\\s&lt;b:PanelFooter&gt;\\n \\s\\s\\s\\s&lt;b.html:Strong text=\"...\"/&gt;\\n \\s\\s&lt;/b:PanelFooter&gt;\\n &lt;/b:Panel&gt;\\n"); return new org.gwtproject.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.toString()); } }
[ "chani.liet@gmail.com" ]
chani.liet@gmail.com
9e988cfb00ff029cb4ed5749a715f6a1de33307b
5cfaeebdc7c50ca23ee368fa372d48ed1452dfeb
/xd-courseCenter/src/main/java/com/xiaodou/course/web/response/product/ProductDownloadResponse.java
5f3af97bc907e7a38aeb0ec9452d0849b770760d
[]
no_license
zdhuangelephant/xd_pro
c8c8ff6dfcfb55aead733884909527389e2c8283
5611b036968edfff0b0b4f04f0c36968333b2c3b
refs/heads/master
2022-12-23T16:57:28.306580
2019-12-05T06:05:43
2019-12-05T06:05:43
226,020,526
0
2
null
2022-12-16T02:23:20
2019-12-05T05:06:27
JavaScript
UTF-8
Java
false
false
1,873
java
package com.xiaodou.course.web.response.product; import java.util.List; import com.google.common.collect.Lists; import com.xiaodou.course.vo.product.ResourceDescription; import com.xiaodou.course.web.response.BaseResponse; import com.xiaodou.summer.vo.out.ResultType; /** * @name @see com.xiaodou.course.web.response.product.ProductDownloadResponse.java * @CopyRright (c) 2015 by XiaoDou NetWork Technology * * @author <a href="mailto:zhaodan@corp.51xiaodou.com">zhaodan</a> * @date 2015年10月20日 * @description 课件批量下载接口返回值 * @version 1.0 */ public class ProductDownloadResponse extends BaseResponse { public ProductDownloadResponse(ResultType resultType) { super(resultType); } /** resourceList 课件列表 */ private List<ResourceMap> resourceList = Lists.newArrayList(); public List<ResourceMap> getResourceList() { return resourceList; } public void setResourceList(List<ResourceMap> resourceList) { this.resourceList = resourceList; } /** * @name @see com.xiaodou.course.web.response.product.ResourceMap.java * @CopyRright (c) 2015 by XiaoDou NetWork Technology * * @author <a href="mailto:zhaodan@corp.51xiaodou.com">zhaodan</a> * @date 2015年10月20日 * @description 课件地址<-->节ID映射关系类 * @version 1.0 */ public static class ResourceMap extends ResourceDescription { /** itemId 节ID */ private String itemId; /** 资源Id */ private String resourceId; public String getItemId() { return itemId; } public void setItemId(String itemId) { this.itemId = itemId; } public String getResourceId() { return resourceId; } public void setResourceId(String resourceId) { this.resourceId = resourceId; } } }
[ "zedong.huang@bitmain.com" ]
zedong.huang@bitmain.com
e14eb19925c68c4da53595923b891c781b4e56c7
faffba554d4915d8010659888f8c12054cc4e4c0
/src/main/java/com/github/lindenb/jvarkit/tools/biostar/Biostar106668.java
959a797726442427b286777ca66bdccc629303ae
[ "MIT" ]
permissive
ash9nov/jvarkit
e7ad0ebd30a7a7de3a52a17aa68c85e1843cce7e
eac04e587d9e0f784dd1a00c2d1245891a537568
refs/heads/master
2020-12-03T08:12:43.781664
2015-11-24T15:06:19
2015-11-24T15:06:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,268
java
package com.github.lindenb.jvarkit.tools.biostar; import htsjdk.samtools.SAMFileHeader; import htsjdk.samtools.SAMFileWriter; import htsjdk.samtools.SAMFileWriterFactory; import htsjdk.samtools.SAMRecord; import htsjdk.samtools.SAMRecordIterator; import htsjdk.samtools.SamReader; import htsjdk.samtools.ValidationStringency; import htsjdk.samtools.util.CloserUtil; import java.io.File; import java.io.IOException; import java.util.Collection; import java.util.Collections; import java.util.List; import com.github.lindenb.jvarkit.util.command.Command; import com.github.lindenb.jvarkit.util.picard.SAMSequenceDictionaryProgress; import com.github.lindenb.jvarkit.util.picard.SamFileReaderFactory; @Deprecated /* use picard/RevertSam http://broadinstitute.github.io/picard/command-line-overview.html#RevertSam */ public class Biostar106668 extends AbstractBiostar106668 { private static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory.getLog(Biostar106668.class); @Override public Command createCommand() { return new MyCommand(); } static private class MyCommand extends AbstractBiostar106668.AbstractBiostar106668Command { @Override public Collection<Throwable> call() throws Exception { final List<String> args= getInputFiles(); SamReader samReader=null; SAMRecordIterator iter=null; SAMFileWriter samWriter=null; long nConvert=0; try { SamFileReaderFactory.setDefaultValidationStringency(ValidationStringency.SILENT); if(args.isEmpty()) { LOG.info("Reading sfomr stdin"); samReader=SamFileReaderFactory.mewInstance().openStdin(); } else if(args.size()==1) { File filename=new File(args.get(0)); LOG.info("Reading from "+filename); samReader=SamFileReaderFactory.mewInstance().open(filename); } else { return wrapException("Illegal number of arguments."); } SAMFileHeader header=samReader.getFileHeader(); header.addComment(getProgramCommandLine()); SAMFileWriterFactory sfw=new SAMFileWriterFactory(); sfw.setCreateIndex(false); sfw.setCreateMd5File(false); if(getOutputFile()!=null) { samWriter=sfw.makeSAMOrBAMWriter(header, true, getOutputFile()); } else if(super.binary) { samWriter=sfw.makeBAMWriter(header,true, stdout()); } else { samWriter=sfw.makeSAMWriter(header,true,stdout()); } iter=samReader.iterator(); SAMSequenceDictionaryProgress progress=new SAMSequenceDictionaryProgress(header); while(iter.hasNext()) { SAMRecord rec=progress.watch(iter.next()); if(rec.getDuplicateReadFlag()) { rec.setDuplicateReadFlag(false); ++nConvert; } samWriter.addAlignment(rec); } progress.finish(); LOG.info("Convert :"+nConvert); return Collections.emptyList(); } catch (Exception e) { LOG.error(e); return wrapException(e); } finally { CloserUtil.close(iter); CloserUtil.close(samReader); CloserUtil.close(samWriter); } } } /** * @param args */ public static void main(String[] args) throws IOException { new Biostar106668().instanceMainWithExit(args); } }
[ "plindenbaum@yahoo.fr" ]
plindenbaum@yahoo.fr
570851a219118220aa359bcbf25922f485e34c52
92f10c41bad09bee05acbcb952095c31ba41c57b
/app/src/main/java/io/github/alula/ohmygod/MainActivity2739.java
029cd5d27493f8ca57dab02548483968121630a5
[]
no_license
alula/10000-activities
bb25be9aead3d3d2ea9f9ef8d1da4c8dff1a7c62
f7e8de658c3684035e566788693726f250170d98
refs/heads/master
2022-07-30T05:54:54.783531
2022-01-29T19:53:04
2022-01-29T19:53:04
453,501,018
16
0
null
null
null
null
UTF-8
Java
false
false
339
java
package io.github.alula.ohmygod; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class MainActivity2739 extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } }
[ "6276139+alula@users.noreply.github.com" ]
6276139+alula@users.noreply.github.com
68f16a188a251fd10051caf834836a01f8eb827a
6baf1fe00541560788e78de5244ae17a7a2b375a
/hollywood/com.oculus.firsttimenux-FirstTimeNux/sources/com/facebook/common/internal/ImmutableList.java
10bb68c7975faf1081fa07a8fb26fa47601bffe5
[]
no_license
phwd/quest-tracker
286e605644fc05f00f4904e51f73d77444a78003
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
refs/heads/main
2023-03-29T20:33:10.959529
2021-04-10T22:14:11
2021-04-10T22:14:11
357,185,040
4
2
null
2021-04-12T12:28:09
2021-04-12T12:28:08
null
UTF-8
Java
false
false
710
java
package com.facebook.common.internal; import com.facebook.infer.annotation.Nullsafe; import java.util.ArrayList; import java.util.Collections; import java.util.List; @Nullsafe(Nullsafe.Mode.STRICT) public class ImmutableList<E> extends ArrayList<E> { private ImmutableList(int capacity) { super(capacity); } private ImmutableList(List<E> list) { super(list); } public static <E> ImmutableList<E> copyOf(List<E> list) { return new ImmutableList<>(list); } public static <E> ImmutableList<E> of(E... elements) { ImmutableList<E> list = new ImmutableList<>(elements.length); Collections.addAll(list, elements); return list; } }
[ "cyuubiapps@gmail.com" ]
cyuubiapps@gmail.com
fd740074bac3c88ed6fa25aa53109766b5786a60
6baf1fe00541560788e78de5244ae17a7a2b375a
/hollywood/com.oculus.statscollector-StatsCollector/sources/android/support/v4/view/animation/LookupTableInterpolator.java
14cb721e6e9865faa25e17cad7d07260ea23e3bc
[]
no_license
phwd/quest-tracker
286e605644fc05f00f4904e51f73d77444a78003
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
refs/heads/main
2023-03-29T20:33:10.959529
2021-04-10T22:14:11
2021-04-10T22:14:11
357,185,040
4
2
null
2021-04-12T12:28:09
2021-04-12T12:28:08
null
UTF-8
Java
false
false
874
java
package android.support.v4.view.animation; import android.view.animation.Interpolator; abstract class LookupTableInterpolator implements Interpolator { private final float mStepSize = (1.0f / ((float) (this.mValues.length - 1))); private final float[] mValues; protected LookupTableInterpolator(float[] values) { this.mValues = values; } public float getInterpolation(float input) { if (input >= 1.0f) { return 1.0f; } if (input <= 0.0f) { return 0.0f; } float[] fArr = this.mValues; int position = Math.min((int) (((float) (fArr.length - 1)) * input), fArr.length - 2); float f = this.mStepSize; float[] fArr2 = this.mValues; return fArr2[position] + ((fArr2[position + 1] - fArr2[position]) * ((input - (((float) position) * f)) / f)); } }
[ "cyuubiapps@gmail.com" ]
cyuubiapps@gmail.com
9558e8f52c7733797deffbeaa5cfa8f0cae29a38
7a3234d282fda192fed2c0aacc57c79477a27074
/net/minecraft/command/CommandServerPublishLocal.java
9f64aa4dbd85500fd56cc9949405409d98b2ceff
[]
no_license
mjuniper/mod-design
88a70724730492f9637f210410bcb128b7f7fe8d
9106cbffb1eb8113add8da7cfbb2bf37e9f1b38c
refs/heads/master
2021-01-10T06:46:12.944366
2016-10-03T21:59:05
2016-10-03T21:59:05
44,486,038
1
0
null
null
null
null
UTF-8
Java
false
false
1,020
java
package net.minecraft.command; import net.minecraft.server.MinecraftServer; import net.minecraft.world.EnumGameType; public class CommandServerPublishLocal extends CommandBase { public String getCommandName() { return "publish"; } /** * Return the required permission level for this command. */ public int getRequiredPermissionLevel() { return 4; } public String getCommandUsage(ICommandSender par1ICommandSender) { return "commands.publish.usage"; } public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr) { String s = MinecraftServer.getServer().shareToLAN(EnumGameType.SURVIVAL, false); if (s != null) { notifyAdmins(par1ICommandSender, "commands.publish.started", new Object[] {s}); } else { notifyAdmins(par1ICommandSender, "commands.publish.failed", new Object[0]); } } }
[ "mjuniper@gmail.com" ]
mjuniper@gmail.com
60d4bc47b5bda6420f4836e589cb837dabb3ee78
4d0f2d62d1c156d936d028482561585207fb1e49
/Ma nguon/zcs-8.0.2_GA_5570-src/ZimbraSoap/src/wsdl-test/generated/zcsclient/account/testGetIdentitiesResponse.java
c2ea6b403900fe704079015a89b68d892d505b84
[]
no_license
vuhung/06-email-captinh
e3f0ff2e84f1c2bc6bdd6e4167cd7107ec42c0bd
af828ac73fc8096a3cc096806c8080e54d41251f
refs/heads/master
2020-07-08T09:09:19.146159
2013-05-18T12:57:24
2013-05-18T12:57:24
32,319,083
0
2
null
null
null
null
UTF-8
Java
false
false
1,819
java
package generated.zcsclient.account; 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.XmlType; /** * <p>Java class for getIdentitiesResponse complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="getIdentitiesResponse"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="identity" type="{urn:zimbraAccount}identity" maxOccurs="unbounded" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "getIdentitiesResponse", propOrder = { "identity" }) public class testGetIdentitiesResponse { protected List<testIdentity> identity; /** * Gets the value of the identity 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 identity property. * * <p> * For example, to add a new item, do as follows: * <pre> * getIdentity().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link testIdentity } * * */ public List<testIdentity> getIdentity() { if (identity == null) { identity = new ArrayList<testIdentity>(); } return this.identity; } }
[ "vuhung16plus@gmail.com@ec614674-f94a-24a8-de76-55dc00f2b931" ]
vuhung16plus@gmail.com@ec614674-f94a-24a8-de76-55dc00f2b931
a073bc7114b68db51976f64906c77e9105c59389
0e02393f6d9c09f2453c3e7bc729052ff74f922f
/hBPostal/src/main/java/com/ksource/hbpostal/fragment/AllOrderFragment.java
18bf6f6a352fcc5aa6c7497745e3f2edc54316a7
[]
no_license
eaglelhq/HBPostal
fbcb6765d082940cb3511c2312ab9b1cbe8c3180
76df376aed3022506bbb1eacc598dbc1377242ba
refs/heads/master
2021-05-05T19:55:44.299097
2018-11-12T02:49:23
2018-11-12T02:49:23
103,887,994
0
0
null
null
null
null
UTF-8
Java
false
false
155
java
package com.ksource.hbpostal.fragment; public class AllOrderFragment extends BaseOrderFragment { @Override public int setState() { return 10; } }
[ "lhq11031103@126.com" ]
lhq11031103@126.com
1ce46922404b28199e6e93be2ed9e094ab7ba98f
24bc32e0a59c1def4fe5c42110e48e23c39bd288
/LeetCode/src/Easy/no929/Solution.java
cfc6608e71b787e8a92ee467cfb3ef7209c1fd8a
[]
no_license
Sword-Is-Cat/LeetCode
01e47108153d816947cad48f4b073a1743dd46c8
73b08b0945810fb4b976a2a5d3bc46cefbd923b6
refs/heads/master
2023-08-30T21:45:58.136842
2023-08-29T00:22:35
2023-08-29T00:22:35
253,831,514
0
0
null
null
null
null
UTF-8
Java
false
false
422
java
package Easy.no929; import java.util.HashSet; import java.util.Set; class Solution { public int numUniqueEmails(String[] emails) { Set<String> set = new HashSet<>(); for(String email : emails) { String[] mail = email.split("@"); set.add(mail[0].split("\\+")[0].replace(".", "").concat("@").concat(mail[1])); } return set.size(); } }
[ "jhbsp@naver.com" ]
jhbsp@naver.com
e78eb0955e4ab9fdabedf845c9f25564ded61dbe
ad9ce79e0d29107a00110bf5c0ec3ed2512cb553
/src/main/java/com/example/bootapitest/netty/day08google/TestSubscribeReqProto.java
39610927dca4c7d3a19fca068b7d566b49eff37b
[]
no_license
gittgo/boot-api-test
4d111e1ce13d5016d3a59e67d451ff4522777f18
42bac093ac8fe32cfd284f41fb4834bcdfc06a18
refs/heads/master
2022-08-09T05:19:05.517403
2020-05-02T22:55:22
2020-05-02T22:55:22
123,546,543
1
0
null
null
null
null
UTF-8
Java
false
false
1,702
java
//package com.example.bootapitest.netty.day08google; // //import com.google.protobuf.InvalidProtocolBufferException; // //import java.util.ArrayList; //import java.util.List; // ///** // * @author wang cheng wei // * @date 2019-11-14 14:16 // */ //public class TestSubscribeReqProto { // // private static byte[] encode(SubscribeReqProto.SubscribeReq req){ // return req.toByteArray(); // } // // private static SubscribeReqProto.SubscribeReq decode(byte[] body) throws InvalidProtocolBufferException { // return SubscribeReqProto.SubscribeReq.parseFrom(body); // } // // private static SubscribeReqProto.SubscribeReq createSubscribeReq(){ // SubscribeReqProto.SubscribeReq.Builder builder = SubscribeReqProto.SubscribeReq.newBuilder(); // builder.setSubReqID(1); // builder.setUserName("Lilinfeng"); // builder.setProductName("Netty Book"); // List<String> address = new ArrayList<>(); // address.add("NanJing YuHuaTai"); // address.add("BeiJing LiuLiChang"); // address.add("ShenZhen HongShuLin"); // builder.addAllAddress(address); // return builder.build(); // } // // public static void main(String[] args) throws InvalidProtocolBufferException { // SubscribeReqProto.SubscribeReq req = createSubscribeReq(); // System.out.println("Before encode : " + req.toString()); // SubscribeReqProto.SubscribeReq req2 = decode((encode(req))); // System.out.println("After decode : " + req.toString()); // System.out.println("Assert equal : -->" + req2.equals(req)); // // System.out.println(req); // System.out.println(req2); // // } // // // // //}
[ "332860608@qq.com" ]
332860608@qq.com
3ca530aca3a0078bb1d05722ed4aba7a707a6ef4
73267be654cd1fd76cf2cb9ea3a75630d9f58a41
/services/mrs/src/main/java/com/huaweicloud/sdk/mrs/v1/model/ListAvailableZonesResponse.java
6dd027e0dc3ea79c35c60b63ba81235d820edd69
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-java-v3
51b32a451fac321a0affe2176663fed8a9cd8042
2f8543d0d037b35c2664298ba39a89cc9d8ed9a3
refs/heads/master
2023-08-29T06:50:15.642693
2023-08-24T08:34:48
2023-08-24T08:34:48
262,207,545
91
57
NOASSERTION
2023-09-08T12:24:55
2020-05-08T02:27:00
Java
UTF-8
Java
false
false
4,302
java
package com.huaweicloud.sdk.mrs.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.huaweicloud.sdk.core.SdkResponse; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.function.Consumer; /** * Response Object */ public class ListAvailableZonesResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "available_zones") private List<AvailableZoneV2> availableZones = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "default_az_code") private String defaultAzCode; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "support_physical_az_group") private Boolean supportPhysicalAzGroup; public ListAvailableZonesResponse withAvailableZones(List<AvailableZoneV2> availableZones) { this.availableZones = availableZones; return this; } public ListAvailableZonesResponse addAvailableZonesItem(AvailableZoneV2 availableZonesItem) { if (this.availableZones == null) { this.availableZones = new ArrayList<>(); } this.availableZones.add(availableZonesItem); return this; } public ListAvailableZonesResponse withAvailableZones(Consumer<List<AvailableZoneV2>> availableZonesSetter) { if (this.availableZones == null) { this.availableZones = new ArrayList<>(); } availableZonesSetter.accept(this.availableZones); return this; } /** * 可用区列表 * @return availableZones */ public List<AvailableZoneV2> getAvailableZones() { return availableZones; } public void setAvailableZones(List<AvailableZoneV2> availableZones) { this.availableZones = availableZones; } public ListAvailableZonesResponse withDefaultAzCode(String defaultAzCode) { this.defaultAzCode = defaultAzCode; return this; } /** * 默认可用区编码 * @return defaultAzCode */ public String getDefaultAzCode() { return defaultAzCode; } public void setDefaultAzCode(String defaultAzCode) { this.defaultAzCode = defaultAzCode; } public ListAvailableZonesResponse withSupportPhysicalAzGroup(Boolean supportPhysicalAzGroup) { this.supportPhysicalAzGroup = supportPhysicalAzGroup; return this; } /** * 支持的物理可用区分组 * @return supportPhysicalAzGroup */ public Boolean getSupportPhysicalAzGroup() { return supportPhysicalAzGroup; } public void setSupportPhysicalAzGroup(Boolean supportPhysicalAzGroup) { this.supportPhysicalAzGroup = supportPhysicalAzGroup; } @Override public boolean equals(java.lang.Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } ListAvailableZonesResponse that = (ListAvailableZonesResponse) obj; return Objects.equals(this.availableZones, that.availableZones) && Objects.equals(this.defaultAzCode, that.defaultAzCode) && Objects.equals(this.supportPhysicalAzGroup, that.supportPhysicalAzGroup); } @Override public int hashCode() { return Objects.hash(availableZones, defaultAzCode, supportPhysicalAzGroup); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListAvailableZonesResponse {\n"); sb.append(" availableZones: ").append(toIndentedString(availableZones)).append("\n"); sb.append(" defaultAzCode: ").append(toIndentedString(defaultAzCode)).append("\n"); sb.append(" supportPhysicalAzGroup: ").append(toIndentedString(supportPhysicalAzGroup)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
48aa16a56a6fb61d531a9bcc3a67474897960b9b
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/16/16_3f26ab3b9169dc3b4343b4044bfabbf4d7c419f4/IMulti/16_3f26ab3b9169dc3b4343b4044bfabbf4d7c419f4_IMulti_t.java
df1c5bc369ad92e296fa08f7b67a56b59f75c33e
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
4,814
java
package edu.uw.zookeeper.protocol.proto; import java.io.IOException; import java.util.Collection; import java.util.List; import org.apache.jute.InputArchive; import org.apache.jute.OutputArchive; import com.google.common.base.Objects; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import com.google.common.collect.UnmodifiableIterator; import com.google.common.collect.UnmodifiableListIterator; @Operational(value=OpCode.MULTI) public abstract class IMulti<T extends Records.Coded> extends ICodedRecord<EmptyRecord> implements List<T> { private final List<T> delegate; protected IMulti(Iterable<T> ops) { super(EmptyRecord.getInstance()); this.delegate = Lists.newArrayList(ops); } protected List<T> delegate() { return delegate; } @Override public void serialize(OutputArchive archive, String tag) throws IOException { archive.startRecord(this, tag); for (T record: delegate()) { headerOf(record).serialize(archive, tag); record.serialize(archive, tag); } IMultiHeader.ofEnd().serialize(archive, tag); archive.endRecord(this, tag); } protected abstract IMultiHeader headerOf(T record); @Override public void deserialize(InputArchive archive, String tag) throws IOException { delegate().clear(); archive.startRecord(tag); IMultiHeader h = new IMultiHeader(); h.deserialize(archive, tag); while (!h.getDone()) { OpCode opcode = OpCode.of(h.getType()); T record = recordOf(opcode); record.deserialize(archive, tag); delegate().add(record); h.deserialize(archive, tag); } archive.endRecord(tag); } protected abstract T recordOf(OpCode opcode); @Override public String toString() { return Objects.toStringHelper(this).addValue(Records.iteratorToBeanString(delegate().iterator())).toString(); } @Override public UnmodifiableIterator<T> iterator() { return ImmutableList.copyOf(delegate()).iterator() ; } @Override public int size() { return delegate().size(); } @Override public boolean add(T e) { throw new UnsupportedOperationException(); } @Override public void add(int index, T element) { throw new UnsupportedOperationException(); } @Override public boolean addAll(Collection<? extends T> c) { throw new UnsupportedOperationException(); } @Override public boolean addAll(int index, Collection<? extends T> c) { throw new UnsupportedOperationException(); } @Override public void clear() { throw new UnsupportedOperationException(); } @Override public boolean contains(Object o) { return delegate().contains(o); } @Override public boolean containsAll(Collection<?> c) { return delegate().containsAll(c); } @Override public T get(int index) { return delegate().get(index); } @Override public int indexOf(Object o) { return delegate().indexOf(o); } @Override public boolean isEmpty() { return delegate().isEmpty(); } @Override public int lastIndexOf(Object o) { return delegate().lastIndexOf(o); } @Override public UnmodifiableListIterator<T> listIterator() { return ImmutableList.copyOf(delegate()).listIterator(); } @Override public UnmodifiableListIterator<T> listIterator(int index) { return ImmutableList.copyOf(delegate()).listIterator(index); } @Override public boolean remove(Object o) { throw new UnsupportedOperationException(); } @Override public T remove(int index) { throw new UnsupportedOperationException(); } @Override public boolean removeAll(Collection<?> c) { throw new UnsupportedOperationException(); } @Override public boolean retainAll(Collection<?> c) { throw new UnsupportedOperationException(); } @Override public T set(int index, T element) { throw new UnsupportedOperationException(); } @Override public ImmutableList<T> subList(int fromIndex, int toIndex) { return ImmutableList.copyOf(delegate()).subList(fromIndex, toIndex); } @Override public Object[] toArray() { return delegate().toArray(); } @Override public <U> U[] toArray(U[] a) { return delegate().toArray(a); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
a76de5d1bb58f3d367c9cf8123a958f4e49bb54a
712804efc761f095340a1128c4a7577a9fd4fcdd
/src/main/java/com/twineworks/tweakflow/lang/interpreter/ops/DivOp.java
308f8cc4d30c4ab454d074147177c5417d0e33bb
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause", "Apache-2.0", "BSD-2-Clause" ]
permissive
gitter-badger/tweakflow
097a47567373abaa9a93f61750381ee41e0db9a0
cfabfc96f1f6bcda18ec050108cfe64c2517868f
refs/heads/master
2020-05-14T09:52:43.062608
2019-04-16T19:11:37
2019-04-16T19:11:37
181,751,285
1
1
null
2019-04-16T19:12:44
2019-04-16T19:12:44
null
UTF-8
Java
false
false
3,935
java
/* * The MIT License (MIT) * * Copyright (c) 2019 Twineworks GmbH * * 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.twineworks.tweakflow.lang.interpreter.ops; import com.twineworks.tweakflow.lang.ast.expressions.DivNode; import com.twineworks.tweakflow.lang.errors.LangError; import com.twineworks.tweakflow.lang.errors.LangException; import com.twineworks.tweakflow.lang.types.Type; import com.twineworks.tweakflow.lang.types.Types; import com.twineworks.tweakflow.lang.values.Value; import com.twineworks.tweakflow.lang.values.Values; import com.twineworks.tweakflow.lang.interpreter.EvaluationContext; import com.twineworks.tweakflow.lang.interpreter.Stack; final public class DivOp implements ExpressionOp { private final DivNode node; private final ExpressionOp leftOp; private final ExpressionOp rightOp; public DivOp(DivNode node) { this.node = node; leftOp = node.getLeftExpression().getOp(); rightOp = node.getRightExpression().getOp(); } @Override public Value eval(Stack stack, EvaluationContext context) { Value left = leftOp.eval(stack, context); Value right = rightOp.eval(stack, context); ensureValidTypes(left, right, stack); if (left == Values.NIL) return Values.NIL; if (right == Values.NIL) return Values.NIL; Type leftType = left.type(); Type rightType = right.type(); // normal division promotes longs to doubles if (leftType == Types.LONG){ if (rightType == Types.LONG){ return Values.make(left.longNum().doubleValue() / right.longNum().doubleValue()); } if (rightType == Types.DOUBLE){ return Values.make(left.longNum().doubleValue() / right.doubleNum()); } } if (leftType == Types.DOUBLE){ if (rightType == Types.LONG){ return Values.make(left.doubleNum() / right.longNum().doubleValue()); } if (rightType == Types.DOUBLE){ return Values.make(left.doubleNum() / right.doubleNum()); } } throw new LangException(LangError.CAST_ERROR, "cannot divide types: "+leftType.name()+" and "+rightType.name(), stack, node.getSourceInfo()); } private void ensureValidTypes(Value left, Value right, Stack stack){ Type leftType = left.type(); Type rightType = right.type(); if ((left == Values.NIL || leftType == Types.DOUBLE || leftType == Types.LONG) && (right == Values.NIL || rightType == Types.DOUBLE || rightType == Types.LONG)){ return; } throw new LangException(LangError.CAST_ERROR, "cannot divide types "+left.type().name()+" and " + right.type().name(), stack, node.getSourceInfo()); } @Override public boolean isConstant() { return leftOp.isConstant() && rightOp.isConstant(); } @Override public ExpressionOp specialize() { return new DivOp(node); } @Override public ExpressionOp refresh() { return new DivOp(node); } }
[ "slawomir.chodnicki@gmail.com" ]
slawomir.chodnicki@gmail.com
5c6994cde8c2cfd59517c2785ec4b83773240363
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/4/4_f50708f9bde69a504a0d4429dbf14e55b727a928/ObjectInputStreamWithClassLoader/4_f50708f9bde69a504a0d4429dbf14e55b727a928_ObjectInputStreamWithClassLoader_t.java
12dbae2c2352597d5eb8f3a6d05c622429744595
[]
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
911
java
//Prevayler(TM) - The Free-Software Prevalence Layer. //Copyright (C) 2001-2003 Klaus Wuestefeld //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. package org.prevayler.foundation; import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.io.ObjectStreamClass; public class ObjectInputStreamWithClassLoader extends ObjectInputStream { ClassLoader _loader; public ObjectInputStreamWithClassLoader(InputStream stream, ClassLoader loader) throws IOException { super(stream); _loader = loader; } protected Class resolveClass(ObjectStreamClass v) throws IOException, ClassNotFoundException { return(_loader != null ? Class.forName(v.getName(), false, _loader) : super.resolveClass(v)); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
ac211cf96d64c14b5ef8dc33c1e86bc2cfce331b
bfac99890aad5f43f4d20f8737dd963b857814c2
/reg4/v0/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-velocity/src/main/java/org/xwiki/rendering/internal/macro/velocity/filter/IndentVelocityMacroFilter.java
d5938897d287e24738dc7da330294ce372c65c97
[]
no_license
STAMP-project/dbug
3b3776b80517c47e5cac04664cc07112ea26b2a4
69830c00bba4d6b37ad649aa576f569df0965c72
refs/heads/master
2021-01-20T03:59:39.330218
2017-07-12T08:03:40
2017-07-12T08:03:40
89,613,961
0
1
null
null
null
null
UTF-8
Java
false
false
1,916
java
/* * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.xwiki.rendering.internal.macro.velocity.filter; import java.util.regex.Pattern; import javax.inject.Named; import javax.inject.Singleton; import org.apache.velocity.VelocityContext; import org.xwiki.component.annotation.Component; import org.xwiki.rendering.macro.velocity.filter.VelocityMacroFilter; /** * Remove first spaces and tabs of each line to support indentation. * * @version $Id: d10f4a54375376f634cee789d189ebb352cdfc1f $ * @since 1.9.1 */ @Component @Named("indent") @Singleton public class IndentVelocityMacroFilter implements VelocityMacroFilter { /** * Match indentation spaces. */ private static final Pattern INDENT_PATTERN = Pattern.compile("^[ \t]++", Pattern.MULTILINE); @Override public String before(String content, VelocityContext velocityContect) { return INDENT_PATTERN.matcher(content).replaceAll(""); } @Override public String after(String content, VelocityContext velocityContect) { return content; } }
[ "caroline.landry@inria.fr" ]
caroline.landry@inria.fr
6844ca1fc21542b6d5338138c4bd87682a3ea729
9fc2d0100b079485f3fac4ac1df7b354f0a18243
/took-background/src/main/java/com/tooklili/admin/web/controller/login/LoginController.java
1dfde1b2754bdb7335d195ae1515da2ef777d84c
[]
no_license
rockzeng/took-parent
dc21b816d4c9c7c2b7481a433acc4fb63a1c3fa1
86e4a0b64296d65dc5679ef7814597ab27b58808
refs/heads/master
2020-05-23T12:20:52.229692
2018-09-16T05:00:53
2018-09-16T05:00:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,948
java
package com.tooklili.admin.web.controller.login; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import javax.validation.Valid; import org.apache.commons.lang.StringUtils; import org.springframework.stereotype.Controller; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import com.tooklili.admin.web.util.CookieUtils; import com.tooklili.model.admin.SysUser; import com.tooklili.service.biz.intf.admin.system.UserService; import com.tooklili.service.constant.Constants; import com.tooklili.service.util.MessageUtils; import com.tooklili.util.result.BaseResult; import com.tooklili.util.result.PlainResult; import com.tooklili.vo.admin.LoginVo; /** * 登录、退出控制器 * @author shuai.ding * @date 2017年9月27日下午1:58:20 */ @Controller public class LoginController { @Resource private UserService userService; /** * 去登录页面 * @author shuai.ding * @return */ @RequestMapping("/toLogin") public String toLogin(){ return "login/login"; } /** * 登录 * @author shuai.ding * @return */ @RequestMapping(value="/login", method=RequestMethod.POST) @ResponseBody public BaseResult login(@Valid LoginVo loginVo,BindingResult bindingResult,HttpSession session,HttpServletResponse response){ BaseResult result = new BaseResult(); if(bindingResult.hasErrors()){ result.setErrorMessage(bindingResult.getFieldErrors().get(0).getDefaultMessage()); return result; } //验证验证码是否正确 String code = (String)session.getAttribute(Constants.CODE_IMAGE_KEY); if(!loginVo.getCode().equals(code)){ return result.setErrorMessage(MessageUtils.message("code.error")); } //password md5 encryption PlainResult<SysUser> plainResult = userService.findUserByUsernameAndPassword(loginVo.getUserName(), loginVo.getPassword()); if(!plainResult.isSuccess()){ return result.setErrorMessage(plainResult.getMessage()); } SysUser sysUser = plainResult.getData(); //记住我 if(StringUtils.isNotEmpty(loginVo.getIfRemember()) && "on".equals(loginVo.getIfRemember())){ String value=userService.generatorCookieValueAboutRememberMe(loginVo.getUserName(), sysUser.getUserPassword(), sysUser.getUserSalt()).getData(); //记住2天时间 int maxAge=2 * 24 * 60 * 60; CookieUtils.addCookie(Constants.REMEMBER_ME_COOKIE_KEY, value, maxAge, true, response); } session.setAttribute(Constants.CURRENT_USER, sysUser); return result; } /** * 登出 * @author shuai.ding * @param session * @return */ @RequestMapping("/logout") @ResponseBody public BaseResult logout(HttpSession session){ session.removeAttribute(Constants.CURRENT_USER); return new BaseResult(); } }
[ "1114332905@qq.com" ]
1114332905@qq.com
84e5b508a6972f59d6e7b04f29888abbc5493d6d
f4772134546575be4dd006f14c2a3aae2d3e89fd
/spring-kafka/src/main/java/org/springframework/kafka/support/serializer/JsonSerde.java
b05cd29bc176ca38ef019a974af257b2567bcd89
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
denis554/spring-kafka
a739e2551420c6fac424125d3911fbf83039558b
e98664f4293e278a7bb148f1aae2d91bddc1a0d2
refs/heads/master
2020-05-02T16:19:58.027809
2019-03-27T16:37:01
2019-03-27T16:37:01
178,065,383
3
0
null
null
null
null
UTF-8
Java
false
false
3,869
java
/* * Copyright 2017-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 * * 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.kafka.support.serializer; import java.util.Map; import org.apache.kafka.common.serialization.Deserializer; import org.apache.kafka.common.serialization.Serde; import org.apache.kafka.common.serialization.Serializer; import org.springframework.core.ResolvableType; import org.springframework.lang.Nullable; import org.springframework.util.Assert; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.MapperFeature; import com.fasterxml.jackson.databind.ObjectMapper; /** * A {@link org.apache.kafka.common.serialization.Serde} that provides serialization and * deserialization in JSON format. * <p> * The implementation delegates to underlying {@link JsonSerializer} and * {@link JsonDeserializer} implementations. * * @param <T> target class for serialization/deserialization * * @author Marius Bogoevici * @author Elliot Kennedy * @author Gary Russell * @author Ivan Ponomarev * * @since 1.1.5 */ public class JsonSerde<T> implements Serde<T> { private final JsonSerializer<T> jsonSerializer; private final JsonDeserializer<T> jsonDeserializer; public JsonSerde() { this((ObjectMapper) null); } public JsonSerde(Class<? super T> targetType) { this(targetType, null); } public JsonSerde(ObjectMapper objectMapper) { this(null, objectMapper); } @SuppressWarnings("unchecked") public JsonSerde(@Nullable Class<? super T> targetTypeArg, @Nullable ObjectMapper objectMapperArg) { ObjectMapper objectMapper = objectMapperArg; Class<T> targetType = (Class<T>) targetTypeArg; if (objectMapper == null) { objectMapper = new ObjectMapper(); objectMapper.configure(MapperFeature.DEFAULT_VIEW_INCLUSION, false); objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); } this.jsonSerializer = new JsonSerializer<>(objectMapper); if (targetType == null) { targetType = (Class<T>) ResolvableType.forClass(getClass()).getSuperType().resolveGeneric(0); } this.jsonDeserializer = new JsonDeserializer<>(targetType, objectMapper); } public JsonSerde(JsonSerializer<T> jsonSerializer, JsonDeserializer<T> jsonDeserializer) { Assert.notNull(jsonSerializer, "'jsonSerializer' must not be null."); Assert.notNull(jsonDeserializer, "'jsonDeserializer' must not be null."); this.jsonSerializer = jsonSerializer; this.jsonDeserializer = jsonDeserializer; } @Override public void configure(Map<String, ?> configs, boolean isKey) { this.jsonSerializer.configure(configs, isKey); this.jsonDeserializer.configure(configs, isKey); } @Override public void close() { this.jsonSerializer.close(); this.jsonDeserializer.close(); } @Override public Serializer<T> serializer() { return this.jsonSerializer; } @Override public Deserializer<T> deserializer() { return this.jsonDeserializer; } /** * Configure the TypeMapper to use key types if the JsonSerde is used to serialize keys. * @param isKey Use key type headers if true * @return the JsonSerde * @since 2.1.3 */ public JsonSerde<T> setUseTypeMapperForKey(boolean isKey) { this.jsonSerializer.setUseTypeMapperForKey(isKey); this.jsonDeserializer.setUseTypeMapperForKey(isKey); return this; } }
[ "denisignatenko554@gmail.com" ]
denisignatenko554@gmail.com
c3053b471052539fe610ff2559976c08fb4e4a0d
d74c2ca437a58670dc8bfbf20a3babaecb7d0bea
/SAP_858310_lines/Source - 963k/js.webservices.service/dev/src/_tc~je~webservices/java/com/sap/engine/services/sca/plugins/ws/tools/sdo/das/genericerror.java
28313f9c4faa5e55797d813b38f02fe9a92901a4
[]
no_license
javafullstackstudens/JAVA_SAP
e848e9e1a101baa4596ff27ce1aedb90e8dfaae8
f1b826bd8a13d1432e3ddd4845ac752208df4f05
refs/heads/master
2023-06-05T20:00:48.946268
2021-06-30T10:07:39
2021-06-30T10:07:39
381,657,064
0
0
null
null
null
null
UTF-8
Java
false
false
420
java
package com.sap.engine.services.sca.plugins.ws.tools.sdo.das; @com.sap.sdo.api.SdoTypeMetaData( open = true, uri = "http://sdo.sap.com/das/ws/", sequenced = true ) public interface GenericError { String getMessage(); void setMessage(String message); String getName(); void setName(String name); GenericError getRootCause(); void setRootCause(GenericError rootCause); }
[ "Yalin.Arie@checkmarx.com" ]
Yalin.Arie@checkmarx.com
ded1a960221f60e17c2c2283d32ce73fc2ef134c
732a6fa36e14baf7f828ef19a62b515312f9a109
/channels/trunk/src/main/java/com/mindalliance/channels/pages/components/segment/RestrictionsPanel.java
8472b4ec11ee2195613403790919947b08a4584f
[]
no_license
gauravbvt/test
4e991ad3e7dd5ea670ab88f3a74fe8a42418ec20
04e48c87ff5c2209fc4bc703795be3f954909c3a
refs/heads/master
2020-11-24T02:43:32.565109
2014-10-07T23:47:39
2014-10-07T23:47:39
100,468,202
0
0
null
null
null
null
UTF-8
Java
false
false
7,466
java
package com.mindalliance.channels.pages.components.segment; import com.mindalliance.channels.core.command.Change; import com.mindalliance.channels.core.command.commands.UpdateObject; import com.mindalliance.channels.core.command.commands.UpdateSegmentObject; import com.mindalliance.channels.core.model.Flow; import com.mindalliance.channels.pages.components.AbstractCommandablePanel; import com.mindalliance.channels.pages.components.TabIndexable; import com.mindalliance.channels.pages.components.TabIndexer; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.Predicate; import org.apache.wicket.ajax.AjaxEventBehavior; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket.markup.html.WebMarkupContainer; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.ChoiceRenderer; import org.apache.wicket.markup.html.form.DropDownChoice; import org.apache.wicket.markup.html.list.ListItem; import org.apache.wicket.markup.html.list.ListView; import org.apache.wicket.model.IModel; import org.apache.wicket.model.PropertyModel; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; /** * Flow restrictions editing panel. * Assumes that flow is editable and locked by user. * Copyright (C) 2008-2013 Mind-Alliance Systems. All Rights Reserved. * Proprietary and Confidential. * User: jf * Date: 6/2/13 * Time: 10:59 AM */ public class RestrictionsPanel extends AbstractCommandablePanel implements TabIndexable { private IModel<Flow> flowModel; private boolean isSend; private WebMarkupContainer restrictionsEditorContainer; private DropDownChoice<Flow.Restriction> newRestrictionChoice; private TabIndexer tabIndexer; public RestrictionsPanel( String id, IModel<Flow> flowModel, boolean isSend ) { super( id, flowModel ); this.flowModel = flowModel; this.isSend = isSend; init(); } @Override public void initTabIndexing( TabIndexer tabIndexer ) { this.tabIndexer = tabIndexer; if ( tabIndexer != null ) { tabIndexer.giveTabIndexTo( newRestrictionChoice ); } } private void init() { restrictionsEditorContainer = new WebMarkupContainer( "restrictionsEditorContainer" ); restrictionsEditorContainer.setOutputMarkupId( true ); add( restrictionsEditorContainer ); addRestrictionsList(); addNewRestrictionChoice(); } private void addRestrictionsList() { ListView<Flow.Restriction> restrictionsListView = new ListView<Flow.Restriction>( "restrictions", getFlow().getRestrictions() ) { @Override protected void populateItem( ListItem<Flow.Restriction> item ) { final Flow.Restriction restriction = item.getModelObject(); // name Label nameLabel = new Label( "name", restriction.getLabel( isSend ) ); item.add( nameLabel ); // delete WebMarkupContainer deleteImg = new WebMarkupContainer( "delete" ); deleteImg.add( new AjaxEventBehavior( "onclick" ) { @Override protected void onEvent( AjaxRequestTarget target ) { removeRestriction( restriction ); restrictionsChanged( target ); } } ); item.add( deleteImg ); } }; restrictionsListView.setOutputMarkupId( true ); restrictionsEditorContainer.addOrReplace( restrictionsListView ); } private void restrictionsChanged( AjaxRequestTarget target ) { addRestrictionsList(); addNewRestrictionChoice(); target.add( restrictionsEditorContainer ); target.add( newRestrictionChoice ); update( target, new Change( Change.Type.Updated, getFlow(), "restrictions" ) ); } private void removeRestriction( Flow.Restriction restriction ) { doCommand( new UpdateSegmentObject( getUsername(), getFlow(), "restrictions", restriction, UpdateObject.Action.Remove ) ); } private void addNewRestrictionChoice() { newRestrictionChoice = new DropDownChoice<Flow.Restriction>( "newRestriction", new PropertyModel<Flow.Restriction>( this, "newRestriction" ), getOtherRestrictions(), new ChoiceRenderer<Flow.Restriction>() { @Override public Object getDisplayValue( Flow.Restriction restriction ) { return restriction.getLabel( isSend ); } } ); newRestrictionChoice.setOutputMarkupId( true ); newRestrictionChoice.add( new AjaxFormComponentUpdatingBehavior( "onchange" ) { @Override protected void onUpdate( AjaxRequestTarget target ) { restrictionsChanged( target ); } } ); addOrReplace( newRestrictionChoice ); applyTabIndexTo( newRestrictionChoice, tabIndexer ); } private List<Flow.Restriction> getOtherRestrictions() { List<Flow.Restriction> otherRestrictions = new ArrayList<Flow.Restriction>(); List<Flow.Restriction> setRestrictions = getFlow().getRestrictions(); for ( final Flow.Restriction restriction : Flow.Restriction.values() ) { if ( !setRestrictions.contains( restriction ) && !CollectionUtils.exists( setRestrictions, new Predicate() { @Override public boolean evaluate( Object object ) { Flow.Restriction setRestriction = (Flow.Restriction) object; return setRestriction.contradicts( restriction ) || Flow.Restriction.implies( setRestriction, restriction ); } } ) ) { otherRestrictions.add( restriction ); } } Collections.sort( otherRestrictions, new Comparator<Flow.Restriction>() { @Override public int compare( Flow.Restriction r1, Flow.Restriction r2 ) { return r1.getLabel( isSend ).compareTo( r2.getLabel( isSend ) ); } } ); return otherRestrictions; } public Flow.Restriction getNewRestriction() { return null; } public void setNewRestriction( Flow.Restriction restriction ) { if ( restriction != null && !getFlow().getRestrictions().contains( restriction ) ) doCommand( new UpdateSegmentObject( getUsername(), getFlow(), "restrictions", restriction, UpdateObject.Action.AddUnique ) ); } private Flow getFlow() { return flowModel.getObject(); } }
[ "jf@baad322d-9929-0410-88f0-f92e8ff3e1bd" ]
jf@baad322d-9929-0410-88f0-f92e8ff3e1bd
2aa4af7780351e527ea5fcaec2c5e65ff72e6044
035022d00a0229d421c9393c61c3511a6718e491
/Item/src/zinbig/item/model/projects/CreatorAssignmentStrategy.java
b5304f5405eb2df5b3eb31a3174f4d49a8687c55
[]
no_license
leonelguccione/EjemploHibernate
bba35adca1ff2cfd5fa142a89977fe02bf7bd833
6feb6aa082aa347432ae4fee2a42e4899df3f09d
refs/heads/master
2021-01-22T03:05:44.500682
2017-02-09T15:11:33
2017-02-09T15:11:33
81,095,782
0
0
null
null
null
null
ISO-8859-1
Java
false
false
1,201
java
/** * Este paquete contiene las clases e interfaces que representan los proyectos * y componentes administrados por el ITeM. */ package zinbig.item.model.projects; import zinbig.item.model.users.AbstractUser; import zinbig.item.model.users.User; /** * Esta clase implementa una estrategia de asignación de responsable que siempre * asigna al creador del ítem como responsable del mismo. * * @author Javier Bazzocco javier.bazzocco@zinbig.com * */ public class CreatorAssignmentStrategy extends AbstractItemResponsibleAssignmentStrategy { /** * Asigna el responsable al ítem según la estrategia que corresponda. * * @param aProject * es el proyecto en el cual se está agregando el ítem. * @param creator * es el usuario que está creando el ítem. * @param responsibleCandidate * es el usuario o grupo de usuarios candidato a ser el * responsable del ítme creado. * @return el usuario que debe ser asignado como responsable. */ public AbstractUser getResponsibleForNewItem(Project aProject, User creator, AbstractUser responsibleCandidate) { return creator; } }
[ "leonel@leonel-QAL50" ]
leonel@leonel-QAL50
5a46532b1250cd11578d9ce9d02675ee3b61647f
0a5cd2336a0b41b348ae396818ef0b6cce3b8a20
/kchartlib/src/main/java/com/github/tifezh/kchartlib/chart/formatter/TimeFormatter.java
09723bf9fea897d768ebe9cd330392ac2328ee3f
[ "Apache-2.0" ]
permissive
1067899750/kAndroid
dc608192d4d8402a1cc8822f6786f713553d153b
68fd95d38ca22e9d2afa81640f02ec6dcf777667
refs/heads/master
2022-02-12T04:38:25.507720
2022-01-26T10:02:37
2022-01-26T10:02:37
154,624,591
73
18
null
null
null
null
UTF-8
Java
false
false
548
java
package com.github.tifezh.kchartlib.chart.formatter; import com.github.tifezh.kchartlib.chart.base.IDateTimeFormatter; import com.github.tifezh.kchartlib.utils.DateUtil; import java.util.Date; /** * * Description 时间格式化器 * Author puyantao * Email 1067899750@qq.com * Date 2018-10-26 17:38 */ public class TimeFormatter implements IDateTimeFormatter { @Override public String format(Date date) { if (date == null) { return ""; } return DateUtil.shortTimeFormat.format(date); } }
[ "12345678" ]
12345678
df1140c06a59abaadc958b09c930f7a48c9b7b20
18c995dfdda09f0b2b0932cd10aeddb3713e98ec
/store/src/main/java/org/apache/rocketmq/delay/cleaner/LogCleaner.java
7054262de8b762d7d2dc891a541129b94c634a5a
[ "Apache-2.0" ]
permissive
DannyHoo/rocketmq-delay
a4f7d9855ba92e113bf1c3b1fc82ae9f491958bc
dd575d34c67561530815fc456584cf5831c178e0
refs/heads/master
2022-12-15T05:36:20.589260
2020-09-24T03:17:04
2020-09-24T03:17:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,269
java
package org.apache.rocketmq.delay.cleaner; import org.apache.rocketmq.delay.Switchable; import org.apache.rocketmq.delay.config.StoreConfiguration; import org.apache.rocketmq.delay.store.log.DispatchLog; import org.apache.rocketmq.delay.store.log.ScheduleLog; import com.google.common.util.concurrent.ThreadFactoryBuilder; import org.apache.rocketmq.logging.InternalLogger; import org.apache.rocketmq.logging.InternalLoggerFactory; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; public class LogCleaner implements Switchable { private static final InternalLogger LOGGER = InternalLoggerFactory.getLogger(LogCleaner.class); private final DispatchLog dispatchLog; private final ScheduleLog scheduleLog; private final StoreConfiguration config; private final ScheduledExecutorService cleanScheduler; public LogCleaner(StoreConfiguration config, DispatchLog dispatchLog, ScheduleLog scheduleLog) { this.config = config; this.scheduleLog = scheduleLog; this.dispatchLog = dispatchLog; this.cleanScheduler = Executors.newSingleThreadScheduledExecutor(new ThreadFactoryBuilder().setNameFormat("delay-broker-cleaner-%d").build()); } private void cleanDispatchLog(CleanHook hook) { dispatchLog.clean(hook); } private void cleanScheduleOldLog() { scheduleLog.clean(); } private void clean() { if (!config.isDeleteExpiredLogsEnable()) return; try { cleanDispatchLog(scheduleLog::clean); cleanScheduleOldLog(); } catch (Throwable e) { LOGGER.error("LogCleaner exec clean error.", e); } } @Override public void start() { cleanScheduler.scheduleAtFixedRate(this::clean, 0, config.getLogCleanerIntervalSeconds(), TimeUnit.SECONDS); } @Override public void shutdown() { cleanScheduler.shutdown(); try { cleanScheduler.awaitTermination(10, TimeUnit.SECONDS); } catch (InterruptedException e) { LOGGER.error("Shutdown log cleaner scheduler interrupted."); } } public interface CleanHook { boolean clean(long key); } }
[ "liushuaishuai@rr.tv" ]
liushuaishuai@rr.tv
5c5df397081bd7adaa71ff3c8d36cfcf75e4f0e5
82d82aa06fef6785356b55c40e87610ad6b0a59f
/mainmodule/src/main/java/com/daqsoft/travelCultureModule/hotel/view/MAppBarReclyerView.java
9f8ed2631e49c0e434783a0297b85b102d9b6e1e
[]
no_license
loading103/wly_master
e6f8cf69f55177a1bdc397c6d21a4b84390cf5e3
71b8f4f885b531219020a0801665b81239ac8da4
refs/heads/main
2023-07-16T22:54:30.847693
2021-09-03T09:30:48
2021-09-03T09:30:48
402,705,010
0
0
null
null
null
null
UTF-8
Java
false
false
2,180
java
package com.daqsoft.travelCultureModule.hotel.view; import android.content.Context; import android.util.AttributeSet; import androidx.annotation.Nullable; import androidx.recyclerview.widget.RecyclerView; /** * 可以控制NestedScrollingChild2接口的Recyclerview * * @author EthanCo * @since 2017/12/8 */ public class MAppBarReclyerView extends RecyclerView { boolean isNestedEnable = false; public MAppBarReclyerView(Context context) { super(context); } public MAppBarReclyerView(Context context, @Nullable AttributeSet attrs) { super(context, attrs); } public MAppBarReclyerView(Context context, @Nullable AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } public boolean isNestedEnable() { return isNestedEnable; } public void setNestedEnable(boolean nestedEnable) { isNestedEnable = nestedEnable; } @Override public boolean startNestedScroll(int axes, int type) { if (isNestedEnable) { return super.startNestedScroll(axes, type); } else { return false; } } @Override public void stopNestedScroll(int type) { if (isNestedEnable) { super.stopNestedScroll(type); } } @Override public boolean hasNestedScrollingParent(int type) { if (isNestedEnable) { return super.hasNestedScrollingParent(type); } else { return false; } } @Override public boolean dispatchNestedScroll(int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int[] offsetInWindow, int type) { if (isNestedEnable) { return super.dispatchNestedScroll(dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed, offsetInWindow, type); } else { return false; } } @Override public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow, int type) { if (isNestedEnable) { return super.dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow, type); } else { return false; } } }
[ "qiuql@daqsoft.com" ]
qiuql@daqsoft.com
2c592e808d66df4653e3d1cc1508cc2177ff103c
41ccf6613996afd27bed1129ad7124d450efdc71
/sc-glink/sc-glink-common/src/main/java/com/yatang/sc/xinyi/dto/purchase/XinyiPurchaseRefundOrderLinesDto.java
913d12652f35b46c074b2058d2ed826f54d72c77
[]
no_license
sengeiou/demo-1
ea02da49043080694f5d6d1554e5a7766bae3ca6
a15185df951c12ac863ce530f824d0280b8e7e8a
refs/heads/master
2021-09-09T10:18:06.081572
2018-03-15T04:19:37
2018-03-15T04:19:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,599
java
package com.yatang.sc.xinyi.dto.purchase; import com.thoughtworks.xstream.annotations.XStreamAliasType; import java.io.Serializable; /** * @description: 采购退货单 心怡入参dto (货品详情) * @author: yinyuxin * @date: 2017/11/8 19:25 * @version: v1.0 */ @XStreamAliasType("orderLine") public class XinyiPurchaseRefundOrderLinesDto implements Serializable { private static final long serialVersionUID = 3666909998603793126L; /** * 退货单明细ID */ private String orderLineNo; /** * 退货单仓库编码(逻辑仓编码)在“仓库信息表—逻辑仓”中的所属子公司编码--心怡专用 */ private String ownerCode; /** * 退货单商品编码 */ private String itemCode; /** * 退货单商品名称 */ private String itemName; /** * 退货单商品退货数量 */ private Integer planQty; public String getOrderLineNo() { return orderLineNo; } public void setOrderLineNo(String orderLineNo) { this.orderLineNo = orderLineNo; } public String getOwnerCode() { return ownerCode; } public void setOwnerCode(String ownerCode) { this.ownerCode = ownerCode; } public String getItemCode() { return itemCode; } public void setItemCode(String itemCode) { this.itemCode = itemCode; } public String getItemName() { return itemName; } public void setItemName(String itemName) { this.itemName = itemName; } public Integer getPlanQty() { return planQty; } public void setPlanQty(Double planQty) { this.planQty = planQty==null?null:planQty.intValue(); } }
[ "huangjianjun5987@163.com" ]
huangjianjun5987@163.com
eb3f076fa2c842307e8e3930658e90a679b4b868
744819ca0ddb00b1705b31b611298a9155aa640e
/jndi/src/test/java/org/shoban/jndi/newstuff/ConstructLdapName.java
c9b91e72479e8c7f8df5eaee49c2378c8953f1b9
[]
no_license
shobancs/javario
4dcff83c565fe6fdc737ad9c67ea7ff34eac4bb8
2055f9e0bd86a61bca2523ba69e5f525ba3cb60f
refs/heads/master
2022-12-22T00:03:39.846763
2020-07-09T16:44:39
2020-07-09T16:44:39
66,690,745
0
1
null
2022-12-16T03:39:43
2016-08-27T02:11:16
Java
UTF-8
Java
false
false
2,248
java
package org.shoban.jndi.newstuff; /* * Copyright (c) 1995, 2008, Oracle and/or its affiliates. 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 Oracle or 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 javax.naming.ldap.*; import javax.naming.*; /* * Creates an LdapName and prints its components * */ public class ConstructLdapName { public static void main(String args[]) { String name = "cn=Mango, ou=Fruits, o=Food"; try { LdapName dn = new LdapName(name); System.out.println(dn + " has " + dn.size() + " RDNs: "); for (int i = 0; i < dn.size(); i++) { System.out.println(dn.get(i)); } } catch (InvalidNameException e) { System.out.println("Cannot parse name: " + name); } } }
[ "scheekur@cisco.com" ]
scheekur@cisco.com
83d994a2892b477d9f827407761dfba58d3103e2
3c47d1f995ae168bc6bba7c119d1b5862f813a83
/ruoyi-common/src/main/java/com/ruoyi/common/utils/message/client/Request.java
d27f3f653ce37c465e6c2bbc558d86f34e691377
[ "MIT" ]
permissive
iosdouble/Base-Vue
30ea727bbb6800e1e2573f26406028070b42fec5
14bd0ef30185ea373bb1cf274af78d056e566a72
refs/heads/master
2023-03-05T05:45:01.135263
2021-02-18T03:29:36
2021-02-18T03:29:36
334,012,739
0
0
null
null
null
null
UTF-8
Java
false
false
788
java
package com.ruoyi.common.utils.message.client; public interface Request { public static RequestBuilder newHttpRequestBuilder() { return new HttpRequestBuilder(); } public static final String POST = "POST"; public static final String GET = "GET"; public static enum ContentType { XML("application/xml"), JSON("application/json"), RAW("application/octet-stream"), FORM("application/x-www-form-urlencoded"), TEXT("text/plain; charset=UTF-8"); private String value; ContentType(String type) { this.value = type; } @Override public String toString() { // TODO Auto-generated method stub return value; } } public RequestBuilder builder(); public Response send(String data); public Response send(String url, String data); public void release(); }
[ "18202504057@163.com" ]
18202504057@163.com
92074854e648e2a0e58ca122515cb790e76b0d1d
f6f56a6feee21ecf2146d5e25174c90bef4c3bd7
/src/main/java/com/chenghe/sys/pojo/SysRolePermission.java
8a211fee0944f24239b50d3bb6aa5307290e8bf5
[]
no_license
viewolspace/chenghe_ms
96054f5b3e129c42f05a05c47ce920e990b78b24
16a9d08329d0dac1f1dd857f483caeaa1c5c0395
refs/heads/master
2021-07-01T13:32:05.431718
2020-11-22T01:08:32
2020-11-22T01:08:32
197,676,893
0
0
null
null
null
null
UTF-8
Java
false
false
861
java
package com.chenghe.sys.pojo; import java.io.Serializable; import java.util.Date; /** * 角色权限对应关系 */ public class SysRolePermission implements Serializable { private static final long serialVersionUID = 1L; private int id; private int rid;//角色ID private int pid;//权限ID private Date createTime; public SysRolePermission() { } public SysRolePermission(int rid, int pid) { this.rid = rid; this.pid = pid; } public int getId() { return id; } public void setId(int id) { this.id = id; } public int getRid() { return rid; } public void setRid(int rid) { this.rid = rid; } public int getPid() { return pid; } public void setPid(int pid) { this.pid = pid; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } }
[ "shileibrave@163.com" ]
shileibrave@163.com
7c8c821aa602111f250dd7716f7864851c062c18
18c70f2a4f73a9db9975280a545066c9e4d9898e
/mirror-composite/composite-api/src/main/java/com/aspire/mirror/composite/service/template/payload/CompMonitorDetailResponse.java
bdaaecd50119ccbd2645ef32f11d6f197537af58
[]
no_license
iu28igvc9o0/cmdb_aspire
1fe5d8607fdacc436b8a733f0ea44446f431dfa8
793eb6344c4468fe4c61c230df51fc44f7d8357b
refs/heads/master
2023-08-11T03:54:45.820508
2021-09-18T01:47:25
2021-09-18T01:47:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,558
java
package com.aspire.mirror.composite.service.template.payload; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; /** * TODO * <p> * 项目名称: mirror平台 * 包: com.aspire.mirror.composite.service.template.payload * 类名称: CompMonitorDetailResponse.java * 类描述: TODO * 创建人: JinSu * 创建时间: 2018/9/6 13:48 * 版本: v1.0 */ @Data @JsonInclude(JsonInclude.Include.NON_EMPTY) public class CompMonitorDetailResponse { @JsonProperty("name") private String itemName; @JsonProperty("type") private String type; @JsonProperty("key_") private String itemKey; @JsonProperty("delay") private String delay; @JsonProperty("history") private Integer history; @JsonProperty("value_type") private String valueType; @JsonProperty("units") private String units; @JsonProperty("data_type") private String dataType; @Override public boolean equals(Object obj) { if (!this.getClass().isInstance(obj)) { return false; } CompMonitorDetailResponse other = this.getClass().cast(obj); if (this.getItemKey() == null) { return false; } return this.getItemKey().equals(other.getItemKey()); } @Override public int hashCode() { int hash = 17; if (this.getItemKey() != null) { hash += 13 * this.getItemKey().hashCode(); } return hash; } }
[ "jiangxuwen7515@163.com" ]
jiangxuwen7515@163.com
129d7f89ef18175149c0e203457879c9025bc27c
13bffd71a9f5e99b9205d6f55ed423af48185487
/WebCommonProjects/common-supports/src/main/java/com/bxtpw/common/tree/NodeAccepter.java
6e33bf3f3053876bcacefb1f9928978fef85b91b
[]
no_license
cianfree/JavaStudyParent
dba32d81b6754ce52d4d6710492d742b20f86f4e
9bacc52e0089b20d862b2c184aaa97bffc66a2cd
refs/heads/master
2021-01-20T20:14:34.579620
2017-03-10T03:21:22
2017-03-10T03:21:22
61,590,994
0
0
null
null
null
null
GB18030
Java
false
false
507
java
package com.bxtpw.common.tree; import java.io.Serializable; /** * 节点接受决策器 * * @param <T> * @author 夏集球 * @version 0.1 * @time 2015年12月2日 下午3:48:21 * @since 0.1 */ public interface NodeAccepter<T> extends Serializable { /** * <pre> * 表示是否接受 * </pre> * * @param node * @return * @author 夏集球 * @time 2015年12月2日 下午3:48:40 * @version 0.1 * @since 0.1 */ boolean accept(T node); }
[ "xiajiqiu1990@163.com" ]
xiajiqiu1990@163.com
2a26807128181efb4c1be33cf59e830faf1e911a
7bf187ed40cac92e5b44f9d798d86b2850ae82a8
/service-sys-offdct-provider/src/main/java/com/xrlj/servicesysoffdct/common/officeclient/OfficeClient.java
6fddfc65be40352f153fd743d7ec391c1216790e
[]
no_license
xrlj/service-sys-offdct
bc474f7887aeb726e2ef663f0fa9e6da35bb8b28
16946d2de896030e928d57c0931ba0bb56e85817
refs/heads/master
2022-07-13T20:50:07.920703
2022-06-17T08:50:27
2022-06-17T08:50:27
196,414,964
0
1
null
2022-03-08T21:29:20
2019-07-11T14:54:43
Java
UTF-8
Java
false
false
1,162
java
package com.xrlj.servicesysoffdct.common.officeclient; import com.itextpdf.io.image.ImageType; import com.xrlj.servicesysoffdct.common.ImgType; import java.io.File; import java.util.List; import java.util.Map; public interface OfficeClient { OfficeClientType getOfficeClientType(); /** * doc转pdf。 * @param docPath doc文件路径。本地绝对路径或者网络路径。 * @return 返回生成后的pdf文件或者返回null */ File docToPdf(String docPath); /** * doc按模板填充,导出。 * @param docTemplatePath doc模板本地绝对路径或者网络路径。 * @param data 模板待渲染数据 * @return 返回渲染后doc文件或者返回null */ File genDocByTemplate(String docTemplatePath, Map data); /** * pdf转图片。目前实现转成jpg或者png格式。 * @param pdfPath * @param page 转换指定页,null则转换全部页码 * @param resolution 图片解析度,默认300 * @param imgType * @return */ List<File> pdfToImg(String pdfPath, Integer page, Integer resolution, ImgType imgType) throws Exception; }
[ "932852117@qq.com" ]
932852117@qq.com
5fecb8d2bafcc75af13598f3e4ea1f5443d922b3
0874d515fb8c23ae10bf140ee5336853bceafe0b
/l2j-universe/java/lineage2/gameserver/network/serverpackets/Say2.java
61e240cb1310348cce67ded45248628cc16f1ce8
[]
no_license
NotorionN/l2j-universe
8dfe529c4c1ecf0010faead9e74a07d0bc7fa380
4d05cbd54f5586bf13e248e9c853068d941f8e57
refs/heads/master
2020-12-24T16:15:10.425510
2013-11-23T19:35:35
2013-11-23T19:35:35
37,354,291
0
1
null
null
null
null
UTF-8
Java
false
false
1,398
java
package lineage2.gameserver.network.serverpackets; import lineage2.gameserver.network.serverpackets.components.ChatType; import lineage2.gameserver.network.serverpackets.components.NpcString; import lineage2.gameserver.network.serverpackets.components.SysString; import lineage2.gameserver.network.serverpackets.components.SystemMsg; public class Say2 extends NpcStringContainer { private ChatType _type; private SysString _sysString; private SystemMsg _systemMsg; private int _objectId; private String _charName; public Say2(int objectId, ChatType type, SysString st, SystemMsg sm) { super(NpcString.NONE); _objectId = objectId; _type = type; _sysString = st; _systemMsg = sm; } public Say2(int objectId, ChatType type, String charName, String text) { this(objectId, type, charName, NpcString.NONE, text); } public Say2(int objectId, ChatType type, String charName, NpcString npcString, String... params) { super(npcString, params); _objectId = objectId; _type = type; _charName = charName; } @Override protected final void writeImpl() { writeC(0x4A); writeD(_objectId); writeD(_type.ordinal()); switch (_type) { case SYSTEM_MESSAGE: writeD(_sysString.getId()); writeD(_systemMsg.getId()); break; default: writeS(_charName); writeElements(); break; } } }
[ "jmendezsr@gmail.com" ]
jmendezsr@gmail.com
1bda2278128ac71ab03dc8c68d4e51343a7d3c30
0d855a70668b1cc9158032470110f54a449b4870
/Chapter2/app/src/main/java/wta/architecture/chapter2/common/NoStrComponent.java
ba343b5a05a0acb25fa6978c3227a7546dff1668
[]
no_license
conquerex/AndroidArchitecture
9faad7670e8e07fc992404dcf5195fa2976673d5
4226142d3048b7f5c3ec758cbc30fa0b5eac71e3
refs/heads/master
2022-12-04T02:52:54.792063
2020-08-25T11:29:41
2020-08-25T11:29:41
282,128,767
1
0
null
null
null
null
UTF-8
Java
false
false
174
java
package wta.architecture.chapter2.common; import dagger.Component; @Component(modules = {CommonModule.class}) public interface NoStrComponent { void inject(Foo foo); }
[ "conquerex@gmail.com" ]
conquerex@gmail.com
16a96253fa23511ceda7b12bfe1dc03b71e0c693
473b76b1043df2f09214f8c335d4359d3a8151e0
/benchmark/bigclonebenchdata_partial/10598170.java
776f91de6ee65043147c172973881243b0ebcf03
[]
no_license
whatafree/JCoffee
08dc47f79f8369af32e755de01c52d9a8479d44c
fa7194635a5bd48259d325e5b0a190780a53c55f
refs/heads/master
2022-11-16T01:58:04.254688
2020-07-13T20:11:17
2020-07-13T20:11:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
499
java
class c10598170 { private static String sort(final String item) { final char[] chars = item.toCharArray(); for (int i = 1; i < chars.length; i++) { for (int j = 0; j < chars.length - 1; j++) { if (chars[j] > chars[j + 1]) { final char temp = chars[j]; chars[j] = chars[j + 1]; chars[j + 1] = temp; } } } return String.valueOf(chars); } }
[ "piyush16066@iiitd.ac.in" ]
piyush16066@iiitd.ac.in
1e995af189871edef9885b18fed70aa016aa8584
7466a4bccde9c9fe24db1955feae1a5ce67875b6
/0000000000000/Pear-Admin-Fast/src/main/java/com/pearadmin/modules/sys/service/ISysLogService.java
1b80655e096ee2ed25290703b5948a5fe249cd99
[ "MIT" ]
permissive
ppayaoxing/jun_product_center
88903baa2e03d1acb54715e07901e355563c3ff0
85b2086b12dd0fdd79a1a92b36117e31fc5ff79a
refs/heads/master
2023-08-14T15:35:12.274785
2021-08-30T15:29:31
2021-08-30T15:29:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
999
java
package com.pearadmin.modules.sys.service; import com.pearadmin.modules.sys.domain.SysLog; import com.pearadmin.common.plugin.logging.aop.enums.LoggingType; import java.time.LocalDateTime; import java.util.List; /** * Describe: 日 志 服 务 接 口 * Author: 就 眠 仪 式 * CreateTime: 2019/10/23 */ public interface ISysLogService { /** * Describe: 执 行 插 入 操 作 * Param: logging * Return: boolean */ boolean save(SysLog sysLog); /** * Describe: 执 行 查 询 操 作 * Param: loggingType * Return: 日志列表 */ List<SysLog> data(LoggingType loggingType, LocalDateTime startTime,LocalDateTime endTime); /** * Describe: 根 据 id 查 询 日 志 * Param: id * Return: Logging */ SysLog getById(String id); /** * Describe: 根据 operateName 查询日志 * Param: operateName * Return: 日志列表 */ List<SysLog> selectTopLoginLog(String operateName); }
[ "wujun728@163.com" ]
wujun728@163.com
80f61f7782a6fa065ccc54b9c366da7d23e0e201
6b9dbc4655f7e809ee2b1f4e802a12a2bdd92222
/simplemessaging/src/main/java/de/arnohaase/simplemessaging/common/SimpleMessage.java
6ed1033a33e3d96f76e63f33b67354934c050b93
[]
no_license
arnohaase/simplemessaging
a1bebd891736d612a915913110de361cb15ef2f0
9271abb4ca08f27ad3bb3b5dd36efa588ee2fd2f
refs/heads/master
2020-06-06T18:01:31.895489
2012-07-17T15:38:40
2012-07-17T15:38:40
5,069,473
0
1
null
null
null
null
UTF-8
Java
false
false
1,113
java
package de.arnohaase.simplemessaging.common; /** * This is a possible implementation of the Message interface, taking all data in its constructor. * * @author arno */ public class SimpleMessage implements Message { private final long _seqNumber; private final MessageCategory _category; private final String _categoryDetails; private final Object _data; public SimpleMessage (long seqNumber, MessageCategory category, String categoryDetails, Object data) { _seqNumber = seqNumber; _category = category; _categoryDetails = categoryDetails; _data = data; } public long getSeqNumber () { return _seqNumber; } public MessageCategory getCategory () { return _category; } public String getCategoryDetails () { return _categoryDetails; } public Object getData () { return _data; } public String toString () { return "SimpleMessage [_category=" + _category + ", _categoryDetails=" + _categoryDetails + ", _data=" + _data + ", _seqNumber=" + _seqNumber + "]"; } }
[ "arno.haase@haase-consulting.com" ]
arno.haase@haase-consulting.com
8b1861fc505286f17c70c23423ce045915e63578
30c7449d030b59573c26157801b6c741cbc2335a
/src/main/java/oo/ChessMoveException.java
df63eec41a0d6c7891364ed6918e721a0905ece6
[ "BSD-2-Clause" ]
permissive
guxiaogang/javasrc
3a2080c1b3c563e1ec48c2678d3c0426d89f1eaf
1f248bb30254ecfb6d9222d944902efd70dd4967
refs/heads/master
2020-05-25T09:45:58.571071
2013-12-09T02:00:48
2013-12-09T02:00:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
317
java
package oo; /** A ChessMoveException is thrown when the user makes an illegal move. */ public class ChessMoveException extends Exception { private static final long serialVersionUID = 802911736988179079L; public ChessMoveException () { super(); } public ChessMoveException (String msg) { super(msg); } }
[ "ian@darwinsys.com" ]
ian@darwinsys.com
cdaa4d604cf544f4d008e7fea68ff9245031b3c6
2c6e2ba03eb71ca45fe690ff6e4586f6e2fa0f17
/material/apks/banco/sources/com/google/common/collect/AbstractTable.java
e62041d8ed911e9d0bbdf7827531dd34e222e39a
[]
no_license
lcrcastor/curso-mobile-2019
3088a196139b3e980ed6e09797a0bbf5efb6440b
7585fccb6437a17c841772c1d9fb0701d6c68042
refs/heads/master
2023-04-06T21:46:32.333236
2020-10-30T19:47:54
2020-10-30T19:47:54
308,680,747
0
1
null
2023-03-26T06:57:57
2020-10-30T16:08:31
Java
UTF-8
Java
false
false
5,476
java
package com.google.common.collect; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.Table.Cell; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.AbstractCollection; import java.util.AbstractSet; import java.util.Collection; import java.util.Iterator; import java.util.Map; import java.util.Set; import javax.annotation.Nullable; @GwtCompatible abstract class AbstractTable<R, C, V> implements Table<R, C, V> { private transient Set<Cell<R, C, V>> a; private transient Collection<V> b; class CellSet extends AbstractSet<Cell<R, C, V>> { CellSet() { } public boolean contains(Object obj) { boolean z = false; if (!(obj instanceof Cell)) { return false; } Cell cell = (Cell) obj; Map map = (Map) Maps.a(AbstractTable.this.rowMap(), cell.getRowKey()); if (map != null && Collections2.a((Collection<?>) map.entrySet(), (Object) Maps.immutableEntry(cell.getColumnKey(), cell.getValue()))) { z = true; } return z; } public boolean remove(@Nullable Object obj) { boolean z = false; if (!(obj instanceof Cell)) { return false; } Cell cell = (Cell) obj; Map map = (Map) Maps.a(AbstractTable.this.rowMap(), cell.getRowKey()); if (map != null && Collections2.b((Collection<?>) map.entrySet(), (Object) Maps.immutableEntry(cell.getColumnKey(), cell.getValue()))) { z = true; } return z; } public void clear() { AbstractTable.this.clear(); } public Iterator<Cell<R, C, V>> iterator() { return AbstractTable.this.b(); } public int size() { return AbstractTable.this.size(); } } class Values extends AbstractCollection<V> { Values() { } public Iterator<V> iterator() { return AbstractTable.this.d(); } public boolean contains(Object obj) { return AbstractTable.this.containsValue(obj); } public void clear() { AbstractTable.this.clear(); } public int size() { return AbstractTable.this.size(); } } /* access modifiers changed from: 0000 */ public abstract Iterator<Cell<R, C, V>> b(); AbstractTable() { } public boolean containsRow(@Nullable Object obj) { return Maps.b(rowMap(), obj); } public boolean containsColumn(@Nullable Object obj) { return Maps.b(columnMap(), obj); } public Set<R> rowKeySet() { return rowMap().keySet(); } public Set<C> columnKeySet() { return columnMap().keySet(); } public boolean containsValue(@Nullable Object obj) { for (Map containsValue : rowMap().values()) { if (containsValue.containsValue(obj)) { return true; } } return false; } public boolean contains(@Nullable Object obj, @Nullable Object obj2) { Map map = (Map) Maps.a(rowMap(), obj); return map != null && Maps.b(map, obj2); } public V get(@Nullable Object obj, @Nullable Object obj2) { Map map = (Map) Maps.a(rowMap(), obj); if (map == null) { return null; } return Maps.a(map, obj2); } public boolean isEmpty() { return size() == 0; } public void clear() { Iterators.b(cellSet().iterator()); } @CanIgnoreReturnValue public V remove(@Nullable Object obj, @Nullable Object obj2) { Map map = (Map) Maps.a(rowMap(), obj); if (map == null) { return null; } return Maps.c(map, obj2); } @CanIgnoreReturnValue public V put(R r, C c, V v) { return row(r).put(c, v); } public void putAll(Table<? extends R, ? extends C, ? extends V> table) { for (Cell cell : table.cellSet()) { put(cell.getRowKey(), cell.getColumnKey(), cell.getValue()); } } public Set<Cell<R, C, V>> cellSet() { Set<Cell<R, C, V>> set = this.a; if (set != null) { return set; } Set<Cell<R, C, V>> a2 = a(); this.a = a2; return a2; } /* access modifiers changed from: 0000 */ public Set<Cell<R, C, V>> a() { return new CellSet(); } public Collection<V> values() { Collection<V> collection = this.b; if (collection != null) { return collection; } Collection<V> c = c(); this.b = c; return c; } /* access modifiers changed from: 0000 */ public Collection<V> c() { return new Values(); } /* access modifiers changed from: 0000 */ public Iterator<V> d() { return new TransformedIterator<Cell<R, C, V>, V>(cellSet().iterator()) { /* access modifiers changed from: 0000 */ public V a(Cell<R, C, V> cell) { return cell.getValue(); } }; } public boolean equals(@Nullable Object obj) { return Tables.a(this, obj); } public int hashCode() { return cellSet().hashCode(); } public String toString() { return rowMap().toString(); } }
[ "luis@MARK-2.local" ]
luis@MARK-2.local
9e8c68b0d468b720e638763237f78026999138f3
e03d21d7f21f3a2136c6450b093ad53e1b021586
/kaipin-sch/main/src/java/com/kaipin/common/presentation/action/search/SearchAaction.java
ebee677a91cdd97155147056550203745ac3c7d7
[]
no_license
huagnkangjie/kaipin
d035da2bbda9bf1a125826a598962b443a7dfc3e
8e3dfb2203fb119b8de9636e73ceba2a4405e627
refs/heads/master
2018-12-11T08:32:20.792022
2018-09-12T15:06:02
2018-09-12T15:06:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,905
java
package com.kaipin.common.presentation.action.search; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.kaipin.common.constants.AppSearchConstant; import com.kaipin.common.constants.Constant; import com.kaipin.common.entity.Json; import com.kaipin.common.entity.User; import com.kaipin.common.presentation.action.BaseAction; import com.kaipin.common.util.HttpPostUtil; import com.kaipin.common.util.HttpRequestUtil; import com.kaipin.common.util.JsonUtil; import com.kaipin.common.util.PropUtil; import com.kaipin.common.util.StringUtil; /** * 全文检索类 * @author Mr-H * */ @RequestMapping("/search") @Controller public class SearchAaction extends BaseAction{ /** * 查询结果 list页面 * @param request * @param user * @return */ @RequestMapping("/list") public String search(HttpServletRequest request, User user, Model model, String searchTxt, String searchType, String page, String pageSize){ String result = getSearchResult(searchTxt, searchType, page, pageSize); result = result.replace("\\r", ""); result = result.replace("\\n", ""); model.addAttribute("result", result.replace("class=\\\"highlight\\\"", "class=highlight"));//返回结果 model.addAttribute("searchTxt", searchTxt); model.addAttribute("searchType", searchType); this.setSysAttr(model, searchTxt, null, null); return "/common/search/list"; } /** * 接口查询结果 * @param searchTxt * @param searchType * @return */ public String getSearchResult(String searchTxt, String searchType, String page, String pageSize){ String result = Constant.VALUE_ZERO; if(StringUtil.isNotEmpty(searchType) && StringUtil.isNotEmpty(searchTxt)){ PropUtil pro = new PropUtil(Constant.PRO_FILE_CONSTANTS); String url = pro.getValue(AppSearchConstant.APP_SEARCH_URL); switch (searchType) { case "stu": url += AppSearchConstant.SEARCH_STU; break; case "sch": url += AppSearchConstant.SEARCH_SCH; break; case "ent": url += AppSearchConstant.SEARCH_COMPANY; break; case "position": url += AppSearchConstant.SEARCH_POSITION; break; case "live": url += AppSearchConstant.SEARCH_LIVE; break; default: break; } Map<String,Object> map = new HashMap<String, Object>(); map.put("keyword", searchTxt); map.put("page", page); map.put("count", pageSize); result = HttpPostUtil.doPost(url, map); } return result; } /** * 查询结果 * @param request * @return */ @RequestMapping("/result") @ResponseBody public Json searchResult(HttpServletRequest request, String searchTxt ,String searchType, String page, String pageSize){ Json json = new Json(); try { String result = getSearchResult(searchTxt, searchType, page, pageSize); if(StringUtil.isNotEmpty(result)){ json.setObj(result); json.setSuccess(true); } return json; } catch (Exception e) { e.printStackTrace(); return json; } } /** * 从搜索列表 -- >跳转详细的页面 * * @param type 查询结果的类型 * @param rId 资源id * @return */ @RequestMapping("/detail") public String detail(HttpServletRequest request, User user, String type, String rId){ try { if(StringUtil.isNotEmpty(type)){ switch (type) { case "person": break; case "position": break; case "ent": break; case "sch": break; case "vedio": break; default: break; } } return "/common/search_detail"; } catch (Exception e) { return "/common/search_detail"; } } }
[ "1059976050@qq.com" ]
1059976050@qq.com
74c70664c99d4af4ee267cd6c4125877f7156069
763a09debe48f6d71c9d3ede007c0e09f98c6670
/liquibase-core/src/main/java/liquibase/database/MockDatabaseConnection.java
6abfcdbdc99f611f4537f81e68854bc592fae42a
[ "Apache-2.0" ]
permissive
12345ieee/liquibase
2a7762a0cc4da62d6bdc229b9305d256039840e3
1f4fd74231d9a3ead9e3c9b7812b18add43ab9cb
refs/heads/master
2022-07-26T08:51:08.743444
2020-05-13T20:20:37
2020-05-14T22:12:10
263,600,914
0
0
Apache-2.0
2020-05-13T10:43:04
2020-05-13T10:43:03
null
UTF-8
Java
false
false
1,778
java
package liquibase.database; import liquibase.exception.DatabaseException; public class MockDatabaseConnection implements DatabaseConnection { private int databaseMajorVersion = 999; private int databaseMinorVersion = 999; @Override public void close() throws DatabaseException { } @Override public void commit() throws DatabaseException { } @Override public boolean getAutoCommit() throws DatabaseException { return false; } @Override public String getCatalog() throws DatabaseException { return null; } @Override public String nativeSQL(String sql) throws DatabaseException { return sql; } @Override public void rollback() throws DatabaseException { } @Override public void setAutoCommit(boolean autoCommit) throws DatabaseException { } @Override public String getDatabaseProductName() throws DatabaseException { return null; } @Override public String getDatabaseProductVersion() throws DatabaseException { return null; } @Override public int getDatabaseMajorVersion() throws DatabaseException { return databaseMajorVersion; } public MockDatabaseConnection setDatabaseMajorVersion(int databaseMajorVersion) { this.databaseMajorVersion = databaseMajorVersion; return this; } @Override public int getDatabaseMinorVersion() throws DatabaseException { return databaseMinorVersion; } public MockDatabaseConnection setDatabaseMinorVersion(int databaseMinorVersion) { this.databaseMinorVersion = databaseMinorVersion; return this; } @Override public String getURL() { return null; } @Override public String getConnectionUserName() { return null; } @Override public boolean isClosed() throws DatabaseException { return false; } @Override public void attached(Database database) { } }
[ "nathan@voxland.net" ]
nathan@voxland.net
3bc514be18ffd09a44cfbcf14dfd9e50f70b8e5a
f4b6422703af7534867f90f2902aa3baa7b72416
/2018/hackover/sources/com/google/crypto/tink/integration/android/AndroidKeystoreAesGcm.java
5d7cf7a013fc04c7b496aa68da1d49a7a015b237
[]
no_license
b04902036/ctf
d1eac85b915057e0961ad862d7bf2da106515321
fac16cd79440a9c0fc870578d5c80b1491bb8eae
refs/heads/master
2020-03-18T16:23:02.321424
2019-11-22T03:34:25
2019-11-22T03:34:25
134,962,628
0
0
null
null
null
null
UTF-8
Java
false
false
1,958
java
package com.google.crypto.tink.integration.android; import android.annotation.TargetApi; import com.google.crypto.tink.Aead; import java.io.IOException; import java.security.GeneralSecurityException; import java.security.KeyStore; import java.security.spec.AlgorithmParameterSpec; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.spec.GCMParameterSpec; @TargetApi(23) public final class AndroidKeystoreAesGcm implements Aead { private static final int IV_SIZE_IN_BYTES = 12; private static final int TAG_SIZE_IN_BYTES = 16; private final SecretKey key; public AndroidKeystoreAesGcm(String str) throws GeneralSecurityException, IOException { KeyStore instance = KeyStore.getInstance("AndroidKeyStore"); instance.load(null); this.key = (SecretKey) instance.getKey(str, null); } public byte[] encrypt(byte[] bArr, byte[] bArr2) throws GeneralSecurityException { if (bArr.length <= 2147483619) { Object obj = new byte[((bArr.length + 12) + 16)]; Cipher instance = Cipher.getInstance("AES/GCM/NoPadding"); instance.init(1, this.key); instance.updateAAD(bArr2); instance.doFinal(bArr, 0, bArr.length, obj, 12); System.arraycopy(instance.getIV(), 0, obj, 0, 12); return obj; } throw new GeneralSecurityException("plaintext too long"); } public byte[] decrypt(byte[] bArr, byte[] bArr2) throws GeneralSecurityException { if (bArr.length >= 28) { AlgorithmParameterSpec gCMParameterSpec = new GCMParameterSpec(128, bArr, 0, 12); Cipher instance = Cipher.getInstance("AES/GCM/NoPadding"); instance.init(2, this.key, gCMParameterSpec); instance.updateAAD(bArr2); return instance.doFinal(bArr, 12, bArr.length - 12); } throw new GeneralSecurityException("ciphertext too short"); } }
[ "b04902036@ntu.edu.tw" ]
b04902036@ntu.edu.tw
78ace0dfb17ae19cff2f50f052eef932cd8fc91f
14a417bf82ff5a553a2027dbda80cbed1f9f738c
/app/src/main/java/com/example/nicch/gvn49/Infos.java
fdf5d5ff0cfa21bd0c8c9abe79516575c117ca51
[]
no_license
Niccher/Gvn49
e665fdbe7136b90906d5a95d4f99d9740db5583e
a6f600a520591aaed6b008bf8ec138043b80b872
refs/heads/master
2020-03-29T15:33:49.401408
2019-01-28T02:35:50
2019-01-28T02:35:50
149,578,466
0
0
null
null
null
null
UTF-8
Java
false
false
7,042
java
package com.example.nicch.gvn49; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.support.v7.app.AlertDialog; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import com.android.volley.RequestQueue; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.VolleyLog; import com.android.volley.toolbox.Volley; import org.json.JSONException; import org.json.JSONObject; /** * A simple {@link Fragment} subclass. */ public class Infos extends Fragment { Button sdcmt,btyp; AlertDialog.Builder bulda,Onyo; android.app.AlertDialog.Builder builder; EditText CBox; public Infos() { // Required empty public constructor } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View vrw= inflater.inflate(R.layout.fragment_infos, container, false); getActivity().setTitle("Compose A Comment"); sdcmt=vrw.findViewById(R.id.Sd); btyp=vrw.findViewById(R.id.btn_typ); CBox=vrw.findViewById(R.id.edComBox); Bundle bad=getArguments(); if (bad !=null){ String catt=bad.getString("Cates"); //CBox.setText(catt+"\n"); btyp.setText(catt); }else { btyp.setText("Hahha"); } sdcmt.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if (CBox.getText().toString().equals("") || CBox.getText().toString().isEmpty()) { builder = new android.app.AlertDialog.Builder(getActivity()); builder.setTitle("Blank Field Detected..."); builder.setMessage("Write A Comment To Post...."); builder.setPositiveButton("OK", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { dialogInterface.dismiss(); } }); android.app.AlertDialog alertdialog = builder.create(); alertdialog.show(); }else { final int phon= 12; final String tim= "Thaa"; final String cat=btyp.getText().toString(); final String Mess=CBox.getText().toString(); final String rep="False";//phon,tim,cat,Mess,rep,Vwd final String Vwd="False"; bulda = new AlertDialog.Builder(getActivity()); bulda.setTitle("Submit Comment"); bulda.setMessage("Your Submitted Comment Will Sent And You Can Edit It Once Sent..."); bulda.setPositiveButton("Proceed", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { dialogInterface.dismiss(); final ProgressDialog progressDialog=new ProgressDialog(getContext()); progressDialog.setMessage("Uploading Message... Please wait"); progressDialog.show(); Response.Listener<String> responseListener=new Response.Listener<String>(){ @Override public void onResponse(String response) { try { JSONObject jsonResponse=new JSONObject(response); boolean success=jsonResponse.getBoolean("success"); if(success){ progressDialog.dismiss(); startActivity(new Intent(getActivity(),Logs.class)); Toast.makeText(getActivity(), "Well Inserted", Toast.LENGTH_SHORT).show(); } else { progressDialog.dismiss(); AlertDialog.Builder builder=new AlertDialog.Builder(getActivity()); builder.setMessage("Registration failed"); builder.setNegativeButton("Retry",null); builder.create(); builder.show(); } } catch (JSONException e) { e.printStackTrace(); progressDialog.dismiss(); Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_SHORT).show(); } } //@Override public void onErrorResponse(VolleyError er) { Toast.makeText(getActivity(), er.getMessage(), Toast.LENGTH_SHORT).show(); VolleyLog.e("Error Hahaha: ", er.getMessage()); } }; PostComm RcONN=new PostComm(phon,tim,cat,Mess,rep,Vwd,responseListener); RequestQueue queue= Volley.newRequestQueue(getActivity()); queue.add(RcONN); /*FragmentManager fmm=getFragmentManager(); FragmentTransaction fts=fmm.beginTransaction(); Sents npl=new Sents(); fts.replace(R.id.based,npl); fts.addToBackStack(null); fts.commit();*/ } }); bulda.setNegativeButton("Cancel", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { dialogInterface.dismiss(); } }); AlertDialog alertdialog = bulda.create(); alertdialog.show(); } } }); return vrw; } }
[ "root@localhost.localdomain" ]
root@localhost.localdomain
d052fc37b6763a3e9e5746d97ab0c54dc6b9de7e
c8795a2a7a032376e978a5a582b7f4cf2ca6b789
/src/com/kubeiwu/servlet/GroupImageInfoListServlet.java
5b36c64d56bb67e8202b4c5e2c4b3e1db298e3e1
[]
no_license
cgpllx/meizi
0e269a859b913bebcbdabe00b8a5919bf4836136
3823ff57f04d90987b0f5e4e57861e07a5a7c49f
refs/heads/master
2021-05-04T11:15:07.282766
2017-08-06T14:01:50
2017-08-06T14:01:50
43,629,859
0
0
null
null
null
null
UTF-8
Java
false
false
1,962
java
package com.kubeiwu.servlet; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.TimeZone; import java.util.zip.GZIPOutputStream; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import utils.AESUtil; import utils.HeaderUtils; import com.kubeiwu.service.Service; import com.kubeiwu.service.groupimageinfo.GroupImageInfoListService; /** * 每天第一次访问后会更新部分数据,达到自动更新数据 * */ @SuppressWarnings("serial") public class GroupImageInfoListServlet extends HttpServlet { Service service; @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.setContentType("application/json;charset=utf-8"); ServletOutputStream pwout = resp.getOutputStream(); try { byte[] result=HeaderUtils.buildBytes(req, resp, service); String accept_encoding = req.getHeader("Accept-Encoding"); if (accept_encoding != null && accept_encoding.equalsIgnoreCase("gzip")) { ByteArrayOutputStream out = new ByteArrayOutputStream(); GZIPOutputStream gout = new GZIPOutputStream(out); gout.write(result); gout.close(); result = out.toByteArray(); resp.setHeader("Content-Encoding", "gzip"); resp.setHeader("Content-Length", result.length + ""); } pwout.write(result); pwout.flush(); pwout.close(); } catch (Exception e) { e.printStackTrace(); } } @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { this.doGet(req, resp); } @Override public void init() throws ServletException { super.init(); service = new GroupImageInfoListService(); } }
[ "cgpllx1@qq.com" ]
cgpllx1@qq.com
4e40506417aa8f98e5dae16a675d129d1505effb
da987daf4b7fa702afa110dba08ecc63ab13b630
/tlmanager-app/src/main/java/eu/europa/ec/markt/tlmanager/view/binding/NonEmptyMultiLangURIListConverter.java
94fa06d26d0f4b74cad81a1d6239d1b42901adee
[]
no_license
arhs/tlmanager
c2485085b67acfc445494bff3792464453fec47c
3f653a23443f9a15eda3bf02a657b9080cd4449f
refs/heads/master
2020-05-01T00:12:51.674789
2015-01-30T15:48:41
2015-01-30T15:48:41
25,159,962
2
0
null
null
null
null
UTF-8
Java
false
false
2,018
java
/* * DSS - Digital Signature Services * * Copyright (C) 2013 European Commission, Directorate-General Internal Market and Services (DG MARKT), B-1049 Bruxelles/Brussel * * Developed by: 2013 ARHS Developments S.A. (rue Nicolas Bové 2B, L-1253 Luxembourg) http://www.arhs-developments.com * * This file is part of the "DSS - Digital Signature Services" project. * * "DSS - Digital Signature Services" is free software: you can redistribute it and/or modify it under the terms of * the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * DSS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License along with * "DSS - Digital Signature Services". If not, see <http://www.gnu.org/licenses/>. */ package eu.europa.ec.markt.tlmanager.view.binding; import eu.europa.ec.markt.tlmanager.model.NonEmptyMultiLangURIListAdapter; import eu.europa.ec.markt.tsl.jaxb.tsl.NonEmptyMultiLangURIListType; import org.jdesktop.beansbinding.Converter; /** * Does the conversion between a <code>NonEmptyMultiLangURIListType</code> and a * <code>NonEmptyMultiLangURIListAdapter</code> * * * @version $Revision$ - $Date$ */ public class NonEmptyMultiLangURIListConverter extends Converter<NonEmptyMultiLangURIListType, NonEmptyMultiLangURIListAdapter> { /** {@inheritDoc} */ @Override public NonEmptyMultiLangURIListAdapter convertForward(NonEmptyMultiLangURIListType source) { return new NonEmptyMultiLangURIListAdapter(source); } /** {@inheritDoc} */ @Override public NonEmptyMultiLangURIListType convertReverse(NonEmptyMultiLangURIListAdapter target) { return target.getMultiLangUris(); } }
[ "Robert.Bielecki@arhs-spikeseed.com" ]
Robert.Bielecki@arhs-spikeseed.com
2c2c6eb8cbbce893f8ab75afff68df41f81c88b0
72cbb22560559912fc1a2ab4b6348fe111a66cb0
/spring-restdocs-core/src/main/java/org/springframework/restdocs/constraints/Constraint.java
ebba7a88dc9b078b07874abdc0afd30f3cfbff32
[ "Apache-2.0" ]
permissive
helpermethod/spring-restdocs
2ef199ae1bc67a7cc42bff2adfd5cccd3854d65f
24c1746b363d08a0d369565134ef338cd8069350
refs/heads/master
2020-04-01T23:52:36.071654
2018-10-04T11:26:50
2018-10-04T11:26:50
153,777,173
1
0
null
2018-10-19T12:09:31
2018-10-19T12:09:30
null
UTF-8
Java
false
false
1,457
java
/* * Copyright 2014-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.restdocs.constraints; import java.util.Map; /** * A constraint. * * @author Andy Wilkinson */ public class Constraint { private final String name; private final Map<String, Object> configuration; /** * Creates a new {@code Constraint} with the given {@code name} and * {@code configuration}. * @param name the name * @param configuration the configuration */ public Constraint(String name, Map<String, Object> configuration) { this.name = name; this.configuration = configuration; } /** * Returns the name of the constraint. * @return the name */ public String getName() { return this.name; } /** * Returns the configuration of the constraint. * @return the configuration */ public Map<String, Object> getConfiguration() { return this.configuration; } }
[ "awilkinson@pivotal.io" ]
awilkinson@pivotal.io
85c64fa5ed828ef693df8f312b6eea78dd23a322
2bc2eadc9b0f70d6d1286ef474902466988a880f
/tags/mule-1.0/providers/multicast/src/test/java/org/mule/providers/multicast/MulticastMessageAdapterTestCase.java
fd0542ef9690f1772fdbb49dbcb6fb916e308273
[ "LicenseRef-scancode-symphonysoft", "LicenseRef-scancode-unknown-license-reference" ]
permissive
OrgSmells/codehaus-mule-git
085434a4b7781a5def2b9b4e37396081eaeba394
f8584627c7acb13efdf3276396015439ea6a0721
refs/heads/master
2022-12-24T07:33:30.190368
2020-02-27T19:10:29
2020-02-27T19:10:29
243,593,543
0
0
null
2022-12-15T23:30:00
2020-02-27T18:56:48
null
UTF-8
Java
false
false
1,802
java
/* * $Header$ * $Revision$ * $Date$ * ------------------------------------------------------------------------------------------------------ * * Copyright (c) SymphonySoft Limited. All rights reserved. * http://www.symphonysoft.com * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.mule.providers.multicast; import org.mule.tck.providers.AbstractMessageAdapterTestCase; import org.mule.umo.provider.UMOMessageAdapter; import java.net.DatagramPacket; /** * @author <a href="mailto:ross.mason@symphonysoft.com">Ross Mason</a> * @version $Revision$ */ public class MulticastMessageAdapterTestCase extends AbstractMessageAdapterTestCase { public Object getValidMessage() throws Exception { return new DatagramPacket("Hello".getBytes(), 5); } public UMOMessageAdapter createAdapter(Object payload) throws Exception { return new MulticastMessageAdapter(payload); } public void testMessageRetrieval() throws Exception { Object message = getValidMessage(); UMOMessageAdapter adapter = createAdapter(message); assertEquals(new String(((DatagramPacket)message).getData()), adapter.getPayloadAsString()); byte[] bytes = adapter.getPayloadAsBytes(); assertNotNull(bytes); String stringMessage = adapter.getPayloadAsString(); assertNotNull(stringMessage); assertNotNull(adapter.getPayload()); try { adapter = createAdapter(getInvalidMessage()); fail("Message adapter should throw exception if an invalid messgae is set"); } catch (Exception e) { // expected } } }
[ "(no author)@bf997673-6b11-0410-b953-e057580c5b09" ]
(no author)@bf997673-6b11-0410-b953-e057580c5b09
5957dc5b9a5599fc2e32583f643481aa02f190ea
d13e942b46aeb2c88b726aa438b987770eaba116
/Development of online data-driven monitoring methodologies and piloting analytical and monitoring tools by the State Audit Service of Ukraine/Public Dashboard/Back-End/src/main/java/com/datapath/sasu/integration/prozorro/tendering/containers/Value.java
5485596e38c2d79c505c123f45aaab0e739189eb
[]
no_license
EBRD-ProzorroA7-RiskIndicators-SASU/Ukraine-Development-of-online-data-driven-monitoring-methodologies-and-piloting-analytical-tools
7f01956b454cfb8f2fa7821e713898068c3db81f
2a67c467c878e57f1ee81aef3b49f409bd8e2658
refs/heads/main
2023-06-18T23:18:28.367265
2021-07-13T18:22:10
2021-07-13T18:22:10
333,778,176
0
0
null
2021-01-28T14:09:57
2021-01-28T14:09:56
null
UTF-8
Java
false
false
176
java
package com.datapath.sasu.integration.prozorro.tendering.containers; import lombok.Data; @Data public class Value { private String currency; private Double amount; }
[ "eduard.david9@gmail.com" ]
eduard.david9@gmail.com
2e28265058b572508e28b6668169eef90395b76d
45f87afc7fe493a3739885d39f9eb0184c96e0c9
/services/vautoscaling/src/main/java/com/ncloud/vautoscaling/model/GetAdjustmentTypeListResponse.java
116e2e5129492f23f063eef26942e3d2789d6740
[ "MIT" ]
permissive
NaverCloudPlatform/ncloud-sdk-java
6635639835ed19dc82e4605c554f894a14645004
bb692dab5f00f94f36c1fcc622bec6d2f2c88d28
refs/heads/master
2023-05-03T07:21:03.219343
2023-04-19T10:56:17
2023-04-19T10:56:17
210,761,909
7
6
MIT
2023-04-19T10:56:52
2019-09-25T05:23:36
Java
UTF-8
Java
false
false
4,648
java
/* * vautoscaling * VPC Auto Scaling 관련 API<br/>https://ncloud.apigw.ntruss.com/vautoscaling/v2 * * NBP corp. * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package com.ncloud.vautoscaling.model; import java.util.Objects; import com.ncloud.vautoscaling.model.AdjustmentType; import java.util.ArrayList; import java.util.List; /** * GetAdjustmentTypeListResponse */ public class GetAdjustmentTypeListResponse { private String requestId = null; private String returnCode = null; private String returnMessage = null; private Integer totalRows = null; private List<AdjustmentType> adjustmentTypeList = null; public GetAdjustmentTypeListResponse requestId(String requestId) { this.requestId = requestId; return this; } /** * Get requestId * @return requestId **/ public String getRequestId() { return requestId; } public void setRequestId(String requestId) { this.requestId = requestId; } public GetAdjustmentTypeListResponse returnCode(String returnCode) { this.returnCode = returnCode; return this; } /** * Get returnCode * @return returnCode **/ public String getReturnCode() { return returnCode; } public void setReturnCode(String returnCode) { this.returnCode = returnCode; } public GetAdjustmentTypeListResponse returnMessage(String returnMessage) { this.returnMessage = returnMessage; return this; } /** * Get returnMessage * @return returnMessage **/ public String getReturnMessage() { return returnMessage; } public void setReturnMessage(String returnMessage) { this.returnMessage = returnMessage; } public GetAdjustmentTypeListResponse totalRows(Integer totalRows) { this.totalRows = totalRows; return this; } /** * Get totalRows * @return totalRows **/ public Integer getTotalRows() { return totalRows; } public void setTotalRows(Integer totalRows) { this.totalRows = totalRows; } public GetAdjustmentTypeListResponse adjustmentTypeList(List<AdjustmentType> adjustmentTypeList) { this.adjustmentTypeList = adjustmentTypeList; return this; } public GetAdjustmentTypeListResponse addAdjustmentTypeListItem(AdjustmentType adjustmentTypeListItem) { if (this.adjustmentTypeList == null) { this.adjustmentTypeList = new ArrayList<AdjustmentType>(); } this.adjustmentTypeList.add(adjustmentTypeListItem); return this; } /** * Get adjustmentTypeList * @return adjustmentTypeList **/ public List<AdjustmentType> getAdjustmentTypeList() { return adjustmentTypeList; } public void setAdjustmentTypeList(List<AdjustmentType> adjustmentTypeList) { this.adjustmentTypeList = adjustmentTypeList; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } GetAdjustmentTypeListResponse getAdjustmentTypeListResponse = (GetAdjustmentTypeListResponse) o; return Objects.equals(this.requestId, getAdjustmentTypeListResponse.requestId) && Objects.equals(this.returnCode, getAdjustmentTypeListResponse.returnCode) && Objects.equals(this.returnMessage, getAdjustmentTypeListResponse.returnMessage) && Objects.equals(this.totalRows, getAdjustmentTypeListResponse.totalRows) && Objects.equals(this.adjustmentTypeList, getAdjustmentTypeListResponse.adjustmentTypeList); } @Override public int hashCode() { return Objects.hash(requestId, returnCode, returnMessage, totalRows, adjustmentTypeList); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetAdjustmentTypeListResponse {\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" returnCode: ").append(toIndentedString(returnCode)).append("\n"); sb.append(" returnMessage: ").append(toIndentedString(returnMessage)).append("\n"); sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); sb.append(" adjustmentTypeList: ").append(toIndentedString(adjustmentTypeList)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
[ "lee.yongtak@navercorp.com" ]
lee.yongtak@navercorp.com
e84a3d69b2bced37495605cd78cdfabbb1bc4a7b
3226886267a60457f55f9d245b132cb3c1a9da1a
/salary_wallet/src/main/java/com/jrmf/taxsettlement/api/service/invoice/ApplyInvoiceServiceParams.java
49add86343eadcb79f4fc6dccef5e2d5e7b00724
[]
no_license
BreakOnly/project
ddf2e46d15a5694fa63e76eb0273ead04266efde
0e62ce00982bd0f33a65d0ba373a6e7ca526f444
refs/heads/master
2023-03-31T02:53:35.518878
2021-03-22T13:23:21
2021-03-22T13:23:21
350,350,115
0
0
null
null
null
null
UTF-8
Java
false
false
1,789
java
package com.jrmf.taxsettlement.api.service.invoice; import com.jrmf.taxsettlement.api.gateway.NotNull; import com.jrmf.taxsettlement.api.service.ActionParams; /** * @author 种路路 * @create 2019-08-22 16:12 * @desc **/ public class ApplyInvoiceServiceParams extends ActionParams { /** * 开票金额 */ @NotNull private String invoiceAmount; /** * 备注 */ @NotNull private String remark; /** * 收件人编号 */ @NotNull private String receiveId; /** * 开票信息编号 */ @NotNull private String infoId; @Override public String toString() { return "ApplyInvoiceServiceParams{" + "invoiceAmount='" + invoiceAmount + '\'' + ", remark='" + remark + '\'' + ", receiveId='" + receiveId + '\'' + ", infoId='" + infoId + '\'' + ", orderNos='" + orderNos + '\'' + '}'; } public String getOrderNos() { return orderNos; } public void setOrderNos(String orderNos) { this.orderNos = orderNos; } /** * 智税通订单号 * 可以传多笔订单号 */ @NotNull private String orderNos; public String getInvoiceAmount() { return invoiceAmount; } public void setInvoiceAmount(String invoiceAmount) { this.invoiceAmount = invoiceAmount; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public String getReceiveId() { return receiveId; } public void setReceiveId(String receiveId) { this.receiveId = receiveId; } public String getInfoId() { return infoId; } public void setInfoId(String infoId) { this.infoId = infoId; } }
[ "1669958409@qq.com" ]
1669958409@qq.com
b2e388f1bd5a961c4493090da0a260662a7ac2c3
9753e57651470030733495f3f40452ea722090bd
/src/main/java/com/mossle/user/web/AccountOnlineController.java
b85138d7e1de1a672f0d8f225b841014ca100603
[ "Apache-2.0" ]
permissive
zhikexu/lemon
95d78ff557c5b8f7d9936f46ce9749293b110893
12befd67c5c803ded86dda714f79a586a686a37d
refs/heads/master
2021-01-23T16:13:13.882817
2015-06-16T08:18:40
2015-06-16T08:18:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,582
java
package com.mossle.user.web; import java.util.ArrayList; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; import com.mossle.core.hibernate.PropertyFilter; import com.mossle.core.mapper.BeanMapper; import com.mossle.core.page.Page; import com.mossle.core.spring.MessageHelper; import com.mossle.ext.export.Exportor; import com.mossle.ext.export.TableModel; import com.mossle.user.persistence.domain.AccountOnline; import com.mossle.user.persistence.manager.AccountOnlineManager; import org.springframework.context.support.MessageSourceAccessor; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.servlet.mvc.support.RedirectAttributes; @Controller @RequestMapping("user") public class AccountOnlineController { private AccountOnlineManager accountOnlineManager; private Exportor exportor; private BeanMapper beanMapper = new BeanMapper(); private MessageHelper messageHelper; @RequestMapping("account-online-list") public String list(@ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, Model model) { List<PropertyFilter> propertyFilters = PropertyFilter .buildFromMap(parameterMap); page = accountOnlineManager.pagedQuery(page, propertyFilters); model.addAttribute("page", page); return "user/account-online-list"; } @RequestMapping("account-online-input") public String input(@RequestParam(value = "id", required = false) Long id, Model model) { if (id != null) { AccountOnline accountOnline = accountOnlineManager.get(id); model.addAttribute("model", accountOnline); } return "user/account-online-input"; } @RequestMapping("account-online-save") public String save(@ModelAttribute AccountOnline accountOnline, @RequestParam Map<String, Object> parameterMap, RedirectAttributes redirectAttributes) { AccountOnline dest = null; Long id = accountOnline.getId(); if (id != null) { dest = accountOnlineManager.get(id); beanMapper.copy(accountOnline, dest); } else { dest = accountOnline; } accountOnlineManager.save(dest); messageHelper.addFlashMessage(redirectAttributes, "core.success.save", "保存成功"); return "redirect:/user/account-online-list.do"; } @RequestMapping("account-online-remove") public String remove(@RequestParam("selectedItem") List<Long> selectedItem, RedirectAttributes redirectAttributes) { List<AccountOnline> accountOnlines = accountOnlineManager .findByIds(selectedItem); accountOnlineManager.removeAll(accountOnlines); messageHelper.addFlashMessage(redirectAttributes, "core.success.delete", "删除成功"); return "redirect:/user/account-online-list.do"; } @RequestMapping("account-online-export") public void export(@ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, HttpServletResponse response) throws Exception { List<PropertyFilter> propertyFilters = PropertyFilter .buildFromMap(parameterMap); page = accountOnlineManager.pagedQuery(page, propertyFilters); List<AccountOnline> accountOnlines = (List<AccountOnline>) page .getResult(); TableModel tableModel = new TableModel(); tableModel.setName("account online"); tableModel.addHeaders("id", "client", "server", "resource"); tableModel.setData(accountOnlines); exportor.export(response, tableModel); } // ~ ====================================================================== @Resource public void setAccountOnlineManager( AccountOnlineManager accountOnlineManager) { this.accountOnlineManager = accountOnlineManager; } @Resource public void setExportor(Exportor exportor) { this.exportor = exportor; } @Resource public void setMessageHelper(MessageHelper messageHelper) { this.messageHelper = messageHelper; } }
[ "xyz20003@gmail.com" ]
xyz20003@gmail.com
a6b7ea21c4891189569cd676b2269719ad19df46
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/training/org/apache/storm/daemon/logviewer/handler/LogviewerLogPageHandlerTest.java
3a0f60c194f998ca244f592a9182bc820f9d014e
[]
no_license
STAMP-project/dspot-experiments
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
121487e65cdce6988081b67f21bbc6731354a47f
refs/heads/master
2023-02-07T14:40:12.919811
2019-11-06T07:17:09
2019-11-06T07:17:09
75,710,758
14
19
null
2023-01-26T23:57:41
2016-12-06T08:27:42
null
UTF-8
Java
false
false
6,250
java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.storm.daemon.logviewer.handler; import Response.Status.NOT_FOUND; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.List; import java.util.Map; import javax.ws.rs.core.Response; import org.apache.storm.daemon.logviewer.utils.LogviewerResponseBuilder; import org.apache.storm.daemon.logviewer.utils.ResourceAuthorizer; import org.apache.storm.metric.StormMetricsRegistry; import org.apache.storm.testing.TmpPath; import org.apache.storm.utils.Utils; import org.assertj.core.util.Lists; import org.hamcrest.CoreMatchers; import org.junit.Assert; import org.junit.Test; public class LogviewerLogPageHandlerTest { /** * list-log-files filter selects the correct log files to return. */ @Test public void testListLogFiles() throws IOException { String rootPath = Files.createTempDirectory("workers-artifacts").toFile().getCanonicalPath(); File file1 = new File(String.join(File.separator, rootPath, "topoA", "1111"), "worker.log"); File file2 = new File(String.join(File.separator, rootPath, "topoA", "2222"), "worker.log"); File file3 = new File(String.join(File.separator, rootPath, "topoB", "1111"), "worker.log"); file1.getParentFile().mkdirs(); file2.getParentFile().mkdirs(); file3.getParentFile().mkdirs(); file1.createNewFile(); file2.createNewFile(); file3.createNewFile(); String origin = "www.origin.server.net"; Map<String, Object> stormConf = Utils.readStormConfig(); StormMetricsRegistry metricsRegistry = new StormMetricsRegistry(); LogviewerLogPageHandler handler = new LogviewerLogPageHandler(rootPath, rootPath, new org.apache.storm.daemon.logviewer.utils.WorkerLogs(stormConf, Paths.get(rootPath), metricsRegistry), new ResourceAuthorizer(stormConf), metricsRegistry); final Response expectedAll = LogviewerResponseBuilder.buildSuccessJsonResponse(Lists.newArrayList("topoA/port1/worker.log", "topoA/port2/worker.log", "topoB/port1/worker.log"), null, origin); final Response expectedFilterPort = LogviewerResponseBuilder.buildSuccessJsonResponse(Lists.newArrayList("topoA/port1/worker.log", "topoB/port1/worker.log"), null, origin); final Response expectedFilterTopoId = LogviewerResponseBuilder.buildSuccessJsonResponse(Lists.newArrayList("topoB/port1/worker.log"), null, origin); final Response returnedAll = handler.listLogFiles("user", null, null, null, origin); final Response returnedFilterPort = handler.listLogFiles("user", 1111, null, null, origin); final Response returnedFilterTopoId = handler.listLogFiles("user", null, "topoB", null, origin); Utils.forceDelete(rootPath); assertEqualsJsonResponse(expectedAll, returnedAll, List.class); assertEqualsJsonResponse(expectedFilterPort, returnedFilterPort, List.class); assertEqualsJsonResponse(expectedFilterTopoId, returnedFilterTopoId, List.class); } @Test public void testListLogFilesOutsideLogRoot() throws IOException { try (TmpPath rootPath = new TmpPath()) { String origin = "www.origin.server.net"; LogviewerLogPageHandler handler = createHandlerForTraversalTests(rootPath.getFile().toPath()); // The response should be empty, since you should not be able to list files outside the worker log root. final Response expected = LogviewerResponseBuilder.buildSuccessJsonResponse(Lists.newArrayList(), null, origin); final Response returned = handler.listLogFiles("user", null, "../", null, origin); assertEqualsJsonResponse(expected, returned, List.class); } } @Test public void testLogPageOutsideLogRoot() throws Exception { try (TmpPath rootPath = new TmpPath()) { LogviewerLogPageHandler handler = createHandlerForTraversalTests(rootPath.getFile().toPath()); final Response returned = handler.logPage("../nimbus.log", 0, 100, null, "user"); Utils.forceDelete(rootPath.toString()); // Should not show files outside worker log root. Assert.assertThat(returned.getStatus(), CoreMatchers.is(NOT_FOUND.getStatusCode())); } } @Test public void testDaemonLogPageOutsideLogRoot() throws Exception { try (TmpPath rootPath = new TmpPath()) { LogviewerLogPageHandler handler = createHandlerForTraversalTests(rootPath.getFile().toPath()); final Response returned = handler.daemonLogPage("../evil.sh", 0, 100, null, "user"); Utils.forceDelete(rootPath.toString()); // Should not show files outside daemon log root. Assert.assertThat(returned.getStatus(), CoreMatchers.is(NOT_FOUND.getStatusCode())); } } @Test public void testDaemonLogPagePathIntoWorkerLogs() throws Exception { try (TmpPath rootPath = new TmpPath()) { LogviewerLogPageHandler handler = createHandlerForTraversalTests(rootPath.getFile().toPath()); final Response returned = handler.daemonLogPage("workers-artifacts/topoA/worker.log", 0, 100, null, "user"); Utils.forceDelete(rootPath.toString()); // Should not show files outside log root. Assert.assertThat(returned.getStatus(), CoreMatchers.is(NOT_FOUND.getStatusCode())); } } }
[ "benjamin.danglot@inria.fr" ]
benjamin.danglot@inria.fr
f9f474a28afb8730e37ca9e3a8682cf0637606a1
ac7d7a2209a09b3c101fe1928b09cd16187b4b22
/src/main/java/com/unbank/util/BZipUtil.java
517c175c2681c06e8b7405d3159b6a17d6135864
[]
no_license
liangyangtao/dht_spider
635326a6044fd2fa32209086cebdc362bfe6fdf5
d7ad5aa13e9b49e9973a31aeb397e7b54ba8cd2a
refs/heads/master
2020-12-25T14:24:04.238386
2016-06-30T03:15:34
2016-06-30T03:15:34
62,275,579
2
1
null
null
null
null
UTF-8
Java
false
false
1,317
java
package com.unbank.util; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import com.unbank.bzip2.CBZip2InputStream; import com.unbank.bzip2.CBZip2OutputStream; public class BZipUtil { /*** * 压缩BZip2 * * @param data * @return */ public static byte[] bZip2(byte[] data) { byte[] b = null; try { ByteArrayOutputStream bos = new ByteArrayOutputStream(); CBZip2OutputStream bzip2 = new CBZip2OutputStream(bos); bzip2.write(data); bzip2.flush(); bzip2.close(); b = bos.toByteArray(); bos.close(); } catch (Exception ex) { ex.printStackTrace(); } return b; } /*** * 解压BZip2 * * @param data * @return */ public static byte[] unBZip2(byte[] data) { byte[] b = null; try { ByteArrayInputStream bis = new ByteArrayInputStream(data); CBZip2InputStream bzip2 = new CBZip2InputStream(bis); byte[] buf = new byte[1024]; int num = -1; ByteArrayOutputStream baos = new ByteArrayOutputStream(); while ((num = bzip2.read(buf, 0, buf.length)) != -1) { baos.write(buf, 0, num); } b = baos.toByteArray(); baos.flush(); baos.close(); bzip2.close(); bis.close(); } catch (Exception ex) { ex.printStackTrace(); } return b; } }
[ "674613438@qq.com" ]
674613438@qq.com
f9ee2400f499a0d23a412896e86655d5263ccebe
20b8c445caef4c81b5cdf85985157d91d807df58
/technologyinformation/app/src/main/java/com/system/technologyinformation/widget/Relativelayout_15_6.java
946d7e3438d110ef54f7edc0c42194990ad40aa0
[]
no_license
lihuangmeiji/gyj
657f8eca0c7c2ef0f40f22989acb2197d8dbfa60
57d92c91bb12294b8caf8410769d906adc9449a7
refs/heads/master
2022-10-01T13:13:33.183746
2020-06-03T05:39:06
2020-06-03T05:39:06
268,991,908
0
0
null
null
null
null
UTF-8
Java
false
false
1,109
java
package com.system.technologyinformation.widget; import android.content.Context; import android.support.annotation.Nullable; import android.util.AttributeSet; import android.widget.RelativeLayout; public class Relativelayout_15_6 extends RelativeLayout{ public Relativelayout_15_6(Context context) { super(context); } public Relativelayout_15_6(Context context, @Nullable AttributeSet attrs) { super(context, attrs); } public Relativelayout_15_6(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int finalWidth = MeasureSpec.getSize(widthMeasureSpec); int finalHeight = (int) (finalWidth * 7.0f / 15); //Log.i("widthAndHeight", "onMeasure: finalHeight:"+finalHeight+"--finalWidth:"+finalWidth); super.onMeasure( MeasureSpec.makeMeasureSpec(finalWidth, MeasureSpec.EXACTLY), MeasureSpec.makeMeasureSpec(finalHeight, MeasureSpec.EXACTLY)); } }
[ "1329996096@qq.com" ]
1329996096@qq.com
9ede0b648129b2874d6eb0897932687a2171f86f
dfa8d3e26e66f0cb6d55199321786080a2867dd2
/transaction-base/serializer/serializer-fst/src/main/java/com/jef/transaction/serializer/fst/FstSerializer.java
7ccadfd948991a56e3f33cf62b30c27d9d58b056
[]
no_license
s1991721/cloud_transaction
e61b2eae4a283bf772b56c646f2d897215eb5dec
015507cd87b5ba95905e7fefeb462be94c4660c4
refs/heads/main
2023-08-04T01:41:02.147299
2021-09-10T08:01:53
2021-09-10T08:01:53
401,238,251
0
0
null
null
null
null
UTF-8
Java
false
false
1,178
java
/* * Copyright 1999-2019 Seata.io Group. * * 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.jef.transaction.serializer.fst; import com.jef.transaction.common.loader.LoadLevel; import com.jef.transaction.core.serializer.Serializer; /** * @author funkye */ @LoadLevel(name = "FST") public class FstSerializer implements Serializer { private FstSerializerFactory fstFactory = FstSerializerFactory.getDefaultFactory(); @Override public <T> byte[] serialize(T t) { return fstFactory.serialize(t); } @Override public <T> T deserialize(byte[] bytes) { return (T)fstFactory.deserialize(bytes); } }
[ "278971585@qq.com" ]
278971585@qq.com
2334642ccb0e0662842017e02a3f931cf7fedc50
b2b4a6bab187aaa35f5bfc324f0ef07d37c8914a
/miscellaneous/L843.java
4b72bbdef5974fda9b3bfacd23cdf9eb9fde2a1c
[]
no_license
fyiyu091/Leetcode
7dd908a39bde4c019bda98038538ddcbfaf2e9c7
54c0a823cbf742f4693bb8c7824d9d67221fc5bb
refs/heads/master
2023-07-19T05:37:41.645801
2021-08-31T03:25:25
2021-08-31T03:25:25
275,048,455
0
0
null
null
null
null
UTF-8
Java
false
false
1,187
java
package miscellaneous; import java.util.ArrayList; import java.util.List; import java.util.Random; /* Guess the word Randomly pick up one and remove all the words that have the same match */ public class L843 { interface Master { public int guess(String word); } public void findSecretWord(String[] wordlist, Master master) { for (int i = 0, matches = 0; i < 10 && matches < 6; i++) { Random rand = new Random(); int nextGuess = rand.nextInt(wordlist.length); String pickedWord = wordlist[nextGuess]; matches = master.guess(pickedWord); List<String> updatedWordList = new ArrayList<>(); for (String word : wordlist) { if (getMatches(pickedWord, word) == matches) { updatedWordList.add(word); } } wordlist = updatedWordList.toArray(new String[] {}); } } private int getMatches(String w1, String w2) { int res = 0; for (int i = 0; i < 6; i++) { if (w1.charAt(i) == w2.charAt(i)) { res++; } } return res; } }
[ "yiyu091@gmail.com" ]
yiyu091@gmail.com
d8e75e7611e8b88ce0497f855ebd865927e2b580
2f4a058ab684068be5af77fea0bf07665b675ac0
/utils/com/google/common/base/CharMatcher$15.java
ed73549030006bb5bd02478829110833d8f92d9b
[]
no_license
cengizgoren/facebook_apk_crack
ee812a57c746df3c28fb1f9263ae77190f08d8d2
a112d30542b9f0bfcf17de0b3a09c6e6cfe1273b
refs/heads/master
2021-05-26T14:44:04.092474
2013-01-16T08:39:00
2013-01-16T08:39:00
8,321,708
1
0
null
null
null
null
UTF-8
Java
false
false
515
java
package com.google.common.base; class CharMatcher$15 extends CharMatcher { CharMatcher$15(CharMatcher paramCharMatcher, CharMatcher.LookupTable paramLookupTable) { } public boolean matches(char paramChar) { return this.val$table.get(paramChar); } public CharMatcher precomputed() { return this; } } /* Location: /data1/software/apk2java/dex2jar-0.0.9.12/secondary-1.dex_dex2jar.jar * Qualified Name: com.google.common.base.CharMatcher.15 * JD-Core Version: 0.6.2 */
[ "macluz@msn.com" ]
macluz@msn.com
7cf0352e6d9f817302f98c3032ee540195465713
40665051fadf3fb75e5a8f655362126c1a2a3af6
/datasalt-pangool/9ab9135a33ee43093141e755fba31b7b5ff5957e/119/TupleCombiner.java
8a39a82ced0990b8bf8f5b7ce489fd0770cd1453
[]
no_license
fermadeiral/StyleErrors
6f44379207e8490ba618365c54bdfef554fc4fde
d1a6149d9526eb757cf053bc971dbd92b2bfcdf1
refs/heads/master
2020-07-15T12:55:10.564494
2019-10-24T02:30:45
2019-10-24T02:30:45
205,546,543
2
0
null
null
null
null
UTF-8
Java
false
false
3,109
java
/** * Copyright [2012] [Datasalt Systems S.L.] * * 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.datasalt.pangool.tuplemr.mapred.tuplemr; import java.io.IOException; import java.io.Serializable; import org.apache.hadoop.io.NullWritable; import org.apache.hadoop.mapreduce.ReduceContext; import com.datasalt.pangool.io.tuple.ITuple; import com.datasalt.pangool.io.tuple.DatumWrapper; import com.datasalt.pangool.tuplemr.TupleMRConfig; import com.datasalt.pangool.tuplemr.TupleMRException; import com.datasalt.pangool.tuplemr.mapred.tuplemr.TupleReducer.StaticTupleMRContext; @SuppressWarnings("serial") public class TupleCombiner implements Serializable { public void setup(TupleMRContext context, Collector collector) throws IOException, InterruptedException, TupleMRException { } public void onGroupElements(ITuple group, Iterable<ITuple> tuples, TupleMRContext context, Collector collector) throws IOException, InterruptedException, TupleMRException { } public void cleanup(TupleMRContext context, Collector collector) throws IOException, InterruptedException, TupleMRException { } /* ------------ INNER CLASSES ------------ */ /** * A class for collecting data inside a {@link TupleCombiner}. */ public static final class Collector { private ReduceContext<DatumWrapper<ITuple>, NullWritable, DatumWrapper<ITuple>, NullWritable> context; private ThreadLocal<DatumWrapper<ITuple>> cachedDatum = new ThreadLocal<DatumWrapper<ITuple>>(){ @Override public DatumWrapper<ITuple> get(){ return new DatumWrapper<ITuple>(); } }; private NullWritable nullWritable = NullWritable.get(); public Collector(TupleMRConfig pangoolConfig, ReduceContext<DatumWrapper<ITuple>, NullWritable, DatumWrapper<ITuple>, NullWritable> context){ this.context = context; } public void write(ITuple tuple) throws IOException,InterruptedException { DatumWrapper<ITuple> outputDatum = cachedDatum.get(); outputDatum.datum(tuple); context.write(outputDatum, nullWritable); } } public class TupleMRContext extends StaticTupleMRContext<DatumWrapper<ITuple>, NullWritable> { /* * This non static inner class is created to eliminate the need in * of the extended GroupHandler methods to specify the generic types * for the CoGrouperContext meanwhile keeping generics. */ public TupleMRContext(ReduceContext<DatumWrapper<ITuple>, NullWritable, DatumWrapper<ITuple>, NullWritable> hadoopContext, TupleMRConfig pangoolConfig) { super(hadoopContext, pangoolConfig); } } }
[ "fer.madeiral@gmail.com" ]
fer.madeiral@gmail.com
0ad7053445dcc47da8ba4660e0c6609233f0e56a
e9a9d7c4095907559bb395f0ea4b161fbd61b041
/src/test/java/com/cybertek/pages/GoogleSearchPage.java
a2966652423884cd611e0b107c63baf3c40ebf61
[]
no_license
Huri123/cybertek18-cucumber-junit
25d8a91670f6c31a046a01921dbd52991b970481
fa882bdbf0487eaba65179d31b9dc0bbec136e2d
refs/heads/master
2022-11-26T22:20:21.885517
2020-08-10T02:41:23
2020-08-10T02:41:23
286,359,555
0
0
null
null
null
null
UTF-8
Java
false
false
1,129
java
package com.cybertek.pages; import com.cybertek.utilities.Driver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import java.util.List; public class GoogleSearchPage { public GoogleSearchPage() { PageFactory.initElements(Driver.getDriver(), this); } @FindBy(name = "q") public WebElement searchBox; @FindBy(linkText = "About") public WebElement aboutLink; @FindBy(xpath = "//a[@class='Fx4vi']") public List<WebElement> footerLinks; } /*Gurhan'in Kodlari: import com.cybertek.utilities.Driver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import java.util.List; public class GoogleSearchPage { public GoogleSearchPage(){ PageFactory.initElements(Driver.getDriver(), this); } @FindBy(name = "q") public WebElement searchBox; @FindBy(linkText = "About") public WebElement aboutLink; @FindBy(xpath = "//a[@class='Fx4vi']") public List<WebElement> footerLinks; } */
[ "hurioruc2019@gmail.com" ]
hurioruc2019@gmail.com
384368a523e4e6df57c0ee1c4a7f332fbd261990
49b87ac922de2ba9f7f16de75ef421ba37d23dcc
/Sistema_Venta_de_Libros/src/main/java/model/Producto.java
010f0a4099069a40f81c36a576c631e6090f54de
[]
no_license
rabeltre/Sistema_Venta_de_Libros
910df1bc6b3b4ed9f1a2142939be8ba0fc59e3df
7bb4350f6a713b196fdff50d9ff84cc7667f67ca
refs/heads/master
2021-01-01T04:34:38.472734
2016-05-20T01:47:29
2016-05-20T01:47:29
58,420,683
0
0
null
null
null
null
UTF-8
Java
false
false
2,540
java
package model; // Generated May 8, 2016 2:29:43 AM by Hibernate Tools 4.3.1 import java.math.BigDecimal; import java.util.HashSet; import java.util.Set; /** * Producto generated by hbm2java */ public class Producto implements java.io.Serializable { private Integer idProducto; private Editorial editorial; private Estado estado; private String nombre; private int cantidad; private BigDecimal precio; private BigDecimal precioVenta; private Set compras = new HashSet(0); public Producto() { } public Producto(Editorial editorial, Estado estado, String nombre, int cantidad, BigDecimal precio, BigDecimal precioVenta) { this.editorial = editorial; this.estado = estado; this.nombre = nombre; this.cantidad = cantidad; this.precio = precio; this.precioVenta = precioVenta; } public Producto(Editorial editorial, Estado estado, String nombre, int cantidad, BigDecimal precio, BigDecimal precioVenta, Set compras) { this.editorial = editorial; this.estado = estado; this.nombre = nombre; this.cantidad = cantidad; this.precio = precio; this.precioVenta = precioVenta; this.compras = compras; } public Integer getIdProducto() { return this.idProducto; } public void setIdProducto(Integer idProducto) { this.idProducto = idProducto; } public Editorial getEditorial() { return this.editorial; } public void setEditorial(Editorial editorial) { this.editorial = editorial; } public Estado getEstado() { return this.estado; } public void setEstado(Estado estado) { this.estado = estado; } public String getNombre() { return this.nombre; } public void setNombre(String nombre) { this.nombre = nombre; } public int getCantidad() { return this.cantidad; } public void setCantidad(int cantidad) { this.cantidad = cantidad; } public BigDecimal getPrecio() { return this.precio; } public void setPrecio(BigDecimal precio) { this.precio = precio; } public BigDecimal getPrecioVenta() { return this.precioVenta; } public void setPrecioVenta(BigDecimal precioVenta) { this.precioVenta = precioVenta; } public Set getCompras() { return this.compras; } public void setCompras(Set compras) { this.compras = compras; } }
[ "root@localhost.localdomain" ]
root@localhost.localdomain
91e810b41ad062c74d69577fedeeb324a1c85e58
0ceafc2afe5981fd28ce0185e0170d4b6dbf6241
/AlgoKit (3rdp)/Code-store v1.0/yaal/lib/test/on2012_12/on2012_12_19_Volume_3/_1215___Exactness_of_Projectile_Hit/Task1215.java
eefdd57dfe333475a39b79e8aacfb5c3c0289111
[]
no_license
brainail/.happy-coooding
1cd617f6525367133a598bee7efb9bf6275df68e
cc30c45c7c9b9164095905cc3922a91d54ecbd15
refs/heads/master
2021-06-09T02:54:36.259884
2021-04-16T22:35:24
2021-04-16T22:35:24
153,018,855
2
1
null
null
null
null
UTF-8
Java
false
false
890
java
package on2012_12.on2012_12_19_Volume_3._1215___Exactness_of_Projectile_Hit; import net.egork.geometry.Point; import net.egork.geometry.Polygon; import net.egork.geometry.Segment; import net.egork.utils.io.InputReader; import net.egork.utils.io.OutputWriter; public class Task1215 { public void solve(int testNumber, InputReader in, OutputWriter out) { Point shot = Point.readPoint(in); int count = in.readInt(); Point[] target = new Point[count]; for (int i = 0; i < count; i++) { target[i] = Point.readPoint(in); } Polygon polygon = new Polygon(target); if (polygon.contains(shot)) { out.printLine("0.000"); return; } double answer = new Segment(target[count - 1], target[0]).distance(shot); for (int i = 1; i < count; i++) answer = Math.min(answer, new Segment(target[i - 1], target[i]).distance(shot)); out.printFormat("%.3f\n", 2 * answer); } }
[ "wsemirz@gmail.com" ]
wsemirz@gmail.com
ea6aa43ca68e9c6fac26889ef0de946c7d1ba885
d6b6abe73a0c82656b04875135b4888c644d2557
/sources/com/google/android/gms/common/n.java
eba93bd42ab9afb1281f2aea0a02b9f7289434e0
[]
no_license
chanyaz/and_unimed
4344d1a8ce8cb13b6880ca86199de674d770304b
fb74c460f8c536c16cca4900da561c78c7035972
refs/heads/master
2020-03-29T09:07:09.224595
2018-08-30T06:29:32
2018-08-30T06:29:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
149
java
package com.google.android.gms.common; public final class n { public static final int common_google_play_services_unknown_issue = 2131230745; }
[ "khairilirfanlbs@gmail.com" ]
khairilirfanlbs@gmail.com
41763a952f0aa2a5d4616f08254ffaae5ef2ac15
b5f5c802cc7ef69113fc480a4fc4b109e86cf1d6
/samples/junit5/src/test/java/com/example/junit5/SampleJUnit5ApplicationTests.java
a6e4169d8397f897f0ff829769d72896e37649ee
[ "Apache-2.0" ]
permissive
wilkinsona/spring-restdocs
a5180d3c7149ee57a8918073a303934732cc0c2b
d3a1c0b792433635d034d803f7879a6324b1b1df
refs/heads/master
2022-01-25T15:34:58.481889
2020-09-14T10:33:32
2020-09-14T10:33:32
24,940,450
50
9
null
null
null
null
UTF-8
Java
false
false
2,238
java
/* * Copyright 2014-2018 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 com.example.junit5; import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.document; import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.documentationConfiguration; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.restdocs.RestDocumentationContextProvider; import org.springframework.restdocs.RestDocumentationExtension; import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.setup.MockMvcBuilders; import org.springframework.web.context.WebApplicationContext; @SpringBootTest @ExtendWith({RestDocumentationExtension.class, SpringExtension.class}) public class SampleJUnit5ApplicationTests { @Autowired private WebApplicationContext context; private MockMvc mockMvc; @BeforeEach public void setUp(RestDocumentationContextProvider restDocumentation) { this.mockMvc = MockMvcBuilders.webAppContextSetup(context) .apply(documentationConfiguration(restDocumentation)).build(); } @Test public void sample() throws Exception { this.mockMvc.perform(get("/")) .andExpect(status().isOk()) .andDo(document("sample")); } }
[ "awilkinson@pivotal.io" ]
awilkinson@pivotal.io
bfd5de0aa9d264cc42940ce218b6af937b8e2a1e
6bf5dfe453d489e66b04a82514cc314f7042d958
/WCP/fdahpStudyDesigner/src/main/java/com/hphc/mystudies/bo/NotificationHistoryBO.java
b6e985cebf70f7cbba36cd5a8902aabd37ca0ca0
[ "MIT", "Apache-2.0" ]
permissive
elliot2extreme/FDA-My-Studies-Mobile-Application-System
19cba2bb18404b83df1b37c42211201910b7bff2
4a9fa581a439c7b17a671efe7b2e5b6309d10cd7
refs/heads/2019.05
2022-01-09T06:14:58.415053
2019-05-14T17:26:03
2019-05-14T17:26:03
190,152,983
0
0
NOASSERTION
2019-06-06T09:53:14
2019-06-04T07:37:13
Java
WINDOWS-1252
Java
false
false
3,004
java
/* * Copyright © 2017-2018 Harvard Pilgrim Health Care Institute (HPHCI) and its Contributors. * 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. * * Funding Source: Food and Drug Administration ("Funding Agency") effective 18 September 2014 as Contract no. * HHSF22320140030I/HHSF22301006T (the "Prime Contract"). * * 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 NON-INFRINGEMENT. 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.hphc.mystudies.bo; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Transient; /** * The persistent class for the notification_history database table. * * @author BTC * */ @Entity @Table(name = "notification_history") public class NotificationHistoryBO implements Serializable { private static final long serialVersionUID = 3634540541782531200L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "history_id") private Integer historyId; @Column(name = "notification_id") private Integer notificationId; @Column(name = "notification_sent_date_time") private String notificationSentDateTime; @Transient private String notificationSentdtTime; public Integer getHistoryId() { return historyId; } public Integer getNotificationId() { return notificationId; } public String getNotificationSentDateTime() { return notificationSentDateTime; } public String getNotificationSentdtTime() { return notificationSentdtTime; } public void setHistoryId(Integer historyId) { this.historyId = historyId; } public void setNotificationId(Integer notificationId) { this.notificationId = notificationId; } public void setNotificationSentDateTime(String notificationSentDateTime) { this.notificationSentDateTime = notificationSentDateTime; } public void setNotificationSentdtTime(String notificationSentdtTime) { this.notificationSentdtTime = notificationSentdtTime; } }
[ "Adam_Paczuski@harvardpilgrim.org" ]
Adam_Paczuski@harvardpilgrim.org
904f5f1590b10be0bb4317a5f623912e23ea7d81
f13127584597680adceb0311bf7fece61e084575
/Clase01/SpringXML/src/ejm01/Prueba03.java
ddb974029b7a023065c13580c90be68f7b9824d3
[]
no_license
gcoronelc/SISTUNI_SPRING_005
ee997dfd4c9925a7e580b044e7d718ac03d4f853
1ff8689c71cda7744e92be352985591ce3bc30bf
refs/heads/master
2020-03-18T16:12:04.780538
2018-06-18T13:31:13
2018-06-18T13:31:13
134,952,312
0
0
null
null
null
null
UTF-8
Java
false
false
496
java
package ejm01; import org.springframework.beans.factory.BeanFactory; import org.springframework.context.support.ClassPathXmlApplicationContext; public class Prueba03 { public static void main(String[] args) { String contexto = "/ejm01/contexto.xml"; BeanFactory beanFactory; beanFactory = new ClassPathXmlApplicationContext(contexto); Matematica bean = beanFactory.getBean(Matematica.class); System.out.println("SUMA: " + bean.suma(5, 8)); } }
[ "gcoronelc@gmail.com" ]
gcoronelc@gmail.com
bcd8f460a1af4c96f1d14a1fda3b48281e7fdfc9
cb601c9b503d43d5dea2c54e777ecd115222a16a
/src/org/pepstock/charba/client/impl/charts/package-info.java
6de83b46c193d522c745946df01607b55d3ec024
[ "LicenseRef-scancode-free-unknown", "Apache-2.0", "MIT" ]
permissive
pepstock-org/Charba
cdd98c47081cb3cf52a939c8c3489a80fa9451fd
32e1807325b646918f595b3043e4990dccb112b4
refs/heads/master
2023-09-01T11:43:20.143296
2023-08-28T19:49:14
2023-08-28T19:49:14
106,569,586
55
7
Apache-2.0
2023-08-28T19:37:21
2017-10-11T15:03:37
Java
UTF-8
Java
false
false
1,025
java
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /** * Contains METER and GAUGE charts implementations (based on controllers), available out-of-the box. * * @author Andrea "Stock" Stocchero * */ package org.pepstock.charba.client.impl.charts;
[ "stocki.nail@gmail.com" ]
stocki.nail@gmail.com
25ec9e019f900b1f4775688022a983facdd8e22a
70f91957d10020fd61d1e05abe9bb2ee22e6b37a
/src/main/java/com/prb/erp/domain/code/master/BasicCodeMaster.java
4532256bd1dc5e2fa9a4f159327540e4679ba7fb
[]
no_license
deepstudyDev/prb_erp_api
a4e00c93eaf69ebc2b8a36f47856270d729fac81
42895ef14382f1c693e0b667052fef5f3e7d396f
refs/heads/master
2020-04-12T19:15:17.805284
2019-03-20T00:16:33
2019-03-20T00:16:33
161,093,008
0
0
null
null
null
null
UTF-8
Java
false
false
2,225
java
package com.prb.erp.domain.code.master; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Embeddable; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.IdClass; import javax.persistence.Table; import org.apache.ibatis.type.Alias; import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicUpdate; import com.chequer.axboot.core.annotations.ColumnPosition; import com.chequer.axboot.core.annotations.Comment; import com.prb.erp.domain.BaseJpaModel; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.NonNull; import lombok.RequiredArgsConstructor; import lombok.Setter; @Setter @Getter @DynamicInsert @DynamicUpdate @Entity @EqualsAndHashCode(callSuper = true) @Table(name = "TB_ERP_CODE000") @Comment(value = "") @IdClass(BasicCodeMaster.BasicCodeMasterId.class) @Alias("basicCodeMaster") public class BasicCodeMaster extends BaseJpaModel<BasicCodeMaster.BasicCodeMasterId> { @Id @Column(name = "MAIN_CODE", length = 50, nullable = false) @ColumnPosition(1) @Comment(value = "대분류") private String mainCode; @Column(name = "MAIN_NAME", length = 200, nullable = false) @ColumnPosition(2) @Comment(value = "대분류명") private String mainName; @Column(name = "REMARK", length = 4000) @ColumnPosition(3) @Comment(value = "비고") private String remark; @Column(name = "USE_YN", length = 20) @ColumnPosition(4) @Comment(value = "사용유무") private String useYn; public static BasicCodeMaster of(String mainCode, String mainName) { BasicCodeMaster basicCode = new BasicCodeMaster(); basicCode.setMainCode(mainCode); basicCode.setMainName(mainName); basicCode.setUseYn("Y"); return basicCode; } @Override public BasicCodeMasterId getId() { return BasicCodeMasterId.of(mainCode); } @Embeddable @Data @NoArgsConstructor @RequiredArgsConstructor(staticName = "of") public static class BasicCodeMasterId implements Serializable { @NonNull private String mainCode; } }
[ "admin@ideepstudy.com" ]
admin@ideepstudy.com
b78e09d7128f5e950a2476f4a20770c49c24dbb5
f6beea8ab88dad733809e354ef9a39291e9b7874
/com/planet_ink/coffee_mud/Commands/GTell.java
d724afa9cfb3527e4b4b9b73217060b3c054ac12
[ "Apache-2.0" ]
permissive
bonnedav/CoffeeMud
c290f4d5a96f760af91f44502495a3dce3eea415
f629f3e2e10955e47db47e66d65ae2883e6f9072
refs/heads/master
2020-04-01T12:13:11.943769
2018-10-11T02:50:45
2018-10-11T02:50:45
153,196,768
0
0
Apache-2.0
2018-10-15T23:58:53
2018-10-15T23:58:53
null
UTF-8
Java
false
false
5,122
java
package com.planet_ink.coffee_mud.Commands; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import com.planet_ink.coffee_mud.CharClasses.interfaces.*; import com.planet_ink.coffee_mud.Commands.interfaces.*; import com.planet_ink.coffee_mud.Common.interfaces.*; import com.planet_ink.coffee_mud.Exits.interfaces.*; import com.planet_ink.coffee_mud.Items.interfaces.*; import com.planet_ink.coffee_mud.Libraries.interfaces.*; import com.planet_ink.coffee_mud.Locales.interfaces.*; import com.planet_ink.coffee_mud.MOBS.interfaces.*; import com.planet_ink.coffee_mud.Races.interfaces.*; import java.util.*; /* Copyright 2004-2018 Bo Zimmerman 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. */ public class GTell extends StdCommand { public GTell() { } private final String[] access=I(new String[]{"GTELL","GT"}); @Override public String[] getAccessWords() { return access; } @Override public boolean execute(MOB mob, List<String> commands, int metaFlags) throws java.io.IOException { String text=CMParms.combine(commands,1); if(text.length()==0) { mob.tell(L("Tell the group what?")); return false; } text=CMProps.applyINIFilter(text,CMProps.Str.SAYFILTER); if((commands.size()>2) &&((commands.get(1).equalsIgnoreCase("last")) &&(CMath.isNumber(CMParms.combine(commands,2)))) &&(mob.playerStats()!=null)) { final java.util.List<String> V=mob.playerStats().getGTellStack(); if(V.size()==0) mob.tell(L("No telling.")); else { int num=CMath.s_int(CMParms.combine(commands,2)); if(num>V.size()) num=V.size(); for(int i=V.size()-num;i<V.size();i++) mob.tell(V.get(i)); } return false; } CMMsg tellMsg=CMClass.getMsg(mob,null,null,CMMsg.MSG_TELL,null,CMMsg.NO_EFFECT,null,CMMsg.MSG_TELL,null); text=text.trim(); if(text.startsWith(",") ||(text.startsWith(":") &&(text.length()>1) &&(Character.isLetter(text.charAt(1))||text.charAt(1)==' '))) { text=text.substring(1); final Vector<String> V=CMParms.parse(text); Social S=CMLib.socials().fetchSocial(V,true,false); if(S==null) S=CMLib.socials().fetchSocial(V,false,false); if(S!=null) { tellMsg=S.makeMessage(mob, "^t^<GTELL \""+CMStrings.removeColors(mob.name())+"\"^>[GTELL] ", "^</GTELL^>^?^.", CMMsg.MASK_ALWAYS, CMMsg.MSG_TELL, V, null, false); } else { if(text.trim().startsWith("'")||text.trim().startsWith("`")) text=text.trim(); else text=" "+text.trim(); tellMsg.setSourceMessage("^t^<GTELL \""+CMStrings.removeColors(mob.name())+"\"^>[GTELL] <S-NAME>"+text+"^</GTELL^>^?^."); tellMsg.setOthersMessage("^t^<GTELL \""+CMStrings.removeColors(mob.name())+"\"^>"+mob.name()+" tells the group '"+text+"'^</GTELL^>^?^."); } } else { tellMsg.setSourceMessage("^t^<GTELL \""+CMStrings.removeColors(mob.name())+"\"^><S-NAME> tell(s) the group '"+text+"'^</GTELL^>^?^."); tellMsg.setOthersMessage("^t^<GTELL \""+CMStrings.removeColors(mob.name())+"\"^>"+mob.name()+" tells the group '"+text+"'^</GTELL^>^?^."); } final Set<MOB> group=mob.getGroupMembers(new HashSet<MOB>()); final CMMsg msg=tellMsg; for (final MOB target : group) { if((mob.location().okMessage(mob,msg)) &&(target.okMessage(target,msg))) { if(target.playerStats()!=null) { final String tellStr=(target==mob)?msg.sourceMessage():( (target==msg.target())?msg.targetMessage():msg.othersMessage() ); target.playerStats().addGTellStack(CMLib.coffeeFilter().fullOutFilter(target.session(),target,mob,msg.target(),null,CMStrings.removeColors(tellStr),false)); } target.executeMsg(target,msg); if(msg.trailerMsgs()!=null) { for(final CMMsg msg2 : msg.trailerMsgs()) { if((msg2!=msg)&&(target.okMessage(target,msg2))) target.executeMsg(target,msg2); } msg.trailerMsgs().clear(); } if(msg.trailerRunnables()!=null) { for(final Runnable r : msg.trailerRunnables()) CMLib.threads().executeRunnable(r); msg.trailerRunnables().clear(); } } } return false; } @Override public boolean canBeOrdered() { return true; } }
[ "bo@zimmers.net" ]
bo@zimmers.net
6f4c4fe18c533d4d8262e98c9c05b6913e1ce796
6a1c8540e81a34e315e10c1a33a1202d2f8db8ce
/AdAdmin/src/main/cn/adwalker/model/ad/dao/IPlacementResWallListDao.java
b5a28aee426fac6f44642d95d25f9dda13d300ab
[]
no_license
springwindyike/ad-server
7624a3129c705ce5cd97bfe983704d1f29b09889
c2878216505e5aea7222e830ad759a22fc6a22da
refs/heads/master
2021-12-11T05:29:26.909006
2016-10-24T02:48:55
2016-10-24T02:48:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
966
java
package cn.adwalker.model.ad.dao; import cn.adwalker.core.repository.IBaseDao; import cn.adwalker.model.ad.domain.PlacementResWallList; /** * 功能概述:<br> * * @author jiaozhichao */ public interface IPlacementResWallListDao extends IBaseDao<PlacementResWallList> { /** * <p>Title: getByPlacement</p> * <p>Description:TODO</p> * @param id * @return * @author cuidd * @date 2013-5-10 * @return PlacementResWallScore * @version 1.0 * @throws Exception */ PlacementResWallList getByPlacement(Long id) throws Exception; /** * <p>Title: saveOrUpdate</p> * <p>Description:TODO</p> * @param resWall * @author cuidd * @date 2013-5-10 * @return void * @version 1.0 * @throws Exception */ void saveOrUpdate(PlacementResWallList resWall) throws Exception; /** * <p>Title: getMaxWeight</p> * <p>Description:TODO</p> * @return * @author cuidd * @date 2013-6-1 * @return int * @version 1.0 */ int getMaxWeight(); }
[ "13565644@qq.com" ]
13565644@qq.com
c384715f4ba4d3df9b66f4d18f431018148060f3
9f27faab7822abfc4bca2a4dc6bc1f128462710e
/src/com/company/Education.java
321485f283d595d9001ab8adb44a593c9b95bcc7
[]
no_license
mhussainshah1/RoboResume
2e7d663b293d7067c2b41d656d205aa214d973df
d4061f9e2325db9235cf018491afa97e112ca287
refs/heads/master
2020-04-21T14:52:42.175782
2019-02-18T15:48:31
2019-02-18T15:48:31
169,649,414
1
1
null
null
null
null
UTF-8
Java
false
false
850
java
package com.company; public class Education { private String school; private String year; private String degree; private String major; public String getSchool() { return school; } public void setSchool(String school) { this.school = school; } public String getYear() { return year; } public void setYear(String year) { this.year = year; } public String getDegree() { return degree; } public void setDegree(String degree) { this.degree = degree; } public String getMajor() { return major; } public void setMajor(String major) { this.major = major; } @Override public String toString() { return degree + " in " + major + "\n" + school + ", " + year + "\n"; } }
[ "muhammadshah.14@sunymaritime.edu" ]
muhammadshah.14@sunymaritime.edu
e2ea964689eb3ff8fe6e4c5e5066b2693e3c0086
96d3b1d1f509f4f2d8f9e055777a15aa88271639
/library/src/cn/ieclipse/af/view/expendview/ExpandableView.java
6377fee9c158d446ccbff781d209831f9d77bdd4
[]
no_license
michael-destiny/QuickAF
69823fa4c174a41228dd53f9bc8a281fcc8ec4e1
b3c67a4c44cc1f766eaeb063915875e6572abced
refs/heads/master
2020-12-25T21:13:04.086134
2016-08-10T08:44:25
2016-08-10T08:44:25
65,339,111
0
0
null
2016-08-10T01:06:28
2016-08-10T01:06:28
null
UTF-8
Java
false
false
7,651
java
/* * Copyright 2014-2016 QuickAF * * 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 cn.ieclipse.af.view.expendview; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.LinearLayout; import android.widget.PopupWindow; import android.widget.PopupWindow.OnDismissListener; import android.widget.RelativeLayout; import android.widget.ToggleButton; import java.util.ArrayList; import java.util.List; import cn.ieclipse.af.R; public class ExpandableView extends LinearLayout implements View.OnClickListener { /** * 记录选中的ToggleButton */ private ToggleButton mSelectToggleBtn; /** * 筛选 */ private List<View> mToggleButtons = new ArrayList<>(); private List<ExpandItemView> mItemViews = new ArrayList<>(); /** * 筛选项集合 */ private List<View> mPopupViews; /** * popupwindow展示的宽 */ private int mDisplayWidth; /** * popupwindow展示的高 */ private int mDisplayHeight; /** * 筛选内容用PopupWindow弹出来 */ private PopupWindow mPopupWindow; /** * tab item layout id */ private int mTabResid; /** * popwindow默认弹出动画 */ private int popAnimationStyle; public ExpandableView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); init(context, attrs); } public ExpandableView(Context context, AttributeSet attrs) { this(context, attrs, -1); } public ExpandableView(Context context) { this(context, null); } private void init(Context context, AttributeSet attrs) { if (attrs != null) { TypedArray array = context.obtainStyledAttributes(attrs, R.styleable.expandView); mTabResid = array.getResourceId(R.styleable.expandView_tabItemId, mTabResid); array.recycle(); } setOrientation(LinearLayout.HORIZONTAL); mDisplayWidth = getResources().getDisplayMetrics().widthPixels; mDisplayHeight = getResources().getDisplayMetrics().heightPixels; mDisplayHeight = (int) (mDisplayHeight * 0.7); } /** * 初始化数据和布局 * 1.根据筛选项的数量,动态增加上面一排ToggleButton * 2.设置每一个ToggleButton的监听事件 * * @param views */ public void initViews(List<ExpandItemView> views) { mPopupViews = new ArrayList<>(); if (!mItemViews.isEmpty()) { mItemViews.clear(); } LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); for (int i = 0; i < views.size(); i++) { ExpandItemView itemView = views.get(i); mItemViews.add(itemView); final RelativeLayout tabItemLayout = new RelativeLayout(getContext()); RelativeLayout.LayoutParams rl = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT); tabItemLayout.addView(itemView, rl); mPopupViews.add(tabItemLayout); // 设置tab ToggleButton toggleButton = null; if (mTabResid > 0) {//R.layout.toggle_button toggleButton = (ToggleButton) inflater.inflate(mTabResid, this, false); } // 设置tab文字 toggleButton.setText(itemView.getTitle()); mToggleButtons.add(toggleButton); addView(toggleButton); toggleButton.setTag(i); toggleButton.setOnClickListener(this); tabItemLayout.setOnClickListener(this); } } @Override public void onClick(View view) { if (view instanceof ToggleButton) { mSelectToggleBtn = (ToggleButton) view; showPopWindow(); } else if (view instanceof RelativeLayout) { hidePopWindow(); } } public void setTabItemId(int resid) { this.mTabResid = resid; } /** * Set a drawable to be used as a divider between items. * * @param divider Drawable that will divide each item. * @param showDividers One or more of {@link #SHOW_DIVIDER_BEGINNING}, * {@link #SHOW_DIVIDER_MIDDLE}, or {@link #SHOW_DIVIDER_END}, * or {@link #SHOW_DIVIDER_NONE} to show no dividers. */ public void setDividerDrawable(Drawable divider, int showDividers) { setDividerDrawable(divider); setShowDividers(showDividers); } public void setPopAnimationStyle(int style) { this.popAnimationStyle = style; } /** * 隐藏popupWindow,并且重置ToggleButton字体颜色 */ public void hidePopWindow() { if (mPopupWindow != null) { mPopupWindow.dismiss(); } if (mSelectToggleBtn != null) { mSelectToggleBtn.setChecked(false); } } /** * 显示popupWindow */ private void showPopWindow() { int index = 0; if (mPopupViews.isEmpty()) { return; } if (mSelectToggleBtn != null) { index = (int) mSelectToggleBtn.getTag(); } if (null == mPopupWindow) { mPopupWindow = new PopupWindow(mPopupViews.get(index), mDisplayWidth, mDisplayHeight); /** 监听popupWindow的收缩*/ mPopupWindow.setOnDismissListener(new OnDismissListener() { @Override public void onDismiss() { if (mSelectToggleBtn != null) { mSelectToggleBtn.setChecked(false); } } }); if (popAnimationStyle > 0) { mPopupWindow.setAnimationStyle(popAnimationStyle); } mPopupWindow.setFocusable(true); mPopupWindow.setOutsideTouchable(true); mPopupWindow.setBackgroundDrawable(new BitmapDrawable(getResources(), (Bitmap) null)); } else { mPopupWindow.setContentView(mPopupViews.get(index)); } if (mPopupWindow.isShowing()) { hidePopWindow(); } else { mPopupWindow.showAsDropDown(mToggleButtons.get(0), 0, 0); } } public void setSelectItemText(String selectTxt) { if (null != mSelectToggleBtn) { mSelectToggleBtn.setText(selectTxt); } } public void clearChoice(int index) { if (index >= 0 && index < mItemViews.size()) { mItemViews.get(index).clearChoice(); } } public void clearAllChoice() { int size = mItemViews.size(); for (int i = 0; i < size; i++) { mItemViews.get(i).clearChoice(); } } }
[ "li.jamling@gmail.com" ]
li.jamling@gmail.com
23be350375d5599f7e11e56a14681c23845dc405
6ea38854428bec476bb0eda889af1ff7e28f10a8
/src/main/java/com/prokarma/engineering/excellence/customer/publisher/configuration/SwaggerDocumentationConfig.java
c28c64e73b36d8136aa5332c627d40d099d07aa9
[]
no_license
Saran06449/CustomerPublisherService
f2144d428f4723a9448a23c0d3b3dcbdfb765fa1
1a8150fc0f291e7311f370733655ba7be9cb72e6
refs/heads/master
2023-03-28T12:24:37.001041
2021-03-26T14:07:01
2021-03-26T14:07:01
349,065,950
0
0
null
null
null
null
UTF-8
Java
false
false
1,848
java
package com.prokarma.engineering.excellence.customer.publisher.configuration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.service.ApiInfo; import springfox.documentation.service.Contact; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.swagger2.annotations.EnableSwagger2; @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-03-22T06:13:52.948Z") @Configuration @EnableSwagger2 public class SwaggerDocumentationConfig { ApiInfo apiInfo() { return new ApiInfoBuilder() .title("Swagger store") .description("This is a sample server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.") .license("Apache 2.0") .licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html") .termsOfServiceUrl("") .version("1.0.0") .contact(new Contact("","", "apiteam@swagger.io")) .build(); } @Bean public Docket customImplementation(){ return new Docket(DocumentationType.SWAGGER_2) .select() .apis(RequestHandlerSelectors.basePackage("com.prokarma.engineering.excellence.customer.publisher.controller")) .paths(PathSelectors.any()) .build(); } }
[ "you@example.com" ]
you@example.com
ed4279392cda875d3bde2efe68572c9151976a7b
b6124e2bc2d031721186510f8f74f49c7e3dd489
/my-spring-cloud/SpringCloudSecond/my-spring-cloud/spring-boot-helloword-04/src/main/java/com/dingxiang/web/HelloController.java
8e783c16d4aebafeccf09328255e77502cc4d1c3
[]
no_license
Lidingxiang/java
4c34d564693704cfc236b7eeb7a4a826fdcc6aa9
0ce5e061406aa39b6c958ea464f7c16be610e5b8
refs/heads/master
2021-05-01T03:15:20.660485
2018-11-09T09:37:48
2018-11-09T09:37:48
121,188,582
0
0
null
null
null
null
UTF-8
Java
false
false
1,865
java
package com.dingxiang.web; import com.dingxiang.dto.User; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cloud.client.ServiceInstance; import org.springframework.cloud.client.discovery.DiscoveryClient; import org.springframework.web.bind.annotation.*; import java.util.Random; @RestController public class HelloController { private final Logger logger = Logger.getLogger(getClass()); @Autowired private DiscoveryClient client; @RequestMapping(value = "/hello", method = RequestMethod.GET) public String index() { ServiceInstance instance = client.getLocalServiceInstance(); logger.info("/hello, host:" + instance.getHost() + ", service_id:" + instance.getServiceId()); return "hello world"; } //模拟服务阻塞 @RequestMapping(value = "/hellosleep", method = RequestMethod.GET) public String hello() throws Exception { ServiceInstance instance = client.getLocalServiceInstance(); int sleepTime = new Random().nextInt(3000); logger.info("sleepTime:" + sleepTime); Thread.sleep(sleepTime); logger.info("/hello, host:" + instance.getHost() + ", service_id:" + instance.getServiceId()); return "hello world sleeptime"; } @RequestMapping(value = "/hello1", method = RequestMethod.GET) public String hello(@RequestParam String name) { return "Hello " + name; } @RequestMapping(value = "/hello2", method = RequestMethod.GET) public User hello(@RequestHeader String name, @RequestHeader Integer age) { return new User(name, age); } @RequestMapping(value = "/hello3", method = RequestMethod.POST) public String hello(@RequestBody User user) { return "Hello " + user.getName() + ", " + user.getAge(); } }
[ "fengyu900909@163.com" ]
fengyu900909@163.com
3648eb3cba943aa07059f43ecc984e8458270c88
c4eb55277440ccb677a6e3dc77e22f9ae0884ced
/src/main/java/jaxrs/validation/UserToValidate.java
957de7e29bea9f6a442f9dd8df2f2b56c7e47ef4
[]
no_license
ArekLopus/RestServer
a05a92f25e562171feed00e323ea9cca5a5bdb45
5712627888c9fa357c358ccce342c7f64f1e3a50
refs/heads/master
2021-08-19T08:44:38.455989
2017-11-25T15:38:16
2017-11-25T15:38:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
716
java
package jaxrs.validation; import javax.validation.constraints.NotEmpty; public class UserToValidate { @NotEmpty private String name; @NotEmpty private String surname; public UserToValidate() {} public UserToValidate(String name, String surname) { super(); this.name = name; this.surname = surname; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getSurname() { return surname; } public void setSurname(String surname) { this.surname = surname; } @Override public String toString() { return "UserToValidate [name=" + name + ", surname=" + surname + "]"; } }
[ "Ark@RuleZ.com" ]
Ark@RuleZ.com