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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
953101e373e2091310c41922cdef1864201659ad
|
2eb5604c0ba311a9a6910576474c747e9ad86313
|
/chado-pg-orm/src/org/irri/iric/chado/so/PopulationSpecificVariant.java
|
69e40b21feac0eb65167213589cc60c452599ebb
|
[] |
no_license
|
iric-irri/portal
|
5385c6a4e4fd3e569f5334e541d4b852edc46bc1
|
b2d3cd64be8d9d80b52d21566f329eeae46d9749
|
refs/heads/master
| 2021-01-16T00:28:30.272064
| 2014-05-26T05:46:30
| 2014-05-26T05:46:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 545
|
java
|
package org.irri.iric.chado.so;
// Generated 05 26, 14 1:32:25 PM by Hibernate Tools 3.4.0.CR1
/**
* PopulationSpecificVariant generated by hbm2java
*/
public class PopulationSpecificVariant implements java.io.Serializable {
private PopulationSpecificVariantId id;
public PopulationSpecificVariant() {
}
public PopulationSpecificVariant(PopulationSpecificVariantId id) {
this.id = id;
}
public PopulationSpecificVariantId getId() {
return this.id;
}
public void setId(PopulationSpecificVariantId id) {
this.id = id;
}
}
|
[
"locem@berting-debian.ourwebserver.no-ip.biz"
] |
locem@berting-debian.ourwebserver.no-ip.biz
|
248c07a4a1f06b2b08ce57b5662017b9e2bacfb4
|
2b2c1d4c3580e794096d9264efc0f28a31e5d76e
|
/app/src/main/java/com/framgia/moneymanagement/screen/statistics/StatisticsContract.java
|
dd57d2e43ab6f8296fb981d982156ca01ea99e1a
|
[] |
no_license
|
awesome-academy/Android_Money_Management_01
|
9cf416ab2414d4f721adce96c5d8c6ea79ac142d
|
39b5e6b43b62107773b5aff9e5eb2a0fd05de42c
|
refs/heads/master
| 2020-04-04T01:53:37.208099
| 2018-11-23T13:19:47
| 2018-11-23T13:19:47
| 155,680,941
| 1
| 1
| null | 2018-11-23T13:19:49
| 2018-11-01T07:54:26
|
Java
|
UTF-8
|
Java
| false
| false
| 657
|
java
|
package com.framgia.moneymanagement.screen.statistics;
import com.framgia.moneymanagement.data.model.Income;
import com.framgia.moneymanagement.data.model.Spending;
import java.util.List;
public interface StatisticsContract {
interface View {
void onGetSumIncomeSuccess(int sumIncome);
void onGetSumIncomeFail(String msg);
void onGetSumSpendingSuccess(int sumSpending);
void onGetSumSpendingFail(String msg);
void onSumSalaryGain(int sub);
void onSumSalaryReduce(int sub);
void peaChartArtIncome(List<Income> incomes);
void peaChartArtSpending(List<Spending> spendings);
}
}
|
[
"johndoe@example.com"
] |
johndoe@example.com
|
438e21637361195d9e538f3537fbb98b6aa802cb
|
42bb692d9140736c468e7ae328564c12b830b4be
|
/bitcamp-javaproject/src24/main/java/bitcamp/java106/pms/controller/BoardController.java
|
8b233d609964e9d16f39ce11771b379bfb1a7eea
|
[] |
no_license
|
kimkwanhee/bitcamp
|
b047f4cc391d2c43bad858f2ffb4f3a6a3779aa2
|
0245693f83b06d773365b9b5b6b3d4747877d070
|
refs/heads/master
| 2021-01-24T10:28:06.247239
| 2018-08-20T03:13:18
| 2018-08-20T03:13:18
| 123,054,178
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,809
|
java
|
// Controller 규칙에 따라 메서드 작성
package bitcamp.java106.pms.controller;
import java.sql.Date;
import java.util.Iterator;
import java.util.Scanner;
import bitcamp.java106.pms.annotation.Component;
import bitcamp.java106.pms.dao.BoardDao;
import bitcamp.java106.pms.domain.Board;
import bitcamp.java106.pms.util.Console;
@Component("board")
public class BoardController implements Controller {
Scanner keyScan;
BoardDao boardDao;
public BoardController(Scanner scanner, BoardDao boardDao) {
this.keyScan = scanner;
this.boardDao = boardDao;
}
public void service(String menu, String option) {
if (menu.equals("board/add")) {
this.onBoardAdd();
} else if (menu.equals("board/list")) {
this.onBoardList();
} else if (menu.equals("board/view")) {
this.onBoardView(option);
} else if (menu.equals("board/update")) {
this.onBoardUpdate(option);
} else if (menu.equals("board/delete")) {
this.onBoardDelete(option);
} else {
System.out.println("명령어가 올바르지 않습니다.");
}
}
void onBoardAdd() {
System.out.println("[게시물 입력]");
Board board = new Board();
System.out.print("제목? ");
board.setTitle(this.keyScan.nextLine());
System.out.print("내용? ");
board.setContent(this.keyScan.nextLine());
System.out.print("등록일? ");
board.setCreatedDate(Date.valueOf(this.keyScan.nextLine()));
boardDao.insert(board);
}
void onBoardList() {
System.out.println("[게시물 목록]");
Iterator<Board> iterator = boardDao.list();
while (iterator.hasNext()) {
Board board = iterator.next();
System.out.printf("%d, %s, %s\n",
board.getNo(), board.getTitle(), board.getCreatedDate());
}
}
void onBoardView(String option) {
System.out.println("[게시물 조회]");
if (option == null) {
System.out.println("번호를 입력하시기 바랍니다.");
return;
}
Board board = boardDao.get(Integer.parseInt(option));
if (board == null) {
System.out.println("유효하지 않은 게시물 번호입니다.");
} else {
System.out.printf("팀명: %s\n", board.getTitle());
System.out.printf("설명: %s\n", board.getContent());
System.out.printf("등록일: %s\n", board.getCreatedDate());
}
}
void onBoardUpdate(String option) {
System.out.println("[게시물 변경]");
if (option == null) {
System.out.println("번호를 입력하시기 바랍니다.");
return;
}
Board board = boardDao.get(Integer.parseInt(option));
if (board == null) {
System.out.println("유효하지 않은 게시물 번호입니다.");
} else {
Board updateBoard = new Board();
updateBoard.setNo(board.getNo());
System.out.printf("제목(%s)? ", board.getTitle());
updateBoard.setTitle(this.keyScan.nextLine());
System.out.printf("설명(%s)? ", board.getContent());
updateBoard.setContent(this.keyScan.nextLine());
updateBoard.setCreatedDate(board.getCreatedDate());
int index = boardDao.indexOf(board.getNo());
boardDao.update(index, updateBoard);
System.out.println("변경하였습니다.");
}
}
void onBoardDelete(String option) {
System.out.println("[게시물 삭제]");
if (option == null) {
System.out.println("번호를 입력하시기 바랍니다.");
return;
}
int i = Integer.parseInt(option);
Board board = boardDao.get(i);
if (board == null) {
System.out.println("유효하지 않은 게시물 번호입니다.");
} else {
if (Console.confirm("정말 삭제하시겠습니까?")) {
boardDao.delete(i);
System.out.println("삭제하였습니다.");
}
}
}
}
//ver 23 - @Component 애노테이션을 붙인다. BoardDao를 받도록 생성자 변경.
//ver 22 - BoardDao 변경 사항에 맞춰 이 클래스를 변경한다.
// ver 18 - BoardDao 변경 사항에 맞춰 이 클래스를 변경한다.
// ver 16 - 인스턴스 변수를 직접 사용하는 대신 겟터, 셋터 사용.
// ver 14 - BoardDao를 사용하여 게시물 데이터를 관리한다.
// ver 13 - 게시물 등록할 때 등록일의 문자열을 Date 객체로 만들어 저장.
|
[
"rhdwn1955@naver.com"
] |
rhdwn1955@naver.com
|
512ab2d5dd17dd3d5c136f6f594739b218904df6
|
51aef8e206201568d04fb919bf54a3009c039dcf
|
/trunk/src/com/jme/scene/state/lwjgl/records/StencilStateRecord.java
|
6782073a4621746108cd8b31242f8857d2a992c6
|
[] |
no_license
|
lihak/fairytale-soulfire-svn-to-git
|
0b8bdbfcaf774f13fc3d32cc3d3a6fae64f29c81
|
a85eb3fc6f4edf30fef9201902fcdc108da248e4
|
refs/heads/master
| 2021-02-11T15:25:47.199953
| 2015-12-28T14:48:14
| 2015-12-28T14:48:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,304
|
java
|
/*
* Copyright (c) 2003-2008 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme.scene.state.lwjgl.records;
import com.jme.scene.state.StateRecord;
public class StencilStateRecord extends StateRecord {
public boolean enabled = false;
// public int[] func = { -1, -1, -1 };
// public int[] ref = { -1, -1, -1 };
// public int[] writeMask = { -1, -1, -1 };
// public int[] funcMask = { -1, -1, -1 };
// public int[] fail = { -1, -1, -1 };
// public int[] zfail = { -1, -1, -1 };
// public int[] zpass = { -1, -1, -1 };
public boolean useTwoSided = false;
@Override
public void invalidate() {
super.invalidate();
enabled = false;
useTwoSided = false;
}
}
|
[
"you@example.com"
] |
you@example.com
|
f96c3579724964549bf98a820059fbc06485adda
|
042342f9dc0e8662a1a7da671ab5dc9d82ccd835
|
/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/custom/direction/DirectionEnrichMediatorAction.java
|
3188803a5e90d7cad8d49aed804f845d15144a10
|
[
"Apache-2.0"
] |
permissive
|
ksdperera/developer-studio
|
6fe6d50a66e4fb73de3a4dbeef8d68b461da1ab6
|
9c0f601b91cc34dda036c660598a93c232260e08
|
refs/heads/developer-studio-3.8.0
| 2021-01-15T08:50:21.571267
| 2018-10-26T12:59:17
| 2018-10-26T12:59:17
| 39,486,894
| 0
| 1
|
Apache-2.0
| 2018-10-26T12:59:18
| 2015-07-22T05:13:13
|
Java
|
UTF-8
|
Java
| false
| false
| 673
|
java
|
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.custom.direction;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.gef.EditPart;
import org.eclipse.ui.IWorkbenchPart;
public class DirectionEnrichMediatorAction extends DirectionEsbNodeAction {
EditPart editorPart;
public DirectionEnrichMediatorAction(IWorkbenchPart part) {
super(part);
setText("Reverse");
setToolTipText("Set Direction Enrich mediator.");
// TODO Auto-generated constructor stub
}
public void setEditorPart(EditPart editorPart_){
editorPart=editorPart_;
}
protected void doRun(IProgressMonitor progressMonitor) {
Reverse(editorPart);
}
}
|
[
"harshana@wso2.com"
] |
harshana@wso2.com
|
593e34355cebe5c206f9c6bb4dd8ee4c3b63925c
|
47e4d2da9539eb7d205acb94d2e33ff0aa2b46b3
|
/src/main/java/com/github/vaerys/tags/cctags/TagIfChannelReplace.java
|
e0ac7d15f6ddd3fa8024d122365ff2fb0a542e93
|
[] |
no_license
|
Vaerys-Dawn/DiscordSailv2
|
46b93969e58bf810d118d5e1243e9c8a23f44841
|
0ce6a9e8865919e8a7ad830c5d92c71d172b8c33
|
refs/heads/master
| 2022-05-31T02:53:23.265370
| 2018-11-23T01:01:11
| 2018-11-23T01:01:11
| 66,695,839
| 28
| 11
| null | 2020-07-07T00:58:10
| 2016-08-27T04:27:02
|
Java
|
UTF-8
|
Java
| false
| false
| 1,883
|
java
|
package com.github.vaerys.tags.cctags;
import com.github.vaerys.masterobjects.CommandObject;
import com.github.vaerys.enums.TagType;
import com.github.vaerys.objects.ReplaceObject;
import com.github.vaerys.templates.TagReplaceObject;
import org.apache.commons.lang3.StringUtils;
import java.util.List;
import java.util.regex.Pattern;
public class TagIfChannelReplace extends TagReplaceObject {
public TagIfChannelReplace(int priority, TagType... types) {
super(priority, types);
}
@Override
public String execute(String from, CommandObject command, String args, List<ReplaceObject> toReplace) {
List<String> splitString = getSplit(from);
from = removeFirstTag(from);
long id;
if (!Pattern.compile("<#[0-9]*>").matcher(splitString.get(0)).matches()) {
return replaceFirstTag(from, error);
} else {
try {
id = Long.parseUnsignedLong(StringUtils.substringBetween(splitString.get(0), "<#", ">"));
} catch (NumberFormatException e) {
return replaceFirstTag(from, error);
}
if (id == command.channel.longID) {
toReplace.add(new ReplaceObject(splitString.get(1), splitString.get(2)));
} else {
toReplace.add(new ReplaceObject(splitString.get(1), splitString.get(3)));
}
}
return from;
}
@Override
protected String tagName() {
return "<ifChannelReplace>";
}
@Override
protected int argsRequired() {
return 4;
}
@Override
protected String usage() {
return "Channel" + splitter + "Replace" + splitter + "True" + splitter + "False";
}
@Override
protected String desc() {
return "replaces the second argument with text based of if its in the specified channel or not.";
}
}
|
[
"thelegotechhead@yahoo.com.au"
] |
thelegotechhead@yahoo.com.au
|
2d802c2b16d40d9faaf32a3c1746d325748a7804
|
4ffef4b1e3214dfb42dc079aacc7a9df83b4e8df
|
/third_party/galago/core/src/main/java/org/lemurproject/galago/core/parse/Tag.java
|
499f4ec006f2f811308696edb3c16b550c990cdb
|
[
"BSD-3-Clause"
] |
permissive
|
jjfiv/irene
|
55145fc6118dfac6ad449419ac342a41a96a129a
|
8713a97600cc939bddb1d66fa3bf04658c035db3
|
refs/heads/main
| 2021-08-16T18:33:51.336630
| 2021-06-15T20:23:45
| 2021-06-15T20:23:45
| 130,254,789
| 6
| 0
|
BSD-3-Clause
| 2021-04-03T01:53:18
| 2018-04-19T18:13:44
|
Kotlin
|
UTF-8
|
Java
| false
| false
| 2,645
|
java
|
// BSD License (http://lemurproject.org/galago-license)
package org.lemurproject.galago.core.parse;
import java.io.Serializable;
import java.util.Map.Entry;
import java.util.Map;
/**
* This class represents a tag in a XML/HTML document.
*
* A tag has a tagName, an optional set of attributes, a beginning position and an
* end position. The positions are in terms of tokens, so if begin = 5, that means
* the open tag is between token 5 and token 6.
*
* @author trevor
*/
public class Tag implements Comparable<Tag>, Serializable {
public String name;
public Map<String, String> attributes;
public int begin;
public int end;
public int charBegin;
public int charEnd;
/**
* Constructs a tag.
*
* @param name The tagName of the tag.
* @param attributes Attributes of the tag.
* @param termBegin Location of the start tag within the document, in tokens.
* @param termEnd, Location of the end tag within the document, in tokens.
* @param charBegin Location of the start tag within the document, in characters.
* @param charEnd, Location of the end tag within the document, in characters.
*/
public Tag(String name, Map<String, String> attributes, int termBegin, int termEnd, int charBegin, int charEnd) {
this.name = name;
this.attributes = attributes;
this.begin = termBegin;
this.end = termEnd;
this.charBegin = charBegin;
this.charEnd = charEnd;
}
public Tag(String name, Map<String, String> attributes, int termBegin, int termEnd) {
this.name = name;
this.attributes = attributes;
this.begin = termBegin;
this.end = termEnd;
this.charBegin = -1;
this.charEnd = -1;
}
/**
* Compares two tags together. Tags are ordered by the location of
* the open tag. If we find two tags opening at the same location, the tie
* is broken by the location of the closing tag.
*
* @param other
* @return
*/
@Override
public int compareTo(Tag other) {
int deltaBegin = begin - other.begin;
if (deltaBegin == 0) {
return other.end - end;
}
return deltaBegin;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("<");
builder.append(name);
builder.append(" [").append(begin).append("-").append(end).append("]");
for (Entry<String, String> entry : attributes.entrySet()) {
builder.append(' ');
builder.append(entry.getKey());
builder.append('=');
builder.append('"');
builder.append(entry.getValue());
builder.append('"');
}
builder.append('>');
return builder.toString();
}
}
|
[
"johnf@middlebury.edu"
] |
johnf@middlebury.edu
|
c8a8f49fc5999b525f65333fbfc30246f4a92ff8
|
4627d514d6664526f58fbe3cac830a54679749cd
|
/results/evosuite5/math-org.apache.commons.math.geometry.CardanEulerSingularityException-14/org/apache/commons/math/geometry/CardanEulerSingularityException_ESTest.java
|
ab710e9a3085f42a509e5159089c8b07a3239ea1
|
[] |
no_license
|
STAMP-project/Cling-application
|
c624175a4aa24bb9b29b53f9b84c42a0f18631bd
|
0ff4d7652b434cbfd9be8d8bb38cfc8d8eaa51b5
|
refs/heads/master
| 2022-07-27T09:30:16.423362
| 2022-07-19T12:01:46
| 2022-07-19T12:01:46
| 254,310,667
| 2
| 2
| null | 2021-07-12T12:29:50
| 2020-04-09T08:11:35
| null |
UTF-8
|
Java
| false
| false
| 1,058
|
java
|
/*
* This file was automatically generated by EvoSuite
* Tue Aug 13 15:52:20 GMT 2019
*/
package org.apache.commons.math.geometry;
import org.junit.Test;
import static org.junit.Assert.*;
import org.apache.commons.math.geometry.CardanEulerSingularityException;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = false, useJEE = true)
public class CardanEulerSingularityException_ESTest extends CardanEulerSingularityException_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
CardanEulerSingularityException cardanEulerSingularityException0 = new CardanEulerSingularityException(true);
}
@Test(timeout = 4000)
public void test1() throws Throwable {
CardanEulerSingularityException cardanEulerSingularityException0 = new CardanEulerSingularityException(false);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
6aa5e55445f9caaa848824afcd6916baa677db94
|
b0cb38e7fb57d625529884c7f025333e89fc24db
|
/dubbo-demo/user-service-provider-boot/src/test/java/com/howard/dubbo/boot/UserServiceProviderBootApplicationTests.java
|
53d6eeaa9802685fcc5e6969fdd0f0546104f753
|
[] |
no_license
|
Yhongwu/MyDemo
|
4a5ca4f027400d16734e1ccc53f1d62fdc144861
|
dd1079aed01df4ded54f5163b8980705e422d4bf
|
refs/heads/master
| 2021-01-01T17:35:22.742169
| 2019-04-13T01:57:19
| 2019-04-13T01:57:19
| 83,219,344
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 356
|
java
|
package com.howard.dubbo.boot;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class UserServiceProviderBootApplicationTests {
@Test
public void contextLoads() {
}
}
|
[
"hongwu39028@163.com"
] |
hongwu39028@163.com
|
dc77b67f0255d1bb129d54c79c3843e15241eccb
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/neo4j/2017/12/QueryLoggerKernelExtension.java
|
8c392d00664045552012e1a7bffde0604d881b9a
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 2,951
|
java
|
/*
* Copyright (c) 2002-2017 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.kernel.impl.query;
import org.neo4j.helpers.Service;
import org.neo4j.io.fs.FileSystemAbstraction;
import org.neo4j.kernel.configuration.Config;
import org.neo4j.kernel.extension.KernelExtensionFactory;
import org.neo4j.kernel.impl.logging.LogService;
import org.neo4j.kernel.impl.spi.KernelContext;
import org.neo4j.kernel.lifecycle.Lifecycle;
import org.neo4j.kernel.lifecycle.LifecycleAdapter;
import org.neo4j.kernel.monitoring.Monitors;
import org.neo4j.logging.Log;
import org.neo4j.scheduler.JobScheduler;
@Service.Implementation( KernelExtensionFactory.class )
public class QueryLoggerKernelExtension extends KernelExtensionFactory<QueryLoggerKernelExtension.Dependencies>
{
public interface Dependencies
{
FileSystemAbstraction fileSystem();
Config config();
Monitors monitoring();
LogService logger();
JobScheduler jobScheduler();
}
public QueryLoggerKernelExtension()
{
super( "query-logging" );
}
@Override
public Lifecycle newInstance( @SuppressWarnings( "unused" ) KernelContext context, final Dependencies dependencies ) throws Throwable
{
FileSystemAbstraction fileSystem = dependencies.fileSystem();
Config config = dependencies.config();
Monitors monitoring = dependencies.monitoring();
LogService logService = dependencies.logger();
JobScheduler jobScheduler = dependencies.jobScheduler();
return new LifecycleAdapter()
{
DynamicLoggingQueryExecutionMonitor logger;
@Override
public void init() throws Throwable
{
Log debugLog = logService.getInternalLog( DynamicLoggingQueryExecutionMonitor.class );
this.logger = new DynamicLoggingQueryExecutionMonitor( config, fileSystem, jobScheduler, debugLog );
this.logger.init();
monitoring.addMonitorListener( this.logger );
}
@Override
public void shutdown() throws Throwable
{
logger.close();
}
};
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
a13c88a610ec85eabf08d37a4ae927c04e99dc02
|
3d7d658f0d95d19eae9ee94bf6f339a33e0b7679
|
/lucas-services/src/main/java/com/lucas/entity/ui/canvas/CanvasType.java
|
d220ee15d8d0f621465bdc4978107af5b974084f
|
[] |
no_license
|
goverdhan1/lucasware
|
a3a6c2e898c7f3d413628c1dc97bfb328a75ccc3
|
fc59d862afd62cab0098ebe99ed5f8b604a87c35
|
refs/heads/master
| 2021-01-10T10:52:14.222460
| 2015-11-29T17:28:43
| 2015-11-29T17:28:43
| 47,071,633
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 311
|
java
|
package com.lucas.entity.ui.canvas;
public enum CanvasType {
COMPANY ("company"),
PRIVATE ("private"),
LUCAS ("lucas");
private String name;
CanvasType(String name) { this.name = name; }
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
[
"goverdhan.k@gmail.com"
] |
goverdhan.k@gmail.com
|
c870f6bfa977254c165cfb0129696d38e3048bb6
|
b5a4790330d45512e481060d0e930223defbbb35
|
/src/main/java/com/igomall/controller/member/DistributionCommissionController.java
|
c05e3f890d95514c0e058d8790ddb7c0c7df714f
|
[] |
no_license
|
heyewei/cms_shop
|
451081a46b03e85938d8dd256a9b97662241ac63
|
29047908c40202ddaa3487369a4429ab15634b9d
|
refs/heads/master
| 2023-02-13T15:43:17.118001
| 2020-12-29T09:58:52
| 2020-12-29T09:58:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,339
|
java
|
/*
* Copyright 2008-2018 shopxx.net. All rights reserved.
* Support: localhost
* License: localhost/license
* FileId: p23bon8B2RydpTLVqqhKq4q9UyyTVmSh
*/
package com.igomall.controller.member;
import javax.inject.Inject;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import com.fasterxml.jackson.annotation.JsonView;
import com.igomall.Pageable;
import com.igomall.entity.BaseEntity;
import com.igomall.entity.Distributor;
import com.igomall.entity.Member;
import com.igomall.exception.UnauthorizedException;
import com.igomall.security.CurrentUser;
import com.igomall.service.DistributionCommissionService;
/**
* Controller - 分销佣金
*
* @author 爱购 Team
* @version 6.1
*/
@Controller("memberDistributionCommissionController")
@RequestMapping("/member/distribution_commission")
public class DistributionCommissionController extends BaseController {
/**
* 每页记录数
*/
private static final int PAGE_SIZE = 10;
@Inject
private DistributionCommissionService distributionCommissionService;
/**
* 添加属性
*/
@ModelAttribute
public void populateModel(@CurrentUser Member currentUser, ModelMap model) {
if (!currentUser.getIsDistributor()) {
throw new UnauthorizedException();
}
model.addAttribute("distributor", currentUser.getDistributor());
}
/**
* 列表
*/
@GetMapping("/list")
public String list(Pageable pageable, @ModelAttribute(binding = false) Distributor distributor, ModelMap model) {
model.addAttribute("page", distributionCommissionService.findPage(distributor, pageable));
return "member/distribution_commission/list";
}
/**
* 列表
*/
@GetMapping(path = "/list", produces = MediaType.APPLICATION_JSON_VALUE)
@JsonView(BaseEntity.BaseView.class)
public ResponseEntity<?> list(Integer pageNumber, @ModelAttribute(binding = false) Distributor distributor) {
Pageable pageable = new Pageable(pageNumber, PAGE_SIZE);
return ResponseEntity.ok(distributionCommissionService.findPage(distributor, pageable).getContent());
}
}
|
[
"1169794338@qq.com"
] |
1169794338@qq.com
|
6dd337fdbf1cf01f9781b7ebef2d60905bf2e224
|
6b77b0ee992648a7975658ab3977866b3e43ad09
|
/nabl2.solver/src/main/java/mb/nabl2/constraints/messages/IMessageInfo.java
|
c052307fffb6080c2eed17ab6601be407443c4e4
|
[
"Apache-2.0"
] |
permissive
|
metaborg/nabl
|
a820577e161b8518ad7aa6fc116b0192e5bc817c
|
6cd49d3a1a545b6aadb2ddd611af9e5bdd7e03f6
|
refs/heads/master
| 2023-08-04T22:43:46.021208
| 2023-07-20T08:42:26
| 2023-07-20T08:42:26
| 9,931,478
| 9
| 13
|
Apache-2.0
| 2023-07-10T12:25:28
| 2013-05-08T08:06:16
|
Java
|
UTF-8
|
Java
| false
| false
| 420
|
java
|
package mb.nabl2.constraints.messages;
import org.metaborg.util.functions.Function1;
import mb.nabl2.terms.ITerm;
public interface IMessageInfo {
MessageKind getKind();
IMessageContent getContent();
ITerm getOriginTerm();
IMessageInfo withDefaultContent(IMessageContent defaultContent);
IMessageInfo withContent(IMessageContent content);
IMessageInfo apply(Function1<ITerm, ITerm> f);
}
|
[
"hendrik@van-antwerpen.net"
] |
hendrik@van-antwerpen.net
|
da501ec5eef902052df180d4c566bc9ff4800855
|
d8ba950c2dc94f6459bb36bffca7a1e0337ae194
|
/ alarmproj --username namucoo/AlarmProj/src/multiLayerSubnetwork/EMSFreedomLevel_THelper.java
|
7ac8227e70fa9d9aa49ec521cf1e29b7e16219ca
|
[] |
no_license
|
aalzehla/alarmproj
|
7160f4d467fa25d99b168daff6ae6ce6bc527688
|
56cb94f937dcc968dc56c25830d28ef84ee729ee
|
refs/heads/master
| 2021-05-28T22:35:22.864182
| 2009-09-03T01:11:04
| 2009-09-03T01:11:04
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 2,720
|
java
|
package multiLayerSubnetwork;
/**
* multiLayerSubnetwork/EMSFreedomLevel_THelper.java .
* 由 IDL-to-Java 编译器(可移植),版本 "3.2" 生成
* 来自 multiLayerSubnetwork.idl
* 2009年9月2日 星期三 下午03时26分24秒 CST
*/
/**
* <p>Describes the NMS-specified EMS level of freedom when performing SNC
* operations.</p>
* <p>EMSFL_CC_AT_SNC_LAYER: The EMS is allowed to create or delete cross-
* connections,at the layer of the SNC <i>only</i>, that are or will be
* directly used by it.</p>
* <p>EMSFL_TERMINATE_AND_MAP: In addition to EMSFL_CC_AT_SNC_LAYER, the EMS
* is allowed to terminate and map or unmap and unterminate CTPs
* to generate or eliminate CTPs that are or will be used by the SNC.</p>
* <p>EMSFL_HIGHER_ORDER_SNCS: In addition to EMSFL_TERMINATE_AND_MAP, the EMS
* is allowed to create or delete higher order SNCs that are or will be used
* to carry the SNC.</p>
* <p>EMSFL_RECONFIGURATION: The EMS is allowed to perform <i>any</i>
* operation that it considers relevant, which includes reorganizing any SNC
* or TP to allow the creation or activation of the SNC or to make the
* subnetwork more efficient.</p>
**/
abstract public class EMSFreedomLevel_THelper
{
private static String _id = "IDL:mtnm.tmforum.org/multiLayerSubnetwork/EMSFreedomLevel_T:1.0";
public static void insert (org.omg.CORBA.Any a, multiLayerSubnetwork.EMSFreedomLevel_T that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static multiLayerSubnetwork.EMSFreedomLevel_T extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
__typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (multiLayerSubnetwork.EMSFreedomLevel_THelper.id (), "EMSFreedomLevel_T", new String[] { "EMSFL_CC_AT_SNC_LAYER", "EMSFL_TERMINATE_AND_MAP", "EMSFL_HIGHER_ORDER_SNCS", "EMSFL_RECONFIGURATION"} );
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static multiLayerSubnetwork.EMSFreedomLevel_T read (org.omg.CORBA.portable.InputStream istream)
{
return multiLayerSubnetwork.EMSFreedomLevel_T.from_int (istream.read_long ());
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, multiLayerSubnetwork.EMSFreedomLevel_T value)
{
ostream.write_long (value.value ());
}
}
|
[
"namucoo@c1366bf0-8e60-11de-b0c3-d3322c7aa8e4"
] |
namucoo@c1366bf0-8e60-11de-b0c3-d3322c7aa8e4
|
97024a745cf0c09330e5fd0214c76652f3bb4180
|
d3a94f3c563c1ca7c5531ed148a75512ca124834
|
/getty-core/src/main/java/org/getty/core/pipeline/in/SimpleChannelInboundHandler.java
|
e655e750a65aac003e45e9fc025f57b06f96f732
|
[
"Apache-2.0"
] |
permissive
|
NightAndLight/getty
|
4ea1a2e162ed05a30c4d8fd3c3981ae355b13474
|
591d5feb3cf494a55648a30d1fbd97c331673b02
|
refs/heads/master
| 2020-09-14T10:21:41.215465
| 2019-10-09T07:43:31
| 2019-10-09T07:43:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,506
|
java
|
/**
* 类名:SimpleChannelInboundHandler.java
* 描述:
* 修改人:gogym
* 时间:2019/9/27
*/
package org.getty.core.pipeline.in;
import org.getty.core.channel.AioChannel;
import org.getty.core.channel.ChannelState;
import org.getty.core.pipeline.PipelineDirection;
/**
* 类名:SimpleChannelInboundHandler.java
* 描述:简易的通道输出,继承这个类可容易实现消息接收
* 修改人:gogym
* 时间:2019/9/27
*/
public abstract class SimpleChannelInboundHandler<T> extends ChannelInboundHandlerAdapter {
@Override
public void handler(ChannelState channelStateEnum, byte[] bytes, Throwable cause, AioChannel aioChannel, PipelineDirection pipelineDirection) {
switch (channelStateEnum) {
case NEW_CHANNEL:
channelAdded(aioChannel);
break;
case CHANNEL_CLOSED:
channelClosed(aioChannel);
break;
case DECODE_EXCEPTION:
exceptionCaught(aioChannel, cause, pipelineDirection);
default:
break;
}
super.handler(channelStateEnum, bytes, cause, aioChannel, pipelineDirection);
}
@Override
public void channelRead(AioChannel aioChannel, Object obj) {
channelRead0(aioChannel, (T) obj);
}
/**
* 解码后的消息输出
*
* @return void
* @params [aioChannel, t]
*/
public abstract void channelRead0(AioChannel aioChannel, T t);
}
|
[
"34082822+gogym@users.noreply.github.com"
] |
34082822+gogym@users.noreply.github.com
|
f420cfe2420fc10e0ee1174d56349969b09a1890
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-ws/results/LANG-19b-2-22-Single_Objective_GGA-WeightedSum/org/apache/commons/lang3/text/translate/CharSequenceTranslator_ESTest_scaffolding.java
|
afe699291cf189ae2b949b8c7b84f74d9fec21ef
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 466
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri Jan 17 21:25:27 UTC 2020
*/
package org.apache.commons.lang3.text.translate;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class CharSequenceTranslator_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
2ef64b1c9f287d6f5d691d3e96e8fc491e84b2e4
|
b8d41f3f62f5e6d3e3c50968ba1bc753f7a282f6
|
/app/src/main/java/com/puti/education/util/ToastUtil.java
|
77e2929cd93bef2d54d8464f17d82ef919a876db
|
[] |
no_license
|
bearLei/5AMaster
|
7232e17eb6cd6634b77a7ef6cf0652bdf30f1375
|
cc63c5a66a000506de9590de2732a7f172cf2a74
|
refs/heads/master
| 2018-10-05T10:22:00.222284
| 2018-07-29T09:51:18
| 2018-07-29T09:51:18
| 110,547,708
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 738
|
java
|
package com.puti.education.util;
import android.content.Context;
import android.widget.Toast;
public class ToastUtil {
public static Toast mInstance;
private static Context mContext;
public static void setContext(Context context)
{
mContext = context;
}
public static boolean show(CharSequence msg)
{
if(mContext == null)
return false;
if(mInstance==null)
{
mInstance = Toast.makeText(mContext,msg,Toast.LENGTH_SHORT);
}
mInstance.setText(msg);
mInstance.show();
return true;
}
public static boolean show(int msgId)
{
CharSequence msg = mContext.getText(msgId);
return show(msg);
}
}
|
[
"18850415334.com"
] |
18850415334.com
|
39ec9134028f1a72a7a5de80cf3363d66b27a588
|
cdb45b84949c8e713ed987324867e577297b9abd
|
/be/src/main/java/com/theplayer/entity/PlaylistEntity.java
|
35c375592e1481fd983b8ddf3fcd58d9ec78f9fd
|
[] |
no_license
|
shanks195/Hiddensinger
|
a33ce60751bdba8224bd8173a71b1948417067b0
|
343fe635066fd4b3d39dc6e5a17d23a4765bd3d2
|
refs/heads/main
| 2023-03-17T01:19:45.068251
| 2021-03-07T09:09:17
| 2021-03-07T09:09:17
| 345,131,161
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,111
|
java
|
package com.theplayer.entity;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
@Entity
@Table(name = "playlist")
public class PlaylistEntity extends BaseEntity{
@OneToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "account_id", referencedColumnName = "id")
private AccountEntity account;
@ManyToMany(fetch = FetchType.LAZY,cascade = CascadeType.ALL)
@JoinTable( name = "playlist_song",
joinColumns = @JoinColumn(name = "playlist_id"),
inverseJoinColumns = @JoinColumn(name = "song_id"))
private Set<SongEntity> songs = new HashSet<>();
public Set<SongEntity> getSongs() {
return songs;
}
public void setSongs(Set<SongEntity> songs) {
this.songs = songs;
}
public AccountEntity getAccount() {
return account;
}
public void setAccount(AccountEntity account) {
this.account = account;
}
}
|
[
"robocon87@gmail.com"
] |
robocon87@gmail.com
|
3cad0331d847965ff1b8dc74c30eead3058c4956
|
018d078a531c15194f4f7b4d1b344fe38f55730c
|
/src/com/miiceic/refactor/pattern/NewPrice.java
|
fdadb2db868c040ae3b34a3c8e61d09893110644
|
[] |
no_license
|
75168859/patterns
|
344f4cc99ab0c04d61b8335ad025402b98361921
|
f3d9d2b2256a1a6b6ccc7497c1ca0cc7ab701bcc
|
refs/heads/master
| 2021-01-13T00:38:47.592396
| 2016-04-01T15:30:19
| 2016-04-01T15:30:19
| 55,242,220
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 307
|
java
|
package com.miiceic.refactor.pattern;
public class NewPrice extends Price{
@Override
public double getPrice(int daysRental) {
// TODO Auto-generated method stub
return daysRental * 3;
}
@Override
int getFrequentRenterPoints(int daysRental) {
return daysRental > 1 ? 2 : 1;
}
}
|
[
"75168859@qq.com"
] |
75168859@qq.com
|
f50a3a36f0108aacc66ecaa81fb04017d7b34e61
|
daab099e44da619b97a7a6009e9dee0d507930f3
|
/rt/com/sun/xml/internal/ws/protocol/soap/MessageCreationException.java
|
98eb33879ab11f8a5cdb8d2004d3d36d1760e3f9
|
[] |
no_license
|
xknower/source-code-jdk-8u211
|
01c233d4f498d6a61af9b4c34dc26bb0963d6ce1
|
208b3b26625f62ff0d1ff6ee7c2b7ee91f6c9063
|
refs/heads/master
| 2022-12-28T17:08:25.751594
| 2020-10-09T03:24:14
| 2020-10-09T03:24:14
| 278,289,426
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,665
|
java
|
/* */ package com.sun.xml.internal.ws.protocol.soap;
/* */
/* */ import com.sun.xml.internal.ws.api.SOAPVersion;
/* */ import com.sun.xml.internal.ws.api.message.ExceptionHasMessage;
/* */ import com.sun.xml.internal.ws.api.message.Message;
/* */ import com.sun.xml.internal.ws.fault.SOAPFaultBuilder;
/* */ import javax.xml.namespace.QName;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class MessageCreationException
/* */ extends ExceptionHasMessage
/* */ {
/* */ private final SOAPVersion soapVersion;
/* */
/* */ public MessageCreationException(SOAPVersion soapVersion, Object... args) {
/* 46 */ super("soap.msg.create.err", args);
/* 47 */ this.soapVersion = soapVersion;
/* */ }
/* */
/* */ public String getDefaultResourceBundleName() {
/* 51 */ return "com.sun.xml.internal.ws.resources.soap";
/* */ }
/* */
/* */ public Message getFaultMessage() {
/* 55 */ QName faultCode = this.soapVersion.faultCodeClient;
/* 56 */ return SOAPFaultBuilder.createSOAPFaultMessage(this.soapVersion,
/* 57 */ getLocalizedMessage(), faultCode);
/* */ }
/* */ }
/* Location: D:\tools\env\Java\jdk1.8.0_211\rt.jar!\com\sun\xml\internal\ws\protocol\soap\MessageCreationException.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
[
"xknower@126.com"
] |
xknower@126.com
|
ac0c1840711898318cb20bb21917f8c2141fee79
|
c53eff0794037b9dde61cfe31d972f6d07799338
|
/Mage.Sets/src/mage/cards/j/JayaBallard.java
|
c1594bd0a50d26fd603f21c98b3345b61c06cb54
|
[] |
no_license
|
theelk801/mage
|
0cd1c942c54e204db03a7e1603c4250c58a65f9f
|
9a59d801200f327d9f01b4086d0e979d263c095d
|
refs/heads/master
| 2022-11-11T13:02:45.533594
| 2018-04-24T12:35:37
| 2018-04-24T12:35:37
| 98,135,127
| 3
| 0
| null | 2018-04-24T12:35:38
| 2017-07-24T00:54:07
|
Java
|
UTF-8
|
Java
| false
| false
| 5,007
|
java
|
/*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.cards.j;
import java.util.UUID;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.LoyaltyAbility;
import mage.abilities.common.PlanswalkerEntersWithLoyalityCountersAbility;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.AddConditionalManaEffect;
import mage.abilities.effects.common.GetEmblemEffect;
import mage.abilities.mana.builder.common.InstantOrSorcerySpellManaBuilder;
import mage.cards.Card;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.filter.FilterCard;
import mage.game.Game;
import mage.game.command.emblems.JayaBallardEmblem;
import mage.players.Player;
import mage.target.common.TargetDiscard;
import mage.watchers.common.CastFromGraveyardWatcher;
/**
*
* @author LevelX2
*/
public class JayaBallard extends CardImpl {
public JayaBallard(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.PLANESWALKER}, "{2}{R}{R}{R}");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.JAYA);
this.addAbility(new PlanswalkerEntersWithLoyalityCountersAbility(5));
// +1: Add {R}{R}{R}. Spend this mana only to cast instant or sorcery spells.
this.addAbility(new LoyaltyAbility(new AddConditionalManaEffect(Mana.RedMana(3), new InstantOrSorcerySpellManaBuilder()), 1));
// +1: Discard up to three cards, then draw that many cards.
this.addAbility(new LoyaltyAbility(new JayaBallardDiscardDrawEffect(), 1));
// −8: You get an emblem with "You may cast instant and sorcery cards from your graveyard. If a card cast this way would be put into your graveyard, exile it instead."
this.addAbility(new LoyaltyAbility(new GetEmblemEffect(new JayaBallardEmblem()), -8), new CastFromGraveyardWatcher());
}
public JayaBallard(final JayaBallard card) {
super(card);
}
@Override
public JayaBallard copy() {
return new JayaBallard(this);
}
}
class JayaBallardDiscardDrawEffect extends OneShotEffect {
public JayaBallardDiscardDrawEffect() {
super(Outcome.Detriment);
this.staticText = "Discard up to three cards, then draw that many cards";
}
public JayaBallardDiscardDrawEffect(final JayaBallardDiscardDrawEffect effect) {
super(effect);
}
@Override
public JayaBallardDiscardDrawEffect copy() {
return new JayaBallardDiscardDrawEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {
TargetDiscard target = new TargetDiscard(0, 3, new FilterCard(), controller.getId());
target.choose(outcome, controller.getId(), source.getSourceId(), game);
int count = 0;
for (UUID cardId : target.getTargets()) {
Card card = game.getCard(cardId);
if (card != null) {
controller.discard(card, source, game);
count++;
}
}
controller.drawCards(count, game);
return true;
}
return false;
}
}
|
[
"ludwig.hirth@online.de"
] |
ludwig.hirth@online.de
|
dfaa1cb4f8e7ee2fd30b553e621d72eb314e536f
|
44be85b26450b29881f81dbeee349e03b55a16f2
|
/taotao-administration-app/src/main/java/com/taotao/administration/controller/AccountAppController.java
|
3eb5949b99023db694c1e969594419825eaca832
|
[] |
no_license
|
zhoudy-github/e3mall
|
bafe9d6e7d9e3885731fa53b1e266e6eca10bd24
|
3d0a3022bfcb58abf05b2800027a2e1f8ddb5c24
|
refs/heads/master
| 2023-02-18T14:38:20.792474
| 2019-07-04T16:55:22
| 2019-07-04T16:55:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,062
|
java
|
package com.taotao.administration.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.taotao.pay.account.model.AccountPageBean;
import com.taotao.pay.account.service.AccountService;
/**
* 会计记账管理客户端
* @author Administrator
*
*/
@Controller
public class AccountAppController {
@Autowired
private AccountService accountService;
/**
* 会计记账分页查询
*/
@RequestMapping("/account/list")
@ResponseBody
public AccountPageBean queryAccountList(int page, int rows) {
//调用记账系统接口
return accountService.queryAccountList((page - 1) * rows, rows);
}
/**
* 入账记录分页查询
*/
@RequestMapping("/account/history/list")
@ResponseBody
public AccountPageBean queryAccountHistoryList(int page, int rows) {
return accountService.queryAccountRecordList((page - 1) * rows, rows);
}
}
|
[
"1129864619@qq.com"
] |
1129864619@qq.com
|
68d0658da0f770192939cb5da4dccb04db44c786
|
b05f3a9b4fc4adeec076e13bc72464c7314daa00
|
/utilslibrary/src/main/java/com/cgfay/utilslibrary/BitmapUtils.java
|
e2b78b009d05d4f9fcb10c6ff55eaea1d3c197bf
|
[] |
no_license
|
hou2lin/CainCamera
|
797306848872b25932a1167242e59c811b150c8e
|
d90ee625a8bbfd2d9402412f5373167f396d28d7
|
refs/heads/master
| 2021-04-06T12:00:53.085408
| 2018-03-09T08:56:57
| 2018-03-09T08:56:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,139
|
java
|
package com.cgfay.utilslibrary;
import android.content.Context;
import android.content.res.AssetManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
/**
* Created by cain on 2017/7/9.
*/
public class BitmapUtils {
/**
* 旋转图片
* @param bitmap
* @param rotation
* @return
*/
public static Bitmap getRotatedBitmap(Bitmap bitmap, int rotation) {
Matrix matrix = new Matrix();
matrix.postRotate(rotation);
return Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(),
bitmap.getHeight(), matrix, false);
}
/**
* 镜像翻转图片
* @param bitmap
* @return
*/
public static Bitmap getFlipBitmap(Bitmap bitmap) {
Matrix matrix = new Matrix();
matrix.setScale(-1, 1);
matrix.postTranslate(bitmap.getWidth(), 0);
return Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(),
bitmap.getHeight(), matrix, false);
}
/**
* 加载Assets文件夹下的图片
* @param context
* @param fileName
* @return
*/
public static Bitmap getImageFromAssetsFile(Context context, String fileName) {
Bitmap bitmap = null;
AssetManager manager = context.getResources().getAssets();
try {
InputStream is = manager.open(fileName);
bitmap = BitmapFactory.decodeStream(is);
is.close();
} catch (IOException e) {
e.printStackTrace();
}
return bitmap;
}
/**
* 加载Assets文件夹下的图片
* @param context
* @param fileName
* @return
*/
public static Bitmap getImageFromAssetsFile(Context context, String fileName, Bitmap inBitmap) {
Bitmap bitmap = null;
AssetManager manager = context.getResources().getAssets();
try {
InputStream is = manager.open(fileName);
if (inBitmap != null && !inBitmap.isRecycled()) {
BitmapFactory.Options options = new BitmapFactory.Options();
// 使用inBitmap时,inSampleSize得设置为1
options.inSampleSize = 1;
// 这个属性一定要在inBitmap之前使用,否则会弹出一下异常
// BitmapFactory: Unable to reuse an immutable bitmap as an image decoder target.
options.inMutable = true;
options.inBitmap = inBitmap;
bitmap = BitmapFactory.decodeStream(is, null, options);
} else {
bitmap = BitmapFactory.decodeStream(is);
}
is.close();
} catch (IOException e) {
e.printStackTrace();
}
return bitmap;
}
/**
*
* @param options
* @param reqWidth
* @param reqHeight
* @return
*/
private static int calculateInSampleSize(BitmapFactory.Options options,
int reqWidth, int reqHeight) {
// 计算原始图像的高度和宽度
final int height = options.outHeight;
final int width = options.outWidth;
int inSampleSize = 1;
// 当原始图像的高和宽大于所需高度和宽度时
if (height > reqHeight || width > reqWidth) {
final int heightRatio = Math.round((float) height / (float) reqHeight);
final int widthRatio = Math.round((float) width / (float) reqWidth);
// 算出长宽比后去比例小的作为inSamplesize,保证最后imageview的dimension比request的大
inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;
// 计算总像素是否大于请求的宽高积的2倍
final float totalPixels = width * height;
final float totalReqPixelsCap = reqWidth * reqHeight * 2;
while (totalPixels / (inSampleSize * inSampleSize) > totalReqPixelsCap) {
inSampleSize++;
}
}
return inSampleSize;
}
/**
* 从文件读取Bitmap
* @param dst
* @param width
* @param height
* @return
*/
public static Bitmap getBitmapFromFile(File dst, int width, int height) {
if (null != dst && dst.exists()) {
BitmapFactory.Options opts = null;
if (width > 0 && height > 0) {
opts = new BitmapFactory.Options();
opts.inJustDecodeBounds = true;
BitmapFactory.decodeFile(dst.getPath(), opts);
// 计算图片缩放比例
opts.inSampleSize = calculateInSampleSize(opts, width, height);
opts.inJustDecodeBounds = false;
opts.inInputShareable = true;
opts.inPurgeable = true;
}
try {
return BitmapFactory.decodeFile(dst.getPath(), opts);
} catch (OutOfMemoryError e) {
e.printStackTrace();
}
}
return null;
}
}
|
[
"cain.huang@outlook.com"
] |
cain.huang@outlook.com
|
23197666547812ffdc571178f7eb2dc3490f3eea
|
e8c4fddf6edb3722728bb6ffa2a3883c304884cc
|
/app/src/main/java/com/fpp/status/view/download/callback/SimpleDownloadCallback.java
|
5c3ef760b2a3ac66c57204238dd17900b4e9ec9c
|
[] |
no_license
|
fupengpeng/Status
|
6b88dbad2df8931ce890db991a80c1c5e823f4d2
|
fcb3258f7333618763ae924f7928aef927acded5
|
refs/heads/master
| 2021-06-02T19:17:38.924085
| 2021-04-10T06:11:33
| 2021-04-10T06:11:33
| 112,339,576
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 618
|
java
|
package com.fpp.status.view.download.callback;
import java.io.File;
public abstract class SimpleDownloadCallback implements DownloadCallback {
@Override
public void onStart(long currentSize, long totalSize, float progress) {
}
@Override
public void onProgress(long currentSize, long totalSize, float progress) {
}
@Override
public void onPause() {
}
@Override
public void onCancel() {
}
@Override
public void onFinish(File file) {
}
@Override
public void onWait() {
}
@Override
public void onError(String error) {
}
}
|
[
"564055710@qq.com"
] |
564055710@qq.com
|
7abe2be5154091fdeb86ebbd09695e59c640348f
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/15/15_ec2d39e514429f676d3a7cb4ad623396213f319e/UICallBackManager/15_ec2d39e514429f676d3a7cb4ad623396213f319e_UICallBackManager_s.java
|
c634a5a3b0333086d95f87abbf27081d191b8af4
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 6,730
|
java
|
/*******************************************************************************
* Copyright (c) 2007, 2011 Innoopract Informationssysteme GmbH.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Innoopract Informationssysteme GmbH - initial API and implementation
* EclipseSource - ongoing development
******************************************************************************/
package org.eclipse.rwt.internal.lifecycle;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.rwt.SessionSingletonBase;
import org.eclipse.rwt.internal.service.ContextProvider;
import org.eclipse.rwt.internal.util.SerializableLock;
import org.eclipse.rwt.service.*;
import org.eclipse.swt.internal.SerializableCompatibility;
public final class UICallBackManager implements SerializableCompatibility {
private static final int DEFAULT_REQUEST_CHECK_INTERVAL = 30000;
private static final String FORCE_UI_CALLBACK
= UICallBackManager.class.getName() + "#forceUICallBack";
private static class UnblockSessionStoreListener
implements SessionStoreListener, SerializableCompatibility
{
private transient final Thread currentThread;
private UnblockSessionStoreListener( Thread currentThread ) {
this.currentThread = currentThread;
}
public void beforeDestroy( SessionStoreEvent event ) {
currentThread.interrupt();
}
}
public static UICallBackManager getInstance() {
return ( UICallBackManager )SessionSingletonBase.getInstance( UICallBackManager.class );
}
private final IdManager idManager;
// synchronization object to control access to the runnables List
final SerializableLock lock;
// contains a reference to the callback request thread that is currently
// blocked.
private final Set<Thread> blockedCallBackRequests;
// Flag that indicates whether a request is processed. In that case no
// notifications are sent to the client.
private boolean uiThreadRunning;
// Flag that indicates that a notification was sent to the client. If the new
// callback thread returns earlier than the UI Thread the callback thread
// must be blocked although the runnables are not empty
private boolean waitForUIThread;
// indicates whether the display has runnables to execute
private boolean hasRunnables;
private boolean wakeCalled;
private int requestCheckInterval;
private UICallBackManager() {
lock = new SerializableLock();
idManager = new IdManager();
blockedCallBackRequests = new HashSet<Thread>();
uiThreadRunning = false;
waitForUIThread = false;
wakeCalled = false;
requestCheckInterval = DEFAULT_REQUEST_CHECK_INTERVAL;
}
public boolean isCallBackRequestBlocked() {
synchronized( lock ) {
return !blockedCallBackRequests.isEmpty();
}
}
public void wakeClient() {
synchronized( lock ) {
if( !uiThreadRunning ) {
releaseBlockedRequest();
}
}
}
public void releaseBlockedRequest() {
synchronized( lock ) {
wakeCalled = true;
lock.notifyAll();
}
}
public void setHasRunnables( boolean hasRunnables ) {
synchronized( lock ) {
this.hasRunnables = hasRunnables;
}
if( hasRunnables && isUICallBackActive() ) {
ContextProvider.getStateInfo().setAttribute( FORCE_UI_CALLBACK, Boolean.TRUE );
}
}
public void setRequestCheckInterval( int requestCheckInterval ) {
this.requestCheckInterval = requestCheckInterval;
}
void notifyUIThreadStart() {
synchronized( lock ) {
uiThreadRunning = true;
waitForUIThread = false;
}
}
void notifyUIThreadEnd() {
synchronized( lock ) {
uiThreadRunning = false;
if( hasRunnables ) {
wakeClient();
}
}
}
boolean hasRunnables() {
synchronized( lock ) {
return hasRunnables;
}
}
void blockCallBackRequest() {
synchronized( lock ) {
if( blockedCallBackRequests.isEmpty() && mustBlockCallBackRequest() ) {
Thread currentThread = Thread.currentThread();
SessionStoreListener listener = new UnblockSessionStoreListener( currentThread );
ISessionStore sessionStore = ContextProvider.getSession();
sessionStore.addSessionStoreListener( listener );
blockedCallBackRequests.add( currentThread );
try {
boolean keepWaiting = true;
wakeCalled = false;
while( !wakeCalled && keepWaiting ) {
lock.wait( requestCheckInterval );
keepWaiting
= mustBlockCallBackRequest() && isConnectionAlive( ContextProvider.getResponse() );
}
} catch( InterruptedException ie ) {
Thread.interrupted(); // Reset interrupted state, see bug 300254
} finally {
blockedCallBackRequests.remove( currentThread );
sessionStore.removeSessionStoreListener( listener );
}
}
waitForUIThread = true;
}
}
private static boolean isConnectionAlive( HttpServletResponse response ) {
boolean result;
try {
JavaScriptResponseWriter responseWriter = new JavaScriptResponseWriter( response );
responseWriter.write( " " );
result = !responseWriter.checkError();
} catch( IOException ioe ) {
result = false;
}
return result;
}
boolean mustBlockCallBackRequest() {
boolean prevent = !waitForUIThread && !uiThreadRunning && hasRunnables;
boolean isActive = !idManager.isEmpty();
return isActive && !prevent;
}
boolean isUICallBackActive() {
return !idManager.isEmpty();
}
public void activateUICallBacksFor( final String id ) {
idManager.add( id );
}
public void deactivateUICallBacksFor( final String id ) {
int size = idManager.remove( id );
if( size == 0 ) {
releaseBlockedRequest();
}
}
public boolean needsActivation() {
boolean result;
if( isCallBackRequestBlocked() ) {
result = false;
} else {
result = isUICallBackActive() || forceUICallBackForPendingRunnables();
}
return result;
}
private static boolean forceUICallBackForPendingRunnables() {
return Boolean.TRUE.equals( ContextProvider.getStateInfo().getAttribute( FORCE_UI_CALLBACK ) );
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
1298e67b91f8bc6ddadee6fc4eae9a2737c1ac4b
|
473b76b1043df2f09214f8c335d4359d3a8151e0
|
/benchmark/bigclonebenchdata_partial/22724697.java
|
82dc2ca13cbd61411acc398e21af960007737449
|
[] |
no_license
|
whatafree/JCoffee
|
08dc47f79f8369af32e755de01c52d9a8479d44c
|
fa7194635a5bd48259d325e5b0a190780a53c55f
|
refs/heads/master
| 2022-11-16T01:58:04.254688
| 2020-07-13T20:11:17
| 2020-07-13T20:11:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 712
|
java
|
class c22724697 {
private Bitmap getBitmap(String imageUrl) {
URL url;
InputStream input = null;
try {
url = new URL(address + imageUrl);
input = url.openStream();
return BitmapFactory.decodeStream(input);
} catch (MalformedURLException e) {
e.printStackTrace();
return null;
} catch (IOException e) {
e.printStackTrace();
return null;
} finally {
if (input != null) {
try {
input.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
}
|
[
"piyush16066@iiitd.ac.in"
] |
piyush16066@iiitd.ac.in
|
2fca6475a6bc500f8f366443349b84607ee5a4cd
|
875a9c7cfc77740cde671709ace2106dd5d42268
|
/projects/Java/src/com/chronoxor/fbe/Sender.java
|
c83e7da328a9446c390adff23f70fdafb6b7911e
|
[
"MIT"
] |
permissive
|
virgiliofornazin/FastBinaryEncoding
|
eb8507b16c020e63676ac882021bc9ba97f24e28
|
c718c750510b1823c43e90ddcc0c76b2e3f20a72
|
refs/heads/master
| 2022-11-08T22:12:21.340594
| 2020-07-04T01:20:43
| 2020-07-04T01:20:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,703
|
java
|
// Automatically generated by the Fast Binary Encoding compiler, do not modify!
// https://github.com/chronoxor/FastBinaryEncoding
// Source: fbe
// Version: 1.3.0.0
package com.chronoxor.fbe;
// Fast Binary Encoding base sender
public abstract class Sender
{
private Buffer _buffer;
private boolean _logging;
private boolean _final;
// Get the bytes buffer
public Buffer getBuffer() { return _buffer; }
// Get the final protocol flag
public boolean getFinal() { return _final; }
// Get the logging flag
public boolean getLogging() { return _logging; }
// Enable/Disable logging
public void setLogging(boolean enable) { _logging = enable; }
protected Sender(boolean finalProto) { _buffer = new Buffer(); _final = finalProto; }
protected Sender(Buffer buffer, boolean finalProto) { _buffer = buffer; _final = finalProto; }
// Reset the sender buffer
public void reset() { _buffer.reset(); }
// Send serialized buffer.
// Direct call of the method requires knowledge about internals of FBE models serialization.
// Use it with care!
public long sendSerialized(long serialized)
{
assert (serialized > 0) : "Invalid size of the serialized buffer!";
if (serialized <= 0)
return 0;
// Shift the send buffer
_buffer.shift(serialized);
// Send the value
long sent = onSend(_buffer.getData(), 0, _buffer.getSize());
_buffer.remove(0, sent);
return sent;
}
// Send message handler
protected abstract long onSend(byte[] buffer, long offset, long size);
// Send log message handler
protected void onSendLog(String message) {}
}
|
[
"chronoxor@gmail.com"
] |
chronoxor@gmail.com
|
f5094f79fa1025668745367187a1d6e21235451d
|
c7505c45e73f8daf5e39243a3a849f22562df664
|
/autoconfigure/src/main/java/com/issac/diveinspringboot/bootstrap/EnableAutoConfigurationBoostrap.java
|
b02fd3b7c6832a3a34b51fb9ef0c12cd6a61672a
|
[] |
no_license
|
IssacYoung2013/dive-in-springboot
|
eb92ed2098933227bafbe702f755eecdbf362c65
|
f31784065f0e8cf2511f770f8e6c41247e6969d5
|
refs/heads/master
| 2020-04-16T22:17:52.618645
| 2019-01-16T02:45:21
| 2019-01-16T02:45:21
| 165,961,483
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,039
|
java
|
package com.issac.diveinspringboot.bootstrap;
import com.issac.diveinspringboot.service.CalculateService;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;
/**
*
* author: ywy
* date: 2019-01-05
* desc:
*/
@EnableAutoConfiguration
public class EnableAutoConfigurationBoostrap {
public static void main(String[] args) {
ConfigurableApplicationContext context = new SpringApplicationBuilder(EnableAutoConfigurationBoostrap.class)
.web(WebApplicationType.NONE)
.run(args);
// helloWorld Bean 是否存在
String helloWorld = context.getBean("helloWorld",String.class);
System.out.println("helloWorld Bean: " + helloWorld);
// 关闭上下文
context.close();
}
}
|
[
"issacyoung@msn.cn"
] |
issacyoung@msn.cn
|
a55c5c5b5030a35ef39c59dedeebddfeee4d162a
|
dd4f1ee14dc783303a145b0897cd3cf42d7fd644
|
/src/main/java/com/mawujun/adjust/AdjustList.java
|
988990658a97a52207db8656130b22ec56715041
|
[] |
no_license
|
mawujun1234/ems_new
|
89e9923fd1cbea039bc728789a5ae6f8c21ddeb4
|
e8c4b96cf61b2fe731e10b77943d9ab7cc8c1c61
|
refs/heads/master
| 2020-09-21T20:27:13.623689
| 2019-03-04T02:22:43
| 2019-03-04T02:22:43
| 67,973,938
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,149
|
java
|
package com.mawujun.adjust;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.UniqueConstraint;
import com.mawujun.repository.idEntity.UUIDEntity;
@Entity
@Table(name="ems_adjustlist",uniqueConstraints=@UniqueConstraint(columnNames={"adjust_id","ecode"}))
public class AdjustList extends UUIDEntity{
/**
*
*/
private static final long serialVersionUID = 1L;
private String adjust_id;
@Column(length=25)
private String ecode;
//@org.hibernate.annotations.Type(type="yes_no")
private Boolean isnew=false;//
// private Integer out_num=1;//申请出库的数量,永远是1,主要用来比较入库的数量
// private Integer in_num=0;//入库的数量,永远是1
//@org.hibernate.annotations.Type(type="yes_no")
//private Boolean status=false;//是否已经入库,true表示已经入库
@Enumerated(EnumType.STRING)
@Column(length=15)
private AdjustListStatus adjustListStatus=AdjustListStatus.noin;
private Date indate;//设备入库时间
//下面的几个字段只有在AdjustType.borrow的时候有值
//@org.hibernate.annotations.Type(type="yes_no")
private Boolean isReturn=false;
//和主表中的adjust_id_borrow是相反的,这个有值,adjust_id_borrow就没有值
@Column(length=36)
private String adjustlist_id_returnback;//归还单明细的id,存在多次归还,所以放在这里了
@Column(length=25)
private String ecode_returnback;//归还的条码
@Transient
private String prod_id;//在归还的时候,需要判断设备类型的时候用的
public String getAdjust_id() {
return adjust_id;
}
public void setAdjust_id(String adjust_id) {
this.adjust_id = adjust_id;
}
public String getEcode() {
return ecode;
}
public void setEcode(String ecode) {
this.ecode = ecode;
}
public AdjustListStatus getAdjustListStatus() {
return adjustListStatus;
}
public void setAdjustListStatus(AdjustListStatus adjustListStatus) {
this.adjustListStatus = adjustListStatus;
}
public Date getIndate() {
return indate;
}
public void setIndate(Date indate) {
this.indate = indate;
}
public Boolean getIsnew() {
return isnew;
}
public void setIsnew(Boolean isnew) {
this.isnew = isnew;
}
public String getProd_id() {
return prod_id;
}
public void setProd_id(String prod_id) {
this.prod_id = prod_id;
}
public String getEcode_returnback() {
return ecode_returnback;
}
public void setEcode_returnback(String ecode_returnback) {
this.ecode_returnback = ecode_returnback;
}
public Boolean getIsReturn() {
return isReturn;
}
public void setIsReturn(Boolean isReturn) {
this.isReturn = isReturn;
}
public String getAdjustlist_id_returnback() {
return adjustlist_id_returnback;
}
public void setAdjustlist_id_returnback(String adjustlist_id_returnback) {
this.adjustlist_id_returnback = adjustlist_id_returnback;
}
}
|
[
"mawujun1234@163.com"
] |
mawujun1234@163.com
|
533ba696b994c2a12b07c8a6ebffe628cc1ac9a2
|
6dbae30c806f661bcdcbc5f5f6a366ad702b1eea
|
/Corpus/eclipse.jdt.ui/7492.java
|
47c39120a8054f205571144d067b1bc47aa005a5
|
[
"MIT"
] |
permissive
|
SurfGitHub/BLIZZARD-Replication-Package-ESEC-FSE2018
|
d3fd21745dfddb2979e8ac262588cfdfe471899f
|
0f8f4affd0ce1ecaa8ff8f487426f8edd6ad02c0
|
refs/heads/master
| 2020-03-31T15:52:01.005505
| 2018-10-01T23:38:50
| 2018-10-01T23:38:50
| 152,354,327
| 1
| 0
|
MIT
| 2018-10-10T02:57:02
| 2018-10-10T02:57:02
| null |
UTF-8
|
Java
| false
| false
| 4,335
|
java
|
/*******************************************************************************
* Copyright (c) 2000, 2011 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
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.ui.viewsupport;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.eclipse.swt.graphics.Image;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.resources.IStorage;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.ui.IEditorRegistry;
import org.eclipse.ui.IFileEditorMapping;
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.PlatformUI;
import org.eclipse.jdt.core.IJarEntryResource;
/**
* Standard label provider for IStorage objects.
* Use this class when you want to present IStorage objects in a viewer.
*/
public class StorageLabelProvider extends LabelProvider {
private IEditorRegistry fEditorRegistry = null;
private Map<String, Image> fJarImageMap = new HashMap(10);
private Image fDefaultImage;
private IEditorRegistry getEditorRegistry() {
if (fEditorRegistry == null)
fEditorRegistry = PlatformUI.getWorkbench().getEditorRegistry();
return fEditorRegistry;
}
@Override
public Image getImage(Object element) {
if (element instanceof IStorage)
return getImageForJarEntry((IStorage) element);
return super.getImage(element);
}
@Override
public String getText(Object element) {
if (element instanceof IStorage) {
return BasicElementLabels.getResourceName(((IStorage) element).getName());
}
return super.getText(element);
}
@Override
public void dispose() {
if (fJarImageMap != null) {
Iterator<Image> each = fJarImageMap.values().iterator();
while (each.hasNext()) {
Image image = each.next();
image.dispose();
}
fJarImageMap = null;
}
fDefaultImage = null;
}
/*
* Gets and caches an image for a JarEntryFile.
* The image for a JarEntryFile is retrieved from the EditorRegistry.
*/
private Image getImageForJarEntry(IStorage element) {
if (element instanceof IJarEntryResource && !((IJarEntryResource) element).isFile()) {
return PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_FOLDER);
}
if (fJarImageMap == null)
return getDefaultImage();
if (element == null || element.getName() == null)
return getDefaultImage();
// Try to find icon for full name
String name = element.getName();
Image image = fJarImageMap.get(name);
if (image != null)
return image;
IFileEditorMapping[] mappings = getEditorRegistry().getFileEditorMappings();
int i = 0;
while (i < mappings.length) {
if (mappings[i].getLabel().equals(name))
break;
i++;
}
String key = name;
if (i == mappings.length) {
// Try to find icon for extension
IPath path = element.getFullPath();
if (path == null)
return getDefaultImage();
key = path.getFileExtension();
if (key == null)
return getDefaultImage();
image = fJarImageMap.get(key);
if (image != null)
return image;
}
// Get the image from the editor registry
ImageDescriptor desc = getEditorRegistry().getImageDescriptor(name);
image = desc.createImage();
fJarImageMap.put(key, image);
return image;
}
private Image getDefaultImage() {
if (fDefaultImage == null)
fDefaultImage = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_FILE);
return fDefaultImage;
}
}
|
[
"masudcseku@gmail.com"
] |
masudcseku@gmail.com
|
d6737d896988ef511756e3cae02e9c55129c1e7c
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/24/24_beb1aaf5853e431a6e685fa02e047ced5462e1c4/ProfileListAdapter/24_beb1aaf5853e431a6e685fa02e047ced5462e1c4_ProfileListAdapter_s.java
|
9692a8c4e13ea8112c4026e2c3efdb7fdb3e95a0
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,545
|
java
|
package com.Centaurii.app.RatingCalculator.adapters;
import java.util.List;
import com.Centaurii.app.RatingCalculator.R;
import com.Centaurii.app.RatingCalculator.model.Profile;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
public class ProfileListAdapter extends ArrayAdapter<Profile>
{
Context context;
int resource;
List<Profile> objects;
public ProfileListAdapter(Context context, int resource,
List<Profile> objects)
{
super(context, resource, objects);
this.context = context;
this.resource = resource;
this.objects = objects;
}
@Override
public Profile getItem(int i)
{
return objects.get(i);
}
@Override
public View getView(int position, View convertView, ViewGroup parent)
{
View v = convertView;
ProfileHandler handler;
if(v == null)
{
LayoutInflater inflater =
(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = inflater.inflate(resource, parent, false);
handler = new ProfileHandler();
handler.profileImage = (ImageView) v.findViewById(R.id.profile_image);
handler.profileName = (TextView) v.findViewById(R.id.name);
handler.profileRating = (TextView) v.findViewById(R.id.rating);
handler.profileProvisional = (TextView) v.findViewById(R.id.provisional);
v.setTag(handler);
}
else
{
handler = (ProfileHandler) v.getTag();
}
final Profile prof = getItem(position);
handler.profileImage.setBackgroundColor(prof.getFavColor());
handler.profileName.setText(prof.getName());
handler.profileRating.setText("" + prof.getRating());
if(prof.isProvisional())
{
handler.profileProvisional.setVisibility(View.VISIBLE);
}
else
{
handler.profileProvisional.setVisibility(View.GONE);
}
return v;
}
static class ProfileHandler
{
ImageView profileImage;
TextView profileName;
TextView profileRating;
TextView profileProvisional;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
9acb1564e997ba3ca0311c233f8b57a329fd2e6b
|
bdb5d205d56ef9e0f523be1c3fd683400f7057a5
|
/app/src/main/java/com/tgf/kcwc/mvp/model/TransmitDrawSucceedBean.java
|
7d0cfca562e09f5973f85730277521fd8bbc056c
|
[] |
no_license
|
yangyusong1121/Android-car
|
f8fbd83b8efeb2f0e171048103f2298d96798f9e
|
d6215e7a59f61bd7f15720c8e46423045f41c083
|
refs/heads/master
| 2020-03-11T17:25:07.154083
| 2018-04-19T02:18:15
| 2018-04-19T02:20:19
| 130,146,301
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 652
|
java
|
package com.tgf.kcwc.mvp.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Administrator on 2017/5/4.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class TransmitDrawSucceedBean {
@JsonProperty("code")
public int code;
@JsonProperty("msg")
public String msg;
@JsonProperty("data")
public Data data;
@JsonIgnoreProperties(ignoreUnknown = true)
public static class Data {
@JsonProperty("prize_id")
public int prizeId;
@JsonProperty("prize_name")
public String prizeName;
}
}
|
[
"328797668@qq.com"
] |
328797668@qq.com
|
a2611ef061b311baf9472b6da6f1a65479bfb5ba
|
bf3a2be2c285dc8083d3398f67eff55f59a590fb
|
/symja/src/main/java/org/hipparchus/stat/ranking/RankingAlgorithm.java
|
ca5e77229ac85eefb6daa3fc70d47675cd3487e1
|
[] |
no_license
|
tranleduy2000/symja_java7
|
9efaa4ab3e968de27bb0896ff64e6d71d6e315a1
|
cc257761258e443fe3613ce681be3946166584d6
|
refs/heads/master
| 2021-09-07T01:45:50.664082
| 2018-02-15T09:33:51
| 2018-02-15T09:33:51
| 105,413,861
| 2
| 1
| null | 2017-10-03T08:14:56
| 2017-10-01T02:17:38
|
Java
|
UTF-8
|
Java
| false
| false
| 1,554
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.hipparchus.stat.ranking;
/**
* Interface representing a rank transformation.
*/
public interface RankingAlgorithm {
/**
* Performs a rank transformation on the input data, returning an array
* of ranks.
* <p>
* Ranks should be 1-based - that is, the smallest value
* returned in an array of ranks should be greater than or equal to one,
* rather than 0. Ranks should in general take integer values, though
* implementations may return averages or other floating point values
* to resolve ties in the input data.
*
* @param data array of data to be ranked
* @return an array of ranks corresponding to the elements of the input array
*/
double[] rank(double[] data);
}
|
[
"tranleduy1233@gmail.com"
] |
tranleduy1233@gmail.com
|
90a950d63ebbc3039b1cf428ff3595a0efca3151
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_6bae7b1a40dec492953b638b80e7c1a23df5967e/CheckOutAction/2_6bae7b1a40dec492953b638b80e7c1a23df5967e_CheckOutAction_t.java
|
6e7d1560c974c453818a8d7aad27537150181855
|
[] |
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,383
|
java
|
package net.sourceforge.eclipseccase.ui.actions;
import org.eclipse.team.core.TeamException;
import net.sourceforge.eclipseccase.ui.dialogs.ActivityDialog;
import net.sourceforge.eclipseccase.ClearCasePreferences;
import net.sourceforge.eclipseccase.ClearDlgHelper;
import java.util.*;
import net.sourceforge.eclipseccase.ClearCaseProvider;
import net.sourceforge.eclipseccase.ui.CommentDialog;
import net.sourceforge.eclipseccase.ui.DirectoryLastComparator;
import net.sourceforge.eclipseccase.ui.console.ConsoleOperationListener;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspaceRunnable;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.window.Window;
public class CheckOutAction extends ClearCaseWorkspaceAction {
@Override
public void execute(IAction action) {
String maybeComment = "";
int maybeDepth = IResource.DEPTH_ZERO;
if (!ClearCasePreferences.isUseClearDlg() && !ClearCasePreferences.isUCM() && ClearCasePreferences.isCommentCheckout()) {
CommentDialog dlg = new CommentDialog(getShell(), "Checkout comment");
if (dlg.open() == Window.CANCEL)
return;
maybeComment = dlg.getComment();
maybeDepth = dlg.isRecursive() ? IResource.DEPTH_INFINITE : IResource.DEPTH_ZERO;
}
final String comment = maybeComment;
final int depth = maybeDepth;
//UCM checkout.
if(ClearCasePreferences.isUCM()){
checkoutWithActivity(depth);
return;
}
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
public void run(IProgressMonitor monitor) throws CoreException {
try {
IResource[] resources = getSelectedResources();
beginTask(monitor, "Checking out...", resources.length);
if (ClearCasePreferences.isUseClearDlg()) {
monitor.subTask("Executing ClearCase user interface...");
ClearDlgHelper.checkout(resources);
} else {
// Sort resources with directories last so that the
// modification of a
// directory doesn't abort the modification of files
// within
// it.
List resList = Arrays.asList(resources);
Collections.sort(resList, new DirectoryLastComparator());
ConsoleOperationListener opListener = new ConsoleOperationListener(monitor);
for (int i = 0; i < resources.length; i++) {
IResource resource = resources[i];
ClearCaseProvider provider = ClearCaseProvider.getClearCaseProvider(resource);
if (provider != null) {
provider.setComment(comment);
provider.setOperationListener(opListener);
provider.checkout(new IResource[] { resource }, depth, subMonitor(monitor));
}
}
}
} finally {
monitor.done();
updateActionEnablement();
}
}
};
executeInBackground(runnable, "Checking out resources from ClearCase");
}
@Override
public boolean isEnabled() {
IResource[] resources = getSelectedResources();
if (resources.length == 0)
return false;
for (int i = 0; i < resources.length; i++) {
IResource resource = resources[i];
ClearCaseProvider provider = ClearCaseProvider.getClearCaseProvider(resource);
if (provider == null || provider.isUnknownState(resource) || provider.isIgnored(resource) || !provider.isClearCaseElement(resource))
return false;
if (provider.isCheckedOut(resource))
return false;
}
return true;
}
private void checkoutWithActivity(int depth){
IResource[] resources = getSelectedResources();
for (int i = 0; i < resources.length; i++) {
IResource resource = resources[i];
ClearCaseProvider provider = ClearCaseProvider.getClearCaseProvider(resource);
if (provider != null) {
ActivityDialog dlg = new ActivityDialog(getShell(),provider);
if (dlg.open() == Window.CANCEL)
return;
//
String activitySelector = dlg.getActivity().getActivitySelector();
provider.setActivity(activitySelector);
provider.setComment(dlg.getComment());//
try {
provider.checkout(new IResource[] { resource }, depth, null);
} catch (TeamException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
afdd0f6052a905121af3a3aae0206fe7b9c1b668
|
59e7cd121e34fce370a29d7d23f811ff3a29fe23
|
/house-manage/src/main/java/com/manage/service/impl/EndEveryDayUpdateData.java
|
424abcefef7defa58460d58f72eb1c9e24a9ea65
|
[] |
no_license
|
tiger-super/bi-jian
|
796badb42209dca4abcca8a443dea993f4aacefb
|
2b357166e60e8235a0569fca84b059df76f2c110
|
refs/heads/master
| 2020-04-14T23:30:25.925733
| 2019-05-10T13:03:37
| 2019-05-10T13:03:37
| 164,204,664
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,264
|
java
|
package com.manage.service.impl;
/**
*
* 创建业务逻辑类
*
*/
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.house.entity.WebsiteCount;
import com.manage.dao.HouseManageDao;
import com.manage.dao.VipManageDao;
import com.manage.dao.WebsiteManagementMapper;
import com.manage.tool.Time;
@Service
public class EndEveryDayUpdateData {
@Autowired
WebsiteManagementMapper websiteManagementMapper;
@Autowired
HouseManageDao houseManageDao;
@Autowired
VipManageDao vipManageDao;
public void end() {
int housePublishNumberToday = houseManageDao.selectTotalHasBeenPublishHouse();
int houseLowerShelfNumberToday = houseManageDao.selectTotalNoToBeAuditingHouse();
WebsiteCount wc = new WebsiteCount();
wc.setTime(Time.getNowTimeforYearAndMonthAndDay());
wc.setHouseLowerShelfNumberToday(houseLowerShelfNumberToday);
wc.setHousePublishNumberToday(housePublishNumberToday);
List<String> list = vipManageDao.accountPayMoneyAndNowDay(Time.getNowOtherTime());
int sum = 0;
for(int i = 0 ; i < list.size(); i++) {
sum += Double.valueOf(list.get(i));
}
wc.setTodayPayNumber(sum);
websiteManagementMapper.updateWebsiteData(wc);
}
}
|
[
"l"
] |
l
|
075d41c9337bb58482c27e191cfc5a43b8615ce9
|
22a7df6b4f15a702f4b7a9718e7cfc74d2409a37
|
/app/src/main/java/com/ameron32/apps/projectbanditv3/fragment/EquipmentTestFragment.java
|
8241a62e05c6fd0a48f20c005df3414ab2c76c13
|
[] |
no_license
|
ameron32/ProjectBanditv3
|
c016b3688cc26c5545832eb4e59db65b095796de
|
1e5ea04a41e9212e7a96962c64a96164a03ad846
|
refs/heads/master
| 2021-01-22T09:33:59.319072
| 2015-12-02T04:45:01
| 2015-12-02T04:45:01
| 28,528,647
| 3
| 0
| null | 2015-01-12T17:07:28
| 2014-12-27T04:37:19
|
Java
|
UTF-8
|
Java
| false
| false
| 729
|
java
|
package com.ameron32.apps.projectbanditv3.fragment;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import com.ameron32.apps.projectbanditv3.adapter.EquipmentAdapter;
import com.ameron32.apps.projectbanditv3.R;
import butterknife.ButterKnife;
import butterknife.InjectView;
public class EquipmentTestFragment
extends
SectionContainerTestFragment {
@InjectView(R.id.listView1) ListView listView1;
@Override public void onViewCreated(
View view,
Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
ButterKnife.inject(this, view);
listView1.setAdapter(new EquipmentAdapter(getActivity(), R.layout.row_equipment));
}
}
|
[
"ameron32extras@gmail.com"
] |
ameron32extras@gmail.com
|
8ca9e6b76ada2a2c2cf184a6e5d37cf4df7b6dc7
|
1cd3a9a0ff4906157875fb355c930820145ced88
|
/src/main/java/org/restlet/ext/simpledb/util/RestletUtil.java
|
45918b0cb8275712fddf21d09abd41ff96a391d1
|
[] |
no_license
|
barchart/carrot-org.restlet.ext.simpledb
|
250bbe186d2af9aee4051b7067ba099261a849f9
|
7c30c854f0c25d2d537dbe13763c3648bb53b86e
|
refs/heads/master
| 2023-08-23T10:04:18.765301
| 2012-04-12T23:09:12
| 2012-04-12T23:09:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 718
|
java
|
package org.restlet.ext.simpledb.util;
import org.restlet.Message;
import org.restlet.resource.UniformResource;
public class RestletUtil {
public static String componentURI(String path) {
String uri = "riap://component" + path;
return uri;
}
public static String getReqAttr(UniformResource resource, String name) {
String attr = (String) resource.getRequestAttributes().get(name);
return attr;
}
public static String getRspAttr(UniformResource resource, String name) {
String attr = (String) resource.getResponseAttributes().get(name);
return attr;
}
public static String getAttr(Message message, String name) {
String attr = (String) message.getAttributes().get(name);
return attr;
}
}
|
[
"Andrei.Pozolotin@gmail.com"
] |
Andrei.Pozolotin@gmail.com
|
b31a467da70cb9894ae9bcd2d180d2f95bf805b3
|
ecfb858bfb8d5577f86e684cadbee00ec21a06dc
|
/Backend/Spring/Java/spring_security_course/chapter02/chapter02.06/src/main/java/io/baselogic/springsecurity/configuration/SecurityConfig.java
|
6fcc066ed36a150bc85112c64f32f9fd800dc755
|
[
"BSD-2-Clause"
] |
permissive
|
ccf05017/til
|
ce3c5ae97bfda11482db78883f0002c3fd0c96f8
|
09bb2868f20b3942ce2a7148679f999bbf11dc8d
|
refs/heads/master
| 2023-01-12T03:57:51.787747
| 2021-05-31T23:04:25
| 2021-05-31T23:04:25
| 222,437,687
| 0
| 1
| null | 2023-01-07T19:57:46
| 2019-11-18T11:53:39
|
Java
|
UTF-8
|
Java
| false
| false
| 6,630
|
java
|
package io.baselogic.springsecurity.configuration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Description;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.authentication.configurers.provisioning.InMemoryUserDetailsManagerConfigurer;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
/**
* Spring Security Configuration Class
* @see WebSecurityConfigurerAdapter
* @since chapter02.01 created
* @since chapter02.02 Added formLogin and logout configuration
* @since chapter02.03 Added basic role-based authorization
* @since chapter02.04 converted antMatchers to SPeL expressions
* @since chapter02.05 Added .defaultSuccessUrl("/default")
*/
@Configuration
@EnableWebSecurity(debug = true)
@Slf4j
public class SecurityConfig extends WebSecurityConfigurerAdapter {
private static final String HASANYROLE_ANONYMOUS = "hasAnyRole('ANONYMOUS', 'USER')";
private static final String HASROLE_USER = "hasRole('USER')";
private static final String HASROLE_ADMIN = "hasRole('ADMIN')";
private static final String ROLE_USER = "USER";
private static final String ROLE_ADMIN = "ADMIN";
/**
* Configure {@link AuthenticationManager} with {@link InMemoryUserDetailsManagerConfigurer} credentials.
*
* Note: Prior to Spring Security 5.0
* the default PasswordEncoder was NoOpPasswordEncoder which required plain text passwords.
* In Spring Security 5, the default is DelegatingPasswordEncoder, which required Password Storage Format.
*
* See for more details:
* https://spring.io/blog/2017/11/01/spring-security-5-0-0-rc1-released#password-encoding
*
* Legacy insecure password encoding:
* <code>
* am.inMemoryAuthentication()
* .passwordEncoder(NoOpPasswordEncoder.getInstance())
* .withUser("user1@baselogic.com").password("user1").roles(ROLE_USER);
* </code>
*
* @param am AuthenticationManagerBuilder
* @throws Exception Authentication exception
*/
@Override
public void configure(final AuthenticationManagerBuilder am) throws Exception {
am.inMemoryAuthentication()
.withUser("user1@baselogic.com").password("{noop}user1").roles(ROLE_USER)
.and().withUser("admin1@baselogic.com").password("{noop}admin1").roles(ROLE_USER, ROLE_ADMIN)
;
log.debug("***** Password for user 'user1@baselogic.com' is 'user1'");
log.debug("***** Password for admin 'admin1@baselogic.com' is 'admin1'");
}
/**
* HTTP Security configuration
*
* <http auto-config="true"> is equivalent to:
* <pre>
* <http>
* <form-login />
* <http-basic />
* <logout />
* </http>
* </pre>
*
* Which is equivalent to the following JavaConfig:
*
* <pre>
* http.formLogin()
* .and().httpBasic()
* .and().logout();
* </pre>
*
* @see org.springframework.security.access.expression.SecurityExpressionRoot
* @param http HttpSecurity configuration.
* @throws Exception Authentication configuration exception
*
*/
@Description("Configure HTTP Security")
@Override
protected void configure(final HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/").access(HASANYROLE_ANONYMOUS)
.antMatchers("/login/*").access(HASANYROLE_ANONYMOUS)
.antMatchers("/logout/*").access(HASANYROLE_ANONYMOUS)
.antMatchers("/admin/*").access(HASROLE_ADMIN)
.antMatchers("/events/").access(HASROLE_ADMIN)
.antMatchers("/**").access(HASROLE_USER)
// The default AccessDeniedException
.and().exceptionHandling().accessDeniedPage("/errors/403")
.and().formLogin()
.loginPage("/login/form")
.loginProcessingUrl("/login")
.failureUrl("/login/form?error")
.usernameParameter("username") // redundant
.passwordParameter("password") // redundant
.defaultSuccessUrl("/default", true)
.permitAll()
.and().logout()
.logoutUrl("/logout")
.logoutSuccessUrl("/login/form?logout")
.permitAll()
;
// Allow anonymous users
http.anonymous();
// CSRF is enabled by default, with Java Config
http.csrf().disable();
// Cross Origin Resource Sharing
http.cors().disable();
// HTTP Security Headers
http.headers().disable();
http.headers().xssProtection().disable();
http.headers().contentTypeOptions().disable();
// Enable <frameset> in order to use H2 web console
http.headers().frameOptions().disable();
} // end configure
/**
* This is the equivalent to:
* <pre><http pattern="/css/**" security="none"/></pre>
*
*
* @param web {@link WebSecurity} is created by {@link org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration}
* <p>
* The {@link WebSecurity} is created by {@link org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration} to create the
* {@link org.springframework.security.web.FilterChainProxy} known as the Spring Security Filter Chain
* (springSecurityFilterChain). The springSecurityFilterChain is the {@link javax.servlet.Filter} that
* the {@link org.springframework.web.filter.DelegatingFilterProxy} delegates to.
* </p>
*/
@Override
public void configure(final WebSecurity web) {
web.ignoring()
.antMatchers("/resources/**")
.antMatchers("/css/**")
.antMatchers("/favicon.ico")
.antMatchers("/img/**")
.antMatchers("/webjars/**")
;
}
} // The End...
|
[
"saul@BcTech-Saului-MacBookPro.local"
] |
saul@BcTech-Saului-MacBookPro.local
|
168d522d2fac86ddfb9a2a7312edea6d5352121e
|
4b027a96e457f90fdd146c73a92a99a63b5f6cab
|
/level07/lesson09/task01/Solution.java
|
f42edc6ddef1fd45bfe61c793ea6b979c6e3898b
|
[] |
no_license
|
Byshevsky/JavaRush
|
c44a3b25afca677bbe5b6c015aec7c2561ca4830
|
d8965bc8b5f060af558cc86924ae6488727cdbd4
|
refs/heads/master
| 2021-05-02T12:17:48.896494
| 2016-12-26T21:56:12
| 2016-12-26T21:56:12
| 52,143,706
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,113
|
java
|
package com.javarush.test.level07.lesson09.task01;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/* Три массива
1. Введи с клавиатуры 20 чисел, сохрани их в список и рассортируй по трём другим спискам:
Число делится на 3 (x%3==0), делится на 2 (x%2==0) и все остальные.
Числа, которые делятся на 3 и на 2 одновременно, например 6, попадают в оба списка.
2. Метод printList должен выводить на экран все элементы списка с новой строки.
3. Используя метод printList выведи эти три списка на экран. Сначала тот, который для x%3, потом тот, который для x%2, потом последний.
*/
public class Solution
{
public static void main(String[] args) throws Exception
{
//add your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
ArrayList<Integer>list = new ArrayList<Integer>();
for (int i = 0; i < 20; i++)
{
list.add(Integer.parseInt(reader.readLine()));
}
ArrayList<Integer>list1 = new ArrayList<Integer>();
ArrayList<Integer>list2 = new ArrayList<Integer>();
ArrayList<Integer>list3 = new ArrayList<Integer>();
for (int i = 0; i < list.size(); i++)
{
Integer y = list.get(i);
if (y % 3 == 0)
list1.add(y);
if (y % 2 == 0)
list2.add(y);
if (y % 2 != 0 && y % 3 != 0)
list3.add(y);
}
printList(list1);
printList(list2);
printList(list3);
}
public static void printList(List<Integer> list) {
//add your code here
for (int x : list)
System.out.println(x);
}
}
|
[
"igberda2011@gmail.com"
] |
igberda2011@gmail.com
|
2ae4840473f52ced22a21edaafdd9aba62d1840e
|
e38ab03528d0674d9838cc887ec0d6ec6922daab
|
/Secure_Storage_Service/src/weloveclouds/commons/serialization/IMessageDeserializer.java
|
1b166593b6eb7ce5af482d1076cdbc9eb2772863
|
[] |
no_license
|
benedekh/WeLoveClouds
|
d8ba2c7024205985c15de5b49fd0e221c4b55cce
|
085579c889713b3a63c7ad01dbf30973bce7dabc
|
refs/heads/master
| 2022-07-22T02:46:22.989742
| 2022-07-14T06:25:24
| 2022-07-14T06:25:24
| 71,482,555
| 0
| 1
| null | 2022-07-14T06:25:25
| 2016-10-20T16:29:29
|
Java
|
UTF-8
|
Java
| false
| false
| 716
|
java
|
package weloveclouds.commons.serialization;
import weloveclouds.commons.kvstore.deserialization.exceptions.DeserializationException;
/**
* A deserializer that can convert from type E to T, or from byte[] to T
*
* @author Benoit
*/
public interface IMessageDeserializer<T, E> {
/**
* Converts a serialized message to a T type.
*
* @throws DeserializationException if any error occurs
*/
T deserialize(E serializedMessage) throws DeserializationException;
/**
* Converts a serialized message from byte[] to a T type.
*
* @throws DeserializationException if any error occurs
*/
T deserialize(byte[] serializedMessage) throws DeserializationException;
}
|
[
"benedekh12@gmail.com"
] |
benedekh12@gmail.com
|
24720c249dd0d2998893df3bfba10d663fb692db
|
ca57c3651db75069fcbbb7c5190e6a328331660e
|
/src/com/siwuxie095/forme/designpattern/category/chapter6th/example7th/CeilingFanLowCommand.java
|
12f0fe702bdf7031e8d13e06ea0b7be869a14847
|
[] |
no_license
|
gouyanzhan/HelloWorld
|
f915ec8eabf8878b0c01fb8ec29b869e6fd68c5f
|
8cd9dc117d301d10207690052f2f27de2d9b9e2c
|
refs/heads/master
| 2022-03-25T07:31:52.842092
| 2022-03-11T07:08:30
| 2022-03-11T07:08:30
| 164,224,001
| 1
| 1
| null | 2019-01-07T14:18:44
| 2019-01-05T14:52:23
|
Java
|
UTF-8
|
Java
| false
| false
| 1,104
|
java
|
package com.siwuxie095.forme.designpattern.category.chapter6th.example7th;
/**
* 开吊扇并设为低速的命令
*
* @author Jiajing Li
* @date 2019-11-04 11:31:05
*/
class CeilingFanLowCommand implements Command {
/**
* 持有对吊扇的引用
*/
private CeilingFan ceilingFan;
/**
* 前一个速度
*/
private int prevSpeed;
CeilingFanLowCommand(CeilingFan ceilingFan) {
this.ceilingFan = ceilingFan;
}
/**
* 执行命令:开吊扇,并将吊扇设为低速
*/
@Override
public void execute() {
prevSpeed = ceilingFan.getSpeed();
ceilingFan.low();
}
/**
* 撤销命令:根据 prevSpeed 撤销
*/
@Override
public void undo() {
if (prevSpeed == CeilingFan.HIGH) {
ceilingFan.high();
} else if (prevSpeed == CeilingFan.MEDIUM) {
ceilingFan.medium();
} else if (prevSpeed == CeilingFan.LOW) {
ceilingFan.low();
} else if (prevSpeed == CeilingFan.OFF) {
ceilingFan.off();
}
}
}
|
[
"834879583@qq.com"
] |
834879583@qq.com
|
ed97aad4681f990c4ab86829fa1d2c7db42a6f86
|
fd9aadd1611a1d76c46d2fd86e44cb2279ace798
|
/src/com/mtgox/examples/UsageExample.java
|
dedd2fd0f522151ff84401adb7a7e75cd0b8ae60
|
[
"MIT"
] |
permissive
|
robsonk/mtgox-api-v2-java
|
3a029ea693eea209039e1f8f1b5e0cbfea885e97
|
936dc5ed9a98820666b5477ffa156da403135d49
|
refs/heads/master
| 2021-01-18T08:42:52.549642
| 2013-05-03T14:56:07
| 2013-05-03T14:56:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,632
|
java
|
package com.mtgox.examples;
import com.mtgox.api.ApiKeys;
import com.mtgox.api.MtGox;
import com.mtgox.examples.utils.FileSystem;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
/**
* https://github.com/adv0r/mtgox-apiv2-java
* @author adv0r <leg@lize.it>
* MIT License (see LICENSE.md)
* Run examples at your own risk. Only partially implemented and untested.
* Consider donations @ 1N7XxSvek1xVnWEBFGa5sHn1NhtDdMhkA7
*/
public class UsageExample {
public static void main(String args[])
{
initSSL(); //Setup the SSL certificate to interact with mtgox over secure http.
//Read api Keys---------------------------------------------------------------------------------
//from the JSON file located in res/api-keys.json
//ApiKeys keys = readApiKeys("res/api-keys.json");
//or simply create the keys passing them to the constructor
ApiKeys keys = new ApiKeys("your-secret-key",
"your-api-key");
//Library Usage Examples -----------------------------------------------------------------------
//Create the interface for trading on Mtgox, passing the apikeys object
MtGox trade = new MtGox(keys);
//trade.setPrintHTTPResponse(true); //Uncomment this line if you want to read the JSON HTTP response
//Get the current balance in USD,EUR, and BTC---------------------------------------------------
double[] balance = trade.getBalance(); //The answer consist of an array of three elements
double balanceBTC = balance[0]; //balance in BTC
double balanceUSD = balance[1]; //balance in USD
double balanceEUR = balance[2]; //balance in EUR
System.out.println("Current account balance : \n" +
" "+balanceBTC+" BTC\n"+
" "+balanceUSD+" $\n"+
" "+balanceEUR+" €");
//Get the current trading engine lag (as a String)---------------------------------------------
System.out.println("Current Lag : "+ trade.getLag());
//Get the current price of a bitcoin using the ticker fast-------------------------------------
double lastPriceUSD = trade.getLastPriceUSD();
double lastPriceEUR = trade.getLastPriceEUR();
System.out.println("Current price of 1 BTC : \n" +
" "+lastPriceUSD+" $\n"+
" "+lastPriceEUR+" €");
//Buy 0.1 BTC at market price -----------------------------------------------------------------
//String buyResult = trade.buyBTC(0.1); //If you uncomment this, be sure of what you are doing
//System.out.println(buyResult);
//Sell 0.1 BTC at market price -----------------------------------------------------------------
//String sellResult = trade.sellBTC(0.1); //If you uncomment this, be sure of what you are doing
//System.out.println(sellResult);
//Finally, if you are using this library in some of your project consider-----------------------
//giving me a small donation by simpling uncommenting the line below :)
//withdraw 0.1 BTC from your mtgox to my wallet
//trade.withdrawBTC(0.1, "1N7XxSvek1xVnWEBFGa5sHn1NhtDdMhkA7"); //thanks! ;)
}
public static void initSSL()
{
// SSL Certificates trustStore ----------------------------------------
//Set the SSL certificate for mtgox - Read up on Java Trust store.
System.setProperty("javax.net.ssl.trustStore","res/ssl/mtgox.jks");
System.setProperty("javax.net.ssl.trustStorePassword","h4rdc0r_"); //I encripted the jks file using this pwd
//System.setProperty("javax.net.debug","ssl"); //Uncomment for debugging SSL errors
}
//readApiKeysFromFile
public static ApiKeys readApiKeys(String pathToJsonFile) {
//see https://code.google.com/p/json-simple/wiki/DecodingExamples
JSONParser parser=new JSONParser();
ApiKeys apiKeys = null;
String apiStr = FileSystem.readFromFile(pathToJsonFile);
try {
JSONObject obj2=(JSONObject)(parser.parse(apiStr));
apiKeys= new ApiKeys((String)obj2.get("mtgox_secret_key"), (String)obj2.get("mtgox_api_key"));
} catch (ParseException ex) {
System.err.println(ex);
}
return apiKeys;
}
}
|
[
"paternoster.nicolo@gmail.com"
] |
paternoster.nicolo@gmail.com
|
1eb26a42d7a35b1fb7d47a307f9c48768a07b533
|
3767880230113b858e4b9b7f1a698e4de299dd4a
|
/java/src/main/java/com/logics/PlayStoreApkExtracation.java
|
ba3ea0b48c0ddd6e51c7b6ae6d57aa863a991837
|
[] |
no_license
|
loki-tailor/tutorials
|
153ab50c81adeecf9edd2c127e022320b4610d6f
|
9dc7e53308571926ca4591c02fd3ec7bad11b217
|
refs/heads/main
| 2023-03-08T21:04:29.599550
| 2022-10-23T06:54:43
| 2022-10-23T06:54:43
| 154,438,897
| 0
| 0
| null | 2023-03-01T06:13:51
| 2018-10-24T04:27:26
|
Python
|
UTF-8
|
Java
| false
| false
| 3,265
|
java
|
package com.logics;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Iterator;
public class PlayStoreApkExtracation {
public static void main(String[] args) throws Exception {
extractApkUsingPackageName("com.facebook.lite");
}
public static void extractApkUsingPackageName(String package_name) throws Exception {
System.out.println("EXTRACTION_STARTED : " + package_name);
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("adb shell pm path" + " " + package_name);
// you might need the full path
InputStream is = process.getInputStream();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String line;
ArrayList<String> list = new ArrayList<>();
while ((line = br.readLine()) != null) {
System.out.println(line);
list.add(line);
}
System.out.println("NO_OF_APKS : " + list.size());
// remove empty lines
Iterator<String> m = list.iterator();
while (m.hasNext()) {
String s = m.next();
if (s == null || s.isEmpty()) {
m.remove();
}
}
if (list.size() == 1) {
String[] arrOfStr = list.get(0).split(":", 2);
System.out.println(arrOfStr[1]);
Runtime.getRuntime().exec("adb pull" + " " + arrOfStr[1] + " " + "/home/lokesh/git/tutorials/Test/" + package_name + ".apk");
System.out.println("This is Single APK");
// .WriteExcel(pack, "Single APk");
}
//
// else if (list.size() > 1) {
//
// File file = new File(System.getProperty("user.dir") + "\\src\\multipleApk\\" + pack);
// try {
//
// file.mkdir();
// }
//
// catch (SecurityException Se) {
//
// System.out.println("Error while creating directory in Java:" + Se);
//
// }
// System.out.println("This is Multiple APK");
// System.out.println(file);
//
// for (int i = 0; i < list.size(); i++)
//
// {
// String[] arrOfStr = list.get(i).split(":", 2);
//
// list.get(i);
// System.out.println("this list is" + list.get(i).length());
//
// System.out.println(arrOfStr[1]);
//
// Runtime.getRuntime().exec("adb pull" + " " + arrOfStr[1] + " " + System.getProperty("user.dir")
// + "\\src\\multipleApk\\" + pack + "\\");
// Thread.sleep(40);
//
// /// ExtractionReadWrite.WriteExcel(pack, "Multiple APK");
// }
//
// }
//
// else {
// Thread.sleep(2000);
// System.out.println("APK Not found");
// }
// Runtime.getRuntime().exec("adb uninstall" + " " + package_name);
}
public static String runcommand(String command) {
System.out.println();
StringBuilder op = new StringBuilder();
try {
String cmd = new String(command.getBytes(Charset.defaultCharset()));
System.out.println("$: " + cmd);
Process process = new ProcessBuilder(cmd.split(" ")).start();
process.waitFor();
InputStream is = process.exitValue() != 0 ? process.getErrorStream() : process.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(is));
String temp = "";
while ((temp = br.readLine()) != null) {
op.append(temp);
op.append("\n");
}
br.close();
} catch (Exception e) {
e.printStackTrace();
}
return op.toString();
}
}
|
[
"lokeshwar.tailor@outlook.com"
] |
lokeshwar.tailor@outlook.com
|
35b2cd14d4f1c58ec8c0ea551b6600781f3f508c
|
838fe21048f4da4ba6a2ec1679e2a9e3aff188c9
|
/Renters Block Phase-2/RB New Code/app/src/main/java/com/smaat/renterblock/adapters/BoardMessageAdapter.java
|
a4691b556a5d605e14c8a038501ea60d7167ad2f
|
[] |
no_license
|
PrithivDharmarajan/Projects
|
03b162e0666dc08888d73bd3c6fa7771525677c7
|
1548b60025adc4f7a0570d51950c144a1cacce3a
|
refs/heads/master
| 2020-03-30T22:36:22.465572
| 2018-11-12T16:39:01
| 2018-11-12T16:39:01
| 151,672,600
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,353
|
java
|
package com.smaat.renterblock.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.smaat.renterblock.R;
import com.smaat.renterblock.entity.BoardMessageEntity;
import com.smaat.renterblock.main.BaseFragment;
import com.smaat.renterblock.services.APIRequestHandler;
import com.smaat.renterblock.utils.AppConstants;
import com.smaat.renterblock.utils.TimeUtil;
import java.util.ArrayList;
import butterknife.BindView;
import butterknife.ButterKnife;
public class BoardMessageAdapter extends RecyclerView.Adapter<BoardMessageAdapter.Holder> {
private BaseFragment mContext;
private ArrayList<BoardMessageEntity>mMessageList=new ArrayList<>();
public BoardMessageAdapter(BaseFragment context, ArrayList<BoardMessageEntity>boardMessageList){
mContext=context;
mMessageList=boardMessageList;
}
@Override
public Holder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.adapter_board_chat, parent, false);
return new Holder(view);
}
@Override
public void onBindViewHolder(Holder holder, int position) {
final BoardMessageEntity msgEntity=mMessageList.get(position);
holder.mFriendCountTxt.setText(msgEntity.getFriends_count());
holder.mReviewCountTxt.setText(msgEntity.getReviews_count());
holder.mPhotoCountTxt.setText(msgEntity.getPhotos_count());
holder.mNameTxt.setText(msgEntity.getUser_name());
holder.mTimeTxt.setText(TimeUtil.getTimeDifference(msgEntity.getDate_time()));
holder.mMessageTxt.setText(msgEntity.getMessage());
try {
Glide.with(mContext)
.load(msgEntity.getUser_profileImage())
.into(holder.mProfileImg);
} catch (Exception ex) {
holder.mProfileImg.setImageResource(R.drawable.profile_pic);
Log.e(AppConstants.TAG, ex.getMessage());
}
holder.mChatBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
APIRequestHandler.getInstance().getChatID(msgEntity.getUser_id(),msgEntity.getUser_name(),mContext);
}
});
}
@Override
public int getItemCount() {
return mMessageList.size();
}
public class Holder extends RecyclerView.ViewHolder {
@BindView(R.id.friends_count_txt)
TextView mFriendCountTxt;
@BindView(R.id.review_count_txt)
TextView mReviewCountTxt;
@BindView(R.id.photos_count_txt)
TextView mPhotoCountTxt;
@BindView(R.id.name_txt)
TextView mNameTxt;
@BindView(R.id.time_txt)
TextView mTimeTxt;
@BindView(R.id.chat_txt)
TextView mMessageTxt;
@BindView(R.id.profile_image)
ImageView mProfileImg;
@BindView(R.id.chat_btn)
Button mChatBtn;
public Holder(View itemView) {
super(itemView);
ButterKnife.bind(this,itemView);
}
}
}
|
[
"prithiviraj@smaatapps.com"
] |
prithiviraj@smaatapps.com
|
a6d0abfa605a1c0234df8dd8b12d9221a1f40b2c
|
4cc6fb1fde80a1730b660ba5ec13ad5f3228ea5c
|
/java-lihongjie/apache-mina/tcpserver-mina/src/main/java/com/github/lihongjie/tcp/demo2/Command.java
|
7b4e10d08ca273996f9183dfc428e95dca29e3f2
|
[
"MIT"
] |
permissive
|
lihongjie/tutorials
|
c598425b085549f5f7a29b1c7bf0c86ae9823c94
|
c729ae0eac90564e6366bc4907dcb8a536519956
|
refs/heads/master
| 2023-08-19T05:03:23.754199
| 2023-08-11T08:25:29
| 2023-08-11T08:25:29
| 124,048,964
| 0
| 0
|
MIT
| 2018-04-01T06:26:19
| 2018-03-06T08:51:04
|
Java
|
UTF-8
|
Java
| false
| false
| 738
|
java
|
package com.github.lihongjie.tcp.demo2;
public class Command {
public static final int LOGIN = 0;
public static final int QUIT = 1;
public static final int BROADCAST = 2;
private final int num;
private Command(int num) {
this.num = num;
}
public int toInt() {
return num;
}
public static Command valueOf(String s) {
s = s.toUpperCase();
if ("LOGIN".equals(s)) {
return new Command(LOGIN);
}
if ("QUIT".equals(s)) {
return new Command(QUIT);
}
if ("BROADCAST".equals(s)) {
return new Command(BROADCAST);
}
throw new IllegalArgumentException("Unrecognized command: " + s);
}
}
|
[
"you@example.com"
] |
you@example.com
|
d9f204708dedf3b79a29f442194e890a028bb2d0
|
02a087e8de0a7d0cfed9dba60e8cff5be4ae3be1
|
/Research_Bucket/Completed_Archived/NIER 2015/data/dataRecovered_9_8_2015/Dataset_full/Pooling/1.13-RequestLifecycleComponent.java
|
a804bf3b64615e1b4b58aa079628e7cb8e249721
|
[] |
no_license
|
dan7800/Research
|
7baf8d5afda9824dc5a53f55c3e73f9734e61d46
|
f68ea72c599f74e88dd44d85503cc672474ec12a
|
refs/heads/master
| 2021-01-23T09:50:47.744309
| 2018-09-01T14:56:01
| 2018-09-01T14:56:01
| 32,521,867
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,257
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.cocoon.components;
import java.io.IOException;
import java.util.Map;
import org.apache.avalon.excalibur.pool.Poolable;
import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.environment.SourceResolver;
import org.xml.sax.SAXException;
/**
* Components implementing this marker interface have a lifecycle of one
* request. This means if during one request a component accepting this
* interface is looked up several times, it's always the same instance.
* Each internal subrequest, e.g. using the cocoon protocol, is considered
* as a new request. So an instance looked up in the "main" request is
* not available to a subrequest.
* In addition, the first time this component is looked up during a request,
* the {@link #setup(SourceResolver, Map)} method is called.
*
* @see org.apache.cocoon.components.GlobalRequestLifecycleComponent
* @deprecated Use the {@link org.apache.cocoon.components.persistence.RequestDataStore} instead.
*
* @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
* @version CVS $Id: RequestLifecycleComponent.java 433543 2006-08-22 06:22:54Z crossley $
*/
public interface RequestLifecycleComponent extends Poolable {
/**
* Set the {@link SourceResolver} and the objectModel
* used to process the current request.
*/
void setup(SourceResolver resolver, Map objectModel)
throws ProcessingException, SAXException, IOException;
}
|
[
"dxkvse@rit.edu"
] |
dxkvse@rit.edu
|
c54cc7343264055532591951f9617fcaf4c7248e
|
0471b0003663fe65bcbf7bb53fc6e550586c6c01
|
/src/main/java/com/qg/www/utils/DigestUtil.java
|
7d4e4efd54c4dd5bc9f26ce9c70f719443467620
|
[] |
no_license
|
WebQG/QGInfoManageSystem
|
876fff92864c99b7920bb1a57d9b27fa29b72174
|
e735fc8092512996afb990f586fd2d3e34e13290
|
refs/heads/master
| 2020-03-26T16:08:25.530652
| 2018-10-30T12:09:10
| 2018-10-30T12:09:10
| 145,084,531
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 825
|
java
|
package com.qg.www.utils;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* @author net
* @version 1.0
* 密码加密工具类;
*/
public class DigestUtil {
/**
* MD加密方法
*
* @param plainText 需要加密的文段;
* @return 加密后的密码;
*/
public static String digestPassword(String plainText) {
byte[] secretBytes;
try {
secretBytes = MessageDigest.getInstance("md5").digest(
plainText.getBytes());
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException("NO MD5");
}
//将加密后的byte数组转为16进制表示,并且返回;
return new BigInteger(1, secretBytes).toString(16);
}
}
|
[
"929159338@qq.com"
] |
929159338@qq.com
|
bea1b70304c4927dceabe40769159b40d1d0c6b5
|
0f77c5ec508d6e8b558f726980067d1058e350d7
|
/1_39_120042/com/ankamagames/wakfu/client/console/command/admin/commands/CheckCommand.java
|
76a0e09c35fad3d78f4098b1f268777107cc6106
|
[] |
no_license
|
nightwolf93/Wakxy-Core-Decompiled
|
aa589ebb92197bf48e6576026648956f93b8bf7f
|
2967f8f8fba89018f63b36e3978fc62908aa4d4d
|
refs/heads/master
| 2016-09-05T11:07:45.145928
| 2014-12-30T16:21:30
| 2014-12-30T16:21:30
| 29,250,176
| 5
| 5
| null | 2015-01-14T15:17:02
| 2015-01-14T15:17:02
| null |
UTF-8
|
Java
| false
| false
| 3,256
|
java
|
package com.ankamagames.wakfu.client.console.command.admin.commands;
import com.ankamagames.wakfu.client.console.command.admin.commands.annotation.*;
import com.ankamagames.baseImpl.common.clientAndServer.account.admin.*;
import com.ankamagames.wakfu.client.core.*;
import com.ankamagames.baseImpl.client.proxyclient.base.console.*;
import com.ankamagames.baseImpl.client.proxyclient.base.network.*;
import com.ankamagames.baseImpl.client.proxyclient.base.network.protocol.message.*;
import com.ankamagames.framework.kernel.core.common.message.*;
@Documentation(commandName = "check", commandParameters = "<-u>", commandRights = { AdminRightsGroup.ADMINISTRATOR, AdminRightsGroup.STAFF }, commandDescription = "Give informations about current partition usergroups.", commandObsolete = false)
public final class CheckCommand extends ModerationCommand
{
public static final int HELP = 0;
public static final int USER_GROUP_BY_ID = 1;
public static final int USER_GROUPS = 2;
private final int m_commandId;
private final String[] m_args;
public CheckCommand(final int commandId, final String... args) {
super();
this.m_args = args;
this.m_commandId = commandId;
}
@Override
public boolean isValid() {
switch (this.m_commandId) {
case 1: {
return this.m_args.length == 1;
}
case 0:
case 2: {
return true;
}
default: {
return false;
}
}
}
@Override
public void execute() {
final NetworkEntity networkEntity = WakfuGameEntity.getInstance().getNetworkEntity();
if (networkEntity == null) {
ConsoleManager.getInstance().err("Pour acc\u00e9der \u00e0 ces commandes il faut \u00eatre connect\u00e9 !");
return;
}
try {
switch (this.m_commandId) {
case 1: {
this.checkUserGroupById(networkEntity);
break;
}
case 2: {
this.checkUserGroups(networkEntity);
break;
}
case 0: {
this.help();
break;
}
}
}
catch (Exception e) {
ConsoleManager.getInstance().err("Probl\u00e8me lors de l'execution d'une commande de check " + e);
}
}
private void help() {
ModerationCommand.log("(--userGroup | -u) Donne des informations sur les UserGroup de la partition courante.\r\n");
}
private void checkUserGroupById(final NetworkEntity networkEntity) {
final ModerationCommandMessage msg = new ModerationCommandMessage();
msg.setServerId((byte)3);
msg.setCommand((short)95);
msg.addIntParameter(Integer.parseInt(this.m_args[0]));
networkEntity.sendMessage(msg);
}
private void checkUserGroups(final NetworkEntity networkEntity) {
final ModerationCommandMessage msg = new ModerationCommandMessage();
msg.setServerId((byte)3);
msg.setCommand((short)96);
networkEntity.sendMessage(msg);
}
}
|
[
"totomakers@hotmail.fr"
] |
totomakers@hotmail.fr
|
80f55468a642737f5622df8ae6c32a019881db0c
|
9d793d33a39d134b9bd6fa01acb2a986f9c0a49c
|
/moco-core/src/main/java/com/github/dreamhead/moco/handler/ContentTypeDetector.java
|
5640add605aaeb8b9ae69713a85020ba820ad80c
|
[
"MIT"
] |
permissive
|
xiaotao183/moco
|
8dd30a134d8b4cdf186dd32e172e7aba942e6d9d
|
c20f64f893d28ea75a4f8522f11c85348c4e78e9
|
refs/heads/master
| 2020-12-27T06:06:02.693622
| 2013-11-01T22:42:11
| 2013-11-01T22:42:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 384
|
java
|
package com.github.dreamhead.moco.handler;
import io.netty.handler.codec.http.HttpResponse;
public class ContentTypeDetector {
public boolean hasContentType(HttpResponse response) {
return hasHeader(response, "Content-Type");
}
public boolean hasHeader(HttpResponse response, String headerName) {
return response.headers().contains(headerName);
}
}
|
[
"dreamhead.cn@gmail.com"
] |
dreamhead.cn@gmail.com
|
e9dc03004febe6521bab6c4093631a1a3057895f
|
689c999929f235ece90c8ac6b6688f403c76b658
|
/cloudata-git/src/main/java/com/cloudata/git/config/RepoConfig.java
|
3add17ddd56f50875acf84a2f1651cad4db34ad3
|
[
"Apache-2.0"
] |
permissive
|
justinsb/cloudata
|
67bf6bcee7433175f8e772b3b862b2486bc6f8ed
|
076735914b479642f660fd7e56383667316fefde
|
refs/heads/master
| 2020-05-18T01:04:51.962476
| 2015-04-10T01:50:57
| 2015-04-10T01:50:57
| 15,012,247
| 16
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,442
|
java
|
//package com.cloudata.git.config;
//
//import java.io.IOException;
//import java.io.InputStream;
//import java.io.InputStreamReader;
//import java.util.Collections;
//import java.util.Map;
//
//import org.eclipse.jgit.lib.ObjectId;
//import org.eclipse.jgit.lib.ObjectLoader;
//import org.eclipse.jgit.lib.ObjectReader;
//import org.eclipse.jgit.lib.Repository;
//import org.eclipse.jgit.revwalk.RevCommit;
//import org.eclipse.jgit.revwalk.RevTree;
//import org.eclipse.jgit.revwalk.RevWalk;
//import org.eclipse.jgit.treewalk.TreeWalk;
//import org.eclipse.jgit.treewalk.filter.PathFilter;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//
//import com.cloudata.auth.AuthenticatedUser;
//import com.cloudata.git.GitModel.RepositoryData;
//import com.cloudata.git.model.GitRepository;
//import com.google.common.base.Charsets;
//import com.google.common.collect.Maps;
//import com.google.protobuf.ByteString;
//
//public class RepoConfig {
// private static final Logger log = LoggerFactory.getLogger(RepoConfig.class);
// final Map<String, RepoUserConfig> users;
// final RepositoryData repositoryData;
//
// private RepoConfig(RepositoryData repositoryData, Map<String, RepoUserConfig> users) {
// this.repositoryData = repositoryData;
// this.users = users;
// }
//
// public static RepoConfig build(GitRepository repo, Repository repository) throws IOException {
// ObjectId commitId = repository.resolve("refs/heads/_config");
// Map<String, RepoUserConfig> users = Collections.emptyMap();
//
// if (commitId != null) {
//
// RevWalk revWalk = null;
// TreeWalk treeWalk = null;
//
// try {
// revWalk = new RevWalk(repository);
// RevCommit commit = revWalk.parseCommit(commitId);
// RevTree tree = commit.getTree();
//
// treeWalk = new TreeWalk(repository);
// treeWalk.addTree(tree);
//
// users = parseUsers(treeWalk);
//
// } finally {
// if (treeWalk != null) {
// treeWalk.getObjectReader().release();
// treeWalk.release();
// }
// if (revWalk != null) {
// revWalk.dispose();
// }
// }
// }
//
// return new RepoConfig(repo.getData(), users);
// }
//
// private static Map<String, RepoUserConfig> parseUsers(TreeWalk treeWalk) throws IOException {
// treeWalk.setRecursive(true);
// treeWalk.setFilter(PathFilter.create("users/"));
// ObjectReader objectReader = treeWalk.getObjectReader();
// Map<String, RepoUserConfig> users = Maps.newHashMap();
//
// while (treeWalk.next()) {
// String name = treeWalk.getNameString();
//
// log.debug("Found entry {}", treeWalk.getPathString());
//
// ObjectId objectId = treeWalk.getObjectId(0);
// ObjectLoader objectLoader = objectReader.open(objectId);
// try (InputStream is = objectLoader.openStream()) {
// try (InputStreamReader reader = new InputStreamReader(is, Charsets.UTF_8)) {
// users.put(name, RepoUserConfig.parse(name, reader));
// }
// }
// }
//
// return users;
// }
//
// public boolean canAccess(AuthenticatedUser authenticatedUser) {
// ByteString userId = authenticatedUser.getId();
// if (userId.equals(repositoryData.getOwner())) {
// return true;
// }
// RepoUserConfig repoUserConfig = users.get(userId);
// if (repoUserConfig != null) {
// return true;
// }
// return false;
// }
//}
|
[
"justin@fathomdb.com"
] |
justin@fathomdb.com
|
ef53769987ed19da39f17003269fe9f9625d1fa3
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/src/irvine/oeis/a039/A039604.java
|
fc3de54bc947c062f5c752d767c4d7fa1b9c60d5
|
[] |
no_license
|
flywind2/joeis
|
c5753169cf562939b04dd246f8a2958e97f74558
|
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
|
refs/heads/master
| 2020-09-13T18:34:35.080552
| 2019-11-19T05:40:55
| 2019-11-19T05:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 700
|
java
|
package irvine.oeis.a039;
// Generated by gen_seq4.pl basdig2 12 count1 != 0 && 1 2 at 2019-07-04 09:18
// DO NOT EDIT here!
import irvine.math.z.Z;
import irvine.oeis.RunsBaseSequence;
/**
* A039604 Numbers n such that representation in base 12 has same nonzero number of <code>1</code>'s and <code>2</code>'s.
* @author Georg Fischer
*/
public class A039604 extends RunsBaseSequence {
/** Construct the sequence. */
public A039604() {
super(1, -1);
}
@Override
protected boolean isOk() {
final int count1 = getDigitCount(mK, 12, 1);
return count1 != 0 && count1 == getDigitCount(mK, 12, 2);
}
@Override
public Z next() {
return getNextWithProperty();
}
}
|
[
"sean.irvine@realtimegenomics.com"
] |
sean.irvine@realtimegenomics.com
|
b4f7f7103a49abf75d371f9d371be94fc24ad118
|
6e812d745619e4f542f5fe0b31153d7a353ec31d
|
/src/com/Lbins/TvApp/data/GoodsDATA.java
|
4ae44f5947c7e8fb5b5d4667f1bbef572c3c77c2
|
[] |
no_license
|
eryiyi/TvApp
|
c1fed32a37665d2d68319032df18a031744a0b5a
|
ce17156b6f26288326c10fc04903bfa3aba630a7
|
refs/heads/master
| 2021-01-11T18:45:47.296433
| 2017-01-23T07:33:26
| 2017-01-23T07:33:26
| 79,620,103
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 437
|
java
|
package com.Lbins.TvApp.data;
import com.Lbins.TvApp.data.*;
import com.Lbins.TvApp.data.Data;
import com.Lbins.TvApp.module.PaopaoGoods;
import java.util.List;
/**
* Created by zhanghl on 2015/1/17.
*/
public class GoodsDATA extends Data {
private List<PaopaoGoods> data;
public List<PaopaoGoods> getData() {
return data;
}
public void setData(List<PaopaoGoods> data) {
this.data = data;
}
}
|
[
"826321978@qq.com"
] |
826321978@qq.com
|
1e21a2852df1ec4b62ef019f6e582d4af34c5eae
|
8d668c55c4bb10a260f9c6294002613192be13b0
|
/java/src/main/java/diningphilosophers/Fork.java
|
6cfc320136f990c161f2e58a4b26823847ab3a6d
|
[] |
no_license
|
garudareiga/DiningPhilosophers
|
ace2863befea9cda9175873e568e185a93647351
|
fdf4f41ab5bd71a7fc11fb0c7a2b25df6ec5cc0c
|
refs/heads/master
| 2016-09-06T08:49:21.318903
| 2014-10-13T06:52:38
| 2014-10-13T06:52:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 334
|
java
|
package diningphilosophers;
import java.util.concurrent.locks.*;
/**
* Created by raychen on 10/12/14.
*/
public class Fork {
static int instances = 0;
private int id;
ReentrantLock lock;
public Fork() {
id = instances++;
lock = new ReentrantLock();
}
public int getId() { return id; }
}
|
[
"garudareiga@gmail.com"
] |
garudareiga@gmail.com
|
55984cbfd95fdc466c5571720e4a680e7a93a913
|
473fc28d466ddbe9758ca49c7d4fb42e7d82586e
|
/app/src/main/java/com/syd/source/aosp/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/ForceEarlyReturn004Test.java
|
e660143adb71bc312fb4f0b668bf57b5962430d9
|
[
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] |
permissive
|
lz-purple/Source
|
a7788070623f2965a8caa3264778f48d17372bab
|
e2745b756317aac3c7a27a4c10bdfe0921a82a1c
|
refs/heads/master
| 2020-12-23T17:03:12.412572
| 2020-01-31T01:54:37
| 2020-01-31T01:54:37
| 237,205,127
| 4
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,353
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.harmony.jpda.tests.jdwp.ThreadReference;
import org.apache.harmony.jpda.tests.framework.jdwp.CommandPacket;
import org.apache.harmony.jpda.tests.framework.jdwp.JDWPCommands;
import org.apache.harmony.jpda.tests.framework.jdwp.ReplyPacket;
import org.apache.harmony.jpda.tests.framework.jdwp.Value;
import org.apache.harmony.jpda.tests.jdwp.share.JDWPSyncTestCase;
import org.apache.harmony.jpda.tests.share.JPDADebuggeeSynchronizer;
public class ForceEarlyReturn004Test extends JDWPSyncTestCase {
static final String thisCommandName = "ThreadReference.ForceEarlyReturn command ";
static final double EXPECTED_DOUBLE = 2.4;
@Override
protected String getDebuggeeClassName() {
return "org.apache.harmony.jpda.tests.jdwp.ThreadReference.ForceEarlyReturnDebuggee";
}
/**
* This testcase exercises ThreadReference.ForceEarlyReturn command. <BR>
* At first the test starts ForceEarlyReturnDebuggee and send it the thread
* name through which to start a specific thread. Then the test performs the
* ThreadReference.ForceEarlyReturn command for the tested thread and gets
* the returned value of the called method. The returned value should be
* equal to the value which is used in ForceEarlyReturn Command. In this
* testcase, an Double value is returned.
*/
public void testForceEarlyReturn_ReturnDouble() {
String thisTestName = "testForceEarlyReturn_ReturnDouble";
logWriter.println("==> " + thisTestName + " for " + thisCommandName
+ ": START...");
synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_READY);
// ForceEarlyReturn needs canForceEarlyReturn VM capability support
if (!debuggeeWrapper.vmMirror.canForceEarlyReturn()) {
logWriter.println("##WARNING: this VM dosn't possess capability:canForceEarlyReturn");
return;
}
// Tell debuggee to start a thread named THREAD_DOUBLE
synchronizer.sendMessage(ForceEarlyReturnDebuggee.THREAD_DOUBLE);
// Wait until the func_Double is processing.
synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_READY);
// Getting ID of the tested thread
logWriter.println("==> testedThreadName = "
+ ForceEarlyReturnDebuggee.THREAD_DOUBLE);
logWriter.println("==> Get testedThreadID...");
long testedThreadID = debuggeeWrapper.vmMirror
.getThreadID(ForceEarlyReturnDebuggee.THREAD_DOUBLE);
logWriter.println("==> Get testedThreadID is" + testedThreadID);
// Suspend the VM before perform command
logWriter.println("==> testedThreadID = " + testedThreadID);
logWriter.println("==> suspend testedThread...");
debuggeeWrapper.vmMirror.suspendThread(testedThreadID);
// Compose the ForceEarlyReturn command
CommandPacket forceEarlyReturnPacket = new CommandPacket(
JDWPCommands.ThreadReferenceCommandSet.CommandSetID,
JDWPCommands.ThreadReferenceCommandSet.ForceEarlyReturnCommand);
forceEarlyReturnPacket.setNextValueAsThreadID(testedThreadID);
forceEarlyReturnPacket.setNextValueAsValue(Value.createDouble(EXPECTED_DOUBLE));
// Perform the command
logWriter.println("==> Perform " + thisCommandName);
ReplyPacket forceEarlyReturnReply = debuggeeWrapper.vmMirror
.performCommand(forceEarlyReturnPacket);
forceEarlyReturnPacket = null;
checkReplyPacket(forceEarlyReturnReply,
"ThreadReference::ForceEarlyReturn command");
// Resume the thread
logWriter.println("==> testedThreadID = " + testedThreadID);
logWriter.println("==> resume testedThread...");
debuggeeWrapper.vmMirror.resumeThread(testedThreadID);
String actualValue = synchronizer.receiveMessage();
// Check the early returned value
if (!actualValue.equals(new Double(EXPECTED_DOUBLE).toString())) {
printErrorAndFail(thisCommandName
+ "returned value is not set by ForceEarlyReturn command"
+ " expected:<" + EXPECTED_DOUBLE + "> but was:<"
+ actualValue + ">");
}
logWriter
.println("==> CHECK: PASSED: returned value does set by ForceEarlyReturn command.");
logWriter.println("==> Returned value: " + actualValue);
synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_CONTINUE);
}
}
|
[
"997530783@qq.com"
] |
997530783@qq.com
|
a8e3b979f0ab2ce1ed22308645c94314295ee589
|
6451c77ce976b7b927b6345e9dd4c586fd15b317
|
/HibernateExample/src/main/java/com/learn/interceptors/MyInterceptor.java
|
0aaf378a0d488875c5c750f82d88e065413e0933
|
[] |
no_license
|
dixit-anup/maventotalproject
|
eefae3fbc1de085b3057edd87dcb3605f7e8750b
|
2c0f5581d32dd1aa265e455a9447ab7d160cf5f1
|
refs/heads/master
| 2021-01-16T21:57:39.423961
| 2014-08-21T14:58:18
| 2014-08-21T14:58:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,947
|
java
|
package com.learn.interceptors;
import java.io.Serializable;
import java.util.Iterator;
import org.hibernate.EmptyInterceptor;
import org.hibernate.type.Type;
public class MyInterceptor extends EmptyInterceptor {
private static final long serialVersionUID = 1L;
public void onDelete(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
Type[] types) {
// log delete events
System.out.println("Delete event");
}
// called when a Student gets updated.
public boolean onFlushDirty(Object entity,
Serializable id,
Object[] currentState,
Object[] previousState,
String[] propertyNames,
Type[] types) {
if ( entity instanceof Library ) {
System.out.println("Library Update Operation");
return true;
}
return false;
}
// called on load events
public boolean onLoad(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
Type[] types) {
// log loading events
System.out.println("Load Operation");
return true;
}
public boolean onSave(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
Type[] types) {
if ( entity instanceof Library ) {
System.out.println("Library Create Operation");
return true;
}
return false;
}
//called before commit into database
public void preFlush(Iterator iterator) {
System.out.println("Before commiting");
}
//called after committed into database
public void postFlush(Iterator iterator) {
System.out.println("After commiting");
}
}
|
[
"dmitry.bilyk@gmail.com"
] |
dmitry.bilyk@gmail.com
|
a2dfb346a47e918934a71b9ae52c016f92fd8eb8
|
8be69ef62e760cef1dc67020b4e4a7d03bb2ddd5
|
/src/main/java/org/cyclops/evilcraft/tileentity/tickaction/purifier/ToolBadEnchantPurifyAction.java
|
1eefe8d3b67cdd27f8cd5c237fbf5930e42ac27d
|
[
"CC-BY-4.0"
] |
permissive
|
raspopov/EvilCraft
|
8b5974f5c6a994568930babef282fdc599c9bcfb
|
02e17289631c1a67c765f8acc83af78520654658
|
refs/heads/master-1.10
| 2021-01-23T04:53:40.766553
| 2017-03-24T08:24:36
| 2017-03-24T08:24:36
| 86,251,466
| 0
| 0
| null | 2017-03-26T17:32:07
| 2017-03-26T17:32:07
| null |
UTF-8
|
Java
| false
| false
| 2,589
|
java
|
package org.cyclops.evilcraft.tileentity.tickaction.purifier;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import org.cyclops.cyclopscore.config.configurable.ConfigurableEnchantment;
import org.cyclops.cyclopscore.helper.EnchantmentHelpers;
import org.cyclops.evilcraft.api.tileentity.purifier.IPurifierAction;
import org.cyclops.evilcraft.tileentity.TilePurifier;
import org.cyclops.evilcraft.tileentity.tickaction.bloodchest.DamageableItemRepairAction;
/**
* Purifier action to remove enchantments from tools.
* @author Ruben Taelman
*/
public class ToolBadEnchantPurifyAction implements IPurifierAction {
private static final int PURIFY_DURATION = 60;
@Override
public boolean isItemValidForMainSlot(ItemStack itemStack) {
return false;
}
@Override
public boolean isItemValidForAdditionalSlot(ItemStack itemStack) {
return false;
}
@Override
public boolean canWork(TilePurifier tile) {
if(tile.getPurifyItem() != null && tile.getBucketsFloored() > 0) {
for(ConfigurableEnchantment enchant : DamageableItemRepairAction.BAD_ENCHANTS) {
int enchantmentListID = EnchantmentHelpers.doesEnchantApply(tile.getPurifyItem(), enchant);
if (enchantmentListID >= 0) {
return true;
}
}
}
return false;
}
@Override
public boolean work(TilePurifier tile) {
boolean done = false;
ItemStack purifyItem = tile.getPurifyItem();
World world = tile.getWorld();
int tick = tile.getTick();
// Try removing bad enchants.
for(ConfigurableEnchantment enchant : DamageableItemRepairAction.BAD_ENCHANTS) {
if(!done) {
int enchantmentListID = EnchantmentHelpers.doesEnchantApply(purifyItem, enchant);
if(enchantmentListID > -1) {
if(tick >= PURIFY_DURATION) {
if(!world.isRemote) {
int level = EnchantmentHelpers.getEnchantmentLevel(purifyItem, enchantmentListID);
EnchantmentHelpers.setEnchantmentLevel(purifyItem, enchantmentListID, level - 1);
}
tile.setBuckets(tile.getBucketsFloored() - 1, tile.getBucketsRest());
done = true;
}
if(world.isRemote) {
tile.showEffect();
}
}
}
}
return done;
}
}
|
[
"rubensworks@gmail.com"
] |
rubensworks@gmail.com
|
0098f1f0e05ac2ce42e4011995c718a37b4a250d
|
9f6f5a3da111cec6bc9de768472b0912639e2ef3
|
/app/src/main/java/com/team/zhuoke/ui/refreshview/callback/IFooterCallBack.java
|
2112afbcb0901ba560aab1e08dbd0135b1109f5e
|
[] |
no_license
|
DaYinTeamCode/DouYu
|
085481819cce8664f77d7d56fcf5751793ddff4b
|
9bfd0b5a24777ff9e1803798f6671ad4c5e4a32d
|
refs/heads/master
| 2023-01-11T14:41:54.850167
| 2020-11-14T05:16:04
| 2020-11-14T05:16:04
| 247,657,958
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,411
|
java
|
package com.team.zhuoke.ui.refreshview.callback;
import com.team.zhuoke.ui.refreshview.XRefreshView;
public interface IFooterCallBack {
/**
* 当不是到达底部自动加载更多的时候,需要自己写点击事件
*
* @param xRefreshView
*/
void callWhenNotAutoLoadMore(XRefreshView xRefreshView);
/**
* 正常状态,例如需要点击footerview才能加载更多,主要是到达底部不自动加载更多时会被调用
*/
void onStateReady();
/**
* 正在刷新
*/
void onStateRefreshing();
/**
* 当footerview被上拉时,松开手指即可加载更多
*/
void onReleaseToLoadMore();
/**
* 刷新结束 在此方法中不要调用show()方法
*
* @param hidefooter footerview是否被隐藏,hideFooter参数由XRefreshView.stopLoadMore(boolean)传入
*/
void onStateFinish(boolean hidefooter);
/**
* 已无更多数据 在此方法中不要调用show()方法
*/
void onStateComplete();
/**
* 设置显示或者隐藏footerview 不要在onStateFinish和onStateComplete中调用此方法
*
* @param show
*/
void show(boolean show);
/**
* footerview是否显示中
*
* @return
*/
boolean isShowing();
/**
* 获得footerview的高度
*
* @return
*/
int getFooterHeight();
}
|
[
"gaoyin_vip@126.com"
] |
gaoyin_vip@126.com
|
555a42d967dd14d93b24107535845b04e1e22f72
|
9d1870a895c63f540937f04a6285dd25ada5e52a
|
/chromecast-app-reverse-engineering/src/from-androguard-dad-broken-but-might-help/crx.java
|
bff2c7bbd714e928a52843e4e73b83eec0330638
|
[] |
no_license
|
Churritosjesus/Chromecast-Reverse-Engineering
|
572aa97eb1fd65380ca0549b4166393505328ed4
|
29fae511060a820f2500a4e6e038dfdb591f4402
|
refs/heads/master
| 2023-06-04T10:27:15.869608
| 2015-10-27T10:43:11
| 2015-10-27T10:43:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 719
|
java
|
public crx(com.google.android.gms.common.data.DataHolder p1, int p2)
{
this(p1, p2);
return;
}
public final String a()
{
return this.a("account_name");
}
public final String b()
{
String v0_1 = this.a("display_name");
if (android.text.TextUtils.isEmpty(v0_1)) {
v0_1 = this.a("account_name");
}
return v0_1;
}
public final String c()
{
return crz.a.a(this.a("avatar"));
}
public final String d()
{
return this.a("page_gaia_id");
}
public final String e()
{
return crz.a.a(this.a("cover_photo_url"));
}
|
[
"v.richomme@gmail.com"
] |
v.richomme@gmail.com
|
e3c79f9c86fbe73c4910c89fb0518767e73769bf
|
cb762d4b0f0ea986d339759ba23327a5b6b67f64
|
/src/web/com/joymain/jecs/am/webapp/action/InwDepartmentController.java
|
c621c141547d7e924241b0f507d87f6475a03367
|
[
"Apache-2.0"
] |
permissive
|
lshowbiz/agnt_ht
|
c7d68c72a1d5fa7cd0e424eabb9159d3552fe9dc
|
fd549de35cb12a2e3db1cd9750caf9ce6e93e057
|
refs/heads/master
| 2020-08-04T14:24:26.570794
| 2019-10-02T03:04:13
| 2019-10-02T03:04:13
| 212,160,437
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,999
|
java
|
package com.joymain.jecs.am.webapp.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.joymain.jecs.util.data.CommonRecord;
import com.joymain.jecs.util.data.Pager;
import com.joymain.jecs.util.string.StringUtil;
import com.joymain.jecs.util.web.RequestUtil;
import com.joymain.jecs.Constants;
import com.joymain.jecs.am.service.InwDepartmentManager;
import com.joymain.jecs.webapp.action.BaseController;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
public class InwDepartmentController extends BaseController implements Controller {
private final Log log = LogFactory.getLog(InwDepartmentController.class);
private InwDepartmentManager inwDepartmentManager = null;
public void setInwDepartmentManager(InwDepartmentManager inwDepartmentManager) {
this.inwDepartmentManager = inwDepartmentManager;
}
public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response)
throws Exception {
if (log.isDebugEnabled()) {
log.debug("entering 'handleRequest' method...");
}
String strAction = request.getParameter("strAction");
String departDeleteQuery = request.getParameter("departDeleteQuery");
//部门删除(查询)的标志strAction=deleteInwQueryDepartment
if("deleteInwQueryDepartment".equals(strAction)||"departDeleteQuery".equals(departDeleteQuery)){
request.setAttribute("departDeleteQuery","departDeleteQuery");
request.setAttribute("strAction", "deleteInwQueryDepartment");
}
CommonRecord crm=RequestUtil.toCommonRecord(request);
//在录入或编辑时查询上级部门时用到的---开始
String departCategory = request.getParameter("departCategory");
if(!StringUtil.isEmpty(departCategory)){
crm.setValue("departCategory", departCategory);
//部门的录入或编辑页面输入上级部门时查询用到
request.setAttribute("strAction", "queryHigerDepart");
request.setAttribute("departCategory", departCategory);
}
//在权限录入或编辑的时候管理查询的
if("selectInwDepartByInwDC".equals(strAction)){
request.setAttribute("strAction", strAction);
}
//在录入或编辑时查询上级部门时用到的---结束
Pager pager = new Pager("inwDepartmentListTable",request, 20);
List inwDepartments = inwDepartmentManager.getInwDepartmentsByCrm(crm,pager);
request.setAttribute("inwDepartmentListTable_totalRows", pager.getTotalObjects());
return new ModelAndView("am/inwDepartmentList", Constants.INWDEPARTMENT_LIST, inwDepartments);
}
}
|
[
"727736571@qq.com"
] |
727736571@qq.com
|
9509f5fe84ef4456f4d5b96bd2e7848fb4de016b
|
a34bd178145c67c8b3ff8e58d65c76cb387b8a9e
|
/src/main/java/com/fixit/core/data/Address.java
|
eecdf0726438324176e5c59dc73a4449a9af5339
|
[] |
no_license
|
kostyantin2216/fix-it-core
|
e43472bd934f071724f75114603eef5e687e6be1
|
5c73e0e3d00dca0e7535a5578f2b0964efc19f35
|
refs/heads/master
| 2021-09-05T05:14:57.049297
| 2018-01-24T09:46:41
| 2018-01-24T09:46:41
| 87,972,542
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,105
|
java
|
/**
*
*/
package com.fixit.core.data;
/**
* @author Kostyantin
* @createdAt 2017/11/10 21:40:39 GMT+2
*/
public class Address {
private String featureName;
private String adminArea;
private String subAdminArea;
private String locality;
private String subLocality;
private String thoroughfare;
private String subThoroughfare;
private String premises;
private String postalCode;
private String countryCode;
private String countryName;
private String addressLine;
private double latitude;
private double longitude;
public String getFeatureName() {
return featureName;
}
public void setFeatureName(String featureName) {
this.featureName = featureName;
}
public String getAdminArea() {
return adminArea;
}
public void setAdminArea(String adminArea) {
this.adminArea = adminArea;
}
public String getSubAdminArea() {
return subAdminArea;
}
public void setSubAdminArea(String subAdminArea) {
this.subAdminArea = subAdminArea;
}
public String getLocality() {
return locality;
}
public void setLocality(String locality) {
this.locality = locality;
}
public String getSubLocality() {
return subLocality;
}
public void setSubLocality(String subLocality) {
this.subLocality = subLocality;
}
public String getThoroughfare() {
return thoroughfare;
}
public void setThoroughfare(String thoroughfare) {
this.thoroughfare = thoroughfare;
}
public String getSubThoroughfare() {
return subThoroughfare;
}
public void setSubThoroughfare(String subThoroughfare) {
this.subThoroughfare = subThoroughfare;
}
public String getPremises() {
return premises;
}
public void setPremises(String premises) {
this.premises = premises;
}
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
public String getCountryCode() {
return countryCode;
}
public void setCountryCode(String countryCode) {
this.countryCode = countryCode;
}
public String getCountryName() {
return countryName;
}
public void setCountryName(String countryName) {
this.countryName = countryName;
}
public String getAddressLine() {
return addressLine;
}
public void setAddressLine(String addressLine) {
this.addressLine = addressLine;
}
public double getLatitude() {
return latitude;
}
public void setLatitude(double latitude) {
this.latitude = latitude;
}
public double getLongitude() {
return longitude;
}
public void setLongitude(double longitude) {
this.longitude = longitude;
}
@Override
public String toString() {
return "Address [featureName=" + featureName + ", adminArea=" + adminArea + ", subAdminArea=" + subAdminArea
+ ", locality=" + locality + ", subLocality=" + subLocality + ", thoroughfare=" + thoroughfare
+ ", subThoroughfare=" + subThoroughfare + ", premises=" + premises + ", postalCode=" + postalCode
+ ", countryCode=" + countryCode + ", countryName=" + countryName + ", addressLine=" + addressLine
+ ", latitude=" + latitude + ", longitude=" + longitude + "]";
}
}
|
[
"kostyantin2216@hotmail.com"
] |
kostyantin2216@hotmail.com
|
b837b7705bcd88b54435b576009ea0c53919d0c0
|
fff8d45864fdca7f43e6d65acbe4c1f469531877
|
/erp_desktop_all/src_nomina/com/bydan/erp/nomina/presentation/web/jsf/sessionbean/BarrioSessionBeanAdditional.java
|
e0033f5dfd71b74599cf8cffdca3806e3191a449
|
[
"Apache-2.0"
] |
permissive
|
jarocho105/pre2
|
26b04cc91ff1dd645a6ac83966a74768f040f418
|
f032fc63741b6deecdfee490e23dfa9ef1f42b4f
|
refs/heads/master
| 2020-09-27T16:16:52.921372
| 2016-09-01T04:34:56
| 2016-09-01T04:34:56
| 67,095,806
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 875
|
java
|
/*
*ADVERTENCIA : Este programa esta protegido por la ley de derechos de autor.
*La reproducci?n o distribuci?n il?cita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y ser?n objeto de todas las sanciones legales que correspondan.
*/
package com.bydan.erp.nomina.presentation.web.jsf.sessionbean;
import java.util.List;
import java.util.ArrayList;
import java.util.Set;
import java.util.HashSet;
import java.util.ArrayList;
import java.io.Serializable;
import java.util.Date;
import com.bydan.framework.erp.business.entity.DatoGeneral;
import com.bydan.framework.erp.business.entity.GeneralEntitySessionBean;
@SuppressWarnings("unused")
public class BarrioSessionBeanAdditional extends GeneralEntitySessionBean {
public BarrioSessionBeanAdditional () {
}
}
|
[
"byrondanilo10@hotmail.com"
] |
byrondanilo10@hotmail.com
|
ce0eba16eb870f1663becaf1673d1c1560481fc5
|
737253197104a69ec973836c2b5b5d6dd811270f
|
/app/src/main/java/com/zys/jym/lanhu/bean/MsgCenterData.java
|
dcda731de028e432e98ba87cab5c94bb96c7b6e3
|
[] |
no_license
|
bailyzheng/lanhu1
|
12484164dd81535ee6b8656e3cbf692b9133fd5b
|
af35117804956ae7517abeb97238a61794f74381
|
refs/heads/master
| 2020-12-03T00:00:14.649537
| 2017-06-30T10:13:35
| 2017-06-30T10:13:35
| 95,970,978
| 0
| 0
| null | 2017-07-01T15:04:16
| 2017-07-01T15:04:16
| null |
UTF-8
|
Java
| false
| false
| 900
|
java
|
package com.zys.jym.lanhu.bean;
import java.io.Serializable;
/**
* Created by Administrator on 2017/1/2.
*/
public class MsgCenterData implements Serializable{
private int errcode;
private String errmsg;
private MsgListData data;
public int getErrcode() {
return errcode;
}
public void setErrcode(int errcode) {
this.errcode = errcode;
}
public String getErrmsg() {
return errmsg;
}
public void setErrmsg(String errmsg) {
this.errmsg = errmsg;
}
public MsgListData getData() {
return data;
}
public void setData(MsgListData data) {
this.data = data;
}
@Override
public String toString() {
return "MsgCenterData{" +
"errcode=" + errcode +
", errmsg='" + errmsg + '\'' +
", data=" + data +
'}';
}
}
|
[
"867814102@qq.com"
] |
867814102@qq.com
|
257915f8e9481cd293326453abb1b5fb7c32058e
|
9cd45a02087dac52ea4d39a0c17e525c11a8ed97
|
/src/java/com/adincube/sdk/g/b/b/b.java
|
875f24454ad0c3f7dd5f7f55b99e9ef3099062cb
|
[] |
no_license
|
abhijeetvaidya24/INFO-NDVaidya
|
fffb90b8cb4478399753e3c13c4813e7e67aea19
|
64d69250163e2d8d165e8541aec75b818c2d21c5
|
refs/heads/master
| 2022-11-29T16:03:21.503079
| 2020-08-12T06:00:59
| 2020-08-12T06:00:59
| 286,928,296
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,186
|
java
|
/*
* Decompiled with CFR 0.0.
*
* Could not load the following classes:
* com.adincube.sdk.AdinCubeInterstitialEventListener
* com.adincube.sdk.g.b.d
* java.lang.Class
* java.lang.Object
* java.lang.String
* java.lang.StringBuilder
* java.util.HashSet
* java.util.Set
*/
package com.adincube.sdk.g.b.b;
import com.adincube.sdk.AdinCubeInterstitialEventListener;
import com.adincube.sdk.d.a.c;
import com.adincube.sdk.g.b.d;
import com.adincube.sdk.util.c.a;
import com.adincube.sdk.util.o;
import java.util.HashSet;
import java.util.Set;
public class b
implements d {
private static b c;
public AdinCubeInterstitialEventListener a = null;
public Set<AdinCubeInterstitialEventListener> b = new HashSet();
/*
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
public static b b() {
if (c != null) return c;
Class<b> class_ = b.class;
synchronized (b.class) {
if (c != null) return c;
c = new b();
// ** MonitorExit[var1] (shouldn't be in output)
return c;
}
}
public final void a(final c c2) {
new StringBuilder("onError - ").append(c2.a);
o.a("InterstitialEventListenerManager.onInterstitialError", this.b, new a<AdinCubeInterstitialEventListener>(){
@Override
public final /* synthetic */ void a(Object object) {
((AdinCubeInterstitialEventListener)object).onError(c2.a);
}
});
o.b(this.a, new a<AdinCubeInterstitialEventListener>(){
@Override
public final /* synthetic */ void a(Object object) {
((AdinCubeInterstitialEventListener)object).onError(c2.a);
}
});
}
public final void a(boolean bl) {
o.a("InterstitialEventListenerManager.onAdCached", this.b, new a<AdinCubeInterstitialEventListener>(){
@Override
public final /* synthetic */ void a(Object object) {
((AdinCubeInterstitialEventListener)object).onAdCached();
}
});
o.b(this.a, new a<AdinCubeInterstitialEventListener>(){
@Override
public final /* synthetic */ void a(Object object) {
((AdinCubeInterstitialEventListener)object).onAdCached();
}
});
}
public final void a(boolean bl, c c2) {
c2.a();
}
public final void b(boolean bl, c c2) {
new Object[1][0] = c2.a;
}
public final void c() {
o.a("InterstitialEventListenerManager.onInterstitialAdHidden", this.b, new a<AdinCubeInterstitialEventListener>(){
@Override
public final /* synthetic */ void a(Object object) {
((AdinCubeInterstitialEventListener)object).onAdHidden();
}
});
o.b(this.a, new a<AdinCubeInterstitialEventListener>(){
@Override
public final /* synthetic */ void a(Object object) {
((AdinCubeInterstitialEventListener)object).onAdHidden();
}
});
}
}
|
[
"abhijeetvaidya24@gmail.com"
] |
abhijeetvaidya24@gmail.com
|
a7e4d948c891c865c0300112c213a215f197ba4f
|
c770c49e2a91260abad58fd451d9524b790d7b20
|
/sentinel-agent/sentinel-agent-client/src/main/java/com/alibaba/acm/shaded/com/aliyuncs/transform/UnmarshallerContext.java
|
a82dbe50f9f0420fc95fc6b88c71456ca42ef31d
|
[
"Apache-2.0"
] |
permissive
|
ddreaml/Sentinel-ali
|
d45e941e537d26628151f9c87dccdca16ef329a7
|
33721158794f9a713057abccbb4f4b89dfaaa644
|
refs/heads/master
| 2023-04-24T13:20:07.505656
| 2019-10-21T11:24:43
| 2019-10-21T11:24:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,491
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.alibaba.acm.shaded.com.aliyuncs.transform;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.alibaba.acm.shaded.com.aliyuncs.http.HttpResponse;
import com.alibaba.acm.shaded.com.aliyuncs.utils.FlattenMapUtil;
public class UnmarshallerContext {
private int httpStatus;
private Map<String, String> responseMap;
private HttpResponse httpResponse;
public Integer integerValue(String key) {
String value = responseMap.get(key);
if (null == value || 0 == value.length()) {
return null;
}
return Integer.valueOf(value);
}
public String stringValue(String key) {
return responseMap.get(key);
}
public Long longValue(String key) {
String value = responseMap.get(key);
if (null == value || 0 == value.length()) {
return null;
}
return Long.valueOf(responseMap.get(key));
}
public Boolean booleanValue(String key) {
String value = responseMap.get(key);
if (null == value || 0 == value.length()) {
return null;
}
return Boolean.valueOf(responseMap.get(key));
}
public Float floatValue(String key) {
String value = responseMap.get(key);
if (null == value || 0 == value.length()) {
return null;
}
return Float.valueOf(responseMap.get(key));
}
public Double doubleValue(String key) {
String value = responseMap.get(key);
if (null == value || 0 == value.length()) {
return null;
}
return Double.valueOf(responseMap.get(key));
}
public int lengthValue(String key) {
String value = responseMap.get(key);
if (null == value || 0 == value.length()) {
return 0;
}
return Integer.valueOf(responseMap.get(key));
}
public List<Map<Object, Object>> listMapValue(String key) {
return FlattenMapUtil.toListMap(responseMap, key);
}
public Map<Object, Object> mapValue(String key) {
return FlattenMapUtil.toMap(responseMap, key);
}
public int getHttpStatus() {
return httpStatus;
}
public void setHttpStatus(int httpStatus) {
this.httpStatus = httpStatus;
}
public Map<String, String> getResponseMap() {
return responseMap;
}
public void setResponseMap(Map<String, String> responseMap) {
this.responseMap = responseMap;
}
public HttpResponse getHttpResponse() {
return httpResponse;
}
public void setHttpResponse(HttpResponse httpResponse) {
this.httpResponse = httpResponse;
}
}
|
[
"418294249@qq.com"
] |
418294249@qq.com
|
a750d49b24b031118957d771d0489f0e17d19eb9
|
b97bc0706448623a59a7f11d07e4a151173b7378
|
/src/main/java/com/tcmis/client/common/factory/AreaBeanFactory.java
|
e47967a5ec054fbb0a800fd22786d2dc2aa6e0c3
|
[] |
no_license
|
zafrul-ust/tcmISDev
|
576a93e2cbb35a8ffd275fdbdd73c1f9161040b5
|
71418732e5465bb52a0079c7e7e7cec423a1d3ed
|
refs/heads/master
| 2022-12-21T15:46:19.801950
| 2020-02-07T21:22:50
| 2020-02-07T21:22:50
| 241,601,201
| 0
| 0
| null | 2022-12-13T19:29:34
| 2020-02-19T11:08:43
|
Java
|
UTF-8
|
Java
| false
| false
| 6,378
|
java
|
package com.tcmis.client.common.factory;
import java.sql.Connection;
import java.util.Collection;
import java.util.Iterator;
import java.util.Vector;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.tcmis.client.common.beans.AreaBean;
import com.tcmis.common.db.DbManager;
import com.tcmis.common.db.SqlManager;
import com.tcmis.common.exceptions.BaseException;
import com.tcmis.common.framework.BaseBeanFactory;
import com.tcmis.common.util.DataSet;
import com.tcmis.common.util.DataSetRow;
import com.tcmis.common.util.SearchCriteria;
import com.tcmis.common.util.SearchCriterion;
import com.tcmis.common.util.SortCriteria;
import com.tcmis.common.util.SqlHandler;
/******************************************************************************
* CLASSNAME: AreaBeanFactory <br>
* @version: 1.0, Jan 11, 2011 <br>
*****************************************************************************/
public class AreaBeanFactory extends BaseBeanFactory {
Log log = LogFactory.getLog(getClass());
//column names
public String ATTRIBUTE_COMPANY_ID = "COMPANY_ID";
public String ATTRIBUTE_FACILITY_ID = "FACILITY_ID";
public String ATTRIBUTE_AREA_ID = "AREA_ID";
public String ATTRIBUTE_AREA_NAME = "AREA_NAME";
public String ATTRIBUTE_AREA_DESCRIPTION = "AREA_DESCRIPTION";
public String ATTRIBUTE_ORGANIZATION = "ORGANIZATION";
//table name
public String TABLE = "AREA";
//constructor
public AreaBeanFactory(DbManager dbManager) {
super(dbManager);
}
//get column names
@Override
public String getColumnName(String attributeName) {
if(attributeName.equals("companyId")) {
return ATTRIBUTE_COMPANY_ID;
}
else if(attributeName.equals("facilityId")) {
return ATTRIBUTE_FACILITY_ID;
}
else if(attributeName.equals("areaId")) {
return ATTRIBUTE_AREA_ID;
}
else if(attributeName.equals("areaName")) {
return ATTRIBUTE_AREA_NAME;
}
else if(attributeName.equals("areaDescription")) {
return ATTRIBUTE_AREA_DESCRIPTION;
}
else if(attributeName.equals("orginization")) {
return ATTRIBUTE_ORGANIZATION;
}
else {
return super.getColumnName(attributeName);
}
}
//get column types
@Override
public int getType(String attributeName) {
return super.getType(attributeName, AreaBean.class);
}
public SearchCriteria getKeyCriteria(AreaBean AreaBean) {
SearchCriteria criteria = new SearchCriteria();
criteria.addCriterion("companyId", SearchCriterion.EQUALS, "" + AreaBean.getCompanyId());
criteria.addCriterion("facilityId", SearchCriterion.EQUALS, "" + AreaBean.getFacilityId());
criteria.addCriterion("areaId", SearchCriterion.EQUALS, "" + AreaBean.getAreaId());
return criteria;
}
//delete
public int delete(AreaBean AreaBean)
throws BaseException {
Connection connection = null;
try {
connection = getDbManager().getConnection();
return this.delete(AreaBean, connection);
}
finally {
getDbManager().returnConnection(connection);
}
}
public int delete(AreaBean AreaBean, Connection conn)
throws BaseException {
return delete(getKeyCriteria(AreaBean), conn);
}
public int delete(SearchCriteria criteria)
throws BaseException {
Connection connection = null;
try {
connection = getDbManager().getConnection();
return delete(criteria, connection);
}
finally {
getDbManager().returnConnection(connection);
}
}
public int delete(SearchCriteria criteria, Connection conn)
throws BaseException {
String sqlQuery = " delete from " + TABLE + " " +
getWhereClause(criteria);
return new SqlManager().update(conn, sqlQuery);
}
//insert
public int insert(AreaBean AreaBean)
throws BaseException {
Connection connection = null;
try {
connection = getDbManager().getConnection();
return insert(AreaBean, connection);
}
finally {
getDbManager().returnConnection(connection);
}
}
public int insert(AreaBean AreaBean, Connection conn)
throws BaseException {
SqlManager sqlManager = new SqlManager();
String query = "insert into " + TABLE + " (";
query += ATTRIBUTE_COMPANY_ID + ",";
query += ATTRIBUTE_FACILITY_ID = "FACILITY_ID" + ",";
query += ATTRIBUTE_AREA_ID + ",";
query += ATTRIBUTE_AREA_DESCRIPTION + ",";
query += ATTRIBUTE_AREA_NAME + ")";
query += " values (";
query += SqlHandler.delimitString(AreaBean.getCompanyId()) + ",";
query += SqlHandler.delimitString(AreaBean.getFacilityId()) + ",";
query += SqlHandler.delimitString(AreaBean.getAreaId()) + ",";
query += SqlHandler.delimitString(AreaBean.getAreaDescription()) + ",";
query += SqlHandler.delimitString(AreaBean.getAreaName());
query += ")";
return sqlManager.update(conn, query);
}
//update
public int update(AreaBean AreaBean)
throws BaseException {
Connection connection = null;
try {
connection = getDbManager().getConnection();
return update(AreaBean, connection);
}
finally {
getDbManager().returnConnection(connection);
}
}
public int update(AreaBean AreaBean, Connection conn)
throws BaseException {
String query = "update " + TABLE + " set ";
query += ATTRIBUTE_AREA_NAME + "=" + SqlHandler.delimitString(AreaBean.getAreaName()) + ",";
query += ATTRIBUTE_AREA_DESCRIPTION + "=" + SqlHandler.delimitString(AreaBean.getAreaDescription()) + " ";
query += getWhereClause(getKeyCriteria(AreaBean));
return new SqlManager().update(conn, query);
}
//select
public Collection<AreaBean> select(SearchCriteria criteria, SortCriteria sortCriteria)
throws BaseException {
Connection connection = null;
try {
connection = getDbManager().getConnection();
return select(criteria, sortCriteria, connection);
}
finally {
getDbManager().returnConnection(connection);
}
}
public Collection<AreaBean> select(SearchCriteria criteria, SortCriteria sortCriteria, Connection conn)
throws BaseException {
Collection<AreaBean> AreaBeanColl = new Vector<AreaBean>();
String query = "select * from " + TABLE + " " +
getWhereClause(criteria) + getOrderByClause(sortCriteria);
DataSet dataSet = new SqlManager().select(conn, query);
Iterator dataIter = dataSet.iterator();
while (dataIter.hasNext()) {
DataSetRow dataSetRow = (DataSetRow)dataIter.next();
AreaBean AreaBean = new AreaBean();
load(dataSetRow, AreaBean);
AreaBeanColl.add(AreaBean);
}
return AreaBeanColl;
}
}
|
[
"julio.rivero@wescoair.com"
] |
julio.rivero@wescoair.com
|
ef3ac1fb417038ee59bcf33c78fde331ab7887cf
|
ffeaf567e9b1aadb4c00d95cd3df4e6484f36dcd
|
/Hotgram/com/mohamadamin/persianmaterialdatetimepicker/date/a.java
|
90bd10c7004c654c8ec54ec92b96b5950311653e
|
[] |
no_license
|
danielperez9430/Third-party-Telegram-Apps-Spy
|
dfe541290c8512ca366e401aedf5cc5bfcaa6c3e
|
f6fc0f9c677bd5d5cd3585790b033094c2f0226d
|
refs/heads/master
| 2020-04-11T23:26:06.025903
| 2018-12-18T10:07:20
| 2018-12-18T10:07:20
| 162,166,647
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 475
|
java
|
package com.mohamadamin.persianmaterialdatetimepicker.date;
import com.mohamadamin.persianmaterialdatetimepicker.a.b;
public interface a {
com.mohamadamin.persianmaterialdatetimepicker.date.d$a a();
void a(int arg1);
void a(int arg1, int arg2, int arg3);
void a(com.mohamadamin.persianmaterialdatetimepicker.date.b$a arg1);
boolean b();
b[] c();
b[] d();
int e();
int f();
int g();
b h();
b i();
void j();
}
|
[
"dpefe@hotmail.es"
] |
dpefe@hotmail.es
|
2c9e1aab7640fd82dd0c849d03c9eebe7bee3a5c
|
d0ccbff285888a66360a4826ffd6e65942e60869
|
/src/main/java/org/jaudiotagger/audio/SupportedFileFormat.java
|
6bff058e4858800d0c45805cf0d8a3943c348432
|
[
"Apache-2.0"
] |
permissive
|
kategray/openaudible
|
bbbf8b581758231767f8ea375c98f1a7fe7f18eb
|
3776ed5071d5b5a5aef49fb77a91139f8599e128
|
refs/heads/master
| 2020-03-21T19:34:16.395388
| 2018-06-28T01:13:42
| 2018-06-28T01:13:42
| 138,957,191
| 0
| 1
|
Apache-2.0
| 2018-06-28T02:40:35
| 2018-06-28T02:40:35
| null |
UTF-8
|
Java
| false
| false
| 745
|
java
|
package org.jaudiotagger.audio;
/**
* Files formats currently supported by Library.
* Each enum value is associated with a file suffix (extension).
*/
public enum SupportedFileFormat {
OGG("ogg"),
MP3("mp3"),
FLAC("flac"),
MP4("mp4"),
M4A("m4a"),
M4P("m4p"),
WMA("wma"),
WAV("wav"),
RA("ra"),
RM("rm"),
M4B("m4b"),
AIF("aif");
private String filesuffix;
/**
* Constructor for internal use by this enum.
*/
SupportedFileFormat(String filesuffix) {
this.filesuffix = filesuffix;
}
/**
* Returns the file suffix (lower case without initial .) associated with the format.
*/
public String getFilesuffix() {
return filesuffix;
}
}
|
[
"racer@torguard.tg"
] |
racer@torguard.tg
|
44567fbd256a9f80d6529a42c5e774ebbf566afd
|
16bfe4d91fa6d8c7cd1dce4db0d409e9c3ddc2af
|
/raj/mathamatical/OptimalDivision.java
|
99b5e1a590224fddf854607f3b73168c213dbb9b
|
[] |
no_license
|
passionatecoderraj/dsa
|
84eb03b524efeb81012c91491fc3dce9aa65aa7a
|
b8a9654fed1183e464915fb4b8481ae10fe266d6
|
refs/heads/master
| 2020-05-21T12:24:38.812925
| 2020-01-21T04:29:58
| 2020-01-21T04:29:58
| 48,559,484
| 8
| 6
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,362
|
java
|
/**
*
*/
package com.raj.mathamatical;
/**
* @author Raj
*
* Given a list of positive integers, the adjacent integers will perform
* the float division. For example, [2,3,4] -> 2 / 3 / 4.
*
* However, you can add any number of parenthesis at any position to
* change the priority of operations. You should find out how to add
* parenthesis to get the maximum result, and return the corresponding
* expression in string format. Your expression should NOT contain
* redundant parenthesis.
*
* Example: Input: [1000,100,10,2] Output: "1000/(100/10/2)"
* Explanation: 1000/(100/10/2) = 1000/((100/10)/2) = 200 However, the
* bold parenthesis in "1000/((100/10)/2)" are redundant, since they
* don't influence the operation priority. So you should return
* "1000/(100/10/2)".
*
* Other cases: 1000/(100/10)/2 = 50 1000/(100/(10/2)) = 50
* 1000/100/10/2 = 0.5 1000/100/(10/2) = 2
*/
public class OptimalDivision {
/* @formatter:off
*
* (100/10/2) will have two options (a) (100/10)/2 or (b)100/(10/2)
* (a) (100/10)/2 is nothing but(100/10*2) because (100/10)/2=> (10/2) => 5 is also can be written as (100/20)
* (b) 100/(10/2) is nothing but (2*100/2) because 100/(10/2)=> (200/10) => 20 is also can be written as (200/10)
* putting brackets from second number maximizes the result
* similarly, putting brackets from second to nth number maximizes the result
*/
public String optimalDivision(int a[]) {
StringBuilder result = new StringBuilder();
if (a.length == 0 || a == null) {
return result.toString();
} else if (a.length == 1) {
result.append(a[0]);
return result.toString();
} else if (a.length == 2) {
result.append(a[0]);
result.append("/");
result.append(a[1]);
return result.toString();
}
result.append(a[0]);
result.append("/");
result.append("(");
for (int i = 1; i < a.length; i++) {
result.append(a[i]);
if (i != a.length - 1)
result.append("/");
}
result.append(")");
return result.toString();
}
/**
* @param args
*/
public static void main(String[] args) {
OptimalDivision obj = new OptimalDivision();
String res = null;
int a[] = { 1000, 100, 10, 2 };
res = obj.optimalDivision(a);
System.out.println(res);
}
}
|
[
"passionatecoderraj@gmail.com"
] |
passionatecoderraj@gmail.com
|
0b31bc809125858bd4dd0ccf522ec648efe597d9
|
89bedf3e111cdfd7b80f39b2eca3791a0dda276f
|
/argouml-app-v0.24/org/argouml/uml/diagram/ui/StylePanelFigMessage.java
|
d5a11d531f4af24e46d44a394afe8efb086a83dc
|
[
"LicenseRef-scancode-other-permissive",
"BSD-3-Clause"
] |
permissive
|
TheProjecter/plea-spl
|
b80b622fcf4dee6a73ae72db4fc7f4826bef0549
|
c28b308160c6ef8e68440d90a7710bff270f22c3
|
refs/heads/master
| 2020-05-28T14:14:30.727459
| 2014-10-03T18:43:35
| 2014-10-03T18:43:35
| 42,946,066
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,845
|
java
|
// $Id: StylePanelFigMessage.java 11516 2006-11-25 04:30:15Z tfmorris $
// Copyright (c) 1996-2006 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation without fee, and without a written
// agreement is hereby granted, provided that the above copyright notice
// and this paragraph appear in all copies. This software program and
// documentation are copyrighted by The Regents of the University of
// California. The software program and documentation are supplied "AS
// IS", without any accompanying services from The Regents. The Regents
// does not warrant that the operation of the program will be
// uninterrupted or error-free. The end-user understands that the program
// was developed for research purposes and is advised not to rely
// exclusively on the program for any reason. IN NO EVENT SHALL THE
// UNIVERSITY OF CALIFORNIA 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 UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE. THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
// PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
// CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
// UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
package org.argouml.uml.diagram.ui;
import java.awt.event.ItemEvent;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import org.argouml.ui.StylePanelFigNodeModelElement;
import org.tigris.gef.util.Converter;
/**
* Stylepanel which allows to set the arrow of a message.
*
* @see FigMessage
*/
public class StylePanelFigMessage extends StylePanelFigNodeModelElement {
private JLabel arrowLabel = new JLabel("Arrow: ");
private JComboBox arrowField = new JComboBox(Converter
.convert(FigMessage.getArrowDirections()));
/**
* The constructor.
*
*/
public StylePanelFigMessage() {
super();
arrowField.addItemListener(this);
arrowLabel.setLabelFor(arrowField);
add(arrowLabel);
add(arrowField);
arrowField.setSelectedIndex(0);
remove(getFillField());
remove(getFillLabel());
}
////////////////////////////////////////////////////////////////
// accessors
/*
* @see org.argouml.ui.TabTarget#refresh()
*/
public void refresh() {
super.refresh();
int direction = ((FigMessage) getPanelTarget()).getArrow();
arrowField.setSelectedItem(FigMessage.getArrowDirections()
.elementAt(direction));
}
/**
* Set the arrow direction for the target.
*/
public void setTargetArrow() {
String ad = (String) arrowField.getSelectedItem();
int arrowDirection = FigMessage.getArrowDirections().indexOf(ad);
if (getPanelTarget() == null || arrowDirection == -1) return;
((FigMessage) getPanelTarget()).setArrow(arrowDirection);
getPanelTarget().endTrans();
}
////////////////////////////////////////////////////////////////
// event handling
/*
* @see java.awt.event.ItemListener#itemStateChanged(java.awt.event.ItemEvent)
*/
public void itemStateChanged(ItemEvent e) {
Object src = e.getSource();
if (src == arrowField)
setTargetArrow();
else
super.itemStateChanged(e);
}
} /* end class StylePanelFigMessage */
|
[
"demost@gmail.com"
] |
demost@gmail.com
|
6fbf537ea6788584f2b2ef5c53a07d4416efd959
|
261053ece2f16bdd98cfacb9782d50068d289d91
|
/default/ovms/ovms-client/ovms-enterprise-client/src/main/java/com/htstar/ovms/enterprise/api/entity/ApplyCarProcess.java
|
f3490c4a2acb545f3ac955c1cb4b12536007838a
|
[] |
no_license
|
jiangdm/java
|
0e271a2f2980b1bb9f7459bb8c2fcb90d61dfaa9
|
4d9428619247ba4fa3f9513505c62e506ecdaf3b
|
refs/heads/main
| 2023-01-12T15:15:18.300314
| 2020-11-19T09:43:24
| 2020-11-19T09:43:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,895
|
java
|
package com.htstar.ovms.enterprise.api.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 公车申请流程
*
* @author htxk
* @date 2020-07-09 17:34:12
*/
@Data
@TableName("apply_car_process")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "公车申请流程")
public class ApplyCarProcess extends Model<ApplyCarProcess> {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
@ApiModelProperty(value="")
private Integer id;
/**
* 企业id
*/
@ApiModelProperty(value="企业id")
private Integer etpId;
/**
* 流程类型:0=公车申请;1=私车公用;
*/
@ApiModelProperty(value="流程类型:0=公车申请;1=私车公用;")
private Integer processType;
/**
* 是否由分配司机提车:0=否,1=是;
*/
@ApiModelProperty(value="是否由分配司机提车:0=否,1=是;")
private Integer driverGetCarStatus;
/**
* 提车还车时需录入里程:0=否;1=是;
*/
@ApiModelProperty(value="提车还车时需录入里程:0=否;1=是;")
private Integer mileageStatus;
/**
* [审批节点ID列表(有序)]
*/
@ApiModelProperty(value="[审批节点ID列表(有序)]")
private String verifyNodeList;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
@ApiModelProperty(value="创建时间")
private LocalDateTime createTime;
}
|
[
"ovms@email.com"
] |
ovms@email.com
|
8e3215f3d8abaf43d83bc8bca482f19ffba947f3
|
7c39900751dea5e37a84672d93b33f19d6116777
|
/HBase/src/main/java/com/briup/base/Test.java
|
0bfaaabeae98d74cd1661c4d45249b11add0dec0
|
[] |
no_license
|
783328905/Component
|
7ddc50ae0e808aa785aaa437a5a1043b4957d305
|
5c2e4eec5d183725866fcd15850b76cdcc4b2610
|
refs/heads/master
| 2022-10-18T23:24:13.052704
| 2019-10-22T00:20:51
| 2019-10-22T00:20:51
| 216,688,754
| 0
| 0
| null | 2022-10-04T23:54:06
| 2019-10-22T00:18:50
|
Java
|
UTF-8
|
Java
| false
| false
| 441
|
java
|
package com.briup.base;
import java.util.ArrayList;
import java.util.List;
/**
* 2 * @Author: Cai
* 3 * @Date: 2019/7/5 15:56
* 4
*/
public class Test {
public static void main(String args[]){
List<Integer> list = new ArrayList<>();
list.add(new Integer(1));
list.add(new Integer(1));
list.add(new Integer(2));
list.add(new Integer(3));
list.forEach(System.out::println);
}
}
|
[
"tony@gmail.com"
] |
tony@gmail.com
|
6f0f8f8cec0c5de4c863ff4b24f2c10fc7621fb3
|
1a4770c215544028bad90c8f673ba3d9e24f03ad
|
/second/quark/src/main/java/com/e/b/e.java
|
dde646f24116a58465367a65c46abb9b5d958637
|
[] |
no_license
|
zhang1998/browser
|
e480fbd6a43e0a4886fc83ea402f8fbe5f7c7fce
|
4eee43a9d36ebb4573537eddb27061c67d84c7ba
|
refs/heads/master
| 2021-05-03T06:32:24.361277
| 2018-02-10T10:35:36
| 2018-02-10T10:35:36
| 120,590,649
| 8
| 10
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 436
|
java
|
package com.e.b;
/* compiled from: ProGuard */
public final class e {
private static e d = new e();
String a = null;
String b = null;
String c = null;
private String e = null;
private h f = null;
e() {
}
public final synchronized void a(h hVar) {
this.f = hVar;
}
public final synchronized h a() {
return this.f;
}
public static e b() {
return d;
}
}
|
[
"2764207312@qq.com"
] |
2764207312@qq.com
|
8d7a18bd8714754cce9d009a974b7eb2c6dacfc4
|
b2386b03dd0768b85ef233722b0711b540de8596
|
/shell-code/src/main/java/com/thoughtworks/academy/design/pattern/tutorial/structural/flyweight/java/EnumImplement.java
|
03e3d145c4f1557a0cd3724aec28782b866ffe8a
|
[] |
no_license
|
tws-archive/learn-java-hard-way
|
531aa64b586a7a22b213b556a0af393fde57dd58
|
634fcfd24c4b3e873b9f97f7451e61c300f528f6
|
refs/heads/master
| 2021-06-06T05:44:42.309133
| 2016-07-19T07:12:56
| 2016-07-19T07:12:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 201
|
java
|
package com.thoughtworks.academy.design.pattern.tutorial.structural.flyweight.java;
public enum EnumImplement {
Instance1,Instance2;
public void commonMethod(){
}
}
|
[
"tj19832@gmail.com"
] |
tj19832@gmail.com
|
3d0b57c9d510939c997c5714a7138320de5ec507
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/12/12_8a3ed9baf5b9a5bc115c2810131c7479ac961c6e/SVNBaseCommand/12_8a3ed9baf5b9a5bc115c2810131c7479ac961c6e_SVNBaseCommand_s.java
|
e49cb1150231b69b2924aca19e94cc3c8fb377c2
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 6,885
|
java
|
/*
* ====================================================================
* Copyright (c) 2005-2006 Sventon Project. All rights reserved.
*
* This software is licensed as described in the file LICENSE, which
* you should have received as part of this distribution. The terms
* are also available at http://sventon.berlios.de.
* If newer versions of this license are posted there, you may use a
* newer version instead, at your option.
* ====================================================================
*/
package de.berlios.sventon.web.command;
import de.berlios.sventon.util.PathUtil;
import java.util.HashMap;
import java.util.Map;
/**
* SVNBaseCommand.
* <p/>
* Command class used to bind and pass servlet parameter arguments in sventon.
* <p/>
* A newly created instance is initialized to have path <code>/</code> and
* revision <code>null</code>.
*
* @author patrikfr@users.berlios.de
* @author jesper@users.berlios.de
*/
public class SVNBaseCommand {
/**
* The full path.
*/
private String path = "/";
/**
* The revision.
*/
private String revision = null;
/**
* Repository instance name.
*/
private String name;
/**
* The sort type.
*/
private String sortType;
/**
* Sort mode.
*/
private String sortMode;
/**
* Gets the path.
*
* @return The path.
*/
public String getPath() {
return path;
}
/**
* Set path. <code>null</code> and <code>""</code> arguments will be
* converted <code>/</code>
*
* @param path The path to set.
*/
public void setPath(final String path) {
if (path == null || "".equals(path)) {
this.path = "/";
} else {
this.path = path.trim();
}
}
/**
* @return Returns the revision.
*/
public String getRevision() {
return revision;
}
/**
* Set revision. Any revision is legal here (but may be rejected by the
* validator, {@link SVNBaseCommandValidator}).
* <p/>
* All case variations of the logical name "HEAD" will be converted to HEAD,
* all other revision arguments will be set as is.
*
* @param revision The revision to set.
*/
public void setRevision(final String revision) {
if (revision != null && "HEAD".equalsIgnoreCase(revision)) {
this.revision = "HEAD";
} else {
this.revision = revision;
}
}
/**
* Get target (leaf/end) part of the <code>path</code>, it could be a file
* or a directory.
* <p/>
* The returned string will have no final "/", even if it is a directory.
*
* @return Target part of the path.
*/
public String getTarget() {
return PathUtil.getTarget(getPath());
}
/**
* Get path, excluding the end/leaf. For complete path including target,see
* {@link SVNBaseCommand#getPath()}.
* <p/>
* The returned string will have a final "/". If the path info is empty, ""
* (empty string) will be returned.
*
* @return Path excluding taget (end/leaf)
*/
public String getPathNoLeaf() {
return PathUtil.getPathNoLeaf(getPath());
}
/**
* Get path, excluding the leaf. For complete path including target,see
* {@link SVNBaseCommand#getPath()}.
* <p/>
* The returned string will have a final "/". If the path info is empty, ""
* (empty string) will be returned.
*
* @return Path excluding taget (end/leaf)
*/
public String getPathPart() {
return PathUtil.getPathPart(getPath());
}
/**
* Gets the sort type, i.e. the field to sort on.
*
* @return Sort type
*/
public String getSortType() {
return sortType;
}
/**
* Sets the sort type, i.e. which field to sort on.
*
* @param sortType Sort type
*/
public void setSortType(final String sortType) {
if (sortType != null) {
this.sortType = sortType;
}
}
/**
* Gets the sort mode, ascending or descending.
*
* @return Sort mode
*/
public String getSortMode() {
return sortMode;
}
/**
* Sets the sort mode.
*
* @param sortMode Sort mode
*/
public void setSortMode(final String sortMode) {
if (sortMode != null) {
this.sortMode = sortMode;
}
}
/**
* Sets the repository instance name.
*
* @param name Repository instance name
*/
public void setName(final String name) {
this.name = name;
}
/**
* Gets the repository instance name.
*
* @return The repository instance name.
*/
public String getName() {
return name;
}
/**
* Return the contents of this object as a map model.
* <p/>
* Model data keys:
* <ul>
* <li><code>revision</code></li>
* <li><code>path</code></li>
* </ul>
*
* @return The model map.
*/
public Map<String, Object> asModel() {
final Map<String, Object> model = new HashMap<String, Object>();
model.put("revision", getRevision());
model.put("path", getPath());
model.put("name", getName());
model.put("sortType", getSortType());
model.put("sortMode", getSortMode());
return model;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
final SVNBaseCommand that = (SVNBaseCommand) o;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (path != null ? !path.equals(that.path) : that.path != null) return false;
if (revision != null ? !revision.equals(that.revision) : that.revision != null) return false;
if (sortMode != null ? !sortMode.equals(that.sortMode) : that.sortMode != null) return false;
if (sortType != null ? !sortType.equals(that.sortType) : that.sortType != null) return false;
return true;
}
public int hashCode() {
int result;
result = (path != null ? path.hashCode() : 0);
result = 29 * result + (revision != null ? revision.hashCode() : 0);
result = 29 * result + (name != null ? name.hashCode() : 0);
result = 29 * result + (sortType != null ? sortType.hashCode() : 0);
result = 29 * result + (sortMode != null ? sortMode.hashCode() : 0);
return result;
}
public String toString() {
return "SVNBaseCommand{" +
"path='" + path + '\'' +
", revision='" + revision + '\'' +
", name='" + name + '\'' +
", sortType='" + sortType + '\'' +
", sortMode='" + sortMode + '\'' +
'}';
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
4c01ddf3709dda84123519038e4cf7690c688b0d
|
0e81247e404755acc33205836a15aaa83a589ce5
|
/kc_project3.1_GitHub/src/main/java/org/kuali/kra/irb/actions/decision/CommitteeDecisionEvent.java
|
41e5c99b618c6c8e1690ac0c4011837cd0cd173a
|
[] |
no_license
|
ajeeshg/KC3Remote
|
e2d88bb8efe6384083a6b3978a405b51e998f361
|
941646814a7a11237ce4ed1f844941182e357ec9
|
refs/heads/master
| 2016-09-10T20:07:05.685013
| 2012-07-17T15:52:59
| 2012-07-17T15:52:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,361
|
java
|
/*
* Copyright 2005-2010 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* 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.kuali.kra.irb.actions.decision;
import org.apache.commons.lang.StringUtils;
import org.kuali.kra.irb.ProtocolDocument;
import org.kuali.kra.rule.event.KraDocumentEventBase;
import org.kuali.rice.kns.rule.BusinessRule;
/**
*
* This class...
*/
public class CommitteeDecisionEvent extends KraDocumentEventBase {
private static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory
.getLog(CommitteeDecisionEvent.class);
private CommitteeDecision actionBean;
/**
*
* Constructs a CommitteeDecisionEvent.java.
* @param document
* @param decision
*/
public CommitteeDecisionEvent(ProtocolDocument document, CommitteeDecision decision) {
super("Recording Committee Decision " + getDocumentId(document), "", document);
this.actionBean = decision;
}
@Override
protected void logEvent() {
StringBuffer logMessage = new StringBuffer(StringUtils.substringAfterLast(this.getClass().getName(), "."));
logMessage.append(" with ");
// vary logging detail as needed
if (this.actionBean == null) {
logMessage.append("null actionBean");
} else {
logMessage.append(actionBean.toString());
}
LOG.debug(logMessage);
}
public Class<ExecuteCommitteeDecisionRule> getRuleInterfaceClass() {
return ExecuteCommitteeDecisionRule.class;
}
public boolean invokeRuleMethod(BusinessRule rule) {
return ((ExecuteCommitteeDecisionRule) rule).proccessCommitteeDecisionRule((ProtocolDocument) this.getDocument(),
this.actionBean);
}
}
|
[
"naira@campusad.msu.edu"
] |
naira@campusad.msu.edu
|
38660ae7391df2e9dc36ad9155e2279cd633397a
|
e5abd0951ba29057719e044b26571804eceb338e
|
/04.Polymorphism/PolymorphismHomework/src/p03_wildFarm/Mammal.java
|
be2e257b6fcda6b6dee1b0984ee071c522623f32
|
[] |
no_license
|
tahirmuhammadcs/java-oop-basics
|
2d30a4fbf0f5e10792580a4fb090943c372e5daf
|
a72400afd466764b1335de3947b63e56a0c2cb92
|
refs/heads/master
| 2020-03-31T07:24:12.367245
| 2017-04-25T21:23:49
| 2017-04-25T21:23:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 911
|
java
|
package p03_wildFarm;
import java.text.DecimalFormat;
public abstract class Mammal extends Animal {
private String livingRegion;
protected Mammal(String animalName, String animalType, double animalWeight, int foodEaten, String livingRegion) {
super(animalName, animalType, animalWeight, foodEaten);
this.setLivingRegion(livingRegion);
}
public String getLivingRegion() {
return this.livingRegion;
}
private void setLivingRegion(String livingRegion) {
this.livingRegion = livingRegion;
}
@Override
public String toString() {
return String.format("%s[%s, %s, %s, %d]",
super.getAnimalType(),
super.getAnimalName(),
new DecimalFormat("#.########################").format(super.getAnimalWeight()),
this.getLivingRegion(),
super.getFoodEaten());
}
}
|
[
"gramovv@gmail.com"
] |
gramovv@gmail.com
|
8c44d2d55041dbe1fc17cac6fe9e5c8ce6ca5586
|
716089b4dbfe81216a2e46be12d32637726995ef
|
/src/com/xdl/publics/logs/controller/UserLogsController.java
|
03bf0bdef2dca658470702ce3ed8b98953fd89da
|
[] |
no_license
|
akriar/BLB_CRM
|
4b3efaf6e6e05ebf5880bc6fc37f4987b9b0270f
|
648dff50d27463fdd1fe377324588ac57580b7d2
|
refs/heads/master
| 2022-08-31T04:56:59.883023
| 2020-05-24T08:02:23
| 2020-05-24T08:02:23
| 266,492,526
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,190
|
java
|
package com.xdl.publics.logs.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.xdl.publics.logs.entity.Userlogs;
import com.xdl.publics.logs.service.ILogsService;
import com.xdl.publics.util.BaseController;
/**
* 用户操作监控控制类
*/
@Controller
public class UserLogsController extends BaseController{
@Autowired
private ILogsService userLogsService;
/**
* 查询用户擦操作
* @param userid 用户id
* @param request
* @param pageSize
* @param currentPage
* @return
*/
@RequestMapping(value = "/logs/queryUserLogs.do",method = RequestMethod.GET)
public @ResponseBody String queryUserLogs(Long userid,HttpServletRequest request,Integer pageSize, Integer currentPage){
List<Userlogs> list = userLogsService.queryUserLogs(userid,processPageBean(pageSize, currentPage));
return jsonToPage(list);
}
}
|
[
"you@example.com"
] |
you@example.com
|
8e7f38675cddd02220a082a6b369d7b337ed3c23
|
68323428647d25764d25711aadc2c15ed42b3e35
|
/CTFAInciRedesign/inci-services/src/main/java/com/avectra/_2005/WEBCentralizedShoppingCartOpenInvoiceGetListResponse.java
|
0ef6db103d9bfddca62ebf014a0501919f8a396c
|
[] |
no_license
|
dgutu/java
|
5bbb312f1325c7c05b15a28151365a26d934490f
|
322198a43f4021cb30c607bc6e20768b1f6c2a93
|
refs/heads/master
| 2021-01-20T05:49:23.583392
| 2017-08-08T18:42:44
| 2017-08-08T19:14:28
| 89,797,988
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,842
|
java
|
package com.avectra._2005;
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.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="WEBCentralizedShoppingCartOpenInvoiceGetListResult" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"webCentralizedShoppingCartOpenInvoiceGetListResult"
})
@XmlRootElement(name = "WEBCentralizedShoppingCartOpenInvoiceGetListResponse")
public class WEBCentralizedShoppingCartOpenInvoiceGetListResponse {
@XmlElement(name = "WEBCentralizedShoppingCartOpenInvoiceGetListResult")
protected WEBCentralizedShoppingCartOpenInvoiceGetListResponse.WEBCentralizedShoppingCartOpenInvoiceGetListResult webCentralizedShoppingCartOpenInvoiceGetListResult;
/**
* Gets the value of the webCentralizedShoppingCartOpenInvoiceGetListResult property.
*
* @return
* possible object is
* {@link WEBCentralizedShoppingCartOpenInvoiceGetListResponse.WEBCentralizedShoppingCartOpenInvoiceGetListResult }
*
*/
public WEBCentralizedShoppingCartOpenInvoiceGetListResponse.WEBCentralizedShoppingCartOpenInvoiceGetListResult getWEBCentralizedShoppingCartOpenInvoiceGetListResult() {
return webCentralizedShoppingCartOpenInvoiceGetListResult;
}
/**
* Sets the value of the webCentralizedShoppingCartOpenInvoiceGetListResult property.
*
* @param value
* allowed object is
* {@link WEBCentralizedShoppingCartOpenInvoiceGetListResponse.WEBCentralizedShoppingCartOpenInvoiceGetListResult }
*
*/
public void setWEBCentralizedShoppingCartOpenInvoiceGetListResult(WEBCentralizedShoppingCartOpenInvoiceGetListResponse.WEBCentralizedShoppingCartOpenInvoiceGetListResult value) {
this.webCentralizedShoppingCartOpenInvoiceGetListResult = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class WEBCentralizedShoppingCartOpenInvoiceGetListResult {
@XmlMixed
@XmlAnyElement(lax = true)
protected List<java.lang.Object> content;
/**
* Gets the value of the content 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 content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
* {@link java.lang.Object }
*
*
*/
public List<java.lang.Object> getContent() {
if (content == null) {
content = new ArrayList<java.lang.Object>();
}
return this.content;
}
}
}
|
[
"gda.dumitru@gmail.com"
] |
gda.dumitru@gmail.com
|
751f1f098971f08945e96a50ca94f584417a615b
|
3de3dae722829727edfdd6cc3b67443a69043475
|
/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/ui/MissingDataModeMenu.java
|
d2b1bbf35946e001cd70b0fafe3045c787199ebc
|
[
"LicenseRef-scancode-public-domain",
"Apache-2.0"
] |
permissive
|
Unidata/awips2
|
9aee5b7ec42c2c0a2fa4d877cb7e0b399db74acb
|
d76c9f96e6bb06f7239c563203f226e6a6fffeef
|
refs/heads/unidata_18.2.1
| 2023-08-18T13:00:15.110785
| 2023-08-09T06:06:06
| 2023-08-09T06:06:06
| 19,332,079
| 161
| 75
|
NOASSERTION
| 2023-09-13T19:06:40
| 2014-05-01T00:59:04
|
Java
|
UTF-8
|
Java
| false
| false
| 2,533
|
java
|
/**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
* to non-U.S. persons whether in the United States or abroad requires
* an export license or other authorization.
*
* Contractor Name: Raytheon Company
* Contractor Address: 6825 Pine Street, Suite 340
* Mail Stop B8
* Omaha, NE 68106
* 402.291.0100
*
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
* further licensing information.
**/
package com.raytheon.viz.gfe.ui;
import com.raytheon.viz.gfe.core.msgs.Message;
import com.raytheon.viz.gfe.core.msgs.MissingDataModeMsg;
import com.raytheon.viz.gfe.smarttool.MissingDataMode;
/**
* Menu to select the missing data mode
*
* <pre>
*
* SOFTWARE HISTORY
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Jan 21, 2010 randerso Initial creation
*
* </pre>
*
* @author randerso
* @version 1.0
*/
public class MissingDataModeMenu extends EnumMenu {
private static final String COMMAND_ID = "com.raytheon.viz.gfe.actions.SetMissingDataMode";
/*
* (non-Javadoc)
*
* @see com.raytheon.viz.gfe.ui.EnumMenu#getCategoryId()
*/
@Override
protected String getCategoryId() {
return "GFE";
}
/*
* (non-Javadoc)
*
* @see com.raytheon.viz.gfe.ui.EnumMenu#getCommandId()
*/
@Override
protected String getCommandId() {
return COMMAND_ID;
}
/*
* (non-Javadoc)
*
* @see com.raytheon.viz.gfe.ui.EnumMenu#getCommandName()
*/
@Override
protected String getCommandName() {
return "UpdateMissingDataMode";
}
/*
* (non-Javadoc)
*
* @see com.raytheon.viz.gfe.ui.EnumMenu#getCurrentValue()
*/
@Override
protected MissingDataMode getCurrentValue() {
return Message.inquireLastMessage(MissingDataModeMsg.class).getMode();
}
/*
* (non-Javadoc)
*
* @see com.raytheon.viz.gfe.ui.EnumMenu#setCurrentValue(java.lang.Enum)
*/
@Override
protected void setCurrentValue(Enum<?> value) {
new MissingDataModeMsg((MissingDataMode) value).send();
}
}
|
[
"mjames@unidata.ucar.edu"
] |
mjames@unidata.ucar.edu
|
53887510bd461196283236a82d27267f2ab10448
|
66e1c955c3afe0337001d0471db5e4dfa486b768
|
/cat/src/main/java/com/lchml/webcat/webscoket/WsServerInitializer.java
|
8d23d4e15cd24bc401dc11954182a808a4127cee
|
[] |
no_license
|
hryou0922/source
|
c0db766698a541aa80bf8e4880210768ebd91005
|
2d9d5a34bdc3241181d869de7c6086e895eca534
|
refs/heads/master
| 2022-12-22T10:47:45.312009
| 2019-11-01T09:47:32
| 2019-11-01T09:47:32
| 129,269,696
| 1
| 1
| null | 2022-12-16T02:51:39
| 2018-04-12T15:07:46
|
Java
|
UTF-8
|
Java
| false
| false
| 2,401
|
java
|
package com.lchml.webcat.webscoket;
import com.lchml.webcat.config.WebcatWsConf;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.codec.http.HttpObjectAggregator;
import io.netty.handler.codec.http.HttpServerCodec;
import io.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandler;
import io.netty.handler.codec.http.websocketx.extensions.compression.WebSocketServerCompressionHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
@Component
public class WsServerInitializer extends ChannelInitializer<SocketChannel> {
@Resource
private AutowireCapableBeanFactory beanFactory;
@Autowired
private WebcatWsConf webcatWsConf;
@Autowired
private WebcatWsServer webcatWsServer;
@Override
public void initChannel(SocketChannel ch) throws Exception {
ChannelPipeline pipeline = ch.pipeline();
pipeline.addLast(HeartbeatHandler.NAME, new HeartbeatHandler(webcatWsConf.getHeartbeat()));
pipeline.addLast(new HttpServerCodec());
pipeline.addLast(new HttpObjectAggregator(webcatWsConf.getMaxPayload()));
// 在通道中存储ChannelInfo对象,用于后续的操作
pipeline.addLast(WsChannelInitHandler.NAME, beanFactory.getBean(WsChannelInitHandler.class));
// 为ChannelInfo设置ip
pipeline.addLast(ProxyIPHandler.NAME, new ProxyIPHandler(webcatWsConf.isUseProxy()));
// 增加插入连接的监听器
if (webcatWsServer.getChannelConnectListener() != null) {
pipeline.addLast(
ChannelConnectListenerHandler.NAME, new ChannelConnectListenerHandler(webcatWsServer.getChannelConnectListener()));
}
// 处理websocket的请求
pipeline.addLast(new WebSocketServerCompressionHandler());
// 处理websocket的 这个处理程序为您运行websocket服务器做了所有繁重的工作。
pipeline.addLast(new WebSocketServerProtocolHandler(webcatWsConf.getWsPath(), null, true, webcatWsConf.getMaxPayload()));
pipeline.addLast(
WsPacketDispatcher.NAME, beanFactory.getBean(WsPacketDispatcher.class));
}
}
|
[
"hryou0922@126.com"
] |
hryou0922@126.com
|
3b479779179c05d5eb586c7b94071de3b24afed8
|
60f0c4a399efcf4010de48af3dc2157f86757069
|
/ninja-types-generic/src/main/java/org/flowninja/types/flows/OptionsData.java
|
17931931035d12f51a1f389ccc36e713e613c8f6
|
[
"Apache-2.0"
] |
permissive
|
rbieniek/flow-ninja
|
9036e2eb84f709489478b8ada696efb788b983ab
|
dcc0e23514e455dfdce666093e2cac3772c7e7e5
|
refs/heads/master
| 2021-01-20T10:32:29.651045
| 2015-07-17T18:57:58
| 2015-07-17T18:57:58
| 31,513,255
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,408
|
java
|
/**
*
*/
package org.flowninja.types.flows;
import java.io.Serializable;
import java.math.BigInteger;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author rainer
*
*/
public class OptionsData implements Serializable {
/**
*
*/
private static final long serialVersionUID = 4210502776384861620L;
public static class Builder {
private OptionsData data = new OptionsData();
private Builder() {}
public static Builder newBuilder() {
return new Builder();
}
public OptionsData build() {
return data;
}
public Builder withTotalFlowsExported(BigInteger totalFlowsExported) {
data.setTotalFlowsExported(totalFlowsExported);
return this;
}
public Builder withTotalPacketsExported(BigInteger totalPacketsExported) {
data.setTotalPacketsExported(totalPacketsExported);
return this;
}
}
@JsonProperty(value="totalFlowsExp")
private BigInteger totalFlowsExported;
@JsonProperty(value="totalPktsExp")
private BigInteger totalPacketsExported;
/**
* @return the totalFlowsExported
*/
public BigInteger getTotalFlowsExported() {
return totalFlowsExported;
}
/**
* @param totalFlowsExported the totalFlowsExported to set
*/
public void setTotalFlowsExported(BigInteger totalFlowsExported) {
this.totalFlowsExported = totalFlowsExported;
}
/**
* @return the totalPacketsExported
*/
public BigInteger getTotalPacketsExported() {
return totalPacketsExported;
}
/**
* @param totalPacketsExported the totalPacketsExported to set
*/
public void setTotalPacketsExported(BigInteger totalPacketsExported) {
this.totalPacketsExported = totalPacketsExported;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@Override
public boolean equals(Object obj) {
if(!(obj instanceof OptionsData))
return false;
OptionsData o = (OptionsData)obj;
return (new EqualsBuilder())
.append(totalFlowsExported, o.totalFlowsExported)
.append(totalPacketsExported, o.totalPacketsExported)
.isEquals();
}
@Override
public int hashCode() {
return (new HashCodeBuilder())
.append(totalFlowsExported)
.append(totalPacketsExported)
.toHashCode();
}
}
|
[
"Rainer.Bieniek@web.de"
] |
Rainer.Bieniek@web.de
|
c519858f964202d68f7cb675106b6a8b55abf105
|
6502ebaa678542250523d01fc3bf77aed0149696
|
/src/com/code/Problem31.java
|
c3c415254dc5b36eab151eaf51b947e9a4acdc3f
|
[] |
no_license
|
leiqjl/offer
|
876a9423998204eb0d7b475f2ce8f6a0142b2e76
|
6b099c8e6e8dc1dc522903fb4ddf80138f80377a
|
refs/heads/master
| 2021-04-25T19:15:04.817688
| 2018-09-11T15:02:58
| 2018-09-11T15:02:58
| 108,634,338
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,359
|
java
|
package com.code;
/**
* 输入一个整型数组,数组里有正数也有负数。
* 数组中一个或连续多个整数组成一个子数组。
* 求所有子数组和的最大值。要求时间复杂度为O(n)。
*/
public class Problem31 {
public static void main(String[] args) {
int[] array = {1,-2,3,10,-4,7,2,-5};
System.out.println(findMaxSumOfSubArray(array));
System.out.println(findMaxSumOfSubArray2(array));
}
public static int findMaxSumOfSubArray(int[] array) {
int max = Integer.MIN_VALUE;
int sum = 0;
if (array != null && array.length > 0) {
for (int i = 0; i < array.length; i++) {
if (sum <= 0) {
sum = array[i];
} else {
sum += array[i];
}
if (sum > max) {
max = sum;
}
}
}
return max;
}
//动态规划
public static int findMaxSumOfSubArray2(int[] array) {
int max = Integer.MIN_VALUE;
int sum = 0;
if (array != null && array.length > 0) {
for (int i = 0; i < array.length; i++) {
sum = (sum <= 0) ? array[i] : sum+array[i];
max = (max > sum) ? max : sum;
}
}
return max;
}
}
|
[
"leiqjl@gmail.com"
] |
leiqjl@gmail.com
|
795b374a43b5dbbdfa33857a22713f14dfb9bbd8
|
e0cbe5263b477eda3b933a5894a15ba2ccb4d2e1
|
/org.xydra.core/src/main/java/org/xydra/valueindex/ValueIndexEntry.java
|
5274055ecce797b6d35892754673284b2bb820f7
|
[] |
no_license
|
Cloudxtreme/Xydra
|
c7e4ef2ceffe8c1409ea62af7303d5eba613827e
|
156057f33010255728fc7310b8f37be2996dbb01
|
refs/heads/master
| 2021-06-02T08:11:19.830703
| 2016-09-07T11:37:46
| 2016-09-07T11:37:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,090
|
java
|
package org.xydra.valueindex;
import org.xydra.base.XAddress;
import org.xydra.base.rmof.XReadableField;
import org.xydra.base.value.XValue;
import org.xydra.core.model.XField;
import org.xydra.core.model.XObject;
/**
* Entries used in {@link ValueIndex} to store an {@link XValue} together with
* the {@link XAddress} of the {@link XReadableField} holding the value.
*
* @author kaidel
*
*/
public class ValueIndexEntry {
private final XAddress address;
private final XValue value;
/**
* Creates a new ValueIndexEntry.
*
* @param address The {@link XAddress} of the {@link XObject} containing an
* {@link XField}, which holds the given value. Must not be null.
* @param value The {@link XValue} which is to be indexed.
* @throws RuntimeException if address or counter are null
*/
public ValueIndexEntry(final XAddress address, final XValue value) {
if(address == null) {
throw new RuntimeException("address must not be null");
}
this.address = address;
this.value = value;
}
/**
* Returns the stored {@link XAddress}.
*
* @return the stored {@link XAddress}.
*/
public XAddress getAddress() {
return this.address;
}
/**
* Returns the stored {@link XValue}.
*
* @return the stored {@link XValue}.
*/
public XValue getValue() {
return this.value;
}
/**
* Checks whether the stored {@link XAddress} and {@link XValue} are equal
* to the given address and value.
*
* @param address The {@link XAddress} which is to be compared to the stored
* address.
* @param value The {@link XValue} which is to be compared to the stored
* value.
* @return true, if and only if the given address is equal to the stored
* address and the given value is equal to the stored value
*/
public boolean equalAddressAndValue(final XAddress address, final XValue value) {
if(address == null) {
return false;
}
if(this.value == null) {
if(value != null) {
return false;
} else {
return this.address.equals(address);
}
}
return this.address.equals(address) && this.value.equals(value);
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + (this.address == null ? 0 : this.address.hashCode());
result = prime * result + (this.value == null ? 0 : this.value.hashCode());
return result;
}
@Override
public boolean equals(final Object obj) {
if(this == obj) {
return true;
}
if(obj == null) {
return false;
}
if(!(obj instanceof ValueIndexEntry)) {
return false;
}
final ValueIndexEntry other = (ValueIndexEntry)obj;
if(this.address == null) {
if(other.address != null) {
return false;
}
} else if(!this.address.equals(other.address)) {
return false;
}
if(this.value == null) {
if(other.value != null) {
return false;
}
} else if(!this.value.equals(other.value)) {
return false;
}
return true;
}
}
|
[
"max.voelkel@calpano.com"
] |
max.voelkel@calpano.com
|
5542f2e4891e8eb4231e17f2f26acdbbe54c59af
|
fe2ef5d33ed920aef5fc5bdd50daf5e69aa00ed4
|
/pcc/src/et/bo/police/callcenter/fun/Event.java
|
8f41fe96cf70b1985b73f204a699496fd8178452
|
[] |
no_license
|
sensui74/legacy-project
|
4502d094edbf8964f6bb9805be88f869bae8e588
|
ff8156ae963a5c61575ff34612c908c4ccfc219b
|
refs/heads/master
| 2020-03-17T06:28:16.650878
| 2016-01-08T03:46:00
| 2016-01-08T03:46:00
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 1,215
|
java
|
package et.bo.police.callcenter.fun;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
public class Event {
private static String COLON=":";
private static String SEMICOLON=";";
private static String COMMA=",";
/*
* 命令名称,key值,比如PTRING.
*/
private String action;
/*
* 命令参数数组。
*/
private String[] arg;
private void praseString(String s){
//去掉分号
StringTokenizer st=new StringTokenizer(s,Event.SEMICOLON);
String s0=st.nextToken();
//解析冒号,找到命令action
st =new StringTokenizer(s0,Event.COLON);
this.action = st.nextToken();
//解析参数
String sArg =st.nextToken();
List l = new ArrayList();
st =new StringTokenizer(sArg,Event.COMMA);
while(st.hasMoreTokens()){
l.add((String)st.nextToken());
}
//Object o = (String[])l.toArray();
arg= new String[l.size()];
l.toArray(arg);
}
public void parse(String s){
}
public static void main(String[] a){
String s="EXRING:0,1000,4000;";
Event e = new Event();
e.praseString(s);
System.out.println(e.action);
System.out.println(e.arg.length);
for(int i=0;i<e.arg.length;i++){
System.out.println(e.arg[i]);
}
}
}
|
[
"wow_fei@163.com"
] |
wow_fei@163.com
|
8be5509385d3d3ed205441ede04576297eacfb1c
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/20/20_19656f8a4142e2293a5cedacfde9e633ce967797/GenericUserModeEvent/20_19656f8a4142e2293a5cedacfde9e633ce967797_GenericUserModeEvent_t.java
|
2d5ce92c5f646424576f272e3f3ddd80c614fd64
|
[] |
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,496
|
java
|
/**
* Copyright (C) 2010 Leon Blakey <lord.quackstar at gmail.com>
*
* This file is part of PircBotX.
*
* PircBotX 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.
*
* PircBotX 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 PircBotX. If not, see <http://www.gnu.org/licenses/>.
*/
package org.pircbotx.hooks.types;
import org.pircbotx.Channel;
import org.pircbotx.PircBotX;
import org.pircbotx.User;
import org.pircbotx.hooks.events.OpEvent;
/**
* Any user status change in a channel. Eg {@link OpEvent}
*
* @author Leon Blakey <lord.quackstar at gmail.com>
*/
public interface GenericUserModeEvent<T extends PircBotX> extends GenericEvent<T> {
/**
* The channel that the mode changed occurred in
* @return The affected channel
*/
public Channel getChannel();
/**
* The source of the mode change
* @return The source user
*/
public User getSource();
/**
* The recipient of the mode change
* @return The recipient user
*/
public User getRecipient();
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
4e1795ddba06e584ffb00c80a4566b82db09912a
|
6240a87133481874e293b36a93fdb64ca1f2106c
|
/taobao/src/com/taobao/api/response/AlipayMicropayOrderGetResponse.java
|
6f60ba11327f53b146430ba920d26c22d21bf99e
|
[] |
no_license
|
mrzeng/comments-monitor
|
596ba8822d70f8debb630f40b548f62d0ad48bd4
|
1451ec9c14829c7dc29a2297a6f3d6c4e490dc13
|
refs/heads/master
| 2021-01-15T08:58:05.997787
| 2013-07-17T16:29:23
| 2013-07-17T16:29:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 797
|
java
|
package com.taobao.api.response;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.domain.MicroPayOrderDetail;
import com.taobao.api.TaobaoResponse;
/**
* TOP API: alipay.micropay.order.get response.
*
* @author auto create
* @since 1.0, null
*/
public class AlipayMicropayOrderGetResponse extends TaobaoResponse {
private static final long serialVersionUID = 1612316792591722269L;
/**
* 冻结订单详情
*/
@ApiField("micro_pay_order_detail")
private MicroPayOrderDetail microPayOrderDetail;
public void setMicroPayOrderDetail(MicroPayOrderDetail microPayOrderDetail) {
this.microPayOrderDetail = microPayOrderDetail;
}
public MicroPayOrderDetail getMicroPayOrderDetail( ) {
return this.microPayOrderDetail;
}
}
|
[
"qujian@gionee.com"
] |
qujian@gionee.com
|
413de727b562a9736b0eb08739fe3012ec223a5b
|
3eca6278418d9eef7f5f850b23714a8356ef525f
|
/tumi/ParametroEJB/ejbModule/pe/com/tumi/parametro/general/service/ArchivoService.java
|
996bff6c4cb86fbdcc0a70851beeca34c3b22b36
|
[] |
no_license
|
cdelosrios88/tumiws-bizarq
|
2728235b3f3239f12f14b586bb6349e2f9b8cf4f
|
7b32fa5765a4384b8d219c5f95327b2e14dd07ac
|
refs/heads/master
| 2021-01-23T22:53:21.052873
| 2014-07-05T05:19:58
| 2014-07-05T05:19:58
| 32,641,875
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,423
|
java
|
package pe.com.tumi.parametro.general.service;
import java.util.HashMap;
import java.util.List;
import pe.com.tumi.common.util.Constante;
import pe.com.tumi.framework.negocio.exception.BusinessException;
import pe.com.tumi.framework.negocio.exception.DAOException;
import pe.com.tumi.framework.negocio.factory.TumiFactory;
import pe.com.tumi.framework.util.fecha.JFecha;
import pe.com.tumi.parametro.general.bo.ArchivoBO;
import pe.com.tumi.parametro.general.bo.TipoArchivoBO;
import pe.com.tumi.parametro.general.domain.Archivo;
import pe.com.tumi.parametro.general.domain.ArchivoId;
import pe.com.tumi.parametro.general.domain.TipoArchivo;
public class ArchivoService {
private ArchivoBO boArchivo = (ArchivoBO)TumiFactory.get(ArchivoBO.class);
private TipoArchivoBO boTipoArchivo = (TipoArchivoBO)TumiFactory.get(TipoArchivoBO.class);
public Archivo grabarArchivo(Archivo o)throws BusinessException{
Archivo dto = null;
Archivo dtoOld = null;
TipoArchivo tipo = null;
try{
if(o.getId()!=null){
if(o.getId().getIntParaTipoCod() != null && o.getId().getIntItemArchivo() != null){
if(o.getId().getIntItemHistorico() != null){
dtoOld = boArchivo.getArchivoPorPK(o.getId());
}else{
dtoOld = boArchivo.getListaArchivoDeVersionFinalPorTipoYItem(o.getId().getIntParaTipoCod(),
o.getId().getIntItemArchivo());
}
if(dtoOld != null){
if(dtoOld.getIntParaEstadoCod().compareTo(Constante.PARAM_T_ESTADOUNIVERSAL_ANULADO) !=0 ){
dtoOld.setTsFechaEliminacion(JFecha.obtenerTimestampDeFechayHoraActual());
dtoOld.setIntParaEstadoCod(Constante.PARAM_T_ESTADOUNIVERSAL_ANULADO);
boArchivo.modificarArchivo(dtoOld);
}
dto = boArchivo.grabarArchivoVersion(o);
}else{
dto = boArchivo.grabarArchivo(o);
}
}else{
dto = boArchivo.grabarArchivo(o);
}
tipo = boTipoArchivo.getTipoArchivoPorPk(dto.getId().getIntParaTipoCod());
dto.setTipoarchivo(tipo);
}
}catch(BusinessException e){
throw e;
}catch(Exception e){
throw new BusinessException(e);
}
return dto;
}
public Archivo getArchivoPorPK(ArchivoId pId) throws BusinessException{
Archivo archivo = null;
TipoArchivo tipo = null;
try{
archivo = boArchivo.getArchivoPorPK(pId);
if(archivo!=null){
tipo = boTipoArchivo.getTipoArchivoPorPk(archivo.getId().getIntParaTipoCod());
archivo.setTipoarchivo(tipo);
}
}catch(BusinessException e){
throw e;
}catch(Exception e) {
throw new BusinessException(e);
}
return archivo;
}
public Archivo eliminarArchivo(Archivo o)throws BusinessException{
//Archivo dto = null;
//Archivo dtoOld = null;
TipoArchivo tipo = null;
try{
if(o.getId()!=null){
if(o.getId().getIntParaTipoCod() != null && o.getId().getIntItemArchivo() != null){
o.setTsFechaEliminacion(JFecha.obtenerTimestampDeFechayHoraActual());
o.setIntParaEstadoCod(Constante.PARAM_T_ESTADOUNIVERSAL_ANULADO);
boArchivo.modificarArchivo(o);
//o = boArchivo.grabarArchivoVersion(o);
}
tipo = boTipoArchivo.getTipoArchivoPorPk(o.getId().getIntParaTipoCod());
o.setTipoarchivo(tipo);
}
}catch(BusinessException e){
throw e;
}catch(Exception e){
throw new BusinessException(e);
}
return o;
}
}
|
[
"cdelosrios@bizarq.com@b3a863b4-f5f8-5366-a268-df30542ed8c1"
] |
cdelosrios@bizarq.com@b3a863b4-f5f8-5366-a268-df30542ed8c1
|
7a4328ed2aee5bfdb3f7edee2f720224108a6914
|
6253283b67c01a0d7395e38aeeea65e06f62504b
|
/decompile/app/Mms/src/main/java/com/android/mms/data/HwCustWorkingMessage.java
|
40a8fe296e1abca2db4595fa5c8605f150e279bd
|
[] |
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
| 722
|
java
|
package com.android.mms.data;
import android.content.Context;
import java.util.List;
public class HwCustWorkingMessage {
public void setHwCustWorkingMessage(Context context) {
}
public boolean isHasDraft(boolean hasDraft) {
return hasDraft;
}
public boolean isImOnlyConversation() {
return false;
}
public boolean isRcsSwitchOn() {
return false;
}
public void asyncDeleteDraftMmsMessageCust(WorkingMessage workingMessage, Conversation conv, Context context) {
}
public boolean supportSendToEmail() {
return false;
}
public boolean customizeUpdateState(List<String> list, Conversation conversation) {
return false;
}
}
|
[
"liming@droi.com"
] |
liming@droi.com
|
ebcbabc49f61e148c9db81ad4b6f0f08fb91b374
|
c32ebeaeeac4ddeafdd587cc7e2f2b73e10af8e2
|
/safe-shelf-m101/src/br/ufc/m101/component/mdiffexec/MDiffExecEnvPortImpl.java
|
a3046ad9923c8ed7ada2eb1089d39131ca867163
|
[] |
no_license
|
UFC-MDCC-HPC/HPC-Storm-SAFe
|
94eb398e2c366742004046fe7feb9a6afe3495f5
|
be39f2f4cb89ec139f76e1243775f7ce479db072
|
refs/heads/master
| 2020-05-29T11:42:23.943344
| 2017-05-13T20:59:26
| 2017-05-13T20:59:26
| 34,304,530
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 453
|
java
|
package br.ufc.m101.component.mdiffexec;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService(endpointInterface="br.ufc.m101.component.mdiffexec.MDiffExecEnvPort")
public class MDiffExecEnvPortImpl implements MDiffExecEnvPort{
private MDiffExec mDiffExec;
public void setMDiffExec(MDiffExec mDiffExec){
this.mDiffExec = mDiffExec;
}
@WebMethod
public void setParams(String params){
this.mDiffExec.setParams(params);
}
}
|
[
"jeffersoncarvalho@gmail.com"
] |
jeffersoncarvalho@gmail.com
|
efc19ce7610d2a57ad62ce76419a52e357234913
|
13bbf20e2fa4dce6d41d0c3d888397096cdd7f35
|
/app/src/main/java/com/suraj/examples/myweather/model/CurrentCondition.java
|
1ce13670043eb2df12776e796a2784515c7115d9
|
[] |
no_license
|
XurajB/WeatherV2
|
05be22bcc5f15b2d96064c2505fff77636988cfa
|
1f3f658bf94fd39603d8a6e97aa419c516a56601
|
refs/heads/master
| 2021-01-22T08:29:39.963189
| 2017-02-16T01:07:10
| 2017-02-16T01:07:10
| 81,906,578
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,119
|
java
|
package com.suraj.examples.myweather.model;
import org.json.JSONObject;
/**
* Created by suraj bhattarai on 7/10/15.
* POJO to store current condition JSON object received from the API call
*/
public class CurrentCondition implements DataPopulator {
/** Define variables */
private double mPrecipitation;
private String mDescription;
private String mIconUrl;
private int mTemperature;
/** Define getters */
public double getPrecipitation() {
return mPrecipitation;
}
public String getDescription() {
return mDescription;
}
public String getIconUrl() {
return mIconUrl;
}
public int getTemperature() {
return mTemperature;
}
/** populate data */
@Override
public void populateData(JSONObject data) {
this.mPrecipitation = data.optDouble("precipMM");
this.mDescription = data.optJSONArray("weatherDesc").optJSONObject(0).optString("value");
this.mIconUrl = data.optJSONArray("weatherIconUrl").optJSONObject(0).optString("value");
this.mTemperature = data.optInt("temp_F");
}
}
|
[
"surajbh@hotmail.com"
] |
surajbh@hotmail.com
|
82262d4bfaf7da75a24fa993329d04a7b7942139
|
a00326c0e2fc8944112589cd2ad638b278f058b9
|
/src/main/java/000/124/666/CWE114_Process_Control__basic_07.java
|
d18d5f7c7b61029ffe461370f26f5317daa9ce4d
|
[] |
no_license
|
Lanhbao/Static-Testing-for-Juliet-Test-Suite
|
6fd3f62713be7a084260eafa9ab221b1b9833be6
|
b095b11c7cb6d4a5bb2b76181e35d6ee00e96e68
|
refs/heads/master
| 2020-08-24T13:34:04.004149
| 2019-10-25T09:26:00
| 2019-10-25T09:26:00
| 216,822,684
| 0
| 1
| null | 2019-11-08T09:51:54
| 2019-10-22T13:37:13
|
Java
|
UTF-8
|
Java
| false
| false
| 3,200
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE114_Process_Control__basic_07.java
Label Definition File: CWE114_Process_Control__basic.label.xml
Template File: point-flaw-07.tmpl.java
*/
/*
* @description
* CWE: 114 Process Control
* Sinks:
* GoodSink: use System.load() to load a library
* BadSink : use System.loadLibrary() to load a library
* Flow Variant: 07 Control flow: if(privateFive==5) and if(privateFive!=5)
*
* */
public class CWE114_Process_Control__basic_07 extends AbstractTestCase
{
/* The variable below is not declared "final", but is never assigned
* any other value so a tool should be able to identify that reads of
* this will always give its initialized value.
*/
private int privateFive = 5;
public void bad() throws Throwable
{
if (privateFive == 5)
{
String libraryName = "test.dll";
/* FLAW: Attempt to load a library with System.loadLibrary() without
* the full path to the library. */
System.loadLibrary(libraryName);
}
}
/* good1() changes privateFive==5 to privateFive!=5 */
private void good1() throws Throwable
{
if (privateFive != 5)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
IO.writeLine("Benign, fixed string");
}
else
{
String root;
String libraryName = "test.dll";
if(System.getProperty("os.name").toLowerCase().indexOf("win") >= 0)
{
/* running on Windows */
root = "C:\\libs\\";
}
else
{
/* running on non-Windows */
root = "/home/user/libs/";
}
/* FIX: Use System.load() which allows you to specify a full path to the library */
System.load(root + libraryName);
}
}
/* good2() reverses the bodies in the if statement */
private void good2() throws Throwable
{
if (privateFive == 5)
{
String root;
String libraryName = "test.dll";
if(System.getProperty("os.name").toLowerCase().indexOf("win") >= 0)
{
/* running on Windows */
root = "C:\\libs\\";
}
else
{
/* running on non-Windows */
root = "/home/user/libs/";
}
/* FIX: Use System.load() which allows you to specify a full path to the library */
System.load(root + libraryName);
}
}
public void good() throws Throwable
{
good1();
good2();
}
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"anhtluet12@gmail.com"
] |
anhtluet12@gmail.com
|
154b6057d9d1d8e3f600dc47fd3e3b305c0b1708
|
86505462601eae6007bef6c9f0f4eeb9fcdd1e7b
|
/bin/modules/b2b-commerce/b2bcommerce/src/de/hybris/platform/b2b/util/QuarterRange.java
|
6e8e6a1fec6f326000733ebe907292411411c7b6
|
[] |
no_license
|
jp-developer0/hybrisTrail
|
82165c5b91352332a3d471b3414faee47bdb6cee
|
a0208ffee7fee5b7f83dd982e372276492ae83d4
|
refs/heads/master
| 2020-12-03T19:53:58.652431
| 2020-01-02T18:02:34
| 2020-01-02T18:02:34
| 231,430,332
| 0
| 4
| null | 2020-08-05T22:46:23
| 2020-01-02T17:39:15
| null |
UTF-8
|
Java
| false
| false
| 2,143
|
java
|
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package de.hybris.platform.b2b.util;
import java.util.Calendar;
import org.apache.log4j.Logger;
/**
* The Class B2BQuarterRange.
*
*
*/
public class QuarterRange implements TimeRange
{
@SuppressWarnings("unused")
private static final Logger LOG = Logger.getLogger(QuarterRange.class.getName());
/**
* @see TimeRange#getEndOfRange(Calendar)
*/
public Calendar getEndOfRange(final Calendar calendar)
{
final Integer[] borderMonths = getQuarterBorderMonths(calendar);
calendar.set(calendar.get(Calendar.YEAR), borderMonths[1].intValue(), calendar.getActualMaximum(Calendar.DAY_OF_MONTH), 23,
59, 59);
return calendar;
}
/**
* @see TimeRange#getStartOfRange(Calendar)
*/
public Calendar getStartOfRange(final Calendar calendar)
{
final Integer[] borderMonths = getQuarterBorderMonths(calendar);
calendar.set(calendar.get(Calendar.YEAR), borderMonths[0].intValue(), calendar.getActualMinimum(Calendar.DAY_OF_MONTH), 0,
0, 0);
return calendar;
}
/**
* Gets the quarter of year as integer.
*
* @param calendar
* the calendar
* @return the quarter
*/
protected Integer[] getQuarterBorderMonths(final Calendar calendar)
{
final int month = calendar.get(Calendar.MONTH);
Integer[] result = null;
if (month >= Calendar.JANUARY && month <= Calendar.MARCH)
{
result = new Integer[]
{ Integer.valueOf(Calendar.JANUARY), Integer.valueOf(Calendar.MARCH) };
}
else if (month >= Calendar.APRIL && month <= Calendar.JUNE)
{
result = new Integer[]
{ Integer.valueOf(Calendar.APRIL), Integer.valueOf(Calendar.JUNE) };
}
else if (month >= Calendar.JULY && month <= Calendar.SEPTEMBER)
{
result = new Integer[]
{ Integer.valueOf(Calendar.JULY), Integer.valueOf(Calendar.SEPTEMBER) };
}
else if (month >= Calendar.OCTOBER && month <= Calendar.DECEMBER)
{
result = new Integer[]
{ Integer.valueOf(Calendar.OCTOBER), Integer.valueOf(Calendar.DECEMBER) };
}
return result;
}
}
|
[
"juan.gonzalez.working@gmail.com"
] |
juan.gonzalez.working@gmail.com
|
0bf97258401d305c6ae75b6159e7f86dc8e0af08
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-ws/results/XRENDERING-418-22-19-Single_Objective_GGA-WeightedSum/org/xwiki/rendering/wikimodel/xhtml/filter/DefaultXMLFilter_ESTest.java
|
ee8fc02f930ad804de88e5b32f7e9d758093c4d7
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 581
|
java
|
/*
* This file was automatically generated by EvoSuite
* Tue Mar 31 06:04:57 UTC 2020
*/
package org.xwiki.rendering.wikimodel.xhtml.filter;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class DefaultXMLFilter_ESTest extends DefaultXMLFilter_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
3c229fb3a65b42852a1ad8ba1b610aaea3b93b23
|
717f3a1df4928844632fea3d84ef1101c2f4d790
|
/doutu/src/main/java/com/wengmengfan/doutu/presenter/impl/Meinvha_TitlePresenter.java
|
602ffcb4bbc568193f9d48b9b0f54d57185b72df
|
[] |
no_license
|
sayid0927/QuShuWang
|
1a22bafc58e6d050c169ea98baf15d1f3131d975
|
b079a5405ce445286af8c0fff7b068c7dc31724a
|
refs/heads/master
| 2021-04-27T13:27:29.545846
| 2018-03-23T10:04:59
| 2018-03-23T10:04:59
| 122,441,219
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,023
|
java
|
/**
* Copyright 2016 JustWayward Team
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.wengmengfan.doutu.presenter.impl;
import com.wengmengfan.doutu.api.Api;
import com.wengmengfan.doutu.base.RxPresenter;
import com.wengmengfan.doutu.bean.FenleiImgBean;
import com.wengmengfan.doutu.presenter.contract.Meinvha_TitleContract;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import rx.Observable;
import rx.Observer;
import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
public class Meinvha_TitlePresenter extends RxPresenter<Meinvha_TitleContract.View> implements Meinvha_TitleContract.Presenter<Meinvha_TitleContract.View> {
private Api bookApi;
public static boolean isLastSyncUpdateed = false;
@Inject
public Meinvha_TitlePresenter(Api bookApi) {
this.bookApi = bookApi;
}
@Override
public void Fetch_Fenlei_Img(final String url) {
Observable.create(new Observable.OnSubscribe< List<FenleiImgBean>>() {
@Override
public void call(Subscriber<? super List<FenleiImgBean>> subscriber) {
//在call方法中执行异步任务
List<FenleiImgBean> fenleiLeimuBeanList = new ArrayList<>();
try {
Document doc = Jsoup.connect(url).get();
Elements manhua = doc.select("div.fenlei_img");
String html = manhua.html();
Elements document = Jsoup.parse(html).getElementsByTag("li");
for(int i=0;i<document.size();i++){
FenleiImgBean fenleiLeimuBean = new FenleiImgBean();
fenleiLeimuBean.setImgUrl(document.get(i).select("img").attr("src"));
fenleiLeimuBean.setUrl(document.get(i).select("a").attr("href"));
fenleiLeimuBean.setBookName(document.get(i).select("p").text());
fenleiLeimuBean.setBookNum(document.get(i).select("b").text());
fenleiLeimuBeanList.add(fenleiLeimuBean);
}
} catch (Exception e) {
//注意:如果异步任务中需要抛出异常,在执行结果中处理异常。需要将异常转化未RuntimException
throw new RuntimeException(e);
}
//调用subscriber#onNext方法将执行结果返回
subscriber.onNext(fenleiLeimuBeanList);
//调用subscriber#onCompleted方法完成异步任务
subscriber.onCompleted();
}
}).subscribeOn(Schedulers.io())//指定异步任务在IO线程运行
.observeOn(AndroidSchedulers.mainThread())//制定执行结果在主线程运行
.subscribe(new Observer<List<FenleiImgBean>>() {
@Override
public void onCompleted() {
}
@Override
public void onError(Throwable e) {
}
@Override
public void onNext(List<FenleiImgBean> data) {
if (data != null && mView != null ) {
mView.Fetch_Fenlei_Img_Success(data);
}
}
});
}
}
|
[
"13113639501@163.com"
] |
13113639501@163.com
|
b30fdcc66f478f1a2583809253aa16346322d9bc
|
3180c5a659d5bfdbf42ab07dfcc64667f738f9b3
|
/src/unk/com/zing/zalo/ui/abn.java
|
da82ecdb685371dac737f86f573c5f070d4b2e67
|
[] |
no_license
|
tinyx3k/ZaloRE
|
4b4118c789310baebaa060fc8aa68131e4786ffb
|
fc8d2f7117a95aea98a68ad8d5009d74e977d107
|
refs/heads/master
| 2023-05-03T16:21:53.296959
| 2013-05-18T14:08:34
| 2013-05-18T14:08:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 486
|
java
|
package unk.com.zing.zalo.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
class abn
implements DialogInterface.OnClickListener
{
abn(MyInfoActivity paramMyInfoActivity)
{
}
public void onClick(DialogInterface paramDialogInterface, int paramInt)
{
this.anA.kA();
}
}
/* Location: /home/danghvu/0day/Zalo/Zalo_1.0.8_dex2jar.jar
* Qualified Name: com.zing.zalo.ui.abn
* JD-Core Version: 0.6.2
*/
|
[
"danghvu@gmail.com"
] |
danghvu@gmail.com
|
1044bc335b4377a79e14b1e55ee84d2b80a94be4
|
65d566974ce06d186b76e773c1af05a3d8c72d42
|
/cpa/src/main/java/com/taoding/domain/ticket/TicketList.java
|
6751dbdf0d86d2be9cecf8faabc407ca5847c861
|
[] |
no_license
|
ghyaolong/muniubox
|
c6dc7fde31b4db1720dcdb5f4f36863e45a96948
|
4fcb01b32174e34103cacd973ea7b27b0f129ff1
|
refs/heads/master
| 2021-03-31T01:01:21.040898
| 2018-03-13T09:07:33
| 2018-03-13T09:07:33
| 125,023,825
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,367
|
java
|
package com.taoding.domain.ticket;
import java.util.Date;
import org.hibernate.validator.constraints.NotEmpty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.taoding.common.annotation.ValidationBean;
import lombok.Data;
@Data
@ValidationBean
public class TicketList {
// 主键
private String id;
// 账簿ID
@NotEmpty(message="账簿ID不能为空")
private String bookId;
// 会计ID
private String accountingId;
// 父节点ID
private String parentId;
// 父节点组
private String parentIds;
// 科目内容
private String subjectContent;
// 名称
@NotEmpty(message="名称不能为空")
private String name;
// 结算方式(0,往来款结算 1.现金结算 2.第三方支付)
private Byte clearingType;
// 凭证生产的策略(0.无策略规则 1.合并分录 2.合并凭证)
private Byte proofStrategy;
// 辅助核算项 (0.false 1.true)
private Byte usinessAccounting;
// 是否为预设
private Byte isPreset;
// 是否为默认票据目录
private Byte isDefault;
// 删除
private Byte deleted;
// 创建时间
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
private Date created;
// 更新时间
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
private Date updated;
}
|
[
"289911401@qq.com"
] |
289911401@qq.com
|
f01510df84665474c2c9d41c71adeff534e9bb41
|
f40c8e95461f408c8a0b483573a2e6aff0c469dd
|
/fractions/microprofile/microprofile-openapi/src/test/java/org/wildfly/swarm/microprofile/openapi/runtime/OpenApiAnnotationScannerTest.java
|
7841d7050d8a66163a69a4d7bc92a8def03b4647
|
[
"Apache-2.0"
] |
permissive
|
mmusgrov/wildfly-swarm
|
5d9361f4e3cfe05031d3cf7bf9050c6cc8839171
|
04b6554122ff4bad7e6b8f53d9c442c5df9919a1
|
refs/heads/master
| 2020-03-11T09:37:13.627129
| 2018-04-17T09:17:04
| 2018-04-17T09:17:04
| 129,917,385
| 0
| 0
|
Apache-2.0
| 2018-04-17T14:30:12
| 2018-04-17T14:30:12
| null |
UTF-8
|
Java
| false
| false
| 1,721
|
java
|
/**
* Copyright 2018 Red Hat, Inc, and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wildfly.swarm.microprofile.openapi.runtime;
import org.junit.Assert;
import org.junit.Test;
/**
* @author eric.wittmann@gmail.com
*/
public class OpenApiAnnotationScannerTest {
/**
* Test method for {@link org.wildfly.swarm.microprofile.openapi.runtime.OpenApiAnnotationScanner#makePath(java.lang.String[])}.
*/
@Test
public void testMakePath() {
String path = OpenApiAnnotationScanner.makePath("", "", "");
Assert.assertEquals("/", path);
path = OpenApiAnnotationScanner.makePath("/", "/");
Assert.assertEquals("/", path);
path = OpenApiAnnotationScanner.makePath("", "/bookings");
Assert.assertEquals("/bookings", path);
path = OpenApiAnnotationScanner.makePath("/api", "/bookings");
Assert.assertEquals("/api/bookings", path);
path = OpenApiAnnotationScanner.makePath("api", "bookings");
Assert.assertEquals("/api/bookings", path);
path = OpenApiAnnotationScanner.makePath("/", "/bookings", "{id}");
Assert.assertEquals("/bookings/{id}", path);
}
}
|
[
"ken@kenfinnigan.me"
] |
ken@kenfinnigan.me
|
37fc165d8ceae871515ae600b3e0af670910bf3f
|
5e224ff6d555ee74e0fda6dfa9a645fb7de60989
|
/database/src/main/java/adila/db/hwy6002du_huawei20y6002du151.java
|
f284b095a298edd81be7f42854f75c10568c6e5a
|
[
"MIT"
] |
permissive
|
karim/adila
|
8b0b6ba56d83f3f29f6354a2964377e6197761c4
|
00f262f6d5352b9d535ae54a2023e4a807449faa
|
refs/heads/master
| 2021-01-18T22:52:51.508129
| 2016-11-13T13:08:04
| 2016-11-13T13:08:04
| 45,054,909
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 232
|
java
|
// This file is automatically generated.
package adila.db;
/*
* Huawei Y600
*
* DEVICE: HWY600-U
* MODEL: HUAWEI Y600-U151
*/
final class hwy6002du_huawei20y6002du151 {
public static final String DATA = "Huawei|Y600|";
}
|
[
"keldeeb@gmail.com"
] |
keldeeb@gmail.com
|
989d09c5525beb9c288262042aa4385f02d07fc0
|
e6ff41c620db6ca522291088de3a8ee9a4b40127
|
/PWS/HWs/Project/BookStore/build/generated-sources/jax-ws/bookpublisherUSA/jaxws/FindBooks.java
|
8f623891f1d8cd30b1d0d22f5889c8b0d3b59a7c
|
[] |
no_license
|
WinLAFS/kthsedsav
|
0df61c7ccc2de6720d880628a92673027e615f9a
|
e2d6347ac87502b40d394b380e2c9c302f6de5ef
|
refs/heads/master
| 2020-06-06T17:27:38.779205
| 2010-05-19T21:07:45
| 2010-05-19T21:07:45
| 35,384,630
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,687
|
java
|
package bookpublisherUSA.jaxws;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlRootElement(name = "findBooks", namespace = "http://bookpublisherUSA/")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "findBooks", namespace = "http://bookpublisherUSA/", propOrder = {
"arg0",
"arg1",
"arg2"
})
public class FindBooks {
@XmlElement(name = "arg0", namespace = "")
private String arg0;
@XmlElement(name = "arg1", namespace = "")
private String arg1;
@XmlElement(name = "arg2", namespace = "")
private String arg2;
/**
*
* @return
* returns String
*/
public String getArg0() {
return this.arg0;
}
/**
*
* @param arg0
* the value for the arg0 property
*/
public void setArg0(String arg0) {
this.arg0 = arg0;
}
/**
*
* @return
* returns String
*/
public String getArg1() {
return this.arg1;
}
/**
*
* @param arg1
* the value for the arg1 property
*/
public void setArg1(String arg1) {
this.arg1 = arg1;
}
/**
*
* @return
* returns String
*/
public String getArg2() {
return this.arg2;
}
/**
*
* @param arg2
* the value for the arg2 property
*/
public void setArg2(String arg2) {
this.arg2 = arg2;
}
}
|
[
"shumanski@9a21e158-ce10-11de-8d2e-8bf2cb4fc7ae"
] |
shumanski@9a21e158-ce10-11de-8d2e-8bf2cb4fc7ae
|
499c2ce89cf583922fbd9d72feba1f012dcaa97b
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XRENDERING-418-37-7-NSGA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/wysiwyg/server/internal/converter/DefaultHTMLConverter_ESTest_scaffolding.java
|
01e57d49cfd3de82263643905f5f95413fd43b3b
|
[] |
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
| 468
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Wed Apr 01 21:45:14 UTC 2020
*/
package org.xwiki.wysiwyg.server.internal.converter;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class DefaultHTMLConverter_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.