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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c956064b9a02050a6424838c740228e31d7e02af
|
baeb199a3d1853eb787985719fd66b69779a7d47
|
/src/main/java/com/example/cars/controllers/CarController.java
|
bd5a2255df821e0afa7c9ca6768365fbd2e18bf1
|
[] |
no_license
|
Edufreitass/tdd-cars
|
aa048fa961067e6a7981729960e73939f5422fcf
|
ef52ba8a72561d466ccafa26af6ae046208468b2
|
refs/heads/main
| 2023-01-14T11:58:56.293680
| 2020-11-18T20:56:26
| 2020-11-18T20:56:26
| 314,038,700
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,784
|
java
|
package com.example.cars.controllers;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.example.cars.exceptions.ResourceNotFoundException;
import com.example.cars.models.Car;
import com.example.cars.repository.CarRepository;
import io.swagger.annotations.ApiOperation;
/**
* The type Car controller.
*
* @author Eduardo
*/
@RestController
@RequestMapping("/api/v1")
public class CarController {
@Autowired
private CarRepository carRepository;
/**
* Get all car list.
*
* @return the list
*/
@ApiOperation(value = "Fetches all cars in the database.", response = Car.class)
@GetMapping("/cars") // GET Method for Read operation
public List<Car> getAllCars() {
return carRepository.findAll();
}
/**
* Gets cars by id
*
* @param carId the car id
* @return the cars by id
* @throws ResourceNotFoundException the resource not found exception
*/
@ApiOperation(value = "Fetches a single car by its id.", response = Car.class)
@GetMapping("/cars/{id}") // GET Method for Read operation
public ResponseEntity<Car> getCarsById(@PathVariable(value = "id") Long carId) throws ResourceNotFoundException {
Car car = carRepository.findById(carId)
.orElseThrow(() -> new ResourceNotFoundException("Car not found on :: " + carId));
return ResponseEntity.ok().body(car);
}
/**
* Create a car.
*
* @param car the car
* @return the car
*/
@ApiOperation(value = "Handles the creation of a car.", response = Car.class)
@PostMapping("/cars") // POST Method for Create operation
public Car createCar(@Valid @RequestBody Car car) {
return carRepository.save(car);
}
/**
* Update car response entity.
*
* @param carId the car id
* @param carDetails the car details
* @return the response entity
* @throws ResourceNotFoundException the resource not found exception
*/
@ApiOperation(value = "Handles the editing of a single car's details.", response = Car.class)
@PutMapping("/cars/{id}") // PUT Method for Update operation
public ResponseEntity<Car> updateCar(@PathVariable(value = "id") Long carId, @Valid @RequestBody Car carDetails)
throws ResourceNotFoundException {
Car car = carRepository.findById(carId)
.orElseThrow(() -> new ResourceNotFoundException("Car " + carId + " not found"));
car.setCarName(carDetails.getCarName());
car.setDoors(carDetails.getDoors());
final Car updatedCar = carRepository.save(car);
return ResponseEntity.ok(updatedCar);
}
/**
* Delete car map.
*
* @param carId the car id
* @return the map of the deleted car
* @throws Exception the exception
*/
@ApiOperation(value = "Handles the deletion of a single car by its id.", response = Car.class)
@DeleteMapping("/car/{id}") // DELETE Method for Delete operation
public Map<String, Boolean> deleteCar(@PathVariable(value = "id") Long carId) throws Exception {
Car car = carRepository.findById(carId)
.orElseThrow(() -> new ResourceNotFoundException("Car " + carId + " not found"));
carRepository.delete(car);
Map<String, Boolean> response = new HashMap<>();
response.put("deleted", Boolean.TRUE);
return response;
}
}
|
[
"eduardoflorencio96@gmail.com"
] |
eduardoflorencio96@gmail.com
|
d65010f9a643cba9f820a53c595556df3a31834b
|
a34d3ed0e4dbda04c5c117c3be64378f4f414a2c
|
/src/main/java/com/up72/hq/dto/resp/ProdParamResp.java
|
f82cb8046ffd574abae1cdf3f234e7290352af4d
|
[] |
no_license
|
lgcwn/hq100
|
30e117fdd2cce4307d623bdd2cd9ef5a555464e3
|
77b20342a8e63cd8f316b4f70cb451db2c950f0f
|
refs/heads/master
| 2020-12-30T13:08:08.325769
| 2017-08-26T07:35:16
| 2017-08-26T07:35:16
| 91,324,893
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 523
|
java
|
/*
* Powered By [up72-framework]
* Web Site: http://www.up72.com
* Since 2006 - 2015
*/
package com.up72.hq.dto.resp;
import com.up72.hq.model.ProdParam;
import com.up72.hq.model.ProdParam;
/**
* 产品参数中间表输出
*
* @author up72
* @version 1.0
* @since 1.0
*/
public class ProdParamResp extends ProdParam {
private String paramName;
public String getParamName() {
return paramName;
}
public void setParamName(String paramName) {
this.paramName = paramName;
}
}
|
[
"435164706@qq.com"
] |
435164706@qq.com
|
18ad0900a14a5c17a6c2999ea175e7b918edf48c
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_303/Testnull_30222.java
|
65b28cb09e2ebadc47b64db92b98afbaf87fab45
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 308
|
java
|
package org.gradle.test.performancenull_303;
import static org.junit.Assert.*;
public class Testnull_30222 {
private final Productionnull_30222 production = new Productionnull_30222("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
d74ff26486c9c78676c6558c70bd46d7b9e6b067
|
9c08639f5357f10df16a17d576684f83120fe9b5
|
/src/main/java/org/seasar/doma/internal/apt/meta/NClobCreateQueryMetaFactory.java
|
456ad09dc811ed19dd7fc3790343b6d5bc455e41
|
[
"Apache-2.0"
] |
permissive
|
msysyamamoto/doma
|
4936a70fa14b20816911e4e46a3911825fea4feb
|
95cedddae26bac8f71366431f2fc29390518625e
|
refs/heads/master
| 2021-01-22T19:22:57.182770
| 2016-04-16T06:55:37
| 2016-04-16T06:55:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,937
|
java
|
/*
* Copyright 2004-2010 the Seasar Foundation and the Others.
*
* 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.seasar.doma.internal.apt.meta;
import static org.seasar.doma.internal.util.AssertionUtil.*;
import java.sql.NClob;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.ExecutableElement;
import org.seasar.doma.internal.apt.mirror.NClobFactoryMirror;
/**
* @author taedium
*
*/
public class NClobCreateQueryMetaFactory extends
AbstractCreateQueryMetaFactory<NClobCreateQueryMeta> {
public NClobCreateQueryMetaFactory(ProcessingEnvironment env) {
super(env, NClob.class);
}
@Override
public QueryMeta createQueryMeta(ExecutableElement method, DaoMeta daoMeta) {
assertNotNull(method, daoMeta);
NClobFactoryMirror nClobFactoryMirror = NClobFactoryMirror.newInstance(
method, env);
if (nClobFactoryMirror == null) {
return null;
}
NClobCreateQueryMeta queryMeta = new NClobCreateQueryMeta(method);
queryMeta.setNClobFactoryMirror(nClobFactoryMirror);
queryMeta.setQueryKind(QueryKind.NCLOB_FACTORY);
doTypeParameters(queryMeta, method, daoMeta);
doReturnType(queryMeta, method, daoMeta);
doParameters(queryMeta, method, daoMeta);
doThrowTypes(queryMeta, method, daoMeta);
return queryMeta;
}
}
|
[
"toshihiro.nakamura@gmail.com"
] |
toshihiro.nakamura@gmail.com
|
2ba4188f749724eff189b87913438d9c44fa239d
|
46123905f26ccee9f79d2c9bdb68a181e2cfe37f
|
/src/main/java/com/study/spring/demo/Service.java
|
5af285c628cb3a8151ba203469895baa7771a994
|
[
"Apache-2.0"
] |
permissive
|
vilderlee/code
|
d5f1dbeb275d74e18acca4e3e6aba9b779f5bace
|
90b0c4471943fd0fbde6b8e43d1940cc070a9d88
|
refs/heads/master
| 2022-06-24T00:22:00.502572
| 2021-09-28T07:22:24
| 2021-09-28T07:22:24
| 164,537,647
| 0
| 0
|
Apache-2.0
| 2022-06-22T18:41:41
| 2019-01-08T02:17:36
|
Java
|
UTF-8
|
Java
| false
| false
| 315
|
java
|
package com.study.spring.demo;
/**
* 类说明:
*
* <pre>
* Modify Information:
* Author Date Description
* ============ ============= ============================
* VilderLee 2019/3/26 Create this file
* </pre>
*/
public interface Service {
void execute() throws Exception;
}
|
[
"1010434086@qq.com"
] |
1010434086@qq.com
|
8aaa8b2a95004c226e1631187308588921e2b9cc
|
2b8c47031dddd10fede8bcf16f8db2b52521cb4f
|
/subject SPLs and test cases/BerkeleyDB(5)/BerkeleyDB_P5/evosuite-tests2/com/sleepycat/je/LockNotGrantedException_ESTest_scaffolding2.java
|
e9fbb146428bba959c947b7fa829868f99a8aa43
|
[] |
no_license
|
psjung/SRTST_experiments
|
6f1ff67121ef43c00c01c9f48ce34f31724676b6
|
40961cb4b4a1e968d1e0857262df36832efb4910
|
refs/heads/master
| 2021-06-20T04:45:54.440905
| 2019-09-06T04:05:38
| 2019-09-06T04:05:38
| 206,693,757
| 1
| 0
| null | 2020-10-13T15:50:41
| 2019-09-06T02:10:06
|
Java
|
UTF-8
|
Java
| false
| false
| 1,458
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri Apr 21 22:35:36 KST 2017
*/
package com.sleepycat.je;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class LockNotGrantedException_ESTest_scaffolding2 {
@org.junit.Rule
public org.junit.rules.Timeout globalTimeout = new org.junit.rules.Timeout(4000);
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "com.sleepycat.je.LockNotGrantedException";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
}
|
[
"psjung@kaist.ac.kr"
] |
psjung@kaist.ac.kr
|
b6c2ccba1b0ddf871e8307a60a2a303ed985765c
|
1d34bd77cdf5dc4643bc6bc25aff4870b80639e8
|
/예전 모음/지뢰 찾기/MineSweeper_12/src/io/thethelab/UIBar.java
|
5f740348d764d422af4d20da3225f00c70a24864
|
[] |
no_license
|
hapsoa/java_thethelab_workspace
|
d59d09dedd1217bcd73a010072ebc070ed662459
|
df61ee3eafd6e9736d31b058ab7954b23ba89bf8
|
refs/heads/master
| 2020-03-30T07:17:30.724245
| 2018-09-30T04:43:22
| 2018-09-30T04:43:22
| 150,929,359
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,183
|
java
|
package io.thethelab;
class UIBar extends View {
private int smile_x = Constants.BLOCK_COUNT_X * Constants.BLOCK_SIZE / 2 - 15;
private int smile_y = Constants.UI_HEIGHT / 2 - 15;
UIBar(Window pApplet) {
super(pApplet);
}
@Override
void update() {
//평소에
if (!pApplet.mineMap.isFailed) {
//^_^
Constants.SMILE = ResourceManager.loadImage(ResourceManager.SMILE_HAPPY);
if(pApplet.mineMap.isSuccess) { // 성공했을 때, 선글라스
Constants.SMILE =
ResourceManager.loadImage(ResourceManager.SMILE_SUNGLASS);
}
} else { // 죽으면 X_X
Constants.SMILE = ResourceManager.loadImage(ResourceManager.SMILE_DEAD);
}
}
@Override
void render() {
pApplet.image(Constants.SMILE, smile_x, smile_y);
}
@Override
void standBy() {
if (!pApplet.mineMap.isFailed) {
if ((pApplet.key == 'd' || pApplet.key == 'r')) {
// O_O
Constants.SMILE = ResourceManager.loadImage(ResourceManager.SMILE_WONDER);
}
}
}
}
|
[
"hapsoa@gmail.com"
] |
hapsoa@gmail.com
|
bf8661ebdc518aa5e46e3d915bc88126723173be
|
377e5e05fb9c6c8ed90ad9980565c00605f2542b
|
/bin/ext-integration/sap/asynchronousOM/saporderexchange/src/de/hybris/platform/sap/orderexchange/outbound/impl/DefaultPaymentContributor.java
|
c8f7036527352f94148e81227ded053331c915ec
|
[] |
no_license
|
automaticinfotech/HybrisProject
|
c22b13db7863e1e80ccc29774f43e5c32e41e519
|
fc12e2890c569e45b97974d2f20a8cbe92b6d97f
|
refs/heads/master
| 2021-07-20T18:41:04.727081
| 2017-10-30T13:24:11
| 2017-10-30T13:24:11
| 108,957,448
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,811
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE or an SAP affiliate company.
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package de.hybris.platform.sap.orderexchange.outbound.impl;
import de.hybris.platform.core.model.order.OrderModel;
import de.hybris.platform.core.model.order.payment.CreditCardPaymentInfoModel;
import de.hybris.platform.core.model.order.payment.PaymentInfoModel;
import de.hybris.platform.payment.model.PaymentTransactionModel;
import de.hybris.platform.sap.orderexchange.constants.OrderCsvColumns;
import de.hybris.platform.sap.orderexchange.constants.PaymentCsvColumns;
import de.hybris.platform.sap.orderexchange.outbound.RawItemContributor;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Builds the Row map for the CSV files for the Payment in an Order
*/
public class DefaultPaymentContributor implements RawItemContributor<OrderModel>
{
@Override
public Set<String> getColumns()
{
return new HashSet<>(Arrays.asList(OrderCsvColumns.ORDER_ID, PaymentCsvColumns.CC_OWNER, PaymentCsvColumns.VALID_TO_MONTH,
PaymentCsvColumns.VALID_TO_YEAR, PaymentCsvColumns.SUBSCRIPTION_ID, PaymentCsvColumns.PAYMENT_PROVIDER,
PaymentCsvColumns.REQUEST_ID));
}
@Override
public List<Map<String, Object>> createRows(final OrderModel order)
{
final List<Map<String, Object>> result = new ArrayList<>();
for (final PaymentTransactionModel payment : order.getPaymentTransactions())
{
final PaymentInfoModel paymentInfo = order.getPaymentInfo();
final Map<String, Object> row = new HashMap<>();
row.put(OrderCsvColumns.ORDER_ID, order.getCode());
row.put(PaymentCsvColumns.PAYMENT_PROVIDER, payment.getPaymentProvider());
if (payment.getRequestId() == null || payment.getRequestId().isEmpty())
{
row.put(PaymentCsvColumns.REQUEST_ID, "1");
}
else
{
row.put(PaymentCsvColumns.REQUEST_ID, payment.getRequestId());
}
if (paymentInfo instanceof CreditCardPaymentInfoModel)
{
final CreditCardPaymentInfoModel ccPaymentInfo = (CreditCardPaymentInfoModel) paymentInfo;
row.put(PaymentCsvColumns.CC_OWNER, ccPaymentInfo.getCcOwner());
row.put(PaymentCsvColumns.VALID_TO_MONTH, ccPaymentInfo.getValidToMonth());
row.put(PaymentCsvColumns.VALID_TO_YEAR, ccPaymentInfo.getValidToYear());
row.put(PaymentCsvColumns.SUBSCRIPTION_ID, ccPaymentInfo.getSubscriptionId());
}
result.add(row);
}
return result;
}
}
|
[
"santosh.kshirsagar@automaticinfotech.com"
] |
santosh.kshirsagar@automaticinfotech.com
|
22b1d77d384e1de79b5b753ad59391ebebf66e90
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XRENDERING-422-15-15-PESA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/rendering/wikimodel/xhtml/impl/XhtmlHandler_ESTest_scaffolding.java
|
21d94db9fb75a9467534f92198f715597e987e71
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 457
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri Apr 03 17:53:38 UTC 2020
*/
package org.xwiki.rendering.wikimodel.xhtml.impl;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class XhtmlHandler_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
081bb35e72124e2fad98df77cd0ee29631beb26f
|
9bf14b4d2eac89c403109c15a5d48127a81ef8a9
|
/src/minecraft/me/lc/vodka/font/UnicodeFontRenderer.java
|
599ec250ca23ddcb93ef424a363e595f7b7250ec
|
[
"MIT"
] |
permissive
|
mchimsak/VodkaSrc
|
e6d7e968b645566b3eeb1c0995c8d65afc983d1e
|
8f0cf23bac81c6bdf784228616f54afa84d03757
|
refs/heads/master
| 2020-05-01T08:48:11.781283
| 2018-11-20T05:46:18
| 2018-11-20T05:46:18
| 177,386,099
| 1
| 0
|
MIT
| 2019-03-24T07:59:07
| 2019-03-24T07:59:06
| null |
UTF-8
|
Java
| false
| false
| 4,373
|
java
|
/*
* Decompiled with CFR 0_132 Helper by Lightcolour E-mail wyy-666@hotmail.com.
*
* Could not load the following classes:
* org.lwjgl.opengl.GL11
*/
package me.lc.vodka.font;
import java.awt.Color;
import java.awt.Font;
import java.util.List;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.client.settings.GameSettings;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StringUtils;
import org.lwjgl.opengl.GL11;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.UnicodeFont;
import org.newdawn.slick.font.effects.ColorEffect;
public class UnicodeFontRenderer
extends FontRenderer {
private final UnicodeFont font;
public UnicodeFontRenderer(Font awtFont) {
super(Minecraft.getMinecraft().gameSettings, new ResourceLocation("textures/font/ascii.png"), Minecraft.getMinecraft().getTextureManager(), false);
this.font = new UnicodeFont(awtFont);
this.font.addAsciiGlyphs();
this.font.getEffects().add(new ColorEffect(Color.WHITE));
try {
this.font.loadGlyphs();
}
catch (SlickException exception) {
throw new RuntimeException(exception);
}
String alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789";
this.FONT_HEIGHT = this.font.getHeight(alphabet) / 2;
}
@Override
public int drawString(String string, int x, int y, int color) {
if (string == null) {
return 0;
}
GL11.glPushMatrix();
GL11.glScaled((double)0.5, (double)0.5, (double)0.5);
boolean blend = GL11.glIsEnabled((int)3042);
boolean lighting = GL11.glIsEnabled((int)2896);
boolean texture = GL11.glIsEnabled((int)3553);
if (!blend) {
GL11.glEnable((int)3042);
}
if (lighting) {
GL11.glDisable((int)2896);
}
if (texture) {
GL11.glDisable((int)3553);
}
this.font.drawString(x *= 2, y *= 2, string, new org.newdawn.slick.Color(color));
if (texture) {
GL11.glEnable((int)3553);
}
if (lighting) {
GL11.glEnable((int)2896);
}
if (!blend) {
GL11.glDisable((int)3042);
}
GL11.glPopMatrix();
return x;
}
@Override
public int getCharWidth(char c) {
return this.getStringWidth(Character.toString(c));
}
@Override
public int getStringWidth(String string) {
return this.font.getWidth(string) / 2;
}
public int getStringHeight(String string) {
return this.font.getHeight(string) / 2;
}
public int drawCenteredString(String text, int x, int y, int color) {
return this.drawString(text, x - this.getStringWidth(text) / 2 + 2, y, color);
}
public int getRealStringWidth(String string) {
return this.font.getWidth(StringUtils.stripControlCodes(string)) / 2;
}
public void drawCenteredString(String text, float x, float y, int color) {
this.drawString(text, x - (float)(this.getStringWidth(text) / 2), y, color);
}
public int drawString(final String string, float x, float y, final int color) {
if (string == null) {
return (int) 0.0f;
}
GL11.glPushMatrix();
GL11.glScaled((double)0.5, (double)0.5, (double)0.5);
final boolean blend = GL11.glIsEnabled(3042);
final boolean lighting = GL11.glIsEnabled(2896);
final boolean texture = GL11.glIsEnabled(3553);
if (!blend) {
GL11.glEnable(3042);
}
if (lighting) {
GL11.glDisable(2896);
}
if (texture) {
GL11.glDisable(3553);
}
x *= 2.0f;
y *= 2.0f;
this.font.drawString(x, y, string, new org.newdawn.slick.Color(color));
if (texture) {
GL11.glEnable(3553);
}
if (lighting) {
GL11.glEnable(2896);
}
if (!blend) {
GL11.glDisable(3042);
}
GlStateManager.color(0.0f, 0.0f, 0.0f);
GL11.glPopMatrix();
GlStateManager.bindTexture(0);
return (int)x;
}
}
|
[
"wyy-666"
] |
wyy-666
|
77f83d662f17e088b518ba9b4ccafd3ddd471e70
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/api-vs-impl-small/core/src/main/java/org/gradle/testcore/performancenull_24/Productionnull_2342.java
|
6172c6702b8369cdd0fe7f3ce8634ed1f7553ecd
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 589
|
java
|
package org.gradle.testcore.performancenull_24;
public class Productionnull_2342 {
private final String property;
public Productionnull_2342(String param) {
this.property = param;
}
public String getProperty() {
return property;
}
private String prop0;
public String getProp0() {
return prop0;
}
public void setProp0(String value) {
prop0 = value;
}
private String prop1;
public String getProp1() {
return prop1;
}
public void setProp1(String value) {
prop1 = value;
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
47ec6928d958f386649a5255b530d824adeb1466
|
a335ee604ad472d56101055311733c1a876f6c86
|
/pyweather/src/main/java/com/neuroandroid/pyweather/loader/WrappedAsyncTaskLoader.java
|
99158a6281e00122df195a0e614a3cfdb9faf569
|
[] |
no_license
|
pangyu646182805/PYWeather
|
6c4bc04cd1b5c7998f9032e73ade2025cacb7ea0
|
99f0514fc5ee6cec205a2db5dec517ca1cc16d5a
|
refs/heads/master
| 2021-01-23T10:08:36.398377
| 2017-07-27T16:19:49
| 2017-07-27T16:19:49
| 93,040,896
| 32
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,581
|
java
|
package com.neuroandroid.pyweather.loader;
import android.content.Context;
import android.support.v4.content.AsyncTaskLoader;
/**
* <a href="http://code.google.com/p/android/issues/detail?id=14944">Issue
* 14944</a>
*
* @author Alexander Blom
*/
public abstract class WrappedAsyncTaskLoader<D> extends AsyncTaskLoader<D> {
private D mData;
/**
* Constructor of <code>WrappedAsyncTaskLoader</code>
*
* @param context The {@link Context} to use.
*/
public WrappedAsyncTaskLoader(Context context) {
super(context);
}
/**
* {@inheritDoc}
*/
@Override
public void deliverResult(D data) {
if (!isReset()) {
this.mData = data;
super.deliverResult(data);
} else {
// An asynchronous query came in while the loader is stopped
}
}
/**
* {@inheritDoc}
*/
@Override
protected void onStartLoading() {
super.onStartLoading();
if (this.mData != null) {
deliverResult(this.mData);
} else if (takeContentChanged() || this.mData == null) {
forceLoad();
}
}
/**
* {@inheritDoc}
*/
@Override
protected void onStopLoading() {
super.onStopLoading();
// Attempt to cancel the current load task if possible
cancelLoad();
}
/**
* {@inheritDoc}
*/
@Override
protected void onReset() {
super.onReset();
// Ensure the loader is stopped
onStopLoading();
this.mData = null;
}
}
|
[
"pangyu@corp.neurotech.cn"
] |
pangyu@corp.neurotech.cn
|
2817419c032b02bd2cfbbb11d6b2cf1d1e5d5216
|
dfd7e70936b123ee98e8a2d34ef41e4260ec3ade
|
/analysis/reverse-engineering/decompile-fitts-with-gradle-20191031-2200/src/main/java/kr/co/popone/fitts/viewmodel/wish/WishListModule_ProvidesViewModelFactoryFactory.java
|
01b5a4540053b5bf341e63ba99e2390bbf6cb6f4
|
[
"Apache-2.0"
] |
permissive
|
skkuse-adv/2019Fall_team2
|
2d4f75bc793368faac4ca8a2916b081ad49b7283
|
3ea84c6be39855f54634a7f9b1093e80893886eb
|
refs/heads/master
| 2020-08-07T03:41:11.447376
| 2019-12-21T04:06:34
| 2019-12-21T04:06:34
| 213,271,174
| 5
| 5
|
Apache-2.0
| 2019-12-12T09:15:32
| 2019-10-07T01:18:59
|
Java
|
UTF-8
|
Java
| false
| false
| 2,084
|
java
|
package kr.co.popone.fitts.viewmodel.wish;
import dagger.internal.Factory;
import dagger.internal.Preconditions;
import javax.inject.Provider;
import kr.co.popone.fitts.eventtracker.EventTracker;
import kr.co.popone.fitts.model.repository.commerce.FittsCommerceRepository;
public final class WishListModule_ProvidesViewModelFactoryFactory implements Factory<WishListViewModelFactory> {
private final Provider<FittsCommerceRepository> commerceRepositoryProvider;
private final Provider<EventTracker> eventTrackerProvider;
private final WishListModule module;
public WishListModule_ProvidesViewModelFactoryFactory(WishListModule wishListModule, Provider<FittsCommerceRepository> provider, Provider<EventTracker> provider2) {
this.module = wishListModule;
this.commerceRepositoryProvider = provider;
this.eventTrackerProvider = provider2;
}
public WishListViewModelFactory get() {
return provideInstance(this.module, this.commerceRepositoryProvider, this.eventTrackerProvider);
}
public static WishListViewModelFactory provideInstance(WishListModule wishListModule, Provider<FittsCommerceRepository> provider, Provider<EventTracker> provider2) {
return proxyProvidesViewModelFactory(wishListModule, (FittsCommerceRepository) provider.get(), (EventTracker) provider2.get());
}
public static WishListModule_ProvidesViewModelFactoryFactory create(WishListModule wishListModule, Provider<FittsCommerceRepository> provider, Provider<EventTracker> provider2) {
return new WishListModule_ProvidesViewModelFactoryFactory(wishListModule, provider, provider2);
}
public static WishListViewModelFactory proxyProvidesViewModelFactory(WishListModule wishListModule, FittsCommerceRepository fittsCommerceRepository, EventTracker eventTracker) {
return (WishListViewModelFactory) Preconditions.checkNotNull(wishListModule.providesViewModelFactory(fittsCommerceRepository, eventTracker), "Cannot return null from a non-@Nullable @Provides method");
}
}
|
[
"33246398+ajid951125@users.noreply.github.com"
] |
33246398+ajid951125@users.noreply.github.com
|
c388d917cc983de86b9f157fbd4734b81f38cd5f
|
945d0e45a22fd280955ee9f9dc7a63d3aa7b5e53
|
/loan-p2p-service/src/main/java/com/hwc/framework/modules/service/BorrowerUserinfoService.java
|
e6dc1bbf29f6b74645ba9b8f3eefc0f909fcabba
|
[] |
no_license
|
liangchch/loan
|
cb1bd4f767cc89bf78d88dbed6a7ae73b08c1c2b
|
f535eba487715dc13986d87a655af9000c0ce6ea
|
refs/heads/master
| 2022-04-23T11:27:59.348843
| 2020-04-26T06:26:20
| 2020-04-26T06:26:20
| 258,930,371
| 0
| 0
| null | 2020-04-26T05:45:59
| 2020-04-26T03:29:09
| null |
UTF-8
|
Java
| false
| false
| 601
|
java
|
package com.hwc.framework.modules.service;
import com.hwc.framework.modules.domain.BorrowerUserinfo;
import com.hwc.framework.modules.domain.Response;
import com.hwc.framework.modules.model.ClBankCard;
import com.hwc.framework.modules.model.ClQuartzInfo;
import com.hwc.mybatis.core.Service;
import java.io.IOException;
import java.util.List;
public interface BorrowerUserinfoService extends Service<ClBankCard> {
List<BorrowerUserinfo> findBorrowerUserinfos();
ClQuartzInfo synBorrowerUserinfo();
boolean queryBorrowerUserinfo(String orderId) throws Exception;
}
|
[
"jizhongliang@jizhongliangdeiMac.local"
] |
jizhongliang@jizhongliangdeiMac.local
|
771fd62d76cef01aa6022813ddc206818bdcda40
|
4c561cb446ad1abac394e27fdfc84c690f8e6f4c
|
/edu/cmu/cs/stage3/alice/core/geometry/PolygonSegment.java
|
2ac2b71f81c6b892cf9388f7e2d528df65bdcdc3
|
[] |
no_license
|
gomson/alice_source_re
|
c46b2192cff35ad2c019e93814dbfffa3ea22b2c
|
72ff8250deec06e09c79bb42e23a067469e3bccb
|
refs/heads/master
| 2020-03-21T11:29:54.523869
| 2017-05-12T03:53:51
| 2017-05-12T03:53:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,922
|
java
|
package edu.cmu.cs.stage3.alice.core.geometry;
import edu.cmu.cs.stage3.alice.core.util.Polynomial;
import edu.cmu.cs.stage3.alice.scenegraph.Vertex3d;
import edu.cmu.cs.stage3.math.MathUtilities;
import java.awt.Shape;
import java.awt.geom.GeneralPath;
import java.awt.geom.PathIterator;
import java.util.Collections;
import java.util.ListIterator;
import java.util.Vector;
import javax.vecmath.Point2d;
import javax.vecmath.Point3d;
import javax.vecmath.TexCoord2f;
import javax.vecmath.Vector3d;
import javax.vecmath.Vector3f;
public class PolygonSegment
{
private Vector points;
private Vector normals;
private Vertex3d[] sideVertices = null;
private int[] indices = null;
public PolygonSegment() {
points = new Vector();
normals = new Vector();
}
protected Shape getShape() {
if (points.isEmpty()) return null;
GeneralPath gp = new GeneralPath();
gp.moveTo((float)points.firstElement()).x, (float)points.firstElement()).y);
ListIterator li = points.listIterator(1);
while (li.hasNext()) {
Point2d cur = (Point2d)li.next();
gp.lineTo((float)x, (float)y);
}
gp.closePath();
return gp;
}
public boolean contains(double x, double y) {
return getShape().contains(x, y);
}
protected void addPoint(Point2d point) {
points.add(point);
normals.setSize(normals.size() + 2);
if (points.size() > 1) {
double dx = points.lastElement()).x - points.elementAt(points.size() - 2)).x;
double dy = points.lastElement()).y - points.elementAt(points.size() - 2)).y;
double len = Math.sqrt(dx * dx + dy * dy);
Vector3d a = new Vector3d(dx / len, 0.0D, dy / len);
Vector3d b = new Vector3d(0.0D, 1.0D, 0.0D);
Vector3d c = MathUtilities.crossProduct(a, b);
normals.setElementAt(new Vector3f(-(float)x, -(float)z, 0.0F), (points.size() - 2) * 2);
normals.setElementAt(new Vector3f(-(float)x, -(float)z, 0.0F), (points.size() - 1) * 2 + 1);
}
}
protected void addQuadraticSpline(Point2d cp1, Point2d cp2, Point2d offset, int numSegs) {
if (points.isEmpty()) { return;
}
normals.setSize(normals.size() + 2 * numSegs);
Point2d cp0 = new Point2d(-points.lastElement()).x + x, -points.lastElement()).y + y);
Point3d[] newPositions = new Point3d[numSegs + 1];
Vector3d[] newNormals = new Vector3d[numSegs + 1];
Polynomial.evaluateBezierQuadratic(cp0, cp1, cp2, 0.0D, newPositions, newNormals);
normals.setElementAt(new Vector3f(newNormals[0]), (points.size() - 1) * 2);
for (int i = 1; i <= numSegs; i++) {
points.add(new Point2d(x - x, y - y));
normals.setElementAt(new Vector3f(newNormals[i]), (points.size() - 1) * 2);
normals.setElementAt(new Vector3f(newNormals[i]), (points.size() - 1) * 2 + 1);
}
}
protected void close() {
if (points.isEmpty()) { return;
}
if ((points.size() > 1) && (((Point2d)points.lastElement()).equals((Point2d)points.firstElement()))) {
points.setSize(points.size() - 1);
normals.setSize(normals.size() - 2);
}
if (points.size() >= 3)
{
double dx = points.firstElement()).x - points.lastElement()).x;
double dy = points.firstElement()).y - points.lastElement()).y;
double len = Math.sqrt(dx * dx + dy * dy);
Vector3d a = new Vector3d(dx / len, 0.0D, dy / len);
Vector3d b = new Vector3d(0.0D, 1.0D, 0.0D);
Vector3d c = MathUtilities.crossProduct(a, b);
normals.setElementAt(new Vector3f(-(float)x, -(float)z, 0.0F), 1);
normals.setElementAt(new Vector3f(-(float)x, -(float)z, 0.0F), (points.size() - 1) * 2);
} else {
points.clear();
normals.clear();
}
}
public boolean parsePathIterator(PathIterator pi, Point2d offset, int curvature) {
double[] coords = new double[6];
int type = -1;
while (!pi.isDone()) {
type = pi.currentSegment(coords);
switch (type) {
case 0:
if (!points.isEmpty()) {
close();
return false;
}
addPoint(new Point2d(x - coords[0], y - coords[1]));
break;
case 1:
addPoint(new Point2d(x - coords[0], y - coords[1]));
break;
case 2:
addQuadraticSpline(new Point2d(coords[0], coords[1]), new Point2d(coords[2], coords[3]), offset, curvature);
break;
case 3:
addPoint(new Point2d(x - coords[0], y - coords[1]));
addPoint(new Point2d(x - coords[2], y - coords[3]));
addPoint(new Point2d(x - coords[4], y - coords[5]));
break;
case 4:
close();
return true;
}
pi.next();
}
close();
return true;
}
public boolean isNull() {
return points.isEmpty();
}
public Vector points() {
return points;
}
public void reverse() {
Collections.reverse(points);
Collections.reverse(normals);
}
public void genSideStrips(double extz) {
sideVertices = null;indices = null;
if (points.isEmpty()) { return;
}
sideVertices = new Vertex3d[points.size() * 4];
indices = new int[points.size() * 6];
ListIterator li = points.listIterator();
for (int i = 0; li.hasNext(); i++) {
Point2d point = (Point2d)li.next();
Point3d pos = new Point3d(x, y, -extz / 2.0D);
sideVertices[(i * 2)] = new Vertex3d(pos, new Vector3d((Vector3f)normals.elementAt(i * 2)), null, null, new TexCoord2f());
sideVertices[(i * 2 + 1)] = new Vertex3d(pos, new Vector3d((Vector3f)normals.elementAt(i * 2 + 1)), null, null, new TexCoord2f());
pos = new Point3d(x, y, extz / 2.0D);
sideVertices[(points.size() * 2 + i * 2)] = new Vertex3d(pos, new Vector3d((Vector3f)normals.elementAt(i * 2)), null, null, new TexCoord2f());
sideVertices[(points.size() * 2 + i * 2 + 1)] = new Vertex3d(pos, new Vector3d((Vector3f)normals.elementAt(i * 2 + 1)), null, null, new TexCoord2f());
}
for (int i = 0; i < points.size() - 1; i++)
{
indices[(i * 6)] = (2 * i);
indices[(i * 6 + 1)] = (2 * i + 3);
indices[(i * 6 + 2)] = (2 * i + 3 + points.size() * 2);
indices[(i * 6 + 3)] = (2 * i);
indices[(i * 6 + 4)] = (2 * i + 3 + points.size() * 2);
indices[(i * 6 + 5)] = (2 * i + points.size() * 2);
}
indices[((points.size() - 1) * 6)] = (2 * (points.size() - 1));
indices[((points.size() - 1) * 6 + 1)] = 1;
indices[((points.size() - 1) * 6 + 2)] = (1 + points.size() * 2);
indices[((points.size() - 1) * 6 + 3)] = (2 * (points.size() - 1));
indices[((points.size() - 1) * 6 + 4)] = (1 + points.size() * 2);
indices[((points.size() - 1) * 6 + 5)] = (2 * (points.size() - 1) + points.size() * 2);
}
public Vertex3d[] getSideVertices()
{
return sideVertices;
}
public int[] getIndices() {
return indices;
}
}
|
[
"nghiadtse05330@fpt.edu.vn"
] |
nghiadtse05330@fpt.edu.vn
|
e3870cbe96e2ea87a1fab88d84fc9b85f2d81c6d
|
6888a877b5e49791af7046fd295b9e597d22492a
|
/subprojects/gradle-core/src/main/groovy/org/gradle/logging/PrintStreamLoggingSystem.java
|
4d59fb5117da98465880db37c81c9e2479c16c58
|
[] |
no_license
|
peas/gradle
|
c98d655efbb86c636c0a31bf09047325f39bba63
|
42c18c115912d891da9843ee9a785dfdd2e363f6
|
refs/heads/master
| 2021-01-17T23:02:04.476863
| 2010-08-04T08:40:09
| 2010-08-04T08:40:09
| 825,368
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,879
|
java
|
/*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.gradle.logging;
import org.gradle.api.Action;
import org.gradle.api.logging.LogLevel;
import org.gradle.api.logging.Logger;
import org.gradle.api.logging.StandardOutputListener;
import org.gradle.util.LinePerThreadBufferingOutputStream;
import java.io.PrintStream;
import java.util.concurrent.atomic.AtomicReference;
/**
* A {@link org.gradle.logging.LoggingSystem} which routes content written to a PrintStream to the logging system.
*/
abstract class PrintStreamLoggingSystem implements LoggingSystem {
private final AtomicReference<StandardOutputListener> destination
= new AtomicReference<StandardOutputListener>();
private final PrintStream outstr = new LinePerThreadBufferingOutputStream(new Action<String>() {
public void execute(String output) {
destination.get().onOutput(output);
}
});
private final Logger logger;
private StandardOutputListener original;
protected PrintStreamLoggingSystem(Logger logger) {
this.logger = logger;
}
/**
* Returns the current value of the PrintStream
*/
protected abstract PrintStream get();
/**
* Sets the current value of the PrintStream
*/
protected abstract void set(PrintStream printStream);
public Snapshot snapshot() {
return new SnapshotImpl(destination.get());
}
public void restore(Snapshot state) {
SnapshotImpl snapshot = (SnapshotImpl) state;
install();
if (snapshot.listener == null) {
destination.set(original);
} else {
destination.set(snapshot.listener);
}
}
public Snapshot on(final LogLevel level) {
Snapshot snapshot = snapshot();
install();
destination.set(new LoggerDestination(level));
return snapshot;
}
public Snapshot off() {
Snapshot snapshot = snapshot();
if (original != null) {
outstr.flush();
destination.set(original);
}
return snapshot;
}
private void install() {
if (original == null) {
PrintStream originalStream = get();
original = new PrintStreamDestination(originalStream);
}
outstr.flush();
if (get() != outstr) {
set(outstr);
}
}
private static class PrintStreamDestination implements StandardOutputListener {
private final PrintStream originalStream;
public PrintStreamDestination(PrintStream originalStream) {
this.originalStream = originalStream;
}
public void onOutput(CharSequence output) {
originalStream.println(output);
}
}
private class LoggerDestination implements StandardOutputListener {
private final LogLevel level;
public LoggerDestination(LogLevel level) {
this.level = level;
}
public void onOutput(CharSequence output) {
logger.log(level, output.toString());
}
}
private static class SnapshotImpl implements Snapshot {
private final StandardOutputListener listener;
public SnapshotImpl(StandardOutputListener listener) {
this.listener = listener;
}
}
}
|
[
"a@rubygrapefruit.net"
] |
a@rubygrapefruit.net
|
1f9c7f89e8fe6d998c4143ebf22396aec2ed6c9b
|
35dacfe3816238bf971586a7914839fa7dafc84c
|
/src/main/java/com/jh/gateway/app/config/DatabaseConfiguration.java
|
f2714a93eb1c5bb752904bd6e1496c6a372e1e31
|
[] |
no_license
|
jh7rnn/gateway-app
|
9d37457b41ca146a99113658af2c5ac04c73dad4
|
e1a63b0b7f45c7e8eab1f193abcc62ee6ce51d17
|
refs/heads/master
| 2020-04-23T17:14:25.517893
| 2019-02-18T17:07:17
| 2019-02-18T17:07:17
| 171,323,665
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,014
|
java
|
package com.jh.gateway.app.config;
import io.github.jhipster.config.JHipsterConstants;
import io.github.jhipster.config.h2.H2ConfigurationHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.core.env.Environment;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import java.sql.SQLException;
@Configuration
@EnableJpaRepositories("com.jh.gateway.app.repository")
@EnableJpaAuditing(auditorAwareRef = "springSecurityAuditorAware")
@EnableTransactionManagement
public class DatabaseConfiguration {
private final Logger log = LoggerFactory.getLogger(DatabaseConfiguration.class);
private final Environment env;
public DatabaseConfiguration(Environment env) {
this.env = env;
}
/**
* Open the TCP port for the H2 database, so it is available remotely.
*
* @return the H2 database TCP server
* @throws SQLException if the server failed to start
*/
@Bean(initMethod = "start", destroyMethod = "stop")
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public Object h2TCPServer() throws SQLException {
String port = getValidPortForH2();
log.debug("H2 database is available on port {}", port);
return H2ConfigurationHelper.createServer(port);
}
private String getValidPortForH2() {
int port = Integer.parseInt(env.getProperty("server.port"));
if (port < 10000) {
port = 10000 + port;
} else {
if (port < 63536) {
port = port + 2000;
} else {
port = port - 2000;
}
}
return String.valueOf(port);
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
3848274ccea46a7c93e2496a424366b0a2c3f186
|
bb6b14d1371af4aaa7fd98a30870466c8c34589a
|
/app/src/main/java/com/qq/googleplay/ui/adapter/recyclerview/EmptyRecyclerView.java
|
c7e00b4439b4d4fd140934ecd73aca7a8ce7e3d0
|
[
"Apache-2.0"
] |
permissive
|
JackChan1999/GooglePlay
|
768bdcfd4a95c3a07f28de388557b2758a19ad2f
|
f050f5442e338278ed57bc380363820d2ef6b1fc
|
refs/heads/master
| 2021-06-16T16:55:47.102128
| 2017-04-17T14:17:37
| 2017-04-17T14:17:37
| 80,725,785
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,633
|
java
|
package com.qq.googleplay.ui.adapter.recyclerview;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
/**
* ============================================================
* Copyright:Google有限公司版权所有 (c) 2017
* Author: 陈冠杰
* Email: 815712739@qq.com
* GitHub: https://github.com/JackChen1999
* 博客: http://blog.csdn.net/axi295309066
* 微博: AndroidDeveloper
* <p>
* Project_Name:GooglePlay
* Package_Name:com.qq.googleplay
* Version:1.0
* time:2016/2/16 13:33
* des :${TODO}
* gitVersion:$Rev$
* updateAuthor:$Author$
* updateDate:$Date$
* updateDes:${TODO}
* ============================================================
**/
/**
* https://gist.github.com/adelnizamutdinov/31c8f054d1af4588dc5c
*/
public class EmptyRecyclerView extends RecyclerView
{
View emptyView;
public EmptyRecyclerView(Context context)
{
super(context);
}
public EmptyRecyclerView(Context context, AttributeSet attrs)
{
super(context, attrs);
}
public EmptyRecyclerView(Context context, AttributeSet attrs, int defStyle)
{
super(context, attrs, defStyle);
}
void checkIfEmpty()
{
if (emptyView != null)
{
emptyView.setVisibility(getAdapter().getItemCount() > 0 ? GONE : VISIBLE);
}
}
final AdapterDataObserver observer = new AdapterDataObserver()
{
@Override
public void onChanged()
{
super.onChanged();
checkIfEmpty();
}
};
@Override
public void swapAdapter(Adapter adapter, boolean removeAndRecycleExistingViews)
{
final Adapter oldAdapter = getAdapter();
if (oldAdapter != null)
{
oldAdapter.unregisterAdapterDataObserver(observer);
}
if (adapter != null)
{
adapter.registerAdapterDataObserver(observer);
}
super.swapAdapter(adapter, removeAndRecycleExistingViews);
checkIfEmpty();
}
@Override
public void setAdapter(Adapter adapter)
{
final Adapter oldAdapter = getAdapter();
if (oldAdapter != null)
{
oldAdapter.unregisterAdapterDataObserver(observer);
}
super.setAdapter(adapter);
if (adapter != null)
{
adapter.registerAdapterDataObserver(observer);
}
}
public void setEmptyView(View emptyView)
{
this.emptyView = emptyView;
checkIfEmpty();
}
}
|
[
"jackychan2040@gmail.com"
] |
jackychan2040@gmail.com
|
7eb19839c3a4ee12fc29f39e9c57f3498417b5da
|
7a00bba209de9fcc26ef692006d722bee0530a1a
|
/backend/n2o/n2o-config/src/main/java/net/n2oapp/framework/config/metadata/compile/cell/BadgeCellCompiler.java
|
9654ce61b5a7723d197f4bec85e5f79e2968e090
|
[
"Apache-2.0"
] |
permissive
|
borispinus/n2o-framework
|
bb7c78bc195c4b01370fc2666d6a3b71ded950d7
|
215782a1e5251549b79c5dd377940ecabba0f1d7
|
refs/heads/master
| 2020-04-13T20:10:06.213241
| 2018-12-28T10:12:18
| 2018-12-28T10:12:18
| 163,422,862
| 1
| 0
| null | 2018-12-28T15:11:59
| 2018-12-28T15:11:58
| null |
UTF-8
|
Java
| false
| false
| 1,485
|
java
|
package net.n2oapp.framework.config.metadata.compile.cell;
import net.n2oapp.framework.api.metadata.Source;
import net.n2oapp.framework.api.metadata.compile.CompileContext;
import net.n2oapp.framework.api.metadata.compile.CompileProcessor;
import net.n2oapp.framework.api.metadata.global.view.widget.table.column.cell.N2oBadgeCell;
import net.n2oapp.framework.api.script.ScriptProcessor;
import org.springframework.stereotype.Component;
import static net.n2oapp.framework.api.metadata.compile.building.Placeholders.property;
/**
* Компиляция ячейки c текстом
*/
@Component
public class BadgeCellCompiler extends AbstractCellCompiler<N2oBadgeCell, N2oBadgeCell> {
@Override
public Class<? extends Source> getSourceClass() {
return N2oBadgeCell.class;
}
@Override
public N2oBadgeCell compile(N2oBadgeCell source, CompileContext<?,?> context, CompileProcessor p) {
N2oBadgeCell cell = new N2oBadgeCell();
build(cell, source, context, p, property("n2o.default.cell.badge.src"));
if (source.getPosition() != null){
cell.setPosition(source.getPosition());
}
if (source.getText() != null)
cell.setText(p.resolveJS(source.getText()));
if (source.getN2oSwitch() != null)
cell.setColor(ScriptProcessor.buildExpressionForSwitch(source.getN2oSwitch()));
else
cell.setColor(p.resolveJS(source.getColor()));
return cell;
}
}
|
[
"iryabov@i-novus.ru"
] |
iryabov@i-novus.ru
|
78013545200f3f89f60e94fae7ffa0c007508c06
|
4aa5f7f190187aebbfccfe5dc5d4729ffa7ced58
|
/src/com/plter/jus/auth/Functions.java
|
5fc4c4079e467c05a47a7a5cdf52f7d3c2e4d7e2
|
[] |
no_license
|
460130107/JUS
|
63fd1e71b3ade97f2b4c642ec6119c29f88e45a9
|
324922d45914eaea22f3cecb8a4f96d534c28ec9
|
refs/heads/master
| 2020-12-30T13:46:20.496223
| 2015-07-03T09:04:03
| 2015-07-03T09:04:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,192
|
java
|
package com.plter.jus.auth;
import com.plter.jus.Constants;
import com.plter.jus.auth.annotation.RequireLogin;
import com.plter.jus.auth.annotation.RequireSuperAdmin;
import com.plter.jus.auth.funcs.fun.ShowFunctionList;
import com.plter.jus.auth.funcs.group.*;
import com.plter.jus.auth.funcs.main.ShowMainPage;
import com.plter.jus.auth.funcs.user.*;
import com.plter.jus.auth.tools.RenderTool;
import com.plter.jus.db.DbConnection;
import com.plter.jus.db.entities.FuncshipEntity;
import com.plter.jus.db.entities.GroupshipEntity;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Method;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* Created by plter on 6/23/15.
*/
public class Functions {
static public void call(Class funcClass,HttpServletRequest request,HttpServletResponse response){
String funcName = funcClass.getName();
Function f = AllFunctions.get(funcName);
if (f!=null){
try {
Method m = f.getClass().getMethod("execute",HttpServletRequest.class,HttpServletResponse.class);
if (m.isAnnotationPresent(RequireLogin.class)){
if (Login.CurrentUser.isLogged(request)){
if (!m.isAnnotationPresent(RequireSuperAdmin.class)){
long uid = Login.CurrentUser.getLoggedId(request);
if (uid!= Constants.SUPER_ADMIN_ID){
Session session = DbConnection.openSession();
boolean pass = false;//是否成功通过权限验证
List<GroupshipEntity> list = session.createCriteria(GroupshipEntity.class).add(Restrictions.eq("userid", uid)).list();
if (list.size()>0) {
List<Long> groupIds = list.stream().map(GroupshipEntity::getGroupid).collect(Collectors.toList());
List<FuncshipEntity> funcships = session.createCriteria(FuncshipEntity.class).add(Restrictions.in("groupid",groupIds)).list();
session.close();
if (funcships.stream().map(FuncshipEntity::getFuncname).collect(Collectors.toList()).contains(funcName)){
f.execute(request,response);
pass = true;
}
}else {
session.close();
}
if (!pass){
RenderTool.setRenderPage(request, "errors/AccessDenied");
}
}else {
f.execute(request, response);
}
}else {
if (Login.CurrentUser.getLoggedId(request)==Constants.SUPER_ADMIN_ID){
f.execute(request,response);
}else {
RenderTool.setRenderPage(request, "errors/AccessDenied");
}
}
}else {
showLoginPage(request,response);
}
}else {
f.execute(request,response);
}
} catch (NoSuchMethodException e) {
e.printStackTrace();
}
}
}
static private void showLoginPage(HttpServletRequest request,HttpServletResponse response){
try {
StringBuffer callback = request.getRequestURL();
String params = request.getQueryString();
if (params!=null){
callback.append("?").append(params);
}
response.sendRedirect(String.format("%s/u/lp?redirect=%s", request.getContextPath(), URLEncoder.encode(callback.toString(),"UTF-8")));
} catch (IOException e) {
e.printStackTrace();
}
}
private static final Map<String,Function> AllFunctions = new HashMap<>();
public static Map<String, Function> getFunctions() {
return AllFunctions;
}
static public void addFunc(Function func){
AllFunctions.put(func.getClass().getName(),func);
}
static {
addFunc(new AddUser());
addFunc(new Login());
addFunc(new ShowMainPage());
addFunc(new ShowUserAdminPage());
addFunc(new Reg());
addFunc(new ShowGroupAdminPage());
addFunc(new AddGroup());
addFunc(new ShowFunctionList());
addFunc(new EditPermissions());
addFunc(new UpdatePermissions());
addFunc(new ShowEditUserPage());
addFunc(new UpdateUserInfo());
addFunc(new AddGroupship());
addFunc(new RemoveGroupship());
}
}
|
[
"xtiqin@163.com"
] |
xtiqin@163.com
|
cc5123f55634ce6251a71018a67f46b09eb93e6c
|
ae5eb1a38b4d22c82dfd67c86db73592094edc4b
|
/project317/src/main/java/org/gradle/test/performance/largejavamultiproject/project317/p1587/Production31756.java
|
bdbefff2b0b993305bf4a564dae18b28300f580c
|
[] |
no_license
|
big-guy/largeJavaMultiProject
|
405cc7f55301e1fd87cee5878a165ec5d4a071aa
|
1cd6a3f9c59e9b13dffa35ad27d911114f253c33
|
refs/heads/main
| 2023-03-17T10:59:53.226128
| 2021-03-04T01:01:39
| 2021-03-04T01:01:39
| 344,307,977
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,971
|
java
|
package org.gradle.test.performance.largejavamultiproject.project317.p1587;
public class Production31756 {
private Production31753 property0;
public Production31753 getProperty0() {
return property0;
}
public void setProperty0(Production31753 value) {
property0 = value;
}
private Production31754 property1;
public Production31754 getProperty1() {
return property1;
}
public void setProperty1(Production31754 value) {
property1 = value;
}
private Production31755 property2;
public Production31755 getProperty2() {
return property2;
}
public void setProperty2(Production31755 value) {
property2 = value;
}
private String property3;
public String getProperty3() {
return property3;
}
public void setProperty3(String value) {
property3 = value;
}
private String property4;
public String getProperty4() {
return property4;
}
public void setProperty4(String value) {
property4 = value;
}
private String property5;
public String getProperty5() {
return property5;
}
public void setProperty5(String value) {
property5 = value;
}
private String property6;
public String getProperty6() {
return property6;
}
public void setProperty6(String value) {
property6 = value;
}
private String property7;
public String getProperty7() {
return property7;
}
public void setProperty7(String value) {
property7 = value;
}
private String property8;
public String getProperty8() {
return property8;
}
public void setProperty8(String value) {
property8 = value;
}
private String property9;
public String getProperty9() {
return property9;
}
public void setProperty9(String value) {
property9 = value;
}
}
|
[
"sterling.greene@gmail.com"
] |
sterling.greene@gmail.com
|
48d59e57f3ed4bb2e06d02c5c6dd665fdb51fdc8
|
7016cec54fb7140fd93ed805514b74201f721ccd
|
/src/java/com/echothree/control/user/offer/common/form/GetOfferItemPriceForm.java
|
524134710686740080cf684dfb22b6e277f92d7b
|
[
"MIT",
"Apache-1.1",
"Apache-2.0"
] |
permissive
|
echothreellc/echothree
|
62fa6e88ef6449406d3035de7642ed92ffb2831b
|
bfe6152b1a40075ec65af0880dda135350a50eaf
|
refs/heads/master
| 2023-09-01T08:58:01.429249
| 2023-08-21T11:44:08
| 2023-08-21T11:44:08
| 154,900,256
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,134
|
java
|
// --------------------------------------------------------------------------------
// Copyright 2002-2023 Echo Three, LLC
//
// 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.echothree.control.user.offer.common.form;
import com.echothree.control.user.offer.common.spec.OfferItemPriceSpec;
import com.echothree.util.common.form.OptionalHistoryForm;
public interface GetOfferItemPriceForm
extends OfferItemPriceSpec, OptionalHistoryForm {
// Nothing addtional beyond OfferItemPriceSpec, OptionalHistoryForm
}
|
[
"rich@echothree.com"
] |
rich@echothree.com
|
254626c418e02d6a2b245b90e39719c31bd833ce
|
5132b8eb10952157be016ba070628caf8fd03679
|
/java-code/src/main/java/com/sxk/lc/dp/ConvertLetterString.java
|
4399fc30794251312d0d4872be60fa92de5346f2
|
[] |
no_license
|
sunxiongkun/hippo-algorithm
|
1ff69e865b1eaa3ae9972e2bee31a67a1e754d5c
|
0342cb7acb170814528d52e547428f0be79ce4aa
|
refs/heads/master
| 2022-04-30T07:32:24.054577
| 2022-04-23T13:24:52
| 2022-04-23T13:24:52
| 165,800,389
| 0
| 0
| null | 2020-10-13T14:17:43
| 2019-01-15T06:51:21
|
Java
|
UTF-8
|
Java
| false
| false
| 936
|
java
|
package com.sxk.lc.dp;
/**
* @author sxk
* @date 2021/4/24 11:16 上午
*/
public class ConvertLetterString {
public static void main(String[] args) {
String s = "111239";
System.out.println(process(s.toCharArray(), 0));
}
/***
*
* i之前的位置已经尝试
* i之后的位置有多少种转化结果
* @param arr
* @param ans
* @return
*/
public static int process(char[] arr, int i) {
if (i == arr.length) {
return 1;
}
if (arr[i] == '0') {
return 0;
}
if (arr[i] == '1') {
int res = process(arr, i + 1);
if (i + 1 < arr.length) {
res += process(arr, i + 2);
}
return res;
}
if (arr[i] == '2') {
int res = process(arr, i + 1);
if (i + 1 < arr.length && arr[i + 1] >= '0' && arr[i + 1] <= '6') {
res += process(arr, i + 2);
}
return res;
}
return process(arr, i + 1);
}
}
|
[
"sunxiongkun2018@163.com"
] |
sunxiongkun2018@163.com
|
317cafc069223b296066a03d8586ca91eeb0c33f
|
f8aee71c8cf1a8afe0a096bee4def7f382675f50
|
/company-ui-web-primefaces-api/src/main/java/org/cyk/system/company/ui/web/primefaces/adapter/giftcard/GiftCardSystemMenuBuilder.java
|
ea182d4d84b46fc44ec61d1e9ce013b7668c6721
|
[] |
no_license
|
devlopper/org.cyk.system.company
|
7f6e8c9c360dd3bbdc73500945ef51f2c1cf6e1f
|
aae5e7d63f2e1dba1dba0c02fed77588f0ff50d0
|
refs/heads/master
| 2021-01-25T15:04:05.860701
| 2018-05-21T21:13:32
| 2018-05-21T21:13:32
| 34,449,471
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,215
|
java
|
package org.cyk.system.company.ui.web.primefaces.adapter.giftcard;
import java.io.Serializable;
import java.util.Collection;
import org.cyk.system.company.business.api.payment.CashierBusiness;
import org.cyk.system.company.model.payment.CashRegister;
import org.cyk.system.company.model.payment.Cashier;
import org.cyk.system.company.model.sale.SalableProduct;
import org.cyk.system.company.model.sale.SalableProductInstance;
import org.cyk.system.company.model.sale.SalableProductInstanceCashRegister;
import org.cyk.system.company.model.sale.Sale;
import org.cyk.system.company.model.structure.Employee;
import org.cyk.system.root.model.RootConstant;
import org.cyk.system.root.model.party.person.Person;
import org.cyk.ui.api.command.UICommandable;
import org.cyk.ui.api.command.menu.SystemMenu;
import org.cyk.ui.web.primefaces.AbstractSystemMenuBuilder;
import org.cyk.ui.web.primefaces.Commandable;
import org.cyk.ui.web.primefaces.UserSession;
public class GiftCardSystemMenuBuilder extends AbstractSystemMenuBuilder implements Serializable {
private static final long serialVersionUID = 6995162040038809581L;
private static GiftCardSystemMenuBuilder INSTANCE;
public static final String ACTION_SELL_GIFT_CARD = "asgc";
public static final String ACTION_USE_GIFT_CARD = "augc";
@Override
public SystemMenu build(UserSession userSession) {
SystemMenu systemMenu = new SystemMenu();
addBusinessMenu(userSession,systemMenu,getCashierCommandable(userSession, null));
addBusinessMenu(userSession,systemMenu,getGiftCardCommandable(userSession, null));
addBusinessMenu(userSession,systemMenu,getSaleCommandable(userSession, null));
addBusinessMenu(userSession,systemMenu,getReportCommandable(userSession, null));
return systemMenu;
}
public Commandable getCashierCommandable(UserSession userSession,Collection<UICommandable> mobileCommandables){
Commandable module = null;
module = createModuleCommandable(Cashier.class, null);
if(userSession.hasRole(RootConstant.Code.Role.MANAGER)){
module.addChild(createListCommandable(Cashier.class, null));
module.addChild(createListCommandable(CashRegister.class, null));
module.addChild(createListCommandable(Employee.class, null));
}
return module;
}
public Commandable getGiftCardCommandable(UserSession userSession,Collection<UICommandable> mobileCommandables){
Commandable module = null;
module = createModuleCommandable(SalableProduct.class, null);
if(userSession.hasRole(RootConstant.Code.Role.MANAGER)){
addChild(userSession,module,createListCommandable(SalableProduct.class, null));
addChild(userSession,module,createListCommandable(SalableProductInstance.class, null));
addChild(userSession,module,createListCommandable(SalableProductInstanceCashRegister.class, null));
//addChild(userSession,module,createListCommandable(FiniteStateMachineStateLog.class, null));
}
/*
FiniteStateMachine finiteStateMachine = inject(AccountingPeriodBusiness.class).findCurrent().getSaleConfiguration().getSalableProductInstanceCashRegisterFiniteStateMachine();
for(FiniteStateMachineAlphabet finiteStateMachineAlphabet : inject(FiniteStateMachineAlphabetBusiness.class).findByMachine(finiteStateMachine))
if(ArrayUtils.contains(new String[]{CompanyConstant.GIFT_CARD_WORKFLOW_ALPHABET_SELL,CompanyConstant.GIFT_CARD_WORKFLOW_ALPHABET_USE}
, finiteStateMachineAlphabet.getCode()))
;
else
addChild(userSession,module,(Commandable) createSelectManyCommandable(SalableProductInstanceCashRegister.class
, CompanyBusinessLayer.getInstance().getActionUpdateSalableProductInstanceCashRegisterState(),null)
.addParameter(finiteStateMachineAlphabet).setLabel(finiteStateMachineAlphabet.getName()));
*/
return module;
}
public Commandable getSaleCommandable(UserSession userSession,Collection<UICommandable> mobileCommandables){
Commandable module = null;
module = createModuleCommandable(Sale.class, null);
if(Boolean.TRUE.equals(userSession.getIsAdministrator()) || inject(CashierBusiness.class).findByPerson((Person) userSession.getUser())!=null){
//addChild(userSession,module,createListCommandable(Sale.class, null));
//addChild(userSession,module,createSelectOneCommandable(SaleProductInstance.class, "retour", null));
addChild(userSession,module,(Commandable) createCreateCommandable(Sale.class, null).setLabel(getText("action.sellgiftcard")).addActionParameter(ACTION_SELL_GIFT_CARD));
addChild(userSession,module,(Commandable) createCreateCommandable(Sale.class, null).setLabel(getText("action.usegiftcard")).addActionParameter(ACTION_USE_GIFT_CARD));
}
if(userSession.hasRole(RootConstant.Code.Role.MANAGER)){
//module.addChild(Builder.create("field.transfer", null, CompanyWebManager.getInstance().getOutcomeSalableProductInstanceCashRegisterStateLogList()));
//c.addParameter(CompanyReportRepository.getInstance().getParameterCustomerReportType(), CompanyReportRepository.getInstance().getParameterCustomerReportBalance());
//c.addParameter(CompanyReportRepository.getInstance().getParameterCustomerBalanceType(), CompanyReportRepository.getInstance().getParameterCustomerBalanceCredence());
}
return module;
}
public Commandable getReportCommandable(UserSession userSession,Collection<UICommandable> mobileCommandables){
Commandable module = null;
module = createModuleCommandable("command.report", null);
/*if(userSession.hasRole(RootConstant.Code.Role.MANAGER)){
FiniteStateMachine finiteStateMachine = inject(AccountingPeriodBusiness.class).findCurrent().getSaleConfiguration().getSalableProductInstanceCashRegisterFiniteStateMachine();
for(FiniteStateMachineState finiteStateMachineState : inject(FiniteStateMachineStateBusiness.class).findByMachine(finiteStateMachine))
addChild(userSession,module,(Commandable) Builder.create(null, null, CompanyWebManager.getInstance()
.getOutcomeSalableProductInstanceCashRegisterStateLogList()).addParameter(finiteStateMachineState).setLabel(finiteStateMachineState.getName()));
}
*/
return module;
}
public static GiftCardSystemMenuBuilder getInstance(){
if(INSTANCE==null)
INSTANCE = new GiftCardSystemMenuBuilder();
return INSTANCE;
}
}
|
[
"Christian@CYK-HP-LAPTOP"
] |
Christian@CYK-HP-LAPTOP
|
ce55538c0847de88ae038d01eda6b0c7a1733ff3
|
1af3d288cfcdcad742715845253c3f2cf1d0af38
|
/Algorithm/day01/src/Code_12_SmallSum.java
|
78d3b7411029e1b14f28c4ffcf6861b6805161c3
|
[] |
no_license
|
im-vincent/Java-Basic
|
ac320468533fd10cf5385ac86192a8412d3978d8
|
8073a17e28c42e3d8fb78f172935dc1dc5ebcd24
|
refs/heads/master
| 2021-01-07T00:05:50.815895
| 2019-12-17T01:25:41
| 2019-12-17T01:25:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,754
|
java
|
/**
*小和问题
*/
public class Code_12_SmallSum {
public static int smallSum(int[] arr) {
if (arr == null || arr.length < 2) {
return 0;
}
return mergeSort(arr, 0, arr.length - 1);
}
public static int mergeSort(int[] arr, int l, int r) {
if (l == r) {
return 0;
}
int mid = l + ((r - l) >> 1);
return mergeSort(arr, l, mid) + mergeSort(arr, mid + 1, r) + merge(arr, l, mid, r);
}
public static int merge(int[] arr, int l, int m, int r) {
int[] help = new int[r - l + 1];
int i = 0;
int p1 = l;
int p2 = m + 1;
int res = 0;
while (p1 <= m && p2 <= r) {
res += arr[p1] < arr[p2] ? (r - p2 + 1) * arr[p1] : 0;
help[i++] = arr[p1] < arr[p2] ? arr[p1++] : arr[p2++];
}
while (p1 <= m) {
help[i++] = arr[p1++];
}
while (p2 <= r) {
help[i++] = arr[p2++];
}
for (i = 0; i < help.length; i++) {
arr[l + i] = help[i];
}
return res;
}
// for test
public static int comparator(int[] arr) {
if (arr == null || arr.length < 2) {
return 0;
}
int res = 0;
for (int i = 1; i < arr.length; i++) {
for (int j = 0; j < i; j++) {
res += arr[j] < arr[i] ? arr[j] : 0;
}
}
return res;
}
// for test
public static int[] generateRandomArray(int maxSize, int maxValue) {
int[] arr = new int[(int) ((maxSize + 1) * Math.random())];
for (int i = 0; i < arr.length; i++) {
arr[i] = (int) ((maxValue + 1) * Math.random()) - (int) (maxValue * Math.random());
}
return arr;
}
// for test
public static int[] copyArray(int[] arr) {
if (arr == null) {
return null;
}
int[] res = new int[arr.length];
for (int i = 0; i < arr.length; i++) {
res[i] = arr[i];
}
return res;
}
// for test
public static boolean isEqual(int[] arr1, int[] arr2) {
if ((arr1 == null && arr2 != null) || (arr1 != null && arr2 == null)) {
return false;
}
if (arr1 == null && arr2 == null) {
return true;
}
if (arr1.length != arr2.length) {
return false;
}
for (int i = 0; i < arr1.length; i++) {
if (arr1[i] != arr2[i]) {
return false;
}
}
return true;
}
// for test
public static void printArray(int[] arr) {
if (arr == null) {
return;
}
for (int i = 0; i < arr.length; i++) {
System.out.print(arr[i] + " ");
}
System.out.println();
}
// for test
public static void main(String[] args) {
int testTime = 500000;
int maxSize = 100;
int maxValue = 100;
boolean succeed = true;
for (int i = 0; i < testTime; i++) {
int[] arr1 = generateRandomArray(maxSize, maxValue);
int[] arr2 = copyArray(arr1);
if (smallSum(arr1) != comparator(arr2)) {
succeed = false;
printArray(arr1);
printArray(arr2);
break;
}
}
System.out.println(succeed ? "Nice!" : "Fucking fucked!");
}
}
|
[
"18270856781@163.com"
] |
18270856781@163.com
|
086fc7883a9ba72645aae80457de411ccabe0116
|
7df62a93d307a01b1a42bb858d6b06d65b92b33b
|
/src/com/afunms/monitor/executor/TrafficTxUtilization.java
|
340e2a7c9ac154f1436646aa6231926b509a16bf
|
[] |
no_license
|
wu6660563/afunms_fd
|
79ebef9e8bca4399be338d1504faf9630c42a6e1
|
3fae79abad4f3eb107f1558199eab04e5e38569a
|
refs/heads/master
| 2021-01-10T01:54:38.934469
| 2016-01-05T09:16:38
| 2016-01-05T09:16:38
| 48,276,889
| 0
| 1
| null | null | null | null |
GB18030
|
Java
| false
| false
| 3,241
|
java
|
/**
* <p>Description:interface tx utilization</p>
* <p>Company: dhcc.com</p>
* @author afunms
* @project afunms
* @date 2006-09-17
*/
package com.afunms.monitor.executor;
import java.text.DecimalFormat;
import java.util.*;
import com.afunms.common.util.SysLogger;
import com.afunms.common.util.SysUtil;
import com.afunms.monitor.executor.base.MonitorInterface;
import com.afunms.monitor.executor.base.SnmpMonitor;
import com.afunms.monitor.item.SnmpItem;
import com.afunms.monitor.item.base.MonitorResult;
import com.afunms.monitor.item.base.MonitoredItem;
import com.afunms.polling.node.*;
import com.afunms.polling.base.*;
import com.afunms.topology.model.HostNode;
public class TrafficTxUtilization extends SnmpMonitor implements MonitorInterface
{
public TrafficTxUtilization()
{
}
public void collectData(HostNode node){
}
public Hashtable collect_Data(HostNode node){
return null;
}
public void collectData(Node node,MonitoredItem monitoredItem)
{
Host host = (Host)node;
if(host.getInterfaceHash()==null||host.getInterfaceHash().size()==0) return;
SnmpItem item = (SnmpItem)monitoredItem;
String[] oids = new String[]{"1.3.6.1.2.1.2.2.1.1",
"1.3.6.1.2.1.2.2.1.16"};
String[][] valueArray = null;
try
{
valueArray = snmp.getTableData(host.getIpAddress(),host.getCommunity(),oids);
}
catch(Exception e)
{
valueArray = null;
SysLogger.error(host.getIpAddress() + "_TrafficTxUtilization");
}
if(valueArray==null||valueArray.length==0)
{
item.setMultiResults(null);
return;
}
List list = new ArrayList(20);
for(int i=0;i<valueArray.length;i++)
{
if(valueArray[i][0]==null||valueArray[i][1]==null) continue;
if(host.getInterfaceHash().get(valueArray[i][0])==null) continue;
IfEntity ifEntity = (IfEntity)host.getInterfaceHash().get(valueArray[i][0]);
if(ifEntity.getOperStatus()==2||ifEntity.getSpeed()==0) continue;
long tempOutOctets = Long.parseLong(valueArray[i][1]);
if(item.getLastTime()==0) //第一次采集
{
ifEntity.setOutOctets(tempOutOctets);
continue;
}
long diffOctets = tempOutOctets - ifEntity.getOutOctets();
if(diffOctets < 0)
diffOctets = diffOctets + Long.parseLong("4294967295");
long txTraffic = (long) (diffOctets * 8/ ((SysUtil.getCurrentLongTime()-item.getLastTime()) * 1024));
float txUtil = ((float)(diffOctets * 8 * 100))/(ifEntity.getSpeed()*(SysUtil.getCurrentLongTime()-item.getLastTime()));
if(txUtil>100) txUtil = -1;
if(txUtil>0)
{
DecimalFormat df = new DecimalFormat("#.00");
txUtil = Float.parseFloat(df.format(txUtil));
}
MonitorResult mr = new MonitorResult();
mr.setEntity(ifEntity.getIndex());
mr.setPercentage(txUtil);
mr.setValue(txTraffic);
ifEntity.setOutOctets(tempOutOctets);
ifEntity.setTxUtilization(txUtil);
list.add(mr);
}
item.setMultiResults(list);
}
}
|
[
"nick@comprame.com"
] |
nick@comprame.com
|
178d5b72a0d4db6a533ad673584e6ebace501efc
|
b1c7d854d6a2257330b0ea137c5b4e24b2e5078d
|
/com/google/android/gms/games/appcontent/AppContentSectionEntity.java
|
ab73a03a717a0ffed2a27cc3e0d57886602c6eee
|
[] |
no_license
|
nayebare/mshiriki_android_app
|
45fd0061332f5253584b351b31b8ede2f9b56387
|
7b6b729b5cbc47f109acd503b57574d48511ee70
|
refs/heads/master
| 2020-06-21T20:01:59.725854
| 2017-06-12T13:55:51
| 2017-06-12T13:55:51
| 94,205,275
| 1
| 1
| null | 2017-06-13T11:22:51
| 2017-06-13T11:22:51
| null |
UTF-8
|
Java
| false
| false
| 6,224
|
java
|
package com.google.android.gms.games.appcontent;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.internal.zzaa;
import com.google.android.gms.games.internal.GamesAbstractSafeParcelable;
import java.util.ArrayList;
import java.util.List;
public final class AppContentSectionEntity extends GamesAbstractSafeParcelable implements AppContentSection {
public static final Creator<AppContentSectionEntity> CREATOR;
private final ArrayList<AppContentActionEntity> mActions;
private final Bundle mExtras;
private final int mVersionCode;
private final String zzGu;
private final String zzTW;
private final ArrayList<AppContentCardEntity> zzaYE;
private final String zzaYF;
private final ArrayList<AppContentAnnotationEntity> zzaYw;
private final String zzaYy;
private final String zzalD;
private final String zzasu;
static {
CREATOR = new AppContentSectionEntityCreator();
}
AppContentSectionEntity(int i, ArrayList<AppContentActionEntity> arrayList, ArrayList<AppContentCardEntity> arrayList2, String str, Bundle bundle, String str2, String str3, String str4, String str5, String str6, ArrayList<AppContentAnnotationEntity> arrayList3) {
this.mVersionCode = i;
this.mActions = arrayList;
this.zzaYw = arrayList3;
this.zzaYE = arrayList2;
this.zzaYF = str6;
this.zzasu = str;
this.mExtras = bundle;
this.zzGu = str5;
this.zzaYy = str2;
this.zzalD = str3;
this.zzTW = str4;
}
public AppContentSectionEntity(AppContentSection appContentSection) {
int i;
int i2 = 0;
this.mVersionCode = 5;
this.zzaYF = appContentSection.zzDQ();
this.zzasu = appContentSection.zzDv();
this.mExtras = appContentSection.getExtras();
this.zzGu = appContentSection.getId();
this.zzaYy = appContentSection.zzDH();
this.zzalD = appContentSection.getTitle();
this.zzTW = appContentSection.getType();
List actions = appContentSection.getActions();
int size = actions.size();
this.mActions = new ArrayList(size);
for (i = 0; i < size; i++) {
this.mActions.add((AppContentActionEntity) ((AppContentAction) actions.get(i)).freeze());
}
actions = appContentSection.zzDP();
size = actions.size();
this.zzaYE = new ArrayList(size);
for (i = 0; i < size; i++) {
this.zzaYE.add((AppContentCardEntity) ((AppContentCard) actions.get(i)).freeze());
}
List zzDF = appContentSection.zzDF();
int size2 = zzDF.size();
this.zzaYw = new ArrayList(size2);
while (i2 < size2) {
this.zzaYw.add((AppContentAnnotationEntity) ((AppContentAnnotation) zzDF.get(i2)).freeze());
i2++;
}
}
static int zza(AppContentSection appContentSection) {
return zzaa.hashCode(appContentSection.getActions(), appContentSection.zzDF(), appContentSection.zzDP(), appContentSection.zzDQ(), appContentSection.zzDv(), appContentSection.getExtras(), appContentSection.getId(), appContentSection.zzDH(), appContentSection.getTitle(), appContentSection.getType());
}
static boolean zza(AppContentSection appContentSection, Object obj) {
if (!(obj instanceof AppContentSection)) {
return false;
}
if (appContentSection == obj) {
return true;
}
AppContentSection appContentSection2 = (AppContentSection) obj;
return zzaa.equal(appContentSection2.getActions(), appContentSection.getActions()) && zzaa.equal(appContentSection2.zzDF(), appContentSection.zzDF()) && zzaa.equal(appContentSection2.zzDP(), appContentSection.zzDP()) && zzaa.equal(appContentSection2.zzDQ(), appContentSection.zzDQ()) && zzaa.equal(appContentSection2.zzDv(), appContentSection.zzDv()) && zzaa.equal(appContentSection2.getExtras(), appContentSection.getExtras()) && zzaa.equal(appContentSection2.getId(), appContentSection.getId()) && zzaa.equal(appContentSection2.zzDH(), appContentSection.zzDH()) && zzaa.equal(appContentSection2.getTitle(), appContentSection.getTitle()) && zzaa.equal(appContentSection2.getType(), appContentSection.getType());
}
static String zzb(AppContentSection appContentSection) {
return zzaa.zzv(appContentSection).zzg("Actions", appContentSection.getActions()).zzg("Annotations", appContentSection.zzDF()).zzg("Cards", appContentSection.zzDP()).zzg("CardType", appContentSection.zzDQ()).zzg("ContentDescription", appContentSection.zzDv()).zzg("Extras", appContentSection.getExtras()).zzg("Id", appContentSection.getId()).zzg("Subtitle", appContentSection.zzDH()).zzg("Title", appContentSection.getTitle()).zzg("Type", appContentSection.getType()).toString();
}
public boolean equals(Object obj) {
return zza(this, obj);
}
public /* synthetic */ Object freeze() {
return zzDR();
}
public List<AppContentAction> getActions() {
return new ArrayList(this.mActions);
}
public Bundle getExtras() {
return this.mExtras;
}
public String getId() {
return this.zzGu;
}
public String getTitle() {
return this.zzalD;
}
public String getType() {
return this.zzTW;
}
public int getVersionCode() {
return this.mVersionCode;
}
public int hashCode() {
return zza(this);
}
public boolean isDataValid() {
return true;
}
public String toString() {
return zzb(this);
}
public void writeToParcel(Parcel parcel, int i) {
AppContentSectionEntityCreator.zza(this, parcel, i);
}
public List<AppContentAnnotation> zzDF() {
return new ArrayList(this.zzaYw);
}
public String zzDH() {
return this.zzaYy;
}
public List<AppContentCard> zzDP() {
return new ArrayList(this.zzaYE);
}
public String zzDQ() {
return this.zzaYF;
}
public AppContentSection zzDR() {
return this;
}
public String zzDv() {
return this.zzasu;
}
}
|
[
"cwanziguya@gmail.com"
] |
cwanziguya@gmail.com
|
1537ff4b9daac0d4f24e29bb33e7d8a61c6e7064
|
5ec06dab1409d790496ce082dacb321392b32fe9
|
/clients/java-inflector/generated/src/gen/java/org/openapitools/model/ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo.java
|
7d7c46ba44c599e17af146bc77be28d7fbece15b
|
[
"Apache-2.0"
] |
permissive
|
shinesolutions/swagger-aem-osgi
|
e9d2385f44bee70e5bbdc0d577e99a9f2525266f
|
c2f6e076971d2592c1cbd3f70695c679e807396b
|
refs/heads/master
| 2022-10-29T13:07:40.422092
| 2021-04-09T07:46:03
| 2021-04-09T07:46:03
| 190,217,155
| 3
| 3
|
Apache-2.0
| 2022-10-05T03:26:20
| 2019-06-04T14:23:28
| null |
UTF-8
|
Java
| false
| false
| 4,216
|
java
|
package org.openapitools.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.model.ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplProperties;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", date = "2019-08-05T00:53:46.291Z[GMT]")
public class ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo {
@JsonProperty("pid")
private String pid = null;
@JsonProperty("title")
private String title = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("properties")
private ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplProperties properties = null;
/**
**/
public ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo pid(String pid) {
this.pid = pid;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("pid")
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
/**
**/
public ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo title(String title) {
this.title = title;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("title")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
/**
**/
public ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo description(String description) {
this.description = description;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
/**
**/
public ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo properties(ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplProperties properties) {
this.properties = properties;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("properties")
public ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplProperties getProperties() {
return properties;
}
public void setProperties(ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplProperties properties) {
this.properties = properties;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo comAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo = (ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo) o;
return Objects.equals(pid, comAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo.pid) &&
Objects.equals(title, comAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo.title) &&
Objects.equals(description, comAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo.description) &&
Objects.equals(properties, comAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo.properties);
}
@Override
public int hashCode() {
return Objects.hash(pid, title, description, properties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ComAdobeCqScreensImplRemoteImplDistributedHttpClientImplInfo {\n");
sb.append(" pid: ").append(toIndentedString(pid)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).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 ");
}
}
|
[
"cliffano@gmail.com"
] |
cliffano@gmail.com
|
457363025b31d4a640917eaaad747b29194fc258
|
7b73756ba240202ea92f8f0c5c51c8343c0efa5f
|
/classes2/vek.java
|
71ab69a2f0cb9fb9297adc8bba764c0b6763eb7f
|
[] |
no_license
|
meeidol-luo/qooq
|
588a4ca6d8ad579b28dec66ec8084399fb0991ef
|
e723920ac555e99d5325b1d4024552383713c28d
|
refs/heads/master
| 2020-03-27T03:16:06.616300
| 2016-10-08T07:33:58
| 2016-10-08T07:33:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 946
|
java
|
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mobileqq.hotpatch.NotVerifyClass;
import com.tencent.mobileqq.troop.activity.NearbyMemberAdapter;
import com.tencent.mobileqq.troop.activity.NearbyMemberAdapter.OnClickSayHelloListener;
import com.tencent.mobileqq.troop.data.NearbyMember;
public class vek
implements View.OnClickListener
{
public vek(NearbyMemberAdapter paramNearbyMemberAdapter)
{
boolean bool = NotVerifyClass.DO_VERIFY_CLASS;
}
public void onClick(View paramView)
{
if ((this.a.a != null) && ((paramView.getTag() instanceof NearbyMember)))
{
paramView = (NearbyMember)paramView.getTag();
this.a.a.a(String.valueOf(paramView.jdField_a_of_type_Long), paramView.jdField_a_of_type_JavaLangString);
}
}
}
/* Location: E:\apk\QQ_91\classes2-dex2jar.jar!\vek.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
1cd0656d27047c188a07c4f852b153cb2ecd1a1f
|
10d11b2e17b9eebe83c246c4a0bae41a4f18e6c7
|
/src/main/java/com/qubaopen/survey/repository/user/UserFriendRepository.java
|
e4810eb14e653e3e8e2057246f8de91b57a8aef1
|
[] |
no_license
|
cosmoMars/know-heart
|
8ce44103cfa4a2a94e4dfedfc6147ce4ad21388c
|
073894d49571b39829a10a86ce9f7c54c610f057
|
refs/heads/master
| 2016-09-06T02:41:03.488447
| 2014-07-26T05:52:16
| 2014-07-26T05:52:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 232
|
java
|
package com.qubaopen.survey.repository.user;
import com.qubaopen.survey.entity.user.UserFriend;
import com.qubaopen.survey.repository.MyRepository;
public interface UserFriendRepository extends MyRepository<UserFriend, Long> {
}
|
[
"cosmo_mars@outlook.com"
] |
cosmo_mars@outlook.com
|
0cc6bf51af924506d8ad50c21356b7eec0d7331c
|
dd0f0f563f4f8796a6167537b940ae12c5cb3a90
|
/genlab.batch/src/genlab/batch/Application.java
|
bdf2e75c5cb4ed1e801ee356494415ff5dcbc944
|
[] |
no_license
|
margaritis/genlab
|
93be8c9be9dc70166867eb0efe0d5f122a13dd0f
|
90b8f84576d1e264a75e9cec09f9359ec6527534
|
refs/heads/master
| 2021-01-15T12:54:24.288087
| 2013-11-19T16:41:43
| 2013-11-19T16:41:43
| 16,492,672
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,340
|
java
|
package genlab.batch;
import genlab.core.GenLab;
import genlab.core.commons.WrongParametersException;
import genlab.core.exec.GenlabExecution;
import genlab.core.model.exec.IComputationProgress;
import genlab.core.model.instance.IGenlabWorkflowInstance;
import genlab.core.persistence.GenlabPersistence;
import genlab.core.projects.IGenlabProject;
import genlab.core.usermachineinteraction.ListOfMessages;
import genlab.core.usermachineinteraction.UserMachineInteractionUtils;
import java.io.File;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.eclipse.core.runtime.Platform;
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
/**
* This class controls all aspects of the application's execution
*/
public class Application implements IApplication {
protected void die(String error) {
System.err.println();
System.err.println(error);
}
protected void runWorkflow(String workflowFile) {
// check the file exists
File fileWorkflow = new File(workflowFile);
if (!fileWorkflow.exists())
die("this file does not exists: "+workflowFile);
if (!fileWorkflow.canRead())
die("this file can not be readen: "+workflowFile);
try {
// find project
IGenlabProject project = GenlabPersistence.getPersistence().searchProjectForFile(fileWorkflow.getAbsolutePath());
String relativeWorkflowFile = fileWorkflow.getAbsolutePath();
if (!relativeWorkflowFile.startsWith(project.getBaseDirectory()))
die("wrong path; internal error");
relativeWorkflowFile = relativeWorkflowFile.substring(project.getBaseDirectory().length());
IGenlabWorkflowInstance workflow = GenlabPersistence.getPersistence().readWorkflow(project, relativeWorkflowFile);
IComputationProgress progress = GenlabExecution.runBlocking(workflow, true);
switch (progress.getComputationState()) {
case FINISHED_CANCEL:
System.out.println("computation was canceled");
break;
case FINISHED_FAILURE:
System.out.println("computation failed");
break;
case FINISHED_OK:
System.out.println("computation finished in "+UserMachineInteractionUtils.getHumanReadableTimeRepresentation(progress.getDurationMs()));
break;
default:
die("unknown state at the end of computations: "+progress.getComputationState());
}
} catch (WrongParametersException e) {
die("error while reading the project");
}
//GenlabPersistence.getPersistence().readWorkflow(project, relativeFilename)
}
protected void printUsage() {
System.out.println("Genlab headless: usage");
System.out.println("... still to be defined (TODO)"); // TODO command line ? script ?
System.out.println(" java -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -XX:MaxPermSize=256m -Xms40m -Xmx512m -Dfile.encoding=UTF-8 -classpath /local00/home/Samuel Thiriot/opt/eclipseJuno/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar org.eclipse.equinox.launcher.Main -launcher /local00/home/Samuel Thiriot/opt/eclipseJuno/eclipse -product genlab.batch.genlab_batch -os linux -ws gtk -arch x86_64 -nl fr_FR -consoleLog <path to the workflow file>");
System.out.println();
}
/* (non-Javadoc)
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
*/
public Object start(IApplicationContext context) throws Exception {
// init
System.out.println("initialization of genlab...");
GenLab.getVersionString();
System.out.println();
GenlabPersistence.getPersistence().autoloadAllWorkflows = false;
ListOfMessages.DEFAULT_RELAY_TO_LOG4J = true;
Logger.getRoot().setLevel(Level.INFO);
System.out.print("Genlab ");
System.out.print(GenLab.getVersionString());
System.out.println();
System.out.println();
String[] args = Platform.getCommandLineArgs();
String filenameWorkflow = null;
for (int i=0; i<args.length; i++) {
if (args[i].startsWith("-")) {
i++; // pass this option and its value
continue;
}
filenameWorkflow = args[i];
break;
}
if (filenameWorkflow == null)
printUsage();
else
runWorkflow(filenameWorkflow);
return IApplication.EXIT_OK;
}
/* (non-Javadoc)
* @see org.eclipse.equinox.app.IApplication#stop()
*/
public void stop() {
// nothing to do
}
}
|
[
"samuel.thiriot.accounts@res-ear.ch"
] |
samuel.thiriot.accounts@res-ear.ch
|
08e30d8bcc0101cfa3c6d8b0d0ea098f4ca10447
|
a0d4660ece22b73f4150bea97c03a83559824846
|
/rocketmq/rocketmq-comform/src/main/java/com/example/conform/demo/DemoTransactionProducer.java
|
ecca0a6387759b064181218815ae535a6897bdf5
|
[] |
no_license
|
Escall/rocketmq
|
2af2ec2931ff26af3c59eb54926f6b7dd8581304
|
471c74d1831d02909f95b80d4eaa56d38955e444
|
refs/heads/master
| 2021-07-10T12:27:36.442396
| 2019-09-09T13:10:45
| 2019-09-09T13:10:45
| 207,294,730
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 772
|
java
|
package com.example.conform.demo;
import com.example.conform.abstra.AbstractMQTransactionProducer;
import com.example.conform.annotation.MQTransactionProducer;
import org.apache.rocketmq.client.producer.LocalTransactionState;
import org.apache.rocketmq.common.message.Message;
import org.apache.rocketmq.common.message.MessageExt;
/**
* TIME:2019/9/8
* USER: EsCall
* DESC:
*/
//@MQTransactionProducer(producerGroup = "tx_demo_producer")
public class DemoTransactionProducer extends AbstractMQTransactionProducer {
@Override
public LocalTransactionState executeLocalTransaction(Message message, Object o) {
return null;
}
@Override
public LocalTransactionState checkLocalTransaction(MessageExt messageExt) {
return null;
}
}
|
[
"you@example.com"
] |
you@example.com
|
b94bbb8138f2624f533f54fd59e214002589a107
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/12/12_15cdfcbcf852621a762f9cf4e4013e4156b20c76/ImperialConverter/12_15cdfcbcf852621a762f9cf4e4013e4156b20c76_ImperialConverter_s.java
|
1a407691279e67fc2df94f9e24b8da53fa23cfe2
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 1,006
|
java
|
package com.marbol.marbol;
import java.util.HashMap;
public class ImperialConverter implements MarbolUnitConverter {
private static final double km2tomi2 = 0.386102;
private static final double mpstomph = 2.23694;
private static final double mtoft = 3.28084;
private static final double ftpermi = 5280;
@Override
public double[] convert(Adventure adv) {
double[] retval = new double[4];
retval[0] = adv.getArea(Adventure.STANDARD_RADIUS) * km2tomi2;
retval[1] = adv.getAverageSpeed() * mpstomph;
retval[2] = adv.getElevationDiff() * mtoft;
retval[3] = (adv.getDistanceInMeters() * mtoft) / 5280;
return retval;
}
@Override
public HashMap<String, String> getUnit() {
HashMap<String, String> units = new HashMap<String, String>();
units.put("area_unit", "mi\u00b2");
units.put("distance_unit", "mi");
units.put("elevation_unit", "ft");
units.put("speed_unit", "ft/s");
// TODO Auto-generated method stub
return null;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
b3d0c6e21fdc7b5565d6c8fa3811220eb958fe82
|
938435a046a139f0ffc019ff0c1f815d8acc5751
|
/evaluation/uk.ac.york.ocl.java_equals/src/javaMM/NumberLiteral.java
|
28893620c7da993adb7823cf7503d651d23df242
|
[] |
no_license
|
epsilonlabs/parallel-erl
|
e73eeab7550e86780958ea2ea6d4d2e4f88295e5
|
ef45509c7018064809d62fb8e00a4bf4f10c9305
|
refs/heads/master
| 2021-05-02T10:07:08.151100
| 2020-04-29T11:32:10
| 2020-04-29T11:32:10
| 120,789,351
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,133
|
java
|
/**
*/
package javaMM;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Number Literal</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link javaMM.NumberLiteral#getTokenValue <em>Token Value</em>}</li>
* </ul>
*
* @see javaMM.JavaMMPackage#getNumberLiteral()
* @model
* @generated
*/
public interface NumberLiteral extends Expression {
/**
* Returns the value of the '<em><b>Token Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Token Value</em>' attribute.
* @see #setTokenValue(String)
* @see javaMM.JavaMMPackage#getNumberLiteral_TokenValue()
* @model required="true"
* @generated
*/
String getTokenValue();
/**
* Sets the value of the '{@link javaMM.NumberLiteral#getTokenValue <em>Token Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Token Value</em>' attribute.
* @see #getTokenValue()
* @generated
*/
void setTokenValue(String value);
} // NumberLiteral
|
[
"sinadoom@googlemail.com"
] |
sinadoom@googlemail.com
|
827eab6b1237dcf0104215752900c9995fce4070
|
2ebe6e87a7f96bbee2933103a4f43f46ea239996
|
/src/test-hu/java/org/htmlunit/BinaryPageTest.java
|
cd622f37a43c4e417b2c9856ddf79563249148c5
|
[
"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,399
|
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;
import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.Servlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.htmlunit.junit.BrowserRunner;
/**
* Tests for binary content.
*
* @author Ahmed Ashour
* @author Ronald Brill
*/
@RunWith(BrowserRunner.class)
public class BinaryPageTest extends WebServerTestCase {
/**
* @throws Exception if the test fails
*/
@Test
public void binary() throws Exception {
final Map<String, Class<? extends Servlet>> servlets = new HashMap<>();
servlets.put("/big", BinaryServlet.class);
startWebServer("./", null, servlets);
final WebClient client = getWebClient();
final Page page = client.getPage(URL_FIRST + "big");
assertTrue(page instanceof UnexpectedPage);
}
/**
* Servlet for {@link #binary()}.
*/
public static class BinaryServlet extends HttpServlet {
/**
* {@inheritDoc}
*/
@Override
protected void doGet(final HttpServletRequest request, final HttpServletResponse response) throws IOException {
final int length = 1000;
response.setContentLength(length);
final byte[] buffer = new byte[1024];
try (OutputStream out = response.getOutputStream()) {
for (int i = length / buffer.length; i >= 0; i--) {
out.write(buffer);
}
}
}
}
/**
* @throws Exception if the test fails
*/
@Test
public void chunkedBigContent() throws Exception {
final Map<String, Class<? extends Servlet>> servlets = new HashMap<>();
servlets.put("/bigChunked", ChunkedBigContentServlet.class);
startWebServer("./", null, servlets);
final WebClient client = getWebClient();
final Page page = client.getPage(URL_FIRST + "bigChunked");
assertTrue(page instanceof UnexpectedPage);
}
/**
* Servlet for {@link #chunkedBigContent()}.
*/
public static class ChunkedBigContentServlet extends HttpServlet {
/**
* {@inheritDoc}
*/
@Override
protected void doGet(final HttpServletRequest request, final HttpServletResponse response) throws IOException {
response.setHeader("Transfer-Encoding", "chunked");
final int length = 60 * 1024 * 1024;
final byte[] buffer = new byte[1024];
try (OutputStream out = response.getOutputStream()) {
for (int i = length / buffer.length; i >= 0; i--) {
out.write(buffer);
}
}
}
}
/**
* @throws Exception if the test fails
*/
@Test
public void chunked() throws Exception {
final String response = "HTTP/1.1 200 OK\r\n"
+ "Transfer-Encoding: chunked\r\n\r\n"
+ "5\r\n"
+ "ABCDE\r\n"
+ "5\r\n"
+ "FGHIJ\r\n"
+ "5\r\n"
+ "KLMNO\r\n"
+ "5\r\n"
+ "PQRST\r\n"
+ "5\r\n"
+ "UVWXY\r\n"
+ "1\r\n"
+ "Z\r\n"
+ "0\r\n\r\n";
try (PrimitiveWebServer primitiveWebServer = new PrimitiveWebServer(null, response, null)) {
final WebClient client = getWebClient();
final TextPage page = client.getPage("http://localhost:" + primitiveWebServer.getPort() + "/" + "chunked");
assertEquals("ABCDEFGHIJKLMNOPQRSTUVWXYZ", page.getContent());
}
}
}
|
[
"4639399+jowerner@users.noreply.github.com"
] |
4639399+jowerner@users.noreply.github.com
|
cb5e5d1f26cc109140a2a465549e87db7afa5590
|
6c35446feb5baaadf1901a083442e14dc423fc0b
|
/TestWork/src/main/java/com/bussiness/bi/bigdata/http/SparkRest.java
|
951fd95b2b622a78e04b85d9c106baaabc293e04
|
[
"Apache-2.0"
] |
permissive
|
chenqixu/TestSelf
|
8e533d2f653828f9f92564c3918041d733505a30
|
7488d83ffd20734ab5ca431d13fa3c5946493c11
|
refs/heads/master
| 2023-09-01T06:18:59.417999
| 2023-08-21T06:16:55
| 2023-08-21T06:16:55
| 75,791,787
| 3
| 1
|
Apache-2.0
| 2022-03-02T06:47:48
| 2016-12-07T02:36:58
|
Java
|
UTF-8
|
Java
| false
| false
| 1,195
|
java
|
package com.bussiness.bi.bigdata.http;
import com.bussiness.bi.bigdata.http.frame.CallWebService;
/**
* jar包必须在远程主机
* 必须得在执行主机创建/tmp/spark-events目录
* */
public class SparkRest {
public static void main(String[] args) {
String sMethod = "post";
String sUrl = "http://10.1.8.75:6066/v1/submissions/create";
String aRequestContent = "{"
+" \"action\" : \"CreateSubmissionRequest\","
+" \"appArgs\" : [ \"\" ], "
+" \"appResource\" : \"file:/home/edc_base/cqx/java/TestSpark-1.0.0.jar\", "
+" \"clientSparkVersion\" : \"2.3.0\","
+" \"environmentVariables\" : {"
+" \"SPARK_ENV_LOADED\" : \"1\""
+" },"
+" \"mainClass\" : \"com.cqx.test.Test1\","
+" \"sparkProperties\" : {"
+" \"spark.jars\" : \"file:/home/edc_base/cqx/java/TestSpark-1.0.0.jar\","
+" \"spark.driver.supervise\" : \"false\","
+" \"spark.app.name\" : \"MyJob\","
+" \"spark.eventLog.enabled\": \"true\","
+" \"spark.submit.deployMode\" : \"cluster\","
+" \"spark.master\" : \"spark://10.1.8.75:6066\""
+" }"
+"}";
String result = CallWebService.getInstance().doAction(sMethod, sUrl, aRequestContent.getBytes());
System.out.println(result);
}
}
|
[
"13509323824@139.com"
] |
13509323824@139.com
|
e40dd2fb1f9df57791ff066ed0f801bbd335f3d9
|
3b91ed788572b6d5ac4db1bee814a74560603578
|
/com/tencent/mm/pluginsdk/ui/d/d.java
|
2db96f0a74488d192ea37f08e6c7c9a76f2f9b90
|
[] |
no_license
|
linsir6/WeChat_java
|
a1deee3035b555fb35a423f367eb5e3e58a17cb0
|
32e52b88c012051100315af6751111bfb6697a29
|
refs/heads/master
| 2020-05-31T05:40:17.161282
| 2018-08-28T02:07:02
| 2018-08-28T02:07:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 392
|
java
|
package com.tencent.mm.pluginsdk.ui.d;
import android.text.SpannableString;
public interface d {
public static class a {
protected static d qPH;
public static final void a(d dVar) {
qPH = dVar;
}
}
SpannableString g(CharSequence charSequence, int i);
boolean u(CharSequence charSequence);
boolean v(CharSequence charSequence);
}
|
[
"707194831@qq.com"
] |
707194831@qq.com
|
c767eb881bc69f4d5b9d52236b3ec49fe03279e9
|
745b525c360a2b15b8d73841b36c1e8d6cdc9b03
|
/jun_springboot_plugin/springboot_websocket_socketio/src/main/java/com/jun/plugin/websocket/socketio/payload/JoinRequest.java
|
46f63371e676dd66570d6086cedb9408c94bfa8d
|
[] |
no_license
|
wujun728/jun_java_plugin
|
1f3025204ef5da5ad74f8892adead7ee03f3fe4c
|
e031bc451c817c6d665707852308fc3b31f47cb2
|
refs/heads/master
| 2023-09-04T08:23:52.095971
| 2023-08-18T06:54:29
| 2023-08-18T06:54:29
| 62,047,478
| 117
| 42
| null | 2023-08-21T16:02:15
| 2016-06-27T10:23:58
|
Java
|
UTF-8
|
Java
| false
| false
| 496
|
java
|
package com.jun.plugin.websocket.socketio.payload;
import lombok.Data;
/**
* <p>
* 加群载荷
* </p>
*
* @package: com.xkcoding.websocket.socketio.payload
* @description: 加群载荷
* @author: yangkai.shen
* @date: Created in 2018-12-19 13:36
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
*/
@Data
public class JoinRequest {
/**
* 用户id
*/
private String userId;
/**
* 群名称
*/
private String groupId;
}
|
[
"wujun728@163.com"
] |
wujun728@163.com
|
ca82b06f64be74a6cf1188ec0f9cf8b0fcdd2d50
|
044fa73ee3106fe81f6414fa33dd2f8d44c8457e
|
/rta-api/rta-core/src/main/java/org/rta/core/service/bill/impl/BillServiceImpl.java
|
03955601dbae9ad6fe5e6eaf50d43aa40d94e95e
|
[] |
no_license
|
VinayAddank/webservices
|
6ec87de5b90d28c6511294de644b7579219473ca
|
882ba250a7bbe9c7112aa6e2dc1a34640731bfb8
|
refs/heads/master
| 2021-01-25T11:34:25.534538
| 2018-03-01T09:18:26
| 2018-03-01T09:18:26
| 123,411,464
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 306
|
java
|
package org.rta.core.service.bill.impl;
import org.rta.core.model.vehicle.BillingDetailsModel;
import org.rta.core.service.bill.BillService;
public class BillServiceImpl implements BillService {
@Override
public Long save(BillingDetailsModel billModel) {
return null;
}
}
|
[
"vinay.addanki540@gmail.com"
] |
vinay.addanki540@gmail.com
|
ae327896bb4686d5dfebf9f6d5b83a67b49e32c9
|
a4d8c26ae319bbf176d5356b26192dc20314550a
|
/src/main/java/com/cn/leedane/controller/FinancialTwoCategoryController.java
|
298098a73c8d90281c1191edfdae107a71dd07d2
|
[] |
no_license
|
sengeiou/leedaneSpringBoot
|
419e51686ec52e504ebc3a0677ecfec40b69ba2a
|
7e85b93969a79e06d6e8ad78fab6f313021833dd
|
refs/heads/master
| 2023-01-23T02:10:21.351012
| 2020-05-28T11:38:22
| 2020-05-28T11:38:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,544
|
java
|
package com.cn.leedane.controller;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.cn.leedane.model.FinancialTwoLevelCategoryBean;
import com.cn.leedane.service.FinancialTwoCategoryService;
import com.cn.leedane.utils.ControllerBaseNameUtil;
import com.cn.leedane.utils.ResponseMap;
/**
* 记账二级分类控制器
* @author LeeDane
* 2016年12月8日 下午11:23:10
* Version 1.0
*/
@RestController
@RequestMapping(value = ControllerBaseNameUtil.fnc)
public class FinancialTwoCategoryController extends BaseController{
@Autowired
private FinancialTwoCategoryService<FinancialTwoLevelCategoryBean> financialTwoCategoryService;
/**
* 获取二级分类的
* @return
*/
@RequestMapping(value = "/twos", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
public Map<String, Object> getAll(Model model, HttpServletRequest request) {
ResponseMap message = new ResponseMap();
if(!checkParams(message, request))
return message.getMap();
checkRoleOrPermission(model, request);;
message.putAll(financialTwoCategoryService.getAll(getJsonFromMessage(message), getUserFromMessage(message), getHttpRequestInfo(request)));
return message.getMap();
}
}
|
[
"825711424@qq.com"
] |
825711424@qq.com
|
d84759da68b292337bac3eba76ae5096b13b226a
|
7f261a1e2bafd1cdd98d58f00a2937303c0dc942
|
/src/ANXCamera/sources/com/android/camera/CameraSize.java
|
fedf6ea8b12af25edbf78e73182a489a0d362629
|
[] |
no_license
|
xyzuan/ANXCamera
|
7614ddcb4bcacdf972d67c2ba17702a8e9795c95
|
b9805e5197258e7b980e76a97f7f16de3a4f951a
|
refs/heads/master
| 2022-04-23T16:58:09.592633
| 2019-05-31T17:18:34
| 2019-05-31T17:26:48
| 259,555,505
| 3
| 0
| null | 2020-04-28T06:49:57
| 2020-04-28T06:49:57
| null |
UTF-8
|
Java
| false
| false
| 2,193
|
java
|
package com.android.camera;
import android.support.annotation.NonNull;
import android.util.Size;
public class CameraSize implements Comparable<CameraSize> {
public int height;
public int width;
public CameraSize() {
}
public CameraSize(int i, int i2) {
this.width = i;
this.height = i2;
}
public CameraSize(Size size) {
this.width = size.getWidth();
this.height = size.getHeight();
}
public static CameraSize copyFrom(Size size) {
return new CameraSize(size.getWidth(), size.getHeight());
}
public int area() {
if (isEmpty()) {
return 0;
}
return this.width * this.height;
}
public int compareTo(@NonNull CameraSize cameraSize) {
return (this.width * this.height) - (cameraSize.width * cameraSize.height);
}
public boolean equals(Object obj) {
boolean z = false;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (!(obj instanceof CameraSize)) {
return false;
}
CameraSize cameraSize = (CameraSize) obj;
if (this.width == cameraSize.width && this.height == cameraSize.height) {
z = true;
}
return z;
}
public int getHeight() {
return this.height;
}
public float getRatio() {
return ((float) this.width) / ((float) this.height);
}
public int getWidth() {
return this.width;
}
public int hashCode() {
return this.height ^ ((this.width << 16) | (this.width >>> 16));
}
public boolean isEmpty() {
return this.width * this.height <= 0;
}
public CameraSize parseSize(CameraSize cameraSize) {
this.width = cameraSize.width;
this.height = cameraSize.height;
return this;
}
public Size toSizeObject() {
return new Size(this.width, this.height);
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(this.width);
sb.append("x");
sb.append(this.height);
return sb.toString();
}
}
|
[
"sv.xeon@gmail.com"
] |
sv.xeon@gmail.com
|
0accfb75bcd03ecb6c602cad76c6dd62f7acf9a0
|
ab3b72de30ea81bc1d41cd4cd3fb80ba35ad879f
|
/starfish-mall/starfish-mall-bean/src/main/java/priv/starfish/mall/ecard/entity/ECard.java
|
e443ffa4f1f08d67d5a7e8d1d1021e1f9c7a140d
|
[] |
no_license
|
Jstarfish/starfish
|
f81f147d7a93432c6aa77e5d34eb7d12b4312b89
|
2c15e33c5d158d333d21f68b98cc161d2afa7cd3
|
refs/heads/master
| 2022-12-21T12:05:08.900276
| 2019-09-04T06:52:07
| 2019-09-04T06:52:07
| 126,459,466
| 0
| 1
| null | 2022-12-16T04:52:51
| 2018-03-23T09:01:56
|
Java
|
UTF-8
|
Java
| false
| false
| 4,212
|
java
|
package priv.starfish.mall.ecard.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Types;
import java.util.Date;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import priv.starfish.common.annotation.Column;
import priv.starfish.common.annotation.Id;
import priv.starfish.common.annotation.Table;
import priv.starfish.common.annotation.UniqueConstraint;
import priv.starfish.common.json.JsonNullDeserializer;
import priv.starfish.common.json.JsonShortDateTimeSerializer;
@Table(name = "ecard", uniqueConstraints = { @UniqueConstraint(fieldNames = { "name" }) }, desc = "e卡")
public class ECard implements Serializable {
private static final long serialVersionUID = 1L;
@Id(auto = false, type = Types.VARCHAR, length = 30, desc = "卡(类型)代码")
private String code;
@Column(nullable = false, type = Types.VARCHAR, length = 30, desc = "卡名称")
private String name;
@Column(nullable = false, type = Types.INTEGER, desc = "身份级别")
private int rank;
@Column(nullable = false, type = Types.DECIMAL, precision = 18, scale = 2, desc = "面值")
private BigDecimal faceVal;
@Column(nullable = false, type = Types.DECIMAL, precision = 18, scale = 2, desc = "价格(所需购买金额)")
private BigDecimal price;
@Column(type = Types.VARCHAR, length = 60, desc = "logo UUID")
private String logoUuid;
@Column(type = Types.VARCHAR, length = 30, desc = "image.logo \\ ecard")
private String logoUsage;
@Column(type = Types.VARCHAR, length = 250, desc = "相对图片地址")
private String logoPath;
@Column(nullable = false, type = Types.INTEGER, desc = "序号")
private int seqNo;
@Column(nullable = false, type = Types.BOOLEAN, defaultValue = "false", desc = "是否禁用")
private Boolean disabled;
@Column(nullable = false, type = Types.BOOLEAN, defaultValue = "false", desc = "删除标记")
private Boolean deleted;
@JsonSerialize(using = JsonShortDateTimeSerializer.class)
@JsonDeserialize(using = JsonNullDeserializer.class)
@Column(nullable = false, type = Types.TIMESTAMP, defaultValue = "CURRENT_TIMESTAMP", desc = "时间戳")
private Date ts;
private String fileBrowseUrl;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getRank() {
return rank;
}
public void setRank(int rank) {
this.rank = rank;
}
public BigDecimal getFaceVal() {
return faceVal;
}
public void setFaceVal(BigDecimal faceVal) {
this.faceVal = faceVal;
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public String getLogoUuid() {
return logoUuid;
}
public void setLogoUuid(String logoUuid) {
this.logoUuid = logoUuid;
}
public String getLogoUsage() {
return logoUsage;
}
public void setLogoUsage(String logoUsage) {
this.logoUsage = logoUsage;
}
public String getLogoPath() {
return logoPath;
}
public void setLogoPath(String logoPath) {
this.logoPath = logoPath;
}
public int getSeqNo() {
return seqNo;
}
public void setSeqNo(int seqNo) {
this.seqNo = seqNo;
}
public Boolean getDisabled() {
return disabled;
}
public void setDisabled(Boolean disabled) {
this.disabled = disabled;
}
public Boolean getDeleted() {
return deleted;
}
public void setDeleted(Boolean deleted) {
this.deleted = deleted;
}
public Date getTs() {
return ts;
}
public void setTs(Date ts) {
this.ts = ts;
}
public String getFileBrowseUrl() {
return fileBrowseUrl;
}
public void setFileBrowseUrl(String fileBrowseUrl) {
this.fileBrowseUrl = fileBrowseUrl;
}
@Override
public String toString() {
return "ECard [code=" + code + ", name=" + name + ", rank=" + rank + ", faceVal=" + faceVal + ", price=" + price + ", logoUuid=" + logoUuid + ", logoUsage=" + logoUsage + ", logoPath=" + logoPath + ", seqNo=" + seqNo + ", disabled="
+ disabled + ", deleted=" + deleted + ", ts=" + ts + ", fileBrowseUrl=" + fileBrowseUrl + "]";
}
}
|
[
"jstarfish@126.com"
] |
jstarfish@126.com
|
7e1c148c73d06bdfb52086bf4fa3432295375f72
|
62c373cf5d5eefa8e2909be59e61f8cd5cb31bcb
|
/pmml-evaluator/src/main/java/org/jpmml/evaluator/FunctionEvaluationContext.java
|
5b80703ecee291a7df60a02523d6bde199007213
|
[
"Apache-2.0"
] |
permissive
|
colmanzf/jpmml
|
ab2f29f6cd4a64826ce7ff15add8e4eadd103b97
|
c1d602ffcd44550c07bbbdf69b4b2fb9d1019af9
|
refs/heads/master
| 2021-01-18T12:18:07.758529
| 2013-07-30T18:40:14
| 2013-07-30T18:45:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 829
|
java
|
/*
* Copyright (c) 2013 University of Tartu
*/
package org.jpmml.evaluator;
import java.util.*;
import org.dmg.pmml.*;
public class FunctionEvaluationContext extends EvaluationContext {
private EvaluationContext parent = null;
public FunctionEvaluationContext(EvaluationContext parent, Map<FieldName, ?> arguments){
super(arguments);
setParent(parent);
}
@Override
public DerivedField resolveField(FieldName name){
// "The function body must not refer to fields other than the parameter fields"
return null;
}
@Override
public DefineFunction resolveFunction(String name){
EvaluationContext parent = getParent();
return parent.resolveFunction(name);
}
public EvaluationContext getParent(){
return this.parent;
}
private void setParent(EvaluationContext parent){
this.parent = parent;
}
}
|
[
"villu.ruusmann@gmail.com"
] |
villu.ruusmann@gmail.com
|
e76c2653d47c31bfb2d6f6384a1497b23fa917fb
|
f567c98cb401fc7f6ad2439cd80c9bcb45e84ce9
|
/src/main/java/com/alipay/api/response/AlipayDataDataserviceDmpserviceCreateResponse.java
|
89b136ffdcf4a578ee2d09ff25002b32103698e4
|
[
"Apache-2.0"
] |
permissive
|
XuYingJie-cmd/alipay-sdk-java-all
|
0887fa02f857dac538e6ea7a72d4d9279edbe0f3
|
dd18a679f7543a65f8eba2467afa0b88e8ae5446
|
refs/heads/master
| 2023-07-15T23:01:02.139231
| 2021-09-06T07:57:09
| 2021-09-06T07:57:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 903
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.data.dataservice.dmpservice.create response.
*
* @author auto create
* @since 1.0, 2020-01-14 10:12:55
*/
public class AlipayDataDataserviceDmpserviceCreateResponse extends AlipayResponse {
private static final long serialVersionUID = 5611616867644241385L;
/**
* 服务端的处理时间
*/
@ApiField("event_time")
private String eventTime;
/**
* 0: 提交成功
1: 提交失败
*/
@ApiField("status")
private Long status;
public void setEventTime(String eventTime) {
this.eventTime = eventTime;
}
public String getEventTime( ) {
return this.eventTime;
}
public void setStatus(Long status) {
this.status = status;
}
public Long getStatus( ) {
return this.status;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
10d5b2bba57432ea2d99675f8525e379f0f81ac9
|
0907c886f81331111e4e116ff0c274f47be71805
|
/sources/androidx/media2/exoplayer/external/drm/DefaultDrmSession$$Lambda$0.java
|
684a3e967af554d36f5a91571e3133d6423ac157
|
[
"MIT"
] |
permissive
|
Minionguyjpro/Ghostly-Skills
|
18756dcdf351032c9af31ec08fdbd02db8f3f991
|
d1a1fb2498aec461da09deb3ef8d98083542baaf
|
refs/heads/Android-OS
| 2022-07-27T19:58:16.442419
| 2022-04-15T07:49:53
| 2022-04-15T07:49:53
| 415,272,874
| 2
| 0
|
MIT
| 2021-12-21T10:23:50
| 2021-10-09T10:12:36
|
Java
|
UTF-8
|
Java
| false
| false
| 459
|
java
|
package androidx.media2.exoplayer.external.drm;
import androidx.media2.exoplayer.external.util.EventDispatcher;
final /* synthetic */ class DefaultDrmSession$$Lambda$0 implements EventDispatcher.Event {
static final EventDispatcher.Event $instance = new DefaultDrmSession$$Lambda$0();
private DefaultDrmSession$$Lambda$0() {
}
public void sendTo(Object obj) {
((DefaultDrmSessionEventListener) obj).onDrmSessionReleased();
}
}
|
[
"66115754+Minionguyjpro@users.noreply.github.com"
] |
66115754+Minionguyjpro@users.noreply.github.com
|
929db3fed6b931f81b87d3d06a889097794b0349
|
4bdc2db9778a62009326a7ed1bed2729c8ff56a9
|
/extension/interface/fabric3-interface-wsdl/src/main/java/org/fabric3/wsdl/contribution/impl/RelativeUrlResolver.java
|
db480429bdc58dcf2c88decc43f265bea44658b8
|
[] |
no_license
|
aaronanderson/fabric3-core
|
2a66038338ac3bb8ba1ae6291f39949cb93412b2
|
44773a3e636fcfdcd6dcd43b7fb5b442310abae5
|
refs/heads/master
| 2021-01-16T21:56:29.067390
| 2014-01-09T15:44:09
| 2014-01-14T06:26:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,738
|
java
|
/*
* Fabric3
* Copyright (c) 2009-2013 Metaform Systems
*
* Fabric3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version, with the
* following exception:
*
* Linking this software statically or dynamically with other
* modules is making a combined work based on this software.
* Thus, the terms and conditions of the GNU General Public
* License cover the whole combination.
*
* As a special exception, the copyright holders of this software
* give you permission to link this software with independent
* modules to produce an executable, regardless of the license
* terms of these independent modules, and to copy and distribute
* the resulting executable under terms of your choice, provided
* that you also meet, for each linked independent module, the
* terms and conditions of the license of that module. An
* independent module is a module which is not derived from or
* based on this software. If you modify this software, you may
* extend this exception to your version of the software, but
* you are not obligated to do so. If you do not wish to do so,
* delete this exception statement from your version.
*
* Fabric3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the
* GNU General Public License along with Fabric3.
* If not, see <http://www.gnu.org/licenses/>.
*/
package org.fabric3.wsdl.contribution.impl;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.net.URI;
import java.net.URL;
import java.util.ListIterator;
import java.util.Stack;
import java.util.UUID;
import org.apache.ws.commons.schema.XmlSchemaCollection;
import org.apache.ws.commons.schema.resolver.URIResolver;
import org.xml.sax.InputSource;
import org.fabric3.api.host.util.IOHelper;
/**
* Returns an <code>InputSource</code> for an imported schema. Resolution is done by interpreting the <code>schemaLocation</code> attribute to be
* relative to the base URL if the importing document.
* <p/>
* This implementation introduces a number of hacks to work around the default behavior of Apache XmlSchema. First, the base URI used by XmlSchema is
* fixed as the URL of the original document. If an imported schema located in a different directory imports another schema that is specified using a
* relative location, the default behavior of XmlSchema is to resolve the second schema against the base WSDL location, which is incorrect.
* <p/>
* This resolver changes that behavior by resolving schemas relative to their importing document. This is done by traversing the stack of importing
* documents and building the schema URL relative to the location of those documents.
*/
public class RelativeUrlResolver implements URIResolver {
private static Field schemaKeyIdField;
private URIResolver next;
private XmlSchemaCollection collection;
private Field stackField;
public RelativeUrlResolver(XmlSchemaCollection collection, URIResolver next) {
this.collection = collection;
this.next = next;
try {
this.stackField = XmlSchemaCollection.class.getDeclaredField("stack");
this.stackField.setAccessible(true);
} catch (NoSuchFieldException e) {
throw new AssertionError(e);
}
}
public InputSource resolveEntity(String targetNamespace, String schemaLocation, String baseUri) {
String base = getBase(baseUri);
try {
URL url = new URL(new URL(base), schemaLocation);
InputStream stream = null;
try {
stream = url.openStream();
if (stream != null) {
return (createSource(url));
}
} catch (IOException e) {
// file not found
return next.resolveEntity(targetNamespace, schemaLocation, baseUri);
} finally {
IOHelper.closeQuietly(stream);
}
} catch (IOException e) {
e.printStackTrace(); // should not happen
}
return next.resolveEntity(targetNamespace, schemaLocation, baseUri);
}
/**
* Returns the base URL for an imported schema by transitively resolving the chain of imports (one imported document importing another).
*
* @param baseUri the base importing document URL
* @return the base URL
*/
private String getBase(String baseUri) {
int pos = baseUri.indexOf("#");
String base = baseUri;
if (pos > 0) {
base = baseUri.substring(0, pos);
}
Stack stack = getStack();
URI uri = URI.create(base);
if (!stack.isEmpty()) {
int index = stack.size() - 1;
ListIterator iterator = stack.listIterator(stack.size());
while (iterator.hasPrevious()) {
if (index == 0) {
break;
}
Object key = iterator.previous();
uri = buildUri(base, key);
index--;
}
}
if (uri != null) {
return uri.toString();
}
return base;
}
/**
* Resolves a URI against a base, taking special care of the JAR scheme (URL.resolve() has trouble with it).
*
* @param base the base URI
* @param key the schema key, used to obtain the relative URL of the schema
* @return the resolved URI
*/
private URI buildUri(String base, Object key) {
String current = getSystemId(key);
current = current.substring(0, current.indexOf("#"));
String schemeBase = URI.create(base).getSchemeSpecificPart();
String relativeScheme = URI.create(current).getSchemeSpecificPart();
return URI.create("jar:" + URI.create(schemeBase).resolve(relativeScheme).toString());
}
/**
* Hack to get access the the systemId (relative URL) of a schema. XmlSchema does not provide public access to the field.
*
* @param key the schema key
* @return the system id
*/
private String getSystemId(Object key) {
try {
if (schemaKeyIdField == null) {
schemaKeyIdField = key.getClass().getDeclaredField("systemId");
schemaKeyIdField.setAccessible(true);
}
return (String) schemaKeyIdField.get(key);
} catch (NoSuchFieldException e) {
throw new AssertionError(e);
} catch (IllegalAccessException e) {
throw new AssertionError(e);
}
}
private InputSource createSource(URL url) {
try {
InputSource source = new InputSource(url.openStream());
// encode the system ID to work around an XmlSchema bug where an exception is thrown if a document is imported more than once when
// transitively resolving imports.
source.setSystemId(url.toString() + "#" + UUID.randomUUID().toString());
return source;
} catch (IOException e) {
throw new AssertionError(e);
}
}
/**
* Returns the stack of transitive imports.
*
* @return the stack
*/
private Stack getStack() {
try {
return (Stack) stackField.get(collection);
} catch (IllegalAccessException e) {
throw new AssertionError(e);
}
}
}
|
[
"jim.marino@gmail.com"
] |
jim.marino@gmail.com
|
bd8408df359549f635479aabf93f685b90bca93b
|
3180c5a659d5bfdbf42ab07dfcc64667f738f9b3
|
/src/unk/com/zing/zalo/a/aa.java
|
41b1161186a9fb546349e7afae4418a3a54188d6
|
[] |
no_license
|
tinyx3k/ZaloRE
|
4b4118c789310baebaa060fc8aa68131e4786ffb
|
fc8d2f7117a95aea98a68ad8d5009d74e977d107
|
refs/heads/master
| 2023-05-03T16:21:53.296959
| 2013-05-18T14:08:34
| 2013-05-18T14:08:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 983
|
java
|
package unk.com.zing.zalo.a;
import android.content.Intent;
import android.net.Uri;
import android.view.View;
import android.view.View.OnClickListener;
import com.zing.zalo.control.k;
import com.zing.zalo.ui.ChatActivity;
class aa
implements View.OnClickListener
{
aa(m paramm, k paramk)
{
}
public void onClick(View paramView)
{
try
{
if (this.nw != null)
{
Intent localIntent = new Intent("android.intent.action.VIEW");
if (this.nw.xC != null)
{
Uri localUri = Uri.parse(this.nw.xC);
if (localUri != null)
{
localIntent.setData(localUri);
this.ns.np.startActivity(localIntent);
}
}
}
return;
}
catch (Exception localException)
{
localException.printStackTrace();
}
}
}
/* Location: /home/danghvu/0day/Zalo/Zalo_1.0.8_dex2jar.jar
* Qualified Name: com.zing.zalo.a.aa
* JD-Core Version: 0.6.2
*/
|
[
"danghvu@gmail.com"
] |
danghvu@gmail.com
|
a46a34221c61a4eed1504580a0fd21fd3c5e49d2
|
1261d2ddffdf5706ac3dac75c51e122e06f2dd4a
|
/0630haksaChart/src/main/java/com/example/mapper/StuMapper.java
|
b5bfd183e68b3b279bca0c3da700d36dd4e6ae41
|
[] |
no_license
|
blinggg/spring_git
|
2aa00a141b50886c5bbd873a97010d465dab2158
|
9aa6f45ed0f88174df42d32c43303d4e79677f12
|
refs/heads/master
| 2022-12-09T17:53:08.867989
| 2020-09-04T09:00:05
| 2020-09-04T09:00:05
| 292,800,517
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 465
|
java
|
package com.example.mapper;
import java.util.List;
import com.example.domain.Criteria;
import com.example.domain.EnrollVO;
import com.example.domain.StuVO;
public interface StuMapper {
public List<StuVO> list(Criteria cri);
public StuVO read(String scode);
public void update(StuVO vo);
public void delete(String scode);
public int totalCount();
public int enrollCount(String scode);
public List<EnrollVO> listEnroll(String scode);
}
|
[
"amorpatis2@naver.com"
] |
amorpatis2@naver.com
|
a0f819f6b7c81ad69bfcf31c83ecf6b24b489639
|
88ec0f806483eb070d20102c4c8fd2c813a249b5
|
/src/com/zj/bigdefine/GlobalParam.java
|
726b9036a93ce1445c3a8dc5877935ae29d65458
|
[] |
no_license
|
zhujiancom/fashionwebpro
|
83cb4df9dff58a232f28006523d168db5137df4f
|
e0c4570bcc3e7df59b9fdb7f9450a619a4d46515
|
refs/heads/master
| 2021-01-19T14:33:29.910578
| 2013-11-12T23:43:43
| 2013-11-12T23:43:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,734
|
java
|
package com.zj.bigdefine;
public class GlobalParam {
public static final String LOGIN_USER_SESSION = "login_user_session";
public static final String LOGIN_ACCOUNT_SESSION = "login_account_session";
public static final String LOGIN_USER_MODULE_PRIV = "moduleList";
public static final String BASE_AUTH_TOKEN = "auth_token";
public static final String BASE_AUTOLOGIN_COOKIE = "authlogin_cookie";
public static final String FRONTEND_REQUEST_LANG = "FRONTEND_REQUEST_LANG";
public static final int ONLINE_STATUS = 1;
public static final String ONLINE_DESC = "在线";
public static final int OFFLINE_STATUS = 0;
public static final String OFFLINE_DESC = "离线";
public static final String ISENABLE = "isEnable";
public static final int ENABLE = 1;
public static final String ENABLE_DESC_CH = "可用";
public static final String ENABLE_DESC_EN = "Enable";
public static final int DISABLE = 0;
public static final String DISABLE_DESC_CH = "不可用";
public static final String DISABLE_DESC_EN = "Disable";
//存储过程参数形式,是输入还是输出
public static final String INPARAM = "IN";
public static final String OUTPARAM = "OUT";
//新增 or 更新操作标志 actionFlag
public static final int INSERT = 1;
public static final int UPDATE = 2;
public static final int YES = 1;
public static final int NO = 0;
public static final String CATALOG_DB = "fashion";
public static final String COMM_SEQ = "COMM_SEQ";
public static final String JSONTYPE_DEFAULT = "default";
public static final String JSONTYPE_ID = "id";
public static final String JSONTYPE_COLLECTION = "collection";
public static final String JSONTYPE_REFERENCE = "reference";
}
|
[
"eric87com@gmail.com"
] |
eric87com@gmail.com
|
992dd117ec2fd17c781dfc4be2c001281f15804f
|
a770d4843f534f5bf7e55890311d827ccd8e8950
|
/src/main/java/com/hyva/restopos/rest/pojo/PaymentVoucherPojo.java
|
60c89c5fb5fb1baaa94d3051cc64a6cf7c2c4d9f
|
[] |
no_license
|
ksourav796/RestoposLite
|
983417486657f4985684ce08362504fad1972ec6
|
27c3838a04e0a18abb984d838de20bf6aab28a03
|
refs/heads/main
| 2023-01-06T01:31:14.360597
| 2020-10-30T16:48:16
| 2020-10-30T16:48:16
| 308,689,515
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,329
|
java
|
package com.hyva.restopos.rest.pojo;
import lombok.Data;
import javax.persistence.Temporal;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class PaymentVoucherPojo {
private Long vouId;
private String vocherCode;
private String fromDate;
private String toDate;
private String status;
private String defaultVoucher;
private String discountType;
private String discountAmount;
private String minBill;
private String maxDiscount;
private String noOfTimesValid;
public Long getVouId() {
return vouId;
}
public void setVouId(Long vouId) {
this.vouId = vouId;
}
public String getVocherCode() {
return vocherCode;
}
public void setVocherCode(String vocherCode) {
this.vocherCode = vocherCode;
}
public String getFromDate() {
return fromDate;
}
public void setFromDate(String fromDate) {
this.fromDate = fromDate;
}
public String getToDate() {
return toDate;
}
public void setToDate(String toDate) {
this.toDate = toDate;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getDefaultVoucher() {
return defaultVoucher;
}
public void setDefaultVoucher(String defaultVoucher) {
this.defaultVoucher = defaultVoucher;
}
public String getDiscountType() {
return discountType;
}
public void setDiscountType(String discountType) {
this.discountType = discountType;
}
public String getDiscountAmount() {
return discountAmount;
}
public void setDiscountAmount(String discountAmount) {
this.discountAmount = discountAmount;
}
public String getMinBill() {
return minBill;
}
public void setMinBill(String minBill) {
this.minBill = minBill;
}
public String getMaxDiscount() {
return maxDiscount;
}
public void setMaxDiscount(String maxDiscount) {
this.maxDiscount = maxDiscount;
}
public String getNoOfTimesValid() {
return noOfTimesValid;
}
public void setNoOfTimesValid(String noOfTimesValid) {
this.noOfTimesValid = noOfTimesValid;
}
}
|
[
"ksourav796.sk@gmail.com"
] |
ksourav796.sk@gmail.com
|
b561869e769bef4d2c797fa9be0fa67cfa6f5bab
|
667b169912840feb29954ca4c24526553aeaa906
|
/testsuites/jsf2/src/test/java/org/jboss/portletbridge/test/component/h/commandButton/CommandButtonPage.java
|
609d0ccb6e72a4d9d8f14ab53d8865f66af04003
|
[] |
no_license
|
ppalaga/portletbridge
|
8f074bfc46c39c9ad8789a94c82bd38b416e6935
|
ef01fa82f46ed4eff91702dcfd54cbcbc4e94621
|
refs/heads/master
| 2021-01-18T06:36:28.441861
| 2013-04-16T20:10:06
| 2013-04-16T20:10:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,217
|
java
|
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* 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.jboss.portletbridge.test.component.h.commandButton;
import org.jboss.arquillian.graphene.enricher.findby.FindBy;
import org.openqa.selenium.WebElement;
/**
* @author <a href="http://community.jboss.org/people/kenfinni">Ken Finnigan</a>
*/
public class CommandButtonPage {
@FindBy(jquery = "[id$=':submit']")
private WebElement submitButton;
@FindBy(jquery = "[id$=':reset']")
private WebElement resetButton;
@FindBy(jquery = "[id$=':ajax']")
private WebElement ajaxButton;
@FindBy(jquery = "[id$=':alert']")
private WebElement alertButton;
@FindBy(jquery = "[id$=':output']")
private WebElement outputText;
@FindBy(jquery = "[id$=':input']")
private WebElement inputText;
public WebElement getSubmitButton() {
return submitButton;
}
public WebElement getResetButton() {
return resetButton;
}
public WebElement getAjaxButton() {
return ajaxButton;
}
public WebElement getAlertButton() {
return alertButton;
}
public WebElement getOutputText() {
return outputText;
}
public WebElement getInputText() {
return inputText;
}
}
|
[
"ken@kenfinnigan.me"
] |
ken@kenfinnigan.me
|
86dd5281b6d3cb674ac9ed2043ffe14c867ca93e
|
3204a2d9ce419e761df72182526f9caf7b7a8f0e
|
/src/test/java/com/lykke/tests/e2e/CucumberTest.java
|
684b8fba43c1592247d53c3245cdcf07bd302414
|
[
"MIT"
] |
permissive
|
OpenMAVN/MAVN.Service.Tests
|
e20b71d3352c658f4a80be1a287fd57d127ad897
|
e972731ccc697f5922e41fc7cf4e882e1e480741
|
refs/heads/master
| 2021-04-23T22:02:22.863785
| 2020-03-26T13:06:05
| 2020-03-26T13:06:05
| 250,015,230
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 901
|
java
|
package com.lykke.tests.e2e;
import cucumber.api.CucumberOptions;
//import cucumber.api.junit.jupiter.CucumberExtension;
//import io.cucumber.core.options.*;
//import io.cucumber.junit.*;
//import io.cucumber.java.*;
//import io.cucumber.junit.*;
//import cucumber.api.junit.Cucumber;
//import io.cucumber.junit.Cucumber.*;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.junit.jupiter.api.DynamicTest;
import org.junit.jupiter.api.TestFactory;
import org.junit.jupiter.api.extension.ExtendWith;
@CucumberOptions(plugin = {"pretty"})
//@ExtendWith(CucumberExtension.class)
//@ExtendWith(CucumberExtension .class)
public class CucumberTest {
@TestFactory
public Stream<DynamicTest> runTests(Stream<DynamicTest> scenarios) {
List<DynamicTest> tests = scenarios.collect(Collectors.toList());
return tests.stream();
}
}
|
[
"mail@glushkov.us"
] |
mail@glushkov.us
|
aa8d55cf584881627f974abfbd183c82e6b3ef10
|
69bad400820111d618c9f58adb5a24a9052b8a94
|
/buildinggame/buildinggame-impl/src/main/java/com/gmail/stefvanschiedev/buildinggame/utils/guis/ArenaSelection.java
|
be77d99a72db8232244530f4cfb1191130417628
|
[
"Unlicense"
] |
permissive
|
stefvanschie/buildinggame
|
3e2c4e899b15acbe1ae7a17fb03ff1b57b64e9d9
|
319723a47278cff67816a50abdb4ad288a2a8294
|
refs/heads/master
| 2023-08-03T13:49:26.318196
| 2023-07-24T03:03:34
| 2023-07-26T18:18:15
| 36,075,671
| 13
| 28
|
Unlicense
| 2023-08-28T03:39:47
| 2015-05-22T14:10:19
|
Java
|
UTF-8
|
Java
| false
| false
| 1,737
|
java
|
package com.gmail.stefvanschiedev.buildinggame.utils.guis;
import com.github.stefvanschie.inventoryframework.gui.GuiItem;
import com.github.stefvanschie.inventoryframework.gui.type.ChestGui;
import com.github.stefvanschie.inventoryframework.pane.OutlinePane;
import com.gmail.stefvanschiedev.buildinggame.Main;
import com.gmail.stefvanschiedev.buildinggame.utils.arena.Arena;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.HumanEntity;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import com.gmail.stefvanschiedev.buildinggame.managers.arenas.ArenaManager;
import org.bukkit.inventory.meta.ItemMeta;
import org.jetbrains.annotations.NotNull;
/**
* An menu to choose an open arena
*
* @since 4.0.4
*/
public class ArenaSelection extends ChestGui {
/**
* Constructs a new ArenaSelection
*/
public ArenaSelection() {
super(6, ChatColor.GREEN + "Select an arena");
}
/**
* {@inheritDoc}
*
* @since 5.6.0
*/
@Override
public void show(@NotNull HumanEntity humanEntity) {
var outlinePane = new OutlinePane(0, 0, 9, 6);
for (Arena arena : ArenaManager.getInstance().getArenas()) {
if (!arena.canJoin()) {
continue;
}
var item = new ItemStack(Material.LIME_WOOL);
ItemMeta itemMeta = item.getItemMeta();
itemMeta.setDisplayName(ChatColor.GREEN + arena.getName());
item.setItemMeta(itemMeta);
outlinePane.addItem(new GuiItem(item, event -> {
arena.join((Player) humanEntity);
event.setCancelled(true);
}));
}
addPane(outlinePane);
super.show(humanEntity);
}
}
|
[
"stefvanschiedev@gmail.com"
] |
stefvanschiedev@gmail.com
|
8cbacbacce4f1ccea587a0e5c91f9978341b1acf
|
b522d8db178621ab6ca8b230f4dee9ce1cfbd333
|
/kerby-kerb/kerb-crypto/src/main/java/org/apache/kerby/kerberos/kerb/crypto/cksum/CmacCamellia256CheckSum.java
|
a30c15c9508e388a4f1e1d9ca0c8c7521615bc8f
|
[
"Apache-2.0"
] |
permissive
|
HazelChen/directory-kerby
|
491ff75d3e2281ae0096c5b9cd53684548471687
|
1ca0d98e962825ffd53b3a83019c924673d9b557
|
refs/heads/master
| 2021-01-17T21:34:31.337558
| 2015-03-19T06:13:57
| 2015-03-19T06:13:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,674
|
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.kerby.kerberos.kerb.crypto.cksum;
import org.apache.kerby.kerberos.kerb.crypto.enc.provider.Camellia256Provider;
import org.apache.kerby.kerberos.kerb.crypto.key.CamelliaKeyMaker;
import org.apache.kerby.kerberos.kerb.spec.common.CheckSumType;
public class CmacCamellia256CheckSum extends CmacKcCheckSum {
public CmacCamellia256CheckSum() {
super(new Camellia256Provider(), 16, 16);
keyMaker(new CamelliaKeyMaker((Camellia256Provider) encProvider()));
}
public int confounderSize() {
return 16;
}
public CheckSumType cksumType() {
return CheckSumType.CMAC_CAMELLIA256;
}
public boolean isSafe() {
return true;
}
public int cksumSize() {
return 16; // bytes
}
public int keySize() {
return 16; // bytes
}
}
|
[
"drankye@gmail.com"
] |
drankye@gmail.com
|
53c3e25b4e17bdbea8d61461a999e79ac6ed069a
|
58df55b0daff8c1892c00369f02bf4bf41804576
|
/src/alq.java
|
e103992342d89e5c8829f52cc2f46bec20a18a37
|
[] |
no_license
|
gafesinremedio/com.google.android.gm
|
0b0689f869a2a1161535b19c77b4b520af295174
|
278118754ea2a262fd3b5960ef9780c658b1ce7b
|
refs/heads/master
| 2020-05-04T15:52:52.660697
| 2016-07-21T03:39:17
| 2016-07-21T03:39:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 795
|
java
|
public final class alq
{
public int a = 0;
public int b = 0;
public int c = Integer.MIN_VALUE;
public int d = Integer.MIN_VALUE;
public int e = 0;
public int f = 0;
public boolean g = false;
public boolean h = false;
public final void a(int paramInt1, int paramInt2)
{
c = paramInt1;
d = paramInt2;
h = true;
if (g)
{
if (paramInt2 != Integer.MIN_VALUE) {
a = paramInt2;
}
if (paramInt1 != Integer.MIN_VALUE) {
b = paramInt1;
}
}
do
{
return;
if (paramInt1 != Integer.MIN_VALUE) {
a = paramInt1;
}
} while (paramInt2 == Integer.MIN_VALUE);
b = paramInt2;
}
}
/* Location:
* Qualified Name: alq
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
429eecf29a8d2376701230e9e721763a57edbb18
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/neo4j/2017/12/PrimitiveLongPeekingIteratorTest.java
|
d78b983e8e9837afb0ad856e5c751f555df77181
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 2,266
|
java
|
/*
* Copyright (c) 2002-2017 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.collection.primitive;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class PrimitiveLongPeekingIteratorTest
{
@Test
public void shouldDetectMultipleValues()
{
// GIVEN
long[] values = new long[] { 1, 2, 3 };
PrimitiveLongIterator actual = PrimitiveLongCollections.iterator( values );
PrimitiveLongPeekingIterator peekingIterator = new PrimitiveLongPeekingIterator( actual );
// THEN
assertTrue( peekingIterator.hasMultipleValues() );
for ( long value : values )
{
assertEquals( value, peekingIterator.next() );
}
assertFalse( peekingIterator.hasNext() );
assertTrue( peekingIterator.hasMultipleValues() );
}
@Test
public void shouldDetectSingleValue()
{
// GIVEN
long[] values = new long[] { 1 };
PrimitiveLongIterator actual = PrimitiveLongCollections.iterator( values );
PrimitiveLongPeekingIterator peekingIterator = new PrimitiveLongPeekingIterator( actual );
// THEN
assertFalse( peekingIterator.hasMultipleValues() );
for ( long value : values )
{
assertEquals( value, peekingIterator.next() );
}
assertFalse( peekingIterator.hasNext() );
assertFalse( peekingIterator.hasMultipleValues() );
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
9a2e709418c889dd6831b23c76dab9fb32ebf407
|
af846ab7ffc148cd3207f3e65cfb2dde6d92c767
|
/sparrow-tools/sparrow-tools-data/src/main/java/com/sparrow/data/service/imports/data/ImportResult.java
|
323beda5208219d5818e5c1caefbe3d07f83b9c2
|
[
"Apache-2.0"
] |
permissive
|
aniu2002/myself-toolkit
|
aaf5f71948bb45d331b206d806de85c84bafadcc
|
aea640b4339ea24d7bfd32311f093560573635d3
|
refs/heads/master
| 2022-12-24T20:25:43.702167
| 2019-03-11T14:42:14
| 2019-03-11T14:42:14
| 99,811,298
| 1
| 0
|
Apache-2.0
| 2022-12-12T21:42:45
| 2017-08-09T13:26:46
|
Java
|
UTF-8
|
Java
| false
| false
| 1,649
|
java
|
package com.sparrow.data.service.imports.data;
/**
*
* 批量导入的处理结果
*
* @author YZC
* @version 1.0 (2014-3-31)
* @modify
*/
public class ImportResult {
public static final ImportResult SUCCESS = new ImportResult("success", true);
public static final ImportResult FAILURED = new ImportResult("failured",
false);
/** 导入名称 */
private String name;
/** 导入的处理结果,可能是validateError的list 或者是 一个写入错误记录的CSV文件 */
private Object result;
/** 导入成功记录数 */
private int successNum;
/** 校验失败的记录数 */
private int failureNum;
/** 导入总记录数 */
private int totalRecords;
/** 本次处理是否都成功 */
private boolean ok;
public ImportResult() {
}
public ImportResult(String name, boolean ok) {
this.name = name;
this.ok = ok;
}
public boolean isOk() {
return ok;
}
public void setOk(boolean ok) {
this.ok = ok;
}
public int getTotalRecords() {
return totalRecords;
}
public void setTotalRecords(int totalRecords) {
this.totalRecords = totalRecords;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Object getResult() {
return result;
}
public void setResult(Object result) {
this.result = result;
}
public int getSuccessNum() {
return successNum;
}
public void setSuccessNum(int successNum) {
this.successNum = successNum;
}
public int getFailureNum() {
return failureNum;
}
public void setFailureNum(int failureNum) {
this.failureNum = failureNum;
}
public void clear() {
this.result = null;
}
}
|
[
"yuanzhengchu2002@163.com"
] |
yuanzhengchu2002@163.com
|
1c0297565b4f1f57d7936537ebe494a366cb6c2d
|
16bacd6ef5d524c9c0fe99f32f2d2403d43b3aec
|
/instrument-simulator/instrument-simulator-base-api/src/main/java/com/shulie/instrument/simulator/api/LoadMode.java
|
6ff50b30bbe0f49832d9206119d21ddc4eebf43a
|
[
"Apache-2.0"
] |
permissive
|
shulieTech/LinkAgent
|
cbcc9717d07ea636e791ebafe84aced9b03730e8
|
73fb7cd6d86fdce5ad08f0623c367b407e405d76
|
refs/heads/main
| 2023-09-02T11:21:57.784204
| 2023-08-31T07:02:01
| 2023-08-31T07:02:01
| 362,708,051
| 156
| 112
|
Apache-2.0
| 2023-09-13T02:24:11
| 2021-04-29T06:05:47
|
Java
|
UTF-8
|
Java
| false
| false
| 865
|
java
|
/**
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: shulie@shulie.io
* 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,
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.shulie.instrument.simulator.api;
/**
* 加载方式
*
* @author xiaobin.zfb|xiaobin@shulie.io
* @since 2020/9/19 4:40 上午
*/
public interface LoadMode {
/**
* 通过agent方式加载
*/
int AGENT = 1;
/**
* 通过attach方式加载
*/
int ATTACH = 2;
}
|
[
"jirenhe@shulie.io"
] |
jirenhe@shulie.io
|
c2627fe222415a0ec10a3c486194d18446a75803
|
19f7e40c448029530d191a262e5215571382bf9f
|
/decompiled/instagram/sources/p000X/C42221rw.java
|
3808567593c2a78af7bc89a514358035686475f6
|
[] |
no_license
|
stanvanrooy/decompiled-instagram
|
c1fb553c52e98fd82784a3a8a17abab43b0f52eb
|
3091a40af7accf6c0a80b9dda608471d503c4d78
|
refs/heads/master
| 2022-12-07T22:31:43.155086
| 2020-08-26T03:42:04
| 2020-08-26T03:42:04
| 283,347,288
| 18
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 485
|
java
|
package p000X;
/* renamed from: X.1rw reason: invalid class name and case insensitive filesystem */
public final class C42221rw extends C12690hE {
public final /* synthetic */ C12030g4 A00;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C42221rw(C12030g4 r2) {
super("CriticalPathMainThreadIdleQueue");
this.A00 = r2;
}
public final boolean onQueueIdle() {
return this.A00.doNext();
}
}
|
[
"stan@rooy.works"
] |
stan@rooy.works
|
c49ce98dd3142a98c9521bc6b3c6599777859b69
|
0345fe20fe8a7933320d8756fddfe019dd23a1c6
|
/engine-api/src/main/java/io/nosqlbench/engine/api/activityapi/core/Activity.java
|
d424f022e5337e5623056222688c23099b05824f
|
[
"Apache-2.0"
] |
permissive
|
justinchuch/nosqlbench
|
4b206e786cf7b29a124147e45fa661a5e820baac
|
0e6cf4db1ab759f29d1744cf8516e215641a09e4
|
refs/heads/master
| 2023-04-07T17:18:16.521293
| 2020-05-01T17:54:48
| 2020-05-01T17:54:48
| 260,615,880
| 0
| 1
|
Apache-2.0
| 2023-03-29T18:12:34
| 2020-05-02T04:49:03
| null |
UTF-8
|
Java
| false
| false
| 6,865
|
java
|
/*
*
* Copyright 2016 jshook
* 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.nosqlbench.engine.api.activityapi.core;
import com.codahale.metrics.Timer;
import io.nosqlbench.engine.api.activityapi.cyclelog.filters.IntPredicateDispenser;
import io.nosqlbench.engine.api.activityapi.input.InputDispenser;
import io.nosqlbench.engine.api.activityapi.output.OutputDispenser;
import io.nosqlbench.engine.api.activityapi.ratelimits.RateLimiter;
import io.nosqlbench.engine.api.activityimpl.ActivityDef;
import io.nosqlbench.engine.api.activityimpl.ParameterMap;
import io.nosqlbench.engine.api.activityimpl.SimpleActivity;
import java.util.function.Supplier;
/**
* Provides the components needed to build and run an activity a runtime.
* The easiest way to build a useful Activity is to extend {@link SimpleActivity}.
*/
public interface Activity extends Comparable<Activity>, ActivityDefObserver {
/**
* Provide the activity with the controls needed to stop itself.
* @param activityController The dedicated control interface for this activity
*/
void setActivityController(ActivityController activityController);
ActivityController getActivityController();
/**
* Register an object which should be closed after this activity is shutdown.
*
* @param closeable An Autocloseable object
*/
void registerAutoCloseable(AutoCloseable closeable);
ActivityDef getActivityDef();
default String getAlias() {
return getActivityDef().getAlias();
}
default ParameterMap getParams() {
return getActivityDef().getParams();
}
default void initActivity() {
}
/**
* Close all autocloseables that have been registered with this Activity.
*/
void closeAutoCloseables();
MotorDispenser getMotorDispenserDelegate();
void setMotorDispenserDelegate(MotorDispenser motorDispenser);
InputDispenser getInputDispenserDelegate();
void setInputDispenserDelegate(InputDispenser inputDispenser);
ActionDispenser getActionDispenserDelegate();
void setActionDispenserDelegate(ActionDispenser actionDispenser);
IntPredicateDispenser getResultFilterDispenserDelegate();
void setResultFilterDispenserDelegate(IntPredicateDispenser resultFilterDispenser);
OutputDispenser getMarkerDispenserDelegate();
void setOutputDispenserDelegate(OutputDispenser outputDispenser);
RunState getRunState();
void setRunState(RunState runState);
default void shutdownActivity() {
}
default String getCycleSummary() {
return getActivityDef().getCycleSummary();
}
/**
* Get the current cycle rate limiter for this activity.
* The cycle rate limiter is used to throttle the rate at which
* cycles are dispatched across all threads in the activity
* @return the cycle {@link RateLimiter}
*/
RateLimiter getCycleLimiter();
/**
* Set the cycle rate limiter for this activity. This method should only
* be used in a non-concurrent context. Otherwise, the supplier version
* {@link #getCycleRateLimiter(Supplier)} should be used.
* @param rateLimiter The cycle {@link RateLimiter} for this activity
*/
void setCycleLimiter(RateLimiter rateLimiter);
/**
* Get or create the cycle rate limiter in a safe way. Implementations
* should ensure that this method is synchronized or that each requester
* gets the same cycle rate limiter for the activity.
* @param supplier A {@link RateLimiter} {@link Supplier}
* @return An extant or newly created cycle {@link RateLimiter}
*/
RateLimiter getCycleRateLimiter(Supplier<? extends RateLimiter> supplier);
/**
* Get the current stride rate limiter for this activity.
* The stride rate limiter is used to throttle the rate at which
* new strides are dispatched across all threads in an activity.
* @return The stride {@link RateLimiter}
*/
RateLimiter getStrideLimiter();
/**
* Set the stride rate limiter for this activity. This method should only
* be used in a non-concurrent context. Otherwise, the supplier version
* {@link #getStrideRateLimiter(Supplier)}} should be used.
* @param rateLimiter The stride {@link RateLimiter} for this activity.
*/
void setStrideLimiter(RateLimiter rateLimiter);
/**
* Get or create the stride {@link RateLimiter} in a concurrent-safe
* way. Implementations should ensure that this method is synchronized or
* that each requester gets the same stride rate limiter for the activity.
* @param supplier A {@link RateLimiter} {@link Supplier}
* @return An extant or newly created stride {@link RateLimiter}
*/
RateLimiter getStrideRateLimiter(Supplier<? extends RateLimiter> supplier);
/**
* Get the current phase rate limiter for this activity.
* The phase rate limiter is used to throttle the rate at which
* new phases are dispatched across all threads in an activity.
* @return The stride {@link RateLimiter}
*/
RateLimiter getPhaseLimiter();
Timer getResultTimer();
/**
* Set the phase rate limiter for this activity. This method should only
* be used in a non-concurrent context. Otherwise, the supplier version
* {@link #getPhaseRateLimiter(Supplier)}} should be used.
* @param rateLimiter The phase {@link RateLimiter} for this activity.
*/
void setPhaseLimiter(RateLimiter rateLimiter);
/**
* Get or create the phase {@link RateLimiter} in a concurrent-safe
* way. Implementations should ensure that this method is synchronized or
* that each requester gets the same phase rate limiter for the activity.
* @param supplier A {@link RateLimiter} {@link Supplier}
* @return An extant or newly created phase {@link RateLimiter}
*/
RateLimiter getPhaseRateLimiter(Supplier<? extends RateLimiter> supplier);
/**
* Get or create the instrumentation needed for this activity. This provides
* a single place to find and manage, and document instrumentation that is
* uniform across all activities.
*
* @return A new or existing instrumentation object for this activity.
*/
ActivityInstrumentation getInstrumentation();
}
|
[
"jshook@gmail.com"
] |
jshook@gmail.com
|
eb62280607ac9da2688e873f220dd38cb38a6196
|
a7045d8dbc4f4743a84a893940b230eec962b9df
|
/complete-android/app/src/main/java/intranet/client/network/SaveAnnouncementJsonStringListener.java
|
bd28c4baaa407cb679fb9adc6d0f9873e193463e
|
[] |
no_license
|
grails-guides/grails-android-security
|
cd91f961b302e7a21e480338a41e26a83a815519
|
81dc05f3fb4e3cb570e01a13a63485fae94468f8
|
refs/heads/master
| 2021-10-22T02:15:08.937246
| 2021-10-18T20:34:48
| 2021-10-18T20:34:48
| 79,829,608
| 0
| 0
| null | 2017-08-09T17:03:46
| 2017-01-23T17:34:33
|
Java
|
UTF-8
|
Java
| false
| false
| 259
|
java
|
package intranet.client.network;
public interface SaveAnnouncementJsonStringListener {
void onAnnouncementJsonStringSaveFailure();
void onAnnouncementJsonStringSaveSuccess(String json);
void onAnnouncementJsonStringSaveFailureUnauthorized();
}
|
[
"sergio.delamo@softamo.com"
] |
sergio.delamo@softamo.com
|
2cd1b18c00e5c98f8860cf64ab305b34c65828db
|
11c721abff1c38dbfcdc050dc11e9e62d7ed3662
|
/surefire-integration-tests/src/test/resources/fork-mode-resource-loading/src/test/java/forkMode/ResourceLoadTest.java
|
e2c3d51de8858775046734e560c395ee7fb97fa1
|
[
"Apache-2.0"
] |
permissive
|
DaGeRe/maven-surefire
|
4106549e59d8bd154ce0872726cc73a7585e8edb
|
45de58b12413df54d3dc7cd313f117930964504e
|
refs/heads/master
| 2022-03-09T15:41:34.644027
| 2017-10-11T15:29:09
| 2017-10-11T22:46:54
| 106,571,653
| 1
| 2
| null | 2017-10-11T15:20:17
| 2017-10-11T15:20:17
| null |
UTF-8
|
Java
| false
| false
| 1,625
|
java
|
package forkMode;
/*
* 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.
*/
import junit.framework.TestCase;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
public class ResourceLoadTest
extends TestCase
{
public void testGetResourceUrl() throws IOException {
final URL resource = this.getClass().getClassLoader().getResource( "myFile.txt" );
assertNotNull( resource );
}
public void testGetResource() throws IOException {
final InputStream resource = this.getClass().getClassLoader().getResourceAsStream( "myFile.txt" );
assertNotNull( resource );
}
public void testGetResourceThreadLoader() throws IOException {
final InputStream resource = Thread.currentThread().getContextClassLoader().getResourceAsStream( "myFile.txt" );
assertNotNull( resource );
}
}
|
[
"krosenvold@apache.org"
] |
krosenvold@apache.org
|
bdcc974675f6ced30a5bfcd567f5cf1e22baac04
|
1e81333b5b61ea6c6f7591c6c041eb5ded69f987
|
/src/main/java/za/co/yellowfire/threesixty/ui/DashboardPanelView.java
|
d6d338835dd745bc54a39130c0841528da046d8c
|
[] |
no_license
|
ooca-big/threesixty
|
176cb3a507bdd5d63d56d62423a3348e34422ef5
|
65cd82abd95702a6cdc65bfbbc5c623afcfd7a5f
|
refs/heads/master
| 2021-10-26T15:18:05.929418
| 2019-04-13T14:30:35
| 2019-04-13T14:30:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 232
|
java
|
package za.co.yellowfire.threesixty.ui;
import com.vaadin.navigator.View;
import com.vaadin.ui.Component;
public interface DashboardPanelView extends View {
void toggleMaximized(final Component panel, final boolean maximized);
}
|
[
"mp.ashworth@gmail.com"
] |
mp.ashworth@gmail.com
|
4986cec545bc6145b86fa256fdebfd2b49a09815
|
d00af6c547e629983ff777abe35fc9c36b3b2371
|
/jboss-all/testsuite/src/main/org/jboss/test/jbossmx/compliance/objectname/PatternTestCase.java
|
8387cae8eda0c956da715d8b3ce4a95e00c5bdb4
|
[] |
no_license
|
aosm/JBoss
|
e4afad3e0d6a50685a55a45209e99e7a92f974ea
|
75a042bd25dd995392f3dbc05ddf4bbf9bdc8cd7
|
refs/heads/master
| 2023-07-08T21:50:23.795023
| 2013-03-20T07:43:51
| 2013-03-20T07:43:51
| 8,898,416
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,680
|
java
|
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.objectname;
import org.jboss.test.jbossmx.compliance.TestCase;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
public class PatternTestCase
extends TestCase
{
public PatternTestCase(String s)
{
super(s);
}
public void testBasicDomainPattern()
{
String nameArg = "*:key1=val1,key2=val2";
ObjectName name = constructSafely(nameArg);
assertTrue("isPattern should be true", name.isPattern());
assertEquals("toString should be: '" + nameArg + "'", nameArg, name.toString());
assertTrue("isPropertyPattern should be false", !name.isPropertyPattern());
assertEquals("*", name.getDomain());
}
public void testBasicDomainPatternExtra()
{
String nameArg = "**:key1=val1,key2=val2";
ObjectName name = constructSafely(nameArg);
assertTrue("isPattern should be true", name.isPattern());
assertEquals("toString should be: '" + nameArg + "'", nameArg, name.toString());
assertTrue("isPropertyPattern should be false", !name.isPropertyPattern());
assertEquals("**", name.getDomain());
}
public void testPartialDomainPattern()
{
String nameArg = "*domain:key1=val1,key2=val2";
ObjectName name = constructSafely(nameArg);
assertTrue("isPattern should be true", name.isPattern());
assertEquals("toString should be: '" + nameArg + "'", nameArg, name.toString());
assertTrue("isPropertyPattern should be false", !name.isPropertyPattern());
assertEquals("*domain", name.getDomain());
}
public void testHarderPartialDomainPattern()
{
String nameArg = "d*n:key1=val1,key2=val2";
ObjectName name = constructSafely(nameArg);
assertTrue("isPattern should be true", name.isPattern());
assertEquals("toString should be: '" + nameArg + "'", nameArg, name.toString());
assertTrue("isPropertyPattern should be false", !name.isPropertyPattern());
assertEquals("d*n", name.getDomain());
}
public void testHarderPartialDomainPatternExtra()
{
String nameArg = "d**n:key1=val1,key2=val2";
ObjectName name = constructSafely(nameArg);
assertTrue("isPattern should be true", name.isPattern());
assertEquals("toString should be: '" + nameArg + "'", nameArg, name.toString());
assertTrue("isPropertyPattern should be false", !name.isPropertyPattern());
assertEquals("d**n", name.getDomain());
}
public void testPositionalDomainPattern()
{
String nameArg = "do??in:key1=val1,key2=val2";
ObjectName name = constructSafely(nameArg);
assertTrue("isPattern should be true", name.isPattern());
assertEquals("toString should be: '" + nameArg + "'", nameArg, name.toString());
assertTrue("isPropertyPattern should be false", !name.isPropertyPattern());
assertEquals("do??in", name.getDomain());
}
public void testPatternOnly()
{
String nameArg = "*:*";
ObjectName name = constructSafely(nameArg);
assertTrue("isPattern should be true", name.isPattern());
assertTrue("isPropertyPattern should be true", name.isPropertyPattern());
// The RI incorrectly (IMHO) removes the * from propertyPatterns
assertEquals("FAILS IN RI", nameArg, name.getCanonicalName());
}
public void testKeyPatternOnly()
{
String nameArg = "domain:*";
ObjectName name = constructSafely(nameArg);
assertTrue("isPattern should be true", name.isPattern());
assertTrue("isPropertyPattern should be true", name.isPropertyPattern());
// The RI incorrectly (IMHO) removes the * from propertyPatterns
assertEquals("FAILS IN RI", nameArg, name.getCanonicalName());
assertTrue("key properties hash should be zero size", 0 == name.getKeyPropertyList().size());
}
public void testPartialKeyPattern()
{
String nameArg = "domain:key2=val2,*,key1=val1";
ObjectName name = constructSafely(nameArg);
assertTrue("isPattern should be true", name.isPattern());
assertTrue("isPropertyPattern should be true", name.isPropertyPattern());
// The RI incorrectly (IMHO) removes the * from propertyPatterns
assertEquals("FAILS IN RI", "domain:key1=val1,key2=val2,*", name.getCanonicalName());
assertTrue("key properties hash should only have 2 elements", 2 == name.getKeyPropertyList().size());
}
public void testEquality_a()
{
ObjectName pat1 = constructSafely("domain:*,key=value");
ObjectName pat2 = constructSafely("domain:key=value,*");
assertEquals(pat1, pat2);
}
public void testEquality_b()
{
ObjectName pat1 = constructSafely("do**main:key=value,*");
ObjectName pat2 = constructSafely("do*main:key=value,*");
assertTrue(".equals() should return false", !pat1.equals(pat2));
}
/* FIXME THS - this test fails when run against the RI!
public void testEquality_c()
{
ObjectName conc = constructSafely("domain:key=value");
ObjectName pat = constructSafely("domain:key=value,*");
assertEquals("toString() should match", conc.toString(), pat.toString());
assertTrue("equals() should be false", !conc.equals(pat));
}
*/
private ObjectName constructSafely(String nameArg)
{
ObjectName name = null;
try
{
name = new ObjectName(nameArg);
}
catch (MalformedObjectNameException e)
{
fail("spurious MalformedObjectNameException on ('" + nameArg + "')");
}
return name;
}
}
|
[
"rasmus@dll.nu"
] |
rasmus@dll.nu
|
7a750a9bed9ccd121e3b0755dcd2de1085e10dd6
|
84ef7c0c9e50137f285b7c3237cfd1842b8dce12
|
/nan21.dnet.module.bd.presenter/src/main/java/net/nan21/dnet/module/bd/presenter/impl/attr/model/AttributeValue_Ds.java
|
6b1f2e7a6abf5dac98b36b597ecc08868dd0d312
|
[] |
no_license
|
dnet-ebs/nan21.dnet.module.bd
|
4656f71b10d1d6627de63bfd606f6f65f64f91c7
|
cd06753e3881addfa3ff1d0b3a875214155335b6
|
refs/heads/master
| 2021-01-03T13:19:55.589624
| 2013-11-14T07:43:59
| 2013-11-14T07:43:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,857
|
java
|
/**
* DNet eBusiness Suite
* Copyright: 2010-2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package net.nan21.dnet.module.bd.presenter.impl.attr.model;
import net.nan21.dnet.core.api.annotation.Ds;
import net.nan21.dnet.core.api.annotation.DsField;
import net.nan21.dnet.core.api.annotation.Param;
import net.nan21.dnet.core.api.annotation.RefLookup;
import net.nan21.dnet.core.api.annotation.RefLookups;
import net.nan21.dnet.core.api.annotation.SortField;
import net.nan21.dnet.core.presenter.model.AbstractAuditableDs;
import net.nan21.dnet.module.bd.domain.impl.attr.Attribute;
import net.nan21.dnet.module.bd.domain.impl.attr.AttributeSetAttribute;
import net.nan21.dnet.module.bd.domain.impl.attr.AttributeValue;
@Ds(entity = AttributeValue.class, sort = {
@SortField(field = AttributeValue_Ds.f_attributeSet),
@SortField(field = AttributeValue_Ds.f_subSetNo),
@SortField(field = AttributeValue_Ds.f_setAttributeNo)})
@RefLookups({
@RefLookup(refId = AttributeValue_Ds.f_attributeId, namedQuery = Attribute.NQ_FIND_BY_CODE, params = {@Param(name = "code", field = AttributeValue_Ds.f_attribute)}),
@RefLookup(refId = AttributeValue_Ds.f_setAttributeId, namedQuery = AttributeSetAttribute.NQ_FIND_BY_NAME_PRIMITIVE, params = {
@Param(name = "attributeSetId", field = AttributeValue_Ds.f_attributeSetId),
@Param(name = "attributeId", field = AttributeValue_Ds.f_attributeId)})})
public class AttributeValue_Ds extends AbstractAuditableDs<AttributeValue> {
public static final String f_value = "value";
public static final String f_targetRefid = "targetRefid";
public static final String f_subSetId = "subSetId";
public static final String f_subSet = "subSet";
public static final String f_subSetName = "subSetName";
public static final String f_subSetNo = "subSetNo";
public static final String f_attributeId = "attributeId";
public static final String f_attribute = "attribute";
public static final String f_attributeName = "attributeName";
public static final String f_attributeDataType = "attributeDataType";
public static final String f_attributeListOfvalues = "attributeListOfvalues";
public static final String f_setAttributeId = "setAttributeId";
public static final String f_setAttributeNo = "setAttributeNo";
public static final String f_setAttributeListOfvalues = "setAttributeListOfvalues";
public static final String f_attributeSetId = "attributeSetId";
public static final String f_attributeSet = "attributeSet";
@DsField
private String value;
@DsField
private String targetRefid;
@DsField(join = "left", path = "setAttribute.attributeSubSet.id")
private String subSetId;
@DsField(join = "left", path = "setAttribute.attributeSubSet.code")
private String subSet;
@DsField(join = "left", path = "setAttribute.attributeSubSet.name")
private String subSetName;
@DsField(join = "left", path = "setAttribute.attributeSubSet.sequenceNo")
private Integer subSetNo;
@DsField(join = "left", path = "setAttribute.attribute.id")
private String attributeId;
@DsField(join = "left", path = "setAttribute.attribute.code")
private String attribute;
@DsField(join = "left", path = "setAttribute.attribute.name")
private String attributeName;
@DsField(join = "left", path = "setAttribute.attribute.dataType")
private String attributeDataType;
@DsField(join = "left", path = "setAttribute.attribute.listOfvalues")
private String attributeListOfvalues;
@DsField(join = "left", path = "setAttribute.id")
private String setAttributeId;
@DsField(join = "left", path = "setAttribute.sequenceNo")
private Integer setAttributeNo;
@DsField(join = "left", path = "setAttribute.listOfvalues")
private String setAttributeListOfvalues;
@DsField(join = "left", path = "setAttribute.attributeSet.id")
private String attributeSetId;
@DsField(join = "left", path = "setAttribute.attributeSet.code")
private String attributeSet;
public AttributeValue_Ds() {
super();
}
public AttributeValue_Ds(AttributeValue e) {
super(e);
}
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public String getTargetRefid() {
return this.targetRefid;
}
public void setTargetRefid(String targetRefid) {
this.targetRefid = targetRefid;
}
public String getSubSetId() {
return this.subSetId;
}
public void setSubSetId(String subSetId) {
this.subSetId = subSetId;
}
public String getSubSet() {
return this.subSet;
}
public void setSubSet(String subSet) {
this.subSet = subSet;
}
public String getSubSetName() {
return this.subSetName;
}
public void setSubSetName(String subSetName) {
this.subSetName = subSetName;
}
public Integer getSubSetNo() {
return this.subSetNo;
}
public void setSubSetNo(Integer subSetNo) {
this.subSetNo = subSetNo;
}
public String getAttributeId() {
return this.attributeId;
}
public void setAttributeId(String attributeId) {
this.attributeId = attributeId;
}
public String getAttribute() {
return this.attribute;
}
public void setAttribute(String attribute) {
this.attribute = attribute;
}
public String getAttributeName() {
return this.attributeName;
}
public void setAttributeName(String attributeName) {
this.attributeName = attributeName;
}
public String getAttributeDataType() {
return this.attributeDataType;
}
public void setAttributeDataType(String attributeDataType) {
this.attributeDataType = attributeDataType;
}
public String getAttributeListOfvalues() {
return this.attributeListOfvalues;
}
public void setAttributeListOfvalues(String attributeListOfvalues) {
this.attributeListOfvalues = attributeListOfvalues;
}
public String getSetAttributeId() {
return this.setAttributeId;
}
public void setSetAttributeId(String setAttributeId) {
this.setAttributeId = setAttributeId;
}
public Integer getSetAttributeNo() {
return this.setAttributeNo;
}
public void setSetAttributeNo(Integer setAttributeNo) {
this.setAttributeNo = setAttributeNo;
}
public String getSetAttributeListOfvalues() {
return this.setAttributeListOfvalues;
}
public void setSetAttributeListOfvalues(String setAttributeListOfvalues) {
this.setAttributeListOfvalues = setAttributeListOfvalues;
}
public String getAttributeSetId() {
return this.attributeSetId;
}
public void setAttributeSetId(String attributeSetId) {
this.attributeSetId = attributeSetId;
}
public String getAttributeSet() {
return this.attributeSet;
}
public void setAttributeSet(String attributeSet) {
this.attributeSet = attributeSet;
}
}
|
[
"attila.mathe@dnet-ebusiness-suite.com"
] |
attila.mathe@dnet-ebusiness-suite.com
|
70de7fc2edc3b74d0f132b2c4fd737de08c28651
|
d589dbea0bb805d88995e35667ac3a768a5b8358
|
/app/src/main/java/com/axier/example/jsonrpc/azazar/krotjson/JSON.java
|
891d57f542c3ad415e847fb9546fd60ea1933ef6
|
[] |
no_license
|
YYwishp/sample-app
|
4ef126dd58929aef01d9d5b546def128e3dc1545
|
d1f642277d2bf3a86e2f1ec279573c2d698f6d98
|
refs/heads/master
| 2020-03-11T08:31:54.606016
| 2018-04-17T10:16:25
| 2018-04-17T10:16:25
| 129,886,189
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,649
|
java
|
/*
* KrotJSON License
*
* Copyright (c) 2013, Mikhail Yevchenko.
*
* 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.axier.example.jsonrpc.azazar.krotjson;
import java.util.Date;
import java.util.Map;
/**
*
* @author Mikhail Yevchenko <m.ṥῥẚɱ.ѓѐḿởύḙ@azazar.com>
* @author Yifei Teng
*/
public class JSON {
public static String stringify(Object o) {
if (o == null)
return "null";
if ((o instanceof Number) || (o instanceof Boolean))
return String.valueOf(o);
if (o instanceof Date)
return "new Date("+((Date)o).getTime()+")";
if (o instanceof Map)
return stringify((Map)o);
if (o instanceof Iterable)
return stringify((Iterable)o);
if (o instanceof Object[])
return stringify((Object[])o);
return stringify(String.valueOf(o));
}
public static String stringify(Map m) {
StringBuilder b = new StringBuilder();
b.append('{');
boolean first = true;
for (Map.Entry e : ((Map<Object, Object>)m).entrySet()) {
if (first)
first = false;
else
b.append(",");
b.append(stringify(e.getKey().toString()));
b.append(':');
b.append(stringify(e.getValue()));
}
b.append('}');
return b.toString();
}
public static String stringify(Iterable c) {
StringBuilder b = new StringBuilder();
b.append('[');
boolean first = true;
for (Object o : c) {
if (first)
first = false;
else
b.append(",");
b.append(stringify(o));
}
b.append(']');
return b.toString();
}
public static String stringify(Object[] c) {
StringBuilder b = new StringBuilder();
b.append('[');
boolean first = true;
for (Object o : c) {
if (first)
first = false;
else
b.append(",");
b.append(stringify(o));
}
b.append(']');
return b.toString();
}
public static String stringify(String s) {
StringBuilder b = new StringBuilder(s.length() + 2);
b.append('"');
for(; !s.isEmpty(); s = s.substring(1)) {
char c = s.charAt(0);
switch (c) {
case '\t':
b.append("\\t");
break;
case '\r':
b.append("\\r");
break;
case '\n':
b.append("\\n");
break;
case '\f':
b.append("\\f");
break;
case '\b':
b.append("\\b");
break;
case '"':
case '\\':
b.append("\\");
b.append(c);
break;
default:
b.append(c);
}
}
b.append('"');
return b.toString();
}
public static Object parse(String s) {
return CrippledJavaScriptParser.parseJSExpr(s);
}
// public static void main(String[] args) {
// String test =
// "[ { 'x': 'y', 'y': 'z', id: 'value' }, { 1:2 }, {3:2, 4:[null,1,2,3,null,-1,111,-111,null]} ];";
// System.out.println(stringify(parse(test)));
// System.out.println(stringify(new Object[] {1,2,3,"asd"}));
// }
}
|
[
"yywishp@gmail.com"
] |
yywishp@gmail.com
|
f6b186841f0509c74b1b895b2ebebf6df78c499a
|
6dc36322fac9ae60a32462b0a0bf9047714e4d1e
|
/HelloMaven/src/main/java/com/hyr/maven/helloMaven/HelloWord.java
|
e624b4c9a655963e6f1ec19fbb3c2d64704e8a0a
|
[] |
no_license
|
huangyueranbbc/Spring_Study
|
db11ce2d939f3f8fadea96ca4c8bef30b062bdf0
|
0dc848d13d2c87a6ce78191477f0938774932d38
|
refs/heads/master
| 2020-04-02T03:25:52.876148
| 2016-07-15T01:18:32
| 2016-07-15T01:18:32
| 63,380,927
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 233
|
java
|
package com.hyr.maven.helloMaven;
public class HelloWord
{
public String sayHello()
{
return "Hello Maven";
}
public static void main(String[] args)
{
System.out.println(new HelloWord().sayHello());
}
}
|
[
"you@example.com"
] |
you@example.com
|
093a907752c0766ef833f784133bcd946d0598c5
|
f3bc507e7d57cb56efbb9a991aa961158af86fef
|
/src/tgcommon/src/com/alachisoft/tayzgrid/common/protobuf/ColumnTypeProtocol.java
|
69523e5995256c8422c3dbc8d246214ad1e0a555
|
[
"Apache-2.0"
] |
permissive
|
Alachisoft/TayzGrid
|
28163c092d246312393b56684f47d72ed8a25964
|
1cd2cdfff485a08f329c44150a5f02d8a98255cc
|
refs/heads/master
| 2020-12-24T13:28:46.946083
| 2015-11-13T08:11:28
| 2015-11-13T08:11:28
| 37,905,036
| 11
| 10
| null | null | null | null |
UTF-8
|
Java
| false
| true
| 3,681
|
java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ColumnType.proto
package com.alachisoft.tayzgrid.common.protobuf;
public final class ColumnTypeProtocol {
private ColumnTypeProtocol() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public enum ColumnType
implements com.google.protobuf.ProtocolMessageEnum {
ATTRIBUTE_COLUMN(0, 0),
AGGREGATERESULT_COLUMN(1, 1),
;
public final int getNumber() { return value; }
public static ColumnType valueOf(int value) {
switch (value) {
case 0: return ATTRIBUTE_COLUMN;
case 1: return AGGREGATERESULT_COLUMN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<ColumnType>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<ColumnType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ColumnType>() {
public ColumnType findValueByNumber(int number) {
return ColumnType.valueOf(number)
; }
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.alachisoft.tayzgrid.common.protobuf.ColumnTypeProtocol.getDescriptor().getEnumTypes().get(0);
}
private static final ColumnType[] VALUES = {
ATTRIBUTE_COLUMN, AGGREGATERESULT_COLUMN,
};
public static ColumnType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private ColumnType(int index, int value) {
this.index = index;
this.value = value;
}
static {
com.alachisoft.tayzgrid.common.protobuf.ColumnTypeProtocol.getDescriptor();
}
// @@protoc_insertion_point(enum_scope:com.alachisoft.tayzgrid.common.protobuf.ColumnType)
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\020ColumnType.proto\022\'com.alachisoft.tayzg" +
"rid.common.protobuf*>\n\nColumnType\022\024\n\020ATT" +
"RIBUTE_COLUMN\020\000\022\032\n\026AGGREGATERESULT_COLUM" +
"N\020\001B\024B\022ColumnTypeProtocol"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
public static void internalForceInit() {}
// @@protoc_insertion_point(outer_class_scope)
}
|
[
"tayzgrid.dev@alachisoft.com"
] |
tayzgrid.dev@alachisoft.com
|
5f238555d80a145eb5e7b40356848d7c6a73a593
|
1f2ad174732488ac4584553f77dae3d26167da46
|
/src/main/java/org/osivia/sample/transaction/repository/command/DeleteSingleDocCommand.java
|
7b4e69de7ef0064acc6fc21d57a6a53d21cee1d6
|
[] |
no_license
|
osivia/osivia-sample-transaction
|
2b5b7cf2af53b6fa8ff5f5ed9e687806a4845488
|
44977afc00ca024736eb39b6fa45a13ecc942d29
|
refs/heads/master
| 2020-08-07T06:33:14.642024
| 2020-02-06T18:36:54
| 2020-02-06T18:36:54
| 213,334,681
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,250
|
java
|
package org.osivia.sample.transaction.repository.command;
import org.apache.commons.io.IOUtils;
import org.nuxeo.ecm.automation.client.OperationRequest;
import org.nuxeo.ecm.automation.client.Session;
import org.nuxeo.ecm.automation.client.adapters.DocumentService;
import org.nuxeo.ecm.automation.client.jaxrs.impl.HttpAutomationClient;
import org.nuxeo.ecm.automation.client.model.Document;
import org.nuxeo.ecm.automation.client.model.FileBlob;
import org.nuxeo.ecm.automation.client.model.PathRef;
import org.osivia.sample.transaction.model.CommandNotification;
import org.osivia.sample.transaction.model.Configuration;
import fr.toutatice.portail.cms.nuxeo.api.INuxeoCommand;
public class DeleteSingleDocCommand implements INuxeoCommand {
String path;
public DeleteSingleDocCommand(String path) {
super();
this.path = path;
}
/**
* {@inheritDoc}
*/
@Override
public Object execute(Session session) throws Exception {
DocumentService documentService = session.getAdapter(DocumentService.class);
documentService.remove(new PathRef(this.path));
return null;
}
@Override
public String getId() {
return "DeleteSingleDocCommand" + path;
}
}
|
[
"Jean-Sébastien@DESKTOP-IKBRQGB"
] |
Jean-Sébastien@DESKTOP-IKBRQGB
|
eb25cac2b68cd31d8c987113c9b33c7c01b0ca28
|
b71df571145e1423c8a466dbff5318d3a01fa030
|
/trunk/Implementacao/fa7-shoppingvirtual/src/br/com/seteshop/negocio/persistencia/CarrinhoDAO.java
|
d326cb43541e0b3bc8abde3881115080776a3f35
|
[] |
no_license
|
BGCX067/fa7-shoppingvirtual-svn-to-git
|
bdb99c8d084bfc2ea858df186155ad6a95fc6ab5
|
7796ca96228b180c8b6c8c1c0464e5b57ffbb900
|
refs/heads/master
| 2016-09-01T08:52:47.787035
| 2015-12-28T14:39:25
| 2015-12-28T14:39:25
| 48,850,014
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 878
|
java
|
/**
*
*/
package br.com.seteshop.negocio.persistencia;
import java.sql.ClientInfoStatus;
import java.util.List;
import br.com.seteshop.negocio.modelo.Carrinho;
import br.com.seteshop.negocio.modelo.Cliente;
import br.com.seteshop.negocio.modelo.Cliente;
import br.com.seteshop.negocio.modelo.Item;
public class CarrinhoDAO extends GenericoDAO<Carrinho> {
public List<Cliente> recuperarPorCliente(
Cliente cliente) {
String clausula_where = null;
if ((cliente.getNome() != null)
&& (cliente.getNome().length() > 0))
clausula_where = add_or(clausula_where) + "nome like '%"
+ cliente.getNome() + "%'";
//return findAll(clausula_where);
return null;
}
public List<Carrinho> recuperarItensCarrinho(Carrinho carrinho) {
String clausula_where = "id = " + carrinho.getId();
return findAll(clausula_where);
}
}
|
[
"you@example.com"
] |
you@example.com
|
5fba0085913e550095743448719df91848ef6af9
|
56adea945b27ccaf880decadb7f7cb86de450a8d
|
/search/ep-search/src/test/java/com/elasticpath/search/index/grouper/impl/IndexGrouperTest.java
|
f9c809b4f5a0dbe2ec6bd8117fe9d5ed760bfadf
|
[] |
no_license
|
ryanlfoster/ep-commerce-engine-68
|
89b56878806ca784eca453d58fb91836782a0987
|
7364bce45d25892e06df2e1c51da84dbdcebce5d
|
refs/heads/master
| 2020-04-16T04:27:40.577543
| 2013-12-10T19:31:52
| 2013-12-10T20:01:08
| 40,164,760
| 1
| 1
| null | 2015-08-04T05:15:25
| 2015-08-04T05:15:25
| null |
UTF-8
|
Java
| false
| false
| 4,641
|
java
|
package com.elasticpath.search.index.grouper.impl;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeMatcher;
import org.jmock.Expectations;
import org.jmock.integration.junit4.JUnitRuleMockery;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import com.elasticpath.search.index.pipeline.IndexingStage;
import com.elasticpath.search.index.pipeline.stats.PipelinePerformance;
/**
* Verifies that grouping search indices functionality.
*/
public class IndexGrouperTest {
private static final int DEFAULT_SIZE = 4;
private static final int DEFAULT_GROUP_SIZE = 4;
private static final int UNEVEN_GROUP_SIZE = 3;
@Rule
public final JUnitRuleMockery context = new JUnitRuleMockery();
@SuppressWarnings("unchecked")
private final IndexingStage<Set<Long>, ?> nextStage = context.mock(IndexingStage.class);
private final PipelinePerformance performance = context.mock(PipelinePerformance.class);
private UidGroupingTaskImpl indexGrouper;
/**
* Initialize the {@link UidGroupingTaskImpl} for testing.
*/
@Before
public void setUpIndexGrouper() {
indexGrouper = new UidGroupingTaskImpl();
indexGrouper.setPipelinePerformance(performance);
}
/**
* Test grouping when no next stage was set.
*/
@Test(expected = IllegalArgumentException.class)
public void testGroupingWithNoNextStage() {
indexGrouper.setUids(getIndexList(DEFAULT_SIZE));
indexGrouper.setGroupSize(DEFAULT_GROUP_SIZE);
indexGrouper.run();
}
/**
* Test grouping when group size less than one.
*/
@Test(expected = IllegalArgumentException.class)
public void testGroupingWithNoGroupSize() {
indexGrouper.setGroupSize(0);
}
/**
* Test grouping with batch size equal to index list size.
*/
@Test
public void testGroupingWithEqualBatchAndListSize() {
final Set<Long> uidsToLoad = getIndexList(DEFAULT_SIZE);
context.checking(new Expectations() { {
oneOf(nextStage).send(with(uidsToLoad));
allowing(performance).addCount(with(any(String.class)), with(any(Long.class)));
allowing(performance).addValue(with(any(String.class)), with(any(double.class)));
} });
indexGrouper.setUids(uidsToLoad);
indexGrouper.setNextStage(nextStage);
indexGrouper.setGroupSize(DEFAULT_GROUP_SIZE);
indexGrouper.run();
}
/**
* Test grouping with a different batch and index list size.
*/
@Test
public void testGroupingWithUnequalGroupAndListSize() {
final Set<Long> uidsToLoad = getIndexList(DEFAULT_SIZE);
context.checking(new Expectations() { {
exactly(2).of(nextStage).send(with(uidsSubSetMatcher(uidsToLoad)));
allowing(performance).addCount(with(any(String.class)), with(any(Long.class)));
allowing(performance).addValue(with(any(String.class)), with(any(double.class)));
} });
indexGrouper.setUids(uidsToLoad);
indexGrouper.setNextStage(nextStage);
indexGrouper.setGroupSize(UNEVEN_GROUP_SIZE);
indexGrouper.run();
}
/**
* Test grouping with a group size of one.
*/
@Test
public void testGroupingWithGroupSizeOfOne() {
final Set<Long> uidsToLoad = getIndexList(DEFAULT_SIZE);
context.checking(new Expectations() { {
for (Long uid : uidsToLoad) {
oneOf(nextStage).send(with(Collections.<Long> singleton(uid)));
}
allowing(performance).addCount(with(any(String.class)), with(any(Long.class)));
allowing(performance).addValue(with(any(String.class)), with(any(double.class)));
} });
indexGrouper.setUids(uidsToLoad);
indexGrouper.setNextStage(nextStage);
indexGrouper.setGroupSize(1);
indexGrouper.run();
}
private Set<Long> getIndexList(final int size) {
final Set<Long> indexList = new HashSet<Long>();
for (long index = 0; index < size; ++index) {
indexList.add(index);
}
return indexList;
}
/**
* A matcher that confirms that a given Set of UIDs contains only values from a Set of allowed values.
*
* @param allowedValues the master {@code Set} of allowed values
* @return a {@link Matcher} that can test a given Set to determine if it is made up exclusively of allowed values
*/
private Matcher<Set<Long>> uidsSubSetMatcher(final Set<Long> allowedValues) {
return new TypeSafeMatcher<Set<Long>>() {
@Override
protected boolean matchesSafely(final Set<Long> items) {
return allowedValues.containsAll(items);
}
@Override
public void describeTo(final Description description) {
description.appendText("Expected elements in the allowed values collection: [").appendValue(allowedValues).appendText("]");
}
};
}
}
|
[
"chris.gomes@pearson.com"
] |
chris.gomes@pearson.com
|
780f2f6fef4e316c7566b44a6f71f06494e97a6b
|
96f8d42c474f8dd42ecc6811b6e555363f168d3e
|
/zuiyou/sources/com/meizu/cloud/pushsdk/networking/okio/Util.java
|
620b9aa852482f61fbfc4eb9a4b3930168125a8c
|
[] |
no_license
|
aheadlcx/analyzeApk
|
050b261595cecc85790558a02d79739a789ae3a3
|
25cecc394dde4ed7d4971baf0e9504dcb7fabaca
|
refs/heads/master
| 2020-03-10T10:24:49.773318
| 2018-04-13T09:44:45
| 2018-04-13T09:44:45
| 129,332,351
| 6
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,679
|
java
|
package com.meizu.cloud.pushsdk.networking.okio;
import android.support.v4.view.ViewCompat;
import java.nio.charset.Charset;
final class Util {
public static final Charset UTF_8 = Charset.forName("UTF-8");
private Util() {
}
public static void checkOffsetAndCount(long j, long j2, long j3) {
if ((j2 | j3) < 0 || j2 > j || j - j2 < j3) {
throw new ArrayIndexOutOfBoundsException(String.format("size=%s offset=%s byteCount=%s", new Object[]{Long.valueOf(j), Long.valueOf(j2), Long.valueOf(j3)}));
}
}
public static short reverseBytesShort(short s) {
int i = 65535 & s;
return (short) (((i & 255) << 8) | ((65280 & i) >>> 8));
}
public static int reverseBytesInt(int i) {
return ((((ViewCompat.MEASURED_STATE_MASK & i) >>> 24) | ((16711680 & i) >>> 8)) | ((65280 & i) << 8)) | ((i & 255) << 24);
}
public static long reverseBytesLong(long j) {
return ((((((((-72057594037927936L & j) >>> 56) | ((71776119061217280L & j) >>> 40)) | ((280375465082880L & j) >>> 24)) | ((1095216660480L & j) >>> 8)) | ((4278190080L & j) << 8)) | ((16711680 & j) << 24)) | ((65280 & j) << 40)) | ((255 & j) << 56);
}
public static void sneakyRethrow(Throwable th) {
sneakyThrow2(th);
}
private static <T extends Throwable> void sneakyThrow2(Throwable th) throws Throwable {
throw th;
}
public static boolean arrayRangeEquals(byte[] bArr, int i, byte[] bArr2, int i2, int i3) {
for (int i4 = 0; i4 < i3; i4++) {
if (bArr[i4 + i] != bArr2[i4 + i2]) {
return false;
}
}
return true;
}
}
|
[
"aheadlcxzhang@gmail.com"
] |
aheadlcxzhang@gmail.com
|
b255eed7799d5806856f5eee16b5815916989fce
|
cb762d4b0f0ea986d339759ba23327a5b6b67f64
|
/src/dao/com/joymain/jecs/mi/dao/JmiRefStateLogDao.java
|
2e68114382f8c5549a19e4b82126993900cdb74f
|
[
"Apache-2.0"
] |
permissive
|
lshowbiz/agnt_ht
|
c7d68c72a1d5fa7cd0e424eabb9159d3552fe9dc
|
fd549de35cb12a2e3db1cd9750caf9ce6e93e057
|
refs/heads/master
| 2020-08-04T14:24:26.570794
| 2019-10-02T03:04:13
| 2019-10-02T03:04:13
| 212,160,437
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 302
|
java
|
package com.joymain.jecs.mi.dao;
import java.util.List;
import com.joymain.jecs.dao.Dao;
import com.joymain.jecs.util.data.CommonRecord;
import com.joymain.jecs.util.data.Pager;
public interface JmiRefStateLogDao extends Dao {
List getJmiRefStateLogsByCrm(CommonRecord crm, Pager pager);
}
|
[
"727736571@qq.com"
] |
727736571@qq.com
|
c21903126076dc80fca93ed803e15a858eb3c4bf
|
e1a4acf1d41b152a0f811e82c27ad261315399cc
|
/lang_interface/java/com/intel/daal/algorithms/neural_networks/layers/ForwardInputId.java
|
2b5603c2f9c38388fb605cac6adeb9e5590318d7
|
[
"Apache-2.0",
"Intel"
] |
permissive
|
ValeryiE/daal
|
e7572f16e692785db1e17bed23b6ab709db4e705
|
d326bdc5291612bc9e090d95da65aa579588b81e
|
refs/heads/master
| 2020-08-29T11:37:16.157315
| 2019-10-25T13:11:01
| 2019-10-25T13:11:01
| 218,020,419
| 0
| 0
|
Apache-2.0
| 2019-10-28T10:22:19
| 2019-10-28T10:22:19
| null |
UTF-8
|
Java
| false
| false
| 2,188
|
java
|
/* file: ForwardInputId.java */
/*******************************************************************************
* Copyright 2014-2019 Intel Corporation
*
* 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.
*******************************************************************************/
/**
* @ingroup layers_forward
* @{
*/
package com.intel.daal.algorithms.neural_networks.layers;
import java.lang.annotation.Native;
import com.intel.daal.utils.*;
/**
* <a name="DAAL-CLASS-ALGORITHMS__NEURAL_NETWORKS__LAYERS__FORWARDINPUTID"></a>
* \brief Available identifiers of input objects for the forward layer
*/
public final class ForwardInputId {
/** @private */
static {
LibUtils.loadLibrary();
}
private int _value;
/**
* Constructs the input object identifier using the provided value
* @param value Value corresponding to the input object identifier
*/
public ForwardInputId(int value) {
_value = value;
}
/**
* Returns the value corresponding to the input object identifier
* @return Value corresponding to the input object identifier
*/
public int getValue() {
return _value;
}
@Native private static final int dataId = 0;
@Native private static final int weightsId = 1;
@Native private static final int biasesId = 2;
public static final ForwardInputId data = new ForwardInputId(dataId); /*!< Input data */
public static final ForwardInputId weights = new ForwardInputId(weightsId); /*!< Weights of the neural network layer */
public static final ForwardInputId biases = new ForwardInputId(biasesId); /*!< Biases of the neural network layer */
}
/** @} */
|
[
"nikolay.a.petrov@intel.com"
] |
nikolay.a.petrov@intel.com
|
1318939227fb1b45e3ab6bd3a450ff6b664d9512
|
9f8304a649e04670403f5dc1cb049f81266ba685
|
/common/src/main/java/com/cmcc/vrp/boss/shanghai/model/charge/ChargeRetInfo.java
|
df24464e6d9c3d06b6be494a9fa0d34940e5d4de
|
[] |
no_license
|
hasone/pdata
|
632d2d0df9ddd9e8c79aca61a87f52fc4aa35840
|
0a9cfd988e8a414f3bdbf82ae96b82b61d8cccc2
|
refs/heads/master
| 2020-03-25T04:28:17.354582
| 2018-04-09T00:13:55
| 2018-04-09T00:13:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 691
|
java
|
package com.cmcc.vrp.boss.shanghai.model.charge;
import com.cmcc.vrp.boss.shanghai.model.paymember.SoapDataContainer;
/**
* @author lgk8023
*
*/
public class ChargeRetInfo {
private SoapDataContainer soapDataContainer;
private ChargeReturnContent returnMap;
public SoapDataContainer getSoapDataContainer() {
return soapDataContainer;
}
public void setSoapDataContainer(SoapDataContainer soapDataContainer) {
this.soapDataContainer = soapDataContainer;
}
public ChargeReturnContent getReturnMap() {
return returnMap;
}
public void setReturnMap(ChargeReturnContent returnMap) {
this.returnMap = returnMap;
}
}
|
[
"fromluozuwu@qq.com"
] |
fromluozuwu@qq.com
|
1c4b8bce53bbd72aaa60fd935c954b6e4ddba024
|
5f498d9c751a7c0263e129544c5a42606541627f
|
/org.eclipse.bpel.model/src/org/eclipse/bpel/model/resource/BPELVariableResolver.java
|
691c65f7c0a5bb9e4e20107956cfc172fc557f40
|
[] |
no_license
|
saatkamp/simpl09
|
2c2f65ea12245888b19283cdcddb8b73d03b9cf0
|
9d81c4f50bed863518497ab950af3d6726f2b3c8
|
refs/heads/master
| 2021-01-10T03:56:30.975085
| 2011-11-09T19:36:14
| 2011-11-09T19:36:14
| 55,900,095
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,188
|
java
|
/*******************************************************************************
* Copyright (c) 2005 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 org.eclipse.bpel.model.resource;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.bpel.model.Catch;
import org.eclipse.bpel.model.ForEach;
import org.eclipse.bpel.model.OnEvent;
import org.eclipse.bpel.model.Process;
import org.eclipse.bpel.model.Scope;
import org.eclipse.bpel.model.Variable;
import org.eclipse.bpel.model.Variables;
import org.eclipse.emf.ecore.EObject;
/**
* Base implementation of VariableResolver. This resolves all variables
* as defined in the BPEL specifications.
*
* Supply a different variable resolver by implementing VariableResolver
* and executing:
* BPELReader.VARIABLE_RESOLVER = new MyVariableResolver();
*/
public class BPELVariableResolver implements VariableResolver {
/**
* @see org.eclipse.bpel.model.resource.VariableResolver#getVariable(org.eclipse.emf.ecore.EObject, java.lang.String)
*/
public Variable getVariable(EObject eObject, String variableName) {
EObject container = eObject.eContainer();
while (container != null) {
if (container instanceof OnEvent) {
Variable variable = ((OnEvent)container).getVariable();
if (variable != null && variable.getName().equals(variableName)) {
return variable;
}
} else if (container instanceof Catch) {
Variable variable = ((Catch)container).getFaultVariable();
if (variable != null && variable.getName().equals(variableName)) {
return variable;
}
} else if (container instanceof ForEach) {
Variable variable = ((ForEach)container).getCounterName();
if (variable != null && variable.getName().equals(variableName)) {
return variable;
}
} else {
Variables variables = null;
if (container instanceof Process)
variables = ((Process)container).getVariables();
else if (container instanceof Scope)
variables = ((Scope)container).getVariables();
if (variables != null) {
List<Object> list = new ArrayList<Object>();
// check all BPEL variables if anyone has the correct variable name
list.addAll(variables.getChildren());
list.addAll(variables.getExtensibilityElements());
for (Object n : list) {
if (n instanceof Variable) {
Variable variable = (Variable) n;
String name = variable.getName();
if (name != null && name.equals(variableName)) {
return variable;
}
}
}
}
}
container = container.eContainer();
}
// System.out.println("Variable: " + variableName + " - not resolved");
return null;
}
}
|
[
"hahnml@t-online.de"
] |
hahnml@t-online.de
|
4e42364083f70162a2e00148331c1b12d60c9eca
|
4aa90348abcb2119011728dc067afd501f275374
|
/app/src/main/java/com/tencent/mm/plugin/chatroom/ui/ModRemarkRoomNameUI$1.java
|
81497a9347a462c694200165efe88509f1f4e6fc
|
[] |
no_license
|
jambestwick/HackWechat
|
0d4ceb2d79ccddb45004ca667e9a6a984a80f0f6
|
6a34899c8bfd50d19e5a5ec36a58218598172a6b
|
refs/heads/master
| 2022-01-27T12:48:43.446804
| 2021-12-29T10:36:30
| 2021-12-29T10:36:30
| 249,366,791
| 0
| 0
| null | 2020-03-23T07:48:32
| 2020-03-23T07:48:32
| null |
UTF-8
|
Java
| false
| false
| 1,350
|
java
|
package com.tencent.mm.plugin.chatroom.ui;
import android.content.Intent;
import com.tencent.mm.g.a.lj;
import com.tencent.mm.sdk.b.b;
import com.tencent.mm.sdk.b.c;
import com.tencent.mm.ui.base.h;
import com.tencent.mm.z.ar;
class ModRemarkRoomNameUI$1 extends c<lj> {
final /* synthetic */ ModRemarkRoomNameUI lbl;
ModRemarkRoomNameUI$1(ModRemarkRoomNameUI modRemarkRoomNameUI) {
this.lbl = modRemarkRoomNameUI;
this.xen = lj.class.getName().hashCode();
}
public final /* synthetic */ boolean a(b bVar) {
lj ljVar = (lj) bVar;
String str = ljVar.fCK.fCL;
String str2 = ljVar.fCK.fCM;
int i = ljVar.fCK.ret;
if (i != 0 && str2 != null) {
h.b(this.lbl, str2, str, true);
if (ModRemarkRoomNameUI.a(this.lbl) != null) {
ar.Hg();
com.tencent.mm.z.c.EX().c(ModRemarkRoomNameUI.a(this.lbl));
}
} else if (i == 0 && ModRemarkRoomNameUI.b(this.lbl)) {
Intent intent = new Intent();
intent.putExtra("room_name", ModRemarkRoomNameUI.c(this.lbl));
this.lbl.setResult(-1, intent);
this.lbl.finish();
}
if (ModRemarkRoomNameUI.d(this.lbl) != null) {
ModRemarkRoomNameUI.d(this.lbl).dismiss();
}
return false;
}
}
|
[
"malin.myemail@163.com"
] |
malin.myemail@163.com
|
99845d02a163780d42608130faee5ba62ce6b8af
|
cbef0416a432e990af754a20bc7f49a68331ed3b
|
/src/Strategy/example/BackDoor.java
|
ad7fb540d540dbf1fb9d4b72980aa1fa1436d940
|
[] |
no_license
|
JDawnF/design
|
0f6bfd7c15772c0dedbd026bac34a47c763eb5c9
|
aa70a478db9c0bc6919368add6cdfa2197a1f909
|
refs/heads/master
| 2020-04-16T23:15:48.712119
| 2019-01-18T10:15:34
| 2019-01-18T10:15:34
| 166,002,060
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 323
|
java
|
package Strategy.example;
/**
* @program: design
* @description: 其中一个策略
* @author: baichen
* @create: 2019-01-17 16:57
**/
public class BackDoor implements IStrategy {
@Override
public void operate() {
System.out.println("找乔国老帮忙,让吴国太给孙权施加压力");
}
}
|
[
"335825732@qq.com"
] |
335825732@qq.com
|
7a2873f3e6e2418a787a1bcd2291ed93d07e5dad
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/XWIKI-13316-2-24-Single_Objective_GGA-WeightedSum-BasicBlockCoverage/com/xpn/xwiki/internal/skin/AbstractSkin_ESTest.java
|
68ea2fc26190adc44d74f80004b518e41254ac6f
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,667
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sun May 17 21:10:09 UTC 2020
*/
package com.xpn.xwiki.internal.skin;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import ch.qos.logback.classic.Logger;
import com.xpn.xwiki.internal.XWikiContextProvider;
import com.xpn.xwiki.internal.skin.EnvironmentSkin;
import com.xpn.xwiki.internal.skin.InternalSkinConfiguration;
import com.xpn.xwiki.internal.skin.InternalSkinManager;
import com.xpn.xwiki.internal.skin.WikiSkinUtils;
import com.xpn.xwiki.util.XWikiStubContextProvider;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.ViolatedAssumptionAnswer;
import org.evosuite.runtime.javaee.injection.Injector;
import org.junit.runner.RunWith;
import org.xwiki.context.Execution;
import org.xwiki.environment.Environment;
import org.xwiki.rendering.internal.syntax.DefaultSyntaxFactory;
import ucar.httpservices.CustomX509TrustManager;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class AbstractSkin_ESTest extends AbstractSkin_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
InternalSkinManager internalSkinManager0 = mock(InternalSkinManager.class, new ViolatedAssumptionAnswer());
InternalSkinConfiguration internalSkinConfiguration0 = mock(InternalSkinConfiguration.class, new ViolatedAssumptionAnswer());
WikiSkinUtils wikiSkinUtils0 = new WikiSkinUtils();
Logger logger0 = (Logger)CustomX509TrustManager.logger;
DefaultSyntaxFactory defaultSyntaxFactory0 = new DefaultSyntaxFactory();
XWikiContextProvider xWikiContextProvider0 = new XWikiContextProvider();
XWikiStubContextProvider xWikiStubContextProvider0 = mock(XWikiStubContextProvider.class, new ViolatedAssumptionAnswer());
Injector.inject(xWikiContextProvider0, (Class<?>) XWikiContextProvider.class, "contextProvider", (Object) xWikiStubContextProvider0);
Execution execution0 = mock(Execution.class, new ViolatedAssumptionAnswer());
Injector.inject(xWikiContextProvider0, (Class<?>) XWikiContextProvider.class, "execution", (Object) execution0);
Injector.validateBean(xWikiContextProvider0, (Class<?>) XWikiContextProvider.class);
EnvironmentSkin environmentSkin0 = new EnvironmentSkin("@k!-%QK", internalSkinManager0, internalSkinConfiguration0, logger0, defaultSyntaxFactory0, (Environment) null, xWikiContextProvider0);
// Undeclared exception!
environmentSkin0.getOutputSyntax();
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
9e944541506999a7f038d08e98a276291dded62f
|
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
|
/benchmark/test/org/apache/hadoop/io/compress/TestGzipCodec.java
|
44ac7999430d57bc91681a7541adace25692082a
|
[] |
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,094
|
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.hadoop.io.compress;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Random;
import java.util.zip.GZIPInputStream;
import org.apache.hadoop.io.DataInputBuffer;
import org.apache.hadoop.io.DataOutputBuffer;
import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Verify resettable compressor.
*/
public class TestGzipCodec {
private static final Logger LOG = LoggerFactory.getLogger(TestGzipCodec.class);
private static final String DATA1 = "Dogs don\'t know it\'s not bacon!\n";
private static final String DATA2 = "It\'s baconnnn!!\n";
private GzipCodec codec = new GzipCodec();
// Test simple compression.
@Test
public void testSingleCompress() throws IOException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
CompressionOutputStream cmpOut = codec.createOutputStream(baos);
cmpOut.write(TestGzipCodec.DATA1.getBytes(StandardCharsets.UTF_8));
cmpOut.finish();
cmpOut.close();
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
GZIPInputStream cmpIn = new GZIPInputStream(bais);
byte[] buf = new byte[1024];
int len = cmpIn.read(buf);
String result = new String(buf, 0, len, StandardCharsets.UTF_8);
Assert.assertEquals("Input must match output", TestGzipCodec.DATA1, result);
}
// Test multi-member gzip file created via finish(), resetState().
@Test
public void testResetCompress() throws IOException {
DataOutputBuffer dob = new DataOutputBuffer();
CompressionOutputStream cmpOut = codec.createOutputStream(dob);
cmpOut.write(TestGzipCodec.DATA1.getBytes(StandardCharsets.UTF_8));
cmpOut.finish();
cmpOut.resetState();
cmpOut.write(TestGzipCodec.DATA2.getBytes(StandardCharsets.UTF_8));
cmpOut.finish();
cmpOut.close();
dob.close();
DataInputBuffer dib = new DataInputBuffer();
dib.reset(dob.getData(), 0, dob.getLength());
CompressionInputStream cmpIn = codec.createInputStream(dib);
byte[] buf = new byte[1024];
StringBuilder result = new StringBuilder();
int len = 0;
while (true) {
len = cmpIn.read(buf);
if (len < 0) {
break;
}
result.append(new String(buf, 0, len, StandardCharsets.UTF_8));
}
Assert.assertEquals("Output must match input", ((TestGzipCodec.DATA1) + (TestGzipCodec.DATA2)), result.toString());
}
// ensure all necessary methods are overwritten
@Test
public void testWriteOverride() throws IOException {
Random r = new Random();
long seed = r.nextLong();
TestGzipCodec.LOG.info(("seed: " + seed));
r.setSeed(seed);
byte[] buf = new byte[128];
r.nextBytes(buf);
DataOutputBuffer dob = new DataOutputBuffer();
CompressionOutputStream cmpOut = codec.createOutputStream(dob);
cmpOut.write(buf);
int i = r.nextInt((128 - 10));
int l = r.nextInt((128 - i));
cmpOut.write(buf, i, l);
cmpOut.write(((byte) ((r.nextInt()) & 255)));
cmpOut.close();
r.setSeed(seed);
DataInputBuffer dib = new DataInputBuffer();
dib.reset(dob.getData(), 0, dob.getLength());
CompressionInputStream cmpIn = codec.createInputStream(dib);
byte[] vbuf = new byte[128];
Assert.assertEquals(128, cmpIn.read(vbuf));
Assert.assertArrayEquals(buf, vbuf);
r.nextBytes(vbuf);
int vi = r.nextInt((128 - 10));
int vl = r.nextInt((128 - vi));
Assert.assertEquals(vl, cmpIn.read(vbuf, 0, vl));
Assert.assertArrayEquals(Arrays.copyOfRange(buf, i, (i + l)), Arrays.copyOf(vbuf, vl));
Assert.assertEquals(((r.nextInt()) & 255), cmpIn.read());
Assert.assertEquals((-1), cmpIn.read());
}
// don't write a new header if no data are written after reset
@Test
public void testIdempotentResetState() throws IOException {
DataOutputBuffer dob = new DataOutputBuffer();
CompressionOutputStream cmpOut = codec.createOutputStream(dob);
cmpOut.write(TestGzipCodec.DATA1.getBytes(StandardCharsets.UTF_8));
cmpOut.finish();
cmpOut.finish();
cmpOut.finish();
cmpOut.resetState();
cmpOut.resetState();
cmpOut.finish();
cmpOut.resetState();
cmpOut.close();
dob.close();
DataInputBuffer dib = new DataInputBuffer();
dib.reset(dob.getData(), 0, dob.getLength());
CompressionInputStream cmpIn = codec.createInputStream(dib);
byte[] buf = new byte[1024];
StringBuilder result = new StringBuilder();
int len = 0;
while (true) {
len = cmpIn.read(buf);
if (len < 0) {
break;
}
result.append(new String(buf, 0, len, StandardCharsets.UTF_8));
}
Assert.assertEquals("Output must match input", TestGzipCodec.DATA1, result.toString());
}
}
|
[
"benjamin.danglot@inria.fr"
] |
benjamin.danglot@inria.fr
|
2e48eec6a4fa82a273ab4732948284556f37f6c6
|
d2984ba2b5ff607687aac9c65ccefa1bd6e41ede
|
/src/net/datenwerke/rs/base/client/reportengines/table/columnfilter/FilterUIStartup.java
|
a1214b53325a47966fe699ff0ceaf9e035bc63c9
|
[] |
no_license
|
bireports/ReportServer
|
da979eaf472b3e199e6fbd52b3031f0e819bff14
|
0f9b9dca75136c2bfc20aa611ebbc7dc24cfde62
|
refs/heads/master
| 2020-04-18T10:18:56.181123
| 2019-01-25T00:45:14
| 2019-01-25T00:45:14
| 167,463,795
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,626
|
java
|
/*
* ReportServer
* Copyright (c) 2018 InfoFabrik GmbH
* http://reportserver.net/
*
*
* This file is part of ReportServer.
*
* ReportServer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.datenwerke.rs.base.client.reportengines.table.columnfilter;
import net.datenwerke.hookhandler.shared.hookhandler.HookHandlerService;
import net.datenwerke.rs.base.client.reportengines.table.columnfilter.hookers.PreviewEnhancerHook;
import net.datenwerke.rs.base.client.reportengines.table.columnfilter.hookers.ToolbarEnhancerEditFilter;
import net.datenwerke.rs.base.client.reportengines.table.columnfilter.hooks.FilterViewEnhanceToolbarHook;
import net.datenwerke.rs.base.client.reportengines.table.columnfilter.propertywidgets.FilterViewFactory;
import net.datenwerke.rs.base.client.reportengines.table.cubeconfig.CubeConfigViewFactory;
import net.datenwerke.rs.base.client.reportengines.table.hooks.TableReportPreviewCellEnhancerHook;
import net.datenwerke.rs.core.client.reportexecutor.hooks.ReportViewHook;
import com.google.inject.Inject;
import com.google.inject.Provider;
/**
*
*
*/
public class FilterUIStartup {
@Inject
public FilterUIStartup(
HookHandlerService hookHandler,
FilterViewFactory filterWidgetFactory,
CubeConfigViewFactory cubeViewFactory,
PreviewEnhancerHook previewEnhancer,
Provider<ToolbarEnhancerEditFilter> toolbarEnhancerEditFilterProvider
){
/* attach hooks */
hookHandler.attachHooker(
ReportViewHook.class,
new ReportViewHook(filterWidgetFactory),
HookHandlerService.PRIORITY_MEDIUM);
hookHandler.attachHooker(
ReportViewHook.class,
new ReportViewHook(cubeViewFactory),
HookHandlerService.PRIORITY_MEDIUM);
/* preview */
hookHandler.attachHooker(TableReportPreviewCellEnhancerHook.class, previewEnhancer);
/* toolbar */
hookHandler.attachHooker(FilterViewEnhanceToolbarHook.class, toolbarEnhancerEditFilterProvider);
}
}
|
[
"srbala@gmail.com"
] |
srbala@gmail.com
|
4d663f03dddc84a6bef2ab5072c0ecd600a92f11
|
c5a67e2aeabbde81c93a329ae2e9c7ccc3631246
|
/src/main/java/com/vnw/data/jooq/tables/TblsysRefpermission.java
|
2552562dc7e0734e0e8c0a118ed36edabbcf7500
|
[] |
no_license
|
phuonghuynh/dtools
|
319d773d01c32093fd17d128948ef89c81f3f4bf
|
883d15ef19da259396a7bc16ac9df590e8add015
|
refs/heads/master
| 2016-09-14T03:46:53.463230
| 2016-05-25T04:04:32
| 2016-05-25T04:04:32
| 59,534,869
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,598
|
java
|
/**
* This class is generated by jOOQ
*/
package com.vnw.data.jooq.tables;
import com.vnw.data.jooq.Keys;
import com.vnw.data.jooq.VnwCore;
import com.vnw.data.jooq.tables.records.TblsysRefpermissionRecord;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.0"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TblsysRefpermission extends TableImpl<TblsysRefpermissionRecord> {
private static final long serialVersionUID = 1522696673;
/**
* The reference instance of <code>vnw_core.tblsys_refpermission</code>
*/
public static final TblsysRefpermission TBLSYS_REFPERMISSION = new TblsysRefpermission();
/**
* The class holding records for this type
*/
@Override
public Class<TblsysRefpermissionRecord> getRecordType() {
return TblsysRefpermissionRecord.class;
}
/**
* The column <code>vnw_core.tblsys_refpermission.permissionid</code>.
*/
public final TableField<TblsysRefpermissionRecord, Byte> PERMISSIONID = createField("permissionid", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.TINYINT)), this, "");
/**
* The column <code>vnw_core.tblsys_refpermission.permissionname</code>.
*/
public final TableField<TblsysRefpermissionRecord, String> PERMISSIONNAME = createField("permissionname", org.jooq.impl.SQLDataType.VARCHAR.length(255), this, "");
/**
* The column <code>vnw_core.tblsys_refpermission.permissionorder</code>.
*/
public final TableField<TblsysRefpermissionRecord, Byte> PERMISSIONORDER = createField("permissionorder", org.jooq.impl.SQLDataType.TINYINT, this, "");
/**
* Create a <code>vnw_core.tblsys_refpermission</code> table reference
*/
public TblsysRefpermission() {
this("tblsys_refpermission", null);
}
/**
* Create an aliased <code>vnw_core.tblsys_refpermission</code> table reference
*/
public TblsysRefpermission(String alias) {
this(alias, TBLSYS_REFPERMISSION);
}
private TblsysRefpermission(String alias, Table<TblsysRefpermissionRecord> aliased) {
this(alias, aliased, null);
}
private TblsysRefpermission(String alias, Table<TblsysRefpermissionRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return VnwCore.VNW_CORE;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<TblsysRefpermissionRecord> getPrimaryKey() {
return Keys.KEY_TBLSYS_REFPERMISSION_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<TblsysRefpermissionRecord>> getKeys() {
return Arrays.<UniqueKey<TblsysRefpermissionRecord>>asList(Keys.KEY_TBLSYS_REFPERMISSION_PRIMARY);
}
/**
* {@inheritDoc}
*/
@Override
public TblsysRefpermission as(String alias) {
return new TblsysRefpermission(alias, this);
}
/**
* Rename this table
*/
public TblsysRefpermission rename(String name) {
return new TblsysRefpermission(name, null);
}
}
|
[
"phuonghqh@gmail.com"
] |
phuonghqh@gmail.com
|
2dbde88db64347f7fb39dea360bfe38eab0a2cfb
|
c885ef92397be9d54b87741f01557f61d3f794f3
|
/tests-without-trycatch/JacksonDatabind-110/com.fasterxml.jackson.databind.deser.impl.JavaUtilCollectionsDeserializers/BBC-F0-opt-90/26/com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers_ESTest.java
|
5c929a57d6745c99902977f64516f86121ee341a
|
[
"CC-BY-4.0",
"MIT"
] |
permissive
|
pderakhshanfar/EMSE-BBC-experiment
|
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
|
fea1a92c2e7ba7080b8529e2052259c9b697bbda
|
refs/heads/main
| 2022-11-25T00:39:58.983828
| 2022-04-12T16:04:26
| 2022-04-12T16:04:26
| 309,335,889
| 0
| 1
| null | 2021-11-05T11:18:43
| 2020-11-02T10:30:38
| null |
UTF-8
|
Java
| false
| false
| 3,355
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sat Oct 23 19:24:30 GMT 2021
*/
package com.fasterxml.jackson.databind.deser.impl;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.deser.BeanDeserializerFactory;
import com.fasterxml.jackson.databind.deser.DefaultDeserializationContext;
import com.fasterxml.jackson.databind.deser.impl.JavaUtilCollectionsDeserializers;
import com.fasterxml.jackson.databind.type.PlaceholderForType;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true)
public class JavaUtilCollectionsDeserializers_ESTest extends JavaUtilCollectionsDeserializers_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
BeanDeserializerFactory beanDeserializerFactory0 = BeanDeserializerFactory.instance;
DefaultDeserializationContext.Impl defaultDeserializationContext_Impl0 = new DefaultDeserializationContext.Impl(beanDeserializerFactory0);
// Undeclared exception!
// try {
JavaUtilCollectionsDeserializers.findForMap(defaultDeserializationContext_Impl0, (JavaType) null);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("com.fasterxml.jackson.databind.deser.impl.JavaUtilCollectionsDeserializers", e);
// }
}
@Test(timeout = 4000)
public void test1() throws Throwable {
BeanDeserializerFactory beanDeserializerFactory0 = BeanDeserializerFactory.instance;
DefaultDeserializationContext.Impl defaultDeserializationContext_Impl0 = new DefaultDeserializationContext.Impl(beanDeserializerFactory0);
// Undeclared exception!
// try {
JavaUtilCollectionsDeserializers.findForCollection(defaultDeserializationContext_Impl0, (JavaType) null);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("com.fasterxml.jackson.databind.deser.impl.JavaUtilCollectionsDeserializers", e);
// }
}
@Test(timeout = 4000)
public void test2() throws Throwable {
PlaceholderForType placeholderForType0 = new PlaceholderForType(32767);
JsonDeserializer<?> jsonDeserializer0 = JavaUtilCollectionsDeserializers.findForMap((DeserializationContext) null, placeholderForType0);
assertNull(jsonDeserializer0);
}
@Test(timeout = 4000)
public void test3() throws Throwable {
PlaceholderForType placeholderForType0 = new PlaceholderForType(32767);
JsonDeserializer<?> jsonDeserializer0 = JavaUtilCollectionsDeserializers.findForCollection((DeserializationContext) null, placeholderForType0);
assertNull(jsonDeserializer0);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
30790555bce18220e9388ae19e0fef17ec7f8f26
|
e760326163cfa14b2779934c9e71a7f7a76dfb35
|
/src/com/amarsoft/app/als/dataimport/xlsimport/DataGridWriter.java
|
0d6b9cef2c4e7d51f400e967f2036a5ee6934c33
|
[] |
no_license
|
gaosy5945/easylifecore
|
41e68bba747eb03f28edecf18d9d2ce2755db9d8
|
3fd630be1d990d0e66452735e84841536af5b9ba
|
refs/heads/master
| 2020-05-19T17:25:29.370637
| 2016-09-21T08:29:40
| 2016-09-21T08:29:40
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 7,123
|
java
|
package com.amarsoft.app.als.dataimport.xlsimport;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;
import java.util.regex.Pattern;
import com.amarsoft.are.ARE;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectClass;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOException;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.are.jbo.JBOTransaction;
import com.amarsoft.are.lang.DataElement;
import com.amarsoft.are.util.StringFunction;
/**
* DataGrid格式的数据写入
* @author syang
* @date 2011/08/18
*
*/
public class DataGridWriter extends JBOWriter {
private int startRowIndex = 0;
private int finishRowIndex = 10;
private int commitNumber = 100;
public DataGridWriter(BizObjectManager manager, BizObjectClass clazz) {
super(manager, clazz);
}
private SimpleDateFormat dataFormat = new SimpleDateFormat("yyyy/MM/dd");
@Override
public void write(Map<String, DataElement> dataMap) {
//取元数据设置
DataElement[] elements = getTargetBizObjectClass().getAttributes();
int recordCount = finishRowIndex - startRowIndex;
JBOTransaction tx = null;
Pattern pattern = Pattern.compile("^[A-Z]+$");
try {
tx = JBOFactory.getFactory().createTransaction();
tx.join(getManager());
int count = 0;
boolean txSetted = false;
for(int i=0;i<recordCount;i++){
BizObject newBizObject = getManager().newObject();
boolean setedValue = false;
count ++;
//自动补机构及用户信息
if(getManager() instanceof ExcelImportManager){
ExcelImportManager excelImportManager = (ExcelImportManager)getManager();
if(excelImportManager.getCurUser()!=null){
//补用户
String userField = excelImportManager.getUserField();
if(userField!=null&&userField.length()>0){
String[] userFields = userField.split(",");
for(int k=0;k<userFields.length;k++){
newBizObject.getAttribute(userFields[k]).setValue(excelImportManager.getCurUser().getUserID());
}
}
//补机构
String orgField = excelImportManager.getOrgField();
if(orgField!=null&&orgField.length()>0){
String[] orgFields = orgField.split(",");
for(int k=0;k<orgFields.length;k++){
newBizObject.getAttribute(orgFields[k]).setValue(excelImportManager.getCurUser().getOrgID());
}
}
//补日期
String dateField = excelImportManager.getDateField();
if(dateField!=null&&dateField.length()>0){
String[] dateFields = dateField.split(",");
for(int k=0;k<dateFields.length;k++){
newBizObject.getAttribute(dateFields[k]).setValue(StringFunction.getToday());
}
}
}
}
//填写数据
for(int j=0;j<elements.length;j++){
DataElement element = elements[j];
String sourceColName = element.getProperty("excelCol"); //读取Excel列
if(sourceColName!=null&&sourceColName.length()>0){
if(!pattern.matcher(sourceColName).matches())throw new Exception("地址:["+sourceColName+"]格式不正确,应该配置为Excel列名,如C]");
String sourceAddress = sourceColName+(startRowIndex+i+1);
DataElement e = dataMap.get(sourceAddress);
if(e==null)continue;
// Object data = e.getValue();
Object data = getActualValue(element,e);
if(data!=null&&!e.isNull()){
DataElement objElement = newBizObject.getAttribute(element.getName());
if(data instanceof Date)objElement.setValue(dataFormat.format(e.getDate()));
objElement.setValue(data);
setedValue = true;
}else{
boolean b = setDefaultValue(newBizObject,element); //默认值
//if(!setedValue)//setedValue = b;
}
}else{
boolean b = setDefaultValue(newBizObject,element); //默认值
//if(!setedValue)//setedValue = b;
}
}
if(setedValue){
//调用拦截器
for(ExcelImportInterceptor interceptor:interceptors){
if(!txSetted)interceptor.setTransaction(tx);//事务只能设置一次
interceptor.beforeWrite(newBizObject);
}
txSetted = true;
getManager().saveObject(newBizObject);
//调用拦截器
for(ExcelImportInterceptor interceptor:interceptors){
interceptor.afterWrite(newBizObject);
}
if(count%commitNumber==0)tx.commit();
}
}
tx.commit();
} catch (Exception e) {
ARE.getLog().error("写入数据出错",e);
}finally{
if(tx!=null) try {tx.rollback();} catch (JBOException e1){}
dataMap.clear();
}
}
/**
* 设置默认值,如果设置了,返回true
* @param bo jbo行对象
* @param metadataElement 源数据元素
* @return
* @throws JBOException
*/
private boolean setDefaultValue(BizObject bo,DataElement metadataElement) throws JBOException{
String defaultValue = metadataElement.getProperty("defaultValue");
if(defaultValue==null)return false;
DataElement objElement = bo.getAttribute(metadataElement.getName());
objElement.setValue(defaultValue);
return true;
}
/**
* 获取实际值,如果需要作代码表转换的,需要进行代码转换
* @param metadataElement
* @param element
* @return
*/
// private Pattern jsonPattern = Pattern.compile("\\{(.+\\:.+)+\\}");
private Object getActualValue(DataElement metadataElement,DataElement element){
Object data = element.getValue();
String codeMapString = metadataElement.getProperty("codeMap");
if(data!=null&&codeMapString!=null&&codeMapString.length()>=5){
codeMapString = codeMapString.substring(1);
codeMapString = codeMapString.substring(0,codeMapString.length()-1);
String[] items = codeMapString.split(",");
for(int i=0;i<items.length;i++){
String[] item = items[i].split(":");
if(item.length != 2)continue;
String itemNo = item[0].trim();
String itemName = item[1].trim();
if(data.toString().equals(itemName))data = itemNo;
}
}
//强制转为字符串
if(element.getType() == DataElement.DOUBLE){
String double2StringFormat = metadataElement.getProperty("double2StringFormat");
if(double2StringFormat != null && double2StringFormat.length()>0){
data = new DecimalFormat(double2StringFormat).format(element.getDouble());
}
}
return data;
}
/**
* 获取起始行索引
* @return
*/
public int getStartRowIndex() {
return startRowIndex;
}
/**
* 设置起始行索引
* @param startRowIndex
*/
public void setStartRowIndex(int startRowIndex) {
this.startRowIndex = startRowIndex;
}
/**
* 获取结束行索引
* @return
*/
public int getFinishRowIndex() {
return finishRowIndex;
}
/**
* 设置结束行索引
* @param finishRowIndex
*/
public void setFinishRowIndex(int finishRowIndex) {
this.finishRowIndex = finishRowIndex;
}
/**
* 获取每个每个事务记录数
* @return
*/
public int getCommitNumber() {
return commitNumber;
}
/**
* 设置每个事务记录数
* @param commitNumber
*/
public void setCommitNumber(int commitNumber) {
this.commitNumber = commitNumber;
}
}
|
[
"jianbin_wang@139.com"
] |
jianbin_wang@139.com
|
8fdc25a7001400432103ca38ae844d9bba5fbcdb
|
6c54321bec80514b8125ff7fa46a08773825ebb2
|
/stanhebben/minetweaker/tweaker/SetFuelPattern.java
|
ede3d2c20e11121e577e087f2e7bc44c74aedae6
|
[] |
no_license
|
Fusty/MineTweaker
|
988fae8320e4ea1e6a6c52ac20416d828d2e7dc7
|
837ef0d267508131dea3ebb93357f99f32371e05
|
refs/heads/master
| 2020-04-06T04:58:50.601317
| 2014-06-03T06:24:50
| 2014-06-03T06:24:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 439
|
java
|
package stanhebben.minetweaker.tweaker;
import stanhebben.minetweaker.api.value.TweakerItemStackPattern;
public class SetFuelPattern {
private TweakerItemStackPattern pattern;
private int value;
public SetFuelPattern(TweakerItemStackPattern pattern, int value) {
this.pattern = pattern;
this.value = value;
}
public TweakerItemStackPattern getPattern() {
return pattern;
}
public int getValue() {
return value;
}
}
|
[
"stanhebben@gmail.com"
] |
stanhebben@gmail.com
|
97024af50d363a9092a9fb6fac01452592800f72
|
e62c3b93b38d2d7781d38ba1cdbabfea2c1cf7af
|
/BocBankMobile/src/main/java/com/boc/bocsoft/mobile/bocmobile/buss/creditcard/billinstallments/ui/BillInstallmentMainContract.java
|
bb8797295f7d3cd8209b9aed2d819e79fb283c73
|
[] |
no_license
|
soghao/zgyh
|
df34779708a8d6088b869d0efc6fe1c84e53b7b1
|
09994dda29f44b6c1f7f5c7c0b12f956fc9a42c1
|
refs/heads/master
| 2021-06-19T07:36:53.910760
| 2017-06-23T14:23:10
| 2017-06-23T14:23:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 955
|
java
|
package com.boc.bocsoft.mobile.bocmobile.buss.creditcard.billinstallments.ui;
import com.boc.bocsoft.mobile.bii.common.BiiException.BiiResultErrorException;
import com.boc.bocsoft.mobile.framework.ui.BasePresenter;
import com.boc.bocsoft.mobile.framework.ui.BaseView;
import java.math.BigDecimal;
/**
* Name: liukai
* Time:2017/1/3 16:45.
* Created by lk7066 on 2017/1/3.
* It's used to
*/
public class BillInstallmentMainContract {
public interface BillInstallmentMainView extends BaseView<BillInstallmentMainPresenter> {
void queryBillInputSuccess(BigDecimal upLimit, BigDecimal lowLimit);
void queryBillInputFailed(BiiResultErrorException e);
}
public interface BillInstallmentMainPresenter extends BasePresenter {
/**
* 4.29 029办理账单分期输入PsnCrcdDividedPayBillSetInput
*
* @param accountID
*/
void queryBillInput(String accountID);
}
}
|
[
"15609143618@163.com"
] |
15609143618@163.com
|
c528d05b0f38e4109fbf1f0139702335a43a7741
|
8eac9fe5030455cb9d1692d2136fa79046fa3350
|
/src/main/java/com/i4one/base/web/controller/admin/ActivityReportSettings.java
|
ba9c5c8ac4ea2ac9f24c7a25f464ca78e20e680b
|
[
"MIT"
] |
permissive
|
badiozam/concord
|
1987190d9aac2fb89b990e561acab6a59275bd7b
|
343842aa69f25ff9917e51936eabe72999b81407
|
refs/heads/master
| 2022-12-24T06:29:32.881068
| 2020-07-01T19:26:05
| 2020-07-01T19:26:05
| 149,226,043
| 0
| 0
|
MIT
| 2022-12-16T09:44:00
| 2018-09-18T03:53:29
|
Java
|
UTF-8
|
Java
| false
| false
| 4,626
|
java
|
/*
* MIT License
*
* Copyright (c) 2018 i4one Interactive, LLC
*
* 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.i4one.base.web.controller.admin;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.i4one.base.model.ClientType;
import com.i4one.base.model.client.SingleClient;
import com.i4one.base.model.manager.activity.ActivityPagination;
import com.i4one.base.model.manager.terminable.SimpleParsingTerminable;
import java.text.ParseException;
/**
* Report settings that allows a date range to be set for activity reports.
*
* @author Hamid Badiozamani
*/
public class ActivityReportSettings extends ReportSettings implements ClientType
{
private String timeStampColumn;
private transient boolean uniqueUsers;
private transient SimpleParsingTerminable parsingTerminable;
private transient SingleClient client;
public ActivityReportSettings()
{
super();
init(SingleClient.getRoot(), "timestamp");
}
public ActivityReportSettings(SingleClient client)
{
super();
init(client, "timestamp");
}
protected ActivityReportSettings(SingleClient client, String timeStampColumn)
{
super();
init(client, timeStampColumn);
}
private void init(SingleClient client, String timeStampColumn)
{
this.timeStampColumn = timeStampColumn;
this.uniqueUsers = false;
this.client = client;
parsingTerminable = new SimpleParsingTerminable(this);
parsingTerminable.setDateOnly(true);
initInternal();
}
protected void initInternal()
{
setShowTables(true);
setUniqueUsers(true);
}
@Override
public ActivityPagination getPagination()
{
ActivityPagination pagination = new ActivityPagination(timeStampColumn,
parsingTerminable.getStartTimeSeconds(),
parsingTerminable.getEndTimeSeconds(),
isUniqueUsers(),
super.getPagination());
pagination.setOrderBy(null);
return pagination;
}
@JsonIgnore
public String getStartTimeString()
{
return parsingTerminable.toDateString(getStartTimeSeconds());
}
@JsonIgnore
public void setStartTimeString(String startTimeStr) throws ParseException
{
setStartTimeSeconds(parsingTerminable.parseToSeconds(startTimeStr));
}
public int getStartTimeSeconds()
{
return parsingTerminable.getStartTimeSeconds();
}
public void setStartTimeSeconds(int startTimeSeconds)
{
parsingTerminable.setStartTimeSeconds(startTimeSeconds);
}
@JsonIgnore
public String getEndTimeString()
{
return parsingTerminable.toDateString(getEndTimeSeconds());
}
@JsonIgnore
public void setEndTimeString(String endTimeStr) throws ParseException
{
setEndTimeSeconds(parsingTerminable.parseToSeconds(endTimeStr));
}
public int getEndTimeSeconds()
{
return parsingTerminable.getEndTimeSeconds();
}
public void setEndTimeSeconds(int endTimeSeconds)
{
parsingTerminable.setEndTimeSeconds(endTimeSeconds);
}
@JsonIgnore
@Override
public SingleClient getClient()
{
return client;
}
@JsonIgnore
@Override
public void setClient(SingleClient client)
{
this.client = client;
}
@Override
protected void copyFromInternal(ReportSettings right)
{
super.copyFromInternal(right);
if ( right instanceof ActivityReportSettings )
{
ActivityReportSettings rightActivity = (ActivityReportSettings)right;
this.setStartTimeSeconds(rightActivity.getStartTimeSeconds());
this.setEndTimeSeconds(rightActivity.getEndTimeSeconds());
this.setUniqueUsers(rightActivity.isUniqueUsers());
}
}
public boolean isUniqueUsers()
{
return uniqueUsers;
}
public void setUniqueUsers(boolean uniqueUsers)
{
this.uniqueUsers = uniqueUsers;
}
}
|
[
"badiozam@yahoo.com"
] |
badiozam@yahoo.com
|
d3cfcd9f3918f0c9c3798403504def941045eb39
|
6ce88a15d15fc2d0404243ca8415c84c8a868905
|
/bitcamp-java-basic/src/step24/ex03/Exam04.java
|
c651ef0a2e32cd4a64823172052575e3685cc9c8
|
[] |
no_license
|
SangKyeongLee/bitcamp
|
9f6992ce2f3e4425f19b0af19ce434c4864e610b
|
a26991752920f280f6404565db2b13a0c34ca3d9
|
refs/heads/master
| 2021-01-24T10:28:54.595759
| 2018-08-10T07:25:57
| 2018-08-10T07:25:57
| 123,054,474
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 487
|
java
|
package step24.ex03;
public class Exam04 {
public static void main(String[] args) {
new Thread(new Runnable() {
@Override
public void run() {
for (int i = 0; i < 1000; i++) {
System.out.println("===> " + i);
}
}
}).start();
for (int i = 0; i < 1000; i++) {
System.out.println(">>>> " + i);
}
}
}
|
[
"sangkyeong.lee93@gmail.com"
] |
sangkyeong.lee93@gmail.com
|
803ff92ca9f20a2d7946587d6cc8b1311eecf5f2
|
e951240dae6e67ee10822de767216c5b51761bcb
|
/src/main/java/algorithms/ListNode.java
|
05e8aed14e68d1a191b452c8760adfaf33ab37c5
|
[] |
no_license
|
fengjiny/practice
|
b1315ca8800ba25b5d6fed64b0d68d870d84d1bb
|
898e635967f3387dc870c1ee53a95ba8a37d5e37
|
refs/heads/master
| 2021-06-03T09:20:35.904702
| 2020-10-26T10:45:03
| 2020-10-26T10:45:03
| 131,289,290
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 145
|
java
|
package algorithms;
public class ListNode {
public int val;
public ListNode next;
public ListNode(int x) {
val = x;
}
}
|
[
"fengjinyu@mobike.com"
] |
fengjinyu@mobike.com
|
7ad5b13772f68dff467f801a3323dd00250bb60d
|
ee40799e6ad93ac07e2580e890ae38e140f6132a
|
/src/RDPCrystalEDILibrary/ElementExclusionConstraint.java
|
c4f4bb77ee1f96cb622fb6cb86ab2f33ecc9a31f
|
[] |
no_license
|
Javonet-io-user/3e31e312-8b7c-43cc-a7c0-96ec31b56ad5
|
c2a96b7dbeb0a0abd788f76ecf64de756cbcd779
|
db68571c6724fe123032af7cd8603ebf7b3dc0a9
|
refs/heads/master
| 2020-04-15T16:17:08.109701
| 2019-01-09T09:10:38
| 2019-01-09T09:10:38
| 164,828,467
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,497
|
java
|
package RDPCrystalEDILibrary;
import Common.Activation;
import static Common.Helper.Convert;
import static Common.Helper.getGetObjectName;
import static Common.Helper.getReturnObjectName;
import static Common.Helper.ConvertToConcreteInterfaceImplementation;
import Common.Helper;
import com.javonet.Javonet;
import com.javonet.JavonetException;
import com.javonet.JavonetFramework;
import com.javonet.api.NObject;
import com.javonet.api.NEnum;
import com.javonet.api.keywords.NRef;
import com.javonet.api.keywords.NOut;
import com.javonet.api.NControlContainer;
import java.util.concurrent.atomic.AtomicReference;
import java.util.Iterator;
import java.lang.*;
import RDPCrystalEDILibrary.*;
public class ElementExclusionConstraint extends ElementPairConstraint {
public NObject javonetHandle;
public ElementExclusionConstraint() {
super((NObject) null);
try {
javonetHandle = Javonet.New("RDPCrystalEDILibrary.ElementExclusionConstraint");
super.setJavonetHandle(javonetHandle);
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
}
}
public ElementExclusionConstraint(NObject handle) {
super(handle);
this.javonetHandle = handle;
}
public void setJavonetHandle(NObject handle) {
this.javonetHandle = handle;
}
static {
try {
Activation.initializeJavonet();
} catch (java.lang.Exception e) {
e.printStackTrace();
}
}
}
|
[
"support@javonet.com"
] |
support@javonet.com
|
90698d8e2f1c855bb9e28e7888ff471e02ab925f
|
cfd346ab436b00ab9bfd98a5772e004d6a25451a
|
/dialog/OpenIDTokenBuilder/src/main/java/com/axiata/dialog/util/DbUtil.java
|
e9cb6ca4c3af99f475e5d3f92d028574a15e07db
|
[] |
no_license
|
Shasthojoy/wso2telcohub
|
74df08e954348c2395cb3bc4d59732cfae065dad
|
0f5275f1226d66540568803282a183e1e584bf85
|
refs/heads/master
| 2021-04-09T15:37:33.245057
| 2016-03-08T05:44:30
| 2016-03-08T05:44:30
| 125,588,468
| 0
| 0
| null | 2018-03-17T02:03:11
| 2018-03-17T02:03:11
| null |
UTF-8
|
Java
| false
| false
| 3,005
|
java
|
package com.axiata.dialog.util;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class DbUtil {
private static final Log log = LogFactory.getLog(DbUtil.class);
private static final String connectDataSourceName = "jdbc/CONNECT_DB";
private static volatile DataSource connectDatasource = null;
public static void initializeDataSource() throws Exception {
getConnectDataSource();
}
public static void getConnectDataSource() throws Exception {
if (connectDatasource != null) {
return;
}
if (connectDataSourceName != null) {
try {
Context ctx = new InitialContext();
connectDatasource = (DataSource) ctx
.lookup(connectDataSourceName);
} catch (NamingException e) {
throw new Exception("Error while looking up the data " + "source: "
+ connectDataSourceName);
}
}
}
public static Connection getConnectDBConnection() throws SQLException, Exception {
initializeDataSource();
if (connectDatasource != null) {
return connectDatasource.getConnection();
} else {
throw new SQLException(
"Connect Datasource not initialized properly.");
}
}
public static void closeAllConnections(PreparedStatement preparedStatement,
Connection connection, ResultSet resultSet) {
closeConnection(connection);
closeStatement(preparedStatement);
closeResultSet(resultSet);
}
/**
* Close Connection
* @param dbConnection Connection
*/
private static void closeConnection(Connection dbConnection) {
if (dbConnection != null) {
try {
dbConnection.close();
} catch (SQLException e) {
log.warn("Database error. Could not close database connection. Continuing with " +
"others. - " + e.getMessage(), e);
}
}
}
/**
* Close ResultSet
* @param resultSet ResultSet
*/
private static void closeResultSet(ResultSet resultSet) {
if (resultSet != null) {
try {
resultSet.close();
} catch (SQLException e) {
log.warn("Database error. Could not close ResultSet - " + e.getMessage(), e);
}
}
}
/**
* Close PreparedStatement
* @param preparedStatement PreparedStatement
*/
private static void closeStatement(PreparedStatement preparedStatement) {
if (preparedStatement != null) {
try {
preparedStatement.close();
} catch (SQLException e) {
log.warn("Database error. Could not close PreparedStatement. Continuing with" +
" others. - " + e.getMessage(), e);
}
}
}
}
|
[
"igunawardana@mitrai.com"
] |
igunawardana@mitrai.com
|
d3a96936d5295d66a26ff034fe88aa3dd103b4b1
|
a7e3300229f40b7c04b2f3f8859cb9e79c0d69e1
|
/Board/src/Board/UpdateFormAction.java
|
b737c3eaa554cc4405bc37d06062ac37370d885c
|
[] |
no_license
|
leeyeong87/Board
|
8d89179ffc8eec3ca31e9e377405d6b2ea498109
|
0a2cac128ff21dd011d9bc12dca645b14ec54796
|
refs/heads/master
| 2020-08-05T15:05:00.648141
| 2016-08-30T06:03:03
| 2016-08-30T06:03:03
| 66,911,359
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 789
|
java
|
package Board;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import Board.BoardDBBean;
import Board.BoardDataBean;
public class UpdateFormAction implements CommandAction{//글수정
public String requestPro(HttpServletRequest request,
HttpServletResponse response) throws Throwable {
int num = Integer.parseInt(request.getParameter("num"));
String pageNum = request.getParameter("pageNum");
BoardDBBean dbPro = BoardDBBean.getInstance();
BoardDataBean article = dbPro.updateGetArticle(num);
//해당 뷰에서 사용할 속성
request.setAttribute("pageNum", new Integer(pageNum));
request.setAttribute("article", article);
return "/board/updateForm.jsp";//해당 뷰
}
}
|
[
"user1@user1-PC"
] |
user1@user1-PC
|
4d6f059327a74e2e717f9c049decde6307cefa04
|
b2f07f3e27b2162b5ee6896814f96c59c2c17405
|
/com/sun/corba/se/spi/ior/iiop/ORBTypeComponent.java
|
502d79be664e3e3a3b78f14a13a8dfcef723689b
|
[] |
no_license
|
weiju-xi/RT-JAR-CODE
|
e33d4ccd9306d9e63029ddb0c145e620921d2dbd
|
d5b2590518ffb83596a3aa3849249cf871ab6d4e
|
refs/heads/master
| 2021-09-08T02:36:06.675911
| 2018-03-06T05:27:49
| 2018-03-06T05:27:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 372
|
java
|
package com.sun.corba.se.spi.ior.iiop;
import com.sun.corba.se.spi.ior.TaggedComponent;
public abstract interface ORBTypeComponent extends TaggedComponent
{
public abstract int getORBType();
}
/* Location: C:\Program Files\Java\jdk1.7.0_79\jre\lib\rt.jar
* Qualified Name: com.sun.corba.se.spi.ior.iiop.ORBTypeComponent
* JD-Core Version: 0.6.2
*/
|
[
"yuexiahandao@gmail.com"
] |
yuexiahandao@gmail.com
|
ae600294faa68c2a928e08e621ee4c2a6e9dbbd9
|
f28dce60491e33aefb5c2187871c1df784ccdb3a
|
/src/main/java/com/umeng/socialize/controller/j.java
|
0b178ebcd266343699978be8dba136ba9e1a99a0
|
[
"Apache-2.0"
] |
permissive
|
JackChan1999/boohee_v5.6
|
861a5cad79f2bfbd96d528d6a2aff84a39127c83
|
221f7ea237f491e2153039a42941a515493ba52c
|
refs/heads/master
| 2021-06-11T23:32:55.977231
| 2017-02-14T18:07:04
| 2017-02-14T18:07:04
| 81,962,585
| 8
| 6
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 642
|
java
|
package com.umeng.socialize.controller;
import com.umeng.socialize.bean.SocializeEntity;
import com.umeng.socialize.controller.d.a;
/* compiled from: UMSubServiceFactory */
enum j extends a {
j(String str,
int i
)
{
super(str, i);
}
public Object a(SocializeEntity socializeEntity, Object... objArr) {
return a("com.umeng.socialize.controller.impl.LikeServiceImpl", socializeEntity, objArr);
}
protected Object b(SocializeEntity socializeEntity, Object... objArr) {
String str = "init LikeService failed,please add SocialSDK_like.jar file";
return new k(this);
}
}
|
[
"jackychan2040@gmail.com"
] |
jackychan2040@gmail.com
|
2aa5516ed1dc491464ff0e80d94f1e766b9bc8c3
|
36a69181ab5fda658d848cde991172d2072e3bd8
|
/Day3/src/Assignment3/FindVowels.java
|
1782a00bfaeaf022237ad001f54b319854ded1c0
|
[] |
no_license
|
SaiBalaguru/DL1119BTAB5CL016
|
c284ffe74edb0bedc4ea899c3056ad5a7e3705ba
|
6d356209cbffb9008ce1adf0273e9acc8d05de54
|
refs/heads/master
| 2020-11-29T23:07:02.672342
| 2020-01-17T10:05:15
| 2020-01-17T10:05:15
| 230,235,049
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,201
|
java
|
package Assignment3;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;
public class FindVowels {
public static int size;
public static List<String> list = new ArrayList<>();
public static ArrayList<Integer> vow = new ArrayList<>();
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Enter the size of the list: ");
size = setSize();
setString();
findVowels();
System.out.println("Entered words are: ");
// for(String s: list) {
// System.out.println(s);
// }
Map<String,Integer> words = new HashMap<>();
for(int i=0;i<size;i++)
{
words.put(list.get(i), vow.get(i));
}
//System.out.println(words);
System.out.println("Enter the word to find vowels: ");
String check = new Scanner(System.in).nextLine();
Set<String> key = words.keySet();
Iterator<String> it = key.iterator();
if(words.containsKey(check)) {
while(it.hasNext()) {
String temp = it.next();
if(temp.equalsIgnoreCase(check)) {
System.out.println("Number of vowels: "+words.get(temp));
}
//System.out.println(temp+ " "+ words.get(temp));
}
}
else {
System.out.println("Invalid Key");
}
}
public static int setSize() {
Scanner sc = new Scanner(System.in);
return sc.nextInt();
}
public static void setString() {
Scanner sc = new Scanner(System.in);
for(int i=0;i<size;i++) {
System.out.println("Enter the Word: " + (i+1) + "\n");
list.add(sc.nextLine());
}
}
public static void findVowels() {
int count = 0, i =0;
Iterator<String> it = list.iterator();
while(it.hasNext()) {
String temp = it.next();
for(int j=0;j<temp.length();j++) {
if(temp.charAt(j)=='a' || temp.charAt(j)=='A' || temp.charAt(j)=='e' || temp.charAt(j)=='E' ||
temp.charAt(j)=='i' || temp.charAt(j)=='I' || temp.charAt(j)=='o' || temp.charAt(j)=='O' ||
temp.charAt(j)=='u' || temp.charAt(j)=='U') {
count++;
}
}
vow.add(count);
// System.out.println(vow.get(i));
// i++;
count = 0;
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
2f741b0269e4a05a652ea2471e682bf7b5288d9b
|
4ff81ab64f19e802bd5e98e3fdb32bc45efeb249
|
/src/main/java/xml_parsing/finalProject/learningXml/FinalTest.java
|
e391b956a3c19dc4f1cdd3266504c12adeab20f8
|
[] |
no_license
|
dixu11/small-projects
|
d21c87835e7912ec9420ca2e102be4f9693709b8
|
51ab11bb2323d3bb91ff91e7a438bba579af318e
|
refs/heads/master
| 2022-06-08T21:39:03.771932
| 2019-07-04T09:38:06
| 2019-07-04T09:38:06
| 195,213,045
| 0
| 0
| null | 2022-05-20T21:01:40
| 2019-07-04T09:37:03
|
Java
|
UTF-8
|
Java
| false
| false
| 319
|
java
|
package xml_parsing.finalProject.learningXml;
import java.util.Random;
public class FinalTest {
public static final String IMIE = "Bartek";
public static void main(String[] args) {
final String tekst = "blabal";
final int liczba = 10;
final Random random = new Random();
}
}
|
[
"daniel.szlicht25@gmail.com"
] |
daniel.szlicht25@gmail.com
|
1d345e0adfc0c0f6a88d9751003e7f099e6aee6b
|
66d3122f8f031d6e8b27e8ead7aa5ae0d7e33b45
|
/net/minecraft/server/function/CommandFunction.java
|
9c30aa3e7dd8979a62e0fce5f4a2bec7c4193c72
|
[] |
no_license
|
gurachan/minecraft1.14-dp
|
c10059787555028f87a4c8183ff74e6e1cfbf056
|
34daddc03be27d5a0ee2ab9bc8b1deb050277208
|
refs/heads/master
| 2022-01-07T01:43:52.836604
| 2019-05-08T17:18:13
| 2019-05-08T17:18:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,573
|
java
|
package net.minecraft.server.function;
import java.util.Optional;
import javax.annotation.Nullable;
import java.util.ArrayDeque;
import net.minecraft.server.command.ServerCommandSource;
import com.mojang.brigadier.ParseResults;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import com.mojang.brigadier.StringReader;
import com.google.common.collect.Lists;
import java.util.List;
import net.minecraft.util.Identifier;
public class CommandFunction
{
private final Element[] elements;
private final Identifier id;
public CommandFunction(final Identifier identifier, final Element[] arr) {
this.id = identifier;
this.elements = arr;
}
public Identifier getId() {
return this.id;
}
public Element[] getElements() {
return this.elements;
}
public static CommandFunction create(final Identifier identifier, final CommandFunctionManager commandFunctionManager, final List<String> fileLines) {
final List<Element> list4 = Lists.newArrayListWithCapacity(fileLines.size());
for (int integer5 = 0; integer5 < fileLines.size(); ++integer5) {
final int integer6 = integer5 + 1;
final String string7 = fileLines.get(integer5).trim();
final StringReader stringReader8 = new StringReader(string7);
if (stringReader8.canRead()) {
if (stringReader8.peek() != '#') {
if (stringReader8.peek() == '/') {
stringReader8.skip();
if (stringReader8.peek() == '/') {
throw new IllegalArgumentException("Unknown or invalid command '" + string7 + "' on line " + integer6 + " (if you intended to make a comment, use '#' not '//')");
}
final String string8 = stringReader8.readUnquotedString();
throw new IllegalArgumentException("Unknown or invalid command '" + string7 + "' on line " + integer6 + " (did you mean '" + string8 + "'? Do not use a preceding forwards slash.)");
}
else {
try {
final ParseResults<ServerCommandSource> parseResults9 = (ParseResults<ServerCommandSource>)commandFunctionManager.getServer().getCommandManager().getDispatcher().parse(stringReader8, commandFunctionManager.getFunctionCommandSource());
if (parseResults9.getReader().canRead()) {
if (parseResults9.getExceptions().size() == 1) {
throw (CommandSyntaxException)parseResults9.getExceptions().values().iterator().next();
}
if (parseResults9.getContext().getRange().isEmpty()) {
throw CommandSyntaxException.BUILT_IN_EXCEPTIONS.dispatcherUnknownCommand().createWithContext(parseResults9.getReader());
}
throw CommandSyntaxException.BUILT_IN_EXCEPTIONS.dispatcherUnknownArgument().createWithContext(parseResults9.getReader());
}
else {
list4.add(new CommandElement(parseResults9));
}
}
catch (CommandSyntaxException commandSyntaxException9) {
throw new IllegalArgumentException("Whilst parsing command on line " + integer6 + ": " + commandSyntaxException9.getMessage());
}
}
}
}
}
return new CommandFunction(identifier, list4.<Element>toArray(new Element[0]));
}
public static class CommandElement implements Element
{
private final ParseResults<ServerCommandSource> parsed;
public CommandElement(final ParseResults<ServerCommandSource> parseResults) {
this.parsed = parseResults;
}
@Override
public void execute(final CommandFunctionManager commandFunctionManager, final ServerCommandSource serverCommandSource, final ArrayDeque<CommandFunctionManager.Entry> arrayDeque, final int integer) throws CommandSyntaxException {
commandFunctionManager.getDispatcher().execute(new ParseResults(this.parsed.getContext().withSource(serverCommandSource), this.parsed.getReader(), this.parsed.getExceptions()));
}
@Override
public String toString() {
return this.parsed.getReader().getString();
}
}
public static class FunctionElement implements Element
{
private final LazyContainer function;
public FunctionElement(final CommandFunction commandFunction) {
this.function = new LazyContainer(commandFunction);
}
@Override
public void execute(final CommandFunctionManager commandFunctionManager, final ServerCommandSource serverCommandSource, final ArrayDeque<CommandFunctionManager.Entry> arrayDeque, final int integer) {
final Element[] arr6;
final int integer2;
final int integer3;
int integer4;
this.function.get(commandFunctionManager).ifPresent(commandFunction -> {
arr6 = commandFunction.getElements();
integer2 = integer - arrayDeque.size();
integer3 = Math.min(arr6.length, integer2);
for (integer4 = integer3 - 1; integer4 >= 0; --integer4) {
arrayDeque.addFirst(new CommandFunctionManager.Entry(commandFunctionManager, serverCommandSource, arr6[integer4]));
}
});
}
@Override
public String toString() {
return "function " + this.function.getId();
}
}
public static class LazyContainer
{
public static final LazyContainer EMPTY;
@Nullable
private final Identifier id;
private boolean initialized;
private Optional<CommandFunction> function;
public LazyContainer(@Nullable final Identifier identifier) {
this.function = Optional.<CommandFunction>empty();
this.id = identifier;
}
public LazyContainer(final CommandFunction commandFunction) {
this.function = Optional.<CommandFunction>empty();
this.initialized = true;
this.id = null;
this.function = Optional.<CommandFunction>of(commandFunction);
}
public Optional<CommandFunction> get(final CommandFunctionManager commandFunctionManager) {
if (!this.initialized) {
if (this.id != null) {
this.function = commandFunctionManager.getFunction(this.id);
}
this.initialized = true;
}
return this.function;
}
@Nullable
public Identifier getId() {
return this.function.<Identifier>map(commandFunction -> commandFunction.id).orElse(this.id);
}
static {
EMPTY = new LazyContainer((Identifier)null);
}
}
public interface Element
{
void execute(final CommandFunctionManager arg1, final ServerCommandSource arg2, final ArrayDeque<CommandFunctionManager.Entry> arg3, final int arg4) throws CommandSyntaxException;
}
}
|
[
"879139909@qq.com"
] |
879139909@qq.com
|
0ceac15fe8b7229ec8bd199637f8f307e9020939
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project68/src/test/java/org/gradle/test/performance68_3/Test68_289.java
|
1832558afa6052d35d8e2bad5a6b47b97d1cb3e9
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 292
|
java
|
package org.gradle.test.performance68_3;
import static org.junit.Assert.*;
public class Test68_289 {
private final Production68_289 production = new Production68_289("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
93565bd7116aa6e16880b9ae06a125264e149d6d
|
748b97febae0619e54d0ddcf8a3d67a1cee1100b
|
/src/main/java/com/oozinoz/util/LeafIterator.java
|
6d0c6e362ae6704a837076f9923d19684aeef23b
|
[] |
no_license
|
andyglick/design-patterns-java-workbook-ooznoz
|
d4549ef893517017b8f15be3cf498b5a1873eec0
|
7e80d5d871faabab064a7334f974b0a2203059e1
|
refs/heads/master
| 2023-07-08T11:44:31.309558
| 2020-05-04T05:00:57
| 2020-05-04T05:00:57
| 261,085,185
| 0
| 1
| null | 2023-04-17T19:49:55
| 2020-05-04T05:05:38
|
Java
|
UTF-8
|
Java
| false
| false
| 1,480
|
java
|
package com.oozinoz.util;
import java.util.*;
/*
* Copyright (c) 2001 Steven J. Metsker.
*
* Steve Metsker makes no representations or warranties about
* the fitness of this software for any particular purpose,
* including the implied warranty of merchantability.
*
* Please use this software as you wish with the sole
* restriction that you may not claim that you wrote it.
*/
/**
* Iterate over a leaf, returning it just once.
*
* @author Steven J. Metsker
*
*/
public class LeafIterator extends ComponentIterator
{
/**
* Create an iterator over a childless node in a composite.
*
* @param node the childless node
* @param visited a set to track visited nodes
*/
public LeafIterator(Object node, Set visited)
{
super(node, visited);
}
/**
* Return zero, as the depth of iterators below a leaf is
* always zero.
*
* @return zero, as the depth of iterators below a leaf is
* always zero
*/
public int depth()
{
return 0;
}
/**
* Return true if we haven't actually returned our node
* yet.
*
* @return true if we haven't actually returned our
* node yet.
*/
public boolean hasNext()
{
return !visited.contains(node);
}
/**
* Return this node if we haven't returned it previously;
* otherwise return null.
*
* @return this node if we haven't returned it previously;
* otherwise return null.
*/
public Object next()
{
if (visited.contains(node))
{
return null;
}
visited.add(node);
return node;
}
}
|
[
"andyglick@gmail.com"
] |
andyglick@gmail.com
|
a457a678b8874366836886d71da700734a328d19
|
c75983ad19ee28f43ee92fbd417a85ae8b703e8c
|
/src/main/java/com/synechron/onlineacc/util/Util.java
|
06ba09170d8d3f996c086dc17851e35320982bf1
|
[] |
no_license
|
ravikalla/devops-selfservice-enterprise
|
9350c25331b8d23c958edfca6069525e5c9022ff
|
f166e7184399b65167ea590a032f9955207b043f
|
refs/heads/master
| 2021-07-15T22:57:18.424729
| 2020-09-03T04:09:24
| 2020-09-03T04:09:24
| 244,240,541
| 0
| 0
| null | 2021-03-31T21:50:06
| 2020-03-01T23:30:56
|
Java
|
UTF-8
|
Java
| false
| false
| 280
|
java
|
package com.synechron.onlineacc.util;
public class Util {
public static String createDefectInfo(String strTemplate, ProjectType projectType, OrgName newOrgName) {
return strTemplate.replace("<LOB>", newOrgName.toString()).replace("<TECHNOLOGY>", projectType.toString());
}
}
|
[
"ravi2523096@gmail.com"
] |
ravi2523096@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.