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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1db854ca057ee0fa67162b27945c2ecb04a12d6c
|
0907c886f81331111e4e116ff0c274f47be71805
|
/sources/com/google/android/gms/location/SettingsClient.java
|
2727bd475d560fcc356fb0171e1f35ca0beb653f
|
[
"MIT"
] |
permissive
|
Minionguyjpro/Ghostly-Skills
|
18756dcdf351032c9af31ec08fdbd02db8f3f991
|
d1a1fb2498aec461da09deb3ef8d98083542baaf
|
refs/heads/Android-OS
| 2022-07-27T19:58:16.442419
| 2022-04-15T07:49:53
| 2022-04-15T07:49:53
| 415,272,874
| 2
| 0
|
MIT
| 2021-12-21T10:23:50
| 2021-10-09T10:12:36
|
Java
|
UTF-8
|
Java
| false
| false
| 1,139
|
java
|
package com.google.android.gms.location;
import android.app.Activity;
import android.content.Context;
import com.google.android.gms.common.api.Api;
import com.google.android.gms.common.api.GoogleApi;
import com.google.android.gms.common.api.internal.ApiExceptionMapper;
import com.google.android.gms.common.api.internal.StatusExceptionMapper;
import com.google.android.gms.common.internal.PendingResultUtil;
import com.google.android.gms.tasks.Task;
public class SettingsClient extends GoogleApi<Api.ApiOptions.NoOptions> {
public SettingsClient(Activity activity) {
super(activity, LocationServices.API, null, (StatusExceptionMapper) new ApiExceptionMapper());
}
public SettingsClient(Context context) {
super(context, LocationServices.API, null, (StatusExceptionMapper) new ApiExceptionMapper());
}
public Task<LocationSettingsResponse> checkLocationSettings(LocationSettingsRequest locationSettingsRequest) {
return PendingResultUtil.toResponseTask(LocationServices.SettingsApi.checkLocationSettings(asGoogleApiClient(), locationSettingsRequest), new LocationSettingsResponse());
}
}
|
[
"66115754+Minionguyjpro@users.noreply.github.com"
] |
66115754+Minionguyjpro@users.noreply.github.com
|
6aa15e0329213d219b2574c603472f2ec17cbae1
|
d573a16ca60fb8822ce01e65b2d5b2af3457399a
|
/evaluation/src/main/java/com/buguagaoshu/homework/evaluation/service/StudentsCurriculumService.java
|
80d44a6c890a7b460033024f9b89d76dca8cbe21
|
[
"MIT"
] |
permissive
|
phcsea/HomeworkEvaluation
|
e3d955d6d2931853efbaa771243722cf9bac5ac5
|
d1b066edf9a1ceec6362baab870b678c33dc5298
|
refs/heads/master
| 2022-11-05T06:01:11.759657
| 2020-06-19T14:26:05
| 2020-06-19T14:26:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,441
|
java
|
package com.buguagaoshu.homework.evaluation.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.buguagaoshu.homework.common.utils.PageUtils;
import com.buguagaoshu.homework.evaluation.entity.StudentsCurriculumEntity;
import com.buguagaoshu.homework.evaluation.entity.UserEntity;
import java.util.List;
import java.util.Map;
/**
* 学生-课程关系列表
*
* @author Pu Zhiwei
* @email puzhiweipuzhiwei@foxmail.com
* @date 2020-06-03 22:57:42
*/
public interface StudentsCurriculumService extends IService<StudentsCurriculumEntity> {
PageUtils queryPage(Map<String, Object> params);
/**
* 使用课程ID查找当前学生是否选择这门课程
* 或在这门课程内
* @param userId 学生ID
* @param curriculumId 课程ID
* @return 查找结果
* */
StudentsCurriculumEntity selectStudentByCurriculumId(String userId, Long curriculumId);
/**
* 通过课程ID查找这门课的其他老师
* @param id 课程ID
* @param teacher 班主任,班级创建者
* @return 老师列表
* */
List<StudentsCurriculumEntity> teacherList(Long id, String teacher);
/**
* 返回在班级内的学生数据
* @param userEntityList 学生数据
* @param id 课程 ID
* @return 在班级内的学生数据
* */
List<UserEntity> findUserByIdAndCurriculumId(List<UserEntity> userEntityList, Long id);
}
|
[
"948805382@qq.com"
] |
948805382@qq.com
|
c668b959efc494798406776de82ea73cccbbd6f5
|
e6be1c458851a19b5f53e86e8505fe07bc5c6014
|
/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/EolCommentFieldLocation.java
|
5b4cf65fdf3d477ef37b6583d601a5bba2689b3e
|
[
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-3.0-only",
"LicenseRef-scancode-public-domain",
"LGPL-2.1-only",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
penhoi/ghidra-decompiler
|
6a950ad56acc467fa4fd771097d068d9785d36e0
|
151133f957e8fb4172cd6f0f4b750b5948df4c95
|
refs/heads/master
| 2020-05-19T16:46:36.863144
| 2019-07-26T01:17:19
| 2019-07-26T01:17:19
| 185,118,431
| 17
| 7
|
Apache-2.0
| 2019-07-10T10:16:13
| 2019-05-06T03:36:43
|
Java
|
UTF-8
|
Java
| false
| false
| 3,112
|
java
|
/* ###
* IP: GHIDRA
*
* 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 ghidra.program.util;
import ghidra.framework.options.SaveState;
import ghidra.program.model.address.Address;
import ghidra.program.model.listing.CodeUnit;
import ghidra.program.model.listing.Program;
/**
* The <CODE>EolCommentFieldLocation</CODE> class contains specific location information
* within the EOL comment field of a CodeUnitLocation object.
*/
public class EolCommentFieldLocation extends CommentFieldLocation {
private int currentCommentRow;
/**
* Construct a new EolCommentFieldLocation.
*
* @param the program of the location
* @param addr the address of the codeunit.
* @param componentPath the componentPath of the codeUnit
* @param comment comment text for the particular comment indicated by the address, subtype, and reference address.
* @param displayableCommentRow the line within the Eol comment as displayed.
* @param charOffset the character position on the line within the comment line.
* @param currentCommentRow the row index relative to the beginning of the End of Line comment
* as displayed in the Eol comment field.
*/
public EolCommentFieldLocation(Program program, Address addr, int[] componentPath,
String[] comment, int displayableCommentRow, int charOffset, int currentCommentRow) {
super(program, addr, componentPath, comment, CodeUnit.EOL_COMMENT, displayableCommentRow,
charOffset);
this.currentCommentRow = currentCommentRow;
}
/**
* Default constructor needed for restoring
* an end-of-line field location from XML.
*/
public EolCommentFieldLocation() {
super();
}
public int getCurrentCommentRow() {
return currentCommentRow;
}
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + currentCommentRow;
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!super.equals(obj))
return false;
if (getClass() != obj.getClass())
return false;
EolCommentFieldLocation other = (EolCommentFieldLocation) obj;
if (currentCommentRow != other.currentCommentRow)
return false;
return true;
}
@Override
public void restoreState(Program p, SaveState obj) {
super.restoreState(p, obj);
currentCommentRow = obj.getInt("_COMMENT_ROW", 0);
}
@Override
public void saveState(SaveState obj) {
super.saveState(obj);
obj.putInt("_COMMENT_ROW", currentCommentRow);
}
@Override
public String toString() {
return super.toString() + ", Comment Row = " + currentCommentRow;
}
}
|
[
"46821332+nsadeveloper789@users.noreply.github.com"
] |
46821332+nsadeveloper789@users.noreply.github.com
|
1fba959ba33504de00a6c86b2d6a9e9f3a3e4675
|
5edf88e2ac091ef261842a1d9b594c358f2e442c
|
/src/UN_EDIFACT/D96A/STC.java
|
a3a6f7d213d7dd224011df494c2ba36352677526
|
[] |
no_license
|
BohseOnkel63/EDIframe
|
63700caa7f87eb20cac9e1c4445d5b7d260564b3
|
7385de5c55518fb8ea1e5946529d91de69212601
|
refs/heads/master
| 2021-07-06T15:33:31.692744
| 2017-10-12T06:12:56
| 2017-10-12T06:12:56
| 35,657,733
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 664
|
java
|
package UN_EDIFACT.D96A;
import UN_EDIFACT.Segment;
public class STC extends Segment {
public C785 eC785;
public C082 eC082;
public E4405 e4405;
public E4513 e4513;
public STC() {
this(false);
}
public STC(Boolean Mandatory) {
super("STC", "STATISTICAL CONCEPT", "Function: To specify a statistical concept.");
this.setMandatory(Mandatory);
eC785 = new C785();
eC082 = new C082();
e4405 = new E4405();
e4513 = new E4513();
addElement(eC785);
addElement(eC082);
addElement(e4405);
addElement(e4513);
eC785.setMandatory(true);
}
}
|
[
"ilkka.mannelin@iki.fi"
] |
ilkka.mannelin@iki.fi
|
090b33f963b7d4719e4626e9167fc0bc9975c5e1
|
8ec2cbabd6125ceeb00e0c6192c3ce84477bdde6
|
/com.nokia.as.cswl/src/com/nsn/ood/cls/core/convert/ActivityResult2StringConverter.java
|
be6d2c248ef6ae20d05df61fae3d085d3a195f50
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
nokia/osgi-microfeatures
|
2cc2b007454ec82212237e012290425114eb55e6
|
50120f20cf929a966364550ca5829ef348d82670
|
refs/heads/main
| 2023-08-28T12:13:52.381483
| 2021-11-12T20:51:05
| 2021-11-12T20:51:05
| 378,852,173
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 897
|
java
|
/*
* Copyright (c) 2015 Nokia Solutions and Networks. All rights reserved.
*/
package com.nsn.ood.cls.core.convert;
import org.apache.felix.dm.annotation.api.Component;
import org.apache.felix.dm.annotation.api.Property;
import com.nsn.ood.cls.model.internal.Activity.Result;
import com.nsn.ood.cls.util.convert.Converter;
/**
* Activity result <-> DB string
*
* @author marynows
*
*/
@Component
@Property(name = "from", value = "activityResult")
@Property(name = "to", value = "string")
public class ActivityResult2StringConverter implements Converter<Result, String> {
@Override
public String convertTo(final Result result) {
if (result != null) {
return result.toString();
}
return null;
}
@Override
public Result convertFrom(final String string) {
try {
return Result.fromValue(string);
} catch (final IllegalArgumentException e) {
return null;
}
}
}
|
[
"pierre.de_rop@nokia.com"
] |
pierre.de_rop@nokia.com
|
aea250a86c05b42e3e6bbd63399066988719a0e6
|
7b73756ba240202ea92f8f0c5c51c8343c0efa5f
|
/classes/npv.java
|
e00b48c634d4072cf8cc7e6b7f56b45b5b74072e
|
[] |
no_license
|
meeidol-luo/qooq
|
588a4ca6d8ad579b28dec66ec8084399fb0991ef
|
e723920ac555e99d5325b1d4024552383713c28d
|
refs/heads/master
| 2020-03-27T03:16:06.616300
| 2016-10-08T07:33:58
| 2016-10-08T07:33:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 676
|
java
|
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.mobileqq.activity.aio.item.StructingMsgItemBuilder;
import com.tencent.mobileqq.hotpatch.NotVerifyClass;
public class npv
implements DialogInterface.OnClickListener
{
public npv(StructingMsgItemBuilder paramStructingMsgItemBuilder)
{
boolean bool = NotVerifyClass.DO_VERIFY_CLASS;
}
public void onClick(DialogInterface paramDialogInterface, int paramInt)
{
paramDialogInterface.dismiss();
}
}
/* Location: E:\apk\QQ_91\classes-dex2jar.jar!\npv.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
e08c7e6eee94c8a4554d52c3b45b5f0d615abe4e
|
647560e6fc98431374f43de6fcdc488bcf621635
|
/src/java/cn/tuna/gof/flyWeight/BigChar.java
|
22e15d685624f8732e07e8230ef5d96f995d24f6
|
[] |
no_license
|
minalz/GOFProject
|
7a72cf447082206159355f99c16e9377237c16d3
|
d452b686b8ca83e2dd6d94273a02137045e0472a
|
refs/heads/master
| 2023-03-23T19:11:19.003329
| 2021-03-18T15:26:03
| 2021-03-18T15:26:03
| 349,122,558
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 855
|
java
|
package cn.tuna.gof.flyWeight;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
public class BigChar {
private char charname;
private String fontdata;
public BigChar(char charname){
this.charname = charname;
try {
BufferedReader reader = new BufferedReader(new FileReader("big"+charname+".txt"));
String line;
StringBuffer buf = new StringBuffer();
while ((line = reader.readLine()) != null){
buf.append(line);
buf.append("\n");
}
reader.close();
this.fontdata = buf.toString();
} catch (IOException e) {
e.printStackTrace();
}
}
public void print(){
System.out.println(fontdata);
}
}
|
[
"119687281@qq.com"
] |
119687281@qq.com
|
7354c2e6ad2468aa745c877b8f7b0a174105ce74
|
bd415d33cb62d583f673a2616aaed4db9e181862
|
/ProyectosCajaRegistrador/CRJPA/src/main/java/com/becoblohm/cr/crjpa/controller/DepuracionJpaController.java
|
42b82e26dcb0eb39fe4e5a96dfae469fa14ae987
|
[
"Apache-2.0"
] |
permissive
|
macor003/desarrollosAndroid
|
05f88ae6da0cc812b343eb62d2520b2a5033e2d4
|
0b8ebe0da371c002e533898626712c1cd68ddfc6
|
refs/heads/master
| 2020-04-21T18:13:13.394252
| 2018-11-22T13:54:26
| 2018-11-22T13:54:26
| 169,761,275
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,498
|
java
|
/*******************************************************************************
* © 2012 Global Retail Information Ltd.
******************************************************************************/
package com.becoblohm.cr.crjpa.controller;
import java.util.TreeMap;
import javax.persistence.EntityManagerFactory;
import com.becoblohm.cr.interfaces.AbstractJPAController;
import crjpa.Depuracion;
/**
*/
public class DepuracionJpaController extends AbstractJPAController {
/**
* Field emf.
*/
private EntityManagerFactory emf;
/**
* Field cleanController.
*/
private crjpa.DepuracionJpaController cleanController;
/**
* Field entityName.
*/
private static String entityName = "Depuracion";
/**
* Constructor for DepuracionJpaController.
*
* @param emf EntityManagerFactory
*/
public DepuracionJpaController(EntityManagerFactory emf) {
super(AbstractJPAController.POSSOURCE, entityName);
this.emf = emf;
cleanController = new crjpa.DepuracionJpaController(this.emf);
}
/**
* Method getCleanQueries.
*
* @return TreeMap<Integer,String>
*/
public TreeMap<Integer, String> getCleanQueries() {
TreeMap<Integer, String> queries = new TreeMap<Integer, String>();
for (Depuracion tmp : cleanController.findDepuracionEntities()) {
queries.put(tmp.getPrioridad(), tmp.getQuery());
}
return queries;
}
}
|
[
"mortega@intelix.biz"
] |
mortega@intelix.biz
|
29cfc17e670b2d37f1d390ac6b45848a09f62a6e
|
0e0dae718251c31cbe9181ccabf01d2b791bc2c2
|
/SCT2/tags/M_SCT2_03/plugins/org.yakindu.sct.statechart.diagram/src/org/yakindu/sct/statechart/diagram/validation/ValidationAction.java
|
6e92467c68f243e2358c573991dbf5346a0a00d6
|
[] |
no_license
|
huybuidac20593/yakindu
|
377fb9100d7db6f4bb33a3caa78776c4a4b03773
|
304fb02b9c166f340f521f5e4c41d970268f28e9
|
refs/heads/master
| 2021-05-29T14:46:43.225721
| 2015-05-28T11:54:07
| 2015-05-28T11:54:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,415
|
java
|
/**
* Copyright (c) 2011 committers of YAKINDU and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* Contributors:
* committers of YAKINDU - initial API and implementation
*
*/
package org.yakindu.sct.statechart.diagram.validation;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.emf.common.util.BasicDiagnostic;
import org.eclipse.emf.common.util.Diagnostic;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.Diagnostician;
import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
import org.eclipse.gmf.runtime.notation.Diagram;
import de.itemis.xtext.utils.gmf.resource.InjectMembersResource;
/**
* Executes the Validation and creates Problem Markers on the resource.
*
* @author andreas muelder
*
*/
public class ValidationAction implements IMarkerType {
public static void validate(DiagramEditPart diagramEditPart, Diagram view) {
IFile target = GMFMarkerUtil.getTargetFile(view);
if (target != null) {
try {
target.deleteMarkers(DIAGRAM_MARKER_TYPE, true,
IResource.DEPTH_ZERO);
target.deleteMarkers(XTEXT_MARKER_TYPE, true,
IResource.DEPTH_ZERO);
} catch (CoreException e) {
e.printStackTrace();
}
}
// // Ecore constraints
Diagnostic diagnostic = Diagnostician.INSTANCE.validate(view
.getElement());
List<Diagnostic> children = diagnostic.getChildren();
for (Diagnostic child : children) {
GMFMarkerUtil.createMarker(target,
BasicDiagnostic.toIStatus(child), view,
DIAGRAM_MARKER_TYPE, (EObject) child.getData().get(0));
}
// Diagnosticans from the InkectMembersResoruce
if (view.eResource() instanceof InjectMembersResource) {
InjectMembersResource resource = (InjectMembersResource) view
.eResource();
List<Diagnostic> diagnostics = resource.getDiagnostics();
for (Diagnostic child : diagnostics) {
GMFMarkerUtil.createMarker(target,
BasicDiagnostic.toIStatus(child), view,
XTEXT_MARKER_TYPE, (EObject) child.getData().get(0));
}
}
}
}
|
[
"terfloth@itemis.de"
] |
terfloth@itemis.de
|
569085f200c0b1828694139b11862379eba5f0c6
|
95cd04bc9043734031590eaf2bdae6ac4f4f3dad
|
/cobranzaElfecMobile/src/main/java/com/elfec/cobranza/presenter/services/BluetoothDevicePickerPresenter.java
|
ad939e45ca28da57827672d432c5a53e309f0bae
|
[] |
no_license
|
diegoRodriguezAguila/Cobranza.Elfec.Mobile
|
5d5f4693ae881458e690979455fee4cfe3a273a1
|
11fe3fd1ac5d4acba26323493d9449db8feb5be2
|
refs/heads/master
| 2021-06-23T22:17:47.099270
| 2017-04-12T18:31:34
| 2017-04-12T18:31:34
| 31,078,904
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,554
|
java
|
package com.elfec.cobranza.presenter.services;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import com.elfec.cobranza.model.printer.ZebraPrinterExt;
import com.elfec.cobranza.presenter.views.IBluetoothDevicePickerDialog;
import com.elfec.cobranza.settings.PreferencesManager;
import com.zebra.sdk.printer.discovery.DiscoveredPrinter;
import com.zebra.sdk.printer.discovery.DiscoveredPrinterBluetooth;
import com.zebra.sdk.printer.discovery.DiscoveryHandler;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
public class BluetoothDevicePickerPresenter implements DiscoveryHandler {
/**
* Evento que se ejecuta el momento en que se selecciona un dispositivo
* @author drodriguez
*
*/
public interface OnBluetoothDevicePicked
{
/**
* Llamado cuando se selecciona un dispositivo
* @param device
*/
public void bluetoothDevicePicked(DiscoveredPrinterBluetooth device);
}
private IBluetoothDevicePickerDialog view;
private OnBluetoothDevicePicked bluetoothDevicePickedCallback;
private BluetoothAdapter mBluetoothAdapter;
private List<DiscoveredPrinterBluetooth> devicesList;
public BluetoothDevicePickerPresenter(IBluetoothDevicePickerDialog view, OnBluetoothDevicePicked bluetoothDevicePickedCallback) {
this.view = view;
this.bluetoothDevicePickedCallback = bluetoothDevicePickedCallback;
this.mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
devicesList = new ArrayList<DiscoveredPrinterBluetooth>();
if (!mBluetoothAdapter.isEnabled())
throw new IllegalStateException("Para poder seleccionar un dispositivo para imprimir debe asegurarse que tiene encendido el bluetooth!");
}
/**
* Carga los dispositivos que están apareados con este dispositivo
*/
public void loadPairedDevices()
{
new Thread(new Runnable() {
@Override
public void run() {
Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();
for (BluetoothDevice device : pairedDevices)
{
if( device.getBluetoothClass().getDeviceClass()==ZebraPrinterExt.ZEBRA_BLUETOOTH_PRINTER)
devicesList.add(new DiscoveredPrinterBluetooth(device.getAddress(), device.getName()));
}
view.showPairedBluetoothPrinters(devicesList);
}
}).start();
}
/**
* Busca por bluetooth dispositivos disponibles
*/
public void searchBluetoothDevices()
{
new Thread(new Runnable() {
@Override
public void run() {
view.invokeBluetoothDiscoverer(BluetoothDevicePickerPresenter.this);
}
}).start();
}
/**
* Procesa el dispositivo seleccionado
* @param printer
*/
public void processSelectedDevice(DiscoveredPrinterBluetooth printer)
{
PreferencesManager.instance().setDefaultPrinter(printer);
if(bluetoothDevicePickedCallback!=null)
bluetoothDevicePickedCallback.bluetoothDevicePicked(printer);
}
@Override
public void discoveryError(String message) {
}
@Override
public void discoveryFinished() {
view.hideDiscoveringPrinters();
}
@Override
public void foundPrinter(DiscoveredPrinter printer) {
if(!isInPairedDevices(printer))
view.showDiscoveredBluetoothPrinter((DiscoveredPrinterBluetooth) printer);
}
/**
* Verifica si el dispostivo ya está en la lista de dispositivos vinculados
* @param printer
* @return true/false
*/
private boolean isInPairedDevices(DiscoveredPrinter printer)
{
for(DiscoveredPrinter prt : devicesList)
{
if(prt.address.equals(printer.address))
return true;
}
return false;
}
}
|
[
"diroag@gmail.com"
] |
diroag@gmail.com
|
b9dc5b6f058a65e09454bf4a52c599c4bd5272b8
|
4a14f4c45cd4a29bd17bd5a1ee3e37f407b01c42
|
/rudder/src/main/java/com/github/rudder/shared/gson/GsonUtil.java
|
1d36c1616cf4877d9e3aa0d2bfd63db63a7584ec
|
[
"MIT"
] |
permissive
|
librudder/rudder
|
9a1ce8fcd596ae6457fbff1bb9e8473b2fa10f63
|
88969b3f6ab5b76739bd676ab3a1d66b2711dda1
|
refs/heads/master
| 2023-08-31T13:10:54.681969
| 2020-03-17T12:28:35
| 2020-03-17T12:28:35
| 243,077,396
| 1
| 0
|
MIT
| 2023-09-13T14:20:49
| 2020-02-25T18:56:47
|
Java
|
UTF-8
|
Java
| false
| false
| 3,985
|
java
|
package com.github.rudder.shared.gson;
import com.github.rudder.shared.http.api.MethodCallResult;
import com.google.gson.*;
import static com.github.rudder.shared.http.api.MethodArguments.MethodArgument;
public class GsonUtil {
public static Gson gson;
static {
gson = new GsonBuilder()
.registerTypeAdapter(MethodArgument.class, (JsonDeserializer<MethodArgument>) (jsonElement, type, jsonDeserializationContext) -> {
final JsonObject asJsonObject = jsonElement.getAsJsonObject();
final JsonElement objectClassJsonElement = asJsonObject.get("objectClass");
final String objectClass = objectClassJsonElement != null ? objectClassJsonElement.getAsString() : null;
final JsonElement isPrimitiveJsonElement = asJsonObject.get("isPrimitive");
final boolean isPrimitive = isPrimitiveJsonElement.getAsBoolean();
final JsonElement objectIdJsonElement = asJsonObject.get("objectId");
final String objectId = objectIdJsonElement != null ? objectIdJsonElement.getAsString() : null;
final JsonElement value = asJsonObject.get("value");
final Object redValue;
if (value == null) {
redValue = null;
} else {
try {
redValue = gson.fromJson(value, Class.forName(objectClass));
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
}
final MethodArgument methodArgument = new MethodArgument();
methodArgument.setValue(redValue);
methodArgument.setObjectClass(objectClass);
methodArgument.setObjectId(objectId);
methodArgument.setPrimitive(isPrimitive);
return methodArgument;
})
.registerTypeAdapter(MethodCallResult.class, (JsonDeserializer<MethodCallResult>) (jsonElement, type, jsonDeserializationContext) -> {
final JsonObject asJsonObject = jsonElement.getAsJsonObject();
final JsonElement objectClassJsonElement = asJsonObject.get("objectClass");
final String objectClass = objectClassJsonElement != null ? objectClassJsonElement.getAsString() : null;
final JsonElement isPrimitiveJsonElement = asJsonObject.get("isPrimitive");
final boolean isPrimitive = isPrimitiveJsonElement.getAsBoolean();
final JsonElement objectIdJsonElement = asJsonObject.get("objectId");
final String objectId = objectIdJsonElement != null ? objectIdJsonElement.getAsString() : null;
final JsonElement value = asJsonObject.get("result");
final Object redValue;
if (value == null) {
redValue = null;
} else {
try {
redValue = gson.fromJson(value, Class.forName(objectClass));
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
}
final boolean isVoid = asJsonObject.get("isVoid").getAsBoolean();
final MethodCallResult methodCallResult = new MethodCallResult();
methodCallResult.setResult(redValue);
methodCallResult.setObjectClass(objectClass);
methodCallResult.setObjectId(objectId);
methodCallResult.setPrimitive(isPrimitive);
methodCallResult.setVoid(isVoid);
return methodCallResult;
})
.create();
}
}
|
[
"samvimes@yandex.ru"
] |
samvimes@yandex.ru
|
ff17bcbb02b57807547b07113f20984785a6075b
|
1f207999be869a53c773c4b3dc4cff3d78f60aca
|
/edu/edu_city/src/main/java/com/ybg/region/dao/RegionDaoImpl.java
|
979e8f8776f7ec25f635715c1e3042bc5abbd57d
|
[] |
no_license
|
BrendaHub/quanmin_admin
|
8b4f1643112910b728adc172324b8fb8a2f672dc
|
866548dc219a2eaee0a09efbc3b6410eb3c2beb9
|
refs/heads/master
| 2021-05-09T04:17:03.818182
| 2018-01-28T15:00:12
| 2018-01-28T15:00:12
| 119,267,872
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,007
|
java
|
package com.ybg.region.dao;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import com.ybg.base.jdbc.BaseDao;
import com.ybg.base.jdbc.BaseMap;
import com.ybg.base.jdbc.DataBaseConstant;
import com.ybg.base.util.Page;
import com.ybg.region.domain.RegionVO;
import com.ybg.region.qvo.RegionQuery;
/** @author Deament
* @since 2017-10-22 **/
@Repository
public class RegionDaoImpl extends BaseDao implements RegionDao {
@Autowired
@Qualifier(DataBaseConstant.JD_EDU)
JdbcTemplate jdbcTemplate;
@Override
public JdbcTemplate getJdbcTemplate() {
return jdbcTemplate;
}
private static String QUERY_TABLE_NAME = " region.PkId, region.RegionName, region.RegionName, region.Level, region.Level, region.ParentId, region.ParentId, region.CityCode, region.CityCode, region.ADCode, region.ADCode, region.CenterLng, region.CenterLng, region.CenterLat, region.CenterLat, region.ProvinceId, region.ProvinceId, region.ProvinceName, region.ProvinceName, region.CityId, region.CityId, region.CityName, region.CityName, region.DistrictId, region.DistrictId, region.DistrictName, region.DistrictName, region.IsActive, region.IsActive, region.CreateBy, region.CreateBy, region.CreateTime, region.CreateTime, region.ModifyBy, region.ModifyBy, region.ModifyTime, region.ModifyTime, PkId";
private static String QUERY_TABLE_COLUMN = "edu_region region";
@Override
public RegionVO save(RegionVO region) throws Exception {
BaseMap<String, Object> createmap = new BaseMap<String, Object>();
Object id = null;
createmap.put("RegionName", region.getRegionname());
createmap.put("Level", region.getLevel());
createmap.put("ParentId", region.getParentid());
createmap.put("CityCode", region.getCitycode());
createmap.put("ADCode", region.getAdcode());
createmap.put("CenterLng", region.getCenterlng());
createmap.put("CenterLat", region.getCenterlat());
createmap.put("ProvinceId", region.getProvinceid());
createmap.put("ProvinceName", region.getProvincename());
createmap.put("CityId", region.getCityid());
createmap.put("CityName", region.getCityname());
createmap.put("DistrictId", region.getDistrictid());
createmap.put("DistrictName", region.getDistrictname());
createmap.put("IsActive", region.getIsactive());
createmap.put("CreateBy", region.getCreateby());
createmap.put("CreateTime", region.getCreatetime());
createmap.put("ModifyBy", region.getModifyby());
createmap.put("ModifyTime", region.getModifytime());
id = basecreate(createmap, "edu_region", true, new Integer(0));
region.setPkid((Integer) id);
return region;
}
@Override
public void update(BaseMap<String, Object> updatemap, BaseMap<String, Object> whereMap) {
this.baseupdate(updatemap, whereMap, "edu_region");
}
@Override
public Page list(Page page, RegionQuery qvo) throws Exception {
StringBuilder sql = new StringBuilder();
sql.append(SELECT).append(QUERY_TABLE_COLUMN).append(FROM).append(QUERY_TABLE_NAME);
sql.append(getcondition(qvo));
page.setTotals(queryForInt(sql));
if (page.getTotals() > 0) {
page.setResult(getJdbcTemplate().query(page.getPagesql(sql), new BeanPropertyRowMapper<RegionVO>(RegionVO.class)));
}
else {
page.setResult(new ArrayList<RegionVO>());
}
return page;
}
private String getcondition(RegionQuery qvo) throws Exception {
StringBuilder sql = new StringBuilder();
sql.append(WHERE).append("1=1");
// if (QvoConditionUtil.checkInteger(qvo.getIsdelete())) {
// sql.append(AND).append("region.isdelete=").append(qvo.getIsdelete());
// } else {
// sql.append(AND).append("region.isdelete=0");// 默认
// }
sqlappen(sql, "region.PkId", qvo.getPkid());
sqlappen(sql, "region.RegionName", qvo.getRegionname());
sqlappen(sql, "region.Level", qvo.getLevel());
sqlappen(sql, "region.ParentId", qvo.getParentid());
sqlappen(sql, "region.CityCode", qvo.getCitycode());
sqlappen(sql, "region.ADCode", qvo.getAdcode());
sqlappen(sql, "region.CenterLng", qvo.getCenterlng());
sqlappen(sql, "region.CenterLat", qvo.getCenterlat());
sqlappen(sql, "region.ProvinceId", qvo.getProvinceid());
sqlappen(sql, "region.ProvinceName", qvo.getProvincename());
sqlappen(sql, "region.CityId", qvo.getCityid());
sqlappen(sql, "region.CityName", qvo.getCityname());
sqlappen(sql, "region.DistrictId", qvo.getDistrictid());
sqlappen(sql, "region.DistrictName", qvo.getDistrictname());
sqlappen(sql, "region.IsActive", qvo.getIsactive());
sqlappen(sql, "region.CreateBy", qvo.getCreateby());
sqlappen(sql, "region.CreateTime", qvo.getCreatetime());
sqlappen(sql, "region.ModifyBy", qvo.getModifyby());
sqlappen(sql, "region.ModifyTime", qvo.getModifytime());
return sql.toString();
}
@Override
public List<RegionVO> list(RegionQuery qvo) throws Exception {
StringBuilder sql = new StringBuilder();
sql.append(SELECT).append(QUERY_TABLE_COLUMN).append(FROM).append(QUERY_TABLE_NAME);
sql.append(getcondition(qvo));
return getJdbcTemplate().query(sql.toString(), new BeanPropertyRowMapper<RegionVO>(RegionVO.class));
}
@Override
public void remove(BaseMap<String, Object> wheremap) {
baseremove(wheremap, "edu_region");
}
@Override
public RegionVO get(Integer pkid) {
StringBuilder sql = new StringBuilder();
sql.append(SELECT).append(QUERY_TABLE_COLUMN).append(FROM).append(QUERY_TABLE_NAME);
sql.append(WHERE).append("1=1");
sql.append(AND + "region.PkId=" + pkid);
List<RegionVO> list = getJdbcTemplate().query(sql.toString(), new BeanPropertyRowMapper<RegionVO>(RegionVO.class));
return list.get(0);
}
}
|
[
"13552666934@139.com"
] |
13552666934@139.com
|
1084c63e2fb8fca41b823a597daa66fbd8fc872c
|
a7fdc188f1ae2ed548af99ae27692788ba0df0a9
|
/org.eclipse.epsilon.smartsax.effectivemetamodel/src/org/eclipse/epsilon/smartsax/effectivemetamodel/impl/EffectiveType.java
|
aad38da90ef2ae1de89f78710bd5f6149c4ff8ff
|
[] |
no_license
|
epsilonlabs/SmartSAX
|
46545954e570286ef01608e1c12586c700fa9539
|
67b86d69e36d531f3d895e21a504f9d0768faae3
|
refs/heads/master
| 2021-01-12T01:52:08.271839
| 2017-01-13T11:52:29
| 2017-01-13T11:52:29
| 78,438,245
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,694
|
java
|
package org.eclipse.epsilon.smartsax.effectivemetamodel.impl;
import java.util.ArrayList;
public class EffectiveType {
protected String name;
protected EffectiveMetamodel effectiveMetamodel;
protected ArrayList<EffectiveFeature> attributes = new ArrayList<EffectiveFeature>();
protected ArrayList<EffectiveFeature> references = new ArrayList<EffectiveFeature>();
public EffectiveType(String name)
{
this.name = name;
}
public String getName() {
return name;
}
public EffectiveMetamodel getEffectiveMetamodel() {
return effectiveMetamodel;
}
public void setEffectiveMetamodel(EffectiveMetamodel effectiveMetamodel) {
this.effectiveMetamodel = effectiveMetamodel;
}
public ArrayList<EffectiveFeature> getAttributes() {
return attributes;
}
public ArrayList<EffectiveFeature> getReferences() {
return references;
}
public boolean containsAttribute(String attribute)
{
for(EffectiveFeature ef: attributes)
{
if (ef.getName().equals(attribute)) {
return true;
}
}
return false;
}
public boolean containsReference(String reference)
{
for(EffectiveFeature ef: references)
{
if (ef.getName().equals(reference)) {
return true;
}
}
return false;
}
public boolean containsFeature(String feature)
{
return containsAttribute(feature) || containsReference(feature);
}
public EffectiveFeature addToAttributes(String attribute)
{
for(EffectiveFeature ef: attributes)
{
if (ef.getName().equals(attribute)) {
ef.setEffectiveType(this);
ef.increaseUsage();
return ef;
}
}
EffectiveFeature attr = new EffectiveFeature(attribute);
attributes.add(attr);
attr.setEffectiveType(this);
return attr;
}
public EffectiveFeature addToReferences(String reference)
{
for(EffectiveFeature ef: references)
{
if(ef.getName().equals(reference))
{
ef.increaseUsage();
return ef;
}
}
EffectiveFeature ref = new EffectiveFeature(reference);
references.add(ref);
ref.setEffectiveType(this);
return ref;
}
public EffectiveFeature increaseAttributeUsage(String attribute)
{
for(EffectiveFeature ef: attributes)
{
if (ef.getName().equals(attribute)) {
ef.increaseUsage();
return ef;
}
}
return null;
}
public EffectiveFeature increaseReferenceUsage(String reference)
{
for(EffectiveFeature ef: references)
{
if (ef.getName().equals(reference)) {
ef.increaseUsage();
return ef;
}
}
return null;
}
public ArrayList<EffectiveFeature> getAllFeatures()
{
ArrayList<EffectiveFeature> result = new ArrayList<EffectiveFeature>();
result.addAll(attributes);
result.addAll(references);
return result;
}
}
|
[
"ran.wei@york.ac.uk"
] |
ran.wei@york.ac.uk
|
f68d3c3e51380a130095b85774a7ac8e43b2ed27
|
3b645de622ac95efefcfa330fcb8ad9c777026f6
|
/src/br/com/saude/api/model/creation/builder/entity/TarefaBuilder.java
|
1ac99e381382a62ecb6d8024126566cf4f2bdcb1
|
[] |
no_license
|
fabiogaspari/saudeapi
|
5036eeb8d4095d4f296cf8ff5c1b193f03f72a56
|
8266e565fb8f8af1a3379fa23fa83e75a779a1a0
|
refs/heads/master
| 2023-09-04T06:32:54.925720
| 2023-08-20T11:52:58
| 2023-08-20T11:52:58
| 171,148,153
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,759
|
java
|
package br.com.saude.api.model.creation.builder.entity;
import java.util.List;
import br.com.saude.api.generic.GenericEntityBuilder;
import br.com.saude.api.model.entity.filter.TarefaFilter;
import br.com.saude.api.model.entity.po.Tarefa;
public class TarefaBuilder extends GenericEntityBuilder<Tarefa, TarefaFilter> {
public static TarefaBuilder newInstance(Tarefa tarefa) {
return new TarefaBuilder(tarefa);
}
public static TarefaBuilder newInstance(List<Tarefa> tarefas) {
return new TarefaBuilder(tarefas);
}
private TarefaBuilder(Tarefa tarefa) {
super(tarefa);
}
private TarefaBuilder(List<Tarefa> tarefas) {
super(tarefas);
}
@Override
protected void initializeFunctions() {
}
@Override
protected Tarefa clone(Tarefa tarefa) {
Tarefa newTarefa = new Tarefa();
newTarefa.setId(tarefa.getId());
newTarefa.setInicio(tarefa.getInicio());
newTarefa.setFim(tarefa.getFim());
newTarefa.setAtualizacao(tarefa.getAtualizacao());
newTarefa.setStatus(tarefa.getStatus());
newTarefa.setVersion(tarefa.getVersion());
if(tarefa.getCliente() != null)
newTarefa.setCliente(EmpregadoBuilder.newInstance(tarefa.getCliente())
.getEntity());
if(tarefa.getEquipe() != null)
newTarefa.setEquipe(EquipeBuilder.newInstance(tarefa.getEquipe()).getEntity());
if(tarefa.getResponsavel() != null)
newTarefa.setResponsavel(ProfissionalBuilder.newInstance(tarefa.getResponsavel())
.getEntity());
if(tarefa.getServico() != null)
newTarefa.setServico(ServicoBuilder.newInstance(tarefa.getServico()).getEntity());
return newTarefa;
}
@Override
public Tarefa cloneFromFilter(TarefaFilter filter) {
return null;
}
}
|
[
"fabio.gaspari@gmail.com"
] |
fabio.gaspari@gmail.com
|
30ccddba363a8dbec81e0a78d0e357ac62151589
|
258a8585ed637342645b56ab76a90a1256ecbb45
|
/Folitics/src/main/java/com/ohmuk/folitics/hibernate/entity/like/FactLike.java
|
1bbc94e7c71bbd765007192a5b7cac0c03c9cf3a
|
[] |
no_license
|
exatip407/folitics
|
06e899aae2dbfdeda981c40c0ce578d223979568
|
aff3392e09c35f5f799e3fb1c4534b5343a22f01
|
refs/heads/master
| 2021-01-01T16:23:14.684470
| 2017-07-20T10:27:08
| 2017-07-20T10:27:08
| 97,819,592
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,519
|
java
|
package com.ohmuk.folitics.hibernate.entity.like;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import com.ohmuk.folitics.hibernate.entity.Fact;
import com.ohmuk.folitics.util.DateUtils;
/**
* Entity for like on entity: {@link Fact}
*
* @author Harish
*
*/
@Entity
@Table(name = "factlike")
public class FactLike implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
@EmbeddedId
private LikeId id;
@Column(nullable = false)
@NotNull(message = "error.componentLike.editTime.notNull")
private Timestamp editTime;
@Column(nullable = false)
@NotNull(message = "error.componentLike.createTime.notNull")
private Timestamp createTime;
@Column(nullable = false)
@NotNull(message = "error.componentLike.likeFlag.notNull")
private boolean likeFlag;
@Column(nullable = false)
@NotNull(message = "error.componentLike.dislikeFlag.notNull")
private boolean dislikeFlag;
public FactLike() {
setCreateTime(DateUtils.getSqlTimeStamp());
setEditTime(DateUtils.getSqlTimeStamp());
}
/**
* @return the id
*/
public LikeId getId() {
return id;
}
/**
* @param id
* the id to set
*/
public void setId(LikeId id) {
this.id = id;
}
/**
* @return the editTime
*/
public Timestamp getEditTime() {
return editTime;
}
/**
* @param editTime
* the editTime to set
*/
public void setEditTime(Timestamp editTime) {
this.editTime = editTime;
}
/**
* @return the createTime
*/
public Timestamp getCreateTime() {
return createTime;
}
/**
* @param createTime
* the createTime to set
*/
public void setCreateTime(Timestamp createTime) {
this.createTime = createTime;
}
/**
* @return the likeFlag
*/
public boolean isLikeFlag() {
return likeFlag;
}
/**
* @param likeFlag
* the likeFlag to set
*/
public void setLikeFlag(boolean likeFlag) {
this.likeFlag = likeFlag;
}
/**
* @return the dislikeFlag
*/
public boolean isDislikeFlag() {
return dislikeFlag;
}
/**
* @param dislikeFlag
* the dislikeFlag to set
*/
public void setDislikeFlag(boolean dislikeFlag) {
this.dislikeFlag = dislikeFlag;
}
}
|
[
"gautam@exatip.com"
] |
gautam@exatip.com
|
8d06ee702badfe617f3211d085224e7a837d8b67
|
255ff79057c0ff14d0b760fc2d6da1165f1806c8
|
/02JavaStep02/01java进阶13天资料/day07-异常,线程的创建方式,,线程安全,线程同步/homework/异常,线程创建作业/day07_Homework/src/com/itheima/test01/Test02.java
|
d8c3ab58724478012f2f8487c6bd24c4567c9ede
|
[] |
no_license
|
wjphappy90/Resource
|
7f1f817d323db5adae06d26da17dfc09ee5f9d3a
|
6574c8399f3cdfb6d6b39cd64dc9507e784a2549
|
refs/heads/master
| 2022-07-30T03:33:59.869345
| 2020-08-10T02:31:35
| 2020-08-10T02:31:35
| 285,701,650
| 2
| 6
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 247
|
java
|
package com.itheima.test01;
/**
需求说明
请说出虚拟机处理异常的方式
*/
public class Test02 {
/*
1.把异常对象的类名,异常内容,异常出现的位置信息打印到控制台上
2. 终止程序执行*/
}
|
[
"981146457@qq.com"
] |
981146457@qq.com
|
84ae8688785317ae14fedaeaca26c2101cdb7718
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/5/5_4469c37c42adb5628a2ca610cf5ee105d25269d8/filetypes/5_4469c37c42adb5628a2ca610cf5ee105d25269d8_filetypes_s.java
|
b78b5e58a9f80496e30f2d69a90c2acb782cefbd
|
[] |
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,214
|
java
|
# For complete documentation of this file, please see Geany's main documentation
[styling]
# foreground;background;bold;italic
default=0x000000;0xffffff;false;false
comment=0xd00000;0xffffff;false;false
commentline=0xd00000;0xffffff;false;false
commentdoc=0x3f5fbf;0xffffff;false;false
number=0x007f00;0xffffff;false;false
word=0x00007f;0xffffff;true;false
word2=0x991111;0xffffff;true;false
string=0xff901e;0xffffff;false;false
character=0xff901e;0xffffff;false;false
uuid=0x404080;0xffffff;false;false
preprocessor=0x007F7F;0xffffff;false;false
operator=0x301010;0xffffff;false;false
identifier=0x000000;0xffffff;false;false
stringeol=0x000000;0xe0c0e0;false;false
verbatim=0x101030;0xffffff;false;false
regex=0x105090;0xffffff;false;false
commentlinedoc=0x3f5fbf;0xffffff;true;false
commentdockeyword=0x3f5fbf;0xffffff;true;true
globalclass=0x0000d0;0xffffff;true;false
[keywords]
primary=abstract assert break case catch class const continue default do else extends final finally for future generic goto if implements import inner instanceof interface native new outer package private protected public rest return static super switch synchronized this throw throws transient try var volatile while true false null
secondary=boolean byte char double float int long null short void
doccomment=return param author throws
typedefs=
[settings]
# the following characters are these which a "word" can contains, see documentation
#wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
# if only single comment char is supported like # in this file, leave comment_close blank
comment_open=/*
comment_close=*/
# set to false if a comment character/string should start at column 0 of a line, true uses any
# indention of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
# This setting works only for single line comments
comment_use_indent=true
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
# (use only one of it at one time)
compiler=javac "%f"
run_cmd=java "%e"
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
b9ab628c8d7041363ea82e8461426f215dee6e7d
|
255e06bf455710e4db875db32b1dacbdae574db5
|
/wxqutilslibrary/src/main/java/viewgroupadapter/ViewGroupUtils.java
|
294f0672897e2b7449f4340ed2f9c898a79f1540
|
[] |
no_license
|
githubwxq/CommonLibrary
|
13e396f111a6464ec6e53a136c1d871722e48891
|
47c00c0360aecaf2e0e1535ef393f9c988963267
|
refs/heads/master
| 2021-01-18T07:58:31.163483
| 2017-03-08T09:01:07
| 2017-03-08T09:01:07
| 84,299,684
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,092
|
java
|
package viewgroupadapter;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by Administrator on 2016/12/18.
*/
public class ViewGroupUtils { // 帮助类
public static void addViews(final ViewGroup viewGroup, IViewGroupAdapter adapter) {
addViews(viewGroup, adapter, true, null, null);
}
public static void addViews(final ViewGroup viewGroup, IViewGroupAdapter adapter
, final OnItemClickListener onItemClickListener) {
addViews(viewGroup, adapter, true, onItemClickListener, null);
}
public static void addViews(final ViewGroup viewGroup,IViewGroupAdapter adapter,boolean removeViews,final OnItemClickListener onItemClickListener,final OnItemLongClickListener onItemLongClickListener){
if(viewGroup==null||adapter==null){
return;
}
if(removeViews && viewGroup.getChildCount()>0){
viewGroup.removeAllViews();
}
int count=adapter.getCount();
for (int i=0;i<count;i++){
View itemView=adapter.getView(viewGroup,i);// 适配器
viewGroup.addView(itemView);
if(null!=onItemClickListener&& !itemView.isClickable()){
final int finali = i;
itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
onItemClickListener.onItemClick(viewGroup,view,finali ); //由上层处理
}
});
//添加长按事件itemView之前没有长按事件才会去设置
if (null != onItemLongClickListener && !itemView.isLongClickable()) {
final int finalI = i;
itemView.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View view) {
return onItemLongClickListener.onItemLongClick(viewGroup, view, finalI);
}
});
}
}
}
}
}
|
[
"805380422@qq.com"
] |
805380422@qq.com
|
671aaae5b75f5b37818eceb9b29468b30846887a
|
ef5bea450f69e1d16dee0cd15e9076da2a427e8f
|
/app/src/main/java/cn/longmaster/hospital/doctor/core/entity/doctor/DepartmentListInfo.java
|
324af3e09414b79d115833d047e4b61e20ebcfa6
|
[] |
no_license
|
chengsoft618/Internet_Hospital_Doctor
|
c9e37e8ce80bf3c303f799406644f1adf4cb10df
|
b6486de17b2246113bcee26d0ec3f2586828d5f7
|
refs/heads/master
| 2021-02-07T20:55:11.939929
| 2020-01-16T09:10:08
| 2020-01-16T09:10:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 985
|
java
|
package cn.longmaster.hospital.doctor.core.entity.doctor;
import java.io.Serializable;
import cn.longmaster.doctorlibrary.util.json.JsonField;
/**
* Created by W·H·K on 2018/11/23.
*/
public class DepartmentListInfo implements Serializable {
@JsonField("department_id")
private int departmentId;//科室id
@JsonField("department_name")
private String departmentName;//科室名称
public int getDepartmentId() {
return departmentId;
}
public void setDepartmentId(int departmentId) {
this.departmentId = departmentId;
}
public String getDepartmentName() {
return departmentName;
}
public void setDepartmentName(String departmentName) {
this.departmentName = departmentName;
}
@Override
public String toString() {
return "DepartmentListInfo{" +
"departmentId=" + departmentId +
", departmentName=" + departmentName +
'}';
}
}
|
[
"wangyangguiyang@163.com"
] |
wangyangguiyang@163.com
|
ae10507cbfdeb66b2943875de3a7885546d90fcc
|
f6899a2cf1c10a724632bbb2ccffb7283c77a5ff
|
/org.checkerframework/checker-compat-qual/2.0.0/framework/src/org/checkerframework/qualframework/poly/Wildcard.java
|
947e3b56db1944c47aba1db5ee065e7dadf577bb
|
[
"MIT"
] |
permissive
|
Appdynamics/OSS
|
a8903058e29f4783e34119a4d87639f508a63692
|
1e112f8854a25b3ecf337cad6eccf7c85e732525
|
refs/heads/master
| 2023-07-22T03:34:54.770481
| 2021-10-28T07:01:57
| 2021-10-28T07:01:57
| 19,390,624
| 2
| 13
| null | 2023-07-08T02:26:33
| 2014-05-02T22:42:20
| null |
UTF-8
|
Java
| false
| false
| 3,676
|
java
|
package org.checkerframework.qualframework.poly;
import java.util.*;
/** A qualifier wildcard, bounded above and below by {@link PolyQual}s.
*/
public class Wildcard<Q> {
private final PolyQual<Q> lower;
private final PolyQual<Q> upper;
public Wildcard(PolyQual<Q> lower, PolyQual<Q> upper) {
// Don't let the user pass in `null`. We use `null` to represent the
// special empty wildcard.
if (lower == null || upper == null) {
throw new IllegalArgumentException("wildcard bounds may not be null");
}
this.lower = lower;
this.upper = upper;
}
public Wildcard(PolyQual<Q> qual) {
this(qual, qual);
}
public Wildcard(Q groundLower, Q groundUpper) {
this(new PolyQual.GroundQual<Q>(groundLower), new PolyQual.GroundQual<Q>(groundUpper));
}
public Wildcard(Q groundQual) {
this(new PolyQual.GroundQual<Q>(groundQual));
}
// Force the user to write `Wildcard.empty()` instead of `new Wildcard()`,
// to make it clear that they're getting something special, rather than
// a normal wildcard with default bounds or something like that.
private Wildcard() {
this.lower = null;
this.upper = null;
}
/** Produce the empty wildcard. */
public static <Q> Wildcard<Q> empty() {
return new Wildcard<Q>();
}
/** Get the lower bound of the wildcard, or {@code null} if this is the
* empty wildcard. */
public PolyQual<Q> getLowerBound() {
return this.lower;
}
/** Get the upper bound of the wildcard, or {@code null} if this is the
* empty wildcard. */
public PolyQual<Q> getUpperBound() {
return this.upper;
}
/** Check if this is the empty wildcard. */
public boolean isEmpty() {
return this.lower == null;
}
/** Substitute wildcards for qualifier parameters. */
public Wildcard<Q> substitute(Map<String, Wildcard<Q>> substs) {
Map<String, PolyQual<Q>> lowerSubsts = new HashMap<>();
Map<String, PolyQual<Q>> upperSubsts = new HashMap<>();
for (String k : substs.keySet()) {
lowerSubsts.put(k, substs.get(k).getLowerBound());
upperSubsts.put(k, substs.get(k).getUpperBound());
}
PolyQual<Q> newLower = lower.substitute(lowerSubsts);
PolyQual<Q> newUpper = upper.substitute(upperSubsts);
return new Wildcard<Q>(newLower, newUpper);
}
/** Combine with another wildcard, using the provided {@link
* CombiningOperation}s for the upper and lower bounds.
*/
public Wildcard<Q> combineWith(Wildcard<Q> other,
CombiningOperation<Q> lowerOp, CombiningOperation<Q> upperOp) {
return new Wildcard<Q>(
this.getLowerBound().combineWith(other.getLowerBound(), lowerOp),
this.getUpperBound().combineWith(other.getUpperBound(), upperOp));
}
@Override
public boolean equals(Object o) {
if (o == null || o.getClass() != this.getClass()) {
return false;
}
@SuppressWarnings("rawtypes")
Wildcard other = (Wildcard)o;
return this.lower.equals(other.lower)
&& this.upper.equals(other.upper);
}
@Override
public int hashCode() {
return this.lower.hashCode() * 37
+ this.upper.hashCode() * 59;
}
@Override
public String toString() {
if (this.isEmpty()) {
return "ø";
} else if (lower.equals(upper)) {
return lower.toString();
} else {
return "? ∈ [" + lower + ".." + upper + "]";
}
}
}
|
[
"gangadhar.chalapaka@appdynamics.com"
] |
gangadhar.chalapaka@appdynamics.com
|
54478e652dfbdcdfec316bddde0eef92744422aa
|
c173fc0a3d23ffda1a23b87da425036a6b890260
|
/hrsaas/src/org/paradyne/model/common/FolderByFullNameComparator.java
|
4912ff56792a9e6249f4c2e9fa92db12e5d66653
|
[
"Apache-2.0"
] |
permissive
|
ThirdIInc/Third-I-Portal
|
a0e89e6f3140bc5e5d0fe320595d9b02d04d3124
|
f93f5867ba7a089c36b1fce3672344423412fa6e
|
refs/heads/master
| 2021-06-03T05:40:49.544767
| 2016-08-03T07:27:44
| 2016-08-03T07:27:44
| 62,725,738
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,068
|
java
|
/*
* @(#)FolderByFullNameComparator.java 1.00 2007/07/25
*
* Copyright (c) 2007, Stephan Sann
*
* 25.07.2007 ssann Vers. 1.0 created
*/
package org.paradyne.model.common;
import java.util.Comparator;
import javax.mail.Folder;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Comparator fuer das Sortieren von Foldern nach ihrem vollen Namen
*
* @author Stephan Sann
* @version 1.0
*/
public class FolderByFullNameComparator implements Comparator<Folder> {
// --------------------------------------------------------- Klassen-Variablen
/** Logging-Instanz */
protected static Log log =
LogFactory.getLog(FolderByFullNameComparator.class);
// ----------------------------------------------------- oeffentliche Methoden
/* (non-Javadoc)
* @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
*/
public int compare(Folder o1, Folder o2) {
System.out.println("----------------------------------------------in compare method of FolderBYFull...");
int rueck = 0;
try {
// Sind die Sender-Arrays beider Messages am Start und nicht leer?
boolean einsDa = (o1 != null);
boolean zweiDa = (o2 != null);
if(einsDa && zweiDa) {
String fullNameFolderEins = ((Folder)o1).getFullName();
String fullNameFolderZwei = ((Folder)o2).getFullName();
// Wir sortieren nach dem ersten Sender
rueck = fullNameFolderEins.compareToIgnoreCase(fullNameFolderZwei);
}
// Sonst Messages mit leeren "Froms" nach oben sortieren
else if((! einsDa) && zweiDa) {
rueck = (-50);
}
else if(einsDa && (! zweiDa)) {
rueck = 50;
}
else {
rueck = 0;
}
return(rueck);
}
catch(Exception e) {
// Bei einer Exception geben wir 0 zurueck.
log.error("[compare] Problem beim Beziehen der Folder.", e);
return(0);
}
}
}
|
[
"Jigar.V@jigar_vasani.THIRDI.COM"
] |
Jigar.V@jigar_vasani.THIRDI.COM
|
bd8a69b03a1b4b73e6490753001b60915f008b52
|
9e048428ca10f604c557784f4b28c68ce9b5cccb
|
/bitcamp-spring-ioc/src/main/java/org/springframework/step05/Exam01.java
|
59ba6d5c0150fa4080272318ecefc682b2b207b7
|
[] |
no_license
|
donhee/bitcamp
|
6c90ec687e00de07315f647bdb1fda0e277c3937
|
860aa16d86cbd6faeb56b1f5c70b5ea5d297aef0
|
refs/heads/master
| 2021-01-24T11:44:48.812897
| 2019-02-20T00:06:07
| 2019-02-20T00:06:07
| 123,054,172
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 505
|
java
|
package org.springframework.step05;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Exam01 {
public static void main(String[] args) {
ApplicationContext iocContainer = new ClassPathXmlApplicationContext(
"org/springframework/step05/application-context-01.xml");
Car c1 = (Car) iocContainer.getBean("c1");
System.out.println(c1);
}
}
|
[
"231313do@gmail.com"
] |
231313do@gmail.com
|
4f087a51cd071bc215883da7d0561f0113a0d4e2
|
fe141a5390925689defa01600773ecee03b9e5c3
|
/esys-framework/core/src/main/java/com/esys/framework/core/configuration/DatabaseConfiguration.java
|
ddebd822f986dbe9726dc75a77a9bf018da7ca30
|
[] |
no_license
|
atknatk/java-microservice-framework
|
43cde522b97fd02362ff0133ccb0a105ad18c03d
|
b664940481efb1177cbce7bde2c6fdb052542aa0
|
refs/heads/master
| 2022-03-25T18:03:50.847030
| 2019-12-24T10:29:00
| 2019-12-24T10:29:00
| 229,921,427
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 830
|
java
|
package com.esys.framework.core.configuration;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.datatables.repository.DataTablesRepositoryFactoryBean;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@Configuration
@EnableJpaRepositories(repositoryFactoryBeanClass = DataTablesRepositoryFactoryBean.class,value = "com.esys.framework")
@EntityScan("com.esys.framework")
@EnableJpaAuditing(auditorAwareRef = "springSecurityAuditorAware")
@EnableTransactionManagement
public class DatabaseConfiguration {
// DatabaseConfiguration
}
|
[
"atakan.atik@siemens.com"
] |
atakan.atik@siemens.com
|
28ef393fa2d670ccd65dc079ffc8c06f578cd5a3
|
228c79453d2997f5b04577491480d8618023890c
|
/SSHDemo/src/hibernate/demo23/domain/UserAccount.java
|
bd48d1f32d6188e8bb76618bd8ac4182de919356
|
[] |
no_license
|
liaoqichao/demo-javaweb
|
5ac5596a398d4cfbf21b817d86dcbbad5cb60d91
|
9b70131a1808dfcbaddbc8f05143eab8718719fc
|
refs/heads/master
| 2021-04-09T12:56:48.998718
| 2018-03-17T15:25:09
| 2018-03-17T15:25:09
| 125,641,855
| 2
| 0
| null | null | null | null |
WINDOWS-1252
|
Java
| false
| false
| 1,097
|
java
|
package hibernate.demo23.domain;
import java.util.HashSet;
import java.util.Set;
/**
* Óû§Õ˺Å
*/
public class UserAccount {
private Long id;
private String loginName;
private String password;
private Employee employee;
private Set<Privilege> privilegeSet = new HashSet<Privilege>();
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getLoginName() {
return loginName;
}
public void setLoginName(String loginName) {
this.loginName = loginName;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public Employee getEmployee() {
return employee;
}
public void setEmployee(Employee employee) {
this.employee = employee;
}
public Set<Privilege> getPrivilegeSet() {
return privilegeSet;
}
public void setPrivilegeSet(Set<Privilege> privilegeSet) {
this.privilegeSet = privilegeSet;
}
@Override
public String toString() {
return "UserAccount [id=" + id + ", loginName=" + loginName + ", password=" + password + "]";
}
}
|
[
"growin_of_my_heart@163.com"
] |
growin_of_my_heart@163.com
|
169c875c582738e272bfa8a85ee4c1e5df4bac5a
|
d71e879b3517cf4fccde29f7bf82cff69856cfcd
|
/ExtractedJars/iRobot_com.irobot.home/javafiles/com/google/android/gms/common/internal/IAccountAccessor$Stub$zza.java
|
2e268fcf08271667c86d5d5e169c6d0f57ca0c55
|
[
"MIT"
] |
permissive
|
Andreas237/AndroidPolicyAutomation
|
b8e949e072d08cf6c6166c3f15c9c63379b8f6ce
|
c1ed10a2c6d4cf3dfda8b8e6291dee2c2a15ee8a
|
refs/heads/master
| 2020-04-10T02:14:08.789751
| 2019-05-16T19:29:11
| 2019-05-16T19:29:11
| 160,739,088
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,920
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.gms.common.internal;
import android.accounts.Account;
import android.os.IBinder;
import android.os.Parcel;
import com.google.android.gms.internal.common.zza;
import com.google.android.gms.internal.common.zzc;
// Referenced classes of package com.google.android.gms.common.internal:
// IAccountAccessor
public static final class IAccountAccessor$Stub$zza extends zza
implements IAccountAccessor
{
public final Account getAccount()
{
Parcel parcel = ((zza)this).zza(2, ((zza)this).zza());
// 0 0:aload_0
// 1 1:iconst_2
// 2 2:aload_0
// 3 3:invokevirtual #23 <Method Parcel zza.zza()>
// 4 6:invokevirtual #26 <Method Parcel zza.zza(int, Parcel)>
// 5 9:astore_1
Account account = (Account)zzc.zza(parcel, Account.CREATOR);
// 6 10:aload_1
// 7 11:getstatic #32 <Field android.os.Parcelable$Creator Account.CREATOR>
// 8 14:invokestatic #37 <Method android.os.Parcelable zzc.zza(Parcel, android.os.Parcelable$Creator)>
// 9 17:checkcast #28 <Class Account>
// 10 20:astore_2
parcel.recycle();
// 11 21:aload_1
// 12 22:invokevirtual #43 <Method void Parcel.recycle()>
return account;
// 13 25:aload_2
// 14 26:areturn
}
IAccountAccessor$Stub$zza(IBinder ibinder)
{
super(ibinder, "com.google.android.gms.common.internal.IAccountAccessor");
// 0 0:aload_0
// 1 1:aload_1
// 2 2:ldc1 #14 <String "com.google.android.gms.common.internal.IAccountAccessor">
// 3 4:invokespecial #17 <Method void zza(IBinder, String)>
// 4 7:return
}
}
|
[
"silenta237@gmail.com"
] |
silenta237@gmail.com
|
faa5fa720f2870808da2fea3e84e94168968f12c
|
8155b3907cd529e29a1c71f95133b129d09037de
|
/src/com/caihong/common/security/AccountExpiredException.java
|
ed813e0e6aedc25b78a298129f4fcc7dad46a678
|
[] |
no_license
|
xrogzu/caihongbbs
|
4410a4b541a4bac846bf875887958f92cc617903
|
94682bebbdb15b500f7b30ceb4af5b57d3b62d8a
|
refs/heads/master
| 2020-04-06T04:13:52.247974
| 2017-02-23T06:06:57
| 2017-02-23T06:06:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 473
|
java
|
package com.caihong.common.security;
/**
* 账号过期异常。如:改账号只缴纳了一年的费用,一年后没有续费。
*
* @author tom
*
*/
@SuppressWarnings("serial")
public class AccountExpiredException extends AccountStatusException {
public AccountExpiredException() {
}
public AccountExpiredException(String msg) {
super(msg);
}
public AccountExpiredException(String msg, Object extraInformation) {
super(msg, extraInformation);
}
}
|
[
"qianfo_713@163.com"
] |
qianfo_713@163.com
|
544432d55bcff60a2d8b3d352b65e50cd112eb69
|
b4814bfedb86a4b6c636b2e801e396c1da0f81c7
|
/mil.dod.th.word.htm.doclet/src/org/udri/util/XSDAppender.java
|
1b95490d14cbd444e581f14f8e931d8ec5f3fed5
|
[
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
sofwerx/OSUS-R
|
424dec40db77c58c84ed2f077310c097fae3430f
|
2be47821355573149842e1dd0d8bbd75326da8a7
|
refs/heads/master
| 2020-04-09T00:38:55.382392
| 2018-12-10T18:58:29
| 2018-12-10T18:58:29
| 159,875,746
| 0
| 0
|
NOASSERTION
| 2018-11-30T20:34:45
| 2018-11-30T20:34:45
| null |
UTF-8
|
Java
| false
| false
| 6,111
|
java
|
//==============================================================================
// This software is part of the Open Standard for Unattended Sensors (OSUS)
// reference implementation (OSUS-R).
//
// To the extent possible under law, the author(s) have dedicated all copyright
// and related and neighboring rights to this software to the public domain
// worldwide. This software is distributed without any warranty.
//
// You should have received a copy of the CC0 Public Domain Dedication along
// with this software. If not, see
// <http://creativecommons.org/publicdomain/zero/1.0/>.
//==============================================================================
package org.udri.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileFilter;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
/**
* Given an input file and a directory, insert all of the XSD documents.
*
* @author UDRI
*
*/
public class XSDAppender {
public static final String TH_XSD_MARKER_START = "INSERT_XSD_DOCS";
public static final String TH_XSD_MARKER_END = "END_XSD_DOCS";
private static final String[][] SCHEMAS = {
{ "observationSchema", "Observation Schemas"},
{ "capabilitySchema", "Capability Schemas"},
{ "commandSchema", "Command Schemas"},
{ "missionProgramSchema", "Mission Program Schemas"},
{ "sharedSchema", "Shared Schemas"},
{ "inventorySchema", "Inventory Schemas"},
{ "remoteChannelSchema", "Remote Channel Schemas"}};
private PrintWriter _apiFile;
public XSDAppender(PrintWriter apiFile) {
_apiFile = apiFile;
}
/**
* Write the XSDs for each XSD in the resource dir. This assumes that XSDs
* are included in subfolders within the resourcesDir
*/
public void writeXSDs(File resourcesDir) throws IOException {
File[] subdirs = resourcesDir.listFiles(new FileFilter() {
@Override
public boolean accept(File arg0) {
if (arg0.isDirectory()) {
return true;
}
return false;
}
});
for (File subdir : subdirs) {
// ignore hidden directories, like .svn, as well as non-directories
if (subdir.getName().startsWith(".") || !subdir.isDirectory()) {
continue;
}
// If the schema dir is in the predefined list of schemas, then
// process it.
for (String[] schemaDirs : SCHEMAS) {
if (schemaDirs[0].equals(subdir.getName())) {
addXSDs(subdir, schemaDirs[1]);
break;
}
}
}
}
/**
* Write out XSD file to RandomAccessFile
*
* @param name
* the header name
*/
private void addXSDs(File xsdDir, String name) throws IOException {
StringBuilder resourceStr = new StringBuilder(
"<div style='mso-element:para-border-div;border-top:double windowtext 2.5pt;")
.append("border-left:none;border-bottom:double windowtext 2.5pt;border-right:none;")
.append("mso-border-top-alt:triple windowtext 2.5pt;mso-border-bottom-alt:triple windowtext 2.5pt;")
.append("padding:1.0pt 0in 1.0pt 0in'>");
resourceStr
.append("<h1 style='mso-list:l5 level1 lfo1'><![if !supportLists]><span class=grame><span")
.append("style='mso-fareast-font-family:\"Times New Roman\"'><span style='mso-list:Ignore'>2<span")
.append("style='font:7.0pt \"Times New Roman\"'> ")
.append("</span></span></span></span><![endif]><span class=grame><span style='mso-fareast-font-family:")
.append("\"Times New Roman\"'>").append(name).append("<o:p></o:p></span></span></h1>")
.append("</div>");
_apiFile.println(resourceStr.toString());
// Get all XSD files
File[] xsds = xsdDir.listFiles(new FileFilter() {
@Override
public boolean accept(File pathname) {
if (pathname.getName().endsWith("xsd")) {
return true;
}
return false;
}
});
for (File xsd : xsds) {
// Write header
StringBuilder xsdStr = new StringBuilder(
"<div style='mso-element:para-border-div;border-top:double windowtext 1.5pt;;")
.append("border-left:none;border-bottom:double windowtext 1.5pt;border-right:none;")
.append("padding:1.0pt 0in 1.0pt 0in'>");
// Add intra-document link point
xsdStr.append("<h2 style='mso-list:l5 level2 lfo1'><![if !supportLists]><span class=grame><span")
.append("style='mso-fareast-font-family:\"Times New Roman\"'><span style='mso-list:Ignore'><span")
.append("style='font:7.0pt \"Times New Roman\"'> ")
.append("</span></span></span></span><![endif]><span class=grame><span style='mso-fareast-font-family:")
.append("\"Times New Roman\"'>").append(xsd.getName()).append("<o:p></o:p></span></span></h2>")
.append("</div>");
_apiFile.println(xsdStr.toString());
// Write XSD file, using same font as for <code> comments.
_apiFile.println("<p class=MsoNormal style='margin-left:50.0pt;'>");
BufferedReader br = new BufferedReader(new FileReader(xsd));
String line;
while ((line = br.readLine()) != null) {
_apiFile.print("<pre><span style='mso-bookmark:_Ref286137727'><span class=grame><span style='font-family:Courier'>");
_apiFile.print(line.replaceAll("<", "<").replaceAll(">",
">").replaceAll("\n", ""));
_apiFile.println("</span></span></pre>");
}
br.close();
_apiFile.println("</p>");
_apiFile.flush();
}
}
}
|
[
"darren.landoll@udri.udayton.edu"
] |
darren.landoll@udri.udayton.edu
|
86806af534039d104ebf8d070d8ea9437eb932bc
|
59269e6549dd6c9d5a752e69591f3d5d11702e07
|
/ezyfox-morphia/src/test/java/com/tvd12/ezyfox/morphia/testing/data/Cat.java
|
b5e58f671e4917d6ba6adf2ca282590eb54a05bf
|
[
"Apache-2.0"
] |
permissive
|
trungthao1989/ezyfox
|
7d51e2eb7fa1de30d1b4185496e618a919ee88d4
|
88885d4ba61c79c6da791aff0b9229dc59ddb271
|
refs/heads/master
| 2020-05-26T12:25:59.843302
| 2019-05-21T17:14:54
| 2019-05-21T17:14:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,047
|
java
|
package com.tvd12.ezyfox.morphia.testing.data;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ThreadLocalRandom;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import xyz.morphia.annotations.Entity;
import xyz.morphia.annotations.Id;
@Setter
@Getter
@ToString
@NoArgsConstructor
@EqualsAndHashCode
@Entity(value = "ezyfox.mongodb.testing.cat", noClassnameStored = true)
public class Cat {
@Id
private Long id = (long) ThreadLocalRandom.current().nextInt(Integer.MAX_VALUE);
private String name = "cat#" + ThreadLocalRandom.current().nextInt(Integer.MAX_VALUE);
private String fixedValue = "fixedValue";
private Set<String> valueSet = new HashSet<>();
public int age = 10;
private List<Kitty> kitties = new ArrayList<>();
private List<String> valueList = new ArrayList<>();
private int free;
private String unset = "100";
public Cat(Long id) {
this.id = id;
}
}
|
[
"itprono3@gmail.com"
] |
itprono3@gmail.com
|
8bd488550672614a18e99ec534f3ead1619586aa
|
efea07f32c57c84d9c137fd9fd287f77d039d919
|
/javasource/testcases/proxies/FieldCheckType.java
|
479e688ccbc1136d264ef6140ac7baead5311f18
|
[
"MIT"
] |
permissive
|
McDoyen/yavasource
|
a4e53bb519ded49f85c8475fca7c94abf1cfdaee
|
fe15e7d9c3d230465583764d01daedd6157060a8
|
refs/heads/master
| 2021-05-07T01:22:45.391241
| 2017-11-10T11:48:54
| 2017-11-10T11:48:54
| 110,241,187
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,185
|
java
|
// This file was generated by Mendix Modeler.
//
// WARNING: Code you write here will be lost the next time you deploy the project.
package testcases.proxies;
public enum FieldCheckType
{
Visibility(new java.lang.String[][] { new java.lang.String[] { "en_US", "Visibility" }, new java.lang.String[] { "nl_NL", "Zichtbaarheid" } }),
Editablitily(new java.lang.String[][] { new java.lang.String[] { "en_US", "Editablitily" } }),
Value(new java.lang.String[][] { new java.lang.String[] { "en_US", "Value" }, new java.lang.String[] { "nl_NL", "Waarde" } });
private java.util.Map<java.lang.String, java.lang.String> captions;
private FieldCheckType(java.lang.String[][] captionStrings)
{
this.captions = new java.util.HashMap<java.lang.String, java.lang.String>();
for (java.lang.String[] captionString : captionStrings)
captions.put(captionString[0], captionString[1]);
}
public java.lang.String getCaption(java.lang.String languageCode)
{
if (captions.containsKey(languageCode))
return captions.get(languageCode);
return captions.get("en_US");
}
public java.lang.String getCaption()
{
return captions.get("en_US");
}
}
|
[
"mrpoloh@yahoo.co.uk"
] |
mrpoloh@yahoo.co.uk
|
bb10935279b2f6b597163ea01058220267dc0372
|
4627d514d6664526f58fbe3cac830a54679749cd
|
/results/evosuite5/math-org.apache.commons.math.ode.AdaptiveStepsizeIntegrator-18/org/apache/commons/math/ode/AdaptiveStepsizeIntegrator_ESTest_scaffolding.java
|
72fb3dc93ef6c5bae8d94653792aa58b831ad98c
|
[] |
no_license
|
STAMP-project/Cling-application
|
c624175a4aa24bb9b29b53f9b84c42a0f18631bd
|
0ff4d7652b434cbfd9be8d8bb38cfc8d8eaa51b5
|
refs/heads/master
| 2022-07-27T09:30:16.423362
| 2022-07-19T12:01:46
| 2022-07-19T12:01:46
| 254,310,667
| 2
| 2
| null | 2021-07-12T12:29:50
| 2020-04-09T08:11:35
| null |
UTF-8
|
Java
| false
| false
| 7,748
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Tue Aug 13 14:39:31 GMT 2019
*/
package org.apache.commons.math.ode;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
import static org.evosuite.shaded.org.mockito.Mockito.*;
@EvoSuiteClassExclude
public class AdaptiveStepsizeIntegrator_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.math.ode.AdaptiveStepsizeIntegrator";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
setSystemProperties();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
try { initMocksToAvoidTimeoutsInTheTests(); } catch(ClassNotFoundException e) {}
}
@AfterClass
public static void clearEvoSuiteFramework(){
Sandbox.resetDefaultSecurityManager();
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public static void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
java.lang.System.setProperty("user.dir", "/home/pderakhshanfar/botsing-integration-experiment");
java.lang.System.setProperty("java.io.tmpdir", "/tmp");
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(AdaptiveStepsizeIntegrator_ESTest_scaffolding.class.getClassLoader() ,
"org.apache.commons.math.ode.DerivativeException",
"org.apache.commons.math.ode.HighamHall54StepInterpolator",
"org.apache.commons.math.ode.SwitchingFunctionsHandler",
"org.apache.commons.math.ode.FirstOrderIntegrator",
"org.apache.commons.math.MathException",
"org.apache.commons.math.ode.DormandPrince54Integrator",
"org.apache.commons.math.ConvergenceException",
"org.apache.commons.math.ode.ThreeEighthesStepInterpolator",
"org.apache.commons.math.ode.DormandPrince853StepInterpolator",
"org.apache.commons.math.analysis.UnivariateRealFunction",
"org.apache.commons.math.ode.AdaptiveStepsizeIntegrator",
"org.apache.commons.math.ode.ContinuousOutputModel",
"org.apache.commons.math.ode.ClassicalRungeKuttaStepInterpolator",
"org.apache.commons.math.ode.StepNormalizer",
"org.apache.commons.math.ode.FirstOrderConverter",
"org.apache.commons.math.ode.SwitchState",
"org.apache.commons.math.ode.AbstractStepInterpolator",
"org.apache.commons.math.FunctionEvaluationException",
"org.apache.commons.math.ode.DummyStepInterpolator",
"org.apache.commons.math.analysis.UnivariateRealSolver",
"org.apache.commons.math.ode.StepHandler",
"org.apache.commons.math.ode.DormandPrince54StepInterpolator",
"org.apache.commons.math.ode.DummyStepHandler",
"org.apache.commons.math.ode.RungeKuttaStepInterpolator",
"org.apache.commons.math.ode.StepInterpolator",
"org.apache.commons.math.ode.EmbeddedRungeKuttaIntegrator",
"org.apache.commons.math.ode.IntegratorException",
"org.apache.commons.math.ode.DormandPrince853Integrator",
"org.apache.commons.math.ode.FirstOrderDifferentialEquations",
"org.apache.commons.math.ode.SecondOrderDifferentialEquations",
"org.apache.commons.math.ode.SwitchingFunction",
"org.apache.commons.math.ode.GraggBulirschStoerStepInterpolator",
"org.apache.commons.math.ode.HighamHall54Integrator",
"org.apache.commons.math.ode.GraggBulirschStoerIntegrator"
);
}
private static void initMocksToAvoidTimeoutsInTheTests() throws ClassNotFoundException {
mock(Class.forName("org.apache.commons.math.ode.SecondOrderDifferentialEquations", false, AdaptiveStepsizeIntegrator_ESTest_scaffolding.class.getClassLoader()));
mock(Class.forName("org.apache.commons.math.ode.SwitchingFunction", false, AdaptiveStepsizeIntegrator_ESTest_scaffolding.class.getClassLoader()));
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(AdaptiveStepsizeIntegrator_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"org.apache.commons.math.ode.AdaptiveStepsizeIntegrator",
"org.apache.commons.math.ode.DummyStepHandler",
"org.apache.commons.math.ode.GraggBulirschStoerIntegrator",
"org.apache.commons.math.ode.SwitchingFunctionsHandler",
"org.apache.commons.math.ode.EmbeddedRungeKuttaIntegrator",
"org.apache.commons.math.ode.DormandPrince853Integrator",
"org.apache.commons.math.ode.AbstractStepInterpolator",
"org.apache.commons.math.ode.RungeKuttaStepInterpolator",
"org.apache.commons.math.ode.DormandPrince853StepInterpolator",
"org.apache.commons.math.ode.FirstOrderConverter",
"org.apache.commons.math.MathException",
"org.apache.commons.math.ode.IntegratorException",
"org.apache.commons.math.ode.DormandPrince54Integrator",
"org.apache.commons.math.ode.DormandPrince54StepInterpolator",
"org.apache.commons.math.ode.ClassicalRungeKuttaStepInterpolator",
"org.apache.commons.math.ode.HighamHall54Integrator",
"org.apache.commons.math.ode.HighamHall54StepInterpolator",
"org.apache.commons.math.ode.StepNormalizer",
"org.apache.commons.math.ode.ThreeEighthesStepInterpolator",
"org.apache.commons.math.ode.SwitchState",
"org.apache.commons.math.ode.ContinuousOutputModel",
"org.apache.commons.math.ode.DummyStepInterpolator"
);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
b9bed83f0f0bab7781a01d1ec5c264daf2e52db2
|
8388d3009c0be9cb4e3ea25abbce7a0ad6f9b299
|
/business/txnlist/txnlist-core/src/main/java/com/sinosoft/txnlist/core/claiminsurancelist/entity/BreedLossRateListInfo.java
|
31a045dde52d06733c4176ed6366e6d3a52b5e19
|
[] |
no_license
|
foxhack/NewAgri2018
|
a182bd34d0c583a53c30d825d5e2fa569f605515
|
be8ab05e0784c6e7e7f46fea743debb846407e4f
|
refs/heads/master
| 2021-09-24T21:58:18.577979
| 2018-10-15T11:24:21
| 2018-10-15T11:24:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,211
|
java
|
package com.sinosoft.txnlist.core.claiminsurancelist.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
@Table(name="BreedLossRateListInfo")
public class BreedLossRateListInfo {
@Id
private String rowNum;
/** 序号*/
private Integer serialNo;
/** 清单号*/
private String lossListCode;
/** 保单号*/
private String policyNo;
/** 业务号*/
private String bizNo;
/** 农户代码*/
private String fcode;
/** 农户姓名*/
private String fname;
/** 耳标号*/
private String earLabel;
/** 损失金额*/
private Double lossMoney;
/** 备注*/
private String remark;
/** 数据来源*/
private String origin;
/** 节点来源*/
private String nodeOrigin;
/** 证件号码*/
private String fIdCard;
/** 定损时间*/
private Date listAffirmTime;
/** 死亡数量*/
private Double deathQuantity;
/** 捕杀数量*/
private Double killQuantity;
/** 损失金额*/
private Double lossAmount;
/** 查勘报告*/
private String checkContext;
/*标的*/
private String itemCode;
public String getRowNum() {
return rowNum;
}
public void setRowNum(String rowNum) {
this.rowNum = rowNum;
}
public Integer getSerialNo() {
return serialNo;
}
public void setSerialNo(Integer serialNo) {
this.serialNo = serialNo;
}
public String getPolicyNo() {
return policyNo;
}
public void setPolicyNo(String policyNo) {
this.policyNo = policyNo;
}
public String getBizNo() {
return bizNo;
}
public void setBizNo(String bizNo) {
this.bizNo = bizNo;
}
public String getFcode() {
return fcode;
}
public void setFcode(String fcode) {
this.fcode = fcode;
}
public String getFname() {
return fname;
}
public void setFname(String fname) {
this.fname = fname;
}
public String getEarLabel() {
return earLabel;
}
public void setEarLabel(String earLabel) {
this.earLabel = earLabel;
}
public Double getLossMoney() {
return lossMoney;
}
public void setLossMoney(Double lossMoney) {
this.lossMoney = lossMoney;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getOrigin() {
return origin;
}
public void setOrigin(String origin) {
this.origin = origin;
}
public String getNodeOrigin() {
return nodeOrigin;
}
public void setNodeOrigin(String nodeOrigin) {
this.nodeOrigin = nodeOrigin;
}
public String getLossListCode() {
return lossListCode;
}
public void setLossListCode(String lossListCode) {
this.lossListCode = lossListCode;
}
public String getfIdCard() {
return fIdCard;
}
public void setfIdCard(String fIdCard) {
this.fIdCard = fIdCard;
}
public Date getListAffirmTime() {
return listAffirmTime;
}
public void setListAffirmTime(Date listAffirmTime) {
this.listAffirmTime = listAffirmTime;
}
public Double getDeathQuantity() {
return deathQuantity;
}
public void setDeathQuantity(Double deathQuantity) {
this.deathQuantity = deathQuantity;
}
public Double getKillQuantity() {
return killQuantity;
}
public void setKillQuantity(Double killQuantity) {
this.killQuantity = killQuantity;
}
public Double getLossAmount() {
return lossAmount;
}
public void setLossAmount(Double lossAmount) {
this.lossAmount = lossAmount;
}
public String getCheckContext() {
return checkContext;
}
public void setCheckContext(String checkContext) {
this.checkContext = checkContext;
}
public String getItemCode() {
return itemCode;
}
public void setItemCode(String itemCode) {
this.itemCode = itemCode;
}
}
|
[
"vicentdk77@users.noreply.github.com"
] |
vicentdk77@users.noreply.github.com
|
672146302d60b1abe06929f6c594905326fc1a50
|
ae9efe033a18c3d4a0915bceda7be2b3b00ae571
|
/jambeth/jambeth-expr/src/main/java/com/koch/ambeth/expr/bytecode/PropertyExpressionMixin.java
|
1f4df736c62f1948c8ec76fba52032bd139d4537
|
[
"Apache-2.0"
] |
permissive
|
Dennis-Koch/ambeth
|
0902d321ccd15f6dc62ebb5e245e18187b913165
|
8552b210b8b37d3d8f66bdac2e094bf23c8b5fda
|
refs/heads/develop
| 2022-11-10T00:40:00.744551
| 2017-10-27T05:35:20
| 2017-10-27T05:35:20
| 88,013,592
| 0
| 4
|
Apache-2.0
| 2022-09-22T18:02:18
| 2017-04-12T05:36:00
|
Java
|
UTF-8
|
Java
| false
| false
| 1,975
|
java
|
package com.koch.ambeth.expr.bytecode;
/*-
* #%L
* jambeth-expr
* %%
* Copyright (C) 2017 Koch Softwaredevelopment
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
* #L%
*/
import com.koch.ambeth.expr.IEntityPropertyExpressionResolver;
import com.koch.ambeth.expr.PropertyExpression;
import com.koch.ambeth.ioc.annotation.Autowired;
import com.koch.ambeth.log.ILogger;
import com.koch.ambeth.log.LogInstance;
import com.koch.ambeth.merge.proxy.IEntityMetaDataHolder;
import com.koch.ambeth.util.IConversionHelper;
public class PropertyExpressionMixin {
@LogInstance
private ILogger log;
@Autowired
protected IConversionHelper conversionHelper;
@Autowired(optional = true)
protected IEntityPropertyExpressionResolver entityPropertyExpressionResolver;
protected boolean firstUsage = true;
public Object evaluate(IEntityMetaDataHolder entity, String expression, Class<?> expectedType) {
if (entityPropertyExpressionResolver == null) {
if (firstUsage) {
firstUsage = false;
log.warn("INACTIVE: Annotation feature @" + PropertyExpression.class.getName()
+ " on entities. Reason: No instance of "
+ IEntityPropertyExpressionResolver.class.getName() + " resolved");
}
return conversionHelper.convertValueToType(expectedType, Integer.valueOf(0));
}
Object expressionResult = entityPropertyExpressionResolver.resolveExpressionOnEntity(entity,
expression);
return conversionHelper.convertValueToType(expectedType, expressionResult);
}
}
|
[
"dennis.koch@bruker.com"
] |
dennis.koch@bruker.com
|
57968c0150b47f0124e46a5afce429312acef3c7
|
4505e3e21447c803e5f23d2d40abf182e6d0ed78
|
/analysis/src/main/java/edu/stanford/nlp/util/PaddedList.java
|
13323121806b961e6656937382eac0735278f4e7
|
[] |
no_license
|
photon3710/es_test
|
76e182267412db5d0ef20cbb97a4d34f1079b98b
|
83f9f67906ef9c9ce60c5532f804f7d947dfa56b
|
refs/heads/master
| 2021-01-21T16:44:07.347016
| 2015-07-30T09:15:14
| 2015-07-30T09:15:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,275
|
java
|
package edu.stanford.nlp.util;
import java.io.Serializable;
import java.util.AbstractList;
import java.util.List;
/**
* A PaddedList wraps another list, presenting an apparently infinite
* list by padding outside the real confines of the list with a default
* value. Note that <code>size()</code> returns the true size, but
* <code>get()</code> works for any number.
*
* @author Christopher Manning
*/
public class PaddedList<E> extends AbstractList<E> implements Serializable {
private final List<E> l;
private final E padding;
public E getPad() {
return padding;
}
@Override
public int size() {
return l.size();
}
@Override
public E get(int i) {
if (i < 0 || i >= size()) {
return padding;
}
return l.get(i);
}
@Override
public String toString() {
return l.toString();
}
/**
* With this constructor, get() will return <code>null</code> for
* elements outside the real list.
*/
public PaddedList(List<E> l) {
this(l, null);
}
public PaddedList(List<E> l, E padding) {
this.l = l;
this.padding = padding;
}
/**
* This returns the inner list that was wrapped.
* Use of this method should be avoided. There's currently only
* one use.
*
* @return The inner list of the PaddedList.
*/
@Deprecated
public List<E> getWrappedList() {
return l;
}
/**
* A static method that provides an easy way to create a list of a
* certain parametric type.
* This static constructor works better with generics.
*
* @param list The list to pad
* @param padding The padding element (may be null)
* @return The padded list
*/
public static <IN> PaddedList<IN> valueOf(List<IN> list, IN padding) {
return new PaddedList<IN>(list, padding);
}
/**
* Returns true if this PaddedList and another are wrapping the
* same list. This is tested as ==. Kinda yucky, but sometimes you
* want to know.
*/
public boolean sameInnerList(PaddedList<E> p) {
return p != null && l == p.l;
}
private static final long serialVersionUID = 2064775966439971729L;
}
|
[
"ashley.wang@misingularity.io"
] |
ashley.wang@misingularity.io
|
7dc1e780f3a16466b24efa7564f718047e60ebf1
|
dbb61cf3e9111788729f4779829bb1aef408562a
|
/kie-wb-common-forms/kie-wb-common-forms-commons/kie-wb-common-forms-crud-component/src/main/java/org/kie/workbench/common/forms/crud/client/component/formDisplay/modal/ModalFormDisplayerViewImpl.java
|
0a0a724d4bbb5d8183820b0e3f4d42c208e8903e
|
[
"Apache-2.0"
] |
permissive
|
bbrodt/kie-wb-common
|
313c3b3b52fae29dd58596a5a2241beef3170bc2
|
c7d08518d9d06981f97b09343ec17292fd718664
|
refs/heads/master
| 2021-01-13T04:29:05.930751
| 2017-01-24T10:16:38
| 2017-01-24T10:16:38
| 79,925,906
| 1
| 0
| null | 2017-01-24T15:47:42
| 2017-01-24T15:47:42
| null |
UTF-8
|
Java
| false
| false
| 4,325
|
java
|
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* 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.kie.workbench.common.forms.crud.client.component.formDisplay.modal;
import javax.annotation.PostConstruct;
import javax.enterprise.context.Dependent;
import javax.inject.Inject;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.SimplePanel;
import org.gwtbootstrap3.client.shared.event.ModalHiddenEvent;
import org.gwtbootstrap3.client.shared.event.ModalHiddenHandler;
import org.gwtbootstrap3.client.ui.Button;
import org.gwtbootstrap3.client.ui.Modal;
import org.gwtbootstrap3.client.ui.ModalBody;
import org.gwtbootstrap3.client.ui.ModalFooter;
import org.gwtbootstrap3.client.ui.ModalSize;
import org.gwtbootstrap3.client.ui.constants.ButtonType;
import org.gwtbootstrap3.client.ui.constants.ModalBackdrop;
import org.jboss.errai.ui.client.local.spi.TranslationService;
import org.jboss.errai.ui.shared.api.annotations.DataField;
import org.jboss.errai.ui.shared.api.annotations.Templated;
import org.kie.workbench.common.forms.crud.client.component.formDisplay.IsFormView;
import org.kie.workbench.common.forms.crud.client.resources.i18n.CrudComponentConstants;
@Dependent
@Templated
public class ModalFormDisplayerViewImpl extends Composite implements ModalFormDisplayer.ModalFormDisplayerView {
@DataField
private SimplePanel content = new SimplePanel();
private Button submit;
private Button cancel;
protected ModalFormDisplayer presenter;
private Modal modal;
private ModalBody modalBody;
private TranslationService translationService;
@Inject
public ModalFormDisplayerViewImpl( TranslationService translationService ) {
this.translationService = translationService;
}
@PostConstruct
public void initialize() {
modal = new Modal();
modal.setHideOtherModals( false );
modal.setClosable( true );
modal.setFade( true );
modal.setDataKeyboard( true );
modal.setDataBackdrop( ModalBackdrop.FALSE );
modal.setSize( ModalSize.LARGE );
modal.setRemoveOnHide( true );
modalBody = new ModalBody();
modalBody.add( this );
modal.add( modalBody );
submit = new Button( translationService.getTranslation( CrudComponentConstants.ModalFormDisplayerViewImplAccept ) );
submit.setType( ButtonType.PRIMARY );
cancel = new Button( translationService.getTranslation( CrudComponentConstants.ModalFormDisplayerViewImplCancel ) );
modal.add( new ModalFooter() {{
add( submit );
add( cancel );
}} );
submit.addClickHandler( new ClickHandler() {
@Override
public void onClick( ClickEvent event ) {
presenter.submitForm();
}
} );
cancel.addClickHandler( new ClickHandler() {
@Override
public void onClick( ClickEvent event ) {
doCancel();
}
} );
modal.addHiddenHandler( new ModalHiddenHandler() {
@Override
public void onHidden( ModalHiddenEvent evt ) {
doCancel();
}
} );
}
@Override
public void setPresenter( ModalFormDisplayer presenter ) {
this.presenter = presenter;
}
@Override
public void show( String title, IsFormView formView ) {
modal.setTitle( title );
content.clear();
content.add( formView );
modal.show();
}
@Override
public void hide() {
modal.hide();
}
protected void doCancel() {
presenter.cancel();
}
}
|
[
"christian.sadilek@gmail.com"
] |
christian.sadilek@gmail.com
|
cd2b60d8ffdc7b19d0dc362c65bf55aa8c53cbbe
|
6baf1fe00541560788e78de5244ae17a7a2b375a
|
/hollywood/com.oculus.socialplatform-base/sources/androidx/core/app/NotificationCompat$NotificationVisibility.java
|
ff7a483d78b9b97ea03f377db0d830480dc9f13e
|
[] |
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
| 333
|
java
|
package androidx.core.app;
import X.AnonymousClass02C;
import androidx.annotation.RestrictTo;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({AnonymousClass02C.LIBRARY_GROUP_PREFIX})
public @interface NotificationCompat$NotificationVisibility {
}
|
[
"cyuubiapps@gmail.com"
] |
cyuubiapps@gmail.com
|
71ce2c93fc90e115dbd0c8e909679ea62b02527f
|
ce7f089378d817e242793649785b097c9be3f96b
|
/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/shire/Card7_326.java
|
b432eecdc4e15d5d229f4e472f20efb36065115d
|
[] |
no_license
|
TheSkyGold/gemp-lotr
|
aaba1f461a3d9237d12ca340a7e899b00e4151e4
|
aab299c87fc9cabd10b284c25b699f10a84fe622
|
refs/heads/master
| 2021-01-11T07:39:27.678795
| 2014-11-21T00:44:25
| 2014-11-21T00:44:25
| 32,382,766
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,579
|
java
|
package com.gempukku.lotro.cards.set7.shire;
import com.gempukku.lotro.cards.AbstractCompanion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.TriggerConditions;
import com.gempukku.lotro.cards.effects.MakeRingBearerEffect;
import com.gempukku.lotro.cards.effects.RemoveBurdenEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndPlayCardFromHandEffect;
import com.gempukku.lotro.common.*;
import com.gempukku.lotro.filters.Filters;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.actions.ActivateCardAction;
import com.gempukku.lotro.logic.actions.OptionalTriggerAction;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* Set: The Return of the King
* Side: Free
* Culture: Shire
* Twilight Cost: 2
* Type: Companion • Hobbit
* Strength: 3
* Vitality: 4
* Resistance: 6
* Signet: Aragorn
* Game Text: Ring-bound. Fellowship: Play a Hobbit companion to remove a burden. Response: If Frodo is killed, make
* Sam the Ring-bearer (resistance 5).
*/
public class Card7_326 extends AbstractCompanion {
public Card7_326() {
super(2, 3, 4, 5, Culture.SHIRE, Race.HOBBIT, Signet.ARAGORN, "Sam", "Needer of Vittles", true);
addKeyword(Keyword.RING_BOUND);
}
@Override
protected List<ActivateCardAction> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.FELLOWSHIP, self)
&& PlayConditions.canPlayFromHand(playerId, game, CardType.COMPANION, Race.HOBBIT)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ChooseAndPlayCardFromHandEffect(playerId, game, CardType.COMPANION, Race.HOBBIT));
action.appendEffect(
new RemoveBurdenEffect(playerId, self));
return Collections.singletonList(action);
}
return null;
}
@Override
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.forEachKilled(game, effectResult, Filters.frodo, Filters.ringBearer)) {
OptionalTriggerAction action = new OptionalTriggerAction(self);
action.appendEffect(new MakeRingBearerEffect(self));
return Collections.singletonList(action);
}
return null;
}
}
|
[
"marcins78@gmail.com@eb7970ca-0f6f-de4b-2938-835b230b9d1f"
] |
marcins78@gmail.com@eb7970ca-0f6f-de4b-2938-835b230b9d1f
|
a29c60d38332881703208a4c828171ab4426c9b8
|
7c54a8c288d95e00a799cf61e8bd44462b384e65
|
/src/main/java/ac/cn/saya/laboratory/persistent/financial/dao/TransactionWriteDAO.java
|
29363b50ec1a67a9c94e5dd7240799f8a8c45a75
|
[] |
no_license
|
saya-ac-cn/laboratory
|
117eba4e883082eaac1ed21fd192b7f43f3db2ca
|
a9ff8a894f4f2da2fad5a1b263a4e58e05cd3c7c
|
refs/heads/master
| 2022-07-05T21:23:19.420212
| 2022-06-01T15:54:00
| 2022-06-01T15:54:00
| 171,010,693
| 0
| 0
| null | 2021-04-26T18:51:31
| 2019-02-16T14:08:27
|
Java
|
UTF-8
|
Java
| false
| false
| 2,282
|
java
|
package ac.cn.saya.laboratory.persistent.financial.dao;
import ac.cn.saya.laboratory.entity.TransactionInfoEntity;
import ac.cn.saya.laboratory.entity.TransactionListEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* @Title: TransactionWriteDAO
* @ProjectName DataCenter
* @Description: TODO
* @Author Saya
* @Date: 2018/12/27 22:29
* @Description: 财政数据库修改DAO
*/
@Mapper
public interface TransactionWriteDAO {
/**
* @描述 写入到财政明细表
* @参数 [entity]
* @返回值 java.lang.Integer
* @创建人 saya.ac.cn-刘能凯
* @创建时间 2018/12/27
* @修改人和其它信息
*/
public Integer insertTransactionInfo(TransactionInfoEntity entity);
/**
* @描述 写入到财政父表
* @参数 [entity]
* @返回值 java.lang.Integer
* @创建人 saya.ac.cn-刘能凯
* @创建时间 2018/12/27
* @修改人和其它信息
*/
public Integer insertTransactionList(TransactionListEntity entity);
/**
* @描述 修改财政明细表
* @参数 [entity]
* @返回值 java.lang.Integer
* @创建人 saya.ac.cn-刘能凯
* @创建时间 2018/12/27
* @修改人和其它信息
*/
public Integer updateTransactionInfo(TransactionInfoEntity entity);
/**
* @描述 修改财政父表
* @参数 [entity]
* @返回值 java.lang.Integer
* @创建人 saya.ac.cn-刘能凯
* @创建时间 2018/12/27
* @修改人和其它信息
*/
public Integer updateTransactionList(TransactionListEntity entity);
/**
* @描述 删除财政明细表
* @参数 [entity]
* @返回值 java.lang.Integer
* @创建人 saya.ac.cn-刘能凯
* @创建时间 2018/12/27
* @修改人和其它信息
*/
public Integer deleteTransactionInfo(@Param(value = "id") Integer id);
/**
* @描述 删除财政父表
* @参数 [entity]
* @返回值 java.lang.Integer
* @创建人 saya.ac.cn-刘能凯
* @创建时间 2018/12/27
* @修改人和其它信息
*/
public Integer deleteTransactionList(@Param(value = "tradeId") Integer tradeId, @Param(value = "source") String source);
}
|
[
"saya@saya.ac.cn"
] |
saya@saya.ac.cn
|
9ceb196f58cb1814cb5fb91c409326b60f5a8a38
|
a840a5e110b71b728da5801f1f3e591f6128f30e
|
/src/main/java/com/google/security/zynamics/reil/translators/mips/RestoreTranslator.java
|
9fb03714a142578811a13c5e0a3767078f234a75
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
tpltnt/binnavi
|
0a25d2fde2c6029aeef4fcfec8eead5c8e51f4b4
|
598c361d618b2ca964d8eb319a686846ecc43314
|
refs/heads/master
| 2022-10-20T19:38:30.080808
| 2022-07-20T13:01:37
| 2022-07-20T13:01:37
| 107,143,332
| 0
| 0
|
Apache-2.0
| 2023-08-20T11:22:53
| 2017-10-16T15:02:35
|
Java
|
UTF-8
|
Java
| false
| false
| 1,479
|
java
|
/*
Copyright 2011-2016 Google Inc. All Rights Reserved.
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.google.security.zynamics.reil.translators.mips;
import com.google.security.zynamics.reil.ReilInstruction;
import com.google.security.zynamics.reil.translators.IInstructionTranslator;
import com.google.security.zynamics.reil.translators.ITranslationEnvironment;
import com.google.security.zynamics.reil.translators.InternalTranslationException;
import com.google.security.zynamics.reil.translators.TranslationHelpers;
import com.google.security.zynamics.zylib.disassembly.IInstruction;
import java.util.List;
public class RestoreTranslator implements IInstructionTranslator {
@Override
public void translate(final ITranslationEnvironment environment, final IInstruction instruction,
final List<ReilInstruction> instructions) throws InternalTranslationException {
TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "restore");
}
}
|
[
"cblichmann@google.com"
] |
cblichmann@google.com
|
c689862389ed6b1cbaf271444badceed007dfa0c
|
d45d9111e4e5736c7bb7eebef27bfef7bc27b3b8
|
/projects/Java/src/com/chronoxor/test/fbe/FinalModelOptionalInt8.java
|
650c429274ffabd676865675baa83c35e0c8e73a
|
[
"MIT"
] |
permissive
|
museghost/FastBinaryEncoding
|
0c0b4b4d6ae1004f13810fd1db0bb761116106cf
|
7e8425552d4c42cd78162dbe0dedab796808ae78
|
refs/heads/master
| 2023-01-02T08:47:52.223902
| 2020-10-16T10:53:09
| 2020-10-16T10:53:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,696
|
java
|
// Automatically generated by the Fast Binary Encoding compiler, do not modify!
// https://github.com/chronoxor/FastBinaryEncoding
// Source: test.fbe
// Version: 1.4.0.0
package com.chronoxor.test.fbe;
// Fast Binary Encoding optional Int8 final model
public final class FinalModelOptionalInt8 extends com.chronoxor.fbe.FinalModel
{
public FinalModelOptionalInt8(com.chronoxor.fbe.Buffer buffer, long offset)
{
super(buffer, offset);
value = new com.chronoxor.fbe.FinalModelInt8(buffer, 0);
}
// Get the allocation size
public long fbeAllocationSize(Byte optional) { return 1 + ((optional != null) ? value.fbeAllocationSize(optional) : 0); }
// Checks if the object contains a value
public boolean hasValue()
{
if ((_buffer.getOffset() + fbeOffset() + 1) > _buffer.getSize())
return false;
byte fbeHasValue = readInt8(fbeOffset());
return (fbeHasValue != 0);
}
// Base final model value
public final com.chronoxor.fbe.FinalModelInt8 value;
// Check if the optional value is valid
@Override
public long verify()
{
if ((_buffer.getOffset() + fbeOffset() + 1) > _buffer.getSize())
return Long.MAX_VALUE;
byte fbeHasValue = readInt8(fbeOffset());
if (fbeHasValue == 0)
return 1;
_buffer.shift(fbeOffset() + 1);
long fbeResult = value.verify();
_buffer.unshift(fbeOffset() + 1);
return 1 + fbeResult;
}
// Get the optional value
public Byte get(com.chronoxor.fbe.Size size)
{
assert ((_buffer.getOffset() + fbeOffset() + 1) <= _buffer.getSize()) : "Model is broken!";
if ((_buffer.getOffset() + fbeOffset() + 1) > _buffer.getSize())
{
size.value = 0;
return null;
}
if (!hasValue())
{
size.value = 1;
return null;
}
_buffer.shift(fbeOffset() + 1);
Byte optional = value.get(size);
_buffer.unshift(fbeOffset() + 1);
size.value += 1;
return optional;
}
// Set the optional value
public long set(Byte optional)
{
assert ((_buffer.getOffset() + fbeOffset() + 1) <= _buffer.getSize()) : "Model is broken!";
if ((_buffer.getOffset() + fbeOffset() + 1) > _buffer.getSize())
return 0;
byte fbeHasValue = (byte)((optional != null) ? 1 : 0);
write(fbeOffset(), fbeHasValue);
if (fbeHasValue == 0)
return 1;
_buffer.shift(fbeOffset() + 1);
long size = value.set(optional);
_buffer.unshift(fbeOffset() + 1);
return 1 + size;
}
}
|
[
"chronoxor@gmail.com"
] |
chronoxor@gmail.com
|
de74290c3a70ba434ce96e5443d647e565ac3549
|
1a06b41f97464b22d203fc07978d4221b6938390
|
/src/main/java/com/yd/ydbi/seffect/controller/SeffectController.java
|
58615b7186b64dfd43f60b4c1634b299ceb45b0c
|
[] |
no_license
|
un-knower/ydbigdata
|
5e1849ad1f7aa5534e0ed8084d919b8195f7a6f9
|
ac3cd1b8f68d859dbeff3999111e391d7503f99a
|
refs/heads/master
| 2020-03-17T23:15:29.000521
| 2017-09-27T06:36:55
| 2017-09-27T06:36:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,481
|
java
|
package com.yd.ydbi.seffect.controller;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.yd.ydbi.common.response.CustomReqParameter;
import com.yd.ydbi.common.response.CustomResponseMsg;
import com.yd.ydbi.seffect.service.SeffectAllService;
import com.yd.ydbi.seffect.service.SeffectGiveService;
import com.yd.ydbi.seffect.service.SeffectSndService;
import com.yd.ydbi.seffect.service.SeffectTransOpService;
import com.yd.ydbi.seffect.service.SeffectTransService;
/**
* <p>
* 票件_时效控制层实现类
* </p>
* <p>
* Class: SeffectController
* </p>
*/
@Controller
@ResponseBody
@RequestMapping(value = "/action/bas_s_bigdata")
public class SeffectController {
private Logger logger = Logger.getLogger(SeffectController.class);
@Autowired
SeffectGiveService seffectGiveService;
@Autowired
SeffectTransOpService seffectTansOpService;
@Autowired
SeffectTransService seffectTransService;
@Autowired
SeffectSndService seffectSndService;
@Autowired
SeffectAllService seffectAllService;
// 票件_时效(包含日环比,周同比)
@RequestMapping("/getSeffect")
public CustomResponseMsg getSeffectGive(CustomReqParameter parameter) {
CustomResponseMsg msg = new CustomResponseMsg();
Map<String, Object> paramMap = new HashMap<>();
String conditonStr = parameter.getSearch_condition();
paramMap.put("conditonStr", conditonStr);
Map<String, Object> seffectGive = seffectGiveService.getSeffectGive(paramMap);
Map<String, Object> seffectTansOp = seffectTansOpService.getSeffectTransOp(paramMap);
Map<String, Object> seffectTrans = seffectTransService.getSeffectTrans(paramMap);
Map<String, Object> seffectSnd = seffectSndService.getSeffectSnd(paramMap);
Map<String, Object> seffectAll = seffectAllService.getSeffectAll(paramMap);
Map<String, Object> map = new HashMap<>();
map.put("seffectGive", seffectGive);
map.put("seffectTansOp", seffectTansOp);
map.put("seffectTrans", seffectTrans);
map.put("seffectSnd", seffectSnd);
map.put("seffectAll", seffectAll);
msg.data = map;
msg.errorCode = 0;
msg.msg = "操作成功";
logger.info(msg);
return msg;
}
}
|
[
"13122163363@163.com"
] |
13122163363@163.com
|
b97358c88b1d3cebd16fba5d8deb2939a50b1f72
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/tencent/mm/protocal/protobuf/oj.java
|
a32fdc96393cc9c2e33828b1ecf6eadab51583f2
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 2,201
|
java
|
package com.tencent.mm.protocal.protobuf;
import com.tencent.matrix.trace.core.AppMethodBeat;
public final class oj
extends com.tencent.mm.bx.a
{
public String ILw;
public String OzQ;
public final int op(int paramInt, Object... paramVarArgs)
{
AppMethodBeat.i(124409);
if (paramInt == 0)
{
paramVarArgs = (i.a.a.c.a)paramVarArgs[0];
if (this.ILw != null) {
paramVarArgs.g(1, this.ILw);
}
if (this.OzQ != null) {
paramVarArgs.g(2, this.OzQ);
}
AppMethodBeat.o(124409);
return 0;
}
if (paramInt == 1) {
if (this.ILw == null) {
break label270;
}
}
label270:
for (paramInt = i.a.a.b.b.a.h(1, this.ILw) + 0;; paramInt = 0)
{
int i = paramInt;
if (this.OzQ != null) {
i = paramInt + i.a.a.b.b.a.h(2, this.OzQ);
}
AppMethodBeat.o(124409);
return i;
if (paramInt == 2)
{
paramVarArgs = new i.a.a.a.a((byte[])paramVarArgs[0], unknownTagHandler);
for (paramInt = com.tencent.mm.bx.a.getNextFieldNumber(paramVarArgs); paramInt > 0; paramInt = com.tencent.mm.bx.a.getNextFieldNumber(paramVarArgs)) {
if (!super.populateBuilderWithField(paramVarArgs, this, paramInt)) {
paramVarArgs.kFT();
}
}
AppMethodBeat.o(124409);
return 0;
}
if (paramInt == 3)
{
i.a.a.a.a locala = (i.a.a.a.a)paramVarArgs[0];
oj localoj = (oj)paramVarArgs[1];
switch (((Integer)paramVarArgs[2]).intValue())
{
default:
AppMethodBeat.o(124409);
return -1;
case 1:
localoj.ILw = locala.ajGk.readString();
AppMethodBeat.o(124409);
return 0;
}
localoj.OzQ = locala.ajGk.readString();
AppMethodBeat.o(124409);
return 0;
}
AppMethodBeat.o(124409);
return -1;
}
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes2.jar
* Qualified Name: com.tencent.mm.protocal.protobuf.oj
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
f5b93f28189f7f5a387f75836ac0d36ff64d1f24
|
ee4cbc27087d3b7f4da7de2a36c39a2ebf381f79
|
/eis-yqfs-parent/eis-yqfs-facade/src/main/java/com/prolog/eis/dto/pddispatch/PanDianXiangKuDto.java
|
78a998af1a10d55afeac31cb391b716d6fc34e5e
|
[] |
no_license
|
Chaussure-org/eis-yq-plg
|
161126bd784095bb5eb4b45ae581439169fa0e38
|
19313dbbc74fbe79e38f35594ee5a5b3dc26b3cb
|
refs/heads/master
| 2023-01-02T08:27:57.747759
| 2020-10-19T07:22:52
| 2020-10-19T07:22:52
| 305,276,116
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,703
|
java
|
package com.prolog.eis.dto.pddispatch;
import java.util.ArrayList;
import java.util.List;
public class PanDianXiangKuDto {
private List<PanDianCengDto> cengList;
private List<PanDianStationDto> stationList;// 盘点作业站台集合
public PanDianXiangKuDto() {
this.cengList = new ArrayList<PanDianCengDto>();
}
public List<PanDianCengDto> getCengList() {
return cengList;
}
public void setCengList(List<PanDianCengDto> cengList) {
this.cengList = cengList;
}
public List<PanDianStationDto> getStationList() {
return stationList;
}
public void setStationList(List<PanDianStationDto> stationList) {
this.stationList = stationList;
}
// 查找盘点料箱数最少的站台
private PanDianStationDto FindBestStation() {
if (this.stationList == null || this.stationList.size() == 0)
return null;
List<PanDianStationDto> stList = new ArrayList<PanDianStationDto>();
for (PanDianStationDto st : this.stationList) {
// 判断该站台的出库盘点料箱是否达到最大盘点料箱数
if (st.getPanDianLxNoSet().size() < st.getMaxLxCount())
stList.add(st);
}
if (stList == null || stList.size() == 0)
return null;
PanDianStationDto bestStation = stList.get(0);
for (int i = 1; i < stList.size(); i++) {
PanDianStationDto station = stList.get(i);
if (station.getPanDianLxNoSet().size() < bestStation.getPanDianLxNoSet().size()) {
bestStation = station;
}
}
return bestStation;
}
private PanDianCengDto FindBestCeng() {
if (this.cengList == null || this.cengList.size() == 0)
return null;
PanDianCengDto bestCeng = this.cengList.get(0);
for (int i = 1; i < this.cengList.size(); i++) {
PanDianCengDto ceng = this.cengList.get(i);
if (ceng.getCkLxCount() < bestCeng.getCkLxCount()) {
bestCeng = ceng;
} else if (ceng.getCkLxCount() == bestCeng.getCkLxCount()) {
if (ceng.getRkLxCount() < bestCeng.getRkLxCount()) {
bestCeng = ceng;
}
}
}
return bestCeng;
}
private PanDianLxDto FindBestLx() throws Exception {
PanDianCengDto bestCeng = this.FindBestCeng();
if (bestCeng == null)
return null;
if (bestCeng.getLxList().size() == 0)
throw new Exception(bestCeng.getCeng() + "层没有料箱");
PanDianLxDto bestLx = bestCeng.getLxList().get(0);
for (int i = 1; i < bestCeng.getLxList().size(); i++) {
PanDianLxDto lx = bestCeng.getLxList().get(i);
if (lx.getPriority() < bestLx.getPriority()) {
bestLx = lx;
}
}
//移除所有同货位组的料箱,因为一个货位组只能发起一个出库任务
for (int i = bestCeng.getLxList().size() - 1; i > -1; i--) {
PanDianLxDto lx = bestCeng.getLxList().get(i);
if (lx.getHuoWeiGroupId() == bestLx.getHuoWeiGroupId())
bestCeng.getLxList().remove(i);
}
if (bestCeng.getLxList().size() == 0)
this.cengList.remove(bestCeng);
return bestLx;
}
// 计算料箱的出库优先级
public void ComputeLxPriority() {
for (PanDianCengDto ceng : this.getCengList()) {
for (PanDianLxDto lx : ceng.getLxList()) {
int priority = lx.getMoveNum() * 100 + lx.getDepth();
lx.setPriority(priority);
}
}
}
// 为任务最少的站台找一个任务数最少的层的最优的料箱
public PanDianLxResultDto FindPanDianLxResult() throws Exception {
PanDianStationDto station = this.FindBestStation();
if (station == null)
return null;
PanDianLxDto lx = this.FindBestLx();
if (lx == null)
return null;
PanDianLxResultDto result = new PanDianLxResultDto();
result.setStation(station);
result.setLx(lx);
// 把当前查找的料箱添加到站台的盘点出库料箱
station.getPanDianLxNoSet().add(lx.getLxNo());
return result;
}
}
|
[
"chaussure@qq.com"
] |
chaussure@qq.com
|
444448911d5a2fa329b018ff9b70a7f12f50aad4
|
2f4a058ab684068be5af77fea0bf07665b675ac0
|
/app/com/facebook/katana/service/vault/VaultModule$VaultDeviceUpdateMethodProvider.java
|
64e4c29c8421794b0013cebd941fc05c7813487a
|
[] |
no_license
|
cengizgoren/facebook_apk_crack
|
ee812a57c746df3c28fb1f9263ae77190f08d8d2
|
a112d30542b9f0bfcf17de0b3a09c6e6cfe1273b
|
refs/heads/master
| 2021-05-26T14:44:04.092474
| 2013-01-16T08:39:00
| 2013-01-16T08:39:00
| 8,321,708
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 680
|
java
|
package com.facebook.katana.service.vault;
import com.facebook.katana.service.vault.methods.VaultDeviceUpdateMethod;
import com.facebook.orca.inject.AbstractProvider;
class VaultModule$VaultDeviceUpdateMethodProvider extends AbstractProvider<VaultDeviceUpdateMethod>
{
private VaultModule$VaultDeviceUpdateMethodProvider(VaultModule paramVaultModule)
{
}
public VaultDeviceUpdateMethod a()
{
return new VaultDeviceUpdateMethod();
}
}
/* Location: /data1/software/jd-gui/com.facebook.katana_2.0_liqucn.com-dex2jar.jar
* Qualified Name: com.facebook.katana.service.vault.VaultModule.VaultDeviceUpdateMethodProvider
* JD-Core Version: 0.6.0
*/
|
[
"macluz@msn.com"
] |
macluz@msn.com
|
4c5ddc4aff63c67815bdc4ce9637c7093af8780a
|
6259a830a3d9e735e6779e41a678a71b4c27feb2
|
/anchor-plugin-image/src/main/java/org/anchoranalysis/plugin/image/bean/object/provider/morphological/RejectIterationIfLowDisconnected.java
|
80e63519b27d38a3d7430dbc60515b296a8b6b04
|
[
"MIT",
"Apache-2.0"
] |
permissive
|
anchoranalysis/anchor-plugins
|
103168052419b1072d0f8cd0201dabfb7dc84f15
|
5817d595d171b8598ab9c0195586c5d1f83ad92e
|
refs/heads/master
| 2023-07-24T02:38:11.667846
| 2023-07-18T07:51:10
| 2023-07-18T07:51:10
| 240,064,307
| 2
| 0
|
MIT
| 2023-07-18T07:51:12
| 2020-02-12T16:48:04
|
Java
|
UTF-8
|
Java
| false
| false
| 2,160
|
java
|
/*-
* #%L
* anchor-image
* %%
* Copyright (C) 2010 - 2020 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche
* %%
* 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.
* #L%
*/
package org.anchoranalysis.plugin.image.bean.object.provider.morphological;
import org.anchoranalysis.core.exception.OperationFailedException;
import org.anchoranalysis.image.voxel.binary.BinaryVoxels;
import org.anchoranalysis.image.voxel.binary.BinaryVoxelsFactory;
import org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer;
import org.anchoranalysis.image.voxel.object.ObjectMask;
import org.anchoranalysis.image.voxel.object.morphological.predicate.AcceptIterationPredicate;
class RejectIterationIfLowDisconnected implements AcceptIterationPredicate {
@Override
public boolean accept(BinaryVoxels<UnsignedByteBuffer> voxels) throws OperationFailedException {
BinaryVoxels<UnsignedByteBuffer> nextBinary =
BinaryVoxelsFactory.reuseByte(
voxels.voxels(), voxels.binaryValues().createInverted());
return new ObjectMask(nextBinary).checkIfConnected();
}
}
|
[
"owenfeehan@users.noreply.github.com"
] |
owenfeehan@users.noreply.github.com
|
98cf3aa807d25d02ac5146a5a931b412d7f51c0e
|
882e77219bce59ae57cbad7e9606507b34eebfcf
|
/mi2s_10_miui12/src/main/java/com/android/server/connectivity/tethering/IPv6TetheringCoordinator.java
|
7c2257e1122dc6491e08da79c41c9e73114d8c05
|
[] |
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
| 8,092
|
java
|
package com.android.server.connectivity.tethering;
import android.net.IpPrefix;
import android.net.LinkAddress;
import android.net.LinkProperties;
import android.net.Network;
import android.net.NetworkCapabilities;
import android.net.NetworkInfo;
import android.net.NetworkState;
import android.net.RouteInfo;
import android.net.ip.IpServer;
import android.net.util.NetworkConstants;
import android.net.util.SharedLog;
import android.util.Log;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Random;
public class IPv6TetheringCoordinator {
private static final boolean DBG = false;
private static final String TAG = IPv6TetheringCoordinator.class.getSimpleName();
private static final boolean VDBG = false;
private final LinkedList<Downstream> mActiveDownstreams = new LinkedList<>();
private final SharedLog mLog;
private short mNextSubnetId = 0;
private final ArrayList<IpServer> mNotifyList;
private final byte[] mUniqueLocalPrefix = generateUniqueLocalPrefix();
private NetworkState mUpstreamNetworkState;
private static class Downstream {
public final IpServer ipServer;
public final int mode;
public final short subnetId;
Downstream(IpServer ipServer2, int mode2, short subnetId2) {
this.ipServer = ipServer2;
this.mode = mode2;
this.subnetId = subnetId2;
}
}
public IPv6TetheringCoordinator(ArrayList<IpServer> notifyList, SharedLog log) {
this.mNotifyList = notifyList;
this.mLog = log.forSubComponent(TAG);
}
public void addActiveDownstream(IpServer downstream, int mode) {
if (findDownstream(downstream) == null) {
if (this.mActiveDownstreams.offer(new Downstream(downstream, mode, this.mNextSubnetId))) {
this.mNextSubnetId = (short) Math.max(0, this.mNextSubnetId + 1);
}
updateIPv6TetheringInterfaces();
}
}
public void removeActiveDownstream(IpServer downstream) {
stopIPv6TetheringOn(downstream);
if (this.mActiveDownstreams.remove(findDownstream(downstream))) {
updateIPv6TetheringInterfaces();
}
if (this.mNotifyList.isEmpty()) {
if (!this.mActiveDownstreams.isEmpty()) {
Log.wtf(TAG, "Tethering notify list empty, IPv6 downstreams non-empty.");
}
this.mNextSubnetId = 0;
}
}
public void updateUpstreamNetworkState(NetworkState ns) {
if (TetheringInterfaceUtils.getIPv6Interface(ns) == null) {
stopIPv6TetheringOnAllInterfaces();
setUpstreamNetworkState((NetworkState) null);
return;
}
if (this.mUpstreamNetworkState != null && !ns.network.equals(this.mUpstreamNetworkState.network)) {
stopIPv6TetheringOnAllInterfaces();
}
setUpstreamNetworkState(ns);
updateIPv6TetheringInterfaces();
}
private void stopIPv6TetheringOnAllInterfaces() {
Iterator<IpServer> it = this.mNotifyList.iterator();
while (it.hasNext()) {
stopIPv6TetheringOn(it.next());
}
}
private void setUpstreamNetworkState(NetworkState ns) {
if (ns == null) {
this.mUpstreamNetworkState = null;
} else {
this.mUpstreamNetworkState = new NetworkState((NetworkInfo) null, new LinkProperties(ns.linkProperties), new NetworkCapabilities(ns.networkCapabilities), new Network(ns.network), (String) null, (String) null);
}
SharedLog sharedLog = this.mLog;
sharedLog.log("setUpstreamNetworkState: " + toDebugString(this.mUpstreamNetworkState));
}
private void updateIPv6TetheringInterfaces() {
Iterator<IpServer> it = this.mNotifyList.iterator();
if (it.hasNext()) {
IpServer ipServer = it.next();
ipServer.sendMessage(IpServer.CMD_IPV6_TETHER_UPDATE, 0, 0, getInterfaceIPv6LinkProperties(ipServer));
}
}
private LinkProperties getInterfaceIPv6LinkProperties(IpServer ipServer) {
Downstream ds;
Downstream currentActive;
if (ipServer.interfaceType() == 2 || (ds = findDownstream(ipServer)) == null) {
return null;
}
if (ds.mode == 3) {
return getUniqueLocalConfig(this.mUniqueLocalPrefix, ds.subnetId);
}
NetworkState networkState = this.mUpstreamNetworkState;
if (!(networkState == null || networkState.linkProperties == null || (currentActive = this.mActiveDownstreams.peek()) == null || currentActive.ipServer != ipServer)) {
LinkProperties lp = getIPv6OnlyLinkProperties(this.mUpstreamNetworkState.linkProperties);
if (!lp.hasIpv6DefaultRoute() || !lp.hasGlobalIpv6Address()) {
return null;
}
return lp;
}
return null;
}
/* access modifiers changed from: package-private */
public Downstream findDownstream(IpServer ipServer) {
Iterator it = this.mActiveDownstreams.iterator();
while (it.hasNext()) {
Downstream ds = (Downstream) it.next();
if (ds.ipServer == ipServer) {
return ds;
}
}
return null;
}
private static LinkProperties getIPv6OnlyLinkProperties(LinkProperties lp) {
LinkProperties v6only = new LinkProperties();
if (lp == null) {
return v6only;
}
v6only.setInterfaceName(lp.getInterfaceName());
v6only.setMtu(lp.getMtu());
for (LinkAddress linkAddr : lp.getLinkAddresses()) {
if (linkAddr.isGlobalPreferred() && linkAddr.getPrefixLength() == 64) {
v6only.addLinkAddress(linkAddr);
}
}
for (RouteInfo routeInfo : lp.getRoutes()) {
IpPrefix destination = routeInfo.getDestination();
if ((destination.getAddress() instanceof Inet6Address) && destination.getPrefixLength() <= 64) {
v6only.addRoute(routeInfo);
}
}
for (InetAddress dnsServer : lp.getDnsServers()) {
if (isIPv6GlobalAddress(dnsServer)) {
v6only.addDnsServer(dnsServer);
}
}
v6only.setDomains(lp.getDomains());
return v6only;
}
private static boolean isIPv6GlobalAddress(InetAddress ip) {
return (ip instanceof Inet6Address) && !ip.isAnyLocalAddress() && !ip.isLoopbackAddress() && !ip.isLinkLocalAddress() && !ip.isSiteLocalAddress() && !ip.isMulticastAddress();
}
private static LinkProperties getUniqueLocalConfig(byte[] ulp, short subnetId) {
LinkProperties lp = new LinkProperties();
lp.addRoute(new RouteInfo(makeUniqueLocalPrefix(ulp, 0, 48), (InetAddress) null, (String) null));
lp.addLinkAddress(new LinkAddress(makeUniqueLocalPrefix(ulp, subnetId, 64).getAddress(), 64));
lp.setMtu(NetworkConstants.ETHER_MTU);
return lp;
}
private static IpPrefix makeUniqueLocalPrefix(byte[] in6addr, short subnetId, int prefixlen) {
byte[] bytes = Arrays.copyOf(in6addr, in6addr.length);
bytes[7] = (byte) (subnetId >> 8);
bytes[8] = (byte) subnetId;
return new IpPrefix(bytes, prefixlen);
}
private static byte[] generateUniqueLocalPrefix() {
byte[] ulp = new byte[6];
new Random().nextBytes(ulp);
byte[] in6addr = Arrays.copyOf(ulp, 16);
in6addr[0] = -3;
return in6addr;
}
private static String toDebugString(NetworkState ns) {
if (ns == null) {
return "NetworkState{null}";
}
return String.format("NetworkState{%s, %s, %s}", new Object[]{ns.network, ns.networkCapabilities, ns.linkProperties});
}
private static void stopIPv6TetheringOn(IpServer ipServer) {
ipServer.sendMessage(IpServer.CMD_IPV6_TETHER_UPDATE, 0, 0, (Object) null);
}
}
|
[
"sanbo.xyz@gmail.com"
] |
sanbo.xyz@gmail.com
|
e59aa49c3f30a044c11bb8da9b3ac8b5a6cad1fa
|
4be72dee04ebb3f70d6e342aeb01467e7e8b3129
|
/bin/ext-print/print/testsrc/de/hybris/platform/print/jalo/AutoCometJobTest.java
|
9fb25db662eca5828d2e8efd0c7d1340adefc21a
|
[] |
no_license
|
lun130220/hybris
|
da00774767ba6246d04cdcbc49d87f0f4b0b1b26
|
03c074ea76779f96f2db7efcdaa0b0538d1ce917
|
refs/heads/master
| 2021-05-14T01:48:42.351698
| 2018-01-07T07:21:53
| 2018-01-07T07:21:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,349
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2015 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("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 hybris.
*/
package de.hybris.platform.print.jalo;
import de.hybris.platform.core.model.ItemModel;
import de.hybris.platform.print.model.AutoCometJobModel;
import de.hybris.platform.servicelayer.ServicelayerTest;
import de.hybris.platform.servicelayer.model.ModelService;
import javax.annotation.Resource;
import org.apache.log4j.Logger;
import org.junit.Assert;
import org.junit.Test;
/**
*
*/
public class AutoCometJobTest extends ServicelayerTest
{
private static final Logger LOG = Logger.getLogger(AutoCometJobTest.class.getName());
@Resource
private ModelService modelService;
@Test
public void testCreateAutoCometJob()
{
try
{
final ItemModel modelItem = modelService.create("AutoCometJob");
Assert.assertTrue(modelItem instanceof AutoCometJobModel);
modelService.save(modelItem);
LOG.info(modelService.getSource(modelItem));
Assert.assertTrue(((AutoCometJobModel) modelItem).getId() != null);
}
finally
{
//nothing here
}
}
}
|
[
"lun130220@gamil.com"
] |
lun130220@gamil.com
|
c54f402397290673fdddc88b6603fa99b85610f0
|
b15fcbea84500825b454a8e0fca67e6c4a8c9cef
|
/ControlObligaciones/ControlObligaciones/src/main/java/mx/gob/sat/siat/cob/seguimiento/util/exportador/pdf/MtvoCancelDocPdf.java
|
913a6d359280fb05150eeecd27eff2905d2b175a
|
[] |
no_license
|
xtaticzero/COB
|
0416523d1bbc96d6024df5eca79172cb0927423f
|
96082d47e4ffb97dd6e61ce42feee65d5fe64e50
|
refs/heads/master
| 2021-09-09T22:02:10.153252
| 2018-03-20T00:18:00
| 2018-03-20T00:18:00
| 125,936,388
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 651
|
java
|
package mx.gob.sat.siat.cob.seguimiento.util.exportador.pdf;
import java.util.List;
import mx.gob.sat.siat.cob.seguimiento.dto.catalogos.MtvoCancelDoc;
public class MtvoCancelDocPdf extends GeneraPdf {
/**
*
*/
public MtvoCancelDocPdf() {
super();
}
/**
*
* @param datos
*/
@Override
public void colocarDatos(List<Object> datos) {
for(Object obj : datos){
MtvoCancelDoc mtvoCancelDoc = (MtvoCancelDoc)obj;
super.getTb().addCell(mtvoCancelDoc.getNombre());
super.getTb().addCell(mtvoCancelDoc.getDescripcion());
}
}
}
|
[
"emmanuel.estrada@stksat.com"
] |
emmanuel.estrada@stksat.com
|
b5e6e7f1f9f6cf4bf07e2fdde09e2a60d4818b00
|
de3eb812d5d91cbc5b81e852fc32e25e8dcca05f
|
/branches/crux/4.0.1/Crux/src/core/org/cruxframework/crux/core/client/controller/Create.java
|
b1792482ac08104efe13abf00673ac19c1c3b86f
|
[] |
no_license
|
svn2github/crux-framework
|
7dd52a951587d4635112987301c88db23325c427
|
58bcb4821752b405a209cfc21fb83e3bf528727b
|
refs/heads/master
| 2016-09-06T13:33:41.975737
| 2015-01-22T08:03:25
| 2015-01-22T08:03:25
| 13,135,398
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,171
|
java
|
/*
* Copyright 2011 cruxframework.org.
*
* 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.cruxframework.crux.core.client.controller;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.cruxframework.crux.core.client.ioc.Inject;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
/**
* This annotation can be used to instantiate automatically a controller field.
* It only makes any effect if used on fields of a {@link Controller} class.
* <p>
* The annotation can be used to create any field, but it is specially useful to:
* <p>
* 1) Make the rpc mechanism painless. If an interface that extends
* RemoteService (not annotated with {@code @}{@link RemoteServiceRelativePath}) is the type
* for the field, the serviceEntryPoint is mapped to {@code crux.rpc} (Crux default servlet)
* <p>
* 2) Create DTOs that bound to screen, using the annotation {@code @}{@link ScreenBind}.
*<p>
* For example:
* <pre>
* {@code @}{@link Controller}("myController")
* public class MyController
* {
* {@code @Create}
* protected MyServiceAsync service;
*
* {@code @}{@link Expose}
* public void myEventHandler()
* {
* service.myMethod(new AsyncCallBackAdapter(){...});
* }
* }
* </pre>
* @see Controller
* @author Thiago da Rosa de Bustamante
* /@deprecated Use {@code @}{@link Inject} instead
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
//@Deprecated
public @interface Create
{
}
|
[
"samuel@cruxframework.org@a5d2bbaa-053c-11de-b17c-0f1ef23b492c"
] |
samuel@cruxframework.org@a5d2bbaa-053c-11de-b17c-0f1ef23b492c
|
261b2bb34106f871ebb44af817d210ac2b222333
|
b388824ad972214576b84ceba51cc70163395b77
|
/app/src/main/java/com/askfood/ers/net/Interceptor/AbsHeaderInterceptor.java
|
21a99718237eaa4b821d91dae3e75410ad76ef68
|
[] |
no_license
|
akingyin1987/ERS
|
da54071a487af60b55113b465f99663d1975bf35
|
228671cb082755fd1246db5945704e260ebfe4ee
|
refs/heads/master
| 2021-07-16T21:41:02.934826
| 2017-10-20T14:36:09
| 2017-10-20T14:36:09
| 107,261,450
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,971
|
java
|
/*
* Copyright (c) 2017. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
* Vestibulum commodo. Ut rhoncus gravida arcu.
*/
package com.askfood.ers.net.Interceptor;
import java.io.IOException;
import java.util.UUID;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
/**
* Created by Administrator on 2017/9/12.
*/
public abstract class AbsHeaderInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
Request request = chain.request();
request = getRequestHeader(request);
Response response = chain.proceed(request);
if (isTokenExpired(response)) {//根据和服务端的约定判断token过期
//同步请求方式,获取最新的Token
String newSession = getNewToken();
//使用新的Token,创建新的请求
request = getNewTokenRequestHeader(request,newSession);
//重新请求
return chain.proceed(request);
}
return decryptResponse(response);
}
/**
* 根据Response,判断Token是否失效
*
* @param response
* @return
*/
public abstract boolean isTokenExpired(Response response);
/**
* 同步请求方式,获取最新的Token
*
* @return
*/
public String getNewToken(){
return UUID.randomUUID().toString();
}
//获取头文件
protected abstract Request getRequestHeader(Request request);
protected abstract Request getNewTokenRequestHeader(Request request,String token);
//解密数据
protected abstract Response decryptResponse(Response response);
}
|
[
"akingyin@163.com"
] |
akingyin@163.com
|
da8ecad038630274170524110576fe64b81310bd
|
074fc577a27d039c8e8bd7b218716e434de46bc2
|
/app/src/main/java/com/zhiyu/quanzhu/ui/activity/XiTongXiaoXiTuiKuanTongZhiActivity.java
|
458c1ebc0de51e2c4e655f88ed010c001fe42a6e
|
[] |
no_license
|
leon6611wang/PinTaiHui
|
941d1844ffb1c8912d59b530af788610c2879350
|
20bb8af19789f50e34c7e83796a1039b0dd2388a
|
refs/heads/master
| 2020-12-18T20:58:50.265795
| 2020-08-07T05:40:46
| 2020-08-07T05:40:47
| 235,515,563
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,032
|
java
|
package com.zhiyu.quanzhu.ui.activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.zhiyu.quanzhu.R;
import com.zhiyu.quanzhu.base.BaseActivity;
import com.zhiyu.quanzhu.utils.ConstantsUtils;
import com.zhiyu.quanzhu.utils.MyPtrHandlerFooter;
import com.zhiyu.quanzhu.utils.MyPtrHandlerHeader;
import com.zhiyu.quanzhu.utils.MyPtrRefresherFooter;
import com.zhiyu.quanzhu.utils.MyPtrRefresherHeader;
import com.zhiyu.quanzhu.utils.MyRequestParams;
import com.zhiyu.quanzhu.utils.ScreentUtils;
import com.zhiyu.quanzhu.utils.SpaceItemDecoration;
import org.xutils.common.Callback;
import org.xutils.http.RequestParams;
import org.xutils.x;
import java.lang.ref.WeakReference;
import in.srain.cube.views.ptr.PtrDefaultHandler2;
import in.srain.cube.views.ptr.PtrFrameLayout;
/**
* 系统消息-退款通知
*/
public class XiTongXiaoXiTuiKuanTongZhiActivity extends BaseActivity implements View.OnClickListener {
private LinearLayout backLayout;
private TextView titleTextView;
private PtrFrameLayout ptrFrameLayout;
private MyHandler myHandler = new MyHandler(this);
private RecyclerView mRecyclerView;
private static class MyHandler extends Handler {
WeakReference<XiTongXiaoXiTuiKuanTongZhiActivity> activityWeakReference;
public MyHandler(XiTongXiaoXiTuiKuanTongZhiActivity activity) {
activityWeakReference = new WeakReference<>(activity);
}
@Override
public void handleMessage(Message msg) {
XiTongXiaoXiTuiKuanTongZhiActivity activity = activityWeakReference.get();
switch (msg.what) {
case 1:
activity.ptrFrameLayout.refreshComplete();
break;
}
}
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_xitongxiaoxi_inner_list);
ScreentUtils.getInstance().setStatusBarLightMode(this, true);
initPtr();
initViews();
}
private void initViews() {
backLayout = findViewById(R.id.backLayout);
backLayout.setOnClickListener(this);
titleTextView = findViewById(R.id.titleTextView);
titleTextView.setText("退款通知");
mRecyclerView = findViewById(R.id.mRecyclerView);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
SpaceItemDecoration spaceItemDecoration = new SpaceItemDecoration((int) getResources().getDimension(R.dimen.dp_10));
mRecyclerView.setLayoutManager(linearLayoutManager);
mRecyclerView.addItemDecoration(spaceItemDecoration);
}
private void initPtr() {
ptrFrameLayout = findViewById(R.id.ptr_frame_layout);
ptrFrameLayout.setHeaderView(new MyPtrRefresherHeader(this));
ptrFrameLayout.addPtrUIHandler(new MyPtrHandlerHeader(this, ptrFrameLayout));
ptrFrameLayout.setFooterView(new MyPtrRefresherFooter(this));
ptrFrameLayout.addPtrUIHandler(new MyPtrHandlerFooter(this, ptrFrameLayout));
ptrFrameLayout.setPtrHandler(new PtrDefaultHandler2() {
@Override
public void onLoadMoreBegin(PtrFrameLayout frame) {
page++;
isRefresh=false;
list();
}
@Override
public void onRefreshBegin(PtrFrameLayout frame) {
page=1;
isRefresh=true;
list();
}
});
ptrFrameLayout.autoRefresh();
ptrFrameLayout.setMode(PtrFrameLayout.Mode.BOTH);
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.backLayout:
finish();
break;
}
}
private int page=1;
private boolean isRefresh=true;
private void list(){
RequestParams params= MyRequestParams.getInstance(this).getRequestParams(ConstantsUtils.BASE_URL+ConstantsUtils.XI_TONG_XIAO_XI_ZHI_FU_TONG_ZHI);
params.addBodyParameter("page",String.valueOf(page));
x.http().post(params, new Callback.CommonCallback<String>() {
@Override
public void onSuccess(String result) {
System.out.println("关注店铺"+result);
Message message=myHandler.obtainMessage(1);
message.sendToTarget();
}
@Override
public void onError(Throwable ex, boolean isOnCallback) {
}
@Override
public void onCancelled(CancelledException cex) {
}
@Override
public void onFinished() {
}
});
}
}
|
[
"522218113@qq.com"
] |
522218113@qq.com
|
e7962f9266ea5481b92dd8d8f819d6d0a8e08fbe
|
cbb75ebbee3fb80a5e5ad842b7a4bb4a5a1ec5f5
|
/android/support/v7/view/menu/MenuPopupHelper.java
|
af2ea2634b1ce78fb079e9161bc49967ae6ffe8e
|
[] |
no_license
|
killbus/jd_decompile
|
9cc676b4be9c0415b895e4c0cf1823e0a119dcef
|
50c521ce6a2c71c37696e5c131ec2e03661417cc
|
refs/heads/master
| 2022-01-13T03:27:02.492579
| 2018-05-14T11:21:30
| 2018-05-14T11:21:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,842
|
java
|
package android.support.v7.view.menu;
import android.content.Context;
import android.graphics.Point;
import android.graphics.Rect;
import android.os.Build.VERSION;
import android.support.annotation.AttrRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.RestrictTo;
import android.support.annotation.RestrictTo.Scope;
import android.support.annotation.StyleRes;
import android.support.v4.view.GravityCompat;
import android.support.v4.view.ViewCompat;
import android.support.v7.appcompat.R;
import android.support.v7.view.menu.MenuPresenter.Callback;
import android.view.Display;
import android.view.View;
import android.view.WindowManager;
import android.widget.PopupWindow.OnDismissListener;
@RestrictTo({Scope.GROUP_ID})
/* compiled from: TbsSdkJava */
public class MenuPopupHelper implements MenuHelper {
private static final int TOUCH_EPICENTER_SIZE_DP = 48;
private View mAnchorView;
private final Context mContext;
private int mDropDownGravity;
private boolean mForceShowIcon;
private final OnDismissListener mInternalOnDismissListener;
private final MenuBuilder mMenu;
private OnDismissListener mOnDismissListener;
private final boolean mOverflowOnly;
private MenuPopup mPopup;
private final int mPopupStyleAttr;
private final int mPopupStyleRes;
private Callback mPresenterCallback;
public MenuPopupHelper(@NonNull Context context, @NonNull MenuBuilder menuBuilder) {
this(context, menuBuilder, null, false, R.attr.popupMenuStyle, 0);
}
public MenuPopupHelper(@NonNull Context context, @NonNull MenuBuilder menuBuilder, @NonNull View view) {
this(context, menuBuilder, view, false, R.attr.popupMenuStyle, 0);
}
public MenuPopupHelper(@NonNull Context context, @NonNull MenuBuilder menuBuilder, @NonNull View view, boolean z, @AttrRes int i) {
this(context, menuBuilder, view, z, i, 0);
}
public MenuPopupHelper(@NonNull Context context, @NonNull MenuBuilder menuBuilder, @NonNull View view, boolean z, @AttrRes int i, @StyleRes int i2) {
this.mDropDownGravity = GravityCompat.START;
this.mInternalOnDismissListener = new OnDismissListener() {
public void onDismiss() {
MenuPopupHelper.this.onDismiss();
}
};
this.mContext = context;
this.mMenu = menuBuilder;
this.mAnchorView = view;
this.mOverflowOnly = z;
this.mPopupStyleAttr = i;
this.mPopupStyleRes = i2;
}
public void setOnDismissListener(@Nullable OnDismissListener onDismissListener) {
this.mOnDismissListener = onDismissListener;
}
public void setAnchorView(@NonNull View view) {
this.mAnchorView = view;
}
public void setForceShowIcon(boolean z) {
this.mForceShowIcon = z;
if (this.mPopup != null) {
this.mPopup.setForceShowIcon(z);
}
}
public void setGravity(int i) {
this.mDropDownGravity = i;
}
public int getGravity() {
return this.mDropDownGravity;
}
public void show() {
if (!tryShow()) {
throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor");
}
}
public void show(int i, int i2) {
if (!tryShow(i, i2)) {
throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor");
}
}
@NonNull
public MenuPopup getPopup() {
if (this.mPopup == null) {
this.mPopup = createPopup();
}
return this.mPopup;
}
public boolean tryShow() {
if (isShowing()) {
return true;
}
if (this.mAnchorView == null) {
return false;
}
showPopup(0, 0, false, false);
return true;
}
public boolean tryShow(int i, int i2) {
if (isShowing()) {
return true;
}
if (this.mAnchorView == null) {
return false;
}
showPopup(i, i2, true, true);
return true;
}
@NonNull
private MenuPopup createPopup() {
MenuPopup cascadingMenuPopup;
Display defaultDisplay = ((WindowManager) this.mContext.getSystemService("window")).getDefaultDisplay();
Point point = new Point();
if (VERSION.SDK_INT >= 17) {
defaultDisplay.getRealSize(point);
} else if (VERSION.SDK_INT >= 13) {
defaultDisplay.getSize(point);
} else {
point.set(defaultDisplay.getWidth(), defaultDisplay.getHeight());
}
if ((Math.min(point.x, point.y) >= this.mContext.getResources().getDimensionPixelSize(R.dimen.abc_cascading_menus_min_smallest_width) ? 1 : null) != null) {
cascadingMenuPopup = new CascadingMenuPopup(this.mContext, this.mAnchorView, this.mPopupStyleAttr, this.mPopupStyleRes, this.mOverflowOnly);
} else {
cascadingMenuPopup = new StandardMenuPopup(this.mContext, this.mMenu, this.mAnchorView, this.mPopupStyleAttr, this.mPopupStyleRes, this.mOverflowOnly);
}
cascadingMenuPopup.addMenu(this.mMenu);
cascadingMenuPopup.setOnDismissListener(this.mInternalOnDismissListener);
cascadingMenuPopup.setAnchorView(this.mAnchorView);
cascadingMenuPopup.setCallback(this.mPresenterCallback);
cascadingMenuPopup.setForceShowIcon(this.mForceShowIcon);
cascadingMenuPopup.setGravity(this.mDropDownGravity);
return cascadingMenuPopup;
}
private void showPopup(int i, int i2, boolean z, boolean z2) {
MenuPopup popup = getPopup();
popup.setShowTitle(z2);
if (z) {
if ((GravityCompat.getAbsoluteGravity(this.mDropDownGravity, ViewCompat.getLayoutDirection(this.mAnchorView)) & 7) == 5) {
i -= this.mAnchorView.getWidth();
}
popup.setHorizontalOffset(i);
popup.setVerticalOffset(i2);
int i3 = (int) ((this.mContext.getResources().getDisplayMetrics().density * 48.0f) / 2.0f);
popup.setEpicenterBounds(new Rect(i - i3, i2 - i3, i + i3, i3 + i2));
}
popup.show();
}
public void dismiss() {
if (isShowing()) {
this.mPopup.dismiss();
}
}
protected void onDismiss() {
this.mPopup = null;
if (this.mOnDismissListener != null) {
this.mOnDismissListener.onDismiss();
}
}
public boolean isShowing() {
return this.mPopup != null && this.mPopup.isShowing();
}
public void setPresenterCallback(@Nullable Callback callback) {
this.mPresenterCallback = callback;
if (this.mPopup != null) {
this.mPopup.setCallback(callback);
}
}
}
|
[
"13511577582@163.com"
] |
13511577582@163.com
|
93ebcc0612ec4205798476e6115019a012516447
|
e11a54bc56226165446568694528fbb415e406d5
|
/Java8NewFeatures/LambdaExpression1/src/com/manh/staticref3/Main.java
|
e253804748b627901dfe6dcedf764948476f3859
|
[] |
no_license
|
siddhantaws/Maven-Projects
|
5f09d4060ddebaf4734f8401c3809b2c4313b4df
|
80c087aed838dcdf791f58e14a44f2337368590f
|
refs/heads/master
| 2022-12-20T23:21:21.597144
| 2019-06-28T04:00:24
| 2019-06-28T04:00:24
| 51,756,809
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 290
|
java
|
package com.manh.staticref3;
public class Main
{
public static void main(String[] args)
{
yourMethod((name,age)->MyClass.existingStaticMethod(name));
}
public static void yourMethod(MyFunctionalInterface interface1)
{
interface1.mySingleAbstractMethod("Siddhanta", 29);
}
}
|
[
"siddhantaws@gmail.com"
] |
siddhantaws@gmail.com
|
53d4ac434e64c7b0e1d5643d345e9223207e0974
|
9ccb632efc5767fd570d912d2c3f3cf7bcbc7943
|
/01JavaBasics/03ConditionalStatementAdvanced/A08CinemaTicket.java
|
47770ec8fb038694493146b088850f21da148898
|
[] |
no_license
|
CrystallizedSnowflakes/Java-SoftUni
|
59203e45589bd2c77c0e95ec40246f3a672f1ba5
|
753b132649c2b94d29e727db0d8753be52cf3133
|
refs/heads/main
| 2023-07-11T01:29:42.474682
| 2021-08-23T16:41:27
| 2021-08-23T16:41:27
| 321,304,125
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 661
|
java
|
package bg.softuni.javabasics;
import java.util.Scanner;
public class A08CinemaTicket {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String weekDay = scanner.nextLine();
switch (weekDay){
case "Monday":
case "Tuesday":
case "Friday":
System.out.println(12);
break;
case "Wednesday":
case "Thursday":
System.out.println(14);
break;
case "Saturday":
case "Sunday":
System.out.println(16);
break;
}
}
}
|
[
"nadezhda.georgieva2@gmail.com"
] |
nadezhda.georgieva2@gmail.com
|
7b032eda4c9921dcc3c21252c8a22c907d4e365a
|
09960b68707da3891f45ac2eda90e177a742b28d
|
/web/ahnew/src/main/java/com/szty/aihao/service/tmp_dz_result_service.java
|
ad0f3e4f5b5d3ce3f94d37fb8b155ba394a12835
|
[] |
no_license
|
jiangyiman/szty
|
a72434d586f836f8a9039b3a5a293f614a1e4b99
|
9087733b2b88b6ac0e0cd7d13652f02b42cdb848
|
refs/heads/master
| 2021-05-30T22:03:01.114487
| 2016-03-25T06:25:18
| 2016-03-25T06:25:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,857
|
java
|
/*
*@===================================================================
*@项目说明
*@作者:宋春林
*@版本信息:@Copy Right 2011-2015
*@文件: iDataTmp_dz_result.java
*@项目名称:JAVA项目管理
*@创建时间:2015/10/15
*@===================================================================
*/
package com.szty.aihao.service;
import com.szty.aihao.dao.tmp_dz_result_Dao;
import com.szty.aihao.core.tmp_dz_result_core;
import com.szty.aihao.factory.classFactory;
import java.util.Dictionary;
import java.util.List;
/**
*@文件说明
*@TMP_DZ_RESULT逻辑层接口
*@作者:宋春林
*/
public class tmp_dz_result_service
{
public tmp_dz_result_core _dal=classFactory.gettmp_dz_result();
/**
* 向数据库中插入一条新记录。
* @param TMP_DZ_RESULT实体
* @return 新插入记录的编号
*/
public int insert_tmp_dz_result (tmp_dz_result_Dao _TMP_DZ_RESULTModel ) throws Exception{
return _dal.insert_tmp_dz_result( _TMP_DZ_RESULTModel);
}
/**
* 向数据库中插入一条新记录。
* @param TMP_DZ_RESULTprrameter
* @return 新插入记录的编号
*/
public int insert_tmp_dz_result(Object[] _para) throws Exception{
return _dal.insert_tmp_dz_result( _para);
}
/**
* 向数据库中插入一条新记录。
* @param TMP_DZ_RESULT实体
* @return 影响的行数
*/
public int update_tmp_dz_result(tmp_dz_result_Dao _TMP_DZ_RESULTModel) throws Exception{
return _dal.update_tmp_dz_result( _TMP_DZ_RESULTModel);
}
/**
* 删除数据表TMP_DZ_RESULT中的一条记录
* @param TMP_DZ_RESULT实体
* @return 新插入记录的编号
*/
public int delete_tmp_dz_result(int P1) throws Exception{
return _dal.delete_tmp_dz_result( P1);
}
/**
* 得到 tmp_dz_result 数据实体
* @param P1">P1
* @return<tmp_dz_result 数据实体
* @throws Exception
*/
public tmp_dz_result_Dao get_tmp_dz_resultDao(int P1) throws Exception{
return _dal.get_tmp_dz_resultDao( P1);
}
/**
* 根据TMP_DZ_RESULT返回的查询DataRow创建一个TMP_DZ_RESULTEntity对象
* @param TMP_DZ_RESULT row
* @returnTMP_DZ_RESULTList对象
* @throws Exception
*/
public List<tmp_dz_result_Dao> get_tmp_dz_result_All() throws Exception{
return _dal.get_tmp_dz_result_All();
}
/**
* 根据TMP_DZ_RESULT返回的查询DataRow创建一个TMP_DZ_RESULTEntity对象
* @param TMP_DZ_RESULT row
* @returnTMP_DZ_RESULTList对象
* @throws Exception
*/
public List<tmp_dz_result_Dao> get_tmp_dz_result_All(String strWhere) throws Exception{
return _dal.get_tmp_dz_result_All(strWhere);
}
/* 根据SCLTEST返回 分页数据
*
* @param SCLTEST
* row
* @returnSCLTESTList对象
* @throws Exception
*/
public List<tmp_dz_result_Dao> get_tmp_dz_result_Page(int pageSize, int pageIndex,String strWhere) throws Exception
{
return _dal.get_tmp_dz_result_Page(pageSize,pageIndex,strWhere);
}
/**
* 根据TMP_DZ_RESULT返回的查询DataRow创建一个TMP_DZ_RESULTEntity对象
* @param TMP_DZ_RESULT row
* @returnTMP_DZ_RESULTDictionary对象
* @throws Exception
*/
public Dictionary<Integer, tmp_dz_result_Dao> get_tmp_dz_result_Dictionary(String strWhere) throws Exception{
return _dal.get_tmp_dz_result_Dictionary(strWhere);
}
/**
* 更新TMP_DZ_RESULT字段加一
* @param FieldName
* @param sid
*/
public int create_tmp_dz_result_UpdateIncreate(String FieldName,int sid) throws Exception{
return _dal.create_tmp_dz_result_UpdateIncreate( FieldName, sid);
}
/**
* 更新TMP_DZ_RESULTInt型字段
* @param FieldName
* @param Num
* @param sid
*/
public int create_tmp_dz_result_UpdateInteger(String FieldName,int Num,int sid) throws Exception{
return _dal.create_tmp_dz_result_UpdateInteger( FieldName, Num, sid);
}
/**
* 更新TMP_DZ_RESULTIString型字段
* @param FieldName
* @param Value
* @param sid
*/
public int createtmp_dz_result_UpdateString(String FieldName,String Value,int sid) throws Exception{
return _dal.create_tmp_dz_result_UpdateString( FieldName, Value, sid);
}
}
|
[
"279941737@qq.com"
] |
279941737@qq.com
|
7e02067127051a6e9a5fbc0faad45bdf2976be16
|
e42861253ed16162b5e89883ea3b95294ccbf882
|
/Web/simplyServer/SimplyServer/app/src/main/java/com/example/sergey/simplyserver/HTTPprocessing.java
|
4ec2332275e872cca1357fc4ebe4867802831dae
|
[] |
no_license
|
spspider/TestAndroid
|
c5febcc87eb6a724064f18ec3b48bd1acfb51204
|
7b3d0d41b07237bb84b74b5e3d508c1c29515f49
|
refs/heads/master
| 2023-04-30T11:43:17.729650
| 2022-11-19T15:21:54
| 2022-11-19T15:21:54
| 84,638,955
| 0
| 0
| null | 2023-04-18T07:18:10
| 2017-03-11T09:35:21
|
Java
|
UTF-8
|
Java
| false
| false
| 1,442
|
java
|
package com.example.sergey.simplyserver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import java.util.Properties;
/**
* Created by sergey on 12.11.2018.
*/
public class HTTPprocessing {
public static final String NEW_CAT_DETECTED = "android.intent.action.ACTION";
Context context=null;
public HTTPprocessing(Context applicationContext) {
this.context=applicationContext;
}
public String HTTPprocessing(Properties parms, String uri, String method, Properties header, Properties files, String IPadress, int PORT) {
Intent intent = new Intent(NEW_CAT_DETECTED);
// Или так
// Intent intent = new Intent();
// intent.setAction(NEW_CAT_DETECTED);
intent.putExtra("username", parms.getProperty("username"));
if (context!=null) {
context.sendBroadcast(intent);
Log.d("LOG","sended");
}
String html = "<html>\n" +
"<body>\n" +
"<form action=\"http://" + IPadress + ":" + PORT + "\" enctype=\"multipart/form-data\" method=\"POST\">\n" +
" <input type=\"text\" id=\"input\" name=\"username\" value="+parms.getProperty("username") +
" />\n" +
" <input type=\"submit\" />\n" +
"</form>\n" +
"\n" +
"</body>\n" +
"</html>";
return html;
}
}
|
[
"spspider95@gmail.com"
] |
spspider95@gmail.com
|
048c9b9f97233382e102a08a3ebc6a451a33ce67
|
fdec3692a0811400be8d8384f04ed3b8b48977a9
|
/Java-Development/03. Java OOP Advanced/09. RpgLab/src/main/java/rpg_lab/Dummy.java
|
05d3a50c00684fd2308ceb3d1d4632bec6fcce19
|
[] |
no_license
|
did0sh/Softuni-Education
|
8d1a76a6af1f28947c4657a37cbc5a281d3a1c9e
|
af0051ab14512667c8cd75bfd15ca8e9d272fdd1
|
refs/heads/main
| 2023-04-19T12:01:15.109248
| 2021-05-12T17:56:16
| 2021-05-12T17:56:16
| 314,238,203
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 771
|
java
|
package rpg_lab;
import interfaces.Target;
public class Dummy implements Target {
private int health;
private int experience;
public Dummy(int health, int experience) {
this.health = health;
this.experience = experience;
}
public int getHealth() {
return this.health;
}
public void takeAttack(int attackPoints) {
if (this.isDead()) {
throw new IllegalStateException("Dummy is dead.");
}
this.health -= attackPoints;
}
public int giveExperience() {
if (!this.isDead()) {
throw new IllegalStateException("Target is not dead.");
}
return this.experience;
}
public boolean isDead() {
return this.health <= 0;
}
}
|
[
"deyan.p.georgiev@gmail.com"
] |
deyan.p.georgiev@gmail.com
|
245aa69ff6bc2ccbce253097b90428117f88a8ab
|
2f3c04382a66dbf222c8587edd67a5df4bc80422
|
/src/com/cedar/cp/dto/model/SecurityRangeDetails.java
|
5d62d69cee019d5ba06a1881b461ec7fdc2b7bf8
|
[] |
no_license
|
arnoldbendaa/cppro
|
d3ab6181cc51baad2b80876c65e11e92c569f0cc
|
f55958b85a74ad685f1360ae33c881b50d6e5814
|
refs/heads/master
| 2020-03-23T04:18:00.265742
| 2018-09-11T08:15:28
| 2018-09-11T08:15:28
| 141,074,966
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,026
|
java
|
// Decompiled by: Fernflower v0.8.6
// Date: 12.08.2012 13:05:58
// Copyright: 2008-2012, Stiver
// Home page: http://www.neshkov.com/ac_decompiler.html
package com.cedar.cp.dto.model;
import java.util.List;
public class SecurityRangeDetails {
private int rangeId;
private int dimensionId;
private String identifier;
private List row;
public int getRangeId() {
return this.rangeId;
}
public void setRangeId(int rangeId) {
this.rangeId = rangeId;
}
public int getDimensionId() {
return this.dimensionId;
}
public void setDimensionId(int dimensionId) {
this.dimensionId = dimensionId;
}
public String getIdentifier() {
return this.identifier;
}
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
public List getRow() {
return this.row;
}
public void setRow(List row) {
this.row = row;
}
}
|
[
"arnoldbendaa@gmail.com"
] |
arnoldbendaa@gmail.com
|
ae5f41534ba358bd225e3b0176c8f0eac1826f31
|
b889ee42c7c2a457c5971b21293e0fbd329eea72
|
/javazoom/jl/decoder/OutputBuffer.java
|
54bc0b740b2161c710415fb28906ef1906e93cc3
|
[] |
no_license
|
cfosco/Evolution-simulator
|
aa88d823e546d960247f63e841750b181c5a3622
|
737b8c54da729df78c3db3137432a32d9af5186e
|
refs/heads/master
| 2021-01-12T08:03:22.722480
| 2017-10-01T20:07:23
| 2017-10-01T20:07:23
| 77,113,048
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,685
|
java
|
/*
* Decompiled with CFR 0_122.
*/
package javazoom.jl.decoder;
public class OutputBuffer {
public static final int BUFFERSIZE = 2304;
private static final int MAXCHANNELS = 2;
private Float replayGainScale;
private int channels;
private byte[] buffer;
private int[] channelPointer;
private boolean isBigEndian;
public OutputBuffer(int channels, boolean isBigEndian) {
this.channels = channels;
this.isBigEndian = isBigEndian;
this.buffer = new byte[2304 * channels];
this.channelPointer = new int[channels];
this.reset();
}
private void append(int channel, short value) {
byte secondByte;
byte firstByte;
if (this.isBigEndian) {
firstByte = (byte)(value >>> 8 & 255);
secondByte = (byte)(value & 255);
} else {
firstByte = (byte)(value & 255);
secondByte = (byte)(value >>> 8 & 255);
}
this.buffer[this.channelPointer[channel]] = firstByte;
this.buffer[this.channelPointer[channel] + 1] = secondByte;
int[] arrn = this.channelPointer;
int n = channel;
arrn[n] = arrn[n] + this.channels * 2;
}
public void appendSamples(int channel, float[] f) {
if (this.replayGainScale != null) {
int i = 0;
while (i < 32) {
short s = this.clip(f[i++] * this.replayGainScale.floatValue());
this.append(channel, s);
}
} else {
int i = 0;
while (i < 32) {
short s = this.clip(f[i++]);
this.append(channel, s);
}
}
}
public byte[] getBuffer() {
return this.buffer;
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public int reset() {
int n;
try {
int index = this.channels - 1;
n = this.channelPointer[index] - index * 2;
}
catch (Throwable throwable) {
for (int i = 0; i < this.channels; ++i) {
this.channelPointer[i] = i * 2;
}
throw throwable;
}
for (int i = 0; i < this.channels; ++i) {
this.channelPointer[i] = i * 2;
}
return n;
}
public void setReplayGainScale(Float replayGainScale) {
this.replayGainScale = replayGainScale;
}
public boolean isStereo() {
return this.channelPointer[1] == 2;
}
private final short clip(float sample) {
return (short)(sample > 32767.0f ? 32767 : (short)(sample < -32768.0f ? -32768 : (short)sample));
}
}
|
[
"camilofosco@gmail.com"
] |
camilofosco@gmail.com
|
77838673e10c7e8daffd77400887558206d2a4fe
|
385e3414ccb7458bbd3cec326320f11819decc7b
|
/frameworks/opt/tedongle/src/java/com/android/internal/tedongle/gsm/GsmCall.java
|
665903be67606d65a74e42148d7a87bfea3db9c6
|
[] |
no_license
|
carlos22211/Tango_AL813
|
14de7f2693c3045b9d3c0cb52017ba2bb6e6b28f
|
b50b1b7491dc9c5e6b92c2d94503635c43e93200
|
refs/heads/master
| 2020-03-28T08:09:11.127995
| 2017-06-26T05:05:29
| 2017-06-26T05:05:29
| 147,947,860
| 1
| 0
| null | 2018-09-08T15:55:46
| 2018-09-08T15:55:45
| null |
UTF-8
|
Java
| false
| false
| 5,631
|
java
|
/*
* Copyright (C) 2006 The Android Open Source Project
*
* 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.android.internal.tedongle.gsm;
import com.android.internal.tedongle.Call;
import com.android.internal.tedongle.CallStateException;
import com.android.internal.tedongle.Connection;
import com.android.internal.tedongle.DriverCall;
import com.android.internal.tedongle.Phone;
import java.util.List;
/**
* {@hide}
*/
class GsmCall extends Call {
/*************************** Instance Variables **************************/
/*package*/ GsmCallTracker mOwner;
/***************************** Class Methods *****************************/
static State
stateFromDCState (DriverCall.State dcState) {
switch (dcState) {
case ACTIVE: return State.ACTIVE;
case HOLDING: return State.HOLDING;
case DIALING: return State.DIALING;
case ALERTING: return State.ALERTING;
case INCOMING: return State.INCOMING;
case WAITING: return State.WAITING;
default: throw new RuntimeException ("illegal call state:" + dcState);
}
}
/****************************** Constructors *****************************/
/*package*/
GsmCall (GsmCallTracker owner) {
mOwner = owner;
}
public void dispose() {
}
/************************** Overridden from Call *************************/
@Override
public List<Connection>
getConnections() {
// FIXME should return Collections.unmodifiableList();
return mConnections;
}
@Override
public Phone
getPhone() {
return mOwner.mPhone;
}
@Override
public boolean
isMultiparty() {
return mConnections.size() > 1;
}
/** Please note: if this is the foreground call and a
* background call exists, the background call will be resumed
* because an AT+CHLD=1 will be sent
*/
@Override
public void
hangup() throws CallStateException {
mOwner.hangup(this);
}
@Override
public String
toString() {
return mState.toString();
}
//***** Called from GsmConnection
/*package*/ void
attach(Connection conn, DriverCall dc) {
mConnections.add(conn);
mState = stateFromDCState (dc.state);
}
/*package*/ void
attachFake(Connection conn, State state) {
mConnections.add(conn);
mState = state;
}
/**
* Called by GsmConnection when it has disconnected
*/
boolean
connectionDisconnected(GsmConnection conn) {
if (mState != State.DISCONNECTED) {
/* If only disconnected connections remain, we are disconnected*/
boolean hasOnlyDisconnectedConnections = true;
for (int i = 0, s = mConnections.size() ; i < s; i ++) {
if (mConnections.get(i).getState()
!= State.DISCONNECTED
) {
hasOnlyDisconnectedConnections = false;
break;
}
}
if (hasOnlyDisconnectedConnections) {
mState = State.DISCONNECTED;
return true;
}
}
return false;
}
/*package*/ void
detach(GsmConnection conn) {
mConnections.remove(conn);
if (mConnections.size() == 0) {
mState = State.IDLE;
}
}
/*package*/ boolean
update (GsmConnection conn, DriverCall dc) {
State newState;
boolean changed = false;
newState = stateFromDCState(dc.state);
if (newState != mState) {
mState = newState;
changed = true;
}
return changed;
}
/**
* @return true if there's no space in this call for additional
* connections to be added via "conference"
*/
/*package*/ boolean
isFull() {
return mConnections.size() == GsmCallTracker.MAX_CONNECTIONS_PER_CALL;
}
//***** Called from GsmCallTracker
/**
* Called when this Call is being hung up locally (eg, user pressed "end")
* Note that at this point, the hangup request has been dispatched to the radio
* but no response has yet been received so update() has not yet been called
*/
void
onHangupLocal() {
for (int i = 0, s = mConnections.size()
; i < s; i++
) {
GsmConnection cn = (GsmConnection)mConnections.get(i);
cn.onHangupLocal();
}
mState = State.DISCONNECTING;
}
/**
* Called when it's time to clean up disconnected Connection objects
*/
void
clearDisconnected() {
for (int i = mConnections.size() - 1 ; i >= 0 ; i--) {
GsmConnection cn = (GsmConnection)mConnections.get(i);
if (cn.getState() == State.DISCONNECTED) {
mConnections.remove(i);
}
}
if (mConnections.size() == 0) {
mState = State.IDLE;
}
}
}
|
[
"zhangjinqiang@huaqin.com"
] |
zhangjinqiang@huaqin.com
|
52b5356dcbbb648995ed7aa7b9cd0af53f51b907
|
4274da2667298ab18410388f62db2c0d274b563c
|
/real-estate-bidding-system-api/src/main/java/org/universe/realestatebiddingsystem/app/exception/InternalServerErrorException.java
|
d0a84b8024e6dc881c5890ece7674d32088c1230
|
[
"MIT"
] |
permissive
|
GeorgeK95/RealEstateBiddingSystem
|
b690961d839363a8228808fd6eb6c2edfafb4c8c
|
6ab606469e1c0bbfdb9bd4c66e6964160f43dc6e
|
refs/heads/master
| 2020-03-26T03:20:06.012574
| 2018-08-26T14:39:24
| 2018-08-26T14:39:24
| 144,450,650
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 491
|
java
|
package org.universe.realestatebiddingsystem.app.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public class InternalServerErrorException extends RuntimeException {
public InternalServerErrorException(String message) {
super(message);
}
public InternalServerErrorException(String message, Throwable cause) {
super(message, cause);
}
}
|
[
"george_it@abv.bg"
] |
george_it@abv.bg
|
f7e69ba2aaf4fd715c1dd703cc46ea76b5fa1dec
|
d75267f8f2f8cbbfb7a1c1917c1ff267067dcdb7
|
/spring-boot-cache/src/main/java/com/lmy/SpringBootStudentCacheApplication.java
|
3598573f4a5263f0658acbe33466324fa8005550
|
[
"Apache-2.0"
] |
permissive
|
lgfy1984/springboot1-study
|
3c8d065dec19d9b79f995a05efd2e476cb6083fa
|
2b5ea879204afaf4f1eba080327af5f610f1b7c1
|
refs/heads/main
| 2023-06-17T06:42:23.953838
| 2021-07-19T11:54:19
| 2021-07-19T11:54:19
| 387,445,116
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 457
|
java
|
package com.lmy;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
@SpringBootApplication
// 开启缓存,需要显示的指定
@EnableCaching
public class SpringBootStudentCacheApplication {
public static void main(String[] args) {
SpringApplication.run(SpringBootStudentCacheApplication.class, args);
}
}
|
[
"lgfy1984@gmail.com"
] |
lgfy1984@gmail.com
|
fdc1452a9f2add5030874ce9a0a7a279e8c6afbf
|
35348f6624d46a1941ea7e286af37bb794bee5b7
|
/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/symbol/TraceReferenceOperations.java
|
7d924bd172cc1a0c63c6a44544ef07519e21b7e9
|
[
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-3.0-only",
"LicenseRef-scancode-public-domain",
"LGPL-2.1-only",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
StarCrossPortal/ghidracraft
|
7af6257c63a2bb7684e4c2ad763a6ada23297fa3
|
a960e81ff6144ec8834e187f5097dfcf64758e18
|
refs/heads/master
| 2023-08-23T20:17:26.250961
| 2021-10-22T00:53:49
| 2021-10-22T00:53:49
| 359,644,138
| 80
| 19
|
Apache-2.0
| 2021-10-20T03:59:55
| 2021-04-20T01:14:29
|
Java
|
UTF-8
|
Java
| false
| false
| 3,862
|
java
|
/* ###
* IP: GHIDRA
*
* 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 ghidra.trace.model.symbol;
import java.util.Collection;
import com.google.common.collect.Range;
import ghidra.program.model.address.*;
import ghidra.program.model.lang.Register;
import ghidra.program.model.symbol.*;
public interface TraceReferenceOperations {
TraceReference addReference(TraceReference reference);
TraceReference addReference(Range<Long> lifespan, Reference reference);
TraceReference addMemoryReference(Range<Long> lifespan, Address fromAddress, Address toAddress,
RefType refType, SourceType source, int operandIndex);
TraceOffsetReference addOffsetReference(Range<Long> lifespan, Address fromAddress,
Address toAddress, long offset, RefType refType, SourceType source, int operandIndex);
TraceShiftedReference addShiftedReference(Range<Long> lifespan, Address fromAddress,
Address toAddress, int shift, RefType refType, SourceType source, int operandIndex);
TraceReference addRegisterReference(Range<Long> lifespan, Address fromAddress,
Register toRegister, RefType refType, SourceType source, int operandIndex);
TraceReference addStackReference(Range<Long> lifespan, Address fromAddress, int toStackOffset,
RefType refType, SourceType source, int operandIndex);
TraceReference getReference(long snap, Address fromAddress, Address toAddress,
int operandIndex);
Collection<? extends TraceReference> getReferencesFrom(long snap, Address fromAddress);
Collection<? extends TraceReference> getReferencesFrom(long snap, Address fromAddress,
int operandIndex);
/**
* TODO: Document me
*
* This returns all references from addresses within the given range, regardless of operand
* index.
*
* @param span
* @param range
* @return
*/
Collection<? extends TraceReference> getReferencesFromRange(Range<Long> span,
AddressRange range);
TraceReference getPrimaryReferenceFrom(long snap, Address fromAddress, int operandIndex);
Collection<? extends TraceReference> getFlowReferencesFrom(long snap, Address fromAddress);
void clearReferencesFrom(Range<Long> span, AddressRange range);
Collection<? extends TraceReference> getReferencesTo(long snap, Address toAddress);
/**
* TODO: Document me
*
* This returns all references to addresses within the given range, regardless of operand index.
*
* @param span
* @param range
* @return
*/
Collection<? extends TraceReference> getReferencesToRange(Range<Long> span, AddressRange range);
// TODO: Support Variable references
default boolean hasReferencesFrom(long snap, Address fromAddress) {
return !getReferencesFrom(snap, fromAddress).isEmpty();
}
default boolean hasReferencesFrom(long snap, Address fromAddress, int operandIndex) {
return !getReferencesFrom(snap, fromAddress, operandIndex).isEmpty();
}
default boolean hasFlowReferencesFrom(long snap, Address fromAddress) {
return !getFlowReferencesFrom(snap, fromAddress).isEmpty();
}
default boolean hasReferencesTo(long snap, Address toAddress) {
return !getReferencesTo(snap, toAddress).isEmpty();
}
AddressSetView getReferenceSources(Range<Long> span);
AddressSetView getReferenceDestinations(Range<Long> span);
int getReferenceCountFrom(long snap, Address fromAddress);
int getReferenceCountTo(long snap, Address toAddress);
}
|
[
"46821332+nsadeveloper789@users.noreply.github.com"
] |
46821332+nsadeveloper789@users.noreply.github.com
|
c5de8d9ac800964f35a514b499f31b5146a8192d
|
96edface7807eff0e6e1cb75b44f8ecea468a66a
|
/src/CodingTest/QuickSort.java
|
758aed35749c60f71d5b735d9f047d1eb832936c
|
[] |
no_license
|
rheehot/preparation-for-coding-test
|
8378826ab28dd5d55d324e62e4a8180a267058fd
|
00a637ef60fcf049f2ae6e1f6ff5780b2ebf5ba2
|
refs/heads/master
| 2023-01-05T00:04:15.753781
| 2020-11-07T16:10:05
| 2020-11-07T16:10:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,059
|
java
|
package CodingTest;
public class QuickSort {
static void quick(int[] data,int start,int end){
if (start >= end) {
return;
}
int pivot = start;
int left,right;
int temp;
left=start+1;
right=end;
while(left<=right){
while(data[pivot]>=data[left]){
left++;
}
while(data[pivot]<=data[right] && right>start){
right--;
}
if(left<right){
temp = data[left];
data[left]=data[right];
data[right]=temp;
}else{
temp = data[pivot];
data[pivot]=data[right];
data[right]=temp;
}
}
quick(data,start,right-1);
quick(data,right+1,end);
}
public static void main(String args[]){
int[] data = {3,4,21,112,53,6,7,};
quick(data,0,6);
for(int i:data){
System.out.println(i);
}
}
}
|
[
"gudwnsrh@gmail.com"
] |
gudwnsrh@gmail.com
|
969fd3e4c7a429f0e48c5ab7bd03f85a3a11aba1
|
b7dca070e2cfb0e487854a339a02df59a231d1e8
|
/src/com/basepatterns/creation/factory/CppDeveloperFactory.java
|
f2da2c4b5d662ed94ca4d92e7a265e1fb21d1fcd
|
[] |
no_license
|
h5dde45/BasePatterns
|
88d971366cdc16613f096bfc3b0112e37a8e41fc
|
ea2a7ac7047f5caa2ec2431773b74bf79d0f2a20
|
refs/heads/master
| 2021-01-01T17:50:31.383585
| 2017-07-25T15:04:54
| 2017-07-25T15:04:54
| 98,173,344
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 205
|
java
|
package com.basepatterns.creation.factory;
public class CppDeveloperFactory implements DeveloperFactory{
@Override
public Developer createDeveloper() {
return new CppDeveloper();
}
}
|
[
"tmvf@yandex.ru"
] |
tmvf@yandex.ru
|
fb31aedba8459fcd1960c71e37f9d7f66c066c1a
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-12798-22-4-FEMO-WeightedSum:TestLen:CallDiversity/org/xwiki/rendering/internal/macro/velocity/VelocityMacro_ESTest.java
|
195e01764929581f66f846010d07732d29aa19d1
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 576
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sat Apr 04 18:49:09 UTC 2020
*/
package org.xwiki.rendering.internal.macro.velocity;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class VelocityMacro_ESTest extends VelocityMacro_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
517ce73542b92e399ebe22a88f7e6e375530b0f6
|
550e4daf2504520540d9bf36f02daad8a8825c4d
|
/src/main/resources/archetype-resources/__rootArtifactId__-biz/src/test/java/biz/AppTest.java
|
601c2a4abfca1c352a3d13c4d39e34fec4a8c33f
|
[] |
no_license
|
kangyonggan/codegen
|
18a2fe004d2f28874d90ad94512eaf54f8dfe060
|
31d5067a3edcb59c8cd8e9657b5c46452a7057cd
|
refs/heads/master
| 2021-07-04T10:36:20.410980
| 2017-09-27T07:33:14
| 2017-09-27T07:33:14
| 104,986,758
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 355
|
java
|
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.biz;
import lombok.extern.log4j.Log4j2;
import org.junit.Test;
/**
* @author kangyonggan
* @since 4/11/17
*/
@Log4j2
public class AppTest extends AbstractServiceTest {
@Test
public void testApp() {
log.info("success");
}
}
|
[
"kangyonggan@gmail.com"
] |
kangyonggan@gmail.com
|
4d550c51f22ecbacd405eb5bf8b64de892bf94e6
|
e88c447f688625c66ae2e57f749c1db58d2c01af
|
/modules/bluima_utils/src/test/java/ch/epfl/bbp/uima/ae/KeepLargestAnnotationAnnotatorTest.java
|
4f1533c0804c760e3bfa2b51edebff127fa727fd
|
[
"Apache-2.0"
] |
permissive
|
BioinformaticsArchive/bluima
|
c5ebc4e2c40715b95b2fd8df97b6a62c23d43702
|
ba344468eb54c446f36cb5dda9f6ade02e82db2b
|
refs/heads/master
| 2021-01-15T19:39:53.725300
| 2015-01-30T09:20:45
| 2015-01-30T09:20:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,333
|
java
|
package ch.epfl.bbp.uima.ae;
import static ch.epfl.bbp.uima.BlueCasUtil.asList;
import static ch.epfl.bbp.uima.BlueUima.PARAM_ANNOTATION_CLASS;
import static ch.epfl.bbp.uima.testutils.UimaTests.*;
import static org.apache.uima.fit.factory.AnalysisEngineFactory.createEngine;
import static org.apache.uima.fit.pipeline.SimplePipeline.runPipeline;
import static org.apache.uima.fit.util.JCasUtil.select;
import static org.junit.Assert.assertEquals;
import org.apache.uima.jcas.JCas;
import org.junit.Test;
import ch.epfl.bbp.uima.types.BrainRegion;
public class KeepLargestAnnotationAnnotatorTest {
@Test
public void test() throws Exception {
JCas jCas = getTestCas("bla cortex bla brain bla. bli bli brain bli bli");
new BrainRegion(jCas, 4, 10).addToIndexes();
new BrainRegion(jCas, 15, 20).addToIndexes();
new BrainRegion(jCas, 34, 39).addToIndexes();
runPipeline(
jCas,
createEngine(KeepLargestAnnotationAnnotator.class,
PARAM_ANNOTATION_CLASS, BrainRegion.class.getName()));
assertEquals("no overlap, keeps all annots", 3,
asList(select(jCas, BrainRegion.class)).size());
// first annotation is covering other 2.
jCas = getTestCas("bla cortex bla brain bla. bli bli brain bli bli");
new BrainRegion(jCas, 4, 10).addToIndexes();
new BrainRegion(jCas, 5, 10).addToIndexes();
new BrainRegion(jCas, 6, 9).addToIndexes();
runPipeline(
jCas,
createEngine(KeepLargestAnnotationAnnotator.class,
PARAM_ANNOTATION_CLASS, BrainRegion.class.getName()));
assertEquals("first annotation is covering other 2", 1,
asList(select(jCas, BrainRegion.class)).size());
// overlap
jCas = getTestCas("bla cortex bla brain bla. bli bli brain bli bli");
new BrainRegion(jCas, 4, 10).addToIndexes();
new BrainRegion(jCas, 5, 11).addToIndexes();
runPipeline(
jCas,
createEngine(KeepLargestAnnotationAnnotator.class,
PARAM_ANNOTATION_CLASS, BrainRegion.class.getName()));
assertEquals("overlap, keeps all annots", 2,
asList(select(jCas, BrainRegion.class)).size());
}
}
|
[
"renaud@apache.org"
] |
renaud@apache.org
|
1e079a54fb6f342e5ef9a1ba69f1c4d9d252a807
|
88e063c44d6d4be4e3d370f6071a3cda5bbc0a0c
|
/ui/src/main/java/com/intertalk/ui/nestedScroll/QMUIContinuousNestedTopRecyclerView.java
|
dc0591d17a7e38876799c870d413f7506f7c555f
|
[
"Apache-2.0"
] |
permissive
|
InterTalk/InterTalk_Library
|
e87e9154aee3aaa1b74dbe193240e061e57609e2
|
a6a93c4526c51cbc7d36b687db13847ffabd0a0d
|
refs/heads/master
| 2022-06-25T12:50:36.191625
| 2020-05-07T10:47:55
| 2020-05-07T10:47:55
| 226,036,511
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,025
|
java
|
/*
* Tencent is pleased to support the open source community by making QMUI_Android available.
*
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://opensource.org/licenses/MIT
*
* 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.intertalk.ui.nestedScroll;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.view.ViewCompat;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
public class QMUIContinuousNestedTopRecyclerView extends RecyclerView implements IQMUIContinuousNestedTopView {
public static final String KEY_SCROLL_INFO_POSITION = "@qmui_scroll_info_top_rv_pos";
public static final String KEY_SCROLL_INFO_OFFSET = "@qmui_scroll_info_top_rv_offset";
private OnScrollNotifier mScrollNotifier;
private final int[] mScrollConsumed = new int[2];
public QMUIContinuousNestedTopRecyclerView(@NonNull Context context) {
this(context, null);
init();
}
public QMUIContinuousNestedTopRecyclerView(@NonNull Context context, @Nullable AttributeSet attrs) {
this(context, attrs, 0);
init();
}
public QMUIContinuousNestedTopRecyclerView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
init();
}
private void init(){
setVerticalScrollBarEnabled(false);
}
@Override
public int consumeScroll(int dyUnconsumed) {
if (dyUnconsumed == Integer.MIN_VALUE) {
scrollToPosition(0);
return Integer.MIN_VALUE;
} else if (dyUnconsumed == Integer.MAX_VALUE) {
Adapter adapter = getAdapter();
if (adapter != null) {
scrollToPosition(adapter.getItemCount() - 1);
}
return Integer.MAX_VALUE;
}
boolean reStartNestedScroll = false;
if (!hasNestedScrollingParent(ViewCompat.TYPE_TOUCH)) {
// the scrollBy use ViewCompat.TYPE_TOUCH to handle nested scroll...
reStartNestedScroll = true;
startNestedScroll(ViewCompat.SCROLL_AXIS_VERTICAL, ViewCompat.TYPE_TOUCH);
// and scrollBy only call dispatchNestedScroll, not call dispatchNestedPreScroll
mScrollConsumed[0] = 0;
mScrollConsumed[1] = 0;
dispatchNestedPreScroll(0, dyUnconsumed, mScrollConsumed, null, ViewCompat.TYPE_TOUCH);
dyUnconsumed -= mScrollConsumed[1];
}
scrollBy(0, dyUnconsumed);
if (reStartNestedScroll) {
stopNestedScroll(ViewCompat.TYPE_TOUCH);
}
return 0;
}
@Override
public int getCurrentScroll() {
return computeVerticalScrollOffset();
}
@Override
public int getScrollOffsetRange() {
return Math.max(0, computeVerticalScrollRange() - getHeight());
}
@Override
public void injectScrollNotifier(OnScrollNotifier notifier) {
mScrollNotifier = notifier;
}
@Override
public void onScrolled(int dx, int dy) {
super.onScrolled(dx, dy);
if(mScrollNotifier != null){
mScrollNotifier.notify(getCurrentScroll(), getScrollOffsetRange());
}
}
@Override
public void saveScrollInfo(@NonNull Bundle bundle) {
LayoutManager layoutManager = getLayoutManager();
if (layoutManager instanceof LinearLayoutManager) {
LinearLayoutManager lm = (LinearLayoutManager) layoutManager;
int pos = lm.findFirstVisibleItemPosition();
View firstView = lm.findViewByPosition(pos);
int offset = firstView == null ? 0 : firstView.getTop();
bundle.putInt(KEY_SCROLL_INFO_POSITION, pos);
bundle.putInt(KEY_SCROLL_INFO_OFFSET, offset);
}
}
@Override
public void restoreScrollInfo(@NonNull Bundle bundle) {
LayoutManager layoutManager = getLayoutManager();
if (layoutManager instanceof LinearLayoutManager) {
int pos = bundle.getInt(KEY_SCROLL_INFO_POSITION, 0);
int offset = bundle.getInt(KEY_SCROLL_INFO_OFFSET, 0);
((LinearLayoutManager) layoutManager).scrollToPositionWithOffset(pos, offset);
if(mScrollNotifier != null){
mScrollNotifier.notify(getCurrentScroll(), getScrollOffsetRange());
}
}
}
}
|
[
"l"
] |
l
|
6994d1ecd29fb69cd865952e79db75bc4c7fad47
|
a2df6764e9f4350e0d9184efadb6c92c40d40212
|
/aliyun-java-sdk-sofa/src/main/java/com/aliyuncs/sofa/model/v20190815/CreateLinkeantcodeAntcodeLsifreferencesResponse.java
|
40b62bcd7d8981a0796690f6fee01dfcc3786777
|
[
"Apache-2.0"
] |
permissive
|
warriorsZXX/aliyun-openapi-java-sdk
|
567840c4bdd438d43be6bd21edde86585cd6274a
|
f8fd2b81a5f2cd46b1e31974ff6a7afed111a245
|
refs/heads/master
| 2022-12-06T15:45:20.418475
| 2020-08-20T08:37:31
| 2020-08-26T06:17:49
| 290,450,773
| 1
| 0
|
NOASSERTION
| 2020-08-26T09:15:48
| 2020-08-26T09:15:47
| null |
UTF-8
|
Java
| false
| false
| 3,018
|
java
|
/*
* 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.aliyuncs.sofa.model.v20190815;
import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.sofa.transform.v20190815.CreateLinkeantcodeAntcodeLsifreferencesResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CreateLinkeantcodeAntcodeLsifreferencesResponse extends AcsResponse {
private String requestId;
private String resultCode;
private String resultMessage;
private Long fileCount;
private Long refCount;
private Long responseStatusCode;
private List<RefListItem> refList;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getResultCode() {
return this.resultCode;
}
public void setResultCode(String resultCode) {
this.resultCode = resultCode;
}
public String getResultMessage() {
return this.resultMessage;
}
public void setResultMessage(String resultMessage) {
this.resultMessage = resultMessage;
}
public Long getFileCount() {
return this.fileCount;
}
public void setFileCount(Long fileCount) {
this.fileCount = fileCount;
}
public Long getRefCount() {
return this.refCount;
}
public void setRefCount(Long refCount) {
this.refCount = refCount;
}
public Long getResponseStatusCode() {
return this.responseStatusCode;
}
public void setResponseStatusCode(Long responseStatusCode) {
this.responseStatusCode = responseStatusCode;
}
public List<RefListItem> getRefList() {
return this.refList;
}
public void setRefList(List<RefListItem> refList) {
this.refList = refList;
}
public static class RefListItem {
private String uri;
private List<String> referenceChunks;
public String getUri() {
return this.uri;
}
public void setUri(String uri) {
this.uri = uri;
}
public List<String> getReferenceChunks() {
return this.referenceChunks;
}
public void setReferenceChunks(List<String> referenceChunks) {
this.referenceChunks = referenceChunks;
}
}
@Override
public CreateLinkeantcodeAntcodeLsifreferencesResponse getInstance(UnmarshallerContext context) {
return CreateLinkeantcodeAntcodeLsifreferencesResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
46c1d09ab293065938b2c69da38a1f825cbd3d1d
|
19f7e40c448029530d191a262e5215571382bf9f
|
/decompiled/instagram/sources/p000X/CBX.java
|
f16d731b7c52611d4745d1b097a4588215e2e46c
|
[] |
no_license
|
stanvanrooy/decompiled-instagram
|
c1fb553c52e98fd82784a3a8a17abab43b0f52eb
|
3091a40af7accf6c0a80b9dda608471d503c4d78
|
refs/heads/master
| 2022-12-07T22:31:43.155086
| 2020-08-26T03:42:04
| 2020-08-26T03:42:04
| 283,347,288
| 18
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 421
|
java
|
package p000X;
/* renamed from: X.CBX */
public final class CBX implements Runnable {
public final /* synthetic */ CC4 A00;
public final /* synthetic */ C16180oA A01;
public CBX(CC4 cc4, C16180oA r2) {
this.A00 = cc4;
this.A01 = r2;
}
public final void run() {
this.A01.A00.edit().putBoolean("has_seen_hec_appeal_tooltip", true).apply();
this.A00.A0G.A05();
}
}
|
[
"stan@rooy.works"
] |
stan@rooy.works
|
f1b691bc6eb20232ef09d01cb8c7fbdce7d8cff1
|
b8d3d408f7e1668ae7d59a3c9ca8f1aa5f67c81c
|
/core/src/main/java/io/atomix/core/set/impl/DefaultDistributedNavigableSetService.java
|
ed4c7ad48977f400852cad95e2d950aefa362f72
|
[
"Apache-2.0"
] |
permissive
|
zouyanjian/atomix
|
dc93a14c74fc07f624f4adb6501f5b472e9b879c
|
8dfe4a075707a5e5a8555d1afbd9f6231cc42b9b
|
refs/heads/master
| 2022-04-25T23:27:31.104984
| 2022-04-25T07:23:55
| 2022-04-25T07:23:55
| 110,864,568
| 0
| 0
|
Apache-2.0
| 2022-04-25T07:23:56
| 2017-11-15T17:26:14
|
Java
|
UTF-8
|
Java
| false
| false
| 8,125
|
java
|
/*
* Copyright 2018-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.atomix.core.set.impl;
import java.util.Iterator;
import java.util.NavigableSet;
import java.util.concurrent.ConcurrentSkipListSet;
import java.util.function.Consumer;
import java.util.function.Function;
import io.atomix.core.iterator.impl.IteratorBatch;
import io.atomix.core.set.DistributedNavigableSetType;
import io.atomix.primitive.session.SessionId;
import io.atomix.utils.serializer.Namespace;
import io.atomix.utils.serializer.Serializer;
/**
* Default distributed tree set service.
*/
public class DefaultDistributedNavigableSetService<E extends Comparable<E>> extends AbstractDistributedSetService<NavigableSet<E>, E> implements DistributedTreeSetService<E> {
private final Serializer serializer;
public DefaultDistributedNavigableSetService() {
super(DistributedNavigableSetType.instance(), new ConcurrentSkipListSet<>());
this.serializer = Serializer.using(Namespace.builder()
.register(DistributedNavigableSetType.instance().namespace())
.register(SessionId.class)
.register(IteratorContext.class)
.register(SubSetIteratorContext.class)
.register(DescendingIteratorContext.class)
.register(DescendingSubSetIteratorContext.class)
.build());
}
@Override
public Serializer serializer() {
return serializer;
}
@Override
public E lower(E e) {
return set().lower(e);
}
@Override
public E floor(E e) {
return set().floor(e);
}
@Override
public E ceiling(E e) {
return set().ceiling(e);
}
@Override
public E higher(E e) {
return set().higher(e);
}
@Override
public E pollFirst() {
return set().pollFirst();
}
@Override
public E pollLast() {
return set().pollLast();
}
@Override
public E first() {
return !set().isEmpty() ? set().first() : null;
}
@Override
public E last() {
return !set().isEmpty() ? set().last() : null;
}
@Override
public E subSetFirst(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
return subSetApply(set -> !set.isEmpty() ? set.first() : null, fromElement, fromInclusive, toElement, toInclusive);
}
@Override
public E subSetLast(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
return subSetApply(set -> !set.isEmpty() ? set.last() : null, fromElement, fromInclusive, toElement, toInclusive);
}
@Override
public E subSetLower(E e, E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
return subSetApply(set -> set.lower(e), fromElement, fromInclusive, toElement, toInclusive);
}
@Override
public E subSetFloor(E e, E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
return subSetApply(set -> set.floor(e), fromElement, fromInclusive, toElement, toInclusive);
}
@Override
public E subSetCeiling(E e, E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
return subSetApply(set -> set.ceiling(e), fromElement, fromInclusive, toElement, toInclusive);
}
@Override
public E subSetHigher(E e, E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
return subSetApply(set -> set.higher(e), fromElement, fromInclusive, toElement, toInclusive);
}
@Override
public E subSetPollFirst(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
return subSetApply(set -> set.pollFirst(), fromElement, fromInclusive, toElement, toInclusive);
}
@Override
public E subSetPollLast(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
return subSetApply(set -> set.pollLast(), fromElement, fromInclusive, toElement, toInclusive);
}
@Override
public int subSetSize(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
return subSetApply(set -> set.size(), fromElement, fromInclusive, toElement, toInclusive);
}
@Override
public void subSetClear(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
subSetAccept(set -> set.clear(), fromElement, fromInclusive, toElement, toInclusive);
}
@Override
public IteratorBatch<E> subSetIterate(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
return iterate(sessionId -> new SubSetIteratorContext(sessionId, fromElement, fromInclusive, toElement, toInclusive));
}
@Override
public IteratorBatch<E> subSetIterateDescending(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
return iterate(sessionId -> new DescendingSubSetIteratorContext(sessionId, fromElement, fromInclusive, toElement, toInclusive));
}
@Override
public IteratorBatch<E> iterateDescending() {
return iterate(DescendingIteratorContext::new);
}
private void subSetAccept(Consumer<NavigableSet<E>> function, E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
if (fromElement != null && toElement != null) {
function.accept(set().subSet(fromElement, fromInclusive, toElement, toInclusive));
} else if (fromElement != null) {
function.accept(set().tailSet(fromElement, fromInclusive));
} else if (toElement != null) {
function.accept(set().headSet(toElement, toInclusive));
} else {
function.accept(set());
}
}
private <T> T subSetApply(Function<NavigableSet<E>, T> function, E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
if (fromElement != null && toElement != null) {
return function.apply(set().subSet(fromElement, fromInclusive, toElement, toInclusive));
} else if (fromElement != null) {
return function.apply(set().tailSet(fromElement, fromInclusive));
} else if (toElement != null) {
return function.apply(set().headSet(toElement, toInclusive));
} else {
return function.apply(set());
}
}
protected class DescendingIteratorContext extends AbstractIteratorContext {
public DescendingIteratorContext(long sessionId) {
super(sessionId);
}
@Override
protected Iterator<E> create() {
return collection().descendingIterator();
}
}
protected class SubSetIteratorContext extends AbstractIteratorContext {
private final E fromElement;
private final boolean fromInclusive;
private final E toElement;
private final boolean toInclusive;
SubSetIteratorContext(long sessionId, E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
super(sessionId);
this.fromElement = fromElement;
this.fromInclusive = fromInclusive;
this.toElement = toElement;
this.toInclusive = toInclusive;
}
@Override
protected Iterator<E> create() {
return subSetApply(set -> set.iterator(), fromElement, fromInclusive, toElement, toInclusive);
}
}
protected class DescendingSubSetIteratorContext extends AbstractIteratorContext {
private final E fromElement;
private final boolean fromInclusive;
private final E toElement;
private final boolean toInclusive;
DescendingSubSetIteratorContext(long sessionId, E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
super(sessionId);
this.fromElement = fromElement;
this.fromInclusive = fromInclusive;
this.toElement = toElement;
this.toInclusive = toInclusive;
}
@Override
protected Iterator<E> create() {
return subSetApply(set -> set.descendingIterator(), fromElement, fromInclusive, toElement, toInclusive);
}
}
}
|
[
"jordan.halterman@gmail.com"
] |
jordan.halterman@gmail.com
|
c9ebb61e678f78d2b45f2d402189bcdd6b571ce4
|
8ac8499fe89c9134127b7dfade1897f43cc073e2
|
/gene-name-mapping-ae/src/main/java/de/julielab/jules/ae/genemapping/index/SynonymIndexFieldNames.java
|
bf6c6daed0dbe261a32e89eaa20ecdac13058e99
|
[
"BSD-2-Clause"
] |
permissive
|
JULIELab/gene-name-mapping
|
feed19b5c0b185218c3c2e4185d2ba82a15faee9
|
105f62fbe2fa82e131e45c25040f96ebcbe93bd1
|
refs/heads/master
| 2023-04-18T22:54:32.669218
| 2022-05-25T15:44:15
| 2022-05-25T15:44:15
| 267,571,982
| 0
| 0
|
BSD-2-Clause
| 2021-04-27T08:33:07
| 2020-05-28T11:30:01
|
Java
|
UTF-8
|
Java
| false
| false
| 1,488
|
java
|
package de.julielab.jules.ae.genemapping.index;
public class SynonymIndexFieldNames {
public static final String ID_FIELD = "entry_id";
// For the old BC2 evaluation indexes
public static final String ID_FIELD_LEGACY = "uniprot_id";
// public static final String SYN_FIELD = "synonym";
/**
* The index field name for the normalized gene / protein name.
*/
public static final String LOOKUP_SYN_FIELD = "indexed_syn";
/**
* The index field name for the original, unnormalized (however, lower-cased)
* gene / protein name.
*/
public static final String ORIGINAL_NAME = "original_name";
/**
* The index field name for the normalized variant of the original gene /
* protein name.
*/
public static final String VARIANT_NAME = "variant_name";
/**
* The index field name for the normalized and then token-wise stemmed gene /
* protein name.
*/
public static final String STEMMED_NORMALIZED_NAME = "stemmed_normalized_name";
public static final String TAX_ID_FIELD = "tax_id";
/**
* A numerical priority where 1 is the highest priority. The highest priority is
* given to official symbols, preferred names etc.
*/
public static final String PRIORITY = "priority";
/**
* A boolean-numerical (0 or 1) value to indicate whether the value was
* recognized as being unspecific or otherwise non-helpful. For experimental
* purposes, these items are kept in the index with this flag set to 1.
*/
public static final String FILTERED = "filtered";
}
|
[
"chew@gmx.net"
] |
chew@gmx.net
|
df581bd698d207846601ce026b44c4f31a026712
|
a515f913dc65eaa19c7fab34b368e4a645cd52b5
|
/jenetics/src/main/java/io/jenetics/BoundedChromosome.java
|
c58e422150d9389b8f74fec19501c8934b0a422b
|
[
"Apache-2.0"
] |
permissive
|
selfDiscipline/jenetics
|
22181d4fc7be82d9232c44688d6687720977a17e
|
a6ab288c4cf294aff18f9cf9ade108cc55fd0103
|
refs/heads/master
| 2021-04-19T22:56:22.434624
| 2020-03-10T18:13:24
| 2020-03-10T18:13:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,200
|
java
|
/*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ Franz Wilhelmstötter
*
* 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.
*
* Author:
* Franz Wilhelmstötter (franz.wilhelmstoetter@gmail.com)
*/
package io.jenetics;
/**
* Chromosome interface for {@code BoundedGene}s.
*
* @implSpec
* Implementations of the {@code BoundedChromosome} interface must be
* <em>immutable</em> and guarantee an efficient random access ({@code O(1)}) to
* the genes. A {@code Chromosome} must contains at least one {@code Gene}.
*
* @see BoundedGene
*
* @author <a href="mailto:franz.wilhelmstoetter@gmail.com">Franz Wilhelmstötter</a>
* @version 5.2
* @since 1.6
*/
public interface BoundedChromosome<
A extends Comparable<? super A>,
G extends BoundedGene<A, G>
>
extends Chromosome<G>
{
/**
* Return the minimum value of this {@code BoundedChromosome}.
*
* @return the minimum value of this {@code BoundedChromosome}.
*/
default A min() {
return gene().min();
}
/**
* Return the minimum value of this {@code BoundedChromosome}.
*
* @return the minimum value of this {@code BoundedChromosome}.
* @deprecated Use {@link #min()} instead
*/
@Deprecated
default A getMin() {
return min();
}
/**
* Return the maximum value of this {@code BoundedChromosome}.
*
* @return the maximum value of this {@code BoundedChromosome}.
*/
default A max() {
return gene().max();
}
/**
* Return the maximum value of this {@code BoundedChromosome}.
*
* @return the maximum value of this {@code BoundedChromosome}.
* @deprecated Use {@link #max()} instead
*/
@Deprecated
default A getMax() {
return max();
}
}
|
[
"franz.wilhelmstoetter@gmail.com"
] |
franz.wilhelmstoetter@gmail.com
|
1163a0770bd2957e8c6824633df7cf13b633e356
|
16d88eba1992531099d34ee3abf000fc883b1580
|
/spring4book/chapter005/src/main/java/adviceBefore210/SimpleBeforeAdvice.java
|
6c8362bd9b0733782898d948f66246e3e76c19ff
|
[
"Apache-2.0"
] |
permissive
|
misterflud/aoleynikov
|
14b5cfab275da7ca713ee24241eaa1e36f2396ef
|
c90891629b6868c8f0c7c19edfb627c29228bd67
|
refs/heads/master
| 2021-01-11T23:55:24.395578
| 2018-12-24T18:00:28
| 2018-12-24T18:00:28
| 78,645,246
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 788
|
java
|
package adviceBefore210;
import org.springframework.aop.MethodBeforeAdvice;
import org.springframework.aop.framework.ProxyFactory;
import java.lang.reflect.Method;
/**
* Created by AOleynikov on 10.09.2018.
*/
public class SimpleBeforeAdvice implements MethodBeforeAdvice {
public static void main(String[] args) {
MessageWriter target = new MessageWriter();
ProxyFactory pf = new ProxyFactory();
pf.addAdvice(new SimpleBeforeAdvice());
pf.setTarget(target);
MessageWriter proxy = (MessageWriter) pf.getProxy();
proxy.writeMessage();
}
@Override
public void before(Method method, Object[] objects, Object o) throws Throwable {
System.out.println(String.format("Before method: %s", method.getName()));
}
}
|
[
"yurolejniko@yandex.ru"
] |
yurolejniko@yandex.ru
|
ff151c9aceeeb6dde23f3d9ea7d41b0eae205c09
|
44e899f92df3ace36d8a626a56646d826886c8aa
|
/src/test/java/com/gok/ticketingbatch/service/dto/KsrsacAddressDTOTest.java
|
c54ad3853155e6c5a0138ad776fd7d008bd5e263
|
[] |
no_license
|
ArkapravoNath/Ticketing-batch
|
4ce0558c78269b63f6aa18483ac1c56905093ccc
|
fe644f18ee971c0975f7daee212ce787516609e9
|
refs/heads/master
| 2022-12-16T18:31:00.067937
| 2020-09-01T10:26:39
| 2020-09-01T10:26:39
| 291,965,723
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 947
|
java
|
package com.gok.ticketingbatch.service.dto;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import com.gok.ticketingbatch.web.rest.TestUtil;
public class KsrsacAddressDTOTest {
@Test
public void dtoEqualsVerifier() throws Exception {
TestUtil.equalsVerifier(KsrsacAddressDTO.class);
KsrsacAddressDTO ksrsacAddressDTO1 = new KsrsacAddressDTO();
ksrsacAddressDTO1.setId(1L);
KsrsacAddressDTO ksrsacAddressDTO2 = new KsrsacAddressDTO();
assertThat(ksrsacAddressDTO1).isNotEqualTo(ksrsacAddressDTO2);
ksrsacAddressDTO2.setId(ksrsacAddressDTO1.getId());
assertThat(ksrsacAddressDTO1).isEqualTo(ksrsacAddressDTO2);
ksrsacAddressDTO2.setId(2L);
assertThat(ksrsacAddressDTO1).isNotEqualTo(ksrsacAddressDTO2);
ksrsacAddressDTO1.setId(null);
assertThat(ksrsacAddressDTO1).isNotEqualTo(ksrsacAddressDTO2);
}
}
|
[
"nrko96@gmail.com"
] |
nrko96@gmail.com
|
1dd18899696008267c08b3ba5579ec501efce555
|
70d80759c7fe6158fc9f7aa41f335dd91e9b46e7
|
/SimpleGame/ref/flappy/com/google/android/gms/common/SignInButton.java
|
d0bd68dd8fcab0ec354d4b3290f942b652ef9113
|
[] |
no_license
|
dazziest/word
|
fe1bc157f0f2cfd57312e5c9099cccd4f0398499
|
54d30f21c921525985a00b86b0fc933421d82ac0
|
refs/heads/master
| 2021-01-01T20:16:52.035457
| 2014-03-12T06:48:53
| 2014-03-12T06:48:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,935
|
java
|
package com.google.android.gms.common;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.FrameLayout;
import com.google.android.gms.b.k;
import com.google.android.gms.internal.do;
import com.google.android.gms.internal.dp;
import com.google.android.gms.internal.u;
public final class SignInButton
extends FrameLayout
implements View.OnClickListener
{
private int a;
private int b;
private View c;
private View.OnClickListener d = null;
public SignInButton(Context paramContext, AttributeSet paramAttributeSet)
{
this(paramContext, paramAttributeSet, 0);
}
public SignInButton(Context paramContext, AttributeSet paramAttributeSet, int paramInt)
{
super(paramContext, paramAttributeSet, paramInt);
a(0, 0);
}
private static Button a(Context paramContext, int paramInt1, int paramInt2)
{
u localu = new u(paramContext);
localu.a(paramContext.getResources(), paramInt1, paramInt2);
return localu;
}
private void a(Context paramContext)
{
if (this.c != null) {
removeView(this.c);
}
try
{
this.c = dp.a(paramContext, this.a, this.b);
addView(this.c);
this.c.setEnabled(isEnabled());
this.c.setOnClickListener(this);
return;
}
catch (k localk)
{
for (;;)
{
Log.w("SignInButton", "Sign in button not found, using placeholder instead");
this.c = a(paramContext, this.a, this.b);
}
}
}
public void a(int paramInt1, int paramInt2)
{
boolean bool1 = true;
boolean bool2;
if ((paramInt1 >= 0) && (paramInt1 < 3))
{
bool2 = bool1;
do.a(bool2, "Unknown button size " + paramInt1);
if ((paramInt2 < 0) || (paramInt2 >= 2)) {
break label95;
}
}
for (;;)
{
do.a(bool1, "Unknown color scheme " + paramInt2);
this.a = paramInt1;
this.b = paramInt2;
a(getContext());
return;
bool2 = false;
break;
label95:
bool1 = false;
}
}
public void onClick(View paramView)
{
if ((this.d != null) && (paramView == this.c)) {
this.d.onClick(this);
}
}
public void setColorScheme(int paramInt)
{
a(this.a, paramInt);
}
public void setEnabled(boolean paramBoolean)
{
super.setEnabled(paramBoolean);
this.c.setEnabled(paramBoolean);
}
public void setOnClickListener(View.OnClickListener paramOnClickListener)
{
this.d = paramOnClickListener;
if (this.c != null) {
this.c.setOnClickListener(this);
}
}
public void setSize(int paramInt)
{
a(paramInt, this.b);
}
}
/* Location: P:\Side\classes-dex2jar.jar
* Qualified Name: com.google.android.gms.common.SignInButton
* JD-Core Version: 0.7.0.1
*/
|
[
"dazziest@gmail.com"
] |
dazziest@gmail.com
|
3ce02d67ff6556751eac60ae54214ffb2aef4348
|
167c6226bc77c5daaedab007dfdad4377f588ef4
|
/java/ql/test/stubs/javafx-web/javax/net/ssl/SSLSession.java
|
293ec637b63d6e7da9626aeae736403cf3966938
|
[
"MIT"
] |
permissive
|
github/codeql
|
1eebb449a34f774db9e881b52cb8f7a1b1a53612
|
d109637e2d7ab3b819812eb960c05cb31d9d2168
|
refs/heads/main
| 2023-08-20T11:32:39.162059
| 2023-08-18T14:33:32
| 2023-08-18T14:33:32
| 143,040,428
| 5,987
| 1,363
|
MIT
| 2023-09-14T19:36:50
| 2018-07-31T16:35:51
|
CodeQL
|
UTF-8
|
Java
| false
| false
| 991
|
java
|
// Generated automatically from javax.net.ssl.SSLSession for testing purposes
package javax.net.ssl;
import java.security.Principal;
import java.security.cert.Certificate;
import javax.net.ssl.SSLSessionContext;
import javax.security.cert.X509Certificate;
public interface SSLSession
{
Certificate[] getLocalCertificates();
Certificate[] getPeerCertificates();
Object getValue(String p0);
Principal getLocalPrincipal();
Principal getPeerPrincipal();
SSLSessionContext getSessionContext();
String getCipherSuite();
String getPeerHost();
String getProtocol();
String[] getValueNames();
boolean isValid();
byte[] getId();
default X509Certificate[] getPeerCertificateChain(){ return null; }
int getApplicationBufferSize();
int getPacketBufferSize();
int getPeerPort();
long getCreationTime();
long getLastAccessedTime();
void invalidate();
void putValue(String p0, Object p1);
void removeValue(String p0);
}
|
[
"kaeluka@github.com"
] |
kaeluka@github.com
|
39ed5d0d8598485a18fc10f14589254b63f160e0
|
3f169749adceb8a84803c561467e391ef381d7d0
|
/workspace/studySystem/src/view/objects/ServiceProxi.java
|
3b309af56d88e6913abefbab2e8fcec730f0b38f
|
[] |
no_license
|
Cryzas/FHDW2
|
969619012ad05f455d04dce0f3413f53cedd9351
|
8bc31d4072cc9ed7ddf86154cdf08f0f9a55454b
|
refs/heads/master
| 2021-01-23T05:25:00.249669
| 2017-10-11T06:24:17
| 2017-10-11T06:24:17
| 86,296,546
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,759
|
java
|
package view.objects;
import view.*;
import viewClient.*;
public abstract class ServiceProxi extends ViewProxi implements ServiceView{
public ServiceProxi(long objectId, long classId, ExceptionAndEventHandler connectionKey) {
super(objectId, classId, connectionKey);
}
public String getUsername()throws ModelException{
return ((Service)this.getTheObject()).getUsername();
}
public java.util.Vector<ServerView> getParentServer()throws ModelException{
return ((Service)this.getTheObject()).getParentServer();
}
public java.util.Vector<ErrorDisplayView> getErrors()throws ModelException{
return ((Service)this.getTheObject()).getErrors();
}
public void setErrors(java.util.Vector<ErrorDisplayView> newValue) throws ModelException {
((Service)this.getTheObject()).setErrors(newValue);
}
public ServiceConnection connectService(ConnectionMaster master, final ExceptionAndEventHandler handler) throws ModelException{
ServiceConnection result;
try {
result = (ServiceConnection) new ServiceConnection(master.getUrlString(), master.getHandler(), master.getReporter()).fork(master, this);
} catch (java.net.MalformedURLException e) {
throw new ModelException(e.getMessage(),0);
}
result.setHandler(handler);
ConnectionIndex.getTheConnectionIndex().setConnection(handler,result);
handler.setConnection(result);
handler.initializeConnection();
return result;
}
public javafx.scene.image.Image getImage(){
return super.getImage();
}
/* Start of protected part that is not overridden by persistence generator */
/* End of protected part that is not overridden by persistence generator */
}
|
[
"jensburczyk96@gmail.com"
] |
jensburczyk96@gmail.com
|
856b2c9eb040920aabe6dd78860791bda61bcaa0
|
bdf40c83fcf0fa3b0b6e72b8a79490ba156f9802
|
/smt-spring-security-jwt/src/main/java/shiver/me/timbers/spring/security/fields/Updater.java
|
dd201c57a56f5a9de8d82dbb6b3d370edefd682b
|
[
"Apache-2.0"
] |
permissive
|
shiver-me-timbers/smt-spring-security-parent
|
149d62a6572f2dbcac32aa09ef974baf477717b3
|
f1f08937c7dcdbef3e9bd1ae0769cc276972d76a
|
refs/heads/master
| 2020-12-25T19:39:17.523956
| 2016-07-22T23:35:38
| 2016-07-22T23:35:38
| 60,954,070
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 737
|
java
|
/*
* Copyright 2016 Karl Bennett
*
* 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 shiver.me.timbers.spring.security.fields;
/**
* @author Karl Bennett
*/
public interface Updater<T> {
T update(T object);
}
|
[
"karl.bennett.smt@gmail.com"
] |
karl.bennett.smt@gmail.com
|
36c26819e8afd6ad51ea62398b082ef6c61bf0ef
|
00ad2e61e469488ef34a8ab93d1a0c9e68e99caf
|
/yiranpay/yiranpay-member/src/main/java/com/yiranpay/member/enums/MemberContactFastQueryTypeEnum.java
|
c0d043ca0a500ff394d46575fc963cf512aa6204
|
[
"MIT"
] |
permissive
|
panda726548/yiranpay
|
13e77b620c76ef5778560ad2ef0833ae48555a4a
|
38523749bd2e00a003637f785289e21f6bf7e6dd
|
refs/heads/master
| 2023-07-11T05:48:54.645886
| 2023-07-02T11:38:48
| 2023-07-02T11:38:48
| 285,158,256
| 81
| 45
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,204
|
java
|
package com.yiranpay.member.enums;
/**
* <p>联系人信息快速查询关键字枚举</p>
*/
public enum MemberContactFastQueryTypeEnum {
DEFAULT(0, "默认"),
NAME(1, "快捷通账户名"),
IDENTITY(2, "快捷通账号"),
ACCOUNT_NAME(3,"银行账户开户名"),
ACCOUNT_NO(4, "银行账户账号"),
BANK_NAME(5,"开户银行名称"),
PINYIN(6,"账户名拼音");
/** 代码 */
private final Integer code;
/** 信息 */
private final String message;
MemberContactFastQueryTypeEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
/**
* 通过代码获取枚举项
* @param code
* @return
*/
public static MemberContactFastQueryTypeEnum getByCode(Integer code) {
if (code == null) {
return null;
}
for (MemberContactFastQueryTypeEnum lnt : MemberContactFastQueryTypeEnum.values()) {
if (lnt.getCode().equals(code)) {
return lnt;
}
}
return null;
}
public Integer getCode() {
return code;
}
public String getMessage() {
return message;
}
}
|
[
"498617606@qq.com"
] |
498617606@qq.com
|
eba0e418fcfe7cf46797ab64de774f7c7662c7b2
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XRENDERING-422-5-18-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/rendering/listener/chaining/AbstractChainingListener_ESTest.java
|
ca67ec211497399d4b081ae53ed33b03585c255c
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 592
|
java
|
/*
* This file was automatically generated by EvoSuite
* Wed Apr 08 18:42:30 UTC 2020
*/
package org.xwiki.rendering.listener.chaining;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class AbstractChainingListener_ESTest extends AbstractChainingListener_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
16ff859847f9c0416f98a20d81dffa5cf94e5a55
|
e89d45f9e6831afc054468cc7a6ec675867cd3d7
|
/src/main/java/com/microsoft/graph/models/extensions/EducationSynchronizationConnectionSettings.java
|
bacb5ae57d6ba6905119a1424e14185a0b2d47c4
|
[
"MIT"
] |
permissive
|
isabella232/msgraph-beta-sdk-java
|
67d3b9251317f04a465042d273fe533ef1ace13e
|
7d2b929d5c99c01ec1af1a251f4bf5876ca95ed8
|
refs/heads/dev
| 2023-03-12T05:44:24.349020
| 2020-11-19T15:51:17
| 2020-11-19T15:51:17
| 318,158,544
| 0
| 0
|
MIT
| 2021-02-23T20:48:09
| 2020-12-03T10:37:46
| null |
UTF-8
|
Java
| false
| false
| 2,395
|
java
|
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.models.extensions;
import com.microsoft.graph.serializer.ISerializer;
import com.microsoft.graph.serializer.IJsonBackedObject;
import com.microsoft.graph.serializer.AdditionalDataManager;
import java.util.EnumSet;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Education Synchronization Connection Settings.
*/
public class EducationSynchronizationConnectionSettings implements IJsonBackedObject {
@SerializedName("@odata.type")
@Expose
public String oDataType;
private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
@Override
public final AdditionalDataManager additionalDataManager() {
return additionalDataManager;
}
/**
* The Client Id.
*
*/
@SerializedName(value = "clientId", alternate = {"ClientId"})
@Expose
public String clientId;
/**
* The Client Secret.
*
*/
@SerializedName(value = "clientSecret", alternate = {"ClientSecret"})
@Expose
public String clientSecret;
/**
* The raw representation of this class
*/
private JsonObject rawObject;
/**
* The serializer
*/
private ISerializer serializer;
/**
* Gets the raw representation of this class
*
* @return the raw representation of this class
*/
public JsonObject getRawObject() {
return rawObject;
}
/**
* Gets serializer
*
* @return the serializer
*/
protected ISerializer getSerializer() {
return serializer;
}
/**
* Sets the raw JSON object
*
* @param serializer the serializer
* @param json the JSON object to set this object to
*/
public void setRawObject(final ISerializer serializer, final JsonObject json) {
this.serializer = serializer;
rawObject = json;
}
}
|
[
"GraphTooling@service.microsoft.com"
] |
GraphTooling@service.microsoft.com
|
ee74a2a881c0b72a69564f3bea358502c76d5397
|
ff27196ffddc9937a74215daa24da0af0e398a65
|
/services/publisher/server-impl/src/main/java/org/outerj/daisy/publisher/serverimpl/requestmodel/VariablesConfig.java
|
fa2124d7d3827e4f44bd1a7df04eef21a10feaee
|
[
"Apache-2.0"
] |
permissive
|
stevekaeser/daisycms
|
ac3a9cc7e6f2c0d46c8938f01eba63ea41569eaa
|
e772652c98742dbdb5268a9516a6ae210b9b4348
|
refs/heads/master
| 2023-03-08T10:14:43.600368
| 2022-03-16T16:42:29
| 2022-03-16T16:42:29
| 250,640,483
| 0
| 3
|
Apache-2.0
| 2023-02-22T00:15:26
| 2020-03-27T20:32:37
|
Java
|
UTF-8
|
Java
| false
| false
| 1,741
|
java
|
/*
* Copyright 2004 Outerthought bvba and Schaubroeck nv
*
* 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.outerj.daisy.publisher.serverimpl.requestmodel;
import org.outerj.daisy.repository.VariantKey;
import java.util.Set;
import java.util.Map;
import java.util.Collections;
public class VariablesConfig {
private final VariantKey[] variableDocs;
private final Map<String, Set<String>> variableElementAttr;
public static final VariablesConfig DEFAULT_INSTANCE = new VariablesConfig();
public VariablesConfig() {
this.variableDocs = null;
this.variableElementAttr = Collections.emptyMap();
}
public VariablesConfig(VariantKey[] variableDocs, Map<String, Set<String>> variableElementAttr) {
this.variableDocs = variableDocs;
this.variableElementAttr = variableElementAttr;
}
/**
* Can return null.
*/
public VariantKey[] getVariableDocs() {
return variableDocs;
}
/**
* Returning null means "resolve variables in all attributes". If no attributes
* need to be handled, an empty map is returned.
*/
public Map<String, Set<String>> getVariableElementAttr() {
return variableElementAttr;
}
}
|
[
"stevek@ngdata.com"
] |
stevek@ngdata.com
|
322103241c2c84c5702b5bf495b9eba0a65fed4d
|
c885ef92397be9d54b87741f01557f61d3f794f3
|
/tests-without-trycatch/Lang-3/org.apache.commons.lang3.math.NumberUtils/BBC-F0-opt-80/12/org/apache/commons/lang3/math/NumberUtils_ESTest_scaffolding.java
|
91e0292343d999033c4584ec7153f967b2b5e9fe
|
[
"CC-BY-4.0",
"MIT"
] |
permissive
|
pderakhshanfar/EMSE-BBC-experiment
|
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
|
fea1a92c2e7ba7080b8529e2052259c9b697bbda
|
refs/heads/main
| 2022-11-25T00:39:58.983828
| 2022-04-12T16:04:26
| 2022-04-12T16:04:26
| 309,335,889
| 0
| 1
| null | 2021-11-05T11:18:43
| 2020-11-02T10:30:38
| null |
UTF-8
|
Java
| false
| false
| 3,307
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Thu Oct 21 01:40:56 GMT 2021
*/
package org.apache.commons.lang3.math;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class NumberUtils_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.lang3.math.NumberUtils";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
setSystemProperties();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public static void setSystemProperties() {
/*No java.lang.System property to set*/
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(NumberUtils_ESTest_scaffolding.class.getClassLoader() ,
"org.apache.commons.lang3.math.NumberUtils",
"org.apache.commons.lang3.StringUtils"
);
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(NumberUtils_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"org.apache.commons.lang3.math.NumberUtils",
"org.apache.commons.lang3.StringUtils"
);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
fad6dba8b00a196dbd97a06516bcdec03c2ca3f0
|
b2d97a6494c44c75e6c070804962a8ecc1778ebc
|
/Bejerholm Stenhuggeri/src/model/Inskription_linje.java
|
9840afa55c0765f4b1458da7780063f80bb7dd1c
|
[] |
no_license
|
tn4700/Bejerholms-Stenhuggeri
|
0e1adbe1361153b45c780f8e66b9b6fe7b46ac94
|
6d29221683204ffcc90630d2de161ba150fc81c2
|
refs/heads/master
| 2016-08-03T15:47:30.501354
| 2013-06-06T09:21:53
| 2013-06-06T09:21:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,463
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package model;
/**
*
* @author NiklasRenner
*/
public class Inskription_linje {
private int linje_nr;
private int inskription_id;
private int linje_type;
private String inskription;
public Inskription_linje(int linje_nr, int inskription_id, int linje_type, String inskription) {
this.linje_nr = linje_nr;
this.inskription_id = inskription_id;
this.linje_type = linje_type;
this.inskription = inskription;
}
public int getLinje_nr() {
return linje_nr;
}
public void setLinje_nr(int linje_nr) {
this.linje_nr = linje_nr;
}
public int getInskription_id() {
return inskription_id;
}
public void setInskription_id(int inskription_id) {
this.inskription_id = inskription_id;
}
public int getLinje_type() {
return linje_type;
}
public void setLinje_type(int linje_type) {
this.linje_type = linje_type;
}
public String getInskription() {
return inskription;
}
public void setInskription(String inskription) {
this.inskription = inskription;
}
@Override
public String toString() {
return "Inskription_linje{" + "linje_nr=" + linje_nr + ", inskription_id=" + inskription_id + ", linje_type=" + linje_type + ", inskription=" + inskription + '}';
}
}
|
[
"="
] |
=
|
ca4aef58460075da1518a2037b0356d18608cbcf
|
0bc22d74b4413cf8984360bf3d40f44cae888208
|
/PersistenceMigrationsSample/app/src/test/java/com/kinglloy/android/persistence/migrations/UserRepositoryTest.java
|
4b05cc30a2d6368bf8bf6c6c551f1981b4894ad9
|
[] |
no_license
|
jinkg/android-architecture-components
|
5da8930f4f1635bd18132ec8820dcea97430562c
|
53047fe49565cac3e30988d46cfdabed046eb6c9
|
refs/heads/master
| 2021-05-11T22:35:13.149283
| 2018-02-09T10:15:37
| 2018-02-09T10:15:37
| 117,495,600
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,755
|
java
|
package com.kinglloy.android.persistence.migrations;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import static junit.framework.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
/**
* Unit tests for the UserRepository.
*
* @author jinyalin
* @since 2018/2/2.
*/
public class UserRepositoryTest {
@Mock
private UserDataSource mUserDataSource;
private UserRepository mUserRepository;
private static final User USER = new User("username");
@Captor
private ArgumentCaptor<User> mUserArgumentCaptor;
@Before
public void setUp() throws Exception {
MockitoAnnotations.initMocks(this);
mUserRepository = new UserRepository(new SingleExecutors(), mUserDataSource);
}
@Test
public void getUserWithUserInDataSource() throws Exception {
//Given a callback for loading the user
LoadUserCallback callback = mock(LoadUserCallback.class);
// And user in the data source
when(mUserDataSource.getUser()).thenReturn(USER);
// When requesting a user from the repository
mUserRepository.getUser(callback);
// The user is requested from the user data source
verify(mUserDataSource).getUser();
// and the callback triggers correct method
verify(callback).onUserLoaded(USER);
}
@Test
public void getUserWithNoUserInDataSource() throws Exception {
//Given a callback for loading the user
LoadUserCallback callback = mock(LoadUserCallback.class);
// And no user in the data source
when(mUserDataSource.getUser()).thenReturn(null);
// When requesting a user from the repository
mUserRepository.getUser(callback);
// The user is requested from the user data source
verify(mUserDataSource).getUser();
// and the callback triggers correct method
verify(callback).onDataNotAvailable();
}
@Test
public void updateUserName() throws Exception {
// Given a callback for updating the username
UpdateUserCallback callback = mock(UpdateUserCallback.class);
// When updating the username
mUserRepository.updateUserName("name", callback);
// The user with the correct user name was saved
verify(mUserDataSource).insertOrUpdateUser(mUserArgumentCaptor.capture());
User user = mUserArgumentCaptor.getValue();
assertEquals("name", user.getUserName());
// The callback is triggered
verify(callback).onUserUpdated(user);
}
}
|
[
"jinyalin@baidu.com"
] |
jinyalin@baidu.com
|
29fcc3edeaeb950f8e9e5e9746e09ed36c1f57f4
|
435196c47097c51266e253c124a2da34a9442ee8
|
/retail-order/src/main/java/com/wisrc/order/webapp/vo/WareHouseVo.java
|
e481e0287f9e3899fb310527627e10047099a588
|
[] |
no_license
|
hzwy23/wisrc
|
87b6bb034375ddbd0f342556c20440f52b87effe
|
94e3403ae4d2f693bf2b10616517491350c2d617
|
refs/heads/master
| 2022-12-28T03:12:09.254707
| 2020-10-11T13:19:05
| 2020-10-11T13:19:05
| 297,698,891
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 715
|
java
|
package com.wisrc.order.webapp.vo;
public class WareHouseVo {
private String warehouseId;
private String warehouseName;
private Integer enableStockNum;
public String getWarehouseId() {
return warehouseId;
}
public void setWarehouseId(String warehouseId) {
this.warehouseId = warehouseId;
}
public String getWarehouseName() {
return warehouseName;
}
public void setWarehouseName(String warehouseName) {
this.warehouseName = warehouseName;
}
public Integer getEnableStockNum() {
return enableStockNum;
}
public void setEnableStockNum(Integer enableStockNum) {
this.enableStockNum = enableStockNum;
}
}
|
[
"hzwy23@hzwy23deMBP.lan"
] |
hzwy23@hzwy23deMBP.lan
|
1ef9d7592d6734f24a7e14bb23784c390f60950e
|
d60bd7144cb4428a6f7039387c3aaf7b295ecc77
|
/ScootAppSource/com/digits/sdk/android/cu.java
|
91668b804c2c8a5f99b9c779ffedc7f21c0dd7a0
|
[] |
no_license
|
vaquarkhan/Scoot-mobile-app
|
4f58f628e7e2de0480f7c41998cdc38100dfef12
|
befcfb58c1dccb047548f544dea2b2ee187da728
|
refs/heads/master
| 2020-06-10T19:14:25.985858
| 2016-12-08T04:39:10
| 2016-12-08T04:39:10
| 75,902,491
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 856
|
java
|
package com.digits.sdk.android;
import com.twitter.sdk.android.core.internal.scribe.c;
import com.twitter.sdk.android.core.internal.scribe.d;
final class cu
implements ca
{
private final bw a;
cu(bw parambw)
{
if (parambw == null) {
throw new NullPointerException("scribeClient must not be null");
}
this.a = parambw;
}
public void a()
{
c localc = by.a.d("fallback").e("").f("impression").a();
this.a.a(localc);
}
public void a(bs parambs) {}
public void a(bz parambz)
{
parambz = by.a.d("fallback").e(parambz.toString()).f("click").a();
this.a.a(parambz);
}
public void b() {}
public void c() {}
}
/* Location: D:\Android\dex2jar-2.0\classes-dex2jar.jar!\com\digits\sdk\android\cu.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"vaquar.khan@gmail.com"
] |
vaquar.khan@gmail.com
|
b30a41fdb1bbfb12bbc9b6460e9682e29e52c887
|
5b2c309c903625b14991568c442eb3a889762c71
|
/classes/com/squareup/okhttp/internal/http/HttpDate.java
|
1fb2111416023a8a221b659d19364bcb0ea700b8
|
[] |
no_license
|
iidioter/xueqiu
|
c71eb4bcc53480770b9abe20c180da693b2d7946
|
a7d8d7dfbaf9e603f72890cf861ed494099f5a80
|
refs/heads/master
| 2020-12-14T23:55:07.246659
| 2016-10-08T08:56:27
| 2016-10-08T08:56:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,043
|
java
|
package com.squareup.okhttp.internal.http;
import java.text.DateFormat;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
public final class HttpDate
{
private static final DateFormat[] BROWSER_COMPATIBLE_DATE_FORMATS = new DateFormat[15];
private static final String[] BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS;
private static final TimeZone GMT = TimeZone.getTimeZone("GMT");
private static final ThreadLocal<DateFormat> STANDARD_DATE_FORMAT = new ThreadLocal()
{
protected final DateFormat initialValue()
{
SimpleDateFormat localSimpleDateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US);
localSimpleDateFormat.setLenient(false);
localSimpleDateFormat.setTimeZone(HttpDate.GMT);
return localSimpleDateFormat;
}
};
static
{
BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS = new String[] { "EEE, dd MMM yyyy HH:mm:ss zzz", "EEEE, dd-MMM-yy HH:mm:ss zzz", "EEE MMM d HH:mm:ss yyyy", "EEE, dd-MMM-yyyy HH:mm:ss z", "EEE, dd-MMM-yyyy HH-mm-ss z", "EEE, dd MMM yy HH:mm:ss z", "EEE dd-MMM-yyyy HH:mm:ss z", "EEE dd MMM yyyy HH:mm:ss z", "EEE dd-MMM-yyyy HH-mm-ss z", "EEE dd-MMM-yy HH:mm:ss z", "EEE dd MMM yy HH:mm:ss z", "EEE,dd-MMM-yy HH:mm:ss z", "EEE,dd-MMM-yyyy HH:mm:ss z", "EEE, dd-MM-yyyy HH:mm:ss z", "EEE MMM d yyyy HH:mm:ss z" };
}
public static String format(Date paramDate)
{
return ((DateFormat)STANDARD_DATE_FORMAT.get()).format(paramDate);
}
public static Date parse(String paramString)
{
int i = 0;
Object localObject;
if (paramString.length() == 0) {
localObject = null;
}
ParsePosition localParsePosition;
do
{
return (Date)localObject;
localParsePosition = new ParsePosition(0);
localObject = ((DateFormat)STANDARD_DATE_FORMAT.get()).parse(paramString, localParsePosition);
} while (localParsePosition.getIndex() == paramString.length());
for (;;)
{
synchronized (BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS)
{
int j = BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS.length;
if (i >= j) {
break;
}
DateFormat localDateFormat = BROWSER_COMPATIBLE_DATE_FORMATS[i];
localObject = localDateFormat;
if (localDateFormat == null)
{
localObject = new SimpleDateFormat(BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS[i], Locale.US);
((DateFormat)localObject).setTimeZone(GMT);
BROWSER_COMPATIBLE_DATE_FORMATS[i] = localObject;
}
localParsePosition.setIndex(0);
localObject = ((DateFormat)localObject).parse(paramString, localParsePosition);
if (localParsePosition.getIndex() != 0) {
return (Date)localObject;
}
}
i += 1;
}
return null;
}
}
/* Location: E:\apk\xueqiu2\classes-dex2jar.jar!\com\squareup\okhttp\internal\http\HttpDate.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
2eecd2ef0b23b03d7043e76a099a40db4203ec00
|
1ae423db6e706dc3d2cfd9a866afcd6ebfc2b017
|
/app/src/main/java/com/example/meimeng/util/HxLoginUtil.java
|
05c4b5c55635dbbea0e1ff024f32de8a84435d87
|
[] |
no_license
|
payencai/MeiMeng
|
928b45b9345e870029ce1da5d08e3eef10385847
|
427eecddecd3e487e032e784544a7cf090412fdb
|
refs/heads/master
| 2020-05-25T02:11:52.274886
| 2019-05-20T05:24:36
| 2019-05-20T05:24:36
| 187,572,403
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,599
|
java
|
package com.example.meimeng.util;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.util.Log;
import com.example.meimeng.APP;
import com.example.meimeng.bean.LoginAccount.ServerUserInfo;
import com.example.meimeng.bean.LoginAccount.UserInfo;
import com.example.meimeng.manager.ActivityManager;
import com.hyphenate.EMCallBack;
import com.hyphenate.chat.EMClient;
/**
* 作者:凌涛 on 2018/7/2 18:02
* 邮箱:771548229@qq..com
*/
public class HxLoginUtil {
private int requstLoginCount = 0;
private static Context mContext;
private static final int LOGIN_HX = 2;
public static final int REQUE_LOGINHX_MAX_COUNT = 3;//请求登录环信的最大次数
private MyHandler mHandler;
private HxLoginCallBack mCallBack;
public HxLoginUtil(HxLoginCallBack callBack, Context context) {
mCallBack = callBack;
mContext = context.getApplicationContext();
mHandler = new MyHandler(callBack);
}
public void start() {
loginHx();
}
private void loginHx() {
Log.d("asyncCreateGroup", "loginHx: 登录hx");
String userName = null;
String password = null;
if (APP.sUserType == 0) {
UserInfo userInfo = APP.getInstance().getUserInfo();
userName = userInfo.getId();
password = userInfo.getHxPwd();
} else {
ServerUserInfo serverUserInfo = APP.getInstance().getServerUserInfo();
userName = serverUserInfo.getId();
password = serverUserInfo.getHxPwd();
}
if (TextUtils.isEmpty(userName) || TextUtils.isEmpty(userName)) {
ToaskUtil.showToast(mContext, "数据获取失败");
ActivityManager.getInstance().finishAllActivity();
return;
}
EMClient.getInstance().login(userName, password, new EMCallBack() {//回调
@Override
public void onSuccess() {
Log.d("asyncCreateGroup", "onSuccess: MainActivity环信登录成功回调");
EMClient.getInstance().groupManager().loadAllGroups();
EMClient.getInstance().chatManager().loadAllConversations();
mCallBack.OnSuccess();
}
@Override
public void onProgress(int progress, String status) {
}
@Override
public void onError(int code, String message) {
Log.d("asyncCreateGroup", "登录聊天服务器失败!");
mHandler.sendEmptyMessageDelayed(LOGIN_HX, 1000);
}
});
}
private class MyHandler extends Handler {
private HxLoginCallBack mCallBack;
public MyHandler(HxLoginCallBack callBack) {
mCallBack = callBack;
}
@Override
public void handleMessage(Message msg) {
if (mCallBack == null) {
return;
}
switch (msg.what) {
case LOGIN_HX:
requstLoginCount++;
if (requstLoginCount > REQUE_LOGINHX_MAX_COUNT) {
ToaskUtil.showToast(mContext, "无法连接服务器,请检查网络");
requstLoginCount = 0;
mCallBack.onFailure();
return;
}
loginHx();
break;
}
}
}
public interface HxLoginCallBack {
void OnSuccess();
void onFailure();
}
}
|
[
"771548229@qq.com"
] |
771548229@qq.com
|
328f3c1e841cbd29fc792b54b9e197cdc70868ad
|
39727ab097675f93d6ef025dfdc66f5037ad791b
|
/hc-mdm-web/src/main/java/com/hc/scm/mdm/web/controller/BasRegionController.java
|
0cea93711ea7a4e9afae3926bd36cd7852dffc2b
|
[] |
no_license
|
lijinxi/hc-mdm
|
be58e76b9b7310df0d67ba394fed4f1744c8b2da
|
5679e9257251417a8db268237648e6ea2c618087
|
refs/heads/master
| 2021-01-10T08:43:05.723534
| 2015-12-17T07:34:47
| 2015-12-17T07:34:47
| 47,642,075
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 901
|
java
|
package com.hc.scm.mdm.web.controller;
import com.hc.scm.common.base.service.BaseCrudService;
import com.hc.scm.common.base.web.BaseCrudController;
import com.hc.scm.mdm.dao.entity.BasRegion;
import com.hc.scm.mdm.service.BasRegionService;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Description: 请写出类的用途
* All rights Reserved, Designed Byhc* Copyright: Copyright(C) 2014-2015
* Company: Wonhigh.
* @author: user
* @date: 2015-03-12 17:13:47
* @version 1.0.0
*/
@Controller
@RequestMapping("/bas_region")
public class BasRegionController extends BaseCrudController<BasRegion> {
@Resource
private BasRegionService basRegionService;
@Override
public BaseCrudService init() {
return basRegionService;
}
}
|
[
"1767270730@qq.com"
] |
1767270730@qq.com
|
2a211eab3080aa4a14a18c5b627f031b5f359b1d
|
2c552dbe25d166fe02b8d9124e7888dfde65ade4
|
/Investigacion-ejb/build/generated-sources/ap-source-output/ec/edu/espe_ctt_investigacion/entity/Szdtabienproy_.java
|
448e98053fa5c4778de0a6a0026990ea5a015fda
|
[] |
no_license
|
developerJhonAlon/Proyecto-Investigacion-ESPE
|
d03aec50f6b5fa0864e1419524f74f4e41d89151
|
a97a68b4d5fc173ae0cbae82fc63ad45f4c2ef66
|
refs/heads/master
| 2022-04-11T16:44:11.215153
| 2020-03-31T01:37:46
| 2020-03-31T01:37:46
| 126,053,013
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 806
|
java
|
package ec.edu.espe_ctt_investigacion.entity;
import ec.edu.espe_ctt_investigacion.entity.SeaFormatoLargo;
import java.math.BigDecimal;
import java.util.Date;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="EclipseLink-2.5.2.v20140319-rNA", date="2019-05-03T00:15:11")
@StaticMetamodel(Szdtabienproy.class)
public class Szdtabienproy_ {
public static volatile SingularAttribute<Szdtabienproy, String> szdtabienproyDesc;
public static volatile SingularAttribute<Szdtabienproy, BigDecimal> szdtabienproyCode;
public static volatile SingularAttribute<Szdtabienproy, SeaFormatoLargo> sflId;
public static volatile SingularAttribute<Szdtabienproy, Date> szdtabienproyFechIngre;
}
|
[
"jhonalonjami@gmail.com"
] |
jhonalonjami@gmail.com
|
953883bfca55adbf2c5457208f358b7173495bb7
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/19/19_92fc10346716aa9b22ccd0351253eb4028da24f0/DefaultSearchResults/19_92fc10346716aa9b22ccd0351253eb4028da24f0_DefaultSearchResults_t.java
|
fb26ff7a642772bf9dbcf8169025c6f72ebc9005
|
[] |
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
| 6,602
|
java
|
/*
* Copyright (c) 2000-2004 Netspective Communications LLC. All rights reserved.
*
* Netspective Communications LLC ("Netspective") permits redistribution, modification and use of this file in source
* and binary form ("The Software") under the Netspective Source License ("NSL" or "The License"). The following
* conditions are provided as a summary of the NSL but the NSL remains the canonical license and must be accepted
* before using The Software. Any use of The Software indicates agreement with the NSL.
*
* 1. Each copy or derived work of The Software must preserve the copyright notice and this notice unmodified.
*
* 2. Redistribution of The Software is allowed in object code form only (as Java .class files or a .jar file
* containing the .class files) and only as part of an application that uses The Software as part of its primary
* functionality. No distribution of the package is allowed as part of a software development kit, other library,
* or development tool without written consent of Netspective. Any modified form of The Software is bound by these
* same restrictions.
*
* 3. Redistributions of The Software in any form must include an unmodified copy of The License, normally in a plain
* ASCII text file unless otherwise agreed to, in writing, by Netspective.
*
* 4. The names "Netspective", "Axiom", "Commons", "Junxion", and "Sparx" are trademarks of Netspective and may not be
* used to endorse or appear in products derived from The Software without written consent of Netspective.
*
* THE SOFTWARE IS PROVIDED "AS IS" WITHOUT A WARRANTY OF ANY KIND. ALL EXPRESS OR IMPLIED REPRESENTATIONS AND
* WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT,
* ARE HEREBY DISCLAIMED.
*
* NETSPECTIVE AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE OR ANY THIRD PARTY AS A
* RESULT OF USING OR DISTRIBUTING THE SOFTWARE. IN NO EVENT WILL NETSPECTIVE OR ITS LICENSORS BE LIABLE FOR ANY LOST
* REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN
* IF IT HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
package com.netspective.sparx.navigate.fts;
import java.io.IOException;
import java.io.Serializable;
import org.apache.lucene.document.Document;
import org.apache.lucene.search.Hits;
import org.apache.lucene.search.Query;
import com.netspective.sparx.navigate.fts.SearchHitsRenderer.SearchExpression;
public class DefaultSearchResults implements Serializable, FullTextSearchResults
{
private final FullTextSearchPage searchPage;
private final SearchExpression expression;
private final Query query;
private final Hits hits;
private final int scrollTotalRows;
private final int scrollRowsPerPage;
private final int scrollTotalPages;
private final int scrollPagesRangeSize; // number of scrollable pages to show in the page navigation screen
private int scrollActivePage;
public DefaultSearchResults(FullTextSearchPage searchPage, SearchExpression expression, Query query, Hits hits, int rowsPerPage)
{
this.searchPage = searchPage;
this.expression = expression;
this.query = query;
this.hits = hits;
this.scrollTotalRows = hits.length();
this.scrollActivePage = 1;
this.scrollRowsPerPage = rowsPerPage;
this.scrollPagesRangeSize = 10;
this.scrollTotalPages = (scrollTotalRows % rowsPerPage == 0) ? (scrollTotalRows / rowsPerPage) :
((scrollTotalRows / rowsPerPage) + 1);
}
public String[][] getActivePageHitValues(String[] fieldNames) throws IOException
{
final int startRow = getScrollActivePageStartRow();
final int endRow = getScrollActivePageEndRow();
String[][] hitsMatrix = new String[endRow - startRow][fieldNames.length];
for(int i = startRow; i < endRow; i++)
{
Document doc = hits.doc(i);
String[] row = hitsMatrix[i - startRow];
for(int j = 0; j < fieldNames.length; j++)
{
row[j] = doc.get(fieldNames[j]);
}
}
return hitsMatrix;
}
public String[][] getActivePageHitValues() throws IOException
{
return getActivePageHitValues(searchPage.getRenderer().getHitsMatrixFieldNames());
}
public int getScrollActivePageEndRow()
{
int result = getScrollActivePageStartRow() + scrollRowsPerPage;
if(result > scrollTotalRows)
result = scrollTotalRows;
return result;
}
public SearchExpression getExpression()
{
return expression;
}
public FullTextSearchPage getSearchPage()
{
return searchPage;
}
public Hits getHits()
{
return hits;
}
public Query getQuery()
{
return query;
}
public int getScrollTotalRows()
{
return scrollTotalRows;
}
public int getScrollRowsPerPage()
{
return scrollRowsPerPage;
}
public int getScrollActivePageStartRow()
{
return ((scrollActivePage - 1) * scrollRowsPerPage);
}
public int getScrollTotalPages()
{
return scrollTotalPages;
}
public int getScrollActivePage()
{
return scrollActivePage;
}
public boolean scrollToPage(int page)
{
if(page < 0 || page > scrollTotalPages)
return false;
this.scrollActivePage = page;
return true;
}
public boolean isScrollable()
{
return scrollTotalRows > scrollRowsPerPage;
}
public int getScrollPagesRangeSize()
{
return scrollPagesRangeSize;
}
public int getScrollPagesRangeStartPage()
{
if(scrollTotalPages < scrollPagesRangeSize)
return 1;
int result = scrollActivePage - scrollPagesRangeSize;
return result > 0 ? result : 1;
}
public int getScrollPagesRangeEndPage()
{
if(scrollTotalPages < scrollPagesRangeSize)
return scrollTotalPages;
int result = scrollActivePage + scrollPagesRangeSize;
return result <= scrollTotalPages ? result : scrollTotalPages;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
405634d63697026cac01edc37ee0119fad9ae7c8
|
d15803d5b16adab18b0aa43d7dca0531703bac4a
|
/com/whatsapp/messaging/bg.java
|
a10f13c0a609668f1125b8b6b236863ae95f82ef
|
[] |
no_license
|
kenuosec/Decompiled-Whatsapp
|
375c249abdf90241be3352aea38eb32a9ca513ba
|
652bec1376e6cd201d54262cc1d4e7637c6334ed
|
refs/heads/master
| 2021-12-08T15:09:13.929944
| 2016-03-23T06:04:08
| 2016-03-23T06:04:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,921
|
java
|
package com.whatsapp.messaging;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.X509TrustManager;
import org.v;
import org.whispersystems.at;
final class bg implements X509TrustManager {
private static final String[] z;
static {
String[] strArr = new String[3];
String str = "\u0015\t\u0016 ,";
Object obj = -1;
String[] strArr2 = strArr;
String[] strArr3 = strArr;
int i = 0;
while (true) {
char[] toCharArray = str.toCharArray();
int length = toCharArray.length;
char[] cArr = toCharArray;
for (int i2 = 0; length > i2; i2++) {
int i3;
char c = cArr[i2];
switch (i2 % 5) {
case v.m /*0*/:
i3 = 77;
break;
case at.g /*1*/:
i3 = 39;
break;
case at.i /*2*/:
i3 = 35;
break;
case at.o /*3*/:
i3 = 16;
break;
default:
i3 = 21;
break;
}
cArr[i2] = (char) (i3 ^ c);
}
str = new String(cArr).intern();
switch (obj) {
case v.m /*0*/:
strArr2[i] = str;
i = 2;
strArr2 = strArr3;
str = "\u0003H\u0003sy$BMd5.BQd|+N@qa(\u0007Uug$AJst9NL~5=ULf|)BG";
obj = 1;
break;
case at.g /*1*/:
strArr2[i] = str;
z = strArr3;
return;
default:
strArr2[i] = str;
str = "\u001dljH";
i = 1;
strArr2 = strArr3;
obj = null;
break;
}
}
}
bg() {
}
/* JADX WARNING: inconsistent code. */
/* Code decompiled incorrectly, please refer to instructions dump. */
public void checkServerTrusted(java.security.cert.X509Certificate[] r13, java.lang.String r14) {
/*
r12 = this;
r1 = 0;
r2 = com.whatsapp.messaging.co.a;
r3 = new java.util.Date;
r3.<init>();
r4 = r13.length;
r0 = r1;
L_0x000a:
if (r0 >= r4) goto L_0x0015;
L_0x000c:
r5 = r13[r0];
r5.checkValidity(r3);
r0 = r0 + 1;
if (r2 == 0) goto L_0x000a;
L_0x0015:
r0 = z; Catch:{ NoSuchAlgorithmException -> 0x005a }
r4 = 1;
r0 = r0[r4]; Catch:{ NoSuchAlgorithmException -> 0x005a }
r4 = java.security.cert.CertPathValidator.getInstance(r0); Catch:{ NoSuchAlgorithmException -> 0x005a }
r0 = z;
r0 = r0[r1];
r0 = java.security.cert.CertificateFactory.getInstance(r0);
r5 = java.util.Arrays.asList(r13);
r5 = r0.generateCertPath(r5);
r6 = r12.getAcceptedIssuers();
r7 = new java.util.HashSet;
r0 = r6.length;
r7.<init>(r0);
r8 = r6.length;
r0 = r1;
L_0x003a:
if (r0 >= r8) goto L_0x004b;
L_0x003c:
r9 = r6[r0];
r10 = new java.security.cert.TrustAnchor;
r11 = 0;
r10.<init>(r9, r11);
r7.add(r10);
r0 = r0 + 1;
if (r2 == 0) goto L_0x003a;
L_0x004b:
r0 = new java.security.cert.PKIXParameters; Catch:{ InvalidAlgorithmParameterException -> 0x0061 }
r0.<init>(r7); Catch:{ InvalidAlgorithmParameterException -> 0x0061 }
r0.setDate(r3);
r0.setRevocationEnabled(r1);
r4.validate(r5, r0); Catch:{ CertPathValidatorException -> 0x0068, InvalidAlgorithmParameterException -> 0x006f }
return;
L_0x005a:
r0 = move-exception;
r1 = new java.security.cert.CertificateException;
r1.<init>(r0);
throw r1;
L_0x0061:
r0 = move-exception;
r1 = new java.security.cert.CertificateException;
r1.<init>(r0);
throw r1;
L_0x0068:
r0 = move-exception;
L_0x0069:
r1 = new java.security.cert.CertificateException;
r1.<init>(r0);
throw r1;
L_0x006f:
r0 = move-exception;
goto L_0x0069;
*/
throw new UnsupportedOperationException("Method not decompiled: com.whatsapp.messaging.bg.checkServerTrusted(java.security.cert.X509Certificate[], java.lang.String):void");
}
public X509Certificate[] getAcceptedIssuers() {
return at.a();
}
public void checkClientTrusted(X509Certificate[] x509CertificateArr, String str) {
throw new CertificateException(z[2]);
}
}
|
[
"gigalitelk@gmail.com"
] |
gigalitelk@gmail.com
|
a1b4d61dc908d21ebd35b65c5acbcbe6d2941b0d
|
e820097c99fb212c1c819945e82bd0370b4f1cf7
|
/gwt-sh/src/main/java/com/skynet/spms/client/gui/basedatamanager/stockServiceBusiness/containerBusiness/ContainerDetailWindow.java
|
6fcb671154cf5b9faacc4dc69d2d8442903111e6
|
[] |
no_license
|
jayanttupe/springas-train-example
|
7b173ca4298ceef543dc9cf8ae5f5ea365431453
|
adc2e0f60ddd85d287995f606b372c3d686c3be7
|
refs/heads/master
| 2021-01-10T10:37:28.615899
| 2011-12-20T07:47:31
| 2011-12-20T07:47:31
| 36,887,613
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,858
|
java
|
package com.skynet.spms.client.gui.basedatamanager.stockServiceBusiness.containerBusiness;
import com.skynet.spms.client.entity.DataInfo;
import com.skynet.spms.client.feature.data.DataSourceTool;
import com.skynet.spms.client.feature.data.DataSourceTool.PostDataSourceInit;
import com.skynet.spms.client.gui.base.EnumTool;
import com.skynet.spms.client.gui.base.SetWindow;
import com.skynet.spms.client.gui.base.Utils;
import com.skynet.spms.client.tools.ShowWindowTools;
import com.smartgwt.client.core.Rectangle;
import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.data.Record;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.Window;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.SelectItem;
import com.smartgwt.client.widgets.form.fields.TextAreaItem;
import com.smartgwt.client.widgets.form.fields.TextItem;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.layout.VLayout;
public class ContainerDetailWindow extends Window {
/**
*
* @param windowTitle
* @param isMax
* @param rect
* @param listGrid
* @param iconUrl
* @param updateFlg
* @param isView
*/
public ContainerDetailWindow(String windowTitle,
boolean isMax,
final Rectangle rect,
final ListGrid listGrid,
String iconUrl,
final Boolean updateFlg,
final Boolean isView) {
final Window objWindow = this;
setWidth(500);
setHeight(300);
final DynamicForm mainForm = new DynamicForm();
mainForm.setWidth(280);
mainForm.setHeight("90%");
mainForm.setColWidths(80, 200);
mainForm.setDataSource(listGrid.getDataSource());
// 容器编号
final TextItem containerNumber = new TextItem("containerNumber");
containerNumber.setWidth(145);
containerNumber.setDefaultValue("业务编号系统自动生成");
containerNumber.setDisabled(true);
// 容器类型
final SelectItem containerType = new SelectItem("containerType");
containerType.setWidth(145);
EnumTool.setValueMap("com.skynet.spms.persistence.entity.spmsdd.StockContainerType", containerType);
containerType.setHint("<font color = 'red'>*</font>");
// 材质
final SelectItem containerMaterial = new SelectItem("containerMaterial");
containerMaterial.setWidth(145);
EnumTool.setValueMap("com.skynet.spms.persistence.entity.spmsdd.PackagingMaterial", containerMaterial);
// 所属库房
final SelectItem cmbStockRoomNumber = new SelectItem("stockRoomID");
cmbStockRoomNumber.setWidth(195);
cmbStockRoomNumber.setValueField("id");
cmbStockRoomNumber.setDisplayField("stockRoomChineseName");
cmbStockRoomNumber.setHint("<font color='red'>*</font>");
ListGridField stockRoomNumberField = new ListGridField("stockRoomNumber");
ListGridField stockRoomChineseNameField = new ListGridField("stockRoomChineseName");
cmbStockRoomNumber.setPickListFields(stockRoomNumberField, stockRoomChineseNameField);
// 获取库房数据
String stockRoomModeName = "stockServiceBusiness.basicData.stockRoom";
String stockRoomDSName = "stockRoom_dataSource";
DataSourceTool stockRoomDST = new DataSourceTool();
stockRoomDST.onCreateDataSource(stockRoomModeName, stockRoomDSName,
new PostDataSourceInit() {
public void doPostOper(DataSource dataSource,
DataInfo dataInfo) {
cmbStockRoomNumber.clearValue();
cmbStockRoomNumber.setOptionDataSource(dataSource);
if (updateFlg == true)
{
final Record record = listGrid.getSelectedRecord();
mainForm.editRecord(record);
}
}
});
// 备注
final TextAreaItem remark = new TextAreaItem("remark");
remark.setWidth(195);
remark.setHeight(50);
final IButton saveButton = new IButton();
saveButton.setTitle("保存");
saveButton.setWidth(65);
saveButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
if(containerType.getAttribute("Value").equals("") ||
containerType.getAttribute("Value") == null){
SC.say("容器类型不能为空!");
return;
}
if(cmbStockRoomNumber.getAttribute("Value").equals("") ||
cmbStockRoomNumber.getAttribute("Value") == null){
SC.say("所属库房不能为空!");
return;
}
mainForm.setValue("stockRoomName", cmbStockRoomNumber.getDisplayValue());
mainForm.saveData();
ShowWindowTools.showCloseWindow(rect, objWindow, -1);
}
});
final IButton cancelButton = new IButton();
cancelButton.setTitle("返回");
cancelButton.setWidth(65);
cancelButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
ShowWindowTools.showCloseWindow(rect, objWindow, -1);
}
});
mainForm.setFields(containerNumber
,containerType
,containerMaterial
,cmbStockRoomNumber
,remark
);
final HLayout buttonLayout = new HLayout();
buttonLayout.setMargin(5);
buttonLayout.setMembersMargin(5);
buttonLayout.setHeight("10%");
buttonLayout.addMember(saveButton);
buttonLayout.addMember(cancelButton);
VLayout layout = new VLayout();
layout.setMargin(5);
layout.addMember(mainForm);
layout.addMember(buttonLayout);
if (isView == true) {
Utils.setReadOnlyForm(mainForm);
saveButton.setVisible(false);
cancelButton.setVisible(false);
}
SetWindow.SetWindowLayout(windowTitle
,false
,iconUrl
,rect
,objWindow
,layout);
}
}
|
[
"usedtolove@3b6edebd-8678-f8c2-051a-d8e859c3524d"
] |
usedtolove@3b6edebd-8678-f8c2-051a-d8e859c3524d
|
5519ca9544eb9a53316ba93a4769158762c7289b
|
072216667ef59e11cf4994220ea1594538db10a0
|
/xiaomi/yellowpages/com/miui/yellowpage/ui/bw.java
|
1f028568de4729185686eb5cd67e8b04eabd691b
|
[] |
no_license
|
jackTang11/REMIUI
|
896037b74e90f64e6f7d8ddfda6f3731a8db6a74
|
48d65600a1b04931a510e1f036e58356af1531c0
|
refs/heads/master
| 2021-01-18T05:43:37.754113
| 2015-07-03T04:01:06
| 2015-07-03T04:01:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,649
|
java
|
package com.miui.yellowpage.ui;
import android.content.BroadcastReceiver;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.JsResult;
import android.webkit.WebBackForwardList;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.miui.yellowpage.R;
import com.miui.yellowpage.base.utils.BaseWebEvent;
import com.miui.yellowpage.base.utils.Files;
import com.miui.yellowpage.base.utils.Log;
import com.miui.yellowpage.base.utils.ThreadPool;
import com.miui.yellowpage.base.utils.WebService;
import com.miui.yellowpage.base.utils.WebViewConfigurator;
import com.miui.yellowpage.utils.H;
import com.miui.yellowpage.widget.pulltorefresh.PullToRefreshBase.Mode;
import com.miui.yellowpage.widget.pulltorefresh.PullToRefreshWebView;
import com.miui.yellowpage.widget.pulltorefresh.a;
import miui.os.Build;
/* compiled from: BaseWebFragment */
public abstract class bw extends cs {
protected static final int BACKGROUND_WORK_DELAY_IN_MILLIS = 500;
protected static final String BLANK_SCREEN_URL = "about:blank";
public static final int FILE_CHOOSER_RESULT_CODE = 10000;
protected static final int INIT_PROGRESS_VALUE = 10;
private static String INJECTED_JS_CONTENT = null;
private static final String TAG = "BaseWebFragment";
private JsResult mCurJsResult;
protected Handler mHandler;
protected PullToRefreshWebView mPullToRefreshWebView;
protected H mUploadHandler;
protected BaseWebEvent mWebEvent;
private BroadcastReceiver mWebResBroadcastReceiver;
protected WebView mWebView;
protected abstract a getOnRefreshListener();
public bw() {
this.mWebResBroadcastReceiver = new cV(this);
}
static {
WebView.setWebContentsDebuggingEnabled(Build.IS_DEBUGGABLE);
}
protected void onPageForwardOrBackward() {
}
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
ThreadPool.execute(new cX(this));
this.mActivity.getApplicationContext().registerReceiver(this.mWebResBroadcastReceiver, new IntentFilter("com.miui.yellowpage.web_page_resources_updated"));
this.mHandler = new Handler();
}
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
int onGetViewId = onGetViewId();
if (onGetViewId <= 0) {
throw new IllegalArgumentException("You must provide a valid layout");
}
View inflate = layoutInflater.inflate(onGetViewId, viewGroup, false);
this.mPullToRefreshWebView = (PullToRefreshWebView) inflate.findViewById(R.id.browser);
if (this.mPullToRefreshWebView == null) {
throw new IllegalArgumentException("As a web view fragment, you must provide a webview named browser");
}
this.mPullToRefreshWebView.a(getOnRefreshListener());
this.mWebView = (WebView) this.mPullToRefreshWebView.fs();
onInitWebViewSettings();
return inflate;
}
public void onResume() {
super.onResume();
this.mWebView.onResume();
}
public void onPause() {
super.onPause();
if (this.mCurJsResult != null) {
this.mCurJsResult.cancel();
this.mCurJsResult = null;
}
this.mWebView.onPause();
}
public void onDestroy() {
super.onDestroy();
this.mActivity.getApplicationContext().unregisterReceiver(this.mWebResBroadcastReceiver);
((ViewGroup) this.mWebView.getParent()).removeView(this.mWebView);
this.mWebView.destroy();
this.mWebView = null;
}
protected int onGetViewId() {
return R.layout.base_web_view;
}
protected WebChromeClient onCreateWebChromeClient() {
return new C(this);
}
protected WebViewClient onCreateWebViewClient() {
return new bi(this);
}
protected void onInitWebViewSettings() {
WebViewConfigurator.configure(this.mActivity, this.mWebView);
WebChromeClient onCreateWebChromeClient = onCreateWebChromeClient();
if (onCreateWebChromeClient != null) {
this.mWebView.setWebChromeClient(onCreateWebChromeClient);
}
WebViewClient onCreateWebViewClient = onCreateWebViewClient();
if (onCreateWebViewClient != null) {
this.mWebView.setWebViewClient(onCreateWebViewClient);
}
this.mWebView.setOverScrollMode(2);
this.mWebView.requestFocus();
this.mWebView.setDownloadListener(new be());
}
public void onActivityResult(int i, int i2, Intent intent) {
if (i == FILE_CHOOSER_RESULT_CODE) {
this.mUploadHandler.a(i2, intent);
} else {
super.onActivityResult(i, i2, intent);
}
}
public void reload() {
Log.d(TAG, "reload");
this.mWebView.reload();
}
protected void onNetworkConnected() {
reload();
}
public boolean onBackPressed() {
return goBack();
}
protected boolean goBack() {
Log.d(TAG, "goBack");
if (!this.mWebView.canGoBack()) {
return false;
}
WebBackForwardList copyBackForwardList = this.mWebView.copyBackForwardList();
int stepsToGoBack = stepsToGoBack();
int currentIndex = copyBackForwardList.getCurrentIndex();
if (stepsToGoBack > currentIndex) {
return false;
}
CharSequence title = copyBackForwardList.getItemAtIndex(currentIndex - stepsToGoBack).getTitle();
if (!TextUtils.isEmpty(title)) {
this.mActivity.setTitle(title);
}
this.mWebView.goBackOrForward(-stepsToGoBack);
return true;
}
private int stepsToGoBack() {
int i = 1;
WebBackForwardList copyBackForwardList = this.mWebView.copyBackForwardList();
int currentIndex = copyBackForwardList.getCurrentIndex();
for (int i2 = 0; i2 <= currentIndex; i2++) {
CharSequence url = copyBackForwardList.getItemAtIndex(currentIndex - i2).getUrl();
if (!BLANK_SCREEN_URL.equalsIgnoreCase(url) && TextUtils.equals(this.mWebView.getUrl(), url)) {
break;
}
i++;
}
return i;
}
public void loadUrl(String str) {
if (this.mWebView == null || TextUtils.isEmpty(str)) {
Log.e(TAG, "The url should not be null, load nothing");
return;
}
Log.d(TAG, "loadUrl: " + str);
this.mWebView.loadUrl(str);
doSomeBackgroundWorks(str);
}
private void doSomeBackgroundWorks(String str) {
this.mHandler.postDelayed(new cZ(this, str), 500);
}
private void injectOpenJS() {
Log.d(TAG, "Inject open js ");
if (INJECTED_JS_CONTENT == null) {
INJECTED_JS_CONTENT = String.format("javascript:(function() { try { %s } catch(e) { MiuiYellowPageApi.log(e.message); } }())", new Object[]{Files.getUriContentString(this.mActivity, WebService.INJECTION_JS_URI)});
}
if (!TextUtils.isEmpty(INJECTED_JS_CONTENT) && this.mWebView != null) {
this.mWebView.evaluateJavascript(INJECTED_JS_CONTENT, null);
}
}
protected void disablePullToRefresh() {
this.mPullToRefreshWebView.a(Mode.DISABLED);
}
protected void enablePullToRefresh() {
this.mPullToRefreshWebView.a(Mode.PULL_FROM_START);
}
}
|
[
"songjd@putao.com"
] |
songjd@putao.com
|
1fe76f03d9e74411fb1be0e813c69b2c1eb4c724
|
25d18752369ef15c14ee416511adabaa1950d305
|
/api/cas-server-core-api-ticket/src/main/java/org/apereo/cas/ticket/proxy/ProxyGrantingTicketFactory.java
|
9e458963023f501d40ea8500475503cf350d3795
|
[
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
zou23cn/cas
|
f37378c7b3f91ac61b47bc0763a24573a34cb908
|
55d1cfe11a863a7881642c37081e5cf0dd9e0c4a
|
refs/heads/master
| 2023-08-08T07:04:18.201328
| 2018-05-08T21:12:01
| 2018-05-08T21:12:01
| 132,698,878
| 1
| 0
|
Apache-2.0
| 2019-09-22T03:54:18
| 2018-05-09T03:50:23
|
Java
|
UTF-8
|
Java
| false
| false
| 964
|
java
|
package org.apereo.cas.ticket.proxy;
import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.ticket.AbstractTicketException;
import org.apereo.cas.ticket.ServiceTicket;
import org.apereo.cas.ticket.TicketFactory;
/**
* The {@link ProxyGrantingTicketFactory} is responsible for
* creating instances of {@link ProxyGrantingTicket}.
*
* @author Misagh Moayyed
* @since 4.2
*/
public interface ProxyGrantingTicketFactory extends TicketFactory {
/**
* Create the ticket object.
*
* @param <T> the type parameter
* @param ticket the ticket
* @param authentication the authentication
* @param clazz the clazz
* @return the ticket instance
* @throws AbstractTicketException the abstract ticket exception
*/
<T extends ProxyGrantingTicket> T create(ServiceTicket ticket, Authentication authentication, Class<T> clazz)
throws AbstractTicketException;
}
|
[
"mmoayyed@unicon.net"
] |
mmoayyed@unicon.net
|
249d16f952ec207af6e0dfb0a1623dc14f5d0aba
|
9a9f1a0936366e7b7be25d7b0e762a3f5e3ace25
|
/src/main/java/com/ruoyi/framework/aspectj/lang/enums/DataSourceType.java
|
33b11341ab68846fdaed9b8c9c0863d40b1faf87
|
[
"MIT"
] |
permissive
|
xuan996/ry-system
|
f2322a648b150c3567f231f7e3a35815009e95f6
|
1ac76716d4b1dd03754b997b34653df512c8f79a
|
refs/heads/master
| 2020-07-21T19:43:25.542852
| 2019-09-06T09:06:17
| 2019-09-06T09:06:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 180
|
java
|
package com.ruoyi.framework.aspectj.lang.enums;
/**
* 数据源
*
* @author ruoyi
*/
public enum DataSourceType {
/**
* 主库
*/
MASTER,
/**
* 从库
*/
SLAVE
}
|
[
"742003942@qq.com"
] |
742003942@qq.com
|
1ec76eb3d3f6edaa74c5b9d9bd388016c9b5b307
|
07cc75a47713cec917476192b947daf7a305d39a
|
/src/main/java/com/vladislav/rest/controllers/advices/ResourceNotFoundAdvice.java
|
c21ed50c2127ff4e92e613ba1b7e306713f8a4d6
|
[] |
no_license
|
vdlald/task-manager-rest
|
732d7b6d669838b006085fa2173bee5b7b22b5fb
|
352f9bb2580f9e59a946c0e120a96b8df951b421
|
refs/heads/master
| 2022-11-24T06:41:40.543712
| 2020-07-25T13:41:51
| 2020-07-25T13:41:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 832
|
java
|
package com.vladislav.rest.controllers.advices;
import com.vladislav.rest.controllers.responses.ErrorResponse;
import com.vladislav.rest.exceptions.ResourceNotFoundException;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
@ControllerAdvice
public class ResourceNotFoundAdvice {
@ResponseBody
@ExceptionHandler(ResourceNotFoundException.class)
@ResponseStatus(HttpStatus.NOT_FOUND)
public ErrorResponse resourceNotFoundHandler(ResourceNotFoundException exception) {
return new ErrorResponse(HttpStatus.NOT_FOUND.value(), exception.getMessage());
}
}
|
[
"vlad.vdlald@gmail.com"
] |
vlad.vdlald@gmail.com
|
9ff0eb4b9d820438c1f4e1794d891126ff85af18
|
d6417efdbcfffb905f23bb86af45da7f6668d128
|
/net.sf.smbt.fmodex.core.edit/src/net/sf/smbt/fmodex/core/ezaudio/provider/AudioTrackItemProvider.java
|
ca36960c221996ff7ea24d306b23195a1e31c031
|
[] |
no_license
|
swinsey/fmodex
|
b8f008816c09cd66110907ad968a44af4f2c8c50
|
2e18cda752645057ba92284bb2d21cd8121c364a
|
refs/heads/master
| 2021-05-29T11:27:40.325719
| 2015-06-12T18:31:48
| 2015-06-12T18:31:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,706
|
java
|
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package net.sf.smbt.fmodex.core.ezaudio.provider;
import java.util.Collection;
import java.util.List;
import net.sf.smbt.fmodex.core.ezaudio.AudioTrack;
import net.sf.smbt.fmodex.core.ezaudio.EzaudioPackage;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
/**
* This is the item provider adapter for a {@link net.sf.smbt.fmodex.core.ezaudio.AudioTrack} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class AudioTrackItemProvider
extends ItemProviderAdapter
implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
IItemLabelProvider,
IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public AudioTrackItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
addChannelPropertyDescriptor(object);
addClipsPropertyDescriptor(object);
addLabelPropertyDescriptor(object);
addDevicesPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
* This adds a property descriptor for the Channel feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addChannelPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_AudioTrack_channel_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AudioTrack_channel_feature", "_UI_AudioTrack_type"),
EzaudioPackage.Literals.AUDIO_TRACK__CHANNEL,
true,
false,
true,
null,
null,
null));
}
/**
* This adds a property descriptor for the Clips feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addClipsPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_AudioTrack_clips_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AudioTrack_clips_feature", "_UI_AudioTrack_type"),
EzaudioPackage.Literals.AUDIO_TRACK__CLIPS,
true,
false,
true,
null,
null,
null));
}
/**
* This adds a property descriptor for the Label feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addLabelPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_AudioTrack_label_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AudioTrack_label_feature", "_UI_AudioTrack_type"),
EzaudioPackage.Literals.AUDIO_TRACK__LABEL,
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
/**
* This adds a property descriptor for the Devices feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addDevicesPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_AudioTrack_devices_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AudioTrack_devices_feature", "_UI_AudioTrack_type"),
EzaudioPackage.Literals.AUDIO_TRACK__DEVICES,
true,
false,
true,
null,
null,
null));
}
/**
* This returns AudioTrack.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/AudioTrack"));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
String label = ((AudioTrack)object).getLabel();
return label == null || label.length() == 0 ?
getString("_UI_AudioTrack_type") :
getString("_UI_AudioTrack_type") + " " + label;
}
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(AudioTrack.class)) {
case EzaudioPackage.AUDIO_TRACK__LABEL:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
}
super.notifyChanged(notification);
}
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public ResourceLocator getResourceLocator() {
return EzaudioEditPlugin.INSTANCE;
}
}
|
[
"lucas.bigeardel@gmail.com"
] |
lucas.bigeardel@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.