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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9b2afad58291bcd49d88a6f584a0d44ec4d7e7b1
|
304c81d1d664657c1b82b2840ca1b4adde0eb6f4
|
/src/main/java/com/example/proxies/intefacebased/Person.java
|
87be605b2f50ea32a604352e526aec91959a170d
|
[] |
no_license
|
dimmxx/casual
|
2d0606e80df036448aed0eb7cdb55c8da19c2763
|
03209fbe0303dd8e4246aafaaf2bbad5822ac6f7
|
refs/heads/master
| 2023-04-05T13:20:41.803761
| 2022-11-28T20:08:02
| 2022-11-28T20:08:02
| 242,586,407
| 0
| 0
| null | 2022-11-28T20:54:59
| 2020-02-23T20:33:12
|
Java
|
UTF-8
|
Java
| false
| false
| 204
|
java
|
package com.example.proxies.intefacebased;
public interface Person {
void introduce(String name);
void sayAge(int age);
void sayFrom(String city, String country);
String getName();
}
|
[
"dimmxx@gmail.com"
] |
dimmxx@gmail.com
|
8b0d3d765ec619c23711cd5fbc3b2f5b274c8082
|
76cc850c1cf37cb6629f1bc2a877e75ae6df280a
|
/protocols/raft/src/main/java/io/atomix/protocols/raft/protocol/TransferRequest.java
|
a4e58179b152abd631c1f3b58271dd034d3b2f31
|
[
"Apache-2.0"
] |
permissive
|
mapbased/atomix
|
63aea3959151c39dc3d1bb5589b554f8de39a681
|
61063469c4cd447d13eb8b7068d6a3fdec7a6779
|
refs/heads/master
| 2021-01-12T08:54:44.566577
| 2017-11-15T09:16:24
| 2017-11-15T09:16:24
| 76,713,439
| 0
| 0
| null | 2017-11-15T09:16:25
| 2016-12-17T08:46:55
|
Java
|
UTF-8
|
Java
| false
| false
| 2,618
|
java
|
/*
* Copyright 2015-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.protocols.raft.protocol;
import io.atomix.protocols.raft.cluster.MemberId;
import java.util.Objects;
import static com.google.common.base.MoreObjects.toStringHelper;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Leadership transfer request.
*/
public class TransferRequest extends AbstractRaftRequest {
/**
* Returns a new transfer request builder.
*
* @return A new transfer request builder.
*/
public static Builder builder() {
return new Builder();
}
protected final MemberId member;
protected TransferRequest(MemberId member) {
this.member = member;
}
/**
* Returns the member to which to transfer.
*
* @return The member to which to transfer.
*/
public MemberId member() {
return member;
}
@Override
public int hashCode() {
return Objects.hash(getClass(), member);
}
@Override
public boolean equals(Object object) {
if (getClass().isAssignableFrom(object.getClass())) {
return ((ConfigurationRequest) object).member.equals(member);
}
return false;
}
@Override
public String toString() {
return toStringHelper(this)
.add("member", member)
.toString();
}
/**
* Transfer request builder.
*/
public static class Builder extends AbstractRaftRequest.Builder<Builder, TransferRequest> {
protected MemberId member;
/**
* Sets the request member.
*
* @param member The request member.
* @return The request builder.
* @throws NullPointerException if {@code member} is null
*/
@SuppressWarnings("unchecked")
public Builder withMember(MemberId member) {
this.member = checkNotNull(member, "member cannot be null");
return this;
}
@Override
protected void validate() {
super.validate();
checkNotNull(member, "member cannot be null");
}
@Override
public TransferRequest build() {
return new TransferRequest(member);
}
}
}
|
[
"jordan.halterman@gmail.com"
] |
jordan.halterman@gmail.com
|
d5482705dd16c9b2bd76e33efc095931e14b9cc3
|
1f4fb0626e8f2c95bb1c62a8bfd5240168df44c1
|
/mall-business/file-center/src/main/java/com/central/file/config/OssServiceFactory.java
|
345282bcae5e7daff0e826622bf27b0323f483a5
|
[
"Apache-2.0"
] |
permissive
|
shenzhuan/mallcloud-platform-1
|
5ad6f2c3386a0e12c9334bc450e9221c1f481551
|
6c1a00b8a135c674765f720f72670092f271bd31
|
refs/heads/master
| 2022-05-01T01:38:37.400319
| 2022-04-25T02:12:11
| 2022-04-25T02:12:11
| 232,960,097
| 4
| 5
|
Apache-2.0
| 2020-01-10T03:44:47
| 2020-01-10T03:44:46
| null |
UTF-8
|
Java
| false
| false
| 982
|
java
|
package com.central.file.config;
import com.central.file.model.FileType;
import com.central.file.service.IFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import javax.annotation.PostConstruct;
import java.util.EnumMap;
import java.util.Map;
/**
* FileService工厂<br>
* 将各个实现类放入map
*
* @author 作者 mallplus E-mail: 951449465@qq.com
*/
@Configuration
public class OssServiceFactory {
private Map<FileType, IFileService> map = new EnumMap<>(FileType.class);
@Autowired
private IFileService aliyunOssServiceImpl;
@Autowired
private IFileService qiniuOssServiceImpl;
@PostConstruct
public void init() {
map.put(FileType.ALIYUN, aliyunOssServiceImpl);
map.put(FileType.QINIU, qiniuOssServiceImpl);
}
public IFileService getFileService(String fileType) {
return map.get(FileType.valueOf(fileType));
}
}
|
[
"zhuan.shen@rjfittime.com"
] |
zhuan.shen@rjfittime.com
|
1be4124284038ed7e060849bfd070ab64fd0cfda
|
1c3e6a99ed38c33151eba53d37a998b783df780b
|
/utils-jse/src/com/xenoage/utils/jse/lang/LangResourceBundle.java
|
71a497d252e6db0611a68036c0271c6bb6460a11
|
[
"Zlib"
] |
permissive
|
Xenoage/Utils
|
5ce53ecb38c3f7ce2848755ac99c9529dcdcaf14
|
cd21920419687840b3fba30d102eb7e6be258e03
|
refs/heads/master
| 2021-01-18T22:21:32.570442
| 2017-05-31T09:19:06
| 2017-05-31T09:19:06
| 11,782,298
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,056
|
java
|
package com.xenoage.utils.jse.lang;
import com.xenoage.utils.lang.Lang;
import com.xenoage.utils.lang.VocID;
import java.util.*;
/**
* This class provides access to {@link Lang} language packs
* via the {@link ResourceBundle} interface.
*
* The keys are simply String encoded {@link VocID} values,
* with some special additions:
* <ul>
* <li>if the resource ID ends with ":", {@link Lang#getLabel(VocID)} is used</li>
* <li>if the resource ID ends with "...", {@link Lang#getWithEllipsis(VocID)} is used</li>
* </ul>
*
* If an unknown resource is queried, its key is returned. It is better
* to have at least the vocabulary ID instead of nothing.
*
* @author Andreas Wenger
*/
public class LangResourceBundle
extends ResourceBundle {
private Map<String, VocID> vocIDs;
private Enumeration<String> vocIDStrings;
/**
* Creates a new {@link LangResourceBundle} for the given
* vocabulary keys.
*/
public LangResourceBundle(VocID... vocIDs) {
this.vocIDs = new HashMap<>();
for (VocID vocID : vocIDs) {
this.vocIDs.put(vocID.toString(), vocID);
}
this.vocIDStrings = Collections.enumeration(this.vocIDs.keySet());
}
@Override protected Object handleGetObject(String key) {
if (key.endsWith(":")) {
//read as label (usually the text, followed by ":")
VocID vocID = vocIDs.get(key.substring(0, key.length() - 1));
if (vocID == null)
return key;
return Lang.getLabel(vocID);
}
else if (key.endsWith("...")) {
//read with ellipsis (text followed by "...")
VocID vocID = vocIDs.get(key.substring(0, key.length() - 3));
if (vocID == null)
return key;
return Lang.getWithEllipsis(vocID);
}
else {
//normal case
VocID vocID = vocIDs.get(key);
if (vocID == null)
return key;
return Lang.get(vocID);
}
}
@Override public Enumeration<String> getKeys() {
return vocIDStrings;
}
/**
* Returns true, since we support each key to avoid
* problems with missing vocabulary.
*/
@Override public boolean containsKey(String key) {
return true;
}
}
|
[
"andi@xenoage.com"
] |
andi@xenoage.com
|
88698d3d2272499273b5ee1c0a66963465a0bda3
|
e9d1b2db15b3ae752d61ea120185093d57381f73
|
/mytcuml-src/src/java/components/uml_model_-_actions/trunk/src/java/tests/com/topcoder/uml/model/actions/accuracytests/ActionAbstractImplAccuracyTests.java
|
8f388937a4c9f35bedba7f4d175ba3cd4a484cc0
|
[] |
no_license
|
kinfkong/mytcuml
|
9c65804d511ad997e0c4ba3004e7b831bf590757
|
0786c55945510e0004ff886ff01f7d714d7853ab
|
refs/heads/master
| 2020-06-04T21:34:05.260363
| 2014-10-21T02:31:16
| 2014-10-21T02:31:16
| 25,495,964
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,528
|
java
|
/*
* Copyright (C) 2006 TopCoder Inc., All Rights Reserved.
*
* TCS UML_Model_-_Actions Version 1.0 Accuracytests.
*
* @ ActionAbstractImplAccuracyTests.java
*/
package com.topcoder.uml.model.actions.accuracytests;
import com.topcoder.uml.model.actions.Action;
import com.topcoder.uml.model.actions.ActionAbstractImpl;
import com.topcoder.uml.model.commonbehavior.procedure.Procedure;
import com.topcoder.uml.model.commonbehavior.procedure.ProcedureImpl;
import com.topcoder.uml.model.core.ModelElementAbstractImpl;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* <p>
* The <code>ActionAbstractImpl</code>'s Accuracy Tests.
* This accuracy tests addresses the functionality provided
* by the <code>ActionAbstractImpl</code> class.
* </p>
*
* @author zmg
* @version 1.0
*/
public class ActionAbstractImplAccuracyTests extends TestCase {
/**
* <p>
* The instance of <code>ActionAbstractImpl</code> used for tests.
* </p>
*/
private ActionAbstractImpl test = null;
/**
* <p>
* The instance of <code>Procedure</code> used for tests.
* </p>
*/
private Procedure procedure = null;
/**
* <p>
* Test suite of <code>ActionAbstractImplAccuracyTests</code>.
* </p>
*
* @return Test suite of <code>ActionAbstractImplAccuracyTests</code>.
*/
public static Test suite() {
return new TestSuite(ActionAbstractImplAccuracyTests.class);
}
/**
* <p>
* Initialization for all tests here, creats a new instance of <code>Procedure</code>
* and <code>ActionAbstractImpl</code>.
* </p>
*/
protected void setUp() {
test = new MockActionImpl();
procedure = new ProcedureImpl();
}
/**
* <p>
* Accuracy Test of the <code>ActionAbstractImpl()</code> constructor.
* </p>
*/
public void testConstructor() {
// creat a new instance.
assertNotNull("Constructor should work well.", new MockActionImpl());
// get the original value of procedure to check the constructor
assertNull("The procedure expected to be null", test.getProcedure());
}
/**
* <p>
* Accuracy Test of the <code>getProcedure()</code> method and
* <code>setProcedure(Procedure)</code>.
* </p>
*/
public void testProcedure_Operation() {
// get the original value of procedure.
assertNull("The procedure expected to be null", test.getProcedure());
// set the procedure.
test.setProcedure(procedure);
// get the procedure to check it's value.
assertSame("The two procedures expected to be same", procedure,
test.getProcedure());
}
/**
* <p>
* Accuracy Test of the <code>ActionAbstractImpl</code> class.
* It tests the class inheritance and class interface.
* </p>
*/
public void testRelationship() {
// test class inheritance.
assertTrue("This class should extend from ModelElementAbstractImpl",
test instanceof ModelElementAbstractImpl);
// test class interface.
assertTrue("This class should implement Action interface",
test instanceof Action);
}
/**
* <p>
* A inner class which extends the <code>ActionAbstractImpl</code> class, used for
* accuracy test only.
* </p>
*/
class MockActionImpl extends ActionAbstractImpl {
// use default constructor.
}
}
|
[
"kinfkong@126.com"
] |
kinfkong@126.com
|
b539cb9a11016765b82ddfd5d10bcff2dc054d50
|
2dfac70eea8fbc2658cf58567e68db28c183b733
|
/gui/src/main/java/org/jboss/as/console/client/shared/jvm/JvmEditor.java
|
9985d13077b5ef2b8e713a5cc8e938a048fd53b5
|
[] |
no_license
|
maasvdberg/console
|
61ea2be130d439d6053c213a0e114e301f416bc6
|
a54da1e23127b3b04b5ce4845504b9acb920e3b3
|
refs/heads/master
| 2021-01-24T05:05:54.397658
| 2011-07-12T09:16:58
| 2011-07-12T09:16:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,907
|
java
|
/*
* JBoss, Home of Professional Open Source
* Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @author tags. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License, v. 2.1.
* This program is distributed in the hope that it will be useful, but WITHOUT A
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License,
* v.2.1 along with this distribution; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
package org.jboss.as.console.client.shared.jvm;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import org.jboss.as.console.client.Console;
import org.jboss.as.console.client.shared.BeanFactory;
import org.jboss.as.console.client.shared.help.FormHelpPanel;
import org.jboss.as.console.client.widgets.Feedback;
import org.jboss.as.console.client.widgets.forms.CheckBoxItem;
import org.jboss.as.console.client.widgets.forms.Form;
import org.jboss.as.console.client.widgets.forms.FormValidation;
import org.jboss.as.console.client.widgets.forms.TextBoxItem;
import org.jboss.as.console.client.widgets.tools.ToolButton;
import org.jboss.as.console.client.widgets.tools.ToolStrip;
import org.jboss.dmr.client.ModelNode;
/**
* @author Heiko Braun
* @date 4/20/11
*/
public class JvmEditor {
private JvmManagement presenter;
private Form<Jvm> form;
BeanFactory factory = GWT.create(BeanFactory.class);
private boolean hasJvm;
private ToolButton edit;
private String reference;
private Widget formWidget;
private FormHelpPanel.AddressCallback addressCallback;
public JvmEditor(JvmManagement presenter) {
this.presenter = presenter;
}
public void setAddressCallback(FormHelpPanel.AddressCallback addressCallback) {
this.addressCallback = addressCallback;
}
public Widget asWidget() {
VerticalPanel panel = new VerticalPanel();
panel.setStyleName("fill-layout-width");
ToolStrip toolStrip = new ToolStrip();
edit = new ToolButton(Console.CONSTANTS.common_label_edit());
ClickHandler editHandler = new ClickHandler(){
@Override
public void onClick(ClickEvent event) {
if(edit.getText().equals(Console.CONSTANTS.common_label_edit()))
{
onEdit();
}
else
{
onSave();
}
}
};
edit.addClickHandler(editHandler);
toolStrip.addToolButton(edit);
ToolButton delete = new ToolButton(Console.CONSTANTS.common_label_delete(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
if(hasJvm)
{
Feedback.confirm(Console.MESSAGES.deleteJVM(), Console.MESSAGES.deleteJVMConfirm(),
new Feedback.ConfirmationHandler() {
@Override
public void onConfirmation(boolean isConfirmed) {
if(isConfirmed)
presenter.onDeleteJvm(reference, form.getEditedEntity());
}
});
}
}
});
toolStrip.addToolButton(delete);
panel.add(toolStrip);
form = new Form<Jvm>(Jvm.class);
form.setNumColumns(2);
TextBoxItem nameItem = new TextBoxItem("name", Console.CONSTANTS.common_label_name());
TextBoxItem heapItem = new TextBoxItem("heapSize", "Heap Size");
TextBoxItem maxHeapItem = new TextBoxItem("maxHeapSize", "Max Heap Size");
//CheckBoxItem debugItem = new CheckBoxItem("debugEnabled", "Debug Enabled?");
//TextBoxItem debugOptionsItem = new TextBoxItem("debugOptions", "Debug Options");
form.setFields(nameItem, heapItem, maxHeapItem);
form.setEnabled(false);
// ---
if(addressCallback!=null)
{
final FormHelpPanel helpPanel = new FormHelpPanel(addressCallback, form);
panel.add(helpPanel.asWidget());
}
// ---
formWidget = form.asWidget();
panel.add(formWidget);
return panel;
}
private void onSave() {
FormValidation validation = form.validate();
if(!validation.hasErrors())
{
form.setEnabled(false);
edit.setText(Console.CONSTANTS.common_label_edit());
Jvm jvm = form.getUpdatedEntity();
if(hasJvm)
presenter.onUpdateJvm(reference, jvm.getName(), form.getChangedValues());
else
presenter.onCreateJvm(reference, jvm);
}
}
private void onEdit() {
edit.setText(Console.CONSTANTS.common_label_save());
form.setEnabled(true);
}
public void setSelectedRecord(String reference, Jvm jvm) {
this.reference = reference;
hasJvm = jvm!=null;
form.setEnabled(false);
edit.setText(Console.CONSTANTS.common_label_edit());
if(hasJvm)
form.edit(jvm);
else
form.edit(factory.jvm().as());
}
}
|
[
"ike.braun@googlemail.com"
] |
ike.braun@googlemail.com
|
ea9231e2cebb537490d5ac4ac742025e836047bc
|
d412146c347dfc4dc79cc4653ad22409a4f7f78b
|
/src/main/java/com/alorma/github/sdk/bean/dto/response/GitChangeStatus.java
|
aa43c27957a3609ac6d4f0a5128a6b518d9b3534
|
[
"MIT"
] |
permissive
|
vemmaverve/GithubAndroidSdk
|
f53970eaca4ea434e152b249686cd133329e92fc
|
28ae781968ada725db821ea5ea4e5836c41f0864
|
refs/heads/master
| 2021-01-17T19:51:24.959042
| 2015-11-15T15:49:10
| 2015-11-15T15:49:10
| 46,539,179
| 1
| 1
| null | 2015-11-20T04:26:41
| 2015-11-20T04:26:41
| null |
UTF-8
|
Java
| false
| false
| 169
|
java
|
package com.alorma.github.sdk.bean.dto.response;
public class GitChangeStatus {
public int additions;
public int deletions;
public int total;
public int changes;
}
|
[
"bernatbor15@gmail.com"
] |
bernatbor15@gmail.com
|
f9f3848e56b79b02c0a18061027174c67cfbe620
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.qqlite/assets/exlibs.1.jar/classes.jar/vh.java
|
9c66a0c44a2589a7cb5150d469cf567831c2455a
|
[] |
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
| 509
|
java
|
import com.tencent.mobileqq.activity.AccountManageActivity;
public class vh
implements Runnable
{
public vh(AccountManageActivity paramAccountManageActivity, long paramLong) {}
public void run()
{
this.jdField_a_of_type_ComTencentMobileqqActivityAccountManageActivity.a(this.jdField_a_of_type_Long);
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.qqlite\assets\exlibs.1.jar\classes.jar
* Qualified Name: vh
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
993236dd661e81b16f6b99c71ab9dca9d6fbcb51
|
5d1817ba4bef44bae537d9bd8b99603baf48615e
|
/src/main/java/com/sefryek/brokerpro/dto/request/DeleteMemberOfWatchListCategoryRequest.java
|
6fe6b459a4f49a4aaaf699b452edee8b19f25a6e
|
[] |
no_license
|
esi123456/project
|
bfb5426d1712ee1b6d740d893c17c04d00481c06
|
b032107d264f7166a35c7109ffc5d3496f026744
|
refs/heads/master
| 2021-01-25T11:20:30.596839
| 2018-03-01T09:40:57
| 2018-03-01T09:40:57
| 123,392,985
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 866
|
java
|
package com.sefryek.brokerpro.dto.request;
/**
* Copyright 2016 (C) sefryek.com
*
* @author: Amin Malekpour
* @email: amin.malekpour@hotmail.com
* @date: 26, Feb, 2017
*/
public class DeleteMemberOfWatchListCategoryRequest extends Request{
private int categoryId;
private String symbolISIN;
public int getCategoryId() {
return categoryId;
}
public void setCategoryId(int categoryId) {
this.categoryId = categoryId;
}
public String getSymbolISIN() {
return symbolISIN;
}
public void setSymbolISIN(String symbolISIN) {
this.symbolISIN = symbolISIN;
}
@Override
public String toString() {
return "DeleteMemberOfWatchListCategoryRequest{" +
"categoryId=" + categoryId +
", symbolISIN='" + symbolISIN + '\'' +
'}';
}
}
|
[
"esmailsadeghi11@gmail.com"
] |
esmailsadeghi11@gmail.com
|
02680b1ffb3bd57ad1ed34f5c9eb6955db4b0e02
|
c9884b5938b12d77574ba5d9fbea735ba347e5f7
|
/src/main/java/com/sen/blog/controller/home/TagController.java
|
92761ceb258a5c7cc2a3e659db6ae1e264c5b036
|
[
"Apache-2.0"
] |
permissive
|
sumforest/blog
|
29743807d8da8c5df4979545240bc00665973082
|
399517d5c23579fd5fa60df507575656dfcdddbe
|
refs/heads/master
| 2022-12-20T13:28:57.810309
| 2019-10-08T16:34:48
| 2019-10-08T16:34:48
| 210,127,788
| 0
| 0
|
Apache-2.0
| 2022-12-16T06:23:28
| 2019-09-22T10:19:41
|
Java
|
UTF-8
|
Java
| false
| false
| 1,601
|
java
|
package com.sen.blog.controller.home;
import com.github.pagehelper.PageInfo;
import com.sen.blog.entity.Article;
import com.sen.blog.entity.Tag;
import com.sen.blog.service.ArticleService;
import com.sen.blog.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @Auther: Sen
* @Date: 2019/9/29 00:09
* @Description:
*/
@Controller
public class TagController {
@Autowired
private ArticleService articleService;
@Autowired
private TagService tagService;
@RequestMapping(value = "/tag/{tagId}", method = RequestMethod.GET)
public String showTagPage(@PathVariable int tagId,
Model model,
@RequestParam(required = false,defaultValue = "1") int pageIndex,
@RequestParam(required = false,defaultValue = "10") int pageSize) {
PageInfo<Article> articlePageInfo = articleService.listArticlesByTagId(pageIndex, pageSize, tagId);
Tag tag = tagService.selectById(new Tag(tagId));
model.addAttribute("pageInfo", articlePageInfo);
model.addAttribute("tag", tag);
model.addAttribute("pageUrlPrefix", "/tag/"+tagId+"?pageIndex");
return "/home/page/articleListByTag";
}
}
|
[
"12345678"
] |
12345678
|
593a91529f74d7dacf5b0b0523df8e8610241fa9
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/test/irvine/oeis/a009/A009203Test.java
|
84acd5b8c144739747c03e3897caf2455b907278
|
[] |
no_license
|
flywind2/joeis
|
c5753169cf562939b04dd246f8a2958e97f74558
|
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
|
refs/heads/master
| 2020-09-13T18:34:35.080552
| 2019-11-19T05:40:55
| 2019-11-19T05:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 195
|
java
|
package irvine.oeis.a009;
import irvine.oeis.AbstractSequenceTest;
/**
* Tests the corresponding class.
* @author Sean A. Irvine
*/
public class A009203Test extends AbstractSequenceTest {
}
|
[
"sairvin@gmail.com"
] |
sairvin@gmail.com
|
95586840d0d1494e19874498152300538f2bb180
|
54f352a242a8ad6ff5516703e91da61e08d9a9e6
|
/Source Codes/AtCoder/agc005/D/1990455.java
|
d483b60605b1ecc125940369bf1b9d661506ece6
|
[] |
no_license
|
Kawser-nerd/CLCDSA
|
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
|
aee32551795763b54acb26856ab239370cac4e75
|
refs/heads/master
| 2022-02-09T11:08:56.588303
| 2022-01-26T18:53:40
| 2022-01-26T18:53:40
| 211,783,197
| 23
| 9
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,045
|
java
|
// package agc.agc005;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.InputMismatchException;
import java.util.List;
public class Main {
private static final long MOD = 924844033;
public static void add(long[][][] dp, int i, int j, int k, long x) {
dp[i][j][k] += x;
if (dp[i][j][k] >= MOD) {
dp[i][j][k] -= MOD;
}
}
public static void main(String[] args) {
InputReader in = new InputReader(System.in);
PrintWriter out = new PrintWriter(System.out);
int n = in.nextInt();
int k = in.nextInt();
long[][][] dp = new long[2][2][n+1];
dp[0][0][0] = 1;
{
int num = 0;
int grpi = 0;
for (int i = 0; i < n; i++) {
int lw = num - k;
int hi = num + k;
int ne = num + 2 * k;
int fr = i % 2;
int to = 1 - fr;
for (int j = 0; j < 2 ; j++) {
Arrays.fill(dp[to][j], 0);
}
for (int last = 0 ; last <= 1 ; last++) {
for (int wrongCount = 0 ; wrongCount < n ; wrongCount++) {
long base = dp[fr][last][wrongCount];
if (base == 0) {
continue;
}
add(dp, to, 0, wrongCount, base);
if (lw >= 0 && last == 0) {
add(dp, to, 0, wrongCount+1, base);
}
if (hi < n) {
add(dp, to, (ne >= n) ? 0 : 1, wrongCount+1, base);
}
}
}
num += 2 * k;
if (num >= n) {
num = ++grpi;
}
}
}
long[] fact = new long[n+1];
fact[0] = 1;
for (int i = 1; i <= n; i++) {
fact[i] = (fact[i-1] * i) % MOD;
}
long total = 0;
for (int i = 0; i <= n ; i++) {
long w = dp[n%2][0][i] + dp[n%2][1][i];
w %= MOD;
w *= fact[n-i];
w %= MOD;
if (i % 2 == 0) {
total += w;
} else {
total += MOD - w;
}
total %= MOD;
}
out.println(total);
out.flush();
}
public static void debug(Object... o) {
System.err.println(Arrays.deepToString(o));
}
public static class InputReader {
private static final int BUFFER_LENGTH = 1 << 12;
private InputStream stream;
private byte[] buf = new byte[BUFFER_LENGTH];
private int curChar;
private int numChars;
public InputReader(InputStream stream) {
this.stream = stream;
}
private int next() {
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0)
return -1;
}
return buf[curChar++];
}
public char nextChar() {
return (char) skipWhileSpace();
}
public String nextToken() {
int c = skipWhileSpace();
StringBuilder res = new StringBuilder();
do {
res.append((char) c);
c = next();
} while (!isSpaceChar(c));
return res.toString();
}
public int nextInt() {
return (int) nextLong();
}
public long nextLong() {
int c = skipWhileSpace();
long sgn = 1;
if (c == '-') {
sgn = -1;
c = next();
}
long res = 0;
do {
if (c < '0' || c > '9') {
throw new InputMismatchException();
}
res *= 10;
res += c - '0';
c = next();
} while (!isSpaceChar(c));
return res * sgn;
}
public double nextDouble() {
return Double.valueOf(nextToken());
}
int skipWhileSpace() {
int c = next();
while (isSpaceChar(c)) {
c = next();
}
return c;
}
boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
}
}
|
[
"kwnafi@yahoo.com"
] |
kwnafi@yahoo.com
|
5ae637c08b7e4a6f1c3c993a25ad541fd38df838
|
4bdf74d8dbb210d29db0fdf1ae97aad08929612c
|
/data_test/82337/Rook.java
|
bf7fa522222d7db690795cffd7284e3a254fb3ac
|
[] |
no_license
|
huyenhuyen1204/APR_data
|
cba03642f68ce543690a75bcefaf2e0682df5e7e
|
cb9b78b9e973202e9945d90e81d1bfaef0f9255c
|
refs/heads/master
| 2023-05-13T21:52:20.294382
| 2021-06-02T17:52:30
| 2021-06-02T17:52:30
| 373,250,240
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 942
|
java
|
public class Rook extends Piece {
/**
* Javadoc Comment.
*/
public Rook(int x, int y) {
super(x, y);
}
/**
* Javadoc Comment.
*/
public Rook(int x, int y, String color) {
super(x, y, color);
}
/**
* Javadoc Comment.
*/
@Override
public String getSymbol() {
return "R";
}
/**
* Javadoc Comment.
*/
@Override
public boolean canMove(Board board, int x, int y) {
if (!board.validate(x, y)) {
return false;
}
if (x != this.getCoordinatesX() && y != this.getCoordinatesY()) {
return false;
}
for (Piece p : board.getPieces()) {
if (x == p.getCoordinatesX() && y == p.getCoordinatesY()) {
if (p.getColor().equals(this.getColor())) {
return false;
}
}
}
return true;
}
}
|
[
"nguyenhuyen98pm@gmail.com"
] |
nguyenhuyen98pm@gmail.com
|
d62a30359085eca0a65e27def45c79220792d15e
|
e8cd24201cbfadef0f267151ea5b8a90cc505766
|
/group13/568334413/0312/download/FileDownloaderTest.java
|
e214aedbb07f87ddf8bd9ed63d0a3b514cb244c1
|
[] |
no_license
|
XMT-CN/coding2017-s1
|
30dd4ee886dd0a021498108353c20360148a6065
|
382f6bfeeeda2e76ffe27b440df4f328f9eafbe2
|
refs/heads/master
| 2021-01-21T21:38:42.199253
| 2017-06-25T07:44:21
| 2017-06-25T07:44:21
| 94,863,023
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,665
|
java
|
package download;
import download.api.ConnectionManager;
import download.api.DownloadListener;
import download.impl.ConnectionManagerImpl;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class FileDownloaderTest {
boolean downloadFinished = false;
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void testDownload() {
// String url = "http://upload-images.jianshu.io/upload_images/430632-49ce383d76352277.jpg";
// String url = "http://img3.91.com/uploads/allimg/130428/32-13042Q63239.jpg";
// String url = "http://images.weiphone.net/data/attachment/forum/201703/10/082621it8dfr8frmpbgrdo.png";
String url = "http://img.zhxhlm.com/o_1b4sfgd8087os528sg85jjkf.mp4";
FileDownloader downloader = new FileDownloader(url);
ConnectionManager cm = new ConnectionManagerImpl();
downloader.setConnectionManager(cm);
downloader.setListener(new DownloadListener() {
public void notifyFinished() {
downloadFinished = true;
}
});
downloader.execute();
// 等待多线程下载程序执行完毕
while (!downloadFinished) {
try {
System.out.println("还没有下载完成,休眠五秒");
//休眠5秒
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
System.out.println("下载完成!");
}
}
|
[
"542194147@qq.com"
] |
542194147@qq.com
|
23da6a6a2320ce4c53dde427a2f10a80aec28f0a
|
5c77c9a68236776be1a9be846fd7f9094e50667b
|
/goods-index/com/enation/app/shop/component/goodsindex/service/IGoodsIndexManager.java
|
02cbf2db550b39c562960d07c6881c4569a56646
|
[] |
no_license
|
xizil/javamall
|
1f9c0f7f917b2c758a0854ce9c1b0270f9f56bde
|
86aa53892f164aafcdd985be5da36411518d0b90
|
refs/heads/master
| 2021-01-12T08:02:55.259646
| 2016-12-06T01:59:57
| 2016-12-06T01:59:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,201
|
java
|
/**
*
*/
package com.enation.app.shop.component.goodsindex.service;
import java.util.List;
import java.util.Map;
import com.enation.app.shop.component.goodsindex.model.GoodsWords;
import com.enation.app.shop.core.plugin.search.SearchSelector;
import com.enation.framework.database.Page;
/**
* 商品索引管理接口
* @author kingapex
*2015-4-16
*/
public interface IGoodsIndexManager {
/**
* 将某个商品加入索引<br>
* @param goods
*/
public void addIndex(Map goods);
/**
* 更新某个商品的索引
* @param goods
*/
public void updateIndex(Map goods);
/**
* 更新
* @param goods
*/
public void deleteIndex(Map goods);
/**
* 将所有商品加入索引
*/
public void addAallIndex();
/**
* 通过关键字获取商品分词索引
* @param keyword
* @return
*/
public List<GoodsWords> getGoodsWords(String keyword);
/**
* 商品搜索
* @param pageNo 页码
* @param pageSize 分页大小
* @return
*/
public Page search(int pageNo,int pageSize);
/**
* 生成搜索的选择器
* @return key为selected为是已经选中的选择器
*/
public Map<String,Object> createSelector();
}
|
[
"hemes1314@163.com"
] |
hemes1314@163.com
|
d045ba7c2f9c2870e85f66e70523097bb223ad73
|
e8d17fe9fcba653d74ac538b793d8f9ae2fa6185
|
/crm-complaint/src/main/java/com/deppon/crm/module/duty/server/service/IDutyDeptService.java
|
3097ac4abb58a75767d10a860a7ee3b9f1e4e899
|
[] |
no_license
|
xfu00013/crm-1
|
06ef85141dac69569e9fc2ef0ab7010cffbcbd53
|
d809a722a3d8d06f643f3d96e02932539ce2212f
|
refs/heads/master
| 2021-01-21T18:46:46.212043
| 2014-06-05T06:27:07
| 2014-06-05T06:27:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,239
|
java
|
package com.deppon.crm.module.duty.server.service;
import java.util.List;
import com.deppon.crm.module.duty.shared.domain.DutyDept;
import com.deppon.crm.module.organization.shared.domain.Department;
public interface IDutyDeptService {
/**
* <p>
* Description: 查询所有特殊责任部门
* </p>
* @author LiuY
* @date 2014-1-8
* @return
* List<DutyDept>
*/
public List<DutyDept> searchAllDutyDept();
/**
* <p>
* Description: 添加工单特殊责任部门
* </p>
* @author LiuY
* @date 2014-1-10
* @param dutyDept
* void
*/
public void saveDutyDept(DutyDept dutyDept);
/**
* <p>
* Description: 根据Id查询部门
* </p>
* @author LiuY
* @date 2014-1-10
* @param deptId
* @return 是否存在 0不存在 1存在
*/
public int searchDutyDeptById(String deptId);
/**
* <p>
* Description: 删除工单特殊责任部门
* </p>
* @author LiuY
* @date 2014-1-10
* @param dutyDeptList
* void
*/
public void deleteDutyDept(List<DutyDept> dutyDeptList);
/**
* <p>
* Description: 查询责任部门是否为营业部
* </p>
* @author LiuY
* @date 2014-1-14
* @param deptId 待校验部门ID
* @return
* int 若部门在为营业部,即该部门在经营本部下,返回1,不在返回-1
*/
public int searchDutyDeptType(String deptId);
/**
* <p>
* Description: 查询员工所在部门
* </p>
* @author hpf
* @date 2014-1-14
* @param empId 员工ID
* @return
*/
public Department searchDepartmentByEmpId(String empId);
/**
* <p>
* Description: 查询多个部门是否为同一个事业部
* </p>
* @author hpf
* @date 2014-1-16
* @return
* List<DutyDept>
*/
boolean isSameDepartmentByDeptIds(List<String> deptIdList);
/**
* <p>
* Description: 根据用户ID查询其所在事业部
* </p>
* @author LiuY
* @date 2014-1-7
* @param userid 用户id
* @return String 事业部id
*/
public String searchBusinessByUser(String userid);
/**
* <p>
* Description: 根据部门ID查询其所在事业部
* </p>
* @author LiuY
* @date 2014-1-7
* @param deptId 部门id
* @return String 事业部id
*/
public String searchBusinessByDept(String deptId);
}
|
[
"605372707@qq.com"
] |
605372707@qq.com
|
74dd72c1fdff872fc22d591447ed6dbcdc88bc69
|
1277c4a6ce2811f1830752e016a914517cd89b91
|
/lterDialogTest/app/src/main/java/com/example/lab/android/nuc/lterdialogtest/MainActivity.java
|
fe8bf8dd071aeed65c9e181eec31bd229778be20
|
[
"Apache-2.0"
] |
permissive
|
newbie-hue/First-line-of-android-code
|
59637128df8c01871e88862138fbdb71434ee515
|
ced4d8239bb64113b42e3ee704192962ef38d741
|
refs/heads/master
| 2023-03-21T08:44:07.363992
| 2018-09-16T01:04:34
| 2018-09-16T01:04:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 355
|
java
|
package com.example.lab.android.nuc.lterdialogtest;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
|
[
"1484290617@qq.com"
] |
1484290617@qq.com
|
b4ec0ce7020cde07a243e9a0069e11973a3c080c
|
cbaf3f12781812098f2d26648e6bff55039bcb5a
|
/server/src/som/langserv/structure/SemanticTokenModifier.java
|
246bd5392235a372465b4614679e1af76697c8d7
|
[
"MIT"
] |
permissive
|
smarr/effortless-language-servers
|
417345f96c84f8df2673781c81086878bbb385ee
|
7bc6aa728cfa0db9dd549f08c863f3f84993e364
|
refs/heads/master
| 2023-06-09T23:21:06.144549
| 2023-05-29T09:31:00
| 2023-05-29T09:31:00
| 62,829,153
| 11
| 1
|
MIT
| 2023-01-16T14:27:05
| 2016-07-07T18:23:47
|
Java
|
UTF-8
|
Java
| false
| false
| 456
|
java
|
package som.langserv.structure;
public enum SemanticTokenModifier {
DECLARATION("declaration"),
DEFINITION("definition"),
READ_ONLY("readonly"),
STATIC("static"),
DEPRECATED("deprecated"),
ABSTRACT("abstract"),
ASYNC("async"),
MODIFICATION("modification"),
DOCUMENTATION("documentation"),
DEFAULT_LIBRARY("defaultLibrary");
public final String name;
private SemanticTokenModifier(final String name) {
this.name = name;
}
}
|
[
"git@stefan-marr.de"
] |
git@stefan-marr.de
|
d08771205cd191f150bebb06c0c8cb840aa4af5f
|
e05a3fdb246ae1b5d919280491907cac071c916e
|
/maximumProductSubarray.java
|
28dff7710b0a623fd773913d35b05eec0d3c6ffd
|
[] |
no_license
|
JamesJi9277/Algorithms
|
6991f05b05a3584d00b11eb1121e5434315f4776
|
deb272c5c89fc7387597ce8b8317f09dc3ec2d21
|
refs/heads/master
| 2021-01-17T09:55:01.681557
| 2017-03-06T00:17:27
| 2017-03-06T00:17:27
| 57,236,079
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 906
|
java
|
// Find the contiguous subarray within an array (containing at least one number)
// which has the largest product.
// For example, given the array [2,3,-2,4],
// the contiguous subarray [2,3] has the largest product = 6.
public class Solution{
public int maxProduct(int[] A){
if(A == null || A.length ==0)
return 0;
if(A.length ==1)
return A[0];
int maxlocal = A[0];
int minlocal = A[0];
int global = A[0];
for(int i =1;i<A.length;i++)
{
int maxcopy = maxlocal;
//求最小和求最大的方法是一样的,只不过因为考虑到了负数的存在,所以说每次需要加一个最小值
//最小值*A[i]有可能就会变成最大值。然后更新maxlocal就好了
maxlocal = Math.max(Math.max(A[i]*maxlocal,A[i]),A[i]*minlocal);
minlocal = Math.min(Math.min(A[i]*maxcopy,A[i]), A[i]*minlocal);
global = Math.max(global, maxlocal);
}
return global;
}
}
|
[
"jiqi@gwu.edu"
] |
jiqi@gwu.edu
|
51969b3959d77c91bf9f98bee1f51ac48911d4fe
|
3f71e0470b462c071ba54fadbe25080e43d169f9
|
/src/main/java/javaPractice/UseOtherClass.java
|
68279fa642e03b6e6a04a1644630c72cb789103a
|
[] |
no_license
|
18753377299/JavaPracticeMaven
|
017af4c603c1c6085e923973a3e0292aa8cb727b
|
4f373fbb17701689486ddfbb0fc2d7569cf3789b
|
refs/heads/master
| 2023-04-11T16:21:17.320828
| 2021-05-17T13:25:52
| 2021-05-17T13:25:52
| 321,356,310
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 565
|
java
|
package javaPractice;
public class UseOtherClass {
public static void main(String[] args) {
// TODO Auto-generated method stub
Person person=new Person();
person.useAxe(); // 空指针异常
// Axe axe =new Axe();
// 能够调用成功,所以如果想要 成功的话,需要我们使用spring注入
// System.out.println(axe.chop());
}
}
class Axe{
public String chop(){
return "chop";
}
}
class Person{
private Axe axe;
public void setAxe(Axe axe) {
this.axe = axe;
}
public void useAxe(){
System.out.println(axe.chop());
}
}
|
[
"1733856225@qq.com"
] |
1733856225@qq.com
|
8aaf56adab940c5a49acaef9f398b71bde3aa375
|
236a8581caf3e65c08dac7d3d6a5f508000eb998
|
/src/main/java/com/example/example/model/Ecole.java
|
3645bdb43029291d91d74704bd9626af3700edd2
|
[] |
no_license
|
freezerDB/example-springboot
|
1f7a0bc899b09d76a44533cf1d13fff6eab30a4a
|
25906ea6aea10bae36002a1e5281176d6b46448e
|
refs/heads/main
| 2023-04-20T20:46:15.001842
| 2021-05-12T21:07:15
| 2021-05-12T21:07:15
| 366,852,926
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,827
|
java
|
package com.example.example.model;
import javax.persistence.*;
import java.util.Set;
/*
Cette annotation @Entity indique via JPa qu'il faut creer une table Ecole dont les
colonnes sont les attributs de la classe.
*/
@Entity
public class Ecole {
/*
La premiere annotation Id va indiquer la clé primaire de cette table.
La seconde dit si elle est générée automatiquement. Ensuite il y a plusieurs stratégies pour les générer,
on fait ça en précisant la valeur strategy dans l'annotation. Dans notre exemple, on précise que c'est géré automatiquement par auto-incrémentation
*/
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Id
private Long id;
private String nom;
private String adresse;
private String ville;
/*
Cette annotation précise que dans notre schéma de base de données qui sera créée, la table Ecole est relié par une relation d'association
à la table Etudiant. Ici c'est une relation OneToMany car une ecole peut avoir plusieurs etudiants et un etudiant est dans une seule ecole.
*/
@OneToMany
Set<Etudiant> etudiants;
public Long getId() {
return id;
}
public String getNom() {
return nom;
}
public Set<Etudiant> getEtudiants() {
return etudiants;
}
public String getAdresse() {
return adresse;
}
public void setId(Long id) {
this.id = id;
}
public void setNom(String nom) {
this.nom = nom;
}
public void setAdresse(String adresse) {
this.adresse = adresse;
}
public void setEtudiants(Set<Etudiant> etudiants) {
this.etudiants = etudiants;
}
public String getVille() {
return ville;
}
public void setVille(String ville) {
this.ville = ville;
}
}
|
[
"="
] |
=
|
73abed8f81192379f2813d113ca1e4f4f87d0bf6
|
8e8c015a18eefc906e92e92dd2ccafa607165fbd
|
/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/redis/RedisAuthenticationProperties.java
|
2d3f2a8cd4263b67faaf072aa04895b65091a1f0
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-free-unknown"
] |
permissive
|
hxiangli/cas
|
6e26d2cc3d92d183f592382a214951c78f17f77f
|
31aeeec9033b98685d52b34249b101f9d13ee6be
|
refs/heads/master
| 2022-04-04T03:49:26.953386
| 2020-02-09T20:05:22
| 2020-02-09T20:05:22
| 239,459,364
| 1
| 0
|
Apache-2.0
| 2020-02-10T08:12:22
| 2020-02-10T08:12:22
| null |
UTF-8
|
Java
| false
| false
| 1,347
|
java
|
package org.apereo.cas.configuration.model.support.redis;
import org.apereo.cas.configuration.model.core.authentication.PasswordEncoderProperties;
import org.apereo.cas.configuration.model.core.authentication.PrincipalTransformationProperties;
import org.apereo.cas.configuration.support.RequiresModule;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
/**
* Configuration properties for Redis.
*
* @author Misagh Moayyed
* @since 6.1.0
*/
@RequiresModule(name = "cas-server-support-redis-authentication")
@Getter
@Setter
public class RedisAuthenticationProperties extends BaseRedisProperties {
private static final long serialVersionUID = -1232996050439638782L;
/**
* Principal transformation settings.
*/
@NestedConfigurationProperty
private PrincipalTransformationProperties principalTransformation = new PrincipalTransformationProperties();
/**
* The name of the authentication handler.
*/
private String name;
/**
* Password encoder settings for this handler.
*/
@NestedConfigurationProperty
private PasswordEncoderProperties passwordEncoder = new PasswordEncoderProperties();
/**
* Order of authentication handler in chain.
*/
private int order = Integer.MAX_VALUE;
}
|
[
"mm1844@gmail.com"
] |
mm1844@gmail.com
|
bf739a6c94f5777c3221475b8c7a26720b2965fc
|
9500b9629321a7ba55abb5c7def8c261722edea8
|
/ClipBoard/src/clipboard/model/UndoSystematicEdit.java
|
7cfc1863f7b9256c4d9b68186e97c7a75b9fbe18
|
[] |
no_license
|
lisahua/clipboard
|
120a50a4f3f27d322dbff0b846e5511c743596c0
|
4792b249e90451dfeb97c38e2b53033745e467c0
|
refs/heads/master
| 2021-01-01T16:39:20.445973
| 2016-02-19T16:13:32
| 2016-02-19T16:13:32
| 18,744,535
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,366
|
java
|
package clipboard.model;
import org.eclipse.core.resources.IFile;
import org.eclipse.jdt.ui.text.java.IJavaCompletionProposal;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import clipboard.model.parser.PreviewSyntaxChecker;
import clipboard.model.parser.QuickFixPerformer;
import clipboard.model.parser.RegionParser;
/**
* @Author Lisa
* @Date: May 4, 2014
*/
public class UndoSystematicEdit {
CheckItem item;
int offset = 0;
public int getOffset() {
return item.getOffset();
}
/**
* increase offset
*
* @param item
* @param offset
*/
public UndoSystematicEdit(Object node) {
this.item = new CheckItem((WeightedNode) node);
// this.offset = offset;
}
public void applyChange(int preOffset) {
IDocument doc = RegionParser.convertFileToDoc(item.getFile());
try {
doc.replace(item.getStartPos()+preOffset, item.getLength(), item.getPreview());
item = PreviewSyntaxChecker.checkFromProject(item);
item.setProposals(QuickFixPerformer.actionPerform(item));
} catch (BadLocationException e) {
e.printStackTrace();
}
}
public String[] getSyntaxError() {
return item.getErrorMsg();
}
public String[] getProposal() {
return item.getProposalString();
}
public IFile getFile() {
return item.getFile();
}
public CheckItem getItem() {
return item;
}
}
|
[
"lisahua46@gmail.com"
] |
lisahua46@gmail.com
|
007bd97806d2d9e49db763fcc3e52ff3f49a7d91
|
f5f2d3a992c1dd2eb1724451e82b56ad185007d2
|
/src/main/java/com/jdon/jivejdon/event/domain/consumer/write/updatemessage/MessageSaveListener.java
|
0838baaf4214143aa708e1f01e3d4dcd9068be67
|
[
"Apache-2.0"
] |
permissive
|
zscomehuyue/jivejdon
|
4912b456b09476851e8baf3df50269d050f14eeb
|
3f2ef3088184fe9c2128d8f0b5ab4110f9d2b847
|
refs/heads/master
| 2020-08-02T07:12:14.512305
| 2019-10-08T02:44:58
| 2019-10-08T02:44:58
| 211,272,769
| 0
| 0
| null | 2019-09-27T08:30:09
| 2019-09-27T08:30:08
| null |
UTF-8
|
Java
| false
| false
| 2,175
|
java
|
/*
* Copyright 2003-2009 the original author or authors.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.jdon.jivejdon.event.domain.consumer.write.updatemessage;
import com.jdon.annotation.Consumer;
import com.jdon.async.disruptor.EventDisruptor;
import com.jdon.domain.message.DomainEventHandler;
import com.jdon.jivejdon.event.domain.consumer.write.MessageTransactionPersistence;
import com.jdon.jivejdon.model.event.MessageUpdatedEvent;
import com.jdon.jivejdon.model.message.AnemicMessageDTO;
import com.jdon.jivejdon.repository.ForumFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@Consumer("saveMessage")
public class MessageSaveListener implements DomainEventHandler {
private final static Logger logger = LogManager.getLogger(MessageSaveListener.class);
protected MessageTransactionPersistence messageTransactionPersistence;
protected ForumFactory forumAbstractFactory;
public MessageSaveListener(MessageTransactionPersistence messageTransactionPersistence, ForumFactory forumAbstractFactory) {
super();
this.messageTransactionPersistence = messageTransactionPersistence;
this.forumAbstractFactory = forumAbstractFactory;
}
public void onEvent(EventDisruptor event, boolean endOfBatch) throws Exception {
MessageUpdatedEvent es = (MessageUpdatedEvent) event.getDomainMessage().getEventSource();
AnemicMessageDTO newForumMessageInputparamter = es.getNewForumMessageInputparamter();
if (newForumMessageInputparamter == null)
return;
try {
messageTransactionPersistence.updateMessage(newForumMessageInputparamter);
} catch (Exception e) {
logger.error(e);
}
}
}
|
[
"banq@163.com"
] |
banq@163.com
|
47ea9d5d4a4b000ebbb677d946c8143347f0d26f
|
ecb7e109a62f6a2a130e3320ed1fb580ba4fc2de
|
/reference-code/esr/esale-employees/src/main/java/jp/co/softbrain/esales/employees/web/rest/UpdateDisplayFirstScreenResource.java
|
6a2072588869d45a8d9a16c3009460c79cabceb3
|
[] |
no_license
|
nisheeth84/prjs_sample
|
df732bc1eb58bc4fd4da6e76e6d59a2e81f53204
|
3fb10823ca4c0eb3cd92bcd2d5d4abc8d59436d9
|
refs/heads/master
| 2022-12-25T22:44:14.767803
| 2020-10-07T14:55:52
| 2020-10-07T14:55:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,532
|
java
|
package jp.co.softbrain.esales.employees.web.rest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import jp.co.softbrain.esales.employees.service.EmployeesService;
import jp.co.softbrain.esales.employees.web.rest.vm.request.UpdateDisplayFirstScreenRequest;
import jp.co.softbrain.esales.employees.web.rest.vm.response.UpdateDisplayFirstScreenResponse;
/**
* Update Display First Screen
*
* @author TuanLV
*/
@RestController
@RequestMapping("/api")
public class UpdateDisplayFirstScreenResource {
@Autowired
private EmployeesService employeesService;
/**
* Update Display First Screen
*
* @param req - Employees and IsDisplayFirstScreen
* @return id employee
*/
@PostMapping(path = "/update-display-first-screen", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<UpdateDisplayFirstScreenResponse> updateDisplayFirstScreen(
@RequestBody UpdateDisplayFirstScreenRequest req) {
return ResponseEntity.ok(employeesService.updateDisplayFirstScreen(req.getEmployeeId(),
req.getIsDisplayFirstScreen(), req.getUpdatedDate()));
}
}
|
[
"phamkhachoabk@gmail.com"
] |
phamkhachoabk@gmail.com
|
0456fb467ca0fbf9ffb1368a2f80360e0db01310
|
59edd26866e43fd9d7451884060cad84f7c92f2f
|
/src/main/java/com/xthena/security/api/UserRequest.java
|
6ade1cbb7fbb854b8ac387eb15acc9ea43c0c865
|
[
"Apache-2.0"
] |
permissive
|
jianbingfang/xhf
|
fd61f49438721df84df4e009b1208622fca9f137
|
a9f008c904943e8a2cbed9c67e03e5c18c659444
|
refs/heads/master
| 2021-01-18T14:41:04.209961
| 2015-09-07T17:17:08
| 2015-09-07T17:17:08
| 33,782,876
| 2
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 167
|
java
|
package com.xthena.security.api;
public interface UserRequest {
String getId();
String getScopeId();
String getUsername();
String getPassword();
}
|
[
"jianbingfang@gmail.com"
] |
jianbingfang@gmail.com
|
ef96da38a141f8cf5094d00e3fb8023638db6ae5
|
aefc7957e92e39de0566b712727c7df66709886c
|
/src/main/java/com/aliyun/openservices/shade/io/netty/channel/nio/NioEventLoopGroup.java
|
d2c77c18048391461d2aa8b09914954afac7c897
|
[
"MIT"
] |
permissive
|
P79N6A/gw-boot-starter-aliyun-ons
|
71ff20d12c33fa9aa061c262f892d8bde7a93459
|
10ae89ce3e4f44edd383e472c987b0671244f1be
|
refs/heads/master
| 2020-05-19T10:05:00.665427
| 2019-05-05T01:42:57
| 2019-05-05T01:42:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,654
|
java
|
/*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package com.aliyun.openservices.shade.io.netty.channel.nio;
import com.aliyun.openservices.shade.io.netty.channel.Channel;
import com.aliyun.openservices.shade.io.netty.channel.DefaultSelectStrategyFactory;
import com.aliyun.openservices.shade.io.netty.channel.MultithreadEventLoopGroup;
import com.aliyun.openservices.shade.io.netty.channel.SelectStrategyFactory;
import com.aliyun.openservices.shade.io.netty.util.concurrent.EventExecutor;
import com.aliyun.openservices.shade.io.netty.util.concurrent.RejectedExecutionHandler;
import com.aliyun.openservices.shade.io.netty.util.concurrent.RejectedExecutionHandlers;
import java.nio.channels.Selector;
import java.nio.channels.spi.SelectorProvider;
import java.util.concurrent.ThreadFactory;
/**
* {@link MultithreadEventLoopGroup} implementations which is used for NIO {@link Selector} based {@link Channel}s.
*/
public class NioEventLoopGroup extends MultithreadEventLoopGroup {
/**
* Create a new instance using the default number of threads, the default {@link ThreadFactory} and
* the {@link SelectorProvider} which is returned by {@link SelectorProvider#provider()}.
*/
public NioEventLoopGroup() {
this(0);
}
/**
* Create a new instance using the specified number of threads, {@link ThreadFactory} and the
* {@link SelectorProvider} which is returned by {@link SelectorProvider#provider()}.
*/
public NioEventLoopGroup(int nThreads) {
this(nThreads, null);
}
/**
* Create a new instance using the specified number of threads, the given {@link ThreadFactory} and the
* {@link SelectorProvider} which is returned by {@link SelectorProvider#provider()}.
*/
public NioEventLoopGroup(int nThreads, ThreadFactory threadFactory) {
this(nThreads, threadFactory, SelectorProvider.provider());
}
/**
* Create a new instance using the specified number of threads, the given {@link ThreadFactory} and the given
* {@link SelectorProvider}.
*/
public NioEventLoopGroup(
int nThreads, ThreadFactory threadFactory, final SelectorProvider selectorProvider) {
this(nThreads, threadFactory, selectorProvider, DefaultSelectStrategyFactory.INSTANCE);
}
public NioEventLoopGroup(int nThreads, ThreadFactory threadFactory,
final SelectorProvider selectorProvider, final SelectStrategyFactory selectStrategyFactory) {
super(nThreads, threadFactory, selectorProvider, selectStrategyFactory, RejectedExecutionHandlers.reject());
}
public NioEventLoopGroup(int nThreads, ThreadFactory threadFactory,
final SelectorProvider selectorProvider,
final SelectStrategyFactory selectStrategyFactory,
final RejectedExecutionHandler rejectedExecutionHandler) {
super(nThreads, threadFactory, selectorProvider, selectStrategyFactory, rejectedExecutionHandler);
}
/**
* Sets the percentage of the desired amount of time spent for I/O in the child event loops. The default value is
* {@code 50}, which means the event loop will try to spend the same amount of time for I/O as for non-I/O tasks.
*/
public void setIoRatio(int ioRatio) {
for (EventExecutor e: children()) {
((NioEventLoop) e).setIoRatio(ioRatio);
}
}
/**
* Replaces the current {@link Selector}s of the child event loops with newly created {@link Selector}s to work
* around the infamous epoll 100% CPU bug.
*/
public void rebuildSelectors() {
for (EventExecutor e: children()) {
((NioEventLoop) e).rebuildSelector();
}
}
@Override
protected EventExecutor newChild(ThreadFactory threadFactory, Object... args) throws Exception {
return new NioEventLoop(this, threadFactory, (SelectorProvider) args[0],
((SelectStrategyFactory) args[1]).newSelectStrategy(), (RejectedExecutionHandler) args[2]);
}
}
|
[
"hf@geewit.io"
] |
hf@geewit.io
|
e3b561a0cc68ec0cd5f3c0d47a7ac83bcd3e0d47
|
c5679ee59de14eedc61c5dcd565eda44a996feb1
|
/presto-spi/src/main/java/io/prestosql/spi/seedstore/SeedStoreFactory.java
|
8c9c8bb0d460889b4057cd7843dc7bf96cbd2519
|
[
"Apache-2.0"
] |
permissive
|
chengpeng2015/hetu-core
|
58e02e087e82ed008de011f9e4e5ff96c396d180
|
5ddf288154909ddb505ca4a4ce5ba19d64fd94d3
|
refs/heads/master
| 2023-01-28T14:56:45.973460
| 2020-12-05T07:01:20
| 2020-12-05T07:01:20
| 319,274,123
| 1
| 0
|
Apache-2.0
| 2020-12-07T09:52:21
| 2020-12-07T09:52:21
| null |
UTF-8
|
Java
| false
| false
| 1,352
|
java
|
/*
* Copyright (C) 2018-2020. Huawei Technologies Co., Ltd. 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 io.prestosql.spi.seedstore;
import io.prestosql.spi.filesystem.HetuFileSystemClient;
import java.util.Map;
/**
* SeedStoreFactory that creates SeedStores
*
* @since 2020-03-04
*/
public interface SeedStoreFactory
{
/**
* Get the name of the seed store factory
*
* @return state store factory name
*/
String getName();
/**
* Create new seed store
*
* @param name name of the seed store
* @param fs {@link HetuFileSystemClient} that provides access to the seed file
* @param config seed store configurations
* @return created seed store
*/
SeedStore create(String name, HetuFileSystemClient fs, Map<String, String> config);
}
|
[
"7676181+fbird2020@user.noreply.gitee.com"
] |
7676181+fbird2020@user.noreply.gitee.com
|
cdb3522078451456cde7b943a02b23fd759fd147
|
46168d2aac88ea25fc1737e2d4a92aaac266d571
|
/core/src/test/java/com/nfsdb/model/RDFNode.java
|
f3adf5f42200622c3e73b76073ba3916c6c0ccde
|
[] |
no_license
|
wang-shun/nfsdb
|
6845a6da12fe4a918943395c7eeb40b6817404f0
|
02a5aaa4b043f49c0614880e34fd523843ad1981
|
refs/heads/master
| 2020-04-10T15:22:41.452217
| 2016-03-02T00:07:32
| 2016-03-02T00:07:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,240
|
java
|
/*******************************************************************************
* _ _ ___ ___ _ _
* | \| | __/ __| __| | |__
* | .` | _|\__ \/ _` | '_ \
* |_|\_|_| |___/\__,_|_.__/
*
* Copyright (c) 2014-2016. The NFSdb project and its contributors.
*
* 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.nfsdb.model;
@SuppressWarnings("unused")
public class RDFNode {
private String subj;
private String subjType;
private String predicate;
private String obj;
private String objType;
private long timestamp;
private boolean deleted;
public String getObj() {
return obj;
}
public RDFNode setObj(String obj) {
this.obj = obj;
return this;
}
public String getObjType() {
return objType;
}
public void setObjType(String objType) {
this.objType = objType;
}
public String getPredicate() {
return predicate;
}
public void setPredicate(String predicate) {
this.predicate = predicate;
}
public String getSubj() {
return subj;
}
public RDFNode setSubj(String subj) {
this.subj = subj;
return this;
}
public String getSubjType() {
return subjType;
}
public void setSubjType(String subjType) {
this.subjType = subjType;
}
public long getTimestamp() {
return timestamp;
}
public void setTimestamp(long timestamp) {
this.timestamp = timestamp;
}
public boolean isDeleted() {
return deleted;
}
public void setDeleted(boolean deleted) {
this.deleted = deleted;
}
}
|
[
"bluestreak@gmail.com"
] |
bluestreak@gmail.com
|
3bf93fd77ef7259ee5a8f36d14b6f9cd7c424544
|
9a713bf80c034f078159b52db9ace6d2fa4c94c9
|
/geobot-game/src/main/java/ru/geobot/game/objects/ObjectResources.java
|
e4c50246ebfc27a0460c688f2148632098d0ba39
|
[] |
no_license
|
JorgeAugusto/geobot
|
7f4df07ba67ad4737d16260bf93e409ca2203520
|
fc08e80c63bd589c0b1fcb97d0724c9ca5b0ed2f
|
refs/heads/master
| 2023-04-13T05:03:21.122926
| 2014-10-16T18:06:45
| 2014-10-16T18:06:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 823
|
java
|
package ru.geobot.game.objects;
import ru.geobot.ResourceSet;
import ru.geobot.resources.Image;
import ru.geobot.resources.PolygonalBodyFactory;
import ru.geobot.resources.ResourcePath;
/**
*
* @author Alexey Andreev <konsoletyper@gmail.com>
*/
@ResourceSet
public interface ObjectResources {
@ResourcePath("bucket1.png")
Image bucketImage();
@ResourcePath("bucket1-shape.txt")
PolygonalBodyFactory bucketShape();
@ResourcePath("bucket2.png")
Image bucketOnRopeImage();
@ResourcePath("bucket2-shape.txt")
PolygonalBodyFactory bucketOnRopeShape();
@ResourcePath("bucket2-clickable-shape.txt")
PolygonalBodyFactory bucketOnRopeClickableShape();
@ResourcePath("pick.png")
Image pickImage();
@ResourcePath("pick-shape.txt")
PolygonalBodyFactory pickShape();
}
|
[
"konsoletyper@gmail.com"
] |
konsoletyper@gmail.com
|
1ad7dc420bcd97f9b0bd0bd6b3ef5ed18c3bef8a
|
1ebbb3dc7d4fb2ae9bfdb728fe893fb6f8318d1d
|
/stocktrade/src/main/java/org/cldutil/xml/fixml/TrdRegTimestampsBlockT.java
|
3c806e2fc594648a13c49cc210cbe4ed03250214
|
[] |
no_license
|
phillipcheng/cldstock
|
e13aab60c7a82239dccce0058691dd6dfe391a71
|
f023674507390c66ead67dbce0d4ef61a0b1e30e
|
refs/heads/master
| 2021-01-22T11:27:55.235926
| 2017-09-01T17:06:38
| 2017-09-01T17:06:38
| 92,696,372
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,771
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.12.22 at 03:44:23 AM PST
//
package org.cldutil.xml.fixml;
import java.math.BigInteger;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for TrdRegTimestamps_Block_t complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="TrdRegTimestamps_Block_t">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{http://www.fixprotocol.org/FIXML-5-0-SP2}TrdRegTimestampsElements"/>
* </sequence>
* <attGroup ref="{http://www.fixprotocol.org/FIXML-5-0-SP2}TrdRegTimestampsAttributes"/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TrdRegTimestamps_Block_t")
public class TrdRegTimestampsBlockT {
@XmlAttribute(name = "TS")
protected XMLGregorianCalendar ts;
@XmlAttribute(name = "Typ")
protected BigInteger typ;
@XmlAttribute(name = "Src")
protected String src;
@XmlAttribute(name = "DskTyp")
protected DeskTypeEnumT dskTyp;
@XmlAttribute(name = "DskTypSrc")
protected BigInteger dskTypSrc;
@XmlAttribute(name = "DskOrdHndlInst")
protected CustOrderHandlingInstEnumT dskOrdHndlInst;
/**
* Gets the value of the ts property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getTS() {
return ts;
}
/**
* Sets the value of the ts property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setTS(XMLGregorianCalendar value) {
this.ts = value;
}
/**
* Gets the value of the typ property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getTyp() {
return typ;
}
/**
* Sets the value of the typ property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setTyp(BigInteger value) {
this.typ = value;
}
/**
* Gets the value of the src property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSrc() {
return src;
}
/**
* Sets the value of the src property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSrc(String value) {
this.src = value;
}
/**
* Gets the value of the dskTyp property.
*
* @return
* possible object is
* {@link DeskTypeEnumT }
*
*/
public DeskTypeEnumT getDskTyp() {
return dskTyp;
}
/**
* Sets the value of the dskTyp property.
*
* @param value
* allowed object is
* {@link DeskTypeEnumT }
*
*/
public void setDskTyp(DeskTypeEnumT value) {
this.dskTyp = value;
}
/**
* Gets the value of the dskTypSrc property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getDskTypSrc() {
return dskTypSrc;
}
/**
* Sets the value of the dskTypSrc property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setDskTypSrc(BigInteger value) {
this.dskTypSrc = value;
}
/**
* Gets the value of the dskOrdHndlInst property.
*
* @return
* possible object is
* {@link CustOrderHandlingInstEnumT }
*
*/
public CustOrderHandlingInstEnumT getDskOrdHndlInst() {
return dskOrdHndlInst;
}
/**
* Sets the value of the dskOrdHndlInst property.
*
* @param value
* allowed object is
* {@link CustOrderHandlingInstEnumT }
*
*/
public void setDskOrdHndlInst(CustOrderHandlingInstEnumT value) {
this.dskOrdHndlInst = value;
}
}
|
[
"phillipchengyi@gmail.com"
] |
phillipchengyi@gmail.com
|
c79c045cb90c105438b678e519fd35f5ce46d619
|
69005ab4c8cc5d88d7996d47ac8def0b28730b95
|
/android-medium/app/src/main/java/test/perf/MyPerfClass_1774.java
|
3eda27a3c0931158aa28aeb45ecbd44c43d66ede
|
[] |
no_license
|
sakerbuild/performance-comparisons
|
ed603c9ffa0d34983a7da74f7b2b731dc3350d7e
|
78cd8d7896c4b0255ec77304762471e6cab95411
|
refs/heads/master
| 2020-12-02T19:14:57.865537
| 2020-05-11T14:09:40
| 2020-05-11T14:09:40
| 231,092,201
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 803
|
java
|
package test.perf;
public class MyPerfClass_1774{
private final String property;
public MyPerfClass_1774(String param) {
this.property = param;
}
public String getProperty() {
return property;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((property == null) ? 0 : property.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
MyPerfClass_1774 other = (MyPerfClass_1774) obj;
if (property == null) {
if (other.property != null)
return false;
} else if (!property.equals(other.property))
return false;
return true;
}
}
|
[
"10866741+Sipkab@users.noreply.github.com"
] |
10866741+Sipkab@users.noreply.github.com
|
5f96287aa3a1714fe29984b2d66ac1e21dfbd12c
|
6c113afc3af758fa0edfa818c954d6d96d4cd286
|
/03. Exams/05. 07-December-2019/01. High Quality Structure/motocrossWorldChampionship/io/ReaderImpl.java
|
1c0386ba13eb4e2dd67294d54c5080820d060d80
|
[] |
no_license
|
AndreyKost/Java-OOP
|
60c5956e4c00877f22ed1235f2fe2cdda2e6dc0e
|
58cac676c67a7e73111f37b20ef1987c1076565c
|
refs/heads/master
| 2022-12-18T08:14:02.191925
| 2020-09-25T09:18:30
| 2020-09-25T09:18:30
| 298,519,550
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 359
|
java
|
package motocrossWorldChampionship.io;
import motocrossWorldChampionship.io.interfaces.InputReader;
import java.io.IOException;
import java.util.Scanner;
public class ReaderImpl implements InputReader {
Scanner scanner = new Scanner(System.in);
@Override
public String readLine() throws IOException {
return scanner.nextLine();
}
}
|
[
"anddy8@gmail.com"
] |
anddy8@gmail.com
|
5ba8fe3653c7a335693baaa7d4c1dc1a639377fc
|
a79d5bdbda3089b69165212936089b4ba524d662
|
/Java/Lab4/LAb4_Answer/PP4_6_MutiTable.java
|
8b36960edd7d5383d608acb4100fc5803d12d2f7
|
[] |
no_license
|
as5823934/Web-Mobile-Material
|
b29ad264c021a5356df35e57d1a8d1f8d42e4b84
|
f0162707558230fa573dc34173a9aa9592c748db
|
refs/heads/master
| 2020-03-21T04:25:23.861721
| 2018-06-21T02:14:33
| 2018-06-21T02:14:33
| 138,107,430
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 383
|
java
|
package PP_Excerice.PP4;
public class PP4_6_MutiTable {
public static void main(String[] args) {
int result;
for(int i = 1; i <= 12; i++){
for(int j = 1; j <= 12; j++){
result = j * i;
System.out.print(j + " * " + i + " = " + result + "\t\t");
}
System.out.println("\t");
}
}
}
|
[
"as5823934@gmail.com"
] |
as5823934@gmail.com
|
9a1da80d653e6eb7f4ecb2683aa849035bfd25f7
|
fbd8a8c6ddd67a49762a3f5916cdf61755738097
|
/java02/src/designpatterns/decorator/ThrowDecorator.java
|
9c0dc8e0244993adbf20d573b9eb4c1f28f3199d
|
[] |
no_license
|
MoonSungRyong/Java85-1
|
ae340ecb7be9662ef50f3a9be3872363c5f2d7b9
|
b8fbd6803c8e0dcf8a1ae2e01b3a4e38918bec97
|
refs/heads/master
| 2021-01-11T22:12:34.455940
| 2016-10-21T08:47:28
| 2016-10-21T08:47:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 286
|
java
|
package designpatterns.decorator;
public class ThrowDecorator extends Decorator {
public ThrowDecorator(Robot robot) {
super(robot);
body.attackPoint += 5;
}
@Override
public void run() {
body.run();
System.out.println("슈~~~~웅....맞아라!!!!");
}
}
|
[
"jinyoung.eom@gmail.com"
] |
jinyoung.eom@gmail.com
|
9365e0d4ebe754afa17f8b8ee77185e9319a9ceb
|
383763c5c4cefdf8d7793f35c17fdc4ca6beda54
|
/src/test/java/com/redhat/resource/param/resource/MultiValuedPathParam.java
|
9bde2d7c6e52000826c3b821a90c2fd975d43aab
|
[] |
no_license
|
mmadzin/jaxrs-integration-tests
|
efd1942e3d60e0383be62d4803248c42e059b62c
|
8b32471c025d7db4c75a7aaf5361bd3d038f1a7e
|
refs/heads/master
| 2021-11-23T14:59:40.626771
| 2021-10-27T08:53:18
| 2021-10-27T08:53:18
| 134,562,661
| 0
| 2
| null | 2019-11-14T11:13:30
| 2018-05-23T11:56:41
|
Java
|
UTF-8
|
Java
| false
| false
| 191
|
java
|
package com.redhat.resource.param.resource;
import java.util.LinkedList;
public class MultiValuedPathParam<E> extends LinkedList<E> {
private static final long serialVersionUID = 1L;
}
|
[
"IP0405cns"
] |
IP0405cns
|
b732552792b8cdc220d54976a17751cd916f5057
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/src/irvine/oeis/a213/A213880.java
|
0140b30320aa0cdaa26563a77e419025e522f2ba
|
[] |
no_license
|
flywind2/joeis
|
c5753169cf562939b04dd246f8a2958e97f74558
|
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
|
refs/heads/master
| 2020-09-13T18:34:35.080552
| 2019-11-19T05:40:55
| 2019-11-19T05:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 403
|
java
|
package irvine.oeis.a213;
import irvine.oeis.FiniteSequence;
/**
* A213880 <code>a(n) =</code> sum of n-digit numbers with distinct nonzero digits.
* @author Georg Fischer
*/
public class A213880 extends FiniteSequence {
/** Construct the sequence. */
public A213880() {
super(45, 3960, 279720, 16798320, 839991600L, 33599966400L, 1007999899200L, 20159999798400L, 201599999798400L);
}
}
|
[
"sean.irvine@realtimegenomics.com"
] |
sean.irvine@realtimegenomics.com
|
6ce1bd25b605d7109da46d75bc632ed2f85ee64c
|
c523fab3922b5480254329d79ad0052e2d5235b0
|
/sm-core/src/main/java/com/salesmanager/core/business/repositories/catalog/product/instance/ProductInstanceGroupRepository.java
|
e0fe3c30ed1384289bc7c63e8fce372f4c950922
|
[
"Apache-2.0"
] |
permissive
|
hungbang/shopizer
|
ebc0e4ef5ba945cd95c9524c3c393b510f66bae3
|
9a1602a664ab882b5420ff4339db45af44a48423
|
refs/heads/master
| 2023-03-15T23:21:25.884659
| 2022-10-18T01:47:40
| 2022-10-18T01:47:40
| 569,064,383
| 0
| 0
|
Apache-2.0
| 2022-11-22T02:03:37
| 2022-11-22T02:03:37
| null |
UTF-8
|
Java
| false
| false
| 1,560
|
java
|
package com.salesmanager.core.business.repositories.catalog.product.instance;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.salesmanager.core.model.catalog.product.instance.ProductInstanceGroup;
public interface ProductInstanceGroupRepository extends JpaRepository<ProductInstanceGroup, Long> {
@Query("select distinct p from ProductInstanceGroup p"
+ " left join fetch p.productInstances pp"
+ " left join fetch p.images ppi"
+ " left join fetch ppi.descriptions ppid "
+ " where p.id = ?1 and p.merchantStore.code = ?2")
Optional<ProductInstanceGroup> findOne(Long id, String storeCode);
@Query("select distinct p from ProductInstanceGroup p "
+ "left join fetch p.productInstances pp "
+ "left join fetch p.images ppi "
+ "left join fetch ppi.descriptions ppid "
+ "join fetch pp.product ppp "
+ "join fetch ppp.merchantStore pppm "
+ "where pp.id = ?1 and p.merchantStore.code = ?2")
Optional<ProductInstanceGroup> finByProductInstance(Long productInstanceId, String storeCode);
@Query("select distinct p from ProductInstanceGroup p "
+ "left join fetch p.productInstances pp "
+ "left join fetch p.images ppi "
+ "left join fetch ppi.descriptions ppid "
+ "join fetch pp.product ppp "
+ "join fetch ppp.merchantStore pppm "
+ "where ppp.id = ?1 and p.merchantStore.code = ?2")
List<ProductInstanceGroup> finByProduct(Long productId, String storeCode);
}
|
[
"csamson777@yahoo.com"
] |
csamson777@yahoo.com
|
fafd3c6c00d646f7b27472419d58557f0f99268a
|
256cffefe6fb79facfe7387e120ddc13418428eb
|
/spring-boot-config-validation/src/main/java/net/nicoll/boot/config/ConfigurationValidator.java
|
d4e9372768d10d3cd78e043449092714ae4254ad
|
[] |
no_license
|
ericbottard/spring-boot-config
|
d8773d7027a14368d64e1d88a482eeb813c1ef30
|
681c2c81c0093d5ce1f62df705fcadea60c1987d
|
refs/heads/master
| 2021-01-22T17:04:08.153278
| 2015-06-23T09:58:06
| 2015-06-23T09:58:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,688
|
java
|
package net.nicoll.boot.config;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.config.PropertiesFactoryBean;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.bind.RelaxedNames;
import org.springframework.boot.configurationprocessor.metadata.ConfigurationMetadata;
import org.springframework.boot.configurationprocessor.metadata.ItemMetadata;
import org.springframework.boot.configurationprocessor.metadata.JsonMarshaller;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
/**
*
* @author Stephane Nicoll
*/
@EnableAutoConfiguration
@Configuration
public class ConfigurationValidator implements CommandLineRunner {
private static final Log logger = LogFactory.getLog(ConfigurationValidator.class);
@Autowired
@Qualifier("advertizedProperties")
private Properties advertizedProperties;
@Autowired
private ConfigurationMetadata configurationMetadata;
private final Map<String, List<ItemMetadata>> items = new HashMap<String, List<ItemMetadata>>();
private final Map<String, List<ItemMetadata>> groups = new HashMap<String, List<ItemMetadata>>();
@PostConstruct
public void initialize() {
for (ItemMetadata item : configurationMetadata.getItems()) {
Map<String, List<ItemMetadata>> mapToUse =
(item.isOfItemType(ItemMetadata.ItemType.PROPERTY) ? this.items : this.groups);
List<ItemMetadata> list = mapToUse.get(item.getName());
if (list == null) {
list = new ArrayList<ItemMetadata>();
mapToUse.put(item.getName(), list);
}
list.add(item);
}
}
@Override
public void run(String... args) throws Exception {
List<String> found = new ArrayList<String>();
List<String> undocumented = new ArrayList<String>();
List<String> unresolved = new ArrayList<String>();
// Generate relax names for all properties
List<ConfigKeyCandidates> advertized = new ArrayList<ConfigKeyCandidates>();
for (Object item : advertizedProperties.keySet()) {
advertized.add(new ConfigKeyCandidates((String) item));
}
// Check advertized properties
for (ConfigKeyCandidates propertyItem : advertized) {
String key = getDocumentedKey(propertyItem);
if (key != null) {
found.add(key);
}
else {
unresolved.add(propertyItem.item);
}
}
// Check non advertized properties
for (String key : this.items.keySet()) {
if (!found.contains(key)) {
undocumented.add(key);
}
}
StringBuilder sb = new StringBuilder("\n");
sb.append("Configuration key statistics").append("\n");
sb.append("Advertized keys: ").append(advertizedProperties.size()).append("\n");
sb.append("Repository items: ").append(configurationMetadata.getItems().size()).append("\n");
sb.append("Matching items: ").append(found.size()).append("\n");
sb.append("Unresolved items (found in documentation but not in generated metadata): ").append(unresolved.size()).append("\n");
sb.append("Undocumented items (found in generated metadata but not in documentation): ").append(undocumented.size()).append("\n");
sb.append("\n");
sb.append("\n");
sb.append("Unresolved items").append("\n");
sb.append("----------------").append("\n");
Collections.sort(unresolved);
for (String id : unresolved) {
sb.append(id).append("\n");
}
sb.append("\n");
sb.append("Undocumented items").append("\n");
sb.append("--------------------").append("\n");
List<String> ids = new ArrayList<String>();
for (String item : undocumented) {
ids.add(item);
}
Collections.sort(ids);
for (String id : ids) {
sb.append(id).append("\n");
}
logger.info(sb.toString());
}
private String getDocumentedKey(ConfigKeyCandidates candidates) {
for (String candidate : candidates) {
boolean hasKey = this.items.containsKey(candidate);
if (hasKey) {
return candidate;
}
}
return null;
}
@Bean
public ConfigurationMetadata configurationMetadata() throws IOException {
Resource[] resources = new PathMatchingResourcePatternResolver()
.getResources("classpath*:META-INF/spring-configuration-metadata.json");
JsonMarshaller marshaller = new JsonMarshaller();
ConfigurationMetadata metadata = new ConfigurationMetadata();
for (Resource resource : resources) {
metadata.addAll(readMetadata(marshaller, resource));
}
return metadata;
}
private ConfigurationMetadata readMetadata(JsonMarshaller marshaller, Resource resource) throws IOException {
InputStream in = resource.getInputStream();
try {
return marshaller.read(in);
}
finally {
in.close();
}
}
@Bean
public PropertiesFactoryBean advertizedProperties() {
PropertiesFactoryBean factory = new PropertiesFactoryBean();
factory.setLocation(new PathMatchingResourcePatternResolver().getResource("classpath:advertized.properties"));
return factory;
}
public static void main(String[] args) {
SpringApplication.run(ConfigurationValidator.class, args);
}
private static class ConfigKeyCandidates implements Iterable<String> {
private final String item;
private final Set<String> values;
private ConfigKeyCandidates(String item) {
this.item = item;
this.values = initialize(item);
}
@Override
public Iterator<String> iterator() {
return this.values.iterator();
}
private static Set<String> initialize(String item) {
String itemToUse = item;
if (itemToUse.endsWith(".*")) {
itemToUse = itemToUse.substring(0, itemToUse.length() - 2);
}
Set<String> values = new LinkedHashSet<String>();
int i = itemToUse.lastIndexOf('.');
if (i == -1) {
for (String o : new RelaxedNames(itemToUse)) {
values.add(o);
}
}
else {
String prefix = itemToUse.substring(0, i + 1);
String suffix = itemToUse.substring(i + 1, itemToUse.length());
for (String value : new RelaxedNames(suffix)) {
values.add(prefix + value);
}
}
return values;
}
}
}
|
[
"snicoll@pivotal.io"
] |
snicoll@pivotal.io
|
157e44a40d903ca94cc357f2dae3eb403f7b760a
|
16b405d36a6f814babd4b253cd45289db574a2aa
|
/graphviz-java/src/test/java/guru/nidi/graphviz/attribute/ColorTest.java
|
6d2ff92987a11c5917e3d43627966b0c06f3ffff
|
[
"Apache-2.0"
] |
permissive
|
TMADanhNguyen/graphviz-java
|
dbe2cf4170c035d21070186bfe8fcee34d52a971
|
f0c1fdfa37c8b9876ef1dcccec1a6c19219e727e
|
refs/heads/master
| 2023-05-06T17:27:08.647311
| 2021-03-03T22:38:26
| 2021-03-03T22:38:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,524
|
java
|
/*
* Copyright © 2015 Stefan Niederhauser (nidin@gmx.ch)
*
* 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 guru.nidi.graphviz.attribute;
import org.junit.jupiter.api.Test;
import static guru.nidi.graphviz.attribute.Attributes.attr;
import static guru.nidi.graphviz.attribute.Attributes.attrs;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
class ColorTest {
@Test
void simple() {
assertColor(attr("color", "azure"), Color.AZURE);
}
@Test
void fill() {
assertColor(attr("fillcolor", "azure"), Color.AZURE.fill());
}
@Test
void background() {
assertColor(attr("bgcolor", "azure"), Color.AZURE.background());
}
@Test
void font() {
assertColor(attr("fontcolor", "azure"), Color.AZURE.font());
}
@Test
void labelFont() {
assertColor(attr("labelfontcolor", "azure"), Color.AZURE.labelFont());
}
@Test
void rgbNok() {
assertThrows(IllegalArgumentException.class, () -> Color.rgb("123"));
}
@Test
void rgbOk() {
assertColor(attr("color", "#123456"), Color.rgb("123456"));
}
@Test
void rgbOkWithHash() {
assertColor(attr("color", "#123456"), Color.rgb("#123456"));
}
@Test
void rgbaNok() {
assertThrows(IllegalArgumentException.class, () -> Color.rgba("123456"));
}
@Test
void rgbaOk() {
assertColor(attr("color", "#12345678"), Color.rgba("12345678"));
}
@Test
void rgbaOkWithHash() {
assertColor(attr("color", "#12345678"), Color.rgba("#12345678"));
}
@Test
void rgbInt() {
assertColor(attr("color", "#f008ff"), Color.rgb(0xf008ff));
}
@Test
void rgbaInt() {
assertColor(attr("color", "#f008fff8"), Color.rgba(0xf8f008ff));
}
@Test
void hsv() {
assertColor(attr("color", "0.12 0.34 0.56"), Color.hsv(.12, .34, .56));
}
@Test
void and() {
assertColor(attr("color", "red:blue"), Color.RED.and(Color.BLUE));
}
@Test
void andAt() {
assertColor(attr("color", "red:blue;0.3"), Color.RED.and(Color.BLUE, .3));
}
@Test
void angle() {
assertEquals(attrs(attr("color", "red"), attr("gradientangle", 45)), Color.RED.angle(45));
}
@Test
void radial() {
assertEquals(attrs(attr("color", "red"), attr("style", "radial"), attr("gradientangle", 45)),
Color.RED.radial(45));
}
@Test
void striped() {
assertEquals(attrs(attr("color", "red:green"), attr("style", "striped")),
Color.RED.and(Color.GREEN).striped());
}
@Test
void wedged() {
assertEquals(attrs(attr("color", "red:blue:green"), attr("style", "wedged")),
Color.RED.and(Color.BLUE, Color.GREEN).wedged());
}
private void assertColor(Attributes value, Color color) {
assertEquals(value, attrs(color));
}
}
|
[
"ghuder5@gmx.ch"
] |
ghuder5@gmx.ch
|
674ec1946850b8480e6d520d43c60e56ae81ed1b
|
5e42a7eb3d4a68dfdae535bfdade1efb95165c4d
|
/程序员代码面试指南/数组与矩阵问题/需要排序的最短子数组长度.java
|
cf8c5bc64709d171473d21833f7bb27b51c89f62
|
[] |
no_license
|
zoe1101/review_java
|
165ff9284d9e7b1bfbbfc0affe2ea8a1274e58cb
|
d4f2faf357e402d3cd0ee59aff49c2ee14a643c0
|
refs/heads/master
| 2020-05-01T07:53:51.131170
| 2019-07-06T06:35:30
| 2019-07-06T06:35:30
| 177,363,222
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 871
|
java
|
package 数组与矩阵问题;
public class 需要排序的最短子数组长度 {
public static int getMinLength(int[] arr) {
if (arr==null ||arr.length<=1) {
return 0;
}
//假设arr[noMinIndex:noMaxIndex]是需要排序的部分
int min=arr[arr.length-1]; //从右至左遍历时,右侧出现过的最小值
int noMinIndex=-1;
int max=arr[0]; //从左至右遍历时,左侧出现过的最大值
int noMaxIndex=-1;
for (int i = arr.length-1; i >=0; i--) {
if (arr[i]>min) { //有序
noMinIndex=i;
}else {
min=Math.min(arr[i], min);
}
}
if (noMinIndex==-1) { //整体有序,无需继续排序
return 0;
}
for (int i = 0; i < arr.length; i++) {
if (arr[i]<max) { //有序
noMaxIndex=i;
}else {
max=Math.max(arr[i], max);
}
}
return noMaxIndex-noMinIndex+1;
}
}
|
[
"tangli.1994@163.com"
] |
tangli.1994@163.com
|
c1f1d1b5d9aca90a6b45020349c188df56ed536e
|
8145261ab0a5b5d59cf8e74985880a092195e858
|
/shijingsh-ai-data/src/main/java/com/shijingsh/ai/data/IntegerArray.java
|
d92c25e6e7ec96b9d2f067b1b54d20c661609998
|
[
"Apache-2.0"
] |
permissive
|
shijingsh/shijingsh-ai2
|
2a02da7aa17d2e6feb69f12a9b873f4554b2d074
|
1d51bea3472d86a71a934de2f866c09ab2b4fa06
|
refs/heads/master
| 2023-04-01T00:31:59.004605
| 2021-04-02T02:58:53
| 2021-04-02T02:58:53
| 282,335,073
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,918
|
java
|
package com.shijingsh.ai.data;
import java.util.ArrayList;
/**
* 整型数组
*
* @author Birdy
*
*/
public class IntegerArray implements CapacityArray {
/** 最大容量 */
private int maximumCapacity;
/** 最小容量 */
private int minimumCapacity;
private int[] current;
private ArrayList<int[]> datas;
/** 大小 */
private int size;
public IntegerArray() {
this(1000, 1000 * 1000 * 1000);
}
public IntegerArray(int minimumCapacity, int maximumCapacity) {
this.minimumCapacity = minimumCapacity;
this.maximumCapacity = maximumCapacity;
if (minimumCapacity == 0 && maximumCapacity == 0) {
this.datas = new ArrayList<>(0);
} else {
this.datas = new ArrayList<>(maximumCapacity / minimumCapacity + (maximumCapacity % minimumCapacity == 0 ? 0 : 1));
}
this.size = 0;
}
public void associateData(int data) {
int position = size++ % minimumCapacity;
if (position == 0) {
if (size > maximumCapacity) {
current = null;
throw new IllegalStateException();
} else {
current = new int[minimumCapacity];
datas.add(current);
}
}
current[position] = data;
}
public int getData(int cursor) {
return datas.get(cursor / minimumCapacity)[cursor % minimumCapacity];
}
public void setData(int cursor, int data) {
datas.get(cursor / minimumCapacity)[cursor % minimumCapacity] = data;
}
@Override
public int getMaximumCapacity() {
return maximumCapacity;
}
@Override
public int getMinimumCapacity() {
return minimumCapacity;
}
@Override
public int getSize() {
return size;
}
}
|
[
"liukefu2050@sina.com"
] |
liukefu2050@sina.com
|
1cfd3d424031f26c55f63192ddbe07e7f319c7ec
|
e19588bde506681ce5b33d452a1fb4a50a418838
|
/eshop/src/main/java/online/shixun/demo/eshop/module/product/controller/EshopProductController.java
|
aa28ccd8583e3063e7877c793c8e733527ac7371
|
[] |
no_license
|
yuanyixiong/SpringBoot
|
6b3cfc133804dc7e825a70e4bc66d6fc8e622881
|
aebedba43bde57d6f4d34e53e845f849f1aeee0c
|
refs/heads/master
| 2020-03-21T04:51:38.419780
| 2018-06-21T06:50:39
| 2018-06-21T06:50:59
| 138,130,982
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,077
|
java
|
/********************************************
* Copyright (c) , shixun.online
*
* All rights reserved
*
*********************************************/
package online.shixun.demo.eshop.module.product.controller;
import com.github.pagehelper.PageInfo;
import online.shixun.demo.eshop.core.service.Node;
import online.shixun.demo.eshop.core.service.SlideshowEnum;
import online.shixun.demo.eshop.dto.*;
import online.shixun.demo.eshop.module.activity.service.EshopActivityService;
import online.shixun.demo.eshop.module.product.service.EshopProductService;
import online.shixun.demo.eshop.module.slideshow.service.EshopSlideshowService;
import online.shixun.demo.eshop.module.type.service.EshopTypeService;
import online.shixun.demo.eshop.module.user.service.EshopResourceService;
import org.apache.logging.log4j.util.Strings;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
/**
* 产品
*/
@RestController
@RequestMapping(value = "/product")
public class EshopProductController {
private Logger logger = LoggerFactory.getLogger(getClass());
@Autowired
private EshopResourceService resourceService;
@Autowired
private EshopProductService productService;
@Autowired
private EshopSlideshowService slideshowService;
@Autowired
private EshopActivityService activityService;
@Autowired
private EshopTypeService typeService;
@Value("${system.page.productSize}")
private Integer pageSize;
@GetMapping("/detail")
public ModelAndView detail(ModelAndView mav, String productId, String skuId) {
//加载水平导航栏菜单
List<Node<EshopResource>> levelNavigationMenu = resourceService.initLevelNavigation();
//加载垂直导航栏菜单
List<Node<EshopResource>> verticalNavigationMenu = resourceService.initVerticalNavigation();
//设置数据到请求中
mav.addObject("levelNavigationMenu", levelNavigationMenu);
mav.addObject("verticalNavigationMenu", verticalNavigationMenu);
//商品
EshopProductWithBLOBs product = productService.getProduct(productId);
mav.addObject("product", product);
mav.addObject("skuId", skuId);//单击的销售单元
//商品类型路径
List<EshopType> parents = typeService.initParentNode(product.getTypeId());
Collections.sort(parents, (o1, o2) -> -1);//倒序
mav.addObject("parents", parents);//父类型类型
mav.setViewName("detail");
return mav;
}
/**
* 跳转商品列表页
*
* @param mav
* @param pageNum
* @param classifyChecked
* @return
*/
@RequestMapping(value = "/category", method = {RequestMethod.GET, RequestMethod.POST})
public ModelAndView category(ModelAndView mav,
@RequestParam(defaultValue = "1") Integer pageNum,
String classifyChecked,
@RequestParam(defaultValue = "") String typesChecked,
@RequestParam(defaultValue = "") String colorsChecked,
@RequestParam(defaultValue = "") String brandsChecked,
@RequestParam(defaultValue = "") String sizesChecked,
String productName,
@RequestParam(defaultValue = "1000") Integer priceMax,
@RequestParam(defaultValue = "0") Integer currentPrice) {
//加载水平导航栏菜单
List<Node<EshopResource>> levelNavigationMenu = resourceService.initLevelNavigation();
//加载垂直导航栏菜单
List<Node<EshopResource>> verticalNavigationMenu = resourceService.initVerticalNavigation();
//设置数据到请求中
mav.addObject("levelNavigationMenu", levelNavigationMenu);
mav.addObject("verticalNavigationMenu", verticalNavigationMenu);
//控制筛选部分默认勾选
mav.addObject("productName", productName);
mav.addObject("classifyChecked", classifyChecked);
mav.addObject("typesChecked", typesChecked.split(","));//选中的类型id数组
mav.addObject("priceMax", priceMax);//商品价格限定区间0-priceMax
mav.addObject("currentPrice", currentPrice);//当前商品价格
mav.addObject("colorsChecked", colorsChecked.split(","));//选中的颜色id数组
mav.addObject("brandsChecked", brandsChecked.split(","));//选中的品牌id数组
mav.addObject("sizesChecked", sizesChecked.split(","));//选中的尺码id数组
//加载轮播图
List<EshopSlideshow> slideshows = slideshowService.getSlideshows(SlideshowEnum.CATEGORY_MAIN);
mav.addObject("slideshows", slideshows);
//加载热门活动
List<EshopActivity> activitys = activityService.getActivitys(null);
mav.addObject("activitys", activitys);
mav.setViewName("category");
return mav;
}
/**
* 加载商品列表
*
* @param mav
* @param productName 商品名称
* @param type 父类型id
* @param types 子类型id数组字符串","分割 示例:1,2,4
* @param prices 价格数组(最低-最高)字符串","分割 示例:0-50,200-300,800-1500
* @param colors 颜色id数组字符串","分割 示例:1,2,4
* @param brands 品牌id数组字符串","分割 示例:1,2,4
* @param sizes 尺码id数组字符串","分割 示例:1,2,4
* @param pageNum 页码
* @return
*/
@GetMapping("/getProducts")
public ModelAndView getProducts(ModelAndView mav,
@RequestParam(defaultValue = "") String productName,
@RequestParam(defaultValue = "") String type,
@RequestParam(defaultValue = "") String types,
@RequestParam(defaultValue = "") String prices,
@RequestParam(defaultValue = "") String colors,
@RequestParam(defaultValue = "") String brands,
@RequestParam(defaultValue = "") String sizes,
@RequestParam(defaultValue = "1") Integer pageNum) {
logger.info("pageNum:" + pageNum);
logger.info("productName:" + productName);
logger.info("type:" + type);
logger.info("types:" + types);
logger.info("prices:" + prices);
logger.info("colors:" + colors);
logger.info("brands:" + brands);
logger.info("sizes:" + sizes);
//拆分数组成集合
Set<String> types_set = Arrays.stream(types.split(",")).filter(Strings::isNotBlank).collect(Collectors.toSet());
Set<String> prices_set = Arrays.stream(prices.split(",")).filter(Strings::isNotBlank).collect(Collectors.toSet());
Set<String> colors_set = Arrays.stream(colors.split(",")).filter(Strings::isNotBlank).collect(Collectors.toSet());
Set<String> brands_set = Arrays.stream(brands.split(",")).filter(Strings::isNotBlank).collect(Collectors.toSet());
Set<String> sizes_set = Arrays.stream(sizes.split(",")).filter(Strings::isNotBlank).collect(Collectors.toSet());
//查询商品
PageInfo<EshopProductWithBLOBs> pageInfo = productService.getProducts(productName, type, types_set, prices_set, colors_set, brands_set, sizes_set, pageNum, this.pageSize);
mav.addObject("pageInfo", pageInfo);
mav.setViewName("fragment/category/products");
return mav;
}
}
|
[
"15926499574@163.com"
] |
15926499574@163.com
|
65d0381a5e86133e4f981053764f55c78aec3efe
|
06fea11d2964134cc8bd10488fbc704853869e88
|
/HwajungHS/src/hwajunghighschool/deb/kim/rss/InfoRSSActivity.java
|
0904770743b8856b8919dc347e40c2fb30481e6b
|
[
"Apache-2.0"
] |
permissive
|
linukzz/new-android-projects
|
6efcf1a92b1c5e588eca7e54b9232fe71546553d
|
338fb0c9a2a7edeca58b9ec3d2acd5e8aff16379
|
refs/heads/master
| 2021-05-13T22:45:54.397856
| 2018-04-04T13:54:21
| 2018-04-04T13:54:21
| 116,495,157
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 2,827
|
java
|
package hwajunghighschool.deb.kim.rss;
import hwajunghighschool.deb.kim.R;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.ActionBar;
import android.content.Context;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.widget.ArrayAdapter;
public class InfoRSSActivity extends FragmentActivity implements
ActionBar.OnNavigationListener {
@SuppressLint("NewApi")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_rss_main);
// Set up the action bar to show a dropdown list.
final ActionBar actionBar = getActionBar();
actionBar.setDisplayShowTitleEnabled(false);
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
// Set up the dropdown list navigation in the action bar.
actionBar.setListNavigationCallbacks(
// Specify a SpinnerAdapter to populate the dropdown list.
new ArrayAdapter<String>(getActionBarThemedContextCompat(),
android.R.layout.simple_list_item_1,
android.R.id.text1, new String[] {
getString(R.string.rss_full),
getString(R.string.rss_info),
getString(R.string.rss_noti) }), this);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
}
}
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
private Context getActionBarThemedContextCompat() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
return getActionBar().getThemedContext();
} else {
return this;
}
}
@Override
public boolean onNavigationItemSelected(int position, long id) {
// When the given dropdown item is selected, show its contents in the
// container view.
getSupportFragmentManager()
.beginTransaction()
.replace(R.id.container,
getFragmentView(getApplicationContext(), position))
.commit();
return true;
}
private Fragment getFragmentView(Context mContext, int position) {
switch (position) {
case 0:
return new RssFull(mContext);
case 1:
/**
* mUrl = http://wondanghs.tistory.com/category/대회정보?page=
*/
return new RssInfo(
mContext,
"http://wondanghs.tistory.com/category/%EB%8C%80%ED%9A%8C%EC%A0%95%EB%B3%B4?page=");
case 2:
/**
* mUrl = http://wondanghs.tistory.com/category/알림판?page=
*/
return new RssInfo(mContext,
"http://wondanghs.tistory.com/category/%EC%95%8C%EB%A6%BC%ED%8C%90?page=");
}
return null;
}
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
}
}
|
[
"private87172@gmail.com"
] |
private87172@gmail.com
|
27cbff0ea2a24f290fdc8eb0ab60d81744b5a929
|
350ca0471d643d7b4af3d576506cfa66db4ae138
|
/app/src/main/java/com/autoever/apay_user_app/data/model/api/AccountRegisterRequest.java
|
7ee9ac5cb6e0910f61fbb81975f562221ddd6b4d
|
[] |
no_license
|
myhency/apay-user-app-mvvm
|
4b057e5a4a6c218e045f70dd3bff13fd056f1b0d
|
ac92b388ef2196658e7aa60e53f082ae633e31c3
|
refs/heads/master
| 2022-12-11T17:00:00.098757
| 2020-09-20T02:02:47
| 2020-09-20T02:02:47
| 278,596,429
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,267
|
java
|
package com.autoever.apay_user_app.data.model.api;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* {
* "settleBankUniqueId": "uniqueId",
* "withdrawBankCode": "002",
* "withdrawAccountNumber": "001000100001001",
* "identificationNumber": "9104192",
* "phoneNumber": "01030887369",
* "authenticationMethod": "ARS",
* "subscriberId": 4
* }
*/
public class AccountRegisterRequest {
@Expose
@SerializedName("settleBankUniqueId")
private String settleBankUniqueId;
@Expose
@SerializedName("withdrawBankCode")
private String withdrawBankCode;
@Expose
@SerializedName("withdrawAccountNumber")
private String withdrawAccountNumber;
@Expose
@SerializedName("identificationNumber")
private String identificationNumber;
@Expose
@SerializedName("phoneNumber")
private String phoneNumber;
@Expose
@SerializedName("authenticationMethod")
private String authenticationMethod;
@Expose
@SerializedName("subscriberId")
private Long subscriberId;
public AccountRegisterRequest(String settleBankUniqueId, String withdrawBankCode, String withdrawAccountNumber, String identificationNumber, String phoneNumber, String authenticationMethod, Long subscriberId) {
this.settleBankUniqueId = settleBankUniqueId;
this.withdrawBankCode = withdrawBankCode;
this.withdrawAccountNumber = withdrawAccountNumber;
this.identificationNumber = identificationNumber;
this.phoneNumber = phoneNumber;
this.authenticationMethod = authenticationMethod;
this.subscriberId = subscriberId;
}
public String getSettleBankUniqueId() {
return settleBankUniqueId;
}
public String getWithdrawBankCode() {
return withdrawBankCode;
}
public String getWithdrawAccountNumber() {
return withdrawAccountNumber;
}
public String getIdentificationNumber() {
return identificationNumber;
}
public String getPhoneNumber() {
return phoneNumber;
}
public String getAuthenticationMethod() {
return authenticationMethod;
}
public Long getSubscriberId() {
return subscriberId;
}
}
|
[
"hency.yeo@gmail.com"
] |
hency.yeo@gmail.com
|
888cad0e3198d81f4cd8415973f1e6f2a0fd129d
|
2bc2eadc9b0f70d6d1286ef474902466988a880f
|
/tags/mule-1.3.2/core/src/main/java/org/mule/util/XMLEntityCodec.java
|
fd1138a73c24bffaa79053561778ee40cf09e456
|
[] |
no_license
|
OrgSmells/codehaus-mule-git
|
085434a4b7781a5def2b9b4e37396081eaeba394
|
f8584627c7acb13efdf3276396015439ea6a0721
|
refs/heads/master
| 2022-12-24T07:33:30.190368
| 2020-02-27T19:10:29
| 2020-02-27T19:10:29
| 243,593,543
| 0
| 0
| null | 2022-12-15T23:30:00
| 2020-02-27T18:56:48
| null |
UTF-8
|
Java
| false
| false
| 866
|
java
|
/*
* $Id$
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
*
* The software in this package is published under the terms of the MuleSource MPL
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.util;
import org.apache.commons.lang.MuleEntities;
// @ThreadSafe
public class XMLEntityCodec
{
public static String encodeString(String str)
{
if (StringUtils.isEmpty(str))
{
return str;
}
return MuleEntities.escape(str);
}
public static String decodeString(String str)
{
if (StringUtils.isEmpty(str))
{
return str;
}
return MuleEntities.unescape(str);
}
}
|
[
"aperepel@bf997673-6b11-0410-b953-e057580c5b09"
] |
aperepel@bf997673-6b11-0410-b953-e057580c5b09
|
5c6df1c2b5f6c03e04cbb24dc8f895cadf26b544
|
b7179bb0f98adf47bcb7ab5c840b635ae47201d7
|
/src/main/java/com/javafast/api/qywxs/message/req/TextMessage.java
|
b80bc8c75f972bcb4e4157bf3bd97ea490ca9f4e
|
[] |
no_license
|
stormmain/javafastProj
|
8088c51314189fda0f1ad53fd4c6a48a39107c20
|
8fbf7efd354d83e29fe6d3a596eaa43b9f56732f
|
refs/heads/master
| 2022-12-26T15:06:38.929118
| 2019-09-12T15:56:48
| 2019-09-12T15:56:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 285
|
java
|
package com.javafast.api.qywxs.message.req;
public class TextMessage extends BaseMessage {
// 消息内容
private String Content;
public String getContent() {
return Content;
}
public void setContent(String content) {
Content = content;
}
}
|
[
"a@Lenovo-PC"
] |
a@Lenovo-PC
|
73f079823ba5c55dd00cd6569284fae8927143fe
|
35b6d07e87e030bf5c8fa6145ee99da49d88120d
|
/api-center-zy/src/main/java/com/ejushang/steward/openapicenter/zy/api/aceess/response/MealSetGetResponseAbstract.java
|
ba48cec94f7b954b689d5eef9e8d283033b03c4c
|
[] |
no_license
|
mrzeng/krqsteward2.0
|
cf6636a0795e9ceda591db2878a066fab134e855
|
e9bc1a464f6867268dfaafa5e52692629573a188
|
refs/heads/master
| 2020-12-25T12:18:23.278810
| 2014-08-28T05:43:00
| 2014-08-28T05:43:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 739
|
java
|
package com.ejushang.steward.openapicenter.zy.api.aceess.response;
import com.ejushang.steward.openapicenter.zy.api.aceess.domain.MealSet;
import com.ejushang.steward.openapicenter.zy.api.aceess.domain.OperateTypeBean;
import com.ejushang.steward.openapicenter.zy.api.aceess.util.ApiListField;
import java.util.List;
/**
* User: Sed.Lee(李朝)
* Date: 14-8-25
* Time: 下午6:19
*/
public class MealSetGetResponseAbstract extends AbstractOperatePageGetResponse {
@ApiListField("data")
private List<MealSet> data;
@Override
public List<MealSet> getData() {
return data;
}
@Override
public void setData(List<? extends OperateTypeBean> data) {
this.data = (List<MealSet>) data;
}
}
|
[
"geniuslizhao@gmail.com"
] |
geniuslizhao@gmail.com
|
52c7e1448b72e2f814754b153bb288b49c972238
|
7a21ff93edba001bef328a1e927699104bc046e5
|
/project-parent/module-parent/core-module-parent/water-core/src/main/java/com/dotop/smartwater/project/module/core/water/dto/MarkOrderDto.java
|
2411416a8bc0c4ce1d4d9b5dd8410dfd85363a86
|
[] |
no_license
|
150719873/zhdt
|
6ea1ca94b83e6db2012080f53060d4abaeaf12f5
|
c755dacdd76b71fd14aba5e475a5862a8d92c1f6
|
refs/heads/master
| 2022-12-16T06:59:28.373153
| 2020-09-14T06:57:16
| 2020-09-14T06:57:16
| 299,157,259
| 1
| 0
| null | 2020-09-28T01:45:10
| 2020-09-28T01:45:10
| null |
UTF-8
|
Java
| false
| false
| 697
|
java
|
package com.dotop.smartwater.project.module.core.water.dto;
import com.dotop.smartwater.dependence.core.common.BaseDto;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 标记账单异常
*
同order_mark
*/
// 表存在
@Data
@EqualsAndHashCode(callSuper = false)
public class MarkOrderDto extends BaseDto {
private String id;
/** 账单流水号 */
private String tradeno;
/** 标记异常说明 */
private String remark;
/** 状态 1-异常 2-撤销 */
private Integer status;
/** 标记时间 */
private String marktime;
/** 标记人 */
private String userid;
/** 标记人姓名 */
private String username;
/** 创建时间 */
private String createtime;
}
|
[
"2216502193@qq.com"
] |
2216502193@qq.com
|
3c0f2953f63fd8b08aebc5d05f1facd4a4d78b6d
|
539b8782f2cdcafd5e7b889c0c4ee20ddf5a5dfc
|
/src/javaExe/kyu7/funWithListsIndexOf/Node.java
|
23b02275480c239c652cebdc3fd5f3ffbeb8a7ee
|
[] |
no_license
|
bartoszmaleta/codeWars
|
e44af1cddff043b2d9a7117c831320e54c607d54
|
3e459d215531d1f1d005583fe01a699ff00e7f4b
|
refs/heads/master
| 2023-03-25T12:02:57.921502
| 2021-03-25T19:57:33
| 2021-03-25T19:57:33
| 229,129,774
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 261
|
java
|
package javaExe.kyu7.funWithListsIndexOf;
public class Node {
public Object data;
public Node next;
Node(Object data, Node next) {
this.data = data;
this.next = next;
}
Node(Object data) {
this(data, null);
}
}
|
[
"bartosz.maleta@gmail.com"
] |
bartosz.maleta@gmail.com
|
ede83fd306585997469fb58bfafba1c583585d45
|
e5af7ef41d139a4bbbbfe00496006206878ce7de
|
/edu.uci.isr.bna4/src/edu/uci/isr/bna4/things/utility/WorldThing.java
|
bd51393fc33844e6aa7fbe5b4ba529393446b71a
|
[] |
no_license
|
isr-uci-edu/ArchStudio4
|
766fced9044592d7e88ff3a8e70595dddb465380
|
ba6d9eeeb7aa4cf2348b7036e754841006211b53
|
refs/heads/master
| 2020-12-30T09:59:19.361848
| 2015-10-27T05:37:27
| 2015-10-27T05:37:27
| 13,413,160
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 602
|
java
|
package edu.uci.isr.bna4.things.utility;
import edu.uci.isr.bna4.IBNAWorld;
import edu.uci.isr.bna4.facets.IHasMutableWorld;
import edu.uci.isr.bna4.things.essence.RectangleEssenceThing;
public class WorldThing extends RectangleEssenceThing implements IHasMutableWorld {
public WorldThing() {
this(null);
}
public WorldThing(String id) {
super(id);
}
public IBNAWorld getWorld() {
return getProperty(WORLD_PROPERTY_NAME);
}
public void setWorld(IBNAWorld world) {
setProperty(WORLD_PROPERTY_NAME, world);
}
public void clearWorld() {
removeProperty(WORLD_PROPERTY_NAME);
}
}
|
[
"sahendrickson@gmail.com"
] |
sahendrickson@gmail.com
|
98c28f85c895cf0f7868dcb30c4b5e15c08a1447
|
c5488473c8114647c12b835cd7b36e1dfb4c95a9
|
/Mobile App/Code/sources/com/google/android/gms/drive/realtime/internal/C0909e.java
|
d285c665dc5730e227f684fe17b016a7557c934f
|
[
"MIT"
] |
permissive
|
shivi98g/EpilNet-EpilepsyPredictor
|
5cf86835473112f98c130bb066edba4cf8fa3f20
|
15a98fb9ac7ee535005fb2aebb36548f28c7f6d1
|
refs/heads/main
| 2023-08-04T09:43:24.941854
| 2021-09-24T12:25:42
| 2021-09-24T12:25:42
| 389,867,899
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,398
|
java
|
package com.google.android.gms.drive.realtime.internal;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import com.google.android.gms.common.api.Status;
/* renamed from: com.google.android.gms.drive.realtime.internal.e */
public interface C0909e extends IInterface {
/* renamed from: com.google.android.gms.drive.realtime.internal.e$a */
public static abstract class C0910a extends Binder implements C0909e {
/* renamed from: com.google.android.gms.drive.realtime.internal.e$a$a */
private static class C0911a implements C0909e {
/* renamed from: le */
private IBinder f1229le;
C0911a(IBinder iBinder) {
this.f1229le = iBinder;
}
/* renamed from: a */
public void mo11960a(ParcelableCollaborator[] parcelableCollaboratorArr) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.drive.realtime.internal.ICollaboratorsCallback");
obtain.writeTypedArray(parcelableCollaboratorArr, 0);
this.f1229le.transact(1, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
public IBinder asBinder() {
return this.f1229le;
}
/* renamed from: n */
public void mo11961n(Status status) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.drive.realtime.internal.ICollaboratorsCallback");
if (status != null) {
obtain.writeInt(1);
status.writeToParcel(obtain, 0);
} else {
obtain.writeInt(0);
}
this.f1229le.transact(2, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
}
/* renamed from: ad */
public static C0909e m1412ad(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.drive.realtime.internal.ICollaboratorsCallback");
return (queryLocalInterface == null || !(queryLocalInterface instanceof C0909e)) ? new C0911a(iBinder) : (C0909e) queryLocalInterface;
}
public IBinder asBinder() {
return this;
}
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
if (i != 1598968902) {
switch (i) {
case 1:
parcel.enforceInterface("com.google.android.gms.drive.realtime.internal.ICollaboratorsCallback");
mo11960a((ParcelableCollaborator[]) parcel.createTypedArray(ParcelableCollaborator.CREATOR));
parcel2.writeNoException();
return true;
case 2:
parcel.enforceInterface("com.google.android.gms.drive.realtime.internal.ICollaboratorsCallback");
mo11961n(parcel.readInt() != 0 ? Status.CREATOR.createFromParcel(parcel) : null);
parcel2.writeNoException();
return true;
default:
return super.onTransact(i, parcel, parcel2, i2);
}
} else {
parcel2.writeString("com.google.android.gms.drive.realtime.internal.ICollaboratorsCallback");
return true;
}
}
}
/* renamed from: a */
void mo11960a(ParcelableCollaborator[] parcelableCollaboratorArr) throws RemoteException;
/* renamed from: n */
void mo11961n(Status status) throws RemoteException;
}
|
[
"31238277+shivi98g@users.noreply.github.com"
] |
31238277+shivi98g@users.noreply.github.com
|
09846a8b46f5e542d5b4f051c83c1f3bada2e8a0
|
e38adafa932f9c9f386e82bd1b16a000dc1b3613
|
/src/main/java/fi/csc/microarray/client/dataimport/ColumnTypePattern.java
|
f8271e184f195167f8e6fc93093f547859b9bf35
|
[
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
chipster/chipster
|
1844cf655443ae75423adaa81edfa17ba102fbf2
|
07a19b305d0a602e70c0d1cec71efea6cf79a281
|
refs/heads/master
| 2021-07-22T18:59:28.590186
| 2020-12-17T14:59:24
| 2020-12-17T14:59:24
| 8,553,857
| 34
| 11
|
MIT
| 2020-12-15T13:13:44
| 2013-03-04T11:03:05
|
Java
|
UTF-8
|
Java
| false
| false
| 3,179
|
java
|
package fi.csc.microarray.client.dataimport;
import java.util.ArrayList;
import java.util.List;
/**
* Column pattern class for filling the columns with the same pattern from
* the beginning of the table to the end of the table.
*
* @author mkoski, klemela
*
*/
public class ColumnTypePattern {
private List<ColumnType> pattern;
private int patternStart;
public ColumnTypePattern(List<ColumnType> pattern, int startIndex) {
this.patternStart = startIndex;
this.pattern = pattern;
}
public List<ColumnType> getPattern(){
return pattern;
}
/**
* @param i
* @return null if pattern doesn't cover asked index
*/
public ColumnType getColumnTypeForIndex(int i){
if(i >= patternStart){
return pattern.get((i - patternStart) % pattern.size());
} else {
return null;
}
}
/**
* Tries to fiend pattern from the existing column types. Now this supports tree different use
* cases:
*
* 1. There are marked column(s) repeating, possibly separated by constant amount of unused
* columns. Also there can be some different types in the beginning, before the pattern
* starts. At least first column from the second repeat of the pattern has to be filled
*
* 2. Pattern is just everything between first and last filled columns.
*
* 3. There is no special pattern, just fill the rest of column with a one only type selected.
*
* @param allColumns
* @return pattern
*/
public static ColumnTypePattern createColumnTypePatternFromAllColumns(List<DataColumn> allColumns){
List<ColumnType> pattern = new ArrayList<ColumnType>();
int patternEnd = -1;
int start = -1;
//Start from end and find same column type as last filled
for(int i = allColumns.size() - 1 ; i > 0; i--){ //Skip the first column (the row number column)
ColumnType column = allColumns.get(i).getColumnType();
if(column.equals(ColumnType.UNUSED_LABEL)){
continue;
} else if(patternEnd == -1){
patternEnd = i;
continue;
} else if(column.equals(allColumns.get(patternEnd).getColumnType())){
start = i + 1; //Don't repeat the found duplicate
break;
}
}
if(patternEnd == -1){//all columns are marked unused, give up
return new ColumnTypePattern(pattern, Integer.MAX_VALUE);
}
//If no same type was found, search first any filled column
if(start == -1){
for(int i = 1; i < patternEnd; i++){
ColumnType column = allColumns.get(i).getColumnType();
if(column.equals(ColumnType.UNUSED_LABEL)){
continue;
} else {
start = i;
break;
}
}
}
//If still no start point found, just repeat the last type
if(start == -1){
start = patternEnd;
}
//Just collect the pattern
for(int i = start; i <= patternEnd; i++){
ColumnType column = allColumns.get(i).getColumnType();
pattern.add(column);
}
return new ColumnTypePattern(pattern, start);
}
@Override
public String toString(){
StringBuffer pattern = new StringBuffer();
for(ColumnType column : getPattern()){
pattern.append(column.getTitle());
pattern.append(" - ");
}
return "Column type pattern: " + pattern.toString();
}
}
|
[
"devnull@localhost"
] |
devnull@localhost
|
f2286f947829436ce95c5600c7118fd0ae37af7b
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mobileqqi/classes.jar/cjf.java
|
4c31072e0dccec00c3a95005ad6f96a3acab7f67
|
[] |
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
| 753
|
java
|
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mobileqq.activity.EditActivity;
import com.tencent.mobileqq.widget.ClearableEditText;
public class cjf
implements View.OnClickListener
{
public cjf(EditActivity paramEditActivity) {}
public void onClick(View paramView)
{
this.a.f();
paramView = this.a.a.getText().toString();
Intent localIntent = this.a.getIntent();
localIntent.putExtra("result", paramView);
this.a.setResult(-1, localIntent);
this.a.finish();
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mobileqqi\classes2.jar
* Qualified Name: cjf
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
ce38594391b8f830bacaf6aead256a49c054c34e
|
2ab03c4f54dbbb057beb3a0349b9256343b648e2
|
/JavaAdvanced/JAdvancedFunctionalExercises/src/ReverseAndExclude.java
|
66b57679d0eea1c2a94f5e769b9a2a082ac3a6d7
|
[
"MIT"
] |
permissive
|
tabria/Java
|
8ef04c0ec5d5072d4e7bf15e372e7c2b600a1cea
|
9bfc733510b660bc3f46579a1cc98ff17fb955dd
|
refs/heads/master
| 2021-05-05T11:50:05.175943
| 2018-03-07T06:53:54
| 2018-03-07T06:53:54
| 104,714,168
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 612
|
java
|
import java.util.*;
import java.util.function.Predicate;
import java.util.stream.Collectors;
public class ReverseAndExclude {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String[] input = scanner.nextLine().split(" ");
int num = Integer.parseInt(scanner.nextLine());
List<Integer> numbers = new ArrayList<>();
Arrays.stream(input).forEach(element -> numbers.add(0, Integer.parseInt(element)));
numbers.removeIf(element -> element % num == 0);
numbers.forEach(value -> System.out.print(value + " "));
}
}
|
[
"forexftg@yahoo.com"
] |
forexftg@yahoo.com
|
4a22e48e77b087c517460ab5daebe6206a678a78
|
87a0b29dc28f3fd6053794c0da0524720384ad8c
|
/src/main/java/listener/WebSocketListener.java
|
8ae1ffb19b357885638ebc9c537c796dc44a0e81
|
[] |
no_license
|
veaxcw/web-server
|
1db41c6317968eec9b7100df01a293d25b50bdeb
|
978bcd10b4170727cc14fd61af3e338a642a6c6a
|
refs/heads/master
| 2021-07-09T05:20:08.955464
| 2020-01-06T01:20:50
| 2020-01-06T01:20:50
| 229,980,470
| 0
| 0
| null | 2021-03-31T21:48:52
| 2019-12-24T17:31:38
|
Java
|
UTF-8
|
Java
| false
| false
| 357
|
java
|
package listener;
import http.HttpResponseDataBuilder;
import java.net.Socket;
/**
* 服务端都必须 实现该接口
* @author chengwei
*/
public interface WebSocketListener {
/**
*
* 当收到Http 请求时
*
* @param conn 连接
* @return
*/
HttpResponseDataBuilder onHttpRequestReceived(Socket conn);
}
|
[
"878899580@qq.com"
] |
878899580@qq.com
|
db32c5b54aa5cfc073e65d63343c43be837af65f
|
3cbeab079222083b4056eea292365f0ef3f34381
|
/src/main/java/org/jboss/elasticsearch/river/sysinfo/mgm/lifecycle/JRLifecycleRequestBuilder.java
|
03abf33ba2828349acd2239102d8e12a2f5a5011
|
[
"Apache-2.0"
] |
permissive
|
searchisko/elasticsearch-river-sysinfo
|
a4ddaabcd94ad12cf46519e4af588af500ae5da1
|
5cae718df9d954efddc718067d210012663c2039
|
refs/heads/master
| 2021-03-12T21:32:51.073747
| 2015-05-26T07:48:08
| 2015-05-26T07:48:08
| 6,650,706
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,692
|
java
|
/*
* JBoss, Home of Professional Open Source
* Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
*/
package org.jboss.elasticsearch.river.sysinfo.mgm.lifecycle;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.support.nodes.NodesOperationRequestBuilder;
import org.elasticsearch.client.ClusterAdminClient;
/**
* Request builder to perform lifecycle method of some sysinfo river.
*
* @author Vlastimil Elias (velias at redhat dot com)
*/
public class JRLifecycleRequestBuilder extends
NodesOperationRequestBuilder<JRLifecycleRequest, JRLifecycleResponse, JRLifecycleRequestBuilder> {
public JRLifecycleRequestBuilder(ClusterAdminClient client) {
super(client, new JRLifecycleRequest());
}
/**
* Set name of river to get state for.
*
* @param riverName name of river
* @return builder for chaining
*/
public JRLifecycleRequestBuilder setRiverName(String riverName) {
this.request.setRiverName(riverName);
return this;
}
/**
* Set command to request.
*
* @param command to be set
* @return builder for chaining
*/
public JRLifecycleRequestBuilder setCommand(JRLifecycleCommand command) {
this.request.setCommand(command);
return this;
}
@Override
protected void doExecute(ActionListener<JRLifecycleResponse> listener) {
if (request.getRiverName() == null)
throw new IllegalArgumentException("riverName must be provided for request");
if (request.getCommand() == null)
throw new IllegalArgumentException("command must be provided for request");
client.execute(JRLifecycleAction.INSTANCE, request, listener);
}
}
|
[
"vlastimil.elias@worldonline.cz"
] |
vlastimil.elias@worldonline.cz
|
14e5819bf87ab58ac32da3401338af493a8875ae
|
db2c20191d9e608a489bdc9986cba50ae81373ad
|
/rundeck-storage/rundeck-storage-conf/src/main/java/org/rundeck/storage/conf/TreeStack.java
|
6b2f851141098f5128dcc087d7aa8d62d5dee28a
|
[
"Apache-2.0"
] |
permissive
|
skilld-labs/rundeck
|
1cd537d88dcf12cee8d6a0b252f808db0f52728f
|
fe3d51dd9c9f3483abbaa937aa232a86d98da2f6
|
refs/heads/master
| 2020-03-07T04:06:57.250757
| 2018-06-16T06:41:05
| 2018-06-16T08:45:36
| 127,256,603
| 0
| 2
|
Apache-2.0
| 2018-04-20T16:58:57
| 2018-03-29T07:49:59
|
Groovy
|
UTF-8
|
Java
| false
| false
| 4,832
|
java
|
/*
* Copyright 2016 SimplifyOps, Inc. (http://simplifyops.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.rundeck.storage.conf;
import org.rundeck.storage.api.*;
import org.rundeck.storage.impl.DelegateTree;
import org.rundeck.storage.impl.ResourceBase;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* tree that uses an ordered list of TreeHandlers to determine which underlying storage to use, and falls back to a
* delegate if there is no match
*/
public class TreeStack<T extends ContentMeta> extends DelegateTree<T> {
private List<? extends SelectiveTree<T>> treeHandlerList;
public TreeStack(List<? extends SelectiveTree<T>> treeHandlerList, Tree<T> delegate) {
super(delegate);
this.treeHandlerList = treeHandlerList;
}
@Override
public Resource<T> getResource(Path path) {
return getContentStorage(path).getResource(path);
}
@Override
public Resource<T> getPath(Path path) {
return getContentStorage(path).getPath(path);
}
@Override
public Set<Resource<T>> listDirectoryResources(Path path) {
return getContentStorage(path).listDirectoryResources(path);
}
@Override
public Set<Resource<T>> listDirectory(Path path) {
//find substorage which are children of the given path
return merge(listDirectoryIfFound(path), listStackDirectory(path));
}
private Set<Resource<T>> listDirectoryIfFound(Path path) {
if(getContentStorage(path).hasDirectory(path)){
return getContentStorage(path).listDirectory(path);
}
return null;
}
private Set<Resource<T>> merge(Set<Resource<T>> matchedList, Set<Resource<T>> subList) {
HashSet<Resource<T>> merge = new HashSet<Resource<T>>();
if(null!=matchedList && matchedList.size()>0) {
merge.addAll(matchedList);
}
if(null!=subList && subList.size()>0) {
merge.addAll(subList);
}
return merge;
}
@Override
public Set<Resource<T>> listDirectorySubdirs(Path path) {
return merge(listDirectoryIfFound(path), listStackDirectory(path));
}
@Override
public boolean deleteResource(Path path) {
return getContentStorage(path).deleteResource(path);
}
@Override
public Resource<T> createResource(Path path, T content) {
return getContentStorage(path).createResource(path, content);
}
@Override
public Resource<T> updateResource(Path path, T content) {
return getContentStorage(path).updateResource(path, content);
}
@Override
public boolean hasPath(Path path) {
return getContentStorage(path).hasPath(path);
}
public static boolean matchesPath(Path path, SelectiveTree<?> tree) {
return path.equals(tree.getSubPath()) || PathUtil.hasRoot(path, tree.getSubPath());
}
public static boolean hasParentPath(Path path, SelectiveTree<?> tree) {
return path.equals(PathUtil.parentPath(tree.getSubPath()));
}
/**
* List all treeHandlers as directories which have the given path as a parent
* @param path path
* @return
*/
private Set<Resource<T>> listStackDirectory(Path path) {
HashSet<Resource<T>> merge = new HashSet<Resource<T>>();
if (treeHandlerList.size() > 0) {
for (SelectiveTree<T> treeHandler : treeHandlerList) {
if (hasParentPath(path, treeHandler)) {
Path subpath = PathUtil.appendPath(path, treeHandler.getSubPath().getName());
merge.add(new ResourceBase<T>(subpath, null, true));
}
}
}
return merge;
}
private Tree<T> getContentStorage(Path path) {
if (treeHandlerList.size() > 0) {
for (SelectiveTree<T> treeHandler : treeHandlerList) {
if (matchesPath(path, treeHandler)) {
return treeHandler;
}
}
}
return getDelegate();
}
public boolean hasResource(Path path) {
return getContentStorage(path).hasResource(path);
}
public boolean hasDirectory(Path path) {
return getContentStorage(path).hasDirectory(path);
}
}
|
[
"greg.schueler@gmail.com"
] |
greg.schueler@gmail.com
|
69ffdcfdd8df81156cbf59326a429caf64b6d96c
|
b81053a577fc63da8bc5401caa97fc18980d3b7b
|
/app/src/main/java/cn/edu/sjzc/fanyafeng/testlamejni/test/GenericsInterfaceTwoParams.java
|
3189b0924c7885026be983528f771d8918422f18
|
[] |
no_license
|
1181631922/TestLameJni
|
74db6a8b11a841cff677a75d74a96bad73bef46e
|
84a61e757c5c9533b202ff4f7022163820283f13
|
refs/heads/master
| 2021-01-13T01:06:51.186398
| 2017-02-28T08:02:01
| 2017-02-28T08:02:01
| 36,154,718
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 182
|
java
|
package cn.edu.sjzc.fanyafeng.testlamejni.test;
/**
* Created by Administrator on 2015/6/9/0009.
*/
public interface GenericsInterfaceTwoParams<T, U> {
void show(T t, U u);
}
|
[
"1181631922@qq.com"
] |
1181631922@qq.com
|
41e83cafc0e95ed4567d126162a0ffb2a65ec0a7
|
8eaf6eb5de5a6e6bf0f72dd2cf34698f616a0be7
|
/src/main/java/org/xbib/elasticsearch/action/ingest/IngestAction.java
|
f5c4ac607cc78958f6179499c51ce8b43b448c05
|
[] |
no_license
|
gmdayley/elasticsearch-support
|
7b238f28a2cd6015c655f22433854997bbc545be
|
328ac946ee24ed1cc49e02c9838449b51156faaa
|
refs/heads/master
| 2021-01-21T01:16:19.836999
| 2013-07-25T16:28:23
| 2013-07-25T16:28:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,966
|
java
|
/*
* Licensed to ElasticSearch and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ElasticSearch licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.xbib.elasticsearch.action.ingest;
import org.elasticsearch.action.Action;
import org.elasticsearch.client.Client;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.transport.TransportRequestOptions;
/**
* Ingest action
*/
public class IngestAction extends Action<IngestRequest, IngestResponse, IngestRequestBuilder> {
public static final IngestAction INSTANCE = new IngestAction();
public static final String NAME = "ingest";
private IngestAction() {
super(NAME);
}
@Override
public IngestResponse newResponse() {
return new IngestResponse();
}
@Override
public IngestRequestBuilder newRequestBuilder(Client client) {
return new IngestRequestBuilder(client);
}
@Override
public TransportRequestOptions transportOptions(Settings settings) {
return TransportRequestOptions.options()
.withType(TransportRequestOptions.Type.fromString(settings.get("action.ingest.transport.type", TransportRequestOptions.Type.LOW.toString())))
.withCompress(settings.getAsBoolean("action.ingest.compress", true));
}
}
|
[
"joergprante@gmail.com"
] |
joergprante@gmail.com
|
67ef31bc400d0a588755c22a76adb924c78ecc3e
|
83d781a9c2ba33fde6df0c6adc3a434afa1a7f82
|
/MarketServiceBus/src/com/servicelive/esb/dto/NPSMonetary.java
|
fe6c328a2cad3d635a7c9e2648d8b29ca88af6c1
|
[] |
no_license
|
ssriha0/sl-b2b-platform
|
71ab8ef1f0ccb0a7ad58b18f28a2bf6d5737fcb6
|
5b4fcafa9edfe4d35c2dcf1659ac30ef58d607a2
|
refs/heads/master
| 2023-01-06T18:32:24.623256
| 2020-11-05T12:23:26
| 2020-11-05T12:23:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,038
|
java
|
package com.servicelive.esb.dto;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("Monetary")
public class NPSMonetary {
@XStreamAlias("AmountCollected")
private String amountCollected;
@XStreamAlias("PrimaryAmountCollected")
private String primaryAmountCollected;
@XStreamAlias("SecondaryAmountCollected")
private String secondaryAmountCollected;
public String getAmountCollected() {
return amountCollected;
}
public void setAmountCollected(String amountCollected) {
this.amountCollected = amountCollected;
}
public String getPrimaryAmountCollected() {
return primaryAmountCollected;
}
public void setPrimaryAmountCollected(String primaryAmountCollected) {
this.primaryAmountCollected = primaryAmountCollected;
}
public String getSecondaryAmountCollected() {
return secondaryAmountCollected;
}
public void setSecondaryAmountCollected(String secondaryAmountCollected) {
this.secondaryAmountCollected = secondaryAmountCollected;
}
}
|
[
"Kunal.Pise@transformco.com"
] |
Kunal.Pise@transformco.com
|
a281270c0942b074473b75dc5f0ff0cd99c158d1
|
9690256edcd62204b4bb598b06632c25607212e0
|
/src/main/java/com/issac/SpringDemo/beanannotation/injection/multibean/BeanInvoker.java
|
daba46a89694f49ea335a53f3c97dafee74aa2bf
|
[] |
no_license
|
IssacYoung2013/SpringDemo
|
599360fa01b2daf39c2f2faefea369c691ec1a91
|
5947844ab28326cbde287f1a6c5e8d4a7a97920a
|
refs/heads/master
| 2020-03-21T02:08:38.015777
| 2018-06-23T08:21:37
| 2018-06-23T08:21:37
| 137,471,862
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,630
|
java
|
package com.issac.SpringDemo.beanannotation.injection.multibean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
/**
*
* author: ywy
* date: 2018-06-15
* desc:
*
*/
@Component
public class BeanInvoker {
@Autowired
private List<BeanInterface> list;
@Autowired
private Map<String,BeanInterface> map;
@Autowired
@Qualifier("beanInterfaceImlTwo")
private BeanInterface beanInterface;
public void say() {
if(null != list && 0 != list.size()) {
System.out.println("list...");
for (BeanInterface bean :
list) {
System.out.println(bean.getClass().getName());
}
}
else {
System.out.println("List<BeanInterface> is null!!!");
}
if(null != map && 0!= map.size()) {
System.out.println("map...");
for (Map.Entry<String, BeanInterface> entry :
map.entrySet()) {
System.out.println(entry.getKey()+" " +entry.getValue());
}
}
else {
System.out.println("Map<String,BeanInterface> is null!!!");
}
System.out.println();
if(null != beanInterface) {
System.out.println(beanInterface.getClass().getName());
}
else {
System.out.println("beanInterface is null...");
}
}
}
|
[
"issacyoung@msn.cn"
] |
issacyoung@msn.cn
|
793cb174cfe842f393ec3b115b3d84d0095ae248
|
1385e2c2ea1f157cbbf2d9edde7a92df442e2092
|
/service/src/com/yf/system/base/helpcenterinfo/Helpcenterinfo.java
|
8e34c006d912d487c0a0717269f3a066c1dabe2a
|
[] |
no_license
|
marc45/kzpw
|
112b6dd7d5e9317fad343918c48767be32a3c9e3
|
19c11c2abe37125eb715e8b723df6e87fce7e10e
|
refs/heads/master
| 2021-01-22T18:01:45.787156
| 2015-12-07T08:43:53
| 2015-12-07T08:43:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 383
|
java
|
/**
* 版权所有, 允风文化
* Author: 允风文化 项目开发组
* copyright: 2012
*/
package com.yf.system.base.helpcenterinfo;
import java.util.*;
import java.sql.*;
import java.sql.Date;
/**
*帮助中心信息
*在此类中添加方法和属性,在第一次生成后将不会再做统一更改。
*/
public class Helpcenterinfo extends HelpcenterinfoBean{
}
|
[
"dogdog7788@qq.com"
] |
dogdog7788@qq.com
|
15629d7f902a3ddd1578849ad812e0754b95c63a
|
c0e2eeb153a60f1bfba147d565bffd534dbc486c
|
/baselibrary/src/main/java/com/jusfoun/baselibrary/dialog/LoadingDialog.java
|
f28e825f4f78054c0df3177a1c876b3617336367
|
[] |
no_license
|
JusofunAppMobile/ConstructionBankAndroid
|
3c1af16e3455c98f27bec153c4769dcc3ed425e5
|
70077545bf4e3e2d745e6059dd37b0cf8a1b11b1
|
refs/heads/master
| 2020-04-13T10:59:47.845299
| 2019-05-14T09:05:15
| 2019-05-14T09:05:15
| 163,160,539
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,299
|
java
|
package com.jusfoun.baselibrary.dialog;
import android.app.Dialog;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.animation.Animation;
import android.widget.TextView;
import com.jusfoun.baselibrary.R;
/**
* @author zhaoyapeng
* @date 2018/1/17
* @describe 网络加载loading
*/
public class LoadingDialog extends Dialog {
private AsyncTask<?, ?, ?> asyncTask;
private MyProgressBar myProgressBar;
private OnKeyCancelListener keyCancelListener;
private int event = -1;
private TextView loading_text;
private Context mContext;
Animation animation;
public LoadingDialog(Context context) {
super(context);
mContext = context;
initViews();
}
public LoadingDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
super(context, cancelable, cancelListener);
mContext = context;
initViews();
}
public LoadingDialog(Context context, int theme) {
super(context, theme);
mContext = context;
initViews();
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.e("tag", "LoadingDialog");
}
private void initViews() {
setContentView(R.layout.load_dialog);
myProgressBar = (MyProgressBar) findViewById(R.id.progress_bar);
loading_text = (TextView) findViewById(R.id.loading_text);
}
public void setText(String text) {
Log.e("tag", "loading_text=" + loading_text);
loading_text.setText(text);
}
public void setText(int textId) {
loading_text.setText(textId);
}
public void setEvent(int event) {
this.event = event;
}
@Override
public void show() {
super.show();
myProgressBar.show();
}
public AsyncTask<?, ?, ?> getAsyncTask() {
return asyncTask;
}
public void setAsyncTask(AsyncTask<?, ?, ?> asyncTask) {
this.asyncTask = asyncTask;
}
@Override
public void cancel() {
super.cancel();
if (asyncTask != null) {
asyncTask.cancel(true);
}
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
if (event.getAction() == KeyEvent.ACTION_DOWN && keyCode == KeyEvent.KEYCODE_BACK) {
if (keyCancelListener != null) {
cancel();
keyCancelListener.cancel(LoadingDialog.this.event);
}
}
return super.onKeyDown(keyCode, event);
}
@Override
public void dismiss() {
if (myProgressBar != null) {
myProgressBar.stop();
}
super.dismiss();
}
public void setOnKeyCancelListener(OnKeyCancelListener keyCancelListener) {
this.keyCancelListener = keyCancelListener;
}
public interface OnKeyCancelListener {
public void cancel(int event);
}
public void closeHardwareAcceleration() {
if (myProgressBar != null) {
myProgressBar.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}
}
}
|
[
"515376293@qq.com"
] |
515376293@qq.com
|
bb8d66e21589fd95039626e080a91aec82bfcb95
|
879b4fcafa3d423c187d0a034d0def88e444131d
|
/dsf-fhir/dsf-fhir-server/src/main/java/org/highmed/dsf/fhir/dao/jdbc/TaskDaoJdbc.java
|
b5865dd4a561548cbcb83a51620ab7903ba16450
|
[
"Apache-2.0"
] |
permissive
|
alhersh/highmed-dsf
|
64f7a32e2f207b8e90ff8c947849a5fa0f2294e9
|
fe19d75c79e33918c805a13698326934d271ead4
|
refs/heads/master
| 2023-07-18T15:06:21.526870
| 2021-01-26T15:25:25
| 2021-01-26T15:25:25
| 330,970,130
| 0
| 0
|
Apache-2.0
| 2021-03-05T13:10:36
| 2021-01-19T12:19:31
|
Java
|
UTF-8
|
Java
| false
| false
| 1,013
|
java
|
package org.highmed.dsf.fhir.dao.jdbc;
import javax.sql.DataSource;
import org.highmed.dsf.fhir.dao.TaskDao;
import org.highmed.dsf.fhir.search.parameters.TaskAuthoredOn;
import org.highmed.dsf.fhir.search.parameters.TaskIdentifier;
import org.highmed.dsf.fhir.search.parameters.TaskModified;
import org.highmed.dsf.fhir.search.parameters.TaskRequester;
import org.highmed.dsf.fhir.search.parameters.TaskStatus;
import org.highmed.dsf.fhir.search.parameters.user.TaskUserFilter;
import org.hl7.fhir.r4.model.Task;
import ca.uhn.fhir.context.FhirContext;
public class TaskDaoJdbc extends AbstractResourceDaoJdbc<Task> implements TaskDao
{
public TaskDaoJdbc(DataSource dataSource, FhirContext fhirContext)
{
super(dataSource, fhirContext, Task.class, "tasks", "task", "task_id", TaskUserFilter::new,
with(TaskAuthoredOn::new, TaskIdentifier::new, TaskModified::new, TaskRequester::new, TaskStatus::new),
with());
}
@Override
protected Task copy(Task resource)
{
return resource.copy();
}
}
|
[
"hauke.hund@hs-heilbronn.de"
] |
hauke.hund@hs-heilbronn.de
|
0a3d5e3fca608b836e1baaee1baba71bfba72924
|
6a9dbe75a1d72279bd6f7c2c19d84c83cc7f43b6
|
/src/main/java/com/academy/lesson08/exc/Calculator.java
|
167e7a34e9420888f2f4a42a8cfe7342b46bb67f
|
[] |
no_license
|
Oleg-Afanasiev/qa-ja-11-maven
|
5686364262c85278b5ed35e47c0aa72ee9acab9a
|
24f2c8cc378594f3ee4649a9b3e77c2db224800a
|
refs/heads/master
| 2023-06-02T01:39:37.098692
| 2021-06-19T09:18:01
| 2021-06-19T09:18:01
| 376,252,318
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 720
|
java
|
package com.academy.lesson08.exc;
public class Calculator {
// метод выбрасывает проверяемый тип исключения
public double div(double d1, double d2) throws DivisionByZero {
if (d2 == 0) {
// выбросим исключение
throw new DivisionByZero();
}
return d1/d2;
}
// считает сумму положительных чисел
// метод выбрасывает непроверяемый тип исключения
public int sumPositiveNumbers(int n1, int n2) {
if (n1 < 0 || n2 < 0) {
throw new NegativeNumberException();
}
return n1 + n2;
}
}
|
[
"oleg.kh81@gmail.com"
] |
oleg.kh81@gmail.com
|
851940a44589ed6b01001ce2d8ad05a1249fb34d
|
bf5cd2ad1edeb2daf92475d95a380ddc66899789
|
/cicada/cicada-core/src/main/java/com/microwu/cxd/netty/server/action/req/WorkReq.java
|
edf7ed88b88fce16ba948880ceee619747f17005
|
[] |
no_license
|
MarsGravitation/demo
|
4ca7cb8d8021bdc3924902946cc9bb533445a31e
|
53708b78dcf13367d20fd5c290cf446b02a73093
|
refs/heads/master
| 2022-11-27T10:17:18.130657
| 2022-04-26T08:02:59
| 2022-04-26T08:02:59
| 250,443,561
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 527
|
java
|
package com.microwu.cxd.netty.server.action.req;
/**
* Description:
*
* @Author: chengxudong chengxudong@microwu.com
* Date: 2020/8/10 15:17
* Copyright: 北京小悟科技有限公司 http://www.microwu.com
* Update History:
* Author Time Content
*/
public class WorkReq {
private Integer timeStamp;
public Integer getTimeStamp() {
return timeStamp;
}
public void setTimeStamp(Integer timeStamp) {
this.timeStamp = timeStamp;
}
}
|
[
"18435202728@163.com"
] |
18435202728@163.com
|
4975a648e8d6b346dbe5039f169bc26b12b9f224
|
1db07f5643b062a6f4642428aa5caf307b07f3f3
|
/drools.indepth.root/kie-server-performance/src/main/java/org/jackzeng/autobean/Bean417.java
|
206eae8956c4c2fb69adf6c6a8bc348f6eb6d33a
|
[] |
no_license
|
tracyzhu2014/JavaHub
|
b6d6c4e95bd1e6ca3849d989e9cd2c1aa53416fb
|
4b66e2a6ee9f8d3bb433490f259d534ccce67a97
|
refs/heads/master
| 2023-05-07T22:23:03.545452
| 2020-12-18T01:57:44
| 2020-12-18T01:57:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,900
|
java
|
package org.jackzeng.autobean;
public class Bean417 {
private String field418;
private double field419;
private boolean field420;
private int fild421;
public String getField418() {
return field418;
}
public void setField418(String field418) {
this.field418 = field418;
}
public double getField419() {
return field419;
}
public void setField419(double field419) {
this.field419 = field419;
}
public boolean isField420() {
return field420;
}
public void setField420(boolean field420) {
this.field420 = field420;
}
public int getFild421() {
return fild421;
}
public void setFild421(int fild421) {
this.fild421 = fild421;
}}
|
[
"zengxijin@qq.com"
] |
zengxijin@qq.com
|
9b5df3dc45fac465ae18925f512a4258ac4e7fbc
|
ae5eb1a38b4d22c82dfd67c86db73592094edc4b
|
/project148/src/test/java/org/gradle/test/performance/largejavamultiproject/project148/p741/Test14839.java
|
cf418269a9bf0d7e59d09217f290617078fe43fe
|
[] |
no_license
|
big-guy/largeJavaMultiProject
|
405cc7f55301e1fd87cee5878a165ec5d4a071aa
|
1cd6a3f9c59e9b13dffa35ad27d911114f253c33
|
refs/heads/main
| 2023-03-17T10:59:53.226128
| 2021-03-04T01:01:39
| 2021-03-04T01:01:39
| 344,307,977
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,272
|
java
|
package org.gradle.test.performance.largejavamultiproject.project148.p741;
import org.gradle.test.performance.largejavamultiproject.project148.p740.Production14812;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test14839 {
Production14839 objectUnderTest = new Production14839();
@Test
public void testProperty0() {
Production14812 value = new Production14812();
objectUnderTest.setProperty0(value);
assertEquals(value, objectUnderTest.getProperty0());
}
@Test
public void testProperty1() {
Production14825 value = new Production14825();
objectUnderTest.setProperty1(value);
assertEquals(value, objectUnderTest.getProperty1());
}
@Test
public void testProperty2() {
Production14838 value = new Production14838();
objectUnderTest.setProperty2(value);
assertEquals(value, objectUnderTest.getProperty2());
}
@Test
public void testProperty3() {
String value = "value";
objectUnderTest.setProperty3(value);
assertEquals(value, objectUnderTest.getProperty3());
}
@Test
public void testProperty4() {
String value = "value";
objectUnderTest.setProperty4(value);
assertEquals(value, objectUnderTest.getProperty4());
}
@Test
public void testProperty5() {
String value = "value";
objectUnderTest.setProperty5(value);
assertEquals(value, objectUnderTest.getProperty5());
}
@Test
public void testProperty6() {
String value = "value";
objectUnderTest.setProperty6(value);
assertEquals(value, objectUnderTest.getProperty6());
}
@Test
public void testProperty7() {
String value = "value";
objectUnderTest.setProperty7(value);
assertEquals(value, objectUnderTest.getProperty7());
}
@Test
public void testProperty8() {
String value = "value";
objectUnderTest.setProperty8(value);
assertEquals(value, objectUnderTest.getProperty8());
}
@Test
public void testProperty9() {
String value = "value";
objectUnderTest.setProperty9(value);
assertEquals(value, objectUnderTest.getProperty9());
}
}
|
[
"sterling.greene@gmail.com"
] |
sterling.greene@gmail.com
|
d82d64f8ff75518903c2d48e3aa6a69e15e24f07
|
a7bc3f31cdcb0c8d7c6093f92a3bb36becf4dfa9
|
/src/cn/digitalpublishing/springmvc/controller/product/PCsRelationController.java
|
107c721d804b2844e47b813a7f9be64f947e541e
|
[] |
no_license
|
yxxcrtd/EPublishing_m
|
f8f4774a938244e071a46bbfadcc9836ca41646c
|
fce51e50604f1f64cda1a78697b15eec616f2d74
|
refs/heads/master
| 2020-05-31T21:45:10.898715
| 2019-06-06T03:05:27
| 2019-06-06T03:05:27
| 190,504,668
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,155
|
java
|
package cn.digitalpublishing.springmvc.controller.product;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import cn.ccsit.restful.tool.Converter;
import cn.com.daxtech.framework.Internationalization.Lang;
import cn.com.daxtech.framework.model.ResultObject;
import cn.com.daxtech.framework.util.ObjectUtil;
import cn.digitalpublishing.ep.po.PCsRelation;
import cn.digitalpublishing.ep.po.PPublications;
import cn.digitalpublishing.springmvc.controller.BaseController;
@Controller
@RequestMapping("/pages/csRelation")
public class PCsRelationController extends BaseController {
/**
* 数据接口
* @param request
* @param model
*/
@RequestMapping(value = "/insert", method = RequestMethod.POST)
public void insert(HttpServletRequest request, Model model){
ResultObject<PCsRelation> result=null;
try{
String objJson = request.getParameter("obj").toString();
String operType = request.getParameter("operType").toString(); //1-insert 2-update
Integer operNum = Integer.valueOf(request.getParameter("operNum").toString()); //0是首次传入,要删除全部信息;其他,直接插入
Converter<PCsRelation> converter=new Converter<PCsRelation>();
PCsRelation obj=(PCsRelation)converter.json2Object(objJson, PCsRelation.class.getName());
if(operNum<=0){
//删除全部数据
Map<String,Object> condition = new HashMap<String,Object>();
condition.put("publicationsId",obj.getPublications().getId());
condition.put("mainCode","no");
this.pPublicationsService.deletePcsRelation(condition);
}
if("2".equals(operType)){
this.pPublicationsService.updateCsRelation(obj,obj.getId(), null);
}else if ("1".equals(operType)){
this.pPublicationsService.insertCsRelation(obj);
}else{
//删除
}
ObjectUtil<PCsRelation> util=new ObjectUtil<PCsRelation>();
obj=util.setNull(obj, new String[]{Set.class.getName(),List.class.getName()});
if(obj.getPublications()!=null){
ObjectUtil<PPublications> util1=new ObjectUtil<PPublications>();
PPublications parent = obj.getPublications();
parent=util1.setNull(parent, new String[]{Set.class.getName(),List.class.getName()});
parent.setPriceList(null);
obj.setPublications(parent);
}
result=new ResultObject<PCsRelation>(1,obj,Lang.getLanguage("Controller.PCsRelation.insert.manage.success",request.getSession().getAttribute("lang").toString()));//"产品与分类信息维护成功!");//"出版商信息维护成功!");
}catch(Exception e){
result=new ResultObject<PCsRelation>(2,Lang.getLanguage("Controller.PCsRelation.insert.manage.error",request.getSession().getAttribute("lang").toString()));//"产品与分类信息维护失败!");//"出版商信息维护失败!");
}
model.addAttribute("target",result);
}
}
|
[
"yxxcrtd@gmail.com"
] |
yxxcrtd@gmail.com
|
76d5dd9713b4d64e53ddc8b00ae9232edb7f1479
|
9293caf2b291eb3b81f6780e7dc2e16492c5ed54
|
/src/main/java/ex43/createWeb.java
|
d3daa2afeb7251a85c667021ee8f105e65585e67
|
[] |
no_license
|
canadianbees/alzenor-COP3330-assignment3
|
8767c9c0b7e4e65818cb936d93b744cae6662bc0
|
be835704fa9394ddf98f26ae0a1d3eaad38624d8
|
refs/heads/master
| 2023-08-27T18:48:04.338161
| 2021-10-11T20:57:53
| 2021-10-11T20:57:53
| 416,083,224
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,048
|
java
|
/*
* UCF COP3330 Fall 2021 Assignment 3 Exercise 43 createWeb class file
* Copyright 2021 Celina Alzenor
*/
package ex43;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
public class createWeb {
//asks user for the website's name
public String askSiteName()
{
String name = "";
Scanner input = new Scanner(System.in);
System.out.print("Site name: ");
name += input.nextLine();
return name;
}
//asks user for the author's name
public String askAuthor()
{
String name = "";
Scanner input = new Scanner(System.in);
System.out.print("Author: ");
name += input.nextLine();
return name;
}
//generates the necessary directories
public void genWeb(String sn, String auth) throws IOException {
//asks user if they want to create a JS folder or a CSS folder
Scanner input = new Scanner(System.in);
System.out.print("Do you want a folder for JavaScript? ");
String js = input.next();
System.out.print("Do you want a folder for CSS? ");
String css = input.next();
//if the main directory doesn't already exist, create it
if(mainDirect(sn))
{
System.out.println("Created ./src/main/java/ex43/website/"+sn);
}
else
{
System.out.println("The main directory already exists!");
}
//creates the html file
createHTML index = new createHTML();
index.genHtml(sn,auth);
System.out.println("Created ./src/main/java/ex43/website/index.html");
//if user choices to create a js folder, it will create one if one doesn't already exist
if(js.matches("y"))
{
if(jsDirect(sn))
{
System.out.println("Created ./src/main/java/ex43/website/"+sn+"/js/");
}
else
{
System.out.println("The JavaScript directory already exists!");
}
}
//if user choices to create a css folder, it will create one if one doesn't already exist
if(css.matches("y"))
{
if(cssDirect(sn))
{
System.out.println("Created ./src/main/java/ex43/website/"+sn+"/css/");
}
else
{
System.out.println("The CSS directory already exists!");
}
}
input.close();
}
//checks if directory already exists, if it does, it returns false
public boolean cssDirect(String sn)
{
return new File("./src/main/java/ex43/website/"+sn+"/css/").mkdirs();
}
//works same as cssDirect method
public boolean jsDirect(String sn)
{
return new File("./src/main/java/ex43/website/"+sn+"/js/").mkdirs();
}
//checks if main directory exists already
public boolean mainDirect(String sn)
{
return new File("./src/main/java/ex43/website/"+sn).mkdirs();
}
}
|
[
"you@example.com"
] |
you@example.com
|
1cbc1440fc0ee0db6566ef21fc5206d19383f2ed
|
2a3f19a4a2b91d9d715378aadb0b1557997ffafe
|
/sources/com/bumptech/glide/request/target/AppWidgetTarget.java
|
e77c2a3815bd1d08837a76b772a26a16dd2035a9
|
[] |
no_license
|
amelieko/McDonalds-java
|
ce5062f863f7f1cbe2677938a67db940c379d0a9
|
2fe00d672caaa7b97c4ff3acdb0e1678669b0300
|
refs/heads/master
| 2022-01-09T22:10:40.360630
| 2019-04-21T14:47:20
| 2019-04-21T14:47:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,084
|
java
|
package com.bumptech.glide.request.target;
import android.appwidget.AppWidgetManager;
import android.content.ComponentName;
import android.content.Context;
import android.graphics.Bitmap;
import android.widget.RemoteViews;
import com.bumptech.glide.request.animation.GlideAnimation;
public class AppWidgetTarget extends SimpleTarget<Bitmap> {
private final ComponentName componentName;
private final Context context;
private final RemoteViews remoteViews;
private final int viewId;
private final int[] widgetIds;
private void update() {
AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this.context);
if (this.componentName != null) {
appWidgetManager.updateAppWidget(this.componentName, this.remoteViews);
} else {
appWidgetManager.updateAppWidget(this.widgetIds, this.remoteViews);
}
}
public void onResourceReady(Bitmap resource, GlideAnimation<? super Bitmap> glideAnimation) {
this.remoteViews.setImageViewBitmap(this.viewId, resource);
update();
}
}
|
[
"makfc1234@gmail.com"
] |
makfc1234@gmail.com
|
4156ce4c71896a1777493f34134ed5704da0b0eb
|
88693041c3c39db777400c32ab2d43f715714e2f
|
/src/oj/leet/mksl/Solution.java
|
7ab35be15a28e37d45fa55b870db119914d48835
|
[] |
no_license
|
harrifeng/java_in_action
|
101aab5f7ff8dc3f39b5f36e83504e6332828ed9
|
79e7c9b34f7bcd49f7a64a04a89045d921f69eb7
|
refs/heads/master
| 2021-01-19T17:17:09.535436
| 2014-08-11T10:19:52
| 2014-08-11T10:19:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,227
|
java
|
package oj.leet.mksl;
import java.util.ArrayList;
public class Solution {
public ListNode mergeKLists(ArrayList<ListNode> lists) {
if (lists == null || lists.size() == 0) {
return null;
}
return helper(lists, 0, lists.size() - 1);
}
private ListNode helper(ArrayList<ListNode> lists, int left, int right) {
if (left < right) {
int mid = (right + left) / 2;
return mergeTwoLists(helper(lists, left, mid), helper(lists, mid + 1, right));
}
return lists.get(left);
}
private ListNode mergeTwoLists(ListNode listA, ListNode listB) {
ListNode head = new ListNode(-1);
ListNode tmp = head;
while (listA != null && listB != null) {
if (listA.val < listB.val) {
head.next = listA;
listA = listA.next;
head = head.next;
} else {
head.next = listB;
listB = listB.next;
head = head.next;
}
}
if (listA != null) {
head.next = listA;
}
if (listB != null) {
head.next = listB;
}
return tmp.next;
}
}
|
[
"harrifeng@gmail.com"
] |
harrifeng@gmail.com
|
d2934057f84ef8d877476ce8cd19bbf972286bbb
|
1f79408651b42713fc56d98971be2d1ce899ccb9
|
/platform/com.netifera.platform.net.packets/com.netifera.platform.net.daemon.sniffing.modules/src/com/netifera/platform/net/daemon/sniffing/modules/passivefp/PassiveFingerprint.java
|
9bb036e5b99a7d84167e4d625ae66b96805e9b2d
|
[] |
no_license
|
ne0ke718/netifera
|
1ef18e3f57310090941e3761e926742cc6f08bd7
|
17f1ea540973016925cb8a15caabc41da9a8f8f8
|
refs/heads/master
| 2021-05-26T18:23:54.276131
| 2010-03-10T06:46:52
| 2010-03-10T06:46:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,600
|
java
|
package com.netifera.platform.net.daemon.sniffing.modules.passivefp;
import java.nio.ByteBuffer;
import java.util.HashSet;
import java.util.Set;
import com.netifera.platform.net.daemon.sniffing.module.IIPSniffer;
import com.netifera.platform.net.daemon.sniffing.module.IPacketModuleContext;
import com.netifera.platform.net.internal.daemon.sniffing.modules.Activator;
import com.netifera.platform.net.model.INetworkEntityFactory;
import com.netifera.platform.net.packets.tcpip.IPv4;
import com.netifera.platform.net.packets.tcpip.IPv6;
import com.netifera.platform.net.packets.tcpip.TCP;
import com.netifera.platform.net.sniffing.IPacketFilter;
import com.netifera.platform.util.NetworkConstants;
import com.netifera.platform.util.addresses.inet.InternetAddress;
public class PassiveFingerprint implements IIPSniffer {
final static int MODE_SYN = 1;
final static int MODE_ACK = 2;
final static int MODE_RST = 3;
final static int MODE_OPEN = 4;
private static final boolean synMode = true;
private static final boolean openMode = false;
private static final boolean rstMode = false;
private static final boolean ackMode = true;
private final SignatureSet sigSet = new SignatureSet(synMode, ackMode, rstMode, openMode);
private final Set<InternetAddress> foundAddresses = new HashSet<InternetAddress>();
public IPacketFilter getFilter() {
return null;
}
public String getName() {
return "Passive OS Fingerprinting";
}
public void handleIPv4Packet(IPv4 ipv4, IPacketModuleContext ctx) {
if(ipv4.getNextProtocol() != NetworkConstants.IPPROTO_TCP) {
return;
}
TCP tcp = (TCP) ipv4.findHeader(TCP.class);
if(tcp == null) {
return;
}
if(foundAddresses.contains(ipv4.getSourceAddress())) {
return;
}
Signature s = handleTCP(ipv4, tcp, ctx);
if(s == null) return;
log(ctx, "match! [" + ipv4.getSourceAddress() +
"] --> " + ipv4.getDestinationAddress() + " is " + s.getOSGenre() + " " + s.getOSVersion());
foundAddresses.add(ipv4.getSourceAddress());
INetworkEntityFactory factory = Activator.getInstance().getNetworkEntityFactory();
factory.setOperatingSystem(ctx.getRealm(), ctx.getSpaceId(), ipv4.getSourceAddress(), s.getOSGenre() + " " + s.getOSVersion());
}
public void handleIPv6Packet(IPv6 ipv6, IPacketModuleContext ctx) {
// not supported since we rely on IPv4 header fields
}
private Signature handleTCP(IPv4 ip, TCP tcp, IPacketModuleContext ctx) {
if(synMode && tcp.getSYN() && !tcp.getACK()) {
return matchPacket(ip, tcp, MODE_SYN, ctx);
} else if(ackMode && tcp.getSYN() && tcp.getACK()) {
return matchPacket(ip, tcp, MODE_ACK, ctx);
} else if(rstMode && tcp.getRST()) {
return matchPacket(ip, tcp, MODE_RST, ctx);
} else if(openMode && tcp.getACK() && !tcp.getSYN()) {
return matchPacket(ip, tcp, MODE_OPEN, ctx);
} else {
return null;
}
}
private Signature matchPacket(IPv4 ip, TCP tcp, int mode, IPacketModuleContext ctx) {
int quirks = 0;
if(ip.getHeaderLength32() > 5) {
quirks |= Signature.QUIRK_IPOPT;
}
if(mode == MODE_RST && tcp.getACK()) {
quirks |= Signature.QUIRK_RSTACK;
}
if(tcp.sequence().equals(tcp.ackSequence())) {
quirks |= Signature.QUIRK_SEQEQ;
}
if(tcp.sequence().toInteger() == 0) {
quirks |= Signature.QUIRK_SEQ0;
}
if(mode == MODE_OPEN) {
if(tcp.getURG() || tcp.getFIN()) {
quirks |= Signature.QUIRK_FLAGS;
}
} else {
if(tcp.getPSH() || tcp.getURG() || tcp.getFIN()) {
quirks |= Signature.QUIRK_FLAGS;
}
}
if(tcp.getNextHeader() != null) {
quirks |= Signature.QUIRK_DATA;
}
ByteBuffer options = ByteBuffer.wrap(tcp.getOptionsBuffer());
int mss = 0;
int wsc = 0;
int tstamp = 0;
byte[] op = new byte[Signature.MAXOPT];
int opCount = 0;
boolean done = false;
while(!done && options.hasRemaining()) {
int currentOp = options.get() & 0xFF;
switch(currentOp) {
case TCP.OPT_EOL:
op[opCount++] = TCP.OPT_EOL;
if(options.hasRemaining()) {
quirks |= Signature.QUIRK_PAST;
done = true;
}
break;
case TCP.OPT_NOP:
op[opCount++] = TCP.OPT_NOP;
break;
case TCP.OPT_SACKOK:
op[opCount++] = TCP.OPT_SACKOK;
options.get(); // length byte
break;
case TCP.OPT_MAXSEG:
if(options.remaining() < 3) {
quirks |= Signature.QUIRK_BROKEN;
done = true;
break;
}
op[opCount++] = TCP.OPT_MAXSEG;
options.get(); // length byte
mss = options.getShort() & 0xFFFF;
break;
case TCP.OPT_WSCALE:
if(options.remaining() < 2) {
quirks |= Signature.QUIRK_BROKEN;
done = true;
break;
}
op[opCount++] = TCP.OPT_WSCALE;
options.get(); // length byte
wsc = options.get() & 0xFF;
break;
case TCP.OPT_TIMESTAMP:
if(options.remaining() < 9) {
quirks |= Signature.QUIRK_BROKEN;
done = true;
break;
}
op[opCount++] = TCP.OPT_TIMESTAMP;
options.get(); // length byte
tstamp = options.getInt();
if(options.getInt() != 0) {
quirks |= Signature.QUIRK_T2;
}
break;
default:
if(!options.hasRemaining()) {
quirks |= Signature.QUIRK_BROKEN;
done = true;
break;
}
op[opCount++] = (byte) currentOp;
int olen = options.get() & 0xFF;
if(olen > 32 || olen > options.remaining()) {
// p0f has a bug and won't set the QUIRK flag
// in the second case.
quirks |= Signature.QUIRK_BROKEN;
done = true;
break;
}
options.position(options.position() + olen);
if(opCount >= Signature.MAXOPT) {
quirks |= Signature.QUIRK_BROKEN;
done = true;
}
}
}
if(tcp.getACK()) quirks |= Signature.QUIRK_ACK;
if(tcp.getURG()) quirks |= Signature.QUIRK_URG;
if(tcp.getReserved() != 0) quirks |= Signature.QUIRK_X2;
if(ip.getIdentification() == 0) quirks |= Signature.QUIRK_ZEROID;
Signature res = sigSet.match(ip.getTotalLength(), ip.getDF(), ip.getTimeToLive(),
tcp.getWindow(), op, opCount, mss, wsc, tstamp, ip.getTypeOfService(), quirks, mode);
if(res == null) {
log(ctx, "Unmatched [" + ip.getSourceAddress() + "] --> " + ip.getDestinationAddress() +
" has signature " + sigSet.printSignature(ip.getTotalLength(), ip.getDF(), ip.getTimeToLive(),
tcp.getWindow(), op, opCount, mss, wsc, tstamp, ip.getTypeOfService(), quirks, mode));
}
return res;
}
// logging
private final static boolean LOGGING_ENABLED = false;
private void log(IPacketModuleContext ctx, String message) {
if (LOGGING_ENABLED) {
ctx.printOutput(message);
}
}
}
|
[
"bruce@netifera.com"
] |
bruce@netifera.com
|
087e9b7db6aed297bbabfb0e4c6e267a9d407649
|
02449daac3c6efcce03dd9f7bc8a936f40050e77
|
/src/main/java/com/mashibing/controller/base/TblDesktopController.java
|
c6c49f26ab36ab1d2ebfd2f9950211f6bcbdc53e
|
[] |
no_license
|
201811510215kjx/family-server-manage
|
d0b827b9b94a6bb3be6b2c0de1825a90cd3c8f2d
|
976d51ab5510a2dcef444426201dd4f63b871397
|
refs/heads/master
| 2023-08-08T00:48:57.415915
| 2021-09-14T01:22:44
| 2021-09-14T01:22:44
| 406,183,364
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 328
|
java
|
package com.mashibing.controller.base;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* 桌面 前端控制器
* </p>
*
* @author lian
* @since 2021-07-21
*/
@Controller
@RequestMapping("/tblDesktop")
public class TblDesktopController {
}
|
[
"947002886@qq.com"
] |
947002886@qq.com
|
284169e49bbfced53217867cdf6d068cee221a51
|
e2c7c8f9a7cc6b2743e4d4e998bd3263cc64c984
|
/src/main/java/com/fintechsn/huahuadai/model/api/dto/SysUserDepartmentDTO.java
|
909f1a024eca51092ee8bce04328fd0e98ba8a01
|
[] |
no_license
|
cmeizu/SpringBoot
|
6e4e68ac245df6702792c77519c47e59958d40bd
|
1a9e34c634a9496d72d0f8885678dfc6506f6a83
|
refs/heads/master
| 2020-03-28T16:14:54.691117
| 2019-04-04T03:14:24
| 2019-04-04T03:14:24
| 148,674,132
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 271
|
java
|
package com.fintechsn.huahuadai.model.api.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysUserDepartmentDTO {
private String id;
private String username;
}
|
[
"cmeizu@hotmail.com"
] |
cmeizu@hotmail.com
|
4c3018d045e3478187d271689dc9608a5da2a122
|
40d844c1c780cf3618979626282cf59be833907f
|
/src/testcases/CWE90_LDAP_Injection/CWE90_LDAP_Injection__database_67b.java
|
5950e7911f1eb138d2e88ff4b008dd05e80e9cc0
|
[] |
no_license
|
rubengomez97/juliet
|
f9566de7be198921113658f904b521b6bca4d262
|
13debb7a1cc801977b9371b8cc1a313cd1de3a0e
|
refs/heads/master
| 2023-06-02T00:37:24.532638
| 2021-06-23T17:22:22
| 2021-06-23T17:22:22
| 379,676,259
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,025
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE90_LDAP_Injection__database_67b.java
Label Definition File: CWE90_LDAP_Injection.label.xml
Template File: sources-sink-67b.tmpl.java
*/
/*
* @description
* CWE: 90 LDAP Injection
* BadSource: database Read data from a database
* GoodSource: A hardcoded string
* Sinks:
* BadSink : data concatenated into LDAP search, which could result in LDAP Injection
* Flow Variant: 67 Data flow: data passed in a class from one method to another in different source files in the same package
*
* */
package testcases.CWE90_LDAP_Injection;
import testcasesupport.*;
import javax.servlet.http.*;
import javax.naming.*;
import javax.naming.directory.*;
import java.util.Hashtable;
import java.util.logging.Level;
public class CWE90_LDAP_Injection__database_67b
{
public void badSink(CWE90_LDAP_Injection__database_67a.Container dataContainer ) throws Throwable
{
String data = dataContainer.containerOne;
Hashtable<String, String> environmentHashTable = new Hashtable<String, String>();
environmentHashTable.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
environmentHashTable.put(Context.PROVIDER_URL, "ldap://localhost:389");
DirContext directoryContext = null;
try
{
directoryContext = new InitialDirContext(environmentHashTable);
/* POTENTIAL FLAW: data concatenated into LDAP search, which could result in LDAP Injection */
String search = "(cn=" + data + ")";
NamingEnumeration<SearchResult> answer = directoryContext.search("", search, null);
while (answer.hasMore())
{
SearchResult searchResult = answer.next();
Attributes attributes = searchResult.getAttributes();
NamingEnumeration<?> allAttributes = attributes.getAll();
while (allAttributes.hasMore())
{
Attribute attribute = (Attribute) allAttributes.next();
NamingEnumeration<?> allValues = attribute.getAll();
while(allValues.hasMore())
{
IO.writeLine(" Value: " + allValues.next().toString());
}
}
}
}
catch (NamingException exceptNaming)
{
IO.logger.log(Level.WARNING, "The LDAP service was not found or login failed.", exceptNaming);
}
finally
{
if (directoryContext != null)
{
try
{
directoryContext.close();
}
catch (NamingException exceptNaming)
{
IO.logger.log(Level.WARNING, "Error closing DirContext", exceptNaming);
}
}
}
}
/* goodG2B() - use goodsource and badsink */
public void goodG2BSink(CWE90_LDAP_Injection__database_67a.Container dataContainer ) throws Throwable
{
String data = dataContainer.containerOne;
Hashtable<String, String> environmentHashTable = new Hashtable<String, String>();
environmentHashTable.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
environmentHashTable.put(Context.PROVIDER_URL, "ldap://localhost:389");
DirContext directoryContext = null;
try
{
directoryContext = new InitialDirContext(environmentHashTable);
/* POTENTIAL FLAW: data concatenated into LDAP search, which could result in LDAP Injection */
String search = "(cn=" + data + ")";
NamingEnumeration<SearchResult> answer = directoryContext.search("", search, null);
while (answer.hasMore())
{
SearchResult searchResult = answer.next();
Attributes attributes = searchResult.getAttributes();
NamingEnumeration<?> allAttributes = attributes.getAll();
while (allAttributes.hasMore())
{
Attribute attribute = (Attribute) allAttributes.next();
NamingEnumeration<?> allValues = attribute.getAll();
while(allValues.hasMore())
{
IO.writeLine(" Value: " + allValues.next().toString());
}
}
}
}
catch (NamingException exceptNaming)
{
IO.logger.log(Level.WARNING, "The LDAP service was not found or login failed.", exceptNaming);
}
finally
{
if (directoryContext != null)
{
try
{
directoryContext.close();
}
catch (NamingException exceptNaming)
{
IO.logger.log(Level.WARNING, "Error closing DirContext", exceptNaming);
}
}
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
d38038557e5bf561d9f97b9a926d3e25a0a31a06
|
ff2683777d02413e973ee6af2d71ac1a1cac92d3
|
/src/main/java/com/alipay/api/domain/AlipayOpenPublicPayeeBindCreateModel.java
|
150aec1497368266cf5152a32c47e9771d2bd767
|
[
"Apache-2.0"
] |
permissive
|
weizai118/alipay-sdk-java-all
|
c30407fec93e0b2e780b4870b3a71e9d7c55ed86
|
ec977bf06276e8b16c4b41e4c970caeaf21e100b
|
refs/heads/master
| 2020-05-31T21:01:16.495008
| 2019-05-28T13:14:39
| 2019-05-28T13:14:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 910
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 添加收款账号接口
*
* @author auto create
* @since 1.0, 2018-04-28 15:56:55
*/
public class AlipayOpenPublicPayeeBindCreateModel extends AlipayObject {
private static final long serialVersionUID = 2764678923767979393L;
/**
* 收款账号,需要绑定的收款支付宝账号,跟pid不要同时传
*/
@ApiField("login_id")
private String loginId;
/**
* 支付宝用户id,2088开头的16位长度字符串,跟login_id不要同时传
*/
@ApiField("pid")
private String pid;
public String getLoginId() {
return this.loginId;
}
public void setLoginId(String loginId) {
this.loginId = loginId;
}
public String getPid() {
return this.pid;
}
public void setPid(String pid) {
this.pid = pid;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
5d9b3e13eb9238c8510a1275f155f4f33cff469f
|
f52981eb9dd91030872b2b99c694ca73fb2b46a8
|
/Source/Plugins/Core/com.equella.reporting/src/com/tle/core/reporting/UmpQueryDelegate.java
|
ffb52b2aa3648ee5f625249ffacb762ab73af992
|
[
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"LicenseRef-scancode-jdom",
"GPL-1.0-or-later",
"ICU",
"CDDL-1.0",
"LGPL-3.0-only",
"LicenseRef-scancode-other-permissive",
"CPL-1.0",
"MIT",
"GPL-2.0-only",
"Apache-2.0",
"NetCDF",
"Apache-1.1",
"EPL-1.0",
"Classpath-exception-2.0",
"CDDL-1.1",
"LicenseRef-scancode-freemarker"
] |
permissive
|
phette23/Equella
|
baa41291b91d666bf169bf888ad7e9f0b0db9fdb
|
56c0d63cc1701a8a53434858a79d258605834e07
|
refs/heads/master
| 2020-04-19T20:55:13.609264
| 2019-01-29T03:27:40
| 2019-01-29T22:31:24
| 168,427,559
| 0
| 0
|
Apache-2.0
| 2019-01-30T22:49:08
| 2019-01-30T22:49:08
| null |
UTF-8
|
Java
| false
| false
| 5,395
|
java
|
/*
* Copyright 2017 Apereo
*
* 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.tle.core.reporting;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import javax.inject.Singleton;
import com.tle.common.usermanagement.user.valuebean.DefaultGroupBean;
import com.tle.common.usermanagement.user.valuebean.DefaultRoleBean;
import com.tle.common.usermanagement.user.valuebean.DefaultUserBean;
import com.tle.common.usermanagement.user.valuebean.GroupBean;
import com.tle.common.usermanagement.user.valuebean.RoleBean;
import com.tle.common.usermanagement.user.valuebean.UserBean;
import com.tle.core.guice.Bind;
import com.tle.core.services.user.UserService;
import com.tle.reporting.IResultSetExt;
import com.tle.reporting.MetadataBean;
@Bind
@Singleton
@SuppressWarnings("nls")
public class UmpQueryDelegate extends SimpleTypeQuery
{
@Inject
private UserService userService;
enum UmpQueryType
{
USERS_IN_GROUP("ug"), USER("u"), USER_SEARCH("su"), GROUP("g"), GROUP_SEARCH("sg"), GROUPS_FOR_USER("gfu"),
ROLE("r");
private final String prefix;
private static Map<String, UmpQueryType> prefixMap;
UmpQueryType(String prefix)
{
this.prefix = prefix;
addToPrefix(this);
}
private void addToPrefix(UmpQueryType type)
{
if( prefixMap == null )
{
prefixMap = new HashMap<String, UmpQueryType>();
}
prefixMap.put(prefix, this);
}
public String getPrefix()
{
return prefix;
}
public static UmpQueryType getType(String prefix)
{
return prefixMap.get(prefix);
}
}
@Override
public Map<String, ?> getDatasourceMetadata()
{
throw new RuntimeException("Functionality not complete");
}
@Override
public IResultSetExt executeQuery(String query, List<Object> params, int maxRows)
{
MetadataBean bean = new MetadataBean();
String[] queryStrings = getQueryStrings(query, params);
UmpQueryType type = UmpQueryType.getType(query.substring(0, query.indexOf(':')));
query = queryStrings[0];
switch( type )
{
case USER_SEARCH:
List<UserBean> users = userService.searchUsers(query);
return doUserList(users, bean);
case USERS_IN_GROUP:
users = userService.getUsersInGroup(query, false);
return doUserList(users, bean);
case USER:
UserBean userBean = userService.getInformationForUser(query);
if( userBean == null )
{
userBean = new DefaultUserBean(query, "{" + query + "}", "", "", "");
}
return doUserList(Collections.singletonList(userBean), bean);
case GROUP:
GroupBean groupBean = userService.getInformationForGroup(query);
if( groupBean == null )
{
groupBean = new DefaultGroupBean(query, "{" + query + "}");
}
return doGroupList(Collections.singletonList(groupBean), bean);
case ROLE:
RoleBean roleBean = userService.getInformationForRole(query);
if( roleBean == null )
{
roleBean = new DefaultRoleBean(query, "{" + query + "}");
}
return doRoleList(Collections.singletonList(roleBean), bean);
case GROUP_SEARCH:
List<GroupBean> groups = userService.searchGroups(query);
return doGroupList(groups, bean);
case GROUPS_FOR_USER:
groups = userService.getGroupsContainingUser(query);
return doGroupList(groups, bean);
}
throw new UnsupportedOperationException("Unknown query type:" + type);
}
private IResultSetExt doGroupList(List<GroupBean> groups, MetadataBean bean)
{
List<Object[]> retResults = new ArrayList<Object[]>();
for( GroupBean group : groups )
{
if( group != null )
{
retResults.add(new Object[]{group.getUniqueID(), group.getName()});
}
}
addColumn("id", TYPE_STRING, bean);
addColumn("name", TYPE_STRING, bean);
return new SimpleResultSet(retResults, bean);
}
private IResultSetExt doRoleList(List<RoleBean> roles, MetadataBean bean)
{
List<Object[]> retResults = new ArrayList<Object[]>();
for( RoleBean role : roles )
{
if( role != null )
{
retResults.add(new Object[]{role.getUniqueID(), role.getName()});
}
}
addColumn("id", TYPE_STRING, bean);
addColumn("name", TYPE_STRING, bean);
return new SimpleResultSet(retResults, bean);
}
private IResultSetExt doUserList(List<UserBean> users, MetadataBean bean)
{
List<Object[]> retResults = new ArrayList<Object[]>();
for( UserBean userBean : users )
{
if( userBean != null )
{
retResults.add(new Object[]{userBean.getUniqueID(), userBean.getUsername(), userBean.getFirstName(),
userBean.getLastName(), userBean.getEmailAddress()});
}
}
addColumn("id", TYPE_STRING, bean);
addColumn("username", TYPE_STRING, bean);
addColumn("firstname", TYPE_STRING, bean);
addColumn("lastname", TYPE_STRING, bean);
addColumn("email", TYPE_STRING, bean);
return new SimpleResultSet(retResults, bean);
}
}
|
[
"doolse@gmail.com"
] |
doolse@gmail.com
|
d768be385fff352602b2af437d9cda40e25d870b
|
d0dda33d2ad9078d3eceea6390d1fd1166fad9ae
|
/src/main/java/com/cattsoft/coolsql/pub/display/FileMappedSequence.java
|
46eb7d49b7c66f380d48c4214ed0b3aff36dadaa
|
[] |
no_license
|
Ivan-kitty/CoolSQL
|
7d3a7cc38d4814e9cec201c24bdcb5065d7cde4e
|
9be96f81e951dc01083a01538ae6af8af33b76bb
|
refs/heads/master
| 2022-02-06T20:53:39.563367
| 2012-07-23T07:27:15
| 2012-07-23T07:27:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,516
|
java
|
package com.cattsoft.coolsql.pub.display;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.channels.FileChannel;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import org.apache.log4j.Logger;
import com.cattsoft.coolsql.sql.interfaces.CharacterSequence;
/**
* An implementatio of CharacterSequence that does not read the
* entire file but only a part of it into memory
*/
public class FileMappedSequence
implements CharacterSequence
{
private static final Logger logger=Logger.getLogger(FileMappedSequence.class);
// the current size of the chunk read from the file
// this will be adjusted dynamically according to the
// calls to substring
private int chunkSize = 128 * 1024;
// The current chunk that has been read from the file
// its length will be equal to chunkSize
private String chunk;
// The decoder used to convert the bytes from the file
// into a String object
private CharsetDecoder decoder;
// Stores the starting position of the current chunk in the file
private int chunkStart;
// Stores the end position of the current chunk in the file
private int chunkEnd;
private long fileSize;
private FileInputStream input;
private FileChannel channel;
private ByteBuffer readBuffer;
public FileMappedSequence(File f, String characterSet)
throws IOException
{
this.fileSize = f.length();
this.input = new FileInputStream(f);
this.channel = input.getChannel();
this.chunkStart = 0;
this.chunkEnd = 0;
this.chunk = "";
readBuffer = ByteBuffer.allocateDirect(chunkSize);
Charset charset = Charset.forName(characterSet);
this.decoder = charset.newDecoder();
}
public int length()
{
return (int)this.fileSize;
}
private void ensureWindow(int start, int end)
{
if (this.chunkStart <= start && this.chunkEnd > end) return;
this.chunkStart = start;
if ((end - start) > this.chunkSize)
{
this.chunkSize = end - start;
}
this.chunkEnd = start + chunkSize;
try
{
if (chunkStart + chunkSize > this.fileSize)
{
chunkSize = (int)(this.fileSize - chunkStart);
}
// prepare for requests larger then the chunkSize
if (chunkSize > readBuffer.capacity())
{
readBuffer = ByteBuffer.allocateDirect(chunkSize);
}
readBuffer.clear();
readBuffer.limit(chunkSize);
int read = this.channel.read(readBuffer, chunkStart);
// Rewind is necessary because the decoder starts at the
// current position
readBuffer.rewind();
// Setting the limit to the number of bytes read
// is also necessary because the decoder uses that
// information to find out how many bytes it needs
// to decode from the buffer
readBuffer.limit(read);
CharBuffer cb = decoder.decode(readBuffer);
this.chunk = cb.toString();
}
catch (Exception e)
{
logger.error("Error reading chunk", e);
}
}
public void done()
{
try
{
if (this.input != null) input.close();
}
catch (Exception e)
{
logger.error("Error closing input stream", e);
}
}
public char charAt(int index)
{
this.ensureWindow(index, index + 1);
int indexInChunk = index - chunkStart;
return this.chunk.charAt(indexInChunk);
}
public String subSequence(int start, int end)
{
this.ensureWindow(start, end);
int startInChunk = start - chunkStart;
int endInChunk = end - chunkStart;
return this.chunk.substring(startInChunk, endInChunk);
}
}
|
[
"guihuoliuying@163.com"
] |
guihuoliuying@163.com
|
1051c367736170aba544b968967de979cd80a63d
|
a15e6062d97bd4e18f7cefa4fe4a561443cc7bc8
|
/src/jio/System/Drawing/Size.java
|
8d1a5134853b5aace6706a5116f6fff36377e056
|
[] |
no_license
|
Javonet-io-user/e66e9f78-68be-483d-977e-48d29182c947
|
017cf3f4110df45e8ba4a657ba3caba7789b5a6e
|
02ec974222f9bb03a938466bd6eb2421bb3e2065
|
refs/heads/master
| 2020-04-15T22:55:05.972920
| 2019-01-10T16:01:59
| 2019-01-10T16:01:59
| 165,089,187
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,758
|
java
|
package jio.System.Drawing;
import Common.Activation;
import static Common.Helper.Convert;
import static Common.Helper.getGetObjectName;
import static Common.Helper.getReturnObjectName;
import static Common.Helper.ConvertToConcreteInterfaceImplementation;
import Common.Helper;
import com.javonet.Javonet;
import com.javonet.JavonetException;
import com.javonet.JavonetFramework;
import com.javonet.api.NObject;
import com.javonet.api.NEnum;
import com.javonet.api.keywords.NRef;
import com.javonet.api.keywords.NOut;
import com.javonet.api.NControlContainer;
import java.util.concurrent.atomic.AtomicReference;
import java.util.Iterator;
import java.lang.*;
import jio.System.*;
import jio.System.Drawing.*;
public class Size extends ValueType {
public NObject javonetHandle;
public Size(Point pt) {
super((NObject) null);
try {
javonetHandle = Javonet.New("System.Drawing.Size", pt);
super.setJavonetHandle(javonetHandle);
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
}
}
public Size(java.lang.Integer width, java.lang.Integer height) {
super((NObject) null);
try {
javonetHandle = Javonet.New("System.Drawing.Size", width, height);
super.setJavonetHandle(javonetHandle);
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
}
}
public Size(NObject handle) {
super(handle);
this.javonetHandle = handle;
}
public void setJavonetHandle(NObject handle) {
this.javonetHandle = handle;
}
static {
try {
Activation.initializeJavonet();
} catch (java.lang.Exception e) {
e.printStackTrace();
}
}
}
|
[
"support@javonet.com"
] |
support@javonet.com
|
6222402eff8060d181419c6203e3ed85c9b41826
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project80/src/test/java/org/gradle/test/performance80_1/Test80_88.java
|
d3192f79efacec34ae6d78c492c3d7b63b5dd66e
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 289
|
java
|
package org.gradle.test.performance80_1;
import static org.junit.Assert.*;
public class Test80_88 {
private final Production80_88 production = new Production80_88("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
ff898203299b4c735285bc4668df0f4a06af6fa1
|
83dbd433aeed1f15f6501f39fe152abc0dc803d9
|
/multithread_study/java_multithread_core_tech/src/main/java/com/bd/java/multithread/core/tech/chapter4/use_condition_thread_run_in_order/ThreadB.java
|
59d11f72ba10cfa25f241438136458feeae50585
|
[] |
no_license
|
pylrichard/web_service_study
|
d0d42ea0c511b9b15a235a99cde5b4b025c33c6d
|
c1bd8753c6aee69c87707db7f3fb8e0d7f5ddbc0
|
refs/heads/master
| 2021-09-14T23:31:12.454640
| 2018-05-22T06:26:14
| 2018-05-22T06:26:14
| 104,879,563
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 326
|
java
|
package com.bd.java.multithread.core.tech.chapter4.use_condition_thread_run_in_order;
public class ThreadB extends Thread {
private MyService service;
public ThreadB(MyService service) {
super();
this.service = service;
}
@Override
public void run() {
service.methodB();
}
}
|
[
"pylrichard@qq.com"
] |
pylrichard@qq.com
|
3e637f598902ae49b206cad784fac73e0b6ec02d
|
041a0f43cde89b5dee80c01756ac61915bb32919
|
/micro-permission/src/main/java/com/andx/micro/permission/extend/validator/PermissionValidatorProcessor.java
|
9e028106bee2bef10840eb9302613a4f659d99ba
|
[] |
no_license
|
mysticalmountain/micro
|
1955831b7d77249b68303097f8a9949d407c840d
|
420986313633c003ad8dbaa134ff2ed5d8727894
|
refs/heads/master
| 2021-01-23T07:27:01.186228
| 2017-05-15T03:41:37
| 2017-05-15T03:41:37
| 86,425,341
| 0
| 0
| null | 2017-05-15T03:41:38
| 2017-03-28T06:52:23
|
Java
|
UTF-8
|
Java
| false
| false
| 3,383
|
java
|
package com.andx.micro.permission.extend.validator;
import com.andx.micro.api.core.dto.Request;
import com.andx.micro.api.core.dto.Response;
import com.andx.micro.api.core.module.service.ServiceException;
import com.andx.micro.api.core.module.service.SampleService;
import com.andx.micro.api.core.module.service.handler.HandlerException;
import com.andx.micro.api.core.module.service.handler.ServiceHandler;
import com.andx.micro.api.core.module.validator.ValidatorException;
import com.andx.micro.api.core.module.validator.ValidatorProcessor;
import com.andx.micro.api.log.Log;
import com.andx.micro.core.log.slf4j.Slf4jLogFactory;
import com.andx.micro.core.validator.PermissionValidatorDto;
import com.andx.micro.permission.dto.permission.ValidatorPermissionDto;
import com.sun.org.apache.regexp.internal.RE;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
/**
* Created by andongxu on 17-2-21.
*/
@Component
public class PermissionValidatorProcessor implements ValidatorProcessor<PermissionValidatorDto, Boolean> {
private Log log = Slf4jLogFactory.getLogFactory().getLog(this.getClass());
@Autowired
@Qualifier("channelValidateHandler")
private ServiceHandler<PermissionValidatorDto, Boolean> channelValidateHandler;
@Autowired
@Qualifier("roleValidateHandler")
private ServiceHandler<PermissionValidatorDto, Boolean> roleValidateHandler;
@Autowired
@Qualifier("servicePermissionExistsHandler")
private ServiceHandler<String, Boolean> serviceValidateHandler;
@Override
public Boolean process(PermissionValidatorDto dto, Object... args) throws ValidatorException {
try {
String serviceCode = dto.getServiceCode();
Boolean hasPermission = false;
Boolean permissionExists = serviceValidateHandler.handle(serviceCode, null);
if (permissionExists) {
HttpServletRequest httpServletRequest = (HttpServletRequest) args[0];
List<Long> roleIds = (List<Long>) httpServletRequest.getSession().getAttribute("roleIds");
for (Long roleId : roleIds) {
PermissionValidatorDto permissionValidatorDto = new PermissionValidatorDto();
permissionValidatorDto.setServiceCode(serviceCode);
permissionValidatorDto.setOwnerId(String.valueOf(roleId));
hasPermission = channelValidateHandler.handle(permissionValidatorDto, null);
if (hasPermission == null || hasPermission == false) {
hasPermission = roleValidateHandler.handle(permissionValidatorDto, null);
}
if (hasPermission != null && hasPermission == true) {
break;
}
}
return hasPermission == null ? false : hasPermission;
} else {
return true;
}
} catch (HandlerException e) {
throw new ValidatorException(e.getMessage(), e);
}
}
}
|
[
"dongxudotan@163.com"
] |
dongxudotan@163.com
|
077ff1f9843867c7f5526f23e4812e41af9ac2e6
|
357c37822ce15cee4d3c865044a390ec3775e19f
|
/konzi_gyakok/bikeservice/src/test/java/bikeservice/BikeServiceApplicationTests.java
|
c1abac534e35a76c9d1ea69ffd1283ec9d9c7dad
|
[] |
no_license
|
djtesla/senior-solutions
|
5fd0cec5513759057c4df46ca31bf90141110392
|
69894da3607fe499c5b599a859481d2ea4ddf8c9
|
refs/heads/master
| 2023-07-01T21:37:52.957857
| 2021-07-30T12:40:13
| 2021-07-30T12:40:13
| 373,088,997
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 208
|
java
|
package bikeservice;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class BikeServiceApplicationTests {
@Test
void contextLoads() {
}
}
|
[
"djtesla@gmailcom"
] |
djtesla@gmailcom
|
4538966d56e53833d83d3ed9597fa8177edcfc72
|
e83352f5898fa7b49034e0c0af37f62c4eaacc06
|
/Concept/src/com/corejava/controlstatements/Lab193.java
|
02d33d4677ad2b8b2d377c0b0921ceb5f73e7c5c
|
[] |
no_license
|
binodjava/Project
|
8541bf5d1f23952949b796b9e678e3efdc00aadf
|
9c261abe8fd1058957437b95c806141fcad6f9d7
|
refs/heads/master
| 2021-09-09T14:12:15.536067
| 2018-03-16T21:38:53
| 2018-03-16T21:38:53
| 125,569,126
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 179
|
java
|
package com.corejava.controlstatements;
public class Lab193 {
public static void main(String[] args) {
for (;;)
System.out.println("BK");
}
}
//Stop infite loop: Ctrl+C
|
[
"binodk.java@gmail.com"
] |
binodk.java@gmail.com
|
5200a50a2d0f2d8d059f37010bce259be174117e
|
78f284cd59ae5795f0717173f50e0ebe96228e96
|
/factura-negocio/src/cl/stotomas/factura/negocio/training_2/copy2/copy/copy/TestingVulnerabilities.java
|
afcfd072714788bd72141c16e6394e777d6f900b
|
[] |
no_license
|
Pattricio/Factura
|
ebb394e525dfebc97ee2225ffc5fca10962ff477
|
eae66593ac653f85d05071b6ccb97fb1e058502d
|
refs/heads/master
| 2020-03-16T03:08:45.822070
| 2018-05-07T15:29:25
| 2018-05-07T15:29:25
| 132,481,305
| 0
| 0
| null | null | null | null |
ISO-8859-1
|
Java
| false
| false
| 2,288
|
java
|
package cl.stotomas.factura.negocio.training_2.copy2.copy.copy;
import java.applet.Applet;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
//import cl.stomas.factura.negocio.testing.TestingModel.Echo;
public class TestingVulnerabilities {
public static String decryptMessage(final byte[] message, byte[] secretKey)
{
try {
// CÓDIGO VULNERABLE
final SecretKeySpec KeySpec = new SecretKeySpec(secretKey, "DES");
final Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
cipher.init(Cipher.DECRYPT_MODE, KeySpec);
// RECOMENDACIÓN VERACODE
// final Cipher cipher = Cipher.getInstance("DES...");
// cipher.init(Cipher.DECRYPT_MODE, KeySpec);
return new String(cipher.doFinal(message));
}
catch(Exception e)
{
e.printStackTrace();
}
return null;
}
// Inclusión de funcionalidades de esfera de control que no es de confianza
// Un atacante puede insertar funcionalidades maliciosas dentro de este programa.
// Las Applet comprometen la seguridad. ya que sus funcionalidades se pueden adaptar a la Web
// Ademas la entrega de acceso de credenciales es engorrosa para el cliente.
public final class WidgetData extends Applet {
private static final long serialVersionUID = 1L;
public float price;
public WidgetData()
{
this.price = LookupPrice("MyWidgetType");
}
private float LookupPrice(String string) {
return 0;
}
}
class Echo {
// Control de Proceso
// Posible reemplazo de librería por una maliciosa
// Donde además s enos muestra el nombre explícito de esta.
public native void runEcho();
{
System.loadLibrary("echo"); // Se carga librería
}
public void main(String[] args)
{
new Echo().runEcho();
}
}
class EchoSecond {
// Control de Proceso
// Posible reemplazo de librería por una maliciosa
// Donde además s enos muestra el nombre explícito de esta.
public native void runEcho();
{
System.loadLibrary("echo"); // Se carga librería
}
public void main(String[] args)
{
new Echo().runEcho();
}
}
}
|
[
"Adriana Molano@DESKTOP-GQ96FK8"
] |
Adriana Molano@DESKTOP-GQ96FK8
|
ef5d9e14ae867341bcde3906b78dec10f7ff45df
|
a5dca337f182645f51537913e5a3f50fea99f5b1
|
/src/main/java/org/bian/dto/CRCreditChargeCardAuthorizationAssessmentRetrieveOutputModelCreditChargeCardAuthorizationAssessmentInstanceAnalysis.java
|
7de20f8f2d76093cee1b3a47aa14859cbfe81d41
|
[
"Apache-2.0"
] |
permissive
|
bianapis/sd-card-authorization-v2.0
|
d41dff37272639e61a112f5c2136bf2bd8f6b894
|
befa4306749a56ad0cd738f6210f1d617dd54c81
|
refs/heads/master
| 2020-07-11T03:57:30.373297
| 2019-09-06T07:01:28
| 2019-09-06T07:01:28
| 204,440,062
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,062
|
java
|
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
/**
* CRCreditChargeCardAuthorizationAssessmentRetrieveOutputModelCreditChargeCardAuthorizationAssessmentInstanceAnalysis
*/
public class CRCreditChargeCardAuthorizationAssessmentRetrieveOutputModelCreditChargeCardAuthorizationAssessmentInstanceAnalysis {
private String creditChargeCardAuthorizationAssessmentInstanceAnalysisData = null;
private String creditChargeCardAuthorizationAssessmentInstanceAnalysisReportType = null;
private Object creditChargeCardAuthorizationAssessmentInstanceAnalysisReport = null;
/**
* `status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Text general-info: The inputs and results of the instance analysis that can be on-going, periodic and actual and projected
* @return creditChargeCardAuthorizationAssessmentInstanceAnalysisData
**/
public String getCreditChargeCardAuthorizationAssessmentInstanceAnalysisData() {
return creditChargeCardAuthorizationAssessmentInstanceAnalysisData;
}
public void setCreditChargeCardAuthorizationAssessmentInstanceAnalysisData(String creditChargeCardAuthorizationAssessmentInstanceAnalysisData) {
this.creditChargeCardAuthorizationAssessmentInstanceAnalysisData = creditChargeCardAuthorizationAssessmentInstanceAnalysisData;
}
/**
* `status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Code general-info: The type of external performance analysis report available
* @return creditChargeCardAuthorizationAssessmentInstanceAnalysisReportType
**/
public String getCreditChargeCardAuthorizationAssessmentInstanceAnalysisReportType() {
return creditChargeCardAuthorizationAssessmentInstanceAnalysisReportType;
}
public void setCreditChargeCardAuthorizationAssessmentInstanceAnalysisReportType(String creditChargeCardAuthorizationAssessmentInstanceAnalysisReportType) {
this.creditChargeCardAuthorizationAssessmentInstanceAnalysisReportType = creditChargeCardAuthorizationAssessmentInstanceAnalysisReportType;
}
/**
* `status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Binary general-info: The external analysis report in any suitable form including selection filters where appropriate
* @return creditChargeCardAuthorizationAssessmentInstanceAnalysisReport
**/
public Object getCreditChargeCardAuthorizationAssessmentInstanceAnalysisReport() {
return creditChargeCardAuthorizationAssessmentInstanceAnalysisReport;
}
public void setCreditChargeCardAuthorizationAssessmentInstanceAnalysisReport(Object creditChargeCardAuthorizationAssessmentInstanceAnalysisReport) {
this.creditChargeCardAuthorizationAssessmentInstanceAnalysisReport = creditChargeCardAuthorizationAssessmentInstanceAnalysisReport;
}
}
|
[
"team1@bian.org"
] |
team1@bian.org
|
bd2545e57a3b9422f9b83719a51465c589e1280f
|
38933bae7638a11fef6836475fef0d73e14c89b5
|
/magma-func-builder/src/main/java/eu/lunisolar/magma/func/build/predicate/LDblPredicateBuilder.java
|
1c96d59752004ef05ade5e345e1f3da5c3917f29
|
[
"Apache-2.0"
] |
permissive
|
lunisolar/magma
|
b50ed45ce2f52daa5c598e4760c1e662efbbc0d4
|
41d3db2491db950685fe403c934cfa71f516c7dd
|
refs/heads/master
| 2023-08-03T10:13:20.113127
| 2023-07-24T15:01:49
| 2023-07-24T15:01:49
| 29,874,142
| 5
| 0
|
Apache-2.0
| 2023-05-09T18:25:01
| 2015-01-26T18:03:44
|
Java
|
UTF-8
|
Java
| false
| false
| 5,707
|
java
|
/*
* This file is part of "lunisolar-magma".
*
* (C) Copyright 2014-2023 Lunisolar (http://lunisolar.eu/).
*
* 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 eu.lunisolar.magma.func.build.predicate;
import eu.lunisolar.magma.basics.Null;
import eu.lunisolar.magma.func.build.*;
import eu.lunisolar.magma.func.Function4U; // NOSONAR
import eu.lunisolar.magma.basics.builder.*; // NOSONAR
import javax.annotation.Nonnull; // NOSONAR
import javax.annotation.Nullable; // NOSONAR
import eu.lunisolar.magma.basics.exceptions.*; // NOSONAR
import eu.lunisolar.magma.basics.meta.*; // NOSONAR
import eu.lunisolar.magma.basics.meta.functional.*; // NOSONAR
import eu.lunisolar.magma.basics.meta.functional.type.*; // NOSONAR
import eu.lunisolar.magma.basics.meta.functional.domain.*; // NOSONAR
import java.util.function.*;
import eu.lunisolar.magma.func.action.*; // NOSONAR
import eu.lunisolar.magma.func.consumer.*; // NOSONAR
import eu.lunisolar.magma.func.consumer.primitives.*; // NOSONAR
import eu.lunisolar.magma.func.consumer.primitives.bi.*; // NOSONAR
import eu.lunisolar.magma.func.consumer.primitives.obj.*; // NOSONAR
import eu.lunisolar.magma.func.consumer.primitives.tri.*; // NOSONAR
import eu.lunisolar.magma.func.function.*; // NOSONAR
import eu.lunisolar.magma.func.function.conversion.*; // NOSONAR
import eu.lunisolar.magma.func.function.from.*; // NOSONAR
import eu.lunisolar.magma.func.function.to.*; // NOSONAR
import eu.lunisolar.magma.func.operator.binary.*; // NOSONAR
import eu.lunisolar.magma.func.operator.ternary.*; // NOSONAR
import eu.lunisolar.magma.func.operator.unary.*; // NOSONAR
import eu.lunisolar.magma.func.predicate.*; // NOSONAR
import eu.lunisolar.magma.func.supplier.*; // NOSONAR
/**
* Builder for LDblPredicate.
*/
public final class LDblPredicateBuilder extends PerCaseBuilderWithBoolProduct.Base<LDblPredicateBuilder, LDblPredicate, LDblPredicate> {
// extends PER_CASE_BUILDER<BUILDER_NAME func.B(the_case.class_args_ref), CASE_PREDICATE func.B(the_case.domain_class_argsX_ref), the_case.name_ref RRR> {
private Consumer<LDblPredicate> consumer;
private @Nullable HandlingInstructions handling;
public static final LDblPredicate OTHERWISE_THROW = LDblPredicate.dblPred(a -> {
throw new IllegalStateException("There is no case configured for the arguments (if any).");
});
public LDblPredicateBuilder(@Nullable Consumer<LDblPredicate> consumer) {
super(OTHERWISE_THROW, LDblPredicate::constant, () -> new LDblPredicateBuilder(null));
this.consumer = consumer;
}
/** One of ways of creating builder. In most cases (considering all _functional_ builders) it requires to provide generic parameters (in most cases redundantly) */
public LDblPredicateBuilder() {
this(null);
}
/** One of ways of creating builder. In most cases (considering all _functional_ builders) it requires to provide generic parameters (in most cases redundantly) */
@Nonnull
public static LDblPredicateBuilder dblPredicate() {
return new LDblPredicateBuilder();
}
/** One of ways of creating builder. This is possibly the least verbose way where compiler should be able to guess the generic parameters. */
@Nonnull
public static LDblPredicate dblPredicateFrom(Consumer<LDblPredicateBuilder> buildingFunction) {
LDblPredicateBuilder builder = new LDblPredicateBuilder();
buildingFunction.accept(builder);
return builder.build();
}
/** One of ways of creating builder. This might be the only way (considering all _functional_ builders) that might be utilize to specify generic params only once. */
@Nonnull
public static LDblPredicateBuilder dblPredicate(Consumer<LDblPredicate> consumer) {
return new LDblPredicateBuilder(consumer);
}
/** One of ways of creating builder. In most cases (considering all _functional_ builders) it requires to provide generic parameters (in most cases redundantly) */
@Nonnull
public final LDblPredicateBuilder withHandling(@Nonnull HandlingInstructions<Throwable, RuntimeException> handling) {
Null.nonNullArg(handling, "handling");
if (this.handling != null) {
throw new UnsupportedOperationException("Handling is already set for this builder.");
}
this.handling = handling;
return fluentCtx();
}
/** Builds the functional interface implementation and if previously provided calls the consumer. */
@Nonnull
public final LDblPredicate build() {
final LDblPredicate otherwiseFinal = this.otherwise;
LDblPredicate retval;
final Case<LDblPredicate, LDblPredicate>[] casesArray = cases.toArray(new Case[cases.size()]);
retval = LDblPredicate.dblPred(a -> {
try {
for (Case<LDblPredicate, LDblPredicate> aCase : casesArray) {
if (aCase.casePredicate().test(a)) {
return aCase.caseFunction().test(a);
}
}
return otherwiseFinal.test(a);
} catch (Error e) { // NOSONAR
throw e;
} catch (Throwable e) { // NOSONAR
throw Handler.handleOrPropagate(e, handling);
}
});
if (consumer != null) {
consumer.accept(retval);
}
return retval;
}
public final LDblPredicate build(@Nonnull HandlingInstructions<Throwable, RuntimeException> handling) {
this.withHandling(handling);
return build();
}
}
|
[
"open@lunisolar.eu"
] |
open@lunisolar.eu
|
bd79073c9d4261083c8796b020e25005c205ff6e
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_5913.java
|
c7edfb79c50eb7cea11554b31628c20ec77445a4
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 384
|
java
|
/**
* Returns the type of the NAL unit in {@code data} that starts at {@code offset}.
* @param data The data to search.
* @param offset The start offset of a NAL unit. Must lie between {@code -3} (inclusive) and{@code data.length - 3} (exclusive).
* @return The type of the unit.
*/
public static int getNalUnitType(byte[] data,int offset){
return data[offset + 3] & 0x1F;
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
116ea1746b3508f977c96b260b80f6270181ca3b
|
10a4f75709aca2f2a8d1933f3e1d97795acc620f
|
/service/src/main/java/com/yangwang/application/pet/market/service/facade/common/QueryFacedService.java
|
234ab6cb3098db8c7567b4924c7888229e58d36b
|
[] |
no_license
|
huji820/pet-market-server
|
82424d5ffa20b05afcc7c21a3d2b58df5d558751
|
fe877c5b65c6b5a1095c69add1729bcdd9eb4320
|
refs/heads/master
| 2023-01-23T18:56:43.113246
| 2020-12-09T11:58:39
| 2020-12-09T11:58:39
| 319,941,426
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 566
|
java
|
package com.yangwang.application.pet.market.service.facade.common;
import com.yangwang.application.pet.market.model.vo.QueryVo;
/**
* <p>
* 搜索查询
* </p>
*
* @author LiuXiangLin
* @version 1.0
* @className QueryFacedService
* @date 2020/3/25 10:35
**/
public interface QueryFacedService {
/**
* <p>
* 搜索查询
* </p>
*
* @param keyWord 关键字
* @return com.yangwang.application.pet.market.model.vo.QueryVo
* @author LiuXiangLin
* @date 10:36 2020/3/25
**/
QueryVo query(String keyWord);
}
|
[
"101835518@qq.com"
] |
101835518@qq.com
|
5a22a001e5f535f61780d7ff204d1872afa38e2a
|
ac82c09fd704b2288cef8342bde6d66f200eeb0d
|
/projects/OG-Master/src/main/java/com/opengamma/master/legalentity/LegalEntityMetaDataResult.java
|
f006c34680793d7c0b4a4c28b7bae56e30c493ab
|
[
"Apache-2.0"
] |
permissive
|
cobaltblueocean/OG-Platform
|
88f1a6a94f76d7f589fb8fbacb3f26502835d7bb
|
9b78891139503d8c6aecdeadc4d583b23a0cc0f2
|
refs/heads/master
| 2021-08-26T00:44:27.315546
| 2018-02-23T20:12:08
| 2018-02-23T20:12:08
| 241,467,299
| 0
| 2
|
Apache-2.0
| 2021-08-02T17:20:41
| 2020-02-18T21:05:35
|
Java
|
UTF-8
|
Java
| false
| false
| 6,444
|
java
|
/**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.master.legalentity;
import java.util.Map;
import org.joda.beans.Bean;
import org.joda.beans.BeanBuilder;
import org.joda.beans.BeanDefinition;
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.MetaProperty;
import org.joda.beans.Property;
import org.joda.beans.PropertyDefinition;
import org.joda.beans.impl.direct.DirectBeanBuilder;
import org.joda.beans.impl.direct.DirectMetaProperty;
import org.joda.beans.impl.direct.DirectMetaPropertyMap;
import com.opengamma.master.AbstractMetaDataResult;
import com.opengamma.util.PublicSPI;
/**
* Result from obtaining meta-data for the legalentity master.
* <p/>
* Meta-data is only returned if requested.
*/
@PublicSPI
@BeanDefinition
public class LegalEntityMetaDataResult extends AbstractMetaDataResult {
/**
* The database schema version.
* This is only populated if requested.
*/
@PropertyDefinition
private String _schemaVersion;
/**
* Creates an instance.
*/
public LegalEntityMetaDataResult() {
}
//------------------------- AUTOGENERATED START -------------------------
///CLOVER:OFF
/**
* The meta-bean for {@code LegalEntityMetaDataResult}.
* @return the meta-bean, not null
*/
public static LegalEntityMetaDataResult.Meta meta() {
return LegalEntityMetaDataResult.Meta.INSTANCE;
}
static {
JodaBeanUtils.registerMetaBean(LegalEntityMetaDataResult.Meta.INSTANCE);
}
@Override
public LegalEntityMetaDataResult.Meta metaBean() {
return LegalEntityMetaDataResult.Meta.INSTANCE;
}
//-----------------------------------------------------------------------
/**
* Gets the database schema version.
* This is only populated if requested.
* @return the value of the property
*/
public String getSchemaVersion() {
return _schemaVersion;
}
/**
* Sets the database schema version.
* This is only populated if requested.
* @param schemaVersion the new value of the property
*/
public void setSchemaVersion(String schemaVersion) {
this._schemaVersion = schemaVersion;
}
/**
* Gets the the {@code schemaVersion} property.
* This is only populated if requested.
* @return the property, not null
*/
public final Property<String> schemaVersion() {
return metaBean().schemaVersion().createProperty(this);
}
//-----------------------------------------------------------------------
@Override
public LegalEntityMetaDataResult clone() {
return JodaBeanUtils.cloneAlways(this);
}
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj != null && obj.getClass() == this.getClass()) {
LegalEntityMetaDataResult other = (LegalEntityMetaDataResult) obj;
return JodaBeanUtils.equal(getSchemaVersion(), other.getSchemaVersion()) &&
super.equals(obj);
}
return false;
}
@Override
public int hashCode() {
int hash = 7;
hash = hash * 31 + JodaBeanUtils.hashCode(getSchemaVersion());
return hash ^ super.hashCode();
}
@Override
public String toString() {
StringBuilder buf = new StringBuilder(64);
buf.append("LegalEntityMetaDataResult{");
int len = buf.length();
toString(buf);
if (buf.length() > len) {
buf.setLength(buf.length() - 2);
}
buf.append('}');
return buf.toString();
}
@Override
protected void toString(StringBuilder buf) {
super.toString(buf);
buf.append("schemaVersion").append('=').append(JodaBeanUtils.toString(getSchemaVersion())).append(',').append(' ');
}
//-----------------------------------------------------------------------
/**
* The meta-bean for {@code LegalEntityMetaDataResult}.
*/
public static class Meta extends AbstractMetaDataResult.Meta {
/**
* The singleton instance of the meta-bean.
*/
static final Meta INSTANCE = new Meta();
/**
* The meta-property for the {@code schemaVersion} property.
*/
private final MetaProperty<String> _schemaVersion = DirectMetaProperty.ofReadWrite(
this, "schemaVersion", LegalEntityMetaDataResult.class, String.class);
/**
* The meta-properties.
*/
private final Map<String, MetaProperty<?>> _metaPropertyMap$ = new DirectMetaPropertyMap(
this, (DirectMetaPropertyMap) super.metaPropertyMap(),
"schemaVersion");
/**
* Restricted constructor.
*/
protected Meta() {
}
@Override
protected MetaProperty<?> metaPropertyGet(String propertyName) {
switch (propertyName.hashCode()) {
case -233564169: // schemaVersion
return _schemaVersion;
}
return super.metaPropertyGet(propertyName);
}
@Override
public BeanBuilder<? extends LegalEntityMetaDataResult> builder() {
return new DirectBeanBuilder<LegalEntityMetaDataResult>(new LegalEntityMetaDataResult());
}
@Override
public Class<? extends LegalEntityMetaDataResult> beanType() {
return LegalEntityMetaDataResult.class;
}
@Override
public Map<String, MetaProperty<?>> metaPropertyMap() {
return _metaPropertyMap$;
}
//-----------------------------------------------------------------------
/**
* The meta-property for the {@code schemaVersion} property.
* @return the meta-property, not null
*/
public final MetaProperty<String> schemaVersion() {
return _schemaVersion;
}
//-----------------------------------------------------------------------
@Override
protected Object propertyGet(Bean bean, String propertyName, boolean quiet) {
switch (propertyName.hashCode()) {
case -233564169: // schemaVersion
return ((LegalEntityMetaDataResult) bean).getSchemaVersion();
}
return super.propertyGet(bean, propertyName, quiet);
}
@Override
protected void propertySet(Bean bean, String propertyName, Object newValue, boolean quiet) {
switch (propertyName.hashCode()) {
case -233564169: // schemaVersion
((LegalEntityMetaDataResult) bean).setSchemaVersion((String) newValue);
return;
}
super.propertySet(bean, propertyName, newValue, quiet);
}
}
///CLOVER:ON
//-------------------------- AUTOGENERATED END --------------------------
}
|
[
"cobaltblue.ocean@gmail.com"
] |
cobaltblue.ocean@gmail.com
|
99e5fec6a76a3b7ec6eff2de2a9505d74216ce87
|
20eb62855cb3962c2d36fda4377dfd47d82eb777
|
/IntroClassJava/dataset/digits/f227ed285307815838e91975d2523300f5c71aa244356578858ac751ca351b55bc62f13559b03041faf2130fa8228dc0f8527f129e516404f37d4940707125b1/000/mutations/7/digits_f227ed28_000.java
|
6952b5ed1a9e842e45dd9d7475815f3ba6cec9fa
|
[] |
no_license
|
ozzydong/CapGen
|
356746618848065cce4e253e5d3c381baa85044a
|
0ba0321b6b1191443276021f1997833342f02515
|
refs/heads/master
| 2023-03-18T20:12:02.923428
| 2020-08-21T03:08:28
| 2020-08-21T03:08:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,949
|
java
|
package introclassJava;
class IntObj {
public int value;
public IntObj () {
} public IntObj (int i) {
value = i;
}
}
class FloatObj {
public float value;
public FloatObj () {
} public FloatObj (float i) {
value = i;
}
}
class LongObj {
public long value;
public LongObj () {
} public LongObj (long i) {
value = i;
}
}
class DoubleObj {
public double value;
public DoubleObj () {
} public DoubleObj (double i) {
value = i;
}
}
class CharObj {
public char value;
public CharObj () {
} public CharObj (char i) {
value = i;
}
}
public class digits_f227ed28_000 {
public java.util.Scanner scanner;
public String output = "";
public static void main (String[]args) throws Exception {
digits_f227ed28_000 mainClass = new digits_f227ed28_000 ();
String output;
if (args.length > 0) {
mainClass.scanner = new java.util.Scanner (args[0]);
} else {
mainClass.scanner = new java.util.Scanner (System.in);
}
mainClass.exec ();
System.out.println (mainClass.output);
}
public void exec () throws Exception {
IntObj num = new IntObj (), rem = new IntObj (0), count = new IntObj (1);
output += (String.format ("Enter an integer > "));
num.value = scanner.nextInt ();
output += (String.format ("The digits for the %d are: \n", num.value));
while (count.value <= 10 && num.value > 0) {
rem.value = num.value % 10;
num.value = num.value - rem.value;
num.value = num.value / 10;
count.value++;
output += (String.format ("%d\n", rem.value));
}
if (num.value <= 0 && (count.value) <= 10) && ((num.value) > 0) {
output += (String.format ("%d\n", num.value));
}
if (true)
return;;
}
}
|
[
"justinwm@163.com"
] |
justinwm@163.com
|
397ad3119b982e9df0dbb39ad3b340a0db3c15c3
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/LANG-9b-3-8-PESA_II-WeightedSum:TestLen:CallDiversity/org/apache/commons/lang3/time/FastDateParser$TextStrategy_ESTest_scaffolding.java
|
906bf9e0e1dbb4cd605709c1873b88b0888b88a4
|
[] |
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
| 461
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sun Jan 19 12:42:57 UTC 2020
*/
package org.apache.commons.lang3.time;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class FastDateParser$TextStrategy_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
f8bd15441c808e837d99763efdfcaea10726f4af
|
82b59048ecb8f3c27dc45a4939fe50d2c3b9f84f
|
/HazeUtils/src/main/java/com/aurfy/haze/utils/rule/operators/TextOperator.java
|
49c88fe7c775bd46f9a0afe304736336c1bb959b
|
[] |
no_license
|
hud125/Payment
|
fe357fd1aa30921a237f8f123090935dfb18174f
|
066272a7edbbf5b59368b3378618785f75082bd7
|
refs/heads/master
| 2021-01-20T00:56:49.345938
| 2015-04-21T02:25:48
| 2015-04-21T02:25:48
| 34,298,613
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,111
|
java
|
package com.aurfy.haze.utils.rule.operators;
import com.aurfy.haze.utils.ReflectionUtils;
import com.aurfy.haze.utils.rule.ValueType;
import com.aurfy.haze.utils.rule.exceptions.RuleException;
public abstract class TextOperator extends BasicOperator {
private static final long serialVersionUID = 6681252876717136688L;
public TextOperator() {
super();
setValueType(ValueType.Text);
}
protected boolean satisfy(String propertyValue, String valuePattern) throws RuleException {
return false;
}
protected boolean satisfy(String propertyValue) throws RuleException {
return false;
}
@Override
public boolean satisfy(Object object, String propertyName, String valuePattern) throws RuleException {
try {
Object objValue = ReflectionUtils.invokeGetter(object, propertyName);
String propertyValue = objValue == null ? null : objValue.toString();
if (isValueRequired()) {
return satisfy(propertyValue, valuePattern);
} else {
return satisfy(propertyValue);
}
} catch (Exception e) {
return defaultExceptionHandle(e);
}
}
}
|
[
"dinghao47@gmail.com"
] |
dinghao47@gmail.com
|
462deadc7d7d300491de073d89746c846e800e11
|
cb7ca0dbcf976c2d547da93866b3fa86039773fb
|
/src/main/java/com/wechat/jfinal/model/VideoCompetition.java
|
27930cd1ee85952facaab12d2fa5d23a5c12804c
|
[] |
no_license
|
alive-jh/Alive
|
a18850830a508483d4950b0e10026996eab0601b
|
0a5f32930546af6ebcd271171fb68366709337e3
|
refs/heads/main
| 2023-08-28T18:15:37.107727
| 2021-10-25T08:28:54
| 2021-10-25T08:28:54
| 420,863,338
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 520
|
java
|
package com.wechat.jfinal.model;
import com.wechat.jfinal.model.base.BaseVideoCompetition;
/**
* Generated by JFinal.
*/
@SuppressWarnings("serial")
public class VideoCompetition extends BaseVideoCompetition<VideoCompetition> {
public static final VideoCompetition dao = new VideoCompetition().dao();
public VideoInfo getVideoInfo() {
return VideoInfo.dao.findById(get("video_info_id"));
}
public VideoActivity getVideoActivity(){
return VideoActivity.dao.findById(get("video_activity_id"));
}
}
|
[
"174489204@qq.com"
] |
174489204@qq.com
|
cc4a6ec2c429744ec33a09cae84481108da6c844
|
a911f926261b82ec8a2ade2d0af1a973280ceab6
|
/qipai_dalianmeng/src/main/java/com/anbang/qipai/dalianmeng/msg/source/BijiGameRoomSource.java
|
4de535c37cd13a14ffe8c6c4f4cc995581eda49f
|
[] |
no_license
|
791837060/qipai_huainanmajiang
|
31325550c9db1fcb139c6f5a89d84f7deac0e3a2
|
b4f17b26484bbe2840a0852156117faee9996bbb
|
refs/heads/master
| 2023-06-26T22:31:40.822705
| 2021-07-30T07:20:49
| 2021-07-30T07:20:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 249
|
java
|
package com.anbang.qipai.dalianmeng.msg.source;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
public interface BijiGameRoomSource {
@Output
MessageChannel bijiGameRoom();
}
|
[
"shony01@163.com"
] |
shony01@163.com
|
6b9a010df881e7e9445e8d136fffcac3b0c18ac3
|
b4493419485490a99785ffb5ded9e0806a533426
|
/archive/core-platform/src/com/arsdigita/persistence/DataAssociationCursor.java
|
e7ba7a4472b2f7458b890373c73d1aa6d694c409
|
[] |
no_license
|
BackupTheBerlios/myrian-svn
|
11b6704a34689251c835cc1d6b21295c4312e2e5
|
65c1acb69e37f146bfece618b8812b0760bdcae5
|
refs/heads/master
| 2021-01-01T06:44:46.948808
| 2004-10-19T20:03:43
| 2004-10-19T20:03:43
| 40,823,082
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,305
|
java
|
/*
* Copyright (C) 2001-2004 Red Hat Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
package com.arsdigita.persistence;
/**
* DataAssociationCursor -
* This is used to allow developers to iterate through the objects
* within an association and get properties for those objects.
* This does not implement java.util.Iterator because it is a cursor,
* not an iterator. That is, each row has properties but is not
* actually an object
* <p>
*
* This is typically used when the developer wants to iterator through
* the objects within an association. In the sample of code below,
* the method gets the cursor from the association, filters the cursor
* so that it only returns the first N articles and then puts those N
* articles, into a list to be returned. </p>
*
* <pre><code>
* public Collection getArticles(int numberOfArticles) {
* LinkedList articles = new LinkedList();
* DataAssociationCursor cursor = ((DataAssociation) get("articles")).cursor();
* cursor.addFilter(cursor.getFilterFactory().lessThan("rownum",
* numberOfArticles, true));
* while (cursor.next()) {
* articles.addLast(cursor.getDataObject());
* }
*
* cursor.close();
* return children;
* }
*</code></pre>
* <p>
* Note that it is important to close the cursor explicitly to return
* the proper database resources as soon as possible.
*
* @author <a href="mailto:rhs@mit.edu">rhs@mit.edu</a>
* @author <a href="mailto:randyg@alum.mit.edu">randyg@alum.mit.edu</a>
* @version $Revision: #8 $ $Date: 2004/08/16 $
*/
public interface DataAssociationCursor extends DataCollection {
public static final String versionId = "$Id: //core-platform/dev/src/com/arsdigita/persistence/DataAssociationCursor.java#8 $ by $Author: dennis $, $DateTime: 2004/08/16 18:10:38 $";
/**
* Returns a data association that created this iterator
**/
DataAssociation getDataAssociation();
/**
* Returns the link associated with the current row.
*
* @return The link.
**/
DataObject getLink();
/**
* Calls get("link." + name).
*
* @param name The name of the link property.
*
* @return The property value.
*/
Object getLinkProperty(String name);
/**
* Removes the object associated with the current position in the
* collection. Note that this has NO EFFECT on the underlying
* DataAssociation until save() is called on the association's parent
* DataObject
*/
void remove();
}
|
[
"dennis@0c4ed275-74e5-0310-b0c6-b6ea092b5e81"
] |
dennis@0c4ed275-74e5-0310-b0c6-b6ea092b5e81
|
414fb261f348ed2ab4e42beb2b7d19f7e4ba49af
|
cb0b5139a0e96cfee209b763d54e189683477d4e
|
/quickstep/src/com/android/quickstep/RecentTasksList.java
|
3f53452396610869d44935b86a9f5de0c5064010
|
[
"Apache-2.0"
] |
permissive
|
floegerer/omega
|
65e7021fa3324e287220bc5b3af9721fe86028fd
|
ba3d8f4607d1f35bce071eabb638c4e819bb5fbc
|
refs/heads/master
| 2022-12-21T09:16:58.011720
| 2020-09-24T04:22:43
| 2020-09-24T04:22:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,287
|
java
|
/*
* Copyright (C) 2014 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.quickstep;
import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR;
import android.annotation.TargetApi;
import android.app.ActivityManager;
import android.os.Build;
import android.os.Process;
import android.util.SparseBooleanArray;
import androidx.annotation.VisibleForTesting;
import com.android.launcher3.Utilities;
import com.android.launcher3.util.LooperExecutor;
import com.android.systemui.shared.recents.model.Task;
import com.android.systemui.shared.system.ActivityManagerWrapper;
import com.android.systemui.shared.system.KeyguardManagerCompat;
import com.android.systemui.shared.system.TaskStackChangeListener;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.function.Consumer;
/**
* Manages the recent task list from the system, caching it as necessary.
*/
@TargetApi(Build.VERSION_CODES.P)
public class RecentTasksList extends TaskStackChangeListener {
private final KeyguardManagerCompat mKeyguardManager;
private final LooperExecutor mMainThreadExecutor;
private final ActivityManagerWrapper mActivityManagerWrapper;
// The list change id, increments as the task list changes in the system
private int mChangeId;
// The last change id when the list was last loaded completely, must be <= the list change id
private int mLastLoadedId;
// The last change id was loaded with keysOnly = true
private boolean mLastLoadHadKeysOnly;
ArrayList<Task> mTasks = new ArrayList<>();
public RecentTasksList(LooperExecutor mainThreadExecutor,
KeyguardManagerCompat keyguardManager, ActivityManagerWrapper activityManagerWrapper) {
mMainThreadExecutor = mainThreadExecutor;
mKeyguardManager = keyguardManager;
mChangeId = 1;
mActivityManagerWrapper = activityManagerWrapper;
//mActivityManagerWrapper.registerTaskStackListener(this);
if (Utilities.ATLEAST_Q) {
try {
mActivityManagerWrapper.registerTaskStackListener(this);
} catch (NoSuchMethodError exception) {
exception.printStackTrace();
}
}
}
/**
* Fetches the task keys skipping any local cache.
*/
public void getTaskKeys(int numTasks, Consumer<ArrayList<Task>> callback) {
// Kick off task loading in the background
UI_HELPER_EXECUTOR.execute(() -> {
ArrayList<Task> tasks = loadTasksInBackground(numTasks, true /* loadKeysOnly */);
mMainThreadExecutor.execute(() -> callback.accept(tasks));
});
}
/**
* Asynchronously fetches the list of recent tasks, reusing cached list if available.
*
* @param loadKeysOnly Whether to load other associated task data, or just the key
* @param callback The callback to receive the list of recent tasks
* @return The change id of the current task list
*/
public synchronized int getTasks(boolean loadKeysOnly, Consumer<ArrayList<Task>> callback) {
final int requestLoadId = mChangeId;
Runnable resultCallback = callback == null
? () -> { }
: () -> callback.accept(copyOf(mTasks));
if (mLastLoadedId == mChangeId && (!mLastLoadHadKeysOnly || loadKeysOnly)) {
// The list is up to date, send the callback on the next frame,
// so that requestID can be returned first.
mMainThreadExecutor.post(resultCallback);
return requestLoadId;
}
// Kick off task loading in the background
UI_HELPER_EXECUTOR.execute(() -> {
ArrayList<Task> tasks = loadTasksInBackground(Integer.MAX_VALUE, loadKeysOnly);
mMainThreadExecutor.execute(() -> {
mTasks = tasks;
mLastLoadedId = requestLoadId;
mLastLoadHadKeysOnly = loadKeysOnly;
resultCallback.run();
});
});
return requestLoadId;
}
/**
* @return Whether the provided {@param changeId} is the latest recent tasks list id.
*/
public synchronized boolean isTaskListValid(int changeId) {
return mChangeId == changeId;
}
@Override
public synchronized void onTaskStackChanged() {
mChangeId++;
}
@Override
public void onTaskRemoved(int taskId) {
mTasks = loadTasksInBackground(Integer.MAX_VALUE, false);
}
@Override
public synchronized void onActivityPinned(String packageName, int userId, int taskId,
int stackId) {
mChangeId++;
}
@Override
public synchronized void onActivityUnpinned() {
mChangeId++;
}
/**
* Loads and creates a list of all the recent tasks.
*/
@VisibleForTesting
ArrayList<Task> loadTasksInBackground(int numTasks,
boolean loadKeysOnly) {
int currentUserId = Process.myUserHandle().hashCode();
ArrayList<Task> allTasks = new ArrayList<>();
List<ActivityManager.RecentTaskInfo> rawTasks =
mActivityManagerWrapper.getRecentTasks(numTasks, currentUserId);
// The raw tasks are given in most-recent to least-recent order, we need to reverse it
Collections.reverse(rawTasks);
SparseBooleanArray tmpLockedUsers = new SparseBooleanArray() {
@Override
public boolean get(int key) {
if (indexOfKey(key) < 0) {
// Fill the cached locked state as we fetch
put(key, mKeyguardManager.isDeviceLocked(key));
}
return super.get(key);
}
};
int taskCount = rawTasks.size();
for (int i = 0; i < taskCount; i++) {
ActivityManager.RecentTaskInfo rawTask = rawTasks.get(i);
Task.TaskKey taskKey = new Task.TaskKey(rawTask);
Task task;
if (!loadKeysOnly) {
boolean isLocked = tmpLockedUsers.get(taskKey.userId);
//task = Task.from(taskKey, rawTask, isLocked);
task = new Task(taskKey);
} else {
task = new Task(taskKey);
}
allTasks.add(task);
}
return allTasks;
}
private ArrayList<Task> copyOf(ArrayList<Task> tasks) {
ArrayList<Task> newTasks = new ArrayList<>();
for (int i = 0; i < tasks.size(); i++) {
Task t = tasks.get(i);
newTasks.add(new Task(t.key, t.colorPrimary, t.colorBackground, t.isDockable,
t.isLocked, t.taskDescription, t.topActivity));
}
return newTasks;
}
}
|
[
"saul_henriquez@hotmail.com"
] |
saul_henriquez@hotmail.com
|
a63693e920706d6dae46386326ab0ce274d48852
|
43f7ffd613cc613c1c15ef849e7985bad46dae9a
|
/common/src/main/java/com/emdata/messagewarningscore/common/dao/entity/MdrsAutoEvalDO.java
|
923736757534a2df9257d5aa06c4e5f063406666
|
[] |
no_license
|
zhangbuyi1/message-warning-score
|
5b1f53be8b9d6865a5f5cb9ecbb7e7077bc73284
|
57243b3627197ffb2211c3113c6238dda8a0f604
|
refs/heads/main
| 2023-03-22T03:19:03.457914
| 2021-03-17T13:50:48
| 2021-03-17T13:50:48
| 331,619,734
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,634
|
java
|
package com.emdata.messagewarningscore.common.dao.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* @description: mdrs预警评估表实体类
* @date: 2020/12/4
* @author: sunming
*/
@Data
@TableName("mdrs_auto_eval")
public class MdrsAutoEvalDO {
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
@ApiModelProperty(value = "机场名称")
private String airportCode;
@ApiModelProperty(value = "发布时间")
private Date releaseTime;
@ApiModelProperty(value = "重要天气")
private String importantWeather;
@ApiModelProperty(value = "伴随天气")
private String withWeather;
@ApiModelProperty(value = "预报概率")
private String predictProbility;
@ApiModelProperty(value = "命中情况")
private String hit;
@ApiModelProperty(value = "开始偏差量")
private Double startDeviation;
@ApiModelProperty(value = "结束偏差量")
private Double endDeviation;
@ApiModelProperty(value = "命中得分")
private Double hitScore;
@ApiModelProperty(value = "概率权重")
private Double proWeight;
@ApiModelProperty(value = "主观得分")
private Double subjectScore;
@ApiModelProperty(value = "客观得分")
private Double objectiveScore;
@ApiModelProperty(value = "综合得分")
private Double allScore;
}
|
[
"1362048417@qq.com"
] |
1362048417@qq.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.