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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26ec1edf56934143472a170cf8d3165baecd5929
|
601582228575ca0d5f61b4c211fd37f9e4e2564c
|
/logisoft_revision1/src/com/logiware/edi/tracking/EdiTrackingSystemBC.java
|
5fb250e506d5224cf51c982d53d974f909de4a74
|
[] |
no_license
|
omkarziletech/StrutsCode
|
3ce7c36877f5934168b0b4830cf0bb25aac6bb3d
|
c9745c81f4ec0169bf7ca455b8854b162d6eea5b
|
refs/heads/master
| 2021-01-11T08:48:58.174554
| 2016-12-17T10:45:19
| 2016-12-17T10:45:19
| 76,713,903
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,016
|
java
|
package com.logiware.edi.tracking;
import com.gp.cong.common.DateUtils;
import com.gp.cong.logisoft.util.EdiUtil;
import com.gp.cong.struts.LoadLogisoftProperties;
import java.io.File;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
public class EdiTrackingSystemBC {
EdiTrackingSystemDAO logFileEdiDAO = new EdiTrackingSystemDAO();
public String getEdiList(String drNumber)throws Exception{
String status =logFileEdiDAO.findDrNumberStatus(drNumber);
return status;
}
public void setEdiLog(String filename,String processedDate,String status,String description,String ediCompany,String messageType,String drNumber)throws Exception{
EdiTrackingSystem logFileEdi = new EdiTrackingSystem();
logFileEdi.setFilename(null != filename?filename:"");
logFileEdi.setProcessedDate(null != processedDate?processedDate:"");
logFileEdi.setStatus(null != status?status:"");
logFileEdi.setDescription(null != description?description:"");
logFileEdi.setEdiCompany(null != ediCompany?ediCompany:"");
logFileEdi.setMessageType(null != messageType?messageType:"");
logFileEdi.setDrnumber(null != drNumber?drNumber:"");
logFileEdiDAO.saveLogFileEdi(logFileEdi);
}
public void setShipmentStatusLog(String filename,String processedDate,String status,String description,String ediCompany,String messageType,String drNumber,String trackingStatus)throws Exception{
EdiTrackingSystem logFileEdi = new EdiTrackingSystem();
logFileEdi.setFilename(null != filename?filename:"");
logFileEdi.setProcessedDate(null != processedDate?processedDate:"");
logFileEdi.setStatus(null != status?status:"");
logFileEdi.setDescription(null != description?description:"");
logFileEdi.setEdiCompany(null != ediCompany?ediCompany:"");
logFileEdi.setMessageType(null != messageType?messageType:"");
logFileEdi.setDrnumber(null != drNumber?drNumber:"");
logFileEdi.setDrnumber(null != drNumber?drNumber:"");
logFileEdi.setTrackingStatus(null != trackingStatus?trackingStatus:"");
logFileEdiDAO.saveLogFileEdi(logFileEdi);
}
public String exportEdiTracking(EdiTrackingSystemForm ediTrackingForm) throws Exception {
List ediFileList = new ArrayList();
DateFormat dateFormat = new SimpleDateFormat("dd-MMM-yyyy");
String fromDate = ediTrackingForm.getFromDate();
String toDate = ediTrackingForm.getToDate();
String fromDateStr="";
String toDateStr="";
if(null != fromDate && null != toDate){
fromDateStr = DateUtils.formatDate(dateFormat.parse(fromDate), "yyyyMMdd");
toDateStr = DateUtils.formatDate(dateFormat.parse(toDate), "yyyyMMdd");
}
List<EdiSystemBean> ediAckList = new ArrayList<EdiSystemBean>();
ediFileList=logFileEdiDAO.findAllEdi(ediTrackingForm.getDrNumber(), ediTrackingForm.getMessageType(),
ediTrackingForm.getEdiCompany(),ediTrackingForm.getPlaceOfReceipt(),ediTrackingForm.getPlaceOfDelivery(),
ediTrackingForm.getPortOfLoad(),ediTrackingForm.getPortOfDischarge(),ediTrackingForm.getBookingNo(),
fromDateStr,toDateStr);
ediAckList = new EdiUtil().getEdiTrackingBeanList(ediFileList);
String fileName = "EdiTracking.xls";
String folderPath = LoadLogisoftProperties.getProperty("reportLocation");
File file = new File(folderPath);
if (!file.exists()) {
file.mkdir();
}
String excelFilePath = LoadLogisoftProperties.getProperty("reportLocation") + "/" + fileName;
new ExportEdiTrackingToExcel().exportToExcel(excelFilePath, ediAckList);
return excelFilePath;
}
}
|
[
"[email protected]"
] | |
24faedf916c1471ebf9607b4cf3533b8ce7038a8
|
ac418b6663b6cd52af7a6c54de64e3feb1521d39
|
/src/main/java/demo/sicau/datamanagementplatform/entity/POJO/VO/ResultVO.java
|
31cc49b731eea056f14daaa6342ea50a27bd3efc
|
[
"MIT"
] |
permissive
|
urgelcx/data-management-platform
|
1fc7db09a4716437cb0383a162da14019a0c68f7
|
15667d409d4ab4b4b5cd8d471db2fac1fc12bb6e
|
refs/heads/master
| 2022-04-02T07:40:22.333454
| 2019-06-15T14:52:31
| 2019-06-15T14:52:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 953
|
java
|
package demo.sicau.datamanagementplatform.entity.POJO.VO;
/**
* @Author beifengtz
* @Site www.beifengtz.com
* @Date Created in 18:10 2018/10/30
* @Description:
*/
public class ResultVO {
private int status;
private String msg;
private Object data;
public ResultVO() {
}
public ResultVO(Integer status, String msg, Object data) {
this.status = status;
this.msg = msg;
this.data = data;
}
public ResultVO(Integer status, String msg) {
this.status = status;
this.msg = msg;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
}
|
[
"[email protected]"
] | |
59d10970cc270770de4947dfc698a2a56484f223
|
8350af19ec48687f4669475fa0403a2f340bf748
|
/legacy/TyrLib2/src/com/tyrlib2/graphics/compositors/DoFComposit.java
|
39c9c7632449bf8e30d0a61d13c766be3eda7d9e
|
[
"MIT"
] |
permissive
|
TyrfingX/TyrLib
|
cba252f507be5f0670e4b9bac79cf0f7e8d4ddae
|
f08e34f8cd9cc5514ba5297b5f69c692f8832099
|
refs/heads/master
| 2021-06-05T10:36:23.620234
| 2017-08-27T22:24:48
| 2017-08-27T22:24:48
| 5,216,810
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,724
|
java
|
package com.tyrlib2.graphics.compositors;
import com.tyrlib2.graphics.renderer.ProgramManager;
import com.tyrlib2.graphics.renderer.TyrGL;
import com.tyrlib2.graphics.scene.SceneManager;
import com.tyrlib2.main.Media;
public class DoFComposit extends Composit {
private int depthTextureHandle;
private int textureWidthHandle;
private int textureHeightHandle;
public DoFComposit() {
ProgramManager.getInstance().createProgram(
"DOF",
Media.CONTEXT.getResourceID("postprocessing_vs", "raw"),
Media.CONTEXT.getResourceID("dof_fs", "raw"),
new String[]{"a_Position"}
);
int countBuffers = 1;
String[] shaders = { "DOF" };
init(new int[countBuffers], new int[countBuffers], new int[countBuffers], new int[countBuffers], shaders, "bgl_RenderedTexture");
depthTextureHandle = TyrGL.glGetUniformLocation(this.shaders[0].handle, "bgl_DepthTexture");
textureWidthHandle = TyrGL.glGetUniformLocation(this.shaders[0].handle, "bgl_RenderedTextureWidth");
textureHeightHandle = TyrGL.glGetUniformLocation(this.shaders[0].handle, "bgl_RenderedTextureHeight");
widths[0] = SceneManager.getInstance().getViewportWidth();
heights[0] = SceneManager.getInstance().getViewportHeight();
}
@Override
public void compose(int srcTexture) {
TyrGL.glActiveTexture(TyrGL.GL_TEXTURE0);
TyrGL.glBindTexture(TyrGL.GL_TEXTURE_2D, srcTexture);
TyrGL.glUniform1i(uTextureHandle[shaders.length-1], 0);
TyrGL.glActiveTexture(TyrGL.GL_TEXTURE1);
TyrGL.glBindTexture(TyrGL.GL_TEXTURE_2D, depthTexture);
TyrGL.glUniform1i(depthTextureHandle, 1);
TyrGL.glUniform1f(textureWidthHandle, widths[0]);
TyrGL.glUniform1f(textureHeightHandle, heights[0]);
quad.render();
}
}
|
[
"[email protected]"
] | |
27eda4cb48a5e61a9108738b368b1565169e9287
|
bddb35c6f69712cbacfc5a6700c36e125ebcdba1
|
/src/main/java/interviews/test/Demo.java
|
e9d99062c90ed6eef32c58771920cf212d2f6dc2
|
[] |
no_license
|
wushaohao/DailyDetails
|
97624dee0d731b47e1db2e7192e9f1eb2544b8c1
|
14abf1572351e282dad659f6e09f9c601aafc5e4
|
refs/heads/master
| 2022-10-30T15:47:27.950088
| 2022-10-08T06:38:15
| 2022-10-08T06:38:15
| 119,624,059
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 248
|
java
|
package interviews.test;
/**
* @author:wuhao
* @description:测试
* @date:2020/5/9
*/
public class Demo {
public static void main(String[] args) {
int x = 4;
System.out.println("value is" + ((x > 4) ? 99.9 : 9));
}
}
|
[
"[email protected]"
] | |
2245062786169d446679090cdfb3e235e1586087
|
b74ced03fae6fbe125c980d3de5f85feee7ace87
|
/src/com/yidao/jdbc/designpattern/visitor/UserVIP.java
|
9574b653f1d32eb192744b63e4ac7c0c3c6e58cd
|
[] |
no_license
|
hanks7/JavaWebLearn
|
f1749734d2bac9fd658c0841a1ccb7c81e0aedd6
|
808582fe3bc7d98b3eb0b6a843aadbf15947b4b2
|
refs/heads/master
| 2021-07-06T01:00:10.694566
| 2020-09-10T02:32:36
| 2020-09-10T02:32:36
| 166,959,565
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 329
|
java
|
package com.yidao.jdbc.designpattern.visitor;
//VIP用户,具体元素
public class UserVIP implements User{
String estimation;
public UserVIP(String estimation){
this.estimation = estimation;
}
@Override
public void accept(Visitor visitor) {
visitor.visit(this);
}
String getEstimation(){
return estimation;
}
}
|
[
"[email protected]"
] | |
af2b41c9b3ee1e89f16de9f3534574a21f2ece40
|
9d32980f5989cd4c55cea498af5d6a413e08b7a2
|
/A92s_10_0_0/src/main/java/android/hardware/display/WifiDisplayStatus.java
|
54dba5a8ff28240a3ed6674c9ab9f7872952d711
|
[] |
no_license
|
liuhaosource/OppoFramework
|
e7cc3bcd16958f809eec624b9921043cde30c831
|
ebe39acabf5eae49f5f991c5ce677d62b683f1b6
|
refs/heads/master
| 2023-06-03T23:06:17.572407
| 2020-11-30T08:40:07
| 2020-11-30T08:40:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,848
|
java
|
package android.hardware.display;
import android.annotation.UnsupportedAppUsage;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.Arrays;
public final class WifiDisplayStatus implements Parcelable {
public static final Parcelable.Creator<WifiDisplayStatus> CREATOR = new Parcelable.Creator<WifiDisplayStatus>() {
/* class android.hardware.display.WifiDisplayStatus.AnonymousClass1 */
@Override // android.os.Parcelable.Creator
public WifiDisplayStatus createFromParcel(Parcel in) {
WifiDisplay activeDisplay;
int featureState = in.readInt();
int scanState = in.readInt();
int activeDisplayState = in.readInt();
if (in.readInt() != 0) {
activeDisplay = WifiDisplay.CREATOR.createFromParcel(in);
} else {
activeDisplay = null;
}
WifiDisplay[] displays = WifiDisplay.CREATOR.newArray(in.readInt());
for (int i = 0; i < displays.length; i++) {
displays[i] = WifiDisplay.CREATOR.createFromParcel(in);
}
return new WifiDisplayStatus(featureState, scanState, activeDisplayState, activeDisplay, displays, WifiDisplaySessionInfo.CREATOR.createFromParcel(in));
}
@Override // android.os.Parcelable.Creator
public WifiDisplayStatus[] newArray(int size) {
return new WifiDisplayStatus[size];
}
};
@UnsupportedAppUsage
public static final int DISPLAY_STATE_CONNECTED = 2;
@UnsupportedAppUsage
public static final int DISPLAY_STATE_CONNECTING = 1;
@UnsupportedAppUsage
public static final int DISPLAY_STATE_NOT_CONNECTED = 0;
public static final int FEATURE_STATE_DISABLED = 1;
public static final int FEATURE_STATE_OFF = 2;
@UnsupportedAppUsage
public static final int FEATURE_STATE_ON = 3;
public static final int FEATURE_STATE_UNAVAILABLE = 0;
@UnsupportedAppUsage
public static final int SCAN_STATE_NOT_SCANNING = 0;
public static final int SCAN_STATE_SCANNING = 1;
@UnsupportedAppUsage
private final WifiDisplay mActiveDisplay;
private final int mActiveDisplayState;
@UnsupportedAppUsage
private final WifiDisplay[] mDisplays;
private final int mFeatureState;
private final int mScanState;
private final WifiDisplaySessionInfo mSessionInfo;
public WifiDisplayStatus() {
this(0, 0, 0, null, WifiDisplay.EMPTY_ARRAY, null);
}
public WifiDisplayStatus(int featureState, int scanState, int activeDisplayState, WifiDisplay activeDisplay, WifiDisplay[] displays, WifiDisplaySessionInfo sessionInfo) {
if (displays != null) {
this.mFeatureState = featureState;
this.mScanState = scanState;
this.mActiveDisplayState = activeDisplayState;
this.mActiveDisplay = activeDisplay;
this.mDisplays = displays;
this.mSessionInfo = sessionInfo != null ? sessionInfo : new WifiDisplaySessionInfo();
return;
}
throw new IllegalArgumentException("displays must not be null");
}
@UnsupportedAppUsage
public int getFeatureState() {
return this.mFeatureState;
}
@UnsupportedAppUsage
public int getScanState() {
return this.mScanState;
}
@UnsupportedAppUsage
public int getActiveDisplayState() {
return this.mActiveDisplayState;
}
@UnsupportedAppUsage
public WifiDisplay getActiveDisplay() {
return this.mActiveDisplay;
}
@UnsupportedAppUsage
public WifiDisplay[] getDisplays() {
return this.mDisplays;
}
public WifiDisplaySessionInfo getSessionInfo() {
return this.mSessionInfo;
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.mFeatureState);
dest.writeInt(this.mScanState);
dest.writeInt(this.mActiveDisplayState);
if (this.mActiveDisplay != null) {
dest.writeInt(1);
this.mActiveDisplay.writeToParcel(dest, flags);
} else {
dest.writeInt(0);
}
dest.writeInt(this.mDisplays.length);
for (WifiDisplay display : this.mDisplays) {
display.writeToParcel(dest, flags);
}
this.mSessionInfo.writeToParcel(dest, flags);
}
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
public String toString() {
return "WifiDisplayStatus{featureState=" + this.mFeatureState + ", scanState=" + this.mScanState + ", activeDisplayState=" + this.mActiveDisplayState + ", activeDisplay=" + this.mActiveDisplay + ", displays=" + Arrays.toString(this.mDisplays) + ", sessionInfo=" + this.mSessionInfo + "}";
}
}
|
[
"[email protected]"
] | |
b9a0e476ad3a3906dac3d2a026e0c319eb50c693
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project2/src/main/java/org/gradle/test/performance2_3/Production2_216.java
|
2b6c69e6c75c93c9cf73be9b0f6cabe34ea6d2ef
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 300
|
java
|
package org.gradle.test.performance2_3;
public class Production2_216 extends org.gradle.test.performance1_3.Production1_216 {
private final String property;
public Production2_216() {
this.property = "foo";
}
public String getProperty() {
return property;
}
}
|
[
"[email protected]"
] | |
9440b034a2a4eec9ea08d3cdbe049dc8fe096032
|
dc4abe5cbc40f830725f9a723169e2cc80b0a9d6
|
/src/main/java/com/sgai/property/alm/vo/Slip.java
|
234380d17cd397c9cd5d00fdc6994f1f764a8b28
|
[] |
no_license
|
ppliuzf/sgai-training-property
|
0d49cd4f3556da07277fe45972027ad4b0b85cb9
|
0ce7bdf33ff9c66f254faec70ea7eef9917ecc67
|
refs/heads/master
| 2020-05-27T16:25:57.961955
| 2019-06-03T01:12:51
| 2019-06-03T01:12:51
| 188,697,303
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,783
|
java
|
package com.sgai.property.alm.vo;
import java.math.BigDecimal;
/**
* 花滑/速滑.
*
* @author ppliu
* created in 2019/1/18 13:31
*/
public class Slip {
/** 总能耗(电). */
private BigDecimal totalelec;
/** 总能耗(水). */
private BigDecimal totalWater;
/** 平均温度. */
private BigDecimal averageT;
/** 平均PM2.5. */
private BigDecimal averagePM25;
/** 室内平均湿度. */
private BigDecimal averageH;
/** 室内平均二氧化碳浓度. */
private BigDecimal averageCO2;
/** 制冰机开启量. */
private BigDecimal astOpenNum;
/** 新风机组开启量. */
private BigDecimal atfuOpenNum;
/** 风机盘管. */
private BigDecimal atfcOpenNum;
/** 热转轮机组. */
private BigDecimal hotrunneropenNum;
/** 当日累计能耗(电). */
private BigDecimal totalelecDay;
/** 当日累计能耗(水). */
private BigDecimal totalWaterDay;
/** 空调机组开启量. */
private BigDecimal acOpenNum;
/** 电梯的开启数/总数. */
private BigDecimal elNum;
/** 摄像头的在线/离线数量. */
private BigDecimal vsNum;
public BigDecimal getTotalelec() {
return totalelec;
}
public void setTotalelec(BigDecimal totalelec) {
this.totalelec = totalelec;
}
public BigDecimal getTotalWater() {
return totalWater;
}
public void setTotalWater(BigDecimal totalWater) {
this.totalWater = totalWater;
}
public BigDecimal getAverageT() {
return averageT;
}
public void setAverageT(BigDecimal averageT) {
this.averageT = averageT;
}
public BigDecimal getAveragePM25() {
return averagePM25;
}
public void setAveragePM25(BigDecimal averagePM25) {
this.averagePM25 = averagePM25;
}
public BigDecimal getAverageH() {
return averageH;
}
public void setAverageH(BigDecimal averageH) {
this.averageH = averageH;
}
public BigDecimal getAverageCO2() {
return averageCO2;
}
public void setAverageCO2(BigDecimal averageCO2) {
this.averageCO2 = averageCO2;
}
public BigDecimal getAstOpenNum() {
return astOpenNum;
}
public void setAstOpenNum(BigDecimal astOpenNum) {
this.astOpenNum = astOpenNum;
}
public BigDecimal getAtfuOpenNum() {
return atfuOpenNum;
}
public void setAtfuOpenNum(BigDecimal atfuOpenNum) {
this.atfuOpenNum = atfuOpenNum;
}
public BigDecimal getAtfcOpenNum() {
return atfcOpenNum;
}
public void setAtfcOpenNum(BigDecimal atfcOpenNum) {
this.atfcOpenNum = atfcOpenNum;
}
public BigDecimal getHotrunneropenNum() {
return hotrunneropenNum;
}
public void setHotrunneropenNum(BigDecimal hotrunneropenNum) {
this.hotrunneropenNum = hotrunneropenNum;
}
public BigDecimal getTotalelecDay() {
return totalelecDay;
}
public void setTotalelecDay(BigDecimal totalelecDay) {
this.totalelecDay = totalelecDay;
}
public BigDecimal getTotalWaterDay() {
return totalWaterDay;
}
public void setTotalWaterDay(BigDecimal totalWaterDay) {
this.totalWaterDay = totalWaterDay;
}
public BigDecimal getAcOpenNum() {
return acOpenNum;
}
public void setAcOpenNum(BigDecimal acOpenNum) {
this.acOpenNum = acOpenNum;
}
public BigDecimal getElNum() {
return elNum;
}
public void setElNum(BigDecimal elNum) {
this.elNum = elNum;
}
public BigDecimal getVsNum() {
return vsNum;
}
public void setVsNum(BigDecimal vsNum) {
this.vsNum = vsNum;
}
}
|
[
"[email protected]"
] | |
cb33b60b68b34a444ed04fe5c4357f04d995f35f
|
46de52992a10ae64dbf95bf77a9c33a7a1d73a78
|
/src/main/java/info/novatec/testit/matcher/AlertMatchers.java
|
dbe24076eac7aaaf705c8d0518c5cff231ec3c9e
|
[
"Apache-2.0"
] |
permissive
|
andifalk/webtester-support-security
|
2579e75b192fcd0fe671a90e9fefbbcf47110942
|
ee7057ca0fed9d8dbd004d8d61cf94966e3e86f0
|
refs/heads/master
| 2021-01-11T01:02:05.670090
| 2016-10-10T07:59:25
| 2016-10-10T07:59:25
| 70,464,136
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,471
|
java
|
package info.novatec.testit.matcher;
import org.hamcrest.Description;
import org.hamcrest.Factory;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeMatcher;
import org.zaproxy.clientapi.core.Alert;
import java.util.ArrayList;
import java.util.List;
/**
* Special hamcrest matchers for ZAP alerts.
*/
public final class AlertMatchers {
public static class HighRiskAlertMatcher extends TypeSafeMatcher<Alert> {
@Override
protected boolean matchesSafely ( Alert alert ) {
return Alert.Risk.High == alert.getRisk ();
}
@Override
public void describeTo ( Description description ) {
description.appendText("an alert with a high risk");
}
}
public static class ContainsNoHighRiskAlertMatcher extends TypeSafeMatcher<List<Alert>> {
@Override
protected boolean matchesSafely ( List<Alert> alerts ) {
for ( Alert alert : alerts ) {
if ( Alert.Risk.High == alert.getRisk () ) {
return false;
}
}
return true;
}
@Override
public void describeTo ( Description description ) {
description.appendText("Contains no alert(s) with a high risk");
}
@Override
protected void describeMismatchSafely(List<Alert> alerts, Description mismatchDescription) {
List<String> highRiskAlerts = new ArrayList<> ();
for ( Alert alert : alerts ) {
if ( Alert.Risk.High == alert.getRisk () ) {
highRiskAlerts.add ( String.format ( "%s (%s): %s", alert.getAlert (), alert.getRisk (), alert.getDescription () ) );
}
}
mismatchDescription.appendText("has ").appendValue ( String.join ( ",", highRiskAlerts ) );
}
}
public static class ContainsOnlyMinorRiskAlertMatcher extends TypeSafeMatcher<List<Alert>> {
@Override
protected boolean matchesSafely ( List<Alert> alerts ) {
for ( Alert alert : alerts ) {
if ( Alert.Risk.High == alert.getRisk () || Alert.Risk.Medium == alert.getRisk () ) {
return false;
}
}
return true;
}
@Override
public void describeTo ( Description description ) {
description.appendText("Contains no alert(s) with high or medium risk");
}
@Override
protected void describeMismatchSafely(List<Alert> alerts, Description mismatchDescription) {
List<String> highRiskAlerts = new ArrayList<> ();
for ( Alert alert : alerts ) {
if ( Alert.Risk.High == alert.getRisk () || Alert.Risk.Medium == alert.getRisk () ) {
highRiskAlerts.add ( String.format ( "%s (%s): %s", alert.getAlert (), alert.getRisk (), alert.getDescription () ) );
}
}
mismatchDescription.appendText("has ").appendValue(highRiskAlerts);
}
}
@Factory
public static Matcher<Alert> highRiskAlert() {
return new HighRiskAlertMatcher ();
}
@Factory
public static Matcher<List<Alert>> containsNoHighRiskAlerts() {
return new ContainsNoHighRiskAlertMatcher ();
}
@Factory
public static Matcher<List<Alert>> containsOnlyMinorRiskAlerts() {
return new ContainsOnlyMinorRiskAlertMatcher ();
}
}
|
[
"[email protected]"
] | |
8dd153b86cb7226533649baf3ca3be2ab27261ed
|
3637342fa15a76e676dbfb90e824de331955edb5
|
/2s/user/src/main/java/com/bcgogo/user/model/app/AppVehicleFaultInfoOperateLog.java
|
b39e7c866a16e101a92e7d66c23e4fbf98982e88
|
[] |
no_license
|
BAT6188/bo
|
6147f20832263167101003bea45d33e221d0f534
|
a1d1885aed8cf9522485fd7e1d961746becb99c9
|
refs/heads/master
| 2023-05-31T03:36:26.438083
| 2016-11-03T04:43:05
| 2016-11-03T04:43:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,690
|
java
|
package com.bcgogo.user.model.app;
import com.bcgogo.enums.app.ErrorCodeTreatStatus;
import com.bcgogo.model.LongIdentifier;
import javax.persistence.*;
/**
* Created with IntelliJ IDEA.
* User: XinyuQiu
* Date: 13-11-28
* Time: 上午10:53
*/
@Entity
@Table(name = "app_vehicle_fault_info_operate_log")
public class AppVehicleFaultInfoOperateLog extends LongIdentifier {
private Long appVehicleFaultInfoId;
private String operateUserNo;
private ErrorCodeTreatStatus lastStatus;
private ErrorCodeTreatStatus newStatus;
private Long operateTime;
@Column(name = "app_vehicle_fault_info_id")
public Long getAppVehicleFaultInfoId() {
return appVehicleFaultInfoId;
}
public void setAppVehicleFaultInfoId(Long appVehicleFaultInfoId) {
this.appVehicleFaultInfoId = appVehicleFaultInfoId;
}
@Column(name = "operate_user_no")
public String getOperateUserNo() {
return operateUserNo;
}
public void setOperateUserNo(String operateUserNo) {
this.operateUserNo = operateUserNo;
}
@Column(name = "last_status")
@Enumerated(EnumType.STRING)
public ErrorCodeTreatStatus getLastStatus() {
return lastStatus;
}
public void setLastStatus(ErrorCodeTreatStatus lastStatus) {
this.lastStatus = lastStatus;
}
@Column(name = "new_status")
@Enumerated(EnumType.STRING)
public ErrorCodeTreatStatus getNewStatus() {
return newStatus;
}
public void setNewStatus(ErrorCodeTreatStatus newStatus) {
this.newStatus = newStatus;
}
@Column(name = "operate_time")
public Long getOperateTime() {
return operateTime;
}
public void setOperateTime(Long operateTime) {
this.operateTime = operateTime;
}
}
|
[
"[email protected]"
] | |
113b17848199c553548a2bfdacbb7023fe005f66
|
23de2c10f72a30ade795ac8d4d7923036c575de5
|
/src/com/google/android/gms/tagmanager/bi.java
|
6a8363da8c2c38a0a316025944c1d524badac64f
|
[] |
no_license
|
PARTHIBANMS/com.divmob.doodlebubble
|
a2c179ad9aa762668c69c0302bb17958e895148e
|
4718ee64c5edc9bcfc95861754ad9b876bd7fd5d
|
refs/heads/master
| 2020-06-04T22:30:50.560385
| 2014-07-17T10:39:23
| 2014-07-17T10:39:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 734
|
java
|
package com.google.android.gms.tagmanager;
abstract interface bi
{
public abstract void b(String paramString, Throwable paramThrowable);
public abstract void c(String paramString, Throwable paramThrowable);
public abstract void s(String paramString);
public abstract void setLogLevel(int paramInt);
public abstract void t(String paramString);
public abstract void u(String paramString);
public abstract void v(String paramString);
public abstract void w(String paramString);
}
/* Location: C:\Users\PARTHIBAN\Desktop\source\dex2jar-0.0.9.15\classes_dex2jar.jar
* Qualified Name: com.google.android.gms.tagmanager.bi
* JD-Core Version: 0.7.0.1
*/
|
[
"[email protected]"
] | |
3d2e775226e5c2b7fe20c5683be5824d2206ac5b
|
4810a15f89f4481fa2f600386a73983e48c3fdfe
|
/workspace/java-basic/src/day06/ClassTest.java
|
3b69053f424d89db0e3a7aa83a59852563db0cdb
|
[] |
no_license
|
fship1124/java86
|
54d779e46f8296ce6fb5e38dd58bd5d8ead92d05
|
d116fa70af0829675e281f90fc6baa8128f60cc5
|
refs/heads/master
| 2022-12-08T17:20:16.713751
| 2020-08-20T12:18:30
| 2020-08-20T12:18:30
| 288,993,715
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 502
|
java
|
package day06;
class IceCream {
String name;
int price;
}
public class ClassTest {
public static void main(String[] args) {
IceCream ic1 = new IceCream();
IceCream ic2 = new IceCream();
ic1.name = "홍";
ic1.price = 100;
ic2.name = "김";
ic2.price = 2000;
IceCream ic3 = ic1; // ic1의 주소값을 ic3에 받는다.
ic3.name = "박";
ic3.price = 500;
System.out.println(ic1.price);
System.out.println(ic2.price);
System.out.println(ic3.price);
}
}
|
[
"[email protected]"
] | |
3e60ccc7cf3ee5251664b7bc1e72f1399a9c32cd
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/19/19_0994230632b3bf6595cb411bb783fdc89ccecbf6/Producto/19_0994230632b3bf6595cb411bb783fdc89ccecbf6_Producto_s.java
|
040237ffd92ae22f40750ab4964aabbb7c824ea4
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 4,581
|
java
|
package code.google.com.opengis.gestion;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import code.google.com.opengis.gestionDAO.ProductoDAO;
public class Producto {
private int idprod;
private String nombre;
private String descripcion;
private String nomtarea;
private String dosis;
private String dni;
private int activo;
private ProductoDAO x;
private Boolean correcto;
//CONSTRUCTOR
public Producto(int idprod, String nombre,String descripcion,String nomtarea, String dosis, String dni, int activo) {
this.idprod=idprod;
this.nombre=nombre;
this.descripcion=descripcion;
this.nomtarea=nomtarea;
this.dosis=dosis;
this.dni=dni;
this.activo=activo;
this.correcto = false;
}
// G E T T E R & S E T T E R
//IDPRODUCTO
public int getIdprod() {
return idprod;
}
public void setIdprod(int idprod) {
this.idprod = idprod;
}
//NOMBRE
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
//DESCRIPCION
public String getDescripcion() {
return descripcion;
}
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
//NomTarea
public String getNomtarea() {
return nomtarea;
}
public void setNomtarea(String nomtarea) {
this.nomtarea = nomtarea;
}
//Dosis
public String getDosis() {
return nomtarea;
}
public void setDosis(String dosis) {
this.dosis = dosis;
}
//Dni
public String getDni(){
return dni;
}
public void setDni(String dni){
this.dni=dni;
}
//activo
public int getActivo(){
return activo;
}
public void setActivo(int activo){
this.activo=activo;
}
//Datos correctos
public Boolean getCorrecto(){
return correcto;
}
//Enlazar Producto con ProductoDAO, cadena de metodos.
public void crearProducto() {
ProductoDAO x = new ProductoDAO(this.idprod,this.nombre,this.descripcion,this.nomtarea,this.dosis, this.dni, this.activo);
try {
x.altaProducto();
} catch (SQLException e) {
JOptionPane.showMessageDialog(null,"Error al dar de alta el nuevo producto");
}
}
//modif
public void editarProducto() {
ProductoDAO x = new ProductoDAO(this.idprod,this.nombre,this.descripcion,this.nomtarea,this.dosis, this.dni, this.activo);
try {
x.modificarProducto();
} catch (SQLException e) {
JOptionPane.showMessageDialog(null,"Error al dar de alta el nuevo producto");
}
}
//bajas
/* public void bajasProducto(){
ProductoDAO x = new ProductoDAO(this.idprod,this.nombre,this.descripcion,this.nomtarea,this.dosis, this.dni, this.activo);
try {
x.desactivarProducto();
} catch (SQLException e) {
JOptionPane.showMessageDialog(null,"Error al dar de alta el nuevo producto");
}
}*/
//Valida datos
public void validarDatos(){
if(this.nombre.length() <1 || this.nombre.length()>40){
JOptionPane.showMessageDialog(null, "Error. El nombre no puede estar vacio ni ser superior a 40 carcteres");
this.correcto = false;
}else{
Boolean r = isInteger(this.nombre);
if(r.equals(true)){
JOptionPane.showMessageDialog(null, "Error. El nombre no puede ser numrico");
this.correcto = false;
}else{
r = isInteger(this.dosis);
if(r.equals(false) || this.dosis.length() <1 || this.dosis.length()>4){
JOptionPane.showMessageDialog(null, "Error. La dosis debe de ser numrica, no estar vacia ni ser superior a 4 carcteres.");
this.correcto = false;
}else{
r = isInteger(this.descripcion);
if(r.equals(true) || this.descripcion.length() <1 || this.descripcion.length()>1000){
JOptionPane.showMessageDialog(null, "Error. La descripcion no puede ser numrica, estar vacia ni ser superior a 1000 carcteres.");
this.correcto = false;
}else{
this.correcto = true; // En el caso de que todos los datos sean correctos devolveremos True
}
}
}
}
}
public boolean isInteger( String input )
{
try
{
Integer.parseInt( input );
return true;
}
catch( Exception e2 )
{
return false;
}
}
}
|
[
"[email protected]"
] | |
458bfc0ca1b33b7706b6c88150ac029332625852
|
902564d740bee866d7798df985a25f0f664f6240
|
/src/trunk/mywar-game-admin/src/main/java/com/adminTool/msgbody/ResGetUserEquipmentSomeInfoTask.java
|
784901fda9123d8387bca7d0d3984ddb67121d31
|
[] |
no_license
|
hw233/Server-java
|
539b416821ad67d22120c7146b4c3c7d4ad15929
|
ff74787987f146553684bd823d6bd809eb1e27b6
|
refs/heads/master
| 2020-04-29T04:46:03.263306
| 2016-05-20T12:45:44
| 2016-05-20T12:45:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,181
|
java
|
package com.adminTool.msgbody;
import java.io.IOException;
import com.framework.server.io.iface.IXInputStream;
import com.framework.server.io.iface.IXOutStream;
import com.framework.server.msg.model.ICodeAble;
import com.framework.server.msg.model.UnSynList;
/* GetUserEquipmentTaskForManager响应消息体,cmdCode = 6005 */
public class ResGetUserEquipmentSomeInfoTask implements ICodeAble {
/** 用户装备列表信息 **/
private UnSynList<UserEquipmentSomeInfo> userEquipmentSomeInfoList = new UnSynList<UserEquipmentSomeInfo>();
public ResGetUserEquipmentSomeInfoTask() {
}
public void decode(IXInputStream dataInputStream) throws IOException {
int userEquipmentSomeInfoListSize = dataInputStream.readInt();
for (int i = 0; i < userEquipmentSomeInfoListSize; i++) {
UserEquipmentSomeInfo t = new UserEquipmentSomeInfo();
// t.decode(dataInputStream);
userEquipmentSomeInfoList.add(t);
}
}
public void encode(IXOutStream dataOutputStream) throws IOException {
if (userEquipmentSomeInfoList != null) {
dataOutputStream.writeInt(userEquipmentSomeInfoList.size());
for (int i = 0, size = userEquipmentSomeInfoList.size(); i < size; i++) {
UserEquipmentSomeInfo t = (UserEquipmentSomeInfo) userEquipmentSomeInfoList.get(i);
// t.encode(dataOutputStream);
}
} else {
dataOutputStream.writeInt(0);
}
}
public void addUserEquipmentSomeInfoList(UserEquipmentSomeInfo value) {
userEquipmentSomeInfoList.add(value);
}
public void delUserEquipmentSomeInfoList(int index) {
userEquipmentSomeInfoList.remove(index);
}
public UserEquipmentSomeInfo getUserEquipmentSomeInfoList(int index) {
return userEquipmentSomeInfoList.get(index);
}
public int getUserEquipmentSomeInfoListSize() {
return userEquipmentSomeInfoList.size();
}
/**
* 获取 用户装备列表信息
*/
public UnSynList<UserEquipmentSomeInfo> getUserEquipmentSomeInfoList() {
return userEquipmentSomeInfoList;
}
/**
* 设置 用户装备列表信息
*/
public void setUserEquipmentSomeInfoList(
UnSynList<UserEquipmentSomeInfo> userEquipmentSomeInfoList) {
this.userEquipmentSomeInfoList = userEquipmentSomeInfoList;
}
}
|
[
"[email protected]"
] | |
7d302418d6f86ee568a0fc1ceb27894a58b6d5b3
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/jdbi/learning/3535/InputStreamArgument.java
|
fff835d5dfd438e2a5233f1e209e6e491c86b754
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,030
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jdbi.v3.core.argument;
import java.io.InputStream;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Types;
import org.jdbi.v3. core.statement.StatementContext;
/**
* Bind an input stream as either an ASCII (discouraged) or binary stream.
*/
public class InputStreamArgument implements Argument {
private final InputStream value;
private final int length;
private final boolean ascii;
/**
* @param stream the stream to bind
* @param length the length of the stream
* @param ascii true if the stream is ASCII
*/
public InputStreamArgument(InputStream stream, int length, boolean ascii) {
this.value = stream;
this.length = length;
this.ascii = ascii;
}
@Override
public void apply(int position, PreparedStatement statement, StatementContext ctx) throws SQLException {
if (ascii) {
if (value == null) {
statement.setNull(position, Types.LONGVARCHAR);
} else {
statement.setAsciiStream(position, value, length);
}
} else {
if (value == null) {
statement.setNull(position, Types.LONGVARBINARY);
} else {
statement.setBinaryStream(position, value, length);
}
}
}
@Override
public String toString() {
return "<stream object cannot be read for toString() calls>";
}
}
|
[
"[email protected]"
] | |
c9ded0b46d14b79c5b789fec8bb0df5c77805689
|
93a75cc413a1a00580fa0848d92af0d0244dc595
|
/src/engine/java/de/objectcode/canyon/bpe/engine/evaluator/JXPathCondition.java
|
db2084503e17fac0ae493f696204dcfbb0c9f84d
|
[] |
no_license
|
OC-Git/canyon
|
8d6af137433ec1538474fbfbc05982b721dd3f8a
|
a22e3177b2176678e969bd14e9a651455fef1a63
|
refs/heads/master
| 2016-09-06T05:44:37.039041
| 2013-10-11T07:08:17
| 2013-10-11T07:08:17
| 13,492,138
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,171
|
java
|
package de.objectcode.canyon.bpe.engine.evaluator;
import java.io.Serializable;
import org.dom4j.Element;
import de.objectcode.canyon.bpe.engine.EngineException;
import de.objectcode.canyon.bpe.engine.activities.Activity;
/**
* @author junglas
*/
public class JXPathCondition implements Serializable,ICondition
{
static final long serialVersionUID = 6554127138593692750L;
private String m_expression;
public JXPathCondition ( String expression )
{
m_expression = expression;
}
/**
* @see de.objectcode.canyon.bpe.engine.evaluator.ICondition#eval(de.objectcode.canyon.bpe.engine.activities.Activity)
*/
public boolean eval (Activity activity) throws EngineException
{
// TODO Auto-generated method stub
return false;
}
/**
* @see de.objectcode.canyon.bpe.util.IDomSerializable#getElementName()
*/
public String getElementName ( )
{
return "jxpath-expression";
}
/**
* @see de.objectcode.canyon.bpe.util.IDomSerializable#toDom(org.dom4j.Element)
*/
public void toDom (Element element)
{
element.addAttribute("expression", m_expression);
}
}
|
[
"[email protected]"
] | |
52bdad1d9122c51ef3410d2b60ebd33ac53a2726
|
63da595a4e74145e86269e74e46c98ad1c1bcad3
|
/java/com/genscript/gsscm/serv/entity/ServiceClassification.java
|
f29d76597cbde7e7d6891c15141467c75e594265
|
[] |
no_license
|
qcamei/scm
|
4f2cec86fedc3b8dc0f1cc1649e9ef3be687f726
|
0199673fbc21396e3077fbc79eeec1d2f9bd65f5
|
refs/heads/master
| 2020-04-27T19:38:19.460288
| 2012-09-18T07:06:04
| 2012-09-18T07:06:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,101
|
java
|
package com.genscript.gsscm.serv.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang.builder.ToStringBuilder;
import com.genscript.core.orm.hibernate.BaseEntity;
/**
* SERVICE ProductClass.
*
*
* @author Wangsf
*/
@Entity
@Table(name = "service_classification", catalog="product")
public class ServiceClassification extends BaseEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer clsId;
private String name;
private String description;
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
public Integer getClsId() {
return clsId;
}
public void setClsId(Integer clsId) {
this.clsId = clsId;
}
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;
}
}
|
[
"[email protected]"
] | |
e4d16665eff3e656de50c618795baeed1cc8b622
|
926b7007b03d1261717aeaf9fef1ba8fceb5ad12
|
/src/main/java/com/msun/thirdpartyPay/wepay/exception/WepayException.java
|
2cde89db3c8ff246b026f09e528d5e78f5f95daf
|
[
"Apache-2.0"
] |
permissive
|
MSUNorg/thirdpartyPay
|
f5dee9d6ec25b975efef7c0b1ddfa4837bcd0140
|
35fa62c2aa23042f54314cebb1b918c707e3e82a
|
refs/heads/master
| 2021-01-19T14:22:25.835211
| 2017-08-04T09:12:45
| 2017-08-04T09:13:39
| 88,155,176
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 872
|
java
|
package com.msun.thirdpartyPay.wepay.exception;
/**
* 微信支付异常
*
* @author zxc Apr 13, 2017 6:42:34 PM
*/
public class WepayException extends RuntimeException {
private static final long serialVersionUID = 8445615780195056892L;
/**
* 当微信发生错误时,对应的错误码
*/
private String errorCode;
/**
* 当微信发生错误时,对应的错误消息
*/
private String errorMsg;
public WepayException(Throwable cause) {
super(cause);
}
public WepayException(String errorCode, String errorMsg) {
super("[" + errorCode + "]" + errorMsg);
this.errorCode = errorCode;
this.errorMsg = errorMsg;
}
public String getErrorCode() {
return errorCode;
}
public String getErrorMsg() {
return errorMsg;
}
}
|
[
"[email protected]"
] | |
31fa1cc30299dcde0f8e4b82e429a6aef50cb216
|
8eaaf20f0f20240fb0e31cb62ff838b8bbca7770
|
/DreamPvP [mc-1.3.1]/se/proxus/DreamPvP/Mods/m_Chams.java
|
fc6759a9caa09dbf42de3798792e24e463d22b99
|
[
"LicenseRef-scancode-public-domain",
"Unlicense"
] |
permissive
|
Olivki/minecraft-clients
|
aa7e5d94596c3c67fa748816566ccce17160d000
|
19e00b00d3556e6b3cee5f968005638593d12c01
|
refs/heads/master
| 2020-04-13T05:30:22.073886
| 2019-03-04T20:52:54
| 2019-03-04T20:52:54
| 162,994,258
| 4
| 0
| null | null | null | null |
WINDOWS-1252
|
Java
| false
| false
| 340
|
java
|
package se.proxus.DreamPvP.Mods;
import static org.lwjgl.input.Keyboard.*;
public class m_Chams extends Base_Mod {
public m_Chams() {
super('7', "Chams", "Makes it so you can see players through walls.", KEY_NONE, "Player", "[§eP§r] ");
}
@Override
public void onEnabled() {
}
@Override
public void onDisabled() {
}
}
|
[
"[email protected]"
] | |
4b7383941a482973683db04baf1cbe22f552062f
|
e153fd48766258106886509240c29775ef3feb4a
|
/examples/showcase/src/main/java/org/springside/examples/showcase/webservice/soap/response/GetUserResponse.java
|
d6ad1d735721825f113c5379caad9f41b96a1951
|
[
"Apache-2.0"
] |
permissive
|
liuweizaixian/springside4
|
d0e23a7c435ada38e508d6a06888ff7ee1e090a4
|
e1f35a597899abc3d4f0ef3f49747bee40fcc384
|
refs/heads/master
| 2021-01-23T22:19:28.235574
| 2012-09-03T17:09:48
| 2012-09-03T17:09:48
| 5,666,122
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 587
|
java
|
package org.springside.examples.showcase.webservice.soap.response;
import javax.xml.bind.annotation.XmlType;
import org.springside.examples.showcase.webservice.soap.WsConstants;
import org.springside.examples.showcase.webservice.soap.response.base.WSResponse;
import org.springside.examples.showcase.webservice.soap.response.dto.UserDTO;
@XmlType(name = "GetUserResponse", namespace = WsConstants.NS)
public class GetUserResponse extends WSResponse {
private UserDTO user;
public UserDTO getUser() {
return user;
}
public void setUser(UserDTO user) {
this.user = user;
}
}
|
[
"[email protected]"
] | |
654f6db1df21e22c0267586c152d903c15ee9961
|
cf64ff59a0292500d65d69fcfb0b42d7e4dba9d8
|
/samples/powerPoint/build/src/ppt/OCXExtenderEvents.java
|
6f0fbbbb989546bd604293322e0dd9289acd782e
|
[
"BSD-2-Clause"
] |
permissive
|
nosdod/CDWriterJava
|
0bb3db2e68278c445b78afc665731e058dc42ea4
|
7146689889d8d50d7162b21ea0b98fc5c2364306
|
refs/heads/main
| 2023-09-06T01:32:33.614647
| 2021-11-23T15:14:42
| 2021-11-23T15:14:42
| 431,142,538
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 261
|
java
|
package ppt ;
import com4j.*;
@IID("{914934C1-5A91-11CF-8700-00AA0060263B}")
public interface OCXExtenderEvents extends Com4jObject {
// Methods:
/**
*/
@VTID(7)
void gotFocus();
/**
*/
@VTID(8)
void lostFocus();
// Properties:
}
|
[
"[email protected]"
] | |
328da6076864db92f706d8bbee4ada7948a8e0be
|
f3e6c412ad97e108eb5978e60dbac2dddb442084
|
/src/main/java/za/co/tman/billing/enums/enumwrappers/IncidentPriorityDeserializer.java
|
2b24ab4700d4c61d4ec71fc0ee20db4c15406bc5
|
[] |
no_license
|
kappaj2/IMN-BillingModule
|
6a333e92cd91413a108f2270eb3071996b65e128
|
ab8a73954c28557fce3195cb85c71b27be9b841d
|
refs/heads/master
| 2020-03-20T22:38:08.545184
| 2018-07-24T07:44:28
| 2018-07-24T07:44:28
| 137,807,756
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,004
|
java
|
package za.co.tman.billing.enums.enumwrappers;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonNode;
import za.co.tman.billing.enums.IncidentPriority;
public class IncidentPriorityDeserializer extends JsonDeserializer<IncidentPriority> {
@Override
public IncidentPriority deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException {
ObjectCodec oc = jsonParser.getCodec();
JsonNode node = oc.readTree(jsonParser);
if (node == null) {
return null;
}
String text = node.get("priority_code").textValue();
if (text == null) {
return null;
}
return IncidentPriority.findIncidentPriority(text);
}
}
|
[
"[email protected]"
] | |
3615e167593cf6b858b30e88c47098276cdfbf4b
|
d43a41079529348ffb737c5f0b2dcd9a14573ec7
|
/Java-Web-Basics/Exams/Torshia/jsp/src/main/java/torshia/service/ReportServiceImpl.java
|
a055d3cc7e15e25accf8e45133e6fea4f38e6113
|
[
"MIT"
] |
permissive
|
IvayloIV/Java
|
4688071e052c1a11179306f6464492286fbf0a88
|
00952f83f43ea8d8b300fcc762c2dae458dc5860
|
refs/heads/master
| 2022-12-04T01:13:20.175961
| 2022-09-28T21:11:38
| 2022-09-28T21:11:38
| 192,743,500
| 0
| 1
|
MIT
| 2022-11-24T09:54:29
| 2019-06-19T14:00:10
|
Java
|
UTF-8
|
Java
| false
| false
| 2,507
|
java
|
package torshia.service;
import org.modelmapper.ModelMapper;
import torshia.domain.entities.Report;
import torshia.domain.enums.ReportStatus;
import torshia.domain.models.services.ReportServiceModel;
import torshia.domain.models.services.TaskServiceModel;
import torshia.domain.models.services.UserServiceModel;
import torshia.repository.ReportRepository;
import torshia.repository.TaskRepository;
import torshia.repository.UserRepository;
import javax.inject.Inject;
import java.util.Date;
import java.util.List;
import java.util.Random;
import java.util.stream.Collectors;
public class ReportServiceImpl implements ReportService {
private ModelMapper modelMapper;
private ReportRepository reportRepository;
private UserRepository userRepository;
private TaskRepository taskRepository;
private Random random;
@Inject
public ReportServiceImpl(ModelMapper modelMapper,
ReportRepository reportRepository,
UserRepository userRepository,
TaskRepository taskRepository,
Random random) {
this.modelMapper = modelMapper;
this.reportRepository = reportRepository;
this.userRepository = userRepository;
this.taskRepository = taskRepository;
this.random = random;
}
@Override
public Boolean createReport(String userId, String taskId) {
TaskServiceModel taskModel = this.modelMapper
.map(this.taskRepository.getById(taskId), TaskServiceModel.class);
UserServiceModel userModel = this.modelMapper
.map(this.userRepository.getById(userId), UserServiceModel.class);
ReportServiceModel report = new ReportServiceModel();
report.setReportedOn(new Date());
report.setReporter(userModel);
report.setTask(taskModel);
report.setStatus(this.generateStatus());
return this.reportRepository.save(this.modelMapper.map(report, Report.class));
}
@Override
public List<ReportServiceModel> getAll() {
return this.reportRepository.getAll()
.stream()
.map(r -> this.modelMapper.map(r, ReportServiceModel.class))
.collect(Collectors.toList());
}
private ReportStatus generateStatus() {
int num = this.random.nextInt(100) + 1;
if (num <= 75) {
return ReportStatus.Completed;
}
return ReportStatus.Archived;
}
}
|
[
"[email protected]"
] | |
e5c071d2a0b9e922647dd772b83b690312150c72
|
36de8dd09c8281624faf450fd8986353b8f6b793
|
/src/osmedile/intellij/stringmanip/sort/tokens/TokenLine.java
|
2c72f36780bb31e6361e7ed3d4117b4c39cd39dd
|
[
"Apache-2.0"
] |
permissive
|
tan9/StringManipulation
|
49bf6856741158992494b6265ae8315804beb498
|
0129602dc688b0cc44932346a5c3567edb0bed5b
|
refs/heads/master
| 2023-03-20T23:26:45.189745
| 2021-03-06T02:38:24
| 2021-03-06T08:17:30
| 263,498,735
| 0
| 0
|
Apache-2.0
| 2020-05-13T01:53:52
| 2020-05-13T01:53:51
| null |
UTF-8
|
Java
| false
| false
| 3,806
|
java
|
package osmedile.intellij.stringmanip.sort.tokens;
import org.jetbrains.annotations.NotNull;
import osmedile.intellij.stringmanip.align.FixedStringTokenScanner;
import osmedile.intellij.stringmanip.sort.support.SimpleSortable;
import osmedile.intellij.stringmanip.sort.support.SortSettings;
import osmedile.intellij.stringmanip.utils.StringUtil;
import java.util.*;
public class TokenLine {
private final String originalText;
private final SortSettings sortSettings;
private final String[] split;
private Set<String> separators;
private SortTokensModel model;
public TokenLine(String originalText, SortTokensModel model) {
this.originalText = originalText;
this.sortSettings = model.getSortSettings();
separators = new HashSet<>(model.getSeparators());
this.model = model;
String[] separators = model.getSeparators().toArray(new String[0]);
if (separators.length == 1 && separators[0].equals(" ")) {
split = StringUtil.splitToTokensBySpace(originalText).toArray(new String[0]);
} else {
split = FixedStringTokenScanner.splitToFixedStringTokensAndOtherTokens(originalText, -1, separators).toArray(new String[0]);
}
//should start with token, and end with token
// if (split.length>1 && split.length % 2 == 0) {
// throw new IllegalStateException("bug, report this, split.length="+split.length+"; "+split);
// }
}
public String getSortedText() {
List<String> strings = sortTokens();
StringBuilder sb = new StringBuilder();
for (String s : strings) {
sb.append(s);
}
return sb.toString();
}
private List<String> sortTokens() {
List<SimpleSortable> lines = new ArrayList<>();
for (int i = 0, splitLength = split.length; i < splitLength; i++) {
if (isSeparator(split[i])) {
continue;
}
String token = split[i];
String textForComparison = token;
if (sortSettings.isIgnoreLeadingSpaces()) {
textForComparison = token.substring(StringUtil.indexOfAnyButWhitespace(token));
}
if (model.isIgnoreEmptyTokens() && token.trim().length() == 0) {
continue;
}
lines.add(new SimpleSortable(token, textForComparison));
}
List<SimpleSortable> sorted = sortSettings.getSortType().sortLines(lines, sortSettings.getBaseComparator(), sortSettings.getCollatorLanguageTag());
Iterator<SimpleSortable> sortedIterator = sorted.iterator();
List<String> strings = replaceTokens2(sortedIterator);
if (sortedIterator.hasNext()) {
strings.add(sortedIterator.next().getText());
}
return strings;
}
private boolean isSeparator(String s) {
return separators.contains(s);
}
@NotNull
private List<String> replaceTokens2(Iterator<SimpleSortable> sortedIterator) {
List<String> strings = new ArrayList<>();
for (int i = 0; i < split.length; i++) {
if (!isSeparator(split[i])) {
if (model.isIgnoreEmptyTokens() && split[i].trim().length() == 0) {
strings.add(split[i]);
continue;
}
String resultToken = sortedIterator.next().getText();
// if (sortSettings.isPreserveLeadingSpaces()) {
int oldContentStartIndex = StringUtil.indexOfAnyButWhitespace(split[i]);
int newContentStartIndex = StringUtil.indexOfAnyButWhitespace(resultToken);
String oldContentLeadingSpaces = split[i].substring(0, oldContentStartIndex);
String newActualContent = resultToken.substring(newContentStartIndex, resultToken.length());
resultToken = oldContentLeadingSpaces + newActualContent;
// }
strings.add(resultToken);
} else {
strings.add(split[i]);
}
}
return strings;
}
public String[] getSplit() {
return split;
}
public String replaceTokens(Iterator<SimpleSortable> iterator) {
List<String> strings = replaceTokens2(iterator);
StringBuilder sb = new StringBuilder();
for (String s : strings) {
sb.append(s);
}
return sb.toString();
}
}
|
[
"[email protected]"
] | |
848263b4702aa6b0f64be62f1ec6afeaaf540970
|
cad4f947dbb6f1ef7f6d531aaf725ec4b8c7986e
|
/arcusApp/app/src/main/java/arcus/app/device/pairing/post/controller/AddToFavoritesFragmentController.java
|
7fa28ecdead780d7355cee33f98d3b5ff4fda4e8
|
[
"Apache-2.0"
] |
permissive
|
pupper68k/arcusandroid
|
324e3abbd2f3e789431c7dcac1d495c262702179
|
50e0a6d71609bf404353da80d8e620584cc818d3
|
refs/heads/master
| 2020-07-28T17:23:04.035283
| 2019-02-28T17:52:25
| 2019-02-28T17:52:25
| 209,477,977
| 0
| 0
|
Apache-2.0
| 2019-09-19T06:24:01
| 2019-09-19T06:24:00
| null |
UTF-8
|
Java
| false
| false
| 4,257
|
java
|
/*
* Copyright 2019 Arcus Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package arcus.app.device.pairing.post.controller;
import android.app.Activity;
import com.google.common.collect.ImmutableSet;
import arcus.cornea.provider.DeviceModelProvider;
import com.iris.client.capability.Capability;
import com.iris.client.event.Listener;
import com.iris.client.model.DeviceModel;
import arcus.app.common.controller.FragmentController;
import arcus.app.common.utils.GlobalSetting;
public class AddToFavoritesFragmentController extends FragmentController<AddToFavoritesFragmentController.Callbacks> {
public interface Callbacks {
void onSuccess();
void onFailure(Throwable cause);
}
private Activity activity;
private static final AddToFavoritesFragmentController instance = new AddToFavoritesFragmentController();
private AddToFavoritesFragmentController () {}
public static AddToFavoritesFragmentController getInstance () { return instance; }
public void setIsFavorite (Activity activity, String deviceAddress, final boolean isFavorite) {
this.activity = activity;
// Load the device model
DeviceModelProvider.instance().getModel(deviceAddress).load().onSuccess(new Listener<DeviceModel>() {
@Override
public void onEvent(DeviceModel deviceModel) {
// ... and add or remove the favorite tag
if (isFavorite) {
addFavoriteTag(deviceModel);
} else {
removeFavoriteTag(deviceModel);
}
}
}).onFailure(new Listener<Throwable>() {
@Override
public void onEvent(Throwable throwable) {
fireOnFailure(throwable);
}
});
}
private void addFavoriteTag (DeviceModel deviceModel) {
deviceModel.addTags(ImmutableSet.of(GlobalSetting.FAVORITE_TAG)).onSuccess(new Listener<Capability.AddTagsResponse>() {
@Override
public void onEvent(Capability.AddTagsResponse addTagsResponse) {
fireOnSuccess();
}
}).onFailure(new Listener<Throwable>() {
@Override
public void onEvent(Throwable throwable) {
fireOnFailure(throwable);
}
});
}
private void removeFavoriteTag (DeviceModel deviceModel) {
deviceModel.removeTags(ImmutableSet.of(GlobalSetting.FAVORITE_TAG)).onSuccess(new Listener<Capability.RemoveTagsResponse>() {
@Override
public void onEvent(Capability.RemoveTagsResponse removeTagsResponse) {
fireOnSuccess();
}
}).onFailure(new Listener<Throwable>() {
@Override
public void onEvent(Throwable throwable) {
fireOnFailure(throwable);
}
});
}
private void fireOnSuccess() {
if (activity != null) {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
Callbacks listener = getListener();
if (listener != null) {
listener.onSuccess();
}
}
});
}
}
private void fireOnFailure(final Throwable throwable) {
if (activity != null) {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
Callbacks listener = getListener();
if (listener != null) {
listener.onFailure(throwable);
}
}
});
}
}
}
|
[
"[email protected]"
] | |
124a28d529a9b7c855687fb82692d78df4c9f78c
|
d3135cbb2577cf6a8942abf525c14393f0c60e69
|
/trunk/zsoa/soa-server/src/main/java/com/zodiac/db/Executeable.java
|
8caff3f2750690fd947860cb25b9f358f77fb831
|
[] |
no_license
|
BGCX262/zsoa-svn-to-git
|
a3ce79f14498d4386221166aa60db238c924bc56
|
8a7429f89ed1756adc5260d2faa38bce0a4c8e7a
|
refs/heads/master
| 2020-04-17T16:23:16.633069
| 2015-08-23T06:49:13
| 2015-08-23T06:49:13
| 41,256,951
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,150
|
java
|
/*
* Copyright (C) 2012 Zodiac Innovation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.zodiac.db;
import java.sql.SQLException;
/**
* This are SQL Object that can be executed. For example
* a query or transaction.
*
* @author Brian Estrada <[email protected]>
*/
public interface Executeable {
/**
* Attemp to execute the task of a SQL Object.
*
* @throws SQLException if database error occurs
*/
public void execute() throws DataAccessException;
}
|
[
"[email protected]"
] | |
6b8f138905b5af15a9a5dbc4ae350a808402a378
|
57d7801f31d911cde6570e3e513e43fb33f2baa3
|
/src/main/java/nl/strohalm/cyclos/services/transactions/GrantSinglePaymentLoanDTO.java
|
a026f53b56d4701cd2404706cce3dfe31f2318fa
|
[] |
no_license
|
kryzoo/cyclos
|
61f7f772db45b697fe010f11c5e6b2b2e34a8042
|
ead4176b832707d4568840e38d9795d7588943c8
|
refs/heads/master
| 2020-04-29T14:50:20.470400
| 2011-12-09T11:51:05
| 2011-12-09T11:51:05
| 54,712,705
| 0
| 1
| null | 2016-03-25T10:41:41
| 2016-03-25T10:41:41
| null |
UTF-8
|
Java
| false
| false
| 1,385
|
java
|
/*
This file is part of Cyclos.
Cyclos is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Cyclos is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Cyclos; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package nl.strohalm.cyclos.services.transactions;
import java.util.Calendar;
import nl.strohalm.cyclos.entities.accounts.loans.Loan.Type;
/**
* Parameters for granting a single-payment loan
* @author luis
*/
public class GrantSinglePaymentLoanDTO extends GrantLoanDTO {
private static final long serialVersionUID = -6637355488102983527L;
private Calendar repaymentDate;
@Override
public Type getLoanType() {
return Type.SINGLE_PAYMENT;
}
public Calendar getRepaymentDate() {
return repaymentDate;
}
public void setRepaymentDate(final Calendar repaymentDate) {
this.repaymentDate = repaymentDate;
}
}
|
[
"[email protected]"
] | |
a003d318c4af467367215e8619c3a0796cdb9d85
|
e26bacd2a3722148d2efe144224fc36dce4e1092
|
/scheduletask/src/main/java/com/liujun/schedule/domain/task/service/DcTaskTypeDomainService.java
|
1de87f5ecc16ed877cf5c51b86320fff9c31a76a
|
[] |
no_license
|
kkzfl22/schedule
|
2efaed73e527ff36af50dbd3776b140d2542a958
|
0567f940714c05d910c55a51d05a28140abdd1bb
|
refs/heads/main
| 2023-07-04T05:12:33.000010
| 2021-08-03T12:36:32
| 2021-08-03T12:36:32
| 390,570,127
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,035
|
java
|
package com.liujun.schedule.domain.task.service;
import com.ddd.common.infrastructure.entity.DomainPage;
import com.liujun.schedule.domain.task.entity.DcTaskTypeDO;
import com.liujun.schedule.domain.task.facade.DcTaskTypeRepositoryInterface;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 调度任务信息-的领域服务
*
* @author liujun
* @version 0.0.1
*/
@Service
@Slf4j
public class DcTaskTypeDomainService {
/**
* 调度任务信息-的领域存储接口
*/
@Autowired
private DcTaskTypeRepositoryInterface repository;
/**
* 单个添加
*
* @param param 调度任务信息-的领域实体信息
* @return true 操作成功,false 操作失败
*/
public boolean insert(DcTaskTypeDO param) {
boolean updateRsp = repository.insert(param);
return updateRsp;
}
/**
* 批量添加
*
* @param param 调度任务信息-的领域实体信息
* @return true 操作成功,false 操作失败
*/
public boolean insertList(List<DcTaskTypeDO> param) {
boolean updateRsp = repository.insertList(param);
return updateRsp;
}
/**
* 修改方法
*
* @param param 调度任务信息-的领域实体信息
* @return true 操作成功,false 操作失败
*/
public boolean update(DcTaskTypeDO param) {
boolean updateRsp = repository.update(param);
return updateRsp;
}
/**
* 批量删除
*
* @param param 调度任务信息-的领域实体信息
* @return true 操作成功,false 操作失败
*/
public boolean deleteByIds(DcTaskTypeDO param) {
boolean updateRsp = repository.deleteByIds(param);
return updateRsp;
}
/**
* 分页查询
*
* @param pageReq 分页查询请求参数
* @return 分页查询响应
*/
public DomainPage<List<DcTaskTypeDO>> queryPage(DomainPage<DcTaskTypeDO> pageReq) {
DomainPage<List<DcTaskTypeDO>> pageResult = repository.queryPage(pageReq);
return pageResult;
}
/**
* 获取类型的配制信息
*
* @return
*/
public Map<String, DcTaskTypeDO> queryAllToMap() {
List<DcTaskTypeDO> list = repository.queryAll();
if (null == list) {
return Collections.emptyMap();
}
Map<String, DcTaskTypeDO> result = new HashMap<>(list.size());
for (DcTaskTypeDO item : list) {
result.put(item.getType(), item);
}
return result;
}
/**
* 按id查询详细
*
* @param param 调度任务信息-的领域实体信息
* @return 数据集
*/
public DcTaskTypeDO detail(DcTaskTypeDO param) {
DcTaskTypeDO queryReturn = repository.detail(param);
return queryReturn;
}
}
|
[
"[email protected]"
] | |
01ad8f295e0e7f6c8dd8b18906dd54abed179cad
|
09d0ddd512472a10bab82c912b66cbb13113fcbf
|
/TestApplications/TF-BETA-THERMATK-v5.7.1/DecompiledCode/JADX/src/main/java/org/telegram/messenger/C0355-$$Lambda$DataQuery$EvRKZ0icyHpXu5syph8WWuRUigE.java
|
06f317dae5440a8cbe8bf36b797d472e453c7010
|
[] |
no_license
|
sgros/activity_flow_plugin
|
bde2de3745d95e8097c053795c9e990c829a88f4
|
9e59f8b3adacf078946990db9c58f4965a5ccb48
|
refs/heads/master
| 2020-06-19T02:39:13.865609
| 2019-07-08T20:17:28
| 2019-07-08T20:17:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 972
|
java
|
package org.telegram.messenger;
import java.util.ArrayList;
/* compiled from: lambda */
/* renamed from: org.telegram.messenger.-$$Lambda$DataQuery$EvRKZ0icyHpXu5syph8WWuRUigE */
public final /* synthetic */ class C0355-$$Lambda$DataQuery$EvRKZ0icyHpXu5syph8WWuRUigE implements Runnable {
private final /* synthetic */ DataQuery f$0;
private final /* synthetic */ ArrayList f$1;
private final /* synthetic */ ArrayList f$2;
private final /* synthetic */ int f$3;
private final /* synthetic */ int f$4;
public /* synthetic */ C0355-$$Lambda$DataQuery$EvRKZ0icyHpXu5syph8WWuRUigE(DataQuery dataQuery, ArrayList arrayList, ArrayList arrayList2, int i, int i2) {
this.f$0 = dataQuery;
this.f$1 = arrayList;
this.f$2 = arrayList2;
this.f$3 = i;
this.f$4 = i2;
}
public final void run() {
this.f$0.lambda$putFeaturedStickersToCache$25$DataQuery(this.f$1, this.f$2, this.f$3, this.f$4);
}
}
|
[
"[email protected]"
] | |
99d871ca680deec3e8660a357ea885697a2ffed0
|
7569f9a68ea0ad651b39086ee549119de6d8af36
|
/cocoon-2.1.9/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/FieldDefinitionBuilder.java
|
4d1e44be62df2f316da168ebf3fecee9765a5ca9
|
[
"Apache-2.0"
] |
permissive
|
tpso-src/cocoon
|
844357890f8565c4e7852d2459668ab875c3be39
|
f590cca695fd9930fbb98d86ae5f40afe399c6c2
|
refs/heads/master
| 2021-01-10T02:45:37.533684
| 2015-07-29T18:47:11
| 2015-07-29T18:47:11
| 44,549,791
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,837
|
java
|
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.cocoon.forms.formmodel;
import org.apache.cocoon.forms.datatype.SelectionList;
import org.apache.cocoon.forms.util.DomHelper;
import org.w3c.dom.Element;
/**
* Builds {FieldDefinition}s.
*
* @version $Id: FieldDefinitionBuilder.java 327125 2005-10-21 08:52:51Z sylvain $
*/
public class FieldDefinitionBuilder extends AbstractDatatypeWidgetDefinitionBuilder {
public WidgetDefinition buildWidgetDefinition(Element widgetElement) throws Exception {
FieldDefinition definition = new FieldDefinition();
setupDefinition(widgetElement, definition);
definition.makeImmutable();
return definition;
}
protected void setupDefinition(Element widgetElement, FieldDefinition definition) throws Exception {
super.setupDefinition(widgetElement, definition);
// parse "@required"
if(widgetElement.hasAttribute("required"))
definition.setRequired(DomHelper.getAttributeAsBoolean(widgetElement, "required", false));
SelectionList list = buildSelectionList(widgetElement, definition, "suggestion-list");
if (list != null) {
definition.setSuggestionList(list);
}
}
}
|
[
"[email protected]"
] | |
3255cde4714c6ca515e3057497c3b1d95f817843
|
ef3117a35719a8d4bb4d0437c9ee1e177466325b
|
/ch08_prj3_AreaCalculator/src/Rectangle.java
|
d9909256e2300bcbf21a5d8e1fd1ac0a8539abed
|
[] |
no_license
|
sean-blessing/bootcamp-2018-02-instruction
|
699188ffaacb9680d5aec63564a9db712988fd7a
|
77d393016156f19860d5d7fcf9573fdf8fd4b9da
|
refs/heads/master
| 2020-03-28T02:31:40.247843
| 2018-10-24T13:02:11
| 2018-10-24T13:02:11
| 147,577,237
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 370
|
java
|
public class Rectangle extends Square {
private double height;
public Rectangle(double width, double height) {
super(width);
this.height = height;
}
public double getHeight() {
return height;
}
public void setHeight(double height) {
this.height = height;
}
@Override
public double getArea() {
return width*height;
}
}
|
[
"[email protected]"
] | |
c60d7d4352ce6b639191aad1114c3548f3bb1fef
|
5d49ca1743fb929cb37814a24cc8b058d089ff27
|
/mall-product/src/main/java/com/zmm/mall/product/app/controller/SkuImagesController.java
|
378f67059528fe78b3d873565cccf40117fc09ab
|
[] |
no_license
|
MingHub0313/social-mall
|
69be7237470998eb76da3a85cac9e1dc71e7edd9
|
85cc461e97a5384d4f857a101f5ea3b82124067a
|
refs/heads/master
| 2023-04-17T13:13:14.760823
| 2021-04-30T08:03:09
| 2021-04-30T08:03:09
| 306,238,679
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,936
|
java
|
package com.zmm.mall.product.app.controller;
import java.util.Arrays;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.zmm.mall.product.entity.SkuImagesEntity;
import com.zmm.mall.product.service.SkuImagesService;
import com.zmm.common.utils.PageUtils;
import com.zmm.common.utils.R;
/**
* sku图片
*
* @author zhangmingming
* @email [email protected]
* @date 2020-08-21 10:45:46
*/
@RestController
@RequestMapping("product/skuimages")
public class SkuImagesController {
@Autowired
private SkuImagesService skuImagesService;
/**
* 列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = skuImagesService.queryPage(params);
return R.ok().put("page", page);
}
/**
* 信息
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
SkuImagesEntity skuImages = skuImagesService.getById(id);
return R.ok().put("skuImages", skuImages);
}
/**
* 保存
*/
@RequestMapping("/save")
public R save(@RequestBody SkuImagesEntity skuImages){
skuImagesService.save(skuImages);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody SkuImagesEntity skuImages){
skuImagesService.updateById(skuImages);
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
skuImagesService.removeByIds(Arrays.asList(ids));
return R.ok();
}
}
|
[
"[email protected]"
] | |
593889025ad15d1dbc430a6feb55f9d54030fc7a
|
be29c33e03cf20cd1b7e11f7fcadcafa1aa29e1c
|
/src/main/java/org/jtwig/render/listeners/RenderListener.java
|
95ffd01bae63e11766c926e5a458b1e2ebc30bea
|
[
"Apache-2.0"
] |
permissive
|
MakerTim/jtwig-core
|
65f30171325c5b17dca72870db2401845a8aaa3b
|
0f9e980534830295c7dc47c0a5ee050e0b524891
|
refs/heads/master
| 2021-07-10T07:46:03.735353
| 2017-10-06T15:59:09
| 2017-10-06T15:59:09
| 106,023,443
| 0
| 0
| null | 2017-10-06T15:56:21
| 2017-10-06T15:56:21
| null |
UTF-8
|
Java
| false
| false
| 154
|
java
|
package org.jtwig.render.listeners;
import org.jtwig.render.RenderRequest;
public interface RenderListener {
void listen (RenderRequest request);
}
|
[
"[email protected]"
] | |
d6a96c1a8a9da406fc61b02d2cdc044f879428c1
|
575c19e81594666f51cceb55cb1ab094b218f66b
|
/octopusconsortium/src/main/java/OctopusConsortium/Models/RCS/XActMoodIntentEventX.java
|
3c33355a5d45f5dfb3a60093e980e4ce33a10a31
|
[
"Apache-2.0"
] |
permissive
|
uk-gov-mirror/111online.ITK-MessagingEngine
|
62b702653ea716786e2684e3d368898533e77534
|
011e8cbe0bcb982eedc2204318d94e2bb5d4adb2
|
refs/heads/master
| 2023-01-22T17:47:54.631879
| 2020-12-01T14:18:05
| 2020-12-01T14:18:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,005
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-257
// 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: 2012.10.24 at 03:44:55 PM BST
//
package OctopusConsortium.Models.RCS;
import javax.xml.bind.annotation.XmlEnum;
/**
* <p>Java class for x_ActMoodIntentEvent_X.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="x_ActMoodIntentEvent_X">
* <restriction base="{urn:hl7-org:v3}cs">
* <enumeration value="EVN"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum XActMoodIntentEventX {
EVN;
public String value() {
return name();
}
public static XActMoodIntentEventX fromValue(String v) {
return valueOf(v);
}
}
|
[
"[email protected]"
] | |
5df26ad2ff61f3a06180723e2dd981868f5077cf
|
1e8a5381b67b594777147541253352e974b641c5
|
/com/google/android/gms/playlog/internal/PlayLoggerContext.java
|
ed3292894acb93fc877f97ab8cd0c60eda3137b2
|
[] |
no_license
|
jramos92/Verify-Prueba
|
d45f48829e663122922f57720341990956390b7f
|
94765f020d52dbfe258dab9e36b9bb8f9578f907
|
refs/heads/master
| 2020-05-21T14:35:36.319179
| 2017-03-11T04:24:40
| 2017-03-11T04:24:40
| 84,623,529
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,320
|
java
|
package com.google.android.gms.playlog.internal;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.internal.zzw;
import com.google.android.gms.common.internal.zzx;
public class PlayLoggerContext
implements SafeParcelable
{
public static final zze CREATOR = new zze();
public final String packageName;
public final int versionCode;
public final int zzaRR;
public final int zzaRS;
public final String zzaRT;
public final String zzaRU;
public final boolean zzaRV;
public final String zzaRW;
public final boolean zzaRX;
public final int zzaRY;
public PlayLoggerContext(int paramInt1, String paramString1, int paramInt2, int paramInt3, String paramString2, String paramString3, boolean paramBoolean1, String paramString4, boolean paramBoolean2, int paramInt4)
{
this.versionCode = paramInt1;
this.packageName = paramString1;
this.zzaRR = paramInt2;
this.zzaRS = paramInt3;
this.zzaRT = paramString2;
this.zzaRU = paramString3;
this.zzaRV = paramBoolean1;
this.zzaRW = paramString4;
this.zzaRX = paramBoolean2;
this.zzaRY = paramInt4;
}
@Deprecated
public PlayLoggerContext(String paramString1, int paramInt1, int paramInt2, String paramString2, String paramString3, boolean paramBoolean)
{
this.versionCode = 1;
this.packageName = ((String)zzx.zzw(paramString1));
this.zzaRR = paramInt1;
this.zzaRS = paramInt2;
this.zzaRW = null;
this.zzaRT = paramString2;
this.zzaRU = paramString3;
this.zzaRV = paramBoolean;
this.zzaRX = false;
this.zzaRY = 0;
}
public int describeContents()
{
return 0;
}
public boolean equals(Object paramObject)
{
if (this == paramObject) {}
do
{
return true;
if (!(paramObject instanceof PlayLoggerContext)) {
break;
}
paramObject = (PlayLoggerContext)paramObject;
} while ((this.versionCode == ((PlayLoggerContext)paramObject).versionCode) && (this.packageName.equals(((PlayLoggerContext)paramObject).packageName)) && (this.zzaRR == ((PlayLoggerContext)paramObject).zzaRR) && (this.zzaRS == ((PlayLoggerContext)paramObject).zzaRS) && (zzw.equal(this.zzaRW, ((PlayLoggerContext)paramObject).zzaRW)) && (zzw.equal(this.zzaRT, ((PlayLoggerContext)paramObject).zzaRT)) && (zzw.equal(this.zzaRU, ((PlayLoggerContext)paramObject).zzaRU)) && (this.zzaRV == ((PlayLoggerContext)paramObject).zzaRV) && (this.zzaRX == ((PlayLoggerContext)paramObject).zzaRX) && (this.zzaRY == ((PlayLoggerContext)paramObject).zzaRY));
return false;
return false;
}
public int hashCode()
{
return zzw.hashCode(new Object[] { Integer.valueOf(this.versionCode), this.packageName, Integer.valueOf(this.zzaRR), Integer.valueOf(this.zzaRS), this.zzaRW, this.zzaRT, this.zzaRU, Boolean.valueOf(this.zzaRV), Boolean.valueOf(this.zzaRX), Integer.valueOf(this.zzaRY) });
}
public String toString()
{
StringBuilder localStringBuilder = new StringBuilder();
localStringBuilder.append("PlayLoggerContext[");
localStringBuilder.append("versionCode=").append(this.versionCode).append(',');
localStringBuilder.append("package=").append(this.packageName).append(',');
localStringBuilder.append("packageVersionCode=").append(this.zzaRR).append(',');
localStringBuilder.append("logSource=").append(this.zzaRS).append(',');
localStringBuilder.append("logSourceName=").append(this.zzaRW).append(',');
localStringBuilder.append("uploadAccount=").append(this.zzaRT).append(',');
localStringBuilder.append("loggingId=").append(this.zzaRU).append(',');
localStringBuilder.append("logAndroidId=").append(this.zzaRV).append(',');
localStringBuilder.append("isAnonymous=").append(this.zzaRX).append(',');
localStringBuilder.append("qosTier=").append(this.zzaRY);
localStringBuilder.append("]");
return localStringBuilder.toString();
}
public void writeToParcel(Parcel paramParcel, int paramInt)
{
zze.zza(this, paramParcel, paramInt);
}
}
/* Location: C:\Users\julian\Downloads\Veryfit 2 0_vV2.0.28_apkpure.com-dex2jar.jar!\com\google\android\gms\playlog\internal\PlayLoggerContext.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"[email protected]"
] | |
6512e2f19c24785c35b08cda1e464d2ff16c69c8
|
d5515553d071bdca27d5d095776c0e58beeb4a9a
|
/src/net/sourceforge/plantuml/activitydiagram3/InstructionPartition.java
|
6de5e25cd6db478ff32dc6126b3817e8e0c19e75
|
[] |
no_license
|
ccamel/plantuml
|
29dfda0414a3dbecc43696b63d4dadb821719489
|
3100d49b54ee8e98537051e071915e2060fe0b8e
|
refs/heads/master
| 2022-07-07T12:03:37.351931
| 2016-12-14T21:01:03
| 2016-12-14T21:01:03
| 77,067,872
| 1
| 0
| null | 2022-05-30T09:56:21
| 2016-12-21T16:26:58
|
Java
|
UTF-8
|
Java
| false
| false
| 2,543
|
java
|
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2017, Arnaud Roques
*
* Project Info: http://plantuml.com
*
* This file is part of PlantUML.
*
* PlantUML is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PlantUML distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
* License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*
*
* Original Author: Arnaud Roques
*
*
*/
package net.sourceforge.plantuml.activitydiagram3;
import java.util.Set;
import net.sourceforge.plantuml.activitydiagram3.ftile.Ftile;
import net.sourceforge.plantuml.activitydiagram3.ftile.FtileFactory;
import net.sourceforge.plantuml.activitydiagram3.ftile.Swimlane;
import net.sourceforge.plantuml.cucadiagram.Display;
import net.sourceforge.plantuml.graphic.color.Colors;
import net.sourceforge.plantuml.sequencediagram.NotePosition;
import net.sourceforge.plantuml.sequencediagram.NoteType;
public class InstructionPartition implements Instruction {
private final InstructionList list = new InstructionList();
private final Instruction parent;
public InstructionPartition(Instruction parent, String partitionTitle) {
this.parent = parent;
}
public Instruction getParent() {
return parent;
}
public Set<Swimlane> getSwimlanes() {
return list.getSwimlanes();
}
public Swimlane getSwimlaneIn() {
return list.getSwimlaneIn();
}
public Swimlane getSwimlaneOut() {
return list.getSwimlaneOut();
}
public Ftile createFtile(FtileFactory factory) {
return list.createFtile(factory);
}
public void add(Instruction other) {
list.add(other);
}
public boolean kill() {
return list.kill();
}
public LinkRendering getInLinkRendering() {
return list.getInLinkRendering();
}
public boolean addNote(Display note, NotePosition position, NoteType type, Colors colors) {
throw new UnsupportedOperationException();
}
}
|
[
"[email protected]"
] | |
ddcc5f1e9a2013b6ab1679d4842ce04c429740e0
|
66e2f35b7b56865552616cf400e3a8f5928d12a2
|
/src/main/java/com/alipay/api/response/AlipayUserApplepayOtpresolutionmethodsQueryResponse.java
|
201127dde6f48cdce33d7562ae0842f620ecbb05
|
[
"Apache-2.0"
] |
permissive
|
xiafaqi/alipay-sdk-java-all
|
18dc797400847c7ae9901566e910527f5495e497
|
606cdb8014faa3e9125de7f50cbb81b2db6ee6cc
|
refs/heads/master
| 2022-11-25T08:43:11.997961
| 2020-07-23T02:58:22
| 2020-07-23T02:58:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,245
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.domain.OpenApiResolutionMethod;
import com.alipay.api.domain.OpenApiResponseHeader;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.user.applepay.otpresolutionmethods.query response.
*
* @author auto create
* @since 1.0, 2020-05-29 10:25:32
*/
public class AlipayUserApplepayOtpresolutionmethodsQueryResponse extends AlipayResponse {
private static final long serialVersionUID = 5552122263837433269L;
/**
* OpenApi的Otp校验方法负责对象
*/
@ApiField("resolution_methods")
private OpenApiResolutionMethod resolutionMethods;
/**
* 响应头
*/
@ApiField("response_header")
private OpenApiResponseHeader responseHeader;
public void setResolutionMethods(OpenApiResolutionMethod resolutionMethods) {
this.resolutionMethods = resolutionMethods;
}
public OpenApiResolutionMethod getResolutionMethods( ) {
return this.resolutionMethods;
}
public void setResponseHeader(OpenApiResponseHeader responseHeader) {
this.responseHeader = responseHeader;
}
public OpenApiResponseHeader getResponseHeader( ) {
return this.responseHeader;
}
}
|
[
"[email protected]"
] | |
91bd5a807cbb7a3bb65dd908dc29cab2354c8dad
|
67c89388e84c4e28d1559ee6665304708e5bf0b2
|
/messaging/netty/src/main/java/io/atomix/messaging/netty/MessageEncoder.java
|
6873339553c1aa60910168cb20f75c012f8fdbcf
|
[
"Apache-2.0"
] |
permissive
|
maniacs-ops/atomix
|
f66e4eca65466fdda7dee9aec08b3a1cb51724dc
|
c28f884754f26edfec3677849e864eb3311738e7
|
refs/heads/master
| 2021-01-02T08:55:42.350924
| 2017-07-28T23:48:05
| 2017-07-28T23:48:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,185
|
java
|
/*
* Copyright 2016-present Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.atomix.messaging.netty;
import com.google.common.base.Charsets;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.atomix.messaging.Endpoint;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
import java.io.IOException;
import java.net.InetAddress;
/**
* Encode InternalMessage out into a byte buffer.
*/
@ChannelHandler.Sharable
public class MessageEncoder extends MessageToByteEncoder<Object> {
// Effectively MessageToByteEncoder<InternalMessage>,
// had to specify <Object> to avoid Class Loader not being able to find some classes.
private final Logger log = LoggerFactory.getLogger(getClass());
private final int preamble;
public MessageEncoder(int preamble) {
super();
this.preamble = preamble;
}
@Override
protected void encode(
ChannelHandlerContext context,
Object rawMessage,
ByteBuf out) throws Exception {
InternalMessage message = (InternalMessage) rawMessage;
out.writeInt(this.preamble);
// write message id
out.writeLong(message.id());
Endpoint sender = message.sender();
InetAddress senderIp = sender.host();
byte[] senderIpBytes = senderIp.getAddress();
out.writeByte(senderIpBytes.length);
out.writeBytes(senderIpBytes);
// write sender port
out.writeInt(sender.port());
byte[] messageTypeBytes = message.type().getBytes(Charsets.UTF_8);
// write length of message type
out.writeShort(messageTypeBytes.length);
// write message type bytes
out.writeBytes(messageTypeBytes);
// write message status value
InternalMessage.Status status = message.status();
if (status == null) {
out.writeByte(-1);
} else {
out.writeByte(status.id());
}
byte[] payload = message.payload();
// write payload length
out.writeInt(payload.length);
// write payload.
out.writeBytes(payload);
}
@Override
public void exceptionCaught(ChannelHandlerContext context, Throwable cause) {
if (cause instanceof IOException) {
log.debug("IOException inside channel handling pipeline.", cause);
} else {
log.error("non-IOException inside channel handling pipeline.", cause);
}
context.close();
}
// Effectively same result as one generated by MessageToByteEncoder<InternalMessage>
@Override
public final boolean acceptOutboundMessage(Object msg) throws Exception {
return msg instanceof InternalMessage;
}
}
|
[
"[email protected]"
] | |
00639d2a92c96f8c7b0bb9f4d22e3e83126d2ab6
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.minihd.qq/assets/exlibs.1.jar/classes.jar/tencent/im/s2c/msgtype0x211/submsgtype0x8/C2CType0x211_SubC2CType0x8$UpdateInfo.java
|
5a8911989b473761aa19a758c490b2fd6073c36b
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 1,051
|
java
|
package tencent.im.s2c.msgtype0x211.submsgtype0x8;
import com.tencent.mobileqq.pb.MessageMicro;
import com.tencent.mobileqq.pb.MessageMicro.FieldMap;
import com.tencent.mobileqq.pb.PBEnumField;
import com.tencent.mobileqq.pb.PBField;
public final class C2CType0x211_SubC2CType0x8$UpdateInfo
extends MessageMicro
{
public static final int MSG_USER_FIELD_NUMBER = 2;
public static final int TYPE_FIELD_NUMBER = 1;
static final MessageMicro.FieldMap __fieldMap__ = MessageMicro.initFieldMap(new int[] { 8, 18 }, new String[] { "type", "msg_user" }, new Object[] { Integer.valueOf(1), null }, UpdateInfo.class);
public C2CType0x211_SubC2CType0x8.UserProfile msg_user = new C2CType0x211_SubC2CType0x8.UserProfile();
public final PBEnumField type = PBField.initEnum(1);
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.minihd.qq\assets\exlibs.1.jar\classes.jar
* Qualified Name: tencent.im.s2c.msgtype0x211.submsgtype0x8.C2CType0x211_SubC2CType0x8.UpdateInfo
* JD-Core Version: 0.7.0.1
*/
|
[
"[email protected]"
] | |
1b5edd4f86b436c9ffb0523c47fec2235df3f638
|
13c948b38ae50abcac9a45687b05b176f7df9872
|
/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ClaimAccessor.java
|
4e68579f4f7e0b2c055118932f176ac933a3fba3
|
[
"Apache-2.0"
] |
permissive
|
bghgu/spring-security
|
19317a19c203aef8d6b15ff32b641db4ba57f523
|
54547f35b7bb2a35657dfd2713cbdd6543bc9597
|
refs/heads/master
| 2021-05-15T12:53:21.760748
| 2017-10-26T16:19:57
| 2017-10-26T16:22:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,910
|
java
|
/*
* Copyright 2012-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.security.oauth2.core;
import org.springframework.util.Assert;
import java.net.MalformedURLException;
import java.net.URL;
import java.time.Instant;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* An "accessor" for a set of claims that may be used for assertions.
*
* @author Joe Grandja
* @since 5.0
*/
public interface ClaimAccessor {
Map<String, Object> getClaims();
default Boolean containsClaim(String claim) {
Assert.notNull(claim, "claim cannot be null");
return this.getClaims().containsKey(claim);
}
default String getClaimAsString(String claim) {
return (this.containsClaim(claim) ? this.getClaims().get(claim).toString() : null);
}
default Boolean getClaimAsBoolean(String claim) {
return (this.containsClaim(claim) ? Boolean.valueOf(this.getClaimAsString(claim)) : null);
}
default Instant getClaimAsInstant(String claim) {
if (!this.containsClaim(claim)) {
return null;
}
try {
return Instant.ofEpochSecond(Long.valueOf(this.getClaimAsString(claim)));
} catch (NumberFormatException ex) {
throw new IllegalArgumentException("Unable to convert claim '" + claim + "' to Instant: " + ex.getMessage(), ex);
}
}
default URL getClaimAsURL(String claim) {
if (!this.containsClaim(claim)) {
return null;
}
try {
return new URL(this.getClaimAsString(claim));
} catch (MalformedURLException ex) {
throw new IllegalArgumentException("Unable to convert claim '" + claim + "' to URL: " + ex.getMessage(), ex);
}
}
default Map<String, Object> getClaimAsMap(String claim) {
if (!this.containsClaim(claim) || !Map.class.isAssignableFrom(this.getClaims().get(claim).getClass())) {
return null;
}
Map<String, Object> claimValues = new HashMap<>();
((Map<?, ?>)this.getClaims().get(claim)).forEach((k, v) -> claimValues.put(k.toString(), v));
return claimValues;
}
default List<String> getClaimAsStringList(String claim) {
if (!this.containsClaim(claim) || !List.class.isAssignableFrom(this.getClaims().get(claim).getClass())) {
return null;
}
List<String> claimValues = new ArrayList<>();
((List<?>)this.getClaims().get(claim)).forEach(e -> claimValues.add(e.toString()));
return claimValues;
}
}
|
[
"[email protected]"
] | |
c605c96aa1bf6c8b7cb4613db614cccdc9bf0c37
|
b796403692acd9cd1dcae90ee41c37ef4bc56f44
|
/CobolPorterParser/src/main/java/tr/com/vbt/natural/parser/datalayout/db/patern/PaternDBDataTypeNatural.java
|
7c6c52a1bc4b5900d125c6c9755e3e87556eafd1
|
[] |
no_license
|
latift/PorterEngine
|
7626bae05f41ef4e7828e13f2a55bf77349e1bb3
|
c78a12f1cb2e72c90b1b22d6f50f71456d0c4345
|
refs/heads/master
| 2023-09-02T05:16:24.793958
| 2021-09-29T12:02:52
| 2021-09-29T12:02:52
| 95,788,676
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,952
|
java
|
package tr.com.vbt.natural.parser.datalayout.db.patern;
import tr.com.vbt.cobol.parser.AbstractCommand;
import tr.com.vbt.lexer.ReservedNaturalKeywords;
import tr.com.vbt.natural.parser.datalayout.db.ElementDBDataTypeNatural;
import tr.com.vbt.patern.AbstractDataTypePattern;
import tr.com.vbt.token.AbstractToken;
import tr.com.vbt.token.KarakterToken;
import tr.com.vbt.token.KelimeToken;
import tr.com.vbt.token.SayiToken;
/**S**
02 T-BLOCKFUEL (N8) //N8 optional
**/
public class PaternDBDataTypeNatural extends AbstractDataTypePattern{
public PaternDBDataTypeNatural() {
super();
//01
AbstractToken astSource=new SayiToken();
astSource.setTekrarlayabilir("+");
astSource.setSourceFieldName("levelNumber");
patternTokenList.add(astSource);
//CLIENT-ID
AbstractToken astSource2=new KelimeToken<String>();
astSource2.setTekrarlayabilir("+");
astSource2.setSourceFieldName("dataName");
astSource2.setPojoVariable(true);
patternTokenList.add(astSource2);
AbstractToken astSource3=new KarakterToken('(', 0,0,0);
//astSource3.setOptional(true);
patternTokenList.add(astSource3);
// * N8
AbstractToken astSource4=new KelimeToken();
astSource4.setSourceFieldName("dataType");
//astSource4.setOptional(true);
patternTokenList.add(astSource4);
// * N8.5
AbstractToken astSource6=new SayiToken();
astSource6.setSourceFieldName("lengthAfterDot");
astSource6.setOptional(true);
patternTokenList.add(astSource6);
///) Mandatory
AbstractToken astSource5=new KarakterToken(')', 0,0,0);
//astSource5.setOptional(true);
patternTokenList.add(astSource5);
}
@Override
public void setTokenToElement(AbstractCommand matchedCommand,
AbstractToken currentTokenForMatch,
AbstractToken abstractTokenInPattern) {
ElementDBDataTypeNatural matchedCommandAdd=(ElementDBDataTypeNatural) matchedCommand;
super.setSatirNumarasi(matchedCommand,currentTokenForMatch, abstractTokenInPattern);if(abstractTokenInPattern.getSourceFieldName()==null){
}else if(abstractTokenInPattern.getSourceFieldName().equals("levelNumber")){
matchedCommandAdd.setLevelNumber(((Long)currentTokenForMatch.getDeger()));
matchedCommandAdd.getParameters().put("levelNumber", matchedCommandAdd.getLevelNumber());
matchedCommandAdd.setDataType("A");
matchedCommandAdd.getParameters().put("type","String");
}
else if(abstractTokenInPattern.getSourceFieldName().equals("dataName")){
if(currentTokenForMatch.getColumnNameToken()!=null){
matchedCommandAdd.setDataName((String) currentTokenForMatch.getColumnNameToken().getDeger());
}else{
matchedCommandAdd.setDataName((String) currentTokenForMatch.getDeger());
}
matchedCommandAdd.getParameters().put("dataName", matchedCommandAdd.getDataName());
}
else if(abstractTokenInPattern.getSourceFieldName().equals("dataType")){
matchedCommandAdd.setDataType((String) currentTokenForMatch.getDeger());
matchedCommandAdd.getParameters().put("dataType", matchedCommandAdd.getDataType());
}
else if(abstractTokenInPattern.getSourceFieldName().equals("lengthAfterDot")){
Double lenghtD;
Long lengthInt;
if(currentTokenForMatch.getDeger() instanceof Double){
lenghtD=(Double) currentTokenForMatch.getDeger();
matchedCommandAdd.setLengthAfterDot(lenghtD.longValue());
matchedCommandAdd.getParameters().put("lengthAfterDot", matchedCommandAdd.getLengthAfterDot());
}else if(currentTokenForMatch.getDeger() instanceof Long){
lengthInt=(Long) currentTokenForMatch.getDeger();
matchedCommandAdd.setLengthAfterDot(lengthInt);
matchedCommandAdd.getParameters().put("lengthAfterDot", matchedCommandAdd.getLengthAfterDot());
}
}
}
@Override
public AbstractCommand createElement() {
ElementDBDataTypeNatural createdElement = new ElementDBDataTypeNatural(ReservedNaturalKeywords.DB_DATA_TYPE, "DATABASE.DB_DATA_TYPE");
return createdElement;
}
}
|
[
"[email protected]"
] | |
2801814ac51ccf43db477c737306e288e81eeab4
|
b42a2d6010c30dcdbc9056197cb641f86e85b196
|
/app/src/main/java/com/exalogic/inmeghschool/API/MyRequestInterceptor.java
|
205c134d48802c1bc5b37369abb0eabe167e750e
|
[] |
no_license
|
akshay027/inMegh-Android
|
5fe0693ec5c8a4cd2d3224701ff7ea10ad99591b
|
e192b3b752eba816871296e93cae9438d0e4390c
|
refs/heads/master
| 2020-04-06T14:29:08.046451
| 2018-11-14T12:07:56
| 2018-11-14T12:07:56
| 157,542,961
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,051
|
java
|
package com.exalogic.inmeghschool.API;
import android.content.Context;
import android.util.Log;
import com.exalogic.inmeghschool.Database.PreferencesManger;
import com.exalogic.inmeghschool.Utility.Constants;
import retrofit.RequestInterceptor;
/**
* Created by Shrey on 05-06-2016.
*/
public class MyRequestInterceptor implements RequestInterceptor {
Context context;
public MyRequestInterceptor(Context context) {
this.context = context;
}
@Override
public void intercept(RequestFacade request) {
String token = PreferencesManger.getStringFields(this.context, Constants.Pref.KEY_TOKEN);
if (token != null) {
Log.e("Token", "token-------------------------------" + token);
request.addHeader("Authorization", "Token token=" + token.replace("\"", ""));
//request.addHeader("Authorization", "Bearer 9e4952c254fedaa2c1e6eda30ed745ee9af8129432b99eb45c2d46744bac6b3f");
// 9e4952c254fedaa2c1e6eda30ed745ee9af8129432b99eb45c2d46744bac6b3f
}
}
}
|
[
"[email protected]"
] | |
73cd9cc359f21cde9715f7cd1bcfea574833e71c
|
4a6cc69db16aec71b8ac69abbe86ef427a71353e
|
/ebx/src/main/java/com/metservice/krypton/GridDecoder.java
|
e19defcb481253931b91057360cbc233fdaa82f3
|
[] |
no_license
|
craig-a-roach/geowx
|
0532c1d4dbea383ad229200b208aaebbdbbe2b5d
|
7cd7e2b7254f4a6b38762f4965dacb290f47bad1
|
refs/heads/master
| 2021-03-12T22:04:17.573558
| 2014-04-28T06:39:09
| 2014-04-28T06:39:09
| 9,379,471
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,890
|
java
|
/*
* Copyright 2011 Meteorological Service of New Zealand Limited all rights reserved. No part of this work may be stored
* in a retrievable system, transmitted or reproduced in any way without the prior written permission of the
* Meteorological Service of New Zealand
*/
package com.metservice.krypton;
import com.metservice.cobalt.CobaltGeoLatitudeLongitude;
import com.metservice.cobalt.CobaltGeoMercator;
import com.metservice.cobalt.CobaltResolution;
/**
* @author roach
*/
class GridDecoder {
public KryptonGridDecode newGrid(SectionGD1Type00Reader r) {
if (r == null) throw new IllegalArgumentException("object is null");
final double lat1 = r.latitude1();
final double lon1 = r.longitude1();
final double lat2 = r.latitude2();
final double lon2 = r.longitude2();
final KryptonThinGrid oThin = r.createThinGrid();
final int nx = oThin == null ? r.NX() : oThin.nx;
final int ny = oThin == null ? r.NY() : oThin.ny;
final double dx = oThin == null ? r.DX() : oThin.dx;
final double dy = oThin == null ? r.DY() : oThin.dy;
final KryptonArrayFactory af = new KryptonArrayFactory(nx, ny);
final GridScan scan = new GridScan(af, r.scanningMode());
final GeoProjectorLatitudeLongitude prj = new GeoProjectorLatitudeLongitude(scan, dx, dy, lat1, lon1, lat2, lon2, oThin);
final CobaltGeoLatitudeLongitude geo = CobaltGeoLatitudeLongitude.newInstance(prj.nlat, prj.wlon, prj.slat, prj.elon);
final CobaltResolution resolution = CobaltResolution.newDegrees(dy, dx);
return new KryptonGridDecode(af, geo, resolution, prj);
}
public KryptonGridDecode newGrid(SectionGD1Type01Reader r) {
if (r == null) throw new IllegalArgumentException("object is null");
final double lat1 = r.latitude1();
final double lon1 = r.longitude1();
final double lat2 = r.latitude2();
final double lon2 = r.longitude2();
final double latin = r.latitudeCylinderIntersection();
final double dx = r.DX();
final double dy = r.DY();
final KryptonArrayFactory af = new KryptonArrayFactory(r.NX(), r.NY());
final CobaltGeoMercator geo = CobaltGeoMercator.newInstance(lat1, lon1, lat2, lon2, latin);
final CobaltResolution resolution = CobaltResolution.newMetres(dy, dx);
return new KryptonGridDecode(af, geo, resolution, null);
}
public KryptonGridDecode newGrid(SectionGD2Template00Reader r)
throws KryptonCodeException {
if (r == null) throw new IllegalArgumentException("object is null");
final String Template = "3.0";
final int resolutionFlags = r.resolutionFlags();
final boolean resolutionGivenX = (resolutionFlags & 0x20) != 0;
final boolean resolutionGivenY = (resolutionFlags & 0x10) != 0;
if (!resolutionGivenX) {
final String m = "No X (" + resolutionFlags + ")";
throw new KryptonCodeException(CSection.GD2(Template, "resolutionFlags"), m);
}
if (!resolutionGivenY) {
final String m = "No Y (" + resolutionFlags + ")";
throw new KryptonCodeException(CSection.GD2(Template, "resolutionFlags"), m);
}
final double angleUnit = r.angleUnit();
final double lat1 = angleUnit * r.latitude1();
final double lon1 = angleUnit * r.longitude1();
final double lat2 = angleUnit * r.latitude2();
final double lon2 = angleUnit * r.longitude2();
final int nx = r.NX();
final int ny = r.NY();
final double dx = angleUnit * r.DX();
final double dy = angleUnit * r.DY();
final KryptonArrayFactory af = new KryptonArrayFactory(nx, ny);
final GridScan scan = new GridScan(af, r.scanningMode());
final GeoProjectorLatitudeLongitude prj = new GeoProjectorLatitudeLongitude(scan, dx, dy, lat1, lon1, lat2, lon2, null);
final CobaltGeoLatitudeLongitude geo = CobaltGeoLatitudeLongitude.newInstance(prj.nlat, prj.wlon, prj.slat, prj.elon);
final CobaltResolution resolution = CobaltResolution.newDegrees(dy, dx);
return new KryptonGridDecode(af, geo, resolution, prj);
}
public GridDecoder() {
}
}
|
[
"[email protected]"
] | |
347c2ef8924bbb81ad5cc1f3b30767ff4507f8d2
|
29903674d6108262b016b4132300a8153917e6a5
|
/eventuate-client-java-tests-example-domain/src/main/java/io/eventuate/example/banking/domain/AccountEvent.java
|
142d26bb6c4b06787d96baab2a056341037995ed
|
[
"Apache-2.0"
] |
permissive
|
eventuate-local/eventuate-local
|
17bbcc7cfc88aeead2afe501ffa624ce91efd8e5
|
5bea88f7ddd41f53f7850724f3745f130a83d8c7
|
refs/heads/master
| 2023-08-31T08:06:27.246682
| 2023-08-23T04:43:40
| 2023-08-23T04:43:40
| 65,101,930
| 813
| 253
|
NOASSERTION
| 2023-01-27T02:50:46
| 2016-08-06T21:02:28
|
Java
|
UTF-8
|
Java
| false
| false
| 223
|
java
|
package io.eventuate.example.banking.domain;
import io.eventuate.Event;
import io.eventuate.EventEntity;
@EventEntity(entity="io.eventuate.example.banking.domain.Account")
public interface AccountEvent extends Event {
}
|
[
"[email protected]"
] | |
b07f04a4f3da0ec951132c096578792ceeac8636
|
da181f89e0b26ffb3fc5f9670a3a5f8f1ccf0884
|
/CoreGestionTextilLevel/src/ar/com/textillevel/facade/impl/NotaDebitoFacade.java
|
206d678faf83b658472c0e9102b3d9fca941d1fc
|
[] |
no_license
|
nacho270/GTL
|
a1b14b5c95f14ee758e6b458de28eae3890c60e1
|
7909ed10fb14e24b1536e433546399afb9891467
|
refs/heads/master
| 2021-01-23T15:04:13.971161
| 2020-09-18T00:58:24
| 2020-09-18T00:58:24
| 34,962,369
| 2
| 1
| null | 2016-08-22T22:12:57
| 2015-05-02T20:31:49
|
Java
|
UTF-8
|
Java
| false
| false
| 609
|
java
|
package ar.com.textillevel.facade.impl;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import ar.com.textillevel.dao.api.local.NotaDebitoDAOLocal;
import ar.com.textillevel.entidades.documentos.factura.NotaDebito;
import ar.com.textillevel.facade.api.remote.NotaDebitoFacadeRemote;
@Stateless
public class NotaDebitoFacade implements NotaDebitoFacadeRemote {
@EJB
private NotaDebitoDAOLocal notaDebitoDAO;
public List<NotaDebito> getNotaDebitoPendientePagarList(Integer idCliente) {
return notaDebitoDAO.getNotaDebitoPendientePagarList(idCliente);
}
}
|
[
"[email protected]@9de48aec-ec99-11dd-b2d9-215335d0b316"
] |
[email protected]@9de48aec-ec99-11dd-b2d9-215335d0b316
|
ef736602ac8c957f2236fd756d02735f443db228
|
7f20b1bddf9f48108a43a9922433b141fac66a6d
|
/core3/search-impl/tags/search-impl-3.0.0-alpha2/src/main/java/org/cytoscape/search/internal/IndexAndSearchTask.java
|
f190681b035bf4b8e04d6cdbffc4594a60032107
|
[] |
no_license
|
ahdahddl/cytoscape
|
bf783d44cddda313a5b3563ea746b07f38173022
|
a3df8f63dba4ec49942027c91ecac6efa920c195
|
refs/heads/master
| 2020-06-26T16:48:19.791722
| 2013-08-28T04:08:31
| 2013-08-28T04:08:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,572
|
java
|
/*
Copyright (c) 2006, 2007, The Cytoscape Consortium (www.cytoscape.org)
The Cytoscape Consortium is:
- Institute for Systems Biology
- University of California San Diego
- Memorial Sloan-Kettering Cancer Center
- Institut Pasteur
- Agilent Technologies
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2.1 of the License, or
any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
documentation provided hereunder is on an "as is" basis, and the
Institute for Systems Biology and the Whitehead Institute
have no obligations to provide maintenance, support,
updates, enhancements or modifications. In no event shall the
Institute for Systems Biology and the Whitehead Institute
be liable to any party for direct, indirect, special,
incidental or consequential damages, including lost profits, arising
out of the use of this software and its documentation, even if the
Institute for Systems Biology and the Whitehead Institute
have been advised of the possibility of such damage. See
the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
package org.cytoscape.search.internal;
import java.util.ArrayList;
import java.util.List;
import java.util.Iterator;
import org.apache.lucene.store.RAMDirectory;
import org.cytoscape.model.CyNetwork;
import org.cytoscape.view.model.CyNetworkView;
import org.cytoscape.model.CyNode;
import org.cytoscape.model.CyEdge;
import org.cytoscape.task.AbstractNetworkViewTask;
import org.cytoscape.work.TaskMonitor;
//import org.cytoscape.work.Tunable;
import org.cytoscape.model.CyTableManager;
import org.cytoscape.model.events.RowsAboutToChangeEvent;
import org.cytoscape.model.events.RowsFinishedChangingEvent;
public class IndexAndSearchTask extends AbstractNetworkViewTask {
private boolean interrupted = false;
private EnhancedSearch enhancedSearch;
private CyNetwork network;
private CyTableManager tableMgr;
//@Tunable(description="Search for:")
public String query;
/**
* The constructor. Any necessary data that is <i>not</i> provided by
* the user should be provided as arguments to the constructor.
*/
public IndexAndSearchTask(final CyNetworkView networkView, EnhancedSearch enhancedSearch,
CyTableManager tableMgr, String query) {
// Will set a CyNetwork field called "net".
super(networkView);
network = networkView.getModel();
this.enhancedSearch = enhancedSearch;
this.tableMgr = tableMgr;
this.query = query;
}
@Override
public void run(final TaskMonitor taskMonitor) {
// Give the task a title.
taskMonitor.setTitle("Searching the network");
// Index the given network or use existing index
RAMDirectory idx = null;
String status = enhancedSearch.getNetworkIndexStatus(network);
if (status != null && status.equalsIgnoreCase(EnhancedSearch.INDEX_SET)) {
idx = enhancedSearch.getNetworkIndex(network);
} else {
taskMonitor.setStatusMessage("Indexing network");
EnhancedSearchIndex indexHandler = new EnhancedSearchIndex(network);
idx = indexHandler.getIndex();
enhancedSearch.setNetworkIndex(network, idx);
}
if (interrupted) {
return;
}
// Execute query
taskMonitor.setStatusMessage("Executing query");
EnhancedSearchQuery queryHandler = new EnhancedSearchQuery(network, idx, tableMgr);
queryHandler.executeQuery(query);
if (interrupted) {
return;
}
if (network != null && network.getNodeList().size() > 0){
try {
EnhancedSearchPlugin.eventHelper.fireSynchronousEvent(new RowsAboutToChangeEvent(this, network.getDefaultNodeTable()));
EnhancedSearchPlugin.eventHelper.fireSynchronousEvent(new RowsAboutToChangeEvent(this, network.getDefaultEdgeTable()));
showResults(queryHandler, taskMonitor);
}
finally {
EnhancedSearchPlugin.eventHelper.fireAsynchronousEvent(new RowsFinishedChangingEvent(this, network.getDefaultNodeTable()));
EnhancedSearchPlugin.eventHelper.fireAsynchronousEvent(new RowsFinishedChangingEvent(this, network.getDefaultEdgeTable()));
}
}
}
private void showResults(EnhancedSearchQuery queryHandler, final TaskMonitor taskMonitor){
// Display results
if (network == null || network.getNodeList().size() == 0){
return;
}
List<CyNode> nodeList = network.getNodeList();
for (CyNode n : nodeList) {
n.getCyRow().set("selected",false);
}
List<CyEdge> edgeList = network.getEdgeList();
for (CyEdge e : edgeList) {
e.getCyRow().set("selected",false);
}
int nodeHitCount = queryHandler.getNodeHitCount();
int edgeHitCount = queryHandler.getEdgeHitCount();
if (nodeHitCount == 0 && edgeHitCount == 0) {
return;
}
taskMonitor.setStatusMessage("Selecting " + nodeHitCount + " and " + edgeHitCount + " edges");
ArrayList<String> nodeHits = queryHandler.getNodeHits();
ArrayList<String> edgeHits = queryHandler.getEdgeHits();
Iterator nodeIt = nodeHits.iterator();
int numCompleted = 0;
while (nodeIt.hasNext() && !interrupted) {
int currESPIndex = Integer.parseInt(nodeIt.next().toString());
CyNode currNode = network.getNode(currESPIndex);
if (currNode != null) {
currNode.getCyRow().set("selected", true);
} else {
System.out.println("Unknown node identifier " + (currESPIndex));
}
taskMonitor.setProgress(numCompleted++ / nodeHitCount);
}
Iterator edgeIt = edgeHits.iterator();
numCompleted = 0;
while (edgeIt.hasNext() && !interrupted) {
int currESPIndex = Integer.parseInt(edgeIt.next().toString());
CyEdge currEdge = network.getEdge(currESPIndex);
if (currEdge != null) {
currEdge.getCyRow().set("selected", true);
} else {
System.out.println("Unknown edge identifier " + (currESPIndex));
}
taskMonitor.setProgress(numCompleted++ / edgeHitCount);
}
// Refresh view to show selected nodes and edges
view.updateView();
}
@Override
public void cancel() {
this.interrupted = true;
}
}
|
[
"mes@0ecc0d97-ab19-0410-9704-bfe1a75892f5"
] |
mes@0ecc0d97-ab19-0410-9704-bfe1a75892f5
|
73733dfb0b7d71a3e67a4f7ed3090400ad701e74
|
9508868f54802408df2ca922453c6ba1af01c60e
|
/src/main/java/com/kepler/config/parser/ConfigParser4Date.java
|
9e9f171e4f25d402496a58cbeec36bd341466c55
|
[] |
no_license
|
easonlong/Kepler-All
|
de94c8258e55a1443eb5ce27b4659a835830890d
|
3633dde36fb85178b0288fc3f0eb4a25134ce8d1
|
refs/heads/master
| 2020-09-01T06:29:32.330733
| 2019-02-20T04:52:16
| 2019-02-20T04:52:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 844
|
java
|
package com.kepler.config.parser;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.kepler.KeplerLocalException;
import com.kepler.config.ConfigParser;
import com.kepler.config.PropertiesUtils;
/**
* String -> Date解析
*
* @author kim 2016年1月5日
*/
public class ConfigParser4Date implements ConfigParser {
/**
* 默认格式
*/
private static final String FORMAT = PropertiesUtils.get(ConfigParser4Date.class.getName().toLowerCase() + ".format", "yyyy-MM-dd hh:mm:ss");
@Override
public Object parse(Class<?> request, String config) {
try {
return new SimpleDateFormat(ConfigParser4Date.FORMAT).parse(config);
} catch (Throwable throwable) {
throw new KeplerLocalException(throwable);
}
}
@Override
public boolean support(Class<?> request) {
return Date.class.equals(request);
}
}
|
[
"[email protected]"
] | |
6a97a2925ec5380e5bc0318ee23b718c8d59bd8a
|
2712e31319b0c733bcab285415e55a427288406e
|
/eclipse/src/main/java/org/eclipse/jdt/internal/compiler/ast/NameReference.java
|
cdb715dd903ec78ece45851c2e5b6275ea200bd0
|
[
"WTFPL"
] |
permissive
|
mo79571830/eide
|
8ba031a432cab62e1045b8ff61961d21cfc94f7d
|
5d6470f82def645c17b5cebe03184ddc1ff67e62
|
refs/heads/master
| 2022-03-22T23:46:56.299439
| 2019-05-08T20:20:08
| 2019-05-08T20:20:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,298
|
java
|
/*******************************************************************************
* Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* This is an implementation of an early-draft specification developed under the Java
* Community Process (JCP) and is made available for testing and evaluation purposes
* only. The code is not compatible with any specification of the JCP.
*
* Contributors:
* IBM Corporation - initial API and implementation
* Stephan Herrmann - Contribution for
* bug 331649 - [compiler][null] consider null annotations for fields
* Bug 400874 - [1.8][compiler] Inference infrastructure should evolve to meet JLS8 18.x (Part G of JSR335 spec)
* Bug 426996 - [1.8][inference] try to avoid method Expression.unresolve()?
* Jesper S Moller - Contributions for
* bug 382721 - [1.8][compiler] Effectively final variables needs special treatment
*******************************************************************************/
package org.eclipse.jdt.internal.compiler.ast;
import org.eclipse.jdt.internal.compiler.lookup.*;
import org.eclipse.jdt.internal.compiler.problem.AbortMethod;
public abstract class NameReference extends Reference implements InvocationSite {
public Binding binding; //may be aTypeBinding-aFieldBinding-aLocalVariableBinding
public TypeBinding actualReceiverType; // modified receiver type - actual one according to namelookup
//the error printing
//some name reference are build as name reference but
//only used as type reference. When it happens, instead of
//creating a new object (aTypeReference) we just flag a boolean
//This concesion is valuable while there are cases when the NameReference
//will be a TypeReference (static message sends.....) and there is
//no changeClass in java.
public NameReference() {
this.bits |= Binding.TYPE | Binding.VARIABLE; // restrictiveFlag
}
/**
* Use this method only when sure that the current reference is <strong>not</strong>
* a chain of several fields (QualifiedNameReference with more than one field).
* Otherwise use {@link #lastFieldBinding()}.
*/
public FieldBinding fieldBinding() {
//this method should be sent ONLY after a check against isFieldReference()
//check its use doing senders.........
return (FieldBinding) this.binding ;
}
public FieldBinding lastFieldBinding() {
if ((this.bits & ASTNode.RestrictiveFlagMASK) == Binding.FIELD)
return fieldBinding(); // most subclasses only refer to one field anyway
return null;
}
public InferenceContext18 freshInferenceContext(Scope scope) {
return null;
}
public boolean isSuperAccess() {
return false;
}
public boolean isTypeAccess() {
// null is acceptable when we are resolving the first part of a reference
return this.binding == null || this.binding instanceof ReferenceBinding;
}
public boolean isTypeReference() {
return this.binding instanceof ReferenceBinding;
}
public void setActualReceiverType(ReferenceBinding receiverType) {
if (receiverType == null) return; // error scenario only
this.actualReceiverType = receiverType;
}
public void setDepth(int depth) {
this.bits &= ~DepthMASK; // flush previous depth if any
if (depth > 0) {
this.bits |= (depth & 0xFF) << DepthSHIFT; // encoded on 8 bits
}
}
public void setFieldIndex(int index){
// ignored
}
public abstract String unboundReferenceErrorName();
public abstract char[][] getName();
/* Called during code generation to ensure that outer locals's effectively finality is guaranteed.
Aborts if constraints are violated. Due to various complexities, this check is not conveniently
implementable in resolve/analyze phases.
*/
protected void checkEffectiveFinality(LocalVariableBinding localBinding, Scope scope) {
if ((this.bits & ASTNode.IsCapturedOuterLocal) != 0) {
if (!localBinding.isFinal() && !localBinding.isEffectivelyFinal()) {
scope.problemReporter().cannotReferToNonEffectivelyFinalOuterLocal(localBinding, this);
throw new AbortMethod(scope.referenceCompilationUnit().compilationResult, null);
}
}
}
}
|
[
"[email protected]"
] | |
c40b7bef8de78027fbf370b0b335a76cce4c3307
|
566a9252119593c099ac8bb572b291322eb17c47
|
/hasting-webui/src/test/java/com/lindzh/hasting/webui/AbstractTestCase.java
|
9428a3fe9f3c9f9a8d492f6e7400d6ea62b564e7
|
[
"MIT"
] |
permissive
|
BiYiTuan/hasting
|
7743ecf709d7eb85e376c927ad355e679e4aa917
|
efed0dabcc5181b9f81bb54514048b38adfd7177
|
refs/heads/master
| 2020-04-16T13:28:11.481592
| 2018-04-15T03:52:09
| 2018-04-15T03:52:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 424
|
java
|
package com.lindzh.hasting.webui;
/**
* Created by lin on 2016/12/17.
*/
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"classpath:mybatis-config.xml","classpath:spring-admin.xml"})
public abstract class AbstractTestCase {
}
|
[
"[email protected]"
] | |
d7a6615a2cd7f2b794e4adaabb35e1c8e50edfaa
|
dffc6d66fb10683f38d46055492b1e77f6d7912f
|
/ERP_WS/src/main/java/com/bap/erp/servicios/rh/RhEmpleadoService.java
|
9370a98ceb16d67da09c3dbe1e507cf7bf0eb002
|
[] |
no_license
|
gpalabral/ErpBackEnd
|
bd3a4f8d8f0d23275e7d8b0a5670b7faf8037411
|
4dd908ca24625c8271d3dd1bdd9e1df714f6e921
|
refs/heads/master
| 2021-03-27T20:02:43.606225
| 2016-05-17T22:42:37
| 2016-05-17T22:42:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,729
|
java
|
package com.bap.erp.servicios.rh;
import com.bap.erp.modelo.rh.RhEmpleado;
import java.io.InputStream;
import java.util.Date;
import java.util.List;
public interface RhEmpleadoService {
RhEmpleado persistRhEmpleado(RhEmpleado rhEmpleado) throws Exception;
RhEmpleado mergeRhEmpleado(RhEmpleado rhEmpleado) throws Exception;
void removeRhEmpleado(Long idEmpleado) throws Exception;
List<RhEmpleado> listaRhEmpleado() throws Exception;
String codigoEmpleado()throws Exception;
RhEmpleado persistModificacionRhEmpleado(RhEmpleado rhEmpleado)throws Exception;
RhEmpleado getRhEmpleadoById(Long idEmpleado) throws Exception;
RhEmpleado obtieneEmpleadoPorCodigo(String codigo)throws Exception;
RhEmpleado obtieneEmpleadoPorIdEmpleadoCargo(Long idEmpleadoCargo)throws Exception;
int obtieneDiasVacacion(Date fechaInicial, Date fechaFinal) throws Exception;
List<RhEmpleado> listaRhEmpleadoConCargoAsignado() throws Exception;
List<RhEmpleado> listaRhEmpleadosNuevosSinVariaciones(Long idPeriodoGestion) throws Exception;
List<RhEmpleado> listaRhEmpleadosNuevosSinRcIva(Long idPeriodoGestion) throws Exception;
List<RhEmpleado> listaRhEmpleadosNuevosSinDescuentos(Long idPeriodoGestion) throws Exception;
List<RhEmpleado> listaRhEmpleadosNuevosSinCriteriosIngreso(Long idPeriodoGestion) throws Exception;
List<RhEmpleado> listaRhEmpleadosNuevosSinPrima(Long idPeriodoGestion) throws Exception;
List<RhEmpleado> listaRhEmpleadoPorPeriodo(Long idPeriodoGestion) throws Exception;
void importaEmpleadosExcel(InputStream fileInputStream) throws Exception;
}
|
[
"[email protected]"
] | |
30e04bca53333c66adaf9a014f098db26b833256
|
b27bfe9db8f0c7e5ca9377397b23ef2ef27d4ddc
|
/morozov/terms/signals/TermIsNotAWorld.java
|
41381a1bd658c6e41322c54be5f7abf4dc21fe24
|
[] |
no_license
|
Morozov2012/actor-prolog-java-library
|
85fe97eb6a37709d742f4ab06b29d0718c7269c3
|
5a7e2011ac2152278b8ebae3dfb2da4d925619a3
|
refs/heads/master
| 2021-01-20T15:39:14.173431
| 2019-12-13T13:09:01
| 2019-12-13T13:09:01
| 7,780,078
| 5
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 272
|
java
|
// (c) 2008 IRE RAS Alexei A. Morozov
package morozov.terms.signals;
import morozov.run.*;
public final class TermIsNotAWorld extends LightweightException {
//
public static final TermIsNotAWorld instance= new TermIsNotAWorld();
//
private TermIsNotAWorld() {
}
}
|
[
"[email protected]"
] | |
8edb465300510de64a838641b88374138dc82afe
|
4cc4d9d488939dde56fda368faf58d8564047673
|
/external/vogar/src/vogar/target/MainRunnerFactory.java
|
6412b26908620247270a34410b8e8da3463786be
|
[] |
no_license
|
Tosotada/android-8.0.0_r4
|
24b3e4590c9c0b6c19f06127a61320061e527685
|
7b2a348b53815c068a960fe7243b9dc9ba144fa6
|
refs/heads/master
| 2020-04-01T11:39:03.926512
| 2017-08-28T16:26:25
| 2017-08-28T16:26:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,449
|
java
|
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package vogar.target;
import java.util.concurrent.atomic.AtomicReference;
import javax.annotation.Nullable;
import vogar.ClassAnalyzer;
import vogar.monitor.TargetMonitor;
/**
* Supports running a class with a {@code static void main(String[] args)} entry point.
*/
public class MainRunnerFactory implements RunnerFactory {
@Override @Nullable
public TargetRunner newRunner(TargetMonitor monitor, String qualification,
Class<?> klass, AtomicReference<String> skipPastReference,
TestEnvironment testEnvironment, int timeoutSeconds, boolean profile,
String[] args) {
if (new ClassAnalyzer(klass).hasMethod(true, void.class, "main", String[].class)) {
return new MainTargetRunner(monitor, klass, args);
} else {
return null;
}
}
}
|
[
"[email protected]"
] | |
9fb7c0899d4358f6e8b068bbdcb1a291d263d02f
|
d5786bf0335010f7de9bb2cea6bb0a9536ff73af
|
/aliyun-java-sdk-sofa/src/main/java/com/aliyuncs/sofa/model/v20190815/QueryLinkeBahamutIterationdetachreleaseRequest.java
|
b6f174fb5847a8e8488eead2d7e53e354636b526
|
[
"Apache-2.0"
] |
permissive
|
1203802276/aliyun-openapi-java-sdk
|
8066c546f0177cbbebb7b1178fe6ccaeb6f1da09
|
e3f89f2ef8542055e3990401a94edccd1bbca410
|
refs/heads/master
| 2023-04-15T07:09:27.195262
| 2021-03-19T06:22:51
| 2021-03-19T06:22:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,436
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.sofa.model.v20190815;
import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.sofa.Endpoint;
/**
* @author auto create
* @version
*/
public class QueryLinkeBahamutIterationdetachreleaseRequest extends RpcAcsRequest<QueryLinkeBahamutIterationdetachreleaseResponse> {
private String overdueReason;
private Boolean overdueFastDev;
private List<String> iterationIdsRepeatLists;
private String releaseId;
private String iterationId;
private String overdueMes;
public QueryLinkeBahamutIterationdetachreleaseRequest() {
super("SOFA", "2019-08-15", "QueryLinkeBahamutIterationdetachrelease", "sofacafedeps");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public String getOverdueReason() {
return this.overdueReason;
}
public void setOverdueReason(String overdueReason) {
this.overdueReason = overdueReason;
if(overdueReason != null){
putBodyParameter("OverdueReason", overdueReason);
}
}
public Boolean getOverdueFastDev() {
return this.overdueFastDev;
}
public void setOverdueFastDev(Boolean overdueFastDev) {
this.overdueFastDev = overdueFastDev;
if(overdueFastDev != null){
putBodyParameter("OverdueFastDev", overdueFastDev.toString());
}
}
public List<String> getIterationIdsRepeatLists() {
return this.iterationIdsRepeatLists;
}
public void setIterationIdsRepeatLists(List<String> iterationIdsRepeatLists) {
this.iterationIdsRepeatLists = iterationIdsRepeatLists;
if (iterationIdsRepeatLists != null) {
for (int i = 0; i < iterationIdsRepeatLists.size(); i++) {
putBodyParameter("IterationIdsRepeatList." + (i + 1) , iterationIdsRepeatLists.get(i));
}
}
}
public String getReleaseId() {
return this.releaseId;
}
public void setReleaseId(String releaseId) {
this.releaseId = releaseId;
if(releaseId != null){
putBodyParameter("ReleaseId", releaseId);
}
}
public String getIterationId() {
return this.iterationId;
}
public void setIterationId(String iterationId) {
this.iterationId = iterationId;
if(iterationId != null){
putBodyParameter("IterationId", iterationId);
}
}
public String getOverdueMes() {
return this.overdueMes;
}
public void setOverdueMes(String overdueMes) {
this.overdueMes = overdueMes;
if(overdueMes != null){
putBodyParameter("OverdueMes", overdueMes);
}
}
@Override
public Class<QueryLinkeBahamutIterationdetachreleaseResponse> getResponseClass() {
return QueryLinkeBahamutIterationdetachreleaseResponse.class;
}
}
|
[
"[email protected]"
] | |
e531f412439062ea148c7c2087a9d7830a7f70dc
|
e0d52bbf5d1b657afb07795bf456e8e680302980
|
/ModelibraWicket/src/org/modelibra/wicket/container/DmPageableListView.java
|
c074b49453de0179b944c320ad7774e30821a753
|
[
"Apache-2.0"
] |
permissive
|
youp911/modelibra
|
acc391da16ab6b14616cd7bda094506a05414b0f
|
00387bd9f1f82df3b7d844650e5a57d2060a2ec7
|
refs/heads/master
| 2021-01-25T09:59:19.388394
| 2011-11-24T21:46:26
| 2011-11-24T21:46:26
| 42,008,889
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,441
|
java
|
/*
* Modelibra
*
* 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.modelibra.wicket.container;
import java.util.List;
import org.apache.wicket.markup.html.list.PageableListView;
import org.apache.wicket.model.PropertyModel;
import org.modelibra.IEntities;
import org.modelibra.wicket.security.AppSession;
import org.modelibra.wicket.util.LocalizedText;
import org.modelibra.wicket.view.View;
import org.modelibra.wicket.view.ViewModel;
/**
* Dm pageable list view.
*
* @author Dzenan Ridjanovic
* @author Vedad Kirlic
* @version 2008-09-30
*/
@SuppressWarnings("serial")
public abstract class DmPageableListView extends PageableListView {
/**
* Constructs a dmLite pageable list view.
*
* @param wicketId
* Wicket id
* @param list
* list
* @param pageBlockSize
* page block size
*/
public DmPageableListView(final String wicketId, final List<?> list,
final int pageBlockSize) {
super(wicketId, list, pageBlockSize);
}
/**
* Constructs a dmLite pageable list view.
*
* @param wicketId
* Wicket id
* @param entities
* entities
* @param pageBlockSize
* page block size
*/
public DmPageableListView(final String wicketId,
final IEntities<?> entities, final int pageBlockSize) {
super(wicketId, new PropertyModel(entities, "entityList"),
pageBlockSize);
}
/**
* Constructs a dmLite pageable list view.
*
* @param viewModel
* view model
* @param view
* view
* @param pageBlockSize
* page block size
*/
public DmPageableListView(final ViewModel viewModel, final View view,
final int pageBlockSize) {
super(view.getWicketId(), new PropertyModel(viewModel.getEntities(),
"list"), pageBlockSize);
}
/**
* Gets an application session.
*
* @return application session
*/
public AppSession getAppSession() {
return (AppSession) getSession();
}
/**
* Adds an error based on the error key.
*
* @param key
* error key
*/
protected void addErrorByKey(String key) {
String validationError = LocalizedText.getText(this, key);
error(validationError);
}
/**
* Adds errors based on error keys.
*
* @param entities
* entities
*/
protected void addErrorsByKeys(IEntities<?> entities) {
List<String> errorKeys = entities.getErrors().getKeyList();
for (String errorKey : errorKeys) {
String errorMsg = LocalizedText.getErrorMessage(this, errorKey);
error(errorMsg);
}
}
/**
* Adds errors.
*
* @param entities
* entities
*/
protected void addErrors(IEntities<?> entities) {
List<String> errorMsgs = entities.getErrors().getErrorList();
for (String errorMsg : errorMsgs) {
error(errorMsg);
}
}
}
|
[
"dzenanr@c25eb2fc-9753-11de-83f8-39e71e4dc75d"
] |
dzenanr@c25eb2fc-9753-11de-83f8-39e71e4dc75d
|
d6812034734d281db94908aff13c4ebd2b90847f
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XRENDERING-418-5-25-FEMO-WeightedSum:TestLen:CallDiversity/org/xwiki/rendering/internal/renderer/xhtml/image/AbstractXHTMLImageTypeRenderer_ESTest_scaffolding.java
|
c9ddfffc85bb13e2715a6501336b8e9b6700b7ff
|
[] |
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
| 484
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sat Apr 04 04:07:12 UTC 2020
*/
package org.xwiki.rendering.internal.renderer.xhtml.image;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class AbstractXHTMLImageTypeRenderer_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"[email protected]"
] | |
4624c799ef602e09d913e0dd782e97fa24b4b8d0
|
1293ffb40081cebe2cfe9433d06bb9784a7f37ed
|
/Parallel Projects BackUp/forestmanagementsystemusingcollection/src/main/java/com/capgemini/forestmanagementsystemusingcollection/service/ProductService.java
|
af36a7706d4d9c16754368f69e29b90d4e46e2c2
|
[] |
no_license
|
Omkarnaik571/Omkar
|
4b93a78e8525248391309aad78d7e21100c8c8a2
|
d6826adeda0719b0e346dc5a60c57e3e69ddc050
|
refs/heads/master
| 2022-07-01T10:18:18.604812
| 2020-05-13T15:41:00
| 2020-05-13T15:41:00
| 225,843,596
| 1
| 0
| null | 2022-06-21T02:49:05
| 2019-12-04T10:46:58
|
Java
|
UTF-8
|
Java
| false
| false
| 1,014
|
java
|
package com.capgemini.forestmanagementsystemusingcollection.service;
import java.util.TreeMap;
import com.capgemini.forestmanagementsystemusingcollection.dto.ProductDetails;
import com.capgemini.forestmanagementsystemusingcollection.exceptions.ExceptionWhileDeleting;
import com.capgemini.forestmanagementsystemusingcollection.exceptions.ExceptionWhileDisplaying;
import com.capgemini.forestmanagementsystemusingcollection.exceptions.ExceptionWhileInserting;
import com.capgemini.forestmanagementsystemusingcollection.exceptions.ExceptionWhileModifying;
public interface ProductService {
public boolean addProduct(ProductDetails l) throws ExceptionWhileInserting;
public boolean removeProduct(Integer landId) throws ExceptionWhileDeleting;
public TreeMap<Integer,ProductDetails> displayAllProduct() throws ExceptionWhileDisplaying;
public boolean modifyProduct(ProductDetails p) throws ExceptionWhileModifying;
public ProductDetails getSingleProduct(Integer id) throws ExceptionWhileDisplaying;
}
|
[
"[email protected]"
] | |
84623979add298f3f783adc2cd005dee8cc7633f
|
a5d626f6eba5d127c43e3cba1bff8d77e9ac977f
|
/xdht-disease-sys/src/main/java/com/xdht/disease/sys/dao/RecordIndividualProtectiveEquipmentMapper.java
|
2e92f34bc77a27dd0ad944ba490691526e964b43
|
[] |
no_license
|
liangzhifu/xdht-disease
|
1ede89df37893b2e660159ba454b07a4208e629b
|
cd92f0c6eca713c1e490712d957765e54b43b726
|
refs/heads/master
| 2022-07-08T00:11:12.113321
| 2019-01-21T07:53:40
| 2019-01-21T07:53:40
| 135,237,897
| 0
| 8
| null | 2022-06-29T16:46:08
| 2018-05-29T03:43:39
|
Java
|
UTF-8
|
Java
| false
| false
| 464
|
java
|
package com.xdht.disease.sys.dao;
import com.xdht.disease.common.core.Mapper;
import com.xdht.disease.sys.model.RecordIndividualProtectiveEquipment;
import java.util.Map;
public interface RecordIndividualProtectiveEquipmentMapper extends Mapper<RecordIndividualProtectiveEquipment> {
/**
* 查询个体防护用品调查表
* @param id 记录表主键id
* @return 返回结果
*/
Map<String,Object> selectRecordBySceneId(Long id);
}
|
[
"[email protected]"
] | |
7c8df67f93f2305fe160f71c7ae7ccb64070bc18
|
a16369facaad30e8560ee8f85770375e710223f7
|
/jetsencloud/src/main/java/com/chanlin/jetsencloud/util/SystemShare.java
|
00b92dd3cca6634c9455699621597275305df507
|
[] |
no_license
|
jecn/jetsen
|
c595bf36b255a0624a0daf07829e9be87f904243
|
bad286f723b26aa9e48016b4b704499df57e514f
|
refs/heads/master
| 2021-05-14T03:39:38.096781
| 2020-04-09T08:35:10
| 2020-04-09T08:35:10
| 116,622,373
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,690
|
java
|
package com.chanlin.jetsencloud.util;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by ChanLin on 2017/11/20.
* ProtectEyes
* TODO:
*/
public class SystemShare {
private static final String PREFIX_NAME = "jetsen_catch";
/**
* 保存String类型数据
*
* @param context
* @param key
* @param value
*/
public static void setSettingString(Context context, String key,
String value) {
SharedPreferences clientPreferences = context.getSharedPreferences(
PREFIX_NAME, Context.MODE_MULTI_PROCESS);
SharedPreferences.Editor prefEditor = clientPreferences.edit();
prefEditor.putString(key, value);
prefEditor.commit();
}
/**
* 获取String类型数据
*
* @param context
*/
public static String getSettingString(Context context, String strKey) {
SharedPreferences clientPreferences = context.getSharedPreferences(
PREFIX_NAME, Context.MODE_MULTI_PROCESS);
String strValue = clientPreferences.getString(strKey, "");
return strValue;
}
/**
* 删除String类型数据
*
* @param context
*/
public static void ClearSettingString(Context context, String strKey) {
SharedPreferences clientPreferences = context.getSharedPreferences(
PREFIX_NAME, Context.MODE_MULTI_PROCESS);
SharedPreferences.Editor prefEditor = clientPreferences.edit();
prefEditor.remove(strKey);
prefEditor.commit();
}
/**
* 保存boolean类型数据
*
* @param context
*/
public static void setSettingBoolean(Context context, String strKey,
boolean value) {
SharedPreferences clientPreferences = context.getSharedPreferences(
PREFIX_NAME, Context.MODE_MULTI_PROCESS);
SharedPreferences.Editor prefEditor = clientPreferences.edit();
prefEditor.putBoolean(strKey, value);
prefEditor.commit();
}
/**
* 获取boolean类型数据
*
* @param context
*/
public static boolean getSettingBoolean(Context context, String strKey) {
SharedPreferences clientPreferences = context.getSharedPreferences(
PREFIX_NAME, Context.MODE_MULTI_PROCESS);
boolean value = clientPreferences.getBoolean(strKey, false);
return value;
}
public static boolean getSettingBoolean(Context context, String strKey,
boolean value) {
SharedPreferences clientPreferences = context.getSharedPreferences(
PREFIX_NAME, Context.MODE_MULTI_PROCESS);
boolean ret = clientPreferences.getBoolean(strKey, value);
return ret;
}
/**
* 保存int类型数据
*
* @param context
* @param value
*/
public static void setSettingInt(Context context, String strKey, int value) {
SharedPreferences clientPreferences = context.getSharedPreferences(
PREFIX_NAME, Context.MODE_MULTI_PROCESS);
SharedPreferences.Editor prefEditor = clientPreferences.edit();
prefEditor.putInt(strKey, value);
prefEditor.commit();
}
/**
* 获取int类型数据
*
* @param context
*/
public static int getSettingInt(Context context, String strKey) {
SharedPreferences clientPreferences = context.getSharedPreferences(
PREFIX_NAME, Context.MODE_MULTI_PROCESS);
int value = clientPreferences.getInt(strKey, 0);
return value;
}
}
|
[
"[email protected]"
] | |
dad723a0adb4021b45fd368b013466f7785a3688
|
54f352a242a8ad6ff5516703e91da61e08d9a9e6
|
/Source Codes/AtCoder/arc058/A/1677896.java
|
fd8c9b540767c498fdb2cf57c890aa8788912fdd
|
[] |
no_license
|
Kawser-nerd/CLCDSA
|
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
|
aee32551795763b54acb26856ab239370cac4e75
|
refs/heads/master
| 2022-02-09T11:08:56.588303
| 2022-01-26T18:53:40
| 2022-01-26T18:53:40
| 211,783,197
| 23
| 9
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,298
|
java
|
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Queue;
import java.util.Scanner;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class a {
public a(int i, int j, int k) {
p1 = i;
p2 = j;
length = k;
}
int p1;
int p2;
int length;
}
public class Main {
static boolean debug = true;
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) throws Exception {
int N=sc.nextInt();
int k=sc.nextInt();
Set<Integer> s=new HashSet();
for(int i=0;i<k;i++)
s.add(sc.nextInt());
System.out.println(helper(N,s));
}
private static int helper(int n, Set<Integer> s) {
// TODO Auto-generated method stub
while(true){
String str=""+n;
boolean tag=true;
for(char c:str.toCharArray()){
if(s.contains(c-'0')){
tag=false;
break;
}
}
if(tag)
return n;
++n;
}
}
private static int helper(int[] arr) {
// TODO Auto-generated method stub
int res = 0;
for (int i = 1; i < arr.length - 1; i++) {
if (arr[i] == i && arr[i + 1] == (i + 1)) {
int tmp = arr[i];
arr[i] = arr[i + 1];
arr[i + 1] = tmp;
++i;
++res;
}
}
for (int i = 1; i < arr.length; i++) {
if (arr[i] == i) {
++res;
}
}
return res;
}
private static void print(String string) {
// TODO Auto-generated method stub
if (debug)
System.out.println(string);
}
private static void print(int[] data) {
if (debug) {
for (int i = 0; i < data.length; i++)
System.out.println(i + ":" + data[i]);
}
}
private static void print(String[] data) {
if (debug) {
for (int i = 0; i < data.length; i++)
System.out.println(i + ":" + data[i]);
}
}
private static void print(char[] data) {
if (debug) {
for (int i = 0; i < data.length; i++)
System.out.println(i + ":" + data[i]);
}
}
private static void print(double[] data) {
if (debug) {
for (int i = 0; i < data.length; i++)
System.out.println(i + ":" + data[i]);
}
}
private static void print(long[] data) {
if (debug) {
for (int i = 0; i < data.length; i++)
System.out.println(i + ":" + data[i]);
}
}
private static void print(int[][] data) {
if (debug) {
for (int i = 0; i < data.length; i++) {
for (int j = 0; j < data[0].length; j++) {
System.out.print(data[i][j] + " ");
}
System.out.println();
}
}
}
private static void print(long[][] data) {
if (debug) {
for (int i = 0; i < data.length; i++) {
for (int j = 0; j < data[0].length; j++) {
System.out.print(data[i][j] + " ");
}
System.out.println();
}
}
}
private static void print(char[][] data) {
if (debug) {
for (int i = 0; i < data.length; i++) {
for (int j = 0; j < data[0].length; j++) {
System.out.print(i + " " + j + ":" + data[i][j] + " ");
}
System.out.println();
}
}
}
private static void print(String[][] data) {
if (debug) {
for (int i = 0; i < data.length; i++) {
for (int j = 0; j < data[0].length; j++) {
System.out.print(i + " " + j + ":" + data[i][j] + " ");
}
System.out.println();
}
}
}
private static void print(double[][] data) {
if (debug) {
for (int i = 0; i < data[0].length; i++) {
for (int j = 0; j < data.length; j++) {
System.out.print(i + " " + j + ":" + data[i][j] + " ");
}
System.out.println();
}
}
}
public static void inPutData(char[][] c) {
for (int i = 0; i < c.length; i++) {
c[i] = sc.nextLine().toCharArray();
}
}
} Note: ./Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
|
[
"[email protected]"
] | |
5318bcb173702936088ba638b1b37394c6adbaf5
|
73267be654cd1fd76cf2cb9ea3a75630d9f58a41
|
/services/cdm/src/main/java/com/huaweicloud/sdk/cdm/v1/model/ShowJobsResponse.java
|
588030307111f944b8dd7c74053ea4280fe5d592
|
[
"Apache-2.0"
] |
permissive
|
huaweicloud/huaweicloud-sdk-java-v3
|
51b32a451fac321a0affe2176663fed8a9cd8042
|
2f8543d0d037b35c2664298ba39a89cc9d8ed9a3
|
refs/heads/master
| 2023-08-29T06:50:15.642693
| 2023-08-24T08:34:48
| 2023-08-24T08:34:48
| 262,207,545
| 91
| 57
|
NOASSERTION
| 2023-09-08T12:24:55
| 2020-05-08T02:27:00
|
Java
|
UTF-8
|
Java
| false
| false
| 4,034
|
java
|
package com.huaweicloud.sdk.cdm.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.huaweicloud.sdk.core.SdkResponse;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.function.Consumer;
/**
* Response Object
*/
public class ShowJobsResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "total")
private Integer total;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "jobs")
private List<Job> jobs = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "page_no")
private Integer pageNo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "page_size")
private Integer pageSize;
public ShowJobsResponse withTotal(Integer total) {
this.total = total;
return this;
}
/**
* 作业数,查询单个作业时为0
* @return total
*/
public Integer getTotal() {
return total;
}
public void setTotal(Integer total) {
this.total = total;
}
public ShowJobsResponse withJobs(List<Job> jobs) {
this.jobs = jobs;
return this;
}
public ShowJobsResponse addJobsItem(Job jobsItem) {
if (this.jobs == null) {
this.jobs = new ArrayList<>();
}
this.jobs.add(jobsItem);
return this;
}
public ShowJobsResponse withJobs(Consumer<List<Job>> jobsSetter) {
if (this.jobs == null) {
this.jobs = new ArrayList<>();
}
jobsSetter.accept(this.jobs);
return this;
}
/**
* 作业列表,请参见jobs参数说明
* @return jobs
*/
public List<Job> getJobs() {
return jobs;
}
public void setJobs(List<Job> jobs) {
this.jobs = jobs;
}
public ShowJobsResponse withPageNo(Integer pageNo) {
this.pageNo = pageNo;
return this;
}
/**
* 返回指定页号的作业
* @return pageNo
*/
public Integer getPageNo() {
return pageNo;
}
public void setPageNo(Integer pageNo) {
this.pageNo = pageNo;
}
public ShowJobsResponse withPageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* 每页作业数
* @return pageSize
*/
public Integer getPageSize() {
return pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ShowJobsResponse that = (ShowJobsResponse) obj;
return Objects.equals(this.total, that.total) && Objects.equals(this.jobs, that.jobs)
&& Objects.equals(this.pageNo, that.pageNo) && Objects.equals(this.pageSize, that.pageSize);
}
@Override
public int hashCode() {
return Objects.hash(total, jobs, pageNo, pageSize);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ShowJobsResponse {\n");
sb.append(" total: ").append(toIndentedString(total)).append("\n");
sb.append(" jobs: ").append(toIndentedString(jobs)).append("\n");
sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).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 ");
}
}
|
[
"[email protected]"
] | |
e5219f2936bb8b288cecfaef9498d55e31c3913e
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/16/16_e59b91d017c7d0e8190fdc5fd4626ad0286efbe9/EmbeddedFiles/16_e59b91d017c7d0e8190fdc5fd4626ad0286efbe9_EmbeddedFiles_s.java
|
f6314fd0b8d26f5ab91c5e921f843c591017434f
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 1,897
|
java
|
package pt.go2.fileio;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import pt.go2.application.Resources;
import pt.go2.response.AbstractResponse;
import pt.go2.response.GzipResponse;
public class EmbeddedFiles implements FileSystemInterface {
final private Map<String, AbstractResponse> pages = new HashMap<>();
public EmbeddedFiles(Configuration config) throws IOException {
final byte[] index, ajax, robots, map, css;
index = SmartTagParser.read(Resources.class
.getResourceAsStream("/index.html"));
ajax = SmartTagParser.read(Resources.class
.getResourceAsStream("/ajax.js"));
robots = SmartTagParser.read(Resources.class
.getResourceAsStream("/robots.txt"));
map = SmartTagParser.read(Resources.class
.getResourceAsStream("/map.txt"));
css = SmartTagParser.read(Resources.class
.getResourceAsStream("/screen.css"));
this.pages.put("/", new GzipResponse(index, ".html"));
this.pages.put("/ajax.js", new GzipResponse(ajax, ".js"));
this.pages.put("/robots.txt", new GzipResponse(robots, ".txt"));
this.pages.put("/sitemap.xml", new GzipResponse(map, ".xml"));
this.pages.put("/screen.css", new GzipResponse(css, ".css"));
if (!config.GOOGLE_VERIFICATION.isEmpty()) {
this.pages
.put(config.GOOGLE_VERIFICATION,
new GzipResponse(
("/google-site-verification: " + config.GOOGLE_VERIFICATION)
.getBytes(), ".html"));
}
}
@Override
public void start() {
}
@Override
public void stop() {
}
@Override
public AbstractResponse getFile(String filename) {
return pages.get(filename);
}
@Override
public List<String> browse() {
List<String> result = new ArrayList<>(pages.size());
result.addAll(pages.keySet());
return result;
}
}
|
[
"[email protected]"
] | |
c1667dea2eb5ffe966eef5b3dd62fc0bdcebf3fd
|
159997bda907cb16b3bd01838e309689d6041b24
|
/src/main/java/curso/springboot/controller/ReportUtil.java
|
afde0220ce529b4626d7f73bda7325826f8ad2a2
|
[] |
no_license
|
GuilhermeJWT/SpringMvc-Jenkins-Thymeleaf-Heroku
|
b05e09225d2814eb6f568bd95d5c9a77aa0726e0
|
1db62f7a941cbf9a45a40372d4c0b4d4ec698d7b
|
refs/heads/main
| 2023-06-16T04:09:20.321173
| 2021-07-14T22:02:12
| 2021-07-14T22:02:12
| 386,086,482
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,341
|
java
|
package curso.springboot.controller;
import java.io.File;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import javax.servlet.ServletContext;
import org.springframework.stereotype.Component;
import net.sf.jasperreports.engine.JasperExportManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
@Component
public class ReportUtil implements Serializable{
private static final long serialVersionUID = 1L;
/*Retorna nosso PDF em Byte para download no navegador*/
public byte[] gerarRelatorio (List listDados, String relatorio, ServletContext servletContext) throws Exception{
//cria a lista de dados para o relatorio com nossa lista de objetos para imprimir
JRBeanCollectionDataSource jrbcds = new JRBeanCollectionDataSource(listDados);
//carregar o caminho do arquivo jasper compilado
String caminhoJasper = servletContext.getRealPath("relatorios")
+ File.separator + relatorio + ".jasper";
//Carrega o arquivo Jasper passando os Dados
JasperPrint impressoraJasper = JasperFillManager.fillReport(caminhoJasper, new HashMap(), jrbcds);
//Exporta para byte[] para fazer o download do PDF
return JasperExportManager.exportReportToPdf(impressoraJasper);
}
}
|
[
"[email protected]"
] | |
49d70fbdcccf63552a496983111ab0a63f0309d0
|
8dba0a2b37be0545149586516df1cffa85d9e383
|
/app/src/main/java/com/example/mrlanguageturkish/c_serials_3_31.java
|
0a5d7c706035b6fd15fb9b4cc77198697b16a588
|
[] |
no_license
|
ghomdoust/MrLanguageTurkish
|
9e2ee449ba77d99057f9e3903696f791ef91ce13
|
ae69f0922d06a9537ec7a5b4b5a05760637f6760
|
refs/heads/master
| 2023-03-30T20:38:01.303512
| 2021-04-06T23:16:20
| 2021-04-06T23:16:20
| 355,352,171
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,608
|
java
|
package com.example.mrlanguageturkish;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.app.DownloadManager;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.webkit.DownloadListener;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.FrameLayout;
import android.widget.ProgressBar;
import android.widget.Toast;
import ir.aghayezaban.mrlanguageturkish.R;
public class c_serials_3_31 extends AppCompatActivity {
WebView mWebView;
ProgressBar progressBar;
@SuppressLint("SetJavaScriptEnabled")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.c_serials_3_31);
progressBar = (ProgressBar) findViewById(R.id.progressbar);
mWebView = (WebView) findViewById(R.id.mWebView);
progressBar.setVisibility(View.VISIBLE);
mWebView.setWebViewClient(new c_serials_3_31.Browser_home());
mWebView.setWebChromeClient(new c_serials_3_31.MyChrome());
WebSettings webSettings = mWebView.getSettings();
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setLoadWithOverviewMode(true);
mWebView.getSettings().setUseWideViewPort(true);
mWebView.getSettings().setSupportZoom(true);
mWebView.getSettings().setBuiltInZoomControls(true);
mWebView.getSettings().setDisplayZoomControls(false);
mWebView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
mWebView.setScrollbarFadingEnabled(false);
webSettings.setJavaScriptEnabled(true);
webSettings.setAllowFileAccess(true);
webSettings.setAppCacheEnabled(true);
loadWebsite();
}
private void loadWebsite() {
ConnectivityManager cm = (ConnectivityManager) getApplication().getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo netInfo = cm.getActiveNetworkInfo();
if (netInfo != null && netInfo.isConnectedOrConnecting()) {
mWebView.loadUrl("https://aspb17.cdn.asset.aparat.com/aparat-video/b3e9a9644621c65678c2ea5829b100e222516467-480p.mp4");
} else {
mWebView.setVisibility(View.GONE);
}
mWebView.setDownloadListener(new DownloadListener() {
@Override
public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength) {
DownloadManager.Request myRequest = new DownloadManager.Request(Uri.parse(url));
myRequest.allowScanningByMediaScanner();
myRequest.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
DownloadManager myManager = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);
myManager.enqueue(myRequest);
Toast.makeText(c_serials_3_31.this,"ویدیوی شما در حال بارگزاریست", Toast.LENGTH_SHORT).show();
}
});
}
class Browser_home extends WebViewClient {
Browser_home() {
}
@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
super.onPageStarted(view, url, favicon);
}
@Override
public void onPageFinished(WebView view, String url) {
setTitle(view.getTitle());
progressBar.setVisibility(View.GONE);
super.onPageFinished(view, url);
}
}
private class MyChrome extends WebChromeClient {
private View mCustomView;
private WebChromeClient.CustomViewCallback mCustomViewCallback;
protected FrameLayout mFullscreenContainer;
private int mOriginalOrientation;
private int mOriginalSystemUiVisibility;
MyChrome() {}
public Bitmap getDefaultVideoPoster()
{
if (mCustomView == null) {
return null;
}
return BitmapFactory.decodeResource(getApplicationContext().getResources(), 2130837573);
}
public void onHideCustomView()
{
((FrameLayout)getWindow().getDecorView()).removeView(this.mCustomView);
this.mCustomView = null;
getWindow().getDecorView().setSystemUiVisibility(this.mOriginalSystemUiVisibility);
setRequestedOrientation(this.mOriginalOrientation);
this.mCustomViewCallback.onCustomViewHidden();
this.mCustomViewCallback = null;
}
public void onShowCustomView(View paramView, WebChromeClient.CustomViewCallback paramCustomViewCallback)
{
if (this.mCustomView != null)
{
onHideCustomView();
return;
}
this.mCustomView = paramView;
this.mOriginalSystemUiVisibility = getWindow().getDecorView().getSystemUiVisibility();
this.mOriginalOrientation = getRequestedOrientation();
this.mCustomViewCallback = paramCustomViewCallback;
((FrameLayout)getWindow().getDecorView()).addView(this.mCustomView, new FrameLayout.LayoutParams(-1, -1));
getWindow().getDecorView().setSystemUiVisibility(3846);
}
}
}
|
[
"[email protected]"
] | |
5900c34f247ac6196e606fcc6b69452dcef39092
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XRENDERING-422-19-14-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/xwiki/rendering/wikimodel/xhtml/filter/XHTMLWhitespaceXMLFilter_ESTest_scaffolding.java
|
ff873ba06fa4cf18c49a27783d35fb03bc2271b5
|
[] |
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
| 471
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Mon Apr 06 16:07:14 UTC 2020
*/
package org.xwiki.rendering.wikimodel.xhtml.filter;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class XHTMLWhitespaceXMLFilter_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"[email protected]"
] | |
563a0a5fe971f10576515cea288810878d873d45
|
62e3f2e7c08c6e005c63f51bbfa61a637b45ac20
|
/B-Genius_AdFree/app/src/main/java/com/google/android/gms/common/internal/t.java
|
c379b7403392c847eec299dac33d9085dc8e9fb0
|
[] |
no_license
|
prasad-ankit/B-Genius
|
669df9d9f3746e34c3e12261e1a55cf5c59dd1c6
|
1139ec152b743e30ec0af54fe1f746b57b0152bf
|
refs/heads/master
| 2021-01-22T21:00:04.735938
| 2016-05-20T19:03:46
| 2016-05-20T19:03:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 855
|
java
|
package com.google.android.gms.common.internal;
import android.content.Context;
import android.content.ServiceConnection;
public abstract class t
{
private static final Object a = new Object();
private static t b;
public static t a(Context paramContext)
{
synchronized (a)
{
if (b == null)
b = new u(paramContext.getApplicationContext());
return b;
}
}
public abstract boolean a(String paramString1, ServiceConnection paramServiceConnection, String paramString2);
public abstract void b(String paramString1, ServiceConnection paramServiceConnection, String paramString2);
}
/* Location: C:\Users\KSHITIZ GUPTA\Downloads\apktool-install-windws\dex2jar-0.0.9.15\dex2jar-0.0.9.15\classes_dex2jar.jar
* Qualified Name: com.google.android.gms.common.internal.t
* JD-Core Version: 0.6.0
*/
|
[
"[email protected]"
] | |
e627934d553b7a198b2ed6d25205887992a15fe9
|
93caab98ba5cb7208dbd8fb80081f927c84e68df
|
/Battleship/src/battleship/Board.java
|
021f6de24aa834614f2425e2f7a55c6552f876cc
|
[] |
no_license
|
prudvikomaram/Java-Projects
|
7b63919f43ea080a5f45327597977fbfa69463f1
|
1e1091226bbd35aeda8a137e6996f5b66a9da43d
|
refs/heads/master
| 2020-10-01T08:13:32.066099
| 2016-05-04T17:44:55
| 2016-05-04T17:44:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,822
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package battleship;
import java.util.Random;
/**
*
* @author leijurv
*/
public class Board {
int[][] board;
public Board(Board b){
board=new int[b.board.length][b.board[0].length];
for (int i=0; i<b.board.length; i++){
System.arraycopy(b.board[i],0,board[i],0,b.board[i].length);
}
}
public Board(int[][] bo){
Board b=new Board();
b.board=bo;
board=(new Board(b)).board;
}
public Board(){
board=new int[10][10];
}
public int[] place(int length,int[][] filt,boolean need){
Random r=new Random();
int[][] filter=new int[10][10];
for (int XX=0; XX<10; XX++){
System.arraycopy(filt[XX],0,filter[XX],0,10);
}
for (int ii=0; ii<200; ii++){
//System.out.println(new Board(filt));
//for (int xp=0; xp<2; xp++){
int xp=r.nextInt(2);
int yp=1-xp;
int x=r.nextInt(10-xp*(length-1));
int y=r.nextInt(10-yp*(length-1));
x-=xp;
y-=yp;
boolean w=true;
int k;
for (k=0; k<length; k++){
x+=xp;
y+=yp;
if (x>9){
w=false;
break;
}
if (y>9){
w=false;
break;
}
if (isShip(x,y)||isShip(x+1,y)||isShip(x,y+1)||isShip(x-1,y)||isShip(x,y-1)){
w=false;
break;
}
//System.out.println(x+","+y+","+filter[x][y]);
if (filter[x][y]==-1){
w=false;
break;
}
filter[x][y]+=2;
}
if (w){
if (need){
for (int i=0; i<board.length; i++){
for (int j=0; j<board[0].length; j++){
if (filter[i][j]==1&&board[i][j]!=1&&filter[i][j]<2){
w=false;
}
}
}
}
if (w){
for (int i=0; i<board.length; i++){
for (int j=0; j<board[0].length; j++){
if (filter[i][j]>1){
board[i][j]=1;
}
}
}
return new int[]{x,y};
}
}
/*
for (int i=k-1; i>0; i--){
x-=xp;
y-=yp;
if (filter[x][y]>1){
filter[x][y]-=2;
}else{
System.out.println(i+","+k);
}
}*/
for (int i=0; i<10; i++){
for (int j=0; j<10; j++){
if (filter[i][j]>1){
filter[i][j]-=2;
}
}
}
}
return null;
}
@Override
public String toString(){
String res="";
for (int y=0; y<board[0].length; y++){
for (int x=0; x<board.length; x++){
//res=res+(board[x][y]==-1?"M":(board[x][y]==1?"H":"O"));
res=res+board[x][y];
}
res=res+"\n";
}
return res;
}
public boolean isShip(int x,int y){
if (x<0||x>9){
return false;
}
if (y<0||y>9){
return false;
}
return board[x][y]==1;
}
}
|
[
"[email protected]"
] | |
0aa3f9a26514d296b20ec965195e8531a71d53e4
|
87c29953a8324ad994daf8c05ca944de4f001edc
|
/elo7/src/br/com/elo7/pattern/PagamentoViaMoip.java
|
bd07c4f08563d29b555ead102c549d5a692885a7
|
[] |
no_license
|
luiz158/tdc-sao-paulo-2014
|
3893224e87c105437a88a81fd3f82d25d6855a16
|
4ee64b7bfad4867afec54046d4a17e18fa938b72
|
refs/heads/master
| 2021-01-18T02:24:12.966817
| 2014-08-27T13:27:48
| 2014-08-27T13:27:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 366
|
java
|
package br.com.elo7.pattern;
public class PagamentoViaMoip implements RegraDePagamento {
private Jaiminho jaiminho;
public PagamentoViaMoip(Jaiminho jaiminho) {
this.jaiminho = jaiminho;
}
public void paga() {
System.out.println("Conecta no Moip");
System.out.println("Dados do usuario no Moip");
System.out.println("Faz pagamento no Moip");
}
}
|
[
"[email protected]"
] | |
65f27db7c0e2ea7642b03f81c4a9e33f32c52785
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_e1c157f6b9ef2f2da94caaedbbc1b0367adaef01/PlugIn/2_e1c157f6b9ef2f2da94caaedbbc1b0367adaef01_PlugIn_s.java
|
0892bfa2eabaa066b8688133ff5eb074153c4a75
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 4,515
|
java
|
/**
* License: GPL
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License 2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package mpicbg.ij.clahe;
import java.util.ArrayList;
import ij.IJ;
import ij.ImagePlus;
import ij.Undo;
import ij.WindowManager;
import ij.gui.GenericDialog;
import ij.gui.Roi;
import ij.process.ByteProcessor;
/**
* &lsquot;Contrast Limited Adaptive Histogram Equalization&rsquot; as
* described in
*
* <br />BibTeX:
* <pre>
* @article{zuiderveld94,
* author = {Zuiderveld, Karel},
* title = {Contrast limited adaptive histogram equalization},
* book = {Graphics gems IV},
* year = {1994},
* isbn = {0-12-336155-9},
* pages = {474--485},
* publisher = {Academic Press Professional, Inc.},
* address = {San Diego, CA, USA},
* }
* </pre>
*
* @author Stephan Saalfeld <[email protected]>
* @version 0.3b
*/
public class PlugIn implements ij.plugin.PlugIn
{
static private int blockRadius = 63;
static private int bins = 255;
static private float slope = 3;
static private ByteProcessor mask = null;
static private boolean fast = true;
static private boolean composite = true;
/**
* Get setting through a dialog
*
* @param imp
* @return
*/
final static private boolean setup( final ImagePlus imp )
{
final ArrayList< Integer > ids = new ArrayList< Integer >();
final ArrayList< String > titles = new ArrayList< String >();
titles.add( "*None*" );
ids.add( -1 );
for ( final int id : WindowManager.getIDList() )
{
final ImagePlus impId = WindowManager.getImage( id );
if ( impId.getWidth() == imp.getWidth() && impId.getHeight() == imp.getHeight() )
{
titles.add( impId.getTitle() );
ids.add( id );
}
}
final GenericDialog gd = new GenericDialog( "CLAHE" );
gd.addNumericField( "blocksize : ", blockRadius * 2 + 1, 0 );
gd.addNumericField( "histogram bins : ", bins + 1, 0 );
gd.addNumericField( "maximum slope : ", slope, 2 );
gd.addChoice( "mask : ", titles.toArray( new String[ 0 ] ), titles.get( 0 ) );
gd.addCheckbox( "fast_(less_accurate)", fast );
if ( imp.getNChannels() > 1 )
gd.addCheckbox( "process_as_composite", composite );
gd.addHelp( "http://pacific.mpi-cbg.de/wiki/index.php/Enhance_Local_Contrast_(CLAHE)" );
gd.showDialog();
if ( gd.wasCanceled() ) return false;
blockRadius = ( ( int )gd.getNextNumber() - 1 ) / 2;
bins = ( int )gd.getNextNumber() - 1;
slope = ( float )gd.getNextNumber();
final int maskId = ids.get( gd.getNextChoiceIndex() );
if ( maskId != -1 ) mask = ( ByteProcessor )WindowManager.getImage( maskId ).getProcessor().convertToByte( true );
else mask = null;
fast = gd.getNextBoolean();
if ( imp.isComposite() )
composite = gd.getNextBoolean();
return true;
}
/**
* {@link PlugIn} access
*
* @param arg not yet used
*/
@Override
final public void run( final String arg )
{
final ImagePlus imp = IJ.getImage();
synchronized ( imp )
{
if ( !imp.isLocked() )
imp.lock();
else
{
IJ.error( "The image '" + imp.getTitle() + "' is in use currently.\nPlease wait until the process is done and try again." );
return;
}
}
if ( !setup( imp ) )
{
imp.unlock();
return;
}
Undo.setup( Undo.TRANSFORM, imp );
run( imp );
imp.unlock();
}
/**
* Process an {@link ImagePlus} with the static parameters. Create mask
* and bounding box from the {@link Roi} of that {@link ImagePlus} and
* the selected {@link #mask} if any.
*
* @param imp
*/
final static public void run( final ImagePlus imp )
{
if ( fast )
FastFlat.getInstance().run( imp, blockRadius, bins, slope, mask, composite );
else
Flat.getInstance().run( imp, blockRadius, bins, slope, mask, composite );
}
}
|
[
"[email protected]"
] | |
9af2c4ac838d7fe4e880dc7658da52994ee2d38e
|
853b0bec5bc9b5499925336c1f6959ae9ea4dccc
|
/wxzj2/src/com/yaltec/wxzj2/biz/draw/dao/BatchRefundDao.java
|
6991e184eefe29ffb08d91a667ea98660d6110a7
|
[] |
no_license
|
QuietClickCode/wxzj2
|
598e69af218da5218e2befcc948f353027b34447
|
c08061f7bbfaf616b32846e7ac1a171efcd0b33b
|
refs/heads/master
| 2020-06-28T20:59:48.715250
| 2019-08-03T06:11:38
| 2019-08-03T06:11:38
| 200,339,358
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,049
|
java
|
package com.yaltec.wxzj2.biz.draw.dao;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.yaltec.wxzj2.biz.draw.entity.CodeName;
import com.yaltec.wxzj2.biz.draw.entity.ShareAD;
import com.yaltec.wxzj2.biz.property.entity.Developer;
/**
*
* @ClassName: BatchRefundDao
* @Description: 批量退款Dao接口
*
* @author yangshanping
* @date 2016-8-23 下午02:46:48
*/
@Repository
public interface BatchRefundDao {
public List<CodeName> queryShareAD_LY2(Map<String, String> parasMap);
public List<CodeName> queryShareAD_LY(Map<String, String> parasMap);
public List<CodeName> queryShareAD_DY(String lybh);
public List<CodeName> queryShareAD_LC(Map<String, String> parasMap);
public List<CodeName> queryShareAD_FW(Map<String, String> parasMap);
public void saveRefund_PL(Map<String, String> parasMap);
public Developer getDeveloperBylybh(String lybh);
public List<ShareAD> QryExportShareAD(Map<String, String> parasMap);
}
|
[
"[email protected]"
] | |
9d7a3c2062f4f3420d9b45b10f8467cd53843242
|
baa246d5d13925a40b0b9d9bf8b68ebb7d5b48d3
|
/app/src/main/java/wrteam/ecommerce/app/helper/AppController.java
|
6587db1e0676251cfb24147aa1367ef81a53d7ba
|
[] |
no_license
|
Omender123/Ekart
|
9a85c4498bcde456926e87a93901b0ed3210e295
|
744323802cd0255a063f6a77284a285024417d2d
|
refs/heads/master
| 2022-12-28T12:33:03.247844
| 2020-10-21T05:21:36
| 2020-10-21T05:21:36
| 305,912,004
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,061
|
java
|
package wrteam.ecommerce.app.helper;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Toast;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.ImageLoader;
import com.android.volley.toolbox.Volley;
import wrteam.ecommerce.app.R;
public class AppController extends Application {
public static final String TAG = AppController.class.getSimpleName();
private RequestQueue mRequestQueue;
private SharedPreferences sharedPref;
private static AppController mInstance;
private com.android.volley.toolbox.ImageLoader mImageLoader;
AppEnvironment appEnvironment;
@Override
public void onCreate() {
super.onCreate();
mInstance = this;
appEnvironment = AppEnvironment.SANDBOX;
sharedPref = this.getSharedPreferences(getString(R.string.app_name), Context.MODE_PRIVATE);
FontsOverride.setDefaultFont(this, "DEFAULT", "lato.ttf");
FontsOverride.setDefaultFont(this, "MONOSPACE", "lato.ttf");
FontsOverride.setDefaultFont(this, "SERIF", "lato.ttf");
FontsOverride.setDefaultFont(this, "SANS_SERIF", "lato.ttf");
//AppSignatureHelper appSignatureHelper = new AppSignatureHelper(this);
//System.out.println("=====Application -> " + appSignatureHelper.getAppSignatures());
}
public AppEnvironment getAppEnvironment() {
return appEnvironment;
}
public void setAppEnvironment(AppEnvironment appEnvironment) {
this.appEnvironment = appEnvironment;
}
public static void setWindowFlag(final int bits, boolean on, Activity context) {
Window win = context.getWindow();
WindowManager.LayoutParams winParams = win.getAttributes();
if (on) {
winParams.flags |= bits;
} else {
winParams.flags &= ~bits;
}
win.setAttributes(winParams);
}
public static void TransparentStatus(Activity context) {
if (Build.VERSION.SDK_INT >= 19 && Build.VERSION.SDK_INT < 21) {
setWindowFlag(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, true, context);
}
if (Build.VERSION.SDK_INT >= 19) {
context.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
}
if (Build.VERSION.SDK_INT >= 21) {
setWindowFlag(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, false, context);
context.getWindow().setStatusBarColor(Color.TRANSPARENT);
//context.getWindow().setNavigationBarColor(Color.TRANSPARENT);
}
}
public void setData(String id, String value) {
sharedPref.edit().putString(id, value).apply();
}
public String getData(String id) {
return sharedPref.getString(id, "");
}
public String getDeviceToken() {
return sharedPref.getString("DEVICETOKEN", "");
}
public void setDeviceToken(String token) {
sharedPref.edit().putString("DEVICETOKEN", token).apply();
}
public Boolean getISLogin() {
return sharedPref.getBoolean("islogin", false);
}
public void setLogin(Boolean islogin) {
sharedPref.edit().putBoolean("islogin", islogin).apply();
}
public Boolean getIsVarified() {
return sharedPref.getBoolean("isvarified", false);
}
public void setVarified(Boolean isvarified) {
sharedPref.edit().putBoolean("isvarified", isvarified).apply();
}
public com.android.volley.toolbox.ImageLoader getImageLoader() {
getRequestQueue();
if (mImageLoader == null) {
mImageLoader = new ImageLoader(this.mRequestQueue, new BitmapCache());
}
return this.mImageLoader;
}
public static Boolean isConnected(final Activity activity) {
Boolean check = false;
ConnectivityManager ConnectionManager = (ConnectivityManager) activity.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo networkInfo = ConnectionManager.getActiveNetworkInfo();
LayoutInflater inflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
if (networkInfo != null && networkInfo.isConnected() == true) {
check = true;
} else {
Toast.makeText(activity, "Check Internet Connection..!!", Toast.LENGTH_SHORT).show();
/* new AlertDialog.Builder(activity)
.setView(v)
.setPositiveButton("Refresh", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
isConnected(activity);
}
})
.show();*/
}
return check;
}
public static synchronized AppController getInstance() {
return mInstance;
}
public RequestQueue getRequestQueue() {
if (mRequestQueue == null) {
mRequestQueue = Volley.newRequestQueue(getApplicationContext());
}
return mRequestQueue;
}
public <T> void addToRequestQueue(Request<T> req, String tag) {
// set the default tag if tag is empty
req.setTag(TextUtils.isEmpty(tag) ? TAG : tag);
getRequestQueue().add(req);
}
public <T> void addToRequestQueue(Request<T> req) {
req.setTag(TAG);
getRequestQueue().add(req);
}
public void cancelPendingRequests(Object tag) {
if (mRequestQueue != null) {
mRequestQueue.cancelAll(tag);
}
}
}
|
[
"[email protected]"
] | |
2bc975afa071c51d73eefb2a1e44fc762891708d
|
10a689229d6889f86bf6c4ad106caa433379bb49
|
/trunk/ihouse/ihouse/src/com/manyi/ihouse/assignee/model/AssigneeModel.java
|
4d4407f0451c8e76010fe1dda90fef5cb16f50e1
|
[] |
no_license
|
sanrentai/manyi
|
d9e64224bc18846410c4a986c3f2b4ee229b2a2e
|
c4c92f4dde1671027ff726ba6bbe6021421cd469
|
refs/heads/master
| 2020-03-12T19:30:47.242536
| 2015-04-10T08:40:20
| 2015-04-10T08:40:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,012
|
java
|
package com.manyi.ihouse.assignee.model;
public class AssigneeModel {
/**
* ID
*/
private int id;
/**
* 经纪人姓名
*/
private String name;
/**
* 经纪人编号
*/
private String serialNumber;
/**
* 手机号码
*/
private String mobile;
/**
* 备注
*/
private String information;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSerialNumber() {
return serialNumber;
}
public void setSerialNumber(String serialNumber) {
this.serialNumber = serialNumber;
}
public String getMobile() {
return mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public String getInformation() {
return information;
}
public void setInformation(String information) {
this.information = information;
}
}
|
[
"[email protected]"
] | |
988cb668c863323390989de95fb7f73b7b5cfc0e
|
d4d1d06fc32cd788b48066a7e99e6d1589899c73
|
/src/main/java/ivorius/yegamolchattels/client/rendering/ModelWardrobe.java
|
9fc3452efb43161b1834ab1859b8d918360a6bd7
|
[
"MIT"
] |
permissive
|
Ivorforce/YeGamolChattels
|
0fb918ea646a744007224df14ba06ef334248509
|
36aca1700b60d722680feff5e54076977dfd0783
|
refs/heads/master
| 2023-08-24T05:44:42.719684
| 2022-01-13T23:04:03
| 2022-01-13T23:04:03
| 21,396,460
| 8
| 11
| null | 2015-05-17T13:59:58
| 2014-07-01T17:25:15
|
Java
|
UTF-8
|
Java
| false
| false
| 5,276
|
java
|
/***************************************************************************************************
* Copyright (c) 2014, Lukas Tenbrink.
* http://lukas.axxim.net
**************************************************************************************************/
// Date: 29-1-2014 18:13:04
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX
package ivorius.yegamolchattels.client.rendering;
import ivorius.yegamolchattels.blocks.EntityShelfInfo;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class ModelWardrobe extends ModelBase
{
//fields
ModelRenderer base1;
ModelRenderer right;
ModelRenderer left;
ModelRenderer base2;
ModelRenderer back;
ModelRenderer top;
ModelRenderer drawer1;
ModelRenderer drawer2;
ModelRenderer railingoflove;
ModelRenderer rightdoor;
ModelRenderer leftdoor;
public ModelWardrobe()
{
textureWidth = 128;
textureHeight = 64;
base1 = new ModelRenderer(this, 0, 0);
base1.addBox(-6F, 0F, -2F, 12, 2, 8);
base1.setRotationPoint(0F, 20F, 0F);
base1.setTextureSize(128, 64);
base1.mirror = true;
setRotation(base1, 0F, 0F, 0F);
right = new ModelRenderer(this, 0, 12);
right.addBox(-8F, -8F, -2F, 2, 32, 10);
right.setRotationPoint(0F, 0F, 0F);
right.setTextureSize(128, 64);
right.mirror = true;
setRotation(right, 0F, 0F, 0F);
left = new ModelRenderer(this, 25, 12);
left.addBox(6F, -8F, -2F, 2, 32, 10);
left.setRotationPoint(0F, 0F, 0F);
left.setTextureSize(128, 64);
left.mirror = true;
setRotation(left, 0F, 0F, 0F);
base2 = new ModelRenderer(this, 41, 0);
base2.addBox(-6F, 0F, -2F, 12, 2, 8);
base2.setRotationPoint(0F, 12F, 0F);
base2.setTextureSize(128, 64);
base2.mirror = true;
setRotation(base2, 0F, 0F, 0F);
back = new ModelRenderer(this, 50, 12);
back.addBox(-6F, 0F, 6F, 12, 30, 2);
back.setRotationPoint(0F, -8F, 0F);
back.setTextureSize(128, 64);
back.mirror = true;
setRotation(back, 0F, 0F, 0F);
top = new ModelRenderer(this, 82, 0);
top.addBox(-6F, 0F, -2F, 12, 2, 8);
top.setRotationPoint(0F, -8F, 0F);
top.setTextureSize(128, 64);
top.mirror = true;
setRotation(top, 0F, 0F, 0F);
drawer1 = new ModelRenderer(this, 79, 12);
drawer1.addBox(-6F, 0F, -2F, 12, 3, 8);
drawer1.setRotationPoint(0F, 14F, 0F);
drawer1.setTextureSize(128, 64);
drawer1.mirror = true;
setRotation(drawer1, 0F, 0F, 0F);
drawer2 = new ModelRenderer(this, 79, 24);
drawer2.addBox(-6F, 0F, -2F, 12, 3, 8);
drawer2.setRotationPoint(0F, 17F, 0F);
drawer2.setTextureSize(128, 64);
drawer2.mirror = true;
setRotation(drawer2, 0F, 0F, 0F);
railingoflove = new ModelRenderer(this, 0, 55);
railingoflove.addBox(-6F, -1F, -1F, 12, 2, 2);
railingoflove.setRotationPoint(0F, -4F, 2F);
railingoflove.setTextureSize(128, 64);
railingoflove.mirror = true;
setRotation(railingoflove, 0F, 0F, 0F);
rightdoor = new ModelRenderer(this, 79, 36);
rightdoor.addBox(0F, -6F, 0F, 6, 18, 2);
rightdoor.setRotationPoint(-6F, 0F, -2F);
rightdoor.setTextureSize(128, 64);
rightdoor.mirror = true;
setRotation(rightdoor, 0F, 0F, 0F);
leftdoor = new ModelRenderer(this, 96, 36);
leftdoor.addBox(-6F, -6F, 0F, 6, 18, 2);
leftdoor.setRotationPoint(6F, 0F, -2F);
leftdoor.setTextureSize(128, 64);
leftdoor.mirror = true;
setRotation(leftdoor, 0F, 0F, 0F);
}
@Override
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5, entity);
base1.render(f5);
right.render(f5);
left.render(f5);
base2.render(f5);
back.render(f5);
top.render(f5);
drawer1.render(f5);
drawer2.render(f5);
railingoflove.render(f5);
rightdoor.render(f5);
leftdoor.render(f5);
}
@Override
public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity)
{
super.setRotationAngles(par1, par2, par3, par4, par5, par6, par7Entity);
float[] shelfTriggerVals = ((EntityShelfInfo) par7Entity).triggerVals;
leftdoor.rotateAngleY = -shelfTriggerVals[0] * 3.1415926f * 0.64f;
rightdoor.rotateAngleY = shelfTriggerVals[0] * 3.1415926f * 0.64f;
drawer1.setRotationPoint(-0.001F, 14F - 0.001f, -shelfTriggerVals[1] * 6.0f);
drawer2.setRotationPoint(0.001F, 17F - 0.001f, -shelfTriggerVals[2] * 6.0f);
}
private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
}
|
[
"[email protected]"
] | |
2126be75155831f906fc99024a5c48d8122154f4
|
629e42efa87f5539ff8731564a9cbf89190aad4a
|
/unrefactorInstances/eclipse.jdt.core/65/cloneInstance6.java
|
7e6cc3e0901476c779dab42c810318c64d6846df
|
[] |
no_license
|
soniapku/CREC
|
a68d0b6b02ed4ef2b120fd0c768045424069e726
|
21d43dd760f453b148134bd526d71f00ad7d3b5e
|
refs/heads/master
| 2020-03-23T04:28:06.058813
| 2018-08-17T13:17:08
| 2018-08-17T13:17:08
| 141,085,296
| 0
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 370
|
java
|
public void nonStaticAccessToStaticField(AstNode location, FieldBinding field) {
this.handle(
IProblem.NonStaticAccessToStaticField,
new String[] {new String(field.declaringClass.readableName()), new String(field.name)},
new String[] {new String(field.declaringClass.shortReadableName()), new String(field.name)},
location.sourceStart,
location.sourceEnd);
}
|
[
"[email protected]"
] | |
346daf46e22c704924cc8e189a8042af63833aa3
|
ba9192f4aeb635d5c49d80878a04512bc3b645e9
|
/src/extends-parent/jetty-all/src/main/java/org/eclipse/jetty/websocket/WebSocketGeneratorRFC6455.java
|
dedaa735aa3839006058d7ce8345e148ed3bbb49
|
[
"Apache-2.0"
] |
permissive
|
ivanDannels/hasor
|
789e9183a5878cfc002466c9738c9bd2741fd76a
|
3b9f4ae6355c6dad2ea8818750b3e04e90cc3e39
|
refs/heads/master
| 2020-04-15T10:10:22.453889
| 2013-09-14T10:02:01
| 2013-09-14T10:02:01
| 12,828,661
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,022
|
java
|
//
// ========================================================================
// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// and Apache License v2.0 which accompanies this distribution.
//
// The Eclipse Public License is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// The Apache License v2.0 is available at
// http://www.opensource.org/licenses/apache2.0.php
//
// You may elect to redistribute this code under either of these licenses.
// ========================================================================
//
package org.eclipse.jetty.websocket;
import java.io.IOException;
import org.eclipse.jetty.io.Buffer;
import org.eclipse.jetty.io.EndPoint;
import org.eclipse.jetty.io.EofException;
/* ------------------------------------------------------------ */
/** WebSocketGenerator.
* This class generates websocket packets.
* It is fully synchronized because it is likely that async
* threads will call the addMessage methods while other
* threads are flushing the generator.
*/
public class WebSocketGeneratorRFC6455 implements WebSocketGenerator
{
final private WebSocketBuffers _buffers;
final private EndPoint _endp;
private Buffer _buffer;
private final byte[] _mask=new byte[4];
private int _m;
private boolean _opsent;
private final MaskGen _maskGen;
private boolean _closed;
public WebSocketGeneratorRFC6455(WebSocketBuffers buffers, EndPoint endp)
{
_buffers=buffers;
_endp=endp;
_maskGen=null;
}
public WebSocketGeneratorRFC6455(WebSocketBuffers buffers, EndPoint endp, MaskGen maskGen)
{
_buffers=buffers;
_endp=endp;
_maskGen=maskGen;
}
public synchronized Buffer getBuffer()
{
return _buffer;
}
public synchronized void addFrame(byte flags, byte opcode, byte[] content, int offset, int length) throws IOException
{
// System.err.printf("<< %s %s %s\n",TypeUtil.toHexString(flags),TypeUtil.toHexString(opcode),length);
if (_closed)
throw new EofException("Closed");
if (opcode==WebSocketConnectionRFC6455.OP_CLOSE)
_closed=true;
boolean mask=_maskGen!=null;
if (_buffer==null)
_buffer=mask?_buffers.getBuffer():_buffers.getDirectBuffer();
boolean last=WebSocketConnectionRFC6455.isLastFrame(flags);
int space=mask?14:10;
do
{
opcode = _opsent?WebSocketConnectionRFC6455.OP_CONTINUATION:opcode;
opcode=(byte)(((0xf&flags)<<4)+(0xf&opcode));
_opsent=true;
int payload=length;
if (payload+space>_buffer.capacity())
{
// We must fragement, so clear FIN bit
opcode=(byte)(opcode&0x7F); // Clear the FIN bit
payload=_buffer.capacity()-space;
}
else if (last)
opcode= (byte)(opcode|0x80); // Set the FIN bit
// ensure there is space for header
if (_buffer.space() <= space)
{
flushBuffer();
if (_buffer.space() <= space)
flush();
}
// write the opcode and length
if (payload>0xffff)
{
_buffer.put(new byte[]{
opcode,
mask?(byte)0xff:(byte)0x7f,
(byte)0,
(byte)0,
(byte)0,
(byte)0,
(byte)((payload>>24)&0xff),
(byte)((payload>>16)&0xff),
(byte)((payload>>8)&0xff),
(byte)(payload&0xff)});
}
else if (payload >=0x7e)
{
_buffer.put(new byte[]{
opcode,
mask?(byte)0xfe:(byte)0x7e,
(byte)(payload>>8),
(byte)(payload&0xff)});
}
else
{
_buffer.put(new byte[]{
opcode,
(byte)(mask?(0x80|payload):payload)});
}
// write mask
if (mask)
{
_maskGen.genMask(_mask);
_m=0;
_buffer.put(_mask);
}
// write payload
int remaining = payload;
while (remaining > 0)
{
_buffer.compact();
int chunk = remaining < _buffer.space() ? remaining : _buffer.space();
if (mask)
{
for (int i=0;i<chunk;i++)
_buffer.put((byte)(content[offset+ (payload-remaining)+i]^_mask[+_m++%4]));
}
else
_buffer.put(content, offset + (payload - remaining), chunk);
remaining -= chunk;
if (_buffer.space() > 0)
{
// Gently flush the data, issuing a non-blocking write
flushBuffer();
}
else
{
// Forcibly flush the data, issuing a blocking write
flush();
if (remaining == 0)
{
// Gently flush the data, issuing a non-blocking write
flushBuffer();
}
}
}
offset+=payload;
length-=payload;
}
while (length>0);
_opsent=!last;
if (_buffer!=null && _buffer.length()==0)
{
_buffers.returnBuffer(_buffer);
_buffer=null;
}
}
public synchronized int flushBuffer() throws IOException
{
if (!_endp.isOpen())
throw new EofException();
if (_buffer!=null)
{
int flushed=_buffer.hasContent()?_endp.flush(_buffer):0;
if (_closed&&_buffer.length()==0)
_endp.shutdownOutput();
return flushed;
}
return 0;
}
public synchronized int flush() throws IOException
{
if (_buffer==null)
return 0;
int result = flushBuffer();
if (!_endp.isBlocking())
{
long now = System.currentTimeMillis();
long end=now+_endp.getMaxIdleTime();
while (_buffer.length()>0)
{
boolean ready = _endp.blockWritable(end-now);
if (!ready)
{
now = System.currentTimeMillis();
if (now<end)
continue;
throw new IOException("Write timeout");
}
result += flushBuffer();
}
}
_buffer.compact();
return result;
}
public synchronized boolean isBufferEmpty()
{
return _buffer==null || _buffer.length()==0;
}
public synchronized void returnBuffer()
{
if (_buffer!=null && _buffer.length()==0)
{
_buffers.returnBuffer(_buffer);
_buffer=null;
}
}
@Override
public String toString()
{
// Do NOT use synchronized (this)
// because it's very easy to deadlock when debugging is enabled.
// We do a best effort to print the right toString() and that's it.
Buffer buffer = _buffer;
return String.format("%s@%x closed=%b buffer=%d",
getClass().getSimpleName(),
hashCode(),
_closed,
buffer == null ? -1 : buffer.length());
}
}
|
[
"[email protected]"
] | |
154b60d53e97bf8ba464f6b1bf1d522a19f0cb26
|
a27a7e9a50849529a75a869e84fd01f2e9bbd4e4
|
/src/main/java/guru/springframework/recipeproject/service/IngredientServiceImpl.java
|
4435ec670d1892aba5902906efbfa0f3bf73ca77
|
[] |
no_license
|
lucascalsilva/spring-boot-recipe-project
|
2960e3fd9f113a6fd3ebcbffde1bf53eb8710b9a
|
086c9e3ee6aa2546f56f48d10ada06198f3bc541
|
refs/heads/master
| 2021-05-18T20:08:15.928341
| 2020-08-29T20:00:25
| 2020-08-29T20:00:25
| 251,396,296
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,310
|
java
|
package guru.springframework.recipeproject.service;
import guru.springframework.recipeproject.commands.IngredientCommand;
import guru.springframework.recipeproject.converters.IngredientCommandToIngredient;
import guru.springframework.recipeproject.converters.IngredientToIngredientCommand;
import guru.springframework.recipeproject.exceptions.NotFoundException;
import guru.springframework.recipeproject.model.Ingredient;
import guru.springframework.recipeproject.repositories.IngredientRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.HashSet;
import java.util.Optional;
import java.util.Set;
@Service
@RequiredArgsConstructor
public class IngredientServiceImpl implements IngredientService {
private final IngredientRepository ingredientRepository;
private final IngredientToIngredientCommand ingredientToIngredientCommand;
private final IngredientCommandToIngredient ingredientCommandToIngredient;
@Override
public IngredientCommand findById(Long id) {
return ingredientToIngredientCommand.convert(ingredientRepository.findById(id)
.orElseThrow(() -> new NotFoundException(Ingredient.class, "id", id.toString())));
}
@Override
public IngredientCommand save(IngredientCommand object) {
Ingredient savedIngredient = ingredientRepository.save(ingredientCommandToIngredient.convert(object));
return ingredientToIngredientCommand.convert(savedIngredient);
}
@Override
public void deleteById(Long id) {
ingredientRepository.deleteById(id);
}
@Override
public Set<IngredientCommand> findAll() {
Set<IngredientCommand> ingredients = new HashSet<>();
ingredientRepository.findAll().iterator().forEachRemaining(ingredient -> {
ingredients.add(ingredientToIngredientCommand.convert(ingredient));
});
return ingredients;
}
@Override
public Set<IngredientCommand> findByRecipeId(Long recipeId) {
Set<IngredientCommand> ingredients = new HashSet<>();
ingredientRepository.findByRecipeId(recipeId).iterator().forEachRemaining(ingredient -> {
ingredients.add(ingredientToIngredientCommand.convert(ingredient));
});
return ingredients;
}
}
|
[
"[email protected]"
] | |
b299a9e1439e94504c99a28ded5abd56d0ac4207
|
f498015b7cc15c0b30656ea7056bcc2f0a7b137f
|
/app/src/main/java/com/olaover/inmortaltech/ola/Adapter/MetroAdapter.java
|
9fac3607212c437a9b08f3c1af60f76709d84e41
|
[] |
no_license
|
guptaamit96/VehicleTracker
|
ea92fb6e38738bab5b479307899dd67d33cfe09a
|
c7bfb9a9f92e1f0138f52c65d35cb58857cb785b
|
refs/heads/master
| 2020-04-15T04:39:16.317131
| 2018-07-16T11:06:55
| 2018-07-16T11:06:55
| 164,390,910
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,946
|
java
|
package com.olaover.inmortaltech.ola.Adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.olaover.inmortaltech.ola.R;
import com.olaover.inmortaltech.ola.beans.MetroResponce;
import java.util.ArrayList;
public class MetroAdapter extends RecyclerView.Adapter<MetroAdapter.MyViewHolder> {
ArrayList<MetroResponce> metro_data;
Context context;
public MetroAdapter(Context context, ArrayList<MetroResponce> metro_data) {
this.context = context;
this.metro_data = metro_data;
}
public MetroAdapter() {
}
@Override
public MetroAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View itemtype = LayoutInflater.from(parent.getContext()).inflate(R.layout.metro_list_layout, parent, false);
return new MetroAdapter.MyViewHolder(itemtype);
}
@Override
public void onBindViewHolder(MetroAdapter.MyViewHolder holder, int position) {
holder.tv_station_name.setText(metro_data.get(position).getStation_name());
holder.tv_km.setText(metro_data.get(position).getKilo_meter());
holder.tv_elavated.setText(metro_data.get(position).getElevated());
}
@Override
public int getItemCount() {
return metro_data.size();
}
public class MyViewHolder extends RecyclerView.ViewHolder {
TextView tv_station_name,tv_km,tv_elavated;
public MyViewHolder(View itemView) {
super(itemView);
tv_station_name = (TextView) itemView.findViewById(R.id.tv_station_name);
tv_km = (TextView) itemView.findViewById(R.id.tv_km);
tv_elavated = (TextView) itemView.findViewById(R.id.tv_elavated);
}
}
}
|
[
"[email protected]"
] | |
9ea7d185d74e4a898592c1c72aaaac6358330d82
|
90d563a57497fff40c586b0cbbc5b10e0ac1a5f0
|
/src/BinaryTree/LeetCode101/Solution.java
|
93e7d13e874456c22b2651f76201ab77941b3925
|
[] |
no_license
|
betterGa/Review-DS
|
852b6aa3da401e78ca19efc40486cd57089acb2d
|
61699bcf4dcbfb4af2ca6cd95d8cb33804512fa0
|
refs/heads/master
| 2022-04-03T21:00:37.071086
| 2020-02-19T14:55:48
| 2020-02-19T14:55:48
| 209,009,441
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,121
|
java
|
package BinaryTree.LeetCode101;
public class Solution {
class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}
public boolean isSymmetric(TreeNode root) {
/*太憨了 不是这样的。
//递归终止条件
//空树或叶子节点是对称树
if(root==null||(root.left==null&&root.right==null))
return true;
if(isSymmetric(root.left)==true&&isSymmetric(root.right)==true&&root.left.val==root.right.val)
return true;
else if(root.left.left.val==root.right.right.val&&root.left.right.val==root.right.left.val)
return true;
return false;
*/
if(root==null) return true;
else return isSymmetric(root.left,root.right);
}
//递归三部曲:返回值是boolean,传入的参数是左右子树,
// 我们可以得到左右子树和它们的父节点。三个节点。
//如何判断这颗二叉树是否对称二叉树?
//如果左右子树任意一个为null,一定不是。
//如果左右子树值不相等,一定不是。
//可以得到的返回值是左右子树为根的两棵树是否对称二叉树
//如果左右子树都是对称二叉树,那么这棵树一定是对称二叉树。
//但是如果左右子树不都是/都不是对称二叉树,这颗树也可能是对称二叉树的。
//我们传入的是左右子树,得到的是三个节点。
//如果左右子树值已经相等了,那么如果左的左与右的右,和这个“相等的左右子树值”,构成了三个节点。
//同理,左的右与右的左,和这个“相等的左右子树值”,也构成了三个节点。
//如果这两组三个节点都满足对称,这棵树才是对称树。
public boolean isSymmetric(TreeNode left,TreeNode right)
{
if(left==null||right==null) return false;
else if(left.val!=right.val) return false;
return isSymmetric(left.right,right.left)&&isSymmetric(right.right,left.left);
}
}
|
[
"[email protected]"
] | |
d527fb8250893582c0deee8c7d9dec63c621dda8
|
ee0ddf0854f1092c3d6dccabeafaeec2840eacfc
|
/app/src/main/java/com/xmx/searchpoi/Tools/FragmentBase/BaseFragment.java
|
cae932e6df82749184680f4b4db52789efe0459d
|
[] |
no_license
|
The---onE/SearchPOIA
|
73a64de322d19cc8db58343bfa1816db76162ec9
|
0a2c9e42d84a52e11a95fa11e4e8663e2fe3277f
|
refs/heads/master
| 2021-01-12T01:51:34.235622
| 2017-01-13T13:05:21
| 2017-01-13T13:05:21
| 78,438,638
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 874
|
java
|
package com.xmx.searchpoi.Tools.FragmentBase;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by The_onE on 2016/7/4.
*/
public abstract class BaseFragment extends BFragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = getContentView(inflater, container);
initView(view);
setListener(view);
processLogic(view, savedInstanceState);
return view;
}
protected abstract View getContentView(LayoutInflater inflater, ViewGroup container);
protected abstract void initView(View view);
protected abstract void setListener(View view);
protected abstract void processLogic(View view, Bundle savedInstanceState);
}
|
[
"[email protected]"
] | |
f15e3d7276ef51b76cb4a23d2a56f2474c6b0853
|
b6f05e13fe7040ab59deaddab23bc4e0c2b525a4
|
/fiji-commons/fiji-commons-monitoring/src/main/java/com/moz/fiji/commons/monitoring/MetricUtils.java
|
0a90501712065c5ffff1c7865d97f1aaff157cdb
|
[
"Apache-2.0"
] |
permissive
|
seomoz/fiji
|
a621b6d6db3a7731414f6ea7d2bc6fc5ee2d59ec
|
bed3b7d20770ab2c490b55f278cb4397937f61b6
|
refs/heads/master
| 2021-01-18T08:56:48.848846
| 2016-07-19T20:30:17
| 2016-07-19T20:30:17
| 53,540,389
| 1
| 0
| null | 2016-07-06T20:52:33
| 2016-03-09T23:47:08
|
HTML
|
UTF-8
|
Java
| false
| false
| 7,324
|
java
|
/**
* (c) Copyright 2014 WibiData, Inc.
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* 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.moz.fiji.commons.monitoring;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.util.Map.Entry;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import com.codahale.metrics.ConsoleReporter;
import com.codahale.metrics.Histogram;
import com.codahale.metrics.Metric;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.MetricSet;
import com.codahale.metrics.jvm.GarbageCollectorMetricSet;
import com.codahale.metrics.jvm.MemoryUsageGaugeSet;
import com.codahale.metrics.jvm.ThreadStatesGaugeSet;
import com.codahale.metrics.riemann.Riemann;
import com.codahale.metrics.riemann.RiemannReporter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.moz.fiji.commons.SocketAddressUtils;
/**
* Provides utility methods for working with the Dropwizard Metrics library.
*/
public final class MetricUtils {
private static final Logger LOG = LoggerFactory.getLogger(MetricUtils.class);
/**
* Create a new metric registry pre-registered with JVM metrics.
*
* @return A new metric registry with pre-registered JVM metrics.
*/
public static MetricRegistry createMetricRegistry() {
final MetricRegistry registry = new MetricRegistry();
registerAll(registry, "jvm.gc", new GarbageCollectorMetricSet());
registerAll(registry, "jvm.mem", new MemoryUsageGaugeSet());
registerAll(registry, "jvm.thread", new ThreadStatesGaugeSet());
registerAll(registry, "jvm.cpu", CpuMetricSet.create());
registerAll(registry, "jvm.fd", FdMetricSet.create());
return registry;
}
/**
* Create a new {@link Histogram} backed by the latency utils package. This histogram should
* not be used with a registry that has more than a single scheduled reporter.
*
* @return A new Histogram backed by the latency utils package.
*/
public static Histogram createLatencyUtilsHistogram() {
return new Histogram(LatencyUtilsReservoir.create());
}
/**
* Create a new {@link Histogram} backed by the HDR histogram package. The histogram supports
* recording values in the given range with the given amount of precision. The precision is
* expressed in the number of significant decimal digits preserved.
*
* @param lowestDiscernableValue Smallest recorded value discernible from 0.
* @param highestTrackableValue Highest trackable value.
* @param numberOfSignificantValueDigits Number of significant decimal digits.
* @return A Histogram backed by the HDR histogram package.
*/
public static Histogram createHdrHistogram(
final long lowestDiscernableValue,
final long highestTrackableValue,
final int numberOfSignificantValueDigits
) {
return new Histogram(
HdrHistogramReservoir.create(
lowestDiscernableValue,
highestTrackableValue,
numberOfSignificantValueDigits));
}
/**
* Register a Riemann reporter with the provided metrics registry.
*
* @param riemannAddress The address of the Riemann service.
* @param registry The metric registry to report to Riemann.
* @param localAddress The address of the local process host.
* @param prefix A prefix to add to reported metrics.
* @param intervalPeriod The update period.
* @param intervalUnit The unit of time of the update period.
* @return The reporter.
* @throws IOException On unrecoverable I/O exception.
*/
public static RiemannReporter registerRiemannMetricReporter(
final InetSocketAddress riemannAddress,
final MetricRegistry registry,
final InetSocketAddress localAddress,
final String prefix,
final long intervalPeriod,
final TimeUnit intervalUnit
) throws IOException {
final InetSocketAddress publicAddress = SocketAddressUtils.localToPublic(localAddress);
// Get the hostname of this machine. Graphite uses '.' as a separator, so all instances in the
// hostname are replaced with '_'.
final String localhost =
publicAddress.getHostName().replace('.', '_') + ":" + publicAddress.getPort();
final RiemannReporter reporter = RiemannReporter
.forRegistry(registry)
.localHost(localhost)
.prefixedWith(prefix)
.withTtl(60.0f)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.useSeparator(".")
.build(new Riemann(riemannAddress.getHostString(), riemannAddress.getPort()));
reporter.start(intervalPeriod, intervalUnit);
return reporter;
}
/**
* Register a console reporter with the provided metrics registry.
*
* @param registry The metric registry to report to the console.
* @param intervalPeriod The update period.
* @param intervalUnit The unit of time of the update period.
* @return The reporter.
*/
public static ConsoleReporter registerConsoleReporter(
final MetricRegistry registry,
final long intervalPeriod,
final TimeUnit intervalUnit
) {
final ConsoleReporter reporter = ConsoleReporter
.forRegistry(registry)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.build();
reporter.start(intervalPeriod, intervalUnit);
return reporter;
}
/**
* Add metrics to the given registry that track the given executor's thread and task counts.
*
* @param executor The executor to instrument.
* @param registry The metric registry.
* @param prefix The metric name prefix.
*/
public static void instrumentExecutor(
final ThreadPoolExecutor executor,
final MetricRegistry registry,
final String prefix
) {
registerAll(registry, prefix, ExecutorMetricSet.create(executor));
}
/**
* Register the given metric set with the registry, with a prefix added to the name of each
* metric. {@link MetricRegistry} has this method, but it is private.
*
* @param registry The registry.
* @param prefix The prefix to add to each metric name.
* @param metrics The metrics.
*/
public static void registerAll(
final MetricRegistry registry,
final String prefix,
final MetricSet metrics
) {
for (final Entry<String, Metric> entry : metrics.getMetrics().entrySet()) {
if (entry.getValue() instanceof MetricSet) {
registerAll(registry, MetricRegistry.name(prefix, entry.getKey()), metrics);
} else {
registry.register(MetricRegistry.name(prefix, entry.getKey()), entry.getValue());
}
}
}
/** Private constructor for utility class. */
private MetricUtils() {
}
}
|
[
"vagrant@mozlinks"
] |
vagrant@mozlinks
|
321dfb5761a4c9bb3cd7afeee8cb03d9834a1be4
|
0ec9b09bca5e448ded9866a5fe30c7a63b82b8b3
|
/modelViewPresenter/presentationModel/withoutPrototype/src/main/java/usantatecla/mastermind/MastermindStandaloneDB.java
|
ee35c7161f93b2d1e087544c82da95231b2df0d9
|
[] |
no_license
|
pixelia-es/USantaTecla-project-mastermind-java.swing.socket.sql
|
04de19c29176c4b830dbae751dc4746d2de86f2e
|
2b5f9bf273c67eedff96189b6b3c5680c8b10958
|
refs/heads/master
| 2023-06-10T13:09:55.875570
| 2021-06-29T15:16:23
| 2021-06-29T15:16:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 428
|
java
|
package usantatecla.mastermind;
import usantatecla.mastermind.models.DAO.SessionImplementationDAO;
import usantatecla.mastermind.models.dataBase.SessionImplementationDBDAO;
public class MastermindStandaloneDB extends MastermindStandalone{
protected SessionImplementationDAO createDAO() {
return new SessionImplementationDBDAO();
}
public static void main(String[] args) {
new MastermindStandaloneDB().play();
}
}
|
[
"[email protected]"
] | |
6dd914d726391cfba4ac944a43e7b126c2e76430
|
1ae60085fd221d5389f23d36fb04494accbf4e14
|
/models/build/tmp/kapt3/stubs/main/com/vimeo/networking2/PlayUtils.java
|
7dd96eb2c6ee70a8b1a072e685c606d30ee53d46
|
[] |
no_license
|
dadhaniyapratik/MVP_Room_Architicture
|
268eee023d1fff408f62c8807c8b4c1a8b012c2e
|
832839321cb57a358e15892f3c81fa06f1e5f51e
|
refs/heads/master
| 2020-06-27T14:51:17.706384
| 2019-08-01T05:04:43
| 2019-08-01T05:04:43
| 199,980,300
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 840
|
java
|
package com.vimeo.networking2;
import java.lang.System;
@kotlin.Metadata(mv = {1, 1, 13}, bv = {1, 0, 3}, k = 2, d1 = {"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u00028F\u00a2\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004\u00a8\u0006\u0005"}, d2 = {"videoPlayStatusType", "Lcom/vimeo/networking2/enums/VideoPlayStatusType;", "Lcom/vimeo/networking2/Play;", "getVideoPlayStatusType", "(Lcom/vimeo/networking2/Play;)Lcom/vimeo/networking2/enums/VideoPlayStatusType;", "models"})
public final class PlayUtils {
@org.jetbrains.annotations.NotNull()
public static final com.vimeo.networking2.enums.VideoPlayStatusType getVideoPlayStatusType(@org.jetbrains.annotations.NotNull()
com.vimeo.networking2.Play $receiver) {
return null;
}
}
|
[
"[email protected]"
] | |
348ff8d6376a87c3b5b6f209d1c52167971f4ac6
|
83110fbb179713c411ddf301c90ef4b814285846
|
/src/HostService.java
|
a33f58e130a6a591f74181dc6700772990d38761
|
[] |
no_license
|
mikelopez/jvm
|
f10590edf42b498f2d81dec71b0fee120e381c9a
|
36a960897062224eabd0c18a1434f7c8961ee81c
|
refs/heads/master
| 2021-01-19T05:36:54.710665
| 2013-06-09T04:36:41
| 2013-06-09T04:36:41
| 3,783,647
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,909
|
java
|
package com.vmware.vim25;
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 HostService complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="HostService">
* <complexContent>
* <extension base="{urn:vim25}DynamicData">
* <sequence>
* <element name="key" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="label" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="required" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="uninstallable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="running" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="ruleset" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* <element name="policy" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="sourcePackage" type="{urn:vim25}HostServiceSourcePackage" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "HostService", propOrder = {
"key",
"label",
"required",
"uninstallable",
"running",
"ruleset",
"policy",
"sourcePackage"
})
public class HostService
extends DynamicData
{
@XmlElement(required = true)
protected String key;
@XmlElement(required = true)
protected String label;
protected boolean required;
protected boolean uninstallable;
protected boolean running;
protected List<String> ruleset;
@XmlElement(required = true)
protected String policy;
protected HostServiceSourcePackage sourcePackage;
/**
* Gets the value of the key property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKey() {
return key;
}
/**
* Sets the value of the key property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKey(String value) {
this.key = value;
}
/**
* Gets the value of the label property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLabel() {
return label;
}
/**
* Sets the value of the label property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLabel(String value) {
this.label = value;
}
/**
* Gets the value of the required property.
*
*/
public boolean isRequired() {
return required;
}
/**
* Sets the value of the required property.
*
*/
public void setRequired(boolean value) {
this.required = value;
}
/**
* Gets the value of the uninstallable property.
*
*/
public boolean isUninstallable() {
return uninstallable;
}
/**
* Sets the value of the uninstallable property.
*
*/
public void setUninstallable(boolean value) {
this.uninstallable = value;
}
/**
* Gets the value of the running property.
*
*/
public boolean isRunning() {
return running;
}
/**
* Sets the value of the running property.
*
*/
public void setRunning(boolean value) {
this.running = value;
}
/**
* Gets the value of the ruleset 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 ruleset property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRuleset().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getRuleset() {
if (ruleset == null) {
ruleset = new ArrayList<String>();
}
return this.ruleset;
}
/**
* Gets the value of the policy property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPolicy() {
return policy;
}
/**
* Sets the value of the policy property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPolicy(String value) {
this.policy = value;
}
/**
* Gets the value of the sourcePackage property.
*
* @return
* possible object is
* {@link HostServiceSourcePackage }
*
*/
public HostServiceSourcePackage getSourcePackage() {
return sourcePackage;
}
/**
* Sets the value of the sourcePackage property.
*
* @param value
* allowed object is
* {@link HostServiceSourcePackage }
*
*/
public void setSourcePackage(HostServiceSourcePackage value) {
this.sourcePackage = value;
}
}
|
[
"[email protected]"
] | |
7843e35f0eb6bdbf8a52c6f2cf94980764a4ff39
|
6baa09045c69b0231c35c22b06cdf69a8ce227d6
|
/modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201603/cm/CustomerExtensionSettingService.java
|
39c797a31ba3086ff29dbadcb3353dbc8b83e464
|
[
"Apache-2.0"
] |
permissive
|
remotejob/googleads-java-lib
|
f603b47117522104f7df2a72d2c96ae8c1ea011d
|
a330df0799de8d8de0dcdddf4c317d6b0cd2fe10
|
refs/heads/master
| 2020-12-11T01:36:29.506854
| 2016-07-28T22:13:24
| 2016-07-28T22:13:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 783
|
java
|
/**
* CustomerExtensionSettingService.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.adwords.axis.v201603.cm;
public interface CustomerExtensionSettingService extends javax.xml.rpc.Service {
public java.lang.String getCustomerExtensionSettingServiceInterfacePortAddress();
public com.google.api.ads.adwords.axis.v201603.cm.CustomerExtensionSettingServiceInterface getCustomerExtensionSettingServiceInterfacePort() throws javax.xml.rpc.ServiceException;
public com.google.api.ads.adwords.axis.v201603.cm.CustomerExtensionSettingServiceInterface getCustomerExtensionSettingServiceInterfacePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
}
|
[
"[email protected]"
] | |
6081ffcb7dd937cba1ffbb6d4677e6fb3fffcd29
|
6c038bac76027ace0b236ff131cbcffebd274985
|
/workspace/05_Jms/src/main/java/com/curso/microservicios/_Jms/Persona.java
|
113d1c6bd90a181a920bcac0606d66c409c0cff8
|
[] |
no_license
|
victorherrerocazurro/MicroserviciosSpringATSistemasOctubre2017
|
2f1752055c4f58b3faa4ab4470a3e51032e97541
|
2512133b51d64a77a947aaad2e053f69d262d7ba
|
refs/heads/master
| 2021-07-08T15:30:55.572658
| 2017-10-05T17:28:12
| 2017-10-05T17:28:12
| 105,535,171
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 654
|
java
|
package com.curso.microservicios._Jms;
import java.io.Serializable;
public class Persona implements Serializable{
private long id;
private String nombre;
public Persona(long id, String nombre) {
super();
this.id = id;
this.nombre = nombre;
}
public Persona() {
super();
// TODO Auto-generated constructor stub
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
@Override
public String toString() {
return "Persona [id=" + id + ", nombre=" + nombre + "]";
}
}
|
[
"[email protected]"
] | |
96e5e6b0e6bd3df0e49c66f2c98be373a6bc797b
|
ae9efe033a18c3d4a0915bceda7be2b3b00ae571
|
/jambeth/jambeth-merge/src/main/java/com/koch/ambeth/merge/util/IPrefetchHelper.java
|
d838a2023cbb59e1e5839f24bc817ab06c78f6d1
|
[
"Apache-2.0"
] |
permissive
|
Dennis-Koch/ambeth
|
0902d321ccd15f6dc62ebb5e245e18187b913165
|
8552b210b8b37d3d8f66bdac2e094bf23c8b5fda
|
refs/heads/develop
| 2022-11-10T00:40:00.744551
| 2017-10-27T05:35:20
| 2017-10-27T05:35:20
| 88,013,592
| 0
| 4
|
Apache-2.0
| 2022-09-22T18:02:18
| 2017-04-12T05:36:00
|
Java
|
UTF-8
|
Java
| false
| false
| 6,579
|
java
|
package com.koch.ambeth.merge.util;
/*-
* #%L
* jambeth-merge
* %%
* Copyright (C) 2017 Koch Softwaredevelopment
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
* #L%
*/
import java.util.List;
import com.koch.ambeth.util.collections.IList;
/**
* Works as a factory for {@link IPrefetchConfig} instances
*/
public interface IPrefetchHelper {
/**
* Factory method for {@link IPrefetchConfig} instances. After configuring the
* <code>IPrefetchConfig</code> a call to <code>.build()</code> creates the real
* {@link IPrefetchHandle} to be used for prefetching graphs in an entity model. The complexity of
* the batch algorithm to evaluate the needed fetching iterations is defined by the depth of the
* entity graph (not the width of the graph or the amount of entities prefetched). With this
* approach it is even possible to initialize a complete hierarchy of self-relational entities
* (e.g. a UserRole/UserRole tree) very efficiently (again: scaling with the hierarchy depth, not
* the amount of UserRoles)<br>
* <br>
* Usage:<br>
* <code>
* List<?> myEntities = ...<br>
* IPrefetchConfig prefetchConfig = prefetchHelper.createPrefetch();<br>
* prefetchConfig.plan(MyEntity.class).getMyRelations().get(0).getMyTransitiveRelation();<br>
* prefetchConfig.plan(MyEntity.class).getMyOtherRelation();<br>
* prefetchConfig.plan(MyOtherEntity.class).getMyEntity();<br>
* IPrefetchHandle prefetchHandle = prefetchConfig.build();<br>
* prefetchHandle.prefetch(myEntities);<br>
* </code>
*
* @return An empty IPrefetchConfig. Needs to be configured before a call to
* {@link IPrefetchConfig#build()} finishes the configuration and creates a handle to work
* with.
*/
IPrefetchConfig createPrefetch();
/**
* Allows to prefetch pointers to relations of entities in a very fine-grained manner - but still
* allowing the lowest amount of batched fetch operations possible (and therefore with the least
* possible amount of potential remote or database calls). It expects to work not directly with
* entities (because it would not know which relation of those entities to prefetch) but to work
* with composite handles describing a relation of an entity
* (={@link com.koch.ambeth.cache.util.IndirectValueHolderRef}) or an entity instance
* (={@link DirectValueHolderRef}).<br>
* <br>
* A special benefit of these composite handles is that it even allows you to define to only
* prefetch the object references of a relation but not the real initialized relations. This could
* be helpful if you only want to do something like a "count" on the relation or only want to know
* the entity identifiers on the relation, not the complete payload of the related entities.<br>
* <br>
* Usage:<br>
* <code>
* IEntityMetaData metaData = entityMetaDataProvider.getMetaData(entity1.getClass());<br>
* RelationMember myRelation = (RelationMember) metaData.getMemberByName("MyFunnyRelation");<br>
* IObjRefContainer myEntity1 = (IObjRefContainer)entity1;<br>
* IObjRefContainer myEntity2 = (IObjRefContainer)entity2;<br>
* List<?> myPrefetchRelations = Arrays.asList(new DirectValueHolderRef(myEntity1, myRelation, true), new DirectValueHolderRef(myEntity2, myRelation, true));<br>
* prefetchHelper.prefetch(myPrefetchRelations);<br>
* IObjRef[] relationPointersOfEntity1 = myEntity1.get__ObjRefs(metaData.getIndexByRelation(myRelation));<br>
* IObjRef[] relationPointersOfEntity2 = myEntity2.get__ObjRefs(metaData.getIndexByRelation(myRelation));<br>
* </code> *
*
* @param objects A collection or array of instances of either {@link DirectValueHolderRef} or
* {@link com.koch.ambeth.cache.util.IndirectValueHolderRef}
* @return The hard reference to all resolved entity instances of requested relations. It is
* reasonable to store this result on the stack (without working with the stack variable)
* in cases where the associated cache instances are configured to hold entity instances
* in a weakly manner. In those cases it may happen that a prefetch request increases the
* amount of cached entities temporarily above the LRU limit (least recently used
* algorithm). Therefore it is necessary to ensure that the initialized result
* continuously gets a hold in the cache as long as needed for the process on the stack.
* So this hard reference compensates the cases where the LRU cache would consider the
* resolved entity instances as "releasable". If the corresponding caches are generally
* configured to hold hard references to the entity instances themselves the LRU cache is
* effectively disabled and the returned {@link IPrefetchState} has no effective use.
*/
IPrefetchState prefetch(Object objects);
/**
* Convenience method for specific usecases of the {@link #createPrefetch()} approach. With this
* it is possible to prefetch a single deep graph of a set of entity relations and to aggregate
* all distinct entities of those initialized graph leafs as a result. This also works for
* not-yet-persisted entities referenced in the graph.<br>
* <br>
* Usage:<br>
* <code>
* List<MyOtherRelation> allMyOtherRelations = prefetchHelper.extractTargetEntities(myEntities, "Relations.MyRelation.MyOtherRelation", MyEntity.class);
* </code>
*
* @param sourceEntities The entity instances each working as the graph root for the batched
* prefetch operation
* @param sourceToTargetEntityPropertyPath The transitive traversal path to be initialized based
* on each given graph root in 'sourceEntities'
* @param sourceEntityType The common entity type of the set of entity instances in
* 'sourceEntities'
* @return The aggregated list of distinct entity instances resolved as the leaf of the graph
* traversal defined by 'sourceToTargetEntityPropertyPath'
*/
<T, S> IList<T> extractTargetEntities(List<S> sourceEntities,
String sourceToTargetEntityPropertyPath, Class<S> sourceEntityType);
}
|
[
"[email protected]"
] | |
331451d258a897f5be06a95b64548cbcb85f13ad
|
e8d9a5ae1a33001a8008bde85565c201077c1cba
|
/com.io7m.jdae.collada1_5/src/main/java/com/io7m/jdae/collada1_5/MeshType.java
|
b92c6e0927b0b65b2e6cf68d540b0a5d184fb35b
|
[
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] |
permissive
|
io7m/jdae
|
6839b34294185a81c5ce9b6ea9a392d992bec0b1
|
9c4555487fd0cab7824ab384c6a3d3eef76ba298
|
refs/heads/master
| 2023-09-01T22:40:43.760915
| 2021-01-17T14:52:38
| 2021-01-17T14:52:38
| 48,003,036
| 1
| 1
|
NOASSERTION
| 2020-10-12T23:31:08
| 2015-12-14T21:47:05
|
Java
|
UTF-8
|
Java
| false
| false
| 6,595
|
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: 2015.12.14 at 09:36:22 PM UTC
//
package com.io7m.jdae.collada1_5;
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.XmlElements;
import javax.xml.bind.annotation.XmlType;
/**
*
* The mesh element contains vertex and primitive information sufficient to describe basic geometric meshes.
*
*
* <p>Java class for mesh_type complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="mesh_type">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="source" type="{http://www.collada.org/2008/03/COLLADASchema}source_type" maxOccurs="unbounded"/>
* <element name="vertices" type="{http://www.collada.org/2008/03/COLLADASchema}vertices_type"/>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element name="lines" type="{http://www.collada.org/2008/03/COLLADASchema}lines_type"/>
* <element name="linestrips" type="{http://www.collada.org/2008/03/COLLADASchema}linestrips_type"/>
* <element name="polygons" type="{http://www.collada.org/2008/03/COLLADASchema}polygons_type"/>
* <element name="polylist" type="{http://www.collada.org/2008/03/COLLADASchema}polylist_type"/>
* <element name="triangles" type="{http://www.collada.org/2008/03/COLLADASchema}triangles_type"/>
* <element name="trifans" type="{http://www.collada.org/2008/03/COLLADASchema}trifans_type"/>
* <element name="tristrips" type="{http://www.collada.org/2008/03/COLLADASchema}tristrips_type"/>
* </choice>
* <element name="extra" type="{http://www.collada.org/2008/03/COLLADASchema}extra_type" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "mesh_type", propOrder = {
"source",
"vertices",
"linesOrLinestripsOrPolygons",
"extra"
})
public class MeshType {
@XmlElement(required = true)
protected List<SourceType> source;
@XmlElement(required = true)
protected VerticesType vertices;
@XmlElements({
@XmlElement(name = "lines", type = LinesType.class),
@XmlElement(name = "linestrips", type = LinestripsType.class),
@XmlElement(name = "polygons", type = PolygonsType.class),
@XmlElement(name = "polylist", type = PolylistType.class),
@XmlElement(name = "triangles", type = TrianglesType.class),
@XmlElement(name = "trifans", type = TrifansType.class),
@XmlElement(name = "tristrips", type = TristripsType.class)
})
protected List<Object> linesOrLinestripsOrPolygons;
protected List<ExtraType> extra;
/**
* Gets the value of the source 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} method for the source property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSource().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link SourceType }
*
*
*/
public List<SourceType> getSource() {
if (source == null) {
source = new ArrayList<SourceType>();
}
return this.source;
}
/**
* Gets the value of the vertices property.
*
* @return
* possible object is
* {@link VerticesType }
*
*/
public VerticesType getVertices() {
return vertices;
}
/**
* Sets the value of the vertices property.
*
* @param value
* allowed object is
* {@link VerticesType }
*
*/
public void setVertices(VerticesType value) {
this.vertices = value;
}
/**
* Gets the value of the linesOrLinestripsOrPolygons 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} method for the linesOrLinestripsOrPolygons property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getLinesOrLinestripsOrPolygons().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link LinesType }
* {@link LinestripsType }
* {@link PolygonsType }
* {@link PolylistType }
* {@link TrianglesType }
* {@link TrifansType }
* {@link TristripsType }
*
*
*/
public List<Object> getLinesOrLinestripsOrPolygons() {
if (linesOrLinestripsOrPolygons == null) {
linesOrLinestripsOrPolygons = new ArrayList<Object>();
}
return this.linesOrLinestripsOrPolygons;
}
/**
* Gets the value of the extra 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} method for the extra property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtra().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ExtraType }
*
*
*/
public List<ExtraType> getExtra() {
if (extra == null) {
extra = new ArrayList<ExtraType>();
}
return this.extra;
}
}
|
[
"[email protected]"
] | |
ca4c7107bfaa410ee17f1534f181b2eef3d5e38c
|
a90f04b19052536f27775cd828f88c04bf03a2fb
|
/src/main/java/com/linle/mobileapi/v1/request/BankCardRequest.java
|
651f505e95a7948e693576ca7319f3af3ed67a54
|
[] |
no_license
|
biaoa/test
|
3a935b2675f52ac7a4e440f52dc86097928e61a1
|
b4039c2345824fd82c23c8c9ac21db36529ba96e
|
refs/heads/master
| 2021-01-20T07:13:39.415844
| 2017-04-25T08:46:57
| 2017-04-25T08:46:57
| 89,980,300
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 210
|
java
|
package com.linle.mobileapi.v1.request;
import com.linle.mobileapi.base.BaseRequest;
public class BankCardRequest extends BaseRequest {
private static final long serialVersionUID = -6993086139549886855L;
}
|
[
"[email protected]"
] | |
60d642106e787f950c8a3fa406e9b4746a3272f3
|
b2f44ba766a44426cd06ebfb922d8b75c1773d63
|
/src/com/leetcode/P934_ShortestBridge.java
|
a81af7d9a594bbbae199959e817f7e599d0cb1d6
|
[] |
no_license
|
joy32812/leetcode
|
a1179ecff91127a6cda83cf70838354b0670970f
|
9bd74b9774012df0e2e221eedc63d10f3ba88238
|
refs/heads/master
| 2023-08-16T14:11:34.232388
| 2023-08-13T11:30:05
| 2023-08-13T11:30:05
| 81,704,645
| 10
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,458
|
java
|
package com.leetcode;
import java.util.*;
public class P934_ShortestBridge {
int[] dx = new int[]{0, 0, 1, -1};
int[] dy = new int[]{1, -1, 0, 0};
public int shortestBridge(int[][] A) {
if (A == null || A.length == 0) return 0;
int m = A.length;
int n = A[0].length;
int[][] color = new int[m][n];
int cnt = 0;
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++) {
if (A[i][j] == 0) continue;
if (color[i][j] != 0) continue;;
cnt ++;
Queue<Integer> Q = new LinkedList<>();
Q.add(i * n + j);
color[i][j] = cnt;
while (!Q.isEmpty()) {
int now = Q.poll();
int x = now / n;
int y = now % n;
for (int k = 0; k < dx.length; k++) {
int nx = x + dx[k];
int ny = y + dy[k];
if (nx < 0 || nx >= m || ny < 0 || ny >= n) continue;
if (A[nx][ny] == 0) continue;
if (color[nx][ny] != 0) continue;
color[nx][ny] = cnt;
Q.add(nx * n + ny);
}
}
}
}
List<Integer> one = new ArrayList<>();
List<Integer> two = new ArrayList<>();
for (int i = 0; i < m; i++) {
for (int j = 0;j < n; j++) {
if (color[i][j] == 1) one.add(i * n + j);
if (color[i][j] == 2) two.add(i * n + j);
}
}
int ans = Integer.MAX_VALUE;
for (int i = 0; i < one.size(); i++) {
int ax = one.get(i) / n;
int ay = one.get(i) % n;
for (int j = 0; j < two.size(); j++) {
int bx = two.get(j) / n;
int by = two.get(j) % n;
int nowVal = 0;
if (ax != bx) nowVal += Math.abs(ax - bx);
if (ay != by) nowVal += Math.abs(ay - by);
ans = Math.min(ans, nowVal - 1);
}
}
return ans;
}
public static void main(String[] args) {
int[][] A = new int[][]{
{1,1,1,1,1},{1,0,0,0,1},{1,0,1,0,1},{1,0,0,0,1},{1,1,1,1,1}
};
System.out.println(new P934_ShortestBridge().shortestBridge(A));
}
}
|
[
"[email protected]"
] | |
786a74c1d97982ec250927fa8e616d7003f2b36a
|
b82e48e27b6f8442e28d2844bc7da5a3a93fd0de
|
/base/src/main/java/com/avogine/render/shader/uniform/light/UniformPointLight.java
|
5ff422179dad0c2204b673746dcd0f05cf630436
|
[] |
no_license
|
Avoduhcado/MAvogine
|
b6d67e7a3e5aaa661653ac6e8433da13dca8e794
|
14479da79a3fca38f6fac921a192034f1ddfb7ba
|
refs/heads/master
| 2023-07-09T13:38:04.081723
| 2023-06-18T19:02:44
| 2023-06-18T19:02:44
| 234,962,574
| 0
| 0
| null | 2023-07-03T00:17:29
| 2020-01-19T20:41:00
|
Java
|
UTF-8
|
Java
| false
| false
| 1,351
|
java
|
package com.avogine.render.shader.uniform.light;
import com.avogine.entity.light.*;
import com.avogine.render.shader.uniform.*;
/**
*
*/
public class UniformPointLight extends UniformLight<PointLight> {
private final UniformVec3 position = new UniformVec3();
/**
* @see <a href="http://wiki.ogre3d.org/tiki-index.php?page=-Point+Light+Attenuation">Ogre3D Wiki</a>
*/
private final UniformFloat constant = new UniformFloat();
private final UniformFloat linear = new UniformFloat();
private final UniformFloat quadratic = new UniformFloat();
@Override
public void storeUniformLocation(int programID, String name) {
super.storeUniformLocation(programID, name);
position.storeUniformLocation(programID, name + ".position");
constant.storeUniformLocation(programID, name + ".constant");
linear.storeUniformLocation(programID, name + ".linear");
quadratic.storeUniformLocation(programID, name + ".quadratic");
}
@Override
public void loadLight(PointLight light) {
position.loadVec3(light.getTransformPosition());
ambient.loadVec3(light.getAmbient());
diffuse.loadVec3(light.getDiffuse());
specular.loadVec3(light.getSpecular());
constant.loadFloat(light.getConstant());
linear.loadFloat(light.getLinear());
quadratic.loadFloat(light.getQuadratic());
}
}
|
[
"[email protected]"
] | |
cb6af47045caa232665f0de5756f3fee469f9f0d
|
c7f607090318e6cf83e4ed9c122bf13989673236
|
/lib/maven/src/main/java/kuona/maven/analyser/Maven.java
|
c3c91c1b7cdeeef2775e2b506098e16f27de7e00
|
[
"Apache-2.0"
] |
permissive
|
kuona/kuona
|
23aa1699fd34f686c4b4e54f72584b4e495af7aa
|
f26bbb7eee7513bf9be23ee769543937afe8ce4f
|
refs/heads/master
| 2022-06-23T15:28:08.849081
| 2022-06-18T16:28:50
| 2022-06-18T16:28:50
| 68,456,861
| 1
| 2
|
Apache-2.0
| 2022-06-12T05:41:43
| 2016-09-17T14:24:32
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 700
|
java
|
package kuona.maven.analyser;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStreamReader;
import java.io.PrintStream;
public class Maven {
private final String path;
Maven(String path) {
this.path = path;
}
void run(String command, PrintStream out) {
try {
Process p = Runtime.getRuntime().exec(command, null, new File(path));
BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line;
while ((line = reader.readLine()) != null) {
out.println(line);
}
if (p.isAlive()) {
p.waitFor();
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
[
"[email protected]"
] | |
54885a7ccb32f02de4580b6b9a26c326779a5a43
|
f7e817caa22c45493e182bf6d698145e8cb3e005
|
/src/com/yz/manager/date/CurrentDate.java
|
42deb238eb08f0917c5b31424a3a8d0f2327bad9
|
[] |
no_license
|
wingjoy/yzmanager
|
40fc3fbd6ffc6170094643e334306ee8fcbfcf21
|
f54b1d0272431ba1cabea851d95daf8c0a0b82dc
|
refs/heads/master
| 2021-03-12T23:07:51.797956
| 2013-11-07T16:37:35
| 2013-11-07T16:37:35
| 13,990,442
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,783
|
java
|
package com.yz.manager.date;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public final class CurrentDate {
public static String getCurrentDate() {
SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return sim.format(new Date());
}
public static String getCurrentDate2() {
SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd");
return sim.format(new Date());
}
public static String getCurrentDate4() {
SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd");
Date date=new Date();
return sim.format(new Timestamp(date.getTime()));
}
public static String getCurrentDate3() {
SimpleDateFormat sim = new SimpleDateFormat("yyyyMMddHHmmss");
return sim.format(new Date());
}
public static int getCurrentYear(){
return Calendar.getInstance().get(Calendar.YEAR);
}
public static int getCurrentMonth(){
return Calendar.getInstance().get(Calendar.MONTH)+1;
}
public static int getCurrentDay(){
return Calendar.getInstance().get(Calendar.DAY_OF_MONTH);
}
public static int getCurrentAPm(){
return Calendar.getInstance().get(Calendar.AM_PM);
}
public static int getCurrentWeek(){
return Calendar.getInstance().get(Calendar.DAY_OF_WEEK);
}
public static Date parseDate(String date){
Date mydate=null;
try {
SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd");
mydate=sim.parse(date);
} catch (ParseException e) {
e.printStackTrace();
}
return mydate;
}
public static Date parseDate2(String date){
Date mydate=null;
try {
SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
mydate=sim.parse(date);
} catch (ParseException e) {
e.printStackTrace();
}
return mydate;
}
public static Date parseDate3(String date){
Date mydate=null;
try {
SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd");
mydate=sim.parse(date);
} catch (ParseException e) {
e.printStackTrace();
}
return mydate;
}
public static String parseDate1(String date){
Date mydate=null;
String d=null;
try {
SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd");
mydate=sim.parse(date);
d=sim.format(mydate);
} catch (ParseException e) {
e.printStackTrace();
}
return d;
}
public static String parseDate4(String date){
Date mydate=null;
String d=null;
try {
SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
mydate=sim.parse(date);
d=sim.format(mydate);
} catch (ParseException e) {
e.printStackTrace();
}
return d;
}
}
|
[
"[email protected]"
] | |
c30e1743ba9c30a7e22055d30664d6068a2e2fca
|
6253283b67c01a0d7395e38aeeea65e06f62504b
|
/decompile/app/Mms/src/main/java/com/android/mms/transaction/MessageSender.java
|
a517b33ef46d124f5a5db768f767626064c22577
|
[] |
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
| 171
|
java
|
package com.android.mms.transaction;
import com.google.android.mms.MmsException;
public interface MessageSender {
boolean sendMessage(long j) throws MmsException;
}
|
[
"[email protected]"
] | |
7476e3ecf32a1d9c481cac42c52ef26c9b0e6e87
|
416ed26975cc93982e9895da5f2f447383bc5d9f
|
/main/boofcv-geo/test/boofcv/alg/geo/bundle/TestCalibPoseAndPointRodiguesJacobian.java
|
c69d4d16dc0cf5331d0070462e057e48f0223ad9
|
[
"LicenseRef-scancode-takuya-ooura",
"Apache-2.0"
] |
permissive
|
jmankhan/BoofCV
|
4cb99fbe19afcd35197003fc967c998e9c4875de
|
afbb6b1bf360092b3ee6e3ed5d0d2f9710d0e2da
|
refs/heads/SNAPSHOT
| 2021-01-20T03:29:46.088886
| 2017-05-06T18:13:40
| 2017-05-06T18:13:40
| 89,549,111
| 1
| 0
| null | 2017-04-27T02:54:45
| 2017-04-27T02:54:45
| null |
UTF-8
|
Java
| false
| false
| 2,692
|
java
|
/*
* Copyright (c) 2011-2017, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package boofcv.alg.geo.bundle;
import georegression.struct.se.Se3_F64;
import org.ddogleg.optimization.DerivativeChecker;
import org.junit.Test;
import java.util.List;
import java.util.Random;
import static boofcv.abst.geo.bundle.TestBundleAdjustmentCalibratedDense.createModel;
import static boofcv.abst.geo.bundle.TestBundleAdjustmentCalibratedDense.createObservations;
import static org.junit.Assert.assertTrue;
/**
* @author Peter Abeles
*/
public class TestCalibPoseAndPointRodiguesJacobian {
Random rand = new Random(48854);
int numViews = 2;
int numPoints = 3;
CalibPoseAndPointRodriguesCodec codec = new CalibPoseAndPointRodriguesCodec();
CalibPoseAndPointResiduals func = new CalibPoseAndPointResiduals();
/**
* Check Jacobian against numerical. All views have unknown extrinsic parameters
*/
@Test
public void allUnknown() {
check(false,false);
}
/**
* Check Jacobian against numerical. All views have unknown extrinsic parameters
*/
@Test
public void allKnown() {
check(true, true);
}
private void check( boolean ...known ) {
CalibratedPoseAndPoint model = createModel(numViews,numPoints,rand);
List<ViewPointObservations> observations = createObservations(model,numViews,numPoints);
Se3_F64 extrinsic[] = new Se3_F64[known.length];
for( int i = 0; i < known.length; i++ ) {
model.setViewKnown(i,known[i]);
if( known[i] ) {
Se3_F64 e = new Se3_F64();
e.set(model.getWorldToCamera(i));
extrinsic[i] = e;
}
}
int numViewsUnknown = model.getNumUnknownViews();
codec.configure(numViews,numPoints,numViewsUnknown,known);
func.configure(codec,model,observations);
CalibPoseAndPointRodriguesJacobian alg = new CalibPoseAndPointRodriguesJacobian();
alg.configure(observations,numPoints,extrinsic);
double []param = new double[ codec.getParamLength() ];
codec.encode(model,param);
// DerivativeChecker.jacobianPrint(func, alg, param, 1e-6);
assertTrue(DerivativeChecker.jacobian(func, alg, param, 1e-4));
}
}
|
[
"[email protected]"
] | |
818e3fe6ee54670ff91c1916ef6b481e03d14f5e
|
2b55631fcefb7b504635d46499c76f9dc737d372
|
/src/main/java/com/fayayo/study/kafka/producer/KProducer.java
|
85c233dbe282629caee53d91d2e5d7badb943182
|
[] |
no_license
|
crelle/study
|
aa5a1f9b0fe8b3cdeb9f69fe2b4fd4b36bb7f4ca
|
715889fd21756edbdccb8de3a89eb25418801753
|
refs/heads/master
| 2020-04-18T17:47:20.615620
| 2019-01-22T11:57:46
| 2019-01-22T11:57:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,121
|
java
|
package com.fayayo.study.kafka.producer;
import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.clients.producer.*;
import java.util.Properties;
/**
* @author dalizu on 2018/11/6.
* @version v1.0
* @desc 生产者
*/
@Slf4j
public class KProducer {
public static void main(String[] args) throws InterruptedException {
try {
Producer<String, String> producer = createProducer();
sendMessages(producer);
// Allow the producer to complete sending of the messages before program exit.
Thread.sleep(2000);
}catch (Exception e){
e.printStackTrace();
}
}
private static Producer<String, String> createProducer() {
Properties props = new Properties();
props.put("bootstrap.servers", "192.168.88.129:9092");
props.put("acks", "all");//这意味着leader需要等待所有备份都成功写入日志,这种策略会保证只要有一个备份存活就不会丢失数据。这是最强的保证。
props.put("retries", 0);
// Controls how much bytes sender would wait to batch up before publishing to Kafka.
//控制发送者在发布到kafka之前等待批处理的字节数。 满足batch.size和ling.ms之一,producer便开始发送消息
//默认16384 16kb
props.put("batch.size", 16384);
props.put("linger.ms", 1);
props.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer");
props.put("value.serializer", "org.apache.kafka.common.serialization.StringSerializer");
return new KafkaProducer(props);
}
private static void sendMessages(Producer<String, String> producer) {
System.out.println("start send message......");
String topic = "test-topic";
int partition = 1;//指定分区发送
long record = 1;
for (int i = 1; i <= 200; i++) {
//指定分区发送
/*producer.send(
new ProducerRecord<String, String>(topic, partition,
Long.toString(record),"producer_msg"+Long.toString(record++)),new SendCallBack());*/
//不指定分区,会均匀发送
producer.send(
new ProducerRecord<String, String>(topic,"producer_msg"+Long.toString(record++)),new SendCallBack());
}
System.out.println("start send message......end");
}
/**
*
Future<RecordMetadata> send(ProducerRecord<K, V> producer, Callback callback);
Callback 是一个回调接口,在消息发送完成之后可以回调我们自定义的实现
* */
private static class SendCallBack implements Callback{
@Override
public void onCompletion(RecordMetadata recordMetadata, Exception e) {
if(null!=recordMetadata){
log.info("msg offset,partition,topic"+
recordMetadata.offset(),recordMetadata.partition(),recordMetadata.topic(),recordMetadata);
}else {
System.out.println("发送异常");
}
}
}
}
|
[
"[email protected]"
] | |
e8bbb97c52ea3288017843ec2ecccf5775cc197c
|
0b7a66259406ae5d934969f06fc031c4f970482e
|
/itcastTax/src/cn/itcast/nsfw/user/action/UserAction.java
|
9a76f52552b47effb54735686a13f7eb70b1e5bd
|
[] |
no_license
|
dawei134679/ssh_demo
|
67ca8a78bd5cd7f36d7efe3724c1f94e0b4f1bb6
|
ab266efb019249b09ea60d19cd43dca9346756c1
|
refs/heads/master
| 2020-03-23T04:48:18.803307
| 2018-07-16T08:02:23
| 2018-07-16T08:02:23
| 141,106,050
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,330
|
java
|
package cn.itcast.nsfw.user.action;
import java.io.File;
import java.io.IOException;
import java.net.URLDecoder;
import java.util.List;
import java.util.UUID;
import javax.annotation.Resource;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.struts2.ServletActionContext;
import cn.itcast.core.action.BaseAction;
import cn.itcast.core.exception.ActionException;
import cn.itcast.core.exception.ServiceException;
import cn.itcast.core.util.QueryHelper;
import cn.itcast.nsfw.role.entity.Role;
import cn.itcast.nsfw.role.service.RoleService;
import cn.itcast.nsfw.user.entity.User;
import cn.itcast.nsfw.user.entity.UserRole;
import cn.itcast.nsfw.user.service.UserService;
import com.opensymphony.xwork2.ActionContext;
public class UserAction extends BaseAction {
@Resource
private UserService userService;
@Resource
private RoleService roleService;
private User user;
private File headImg;
private String headImgFileName;
private String headImgContentType;
private File userExcel;
private String userExcelFileName;
private String userExcelContentType;
private String[] roleIds;
private String strName;
//列表
public String listUI() throws ActionException {
try {
QueryHelper queryHelper = new QueryHelper(User.class, "");
if(user != null){
if(StringUtils.isNotBlank(user.getName())){
user.setName(URLDecoder.decode(user.getName(),"utf-8"));
queryHelper.addCondition("name like ?", "%" + user.getName() + "%");
}
}
pageResult = userService.getPageResult(queryHelper, getPageNo(), getPageSize());
} catch (Exception e) {
e.printStackTrace();
}
return "listUI";
}
//跳转到新增页面
public String addUI(){
//加载角色列表
ActionContext.getContext().getContextMap().put("roleList", roleService.findObjects());
strName = user.getName();
user = null;
return "addUI";
}
//保存新增
public String add(){
try {
//保存用户
if(user != null){
//处理用户头像
if(headImg != null){//1、获取头像文件
//2、保存头像文件
String filePath = ServletActionContext.getServletContext().getRealPath("upload/user");
String fileName = UUID.randomUUID().toString().replaceAll("-", "") + headImgFileName.substring(headImgFileName.lastIndexOf("."));
FileUtils.copyFile(headImg, new File(filePath, fileName));
//3、设置用户头像路径
user.setHeadImg("user/" + fileName);
}
userService.saveUserAndRole(user, roleIds);
}
} catch (Exception e) {
e.printStackTrace();
}
return "list";
}
//跳转到编辑页面
public String editUI(){
//加载角色列表
ActionContext.getContext().getContextMap().put("roleList", roleService.findObjects());
if(user != null && StringUtils.isNotBlank(user.getId())){
strName = user.getName();
user = userService.findObjectById(user.getId());
//处理角色回显问题
List<UserRole> list = userService.findUserRolesByUserId(user.getId());
if(list != null && list.size() > 0){
roleIds = new String[list.size()];
int i = 0;
for(UserRole ur : list){
roleIds[i++] = ur.getId().getRole().getRoleId();
}
}
}
return "editUI";
}
//保存编辑
public String edit(){
try {
if(user != null){
//处理用户头像
if(headImg != null){//1、获取头像文件
//2、保存头像文件
String filePath = ServletActionContext.getServletContext().getRealPath("upload/user");
String fileName = UUID.randomUUID().toString().replaceAll("-", "") + headImgFileName.substring(headImgFileName.lastIndexOf("."));
FileUtils.copyFile(headImg, new File(filePath, fileName));
//3、设置用户头像路径
user.setHeadImg("user/" + fileName);
}
userService.updateUserAndRole(user,roleIds);
}
} catch (IOException e) {
e.printStackTrace();
}
return "list";
}
//根据id删除
public String delete(){
if(user != null && StringUtils.isNotBlank(user.getId())){
strName = user.getName();
userService.delete(user.getId());
}
return "list";
}
//批量删除
public String deleteSelected(){
if(selectedRow != null){
strName = user.getName();
for(String id: selectedRow){
userService.delete(id);
}
}
return "list";
}
//导出用户列表
public void exportExcel(){
try {
//1、获取用户列表
//2、输出excel
HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType("application/x-excel");
response.setHeader("Content-Disposition", "attachment;filename=" + new String("用户列表.xls".getBytes(), "ISO-8859-1"));
ServletOutputStream outputStream = response.getOutputStream();
userService.exportExcel(userService.findObjects(), outputStream);
if (outputStream != null) {
outputStream.close();
}
} catch (Exception e) {
e.printStackTrace();
}
}
//导入用户列表
public String importExcel(){
if(userExcel != null){
//判断是否是excel文件
if(userExcelFileName.matches("^.+\\.(?i)((xls)|(xlsx))$")){
userService.importExcel(userExcel);
}
}
return "list";
}
//校验帐号唯一性
public void verifyAccount(){
try {
//1、获取帐号、id
if(user != null && StringUtils.isNotBlank(user.getAccount())){
String res = "true";
//2、根据帐号、id查询用户记录
List<User> userList = userService.findUsersByAccountAndId(user.getAccount(), user.getId());
if(userList != null && userList.size() > 0){//说明该帐号已经存在
res = "false";
}
HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType("text/html;charset=utf-8");
ServletOutputStream outputStream = response.getOutputStream();
outputStream.write(res.getBytes());
outputStream.close();
}
} catch (Exception e) {
e.printStackTrace();
}
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public File getHeadImg() {
return headImg;
}
public void setHeadImg(File headImg) {
this.headImg = headImg;
}
public String getHeadImgFileName() {
return headImgFileName;
}
public void setHeadImgFileName(String headImgFileName) {
this.headImgFileName = headImgFileName;
}
public String getHeadImgContentType() {
return headImgContentType;
}
public void setHeadImgContentType(String headImgContentType) {
this.headImgContentType = headImgContentType;
}
public File getUserExcel() {
return userExcel;
}
public void setUserExcel(File userExcel) {
this.userExcel = userExcel;
}
public String getUserExcelFileName() {
return userExcelFileName;
}
public void setUserExcelFileName(String userExcelFileName) {
this.userExcelFileName = userExcelFileName;
}
public String getUserExcelContentType() {
return userExcelContentType;
}
public void setUserExcelContentType(String userExcelContentType) {
this.userExcelContentType = userExcelContentType;
}
public String[] getRoleIds() {
return roleIds;
}
public void setRoleIds(String[] roleIds) {
this.roleIds = roleIds;
}
public String getStrName() {
return strName;
}
public void setStrName(String strName) {
this.strName = strName;
}
}
|
[
"[email protected]"
] | |
d1a8a98eef740b0910dd2bf3815be21c50498f82
|
4e3c5dc1cfd033b0e7c1bea625f9ee64ae12871a
|
/org/nexage/sourcekit/mraid/internal/MRAIDNativeFeatureManager.java
|
c9a1e2c88d1b808d0654237ce65983cee3f8f6e7
|
[] |
no_license
|
haphan2014/idle_heroes
|
ced0f6301b7a618e470ebfa722bef3d4becdb6ba
|
5bcc66f8e26bf9273a2a8da2913c27a133b7d60a
|
refs/heads/master
| 2021-01-20T05:01:54.157508
| 2017-08-25T14:06:51
| 2017-08-25T14:06:51
| 101,409,563
| 1
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,116
|
java
|
package org.nexage.sourcekit.mraid.internal;
import android.content.Context;
import android.os.Build.VERSION;
import java.util.ArrayList;
import org.nexage.sourcekit.mraid.MRAIDNativeFeature;
public class MRAIDNativeFeatureManager {
private static final String TAG = "MRAIDNativeFeatureManager";
private Context context;
private ArrayList<String> supportedNativeFeatures;
public MRAIDNativeFeatureManager(Context context, ArrayList<String> supportedNativeFeatures) {
this.context = context;
this.supportedNativeFeatures = supportedNativeFeatures;
}
public boolean isCalendarSupported() {
boolean retval = this.supportedNativeFeatures.contains(MRAIDNativeFeature.CALENDAR) && VERSION.SDK_INT >= 14 && this.context.checkCallingOrSelfPermission("android.permission.WRITE_CALENDAR") == 0;
MRAIDLog.m2730d(TAG, "isCalendarSupported " + retval);
return retval;
}
public boolean isInlineVideoSupported() {
boolean retval = this.supportedNativeFeatures.contains(MRAIDNativeFeature.INLINE_VIDEO);
MRAIDLog.m2730d(TAG, "isInlineVideoSupported " + retval);
return retval;
}
public boolean isSmsSupported() {
boolean retval = this.supportedNativeFeatures.contains(MRAIDNativeFeature.SMS) && this.context.checkCallingOrSelfPermission("android.permission.SEND_SMS") == 0;
MRAIDLog.m2730d(TAG, "isSmsSupported " + retval);
return retval;
}
public boolean isStorePictureSupported() {
boolean retval = this.supportedNativeFeatures.contains(MRAIDNativeFeature.STORE_PICTURE);
MRAIDLog.m2730d(TAG, "isStorePictureSupported " + retval);
return retval;
}
public boolean isTelSupported() {
boolean retval = this.supportedNativeFeatures.contains(MRAIDNativeFeature.TEL) && this.context.checkCallingOrSelfPermission("android.permission.CALL_PHONE") == 0;
MRAIDLog.m2730d(TAG, "isTelSupported " + retval);
return retval;
}
public ArrayList<String> getSupportedNativeFeatures() {
return this.supportedNativeFeatures;
}
}
|
[
"[email protected]"
] | |
415319deec5ca5ae6fdc297fcacda9ed74060358
|
330d41a4ce8fe37676d08ed3acaea757f037a0f5
|
/Lab010/src/RegistrationServlet.java
|
e9c3d7fa22c4f61ff33e09814ad5866cba34c224
|
[] |
no_license
|
DenisStolyarov/Java
|
99dd170a67b21b4d7a8a1c3ac438634c03c1990b
|
dc3d86818cade2bfb8307d063742354a533e6c8d
|
refs/heads/master
| 2021-01-04T09:50:38.672044
| 2020-06-08T16:07:17
| 2020-06-08T16:07:17
| 240,495,836
| 0
| 0
| null | 2020-10-13T22:39:13
| 2020-02-14T11:43:28
|
Java
|
UTF-8
|
Java
| false
| false
| 1,330
|
java
|
import DAO.IDAO;
import DAO.MySQLDAO;
import DAO.User;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
public class RegistrationServlet extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
IDAO database = null;
ArrayList<User> users = null;
String log = "";
try {
log = request.getParameter("login");
String pass = request.getParameter("password");
database = new MySQLDAO();
database.InsertUser(log,pass);
}
catch (SQLException e) {
e.printStackTrace();
}
catch (ClassNotFoundException e) {
e.printStackTrace();
}
response.addCookie(new Cookie("Login", log));
getServletContext().getRequestDispatcher("/TourList.jsp").forward(request, response);
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
}
|
[
"[email protected]"
] | |
2d3f834056634b989b16e345edfa917a781b5e7b
|
30b86c7a3fe6513a8003b5157dffd1f5dda08b38
|
/core/src/main/java/org/openstack4j/model/network/ext/LoadBalancerV2.java
|
c39b44bb046792ed2fb3cdc82f4db163403a9d41
|
[
"Apache-2.0"
] |
permissive
|
tanjin861117/openstack4j
|
c098a25529398855a1391f4d51fc28b687cb8cb6
|
b58da68654fc7570a3aee3f1eabdf9aef499a607
|
refs/heads/master
| 2020-04-06T17:29:04.079837
| 2018-11-13T13:17:20
| 2018-11-13T13:17:20
| 157,660,728
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,154
|
java
|
package org.openstack4j.model.network.ext;
import org.openstack4j.common.Buildable;
import org.openstack4j.model.ModelEntity;
import org.openstack4j.model.network.ext.builder.LoadBalancerV2Builder;
import org.openstack4j.openstack.networking.domain.ext.ListItem;
import java.util.List;
/**
* An entity used to update an lbaas v2 loadbalancer
* @author emjburns
*/
public interface LoadBalancerV2 extends ModelEntity, Buildable<LoadBalancerV2Builder> {
/**
* @return id. The unique ID for the loadbalancer.
*/
String getId();
/**
* @return tenantId.
* Owner of the loadbalancer. Only an administrative user can specify a tenant ID other than its own.
*/
String getTenantId();
/**
* @return loadbalancer name. Does not have to be unique.
*/
String getName();
/**
* @return Description for the loadbalancer.
*/
String getDescription();
/**
* @return The vip subnet id of the loadbalancer.
*/
String getVipSubnetId();
/**
* @return The vip address of the loadbalancer.
*/
String getVipAddress();
/***
* @return the vip port id of the loadbalancer
*/
String getVipPortId();
/**
* @return The administrative state of the loadbalancer, which is up (true) or
* down (false).
*/
boolean isAdminStateUp();
/**
* @return The listeners of the loadbalancer.
*/
List<ListItem> getListeners();
/**
* @return provisioningStatus.The provisioning status of the loadbalancer. Indicates whether the
* loadbalancer is provisioning.
* Either ACTIVE, PENDING_CREATE or ERROR.
*/
LbProvisioningStatus getProvisioningStatus();
/**
* @return operatingStatus.The operating status of the loadbalancer. Indicates whether the
* loadbalancer is operational.
*/
LbOperatingStatus getOperatingStatus();
/**
* Retrieve provider the load balancer is provisioned with
* @return provider
*/
String getProvider();
}
|
[
"[email protected]"
] | |
da80bc32884e6bad4474d905010395d088657e07
|
f59f9a03eaf296faa8fad67380e5c90958dbe3cf
|
/src/main/java/com/whg/ijvm/ch09/heap/constant/ClassRef.java
|
304b83085a41b563528375ba84be678e34080e88
|
[] |
no_license
|
whg333/ijvm
|
479b1ee2328c6b8c663e668b2c38c8423dbb8596
|
28c4b60beaa7412cec59e210e40c366b74aaa939
|
refs/heads/master
| 2022-06-26T07:47:10.357161
| 2022-05-16T12:25:32
| 2022-05-16T12:25:32
| 208,620,194
| 3
| 2
| null | 2022-06-17T03:37:40
| 2019-09-15T16:09:24
|
Java
|
UTF-8
|
Java
| false
| false
| 325
|
java
|
package com.whg.ijvm.ch09.heap.constant;
import com.whg.ijvm.ch09.classfile.constantinfo.member.ClassInfo;
import com.whg.ijvm.ch09.heap.RConstantPool;
public class ClassRef extends SymRef{
public ClassRef(RConstantPool cp, ClassInfo classInfo){
this.cp = cp;
className = classInfo.getName();
}
}
|
[
"[email protected]"
] | |
3f12b2823a1ea0cdc6908a0ef20b5bce5b834739
|
f0568343ecd32379a6a2d598bda93fa419847584
|
/modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201308/ForecastError.java
|
422b536a4f982f23064cf94aca58246d8e0ec3d1
|
[
"Apache-2.0"
] |
permissive
|
frankzwang/googleads-java-lib
|
bd098b7b61622bd50352ccca815c4de15c45a545
|
0cf942d2558754589a12b4d9daa5902d7499e43f
|
refs/heads/master
| 2021-01-20T23:20:53.380875
| 2014-07-02T19:14:30
| 2014-07-02T19:14:30
| 21,526,492
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,568
|
java
|
package com.google.api.ads.dfp.jaxws.v201308;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Errors that can result from a forecast request.
*
*
* <p>Java class for ForecastError complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ForecastError">
* <complexContent>
* <extension base="{https://www.google.com/apis/ads/publisher/v201308}ApiError">
* <sequence>
* <element name="reason" type="{https://www.google.com/apis/ads/publisher/v201308}ForecastError.Reason" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ForecastError", propOrder = {
"reason"
})
public class ForecastError
extends ApiError
{
protected ForecastErrorReason reason;
/**
* Gets the value of the reason property.
*
* @return
* possible object is
* {@link ForecastErrorReason }
*
*/
public ForecastErrorReason getReason() {
return reason;
}
/**
* Sets the value of the reason property.
*
* @param value
* allowed object is
* {@link ForecastErrorReason }
*
*/
public void setReason(ForecastErrorReason value) {
this.reason = value;
}
}
|
[
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.