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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cbb2e78cd89d678f2f8c4440a98e7c2d7044625e
|
17e8438486cb3e3073966ca2c14956d3ba9209ea
|
/dso/tags/3.7.10/dso-statistics-tests/src/test/java/com/tctest/statistics/StatisticsManagerAllActionsTest.java
|
f73f4027c5a3673ec68cc73cfd38df7a8760d4bc
|
[] |
no_license
|
sirinath/Terracotta
|
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
|
00a7662b9cf530dfdb43f2dd821fa559e998c892
|
refs/heads/master
| 2021-01-23T05:41:52.414211
| 2015-07-02T15:21:54
| 2015-07-02T15:21:54
| 38,613,711
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,612
|
java
|
/*
* All content copyright (c) 2003-2008 Terracotta, Inc., except as may otherwise be noted in a separate copyright
* notice. All rights reserved.
*/
package com.tctest.statistics;
import com.tc.statistics.StatisticData;
import com.tc.statistics.StatisticType;
import com.tc.statistics.beans.StatisticsEmitterMBean;
import com.tc.statistics.beans.StatisticsMBeanNames;
import com.tc.statistics.beans.StatisticsManagerMBean;
import com.tc.statistics.retrieval.actions.SRAShutdownTimestamp;
import com.tc.statistics.retrieval.actions.SRAStartupTimestamp;
import com.tc.test.JMXUtils;
import com.tc.util.UUID;
import com.tctest.TransparentTestIface;
import java.util.ArrayList;
import java.util.List;
import javax.management.MBeanServerConnection;
import javax.management.MBeanServerInvocationHandler;
import javax.management.remote.JMXConnector;
public class StatisticsManagerAllActionsTest extends AbstractStatisticsTransparentTestBase {
@Override
protected void duringRunningCluster() throws Exception {
waitForAllNodesToConnectToGateway(StatisticsManagerAllActionsTestApp.NODE_COUNT + 1);
JMXConnector jmxc = JMXUtils.getJMXConnector("localhost", getAdminPort());
MBeanServerConnection mbsc = jmxc.getMBeanServerConnection();
StatisticsManagerMBean stat_manager = MBeanServerInvocationHandler
.newProxyInstance(mbsc, StatisticsMBeanNames.STATISTICS_MANAGER, StatisticsManagerMBean.class, false);
StatisticsEmitterMBean stat_emitter = MBeanServerInvocationHandler
.newProxyInstance(mbsc, StatisticsMBeanNames.STATISTICS_EMITTER, StatisticsEmitterMBean.class, false);
List<StatisticData> data = new ArrayList<StatisticData>();
CollectingNotificationListener listener = new CollectingNotificationListener(1);
mbsc.addNotificationListener(StatisticsMBeanNames.STATISTICS_EMITTER, listener, null, data);
stat_emitter.enable();
String sessionid = UUID.getUUID().toString();
stat_manager.createSession(sessionid);
// register all the supported statistics
String[] statistics = stat_manager.getSupportedStatistics();
for (String statistic : statistics) {
stat_manager.enableStatistic(sessionid, statistic);
assertTrue(StatisticType.getAllTypes().contains(StatisticType.getType(stat_manager.getStatisticType(statistic))));
}
// start capturing
stat_manager.startCapturing(sessionid);
// wait for 10 seconds
Thread.sleep(10000);
// stop capturing and wait for the last data
synchronized (listener) {
stat_manager.stopCapturing(sessionid);
while (!listener.getShutdown()) {
listener.wait(2000);
}
}
// disable the notification and detach the listener
stat_emitter.disable();
mbsc.removeNotificationListener(StatisticsMBeanNames.STATISTICS_EMITTER, listener);
// check the data
assertTrue(data.size() > 2);
assertEquals(SRAStartupTimestamp.ACTION_NAME, data.get(0).getName());
assertEquals(SRAShutdownTimestamp.ACTION_NAME, data.get(data.size() - 1).getName());
// we can't check the statistics that we've received since there are
// statistics that do not have data until there are some transaction
// between the L1 and L2.
// e.g. SRAMessages, SRAL2FaultsFromDisk, SRADistributedGC
}
@Override
protected Class getApplicationClass() {
return StatisticsManagerAllActionsTestApp.class;
}
@Override
public void doSetUp(final TransparentTestIface t) throws Exception {
t.getTransparentAppConfig().setClientCount(StatisticsManagerAllActionsTestApp.NODE_COUNT);
t.initializeTestRunner();
}
}
|
[
"cruise@7fc7bbf3-cf45-46d4-be06-341739edd864"
] |
cruise@7fc7bbf3-cf45-46d4-be06-341739edd864
|
250b256b8d9af8574768e752fd81d20d1cb647e3
|
5ec06dab1409d790496ce082dacb321392b32fe9
|
/clients/spring/generated/src/main/java/org/openapitools/model/ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo.java
|
9d7da1b1bc895d92017f7af017dfde024d4ed08b
|
[
"Apache-2.0"
] |
permissive
|
shinesolutions/swagger-aem-osgi
|
e9d2385f44bee70e5bbdc0d577e99a9f2525266f
|
c2f6e076971d2592c1cbd3f70695c679e807396b
|
refs/heads/master
| 2022-10-29T13:07:40.422092
| 2021-04-09T07:46:03
| 2021-04-09T07:46:03
| 190,217,155
| 3
| 3
|
Apache-2.0
| 2022-10-05T03:26:20
| 2019-06-04T14:23:28
| null |
UTF-8
|
Java
| false
| false
| 4,393
|
java
|
package org.openapitools.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.model.ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplProperties;
import javax.validation.Valid;
import javax.validation.constraints.*;
/**
* ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2019-08-05T01:13:37.880Z[GMT]")
public class ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo {
@JsonProperty("pid")
private String pid = null;
@JsonProperty("title")
private String title = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("properties")
private ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplProperties properties = null;
public ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo pid(String pid) {
this.pid = pid;
return this;
}
/**
* Get pid
* @return pid
**/
@ApiModelProperty(value = "")
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo title(String title) {
this.title = title;
return this;
}
/**
* Get title
* @return title
**/
@ApiModelProperty(value = "")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo properties(ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplProperties properties) {
this.properties = properties;
return this;
}
/**
* Get properties
* @return properties
**/
@ApiModelProperty(value = "")
@Valid
public ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplProperties getProperties() {
return properties;
}
public void setProperties(ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplProperties properties) {
this.properties = properties;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo comDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo = (ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo) o;
return Objects.equals(this.pid, comDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo.pid) &&
Objects.equals(this.title, comDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo.title) &&
Objects.equals(this.description, comDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo.description) &&
Objects.equals(this.properties, comDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo.properties);
}
@Override
public int hashCode() {
return Objects.hash(pid, title, description, properties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ComDayCqAnalyticsTestandtargetImplServiceWebServiceImplInfo {\n");
sb.append(" pid: ").append(toIndentedString(pid)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"cliffano@gmail.com"
] |
cliffano@gmail.com
|
a09a4f0839773cb95d42d77f4762d24be5c51e55
|
2760cbcf6a5cf401c37ad47b7055cd455d170ca9
|
/javademo/src/java0715_abstract_interface/Java100_interface.java
|
7ff13c14dc571ff441c1c19701cc69d69a1b36a0
|
[] |
no_license
|
davidkim9204/KH
|
d761f3a2721e1c3edf124c6ebf3e229b2836dfe8
|
d2f39c5c8075c54d84c565783e4c0e0e6314ce64
|
refs/heads/master
| 2021-01-12T12:27:49.630370
| 2016-11-02T08:11:03
| 2016-11-02T08:11:03
| 72,500,407
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 700
|
java
|
package java0715_abstract_interface;
interface SampleA{
void prn();
}
interface SampleB extends SampleA{
void call();
}
class Animal {
void play(){
System.out.println("PLAY");
}
}//end Animal
//extends~~~ implements ~~~순서로 상속을 한다. extends가 먼저 상서ㅗㄱ
class Life extends Animal implements SampleB{
@Override
public void prn() {
System.out.println("PRN");
}
@Override
public void call() {
System.out.println("CALL");
}
}//end Life//////
public class Java100_interface {
public static void main(String[] args) {
Life ee=new Life();
ee.call();
ee.prn();
}
}
|
[
"user1@user1-PC"
] |
user1@user1-PC
|
b1d70cfbe9ace9c09c6ce0640e379bc731aa7589
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_6945a6f188d398da0bda42ff611810df62680bbf/NodeFilterTest/2_6945a6f188d398da0bda42ff611810df62680bbf_NodeFilterTest_s.java
|
659ed94ef36b0c37ba9526801dbb9fb39303dc04
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,912
|
java
|
/*
* Copyright (c) 2002-2013 Gargoyle Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.gargoylesoftware.htmlunit.javascript.host;
import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.CHROME;
import org.junit.Test;
import org.junit.runner.RunWith;
import com.gargoylesoftware.htmlunit.BrowserRunner;
import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts;
import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented;
import com.gargoylesoftware.htmlunit.WebDriverTestCase;
/**
* Tests for {@link NodeFilter}.
*
* @version $Revision$
* @author Marc Guillemot
*/
@RunWith(BrowserRunner.class)
public class NodeFilterTest extends WebDriverTestCase {
/**
* @throws Exception if the test fails
*/
@Test
@Alerts(DEFAULT = { "1", "2", "3", "1", "2", "4", "8", "16", "32", "64", "128", "256", "512", "1024", "2048" },
IE = "exception")
public void constants() throws Exception {
final String html = "<html><head>\n"
+ "<script>\n"
+ " var properties = ['FILTER_ACCEPT', 'FILTER_REJECT', 'FILTER_SKIP',\n"
+ "'SHOW_ELEMENT', 'SHOW_ATTRIBUTE', 'SHOW_TEXT', 'SHOW_CDATA_SECTION',\n"
+ "'SHOW_ENTITY_REFERENCE', 'SHOW_ENTITY', 'SHOW_PROCESSING_INSTRUCTION', 'SHOW_COMMENT',\n"
+ "'SHOW_DOCUMENT', 'SHOW_DOCUMENT_TYPE', 'SHOW_DOCUMENT_FRAGMENT', 'SHOW_NOTATION'];\n"
+ " try {\n"
+ " for (var i=0; i<properties.length; ++i) {\n"
+ " alert(NodeFilter[properties[i]]);\n"
+ " }\n"
+ " } catch(e) { alert('exception');}\n"
+ "</script></head>\n"
+ "<body></body></html>";
loadPageWithAlerts2(html);
}
/**
* @throws Exception if the test fails
*/
@Test
@NotYetImplemented(CHROME)
@Alerts(DEFAULT = "-1", FF3_6 = "4294967295", FF10 = "4294967295", IE = "exception")
public void constants_SHOW_ALL() throws Exception {
final String html = "<html><head>\n"
+ "<script>\n"
+ " try {\n"
+ " alert(NodeFilter.SHOW_ALL);\n"
+ " } catch(e) { alert('exception');}\n"
+ "</script></head>\n"
+ "<body></body></html>";
loadPageWithAlerts2(html);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
4f63c18b971db33041e9e7094a59e0b24060283c
|
a1e0706bf1bc83919654b4517730c9aed6499355
|
/dts/gen/com/intellij/dts/lang/psi/DtsExprValue.java
|
0c725c94aabf52d52426ffe7c98d60e34118c9e2
|
[
"Apache-2.0"
] |
permissive
|
JetBrains/intellij-plugins
|
af734c74c10e124011679e3c7307b63d794da76d
|
f6723228208bfbdd49df463046055ea20659b519
|
refs/heads/master
| 2023-08-23T02:59:46.681310
| 2023-08-22T13:35:06
| 2023-08-22T15:23:46
| 5,453,324
| 2,018
| 1,202
| null | 2023-09-13T10:51:36
| 2012-08-17T14:31:20
|
Java
|
UTF-8
|
Java
| false
| true
| 271
|
java
|
// This is a generated file. Not intended for manual editing.
package com.intellij.dts.lang.psi;
public interface DtsExprValue extends com.intellij.dts.lang.psi.DtsValue.Untyped {
@org.jetbrains.annotations.Nullable
com.intellij.dts.lang.psi.DtsExpr getExpr();
}
|
[
"intellij-monorepo-bot-no-reply@jetbrains.com"
] |
intellij-monorepo-bot-no-reply@jetbrains.com
|
e1d6653baf745fa6f4bd9e6300ae52501e211f57
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/2/org/apache/commons/math3/stat/Frequency_getCumFreq_431.java
|
ada3a79fb33005b1cb2b1c318862f13d8bb91879
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 1,359
|
java
|
org apach common math3 stat
maintain frequenc distribut
accept compar valu valu ad
compar ad add method
illeg argument except illegalargumentexcept
integ valu integ long distinguish type
code add addvalu long valueof add addvalu add addvalu code
effect similarli argument code count getcount code
valu convert code add addvalu code charact instanc
valu compar integr valu attempt
combin integr type char frequenc distribut fail
float coerc doubl
compar user coercion
float nan doubl nan treat special occur input
occur output
valu order natur order
code compar code suppli constructor
version
frequenc serializ
return cumul frequenc valu equal
return compar valu set
param lookup
proport valu equal
cum freq getcumfreq
cum freq getcumfreq long valueof
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
5bfab269b1538a2c1521ff5ecb5eaba3e28be60e
|
e10cbe24faed9436d91839e3b153e154ac28e307
|
/easeui/src/main/java/com/hyphenate/easeui/widget/chatrow/EaseChatRowImage.java
|
7724b41106f9bf8a8868f4ef22e95907c79d7f1f
|
[] |
no_license
|
xiaojunruit/Laodao
|
1392416280c74297f837bcff29f5f387c729282f
|
536c61e57757261a05d576f6185c9e22f4676ed3
|
refs/heads/master
| 2021-08-24T10:33:43.005913
| 2017-12-09T03:50:28
| 2017-12-09T03:50:28
| 113,647,937
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,575
|
java
|
package com.hyphenate.easeui.widget.chatrow;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.AsyncTask;
import android.support.v4.os.AsyncTaskCompat;
import android.view.View;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.hyphenate.chat.EMClient;
import com.hyphenate.chat.EMFileMessageBody;
import com.hyphenate.chat.EMImageMessageBody;
import com.hyphenate.chat.EMMessage;
import com.hyphenate.chat.EMMessage.ChatType;
import com.hyphenate.easeui.R;
import com.hyphenate.easeui.model.EaseImageCache;
import com.hyphenate.easeui.ui.EaseShowBigImageActivity;
import com.hyphenate.easeui.utils.EaseImageUtils;
import java.io.File;
public class EaseChatRowImage extends EaseChatRowFile {
protected ImageView imageView;
private EMImageMessageBody imgBody;
public EaseChatRowImage(Context context, EMMessage message, int position, BaseAdapter adapter) {
super(context, message, position, adapter);
}
@Override
protected void onInflateView() {
inflater.inflate(message.direct() == EMMessage.Direct.RECEIVE ? R.layout.ease_row_received_picture : R.layout.ease_row_sent_picture, this);
}
@Override
protected void onFindViewById() {
percentageView = (TextView) findViewById(R.id.percentage);
imageView = (ImageView) findViewById(R.id.image);
}
@Override
protected void onSetUpView() {
imgBody = (EMImageMessageBody) message.getBody();
// received messages
if (message.direct() == EMMessage.Direct.RECEIVE) {
if (imgBody.thumbnailDownloadStatus() == EMFileMessageBody.EMDownloadStatus.DOWNLOADING ||
imgBody.thumbnailDownloadStatus() == EMFileMessageBody.EMDownloadStatus.PENDING) {
imageView.setImageResource(R.drawable.ease_default_image);
//set the receive message callback
setMessageReceiveCallback();
} else {
progressBar.setVisibility(View.GONE);
percentageView.setVisibility(View.GONE);
imageView.setImageResource(R.drawable.ease_default_image);
String thumbPath = imgBody.thumbnailLocalPath();
if (!new File(thumbPath).exists()) {
// to make it compatible with thumbnail received in previous version
thumbPath = EaseImageUtils.getThumbnailImagePath(imgBody.getLocalUrl());
}
showImageView(thumbPath, imgBody.getLocalUrl(), message);
}
return;
}
String filePath = imgBody.getLocalUrl();
String thumbPath = EaseImageUtils.getThumbnailImagePath(imgBody.getLocalUrl());
showImageView(thumbPath, filePath, message);
handleSendMessage();
}
@Override
protected void onUpdateView() {
super.onUpdateView();
}
@Override
protected void onBubbleClick() {
if (imgBody.thumbnailDownloadStatus() == EMFileMessageBody.EMDownloadStatus.DOWNLOADING ||
imgBody.thumbnailDownloadStatus() == EMFileMessageBody.EMDownloadStatus.PENDING) {
//thumbnail image downloading
return;
} else if (imgBody.thumbnailDownloadStatus() == EMFileMessageBody.EMDownloadStatus.FAILED) {
progressBar.setVisibility(View.VISIBLE);
percentageView.setVisibility(View.VISIBLE);
// retry download with click event of user
EMClient.getInstance().chatManager().downloadThumbnail(message);
}
Intent intent = new Intent(context, EaseShowBigImageActivity.class);
File file = new File(imgBody.getLocalUrl());
if (file.exists()) {
Uri uri = Uri.fromFile(file);
intent.putExtra("uri", uri);
} else {
// The local full size pic does not exist yet.
// ShowBigImage needs to download it from the server
// first
String msgId = message.getMsgId();
intent.putExtra("messageId", msgId);
intent.putExtra("localUrl", imgBody.getLocalUrl());
}
if (message != null && message.direct() == EMMessage.Direct.RECEIVE && !message.isAcked()
&& message.getChatType() == ChatType.Chat) {
try {
EMClient.getInstance().chatManager().ackMessageRead(message.getFrom(), message.getMsgId());
} catch (Exception e) {
e.printStackTrace();
}
}
context.startActivity(intent);
}
/**
* load image into image view
*/
private void showImageView(final String thumbernailPath, final String localFullSizePath, final EMMessage message) {
// first check if the thumbnail image already loaded into cache
Bitmap bitmap = EaseImageCache.getInstance().get(thumbernailPath);
if (bitmap != null) {
// thumbnail image is already loaded, reuse the drawable
imageView.setImageBitmap(bitmap);
} else {
AsyncTaskCompat.executeParallel(new AsyncTask<Object, Void, Bitmap>() {
@Override
protected Bitmap doInBackground(Object... args) {
File file = new File(thumbernailPath);
if (file.exists()) {
return EaseImageUtils.decodeScaleImage(thumbernailPath, 320, 320);
} else if (new File(imgBody.thumbnailLocalPath()).exists()) {
return EaseImageUtils.decodeScaleImage(imgBody.thumbnailLocalPath(), 480, 480);
} else {
if (message.direct() == EMMessage.Direct.SEND) {
if (localFullSizePath != null && new File(localFullSizePath).exists()) {
return EaseImageUtils.decodeScaleImage(localFullSizePath, 320, 320);
} else {
return null;
}
} else {
return null;
}
}
}
protected void onPostExecute(Bitmap image) {
if (image != null) {
imageView.setImageBitmap(image);
EaseImageCache.getInstance().put(thumbernailPath, image);
}
}
});
}
}
}
|
[
"llanlese@gmail.com"
] |
llanlese@gmail.com
|
c8cd70e3927aab7c1bf5ea01e2afa807c5c8a38a
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/30/30_a95c16f5e8b5e794b7d4ece9c41294a9c01409f4/ProcessingDatabaseDaoTest/30_a95c16f5e8b5e794b7d4ece9c41294a9c01409f4_ProcessingDatabaseDaoTest_s.java
|
78477e3ac714675b11c402ee7821a7a792c4b9f0
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 5,979
|
java
|
package org.kalibro.core.persistence;
import static org.junit.Assert.*;
import java.util.Date;
import java.util.Random;
import javax.persistence.TypedQuery;
import org.junit.Test;
import org.kalibro.*;
import org.kalibro.core.persistence.record.MetricConfigurationSnapshotRecord;
import org.kalibro.core.persistence.record.ProcessingRecord;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
@PrepareForTest(ProcessingDatabaseDao.class)
public class ProcessingDatabaseDaoTest extends
DatabaseDaoTestCase<Processing, ProcessingRecord, ProcessingDatabaseDao> {
private static final String WHERE = "processing.repository.id = :repositoryId";
private static final String CLAUSE = "WHERE " + WHERE;
private static final Long ID = Math.abs(new Random().nextLong());
private static final Long TIME = Math.abs(new Random().nextLong());
private static final Date DATE = new Date(TIME);
@Test
public void shouldAnswerIfHasProcessing() {
doReturn(true).when(dao).exists(CLAUSE, "repositoryId", ID);
assertTrue(dao.hasProcessing(ID));
doReturn(false).when(dao).exists(CLAUSE, "repositoryId", ID);
assertFalse(dao.hasProcessing(ID));
}
@Test
public void shouldAnswerIfHasReadyProcessing() {
doReturn(true).when(dao).exists(CLAUSE + " AND processing.state = 'READY'", "repositoryId", ID);
assertTrue(dao.hasReadyProcessing(ID));
doReturn(false).when(dao).exists(CLAUSE + " AND processing.state = 'READY'", "repositoryId", ID);
assertFalse(dao.hasReadyProcessing(ID));
}
@Test
public void shouldAnswerIfHasProcessingAfterDate() {
doReturn(true).when(dao).exists(CLAUSE + " AND processing.date > :date", "repositoryId", ID, "date", TIME);
assertTrue(dao.hasProcessingAfter(DATE, ID));
doReturn(false).when(dao).exists(CLAUSE + " AND processing.date > :date", "repositoryId", ID, "date", TIME);
assertFalse(dao.hasProcessingAfter(DATE, ID));
}
@Test
public void shouldAnswerIfHasProcessingBeforeDate() {
doReturn(true).when(dao).exists(CLAUSE + " AND processing.date < :date", "repositoryId", ID, "date", TIME);
assertTrue(dao.hasProcessingBefore(DATE, ID));
doReturn(false).when(dao).exists(CLAUSE + " AND processing.date < :date", "repositoryId", ID, "date", TIME);
assertFalse(dao.hasProcessingBefore(DATE, ID));
}
@Test
public void shouldGetLastProcessingState() {
ProcessState state = ProcessState.ANALYZING;
TypedQuery<String> stateQuery = PowerMockito.mock(TypedQuery.class);
doReturn(stateQuery).when(dao).createQuery(
"SELECT processing.state FROM Processing processing " + CLAUSE + " AND processing.date = " +
"(SELECT max(p.date) FROM Processing p WHERE p.repository.id = :repositoryId)", String.class);
when(stateQuery.getSingleResult()).thenReturn(state.name());
assertSame(state, dao.lastProcessingState(ID));
verify(stateQuery).setParameter("repositoryId", ID);
}
@Test
public void shouldGetLastReadyProcessing() {
assertSame(entity, dao.lastReadyProcessing(ID));
verify(dao).createRecordQuery(WHERE + " AND processing.date = " +
"(SELECT max(p.date) FROM Processing p WHERE p.repository.id = :repositoryId AND p.state = 'READY')");
verify(query).setParameter("repositoryId", ID);
}
@Test
public void shouldGetFirstProcessing() {
assertSame(entity, dao.firstProcessing(ID));
verify(dao).createRecordQuery(WHERE + " AND processing.date = " +
"(SELECT min(p.date) FROM Processing p WHERE p.repository.id = :repositoryId)");
verify(query).setParameter("repositoryId", ID);
}
@Test
public void shouldGetLastProcessing() {
assertSame(entity, dao.lastProcessing(ID));
verify(dao).createRecordQuery(WHERE + " AND processing.date = " +
"(SELECT max(p.date) FROM Processing p WHERE p.repository.id = :repositoryId)");
verify(query).setParameter("repositoryId", ID);
}
@Test
public void shouldGetFirstProcessingAfterDate() {
assertSame(entity, dao.firstProcessingAfter(DATE, ID));
verify(dao).createRecordQuery(WHERE + " AND processing.date = " +
"(SELECT min(p.date) FROM Processing p WHERE p.repository.id = :repositoryId AND p.date > :date)");
verify(query).setParameter("repositoryId", ID);
verify(query).setParameter("date", TIME);
}
@Test
public void shouldGetLastProcessingBeforeDate() {
assertSame(entity, dao.lastProcessingBefore(DATE, ID));
verify(dao).createRecordQuery(WHERE + " AND processing.date = " +
"(SELECT max(p.date) FROM Processing p WHERE p.repository.id = :repositoryId AND p.date < :date)");
verify(query).setParameter("repositoryId", ID);
verify(query).setParameter("date", TIME);
}
@Test
public void shouldCreateProcessingForRepository() throws Exception {
Repository repository = mock(Repository.class);
MetricConfigurationSnapshotRecord snapshot = mockSnapshot(repository);
whenNew(Processing.class).withArguments(repository).thenReturn(entity);
assertSame(entity, dao.createProcessingFor(repository));
verify(dao).save(record);
verify(dao).save(snapshot);
}
private MetricConfigurationSnapshotRecord mockSnapshot(Repository repository) throws Exception {
Configuration configuration = mock(Configuration.class);
MetricConfiguration metricConf = mock(MetricConfiguration.class);
MetricConfigurationSnapshotRecord snapshot = mock(MetricConfigurationSnapshotRecord.class);
when(repository.getConfiguration()).thenReturn(configuration);
when(configuration.getMetricConfigurations()).thenReturn(sortedSet(metricConf));
whenNew(MetricConfigurationSnapshotRecord.class).withArguments(metricConf, record).thenReturn(snapshot);
doReturn(snapshot).when(dao).save(snapshot);
return snapshot;
}
@Test
public void shouldSaveProcessing() throws Exception {
dao.save(entity);
verifyNew(ProcessingRecord.class).withArguments(entity);
verify(dao).save(record);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
8e7efccb71bd12efce9f9d4af7b52873045876b4
|
d71cb2e4538e901c73f240625bef39cbb4dea6c9
|
/src/main/java/cn/huaruan/ud24/query/entity/ComplaintWayBill.java
|
3993749b5844e471a9f7d22e1093a59f3f5dbf12
|
[] |
no_license
|
jpengkun/24ud
|
e43788181ae4c4c591374566bb729f8e8e9e0381
|
217b56238aeb65e26a3c694f126b41074185aa8d
|
refs/heads/master
| 2022-12-12T16:23:08.132710
| 2020-09-15T13:29:29
| 2020-09-15T13:29:29
| 290,714,388
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 378
|
java
|
package cn.huaruan.ud24.query.entity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import java.util.List;
/**
* @ClassName ComplaintWayBill
* @Description TODO
* @Author zdf82
* @Date 2020/8/31 21:24
**/
@Data
@ApiModel("申诉及订单信息")
public class ComplaintWayBill {
private Complaint complaint;
private TimelyWaybill timelyWaybill;
}
|
[
"824780260@qq.com"
] |
824780260@qq.com
|
74c483149b361923f703231c79ab0410d182964e
|
da687546b9264ad41e5381311f914be3bab89c9c
|
/components/src/main/java/com/github/markash/ui/component/EntitiesSorter.java
|
803bd7905365edac707d76744e99bafb5f2881c0
|
[] |
no_license
|
markash/threesixty-components
|
07c30eccbd45dd37ce931d36315e040767a1aaa3
|
2a1dc280b3f021ff87b4b0f45964f836bfd5ed9a
|
refs/heads/master
| 2021-01-18T20:09:17.618249
| 2018-10-10T19:31:33
| 2018-10-10T19:31:33
| 86,942,201
| 1
| 1
| null | 2018-01-24T21:06:15
| 2017-04-01T20:53:32
|
CSS
|
UTF-8
|
Java
| false
| false
| 213
|
java
|
package com.github.markash.ui.component;
import java.util.List;
@FunctionalInterface
public interface EntitiesSorter<T> {
List<T> sort(final List<T> rows, final boolean sortAscending, final String property);
}
|
[
"mp.ashworth@gmail.com"
] |
mp.ashworth@gmail.com
|
68f673e8a8f66b8a73e4abd823cb924d8bdd49cf
|
f7e662dc305585d67b46b68048a76675b7241bc4
|
/src/main/java/com/hrban/service/base/TblDateService.java
|
dedad36ae5568d9d1fe8f11b1e1dbea499e26ca7
|
[] |
no_license
|
hrban/family_service_platform
|
033a62abc60f8a3c05213123384751c350724466
|
631a9e503733fdeaafa5ee2f588db2f242500da5
|
refs/heads/master
| 2022-12-06T11:01:57.969453
| 2020-08-21T06:52:26
| 2020-08-21T06:52:26
| 288,347,622
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 294
|
java
|
package com.hrban.service.base;
import com.hrban.bean.TblDate;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 工作日期 服务类
* </p>
*
* @author hrban
* @since 2020-08-18
*/
public interface TblDateService extends IService<TblDate> {
}
|
[
"farmar_farmer@126.com"
] |
farmar_farmer@126.com
|
00acf3a3e37c10db524f76a6caec302328e142ea
|
fa98b943f13ebbaf4e1b6f0cfdc64c95281b35ca
|
/ha-tool/src/main/java/jp/co/ha/tool/excel/ExcelRow.java
|
3ca3c82020aec9b504a2c5f891155854808264cf
|
[] |
no_license
|
kohei-okazaki/work-3g
|
e6f68b85443002face236a8b5b917063a7d714c6
|
62e30889f462f3abad0b4f9df186fa70d18aa211
|
refs/heads/master
| 2023-07-24T12:34:05.355446
| 2023-01-08T12:33:35
| 2023-01-08T12:33:35
| 128,875,758
| 23
| 4
| null | 2023-07-11T00:42:52
| 2018-04-10T04:55:59
|
Java
|
UTF-8
|
Java
| false
| false
| 908
|
java
|
package jp.co.ha.tool.excel;
import java.util.ArrayList;
import java.util.List;
import jp.co.ha.tool.excel.type.CellPositionType;
/**
* エクセル行情報保持クラス
*
* @version 1.0.0
*/
public class ExcelRow {
/** セルリスト */
private List<ExcelCell> cellList = new ArrayList<>();
/**
* セルを追加する
*
* @param cell
* セル
*/
public void addCell(ExcelCell cell) {
this.cellList.add(cell);
}
/**
* セルリストを返す
*
* @return cellList
*/
public List<ExcelCell> getCellList() {
return cellList;
}
/**
* セル位置に対応する{@linkplain ExcelCell}を返す
*
* @param type
* セル位置
* @return セル
*/
public ExcelCell getCell(CellPositionType type) {
return this.cellList.get(type.getPosition());
}
}
|
[
"kou1210hei@gmail.com"
] |
kou1210hei@gmail.com
|
512c919aba8efebb762165568387ab0383407cda
|
074fc577a27d039c8e8bd7b218716e434de46bc2
|
/app/src/main/java/com/zhiyu/quanzhu/ui/widget/rongorder/OrderMessageItemProvider.java
|
fba533808e95263541ddb25cab0bebfd1f9fb5bc
|
[] |
no_license
|
leon6611wang/PinTaiHui
|
941d1844ffb1c8912d59b530af788610c2879350
|
20bb8af19789f50e34c7e83796a1039b0dd2388a
|
refs/heads/master
| 2020-12-18T20:58:50.265795
| 2020-08-07T05:40:46
| 2020-08-07T05:40:47
| 235,515,563
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,433
|
java
|
package com.zhiyu.quanzhu.ui.widget.rongorder;
import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.Spannable;
import android.text.SpannableString;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.zhiyu.quanzhu.R;
import com.zhiyu.quanzhu.ui.adapter.OrderMessageGoodsRecyclerAdapter;
import com.zhiyu.quanzhu.ui.widget.RoundImageView;
import com.zhiyu.quanzhu.utils.GsonUtils;
import com.zhiyu.quanzhu.utils.SpaceItemDecoration;
import java.util.List;
import io.rong.imkit.model.ProviderTag;
import io.rong.imkit.model.UIMessage;
import io.rong.imkit.widget.provider.IContainerItemProvider;
import io.rong.imlib.model.Message;
@ProviderTag(messageContent = OrderMessage.class, showReadState = true)
public class OrderMessageItemProvider extends IContainerItemProvider.MessageProvider<OrderMessage> {
private Context context;
public OrderMessageItemProvider(Context context) {
super();
this.context = context;
}
@Override
public void bindView(View view, int i, OrderMessage orderMessage, UIMessage uiMessage) {
final ViewHolder holder = (ViewHolder) view.getTag();
holder.allCountTextView.setText("" + orderMessage.getAll_count());
holder.allPriceTextView.setText("¥" + orderMessage.getAll_price());
holder.buyerNameTextView.setText("收件人:"+orderMessage.getBuyer_name());
holder.buyerPhoneTextView.setText("电话:"+orderMessage.getBuyer_phone());
holder.buyerAddressTextView.setText("收件地址:"+orderMessage.getBuyer_address());
if (null == holder.goodsList || holder.goodsList.size() == 0) {
holder.goodsList = GsonUtils.getObjectList(orderMessage.getOrder_goods_list(), OrderMessage.OrderGoods.class);
}
holder.adapter.setList(holder.goodsList);
holder.mRecyclerView.setLayoutManager(holder.linearLayoutManager);
holder.mRecyclerView.setAdapter(holder.adapter);
holder.orderConfirmTextView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
System.out.println("当前订单进行了确认操作");
holder.orderConfirmTextView.setBackground(context.getResources().getDrawable(R.mipmap.order_message_confirmed_bg));
holder.orderConfirmTextView.setTextColor(context.getResources().getColor(R.color.text_color_grey));
holder.orderConfirmTextView.setText("已确认");
}
});
}
@Override
public Spannable getContentSummary(OrderMessage orderMessage) {
return new SpannableString("订单信息确认");
}
@Override
public void onItemClick(View view, int i, OrderMessage orderMessage, UIMessage uiMessage) {
System.out.println("订单 点击");
}
@Override
public View newView(Context context, ViewGroup viewGroup) {
View view = LayoutInflater.from(context).inflate(R.layout.rong_order_message, null);
ViewHolder holder = new ViewHolder();
holder.mRecyclerView = view.findViewById(R.id.mRecyclerView);
holder.allCountTextView = view.findViewById(R.id.allCountTextView);
holder.allPriceTextView = view.findViewById(R.id.allPriceTextView);
holder.buyerNameTextView = view.findViewById(R.id.buyerNameTextView);
holder.buyerPhoneTextView = view.findViewById(R.id.buyerPhoneTextView);
holder.buyerAddressTextView = view.findViewById(R.id.buyerAddressTextView);
holder.orderConfirmTextView = view.findViewById(R.id.orderConfirmTextView);
holder.adapter = new OrderMessageGoodsRecyclerAdapter(context);
holder.linearLayoutManager = new LinearLayoutManager(context);
holder.linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
view.setTag(holder);
return view;
}
private static class ViewHolder {
RecyclerView mRecyclerView;
TextView allCountTextView, allPriceTextView, buyerNameTextView, buyerPhoneTextView, buyerAddressTextView, orderConfirmTextView;
OrderMessageGoodsRecyclerAdapter adapter;
LinearLayoutManager linearLayoutManager;
List<OrderMessage.OrderGoods> goodsList;
}
}
|
[
"522218113@qq.com"
] |
522218113@qq.com
|
8a491f6a72a02dc00eeb5dec23a3a83e62169ec9
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/4/4_d62d260804704a06f5af48fb1638bd13eda4d848/DefaultModifierTestChecker/4_d62d260804704a06f5af48fb1638bd13eda4d848_DefaultModifierTestChecker_s.java
|
9c7c3e4a12767919c4af5d3b160e9abb8028277e
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,004
|
java
|
package au.net.netstorm.boost.util.reflect;
import java.lang.reflect.Method;
import junit.framework.Assert;
public final class DefaultModifierTestChecker implements ModifierTestChecker {
private static final String[] EXCLUSIONS = {"hashCode", "getClass", "equals", "toString", "wait", "notify", "notifyAll"};
private final ModifierTestUtil modifier = new DefaultModifierTestUtil();
public void checkSynchronized(Method method) {
boolean isExclusion = isExclusion(method);
if (isExclusion) return;
boolean isSynchronized = modifier.isSynchronized(method);
Assert.assertTrue("" + method, isSynchronized);
}
public void checkPublic(Class cls) {
boolean isPublic = modifier.isPublic(cls);
Assert.assertTrue(getName(cls), isPublic);
}
public void checkFinal(Class cls) {
boolean isFinal = modifier.isFinal(cls);
// FIXME: SC042 assertTrue into helper method.
Assert.assertTrue(getName(cls), isFinal);
}
// FIXME: SC042 Tidy the section below up.
// FIXME: SC042 Expose via interface.
// FIXME: SC042 Merge with existing functionality.
// FIXME: SC042 Given the current state of affairs, this looks like it belongs in ClassPropertiesTestUtil.
public void checkSynchronized(Class cls) {
Method[] methods = cls.getMethods();
for (int i = 0; i < methods.length; i++) {
checkSynchronized(methods[i]);
}
}
private boolean isExclusion(String methodName) {
for (int i = 0; i < EXCLUSIONS.length; i++) {
if (methodName.equals(EXCLUSIONS[i])) return true;
}
return false;
}
private boolean isExclusion(Method method) {
String name = method.getName();
return isExclusion(name);
}
private String getName(Class cls) {
// FIXME: SC042 Fieldize.
return new DefaultClassMaster().getShortName(cls);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
14f59da880d07f73f942a35d92e4dd6547cb5abc
|
b3c22d2b26180e9fa5b535e02a12108c28df549e
|
/ttms3.0/src/main/java/cn/tedu/ttms/system/dao/MenuDao.java
|
fe745a1846783edae3f79b6dbd53a55682865cd7
|
[] |
no_license
|
kenyim001/Eclipse
|
bef78193911a34d023da62dcf7ef0b5d39475eaa
|
0df890550d3e7a639cc8f9e8fa55e1f856abd0ab
|
refs/heads/master
| 2020-03-14T11:17:47.693826
| 2018-04-30T10:36:49
| 2018-04-30T10:36:49
| 131,587,793
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 287
|
java
|
package cn.tedu.ttms.system.dao;
import java.util.List;
import java.util.Map;
import cn.tedu.ttms.common.dao.BaseDao;
import cn.tedu.ttms.system.entity.Menu;
public interface MenuDao extends BaseDao<Menu> {
List<Map<String, Object>> findTreeData();
int hasChild(Integer menuId);
}
|
[
"38854212+kenyim001@users.noreply.github.com"
] |
38854212+kenyim001@users.noreply.github.com
|
6ee3b2b197fc8af6229bc75a195fcbcc70257e65
|
8a98577c5995449677ede2cbe1cc408c324efacc
|
/Big_Clone_Bench_files_used/bcb_reduced/3/selected/791006.java
|
a0cd6c19d57a763e0f043a83775b73001c0991c9
|
[
"MIT"
] |
permissive
|
pombredanne/lsh-for-source-code
|
9363cc0c9a8ddf16550ae4764859fa60186351dd
|
fac9adfbd98a4d73122a8fc1a0e0cc4f45e9dcd4
|
refs/heads/master
| 2020-08-05T02:28:55.370949
| 2017-10-18T23:57:08
| 2017-10-18T23:57:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 669
|
java
|
package org.apache.nutch.crawl;
import org.apache.hadoop.io.MD5Hash;
import org.apache.nutch.parse.Parse;
import org.apache.nutch.protocol.Content;
/**
* Default implementation of a page signature. It calculates an MD5 hash
* of the raw binary content of a page. In case there is no content, it
* calculates a hash from the page's URL.
*
* @author Andrzej Bialecki <ab@getopt.org>
*/
public class MD5Signature extends Signature {
public byte[] calculate(Content content, Parse parse) {
byte[] data = content.getContent();
if (data == null) data = content.getUrl().getBytes();
return MD5Hash.digest(data).getDigest();
}
}
|
[
"nishima@mymail.vcu.edu"
] |
nishima@mymail.vcu.edu
|
9b352a38e39ef30989fde8ff2d824a6733f0e9d0
|
6adff12f858179c9cfa35c227f08ffff9be87537
|
/basex-core/src/main/java/org/basex/query/expr/ft/FTOptions.java
|
0417f7c5c65dfa565959da2b5d5591eab70a92e1
|
[
"BSD-3-Clause"
] |
permissive
|
rowhit/basex
|
2116c5785bdffbaa0fbadb3a26385b9b7bff1185
|
a0e4dc31fea7c002c3916c8bdb1ec55aaf274a97
|
refs/heads/master
| 2020-03-31T00:44:23.663802
| 2018-10-04T16:28:56
| 2018-10-04T16:28:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,986
|
java
|
package org.basex.query.expr.ft;
import org.basex.query.*;
import org.basex.query.iter.*;
import org.basex.query.value.*;
import org.basex.query.value.node.*;
import org.basex.query.var.*;
import org.basex.util.*;
import org.basex.util.ft.*;
import org.basex.util.hash.*;
/**
* FTOptions expression.
*
* @author BaseX Team 2005-18, BSD License
* @author Christian Gruen
*/
public final class FTOptions extends FTExpr {
/** FTOptions. */
private final FTOpt opt;
/**
* Constructor.
* @param info input info
* @param expr expression
* @param opt full-text options
*/
public FTOptions(final InputInfo info, final FTExpr expr, final FTOpt opt) {
super(info, expr);
this.opt = opt;
}
@Override
public FTExpr compile(final CompileContext cc) throws QueryException {
final QueryContext qc = cc.qc;
final FTOpt tmp = qc.ftOpt();
qc.ftOpt(opt.assign(tmp));
final Value value = qc.focus.value;
try {
if(opt.sw != null && value != null && value.data() != null) opt.sw.comp(value.data());
return exprs[0].compile(cc);
} finally {
qc.ftOpt(tmp);
}
}
@Override
public FTNode item(final QueryContext qc, final InputInfo ii) {
// shouldn't be called, as compile returns argument
throw Util.notExpected();
}
@Override
public FTIter iter(final QueryContext qc) {
// shouldn't be called, as compile returns argument
throw Util.notExpected();
}
@Override
public FTExpr copy(final CompileContext cc, final IntObjMap<Var> vm) {
return new FTOptions(info, exprs[0].copy(cc, vm), new FTOpt().assign(opt));
}
@Override
public boolean equals(final Object obj) {
return this == obj || obj instanceof FTOptions && opt.equals(((FTOptions) obj).opt) &&
super.equals(obj);
}
@Override
public void plan(final FElem plan) {
addPlan(plan, planElem(), opt, exprs[0]);
}
@Override
public String toString() {
return exprs[0].toString() + opt;
}
}
|
[
"christian.gruen@gmail.com"
] |
christian.gruen@gmail.com
|
4b69bda5a629e597b9234317128229bd3d6bcc5a
|
6a7c4e586ea998ac3f037df4f37e3176e77febb2
|
/src/com/sanguine/excise/model/clsExcisePermitMasterModel.java
|
f0e910c2ce89a894869dbcb69506d09d7ed1614d
|
[] |
no_license
|
puneteamsangsoftwares/SanguineERP
|
ef635a953b7f2ad24e7c53d28472f9b09ccce1cb
|
9c603a4591d165e6975931f53847aa4a97a0a504
|
refs/heads/master
| 2022-12-25T05:02:27.601147
| 2021-01-12T13:18:11
| 2021-01-12T13:18:11
| 215,270,060
| 0
| 1
| null | 2019-10-15T10:54:03
| 2019-10-15T10:22:47
|
Java
|
UTF-8
|
Java
| false
| false
| 4,398
|
java
|
package com.sanguine.excise.model;
import java.io.Serializable;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
@Entity
@Table(name = "tblexcisepermitmaster")
@IdClass(clsExcisePermitMasterModel_ID.class)
public class clsExcisePermitMasterModel implements Serializable {
private static final long serialVersionUID = 1L;
public clsExcisePermitMasterModel() {
}
public clsExcisePermitMasterModel(clsExcisePermitMasterModel_ID objModelID) {
strPermitCode = objModelID.getStrPermitCode();
strClientCode = objModelID.getStrClientCode();
}
@Id
@AttributeOverrides({ @AttributeOverride(name = "strPermitCode", column = @Column(name = "strPermitCode")), @AttributeOverride(name = "strClientCode", column = @Column(name = "strClientCode")) })
// Variable Declaration
@Column(name = "strPermitCode")
private String strPermitCode;
@Column(name = "intId")
private long intId;
@Column(name = "strPermitName")
private String strPermitName;
@Column(name = "strPermitNo")
private String strPermitNo;
@Column(name = "dtePermitExp")
private String dtePermitExp;
@Column(name = "strPermitType")
private String strPermitType;
@Column(name = "strUserCreated")
private String strUserCreated;
@Column(name = "strUserEdited")
private String strUserEdited;
@Column(name = "dteDateCreated")
private String dteDateCreated;
@Column(name = "dteDateEdited")
private String dteDateEdited;
@Column(name = "strClientCode")
private String strClientCode;
// Setter-Getter Methods
public String getStrPermitCode() {
return strPermitCode;
}
public void setStrPermitCode(String strPermitCode) {
this.strPermitCode = (String) setDefaultValue(strPermitCode, "NA");
}
public long getIntId() {
return intId;
}
public void setIntId(long intId) {
this.intId = (Long) setDefaultValue(intId, "0");
}
public String getStrPermitName() {
return strPermitName;
}
public void setStrPermitName(String strPermitName) {
this.strPermitName = (String) setDefaultValue(strPermitName, "NA");
}
public String getStrPermitNo() {
return strPermitNo;
}
public void setStrPermitNo(String strPermitNo) {
this.strPermitNo = (String) setDefaultValue(strPermitNo, "NA");
}
public String getDtePermitExp() {
return dtePermitExp;
}
public void setDtePermitExp(String dtePermitExp) {
this.dtePermitExp = dtePermitExp;
}
public String getStrPermitType() {
return strPermitType;
}
public void setStrPermitType(String strPermitType) {
this.strPermitType = (String) setDefaultValue(strPermitType, "NA");
}
public String getStrUserCreated() {
return strUserCreated;
}
public void setStrUserCreated(String strUserCreated) {
this.strUserCreated = (String) setDefaultValue(strUserCreated, "NA");
}
public String getStrUserEdited() {
return strUserEdited;
}
public void setStrUserEdited(String strUserEdited) {
this.strUserEdited = (String) setDefaultValue(strUserEdited, "NA");
}
public String getDteDateCreated() {
return dteDateCreated;
}
public void setDteDateCreated(String dteDateCreated) {
this.dteDateCreated = dteDateCreated;
}
public String getDteDateEdited() {
return dteDateEdited;
}
public void setDteDateEdited(String dteDateEdited) {
this.dteDateEdited = dteDateEdited;
}
public String getStrClientCode() {
return strClientCode;
}
public void setStrClientCode(String strClientCode) {
this.strClientCode = (String) setDefaultValue(strClientCode, "NA");
}
// Function to Set Default Values
private Object setDefaultValue(Object value, Object defaultValue) {
if (value != null && (value instanceof String && value.toString().length() > 0)) {
return value;
} else if (value != null && (value instanceof Double && value.toString().length() > 0)) {
return value;
} else if (value != null && (value instanceof Integer && value.toString().length() > 0)) {
return value;
} else if (value != null && (value instanceof Long && value.toString().length() > 0)) {
return value;
} else {
return defaultValue;
}
}
}
|
[
"vinayakborwal95@gmail.com"
] |
vinayakborwal95@gmail.com
|
88ddba337145dca1e8885bf7f94bb538791b46ef
|
1355a8fb99e5fd5d1c7f48c7156033dedbd5404f
|
/COLP.BEPS.Servicios.Util/src/main/java/co/gov/colpensiones/beps/dal/utilidades/DataStoredProcedure.java
|
6a63dee4d1234158f047d324063f100191118c82
|
[] |
no_license
|
lenercab/Asofondo
|
7c081631eee15e9fa9645b19b2762b4f5f2a7e5d
|
f7319b48c78a9bb906c2516c5e1228d38edde681
|
refs/heads/master
| 2020-04-13T19:54:00.170983
| 2018-04-03T16:01:09
| 2018-04-03T16:01:09
| 163,415,310
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,082
|
java
|
/**
*
*/
package co.gov.colpensiones.beps.dal.utilidades;
import java.util.ArrayList;
import java.util.List;
/**
* Objeto para el manejo de una estructura compleja retornada por la ejecución un procedimiento almacenado. Contiene un
* objeto de tipo DataTable en el cual se incluyen los resultados de un objeto de tipo ResultSet. Adicionalmente
* contiene una lista en la cual se incluyen los parámetros de tipo OUT configurados
*
* @author Yenny Ñustez Arevalo <ynustez@heinsohn.com.co>
*
*/
public class DataStoredProcedure {
/** Estructura de una tabla generada a partir de un objeto de tipo ResultSet */
private DataTable tablaResultSet;
/** Lista que contiene los parametros de salida obtenidos de la ejecucion de un Procedimiento Almacenado */
private List<DbParameter> parametrosSalida;
/** Lista que contiene los ResultSet de salida obtenidos de la ejecucion de un Procedimiento Almacenado */
private List<DataTable> resultSetList;
/**
* Constructor
*/
public DataStoredProcedure() {
tablaResultSet = new DataTable();
parametrosSalida = new ArrayList<DbParameter>();
resultSetList = new ArrayList<DataTable>();
}
/**
* @return the tablaResultSet
*/
public DataTable getTablaResultSet() {
return tablaResultSet;
}
/**
* @param tablaResultSet
* the tablaResultSet to set
*/
public void setTablaResultSet(DataTable tablaResultSet) {
this.tablaResultSet = tablaResultSet;
}
/**
* @return the parametrosSalida
*/
public List<DbParameter> getParametrosSalida() {
return parametrosSalida;
}
/**
* @param parametrosSalida
* the parametrosSalida to set
*/
public void setParametrosSalida(List<DbParameter> parametrosSalida) {
this.parametrosSalida = parametrosSalida;
}
/**
* @return the multipleResultSet
*/
public List<DataTable> getResultSetList() {
return resultSetList;
}
/**
* @param multipleResultSet
* the multipleResultSet to set
*/
public void setResultSetList(List<DataTable> resultSetList) {
this.resultSetList = resultSetList;
}
}
|
[
"crivera@itcol.com"
] |
crivera@itcol.com
|
04d38462f24c909bf5885c19bc94eaff7480c8ee
|
68a19507f18acff18aa4fa67d6611f5b8ac8913c
|
/plfx/plfx-mp/plfx-mp-pojo/src/main/java/plfx/mp/qo/PlatformPolicyQO.java
|
ab9c4cac85a7b564a3ccdf628d39b6c2b5c07d67
|
[] |
no_license
|
ksksks2222/pl-workspace
|
cf0d0be2dfeaa62c0d4d5437f85401f60be0eadd
|
6146e3e3c2384c91cac459d25b27ffeb4f970dcd
|
refs/heads/master
| 2021-09-13T08:59:17.177105
| 2018-04-27T09:46:42
| 2018-04-27T09:46:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,642
|
java
|
package plfx.mp.qo;
import java.util.Date;
import hg.common.component.BaseQo;
/**
* 查询平台调价政策
*
* @author yuxx
*/
public class PlatformPolicyQO extends BaseQo {
private static final long serialVersionUID = 1L;
/**
* 政策编号
*/
private String policyId;
/**
* 政策生效时间
*/
private Date beginDate;
/**
* 政策结束时间
*/
private Date endDate;
/**
* 状态
*/
private Integer state;
/**
* 创建人
*/
private String createUserName;
/**
* 创建人模糊查询
*/
private Boolean createUserNameLike = true;
/**
* 适用范围 经销商ID
*/
private String dealerId;
/**
* 景区名称
*/
private String scenicSpotName;
/**
* 景区名称模糊查询
*/
private Boolean scenicSpotNameLike = true;
/**
* 景区所在省
*/
private String scenicSpotProviceCode;
/**
* 景区所在市
*/
private String scenicSpotCityCode;
/**
* 景区所在区
*/
private String scenicSpotAreaCode;
/**
* 是否按快照日期从大到小
*/
private Boolean snapshotDateDesc = true;
/**
* 是否最新快照
*/
private Boolean lastSnapshot;
public String getPolicyId() {
return policyId;
}
public void setPolicyId(String policyId) {
this.policyId = policyId;
}
public Date getBeginDate() {
return beginDate;
}
public void setBeginDate(Date beginDate) {
this.beginDate = beginDate;
}
public Date getEndDate() {
return endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
public Integer getState() {
return state;
}
public void setState(Integer state) {
this.state = state;
}
public String getCreateUserName() {
return createUserName;
}
public void setCreateUserName(String createUserName) {
this.createUserName = createUserName;
}
public String getDealerId() {
return dealerId;
}
public void setDealerId(String dealerId) {
this.dealerId = dealerId;
}
public String getScenicSpotName() {
return scenicSpotName;
}
public void setScenicSpotName(String scenicSpotName) {
this.scenicSpotName = scenicSpotName;
}
public Boolean getScenicSpotNameLike() {
return scenicSpotNameLike;
}
public void setScenicSpotNameLike(Boolean scenicSpotNameLike) {
this.scenicSpotNameLike = scenicSpotNameLike;
}
public String getScenicSpotProviceCode() {
return scenicSpotProviceCode;
}
public void setScenicSpotProviceCode(String scenicSpotProviceCode) {
this.scenicSpotProviceCode = scenicSpotProviceCode;
}
public String getScenicSpotCityCode() {
return scenicSpotCityCode;
}
public void setScenicSpotCityCode(String scenicSpotCityCode) {
this.scenicSpotCityCode = scenicSpotCityCode;
}
public Boolean getCreateUserNameLike() {
return createUserNameLike;
}
public void setCreateUserNameLike(Boolean createUserNameLike) {
this.createUserNameLike = createUserNameLike;
}
public Boolean getSnapshotDateDesc() {
return snapshotDateDesc;
}
public void setSnapshotDateDesc(Boolean snapshotDateDesc) {
this.snapshotDateDesc = snapshotDateDesc;
}
public Boolean getLastSnapshot() {
return lastSnapshot;
}
public void setLastSnapshot(Boolean lastSnapshot) {
this.lastSnapshot = lastSnapshot;
}
public String getScenicSpotAreaCode() {
return scenicSpotAreaCode;
}
public void setScenicSpotAreaCode(String scenicSpotAreaCode) {
this.scenicSpotAreaCode = scenicSpotAreaCode;
}
}
|
[
"cangsong6908@gmail.com"
] |
cangsong6908@gmail.com
|
958787940d376997746e5335638371d338431fcb
|
7c6fbc26910c8476d2d6da826b54f166668347b1
|
/FourthEntityRelations/src/main/java/ingredients/Mint.java
|
55afe8e5b6fbc20714b354eb8f0be740471f3282
|
[] |
no_license
|
akash8756/Databases-Frameworks-Hibernate---Spring-Data
|
441885988b0941d88cbdf3b9db9255997b90f91b
|
6769731e70f3911a8c581a515844f4d3aba91309
|
refs/heads/master
| 2023-05-13T20:23:53.587284
| 2018-09-13T16:40:54
| 2018-09-13T16:40:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 522
|
java
|
package ingredients;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import java.math.BigDecimal;
@Entity
@DiscriminatorValue(value = "MT")
public class Mint extends BasicIngredient {
private static final String NAME = "Mint";
private static final BigDecimal PRICE = new BigDecimal(3.54);
public Mint() {
super(NAME ,PRICE);
}
public static String getNAME() {
return NAME;
}
public static BigDecimal getPRICE() {
return PRICE;
}
}
|
[
"krasimir_vasilev1995@abv.bg"
] |
krasimir_vasilev1995@abv.bg
|
018bd5d6aec0c87b7f9196d28b6c9416aeaa7ede
|
323c723bdbdc9bdf5053dd27a11b1976603609f5
|
/nssicc/nssicc_dao/src/main/java/biz/belcorp/ssicc/dao/spusicc/mae/ibatis/ProcesoMAEBloquearClienteReingresoNoAutorizadoDAOIbatis.java
|
a4b9b0d7b5eef1fc168d0abbaa90d63a82275bbf
|
[] |
no_license
|
cbazalar/PROYECTOS_PROPIOS
|
adb0d579639fb72ec7871334163d3fef00123a1c
|
3ba232d1f775afd07b13c8246d0a8ac892e93167
|
refs/heads/master
| 2021-01-11T03:38:06.084970
| 2016-10-24T01:33:00
| 2016-10-24T01:33:00
| 71,429,267
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 910
|
java
|
package biz.belcorp.ssicc.dao.spusicc.mae.ibatis;
import java.util.Map;
import org.springframework.stereotype.Repository;
import biz.belcorp.ssicc.dao.framework.ibatis.BaseDAOiBatis;
import biz.belcorp.ssicc.dao.spusicc.mae.ProcesoMAEBloquearClienteReingresoNoAutorizadoDAO;
/**
* @author peextsapaza
*
*/
@Repository("spusicc.procesoMAEBloquearClienteReingresoNoAutorizadoDAO")
public class ProcesoMAEBloquearClienteReingresoNoAutorizadoDAOIbatis extends BaseDAOiBatis implements
ProcesoMAEBloquearClienteReingresoNoAutorizadoDAO {
/* (non-Javadoc)
* @see biz.belcorp.ssicc.spusicc.inc.dao.ProcesoMAEBloquearClienteReingresoNoAutorizadoDAO#executeGenerarSolicitudBolsaFaltantes(java.util.Map)
*/
public void executeBloquearClienteReingresoNoAutorizado(Map params) {
getSqlMapClientTemplate().update("spusicc.ProcesosMAESQL.executeBloquearClienteReingresoNoAutorizado",params);
}
}
|
[
"cbazalarlarosa@gmail.com"
] |
cbazalarlarosa@gmail.com
|
aad8facea36d129bddd0567541ab2d36a48b7c9c
|
2869fc39e2e63d994d5dd8876476e473cb8d3986
|
/Super_back/src/java/com/lvmama/back/sweb/groupadvice/DocxTransformer.java
|
d5dc25988b2cba84cfa62ca1a262292f4d8c1e9f
|
[] |
no_license
|
kavt/feiniu_pet
|
bec739de7c4e2ee896de50962dbd5fb6f1e28fe9
|
82963e2e87611442d9b338d96e0343f67262f437
|
refs/heads/master
| 2020-12-25T17:45:16.166052
| 2016-06-13T10:02:42
| 2016-06-13T10:02:42
| 61,026,061
| 0
| 0
| null | 2016-06-13T10:02:01
| 2016-06-13T10:02:01
| null |
UTF-8
|
Java
| false
| false
| 7,442
|
java
|
package com.lvmama.back.sweb.groupadvice;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.apache.poi.xwpf.usermodel.XWPFParagraph;
import org.apache.poi.xwpf.usermodel.XWPFRun;
import org.apache.poi.xwpf.usermodel.XWPFTable;
import org.apache.poi.xwpf.usermodel.XWPFTableCell;
import org.apache.poi.xwpf.usermodel.XWPFTableRow;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText;
import org.springframework.beans.BeanWrapper;
import org.springframework.beans.BeanWrapperImpl;
/**
*
* 将Map中的数据写入到word模板中.<br/>
* word模板中的占位符: ${placeholder}<br/>
* 循环标签:<jw:forEach item="${placeholder}" var="e"></jw:forEach>
*
*/
public class DocxTransformer {
private static final Logger logger = Logger.getLogger(DocxTransformer.class);
//占位符前缀.
private static final String PLACEHODER_PREFIX = "${";
//占位符后缀.
private static final String PLACEHODER_SUFFIX = "}";
public void tranfDocx(String sourceFile, Map<String, Object> dataMap,
String targetFile) throws FileNotFoundException, IOException {
FileOutputStream out = new FileOutputStream(new File(targetFile));
XWPFDocument doc = new XWPFDocument(new FileInputStream(new File(
sourceFile)));
List<XWPFParagraph> ps = doc.getParagraphs();
for (XWPFParagraph p : ps) {
List<XWPFRun> rs = p.getRuns();
for (int j = 0; j < rs.size(); j++) {
XWPFRun r = rs.get(j);
List<CTText> ts = r.getCTR().getTList();
for (Map.Entry<String, Object> entry : dataMap.entrySet()) {
if (r.toString().equals(PLACEHODER_PREFIX + entry.getKey() + PLACEHODER_SUFFIX)) {
ts.get(0).setStringValue(entry.getValue() == null ? "" : entry.getValue().toString());
}
}
}
}
List<XWPFTable> ts = doc.getTables();
for (XWPFTable t : ts) {
if (!isValidTable(t)) {
throw new RuntimeException("<jw:forEach>的开始、结束标签不配对!");
}
List<XWPFTableRow> trs = t.getRows();
for (int m = 0; m < trs.size(); m++) {
List<XWPFTableCell> trcs = trs.get(m).getTableCells();
for (int i = 0; i < trcs.size(); i++) {
XWPFTableCell xtc = trcs.get(i);
ForEachBeginTag forEachBeginTag = new ForEachBeginTag(xtc.getText());
if (forEachBeginTag.getValid()) {
List<?> list = (List<?>)dataMap.get(forEachBeginTag.getItemAttrValue());
if (list == null) {
throw new RuntimeException("模板文件中不存的属性:" + forEachBeginTag.getItemAttrValue());
}
XWPFTableRow row = t.getRow(m + 1);
for (int y = 0; y < list.size(); y++) {
XWPFTableRow newRow = t.createRow();
newRow.setCantSplitRow(row.isCantSplitRow());
newRow.setHeight(row.getHeight());
newRow.setRepeatHeader(row.isRepeatHeader());
List<XWPFTableCell> rowCess2 = row.getTableCells();
List<XWPFTableCell> xtcses = newRow.getTableCells();
Object map2 = list.get(y);
BeanWrapper beanWrapper = new BeanWrapperImpl(map2);
for (int x = 0; x < xtcses.size(); x++) {
String cellText = rowCess2.get(x).getText();
if (cellText == null || cellText.trim().equals("")) {
continue;
}
String propertyName = cellText.substring(forEachBeginTag.getVarAttrValue().length() + 3,cellText.length() - 1);
Object propertyValue = beanWrapper.getPropertyValue(propertyName);
String text = "" + (propertyValue == null ? "" : propertyValue);
xtcses.get(x).setText(text);
}
}
t.removeRow(m);
t.removeRow(m);
t.removeRow(m);
//t.setInsideHBorder(XWPFBorderType.SINGLE, 1, 1, "000000"); //RGB:BLACK
//t.setInsideVBorder(XWPFBorderType.SINGLE, 1, 1, "000000");
//t.setCellMargins(10, 10, 10, 10);
//t.setColBandSize(10);
//t.setRowBandSize(10);
}
/*
//在table表格中,如果cell中已存在内容,则需要使用此方式将cell中的内容进行替换.
CTP ctp = trcs.get(i).getCTTc().getPList().get(0);
XWPFParagraph p = xtc.getParagraph(ctp);
List<XWPFRun> rs = p.getRuns();
for (int j = 0; j < rs.size(); j++) {
XWPFRun r = rs.get(j);
List<CTText> cttexts = r.getCTR().getTList();
for (Map.Entry<String, Object> entry : dataMap.entrySet()) {
if (r.toString().equals(entry.getKey())) {
cttexts.get(0).setStringValue(entry.getValue().toString());
}
}
}
*/
}
}//
}
doc.write(out);
out.flush();
out.close();
}
/**
* 检查此table中的<jw:forEach></jw:forEach>标签是否只出现一对.
* @param t
* @return
*/
private boolean isValidTable(XWPFTable t) {
List<XWPFTableRow> trs = t.getRows();
List<String> forEachTagList = new ArrayList<String>();
for (int m = 0; m < trs.size(); m++) {
List<XWPFTableCell> trcs = trs.get(m).getTableCells();
for (int i = 0; i < trcs.size(); i++) {
XWPFTableCell xtc = trcs.get(i);
ForEachEndTag forEachEndTag = new ForEachEndTag(xtc.getText());
if (forEachEndTag.getValid()) {
forEachTagList.add(xtc.getText());
continue;
}
ForEachBeginTag forEachBeginTag = new ForEachBeginTag(xtc.getText());
if (forEachBeginTag.getValid()) {
forEachTagList.add(xtc.getText());
continue;
}
}
}
/*
if (forEachTagList.size() % 2 != 0) {
throw new RuntimeException("<jw:forEach>的开始、结束标签不配对!" + forEachTagList);
}
*/
return forEachTagList.size() % 2 == 0;
}
private static class ForEachEndTag {
private static final String END_TAG_PATTERN = "</\\s*jw:forEach\\s*>";
private String endTag;
private ForEachEndTag(String endTag) {
this.endTag = endTag;
}
public boolean getValid() {
return this.endTag == null ? false : this.endTag.matches(END_TAG_PATTERN);
}
}
private static class ForEachBeginTag {
//e.g. "<jw:forEach item=\" ${addressList}\" var=\"e\">"
private static final String BEGIN_TAG_PATTERN = "<jw:forEach\\s+item\\s*=\\s*\"\\s*\\$\\{\\s*(([a-zA-Z]|[0-9])+)\\s*\\}\"\\s+var\\s*=\\s*\"(([a-zA-Z]|[0-9])+)\"\\s*>";
private static final int ITEM_GROUP_INDEX = 1;
private static final int VAR_GROUP_INDEX = 3;
private String beginTag;
private boolean valid;
private String itemAttrValue;
private String varAttrValue;
private ForEachBeginTag(String beginTag) {
this.beginTag = beginTag;
this.process();
}
private void process() {
Pattern pattern = Pattern.compile(BEGIN_TAG_PATTERN);
Matcher matcher = pattern.matcher(this.beginTag);
if (matcher.matches()) {
this.valid = true;
this.itemAttrValue = matcher.group(ITEM_GROUP_INDEX);
this.varAttrValue = matcher.group(VAR_GROUP_INDEX);
}
}
public boolean getValid() {
return this.valid;
}
public String getItemAttrValue() {
return this.itemAttrValue;
}
public String getVarAttrValue() {
return this.varAttrValue;
}
}
}
|
[
"feiniu7903@163.com"
] |
feiniu7903@163.com
|
4b2c0141879a5f7cd68eaa286f7cfd756fd46faa
|
b5dcf2812dcd9d30b28d07b9b4b983838ad430a3
|
/vertx-gaia/vertx-up/src/main/java/io/vertx/up/micro/follow/AbstractInvoker.java
|
8b4089d4a40a678198b526a7fdc622330212aae4
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
linsirui/vertx-zero
|
6295620f7101e6ba89b2f7edd273b88e5613d267
|
a08058ac3552574703e0c9c4f81e0ffb5f62dbfb
|
refs/heads/master
| 2020-04-22T11:28:37.207110
| 2019-04-13T06:44:49
| 2019-04-13T06:44:49
| 170,341,721
| 0
| 0
|
Apache-2.0
| 2019-02-12T15:28:23
| 2019-02-12T15:28:23
| null |
UTF-8
|
Java
| false
| false
| 4,888
|
java
|
package io.vertx.up.micro.follow;
import io.vertx.core.Future;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.up.aiki.Ux;
import io.vertx.up.atom.Envelop;
import io.vertx.up.log.Annal;
import io.vertx.up.micro.ipc.client.TunnelClient;
import io.vertx.up.web.ZeroSerializer;
import io.vertx.zero.eon.Values;
import io.zero.epic.Ut;
import java.lang.reflect.Method;
import java.util.function.Function;
/**
* Uniform call TunnelClient to remove duplicated codes
* Refactor invokder to support Dynamic Invoke
*/
@SuppressWarnings("all")
public abstract class AbstractInvoker implements Invoker {
protected Annal getLogger() {
return Annal.get(this.getClass());
}
/**
* Future method(JsonObject)
* Future method(JsonArray)
*/
protected Future invokeJson(
final Object proxy,
final Method method,
final Envelop envelop) {
final Object reference = envelop.data();
final Class<?> argType = method.getParameterTypes()[Values.IDX];
final Object arguments = Ut.deserialize(Ut.toString(reference), argType);
return Ut.invoke(proxy, method.getName(), arguments);
}
/**
* R method(T..)
*/
protected Object invokeInternal(
final Object proxy,
final Method method,
final Envelop envelop
) {
// Return value here.
Object returnValue;
final Class<?>[] argTypes = method.getParameterTypes();
final Class<?> returnType = method.getReturnType();
if (Values.ONE == method.getParameterCount()) {
final Class<?> firstArg = argTypes[Values.IDX];
if (Envelop.class == firstArg) {
// Input type is Envelop, input directly
returnValue = Ut.invoke(proxy, method.getName(), envelop);
} else {
// One type dynamic here
returnValue = this.invokeSingle(proxy, method, envelop);
}
} else {
// Multi parameter dynamic here
returnValue = this.invokeMulti(proxy, method, envelop);
}
return returnValue;
}
private Object invokeMulti(final Object proxy,
final Method method,
final Envelop envelop) {
// One type dynamic here
final Object reference = envelop.data();
// Non Direct
final Object[] arguments = new Object[method.getParameterCount()];
final JsonObject json = (JsonObject) reference;
final Class<?>[] types = method.getParameterTypes();
for (int idx = 0; idx < types.length; idx++) {
// Value
final Object value = json.getValue(String.valueOf(idx));
final Class<?> type = types[idx];
final Object argument = null == value ? null : ZeroSerializer.getValue(type, value.toString());
arguments[idx] = argument;
}
return Ut.invoke(proxy, method.getName(), arguments);
}
private Object invokeSingle(final Object proxy,
final Method method,
final Envelop envelop) {
final Class<?> argType = method.getParameterTypes()[Values.IDX];
// One type dynamic here
final Object reference = envelop.data();
// Non Direct
Object parameters = reference;
if (JsonObject.class == reference.getClass()) {
final JsonObject json = (JsonObject) reference;
if (this.isInterface(json)) {
// Proxy mode
if (Values.ONE == json.fieldNames().size()) {
// New Mode for direct type
parameters = json.getValue("0");
}
}
}
final Object arguments = ZeroSerializer.getValue(argType, Ut.toString(parameters));
return Ut.invoke(proxy, method.getName(), arguments);
}
private boolean isInterface(final JsonObject json) {
final long count = json.fieldNames().stream().filter(Ut::isInteger)
.count();
// All json keys are numbers
this.getLogger().info("[ ZERO ] ( isInterface Mode ) Parameter count: {0}, json: {1}", count, json.encode());
return count == json.fieldNames().size();
}
/**
*
*/
protected <I> Function<I, Future<Envelop>> nextEnvelop(
final Vertx vertx,
final Method method) {
return item -> this.nextEnvelop(vertx, method, item);
}
protected <T> Future<Envelop> nextEnvelop(
final Vertx vertx,
final Method method,
final T result
) {
return TunnelClient.create(this.getClass())
.connect(vertx)
.connect(method)
.send(Ux.to(result));
}
}
|
[
"silentbalanceyh@126.com"
] |
silentbalanceyh@126.com
|
87f78acf57fd44455b32fb884bf4a6c3d4c59bdc
|
5a0bfac7ad00c079fe8e0bdf1482f4271c46eeab
|
/app/src/main/wechat6.5.3/com/tencent/mm/e/a/gp.java
|
71e9ec82c1ee38de46853636a5f14ad2d4b75785
|
[] |
no_license
|
newtonker/wechat6.5.3
|
8af53a870a752bb9e3c92ec92a63c1252cb81c10
|
637a69732afa3a936afc9f4679994b79a9222680
|
refs/heads/master
| 2020-04-16T03:32:32.230996
| 2017-06-15T09:54:10
| 2017-06-15T09:54:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 479
|
java
|
package com.tencent.mm.e.a;
import com.tencent.mm.protocal.c.awa;
public final class gp extends com.tencent.mm.sdk.c.b {
public a bge;
public b bgf;
public static final class a {
public int bcm;
}
public static final class b {
public awa bgg;
}
public gp() {
this((byte) 0);
}
private gp(byte b) {
this.bge = new a();
this.bgf = new b();
this.nhx = false;
this.bpT = null;
}
}
|
[
"zhangxhbeta@gmail.com"
] |
zhangxhbeta@gmail.com
|
ec658e97ec3079c007c89c95f5309b5cadee935b
|
53d677a55e4ece8883526738f1c9d00fa6560ff7
|
/com/tencent/mm/plugin/fav/a.java
|
a8474a406a3404d101dcd460dcd73a53284ccffb
|
[] |
no_license
|
0jinxing/wechat-apk-source
|
544c2d79bfc10261eb36389c1edfdf553d8f312a
|
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
|
refs/heads/master
| 2020-06-07T20:06:03.580028
| 2019-06-21T09:17:26
| 2019-06-21T09:17:26
| 193,069,132
| 9
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,930
|
java
|
package com.tencent.mm.plugin.fav;
import android.os.Looper;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.e.a;
import com.tencent.mm.ai.e.b;
import com.tencent.mm.g.a.gh;
import com.tencent.mm.plugin.fav.a.h;
import com.tencent.mm.plugin.messenger.foundation.a.n;
import com.tencent.mm.sdk.platformtools.ab;
import java.util.Map;
public final class a
implements n
{
public final e.b a(String paramString, Map<String, String> paramMap, e.a parama)
{
AppMethodBeat.i(5281);
ab.i("MicroMsg.Fav.FavNewXmlConsumer", "consumeNewXml subtype: %s values: %s", new Object[] { paramString, paramMap.toString() });
int i = -1;
switch (paramString.hashCode())
{
default:
switch (i)
{
default:
case 0:
case 1:
}
break;
case -1648140403:
case -1938535405:
}
while (true)
{
AppMethodBeat.o(5281);
return null;
if (!paramString.equals("uploadfavitem"))
break;
i = 0;
break;
if (!paramString.equals("resendfavitem"))
break;
i = 1;
break;
paramString = new gh();
paramString.cAH.type = 38;
paramString.cAH.cAQ = ((String)paramMap.get(".sysmsg.favids"));
com.tencent.mm.sdk.b.a.xxA.a(paramString, Looper.getMainLooper());
h.vv(1);
continue;
paramString = new gh();
paramString.cAH.type = 39;
paramString.cAH.cAQ = ((String)paramMap.get(".sysmsg.favitem.favid"));
paramString.cAH.cAR = ((String)paramMap.get(".sysmsg.favitem.dataidlist"));
com.tencent.mm.sdk.b.a.xxA.a(paramString, Looper.getMainLooper());
h.vv(0);
}
}
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes3-dex2jar.jar
* Qualified Name: com.tencent.mm.plugin.fav.a
* JD-Core Version: 0.6.2
*/
|
[
"172601673@qq.com"
] |
172601673@qq.com
|
1ba6ad548232a5cc0740d8efd0bb687bab5f7a81
|
0ea271177f5c42920ac53cd7f01f053dba5c14e4
|
/5.4.2/sources/com/google/android/gms/internal/measurement/zzjd.java
|
d09e70f5e7b019d4b4f5c56afb3592d945f74655
|
[] |
no_license
|
alireza-ebrahimi/telegram-talaeii
|
367a81a77f9bc447e729b2ca339f9512a4c2860e
|
68a67e6f104ab8a0888e63c605e8bbad12c4a20e
|
refs/heads/master
| 2020-03-21T13:44:29.008002
| 2018-12-09T10:30:29
| 2018-12-09T10:30:29
| 138,622,926
| 12
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,896
|
java
|
package com.google.android.gms.internal.measurement;
import android.annotation.TargetApi;
import android.app.job.JobParameters;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import com.google.android.gms.common.internal.Preconditions;
public final class zzjd<T extends Context & zzjh> {
private final T zzabm;
public zzjd(T t) {
Preconditions.checkNotNull(t);
this.zzabm = t;
}
private final void zzb(Runnable runnable) {
zzjs zzg = zzjs.zzg(this.zzabm);
zzg.zzge().zzc(new zzjg(this, zzg, runnable));
}
private final zzfh zzgf() {
return zzgm.zza(this.zzabm, null, null).zzgf();
}
public final IBinder onBind(Intent intent) {
if (intent == null) {
zzgf().zzis().log("onBind called with null intent");
return null;
}
String action = intent.getAction();
if ("com.google.android.gms.measurement.START".equals(action)) {
return new zzgo(zzjs.zzg(this.zzabm));
}
zzgf().zziv().zzg("onBind received unknown action", action);
return null;
}
public final void onCreate() {
zzgm zza = zzgm.zza(this.zzabm, null, null);
zzfh zzgf = zza.zzgf();
zza.zzgi();
zzgf.zziz().log("Local AppMeasurementService is starting up");
}
public final void onDestroy() {
zzgm zza = zzgm.zza(this.zzabm, null, null);
zzfh zzgf = zza.zzgf();
zza.zzgi();
zzgf.zziz().log("Local AppMeasurementService is shutting down");
}
public final void onRebind(Intent intent) {
if (intent == null) {
zzgf().zzis().log("onRebind called with null intent");
return;
}
zzgf().zziz().zzg("onRebind called. action", intent.getAction());
}
public final int onStartCommand(Intent intent, int i, int i2) {
zzgm zza = zzgm.zza(this.zzabm, null, null);
zzfh zzgf = zza.zzgf();
if (intent == null) {
zzgf.zziv().log("AppMeasurementService started with null intent");
} else {
String action = intent.getAction();
zza.zzgi();
zzgf.zziz().zze("Local AppMeasurementService called. startId, action", Integer.valueOf(i2), action);
if ("com.google.android.gms.measurement.UPLOAD".equals(action)) {
zzb(new zzje(this, i2, zzgf, intent));
}
}
return 2;
}
@TargetApi(24)
public final boolean onStartJob(JobParameters jobParameters) {
zzgm zza = zzgm.zza(this.zzabm, null, null);
zzfh zzgf = zza.zzgf();
String string = jobParameters.getExtras().getString("action");
zza.zzgi();
zzgf.zziz().zzg("Local AppMeasurementJobService called. action", string);
if ("com.google.android.gms.measurement.UPLOAD".equals(string)) {
zzb(new zzjf(this, zzgf, jobParameters));
}
return true;
}
public final boolean onUnbind(Intent intent) {
if (intent == null) {
zzgf().zzis().log("onUnbind called with null intent");
} else {
zzgf().zziz().zzg("onUnbind called for intent. action", intent.getAction());
}
return true;
}
final /* synthetic */ void zza(int i, zzfh zzfh, Intent intent) {
if (((zzjh) this.zzabm).callServiceStopSelfResult(i)) {
zzfh.zziz().zzg("Local AppMeasurementService processed last upload request. StartId", Integer.valueOf(i));
zzgf().zziz().log("Completed wakeful intent.");
((zzjh) this.zzabm).zzb(intent);
}
}
final /* synthetic */ void zza(zzfh zzfh, JobParameters jobParameters) {
zzfh.zziz().log("AppMeasurementJobService processed last upload request.");
((zzjh) this.zzabm).zza(jobParameters, false);
}
}
|
[
"alireza.ebrahimi2006@gmail.com"
] |
alireza.ebrahimi2006@gmail.com
|
787429b398a629c634930a09e1c1f4df243b3996
|
7054c7411fd418d06ac1ad01d1ec20b49c8e3755
|
/gateway-core/src/main/java/org/cloud/gateway/common/enums/SerializeEnum.java
|
4e5d24aedd9f28fb52da2c5c380213bbe5d53212
|
[] |
no_license
|
lukehuang/cloud-gateway
|
ad90c7b816be473d23a18ef93da124b9bc8c3d53
|
ce6a66b6f62d4bc1ccfb0c364f6be94f19891a61
|
refs/heads/master
| 2022-12-17T02:42:23.800170
| 2020-09-18T07:48:58
| 2020-09-18T07:48:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,126
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.cloud.gateway.common.enums;
import java.util.Arrays;
import java.util.Objects;
import java.util.Optional;
/**
* SerializeEnum.
*
* @author xiaoyu
*/
public enum SerializeEnum {
/**
* Jdk serialize protocol enum.
*/
JDK("jdk"),
/**
* Kryo serialize protocol enum.
*/
KRYO("kryo"),
/**
* Hessian serialize protocol enum.
*/
HESSIAN("hessian"),
/**
* Protostuff serialize protocol enum.
*/
PROTOSTUFF("protostuff");
private final String serialize;
SerializeEnum(final String serialize) {
this.serialize = serialize;
}
/**
* get serialize.
*
* @return serialize
*/
public String getSerialize() {
return serialize;
}
/**
* Acquire serialize protocol serialize protocol enum.
*
* @param serialize the serialize protocol
* @return the serialize protocol enum
*/
public static SerializeEnum acquire(final String serialize) {
Optional<SerializeEnum> serializeEnum =
Arrays.stream(SerializeEnum.values())
.filter(v -> Objects.equals(v.getSerialize(), serialize))
.findFirst();
return serializeEnum.orElse(SerializeEnum.KRYO);
}
}
|
[
"326800567@qq.com"
] |
326800567@qq.com
|
f245e2867b194dfda6ac2377d7a5ffa67062c618
|
6d188cc1b2ce06048312a22ac3ac1ac7697383c6
|
/jzy3d-api/src/tests/org/jzy3d/tests/TrialManualBounds.java
|
93d875fc2ae6e466a0c263f2db07e9c890e0b008
|
[
"BSD-3-Clause",
"BSD-2-Clause"
] |
permissive
|
bdn96/jzy3d-api
|
fc65adfe152a454849e1dfa0d9ee72636e3417f2
|
8733904de71ba7dd344136a483bb70672f8d7229
|
refs/heads/master
| 2021-01-24T14:55:34.192358
| 2014-11-05T18:35:45
| 2014-11-05T18:35:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,872
|
java
|
package org.jzy3d.tests;
import org.jzy3d.analysis.AbstractAnalysis;
import org.jzy3d.analysis.AnalysisLauncher;
import org.jzy3d.analysis.IAnalysis;
import org.jzy3d.chart.Chart;
import org.jzy3d.chart.controllers.keyboard.camera.AWTCameraKeyController;
import org.jzy3d.chart.controllers.mouse.camera.NewtCameraMouseController;
import org.jzy3d.colors.Color;
import org.jzy3d.colors.ColorMapper;
import org.jzy3d.colors.colormaps.ColorMapRainbow;
import org.jzy3d.maths.BoundingBox3d;
import org.jzy3d.maths.Range;
import org.jzy3d.plot3d.builder.Builder;
import org.jzy3d.plot3d.builder.Mapper;
import org.jzy3d.plot3d.builder.concrete.OrthonormalGrid;
import org.jzy3d.plot3d.primitives.Shape;
import org.jzy3d.plot3d.rendering.canvas.Quality;
import org.jzy3d.plot3d.rendering.view.modes.ViewBoundMode;
public class TrialManualBounds extends AbstractAnalysis {
public static void main(String[] args) throws Exception {
IAnalysis d = new TrialManualBounds();
d.setCanvasType("newt");
AnalysisLauncher.open(d);
// calling:
// d.getChart().getView().setBoundManual(new BoundingBox3d(-1,1, -1,1, -1,1));
// immediatly will fail since frame is probably not open yet, and thus the view
// initialization will reset bounds to the scene graph bounds.
//
// to avoid being erased by the view init, one may either:
// wait a little bit: Thread.sleep(1000);
// or force an initialization bounds as follow
// @since oct 27 2012
d.getChart().getView().setInitBounds(new BoundingBox3d(-1,1, -1,1, -1,1));
System.out.println(d.getChart().getView().getBounds());
}
@Override
public void init() {
// Define a function to plot
Mapper mapper = new Mapper() {
public double f(double x, double y) {
return 0;//x * Math.sin(x * y);
}
};
// Define range and precision for the function to plot
Range range = new Range(-3, 3);
int steps = 80;
// Create the object to represent the function over the given range.
final Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(range, steps, range, steps), mapper);
surface.setColorMapper(new ColorMapper(new ColorMapRainbow(), surface.getBounds().getZmin(), surface.getBounds().getZmax(), new Color(1, 1, 1, .5f)));
surface.setFaceDisplayed(true);
surface.setWireframeDisplayed(false);
System.out.println(getCanvasType());
// Create a chart
chart = new Chart(Quality.Advanced, getCanvasType());
chart.getScene().getGraph().add(surface);
chart.addController(new AWTCameraKeyController());
chart.getView().setBoundMode(ViewBoundMode.MANUAL);
NewtCameraMouseController c = new NewtCameraMouseController(chart);
}
}
|
[
"martin.pernollet@calliandra-networks.com"
] |
martin.pernollet@calliandra-networks.com
|
c7fc59d5d31b4c5c4938aa5a39b7d10140dc9ae4
|
036b13f99c161e13ca9a3f3c5262db38544131f7
|
/1_java/Chapter04_control/src/com/tj/condition/SwitchEx03.java
|
62c1caf3f22a17de8c9b95d184cf5e6467e13fec
|
[] |
no_license
|
highwindLeos/Webstudy-In-TheJoeun
|
4e442c1ad500232ad69ae11c2a9faa8634ca8ed3
|
06b779765551e617cf37499336d6741720f23fa8
|
refs/heads/master
| 2022-12-22T10:46:37.241449
| 2020-07-28T09:54:03
| 2020-07-28T09:54:03
| 132,757,543
| 0
| 0
| null | 2022-12-16T01:05:47
| 2018-05-09T13:00:52
|
HTML
|
UHC
|
Java
| false
| false
| 772
|
java
|
package com.tj.condition;
// 컴퓨터 가 난수 점수를 발생하여 "점수와 해당 학점"을 출력
public class SwitchEx03 {
public static void main(String[] args) {
// 0 <= Math.random() < 1;
// 0 <= Math.random()*101 < 101;
// 0 ~ 100 까지의 정수 난수 : (int)(Math.random()*101);\
int score = (int) (Math.random() * 101);
char grade = ' ';
switch (score / 10) {
case 10: case 9:
grade = 'A';
break;
case 8:
grade = 'B';
break;
case 7:
grade = 'C';
break;
case 6:
grade = 'D';
break;
case 5: case 4: case 3: case 2: case 1: case 0:
grade = 'F';
break;
default: //아무것도 아닐때.
grade = 'Z';
}
System.out.printf("점수는 : %d\n학점은 %c 학점입니다.",score ,grade);
}
}
|
[
"highwind26@gmail.com"
] |
highwind26@gmail.com
|
2ef1005f283d346ed9474fc3a478d4ebc633bfb5
|
6af61403887f4bf1ec8b80a227ea4237bd47345e
|
/src/P060302NiskeiZ01MetodiPokretanje.java
|
d4f8ab9683d58220ad75254319cdb5a15ec02ead
|
[
"MIT"
] |
permissive
|
MatfOOP-I/primeri-predavanja-2020-21
|
fa3542caffc3808efaa6a427e076009f3493223c
|
071484ce72f730adaec2722369c626c09d13f467
|
refs/heads/main
| 2023-02-05T12:51:13.446040
| 2020-12-28T18:16:36
| 2020-12-28T18:16:36
| 310,011,294
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,723
|
java
|
class PokretanjeNiskeiZ01Metodi {
public static void main(String[] args) {
String niska1 = new String("Ovo je jedna niska.");
String niska2 = " Ovo je druga niska.";
System.out.printf("niska1: %s\n", niska1);
System.out.printf("niska2: %s\n", niska2);
System.out.printf("\nniska1.length(): %d\n", niska1.length());
System.out.printf("\nniska2.trim(): %s\n", niska2.trim());
System.out.printf("niska1.toLowerCase(): %s\n", niska1.toLowerCase());
System.out.printf("niska1.toUpperCase(): %s\n", niska1.toUpperCase());
int pozicija = 2;
System.out.printf("\nniske1.charAt(%d): %c\n", pozicija, niska1.charAt(pozicija));
pozicija = 10;
System.out.printf("niska1.charAt(%d): %c\n", pozicija, niska1.charAt(pozicija));
int pozicijaPocev = 1;
int pozicijaDo = 5;
System.out.printf("\nniska1.substring( %d, %d): %s\n", pozicijaPocev, pozicijaDo,
niska1.substring(pozicijaPocev, pozicijaDo));
System.out.printf("\nspoj niski: %s \n", niska1.concat(niska2));
System.out.printf("spoj niski: %s \n", niska1 + niska2);
char slovo = 'e';
System.out.printf("\nniska1.indexOf('%c'): %d\n", slovo, niska1.indexOf(slovo));
System.out.printf("niska1.lastIndexOf('%c'): %d\n", slovo, niska1.lastIndexOf(slovo));
String obrazac = "je";
System.out.printf("niska1.indexOf(\"%s\"): %d\n", obrazac, niska1.indexOf(obrazac));
System.out.printf("niska1.lastIndexOf(\"%s\"): %d\n", obrazac, niska1.lastIndexOf(obrazac));
obrazac = "Ov";
System.out.printf("niska1.startsWith(\"%s\"): %b\n", obrazac, niska1.startsWith(obrazac));
System.out.printf("niska1.endsWith(\"%s\"): %b\n", obrazac, niska1.endsWith(obrazac));
obrazac = "a.";
System.out.printf("niska1.startsWith(\"%s\"): %b\n", obrazac, niska1.startsWith(obrazac));
System.out.printf("niska1.endsWith(\"%s\"): %b\n", obrazac, niska1.endsWith(obrazac));
char novoSlovo = '_';
System.out.printf("niska1.replace('%c','%c'): %s\n", slovo, novoSlovo, niska1.replace(slovo, novoSlovo));
System.out.printf("\nniska1: %s\n", niska1);
int broj = 42;
String niskaFormat = "XXX %d XXX";
String niskaReprezentacija = String.format(niskaFormat, broj);
System.out.printf("\nreprezentacija broja %d po formatu \"%s\": \"%s\"\n", broj, niskaFormat,
niskaReprezentacija);
niskaFormat = "---%06x---";
System.out.printf("reprezentacija broja %d po formatu \"%s\": \"%s\"\n", broj, niskaFormat,
String.format(niskaFormat, broj));
niskaFormat = "%o\t. ";
System.out.printf("reprezentacija broja %d po formatu \"%s\": \"%s\"\n", broj, niskaFormat,
String.format(niskaFormat, broj));
broj = -71;
niskaFormat = "XXX %d XXX";
System.out.printf("reprezentacija broja %d po formatu \"%s\": \"%s\"\n", broj, niskaFormat,
String.format(niskaFormat, broj));
niskaFormat = "---%06x---";
System.out.printf("reprezentacija broja %d po formatu \"%s\": \"%s\"\n", broj, niskaFormat,
String.format(niskaFormat, broj));
niskaFormat = "%o\t. ";
System.out.printf("reprezentacija broja %d po formatu \"%s\": \"%s\"\n", broj, niskaFormat,
String.format(niskaFormat, broj));
}
}
|
[
"vladofilipovic@hotmail.com"
] |
vladofilipovic@hotmail.com
|
a4975c1c711d8b77b49173ae36c6bd2f700ee25d
|
10378c580b62125a184f74f595d2c37be90a5769
|
/com/google/gson/annotations/Since.java
|
e77d40565afd5751117fa1dc09130f44f8534a4b
|
[] |
no_license
|
ClientPlayground/Melon-Client
|
4299d7f3e8f2446ae9f225c0d7fcc770d4d48ecb
|
afc9b11493e15745b78dec1c2b62bb9e01573c3d
|
refs/heads/beta-v2
| 2023-04-05T20:17:00.521159
| 2021-03-14T19:13:31
| 2021-03-14T19:13:31
| 347,509,882
| 33
| 19
| null | 2021-03-14T19:13:32
| 2021-03-14T00:27:40
| null |
UTF-8
|
Java
| false
| false
| 329
|
java
|
package com.google.gson.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.TYPE})
public @interface Since {
double value();
}
|
[
"Hot-Tutorials@users.noreply.github.com"
] |
Hot-Tutorials@users.noreply.github.com
|
352be8a1c346fe33c01bc64025be7a3837350ebe
|
5153b3004900906af07ecd636c77c46d2d3edfed
|
/src/main/java/za/co/africanrainbowlife/security/UserNotActivatedException.java
|
b80eb3207daf8f783b74495ec6ee8f707cb08adb
|
[] |
no_license
|
ntobeko/arl-service-gateway
|
38541d7f9b15858af0f6fb557bb4ea8b9715913f
|
8e16e6661bac470d5d21c45a87636764fc1330b7
|
refs/heads/master
| 2022-12-12T18:45:03.560680
| 2020-09-06T10:19:50
| 2020-09-06T10:19:50
| 292,928,283
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 519
|
java
|
package za.co.africanrainbowlife.security;
import org.springframework.security.core.AuthenticationException;
/**
* This exception is thrown in case of a not activated user trying to authenticate.
*/
public class UserNotActivatedException extends AuthenticationException {
private static final long serialVersionUID = 1L;
public UserNotActivatedException(String message) {
super(message);
}
public UserNotActivatedException(String message, Throwable t) {
super(message, t);
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
3015c12b7fd6f5f74dd11d8fd2a0134eb0feeedf
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-12798-109-3-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/velocity/internal/DefaultVelocityEngine_ESTest.java
|
40877a90b18dc9949c81e7367a8dbd081cef339c
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 576
|
java
|
/*
* This file was automatically generated by EvoSuite
* Wed Apr 08 20:03:09 UTC 2020
*/
package org.xwiki.velocity.internal;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class DefaultVelocityEngine_ESTest extends DefaultVelocityEngine_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
58730ad5949f372d18bf275e1fe7de470cccdb47
|
8b2adbaab805eaf96ee1327aea0600df7c3adfb5
|
/core/src/test/com/dtolabs/rundeck/core/dispatcher/TestCentralDispatcherMgrFactory.java
|
71d287f5fd74f4bc3471b3caa7c6cd7a074a4c00
|
[
"Apache-2.0"
] |
permissive
|
joshbancroft/rundeck
|
b96219b063dc558a139f08ef64f31332af5bb892
|
d55d3d637d480da026f4a25508fee28a7a250e30
|
refs/heads/master
| 2021-01-20T15:50:01.855353
| 2011-01-19T02:24:39
| 2011-01-19T02:24:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,358
|
java
|
/*
* Copyright 2010 DTO Labs, Inc. (http://dtolabs.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 com.dtolabs.rundeck.core.dispatcher;
/*
* TestCentralDispatcherMgrFactory.java
*
* User: Greg Schueler <a href="mailto:greg@dtosolutions.com">greg@dtosolutions.com</a>
* Created: Feb 18, 2010 11:39:25 AM
* $Id$
*/
import com.dtolabs.rundeck.core.common.Framework;
import com.dtolabs.rundeck.core.tools.AbstractBaseTest;
import junit.framework.Test;
import junit.framework.TestSuite;
import java.io.OutputStream;
import java.util.Collection;
public class TestCentralDispatcherMgrFactory extends AbstractBaseTest {
CentralDispatcherMgrFactory centralDispatcherMgrFactory;
public static final String TEST_CLASSNAME = "com.dtolabs.rundeck.core.dispatcher.TestCentralDispatcherMgrFactory$test1";
public static final String TEST_FAIL1_CLASSNAME = "com.dtolabs.rundeck.core.dispatcher.TestCentralDispatcherMgrFactory$test_fail1";
private static final String DEFAULT_DISPATCHER_CLASS = "com.dtolabs.rundeck.core.dispatcher.NoCentralDispatcher";
public TestCentralDispatcherMgrFactory(String name) {
super(name);
}
public static Test suite() {
return new TestSuite(TestCentralDispatcherMgrFactory.class);
}
protected void setUp() {
super.setUp();
}
protected void tearDown() throws Exception {
super.tearDown();
}
public static void main(String args[]) {
junit.textui.TestRunner.run(suite());
}
public void testCreateDefault() throws Exception {
try {
CentralDispatcherMgrFactory test1 = CentralDispatcherMgrFactory.create(null, getFrameworkInstance());
fail("Should have thrown an Exception");
} catch (java.lang.IllegalArgumentException ex) {
assertNotNull(ex);
}
try {
CentralDispatcherMgrFactory test1=CentralDispatcherMgrFactory.create("", getFrameworkInstance());
fail("Should have thrown an Exception");
} catch (CentralDispatcherException ex) {
assertNotNull(ex);
}
CentralDispatcherMgrFactory test1 = CentralDispatcherMgrFactory.create(getFrameworkInstance().getProperty(
"framework.centraldispatcher.classname"), getFrameworkInstance());
assertNotNull("expected default instance of CentralDispatcher", test1);
}
public void testCreate() throws Exception {
try {
CentralDispatcherMgrFactory test1 = CentralDispatcherMgrFactory.create(TEST_FAIL1_CLASSNAME, getFrameworkInstance());
fail("Should have thrown an Exception");
} catch (CentralDispatcherException ex) {
assertNotNull(ex);
}
CentralDispatcherMgrFactory test1 = CentralDispatcherMgrFactory.create(TEST_CLASSNAME, getFrameworkInstance());
assertNotNull("expected default instance of CentralDispatcher", test1);
}
public void testDefaultImplementation() throws Exception {
CentralDispatcherMgrFactory test1 = CentralDispatcherMgrFactory.create(
DEFAULT_DISPATCHER_CLASS, getFrameworkInstance());
assertNotNull("expected default instance of CentralDispatcher", test1);
CentralDispatcher cd = test1.getCentralDispatcher();
try {
cd.killDispatcherExecution(null);
fail("should not succeed");
} catch (CentralDispatcherException ex) {
assertNotNull(ex);
}
try {
cd.listDispatcherQueue();
fail("should not succeed");
} catch (CentralDispatcherException ex) {
assertNotNull(ex);
}
}
/**
* Fail due to incorrect constructor
*/
public static class test_fail1 implements CentralDispatcher {
public QueuedItemResult queueDispatcherScript(IDispatchedScript dispatch) throws CentralDispatcherException {
return null;
}
public QueuedItemResult queueDispatcherJob(IDispatchedJob job) throws CentralDispatcherException {
return null;
}
public Collection<QueuedItem> listDispatcherQueue() throws CentralDispatcherException {
return null;
}
public DispatcherResult killDispatcherExecution(String id) throws CentralDispatcherException {
return null;
}
public Collection<IStoredJob> listStoredJobs(IStoredJobsQuery query, OutputStream output) throws
CentralDispatcherException {
return null;
}
public Collection<IStoredJobLoadResult> loadJobs(ILoadJobsRequest request, java.io.File input) throws
CentralDispatcherException {
return null;
}
}
/**
* Correct instantiation
*/
public static class test1 implements CentralDispatcher{
public test1(Framework framework) {
}
public QueuedItemResult queueDispatcherJob(IDispatchedJob job) throws CentralDispatcherException {
return null;
}
public QueuedItemResult queueDispatcherScript(IDispatchedScript dispatch) throws CentralDispatcherException {
return null;
}
public Collection<QueuedItem> listDispatcherQueue() throws CentralDispatcherException {
return null;
}
public DispatcherResult killDispatcherExecution(String id) throws CentralDispatcherException {
return null;
}
public Collection<IStoredJobLoadResult> loadJobs(ILoadJobsRequest request, java.io.File input) throws
CentralDispatcherException {
return null;
}
public Collection<IStoredJob> listStoredJobs(IStoredJobsQuery query, OutputStream output) throws
CentralDispatcherException {
return null;
}
}
}
|
[
"greg.schueler@gmail.com"
] |
greg.schueler@gmail.com
|
569185d00d449a984a74a53538d82fa3ff72977b
|
6e112cd77044672c1b4a5c107a50f11663caa40c
|
/tioga-push-engine/src/main/java/org/tiogasolutions/push/engine/accounts/AccountRequest.java
|
721019563ef5a02f1ea50f11285dd5585cd85036
|
[
"Apache-2.0"
] |
permissive
|
tioga/Push
|
bd31b7af99607be9071e8d020b8eaf33924809d0
|
4417744d0503aae3db846f4e04101fdcebef8286
|
refs/heads/master
| 2021-01-17T09:32:59.474461
| 2017-08-06T19:20:01
| 2017-08-06T19:20:01
| 33,619,020
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 803
|
java
|
/*
* Copyright (c) 2014 Jacob D. Parr
*
* This software may not be used without permission.
*/
package org.tiogasolutions.push.engine.accounts;
import org.tiogasolutions.push.kernel.accounts.actions.AccountAction;
import org.tiogasolutions.push.kernel.accounts.queries.AccountQuery;
import org.tiogasolutions.dev.common.exceptions.ExceptionUtils;
public class AccountRequest {
private final AccountQuery query;
private final AccountAction operation;
public AccountRequest(AccountQuery query, AccountAction operation) {
this.query = ExceptionUtils.assertNotNull(query, "query");
this.operation = ExceptionUtils.assertNotNull(operation, "operation");
}
public AccountQuery getQuery() {
return query;
}
public AccountAction getOperation() {
return operation;
}
}
|
[
"me@jacobparr.com"
] |
me@jacobparr.com
|
3982724e466386be39e978295f9f113dc39f2401
|
95c49f466673952b465e19a5ee3ae6eff76bee00
|
/src/main/java/com/facebook/common/p454d/DoNotStrip.java
|
960e293e64703d43623e4f1ab48d9c0a9631728b
|
[] |
no_license
|
Phantoms007/zhihuAPK
|
58889c399ae56b16a9160a5f48b807e02c87797e
|
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
|
refs/heads/main
| 2023-01-24T01:34:18.716323
| 2020-11-25T17:14:55
| 2020-11-25T17:14:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 433
|
java
|
package com.facebook.common.p454d;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR})
@Retention(RetentionPolicy.CLASS)
/* renamed from: com.facebook.common.d.d */
/* compiled from: DoNotStrip */
public @interface DoNotStrip {
}
|
[
"seasonpplp@qq.com"
] |
seasonpplp@qq.com
|
cde2bec2742c99fcaa067dd943e0c0ce2ce482ff
|
4057115643c9bfd8ed6ca7148a6404de4c050e0a
|
/src/test/java/com/inspirenetz/api/test/core/fixture/CouponFixture.java
|
2e2df65aa5a742d1a2c004abbe921fa983a846d9
|
[] |
no_license
|
systemsarchitecture/java-spring
|
38032a8d941f70ca588fce842fb056cef3537065
|
8462e54291e8a45b3b4a97f303490e2510d62a8e
|
refs/heads/master
| 2022-05-20T12:18:08.190237
| 2017-01-05T10:54:31
| 2017-01-05T10:54:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,606
|
java
|
package com.inspirenetz.api.test.core.fixture;
import com.inspirenetz.api.core.dictionary.CouponCodeType;
import com.inspirenetz.api.core.dictionary.CouponValueType;
import com.inspirenetz.api.core.domain.Coupon;
import com.inspirenetz.api.test.core.builder.CouponBuilder;
import com.inspirenetz.api.util.DBUtils;
import java.util.HashSet;
import java.util.Set;
/**
* Created by sandheepgr on 17/6/14.
*/
public class CouponFixture {
public static Coupon standardCoupon() {
Coupon coupon = CouponBuilder.aCoupon()
.withCpnMerchantNo(1L)
.withCpnCouponName("Test Coupon Name")
.withCpnPromoName("Test Promotion Name")
.withCpnCouponText("Test Coupon Text")
.withCpnCouponCodeType(CouponCodeType.FIXED)
.withCpnCouponCode("CPN10001")
.withCpnValueType(CouponValueType.AMOUNT)
.withCpnValue(100.0)
.withCpnExpiryDt(DBUtils.covertToSqlDate("2014-06-31"))
.build();
return coupon;
}
public static Coupon updatedStandardCoupon(Coupon coupon) {
coupon.setCpnCouponName("Test Coupon Name 2");
return coupon;
}
public static Set<Coupon> standardCoupons() {
Set<Coupon> couponSet = new HashSet<>(0);
Coupon coupon1 = CouponBuilder.aCoupon()
.withCpnMerchantNo(1L)
.withCpnCouponName("Test Coupon Name")
.withCpnPromoName("Test Promotion Name")
.withCpnCouponText("Test Coupon Text")
.withCpnCouponCodeType(CouponCodeType.FIXED)
.withCpnCouponCode("CPN10001")
.withCpnValueType(CouponValueType.AMOUNT)
.withCpnValue(100.0)
.withCpnExpiryDt(DBUtils.covertToSqlDate("2014-06-31"))
.build();
couponSet.add(coupon1);
Coupon coupon2 = CouponBuilder.aCoupon()
.withCpnMerchantNo(1L)
.withCpnCouponName("Test Coupon Name 2")
.withCpnPromoName("Test Promotion Name")
.withCpnCouponText("Test Coupon Text")
.withCpnCouponCodeType(CouponCodeType.RANGE)
.withCpnCouponCodeFrom("CPN10001")
.withCpnCouponCodeTo("CPN20001")
.withCpnValueType(CouponValueType.AMOUNT)
.withCpnValue(100.0)
.withCpnExpiryDt(DBUtils.covertToSqlDate("2014-06-31"))
.build();
couponSet.add(coupon2);
return couponSet;
}
}
|
[
"raju.s@customerinspire.com"
] |
raju.s@customerinspire.com
|
4a3dc8eda3ed9b672576c94c1bb0bb265f0fd016
|
2ae7dad68e3600e6a4fd6a380316d4bb1bd55ca7
|
/teams/droneOffenseDefense/ULauncherHandler.java
|
6604b21dc4640ad8d680f56e1ee4094b4267805d
|
[] |
no_license
|
kpeng94/shigatsu
|
2e7e113de6d062a91b0a311eaa03c96744d7e840
|
6cfd81dd2a50321047334aff8184567b5ce04fcd
|
refs/heads/master
| 2021-01-19T11:17:34.752822
| 2015-03-13T17:31:47
| 2015-03-13T17:31:47
| 28,466,301
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 649
|
java
|
package droneOffenseDefense;
import battlecode.common.*;
public class ULauncherHandler extends UnitHandler {
public static void loop(RobotController rcon) {
try {
init(rcon);
} catch (Exception e) {
// e.printStackTrace();
System.out.println(typ + " Initialization Exception");
}
while (true) {
try {
execute();
} catch (Exception e) {
// e.printStackTrace();
System.out.println(typ + " Execution Exception");
}
rc.yield(); // Yields to save remaining bytecodes
}
}
protected static void init(RobotController rcon) {
initUnit(rcon);
}
protected static void execute() {
executeUnit();
}
}
|
[
"bz88@cornell.edu"
] |
bz88@cornell.edu
|
968e4fd6128671e70df1068e8f55bcafb1f4e935
|
50c45016b7492237c1a0f10ec1bf4246afcfa2be
|
/optaplanner-examples/src/test/java/org/optaplanner/examples/taskassigning/app/TaskAssigningPerformanceTest.java
|
38a2631a822f67c6dd632631b3cfd1ab597634a4
|
[
"Apache-2.0"
] |
permissive
|
LimShihWei/optaplanner
|
400a465ed5ee5b8281cf221deedc21f47e4e3822
|
f271759df664f209c42c23c04864f39ab13c86f7
|
refs/heads/master
| 2020-05-29T12:23:35.939559
| 2016-05-24T08:25:24
| 2016-05-24T08:25:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,039
|
java
|
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.optaplanner.examples.taskassigning.app;
import java.io.File;
import org.junit.Test;
import org.optaplanner.core.config.solver.EnvironmentMode;
import org.optaplanner.examples.common.app.SolverPerformanceTest;
import org.optaplanner.examples.common.persistence.SolutionDao;
import org.optaplanner.examples.taskassigning.persistence.TaskAssigningDao;
public class TaskAssigningPerformanceTest extends SolverPerformanceTest {
@Override
protected String createSolverConfigResource() {
return TaskAssigningApp.SOLVER_CONFIG;
}
@Override
protected SolutionDao createSolutionDao() {
return new TaskAssigningDao();
}
// ************************************************************************
// Tests
// ************************************************************************
@Test(timeout = 600000)
public void solveModel_50tasks_5employees() {
File unsolvedDataFile = new File("data/taskassigning/unsolved/50tasks-5employees.xml");
runSpeedTest(unsolvedDataFile, "[0]hard/[-3925/-6293940/-7772/-20463]soft)");
}
@Test(timeout = 600000)
public void solveModel_50tasks_5employeesFastAssert() {
File unsolvedDataFile = new File("data/taskassigning/unsolved/50tasks-5employees.xml");
runSpeedTest(unsolvedDataFile, "[0]hard/[-3988/-10452712/-15713/-21195]soft", EnvironmentMode.FAST_ASSERT);
}
}
|
[
"gds.geoffrey.de.smet@gmail.com"
] |
gds.geoffrey.de.smet@gmail.com
|
5966e81f28b244518af2cb3e055c111a8a5f3c1c
|
51aef8e206201568d04fb919bf54a3009c039dcf
|
/trunk/src/com/jme/util/shader/uniformtypes/ShaderVariableMatrix3.java
|
7ed51dc62dfe9a8f31d30f2203e071d3eab68dd7
|
[] |
no_license
|
lihak/fairytale-soulfire-svn-to-git
|
0b8bdbfcaf774f13fc3d32cc3d3a6fae64f29c81
|
a85eb3fc6f4edf30fef9201902fcdc108da248e4
|
refs/heads/master
| 2021-02-11T15:25:47.199953
| 2015-12-28T14:48:14
| 2015-12-28T14:48:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,703
|
java
|
/*
* Copyright (c) 2003-2008 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme.util.shader.uniformtypes;
import java.io.IOException;
import java.nio.FloatBuffer;
import com.jme.util.export.InputCapsule;
import com.jme.util.export.JMEExporter;
import com.jme.util.export.JMEImporter;
import com.jme.util.export.OutputCapsule;
import com.jme.util.geom.BufferUtils;
import com.jme.util.shader.ShaderVariable;
/** ShaderVariableMatrix3 */
public class ShaderVariableMatrix3 extends ShaderVariable {
public FloatBuffer matrixBuffer = BufferUtils.createFloatBuffer(9);
public boolean rowMajor;
public void write(JMEExporter e) throws IOException {
super.write(e);
OutputCapsule capsule = e.getCapsule(this);
capsule.write(matrixBuffer, "matrixBuffer", null);
capsule.write(rowMajor, "rowMajor", false);
}
public void read(JMEImporter e) throws IOException {
super.read(e);
InputCapsule capsule = e.getCapsule(this);
matrixBuffer = capsule.readFloatBuffer("matrixBuffer", null);
rowMajor = capsule.readBoolean("rowMajor", false);
}
}
|
[
"you@example.com"
] |
you@example.com
|
724be085e31c1a9f78ea29137c0192a35b208e5c
|
ccd381905c956c33e9f078854a338752639f790a
|
/app/src/main/java/com/goulala/xiayun/find/fragment/FindFragment.java
|
e09ee1577b1374a6d65a9bedc4604b3b4ffb865a
|
[] |
no_license
|
lucky-you/XiaYun
|
8486343c507621ef4b555540df0ecfad341bc434
|
78057d8c9f804855ca1538a34294299ca2fab5e8
|
refs/heads/master
| 2020-04-17T02:29:16.684858
| 2019-01-25T03:41:57
| 2019-01-25T03:41:57
| 166,136,885
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 960
|
java
|
package com.goulala.xiayun.find.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import com.goulala.xiayun.R;
import com.goulala.xiayun.common.base.BaseFragment;
/**
* author : Z_B
* date : 2019/1/17
* function :
*/
public class FindFragment extends BaseFragment {
public static FindFragment newInstance() {
FindFragment findFragment = new FindFragment();
Bundle bundle = new Bundle();
findFragment.setArguments(bundle);
return findFragment;
}
@Override
public void initData(@Nullable Bundle bundle) {
}
@Override
public int loadViewLayout() {
return R.layout.include_findfragment_layout;
}
@Override
public void bindViews(View contentView) {
}
@Override
public void processLogic(Bundle savedInstanceState) {
}
@Override
public void setClickListener(View view) {
}
}
|
[
"1021237228@qq.com"
] |
1021237228@qq.com
|
e7a7d97eedf12fa20aca139084d7a3d7ec81bb9b
|
e3c912687a56e48fc7c6db2e95b644183f40b8f0
|
/src/test/java/iurii/job/interview/graph/breadth_first_search/BreadthFirstSearchTest.java
|
0ccdc0ad4275f81b773a0ab6d0eb597c98b9ef62
|
[
"MIT"
] |
permissive
|
dataronio/algorithms-1
|
00e11b0483eef96ab1b39bd39e00ab412d8e1e2c
|
ab3e08bd16203b077f4a600e31794d6d73303d68
|
refs/heads/master
| 2022-02-06T19:43:57.936282
| 2021-09-18T22:47:01
| 2021-09-18T22:47:01
| 158,045,329
| 0
| 0
|
MIT
| 2020-03-09T22:06:21
| 2018-11-18T03:07:59
|
Java
|
UTF-8
|
Java
| false
| false
| 900
|
java
|
package iurii.job.interview.graph.breadth_first_search;
import iurii.job.interview.graph.structure.UnorderedGraph;
import org.junit.Test;
import java.util.Stack;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Created by iurii.dziuban on 02/08/2017.
*/
public class BreadthFirstSearchTest {
@Test
public void test() {
UnorderedGraph graph = new UnorderedGraph(6);
graph.addEdge(0, 1);
graph.addEdge(0, 2);
graph.addEdge(0, 5);
graph.addEdge(1, 2);
graph.addEdge(2, 3);
graph.addEdge(2, 4);
graph.addEdge(3, 4);
graph.addEdge(3, 5);
BreadthFirstSearch bfs = new BreadthFirstSearch(graph, 0);
Stack<Integer> pathTo = bfs.pathTo(5);
assertThat(pathTo.size()).isEqualTo(2);
assertThat(pathTo.pop()).isEqualTo(0);
assertThat(pathTo.pop()).isEqualTo(5);
}
}
|
[
"ydzyuban@gmail.com"
] |
ydzyuban@gmail.com
|
ce004ae29b0e6c51f066726e15425f68acef814f
|
c164d8f1a6068b871372bae8262609fd279d774c
|
/src/main/java/edu/uiowa/slis/VIVOISF/BFO_0000023/BFO_0000023Label.java
|
346a9586e2056e0ba078a259ec81ecfabf3d0033
|
[
"Apache-2.0"
] |
permissive
|
eichmann/VIVOISF
|
ad0a299df177d303ec851ff2453cbcbd7cae1ef8
|
e80cd8b74915974fac7ebae8e5e7be8615355262
|
refs/heads/master
| 2020-03-19T03:44:27.662527
| 2018-06-03T22:44:58
| 2018-06-03T22:44:58
| 135,757,275
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,698
|
java
|
package edu.uiowa.slis.VIVOISF.BFO_0000023;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
@SuppressWarnings("serial")
public class BFO_0000023Label extends edu.uiowa.slis.VIVOISF.TagLibSupport {
static BFO_0000023Label currentInstance = null;
private static final Log log = LogFactory.getLog(BFO_0000023Label.class);
// functional property
public int doStartTag() throws JspException {
try {
BFO_0000023 theBFO_0000023 = (BFO_0000023)findAncestorWithClass(this, BFO_0000023.class);
if (!theBFO_0000023.commitNeeded) {
pageContext.getOut().print(theBFO_0000023.getLabel());
}
} catch (Exception e) {
log.error("Can't find enclosing BFO_0000023 for label tag ", e);
throw new JspTagException("Error: Can't find enclosing BFO_0000023 for label tag ");
}
return SKIP_BODY;
}
public String getLabel() throws JspTagException {
try {
BFO_0000023 theBFO_0000023 = (BFO_0000023)findAncestorWithClass(this, BFO_0000023.class);
return theBFO_0000023.getLabel();
} catch (Exception e) {
log.error(" Can't find enclosing BFO_0000023 for label tag ", e);
throw new JspTagException("Error: Can't find enclosing BFO_0000023 for label tag ");
}
}
public void setLabel(String label) throws JspTagException {
try {
BFO_0000023 theBFO_0000023 = (BFO_0000023)findAncestorWithClass(this, BFO_0000023.class);
theBFO_0000023.setLabel(label);
} catch (Exception e) {
log.error("Can't find enclosing BFO_0000023 for label tag ", e);
throw new JspTagException("Error: Can't find enclosing BFO_0000023 for label tag ");
}
}
}
|
[
"david-eichmann@uiowa.edu"
] |
david-eichmann@uiowa.edu
|
77794fcfb280fbfe4c789d9ae10888ad42a379bd
|
7bdd4cccffe0683176e79a6b65c59678ee94c4f2
|
/src/main/java/com/bidanet/springmvc/demo/jkbuilder/FreeMarkerUtils.java
|
537b0817fb72d7f41e33c858667d7f94372eb0b4
|
[] |
no_license
|
xuejike/spring_xuejike_tpl
|
4e6b06e39ae2817a722309f938bc54ea8c6a083c
|
2e8114eb071bf47fc6ed9bf922633ade2e4f7b06
|
refs/heads/master
| 2021-07-02T14:20:29.579685
| 2019-03-08T03:42:42
| 2019-03-08T03:42:42
| 111,900,621
| 4
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,787
|
java
|
package com.bidanet.springmvc.demo.jkbuilder;
import freemarker.template.Configuration;
import freemarker.template.DefaultObjectWrapper;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import org.springframework.core.io.ClassPathResource;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.Locale;
import java.util.Map;
/**
* Created by xuejike on 2017/7/19.
*/
public class FreeMarkerUtils {
protected static Configuration configuration;
static {
configuration = new Configuration(Configuration.VERSION_2_3_22);
try {
configuration.setClassForTemplateLoading(FreeMarkerUtils.class,"/jk_tpl");
configuration.setObjectWrapper(new DefaultObjectWrapper(Configuration.VERSION_2_3_22));
configuration.setDefaultEncoding("UTF-8");
configuration.setOutputEncoding("UTF-8");
configuration.setEncoding(Locale.CHINA,"UTF-8");
} catch (Exception e) {
e.printStackTrace();
}
}
public static Template getTemplate(String file){
try {
return configuration.getTemplate(file);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public static String build(String file,Map<String,Object> data){
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
OutputStreamWriter writer = new OutputStreamWriter(outputStream);
Template template = getTemplate(file);
try {
template.process(data,writer);
} catch (TemplateException | IOException e) {
throw new RuntimeException(e);
}
return outputStream.toString();
}
}
|
[
"xuejike2004@126.com"
] |
xuejike2004@126.com
|
864e42a8b2eeda3ddd02065962bb18c466bed524
|
a7c85a1e89063038e17ed2fa0174edf14dc9ed56
|
/spring-aop-perf-tests/src/main/java/coas/perf/ComplexCondition150/Advice120.java
|
5f69b4f4ea3ee93de7fe5030c01ba85de82b3f7e
|
[] |
no_license
|
pmaslankowski/java-contracts
|
28b1a3878f68fdd759d88b341c8831716533d682
|
46518bb9a83050956e631faa55fcdf426589830f
|
refs/heads/master
| 2021-03-07T13:15:28.120769
| 2020-09-07T20:06:31
| 2020-09-07T20:06:31
| 246,267,189
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,644
|
java
|
package coas.perf.ComplexCondition150;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;
import coas.perf.ComplexCondition150.Subject150;
@Aspect
@Component("Advice_150_120_cc")
public class Advice120 {
@Around("execution(* coas.perf.ComplexCondition150.Subject150.*(..)) and (execution(* *.junk0(..)) or execution(* *.junk1(..)) or execution(* *.junk2(..)) or execution(* *.junk3(..)) or execution(* *.junk4(..)) or execution(* *.junk5(..)) or execution(* *.junk6(..)) or execution(* *.junk7(..)) or execution(* *.junk8(..)) or execution(* *.junk9(..)) or execution(* *.junk10(..)) or execution(* *.junk11(..)) or execution(* *.junk12(..)) or execution(* *.junk13(..)) or execution(* *.junk14(..)) or execution(* *.junk15(..)) or execution(* *.junk16(..)) or execution(* *.junk17(..)) or execution(* *.junk18(..)) or execution(* *.junk19(..)) or execution(* *.junk20(..)) or execution(* *.junk21(..)) or execution(* *.junk22(..)) or execution(* *.junk23(..)) or execution(* *.junk24(..)) or execution(* *.junk25(..)) or execution(* *.junk26(..)) or execution(* *.junk27(..)) or execution(* *.junk28(..)) or execution(* *.junk29(..)) or execution(* *.target(..)))")
public Object onTarget(ProceedingJoinPoint joinPoint) throws Throwable {
int res = (int) joinPoint.proceed();
for (int i=0; i < 1000; i++) {
if (res % 2 == 0) {
res /= 2;
} else {
res = 2 * res + 1;
}
}
return res;
}
}
|
[
"pmaslankowski@gmail.com"
] |
pmaslankowski@gmail.com
|
eef18e4aecd18d5cf33459469e6b2b1b7b27f169
|
995f73d30450a6dce6bc7145d89344b4ad6e0622
|
/Honor5C-7.0/src/main/java/tmsdk/bg/module/network/ITrafficCorrectionListener.java
|
d4dd6874a8877fad91852e6577de970b09cc7df9
|
[] |
no_license
|
morningblu/HWFramework
|
0ceb02cbe42585d0169d9b6c4964a41b436039f5
|
672bb34094b8780806a10ba9b1d21036fd808b8e
|
refs/heads/master
| 2023-07-29T05:26:14.603817
| 2021-09-03T05:23:34
| 2021-09-03T05:23:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 690
|
java
|
package tmsdk.bg.module.network;
/* compiled from: Unknown */
public abstract class ITrafficCorrectionListener {
public static final int TC_Traffic4G = 3;
public static final int TC_TrafficCommon = 1;
public static final int TC_TrafficFree = 2;
public static final int TSC_LeftKByte = 257;
public static final int TSC_TotalKBytes = 259;
public static final int TSC_UsedKBytes = 258;
public abstract void onError(int i, int i2);
public abstract void onNeedSmsCorrection(int i, String str, String str2);
public void onProfileNotify(int i, ProfileInfo profileInfo) {
}
public abstract void onTrafficInfoNotify(int i, int i2, int i3, int i4);
}
|
[
"dstmath@163.com"
] |
dstmath@163.com
|
af0085f9ee77a49cd354bbe1987e9fc0ba3d2012
|
1646441d091844cd8e58659ab13f113bffe9f6ce
|
/Thinking Java 2/src/innerclasses/Wrapping.java
|
8ad5265724d15b8952cfaa9a6772ae9525fa83a0
|
[] |
no_license
|
PhilDolganov/kantora
|
b51fca7c0be4227328c662a787ecb9dcb4f9e332
|
b4b09538ce89f72715f167d6c9c0a70e0e87977c
|
refs/heads/master
| 2021-10-02T21:46:07.658179
| 2018-12-01T04:49:49
| 2018-12-01T04:49:49
| 104,503,272
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 142
|
java
|
package innerclasses;
public class Wrapping {
private int i;
public Wrapping(int x) { i = x; }
public int value() {return i; }
}
|
[
"phildolganov@yahoo.com"
] |
phildolganov@yahoo.com
|
66e69e189785df6962c7d09e37ac8ccbcedba7f4
|
d6bd766475fbd87945a6d4c56c828fb0f82e53c2
|
/src/main/java/com/kwic/web/servlet/RequestTokenInterceptor.java
|
7ad94baf7d193ec4293937214e4ab5301a59ffdd
|
[] |
no_license
|
suhojang/TCPforScraping
|
1d2d66824f5938229fb4c2da37d4d15ffd9e1c6c
|
f9eab5fd01d8f3e861476c538a150194080d15fb
|
refs/heads/main
| 2023-04-13T00:42:21.844097
| 2021-04-07T06:36:44
| 2021-04-07T06:36:44
| 355,095,300
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,440
|
java
|
package com.kwic.web.servlet;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.codehaus.jackson.map.ObjectMapper;
import org.springframework.util.AntPathMatcher;
import org.springframework.util.PathMatcher;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.ModelAndViewDefiningException;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import com.kwic.support.CryptoKeyGenerator;
import com.kwic.util.StringUtil;
import com.kwic.web.controller.Controllers;
/**
* 중복실행 방지 감시자
* @see dispatcher-servlet.xml
* @author ykkim
*/
public class RequestTokenInterceptor extends HandlerInterceptorAdapter {
public static final String ATTRIBUTE_NAME = "KWIC_REQUEST_TOKEN_ATTRIBUTE";
public static final int FILTER_MAIN_INCLUDE = 1;
public static final int FILTER_MAIN_EXCLUDE = 2;
public static final String AJAX_PATTERN = "/**/*A";
public static final String DOWNLOAD_PATTERN = "/**/*D";
public static final String EXCEL_PATTERN = "/**/*E";
private PathMatcher pathMatcher = new AntPathMatcher();
/**
* 중복실행 여부 검사 대상 URL 목록
* dispatcher-servlet.xml의 requestTokenInterceptor.checkUrlPattern
*/
private ArrayList<String> checkUrlPattern;
/**
* 토큰 생성 URL 목록
* dispatcher-servlet.xml의 requestTokenInterceptor.makeTokenUrlPattern
*/
private ArrayList<String> makeTokenUrlPattern;
/**
* default constructor
* **/
public RequestTokenInterceptor(){
}
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)throws ServletException{
String uri = request.getRequestURI().toString();
if(uri.indexOf("?") >= 0){
uri = uri.substring(0, uri.indexOf("?"));
}
uri = StringUtil.replace(uri,".do", "");
boolean match = true;
if(isCheckUrl(uri)){
String ssToken = (String) request.getSession().getAttribute(ATTRIBUTE_NAME);
String rqToken = (String) request.getParameter(ATTRIBUTE_NAME);
if(ssToken == null || !ssToken.equals(rqToken)) {
match = false;
}
request.getSession().setAttribute(ATTRIBUTE_NAME, CryptoKeyGenerator.getRandomKey(CryptoKeyGenerator.ALGORITHM_AES256, new int[]{CryptoKeyGenerator.KEY_TYPE_NUM, CryptoKeyGenerator.KEY_TYPE_ENG_CAPITAL, CryptoKeyGenerator.KEY_TYPE_ENG_SMALL}));
}
if(isMakeTokenUrlPattern(uri)) {
request.getSession().setAttribute(ATTRIBUTE_NAME, CryptoKeyGenerator.getRandomKey(CryptoKeyGenerator.ALGORITHM_AES256, new int[]{CryptoKeyGenerator.KEY_TYPE_NUM, CryptoKeyGenerator.KEY_TYPE_ENG_CAPITAL, CryptoKeyGenerator.KEY_TYPE_ENG_SMALL}));
}
if(match){
return true;
}
//ajax response
if(pathMatcher.match(AJAX_PATTERN, uri)){
Map<String,Object> obj = new HashMap<String,Object>();
obj.put(Controllers.RESULT_CD, "N");
obj.put(Controllers.RESULT_ERCD, Controllers.RESULT_ERCD_NOSESSION);
obj.put(Controllers.RESULT_MSG, "사용이 만료된 요청입니다.");
String jsonString = null;
try{
jsonString = new ObjectMapper().writeValueAsString(obj);
String callback = request.getParameter("callback");
response.setStatus(HttpServletResponse.SC_OK);
response.setHeader("Content-Type", "application/json; charset=UTF-8");
response.getWriter().append(callback == null || "".equals(callback) ? "" : callback).append("(").append(jsonString).append(")");
response.getWriter().close();
}catch(Exception e){
}
return false;
}else if(pathMatcher.match(DOWNLOAD_PATTERN, uri) || pathMatcher.match(EXCEL_PATTERN, uri)){
ModelAndView modelAndView = new ModelAndView();
modelAndView.addObject(Controllers.EXCEPTION, new Exception("사용이 만료된 요청입니다."));
throw new ModelAndViewDefiningException(modelAndView);
}else{
ModelAndView modelAndView = new ModelAndView();
modelAndView.addObject(Controllers.EXCEPTION, new Exception("사용이 만료된 요청입니다."));
throw new ModelAndViewDefiningException(modelAndView);
}
}
/**<pre>
* Controller의 처리 직후 시행된다.
* Controller내에서의 오류 발생 시 실행되지 않음에 유의한다.
* </pre>
* @param request HttpServletRequest
* @param response HttpServletResponse
* @param handler controller
* @param modelandview ModelAndView
* **/
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelandview)throws Exception{
}
/**<pre>
* Request에 대한 모든 처리가 완료된 후 실행된다.
* 1. session에 현재 request URI를 저장한다.
* 2. session에 현재 servletPath(jsp 경로)를 저장한다.
* 3. RequestHolder에 저장한 정보를 제거한다.
* </pre>
* @param httpservletrequest HttpServletRequest
* @param httpservletresponse HttpServletResponse
* @param handler controller
* @param exception Exception
* **/
public void afterCompletion(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, Object handler, Exception exception) throws Exception{
}
/**
* checkUrlPattern 분석
* */
public boolean isCheckUrl(String url){
if(url == null){
return false;
}
String checkUrl = "";
if(checkUrlPattern == null || checkUrlPattern.size() == 0){
return false;
}
for(int i=0; i<checkUrlPattern.size(); i++){
if(checkUrlPattern.get(i) == null){
return false;
}
checkUrl = (String) checkUrlPattern.get(i);
if(pathMatcher.match(checkUrl, url)){
return true;
}
}
return false;
}
/**
* makeTokenUrlPattern 분석
* */
public boolean isMakeTokenUrlPattern(String url){
if(url == null){
return false;
}
String checkUrl = "";
if(makeTokenUrlPattern == null || makeTokenUrlPattern.size() == 0){
return false;
}
for(int i=0; i<makeTokenUrlPattern.size(); i++){
if(makeTokenUrlPattern.get(i) == null){
return false;
}
checkUrl = (String) makeTokenUrlPattern.get(i);
if(pathMatcher.match(checkUrl, url)){
return true;
}
}
return false;
}
@SuppressWarnings({ "rawtypes", "unchecked" })
public Map cloneParameters(HttpServletRequest request){
Map map = request.getParameterMap();
Map savedParametersMap = new HashMap();
Iterator<String> itr = map.keySet().iterator();
String key = null;
String[] value = null;
while(itr.hasNext()){
key = itr.next();
value = map.get(key).getClass().isArray() ? (String[]) map.get(key) : new String[]{(String) map.get(key)} ;
savedParametersMap.put(key, value);
}
return savedParametersMap;
}
public void setCheckUrlPattern(ArrayList<String> checkUrlPattern){
this.checkUrlPattern = checkUrlPattern;
}
public void setMakeTokenUrlPattern(ArrayList<String> makeTokenUrlPattern){
this.makeTokenUrlPattern = makeTokenUrlPattern;
}
}
|
[
"jsh2808@naver.com"
] |
jsh2808@naver.com
|
4c3bcc3ca9930672934550e6bf9f6ffceff1084d
|
c55a758da768c00779aeb23f617e8883bde78d99
|
/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/relationship/UpdateRelationshipTypeAction.java
|
c48621858e3109a41b60cd04dbc8f176873c9f78
|
[
"BSD-3-Clause"
] |
permissive
|
kakada/dhis2
|
2d229dad0a835e711c7c8923ba9ffd5c2845f462
|
7a47bad654a340a5c2bcfa0de936f4fdc885ca5e
|
refs/heads/master
| 2021-01-18T22:41:04.575412
| 2015-07-24T07:10:46
| 2015-07-24T07:10:46
| 39,616,913
| 0
| 1
| null | 2016-03-09T19:45:40
| 2015-07-24T07:01:37
|
Java
|
UTF-8
|
Java
| false
| false
| 3,619
|
java
|
package org.hisp.dhis.trackedentity.action.relationship;
/*
* Copyright (c) 2004-2015, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* Neither the name of the HISP project nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
import org.hisp.dhis.relationship.RelationshipType;
import org.hisp.dhis.relationship.RelationshipTypeService;
import com.opensymphony.xwork2.Action;
/**
* @author Abyot Asalefew Gizaw
* @version $Id$
*/
public class UpdateRelationshipTypeAction
implements Action
{
// -------------------------------------------------------------------------
// Dependencies
// -------------------------------------------------------------------------
private RelationshipTypeService relationshipTypeService;
public void setRelationshipTypeService( RelationshipTypeService relationshipTypeService )
{
this.relationshipTypeService = relationshipTypeService;
}
// -------------------------------------------------------------------------
// Input/Output
// -------------------------------------------------------------------------
private int id;
public void setId( int id )
{
this.id = id;
}
private String aIsToB;
public void setAIsToB( String aIsToB )
{
this.aIsToB = aIsToB;
}
private String bIsToA;
public void setBIsToA( String bIsToA )
{
this.bIsToA = bIsToA;
}
private String name;
public void setName( String name )
{
this.name = name;
}
// -------------------------------------------------------------------------
// Action implementation
// -------------------------------------------------------------------------
@Override
public String execute()
throws Exception
{
RelationshipType relationshipType = relationshipTypeService.getRelationshipType( id );
relationshipType.setaIsToB( aIsToB );
relationshipType.setbIsToA( bIsToA );
relationshipType.setName( name );
relationshipTypeService.updateRelationshipType( relationshipType );
return SUCCESS;
}
}
|
[
"kakada.chheang@gmail.com"
] |
kakada.chheang@gmail.com
|
43e68d76bd33fcedc44bef0f712a311869ef0164
|
6d08e8820728c9332c66c316a790d6255fa1d6b6
|
/DasDrive/src/addcategory/ACTC_07.java
|
49ce68ae4d7e9d162bf9ffa1c85a46ba5a644d7f
|
[] |
no_license
|
GirdhariGarg/DasDrive
|
6305365b44cfdbcebe1ebd56c702cde83cd6d271
|
0e52e643cb74849e20f551645859bdc1d022c8f5
|
refs/heads/master
| 2020-06-12T20:51:07.407189
| 2014-12-02T12:26:22
| 2014-12-02T12:26:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 321
|
java
|
package addcategory;
import java.io.IOException;
import org.testng.annotations.Test;
import TestBase.*;
public class ACTC_07 {
int row = 8;
@Test
public void runtest() throws IOException, InterruptedException{
addcategories vaf = new addcategories();
vaf.login(row);
vaf.validate(row);
}
}
|
[
"CBTECH5@CBTECH5-LAPTOP"
] |
CBTECH5@CBTECH5-LAPTOP
|
0ea1bf2400873774f84cbda8f0829bb8bf84513b
|
922746e28e43f54a086d1cdcff2cfe426b173dd7
|
/wang/src/main/java/com/jc/system/security/domain/SysRole.java
|
3d55eaa2af7e3cced537b066a87cbacaea0d600f
|
[] |
no_license
|
wtfc/springboot-shyt
|
f934161c6cdf37ba99515257ffba7f8d50822b5c
|
1b67918f7a129ffef16ca61be0738c241029866f
|
refs/heads/master
| 2020-04-09T05:24:39.017913
| 2018-12-02T17:42:27
| 2018-12-02T17:42:27
| 160,063,362
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,094
|
java
|
package com.jc.system.security.domain;
import com.jc.foundation.domain.BaseBean;
/**
* @title GOA2.0
* @description 角色信息基本表实体类
* @version 2014-04-15
*
*/
public class SysRole extends BaseBean implements java.io.Serializable{
private static final long serialVersionUID = 1L;
private String name; /*名称*/
private String description; /*描述*/
private Integer deptId; /*角色所在部门id*/
private Integer queue; /*排序*/
public String getName(){
return name;
}
public void setName(String name){
this.name = name;
}
public String getDescription(){
return description;
}
public void setDescription(String description){
this.description = description;
}
public Integer getDeptId(){
return deptId;
}
public void setDeptId(Integer deptId){
this.deptId = deptId;
}
public Integer getDeleteFlag(){
return deleteFlag;
}
public void setDeleteFlag(Integer deleteFlag){
this.deleteFlag = deleteFlag;
}
public Integer getQueue(){
return queue;
}
public void setQueue(Integer queue){
this.queue = queue;
}
}
|
[
"1226105567@qq.com"
] |
1226105567@qq.com
|
b1164a967197c19d6e11fe7506e3f622121920a8
|
128eb90ce7b21a7ce621524dfad2402e5e32a1e8
|
/laravel-converted/src/main/java/com/project/convertedCode/globalNamespace/namespaces/DeepCopy/namespaces/f005/classes/Foo.java
|
38b4631f2fe8864cf9fb4d85e0d8e331f6790f9e
|
[
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
RuntimeConverter/RuntimeConverterLaravelJava
|
657b4c73085b4e34fe4404a53277e056cf9094ba
|
7ae848744fbcd993122347ffac853925ea4ea3b9
|
refs/heads/master
| 2020-04-12T17:22:30.345589
| 2018-12-22T10:32:34
| 2018-12-22T10:32:34
| 162,642,356
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,867
|
java
|
package com.project.convertedCode.globalNamespace.namespaces.DeepCopy.namespaces.f005.classes;
import java.lang.invoke.MethodHandles;
import com.runtimeconverter.runtime.passByReference.PassByReferenceArgs;
import com.runtimeconverter.runtime.classes.StaticBaseClass;
import com.runtimeconverter.runtime.classes.NoConstructor;
import com.runtimeconverter.runtime.classes.RuntimeClassBase;
import com.runtimeconverter.runtime.RuntimeEnv;
import com.runtimeconverter.runtime.annotations.ConvertedMethod;
import com.runtimeconverter.runtime.reflection.ReflectionClassData;
import com.runtimeconverter.runtime.arrays.ZPair;
/*
Converted with The Runtime Converter (runtimeconverter.com)
vendor/myclabs/deep-copy/fixtures/f005/Foo.php
*/
public class Foo extends RuntimeClassBase {
public Object cloned = false;
public Foo(RuntimeEnv env, Object... args) {
super(env);
}
public Foo(NoConstructor n) {
super(n);
}
@ConvertedMethod
public Object __clone(RuntimeEnv env, Object... args) {
this.cloned = true;
return null;
}
public static final Object CONST_class = "DeepCopy\\f005\\Foo";
// Runtime Converter Internals
// RuntimeStaticCompanion contains static methods
// RequestStaticProperties contains static (per-request) properties
// ReflectionClassData contains php reflection data used by the runtime library
public static class RuntimeStaticCompanion extends StaticBaseClass {
private static final MethodHandles.Lookup staticCompanionLookup = MethodHandles.lookup();
}
public static final RuntimeStaticCompanion runtimeStaticObject = new RuntimeStaticCompanion();
private static final ReflectionClassData runtimeConverterReflectionData =
ReflectionClassData.builder()
.setName("DeepCopy\\f005\\Foo")
.setLookup(
Foo.class,
MethodHandles.lookup(),
RuntimeStaticCompanion.staticCompanionLookup)
.setLocalProperties("cloned")
.setFilename("vendor/myclabs/deep-copy/fixtures/f005/Foo.php")
.get();
@Override
public ReflectionClassData getRuntimeConverterReflectionData() {
return runtimeConverterReflectionData;
}
@Override
public Object converterRuntimeCallExtended(
RuntimeEnv env,
String method,
Class<?> caller,
PassByReferenceArgs passByReferenceArgs,
Object... args) {
return RuntimeClassBase.converterRuntimeCallExtendedWithDataStatic(
this,
runtimeConverterReflectionData,
env,
method,
caller,
passByReferenceArgs,
args);
}
}
|
[
"git@runtimeconverter.com"
] |
git@runtimeconverter.com
|
76f8a18be9332895e5d4803097ec5926ced73450
|
f192024d1bac2c952b632aa6466ad6d30f1fd160
|
/src/main/java/br/com/cursomvc/security/Usuario.java
|
c8fb3698bee46cbfb0ebe23b6235d30c70705250
|
[] |
no_license
|
wlclimaco85/spring-ionic-backend
|
1fad29e85796b33404005c6159b237996c766a50
|
a83432428bf8f7f6f7e3da1ae3ad72993677c970
|
refs/heads/master
| 2020-09-04T04:17:18.462943
| 2018-11-25T02:56:11
| 2018-11-25T02:56:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,757
|
java
|
package br.com.cursomvc.security;
import java.util.Collection;
import java.util.Set;
import java.util.stream.Collectors;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import br.com.cursomvc.models.enums.Perfil;
public class Usuario implements UserDetails{
private static final long serialVersionUID = 1L;
private Integer id;
private String email;
private String senha;
private Collection<? extends GrantedAuthority> authorities;
public Usuario() {
super();
}
public Usuario(Integer id, String email, String senha, Set<Perfil> perfis) {
super();
this.id = id;
this.email = email;
this.senha = senha;
this.authorities = perfis.stream().map(x -> new SimpleGrantedAuthority(x.getDescricao()))
.collect(Collectors.toList());;
}
public Integer getId() {
return id;
}
@Override
public Collection<? extends GrantedAuthority> getAuthorities() {
return authorities;
}
@Override
public String getPassword() {
return this.senha;
}
@Override
public String getUsername() {
return this.email;
}
@Override
public boolean isAccountNonExpired() {
return true;
}
@Override
public boolean isAccountNonLocked() {
return true;
}
@Override
public boolean isCredentialsNonExpired() {
return true;
}
@Override
public boolean isEnabled() {
return true;
}
public boolean hasRole(Perfil perfil) {
return getAuthorities().contains(new SimpleGrantedAuthority(perfil.getDescricao()));
}
@Override
public String toString() {
return "Usuario [id=" + id + ", email=" + email + ", senha=" + senha + ", authorities=" + authorities + "]";
}
}
|
[
"rodrigo_moreira84@hotmail.com"
] |
rodrigo_moreira84@hotmail.com
|
ba10a691c50b98acf087d34869cff28b34ca3993
|
2161156ab323fba5b42358adc499c2f50dba81d0
|
/src/main/java/com/ivoronline/springboot_dto_modelmapper_custommapper/controllers/MyController.java
|
63e625968b86768eb6312aeb2325de41f250cff0
|
[] |
no_license
|
ivoronline/springboot_dto_modelmapper_custommapper
|
dba31b9977ba273c03ba0670d8fe6cc93ae6defd
|
d3550abb852fe0c1d365c0afb1ada7e836553e8e
|
refs/heads/master
| 2023-04-03T05:03:03.679271
| 2021-04-14T08:20:42
| 2021-04-14T08:20:42
| 324,428,836
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,341
|
java
|
package com.ivoronline.springboot_dto_modelmapper_custommapper.controllers;
import com.ivoronline.springboot_dto_modelmapper_custommapper.DTOs.AuthorDTO;
import com.ivoronline.springboot_dto_modelmapper_custommapper.entities.Author;
import org.modelmapper.TypeMap;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.modelmapper.ModelMapper;
@Controller
public class MyController {
@ResponseBody
@RequestMapping("AddAuthor")
public String addAuthor(@RequestBody AuthorDTO authorDTO) {
//CUSTOMIZE MODEL MAPPER
ModelMapper authorDTOEntity = new ModelMapper();
TypeMap<AuthorDTO, Author> typeMap = authorDTOEntity.typeMap(AuthorDTO.class, Author.class);
typeMap.addMappings(mapper -> {
mapper.map(AuthorDTO::getAuthorName, Author::setName); //src -> src.getAuthorName()
mapper.map(AuthorDTO::getAuthorAge , Author::setAge ); //src -> src.getAuthorAge ()
});
//CONVERT AUTHORDTO TO AUTHOR
Author author = authorDTOEntity.map(authorDTO, Author.class);
//RETURN SOMETHING
return author.id + ": " + author.name + " is " + author.age + " years old";
}
}
|
[
"ivoronline@gmail.com"
] |
ivoronline@gmail.com
|
72b7d3197699ba44f2b571c53a9294396f5878c6
|
0fd4f55b08bf6cee6a505f2346926a1e4c9bde24
|
/Java Design Patterns - A Programmer's Approach/Behavioral Design Patterns/Chain of Responsibilities/Implementation/Dollar20Dispenser.java
|
1a3c736d9621d75fbbeb0fde0c7954c13fd00042
|
[] |
no_license
|
david2999999/Advanced-Java
|
1d7089a050fa1b8e1b574aa4855b10363b1ad383
|
78f17038c75be8c5d3456d92ac81841fb502bf56
|
refs/heads/master
| 2021-07-19T19:03:06.061598
| 2020-04-08T19:37:40
| 2020-04-08T19:37:40
| 128,837,674
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 667
|
java
|
package com.journaldev.design.chainofresponsibility;
public class Dollar20Dispenser implements DispenseChain{
private DispenseChain chain;
@Override
public void setNextChain(DispenseChain nextChain) {
this.chain=nextChain;
}
@Override
public void dispense(Currency cur) {
if(cur.getAmount() >= 20){
int num = cur.getAmount()/20;
int remainder = cur.getAmount() % 20;
System.out.println("Dispensing "+num+" 20$ note");
if(remainder !=0) this.chain.dispense(new
Currency(remainder));
}else{
this.chain.dispense(cur);
}
}
}
|
[
"djiang86@binghamton.edu"
] |
djiang86@binghamton.edu
|
40f95bff1ec1c47189fea74f4ac4ddd51cb2a83b
|
dc3b08172e493588e2874b332519e60dbdcdc082
|
/mockserver-core/src/main/java/org/mockserver/codec/PathParametersDecoder.java
|
bef300893d2ce00682bc6ff751bd02de45ebb58a
|
[
"Apache-2.0"
] |
permissive
|
sullis/mockserver
|
a0003615932a0efc79857d29e7031fe3126dfd51
|
3c94b3c3491faef0cfcb22601081686ce28f1dd8
|
refs/heads/master
| 2022-11-10T06:14:46.594931
| 2020-06-27T10:22:16
| 2020-06-27T10:22:16
| 275,458,499
| 0
| 0
|
Apache-2.0
| 2020-06-27T21:48:10
| 2020-06-27T21:48:09
| null |
UTF-8
|
Java
| false
| false
| 4,601
|
java
|
package org.mockserver.codec;
import org.mockserver.model.HttpRequest;
import org.mockserver.model.NottableString;
import org.mockserver.model.Parameters;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import static org.mockserver.model.NottableString.string;
public class PathParametersDecoder {
private static final Pattern PATH_VARIABLE_NAME_PATTERN = Pattern.compile("\\{[.;]?([^}*]+)\\*?}");
public String validatePath(HttpRequest matcher) {
String error = "";
if (matcher.getPath() != null) {
if (matcher.getPathParameters() != null && !matcher.getPathParameters().isEmpty()) {
List<String> actualParameterNames = new ArrayList<>();
for (String matcherPathPart : matcher.getPath().getValue().split("/")) {
Matcher pathParameterName = PATH_VARIABLE_NAME_PATTERN.matcher(matcherPathPart);
if (pathParameterName.matches()) {
actualParameterNames.add(pathParameterName.group(1));
}
}
List<String> expectedParameterNames = matcher.getPathParameters().keySet().stream().map(NottableString::getValue).collect(Collectors.toList());
if (!expectedParameterNames.equals(actualParameterNames)) {
error = "path parameters specified " + expectedParameterNames + " but found " + actualParameterNames + " in path matcher";
}
}
}
// Unable to load API spec from provided URL or payload attribute paths.'/pets/{petId}'. Declared path parameter petId needs to be defined as a path parameter in path or operation level
return error;
}
public NottableString normalisePathWithParametersForMatching(HttpRequest matcher) {
NottableString result = null;
if (matcher.getPath() != null) {
if (matcher.getPathParameters() != null && !matcher.getPathParameters().isEmpty()) {
String value = matcher.getPath().getValue();
if (value.contains("{")) {
value = PATH_VARIABLE_NAME_PATTERN.matcher(value).replaceAll(".*");
result = string(value);
} else {
result = matcher.getPath();
}
} else {
result = matcher.getPath();
}
}
// Unable to load API spec from provided URL or payload attribute paths.'/pets/{petId}'. Declared path parameter petId needs to be defined as a path parameter in path or operation level
return result;
}
public Parameters retrievePathParameters(HttpRequest matcher, HttpRequest matched) {
Parameters parsedParameters = matched.getPathParameters() != null ? matched.getPathParameters() : new Parameters();
if (matcher.getPath() != null && matched.getPath() != null) {
if (matcher.getPathParameters() != null && !matcher.getPathParameters().isEmpty()) {
String[] matcherPathParts = matcher.getPath().getValue().split("/");
String[] matchedPathParts = matched.getPath().getValue().split("/");
if (matcherPathParts.length != matchedPathParts.length) {
throw new IllegalArgumentException("matcher path " + matcher.getPath().getValue() + " has " + matcherPathParts.length + " parts but matched path " + matched.getPath().getValue() + " has " + matchedPathParts.length + " parts ");
}
for (int i = 0; i < matcherPathParts.length; i++) {
Matcher pathParameterName = PATH_VARIABLE_NAME_PATTERN.matcher(matcherPathParts[i]);
if (pathParameterName.matches()) {
String parameterName = pathParameterName.group(1);
List<String> parameterValues = new ArrayList<>();
Matcher pathParameterValue = Pattern.compile("[.;]?(?:" + parameterName + "=)?([^.,;]+)[.,;]?").matcher(matchedPathParts[i]);
while (pathParameterValue.find()) {
parameterValues.add(pathParameterValue.group(1));
}
parsedParameters.withEntry(parameterName, parameterValues);
}
}
}
}
// ensure actions have path parameters available to them
matched.withPathParameters(parsedParameters);
return parsedParameters;
}
}
|
[
"733179+jamesdbloom@users.noreply.github.com"
] |
733179+jamesdbloom@users.noreply.github.com
|
f0fc83cd5a4284def1de473b1428f6678fc13091
|
11f60262a3cb72653d20e07e18d2b03d65fc4670
|
/dlt-server/src/main/java/com/travel/hotel/dlt/dao/DltOrderPOMapper.java
|
3c86709637d6b4ff64e7f4e8c154e5ea08bda3c2
|
[
"Apache-2.0"
] |
permissive
|
GSIL-Monitor/hotel-1
|
59812e7c3983a9b6db31f7818f93d7b3a6ac683c
|
4d170c01a86a23ebf3378d906cac4641ba1aefa9
|
refs/heads/master
| 2020-04-12T18:29:14.914311
| 2018-12-21T07:03:37
| 2018-12-21T07:03:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 960
|
java
|
package com.travel.hotel.dlt.dao;
import com.travel.hotel.dlt.entity.po.DltOrderPO;
import com.travel.hotel.dlt.entity.po.DltOrderPOExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface DltOrderPOMapper {
int countByExample(DltOrderPOExample example);
int deleteByExample(DltOrderPOExample example);
int deleteByPrimaryKey(Long id);
int insert(DltOrderPO record);
int insertSelective(DltOrderPO record);
int insertBatch(List<DltOrderPO> recordList);
List<DltOrderPO> selectByExample(DltOrderPOExample example);
DltOrderPO selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") DltOrderPO record, @Param("example") DltOrderPOExample example);
int updateByExample(@Param("record") DltOrderPO record, @Param("example") DltOrderPOExample example);
int updateByPrimaryKeySelective(DltOrderPO record);
int updateByPrimaryKey(DltOrderPO record);
}
|
[
"961346704@qq.com"
] |
961346704@qq.com
|
38c80867cc4d024d44fe121b476f512cea39930b
|
bfaac45f23000c1e76eeaf04215e48c1646350e6
|
/WildCardRepresentationAspectualAcmeStudio.diagram/src/wildcardrepresentationaspectualacme/diagram/edit/helpers/SystemEditHelper.java
|
a7c851a7e7dd08e12cdc6d7b18b8a760d631697f
|
[] |
no_license
|
eduardoafs/aspectualacme
|
0353e70623e51575fb957ebd92d84aa653068f1f
|
5a36060e91b314348254c7d2ff0117f5bbd37260
|
refs/heads/master
| 2020-09-11T03:02:42.996115
| 2019-11-15T12:39:45
| 2019-11-15T12:39:45
| 221,919,211
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 159
|
java
|
package wildcardrepresentationaspectualacme.diagram.edit.helpers;
/**
* @generated
*/
public class SystemEditHelper extends AspectualacmeBaseEditHelper {
}
|
[
"eduafsilva@gmail.com"
] |
eduafsilva@gmail.com
|
cdc43176ab44227ded71d131b3a0db4446966e06
|
30998a3486f3fad0b336cd7aa8e5ab20fa91181e
|
/src/main/java/com/liuqi/utils/HttpsUtils.java
|
77a0198bf7c3e2eef6b68835abf73854af2b9a49
|
[] |
no_license
|
radar9494/Radar-Star-admin
|
cbf8c9a0b5b782d2bcc281dfd5ee78ce5b31f086
|
9e4622d3932c2cd2219152814fc91858030cc196
|
refs/heads/main
| 2023-02-24T00:07:03.150304
| 2021-01-26T02:51:38
| 2021-01-26T02:51:38
| 332,949,996
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,097
|
java
|
package com.liuqi.utils;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.config.Registry;
import org.apache.http.config.RegistryBuilder;
import org.apache.http.conn.socket.ConnectionSocketFactory;
import org.apache.http.conn.socket.PlainConnectionSocketFactory;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import java.io.IOException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class HttpsUtils {
/**
* 模拟请求
*
* @param url 资源地址
* @param map 参数列表
* @param encoding 编码
* @return
* @throws NoSuchAlgorithmException
* @throws KeyManagementException
* @throws IOException
* @throws ClientProtocolException
*/
public static String send(String url, Map<String, String> map, String encoding) throws KeyManagementException, NoSuchAlgorithmException, IOException {
String body = "";
//采用绕过验证的方式处理https请求
SSLContext sslcontext = createIgnoreVerifySSL();
// 设置协议http和https对应的处理socket链接工厂的对象
Registry<ConnectionSocketFactory> socketFactoryRegistry = RegistryBuilder.<ConnectionSocketFactory>create()
.register("http", PlainConnectionSocketFactory.INSTANCE)
.register("https", new SSLConnectionSocketFactory(sslcontext))
.build();
PoolingHttpClientConnectionManager connManager = new PoolingHttpClientConnectionManager(socketFactoryRegistry);
HttpClients.custom().setConnectionManager(connManager);
//创建自定义的httpclient对象
CloseableHttpClient client = HttpClients.custom().setConnectionManager(connManager).build();
// CloseableHttpClient client = HttpClients.createDefault();
//创建post方式请求对象
HttpPost httpPost = new HttpPost(url);
//装填参数
List<NameValuePair> nvps = new ArrayList<NameValuePair>();
if (map != null) {
for (Map.Entry<String, String> entry : map.entrySet()) {
nvps.add(new BasicNameValuePair(entry.getKey(), entry.getValue()));
}
}
//设置参数到请求对象中
httpPost.setEntity(new UrlEncodedFormEntity(nvps, encoding));
System.out.println("请求地址:" + url);
System.out.println("请求参数:" + nvps.toString());
//设置header信息
//指定报文头【Content-type】、【User-Agent】
httpPost.setHeader("Content-type", "application/x-www-form-urlencoded");
httpPost.setHeader("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)");
//执行请求操作,并拿到结果(同步阻塞)
CloseableHttpResponse response = client.execute(httpPost);
//获取结果实体
HttpEntity entity = response.getEntity();
if (entity != null) {
//按指定编码转换结果实体为String类型
body = EntityUtils.toString(entity, encoding);
}
EntityUtils.consume(entity);
//释放链接
response.close();
return body;
}
/**
* 绕过验证
*
* @return
* @throws NoSuchAlgorithmException
* @throws KeyManagementException
*/
public static SSLContext createIgnoreVerifySSL() throws NoSuchAlgorithmException, KeyManagementException {
SSLContext sc = SSLContext.getInstance("SSLv3");
// 实现一个X509TrustManager接口,用于绕过验证,不用修改里面的方法
X509TrustManager trustManager = new X509TrustManager() {
@Override
public void checkClientTrusted(
java.security.cert.X509Certificate[] paramArrayOfX509Certificate,
String paramString) throws CertificateException {
}
@Override
public void checkServerTrusted(
java.security.cert.X509Certificate[] paramArrayOfX509Certificate,
String paramString) throws CertificateException {
}
@Override
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
return null;
}
};
sc.init(null, new TrustManager[]{trustManager}, null);
return sc;
}
public static String sendGet(String url, String encoding) throws KeyManagementException, NoSuchAlgorithmException, IOException {
String body = "";
//采用绕过验证的方式处理https请求
SSLContext sslcontext = createIgnoreVerifySSL();
// 设置协议http和https对应的处理socket链接工厂的对象
Registry<ConnectionSocketFactory> socketFactoryRegistry = RegistryBuilder.<ConnectionSocketFactory>create()
.register("http", PlainConnectionSocketFactory.INSTANCE)
.register("https", new SSLConnectionSocketFactory(sslcontext))
.build();
PoolingHttpClientConnectionManager connManager = new PoolingHttpClientConnectionManager(socketFactoryRegistry);
HttpClients.custom().setConnectionManager(connManager);
//创建自定义的httpclient对象
CloseableHttpClient client = HttpClients.custom().setConnectionManager(connManager).build();
// CloseableHttpClient client = HttpClients.createDefault();
//创建post方式请求对象
HttpGet httpget = new HttpGet(url);
//设置header信息
//指定报文头【Content-type】、【User-Agent】
httpget.setHeader("Content-type", "application/x-www-form-urlencoded");
httpget.setHeader("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)");
//执行请求操作,并拿到结果(同步阻塞)
CloseableHttpResponse response = client.execute(httpget);
//获取结果实体
HttpEntity entity = response.getEntity();
if (entity != null) {
//按指定编码转换结果实体为String类型
body = EntityUtils.toString(entity, encoding);
}
EntityUtils.consume(entity);
//释放链接
response.close();
return body;
}
}
|
[
"radar131419@gmail.com"
] |
radar131419@gmail.com
|
5bb68212656e1d8604469f95c2a20c3b891929f0
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XRENDERING-481-6-3-SPEA2-WeightedSum:TestLen:CallDiversity/org/xwiki/display/internal/DocumentContentDisplayer_ESTest.java
|
b5942b10f001cef2b3a4c60b9b4ebe58ceb16ba0
|
[] |
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
| 581
|
java
|
/*
* This file was automatically generated by EvoSuite
* Mon Apr 06 20:05:28 UTC 2020
*/
package org.xwiki.display.internal;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class DocumentContentDisplayer_ESTest extends DocumentContentDisplayer_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
e3ea3059e645fd3191d9af9b4cfb9ab02453aa5d
|
9bac6b22d956192ba16d154fca68308c75052cbb
|
/icmsint-ejb/src/main/java/hk/judiciary/icmsint/model/sysinf/inf/gdsid2j/EnglishAddressLineV11CT.java
|
19ff3fd4d1772a1ed844c7d13eda6658482e21bf
|
[] |
no_license
|
peterso05168/icmsint
|
9d4723781a6666cae8b72d42713467614699b66d
|
79461c4dc34c41b2533587ea3815d6275731a0a8
|
refs/heads/master
| 2020-06-25T07:32:54.932397
| 2017-07-13T10:54:56
| 2017-07-13T10:54:56
| 96,960,773
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,178
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// 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: 2017.06.29 at 10:40:40 AM CST
//
package hk.judiciary.icmsint.model.sysinf.inf.gdsid2j;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* English Address line version 1.1, carriage return and line feed chars NOT allowed
*
* <p>Java class for EnglishAddressLine.V1.1.CT complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="EnglishAddressLine.V1.1.CT">
* <simpleContent>
* <restriction base="<CCT>Text.CT">
* </restriction>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EnglishAddressLine.V1.1.CT")
public class EnglishAddressLineV11CT
extends TextCT
{
}
|
[
"chiu.cheukman@gmail.com"
] |
chiu.cheukman@gmail.com
|
88142c7a6e51628b7444ad102719fddb7594ece1
|
acc957045cde7d28cebc5cbca8b76f84815a3ed3
|
/mgt-core/src/main/java/com/jbb/mgt/core/domain/FinOrgSalesRelation.java
|
cd8b37591a2b3267fa6494cf960d6a20b2aba55a
|
[] |
no_license
|
zmyuanmy/daichao_yuanmy
|
9b11e9b95d7ddbb0ed2c9cdbd37e35be7381fa60
|
c797b0b7d0b5edacd427885cfda62d2a46ccfd02
|
refs/heads/master
| 2022-10-14T10:37:33.236094
| 2019-08-16T03:51:00
| 2019-08-16T03:51:00
| 202,653,346
| 0
| 2
| null | 2022-10-05T03:25:48
| 2019-08-16T03:39:27
|
Java
|
UTF-8
|
Java
| false
| false
| 2,178
|
java
|
package com.jbb.mgt.core.domain;
import java.sql.Timestamp;
public class FinOrgSalesRelation {
private int orgId;
private int accountId;
private int creator;
private boolean isDeleted;
private Timestamp creationDate;
private int defaultPrice;
private int delegatePrice;
public int getOrgId() {
return orgId;
}
public void setOrgId(int orgId) {
this.orgId = orgId;
}
public int getAccountId() {
return accountId;
}
public void setAccountId(int accountId) {
this.accountId = accountId;
}
public int getCreator() {
return creator;
}
public void setCreator(int creator) {
this.creator = creator;
}
public boolean isDeleted() {
return isDeleted;
}
public void setDeleted(boolean deleted) {
isDeleted = deleted;
}
public Timestamp getCreationDate() {
return creationDate;
}
public void setCreationDate(Timestamp creationDate) {
this.creationDate = creationDate;
}
public int getDefaultPrice() {
return defaultPrice;
}
public void setDefaultPrice(int defaultPrice) {
this.defaultPrice = defaultPrice;
}
public int getDelegatePrice() {
return delegatePrice;
}
public void setDelegatePrice(int delegatePrice) {
this.delegatePrice = delegatePrice;
}
public FinOrgSalesRelation() {
super();
}
public FinOrgSalesRelation(int orgId, int accountId, int creator, boolean isDeleted, Timestamp creationDate,
int defaultPrice, int delegatePrice) {
this.orgId = orgId;
this.accountId = accountId;
this.creator = creator;
this.isDeleted = isDeleted;
this.creationDate = creationDate;
this.defaultPrice = defaultPrice;
this.delegatePrice = delegatePrice;
}
@Override
public String toString() {
return "FinOrgSalesRelation{" + "orgId=" + orgId + ", accountId=" + accountId + ", creator=" + creator
+ ", isDeleted=" + isDeleted + ", creationDate=" + creationDate + ", defaultPrice=" + defaultPrice + '}';
}
}
|
[
"38414723+zmyuanmy@users.noreply.github.com"
] |
38414723+zmyuanmy@users.noreply.github.com
|
ae57d7ce1da59eb0431348836b372f978a55ad4a
|
3d84ab2c3c6f6227c21bb811dc12beb298276c34
|
/cocacolaSRV/src/main/java/com/ko/cds/pojo/admin/site/GetAdminSite.java
|
0041336ec154906af94f4614ec243072e8f919e4
|
[] |
no_license
|
shibajiJava/cokeALL
|
d87e8de8461b6d2c968362d414955a58857cb844
|
f999dea8d7271efebab72b867118535489318483
|
refs/heads/master
| 2020-04-02T12:29:30.747859
| 2018-10-24T04:02:41
| 2018-10-24T04:02:41
| 154,435,979
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 912
|
java
|
package com.ko.cds.pojo.admin.site;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import net.sf.oval.constraint.NotNull;
public class GetAdminSite implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private int siteId;
private String siteName;
private Date insertDate;
private Date updateDate;
public Date getInsertDate() {
return insertDate;
}
public void setInsertDate(Date insertDate) {
this.insertDate = insertDate;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public int getSiteId() {
return siteId;
}
public void setSiteId(int siteId) {
this.siteId = siteId;
}
public String getSiteName() {
return siteName;
}
public void setSiteName(String siteName) {
this.siteName = siteName;
}
}
|
[
"sanyal.shibaji@gmail.com"
] |
sanyal.shibaji@gmail.com
|
69c1677dc45f9381457cb3c81077ef01a400825f
|
0c359e241cce729ce777db41d3a4feefa48c30c0
|
/src/main/java/com/controllerface/cmdr_j/classes/modules/weapons/fragcannon/FixedFragmentCannon_Medium.java
|
3524c5aa786b5d9d06ce175253faf95a83f29893
|
[] |
no_license
|
controllerface/CMDR-J
|
760cafe4b89fc86715ee7941d66eaaf7978cf067
|
9fc70e1ae2f2119e3dc93bbc9a26544526beb56a
|
refs/heads/main
| 2022-09-29T02:43:58.308231
| 2022-09-12T02:09:01
| 2022-09-12T02:09:01
| 128,938,494
| 1
| 1
| null | 2021-11-21T01:42:20
| 2018-04-10T13:37:30
|
Java
|
UTF-8
|
Java
| false
| false
| 2,225
|
java
|
package com.controllerface.cmdr_j.classes.modules.weapons.fragcannon;
import com.controllerface.cmdr_j.classes.data.ItemEffects;
import com.controllerface.cmdr_j.classes.data.ItemEffectData;
import com.controllerface.cmdr_j.enums.equipment.modules.stats.ItemEffect;
public class FixedFragmentCannon_Medium extends AbstractFragCannon
{
public FixedFragmentCannon_Medium()
{
super(new ItemEffects(
new ItemEffectData(ItemEffect.Size, 2.0),
new ItemEffectData(ItemEffect.Class, "A"),
new ItemEffectData(ItemEffect.Mass, 4.0),
new ItemEffectData(ItemEffect.Integrity, 51.0),
new ItemEffectData(ItemEffect.PowerDraw, 0.74),
new ItemEffectData(ItemEffect.DamagePerSecond, 179.1),
new ItemEffectData(ItemEffect.Damage, 2.985),
new ItemEffectData(ItemEffect.DistributorDraw, 0.37),
new ItemEffectData(ItemEffect.ThermalLoad, 0.74),
new ItemEffectData(ItemEffect.ArmourPenetration, 30.0),
new ItemEffectData(ItemEffect.MaximumRange, 2000.0),
new ItemEffectData(ItemEffect.ShotSpeed, 667.0),
new ItemEffectData(ItemEffect.RateOfFire, 5.0),
new ItemEffectData(ItemEffect.BurstRateOfFire, 1.0),
new ItemEffectData(ItemEffect.BurstSize, 1.0),
new ItemEffectData(ItemEffect.AmmoClipSize, 3.0),
new ItemEffectData(ItemEffect.AmmoMaximum, 180.0),
new ItemEffectData(ItemEffect.RoundsPerShot, 12.0),
new ItemEffectData(ItemEffect.ReloadTime, 5.0),
new ItemEffectData(ItemEffect.BreachDamage, 2.7),
new ItemEffectData(ItemEffect.MinBreachChance, 40.0),
new ItemEffectData(ItemEffect.MaxBreachChance, 80.0),
new ItemEffectData(ItemEffect.Jitter, 5.0),
new ItemEffectData(ItemEffect.DamageType, "Kinetic"),
new ItemEffectData(ItemEffect.WeaponMode, "Fixed"),
new ItemEffectData(ItemEffect.DamageFalloffRange, 1800.0)
));
}
@Override
public long price()
{
return 291_840;
}
}
|
[
"controll.face@gmail.com"
] |
controll.face@gmail.com
|
e4339fd9ee68598fb8fe52331927b744a9cdb8f7
|
5d2f845d1e3f08c65dbc0f0bcacfc20247e7445c
|
/rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/dto/ChairService.java
|
2d520aa97cfa3b3e0827951febca119b8407f01d
|
[] |
no_license
|
Freeongoo/spring-examples
|
15cf87912ddeb2a3de294375bbf404451f622e01
|
48ffdf267837f95e67bf1f702812b57647afbf5e
|
refs/heads/master
| 2022-01-28T21:33:53.275548
| 2021-03-29T14:07:20
| 2021-03-29T14:07:20
| 148,529,220
| 17
| 17
| null | 2022-01-21T23:22:14
| 2018-09-12T19:12:31
|
Java
|
UTF-8
|
Java
| false
| false
| 153
|
java
|
package hello.service.dto;
import hello.entity.dto.Chair;
import hello.service.Service;
public interface ChairService extends Service<Chair, Long> {
}
|
[
"freeongoo@gmail.com"
] |
freeongoo@gmail.com
|
8d9011a10b353f1c08c80afc4f2c189dbec03546
|
cfee207a11546907a6436f279a3dd78bac942cc6
|
/app/src/main/java/com/charge/wsq/app/activity/LoginActivity.java
|
bb0e31eae92c85ebd0d052bca816724ffc613780
|
[] |
no_license
|
123wsq/charge
|
5b71f481363d1149ecb4dc4963b8ed9c8836d4b3
|
9fb141ed4b61c1cb40576f7f61f72b9e6d40815a
|
refs/heads/master
| 2020-03-31T08:13:27.576586
| 2018-10-20T01:28:40
| 2018-10-20T01:28:40
| 152,050,380
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 665
|
java
|
package com.charge.wsq.app.activity;
import android.os.Bundle;
import com.charge.wsq.app.R;
import com.charge.wsq.app.base.BaseActivity;
import com.charge.wsq.app.mvp.presenter.BasePresenter;
/**
* 进入该页面首先验证微信是否已经授权登录过 如果则授权登录 如果已经登录过 则直接进入到主页面
*/
public class LoginActivity extends BaseActivity {
@Override
protected BasePresenter createPresenter() {
return null;
}
@Override
protected int getLayoutId() {
return R.layout.layout_activity_login;
}
@Override
protected void initView(Bundle savedInstanceState) {
}
}
|
[
"w1037704496@163.com"
] |
w1037704496@163.com
|
993a76c8bc0ea24c1a0fda9b10b7cd70b3953ada
|
8009fa2efff68fe23391e0002eb3bb7721518a72
|
/tokTales-core/tokTales-core-library/src/main/java/com/tokelon/toktales/core/engine/inject/AssetToolsInjectModule.java
|
4f8f10833394ac05486ec8c38cd056dc61d30d48
|
[
"MIT"
] |
permissive
|
Tokelon/tokTales
|
3bdf2c08d71d8a81d417971dddff404c3ea89b54
|
c72c67519af57cc28a0699766083559a0731ba4c
|
refs/heads/master
| 2022-07-23T20:51:02.780796
| 2021-03-14T16:42:10
| 2021-03-14T16:42:10
| 110,269,279
| 5
| 0
|
MIT
| 2020-12-04T18:32:22
| 2017-11-10T16:39:00
|
Java
|
UTF-8
|
Java
| false
| false
| 1,659
|
java
|
package com.tokelon.toktales.core.engine.inject;
import java.util.concurrent.ExecutorService;
import com.tokelon.toktales.core.content.manage.RecyclableExecutorService;
import com.tokelon.toktales.core.engine.inject.annotation.GlobalExecutorServiceImplementation;
import com.tokelon.toktales.core.engine.inject.scope.GameScoped;
import com.tokelon.toktales.tools.assets.annotation.AssetLoader;
import com.tokelon.toktales.tools.assets.loader.DefaultAssetLoader;
import com.tokelon.toktales.tools.assets.loader.DefaultExecutorServiceProvider;
import com.tokelon.toktales.tools.assets.loader.IAssetLoader;
import com.tokelon.toktales.tools.assets.reader.DefaultAssetReaderManager;
import com.tokelon.toktales.tools.assets.reader.IAssetReaderManager;
public class AssetToolsInjectModule extends AbstractInjectModule {
@Override
protected void configure() {
/*
//bind(IAssetManager.class) // Cannot bind this in a generic way
install(new FactoryModuleBuilder() // If we do this we have to bind store, loader etc.
.implement(IAssetManager.class, DefaultAssetManager.class)
.build(IAssetManagerFactory.class));
*/
bind(IAssetLoader.IAssetLoaderFactory.class).to(DefaultAssetLoader.DefaultAssetLoaderFactory.class);
bind(IAssetReaderManager.class).to(DefaultAssetReaderManager.class);
bind(ExecutorService.class).toProvider(DefaultExecutorServiceProvider.class);
bind(ExecutorService.class).annotatedWith(GlobalExecutorServiceImplementation.class).toProvider(DefaultExecutorServiceProvider.class);
bind(ExecutorService.class).annotatedWith(AssetLoader.class).to(RecyclableExecutorService.class).in(GameScoped.class);
}
}
|
[
"tokelontales@gmail.com"
] |
tokelontales@gmail.com
|
294b7c1c8c4274e86b17a682694a8abea23e10a0
|
e6f149aa5bc647288e47ccc735ba465417eae535
|
/JavaEE/hibernate/hibernate12_single_one_to_one_primary_key/src/demo12/utils/HibernateUtil.java
|
f793ecfe5e996d23658cf4b99dee16c49ae03bd3
|
[] |
no_license
|
foureverhh/PluralSightJavaPath
|
d90495af8431012054f87409621acaba63b1cf19
|
a418bda6638efc640617f1fab4f48602ff54aedb
|
refs/heads/master
| 2022-12-17T22:35:46.862044
| 2020-10-01T07:54:51
| 2020-10-01T07:54:51
| 186,674,112
| 0
| 0
| null | 2022-11-16T01:49:38
| 2019-05-14T18:00:39
|
Java
|
UTF-8
|
Java
| false
| false
| 1,546
|
java
|
package demo12.utils;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
public class HibernateUtil {
private static Configuration cfg = null;
private static ServiceRegistry serviceRegistry = null;
private static SessionFactory factory = null;
private static ThreadLocal<Session> sessionLocal = null;
static {
cfg = new Configuration().configure();
serviceRegistry = new StandardServiceRegistryBuilder()
.applySettings(cfg.getProperties())
.build();
//sessionFactory是一个重量级对象,在一个应用中只需一个就好,是一个进程级别的变量,操作完不要释放掉,即不要close
//session是线程级别的
//factory = cfg.buildSessionFactory(serviceRegistry);
factory = cfg.buildSessionFactory();
sessionLocal = new ThreadLocal<>();
}
public static Session getSession(){
if(sessionLocal.get()!=null && !sessionLocal.get().isOpen()){
sessionLocal.set(null);
}
if(sessionLocal.get() == null){
sessionLocal.set( factory.openSession());
}
return sessionLocal.get();
}
public static void closeSession(){
if(sessionLocal.get()!=null){
sessionLocal.get().close();
}
sessionLocal.set(null);
}
}
|
[
"foureverhh@Yuanhengs-Air.localdomain"
] |
foureverhh@Yuanhengs-Air.localdomain
|
08477f1caf4d87a193eb376e045bb79f50f6c541
|
383e578ec8ac3043ddece8223494f27f4a4c76dd
|
/legend.biz/src/main/java/com/tqmall/legend/facade/report/GrossProfitsFacade.java
|
4a1e48b25df25b3de0c688876d33440687cc1ae0
|
[] |
no_license
|
xie-summer/legend
|
0018ee61f9e864204382cd202fe595b63d58343a
|
7e7bb14d209e03445a098b84cf63566702e07f15
|
refs/heads/master
| 2021-06-19T13:44:58.640870
| 2017-05-18T08:34:13
| 2017-05-18T08:34:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 600
|
java
|
package com.tqmall.legend.facade.report;
import com.tqmall.legend.facade.report.bo.GrossProfitsBo;
import com.tqmall.legend.facade.report.bo.GrossProfitsSummaryBo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
/**
* @Author 辉辉大侠
* @Date 2017-04-13 5:58 PM
* @Motto 一生伏首拜阳明
*/
public interface GrossProfitsFacade {
Page<GrossProfitsBo> getGrossProfitsList(Long shopId, String startDate, String endDate, Pageable page);
GrossProfitsSummaryBo getGrossProfitsSummary(Long shopId, String startDate, String endDate);
}
|
[
"zhangting.huang@tqmall.com"
] |
zhangting.huang@tqmall.com
|
476e26a5be844936c4c8828ed831c496cdfb0d6e
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-14122-31-22-FEMO-WeightedSum:TestLen:CallDiversity/org/xwiki/extension/xar/internal/handler/packager/Packager_ESTest.java
|
db856ead9036ecb26be5c996c94148ecce192cc0
|
[] |
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
| 572
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sun Apr 05 12:13:49 UTC 2020
*/
package org.xwiki.extension.xar.internal.handler.packager;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class Packager_ESTest extends Packager_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
124612a40d040e661fe9a16f093d24b6f6a25ae8
|
527b3ed30401c38335c00ee8a50541aae79a277a
|
/ftgo-delivery-service/src/main/java/net/chrisrichardson/ftgo/deliveryservice/domain/DeliveryService.java
|
968e18413d649ec8d088e47416ff613fd48d9d00
|
[
"Apache-2.0"
] |
permissive
|
dartartem/ftgo-application
|
933bfeca693049bc8a59059a03c8fa4094d510ed
|
55cd590532b41deb179d2e0e572c976515e57b78
|
refs/heads/master
| 2023-05-08T20:12:49.975601
| 2020-02-18T04:47:24
| 2020-02-18T04:47:24
| 110,103,023
| 0
| 0
| null | 2017-11-09T10:47:11
| 2017-11-09T10:47:11
| null |
UTF-8
|
Java
| false
| false
| 4,414
|
java
|
package net.chrisrichardson.ftgo.deliveryservice.domain;
import net.chrisrichardson.ftgo.common.Address;
import net.chrisrichardson.ftgo.deliveryservice.api.web.ActionInfo;
import net.chrisrichardson.ftgo.deliveryservice.api.web.DeliveryInfo;
import net.chrisrichardson.ftgo.deliveryservice.api.web.DeliveryStatus;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.transaction.annotation.Transactional;
import java.time.LocalDateTime;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.Random;
import java.util.stream.Collectors;
public class DeliveryService {
private RestaurantRepository restaurantRepository;
private DeliveryRepository deliveryRepository;
private CourierRepository courierRepository;
private Random random = new Random();
public DeliveryService(RestaurantRepository restaurantRepository, DeliveryRepository deliveryRepository, CourierRepository courierRepository) {
this.restaurantRepository = restaurantRepository;
this.deliveryRepository = deliveryRepository;
this.courierRepository = courierRepository;
}
public void createRestaurant(long restaurantId, String restaurantName, Address address) {
restaurantRepository.save(Restaurant.create(restaurantId, restaurantName, address));
}
public void createDelivery(long orderId, long restaurantId, Address deliveryAddress) {
Restaurant restaurant = restaurantRepository.findById(restaurantId).get();
deliveryRepository.save(Delivery.create(orderId, restaurantId, restaurant.getAddress(), deliveryAddress));
}
public void scheduleDelivery(long orderId, LocalDateTime readyBy) {
Delivery delivery = deliveryRepository.findById(orderId).get();
// Stupid implementation
List<Courier> couriers = courierRepository.findAllAvailable();
Courier courier = couriers.get(random.nextInt(couriers.size()));
courier.addAction(Action.makePickup(delivery.getId(), delivery.getPickupAddress(), readyBy));
courier.addAction(Action.makeDropoff(delivery.getId(), delivery.getDeliveryAddress(), readyBy.plusMinutes(30)));
delivery.schedule(readyBy, courier.getId());
}
public void cancelDelivery(long orderId) {
Delivery delivery = deliveryRepository.findById(orderId).get();
Long assignedCourierId = delivery.getAssignedCourier();
delivery.cancel();
if (assignedCourierId != null) {
Courier courier = courierRepository.findById(assignedCourierId).get();
courier.cancelDelivery(delivery.getId());
}
}
// notePickedUp
// noteDelivered
// noteLocation
void noteAvailable(long courierId) {
courierRepository.findOrCreateCourier(courierId).noteAvailable();
}
void noteUnavailable(long courierId) {
courierRepository.findOrCreateCourier(courierId).noteUnavailable();
}
private Courier findOrCreateCourier(long courierId) {
Courier courier = Courier.create(courierId);
try {
return courierRepository.save(courier);
} catch (DuplicateKeyException e) {
return courierRepository.findById(courierId).get();
}
}
@Transactional
public void updateAvailability(long courierId, boolean available) {
if (available)
noteAvailable(courierId);
else
noteUnavailable(courierId);
}
// getCourierRoute()
@Transactional
public Optional<DeliveryStatus> getDeliveryInfo(long deliveryId) {
return deliveryRepository.findById(deliveryId).map(delivery -> {
Long assignedCourier = delivery.getAssignedCourier();
List<Action> courierActions = Collections.EMPTY_LIST;
if (assignedCourier != null) {
Courier courier = courierRepository.findById(assignedCourier).get();
courierActions = courier.actionsForDelivery(deliveryId);
}
return makeDeliveryStatus(delivery, assignedCourier, courierActions);
});
}
private DeliveryStatus makeDeliveryStatus(Delivery delivery, Long assignedCourier, List<Action> courierActions) {
return new DeliveryStatus(makeDeliveryInfo(delivery), assignedCourier, courierActions.stream().map(action -> makeActionInfo(action)).collect(Collectors.toList()));
}
private DeliveryInfo makeDeliveryInfo(Delivery delivery) {
return new DeliveryInfo(delivery.getId(), delivery.getState().name());
}
private ActionInfo makeActionInfo(Action action) {
return new ActionInfo(action.getType().name());
}
}
|
[
"chris@chrisrichardson.net"
] |
chris@chrisrichardson.net
|
29646ebea15674bb1609490bddb1eb0527cf1258
|
55645fa0f88a4b351d977d4962034fa347186e4f
|
/core/sorcer-dl/src/main/java/sorcer/service/modeling/fi.java
|
471a8548d806d5210b5250e1cf9cbce8582d1319
|
[
"Apache-2.0"
] |
permissive
|
mwsobol/SORCER-multiFi
|
33dc7f7a313e1c7d7120a8c8daa1c85c821ab487
|
6fc08b170c9f3a203fcc5461cdb1774993204c3b
|
refs/heads/master
| 2023-07-09T11:16:20.779700
| 2023-06-30T04:38:39
| 2023-06-30T04:38:39
| 203,447,813
| 4
| 43
|
Apache-2.0
| 2022-01-29T18:13:11
| 2019-08-20T20:14:59
|
Java
|
UTF-8
|
Java
| false
| false
| 174
|
java
|
package sorcer.service.modeling;
import sorcer.service.Arg;
import sorcer.service.Fi;
import sorcer.service.Service;
public interface fi<T> extends Service, Fi<T>, Arg {
}
|
[
"sobol@sorcersoft.org"
] |
sobol@sorcersoft.org
|
2d52ac55a181585df3bbb62ac193082f58b69f1e
|
a3e14333fee1218a3071452f4960e098bd19d4f8
|
/chap07/src/chap07/veify/no07/SnowTire.java
|
8891be5378d9a46a2ff1fc33e0a044c53bcab18b
|
[] |
no_license
|
newkayak12/newkayak_javastart
|
cd4f550f619a9e250c540911bf39138d76e14f17
|
788f87deede52bd8ab95c06e61f38cf4795d73ca
|
refs/heads/master
| 2023-08-25T03:54:02.443339
| 2021-10-19T10:03:54
| 2021-10-19T10:03:54
| 318,547,565
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 152
|
java
|
package chap07.veify.no07;
public class SnowTire extends Tire {
@Override
public void run() {
System.out.println("Snow Tire roll over");
}
}
|
[
"newkayak12@gmail.com"
] |
newkayak12@gmail.com
|
b4862fc18e263b61bd71eb455b981802cfaf28e0
|
73858300b5e04e531738161cbac1f6f4c1f9c5fd
|
/src/main/java/com/example/designmode/company/strategy/section3/Calculator.java
|
a252227f963536da53ed9677093ffa2ebcb1a03b
|
[] |
no_license
|
175272511/spring-boot-demo
|
37099c8f36133b02bbfb9f48fe20fc21db75aa9d
|
548c74f4671ea9af8351a6ce8be3936ba6378ee4
|
refs/heads/master
| 2023-04-29T09:13:24.603325
| 2021-09-08T08:44:55
| 2021-09-08T08:44:55
| 50,085,429
| 0
| 1
| null | 2023-04-16T23:59:37
| 2016-01-21T05:51:48
|
Java
|
UTF-8
|
Java
| false
| false
| 648
|
java
|
package com.example.designmode.company.strategy.section3;
/**
* @author cbf4Life cbf4life@126.com
* I'm glad to share my knowledge with you all.
*/
public class Calculator {
//加符号
private final static String ADD_SYMBOL = "+";
//减符号
private final static String SUB_SYMBOL = "-";
public int exec(int a,int b,String symbol){
int result =0;
if(symbol.equals(ADD_SYMBOL)){
result = this.add(a, b);
}else if(symbol.equals(SUB_SYMBOL)){
result = this.sub(a, b);
}
return result;
}
//加法运算
private int add(int a,int b){
return a+b;
}
//减法运算
private int sub(int a,int b){
return a-b;
}
}
|
[
"liuhui3@meilele.com"
] |
liuhui3@meilele.com
|
c694c41fd294cb9ace496de4d19eb5177cd1ee6f
|
18c10aa1261bea4ae02fa79598446df714519c6f
|
/70_spring/27_SpringMVC_SearchCondition/src/main/java/com/spring/biz/view/board/BoardController.java
|
1c97ba105b7c6096e83d7338c8d61d89d8dc4b07
|
[] |
no_license
|
giveseul-23/give_Today_I_Learn
|
3077efbcb11ae4632f68dfa3f9285d2c2ad27359
|
f5599f0573fbf0ffdfbcc9c79b468e3c76303dd4
|
refs/heads/master
| 2023-05-06T08:13:49.845436
| 2021-05-25T04:33:20
| 2021-05-25T04:33:20
| 330,189,867
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,660
|
java
|
package com.spring.biz.view.board;
import java.util.List;
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.RequestParam;
import org.springframework.web.servlet.ModelAndView;
import com.spring.biz.board.BoardVO;
import com.spring.biz.board.impl.BoardDAO;
@Controller
public class BoardController {
/*
@RequestParam(value="searchCondition")
String condition
어노테이션에 value 속성 정해주면 파라미터 이름 마음대로 작성해도 괜찮음
required=false
-> 해당 설정이 없는 경우 다른 페이지로 넘어갈 때 404 에러가 남
* Required String parameter 'searchCondition' is not present
* false를 하면 반드시 그 값이 계속 들어와야된다는 에러가 뜨지 않는다.
*/
@RequestMapping("/getBoardList.do")
public String getBoardList(BoardVO vo, BoardDAO boardDAO, Model model) {
System.out.println(">> 게시글 전체목록 보여주기 - getBoardList()");
//검색조건 값이 없을 때 기본값 설정
if(vo.getSearchCondition() == null){
vo.setSearchCondition("TITLE");
}else if(vo.getSearchKeyword() == null){
vo.setSearchCondition("");
}
List<BoardVO> boardList = boardDAO.getBoardList(vo);
model.addAttribute("boardList", boardList);
return "getBoardList.jsp";
}
//리턴타입 ModelAndView -> String
//Model -> view 쪽에서 사용할 수 있도록 데이터를 전달하는 역할을 한다고 보면 됨
@RequestMapping("/getBoard.do")
public String getBoard(Model model, BoardVO vo, BoardDAO boardDAO) {
System.out.println(">> 게시글 상세보기 - String getBoard()");
BoardVO board = boardDAO.getBoard(vo);
model.addAttribute("board", board);
return "getBoard.jsp";
}
@RequestMapping("/insertBoard.do")
public String insertBoard(BoardVO vo, BoardDAO boardDAO) {
System.out.println(">> 게시글 입력처리 - insertBoard()");
boardDAO.insertBoard(vo);
return "getBoardList.do";
}
@RequestMapping("/updateBoard.do")
public String UpdateBoard( BoardVO vo, BoardDAO dao) {
System.out.println(">> 게시글 수정처리 - UpdateBoard()");
dao.updateBoard(vo);
return "getBoardList.do";
}
@RequestMapping("/deleteBoard.do")
public String DeleteBoard( BoardVO vo, BoardDAO dao) {
System.out.println(">> 게시글 삭제처리 - DeleteBoard()");
dao.deleteBoard(vo);
return "getBoardList.do";
}
}
|
[
"joodasel@icloud.com"
] |
joodasel@icloud.com
|
70800f78c720654c09fffc62cd887dcfe32445e9
|
a91c1012c7b0057e81a4bd0c701f760d7f9f48ce
|
/src/polyglot/util/ErrorQueue.java
|
1ad9ee8f39a4822dc9fe12a33dfb690535f2c81c
|
[] |
no_license
|
pl-eco/CSNewDesign
|
20dfaa37157ee5e36c6dda35beafda048d6dc5c9
|
e92e7ed4a3d157d73c79de24b1520af28609f3d5
|
refs/heads/master
| 2021-01-18T14:22:40.497953
| 2014-08-26T04:58:08
| 2014-08-26T04:58:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,527
|
java
|
/*******************************************************************************
* This file is part of the Polyglot extensible compiler framework.
*
* Copyright (c) 2000-2008 Polyglot project group, Cornell University
* Copyright (c) 2006-2008 IBM Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* This program and the accompanying materials are made available under
* the terms of the Lesser GNU Public License v2.0 which accompanies this
* distribution.
*
* The development of the Polyglot project has been supported by a
* number of funding sources, including DARPA Contract F30602-99-1-0533,
* monitored by USAF Rome Laboratory, ONR Grant N00014-01-1-0968, NSF
* Grants CNS-0208642, CNS-0430161, and CCF-0133302, an Alfred P. Sloan
* Research Fellowship, and an Intel Research Ph.D. Fellowship.
*
* See README for contributors.
******************************************************************************/
package polyglot.util;
/**
* A <code>ErrorQueue</code> handles outputing error messages.
*/
public interface ErrorQueue {
public void enqueue(int type, String message);
public void enqueue(int type, String message, Position position);
public void enqueue(ErrorInfo e);
public void flush();
public boolean hasErrors();
public int errorCount();
}
|
[
"Zhuht.dm@gmail.com"
] |
Zhuht.dm@gmail.com
|
9b3b035580626bff58bc2937001e7cda9b4473f1
|
38b42aa714e2489714dd02f45d9fa88665257f5f
|
/logs/src/main/java/com/jdcloud/sdk/service/logs/model/SearchLogContextResponse.java
|
11185f140e5a88b781a13e8d0315bf9f734fb43b
|
[
"Apache-2.0"
] |
permissive
|
Tanc009/jdcloud-sdk-java
|
6de6c2cb521d5946de08b9503baa37f859f89848
|
12181e43d1396218e79639dbee387852c85b93b2
|
refs/heads/master
| 2021-08-09T01:17:14.569048
| 2021-06-25T02:51:24
| 2021-06-25T02:51:24
| 130,201,324
| 0
| 0
|
Apache-2.0
| 2018-04-19T10:48:05
| 2018-04-19T10:48:05
| null |
UTF-8
|
Java
| false
| false
| 1,067
|
java
|
/*
* Copyright 2018 JDCLOUD.COM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:#www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* LogSearch APIs
* 日志搜索接口
*
* OpenAPI spec version: v1
* Contact:
*
* NOTE: This class is auto generated by the jdcloud code generator program.
*/
package com.jdcloud.sdk.service.logs.model;
import com.jdcloud.sdk.service.JdcloudResponse;
/**
* 搜索日志上下文
*/
public class SearchLogContextResponse extends JdcloudResponse<SearchLogContextResult> implements java.io.Serializable {
private static final long serialVersionUID = 1L;
}
|
[
"tancong@jd.com"
] |
tancong@jd.com
|
97eb355569c34458f50dd9e7dd83438b89fa836d
|
60c87e28ffb644c45501a20c779077000c77b640
|
/src/main/java/org/jeecgframework/core/annotation/config/AutoMenuOperation.java
|
a59b05f43bb20406302a4ae40375c1775c9964eb
|
[] |
no_license
|
chenzhenguo/nx
|
3fa76e5e05f7425882382cdfbb1816e2e485f38b
|
cf19205ea35a7718bc0b71b370b330353df5d956
|
refs/heads/master
| 2021-07-22T02:23:45.199383
| 2017-11-01T13:21:51
| 2017-11-01T13:21:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 570
|
java
|
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package org.jeecgframework.core.annotation.config;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface AutoMenuOperation {
String name();
String code();
MenuCodeType codeType() default MenuCodeType.TAG;
String icon() default "";
int status() default 0;
}
|
[
"liufeng45gh@163.com"
] |
liufeng45gh@163.com
|
122d7428a9d190fd351ad15bf5fcb52ade0b606f
|
5252a00843c6082d739d7a00142525fff0a2f3e7
|
/zhuyi-parking/zhuyi-parking-modules/zhuyi-parking-ucc/zhuyi-parking-ucc-api-java/src/main/java/com/zhuyitech/parking/ucc/dto/request/visitlog/VisitLogDeleteRequestDto.java
|
2c9f7e7c30262e3ed9ecc91d466db790d2b72a0e
|
[] |
no_license
|
P79N6A/parking
|
be8dc0ae6394096ec49faa89521d723425a5c965
|
6e3ea14312edc7487f725f2df315de989eaabb10
|
refs/heads/master
| 2020-05-07T22:07:03.790311
| 2019-04-12T03:06:26
| 2019-04-12T03:06:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 500
|
java
|
package com.zhuyitech.parking.ucc.dto.request.visitlog;
import com.scapegoat.infrastructure.core.dto.result.EntityDto;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 删除登录日志请求参数
*
* @author walkman
*/
@ApiModel(description = "删除登录日志请求参数")
@Data
@EqualsAndHashCode(callSuper = true)
public class VisitLogDeleteRequestDto extends EntityDto<Long> {
private static final long serialVersionUID = 1L;
}
|
[
"xuqinghuo@126.com"
] |
xuqinghuo@126.com
|
1d258c1785092f535e50d179d3e6ec1b20fff1a6
|
7b73756ba240202ea92f8f0c5c51c8343c0efa5f
|
/classes5/tencent/im/oidb/cmd0x51c/oidb_0x51c.java
|
1fabff87369b915f69fb245c23802b74e735ab3f
|
[] |
no_license
|
meeidol-luo/qooq
|
588a4ca6d8ad579b28dec66ec8084399fb0991ef
|
e723920ac555e99d5325b1d4024552383713c28d
|
refs/heads/master
| 2020-03-27T03:16:06.616300
| 2016-10-08T07:33:58
| 2016-10-08T07:33:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 380
|
java
|
package tencent.im.oidb.cmd0x51c;
import com.tencent.mobileqq.hotpatch.NotVerifyClass;
public final class oidb_0x51c
{
private oidb_0x51c()
{
boolean bool = NotVerifyClass.DO_VERIFY_CLASS;
}
}
/* Location: E:\apk\QQ_91\classes5-dex2jar.jar!\tencent\im\oidb\cmd0x51c\oidb_0x51c.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
513eae3182ad112040f05788174c2030511eefca
|
6ef4869c6bc2ce2e77b422242e347819f6a5f665
|
/devices/google/Pixel 2/29/QPP6.190730.005/src/core-oj/sun/security/provider/certpath/PKIXCertPathValidator.java
|
d3a50e90ba0fbfabbe5e2c83e467268af463a4a8
|
[] |
no_license
|
hacking-android/frameworks
|
40e40396bb2edacccabf8a920fa5722b021fb060
|
943f0b4d46f72532a419fb6171e40d1c93984c8e
|
refs/heads/master
| 2020-07-03T19:32:28.876703
| 2019-08-13T03:31:06
| 2019-08-13T03:31:06
| 202,017,534
| 2
| 0
| null | 2019-08-13T03:33:19
| 2019-08-12T22:19:30
|
Java
|
UTF-8
|
Java
| false
| false
| 7,627
|
java
|
/*
* Decompiled with CFR 0.145.
*/
package sun.security.provider.certpath;
import java.io.IOException;
import java.security.InvalidAlgorithmParameterException;
import java.security.PublicKey;
import java.security.cert.CertPath;
import java.security.cert.CertPathChecker;
import java.security.cert.CertPathParameters;
import java.security.cert.CertPathValidatorException;
import java.security.cert.CertPathValidatorResult;
import java.security.cert.CertPathValidatorSpi;
import java.security.cert.CertSelector;
import java.security.cert.Certificate;
import java.security.cert.CertificateException;
import java.security.cert.PKIXCertPathChecker;
import java.security.cert.PKIXCertPathValidatorResult;
import java.security.cert.PKIXReason;
import java.security.cert.PKIXRevocationChecker;
import java.security.cert.PolicyNode;
import java.security.cert.PolicyQualifierInfo;
import java.security.cert.TrustAnchor;
import java.security.cert.X509CertSelector;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import javax.security.auth.x500.X500Principal;
import sun.security.provider.certpath.AdaptableX509CertSelector;
import sun.security.provider.certpath.AlgorithmChecker;
import sun.security.provider.certpath.BasicChecker;
import sun.security.provider.certpath.ConstraintsChecker;
import sun.security.provider.certpath.KeyChecker;
import sun.security.provider.certpath.PKIX;
import sun.security.provider.certpath.PKIXMasterCertPathValidator;
import sun.security.provider.certpath.PolicyChecker;
import sun.security.provider.certpath.PolicyNodeImpl;
import sun.security.provider.certpath.RevocationChecker;
import sun.security.util.Debug;
import sun.security.x509.AuthorityKeyIdentifierExtension;
import sun.security.x509.X509CertImpl;
public final class PKIXCertPathValidator
extends CertPathValidatorSpi {
private static final Debug debug = Debug.getInstance("certpath");
private static PKIXCertPathValidatorResult validate(TrustAnchor trustAnchor, PKIX.ValidatorParams validatorParams) throws CertPathValidatorException {
int n = validatorParams.certificates().size();
ArrayList<PKIXCertPathChecker> arrayList = new ArrayList<PKIXCertPathChecker>();
arrayList.add(new AlgorithmChecker(trustAnchor));
arrayList.add(new KeyChecker(n, validatorParams.targetCertConstraints()));
arrayList.add(new ConstraintsChecker(n));
Object object = new PolicyNodeImpl(null, "2.5.29.32.0", null, false, Collections.singleton("2.5.29.32.0"), false);
PolicyChecker policyChecker = new PolicyChecker(validatorParams.initialPolicies(), n, validatorParams.explicitPolicyRequired(), validatorParams.policyMappingInhibited(), validatorParams.anyPolicyInhibited(), validatorParams.policyQualifiersRejected(), (PolicyNodeImpl)object);
arrayList.add(policyChecker);
BasicChecker basicChecker = new BasicChecker(trustAnchor, validatorParams.date(), validatorParams.sigProvider(), false);
arrayList.add(basicChecker);
int n2 = 0;
object = validatorParams.certPathCheckers();
Iterator iterator = object.iterator();
while (iterator.hasNext()) {
PKIXCertPathChecker pKIXCertPathChecker = (PKIXCertPathChecker)iterator.next();
n = n2;
if (pKIXCertPathChecker instanceof PKIXRevocationChecker) {
if (n2 == 0) {
n = n2 = 1;
if (pKIXCertPathChecker instanceof RevocationChecker) {
((RevocationChecker)pKIXCertPathChecker).init(trustAnchor, validatorParams);
n = n2;
}
} else {
throw new CertPathValidatorException("Only one PKIXRevocationChecker can be specified");
}
}
n2 = n;
}
if (validatorParams.revocationEnabled() && n2 == 0) {
arrayList.add(new RevocationChecker(trustAnchor, validatorParams));
}
arrayList.addAll((Collection<PKIXCertPathChecker>)object);
PKIXMasterCertPathValidator.validate(validatorParams.certPath(), validatorParams.certificates(), arrayList);
return new PKIXCertPathValidatorResult(trustAnchor, policyChecker.getPolicyTree(), basicChecker.getPublicKey());
}
private static PKIXCertPathValidatorResult validate(PKIX.ValidatorParams validatorParams) throws CertPathValidatorException {
Object object = debug;
if (object != null) {
((Debug)object).println("PKIXCertPathValidator.engineValidate()...");
}
object = null;
Object object2 = validatorParams.certificates();
if (!object2.isEmpty()) {
object = new AdaptableX509CertSelector();
object2 = object2.get(0);
((X509CertSelector)object).setSubject(((X509Certificate)object2).getIssuerX500Principal());
try {
object2 = X509CertImpl.toImpl((X509Certificate)object2);
((AdaptableX509CertSelector)object).setSkiAndSerialNumber(((X509CertImpl)object2).getAuthorityKeyIdentifierExtension());
}
catch (IOException | CertificateException exception) {
// empty catch block
}
}
object2 = null;
for (TrustAnchor trustAnchor : validatorParams.trustAnchors()) {
X509Certificate x509Certificate = trustAnchor.getTrustedCert();
if (x509Certificate != null) {
if (object != null && !((AdaptableX509CertSelector)object).match(x509Certificate)) {
Debug debug = PKIXCertPathValidator.debug;
if (debug == null) continue;
debug.println("NO - don't try this trustedCert");
continue;
}
object2 = debug;
if (object2 != null) {
((Debug)object2).println("YES - try this trustedCert");
object2 = debug;
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("anchor.getTrustedCert().getSubjectX500Principal() = ");
stringBuilder.append(x509Certificate.getSubjectX500Principal());
((Debug)object2).println(stringBuilder.toString());
}
} else {
object2 = debug;
if (object2 != null) {
((Debug)object2).println("PKIXCertPathValidator.engineValidate(): anchor.getTrustedCert() == null");
}
}
try {
object2 = PKIXCertPathValidator.validate(trustAnchor, validatorParams);
return object2;
}
catch (CertPathValidatorException certPathValidatorException) {
}
}
if (object2 != null) {
throw object2;
}
throw new CertPathValidatorException("Path does not chain with any of the trust anchors", null, null, -1, PKIXReason.NO_TRUST_ANCHOR);
}
@Override
public CertPathChecker engineGetRevocationChecker() {
return new RevocationChecker();
}
@Override
public CertPathValidatorResult engineValidate(CertPath certPath, CertPathParameters certPathParameters) throws CertPathValidatorException, InvalidAlgorithmParameterException {
return PKIXCertPathValidator.validate(PKIX.checkParams(certPath, certPathParameters));
}
}
|
[
"me@paulo.costa.nom.br"
] |
me@paulo.costa.nom.br
|
52e525d3e266ca9ac4d7f0b71fa8829845189de1
|
3cd69da4d40f2d97130b5bf15045ba09c219f1fa
|
/sources/com/google/android/material/transformation/ExpandableTransformationBehavior.java
|
7dd1a67b12055a92d311d2d127eeaf513cdce857
|
[] |
no_license
|
TheWizard91/Album_base_source_from_JADX
|
946ea3a407b4815ac855ce4313b97bd42e8cab41
|
e1d228fc2ee550ac19eeac700254af8b0f96080a
|
refs/heads/master
| 2023-01-09T08:37:22.062350
| 2020-11-11T09:52:40
| 2020-11-11T09:52:40
| 311,927,971
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,788
|
java
|
package com.google.android.material.transformation;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
@Deprecated
public abstract class ExpandableTransformationBehavior extends ExpandableBehavior {
/* access modifiers changed from: private */
public AnimatorSet currentAnimation;
/* access modifiers changed from: protected */
public abstract AnimatorSet onCreateExpandedStateChangeAnimation(View view, View view2, boolean z, boolean z2);
public ExpandableTransformationBehavior() {
}
public ExpandableTransformationBehavior(Context context, AttributeSet attrs) {
super(context, attrs);
}
/* access modifiers changed from: protected */
public boolean onExpandedStateChange(View dependency, View child, boolean expanded, boolean animated) {
AnimatorSet animatorSet = this.currentAnimation;
boolean currentlyAnimating = animatorSet != null;
if (currentlyAnimating) {
animatorSet.cancel();
}
AnimatorSet onCreateExpandedStateChangeAnimation = onCreateExpandedStateChangeAnimation(dependency, child, expanded, currentlyAnimating);
this.currentAnimation = onCreateExpandedStateChangeAnimation;
onCreateExpandedStateChangeAnimation.addListener(new AnimatorListenerAdapter() {
public void onAnimationEnd(Animator animation) {
AnimatorSet unused = ExpandableTransformationBehavior.this.currentAnimation = null;
}
});
this.currentAnimation.start();
if (!animated) {
this.currentAnimation.end();
}
return true;
}
}
|
[
"agiapong@gmail.com"
] |
agiapong@gmail.com
|
45cbfb33f45fc087d48fe6c72b0a0ce9e968c7f0
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-12798-110-7-PESA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/velocity/internal/DefaultVelocityEngine_ESTest_scaffolding.java
|
4cc1781076ed4209c829b2b24f94074add4c7dc0
|
[] |
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
| 453
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri Apr 03 20:11:41 UTC 2020
*/
package org.xwiki.velocity.internal;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class DefaultVelocityEngine_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
d65dc752cef48580c95199723160194ed029a867
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdas/applicationModule/src/test/java/applicationModulepackageJava10/Foo343Test.java
|
3aabe9adfc6aac62b1dbdff8c78c933711b4f388
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 482
|
java
|
package applicationModulepackageJava10;
import org.junit.Test;
public class Foo343Test {
@Test
public void testFoo0() {
new Foo343().foo0();
}
@Test
public void testFoo1() {
new Foo343().foo1();
}
@Test
public void testFoo2() {
new Foo343().foo2();
}
@Test
public void testFoo3() {
new Foo343().foo3();
}
@Test
public void testFoo4() {
new Foo343().foo4();
}
@Test
public void testFoo5() {
new Foo343().foo5();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
e62cd6a4f2ec45a3c0c1f6648ad38a4ff607765e
|
c753cb626a282e973105a090503b61fef92d70da
|
/src/main/java/org/beigesoft/mdl/ECsvClTy.java
|
b51f66d4aa02cefe82ea1d381f0c27a0c55653c3
|
[
"BSD-2-Clause"
] |
permissive
|
demidenko05/beige-blc
|
957f942ece0a7dfca96f5529d6fa1df0624bbe2b
|
b31c672cdc0bc20d03f3415fb99465f9c3828a9a
|
refs/heads/master
| 2023-05-24T23:40:11.613198
| 2021-05-31T13:29:40
| 2021-05-31T13:29:40
| 176,269,715
| 0
| 0
|
BSD-2-Clause
| 2023-05-23T20:13:35
| 2019-03-18T11:32:40
|
Java
|
UTF-8
|
Java
| false
| false
| 1,775
|
java
|
/*
BSD 2-Clause License
Copyright (c) 2019, Beigesoft™
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.beigesoft.mdl;
/**
* <p>CSV column type.</p>
*
* @author Yury Demidenko
*/
public enum ECsvClTy {
/**
* <p>String 0.</p>
**/
STRING,
/**
* <p>Boolean 1.</p>
**/
BOOLEAN,
/**
* <p>Integer 2.</p>
**/
INTEGER,
/**
* <p>Numeric 3 (BigDecimal).</p>
**/
NUMERIC,
/**
* <p>Date 4.</p>
**/
DATE,
/**
* <p>Long 5.</p>
**/
LONG,
/**
* <p>Double 6.</p>
**/
DOUBLE;
}
|
[
"demidenko05@gmail.com"
] |
demidenko05@gmail.com
|
c83255d2453e6031391902f37670545df4fcc7cd
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/JetBrains--intellij-community/e2a86b9040731f92f358a289ebfa1e212a1a69bd/before/VcsLogMultiRepoJoinerTest.java
|
b15ccb5ec35097a839fe039c2f26baa7e01801f6
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 895
|
java
|
package org.hanuna.gitalk.data;
import com.intellij.vcs.log.TimeCommitParents;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static org.hanuna.gitalk.log.parser.CommitParser.log;
import static org.junit.Assert.assertEquals;
/**
* @author Kirill Likhodedov
*/
public class VcsLogMultiRepoJoinerTest {
@Test
public void joinTest() {
List<? extends TimeCommitParents> first = log("6|-a2|-a0", "3|-a1|-a0", "1|-a0|-");
List<? extends TimeCommitParents> second = log("4|-b1|-b0", "2|-b0|-");
List<? extends TimeCommitParents> third = log("7|-c1|-c0", "5|-c0|-");
List<TimeCommitParents> expected = log("7|-c1|-c0", "6|-a2|-a0", "5|-c0|-", "4|-b1|-b0", "3|-a1|-a0", "2|-b0|-", "1|-a0|-");
List<TimeCommitParents> joined = new VcsLogMultiRepoJoiner().join(Arrays.asList(first, second, third));
assertEquals(expected, joined);
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
f33f1f9c244b98bd7c1ed4d096dfb89accba725d
|
03e234eccd1545935583b4a34b2e3efc9128375c
|
/cadi/aaf/src/main/java/com/att/cadi/aaf/cert/AAFListedCertIdentity.java
|
abd8d4c5b36e83e51c271f803382a779e33482c0
|
[
"BSD-3-Clause"
] |
permissive
|
charanm1985/AAF
|
32bda688be0e2534dc9c6c4def21df8c35dd8287
|
090562e956c0035db972aafba844dc6d3fc948ee
|
refs/heads/master
| 2020-05-15T22:34:31.435564
| 2017-10-24T21:19:52
| 2017-10-24T21:19:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,419
|
java
|
/*******************************************************************************
* Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
*******************************************************************************/
package com.att.cadi.aaf.cert;
import java.security.Principal;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Timer;
import java.util.TimerTask;
import java.util.TreeMap;
import javax.servlet.http.HttpServletRequest;
import javax.xml.datatype.XMLGregorianCalendar;
import com.att.cadi.Access;
import com.att.cadi.Access.Level;
import com.att.cadi.Hash;
import com.att.cadi.aaf.v2_0.AAFCon;
import com.att.cadi.client.Future;
import com.att.cadi.config.Config;
import com.att.cadi.principal.X509Principal;
import com.att.cadi.taf.cert.CertIdentity;
import com.att.cadi.taf.cert.X509Taf;
import com.att.inno.env.APIException;
import com.att.inno.env.util.Chrono;
import com.att.inno.env.util.Split;
import aaf.v2_0.Certs;
import aaf.v2_0.Certs.Cert;
import aaf.v2_0.Users;
import aaf.v2_0.Users.User;
public class AAFListedCertIdentity implements CertIdentity {
//TODO should 8 hours be configurable?
private static final long EIGHT_HOURS = 1000*60*60*8;
private static final String AAF_VERSION = "2.0";
private static Map<ByteArrayHolder,String> certs = null;
// Did this to add other Trust Mechanisms
// Trust mechanism set by Property:
private static final String[] authMechanisms = new String[] {"tguard","basicAuth","csp"};
private static String[] certIDs;
private static Map<String,Set<String>> trusted =null;
public AAFListedCertIdentity(Access access, AAFCon<?> aafcon) throws APIException {
synchronized(AAFListedCertIdentity.class) {
if(certIDs==null) {
String cip = access.getProperty(Config.AAF_CERT_IDS, null);
if(cip!=null) {
certIDs = Split.split(',',cip);
}
}
if(certIDs!=null && certs==null) {
TimerTask cu = new CertUpdate(aafcon);
cu.run(); // want this to run in this thread first...
new Timer("AAF Identity Refresh Timer",true).scheduleAtFixedRate(cu, EIGHT_HOURS,EIGHT_HOURS);
}
}
}
public static Set<String> trusted(String authMech) {
return trusted.get(authMech);
}
public Principal identity(HttpServletRequest req, X509Certificate cert, byte[] certBytes) throws CertificateException {
if(cert==null && certBytes==null)return null;
if(certBytes==null)certBytes = cert.getEncoded();
byte[] fingerprint = X509Taf.getFingerPrint(certBytes);
String id = certs.get(new ByteArrayHolder(fingerprint));
if(id!=null) { // Caller is Validated
return new X509Principal(id,cert,certBytes);
}
return null;
}
private static class ByteArrayHolder implements Comparable<ByteArrayHolder> {
private byte[] ba;
public ByteArrayHolder(byte[] ba) {
this.ba = ba;
}
public int compareTo(ByteArrayHolder b) {
return Hash.compareTo(ba, b.ba);
}
}
private class CertUpdate extends TimerTask {
private AAFCon<?> aafcon;
public CertUpdate(AAFCon<?> con) {
aafcon = con;
}
@Override
public void run() {
try {
TreeMap<ByteArrayHolder, String> newCertsMap = new TreeMap<ByteArrayHolder,String>();
Map<String,Set<String>> newTrustMap = new TreeMap<String,Set<String>>();
Set<String> userLookup = new HashSet<String>();
for(String s : certIDs) {
userLookup.add(s);
}
for(String authMech : authMechanisms) {
Future<Users> fusr = aafcon.client(AAF_VERSION).read("/authz/users/perm/com.att.aaf.trust/"+authMech+"/authenticate", Users.class, aafcon.usersDF);
if(fusr.get(5000)) {
List<User> users = fusr.value.getUser();
if(users.isEmpty()) {
aafcon.access.log(Level.WARN, "AAF Lookup-No IDs in Role com.att.aaf.trustForID <> "+authMech);
} else {
aafcon.access.log(Level.INFO,"Loading Trust Authentication Info for",authMech);
Set<String> hsUser = new HashSet<String>();
for(User u : users) {
userLookup.add(u.getId());
hsUser.add(u.getId());
}
newTrustMap.put(authMech,hsUser);
}
} else {
aafcon.access.log(Level.WARN, "Could not get Users in Perm com.att.trust|tguard|authenticate",fusr.code(),fusr.body());
}
}
for(String u : userLookup) {
Future<Certs> fc = aafcon.client(AAF_VERSION).read("/authn/cert/id/"+u, Certs.class, aafcon.certsDF);
XMLGregorianCalendar now = Chrono.timeStamp();
if(fc.get(5000)) {
List<Cert> certs = fc.value.getCert();
if(certs.isEmpty()) {
aafcon.access.log(Level.WARN, "No Cert Associations for",u);
} else {
for(Cert c : fc.value.getCert()) {
XMLGregorianCalendar then =c.getExpires();
if(then !=null && then.compare(now)>0) {
newCertsMap.put(new ByteArrayHolder(c.getFingerprint()), c.getId());
aafcon.access.log(Level.INIT,"Associating "+ c.getId() + " expiring " + Chrono.dateOnlyStamp(c.getExpires()) + " with " + c.getX500());
}
}
}
} else {
aafcon.access.log(Level.WARN, "Could not get Certificates for",u);
}
}
certs = newCertsMap;
trusted = newTrustMap;
} catch(Exception e) {
aafcon.access.log(e, "Failure to update Certificate Identities from AAF");
}
}
}
}
|
[
"sv8675@att.com"
] |
sv8675@att.com
|
db08f7c1f1080c04b83d8ece817a00077f926947
|
17e8438486cb3e3073966ca2c14956d3ba9209ea
|
/dso/tags/4.1.2/toolkit-impl/src/main/java/com/terracotta/toolkit/factory/impl/ToolkitSortedMapFactoryImpl.java
|
5af81283ef87c3ba9953c195ee521b96e5109701
|
[] |
no_license
|
sirinath/Terracotta
|
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
|
00a7662b9cf530dfdb43f2dd821fa559e998c892
|
refs/heads/master
| 2021-01-23T05:41:52.414211
| 2015-07-02T15:21:54
| 2015-07-02T15:21:54
| 38,613,711
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,342
|
java
|
/*
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
*/
package com.terracotta.toolkit.factory.impl;
import org.terracotta.toolkit.ToolkitObjectType;
import org.terracotta.toolkit.config.Configuration;
import org.terracotta.toolkit.internal.ToolkitInternal;
import com.terracotta.toolkit.collections.DestroyableToolkitSortedMap;
import com.terracotta.toolkit.collections.map.ToolkitSortedMapImpl;
import com.terracotta.toolkit.factory.ToolkitFactoryInitializationContext;
import com.terracotta.toolkit.factory.ToolkitObjectFactory;
import com.terracotta.toolkit.roots.impl.ToolkitTypeConstants;
import com.terracotta.toolkit.type.IsolatedClusteredObjectLookup;
import com.terracotta.toolkit.type.IsolatedToolkitTypeFactory;
public class ToolkitSortedMapFactoryImpl extends
AbstractPrimaryToolkitObjectFactory<DestroyableToolkitSortedMap, ToolkitSortedMapImpl> {
private static final SortedMapIsolatedTypeFactory FACTORY = new SortedMapIsolatedTypeFactory();
public ToolkitSortedMapFactoryImpl(ToolkitInternal toolkit, ToolkitFactoryInitializationContext context) {
super(toolkit, context.getToolkitTypeRootsFactory()
.createAggregateIsolatedTypeRoot(ToolkitTypeConstants.TOOLKIT_SORTED_MAP_ROOT_NAME, FACTORY,
context.getPlatformService()));
}
@Override
public ToolkitObjectType getManufacturedToolkitObjectType() {
return ToolkitObjectType.SORTED_MAP;
}
private static class SortedMapIsolatedTypeFactory implements
IsolatedToolkitTypeFactory<DestroyableToolkitSortedMap, ToolkitSortedMapImpl> {
@Override
public DestroyableToolkitSortedMap createIsolatedToolkitType(ToolkitObjectFactory<DestroyableToolkitSortedMap> factory,
IsolatedClusteredObjectLookup<ToolkitSortedMapImpl> lookup,
String name, Configuration config,
ToolkitSortedMapImpl tcClusteredObject) {
return new DestroyableToolkitSortedMap(factory, lookup, tcClusteredObject, name);
}
@Override
public ToolkitSortedMapImpl createTCClusteredObject(Configuration config) {
return new ToolkitSortedMapImpl();
}
}
}
|
[
"cruise@7fc7bbf3-cf45-46d4-be06-341739edd864"
] |
cruise@7fc7bbf3-cf45-46d4-be06-341739edd864
|
0419ef754e3e4213af4063cb6e35f3da152091d7
|
e6b8d584dacebc24c8873ad525a33e85c9fee7c0
|
/DemoBank/DemoBank/src/idss/bank/demo/GMailSender.java
|
96eadb4ea681f9463f92ef605792d41295566a86
|
[] |
no_license
|
raghunandankavi2010/Freelancing
|
3efc243c9d6eb8f41d930d4b60679d3f4f72f722
|
e39396bd41136094af555b9a5510fa3e6d5a70b4
|
refs/heads/master
| 2021-01-12T06:44:30.985001
| 2018-11-21T17:40:36
| 2018-11-21T17:40:36
| 77,430,367
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,864
|
java
|
package idss.bank.demo;
import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.mail.Message;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import android.content.Context;
import android.widget.Toast;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.Security;
import java.util.Properties;
public class GMailSender extends javax.mail.Authenticator {
private String mailhost = "smtp.gmail.com";
private String user;
private String password;
private Session session;
static {
Security.addProvider(new idss.bank.demo.JSSEProvider());
}
public GMailSender(String user, String password) {
this.user = user;
this.password = password;
Properties props = new Properties();
props.setProperty("mail.transport.protocol", "smtp");
props.setProperty("mail.host", mailhost);
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "465");
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.socketFactory.class",
"javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.socketFactory.fallback", "false");
props.setProperty("mail.smtp.quitwait", "false");
session = Session.getDefaultInstance(props, this);
}
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(user, password);
}
public synchronized void sendMail(String subject, String body, String sender, String recipients) throws Exception {
try{
MimeMessage message = new MimeMessage(session);
DataHandler handler = new DataHandler(new ByteArrayDataSource(body.getBytes(), "text/plain"));
message.setSender(new InternetAddress(sender));
message.setSubject(subject);
message.setDataHandler(handler);
if (recipients.indexOf(',') > 0)
message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(recipients));
else
message.setRecipient(Message.RecipientType.TO, new InternetAddress(recipients));
Transport.send(message);
}catch(Exception e){
System.out.println("========Authentication Failed.yPlease check the UserName and Password. Enter Gmail user name and pasword only========");
e.printStackTrace();
}
}
public class ByteArrayDataSource implements DataSource {
private byte[] data;
private String type;
public ByteArrayDataSource(byte[] data, String type) {
super();
this.data = data;
this.type = type;
}
public ByteArrayDataSource(byte[] data) {
super();
this.data = data;
}
public void setType(String type) {
this.type = type;
}
public String getContentType() {
if (type == null)
return "application/octet-stream";
else
return type;
}
public InputStream getInputStream() throws IOException {
return new ByteArrayInputStream(data);
}
public String getName() {
return "ByteArrayDataSource";
}
public OutputStream getOutputStream() throws IOException {
throw new IOException("Not Supported");
}
}
}
|
[
"raghunandankavi2010@gmail.com"
] |
raghunandankavi2010@gmail.com
|
4669705f3f12514f6a2e4a03c01c486439b48618
|
49217bc82ae13c8f2669c9f77f4eff967427494a
|
/src/main/java/com/client/core/formtrigger/model/helper/impl/ClientContactFormTriggerHelper.java
|
c8622b2e32c7763d942c7c88908dcce2dbd42672
|
[
"MIT"
] |
permissive
|
sreehari2797/starter-kit-spring-maven
|
5a18517cc1872f68ebc003f4356aa64f09bed317
|
4a5502a23bfa09eebaa14120f107efc9318a362b
|
refs/heads/master
| 2023-02-06T05:46:29.679937
| 2020-12-29T05:10:08
| 2020-12-29T05:10:08
| 295,730,688
| 0
| 1
|
MIT
| 2020-09-15T13:05:46
| 2020-09-15T13:05:45
| null |
UTF-8
|
Java
| false
| false
| 1,308
|
java
|
package com.client.core.formtrigger.model.helper.impl;
import com.bullhornsdk.data.api.BullhornData;
import com.bullhornsdk.data.model.entity.core.standard.ClientContact;
import com.client.core.base.model.helper.impl.ClientContactTriggerHelper;
import com.client.core.formtrigger.model.form.impl.FormClientContactDto;
import com.client.core.formtrigger.model.helper.FormTriggerHelper;
/**
* Holds and keeps data needed for validations to minimize the number of API calls.
*
* BullhornAPI, FormClientContactDto and updatingUserID are required and therefore set to final.
*
* @author magnus.palm
*
*/
public class ClientContactFormTriggerHelper extends ClientContactTriggerHelper implements FormTriggerHelper<FormClientContactDto, ClientContact> {
private final FormClientContactDto formClientContactDto;
public ClientContactFormTriggerHelper(FormClientContactDto formClientContactDto, Integer updatingUserID, BullhornData bullhornData) {
super(updatingUserID, bullhornData);
this.formClientContactDto = formClientContactDto;
}
@Override
public ClientContact getNewEntity() {
if (newEntity == null) {
setNewEntity(formClientContactDto.instantiateEntity());
}
return newEntity;
}
@Override
public FormClientContactDto getFormValues() {
return formClientContactDto;
}
}
|
[
"john.sullivan@bullhorn.com"
] |
john.sullivan@bullhorn.com
|
3bec0efa465d2a8bff2ec2378eaecece14c200bc
|
caa125234a3c3e8fff496a9d4e11f49ac7701309
|
/main/java/com/maywide/biz/market/pojo/GridTreeInfo.java
|
9cf12777429f723bb79185e59885f92ddd6db43a
|
[] |
no_license
|
lisongkang/my-first-project-for-revcocomcmms
|
1885f49fa1a7ef8686c3d8b7d9b5a50585bb3b8d
|
6079a3d9d24bd44ae3af24dc603846d460910f3b
|
refs/heads/master
| 2022-05-01T16:34:20.261009
| 2022-04-18T13:55:04
| 2022-04-18T13:55:04
| 207,246,589
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,471
|
java
|
package com.maywide.biz.market.pojo;
import com.maywide.biz.cons.BizConstant;
/**
* <p>
* 网格树对象
* <p>
* Create at 2015年9月21日
*
* @author pengjianqiang
*/
public class GridTreeInfo {
private Long id;
private String gridcode;
private String name;
private Long gtype; // 0-管理网格;1-小区网格;2-地址网格
private Long previd;
private Long statid;
private String city;
private String iconSkin; // ztree图标css
private boolean isHidden; // ztree节点是否隐藏(网格树配置功能不需要处理该属性,全部都显示)
public GridTreeInfo() {
}
public GridTreeInfo(Long id, String gridcode, String name, Long gtype, Long previd, Long statid,String city) {
this.id = id;
this.gridcode = gridcode;
this.name = name;
this.gtype = gtype;
this.previd = previd;
this.statid = statid;
this.city = city;
int gtypeInt = gtype.intValue();
this.iconSkin = BizConstant.GridType.GRID_TYPE_SKINS[gtypeInt];
if (gtypeInt == BizConstant.GridType.PATCH_GRID) {
this.isHidden = true;
} else {
this.isHidden = false;
}
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getGridcode() {
return gridcode;
}
public void setGridcode(String gridcode) {
this.gridcode = gridcode;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Long getGtype() {
return gtype;
}
public void setGtype(Long gtype) {
this.gtype = gtype;
}
public Long getPrevid() {
return previd;
}
public void setPrevid(Long previd) {
this.previd = previd;
}
public Long getStatid() {
return statid;
}
public void setStatid(Long statid) {
this.statid = statid;
}
public String getIconSkin() {
return iconSkin;
}
public void setIconSkin(String iconSkin) {
this.iconSkin = iconSkin;
}
public boolean getIsHidden() {
return isHidden;
}
public void setIsHidden(boolean isHidden) {
this.isHidden = isHidden;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
}
|
[
"1223128449@qq.com"
] |
1223128449@qq.com
|
2ffb6d44af332dcb33fc5e6b0b4ead4894e32cbf
|
f458dc768b285e2c36d873c8fc8d790aadbd5743
|
/entity/src/main/java/com/alonelaval/cornerstone/entity/biz/Role.java
|
701c6c3a2c9e5a4b8f3ddaea18f6002c9998a6d8
|
[] |
no_license
|
miraclehjt/cornerstone
|
faaf3601eec6c0602c8a05613e83e95bc4a7af90
|
e9c6d0b77aefa6cfd12813013fa3136741872a0c
|
refs/heads/master
| 2022-12-27T08:45:35.384218
| 2020-04-09T04:31:06
| 2020-04-09T04:31:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,736
|
java
|
package com.alonelaval.cornerstone.entity.biz;
import com.alonelaval.cornerstone.entity.base.AbstractEntity;
import com.alonelaval.cornerstone.entity.constants.RoleCreateType;
import com.alonelaval.cornerstone.entity.constants.RoleOwnType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
/**
* @author huawei
* @create 2018-07-09
**/
@Entity
@Table(name = "tb_role")
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor()
public class Role extends AbstractEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "role_id")
private Integer roleId;
@Basic
@Column(name = "role_name")
private String roleName;
@Basic
@Column(name = "role_desc")
private String roleDesc;
@Column(name = "role_code")
private String roleCode;
@Column(name = "org_id")
private Integer orgId;
@Column(name = "org_name")
private String orgName;
@Basic
@Column(name = "add_user_id")
private Integer addUserId;
@Basic
@Column(name = "add_employ_id")
private Integer addEmployId;
@Basic
@Column(name = "from_role_id")
private Integer fromRoleId;
@Basic
@Column(name = "add_user_name")
private String addUserName;
@Basic
@Column(name = "own_type")
@Enumerated
private RoleOwnType ownType;
@Basic
@Column(name = "create_type")
@Enumerated
private RoleCreateType createType;
@Override
@Transient
protected String getEntityId() {
return this.roleId.toString();
}
@Override
protected void setEntityId(String id) {
this.roleId = Integer.parseInt(id);
}
}
|
[
"huawei@bit-s.cn"
] |
huawei@bit-s.cn
|
d1b574518ffcddba29060b3c113867a213f1714b
|
82c395683275096b5ed4fe8c493fe041e7bfa982
|
/bonaparte-core-test/src/test/java/testcases/very/compact/TestWithIds.java
|
428a4986c820ff2dff1527921ed387d564c8f4a0
|
[
"Apache-2.0"
] |
permissive
|
yovannyr/bonaparte-java
|
b3c4ffc9866b0dc8beef3adc8cabd67f2105344e
|
9684264b1613336ef51cf1bfe718d5fe0e605754
|
refs/heads/master
| 2021-01-15T09:43:23.809578
| 2016-04-02T14:56:57
| 2016-04-02T14:56:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,559
|
java
|
package testcases.very.compact;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.Test;
import de.jpaw.bonaparte.core.BonaPortable;
import de.jpaw.bonaparte.core.CompactByteArrayComposer;
import de.jpaw.bonaparte.core.CompactByteArrayParser;
import de.jpaw.bonaparte.pojos.very.compact.withIds.Complex;
import de.jpaw.bonaparte.pojos.very.compact.withIds.Vector;
import de.jpaw.bonaparte.scanner.BClassScanner;
import de.jpaw.util.ByteUtil;
public class TestWithIds {
@BeforeSuite
public void registerClasses() {
BClassScanner.init();
}
@Test
public void testCompactWithIds() throws Exception {
Complex x = new Complex("AA", 65535);
Complex yAndZ = new Complex("aa", 170*256+170);
Vector org = new Vector(x, yAndZ, yAndZ);
CompactByteArrayComposer cbac = new CompactByteArrayComposer(1000, true);
cbac.writeRecord(org);
System.out.println("Length with CompactByteArrayComposer (ID) is " + cbac.getBuilder().length());
// dump the bytes
byte [] data = cbac.getBuilder().getBytes();
System.out.println(ByteUtil.dump(data, 100));
assert(data.length == 24); // outer object per PQON, first two complex components as base object, last as repeated.
// parse the result
CompactByteArrayParser cbap = new CompactByteArrayParser(data, 0, data.length);
BonaPortable copy = cbap.readRecord();
assert(copy != null);
assert(copy instanceof Vector);
assert(org.equals(copy));
}
}
|
[
"jpaw@online.de"
] |
jpaw@online.de
|
b417cb9af853adcb4ae9dfa53571e8107d205087
|
6253283b67c01a0d7395e38aeeea65e06f62504b
|
/decompile/app/Gallery2/src/main/java/com/huawei/watermark/manager/parse/unit/decidebytime/logic/WMDecideByTimeLogicWithTable.java
|
43ae4a7d9a86d1fb3b777f4ea230210c7e7a4b16
|
[] |
no_license
|
sufadi/decompile-hw
|
2e0457a0a7ade103908a6a41757923a791248215
|
4c3efd95f3e997b44dd4ceec506de6164192eca3
|
refs/heads/master
| 2023-03-15T15:56:03.968086
| 2017-11-08T03:29:10
| 2017-11-08T03:29:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,309
|
java
|
package com.huawei.watermark.manager.parse.unit.decidebytime.logic;
import com.huawei.watermark.wmutil.WMCollectionUtil;
import java.util.Vector;
public class WMDecideByTimeLogicWithTable implements WMDecideByTimeBaseLogic {
public Vector<TimeToValue> mTimeToValues = new Vector();
public static class TimeToValue {
int end_hour;
int start_hour;
String value;
public TimeToValue(int startH, int endH, String v) {
this.start_hour = startH;
this.end_hour = endH;
this.value = v;
}
}
public void addTimeToValueElement(TimeToValue value) {
this.mTimeToValues.add(value);
}
public String getValueWithHour(int hour) {
return getValueByTime(new long[]{(long) hour});
}
public String getValueByTime(long[] time) {
if (WMCollectionUtil.isEmptyCollection(this.mTimeToValues)) {
return null;
}
String res = null;
for (int i = 0; i < this.mTimeToValues.size(); i++) {
TimeToValue temp = (TimeToValue) this.mTimeToValues.elementAt(i);
if (((long) temp.start_hour) <= time[0] && ((long) temp.end_hour) > time[0]) {
res = temp.value;
break;
}
}
return res;
}
}
|
[
"liming@droi.com"
] |
liming@droi.com
|
9c02afa3f3437d51a53550d36cf4f85f608dc683
|
eb5f5353f49ee558e497e5caded1f60f32f536b5
|
/java/io/FileSystem.java
|
726b02fb8d93d9201c3c7f0513d8f82f925ab5f1
|
[] |
no_license
|
mohitrajvardhan17/java1.8.0_151
|
6fc53e15354d88b53bd248c260c954807d612118
|
6eeab0c0fd20be34db653f4778f8828068c50c92
|
refs/heads/master
| 2020-03-18T09:44:14.769133
| 2018-05-23T14:28:24
| 2018-05-23T14:28:24
| 134,578,186
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,783
|
java
|
package java.io;
abstract class FileSystem
{
public static final int BA_EXISTS = 1;
public static final int BA_REGULAR = 2;
public static final int BA_DIRECTORY = 4;
public static final int BA_HIDDEN = 8;
public static final int ACCESS_READ = 4;
public static final int ACCESS_WRITE = 2;
public static final int ACCESS_EXECUTE = 1;
public static final int SPACE_TOTAL = 0;
public static final int SPACE_FREE = 1;
public static final int SPACE_USABLE = 2;
static boolean useCanonCaches = getBooleanProperty("sun.io.useCanonCaches", useCanonCaches);
static boolean useCanonPrefixCache = getBooleanProperty("sun.io.useCanonPrefixCache", useCanonPrefixCache);
FileSystem() {}
public abstract char getSeparator();
public abstract char getPathSeparator();
public abstract String normalize(String paramString);
public abstract int prefixLength(String paramString);
public abstract String resolve(String paramString1, String paramString2);
public abstract String getDefaultParent();
public abstract String fromURIPath(String paramString);
public abstract boolean isAbsolute(File paramFile);
public abstract String resolve(File paramFile);
public abstract String canonicalize(String paramString)
throws IOException;
public abstract int getBooleanAttributes(File paramFile);
public abstract boolean checkAccess(File paramFile, int paramInt);
public abstract boolean setPermission(File paramFile, int paramInt, boolean paramBoolean1, boolean paramBoolean2);
public abstract long getLastModifiedTime(File paramFile);
public abstract long getLength(File paramFile);
public abstract boolean createFileExclusively(String paramString)
throws IOException;
public abstract boolean delete(File paramFile);
public abstract String[] list(File paramFile);
public abstract boolean createDirectory(File paramFile);
public abstract boolean rename(File paramFile1, File paramFile2);
public abstract boolean setLastModifiedTime(File paramFile, long paramLong);
public abstract boolean setReadOnly(File paramFile);
public abstract File[] listRoots();
public abstract long getSpace(File paramFile, int paramInt);
public abstract int compare(File paramFile1, File paramFile2);
public abstract int hashCode(File paramFile);
private static boolean getBooleanProperty(String paramString, boolean paramBoolean)
{
String str = System.getProperty(paramString);
if (str == null) {
return paramBoolean;
}
return str.equalsIgnoreCase("true");
}
}
/* Location: C:\Program Files (x86)\Java\jre1.8.0_151\lib\rt.jar!\java\io\FileSystem.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 0.7.1
*/
|
[
"mohit.rajvardhan@ericsson.com"
] |
mohit.rajvardhan@ericsson.com
|
3b09293573d5bd667cf9e8f67a672adba712a487
|
b19b3a02b548220023d7266bc6a85a25518f3319
|
/back/leetcode/page1/SymmetricTree.java
|
7317b07856edb6f8e26608e61c9ca34d068729ba
|
[] |
no_license
|
yangseungin/algo
|
40ab28734cf23515bf34fcc1da8f9ba169f54f8f
|
03c96b21a79425988dc76e842f940e9e642ac1d5
|
refs/heads/master
| 2022-05-08T07:54:26.087728
| 2022-04-01T15:03:45
| 2022-04-01T15:03:45
| 177,534,719
| 1
| 1
| null | 2019-04-07T10:50:53
| 2019-03-25T07:20:12
|
Java
|
UTF-8
|
Java
| false
| false
| 1,091
|
java
|
package page1;
public class SymmetricTree {
public static void main(String[] args) {
TreeNode root = new TreeNode(1, new TreeNode(2, new TreeNode(3), new TreeNode(4)), new TreeNode(2, new TreeNode(4), new TreeNode(3)));
System.out.println(isSymmetric(root));
}
public static boolean isSymmetric(TreeNode root) {
if (root == null) {
return true;
}
return isSymmetric(root.left, root.right);
}
public static boolean isSymmetric(TreeNode left, TreeNode right) {
if (left == null || right == null) {
return left == right;
}
if (left.val != right.val) {
return false;
}
return isSymmetric(left.left, right.right) && isSymmetric(left.right, right.left);
}
}
class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode() {
}
TreeNode(int val) {
this.val = val;
}
TreeNode(int val, TreeNode left, TreeNode right) {
this.val = val;
this.left = left;
this.right = right;
}
}
|
[
"rhfpdk92@naver.com"
] |
rhfpdk92@naver.com
|
da795a9274af9566308830696c83aa37bd402ddb
|
e1b1ce58fb1277b724022933176f0809169682d9
|
/sources/fr/pcsoft/wdjava/ui/dialogue/C0883q.java
|
3b266402b4443a76ac258bd3dabc8e2abc3d7e44
|
[] |
no_license
|
MR-116/com.masociete.projet_mobile-1_source_from_JADX
|
a5949c814f0f77437f74b7111ea9dca17140f2ea
|
6cd80095cd68cb9392e6e067f26993ab2bf08bb2
|
refs/heads/master
| 2020-04-11T15:00:54.967026
| 2018-12-15T06:33:57
| 2018-12-15T06:33:57
| 161,873,466
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 677
|
java
|
package fr.pcsoft.wdjava.ui.dialogue;
import fr.pcsoft.wdjava.ui.champs.fenetre.C0508h;
import java.io.File;
/* renamed from: fr.pcsoft.wdjava.ui.dialogue.q */
public abstract class C0883q {
/* renamed from: a */
public abstract C1385n mo3183a(C0508h c0508h, String str, String str2, String str3, String str4);
/* renamed from: a */
public abstract C1385n mo3184a(File file, File file2);
/* renamed from: a */
public abstract C1385n mo3185a(String str, String str2, String str3, String str4, String str5, int i);
/* renamed from: b */
public abstract C1385n mo3186b(String str, String str2, String str3, String str4, String str5, int i);
}
|
[
"Entrepreneursmalaysia1@gmail.com"
] |
Entrepreneursmalaysia1@gmail.com
|
281fd0a9aee37d5e0733ac577e7e1c68d3a360c3
|
09649412e12bdc15cf61607e881203735cfafa50
|
/proxies/com/microsoft/bingads/v10/bulk/ArrayOfAdApiError.java
|
a71d1436de44fc77d11cdc0147710db83b0157b2
|
[
"MIT"
] |
permissive
|
yosefarr/BingAds-Java-SDK
|
cec603b74a921e71c6173ce112caccdf7c1fdbc8
|
d1c333d0ba5b7e434c85a92c7a80dad0add0d634
|
refs/heads/master
| 2021-01-18T15:02:53.945816
| 2016-03-06T13:18:32
| 2016-03-06T13:18:32
| 51,738,651
| 0
| 1
| null | 2016-02-15T07:38:14
| 2016-02-15T07:38:13
| null |
UTF-8
|
Java
| false
| false
| 1,977
|
java
|
package com.microsoft.bingads.v10.bulk;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ArrayOfAdApiError complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ArrayOfAdApiError">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="AdApiError" type="{https://adapi.microsoft.com}AdApiError" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfAdApiError", namespace = "https://adapi.microsoft.com", propOrder = {
"adApiErrors"
})
public class ArrayOfAdApiError {
@XmlElement(name = "AdApiError", nillable = true)
protected List<AdApiError> adApiErrors;
/**
* Gets the value of the adApiErrors property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the adApiErrors property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAdApiErrors().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AdApiError }
*
*
*/
public List<AdApiError> getAdApiErrors() {
if (adApiErrors == null) {
adApiErrors = new ArrayList<AdApiError>();
}
return this.adApiErrors;
}
}
|
[
"jiaj@microsoft.com"
] |
jiaj@microsoft.com
|
19d323b63e85db05177cd0845c4aa00a81614b3d
|
01b23223426a1eb84d4f875e1a6f76857d5e8cd9
|
/icefaces3/scratchpads/ICE-8654/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/tree/TreeReorderBean.java
|
4a17a0856cffae51be87fcecb11743ba133427e6
|
[
"Apache-2.0"
] |
permissive
|
numbnet/icesoft
|
8416ac7e5501d45791a8cd7806c2ae17305cdbb9
|
2f7106b27a2b3109d73faf85d873ad922774aeae
|
refs/heads/master
| 2021-01-11T04:56:52.145182
| 2016-11-04T16:43:45
| 2016-11-04T16:43:45
| 72,894,498
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,079
|
java
|
package org.icefaces.samples.showcase.example.ace.tree;
import org.icefaces.ace.model.tree.NodeState;
import org.icefaces.ace.model.tree.NodeStateCreationCallback;
import org.icefaces.samples.showcase.metadata.annotation.ComponentExample;
import org.icefaces.samples.showcase.metadata.annotation.ExampleResource;
import org.icefaces.samples.showcase.metadata.annotation.ExampleResources;
import org.icefaces.samples.showcase.metadata.annotation.ResourceType;
import org.icefaces.samples.showcase.metadata.context.ComponentExampleImpl;
import javax.annotation.PostConstruct;
import javax.faces.bean.CustomScoped;
import javax.faces.bean.ManagedBean;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Copyright 2010-2011 ICEsoft Technologies Canada Corp.
* <p/>
* 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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* 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.
* <p/>
* See the License for the specific language governing permissions and
* limitations under the License.
* <p/>
* User: Nils
* Date: 2012-09-25
* Time: 1:26 PM
*/
@ComponentExample(
parent = TreeBean.BEAN_NAME,
title = "example.ace.tree.reorder.title",
description = "example.ace.tree.reorder.description",
example = "/resources/examples/ace/tree/treeReorder.xhtml"
)
@ExampleResources(
resources ={
// xhtml
@ExampleResource(type = ResourceType.xhtml,
title="treeReorder.xhtml",
resource = "/resources/examples/ace/tree/treeReorder.xhtml"),
// Java Source
@ExampleResource(type = ResourceType.java,
title="TreeReorderBean.java",
resource = "/WEB-INF/classes/org/icefaces/samples/showcase"+
"/example/ace/tree/TreeReorderBean.java")
}
)
@ManagedBean(name= TreeReorderBean.BEAN_NAME)
@CustomScoped(value = "#{window}")
public class TreeReorderBean extends ComponentExampleImpl<TreeReorderBean> implements Serializable {
public static final String BEAN_NAME = "treeReorderBean";
public TreeReorderBean() {
super(TreeReorderBean.class);
}
@PostConstruct
public void initMetaData() {
super.initMetaData();
}
private List<LocationNodeImpl> treeRoots = new ArrayList<LocationNodeImpl>(Arrays.asList(TreeDataFactory.getTreeRoots()));
private NodeStateCreationCallback expandAllInit = new ExpandAllNodeInitCallback();
public List<LocationNodeImpl> getTreeRoots() {
return treeRoots;
}
public NodeStateCreationCallback getExpandAllInit() {
return expandAllInit;
}
}
|
[
"ken.fyten@8668f098-c06c-11db-ba21-f49e70c34f74"
] |
ken.fyten@8668f098-c06c-11db-ba21-f49e70c34f74
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.