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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ee8c8cdea152b997caf8d6a90559995f8ff623ff
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/103/org/apache/commons/math/ode/DormandPrince853StepInterpolator_writeExternal_265.java
|
efc6ffdd14d7daceafe3e0c32b14f27d34b1025d
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 1,144
|
java
|
org apach common math od
repres interpol step
od integr dormand princ integr
dormand prince853 integr dormandprince853integr
version dormand prince853 step interpol dormandprince853stepinterpol java 39z luc
dormand prince853 step interpol dormandprince853stepinterpol
save state instanc
param stream save state
except except ioexcept write error
write extern writeextern object output objectoutput
except ioexcept
save local attribut
final step finalizestep
deriv except derivativeexcept
except ioexcept messag getmessag
write int writeint current state currentst length
current state currentst length
write doubl writedoubl dot ydotklast
write doubl writedoubl dot ydotklast
write doubl writedoubl dot ydotklast
save state base
write extern writeextern
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
e4b7bddacdcb3435bca41580be0a3a4b95ea5a3e
|
49d567a7c51da3ad6bdf45acfcfd14e8656bf621
|
/src/main/java/ShortestDistanceFromAllBuildings.java
|
e4b0db4a3df1cc06f5e5f03954d470b52417cb8b
|
[] |
no_license
|
nassimbg/Problems
|
8528c05c3f47996f045eb8bf4d1a56271e04de45
|
6c0fb58ae46e66bce6537ea606b6677d2f1ba399
|
refs/heads/master
| 2021-06-06T09:04:51.633473
| 2021-03-10T10:01:36
| 2021-03-10T10:01:36
| 93,439,590
| 0
| 1
| null | 2020-11-15T11:37:57
| 2017-06-05T19:37:27
|
Java
|
UTF-8
|
Java
| false
| false
| 4,943
|
java
|
import java.util.ArrayDeque;
import java.util.Deque;
public class ShortestDistanceFromAllBuildings {
public static int shortestDistanceBFS(int[][] grid) {
int numberOfOnes = 0;
for (int row = 0; row < grid.length; row++) {
for (int col = 0; col < grid[0].length; col++) {
if (grid[row][col] == 1) {
numberOfOnes++;
}
}
}
int minDistance = Integer.MAX_VALUE;
for (int row = 0; row < grid.length; row++) {
for (int col = 0; col < grid[0].length; col++) {
if (grid[row][col] == 0) {
minDistance = Math.min(minDistance, getShortest(grid,new boolean[ grid.length][ grid[0].length], row, col, numberOfOnes));
}
}
}
return minDistance;
}
private static int getShortest(int[][] grid, boolean[][] visited, int row, int col, int numberOfOnes) {
Deque<Point> queue = new ArrayDeque<>();
queue.addLast(new Point(row, col));
int level = -1;
int distance = 0;
int reachableOnes = 0;
while (!queue.isEmpty()) {
int levelSize = queue.size();
level++;
for (int counter = 0; counter < levelSize; counter++) {
Point point = queue.pollFirst();
int currentRow = point.row;
int currentCol = point.col;
if (grid[currentRow][currentCol] == 1) {
distance += level;
reachableOnes++;
}
if (grid[currentRow][currentCol] == 0) {
addPoint(grid, currentRow + 1, currentCol, queue, visited);
addPoint(grid, currentRow - 1, currentCol, queue, visited);
addPoint(grid, currentRow , currentCol + 1, queue, visited);
addPoint(grid, currentRow , currentCol -1, queue, visited);
}
}
}
return reachableOnes == numberOfOnes ? distance : Integer.MAX_VALUE;
}
private static void addPoint(int[][] grid, int row, int col, Deque<Point> queue, boolean[][] visited) {
if (row >= 0 && row < grid.length && col >= 0 && col < grid[0].length && grid[row][col] != 2 && !visited[row][col]) {
visited[row][col] = true;
queue.addLast(new Point(row, col));
}
}
private static class Point {
private final int row;
private final int col;
private Point(int row, int col) {
this.row = row;
this.col = col;
}
}
/**
* we should add also to check that an empty spot reaches all buildings
* @param matrix
* @return
*/
public static int SolutionDFS(int[][] matrix) {
if (matrix.length == 0 || matrix[0].length == 0) {
return 0;
}
int rows = matrix.length;
int columns = matrix[0].length;
int shortestPath = Integer.MAX_VALUE;
for (int rowIndex = 0; rowIndex < rows; rowIndex++) {
for (int columnIndex = 0; columnIndex < columns; columnIndex++) {
if (matrix[rowIndex][columnIndex] == 0) {
int[][] visited = new int[rows][columns];
visited[rowIndex][columnIndex] = Integer.MAX_VALUE;
int currentPath = getShortestPath(matrix, visited, rowIndex, columnIndex, 0);
if (currentPath != 0) {
shortestPath = Math.min(shortestPath, currentPath);
}
}
}
}
return shortestPath;
}
private static int getShortestPath(int[][] matrix, int[][] visited, int rowIndex, int columnIndex, int distance) {
if (rowIndex >= matrix.length || rowIndex < 0 || columnIndex < 0 || columnIndex >= matrix[rowIndex].length || matrix[rowIndex][columnIndex] == 2) {
return 0;
}
int previousDistance = visited[rowIndex][columnIndex];
if (matrix[rowIndex][columnIndex] == 1) {
int distanceToAdd = 0;
if (previousDistance == 0 || distance < previousDistance) {
visited[rowIndex][columnIndex] = distance;
distanceToAdd = distance - previousDistance;
}
return distanceToAdd;
}
if (matrix[rowIndex][columnIndex] == 0 && (previousDistance == 0 || distance < previousDistance )) {
if (previousDistance != Integer.MAX_VALUE) {
visited[rowIndex][columnIndex] = distance;
}
int nextDistance = distance + 1;
return getShortestPath(matrix, visited, rowIndex + 1, columnIndex, nextDistance) +
getShortestPath(matrix, visited, rowIndex - 1, columnIndex, nextDistance) +
getShortestPath(matrix, visited, rowIndex, columnIndex + 1, nextDistance) +
getShortestPath(matrix, visited, rowIndex, columnIndex - 1, nextDistance);
}
return 0;
}
}
|
[
"nassimboughannam@gmail.com"
] |
nassimboughannam@gmail.com
|
dffb5e6b2288c065d37c4a22a676c0c4f3a9bf0b
|
9a6ea6087367965359d644665b8d244982d1b8b6
|
/src/main/java/com/whatsapp/payments/ui/BrazilPaymentTransactionDetailActivity.java
|
c3d55a0a6d8470473285c4f2865cfa3d29ad2169
|
[] |
no_license
|
technocode/com.wa_2.21.2
|
a3dd842758ff54f207f1640531374d3da132b1d2
|
3c4b6f3c7bdef7c1523c06d5bd9a90b83acc80f9
|
refs/heads/master
| 2023-02-12T11:20:28.666116
| 2021-01-14T10:22:21
| 2021-01-14T10:22:21
| 329,578,591
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,355
|
java
|
package com.whatsapp.payments.ui;
import X.AbstractC11910hD;
import X.AnonymousClass3YN;
import X.C62952vc;
import X.C63272w9;
import X.C63372wJ;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import com.google.android.search.verification.client.R;
public class BrazilPaymentTransactionDetailActivity extends PaymentTransactionDetailsListActivity {
public final C62952vc A00 = C62952vc.A00();
public final C63272w9 A01 = C63272w9.A00();
@Override // X.ActivityC09470d0, com.whatsapp.payments.ui.PaymentTransactionDetailsListActivity
public AbstractC11910hD A0T(ViewGroup viewGroup, int i) {
if (i != 1000) {
return super.A0T(viewGroup, i);
}
return new AnonymousClass3YN(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.payment_transaction_merchant_upgrade_banner, viewGroup, false));
}
@Override // com.whatsapp.payments.ui.PaymentTransactionDetailsListActivity
public void A0U(C63372wJ r5) {
if (r5.A00 != 501) {
super.A0U(r5);
return;
}
String A02 = this.A00.A02(false);
if (A02 != null) {
Intent intent = new Intent(this, BrazilPayBloksActivity.class);
intent.putExtra("screen_name", A02);
A0I(intent, false);
}
}
}
|
[
"madeinborneo@gmail.com"
] |
madeinborneo@gmail.com
|
80e98c3b0bbf6f7a5c1112a0258d5398e90affc8
|
66cd20e31dc99d9470f8df83dfd6ce4a4e001f7b
|
/F14bgServerNew/src/com/f14/TTA/consts/TTAConsts.java
|
88f507c5d934ce06a9435558d2468629b5c81a66
|
[] |
no_license
|
mkuymkuy/F14BGCode
|
0b2fb4e6e801cd2f049e8f2301de5359af88ac59
|
d9666bf330a2d0983aadcccf96459e9cef6266a0
|
refs/heads/master
| 2020-05-29T14:37:17.785831
| 2016-07-08T10:46:29
| 2016-07-08T10:46:29
| 62,881,446
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 268
|
java
|
package com.f14.TTA.consts;
/**
* TTA的一些常量
*
* @author F14eagle
*
*/
public class TTAConsts {
/**
* 摸牌区的卡牌数量
*/
public static final int CARD_ROW_SIZE = 13;
/**
* 最大时代限制
*/
public static final int MAX_AGE = 3;
}
|
[
"make@microsoft.com"
] |
make@microsoft.com
|
2fc086713a62e788d5953236d11b45f154f2b69b
|
0970838005661208f643b8801e7369f468441053
|
/src/main/java/com/glqdlt/myhome/apigateway/controller/CrawController.java
|
348160e64a6dfe9053073d68d4919fabf0ef896a
|
[] |
no_license
|
glqdlt/api-gateway
|
b5c4ab07dc73dd588741ad81233be165c6285b14
|
1fd79e7604b7a6532259396bf9906d5c79a0fe17
|
refs/heads/master
| 2021-09-05T10:11:24.395410
| 2018-01-26T09:17:38
| 2018-01-26T09:17:38
| 114,526,102
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 919
|
java
|
package com.glqdlt.myhome.apigateway.controller;
import com.glqdlt.myhome.apigateway.service.RestDeliveryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@CrossOrigin
@RestController
@RequestMapping("/craw")
public class CrawController {
@Autowired
RestDeliveryService restDeliveryService;
@RequestMapping(value = "/search/all", method = RequestMethod.GET)
public ResponseEntity<Object[]> getCrawAll() {
return new ResponseEntity<>(restDeliveryService.crawSearchAll(), HttpStatus.OK);
}
@RequestMapping(value = "/search/{page}", method = RequestMethod.GET)
public Object getCrawPage(@PathVariable int page) {
return new ResponseEntity<>(restDeliveryService.crawSearchPage(page), HttpStatus.OK);
}
}
|
[
"dlfdnd0725@gmail.com"
] |
dlfdnd0725@gmail.com
|
383ea25249b16bc6dee2cef74f17d635ce3a811e
|
f4588199a6ea01d2eff01eb905a60957ee57727f
|
/introduction-to-vertx/my-first-app/src/test/java/io/vertx/blog/first/MyRestIT.java
|
1498e3fe70517427713fed8a13dc0bb679db65ad
|
[] |
no_license
|
emag-notes/vertx-notes
|
134c2dcbfe5f4851856ab56b052ede9780fdef98
|
eae714b3fc9595bca2ee51c4797ced21efd3a120
|
refs/heads/master
| 2020-12-25T14:08:41.175841
| 2016-06-28T14:55:11
| 2016-06-28T16:50:39
| 61,640,429
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,963
|
java
|
package io.vertx.blog.first;
import com.jayway.restassured.RestAssured;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import static com.jayway.restassured.RestAssured.delete;
import static com.jayway.restassured.RestAssured.get;
import static com.jayway.restassured.RestAssured.given;
import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.Matchers.equalTo;
public class MyRestIT {
@BeforeClass
public static void configureRestAssured() {
RestAssured.baseURI = "http://localhost";
RestAssured.port = Integer.getInteger("http.port", 8080);
}
@AfterClass
public static void unconfigureRestAssured() {
RestAssured.reset();
}
@Test
public void checkThatWeCanRetrieveIndividualProduct() {
int id = get("/api/whiskies").then()
.assertThat()
.statusCode(200)
.extract()
.jsonPath()
.getInt("find { it.name=='Bowmore 15 Years Laimrig' }.id");
get("/api/whiskies/" + id).then()
.assertThat()
.statusCode(200)
.body("name", equalTo("Bowmore 15 Years Laimrig"))
.body("id", equalTo(id));
}
@Test
public void checkWeCanAddAndDeleteAProduct() {
Whisky whisky = given()
.body("{\"name\":\"Jameson\", \"origin\":\"Ireland\"}")
.request().post("/api/whiskies").thenReturn().as(Whisky.class);
assertThat(whisky.getName()).isEqualToIgnoringCase("Jameson");
assertThat(whisky.getOrigin()).isEqualToIgnoringCase("Ireland");
assertThat(whisky.getId()).isNotZero();
get("/api/whiskies/" + whisky.getId()).then()
.assertThat()
.statusCode(200)
.body("name", equalTo("Jameson"))
.body("origin", equalTo("Ireland"))
.body("id", equalTo(whisky.getId()));
delete("/api/whiskies/" + whisky.getId()).then()
.assertThat()
.statusCode(204);
get("/api/whiskies/" + whisky.getId()).then()
.assertThat()
.statusCode(404);
}
}
|
[
"lanabe.lanabe@gmail.com"
] |
lanabe.lanabe@gmail.com
|
554486ace746885c04158e557435069feb7cc481
|
48ae8e24dfe5a8e099eb1ce2d14c9a24f48975cc
|
/Product/Production/Services/PatientDiscoveryCore/src/main/java/gov/hhs/fha/nhinc/patientdiscovery/aspect/CommunityPRPAIN201306UV02Builder.java
|
31f2ebfbdf80cbba75a764acdd1e048f756c88c4
|
[
"BSD-3-Clause"
] |
permissive
|
CONNECT-Continuum/Continuum
|
f12394db3cc8b794fdfcb2cb3224e4a89f23c9d5
|
23acf3ea144c939905f82c59ffeff221efd9cc68
|
refs/heads/master
| 2022-12-16T15:04:50.675762
| 2019-09-07T16:14:08
| 2019-09-07T16:14:08
| 206,986,335
| 0
| 0
|
NOASSERTION
| 2022-12-05T23:32:14
| 2019-09-07T15:18:59
|
Java
|
UTF-8
|
Java
| false
| false
| 4,730
|
java
|
/*
* Copyright (c) 2009-2019, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above
* copyright notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* * Neither the name of the United States Government nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE UNITED STATES GOVERNMENT BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package gov.hhs.fha.nhinc.patientdiscovery.aspect;
import com.google.common.base.Function;
import com.google.common.base.Optional;
import gov.hhs.fha.nhinc.event.AssertionEventDescriptionBuilder;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.hl7.v3.CommunityPRPAIN201306UV02ResponseType;
import org.hl7.v3.PRPAIN201306UV02;
import org.hl7.v3.RespondingGatewayPRPAIN201306UV02ResponseType;
public class CommunityPRPAIN201306UV02Builder extends AssertionEventDescriptionBuilder {
private PRPAIN201306UV02HCIDExtractor hcidExtractor = new PRPAIN201306UV02HCIDExtractor();
private PRPAIN201306UV02StatusExtractor statusExtractor = new PRPAIN201306UV02StatusExtractor();
private Optional<RespondingGatewayPRPAIN201306UV02ResponseType> response = Optional.absent();
@Override
public void buildTimeStamp() {
// no time stamp here
}
@Override
public void buildStatuses() {
setStatuses(new ArrayList<>(applyExtractor(statusExtractor)));
}
@Override
public void buildRespondingHCIDs() {
setRespondingHCIDs(new ArrayList<>(applyExtractor(hcidExtractor)));
}
@Override
public void buildPayloadTypes() {
// no payload type here
}
@Override
public void buildPayloadSizes() {
// no payload size here
}
@Override
public void buildErrorCodes() {
// no error codes here
}
@Override
public void setArguments(Object... arguments) {
extractAssertion(arguments);
}
@Override
public void setReturnValue(Object returnValue) {
if (returnValue != null) {
response = Optional.of((RespondingGatewayPRPAIN201306UV02ResponseType) returnValue);
} else {
response = Optional.absent();
}
}
void setHCIDExtractor(PRPAIN201306UV02HCIDExtractor hcidExtractor) {
this.hcidExtractor = hcidExtractor;
}
void setStatusExtractor(PRPAIN201306UV02StatusExtractor statusExtractor) {
this.statusExtractor = statusExtractor;
}
private Set<String> applyExtractor(Function<PRPAIN201306UV02, Set<String>> function) {
if (!response.isPresent()) {
return Collections.EMPTY_SET;
}
Set<String> result = new HashSet<>();
for (PRPAIN201306UV02 item : unwrap(response.get())) {
result.addAll(function.apply(item));
}
return result;
}
private Iterable<PRPAIN201306UV02> unwrap(RespondingGatewayPRPAIN201306UV02ResponseType input) {
List<PRPAIN201306UV02> result = new ArrayList<>();
for (CommunityPRPAIN201306UV02ResponseType community : input.getCommunityResponse()) {
if (community.getPRPAIN201306UV02() != null) {
result.add(community.getPRPAIN201306UV02());
}
}
return result;
}
Optional<RespondingGatewayPRPAIN201306UV02ResponseType> getReturnValue() {
return response;
}
}
|
[
"minh-hai.nguyen@cgi.com"
] |
minh-hai.nguyen@cgi.com
|
cff3abcaa6369abec7be8c67384fa8339fde7390
|
75950d61f2e7517f3fe4c32f0109b203d41466bf
|
/modules/tags/fabric3-modules-parent-pom-0.7/extension/implementation/fabric3-rs/src/main/java/org/fabric3/rs/runtime/RsSourceWireAttacher.java
|
69235e8a46da7c21f0edac071f299e58f98741e6
|
[] |
no_license
|
codehaus/fabric3
|
3677d558dca066fb58845db5b0ad73d951acf880
|
491ff9ddaff6cb47cbb4452e4ddbf715314cd340
|
refs/heads/master
| 2023-07-20T00:34:33.992727
| 2012-10-31T16:32:19
| 2012-10-31T16:32:19
| 36,338,853
| 0
| 0
| null | null | null | null |
MacCentralEurope
|
Java
| false
| false
| 6,261
|
java
|
/*
* Fabric3
* Copyright © 2008 Metaform Systems Limited
*
* This proprietary software may be used only connection with the Fabric3 license
* (the “License”), a copy of which is included in the software or may be
* obtained at: http://www.metaformsystems.com/licenses/license.html.
* Software distributed under the License is distributed on an “as is” basis,
* without warranties or conditions of any kind. See the License for the
* specific language governing permissions and limitations of use of the software.
* This software is distributed in conjunction with other software licensed under
* different terms. See the separate licenses for those programs included in the
* distribution for the permitted and restricted uses of such software.
*
*/
package org.fabric3.rs.runtime;
import java.lang.reflect.Method;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;
import org.fabric3.rs.provision.RsWireSourceDefinition;
import org.fabric3.rs.runtime.rs.RsWebApplication;
import org.fabric3.spi.ObjectFactory;
import org.fabric3.spi.classloader.ClassLoaderRegistry;
import org.fabric3.spi.builder.WiringException;
import org.fabric3.spi.builder.component.SourceWireAttacher;
import org.fabric3.spi.builder.component.WireAttachException;
import org.fabric3.spi.host.ServletHost;
import org.fabric3.spi.invocation.Message;
import org.fabric3.spi.invocation.MessageImpl;
import org.fabric3.spi.invocation.WorkContext;
import org.fabric3.spi.model.physical.PhysicalOperationDefinition;
import org.fabric3.spi.model.physical.PhysicalWireTargetDefinition;
import org.fabric3.spi.wire.Interceptor;
import org.fabric3.spi.wire.InvocationChain;
import org.fabric3.spi.wire.Wire;
import org.osoa.sca.annotations.EagerInit;
import org.osoa.sca.annotations.Reference;
/**
* @version $Rev$ $Date$
*/
@EagerInit
public class RsSourceWireAttacher implements SourceWireAttacher<RsWireSourceDefinition> {
private final ClassLoaderRegistry classLoaderRegistry;
private final ServletHost servletHost;
private final Map<URI, RsWebApplication> webApplications = new ConcurrentHashMap<URI, RsWebApplication>();
public RsSourceWireAttacher(@Reference ServletHost servletHost, @Reference ClassLoaderRegistry classLoaderRegistry) {
this.servletHost = servletHost;
this.classLoaderRegistry = classLoaderRegistry;
}
public void attachToSource(RsWireSourceDefinition sourceDefinition,
PhysicalWireTargetDefinition targetDefinition,
Wire wire) throws WireAttachException {
URI sourceUri = sourceDefinition.getUri();
RsWebApplication application = webApplications.get(sourceUri);
if (application == null) {
application = new RsWebApplication(getClass().getClassLoader());
webApplications.put(sourceUri, application);
String servletMapping = sourceUri.getPath();
if (!servletMapping.endsWith("/*")) {
servletMapping = servletMapping + "/*";
}
servletHost.registerMapping(servletMapping, application);
}
try {
provision(sourceDefinition, wire, application);
} catch (ClassNotFoundException e) {
String name = sourceDefinition.getInterfaceName();
throw new WireAttachException("Unable to load interface class [" + name + "]", sourceUri, null, e);
}
}
public void detachFromSource(RsWireSourceDefinition source, PhysicalWireTargetDefinition target) throws WiringException {
throw new AssertionError();
}
public void attachObjectFactory(RsWireSourceDefinition source, ObjectFactory<?> objectFactory, PhysicalWireTargetDefinition target) throws WiringException {
throw new AssertionError();
}
public void detachObjectFactory(RsWireSourceDefinition source, PhysicalWireTargetDefinition target) throws WiringException {
throw new AssertionError();
}
private class RsMethodInterceptor implements MethodInterceptor {
private Map<String, InvocationChain> invocationChains;
private RsMethodInterceptor(Map<String, InvocationChain> invocationChains) {
this.invocationChains = invocationChains;
}
public Object intercept(Object object, Method method, Object[] args, MethodProxy proxy) throws Throwable {
Message message = new MessageImpl(args, false, new WorkContext());
InvocationChain invocationChain = invocationChains.get(method.getName());
if (invocationChain != null) {
Interceptor headInterceptor = invocationChain.getHeadInterceptor();
Message ret = headInterceptor.invoke(message);
if (ret.isFault()) {
throw (Throwable) ret.getBody();
} else {
return ret.getBody();
}
} else {
return null;
}
}
}
private void provision(RsWireSourceDefinition sourceDefinition, Wire wire, RsWebApplication application)
throws ClassNotFoundException {
ClassLoader classLoader = classLoaderRegistry.getClassLoader(sourceDefinition.getClassLoaderId());
Map<String, InvocationChain> invocationChains = new HashMap<String, InvocationChain>();
for (Map.Entry<PhysicalOperationDefinition, InvocationChain> entry : wire.getInvocationChains().entrySet()) {
invocationChains.put(entry.getKey().getName(), entry.getValue());
}
MethodInterceptor methodInterceptor = new RsMethodInterceptor(invocationChains);
Class<?> interfaze = classLoader.loadClass(sourceDefinition.getInterfaceName());
Enhancer enhancer = new Enhancer();
enhancer.setSuperclass(interfaze);
enhancer.setCallback(methodInterceptor);
Object instance = enhancer.create();
application.addServiceHandler(interfaze, instance);
}
}
|
[
"meerajk@83866bfc-822f-0410-aa35-bd5043b85eaf"
] |
meerajk@83866bfc-822f-0410-aa35-bd5043b85eaf
|
1bdc53446d302ad6423ac87773dcfe29d6f070a7
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/25/25_5df4c58f2c07d4474eb2f1b6a7eb05d81a031353/SelectComponentOptionCompleter/25_5df4c58f2c07d4474eb2f1b6a7eb05d81a031353_SelectComponentOptionCompleter_s.java
|
a63434cc0c375021c685dfc144f5f242cc2cef46
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,938
|
java
|
/**
* Copyright 2013 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.addon.shell.aesh.completion;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.jboss.aesh.cl.completer.CompleterData;
import org.jboss.aesh.cl.completer.OptionCompleter;
import org.jboss.aesh.parser.Parser;
import org.jboss.forge.addon.convert.Converter;
import org.jboss.forge.addon.convert.ConverterFactory;
import org.jboss.forge.addon.ui.input.ManyValued;
import org.jboss.forge.addon.ui.input.SelectComponent;
import org.jboss.forge.addon.ui.input.UISelectMany;
import org.jboss.forge.addon.ui.input.UISelectOne;
import org.jboss.forge.addon.ui.util.InputComponents;
/**
* Called when auto-completion of a {@link UISelectOne} or {@link UISelectMany} component is needed
*
* @author <a href="ggastald@redhat.com">George Gastaldi</a>
*/
class SelectComponentOptionCompleter implements OptionCompleter
{
private final SelectComponent<?, Object> selectComponent;
private final ConverterFactory converterFactory;
public SelectComponentOptionCompleter(SelectComponent<?, Object> selectComponent,
ConverterFactory converterFactory)
{
super();
this.selectComponent = selectComponent;
this.converterFactory = converterFactory;
}
@SuppressWarnings("unchecked")
@Override
public void complete(final CompleterData completerData)
{
final String completeValue = completerData.getGivenCompleteValue();
Converter<Object, String> itemLabelConverter = (Converter<Object, String>) InputComponents
.getItemLabelConverter(converterFactory, selectComponent);
Iterable<Object> valueChoices = selectComponent.getValueChoices();
List<String> choices = new ArrayList<String>();
for (Object choice : valueChoices)
{
String convert = itemLabelConverter.convert(choice);
if (convert != null)
{
choices.add(convert);
}
}
// Remove already set values in many valued components
if (selectComponent instanceof ManyValued)
{
Object value = InputComponents.getValueFor(selectComponent);
if (value != null)
{
if (value instanceof Iterable)
{
Iterator<Object> it = ((Iterable<Object>) value).iterator();
while (it.hasNext())
{
Object next = it.next();
String convert = itemLabelConverter.convert(next);
choices.remove(convert);
}
}
else
{
String convert = itemLabelConverter.convert(value);
choices.remove(convert);
}
}
}
if (choices.size() > 1)
{
String startsWith = Parser.findStartsWith(choices);
if (startsWith.length() > completeValue.length())
{
String substring = startsWith.substring(completeValue.length());
completerData.addCompleterValue(Parser.switchSpacesToEscapedSpacesInWord(substring));
completerData.setAppendSpace(false);
}
else
{
for (String choice : choices)
{
if (completeValue.isEmpty() || choice.startsWith(completeValue))
{
completerData.addCompleterValue(Parser.switchSpacesToEscapedSpacesInWord(choice));
}
}
}
}
else if (choices.size() == 1)
{
String candidate = choices.get(0).substring(completeValue.length());
completerData.addCompleterValue(Parser.switchSpacesToEscapedSpacesInWord(candidate));
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
2b6f3c8ffe561cdf122b40e68be6ef8293d7fba2
|
7acafea40b729f189a8e09f16dd41267a736de5f
|
/test/list/src/test/java/test/list/LinkedListTest.java
|
881fde462a431d6be46e46ad85be451700b956fe
|
[] |
no_license
|
big-guy/gradle-issue-repros
|
c1cd0f8f11cbd60d6588d4cf5ce1c6162579dfc9
|
7d32a2f8329707c1884648755b75715f639fc3a9
|
refs/heads/master
| 2022-12-09T09:47:24.620390
| 2020-09-17T20:10:15
| 2020-09-17T20:10:15
| 296,429,995
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,205
|
java
|
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package test.list;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class LinkedListTest {
@Test public void testConstructor() {
LinkedList list = new LinkedList();
assertEquals(0, list.size());
}
@Test public void testAdd() {
LinkedList list = new LinkedList();
list.add("one");
assertEquals(1, list.size());
assertEquals("one", list.get(0));
list.add("two");
assertEquals(2, list.size());
assertEquals("two", list.get(1));
}
@Test public void testRemove() {
LinkedList list = new LinkedList();
list.add("one");
list.add("two");
assertTrue(list.remove("one"));
assertEquals(1, list.size());
assertEquals("two", list.get(0));
assertTrue(list.remove("two"));
assertEquals(0, list.size());
}
@Test public void testRemoveMissing() {
LinkedList list = new LinkedList();
list.add("one");
list.add("two");
assertFalse(list.remove("three"));
assertEquals(2, list.size());
}
}
|
[
"sterling.greene@gmail.com"
] |
sterling.greene@gmail.com
|
c0bb89dceb671d0dac7b3dbdddf420cac097c073
|
d7de0da0ceeb00ab4f61fafd9976f89a87ee5457
|
/src/main/java/pl/java/scalatech/config/JpaEmbeddedConfig.java
|
2fedc63f7698b919f92f8002921b1bd977798acb
|
[
"Apache-2.0"
] |
permissive
|
przodownikR1/jpaPlugin
|
7c6db05965c29d69b8c19cdb14cded8d59d562e5
|
53d1c8e563a11094fffa2498f79eefd3f2ba3888
|
refs/heads/master
| 2021-01-19T14:22:20.906236
| 2014-12-15T14:58:57
| 2014-12-15T14:58:57
| 28,037,997
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,955
|
java
|
package pl.java.scalatech.config;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import javax.sql.DataSource;
import lombok.extern.slf4j.Slf4j;
import net.sf.log4jdbc.tools.Log4JdbcCustomFormatter;
import net.sf.log4jdbc.tools.LoggingType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Profile;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
import org.springframework.orm.jpa.JpaDialect;
import org.springframework.orm.jpa.JpaTransactionManager;
import org.springframework.orm.jpa.JpaVendorAdapter;
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
import org.springframework.orm.jpa.vendor.Database;
import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
import org.springframework.transaction.PlatformTransactionManager;
import pl.java.scalatech.jpa.CustomHibernateJpaDialect;
@EnableJpaRepositories(basePackages = "pl.java.scalatech.repository")
@PropertySource("classpath:spring-data.properties")
@PropertySource("classpath:application.properties")
@Slf4j
@Profile(value = "test")
public class JpaEmbeddedConfig {
@Autowired
private Environment env;
@Value("${dataSource.driverClassName}")
private String driver;
@Value("${dataSource.url}")
private String url;
@Value("${dataSource.username}")
private String username;
@Value("${dataSource.password}")
private String password;
@Value("${hibernate.dialect}")
private String dialect;
@Value("${hibernate.hbm2ddl.auto}")
private Boolean hbm2ddlAuto;
@Value("${boneCp.partition.count}")
private int partitionCount;
@Value("${boneCp.partition.minConnectionsPerPartition}")
private int minConnectionsPerPartition;
@Value("${boneCp.partition.maxConnectionsPerPartition}")
private int maxConnectionsPerPartition;
@Value("${hibernate.show.sql}")
private Boolean showSql;
@Value("${jpa.package}")
private String jpaPackage;
/*
* @Bean
* public Flyway flyway() {
* Flyway flyway = new Flyway();
* flyway.setDataSource(dataSource());
* flyway.migrate();
* return flyway;
* }
*/
@Bean
public DataSource dataSource() {
return new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.H2).build();
}
@Bean
public PlatformTransactionManager transactionManager() {
return new JpaTransactionManager();
}
@Bean
public PersistenceExceptionTranslationPostProcessor exceptionTranslation() {
return new PersistenceExceptionTranslationPostProcessor();
}
public Map<String, Object> jpaProperties() {
Map<String, Object> props = new HashMap<>();
/*
* props.put("hibernate.cache.use_query_cache", "true");
* props.put("hibernate.cache.region.factory_class", "org.hibernate.cache.ehcache.EhCacheRegionFactory");
* props.put("hibernate.cache.provider_class", "org.hibernate.cache.ehcache.EhCacheRegionFactory");
* props.put("hibernate.cache.use_second_level_cache", "true");
*/
return props;
}
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory() throws SQLException {
LocalContainerEntityManagerFactoryBean lef = new LocalContainerEntityManagerFactoryBean();
lef.setJpaDialect(customJpaDialect());
lef.setDataSource(dataSource());
lef.setJpaVendorAdapter(jpaVendorAdapter());
lef.setJpaPropertyMap(jpaProperties());
lef.setPackagesToScan(jpaPackage); // eliminate persistence.xml
return lef;
}
@Bean
public JpaVendorAdapter jpaVendorAdapter() {
HibernateJpaVendorAdapter hibernateJpaVendorAdapter = new HibernateJpaVendorAdapter();
hibernateJpaVendorAdapter.setShowSql(showSql);
hibernateJpaVendorAdapter.setGenerateDdl(hbm2ddlAuto);
hibernateJpaVendorAdapter.setDatabase(Database.H2);
hibernateJpaVendorAdapter.setDatabasePlatform(dialect);
return hibernateJpaVendorAdapter;
}
@Bean
public Log4JdbcCustomFormatter logFormater() {
Log4JdbcCustomFormatter formatter = new Log4JdbcCustomFormatter();
formatter.setLoggingType(LoggingType.SINGLE_LINE);
formatter.setSqlPrefix("SQL:\r");
return formatter;
}
public JpaDialect customJpaDialect(){
return new CustomHibernateJpaDialect();
}
}
|
[
"przodownik@tlen.pl"
] |
przodownik@tlen.pl
|
1a28baeb2496be68c84b1e38638b2f98aa1ad806
|
9d4f5b584690467e05306c11e8191d9cb36b0ec8
|
/src/test/java/com/bczx/fcy/day908/three/Game.java
|
d1dc0f1938097d3ed4a8aa6874f8f461e94ecbe7
|
[] |
no_license
|
fcy1992/kata-practice
|
2387e05c0e9427afc00ac5c9dda141f83c7d2976
|
63cb14cd9cc71be14acf822bb0691cb55329d389
|
refs/heads/master
| 2021-07-07T13:55:31.729220
| 2019-11-17T17:00:52
| 2019-11-17T17:00:52
| 199,267,947
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,171
|
java
|
package com.bczx.fcy.day908.three;
public class Game {
private int[] rolls = new int[21];
private int currentRoll;
public void roll(int i) {
rolls[currentRoll ++] = i;
}
public int score() {
int score = 0;
int rollIndex = 0;
for (int frameIndex = 0; frameIndex < 10; frameIndex++) {
if (isaSpare(rollIndex)) {
score += spareBonus(rollIndex);
rollIndex += 2;
} else if (isaStrike(rollIndex)) {
score += strikeBonus(rollIndex);
rollIndex += 1;
} else {
score += normalScore(rollIndex);
rollIndex += 2;
}
}
return score;
}
private int normalScore(int rollIndex) {
return rolls[rollIndex] + rolls[rollIndex + 1];
}
private int strikeBonus(int rollIndex) {
return 10 + rolls[rollIndex + 1] + rolls[rollIndex + 2];
}
private boolean isaStrike(int rollIndex) {
return rolls[rollIndex] == 10;
}
private int spareBonus(int rollIndex) {
return 10 + rolls[rollIndex + 2];
}
private boolean isaSpare(int rollIndex) {
return rolls[rollIndex] + rolls[rollIndex + 1] == 10;
}
}
|
[
"admin@example.com"
] |
admin@example.com
|
8adaa769ef01d717479851787f6b2c4a190fb8c4
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/15/15_90d79b60ee13858d7cbc0a16b8dd0bfdf89ff1fa/TestAuth/15_90d79b60ee13858d7cbc0a16b8dd0bfdf89ff1fa_TestAuth_s.java
|
115249a549030eafde0964a9498a56cd6947bfa5
|
[] |
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,092
|
java
|
package parkservice.client;
import java.net.URI;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.UriBuilder;
import parkservice.model.AuthRequest;
import parkservice.model.AuthResponse;
import com.parq.server.dao.UserDao;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.WebResource;
import com.sun.jersey.api.client.config.ClientConfig;
import com.sun.jersey.api.client.config.DefaultClientConfig;
public class TestAuth {
public static void main(String[] args) {
ClientConfig config = new DefaultClientConfig();
Client client = Client.create(config);
WebResource service = client.resource(getBaseURI());
AuthRequest in = new AuthRequest();
in.setEmail("miguel@parqme.com");
in.setPassword("a");
String outstring = service.path("").type(MediaType.APPLICATION_JSON).post(String.class, in);
System.out.println(outstring);
}
private static URI getBaseURI() {
return UriBuilder.fromUri(
"http://localhost:8080/parkservice.auth").build();
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
a82beafad2386311357e97e5d34cfd23fb02e467
|
eef45ebc0891a1eb86e51faa1f4370d7d2f9f2f6
|
/src/com/butent/bee/shared/css/values/CaptionSide.java
|
bc59c3a349aa7fbd210086e48b1b1fac364ad038
|
[] |
no_license
|
ebagatavicius/bee
|
6ae4f0ec4fb2436a3b36bfc774a459331f2ae1fb
|
f558368a5257687d31913e874a7b24fd4930d11c
|
refs/heads/master
| 2020-06-06T00:18:57.455397
| 2017-12-14T17:12:42
| 2017-12-14T17:12:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 434
|
java
|
package com.butent.bee.shared.css.values;
import com.butent.bee.shared.css.HasCssName;
public enum CaptionSide implements HasCssName {
TOP {
@Override
public String getCssName() {
return "top";
}
},
BOTTOM {
@Override
public String getCssName() {
return "bottom";
}
},
INHERIT {
@Override
public String getCssName() {
return "inherit";
}
}
}
|
[
"marius@butent.com"
] |
marius@butent.com
|
7f288baa826c7ca425dfb8d4c6ebcf6ae4600e19
|
629e42efa87f5539ff8731564a9cbf89190aad4a
|
/unrefactorInstances/lucene/24/cloneInstance1.java
|
0071d6b7b67f5bd79b7bef67a57c592ce13cde3b
|
[] |
no_license
|
soniapku/CREC
|
a68d0b6b02ed4ef2b120fd0c768045424069e726
|
21d43dd760f453b148134bd526d71f00ad7d3b5e
|
refs/heads/master
| 2020-03-23T04:28:06.058813
| 2018-08-17T13:17:08
| 2018-08-17T13:17:08
| 141,085,296
| 0
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,451
|
java
|
public void write(Directory dir, SegmentInfo si, FieldInfos fis, IOContext ioContext) throws IOException {
final String fileName = IndexFileNames.segmentFileName(si.name, "", Lucene46SegmentInfoFormat.SI_EXTENSION);
si.addFile(fileName);
final IndexOutput output = dir.createOutput(fileName, ioContext);
boolean success = false;
try {
CodecUtil.writeHeader(output, Lucene46SegmentInfoFormat.CODEC_NAME, Lucene46SegmentInfoFormat.VERSION_CURRENT);
Version version = si.getVersion();
if (version.major < 4) {
throw new IllegalArgumentException("invalid major version: should be >= 4 but got: " + version.major + " segment=" + si);
}
// Write the Lucene version that created this segment, since 3.1
output.writeString(version.toString());
output.writeInt(si.getDocCount());
output.writeByte((byte) (si.getUseCompoundFile() ? SegmentInfo.YES : SegmentInfo.NO));
output.writeStringStringMap(si.getDiagnostics());
output.writeStringSet(si.files());
output.writeString(si.getId());
CodecUtil.writeFooter(output);
success = true;
} finally {
if (!success) {
IOUtils.closeWhileHandlingException(output);
// TODO: are we doing this outside of the tracking wrapper? why must SIWriter cleanup like this?
IOUtils.deleteFilesIgnoringExceptions(si.dir, fileName);
} else {
output.close();
}
}
}
|
[
"sonia@pku.edu.cn"
] |
sonia@pku.edu.cn
|
bd4264bb04f969f49561341016750885f1c85c85
|
27a13543c5a21811e696278b5212755ecdebca53
|
/hsco/src/main/java/hsco/mis/cus/CUS020101/CUS020101Service.java
|
87277eb91fd2664de4390e923c9996aefdcd9697
|
[] |
no_license
|
chaseDeveloper/hsco
|
9dad73c971500c4bd98adfefa3e91a91d26ca318
|
7052d6da3ac772cd3b13ec391818139355935916
|
refs/heads/master
| 2023-06-15T23:55:10.592683
| 2021-07-06T07:46:07
| 2021-07-06T07:46:07
| 383,377,343
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 880
|
java
|
package hsco.mis.cus.CUS020101;
/**
* <pre>
* @Project Name : 화성도시공사 차세대정보시스템
* @Class Name : CUS020101Serivce.java
* @Description : 우리팀 민원분배를 관리하는 서비스 클래스
* @author : 김병진
* @since : 2015. 08. 13.
* @version : 1.0
* @see :
* @COPYRIGHT (c) 2015 나눔아이씨티, Inc. All Right Reserved.
* <pre>
* ------------------------------------------------------------------
* Modification Information
* ------------------------------------------------------------------
* 작성일 작성자 내용
* ------------------------------------------------------------------
* 2015. 08. 13. 김병진 최초생성
* </pre>
*/
public interface CUS020101Service {
}
|
[
"kdk@ichase.co.kr"
] |
kdk@ichase.co.kr
|
e888900c77bb4a4fc71c98e4c00a3cd0ce5411a3
|
c97a25dede22675827d58f40ced09e83281ee184
|
/backend-projects/forgot-pwd/src/main/java/fr/mistral/saphir/forgotpwd/domain/Mail.java
|
752d182094e6f82451c7f1ad54697e904694f8b6
|
[] |
no_license
|
helidrissi/mistral
|
09d34226f6642493ca901057e29408481a74e388
|
a486ba4e3d9507f05f70907d2677bd2a9be1ae0b
|
refs/heads/main
| 2023-07-20T13:52:48.802375
| 2021-08-30T15:51:40
| 2021-08-30T15:51:40
| 401,399,056
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 792
|
java
|
package fr.mistral.saphir.forgotpwd.domain;
import java.util.Map;
public class Mail {
private String from;
private String to;
private String subject;
private Map<String, Object> model;
public Mail() {
}
public String getFrom() {
return from;
}
public void setFrom(String from) {
this.from = from;
}
public String getTo() {
return to;
}
public void setTo(String to) {
this.to = to;
}
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public Map<String, Object> getModel() {
return model;
}
public void setModel(Map<String, Object> model) {
this.model = model;
}
}
|
[
"hamza.elidrissi@mistral.fr"
] |
hamza.elidrissi@mistral.fr
|
76e90b46439a2792e463b8b0ed7bc9fc2a11aeba
|
01fe09d4f57f1d3d746b4699837ad844d0655dfe
|
/biz/com/dw/biz/JarBizModuleIO.java
|
a16790c8e5c1f10768028bbb23dbdaadbd4d1a68
|
[] |
no_license
|
duxingzhe311/system4j
|
72570bdb85e66b351bf5b42c84bcb6bfa6f3de86
|
3871ae19aac53f1b0aaf74ea5e401aad13210947
|
refs/heads/master
| 2021-01-10T12:24:58.726571
| 2016-01-29T08:25:34
| 2016-01-29T08:25:34
| 50,648,431
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,585
|
java
|
package com.dw.biz;
import java.io.File;
import java.io.IOException;
import java.util.List;
class JarBizModuleIO extends BizModuleIO
{
File jarFile = null;
public JarBizModuleIO(String uniqueid, File jarf)
{
super(uniqueid);
this.jarFile = jarf;
}
public boolean canSave()
{
return false;
}
public byte[] loadFile(String[] parentp, String filename)
throws IOException
{
return null;
}
public long saveFile(String[] parentp, String filename, byte[] cont)
throws IOException
{
throw new IOException("not support");
}
public void addDir(String[] parentp, String catname)
throws IOException
{
throw new IOException("not support");
}
public void delDir(String[] parentp, String catname)
throws IOException
{
throw new IOException("not support");
}
public void changeDir(String[] parentp, String src_dirn, String[] tarp, String tar_dirn)
throws Exception
{
throw new IOException("not support");
}
public void changeFilePath(String[] parentp, String filename, String[] tarpp, String tarfn)
throws IOException
{
throw new IOException("not support");
}
public List<String> getSubCatName(String[] parentp)
throws IOException
{
return null;
}
public List<String> getSubFileNames(String[] parentp, String extname)
throws IOException
{
return null;
}
public long getSubFileUpdateDate(String[] parentp, String filename)
{
return this.jarFile.lastModified();
}
}
|
[
"623799957@qq.com"
] |
623799957@qq.com
|
a02045195e07bd38489330131585229f4c5cf4b2
|
745b525c360a2b15b8d73841b36c1e8d6cdc9b03
|
/jun_java_plugins/jun_servlet/src/main/java/com/jun/plugin/thread/LockReentrant.java
|
68c1bf173ad0a4952b61ae55ef06e6c0f1d712b5
|
[
"Apache-2.0"
] |
permissive
|
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
| 1,136
|
java
|
package com.jun.plugin.thread;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* 可重入锁、同一线程可重新持锁进入
*/
public class LockReentrant {
public static void main(String[] args) {
final LockReentrant out = new LockReentrant();
new Thread(new Runnable() {
@Override
public void run() {
while (true) {
out.print("abcdefghij");
try {
Thread.sleep(10);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}).start();
new Thread(new Runnable() {
@Override
public void run() {
while (true) {
out.print("0123456789");
try {
Thread.sleep(10);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}).start();
}
Lock lock = new ReentrantLock();
public void print(String value) {
char[] chars = value.toCharArray();
lock.lock();
for (char c : chars) {
System.out.print(c);
}
System.out.println();
lock.unlock();
}
}
|
[
"wujun728@163.com"
] |
wujun728@163.com
|
6d0c0b26b8e79f94d5da8814999679f06e41759b
|
2291d2bea5a8a44c2d5b19b8cd3a4833d350f11c
|
/osc-network/src/test/java/com/netthreads/osc/note/service/NoteBuilder.java
|
4a3b685e8f1ccad118e46e3753846a8db0b0e09b
|
[
"Apache-2.0"
] |
permissive
|
alistairrutherford/osc-tools
|
857a7b26d634e2f68c88fe1306bbc6e0400dd7d0
|
1f228fe23f695dcac090f6c6612641e8529eb032
|
refs/heads/master
| 2021-01-01T05:53:28.904687
| 2014-05-25T15:18:50
| 2014-05-25T15:18:50
| 8,376,848
| 9
| 6
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 419
|
java
|
package com.netthreads.osc.note.service;
import com.google.inject.ImplementedBy;
@ImplementedBy(NoteBuilderImpl.class)
public interface NoteBuilder
{
/**
* Begin building note.
*
*/
public void begin();
/**
* Add note on message.
*
* @param noteDefinition
*/
public void note(NoteDefinition noteDefinition);
/**
* End build note.
*
*/
public void end();
}
|
[
"alistair.rutherford@gmail.com"
] |
alistair.rutherford@gmail.com
|
1ec9b9f1488d8550cd686784e120135767993f2d
|
95379ba98e777550a5e7bf4289bcd4be3c2b08a3
|
/java/net/sf/l2j/gameserver/model/manor/CropProcure.java
|
89aad4e1c942e2710b1f789617e8b747baca7b00
|
[] |
no_license
|
l2brutal/aCis_gameserver
|
1311617bd8ce0964135e23d5ac2a24f83023f5fb
|
5fa7fe086940343fb4ea726a6d0138c130ddbec7
|
refs/heads/master
| 2021-01-03T04:10:26.192831
| 2019-03-19T19:44:09
| 2019-03-19T19:44:09
| 239,916,465
| 0
| 1
| null | 2020-02-12T03:12:34
| 2020-02-12T03:12:33
| null |
UTF-8
|
Java
| false
| false
| 362
|
java
|
package net.sf.l2j.gameserver.model.manor;
public final class CropProcure extends SeedProduction
{
private final int _rewardType;
public CropProcure(int id, int amount, int type, int startAmount, int price)
{
super(id, amount, price, startAmount);
_rewardType = type;
}
public final int getReward()
{
return _rewardType;
}
}
|
[
"vicawnolasco@gmail.com"
] |
vicawnolasco@gmail.com
|
c2d620eb3ff7c814dcf1e3116015857bc6f7d3f6
|
2d3d94352bbbfe920dc43c95cefa19dd0be6e8a5
|
/common/src/main/java/com/test/arithmetic/bp/data/Test.java
|
099eb87dd7d97e6d629ab3eca4cf1d9c61a92618
|
[] |
no_license
|
shenfl/test
|
42649c2b4ef4397c99b56ed0a46beeff92a783d0
|
c2abe2b34b06945822726c6601c3e1d37a187219
|
refs/heads/master
| 2022-12-23T12:47:05.752131
| 2021-05-20T16:09:22
| 2021-05-20T16:09:22
| 137,750,493
| 0
| 1
| null | 2022-12-15T23:39:41
| 2018-06-18T12:43:46
|
Java
|
UTF-8
|
Java
| false
| false
| 279
|
java
|
package com.test.arithmetic.bp.data;
import java.util.Arrays;
public class Test {
private double[] data;
public Test() {
data = new double[10];
}
public double[] getData(){
return data;
}
public void print(){
System.out.println(Arrays.toString(data));
}
}
|
[
"shenfeilong@souche.com"
] |
shenfeilong@souche.com
|
02d1c1d312e504bbc9d00c4b637fc517948cd7a7
|
a859faf58d6dd481c6bea6e49779a25feb99b4da
|
/src/info/guardianproject/bouncycastle/asn1/x509/IssuingDistributionPoint.java
|
80353b1865656c958d37a672965252f1d307d2e2
|
[
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
gsathya/Gibberbot
|
9d27ca0b4ec0e2e7e031f8c0ed00f20d77b36377
|
cec5514e7a9902b01e0d28674b4bbe2a2433ece0
|
refs/heads/master
| 2021-01-16T20:13:53.350841
| 2011-03-17T00:26:14
| 2011-03-17T00:26:14
| 1,422,149
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,988
|
java
|
package info.guardianproject.bouncycastle.asn1.x509;
import info.guardianproject.bouncycastle.asn1.ASN1Encodable;
import info.guardianproject.bouncycastle.asn1.ASN1EncodableVector;
import info.guardianproject.bouncycastle.asn1.ASN1Sequence;
import info.guardianproject.bouncycastle.asn1.ASN1TaggedObject;
import info.guardianproject.bouncycastle.asn1.DERBoolean;
import info.guardianproject.bouncycastle.asn1.DERObject;
import info.guardianproject.bouncycastle.asn1.DERSequence;
import info.guardianproject.bouncycastle.asn1.DERTaggedObject;
/**
* <pre>
* IssuingDistributionPoint ::= SEQUENCE {
* distributionPoint [0] DistributionPointName OPTIONAL,
* onlyContainsUserCerts [1] BOOLEAN DEFAULT FALSE,
* onlyContainsCACerts [2] BOOLEAN DEFAULT FALSE,
* onlySomeReasons [3] ReasonFlags OPTIONAL,
* indirectCRL [4] BOOLEAN DEFAULT FALSE,
* onlyContainsAttributeCerts [5] BOOLEAN DEFAULT FALSE }
* </pre>
*/
public class IssuingDistributionPoint
extends ASN1Encodable
{
private DistributionPointName distributionPoint;
private boolean onlyContainsUserCerts;
private boolean onlyContainsCACerts;
private ReasonFlags onlySomeReasons;
private boolean indirectCRL;
private boolean onlyContainsAttributeCerts;
private ASN1Sequence seq;
public static IssuingDistributionPoint getInstance(
ASN1TaggedObject obj,
boolean explicit)
{
return getInstance(ASN1Sequence.getInstance(obj, explicit));
}
public static IssuingDistributionPoint getInstance(
Object obj)
{
if (obj == null || obj instanceof IssuingDistributionPoint)
{
return (IssuingDistributionPoint)obj;
}
else if (obj instanceof ASN1Sequence)
{
return new IssuingDistributionPoint((ASN1Sequence)obj);
}
throw new IllegalArgumentException("unknown object in factory: " + obj.getClass().getName());
}
/**
* Constructor from given details.
*
* @param distributionPoint
* May contain an URI as pointer to most current CRL.
* @param onlyContainsUserCerts Covers revocation information for end certificates.
* @param onlyContainsCACerts Covers revocation information for CA certificates.
*
* @param onlySomeReasons
* Which revocation reasons does this point cover.
* @param indirectCRL
* If <code>true</code> then the CRL contains revocation
* information about certificates ssued by other CAs.
* @param onlyContainsAttributeCerts Covers revocation information for attribute certificates.
*/
public IssuingDistributionPoint(
DistributionPointName distributionPoint,
boolean onlyContainsUserCerts,
boolean onlyContainsCACerts,
ReasonFlags onlySomeReasons,
boolean indirectCRL,
boolean onlyContainsAttributeCerts)
{
this.distributionPoint = distributionPoint;
this.indirectCRL = indirectCRL;
this.onlyContainsAttributeCerts = onlyContainsAttributeCerts;
this.onlyContainsCACerts = onlyContainsCACerts;
this.onlyContainsUserCerts = onlyContainsUserCerts;
this.onlySomeReasons = onlySomeReasons;
ASN1EncodableVector vec = new ASN1EncodableVector();
if (distributionPoint != null)
{ // CHOICE item so explicitly tagged
vec.add(new DERTaggedObject(true, 0, distributionPoint));
}
if (onlyContainsUserCerts)
{
vec.add(new DERTaggedObject(false, 1, new DERBoolean(true)));
}
if (onlyContainsCACerts)
{
vec.add(new DERTaggedObject(false, 2, new DERBoolean(true)));
}
if (onlySomeReasons != null)
{
vec.add(new DERTaggedObject(false, 3, onlySomeReasons));
}
if (indirectCRL)
{
vec.add(new DERTaggedObject(false, 4, new DERBoolean(true)));
}
if (onlyContainsAttributeCerts)
{
vec.add(new DERTaggedObject(false, 5, new DERBoolean(true)));
}
seq = new DERSequence(vec);
}
/**
* Constructor from ASN1Sequence
*/
public IssuingDistributionPoint(
ASN1Sequence seq)
{
this.seq = seq;
for (int i = 0; i != seq.size(); i++)
{
ASN1TaggedObject o = ASN1TaggedObject.getInstance(seq.getObjectAt(i));
switch (o.getTagNo())
{
case 0:
// CHOICE so explicit
distributionPoint = DistributionPointName.getInstance(o, true);
break;
case 1:
onlyContainsUserCerts = DERBoolean.getInstance(o, false).isTrue();
break;
case 2:
onlyContainsCACerts = DERBoolean.getInstance(o, false).isTrue();
break;
case 3:
onlySomeReasons = new ReasonFlags(ReasonFlags.getInstance(o, false));
break;
case 4:
indirectCRL = DERBoolean.getInstance(o, false).isTrue();
break;
case 5:
onlyContainsAttributeCerts = DERBoolean.getInstance(o, false).isTrue();
break;
default:
throw new IllegalArgumentException(
"unknown tag in IssuingDistributionPoint");
}
}
}
public boolean onlyContainsUserCerts()
{
return onlyContainsUserCerts;
}
public boolean onlyContainsCACerts()
{
return onlyContainsCACerts;
}
public boolean isIndirectCRL()
{
return indirectCRL;
}
public boolean onlyContainsAttributeCerts()
{
return onlyContainsAttributeCerts;
}
/**
* @return Returns the distributionPoint.
*/
public DistributionPointName getDistributionPoint()
{
return distributionPoint;
}
/**
* @return Returns the onlySomeReasons.
*/
public ReasonFlags getOnlySomeReasons()
{
return onlySomeReasons;
}
public DERObject toASN1Object()
{
return seq;
}
public String toString()
{
String sep = System.getProperty("line.separator");
StringBuffer buf = new StringBuffer();
buf.append("IssuingDistributionPoint: [");
buf.append(sep);
if (distributionPoint != null)
{
appendObject(buf, sep, "distributionPoint", distributionPoint.toString());
}
if (onlyContainsUserCerts)
{
appendObject(buf, sep, "onlyContainsUserCerts", booleanToString(onlyContainsUserCerts));
}
if (onlyContainsCACerts)
{
appendObject(buf, sep, "onlyContainsCACerts", booleanToString(onlyContainsCACerts));
}
if (onlySomeReasons != null)
{
appendObject(buf, sep, "onlySomeReasons", onlySomeReasons.toString());
}
if (onlyContainsAttributeCerts)
{
appendObject(buf, sep, "onlyContainsAttributeCerts", booleanToString(onlyContainsAttributeCerts));
}
if (indirectCRL)
{
appendObject(buf, sep, "indirectCRL", booleanToString(indirectCRL));
}
buf.append("]");
buf.append(sep);
return buf.toString();
}
private void appendObject(StringBuffer buf, String sep, String name, String value)
{
String indent = " ";
buf.append(indent);
buf.append(name);
buf.append(":");
buf.append(sep);
buf.append(indent);
buf.append(indent);
buf.append(value);
buf.append(sep);
}
private String booleanToString(boolean value)
{
return value ? "true" : "false";
}
}
|
[
"nathan@freitas.net"
] |
nathan@freitas.net
|
5d969eea07db9e61e1d0cff8802dd40c0ce32867
|
fdfb481a7622f03aec3b6d8a2369390636394aaa
|
/app/src/main/java/com/zhongyou/meet/mobile/ameeting/whiteboard/ClassEventListener.java
|
2e9c0f2bc7ce8db71f8a6f0e18af1c2cf692bff0
|
[] |
no_license
|
woyl/zhongyou
|
f0ee5252adb6ced5fc781c3659d546d30605ca57
|
bee0ba60d5fb753e2e9176b46de40e2e7da8fb27
|
refs/heads/master
| 2023-01-13T17:39:38.127004
| 2020-11-19T08:24:12
| 2020-11-19T08:24:12
| 314,171,503
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 397
|
java
|
package com.zhongyou.meet.mobile.ameeting.whiteboard;
import com.zhongyou.meet.mobile.entities.User;
import androidx.annotation.Nullable;
public interface ClassEventListener {
void onClassStateChanged(boolean isBegin, long time);
void onWhiteboardChanged(String uuid, String roomToken);
void onLockWhiteboard(boolean locked);
void onJoinRoomSuccess(String roomToken);
}
|
[
"676051397@qq.com"
] |
676051397@qq.com
|
dca95a5210f107b1a97b1002be8030ea9478d2bc
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Time/1/org/joda/time/field/RemainderDateTimeField_roundHalfCeiling_214.java
|
a5ac6597eb6efa0ee48de0ab0a9a82b3374ea5ca
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 708
|
java
|
org joda time field
counterpart remaind datetim field link divid date time field divideddatetimefield
field' unit durat unchang rang durat scale
remaind date time field remainderdatetimefield thread safe immut
divid date time field divideddatetimefield
author brian neill o'neil
remaind date time field remainderdatetimefield decor date time field decorateddatetimefield
round half ceil roundhalfceil instant
wrap field getwrappedfield round half ceil roundhalfceil instant
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
e8afd0272980a9d732b565fddbeab14de08d7838
|
f9b254b3d57453bd6fc4e66dc082f3e92dce4179
|
/EHomeHDV5_1/eHomeHD/src/cc/wulian/smarthomev5/fragment/house/AutoTaskEvent.java
|
6aeacc7a312585cd84b88aacffad23967f5fc3b4
|
[] |
no_license
|
zcz123/ehome
|
a45255bb4ebbfeb7804f424b1be53cf531589bf6
|
5a2df0be832f542cab6b49e7a0e8071d4f101525
|
refs/heads/master
| 2021-01-19T21:47:57.674732
| 2017-04-19T04:13:16
| 2017-04-19T04:13:16
| 88,708,738
| 3
| 0
| null | 2017-04-19T06:24:17
| 2017-04-19T06:24:17
| null |
UTF-8
|
Java
| false
| false
| 700
|
java
|
package cc.wulian.smarthomev5.fragment.house;
import cc.wulian.ihome.wan.entity.AutoProgramTaskInfo;
import cc.wulian.ihome.wan.entity.DeviceInfo;
public class AutoTaskEvent {
public static final String QUERY = "query";
public static final String STATUS = "status";
public static final String MODIFY = "modify";
public static final String REMOVE = "remove";
public static final String ADDRULE = "addrule";
public String action;
public AutoProgramTaskInfo taskInfo;
public AutoTaskEvent(){
}
public AutoTaskEvent(String action){
this.action = action;
}
public AutoTaskEvent( String action, AutoProgramTaskInfo taskInfo)
{
this.action = action;
this.taskInfo = taskInfo;
}
}
|
[
"584692417@qq.com"
] |
584692417@qq.com
|
f220c23dc1cffe7ad0755f8e763605af56c486e2
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/29/29_5fca85e88ccac3253df05fce977aea8e93ab1b63/Echoer/29_5fca85e88ccac3253df05fce977aea8e93ab1b63_Echoer_t.java
|
ccc1cb7e1b29997bbcfb335e19e1eca03f6fe5cf
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,598
|
java
|
package ssbind;
import org.biojava.bio.search.*;
/**
* <p>
* Echo the event stream to stdout with prety indenting.
* </p>
*
* <p>
* This class is most useful to check that your parsing is working. You can use
* an Echoer as the last handler in a chain of filters, or attach it directly
* to the parser. It is an instructive way to work out what events are being
* fired when, and with what properties attached.
* </p>
*
* @author Matthew Pocock
*/
public class Echoer
implements SearchContentHandler {
private int indentDepth = 0;
private String indentPrefix = "";
private boolean moreSearches = false;
public void indent() {
indentDepth++;
createPrefix();
}
public void outdent() {
indentDepth--;
createPrefix();
}
public String getPrefix() {
return indentPrefix;
}
private void createPrefix() {
indentPrefix = "";
for(int i = 0; i < indentDepth; i++) {
indentPrefix += " ";
}
}
public void addHitProperty(Object key, Object value) {
System.out.println(getPrefix() + "hit property: " + key.getClass() + " " + key + " -> " + value.getClass() + " " + value);
}
public void addSearchProperty(Object key, Object value) {
System.out.println(getPrefix() + "search property: " + key.getClass() + " " + key + " -> " + value.getClass() + " " + value);
}
public void addSubHitProperty(Object key, Object value) {
System.out.println(getPrefix() + "subhit property: " + key.getClass() + " " + key + " -> " + value.getClass() + " " + value);
}
public void startHeader() {
System.out.println(getPrefix() + "header:");
indent();
}
public void endHeader() {
outdent();
}
public void startHit() {
System.out.println(getPrefix() + "hit:");
indent();
}
public void endHit() {
outdent();
}
public void startSearch() {
System.out.println(getPrefix() + "search");
indent();
}
public void endSearch() {
outdent();
}
public void startSubHit() {
System.out.println(getPrefix() + "sub hit:");
indent();
}
public void endSubHit() {
outdent();
}
public boolean getMoreSearches() {
return moreSearches;
}
public void setMoreSearches(boolean val) {
this.moreSearches = val;
}
public void setQuerySeq(String seqID) {
System.out.println(getPrefix() + "query sequence: " + seqID);
}
public void setSubjectDB(String dbID) {
System.out.println(getPrefix() + "subject db: " + dbID);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
1995a3e6cac0fd53ede1a42a8b4f757bdf4cf49f
|
9560c3b8ba825f49c1e9b8440b7905cfe9c7ef78
|
/module-examples/document/demo/src/main/java/org/incode/example/document/demo/usage/fixture/seed/RenderingStrategy_create6.java
|
4fcb067cae6f9c5353bfa68021c2736c22f8f93b
|
[
"Apache-2.0"
] |
permissive
|
incodehq/incode-examples
|
756e447a7ac2f84a750571548aed85eb133f8f28
|
911497115d5d049ea1edd3f703c0ccd052db5f9c
|
refs/heads/master
| 2020-03-26T16:35:38.058452
| 2018-08-22T08:13:36
| 2018-08-22T08:13:36
| 145,111,756
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,085
|
java
|
package org.incode.example.document.demo.usage.fixture.seed;
import org.incode.example.docrendering.freemarker.fixture.RenderingStrategyFSForFreemarker;
import org.incode.example.docrendering.stringinterpolator.fixture.RenderingStrategyFSForStringInterpolator;
import org.incode.example.docrendering.stringinterpolator.fixture.RenderingStrategyFSForStringInterpolatorCaptureUrl;
import org.incode.example.docrendering.stringinterpolator.fixture.RenderingStrategyFSForStringInterpolatorPreviewAndCaptureUrl;
import org.incode.example.docrendering.xdocreport.fixture.RenderingStrategyFSForXDocReportToDocx;
import org.incode.example.docrendering.xdocreport.fixture.RenderingStrategyFSForXDocReportToPdf;
import org.incode.example.document.fixture.DocumentTemplateFSAbstract;
public class RenderingStrategy_create6 extends DocumentTemplateFSAbstract {
public static final String REF_SIPC = RenderingStrategyFSForStringInterpolatorPreviewAndCaptureUrl.REF;
public static final String REF_SINC = RenderingStrategyFSForStringInterpolatorCaptureUrl.REF;
public static final String REF_SI = RenderingStrategyFSForStringInterpolator.REF;
public static final String REF_FMK = RenderingStrategyFSForFreemarker.REF;
public static final String REF_XDP = RenderingStrategyFSForXDocReportToPdf.REF;
public static final String REF_XDD = RenderingStrategyFSForXDocReportToDocx.REF;
@Override
protected void execute(final ExecutionContext executionContext) {
// prereqs
executionContext.executeChild(this, new RenderingStrategyFSForStringInterpolatorPreviewAndCaptureUrl());
executionContext.executeChild(this, new RenderingStrategyFSForStringInterpolatorCaptureUrl());
executionContext.executeChild(this, new RenderingStrategyFSForStringInterpolator());
executionContext.executeChild(this, new RenderingStrategyFSForFreemarker());
executionContext.executeChild(this, new RenderingStrategyFSForXDocReportToPdf());
executionContext.executeChild(this, new RenderingStrategyFSForXDocReportToDocx());
}
}
|
[
"dan@haywood-associates.co.uk"
] |
dan@haywood-associates.co.uk
|
5b8ad478757e4a69d34b2a7fc88027bd7450460f
|
393f20e27f5f357ec660c2784fc5c4d79fbdd00d
|
/app/src/main/java/com/biaoyuan/transfer/util/ChString.java
|
422023fc4ecfd4996ef31aaf65df77fba16d5ca6
|
[] |
no_license
|
enmaoFu/qmcs_user
|
968236a4346df9eda7bc2d112f64e4a528dc3549
|
e9dcbda0d6021c543428f5e7ebc0b6053f50dfb2
|
refs/heads/master
| 2021-09-05T11:52:16.267985
| 2018-01-27T03:51:57
| 2018-01-27T03:51:58
| 119,129,953
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,344
|
java
|
package com.biaoyuan.transfer.util;
public class ChString {
public static final String Kilometer = "\u516c\u91cc";// "公里";
public static final String Meter = "\u7c73";// "米";
public static final String ByFoot = "\u6b65\u884c";// "步行";
public static final String To = "\u53bb\u5f80";// "去往";
public static final String Station = "\u8f66\u7ad9";// "车站";
public static final String TargetPlace = "\u76ee\u7684\u5730";// "目的地";
public static final String StartPlace = "\u51fa\u53d1\u5730";// "出发地";
public static final String About = "\u5927\u7ea6";// "大约";
public static final String Direction = "\u65b9\u5411";// "方向";
public static final String GetOn = "\u4e0a\u8f66";// "上车";
public static final String GetOff = "\u4e0b\u8f66";// "下车";
public static final String Zhan = "\u7ad9";// "站";
public static final String cross = "\u4ea4\u53c9\u8def\u53e3"; // 交叉路口
public static final String type = "\u7c7b\u522b"; // 类别
public static final String address = "\u5730\u5740"; // 地址
public static final String PrevStep = "\u4e0a\u4e00\u6b65";
public static final String NextStep = "\u4e0b\u4e00\u6b65";
public static final String Gong = "\u516c\u4ea4";
public static final String ByBus = "\u4e58\u8f66";
public static final String Arrive = "\u5230\u8FBE";// 到达
}
|
[
"fuenmao@126.com"
] |
fuenmao@126.com
|
a3eae448ff74d186331bcf7b8bd96f74bd97b262
|
d2eee6e9a3ad0b3fd2899c3d1cf94778615b10cb
|
/PROMISE/archives/ant/1.5/.svn/pristine/a3/a3eae448ff74d186331bcf7b8bd96f74bd97b262.svn-base
|
87d22e86f8d23ffcb860ca982867c87454dc17e6
|
[] |
no_license
|
hvdthong/DEFECT_PREDICTION
|
78b8e98c0be3db86ffaed432722b0b8c61523ab2
|
76a61c69be0e2082faa3f19efd76a99f56a32858
|
refs/heads/master
| 2021-01-20T05:19:00.927723
| 2018-07-10T03:38:14
| 2018-07-10T03:38:14
| 89,766,606
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,249
|
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "Ant" and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.attributes;
/**
* Attribute info structure that provides base methods
*
* @author <a href="sbailliez@imediation.com">Stephane Bailliez</a>
*/
public interface AttributeInfo {
String SOURCE_FILE = "SourceFile";
String CONSTANT_VALUE = "ConstantValue";
String CODE = "Code";
String EXCEPTIONS = "Exceptions";
String LINE_NUMBER_TABLE = "LineNumberTable";
String LOCAL_VARIABLE_TABLE = "LocalVariableTable";
String INNER_CLASSES = "InnerClasses";
String SOURCE_DIR = "SourceDir";
String SYNTHETIC = "Synthetic";
String DEPRECATED = "Deprecated";
String UNKNOWN = "Unknown";
}
|
[
"hvdthong@github.com"
] |
hvdthong@github.com
|
|
a36e4f1b81b8e89af2ac35adf0ca6496128d5462
|
8f70415ad5be4e0f372973189a866ed6fb087c41
|
/app/src/main/java/com/carzis/fileadd/DownloadTask.java
|
afa47c2f5225fd5cbbeb9ab0231b0047ec1fcd69
|
[] |
no_license
|
matvapps/OBDProject
|
7f25d12243bac1e1ac64d64ffebbf385e4035e44
|
4715c4b14e0eeec13d13228795626b5dce761938
|
refs/heads/master
| 2021-07-09T11:35:03.142122
| 2019-02-06T19:56:10
| 2019-02-06T19:56:10
| 133,265,637
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 358
|
java
|
package com.carzis.fileadd;
import android.content.Context;
import android.os.AsyncTask;
import android.os.PowerManager;
import android.widget.Toast;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* Created by Alexandr
*/
|
[
"alex____98@hotmail.com"
] |
alex____98@hotmail.com
|
43efe0ab16b4800d68ca2e45c9044f39dcf91904
|
7e994d213901d0a623e7cece9d812f296888bc07
|
/facebook-socialshare/src/main/java/com/platzerworld/facebook/utils/listeners/OnLogoutListener.java
|
aea585abfd9e459f50eb65c05a1402138dcf03a8
|
[] |
no_license
|
platzerg/SocialShare
|
f2b1671953b467e4039a4f3c8e2b5443160f819e
|
f710bda5d4d3131ea4ab45d8bf190d1f473c49d7
|
refs/heads/master
| 2020-04-13T17:53:49.911032
| 2014-09-03T19:24:00
| 2014-09-03T19:24:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 263
|
java
|
package com.platzerworld.facebook.utils.listeners;
public interface OnLogoutListener extends OnThinkingListetener {
/**
* If user performed {@link FacebookTools#logout()} action, this callback
* method will be invoked
*/
void onLogout();
}
|
[
"guenter.platzerworld@googlemail.com"
] |
guenter.platzerworld@googlemail.com
|
d1a9e92b08535157992113267f545a160eac8cd7
|
2f3c04382a66dbf222c8587edd67a5df4bc80422
|
/src/com/cedar/cp/utc/awt/ProgressDialog$1.java
|
163882ada2fb9fa5963d45c3b85813a8d0b7d9e0
|
[] |
no_license
|
arnoldbendaa/cppro
|
d3ab6181cc51baad2b80876c65e11e92c569f0cc
|
f55958b85a74ad685f1360ae33c881b50d6e5814
|
refs/heads/master
| 2020-03-23T04:18:00.265742
| 2018-09-11T08:15:28
| 2018-09-11T08:15:28
| 141,074,966
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 664
|
java
|
// Decompiled by: Fernflower v0.8.6
// Date: 12.08.2012 13:34:59
// Copyright: 2008-2012, Stiver
// Home page: http://www.neshkov.com/ac_decompiler.html
package com.cedar.cp.utc.awt;
import com.cedar.cp.utc.awt.ProgressDialog;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
class ProgressDialog$1 implements ActionListener {
// $FF: synthetic field
final ProgressDialog this$0;
ProgressDialog$1(ProgressDialog var1) {
this.this$0 = var1;
}
public void actionPerformed(ActionEvent e) {
ProgressDialog.access$002(this.this$0, true);
}
}
|
[
"arnoldbendaa@gmail.com"
] |
arnoldbendaa@gmail.com
|
aaa2235909cef1c09f919e9a8a6fa03cddc715ce
|
fa1408365e2e3f372aa61e7d1e5ea5afcd652199
|
/src/testcases/CWE134_Uncontrolled_Format_String/s01/CWE134_Uncontrolled_Format_String__connect_tcp_printf_68a.java
|
82d3e4ea3146d00c857f67baf782e04750acadb7
|
[] |
no_license
|
bqcuong/Juliet-Test-Case
|
31e9c89c27bf54a07b7ba547eddd029287b2e191
|
e770f1c3969be76fdba5d7760e036f9ba060957d
|
refs/heads/master
| 2020-07-17T14:51:49.610703
| 2019-09-03T16:22:58
| 2019-09-03T16:22:58
| 206,039,578
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,753
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__connect_tcp_printf_68a.java
Label Definition File: CWE134_Uncontrolled_Format_String.label.xml
Template File: sources-sinks-68a.tmpl.java
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: connect_tcp Read data using an outbound tcp connection
* GoodSource: A hardcoded string
* Sinks: printf
* GoodSink: dynamic printf format with string defined
* BadSink : dynamic printf without validation
* Flow Variant: 68 Data flow: data passed as a member variable in the "a" class, which is used by a method in another class in the same package
*
* */
package testcases.CWE134_Uncontrolled_Format_String.s01;
import testcasesupport.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.net.Socket;
import java.util.logging.Level;
public class CWE134_Uncontrolled_Format_String__connect_tcp_printf_68a extends AbstractTestCase
{
public static String data;
public void bad() throws Throwable
{
data = ""; /* Initialize data */
/* Read data using an outbound tcp connection */
{
Socket socket = null;
BufferedReader readerBuffered = null;
InputStreamReader readerInputStream = null;
try
{
/* Read data using an outbound tcp connection */
socket = new Socket("host.example.org", 39544);
/* read input from socket */
readerInputStream = new InputStreamReader(socket.getInputStream(), "UTF-8");
readerBuffered = new BufferedReader(readerInputStream);
/* POTENTIAL FLAW: Read data using an outbound tcp connection */
data = readerBuffered.readLine();
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error with stream reading", exceptIO);
}
finally
{
/* clean up stream reading objects */
try
{
if (readerBuffered != null)
{
readerBuffered.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing BufferedReader", exceptIO);
}
try
{
if (readerInputStream != null)
{
readerInputStream.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing InputStreamReader", exceptIO);
}
/* clean up socket objects */
try
{
if (socket != null)
{
socket.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing Socket", exceptIO);
}
}
}
(new CWE134_Uncontrolled_Format_String__connect_tcp_printf_68b()).badSink();
}
public void good() throws Throwable
{
goodG2B();
goodB2G();
}
/* goodG2B() - use goodsource and badsink */
private void goodG2B() throws Throwable
{
/* FIX: Use a hardcoded string */
data = "foo";
(new CWE134_Uncontrolled_Format_String__connect_tcp_printf_68b()).goodG2BSink();
}
/* goodB2G() - use badsource and goodsink */
private void goodB2G() throws Throwable
{
data = ""; /* Initialize data */
/* Read data using an outbound tcp connection */
{
Socket socket = null;
BufferedReader readerBuffered = null;
InputStreamReader readerInputStream = null;
try
{
/* Read data using an outbound tcp connection */
socket = new Socket("host.example.org", 39544);
/* read input from socket */
readerInputStream = new InputStreamReader(socket.getInputStream(), "UTF-8");
readerBuffered = new BufferedReader(readerInputStream);
/* POTENTIAL FLAW: Read data using an outbound tcp connection */
data = readerBuffered.readLine();
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error with stream reading", exceptIO);
}
finally
{
/* clean up stream reading objects */
try
{
if (readerBuffered != null)
{
readerBuffered.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing BufferedReader", exceptIO);
}
try
{
if (readerInputStream != null)
{
readerInputStream.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing InputStreamReader", exceptIO);
}
/* clean up socket objects */
try
{
if (socket != null)
{
socket.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing Socket", exceptIO);
}
}
}
(new CWE134_Uncontrolled_Format_String__connect_tcp_printf_68b()).goodB2GSink();
}
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"bqcuong2212@gmail.com"
] |
bqcuong2212@gmail.com
|
7e0394680df2b971ef6722470f7bde696cd79f03
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/17/17_829a05337b38b6e565008cc7ed4f5708fe106c70/ContentStreamTest/17_829a05337b38b6e565008cc7ed4f5708fe106c70_ContentStreamTest_s.java
|
190ae7b43a6a9561325bc094815a88c430caf520
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,831
|
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.solr.common.util;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.net.URL;
import java.net.URLConnection;
import org.apache.commons.io.IOUtils;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.solr.common.util.ContentStreamBase;
import org.apache.solr.core.SolrResourceLoader;
/**
*/
public class ContentStreamTest extends LuceneTestCase
{
public void testStringStream() throws IOException
{
String input = "aads ghaskdgasgldj asl sadg ajdsg &jag # @ hjsakg hsakdg hjkas s";
ContentStreamBase stream = new ContentStreamBase.StringStream( input );
assertEquals( input.length(), stream.getSize().intValue() );
assertEquals( input, IOUtils.toString( stream.getStream(), "UTF-8" ) );
assertEquals( input, IOUtils.toString( stream.getReader() ) );
}
public void testFileStream() throws IOException
{
InputStream is = new SolrResourceLoader(null, null).openResource( "solrj/README" );
assertNotNull( is );
File file = new File(TEMP_DIR, "README");
FileOutputStream os = new FileOutputStream(file);
IOUtils.copy(is, os);
os.close();
ContentStreamBase stream = new ContentStreamBase.FileStream( file );
assertEquals( file.length(), stream.getSize().intValue() );
assertTrue( IOUtils.contentEquals( new FileInputStream( file ), stream.getStream() ) );
assertTrue( IOUtils.contentEquals( new FileReader( file ), stream.getReader() ) );
}
public void testURLStream() throws IOException
{
byte[] content = null;
String contentType = null;
URL url = new URL( "http://svn.apache.org/repos/asf/lucene/dev/trunk/" );
InputStream in = url.openStream();
try {
URLConnection conn = url.openConnection();
in = conn.getInputStream();
contentType = conn.getContentType();
content = IOUtils.toByteArray(in);
}
finally {
IOUtils.closeQuietly(in);
}
assertTrue( content.length > 10 ); // found something...
ContentStreamBase stream = new ContentStreamBase.URLStream( url );
assertEquals( content.length, stream.getSize().intValue() );
// Test the stream
in = stream.getStream();
try {
assertTrue( IOUtils.contentEquals(
new ByteArrayInputStream(content), in ) );
}
finally {
IOUtils.closeQuietly(in);
}
String charset = ContentStreamBase.getCharsetFromContentType(contentType);
if (charset == null)
charset = ContentStreamBase.DEFAULT_CHARSET;
// Re-open the stream and this time use a reader
stream = new ContentStreamBase.URLStream( url );
assertTrue( IOUtils.contentEquals( new StringReader(new String(content, charset)), stream.getReader() ) );
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
d44b19b1f5bb66b6ed69d8f87e12e5bf63ad4e3e
|
baba7ae4f32f0e680f084effcd658890183e7710
|
/MutationFramework/muJava/muJavaMutantStructure/Persistence/TobiasSamples/Debug3/int_linearSearch(int,int)/AOIS_9/Debug3.java
|
80695ee46e9e994923e5934f859837d649776f9a
|
[
"Apache-2.0"
] |
permissive
|
TUBS-ISF/MutationAnalysisForDBC-FormaliSE21
|
75972c823c3c358494d2a2e9ec12e0a00e26d771
|
de825bc9e743db851f5ec1c5133dca3f04d20bad
|
refs/heads/main
| 2023-04-22T21:29:28.165271
| 2021-05-17T07:43:22
| 2021-05-17T07:43:22
| 368,096,901
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,193
|
java
|
// This is a mutant program.
// Author : ysma
public class Debug3
{
/*@
@ normal_behavior
@ requires true;
@ ensures \result>=0 ==> a[\result]==x;
@*/
public static int linearSearch( int[] a, int x )
{
int i = a.length - 1;
/*@ loop_invariant !(\exists int q; q >= i+1 && q < a.length; a[q]==x) && i>=-1 && i<a.length;
@ decreases i+1;
@*/
while (i >= 0 && a[++i] != x) {
i = i - 1;
}
return i;
}
/*@
@ normal_behavior
@ requires A.length > 0;
@ ensures (\forall int q; q >= 0 & q < A.length; A[\result]>=A[q]);
@*/
public static int maxElement( int[] A )
{
int i = 0;
int j = 1;
/*@ loop_invariant (\forall int q; q >= 0 && q < j; A[i]>=A[q]) && i>=0 && i<A.length && j>0 && j<=A.length && j>i;
@ decreases A.length - j;
@ assignable i,j;
@*/
while (j != A.length) {
/*@
@ normal_behavior
@ requires (\forall int q; q >= 0 && q < j; A[i]>=A[q])&& i>=0 && i<A.length && j>0 && j<=A.length && j>i;
@ ensures (\forall int q; q >= 0 && q < j+1; A[i]>=A[q])&& i>=0 && i<A.length && j>0 && j<=A.length && j>=i;
@ assignable i;
@*/
{
if (A[j] > A[i]) {
i = j;
} else {
if (A[j] <= A[i]) {
;
}
}
}
/*@
@ normal_behavior
@ requires (\forall int q; q >= 0 && q < j+1; A[i]>=A[q])&& i>=0 && i<A.length && j>0 && j<=A.length && j>=i;
@ ensures (\forall int q; q >= 0 && q < j; A[i]>=A[q])&& i>=0 && i<A.length && j>0 && j<=A.length && j>i && j==\old(j)+1;
@ assignable j;
@*/
{
j = j + 1;
}
}
return i;
}
static int wb;
static int wt;
static int bb;
/*@
@ normal_behavior
@ requires A.length > 0 && (\forall int i; i>=0 & i<A.length; A[i] == 0 || A[i] == 1 || A[i] == 2);
@ ensures (\forall int q; q >= 0 && q < wb; \result[q]==0) && (\forall int q; q >= wb && q < wt; \result[q]==1) && (\forall int q; q >= bb && q < \result.length; \result[q]==2) && 0<=wb && wb<=wt && wt==bb && bb<=A.length;
@*/
public static int[] DutchFlag( int[] A )
{
wb = 0;
wt = 0;
bb = A.length;
/*@ loop_invariant (\forall int i; i>=0 & i<A.length; A[i] == 0 || A[i] == 1 || A[i] == 2) && (\forall int q; q >= 0 && q < wb; A[q]==0) && (\forall int q; q >= wb && q < wt; A[q]==1) && (\forall int q; q >= bb && q < A.length; A[q]==2) && 0<=wb && wb<=wt && wt<=bb && bb<=A.length;
@ decreases bb-wt;
@*/
while (wt != bb) {
if (A[wt] == 0) {
int t = A[wt];
A[wt] = A[wb];
A[wb] = t;
wt = wt + 1;
wb = wb + 1;
} else {
if (A[wt] == 1) {
wt = wt + 1;
} else {
if (A[wt] == 2) {
int t = A[wt];
A[wt] = A[bb - 1];
A[bb - 1] = t;
bb = bb - 1;
}
}
}
}
return A;
}
}
|
[
"a.knueppel@tu-bs.de"
] |
a.knueppel@tu-bs.de
|
14dfd2c3a6dd83d3983fa33a3f5a36bc8a52def7
|
0adcb787c2d7b3bbf81f066526b49653f9c8db40
|
/src/main/java/com/alipay/api/response/AlipayEcoCplifeRoominfoUploadResponse.java
|
bf9c16cbbde36cc55efc321872e665b2660b45be
|
[
"Apache-2.0"
] |
permissive
|
yikey/alipay-sdk-java-all
|
1cdca570c1184778c6f3cad16fe0bcb6e02d2484
|
91d84898512c5a4b29c707b0d8d0cd972610b79b
|
refs/heads/master
| 2020-05-22T13:40:11.064476
| 2019-04-11T14:11:02
| 2019-04-11T14:11:02
| 186,365,665
| 1
| 0
| null | 2019-05-13T07:16:09
| 2019-05-13T07:16:08
| null |
UTF-8
|
Java
| false
| false
| 1,222
|
java
|
package com.alipay.api.response;
import java.util.List;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
import com.alipay.api.domain.CplifeRoomInfoResp;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.eco.cplife.roominfo.upload response.
*
* @author auto create
* @since 1.0, 2019-01-07 20:51:15
*/
public class AlipayEcoCplifeRoominfoUploadResponse extends AlipayResponse {
private static final long serialVersionUID = 6795393156544646715L;
/**
* 业主所在物业小区ID(支付宝平台唯一小区ID标示)
*/
@ApiField("community_id")
private String communityId;
/**
* 已经成功上传的房屋信息列表.
*/
@ApiListField("room_info_set")
@ApiField("cplife_room_info_resp")
private List<CplifeRoomInfoResp> roomInfoSet;
public void setCommunityId(String communityId) {
this.communityId = communityId;
}
public String getCommunityId( ) {
return this.communityId;
}
public void setRoomInfoSet(List<CplifeRoomInfoResp> roomInfoSet) {
this.roomInfoSet = roomInfoSet;
}
public List<CplifeRoomInfoResp> getRoomInfoSet( ) {
return this.roomInfoSet;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
b11b8f972d26239dbe4a600885ecbd08fa241c74
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/yauaa/learning/406/UserAgentAnalyzerPreLoader.java
|
3e8c5f8e99dcdd97faf6cb782795b0d6c229bf3c
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,223
|
java
|
/*
* Yet Another UserAgent Analyzer
* Copyright (C) 2013-2018 Niels Basjes
*
* 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 nl.basjes.parse.useragent.drill;
import nl.basjes.parse.useragent.UserAgentAnalyzer;
public final class UserAgentAnalyzerPreLoader {
private UserAgentAnalyzerPreLoader(){}
private static UserAgentAnalyzer instance = null;
public static synchronized UserAgentAnalyzer getInstance() {
if (instance == null) {
instance = UserAgentAnalyzer.newBuilder().dropTests().hideMatcherLoadStats().build();
// Bootstrap the engine only once.
instance.getAllPossibleFieldNamesSorted();
}
return instance;
}
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
050b35f1d113152c457dbe6b9c1682dda05a0e78
|
6f0ac78c939b3fcbeba1de4e65a0cb3c7bd32b71
|
/src/main/java/com/abc/soa/response/userinfo/GiftListResp.java
|
70a0c005273a63f19b9975d3ffb4534bfa4d04c0
|
[] |
no_license
|
aloneweizai/finance-tax-uc
|
ed16647cfe1d695519571fbd9a8ecbb4c607a1ca
|
874e6c1ad5200819c6725f1150a84140af0e16e3
|
refs/heads/master
| 2020-03-12T17:28:54.948132
| 2018-04-23T18:06:00
| 2018-04-23T18:06:16
| 130,737,173
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 589
|
java
|
package com.abc.soa.response.userinfo;
import com.abc.bean.userinfo.Gift;
import com.abc.common.soa.response.BaseResponse;
import java.util.List;
/**
* Created by andy on 2017/12/25.
*/
public class GiftListResp extends BaseResponse{
private int total;
private List<Gift> dataList;
public int getTotal() {
return total;
}
public void setTotal(int total) {
this.total = total;
}
public List<Gift> getDataList() {
return dataList;
}
public void setDataList(List<Gift> dataList) {
this.dataList = dataList;
}
}
|
[
"aloneweizai@163.com"
] |
aloneweizai@163.com
|
cbc2724f0faf8a0e53ca5948557bcf576379e926
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/MOCKITO-10b-4-1-PESA_II-WeightedSum:TestLen:CallDiversity/org/mockito/internal/creation/MockSettingsImpl_ESTest_scaffolding.java
|
eeaac15e2751a84ed81eff903c43543c85fc007f
|
[] |
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
| 450
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri Apr 03 09:15:08 UTC 2020
*/
package org.mockito.internal.creation;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class MockSettingsImpl_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
fbeff6aab5e5da0242bb602253b3df9df64c0413
|
26a837b93cf73e6c372830f9a7a316c01081a4ea
|
/core/src/main/java/arez/SpyImpl.java
|
8898a9c6f166818eb5ebdbd74fe6ba17c9bcae1f
|
[
"Apache-2.0"
] |
permissive
|
arez/arez
|
033b27f529b527c747b2a93f3c2c553c41c32acd
|
df68d72a69d3af1123e7d7c424f77b74f13f8052
|
refs/heads/master
| 2023-06-08T00:09:56.319223
| 2023-06-05T02:12:14
| 2023-06-05T02:12:14
| 96,367,327
| 13
| 4
|
Apache-2.0
| 2022-12-10T20:29:35
| 2017-07-05T22:50:24
|
Java
|
UTF-8
|
Java
| false
| false
| 4,912
|
java
|
package arez;
import arez.spy.ComponentInfo;
import arez.spy.ComputableValueInfo;
import arez.spy.ObservableValueInfo;
import arez.spy.ObserverInfo;
import arez.spy.Spy;
import arez.spy.SpyEventHandler;
import arez.spy.TaskInfo;
import arez.spy.TransactionInfo;
import grim.annotations.OmitSymbol;
import grim.annotations.OmitType;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import static org.realityforge.braincheck.Guards.*;
/**
* Class supporting the propagation of events to SpyEventHandler callbacks.
*/
@OmitType( unless = "arez.enable_spies" )
final class SpyImpl
implements Spy
{
/**
* The containing context.
*/
@OmitSymbol( unless = "arez.enable_zones" )
@Nullable
private final ArezContext _context;
/**
* Support infrastructure for interacting with spy event handlers..
*/
@Nonnull
private final SpyEventHandlerSupport _spyEventHandlerSupport = new SpyEventHandlerSupport();
SpyImpl( @Nullable final ArezContext context )
{
if ( Arez.shouldCheckInvariants() )
{
invariant( () -> Arez.areZonesEnabled() || null == context,
() -> "Arez-185: SpyImpl passed a context but Arez.areZonesEnabled() is false" );
}
_context = Arez.areZonesEnabled() ? Objects.requireNonNull( context ) : null;
}
@Override
public void addSpyEventHandler( @Nonnull final SpyEventHandler handler )
{
_spyEventHandlerSupport.addSpyEventHandler( handler );
}
@Override
public void removeSpyEventHandler( @Nonnull final SpyEventHandler handler )
{
_spyEventHandlerSupport.removeSpyEventHandler( handler );
}
@Override
public void reportSpyEvent( @Nonnull final Object event )
{
_spyEventHandlerSupport.reportSpyEvent( event );
}
@Override
public boolean willPropagateSpyEvents()
{
return _spyEventHandlerSupport.willPropagateSpyEvents();
}
@Nonnull
private ArezContext getContext()
{
return Arez.areZonesEnabled() ? Objects.requireNonNull( _context ) : Arez.context();
}
@Override
public boolean isTransactionActive()
{
return getContext().isTransactionActive();
}
@Nonnull
@Override
public TransactionInfo getTransaction()
{
if ( Arez.shouldCheckApiInvariants() )
{
apiInvariant( this::isTransactionActive,
() -> "Arez-0105: Spy.getTransaction() invoked but no transaction active." );
}
return getContext().getTransaction().asInfo();
}
@Nullable
@Override
public ComponentInfo findComponent( @Nonnull final String type, @Nonnull final Object id )
{
final Component component = getContext().findComponent( type, id );
return null != component ? component.asInfo() : null;
}
@Nonnull
@Override
public Collection<ComponentInfo> findAllComponentsByType( @Nonnull final String type )
{
final List<ComponentInfo> infos =
getContext().findAllComponentsByType( type ).stream().
map( Component::asInfo ).
collect( Collectors.toList() );
return Collections.unmodifiableCollection( infos );
}
@Nonnull
@Override
public Collection<String> findAllComponentTypes()
{
return Collections.unmodifiableCollection( getContext().findAllComponentTypes() );
}
@Nonnull
@Override
public Collection<ObservableValueInfo> findAllTopLevelObservableValues()
{
return ObservableValueInfoImpl.asUnmodifiableInfos( getContext().getTopLevelObservables().values() );
}
@Nonnull
@Override
public Collection<ObserverInfo> findAllTopLevelObservers()
{
return ObserverInfoImpl.asUnmodifiableInfos( getContext().getTopLevelObservers().values() );
}
@Nonnull
@Override
public Collection<ComputableValueInfo> findAllTopLevelComputableValues()
{
return ComputableValueInfoImpl.asUnmodifiableInfos( getContext().getTopLevelComputableValues().values() );
}
@Nonnull
@Override
public Collection<TaskInfo> findAllTopLevelTasks()
{
return TaskInfoImpl.asUnmodifiableInfos( getContext().getTopLevelTasks().values() );
}
@Nonnull
@Override
public ComponentInfo asComponentInfo( @Nonnull final Component component )
{
return component.asInfo();
}
@Nonnull
@Override
public ObserverInfo asObserverInfo( @Nonnull final Observer observer )
{
return observer.asInfo();
}
@Nonnull
@Override
public <T> ObservableValueInfo asObservableValueInfo( @Nonnull final ObservableValue<T> observableValue )
{
return observableValue.asInfo();
}
@Nonnull
@Override
public <T> ComputableValueInfo asComputableValueInfo( @Nonnull final ComputableValue<T> computableValue )
{
return computableValue.asInfo();
}
@Nonnull
@Override
public TaskInfo asTaskInfo( @Nonnull final Task task )
{
return task.asInfo();
}
}
|
[
"peter@realityforge.org"
] |
peter@realityforge.org
|
21250f14d3d3df087c5a6856d981406b796adbe6
|
4f00d990f611630595e75eb6efb02f0babe99b19
|
/JFramework/crypto/src/main/java/it/richkmeli/jframework/crypto/algorithm/bouncycastle/crypto/tls/TlsSRPLoginParameters.java
|
05f2ab5d14e8845adcb410be7d5b3b47db26403d
|
[
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
whichbuffer/JFramework
|
9bd16cf2b304feb1f9d1d9a4fb95400b48e96c02
|
ef9f227c91d639eaf209a07727ea299a67757300
|
refs/heads/master
| 2022-12-27T02:09:28.988085
| 2020-08-08T23:01:42
| 2020-08-08T23:01:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 859
|
java
|
package it.richkmeli.jframework.crypto.algorithm.bouncycastle.crypto.tls;
import it.richkmeli.jframework.crypto.algorithm.bouncycastle.crypto.params.SRP6GroupParameters;
import java.math.BigInteger;
/**
* @deprecated Migrate to the (D)TLS API in it.richkmeli.jframework.crypto.algorithm.bouncycastle.tls (bctls jar).
*/
public class TlsSRPLoginParameters {
protected SRP6GroupParameters group;
protected BigInteger verifier;
protected byte[] salt;
public TlsSRPLoginParameters(SRP6GroupParameters group, BigInteger verifier, byte[] salt) {
this.group = group;
this.verifier = verifier;
this.salt = salt;
}
public SRP6GroupParameters getGroup() {
return group;
}
public byte[] getSalt() {
return salt;
}
public BigInteger getVerifier() {
return verifier;
}
}
|
[
"richkmeli@gmail.com"
] |
richkmeli@gmail.com
|
77ba6d0bd66803e51e9677b16f22c4e94d520a72
|
affe223efe18ba4d5e676f685c1a5e73caac73eb
|
/clients/webservice/src/main/java/com/vmware/vim/sms/ObjectUpdate.java
|
bbdbecf0690b8b08ac3f00f6d565f37cfc0cd1e7
|
[] |
no_license
|
RohithEngu/VM27
|
486f6093e0af2f6df1196115950b0d978389a985
|
f0f4f177210fd25415c2e058ec10deb13b7c9247
|
refs/heads/master
| 2021-01-16T00:42:30.971054
| 2009-08-14T19:58:16
| 2009-08-14T19:58:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,430
|
java
|
/**
* ObjectUpdate.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.vmware.vim.sms;
public class ObjectUpdate extends com.vmware.vim.sms.DynamicData implements
java.io.Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private com.vmware.vim.sms.ObjectUpdateKind kind;
private com.vmware.vim.sms.ManagedObjectReference obj;
private com.vmware.vim.sms.PropertyChange[] changeSet;
private com.vmware.vim.sms.MissingProperty[] missingSet;
public ObjectUpdate() {
}
public ObjectUpdate(java.lang.String dynamicType,
com.vmware.vim.sms.DynamicProperty[] dynamicProperty,
com.vmware.vim.sms.ObjectUpdateKind kind,
com.vmware.vim.sms.ManagedObjectReference obj,
com.vmware.vim.sms.PropertyChange[] changeSet,
com.vmware.vim.sms.MissingProperty[] missingSet) {
super(dynamicType, dynamicProperty);
this.kind = kind;
this.obj = obj;
this.changeSet = changeSet;
this.missingSet = missingSet;
}
/**
* Gets the kind value for this ObjectUpdate.
*
* @return kind
*/
public com.vmware.vim.sms.ObjectUpdateKind getKind() {
return kind;
}
/**
* Sets the kind value for this ObjectUpdate.
*
* @param kind
*/
public void setKind(com.vmware.vim.sms.ObjectUpdateKind kind) {
this.kind = kind;
}
/**
* Gets the obj value for this ObjectUpdate.
*
* @return obj
*/
public com.vmware.vim.sms.ManagedObjectReference getObj() {
return obj;
}
/**
* Sets the obj value for this ObjectUpdate.
*
* @param obj
*/
public void setObj(com.vmware.vim.sms.ManagedObjectReference obj) {
this.obj = obj;
}
/**
* Gets the changeSet value for this ObjectUpdate.
*
* @return changeSet
*/
public com.vmware.vim.sms.PropertyChange[] getChangeSet() {
return changeSet;
}
/**
* Sets the changeSet value for this ObjectUpdate.
*
* @param changeSet
*/
public void setChangeSet(com.vmware.vim.sms.PropertyChange[] changeSet) {
this.changeSet = changeSet;
}
public com.vmware.vim.sms.PropertyChange getChangeSet(int i) {
return this.changeSet[i];
}
public void setChangeSet(int i, com.vmware.vim.sms.PropertyChange _value) {
this.changeSet[i] = _value;
}
/**
* Gets the missingSet value for this ObjectUpdate.
*
* @return missingSet
*/
public com.vmware.vim.sms.MissingProperty[] getMissingSet() {
return missingSet;
}
/**
* Sets the missingSet value for this ObjectUpdate.
*
* @param missingSet
*/
public void setMissingSet(com.vmware.vim.sms.MissingProperty[] missingSet) {
this.missingSet = missingSet;
}
public com.vmware.vim.sms.MissingProperty getMissingSet(int i) {
return this.missingSet[i];
}
public void setMissingSet(int i, com.vmware.vim.sms.MissingProperty _value) {
this.missingSet[i] = _value;
}
private java.lang.Object __equalsCalc = null;
@Override
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof ObjectUpdate)) {
return false;
}
ObjectUpdate other = (ObjectUpdate) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj)
&& ((this.kind == null && other.getKind() == null) || (this.kind != null && this.kind
.equals(other.getKind())))
&& ((this.obj == null && other.getObj() == null) || (this.obj != null && this.obj
.equals(other.getObj())))
&& ((this.changeSet == null && other.getChangeSet() == null) || (this.changeSet != null && java.util.Arrays
.equals(this.changeSet, other.getChangeSet())))
&& ((this.missingSet == null && other.getMissingSet() == null) || (this.missingSet != null && java.util.Arrays
.equals(this.missingSet, other.getMissingSet())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
@Override
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getKind() != null) {
_hashCode += getKind().hashCode();
}
if (getObj() != null) {
_hashCode += getObj().hashCode();
}
if (getChangeSet() != null) {
for (int i = 0; i < java.lang.reflect.Array
.getLength(getChangeSet()); i++) {
java.lang.Object obj = java.lang.reflect.Array.get(
getChangeSet(), i);
if (obj != null && !obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
if (getMissingSet() != null) {
for (int i = 0; i < java.lang.reflect.Array
.getLength(getMissingSet()); i++) {
java.lang.Object obj = java.lang.reflect.Array.get(
getMissingSet(), i);
if (obj != null && !obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
ObjectUpdate.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:sm1",
"ObjectUpdate"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("kind");
elemField.setXmlName(new javax.xml.namespace.QName("urn:sm1", "kind"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:sm1",
"ObjectUpdateKind"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("obj");
elemField.setXmlName(new javax.xml.namespace.QName("urn:sm1", "obj"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:sm1",
"ManagedObjectReference"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("changeSet");
elemField.setXmlName(new javax.xml.namespace.QName("urn:sm1",
"changeSet"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:sm1",
"PropertyChange"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
elemField.setMaxOccursUnbounded(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("missingSet");
elemField.setXmlName(new javax.xml.namespace.QName("urn:sm1",
"missingSet"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:sm1",
"MissingProperty"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
elemField.setMaxOccursUnbounded(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType, java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
_xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType, java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,
_xmlType, typeDesc);
}
}
|
[
"sankarachary@intalio.com"
] |
sankarachary@intalio.com
|
aa61ce3b5353489b3512b6a0e3ebb5e238bb3b4b
|
53d677a55e4ece8883526738f1c9d00fa6560ff7
|
/com/tencent/mm/plugin/appbrand/jsapi/i/d$a.java
|
6fea76f3295a259e4567dab09ec9dbced52d22ea
|
[] |
no_license
|
0jinxing/wechat-apk-source
|
544c2d79bfc10261eb36389c1edfdf553d8f312a
|
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
|
refs/heads/master
| 2020-06-07T20:06:03.580028
| 2019-06-21T09:17:26
| 2019-06-21T09:17:26
| 193,069,132
| 9
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 470
|
java
|
package com.tencent.mm.plugin.appbrand.jsapi.i;
import com.tencent.mm.plugin.appbrand.jsapi.ah;
public final class d$a extends ah
{
public static final int CTRL_INDEX = 271;
public static final String NAME = "onDownloadTaskStateChange";
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes5-dex2jar.jar
* Qualified Name: com.tencent.mm.plugin.appbrand.jsapi.i.d.a
* JD-Core Version: 0.6.2
*/
|
[
"172601673@qq.com"
] |
172601673@qq.com
|
4a3f0364b6d0c7b0d8e0a3652270fa01c316f4ea
|
dcc171ae042320d08801e667e3f7ad7c38ba118e
|
/TSOTesting2/runBool/Tests/test325/main/Main.java
|
26fd50094695942c2f275187c47b52a6ca92dbff
|
[
"MIT"
] |
permissive
|
Colosu/TSO-for-Testing
|
2958f55498c1407dc97d5c0e368ef524c5ded9df
|
06e03b6926b058e5440f7de2ee49e5343efcef45
|
refs/heads/main
| 2023-03-31T01:02:40.486566
| 2021-04-09T10:34:49
| 2021-04-09T10:34:49
| 356,229,436
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,936
|
java
|
// This is a mutant program.
// Author : ysma
package main;
import java.util.Enumeration;
import javax.swing.tree.DefaultMutableTreeNode;
public class Main
{
public static void main( java.lang.String[] args )
{
javax.swing.tree.DefaultMutableTreeNode tree = new javax.swing.tree.DefaultMutableTreeNode( "S" );
javax.swing.tree.DefaultMutableTreeNode pos = tree;
java.lang.String t = args[0];
java.lang.String[] nodes = t.split( "[|]" );
java.lang.String node = "";
int len = 3;
int oldLen = 3;
int length = nodes.length;
for (int i = 0; i < length; i++) {
node = nodes[i];
if (node.length() > 2) {
len = node.length();
if (len < oldLen) {
for (int j = 0; j < oldLen - len; j++) {
pos = (javax.swing.tree.DefaultMutableTreeNode) pos.getParent();
}
} else {
if (len > oldLen) {
pos = (javax.swing.tree.DefaultMutableTreeNode) pos.getLastChild();
}
}
pos.add( new javax.swing.tree.DefaultMutableTreeNode( node ) );
oldLen = len;
}
}
System.out.println( isEven( tree, length ).toString() );
}
public static java.lang.Boolean isEven( javax.swing.tree.DefaultMutableTreeNode tree, int len )
{
java.lang.Integer[][] list = new java.lang.Integer[len][2];
int pos = -1;
int depth = 0;
java.util.Enumeration<DefaultMutableTreeNode> nodes = tree.breadthFirstEnumeration();
for (int i = 0; i < len; i++) {
javax.swing.tree.DefaultMutableTreeNode node = nodes.nextElement();
if (node.getLevel() != depth) {
pos = 0;
depth = node.getLevel();
} else {
pos++;
}
java.lang.Integer[] inte = new java.lang.Integer[2];
inte[0] = node.getLevel();
inte[1] = pos;
list[i] = inte;
}
sort( list, 0, len - 1 );
pos = 0;
int sum = 0;
int count = 0;
double total = 0.0;
for (int i = 0; i < len; i++) {
java.lang.Integer[] e = list[i];
if (pos == e[1]) {
sum += e[0];
count++;
} else {
total += (double) sum / count;
sum = e[0];
count = 1;
pos = e[1];
}
}
total += (double) sum / count;
if ((int) total % 2 == 0) {
return true;
} else {
return false;
}
}
private static void merge( java.lang.Integer[][] arr, int l, int m, int r )
{
int n1 = m - l + 1;
int n2 = r - m;
java.lang.Integer[][] L = new java.lang.Integer[n1][2];
java.lang.Integer[][] R = new java.lang.Integer[n2][2];
for (int i = 0; i < n1; ++i) {
L[i] = arr[l + i];
}
for (int j = 0; j < n2; ++j) {
R[j] = arr[m + 1 + j];
}
int i = 0;
int j = 0;
int k = l;
while (i < n1 && j < n2) {
if (L[i][1] <= R[j][1]) {
arr[k] = L[i];
i++;
} else {
arr[k] = R[j];
j++;
}
k++;
}
while (i < n1) {
arr[k] = L[i];
i++;
k++;
}
while (j < -n2) {
arr[k] = R[j];
j++;
k++;
}
}
private static void sort( java.lang.Integer[][] arr, int l, int r )
{
if (l < r) {
int m = (l + r) / 2;
sort( arr, l, m );
sort( arr, m + 1, r );
merge( arr, l, m, r );
}
}
}
|
[
"alfredocolosu@gmail.com"
] |
alfredocolosu@gmail.com
|
5916a717beb096c685354ec76cab13d4f64ecd25
|
6252c165657baa6aa605337ebc38dd44b3f694e2
|
/org.eclipse.epsilon.egl.sync/Scalability-Tests/boiler-To-Generate-1000-Files/boiler-To-Generate-1000-Files/syncregions-1000Files/TemperatureController505.java
|
90f93fa5ef5e8d05afe0725e5deda2caa08372e3
|
[] |
no_license
|
soha500/EglSync
|
00fc49bcc73f7f7f7fb7641d0561ca2b9a8ea638
|
55101bc781349bb14fefc178bf3486e2b778aed6
|
refs/heads/master
| 2021-06-23T02:55:13.464889
| 2020-12-11T19:10:01
| 2020-12-11T19:10:01
| 139,832,721
| 0
| 1
| null | 2019-05-31T11:34:02
| 2018-07-05T10:20:00
|
Java
|
UTF-8
|
Java
| false
| false
| 368
|
java
|
package syncregions;
public class TemperatureController505 {
public int execute(int temperature505, int targetTemperature505) {
//sync _bfpnFUbFEeqXnfGWlV2505, behaviour
1-if(temperatureDifference > 0 && boilerStatus == true) { return 1; } else if (temperatureDifference < 0 && boilerStatus == false) { return 2; } else return 0;
//endSync
}
}
|
[
"sultanalmutairi@172.20.10.2"
] |
sultanalmutairi@172.20.10.2
|
a3e62bc3ca86f897587223d32ef926e2c4719a50
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_16177.java
|
a5617a3e1f630b5f7de759d4a3879730d339cb08
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 250
|
java
|
@ExceptionHandler(DuplicateKeyException.class) @ResponseStatus(HttpStatus.BAD_REQUEST) ResponseMessage handleException(DuplicateKeyException exception){
logger.error(exception.getMessage(),exception);
return ResponseMessage.error(400,"?????");
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
13be37fa496b7c43419342951eea7b9489433f4f
|
439874522c15194dbf83b63ccdfefeee217ab3c5
|
/plugins/kotlin/idea/tests/testData/decompiler/navigation/userJavaCode/OverloadedFun.java
|
12283aab333ddde2c8fb98fc83d083c1411fefc9
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
jbeckers/intellij-community
|
c473f51026be1ffcdd5979c6e750274133b2b847
|
37e4976327f5f5b595a4d20192482f966c9683b6
|
refs/heads/master
| 2023-04-29T11:21:10.165921
| 2023-02-16T07:10:25
| 2023-02-16T07:35:15
| 62,625,846
| 1
| 0
|
Apache-2.0
| 2021-03-18T16:36:09
| 2016-07-05T09:59:44
| null |
UTF-8
|
Java
| false
| false
| 266
|
java
|
import testData.libraries.*;
class TestOverload {
void foo() {
OverloadedFunKt.overloadedFun("", null, 2, null);
OverloadedFunKt.overloadedFun("", null, true, 2, null);
OverloadedFunKt.overloadedFun("", null, true, 2, 3, null);
}
}
|
[
"intellij-monorepo-bot-no-reply@jetbrains.com"
] |
intellij-monorepo-bot-no-reply@jetbrains.com
|
39ca03f4a2310742815cc7ef43d766e0c609dbab
|
d730308970df56fba9be1f2ff81bcc5814b9c787
|
/ContabilidadGUI/src/com/trascender/contabilidad/gui/abmBanco/abm/ABMBancoView.java
|
e000fb7499b577c26570ba26f313e28e1206b51e
|
[] |
no_license
|
munivictoria/sgmdv
|
dda1285de24477e75986d655c9fc4d805ef47a4e
|
9da300b2c90cb3ec7f7c3af47509db884f71ab05
|
refs/heads/master
| 2021-01-18T21:16:59.795064
| 2016-05-16T13:36:11
| 2016-05-16T13:36:11
| 28,036,850
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,437
|
java
|
package com.trascender.contabilidad.gui.abmBanco.abm;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import com.trascender.contabilidad.gui.abmBanco.BancoABMModel;
import com.trascender.contabilidad.gui.recursos.MessagesContabilidad;
import com.trascender.gui.framework.abmStandard.ABMView;
import com.trascender.gui.framework.component.TLabel;
import com.trascender.gui.framework.util.Util;
public abstract class ABMBancoView extends ABMView {
private static final long serialVersionUID = -486623717321421113L;
private BancoABMModel abmModel;
private JLabel lblNombre;
private JTextField tfNombre;
private JLabel lblSucursal;
private JTextField tfSucursal;
private static final String NOMBRE_RECURSO = "ABMBanco";
public ABMBancoView(JFrame owner) {
super(owner);
this.init();
}
public ABMBancoView(JDialog owner) {
super(owner);
this.init();
}
private void init() {
int numFila = -1;
numFila++;
this.lblNombre = new TLabel();
this.lblNombre.setText(MessagesContabilidad.getString(NOMBRE_RECURSO + ".lblNombre"));
this.lblNombre.setBounds(Util.getBoundsColumnaLabel(numFila));
this.getPnlCuerpo().add(this.lblNombre);
this.tfNombre = new JTextField();
this.tfNombre.setBounds(Util.getBoundsColumnaInputTextField(numFila));
this.getPnlCuerpo().add(this.tfNombre);
numFila++;
this.lblSucursal = new TLabel();
this.lblSucursal.setText(MessagesContabilidad.getString(NOMBRE_RECURSO + ".lblSucursal"));
this.lblSucursal.setBounds(Util.getBoundsColumnaLabel(numFila));
this.getPnlCuerpo().add(this.lblSucursal);
this.tfSucursal = new JTextField();
this.tfSucursal.setBounds(Util.getBoundsColumnaInputTextField(numFila));
this.getPnlCuerpo().add(this.tfSucursal);
this.setTamanioPosicionVentana(numFila + 1);
}
@Override
public void setTamanioPosicionVentana(int pCantidadFilasComponentes) {
this.setSize(Util.getTamanioVentanaABM(pCantidadFilasComponentes));
this.setLocationRelativeTo(null);
}
public BancoABMModel getAbmModel() {
return abmModel;
}
public void setAbmModel(BancoABMModel abmModel) {
this.abmModel = abmModel;
}
public JLabel getLblNombre() {
return lblNombre;
}
public JLabel getLblSucursal() {
return lblSucursal;
}
public JTextField getTfNombre() {
return tfNombre;
}
public JTextField getTfSucursal() {
return tfSucursal;
}
}
|
[
"ferna@fernando-notebook.(none)"
] |
ferna@fernando-notebook.(none)
|
0985e9d88b4abedc8c126e669bdb9842947ad236
|
efea07f32c57c84d9c137fd9fd287f77d039d919
|
/javasource/databasereplication/interfaces/IValueParser.java
|
4883d34e3d88a1d2c62d8b14c95f1d24862747b9
|
[
"MIT"
] |
permissive
|
McDoyen/yavasource
|
a4e53bb519ded49f85c8475fca7c94abf1cfdaee
|
fe15e7d9c3d230465583764d01daedd6157060a8
|
refs/heads/master
| 2021-05-07T01:22:45.391241
| 2017-11-10T11:48:54
| 2017-11-10T11:48:54
| 110,241,187
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 492
|
java
|
package databasereplication.interfaces;
import java.sql.ResultSet;
import java.sql.SQLException;
import replication.ValueParser.ParseException;
public abstract class IValueParser implements replication.interfaces.IValueParser {
public Object parseValue(String columnAlias, ResultSet rs) throws ParseException {
try {
return parseValue( rs.getObject(columnAlias) );
}
catch (SQLException e) {
throw new ParseException(e);
}
}
}
|
[
"mrpoloh@yahoo.co.uk"
] |
mrpoloh@yahoo.co.uk
|
496eb50064f1a8ffb1831114f35a2dc84efd93b7
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-ws/results/MATH-32b-8-3-Single_Objective_GGA-WeightedSum/org/apache/commons/math3/geometry/partitioning/BSPTree_ESTest.java
|
44c8d4bd7deff7a0ce8c55eb1c8f81ed04043ee5
|
[
"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
| 567
|
java
|
/*
* This file was automatically generated by EvoSuite
* Mon Mar 30 15:54:09 UTC 2020
*/
package org.apache.commons.math3.geometry.partitioning;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class BSPTree_ESTest extends BSPTree_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
d803a02bd661a0834c22f6fe784f2b591065941b
|
4a90bd18fb80a87af8da7affbf459256613edb20
|
/manager/ui/war/src/main/java/io/apiman/manager/ui/client/local/pages/OrgRedirectPage.java
|
1dde8f9c7cae1dc04a53fe14ab969a5917a948ec
|
[
"Apache-2.0"
] |
permissive
|
JARP80/apiman
|
e672e9a4d58acddde76613467821cb581e43418a
|
6d5bbb6ab2fd45cebe1ce375b0c8330f1c7ced83
|
refs/heads/master
| 2021-01-18T06:26:42.349502
| 2015-03-27T15:27:29
| 2015-03-27T15:27:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,578
|
java
|
/*
* Copyright 2014 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.apiman.manager.ui.client.local.pages;
import io.apiman.manager.api.beans.idm.CurrentUserBean;
import io.apiman.manager.api.beans.idm.PermissionBean;
import io.apiman.manager.api.beans.idm.PermissionType;
import io.apiman.manager.ui.client.local.services.RestInvokerService;
import io.apiman.manager.ui.client.local.services.rest.IRestInvokerCallback;
import io.apiman.manager.ui.client.local.util.MultimapUtil;
import java.util.Set;
import javax.enterprise.context.Dependent;
import javax.inject.Inject;
import org.jboss.errai.ui.nav.client.local.Page;
import org.jboss.errai.ui.nav.client.local.PageState;
/**
* The default org page. This page is responsible for simply
* redirecting to the proper specific org page.
*
* @author eric.wittmann@redhat.com
*/
@Page(path="org")
@Dependent
public class OrgRedirectPage extends AbstractRedirectPage {
@Inject
protected RestInvokerService rest;
@PageState
protected String org;
/**
* Constructor.
*/
public OrgRedirectPage() {
}
/**
* @see io.apiman.manager.ui.client.local.pages.AbstractRedirectPage#doRedirect()
*/
@Override
protected void doRedirect() {
CurrentUserBean currentUserBean = AbstractPage.currentUserBean;
if (currentUserBean != null) {
redirectFor(currentUserBean);
} else {
rest.getCurrentUserInfo(new IRestInvokerCallback<CurrentUserBean>() {
@Override
public void onSuccess(CurrentUserBean response) {
redirectFor(response);
}
@Override
public void onError(Throwable error) {
nav.goTo(DashboardPage.class, MultimapUtil.emptyMap());
}
});
}
}
/**
* @param user
*/
protected void redirectFor(CurrentUserBean user) {
if (hasPermission(PermissionType.planView, user)) {
nav.goTo(OrgPlansPage.class, MultimapUtil.singleItemMap("org", org)); //$NON-NLS-1$
} else if (hasPermission(PermissionType.svcView, user)) {
nav.goTo(OrgServicesPage.class, MultimapUtil.singleItemMap("org", org)); //$NON-NLS-1$
} else if (hasPermission(PermissionType.appView, user)) {
nav.goTo(OrgAppsPage.class, MultimapUtil.singleItemMap("org", org)); //$NON-NLS-1$
} else {
nav.goTo(OrgMembersPage.class, MultimapUtil.singleItemMap("org", org)); //$NON-NLS-1$
}
}
/**
* @param permission
* @param user
*/
private boolean hasPermission(PermissionType permission, CurrentUserBean user) {
Set<PermissionBean> permissions = user.getPermissions();
for (PermissionBean permissionBean : permissions) {
if (permissionBean.getName() == permission && permissionBean.getOrganizationId().equals(org)) {
return true;
}
}
return false;
}
}
|
[
"eric.wittmann@gmail.com"
] |
eric.wittmann@gmail.com
|
1a235c86fb811db5971ec602564e3b858c568045
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/api-vs-impl-small/core/src/main/java/org/gradle/testcore/performancenull_30/Productionnull_2945.java
|
bc2f66f4df4f589fe15509de222cae1b9183ca94
|
[] |
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_30;
public class Productionnull_2945 {
private final String property;
public Productionnull_2945(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
|
0fe29cf89d815a10a606b507fc5a783d201da33e
|
cfe2916f7a6749fee22f717232f6e2a81bec1a2c
|
/project1-1/src/acorn/userpage/shop/action/ShopDetailAction.java
|
85dd4a6be756eff0b9dab82a1220270e358c1e67
|
[] |
no_license
|
headbanging3/project1-1
|
90ff08d8a7a41c52d8b777dfb11d859f080b37ec
|
ac15ce435576993d9104f8d7153f798085705bdd
|
refs/heads/master
| 2020-12-02T19:50:38.019290
| 2017-08-03T06:45:34
| 2017-08-03T06:45:34
| 96,398,236
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 663
|
java
|
package acorn.userpage.shop.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import acorn.controller.Action;
import acorn.controller.ActionForward;
import acorn.product.dao.ItemDao;
import acorn.product.dto.ItemDto;
public class ShopDetailAction extends Action{
@Override
public ActionForward execute(HttpServletRequest request, HttpServletResponse response) {
int pno = Integer.parseInt(request.getParameter("pno"));
ItemDto item = ItemDao.getInstance().getDetail(pno);
request.setAttribute("item", item);
return new ActionForward("/userpage/shop/detail.jsp");
}
}
|
[
"you@example.com"
] |
you@example.com
|
9a269e3ec4208171555b7cf0eb63f288e26ce091
|
bec08e55120fd09a0d8f59e82aff97bbff228c7b
|
/4.JavaCollections/src/com/javarush/task/task32/task3201/Solution.java
|
fbe18d274e9c6833da399ff03e07ca6eab280431
|
[] |
no_license
|
sergeymamonov/JavaRushTasks
|
79f087ba631334321a275227286a02998c68135f
|
5723f977672f8631692a0cf3aad5b7a32731dcd1
|
refs/heads/main
| 2023-02-22T16:14:32.665336
| 2021-01-30T07:19:35
| 2021-01-30T07:19:35
| 316,418,200
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 578
|
java
|
package com.javarush.task.task32.task3201;
import java.io.IOException;
import java.io.RandomAccessFile;
/*
Запись в существующий файл
*/
public class Solution {
public static void main(String... args) {
try {
RandomAccessFile randomAccessFile = new RandomAccessFile(args[0], "rw");
randomAccessFile.seek(Math.min(randomAccessFile.length(), Integer.parseInt(args[1])));
randomAccessFile.write(args[2].getBytes());
randomAccessFile.close();
} catch (IOException e) {
}
}
}
|
[
"sergei.mamonov@gmail.com"
] |
sergei.mamonov@gmail.com
|
fbcdae1a8d3e6c9cb103c5706c99564e00b42ccc
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/21/21_2e4537a82d54d3e1691df4e1ce83348ec172cd5d/FileUtils/21_2e4537a82d54d3e1691df4e1ce83348ec172cd5d_FileUtils_s.java
|
50f838505d07b57ed0111c2c63d0ecec7dde9f58
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,200
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rightscale.util;
import java.io.*;
import java.util.*;
/**
*
* @author tony
*/
public class FileUtils {
public static String readText(File location)
throws IOException
{
String newline = System.getProperty("line.separator");
FileInputStream fis = new FileInputStream(location);
BufferedReader br = new BufferedReader(new InputStreamReader(fis));
StringBuffer contents = new StringBuffer();
String line = null;
do {
line = br.readLine();
if(line != null) {
contents.append(line);
contents.append(newline);
}
} while(line != null);
return contents.toString();
}
public static void writeText(String contents, File location)
throws IOException
{
FileOutputStream fos = new FileOutputStream(location);
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(fos));
bw.write(contents);
bw.close();
}
public static void writeResource(Class klass, String resName, File location)
throws IOException
{
FileOutputStream fos = new FileOutputStream(location);
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(fos));
InputStream in = klass.getResourceAsStream(resName);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String crlf = System.getProperty("line.separator");
String line = null;
do {
line = br.readLine();
if(line != null) {
bw.write(line); bw.write(crlf);
}
} while(line != null);
br.close();
bw.close();
}
public static void scheduleDelete(File f, int timeout)
throws IOException
{
new FileDeleter(f, timeout);
}
}
class FileDeleter implements Runnable {
public static Map _deleters = new HashMap();
Thread _thread = null;
File _file = null;
int _delay = 0;
boolean _abort = false;
public FileDeleter(File file, int delay)
throws IOException
{
String cp = file.getCanonicalPath();
synchronized(_deleters) {
FileDeleter fd = (FileDeleter)_deleters.get(cp);
if(fd != null) {
fd.abort();
}
}
_file = file;
_delay = delay;
_thread = new Thread(this);
_thread.start();
synchronized(_deleters) {
_deleters.put(cp, this);
}
}
public void run() {
try {
Thread.currentThread().sleep(_delay * 1000);
}
catch (InterruptedException e) {}
if(!_abort) {
_file.delete();
System.err.println("Deleted " + _file.getName());
}
}
protected void abort() {
_abort = true;
_thread.interrupt();
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
9875ba972b34f2b3c3307b34142774708eb1e1ab
|
4bdf74d8dbb210d29db0fdf1ae97aad08929612c
|
/data_test/82862/InsufficientFundsException.java
|
732fd9599d42aa95dbf134ac40a08fd3de821d2a
|
[] |
no_license
|
huyenhuyen1204/APR_data
|
cba03642f68ce543690a75bcefaf2e0682df5e7e
|
cb9b78b9e973202e9945d90e81d1bfaef0f9255c
|
refs/heads/master
| 2023-05-13T21:52:20.294382
| 2021-06-02T17:52:30
| 2021-06-02T17:52:30
| 373,250,240
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 343
|
java
|
import java.text.DecimalFormat;
/**
* Created by CCNE on 02/12/2020.
*/
public class InsufficientFundsException extends BankException {
public InsufficientFundsException(double amount) {
super("Số dư tài khoản không đủ $"
+ String.format("%.2f", amount) + " để thực hiện giao dịch");
}
}
|
[
"nguyenhuyen98pm@gmail.com"
] |
nguyenhuyen98pm@gmail.com
|
b0f57fa64b5110f09ebb93b97dd2c0ae13bba428
|
647eef4da03aaaac9872c8b210e4fc24485e49dc
|
/TestMemory/admobapk/src/main/java/com/google/android/gms/ads/internal/purchase/client/g.java
|
e839b53fad7fee6b24bb5d14762d4f7899b418a2
|
[] |
no_license
|
AlbertSnow/git_workspace
|
f2d3c68a7b6e62f41c1edcd7744f110e2bf7f021
|
a0b2cd83cfa6576182f440a44d957a9b9a6bda2e
|
refs/heads/master
| 2021-01-22T17:57:16.169136
| 2016-12-05T15:59:46
| 2016-12-05T15:59:46
| 28,154,580
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 492
|
java
|
package com.google.android.gms.ads.internal.purchase.client;
import android.content.Intent;
import android.os.IInterface;
public abstract interface g extends IInterface
{
public abstract void a();
public abstract void a(int paramInt1, int paramInt2, Intent paramIntent);
public abstract void b();
}
/* Location: C:\Program Files\APK反编译\classes_dex2jar.jar
* Qualified Name: com.google.android.gms.ads.internal.purchase.client.g
* JD-Core Version: 0.6.0
*/
|
[
"zhaojialiang@conew.com"
] |
zhaojialiang@conew.com
|
04ddba1a38a1cf82a4435ad759ecdfab9485d393
|
5b0ec241c66c6d2a7a33ad98b1cf5ed2d3e58f73
|
/src/main/java/com/yaj/jaso/business/qualityfine/ctrl/QualityFineController.java
|
3cd6678ea124d278f130715e9524f5bedd89f92b
|
[] |
no_license
|
xyxTest/jaso
|
5b2e9328a55da9f15f67abf33223dd2adc4e1909
|
ece1d180bafb1a925c9abe49a43d96f7afcc5254
|
refs/heads/master
| 2022-03-27T02:01:33.891040
| 2020-01-06T01:14:36
| 2020-01-06T01:14:36
| 231,997,366
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,583
|
java
|
package com.yaj.jaso.business.qualityfine.ctrl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.yaj.jaso.business.qualityfine.entity.po.QualityFinePO;
import com.yaj.jaso.business.qualityfine.entity.vo.QualityFineAdd;
import com.yaj.jaso.business.qualityfine.entity.vo.QualityFineVo;
import com.yaj.jaso.business.qualityfine.service.QualityFineService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@Api(value="质量奖惩单controller",tags="质量整改单操作接口")
@EnableAutoConfiguration
@RestController
@RequestMapping(value="QualityFine")
public class QualityFineController {
@Autowired
private QualityFineService cs;
/**
*质量奖惩单添加
*
**/
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
@ApiOperation(value="质量奖惩单添加接口",notes="添加")
@RequestMapping(value="/add", method = RequestMethod.POST)
public Object addQualityFine(
@RequestBody QualityFineAdd company) {
return cs.add(company);
}
/**
*质量奖惩单删除
*
**/
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
@ApiOperation(value="质量奖惩单删除接口",notes="删除")
@RequestMapping(value="/delete", method = RequestMethod.POST)
public Object deleteQualityFine(
@RequestBody List<QualityFinePO> company) {
return cs.deleteBatchByIds(company);
}
/**
*质量奖惩单列表获取
*
**/
@ApiOperation(value="质量奖惩单列表获取接口",notes="列表获取")
@RequestMapping(value="/select", method = RequestMethod.POST)
public Object getQualityFineList(@RequestBody QualityFineVo pt) {
return cs.selectPageList(pt);
}
/**
* 详情获取相关单位或者人员接口
*/
@ApiOperation(value="详情获取相关单位或者人员接口",notes="详情获取相关单位或者人员接口")
@RequestMapping(value="/selectById", method = RequestMethod.POST)
public Object selectById(@RequestBody QualityFinePO po) {
return cs.selectById(po);
}
}
|
[
"1055337148@qq.com"
] |
1055337148@qq.com
|
e7c7392a142ab5165a408cdbff84d3a2c385d0bb
|
a3b152278c3c5d4f0b6dc4e13ff4770b15146dbf
|
/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKAnnotationView.java
|
04614730421ac435db04bb16d7713d8c7bb72cf8
|
[
"Apache-2.0"
] |
permissive
|
chouxiaozi/robovm
|
75a892dad87843a255bd4823bb82776d5d09ebea
|
6b91cbed13554f54cef93c8eff4a4226e2857cac
|
refs/heads/master
| 2021-01-18T03:00:30.099079
| 2015-01-07T19:56:33
| 2015-01-07T19:56:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,381
|
java
|
/*
* Copyright (C) 2014 Trillian Mobile AB
*
* 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.robovm.apple.mapkit;
/*<imports>*/
import java.io.*;
import java.nio.*;
import java.util.*;
import org.robovm.objc.*;
import org.robovm.objc.annotation.*;
import org.robovm.objc.block.*;
import org.robovm.rt.*;
import org.robovm.rt.bro.*;
import org.robovm.rt.bro.annotation.*;
import org.robovm.rt.bro.ptr.*;
import org.robovm.apple.foundation.*;
import org.robovm.apple.corefoundation.*;
import org.robovm.apple.coregraphics.*;
import org.robovm.apple.corelocation.*;
import org.robovm.apple.uikit.*;
import org.robovm.apple.dispatch.*;
/*</imports>*/
/*<javadoc>*/
/**
* @since Available in iOS 3.0 and later.
*/
/*</javadoc>*/
/*<annotations>*/@Library("MapKit") @NativeClass/*</annotations>*/
/*<visibility>*/public/*</visibility>*/ class /*<name>*/MKAnnotationView/*</name>*/
extends /*<extends>*/UIView/*</extends>*/
/*<implements>*//*</implements>*/ {
/*<ptr>*/public static class MKAnnotationViewPtr extends Ptr<MKAnnotationView, MKAnnotationViewPtr> {}/*</ptr>*/
/*<bind>*/static { ObjCRuntime.bind(MKAnnotationView.class); }/*</bind>*/
/*<constants>*//*</constants>*/
/*<constructors>*/
public MKAnnotationView() {}
protected MKAnnotationView(SkipInit skipInit) { super(skipInit); }
public MKAnnotationView(MKAnnotation annotation, String reuseIdentifier) { super((SkipInit) null); initObject(init(annotation, reuseIdentifier)); }
/*</constructors>*/
public MKAnnotationView(CGRect frame) {
super(frame);
}
/*<properties>*/
@Property(selector = "reuseIdentifier")
public native String getReuseIdentifier();
@Property(selector = "annotation")
public native MKAnnotation getAnnotation();
@Property(selector = "setAnnotation:")
public native void setAnnotation(MKAnnotation v);
@Property(selector = "image")
public native UIImage getImage();
@Property(selector = "setImage:")
public native void setImage(UIImage v);
@Property(selector = "centerOffset")
public native @ByVal CGPoint getCenterOffset();
@Property(selector = "setCenterOffset:")
public native void setCenterOffset(@ByVal CGPoint v);
@Property(selector = "calloutOffset")
public native @ByVal CGPoint getCalloutOffset();
@Property(selector = "setCalloutOffset:")
public native void setCalloutOffset(@ByVal CGPoint v);
@Property(selector = "isEnabled")
public native boolean isEnabled();
@Property(selector = "setEnabled:")
public native void setEnabled(boolean v);
@Property(selector = "isHighlighted")
public native boolean isHighlighted();
@Property(selector = "setHighlighted:")
public native void setHighlighted(boolean v);
@Property(selector = "isSelected")
public native boolean isSelected();
@Property(selector = "setSelected:")
public native void setSelected(boolean v);
@Property(selector = "canShowCallout")
public native boolean isCanShowCallout();
@Property(selector = "setCanShowCallout:")
public native void setCanShowCallout(boolean v);
@Property(selector = "leftCalloutAccessoryView")
public native UIView getLeftCalloutAccessoryView();
@Property(selector = "setLeftCalloutAccessoryView:")
public native void setLeftCalloutAccessoryView(UIView v);
@Property(selector = "rightCalloutAccessoryView")
public native UIView getRightCalloutAccessoryView();
@Property(selector = "setRightCalloutAccessoryView:")
public native void setRightCalloutAccessoryView(UIView v);
/**
* @since Available in iOS 4.0 and later.
*/
@Property(selector = "isDraggable")
public native boolean isDraggable();
/**
* @since Available in iOS 4.0 and later.
*/
@Property(selector = "setDraggable:")
public native void setDraggable(boolean v);
/**
* @since Available in iOS 4.0 and later.
*/
@Property(selector = "dragState")
public native MKAnnotationViewDragState getDragState();
/**
* @since Available in iOS 4.0 and later.
*/
@Property(selector = "setDragState:")
public native void setDragState(MKAnnotationViewDragState v);
/*</properties>*/
/*<members>*//*</members>*/
/*<methods>*/
@Method(selector = "initWithAnnotation:reuseIdentifier:")
protected native @Pointer long init(MKAnnotation annotation, String reuseIdentifier);
@Method(selector = "prepareForReuse")
public native void prepareForReuse();
@Method(selector = "setSelected:animated:")
public native void setSelected(boolean selected, boolean animated);
/**
* @since Available in iOS 4.2 and later.
*/
@Method(selector = "setDragState:animated:")
public native void setDragState(MKAnnotationViewDragState newDragState, boolean animated);
/*</methods>*/
}
|
[
"blueriverteam@gmail.com"
] |
blueriverteam@gmail.com
|
755ade2a6e91d033982605ce24f1a9b15c113feb
|
c26304a54824faa7c1b34bb7882ee7a335a8e7fb
|
/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/DateToStringCastRule.java
|
949b1afaa08692903f7395d42b71d5d1e2ddf66b
|
[
"BSD-3-Clause",
"OFL-1.1",
"ISC",
"MIT",
"Apache-2.0"
] |
permissive
|
apache/flink
|
905e0709de6389fc9212a7c48a82669706c70b4a
|
fbef3c22757a2352145599487beb84e02aaeb389
|
refs/heads/master
| 2023-09-04T08:11:07.253750
| 2023-09-04T01:33:25
| 2023-09-04T01:33:25
| 20,587,599
| 23,573
| 14,781
|
Apache-2.0
| 2023-09-14T21:49:04
| 2014-06-07T07:00:10
|
Java
|
UTF-8
|
Java
| false
| false
| 1,997
|
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.flink.table.planner.functions.casting;
import org.apache.flink.table.types.logical.LogicalType;
import org.apache.flink.table.types.logical.LogicalTypeFamily;
import org.apache.flink.table.types.logical.LogicalTypeRoot;
import static org.apache.flink.table.planner.codegen.calls.BuiltInMethods.UNIX_DATE_TO_STRING;
import static org.apache.flink.table.planner.functions.casting.CastRuleUtils.staticCall;
import static org.apache.flink.table.types.logical.VarCharType.STRING_TYPE;
/** {@link LogicalTypeRoot#DATE} to {@link LogicalTypeFamily#CHARACTER_STRING} cast rule. */
class DateToStringCastRule extends AbstractCharacterFamilyTargetRule<Long> {
static final DateToStringCastRule INSTANCE = new DateToStringCastRule();
private DateToStringCastRule() {
super(CastRulePredicate.builder().input(LogicalTypeRoot.DATE).target(STRING_TYPE).build());
}
@Override
public String generateStringExpression(
CodeGeneratorCastRule.Context context,
String inputTerm,
LogicalType inputLogicalType,
LogicalType targetLogicalType) {
return staticCall(UNIX_DATE_TO_STRING(), inputTerm);
}
}
|
[
"twalthr@apache.org"
] |
twalthr@apache.org
|
b1198303c0fa633097e8dc93c586eb923e6af4f2
|
af2b3ba0c64f3b4c9d2059f73e79d4c377a0b5d1
|
/java基础/day1303_基本类型包装类/src/tarena/day1303/Test1.java
|
344325e5cfaefb25c02217c50438f01678e06ed9
|
[] |
no_license
|
xuelang201201/Android
|
495b411a3bcdf70969ff01cf8fcb7ee8ea5abfd8
|
0829c4904193c07cb41048543defae83f6c5a226
|
refs/heads/master
| 2022-05-06T09:09:48.921737
| 2020-04-22T08:41:15
| 2020-04-22T08:41:15
| 257,838,791
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 1,035
|
java
|
package tarena.day1303;
public class Test1 {
public static void main(String[] args) {
Integer a = new Integer(10);//新分配
Integer b = Integer.valueOf(10);//获得已存在的对象
Integer c = Integer.valueOf(10);//获得已存在的对象
System.out.println(a == b);
System.out.println(b == c);
System.out.println(a.equals(b));
//从Number 继承的6个取值方法
System.out.println(a.byteValue());
System.out.println(a.shortValue());
System.out.println(a.intValue());
System.out.println(a.longValue());
System.out.println(a.floatValue());
System.out.println(a.doubleValue());
//字符串转数字
System.out.println(Integer.parseInt("255"));
System.out.println(Integer.parseInt("11111111", 2));
System.out.println(Integer.parseInt("377", 8));
System.out.println(Integer.parseInt("ff", 16));
System.out.println(Integer.toBinaryString(255));//2进制
System.out.println(Integer.toOctalString(255)); //8进制
System.out.println(Integer.toHexString(255)); //16进制
}
}
|
[
"xuelang201201@gmail.com"
] |
xuelang201201@gmail.com
|
0f293d63309ac76df0b91ac03e7186ce550da316
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/22/22_6930579a642e1a1ccf5c1c37193c54fb21f20a2e/ForwardTransaction/22_6930579a642e1a1ccf5c1c37193c54fb21f20a2e_ForwardTransaction_s.java
|
0f7b38a4bc99e671528737eef5b36fb43671d024
|
[] |
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,091
|
java
|
package com.subgraph.vega.ui.http.commands;
import java.util.Iterator;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.handlers.HandlerUtil;
import com.subgraph.vega.api.http.proxy.IProxyTransaction;
public class ForwardTransaction extends AbstractHandler {
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().getSelection();
if (selection != null & selection instanceof IStructuredSelection) {
IStructuredSelection strucSelection = (IStructuredSelection) selection;
for (@SuppressWarnings("unchecked") Iterator<Object> iterator = strucSelection.iterator(); iterator.hasNext();) {
IProxyTransaction transaction = (IProxyTransaction) iterator.next();
transaction.doForward();
}
}
return null;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
75e28dd07752ddd0fa13ef132e8225d5899049de
|
982f6c3a3c006d2b03f4f53c695461455bee64e9
|
/src/main/java/com/alipay/api/response/ZhimaCreditContractBorrowCreateResponse.java
|
08b03d83a954f0d9bcdc1276c9545addbf8a6a44
|
[
"Apache-2.0"
] |
permissive
|
zhaomain/Alipay-Sdk
|
80ffc0505fe81cc7dd8869d2bf9a894b823db150
|
552f68a2e7c10f9ffb33cd8e0036b0643c7c2bb3
|
refs/heads/master
| 2022-11-15T03:31:47.418847
| 2020-07-09T12:18:59
| 2020-07-09T12:18:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 381
|
java
|
package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: zhima.credit.contract.borrow.create response.
*
* @author auto create
* @since 1.0, 2019-07-31 14:11:43
*/
public class ZhimaCreditContractBorrowCreateResponse extends AlipayResponse {
private static final long serialVersionUID = 3146575416872239342L;
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
85c1181a6e8664266a42458441c1e0c1062802f5
|
73e58f415cb25cf4d696ce12cff3e352ceeb61f1
|
/app/src/main/java/com/d/music/local/view/ISongView.java
|
ef1be605a77eb06ef63123caec71c25ad9a09076
|
[
"Apache-2.0"
] |
permissive
|
saifulfrank/DMusic
|
48514f89b58b91b0b7a9d00f4291785919b3b8af
|
780c3a19c08924f4f0e00efdd557642aa91ec8e2
|
refs/heads/master
| 2020-03-19T03:10:53.841434
| 2018-06-01T10:16:37
| 2018-06-01T10:16:37
| 135,702,572
| 0
| 0
| null | 2018-06-01T10:10:18
| 2018-06-01T10:10:18
| null |
UTF-8
|
Java
| false
| false
| 252
|
java
|
package com.d.music.local.view;
import com.d.lib.common.module.loader.IAbsView;
import com.d.music.module.greendao.music.base.MusicModel;
/**
* ISongView
* Created by D on 2016/6/4.
*/
public interface ISongView extends IAbsView<MusicModel> {
}
|
[
"s90789@outlook.com"
] |
s90789@outlook.com
|
01d940da8a9adcc643ee744b3693cb36d4f7f897
|
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
|
/jgrapht_cluster/1393/tar_1.java
|
561a65d5e97111313892104362d28befbc98e0d6
|
[] |
no_license
|
martinezmatias/GenPat-data-C3
|
63cfe27efee2946831139747e6c20cf952f1d6f6
|
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
|
refs/heads/master
| 2022-04-25T17:59:03.905613
| 2020-04-15T14:41:34
| 2020-04-15T14:41:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,461
|
java
|
/* ==========================================
* JGraphT : a free Java graph-theory library
* ==========================================
*
* Project Info: http://jgrapht.sourceforge.net/
* Project Lead: Barak Naveh (http://sourceforge.net/users/barak_naveh)
*
* (C) Copyright 2003-2005, by Barak Naveh and Contributors.
*
* This library 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 library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library; if not, write to the Free Software Foundation,
* Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*/
/* -----------------
* EquivalenceGroupCreatorTest.java
* -----------------
* (C) Copyright 2005, by Assaf Lehr and Contributors.
*
* Original Author: Assaf Lehr
* Contributor(s): -
*
* Changes
* -------
*/
package org.jgrapht.util.equivalence;
import java.util.ArrayList;
import junit.framework.TestCase;
import org.jgrapht.alg.isomorphism.comparators.Mod3GroupComparator;
import org.jgrapht.alg.isomorphism.comparators.OddEvenGroupComparator;
/**
* @author Assaf
* @since Jul 22, 2005
*/
public class EquivalenceGroupCreatorTest extends TestCase
{
//~ Instance fields -------------------------------------------------------
// create the groups array as 0 to X (it)
final int INTEGER_ARRAY_SIZE = 25;
//~ Methods ---------------------------------------------------------------
/*
* @see TestCase#setUp()
*/
protected void setUp()
throws Exception
{
super.setUp();
}
public void testUniformGroup()
{
//expecting two seperate groups , one with odd , one with even nubmers"
testOneComparator(new UniformEquivalenceComparator(), 1 );
//" expecting 3 seperate groups , one for each mod3
testOneComparator(new org.jgrapht.alg.isomorphism.comparators.Mod3GroupComparator(),
3) ;
}
public void testOddEvenGroup()
{
//" expecting two seperate groups , one with odd , one with even nubmers");
testOneComparator(new org.jgrapht.alg.isomorphism.comparators.OddEvenGroupComparator(),
2);
// " expecting 3 seperate groups , one for each mod3");
testOneComparator(new org.jgrapht.alg.isomorphism.comparators.Mod3GroupComparator(),
3);
}
/**
* Using a chain of evenOdd(mod2) and mod3 comparator , should yield the 6
* groups , which are infact mod6 , examples:
* <li>mod2 = 0 , mod3 = 0 --> mod6=0 , like : 6 , 12
* <li>mod2 = 1 , mod3 = 0 --> mod6=1 , like : 7 , 13
* <li>
*/
public void testComparatorChain()
{
EquivalenceComparatorChain<Integer,Object> comparatorChain =
new EquivalenceComparatorChainBase<Integer,Object>(new OddEvenGroupComparator());
comparatorChain.appendComparator(new Mod3GroupComparator());
// for (int i=0 ; i<INTEGER_ARRAY_SIZE ; i++)
// {
// System.out.println("hash of "+i+" =
// "+comparatorChain.equivalenceHashcode(integerArray[i], null));
//
//
// }
// expecting six seperate groups , with the different mod6 values");
testOneComparator(
comparatorChain,
6);
}
public void testComparatorChainSameComparatorTwice()
{
EquivalenceComparatorChain comparatorChain =
new EquivalenceComparatorChainBase(new OddEvenGroupComparator());
comparatorChain.appendComparator(new UniformEquivalenceComparator());
comparatorChain.appendComparator(new OddEvenGroupComparator());
// still expecting 2 groups "
testOneComparator(
comparatorChain,
2);
}
private void testOneComparator(
EquivalenceComparator comparator,
int expectedNumOfGroups)
{
ArrayList<Integer> integerArray = new ArrayList<Integer>(INTEGER_ARRAY_SIZE);
for (int i = 0; i < INTEGER_ARRAY_SIZE; i++) {
integerArray.add( i );
}
EquivalenceSet [] eqGroupArray =
EquivalenceSetCreator.createEqualityGroupOrderedArray(
integerArray,
comparator,
null);
assertEquals(expectedNumOfGroups, eqGroupArray.length);
//assert the group order size is sorted.
for (int i = 1; i < eqGroupArray.length; i++) {
EquivalenceSet set = eqGroupArray[i];
assertTrue(eqGroupArray[i].size() >= eqGroupArray[i-1].size());
}
// System.out.println("\nTesting the EquivalenceSet[] returned from
// Integer["
// +INTEGER_ARRAY_SIZE+"] filled with the integers as the indexes. \n"
// + expectedResult);
// System.out.println("result size="+eqGroupArray.length);
// for (int i = 0; i < eqGroupArray.length; i++) {
// System.out.println(eqGroupArray[i]);
// }
}
}
|
[
"375833274@qq.com"
] |
375833274@qq.com
|
b71243130f833ecf41337b940d03ecf480a8aa05
|
57992911f0be480fbaa5153081bd741d07b42088
|
/WebContent/WEB-INF/src/sp/sys/cmd/.svn/text-base/PgLogLCmd.java.svn-base
|
1cefdd17564c5df129873bbe32ba2277c13cc8b5
|
[] |
no_license
|
sokcuri/iccsmWebNew
|
147e24bfe12b9abe4b9ee977a06e21c8fad1b722
|
d07db913e71c2f01b19c73be68c3990e29c9fd7d
|
refs/heads/master
| 2021-12-02T15:02:38.549425
| 2013-06-19T15:09:58
| 2013-06-19T15:09:58
| null | 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 6,218
|
package sp.sys.cmd;
import java.util.Vector;
import javax.servlet.http.HttpServletRequest;
import kjf.action.KJFCommand;
import kjf.cfg.Config;
import kjf.ops.ReportDAO;
import kjf.ops.ReportEntity;
import kjf.util.KJFSelectOPS;
import kjf.util.KJFUtil;
import org.apache.struts.action.ActionForm;
import sp.sys.SysParam;
public class PgLogLCmd implements KJFCommand{
private String next;
public PgLogLCmd() {
}
public PgLogLCmd(String next_url) {
next = next_url;
}
public String execute(HttpServletRequest req, ActionForm form) throws Exception {
SysParam pm = checkFrm(form);
loadCondition(req);
loadList(req, pm);
return next;
}
private SysParam checkFrm(ActionForm form)throws Exception{
SysParam frm = (SysParam)form;
/*페이징 라인*/
if (KJFUtil.isEmpty(frm.getRowPerPage())){
frm.setRowPerPage(Config.props.get("ROW_PER_PAGE"));
}
return frm;
}
/**
* 검색조건 및 초기데이타 로드
* @param HttpServletRequest
* @return
*/
private void loadCondition(HttpServletRequest request)throws Exception{
ReportDAO rDAO = new ReportDAO();
ReportEntity rEntity = null;
/*********** 사용자 정보 가져오기 시작 ***************/
String sql = "SELECT USER_CODE, USER_NAME FROM PT_USER ORDER BY USER_NAME ";
Vector v_scUSER_CODE = KJFSelectOPS.getSel(sql,"",":::선택:::");
request.setAttribute("v_scUSER_CODE", v_scUSER_CODE);
/*********** 사용자 정보 가져오기 끝 ************************/
/*********** 프로그램 목록 가져오기 시작 ***************/
String sql1 = "SELECT PG_ID, PG_NAME FROM PT_PG ORDER BY PG_NAME ";
Vector v_scPG_ID = KJFSelectOPS.getSel(sql1,"",":::선택:::");
request.setAttribute("v_scPG_ID", v_scPG_ID);
/*********** 프로그램 목록 가져오기 끝 ************************/
/*********** 사용자 액션 가져오기 시작 ***************/
String[][] userAction = {{"",":::선택:::"},{"C","입력"},{"U","수정"},{"D","삭제"}};
Vector v_user_action = KJFUtil.makeSelect(userAction);
request.setAttribute("v_user_action", v_user_action);
/*********** 사용자 액션 가져오기 끝 ************************/
}//end loadCondition
private void loadList(HttpServletRequest request, SysParam pm)throws Exception{
ReportDAO rDAO = new ReportDAO();
ReportEntity rEntity = null;
String selectSQL =
" SELECT \n"+
" LOG_NUM, \n"+
" USER_CODE, \n"+
" (SELECT USER_NAME FROM PT_USER WHERE USER_CODE = A.USER_CODE) USER_NAME, \n"+
" (SELECT CODE_NAME FROM PT_COM_CODE WHERE CODE='0027' \n"+
" AND P_CODE=(SELECT USER_CODE FROM PT_USER WHERE USER_CODE = A.USER_CODE) ) POSITION, \n"+
" ACCESS_TIME, \n"+
" PROGRAM_ID, \n"+
" B.PG_NAME PROGRAM_NAME, \n"+
" USER_ACTION, \n"+
" REQ_URI \n";
String fromSQL =
" FROM PT_SM_PROGRAM_LOG A LEFT JOIN PT_PG B ON A.PROGRAM_ID = B.PG_ID \n";
/*******페이징 관련 cnt SQL...********/
String cntSQL =
"SELECT \n"+
" COUNT(*) CNT \n"+
fromSQL ;
/*******페이징 관련 cnt SQL... 끝********/
/*검색 시작*/
String whereSQL = "WHERE 1=1 \n";
if(!KJFUtil.isEmpty(pm.getScSTART_DATE()) && !KJFUtil.isEmpty(pm.getScEND_DATE())){
whereSQL +=" AND SUBSTR(ACCESS_TIME,1,10) BETWEEN '" + pm.getScSTART_DATE() + "' AND '" + pm.getScEND_DATE() + "' ";
}
if(!KJFUtil.isEmpty(pm.getScUSER_CODE())){
whereSQL +=" AND USER_CODE = '"+ pm.getScUSER_CODE()+"' ";
}
if(!KJFUtil.isEmpty(pm.getScCUD())){
whereSQL +=" AND USER_ACTION = '"+ pm.getScCUD()+"' ";
}
String orderSQL =" ORDER BY LOG_NUM DESC";
/********************페이징 관련***********************************************************************/
//전체 목록 수
String totalCount="";
//페이지별 목록 수
int rowPerPage = KJFUtil.str2int(pm.getRowPerPage());
//현재 페이지 번호
int nowPage = 1;
nowPage = KJFUtil.isEmpty(pm.getNowPage()) ? 1 : Integer.parseInt(pm.getNowPage());
rEntity = rDAO.select(cntSQL+whereSQL);
totalCount=rEntity.getValue(0,"CNT");
if (rowPerPage == 0) rowPerPage = Integer.parseInt(totalCount);
if ((rowPerPage*nowPage) - Integer.parseInt(totalCount) > rowPerPage) nowPage = 1;
pm.setTotalCount(totalCount);
pm.setNowPage(String.valueOf(nowPage));
/********************페이징 관련 끝********************************************************************/
rEntity = rDAO.select(selectSQL+fromSQL+whereSQL+orderSQL ,nowPage, rowPerPage);
/****** 검색조건 초기값 ***********/
request.setAttribute("pm", pm);
request.setAttribute("rEntity", rEntity);
}
}
|
[
"Administrator@MSDN-SPECIAL"
] |
Administrator@MSDN-SPECIAL
|
|
6ad9b25578c90dea285ebe9035f9f222246bbf2f
|
62faa058c143b305d9eaffbec8d4da7b38e095c0
|
/src/test/java/fr/paris/lutece/util/html/PaginatorTest.java
|
47385f95dcb72998747e33b60b976839dd80e68a
|
[] |
permissive
|
dominiquesalasvega/lutece-core
|
c3d4c37d3513e6773c2e248288b576577e01aa60
|
ca28d51f03a2ca65508e4d8411b6da655e31b643
|
refs/heads/master
| 2020-06-17T16:17:49.268072
| 2020-05-15T00:09:32
| 2020-05-15T00:09:32
| 195,974,016
| 1
| 0
|
BSD-3-Clause
| 2019-07-09T09:11:32
| 2019-07-09T09:11:32
| null |
UTF-8
|
Java
| false
| false
| 3,572
|
java
|
/*
* Copyright (c) 2002-2017, Mairie de Paris
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright notice
* and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice
* and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* License 1.0
*/
package fr.paris.lutece.util.html;
import fr.paris.lutece.test.LuteceTestCase;
import java.util.ArrayList;
import java.util.List;
/**
* Paginator Test Class
*
*/
public class PaginatorTest extends LuteceTestCase
{
private static final int NB_ITEMS_PER_PAGE = 5;
private static final int ITEMS_COUNT = 14;
private static final String PARAMETER_PAGE_INDEX = "page_index";
private static final String BASE_URL = "http://myhost/mypage.jsp";
public void testPaginator( )
{
List list = new ArrayList( );
for ( int i = 0; i < ITEMS_COUNT; i++ )
{
list.add( "Item" + i );
}
String strPageIndex = "1";
Paginator paginator = new Paginator( list, NB_ITEMS_PER_PAGE, BASE_URL, PARAMETER_PAGE_INDEX, strPageIndex );
assertEquals( ITEMS_COUNT, paginator.getItemsCount( ) );
assertEquals( 1, paginator.getRangeMin( ) );
assertEquals( 5, paginator.getRangeMax( ) );
assertEquals( 3, paginator.getPagesCount( ) );
assertEquals( 1, paginator.getPageCurrent( ) );
assertEquals( BASE_URL + "?" + PARAMETER_PAGE_INDEX + "=" + 2, paginator.getNextPageLink( ) );
assertEquals( 5, paginator.getPageItems( ).size( ) );
strPageIndex = "3";
paginator = new Paginator( list, NB_ITEMS_PER_PAGE, BASE_URL, PARAMETER_PAGE_INDEX, strPageIndex );
assertEquals( ITEMS_COUNT, paginator.getItemsCount( ) );
assertEquals( 11, paginator.getRangeMin( ) );
// assertEquals( 14 , paginator.getRangeMax() );
assertEquals( 3, paginator.getPagesCount( ) );
assertEquals( 3, paginator.getPageCurrent( ) );
assertEquals( BASE_URL + "?" + PARAMETER_PAGE_INDEX + "=" + 2, paginator.getPreviousPageLink( ) );
assertEquals( 4, paginator.getPageItems( ).size( ) );
// List test
paginator.getPagesLinks( );
}
}
|
[
"pierrelevy@users.noreply.github.com"
] |
pierrelevy@users.noreply.github.com
|
1618a9a63052810da57f061a843e3d99dfc5ea24
|
c0e1ebc639eeed4e2233e288e3e70d96bb28c58c
|
/core/src/main/java/org/jbpm/util/XmlUtil.java
|
33f48e58179ddb40b3c0e0a4e93f65288e7f47a8
|
[] |
no_license
|
meiavy/jBPM3
|
81d361109a93d874007e21d7ccecb7b4292434ea
|
d31172939e8d569c9e2d4d3e628f08dce86d572b
|
refs/heads/master
| 2021-01-13T06:33:11.174212
| 2014-11-08T16:01:03
| 2014-11-08T16:01:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,331
|
java
|
/*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt 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.jbpm.util;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.apache.commons.collections.IteratorUtils;
import org.apache.commons.collections.Predicate;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.Text;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
public class XmlUtil {
private static final DocumentBuilderFactory documentBuilderFactory = createDocumentBuilderFactory();
private static DocumentBuilderFactory createDocumentBuilderFactory() {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
factory.setCoalescing(true);
factory.setIgnoringComments(true);
factory.setExpandEntityReferences(false);
return factory;
}
private XmlUtil() {
// hide default constructor to prevent instantiation
}
public static Document parseXmlText(String xml) {
ByteArrayInputStream bais = new ByteArrayInputStream(xml.getBytes());
return parseXmlInputSource(new InputSource(bais));
}
/**
* @param useConfiguredLoader if <code>true</code>, this method searches for the resource in
* the context class loader, if not found it falls back on the class loader of this class
* @see <a href="https://jira.jboss.org/jira/browse/JBPM-1148">JBPM-1148</a>
*/
public static Document parseXmlResource(String resource, boolean useConfiguredLoader) {
InputStream inputStream = ClassLoaderUtil.getStream(resource, useConfiguredLoader);
if (inputStream == null) {
throw new IllegalArgumentException("resource not found: " + resource);
}
InputSource inputSource = new InputSource(inputStream);
return parseXmlInputSource(inputSource);
}
public static Document parseXmlInputStream(InputStream inputStream) {
Document document = null;
try {
document = getDocumentBuilder().parse(inputStream);
}
catch (IOException e) {
throw new XmlException("could not read input", e);
}
catch (SAXException e) {
throw new XmlException("failed to parse xml", e);
}
return document;
}
public static Document parseXmlInputSource(InputSource inputSource) {
Document document = null;
try {
document = getDocumentBuilder().parse(inputSource);
}
catch (IOException e) {
throw new XmlException("could not read input", e);
}
catch (SAXException e) {
throw new XmlException("failed to parse xml", e);
}
return document;
}
public static DocumentBuilder getDocumentBuilder() {
try {
return documentBuilderFactory.newDocumentBuilder();
}
catch (ParserConfigurationException e) {
throw new XmlException("failed to create document builder", e);
}
}
public static String attribute(Element element, String attrName) {
Attr attr = element.getAttributeNode(attrName);
return attr != null ? attr.getValue() : null;
}
public static Iterator elementIterator(Element element, final String tagName) {
return IteratorUtils.filteredIterator(new NodeIterator(element), new Predicate() {
public boolean evaluate(Object arg) {
Node node = (Node) arg;
return tagName.equals(node.getNodeName());
}
});
}
public static List elements(Element element, String tagName) {
ArrayList elements = new ArrayList();
for (Node child = element.getFirstChild(); child != null; child = child.getNextSibling()) {
if (child instanceof Element && tagName.equals(child.getNodeName())) {
elements.add(child);
}
}
return elements;
}
public static Element element(Element element, String tagName) {
for (Node child = element.getFirstChild(); child != null; child = child.getNextSibling()) {
if (child instanceof Element && tagName.equals(child.getNodeName())) {
return (Element) child;
}
}
return null;
}
public static Iterator elementIterator(Element element) {
return IteratorUtils.filteredIterator(new NodeIterator(element), ElementPredicate.INSTANCE);
}
private static class ElementPredicate implements Predicate {
static final Predicate INSTANCE = new ElementPredicate();
public boolean evaluate(Object arg) {
return ((Node) arg).getNodeType() == Node.ELEMENT_NODE;
}
}
public static List elements(Element element) {
ArrayList elements = new ArrayList();
for (Node child = element.getFirstChild(); child != null; child = child.getNextSibling()) {
if (child instanceof Element) elements.add(child);
}
return elements;
}
public static Element element(Element element) {
for (Node child = element.getFirstChild(); child != null; child = child.getNextSibling()) {
if (child instanceof Element) return (Element) child;
}
return null;
}
public static String toString(Element element) {
if (element == null) return "null";
Source source = new DOMSource(element);
StringWriter stringWriter = new StringWriter();
Result result = new StreamResult(stringWriter);
try {
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.transform(source, result);
}
catch (TransformerException e) {
throw new XmlException("could not transform to string: " + element, e);
}
return stringWriter.toString();
}
public static String getContentText(Element element) {
StringBuffer buffer = new StringBuffer();
for (Node child = element.getFirstChild(); child != null; child = child.getNextSibling()) {
if (child instanceof Text) buffer.append(child.getNodeValue());
}
return buffer.toString();
}
}
|
[
"bartosz.majsak@gmail.com"
] |
bartosz.majsak@gmail.com
|
4188e554c741414f08a7ca356638137cd2f060ca
|
0b95a85deaf1c9fade3e2a5af2e816a5b00607a4
|
/tempcode/src/main/java/commons/setting/manage/constants/Constants.java
|
68ff04cffaaabbdb0e28018ae96be48ccce1e686
|
[] |
no_license
|
liwen666/lw_code
|
6009fb1a83ad74c987a5e58937c3a178537094b0
|
6fb3f4373fdf1363938ee4f30b39c9fd17c8a8d7
|
refs/heads/master
| 2020-04-09T22:58:38.355751
| 2019-04-25T07:37:52
| 2019-04-25T07:37:52
| 160,643,842
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 260
|
java
|
package commons.setting.manage.constants;
public interface Constants {
final String PARTITION = "partition";
final String INITPARTITION = "initPartition";
final String INITPARTITION_LEFTGRID = "left";
final String INITPARTITION_RIGHTGRID = "righr";
}
|
[
"1316138287@qq.com"
] |
1316138287@qq.com
|
c1a7229a599679148fa44f2d0b6b9eeeda872f83
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/7/7_9b7de3a7cbb73a8ebcad234492c733df83ee5c1e/Reminder/7_9b7de3a7cbb73a8ebcad234492c733df83ee5c1e_Reminder_t.java
|
877265c04045f1f7bf408692b8188679cf2db958
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,229
|
java
|
/*
ZK.forge is distributed under Lesser GPL Version see also http://www.gnu.org/licenses/lgpl.html
*/
package org.zkforge.zktodo2;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
@Entity
@Table(name = "REMINDER")
public class Reminder {
@Override
public boolean equals(Object obj) {
if (obj == null) { return false; }
if (obj == this) { return true; }
if (obj.getClass() != getClass()) {
return false;
}
Reminder rhs = (Reminder) obj;
return new EqualsBuilder()
.appendSuper(super.equals(obj))
.append(id, rhs.id)
.append(name, rhs.name)
.append(priority, rhs.priority)
.append(date, rhs.date)
.isEquals();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(id).append(name).append(priority).append(date).toHashCode();
}
@Id @GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "REMINDER_ID")
private Long id;
@Column(name = "NAME")
private String name = "";
@Column(name = "PRIORITY")
private int priority = 0;
@Column(name = "DATE")
private Date date = new Date(System.currentTimeMillis());
public Reminder(){}
public Reminder(String name,int priority,Date date){
this.name = name;
this.priority = priority;
this.date = date;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public int getPriority() {
return priority;
}
public void setPriority(int priority) {
this.priority = priority;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
3d42c410b0e0f580a5b7f709fa2f2564d85a3993
|
629e42efa87f5539ff8731564a9cbf89190aad4a
|
/refactorInstances/axis2-java/23/cloneInstance1.java
|
9cf97ab39a60d40feca01458f569ce97b4935b58
|
[] |
no_license
|
soniapku/CREC
|
a68d0b6b02ed4ef2b120fd0c768045424069e726
|
21d43dd760f453b148134bd526d71f00ad7d3b5e
|
refs/heads/master
| 2020-03-23T04:28:06.058813
| 2018-08-17T13:17:08
| 2018-08-17T13:17:08
| 141,085,296
| 0
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 833
|
java
|
for (int j = 0; j < i1; j++) {
Object o = Array.get(value, j);
if (elemntNameSpace != null) {
object.add(new QName(elemntNameSpace.getNamespaceURI(),
propDesc.getName(),
elemntNameSpace.getPrefix()));
} else {
object.add(new QName(beanName.getNamespaceURI(),
propDesc.getName(), beanName.getPrefix()));
}
object.add(o == null ? null : SimpleTypeMapper.getStringValue(o));
}
|
[
"sonia@pku.edu.cn"
] |
sonia@pku.edu.cn
|
95dbb379f88f98ed8549339cef116e070c528cd7
|
d77377ed91ff791419eee2dee4c1602360597100
|
/serviceApis/src/main/java/com/vmware/jira/domain/greenhopper/TimeRemaining.java
|
6c93f522714ccd04842e028ffa447cc7572f3f9e
|
[
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-permissive",
"Apache-2.0"
] |
permissive
|
vmware/workflowTools
|
ee5d8aa6198d56b4b896b6f4a64369337e183eaa
|
b76efd9a8e067c5dab77f8ddc7dbd7ea72b0356f
|
refs/heads/master
| 2023-08-31T18:03:46.701341
| 2023-08-29T02:46:18
| 2023-08-29T02:46:22
| 21,996,028
| 25
| 14
|
Apache-2.0
| 2023-05-19T00:20:21
| 2014-07-18T22:16:00
|
Java
|
UTF-8
|
Java
| false
| false
| 131
|
java
|
package com.vmware.jira.domain.greenhopper;
public class TimeRemaining {
public String text;
public boolean isFuture;
}
|
[
"dbiggs@vmware.com"
] |
dbiggs@vmware.com
|
0ee844e5cfeb997c962936f76d50fc6d205c1da9
|
6925337bc74e9f80527859651b9771cf33bc7d99
|
/input/code-fracz-645/sources/Class00000294Worse.java
|
4b59d10664c4f68f228997b3556fd93f6c578f2f
|
[] |
no_license
|
fracz/code-quality-tensorflow
|
a58bb043aa0a6438d7813b0398d12c998d70ab49
|
50dac5459faf44f1b7fa8321692a8c7c44f0d23c
|
refs/heads/master
| 2018-11-14T15:28:03.838106
| 2018-09-07T11:09:28
| 2018-09-07T11:09:28
| 110,887,549
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 226
|
java
|
// original filename: 00014877.txt
// before
public class Class00000294Worse {
@Override
public void setWhitespaceSkippedCallback(WhitespaceSkippedCallback callback) {
myDelegate.setWhitespaceSkippedCallback(callback);
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
ff91aac82bdc23f25edcd79527d5e414443a7356
|
0fe48bd17018c10ab8d5d3963bb6f37c1761fdc5
|
/src/main/java/uk/co/badgersinfoil/metaas/impl/ASTForInCommon.java
|
73d4a718526e9b7d704cb20a4bb2252ee4db2a24
|
[
"Apache-2.0"
] |
permissive
|
adufilie/metaas-fork
|
a20d31d50228f009c710e897391f53e446b1042e
|
cc1f336537d31bbd5b1fffba3d67d87f0af773dd
|
refs/heads/master
| 2021-01-21T20:16:58.032489
| 2017-05-24T02:42:17
| 2017-05-24T03:06:28
| 92,214,902
| 0
| 0
| null | 2017-05-23T20:09:10
| 2017-05-23T20:09:10
| null |
UTF-8
|
Java
| false
| false
| 4,609
|
java
|
/*
* ASTForInCommon.java
*
* Copyright (c) 2007 David Holroyd
*
* 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 uk.co.badgersinfoil.metaas.impl;
import org.asdt.core.internal.antlr.AS3Parser;
import uk.co.badgersinfoil.metaas.SyntaxException;
import uk.co.badgersinfoil.metaas.dom.ASDeclarationStatement;
import uk.co.badgersinfoil.metaas.dom.Expression;
import uk.co.badgersinfoil.metaas.dom.Statement;
import uk.co.badgersinfoil.metaas.dom.StatementContainer;
import uk.co.badgersinfoil.metaas.impl.antlr.LinkedListTree;
import java.util.List;
/**
* Common code implementing 'for-in' and 'for-each-in' loop behaviour.
*/
abstract class ASTForInCommon extends ContainerDelegate {
protected static final int INDEX_VAR = 0;
protected static final int INDEX_ITERATED = 1;
protected static final int INDEX_STATEMENT = 2;
public ASTForInCommon(LinkedListTree ast) {
super(ast);
}
public Statement getBody() {
return StatementBuilder.build(stmt());
}
private LinkedListTree stmt() {
return getChild(INDEX_STATEMENT);
}
@Override
public List getStatementList() {
try {
return super.getStatementList();
} catch (IllegalArgumentException e) {
String message = e.getMessage();
if (message != null && message.startsWith("statement is not a block")) {
throw new SyntaxException("Loop body is not a block");
}
throw e;
}
}
public boolean hasVarDeclaration() {
LinkedListTree initChild = getChild(INDEX_VAR);
return initChild.getType() == AS3Parser.VAR;
}
public ASDeclarationStatement getDeclarationStatement() {
if (!hasVarDeclaration()) {
throw new IllegalStateException("This for statement doesn't have declaration statement, it uses an existing variable");
}
return (ASDeclarationStatement) StatementBuilder.build((LinkedListTree) ast.getChild(INDEX_VAR));
}
@Deprecated
public String getVarName() {
if (hasVarDeclaration()) {
throw new IllegalStateException("This for statement has a declaration statement - use getDeclarationStatement()");
}
return getVarString();
}
public Expression getIterExpression() {
if (hasVarDeclaration()) {
throw new IllegalStateException("This for statement has a declaration statement - use getDeclarationStatement()");
}
Expression iterExpression = ExpressionBuilder.build((LinkedListTree) ast.getChild(INDEX_VAR));
return iterExpression;
}
public String getLabel() {
LinkedListTree labelAST = ASTUtils.findChildByType(ast, AS3Parser.LABEL);
if (labelAST != null) {
LinkedListTree labelValueAST = labelAST.getFirstChild();
if (labelValueAST != null) {
return labelValueAST.getText();
}
}
return null;
}
public String getVarString() {
return ASTUtils.stringifyNode(getChild(INDEX_VAR));
}
public String getIteratedString() {
return ASTUtils.stringifyNode(iterated());
}
public Expression getIterated() {
return ExpressionBuilder.build(iterated());
}
public void setVar(String expr) {
LinkedListTree var = AS3FragmentParser.parseForInVar(expr);
ast.setChildWithTokens(INDEX_VAR, var);
}
public void setIterated(String expr) {
setIter(AS3FragmentParser.parseForInIterated(expr));
}
public void setIterated(Expression expr) {
setIter(ast(expr));
}
private LinkedListTree getChild(int index) {
return (LinkedListTree)ast.getChild(index);
}
protected StatementContainer getStatementContainer() {
LinkedListTree statementContainer = getChild(INDEX_STATEMENT);
// RE-3658
if (statementContainer == null) {
return null;
}
return new ASTStatementList(statementContainer);
}
private LinkedListTree iterated() {
return getChild(INDEX_ITERATED);
}
private void setIter(LinkedListTree iterAST) {
ast.setChildWithTokens(INDEX_ITERATED, iterAST);
}
}
|
[
"a.a.eliseyev@gmail.com"
] |
a.a.eliseyev@gmail.com
|
2d9405bb1bc57277b382770a295f50846d83cf32
|
814169b683b88f1b7498f1edf530a8d1bec2971f
|
/mall-product/src/main/java/com/bootx/mall/product/controller/business/FundStatisticController.java
|
7c9e3b1e135c5c9cbfc56be45b178d64eadccc4d
|
[] |
no_license
|
springwindyike/mall-auth
|
fe7f216c7241d8fd9247344e40503f7bc79fe494
|
3995d258955ecc3efbccbb22ef4204d148ec3206
|
refs/heads/master
| 2022-10-20T15:12:19.329363
| 2020-07-05T13:04:29
| 2020-07-05T13:04:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,291
|
java
|
package com.bootx.mall.product.controller.business;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import javax.inject.Inject;
import com.bootx.mall.product.common.Results;
import com.bootx.mall.product.entity.Statistic;
import com.bootx.mall.product.entity.Store;
import com.bootx.mall.product.security.CurrentStore;
import com.bootx.mall.product.service.StatisticService;
import org.apache.commons.lang3.time.DateUtils;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Controller - 资金统计
*
* @author BOOTX Team
* @version 6.1
*/
@Controller("businessFundStatisticController")
@RequestMapping("/business/fund_statistic")
public class FundStatisticController extends BaseController {
/**
* 默认类型
*/
private static final Statistic.Type DEFAULT_TYPE = Statistic.Type.PLATFORM_COMMISSION;
/**
* 默认周期
*/
private static final Statistic.Period DEFAULT_PERIOD = Statistic.Period.DAY;
@Inject
private StatisticService statisticService;
/**
* 列表
*/
@GetMapping("/list")
public String list(Model model) {
model.addAttribute("types", Statistic.Type.getTypes(Statistic.Group.BUSINESS_FUND));
model.addAttribute("type", DEFAULT_TYPE);
model.addAttribute("periods", Statistic.Period.values());
model.addAttribute("period", DEFAULT_PERIOD);
model.addAttribute("beginDate", DateUtils.addMonths(new Date(), -1));
model.addAttribute("endDate", new Date());
return "business/fund_statistic/list";
}
/**
* 数据
*/
@GetMapping("/data")
public ResponseEntity<?> data(Statistic.Type type, Statistic.Period period, Date beginDate, Date endDate, @CurrentStore Store currentStore) {
if (type == null) {
type = DEFAULT_TYPE;
}
if (period == null) {
period = DEFAULT_PERIOD;
}
List<Statistic.Type> types = Statistic.Type.getTypes(Statistic.Group.BUSINESS_FUND);
if (!types.contains(type)) {
return Results.UNPROCESSABLE_ENTITY;
}
Date now = new Date();
if (beginDate == null) {
switch (period) {
case YEAR:
beginDate = DateUtils.addYears(now, -10);
break;
case MONTH:
beginDate = DateUtils.addYears(now, -1);
break;
case DAY:
beginDate = DateUtils.addMonths(now, -1);
}
}
if (endDate == null) {
endDate = now;
}
switch (period) {
case YEAR:
beginDate = DateUtils.truncate(beginDate, Calendar.YEAR);
Date nextYearMinumumDate = DateUtils.ceiling(endDate, Calendar.YEAR);
endDate = DateUtils.addMilliseconds(nextYearMinumumDate, -1);
break;
case MONTH:
beginDate = DateUtils.truncate(beginDate, Calendar.MONTH);
Date nextMonthMinumumDate = DateUtils.ceiling(endDate, Calendar.MONTH);
endDate = DateUtils.addMilliseconds(nextMonthMinumumDate, -1);
break;
case DAY:
beginDate = DateUtils.truncate(beginDate, Calendar.DAY_OF_MONTH);
Date tomorrowMinumumDate = DateUtils.ceiling(endDate, Calendar.DAY_OF_MONTH);
endDate = DateUtils.addMilliseconds(tomorrowMinumumDate, -1);
}
return ResponseEntity.ok(statisticService.analyze(type, currentStore, period, beginDate, endDate));
}
}
|
[
"a12345678"
] |
a12345678
|
5c4e530684b7f9a2fc36c3caebc6e725a634bbcd
|
6a516b3939751b7c4ee1859280569151124dd2c2
|
/src/com/javarush/test/level19/lesson10/home01/Solution.java
|
3c192a4ceb043607ad0901126b5b026b807c3c27
|
[] |
no_license
|
SirMatters/JavaRush-Solutions
|
690d34b0680ca2f2b220ce3fce666937cb59050d
|
fe3592308428baac735fb3c443356b54e38a4f8d
|
refs/heads/master
| 2020-12-24T11:45:45.233258
| 2018-04-14T18:50:25
| 2018-04-14T18:50:25
| 73,015,759
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,577
|
java
|
package com.javarush.test.level19.lesson10.home01;
/* Считаем зарплаты
В метод main первым параметром приходит имя файла.
В этом файле каждая строка имеет следующий вид:
имя значение
где [имя] - String, [значение] - double. [имя] и [значение] разделены пробелом
Для каждого имени посчитать сумму всех его значений
Все данные вывести в консоль, предварительно отсортировав в возрастающем порядке по имени
Закрыть потоки. Не использовать try-with-resources
Пример входного файла:
Петров 2
Сидоров 6
Иванов 1.35
Петров 3.1
Пример вывода:
Иванов 1.35
Петров 5.1
Сидоров 6.0
*/
import java.io.*;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
public class Solution {
public static void main(String[] args) throws IOException {
args = new String[] {"C:\\Users\\K.Perov\\Desktop\\JAVA\\t.txt"};
HashMap<String , Double > map = sumValues(args[0]);
TreeSet<String > set = sortMap(map);
sayFile(map, set);
}
private static void sayFile(Map<String, Double> map, Set<String> set) {
for (String s : set) {
System.out.println(s + " " + map.get(s));
}
}
private static HashMap<String, Double> sumValues (String filename) throws IOException {
HashMap<String, Double> map = new HashMap<String, Double>();
BufferedReader r = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));
String name;
Double salary;
String line;
while (r.ready()) {
line = r.readLine();
//name = line.split(" ")[0].replaceAll("\uFEFF", "");
name = line.split(" ")[0];
salary = Double.parseDouble(line.split(" ")[1]);
if (!map.containsKey(name)) {
map.put(name,salary);
} else {
map.put(name, map.get(name) + salary);
}
}
r.close();
return map;
}
private static TreeSet sortMap (Map<String, Double> map) {
TreeSet<String> set = new TreeSet<String>();
for (Map.Entry<String, Double> entry : map.entrySet()) {
set.add(entry.getKey());
}
return set;
}
}
|
[
"perov.krll@gmail.com"
] |
perov.krll@gmail.com
|
85d22ecba7f3ce8a7f7224cdc57f88867345a001
|
c80288d71628bc5c4a91fc790a755df4f540c065
|
/src/main/java/com/feed_the_beast/ftbquests/integration/gamestages/GameStageTask.java
|
510025e7df722dd07ec48ebe33d0de23869d1dab
|
[] |
no_license
|
ragnardragus/FTB-Quests
|
f2b1b6bd45d71dd3122b249b4fb73eb1f28ec4d7
|
ce61b4c3425eca4fd016c2df2fb75440df71e91d
|
refs/heads/master
| 2022-11-13T10:16:48.958807
| 2020-06-28T11:14:46
| 2020-06-28T11:14:46
| 276,996,134
| 0
| 0
| null | 2020-07-03T22:17:19
| 2020-07-03T22:17:19
| null |
UTF-8
|
Java
| false
| false
| 2,302
|
java
|
package com.feed_the_beast.ftbquests.integration.gamestages;
import com.feed_the_beast.ftbquests.quest.PlayerData;
import com.feed_the_beast.ftbquests.quest.Quest;
import com.feed_the_beast.ftbquests.quest.task.BooleanTaskData;
import com.feed_the_beast.ftbquests.quest.task.Task;
import com.feed_the_beast.ftbquests.quest.task.TaskData;
import com.feed_the_beast.ftbquests.quest.task.TaskType;
import com.feed_the_beast.mods.ftbguilibrary.config.ConfigGroup;
import net.darkhax.gamestages.GameStageHelper;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.network.PacketBuffer;
import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
/**
* @author LatvianModder
*/
public class GameStageTask extends Task
{
public String stage = "";
public GameStageTask(Quest quest)
{
super(quest);
}
@Override
public TaskType getType()
{
return GameStagesIntegration.GAMESTAGE_TASK;
}
@Override
public void writeData(CompoundNBT nbt)
{
super.writeData(nbt);
nbt.putString("stage", stage);
}
@Override
public void readData(CompoundNBT nbt)
{
super.readData(nbt);
stage = nbt.getString("stage");
}
@Override
public void writeNetData(PacketBuffer buffer)
{
super.writeNetData(buffer);
buffer.writeString(stage);
}
@Override
public void readNetData(PacketBuffer buffer)
{
super.readNetData(buffer);
stage = buffer.readString();
}
@Override
@OnlyIn(Dist.CLIENT)
public void getConfig(ConfigGroup config)
{
super.getConfig(config);
config.addString("stage", stage, v -> stage = v, "").setNameKey("ftbquests.task.ftbquests.gamestage");
}
@Override
public String getAltTitle()
{
return I18n.format("ftbquests.task.ftbquests.gamestage") + ": " + TextFormatting.YELLOW + stage;
}
@Override
public TaskData createData(PlayerData data)
{
return new Data(this, data);
}
public static class Data extends BooleanTaskData<GameStageTask>
{
private Data(GameStageTask task, PlayerData data)
{
super(task, data);
}
@Override
public boolean canSubmit(ServerPlayerEntity player)
{
return GameStageHelper.hasStage(player, task.stage);
}
}
}
|
[
"latvianmodder@gmail.com"
] |
latvianmodder@gmail.com
|
793e78cddbdd39bcc117f0e9b6aca07e6fc9445d
|
c6515db531e72c72842b247e8a891e52715b395f
|
/app/src/main/java/com/yinp/fortunatereader/fragment/tab_fragment/ThreeFragment.java
|
b6375d655f955d79569f9444824d199cc01f0b9a
|
[] |
no_license
|
13350910252/FortunateReader
|
192c1a3fd6ad5f5be2d4fab178c7ddb2f3578549
|
1012e63f955e822d0e314d0f219985a5eba4b87b
|
refs/heads/master
| 2023-04-14T18:05:35.488502
| 2021-04-23T10:14:45
| 2021-04-23T10:14:45
| 360,018,285
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 355
|
java
|
package com.yinp.fortunatereader.fragment.tab_fragment;
import android.view.View;
import com.yinp.fortunatereader.base.fragment.AppBaseFragment;
import com.yinp.fortunatereader.databinding.FragmentThreeBinding;
public class ThreeFragment extends AppBaseFragment<FragmentThreeBinding> {
@Override
protected void initViews(View view) {
}
}
|
[
"123456"
] |
123456
|
f826527d17769b9d371e0e60aa33d45b2ab0f1d6
|
ca0e9689023cc9998c7f24b9e0532261fd976e0e
|
/src/android/support/v4/view/k$b.java
|
2cf3d7284e00203ba1fe2919c7ee64b31ec84765
|
[] |
no_license
|
honeyflyfish/com.tencent.mm
|
c7e992f51070f6ac5e9c05e9a2babd7b712cf713
|
ce6e605ff98164359a7073ab9a62a3f3101b8c34
|
refs/heads/master
| 2020-03-28T15:42:52.284117
| 2016-07-19T16:33:30
| 2016-07-19T16:33:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 953
|
java
|
package android.support.v4.view;
import android.view.MenuItem;
import android.view.View;
class k$b
implements k.d
{
public MenuItem a(MenuItem paramMenuItem, k.e parame)
{
return paramMenuItem;
}
public final MenuItem a(MenuItem paramMenuItem, View paramView)
{
return paramMenuItem.setActionView(paramView);
}
public final void a(MenuItem paramMenuItem, int paramInt)
{
paramMenuItem.setShowAsAction(paramInt);
}
public final MenuItem b(MenuItem paramMenuItem, int paramInt)
{
return paramMenuItem.setActionView(paramInt);
}
public final View c(MenuItem paramMenuItem)
{
return paramMenuItem.getActionView();
}
public boolean d(MenuItem paramMenuItem)
{
return false;
}
public boolean e(MenuItem paramMenuItem)
{
return false;
}
}
/* Location:
* Qualified Name: android.support.v4.view.k.b
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
3a28ccd61a926df11f5e78d4a7319b1c3a02c896
|
6b9fc23a820dd24bedb1dcc5f51fb8100a33bb5c
|
/dcraft.core/src/main/java/dcraft/web/ui/tags/form/Uploader.java
|
58713322f4bb5000dbe116b55467ecfa2b877e8f
|
[
"Apache-2.0"
] |
permissive
|
Gadreel/dcraft
|
ac72afbf3e26d843cc13a2474f1de50a49747dcb
|
7748fa0a4c24afce3d22f7ed311d13ed548e8f17
|
refs/heads/master
| 2020-05-23T08:18:38.346978
| 2017-06-25T20:49:19
| 2017-06-25T20:49:19
| 70,246,254
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,295
|
java
|
package dcraft.web.ui.tags.form;
import dcraft.web.ui.UIElement;
public class Uploader extends CoreField {
@Override
public void addControl() {
UIElement grp = new UIElement("div")
.withClass("dc-pui-control dc-pui-uploader");
grp
.withAttribute("id", this.fieldid)
.withAttribute("data-dc-enhance", "true")
.withAttribute("data-dc-tag", this.getName())
.with(new UIElement("div")
.withClass("dc-pui-uploader-file")
.with(new UIElement("input")
.withAttribute("type", "file")
.withAttribute("capture", "capture")
.withAttribute("multiple", "multiple")
)
)
.with(new UIElement("div")
.withClass("dc-pui-uploader-list-area dc-pui-message dc-pui-message-info")
.with(
new UIElement("div")
.withClass("dc-pui-uploader-list-header")
.withText("Selected Files: ")
)
.with(
new UIElement("div")
.withClass("dc-pui-uploader-listing")
)
);
RadioControl.enhanceField(this, grp);
this.with(grp);
/*
<dcf.Uploader Label="Files" Name="Attachments" />
<div class="dc-pui-control dc-pui-uploader">
<div class="dc-pui-uploader-file">
<input type="file" />
</div>
<div class="dc-pui-uploader-list">
</div>
</div>
*/
}
}
|
[
"Owner@MacMini.local"
] |
Owner@MacMini.local
|
d2a5ec8dac3f8a0e0b216d82fb1569ac9d1452c1
|
2573e46de236be1625c560df6bd9dbac4f4fd596
|
/src/main/java/com/ittedu/os/edu/dao/impl/user/UserLoginLogDaoImpl.java
|
cd406ba2a33fa992c2a9ba8f08bdc5836a2fd4ca
|
[] |
no_license
|
ITTrain/ITTrainNet
|
4b5a1f48f28f3ec5a92bc458c93e89e0c8886c42
|
dffbe7eaed25a4ed9423fb7718331fb452ad0b0b
|
refs/heads/master
| 2022-12-23T07:12:59.697442
| 2018-12-26T13:02:47
| 2018-12-26T13:02:47
| 160,663,892
| 0
| 0
| null | 2022-12-16T01:41:52
| 2018-12-06T11:16:13
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 788
|
java
|
package com.ittedu.os.edu.dao.impl.user;
import java.util.List;
import com.ittedu.os.common.entity.PageEntity;
import com.ittedu.os.edu.dao.user.UserLoginLogDao;
import com.ittedu.os.edu.entity.user.UserLoginLog;
import org.springframework.stereotype.Repository;
import com.ittedu.os.common.dao.GenericDaoImpl;
/**
* @author www.ittedu.com
*
*/
@Repository("userLoginLogDao")
public class UserLoginLogDaoImpl extends GenericDaoImpl implements UserLoginLogDao {
public int createLoginLog(UserLoginLog loginLog) {
this.insert("UserLoginLogMapper.createLoginLog", loginLog);
return loginLog.getLogId();
}
public List<UserLoginLog> queryUserLogPage(int userId, PageEntity page) {
return this.queryForListPage("UserLoginLogMapper.queryUserLogPage", userId, page);
}
}
|
[
"3130569@qq.com"
] |
3130569@qq.com
|
c5c6142e7e42d038100f7cd79430102eaba4ee56
|
36838dfcd53c4d2c73b9a6b0b7a8a28e4a331517
|
/com/amap/api/maps/offlinemap/OfflineMapProvince.java
|
2f67452bcdf922c350f2e54d8d46e3ee706a9fff
|
[] |
no_license
|
ShahmanTeh/MiFit-Java
|
fbb2fd578727131b9ac7150b86c4045791368fe8
|
93bdf88d39423893b294dec2f5bf54708617b5d0
|
refs/heads/master
| 2021-01-20T13:05:10.408158
| 2016-02-03T21:02:55
| 2016-02-03T21:02:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,556
|
java
|
package com.amap.api.maps.offlinemap;
import android.os.Parcel;
import android.os.Parcelable.Creator;
public class OfflineMapProvince extends Province {
public static final Creator<OfflineMapProvince> CREATOR = new g();
private String a;
private int b;
private long c;
private String d;
private int e = 0;
public OfflineMapProvince(Parcel parcel) {
super(parcel);
this.a = parcel.readString();
this.b = parcel.readInt();
this.c = parcel.readLong();
this.d = parcel.readString();
this.e = parcel.readInt();
}
public int describeContents() {
return 0;
}
public long getSize() {
return this.c;
}
public int getState() {
return this.b;
}
public String getUrl() {
return this.a;
}
public String getVersion() {
return this.d;
}
public int getcompleteCode() {
return this.e;
}
public void setCompleteCode(int i) {
this.e = i;
}
public void setSize(long j) {
this.c = j;
}
public void setState(int i) {
this.b = i;
}
public void setUrl(String str) {
this.a = str;
}
public void setVersion(String str) {
this.d = str;
}
public void writeToParcel(Parcel parcel, int i) {
super.writeToParcel(parcel, i);
parcel.writeString(this.a);
parcel.writeInt(this.b);
parcel.writeLong(this.c);
parcel.writeString(this.d);
parcel.writeInt(this.e);
}
}
|
[
"kasha_malaga@hotmail.com"
] |
kasha_malaga@hotmail.com
|
72417590e061b32df563ecf0d24577d14d504188
|
9b5bc5fb2260bbebaf498ca75b97ec34894d7035
|
/mall-admin/src/main/java/com/macro/mall/controller/UmsMenuController.java
|
ac572d06a079a3aa3e2132c657d7546275b02e37
|
[
"Apache-2.0"
] |
permissive
|
XiuyeXYE/mall-swarm
|
fc1fc9b248416875d695d66b4edff53c01cc3d0c
|
09265cd147d607830512854e4e3ed74663ad1d42
|
refs/heads/master
| 2022-12-13T07:43:35.493199
| 2020-08-16T07:22:07
| 2020-08-16T07:22:07
| 286,952,765
| 0
| 0
|
Apache-2.0
| 2020-08-12T07:57:04
| 2020-08-12T07:57:03
| null |
UTF-8
|
Java
| false
| false
| 3,793
|
java
|
package com.macro.mall.controller;
import com.macro.mall.common.api.CommonPage;
import com.macro.mall.common.api.CommonResult;
import com.macro.mall.dto.UmsMenuNode;
import com.macro.mall.model.UmsMenu;
import com.macro.mall.service.UmsMenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 后台菜单管理Controller
* Created by macro on 2020/2/4.
*/
@Controller
@Api(tags = "UmsMenuController", description = "后台菜单管理")
@RequestMapping("/menu")
public class UmsMenuController {
@Autowired
private UmsMenuService menuService;
@ApiOperation("添加后台菜单")
@RequestMapping(value = "/create", method = RequestMethod.POST)
@ResponseBody
public CommonResult create(@RequestBody UmsMenu umsMenu) {
int count = menuService.create(umsMenu);
if (count > 0) {
return CommonResult.success(count);
} else {
return CommonResult.failed();
}
}
@ApiOperation("修改后台菜单")
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
@ResponseBody
public CommonResult update(@PathVariable Long id,
@RequestBody UmsMenu umsMenu) {
int count = menuService.update(id, umsMenu);
if (count > 0) {
return CommonResult.success(count);
} else {
return CommonResult.failed();
}
}
@ApiOperation("根据ID获取菜单详情")
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<UmsMenu> getItem(@PathVariable Long id) {
UmsMenu umsMenu = menuService.getItem(id);
return CommonResult.success(umsMenu);
}
@ApiOperation("根据ID删除后台菜单")
@RequestMapping(value = "/delete/{id}", method = RequestMethod.POST)
@ResponseBody
public CommonResult delete(@PathVariable Long id) {
int count = menuService.delete(id);
if (count > 0) {
return CommonResult.success(count);
} else {
return CommonResult.failed();
}
}
@ApiOperation("分页查询后台菜单")
@RequestMapping(value = "/list/{parentId}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<CommonPage<UmsMenu>> list(@PathVariable Long parentId,
@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
List<UmsMenu> menuList = menuService.list(parentId, pageSize, pageNum);
return CommonResult.success(CommonPage.restPage(menuList));
}
@ApiOperation("树形结构返回所有菜单列表")
@RequestMapping(value = "/treeList", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<UmsMenuNode>> treeList() {
List<UmsMenuNode> list = menuService.treeList();
return CommonResult.success(list);
}
@ApiOperation("修改菜单显示状态")
@RequestMapping(value = "/updateHidden/{id}", method = RequestMethod.POST)
@ResponseBody
public CommonResult updateHidden(@PathVariable Long id, @RequestParam("hidden") Integer hidden) {
int count = menuService.updateHidden(id, hidden);
if (count > 0) {
return CommonResult.success(count);
} else {
return CommonResult.failed();
}
}
}
|
[
"xiuye_engineer@outlook.com"
] |
xiuye_engineer@outlook.com
|
fa2a4962026f222b96f366e3b27e8ab607f3da11
|
44f32201be3c8e610b5c72a8ae487d64056d68e5
|
/.history/demo/test0325/src/main/java/com/hello/test0325/web/User_20200326120136.java
|
033b9f0d8b621fe1324a6f97fc6559593b70fe40
|
[] |
no_license
|
hisouske/test0325
|
19e421ce5019a949e5a7887d863b1b997a9d5a3b
|
8efd4169cf6e6d2b70d32a991e3747174be9c7e9
|
refs/heads/master
| 2021-05-16T20:28:30.546404
| 2020-04-22T06:39:58
| 2020-04-22T06:39:58
| 250,457,284
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,212
|
java
|
package com.hello.test0325.web;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Entity
@Table(name="user")
public class User implements Serializable{
@Id
@GeneratedValue(strategy= GenerationType.AUTO)
// private Long id;
@Column(name="username")
private String username;
@Column(name="password")
private String password;
// JPA 에 사용되는 instence
public User() {
}
@Builder
public User( String username, String password){
// this.id = id;
this.username = username;
this.password = password;
}
@Override
public String toString(){
//System.out.println(id);
return String.format("User[username="+username+",password="+password+"]");
}
public User toEntity() {
return User.builder()
// .id(id)
.username(username)
.password(password)
.build();
}
}
|
[
"zzang22yn@naver.com"
] |
zzang22yn@naver.com
|
193d65b3968d81b98912367edbcebcbc6cb90b9e
|
4a0a921a3c82a2326a4d2b7d78d4c068625fe67d
|
/src/main/java/nc/gui/processor/GuiIsotopeSeparator.java
|
e2afa8d4702b7b063ccba19bdff458bbc2191963
|
[
"CC0-1.0"
] |
permissive
|
dmptrluke/NuclearCraft
|
3952c539330736c5bcddd5ee4724b66f835af00c
|
11b16a97882c87cc8037565255198f90cbe5db62
|
refs/heads/master
| 2021-10-02T19:16:24.701478
| 2018-11-13T13:04:59
| 2018-11-13T13:04:59
| 157,207,548
| 0
| 0
| null | 2018-11-12T12:05:29
| 2018-11-12T12:05:29
| null |
UTF-8
|
Java
| false
| false
| 1,472
|
java
|
package nc.gui.processor;
import nc.container.processor.ContainerIsotopeSeparator;
import nc.gui.GuiItemRenderer;
import nc.init.NCItems;
import nc.tile.processor.TileItemProcessor;
import net.minecraft.entity.player.EntityPlayer;
public class GuiIsotopeSeparator extends GuiItemProcessor {
public GuiIsotopeSeparator(EntityPlayer player, TileItemProcessor tile) {
super("isotope_separator", player, new ContainerIsotopeSeparator(player, tile));
this.tile = tile;
xSize = 176;
ySize = 166;
}
@Override
public void renderTooltips(int mouseX, int mouseY) {
drawEnergyTooltip(tile, mouseX, mouseY, 8, 6, 16, 74);
}
@Override
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {
super.drawGuiContainerForegroundLayer(mouseX, mouseY);
GuiItemRenderer itemRenderer = new GuiItemRenderer(132, ySize - 102, 0.5F, NCItems.upgrade, 0);
itemRenderer.draw();
}
@Override
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
super.drawGuiContainerBackgroundLayer(partialTicks, mouseX, mouseY);
double e = Math.round(((double) tile.getEnergyStorage().getEnergyStored()) / ((double) tile.getEnergyStorage().getMaxEnergyStored()) * 74);
if (tile.baseProcessPower != 0) drawTexturedModalRect(guiLeft + 8, guiTop + 6 + 74 - (int) e, 176, 90 + 74 - (int) e, 16, (int) e);
int k = getCookProgressScaled(37);
drawTexturedModalRect(guiLeft + 60, guiTop + 34, 176, 3, k, 18);
}
}
|
[
"joedodd35@gmail.com"
] |
joedodd35@gmail.com
|
deb036dbd5edb61aa2642767274f91ee42cca6f8
|
d19d2c1fd8f4d070496ee24e8381d900627cfdfd
|
/gmall-oms-interface/src/main/java/com/atguigu/gmall/oms/entity/OrderSettingEntity.java
|
4eeb461097f46cb894246a9d02bec92f402c2fff
|
[
"Apache-2.0"
] |
permissive
|
kuangmoo/gmall-0211
|
c0a0ea88865e263612f188c82ea9cc8427dd9abe
|
26e6e9f5cf354901d6791384f397838db5b95b76
|
refs/heads/master
| 2022-12-03T03:14:07.204367
| 2020-08-14T08:29:20
| 2020-08-14T08:29:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,111
|
java
|
package com.atguigu.gmall.oms.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 订单配置信息
*
* @author fengge
* @email fengge@atguigu.com
* @date 2020-08-11 09:08:16
*/
@Data
@TableName("oms_order_setting")
public class OrderSettingEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
@TableId
private Long id;
/**
* 秒杀订单超时关闭时间(分)
*/
private Integer flashOrderOvertime;
/**
* 正常订单超时时间(分)
*/
private Integer normalOrderOvertime;
/**
* 发货后自动确认收货时间(天)
*/
private Integer confirmOvertime;
/**
* 自动完成交易时间,不能申请退货(天)
*/
private Integer finishOvertime;
/**
* 订单完成后自动好评时间(天)
*/
private Integer commentOvertime;
/**
* 会员等级【0-不限会员等级,全部通用;其他-对应的其他会员等级】
*/
private Integer memberLevel;
}
|
[
"joedy23@aliyun.com"
] |
joedy23@aliyun.com
|
5b0a64532167327e49d38de709e10a8bc6d15a88
|
31a629ce57de5492a3679a6c4e81300b32b3785d
|
/BigFitness/src/main/java/com/member/gufei/bigfitness/com/GuFei/Member/Ui/Main/Index/FragMents/MyIndex/MyIndexFragMentPresenter.java
|
b122dcea743119871825bc895fb3089fb238fd98
|
[] |
no_license
|
zhuzilyy/NewbigFitnessMember
|
e910007c86537fa4821441ed094d7544aef2d705
|
3ccee9b93d9948b269ee4d5cb18557953e720911
|
refs/heads/master
| 2020-04-09T07:18:01.830772
| 2018-12-17T03:10:08
| 2018-12-17T03:10:08
| 160,144,166
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,026
|
java
|
package com.member.gufei.bigfitness.com.GuFei.Member.Ui.Main.Index.FragMents.MyIndex;
import com.member.gufei.bigfitness.base.RxPresenter;
import com.member.gufei.bigfitness.com.GuFei.Model.local.MainMsgBean;
import com.member.gufei.bigfitness.com.GuFei.Model.local.SineForMainPageBean;
import com.member.gufei.bigfitness.com.GuFei.NetWork.Api;
import com.member.gufei.bigfitness.util.RxUtil;
import javax.inject.Inject;
import rx.Subscription;
import rx.functions.Action1;
/**
* Created by GuFei_lyf on 2017/3/22
*/
public class MyIndexFragMentPresenter extends RxPresenter<MyIndexFragMentContract.View> implements MyIndexFragMentContract.Presenter {
private Api api;
@Inject
public MyIndexFragMentPresenter(Api api) {
this.api = api;
}
@Override
public void updata(int userid, String token, int clubid) {
// Subscription subscription = api.getMainList(userid,token,clubid)
//
// .compose(RxUtil.<MainMsgBean>rxSchedulerHelper())
//
// .subscribe(new Action1<MainMsgBean>() {
// @Override
// public void call(MainMsgBean normalResponse) {
//
//
// if (normalResponse.getCode() == 0) {
//
// mView.succeed(normalResponse);
//
//
// } else if (normalResponse.getCode() == 250) {
//
// mView.outLogin();
//
// } else {
//
// }
//
//
// }
// }, new Action1<Throwable>() {
// @Override
// public void call(Throwable throwable) {
//
//// mView.showError("服务器请求失败");+
//
//
// }
// });
// addSubscription(subscription);
}
@Override
public void getSineForMainPage(int userid, String token, int clubid) {
// Subscription subscription = api.getSineForMainPage(userid,token,clubid)
//
// .compose(RxUtil.<SineForMainPageBean>rxSchedulerHelper())
//
// .subscribe(new Action1<SineForMainPageBean>() {
// @Override
// public void call(SineForMainPageBean normalResponse) {
// if (normalResponse.getCode() == 0) {
//
// mView.MainPagesucceed(normalResponse);
//
//
// } else if (normalResponse.getCode() == 250) {
//
// mView.outLogin();
//
// } else {
//
// mView.showError(normalResponse.getMessage().toString());
// }
//
//
// }
// }, new Action1<Throwable>() {
// @Override
// public void call(Throwable throwable) {
//
// mView.showError("服务器请求失败");
//
//
// }
// });
// addSubscription(subscription);
}
}
|
[
"m17010224166@163.com"
] |
m17010224166@163.com
|
2c7c09750261712fdf7d7b24b0a1aeb6b62963a5
|
67517ac9b07d1d7f20216fb7a85ef70193335dc3
|
/gmall-ums/src/main/java/com/ww/gmall/ums/mapper/RoleMapper.java
|
a51e9c1282a418f31bd7c76164249fb1b4c40fc7
|
[] |
no_license
|
jimmywang1994/gmall-parent
|
b8561dd44f6eab5d456226729d44b756783c0da2
|
444233ef5ce0399662d7ea4a6f5e04e55a29ca18
|
refs/heads/master
| 2022-12-25T07:56:02.721210
| 2020-01-07T13:44:05
| 2020-01-07T13:44:05
| 230,766,008
| 0
| 0
| null | 2022-12-10T05:52:56
| 2019-12-29T15:06:12
|
Java
|
UTF-8
|
Java
| false
| false
| 288
|
java
|
package com.ww.gmall.ums.mapper;
import com.ww.gmall.ums.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 后台用户角色表 Mapper 接口
* </p>
*
* @author wwei
* @since 2019-12-31
*/
public interface RoleMapper extends BaseMapper<Role> {
}
|
[
"429744781@qq.com"
] |
429744781@qq.com
|
8e40c3f43d166516aebfb07da26f6ea53906800d
|
deb71450825ac7cc749f802ac6bb7a9ec30a976a
|
/DAOBootProj13-SimpleJdbcInsert/src/main/java/com/nt/config/PersistenceConfig.java
|
575e3663bf17c5f8712c2b06fa6fef87b256e913
|
[] |
no_license
|
pratikrohokale/SPRINGREFDAO
|
8bf29e16277a8a95410e9a05a2b3e0323cd84760
|
03e3dc1acc89fa73bfcab91cf986d33933a5863e
|
refs/heads/master
| 2021-07-08T05:08:15.809170
| 2019-06-20T04:57:30
| 2019-06-20T04:57:30
| 192,851,110
| 0
| 0
| null | 2020-10-13T14:02:08
| 2019-06-20T04:56:25
|
Java
|
UTF-8
|
Java
| false
| false
| 253
|
java
|
package com.nt.config;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan(basePackages="com.nt.dao")
public class PersistenceConfig {
}
|
[
"prohokale01@gmail.com"
] |
prohokale01@gmail.com
|
cce9442e6be94b5ba20233bf76ce0856146659a6
|
82e7aab0bbefb563b1d2d717c58444ce7adec8ac
|
/adventure-support/src/main/java/com/github/stefvanschie/inventoryframework/adventuresupport/TextHolder.java
|
dea4b8d72dc2a95bda1a311db05b34ccac6a68f0
|
[
"Unlicense"
] |
permissive
|
stefvanschie/IF
|
2db224eb71c65840bbdd88dd2e4e747d59181b24
|
2409542b6a36f29905fe141d96bcb48413d2d9e4
|
refs/heads/master
| 2023-07-23T00:20:28.355139
| 2023-07-19T18:57:14
| 2023-07-19T18:57:14
| 108,733,772
| 361
| 102
|
Unlicense
| 2023-09-09T18:37:33
| 2017-10-29T12:49:31
|
Java
|
UTF-8
|
Java
| false
| false
| 4,262
|
java
|
package com.github.stefvanschie.inventoryframework.adventuresupport;
import net.kyori.adventure.text.Component;
import org.bukkit.ChatColor;
import org.bukkit.event.inventory.InventoryType;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;
import org.bukkit.inventory.Merchant;
import org.bukkit.inventory.meta.ItemMeta;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
/**
* Immutable wrapper of a text-like value.
* Support for both Adventure and legacy strings is achieved through this class.
* To get an instance of this class please refer to either {@link StringHolder#of(String)}
* or {@link ComponentHolder#of(Component)}.
* Other methods like {@link #empty()} and {@link #deserialize(String)}
* also exist, but their use cases are very limited.
*
* @see StringHolder
* @see ComponentHolder
* @since 0.10.0
*/
public abstract class TextHolder {
/**
* Gets an instance that contains no characters and no formatting.
*
* @return an instance without any characters or formatting
* @since 0.10.0
*/
@NotNull
@Contract(pure = true)
public static TextHolder empty() {
return StringHolder.empty();
}
/**
* Deserializes the specified {@link String} as a {@link TextHolder}.
* This method is still WIP and may change drastically in the future:
* <ul>
* <li>Are we going to use MiniMessage if it's present?</li>
* <li>Is MiniMessage going to be opt-in? If yes, how do we opt-in?</li>
* </ul>
*
* @param string the raw data to deserialize
* @return an instance containing the text from the string
* @since 0.10.0
*/
@NotNull
@Contract(pure = true)
public static TextHolder deserialize(@NotNull String string) {
return StringHolder.of(ChatColor.translateAlternateColorCodes('&', string));
}
TextHolder() {
//package-private constructor to "seal" the class
}
@NotNull
@Contract(pure = true)
@Override
public abstract String toString();
@Override
public abstract int hashCode();
@Override
public abstract boolean equals(Object other);
/**
* Converts the text wrapped by this class instance to a legacy string,
* keeping the original formatting.
*
* @return the wrapped value represented as a legacy string
* @since 0.10.0
*/
@NotNull
@Contract(pure = true)
public abstract String asLegacyString();
/**
* Creates a new inventory with the wrapped value as the inventory's title.
*
* @param holder the holder to use for the new inventory
* @param type the type of inventory to create
* @return a newly created inventory with the wrapped value as its title
* @since 0.10.0
*/
@NotNull
@Contract(pure = true)
public abstract Inventory asInventoryTitle(InventoryHolder holder, InventoryType type);
/**
* Creates a new inventory with the wrapped value as the inventory's title.
*
* @param holder the holder to use for the new inventory
* @param size the count of slots the inventory should have (normal size restrictions apply)
* @return a newly created inventory with the wrapped value as its title
* @since 0.10.0
*/
@NotNull
@Contract(pure = true)
public abstract Inventory asInventoryTitle(InventoryHolder holder, int size);
/**
* Creates a new merchant with the wrapped value as the merchant's title.
*
* @return a newly created inventory with the wrapped value as its title
* @since 0.10.0
*/
@NotNull
@Contract(pure = true)
public abstract Merchant asMerchantTitle();
/**
* Modifies the specified meta: sets the display name to the wrapped value.
*
* @param meta the meta whose display name to set
* @since 0.10.0
*/
public abstract void asItemDisplayName(ItemMeta meta);
/**
* Modifies the specified meta: adds the wrapped value as a new lore line at the end
*
* @param meta the meta whose lore to append to
* @since 0.10.0
*/
public abstract void asItemLoreAtEnd(ItemMeta meta);
}
|
[
"stefvanschiedev@gmail.com"
] |
stefvanschiedev@gmail.com
|
698c212bd63c0c30d160dad97726f82be82f8c9a
|
0735d7bb62b6cfb538985a278b77917685de3526
|
/kotlin/reflect/jvm/internal/impl/descriptors/VariableDescriptor.java
|
8faa3f25aef71a529242204a0ecf10514d6ffa50
|
[] |
no_license
|
Denoah/personaltrackerround
|
e18ceaad910f1393f2dd9f21e9055148cda57837
|
b38493ccc7efff32c3de8fe61704e767e5ac62b7
|
refs/heads/master
| 2021-05-20T03:34:17.333532
| 2020-04-02T14:47:31
| 2020-04-02T14:51:01
| 252,166,069
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 389
|
java
|
package kotlin.reflect.jvm.internal.impl.descriptors;
import kotlin.reflect.jvm.internal.impl.resolve.constants.ConstantValue;
public abstract interface VariableDescriptor
extends ValueDescriptor
{
public abstract ConstantValue<?> getCompileTimeInitializer();
public abstract boolean isConst();
public abstract boolean isLateInit();
public abstract boolean isVar();
}
|
[
"ivanov.a@i-teco.ru"
] |
ivanov.a@i-teco.ru
|
85510428d244c18c89708827864108662f046d6d
|
4536078b4070fc3143086ff48f088e2bc4b4c681
|
/v1.1.2/decompiled/com/microsoft/azure/storage/table/TableUpdateType.java
|
720740301690aa03e44ccf1a3677c4cb0151254c
|
[] |
no_license
|
olealgoritme/smittestopp_src
|
485b81422752c3d1e7980fbc9301f4f0e0030d16
|
52080d5b7613cb9279bc6cda5b469a5c84e34f6a
|
refs/heads/master
| 2023-05-27T21:25:17.564334
| 2023-05-02T14:24:31
| 2023-05-02T14:24:31
| 262,846,147
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 460
|
java
|
package com.microsoft.azure.storage.table;
public enum TableUpdateType
{
static
{
TableUpdateType localTableUpdateType = new TableUpdateType("REPLACE", 1);
REPLACE = localTableUpdateType;
$VALUES = new TableUpdateType[] { MERGE, localTableUpdateType };
}
public TableUpdateType() {}
}
/* Location:
* Qualified Name: com.microsoft.azure.storage.table.TableUpdateType
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"olealgoritme@gmail.com"
] |
olealgoritme@gmail.com
|
30ab624695bc5d596c3499fa3306d50cad26dde2
|
422b5ec146354949dd3e286ead9dfbc0d75ebc34
|
/JavaCode/src/algs/model/searchtree/ClosedHeuristic.java
|
64a10b0ded3434f4fd30d2832c9a2823c65ee9a6
|
[
"MIT"
] |
permissive
|
chjfth/algorithms-nutshell-2ed
|
8eecf0fb3e5518c5629c371ac99b0bb98d824562
|
0a796d3936a6f3cf669df596ab433b225302cc90
|
refs/heads/master
| 2020-07-05T02:54:46.570736
| 2019-08-15T15:05:04
| 2019-08-15T15:05:04
| 202,500,491
| 0
| 0
| null | 2019-08-15T08:07:00
| 2019-08-15T08:06:59
| null |
UTF-8
|
Java
| false
| false
| 3,474
|
java
|
package algs.model.searchtree;
import java.util.Iterator;
import algs.model.list.DoubleLinkedList;
import algs.model.searchtree.states.StateStorageFactory;
/**
* Given an initial state and a target goal state, expand successors, always choosing
* to expand the node in the OPEN list whose evaluation is the smallest. This is not
* A* search because it focuses on closed states.
*
* Ties are broken randomly, except when one of the tied nodes is a goal node.
*
* @author George Heineman
* @version 1.0, 6/15/08
* @since 1.0
*/
public class ClosedHeuristic implements ISearch {
/** Scoring function to use. */
IScore scoringFunction;
/** Storage type. Defaults to HASH. */
int closedStorage = StateStorageFactory.HASH;
/**
* Determine structure to use for storing CLOSED set.
* @param type type of storage to use for closed set.
*/
public void storageType (int type) {
closedStorage = type;
}
/**
* Prepare an A* search using the given scoring function.
*
* @param sf static evaluation function
*/
public ClosedHeuristic (IScore sf) {
this.scoringFunction = sf;
}
/**
* Initiate the search for the target state.
*
* Store with each INode object a Transition (Move m, INode prev) so we
* can retrace steps to the original solution.
*/
public Solution search(INode initial, INode goal) {
// Start from the initial state
INodeSet open = StateStorageFactory.create(StateStorageFactory.TREE);
INode copy = initial.copy();
scoringFunction.score(copy);
open.insert(copy);
// states we have already visited are stored in a queue unless configured.
INodeSet closed = StateStorageFactory.create(closedStorage);
while (!open.isEmpty()) {
// Remove node with smallest evaluation function and mark closed.
INode n = open.remove();
closed.insert(n);
// Return if goal state reached.
if (n.equals(goal)) {
numOpen = open.size(); numClosed = closed.size(); /* STATS */
return new Solution (initial, n);
}
// Compute successor moves and update OPEN/CLOSED lists.
DepthTransition trans = (DepthTransition) n.storedData();
int depth = 1;
if (trans != null) { depth = trans.depth+1; }
DoubleLinkedList<IMove> moves = n.validMoves();
for (Iterator<IMove> it = moves.iterator(); it.hasNext(); ) {
IMove move = it.next();
// Make move and score the new board state.
INode successor = n.copy();
move.execute(successor);
// Record previous move for solution trace and compute
// evaluation function to see if we have improved upon
// a state already closed
successor.storedData(new DepthTransition(move, n, depth));
scoringFunction.score(successor);
numMoves++; /* STATS */
// If already visited, see if we are revisiting with lower cost.
// If not, just continue; otherwise, pull out of closed and process
INode past = closed.contains(successor);
if (past != null) {
if (successor.score() >= past.score()) {
continue;
}
// we revisit with our lower cost.
closed.remove(past);
}
// place into open.
open.insert (successor);
}
}
// No solution.
numOpen = open.size(); numClosed = closed.size(); /* STATS */
return new Solution (initial, goal, false);
}
// statistical information to evaluate algorithms effectiveness.
public int numMoves = 0;
public int numOpen = 0;
public int numClosed = 0;
}
|
[
"heineman@cs.wpi.edu"
] |
heineman@cs.wpi.edu
|
b9fe5c7f9ee53702f51548d9bb4b1c1266cc76bb
|
c0fe21b86f141256c85ab82c6ff3acc56b73d3db
|
/mps/src/main/java/com/jdcloud/sdk/service/mps/client/DeleteSnapshotTaskExecutor.java
|
696bcf8497a8525cd2f80cdb3ebd4e4588bffd49
|
[
"Apache-2.0"
] |
permissive
|
jdcloud-api/jdcloud-sdk-java
|
3fec9cf552693520f07b43a1e445954de60e34a0
|
bcebe28306c4ccc5b2b793e1a5848b0aac21b910
|
refs/heads/master
| 2023-07-25T07:03:36.682248
| 2023-07-25T06:54:39
| 2023-07-25T06:54:39
| 126,275,669
| 47
| 61
|
Apache-2.0
| 2023-09-07T08:41:24
| 2018-03-22T03:41:41
|
Java
|
UTF-8
|
Java
| false
| false
| 1,451
|
java
|
/*
* Copyright 2018 JDCLOUD.COM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:#www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Snapshot
* 视频截图任务相关接口
*
* OpenAPI spec version: v1
* Contact:
*
* NOTE: This class is auto generated by the jdcloud code generator program.
*/
package com.jdcloud.sdk.service.mps.client;
import com.jdcloud.sdk.client.JdcloudExecutor;
import com.jdcloud.sdk.service.JdcloudResponse;
import com.jdcloud.sdk.service.mps.model.DeleteSnapshotTaskResponse;
/**
* 删除视频截图任务。删除任务时,会同时删除任务相关的数据,如任务执行结果等
*/
class DeleteSnapshotTaskExecutor extends JdcloudExecutor {
@Override
public String method() {
return "DELETE";
}
@Override
public String url() {
return "/snapshotTasks/{taskId}";
}
@Override
public Class<? extends JdcloudResponse> returnType() {
return DeleteSnapshotTaskResponse.class;
}
}
|
[
"tancong@jd.com"
] |
tancong@jd.com
|
d3c6bfc82634b0a7baf3c2c2ccda4eb784566928
|
5d6a0546b8845805a0eacbe834b216e0820014a3
|
/server/src/main/java/au/com/codeka/warworlds/server/world/NotificationManager.java
|
902bbb5c782dcf7a6ac15b9f7157c1711c25bbb9
|
[
"MIT"
] |
permissive
|
Kapzy9r/wwmmo
|
206a7f7bb1f3c2f0a0f58ab150d556b5db56a3ec
|
67038053613d714a50653001ddd05021a13b6949
|
refs/heads/master
| 2020-09-20T01:10:56.607091
| 2019-12-09T05:36:34
| 2019-12-09T05:36:34
| 224,340,978
| 0
| 0
|
MIT
| 2019-11-27T04:02:02
| 2019-11-27T04:02:01
| null |
UTF-8
|
Java
| false
| false
| 1,769
|
java
|
package au.com.codeka.warworlds.server.world;
import com.google.firebase.messaging.FirebaseMessaging;
import com.google.firebase.messaging.FirebaseMessagingException;
import com.google.firebase.messaging.Message;
import java.util.Base64;
import java.util.List;
import au.com.codeka.warworlds.common.Log;
import au.com.codeka.warworlds.common.proto.DeviceInfo;
import au.com.codeka.warworlds.common.proto.Empire;
import au.com.codeka.warworlds.common.proto.Notification;
import au.com.codeka.warworlds.server.store.DataStore;
public class NotificationManager {
private static final Log log = new Log("EmpireManager");
public static final NotificationManager i = new NotificationManager();
public void start() {
}
/**
* Sends the given {@link Notification} to the given {@link Empire}.
* @param empire The {@link Empire} to send to.
* @param notification The {@link Notification} to send.
*/
public void sendNotification(Empire empire, Notification notification) {
String notificationBase64 = Base64.getEncoder().encodeToString(notification.encode());
List<DeviceInfo> devices = DataStore.i.empires().getDevicesForEmpire(empire.id);
for (DeviceInfo device : devices) {
sendNotification(device, notificationBase64);
}
}
private void sendNotification(DeviceInfo device, String notificationBase64) {
Message msg = Message.builder()
.putData("notification", notificationBase64)
.setToken(device.fcm_device_info.token)
.build();
try {
String resp = FirebaseMessaging.getInstance().send(msg);
log.info("Firebase message sent: %s", resp);
} catch(FirebaseMessagingException e) {
log.error("Error sending firebase notification: %s", e.getErrorCode(), e);
}
}
}
|
[
"dean@codeka.com.au"
] |
dean@codeka.com.au
|
dd40e353847a1a039040d4f6d3d579ecdcef0765
|
2dc6df4b755e64527a163b2980ae9b2e37350558
|
/src/main/java/com/mazentop/modules/freemarker/tag/SkinProductTag.java
|
5089923a50d6ecdf1cd52461e06da115f424bd06
|
[
"0BSD"
] |
permissive
|
chanwaikit/fulin-test
|
bcc25bfb860a631666b945d191ac9d0ebc5a22eb
|
e31ef03596b724ba48d72ca8021492e6f251ec20
|
refs/heads/master
| 2023-06-27T12:34:51.533534
| 2021-07-26T03:32:37
| 2021-07-26T03:32:37
| 389,497,650
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 572
|
java
|
package com.mazentop.modules.freemarker.tag;
import com.mazentop.entity.ProProductMaster;
import com.mztframework.render.Tag;
import org.springframework.stereotype.Component;
@Component
public class SkinProductTag extends Tag {
@Override
public void execute() {
String productId = getParam("productId");
ProProductMaster proProductMaster = new ProProductMaster().setId(productId).get();
setVariable("product", proProductMaster);
renderBody();
}
@Override
public String name() {
return "skin_product";
}
}
|
[
"674445354@qq.com"
] |
674445354@qq.com
|
4acb905ad93b54dd114aa5da7130cace018e8ece
|
a1e49f5edd122b211bace752b5fb1bd5c970696b
|
/projects/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/tags/form/AbstractFormTagTests.java
|
c26b7190db0c9eb839f56773fcfa99850859f4bc
|
[
"Apache-2.0"
] |
permissive
|
savster97/springframework-3.0.5
|
4f86467e2456e5e0652de9f846f0eaefc3214cfa
|
34cffc70e25233ed97e2ddd24265ea20f5f88957
|
refs/heads/master
| 2020-04-26T08:48:34.978350
| 2019-01-22T14:45:38
| 2019-01-22T14:45:38
| 173,434,995
| 0
| 0
|
Apache-2.0
| 2019-03-02T10:37:13
| 2019-03-02T10:37:12
| null |
UTF-8
|
Java
| false
| false
| 1,540
|
java
|
/*
* Copyright 2002-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.web.servlet.tags.form;
import javax.servlet.jsp.JspException;
import org.springframework.beans.TestBean;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockPageContext;
/**
* @author Rob Harrop
* @author Juergen Hoeller
*/
public abstract class AbstractFormTagTests extends AbstractHtmlElementTagTests {
private FormTag formTag = new FormTag();
protected void extendRequest(MockHttpServletRequest request) {
request.setAttribute(COMMAND_NAME, createTestBean());
}
protected abstract TestBean createTestBean();
protected void extendPageContext(MockPageContext pageContext) throws JspException {
this.formTag.setCommandName(COMMAND_NAME);
this.formTag.setAction("myAction");
this.formTag.setPageContext(pageContext);
this.formTag.doStartTag();
}
protected final FormTag getFormTag() {
return this.formTag;
}
}
|
[
"taibi@sonar-scheduler.rd.tut.fi"
] |
taibi@sonar-scheduler.rd.tut.fi
|
c2507ffde7e1015a7f46ca814f204743fe874597
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/22/22_fad7119a7148a0525d4f523248b33178ace4d759/MavenSourcePathProvider/22_fad7119a7148a0525d4f523248b33178ace4d759_MavenSourcePathProvider_s.java
|
15527dc093c943121c9bdaf2364ac04fb9a60089
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,186
|
java
|
/*******************************************************************************
* Copyright (c) 2008 Sonatype, Inc.
* 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
*******************************************************************************/
package org.maven.ide.eclipse.launch;
import java.util.Set;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
import org.eclipse.jdt.launching.JavaRuntime;
public class MavenSourcePathProvider extends MavenRuntimeClasspathProvider {
public IRuntimeClasspathEntry[] computeUnresolvedClasspath(ILaunchConfiguration configuration) throws CoreException {
boolean useDefault = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_DEFAULT_SOURCE_PATH, true);
IRuntimeClasspathEntry[] entries = null;
if (useDefault) {
// the default source lookup path is the same as the classpath
entries = super.computeUnresolvedClasspath(configuration);
} else {
// recover persisted source path
entries = recoverRuntimePath(configuration, IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH);
}
return entries;
}
protected void addProjectEntries(Set resolved, IPath path, int scope) {
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IProject project = root.getProject(path.segment(0));
IJavaProject javaProject = JavaCore.create(project);
resolved.add(JavaRuntime.newProjectRuntimeClasspathEntry(javaProject));
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
b037f679d312c90ae7d828ddbf6b676df082801b
|
dfc0ef8c3017ebfe80fe8ee657b4f593330d3ef6
|
/Reversed/framework/com/samsung/voicebargein/BargeInEngine.java
|
585755906cfa457080951d5ba4454b1bab363d8e
|
[] |
no_license
|
khomsn/SCoverRE
|
fe079b6006281112ee37b66c5d156bb959e15420
|
2374565740e4c7bfc653b3f05bd9be519e722e32
|
refs/heads/master
| 2020-04-13T15:36:19.925426
| 2017-06-01T07:31:37
| 2017-06-01T07:31:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 939
|
java
|
package com.samsung.voicebargein;
import android.util.Log;
public class BargeInEngine {
private static final String TAG = BargeInEngine.class.getSimpleName();
public static int init() {
try {
Log.i(TAG, "Trying to load libBargeInEngine.so");
System.loadLibrary("BargeInEngine");
Log.i(TAG, "Loading libBargeInEngine.so");
return 0;
} catch (UnsatisfiedLinkError e) {
Log.e(TAG, "WARNING: Could not load libBargeInEngine.so");
return -1;
} catch (Exception e2) {
Log.e(TAG, "WARNING: Could not load libBargeInEngine.so");
return -1;
}
}
public void asyncPrint(String str) {
}
public native void phrasespotClose(long j);
public native long phrasespotInit(String str, String str2);
public native String phrasespotPipe(long j, short[] sArr, long j2, long j3, float[] fArr);
}
|
[
"fonix232@gmail.com"
] |
fonix232@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.