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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f89155da2ad4e17f618edd44369dee883b9269cb
|
e418cd85b1280ad02495eff32096529518cefb11
|
/app/src/main/java/com/icss/shopmax/Model/Rent_Car_Data.java
|
e57b775983f9e8bae9fb8b051146df805276ddf3
|
[] |
no_license
|
LokeshInfo/Shop_Max_Dual
|
9dcd8cad02549de73403ac590d3b2242d5e630c9
|
9c7c745147bc88e40a99b661eb4ec8c1476f54eb
|
refs/heads/master
| 2021-04-20T23:44:37.370545
| 2020-04-20T09:08:54
| 2020-04-20T09:08:54
| 249,726,703
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 935
|
java
|
package com.icss.shopmax.Model;
public class Rent_Car_Data {
private String name;
private String car_model;
private String price;
private String type;
public Rent_Car_Data(String name, String car_model, String price, String type) {
this.name = name;
this.car_model = car_model;
this.price = price;
this.type = type;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCar_model() {
return car_model;
}
public void setCar_model(String car_model) {
this.car_model = car_model;
}
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
}
|
[
"lokesh.gadekar@infocentroidtech.com"
] |
lokesh.gadekar@infocentroidtech.com
|
bc458b5db7a9fb59176808cbe62b3dbf146b0df3
|
343773ae835dbbaefde9f653f9211570bd8455d6
|
/src/api/java/thaumcraft/api/aspects/AspectRegistryEvent.java
|
f671ccf092a3eab2d26ba935a567db782cc0f1ed
|
[
"MIT"
] |
permissive
|
DaedalusGame/EmbersRekindled
|
a06895d5bc3d0cf6739965828eab96edcdd35a78
|
a2437713ea29ee9ca76b3e14f6e67f8e8862ccaa
|
refs/heads/rekindled
| 2022-05-01T12:03:20.268625
| 2021-03-03T19:13:27
| 2021-03-03T19:13:27
| 135,477,242
| 41
| 37
|
MIT
| 2022-03-26T17:47:02
| 2018-05-30T17:38:40
|
Java
|
UTF-8
|
Java
| false
| false
| 737
|
java
|
package thaumcraft.api.aspects;
import net.minecraftforge.fml.common.eventhandler.Event;
/**
* This event is called when Thaumcraft is ready to accept the registration of aspects associated with items or entities.
* Subscribe to this event like you would any other forge event. The <b>register</b> object contains the methods you use to register aspects.
* <p><i>IMPORTANT: Do NOT instantiate this class or AspectEventProxy and use the methods directly - there is no guarantee that they will work like you expect.</i>
*/
public class AspectRegistryEvent extends Event {
/** this should always be set by TC itself - do not assign your own proxy */
public AspectEventProxy register;
public AspectRegistryEvent() {
}
}
|
[
"bordlistian@hotmail.de"
] |
bordlistian@hotmail.de
|
76da2efab00bff60a613ae7241357e1678eb5617
|
f37aea479e86301b7e8160a5f2eb25012ddf2969
|
/src/net/pixelcade/virtualautominer/Task.java
|
a5a1ac50e7f5b9db44b3b4342c53ff2e4af7b4e6
|
[] |
no_license
|
Unknowncall/VirtualAutoMiner
|
58aaf8dc0cce20ebcf059e8d2d2c16284fbe5543
|
b4f6b8aebdada5f5249204d138ca956e32e0df3a
|
refs/heads/master
| 2021-05-13T14:41:33.818775
| 2018-01-14T23:41:38
| 2018-01-14T23:41:38
| 116,746,960
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,190
|
java
|
package net.pixelcade.virtualautominer;
import java.text.DecimalFormat;
import org.bukkit.entity.Player;
import com.vk2gpz.tokenenchant.api.TokenEnchantAPI;
import net.md_5.bungee.api.ChatColor;
public class Task implements Runnable {
private VirtualAutoMiner plugin;
public Task(VirtualAutoMiner virtualAutoMiner) {
this.plugin = virtualAutoMiner;
}
@Override
public void run() {
for (Player player : this.plugin.getServer().getOnlinePlayers()) {
if (this.plugin.getSave().getString("players." + player.getUniqueId().toString()) != null) {
if (this.plugin.getSave().getInt("players." + player.getUniqueId().toString() + ".amount") > 0) {
double payout = this.plugin.getSave()
.getInt("players." + player.getUniqueId().toString() + ".amount")
* this.plugin.getProductivityPerMiner();
VirtualAutoMiner.getEconomy().depositPlayer(player, (payout * 5.00));
DecimalFormat df2 = new DecimalFormat("0.00");
df2.setGroupingUsed(true);
df2.setGroupingSize(3);
double tokenPayout = this.plugin.getSave()
.getInt("players." + player.getUniqueId().toString() + ".amount")
* VirtualAutoMiner.tokenProductivityPerMiner;
TokenEnchantAPI.getInstance().addTokens(player, tokenPayout * 5);
if (!(this.plugin.getSave().getBoolean("players." + player.getUniqueId().toString() + ".silentMessage"))) {
player.sendMessage(ChatColor.GRAY + "" + ChatColor.STRIKETHROUGH + "-------" + ChatColor.RESET + " " + ChatColor.GREEN + "AutoMiner Payout " + ChatColor.GRAY + "" + ChatColor.STRIKETHROUGH + "-------");
player.sendMessage("");
player.sendMessage(ChatColor.GREEN + "$: " + ChatColor.YELLOW + df2.format(payout * 5));
player.sendMessage(ChatColor.GREEN + "✪: " + ChatColor.YELLOW + tokenPayout * 5);
player.sendMessage("");
player.sendMessage(ChatColor.GREEN + "" + ChatColor.BOLD + "TIP:");
player.sendMessage(ChatColor.GRAY + "/am silent to disable this.");
player.sendMessage("");
player.sendMessage(ChatColor.GRAY + "" + ChatColor.STRIKETHROUGH + "------------------------------");
}
}
}
}
}
}
|
[
"unconfigured@null.spigotmc.org"
] |
unconfigured@null.spigotmc.org
|
302285bff0f7385b0c32b1183f3719c66d31e709
|
ac9755d08b16d9a7ae3f7f97858889855068ad53
|
/lang/lucene-chinese/src/test/java/org/carrot2/language/chinese/AbstractLanguageComponentsTest.java
|
f4aa5d045eaf064a6c8044f1d982cf32657859a9
|
[
"LicenseRef-scancode-bsd-ack-carrot2",
"BSD-3-Clause",
"Apache-2.0"
] |
permissive
|
rahulanishetty/carrot2
|
febaddececa6c18f435645ae74438e89561ab0ae
|
cb4adcc3b4ea030f4b64e2d0b881f43b51a90ae6
|
refs/heads/master
| 2022-02-19T03:18:34.730395
| 2022-01-10T08:32:00
| 2022-01-10T08:32:04
| 91,449,061
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,254
|
java
|
/*
* Carrot2 project.
*
* Copyright (C) 2002-2021, Dawid Weiss, Stanisław Osiński.
* All rights reserved.
*
* Refer to the full license file "carrot2.LICENSE"
* in the root folder of the repository checkout or at:
* https://www.carrot2.org/carrot2.LICENSE
*/
package org.carrot2.language.chinese;
import static org.junit.Assert.assertNotNull;
import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;
import org.assertj.core.api.Assertions;
import org.carrot2.language.LanguageComponents;
import org.carrot2.language.Stemmer;
import org.carrot2.language.StopwordFilter;
import org.carrot2.language.Tokenizer;
import org.carrot2.util.MutableCharArray;
import org.junit.Test;
public abstract class AbstractLanguageComponentsTest {
protected final LanguageComponents components;
private final String[][] stemmingPairs;
private final String[] stopWords;
AbstractLanguageComponentsTest(String language, String[] stopWords, String[][] stemmingPairs)
throws IOException {
this.components = LanguageComponents.loader().load().language(language);
this.stemmingPairs = stemmingPairs;
this.stopWords = stopWords;
}
/** */
@Test
public void testStemmerAvailable() {
assertNotNull(components.get(Stemmer.class));
}
/** */
@Test
public void testStemming() {
final Stemmer stemmer = components.get(Stemmer.class);
for (String[] pair : stemmingPairs) {
CharSequence stem = stemmer.stem(pair[0]);
Assertions.assertThat(stem == null ? null : stem.toString()).isEqualTo(pair[1]);
}
}
/** */
@Test
public void testCommonWords() {
StopwordFilter wordFilter = components.get(StopwordFilter.class);
for (String word : stopWords) {
Assertions.assertThat(wordFilter.test(new MutableCharArray(word))).as(word).isFalse();
}
}
protected List<String> tokenize(Tokenizer tokenizer, String input) throws IOException {
tokenizer.reset(new StringReader(input));
MutableCharArray buffer = new MutableCharArray();
ArrayList<String> tokens = new ArrayList<>();
while (tokenizer.nextToken() >= 0) {
tokenizer.setTermBuffer(buffer);
tokens.add(buffer.toString());
}
return tokens;
}
}
|
[
"dawid.weiss@carrotsearch.com"
] |
dawid.weiss@carrotsearch.com
|
01cae1fb57830f71e53f815a427d6122a4003098
|
17537c091572a94c58975214094fdfeedb57fde1
|
/core/server/clientProject/commonClient/src/main/java/com/home/commonClient/net/response/login/ClientHotfixResponse.java
|
d20e8986061b541e7937e4fed29c321381f29b46
|
[
"Apache-2.0"
] |
permissive
|
mengtest/home3
|
dc2e5f910bbca6e536ded94d3f749671f0ca76d5
|
a15a63694918483b2e4853edab197b5cdddca560
|
refs/heads/master
| 2023-01-29T13:49:23.822515
| 2020-12-11T10:17:39
| 2020-12-11T10:17:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,088
|
java
|
package com.home.commonClient.net.response.login;
import com.home.commonBase.data.login.ClientVersionData;
import com.home.commonClient.constlist.generate.GameResponseType;
import com.home.commonClient.net.base.GameResponse;
import com.home.shine.bytes.BytesReadStream;
import com.home.shine.support.DataWriter;
import com.home.shine.support.collection.IntObjectMap;
import com.home.shine.support.pool.DataPool;
/** 客户端版本热更新消息(generated by shine) */
public class ClientHotfixResponse extends GameResponse
{
/** 数据类型ID */
public static final int dataID=GameResponseType.ClientHotfix;
/** 客户端版本 */
public ClientVersionData clientVersion;
public ClientHotfixResponse()
{
_dataID=GameResponseType.ClientHotfix;
}
/** 获取数据类名 */
@Override
public String getDataClassName()
{
return "ClientHotfixResponse";
}
/** 执行 */
@Override
protected void execute()
{
}
/** 读取字节流(完整版) */
@Override
protected void toReadBytesFull(BytesReadStream stream)
{
super.toReadBytesFull(stream);
stream.startReadObj();
this.clientVersion=new ClientVersionData();
this.clientVersion.readBytesFull(stream);
stream.endReadObj();
}
/** 读取字节流(简版) */
@Override
protected void toReadBytesSimple(BytesReadStream stream)
{
super.toReadBytesSimple(stream);
this.clientVersion=new ClientVersionData();
this.clientVersion.readBytesSimple(stream);
}
/** 转文本输出 */
@Override
protected void toWriteDataString(DataWriter writer)
{
super.toWriteDataString(writer);
writer.writeTabs();
writer.sb.append("clientVersion");
writer.sb.append(':');
if(this.clientVersion!=null)
{
this.clientVersion.writeDataString(writer);
}
else
{
writer.sb.append("ClientVersionData=null");
}
writer.writeEnter();
}
/** 回池 */
@Override
protected void toRelease(DataPool pool)
{
super.toRelease(pool);
this.clientVersion=null;
}
}
|
[
"359944951@qq.com"
] |
359944951@qq.com
|
361df97718c238b8ac3ba616d2adcd87b9114e12
|
cfc60fc1148916c0a1c9b421543e02f8cdf31549
|
/src/testcases/CWE789_Uncontrolled_Mem_Alloc/CWE789_Uncontrolled_Mem_Alloc__getQueryStringServlet_53d.java
|
fdbb176624fa51406685c61253a1dfbac2e1554a
|
[
"LicenseRef-scancode-public-domain"
] |
permissive
|
zhujinhua/GitFun
|
c77c8c08e89e61006f7bdbc5dd175e5d8bce8bd2
|
987f72fdccf871ece67f2240eea90e8c1971d183
|
refs/heads/master
| 2021-01-18T05:46:03.351267
| 2012-09-11T16:43:44
| 2012-09-11T16:43:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,554
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE789_Uncontrolled_Mem_Alloc__getQueryStringServlet_53d.java
Label Definition File: CWE789_Uncontrolled_Mem_Alloc.int.label.xml
Template File: sources-sink-53d.tmpl.java
*/
/*
* @description
* CWE: 789 Uncontrolled Memory Allocation
* BadSource: getQueryStringServlet Parse id param out of the querystring without getParam
* GoodSource: A hardcoded non-zero, non-min, non-max, even number
* Sinks: HashMap
* BadSink : Create a HashMap using data as the initial size
* Flow Variant: 53 Data flow: data passed as an argument from one method through two others to a fourth; all four functions are in different classes in the same package
*
* */
package testcases.CWE789_Uncontrolled_Mem_Alloc;
import testcasesupport.*;
import javax.servlet.http.*;
import java.util.HashMap;
public class CWE789_Uncontrolled_Mem_Alloc__getQueryStringServlet_53d
{
public void bad_sink(int data , HttpServletRequest request, HttpServletResponse response) throws Throwable
{
/* POTENTIAL FLAW: Create a HashMap using data as the initial size. data may be very large, creating memory issues */
HashMap list = new HashMap(data);
}
/* goodG2B() - use goodsource and badsink */
public void goodG2B_sink(int data , HttpServletRequest request, HttpServletResponse response) throws Throwable
{
/* POTENTIAL FLAW: Create a HashMap using data as the initial size. data may be very large, creating memory issues */
HashMap list = new HashMap(data);
}
}
|
[
"amitf@chackmarx.com"
] |
amitf@chackmarx.com
|
40fe0885f1945a334f06b52425d23daaead063e2
|
98119c1d07b88c31eee153bef508b4b33c701ae1
|
/.svn/pristine/40/40fe0885f1945a334f06b52425d23daaead063e2.svn-base
|
05a3cfc532ef3faec7360ffe4e45b3f10414d7cb
|
[] |
no_license
|
ghyaolong/spay-admin
|
dc8e8b394f4f3ba0847eae9cec0d3a10d769c5c3
|
024dccd05b8a882e74540d288dd96f89ddf5d2cf
|
refs/heads/master
| 2021-01-21T17:37:25.410908
| 2017-05-21T15:20:46
| 2017-05-21T15:20:46
| 91,966,533
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,277
|
package com.syhbuy.spay.admin.entity;
import java.math.BigDecimal;
public class dispenseBuyRecord {
private String id;//购买记录ID
private String activityId; //活动ID
private BigDecimal buyAmount;//购买金额
private BigDecimal faceValue; //面值
private Long buyTime;//购买时间
private String purchaser;//购买人
private String status;//状态
private String isDel;
private Long delTime;
private String orderId;//订单id
public String getId() {
return id;
}
public void setId(String id) {
this.id = id == null ? null : id.trim();
}
public String getActivityId() {
return activityId;
}
public void setActivityId(String activityId) {
this.activityId = activityId == null ? null : activityId.trim();
}
public BigDecimal getBuyAmount() {
return buyAmount;
}
public void setBuyAmount(BigDecimal buyAmount) {
this.buyAmount = buyAmount;
}
public BigDecimal getFaceValue() {
return faceValue;
}
public void setFaceValue(BigDecimal faceValue) {
this.faceValue = faceValue;
}
public Long getBuyTime() {
return buyTime;
}
public void setBuyTime(Long buyTime) {
this.buyTime = buyTime;
}
public String getPurchaser() {
return purchaser;
}
public void setPurchaser(String purchaser) {
this.purchaser = purchaser == null ? null : purchaser.trim();
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
public String getIsDel() {
return isDel;
}
public void setIsDel(String isDel) {
this.isDel = isDel == null ? null : isDel.trim();
}
public Long getDelTime() {
return delTime;
}
public void setDelTime(Long delTime) {
this.delTime = delTime;
}
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId == null ? null : orderId.trim();
}
}
|
[
"289911401@qq.com"
] |
289911401@qq.com
|
|
a160e48adafd625ce8e6e0f97b7c907c7b58b525
|
004c1c68ab5933be098633eacc158f1b45a1aad1
|
/src/main/java/com/gmail/socraticphoenix/sponge/star/chat/command/conversation/CommandPrompt.java
|
2074599a2a045b3fac3f30545522f7ef862a3b10
|
[] |
no_license
|
intronate67/StarAPI
|
0a269e5f00769a7911384227291ad42510339302
|
06eaec7c93d3345e3abfdb3d97a737d2a47d6dfd
|
refs/heads/master
| 2021-01-22T16:45:00.016330
| 2015-12-24T03:50:47
| 2015-12-24T03:50:47
| 48,661,770
| 0
| 0
| null | 2015-12-27T21:51:45
| 2015-12-27T21:51:44
| null |
UTF-8
|
Java
| false
| false
| 2,589
|
java
|
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 socraticphoenix@gmail.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
* substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
* NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* @author Socratic_Phoenix (socraticphoenix@gmail.com)
*/
package com.gmail.socraticphoenix.sponge.star.chat.command.conversation;
import com.gmail.socraticphoenix.sponge.star.chat.arguments.StarArgumentValue;
import com.gmail.socraticphoenix.sponge.star.chat.condition.Verifier;
import com.gmail.socraticphoenix.sponge.star.chat.conversation.Conversation;
import com.gmail.socraticphoenix.sponge.star.chat.conversation.Prompt;
import java.util.Deque;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.Texts;
import org.spongepowered.api.text.format.TextColors;
public class CommandPrompt extends Prompt {
private Deque<Prompt> prompts;
private String argName;
private Verifier verifier;
public CommandPrompt(Deque<Prompt> prompts, String argName, Verifier verifier) {
this.prompts = prompts;
this.argName = argName;
this.verifier = verifier;
}
@Override
public Verifier getVerifier() {
return this.verifier;
}
@Override
public Text getMessage() {
return Texts.builder("Please enter '".concat(this.argName).concat("'")).color(TextColors.GOLD).build();
}
@Override
public Prompt process(StarArgumentValue value, Conversation conversation) {
conversation.getArguments().put(this.argName, value.getValue().orElse(null));
return this.prompts.isEmpty() ? Prompt.END : this.prompts.pollFirst();
}
}
|
[
"socraticphoenix@gmail.com"
] |
socraticphoenix@gmail.com
|
2a50f2b53ddec8be24d16825d26a2a45ae4d5141
|
008e36b8328909c10deb72a6ce6c951d648498c7
|
/tracker-storm/src/main/java/com/tracker/storm/drpc/drpcprocess/Drpc_Example.java
|
65092f6698ddb9e7a6ea2e332b389914d758d93c
|
[] |
no_license
|
luxr123/UserAnalysis
|
3f090e32c35da31fd98412df673db5607a95b32c
|
e2c5740d5ba0db69bf6d9908714e2c3425702506
|
refs/heads/master
| 2021-01-10T19:58:49.544112
| 2014-10-31T02:04:22
| 2014-10-31T02:04:22
| 25,714,894
| 0
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,176
|
java
|
package com.tracker.storm.drpc.drpcprocess;
//this is no longer used just for sampling
//Drpc request field value
//CLIENT-->DRPC SERVER-->TRANSPORT BOLT-->REAL TIME BOLT -->this-->Aggregate Bolt-->CLIENT
import java.io.Serializable;
import java.util.Calendar;
import java.util.Properties;
import java.util.Set;
import com.tracker.common.utils.ConfigExt;
import com.tracker.common.utils.StringUtil;
import com.tracker.storm.drpc.drpcresult.DrpcResult;
public class Drpc_Example extends DrpcProcess implements Serializable{
/**
*
*/
private static final long serialVersionUID = -7654832864335215661L;
private Properties m_properties;
public static String ProcessFunc = "toprecord";
public Drpc_Example(){
// get cluster infomation
String hdfsLocation = java.lang.System.getenv("HDFS_LOCATION");
String configFile = java.lang.System.getenv("COMMON_CONFIG");
m_properties = ConfigExt.getProperties(hdfsLocation,
configFile);
}
@Override
public boolean isProcessable(String input) {
// TODO Auto-generated method stub
boolean retVal = false;
String splits[] = input.split(StringUtil.ARUGEMENT_SPLIT);
if(input.contains("toprecord") && splits.length == 6){ //toprecord:ip/cost/:Engine:SearchType:startIndex:endIndex
retVal = true;
}
return retVal;
}
@Override
public DrpcResult process(String input, Object localbuff) {
// TODO Auto-generated method stub
// String splits[] = input.split(StringUtil.ARUGEMENT_SPLIT);
// Calendar cal = Calendar.getInstance();
// TopRecordResult trr = new TopRecordResult();
// String key = (cal.get(Calendar.MONTH) + 1) + StringUtil.ARUGEMENT_SPLIT + cal.get(Calendar.DAY_OF_MONTH)
// + StringUtil.ARUGEMENT_SPLIT + splits[1] + StringUtil.ARUGEMENT_SPLIT+ splits[2];
// if(splits[1].equals("ip") || splits[3].equals("")){
//
// }else{
// key += StringUtil.ARUGEMENT_SPLIT + splits[3];
// }
// Set<String> retStr = JedisUtil.getInstance(m_properties).SORTSET.zrevrange(key, Integer.parseInt(splits[4]), Integer.parseInt(splits[5]));
// trr.setString(retStr);
// trr.setTotal(JedisUtil.getInstance(m_properties).SORTSET.zlength(key));
// return trr;
return null;
}
}
|
[
"luxr123@gmail.com"
] |
luxr123@gmail.com
|
e0726350e938059d6e2fa730b638ab59560c5235
|
53efcbcb8210a01c3a57cdc2784926ebc22d6412
|
/src/main/java/br/com/fieesq/model54330/FieEsq05343.java
|
0ea52701cdde3f344be411901c0fbc6606220415
|
[] |
no_license
|
fie23777/frontCercamento
|
d57846ac985f4023a8104a0872ca4a226509bbf2
|
6282f842544ab4ea332fe7802d08cf4e352f0ae3
|
refs/heads/master
| 2021-04-27T17:29:56.793349
| 2018-02-21T10:32:23
| 2018-02-21T10:32:23
| 122,322,301
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 768
|
java
|
package br.com.fieesq.model54330;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
@Entity
public class FieEsq05343 {
@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
private int id;
private String numEsq05343;
@Transient
private String esqParam;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNumEsq05343() {
return numEsq05343;
}
public void setNumEsq05343(String numEsq05343) {
this.numEsq05343 = numEsq05343;
}
public String getEsqParam() {
return esqParam;
}
public void setEsqParam(String esqParam) {
this.esqParam = esqParam;
}
}
|
[
"fie2377@gmail.com"
] |
fie2377@gmail.com
|
f14ae67125e078a96992d16c72cc163a592346e8
|
c827bfebbde82906e6b14a3f77d8f17830ea35da
|
/Development3.0/TeevraServer/platform/businessobject/src/main/java/org/fixprotocol/fixml_5_0_sp2/BidDescReqGrpBlockT.java
|
9ec4cf85c90bff9dc11a4a775c90c7487421cb05
|
[] |
no_license
|
GiovanniPucariello/TeevraCore
|
13ccf7995c116267de5c403b962f1dc524ac1af7
|
9d755cc9ca91fb3ebc5b227d9de6bcf98a02c7b7
|
refs/heads/master
| 2021-05-29T18:12:29.174279
| 2013-04-22T07:44:28
| 2013-04-22T07:44:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,413
|
java
|
package org.fixprotocol.fixml_5_0_sp2;
import java.math.BigDecimal;
import java.math.BigInteger;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for BidDescReqGrp_Block_t complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="BidDescReqGrp_Block_t">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{http://www.fixprotocol.org/FIXML-5-0-SP2}BidDescReqGrpElements"/>
* </sequence>
* <attGroup ref="{http://www.fixprotocol.org/FIXML-5-0-SP2}BidDescReqGrpAttributes"/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BidDescReqGrp_Block_t")
public class BidDescReqGrpBlockT {
@XmlAttribute(name = "BidDescptrTyp")
protected BigInteger bidDescptrTyp;
@XmlAttribute(name = "BidDescptr")
protected String bidDescptr;
@XmlAttribute(name = "SideValuInd")
protected BigInteger sideValuInd;
@XmlAttribute(name = "LqdtyValu")
protected BigDecimal lqdtyValu;
@XmlAttribute(name = "LqdtyNumSecurities")
protected BigInteger lqdtyNumSecurities;
@XmlAttribute(name = "LqdtyPctLow")
protected BigDecimal lqdtyPctLow;
@XmlAttribute(name = "LqdtyPctHigh")
protected BigDecimal lqdtyPctHigh;
@XmlAttribute(name = "EFPTrkngErr")
protected BigDecimal efpTrkngErr;
@XmlAttribute(name = "FairValu")
protected BigDecimal fairValu;
@XmlAttribute(name = "OutsideNdxPct")
protected BigDecimal outsideNdxPct;
@XmlAttribute(name = "ValuOfFuts")
protected BigDecimal valuOfFuts;
/**
* Gets the value of the bidDescptrTyp property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getBidDescptrTyp() {
return bidDescptrTyp;
}
/**
* Sets the value of the bidDescptrTyp property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setBidDescptrTyp(BigInteger value) {
this.bidDescptrTyp = value;
}
/**
* Gets the value of the bidDescptr property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBidDescptr() {
return bidDescptr;
}
/**
* Sets the value of the bidDescptr property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBidDescptr(String value) {
this.bidDescptr = value;
}
/**
* Gets the value of the sideValuInd property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getSideValuInd() {
return sideValuInd;
}
/**
* Sets the value of the sideValuInd property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setSideValuInd(BigInteger value) {
this.sideValuInd = value;
}
/**
* Gets the value of the lqdtyValu property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getLqdtyValu() {
return lqdtyValu;
}
/**
* Sets the value of the lqdtyValu property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setLqdtyValu(BigDecimal value) {
this.lqdtyValu = value;
}
/**
* Gets the value of the lqdtyNumSecurities property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getLqdtyNumSecurities() {
return lqdtyNumSecurities;
}
/**
* Sets the value of the lqdtyNumSecurities property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setLqdtyNumSecurities(BigInteger value) {
this.lqdtyNumSecurities = value;
}
/**
* Gets the value of the lqdtyPctLow property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getLqdtyPctLow() {
return lqdtyPctLow;
}
/**
* Sets the value of the lqdtyPctLow property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setLqdtyPctLow(BigDecimal value) {
this.lqdtyPctLow = value;
}
/**
* Gets the value of the lqdtyPctHigh property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getLqdtyPctHigh() {
return lqdtyPctHigh;
}
/**
* Sets the value of the lqdtyPctHigh property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setLqdtyPctHigh(BigDecimal value) {
this.lqdtyPctHigh = value;
}
/**
* Gets the value of the efpTrkngErr property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getEFPTrkngErr() {
return efpTrkngErr;
}
/**
* Sets the value of the efpTrkngErr property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setEFPTrkngErr(BigDecimal value) {
this.efpTrkngErr = value;
}
/**
* Gets the value of the fairValu property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getFairValu() {
return fairValu;
}
/**
* Sets the value of the fairValu property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setFairValu(BigDecimal value) {
this.fairValu = value;
}
/**
* Gets the value of the outsideNdxPct property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getOutsideNdxPct() {
return outsideNdxPct;
}
/**
* Sets the value of the outsideNdxPct property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setOutsideNdxPct(BigDecimal value) {
this.outsideNdxPct = value;
}
/**
* Gets the value of the valuOfFuts property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getValuOfFuts() {
return valuOfFuts;
}
/**
* Sets the value of the valuOfFuts property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setValuOfFuts(BigDecimal value) {
this.valuOfFuts = value;
}
}
|
[
"ritwik.bose@headstrong.com"
] |
ritwik.bose@headstrong.com
|
34ed07d42150ad4cc31c677a8e7b32262ca1d33d
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/MATH-49b-3-17-Single_Objective_GGA-IntegrationSingleObjective-/org/apache/commons/math/linear/OpenMapRealVector_ESTest.java
|
31fd48b76569e49c6a1d5d759170f7ce249d62ad
|
[
"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
| 1,725
|
java
|
/*
* This file was automatically generated by EvoSuite
* Mon May 18 02:42:33 UTC 2020
*/
package org.apache.commons.math.linear;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.apache.commons.math.linear.OpenMapRealVector;
import org.apache.commons.math.linear.RealVector;
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 OpenMapRealVector_ESTest extends OpenMapRealVector_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
Double[] doubleArray0 = new Double[3];
Double double0 = new Double(0.6299605249474366);
doubleArray0[0] = double0;
Double double1 = new Double(0.6299605249474366);
doubleArray0[1] = double1;
Double double2 = new Double(0.6299605249474366);
doubleArray0[2] = double2;
OpenMapRealVector openMapRealVector0 = new OpenMapRealVector(doubleArray0, (double) doubleArray0[1]);
openMapRealVector0.getDimension();
RealVector realVector0 = openMapRealVector0.mapDivideToSelf((double) doubleArray0[0]);
Double double3 = new Double(0.6299605249474366);
Double double4 = new Double(0.0);
Double double5 = new Double((double) doubleArray0[1]);
OpenMapRealVector openMapRealVector1 = new OpenMapRealVector(doubleArray0, (double) doubleArray0[0]);
realVector0.getDimension();
RealVector realVector1 = openMapRealVector0.mapDivideToSelf(185.043344952252);
// Undeclared exception!
openMapRealVector1.ebeMultiply(realVector1);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
fab4e0e77db32618063b846904261599066f1fc1
|
473b76b1043df2f09214f8c335d4359d3a8151e0
|
/benchmark/bigclonebenchdata_partial/13949581.java
|
749e6bd5f503f268cdab2cb04b5c606743bfcf3f
|
[] |
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
| 420
|
java
|
class c13949581 {
public static String cryptografar(String senha) {
try {
MessageDigest md = MessageDigest.getInstance("MD5");
md.update(senha.getBytes());
BigInteger hash = new BigInteger(1, md.digest());
senha = hash.toString(16);
} catch (NoSuchAlgorithmException ns) {
ns.printStackTrace();
}
return senha;
}
}
|
[
"piyush16066@iiitd.ac.in"
] |
piyush16066@iiitd.ac.in
|
e88965ebeb8812931d308b706bc96bf6b42d0ebd
|
947fc9eef832e937f09f04f1abd82819cd4f97d3
|
/src/apk/e/a/b/E.java
|
3842b2795a0e33420ca11e29d547c3fc350260e7
|
[] |
no_license
|
thistehneisen/cifra
|
04f4ac1b230289f8262a0b9cf7448a1172d8f979
|
d46c6f4764c9d4f64e45c56fa42fddee9b44ff5a
|
refs/heads/master
| 2020-09-22T09:35:57.739040
| 2019-12-01T19:39:59
| 2019-12-01T19:39:59
| 225,136,583
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,265
|
java
|
package e.a.b;
import java.nio.charset.Charset;
/* compiled from: Util */
final class E {
/* renamed from: a reason: collision with root package name */
public static final Charset f7872a = Charset.forName("UTF-8");
public static int a(int i2) {
return ((i2 & 255) << 24) | ((-16777216 & i2) >>> 24) | ((16711680 & i2) >>> 8) | ((65280 & i2) << 8);
}
public static short a(short s) {
short s2 = s & 65535;
return (short) (((s2 & 255) << 8) | ((65280 & s2) >>> 8));
}
public static void a(long j2, long j3, long j4) {
if ((j3 | j4) < 0 || j3 > j2 || j2 - j3 < j4) {
throw new ArrayIndexOutOfBoundsException(String.format("size=%s offset=%s byteCount=%s", new Object[]{Long.valueOf(j2), Long.valueOf(j3), Long.valueOf(j4)}));
}
}
private static <T extends Throwable> void b(Throwable th) throws Throwable {
throw th;
}
public static void a(Throwable th) {
b(th);
throw null;
}
public static boolean a(byte[] bArr, int i2, byte[] bArr2, int i3, int i4) {
for (int i5 = 0; i5 < i4; i5++) {
if (bArr[i5 + i2] != bArr2[i5 + i3]) {
return false;
}
}
return true;
}
}
|
[
"putnins@nils.digital"
] |
putnins@nils.digital
|
d7074a55a17d9f9cb665bf70e834045b8b2b664a
|
f3d2df2f2aff927bad0b6bae713fc93dcbba052c
|
/src/me/daddychurchill/CityWorld/Support/SupportChunk.java
|
ed8eb6f300673589dbab4fc29b5e8773a63592e8
|
[] |
no_license
|
lazareth241/CityWorld
|
dbbb8f709d3df905138c5f58db41339edffeb70b
|
9112f4fb1f50ff30b18bb09c38dced3975038dda
|
refs/heads/master
| 2021-01-16T20:42:59.610649
| 2013-05-24T16:49:45
| 2013-05-24T16:49:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,698
|
java
|
package me.daddychurchill.CityWorld.Support;
import me.daddychurchill.CityWorld.WorldGenerator;
import org.bukkit.Material;
import org.bukkit.World;
public abstract class SupportChunk {
public World world;
public int chunkX;
public int chunkZ;
public int worldX;
public int worldZ;
public int width;
public int height;
// private byte[] ores;
public static final int chunksBlockWidth = 16;
public static final int sectionsPerChunk = 16;
public static final byte airId = (byte) Material.AIR.getId();
public static final byte stoneId = (byte) Material.STONE.getId();
public static final byte ironId = (byte) Material.IRON_ORE.getId();
public static final byte goldId = (byte) Material.GOLD_ORE.getId();
public static final byte lapisId = (byte) Material.LAPIS_ORE.getId();
public static final byte redstoneId = (byte) Material.REDSTONE_ORE.getId();
public static final byte diamondId = (byte) Material.DIAMOND_ORE.getId();
public static final byte coalId = (byte) Material.COAL_ORE.getId();
public static final byte dirtId = (byte) Material.DIRT.getId();
public static final byte grassId = (byte) Material.GRASS.getId();
public static final byte stepId = (byte) Material.STEP.getId();
public static final byte snowId = (byte) Material.SNOW.getId();
public static final byte iceId = (byte) Material.ICE.getId(); // the fluid type
public static final byte waterId = (byte) Material.WATER.getId(); // the fluid type
public static final byte lavaId = (byte) Material.LAVA.getId(); // the fluid type
public static final byte stillWaterId = (byte) Material.STATIONARY_WATER.getId(); // the fluid type
public static final byte stillLavaId = (byte) Material.STATIONARY_LAVA.getId(); // the fluid type
public SupportChunk(WorldGenerator generator) {
super();
world = generator.getWorld();
width = chunksBlockWidth;
height = generator.height;
}
public static int getBlockX(int chunkX, int x) {
return chunkX * chunksBlockWidth + x;
}
public static int getBlockZ(int chunkZ, int z) {
return chunkZ * chunksBlockWidth + z;
}
public final int getBlockX(int x) {
return getOriginX() + x;
}
public final int getBlockZ(int z) {
return getOriginZ() + z;
}
public final int getOriginX() {
return chunkX * width;
}
public final int getOriginZ() {
return chunkZ * width;
}
public abstract int getBlockType(int x, int y, int z);
public abstract void setBlock(int x, int y, int z, byte materialId);
public abstract void setBlocks(int x1, int x2, int y, int z1, int z2, byte materialId);
public abstract void setBlocks(int x, int y1, int y2, int z, byte materialId);
public abstract void clearBlock(int x, int y, int z);
public abstract void clearBlocks(int x, int y1, int y2, int z);
public abstract void clearBlocks(int x1, int x2, int y1, int y2, int z1, int z2);
public final boolean isType(int x, int y, int z, int type) {
return getBlockType(x, y, z) == type;
}
public final boolean isType(int x, int y, int z, Material material) {
return getBlockType(x, y, z) == material.getId();
}
public final boolean isOfTypes(int x, int y, int z, Material ... types) {
int type = getBlockType(x, y, z);
for (Material test : types)
if (type == test.getId())
return true;
return false;
}
public final boolean isOfTypes(int x, int y, int z, int ... types) {
int type = getBlockType(x, y, z);
for (int test : types)
if (type == test)
return true;
return false;
}
public final boolean isEmpty(int x, int y, int z) {
return getBlockType(x, y, z) == airId;
}
public final boolean isPlantable(int x, int y, int z) {
return getBlockType(x, y, z) == grassId;
}
public final boolean isWater(int x, int y, int z) {
return isOfTypes(x, y, z, stillWaterId, waterId);
}
public final boolean isLava(int x, int y, int z) {
return isOfTypes(x, y, z, stillLavaId, lavaId);
}
public final boolean isLiquid(int x, int y, int z) {
return isOfTypes(x, y, z, stillWaterId, stillLavaId, waterId, lavaId, iceId);
}
public final boolean isSurroundedByEmpty(int x, int y, int z) {
return (x > 0 && x < 15 && z > 0 && z < 15) &&
(isEmpty(x - 1, y, z) &&
isEmpty(x + 1, y, z) &&
isEmpty(x, y, z - 1) &&
isEmpty(x, y, z + 1));
}
public final boolean isSurroundedByWater(int x, int y, int z) {
return (x > 0 && x < 15 && z > 0 && z < 15) &&
(isWater(x - 1, y, z) ||
isWater(x + 1, y, z) ||
isWater(x, y, z - 1) ||
isWater(x, y, z + 1));
}
public final void setBlocks(int x, int y1, int y2, int z, byte primaryId, byte secondaryId, MaterialFactory maker) {
maker.placeMaterial(this, primaryId, secondaryId, x, y1, y2, z);
}
public final void setBlocks(int x1, int x2, int y1, int y2, int z1, int z2, byte primaryId, byte secondaryId, MaterialFactory maker) {
for (int x = x1; x < x2; x++) {
for (int z = z1; z < z2; z++) {
setBlocks(x, y1, y2, z, primaryId, secondaryId, maker);
}
}
}
private void drawCircleBlocks(int cx, int cz, int x, int z, int y, byte materialId) {
// Ref: Notes/BCircle.PDF
setBlock(cx + x, y, cz + z, materialId); // point in octant 1
setBlock(cx + z, y, cz + x, materialId); // point in octant 2
setBlock(cx - z - 1, y, cz + x, materialId); // point in octant 3
setBlock(cx - x - 1, y, cz + z, materialId); // point in octant 4
setBlock(cx - x - 1, y, cz - z - 1, materialId); // point in octant 5
setBlock(cx - z - 1, y, cz - x - 1, materialId); // point in octant 6
setBlock(cx + z, y, cz - x - 1, materialId); // point in octant 7
setBlock(cx + x, y, cz - z - 1, materialId); // point in octant 8
}
private void drawCircleBlocks(int cx, int cz, int x, int z, int y1, int y2, byte materialId) {
for (int y = y1; y < y2; y++) {
drawCircleBlocks(cx, cz, x, z, y, materialId);
}
}
private void fillCircleBlocks(int cx, int cz, int x, int z, int y, byte materialId) {
// Ref: Notes/BCircle.PDF
setBlocks(cx - x - 1, cx - x, y, cz - z - 1, cz + z + 1, materialId); // point in octant 5
setBlocks(cx - z - 1, cx - z, y, cz - x - 1, cz + x + 1, materialId); // point in octant 6
setBlocks(cx + z, cx + z + 1, y, cz - x - 1, cz + x + 1, materialId); // point in octant 7
setBlocks(cx + x, cx + x + 1, y, cz - z - 1, cz + z + 1, materialId); // point in octant 8
}
private void fillCircleBlocks(int cx, int cz, int x, int z, int y1, int y2, byte materialId) {
for (int y = y1; y < y2; y++) {
fillCircleBlocks(cx, cz, x, z, y, materialId);
}
}
public final void setCircle(int cx, int cz, int r, int y, byte materialId, boolean fill) {
setCircle(cx, cz, r, y, y + 1, materialId, fill);
}
public final void setCircle(int cx, int cz, int r, int y1, int y2, byte materialId, boolean fill) {
// Ref: Notes/BCircle.PDF
int x = r;
int z = 0;
int xChange = 1 - 2 * r;
int zChange = 1;
int rError = 0;
while (x >= z) {
if (fill)
fillCircleBlocks(cx, cz, x, z, y1, y2, materialId);
else
drawCircleBlocks(cx, cz, x, z, y1, y2, materialId);
z++;
rError += zChange;
zChange += 2;
if (2 * rError + xChange > 0) {
x--;
rError += xChange;
xChange += 2;
}
}
}
public final void setSphere(int cx, int cy, int cz, int r, byte materialId, boolean fill) {
for (int r1 = 1; r1 < r; r1++) {
setCircle(cx, cz, r - r1, cy + r1, materialId, fill);
setCircle(cx, cz, r - r1, cy - r1, materialId, fill);
}
setCircle(cx, cz, r, cy, materialId, fill);
}
}
|
[
"eddie@virtualchurchill.com"
] |
eddie@virtualchurchill.com
|
ca474693a37982ea918bb4bc68b114e9d9f39924
|
082e26b011e30dc62a62fae95f375e4f87d9e99c
|
/docs/weixin_7.0.4_source/反编译源码/反混淆后/src/main/java/com/tencent/p177mm/plugin/game/luggage/p429b/C34286d.java
|
313ad3c3c08084a66308aa787ec4d27d79ea5fc7
|
[] |
no_license
|
xsren/AndroidReverseNotes
|
9631a5aabc031006e795a112b7ac756a8edd4385
|
9202c276fe9f04a978e4e08b08e42645d97ca94b
|
refs/heads/master
| 2021-04-07T22:50:51.072197
| 2019-07-16T02:24:43
| 2019-07-16T02:24:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,437
|
java
|
package com.tencent.p177mm.plugin.game.luggage.p429b;
import android.content.Context;
import com.tencent.luggage.p146d.C37393a.C32183a;
import com.tencent.luggage.p147g.C32192i;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.p177mm.plugin.game.luggage.p432d.C12140e;
import com.tencent.p177mm.plugin.webview.luggage.jsapi.C22840bc.C22841a;
import com.tencent.p177mm.plugin.webview.luggage.jsapi.C46419bd;
import com.tencent.p177mm.plugin.webview.p768b.C35582b;
import com.tencent.p177mm.sdk.platformtools.C4990ab;
import com.tencent.p177mm.sdk.platformtools.C5046bo;
import org.json.JSONArray;
import org.json.JSONObject;
/* renamed from: com.tencent.mm.plugin.game.luggage.b.d */
public class C34286d extends C46419bd<C12140e> {
public final String name() {
return "clearGameData";
}
public final int biG() {
return 1;
}
/* renamed from: b */
public final void mo9618b(C32183a c32183a) {
}
/* renamed from: a */
public final void mo9617a(Context context, String str, C22841a c22841a) {
AppMethodBeat.m2504i(135869);
C4990ab.m7416i("MicroMsg.JsApiClearGameData", "invokeInMM");
JSONObject bQ = C32192i.m52508bQ(str);
if (bQ == null) {
C4990ab.m7412e("MicroMsg.JsApiClearGameData", "data is null");
c22841a.mo26722d("null_data", null);
AppMethodBeat.m2505o(135869);
return;
}
String optString = bQ.optString("preVerifyAppId");
if (C5046bo.isNullOrNil(optString)) {
C4990ab.m7416i("MicroMsg.JsApiClearGameData", "appId is null");
c22841a.mo26722d("appid_null", null);
AppMethodBeat.m2505o(135869);
return;
}
JSONArray optJSONArray = bQ.optJSONArray("keys");
boolean optBoolean = bQ.optBoolean("clearAllData", false);
if (optJSONArray != null && optJSONArray.length() > 0) {
C35582b.cWi().mo56313b(optString, optJSONArray);
c22841a.mo26722d(null, null);
AppMethodBeat.m2505o(135869);
} else if (optBoolean) {
C35582b.cWi().adY(optString);
c22841a.mo26722d(null, null);
AppMethodBeat.m2505o(135869);
} else {
C4990ab.m7416i("MicroMsg.JsApiClearGameData", "keys is null");
c22841a.mo26722d("fail", null);
AppMethodBeat.m2505o(135869);
}
}
}
|
[
"alwangsisi@163.com"
] |
alwangsisi@163.com
|
7dd1174a90b6da2f5ef01818f7aa389b53805e60
|
5d3d78d93c49823a91f5e1e18bd1565893002321
|
/src/main/java/org/gwtproject/i18n/shared/cldr/impl/NumberConstantsImpl_en_TO.java
|
78a0259224222abd1b0b52ab8a6b4c2757cb857f
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
vegegoku/gwt-i18n-cldr
|
ecf38343c0448bab21118c8cdc017ed91b628e71
|
fdf25c7f898993a50ef9d10fe41ccc44c1ee500f
|
refs/heads/master
| 2021-06-11T05:07:57.695293
| 2020-08-27T08:26:12
| 2020-08-27T08:26:12
| 128,426,644
| 2
| 1
| null | 2020-07-17T17:29:11
| 2018-04-06T17:38:54
|
Java
|
UTF-8
|
Java
| false
| false
| 2,382
|
java
|
// /*
// * Copyright 2012 Google Inc.
// *
// * Licensed under the Apache License, Version 2.0 (the "License"); you may not
// * use this file except in compliance with the License. You may obtain a copy of
// * the License at
// *
// * http://www.apache.org/licenses/LICENSE-2.0
// *
// * Unless required by applicable law or agreed to in writing, software
// * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// * License for the specific language governing permissions and limitations under
// * the License.
// */
//
package org.gwtproject.i18n.shared.cldr.impl;
import java.lang.Override;
import java.lang.String;
import javax.annotation.Generated;
import org.gwtproject.i18n.shared.cldr.NumberConstantsImpl;
@Generated("gwt-cldr-importer : org.gwtproject.tools.cldr.NumberConstantsProcessor, CLDR version : release-34")
public class NumberConstantsImpl_en_TO implements NumberConstantsImpl {
@Override
public String notANumber() {
return "NaN";
}
@Override
public String decimalPattern() {
return "#,##0.###";
}
@Override
public String decimalSeparator() {
return ".";
}
@Override
public String defCurrencyCode() {
return "TOP";
}
@Override
public String exponentialSymbol() {
return "E";
}
@Override
public String groupingSeparator() {
return ",";
}
@Override
public String infinity() {
return "∞";
}
@Override
public String minusSign() {
return "-";
}
@Override
public String monetaryGroupingSeparator() {
return ",";
}
@Override
public String monetarySeparator() {
return ".";
}
@Override
public String percent() {
return "%";
}
@Override
public String percentPattern() {
return "#,##0%";
}
@Override
public String perMill() {
return "‰";
}
@Override
public String plusSign() {
return "+";
}
@Override
public String scientificPattern() {
return "#E0";
}
@Override
public String currencyPattern() {
return "¤#,##0.00";
}
@Override
public String simpleCurrencyPattern() {
return "¤¤¤¤#,##0.00";
}
@Override
public String globalCurrencyPattern() {
return "¤¤¤¤#,##0.00 ¤¤";
}
@Override
public String zeroDigit() {
return "0";
}
}
|
[
"akabme@gmail.com"
] |
akabme@gmail.com
|
8181053053ab01b4dc41113fccdc8857c13adc45
|
4916ed5c8041b83dd051b5a24756bcdd5b043c3d
|
/src/java/demo/RulesEngine.java
|
fa82e0ab2851704509447cd4ce87c7611d4117c7
|
[] |
no_license
|
barba-dorada/drools-test
|
8e3440efa5109df3c3845ecf6ca3f2451dcb38db
|
4eb05c5c0fc10f42d7bd665bad1cf070962d8241
|
refs/heads/master
| 2021-01-17T17:43:29.731171
| 2016-10-11T11:06:56
| 2016-10-11T11:06:56
| 70,585,848
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,581
|
java
|
package demo;
import java.io.InputStreamReader;
import java.io.Reader;
import org.drools.RuleBase;
import org.drools.RuleBaseFactory;
import org.drools.WorkingMemory;
import org.drools.compiler.PackageBuilder;
import org.drools.event.DebugWorkingMemoryEventListener;
import org.drools.rule.Package;
public class RulesEngine {
private RuleBase rules;
private boolean debug = false;
public RulesEngine(String rulesFile) throws RulesEngineException {
super();
try {
// Read in the rules source file
Reader source = new InputStreamReader(RulesEngine.class
.getResourceAsStream("/rules/" + rulesFile));
// Use package builder to build up a rule package
PackageBuilder builder = new PackageBuilder();
// This will parse and compile in one step
builder.addPackageFromDrl(source);
// Get the compiled package
Package pkg = builder.getPackage();
// Add the package to a rulebase (deploy the rule package).
rules = RuleBaseFactory.newRuleBase();
rules.addPackage(pkg);
} catch (Exception e) {
throw new RulesEngineException(
"Could not load/compile rules file: " + rulesFile, e);
}
}
public RulesEngine(String rulesFile, boolean debug)
throws RulesEngineException {
this(rulesFile);
this.debug = debug;
}
public void executeRules(WorkingEnvironmentCallback callback) {
WorkingMemory workingMemory = rules.newStatefulSession();
if (debug) {
workingMemory
.addEventListener(new DebugWorkingMemoryEventListener());
}
callback.initEnvironment(workingMemory);
workingMemory.fireAllRules();
}
}
|
[
"vad.tishenko@gmail.com"
] |
vad.tishenko@gmail.com
|
026c1d669c58000a8ff5516f7438dc75d4173728
|
6ac9188162e53a028191962c4c7398cfd47ff250
|
/topcoder/output/CombiningSlimes.java
|
1e1b45740326a2da3a0383181b9ba63753619d27
|
[] |
no_license
|
mastersobg/contests
|
dbc83096be1b667c2546e6daba2f68472824d8eb
|
822eda17a251e1ee978ff9265c2960c9d289986d
|
refs/heads/master
| 2021-01-23T10:00:37.439738
| 2015-11-10T05:19:09
| 2015-11-10T05:19:09
| 2,923,871
| 0
| 1
| null | 2015-06-20T13:50:30
| 2011-12-06T10:09:40
|
Java
|
UTF-8
|
Java
| false
| false
| 752
|
java
|
import java.io.*;
import java.util.*;
import static java.lang.Math.*;
import java.util.ArrayList;
import java.util.List;
public class CombiningSlimes {
public int maxMascots(int[] a) {
List<Integer> list = ArraysUtil.asList(a);
int ret = 0;
while (list.size() > 1) {
int x = list.get(0);
int y = list.get(1);
list.remove((Integer) x);
list.remove((Integer) y);
list.add(x + y);
ret += x * y;
}
return ret;
}
}
class ArraysUtil {
public static List<Integer> asList(int[] arr) {
List<Integer> list = new ArrayList<Integer>(arr.length);
for (int a : arr)
list.add(a);
return list;
}
}
|
[
"gorbachev.ivan@gmail.com"
] |
gorbachev.ivan@gmail.com
|
1aa85d77917cc3a91a0edd5342a1c4f29ec911b2
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/10/10_ae61205b10bb5d2e609a4fc3ca28a166dcada3a6/ModuleMapText2CPersistence/10_ae61205b10bb5d2e609a4fc3ca28a166dcada3a6_ModuleMapText2CPersistence_t.java
|
46e8a5e3b801fa4c766612ceaf762b1687c52445
|
[] |
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,958
|
java
|
/*
* Copyright 2010 Universitat Pompeu Fabra.
*
* 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.
* under the License.
*/
package org.gitools.persistence.text;
import edu.upf.bg.progressmonitor.IProgressMonitor;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Reader;
import java.io.Writer;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
import org.apache.commons.csv.CSVParser;
import org.gitools.model.ModuleMap;
import org.gitools.persistence.PersistenceException;
import org.gitools.persistence.PersistenceUtils;
import org.gitools.utils.CSVStrategies;
/** Read/Write modules from a two columns tabulated file,
* first column for item and second for module. */
public class ModuleMapText2CPersistence
extends ModuleMapPersistence<ModuleMap>{
@Override
public ModuleMap read(File file, IProgressMonitor monitor) throws PersistenceException {
// map between the item names and its index
Map<String, Integer> itemNameToRowMapping = new TreeMap<String, Integer>();
if (isItemNamesFilterEnabled()) {
String[] itemNames = getItemNames();
for (int i = 0; i < itemNames.length; i++) {
if (itemNameToRowMapping.containsKey(itemNames[i]))
throw new PersistenceException("Modules not mappable to heatmap due to duplicated row: " + itemNames[i]);
else
itemNameToRowMapping.put(itemNames[i], i);
}
}
// map between modules and item indices
final Map<String, Set<Integer>> moduleItemsMap =
new HashMap<String, Set<Integer>>();
// read mappings
try {
monitor.begin("Reading modules ...", 1);
Reader reader = PersistenceUtils.openReader(file);
CSVParser parser = new CSVParser(reader, CSVStrategies.TSV);
readModuleMappings(parser, isItemNamesFilterEnabled(),
itemNameToRowMapping, moduleItemsMap);
monitor.end();
}
catch (Exception ex) {
throw new PersistenceException(ex);
}
monitor.begin("Filtering modules ...", 1);
int minSize = getMinSize();
int maxSize = getMaxSize();
// create array of item names
//monitor.debug("isItemNamesFilterEnabled() = " + isItemNamesFilterEnabled());
//monitor.debug("itemNameToRowMapping.size() = " + itemNameToRowMapping.size());
String[] itemNames = new String[itemNameToRowMapping.size()];
for (Map.Entry<String, Integer> entry : itemNameToRowMapping.entrySet()) {
//monitor.debug(entry.getKey() + " --> " + entry.getValue());
itemNames[entry.getValue()] = entry.getKey();
}
// mask of used items
BitSet used = new BitSet(itemNames.length);
// remappend indices
int lastIndex = 0;
int[] indexMap = new int[itemNames.length];
// filter modules by size and identify which items are indexed
List<String> moduleNames = new ArrayList<String>();
List<int[]> modulesItemIndices = new ArrayList<int[]>();
Iterator<Entry<String, Set<Integer>>> it =
moduleItemsMap.entrySet().iterator();
while (it.hasNext()) {
Entry<String, Set<Integer>> entry = it.next();
Set<Integer> indices = entry.getValue();
if (indices.size() >= minSize && indices.size() <= maxSize) {
moduleNames.add(entry.getKey());
int[] remapedIndices = new int[indices.size()];
Iterator<Integer> iit = indices.iterator();
for (int i = 0; i < indices.size(); i++) {
int index = iit.next();
if (!used.get(index)) {
used.set(index);
indexMap[index] = lastIndex++;
}
remapedIndices[i] = indexMap[index];
}
modulesItemIndices.add(remapedIndices);
}
else
it.remove();
}
// reorder item names according with remaped indices
String[] finalItemNames = new String[lastIndex];
for (int i = 0; i < itemNames.length; i++)
if (used.get(i))
finalItemNames[indexMap[i]] = itemNames[i];
monitor.end();
ModuleMap mmap = new ModuleMap();
mmap.setItemNames(finalItemNames);
mmap.setModuleNames(moduleNames.toArray(new String[moduleNames.size()]));
mmap.setAllItemIndices(modulesItemIndices.toArray(new int[modulesItemIndices.size()][]));
return mmap;
}
protected void readModuleMappings(
CSVParser parser,
boolean filterRows,
Map<String, Integer> itemNameToRowMapping,
Map<String, Set<Integer>> moduleItemsMap)
throws PersistenceException {
try {
String[] fields;
while ((fields = parser.getLine()) != null) {
if (fields.length < 2)
throw new PersistenceException(
"At least 2 columns expected at "
+ parser.getLineNumber()
+ "(item name and group name).");
String itemName = fields[0];
String groupName = fields[1];
Integer itemIndex = itemNameToRowMapping.get(itemName);
if (itemIndex == null && !filterRows) {
itemIndex = itemNameToRowMapping.size();
itemNameToRowMapping.put(itemName, itemIndex);
}
if (itemIndex != null) {
Set<Integer> itemIndices = moduleItemsMap.get(groupName);
if (itemIndices == null) {
itemIndices = new TreeSet<Integer>();
moduleItemsMap.put(groupName, itemIndices);
}
itemIndices.add(itemIndex);
}
}
}
catch (IOException e) {
throw new PersistenceException(e);
}
}
@Override
public void write(File file, ModuleMap moduleMap, IProgressMonitor monitor) throws PersistenceException {
final String[] moduleNames = moduleMap.getModuleNames();
int numModules = moduleNames.length;
monitor.begin("Saving modules...", numModules);
try {
Writer writer = PersistenceUtils.openWriter(file);
final PrintWriter pw = new PrintWriter(writer);
final String[] itemNames = moduleMap.getItemNames();
final int[][] indices = moduleMap.getAllItemIndices();
for (int i = 0; i < numModules; i++) {
for (int index : indices[i]) {
pw.print(itemNames[index]);
pw.print('\t');
pw.print(moduleNames[i]);
pw.print('\n');
}
monitor.worked(1);
}
pw.close();
monitor.end();
}
catch (Exception e) {
throw new PersistenceException(e);
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
29e5ca5c539bdec6839b0b24dcb72a92ed8ed77b
|
0369bed326a59d5f3f5d19ed1258eab979ec402e
|
/Titles/helloWorld/java/HelloWorld/src/helloworld/title/TitleRegistry.java
|
f7fe8867ed0e944ba654cb65d9428724edb5db27
|
[
"MIT"
] |
permissive
|
magic-lantern-studio/mle-titles
|
4e29892a4467c2fb9840448992fcfaab6eab9c34
|
55b79d1bdf0aa98ed057a6128fe69b25ab785b2c
|
refs/heads/master
| 2022-09-29T06:14:42.904716
| 2022-09-17T18:42:30
| 2022-09-17T18:42:30
| 128,479,248
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,896
|
java
|
/*
* TitleRegistry.java
* Created on Mar 28, 2006
*/
// COPYRIGHT_BEGIN
// COPYRIGHT_END
// Declare package.
package helloworld.title;
// Import standard Java classes.
import java.util.Observer;
import java.util.Observable;
import java.util.Vector;
// Import Magic Lantern Runtime Engine classes.
import com.wizzer.mle.runtime.core.MleActor;
import com.wizzer.mle.runtime.core.MleTables;
import com.wizzer.mle.runtime.core.MleRuntimeException;
/**
* This class manages a registry of title elements (e.g. Actors).
*
* @author Wizzer Works
*/
public class TitleRegistry implements Observer
{
// The Singleton instance of the title registry.
private static TitleRegistry m_theRegistry = null;
// The Actor registry.
private Vector m_actorRegistry = null;
// Hide the default constructor.
private TitleRegistry()
{
super();
// Create a container for the Actors in the title.
m_actorRegistry = new Vector();
// Add the registry as an Observer of the table manager.
MleTables.getInstance().addObserver(this);
}
/**
* Get the Singleton instance of the title registry.
*
* @return A <code>TitleRegistry</code> is returned.
*/
public static TitleRegistry getInstance()
{
if (m_theRegistry == null)
m_theRegistry = new TitleRegistry();
return m_theRegistry;
}
/**
* Get the registry of Actors.
*
* @return A <code>Vector</code> is returned containing the
* Actors that have been registered for the title.
*/
public Vector getActorRegistry()
{
return m_actorRegistry;
}
/**
* Add an Actor to the title registry.
*
* @param actor The Actor to add to the registry.
*
* @return <b>true</b> will be returned if the Actor is successfully added
* to the registry. Otherwise, <b>false</b> will be returned.
*
* @throws MleRuntimeException This exception is thrown if the input argument
* is <b>null</b>.
*/
public boolean addActor(MleActor actor)
throws MleRuntimeException
{
if (actor == null)
{
throw new MleRuntimeException("Unable to add Actor to title registry.");
}
return m_actorRegistry.add(actor);
}
/**
* Remove an Actor from the title registry.
*
* @param actor The Actor to remove from the registry.
*
* @return <b>true</b> will be returned if the Actor is successfully removed
* from the registry. Otherwise, <b>false</b> will be returned.
*
* @throws MleRuntimeException This exception is thrown if the input argument
* is <b>null</b>.
*/
public boolean removeActor(MleActor actor)
throws MleRuntimeException
{
if (actor == null)
{
throw new MleRuntimeException("Unable to remove Actor from title registry.");
}
return m_actorRegistry.remove(actor);
}
/**
* Clear the title registry by removing all registered title
* elements.
*/
public void clear()
{
// Clear the Actor registry.
m_actorRegistry.removeAllElements();
}
/**
* This method is called whenever the observed object is changed.
* <p>
* If the Observable is the <code>MleTables</code> class and the Object is
* an <code>MleActor</code>, then the Actor is added to the title registry.
* </p>
*
* @param obs The Observable object.
* @param obj An argument passed by the notifyObservers method from the
* Observable object.
*/
public void update(Observable obs, Object obj)
{
if (obs instanceof MleTables)
{
if (obj instanceof MleActor)
m_actorRegistry.add(obj);
}
}
}
|
[
"msm@wizzerworks.com"
] |
msm@wizzerworks.com
|
3f95fd13c3bcf67e5fdda88bf4061af20045fb4a
|
d60e287543a95a20350c2caeabafbec517cabe75
|
/LACCPlus/Hadoop/273_1.java
|
1c4629e40c82e46a5b24e021642dca18282cf5af
|
[
"MIT"
] |
permissive
|
sgholamian/log-aware-clone-detection
|
242067df2db6fd056f8d917cfbc143615c558b2c
|
9993cb081c420413c231d1807bfff342c39aa69a
|
refs/heads/main
| 2023-07-20T09:32:19.757643
| 2021-08-27T15:02:50
| 2021-08-27T15:02:50
| 337,837,827
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 754
|
java
|
//,temp,OpenFileCtxCache.java,198,219,temp,NMContainerTokenSecretManager.java,214,234
//,3
public class xxx {
void cleanAll() {
ArrayList<OpenFileCtx> cleanedContext = new ArrayList<OpenFileCtx>();
synchronized (this) {
Iterator<Entry<FileHandle, OpenFileCtx>> it = openFileMap.entrySet()
.iterator();
if (LOG.isTraceEnabled()) {
LOG.trace("openFileMap size:" + openFileMap.size());
}
while (it.hasNext()) {
Entry<FileHandle, OpenFileCtx> pairs = it.next();
OpenFileCtx ctx = pairs.getValue();
it.remove();
cleanedContext.add(ctx);
}
}
// Invoke the cleanup outside the lock
for (OpenFileCtx ofc : cleanedContext) {
ofc.cleanup();
}
}
};
|
[
"sgholami@uwaterloo.ca"
] |
sgholami@uwaterloo.ca
|
d15a9b3bebdf04fac00e0f151bffb208b34f87b4
|
1e671aad06682da80282dd83dece1937239a848f
|
/demo/src/com/zhaoqy/app/demo/page/vmall/adapter/HomePagerAdapter.java
|
7cb747c464f07e47e202c01197bd5d095404f1d4
|
[] |
no_license
|
zhaoqingyue/EclipseStudy
|
548671318b074c833d3e12b8dc6379a85e122576
|
f2238125e55333a7651fec546f39fd23dee0197e
|
refs/heads/master
| 2020-04-04T03:24:09.966018
| 2018-11-01T12:41:11
| 2018-11-01T12:41:11
| 155,712,533
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,066
|
java
|
package com.zhaoqy.app.demo.page.vmall.adapter;
import java.util.List;
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
public class HomePagerAdapter extends PagerAdapter
{
private List<ImageView> ivlist;
public HomePagerAdapter(List<ImageView> viewlist)
{
this.ivlist = viewlist;
}
public int getCount()
{
return ivlist.size()*100;
}
public boolean isViewFromObject(View arg0, Object arg1)
{
return arg0 == arg1;
}
public Object instantiateItem(ViewGroup container, int position)
{
position %= ivlist.size();
container.addView(ivlist.get(position), 0);
if (position<0)
{
position = ivlist.size()+position;
}
return ivlist.get(position);
}
public void destroyItem(ViewGroup container, int position, Object object)
{
position%=ivlist.size();
if (position<0)
{
position = ivlist.size()+position;
}
ImageView view = ivlist.get(position);
container.removeView(view);
}
}
|
[
"1023755730@qq.com"
] |
1023755730@qq.com
|
23f963ec536ad3229937415afcefbac3dd89ec4a
|
39ff77cee21d6cd141eeb1af743af22a33c8f4ae
|
/src/main/java/org.reactivestreams.extensions.sequenced/KeyedMessage.java
|
304520c9550528968440867bf4b371baf5af3d95
|
[] |
no_license
|
RuedigerMoeller/reactive-streams-sequenced-proposal
|
52fd20e3a9e9c0ac484e40fe87fb4b8e24569512
|
f267c7bd5c1bc447025b6187e07edcf21190d258
|
refs/heads/master
| 2023-06-14T18:07:19.710629
| 2015-08-05T16:43:28
| 2015-08-05T16:43:28
| 39,892,261
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 496
|
java
|
package org.reactivestreams.extensions.sequenced;
/**
* Created by ruedi on 29/07/15.
*
* Additional proposal
*
* a further message marker interface allowing for implementation of generic last value caches.
* A last value cache can be used in persistent message queues to replace plain message replay.
* E.g. for market data, one likely aims to store last market prices by stock instead of a full history
* of price events.
*
*/
public interface KeyedMessage {
Object getKey();
}
|
[
"moru0011@gmail.com"
] |
moru0011@gmail.com
|
be0ec8d6867b2123c781103d3ce005443060c7a4
|
31f043184e2839ad5c3acbaf46eb1a26408d4296
|
/src/main/java/com/github/highcharts4gwt/model/highcharts/option/jso/plotoptions/gauge/point/JsoRemoveEvent.java
|
5dd249db68a3f33f6b51e7ea6cdb640b075f35f0
|
[] |
no_license
|
highcharts4gwt/highchart-wrapper
|
52ffa84f2f441aa85de52adb3503266aec66e0ac
|
0a4278ddfa829998deb750de0a5bd635050b4430
|
refs/heads/master
| 2021-01-17T20:25:22.231745
| 2015-06-30T15:05:01
| 2015-06-30T15:05:01
| 24,794,406
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 546
|
java
|
package com.github.highcharts4gwt.model.highcharts.option.jso.plotoptions.gauge.point;
import com.github.highcharts4gwt.model.highcharts.object.api.Point;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.gauge.point.RemoveEvent;
import com.google.gwt.dom.client.NativeEvent;
public class JsoRemoveEvent
extends NativeEvent
implements RemoveEvent
{
protected JsoRemoveEvent() {
}
public final native Point point()
throws RuntimeException /*-{
return this.source;
}-*/
;
}
|
[
"ronan.quillevere@gmail.com"
] |
ronan.quillevere@gmail.com
|
deb7641ad3e14c1f13a4c235936dc237c0ce9578
|
651fa3ae55e2af38685c111026b8134712a0eb2c
|
/demo/src/main/java/com/hippo/conductor/attacher/demo/MainActivity.java
|
154ed1f6dc7ce7744372ada1ebf8626df267cef4
|
[
"Apache-2.0"
] |
permissive
|
t894924815/conductor-attacher
|
f5bacfb4ee7ead9d3f8f0a7c9419d01bc727b711
|
368e6b5a54ae7c26732639d680bb6d5a0e030c8a
|
refs/heads/master
| 2021-01-20T00:27:19.503551
| 2017-04-17T14:51:26
| 2017-04-17T14:51:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,710
|
java
|
/*
* Copyright 2017 Hippo Seven
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hippo.conductor.attacher.demo;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
public class MainActivity extends AppCompatActivity {
private static final String[] TITLES = {
"Normal",
"With Attacher",
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ListView listView = (ListView) findViewById(R.id.list);
listView.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, TITLES));
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
startActivity(
new Intent(MainActivity.this, ControllerActivity.class)
.putExtra(ControllerActivity.KEY_USE_ATTACHER, position != 0)
);
}
});
}
}
|
[
"seven332@163.com"
] |
seven332@163.com
|
7833684ee9339b3e57d85de3d3b535610a2f21ae
|
2eac4f51a2e4363349e852ce3af8ca234c1a13f7
|
/fx/trunk/fx-backtest/src/main/java/com/jeff/fx/indicator/indicator/Stochastic.java
|
3f8929919c677d96ebf503b9e94dc17307971beb
|
[] |
no_license
|
johnffracassi/jcfx
|
4e19ac0fdba174db0fe3eb2fc8848652a5c99c11
|
b0a2349fdd1de0bf60c7ccf9a17af4e43e0a1727
|
refs/heads/master
| 2016-09-05T15:13:49.981403
| 2011-07-21T05:54:28
| 2011-07-21T05:54:28
| 41,260,482
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,238
|
java
|
package com.jeff.fx.indicator.indicator;
import org.springframework.stereotype.Component;
import com.jeff.fx.indicator.ChartType;
import com.jeff.fx.indicator.ChartTypes;
import com.jeff.fx.indicator.TAWrapper;
import com.tictactec.ta.lib.Core;
import com.tictactec.ta.lib.MAType;
import com.tictactec.ta.lib.MInteger;
@Component
@ChartType(ChartTypes.Oscillator)
public final class Stochastic extends TAWrapper
{
private int fastK;
private int slowK;
private MAType maType;
public Stochastic()
{
this(5, 2);
}
public Stochastic(int fastK, int slowK)
{
this.fastK = fastK;
this.slowK = slowK;
}
public void calculate(Core core, float[] open, float[] high, float[] low, float[] close, MInteger startIdx, double values[][])
{
core.stoch(0, close.length-1, high, low, close, fastK, slowK, maType, 5, maType, startIdx, new MInteger(), values[0], values[1]);
}
@Override
public String getKey()
{
return "stoch";
}
@Override
public String getDisplayName()
{
return getKey() + "(" + fastK + "," + slowK + ")";
}
@Override
public void setParams(Object... params)
{
}
}
|
[
"jeffcann@360c4b46-674e-11de-9b35-9190732fe600"
] |
jeffcann@360c4b46-674e-11de-9b35-9190732fe600
|
f1dc4400433831780cb61b74762a754ffba28a55
|
98c66b12e9ad69e81cc9b054963d56d04fe78b17
|
/src/main/java/oktenweb/models/User.java
|
11b4f95f5755f18a0c91fde1877d65f9dd21947a
|
[] |
no_license
|
NazarOliynyk/trysecurity4inheritance
|
356a9a201a74d09fae38d4c601959e20f6d27d9a
|
7d0e951ea37fa73cb3ce48369c290ade6f6d825e
|
refs/heads/master
| 2020-05-02T15:04:51.798383
| 2019-06-11T10:27:54
| 2019-06-11T10:27:54
| 178,030,732
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,444
|
java
|
package oktenweb.models;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
@Entity(name = "Users_TrySecurity4")
@Inheritance
@DiscriminatorColumn(name = "type")
public class User implements UserDetails{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
@Column(unique = true)
private String username;
private String password;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
@Override
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
@Override
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
private boolean accountNonExpired = true;
public void setAccountNonExpired(boolean accountNonExpired) {
this.accountNonExpired = accountNonExpired;
}
@Override
public boolean isAccountNonExpired() {
return accountNonExpired;
}
private boolean accountNonLocked = true;
public void setAccountNonLocked(boolean accountNonLocked) {
this.accountNonLocked = accountNonLocked;
}
@Override
public boolean isAccountNonLocked() {
return accountNonLocked;
}
private boolean credentialsNonExpired = true;
public void setCredentialsNonExpired(boolean credentialsNonExpired) {
this.credentialsNonExpired = credentialsNonExpired;
}
@Override
public boolean isCredentialsNonExpired() {
return credentialsNonExpired;
}
private boolean enabled = true;
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
@Override
public boolean isEnabled() {
return enabled;
}
@Enumerated(EnumType.STRING)
private Role role= Role.ROLE_USER;
@Override
public Collection<? extends GrantedAuthority> getAuthorities() {
List<SimpleGrantedAuthority> authorities = new ArrayList<>();
authorities.add(new SimpleGrantedAuthority(role.name()));
return authorities;
}
}
|
[
"nazar_lw@ukr.net"
] |
nazar_lw@ukr.net
|
cfb96513eddfaf0574a8badea2132821bb9b0cf3
|
a3c37b619a21d92d970a194e4729f95c1b67be51
|
/Table editor/src/com/ivan/tableEditor/tableEditorView/TableEditorMainFrame.java
|
f0ed639e3ca6a425a71594d2241cf03b198cefe6
|
[] |
no_license
|
IvanYakimtsov/UselessJavaProjects
|
01899ee4acce8dd2872ac7ffc7fa4986d8d520d6
|
8680271b423764d9917d4a68f04d448058f44718
|
refs/heads/master
| 2020-04-06T03:52:02.903518
| 2018-05-13T10:43:20
| 2018-05-13T10:43:20
| 83,147,003
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,944
|
java
|
package com.ivan.tableEditor.tableEditorView;
import com.ivan.tableEditor.tableEditorView.workingArea.WorkingArea;
import javax.swing.*;
import java.awt.*;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.util.*;
import java.util.List;
/**
* Created by Ivan on 21.03.2017.
*/
public class TableEditorMainFrame {
final public static int SAVE_BUTTON_INDEX = 0;
final public static int OPEN_BUTTON_INDEX = 1;
final public static int ADD_BUTTON_INDEX = 2;
final public static int DELETE_BUTTON_INDEX = 3;
final public static int SEARCH_BUTTON_INDEX = 4;
private JFrame mainFrame;
private JToolBar toolBar;
private List<JButton> toolPanelButtons;
private List<JMenuItem> menuButtons;
public TableEditorMainFrame() {
toolPanelButtons = new ArrayList<>();
menuButtons = new ArrayList<>();
setFrame();
mainFrame.validate();
mainFrame.repaint();
}
private void setFrame() {
this.mainFrame = new JFrame("Редактор таблиц");
this.mainFrame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
addFrameListener();
addToolPanel();
addMenuBar();
this.mainFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
this.mainFrame.setVisible(true);
}
private void addMenuBar(){
JMenuBar menuBar = new JMenuBar();
JMenu menu = new JMenu("Меню");
JMenuItem menuItem = new JMenuItem("Сохранить");
menu.add(menuItem);
menuButtons.add(menuItem);
menuItem = new JMenuItem("Открыть");
menu.add(menuItem);
menuButtons.add(menuItem);
menuItem = new JMenuItem("Добавить студента");
menu.add(menuItem);
menuButtons.add(menuItem);
menuItem = new JMenuItem("Удалить студента");
menu.add(menuItem);
menuButtons.add(menuItem);
menuItem = new JMenuItem("Найти студента");
menu.add(menuItem);
menuButtons.add(menuItem);
menuBar.add(menu);
mainFrame.setJMenuBar(menuBar);
}
private void addToolPanel() {
toolBar = new JToolBar();
toolBar.setPreferredSize(new Dimension(mainFrame.getWidth(), 48));
toolBar.setFloatable(false);
Box buttonsBox = Box.createHorizontalBox();
toolBar.setBackground(new Color(94, 115, 232));
setButtons(buttonsBox);
toolBar.add(buttonsBox);
mainFrame.add(toolBar, BorderLayout.NORTH);
}
private void setButtons(Box buttonsBox) {
addButton("img/save.png", buttonsBox);
addButton("img/open.png", buttonsBox);
addButton("img/add-user.png", buttonsBox);
addButton("img/remove-user.png", buttonsBox);
addButton("img/search-user.png", buttonsBox);
}
private void addButton(String filename, Box buttonsBox) {
JButton button = new JButton(new ImageIcon(filename));
button.setBackground(null);
button.setPreferredSize(new Dimension(40, 40));
buttonsBox.add(button);
buttonsBox.add(Box.createHorizontalStrut(32));
toolPanelButtons.add(button);
}
public void addWorkingArea(WorkingArea workingArea) {
mainFrame.add(workingArea.getWorkingAreaPanel());
mainFrame.validate();
mainFrame.repaint();
}
private void addFrameListener() {
this.mainFrame.addWindowListener(new WindowListener() {
@Override
public void windowOpened(WindowEvent e) {
}
@Override
public void windowClosing(WindowEvent e) {
Object[] options = {"Выйти", "Отменить"};
int n = JOptionPane
.showOptionDialog(e.getWindow(), "Вы действительно хотите выйти?",
"Подтверждение", JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE, null, options,
options[0]);
if (n == 0) {
e.getWindow().setVisible(false);
System.exit(0);
}
}
@Override
public void windowClosed(WindowEvent e) {
}
@Override
public void windowIconified(WindowEvent e) {
}
@Override
public void windowDeiconified(WindowEvent e) {
}
@Override
public void windowActivated(WindowEvent e) {
}
@Override
public void windowDeactivated(WindowEvent e) {
}
});
}
public List<JMenuItem> getMenuButtons() {
return menuButtons;
}
public List<JButton> getToolPanelButtons() {
return toolPanelButtons;
}
}
|
[
"ivan.yakimtspv@gmail.com"
] |
ivan.yakimtspv@gmail.com
|
a4af3b66a354b306bacc1793c4da41c63007c36f
|
83dbd433aeed1f15f6501f39fe152abc0dc803d9
|
/multithread_study/java_multithread_core_tech/src/test/java/com/bd/java/multithread/core/tech/chapter4/reentrant_lock/ReentrantLockTest.java
|
b69abcf1c7a353aeafa0bb2bf8f0ac1944595305
|
[] |
no_license
|
pylrichard/web_service_study
|
d0d42ea0c511b9b15a235a99cde5b4b025c33c6d
|
c1bd8753c6aee69c87707db7f3fb8e0d7f5ddbc0
|
refs/heads/master
| 2021-09-14T23:31:12.454640
| 2018-05-22T06:26:14
| 2018-05-22T06:26:14
| 104,879,563
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 394
|
java
|
package com.bd.java.multithread.core.tech.chapter4.reentrant_lock;
public class ReentrantLockTest {
public static void main(String[] args) {
MyService service = new MyService();
MyThread t1 = new MyThread(service);
MyThread t2 = new MyThread(service);
MyThread t3 = new MyThread(service);
t1.start();
t2.start();
t3.start();
}
}
|
[
"pylrichard@qq.com"
] |
pylrichard@qq.com
|
e91a2fadf0a1b8cffb51cd6bb32bb23f17713ce0
|
6f6fd51a6f298242318f0538787b6416916e7722
|
/JDK7-45/src/main/java/com/hmz/source/org/omg/DynamicAny/DynSequenceOperations.java
|
f04e28f330eecbade696b7092510cda6b402cff4
|
[] |
no_license
|
houmaozheng/JDKSourceProject
|
5f20578c46ad0758a1e2f45d36380db0bcd46f05
|
699b4cce980371be0d038a06ce3ea617dacd612c
|
refs/heads/master
| 2023-06-16T21:48:46.957538
| 2021-07-15T17:01:46
| 2021-07-15T17:01:46
| 385,537,090
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,784
|
java
|
package org.omg.DynamicAny;
/**
* org/omg/DynamicAny/DynSequenceOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from ../../../../src/share/classes/org/omg/DynamicAny/DynamicAny.idl
* Tuesday, October 8, 2013 5:44:46 AM PDT
*/
/**
* DynSequence objects support the manipulation of IDL sequences.
*/
public interface DynSequenceOperations extends org.omg.DynamicAny.DynAnyOperations
{
/**
* Returns the current length of the sequence.
*/
int get_length ();
/**
* Sets the length of the sequence.
* Increasing the length of a sequence adds new elements at the tail without affecting the values
* of already existing elements. Newly added elements are default-initialized.
* Increasing the length of a sequence sets the current position to the first newly-added element
* if the previous current position was -1. Otherwise, if the previous current position was not -1,
* the current position is not affected.
* Decreasing the length of a sequence removes elements from the tail without affecting the value
* of those elements that remain. The new current position after decreasing the length of a sequence
* is determined as follows:
* <UL>
* <LI>If the length of the sequence is set to zero, the current position is set to -1.
* <LI>If the current position is -1 before decreasing the length, it remains at -1.
* <LI>If the current position indicates a valid element and that element is not removed when the length
* is decreased, the current position remains unaffected.
* <LI>If the current position indicates a valid element and that element is removed,
* the current position is set to -1.
* </UL>
*
* @exception InvalidValue if this is a bounded sequence and len is larger than the bound
*/
void set_length (int len) throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
/**
* Returns the elements of the sequence.
*/
org.omg.CORBA.Any[] get_elements ();
/**
* Sets the elements of a sequence.
* The length of the DynSequence is set to the length of value. The current position is set to zero
* if value has non-zero length and to -1 if value is a zero-length sequence.
*
* @exception TypeMismatch if value contains one or more elements whose TypeCode is not equivalent
* to the element TypeCode of the DynSequence
* @exception InvalidValue if the length of value exceeds the bound of a bounded sequence
*/
void set_elements (org.omg.CORBA.Any[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
/**
* Returns the DynAnys representing the elements of the sequence.
*/
org.omg.DynamicAny.DynAny[] get_elements_as_dyn_any ();
/**
* Sets the elements of a sequence using DynAnys.
* The length of the DynSequence is set to the length of value. The current position is set to zero
* if value has non-zero length and to -1 if value is a zero-length sequence.
*
* @exception TypeMismatch if value contains one or more elements whose TypeCode is not equivalent
* to the element TypeCode of the DynSequence
* @exception InvalidValue if the length of value exceeds the bound of a bounded sequence
*/
void set_elements_as_dyn_any (org.omg.DynamicAny.DynAny[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
} // interface DynSequenceOperations
|
[
"houmaozheng@126.com"
] |
houmaozheng@126.com
|
11c4f184e374e3492729760dfda95c6cf654ab79
|
5cfaeebdc7c50ca23ee368fa372d48ed1452dfeb
|
/xd_2b_dashboard_report/src/main/java/com/xiaodou/st/dashboard/domain/alarm/AlarmRecordDTO.java
|
056275e5fb51cb64b763f8b60ff34c66990f8e61
|
[] |
no_license
|
zdhuangelephant/xd_pro
|
c8c8ff6dfcfb55aead733884909527389e2c8283
|
5611b036968edfff0b0b4f04f0c36968333b2c3b
|
refs/heads/master
| 2022-12-23T16:57:28.306580
| 2019-12-05T06:05:43
| 2019-12-05T06:05:43
| 226,020,526
| 0
| 2
| null | 2022-12-16T02:23:20
| 2019-12-05T05:06:27
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 528
|
java
|
package com.xiaodou.st.dashboard.domain.alarm;
import com.xiaodou.st.dashboard.constants.enums.AlarmLevelEnum;
import com.xiaodou.st.dashboard.constants.enums.AlarmTypeEnum;
import lombok.Data;
@Data
public class AlarmRecordDTO {
/* alarmLevel 报警级别 初级,中级,高级 */
private AlarmLevelEnum alarmLevel;
/* alarmTime 报警时间 */
private String alarmTime;
/* alarmType 报警类型 */
private AlarmTypeEnum alarmType;
private Integer pageNo;
private Integer pageSize;
}
|
[
"zedong.huang@bitmain.com"
] |
zedong.huang@bitmain.com
|
7c4d3414dde24bdc1b0a0cbacdd32a4f2239b5fa
|
c0c0c729a020d73f0148967ca1aa506b48bb20c2
|
/app/src/main/java/com/zscdumin/zhixinapp/fragment/ParentFragment.java
|
223ae0230f1fcc07d376e3d3a37dcfd2aafb6841
|
[] |
no_license
|
liujizhao/ZhiXinApp
|
a2054d5644860a0b4d7bcd9a0bff18e79261ed64
|
0135ab172f307dad5143c7c65156cf479eddf3be
|
refs/heads/master
| 2020-08-03T05:52:41.673925
| 2018-12-03T01:46:47
| 2018-12-03T01:46:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,244
|
java
|
package com.zscdumin.zhixinapp.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.zscdumin.zhixinapp.R;
import com.zscdumin.zhixinapp.adapter.mPagerAdapter;
import com.zscdumin.zhixinapp.utils.Urls;
import java.util.ArrayList;
/**
* Created by luo-pc on 2016/5/15.
*/
public class ParentFragment extends Fragment {
private ViewPager vp_content;
private TabLayout tab_title;
private ArrayList<String> titleList;
private ArrayList<Fragment> fragmentList = new ArrayList<>();
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_news, null);
initView(view);
initData();
vp_content.setOffscreenPageLimit(3);
vp_content.setAdapter(new mPagerAdapter(getChildFragmentManager(), fragmentList, titleList));
tab_title.setupWithViewPager(vp_content);
return view;
}
private void initData() {
titleList = new ArrayList<>();
titleList.add("头条");
titleList.add("NBA");
titleList.add("汽车");
titleList.add("笑话");
NewsListFragment hotNewsList = new NewsListFragment();
hotNewsList.setKeyword(Urls.TOP_ID);
NewsListFragment sportNewsList = new NewsListFragment();
sportNewsList.setKeyword(Urls.NBA_ID);
NewsListFragment carNewsList = new NewsListFragment();
carNewsList.setKeyword(Urls.CAR_ID);
NewsListFragment jokeNewsList = new NewsListFragment();
jokeNewsList.setKeyword(Urls.JOKE_ID);
fragmentList.add(hotNewsList);
fragmentList.add(sportNewsList);
fragmentList.add(carNewsList);
fragmentList.add(jokeNewsList);
}
private void initView(View view) {
tab_title = (TabLayout) view.findViewById(R.id.tab_title);
vp_content = (ViewPager) view.findViewById(R.id.vp_content);
}
}
|
[
"2712220318@qq.com"
] |
2712220318@qq.com
|
d033e4a9c75ca55f50bbfc3d1f4e846c9e5629a1
|
b295cffc1de37330b0b8d28a4d81faac01de7f22
|
/CODE/android/device/eostek/common/apps/HotKeyService/src/com/eostek/hotkeyservice/HotKeyApplication.java
|
53b69a54170c022b753cd493c36753b0d1891827
|
[] |
no_license
|
windxixi/test
|
fc2487d73a959050d8ad37d718b09a243660ec64
|
278a167c26fb608f700b81656f32e734f536c9f9
|
refs/heads/master
| 2023-03-16T19:59:41.941474
| 2016-07-25T04:18:41
| 2016-07-25T04:18:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 507
|
java
|
package com.eostek.hotkeyservice;
import java.lang.Thread.UncaughtExceptionHandler;
import android.app.Application;
public class HotKeyApplication extends Application implements UncaughtExceptionHandler {
@Override
public void onCreate() {
super.onCreate();
// Thread.setDefaultUncaughtExceptionHandler(this);
}
@Override
public void uncaughtException(Thread thread, Throwable ex) {
ex.printStackTrace();
System.exit(0);
}
}
|
[
"gracie.zhou@ieostek.com"
] |
gracie.zhou@ieostek.com
|
8fdc6129e4d392864f4f8ee325455f7f56cde03b
|
f0e4e6f2380074baefabba37ccc5d96fe6141328
|
/JDBC Programs/Insertion.java
|
51554fa731e78ed7d36311037677724cd5b12667
|
[] |
no_license
|
debiprasadmishra50/All-JDBC-Operation-MySQL
|
b71308b271545aaa22556a4570b9b99aa22e8997
|
0d36bd58420c7547a73b2cfaff5f2e07343f317e
|
refs/heads/master
| 2022-11-08T16:58:58.474498
| 2020-06-28T08:16:40
| 2020-06-28T08:16:40
| 275,538,847
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,327
|
java
|
import java.sql.*;
public class Insertion {
public static void main(String[] args) throws SQLException {
Connection myConn = null;
Statement myStmt = null;
ResultSet myRs = null;
String dbUrl = "jdbc:mysql://localhost:3306/demo";
String user = "student";
String pass = "sipusipu18";
try {
// 1. Get a connection to database
myConn = DriverManager.getConnection(dbUrl, user, pass);
// 2. Create a statement
myStmt = myConn.createStatement();
// 3. Insert a new employee
System.out.println("Inserting a new employee to database\n");
int rowsAffected = myStmt.executeUpdate(
"insert into employees " +
"(last_name, first_name, email, department, salary) " +
"values " +
"('Wright', 'Eric', 'eric.wright@foo.com', 'HR', 33000.00)");
// 4. Verify this by getting a list of employees
myRs = myStmt.executeQuery("select * from employees order by last_name");
// 5. Process the result set
while (myRs.next()) {
System.out.println(myRs.getString("last_name") + ", " + myRs.getString("first_name"));
}
}
catch (Exception exc) {
exc.printStackTrace();
}
finally {
if (myRs != null) {
myRs.close();
}
if (myStmt != null) {
myStmt.close();
}
if (myConn != null) {
myConn.close();
}
}
}
}
|
[
"debiprasadmishra50@gmail.com"
] |
debiprasadmishra50@gmail.com
|
25b7f2bf3215db173b90e02c2fd8fbce2ea3361b
|
d7e6bf026a043ed770718127bc8d79c5f8ed0314
|
/src/org/lynxlake/_05InheritanceLab/_01SingleInheritance/Animal.java
|
58c42926f0e56e943b8f5c3a57c834699cf68b3d
|
[] |
no_license
|
plamen911/java-oop-basics
|
e2fa792b27a214985d2b9810de8a3784f260665b
|
e82e766a794ff0bde963e50d24d63df9cb2370a8
|
refs/heads/master
| 2021-01-13T03:36:30.473424
| 2017-03-11T07:04:01
| 2017-03-11T07:04:01
| 77,316,579
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 157
|
java
|
package org.lynxlake._05InheritanceLab._01SingleInheritance;
public class Animal {
public void eat() {
System.out.println("eating...");
}
}
|
[
"1"
] |
1
|
7afb8246e7b39ae30906e5d16add78c784f25733
|
70cbaeb10970c6996b80a3e908258f240cbf1b99
|
/WiFi万能钥匙dex1-dex2jar.jar.src/bluefay/support/annotation/AnimRes.java
|
77bf2c2f9de875f61bea13b74fe37862964e7a50
|
[] |
no_license
|
nwpu043814/wifimaster4.2.02
|
eabd02f529a259ca3b5b63fe68c081974393e3dd
|
ef4ce18574fd7b1e4dafa59318df9d8748c87d37
|
refs/heads/master
| 2021-08-28T11:11:12.320794
| 2017-12-12T03:01:54
| 2017-12-12T03:01:54
| 113,553,417
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 647
|
java
|
package bluefay.support.annotation;
import java.lang.annotation.Annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Retention(RetentionPolicy.SOURCE)
@Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER, java.lang.annotation.ElementType.FIELD})
public @interface AnimRes {}
/* Location: /Users/hanlian/Downloads/WiFi万能钥匙dex1-dex2jar.jar!/bluefay/support/annotation/AnimRes.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"lianh@jumei.com"
] |
lianh@jumei.com
|
0aaed3c3cba1d63417c257bde532e4bc4057d75a
|
5e21f7dacb16b90ec116c1dfe8d12489d7fa5ae2
|
/projects/asw-875-spring-cloud/a3-lucky-word-cloud-config-client-refresh/src/main/java/asw/springcloud/luckyword/LuckyWordController.java
|
c9f34fc519bc28d48d1828da64be174d98c7b2b3
|
[
"MIT"
] |
permissive
|
aswroma3/asw-2018
|
5800c6bd532550e90c4eb711b741cc6ba593b94a
|
9f41b4255f8906cac42f9e6c6d039ad3f2fc6031
|
refs/heads/master
| 2021-09-20T04:03:10.774700
| 2018-08-03T07:13:29
| 2018-08-03T07:13:29
| 122,209,616
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 528
|
java
|
package asw.springcloud.luckyword;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
@RestController
@RefreshScope
public class LuckyWordController {
@Value("${lucky-word}")
private String luckyWord;
@RequestMapping("/lucky-word")
public String luckyWord() {
return "The lucky word is: " + luckyWord;
}
}
|
[
"cabibbo@dia.uniroma3.it"
] |
cabibbo@dia.uniroma3.it
|
927288eb750b85acfaea58208ee5a1dbb05f38e0
|
2612f336d667a087823234daf946f09b40d8ca3d
|
/plugins/InspectionGadgets/testsrc/com/siyeh/ig/classlayout/ClassInitializerInspectionTest.java
|
f950d3e1c120889642f15e68b72c276992cb8f6f
|
[
"Apache-2.0"
] |
permissive
|
tnorbye/intellij-community
|
df7f181861fc5c551c02c73df3b00b70ab2dd589
|
f01cf262fc196bf4dbb99e20cd937dee3705a7b6
|
refs/heads/master
| 2021-04-06T06:57:57.974599
| 2018-03-13T17:37:00
| 2018-03-13T17:37:00
| 125,079,130
| 2
| 0
|
Apache-2.0
| 2018-03-13T16:09:41
| 2018-03-13T16:09:41
| null |
UTF-8
|
Java
| false
| false
| 1,288
|
java
|
/*
* Copyright 2000-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.siyeh.ig.classlayout;
import com.intellij.codeInspection.InspectionProfileEntry;
import com.siyeh.ig.LightInspectionTestCase;
/**
* @author Bas Leijdekkers
*/
public class ClassInitializerInspectionTest extends LightInspectionTestCase {
public void testSimple() { doTest(); }
public void testAnonymous() { doTest(); }
public void testNoConstructor() {
final ClassInitializerInspection inspection = new ClassInitializerInspection();
inspection.onlyWarnWhenConstructor = true;
myFixture.enableInspections(inspection);
doTest();
}
@Override
protected InspectionProfileEntry getInspection() {
return new ClassInitializerInspection();
}
}
|
[
"basleijdekkers@gmail.com"
] |
basleijdekkers@gmail.com
|
f4dc27cf32a9e50e97ccd757546083c44e252eec
|
e123baad041d4eb9c7809801643f52a5e660df42
|
/src/org/traccar/protocol/TeltonikaProtocol.java
|
f944c3003637dcd796fdcbcb6a02e52e2bf7557d
|
[
"Apache-2.0"
] |
permissive
|
vladyslavyatsun/traccar
|
eb4dab41b52f02fc85d124a6ca864bb933f66165
|
b2e883f9eac211a951b6ca2b0e91e9f27b133f36
|
refs/heads/master
| 2021-01-01T03:45:46.810129
| 2016-05-06T13:56:44
| 2016-05-06T13:56:44
| 59,423,202
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,833
|
java
|
/*
* Copyright 2015 - 2016 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.traccar.protocol;
import org.jboss.netty.bootstrap.ConnectionlessBootstrap;
import org.jboss.netty.bootstrap.ServerBootstrap;
import org.jboss.netty.channel.ChannelPipeline;
import org.traccar.BaseProtocol;
import org.traccar.TrackerServer;
import java.util.List;
public class TeltonikaProtocol extends BaseProtocol {
public TeltonikaProtocol() {
super("teltonika");
}
@Override
public void initTrackerServers(List<TrackerServer> serverList) {
serverList.add(new TrackerServer(new ServerBootstrap(), this.getName()) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
pipeline.addLast("frameDecoder", new TeltonikaFrameDecoder());
pipeline.addLast("objectDecoder", new TeltonikaProtocolDecoder(TeltonikaProtocol.this));
}
});
serverList.add(new TrackerServer(new ConnectionlessBootstrap(), this.getName()) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
pipeline.addLast("objectDecoder", new TeltonikaProtocolDecoder(TeltonikaProtocol.this));
}
});
}
}
|
[
"anton.tananaev@gmail.com"
] |
anton.tananaev@gmail.com
|
ddc60593002e20732454fdaaa7b6322cd8339d3e
|
246f2be1162532f2efb1a477b4b88aadcfc81524
|
/results/okhttp/1151c9853ccc3c9c3211c613b9b845b925f8c6a6/transformed/evosuite_12/evosuite-tests/com/squareup/okhttp/internal/bytes/GzipSource_ESTest.java
|
d028494b72052e301004936dffbe0bfa78fdda10
|
[] |
no_license
|
semantic-conflicts/SemanticConflicts
|
4d2f05bf2e5fa289233429ed8f1614b0b14c2e5e
|
c5684bbde00dfbd27c828b5798edbec0e284597a
|
refs/heads/master
| 2022-12-05T03:11:57.983183
| 2020-08-25T13:54:24
| 2020-08-25T13:54:24
| 267,826,586
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,155
|
java
|
/*
* This file was automatically generated by EvoSuite
* Mon May 25 21:57:14 GMT 2020
*/
package com.squareup.okhttp.internal.bytes;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.squareup.okhttp.internal.bytes.OkBuffer;
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 = true, useJEE = true)
public class GzipSource_ESTest extends GzipSource_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
OkBuffer okBuffer0 = new OkBuffer();
// Undeclared exception!
try {
okBuffer0.getByte((-860L));
fail("Expecting exception: ArrayIndexOutOfBoundsException");
} catch(ArrayIndexOutOfBoundsException e) {
//
// no message in exception (getMessage() returned null)
//
verifyException("com.squareup.okhttp.internal.Util", e);
}
}
}
|
[
"semantic.conflicts@gmail.com"
] |
semantic.conflicts@gmail.com
|
ebb311eb79928fc334e0731ad800d5b238430db5
|
afdc6313cee00d04f1126279f1c0200f65ee7a73
|
/src/main/java/de/mpii/clausie/XcompConstituent.java
|
163396db41da187389bf02d6a399b195d2aee69e
|
[] |
no_license
|
jeffrschneider/stanford-question
|
324edb261bc869df413bba69fa39e8ac86417671
|
7afc141772df481ca459b6aa17a3eb0bc19bb980
|
refs/heads/master
| 2021-01-16T18:32:33.555503
| 2016-08-27T02:17:04
| 2016-08-27T02:17:04
| 66,663,305
| 0
| 0
| null | 2016-08-26T16:34:58
| 2016-08-26T16:34:58
| null |
UTF-8
|
Java
| false
| false
| 2,991
|
java
|
package de.mpii.clausie;
import edu.stanford.nlp.ling.IndexedWord;
import edu.stanford.nlp.semgraph.SemanticGraph;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
/** An {@code XcompConstituent} of a clause formed out of an xcomp.
*
* Note that the xcomp relation refers to a clause with an external subject.
* The constituent stores the set of clauses that can be derived from the xcomp
* clause.
*
* @date $LastChangedDate: 2013-04-23 00:04:28 +0200 (Tue, 23 Apr 2013) $
* @version $LastChangedRevision: 734 $ */
public class XcompConstituent extends IndexedConstituent {
/** Clauses derived from this constituent */
private List<Clause> clauses;
private XcompConstituent() {
}
/** Constructs a new constituent for the xcomp relation.
*
* @param semanticGraph Semantic graph for this constituent ({@see #semanticGraph})
* @param root The root vertex of this constituent ({@see {@link #root})
* @param type type of this constituent
* @param clauses derived from this constituent*/
public XcompConstituent(SemanticGraph semanticGraph, IndexedWord root,
Type type, List<Clause> clauses) {
super(semanticGraph, root, type);
this.setClauses(clauses);
}
/** Constructs a new indexed constituent for the xcomp relation.
*
* @param semanticGraph Semantic graph for this constituent ({@see #semanticGraph})
* @param root The root vertex of this constituent ({@see {@link #root})
* @param additionalVertexes Additional root vertexes that form this constituent ({@see
* {@link #additionalVertexes})
* @param excludedVertexes Vertexes that are excluded from this constituent ({@see
* {@link #excludedVertexes})
* @param type type of this constituent
* * @param clauses derived from this constituent*/
public XcompConstituent(SemanticGraph semanticGraph, IndexedWord root,
Set<IndexedWord> additionalVertexes,
Set<IndexedWord> excludedVertexes, Type type, List<Clause> clauses) {
super(semanticGraph, root, additionalVertexes, excludedVertexes, type);
this.setClauses(clauses);
}
/** Returns the clauses derived from the constituent. */
public List<Clause> getClauses() {
return clauses;
}
/** Sets the clauses derived from the constituent. */
public void setClauses(List<Clause> clauses) {
this.clauses = clauses;
}
@Override
public XcompConstituent clone() {
XcompConstituent clone = new XcompConstituent();
clone.type = type;
clone.semanticGraph = new SemanticGraph(this.getSemanticGraph());
clone.root = this.getRoot();
clone.additionalVertexes = new TreeSet<IndexedWord>(this.additionalVertexes);
clone.excludedVertexes = new TreeSet<IndexedWord>(this.excludedVertexes);
clone.clauses = new ArrayList<Clause>(clauses);
return clone;
}
}
|
[
"rabrg96@gmail.com"
] |
rabrg96@gmail.com
|
53888b80029bfdf72ed8626cb7a21e0344039189
|
6f01287dceeeba26b04173748b9fa5625d47d445
|
/day01/ex02/src/UsersArrayList.java
|
d0d1c513df1f4aa1f5fa1d0f9a9e1eb442c847dc
|
[] |
no_license
|
Go0dluck/JavaPool
|
4f5b0e07e96a134e61711912e4ca6a198deab386
|
4bbc6b2ea34937858253a77d58fc908ab2e6ef09
|
refs/heads/master
| 2023-04-26T19:51:34.145446
| 2021-06-01T17:45:59
| 2021-06-01T17:45:59
| 372,915,392
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,357
|
java
|
public class UsersArrayList implements UsersList{
private User[] UsersArr;
private int Size;
public UsersArrayList() {
UsersArr = new User[10];
}
@Override
public void AddUser(String name) {
if (UsersArr.length == Size){
User[] UsersArrNew = new User[UsersArr.length + UsersArr.length / 2];
for (int i = 0; i < UsersArr.length; i++){
UsersArrNew[i] = UsersArr[i];
}
UsersArr = UsersArrNew;
}
for (int i = 0; i < UsersArr.length; i++){
if (UsersArr[i] == null){
UsersArr[i] = new User(name);
Size++;
return;
}
}
}
@Override
public User RetrieveUserId(int id) throws UserNotFoundException {
for (int i = 0; i < UsersArr.length; i++){
if (UsersArr[i] == null)
break;
if (UsersArr[i].getIdentifier() == id)
return UsersArr[i];
}
throw new UserNotFoundException();
}
@Override
public User RetrieveUserIndex(int index) {
for (int i = 0; i < UsersArr.length; i++){
if (i == index)
return UsersArr[i];
}
return null;
}
@Override
public int RetrieveNumberUsers() {
return Size;
}
}
|
[
"you@example.com"
] |
you@example.com
|
cd4f8775e5a11787852965b1fba0f93aadc7f283
|
e29c24b96ee0fc3d58e6b62a49617e46b242445c
|
/sdcct-core/src/main/java/gov/hhs/onc/sdcct/data/db/logging/impl/LoggingCacheListener.java
|
99c5a4a98a96efb23d5e88db21ae1eff6a6a7d8b
|
[
"Apache-2.0"
] |
permissive
|
EBlakeRamsey/sdcct
|
cc7cec3a6cbf72874e6c1f3af9f30344166de235
|
ba4657148edbbba420f6e07c80164d0677373c44
|
refs/heads/master
| 2021-01-19T19:12:32.481323
| 2017-04-03T18:57:08
| 2017-04-03T18:57:08
| 83,717,701
| 0
| 0
| null | 2017-03-07T16:33:24
| 2017-03-02T19:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 1,965
|
java
|
package gov.hhs.onc.sdcct.data.db.logging.impl;
import gov.hhs.onc.sdcct.beans.IdentifiedBean;
import net.sf.ehcache.CacheException;
import net.sf.ehcache.Ehcache;
import net.sf.ehcache.Element;
import net.sf.ehcache.event.CacheEventListenerAdapter;
import org.apache.commons.lang3.text.StrBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@Component("cacheListenerLogging")
public class LoggingCacheListener extends CacheEventListenerAdapter {
private static enum CacheEventType implements IdentifiedBean {
EVICTED, EXPIRED, PUT;
private final String id;
private CacheEventType() {
this.id = this.name().toLowerCase();
}
@Override
public String getId() {
return this.id;
}
}
private final static Logger LOGGER = LoggerFactory.getLogger(LoggingCacheListener.class);
@Override
public void notifyElementEvicted(Ehcache cache, Element elem) {
LOGGER.trace(buildMessage(cache, elem, CacheEventType.EVICTED));
}
@Override
public void notifyElementExpired(Ehcache cache, Element elem) {
LOGGER.trace(buildMessage(cache, elem, CacheEventType.EXPIRED));
}
@Override
public void notifyElementPut(Ehcache cache, Element elem) throws CacheException {
LOGGER.trace(buildMessage(cache, elem, CacheEventType.PUT));
}
private static String buildMessage(Ehcache cache, Element elem, CacheEventType eventType) {
StrBuilder msgBuilder = new StrBuilder("Cache (name=");
msgBuilder.append(cache.getName());
msgBuilder.append(", size=");
msgBuilder.append(cache.getSize());
msgBuilder.append(") element (key=");
msgBuilder.append(elem.getObjectKey());
msgBuilder.append(") ");
msgBuilder.append(eventType.getId());
msgBuilder.append(".");
return msgBuilder.build();
}
}
|
[
"michal.kotelba@esacinc.com"
] |
michal.kotelba@esacinc.com
|
b54d228d0fb3d24a135fa0141139ca03d8b1a23b
|
30de109d18aafd966b46632187af64f6eaa81684
|
/src/Day4/_03_ExtraExample.java
|
9045adea4fd63f6374d4bd56f9d50568e4d154a4
|
[] |
no_license
|
albertLope/SeleniumPracticeClass
|
7cbe31f65f7cddca2ea25b0388c07cb97b084e71
|
a4946f63afcce4b6f99a8c4a89b33f5d22bd99c9
|
refs/heads/master
| 2022-11-19T05:38:28.932174
| 2020-07-09T17:24:52
| 2020-07-09T17:24:52
| 273,408,521
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,298
|
java
|
package Day4;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class _03_ExtraExample {
public static void main(String[] args) {
/*
There are 2 ways to find the elements
1) id
2) Css selector
We should not use Class because of the emailorPhoneNumber input and password input has same class Name that is why we can not use it.
First give them some time and let them solve it. Then we can show all of them all the ways.
NOTE: Code is not failing when we use the class name because when we use the class name. It is because if we dont have the password
I am still able to login to website. Password is typing in the EmailOrPassword input we can show it
*/
System.setProperty("webdriver.chrome.driver", "D:\\Selenium dependency\\drivers\\chromedriver.exe");
// open the browser
WebDriver driver = new ChromeDriver();
driver.get("http://demo.guru99.com/test/facebook.html");
driver.manage().window().maximize();
String email = "testing@gmail.com";
// WebElement emailOrPhone = driver.findElement(By.id("email"));
WebElement emailOrPhone = driver.findElement(By.className("inputtext")); //check line 39 it has the same class name
// WebElement emailOrPhone = driver.findElement(By.cssSelector("input[name='email']"));
emailOrPhone.sendKeys(email);
String password = "thisIsValidPassword";
// WebElement passwordElement = driver.findElement(By.id("pass"));
WebElement passwordElement = driver.findElement(By.className("inputtext")); //HERE CODE WILL TYPE IN THE EMAILANDPASSWORD BEACUSE OF THE SAME CLASS NAME
// WebElement passwordElement = driver.findElement(By.cssSelector("input[name='pass']"));
passwordElement.sendKeys(password);
WebElement loginButton = driver.findElement(By.id("loginbutton"));
loginButton.click();
// Question: How to check URL contains the www.facebook or not
String url = driver.getCurrentUrl();
Assert.assertTrue(url.contains("www.facebook"));
}
}
|
[
"makoklu32@gmail.com"
] |
makoklu32@gmail.com
|
9d86a8ab6b92ad98ec1b926f866597e090dba3ae
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mobileqqi/classes.jar/PersonalState/ReqGetSameStateList.java
|
077dea02fe78d00d2edb52c1376f290c94ca21d5
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 3,042
|
java
|
package PersonalState;
import com.qq.taf.jce.JceInputStream;
import com.qq.taf.jce.JceOutputStream;
import com.qq.taf.jce.JceStruct;
public final class ReqGetSameStateList
extends JceStruct
{
static int cache_eFetchSex;
static int cache_eSelfSex;
static BusiReqHead cache_oHead;
static LBSInfo cache_oLbsInfo;
static stRishState cache_oSelfRishState;
static byte[] cache_vCookie;
public int eFetchSex = -1;
public int eSelfSex = 2;
public int iPageSize = -1;
public long lFriendUin = 0L;
public BusiReqHead oHead = null;
public LBSInfo oLbsInfo = null;
public stRishState oSelfRishState = null;
public byte[] vCookie = null;
public ReqGetSameStateList() {}
public ReqGetSameStateList(BusiReqHead paramBusiReqHead, byte[] paramArrayOfByte, stRishState paramstRishState, int paramInt1, LBSInfo paramLBSInfo, int paramInt2, int paramInt3, long paramLong)
{
this.oHead = paramBusiReqHead;
this.vCookie = paramArrayOfByte;
this.oSelfRishState = paramstRishState;
this.iPageSize = paramInt1;
this.oLbsInfo = paramLBSInfo;
this.eSelfSex = paramInt2;
this.eFetchSex = paramInt3;
this.lFriendUin = paramLong;
}
public void readFrom(JceInputStream paramJceInputStream)
{
if (cache_oHead == null) {
cache_oHead = new BusiReqHead();
}
this.oHead = ((BusiReqHead)paramJceInputStream.read(cache_oHead, 0, true));
if (cache_vCookie == null)
{
cache_vCookie = (byte[])new byte[1];
((byte[])cache_vCookie)[0] = 0;
}
this.vCookie = ((byte[])paramJceInputStream.read(cache_vCookie, 1, true));
if (cache_oSelfRishState == null) {
cache_oSelfRishState = new stRishState();
}
this.oSelfRishState = ((stRishState)paramJceInputStream.read(cache_oSelfRishState, 2, true));
this.iPageSize = paramJceInputStream.read(this.iPageSize, 3, false);
if (cache_oLbsInfo == null) {
cache_oLbsInfo = new LBSInfo();
}
this.oLbsInfo = ((LBSInfo)paramJceInputStream.read(cache_oLbsInfo, 4, false));
this.eSelfSex = paramJceInputStream.read(this.eSelfSex, 5, false);
this.eFetchSex = paramJceInputStream.read(this.eFetchSex, 6, false);
this.lFriendUin = paramJceInputStream.read(this.lFriendUin, 7, false);
}
public void writeTo(JceOutputStream paramJceOutputStream)
{
paramJceOutputStream.write(this.oHead, 0);
paramJceOutputStream.write(this.vCookie, 1);
paramJceOutputStream.write(this.oSelfRishState, 2);
paramJceOutputStream.write(this.iPageSize, 3);
if (this.oLbsInfo != null) {
paramJceOutputStream.write(this.oLbsInfo, 4);
}
paramJceOutputStream.write(this.eSelfSex, 5);
paramJceOutputStream.write(this.eFetchSex, 6);
paramJceOutputStream.write(this.lFriendUin, 7);
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mobileqqi\classes2.jar
* Qualified Name: PersonalState.ReqGetSameStateList
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
2260a6ee255c26e3af7bd8ab07fe0f7f58160683
|
53330fdbf3ef129d8b8bee73a7c27b2da55f7612
|
/src/leetcode竞赛/七月/sf7_19/换酒问题.java
|
f50325849239751570bbae30a43cfb77092f5d67
|
[] |
no_license
|
HuYaXing/DataStructures
|
a96c2c95c54abda75c88579989fb7ad1c4ccf65b
|
08e24e4d60ee6d1b8e09c8c172703a169b8365bf
|
refs/heads/master
| 2021-07-21T17:46:20.357646
| 2020-10-10T09:27:53
| 2020-10-10T09:27:53
| 220,730,480
| 0
| 0
| null | null | null | null |
WINDOWS-1252
|
Java
| false
| false
| 692
|
java
|
package leetcode¾ºÈü.ÆßÔÂ.sf7_19;
/**
* @Author HYStar
* @Date 2020/7/19 10:30
*/
public class »»¾ÆÎÊÌâ {
public static void main(String[] args) {
System.out.println(numWaterBottles(9, 3));
System.out.println(numWaterBottles(15, 4));
System.out.println(numWaterBottles(5, 5));
System.out.println(numWaterBottles(2, 3));
}
public static int numWaterBottles(int numBottles, int numExchange) {
int ans = numBottles;
while (numBottles >= numExchange) {
ans += numBottles / numExchange;
numBottles = numBottles % numExchange + numBottles / numExchange;
}
return ans;
}
}
|
[
"911090257@qq.com"
] |
911090257@qq.com
|
87928c077583c2ab2aa3ba5ad178e2198fe240a4
|
85645a5c78646759932752b4e72d0498b8171895
|
/src/main/java/jagoclient/igs/InformationDistributor.java
|
ec396c00806e62a5b0dd311ae75e35b032d0e635
|
[] |
no_license
|
dantin/jago
|
e9e51cd4a9321b370079087d2e99266b00afcbc0
|
314be2d273d87ddb8d1db1c29f0f2317fe78e560
|
refs/heads/master
| 2021-01-10T12:45:39.499147
| 2016-03-18T06:31:08
| 2016-03-18T06:31:08
| 54,179,075
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,498
|
java
|
package jagoclient.igs;
import jagoclient.Global;
import java.io.PrintWriter;
/**
* A Distributor to display informations from the server (type 9).
* It will open a new InformationDialog or append to an old one.
*/
public class InformationDistributor extends Distributor {
ConnectionFrame CF;
PrintWriter Out;
String S;
public InformationDialog infodialog;
int Lines;
public InformationDistributor
(ConnectionFrame cf, IgsStream in, PrintWriter out) {
super(in, 9, 0, false);
CF = cf;
Out = out;
S = new String("");
Lines = 0;
infodialog = null;
}
public void send(String C) {
if (Lines > 0) S = S + "\n" + C;
else S = S + C;
Lines++;
}
public void allsended() {
if (S.equals("")) return;
if (S.startsWith("Match") && S.indexOf("requested") > 0) {
new MatchDialog(CF, S, Out, this);
S = "";
Lines = 0;
return;
}
if (Global.blocks(S) != MessageFilter.BLOCK_COMPLETE)
CF.append(S);
if ((Global.blocks(S) == 0 && CF.wantsinformation())
|| Global.posfilter(S)) {
if (infodialog == null)
infodialog = new InformationDialog(CF, S + "\n", Out, this);
else
infodialog.append(S + "\n");
}
S = "";
Lines = 0;
}
public void remove() {
infodialog = null;
}
}
|
[
"chengjie.ding@gmail.com"
] |
chengjie.ding@gmail.com
|
9943c9f1f7ec8eef95cab3a3110355ba2aa0ce5a
|
803acaf26dcb7a5030ad6a53b75c5b53b62c0e09
|
/library/src/main/java/com/google/android/exoplayer2/source/MediaPeriod.java
|
80424d445e99c564122f8df0d5d5ee075d4b92e1
|
[
"Apache-2.0"
] |
permissive
|
Ood-Tsen/ExoPlayer
|
fdf4a454c59f3ba0c6fc77ce7e1a9168043c08b8
|
43eea90d3c9102debfd8ae58fdf5d2f383235d2a
|
refs/heads/master
| 2021-01-14T14:33:29.245223
| 2016-09-09T10:02:07
| 2016-09-09T10:02:07
| 35,490,811
| 2
| 5
| null | 2015-05-12T13:50:24
| 2015-05-12T13:50:23
| null |
UTF-8
|
Java
| false
| false
| 5,082
|
java
|
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.android.exoplayer2.source;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.trackselection.TrackSelection;
import java.io.IOException;
/**
* A source of a single period of media.
*/
public interface MediaPeriod extends SequenceableLoader {
/**
* A callback to be notified of {@link MediaPeriod} events.
*/
interface Callback extends SequenceableLoader.Callback<MediaPeriod> {
/**
* Called when preparation completes.
* <p>
* May be called from any thread. After invoking this method, the {@link MediaPeriod} can expect
* for {@link #selectTracks(TrackSelection[], boolean[], SampleStream[], boolean[], long)} to be
* called with the initial track selection.
*
* @param mediaPeriod The prepared {@link MediaPeriod}.
*/
void onPrepared(MediaPeriod mediaPeriod);
}
/**
* Throws an error that's preventing the period from becoming prepared. Does nothing if no such
* error exists.
* <p>
* This method should only be called before the period has completed preparation.
*
* @throws IOException The underlying error.
*/
void maybeThrowPrepareError() throws IOException;
/**
* Returns the {@link TrackGroup}s exposed by the period.
* <p>
* This method should only be called after the period has been prepared.
*
* @return The {@link TrackGroup}s.
*/
TrackGroupArray getTrackGroups();
/**
* Performs a track selection.
* <p>
* The call receives track {@code selections} for each renderer, {@code mayRetainStreamFlags}
* indicating whether the existing {@code SampleStream} can be retained for each selection, and
* the existing {@code stream}s themselves. The call will update {@code streams} to reflect the
* provided selections, clearing, setting and replacing entries as required. If an existing sample
* stream is retained but with the requirement that the consuming renderer be reset, then the
* corresponding flag in {@code streamResetFlags} will be set to true. This flag will also be set
* if a new sample stream is created.
* <p>
* This method should only be called after the period has been prepared.
*
* @param selections The renderer track selections.
* @param mayRetainStreamFlags Flags indicating whether the existing sample stream can be retained
* for each selection. A {@code true} value indicates that the selection is unchanged, and
* that the caller does not require that the sample stream be recreated.
* @param streams The existing sample streams, which will be updated to reflect the provided
* selections.
* @param streamResetFlags Will be updated to indicate new sample streams, and sample streams that
* have been retained but with the requirement that the consuming renderer be reset.
* @param positionUs The current playback position in microseconds.
* @return The actual position at which the tracks were enabled, in microseconds.
*/
long selectTracks(TrackSelection[] selections, boolean[] mayRetainStreamFlags,
SampleStream[] streams, boolean[] streamResetFlags, long positionUs);
/**
* Attempts to read a discontinuity.
* <p>
* After this method has returned a value other than {@link C#TIME_UNSET}, all
* {@link SampleStream}s provided by the period are guaranteed to start from a key frame.
*
* @return If a discontinuity was read then the playback position in microseconds after the
* discontinuity. Else {@link C#TIME_UNSET}.
*/
long readDiscontinuity();
/**
* Returns an estimate of the position up to which data is buffered for the enabled tracks.
* <p>
* This method should only be called when at least one track is selected.
*
* @return An estimate of the absolute position in microseconds up to which data is buffered, or
* {@link C#TIME_END_OF_SOURCE} if the track is fully buffered.
*/
long getBufferedPositionUs();
/**
* Attempts to seek to the specified position in microseconds.
* <p>
* After this method has been called, all {@link SampleStream}s provided by the period are
* guaranteed to start from a key frame.
* <p>
* This method should only be called when at least one track is selected.
*
* @param positionUs The seek position in microseconds.
* @return The actual position to which the period was seeked, in microseconds.
*/
long seekToUs(long positionUs);
}
|
[
"olly@google.com"
] |
olly@google.com
|
279d456e43a75e808556f81d396469a487e8c1ae
|
6a516b3939751b7c4ee1859280569151124dd2c2
|
/src/com/javarush/test/level18/lesson10/bonus01/Solution.java
|
67b279ee9187ce9564f63fd9b20d993e7cee2901
|
[] |
no_license
|
SirMatters/JavaRush-Solutions
|
690d34b0680ca2f2b220ce3fce666937cb59050d
|
fe3592308428baac735fb3c443356b54e38a4f8d
|
refs/heads/master
| 2020-12-24T11:45:45.233258
| 2018-04-14T18:50:25
| 2018-04-14T18:50:25
| 73,015,759
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,771
|
java
|
package com.javarush.test.level18.lesson10.bonus01;
/* Шифровка
Придумать механизм шифровки/дешифровки
Программа запускается с одним из следующих наборов параметров:
-e fileName fileOutputName
-d fileName fileOutputName
где
fileName - имя файла, который необходимо зашифровать/расшифровать
fileOutputName - имя файла, куда необходимо записать результат шифрования/дешифрования
-e - ключ указывает, что необходимо зашифровать данные
-d - ключ указывает, что необходимо расшифровать данные
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
String s = args[0];
FileInputStream in = new FileInputStream(args[1]);
FileOutputStream out = new FileOutputStream(args[2]);
if (s.equals("-e")){
while (in.available()>0) {
byte b = (byte) in.read();
if (b == Byte.MAX_VALUE) {
out.write(Byte.MIN_VALUE);
} else {
out.write(b + 1);
}
}
} else {
while (in.available() > 0) {
byte b = (byte) in.read();
if (b == Byte.MIN_VALUE) {
out.write(Byte.MAX_VALUE);
} else {
out.write(b - 1);
}
}
}
in.close();
out.close();
}
}
|
[
"perov.krll@gmail.com"
] |
perov.krll@gmail.com
|
ce34c162a96e98a563153ae986b783488e7ecdd2
|
3c31471271a94e952d2edde4a6689ef27ed93feb
|
/core/src/io/anuke/koru/traits/ConnectionTrait.java
|
9792ba51e940849164297d2cc96421bac256bf2b
|
[] |
no_license
|
Anuken/Koru
|
129e4a8e730084bfa7b7afa5849b9e409d1ae817
|
4972659ffc223d50e200e782483d43b1698aae45
|
refs/heads/master
| 2020-04-13T22:12:21.051272
| 2020-01-21T14:48:41
| 2020-01-21T14:48:41
| 55,321,165
| 95
| 12
| null | 2017-07-22T23:23:38
| 2016-04-02T23:36:40
|
Java
|
UTF-8
|
Java
| false
| false
| 288
|
java
|
package io.anuke.koru.traits;
import io.anuke.koru.network.syncing.SyncData.Synced;
import io.anuke.ucore.ecs.Trait;
@Synced
public class ConnectionTrait extends Trait{
public boolean local; //whether this is the local player
public transient int connectionID;
public String name;
}
|
[
"arnukren@gmail.com"
] |
arnukren@gmail.com
|
9faf7c2b05cb4cb5ecf717665d27146b4e365900
|
5d76b555a3614ab0f156bcad357e45c94d121e2d
|
/src-v3/com/crumby/impl/danbooru/DanbooruPoolGalleryProducer.java
|
338be4f6bf0e77c51c8d0b428363c0d9cefcef0c
|
[] |
no_license
|
BinSlashBash/xcrumby
|
8e09282387e2e82d12957d22fa1bb0322f6e6227
|
5b8b1cc8537ae1cfb59448d37b6efca01dded347
|
refs/heads/master
| 2016-09-01T05:58:46.144411
| 2016-02-15T13:23:25
| 2016-02-15T13:23:25
| 51,755,603
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,597
|
java
|
package com.crumby.impl.danbooru;
import com.crumby.impl.crumby.UnsupportedUrlFragment;
import com.crumby.lib.GalleryImage;
import com.crumby.lib.fragment.producer.GalleryProducer;
import com.google.gson.JsonObject;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
public class DanbooruPoolGalleryProducer extends DanbooruGalleryProducer {
private String poolId;
protected GalleryImage getGalleryImage(JsonObject galleryImageObj) {
GalleryImage image = super.getGalleryImage(galleryImageObj);
image.setLinkUrl(deriveUrl(galleryImageObj.get("id"), "/posts/") + "?pool_id=" + this.poolId);
image.setImageUrl(deriveUrl(galleryImageObj.get("large_file_url"), UnsupportedUrlFragment.DISPLAY_NAME));
return image;
}
protected boolean fetchMetadata() throws IOException {
if (getHostImage().getTitle() != null || getHostImage().getDescription() != null) {
return false;
}
getHostImage().copy(DanbooruPoolProducer.getGalleryImage(JSON_PARSER.parse(GalleryProducer.fetchUrl("http://danbooru.donmai.us/pools/" + this.poolId + ".json")).getAsJsonObject()));
return true;
}
public URL convertUrlToApi(String url) {
String apiUrlString = DanbooruGalleryProducer.API_URL;
this.poolId = DanbooruPoolGalleryFragment.matchIdFromUrl(url.toString());
try {
return new URL(apiUrlString + "tags=pool:" + this.poolId);
} catch (MalformedURLException e) {
e.printStackTrace();
return null;
}
}
}
|
[
"binslashbash@otaking.top"
] |
binslashbash@otaking.top
|
7956d4bf57a19b0121d552f78d6fdde498553134
|
4a792164bb48551ca85fff85848ef10ec1cdd24f
|
/src/test/java/Chapter5/DecorateTest.java
|
1f0020cf89cd17afa826575774d068896a05d60d
|
[] |
no_license
|
JakoetTH/Chapter5
|
aa0cc8daf3965f4ee5596a05b0cb393f20eed1ca
|
f4dd6198f9c2d0e9f14d849a2d61936cf683fedc
|
refs/heads/master
| 2016-09-01T18:13:54.629559
| 2015-03-13T21:22:36
| 2015-03-13T21:22:36
| 32,147,745
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 783
|
java
|
package Chapter5;
import Chapter5.Config.SpringConfig;
import Chapter5.Impl.Decorator.ColourAeroplane;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class DecorateTest {
private ApplicationContext ctx;
private ColourAeroplane flight;
@Before
public void setUp()
{
ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
flight = (ColourAeroplane)ctx.getBean("DecorateBean");
}
@Test
public void testDecorate()
{
Assert.assertEquals("Purple",flight.Colour());
}
@After
public void tearDown()
{
}
}
|
[
"thawhirwow@gmail.com"
] |
thawhirwow@gmail.com
|
f999f2b17b7dc407a322baa13630cabcfeb10383
|
74781f596473dfd80e33d6c1fc4d19b4dc0409aa
|
/src/domain/DomainConsumer.java
|
c5d0c5210d2f81af9deb030b99de8be4ffb1f975
|
[] |
no_license
|
junknet/domain_hunter_pro
|
6b2e44fc8825d15f1df6e42ec58787f738f53589
|
c48afc85e4c5973a88121a3891ab519b73c58c3b
|
refs/heads/master
| 2023-08-16T23:30:24.783173
| 2021-09-27T10:40:39
| 2021-09-27T10:40:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,865
|
java
|
package domain;
import burp.BurpExtender;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.CopyOnWriteArraySet;
//负责将收集的域名信息写入数据库
public class DomainConsumer extends Thread {
private int threadNo;
private volatile boolean stopflag;
public DomainConsumer(int threadNo) {
stopflag= false;
}
public void stopThread() {
stopflag = true;
}
@Override
public void run() {
while(true){
if (stopflag) {
break;
}
try {
QueueToResult();
int min=3;
int max=5;
Random random = new Random();
int minute = random.nextInt(max-min+1) + min;
sleep(minute*60*1000);
} catch (Exception error) {
error.printStackTrace(BurpExtender.getStderr());
}
}
}
/*
使用这种方法从Queue中取数据,一来避免了主动clear的操作,二来避免在使用数据后,clear操作之前加进来的数据的丢失。
*/
public static void moveQueueToSet(BlockingQueue<String> queue, Set<String> resultSet){
while (!queue.isEmpty()){
try {
String item = queue.take();
resultSet.add(item);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
public static void QueueToResult() {
//HashSet<String> oldSubdomains = new HashSet<String>();
CopyOnWriteArraySet<String> oldSubdomains = new CopyOnWriteArraySet<String>();
//java.util.ConcurrentModificationException 可能同时有其他线程在向subDomainSet中写数据,导致的这个错误。
//http://ifeve.com/java-copy-on-write/
//https://www.jianshu.com/p/c5b52927a61a
DomainManager result= DomainPanel.getDomainResult();
if (result != null) {
oldSubdomains.addAll(result.getSubDomainSet());
moveQueueToSet(BurpExtender.subDomainQueue,result.getSubDomainSet());//所有子域名还是都存在里面的,至少新发现的又单独存了一份,所以SubDomainSet一直都是最全的。
moveQueueToSet(BurpExtender.similarDomainQueue,result.getSimilarDomainSet());
moveQueueToSet(BurpExtender.relatedDomainQueue,result.getRelatedDomainSet());
moveQueueToSet(BurpExtender.emailQueue,result.getEmailSet());
moveQueueToSet(BurpExtender.packageNameQueue,result.getPackageNameSet());
HashSet<String> newSubdomains = new HashSet<String>();
newSubdomains.addAll(result.getSubDomainSet());
newSubdomains.removeAll(oldSubdomains);
result.getNewAndNotGetTitleDomainSet().addAll(newSubdomains);
if (newSubdomains.size()>0){
BurpExtender.getStdout().println(String.format("~~~~~~~~~~~~~%s subdomains added!~~~~~~~~~~~~~",newSubdomains.size()));
BurpExtender.getStdout().println(String.join(System.lineSeparator(), newSubdomains));
DomainPanel.autoSave();//进行一次主动保存
}
}
}
public static void main(String[] args) {
}
}
|
[
"bit4woo@163.com"
] |
bit4woo@163.com
|
53900a47610dfe4504e608d26bb0acafae486626
|
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
|
/src/main/output/school_reason_body/place/question_kind/man/guy_study/power_information.java
|
ce8c9fe3e34ac29d8b4737264e59e7342c67338f
|
[] |
no_license
|
matkosoric/GenericNameTesting
|
860a22af1098dda9ea9e24a1fc681bb728aa2d69
|
03f4a38229c28bc6d83258e5a84fce4b189d5f00
|
refs/heads/master
| 2021-01-08T22:35:20.022350
| 2020-02-21T11:28:21
| 2020-02-21T11:28:21
| 242,123,053
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,564
|
java
|
'use strict';
let https = require ('https');
// **********************************************
// *** Update or verify the following values. ***
// **********************************************
// Replace the subscriptionKey string value with your valid subscription key.
let subscriptionKey = '8851d7fd8f883f8ef9b37856cc77dba0';
let host = 'api.microsofttranslator.com';
let path = '/V2/Http.svc/TranslateArray';
let target = 'fr-fr';
let params = '';
let ns = "http://schemas.microsoft.com/2003/10/Serialization/Arrays";
let content =
'<TranslateArrayRequest>\n' +
// NOTE: AppId is required, but it can be empty because we are sending the Ocp-Apim-Subscription-Key header.
' <AppId />\n' +
' <Texts>\n' +
' <string xmlns=\"' + ns + '\">Hello</string>\n' +
' <string xmlns=\"' + ns + '\">Goodbye</string>\n' +
' </Texts>\n' +
' <To>' + target + '</To>\n' +
'</TranslateArrayRequest>\n';
let response_handler = function (response) {
let body = '';
response.on ('data', function (d) {
body += d;
});
response.on ('end', function () {
console.log (body);
});
response.on ('error', function (e) {
console.log ('Error: ' + e.message);
});
};
let TranslateArray = function () {
let request_params = {
method : 'POST',
hostname : host,
path : path + params,
headers : {
'Content-Type' : 'text/xml',
'c83332e0760008ee4ff91f6dd4722b0d' : subscriptionKey,
}
};
let req = https.request (request_params, response_handler);
req.write (content);
req.end ();
}
TranslateArray ();
|
[
"soric.matko@gmail.com"
] |
soric.matko@gmail.com
|
4e2a8efcd442a481db8b6ab763dd359bc3104c7e
|
a26ec63279caad0dd0f57120f10440bbd3645ba4
|
/business-view/src/main/java/com/yunos/tvtaobao/biz/listener/WebviewClientListener.java
|
63cc1b9a5e246bb8768cc5fd46368b86b63175f4
|
[] |
no_license
|
P79N6A/tvtao
|
6b0af50a878e882ad2c0da399a0a8c0304394dff
|
4943116ec8cfb946b85cbfea9641e87834e675ed
|
refs/heads/master
| 2020-04-25T15:27:50.798979
| 2019-02-27T08:55:16
| 2019-02-27T08:55:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 452
|
java
|
/** $
* PROJECT NAME: business-view
* PACKAGE NAME: com.yunos.tvtaobao.biz.listener
* FILE NAME: WebviewClientListener.java
* CREATED TIME: 2015年5月13日
* COPYRIGHT: Copyright(c) 2013 ~ 2015 All Rights Reserved.
*/
package com.yunos.tvtaobao.biz.listener;
public interface WebviewClientListener {
void onPageStarted();
void onPageFinished();
void onReceivedError(int errorCode, String description, String failingUrl);
}
|
[
"wb-wht434871@alibaba-inc.com"
] |
wb-wht434871@alibaba-inc.com
|
c68dfaefb2c913030337332b59cc0f53a66f4048
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-12667-8-1-PESA_II-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/web/DownloadAction_ESTest_scaffolding.java
|
b3c8e3cdc54b48dd4cf7ba826de15ab5405243e9
|
[] |
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
| 436
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Thu Apr 02 14:43:16 UTC 2020
*/
package com.xpn.xwiki.web;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class DownloadAction_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
cb3e6e5afb8ff0928824dddec15765dc4de150c1
|
7fe9ca53ee2af7f34ca81e6ae384fc8a92d89c69
|
/src/main/java/org/jetlinks/core/codec/defaults/DeviceMessageCodec.java
|
8a1a9581449f47f92cdd71717ede1e309c991f43
|
[] |
no_license
|
zhitom/jetlinks-core
|
4ec7c0a7b70de512af122534f86df7a021ebc3c4
|
407b8ac9f5b475a9d43af52bd16269451f2330d2
|
refs/heads/master
| 2022-12-05T03:49:58.410497
| 2020-07-10T07:12:24
| 2020-07-10T07:12:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,182
|
java
|
package org.jetlinks.core.codec.defaults;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import io.netty.buffer.Unpooled;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.jetlinks.core.Payload;
import org.jetlinks.core.codec.Codec;
import org.jetlinks.core.message.DeviceMessage;
import org.jetlinks.core.message.MessageType;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class DeviceMessageCodec implements Codec<DeviceMessage> {
public static DeviceMessageCodec INSTANCE = new DeviceMessageCodec();
@Nullable
@Override
public DeviceMessage decode(@Nonnull Payload payload) {
JSONObject json = JSON.parseObject(payload.bodyAsString());
return MessageType
.convertMessage(json)
.map(DeviceMessage.class::cast)
.orElseThrow(() -> new UnsupportedOperationException("unsupport device message : " + json));
}
@Override
public Payload encode(DeviceMessage body) {
return Payload.of(Unpooled.wrappedBuffer(body.toJson().toJSONString().getBytes()));
}
}
|
[
"zh.sqy@qq.com"
] |
zh.sqy@qq.com
|
d9bf4dd75410ffed546e11ae0a59a34bac9f29ce
|
ff1c94519f9672fb26b31a97853774ba8c9016a8
|
/src/RangeSumBST/Solution.java
|
465ebe422189e184f8a02124b9de07f0151d2c01
|
[] |
no_license
|
wangyao2221/LeetCode
|
0a796af620e9e6dfefb8c49f755b4f2b6ee8d6ba
|
9ec81a60dcda022cf17cda14c1d373ffd28d8a72
|
refs/heads/master
| 2021-01-20T02:53:08.629877
| 2020-07-29T05:53:39
| 2020-07-29T05:53:39
| 89,457,428
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 332
|
java
|
package RangeSumBST;
import common.BinaryTreeNode;
class Solution {
public int rangeSumBST(BinaryTreeNode root, int L, int R) {
if(root == null) return 0;
int val = root.val;
val = val >= L && val <= R ? val : 0;
return val + rangeSumBST(root.left,L,R) + rangeSumBST(root.right,L,R);
}
}
|
[
"wangyao2221@163.com"
] |
wangyao2221@163.com
|
29ce5e9ca9a02a85118272107555c823f399c87e
|
cdd8cf6479e519ff18c71ccba529c0875e49169a
|
/src/main/java/top/dianmu/ccompiler/learn/day14/InputSystem/StdInHandler.java
|
430dbc2ac44658136aa6ec002b5e2a90d91f001c
|
[] |
no_license
|
hungry-game/CCompiler_for_learn
|
af3611bd636978d72df3e09399f144f1ac482c84
|
3f1d3c48dd229ce1eb265ae0d3c8f2051051418b
|
refs/heads/master
| 2022-05-26T18:33:01.230199
| 2020-05-02T12:57:33
| 2020-05-02T12:57:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,020
|
java
|
package top.dianmu.ccompiler.learn.day14.InputSystem;
import java.io.UnsupportedEncodingException;
import java.util.Scanner;
public class StdInHandler implements FileHandler{
private String input_buffer = "";
private int curPos = 0;
public void Open() {
Scanner s = new Scanner(System.in);
while (true) {
String line = s.nextLine();
if (line.equals("end")) {
break;
}
input_buffer += line;
input_buffer += '\n';
}
// s.close();
}
public int Close() {
return 0;
}
public int Read(byte[] buf, int begin, int len) {
if (curPos >= input_buffer.length()) {
return 0;
}
int readCnt = 0;
try {
byte[] inputBuf = input_buffer.getBytes("UTF8");
while (curPos + readCnt < input_buffer.length() && readCnt < len) {
buf[begin + readCnt] = inputBuf[curPos + readCnt];
readCnt++;
}
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return readCnt;
}
}
|
[
"2673077461@qq.com"
] |
2673077461@qq.com
|
879042b1c5756b8cbad50d9fbe60d5b08e8f2250
|
43ca534032faa722e206f4585f3075e8dd43de6c
|
/src/com/instagram/android/feed/a/g.java
|
18fefadaa51b04a2ec03d98e713f6bb95078767e
|
[] |
no_license
|
dnoise/IG-6.9.1-decompiled
|
3e87ba382a60ba995e582fc50278a31505109684
|
316612d5e1bfd4a74cee47da9063a38e9d50af68
|
refs/heads/master
| 2021-01-15T12:42:37.833988
| 2014-10-29T13:17:01
| 2014-10-29T13:17:01
| 26,952,948
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,574
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.instagram.android.feed.a;
import com.instagram.android.fragment.a;
import com.instagram.common.g.b.h;
import com.instagram.feed.d.l;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
// Referenced classes of package com.instagram.android.feed.a:
// a, h, f
final class g
{
final com.instagram.android.feed.a.a a;
private boolean b;
private final Map c;
private final ArrayList d;
private final ArrayList e;
private g(com.instagram.android.feed.a.a a1)
{
a = a1;
super();
b = false;
c = new HashMap();
d = new ArrayList();
e = new ArrayList();
}
g(com.instagram.android.feed.a.a a1, byte byte0)
{
this(a1);
}
static void a(g g1)
{
g1.h();
}
private void a(l l1)
{
if (a.o() == com.instagram.android.feed.a.h.a)
{
com.instagram.common.g.b.h.a().c(l1.b(a.a.n()));
return;
} else
{
com.instagram.common.g.b.h.a().c(l1.e());
return;
}
}
static Map b(g g1)
{
return g1.c;
}
static int c(g g1)
{
return g1.g();
}
private int f()
{
boolean flag = a.a.g();
int i = 0;
if (flag)
{
boolean flag1 = a.a.ag();
i = 0;
if (flag1)
{
i = e.size() % 3;
}
}
return i;
}
private int g()
{
return e.size();
}
private void h()
{
for (Iterator iterator = d.iterator(); iterator.hasNext(); a((l)iterator.next())) { }
}
public final l a(int i)
{
return (l)e.get(i);
}
public final void a()
{
e.clear();
Iterator iterator = d.iterator();
do
{
if (!iterator.hasNext())
{
break;
}
l l1 = (l)iterator.next();
if (a.b(l1))
{
e.add(l1);
}
} while (true);
}
public final void a(List list, boolean flag)
{
if (list != null)
{
Iterator iterator = list.iterator();
int i = 0;
do
{
if (!iterator.hasNext())
{
break;
}
l l1 = (l)iterator.next();
String s = l1.d();
if ((l)c.get(s) == null)
{
c.put(s, l1);
if (flag)
{
ArrayList arraylist = d;
int j = i + 1;
arraylist.add(i, l1);
i = j;
} else
{
d.add(l1);
}
a(l1);
}
} while (true);
}
if (b)
{
b = false;
if (com.instagram.android.feed.a.a.c(a) != null)
{
com.instagram.android.feed.a.a.c(a).a();
}
}
}
public final List b(int i)
{
ArrayList arraylist = new ArrayList();
int j = i * 3;
for (int k = 0; k < 3; k++)
{
int i1 = j + k;
if (i1 < g())
{
arraylist.add(a(i1));
}
}
return arraylist;
}
public final void b()
{
b = true;
c.clear();
d.clear();
e.clear();
}
public final int c()
{
if (com.instagram.android.feed.a.a.d(a) == com.instagram.android.feed.a.h.a)
{
return e.size() - f();
}
if (com.instagram.android.feed.a.a.d(a) == h.b)
{
if (a.a.g() || a.a.ah())
{
return (int)Math.floor((double)e.size() / 3D);
} else
{
return (int)Math.ceil((double)e.size() / 3D);
}
} else
{
throw new UnsupportedOperationException("View mode not handled");
}
}
public final boolean d()
{
return c() == 0;
}
public final boolean e()
{
return e.size() > 0;
}
}
|
[
"leo.sjoberg@gmail.com"
] |
leo.sjoberg@gmail.com
|
f1c8fe56aa2eab61c2cfae7f266eef653808362e
|
108dc17e407b69c4e0fe29801de3d0d919e00ea6
|
/com.carrotgarden.m2e/com.carrotgarden.m2e.scr/com.carrotgarden.m2e.scr.testing/src/main/java/root00/branch13/DummyComp_03.java
|
947f94b7ff15053bef9b9f26415fb0b56051eedf
|
[
"BSD-3-Clause"
] |
permissive
|
barchart/carrot-eclipse
|
c017013e4913a1ba9b1f651778026be329802809
|
50f4433c0996646fd96593cabecaeeb1de798426
|
refs/heads/master
| 2023-08-31T05:54:26.725744
| 2013-06-23T21:18:15
| 2013-06-23T21:18:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,110
|
java
|
/**
* Copyright (C) 2010-2012 Andrei Pozolotin <Andrei.Pozolotin@gmail.com>
*
* All rights reserved. Licensed under the OSI BSD License.
*
* http://www.opensource.org/licenses/bsd-license.php
*/
package root00.branch13;
import java.util.concurrent.Executor;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Property;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferenceCardinality;
import org.osgi.service.component.annotations.ReferencePolicy;
// should ignore runnable
@Component
public class DummyComp_03 implements Cloneable, Runnable {
@Property
static final String VALUE= "hello";
@Reference(name = "1133")
void bind(final Executor executor) {
//
}
void unbind(final Executor executor) {
//
}
@Reference(name = "113311", policy=ReferencePolicy.DYNAMIC, cardinality=ReferenceCardinality.MULTIPLE)
void bind(final Runnable tasker) {
//
}
void unbind(final Runnable tasker) {
}
//
@Override
public void run() {
// TODO Auto-generated method stub
}
}
|
[
"Andrei.Pozolotin@gmail.com"
] |
Andrei.Pozolotin@gmail.com
|
bf065823348e5552d9ebdd1c8a26d94ce8c6b305
|
aa373bd1056d35a584bb59426bb55245b26d3616
|
/mylibrary/src/main/java/so/bubu/ui/test/mylibrary/input/SingleCheckbox.java
|
12f4d527c7651b6d2de6bc86562a52b2e8be369a
|
[] |
no_license
|
zhenghengZN/Ui
|
c4544c7966e32e9c59db993eefdd8acf7489e759
|
d1810e18c25c7aaffb2c72d2a9424687d29c4ef6
|
refs/heads/master
| 2021-04-26T23:28:33.486016
| 2018-04-17T02:53:03
| 2018-04-17T02:53:03
| 124,001,334
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,275
|
java
|
package so.bubu.ui.test.mylibrary.input;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.TextView;
import java.util.HashMap;
import Util.ResourceUtil;
import so.bubu.ui.test.mylibrary.R;
/**
* Created by zhengheng on 18/1/29.
*/
public class SingleCheckbox extends LinearLayout {
private TextView title;
private RadioButton checkImage;
private View view, parent;
private String titleName;
private boolean ischeck;
public SingleCheckbox(Context context) {
this(context, null);
}
public SingleCheckbox(Context context, AttributeSet attrs) {
super(context, attrs);
this.setOrientation(VERTICAL);
this.view = LayoutInflater.from(context).inflate(R.layout.singlecheckbox, this, true);
parent = view.findViewById(R.id.parent);
// parent.setOnClickListener(this);
title = (TextView) view.findViewById(R.id.title);
checkImage = (RadioButton) view.findViewById(R.id.check_img);
TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.SingleCheckbox);
titleName = ta.getString(R.styleable.SingleCheckbox_check_title);
title.setText(titleName);
View view = new View(context);
LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, ResourceUtil.Dp2Px(0.5f));
lp.setMargins(ResourceUtil.Dp2Px(10f), 0, 0, 0);
view.setLayoutParams(lp);
view.setBackgroundColor(getResources().getColor(R.color.color_e2e2e2));
this.addView(view);
this.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
checkImage.setChecked(!ischeck);
}
});
}
public void init(HashMap<String,Object> map) {
title.setText((String)map.get("title"));
}
public void setTitle(String s) {
title.setText(s);
}
public void setCheckChage(boolean check) {
checkImage.setChecked(check);
}
public String getTtile() {
return title.getText().toString();
}
}
|
[
"zhengheng@Mac-mini.local"
] |
zhengheng@Mac-mini.local
|
a3ddde5c65b05eb0cd8ae6fa518fc81eae4d632b
|
67322142fcb2482b300373d1535b1b0f9805644d
|
/ShapeTest01/src/shape/Triangle.java
|
1796b6f9ae4c18de142739da0ea7fb8b282aee27
|
[] |
no_license
|
bj730612/java_fundamental
|
cf52c3fca72bf7daa8d557776c4804d51aac3627
|
ed9cad1b1b6fcaee4137945a7a2b2a9949256af8
|
refs/heads/master
| 2021-09-11T15:24:25.088379
| 2018-04-09T07:38:39
| 2018-04-09T07:38:39
| 127,361,781
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 174
|
java
|
package shape;
public class Triangle extends Shape {
int height;
@Override
public void draw() {
System.out.println("삼각형 그리기 메소드");
}
}
|
[
"USER@test.com"
] |
USER@test.com
|
0dec664044ba28c8b3f65669bd038c14ef81f9fb
|
70c968df577bc62647ca5ae5d78f85113a30d572
|
/java/core/week-b-demos/src/main/java/com/revature/compare/models/Box.java
|
0df782beac873238948d2cdd91a72e6eb45ce2f3
|
[] |
no_license
|
200727-java-ng-usf/demos
|
b65323584a24d437722ce13bba80f7aaad03ae1b
|
86e190137e15a104b4cd148a9cd82e73929d131e
|
refs/heads/master
| 2023-06-03T17:13:49.061610
| 2021-06-04T22:26:55
| 2021-06-04T22:26:55
| 282,066,419
| 0
| 0
| null | 2020-09-17T21:02:32
| 2020-07-23T22:10:53
|
Java
|
UTF-8
|
Java
| false
| false
| 1,780
|
java
|
package com.revature.compare.models;
import java.util.Objects;
// How to create a POJO:
// declare variables
// declare constructors
// declare getters and setters
// override hashCode, equals, and toString
public class Box implements Comparable<Box> {
private double volume;
private String color;
public Box(double volume, String color) {
this.volume = volume;
this.color = color;
}
public double getVolume() {
return volume;
}
public void setVolume(double volume) {
this.volume = volume;
}
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Box box = (Box) o;
return Double.compare(box.volume, volume) == 0 &&
Objects.equals(color, box.color);
}
@Override
public int hashCode() {
return Objects.hash(volume, color);
}
@Override
public String toString() {
return "Box{" +
"volume=" + volume +
", color='" + color + '\'' +
'}';
}
@Override
public int compareTo(Box otherBox) {
if (this.volume > otherBox.volume) {
return 1;
} else if (this.volume < otherBox.volume) {
return -1;
} else {
return this.color.compareTo(otherBox.color); // if both boxes have equal volume, compare by color
}
// one-liner version of the above code (because Double implements Comparable)
// return Double.compare(this.volume, otherBox.volume);
}
}
|
[
"wezley.singleton@gmail.com"
] |
wezley.singleton@gmail.com
|
b5811818a178cac87d575278982ce6fa4a2236d5
|
3a7742b372c0597037d9bd569e37ff330b6d7a4f
|
/ph-jdmc-example/src/main/java/com/helger/aufnahme/smallbo/IHabitatbaumgruppe.java
|
d9e4643d5e28d03c6454dd83a418c3d1a5d1824a
|
[
"Apache-2.0"
] |
permissive
|
jdrew1303/ph-jdmc
|
eecc5c1eec6f9d5d29030b4ce0b41a6c28648a0b
|
75efd96646883aab3eecf261df7cba37ef60c9a9
|
refs/heads/master
| 2023-08-27T14:28:40.256248
| 2021-10-30T19:34:08
| 2021-10-30T19:34:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,751
|
java
|
/*
* Copyright (C) 2018-2019 Philip Helger (www.helger.com)
* philip[at]helger[dot]com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.helger.aufnahme.smallbo;
import java.io.File;
import java.time.LocalDate;
import com.helger.commons.annotation.Nonempty;
import com.helger.commons.annotation.ReturnsMutableObject;
import com.helger.commons.collection.impl.ICommonsList;
import com.helger.commons.string.StringHelper;
import com.helger.tenancy.IBusinessObject;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* <p>Interface for class {@link Habitatbaumgruppe}</p>
* <p>This class was initially automatically created</p>
*
*
* @author JDMCodeGenerator
*/
public interface IHabitatbaumgruppe
extends IBusinessObject
{
/**
* Schlüsselfeld
*
* @return
* The requested value.
*/
int getHBGNr();
/**
* Fotos
*
* @return
* The requested value. May neither be <code>null</code> nor empty.
*/
@Nonnull
@Nonempty
@ReturnsMutableObject
ICommonsList<File> pics();
/**
* zugehörige Biotopbäume
*
* @return
* The requested value. May not be <code>null</code>.
*/
@Nonnull
@ReturnsMutableObject
ICommonsList<IBiotopbaum> HBGzBB();
/**
* Get the value of date.
*
* @return
* The requested value. May not be <code>null</code>.
*/
@Nonnull
LocalDate getDate();
/**
* allg. Beschreibung Freitext
*
* @return
* The requested value. May not be <code>null</code>.
*/
@Nonnull
String getStandort();
/**
* Wald, einschichtig (1 Baumschicht, kaum Unterwuchs) oder mehrschichtiger Bestand (Unterwuchs, Strauchsch., evtl. 2. Baumschicht)
*
* @return
* The requested value.
*/
boolean isOneLevel();
/**
* lichter Bestand (Besonnung)
*
* @return
* The requested value.
*/
boolean isLight();
/**
* geschlossene Kronendach
*
* @return
* The requested value.
*/
boolean isClosedCrown();
/**
* explitzit keine Besonnung
*
* @return
* The requested value.
*/
boolean isNoSun();
/**
* eingebettet in homogenene oder heterogene Umgebung
*
* @return
* The requested value.
*/
boolean isHomogen();
/**
* Exposition
*
* @return
* The requested value. May not be <code>null</code>.
*/
@Nonnull
EExposition getExposition();
@Nonnull
default String getExpositionID() {
return getExposition().getID();
}
/**
* Angabe von Neigungen: keine, Angabe von Neigungen, Freitext
*
* @return
* The requested value. May be <code>null</code>.
*/
@Nullable
String getHanglage();
default boolean hasHanglage() {
return StringHelper.hasText(getHanglage());
}
/**
* Größe (in m²)
*
* @return
* The requested value.
*/
int getAreaSize();
/**
* Habitatbaumgruppe NUR aus schon kartierten Biotopbäumen oder auch aus anderen Bäumen bestehend
*
* @return
* The requested value.
*/
boolean isOnlyBB();
/**
* Freitext
*
* @return
* The requested value. May not be <code>null</code>.
*/
@Nonnull
String getBeschreibung();
}
|
[
"philip@helger.com"
] |
philip@helger.com
|
eab285de93967a77a9bae27ce2e44a30c9d71370
|
49b9758a4e959f5974c9192b9f0e7834e93c6c7a
|
/Original Files/source/src/android/support/v4/view/accessibility/G.java
|
140911c07b79f34b36e742e4b46e2629928e5c19
|
[
"Apache-2.0"
] |
permissive
|
renanalves/MiBandDecompiled
|
88855d3182d3a66c4c59c6202c8ccc9f5d38c5cf
|
2c12ea0a68e55d776551ad70ed4ef26b0ed87a70
|
refs/heads/master
| 2021-05-02T18:26:40.875129
| 2015-05-04T12:49:22
| 2015-05-04T12:49:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 748
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package android.support.v4.view.accessibility;
import android.view.accessibility.AccessibilityRecord;
class G
{
G()
{
}
public static int a(Object obj)
{
return ((AccessibilityRecord)obj).getMaxScrollX();
}
public static void a(Object obj, int i)
{
((AccessibilityRecord)obj).setMaxScrollX(i);
}
public static int b(Object obj)
{
return ((AccessibilityRecord)obj).getMaxScrollY();
}
public static void b(Object obj, int i)
{
((AccessibilityRecord)obj).setMaxScrollY(i);
}
}
|
[
"kvishnudev-office@yahoo.com"
] |
kvishnudev-office@yahoo.com
|
b149c8ef2c4876f8dad147c5c4b39e16487b3228
|
07ac433d94ef68715b5f18b834ac4dc8bb5b8261
|
/benchmarks/caldat/julday/Eq/newV.java
|
0354386c4f0dc37460e736597d0d95b988f42a5d
|
[
"MIT"
] |
permissive
|
shrBadihi/ARDiff_Equiv_Checking
|
a54fb2908303b14a5a1f2a32b69841b213b2c999
|
e8396ae4af2b1eda483cb316c51cd76949cd0ffc
|
refs/heads/master
| 2023-04-03T08:40:07.919031
| 2021-02-05T04:44:34
| 2021-02-05T04:44:34
| 266,228,060
| 4
| 4
|
MIT
| 2020-11-26T01:34:08
| 2020-05-22T23:39:32
|
Java
|
UTF-8
|
Java
| false
| false
| 727
|
java
|
package demo.benchmarks.caldat.julday.Eq;
public class newV {
public static double snippet(double mmj, double idj, double iyyyj) {
double IGREG=15.0+31.0*(10.0+12.0*1582.0);
double ja =1.0;
double jul=0.0;
double jy=iyyyj;
double jm=0.0;
if (iyyyj == 0.0) //change
return 0.0;
if (jy < 0.0)
++jy;
if (mmj > 2.0) {
jm=mmj+1.0;
}
else {
--jy;
jm=mmj+13.0;
}
jul = Math.abs(365.0*jy)+Math.sqrt(30.0*jm)+idj+1720995.0;
if (idj+31.0*(mmj+12.0*iyyyj) <= IGREG ) {
ja=(0.01*jy);
jul += 2.0-ja+(0.25*ja);
}
return jul;
}
}
|
[
"shr.badihi@gmail.com"
] |
shr.badihi@gmail.com
|
e26faa5430a16e55252ab25ee92964d1f0af1f80
|
67d2eb3dff75aa5dcab5ddc732b6cea1e68f045a
|
/gulimall-pms/src/main/java/com/atguigu/gulimall/pms/entity/SpuInfoEntity.java
|
ac78dc9e8cd56d3aba05002b18bbad0a32aa0aef
|
[
"Apache-2.0"
] |
permissive
|
tww0351/gulimall1215
|
cc2d7c7e1f5efcb23be17cc105e52bc35cf4da24
|
e45f90ae3a9f635637ae26b0634cd8100084f4ed
|
refs/heads/master
| 2022-07-18T18:24:37.666663
| 2019-12-16T14:32:00
| 2019-12-16T14:32:00
| 228,149,843
| 0
| 1
|
Apache-2.0
| 2022-07-06T20:43:54
| 2019-12-15T08:03:41
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 1,473
|
java
|
package com.atguigu.gulimall.pms.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* spu信息
*
* @author ljt
* @email ljt@atguigu.com
* @date 2019-12-16 11:13:20
*/
@ApiModel
@Data
@TableName("pms_spu_info")
public class SpuInfoEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 商品id
*/
@TableId
@ApiModelProperty(name = "id",value = "商品id")
private Long id;
/**
* 商品名称
*/
@ApiModelProperty(name = "spuName",value = "商品名称")
private String spuName;
/**
* 商品描述
*/
@ApiModelProperty(name = "spuDescription",value = "商品描述")
private String spuDescription;
/**
* 所属分类id
*/
@ApiModelProperty(name = "catalogId",value = "所属分类id")
private Long catalogId;
/**
* 品牌id
*/
@ApiModelProperty(name = "brandId",value = "品牌id")
private Long brandId;
/**
* 上架状态[0 - 下架,1 - 上架]
*/
@ApiModelProperty(name = "publishStatus",value = "上架状态[0 - 下架,1 - 上架]")
private Integer publishStatus;
/**
*
*/
@ApiModelProperty(name = "createTime",value = "")
private Date createTime;
/**
*
*/
@ApiModelProperty(name = "uodateTime",value = "")
private Date uodateTime;
}
|
[
"your email"
] |
your email
|
6e83debd700e3c41ab7f21bdd58c471a0771d3a2
|
0ed0793dfbe80580b733925d1197726052dad16b
|
/src/com/sun/org/apache/xerces/internal/xni/grammars/XMLGrammarPool.java
|
affc21281469be87dce373e73f17c75331a582e0
|
[] |
no_license
|
td1617/jdk1.8-source-analysis
|
73b653f014f90eee1a6c6f8dd9b132b2333666f9
|
e260d95608527ca360892bdd21c9b75ea072fbaa
|
refs/heads/master
| 2023-03-12T03:22:09.529624
| 2021-02-25T01:00:11
| 2021-02-25T01:01:44
| 341,839,108
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,489
|
java
|
/*
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* Copyright 2000-2002,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.sun.org.apache.xerces.internal.xni.grammars;
/**
* <p> This interface specifies how the parser and the application
* interact with respect to Grammar objects that the application
* possesses--either by having precompiled them or by having stored them
* from a previous validation of an instance document. It makes no
* assumptions about the kind of Grammar involved, or about how the
* application's storage mechanism works.</p>
*
* <p>The interaction works as follows:
* <ul>
* <li>When a validator considers a document, it is expected to request
* grammars of the type it can handle from this object using the
* <code>retrieveInitialGrammarSet</code> method. </li>
* <li>If it requires a grammar
* not in this set, it will request it from this Object using the
* <code>retrieveGrammar</code> method. </li>
* <li> After successfully validating an
* instance, the validator should make any new grammars it has compiled
* available to this object using the <code>cacheGrammars</code>
* method; for ease of implementation it may make other Grammars it holds references to as well (i.e.,
* it may return some grammars that were retrieved from the GrammarPool in earlier operations). </li> </ul> </p>
*
* @author Neil Graham, IBM
*/
public interface XMLGrammarPool {
// <p>we are trying to make this XMLGrammarPool work for all kinds of
// grammars, so we have a parameter "grammarType" for each of the
// methods. </p>
/**
* <p> retrieve the initial known set of grammars. this method is
* called by a validator before the validation starts. the application
* can provide an initial set of grammars available to the current
* validation attempt. </p>
*
* @param grammarType the type of the grammar, from the
* <code>com.sun.org.apache.xerces.internal.xni.grammars.Grammar</code> interface.
* @return the set of grammars the validator may put in its "bucket"
*/
public Grammar[] retrieveInitialGrammarSet(String grammarType);
/**
* <p>return the final set of grammars that the validator ended up
* with.
* This method is called after the
* validation finishes. The application may then choose to cache some
* of the returned grammars. </p>
*
* @param grammarType the type of the grammars being returned;
* @param grammars an array containing the set of grammars being
* returned; order is not significant.
*/
public void cacheGrammars(String grammarType, Grammar[] grammars);
/**
* <p> This method requests that the application retrieve a grammar
* corresponding to the given GrammarIdentifier from its cache.
* If it cannot do so it must return null; the parser will then
* call the EntityResolver. <strong>An application must not call its
* EntityResolver itself from this method; this may result in infinite
* recursions.</strong>
*
* @param desc The description of the Grammar being requested.
* @return the Grammar corresponding to this description or null if
* no such Grammar is known.
*/
public Grammar retrieveGrammar(XMLGrammarDescription desc);
/**
* Causes the XMLGrammarPool not to store any grammars when
* the cacheGrammars(String, Grammar[[]) method is called.
*/
public void lockPool();
/**
* Allows the XMLGrammarPool to store grammars when its cacheGrammars(String, Grammar[])
* method is called. This is the default state of the object.
*/
public void unlockPool();
/**
* Removes all grammars from the pool.
*/
public void clear();
} // XMLGrammarPool
|
[
"2714956759@qq.com"
] |
2714956759@qq.com
|
f8d0249418a5fe1784a1f3cc76d9fa181d8aec93
|
53d677a55e4ece8883526738f1c9d00fa6560ff7
|
/com/tencent/mm/plugin/readerapp/Plugin$1.java
|
134befe7a8afaca90d6f84cca56812a45fc83512
|
[] |
no_license
|
0jinxing/wechat-apk-source
|
544c2d79bfc10261eb36389c1edfdf553d8f312a
|
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
|
refs/heads/master
| 2020-06-07T20:06:03.580028
| 2019-06-21T09:17:26
| 2019-06-21T09:17:26
| 193,069,132
| 9
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,041
|
java
|
package com.tencent.mm.plugin.readerapp;
import android.content.Context;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.pluginsdk.b.a;
import com.tencent.mm.sdk.platformtools.ab;
final class Plugin$1
implements com.tencent.mm.pluginsdk.b.b
{
Plugin$1(Plugin paramPlugin)
{
}
public final a ac(Context paramContext, String paramString)
{
AppMethodBeat.i(76736);
ab.i("MicroMsg.ReaderApp.Plugin", "create contact widget type[%s]", new Object[] { paramString });
if ("widget_type_news".equals(paramString))
{
paramContext = new com.tencent.mm.plugin.readerapp.ui.b(paramContext);
AppMethodBeat.o(76736);
}
while (true)
{
return paramContext;
paramContext = null;
AppMethodBeat.o(76736);
}
}
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes7-dex2jar.jar
* Qualified Name: com.tencent.mm.plugin.readerapp.Plugin.1
* JD-Core Version: 0.6.2
*/
|
[
"172601673@qq.com"
] |
172601673@qq.com
|
062319b95961df634999b71f74d40c3c18bdda2e
|
973238bc7fa2f929204fbd75ee54a5aa1a34781e
|
/StackAndQueue/src/course/algo/exos/compression/Test.java
|
3e17836f61b3b579a8d0b5ec6b205d8bf831ec9f
|
[] |
no_license
|
nguyenvanson9x/JAVA
|
00aa60e1611a37f61be7a393f2254899367fb106
|
9b41608015cc23668f57b9cc450ad86cbcffd2b9
|
refs/heads/master
| 2021-01-20T00:20:26.286203
| 2017-05-31T14:23:52
| 2017-05-31T14:23:52
| 89,112,692
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,139
|
java
|
package course.algo.exos.compression;
public class Test {
public static void main(String[] args) {
// testRle1();
// testRle2();
// testRle3();
// testRle4();
// testLz1();
// testLz2();
// testLz3();
// testLz4();
// testLz5();
}
public static void testRle1() {
System.out.printf("testRle1 ");
for (int[] line : Data.testsRle) {
System.out.printf("%d ", RLE.length(line));
}
System.out.printf("done\n");
}
public static void testRle2() {
System.out.printf("testRle2 ");
for (int[] line : Data.testsRle) {
int[] rle = RLE.compress(line);
for (int i : rle)
System.out.printf("%d ", i);
System.out.printf("| ");
}
System.out.printf("done\n");
}
public static void testRle3() {
System.out.printf("testRle3 ");
for (int[] line : Data.testsRleInverse) {
System.out.printf("%d ", RLE.lengthInverse(line));
}
System.out.printf("done\n");
}
public static void testRle4() {
System.out.printf("testRle4 ");
for (int[] line : Data.testsRleInverse) {
int[] rle = RLE.decompress(line);
for (int i : rle)
System.out.printf("%d ", i);
System.out.printf("| ");
}
System.out.printf("done\n");
}
public static void testLz1() {
System.out.printf("testLz1 ");
Occurrence o;
o = LZ77.longestOccurrence(Data.testsLzOccurrence[0], 0,
Data.windowSize);
System.out.printf("%d %d | ", o.size, o.retour);
o = LZ77.longestOccurrence(Data.testsLzOccurrence[1], 0,
Data.windowSize);
System.out.printf("%d %d | ", o.size, o.retour);
o = LZ77.longestOccurrence(Data.testsLzOccurrence[2], 0,
Data.windowSize);
System.out.printf("%d %d | ", o.size, o.retour);
o = LZ77.longestOccurrence(Data.testsLzOccurrence[2], 1,
Data.windowSize);
System.out.printf("%d %d | ", o.size, o.retour);
o = LZ77.longestOccurrence(Data.testsLzOccurrence[3], 0,
Data.windowSize);
System.out.printf("%d %d | ", o.size, o.retour);
o = LZ77.longestOccurrence(Data.testsLzOccurrence[3], 2,
Data.windowSize);
System.out.printf("%d %d | ", o.size, o.retour);
o = LZ77.longestOccurrence(Data.testsLzOccurrence[4], 143,
Data.windowSize);
System.out.printf("%d %d | ", o.size, o.retour);
o = LZ77.longestOccurrence(Data.testsLzOccurrence[4], 298,
Data.windowSize);
System.out.printf("%d %d | ", o.size, o.retour);
System.out.printf("done\n");
}
public static void testLz2() {
System.out.printf("testLz2 ");
for (int[] line : Data.testsLz)
System.out.printf("%d ", LZ77.length(line, Data.windowSize));
System.out.printf("done\n");
}
public static void testLz3() {
System.out.printf("testLz3 ");
for (int[] line : Data.testsLz)
LZ77.printCompression(LZ77.compress(line, Data.windowSize));
System.out.printf("done\n");
}
public static void testLz4() {
System.out.printf("testLz4 ");
for (Element[] line : Data.testsLzInverse)
System.out.printf("%d ", LZ77.lengthInverse(line));
System.out.printf("done\n");
}
public static void testLz5() {
System.out.printf("testLz5 ");
for (Element[] line : Data.testsLzInverse)
LZ77.printDecompression(LZ77.decompress(line));
System.out.printf("done\n");
}
}
|
[
"asanfc9x@gmail.com"
] |
asanfc9x@gmail.com
|
e44a23f7f6c8736b9f7bff54dd059b3c46f949bd
|
37db8f6b2e7907b71f748808ea9ff8e8d033d564
|
/JavaSource/org/unitime/timetable/api/ApiServlet.java
|
ef9157caccfeb4dff63fcbd36b5db60fe40972bf
|
[
"Apache-2.0",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"CC-BY-3.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-freemarker",
"LGPL-2.1-only",
"EPL-1.0",
"BSD-3-Clause",
"LGPL-2.1-or-later",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
UniTime/unitime
|
48eaa44ae85db344d015577d21dcc1a41cecd862
|
bc69f2e18f82bdb6c995c4e6490cb650fa4fa98e
|
refs/heads/master
| 2023-08-18T00:52:29.614387
| 2023-08-16T16:08:17
| 2023-08-16T16:08:17
| 29,594,752
| 253
| 185
|
Apache-2.0
| 2023-05-17T14:16:13
| 2015-01-21T14:58:53
|
Java
|
UTF-8
|
Java
| false
| false
| 5,274
|
java
|
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation 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.unitime.timetable.api;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
import org.unitime.timetable.gwt.shared.PageAccessException;
import org.unitime.timetable.security.SessionContext;
import org.unitime.timetable.security.context.AnonymousUserContext;
import org.unitime.timetable.security.context.HttpSessionContext;
/**
* @author Tomas Muller
*/
public class ApiServlet extends HttpServlet {
private static Log sLog = LogFactory.getLog(ApiServlet.class);
private static final long serialVersionUID = 1L;
protected SessionContext getSessionContext() {
return HttpSessionContext.getSessionContext(getServletContext());
}
protected String getReference(HttpServletRequest request) {
return request.getServletPath() + request.getPathInfo();
}
protected ApiConnector getConnector(HttpServletRequest request) {
WebApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
return (ApiConnector) applicationContext.getBean(getReference(request));
}
protected void checkError(HttpServletRequest request, HttpServletResponse response, Throwable t) throws IOException {
if (t instanceof NoSuchBeanDefinitionException) {
sLog.info("Service " + getReference(request) + " not known.");
sendError(request, response, HttpServletResponse.SC_BAD_REQUEST, t);
} else if (t instanceof IllegalArgumentException) {
sLog.info(t.getMessage());
sendError(request, response, HttpServletResponse.SC_BAD_REQUEST, t);
} else if (t instanceof PageAccessException || t instanceof AccessDeniedException) {
sLog.info(t.getMessage());
if (!getSessionContext().isAuthenticated() || getSessionContext().getUser() instanceof AnonymousUserContext) {
response.setHeader("WWW-Authenticate", "Basic");
sendError(request, response, HttpServletResponse.SC_UNAUTHORIZED, t);
} else {
sendError(request, response, HttpServletResponse.SC_FORBIDDEN, t);
}
} else {
sLog.warn(t.getMessage(), t);
sendError(request, response, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, t);
}
}
@Override
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
getConnector(request).doGet(request, response);
} catch (Throwable t) {
checkError(request, response, t);
}
}
@Override
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
getConnector(request).doPost(request, response);
} catch (Throwable t) {
checkError(request, response, t);
}
}
@Override
public void doPut(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
getConnector(request).doPut(request, response);
} catch (Throwable t) {
checkError(request, response, t);
}
}
@Override
public void doDelete(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
getConnector(request).doDelete(request, response);
} catch (Throwable t) {
checkError(request, response, t);
}
}
protected void sendError(HttpServletRequest request, HttpServletResponse response, int code, String message) throws IOException {
try {
getConnector(request).createHelper(request, response).sendError(code, message);
} catch (Throwable t) {
response.sendError(code, message);
}
}
protected void sendError(HttpServletRequest request, HttpServletResponse response, int code, Throwable error) throws IOException {
try {
if (error instanceof NoSuchBeanDefinitionException)
new JsonApiHelper(request, response, getSessionContext(), null).sendError(code, "Service " + getReference(request) + " not known, please check the request path.");
else
getConnector(request).createHelper(request, response).sendError(code, error);
} catch (Throwable t) {
response.sendError(code, error.getMessage());
}
}
}
|
[
"muller@unitime.org"
] |
muller@unitime.org
|
74cb8ec06e6c35c4dcf8556ff85ac85d2e1e27fb
|
66f5b9d0a6ef4c21ebdb2f0bcd82f21594129a60
|
/Pokecube Core/src/main/java/pokecube/core/moves/animations/MoveAnimationHelper.java
|
0b340a7637e9a5b1e1306b3cba17cefc9f6c331e
|
[] |
no_license
|
MartijnTielemans/Pokecube
|
4fee4dd4512fd821c52a91a4ec314b11a8dd1acd
|
3618d37ca56d9c3df2e3022782fba42bb8e6f751
|
refs/heads/master
| 2021-05-31T03:22:47.590067
| 2016-02-28T13:41:14
| 2016-02-28T13:41:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,310
|
java
|
package pokecube.core.moves.animations;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import org.lwjgl.opengl.GL11;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.client.event.EntityViewRenderEvent.RenderFogEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.world.WorldEvent.Unload;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import pokecube.core.interfaces.IMoveAnimation.MovePacketInfo;
import pokecube.core.interfaces.Move_Base;
import thut.api.maths.Vector3;
public class MoveAnimationHelper
{
private static MoveAnimationHelper instance;
public static MoveAnimationHelper Instance()
{
if (instance == null)
{
instance = new MoveAnimationHelper();
MinecraftForge.EVENT_BUS.register(instance);
}
return instance;
}
HashMap<Entity, HashSet<MoveAnimation>> moves = new HashMap<Entity, HashSet<MoveAnimation>>();
public void addMove(Entity attacker, MoveAnimation move)
{
HashSet<MoveAnimation> moves = this.moves.get(attacker);
if (moves == null)
{
moves = new HashSet<MoveAnimation>();
this.moves.put(attacker, moves);
}
moves.add(move);
}
@SideOnly(Side.CLIENT)
@SubscribeEvent
public void onRenderWorldPost(RenderFogEvent event)
{
try
{
GL11.glPushMatrix();
ArrayList<Entity> entities = Lists.newArrayList(moves.keySet());
for (Entity e : entities)
{
if (!moves.containsKey(e)) continue;
HashSet<MoveAnimation> moves = Sets.newHashSet(this.moves.get(e));
for (MoveAnimation move : moves)
{
Vector3 target = Vector3.getNewVector().set(move.targetLoc);
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
Vector3 source = Vector3.getNewVector().set(player);
GL11.glPushMatrix();
source.set(target.subtract(source));
GL11.glTranslated(source.x, source.y, source.z);
// Clear out the jitteryness from rendering
source.x = player.prevPosX - player.posX;
source.y = player.prevPosY - player.posY;
source.z = player.prevPosZ - player.posZ;
source.scalarMultBy(event.renderPartialTicks);
GL11.glTranslated(source.x, source.y, source.z);
// TODO see about fixing the slight movement that occurs
// when the player stops or starts moving
move.render(event.renderPartialTicks);
GL11.glPopMatrix();
}
}
GL11.glPopMatrix();
for (Object e : moves.keySet())
{
HashSet<MoveAnimation> moves = this.moves.get(e);
for (MoveAnimation move : moves)
{
if (move.lastDrop != event.entity.worldObj.getTotalWorldTime())
{
move.duration--;
move.lastDrop = event.entity.worldObj.getTotalWorldTime();
}
}
}
HashSet<Object> toRemove = new HashSet<Object>();
for (Object e : moves.keySet())
{
HashSet<MoveAnimation> moves = this.moves.get(e);
HashSet<MoveAnimation> remove = new HashSet<MoveAnimation>();
for (MoveAnimation move : moves)
{
if (move.duration < 0)
{
remove.add(move);
}
}
moves.removeAll(remove);
if (moves.size() == 0) toRemove.add(e);
}
for (Object o : toRemove)
{
moves.remove(o);
}
}
catch (Throwable e)
{
e.printStackTrace();
}
}
@SubscribeEvent
public void WorldUnloadEvent(Unload evt)
{
if (evt.world.provider.getDimensionId() == 0 && FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT)
{
clear();
}
}
public void clear()
{
moves.clear();
}
public static class MoveAnimation
{
public final Entity attacker;
public final Entity targetEnt;
public final Vector3 targetLoc;
public final Vector3 sourceStart;
public final Move_Base move;
public int duration;
public long lastDrop;
final MovePacketInfo info;
public MoveAnimation(Entity attacker, Entity targetEnt, Vector3 targetLoc, Move_Base move, int time)
{
this.attacker = attacker;
this.targetEnt = targetEnt;
this.targetLoc = targetLoc;
this.sourceStart = Vector3.getNewVector().set(attacker).addTo(0, attacker.getEyeHeight(), 0);
this.move = move;
info = new MovePacketInfo(move, attacker, targetEnt, sourceStart, targetLoc);
duration = time;
}
public void render(double partialTick)
{
if (move.animation != null)
{
info.currentTick = move.animation.getDuration() - duration;
move.animation.clientAnimation(info, Minecraft.getMinecraft().renderGlobal, (float) partialTick);
}
else
{
throw (new NullPointerException("Who Registered null animation for " + move.name));
}
}
}
}
|
[
"elpatricimo@gmail.com"
] |
elpatricimo@gmail.com
|
45816277c87ad768da5741b8d600e77411509d03
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/29/29_659164ea6eaa193065904b7e74dd9babf37e628a/AppAdmin/29_659164ea6eaa193065904b7e74dd9babf37e628a_AppAdmin_t.java
|
57b4a8e258e637a28eb18cff9a4b23b7e94ab4a0
|
[] |
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,330
|
java
|
package edu.gatech.oad.rocket.findmythings.server.model;
import java.util.Set;
import com.googlecode.objectify.annotation.EntitySubclass;
/**
* CS 2340 - FindMyStuff Android App
* This class creates a new AppAdmin object
*
* @author TeamRocket
* */
@EntitySubclass
public class AppAdmin extends AppMember {
/**
*
*/
private static final long serialVersionUID = 1381561058937653330L;
/** Constructors **/
public AppAdmin(String email, Set<String> roles, Set<String> permissions) {
super(email, roles, permissions);
}
public AppAdmin(String email, String password, Set<String> roles,
Set<String> permissions, boolean isRegistered) {
super(email, password, roles, permissions, isRegistered);
}
public AppAdmin(String email, String password, Set<String> roles,
Set<String> permissions) {
super(email, password, roles, permissions);
}
public AppAdmin(String email, String password) {
super(email, password);
}
public AppAdmin(String email) {
super(email);
}
protected AppAdmin() {
super();
}
/** Accessors **/
@Override
public final boolean isLocked() {
return false;
}
/**
* checks if a certain member is an AppAdmin
* @return True
*/
@Override
public final boolean isAdmin() {
return true;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
7510304bf730ff7c5b0794d130b1959a9dae723d
|
497c15af5abf8e3493c4238a07d07bbc3685e86a
|
/src/no/systema/tvinn/sad/nctsexport/model/jsonjackson/topic/items/JsonSadNctsExportSpecificTopicItemSecurityRecord.java
|
9709554e50805a1ae19e2b7ef112f46734e51a3e
|
[] |
no_license
|
SystemaAS/espedsgtvinnsad
|
0d37b6a282793f88c2c08c3db0980b6bab5cdfd7
|
77812a19cb7319444b16a2033a9432c592f01abb
|
refs/heads/master
| 2023-08-22T16:58:54.994691
| 2023-08-22T11:44:32
| 2023-08-22T11:44:32
| 128,168,457
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,905
|
java
|
/**
*
*/
package no.systema.tvinn.sad.nctsexport.model.jsonjackson.topic.items;
import java.lang.reflect.Field;
import java.util.*;
import no.systema.main.model.jsonjackson.general.JsonAbstractGrandFatherRecord;
/**
* @author oscardelatorre
* @date Mar 13, 2016
*
*/
public class JsonSadNctsExportSpecificTopicItemSecurityRecord extends JsonAbstractGrandFatherRecord {
//---------
//Sikkerhet
//---------
private String tvavd = null;
public void setTvavd(String value) { this.tvavd = value; }
public String getTvavd() { return this.tvavd;}
private String tvtdn = null;
public void setTvtdn(String value) { this.tvtdn = value; }
public String getTvtdn() { return this.tvtdn;}
private String tvli = null;
public void setTvli(String value) { this.tvli = value; }
public String getTvli() { return this.tvli;}
private String tvtkbm = null;
public void setTvtkbm(String value) { this.tvtkbm = value; }
public String getTvtkbm() { return this.tvtkbm;}
private String tvkref = null;
public void setTvkref(String value) { this.tvkref = value; }
public String getTvkref() { return this.tvkref;}
private String tvfgkd = null;
public void setTvfgkd(String value) { this.tvfgkd = value; }
public String getTvfgkd() { return this.tvfgkd;}
private String tvknss = null;
public void setTvknss(String value) { this.tvknss = value; }
public String getTvknss() { return this.tvknss;}
private String tvnass = null;
public void setTvnass(String value) { this.tvnass = value; }
public String getTvnass() { return this.tvnass;}
private String tvadss1 = null;
public void setTvadss1(String value) { this.tvadss1 = value; }
public String getTvadss1() { return this.tvadss1;}
private String tvpnss = null;
public void setTvpnss(String value) { this.tvpnss = value; }
public String getTvpnss() { return this.tvpnss;}
private String tvpsss = null;
public void setTvpsss(String value) { this.tvpsss = value; }
public String getTvpsss() { return this.tvpsss;}
private String tvlkss = null;
public void setTvlkss(String value) { this.tvlkss = value; }
public String getTvlkss() { return this.tvlkss;}
private String tvskss = null;
public void setTvskss(String value) { this.tvskss = value; }
public String getTvskss() { return this.tvskss;}
private String tvtinss = null;
public void setTvtinss(String value) { this.tvtinss = value; }
public String getTvtinss() { return this.tvtinss;}
private String tvknks = null;
public void setTvknks(String value) { this.tvknks = value; }
public String getTvknks() { return this.tvknks;}
private String tvnaks = null;
public void setTvnaks(String value) { this.tvnaks = value; }
public String getTvnaks() { return this.tvnaks;}
private String tvadks1 = null;
public void setTvadks1(String value) { this.tvadks1 = value; }
public String getTvadks1() { return this.tvadks1;}
private String tvpnks = null;
public void setTvpnks(String value) { this.tvpnks = value; }
public String getTvpnks() { return this.tvpnks;}
private String tvpsks = null;
public void setTvpsks(String value) { this.tvpsks = value; }
public String getTvpsks() { return this.tvpsks;}
private String tvlkks = null;
public void setTvlkks(String value) { this.tvlkks = value; }
public String getTvlkks() { return this.tvlkks;}
private String tvskks = null;
public void setTvskks(String value) { this.tvskks = value; }
public String getTvskks() { return this.tvskks;}
private String tvtinks = null;
public void setTvtinks(String value) { this.tvtinks = value; }
public String getTvtinks() { return this.tvtinks;}
/**
*
* @return
* @throws Exception
*/
public List<Field> getFields() throws Exception{
Class cl = Class.forName(this.getClass().getCanonicalName());
Field[] fields = cl.getDeclaredFields();
List<Field> list = Arrays.asList(fields);
return list;
}
}
|
[
"oscar@systema.no"
] |
oscar@systema.no
|
e38cd0cddd496f987b09e832d40fe3be2a4540e6
|
a565137c1de4669226ad057cd336618fdf2481d4
|
/src/main/java/com/moon/spring/data/jpa/factory/SqlQueryLookupStrategyCreator.java
|
761f6d787e2f4c40bc586f7cfb35b195b404c6c8
|
[
"MIT"
] |
permissive
|
moon-util/moon-util
|
ec58aefa46c526ae11b1a55a946c1763ecb9c693
|
28c5cb418861da4d0a5a035a3de919b86b939c0e
|
refs/heads/master
| 2022-12-25T23:01:28.564115
| 2020-12-17T15:55:52
| 2020-12-17T15:55:52
| 184,226,062
| 8
| 1
|
MIT
| 2022-12-16T15:29:24
| 2019-04-30T08:46:31
|
Java
|
UTF-8
|
Java
| false
| false
| 6,487
|
java
|
package com.moon.spring.data.jpa.factory;
import com.moon.core.lang.ClassUtil;
import com.moon.core.lang.ref.FinalAccessor;
import org.springframework.data.jpa.provider.QueryExtractor;
import org.springframework.data.jpa.repository.query.EscapeCharacter;
import org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy;
import org.springframework.data.jpa.repository.query.JpaQueryMethod;
import org.springframework.data.jpa.repository.query.JpaQueryMethodFactory;
import org.springframework.data.projection.ProjectionFactory;
import org.springframework.data.repository.core.RepositoryMetadata;
import org.springframework.data.repository.query.QueryLookupStrategy;
import org.springframework.data.repository.query.QueryMethodEvaluationContextProvider;
import javax.persistence.EntityManager;
import java.lang.reflect.Method;
import java.util.Objects;
/**
* @author benshaoye
*/
public class SqlQueryLookupStrategyCreator {
private final static Method CREATOR_METHOD;
private final static CreateStrategy STRATEGY;
static {
Method resultMethod = null;
CreateStrategy resultStrategy = null;
CreateStrategy[] strategies = CreateStrategy.values();
Method[] methods = JpaQueryLookupStrategy.class.getDeclaredMethods();
methods:
for (Method method : methods) {
for (CreateStrategy strategy : strategies) {
if (strategy.isLoadSuccessful(method.getName(), method.getParameterTypes())) {
resultStrategy = strategy;
resultMethod = method;
break methods;
}
}
}
STRATEGY = Objects.requireNonNull(resultStrategy);
CREATOR_METHOD = Objects.requireNonNull(resultMethod);
}
static QueryLookupStrategy create(
EntityManager em,
QueryLookupStrategy.Key key,
QueryExtractor extractor,
QueryMethodEvaluationContextProvider provider,
EscapeCharacter escape
) {
try {
return (QueryLookupStrategy) CREATOR_METHOD.invoke(null,
STRATEGY.transform(em, key, extractor, provider, escape));
} catch (Exception e) {
throw new RuntimeException(e);
}
}
@SuppressWarnings("all")
private static enum CreateStrategy {
OLD(FinalAccessor.of("create"),
"javax.persistence.EntityManager",
"org.springframework.data.repository.query.QueryLookupStrategy$Key",
"org.springframework.data.jpa.provider.QueryExtractor",
"org.springframework.data.repository.query.QueryMethodEvaluationContextProvider",
"org.springframework.data.jpa.repository.query.EscapeCharacter") {
@Override
Object[] transform(
EntityManager em,
QueryLookupStrategy.Key key,
QueryExtractor extractor,
QueryMethodEvaluationContextProvider provider,
EscapeCharacter escape
) { return toObjects(em, key, extractor, provider, escape); }
},
NEW(FinalAccessor.of("create"),
"javax.persistence.EntityManager",
"org.springframework.data.jpa.repository.query.JpaQueryMethodFactory",
"org.springframework.data.repository.query.QueryLookupStrategy$Key",
"org.springframework.data.repository.query.QueryMethodEvaluationContextProvider",
"org.springframework.data.jpa.repository.query.EscapeCharacter") {
@Override
Object[] transform(
EntityManager em,
QueryLookupStrategy.Key key,
QueryExtractor extractor,
QueryMethodEvaluationContextProvider provider,
EscapeCharacter escape
) {
return toObjects(em, new MoonJpaQueryMethodFactory(extractor), key, provider, escape);
}
},
;
final String methodName;
final Class[] classes;
final boolean loadSuccessful;
CreateStrategy(FinalAccessor<String> method, String... parametersType) {
this.methodName = method.get();
boolean successful = true;
Class[] classArr = new Class[parametersType.length];
for (int i = 0; i < parametersType.length; i++) {
Class type = ClassUtil.forNameOrNull(parametersType[i]);
if (type == null) {
successful = false;
classArr = null;
break;
} else {
classArr[i] = type;
}
}
this.classes = classArr;
this.loadSuccessful = successful;
}
abstract Object[] transform(
EntityManager em,
QueryLookupStrategy.Key key,
QueryExtractor extractor,
QueryMethodEvaluationContextProvider provider,
EscapeCharacter escape
);
static Object[] toObjects(Object... objects) { return objects; }
public boolean isLoadSuccessful(String methodName, Class... types) {
if (loadSuccessful && Objects.equals(methodName, this.methodName)) {
if (types != null && types.length == classes.length) {
for (int i = 0; i < types.length; i++) {
if (types[i] != classes[i]) {
return false;
}
}
return true;
}
}
return false;
}
}
private static final class MoonJpaQueryMethodFactory implements JpaQueryMethodFactory {
private final QueryExtractor extractor;
public MoonJpaQueryMethodFactory(QueryExtractor extractor) {
Objects.requireNonNull(extractor, "QueryExtractor must not be null");
this.extractor = extractor;
}
@Override
public JpaQueryMethod build(Method method, RepositoryMetadata metadata, ProjectionFactory factory) {
return new MoonJpaQueryMethod(method, metadata, factory, this.extractor);
}
}
private static final class MoonJpaQueryMethod extends JpaQueryMethod {
protected MoonJpaQueryMethod(
Method method, RepositoryMetadata metadata, ProjectionFactory factory, QueryExtractor extractor
) { super(method, metadata, factory, extractor); }
}
}
|
[
"xua744531854@163.com"
] |
xua744531854@163.com
|
168abf530bfb17d82af12295bae476b0e4f5d041
|
b9aeca822e976296c241a90ae06c9361267d0cb6
|
/test/org/nutz/mvc/testapp/classes/action/CommonTest.java
|
0123f3f4a89fa9d77e972fa33bbb3bdce9a8791c
|
[
"Apache-2.0"
] |
permissive
|
nutzam/nutz
|
8bf0357da1a959330eac815ecf37ccd43e991268
|
17c2dbc97e705b9ea670a16bbebbaf63faf7bf2d
|
refs/heads/master
| 2023-08-31T19:27:51.325161
| 2023-06-08T02:26:44
| 2023-06-08T02:26:44
| 1,873,881
| 2,367
| 930
|
Apache-2.0
| 2023-07-07T21:38:17
| 2011-06-10T01:25:43
|
Java
|
UTF-8
|
Java
| false
| false
| 3,171
|
java
|
package org.nutz.mvc.testapp.classes.action;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.nutz.ioc.annotation.InjectName;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.DELETE;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.annotation.Param;
import org.nutz.mvc.testapp.BaseWebappTest;
import org.nutz.mvc.testapp.classes.bean.UserT;
@InjectName
@IocBean
@At("/common")
@Ok("raw")
public class CommonTest extends BaseWebappTest {
//最最基本的测试
@At("/pathArgs/*")
public String test_base_pathargs(String name){
return name;
}
//基本测试1
@At("/pathArgs2/*")
public String test_base_pathargs2(String name,
int id,
long pid,
short fid,
double xid,
float yid,
boolean z,
char p){
return name + id + pid + fid + (int)xid + (int)yid + z + p;
}
//含?和*
@At("/pathArgs3/?/blog/*")
public String test_base_pathargs3(String type,long id){
return type + "&" +id;
}
//含? 与方法test_base_pathargs3比对,
@At("/pathArgs3/?")
public String test_base_pathargs3_2(String type){
return type + "&Z";
}
//与Parms混用
@At("/pathArgs4/*")
public String test_base_pathargs4(String key,@Param("..")UserT userT){
return key+"&"+userT.getName();
}
//与Parms混用
@At("/pathArgs5/*")
public String test_base_pathargs5(String key,
@Param("::user.")UserT user1,
@Param("::user2.")UserT user2){
return key+"&"+user1.getName()+"&"+user2.getName();
}
//Parms混用
@At("/param")
public String test_param(@Param("id") long id){
return ""+id;
}
//Parms混用
@At("/path")
@Ok(">>:/${key}.jsp")
public void test_req_param(){
}
//Test EL
@At("/path2")
@Ok("->:/${key.length() == 1 ? 'base' : 'false'}.jsp")
public void test_req_param2(){
}
//Test 测试获取Servlet的对象
@At("/servlet_obj")
@Ok("http:200")
public void test_servlet_obj(HttpServletRequest req,
HttpServletResponse resp,
ServletContext context,
HttpSession session) throws Throwable {
req.getInputStream();
req.getContentLength();
//resp.getOutputStream();
resp.getWriter();
session.getId();
session.isNew();
context.getAttributeNames();
}
@At
@DELETE
@Ok("raw")
public String httpmethods() {
return "DELETE";
}
}
|
[
"wendal1985@gmail.com"
] |
wendal1985@gmail.com
|
60fa667d9cba5ef630f00489791fcf1de5da2625
|
f42be70f9037f7b9d6a8c41b972e7d6af3183451
|
/dynamodb-spring-boot-core/src/main/java/com/github/wonwoo/dynamodb/repository/DynamoDBRepositoryFactory.java
|
29c5eaccd0d87c584be96b6c0e3953d77ba45f32
|
[
"Apache-2.0"
] |
permissive
|
PioneerlabsOrg/dynamodb-spring-boot
|
0ccd4382808b4973952817acbe8cc4e936370353
|
c1d4cd4a384473fdc79941c596435fca848efe70
|
refs/heads/master
| 2020-03-28T21:32:05.487184
| 2018-09-19T12:15:00
| 2018-09-19T12:15:00
| 149,163,718
| 0
| 0
|
Apache-2.0
| 2018-09-17T17:38:13
| 2018-09-17T17:38:13
| null |
UTF-8
|
Java
| false
| false
| 1,554
|
java
|
/*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.wonwoo.dynamodb.repository;
import org.socialsignin.spring.data.dynamodb.core.DynamoDBOperations;
import org.springframework.data.repository.core.RepositoryMetadata;
import java.io.Serializable;
/**
* @author wonwoo
*/
public class DynamoDBRepositoryFactory extends org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory {
private final DynamoDBOperations dynamoDBOperations;
public DynamoDBRepositoryFactory(DynamoDBOperations dynamoDBOperations) {
super(dynamoDBOperations);
this.dynamoDBOperations = dynamoDBOperations;
}
@Override
@SuppressWarnings({"unchecked", "rawtypes"})
protected <T, ID extends Serializable> DynamoDBRepository<?, ?> getDynamoDBRepository(
RepositoryMetadata metadata) {
return new SimpleDynamoDBRepository(getEntityInformation(metadata.getDomainType()),
dynamoDBOperations, getEnableScanPermissions(metadata));
}
}
|
[
"aoruqjfu@gmail.com"
] |
aoruqjfu@gmail.com
|
2e701158cde95ea9cec82079927541d37c7ac973
|
ad0b3d49fcee74db858e72eccb7773aa982c35b6
|
/uitest/src/com/vaadin/tests/components/grid/GridSubPixelProblemWrappingTest.java
|
d8027f8934b31eef17ffd5ee9e2b344bf74ea733
|
[
"Apache-2.0"
] |
permissive
|
travisfw/vaadin
|
b88dd1f649019ceabbcfbe2049574ee81c72b84e
|
6961ad54df58f09930a451bba1c5b72e1429e789
|
refs/heads/master
| 2021-01-24T19:51:59.571001
| 2015-07-06T00:48:35
| 2015-07-06T00:48:35
| 35,126,389
| 0
| 0
| null | 2015-05-05T22:06:00
| 2015-05-05T22:05:59
| null |
UTF-8
|
Java
| false
| false
| 1,945
|
java
|
/*
* Copyright 2000-2014 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.vaadin.tests.components.grid;
import org.junit.Assert;
import org.junit.Test;
import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.GridElement;
import com.vaadin.testbench.elements.GridElement.GridRowElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
public class GridSubPixelProblemWrappingTest extends MultiBrowserTest {
@Test
public void addedRowShouldNotWrap() {
openTestURL();
GridElement grid = $(GridElement.class).first();
// Cells in first row should be at the same y coordinate as the row
assertRowAndCellTops(grid, 0);
// Add a row
$(ButtonElement.class).first().click();
// Cells in the first row should be at the same y coordinate as the row
assertRowAndCellTops(grid, 0);
// Cells in the second row should be at the same y coordinate as the row
assertRowAndCellTops(grid, 1);
}
private void assertRowAndCellTops(GridElement grid, int rowIndex) {
GridRowElement row = grid.getRow(rowIndex);
int rowTop = row.getLocation().y;
int cell0Top = grid.getCell(rowIndex, 0).getLocation().y;
int cell1Top = grid.getCell(rowIndex, 1).getLocation().y;
Assert.assertEquals(rowTop, cell0Top);
Assert.assertEquals(rowTop, cell1Top);
}
}
|
[
"artur@vaadin.com"
] |
artur@vaadin.com
|
6492c9aa27e1f2680e8025fc8ca758a61c523dd7
|
b61a8ce87a27a325dba024f3d0fc67fb596fd291
|
/0718/src/RadioButton/RadioBtn.java
|
f5983e7a0b083d2c1c84faf4417c54906186a400
|
[] |
no_license
|
sagek23/Java-Training
|
df8b7003b2d791f99c195433f61685a3ded3988a
|
015e3dfffb10e3665960a71203cfcf37783048df
|
refs/heads/master
| 2022-07-12T06:42:13.632644
| 2019-10-31T00:36:09
| 2019-10-31T00:36:09
| 218,571,922
| 0
| 0
| null | 2022-06-22T20:06:54
| 2019-10-30T16:24:33
|
Java
|
UHC
|
Java
| false
| false
| 2,809
|
java
|
package RadioButton;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.ButtonGroup;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
public class RadioBtn extends JFrame{
JLabel jb;
ImageIcon icon1;
ImageIcon icon2;
ImageIcon icon3;
ImageIcon icon4;
ImageIcon icon5;
ButtonGroup group;
public RadioBtn() {
JRadioButton animal [] = new JRadioButton[5];
setLayout(new BorderLayout());
icon1 = new ImageIcon("cat.png");
icon2 = new ImageIcon("dog.png");
icon3 = new ImageIcon("tiger.png");
icon4 = new ImageIcon("wolf.png");
icon5 = new ImageIcon("jaguar.png");
group = new ButtonGroup();
jb = new JLabel(icon1);
setVisible(true);
setSize(800, 800);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
try {
animal[0] = new JRadioButton("고양이");
animal[1] = new JRadioButton("강아지");
animal[2] = new JRadioButton("호랑이");
animal[3] = new JRadioButton("늑대");
animal[4] = new JRadioButton("재규어");
} catch (Exception e) {
// TODO: handle exception
System.out.println(e.getMessage());
}
animal[0].addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
jb.setIcon(icon1);
}
});
animal[1].addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
jb.setIcon(icon2);
}
});
animal[2].addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
jb.setIcon(icon3);
}
});
animal[3].addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
jb.setIcon(icon4);
}
});
animal[4].addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
jb.setIcon(icon5);
}
});
for(JRadioButton rb : animal)
{
try {
group.add(rb);
} catch (Exception e) {
// TODO: handle exception
System.out.println(e.getMessage());
}
}
JPanel jp = new JPanel();
jp.add(animal[0]);
jp.add(animal[1]);
jp.add(animal[2]);
jp.add(animal[3]);
jp.add(animal[4]);
jp.setLayout(new FlowLayout());
add(jp, BorderLayout.NORTH);
add(jb, BorderLayout.CENTER);
}
public static void main(String[] args) {
// TODO Auto-generated method stub
new RadioBtn();
}
}
|
[
"ksjsjk123@gmail.com"
] |
ksjsjk123@gmail.com
|
b848f27debe3d0a334d982d0012f417c517ed58b
|
e61b05f444a2621567c444f83e229f3067e3dc7d
|
/src/main/java/codesquad/domain/AttachmentRepository.java
|
b3bb30dd825c73aa9bad0ce14618ab6ee8aeafbe
|
[] |
no_license
|
imjinbro/java-ims
|
83c60c5f4b71fa4beaacbfb0d7b93b7b240c85d6
|
f200c9de950a2889fe8993b1b7489b51089e75ad
|
refs/heads/master
| 2020-03-19T20:04:39.371250
| 2018-08-23T15:45:02
| 2018-08-23T15:45:02
| 136,887,080
| 0
| 0
| null | 2018-06-11T07:02:05
| 2018-06-11T07:02:05
| null |
UTF-8
|
Java
| false
| false
| 170
|
java
|
package codesquad.domain;
import org.springframework.data.repository.CrudRepository;
public interface AttachmentRepository extends CrudRepository<Attachment, Long> {
}
|
[
"javajigi@gmail.com"
] |
javajigi@gmail.com
|
cb1d7e3faf7f5452c9cc382680c65640d2c0140c
|
028cbe18b4e5c347f664c592cbc7f56729b74060
|
/external/modules/relaxngcc/src/relaxngcc/parser/IncludeParserRuntime.java
|
997d582cbe0138fff2aef93622a9eefcf6541c18
|
[] |
no_license
|
dmatej/Glassfish-SVN-Patched
|
8d355ff753b23a9a1bd9d7475fa4b2cfd3b40f9e
|
269e29ba90db6d9c38271f7acd2affcacf2416f1
|
refs/heads/master
| 2021-05-28T12:55:06.267463
| 2014-11-11T04:21:44
| 2014-11-11T04:21:44
| 23,610,469
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,215
|
java
|
package relaxngcc.parser;
import relaxngcc.parser.state.IncludedGrammarState;
/**
* Used to parse grammar included by <include> elements.
*
* @author Kohsuke Kawaguchi (kk@kohsuke.org)
*/
public class IncludeParserRuntime extends ParserRuntime {
/**
* @param
* The parent runtime object that created this runtime.
*/
public IncludeParserRuntime( ParserRuntime parent ) {
_start = new IncludedGrammarState(this);
setRootHandler(_start);
// inherit context from the parent
grammar = parent.grammar;
_parent = parent;
_nsStack.add(parent.getCurrentAttributes()); // inherit the ns attribute
}
/** The root state object that we use to parse the RELAX NG grammar. */
private final IncludedGrammarState _start;
/** Parent runtime object. */
private final ParserRuntime _parent;
public void appendGlobalImport( String code ) {
_parent.appendGlobalImport(code);
}
public void appendGlobalBody( String code ) {
_parent.appendGlobalBody(code);
}
protected void checkLastModifiedTime( long time ) {
_parent.checkLastModifiedTime(time);
}
}
|
[
"janey@6f3ba3e3-413c-0410-a8aa-90bee3ab43b5"
] |
janey@6f3ba3e3-413c-0410-a8aa-90bee3ab43b5
|
a51b5b98c4361f4559ba26c9062b8fd6c1d2890d
|
e245da2da841089900f82ddefe3636c817b1d4a9
|
/src/com/sinosoft/lis/vschema/LABranchGroupBSet.java
|
9c947f23cfa16925ac6f46851e844a1ff0177a8e
|
[] |
no_license
|
ssdtfarm/Productoin_CMS
|
46820daa441b449bd96ec699c554bb594017b63e
|
753818ca1ddb1b05e5d459b8028580b7ac8250b5
|
refs/heads/master
| 2020-04-12T22:54:13.456687
| 2016-04-14T06:44:57
| 2016-04-14T06:44:57
| 60,250,819
| 0
| 3
| null | 2016-06-02T09:29:06
| 2016-06-02T09:29:05
| null |
UTF-8
|
Java
| false
| false
| 2,372
|
java
|
/**
* Copyright (c) 2002 sinosoft Co. Ltd.
* All right reserved.
*/
package com.sinosoft.lis.vschema;
import com.sinosoft.lis.schema.LABranchGroupBSchema;
import com.sinosoft.utility.*;
/*
* <p>ClassName: LABranchGroupBSet </p>
* <p>Description: LABranchGroupBSchemaSet类文件 </p>
* <p>Copyright: Copyright (c) 2007</p>
* <p>Company: sinosoft </p>
* @Database: SqlServerSchemaMaker
*/
public class LABranchGroupBSet extends SchemaSet
{
// @Method
public boolean add(LABranchGroupBSchema aSchema)
{
return super.add(aSchema);
}
public boolean add(LABranchGroupBSet aSet)
{
return super.add(aSet);
}
public boolean remove(LABranchGroupBSchema aSchema)
{
return super.remove(aSchema);
}
public LABranchGroupBSchema get(int index)
{
LABranchGroupBSchema tSchema = (LABranchGroupBSchema)super.getObj(index);
return tSchema;
}
public boolean set(int index, LABranchGroupBSchema aSchema)
{
return super.set(index,aSchema);
}
public boolean set(LABranchGroupBSet aSet)
{
return super.set(aSet);
}
/**
* 数据打包,按 XML 格式打包,顺序参见<A href ={@docRoot}/dataStructure/tb.html#PrpLABranchGroupB描述/A>表字段
* @return: String 返回打包后字符串
**/
public String encode()
{
StringBuffer strReturn = new StringBuffer("");
int n = this.size();
for (int i = 1; i <= n; i++)
{
LABranchGroupBSchema aSchema = this.get(i);
strReturn.append(aSchema.encode());
if( i != n ) strReturn.append(SysConst.RECORDSPLITER);
}
return strReturn.toString();
}
/**
* 数据解包
* @param: str String 打包后字符串
* @return: boolean
**/
public boolean decode( String str )
{
int nBeginPos = 0;
int nEndPos = str.indexOf('^');
this.clear();
while( nEndPos != -1 )
{
LABranchGroupBSchema aSchema = new LABranchGroupBSchema();
if(aSchema.decode(str.substring(nBeginPos, nEndPos)))
{
this.add(aSchema);
nBeginPos = nEndPos + 1;
nEndPos = str.indexOf('^', nEndPos + 1);
}
else
{
// @@错误处理
this.mErrors.copyAllErrors( aSchema.mErrors );
return false;
}
}
LABranchGroupBSchema tSchema = new LABranchGroupBSchema();
if(tSchema.decode(str.substring(nBeginPos)))
{
this.add(tSchema);
return true;
}
else
{
// @@错误处理
this.mErrors.copyAllErrors( tSchema.mErrors );
return false;
}
}
}
|
[
"ja_net@163.com"
] |
ja_net@163.com
|
6ac1b9444338492e1d4a13cd1dd058aa3be31d08
|
c1248eb892670ca9ea49381e812b2d4f659ff2c9
|
/src/main/java/com/yunnex/ops/erp/modules/diagnosis/entity/DiagnosisIndustryAttribute.java
|
52a0fea1697e4e397c76dbf8be58832680b41dc6
|
[
"Apache-2.0"
] |
permissive
|
13802706376/HIYA_CORE_CODES_6ISA_ops-web-erp
|
fe62fb23211648587b5d8396a9462e0587c23e55
|
705e90e0e48ec2afaa63d54db6b74d39fad750ff
|
refs/heads/master
| 2020-04-08T08:24:09.287005
| 2018-11-26T14:33:11
| 2018-11-26T14:33:11
| 159,177,385
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,069
|
java
|
package com.yunnex.ops.erp.modules.diagnosis.entity;
import org.hibernate.validator.constraints.Length;
import com.yunnex.ops.erp.common.persistence.DataEntity;
/**
* 行业属性Entity
*
* @author yunnex
* @version 2018-04-03
*/
public class DiagnosisIndustryAttribute extends DataEntity<DiagnosisIndustryAttribute> {
private static final long serialVersionUID = 1L;
private String name; // 行业名称
private String industryAttribute; // 推荐的行业属性
private String pid; // 父类行业
private Integer level; // 当前行业分类级别,默认从1开始递增
private Integer order; // 排序
public DiagnosisIndustryAttribute() {
super();
}
public DiagnosisIndustryAttribute(String id) {
super(id);
}
@Length(min = 0, max = 255, message = "行业名称长度必须介于 0 和 255 之间")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Length(min = 0, max = 255, message = "推荐的行业属性长度必须介于 0 和 255 之间")
public String getIndustryAttribute() {
return industryAttribute;
}
public void setIndustryAttribute(String industryAttribute) {
this.industryAttribute = industryAttribute;
}
@Length(min = 0, max = 64, message = "父类行业长度必须介于 0 和 64 之间")
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public Integer getLevel() {
return level;
}
public void setLevel(Integer level) {
this.level = level;
}
public Integer getOrder() {
return order;
}
public void setOrder(Integer order) {
this.order = order;
}
@Override
public int hashCode() {
return super.hashCode();
}
@Override
public boolean equals(Object obj) {
return super.equals(obj);
}
}
|
[
"caozhijun@caozhijun-book"
] |
caozhijun@caozhijun-book
|
6538fac242bff3e6825d32361a67bb465b53ae5e
|
3ab94477da38658a8cd9c6cea32679e28b3184e3
|
/src/main/java/me/zambie/asc/click/actions/ToggleSlotHelmetAction.java
|
0e26c97b4a9436ab79b27fb1e59996053ba711bc
|
[] |
no_license
|
ZombieGhostMC/ArmorStandController
|
8e3c5878fe554560a081d1e1d2e0e023274c01d9
|
33bad6d77efcbbaa98e9348f22d6e26ad163581d
|
refs/heads/master
| 2021-01-16T19:07:10.205449
| 2017-08-12T21:42:33
| 2017-08-12T21:42:33
| 100,138,140
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 258
|
java
|
package me.zambie.asc.click.actions;
import me.zambie.asc.color.ColorSession;
public final class ToggleSlotHelmetAction extends ToggleArmorSlotAction {
public ToggleSlotHelmetAction() {
super(0, ColorSession.Slot.HELMET, "setHelmet");
}
}
|
[
"unconfigured@null.spigotmc.org"
] |
unconfigured@null.spigotmc.org
|
6775a7396ef5394f5ffbf1d3dccc6c933237d360
|
b7cba4fbb8a5673156a0ce2ec948bd8156a28760
|
/lib-smpp/src/com/adenon/api/smpp/message/OptionalParameter.java
|
cc1816e1abc7d6a514a5be3d98745b25ca16cdc6
|
[] |
no_license
|
eaorak/service_platform
|
f723d64c8dac745d4182a112ee6f3882658c9dc7
|
03690bc3f5c9bec48166304ae19c61e76b3e7552
|
refs/heads/master
| 2020-11-24T16:44:02.458358
| 2019-12-30T10:40:10
| 2019-12-30T13:39:44
| 228,252,238
| 0
| 2
| null | 2019-12-30T13:39:45
| 2019-12-15T21:03:59
|
Java
|
UTF-8
|
Java
| false
| false
| 672
|
java
|
package com.adenon.api.smpp.message;
public class OptionalParameter {
private int optionalParameterTag;
private byte[] optionalParameterData;
public OptionalParameter() {
}
public int getOptionalParameterTag() {
return this.optionalParameterTag;
}
public void setOptionalParameterTag(final int optionalParameterTag) {
this.optionalParameterTag = optionalParameterTag;
}
public byte[] getOptionalParameterData() {
return this.optionalParameterData;
}
public void setOptionalParameterData(final byte[] optionalParameterData) {
this.optionalParameterData = optionalParameterData;
}
}
|
[
"eaorak@gmail.com"
] |
eaorak@gmail.com
|
cb440bc58e315558a0e644007bfd785df8af9bd5
|
2585982cacc02b99818c8923b015634367b53c70
|
/Clase3/AprendiendoMyBatis/src/pe/egcc/app/service/EmpleadoService.java
|
bc691ed4419b6b97c4c013b5cd709f2574fd8318
|
[] |
no_license
|
gcoronelc/CEPSUNI_JDBC_001
|
cf55cb91423ee6228662e665bd321be764338944
|
b7229dd4e97958b0a48f93e8311ef2b656d56677
|
refs/heads/master
| 2021-01-18T00:16:19.427899
| 2016-01-10T02:50:46
| 2016-01-10T02:50:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 977
|
java
|
package pe.egcc.app.service;
import java.util.ArrayList;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import pe.egcc.app.model.EmpleadoBean;
import pe.egcc.mybatis.db.AccesoDB;
import pe.egcc.mybatis.espec.EmpleadoMapper;
/**
*
* @author Eric Gustavo Coronel Castillo
* @email gcoronelc@gmail.com
* @blog www.desarrollasoftware.com
* @date 19/12/2015
*
*/
public class EmpleadoService {
public List<EmpleadoBean> traerEmpleados(EmpleadoBean empleadoBean){
List<EmpleadoBean> lista = null;
SqlSession sqlSession = null;
try {
sqlSession = AccesoDB.getSqlSession();
EmpleadoMapper empleadoMapper;
empleadoMapper = sqlSession.getMapper(EmpleadoMapper.class);
lista = empleadoMapper.getTraerEmpleados(empleadoBean);
} catch (Exception e) {
lista = new ArrayList<>();
} finally {
try {
sqlSession.close();
} catch (Exception e) {
}
}
return lista;
}
}
|
[
"gcoronelc@gmail.com"
] |
gcoronelc@gmail.com
|
ee03d82425f3d509e6bd8497aad2136586c742a1
|
1c6fe1c9ad917dc9dacaf03eade82d773ccf3c8a
|
/acm-common/src/main/java/com/wisdom/base/common/form/ExtendedColumnForm.java
|
8f129164a4d89ef44c73470d8625908e7cb2464e
|
[
"Apache-2.0"
] |
permissive
|
daiqingsong2021/ord_project
|
332056532ee0d3f7232a79a22e051744e777dc47
|
a8167cee2fbdc79ea8457d706ec1ccd008f2ceca
|
refs/heads/master
| 2023-09-04T12:11:51.519578
| 2021-10-28T01:58:43
| 2021-10-28T01:58:43
| 406,659,566
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 323
|
java
|
package com.wisdom.base.common.form;
import lombok.Data;
/**
* 扩展列
*/
@Data
public class ExtendedColumnForm extends BaseForm{
private String extendedColumn1;
private String extendedColumn2;
private String extendedColumn3;
private String extendedColumn4;
private String extendedColumn5;
}
|
[
"homeli@126.com"
] |
homeli@126.com
|
e87202e3f643df64e56e3fac10fe7e28fb7265d9
|
12563229bd1c69d26900d4a2ea34fe4c64c33b7e
|
/nan21.dnet.module.md/nan21.dnet.module.md.domain/src/main/java/net/nan21/dnet/module/md/org/domain/entity/StockLocatorType.java
|
8db8d21e786e963c65f8109d1da94ac348568141
|
[] |
no_license
|
nan21/nan21.dnet.modules
|
90b002c6847aa491c54bd38f163ba40a745a5060
|
83e5f02498db49e3d28f92bd8216fba5d186dd27
|
refs/heads/master
| 2023-03-15T16:22:57.059953
| 2012-08-01T07:36:57
| 2012-08-01T07:36:57
| 1,918,395
| 0
| 1
| null | 2012-07-24T03:23:00
| 2011-06-19T05:56:03
|
Java
|
UTF-8
|
Java
| false
| false
| 3,192
|
java
|
/*
* DNet eBusiness Suite
* Copyright: 2008-2012 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package net.nan21.dnet.module.md.org.domain.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.QueryHint;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import javax.validation.constraints.NotNull;
import net.nan21.dnet.core.domain.eventhandler.DefaultEventHandler;
import net.nan21.dnet.core.domain.model.AbstractType;
import org.eclipse.persistence.annotations.Customizer;
import org.eclipse.persistence.config.HintValues;
import org.eclipse.persistence.config.QueryHints;
import org.eclipse.persistence.descriptors.DescriptorEvent;
/** StockLocatorType. */
@Entity
@Table(name = StockLocatorType.TABLE_NAME, uniqueConstraints = { @UniqueConstraint(name = StockLocatorType.TABLE_NAME
+ "_UK1", columnNames = { "CLIENTID", "NAME" }) })
@Customizer(DefaultEventHandler.class)
@NamedQueries({
@NamedQuery(name = StockLocatorType.NQ_FIND_BY_ID, query = "SELECT e FROM StockLocatorType e WHERE e.clientId = :pClientId and e.id = :pId ", hints = @QueryHint(name = QueryHints.BIND_PARAMETERS, value = HintValues.TRUE)),
@NamedQuery(name = StockLocatorType.NQ_FIND_BY_IDS, query = "SELECT e FROM StockLocatorType e WHERE e.clientId = :pClientId and e.id in :pIds", hints = @QueryHint(name = QueryHints.BIND_PARAMETERS, value = HintValues.TRUE)),
@NamedQuery(name = StockLocatorType.NQ_FIND_BY_NAME, query = "SELECT e FROM StockLocatorType e WHERE e.clientId = :pClientId and e.name = :pName ", hints = @QueryHint(name = QueryHints.BIND_PARAMETERS, value = HintValues.TRUE)) })
public class StockLocatorType extends AbstractType {
public static final String TABLE_NAME = "MD_STOCKLOC_TYPE";
public static final String SEQUENCE_NAME = "MD_STOCKLOC_TYPE_SEQ";
private static final long serialVersionUID = -8865917134914502125L;
/**
* Named query find by ID.
*/
public static final String NQ_FIND_BY_ID = "StockLocatorType.findById";
/**
* Named query find by IDs.
*/
public static final String NQ_FIND_BY_IDS = "StockLocatorType.findByIds";
/**
* Named query find by unique key: Name.
*/
public static final String NQ_FIND_BY_NAME = "StockLocatorType.findByName";
/**
* System generated unique identifier.
*/
@Column(name = "ID", nullable = false)
@NotNull
@Id
@GeneratedValue(generator = SEQUENCE_NAME)
private Long id;
/* ============== getters - setters ================== */
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public void aboutToInsert(DescriptorEvent event) {
super.aboutToInsert(event);
if (this.getActive() == null) {
event.updateAttributeWithObject("active", false);
}
}
}
|
[
"mathe_attila@yahoo.com"
] |
mathe_attila@yahoo.com
|
f16a360647524e989e75f7b0e7c9d697cb77ed8f
|
eeaeddeab4775a1742dba5c8898686fd38caf669
|
/base/base-kafka/src/test/java/com/zsw/kafka/ConsumerTests.java
|
e385d08a645e663f698f17e36ad1a148607046a4
|
[
"Apache-2.0"
] |
permissive
|
MasterOogwayis/spring
|
8250dddd5d6ee9730c8aec4a7aeab1b80c3bf750
|
c9210e8d3533982faa3e7b89885fd4c54f27318e
|
refs/heads/master
| 2023-07-23T09:49:37.930908
| 2023-07-21T03:04:27
| 2023-07-21T03:04:27
| 89,329,352
| 0
| 0
|
Apache-2.0
| 2023-06-14T22:51:13
| 2017-04-25T07:13:03
|
Java
|
UTF-8
|
Java
| false
| false
| 1,426
|
java
|
package com.zsw.kafka;
import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apache.kafka.common.serialization.StringDeserializer;
import org.apache.kafka.common.serialization.StringSerializer;
import java.time.Duration;
import java.util.Collections;
import java.util.Properties;
import static com.zsw.kafka.KafkaProperties.BROKER_LIST;
import static com.zsw.kafka.KafkaProperties.TOPIC;
/**
* @author ZhangShaowei on 2020/6/23 15:03
*/
@Slf4j
public class ConsumerTests {
public static void main(String[] args) {
Properties properties = new Properties();
properties.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class.getName());
properties.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class.getName());
properties.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, BROKER_LIST);
properties.put(ConsumerConfig.GROUP_ID_CONFIG, "groupId");
KafkaConsumer<String, String> consumer = new KafkaConsumer<>(properties);
consumer.subscribe(Collections.singletonList(TOPIC));
while (true) {
ConsumerRecords<String, String> poll = consumer.poll(Duration.ofSeconds(10));
poll.forEach(System.out::println);
}
}
}
|
[
"499504777@qq.com"
] |
499504777@qq.com
|
42dc12bd19e834a72bf491af17a9c74eeaf46a2d
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/MATH-78b-2-4-Single_Objective_GGA-WeightedSum-BasicBlockCoverage/org/apache/commons/math/analysis/solvers/BrentSolver_ESTest_scaffolding.java
|
26c67d275154b4d982a378ab4e07b44a709b54e4
|
[
"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
| 3,938
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Thu May 14 22:13:58 UTC 2020
*/
package org.apache.commons.math.analysis.solvers;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import static org.evosuite.shaded.org.mockito.Mockito.*;
@EvoSuiteClassExclude
public class BrentSolver_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.math.analysis.solvers.BrentSolver";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
try { initMocksToAvoidTimeoutsInTheTests(); } catch(ClassNotFoundException e) {}
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(BrentSolver_ESTest_scaffolding.class.getClassLoader() ,
"org.apache.commons.math.MathException",
"org.apache.commons.math.analysis.SinFunction$1",
"org.apache.commons.math.ConvergenceException",
"org.apache.commons.math.analysis.solvers.UnivariateRealSolver",
"org.apache.commons.math.analysis.solvers.UnivariateRealSolverImpl",
"org.apache.commons.math.analysis.DifferentiableUnivariateRealFunction",
"org.apache.commons.math.analysis.UnivariateRealFunction",
"org.apache.commons.math.MaxIterationsExceededException",
"org.apache.commons.math.analysis.SinFunction",
"org.apache.commons.math.FunctionEvaluationException",
"org.apache.commons.math.analysis.Expm1Function",
"org.apache.commons.math.analysis.QuinticFunction$1",
"org.apache.commons.math.analysis.solvers.BrentSolver",
"org.apache.commons.math.analysis.MonitoredFunction",
"org.apache.commons.math.ConvergingAlgorithm",
"org.apache.commons.math.analysis.QuinticFunction",
"org.apache.commons.math.ConvergingAlgorithmImpl",
"org.apache.commons.math.MathRuntimeException",
"org.apache.commons.math.MathRuntimeException$1",
"org.apache.commons.math.MathRuntimeException$2",
"org.apache.commons.math.MathRuntimeException$3",
"org.apache.commons.math.MathRuntimeException$4",
"org.apache.commons.math.MathRuntimeException$5",
"org.apache.commons.math.MathRuntimeException$6",
"org.apache.commons.math.MathRuntimeException$7",
"org.apache.commons.math.MathRuntimeException$8",
"org.apache.commons.math.MathRuntimeException$10",
"org.apache.commons.math.MathRuntimeException$9"
);
}
private static void initMocksToAvoidTimeoutsInTheTests() throws ClassNotFoundException {
mock(Class.forName("org.apache.commons.math.analysis.UnivariateRealFunction", false, BrentSolver_ESTest_scaffolding.class.getClassLoader()));
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
b051a09d3e1f92db83c31eea4618e1be17643702
|
19547797399ffc94f4749e89414557f731ce230b
|
/src/main/java/lk/recruitment/management/asset/commonAsset/model/Enum/BloodGroup.java
|
96807831905491ae401209aeae82192b5b11ae6d
|
[] |
no_license
|
PrasadAASL/management
|
64e80b2960005dee1793f826f71fef0f35d243e8
|
1bd032a93b933d55d09947242bc86d47a19fbe77
|
refs/heads/master
| 2022-08-25T19:42:16.477879
| 2020-05-25T11:45:25
| 2020-05-25T11:45:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 427
|
java
|
package lk.recruitment.management.asset.commonAsset.model.Enum;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum BloodGroup {
AP("A RhD positive"),
AN("A RhD negative"),
BP("B RhD positive"),
BN("B RhD negative"),
OP("O RhD positive"),
ON("O RhD negative"),
ABP("AB RhD positive"),
ABN("AB RhD negative");
private final String bloodGroup;
}
|
[
"asakahatapitiya@gmail.com"
] |
asakahatapitiya@gmail.com
|
2cdc5521f4bc1fccecdd303b350e9d223c64b569
|
1fc89c80068348031fdd012453d081bac68c85b0
|
/Descompilando o apk do revival 2/src/revivaljarfiilecomum/Download_For_Motorola_128x160.jar.src/glomoRegForms/Resources.java
|
1f1808fcc494b12fd6242c779d1df4785a5c76e0
|
[] |
no_license
|
Jose-R-Vieira/WorkspaceEstudosJava
|
e81858e295972928d3463f23390d5d5ee67966c9
|
7ba374eef760ba2c3ee3e8a69657a96f9adec5c1
|
refs/heads/master
| 2020-03-26T16:47:26.846023
| 2018-08-17T14:06:57
| 2018-08-17T14:06:57
| 145,123,028
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,528
|
java
|
package glomoRegForms;
import GlomoReg.GlomoUtil;
import java.io.DataInputStream;
import java.io.EOFException;
import java.util.Hashtable;
public final class Resources
{
private static Hashtable a = new Hashtable();
public static String WND_TITLE_START_ALERT;
public static String WND_TITLE_ACTIVATE;
public static String WND_TITLE_ACTIVATE_RU;
public static String WND_TITLE_ACTIVATE_EN;
public static String WND_TITLE_COUNTRY_LIST;
public static String WND_TITLE_COUNTRY_LIST_RU;
public static String WND_TITLE_COUNTRY_LIST_EN;
public static String WND_TITLE_SERIAL_NUMBER;
public static String WND_TITLE_ERROR_ALERT;
public static String WND_TITLE_ERROR_ALERT_RU;
public static String WND_TITLE_ERROR_ALERT_EN;
public static String BTN_EXIT;
public static String BTN_EXIT_RU;
public static String BTN_EXIT_EN;
public static String BTN_BACK;
public static String BTN_SELECT;
public static String BTN_SELECT_RU;
public static String BTN_SELECT_EN;
public static String BTN_YES;
public static String BTN_YES_RU;
public static String BTN_YES_EN;
public static String BTN_NO;
public static String BTN_NO_RU;
public static String BTN_NO_EN;
public static String BTN_OK;
public static String BTN_CANCEL;
public static String MENU_ACTIVATE_GAME;
public static String MENU_SERIAL_NUMBER;
public static String MENU_CHANGE_COUNTRY;
public static String MENU_SEND_TO_FRIEND;
public static String MENU_MORE_GAMES;
public static String MENU_INTERFACE_LANGUAGE;
public static String MENU_LANGUAGE_EN = "English";
public static String MENU_LANGUAGE_RU = "Русский";
public static String MENU_HELP;
public static final int WND_ID_NO_FORM = 0;
public static final int WND_ID_MAIN_APP = 1;
public static final int WND_ID_START_ALERT = 2;
public static final int WND_ID_COUNTRY_LIST = 3;
public static final int WND_ID_ACTIVATE_FORM = 4;
public static final int WND_ID_REGISTER_OK_ALERT = 5;
public static final int WND_ID_REGISTER_FAILED_ALERT = 6;
public static final int WND_ID_SERIAL_NUMBER = 8;
public static final int WND_ID_SERIAL_NUMBER_RIGHT_ALERT = 9;
public static final int WND_ID_SERIAL_NUMBER_WRONG_ALERT = 10;
public static final int WND_ID_INTERFACE_LANGUAGE = 11;
public static final int WND_ID_ACTIVATION_TEXT_ALERT = 12;
public static final int WND_ID_SEND_TO_FRIEND_ALERT = 13;
public static final int WND_ID_SEND_TO_FRIEND = 14;
public static final int WND_ID_SENT_TO_FRIEND_OK_ALERT = 15;
public static final int WND_ID_SENT_TO_FRIEND_FAILED_ALERT = 16;
public static final int WND_ID_ERROR_ALERT = 17;
public static final int WND_ID_HELP = 18;
public static final int WND_ID_ACTIVATE_IN_PROGRESS_ALERT = 19;
public static final int WND_ID_ACTIVATE_IN_PROGRESS_PRE_ALERT = 101;
public static final int ID_QUIT_APP = 100;
public static String TEXT_START_ALERT_RU;
public static String TEXT_START_ALERT_EN;
public static String TEXT_REGISTERED_OK;
public static String TEXT_REGISTERED_FAILED;
public static String TEXT_SENT_TO_FRIEND_OK;
public static String TEXT_SENT_TO_FRIEND_FAILED;
public static String TEXT_SERIAL_NUMBER_RIGHT;
public static String TEXT_SERIAL_NUMBER_WRONG;
public static String TEXT_ACTIVATE_FORM;
public static String TEXT_SEND_TO_FRIEND;
public static String TEXT_ALERT_GLOMO_ERROR_CODE_0;
public static String TEXT_ALERT_GLOMO_ERROR_CODE_0_RU;
public static String TEXT_ALERT_GLOMO_ERROR_CODE_0_EN;
public static String TEXT_HELP;
public static String TEXT_ACTIVATE_IN_PROGRESS_ALERT;
public static String currentLanguage = "";
public static final int DEMO_MODE_DURATION_MINUTES = 4;
public static final String shortCountryNames = ",ru_a,ru,az,am,by,ge,kz,kg,md,tj,tm,uz,ua,";
private static String a(Object paramObject)
{
return (String)a.get(paramObject);
}
public static void loadInterfaceLanguage(String paramString)
{
currentLanguage = paramString;
Object localObject = "/glomoRes/en.lang";
if (paramString.compareTo(MENU_LANGUAGE_EN) == 0) {
localObject = "/glomoRes/en.lang";
} else if (paramString.compareTo(MENU_LANGUAGE_RU) == 0) {
localObject = "/glomoRes/ru.lang";
}
paramString = (String)localObject;
a.clear();
paramString = new DataInputStream(new Resources().getClass().getResourceAsStream(paramString));
try
{
for (;;)
{
if ((localObject = paramString.readUTF()).compareTo("") != 0)
{
localObject = GlomoUtil.split("\t", (String)localObject);
a.put(localObject[0], localObject[1]);
}
}
try
{
paramString.close();
}
catch (Exception localException2)
{
(localObject = localException2).printStackTrace();
}
}
catch (EOFException localEOFException) {}catch (Exception localException1)
{
(localObject = localException1).printStackTrace();
}
WND_TITLE_START_ALERT = a("WND_TITLE_START_ALERT");
WND_TITLE_ACTIVATE = a("WND_TITLE_ACTIVATE");
WND_TITLE_ACTIVATE_RU = a("WND_TITLE_ACTIVATE_RU");
WND_TITLE_ACTIVATE_EN = a("WND_TITLE_ACTIVATE_EN");
WND_TITLE_COUNTRY_LIST = a("WND_TITLE_COUNTRY_LIST");
WND_TITLE_COUNTRY_LIST_RU = a("WND_TITLE_COUNTRY_LIST_RU");
WND_TITLE_COUNTRY_LIST_EN = a("WND_TITLE_COUNTRY_LIST_EN");
WND_TITLE_SERIAL_NUMBER = a("WND_TITLE_SERIAL_NUMBER");
WND_TITLE_ERROR_ALERT = a("WND_TITLE_ERROR_ALERT");
WND_TITLE_ERROR_ALERT_RU = a("WND_TITLE_ERROR_ALERT_RU");
WND_TITLE_ERROR_ALERT_EN = a("WND_TITLE_ERROR_ALERT_EN");
BTN_EXIT = a("BTN_EXIT");
BTN_EXIT_RU = a("BTN_EXIT_RU");
BTN_EXIT_EN = a("BTN_EXIT_EN");
BTN_BACK = a("BTN_BACK");
BTN_SELECT = a("BTN_SELECT");
BTN_SELECT_RU = a("BTN_SELECT_RU");
BTN_SELECT_EN = a("BTN_SELECT_EN");
BTN_YES = a("BTN_YES");
BTN_YES_RU = a("BTN_YES_RU");
BTN_YES_EN = a("BTN_YES_EN");
BTN_NO = a("BTN_NO");
BTN_NO_RU = a("BTN_NO_RU");
BTN_NO_EN = a("BTN_NO_EN");
BTN_OK = a("BTN_OK");
BTN_CANCEL = a("BTN_CANCEL");
MENU_ACTIVATE_GAME = a("MENU_ACTIVATE_GAME");
MENU_SERIAL_NUMBER = a("MENU_SERIAL_NUMBER");
MENU_CHANGE_COUNTRY = a("MENU_CHANGE_COUNTRY");
MENU_SEND_TO_FRIEND = a("MENU_SEND_TO_FRIEND");
MENU_MORE_GAMES = a("MENU_MORE_GAMES");
MENU_INTERFACE_LANGUAGE = a("MENU_INTERFACE_LANGUAGE");
MENU_HELP = a("MENU_HELP");
TEXT_START_ALERT_RU = a("TEXT_START_ALERT_RU");
TEXT_START_ALERT_EN = a("TEXT_START_ALERT_EN");
TEXT_REGISTERED_OK = a("TEXT_REGISTERED_OK");
TEXT_REGISTERED_FAILED = a("TEXT_REGISTERED_FAILED");
TEXT_SENT_TO_FRIEND_OK = a("TEXT_SENT_TO_FRIEND_OK");
TEXT_SENT_TO_FRIEND_FAILED = a("TEXT_SENT_TO_FRIEND_FAILED");
TEXT_SERIAL_NUMBER_RIGHT = a("TEXT_SERIAL_NUMBER_RIGHT");
TEXT_SERIAL_NUMBER_WRONG = a("TEXT_SERIAL_NUMBER_WRONG");
TEXT_ACTIVATE_FORM = a("TEXT_ACTIVATE_FORM");
TEXT_SEND_TO_FRIEND = a("TEXT_SEND_TO_FRIEND");
TEXT_ALERT_GLOMO_ERROR_CODE_0 = a("TEXT_ALERT_GLOMO_ERROR_CODE_0");
TEXT_ALERT_GLOMO_ERROR_CODE_0_RU = a("TEXT_ALERT_GLOMO_ERROR_CODE_0_RU");
TEXT_ALERT_GLOMO_ERROR_CODE_0_EN = a("TEXT_ALERT_GLOMO_ERROR_CODE_0_EN");
TEXT_HELP = a("TEXT_HELP");
TEXT_ACTIVATE_IN_PROGRESS_ALERT = a("TEXT_ACTIVATE_IN_PROGRESS_ALERT");
}
}
/* Location: C:\WPrograming\jd-gui-windows-1.4.0\Download_For_Motorola_128x160.jar!\glomoRegForms\Resources.class
* Java compiler version: 3 (47.0)
* JD-Core Version: 0.7.1
*/
|
[
"jose.rodrigues@rsinet.com.br"
] |
jose.rodrigues@rsinet.com.br
|
9a617a003b9e5b6ec0d85048781a60a9aaf5dd7e
|
4312a71c36d8a233de2741f51a2a9d28443cd95b
|
/RawExperiments/TB/Math280/AstorMain-Math280/src/variant-518/org/apache/commons/math/distribution/AbstractContinuousDistribution.java
|
80b3e3f29df92d01b6f9c9b4b2cea2e2a4eddd64
|
[] |
no_license
|
SajjadZaidi/AutoRepair
|
5c7aa7a689747c143cafd267db64f1e365de4d98
|
e21eb9384197bae4d9b23af93df73b6e46bb749a
|
refs/heads/master
| 2021-05-07T00:07:06.345617
| 2017-12-02T18:48:14
| 2017-12-02T18:48:14
| 112,858,432
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,423
|
java
|
package org.apache.commons.math.distribution;
public abstract class AbstractContinuousDistribution extends org.apache.commons.math.distribution.AbstractDistribution implements java.io.Serializable , org.apache.commons.math.distribution.ContinuousDistribution {
private static final long serialVersionUID = -38038050983108802L;
protected AbstractContinuousDistribution() {
super();
}
public double inverseCumulativeProbability(final double p) throws org.apache.commons.math.MathException {
if ((p < 0.0) || (p > 1.0)) {
throw org.apache.commons.math.MathRuntimeException.createIllegalArgumentException("{0} out of [{1}, {2}] range", p, 0.0, 1.0);
}
org.apache.commons.math.analysis.UnivariateRealFunction rootFindingFunction = new org.apache.commons.math.analysis.UnivariateRealFunction() {
public double value(double x) throws org.apache.commons.math.FunctionEvaluationException {
try {
return (cumulativeProbability(x)) - p;
} catch (org.apache.commons.math.MathException ex) {
throw new org.apache.commons.math.FunctionEvaluationException(ex , x , ex.getPattern() , ex.getArguments());
}
}
};
double lowerBound = getDomainLowerBound(p);
double upperBound = getDomainUpperBound(p);
double[] bracket = null;
try {
bracket = org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils.bracket(rootFindingFunction, getInitialDomain(p), lowerBound, upperBound);
} catch (org.apache.commons.math.ConvergenceException ex) {
return java.lang.Double.POSITIVE_INFINITY;
if ((java.lang.Math.abs(rootFindingFunction.value(lowerBound))) < 1.0E-6) {
return lowerBound;
}
if ((java.lang.Math.abs(rootFindingFunction.value(upperBound))) < 1.0E-6) {
return upperBound;
}
throw new org.apache.commons.math.MathException(ex);
}
double root = org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils.solve(rootFindingFunction, bracket[0], bracket[1]);
return root;
}
protected abstract double getInitialDomain(double p);
protected abstract double getDomainLowerBound(double p);
protected abstract double getDomainUpperBound(double p);
}
|
[
"sajjad.syed@ucalgary.ca"
] |
sajjad.syed@ucalgary.ca
|
fd003d06917a42a034c36624ae2d82cffe118822
|
9254e7279570ac8ef687c416a79bb472146e9b35
|
/sofa-20190815/src/main/java/com/aliyun/sofa20190815/models/GetLinkeBahamutIterationsgetlterationsRequest.java
|
a8149ce608c24376b5e5d2d23e32dc01a8dad22d
|
[
"Apache-2.0"
] |
permissive
|
lquterqtd/alibabacloud-java-sdk
|
3eaa17276dd28004dae6f87e763e13eb90c30032
|
3e5dca8c36398469e10cdaaa34c314ae0bb640b4
|
refs/heads/master
| 2023-08-12T13:56:26.379027
| 2021-10-19T07:22:15
| 2021-10-19T07:22:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,392
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sofa20190815.models;
import com.aliyun.tea.*;
public class GetLinkeBahamutIterationsgetlterationsRequest extends TeaModel {
@NameInMap("AppName")
public String appName;
@NameInMap("IsDeleted")
public String isDeleted;
@NameInMap("IsFinished")
public String isFinished;
@NameInMap("Page")
public String page;
@NameInMap("PageSize")
public String pageSize;
@NameInMap("ShowAll")
public String showAll;
@NameInMap("TenantId")
public String tenantId;
public static GetLinkeBahamutIterationsgetlterationsRequest build(java.util.Map<String, ?> map) throws Exception {
GetLinkeBahamutIterationsgetlterationsRequest self = new GetLinkeBahamutIterationsgetlterationsRequest();
return TeaModel.build(map, self);
}
public GetLinkeBahamutIterationsgetlterationsRequest setAppName(String appName) {
this.appName = appName;
return this;
}
public String getAppName() {
return this.appName;
}
public GetLinkeBahamutIterationsgetlterationsRequest setIsDeleted(String isDeleted) {
this.isDeleted = isDeleted;
return this;
}
public String getIsDeleted() {
return this.isDeleted;
}
public GetLinkeBahamutIterationsgetlterationsRequest setIsFinished(String isFinished) {
this.isFinished = isFinished;
return this;
}
public String getIsFinished() {
return this.isFinished;
}
public GetLinkeBahamutIterationsgetlterationsRequest setPage(String page) {
this.page = page;
return this;
}
public String getPage() {
return this.page;
}
public GetLinkeBahamutIterationsgetlterationsRequest setPageSize(String pageSize) {
this.pageSize = pageSize;
return this;
}
public String getPageSize() {
return this.pageSize;
}
public GetLinkeBahamutIterationsgetlterationsRequest setShowAll(String showAll) {
this.showAll = showAll;
return this;
}
public String getShowAll() {
return this.showAll;
}
public GetLinkeBahamutIterationsgetlterationsRequest setTenantId(String tenantId) {
this.tenantId = tenantId;
return this;
}
public String getTenantId() {
return this.tenantId;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
7820e584d86ea88826ddb0504bf82cea69987cfe
|
57b0444885d39252a7faa22f99848b51a19e2e13
|
/lab00/src/main/java/lab00_elio/model/Instrutor.java
|
17f932722328301e2d847215966bd4f5a8396b0a
|
[] |
no_license
|
viniciusdenovaes/Unip202ALPOONoturno
|
fdf56631437585a20f1570bf13684afba762c043
|
37c9b33e3bd8ce91d3d433bae59927e2e2129bc1
|
refs/heads/master
| 2022-12-28T19:00:17.541881
| 2020-10-09T23:16:09
| 2020-10-09T23:16:09
| 289,386,194
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,505
|
java
|
package lab00_elio.model;
public class Instrutor {
private String nome;
private Integer codigo;
private Double cargaHoraria;
private Double salario;
public Instrutor() {
}
/**
* @return the nome
*/
public String getNome() {
return nome;
}
/**
* @param nome the nome to set
*/
public void setNome(String nome) {
this.nome = nome;
}
/**
* @return the codigo
*/
public Integer getCodigo() {
return codigo;
}
/**
* @param codigo the codigo to set
*/
public void setCodigo(Integer codigo) {
this.codigo = codigo;
}
/**
* @return the cargaHoraria
*/
public Double getCargaHoraria() {
return cargaHoraria;
}
/**
* @param cargaHoraria the cargaHoraria to set
*/
public void setCargaHoraria(Double cargaHoraria) {
this.cargaHoraria = cargaHoraria;
}
/**
* @return the salario
*/
public Double getSalario() {
return salario;
}
/**
* @param salario the salario to set
*/
public void setSalario(Double salario) {
this.salario = salario;
}
public void calcularSalario()
{
if (this.cargaHoraria < 30)
this.salario = 20 * this.cargaHoraria;
else
this.salario = 15 * this.cargaHoraria;
}
}
|
[
"viniciusdenovaes@gmail.com"
] |
viniciusdenovaes@gmail.com
|
4f4a07498b5a2a8ba25359a73e23e16d00da2a6c
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/java-design-patterns/learning/2855/ConsumerTest.java
|
edabd6d2d1a77e3b271906a0231347ede5cdcaaf
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,662
|
java
|
/**
* The MIT License
* Copyright (c) 2014-2016 Ilkka Seppälä
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.iluwatar.poison.pill;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.AppenderBase;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.slf4j.LoggerFactory;
import java.time.LocalDateTime;
import java.util.LinkedList;
import java.util.List;
import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Date: 12/27/15 - 9:45 PM
*
* @author Jeroen Meulemeester
*/
public class ConsumerTest {
private InMemoryAppender appender;
@BeforeEach
public void setUp() {
appender = new InMemoryAppender(Consumer.class);
}
@AfterEach
public void tearDown() {
appender.stop();
}
@Test
public void testConsume() throws Exception {
final Message[] messages = new Message[]{
createMessage("you", "Hello!"),
createMessage("me", "Hi!"),
Message.POISON_PILL,
createMessage("late_for_the_party", "Hello? Anyone here?"),
};
final MessageQueue queue = new SimpleMessageQueue(messages.length);
for (final Message message : messages) {
queue.put(message);
}
new Consumer("NSA", queue).consume();
assertTrue(appender.logContains("Message [Hello!] from [you] received by [NSA]"));
assertTrue(appender.logContains("Message [Hi!] from [me] received by [NSA]"));
assertTrue(appender.logContains("Consumer NSA receive request to terminate."));
}
/**
* Create a new message from the given sender with the given message body
*
* @param sender The sender's name
* @param message The message body
* @return The message instance
*/
private static Message createMessage(final String sender, final String message) {
final SimpleMessage msg = new SimpleMessage();
msg.addHeader(Message.Headers.SENDER, sender);
msg.addHeader(Message.Headers.DATE, LocalDateTime.now().toString());
msg.setBody(message);
return msg;
}
private class InMemoryAppender extends AppenderBase<ILoggingEvent> {
private List<ILoggingEvent> log = new LinkedList<>();
public InMemoryAppender(Class clazz) {
((Logger) LoggerFactory.getLogger(clazz)).addAppender(this);
start();
}
@Override
protected void append(ILoggingEvent eventObject) {
log.add(eventObject);
}
public boolean logContains(String message) {
return log.stream().anyMatch(event -> event.getFormattedMessage().equals(message));
}
}
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
cc7f8604be20480a94402c1e60e54854e5be4f5e
|
d743888c3f214c9e7954db39b171dec346ead657
|
/Spring Data Intro - Lab/shampoo_company/src/main/java/app/domain/impl/Lavender.java
|
22f15b1f173a3d972a4c446485abffc880349533
|
[] |
no_license
|
GeorgeK95/DatabasesAdvanced
|
6683000266d922e7855cca4e55b246d8a97d0b49
|
cb2ed0fcaff163617460d860af70f2105471a7e1
|
refs/heads/master
| 2020-12-03T07:58:46.414568
| 2017-08-31T11:10:10
| 2017-08-31T11:10:10
| 95,643,423
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 592
|
java
|
package app.domain.impl;
import app.service.impl.BasicIngredient;
import app.service.impl.BasicShampoo;
import javax.persistence.Entity;
import java.math.BigDecimal;
import java.util.Set;
/**
* Created by George-Lenovo on 7/18/2017.
*/
@Entity
//@Table(name = "lavender")
public class Lavender extends BasicIngredient {
private BigDecimal price = new BigDecimal(2);
public Lavender() {
super();
}
@Override
public Set<BasicShampoo> getShampoos() {
return null;
}
@Override
public void setShampoos(Set<BasicShampoo> shampoos) {
}
}
|
[
"george_it@abv.bg"
] |
george_it@abv.bg
|
aff63098844bcdcb979ca563ff684935a5a19329
|
622053c570d178ea9f9a68784822cfa829e4ac63
|
/jetrix/tags/0.2.1/src/java/net/jetrix/messages/OneLineAddedMessage.java
|
b152d523b1f04efe2eedee16b13a7ca957d01ae7
|
[] |
no_license
|
ebourg/jetrix-full
|
41acb3f2aa19155dd39071fea038625a4ba022f4
|
10fb59ee2d8b46f3553978f46726fd4ee6c90058
|
refs/heads/master
| 2023-07-31T21:36:12.712631
| 2014-03-17T21:40:47
| 2014-03-17T21:40:47
| 179,978,734
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 981
|
java
|
/**
* Jetrix TetriNET Server
* Copyright (C) 2001-2003 Emmanuel Bourg
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package net.jetrix.messages;
import net.jetrix.*;
/**
*
*
* @author Emmanuel Bourg
* @version $Revision$, $Date$
*/
public class OneLineAddedMessage extends SpecialMessage
{
}
|
[
"ebourg@apache.org"
] |
ebourg@apache.org
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.