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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fd81e73ab114c9ab75e102c234bca5ecf61ebe18
|
b4cc861bf70792e1e587efe827dfdb0157442e95
|
/mcp62/temp/src/minecraft/net/minecraft/src/StructureBoundingBox.java
|
eac193aa5b1019712612e642816c8bae3352f349
|
[] |
no_license
|
popnob/ooptest
|
8c61729343bf0ed113c3038b5a0f681387805ef7
|
856b396adfe5bb3a2dbdca0e22ea724776d2ce8a
|
refs/heads/master
| 2021-01-23T08:04:35.318303
| 2012-05-30T18:05:25
| 2012-05-30T18:05:25
| 4,483,121
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,049
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst
package net.minecraft.src;
public class StructureBoundingBox
{
public int field_35753_a;
public int field_35751_b;
public int field_35752_c;
public int field_35749_d;
public int field_35750_e;
public int field_35748_f;
public StructureBoundingBox()
{
}
public static StructureBoundingBox func_35741_a()
{
return new StructureBoundingBox(0x7fffffff, 0x7fffffff, 0x7fffffff, 0x80000000, 0x80000000, 0x80000000);
}
public static StructureBoundingBox func_35747_a(int p_35747_0_, int p_35747_1_, int p_35747_2_, int p_35747_3_, int p_35747_4_, int p_35747_5_, int p_35747_6_, int p_35747_7_,
int p_35747_8_, int p_35747_9_)
{
switch(p_35747_9_)
{
default:
return new StructureBoundingBox(p_35747_0_ + p_35747_3_, p_35747_1_ + p_35747_4_, p_35747_2_ + p_35747_5_, ((p_35747_0_ + p_35747_6_) - 1) + p_35747_3_, ((p_35747_1_ + p_35747_7_) - 1) + p_35747_4_, ((p_35747_2_ + p_35747_8_) - 1) + p_35747_5_);
case 2: // '\002'
return new StructureBoundingBox(p_35747_0_ + p_35747_3_, p_35747_1_ + p_35747_4_, (p_35747_2_ - p_35747_8_) + 1 + p_35747_5_, ((p_35747_0_ + p_35747_6_) - 1) + p_35747_3_, ((p_35747_1_ + p_35747_7_) - 1) + p_35747_4_, p_35747_2_ + p_35747_5_);
case 0: // '\0'
return new StructureBoundingBox(p_35747_0_ + p_35747_3_, p_35747_1_ + p_35747_4_, p_35747_2_ + p_35747_5_, ((p_35747_0_ + p_35747_6_) - 1) + p_35747_3_, ((p_35747_1_ + p_35747_7_) - 1) + p_35747_4_, ((p_35747_2_ + p_35747_8_) - 1) + p_35747_5_);
case 1: // '\001'
return new StructureBoundingBox((p_35747_0_ - p_35747_8_) + 1 + p_35747_5_, p_35747_1_ + p_35747_4_, p_35747_2_ + p_35747_3_, p_35747_0_ + p_35747_5_, ((p_35747_1_ + p_35747_7_) - 1) + p_35747_4_, ((p_35747_2_ + p_35747_6_) - 1) + p_35747_3_);
case 3: // '\003'
return new StructureBoundingBox(p_35747_0_ + p_35747_5_, p_35747_1_ + p_35747_4_, p_35747_2_ + p_35747_3_, ((p_35747_0_ + p_35747_8_) - 1) + p_35747_5_, ((p_35747_1_ + p_35747_7_) - 1) + p_35747_4_, ((p_35747_2_ + p_35747_6_) - 1) + p_35747_3_);
}
}
public StructureBoundingBox(StructureBoundingBox p_i544_1_)
{
field_35753_a = p_i544_1_.field_35753_a;
field_35751_b = p_i544_1_.field_35751_b;
field_35752_c = p_i544_1_.field_35752_c;
field_35749_d = p_i544_1_.field_35749_d;
field_35750_e = p_i544_1_.field_35750_e;
field_35748_f = p_i544_1_.field_35748_f;
}
public StructureBoundingBox(int p_i545_1_, int p_i545_2_, int p_i545_3_, int p_i545_4_, int p_i545_5_, int p_i545_6_)
{
field_35753_a = p_i545_1_;
field_35751_b = p_i545_2_;
field_35752_c = p_i545_3_;
field_35749_d = p_i545_4_;
field_35750_e = p_i545_5_;
field_35748_f = p_i545_6_;
}
public StructureBoundingBox(int p_i546_1_, int p_i546_2_, int p_i546_3_, int p_i546_4_)
{
field_35753_a = p_i546_1_;
field_35752_c = p_i546_2_;
field_35749_d = p_i546_3_;
field_35748_f = p_i546_4_;
field_35751_b = 1;
field_35750_e = 512;
}
public boolean func_35740_a(StructureBoundingBox p_35740_1_)
{
return field_35749_d >= p_35740_1_.field_35753_a && field_35753_a <= p_35740_1_.field_35749_d && field_35748_f >= p_35740_1_.field_35752_c && field_35752_c <= p_35740_1_.field_35748_f && field_35750_e >= p_35740_1_.field_35751_b && field_35751_b <= p_35740_1_.field_35750_e;
}
public boolean func_35746_a(int p_35746_1_, int p_35746_2_, int p_35746_3_, int p_35746_4_)
{
return field_35749_d >= p_35746_1_ && field_35753_a <= p_35746_3_ && field_35748_f >= p_35746_2_ && field_35752_c <= p_35746_4_;
}
public void func_35738_b(StructureBoundingBox p_35738_1_)
{
field_35753_a = Math.min(field_35753_a, p_35738_1_.field_35753_a);
field_35751_b = Math.min(field_35751_b, p_35738_1_.field_35751_b);
field_35752_c = Math.min(field_35752_c, p_35738_1_.field_35752_c);
field_35749_d = Math.max(field_35749_d, p_35738_1_.field_35749_d);
field_35750_e = Math.max(field_35750_e, p_35738_1_.field_35750_e);
field_35748_f = Math.max(field_35748_f, p_35738_1_.field_35748_f);
}
public void func_35745_a(int p_35745_1_, int p_35745_2_, int p_35745_3_)
{
field_35753_a += p_35745_1_;
field_35751_b += p_35745_2_;
field_35752_c += p_35745_3_;
field_35749_d += p_35745_1_;
field_35750_e += p_35745_2_;
field_35748_f += p_35745_3_;
}
public boolean func_35742_b(int p_35742_1_, int p_35742_2_, int p_35742_3_)
{
return p_35742_1_ >= field_35753_a && p_35742_1_ <= field_35749_d && p_35742_3_ >= field_35752_c && p_35742_3_ <= field_35748_f && p_35742_2_ >= field_35751_b && p_35742_2_ <= field_35750_e;
}
public int func_35744_b()
{
return (field_35749_d - field_35753_a) + 1;
}
public int func_35743_c()
{
return (field_35750_e - field_35751_b) + 1;
}
public int func_35739_d()
{
return (field_35748_f - field_35752_c) + 1;
}
public int func_40597_e()
{
return field_35753_a + ((field_35749_d - field_35753_a) + 1) / 2;
}
public int func_40596_f()
{
return field_35751_b + ((field_35750_e - field_35751_b) + 1) / 2;
}
public int func_40598_g()
{
return field_35752_c + ((field_35748_f - field_35752_c) + 1) / 2;
}
public String toString()
{
return (new StringBuilder()).append("(").append(field_35753_a).append(", ").append(field_35751_b).append(", ").append(field_35752_c).append("; ").append(field_35749_d).append(", ").append(field_35750_e).append(", ").append(field_35748_f).append(")").toString();
}
}
|
[
"dicks@negro.com"
] |
dicks@negro.com
|
147ca3ceaffeab180f3c97fd2f1f876ecabcc6de
|
f5d5b368c1ae220b59cfb26bc26526b494c54d0e
|
/SSCEXAMRESULT/src/com/ssc/bd2014/result/exam/Share.java
|
5f5a984a493d1be676144cf046011f364181cd45
|
[] |
no_license
|
kishordgupta/2012_bkup
|
3778c26082697b1cf223e27822d8efe90b35fc76
|
53ef4014fb3e11158c3f9242cb1f829e02e3ef69
|
refs/heads/master
| 2021-01-10T08:25:57.122415
| 2020-10-16T12:06:52
| 2020-10-16T12:06:52
| 47,512,520
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,119
|
java
|
package com.ssc.bd2014.result.exam;
import java.io.File;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
public class Share {
public static void share(File wish, Context context)
{
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
Uri screenshotUri = Uri.parse("file://" + wish.getAbsolutePath());
sharingIntent.setType("image/jpg");
sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
context.startActivity(Intent.createChooser(sharingIntent, "Share image using"));
}
public static void share(File wish, Context c, String text) {
// TODO Auto-generated method stub
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
Uri screenshotUri = Uri.parse("file://" + wish.getAbsolutePath());
text=text.replace("%22", "");
sharingIntent.setType("image/jpg");
sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
sharingIntent.putExtra(Intent.EXTRA_TEXT," .........#despicableapps");
c.startActivity(Intent.createChooser(sharingIntent, "Share image using"));
}
}
|
[
"kdgupta87@gmail.com"
] |
kdgupta87@gmail.com
|
0db6ddaee00f635aef5ee52ebbb9cd996617f73f
|
bf399f3093df7858c02a8fa1928fff64e95c4ec7
|
/reservation-webapp/src/main/java/ru/demi/webapp/reservation/ReservationWebappApplication.java
|
0f29cb04cb666b8745daa18fe3f87175294176f1
|
[] |
no_license
|
dmitry-izmerov/spring-cloud-test-app
|
f3321593aae0bf36af80efcb93de97d431b9443f
|
e6c675cf8a2d775c07755ef045d18d777449ea6f
|
refs/heads/master
| 2020-03-19T04:59:19.020332
| 2018-06-03T16:01:02
| 2018-06-03T16:01:02
| 135,888,614
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 519
|
java
|
package ru.demi.webapp.reservation;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication
@EnableFeignClients
@EnableDiscoveryClient
public class ReservationWebappApplication {
public static void main(String[] args) {
SpringApplication.run(ReservationWebappApplication.class, args);
}
}
|
[
"idd90i@gmail.com"
] |
idd90i@gmail.com
|
6fb68a23a26d2bec7df1b5a6b507c4bdff30987a
|
12b14b30fcaf3da3f6e9dc3cb3e717346a35870a
|
/examples/commons-math3/mutations/mutants-BicubicSplineInterpolator/54/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolator.java
|
4b2162516ac202a72fd6fdf40cf6dd56bbf8a670
|
[
"BSD-3-Clause",
"Minpack",
"Apache-2.0"
] |
permissive
|
SmartTests/smartTest
|
b1de326998857e715dcd5075ee322482e4b34fb6
|
b30e8ec7d571e83e9f38cd003476a6842c06ef39
|
refs/heads/main
| 2023-01-03T01:27:05.262904
| 2020-10-27T20:24:48
| 2020-10-27T20:24:48
| 305,502,060
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,773
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NoDataException;
import org.apache.commons.math3.exception.NonMonotonicSequenceException;
import org.apache.commons.math3.exception.NumberIsTooSmallException;
import org.apache.commons.math3.util.MathArrays;
/**
* Generates a bicubic interpolating function.
*
* @version $Id$
* @since 2.2
*/
public class BicubicSplineInterpolator
implements BivariateGridInterpolator {
/**
* {@inheritDoc}
*/
public BicubicSplineInterpolatingFunction interpolate(final double[] xval,
final double[] yval,
final double[][] fval)
throws NoDataException, DimensionMismatchException,
NonMonotonicSequenceException, NumberIsTooSmallException {
if (xval.length == 0 || yval.length == 0 || fval.length == 0) {
throw new NoDataException();
}
if (xval.length != fval.length) {
throw new DimensionMismatchException(xval.length, fval.length);
}
MathArrays.checkOrder(xval);
MathArrays.checkOrder(yval);
final int xLen = xval.length;
final int yLen = yval.length;
// Samples (first index is y-coordinate, i.e. subarray variable is x)
// 0 <= i < xval.length
// 0 <= j < yval.length
// fX[j][i] = f(xval[i], yval[j])
final double[][] fX = new double[yLen][xLen];
for (int i = 0; i < xLen; i++) {
if (fval[i].length != yLen) {
throw new DimensionMismatchException(fval[i].length, yLen);
}
for (int j = 0; j < yLen; j++) {
fX[j][i] = fval[i][j];
}
}
final SplineInterpolator spInterpolator = new SplineInterpolator();
// For each line y[j] (0 <= j < yLen), construct a 1D spline with
// respect to variable x
final PolynomialSplineFunction[] ySplineX = new PolynomialSplineFunction[yLen];
for (int j = 0; j < yLen; j++) {
ySplineX[j] = spInterpolator.interpolate(xval, fX[j]);
}
// For each line x[i] (0 <= i < xLen), construct a 1D spline with
// respect to variable y generated by array fY_1[i]
final PolynomialSplineFunction[] xSplineY = null;
for (int i = 0; i < xLen; i++) {
xSplineY[i] = spInterpolator.interpolate(yval, fval[i]);
}
// Partial derivatives with respect to x at the grid knots
final double[][] dFdX = new double[xLen][yLen];
for (int j = 0; j < yLen; j++) {
final UnivariateFunction f = ySplineX[j].derivative();
for (int i = 0; i < xLen; i++) {
dFdX[i][j] = f.value(xval[i]);
}
}
// Partial derivatives with respect to y at the grid knots
final double[][] dFdY = new double[xLen][yLen];
for (int i = 0; i < xLen; i++) {
final UnivariateFunction f = xSplineY[i].derivative();
for (int j = 0; j < yLen; j++) {
dFdY[i][j] = f.value(yval[j]);
}
}
// Cross partial derivatives
final double[][] d2FdXdY = new double[xLen][yLen];
for (int i = 0; i < xLen ; i++) {
final int nI = nextIndex(i, xLen);
final int pI = previousIndex(i);
for (int j = 0; j < yLen; j++) {
final int nJ = nextIndex(j, yLen);
final int pJ = previousIndex(j);
d2FdXdY[i][j] = (fval[nI][nJ] - fval[nI][pJ] -
fval[pI][nJ] + fval[pI][pJ]) /
((xval[nI] - xval[pI]) * (yval[nJ] - yval[pJ]));
}
}
// Create the interpolating splines
return new BicubicSplineInterpolatingFunction(xval, yval, fval,
dFdX, dFdY, d2FdXdY);
}
/**
* Computes the next index of an array, clipping if necessary.
* It is assumed (but not checked) that {@code i >= 0}.
*
* @param i Index.
* @param max Upper limit of the array.
* @return the next index.
*/
private int nextIndex(int i, int max) {
final int index = i + 1;
return index < max ? index : index - 1;
}
/**
* Computes the previous index of an array, clipping if necessary.
* It is assumed (but not checked) that {@code i} is smaller than the size
* of the array.
*
* @param i Index.
* @return the previous index.
*/
private int previousIndex(int i) {
final int index = i - 1;
return index >= 0 ? index : 0;
}
}
|
[
"kesina@Kesinas-MBP.lan"
] |
kesina@Kesinas-MBP.lan
|
0919d522022614885795896eecf36853d76a9aeb
|
c577f5380b4799b4db54722749cc33f9346eacc1
|
/BugSwarm/Azure-azure-sdk-for-java-134840154/buggy_files/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskDependencies.java
|
c0ed15eb9c71ba09415fb369e2a9186a40119615
|
[] |
no_license
|
tdurieux/BugSwarm-dissection
|
55db683fd95f071ff818f9ca5c7e79013744b27b
|
ee6b57cfef2119523a083e82d902a6024e0d995a
|
refs/heads/master
| 2020-04-30T17:11:52.050337
| 2019-05-09T13:42:03
| 2019-05-09T13:42:03
| 176,972,414
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,684
|
java
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.batch.protocol.models;
import java.util.List;
/**
* Specifies any dependencies of a task. Any task that is explicitly specified
* or within a dependency range must complete before the dependant task will
* be scheduled.
*/
public class TaskDependencies {
/**
* The list of task ids that must complete before this task can be
* scheduled.
*/
private List<String> taskIds;
/**
* The list of task ranges that must complete before this task can be
* scheduled.
*/
private List<TaskIdRange> taskIdRanges;
/**
* Get the taskIds value.
*
* @return the taskIds value
*/
public List<String> taskIds() {
return this.taskIds;
}
/**
* Set the taskIds value.
*
* @param taskIds the taskIds value to set
* @return the TaskDependencies object itself.
*/
public TaskDependencies withTaskIds(List<String> taskIds) {
this.taskIds = taskIds;
return this;
}
/**
* Get the taskIdRanges value.
*
* @return the taskIdRanges value
*/
public List<TaskIdRange> taskIdRanges() {
return this.taskIdRanges;
}
/**
* Set the taskIdRanges value.
*
* @param taskIdRanges the taskIdRanges value to set
* @return the TaskDependencies object itself.
*/
public TaskDependencies withTaskIdRanges(List<TaskIdRange> taskIdRanges) {
this.taskIdRanges = taskIdRanges;
return this;
}
}
|
[
"durieuxthomas@hotmail.com"
] |
durieuxthomas@hotmail.com
|
fd45e4ac587452aba5511e3652ff4e8655692410
|
54b9e132bbb6f8baf850846925fd7126c5022772
|
/5.implementation/redsun-service/src/main/java/com/redsun/service/controller/ResourcesController.java
|
f84957b7224aa4539c6a1490cc859106f8ad3a17
|
[] |
no_license
|
treviets/BIM
|
40a10afdf6ff57939ac1c2105e23c0330b0a8fdc
|
ab6c85dd90ec4d8b6b89f79b07325aa54bafa09f
|
refs/heads/master
| 2020-03-18T18:51:45.697405
| 2018-05-28T06:36:25
| 2018-05-28T06:36:25
| 135,119,151
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,269
|
java
|
package com.redsun.service.controller;
import java.io.File;
import java.io.IOException;
import java.text.ParseException;
import javax.servlet.ServletContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.PathVariable;
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import com.redsun.service.entities.Resources;
import com.redsun.service.entities.Result;
import com.redsun.service.service.ResourcesService;
import com.redsun.service.utils.FileUtil;
import com.redsun.service.utils.RedSunConstants;
import com.redsun.service.validation.ResourcesValidator;
/**
* Resources Controller
*/
@RestController
@RequestMapping("resourcesservice")
public class ResourcesController {
@Autowired
private ServletContext servletContext;
@Autowired
private Environment env;
// Service.
@Autowired
ResourcesService resourcesService;
// InitBinder.
@InitBinder
protected void InitBinder(WebDataBinder binder) {
binder.setValidator(new ResourcesValidator());
}
// Insert.
@RequestMapping(value = "add", method = { RequestMethod.POST })
public Object insert(@Validated @RequestBody Resources resources) {
return resourcesService.insert(resources);
}
// Update.
@RequestMapping(value = "update/{id}", method = { RequestMethod.PUT })
public Object update(@PathVariable("id") Integer id, @RequestBody Resources resources) {
return resourcesService.update(resources);
}
// Delete.
@RequestMapping(value = "delete/{id}", method = { RequestMethod.DELETE })
public Object delete(@PathVariable("id") Integer id) {
return resourcesService.delete(id);
}
// Get by Id.
@RequestMapping(value = "getbyid/{clientId}/{id}", method = { RequestMethod.GET })
public Object getById(@PathVariable("clientId") final Integer clientId, @PathVariable("id") final Integer id) {
return resourcesService.getById(clientId, id);
}
// List for page and filter.
@RequestMapping(value = "list/page/{clientId}/{itemsPerPage}/{pageNo}", method = { RequestMethod.GET })
public Object listResourcesForPageAndFilter(@PathVariable("clientId") int clientId,
@PathVariable("itemsPerPage") int itemsPerPage, @PathVariable("pageNo") int pageNo) {
return resourcesService.listResourcesForPageAndFilter(clientId, itemsPerPage, pageNo);
}
// Get all.
@RequestMapping(value = "list/{clientId}", method = { RequestMethod.GET })
public Object getAll(@PathVariable("clientId") Integer clientId) {
return resourcesService.listAll(clientId);
}
// Get all.
@RequestMapping(value = "list-all-type/{clientId}", method = { RequestMethod.GET })
public Object getAllWithAllType(@PathVariable("clientId") Integer clientId) {
return resourcesService.listAllForAllType(clientId);
}
// Get all.
@RequestMapping(value = "deleted/list/{clientId}", method = { RequestMethod.GET })
public Object getAllDeletedResource(@PathVariable("clientId") Integer clientId) {
return resourcesService.listAll(clientId, RedSunConstants.DELETED_FLAG);
}
// restore resource
@RequestMapping(value = "restore/{resourceId}/{clientId}", method = { RequestMethod.GET })
public Object restoreResource(@PathVariable("resourceId") Integer resourceId, @PathVariable("clientId") Integer clientId) {
return resourcesService.restore(resourceId, clientId);
}
// filter by members were exists in project_resources
@RequestMapping(value = "filtermember/{projectId}/{clientId}", method = { RequestMethod.GET })
public Object filterMember(@PathVariable("projectId") final Integer projectId,
@PathVariable("clientId") final Integer clientId) {
return resourcesService.filterMember(projectId, clientId);
}
// count
@RequestMapping(value = "count/{clientId}", method = { RequestMethod.GET })
public Object countResources(@PathVariable("clientId") final Integer clientId) {
Result count = resourcesService.count(clientId);
return count;
}
// List for exterior
@RequestMapping(value = "exterior/page/{clientId}/{itemsPerPage}/{pageNo}", method = { RequestMethod.GET })
public Object listResourcesExterior(@PathVariable("clientId") int clientId,
@PathVariable("itemsPerPage") int itemsPerPage, @PathVariable("pageNo") int pageNo) {
return resourcesService.listResourcesExterior(clientId, itemsPerPage, pageNo);
}
// Import resource
@RequestMapping(value = "import-resource", method = RequestMethod.POST)
public Object importResource(@RequestParam("filePath") final String filePath,
@RequestParam("projectId") final Integer projectId, @RequestParam("clientId") final Integer clientId,
@RequestParam("file") final MultipartFile file) throws IOException, ParseException {
// Save file to local server.
final String absolutePath = servletContext.getRealPath("/") + env.getProperty(filePath)
+ (projectId == null ? "" : (projectId.toString() + File.separatorChar));
FileUtil.saveFileToLocal(absolutePath, file);
// Call service.
return resourcesService.importResources(projectId, clientId, file);
}
// filter title = worker
@RequestMapping(value = "filtertitle/{clientId}", method = { RequestMethod.GET })
public Object filterWorker(@PathVariable("clientId") final Integer clientId) {
return resourcesService.filterTitle(clientId);
}
// get all to check exist
@RequestMapping(value = "checkexist/{clientId}/{id}", method = { RequestMethod.GET })
public Object getToExist(@PathVariable("clientId") final Integer clientId, @PathVariable("id") final Integer id) {
return resourcesService.getToExist(clientId, id);
}
// get by project id and code
@RequestMapping(value = "bpmn/{code}", method = { RequestMethod.GET })
public Object getForBPMN(@PathVariable("code") final String code) {
return resourcesService.getForBPMN(code);
}
}
|
[
"caohongvu@gmail.com"
] |
caohongvu@gmail.com
|
a1efc318c1b3051f379699a373673b9cffbfca4b
|
4aa90348abcb2119011728dc067afd501f275374
|
/app/src/main/java/com/tencent/mm/plugin/game/c/k.java
|
d71a5e7443791c4ec5965add28410978fae52630
|
[] |
no_license
|
jambestwick/HackWechat
|
0d4ceb2d79ccddb45004ca667e9a6a984a80f0f6
|
6a34899c8bfd50d19e5a5ec36a58218598172a6b
|
refs/heads/master
| 2022-01-27T12:48:43.446804
| 2021-12-29T10:36:30
| 2021-12-29T10:36:30
| 249,366,791
| 0
| 0
| null | 2020-03-23T07:48:32
| 2020-03-23T07:48:32
| null |
UTF-8
|
Java
| false
| false
| 3,834
|
java
|
package com.tencent.mm.plugin.game.c;
import com.tencent.mm.bq.a;
import java.util.LinkedList;
public final class k extends a {
public String nfK;
public String nfO;
public int nfP;
public a nfQ;
public du nfR;
public int nfS;
protected final int a(int i, Object... objArr) {
if (i == 0) {
e.a.a.c.a aVar = (e.a.a.c.a) objArr[0];
if (this.nfO != null) {
aVar.g(1, this.nfO);
}
aVar.fU(2, this.nfP);
if (this.nfQ != null) {
aVar.fW(3, this.nfQ.bke());
this.nfQ.a(aVar);
}
if (this.nfR != null) {
aVar.fW(4, this.nfR.bke());
this.nfR.a(aVar);
}
aVar.fU(5, this.nfS);
if (this.nfK == null) {
return 0;
}
aVar.g(6, this.nfK);
return 0;
} else if (i == 1) {
if (this.nfO != null) {
r0 = e.a.a.b.b.a.h(1, this.nfO) + 0;
} else {
r0 = 0;
}
r0 += e.a.a.a.fR(2, this.nfP);
if (this.nfQ != null) {
r0 += e.a.a.a.fT(3, this.nfQ.bke());
}
if (this.nfR != null) {
r0 += e.a.a.a.fT(4, this.nfR.bke());
}
r0 += e.a.a.a.fR(5, this.nfS);
if (this.nfK != null) {
r0 += e.a.a.b.b.a.h(6, this.nfK);
}
return r0;
} else if (i == 2) {
e.a.a.a.a aVar2 = new e.a.a.a.a((byte[]) objArr[0], unknownTagHandler);
for (r0 = a.a(aVar2); r0 > 0; r0 = a.a(aVar2)) {
if (!super.a(aVar2, this, r0)) {
aVar2.cJE();
}
}
return 0;
} else if (i != 3) {
return -1;
} else {
e.a.a.a.a aVar3 = (e.a.a.a.a) objArr[0];
k kVar = (k) objArr[1];
int intValue = ((Integer) objArr[2]).intValue();
LinkedList Jl;
int size;
byte[] bArr;
a aVar4;
e.a.a.a.a aVar5;
boolean z;
switch (intValue) {
case 1:
kVar.nfO = aVar3.Avy.readString();
return 0;
case 2:
kVar.nfP = aVar3.Avy.ry();
return 0;
case 3:
Jl = aVar3.Jl(intValue);
size = Jl.size();
for (intValue = 0; intValue < size; intValue++) {
bArr = (byte[]) Jl.get(intValue);
aVar4 = new a();
aVar5 = new e.a.a.a.a(bArr, unknownTagHandler);
for (z = true; z; z = aVar4.a(aVar5, aVar4, a.a(aVar5))) {
}
kVar.nfQ = aVar4;
}
return 0;
case 4:
Jl = aVar3.Jl(intValue);
size = Jl.size();
for (intValue = 0; intValue < size; intValue++) {
bArr = (byte[]) Jl.get(intValue);
aVar4 = new du();
aVar5 = new e.a.a.a.a(bArr, unknownTagHandler);
for (z = true; z; z = aVar4.a(aVar5, aVar4, a.a(aVar5))) {
}
kVar.nfR = aVar4;
}
return 0;
case 5:
kVar.nfS = aVar3.Avy.ry();
return 0;
case 6:
kVar.nfK = aVar3.Avy.readString();
return 0;
default:
return -1;
}
}
}
}
|
[
"malin.myemail@163.com"
] |
malin.myemail@163.com
|
526e5dd419255571da58c8e619ef99ec6979cd59
|
9f367f08c05cc55ca0ab9e0881c496887a1d60a1
|
/Build 6xx refactor/trunk/src/Class1_Sub2.java
|
6df47677ca6af192e3dd1d03dd8a07aa094b365f
|
[] |
no_license
|
Chryonic/clientscript-research
|
89edc28af2e39f7803164862325456fd04d77461
|
74b494a3453ce9299b692063c1930e124c8d3582
|
refs/heads/master
| 2021-01-10T18:20:35.090862
| 2011-08-30T11:58:45
| 2011-08-30T11:58:45
| 48,530,214
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,575
|
java
|
/* Class1_Sub2 - Decompiled by JODE
* Visit http://jode.sourceforge.net/
*/
import jaclib.memory.Buffer;
import jaclib.memory.Source;
final class Class1_Sub2 extends Class1 implements Interface4_Impl2 {
private byte stride;
public final boolean method51(int argument_0_, int argument_1_, int argument_2_, Source argument_3_) {
stride = (byte) argument_1_;
if (argument_2_ != -959)
return true;
super.setData(argument_0_, argument_3_);
return true;
}
public final boolean method53(int argument_4_) {
if (argument_4_ != 10925)
method50(true, false);
return super.method174(false, (this.toolkit.aMapBuffer__6470));
}
public final boolean method52(int argument_16_, int argument_17_, int argument_18_) {
stride = (byte) argument_17_;
super.setSize(argument_16_, (byte) -73);
if (argument_18_ != -10760)
return true;
return true;
}
final int getStride() {
return stride;
}
public final Buffer method50(boolean argument_23_, boolean argument_24_) {
return super.method173((this.toolkit.aMapBuffer__6470), argument_24_);
}
public final void method44(int check_) {
super.method44(check_);
}
public final int getSize(byte argument_36_) {
return super.getSize((byte) 100);
}
Class1_Sub2(GraphicsToolkit_Sub2_Sub1 argument_41_, boolean argument_42_) {
super(argument_41_, 34962, argument_42_);
}
}
|
[
"peterbosc@gmail.com"
] |
peterbosc@gmail.com
|
776021800bd1462e820669be89269a52da813f09
|
b4493419485490a99785ffb5ded9e0806a533426
|
/archive/core-platform/src/com/arsdigita/persistence/metadata/SmallIntBigInteger.java
|
9efd6bdcdacba20414add2e8dacfef4cd62153ce
|
[] |
no_license
|
BackupTheBerlios/myrian-svn
|
11b6704a34689251c835cc1d6b21295c4312e2e5
|
65c1acb69e37f146bfece618b8812b0760bdcae5
|
refs/heads/master
| 2021-01-01T06:44:46.948808
| 2004-10-19T20:03:43
| 2004-10-19T20:03:43
| 40,823,082
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,819
|
java
|
/*
* Copyright (C) 2001-2004 Red Hat Inc. All Rights Reserved.
*
* 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
*
*/
package com.arsdigita.persistence.metadata;
import java.math.BigInteger;
/**
* SmallIntBigInteger
*
* This is an implementation of BigInteger for values <= 32 bits. This is
* because Integer.toString(int) is signifigantly faster than BigInteger.toSring().
* This class is intended to be used within MetadataRoot when instantiating
* values from the database.
*
* @version $Revision: #9 $ $Date: 2004/08/16 $
*
*/
class SmallIntBigInteger extends BigInteger {
public final static String versionId = "$Id: //core-platform/dev/src/com/arsdigita/persistence/metadata/SmallIntBigInteger.java#9 $ by $Author: dennis $, $DateTime: 2004/08/16 18:10:38 $";
SmallIntBigInteger(byte[] val) {
super(val);
validate();
}
private void validate() {
if( bitLength() >= 32 ) {
throw new IllegalArgumentException("Value " + super.toString() + " too large!");
}
}
public String toString() {
return Integer.toString(intValue());
}
}
|
[
"dennis@0c4ed275-74e5-0310-b0c6-b6ea092b5e81"
] |
dennis@0c4ed275-74e5-0310-b0c6-b6ea092b5e81
|
81d30bef0c9ed32f61967220879c4e692ecbad56
|
a9d2f0a89add0d0cdd338b8c5875ad4772f66739
|
/src/com/artem/logparser/query/EventQuery.java
|
4e9107f38fb39ca6963207c8577fb8b3e585f769
|
[] |
no_license
|
Artemsetko/Log_Parser
|
40a23101ce74bd0b73c2f5a35c592f4c3a0b5239
|
617ef116d60cb2b4fc128cb44e4490f719578c28
|
refs/heads/master
| 2020-03-22T20:12:12.199865
| 2018-07-11T13:45:59
| 2018-07-11T13:45:59
| 140,580,851
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 877
|
java
|
package com.javarush.task.task39.task3913.query;
import com.artem.logparser.Event;
import java.util.Date;
import java.util.Map;
import java.util.Set;
public interface EventQuery {
int getNumberOfAllEvents(Date after, Date before);
Set<Event> getAllEvents(Date after, Date before);
Set<Event> getEventsForIP(String ip, Date after, Date before);
Set<Event> getEventsForUser(String user, Date after, Date before);
Set<Event> getFailedEvents(Date after, Date before);
Set<Event> getErrorEvents(Date after, Date before);
int getNumberOfAttemptToSolveTask(int task, Date after, Date before);
int getNumberOfSuccessfulAttemptToSolveTask(int task, Date after, Date before);
Map<Integer, Integer> getAllSolvedTasksAndTheirNumber(Date after, Date before);
Map<Integer, Integer> getAllDoneTasksAndTheirNumber(Date after, Date before);
}
|
[
"setkoartem@gmail.com"
] |
setkoartem@gmail.com
|
fbb68bbb2f75c49e201438d86fd58195026665c3
|
08583dac77dc4b12a4d19a36548de55e2ccad4d4
|
/Projects/MagentaFinal/src/control_draft/DeleteRestoDashController.java
|
3432b3140671092fcfaceaf2e7285c46f4e20af0
|
[] |
no_license
|
ankitsharma37/java_workspace
|
3ac22990811b4545824ead54e7a8875402f6e106
|
e0f9528e6a780b8a28ee41a9aa3e0d9e5c63e984
|
refs/heads/master
| 2022-04-01T13:09:09.689696
| 2020-01-26T01:15:37
| 2020-01-26T01:15:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,322
|
java
|
package control_draft;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.DefaultListModel;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import model_draft.DTO;
import model_draft.RestaurantBean;
import model_draft.RestaurauntModel;
import view_draft.AdminDash;
import view_draft.RestaurantDeleteView;
import view_draft.RestaurantEditView;
public class DeleteRestoDashController implements ActionListener{
public AdminDash dashboardView;
public RestaurauntModel model;
public RestaurantDeleteView restoDelView;
public DeleteRestoDashController(RestaurauntModel model, AdminDash dashboardView, RestaurantDeleteView restoDelView) {
this.restoDelView = restoDelView;
this.model = model;
this.dashboardView = dashboardView;
dashboardView.getBtnDelete().addActionListener(this);
}
@Override
public void actionPerformed(ActionEvent e) {
dashboardView.dispose(); //dashboardView.setVisible(false);
restoDelView.setVisible(true);
if(DTO.getInstance().getRestaurauntList().size() > 0) {
DefaultListModel<RestaurantBean> model = new DefaultListModel<>();
for(int i = 0; i < DTO.getInstance().getRestaurauntList().size(); i++) {
RestaurantBean item = DTO.getInstance().getRestaurauntList().get(i);
model.addElement(item);
}
restoDelView.getList().setModel(model);
}
//adding list listener
restoDelView.getList().addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent arg0) {
if (!arg0.getValueIsAdjusting()) {
RestaurantBean rb = (RestaurantBean) restoDelView.getList().getSelectedValue();
if(rb != null) {
restoDelView.getTxtfield_name().setText(rb.getRestoName());
restoDelView.getTxtfield_address().setText(rb.getRestoAddress());
restoDelView.getTxtfield_telephone().setText(rb.getPhoneNum());
restoDelView.getList_1().setModel(rb.getDeliveryArea());
//TODO: Populate comboxes
restoDelView.getComboBox().setSelectedItem("" + rb.getSundayOpenHour());
restoDelView.getComboBox_1().setSelectedItem("" + rb.getSundayOpenMinute());
restoDelView.getComboBox_2().setSelectedItem("" + rb.getSundayCloseHour());
restoDelView.getComboBox_3().setSelectedItem("" + rb.getSundayCloseMinute());
restoDelView.getComboBox_4().setSelectedItem("" + rb.getMondayOpenHour());
restoDelView.getComboBox_5().setSelectedItem("" + rb.getMondayOpenMinute());
restoDelView.getComboBox_6().setSelectedItem("" + rb.getMondayCloseHour());
restoDelView.getComboBox_7().setSelectedItem("" + rb.getMondayCloseMinute());
restoDelView.getComboBox_8().setSelectedItem("" + rb.getTuesdayOpenHour());
restoDelView.getComboBox_9().setSelectedItem("" + rb.getTuesdayOpenMinute());
restoDelView.getComboBox_10().setSelectedItem("" + rb.getTuesdayCloseHour());
restoDelView.getComboBox_11().setSelectedItem("" + rb.getTuesdayCloseMinute());
restoDelView.getComboBox_12().setSelectedItem("" + rb.getWednesdayOpenHour());
restoDelView.getComboBox_13().setSelectedItem("" + rb.getWednesdayOpenMinute());
restoDelView.getComboBox_14().setSelectedItem("" + rb.getWednesdayCloseHour());
restoDelView.getComboBox_15().setSelectedItem("" + rb.getWednesdayCloseMinute());
restoDelView.getComboBox_16().setSelectedItem("" + rb.getThursdayOpenHour());
restoDelView.getComboBox_17().setSelectedItem("" + rb.getThursdayOpenMinute());
restoDelView.getComboBox_18().setSelectedItem("" + rb.getThursdayCloseHour());
restoDelView.getComboBox_19().setSelectedItem("" + rb.getThursdayCloseMinute());
restoDelView.getComboBox_20().setSelectedItem("" + rb.getFridayOpenHour());
restoDelView.getComboBox_21().setSelectedItem("" + rb.getFridayOpenMinute());
restoDelView.getComboBox_22().setSelectedItem("" + rb.getFridayCloseHour());
restoDelView.getComboBox_23().setSelectedItem("" + rb.getFridayCloseMinute());
restoDelView.getComboBox_24().setSelectedItem("" + rb.getSaturdayOpenHour());
restoDelView.getComboBox_25().setSelectedItem("" + rb.getSaturdayOpenMinute());
restoDelView.getComboBox_26().setSelectedItem("" + rb.getSaturdayCloseHour());
restoDelView.getComboBox_27().setSelectedItem("" + rb.getSaturdayCloseMinute());
}
}
}
});
}
}
|
[
"george.nikou05@gmail.com"
] |
george.nikou05@gmail.com
|
22f01c39e525c8785febe8e1a06648721ba285da
|
13a248a094910d308dcbe772e92229ed2ee682b6
|
/src/main/java/trees/trees_iterative/CousinsOfNodeSum.java
|
3365553f7a40571197ffc6a6d3cc4bafaa70bf2e
|
[] |
no_license
|
gadzikk/algorithms
|
cca18ab79b8e1e766f7d6fc9b9097db2077cb93b
|
cb6607ad19b43357c225e9531d3ebc115ef1de3a
|
refs/heads/master
| 2022-12-07T16:22:36.958374
| 2020-08-23T21:35:56
| 2020-08-23T21:35:56
| 273,081,100
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,299
|
java
|
package trees.trees_iterative;
import zobjects.Node;
import java.util.LinkedList;
import java.util.Queue;
/**
* Created by gadzik on 06.08.20.
*/
public class CousinsOfNodeSum {
// https://www.geeksforgeeks.org/sum-of-cousins-of-a-given-node-in-a-binary-tree/
static Node newNode(int item) {
Node temp = new Node();
temp.data = item;
temp.left = temp.right = null;
return temp;
}
static int findCousinSum(Node root, int key) {
if (root == null) {
return -1;
}
if (root.data == key) {
return -1;
}
int currSum = 0;
int size;
Queue<Node> q = new LinkedList<Node>();
q.add(root);
boolean found = false;
while (q.size() > 0) {
if (found == true) {
return currSum;
}
size = q.size();
currSum = 0;
while (size > 0) {
root = q.peek();
q.remove();
if ((root.left != null && root.left.data == key) || (root.right != null && root.right.data == key)) {
found = true;
} else {
if (root.left != null) {
currSum += root.left.data;
q.add(root.left);
}
if (root.right != null) {
currSum += root.right.data;
q.add(root.right);
}
}
size--;
}
}
return -1;
}
public static void main(String args[]) {
/*
1
/ \
3 7
/ \ / \
6 5 4 13
/ / \
10 17 15
*/
Node root = newNode(1);
root.left = newNode(3);
root.right = newNode(7);
root.left.left = newNode(6);
root.left.right = newNode(5);
root.left.right.left = newNode(10);
root.right.left = newNode(4);
root.right.right = newNode(13);
root.right.left.left = newNode(17);
root.right.left.right = newNode(15);
System.out.print(findCousinSum(root, 13) + "\n");
System.out.print(findCousinSum(root, 7) + "\n");
}
}
|
[
"glina41@o2.pl"
] |
glina41@o2.pl
|
5d72c2ea7a9c843b82e676f94632c8371e9f19cc
|
115ddee82aa7e11c3661d9cc5d8f7186475ceb37
|
/bus-all/src/main/java/org/aoju/bus/forest/complex/NotComplex.java
|
8e79e900125c421c1e1c12acca121606566070d0
|
[
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
hunshikan/bus
|
afdcb699b9c3d02468f57b07872a6344fa754602
|
ca455555d0763e88c51bba3afcc8c06421762445
|
refs/heads/master
| 2020-09-22T02:43:11.932534
| 2019-11-30T08:33:01
| 2019-11-30T08:33:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,591
|
java
|
/*
* The MIT License
*
* Copyright (c) 2017 aoju.org All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.aoju.bus.forest.complex;
import org.aoju.bus.forest.Complex;
/**
* 非门逻辑规则
*
* @author Kimi Liu
* @version 5.2.8
* @since JDK 1.8+
*/
public class NotComplex<E> implements Complex<E> {
private final Complex<E> delegate;
public NotComplex(Complex<E> delegate) {
this.delegate = delegate;
}
@Override
public boolean on(E entry) {
return !delegate.on(entry);
}
}
|
[
"839536@qq.com"
] |
839536@qq.com
|
eaa3035d0bea4ae84ca476ec6ae39204fbfd2a97
|
64222f3f2ab184aefeea91667ae0495bded2b866
|
/app/src/main/java/com/alex/licode_android/MainActivity.java
|
0c7777fa1aedd742a214bb98932d57cfe2a7b7fe
|
[] |
no_license
|
Eric2018/Licode-AndroidDemo
|
3622930c4deb9b87da4cec4a0f55e1accb13455b
|
e13705361ee4a4c0b0fcdcebe547d452a3958d6b
|
refs/heads/master
| 2020-05-21T04:57:52.816925
| 2019-03-06T10:04:48
| 2019-03-06T10:04:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,188
|
java
|
package com.alex.licode_android;
import android.annotation.TargetApi;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.SimpleItemAnimator;
import android.util.Base64;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.FrameLayout;
import com.alex.licode_android.runtimepermission.PermissionsManager;
import com.alex.licode_android.runtimepermission.PermissionsResultAction;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class MainActivity extends AppCompatActivity {
private String mTokenServerUrl = "https://192.168.1.200:3004/createToken/";
private FrameLayout mLocalContainer;
private LicodeStream mLicodeStream;
private RecyclerView mRecyclerView;
private LicodeAdapter mLicodeAdapter;
public boolean isStarted;
private Button mButton;
private LicodeSignalingService.RoomConnectionParameters mRoomConnectionParameters;
private long lastClickTime = 0;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
requestPermissions();
mLocalContainer = (FrameLayout) findViewById(R.id.local_container);
mRecyclerView = (RecyclerView) findViewById(R.id.recyclerView);
closeDefaultAnimator(mRecyclerView);
mButton = findViewById(R.id.button);
mButton.setOnClickListener(v -> {
long currentTimeMillis = System.currentTimeMillis();
if (currentTimeMillis - lastClickTime < 3000) {
return;
}
lastClickTime = currentTimeMillis;
if (isStarted) {
mLicodeStream.close();
isStarted = false;
} else {
login();
}
});
mRecyclerView.setLayoutManager(new GridLayoutManager(this,3));
mLicodeAdapter = new LicodeAdapter();
mRecyclerView.setAdapter(mLicodeAdapter);
}
private void initData(String token) {
CubeConfig cubeConfig = new CubeConfig();
mLicodeStream = LicodeStream.getInstance();
if(mLicodeStream == null)return;
mLicodeStream.init(this,cubeConfig);
mLicodeStream.setStreamEvents(new LicodeStream.StreamEvents() {
@Override
public void onViewCreate(long streamId, View surfaceView,boolean isLocal) {
if (isLocal) {
mLocalContainer.removeAllViews();
mLocalContainer.addView(surfaceView);
} else {
mLicodeAdapter.addData(surfaceView);
}
}
@Override
public void onViewDestroy(long streamId, View surfaceView) {
int position = findPosition(surfaceView);
if (position != -1) {
mLicodeAdapter.remove(position);
}
}
@Override
public void close() {
mLicodeAdapter.getData().clear();
mLicodeAdapter.notifyDataSetChanged();
mLocalContainer.removeAllViews();
mButton.setText("start");
}
});
try {
JSONObject jsonToken = new JSONObject(token);
String host = jsonToken.optString("host");
String tokenId = jsonToken.optString("tokenId");
String signature = jsonToken.optString("signature");
boolean secure = jsonToken.optBoolean("secure");
if (!host.startsWith("http://")) {
host = "http://" + host;
}
mRoomConnectionParameters = new LicodeSignalingService.RoomConnectionParameters(token, host, tokenId, secure, signature);
startCall();
} catch (JSONException e) {
e.printStackTrace();
}
}
private int findPosition(View surfaceView) {
List<View> data = mLicodeAdapter.getData();
int position = data.indexOf(surfaceView);
return position;
}
private void startCall() {
mLicodeStream.connectToRoom(mRoomConnectionParameters);
isStarted = true;
mButton.setText("close");
}
class LicodeAdapter extends BaseQuickAdapter<View, BaseViewHolder> {
public LicodeAdapter() {
super(R.layout.item_licode);
}
@Override
protected void convert(BaseViewHolder helper, View item) {
FrameLayout frameLayout = helper.getView(R.id.container);
ViewGroup parent = (ViewGroup) item.getParent();
if (parent != null) {
parent.removeView(item);
}
frameLayout.addView(item);
}
}
private void login() {
Map<String, String> params = new HashMap<>();
params.put("username", "user");
params.put("role", "presenter");
params.put("room", "basicExampleRoom");
params.put("type", "erizo");
params.put("mediaConfiguration", "default");
ApiManager.getInstance().getApiService().login(params,mTokenServerUrl).enqueue(new Callback<ResponseBody>() {
@Override
public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
try {
if (response.code() == 200) {
String string = response.body().string();
VLog.d("body: ---- " +string);
String decodeToken = decodeToken(string);
initData(decodeToken);
}
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public void onFailure(Call<ResponseBody> call, Throwable t) {
t.printStackTrace();
}
});
}
private String decodeToken(String result) {
try {
String token = new String(Base64.decode(result.getBytes(),
Base64.DEFAULT), "UTF-8");
VLog.i("Licode token decoded: " + token);
return token;
} catch (UnsupportedEncodingException e) {
VLog.i("Failed to decode token: " + e.getMessage());
}
return null;
}
@TargetApi(23)
private void requestPermissions() {
PermissionsManager.getInstance().requestAllManifestPermissionsIfNecessary(this, new PermissionsResultAction() {
@Override
public void onGranted() {
}
@Override
public void onDenied(String permission) {
VLog.d("permission: "+permission);
}
});
}
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
@NonNull int[] grantResults) {
PermissionsManager.getInstance().notifyPermissionsChange(permissions, grantResults);
}
public void closeDefaultAnimator(RecyclerView recyclerView) {
recyclerView.getItemAnimator().setAddDuration(0);
recyclerView.getItemAnimator().setChangeDuration(0);
recyclerView.getItemAnimator().setMoveDuration(0);
recyclerView.getItemAnimator().setRemoveDuration(0);
((SimpleItemAnimator) recyclerView.getItemAnimator()).setSupportsChangeAnimations(false);
}
}
|
[
"120146859@qq.com"
] |
120146859@qq.com
|
804f4dd7c7353c345c01878b29d43613b6783988
|
85720de1b78e09c53d0b113e08d91e30b2ce0f0f
|
/MarsPlan/src/com/paySystem/ic/dao/software/SoftWareStyleDao.java
|
ee41b2b7ca509822686dfa2b1d22f48480e9dbaf
|
[] |
no_license
|
supermanxkq/projects
|
4f2696708f15d82d6b8aa8e6d6025163e52d0f76
|
19925f26935f66bd196abe4831d40a47b92b4e6d
|
refs/heads/master
| 2020-06-18T23:48:07.576254
| 2016-11-28T08:44:15
| 2016-11-28T08:44:15
| 74,933,844
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 976
|
java
|
package com.paySystem.ic.dao.software;
import java.util.LinkedHashMap;
import com.paySystem.ic.bean.QueryResult;
import com.paySystem.ic.bean.software.SoftWareStyle;
import com.paySystem.ic.web.dto.software.SoftWareStyleDTO;
/**
* @ProjectName:MarsPlan
* @ClassName:SoftWareStyleDao
* @Description:软件类型Dao
* @author: 徐半仙儿
* @version: V1.0
* @date:Mar 9, 20168:31:29 PM
*/
public interface SoftWareStyleDao {
/** 常量 */
public static final String SOFTWARESTYLEDAO = "SoftWareStyleDao";
/**
* @MethodName:queryAll
* @Description:后台查询所有的软件分类
* @param firstIndex
* @param pageNum
* @param softWareStyleDTO
* @param orderBy
* @throws Exception
* @author:徐凯强
* @return QueryResult<SoftWareStyle>
* @date:Mar 9, 20168:33:51 PM
*/
public QueryResult<SoftWareStyle> queryAll(int firstIndex, int pageNum, SoftWareStyleDTO softWareStyleDTO,
LinkedHashMap<String, String> orderBy) throws Exception;
}
|
[
"994028591@qq.com"
] |
994028591@qq.com
|
b69286b754ce2add92fd964c473c6361d74ad130
|
e57d06d01ccf0a12c191db2aefcdbc6656118e74
|
/mall-member/src/main/java/com/cpucode/mall/member/controller/MemberReceiveAddressController.java
|
6c04636b9cb82e9e1263971e664770cb1bbb8797
|
[] |
no_license
|
CPU-Code/mall
|
a4eebf38a9b26e1a411a5185d96b89ac458dfaaa
|
26b071f18bffd70f7c50bac7ee22d57adb4b32f8
|
refs/heads/main
| 2023-06-15T00:43:38.281154
| 2021-07-10T02:48:56
| 2021-07-10T02:48:56
| 375,383,824
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,564
|
java
|
package com.cpucode.mall.member.controller;
import java.util.Arrays;
import java.util.Map;
//import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.cpucode.mall.member.entity.MemberReceiveAddressEntity;
import com.cpucode.mall.member.service.MemberReceiveAddressService;
import com.cpucode.common.utils.PageUtils;
import com.cpucode.common.utils.R;
/**
* 会员收货地址
*
* @author cpucode
* @email 923992029@qq.com
* @date 2021-06-11 19:19:24
*/
@RestController
@RequestMapping("member/memberreceiveaddress")
public class MemberReceiveAddressController {
@Autowired
private MemberReceiveAddressService memberReceiveAddressService;
/**
* 列表
*/
@RequestMapping("/list")
//@RequiresPermissions("member:memberreceiveaddress:list")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = memberReceiveAddressService.queryPage(params);
return R.ok().put("page", page);
}
/**
* 信息
*/
@RequestMapping("/info/{id}")
//@RequiresPermissions("member:memberreceiveaddress:info")
public R info(@PathVariable("id") Long id){
MemberReceiveAddressEntity memberReceiveAddress = memberReceiveAddressService.getById(id);
return R.ok().put("memberReceiveAddress", memberReceiveAddress);
}
/**
* 保存
*/
@RequestMapping("/save")
//@RequiresPermissions("member:memberreceiveaddress:save")
public R save(@RequestBody MemberReceiveAddressEntity memberReceiveAddress){
memberReceiveAddressService.save(memberReceiveAddress);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
//@RequiresPermissions("member:memberreceiveaddress:update")
public R update(@RequestBody MemberReceiveAddressEntity memberReceiveAddress){
memberReceiveAddressService.updateById(memberReceiveAddress);
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
//@RequiresPermissions("member:memberreceiveaddress:delete")
public R delete(@RequestBody Long[] ids){
memberReceiveAddressService.removeByIds(Arrays.asList(ids));
return R.ok();
}
}
|
[
"923992029@qq.com"
] |
923992029@qq.com
|
ebbc52e6f98d0227019c5343c76216d079d23aa9
|
7e660da819b2cf5167977ae626400671030f46e7
|
/src/com/cqupt/DAO/inter/PaperresearchdirectionMapper.java
|
520e8afa788ae16df40c5d5cdc696d804837dc17
|
[] |
no_license
|
zhangtianle/MyBatisGenerator
|
4e253c35da788625d40a967a1c19d1eb17763c64
|
74ba49a406c835e235e5ac670a01850c3dacbd0d
|
refs/heads/master
| 2021-01-10T01:45:38.967012
| 2016-03-23T11:45:08
| 2016-03-23T11:45:08
| 54,555,418
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,126
|
java
|
package com.cqupt.DAO.inter;
import com.cqupt.model.pojo.Paperresearchdirection;
import com.cqupt.model.pojo.PaperresearchdirectionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PaperresearchdirectionMapper {
int countByExample(PaperresearchdirectionExample example);
int deleteByExample(PaperresearchdirectionExample example);
int deleteByPrimaryKey(Integer paperresearchdirectionid);
int insert(Paperresearchdirection record);
int insertSelective(Paperresearchdirection record);
List<Paperresearchdirection> selectByExample(PaperresearchdirectionExample example);
Paperresearchdirection selectByPrimaryKey(Integer paperresearchdirectionid);
int updateByExampleSelective(@Param("record") Paperresearchdirection record, @Param("example") PaperresearchdirectionExample example);
int updateByExample(@Param("record") Paperresearchdirection record, @Param("example") PaperresearchdirectionExample example);
int updateByPrimaryKeySelective(Paperresearchdirection record);
int updateByPrimaryKey(Paperresearchdirection record);
}
|
[
"cqtianle@163.com"
] |
cqtianle@163.com
|
c266898c97a03ad015ba861e5d5712992a2ce807
|
de665d60428a831300c905391c5db9986fe6eb76
|
/src/com/uniubi/common/oldlogic/weekend/AttendanceLogicCommonTest1AssertWeekend28.java
|
13385d9cecf742b4e32a519751777d0b3a83e0cb
|
[] |
no_license
|
FeeLzheng/SmartStageLogic
|
0346c70c357b8c0377ab39e4c474b8ab96b43714
|
15115c4885c3060d1b71a67d93dd244b09793d5e
|
refs/heads/master
| 2021-01-11T10:23:16.205413
| 2017-06-14T07:17:01
| 2017-06-14T07:17:01
| 78,097,324
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,012
|
java
|
package com.uniubi.common.oldlogic.weekend;
import static org.junit.Assert.*;
public class AttendanceLogicCommonTest1AssertWeekend28 extends AttendanceLogicCommonTest1AssertBaseWeekend {
@Override
public void Testx_x_1() {
assertEquals(employeeDay.getWorkDur(),convertMsToMinutes((tn.getTime()-t1.getTime())));
assertEquals(employeeDay.getDelayDur(),0);
assertEquals(employeeDay.getLeaveDur(),0);
assertEquals(employeeDay.getNoShow(),1);
assertEquals(employeeDay.getWorkShow(),2);
assertEquals(employeeDay.getOutWork(),1);
assertEquals(employeeDay.getEmployeeid(),100000004);
}
@Override
public void Testx_x_2() {
assertEquals(employeeDay.getWorkDur(),convertMsToMinutes((tn.getTime()-t1.getTime())));
assertEquals(employeeDay.getDelayDur(),0);
assertEquals(employeeDay.getLeaveDur(),0);
assertEquals(employeeDay.getNoShow(),1);
assertEquals(employeeDay.getWorkShow(),2);
assertEquals(employeeDay.getOutWork(),1);
assertEquals(employeeDay.getEmployeeid(),100000004);
}
}
|
[
"zhengxiaolong@uni-ubi.com"
] |
zhengxiaolong@uni-ubi.com
|
07d5390a4e08a5b74894a61601282bc6c16c9239
|
bc1e54853af18e70b3d377370ef9271958994e43
|
/lealone-atomicdb/src/main/java/com/codefollower/lealone/atomicdb/db/TreeMapBackedSortedColumns.java
|
bde3eed07998048a7c487fe252240577bfac89b5
|
[
"Apache-2.0"
] |
permissive
|
alemic/Lealone
|
d5cf7241dce252b60513ff77b1c695ec613ce187
|
0a15b13e7ec6752b1adb5b063a7cc6f3e6852bad
|
refs/heads/master
| 2020-02-26T17:44:21.599597
| 2014-01-19T05:43:29
| 2014-01-19T05:43:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,430
|
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 com.codefollower.lealone.atomicdb.db;
import java.util.Collection;
import java.util.Iterator;
import java.util.SortedMap;
import java.util.SortedSet;
import java.util.TreeMap;
import com.codefollower.lealone.atomicdb.config.CFMetaData;
import com.codefollower.lealone.atomicdb.db.composites.CellName;
import com.codefollower.lealone.atomicdb.db.composites.CellNameType;
import com.codefollower.lealone.atomicdb.db.filter.ColumnSlice;
import com.codefollower.lealone.atomicdb.utils.Allocator;
import com.google.common.base.Function;
public class TreeMapBackedSortedColumns extends AbstractThreadUnsafeSortedColumns
{
private final TreeMap<CellName, Cell> map;
public static final ColumnFamily.Factory<TreeMapBackedSortedColumns> factory = new Factory<TreeMapBackedSortedColumns>()
{
public TreeMapBackedSortedColumns create(CFMetaData metadata, boolean insertReversed)
{
assert !insertReversed;
return new TreeMapBackedSortedColumns(metadata);
}
};
public CellNameType getComparator()
{
return (CellNameType)map.comparator();
}
private TreeMapBackedSortedColumns(CFMetaData metadata)
{
super(metadata);
this.map = new TreeMap<>(metadata.comparator);
}
private TreeMapBackedSortedColumns(CFMetaData metadata, SortedMap<CellName, Cell> columns)
{
super(metadata);
this.map = new TreeMap<>(columns);
}
public ColumnFamily.Factory getFactory()
{
return factory;
}
public ColumnFamily cloneMe()
{
return new TreeMapBackedSortedColumns(metadata, map);
}
public boolean isInsertReversed()
{
return false;
}
/*
* If we find an old cell that has the same name
* the ask it to resolve itself else add the new cell
*/
public void addColumn(Cell cell, Allocator allocator)
{
CellName name = cell.name();
// this is a slightly unusual way to structure this; a more natural way is shown in ThreadSafeSortedColumns,
// but TreeMap lacks putAbsent. Rather than split it into a "get, then put" check, we do it as follows,
// which saves the extra "get" in the no-conflict case [for both normal and super columns],
// in exchange for a re-put in the SuperColumn case.
Cell oldCell = map.put(name, cell);
if (oldCell == null)
return;
// calculate reconciled col from old (existing) col and new col
map.put(name, cell.reconcile(oldCell, allocator));
}
/**
* We need to go through each column in the column container and resolve it before adding
*/
public void addAll(ColumnFamily cm, Allocator allocator, Function<Cell, Cell> transformation)
{
delete(cm.deletionInfo());
for (Cell cell : cm)
addColumn(transformation.apply(cell), allocator);
}
public boolean replace(Cell oldCell, Cell newCell)
{
if (!oldCell.name().equals(newCell.name()))
throw new IllegalArgumentException();
// We are not supposed to put the newCell is either there was not
// column or the column was not equal to oldCell (to be coherent
// with other implementation). We optimize for the common case where
// oldCell do is present though.
Cell previous = map.put(oldCell.name(), newCell);
if (previous == null)
{
map.remove(oldCell.name());
return false;
}
if (!previous.equals(oldCell))
{
map.put(oldCell.name(), previous);
return false;
}
return true;
}
public Cell getColumn(CellName name)
{
return map.get(name);
}
public void clear()
{
setDeletionInfo(DeletionInfo.live());
map.clear();
}
public int getColumnCount()
{
return map.size();
}
public Collection<Cell> getSortedColumns()
{
return map.values();
}
public Collection<Cell> getReverseSortedColumns()
{
return map.descendingMap().values();
}
public SortedSet<CellName> getColumnNames()
{
return map.navigableKeySet();
}
public Iterator<Cell> iterator()
{
return map.values().iterator();
}
public Iterator<Cell> iterator(ColumnSlice[] slices)
{
return new ColumnSlice.NavigableMapIterator(map, slices);
}
public Iterator<Cell> reverseIterator(ColumnSlice[] slices)
{
return new ColumnSlice.NavigableMapIterator(map.descendingMap(), slices);
}
}
|
[
"zhh200910@gmail.com"
] |
zhh200910@gmail.com
|
63986b08d181dc48070c55bb7f92178b6099acef
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/6/6_a80018050cc7b53607ee6bc034bfccd242955507/FNFunc/6_a80018050cc7b53607ee6bc034bfccd242955507_FNFunc_t.java
|
02fcf10db752d761c6f9f26a7cf1881ac311d6c0
|
[] |
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
| 7,503
|
java
|
package org.basex.query.func;
import java.util.Arrays;
import org.basex.query.QueryContext;
import org.basex.query.QueryException;
import org.basex.query.expr.DynFunCall;
import org.basex.query.expr.Expr;
import org.basex.query.expr.PartFunApp;
import org.basex.query.expr.VarRef;
import org.basex.query.item.AtomType;
import org.basex.query.item.Empty;
import org.basex.query.item.FunItem;
import org.basex.query.item.FunType;
import org.basex.query.item.Item;
import org.basex.query.item.Itr;
import org.basex.query.item.SeqType;
import org.basex.query.item.Value;
import static org.basex.query.item.SeqType.*;
import static org.basex.query.util.Err.*;
import org.basex.query.iter.ItemCache;
import org.basex.query.iter.Iter;
import org.basex.query.util.Var;
import org.basex.util.InputInfo;
/**
* Functions on functions.
*
* @author BaseX Team 2005-11, BSD License
* @author Christian Gruen
*/
final class FNFunc extends Fun {
/**
* Constructor.
* @param ii input info
* @param f function definition
* @param e arguments
*/
protected FNFunc(final InputInfo ii, final FunDef f, final Expr... e) {
super(ii, f, e);
}
@Override
public Iter iter(final QueryContext ctx) throws QueryException {
switch(def) {
case MAP: return map(ctx);
case FILTER: return filter(ctx);
case MAPPAIRS: return zip(ctx);
case FOLDLEFT: return foldLeft(ctx);
case FOLDRIGHT: return foldRight(ctx);
default:
return super.iter(ctx);
}
}
@Override
public Item item(final QueryContext ctx, final InputInfo ii)
throws QueryException {
switch(def) {
case FUNCARITY: return Itr.get(getFun(0, FunType.ANY, ctx).arity());
case FUNCNAME: return getFun(0, FunType.ANY, ctx).fName();
case PARTAPP: return partApp(ctx, ii);
default:
return super.item(ctx, ii);
}
}
/**
* Partially applies the function to one argument.
* @param ctx query context
* @param ii input info
* @return function item
* @throws QueryException query exception
*/
private FunItem partApp(final QueryContext ctx, final InputInfo ii)
throws QueryException {
final FunItem f = getFun(0, FunType.ANY, ctx);
final Value v = expr[1].value(ctx);
final long pos = expr.length == 2 ? 0 : checkItr(expr[2], ctx) - 1;
final int arity = f.arity();
if(pos < 0 || pos >= arity) INVPOS.thrw(ii, f.name(), pos + 1);
final Var[] vars = new Var[arity - 1];
final Expr[] vals = new Expr[arity];
vals[(int) pos] = v;
for(int i = 0, j = 0; i < arity - 1; i++, j++) {
if(i == pos) j++;
vars[i] = Var.unique(ii);
vals[j] = new VarRef(ii, vars[i]);
}
return (FunItem) new PartFunApp(ii,
new DynFunCall(ii, f, vals), vars).comp(ctx);
}
/**
* Maps a function onto a sequence of items.
* @param ctx context
* @return sequence of results
* @throws QueryException exception
*/
private Iter map(final QueryContext ctx) throws QueryException {
final FunItem f = withArity(0, 1, ctx);
final Iter xs = expr[1].iter(ctx);
return new Iter() {
/** Results. */
Iter ys = Empty.ITER;
@Override
public Item next() throws QueryException {
do {
final Item it = ys.next();
if(it != null) return it;
final Item x = xs.next();
if(x == null) return null;
ys = f.invIter(ctx, input, x);
} while(true);
}
};
}
/**
* Filters the given sequence with the given predicate.
* @param ctx query context
* @return filtered sequence
* @throws QueryException query exception
*/
private Iter filter(final QueryContext ctx) throws QueryException {
final FunItem f = withArity(0, 1, ctx);
final Iter xs = expr[1].iter(ctx);
return new Iter() {
@Override
public Item next() throws QueryException {
do {
final Item it = xs.next();
if(it == null) return null;
final Item b = f.invItem(ctx, input, it);
if(checkType(b, AtomType.BLN).bool(input)) return it;
} while(true);
}
};
}
/**
* Zips two sequences with the given zipper function.
* @param ctx query context
* @return sequence of results
* @throws QueryException query exception
*/
private Iter zip(final QueryContext ctx) throws QueryException {
final FunItem zipper = withArity(0, 2, ctx);
final Iter xs = expr[1].iter(ctx);
final Iter ys = expr[2].iter(ctx);
return new Iter() {
/** Results. */
Iter zs = Empty.ITER;
@Override
public Item next() throws QueryException {
do {
final Item it = zs.next();
if(it != null) return it;
final Item x = xs.next(), y = ys.next();
if(x == null || y == null) return null;
zs = zipper.invIter(ctx, input, x, y);
} while(true);
}
};
}
/**
* Folds a sequence into a return value, starting from the left.
* @param ctx query context
* @return resulting sequence
* @throws QueryException query exception
*/
private Iter foldLeft(final QueryContext ctx) throws QueryException {
final FunItem f = withArity(0, 2, ctx);
final Iter xs = expr[2].iter(ctx);
Iter res = expr[1].iter(ctx);
for(Item x; (x = xs.next()) != null;)
res = f.invIter(ctx, input, res.finish(), x);
return res;
}
/**
* Folds a sequence into a return value, starting from the left.
* @param ctx query context
* @return resulting sequence
* @throws QueryException query exception
*/
private Iter foldRight(final QueryContext ctx) throws QueryException {
final FunItem f = withArity(0, 2, ctx);
Iter res = expr[1].iter(ctx);
final ItemCache xs = ItemCache.get(expr[2].iter(ctx));
for(int i = (int) xs.size(); i-- != 0;)
res = f.invIter(ctx, input, xs.item[i], res.finish());
return res;
}
/**
* Checks the type of the given function item.
* @param p position
* @param t type
* @param ctx context
* @return function item
* @throws QueryException query exception
*/
private FunItem getFun(final int p, final FunType t, final QueryContext ctx)
throws QueryException {
return (FunItem) checkType(checkItem(expr[p], ctx), t);
}
/**
* Casts and checks the function item for its arity.
* @param p position of the function
* @param a arity
* @param ctx query context
* @return function item
* @throws QueryException query exception
*/
private FunItem withArity(final int p, final int a, final QueryContext ctx)
throws QueryException {
final SeqType[] args = new SeqType[a];
Arrays.fill(args, ITEM_ZM);
return getFun(p, FunType.get(args, ITEM_ZM), ctx);
}
@Override
public boolean uses(final Use u) {
return u == Use.X30 || super.uses(u);
}
@Override
public Expr cmp(final QueryContext ctx) throws QueryException {
return super.cmp(ctx);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
533800b426087959327ed44ebe6002a388fe3d1c
|
8991decd18a344d56b1dcbe001e1502530918cf5
|
/src/main/java/com/techtrek/customerservice/customer/CustomerCommandRepo.java
|
42fbc579326364b43b13891420b3c3fb16e61322
|
[] |
no_license
|
PalakShah93/techtrek-api
|
975066245ad00ffff06f245fd0b23a9f02044a21
|
042f4a97b3feb3b548ca006e67ce884d91596c3b
|
refs/heads/main
| 2023-08-12T10:34:00.210140
| 2020-10-01T15:46:29
| 2020-10-02T01:20:41
| 300,501,414
| 0
| 0
| null | 2020-10-02T04:36:20
| 2020-10-02T04:36:19
| null |
UTF-8
|
Java
| false
| false
| 193
|
java
|
package com.techtrek.customerservice.customer;
public interface CustomerCommandRepo {
void addCustomer(Customer customer);
void updateCustomer(String customerId, Customer customer);
}
|
[
"smitshah95@hotmail.com"
] |
smitshah95@hotmail.com
|
e78cb0e862c3e432c7c803af09dc9c86797ba29e
|
3e8428a154ca6228da736fd1dc2b8ce9f8da4372
|
/app/src/main/java/com/flyersoft/moonreader/base/BaseDataBindingFragment.java
|
121f57a480952f6b59d6998aa251ce0ff396fd7a
|
[] |
no_license
|
kiefer0815/MViewer
|
3cffba2d41c43b248a67adb02d29f9cf34ea32e0
|
8f93d4d6da6e7418568b7ffede9063eae88e2f2c
|
refs/heads/master
| 2021-04-26T23:55:12.097812
| 2018-03-06T00:59:39
| 2018-03-06T00:59:39
| 123,879,396
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,357
|
java
|
package com.flyersoft.moonreader.base;
import android.databinding.DataBindingUtil;
import android.databinding.ViewDataBinding;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import com.flyersoft.moonreader.R;
import com.flyersoft.moonreader.utils.PerfectClickListener;
import rx.Subscription;
import rx.subscriptions.CompositeSubscription;
/**
* Created by kiefer on 2017/6/16.
*/
/**
* 是没有title的Fragment
*/
public abstract class BaseDataBindingFragment<SV extends ViewDataBinding> extends Fragment {
// 布局view
protected SV bindingView;
// fragment是否显示了
protected boolean mIsVisible = false;
// 加载中
private LinearLayout mLlProgressBar;
// 加载失败
private LinearLayout mRefresh;
// 内容布局
protected RelativeLayout mContainer;
// 动画
private AnimationDrawable mAnimationDrawable;
private CompositeSubscription mCompositeSubscription;
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View ll = inflater.inflate(R.layout.fragment_base, null);
bindingView = DataBindingUtil.inflate(getActivity().getLayoutInflater(), setContent(), null, false);
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
bindingView.getRoot().setLayoutParams(params);
mContainer = (RelativeLayout) ll.findViewById(R.id.container);
mContainer.addView(bindingView.getRoot());
return ll;
}
/**
* 在这里实现Fragment数据的缓加载.
*/
@Override
public void setUserVisibleHint(boolean isVisibleToUser) {
super.setUserVisibleHint(isVisibleToUser);
if (getUserVisibleHint()) {
mIsVisible = true;
onVisible();
} else {
mIsVisible = false;
onInvisible();
}
}
protected void onInvisible() {
}
/**
* 显示时加载数据,需要这样的使用
* 注意声明 isPrepared,先初始化
* 生命周期会先执行 setUserVisibleHint 再执行onActivityCreated
* 在 onActivityCreated 之后第一次显示加载数据,只加载一次
*/
protected void loadData() {
}
protected void onVisible() {
loadData();
}
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
mLlProgressBar = getView(R.id.ll_progress_bar);
ImageView img = getView(R.id.img_progress);
// 加载动画
mAnimationDrawable = (AnimationDrawable) img.getDrawable();
// 默认进入页面就开启动画
if (!mAnimationDrawable.isRunning()) {
mAnimationDrawable.start();
}
mRefresh = getView(R.id.ll_error_refresh);
// 点击加载失败布局
mRefresh.setOnClickListener(new PerfectClickListener() {
@Override
protected void onNoDoubleClick(View v) {
showLoading();
onRefresh();
}
});
bindingView.getRoot().setVisibility(View.GONE);
}
protected <T extends View> T getView(int id) {
return (T) getView().findViewById(id);
}
/**
* 布局
*/
public abstract int setContent();
/**
* 加载失败后点击后的操作
*/
protected void onRefresh() {
}
/**
* 显示加载中状态
*/
protected void showLoading() {
if (mLlProgressBar.getVisibility() != View.VISIBLE) {
mLlProgressBar.setVisibility(View.VISIBLE);
}
// 开始动画
if (!mAnimationDrawable.isRunning()) {
mAnimationDrawable.start();
}
if (bindingView.getRoot().getVisibility() != View.GONE) {
bindingView.getRoot().setVisibility(View.GONE);
}
if (mRefresh.getVisibility() != View.GONE) {
mRefresh.setVisibility(View.GONE);
}
}
/**
* 加载完成的状态
*/
protected void showContentView() {
if (mLlProgressBar.getVisibility() != View.GONE) {
mLlProgressBar.setVisibility(View.GONE);
}
// 停止动画
if (mAnimationDrawable.isRunning()) {
mAnimationDrawable.stop();
}
if (mRefresh.getVisibility() != View.GONE) {
mRefresh.setVisibility(View.GONE);
}
if (bindingView.getRoot().getVisibility() != View.VISIBLE) {
bindingView.getRoot().setVisibility(View.VISIBLE);
}
}
/**
* 加载失败点击重新加载的状态
*/
protected void showError() {
if (mLlProgressBar.getVisibility() != View.GONE) {
mLlProgressBar.setVisibility(View.GONE);
}
// 停止动画
if (mAnimationDrawable.isRunning()) {
mAnimationDrawable.stop();
}
if (mRefresh.getVisibility() != View.VISIBLE) {
mRefresh.setVisibility(View.VISIBLE);
}
if (bindingView.getRoot().getVisibility() != View.GONE) {
bindingView.getRoot().setVisibility(View.GONE);
}
}
public void addSubscription(Subscription s) {
if (this.mCompositeSubscription == null) {
this.mCompositeSubscription = new CompositeSubscription();
}
this.mCompositeSubscription.add(s);
}
@Override
public void onDestroy() {
super.onDestroy();
if (this.mCompositeSubscription != null && mCompositeSubscription.hasSubscriptions()) {
this.mCompositeSubscription.unsubscribe();
}
}
public void removeSubscription() {
if (this.mCompositeSubscription != null && mCompositeSubscription.hasSubscriptions()) {
this.mCompositeSubscription.unsubscribe();
}
}
}
|
[
"xiezhanghuan@ruoshui.me"
] |
xiezhanghuan@ruoshui.me
|
42236d2e4b00ab13f20a96d67910f7596aa4fc8f
|
0deb56bdcf91ca229bf61da0cf3cf3406223fb2c
|
/SmartLife-webrtc/TvpiLib/src/main/java/com/coocaa/tvpi/module/movie/adapter/CategoryFilterTypeAdapter.java
|
ce0807d175309e8eca79530a591f50f6607aa6ab
|
[] |
no_license
|
soulcure/airplay
|
2ceb0a6707b2d4a69f85dd091b797dcb6f2c9d46
|
37dd3a890148a708d8aa6f95ac84355606af6a18
|
refs/heads/master
| 2023-04-11T03:49:15.246072
| 2021-04-16T09:15:03
| 2021-04-16T09:15:03
| 357,804,553
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,714
|
java
|
package com.coocaa.tvpi.module.movie.adapter;
import android.graphics.Typeface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import com.coocaa.smartscreen.data.movie.CategoryFilterModel;
import com.coocaa.tvpilib.R;
import java.util.ArrayList;
import java.util.List;
/**
* Created by IceStorm on 2017/12/19.
*/
public class CategoryFilterTypeAdapter extends RecyclerView.Adapter <CategoryFilterTypeAdapter.CategoryViewHolder> implements View.OnClickListener{
private static final String TAG = "CategoryFilterTypeAdapt";
private int curSelectedPosition = -1;
private List<CategoryFilterModel> dataList = new ArrayList<>();
private OnItemClickListener mOnItemClickListener = null;
//define interface
public interface OnItemClickListener {
void onItemClick(View view, int position);
}
public void setOnItemClickListener(OnItemClickListener listener) {
this.mOnItemClickListener = listener;
}
public CategoryFilterTypeAdapter(int count) {
}
public void addAll(List<CategoryFilterModel> videoList) {
dataList.clear();
dataList.addAll(videoList);
notifyDataSetChanged();
}
public int getCurSelectedPosition() {
return curSelectedPosition;
}
public void setSelected(int position) {
if (curSelectedPosition != -1) {
dataList.get(curSelectedPosition).isSelected = false;
notifyItemChanged(curSelectedPosition);
}
if (dataList.size() > 0) {
dataList.get(position).isSelected = true;
curSelectedPosition = position;
}
notifyItemChanged(position);
}
public CategoryFilterModel getSelected() {
try {
return dataList.get(curSelectedPosition);
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
@Override
public CategoryViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_filter_type_list, parent, false);
//将创建的View注册点击事件
view.setOnClickListener(this);
return new CategoryViewHolder(view);
}
@Override
public void onBindViewHolder(CategoryViewHolder viewHolder, int position) {
viewHolder.textView.setText(dataList.get(position).title + "");
//将position保存在itemView的Tag中,以便点击时进行获取
viewHolder.itemView.setTag(position);
if(dataList.get(position).isSelected) {
viewHolder.textView.setTextColor(viewHolder.textView.getResources().getColor(R.color.c_1));
viewHolder.textView.setTypeface(Typeface.defaultFromStyle(Typeface.BOLD));
} else {
viewHolder.textView.setTextColor(viewHolder.textView.getResources().getColor(R.color.c_3));
viewHolder.textView.setTypeface(Typeface.defaultFromStyle(Typeface.NORMAL));
}
}
@Override
public int getItemCount() {
return dataList.size();
}
@Override
public void onClick(View v) {
if (mOnItemClickListener != null) {
//注意这里使用getTag方法获取position
mOnItemClickListener.onItemClick(v,(int)v.getTag());
}
}
public class CategoryViewHolder extends RecyclerView.ViewHolder {
public TextView textView;
CategoryViewHolder(View view) {
super(view);
textView = (TextView) view.findViewById(R.id.item_filter_type_list_tv_type);
}
}
}
|
[
"chenqiongyao@coocaa.com"
] |
chenqiongyao@coocaa.com
|
4075f99c79d4bb5e11c54c9ea91e9946806d291b
|
84c8b918106cb1680b38b8d171bcc656f1c864a9
|
/jOOQ-test/src/org/jooq/test/oracle3/generatedclasses/udt/records/U_NUMBER_ARRAY.java
|
4b8523879050259c31e4c97cc92819b6d8ceccbb
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
ecruciani/jOOQ
|
dc7ea7445305d92be2141d1248d28bba95e766ad
|
649954e76c06aef5e1db7e39ea4943e8c1d28567
|
refs/heads/master
| 2021-01-17T21:50:32.952999
| 2013-02-04T19:45:49
| 2013-02-04T19:45:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,046
|
java
|
/**
* This class is generated by jOOQ
*/
package org.jooq.test.oracle3.generatedclasses.udt.records;
/**
* This class is generated by jOOQ.
*/
@java.lang.SuppressWarnings("all")
public class U_NUMBER_ARRAY extends org.jooq.impl.ArrayRecordImpl<java.lang.Integer> implements java.lang.Cloneable {
private static final long serialVersionUID = -239743929;
/**
* Create a new <code>TEST.U_NUMBER_ARRAY</code> record
*/
public U_NUMBER_ARRAY(org.jooq.Configuration configuration) {
super(org.jooq.test.oracle3.generatedclasses.TEST.TEST, "U_NUMBER_ARRAY", org.jooq.impl.SQLDataType.INTEGER, configuration);
}
/**
* Create a new <code>TEST.U_NUMBER_ARRAY</code> record
*/
public U_NUMBER_ARRAY(org.jooq.Configuration configuration, java.lang.Integer... array) {
this(configuration);
set(array);
}
/**
* Create a new <code>TEST.U_NUMBER_ARRAY</code> record
*/
public U_NUMBER_ARRAY(org.jooq.Configuration configuration, java.util.List<? extends java.lang.Integer> list) {
this(configuration);
setList(list);
}
}
|
[
"lukas.eder@gmail.com"
] |
lukas.eder@gmail.com
|
beaf59fb73655ed2cd9e0dab8fe5f18d1cf488ee
|
a1b2681b9dbccd0582e92b2177acbc721afb4b83
|
/transaction-mybatis/src/main/java/com/hua/orm/entity/o2o/Person.java
|
26887e66d7c406cb9d39b74a08665a8ec5dd9ddc
|
[] |
no_license
|
dearcode2018/transaction
|
349d119bf298eed48d03935fafe482ae191a49a1
|
bd79ff45e1ec12d2a651e8020006e43984536773
|
refs/heads/master
| 2020-03-21T22:32:20.598865
| 2018-06-30T09:23:36
| 2018-06-30T09:23:36
| 139,132,970
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,195
|
java
|
/**
* 描述:
* Person.java
* @author qye.zheng
*
* version 1.0
*/
package com.hua.orm.entity.o2o;
import java.util.Date;
import com.hua.constant.ext.Gender;
import com.hua.entity.BaseEntity;
/**
* 描述:
* @author qye.zheng
*
* Person
*/
public final class Person extends BaseEntity
{
/**
* 一个人只有一个身份证,一个身份证只属于一个人
*/
/* 姓名 */
private String name;
/* 证件照片url */
private String photoUrl;
/* 性别 : 0-未知, 1-男(male), 2-女(female) */
private String gender = "Unknow";
/* 民族 */
private String nation;
/* 出生日期 yyyy-MM-dd */
private Date birthday;
/* 住址 */
private String address;
// one to one
/* 身份证 */
private IdCard idCard;
/**
* @return the name
*/
public String getName()
{
return name;
}
/**
* @param name the name to set
*/
public void setName(String name)
{
this.name = name;
}
/**
* @return the photoUrl
*/
public String getPhotoUrl()
{
return photoUrl;
}
/**
* @param photoUrl the photoUrl to set
*/
public void setPhotoUrl(String photoUrl)
{
this.photoUrl = photoUrl;
}
/**
* @return the nation
*/
public String getNation()
{
return nation;
}
/**
* @param nation the nation to set
*/
public void setNation(String nation)
{
this.nation = nation;
}
/**
* @return the birthday
*/
public Date getBirthday()
{
return birthday;
}
/**
* @param birthday the birthday to set
*/
public void setBirthday(Date birthday)
{
this.birthday = birthday;
}
/**
* @return the address
*/
public String getAddress()
{
return address;
}
/**
* @param address the address to set
*/
public void setAddress(String address)
{
this.address = address;
}
/**
* @return the idCard
*/
public IdCard getIdCard()
{
return idCard;
}
/**
* @param idCard the idCard to set
*/
public void setIdCard(IdCard idCard)
{
this.idCard = idCard;
}
/**
* @return the gender
*/
public final String getGender()
{
return gender;
}
/**
* @param gender the gender to set
*/
public final void setGender(String gender)
{
this.gender = gender;
}
}
|
[
"dearzqy@163.com"
] |
dearzqy@163.com
|
ce7ad4a3aeefea781c64985a30bbfbbc018518d6
|
beaff165f252894677eeedf4adb7260c207a81ae
|
/a_intro/f_jstl/01_core/02_foreach/foreach_B_Peliculas/src/java/controlador/PeliculasServlet.java
|
04bea63e1e001a491d9dc3ceb32cf2add7c1096c
|
[] |
no_license
|
desabi/java-ee
|
422974c7ef77b053b9c091717d016b2198a0206d
|
ad954fa55a466f52e5651bb2c8b4a6f684508cf8
|
refs/heads/master
| 2022-12-04T02:36:00.414443
| 2020-08-20T14:06:23
| 2020-08-20T14:06:23
| 289,017,303
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,338
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package controlador;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
*
* @author Abi
*/
public class PeliculasServlet extends HttpServlet {
/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
* methods.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
try (PrintWriter out = response.getWriter()) {
/* Dos arreglos con peliculas */
String[] peliculas1 = {"Cadena Perpetua", "El Padrino", "El caballero de la noche", "La Lista de Schindler"};
String[] peliculas2 = {"El Señor de los anillos", "El Club de la Lucha", "Forrest Gump", "Origen", "Matrix"};
ArrayList listaPeliculas = new ArrayList();
listaPeliculas.add(peliculas1);
listaPeliculas.add(peliculas2);
out.print(listaPeliculas);
request.setAttribute("lasPeliculas", listaPeliculas);
RequestDispatcher vista = request.getRequestDispatcher("PeliculasVista.jsp");
vista.forward(request, response);
}
}
// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
/**
* Handles the HTTP <code>GET</code> method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
}
/**
* Handles the HTTP <code>POST</code> method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
}
/**
* Returns a short description of the servlet.
*
* @return a String containing servlet description
*/
@Override
public String getServletInfo() {
return "Short description";
}// </editor-fold>
}
|
[
"desabi@live.com"
] |
desabi@live.com
|
4635795bfd4e513d1f04a8fca32ec41ad6123803
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project13/src/main/java/org/gradle/test/performance13_2/Production13_126.java
|
87966bb6e9a3deb6c30c85fa8d8c2e85def43815
|
[] |
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
| 303
|
java
|
package org.gradle.test.performance13_2;
public class Production13_126 extends org.gradle.test.performance9_2.Production9_126 {
private final String property;
public Production13_126() {
this.property = "foo";
}
public String getProperty() {
return property;
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
3b0cc791ba05ee7e080d68b206b29f05a022ff4c
|
1b1bbc90da22aea7b0369288f3e0b16ad659d9f4
|
/src/com/syntax/class05/Task1Improved.java
|
f4cce2f6ca714704e6d402200a174752a32942b8
|
[] |
no_license
|
samuelwoldegiorgis/JavaBatch8Review
|
1191d21826f9c8ec3f17349081d9e3e92a9c979f
|
762dfce1626af5e1727305eed3550660c4ee0c6a
|
refs/heads/main
| 2023-02-21T05:26:33.956968
| 2021-01-10T15:20:30
| 2021-01-10T15:20:30
| 304,908,369
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 933
|
java
|
package com.syntax.class05;
import java.util.Scanner;
public class Task1Improved {
public static void main(String[] args) {
Scanner scan;
int quiz, mid, finalScore, avg;
scan=new Scanner(System.in);
System.out.println("Please enter your quiz score");
quiz=scan.nextInt();
System.out.println("Please enter your midterm score");
mid=scan.nextInt();
System.out.println("Please enter your final score");
finalScore=scan.nextInt();
avg=(quiz+mid+finalScore)/3;
System.out.println(avg);
char grade;
if(avg>=90) {
grade = 'A';
}else if(avg>=70 && avg<90) {
grade='B';
}else if(avg>=50 && avg<=70 ) {
grade='C';
}else if(avg<50 && avg<=70) {
grade='D';
}else {
grade='F';
}
System.out.println("Grade is= "+grade);
if(grade=='A' || grade=='B') {
System.out.println("You are good student");
}else {
System.out.println("Please study more");
}
}
}
|
[
"samgmil19@gmail.com"
] |
samgmil19@gmail.com
|
433b5e1dffac9787fae94a84711160fee6b69884
|
fb60413b02cdf8a5c38d24b033d2900832ba9f19
|
/game_db/src/com/pwrd/war/db/dao/BufferDao.java
|
f6e451ee1ca0375058a47baf53c25c706e59413f
|
[] |
no_license
|
tommyadan/webgame
|
4729fc44617b9f104e0084d41763d98b3068f394
|
2117929e143e7498e524305ed529c4ee09163474
|
refs/heads/master
| 2021-05-27T04:59:34.506955
| 2012-08-20T14:30:07
| 2012-08-20T14:30:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 979
|
java
|
package com.pwrd.war.db.dao;
import java.util.List;
import com.pwrd.war.core.orm.DBService;
import com.pwrd.war.db.model.BufferEntity;
public class BufferDao extends BaseDao<BufferEntity> {
private static final String GET_BUFFER_BY_HUMANSN = "queryBuffer";
private static final String[] GET_BUFFER_BY_HUMANSN_PARAMS = new String[] { "humanSn" };
@SuppressWarnings("unchecked")
public List<BufferEntity> getBufferByHumanId(String humanSn) {
return this.dbService.findByNamedQueryAndNamedParam(GET_BUFFER_BY_HUMANSN, GET_BUFFER_BY_HUMANSN_PARAMS,
new Object[] { humanSn });
}
public BufferDao(DBService dbService) {
super(dbService);
}
@Override
protected Class<BufferEntity> getEntityClass() {
return BufferEntity.class;
}
public void deleteByHumanAndBuffer(String humanSn, int bufferSn){
this.dbService.queryForUpdate("deleteBuffer", new String[]{"humanSn","bufferSn"}, new Object[]{humanSn, bufferSn+""});
}
}
|
[
"zhutao@brunjoy.com"
] |
zhutao@brunjoy.com
|
54adcb264ac66a4f3b758ffcbc80d28c0ff905e4
|
2c1c13b30669301ffe0d8bade5835a232910d7f6
|
/SpMVC_040_book/src/main/java/com/callor/book/controller/HomeController.java
|
aae3a0a5b41bea481cd5c02d2a6aea47b6849ec9
|
[] |
no_license
|
num5268/Biz-403_2021_06_SpringMVC
|
99ed750818c33cd6dd360837ed0c031c5b758d2b
|
27c6ac541fadee5eded7b49e6977b91887cb1618
|
refs/heads/master
| 2023-06-19T02:45:13.182819
| 2021-07-15T07:57:41
| 2021-07-15T07:57:41
| 372,743,408
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,999
|
java
|
package com.callor.book.controller;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.List;
import org.json.simple.parser.ParseException;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import com.callor.book.model.BookDTO;
import com.callor.book.service.NaverBookService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@Controller
@Slf4j
@RequiredArgsConstructor
public class HomeController {
@Qualifier("naverBookServiceV2")
protected final NaverBookService nBookService;
@RequestMapping(value="/",method=RequestMethod.GET)
public String home() {
return "redirect:/naver/BOOK";
}
@RequestMapping(value="/not",method=RequestMethod.GET)
public String home(
@RequestParam(name="category",
required = false,
defaultValue = "") String category, Model model ) {
// model.addAttribute("CAT",category);
if(category.equalsIgnoreCase("BOOK")) {
return "redirect:/book";
} else if ( category.equalsIgnoreCase("MOVIE")) {
return "redirect:/movie";
} else if( category.equalsIgnoreCase("NEWS")) {
return "redirect:/news";
}
return "redirect:/book";
}
@RequestMapping(value = "/home", method = RequestMethod.GET)
public String home1(
@RequestParam(name = "search",
required = false,
defaultValue = "") String search, Model model) throws MalformedURLException, IOException, ParseException {
if(search != null && !search.equals("")) {
String queryURL = nBookService.queryURL(search.trim());
String jsonString = nBookService.getJsonString(queryURL);
List<BookDTO> bookList = nBookService.getNaverList(jsonString);
model.addAttribute("BOOKS",bookList);
}
return "home";
}
}
|
[
"num5268@gmail.com"
] |
num5268@gmail.com
|
2507ef861e5d75a6fce65a28fcd007a716b00481
|
cd053dca13c0727947851aa8ba37f28d85f664bf
|
/app/src/main/java/com/yxw/cn/repairservice/entity/OrderStatusLineBean.java
|
d8121d155ecc133e6d5de832cc97cafb49aaa48e
|
[] |
no_license
|
cgy529387306/RepairService
|
962eb1526a7faec8b8b5e51d194d21f68291166c
|
ff25ce5ebb32a5a8f04ad1c409a06864cd22ce8e
|
refs/heads/master
| 2020-05-19T17:47:10.633211
| 2019-12-20T07:40:05
| 2019-12-20T07:40:05
| 185,142,422
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,054
|
java
|
package com.yxw.cn.repairservice.entity;
import java.io.Serializable;
public class OrderStatusLineBean implements Serializable{
/**
* acceptId : null
* description : 管理员[admin]导入订单[JDA12019050300004]导入成功
* orderId : 7812652845701304320
* orderStatus : 20
* relevanceId : null
* showUser : 0
* time : 2019-05-03 21:56:44
* timelineId : null
*/
private String acceptId;
private String description;
private String orderId;
private int orderStatus;
private String relevanceId;
private int showUser;
private String time;
private String timelineId;
public String getAcceptId() {
return acceptId == null ? "" : acceptId;
}
public void setAcceptId(String acceptId) {
this.acceptId = acceptId;
}
public String getDescription() {
return description == null ? "" : description;
}
public void setDescription(String description) {
this.description = description;
}
public String getOrderId() {
return orderId == null ? "" : orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public int getOrderStatus() {
return orderStatus;
}
public void setOrderStatus(int orderStatus) {
this.orderStatus = orderStatus;
}
public String getRelevanceId() {
return relevanceId == null ? "" : relevanceId;
}
public void setRelevanceId(String relevanceId) {
this.relevanceId = relevanceId;
}
public int getShowUser() {
return showUser;
}
public void setShowUser(int showUser) {
this.showUser = showUser;
}
public String getTime() {
return time == null ? "" : time;
}
public void setTime(String time) {
this.time = time;
}
public String getTimelineId() {
return timelineId == null ? "" : timelineId;
}
public void setTimelineId(String timelineId) {
this.timelineId = timelineId;
}
}
|
[
"529387306@qq.com"
] |
529387306@qq.com
|
118e649953b26bbc522bc0ada19785d63d3775eb
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_4e0251c626cd66b5f24c33f5536d9571ddc093b3/NFBinding/2_4e0251c626cd66b5f24c33f5536d9571ddc093b3_NFBinding_s.java
|
3580af4a345bcb16b2dd9e30026a7d5c83de458a
|
[] |
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,348
|
java
|
/*
* ################################################################
*
* ProActive: The Java(TM) library for Parallel, Distributed,
* Concurrent computing with Security and Mobility
*
* Copyright (C) 1997-2008 INRIA/University of Nice-Sophia Antipolis
* Contact: proactive@ow2.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or 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
* General Public License for more details.
*
* You should have received a copy of the GNU 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
*
* Initial developer(s): The ProActive Team
* http://proactive.inria.fr/team_members.htm
* Contributor(s):
*
* ################################################################
* $$PROACTIVE_INITIAL_DEV$$
*/
package org.objectweb.proactive.core.component;
import org.objectweb.fractal.api.Interface;
/**
* Extended binding, with additionnal information about a binding
* @author The ProActive Team
*
*/
public class NFBinding extends Binding {
private final String clientComponent;
private final String serverComponent;
private final String serverInterfaceName;
public NFBinding(Interface clientInterface, String clientItfName, Interface serverInterface,
String clientComponent, String serverComponent) {
super(clientInterface, clientItfName, serverInterface);
this.clientComponent = clientComponent;
this.serverComponent = serverComponent;
this.serverInterfaceName = serverInterface.getFcItfName();
}
public String getClientComponentName() {
return clientComponent;
}
public String getServerComponentName() {
return clientComponent;
}
public String getServerInterfaceName() {
return serverInterfaceName;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
9c5e9a8e3fe24ceb915ca43bfb756aed72378af8
|
882e77219bce59ae57cbad7e9606507b34eebfcf
|
/mi2s_securitycenter_miui12/src/main/java/com/xiaomi/micloudsdk/stat/c.java
|
ef6ad63d4ea6ec0d3caaaf3baf26bba9c079b8aa
|
[] |
no_license
|
CrackerCat/XiaomiFramework
|
17a12c1752296fa1a52f61b83ecf165f328f4523
|
0b7952df317dac02ebd1feea7507afb789cef2e3
|
refs/heads/master
| 2022-06-12T03:30:33.285593
| 2020-05-06T11:30:54
| 2020-05-06T11:30:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 917
|
java
|
package com.xiaomi.micloudsdk.stat;
public class c {
/* renamed from: a reason: collision with root package name */
private boolean f8332a;
/* renamed from: b reason: collision with root package name */
private a f8333b;
private static class a {
/* access modifiers changed from: private */
/* renamed from: a reason: collision with root package name */
public static final c f8334a = new c();
}
private c() {
this.f8332a = false;
}
public static c a() {
return a.f8334a;
}
public void a(NetFailedStatParam netFailedStatParam) {
a aVar = this.f8333b;
if (aVar != null) {
aVar.a(netFailedStatParam);
}
}
public void a(NetSuccessStatParam netSuccessStatParam) {
a aVar = this.f8333b;
if (aVar != null) {
aVar.a(netSuccessStatParam);
}
}
}
|
[
"sanbo.xyz@gmail.com"
] |
sanbo.xyz@gmail.com
|
f3b9953dec6f178318ab022b8228031d5808c259
|
dd0468634cdf089e9444aa3535adf1edfc1fb3b3
|
/app/src/main/java/com/example/huoshangkou/jubowan/chat/helper/UpdateMesssageHelper.java
|
8577625f7e702b9dc3beeef62575d0d9ea952cb4
|
[] |
no_license
|
tkf896309129/JuBoBao
|
b98fb88d806ffcdc3cae6ba4ca128a38a84b2ce9
|
ef432cc34f85c781bbd964f25541c156c704b521
|
refs/heads/master
| 2021-01-14T15:02:51.553255
| 2020-04-30T01:20:01
| 2020-04-30T01:20:01
| 242,653,122
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,895
|
java
|
package com.example.huoshangkou.jubowan.chat.helper;
import android.text.TextUtils;
import com.tencent.imsdk.TIMCallBack;
import com.tencent.imsdk.TIMFriendshipManager;
import com.tencent.imsdk.TIMUserProfile;
import com.tencent.qcloud.tim.uikit.utils.ToastUtil;
import java.util.HashMap;
/**
* 作者:唐先生
* 包名:com.example.huoshangkou.jubowan.chat.helper
* 类名:UpdateMesssageHelper
* 描述:
* 创建时间:2020-04-15 13:20
*/
public class UpdateMesssageHelper {
private static UpdateMesssageHelper INSTANCE;
public static UpdateMesssageHelper getInstance() {
if (INSTANCE == null) {
synchronized (UpdateMesssageHelper.class) {
if (INSTANCE == null) {
INSTANCE = new UpdateMesssageHelper();
}
}
}
return INSTANCE;
}
public void updateProfile(String iconUrl, String nickName) {
HashMap<String, Object> hashMap = new HashMap<>();
// 头像
if (!TextUtils.isEmpty(iconUrl)) {
hashMap.put(TIMUserProfile.TIM_PROFILE_TYPE_KEY_FACEURL, iconUrl);
}
// 昵称
hashMap.put(TIMUserProfile.TIM_PROFILE_TYPE_KEY_NICK, nickName);
// 个性签名
// hashMap.put(TIMUserProfile.TIM_PROFILE_TYPE_KEY_SELFSIGNATURE, signature);
// 地区
// hashMap.put(TIMUserProfile.TIM_PROFILE_TYPE_KEY_LOCATION, "sz");
// 加我验证方式
// hashMap.put(TIMUserProfile.TIM_PROFILE_TYPE_KEY_ALLOWTYPE, allowType);
TIMFriendshipManager.getInstance().modifySelfProfile(hashMap, new TIMCallBack() {
@Override
public void onError(int i, String s) {
ToastUtil.toastShortMessage("聊天信息初始化失败");
}
@Override
public void onSuccess() {
}
});
}
}
|
[
"you@example.com"
] |
you@example.com
|
83ab9e34c2ca1c67d304a600d44fd4888eb4df0d
|
5b6c278c128296cb2bd11a296859082606012eed
|
/app/src/main/java/me/shouheng/omnilist/activity/base/ThemedActivity.java
|
4d7a2cdbca4ef16f67d0c60c22bb7ce80e4824ca
|
[] |
no_license
|
1322739583/OmniList
|
0a407507876ed57acf872ccff171396d577fe936
|
ae830f63c9b9d922ca969abacfa9d37fc063752e
|
refs/heads/master
| 2020-06-13T22:19:44.426279
| 2018-07-21T14:22:03
| 2018-07-21T14:22:03
| 194,806,196
| 0
| 1
| null | 2019-07-02T06:55:44
| 2019-07-02T06:55:43
| null |
UTF-8
|
Java
| false
| false
| 4,585
|
java
|
package me.shouheng.omnilist.activity.base;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.view.ViewCompat;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.FrameLayout;
import org.polaric.colorful.Colorful;
import org.polaric.colorful.ColorfulActivity;
import me.shouheng.omnilist.utils.ColorUtils;
import me.shouheng.omnilist.utils.ViewUtils;
import me.shouheng.omnilist.utils.preferences.ColorPreferences;
/**
* Created by wang shouheng on 2017/12/21.*/
public abstract class ThemedActivity extends ColorfulActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
updateTheme();
}
protected boolean isDarkTheme() {
return ColorUtils.isDarkTheme();
}
protected int primaryColor(){
return ColorUtils.primaryColor();
}
protected int accentColor() {
return ColorUtils.accentColor();
}
public void updateTheme() {
Colorful.config(this)
.primaryColor(ColorUtils.getThemeColor())
.accentColor(ColorUtils.getAccentColor())
.translucent(false)
.dark(ColorPreferences.getInstance().isDarkTheme())
.coloredNavigationBar(ColorPreferences.getInstance().isColoredNavigationBar())
.apply();
updateNavigationBar();
}
public void reUpdateTheme() {
updateTheme();
this.recreate();
}
public void updateNavigationBar() {
if (ColorPreferences.getInstance().isColoredNavigationBar()) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().setNavigationBarColor(ColorUtils.primaryColor());
}
} else {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().setNavigationBarColor(Color.BLACK);
}
}
}
public void setTranslucentStatusBar() {
Window window = getWindow();
ViewGroup mContentView = findViewById(Window.ID_ANDROID_CONTENT);
// set child View not fill the system window
View mChildView = mContentView.getChildAt(0);
if (mChildView != null) {
mChildView.setFitsSystemWindows(false);
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
int statusBarHeight = ViewUtils.getStatusBarHeight(this);
// First translucent status bar.
window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
// After LOLLIPOP just set LayoutParams.
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
window.setStatusBarColor(Color.TRANSPARENT);
// must call requestApplyInsets, otherwise it will have space in screen bottom
if (mChildView != null) {
ViewCompat.requestApplyInsets(mChildView);
}
} else {
ViewGroup mDecorView = (ViewGroup) window.getDecorView();
if (mDecorView.getTag() != null && mDecorView.getTag() instanceof Boolean && (Boolean)mDecorView.getTag()) {
mChildView = mDecorView.getChildAt(0);
// remove fake status bar view.
mContentView.removeView(mChildView);
mChildView = mContentView.getChildAt(0);
if (mChildView != null) {
FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) mChildView.getLayoutParams();
// cancel the margin top
if (lp != null && lp.topMargin >= statusBarHeight) {
lp.topMargin -= statusBarHeight;
mChildView.setLayoutParams(lp);
}
}
mDecorView.setTag(false);
}
}
}
}
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
protected void setStatusBarColor(int color) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().setStatusBarColor(color);
}
}
}
|
[
"shouheng2015@gmail.com"
] |
shouheng2015@gmail.com
|
6a077161595f13b42ee808e485ededb908eb29db
|
51cf675220f03e6e67c1f14dbc4218d0672e41b3
|
/decomp_muvi_apk/muvi_apk/app/src/main/java/com/arcsoft/mediaplus/datasource/db/RemoteDBMgr$NotifyTimer$1.java
|
7bb9b1b78fb08fb02812b862ed9b495f6c2cea74
|
[] |
no_license
|
guminov/muvi_kseries_research
|
3da0aa0d7e770d9fc261ebafc67565e59eb858f3
|
8c282872c9050eca546297e4ebfe5daf85555c6d
|
refs/heads/master
| 2022-01-09T14:44:41.420243
| 2015-03-28T18:36:06
| 2015-03-28T18:36:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,414
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.arcsoft.mediaplus.datasource.db;
import java.util.Map;
// Referenced classes of package com.arcsoft.mediaplus.datasource.db:
// RemoteDBMgr, DataTask
class val.serverudn
implements Runnable
{
final tifyChanges this$1;
final String val$serverudn;
public void run()
{
Map map = cess._mth100(this._cls1.this);
map;
JVM INSTR monitorenter ;
val.serverudn serverudn1 = (this._cls1)cess._mth100(this._cls1.this).get(val$serverudn);
if (serverudn1 != null)
{
break MISSING_BLOCK_LABEL_67;
}
serverudn1 = new it>(_fld0);
cess._mth100(this._cls1.this).put(val$serverudn, serverudn1);
serverudn1.eorootfolderadded = "AV".equals(mDataTask.getCurrentFolder());
serverudn1.eoadded = true;
serverudn1.geadded = true;
serverudn1.ioadded = true;
serverudn1.deradded = true;
map;
JVM INSTR monitorexit ;
tifyChanges();
return;
Exception exception;
exception;
map;
JVM INSTR monitorexit ;
throw exception;
}
()
{
this$1 = final_;
val$serverudn = String.this;
super();
}
}
|
[
"wyatt.neal+git@gmail.com"
] |
wyatt.neal+git@gmail.com
|
537db457fb5a9da1356fdc3955e43212e329325f
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/gradle--gradle/2cc5522f6b279cc85ab8be6fc51737bbd5b9d453/after/ForkPolicyInstance.java
|
97a355daec713db6ac6deef9a7593fd75009d4bd
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 976
|
java
|
/*
* Copyright 2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.gradle.api.testing.execution.fork.policies;
import org.gradle.api.testing.execution.fork.ForkInfo;
/**
* @author Tom Eyckmans
*/
public interface ForkPolicyInstance {
ForkPolicyForkInfo createForkPolicyForkInfo();
void initialize();
void prepareFork(ForkInfo forkInfo);
void startFork(ForkInfo forkInfo);
void stop();
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
13f0cea6376ba085a7604e7c6e162575bcec5698
|
c163a0fd500f73209911d13822a01c9ae3603fba
|
/code/cloud-mvn-parent/cloud-mvn-web/cloud-mvn-web-server/src/test/java/cn/spring/mvn/core/sunline/serviceimpl/SifSysRoleUserServiceImpl.java
|
fac323ef0553fdb7c71563f5700b9927a498d372
|
[] |
no_license
|
liutao1024/github-cloud
|
b5a7b74e8a87088fb770398841ce28374731b225
|
b7a01f609ba1ecd60959489a29a4ed5a821cff73
|
refs/heads/dev
| 2022-12-01T23:11:33.824205
| 2021-01-12T09:27:26
| 2021-01-12T09:27:26
| 167,465,435
| 1
| 1
| null | 2022-11-24T09:50:38
| 2019-01-25T01:34:46
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 3,012
|
java
|
package cn.spring.mvn.core.sunline.serviceimpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import cn.spring.mvn.core.sunline.dao.SifSysRoleUserDao;
import cn.spring.mvn.core.sunline.domain.SifSysRoleUser;
import cn.spring.mvn.core.sunline.domain.SifSysRoleUserPk;
import cn.spring.mvn.core.sunline.exception.SumpException;
import cn.spring.mvn.core.sunline.service.SifSysRoleUserService;
@Service("SifSysRoleUserService")
public class SifSysRoleUserServiceImpl implements SifSysRoleUserService {
@Autowired
SifSysRoleUserDao sifSysRoleUserDao;
// @Override
// public SifSysRoleUser expandEntity(SifSysRoleUser entity) {
// SifSysRoleUserPk id = new SifSysRoleUserPk(entity.getRegisterCd(), entity.getAuthType(),entity.getRoleCd(),entity.getUserCd());
// return sifSysRoleUserDao.findOne(id);
// }
@Override
public boolean checkUnique(SifSysRoleUserPk id) {
return !sifSysRoleUserDao.exists(id);
}
@Override
public SifSysRoleUser saveEntity(SifSysRoleUser entity) throws Throwable {
SifSysRoleUserPk id = new SifSysRoleUserPk(entity.getRegisterCd(), entity.getAuthType(),entity.getRoleCd(),entity.getUserCd());
if(!checkUnique(id)){
throw new SumpException("1001");
}
return sifSysRoleUserDao.save(entity);
}
@Override
public List<SifSysRoleUser> saveEntities(List<SifSysRoleUser> entities)
throws Throwable {
for(SifSysRoleUser entity:entities){
SifSysRoleUserPk id = new SifSysRoleUserPk(entity.getRegisterCd(), entity.getAuthType(),entity.getRoleCd(),entity.getUserCd());
if(!checkUnique(id)){
throw new SumpException("1001");
}
}
return sifSysRoleUserDao.save(entities);
}
@Override
public void deleteEntity(SifSysRoleUser entity) {
sifSysRoleUserDao.delete(entity);
}
@Override
public void deleteEntities(List<SifSysRoleUser> entities) {
sifSysRoleUserDao.delete(entities);
}
@Override
public void deleteAllInBatch() {
sifSysRoleUserDao.deleteAllInBatch();
}
@Override
public List<SifSysRoleUser> queryEntitiesByTemplate(SifSysRoleUser tmp) {
return sifSysRoleUserDao.queryEntitiesByTemplate(tmp);
}
@Override
public List<SifSysRoleUser> queryEntitiesByTemplateWithSort(SifSysRoleUser tmp, Sort sort){
return sifSysRoleUserDao.queryEntitiesByTemplate(tmp,sort);
}
@Override
public Page<SifSysRoleUser> queryEntitiesByTemplateWithPage(
SifSysRoleUser tmp, Pageable pageable) {
return sifSysRoleUserDao.queryEntitiesByTemplate(tmp, pageable);
}
@Override
public List<String> getUserListByRegisterCdAndAuthTypeAndRoleCd(
String registerCd, String authType, String roleCd) {
return sifSysRoleUserDao.getUserListByRegisterCdAndAuthTypeAndRoleCd(registerCd, authType, roleCd);
}
}
|
[
"979497772@qq.com"
] |
979497772@qq.com
|
469fcb879f0261f95e754ebe79e7deaa9f5dfe15
|
d0f8d354ebad4ded6391874d4b8ccb6f973af681
|
/core/src/main/java/juzu/impl/plugin/application/descriptor/ApplicationDescriptor.java
|
2fc63cd22799a5212102675f621466eb160aa0f9
|
[] |
no_license
|
luongtrunghieu/juzu
|
8c729d21bb5b7bbf2b1985c2cfe4b45d903373f2
|
2dd2e3f1bb2575f96b411dec9f9535d063a5b517
|
refs/heads/master
| 2021-01-18T04:45:51.147827
| 2014-04-25T01:58:44
| 2014-04-25T01:58:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,824
|
java
|
/*
* Copyright 2013 eXo Platform SAS
*
* 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 juzu.impl.plugin.application.descriptor;
import juzu.impl.plugin.PluginDescriptor;
import juzu.impl.inject.BeanDescriptor;
import juzu.impl.common.JSON;
import juzu.impl.common.Tools;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
/** @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a> */
public class ApplicationDescriptor extends PluginDescriptor {
/**
* Encapsulate application descriptor loading from an application name.
*
* @param loader the application loader
* @param applicationName the application name
* @return the descriptor
* @throws Exception any exception that would prevent the exception to be loaded
*/
public static ApplicationDescriptor create(ClassLoader loader, String applicationName) throws Exception {
if (loader == null) {
throw new NullPointerException("No null loader accepted");
}
// Application class
Class<?> applicationClass = loader.loadClass(applicationName + ".Application");
return new ApplicationDescriptor(loader, applicationClass);
}
/**
* Encapsulate application descriptor loading from an application name.
*
* @param applicationClass the application class
* @return the descriptor
* @throws Exception any exception that would prevent the exception to be loaded
*/
public static ApplicationDescriptor create(Class<?> applicationClass) throws Exception {
return new ApplicationDescriptor(applicationClass.getClassLoader(), applicationClass);
}
/** . */
private final Class<?> applicationClass;
/** . */
private final String packageName;
/** . */
private final String name;
/** . */
private final Class<?> packageClass;
/** . */
private final JSON config;
/** . */
private final ClassLoader loader;
private ApplicationDescriptor(ClassLoader loader, Class<?> applicationClass) throws Exception {
// Load config
JSON config;
InputStream in = null;
try {
String configPath = applicationClass.getPackage().getName().replace('.', '/') + "/config.json";
in = loader.getResourceAsStream(configPath);
String s = Tools.read(in);
config = (JSON)JSON.parse(s);
}
catch (IOException e) {
throw new AssertionError(e);
}
finally {
Tools.safeClose(in);
}
// Init this first before initing plugin so they can use it
this.applicationClass = applicationClass;
this.name = applicationClass.getSimpleName();
this.packageName = applicationClass.getPackage().getName();
this.packageClass = Tools.getPackageClass(applicationClass.getClassLoader(), applicationClass.getPackage().getName());
this.loader = loader;
this.config = config;
}
public JSON getConfig() {
return config;
}
@Override
public Iterable<BeanDescriptor> getBeans() {
return Collections.emptyList();
}
public Class<?> getPackageClass() {
return packageClass;
}
public Class<?> getApplicationClass() {
return applicationClass;
}
public ClassLoader getApplicationLoader() {
return loader;
}
public String getPackageName() {
return packageName;
}
public String getName() {
return name;
}
}
|
[
"julien@julienviet.com"
] |
julien@julienviet.com
|
0378bf025b3aeac24101a445620af33850f21221
|
6a4931e9e24c9a4c7b03adefeff17fb693af1c70
|
/src/main/java/edu/arizona/biosemantics/etcsite/server/DownloadServlet.java
|
a1c9468bbedc3461795c6192e6030e8399c33ade
|
[] |
no_license
|
biosemantics/etc-site
|
f15d6ad7c09289ffad1fc5ad2625fa0e21ea461c
|
8d63ceedecbb1643b7af62e93df3eb4f273847dc
|
refs/heads/master
| 2021-01-20T12:11:21.221942
| 2019-04-24T23:36:47
| 2019-04-24T23:36:47
| 12,303,888
| 1
| 0
| null | 2017-10-02T20:45:16
| 2013-08-22T17:58:17
|
Java
|
UTF-8
|
Java
| false
| false
| 2,964
|
java
|
package edu.arizona.biosemantics.etcsite.server;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.inject.Inject;
import edu.arizona.biosemantics.common.log.LogLevel;
import edu.arizona.biosemantics.etcsite.server.rpc.auth.AuthenticationService;
import edu.arizona.biosemantics.etcsite.shared.rpc.auth.AuthenticationResult;
import edu.arizona.biosemantics.etcsite.shared.rpc.auth.AuthenticationToken;
import edu.arizona.biosemantics.etcsite.shared.rpc.auth.IAuthenticationService;
public class DownloadServlet extends HttpServlet {
private static final long serialVersionUID = 6688917446498637833L;
private IAuthenticationService authenticationService;
@Inject
public DownloadServlet(AuthenticationService authenticationService) {
this.authenticationService = authenticationService;
}
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) {
int userID = Integer.parseInt(request.getParameter("userID"));
String sessionID = request.getParameter("sessionID");
String target = request.getParameter("target");
String directory = request.getParameter("directory");
AuthenticationResult authenticationResult =
authenticationService.isValidSession(new AuthenticationToken(userID, sessionID));
if(authenticationResult.getResult()) {
int BUFFER = 1024 * 100;
response.setContentType("application/octet-stream");
response.setHeader("Content-Disposition", "attachment;filename=" + "\"" +
target.substring(target.lastIndexOf(File.separator) + 1, target.length()) + "\"");
ServletOutputStream outputStream = null;
try {
outputStream = response.getOutputStream();
} catch (IOException e) {
String message = "Couldn't get output stream";
log(message, e);
log(LogLevel.ERROR, message, e);
}
byte[] fileBytes;
fileBytes = getFile(userID, target);
response.setContentLength(Long.valueOf(fileBytes.length).intValue());
response.setBufferSize(BUFFER);
if(outputStream != null) {
try {
outputStream.write(fileBytes);
outputStream.flush();
//outputStream.close();
} catch(IOException e) {
String message = "Couldn't write download to output stream";
log(message, e);
log(LogLevel.ERROR, message, e);
}
}
}
}
private byte[] getFile(int userID, String target) {
//Path path = Paths.get(Configuration.fileBase + File.separator + username + File.separator + target);
Path path = Paths.get(target);
byte[] data = null;
try {
data = Files.readAllBytes(path);
} catch (IOException e) {
String message = "Couldn't read file content";
log(message, e);
log(LogLevel.ERROR, message, e);
}
return data;
}
}
|
[
"thomas.rodenhausen@gmail.com"
] |
thomas.rodenhausen@gmail.com
|
eed8ae1ff0c9386aeb3abafea1b9c1f09f405877
|
65437ff42acc1ed0ba4c89055b6dc08dbf07198b
|
/src/main/java/com/ghx/auto/cm/ui/sso/page/NVDMyDocumentsPage.java
|
475cb96cb7bde4367997175a38868008fa46805e
|
[] |
no_license
|
DreamNk/auto-cm
|
352f77bbe883cd6dfab77f433870fbad0225060f
|
d5f944c5465cf863806434bfaca3f19fda69ba5b
|
refs/heads/master
| 2020-09-29T20:56:44.226535
| 2019-12-10T13:00:54
| 2019-12-10T13:00:54
| 227,121,131
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,761
|
java
|
package com.ghx.auto.cm.ui.sso.page;
import org.openqa.selenium.By;
import com.ghx.auto.cm.ui.page.CMAbstractPage;
public class NVDMyDocumentsPage extends CMAbstractPage<NVDMyDocumentsPage> {
//Common Documents tab----------------------------------------------------------------------------------
private By deleteLink1stInCommonDoc = By.xpath("(//a[contains(text(),'Delete')])");
private By deleteButtonOnPopup = By.xpath("//*[contains(@id,'deleteSuccess')]");
private By commonDocumentsTab = By.xpath("//*[contains(text(),'Common Documents')]");
private By commonDocumentOPVCSharable = By.xpath(".//*[@id='commonDocuments']/div[2]/div/table/tbody/tr/td[2]/span/span");
//Account Specific Documents tab------------------------------------------------------------------------
private By accountSpecificDocumentsTab = By.xpath("//*[contains(text(),'Account Specific Documents')]");
private By accountSpecificDocumentBusinessLicense = By.xpath(".//*[@id='accountSpecDocumentGrid']/div[2]/div[2]/table/tbody/tr/td[2]/span");
private By uploadLink1stInAccountSpecific = By.xpath("(//a[contains(text(),'Upload')])[1]");
private By uploadLink2ndInAccountSpecific = By.xpath("(//a[contains(text(),'Upload')])[2]");
private By uploadLink3rdInAccountSpecific = By.xpath("(//a[contains(text(),'Upload')])[3]");
// Optional Document tab--------------------------------------------------------------------------------
private By optionalDocumentsTab = By.xpath("//*[contains(text(),'Optional Documents')]");
private By optionalDocBadgePhoto = By.xpath(".//*[@id='documentlist']/div[2]/div[2]/table/tbody/tr/td[2]/span/span");
// Share Credentials -----------------------------------------------------------------------------------
private By shareCredentialsButton = By.id("shareCredentialsBtn");
//Upload document pop-up in My Documents page------------------------------------------------------------
private By effectiveDate = By.xpath("//*[contains(@name,'effectiveDate')]");
private By expirationDate = By.xpath("//*[contains(@name,'expirationDate')]");
private By saveButton = By.xpath("//*[contains(text(),'Save')]");
private By monthAndYearSelector = By.xpath("//*[contains(@ng-click,'toggleMode()')]");
private By continueButton = By.xpath("//*[contains(@id,'cautionContinue')]");
public NVDMyDocumentsPage click_delete_link() {
click_link(deleteLink1stInCommonDoc);
return wait_until(2);
}
public NVDMyDocumentsPage click_delete_button() {
click_link(deleteButtonOnPopup);
return wait_until(2);
}
public NVDMyDocumentsPage click_common_documents_tab_subtab() {
click_button(commonDocumentsTab);
return wait_until(2);
}
public NVDMyDocumentsPage verify_common_document_opvc_sharable(String companyDoc){
wait_until(1);
return verify_element_by_text(commonDocumentOPVCSharable, companyDoc);
}
public NVDMyDocumentsPage click_account_specific_documents_subtab() {
click_button(accountSpecificDocumentsTab);
return wait_until(2);
}
public NVDMyDocumentsPage veirfy_account_specific_document_text(String accountSpecificDoc){
wait_until(1);
return verify_element_by_text(accountSpecificDocumentBusinessLicense, accountSpecificDoc);
}
public NVDMyDocumentsPage click_optional_documents_tab(){
wait_until(1);
return click_button(optionalDocumentsTab);
}
public NVDMyDocumentsPage veirfy_optional_doc_badge_photo_text(String badgePhoto){
wait_until(1);
return verify_element_by_text(optionalDocBadgePhoto, badgePhoto);
}
public NVDMyDocumentsPage verify_share_credentials_button(String shareCredentials){
wait_until(1);
return verify_element_by_text(shareCredentialsButton, shareCredentials);
}
public NVDMyDocumentsPage click_upload_link_of_1st_doc() {
click_button(uploadLink1stInAccountSpecific);
return wait_until(2);
}
public NVDMyDocumentsPage click_upload_link_of_2nd_doc() {
return click_button(uploadLink2ndInAccountSpecific);
}
public NVDMyDocumentsPage click_upload_link_of_3rd_doc() {
return click_button(uploadLink3rdInAccountSpecific);
}
// upload doc pop-up----------------------------------------------------------------------------------------
public NVDMyDocumentsPage enter_effective_date(String mm_dd_yy) {
wait_until(1);
return enter(effectiveDate, mm_dd_yy);
}
public NVDMyDocumentsPage enter_expiration_date(String mm_dd_yy) {
wait_until(1);
return enter(expirationDate, mm_dd_yy);
}
public NVDMyDocumentsPage click_save_button() {
click(saveButton);
return wait_until(3);
}
public NVDMyDocumentsPage click_continue_button() {
wait_until(2);
return click(continueButton);
}
}
|
[
"nban@netchexonline.com"
] |
nban@netchexonline.com
|
06a0c03839af75b07bca1317a2ae440630513d2b
|
ece153c7951245fd47b1e7e12c33896f557e68db
|
/common-crawler-comb/src/main/java/com/crawler/customs/domain/json/Customs.java
|
bd560483cc247eee53d831eda63af856f7d21ad0
|
[] |
no_license
|
zhonghuayichen/crawler
|
05ed2a66adb1ea13ea7b43ca44ab5345c52c45ab
|
056f388477afa63bed5cf16e45e0ac0e95681d7d
|
refs/heads/master
| 2021-01-13T04:59:39.367625
| 2017-02-07T08:25:25
| 2017-02-07T08:25:25
| 81,163,841
| 0
| 0
| null | 2017-02-07T03:49:51
| 2017-02-07T03:49:51
| null |
UTF-8
|
Java
| false
| false
| 4,428
|
java
|
package com.crawler.customs.domain.json;
import java.io.Serializable;
import java.util.List;
public class Customs implements Serializable {
/**
*
*/
private static final long serialVersionUID = 7521228513011331999L;
private String cRCode;// 海关注册编码
private String socialCreditCode;// 社会信用代码
private String customsName;// 注册海关
private String recordDate;// 注册日期
private String barCode;// 组织机构代码
private String bCName;// 企业中文名称
private String regAddress;// 工商注册地址
private String admDivision;// 行政区划
private String ecoReg;// 经济区划
private String economicCategory;// 经济类型
private String busType;// 经营类别
private String businessLine;// 行业种类
private String customsValidity;// 报关有效期
private String customsMarks;// 海关注销标志
private String annualReport;// 年报情况
private List<CreditRate> creditRate;// 信用等级
private List<AdmPuInformation> admPuInformation;// 行政处罚信息
public String getcRCode() {
return cRCode;
}
public void setcRCode(String cRCode) {
this.cRCode = cRCode;
}
public String getSocialCreditCode() {
return socialCreditCode;
}
public void setSocialCreditCode(String socialCreditCode) {
this.socialCreditCode = socialCreditCode;
}
public String getCustomsName() {
return customsName;
}
public void setCustomsName(String customsName) {
this.customsName = customsName;
}
public String getRecordDate() {
return recordDate;
}
public void setRecordDate(String recordDate) {
this.recordDate = recordDate;
}
public String getBarCode() {
return barCode;
}
public void setBarCode(String barCode) {
this.barCode = barCode;
}
public String getbCName() {
return bCName;
}
public void setbCName(String bCName) {
this.bCName = bCName;
}
public String getRegAddress() {
return regAddress;
}
public void setRegAddress(String regAddress) {
this.regAddress = regAddress;
}
public String getAdmDivision() {
return admDivision;
}
public void setAdmDivision(String admDivision) {
this.admDivision = admDivision;
}
public String getEcoReg() {
return ecoReg;
}
public void setEcoReg(String ecoReg) {
this.ecoReg = ecoReg;
}
public String getEconomicCategory() {
return economicCategory;
}
public void setEconomicCategory(String economicCategory) {
this.economicCategory = economicCategory;
}
public String getBusType() {
return busType;
}
public void setBusType(String busType) {
this.busType = busType;
}
public String getBusinessLine() {
return businessLine;
}
public void setBusinessLine(String businessLine) {
this.businessLine = businessLine;
}
public String getCustomsValidity() {
return customsValidity;
}
public void setCustomsValidity(String customsValidity) {
this.customsValidity = customsValidity;
}
public String getCustomsMarks() {
return customsMarks;
}
public void setCustomsMarks(String customsMarks) {
this.customsMarks = customsMarks;
}
public String getAnnualReport() {
return annualReport;
}
public void setAnnualReport(String annualReport) {
this.annualReport = annualReport;
}
public List<CreditRate> getCreditRate() {
return creditRate;
}
public void setCreditRate(List<CreditRate> creditRate) {
this.creditRate = creditRate;
}
public List<AdmPuInformation> getAdmPuInformation() {
return admPuInformation;
}
public void setAdmPuInformation(List<AdmPuInformation> admPuInformation) {
this.admPuInformation = admPuInformation;
}
@Override
public String toString() {
return "Customs [cRCode=" + cRCode + ", socialCreditCode="
+ socialCreditCode + ", customsName=" + customsName
+ ", recordDate=" + recordDate + ", barCode=" + barCode
+ ", bCName=" + bCName + ", regAddress=" + regAddress
+ ", admDivision=" + admDivision + ", ecoReg=" + ecoReg
+ ", economicCategory=" + economicCategory + ", busType="
+ busType + ", businessLine=" + businessLine
+ ", customsValidity=" + customsValidity + ", customsMarks="
+ customsMarks + ", annualReport=" + annualReport
+ ", creditRate=" + creditRate + ", admPuInformation="
+ admPuInformation + "]";
}
}
|
[
"gengjie@upbase.com.cn"
] |
gengjie@upbase.com.cn
|
89e1e26831ac425fad3043b1ddc7046d48d81570
|
ecab69a023fc0b0fa0306112f207622bbc948975
|
/src/main/java/net/kunmc/lab/vplayer/client/patch/VideoPatchRecieveEventClient.java
|
0f6b8b6bcb7a7eed170ff5c6f37a338f84fec4ea
|
[] |
no_license
|
kbjn/VideoPlayer
|
d3983a7907242e3707b4e5b1a8c596c02f3f2f9c
|
6d6b04c624585ca614f7daf8122c7441b31d1223
|
refs/heads/master
| 2023-09-01T20:23:19.823518
| 2021-05-17T11:16:55
| 2021-05-17T11:16:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 456
|
java
|
package net.kunmc.lab.vplayer.client.patch;
import net.kunmc.lab.vplayer.common.patch.VideoPatch;
import net.kunmc.lab.vplayer.common.patch.VideoPatchEvent;
import net.kunmc.lab.vplayer.common.patch.VideoPatchOperation;
import java.util.List;
public class VideoPatchRecieveEventClient extends VideoPatchEvent {
public VideoPatchRecieveEventClient(VideoPatchOperation operation, List<VideoPatch> patches) {
super(operation, patches);
}
}
|
[
"kamesuta@gmail.com"
] |
kamesuta@gmail.com
|
27954daba378be476cd92731031eb863f732cc97
|
7fc7b8ea77698230ac6fa6710fc872a7e5ea16cf
|
/menggeba/mall-base-service/src/main/java/com/vivebest/mall/dao/impl/ShippingCalculateDaoImpl.java
|
7a6cee8e80f35f2eefc046ff56d800e09cb93184
|
[] |
no_license
|
1473478496/JavaMaven
|
1c8f82868a3cd08e40ddc16e478678d50b2fcc6a
|
6affc09c8207103f2481957f850ecbbecd6d2936
|
refs/heads/master
| 2020-03-07T16:54:07.660234
| 2018-04-01T04:48:32
| 2018-04-01T04:48:32
| 127,591,841
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,666
|
java
|
package com.vivebest.mall.dao.impl;
import java.util.List;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import org.springframework.stereotype.Repository;
import com.vivebest.mall.core.dao.impl.BaseDaoImpl;
import com.vivebest.mall.dao.ShippingCalculateDao;
import com.vivebest.mall.entity.Area;
import com.vivebest.mall.entity.ShippingCalculate;
import com.vivebest.mall.entity.ShippingCalculate.AreaType;
import com.vivebest.mall.entity.ShippingMethod;
/**
* ShippingCalculate Dao的实现
*
* @author junly
*
*/
@Repository("shippingCalculateDaoImpl")
public class ShippingCalculateDaoImpl extends BaseDaoImpl<ShippingCalculate, Long>implements ShippingCalculateDao {
public List<ShippingCalculate> findByShipAndAreaType(AreaType areaType, Area consigneeArea,
ShippingMethod shippingMethod) {
// String jpql = "select shippingCalculate from ShippingCalculate
// changes where lower(ShippingCalculate.areaType) = lower(:areaType)and
// lower(ShippingCalculate.shippingArea.parent) = lower(:shippingArea)
// and lower(ShippingCalculate.consigneeArea.parent) =
// lower(:receArea)";
// List<ShippingCalculate> shippingCalculates =
// entityManager.createQuery(jpql, ShippingCalculate.class)
// .setFlushMode(FlushModeType.COMMIT).setParameter("areaType",
// areaType)
// .setParameter("shippingArea", shippingArea).setParameter("receArea",
// receArea).getResultList();
// if (null != shippingCalculates && shippingCalculates.isEmpty()) {
// return null;
// } else {
// return shippingCalculates;
// }
CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();
CriteriaQuery<ShippingCalculate> criteriaQuery = criteriaBuilder.createQuery(ShippingCalculate.class);
Root<ShippingCalculate> root = criteriaQuery.from(ShippingCalculate.class);
criteriaQuery.select(root);
Predicate restrictions = criteriaBuilder.conjunction();
if (areaType != null) {
restrictions = criteriaBuilder.and(restrictions, criteriaBuilder.equal(root.get("areaType"), areaType));
}
if (consigneeArea != null) {
restrictions = criteriaBuilder.and(restrictions,
criteriaBuilder.equal(root.get("consigneeArea"), consigneeArea));
}
if (shippingMethod != null) {
restrictions = criteriaBuilder.and(restrictions,
criteriaBuilder.equal(root.get("shippingMethod"), shippingMethod));
}
criteriaQuery.where(restrictions);
criteriaQuery.orderBy(criteriaBuilder.asc(root.get("firstPrice")));
return super.findList(criteriaQuery, null, null, null, null);
}
}
|
[
"1473478496@qq.com"
] |
1473478496@qq.com
|
0f7de1a05f1f08f0553bab6f2cc3f2eadab89e7e
|
39390e1c0bf53d7f2e44b5242f1fb2b47300aaf7
|
/trunk/EZMIS/jteap-system/com/jteap/system/login/web/LoginAction.java
|
e7a9aa04505da0580e353a383aac7864cbb3e2c8
|
[] |
no_license
|
BGCX067/ezmis-svn-to-git
|
3e061173c86055de6a1c0204271b3d3276cea7cf
|
24b15ab52a8d750a0ce782a6b64226583c859e03
|
refs/heads/master
| 2021-01-11T11:08:51.702990
| 2015-12-28T14:08:08
| 2015-12-28T14:08:08
| 48,874,376
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,078
|
java
|
package com.jteap.system.login.web;
import javax.servlet.http.HttpSession;
import com.jteap.core.Constants;
import com.jteap.core.dao.HibernateEntityDao;
import com.jteap.core.support.LogMethod;
import com.jteap.core.web.AbstractAction;
import com.jteap.system.person.manager.PersonManager;
import com.jteap.system.person.manager.RootManager;
import com.jteap.system.person.model.Person;
/**
* 负责登录及注销的动作
* @author tantyou
*
*/
@SuppressWarnings("serial")
public class LoginAction extends AbstractAction{
private String userLoginName; //用户名
private String username;
private String userPwd; //用户密码
private PersonManager personManager; //当前管理对象
private RootManager rootManager; //平台管理员管理对象
/**
* 登录
*/
@LogMethod(name="登录系统")
public String execute() throws Exception {
this.clearErrorsAndMessages();
//如果是平台管理员登录,验证方式不一样
Person person;
if(username.equals(Constants.ADMINISTRATOR_ACCOUNT)){
person=rootManager.validate(userPwd);
}else{
person=personManager.findPersonByLoginNameAndPwd(username, userPwd);
}
if(person==null){
this.addActionMessage("*用户名或密码错误");
return INPUT;
}else{
if(person.getStatus()!=null && person.getStatus().equals(Person.PERSON_STATUS_LOCKED)){
this.addActionMessage("*当前用户已被锁定,如有任何问题请联系管理人员");
return INPUT;
}
this.setSessionInfo(person);
return SUCCESS;
}
}
/**
* 登出动作
* @return
* @throws Exception
*/
@LogMethod(name="注销",logpos=LogMethod.LOGPOS.BEFORE)
public String logout() throws Exception{
setSessionInfo(null);
return SUCCESS;
}
/**
* 设置用户的会话信息
* @param personId
* @param personLoginName
* @param personName
*/
private void setSessionInfo(Person person){
HttpSession session=request.getSession();
String personLoginName=null;
String personName=null;
String personId=null;
String personRoles = null;
String personGroups = null;
if(person!=null){
personLoginName=person.getUserLoginName();
personName=person.getUserName();
personId=person.getId().toString();
personRoles = person.getMyRoles();
personGroups = person.getMyGroupNames();
}
session.setAttribute(Constants.SESSION_CURRENT_PERSON_LOGINNAME, personLoginName);
session.setAttribute(Constants.SESSION_CURRENT_PERSON_NAME, personName);
session.setAttribute(Constants.SESSION_CURRENT_PERSONID, personId);
session.setAttribute("SESSION_CURRENT_PERSONROLES", personRoles);
session.setAttribute("SESSION_CURRENT_GROUP_NAME", personGroups);
}
/**
* 设定当前管理对象
*/
@SuppressWarnings("unchecked")
@Override
public HibernateEntityDao getManager() {
return personManager;
}
//geter and setter method======================= start
public PersonManager getPersonManager() {
return personManager;
}
public void setPersonManager(PersonManager personManager) {
this.personManager = personManager;
}
public String getUserLoginName() {
return userLoginName;
}
public void setUserLoginName(String userLoginName) {
this.userLoginName = userLoginName;
}
public String getUserPwd() {
return userPwd;
}
public void setUserPwd(String userPwd) {
this.userPwd = userPwd;
}
public RootManager getRootManager() {
return rootManager;
}
public void setRootManager(RootManager rootManager) {
this.rootManager = rootManager;
}
// geter and setter method======================= end
@Override
public String[] listJsonProperties() {
return null;
}
@Override
public String[] updateJsonProperties() {
return null;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
}
|
[
"you@example.com"
] |
you@example.com
|
85b5822c1439cf5491cc7043085fb5bd9e3575ae
|
d0f2e170d8b8c14339ccdbd9f6caedc7f5521849
|
/src/main/java/com/puc/tcc/vendas/service/PedidoService.java
|
9062ec5f33aa448be6b8e8ed9ca5f4d0c892a457
|
[] |
no_license
|
matheustf/tcc-vendas
|
7e566ed2147a744ae2e09bdba06e5485cf4e7356
|
557960b5a8cbcf746dd4f46b34170236463f2ed5
|
refs/heads/master
| 2020-03-24T11:43:33.815287
| 2018-10-16T12:51:27
| 2018-10-16T12:51:27
| 142,693,561
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 772
|
java
|
package com.puc.tcc.vendas.service;
import java.util.List;
import org.springframework.http.ResponseEntity;
import com.puc.tcc.vendas.dtos.PedidoDTO;
import com.puc.tcc.vendas.exceptions.VendaException;
public interface PedidoService {
PedidoDTO consultar(Long id) throws VendaException;
PedidoDTO incluir(PedidoDTO pedidoDTO) throws VendaException;
PedidoDTO atualizar(Long id, PedidoDTO pedidoDTODetails) throws VendaException;
ResponseEntity<PedidoDTO> deletar(Long id) throws VendaException;
List<PedidoDTO> buscarTodos();
PedidoDTO pagarPedido(String codigoDoPedido) throws VendaException;
PedidoDTO efetuarPedido(String codigoDoPedido) throws VendaException;
List<PedidoDTO> buscarPedidosPorCliente(String idCliente) throws VendaException;
}
|
[
"teles.matheus@hotmail.com"
] |
teles.matheus@hotmail.com
|
a89c6d33d00358a171c21468860e0a914c0b0fd7
|
2fa04f21cbb7203b468f7598df6696a88b05a286
|
/bus-health/src/main/java/org/aoju/bus/health/builtin/hardware/AbstractUsbDevice.java
|
3639e42c0cb2e7bc0978b2d5a56875f30ee838fd
|
[
"MIT"
] |
permissive
|
jingshuai5213/bus
|
17bb475fd76592682123488608a559abec788f81
|
f3ec545617acffaf2668ea78e974a05be268cfd1
|
refs/heads/master
| 2022-11-16T00:35:46.037858
| 2020-07-02T09:35:10
| 2020-07-02T09:35:10
| 254,873,385
| 0
| 0
|
MIT
| 2020-07-02T09:35:11
| 2020-04-11T13:26:50
| null |
UTF-8
|
Java
| false
| false
| 4,952
|
java
|
/*********************************************************************************
* *
* The MIT License (MIT) *
* *
* Copyright (c) 2015-2020 aoju.org OSHI and other contributors. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy *
* of this software and associated documentation files (the "Software"), to deal *
* in the Software without restriction, including without limitation the rights *
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
* copies of the Software, and to permit persons to whom the Software is *
* furnished to do so, subject to the following conditions: *
* *
* The above copyright notice and this permission notice shall be included in *
* all copies or substantial portions of the Software. *
* *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
* THE SOFTWARE. *
********************************************************************************/
package org.aoju.bus.health.builtin.hardware;
import org.aoju.bus.core.annotation.Immutable;
import org.aoju.bus.core.lang.Normal;
import org.aoju.bus.core.lang.Symbol;
import java.util.Collections;
import java.util.List;
/**
* USB设备
*
* @author Kimi Liu
* @version 6.0.1
* @since JDK 1.8+
*/
@Immutable
public abstract class AbstractUsbDevice implements UsbDevice {
private final String name;
private final String vendor;
private final String vendorId;
private final String productId;
private final String serialNumber;
private final String uniqueDeviceId;
private final List<UsbDevice> connectedDevices;
public AbstractUsbDevice(String name, String vendor, String vendorId, String productId, String serialNumber,
String uniqueDeviceId, List<UsbDevice> connectedDevices) {
this.name = name;
this.vendor = vendor;
this.vendorId = vendorId;
this.productId = productId;
this.serialNumber = serialNumber;
this.uniqueDeviceId = uniqueDeviceId;
this.connectedDevices = Collections.unmodifiableList(connectedDevices);
}
/**
* 缩进链接的USB设备的辅助方法
*
* @param usbDevice USB设备进行打印
* @param indent 缩进的空格数
*/
private static String indentUsb(UsbDevice usbDevice, int indent) {
String indentFmt = indent > 2 ? String.format("%%%ds|-- ", indent - 4) : String.format("%%%ds", indent);
StringBuilder sb = new StringBuilder(String.format(indentFmt, Normal.EMPTY));
sb.append(usbDevice.getName());
if (usbDevice.getVendor().length() > 0) {
sb.append(" (").append(usbDevice.getVendor()).append(Symbol.C_PARENTHESE_RIGHT);
}
if (usbDevice.getSerialNumber().length() > 0) {
sb.append(" [s/n: ").append(usbDevice.getSerialNumber()).append(Symbol.C_BRACKET_RIGHT);
}
for (UsbDevice connected : usbDevice.getConnectedDevices()) {
sb.append('\n').append(indentUsb(connected, indent + 4));
}
return sb.toString();
}
@Override
public String getName() {
return this.name;
}
@Override
public String getVendor() {
return this.vendor;
}
@Override
public String getVendorId() {
return this.vendorId;
}
@Override
public String getProductId() {
return this.productId;
}
@Override
public String getSerialNumber() {
return this.serialNumber;
}
@Override
public String getUniqueDeviceId() {
return this.uniqueDeviceId;
}
@Override
public List<UsbDevice> getConnectedDevices() {
return this.connectedDevices;
}
@Override
public int compareTo(UsbDevice usb) {
return getName().compareTo(usb.getName());
}
@Override
public String toString() {
return indentUsb(this, 1);
}
}
|
[
"839536@qq.com"
] |
839536@qq.com
|
f9095139980b2f442b032b44965521d3cb49cee8
|
2c0004276a6bddbb66c0ddfc6d0b1528ccafa321
|
/mdagenerator/src/test/java/es/caib/seycon/ng/model/AttributeMappingEntity.java
|
88c7f6556dd77279c6435d5122abebb5a8a4a5a3
|
[] |
no_license
|
SoffidIAM/tools
|
95e78ab1f8f196b875f27383d492798dd55a3535
|
7f39a223ff263dffb7ada7aca136cbc6b6041381
|
refs/heads/master
| 2023-04-07T10:11:48.457811
| 2023-04-01T16:07:32
| 2023-04-01T16:07:32
| 20,801,807
| 0
| 0
| null | 2023-01-29T14:49:10
| 2014-06-13T11:15:53
|
Java
|
UTF-8
|
Java
| false
| false
| 748
|
java
|
//
// (C) 2013 Soffid
//
// This file is licensed by Soffid under GPL v3 license
//
package es.caib.seycon.ng.model;
import com.soffid.mda.annotation.*;
@Entity (table="SC_ATRMAP" )
@Depends ({es.caib.seycon.ng.comu.AttributeMapping.class,
es.caib.seycon.ng.model.ObjectMappingEntity.class})
public abstract class AttributeMappingEntity {
@Column (name="ATM_ID")
@Nullable
@Identifier
public java.lang.Long id;
@Column (name="ATM_SOFATR")
public java.lang.String soffidAttribute;
@Column (name="ATM_SYSATR")
public java.lang.String systemAttribute;
@Column (name="ATM_DIRECT")
public es.caib.seycon.ng.comu.AttributeDirection direction;
@Column (name="ATM_OBM_ID")
public es.caib.seycon.ng.model.ObjectMappingEntity object;
}
|
[
"gbuades@soffid.com"
] |
gbuades@soffid.com
|
2bbb511023dc0c43c676d0316d8b9467bae2ff46
|
d87e0fa1285ccb39f25466ceb7293f3787804f39
|
/src/som/primitives/arithmetic/SqrtPrim.java
|
0b8499016caaf71e662d48d94195252c7aad704a
|
[
"MIT"
] |
permissive
|
woess/TruffleSOM
|
5a72f7b4ebfd697f0e753e73f80d6e4c12ef13ad
|
12a975a4115aebab68caaf2e0ba98bc16600748b
|
refs/heads/master
| 2020-12-11T05:38:41.638472
| 2014-01-27T14:40:56
| 2014-01-27T14:40:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,117
|
java
|
package som.primitives.arithmetic;
import java.math.BigInteger;
import som.interpreter.nodes.UnaryMessageNode;
import som.vm.Universe;
import som.vmobjects.SSymbol;
import com.oracle.truffle.api.dsl.Specialization;
public abstract class SqrtPrim extends UnaryMessageNode {
public SqrtPrim(final SSymbol selector, final Universe universe) { super(selector, universe); }
public SqrtPrim(final SqrtPrim node) { this(node.selector, node.universe); }
private Number intOrBigInt(final long val) {
if (val > Integer.MAX_VALUE || val < Integer.MIN_VALUE) {
return BigInteger.valueOf(val);
} else {
return (int) val;
}
}
@Specialization
public Object doInteger(final int receiver) {
double result = Math.sqrt(receiver);
if (result == Math.rint(result)) {
return intOrBigInt((long) result);
} else {
return result;
}
}
@Specialization
public double doBigInteger(final BigInteger receiver) {
return Math.sqrt(receiver.doubleValue());
}
@Specialization
public double doDouble(final double receiver) {
return Math.sqrt(receiver);
}
}
|
[
"git@stefan-marr.de"
] |
git@stefan-marr.de
|
3fc616d1605be6ee47f7478565f087491292e6f0
|
328865cc6b07a944022860d7e17aec9f20124554
|
/src/main/java/org/esupportail/publisher/config/metrics/JavaMailHealthIndicator.java
|
edb49104f9ed68386bb5f8f5ab27d7b07029161b
|
[
"LGPL-2.0-or-later",
"CDDL-1.1",
"EPL-1.0",
"CC0-1.0",
"GPL-2.0-only",
"BSD-3-Clause",
"Classpath-exception-2.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LGPL-2.1-only",
"MPL-2.0",
"LGPL-2.1-or-later",
"JSON",
"EPL-2.0",
"CDDL-1.0",
"MIT"
] |
permissive
|
EsupPortail/esup-publisher
|
127f15304473a42f0ea1d159ef4e4eb9f788ab58
|
fec395e0813b193e3ed7775dab192c52f4ee4c0d
|
refs/heads/main
| 2023-06-09T21:41:11.679209
| 2023-04-21T08:22:37
| 2023-05-02T10:26:24
| 30,041,549
| 1
| 3
|
Apache-2.0
| 2023-09-01T09:38:06
| 2015-01-29T21:12:01
|
Java
|
UTF-8
|
Java
| false
| false
| 2,158
|
java
|
/**
* Copyright (C) 2014 Esup Portail http://www.esup-portail.org
* @Author (C) 2012 Julien Gribonvald <julien.gribonvald@recia.fr>
*
* 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.esupportail.publisher.config.metrics;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.actuate.health.AbstractHealthIndicator;
import org.springframework.boot.actuate.health.Health;
import org.springframework.mail.javamail.JavaMailSenderImpl;
import org.springframework.util.Assert;
import javax.mail.MessagingException;
/**
* SpringBoot Actuator HealthIndicator check for JavaMail.
*/
public class JavaMailHealthIndicator extends AbstractHealthIndicator {
private final Logger log = LoggerFactory.getLogger(JavaMailHealthIndicator.class);
private JavaMailSenderImpl javaMailSender;
public JavaMailHealthIndicator(JavaMailSenderImpl javaMailSender) {
Assert.notNull(javaMailSender, "javaMailSender must not be null");
this.javaMailSender = javaMailSender;
}
@Override
protected void doHealthCheck(Health.Builder builder) throws Exception {
log.debug("Initializing JavaMail health indicator");
try {
javaMailSender.getSession().getTransport().connect(javaMailSender.getHost(),
javaMailSender.getPort(),
javaMailSender.getUsername(),
javaMailSender.getPassword());
builder.up();
} catch (MessagingException e) {
log.debug("Cannot connect to e-mail server. Error: {}", e.getMessage());
builder.down(e);
}
}
}
|
[
"julien.gribonvald@gmail.com"
] |
julien.gribonvald@gmail.com
|
3e9f515e651c1328523984982e41a9c98edbe820
|
76fb910a2d7d8d5f43366a43d4fb6b5427d18325
|
/d2k4_source/D2K_v4_0_2/src/basic/src/ncsa/d2k/modules/core/discovery/cluster/vis/dendogram/GraphSettings.java
|
77b56b25cf9880f88e8ed75ecfee2e55a0115b1b
|
[] |
no_license
|
EISALab/IMOGAgroundwater
|
2bf8342a89753c0fefa95a45809cdc376b307f4a
|
6bf1bd74e7fbc59082fec127b4b6b1537076c180
|
refs/heads/master
| 2016-09-06T04:49:14.305434
| 2013-06-12T16:22:52
| 2013-06-12T16:22:52
| 10,646,593
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,012
|
java
|
package ncsa.d2k.modules.core.discovery.cluster.vis.dendogram;
public class GraphSettings {
public String title, xaxis, yaxis;
public Integer xminimum, xmaximum;
public Integer yminimum, ymaximum;
public int gridsize;
public boolean displaygrid;
public boolean displayscale;
public boolean displaylegend;
public boolean displaytickmarks;
public boolean displaytitle;
public boolean displayaxislabels;
public GraphSettings() {
title = "";
xaxis = "";
yaxis = "";
xminimum = null;
xmaximum = null;
yminimum = null;
ymaximum = null;
gridsize = 10;
displaygrid = true;
displayscale = true;
displaylegend = true;
displaytickmarks = true;
displaytitle = true;
displayaxislabels = true;
}
}
|
[
"krishjadhwani@gmail.com"
] |
krishjadhwani@gmail.com
|
60935f41070ba875541b60734fb6da1daa83184e
|
20eb62855cb3962c2d36fda4377dfd47d82eb777
|
/IntroClassJava/dataset/grade/bfad6d21d636def8e9e72910c3eb0815f5747669e3a60fb10c6f7f421082d18e548dcfc5d4717bb6da075c36f067b37858d11528ce796b3226ae33719c5007ce/000/mutations/19/grade_bfad6d21_000.java
|
6af043a6e7a75c6c22ce715fb60a32c5b757d2ed
|
[] |
no_license
|
ozzydong/CapGen
|
356746618848065cce4e253e5d3c381baa85044a
|
0ba0321b6b1191443276021f1997833342f02515
|
refs/heads/master
| 2023-03-18T20:12:02.923428
| 2020-08-21T03:08:28
| 2020-08-21T03:08:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,644
|
java
|
package introclassJava;
class IntObj {
public int value;
public IntObj () {
} public IntObj (int i) {
value = i;
}
}
class FloatObj {
public float value;
public FloatObj () {
} public FloatObj (float i) {
value = i;
}
}
class LongObj {
public long value;
public LongObj () {
} public LongObj (long i) {
value = i;
}
}
class DoubleObj {
public double value;
public DoubleObj () {
} public DoubleObj (double i) {
value = i;
}
}
class CharObj {
public char value;
public CharObj () {
} public CharObj (char i) {
value = i;
}
}
public class grade_bfad6d21_000 {
public java.util.Scanner scanner;
public String output = "";
public static void main (String[]args) throws Exception {
grade_bfad6d21_000 mainClass = new grade_bfad6d21_000 ();
String output;
if (args.length > 0) {
mainClass.scanner = new java.util.Scanner (args[0]);
} else {
mainClass.scanner = new java.util.Scanner (System.in);
}
mainClass.exec ();
System.out.println (mainClass.output);
}
public void exec () throws Exception {
FloatObj thresha = new FloatObj (), threshb = new FloatObj (), threshc =
new FloatObj (), threshd = new FloatObj (), stuscore = new FloatObj ();
output +=
(String.format
("Enter thresholds for A, B, C, D\nin that order, decreasing percentages > "));
thresha.value = scanner.nextFloat ();
threshb.value = scanner.nextFloat ();
threshc.value = scanner.nextFloat ();
threshd.value = scanner.nextFloat ();
output +=
(String.format ("Thank you. Now enter student score (percent) >"));
stuscore.value = scanner.nextFloat ();
if (stuscore.value > thresha.value) {
output += (String.format ("Student has an A grade\n"));
}
if ((stuscore.value < thresha.value) && (stuscore.value >= threshb.value)) {
output += (String.format ("Student has an B grade\n"));
}
if ((stuscore.value < threshb.value) && (stuscore.value >= threshc.value)) {
output += (String.format ("Student has an C grade\n"));
}
if ((stuscore.value < threshc.value) && (stuscore.value >= threshd.value)) {
output += (String.format ("Student has an D grade\n"));
}
if ((stuscore.value) < (thresha.value)) {
output += (String.format ("Student has failed the course"));
}
if (true)
return;;
}
}
|
[
"justinwm@163.com"
] |
justinwm@163.com
|
994d743eb12b067493ef0c7c813ac9568787a9cd
|
15633d9a4372db55dc8e3fb9b809bddbdf1e817b
|
/am-query-test/src/main/java/com/mxi/mx/core/query/ppc/task/GetOnOrderPartRequestsTest.java
|
668ff3109bcf3cc1d5f299c3253c1ab90ec691c8
|
[] |
no_license
|
hqottsz/MXI
|
cf8ed135ea86ddf93fae68b4ed76bec98770f27a
|
f7000c5015ed31c0da722ad3750d7205d092e37e
|
refs/heads/master
| 2020-05-26T14:43:40.340846
| 2019-05-23T17:33:50
| 2019-05-23T17:33:50
| 188,259,832
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,310
|
java
|
package com.mxi.mx.core.query.ppc.task;
import static org.junit.Assert.assertEquals;
import java.util.Date;
import java.util.GregorianCalendar;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import com.mxi.am.db.connection.DatabaseConnectionRule;
import com.mxi.am.db.connection.executor.QueryExecutor;
import com.mxi.am.db.connection.loader.DataLoaders;
import com.mxi.mx.common.dataset.DataSet;
import com.mxi.mx.common.dataset.DataSetArgument;
import com.mxi.mx.core.key.TaskKey;
/**
* This class performs unit testing on the query file with the same package and name.
*/
@RunWith( BlockJUnit4ClassRunner.class )
public class GetOnOrderPartRequestsTest {
@ClassRule
public static DatabaseConnectionRule sDatabaseConnectionRule = new DatabaseConnectionRule();
@BeforeClass
public static void loadData() {
DataLoaders.load( sDatabaseConnectionRule.getConnection(), GetOnOrderPartRequestsTest.class );
}
private static final TaskKey WORK_PACKAGE = new TaskKey( 4650, 100 );
private static final TaskKey TASK_WITH_ON_ORDER_PART_REQ = new TaskKey( 4650, 1 );
/**
* Tests that the query returns tasks that have part requests with an Estimated Arrival Time
*
* @throws Exception
* unknown exception is thrown.
*/
@Test
public void testQuery() throws Exception {
DataSetArgument lArgs = new DataSetArgument();
lArgs.add( WORK_PACKAGE, "aWpDbId", "aWpId" );
DataSet lQs = QueryExecutor.executeQuery( sDatabaseConnectionRule.getConnection(),
QueryExecutor.getQueryName( getClass() ), lArgs );
// Asserts only the part request with an ETA is returned
assertEquals( 1, lQs.getRowCount() );
lQs.next();
Date lEstimatedArrivalDt =
new GregorianCalendar( 2016, GregorianCalendar.JULY, 7, 9, 0, 0 ).getTime();
assertEquals( TASK_WITH_ON_ORDER_PART_REQ,
lQs.getKey( TaskKey.class, "sched_db_id", "sched_id" ) );
assertEquals( lEstimatedArrivalDt, lQs.getDate( "est_arrival_dt" ) );
assertEquals( "PART ABC", lQs.getString( "part_no_oem" ) );
assertEquals( "Part ABC Name", lQs.getString( "part_no_sdesc" ) );
}
}
|
[
"alqica@ifsworld.com"
] |
alqica@ifsworld.com
|
05abd4c145ba463cada8b99b0b847fced386cb8c
|
69c1256baec48b66365b5ec8faec5d6318b0eb21
|
/Mage.Sets/src/mage/sets/timespiral/TheloniteHermit.java
|
2292ade10ace3059d9085bfd954a2c93d866bde0
|
[] |
no_license
|
gbraad/mage
|
3b84eefe4845258f6250a7ff692e1f2939864355
|
18ce6a0305db6ebc0d34054af03fdb0ba88b5a3b
|
refs/heads/master
| 2022-09-28T17:31:38.653921
| 2015-04-04T22:28:22
| 2015-04-04T22:28:22
| 33,435,029
| 1
| 0
| null | 2022-09-01T23:39:50
| 2015-04-05T08:25:58
|
Java
|
UTF-8
|
Java
| false
| false
| 3,801
|
java
|
/*
* Copyright 2010 BetaSteward_at_googlemail.com. 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.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``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 BetaSteward_at_googlemail.com 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.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.sets.timespiral;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.common.TurnedFaceUpSourceTriggeredAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.continuous.BoostAllEffect;
import mage.abilities.keyword.MorphAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.game.permanent.token.SaprolingToken;
/**
*
* @author LevelX2
*/
public class TheloniteHermit extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Saproling creatures");
static {
filter.add(new SubtypePredicate("Saproling"));
}
public TheloniteHermit(UUID ownerId) {
super(ownerId, 228, "Thelonite Hermit", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{3}{G}");
this.expansionSetCode = "TSP";
this.subtype.add("Elf");
this.subtype.add("Shaman");
this.color.setGreen(true);
this.power = new MageInt(1);
this.toughness = new MageInt(1);
// Saproling creatures get +1/+1.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filter, false)));
// Morph {3}{G}{G}
this.addAbility(new MorphAbility(this, new ManaCostsImpl("{3}{G}{G}")));
// When Thelonite Hermit is turned face up, put four 1/1 green Saproling creature tokens onto the battlefield.
this.addAbility(new TurnedFaceUpSourceTriggeredAbility(new CreateTokenEffect(new SaprolingToken(), 4)));
}
public TheloniteHermit(final TheloniteHermit card) {
super(card);
}
@Override
public TheloniteHermit copy() {
return new TheloniteHermit(this);
}
}
|
[
"ludwig.hirth@online.de"
] |
ludwig.hirth@online.de
|
edbbb60b5f54ff7783734e904ddd688be549b093
|
5f5ce4700657a182888223cd077a278651991361
|
/src/main/java/ru/exercise/ExercisesApplication.java
|
ecddfbee33b5d398b7f858302e2ea682851d9155
|
[] |
no_license
|
kirillkrohmal/exercises
|
e4e2598344f6ef395b8b45378a653862f8c94257
|
6cf924525c49843f36edb7f0dedd2336bdf0f7f8
|
refs/heads/master
| 2023-06-28T00:36:28.070340
| 2021-07-30T08:23:24
| 2021-07-30T08:23:24
| 390,988,498
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 323
|
java
|
package ru.exercise;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ExercisesApplication {
public static void main(String[] args) {
SpringApplication.run (ExercisesApplication.class, args);
}
}
|
[
"krohmal_kirill@mail.ru"
] |
krohmal_kirill@mail.ru
|
a29f3f244a631db3290dbe41b50b719d90590e95
|
3f7a5d7c700199625ed2ab3250b939342abee9f1
|
/src/gcom/micromedicao/StringArquivoTextoLigacoesHidrometroHelper.java
|
99fc56971d5a6d957a9d51b5cd599516cf6ed4aa
|
[] |
no_license
|
prodigasistemas/gsan-caema
|
490cecbd2a784693de422d3a2033967d8063204d
|
87a472e07e608c557e471d555563d71c76a56ec5
|
refs/heads/master
| 2021-01-01T06:05:09.920120
| 2014-10-08T20:10:40
| 2014-10-08T20:10:40
| 24,958,220
| 1
| 0
| null | null | null | null |
ISO-8859-1
|
Java
| false
| false
| 4,147
|
java
|
/*
* Copyright (C) 2007-2007 the GSAN - Sistema Integrado de Gestão de Serviços de Saneamento
*
* This file is part of GSAN, an integrated service management system for Sanitation
*
* GSAN is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License.
*
* GSAN is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
/*
* GSAN - Sistema Integrado de Gestão de Serviços de Saneamento
* Copyright (C) <2007>
* Adriano Britto Siqueira
* Alexandre Santos Cabral
* Ana Carolina Alves Breda
* Ana Maria Andrade Cavalcante
* Aryed Lins de Araújo
* Bruno Leonardo Rodrigues Barros
* Carlos Elmano Rodrigues Ferreira
* Cláudio de Andrade Lira
* Denys Guimarães Guenes Tavares
* Eduardo Breckenfeld da Rosa Borges
* Fabíola Gomes de Araújo
* Flávio Leonardo Cavalcanti Cordeiro
* Francisco do Nascimento Júnior
* Homero Sampaio Cavalcanti
* Ivan Sérgio da Silva Júnior
* José Edmar de Siqueira
* José Thiago Tenório Lopes
* Kássia Regina Silvestre de Albuquerque
* Leonardo Luiz Vieira da Silva
* Márcio Roberto Batista da Silva
* Maria de Fátima Sampaio Leite
* Micaela Maria Coelho de Araújo
* Nelson Mendonça de Carvalho
* Newton Morais e Silva
* Pedro Alexandre Santos da Silva Filho
* Rafael Corrêa Lima e Silva
* Rafael Francisco Pinto
* Rafael Koury Monteiro
* Rafael Palermo de Araújo
* Raphael Veras Rossiter
* Roberto Sobreira Barbalho
* Rodrigo Avellar Silveira
* Rosana Carvalho Barbosa
* Sávio Luiz de Andrade Cavalcante
* Tai Mu Shih
* Thiago Augusto Souza do Nascimento
* Tiago Moreno Rodrigues
* Vivianne Barbosa Sousa
*
* Este programa é software livre; você pode redistribuí-lo e/ou
* modificá-lo sob os termos de Licença Pública Geral GNU, conforme
* publicada pela Free Software Foundation; versão 2 da
* Licença.
* Este programa é distribuído na expectativa de ser útil, mas SEM
* QUALQUER GARANTIA; sem mesmo a garantia implícita de
* COMERCIALIZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM
* PARTICULAR. Consulte a Licença Pública Geral GNU para obter mais
* detalhes.
* Você deve ter recebido uma cópia da Licença Pública Geral GNU
* junto com este programa; se não, escreva para Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307, USA.
*/
package gcom.micromedicao;
import java.io.Serializable;
/**
* Classe que irá auxiliar no formato de entrada da pesquisa
* do relatorio de imoveis por Tipo de Consumo
*
* @author Bruno Barros
* @date 10/01/2008
*/
public class StringArquivoTextoLigacoesHidrometroHelper implements Serializable{
private static final long serialVersionUID = 1L;
private String matriculaImovel;
private String numeroHidrometro;
private String localidazacaoHidrometro;
private String capacidadeHidrometro;
public String getCapacidadeHidrometro() {
return capacidadeHidrometro;
}
public void setCapacidadeHidrometro(String capacidadeHidrometro) {
this.capacidadeHidrometro = capacidadeHidrometro;
}
public String getLocalidazacaoHidrometro() {
return localidazacaoHidrometro;
}
public void setLocalidazacaoHidrometro(String localidazacaoHidrometro) {
this.localidazacaoHidrometro = localidazacaoHidrometro;
}
public String getMatriculaImovel() {
return matriculaImovel;
}
public void setMatriculaImovel(String matriculaImovel) {
this.matriculaImovel = matriculaImovel;
}
public String getNumeroHidrometro() {
return numeroHidrometro;
}
public void setNumeroHidrometro(String numeroHidrometro) {
this.numeroHidrometro = numeroHidrometro;
}
}
|
[
"felipesantos2089@gmail.com"
] |
felipesantos2089@gmail.com
|
b91a6b2062acc5312473722831a4677e934113a7
|
8f70fe0e87e308fe3dc8cfe9a515a315ed131d18
|
/src/test/java/com/sugarcrm/test/users/Users_24719.java
|
639ca77bd8c3bd92a57a7ee0eb16ce6b6717f474
|
[] |
no_license
|
mustaeenbasit/LKW-Walter_Automation
|
76fd02c34c766bc34a5c300e3f5943664c70d67b
|
a97f4feca8e51c21f3cef1949573a8e4909e7143
|
refs/heads/master
| 2020-04-09T17:54:32.252374
| 2018-12-05T09:49:29
| 2018-12-05T09:49:29
| 160,495,697
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,360
|
java
|
package com.sugarcrm.test.users;
import org.junit.Assert;
import org.junit.Test;
import com.sugarcrm.candybean.datasource.FieldSet;
import com.sugarcrm.sugar.VoodooControl;
import com.sugarcrm.sugar.VoodooUtils;
import com.sugarcrm.test.SugarTest;
public class Users_24719 extends SugarTest {
FieldSet customData = new FieldSet();
VoodooControl activeDropdownCtrl;
public void setup() throws Exception {
sugar().login();
// Pre-requisite: Existing custom query record
// Go to Reports module, Click Manage Advanced Reports link in shortcut navigation.
sugar().navbar.selectMenuItem(sugar().reports, "manageAdvancedReports");
// Click on Advanced Reports -> Create Custom Queries
// TODO: VOOD-1559
activeDropdownCtrl = new VoodooControl("li", "css", ".dropdown.active .fa-caret-down");
activeDropdownCtrl.click();
new VoodooControl("a", "css", "[data-navbar-menu-item='LNK_NEW_CUSTOMQUERY']").click();
VoodooUtils.focusFrame("bwc-frame");
// Create a Custom Query record
customData = testData.get(testName).get(0);
new VoodooControl("input", "css", "input[name='name']").set(customData.get("name"));
new VoodooControl("textarea", "css", "textarea[name='custom_query']").set(customData.get("customQuery"));
new VoodooControl("input", "css", "input[title='Save']").click();
VoodooUtils.waitForReady();
VoodooUtils.focusDefault();
}
/**
* User-Normal_Verify that non-admin user can't create custom query.
*
* @throws Exception
*/
@Test
public void Users_24719_execute() throws Exception {
VoodooUtils.voodoo.log.info("Running " + testName + "...");
// Login as valid non-admin user
sugar().logout();
sugar().login(sugar().users.getQAUser());
// Go to Reports module, Click Manage Advanced Reports link in shortcut navigation.
sugar().navbar.selectMenuItem(sugar().reports, "manageAdvancedReports");
// Click "Advanced Reports" caret down to display Advanced Reports mega menu.
// TODO: VOOD-1057
activeDropdownCtrl.click();
// Verify that the "Create Custom Query" option is not available in the Advanced Reports mega menu.
new VoodooControl("ul", "css", ".dropdown.active [role='menu']").assertContains(customData.get("advancedReportsMenu"), false);
// Click on "View Custom Queries" link
new VoodooControl("a", "css", "[data-navbar-menu-item='LNK_CUSTOMQUERIES']").click();
VoodooUtils.focusFrame("bwc-frame");
// Very QueryName is not a link
Assert.assertFalse("Query Name field is a link", (new VoodooControl("slot", "css", ".list.view tbody tr.oddListRowS1 td slot").getTag().equals(customData.get("tag"))));
// Verify 'Run Query' option is available
VoodooControl runQueryCtrl = new VoodooControl("a", "css", ".list.view tbody td:nth-child(5) a:nth-child(2)");
runQueryCtrl.assertContains(customData.get("option"), true);
// Click on "Run Query" option
runQueryCtrl.click();
VoodooUtils.waitForReady();
VoodooUtils.focusDefault();
VoodooUtils.focusFrame("bwc-frame");
// Verify QueryResult is displayed, to check "Run Query" option is clickable for non-admin user
new VoodooControl("span", "css", "#contentTable table:nth-child(6) tbody tr td h3 span").assertEquals(customData.get("heading"), true);
VoodooUtils.focusDefault();
VoodooUtils.voodoo.log.info(testName + " complete.");
}
public void cleanup() throws Exception {}
}
|
[
"mustaeen.basit@ROLUSTECH.NET"
] |
mustaeen.basit@ROLUSTECH.NET
|
a79d09f46818183a9cf29b89fd6bb0711cc6eb0f
|
a9289520f0287469ea5077803bd5fd3b2084f494
|
/app/src/main/java/org/currency/util/RootUtils.java
|
2649872cf2ee459f831f2006e2343804530999b8
|
[] |
no_license
|
votingsystem/currency-android-client
|
16ecf5725f3e8743ed9733e3d6148d4629a11acd
|
a59986a44739476471d26e7d25e0b8cb45169dcc
|
refs/heads/master
| 2021-01-19T04:10:48.079720
| 2018-01-28T09:58:40
| 2018-01-28T09:58:40
| 87,353,611
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,463
|
java
|
package org.currency.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStreamReader;
/**
* http://stackoverflow.com/questions/1101380/determine-if-running-on-a-rooted-device
*/
public class RootUtils {
public static boolean isDeviceRooted() {
return checkRootMethod1() || checkRootMethod2() || checkRootMethod3();
}
private static boolean checkRootMethod1() {
String buildTags = android.os.Build.TAGS;
return buildTags != null && buildTags.contains("test-keys");
}
private static boolean checkRootMethod2() {
String[] paths = {"/system/app/Superuser.apk", "/sbin/su", "/system/bin/su", "/system/xbin/su", "/data/local/xbin/su", "/data/local/bin/su", "/system/sd/xbin/su",
"/system/bin/failsafe/su", "/data/local/su"};
for (String path : paths) {
if (new File(path).exists()) return true;
}
return false;
}
private static boolean checkRootMethod3() {
Process process = null;
try {
process = Runtime.getRuntime().exec(new String[]{"/system/xbin/which", "su"});
BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
if (in.readLine() != null) return true;
return false;
} catch (Throwable t) {
return false;
} finally {
if (process != null) process.destroy();
}
}
}
|
[
"jgzornoza@gmail.com"
] |
jgzornoza@gmail.com
|
9482ec9883f94e7b65b33b23d1f44b358bbf2f71
|
e0d57bcb1729d1ddf204ea41cabf7e83dbbce7f4
|
/BOJ/3000번대/3000/3003/Q3003.java
|
c764f8eebbc90a848572ddc301df6695f8d39887
|
[] |
no_license
|
Taekyung2/Algo_collection
|
1234e0276ac3394c03814865e713b6443e43824c
|
9651c37dd600509bcdfe4b536b1385a8e1ed71e6
|
refs/heads/main
| 2023-08-01T21:42:21.922542
| 2021-09-14T12:38:22
| 2021-09-14T12:38:22
| 355,777,743
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 308
|
java
|
package boj_algorithm._3000;
import java.util.Scanner;
public class Q3003 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] a = {1, 1, 2, 2, 2, 8};
for(int i = 0; i < 6; i++)
System.out.print((a[i] - sc.nextInt()) + " ");
}
}
|
[
"ltk3934@daum.net"
] |
ltk3934@daum.net
|
7cf8f35a2914489841f00507d411381d7c162da1
|
070294ad814007f5963f24e295fd25eca5ff7f20
|
/src/test/java/explore/Explore2DFluorescenceRegistration.java
|
3d73dff8bb774c4cba387841fadcaa0889d8a444
|
[] |
no_license
|
tischi/fiji-plugin-multiModalDataViewer
|
488e563204a62f2656bdf67bdc14762b09b7faf9
|
6abfdb0797f186afd52dce7a6b26171d083e87e7
|
refs/heads/master
| 2022-12-09T08:01:39.677961
| 2020-03-05T07:51:34
| 2020-03-05T07:51:34
| 209,473,779
| 3
| 0
| null | 2022-11-16T09:24:46
| 2019-09-19T05:59:23
|
Java
|
UTF-8
|
Java
| false
| false
| 601
|
java
|
package explore;
import de.embl.cba.mmdv.viewer.MultiModalDataViewer;
import net.imagej.ImageJ;
import java.util.ArrayList;
public class Explore2DFluorescenceRegistration
{
public static void main( String[] args )
{
new ImageJ().ui().showUI();
final ArrayList< String > imagePaths = new ArrayList<>();
imagePaths.add( Explore2DFluorescenceRegistration.class.getResource( "../correlate-2d-fm/Hela_full.xml" ).getFile() );
imagePaths.add( Explore2DFluorescenceRegistration.class.getResource( "../correlate-2d-fm/Hela_crop.xml" ).getFile() );
new MultiModalDataViewer( imagePaths );
}
}
|
[
"christian.tischer@embl.de"
] |
christian.tischer@embl.de
|
201dc3d1e17268663aff0f9ac895269326f647ad
|
9d9409d12cf56f1aea1e7a13b933878095459e30
|
/src/ua/edu/ukma/ykrukovska/unit1/sum/Sum.java
|
7cc66bbf71b38bb803aebe068172292abd30856f
|
[] |
no_license
|
YanaKrukovska/algorithms
|
1376e5a2ac43bb77a36f59721b8d65314941bb10
|
776d7098b87a389955690fc25e20aa5e58f61d11
|
refs/heads/master
| 2020-07-19T23:09:12.545105
| 2020-07-02T09:54:49
| 2020-07-02T09:54:49
| 206,529,153
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,219
|
java
|
package ua.edu.ukma.ykrukovska.unit1.sum;
import java.util.Scanner;
public class Sum {
private static int calculateLength(int n) {
if (n == 1) {
return 1;
}
return 1 + calculateLength(n % 2 == 0 ? n / 2 : 3 * n + 1);
}
private static int calculateMaxLength(int i, int j) {
int biggerNumber;
int smallerNumber;
if (i > j) {
biggerNumber = i;
smallerNumber = j;
} else {
biggerNumber = j;
smallerNumber = i;
}
int max = 0;
for (int k = smallerNumber; k <= biggerNumber; k++) {
int cycleLength = calculateLength(k);
if (cycleLength > max) {
max = cycleLength;
}
}
return max;
}
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (in.hasNextInt()) {
int i = in.nextInt();
int j = in.nextInt();
if (i > 0 && i < 1000000 && j > 0 && j < 1000000) {
long result = calculateMaxLength(i, j);
System.out.println(i + " " + j + " " + result);
}
}
}
}
|
[
"jana.krua@gmail.com"
] |
jana.krua@gmail.com
|
a79032e3d2d698a971d73f19dbb08b00f8001327
|
d6ab38714f7a5f0dc6d7446ec20626f8f539406a
|
/backend/collecting/dsfj/Java/edited/restart.MainMethod.java
|
884ec0bd833fd01223c2bbf3f957b132de187c4a
|
[] |
no_license
|
haditabatabaei/webproject
|
8db7178affaca835b5d66daa7d47c28443b53c3d
|
86b3f253e894f4368a517711bbfbe257be0259fd
|
refs/heads/master
| 2020-04-10T09:26:25.819406
| 2018-12-08T12:21:52
| 2018-12-08T12:21:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,220
|
java
|
package org.springframework.boot.devtools.restart;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import org.springframework.util.Assert;
class MainMethod {
private final Method method;
MainMethod() {
this(Thread.currentThread());
}
MainMethod(Thread thread) {
Assert.notNull(thread, "Thread must not be null");
this.method = getMainMethod(thread);
}
private Method getMainMethod(Thread thread) {
for (StackTraceElement element : thread.getStackTrace()) {
if ("main".equals(element.getMethodName())) {
Method method = getMainMethod(element);
if (method != null) {
return method;
}
}
}
throw new IllegalStateException("Unable to find main method");
}
private Method getMainMethod(StackTraceElement element) {
try {
Class<?> elementClass = Class.forName(element.getClassName());
Method method = elementClass.getDeclaredMethod("main", String[].class);
if (Modifier.isStatic(method.getModifiers())) {
return method;
}
}
catch (Exception ex) {
}
return null;
}
public Method getMethod() {
return this.method;
}
public String getDeclaringClassName() {
return this.method.getDeclaringClass().getName();
}
}
|
[
"mahdisadeghzadeh24@gamil.com"
] |
mahdisadeghzadeh24@gamil.com
|
4bffad579fd8c2a2922d67937c47305a4e063112
|
41a13a8d09a8ae08d810e4507ca12c933141b658
|
/app/src/main/java/anandgaur/com/javanotestest/Model/Category.java
|
6b8c519e65a78447b8235a09ed0ab03d52fa6d96
|
[] |
no_license
|
anandgaur22/JavaTest
|
6d5c4113234ef8ddf17e5db7e4cce134a4beaccd
|
16e22cc63ff86cf2213318160fac4a151c9021c2
|
refs/heads/master
| 2020-03-14T19:18:13.624526
| 2018-05-01T20:14:58
| 2018-05-01T20:14:58
| 131,758,530
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 562
|
java
|
package anandgaur.com.javanotestest.Model;
/**
* Created by Anand on 14-01-2018.
*/
public class Category {
private String Name;
private String Image;
public Category(){
}
public Category(String name, String image) {
Name = name;
this.Image = image;
}
public String getName() {
return Name;
}
public void setName(String name) {
Name = name;
}
public String getImage() {
return Image;
}
public void setImage(String image) {
this.Image = image;
}
}
|
[
"anandgaur22@gmail.com"
] |
anandgaur22@gmail.com
|
9184d62902ec1c3ea99047e5ea919c81318f0d6d
|
18c70f2a4f73a9db9975280a545066c9e4d9898e
|
/mirror-cmdb/cmdb-service/src/main/java/com/aspire/ums/cmdb/v2/index/mapper/ItCloudScreenMapper.java
|
ea1b616adecc1ac741453a93f32753bfc5f7aa1a
|
[] |
no_license
|
iu28igvc9o0/cmdb_aspire
|
1fe5d8607fdacc436b8a733f0ea44446f431dfa8
|
793eb6344c4468fe4c61c230df51fc44f7d8357b
|
refs/heads/master
| 2023-08-11T03:54:45.820508
| 2021-09-18T01:47:25
| 2021-09-18T01:47:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,734
|
java
|
package com.aspire.ums.cmdb.v2.index.mapper;
import com.aspire.ums.cmdb.index.payload.ItCloudScreenRequest;
import com.aspire.ums.cmdb.index.payload.ScreenAvgUtilization;
import com.aspire.ums.cmdb.index.payload.ScreenMaxUtilization;
import com.aspire.ums.cmdb.index.payload.ScreenResourceAllocation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* @ClassName ITCloudScreenMapper
* @Description IT云租户大屏——原子层
* @Author luowenbo
* @Date 2020/2/26 20:59
* @Version 1.0
*/
@Mapper
public interface ItCloudScreenMapper{
/*
* 获取系统标题列表
* */
List<Map<String,String>> getSystemTitleList();
/*
* 新增资源分配总量
* */
void insertResourceAllocate(ScreenResourceAllocation obj);
/*
* 批量新增资源分配总量
* */
void insertBatchResourceAllocate(List<ScreenResourceAllocation> obj);
/*
* 批量新增均峰值利用率实体
* */
void insertBatchMaxUtilization(List<ScreenMaxUtilization> obj);
/*
* 批量新增平均值利用率实体
* */
void insertBatchAvgUtilization(List<ScreenAvgUtilization> obj);
/*
* 获取资源分配总量 (计算资源 || 分配资源)
* */
List<Map<String,Object>> getResourceAllocateList(ItCloudScreenRequest req);
/*
* 获取某个月份的CPU和内存的均峰值
* */
List<Map<String,Object>> getMaxUtilizationByMonth(ItCloudScreenRequest req);
/*
* 获取业务系统的CPU和内存的均峰值
* */
List<Map<String,Object>> getMaxUtilizationByBizSystem(ItCloudScreenRequest req);
/*
* 获取某个月份的CPU和内存的平均值
* */
List<Map<String,Object>> getAvgUtilizationByMonth(ItCloudScreenRequest req);
/*
* 获取业务系统的CPU和内存的平均值
* */
List<Map<String,Object>> getAvgUtilizationByBizSystem(ItCloudScreenRequest req);
/*
* 月份资源均峰值利用率
* */
Map<String,Object> getMonthMaxUtilization(ItCloudScreenRequest req);
/*
* 月份资源平均利用率
* */
Map<String,Object> getMonthAvgUtilization(ItCloudScreenRequest req);
/*
* 获取业务系统的数量总数
* */
Integer getBizSystemCount(ItCloudScreenRequest req);
/*
* 获取物理机CPU和内存都低于30%的业务系统 数量(不区分资源池)
* */
Integer getPmBizSystemCountNotIdcType(ItCloudScreenRequest req);
/*
* 获取物理机CPU和内存都低于30%的业务系统 数量(区分资源池)
* */
Integer getPmBizSystemCountWithIdcType(ItCloudScreenRequest req);
/*
* 获取CPU和内存都低于30%的业务系统 列表(区分资源池)
* */
List<Map<String,Object>> getBizSystemListWithIdcType(ItCloudScreenRequest req);
/*
* 获取虚拟机CPU或者内存都低于30%的业务系统 数量(不区分资源池)
* */
Integer getVmBizSystemCountNotIdcType(ItCloudScreenRequest req);
/*
* 获取虚拟机CPU或者内存低于30%的业务系统 数量(区分资源池)
* */
Integer getVmBizSystemCountWithIdcType(ItCloudScreenRequest req);
/*
* 获取云存储利用率低于40%的业务系统 数量(不区分资源池)
* */
Integer getStoreBizSystemCountNotIdcType(ItCloudScreenRequest req);
/*
* 获取云存储利用率低于40%的业务系统 数量(区分资源池)
* */
Integer getStoreBizSystemCountWithIdcType(ItCloudScreenRequest req);
/*
* 获取云存储利用率低于40%的业务系统 列表(区分资源池)
* */
List<Map<String,Object>> getStoreBizSystemListWithIdcType(ItCloudScreenRequest req);
/*
* 判断租户下均峰值的CPU和内存的数据是否有采集
* */
Integer getMaxCpuAndStoreCount(ItCloudScreenRequest req);
/*
* 判断租户下平均值的CPU和内存的数据是否有采集
* */
Integer getAvgCpuAndStoreCount(ItCloudScreenRequest req);
/*
* 判断租户下资源量是否有分配资源
* */
Integer getResourceAllocationCount(ItCloudScreenRequest req);
/*
* 依据(业务系统、POD池、资源池)的唯一性,进行删除
* */
void deleteOldData(ItCloudScreenRequest req);
/*
* 更新扣分项的临时表,按照月份,查询CPU均峰值的所有数据(IT公司)
* */
List<Map<String,Object>> getCpuMaxListWithIT(@Param("monthlyTime") String monthlyTime);
/*
* 更新扣分项的临时表,按照月份,查询CPU均峰值的所有数据(非IT公司)
* */
List<Map<String,Object>> getCpuMaxListWithNotIT(@Param("monthlyTime") String monthlyTime);
/*
* 某业务系统下,具体设备的相关信息
* */
List<LinkedHashMap<String,Object>> getSpecificDeviceByBz(@Param("bizSystem") String bizSystem,
@Param("deviceType") String deviceType,
@Param("idcList") List<String> idcList,
@Param("pageNo") Integer pageNo,
@Param("pageSize") Integer pageSize);
/*
* 某业务系统下,具体设备数量
* */
int getSpecificDeviceCountByBz(@Param("bizSystem") String bizSystem,
@Param("deviceType") String deviceType,
@Param("idcList") List<String> idcList);
}
|
[
"jiangxuwen7515@163.com"
] |
jiangxuwen7515@163.com
|
751464a7143ad8bb86c25bea81c81480a915dcaa
|
3568c9772fad54ffe71683de31525464642f3cf9
|
/vbide5/src/main/java/eu/doppel_helix/jna/tlb/vbide5/_VBProjectsEvents.java
|
e64740bca96631559599df6d02c6ea6913233e7a
|
[
"MIT"
] |
permissive
|
NoonRightsWarriorBehindHovering/COMTypelibraries
|
c853c41bb495031702d0ad7a4d215ab894c12bbd
|
c17acfca689305c0e23d4ff9d8ee437e0ee3d437
|
refs/heads/master
| 2023-06-21T20:52:51.519721
| 2020-03-13T22:33:48
| 2020-03-13T22:33:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 667
|
java
|
package eu.doppel_helix.jna.tlb.vbide5;
import com.sun.jna.platform.win32.COM.util.annotation.ComInterface;
import com.sun.jna.platform.win32.COM.util.annotation.ComMethod;
import com.sun.jna.platform.win32.COM.util.annotation.ComProperty;
import com.sun.jna.platform.win32.COM.util.IDispatch;
import com.sun.jna.platform.win32.COM.util.IUnknown;
import com.sun.jna.platform.win32.COM.util.IRawDispatchHandle;
import com.sun.jna.platform.win32.Variant.VARIANT;
/**
* <p>uuid({0002E113-0000-0000-C000-000000000046})</p>
*/
@ComInterface(iid="{0002E113-0000-0000-C000-000000000046}")
public interface _VBProjectsEvents extends IUnknown, IRawDispatchHandle {
}
|
[
"mblaesing@doppel-helix.eu"
] |
mblaesing@doppel-helix.eu
|
1ac994c565698d629f27558f80e91a43367edbea
|
6a23cab65029de6f02f91cb95852643977f393bb
|
/rfms/commonsrc/com/ft/commons/lookup/Lookuper.java
|
0d22db3d9b3887650d305f2ee8b9bcf2c68f383b
|
[] |
no_license
|
bagherfathi/archive4archive
|
9ab2777417622669ed5f28ad4f6e315f79283c97
|
46f2cc7e5b562e881d039c36fab8df256d354c39
|
refs/heads/master
| 2016-09-12T22:16:36.650059
| 2010-08-04T08:00:08
| 2010-08-04T08:00:08
| 56,385,201
| 0
| 0
| null | null | null | null |
IBM852
|
Java
| false
| false
| 533
|
java
|
package com.ft.commons.lookup;
import org.apache.struts.util.LabelValueBean;
import java.util.List;
/**
*
* LookuperÂ嵐
*
*/
public interface Lookuper {
/**
* DOCUMENT ME!
*
* @return DOCUMENT ME!
*/
public String getName();
/**
* DOCUMENT ME!
*
* @return DOCUMENT ME!
*/
public List getResult();
/**
* DOCUMENT ME!
*
* @param value
* DOCUMENT ME!
*
* @return DOCUMENT ME!
*/
public LabelValueBean lookup(Object value);
}
|
[
"luoxngood@c46cfd5c-866d-11de-9934-f1fc26e2a4cc"
] |
luoxngood@c46cfd5c-866d-11de-9934-f1fc26e2a4cc
|
60bfee146753da42eb5025b1958e6c2b587f97f9
|
3841f7991232e02c850b7e2ff6e02712e9128b17
|
/小浪底泥沙三维/EV_Xld/jni/src/JAVA/EV_Spatial_3DProxyWrapper/src/com/earthview/world/spatial3dproxy/EffectDBManager.java
|
49faff24e6ad702898233f84c3ef79256f75ac04
|
[] |
no_license
|
15831944/BeijingEVProjects
|
62bf734f1cb0a8be6fed42cf6b207f9dbdf99e71
|
3b5fa4c4889557008529958fc7cb51927259f66e
|
refs/heads/master
| 2021-07-22T14:12:15.106616
| 2017-10-15T11:33:06
| 2017-10-15T11:33:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,789
|
java
|
package com.earthview.world.spatial3dproxy;
import global.*;
import com.earthview.world.base.*;
import com.earthview.world.util.*;
import com.earthview.world.core.*;
public class EffectDBManager extends com.earthview.world.core.AllocatedObject {
static {
GlobalClassFactoryMap.put("EarthView::World::Spatial3DProxy::CEffectDBManager", new EffectDBManagerClassFactory());
}
/**
* 构造函数
* @param
*/
public EffectDBManager() {
super(CreatedWhenConstruct.CWC_NotToCreate);
Create("CEffectDBManager", null);
}
native private static long getSingletonPtr_void();
/**
* 获取EarthView::World::Spatial3DProxy::CEffectDBManager对象指针
* @param
* @return EarthView::World::Spatial3DProxy::CEffectDBManager对象指针
*/
public static com.earthview.world.spatial3dproxy.EffectDBManager getSingletonPtr()
{
long returnValue = getSingletonPtr_void();
if(returnValue == 0L) {
return null;
}
com.earthview.world.spatial3dproxy.EffectDBManager __returnValue = new com.earthview.world.spatial3dproxy.EffectDBManager(CreatedWhenConstruct.CWC_NotToCreate, "CEffectDBManager");
__returnValue.setDelegate(true);
InstancePointer __instancePointer = new InstancePointer(returnValue);
__returnValue.setInstancePointer(__instancePointer);
IClassFactory __returnValueClassFactory = GlobalClassFactoryMap.get(__returnValue.getCppInstanceTypeName());
if (__returnValueClassFactory != null)
{
__returnValue.setDelegate(true);
__returnValue = (com.earthview.world.spatial3dproxy.EffectDBManager)__returnValueClassFactory.create();
__returnValue.setDelegate(true);
__returnValue.bindNativeObject(__instancePointer, "CEffectDBManager");
}
return __returnValue;
}
native private long getStringInterface_CEffectObject(long pNativeObject, long obj);
/**
* 获取特效对象obj的EarthView::World::Core::CStringInterface
* @param obj 特效对象
* @return EarthView::World::Core::CStringInterface
*/
public com.earthview.world.core.StringInterface getStringInterface(com.earthview.world.spatial3d.effectmanager.EffectObject obj)
{
long objParamValue = (obj == null ? 0L : obj.nativeObject.pointer);
long returnValue = getStringInterface_CEffectObject(this.nativeObject.pointer, objParamValue);
if(returnValue == 0L) {
return null;
}
com.earthview.world.core.StringInterface __returnValue = new com.earthview.world.core.StringInterface(CreatedWhenConstruct.CWC_NotToCreate, "CStringInterface");
__returnValue.setDelegate(true);
InstancePointer __instancePointer = new InstancePointer(returnValue);
__returnValue.setInstancePointer(__instancePointer);
IClassFactory __returnValueClassFactory = GlobalClassFactoryMap.get(__returnValue.getCppInstanceTypeName());
if (__returnValueClassFactory != null)
{
__returnValue.setDelegate(true);
__returnValue = (com.earthview.world.core.StringInterface)__returnValueClassFactory.create();
__returnValue.setDelegate(true);
__returnValue.bindNativeObject(__instancePointer, "CStringInterface");
}
return __returnValue;
}
public EffectDBManager(CreatedWhenConstruct cwc) {
super(CreatedWhenConstruct.CWC_NotToCreate);
}
public EffectDBManager(CreatedWhenConstruct cwc, String classNameStr) {
super(CreatedWhenConstruct.CWC_NotToCreate, classNameStr);
}
public static EffectDBManager fromBaseObject(BaseObject baseObj)
{
if (baseObj == null || InstancePointer.ZERO.equals(baseObj.nativeObject))
{
return null;
}
EffectDBManager obj = null;
if(baseObj instanceof EffectDBManager)
{
obj = (EffectDBManager)baseObj;
} else {
obj = new EffectDBManager(CreatedWhenConstruct.CWC_NotToCreate);
obj.bindNativeObject(baseObj.nativeObject, "CEffectDBManager");
obj.increaseCast();
}
return obj;
}
}
|
[
"yanguanqi@aliyun.com"
] |
yanguanqi@aliyun.com
|
9cd1e370cab3752c51a01c5b7b3bd2510a0cd954
|
18c70f2a4f73a9db9975280a545066c9e4d9898e
|
/mirror-alert/cdn-b2b-integrate/src/main/java/com/aspire/cdn/esdatawrap/biz/client/IAlertServiceClient.java
|
700e7ca7d2efa7ad04cfafd379a7f7d5af0d522d
|
[] |
no_license
|
iu28igvc9o0/cmdb_aspire
|
1fe5d8607fdacc436b8a733f0ea44446f431dfa8
|
793eb6344c4468fe4c61c230df51fc44f7d8357b
|
refs/heads/master
| 2023-08-11T03:54:45.820508
| 2021-09-18T01:47:25
| 2021-09-18T01:47:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,289
|
java
|
package com.aspire.cdn.esdatawrap.biz.client;
import java.util.List;
import com.aspire.cdn.esdatawrap.biz.client.model.SyncItemResponse;
import com.aspire.cdn.esdatawrap.biz.umsalert.UmsAlertMessage;
import feign.Headers;
import feign.RequestLine;
/**
*
* 项目名称: cdn-integrate
* <p/>
*
* 类名: IAlertServiceClient
* <p/>
*
* 类功能描述: TODO
* <p/>
*
* @author pengguihua
*
* @date 2020年6月22日
*
* @version V1.0
* <br/>
*
* <b>Copyright(c)</b> 2020 卓望公司-版权所有
*
*/
public interface IAlertServiceClient {
public static final String H_CONTENT_TYPE = "Content-Type: application/json;charset=UTF-8";
public static final String H_ACCEPT = "Accept: application/json;charset=UTF-8";
@Headers({H_CONTENT_TYPE, H_ACCEPT})
@RequestLine("POST /v1/alerts/third/create")
public SyncItemResponse postAlertMessage(UmsAlertMessage alertMsg);
/**
* 功能描述: 批量告警上报; 注意: 批量接口会忽略错误的告警,返回成功
* <p>
* @param alertMsgList
* @return
*/
@Headers({H_CONTENT_TYPE, H_ACCEPT})
@RequestLine("POST /v1/alerts/third/batch")
public SyncItemResponse batchPostAlertMessageList(List<UmsAlertMessage> alertMsgList);
}
|
[
"jiangxuwen7515@163.com"
] |
jiangxuwen7515@163.com
|
1f3bacc8f9cf117c0d28d79764eca086e2c2f8fd
|
89c54d0160b4e42e8e48101ae01050f0409ce883
|
/MarioAI/src/ch/idsia/agents/controllers/BehaviorTree/TurnLeft.java
|
181d30c87e06caf5bdb7085c1144af69f1097830
|
[] |
no_license
|
jinu2ID/Game-AI
|
92152122a09b6448844b3b851a5a3752d4e541d0
|
3b3cb06b2ac88b163b207fac6890a05ba15c3fe6
|
refs/heads/master
| 2021-01-09T20:53:37.470214
| 2016-06-18T23:33:34
| 2016-06-18T23:33:34
| 56,331,753
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 441
|
java
|
package ch.idsia.agents.controllers.BehaviorTree;
import ch.idsia.benchmark.mario.engine.sprites.Mario;
/**
* Created by jinuj on 5/13/2016.
*/
public class TurnLeft extends Task {
public boolean run(){
if (!agent.action[Mario.KEY_LEFT]){
agent.action[Mario.KEY_LEFT] = true;
status = Status.SUCCESS;
return true;
}
status = Status.FAILURE;
return false;
}
}
|
[
"jinu jacob"
] |
jinu jacob
|
41a9a88bfb3e315bbcc13c8c48cb9a12437d7444
|
058bac6a6abc4370c5462ece111795117c4166b1
|
/src/main/java/com/young/springbootrestapi/events/EventRepository.java
|
33c2366887881bdc2d1b2de5d1e62f7e7f43aed8
|
[] |
no_license
|
Youngwook-Jeon/rest-api-springboot
|
a4874d3a2e8c50c09461dfa2c1c13298d9f1d258
|
3be9c9204aff74c82492728c0f63fb8efce91116
|
refs/heads/main
| 2023-06-15T08:26:55.877317
| 2021-07-12T14:33:44
| 2021-07-12T14:33:44
| 380,977,595
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 183
|
java
|
package com.young.springbootrestapi.events;
import org.springframework.data.jpa.repository.JpaRepository;
public interface EventRepository extends JpaRepository<Event, Integer> {
}
|
[
"ela87@naver.com"
] |
ela87@naver.com
|
215bf3a98ac8042149b74e73720075bd4dc553b9
|
ca030864a3a1c24be6b9d1802c2353da4ca0d441
|
/classes6.dex_source_from_JADX/com/facebook/widget/tokenizedtypeahead/chips/ContactChipUserStringUtil.java
|
e1823d32ed345548626817b0ebf576fd31fc3dbc
|
[] |
no_license
|
pxson001/facebook-app
|
87aa51e29195eeaae69adeb30219547f83a5b7b1
|
640630f078980f9818049625ebc42569c67c69f7
|
refs/heads/master
| 2020-04-07T20:36:45.758523
| 2018-03-07T09:04:57
| 2018-03-07T09:04:57
| 124,208,458
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,489
|
java
|
package com.facebook.widget.tokenizedtypeahead.chips;
import android.content.res.Resources;
import com.facebook.telephony.FbPhoneNumberUtils;
import com.facebook.user.model.User.Type;
import javax.inject.Inject;
/* compiled from: com.facebook.platform.status.ERROR_TYPE */
public class ContactChipUserStringUtil {
public final FbPhoneNumberUtils f20113a;
public final Resources f20114b;
/* compiled from: com.facebook.platform.status.ERROR_TYPE */
public /* synthetic */ class C15101 {
public static final /* synthetic */ int[] f20112a = new int[Type.values().length];
static {
try {
f20112a[Type.FACEBOOK.ordinal()] = 1;
} catch (NoSuchFieldError e) {
}
try {
f20112a[Type.FACEBOOK_CONTACT.ordinal()] = 2;
} catch (NoSuchFieldError e2) {
}
try {
f20112a[Type.PHONE_NUMBER.ordinal()] = 3;
} catch (NoSuchFieldError e3) {
}
try {
f20112a[Type.ADDRESS_BOOK.ordinal()] = 4;
} catch (NoSuchFieldError e4) {
}
try {
f20112a[Type.EMAIL.ordinal()] = 5;
} catch (NoSuchFieldError e5) {
}
}
}
@Inject
public ContactChipUserStringUtil(FbPhoneNumberUtils fbPhoneNumberUtils, Resources resources) {
this.f20113a = fbPhoneNumberUtils;
this.f20114b = resources;
}
}
|
[
"son.pham@jmango360.com"
] |
son.pham@jmango360.com
|
b0fcdca255675f5bebaf174720e00a64555eeda8
|
7ef841751c77207651aebf81273fcc972396c836
|
/dstream/src/main/java/com/loki/dstream/stubs/SampleClass6950.java
|
5afbee22613ff0341f713bb6a7f21420ead73975
|
[] |
no_license
|
SergiiGrechukha/ModuleApp
|
e28e4dd39505924f0d36b4a0c3acd76a67ed4118
|
00e22d51c8f7100e171217bcc61f440f94ab9c52
|
refs/heads/master
| 2022-05-07T13:27:37.704233
| 2019-11-22T07:11:19
| 2019-11-22T07:11:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 274
|
java
|
package com.loki.dstream.stubs;
public class SampleClass6950 {
private SampleClass6951 sampleClass;
public SampleClass6950(){
sampleClass = new SampleClass6951();
}
public String getClassName() {
return sampleClass.getClassName();
}
}
|
[
"sergey.grechukha@gmail.com"
] |
sergey.grechukha@gmail.com
|
21677bddeee6a864a38265ab23a9bcf8f38aaaa8
|
872147bec4452dbdc6786cc04010a1455e08590d
|
/JavaBase/Practice/src/基础语法练习/多态实现操作动物类/Animal.java
|
d4175e3693fdb917291d3130fb72888390afa793
|
[] |
no_license
|
yuanyyb/JavaStudy
|
f3eb26bf0383c9f8a327322987bd711cd7544319
|
5595b7ad893d11212a59e5c6c2d5ce12d0e91a3f
|
refs/heads/master
| 2022-12-02T00:42:21.787688
| 2020-07-30T10:15:10
| 2020-07-30T10:15:10
| 283,765,631
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 545
|
java
|
package 基础语法练习.多态实现操作动物类;
public abstract class Animal {
private String name;
private int age;
public Animal() {
}
public Animal(String name, int age) {
this.name = name;
this.age = age;
}
public String getName() {
return name;
}
public int getAge() {
return age;
}
public void setName(String name) {
this.name = name;
}
public void setAge(int age) {
this.age = age;
}
public abstract void eat();
}
|
[
"yuanyyb@hotmail.com"
] |
yuanyyb@hotmail.com
|
8df1f78f75191068a66afca2fda453eee3bbdd45
|
c65d7c475768942a8941f9f751b7d96e639ea9c9
|
/com.sap.cloud.lm.sl.cf.core/src/main/java/com/sap/cloud/lm/sl/cf/core/validators/parameters/v2_0/ResourceParametersValidator.java
|
eb6aa710c159ccd80ab5bf50c818b37e310d8417
|
[
"Apache-2.0"
] |
permissive
|
DenitsaKostova/cf-mta-deploy-service
|
b7a2043f09c1624771347460ab37303c07cbbb45
|
6a827cdbf80e06c46d086b6daf169e0bf5be7266
|
refs/heads/master
| 2021-09-01T21:33:42.068280
| 2017-12-28T16:39:23
| 2017-12-28T16:55:51
| 107,227,990
| 0
| 0
|
Apache-2.0
| 2017-12-28T18:52:31
| 2017-10-17T06:39:44
|
Java
|
UTF-8
|
Java
| false
| false
| 851
|
java
|
package com.sap.cloud.lm.sl.cf.core.validators.parameters.v2_0;
import java.util.Map;
import com.sap.cloud.lm.sl.cf.core.validators.parameters.ParametersValidatorHelper;
import com.sap.cloud.lm.sl.common.SLException;
import com.sap.cloud.lm.sl.mta.model.v2_0.Resource;;
public class ResourceParametersValidator extends com.sap.cloud.lm.sl.cf.core.validators.parameters.v1_0.ResourceParametersValidator {
public ResourceParametersValidator(Resource resource, ParametersValidatorHelper helper) {
super(resource, helper);
}
@Override
public Resource validate() throws SLException {
Resource resourceV2 = (Resource) resource;
Map<String, Object> parameters = validateParameters(resource, ((Resource) resource).getParameters());
resourceV2.setParameters(parameters);
return resourceV2;
}
}
|
[
"nikolay.valchev@sap.com"
] |
nikolay.valchev@sap.com
|
3c7130abc9b4927196333288035bb76ecd3f205d
|
e0f583d286706699da99bc631a31e3f4f2078965
|
/solutions/0967. Numbers With Same Consecutive Differences/0967.java
|
d0685ff4308ebd7278187ec1ccf66bcee30d6d72
|
[] |
no_license
|
T353007/LeetCode-1
|
4f002d1885358e8beec0c3d59a1549c4c9f0e06d
|
026713cb8fa25f52851e1432cd71a5518504e3e0
|
refs/heads/main
| 2023-02-15T17:03:49.726291
| 2021-01-12T10:12:25
| 2021-01-12T10:12:25
| 328,920,320
| 0
| 0
| null | 2021-01-12T08:29:55
| 2021-01-12T08:29:55
| null |
UTF-8
|
Java
| false
| false
| 880
|
java
|
class Solution {
public int[] numsSameConsecDiff(int n, int k) {
if (n == 1)
return new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
List<Integer> ans = new ArrayList<>();
if (k == 0) {
for (char c = '1'; c <= '9'; ++c) {
final String s = new String(new char[n]).replace('\0', c);
ans.add(Integer.parseInt(s));
}
return ans.stream().mapToInt(i -> i).toArray();
}
for (int num = 1; num <= 9; ++num)
dfs(n - 1, k, num, ans);
return ans.stream().mapToInt(i -> i).toArray();
}
private void dfs(int n, int k, int num, List<Integer> ans) {
if (n == 0) {
ans.add(num);
return;
}
final int lastDigit = num % 10;
for (final int nextDigit : new int[] { lastDigit - k, lastDigit + k })
if (0 <= nextDigit && nextDigit <= 9)
dfs(n - 1, k, num * 10 + nextDigit, ans);
}
}
|
[
"walkccray@gmail.com"
] |
walkccray@gmail.com
|
18f36ae2579ca4087b5fd145eb5956a16930adb8
|
5f6731d38e7b2892860b791473e19f75ff2cba4e
|
/hash/Node.java
|
00f83cde1284a36a92f48a35c81de3b9a3dce3a7
|
[] |
no_license
|
kenzhaoyihui/java_algr
|
18b1f493a32e810281d1ff8d21c4e52b1711056e
|
5848a169d5adc1cfd42b5b4b4a72292ec92fea41
|
refs/heads/master
| 2020-03-22T17:13:26.249637
| 2018-07-10T05:36:43
| 2018-07-10T05:36:43
| 140,381,836
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,210
|
java
|
/**
* This class holds the information regarding a node from the heap/complete
* binary tree.
* @see Heap
*/
public class Node {
String label;
int weight;
Node leftNode, rightNode;
/**
* The coordinates of the top-left corner of the node
*/
public int x, y;
int depth = -1;
/**
* Attribute to indicate if the left branch is to be highlighted.
*/
public boolean highlightLeft = false;
/**
* Attribute to indicate if the right branch is to be highlighted.
*/
public boolean highlightRight = false;
/**
* Attribute to indicate if the node is to be highlighted.
*/
public boolean highlight = false;
/**
* Create a node with the left and right child nodes specified and
* the weight of the current node is the sum of the child node.
* @param node1 The left node of this newly created node.
* @param node2 The right node of this newly created node.
*/
public Node(Node node1, Node node2) {
leftNode = node1;
rightNode = node2;
weight = node1.getWeight() + node2.getWeight();
label = new String();
}
/**
* Create a node with the left node as set and weight of the current node
* set to 0.
* @param node The left node of the newly created node.
*/
public Node(Node node) {
leftNode = node;
rightNode = null;
weight = 0;
label = new String();
}
/**
* Create a new left node with weight 0.
*/
public Node() {
label = new String();
weight = 0;
leftNode = rightNode = null;
} // Constructor 1
/**
* Create a new leaf node with label and weight as specified in the
* parameters.
* @param label The label of the new node.
* @param weight The weight of the new node.
*/
public Node(String label, int weight) {
this.label = new String(label);
this.weight = weight;
leftNode = rightNode = null;
} // Constructor 2
/**
* Create a new leaf node with the specified weight.
* @param weight The weight of the new node.
*/
public Node(int weight) {
this.label = new String();
this.weight = weight;
leftNode = rightNode = null;
} // Constructor 3
/**
* Create a new leaf node with 0 weight and label as specified.
* @param label Label of the new node.
*/
public Node(String label) {
this.label = new String(label);
this.weight = 0;
leftNode = rightNode = null;
} // Constructor 4
/**
* Set the weight of this node.
* @param weight The weight to be assigned to this node.
*/
public void setWeight(int weight) {
this.weight = weight;
}
/**
* Set the label of this node.
* @param label The label to be assigned to this node.
*/
public void setLabel(String label) {
this.label = new String(label);
}
/**
* Get the weight of this node.
* @return Weight of this node.
*/
public int getWeight() {
return weight;
}
/**
* Get the label of this node.
* @return Label of this node.
*/
public String getLabel() {
return new String(label);
}
/**
* Link the left branch of this node to the node passed in as the parameter.
* @param node The new left child of this node.
*/
public void setLeftNode(Node node) {
leftNode = node;
}
/**
* Link the right branch of this node to
* the node passed in as the parameter.
* @param node The new right child of this node.
*
*/
public void setRightNode(Node node) {
rightNode = node;
}
/**
* Get the left child of this node.
* @return the left child this this node.
*/
public Node getLeftNode() {
return leftNode;
}
/**
* Get the right child of this node.
* @return the right child this this node.
*
*/
public Node getRightNode() {
return rightNode;
}
/**
* Check if this node is a leaf node. A leaf node has both left and right
* nodes null.
* @return true if the node is a leaf node; false otherwise.
*/
public boolean isLeaf() {
return ((rightNode==null)&&(leftNode==null));
}
} // class Node
|
[
"yzhao@redhat.com"
] |
yzhao@redhat.com
|
c0f4b33aec6a128f4d55ff77a1ed0efb55221e1d
|
e77c2da1ff3c416c547f4d141e3733a329da8a98
|
/src/main/java/com/example/demo/schemas/crip/OfflineReportType.java
|
e29e7899c61dc2157c3833005853adaec2cdc4fd
|
[] |
no_license
|
captabhi/SpringBootSoap
|
d064be487183fb3531841c95e553b6a377b78b51
|
39ea777d336a81e4c4bfdd16726612be5ac88bdc
|
refs/heads/master
| 2020-12-20T03:37:46.604804
| 2020-01-24T06:10:22
| 2020-01-24T06:10:22
| 235,949,225
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,388
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.01.24 at 11:30:43 AM IST
//
package com.example.demo.schemas.crip;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for OfflineReportType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="OfflineReportType">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="BA"/>
* <enumeration value="BA_EXPRESS"/>
* <enumeration value="EWK"/>
* <enumeration value="EWK_EXPRESS"/>
* <enumeration value="LGE"/>
* <enumeration value="LGE_EXPRESS"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "OfflineReportType")
@XmlEnum
public enum OfflineReportType {
BA,
BA_EXPRESS,
EWK,
EWK_EXPRESS,
LGE,
LGE_EXPRESS;
public String value() {
return name();
}
public static OfflineReportType fromValue(String v) {
return valueOf(v);
}
}
|
[
"abhishek@ipropal.com"
] |
abhishek@ipropal.com
|
6ba9305c9e3153d3b8764e2dde2486c772202270
|
8c9b743f156307cfb8781f95d2039f3697305b78
|
/src/com/gargoylesoftware/htmlunit/StatusHandler.java
|
229199ac15d6e251f4bc4e952e248aeb64380b98
|
[] |
no_license
|
jiafenggit/HtmlUnitTao
|
f8fbd9065b03b6cd0f3a4ce1db6b4fbfd4941000
|
ede3e10603d16f022b60798ea340c392f57495f7
|
refs/heads/master
| 2021-04-28T23:46:58.642674
| 2016-03-15T08:08:02
| 2016-03-15T08:08:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,097
|
java
|
/*
* Copyright (c) 2002-2015 Gargoyle Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.gargoylesoftware.htmlunit;
/**
* A handler for changes to <tt>window.status</tt>.
*
* @version $Revision: 9837 $
* @author <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a>
*/
public interface StatusHandler {
/**
* Handles a change to <tt>window.status</tt>.
* @param page the page on which the status change occurred
* @param message the new status message
*/
void statusMessageChanged(final Page page, final String message);
}
|
[
"jeruen@gmail.com"
] |
jeruen@gmail.com
|
e3c0824c7d4af6794039dec72d0133daba02e5f2
|
14e91965436e775ea1291706e65b56ef75808ed4
|
/mmo-db/src/main/java/org/mmo/db/memory/message/CacheType.java
|
40fea1e81dc46782f7d1731dafc130cd7032fba9
|
[] |
no_license
|
5432935/mmo-server
|
59ca1529b6c21ef385e0c8052f4c51b990ab1567
|
516e92f2c187d91a8c836cb8f453424aa8de0a7e
|
refs/heads/master
| 2020-04-05T03:08:32.102968
| 2018-10-23T02:21:45
| 2018-10-23T02:21:45
| 156,502,572
| 1
| 0
| null | 2018-11-07T06:47:11
| 2018-11-07T06:47:11
| null |
UTF-8
|
Java
| false
| false
| 310
|
java
|
package org.mmo.db.memory.message;
/**
* 数据缓存类型
* @author JiangZhiYong
* @mail 359135103@qq.com
*/
public enum CacheType {
Map("map"),;
private String name;
private CacheType(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
|
[
"359135103@qq.com"
] |
359135103@qq.com
|
027268f05e9f6286c6df22b61c9c26b08a25c8d6
|
6b23d8ae464de075ad006c204bd7e946971b0570
|
/WEB-INF/plugin/smail/src/jp/groupsession/v2/sml/sml150kn/Sml150knBiz.java
|
17e39b94ae52f7b0344a90bf72f1191c6e55528c
|
[] |
no_license
|
kosuke8/gsession
|
a259c71857ed36811bd8eeac19c456aa8f96c61e
|
edd22517a22d1fb2c9339fc7f2a52e4122fc1992
|
refs/heads/master
| 2021-08-20T05:43:09.431268
| 2017-11-28T07:10:08
| 2017-11-28T07:10:08
| 112,293,459
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,319
|
java
|
package jp.groupsession.v2.sml.sml150kn;
import java.sql.Connection;
import java.sql.SQLException;
import jp.co.sjts.util.NullDefault;
import jp.co.sjts.util.ValidateUtil;
import jp.co.sjts.util.date.UDate;
import jp.groupsession.v2.cmn.dao.BaseUserModel;
import jp.groupsession.v2.cmn.model.RequestModel;
import jp.groupsession.v2.sml.GSConstSmail;
import jp.groupsession.v2.sml.dao.SmlAdelDao;
import jp.groupsession.v2.sml.model.SmlAdelModel;
/**
* <br>[機 能] ショートメール 管理者設定 自動削除設定確認画面のビジネスロジッククラス
* <br>[解 説]
* <br>[備 考]
*
* @author JTS
*/
public class Sml150knBiz {
/** コネクション */
private Connection con__ = null;
/**
* <br>[機 能] デフォルトコンストラクタ
* <br>[解 説]
* <br>[備 考]
*
* @param con コネクション
*/
public Sml150knBiz(Connection con) {
con__ = con;
}
/**
* <br>[機 能] 自動削除設定の更新を行う
* <br>[解 説]
* <br>[備 考]
*
* @param reqMdl リクエスト情報
* @param paramMdl パラメータ情報
* @return delMdl SmlAdelModel
* @throws SQLException SQL実行例外
*/
public SmlAdelModel updateAuteDelSetting(RequestModel reqMdl,
Sml150knParamModel paramMdl)
throws SQLException {
//セッション情報を取得
BaseUserModel usModel = reqMdl.getSmodel();
int sessionUsrSid = usModel.getUsrsid();
UDate nowDate = new UDate();
//ショートメール自動削除設定
SmlAdelModel delMdl = new SmlAdelModel();
delMdl.setSacSid(GSConstSmail.SML_ADEL_USR_KBN_ADM);
delMdl.setSadUsrKbn(GSConstSmail.SML_ADEL_USR_KBN_ADM);
delMdl.setSadDelKbn(
NullDefault.getInt(
paramMdl.getSml150DelKbn(),
GSConstSmail.SML_ADEL_USR_KBN_ADM));
int jdelKbn = 0;
int jdelYear = 0;
int jdelMonth = 0;
int sdelKbn = 0;
int sdelYear = 0;
int sdelMonth = 0;
int wdelKbn = 0;
int wdelYear = 0;
int wdelMonth = 0;
int ddelKbn = 0;
int ddelYear = 0;
int ddelMonth = 0;
// //自動削除 = 管理者が設定する
// if (delMdl.getSadDelKbn() == GSConstSmail.SML_DEL_KBN_ADM_SETTING) {
jdelKbn =
NullDefault.getInt(
paramMdl.getSml150JdelKbn(),
GSConstSmail.SML_AUTO_DEL_NO);
if (jdelKbn == GSConstSmail.SML_AUTO_DEL_LIMIT) {
jdelYear = NullDefault.getInt(paramMdl.getSml150JYear(), 0);
jdelMonth = NullDefault.getInt(paramMdl.getSml150JMonth(), 0);
}
sdelKbn =
NullDefault.getInt(
paramMdl.getSml150SdelKbn(),
GSConstSmail.SML_AUTO_DEL_NO);
if (sdelKbn == GSConstSmail.SML_AUTO_DEL_LIMIT) {
sdelYear = NullDefault.getInt(paramMdl.getSml150SYear(), 0);
sdelMonth = NullDefault.getInt(paramMdl.getSml150SMonth(), 0);
}
wdelKbn =
NullDefault.getInt(
paramMdl.getSml150WdelKbn(),
GSConstSmail.SML_AUTO_DEL_NO);
if (wdelKbn == GSConstSmail.SML_AUTO_DEL_LIMIT) {
wdelYear = NullDefault.getInt(paramMdl.getSml150WYear(), 0);
wdelMonth = NullDefault.getInt(paramMdl.getSml150WMonth(), 0);
}
ddelKbn =
NullDefault.getInt(
paramMdl.getSml150DdelKbn(),
GSConstSmail.SML_AUTO_DEL_NO);
if (ddelKbn == GSConstSmail.SML_AUTO_DEL_LIMIT) {
ddelYear = NullDefault.getInt(paramMdl.getSml150DYear(), 0);
ddelMonth = NullDefault.getInt(paramMdl.getSml150DMonth(), 0);
}
// }
delMdl.setSadJdelKbn(jdelKbn);
delMdl.setSadJdelYear(jdelYear);
delMdl.setSadJdelMonth(jdelMonth);
delMdl.setSadSdelKbn(sdelKbn);
delMdl.setSadSdelYear(sdelYear);
delMdl.setSadSdelMonth(sdelMonth);
delMdl.setSadWdelKbn(wdelKbn);
delMdl.setSadWdelYear(wdelYear);
delMdl.setSadWdelMonth(wdelMonth);
delMdl.setSadDdelKbn(ddelKbn);
delMdl.setSadDdelYear(ddelYear);
delMdl.setSadDdelMonth(ddelMonth);
delMdl.setSadAuid(sessionUsrSid);
delMdl.setSadAdate(nowDate);
delMdl.setSadEuid(sessionUsrSid);
delMdl.setSadEdate(nowDate);
SmlAdelDao delDao = new SmlAdelDao(con__);
if (delDao.update(delMdl) == 0) {
delDao.insert(delMdl);
}
return delMdl;
}
/**
* <br>[機 能] 選択した年月日に不正な値が入った場合に空白文字に置き換える
* <br>[解 説]
* <br>[備 考]
* @param paramModel Sml150knParamModel
*/
public void updateEgnoreYearMonth(Sml150knParamModel paramModel) {
if (!ValidateUtil.isNumber(paramModel.getSml150JYear())) {
paramModel.setSml150JYear("");
}
if (!ValidateUtil.isNumber(paramModel.getSml150JMonth())) {
paramModel.setSml150JMonth("");
}
if (!ValidateUtil.isNumber(paramModel.getSml150SYear())) {
paramModel.setSml150SYear("");
}
if (!ValidateUtil.isNumber(paramModel.getSml150SMonth())) {
paramModel.setSml150SMonth("");
}
if (!ValidateUtil.isNumber(paramModel.getSml150WYear())) {
paramModel.setSml150WYear("");
}
if (!ValidateUtil.isNumber(paramModel.getSml150WMonth())) {
paramModel.setSml150WMonth("");
}
if (!ValidateUtil.isNumber(paramModel.getSml150DYear())) {
paramModel.setSml150DYear("");
}
if (!ValidateUtil.isNumber(paramModel.getSml150DMonth())) {
paramModel.setSml150DMonth("");
}
}
}
|
[
"PK140601-29@PK140601-29"
] |
PK140601-29@PK140601-29
|
3e8bf8b97743a2ce75db5734a389f190db8b21e4
|
ffca1c1fb87cc6107ce8a0de0b9e759a900f6c32
|
/src/cn/water/result/SalesResult.java
|
e3fe09c5349d76d0f324047e188980ac30adda9f
|
[] |
no_license
|
DerekAlair/EclipseGitTest
|
14c3b38a81fa34f4ab3652db14d80a8ce74eb22c
|
516fada8b7d9aefdb525ea3eb277d65cee30f700
|
refs/heads/master
| 2021-07-16T21:32:54.465297
| 2017-10-16T02:51:50
| 2017-10-16T02:51:50
| 106,937,024
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 942
|
java
|
package cn.water.result;
public class SalesResult {
private String aera;//区域
private String pname;//品牌
private Double price;//单价
private Integer salesNumber;//销售量
private Double totalMoney;//销售金额
public String getAera() {
return aera;
}
public void setAera(String aera) {
this.aera = aera;
}
public String getPname() {
return pname;
}
public void setPname(String pname) {
this.pname = pname;
}
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
public Integer getSalesNumber() {
return salesNumber;
}
public void setSalesNumber(Integer salesNumber) {
this.salesNumber = salesNumber;
}
public Double getTotalMoney() {
return totalMoney;
}
public void setTotalMoney(Double totalMoney) {
this.totalMoney = totalMoney;
}
}
|
[
"l"
] |
l
|
7620729ced963ffe9ef827f0ed15543a1e107876
|
6be39fc2c882d0b9269f1530e0650fd3717df493
|
/weixin反编译/sources/com/tencent/mm/ap/e.java
|
bf35c7660b52601e7b96fdc58fcf0dd8186c50ca
|
[] |
no_license
|
sir-deng/res
|
f1819af90b366e8326bf23d1b2f1074dfe33848f
|
3cf9b044e1f4744350e5e89648d27247c9dc9877
|
refs/heads/master
| 2022-06-11T21:54:36.725180
| 2020-05-07T06:03:23
| 2020-05-07T06:03:23
| 155,177,067
| 5
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,818
|
java
|
package com.tencent.mm.ap;
import android.content.ContentValues;
import android.database.Cursor;
import com.samsung.android.sdk.look.airbutton.SlookAirButtonFrequentContactAdapter;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.tmassistantsdk.downloadservice.DownloadInfo;
public final class e {
int cPf;
public int fEo = -2;
public long fGj;
int gkI = 0;
public long hBA;
public String hBB = "";
public String hBC = "";
public String hBD = "";
public int hBE;
int hBF;
private String hBG = "";
int hBH;
public long hBI;
int hBJ;
public int hBK = 0;
public String hBL = "";
int hBM = 1;
private boolean hBN;
private boolean hBO;
private boolean hBP;
private boolean hBQ;
private boolean hBR;
private boolean hBS;
private boolean hBT;
private boolean hBU;
private boolean hBV;
private boolean hBW;
private boolean hBX;
private boolean hBY;
boolean hBZ;
private boolean hCa;
boolean hCb;
private boolean hCc;
private boolean hCd;
private boolean hCe;
private boolean hCf;
public int hmZ;
public int offset;
public int status;
public final void li(String str) {
this.hBG = str;
this.hCd = true;
}
public final void eR(int i) {
this.status = i;
this.hBW = true;
}
public final void hM(int i) {
this.hBJ = i;
this.hBX = true;
}
public final void hN(int i) {
this.hBH = i;
this.hBU = true;
}
public final void bg(long j) {
this.hBI = j;
this.hBV = true;
}
public final void bh(long j) {
this.hBA = j;
this.hBN = true;
}
public final void ap(long j) {
if (this.fGj != j) {
this.hBO = true;
}
this.fGj = j;
}
public final void setOffset(int i) {
int i2 = 0;
if (this.offset != i) {
this.hBP = true;
}
this.offset = i;
x.e("MicroMsg.Imgfo", "set offset : %d id:%d total:%d", Integer.valueOf(i), Long.valueOf(this.hBI), Integer.valueOf(this.hmZ));
if (i >= this.hmZ) {
i2 = 1;
}
hR(i2);
}
public final void hO(int i) {
this.hmZ = i;
this.hBQ = true;
}
public final void lj(String str) {
this.hBB = str;
this.hBR = true;
}
public final void lk(String str) {
this.hBC = str;
this.hBS = true;
}
public final void ll(String str) {
this.hBD = str;
this.hBT = true;
}
public final void hP(int i) {
this.hBK = i;
this.hBY = true;
}
public final void hQ(int i) {
this.hBF = i;
this.hCf = true;
}
public final boolean Pj() {
return this.hmZ != 0 && this.hmZ == this.offset;
}
public final boolean Pk() {
return this.hBK > 0;
}
public final void lm(String str) {
if ((this.hBL == null && str != null) || !(this.hBL == null || this.hBL.equals(str))) {
this.hCa = true;
}
this.hBL = str;
}
public final void b(Cursor cursor) {
this.hBA = (long) cursor.getInt(0);
this.fGj = cursor.getLong(1);
this.offset = cursor.getInt(2);
this.hmZ = cursor.getInt(3);
this.hBB = cursor.getString(4);
this.hBD = cursor.getString(5);
this.hBH = cursor.getInt(6);
this.hBI = (long) cursor.getInt(7);
this.status = cursor.getInt(8);
this.hBJ = cursor.getInt(9);
this.hBK = cursor.getInt(10);
this.cPf = cursor.getInt(11);
this.hBL = cursor.getString(12);
this.gkI = cursor.getInt(14);
this.hBM = cursor.getInt(15);
this.hBG = cursor.getString(16);
this.hBE = cursor.getInt(17);
this.hBC = cursor.getString(18);
this.hBF = cursor.getInt(19);
}
public final void hR(int i) {
if (this.hBM != i) {
this.hCc = true;
}
this.hBM = i;
}
public final void hS(int i) {
this.hBE = i;
this.hCe = true;
}
public final ContentValues vP() {
ContentValues contentValues = new ContentValues();
if (this.hBN) {
contentValues.put(SlookAirButtonFrequentContactAdapter.ID, Long.valueOf(this.hBA));
}
if (this.hBO) {
contentValues.put("msgSvrId", Long.valueOf(this.fGj));
}
if (this.hBP) {
contentValues.put("offset", Integer.valueOf(this.offset));
}
if (this.hBQ) {
contentValues.put("totalLen", Integer.valueOf(this.hmZ));
}
if (this.hBR) {
contentValues.put("bigImgPath", this.hBB);
}
if (this.hBS) {
contentValues.put("midImgPath", this.hBC);
}
if (this.hBT) {
contentValues.put("thumbImgPath", this.hBD);
}
if (this.hBU) {
contentValues.put("createtime", Integer.valueOf(this.hBH));
}
if (this.hBV) {
contentValues.put("msglocalid", Long.valueOf(this.hBI));
}
if (this.hBW) {
contentValues.put(DownloadInfo.STATUS, Integer.valueOf(this.status));
}
if (this.hBX) {
contentValues.put("nettimes", Integer.valueOf(this.hBJ));
}
if (this.hBY) {
contentValues.put("reserved1", Integer.valueOf(this.hBK));
}
if (this.hBZ) {
contentValues.put("reserved2", Integer.valueOf(this.cPf));
}
if (this.hCa) {
contentValues.put("reserved3", this.hBL);
}
if (this.hCb) {
contentValues.put("hashdthumb", Integer.valueOf(this.gkI));
}
if (this.hCc) {
contentValues.put("iscomplete", Integer.valueOf(this.offset < this.hmZ ? 0 : 1));
}
if (this.hCd) {
contentValues.put("origImgMD5", this.hBG);
}
if (this.hCe) {
contentValues.put("compressType", Integer.valueOf(this.hBE));
}
if (this.hCf) {
contentValues.put("forwardType", Integer.valueOf(this.hBF));
}
return contentValues;
}
public final void Pl() {
this.hBN = false;
this.hBO = false;
this.hBP = false;
this.hBQ = false;
this.hBR = false;
this.hBS = false;
this.hBT = false;
this.hBU = false;
this.hBV = false;
this.hBW = false;
this.hBX = false;
this.hBY = false;
this.hBZ = false;
this.hCa = false;
this.hCb = false;
this.hCc = false;
this.hCd = false;
this.hCe = false;
this.hCf = false;
}
}
|
[
"denghailong@vargo.com.cn"
] |
denghailong@vargo.com.cn
|
1b3cac47619c988d666fffbbe0fb7b9d10181db7
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_e837e40d8bb443d31e4de1a3606a9707af73454a/MaterialEn/2_e837e40d8bb443d31e4de1a3606a9707af73454a_MaterialEn_t.java
|
6c0dc266f2b2192a2d01c1e78a58070cf6802e18
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 4,429
|
java
|
package com.github.Holyvirus.Blacksmith.core.Tools.Cost;
import com.github.Holyvirus.Blacksmith.BlackSmith;
import com.github.Holyvirus.Blacksmith.core.Eco.mEco;
import com.github.Holyvirus.Blacksmith.core.Items.ItemID;
import com.github.Holyvirus.Blacksmith.core.Tools.Materials.Materials;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
public class MaterialEn {
private static boolean FC = true;
private static mEco mE;
private static Materials mH;
private static void init() {
FC = false;
mH = Materials.getInstance();
if(null != BlackSmith.getPlugin().getMatEngine())
mE = BlackSmith.getPlugin().getMatEngine();
}
public static Boolean useMatEn() {
if(FC)
init();
return mE != null;
}
public static List<String> calcCost(ItemStack i, Boolean asString) {
if(!asString) {} // I hate warnings :)
if(FC)
init();
List<String> s = new ArrayList<String>();
if(i == null) {
s.add("No item not given!");
return s;
}
String item = BlackSmith.getPlugin().getItemHandler().getItemNameByID(i.getTypeId()).replaceAll(" ", "_");
s = mH.getCostString(item);
if(i.getEnchantments().size() > 0) {
HashMap<ItemID, Integer> t = mH.getCostMap("enchantmentModifier");
HashMap<String, Integer> tmp = new HashMap<String, Integer>();
for(Map.Entry<Enchantment, Integer> entry : i.getEnchantments().entrySet()) {
int lvl = entry.getValue();
for(Map.Entry<ItemID, Integer> e : t.entrySet()) {
ItemID iID = e.getKey();
String n = BlackSmith.getPlugin().getItemHandler().getItemNameByID(iID.getId(), iID.getType());
if(!tmp.containsKey(n)) {
tmp.put(n, e.getValue() * lvl);
}else{
tmp.put(n, tmp.get(n) + (e.getValue() * lvl));
}
}
}
for(Map.Entry<String, Integer> e : tmp.entrySet()) {
StringBuilder ss = new StringBuilder();
ss.append(e.getValue());
ss.append(" of " + e.getKey());
s.add(ss.toString());
}
}
return s;
}
public static Boolean hasEnough(Player p, ItemStack i) {
if(FC)
init();
if(mE == null)
return false;
String item = BlackSmith.getPlugin().getItemHandler().getItemNameByID(i.getTypeId()).replaceAll(" ", "_");
HashMap<ItemID, Integer> t = mH.getCostMap(item);
int c = 0;
int s = t.size();
for(Map.Entry<ItemID, Integer> e : t.entrySet()) {
ItemStack a = new ItemStack(e.getKey().getId(), (e.getKey().getType() == null ? 0 : e.getKey().getType()));
if(mE.getBalance(p, a) >= e.getValue())
c++;
}
if(i.getEnchantments().size() > 0) {
HashMap<ItemID, Integer> m = mH.getCostMap("enchantmentModifier");
for(Map.Entry<Enchantment, Integer> entry : i.getEnchantments().entrySet()) {
int lvl = entry.getValue();
for(Map.Entry<ItemID, Integer> e : m.entrySet()) {
s++;
ItemStack a = new ItemStack(e.getKey().getId(), (e.getKey().getType() == null ? 0 : e.getKey().getType()));
if(mE.getBalance(p, a) >= (e.getValue() * lvl))
c++;
}
}
}
return c == s;
}
public static void take(Player p, ItemStack i) {
if(FC)
init();
if(mE == null)
return;
String item = BlackSmith.getPlugin().getItemHandler().getItemNameByID(i.getTypeId()).replaceAll(" ", "_");
HashMap<ItemID, Integer> t = mH.getCostMap(item);
for(Map.Entry<ItemID, Integer> e : t.entrySet()) {
ItemStack a = new ItemStack(e.getKey().getId(), (e.getKey().getType() == null ? 0 : e.getKey().getType()));
if(mE.getBalance(p, a) >= e.getValue())
mE.withdraw(p, a, e.getValue());
}
if(i.getEnchantments().size() > 0) {
HashMap<ItemID, Integer> m = mH.getCostMap("enchantmentModifier");
t.putAll(m);
for(Map.Entry<Enchantment, Integer> entry : i.getEnchantments().entrySet()) {
int lvl = entry.getValue();
for(Map.Entry<ItemID, Integer> e : m.entrySet()) {
ItemStack a = new ItemStack(e.getKey().getId(), (e.getKey().getType() == null ? 0 : e.getKey().getType()));
if(mE.getBalance(p, a) >= (e.getValue() * lvl))
mE.withdraw(p, a, (e.getValue() * lvl));
}
}
}
p.updateInventory();
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
300941885b93d969ddd92b170493b8fef69743d4
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_1002537.java
|
3ecc909d40425836ee0cefe36dc6a5bde7ab372c
|
[] |
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
| 208
|
java
|
public static <T extends RecordTemplate>PatchRequest<T> diff(T original,T revised){
PatchTree patch=PatchCreator.diff(original,revised);
return PatchRequest.createFromPatchDocument(patch.getDataMap());
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
73ddaea49b900bc96050562e6b1e4648bb8c9350
|
5eae683a6df0c4b97ab1ebcd4724a4bf062c1889
|
/bin/ext-accelerator/b2bacceleratorservices/testsrc/de/hybris/platform/b2bacceleratorservices/process/strategies/impl/B2BAcceleratorProcessContextStrategyTest.java
|
7fefd1238fb77d2bbdb44a24e25657b89afa64a0
|
[] |
no_license
|
sujanrimal/GiftCardProject
|
1c5e8fe494e5c59cca58bbc76a755b1b0c0333bb
|
e0398eec9f4ec436d20764898a0255f32aac3d0c
|
refs/heads/master
| 2020-12-11T18:05:17.413472
| 2020-01-17T18:23:44
| 2020-01-17T18:23:44
| 233,911,127
| 0
| 0
| null | 2020-06-18T15:26:11
| 2020-01-14T18:44:18
| null |
UTF-8
|
Java
| false
| false
| 1,827
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package de.hybris.platform.b2bacceleratorservices.process.strategies.impl;
import static org.junit.Assert.assertSame;
import static org.mockito.BDDMockito.given;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import de.hybris.bootstrap.annotations.UnitTest;
import de.hybris.platform.b2bacceleratorservices.model.process.ReplenishmentProcessModel;
import de.hybris.platform.core.model.order.CartModel;
import de.hybris.platform.orderscheduling.model.CartToOrderCronJobModel;
/**
* Test for class B2BAcceleratorProcessContextStrategy
*/
@UnitTest
@RunWith(MockitoJUnitRunner.class)
public class B2BAcceleratorProcessContextStrategyTest
{
@Mock
private ReplenishmentProcessModel replenishmentProcessModel;
@Mock
private CartToOrderCronJobModel cartToOrderCronJobModel;
@Mock
private CartModel cartModel;
@InjectMocks
private B2BAcceleratorProcessContextStrategy contextStrategy = new B2BAcceleratorProcessContextStrategy();
@Before
public void setUp() throws Exception
{
given(replenishmentProcessModel.getCartToOrderCronJob()).willReturn(cartToOrderCronJobModel);
given(cartToOrderCronJobModel.getCart()).willReturn(cartModel);
}
@Test
public void testGetCmsSite() throws Exception
{
assertSame(cartModel, contextStrategy.getOrderModel(replenishmentProcessModel).get());
}
}
|
[
"travis.d.crawford@accenture.com"
] |
travis.d.crawford@accenture.com
|
e51006e20fa47e2f1ab70df3cbb7029dc6f0ea2a
|
649f1bcca811fe73ccc774e9b3971893a68f6bb7
|
/subprojects/core-impl/src/main/groovy/org/gradle/api/internal/artifacts/ResolvedConfigurationIdentifierSerializer.java
|
db457176a788c1c1d1281634c1f9a9b3630902e5
|
[] |
no_license
|
bsr1983/gradle
|
6058b4ad6e71570f9c182a35676e67d4ed43d108
|
f01456c014bdb092a4cab918145b9a36736d45a6
|
refs/heads/master
| 2021-01-23T22:53:53.185583
| 2013-08-22T08:06:00
| 2013-08-22T08:06:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,640
|
java
|
/*
* Copyright 2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.gradle.api.internal.artifacts;
import org.gradle.api.artifacts.ModuleVersionIdentifier;
import org.gradle.messaging.serialize.DataStreamBackedSerializer;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
public class ResolvedConfigurationIdentifierSerializer extends DataStreamBackedSerializer<ResolvedConfigurationIdentifier> {
private final ModuleVersionIdentifierSerializer idSerializer = new ModuleVersionIdentifierSerializer();
@Override
public ResolvedConfigurationIdentifier read(DataInput dataInput) throws IOException {
ModuleVersionIdentifier id = idSerializer.read(dataInput);
String configuration = dataInput.readUTF();
return new ResolvedConfigurationIdentifier(id, configuration);
}
@Override
public void write(DataOutput dataOutput, ResolvedConfigurationIdentifier value) throws IOException {
idSerializer.write(dataOutput, value.getId());
dataOutput.writeUTF(value.getConfiguration());
}
}
|
[
"szczepiq@gmail.com"
] |
szczepiq@gmail.com
|
b2ba6fdd7c370283a2b174d093a21a375ec3c2d3
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdasApi21/applicationModule/src/test/java/applicationModulepackageJava13/Foo122Test.java
|
89bce5e085cc5021b1f912fb9742312f00f85638
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 482
|
java
|
package applicationModulepackageJava13;
import org.junit.Test;
public class Foo122Test {
@Test
public void testFoo0() {
new Foo122().foo0();
}
@Test
public void testFoo1() {
new Foo122().foo1();
}
@Test
public void testFoo2() {
new Foo122().foo2();
}
@Test
public void testFoo3() {
new Foo122().foo3();
}
@Test
public void testFoo4() {
new Foo122().foo4();
}
@Test
public void testFoo5() {
new Foo122().foo5();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
229a109fb8f75bd031faf748f802e3e90e6ed0a9
|
4d0cd1f41a30184f9ff32e9faa82f204f891721b
|
/external/jglobus/jglobus-4.0.3/src/org/globus/ftp/test/HostPortTest.java
|
9562db85b0b23771ed56a99fb71c431c5524dd3d
|
[
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
NCIP/cagrid-general
|
ce9680f6d58fe1dc8893ba69b5c72d86d60b45fc
|
318cf185789453c4a025cc12af2a172bc85a19d6
|
refs/heads/master
| 2016-08-05T11:31:20.726557
| 2013-07-16T20:04:41
| 2013-07-16T20:04:41
| 8,959,797
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,630
|
java
|
/*
* Portions of this file Copyright 1999-2005 University of Chicago
* Portions of this file Copyright 1999-2005 The University of Southern California.
*
* This file or a portion of this file is licensed under the
* terms of the Globus Toolkit Public License, found at
* http://www.globus.org/toolkit/download/license.html.
* If you redistribute this file, with or without
* modifications, you must include this notice in the file.
*/
package org.globus.ftp.test;
import org.globus.ftp.HostPort;
import org.globus.ftp.HostPort6;
import junit.framework.TestCase;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
Test HostPort
**/
public class HostPortTest extends TestCase {
private static Log logger =
LogFactory.getLog(HostPortTest.class.getName());
public static void main(String[] argv) {
junit.textui.TestRunner.run (suite());
}
public static Test suite() {
return new TestSuite(HostPortTest.class);
}
public HostPortTest(String name) {
super(name);
}
public void testCreateIPv6() {
HostPort6 hp = null;
hp = new HostPort6(HostPort6.IPv6,
"1080::8:800:200C:417A",
123);
assertEquals(HostPort6.IPv6, hp.getVersion());
assertEquals("1080::8:800:200C:417A", hp.getHost());
assertEquals(123, hp.getPort());
assertEquals("|2|1080::8:800:200C:417A|123|", hp.toFtpCmdArgument());
hp = new HostPort6(HostPort6.IPv4,
"192.168.1.1",
456);
assertEquals(HostPort6.IPv4, hp.getVersion());
assertEquals("192.168.1.1", hp.getHost());
assertEquals(456, hp.getPort());
assertEquals("|1|192.168.1.1|456|", hp.toFtpCmdArgument());
}
public void testParseIPv6() {
parseIPv6("|||6446|",
null, null, 6446);
parseIPv6("|1|132.235.1.2|6275|",
"1", "132.235.1.2", 6275);
parseIPv6("|2|1080::8:800:200C:417A|5282|",
"2", "1080::8:800:200C:417A", 5282);
}
private void parseIPv6(String reply,
String version,
String host,
int port) {
HostPort6 p = new HostPort6(reply);
assertEquals(version, p.getVersion());
assertEquals(host, p.getHost());
assertEquals(port, p.getPort());
String text = p.toFtpCmdArgument();
assertEquals(reply, text);
}
}
|
[
"ervind"
] |
ervind
|
b861dd3c01d0937b7a0cd14bfa1063baa95ce11a
|
5b8337c39cea735e3817ee6f6e6e4a0115c7487c
|
/sources/com/google/firebase/database/core/persistence/DefaultPersistenceManager.java
|
eb9704233d4c15b65c4de4064625eca344d94867
|
[] |
no_license
|
karthik990/G_Farm_Application
|
0a096d334b33800e7d8b4b4c850c45b8b005ccb1
|
53d1cc82199f23517af599f5329aa4289067f4aa
|
refs/heads/master
| 2022-12-05T06:48:10.513509
| 2020-08-10T14:46:48
| 2020-08-10T14:46:48
| 286,496,946
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,152
|
java
|
package com.google.firebase.database.core.persistence;
import com.google.firebase.database.core.CompoundWrite;
import com.google.firebase.database.core.Context;
import com.google.firebase.database.core.Path;
import com.google.firebase.database.core.UserWriteRecord;
import com.google.firebase.database.core.utilities.Clock;
import com.google.firebase.database.core.utilities.DefaultClock;
import com.google.firebase.database.core.view.CacheNode;
import com.google.firebase.database.core.view.QuerySpec;
import com.google.firebase.database.logging.LogWrapper;
import com.google.firebase.database.snapshot.ChildKey;
import com.google.firebase.database.snapshot.EmptyNode;
import com.google.firebase.database.snapshot.IndexedNode;
import com.google.firebase.database.snapshot.Node;
import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;
import java.util.Set;
import java.util.concurrent.Callable;
/* compiled from: com.google.firebase:firebase-database@@17.0.0 */
public class DefaultPersistenceManager implements PersistenceManager {
static final /* synthetic */ boolean $assertionsDisabled = false;
private final CachePolicy cachePolicy;
private final LogWrapper logger;
private long serverCacheUpdatesSinceLastPruneCheck;
private final PersistenceStorageEngine storageLayer;
private final TrackedQueryManager trackedQueryManager;
public DefaultPersistenceManager(Context context, PersistenceStorageEngine persistenceStorageEngine, CachePolicy cachePolicy2) {
this(context, persistenceStorageEngine, cachePolicy2, new DefaultClock());
}
public DefaultPersistenceManager(Context context, PersistenceStorageEngine persistenceStorageEngine, CachePolicy cachePolicy2, Clock clock) {
this.serverCacheUpdatesSinceLastPruneCheck = 0;
this.storageLayer = persistenceStorageEngine;
this.logger = context.getLogger("Persistence");
this.trackedQueryManager = new TrackedQueryManager(this.storageLayer, this.logger, clock);
this.cachePolicy = cachePolicy2;
}
public void saveUserOverwrite(Path path, Node node, long j) {
this.storageLayer.saveUserOverwrite(path, node, j);
}
public void saveUserMerge(Path path, CompoundWrite compoundWrite, long j) {
this.storageLayer.saveUserMerge(path, compoundWrite, j);
}
public void removeUserWrite(long j) {
this.storageLayer.removeUserWrite(j);
}
public void removeAllUserWrites() {
this.storageLayer.removeAllUserWrites();
}
public void applyUserWriteToServerCache(Path path, Node node) {
if (!this.trackedQueryManager.hasActiveDefaultQuery(path)) {
this.storageLayer.overwriteServerCache(path, node);
this.trackedQueryManager.ensureCompleteTrackedQuery(path);
}
}
public void applyUserWriteToServerCache(Path path, CompoundWrite compoundWrite) {
Iterator it = compoundWrite.iterator();
while (it.hasNext()) {
Entry entry = (Entry) it.next();
applyUserWriteToServerCache(path.child((Path) entry.getKey()), (Node) entry.getValue());
}
}
public List<UserWriteRecord> loadUserWrites() {
return this.storageLayer.loadUserWrites();
}
public CacheNode serverCache(QuerySpec querySpec) {
boolean z;
Set<ChildKey> set;
if (this.trackedQueryManager.isQueryComplete(querySpec)) {
TrackedQuery findTrackedQuery = this.trackedQueryManager.findTrackedQuery(querySpec);
set = (querySpec.loadsAllData() || findTrackedQuery == null || !findTrackedQuery.complete) ? null : this.storageLayer.loadTrackedQueryKeys(findTrackedQuery.f2010id);
z = true;
} else {
set = this.trackedQueryManager.getKnownCompleteChildren(querySpec.getPath());
z = false;
}
Node serverCache = this.storageLayer.serverCache(querySpec.getPath());
if (set == null) {
return new CacheNode(IndexedNode.from(serverCache, querySpec.getIndex()), z, false);
}
Node Empty = EmptyNode.Empty();
for (ChildKey childKey : set) {
Empty = Empty.updateImmediateChild(childKey, serverCache.getImmediateChild(childKey));
}
return new CacheNode(IndexedNode.from(Empty, querySpec.getIndex()), z, true);
}
public void updateServerCache(QuerySpec querySpec, Node node) {
if (querySpec.loadsAllData()) {
this.storageLayer.overwriteServerCache(querySpec.getPath(), node);
} else {
this.storageLayer.mergeIntoServerCache(querySpec.getPath(), node);
}
setQueryComplete(querySpec);
doPruneCheckAfterServerUpdate();
}
public void updateServerCache(Path path, CompoundWrite compoundWrite) {
this.storageLayer.mergeIntoServerCache(path, compoundWrite);
doPruneCheckAfterServerUpdate();
}
public void setQueryActive(QuerySpec querySpec) {
this.trackedQueryManager.setQueryActive(querySpec);
}
public void setQueryInactive(QuerySpec querySpec) {
this.trackedQueryManager.setQueryInactive(querySpec);
}
public void setQueryComplete(QuerySpec querySpec) {
if (querySpec.loadsAllData()) {
this.trackedQueryManager.setQueriesComplete(querySpec.getPath());
} else {
this.trackedQueryManager.setQueryCompleteIfExists(querySpec);
}
}
public void setTrackedQueryKeys(QuerySpec querySpec, Set<ChildKey> set) {
this.storageLayer.saveTrackedQueryKeys(this.trackedQueryManager.findTrackedQuery(querySpec).f2010id, set);
}
public void updateTrackedQueryKeys(QuerySpec querySpec, Set<ChildKey> set, Set<ChildKey> set2) {
this.storageLayer.updateTrackedQueryKeys(this.trackedQueryManager.findTrackedQuery(querySpec).f2010id, set, set2);
}
public <T> T runInTransaction(Callable<T> callable) {
this.storageLayer.beginTransaction();
try {
T call = callable.call();
this.storageLayer.setTransactionSuccessful();
this.storageLayer.endTransaction();
return call;
} catch (Throwable th) {
this.storageLayer.endTransaction();
throw th;
}
}
private void doPruneCheckAfterServerUpdate() {
this.serverCacheUpdatesSinceLastPruneCheck++;
if (this.cachePolicy.shouldCheckCacheSize(this.serverCacheUpdatesSinceLastPruneCheck)) {
if (this.logger.logsDebug()) {
this.logger.debug("Reached prune check threshold.", new Object[0]);
}
this.serverCacheUpdatesSinceLastPruneCheck = 0;
boolean z = true;
long serverCacheEstimatedSizeInBytes = this.storageLayer.serverCacheEstimatedSizeInBytes();
if (this.logger.logsDebug()) {
LogWrapper logWrapper = this.logger;
StringBuilder sb = new StringBuilder();
sb.append("Cache size: ");
sb.append(serverCacheEstimatedSizeInBytes);
logWrapper.debug(sb.toString(), new Object[0]);
}
while (z && this.cachePolicy.shouldPrune(serverCacheEstimatedSizeInBytes, this.trackedQueryManager.countOfPrunableQueries())) {
PruneForest pruneOldQueries = this.trackedQueryManager.pruneOldQueries(this.cachePolicy);
if (pruneOldQueries.prunesAnything()) {
this.storageLayer.pruneCache(Path.getEmptyPath(), pruneOldQueries);
} else {
z = false;
}
serverCacheEstimatedSizeInBytes = this.storageLayer.serverCacheEstimatedSizeInBytes();
if (this.logger.logsDebug()) {
LogWrapper logWrapper2 = this.logger;
StringBuilder sb2 = new StringBuilder();
sb2.append("Cache size after prune: ");
sb2.append(serverCacheEstimatedSizeInBytes);
logWrapper2.debug(sb2.toString(), new Object[0]);
}
}
}
}
}
|
[
"knag88@gmail.com"
] |
knag88@gmail.com
|
a39e3fb75d6809856e92ea0b8f5297655ca20ea1
|
6baf1fe00541560788e78de5244ae17a7a2b375a
|
/hollywood/com.oculus.browser-base/sources/defpackage/View$OnClickListenerC1205Tt.java
|
1974cfad18f78ecc6f94994fc8e96d978b48ccd1
|
[] |
no_license
|
phwd/quest-tracker
|
286e605644fc05f00f4904e51f73d77444a78003
|
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
|
refs/heads/main
| 2023-03-29T20:33:10.959529
| 2021-04-10T22:14:11
| 2021-04-10T22:14:11
| 357,185,040
| 4
| 2
| null | 2021-04-12T12:28:09
| 2021-04-12T12:28:08
| null |
UTF-8
|
Java
| false
| false
| 504
|
java
|
package defpackage;
import android.view.View;
/* renamed from: Tt reason: default package and case insensitive filesystem */
/* compiled from: chromium-OculusBrowser.apk-stable-281887347 */
public final /* synthetic */ class View$OnClickListenerC1205Tt implements View.OnClickListener {
public final AbstractActivityC2601fu F;
public View$OnClickListenerC1205Tt(AbstractActivityC2601fu fuVar) {
this.F = fuVar;
}
public void onClick(View view) {
this.F.D1();
}
}
|
[
"cyuubiapps@gmail.com"
] |
cyuubiapps@gmail.com
|
5e3b8a03b511f93df5e5abae696b3e18cd102808
|
ddfb3a710952bf5260dfecaaea7d515526f92ebb
|
/build/tmp/expandedArchives/forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-sources.jar_c582e790131b6dd3325b282fce9d2d3d/net/minecraft/entity/boss/dragon/phase/AttackingSittingPhase.java
|
ee6ea09ae20c22dda751c0d9b2cf2f7b2207924e
|
[
"Apache-2.0"
] |
permissive
|
TheDarkRob/Sgeorsge
|
88e7e39571127ff3b14125620a6594beba509bd9
|
307a675cd3af5905504e34717e4f853b2943ba7b
|
refs/heads/master
| 2022-11-25T06:26:50.730098
| 2020-08-03T15:42:23
| 2020-08-03T15:42:23
| 284,748,579
| 0
| 0
|
Apache-2.0
| 2020-08-03T16:19:36
| 2020-08-03T16:19:35
| null |
UTF-8
|
Java
| false
| false
| 1,305
|
java
|
package net.minecraft.entity.boss.dragon.phase;
import net.minecraft.entity.boss.dragon.EnderDragonEntity;
import net.minecraft.util.SoundEvents;
public class AttackingSittingPhase extends SittingPhase {
private int attackingTicks;
public AttackingSittingPhase(EnderDragonEntity dragonIn) {
super(dragonIn);
}
/**
* Generates particle effects appropriate to the phase (or sometimes sounds).
* Called by dragon's onLivingUpdate. Only used when worldObj.isRemote.
*/
public void clientTick() {
this.dragon.world.playSound(this.dragon.getPosX(), this.dragon.getPosY(), this.dragon.getPosZ(), SoundEvents.ENTITY_ENDER_DRAGON_GROWL, this.dragon.getSoundCategory(), 2.5F, 0.8F + this.dragon.getRNG().nextFloat() * 0.3F, false);
}
/**
* Gives the phase a chance to update its status.
* Called by dragon's onLivingUpdate. Only used when !worldObj.isRemote.
*/
public void serverTick() {
if (this.attackingTicks++ >= 40) {
this.dragon.getPhaseManager().setPhase(PhaseType.SITTING_FLAMING);
}
}
/**
* Called when this phase is set to active
*/
public void initPhase() {
this.attackingTicks = 0;
}
public PhaseType<AttackingSittingPhase> getType() {
return PhaseType.SITTING_ATTACKING;
}
}
|
[
"iodiceandrea251@gmail.com"
] |
iodiceandrea251@gmail.com
|
85d2211b4b9a636f88d784510ef54962a70f039b
|
1d3683159f9807c190a81c12b1ed457d6dedb5cc
|
/src/main/java/erebus/client/render/entity/RenderBedBug.java
|
4100a73df5407ed62af1079ec19187c01293a27b
|
[] |
no_license
|
Ghostlyr/TheErebus
|
4074700cd73c18f8648dd41322fa830739642620
|
b274c0cdc2c78d73bb876cf95b3202a6cc7c9c70
|
refs/heads/master
| 2021-01-22T13:37:42.876048
| 2016-05-21T20:03:47
| 2016-05-21T20:03:47
| 53,519,551
| 0
| 0
| null | 2016-03-09T18:01:41
| 2016-03-09T18:01:41
| null |
UTF-8
|
Java
| false
| false
| 848
|
java
|
package erebus.client.render.entity;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import erebus.client.model.entity.ModelBeetle;
@SideOnly(Side.CLIENT)
public class RenderBedBug extends RenderLiving {
private static final ResourceLocation TEXTURE = new ResourceLocation("erebus:textures/entity/bedBug.png");
public RenderBedBug() {
super(new ModelBeetle(), 0.3F);
}
@Override
protected void preRenderCallback(EntityLivingBase entityliving, float f) {
GL11.glScalef(0.75F, 0.75F, 0.75F);
}
@Override
protected ResourceLocation getEntityTexture(Entity entity) {
return TEXTURE;
}
}
|
[
"curve_linear@hotmail.com"
] |
curve_linear@hotmail.com
|
8c81d2d99c405ec5a7509a2cfcb814df56e00999
|
fd49852c3426acf214b390c33927b5a30aeb0e0a
|
/aosp/javalib/android/hardware/camera2/marshal/impl/MarshalQueryableColorSpaceTransform.java
|
25ecbb6c87f43bad232395a81ceb1d0291b9043a
|
[] |
no_license
|
HanChangHun/MobilePlus-Prototype
|
fb72a49d4caa04bce6edb4bc060123c238a6a94e
|
3047c44a0a2859bf597870b9bf295cf321358de7
|
refs/heads/main
| 2023-06-10T19:51:23.186241
| 2021-06-26T08:28:58
| 2021-06-26T08:28:58
| 333,411,414
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,125
|
java
|
package android.hardware.camera2.marshal.impl;
import android.hardware.camera2.marshal.MarshalQueryable;
import android.hardware.camera2.marshal.Marshaler;
import android.hardware.camera2.params.ColorSpaceTransform;
import android.hardware.camera2.utils.TypeReference;
import java.nio.ByteBuffer;
public class MarshalQueryableColorSpaceTransform implements MarshalQueryable<ColorSpaceTransform> {
private static final int ELEMENTS_INT32 = 18;
private static final int SIZE = 72;
public Marshaler<ColorSpaceTransform> createMarshaler(TypeReference<ColorSpaceTransform> paramTypeReference, int paramInt) {
return new MarshalerColorSpaceTransform(paramTypeReference, paramInt);
}
public boolean isTypeMappingSupported(TypeReference<ColorSpaceTransform> paramTypeReference, int paramInt) {
boolean bool;
if (paramInt == 5 && ColorSpaceTransform.class.equals(paramTypeReference.getType())) {
bool = true;
} else {
bool = false;
}
return bool;
}
private class MarshalerColorSpaceTransform extends Marshaler<ColorSpaceTransform> {
protected MarshalerColorSpaceTransform(TypeReference<ColorSpaceTransform> param1TypeReference, int param1Int) {
super(MarshalQueryableColorSpaceTransform.this, param1TypeReference, param1Int);
}
public int getNativeSize() {
return 72;
}
public void marshal(ColorSpaceTransform param1ColorSpaceTransform, ByteBuffer param1ByteBuffer) {
int[] arrayOfInt = new int[18];
param1ColorSpaceTransform.copyElements(arrayOfInt, 0);
for (byte b = 0; b < 18; b++)
param1ByteBuffer.putInt(arrayOfInt[b]);
}
public ColorSpaceTransform unmarshal(ByteBuffer param1ByteBuffer) {
int[] arrayOfInt = new int[18];
for (byte b = 0; b < 18; b++)
arrayOfInt[b] = param1ByteBuffer.getInt();
return new ColorSpaceTransform(arrayOfInt);
}
}
}
/* Location: /home/chun/Desktop/temp/!/android/hardware/camera2/marshal/impl/MarshalQueryableColorSpaceTransform.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
[
"ehwjs1914@naver.com"
] |
ehwjs1914@naver.com
|
d5052ff224b9370426f71f3361e34f4977787f0e
|
1f2005b2eab0fbba6468d6c3628dc10f96a9dfdb
|
/study2/src/main/java/study/example/study2/Study2Application.java
|
38441d65c6c895e5e65f34b8f385c57864401ec1
|
[] |
no_license
|
qiupengwei0828/microsoft_repository
|
f0fecff3aafd4b0e6837272aff1ee64572b1c341
|
87166b6ea0db3004bfb828707e05f64fcb79a68e
|
refs/heads/master
| 2023-05-10T19:49:46.982081
| 2021-05-29T08:49:25
| 2021-05-29T08:49:25
| 371,922,970
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 612
|
java
|
package study.example.study2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
//熔断降级注解
@EnableCircuitBreaker
public class Study2Application {
public static void main(String[] args) {
SpringApplication.run(Study2Application.class, args);
}
}
|
[
"1940519031@qq.com"
] |
1940519031@qq.com
|
d490f31bc3f9d4f74b12fb4fcd2d5d019c0ed43b
|
f1ad958a3398c2ffece6e7b7ddad73a77e4d8483
|
/nio_socket_programming_technical/src/main/java/nio/selector/Test11Server.java
|
3789db262da65949133fcf8bdc779b47fd57af57
|
[] |
no_license
|
skjme/csf-pro
|
46b824f99ad8ebf7a5d241b1bda5b13801c4a679
|
6271ea2e8bdd72f43c1575bdbfa1d8c52b6e3b56
|
refs/heads/master
| 2023-01-23T18:26:19.666611
| 2022-04-12T06:47:31
| 2022-04-12T06:47:31
| 146,056,071
| 2
| 0
| null | 2023-01-04T19:46:07
| 2018-08-25T01:54:51
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 1,924
|
java
|
package nio.selector;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.util.Iterator;
import java.util.Set;
public class Test11Server {
public static void main(String[] args) throws IOException {
ServerSocketChannel serverSocketChannel = ServerSocketChannel.open();
serverSocketChannel.bind(new InetSocketAddress("localhost",8888));
serverSocketChannel.configureBlocking(false);
// 验证selector.select()是阻塞的
Selector selector = Selector.open();
SelectionKey selectionKey = serverSocketChannel.register(selector, SelectionKey.OP_ACCEPT);
System.out.println("---");
boolean isRun = true;
while (isRun){
int keyCount = selector.select(); // 该方法是阻塞的,客服端连接后自动解除阻塞状态
Set<SelectionKey> keys = selector.keys();
Set<SelectionKey> selectionKeys = selector.selectedKeys();
System.out.println(keyCount);
System.out.println(keys.size());
System.out.println(selectionKeys.size());
System.out.println();
Iterator<SelectionKey> selectionKeyIterator = selectionKeys.iterator();
while (selectionKeyIterator.hasNext()){
SelectionKey key = selectionKeyIterator.next();
ServerSocketChannel channel = (ServerSocketChannel) key.channel();
channel.accept(); //
InetSocketAddress ipAddress = (InetSocketAddress)channel.getLocalAddress();
System.out.println(ipAddress.getPort() + "被客户端连接了");
selectionKeyIterator.remove(); // 删除当前的SelectKey,避免重复消费问题
}
}
serverSocketChannel.close();
}
}
|
[
"chase.shu@asia.training"
] |
chase.shu@asia.training
|
2eb319bd92707f47499ceb54e135fc2c2c8e9610
|
3b9342b8b3e269cadb3d089fa2f8ca8ebbbfd66f
|
/src/main/java/com/richard/food/domain/exception/GrupoNaoEncontradoException.java
|
fd74daf48cc00a3c52017e2da527773aaf56e131
|
[] |
no_license
|
Ricardolv/app-food
|
9d1328325e26972f8917b1849c44768ee8ba09e8
|
327843a9b98f88a904bbf676ae31d938f6d09daf
|
refs/heads/master
| 2021-07-06T15:18:19.550771
| 2021-01-05T17:10:16
| 2021-01-05T17:10:16
| 211,646,261
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 425
|
java
|
package com.richard.food.domain.exception;
public class GrupoNaoEncontradoException extends EntidadeNaoEncontradaException {
private static final long serialVersionUID = 1L;
public GrupoNaoEncontradoException(String mensagem) {
super(mensagem);
}
public GrupoNaoEncontradoException(Long estadoId) {
this(String.format("Não existe um cadastro de grupo com código %d", estadoId));
}
}
|
[
"richardluizv@gmail.com"
] |
richardluizv@gmail.com
|
f540f57a1629ed8b7b3eb7a10c7e484e03225fff
|
128eb90ce7b21a7ce621524dfad2402e5e32a1e8
|
/laravel-converted/src/main/java/com/project/convertedCode/globalNamespace/namespaces/Illuminate/namespaces/Queue/namespaces/Events/classes/JobProcessing.java
|
a95545199f56a6ceb6b3700a3f9f91e69b9f2734
|
[
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
RuntimeConverter/RuntimeConverterLaravelJava
|
657b4c73085b4e34fe4404a53277e056cf9094ba
|
7ae848744fbcd993122347ffac853925ea4ea3b9
|
refs/heads/master
| 2020-04-12T17:22:30.345589
| 2018-12-22T10:32:34
| 2018-12-22T10:32:34
| 162,642,356
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,612
|
java
|
package com.project.convertedCode.globalNamespace.namespaces.Illuminate.namespaces.Queue.namespaces.Events.classes;
import java.lang.invoke.MethodHandles;
import com.runtimeconverter.runtime.passByReference.PassByReferenceArgs;
import com.runtimeconverter.runtime.classes.StaticBaseClass;
import com.runtimeconverter.runtime.classes.NoConstructor;
import com.runtimeconverter.runtime.classes.RuntimeClassBase;
import com.runtimeconverter.runtime.RuntimeEnv;
import com.runtimeconverter.runtime.annotations.ConvertedMethod;
import com.runtimeconverter.runtime.reflection.ReflectionClassData;
import com.runtimeconverter.runtime.annotations.ConvertedParameter;
import com.runtimeconverter.runtime.arrays.ZPair;
import static com.runtimeconverter.runtime.ZVal.assignParameter;
/*
Converted with The Runtime Converter (runtimeconverter.com)
vendor/laravel/framework/src/Illuminate/Queue/Events/JobProcessing.php
*/
public class JobProcessing extends RuntimeClassBase {
public Object connectionName = null;
public Object job = null;
public JobProcessing(RuntimeEnv env, Object... args) {
super(env);
if (this.getClass() == JobProcessing.class) {
this.__construct(env, args);
}
}
public JobProcessing(NoConstructor n) {
super(n);
}
@ConvertedMethod
@ConvertedParameter(index = 0, name = "connectionName")
@ConvertedParameter(index = 1, name = "job")
public Object __construct(RuntimeEnv env, Object... args) {
Object connectionName = assignParameter(args, 0, false);
Object job = assignParameter(args, 1, false);
this.job = job;
this.connectionName = connectionName;
return null;
}
public static final Object CONST_class = "Illuminate\\Queue\\Events\\JobProcessing";
// Runtime Converter Internals
// RuntimeStaticCompanion contains static methods
// RequestStaticProperties contains static (per-request) properties
// ReflectionClassData contains php reflection data used by the runtime library
public static class RuntimeStaticCompanion extends StaticBaseClass {
private static final MethodHandles.Lookup staticCompanionLookup = MethodHandles.lookup();
}
public static final RuntimeStaticCompanion runtimeStaticObject = new RuntimeStaticCompanion();
private static final ReflectionClassData runtimeConverterReflectionData =
ReflectionClassData.builder()
.setName("Illuminate\\Queue\\Events\\JobProcessing")
.setLookup(
JobProcessing.class,
MethodHandles.lookup(),
RuntimeStaticCompanion.staticCompanionLookup)
.setLocalProperties("connectionName", "job")
.setFilename(
"vendor/laravel/framework/src/Illuminate/Queue/Events/JobProcessing.php")
.get();
@Override
public ReflectionClassData getRuntimeConverterReflectionData() {
return runtimeConverterReflectionData;
}
@Override
public Object converterRuntimeCallExtended(
RuntimeEnv env,
String method,
Class<?> caller,
PassByReferenceArgs passByReferenceArgs,
Object... args) {
return RuntimeClassBase.converterRuntimeCallExtendedWithDataStatic(
this,
runtimeConverterReflectionData,
env,
method,
caller,
passByReferenceArgs,
args);
}
}
|
[
"git@runtimeconverter.com"
] |
git@runtimeconverter.com
|
10c7fe83e491b5f36033e0e3489f788d98090750
|
e06dece88776c9140d38f6c0a46282efd210b259
|
/src/main/java/leetcode/T1_T100/T38.java
|
4cdfe203a130b9b2f33d5231627ee82880fdbfc7
|
[] |
no_license
|
liwangadd/leetcode
|
a1e4fa1d5977d6249824cbab95ec1f9e11cb29ff
|
2cf21a62c674489dd769ada160a1084d536aad36
|
refs/heads/master
| 2023-07-09T13:10:19.537211
| 2023-07-01T12:46:46
| 2023-07-01T12:48:05
| 147,921,733
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,112
|
java
|
package leetcode.T1_T100;
public class T38 {
public static String countAndSay(int n) {
StringBuilder last;
StringBuilder current = new StringBuilder("1");
for (int i = 1; i < n; ++i) {
last = current;
current = new StringBuilder();
char lastChar = last.charAt(0);
int count = 1;
for (int j = 1; j < last.length(); ++j) {
if (last.charAt(j) == lastChar) ++count;
else {
current.append(count).append(lastChar);
count = 0;
lastChar = last.charAt(j);
count++;
}
}
current.append(count).append(lastChar);
}
return current.toString();
}
public static void main(String[] args) {
System.out.println(countAndSay(1));
System.out.println(countAndSay(2));
System.out.println(countAndSay(3));
System.out.println(countAndSay(4));
System.out.println(countAndSay(5));
System.out.println(countAndSay(6));
}
}
|
[
"liwangadd@gmail.com"
] |
liwangadd@gmail.com
|
df8b9852ddede5eac2ba9a3bd0852f7234ab56ad
|
95c49f466673952b465e19a5ee3ae6eff76bee00
|
/src/main/java/com/zhihu/android/feed/p1542a/RecyclerItemFeedMarketSlotVideoEventBinding.java
|
c007fb91370ec15565b745779fe3c35d5ad7ce5f
|
[] |
no_license
|
Phantoms007/zhihuAPK
|
58889c399ae56b16a9160a5f48b807e02c87797e
|
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
|
refs/heads/main
| 2023-01-24T01:34:18.716323
| 2020-11-25T17:14:55
| 2020-11-25T17:14:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,283
|
java
|
package com.zhihu.android.feed.p1542a;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import androidx.cardview.widget.CardView;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.legacy.widget.Space;
import com.zhihu.android.app.feed.p1083ui.holder.marketcard.widget.DotJointTextViewLayout;
import com.zhihu.android.app.feed.p1083ui.widget.RichContentView;
import com.zhihu.android.base.widget.ZHImageView;
import com.zhihu.android.base.widget.ZHTextView;
import com.zhihu.android.video.player2.widget.VideoInlineVideoView;
/* renamed from: com.zhihu.android.feed.a.da */
/* compiled from: RecyclerItemFeedMarketSlotVideoEventBinding */
public abstract class RecyclerItemFeedMarketSlotVideoEventBinding extends ViewDataBinding {
/* renamed from: c */
public final LinearLayout f67256c;
/* renamed from: d */
public final RichContentView f67257d;
/* renamed from: e */
public final CardView f67258e;
/* renamed from: f */
public final DotJointTextViewLayout f67259f;
/* renamed from: g */
public final VideoInlineVideoView f67260g;
/* renamed from: h */
public final ZHImageView f67261h;
/* renamed from: i */
public final Space f67262i;
/* renamed from: j */
public final FrameLayout f67263j;
/* renamed from: k */
public final Space f67264k;
/* renamed from: l */
public final ZHTextView f67265l;
protected RecyclerItemFeedMarketSlotVideoEventBinding(DataBindingComponent fVar, View view, int i, LinearLayout linearLayout, RichContentView richContentView, CardView cardView, DotJointTextViewLayout dotJointTextViewLayout, VideoInlineVideoView videoInlineVideoView, ZHImageView zHImageView, Space space, FrameLayout frameLayout, Space space2, ZHTextView zHTextView) {
super(fVar, view, i);
this.f67256c = linearLayout;
this.f67257d = richContentView;
this.f67258e = cardView;
this.f67259f = dotJointTextViewLayout;
this.f67260g = videoInlineVideoView;
this.f67261h = zHImageView;
this.f67262i = space;
this.f67263j = frameLayout;
this.f67264k = space2;
this.f67265l = zHTextView;
}
}
|
[
"seasonpplp@qq.com"
] |
seasonpplp@qq.com
|
6f5fe9992768e2846f0c6f97b409db7e19917c51
|
6cb1208e0f532ca95d53c581306946f27cd73363
|
/commander-web/src/main/java/com/arcsoft/commander/action/settings/RouteAction.java
|
03eb07cdc2f535ea132bfde930325c775fda479f
|
[] |
no_license
|
wwj912790488/Ingest-for-struts2
|
723b83153265bb3c6ef782836acab698f46fa08a
|
af1a023660b738f02e00fa5e199d29cd70c88ddb
|
refs/heads/master
| 2021-10-09T09:59:29.898063
| 2016-12-30T01:03:02
| 2016-12-30T01:03:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,521
|
java
|
package com.arcsoft.commander.action.settings;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import com.arcsoft.commander.domain.server.Server;
import com.arcsoft.commander.domain.settings.Eth;
import com.arcsoft.commander.domain.settings.Route;
import com.arcsoft.commander.exception.server.RemoteException;
import com.arcsoft.commander.exception.server.ServerNotAvailableException;
import com.arcsoft.commander.exception.system.AccessDeniedForSlaveException;
import com.arcsoft.commander.exception.system.SystemNotInitializedException;
import com.arcsoft.commander.service.settings.LocalEthService;
import com.arcsoft.commander.service.settings.LocalRouteService;
import com.arcsoft.commander.service.settings.RemoteEthService;
import com.arcsoft.commander.service.settings.RemoteRouteService;
/**
* Action for route.
*
* @author hxiang
*
*/
@SuppressWarnings("serial")
public class RouteAction extends BaseServerSettingAction {
private LocalEthService localEthService;
private RemoteEthService remoteEthService;
private LocalRouteService localRouteService;
private RemoteRouteService remoteRouteService;
private int index;
private Route route;// parameter for adding and deleting route.
private List<Route> routes; // result for getting all routeList.
private List<Eth> eths;
public void setLocalEthService(LocalEthService localEthService) {
this.localEthService = localEthService;
}
public void setRemoteEthService(RemoteEthService remoteEthService) {
this.remoteEthService = remoteEthService;
}
public void setLocalRouteService(LocalRouteService localRouteService) {
this.localRouteService = localRouteService;
}
public void setRemoteRouteService(RemoteRouteService remoteRouteService) {
this.remoteRouteService = remoteRouteService;
}
public Route getRoute() {
return route;
}
public void setRoute(Route route) {
this.route = route;
}
public int getIndex() {
return index;
}
public List<Eth> getEths() {
return eths;
}
public void setEths(List<Eth> eths) {
this.eths = eths;
}
public void setIndex(int index) {
this.index = index;
}
public List<Route> getRoutes() {
return routes;
}
public void setRoutes(List<Route> routes) {
this.routes = routes;
}
@PreAuthorize("hasAnyRole('ROLE_ADMIN')")
public String get() {
try {
if (isLocal) {
routes = localRouteService.getRoutes();
eths = localEthService.getValidEths();
} else {
Server agent = serverService.getServer(id);
routes = remoteRouteService.getRoutes(agent);
eths = remoteEthService.getValidEths(agent);
}
} catch (SystemNotInitializedException e) {
addActionError(getText("system.not.initialized"));
} catch (AccessDeniedForSlaveException e) {
addActionError(getText("system.slave.access.denied"));
} catch (ServerNotAvailableException se) {
addActionError(getText("msg.error.server.not.available"));
} catch (RemoteException re) {
addActionError(re.getMessage());
} catch (Exception e) {
addActionError(e.getMessage());
}
return SUCCESS;
}
@PreAuthorize("hasAnyRole('ROLE_ADMIN')")
public String add() {
try {
if (isLocal) {
localRouteService.addRoute(route);
} else {
Server agent = serverService.getServer(id);
remoteRouteService.addRoute(agent, route);
}
} catch (SystemNotInitializedException e) {
addActionError(getText("system.not.initialized"));
} catch (AccessDeniedForSlaveException e) {
addActionError(getText("system.slave.access.denied"));
} catch (ServerNotAvailableException se) {
addActionError(getText("msg.error.server.not.available"));
} catch (RemoteException re) {
addActionError(re.getMessage());
} catch (Exception e) {
addActionError(e.getMessage());
}
return SUCCESS;
}
@PreAuthorize("hasAnyRole('ROLE_ADMIN')")
public String delete() {
try {
if (isLocal) {
localRouteService.deleteRoute(route);
} else {
Server agent = serverService.getServer(id);
remoteRouteService.deleteRoute(agent, route);
}
} catch (SystemNotInitializedException e) {
addActionError(getText("system.not.initialized"));
} catch (AccessDeniedForSlaveException e) {
addActionError(getText("system.slave.access.denied"));
} catch (ServerNotAvailableException se) {
addActionError(getText("msg.error.server.not.available"));
} catch (RemoteException re) {
addActionError(re.getMessage());
} catch (Exception e) {
addActionError(e.getMessage());
}
return SUCCESS;
}
}
|
[
"wwj@arcvideo.com"
] |
wwj@arcvideo.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.