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
6b5b84f39ae19dbeaef724c4f12c32741e7e304b
8803ec022a004ccb67c4d78b72b549e3c47ad6b7
/mifan-support-domain/src/main/java/com/mifan/support/domain/Praise.java
e78f486bc24cfe4fc023f1c6685020790f576d48
[]
no_license
helldzl/moon-api
56ce803d94d94d801913eef4b0b140b19456ca91
44761f7ac6817193f4a562a702e42b01cee3f303
refs/heads/master
2020-03-07T08:24:15.351040
2018-03-30T03:34:24
2018-03-30T03:34:24
127,377,122
0
2
null
null
null
null
UTF-8
Java
false
false
3,028
java
package com.mifan.support.domain; import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.Range; import org.moonframework.model.mybatis.domain.BaseEntity; import org.moonframework.validation.ValidationGroups.Post; /** * @author ZYW * @version 1.0 * @since 2017-05-22 */ public class Praise extends BaseEntity implements Cloneable{ public static final String TABLE_NAME = "praise"; public static final String TYPE = "type"; public static final String CONF_ID = "conf_id"; public static final String THEME_ID = "theme_id"; public static final String COMMENT_ID = "comment_id"; public static final String SCORE = "score"; public static final String CREATOR = "creator"; private static final long serialVersionUID = -2460975200610481470L; @NotNull(groups = Post.class, message = "{@NotNull.Praise.type}") @Range(min = 0, max = 1,groups = Post.class,message="{Error.Praise.type}") private Integer type; @NotNull(groups = Post.class, message = "{@NotNull.Praise.confId}") private Long confId; @NotNull(groups = Post.class, message = "{@NotNull.Praise.themeId}") private Long themeId; private Long commentId; @NotNull(groups = Post.class, message = "{@NotNull.Praise.score}") @Range(min = -1, max = 1,groups = Post.class,message="{Error.Praise.score}") private Integer score; public Praise() { } public Praise(Long id) { super(id); } /** * @return 点赞类型,0:对主题赞踩,1:对comment赞踩 */ public Integer getType() { return type; } /** * @param type 点赞类型,0:对主题赞踩,1:对comment赞踩 */ public void setType(Integer type) { this.type = type; } /** * @return 评论配置标识 */ public Long getConfId() { return confId; } /** * @param confId 评论配置标识 */ public void setConfId(Long confId) { this.confId = confId; } /** * @return 主题标识 */ public Long getThemeId() { return themeId; } /** * @param themeId 主题标识 */ public void setThemeId(Long themeId) { this.themeId = themeId; } /** * @return 评论标识 */ public Long getCommentId() { return commentId; } /** * @param commentId 评论标识 */ public void setCommentId(Long commentId) { this.commentId = commentId; } /** * @return 分数,1:点赞,-1:赞 */ public Integer getScore() { return score; } /** * @param score 分数,1:点赞,-1:赞 */ public void setScore(Integer score) { this.score = score; } @Override public Object clone() { Praise pra = null; try{ pra = (Praise)super.clone(); }catch(CloneNotSupportedException e) { e.printStackTrace(); } return pra; } }
[ "1949602@qq.com" ]
1949602@qq.com
b73f594de9c99166fe03732f1d0f43835dab81b6
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/18/18_a20a551ffe1b65bcaa23a7368a348194bcc2162f/AbstractServlet/18_a20a551ffe1b65bcaa23a7368a348194bcc2162f_AbstractServlet_s.java
554db5829e5b74b7cbbc7cb91e27e6c22c0cb6ef
[]
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
3,460
java
/* * Copyright 1998-2009 University Corporation for Atmospheric Research/Unidata * * Portions of this software were developed by the Unidata Program at the * University Corporation for Atmospheric Research. * * Access and use of this software shall impose the following obligations * and understandings on the user. The user is granted the right, without * any fee or cost, to use, copy, modify, alter, enhance and distribute * this software, and any derivative works thereof, and its supporting * documentation for any purpose whatsoever, provided that this entire * notice appears in all copies of the software, derivative works and * supporting documentation. Further, UCAR requests that the user credit * UCAR/Unidata in any publications that result from the use of this * software or in any product that includes this software. The names UCAR * and/or Unidata, however, may not be used in any advertising or publicity * to endorse or promote any products or commercial entity unless specific * written permission is obtained from UCAR/Unidata. The user also * understands that UCAR/Unidata is not obligated to provide the user with * any support, consulting, training or assistance of any kind with regard * to the use, operation and performance of this software nor to provide * the user with any updates, revisions, new versions or "bug fixes." * * THIS SOFTWARE IS PROVIDED BY UCAR/UNIDATA "AS IS" AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL UCAR/UNIDATA BE LIABLE FOR ANY SPECIAL, * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION * WITH THE ACCESS, USE OR PERFORMANCE OF THIS SOFTWARE. */ package thredds.servlet; import java.io.*; import javax.servlet.http.*; /** * Abstract superclass for THREDDS servlets. * Provides some common services for servlets: debugging, logging, and file serving. * * @author caron */ public abstract class AbstractServlet extends HttpServlet { protected org.slf4j.Logger log; protected String contentPath; // must end with "/" protected abstract String getPath(); protected abstract void makeDebugActions(); public void init() throws javax.servlet.ServletException { contentPath = ServletUtil.getContentPath() + getPath(); // init logging log = org.slf4j.LoggerFactory.getLogger(getClass()); log.info( "init(): " + UsageLog.setupNonRequestContext()); // debug actions makeDebugActions(); log.info("--- initialized " + getClass().getName()); } protected void initContent() throws javax.servlet.ServletException { // first time, create content directory String initialContentPath = ServletUtil.getInitialContentPath() + getPath(); File initialContentFile = new File(initialContentPath); if (initialContentFile.exists()) { try { if (ServletUtil.copyDir(initialContentPath, contentPath)) log.info("copyDir " + initialContentPath + " to " + contentPath); } catch (IOException ioe) { log.error("failed to copyDir " + initialContentPath + " to " + contentPath, ioe); } } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
97d0e00390ef3a7330a8cd8fd2f8d7064299a441
8ead5ff8d527e4b4d98cd54e9b84f50ea824f2be
/cj.lns.chip.sos.website.sws/src/cj/lns/chip/sos/website/sws/component/SwsInfoComponent.java
168426134c0153cd08b84e0911ca88e25da6318a
[]
no_license
911Steven/cj.lns.sos
9976efcf28418094e315324a4ce145c56bb57478
af82a5e7555b99780a9606b5e848861ce1ae5503
refs/heads/master
2020-07-05T16:22:11.341767
2018-10-12T02:13:41
2018-10-12T02:13:41
202,696,541
1
0
null
2019-08-16T09:10:35
2019-08-16T09:10:35
null
UTF-8
Java
false
false
6,374
java
package cj.lns.chip.sos.website.sws.component; import java.text.DecimalFormat; import java.util.Map; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import cj.lns.chip.sos.cube.framework.ICube; import cj.lns.chip.sos.cube.framework.IQuery; import cj.lns.chip.sos.disk.INetDisk; import cj.lns.chip.sos.service.sws.ServicewsBody; import cj.lns.chip.sos.website.framework.IServiceosWebsiteModule; import cj.lns.chip.sos.website.framework.IServicewsContext; import cj.lns.common.sos.website.customable.IComponent; import cj.lns.common.sos.website.moduleable.ServiceosWebsiteModule; import cj.studio.ecm.annotation.CjService; import cj.studio.ecm.frame.Circuit; import cj.studio.ecm.frame.Frame; import cj.studio.ecm.graph.CircuitException; import cj.studio.ecm.graph.IPin; import cj.studio.ecm.graph.IPlug; import cj.ultimate.gson2.com.google.gson.Gson; import cj.ultimate.util.StringUtil; @CjService(name = "/components/swsInfo.html") public class SwsInfoComponent implements IComponent { @Override public void flow(Frame frame, Circuit circuit, IPlug plug) throws CircuitException { IServiceosWebsiteModule m = ServiceosWebsiteModule.get(); Document doc = m.context().html("/components/swsInfo.html", m.site().contextPath(), "utf-8"); IServicewsContext sws = IServicewsContext.context(frame); INetDisk disk = m.site().diskOwner(sws.owner()); ICube cube = disk.cube(sws.swsid()); ServicewsBody info = getServicews(sws.swsid(), circuit); printView(sws, info, cube, doc); circuit.content().writeBytes(doc.toString().getBytes()); } public ServicewsBody getServicews(String swsid, Circuit circuit2) throws CircuitException { Frame frame = new Frame("getServicewsBody /sws/instance sos/1.0"); frame.parameter("swsid", swsid); Circuit circuit = new Circuit("sos/1.0 200 ok"); IPin out = ServiceosWebsiteModule.get().out(); out.flow(frame, circuit); Frame back = new Frame(circuit.content().readFully()); int state = Integer.valueOf(back.head("status")); if (state != 200) { throw new CircuitException(back.head("status"), String.format("获取视窗失败:%s", back.head("message"))); } String json = new String(back.content().readFully()); ServicewsBody body = new Gson().fromJson(json, ServicewsBody.class); if (StringUtil.isEmpty(body.getFaceImg())) { body.setFaceImg("../cjdk/module-icon.svg"); } else { String src = String.format( "../resource/ud/%s?path=%s://system/faces&u=%s", body.getFaceImg(), swsid, body.getOwner()); body.setFaceImg(src); } if (body.getExtra().isEmpty()) { body.getExtra().put("intro", body.getSwsDesc()); } return body; } private void printView(IServicewsContext sws, ServicewsBody si, ICube cube, Document doc) { //CubeConfig conf = cube.config(); Element extraul=doc.select(".sws-cnt-i > ul > li.i-section > ul").first(); Element extrali=extraul.select(">li").first().clone(); extraul.empty(); Map<String,Object> extra=si.getExtra(); Element eli=null; for(String key:extra.keySet()){ Object obj=extra.get(key); switch(key){ case "intro": eli=extrali.clone(); eli.select(">span[section]").html("简介"); eli.select(">div").html(obj+""); extraul.appendChild(eli); break; case "hobby": eli=extrali.clone(); eli.select(">span[section]").html("兴趣/爱好"); eli.select(">div").html(obj+""); extraul.appendChild(eli); break; case "crop": eli=extrali.clone(); eli.select(">span[section]").html("公司"); eli.select(">div").html(obj+""); extraul.appendChild(eli); break; case "home": eli=extrali.clone(); eli.select(">span[section]").html("主页"); eli.select(">div").html(obj+""); extraul.appendChild(eli); break; case "address": eli=extrali.clone(); eli.select(">span[section]").html("地址"); eli.select(">div").html(obj+""); extraul.appendChild(eli); break; } } doc.select(".sws-cnt-i > ul > li.i-welcome > a") .html(sws.visitor().principal()); String type = ""; switch (si.getLevel()) { case 0: type = "超级视窗"; break; case 1: type = "基础视窗"; break; case 2: type = "公共视窗"; break; default: type = "个人视窗"; break; } doc.select(".sws-cnt-i > ul > li.i-level > p").html(type); Element ul = doc.select(".sws-cnt-i > ul > li.i-total > ul").first(); Element li = ul.select(">li.i-top-total").first(); Element ta = li.select(">a").first().clone(); li.empty(); double per = (si.getDataSize() / si.getCapacity()) * 100; Element a = ta.clone(); a.select(">span[top]").html("空间已用"); DecimalFormat df = new DecimalFormat(".##"); a.select(">span[bottom]").html(df.format(per) + "%"); li.appendChild(a); String cjql="select {'tuple':'*'}.count() from tuple entity.relatives java.lang.Long where {}"; IQuery<Long> q=cube.createQuery(cjql); a = ta.clone(); a.select(">span[top]").html("总访问量"); a.select(">span[bottom]").html(q.count() + ""); li.appendChild(a); li = ul.select(">li.i-app-total").first(); ta = li.select(">a").first().clone(); li.empty(); cjql="select {'tuple':'*'}.count() from tuple article.entities java.lang.Long where {}"; q=cube.createQuery(cjql); a = ta.clone(); a.select(">span[top]").html("博客"); a.select(">span[bottom]").html(q.count() + ""); li.appendChild(a); cjql="select {'tuple':'*'}.count() from tuple product.entities java.lang.Long where {}"; q=cube.createQuery(cjql); a = ta.clone(); a.select(">span[top]").html("产品"); a.select(">span[bottom]").html(q.count() + ""); li.appendChild(a); cjql="select {'tuple':'*'}.count() from tuple iobox java.lang.Long where {'tuple.iobox':'inbox'}"; q=cube.createQuery(cjql); a = ta.clone(); a.select(">span[top]").html("收件"); a.select(">span[bottom]").html(q.count() + ""); li.appendChild(a); cjql="select {'tuple':'*'}.count() from tuple iobox java.lang.Long where {'tuple.iobox':'outbox'}"; q=cube.createQuery(cjql); a = ta.clone(); a.select(">span[top]").html("发件"); a.select(">span[bottom]").html(q.count() + ""); li.appendChild(a); a = ta.clone(); a.select(">span[top]").html("文件数"); a.select(">span[bottom]").html(cube.fileSystem().filesTotal() + ""); li.appendChild(a); } }
[ "carocean.jofers@icloud.com" ]
carocean.jofers@icloud.com
bd7f5ef906445776ec596f6661208b1ab39118c4
91adc264eb26be39c656f054005ec740d07900bd
/hongshi_project/hrhi/src/public/com/seeyon/client/AuthorityServiceCallbackHandler.java
9e8202a021ad3507071835017246fe6a353a29e2
[]
no_license
xhrise/nc-workspaces
9f30caf273e932bd1b4c2d419ac6bef4ef55e1cc
d5fcbce810ba4d4b5405edabfb5a26c36a19e7f8
refs/heads/master
2020-05-19T10:43:29.058686
2013-06-20T02:40:27
2013-06-20T02:40:27
37,459,512
0
1
null
null
null
null
UTF-8
Java
false
false
1,933
java
/** * AuthorityServiceCallbackHandler.java * * This file was auto-generated from WSDL * by the Apache Axis2 version: 1.4.1 Built on : Aug 13, 2008 (05:03:35 LKT) */ package com.seeyon.client; /** * AuthorityServiceCallbackHandler Callback class, Users can extend this class and implement * their own receiveResult and receiveError methods. */ public abstract class AuthorityServiceCallbackHandler{ protected Object clientData; /** * User can pass in any object that needs to be accessed once the NonBlocking * Web service call is finished and appropriate method of this CallBack is called. * @param clientData Object mechanism by which the user can pass in user data * that will be avilable at the time this callback is called. */ public AuthorityServiceCallbackHandler(Object clientData){ this.clientData = clientData; } /** * Please use this constructor if you don't want to set any clientData */ public AuthorityServiceCallbackHandler(){ this.clientData = null; } /** * Get the client data */ public Object getClientData() { return clientData; } /** * auto generated Axis2 call back method for authenticate method * override this method for handling normal response from authenticate operation */ public void receiveResultauthenticate( com.seeyon.client.AuthorityServiceStub.AuthenticateResponse result ) { } /** * auto generated Axis2 Error handler * override this method for handling error response from authenticate operation */ public void receiveErrorauthenticate(java.lang.Exception e) { } }
[ "comicme_yanghe@126.com" ]
comicme_yanghe@126.com
57c61a42a00aa84cfd36dd87f631fd1522f7b52e
27e7db51f489ae25885dc516a7994cbdda25d604
/org.polymap.model2/src/org/polymap/model2/runtime/CommitLockStrategy.java
97840dd946516d50e4e118d9bfed0bccd8ea6284
[]
no_license
joergreichert/polymap4-model
57b1528a77891ac7cd317a7fbc285fc64b6564f2
735ba7ceae134925a0cbae0bf77c336e4878ab2c
refs/heads/master
2021-01-16T19:59:32.260528
2015-11-13T17:10:57
2015-11-13T17:10:57
40,366,263
0
0
null
2015-08-07T15:08:20
2015-08-07T15:08:20
null
UTF-8
Java
false
false
3,698
java
/* * polymap.org * Copyright (C) 2015, Falko Bräutigam. All rights reserved. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 3.0 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.polymap.model2.runtime; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.locks.ReentrantLock; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * * * @author <a href="http://www.polymap.de">Falko Bräutigam</a> */ public abstract class CommitLockStrategy { private static Log log = LogFactory.getLog( CommitLockStrategy.class ); public abstract void lock(); public abstract void unlock( boolean check ); /** * Throw a {@link RuntimeException} when concurrent prepare/commit is detected. */ public static class FailOnConcurrentCommit extends CommitLockStrategy { private AtomicBoolean locked = new AtomicBoolean( false ); @Override public void lock() { if (!locked.compareAndSet( false, true )) { throw new RuntimeException( "Concurrent prepare/commit detected!" ); } } @Override public void unlock( boolean check ) { if (check) { if (!locked.compareAndSet( true, false )) { throw new RuntimeException( "Concurrent prepare/commit detected!" ); } } else { locked.set( false ); } } } /** * Serialize concurrent attempts to {@link #prepare()}/{@link #commit()}. */ public static class Serialize extends CommitLockStrategy { private ReentrantLock lock = new ReentrantLock(); private long timeout; private TimeUnit timeUnit; public Serialize() { } /** * Causes {@link #lock()} to throw an {@link RuntimeException} if the given time * expires before we get the lock. * * @param timeout * @param timeUnit */ public Serialize( long timeout, TimeUnit timeUnit ) { this.timeout = timeout; this.timeUnit = timeUnit; } @Override public void lock() { if (timeout == 0) { lock.lock(); } else { try { lock.tryLock( timeout, timeUnit ); } catch (InterruptedException e) { throw new RuntimeException( e ); } } } @Override public void unlock( boolean check ) { if (lock.isHeldByCurrentThread()) { lock.unlock(); } } } /** * Do nothing ans ignore locking altogether. Save cycles and memory. */ public static class Ignore extends CommitLockStrategy { @Override public void lock() { } @Override public void unlock( boolean check ) { } } }
[ "falko@polymap.de" ]
falko@polymap.de
24ba70510849d5a68807f3ea0411ce0eb083dc44
56319e53f4155b0f0ae4ab249b1d3249fc8ddd98
/apache-tomcat-8.0.39/converted/org/apache/catalina/core/MainForTestStandardContext_testBug51376a.java
5d7209d62b49b8a552809802c67a2b94a1cbd841
[]
no_license
SnowOnion/J2mConvertedTestcases
2f904e2f2754f859f6125f248d3672eb1a70abd1
e74b0e4c08f12e5effeeb8581670156ace42640a
refs/heads/master
2021-01-11T19:01:42.207334
2017-01-19T12:22:22
2017-01-19T12:22:22
79,295,183
1
0
null
null
null
null
UTF-8
Java
false
false
623
java
package org.apache.catalina.core; import org.apache.catalina.core.TestStandardContext; public class MainForTestStandardContext_testBug51376a { public static void main(String[] args) { try { TestStandardContext.setUpPerTestClass(); TestStandardContext objTestStandardContext = new TestStandardContext(); objTestStandardContext.setUp(); objTestStandardContext.testBug51376a(); objTestStandardContext.tearDown(); TestStandardContext.tearDownPerTestClass(); } catch (Throwable e) { e.printStackTrace(); } } }
[ "snowonionlee@gmail.com" ]
snowonionlee@gmail.com
ed4920dd91c45007e4af87298331146f827372da
7aa02f902ad330c70b0b34ec2d4eb3454c7a3fc1
/com/viewpagerindicator/C0394c.java
0fa0a3bb56a7a1b6f38a19563ac7e081ef6cbcd7
[]
no_license
hisabimbola/andexpensecal
5e42c7e687296fae478dfd39abee45fae362bc5b
c47e6f0a1a6e24fe1377d35381b7e7e37f1730ee
refs/heads/master
2021-01-19T15:20:25.262893
2016-08-11T16:00:49
2016-08-11T16:00:49
100,962,347
1
0
null
2017-08-21T14:48:33
2017-08-21T14:48:33
null
UTF-8
Java
false
false
153
java
package com.viewpagerindicator; import android.support.v4.view.bi; /* renamed from: com.viewpagerindicator.c */ public interface C0394c extends bi { }
[ "m.ravinther@yahoo.com" ]
m.ravinther@yahoo.com
e63cdc1ebc0bc6b00370891fe536142ed9308bf4
7f589de50b4629425efc35a66e6357dab1ee5e5f
/company/EXCEPTII/ExceptiiVerificate.java
0d188093aed1dcf3e185c170cf9bb866f864a76d
[]
no_license
mirannaalina/HeadFirst
3824bf63cd284a020cd07e8fb1712c761445bbdf
0dde83bb675580d856571b3c11ed129fbaf43098
refs/heads/master
2020-06-12T17:46:41.323115
2019-07-01T16:17:40
2019-07-01T16:17:40
194,376,473
0
0
null
null
null
null
UTF-8
Java
false
false
899
java
package com.company.EXCEPTII; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; public class ExceptiiVerificate { public static void main(String[] args) throws FileNotFoundException, IOException { //JAVA TE OBLIGA SA LE VERIFICI //--------------------------------------Exceptii verificate (IOException) BufferedReader bf = new BufferedReader(//citim textul din fisierul FileReader : new FileReader("/Users/mirannaalina/IdeaProjects/HeadFirst/practice/src/com/company/EXCEPTII/text.txt") ); // FileNotFoundException String linie; while ((linie = bf.readLine()) != null) {//asociaza variabila string linie cu ce e in fisierul text System.out.println(linie);//si atat timp cat fisieru nu e gol , afiseaza ce e in el } } }
[ "v_mxa@yahoo.com" ]
v_mxa@yahoo.com
35b3ca053a01d61086ae3d6fd399314c6ab57181
b67b1f75dc1a2efe79052eeb527a98c3782217f2
/UAegean-Online-P2P-Communities-web-app/src/main/java/teem/loginapp/pojo/UserCredentials.java
af2add824a3faca63ba34ed49c2565b338622974
[]
no_license
endimion/eID-enabled-apps
bab298d9df106eb6e43f37cfcda63099aaf76a24
3294b26294267503b78f1c2326b8b6f703644ae4
refs/heads/master
2020-03-22T21:33:14.793175
2018-07-17T13:34:25
2018-07-17T13:34:25
140,695,361
0
1
null
null
null
null
UTF-8
Java
false
false
3,001
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package teem.loginapp.pojo; import java.util.Map; /** * * @author nikos */ public class UserCredentials { private String username; private String password; private String email; private String status; private Map<String, ReceivedStorkAttribute> attributes; private String azureId; private String principalName; private String azurePassword; private String nativeCurrentGivenName; private String nativeFamilyGivenName; private String engCurrentGivenName; private String engCurrentFamilyName; public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public Map<String, ReceivedStorkAttribute> getAttributes() { return attributes; } public void setAttributes(Map<String, ReceivedStorkAttribute> attributes) { this.attributes = attributes; } public String getAzureId() { return azureId; } public void setAzureId(String azureId) { this.azureId = azureId; } public String getPrincipalName() { return principalName; } public void setPrincipalName(String principalName) { this.principalName = principalName; } public String getAzurePassword() { return azurePassword; } public void setAzurePassword(String azurePassword) { this.azurePassword = azurePassword; } public String getNativeCurrentGivenName() { return nativeCurrentGivenName; } public void setNativeCurrentGivenName(String nativeCurrentGivenName) { this.nativeCurrentGivenName = nativeCurrentGivenName; } public String getNativeFamilyGivenName() { return nativeFamilyGivenName; } public void setNativeFamilyGivenName(String nativeFamilyGivenName) { this.nativeFamilyGivenName = nativeFamilyGivenName; } public String getEngCurrentGivenName() { return engCurrentGivenName; } public void setEngCurrentGivenName(String engCurrentGivenName) { this.engCurrentGivenName = engCurrentGivenName; } public String getEngCurrentFamilyName() { return engCurrentFamilyName; } public void setEngCurrentFamilyName(String engCurrentFamilyName) { this.engCurrentFamilyName = engCurrentFamilyName; } }
[ "triantafyllou.ni@gmail.com" ]
triantafyllou.ni@gmail.com
6a94b5e5cf37d224ecb27f3442da996c8ce39aa2
57e68d99f3be5887b84299b3164fbd2d03aa5ea8
/core/src/main/java/brooklyn/entity/group/zoneaware/CriticalCauseZoneFailureDetector.java
7c6c5b436d7abc7c9db5f4960418e65a76992a20
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
ganeshgitrepo/incubator-brooklyn
08d7e41971eaa910ee518c898fb1fb6e60a6ce7e
f28d9cc6b9fd21fe3e05dd04553f16d562bf419c
refs/heads/master
2021-01-17T08:46:31.582724
2014-07-03T09:46:32
2014-07-03T09:46:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,467
java
package brooklyn.entity.group.zoneaware; import brooklyn.location.Location; import brooklyn.util.time.Duration; import com.google.common.base.Predicate; public class CriticalCauseZoneFailureDetector extends AbstractZoneFailureDetector { protected final long timeToConsider; protected final Predicate<? super Throwable> criticalityPredicate; private final int numTimes; /** * @param timeToConsider Time for recent attempts (discard any attempts older than this) * @param criticalityPredicate What constitutes a critical cause * @param numTimes Number of "critical causes" that must happen within the time period, to consider failed */ public CriticalCauseZoneFailureDetector(Duration timeToConsider, Predicate<? super Throwable> criticalityPredicate, int numTimes) { this.timeToConsider = timeToConsider.toMilliseconds(); this.criticalityPredicate = criticalityPredicate; this.numTimes = numTimes; } @Override protected boolean doHasFailed(Location loc, ZoneHistory zoneHistory) { synchronized (zoneHistory) { zoneHistory.trimOlderThan(System.currentTimeMillis() - timeToConsider); int count = 0; for (Throwable cause : zoneHistory.causes) { if (criticalityPredicate.apply(cause)) { count++; } } return count >= numTimes; } } }
[ "aled.sage@gmail.com" ]
aled.sage@gmail.com
281ba402139461fc627d80510d02877d979e9eb7
0323304e17358742905956216b255cf1f164d465
/src/main/java/com/shimizukenta/secs/local/property/TimeoutProperty.java
fed942b509fb7e5f811229c5cafdf96ad2b9862b
[ "Apache-2.0" ]
permissive
kenta-shimizu/secs4java8
52fd4492168c910e1615b9c46365dbb08d461288
b56ec83b6d3f27e0110f1607f5d367f6942ec056
refs/heads/master
2023-08-28T18:15:08.727227
2023-08-13T10:27:24
2023-08-13T10:27:24
177,183,118
90
57
Apache-2.0
2023-08-13T10:27:25
2019-03-22T17:28:47
Java
UTF-8
Java
false
false
2,902
java
package com.shimizukenta.secs.local.property; import java.util.Objects; import java.util.concurrent.TimeUnit; import com.shimizukenta.secs.local.property.impl.AbstractTimeoutProperty; /** * TimeoutAndUnit value Property, includes Getter, Setter, Observer. * * <p> * This instance can be used as waitUntil-method's timeout parameter.<br /> * </p> * <ul> * <li>To build instance, * <ul> * <li>{@link #newInstance(long, TimeUnit)}</li> * <li>{@link #newInstance(float)}</li> * </ul> * </li> * <li>To set value, * <ul> * <li>{@link #set(long, TimeUnit)}</li> * <li>{@link #set(float)}</li> * </ul> * </li> * <li>To detect value changed, {@link #addChangeListener(ChangeListener)}</li> * <li>Utility methods, * <ul> * <li>{@link #sleep()}</li> * <li>{@link #wait(Object)}</li> * <li>{@link #blockingQueuePoll(java.util.concurrent.BlockingQueue)}</li> * <li>{@link #futureGet(java.util.concurrent.Future)}</li> * <li>{@link #invokeAll(java.util.concurrent.ExecutorService, java.util.Collection)}</li> * <li>{@link #invokeAny(java.util.concurrent.ExecutorService, java.util.Collection)}</li> * </ul> * </li> * </ul> * * @author kenta-shimizu * @see TimeUnit * @see TimeoutAndUnit * @see TimeoutGettable * @see TimeoutSettable * @see TimeoutObservable * @see Property * */ public interface TimeoutProperty extends Property<TimeoutAndUnit>, TimeoutGettable, TimeoutSettable, TimeoutObservable { /** * TimeouyProperty builder. * * @param seconds the int value * @return new-instance */ public static TimeoutProperty newInstance(int seconds) { return newInstance(TimeoutAndUnit.of(seconds)); } /** * TimeoutProperty builder. * * @param seconds the long value * @return new-instance */ public static TimeoutProperty newInstance(long seconds) { return newInstance(TimeoutAndUnit.of(seconds)); } /** * TimeoutProperty builder. * * @param seconds the float value * @return new-instance */ public static TimeoutProperty newInstance(float seconds) { return newInstance(TimeoutAndUnit.of(seconds)); } /** * TimeoutProperty builder. * * @param seconds the double value * @return new-instance */ public static TimeoutProperty newInstance(double seconds) { return newInstance(TimeoutAndUnit.of(seconds)); } /** * TimeoutProperty builder. * * @param timeout the long value * @param unit the TimeUnit * @return new-instance */ public static TimeoutProperty newInstance(long timeout, TimeUnit unit) { return newInstance(TimeoutAndUnit.of(timeout, unit)); } /** * TimeoutProperty builder. * * @param value the TimeoutAndUnit * @return new-instance */ public static TimeoutProperty newInstance(TimeoutAndUnit value) { return new AbstractTimeoutProperty(Objects.requireNonNull(value)) { private static final long serialVersionUID = 905918685867216201L; }; } }
[ "shimizukentagm1@gmail.com" ]
shimizukentagm1@gmail.com
1e2ac9b9282652f6861a417f99b82012dd30ef79
333d657ab8118bfbaa0fc9f611666f0ed04171cb
/zb/app/src/main/java/cn/grass/gate/data/DbHelper.java
340bf1c3b19dc3aae06dbb44f441b5bedc5cbfc8
[]
no_license
xiaosd6226/huobi-3
5c2f58a0fd6809bb50b86005b73a3226c58155e2
8b4a3170c988f625ef828cfe8d618aa0b47d9c74
refs/heads/master
2020-03-17T09:31:35.450918
2018-05-04T14:00:45
2018-05-04T14:00:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,029
java
package cn.grass.gate.data; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import cn.grass.gate.GrassApp; public class DbHelper extends SQLiteOpenHelper { /** * 数据库名称,数据库版本代码 */ private static String DATABASE_NAME = "meter.db"; /** * 数据库版本初始是1 */ private static final int DATABASE_VERSION = 4; private static DbHelper helper; private DbHelper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); // TODO Auto-generated constructor stub } public static synchronized DbHelper getInstance() { if (helper == null) { helper = new DbHelper(GrassApp.getInstance()); } return helper; } @Override public void onCreate(SQLiteDatabase db) { // TODO Auto-generated method stub db.execSQL(UserInfoDb.USERNAME_TABLE_CREATE); // db.execSQL(ChatUserDb.CHAT_USERS_TABLE_CREATE); // db.execSQL(VideosDb.LESSONS_TABLE_CREATE); // db.execSQL(MenuDb.MENU_TABLE_CREATE); // db.execSQL(TeaMenuDb.MENU_TABLE_CREATE); // db.execSQL(ManagerMenuDb.MENU_TABLE_CREATE); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { // TODO Auto-generated method stub //暂时不做更新数据处理 // int ver=oldVersion; // if (oldVersion != newVersion) { try{ db.execSQL(UserInfoDb.USERNAME_TABLE_DROP); // db.execSQL(ChatUserDb.CHAT_USERS_TABLE_DROP); // db.execSQL(VideosDb.LESSONS_TABLE_DROP); if(oldVersion>4){ // db.execSQL(MenuDb.MENUS_TABLE_DROP); // db.execSQL(TeaMenuDb.MENUS_TABLE_DROP); } }catch (Exception e){ } // } // if(ver==1){ // //版本11升级到12需要执行 // // db.execSQL(SearchDb.DROP_USERINFO); // } } }
[ "admin" ]
admin
879c09b585dece34134226a6b2c1030b84ca3379
981df8aa31bf62db3b9b4e34b5833f95ef4bd590
/xworker_dataobject/src/main/java/xworker/dataObject/proxy/HttpProxyConfigActions.java
e4773917922eef8845218f9fd8ca3c1929d020b8
[ "Apache-2.0" ]
permissive
x-meta/xworker
638c7cd935f0a55d81f57e330185fbde9dce9319
430fba081a78b5d3871669bf6fcb1e952ad258b2
refs/heads/master
2022-12-22T11:44:10.363983
2021-10-15T00:57:10
2021-10-15T01:00:24
217,432,322
1
0
Apache-2.0
2022-12-12T23:21:16
2019-10-25T02:13:51
Java
UTF-8
Java
false
false
1,844
java
/******************************************************************************* * Copyright 2007-2013 See AUTHORS file. * * 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 xworker.dataObject.proxy; import org.apache.http.client.HttpClient; import org.xmeta.ActionContext; import org.xmeta.Thing; import org.xmeta.World; import xworker.dataObject.DataObjectException; public class HttpProxyConfigActions { /** * 获取基础URL。 * * @param actionContext * @return */ public static String getBaseUrl(ActionContext actionContext){ Thing self = (Thing) actionContext.get("self"); return self.getString("baseUrl"); } /** * 获取HttpClient。 * * @param actionContext * @return */ public static HttpClient getHttpClient(ActionContext actionContext){ Thing self = (Thing) actionContext.get("self"); Thing httpClientThing = World.getInstance().getThing(self.getString("httpClient")); if(httpClientThing == null){ httpClientThing = self.getThing("HttpClient@0"); } if(httpClientThing == null){ throw new DataObjectException("Please set up httpClient, thing=" + self); } return (HttpClient) httpClientThing.doAction("getHttpClient", actionContext); } }
[ "zhangyuxiang@tom.com" ]
zhangyuxiang@tom.com
718b7affaa065c5b191d98c5ecc6427ffa744f26
6066fc9f54fb8955d8e763ae1569a2c06aef28e9
/src/main/java/binary/tree/Node.java
9b52c904685f21dedba6fc27ebdaf6feab0609b5
[]
no_license
raju1982/educative
d33a70f5e63746af98247e48d37326fb1ce438ae
1d0a7f97285540e25a2c05a80b39c9f71e53f430
refs/heads/master
2021-07-20T23:36:01.452828
2021-07-08T06:29:22
2021-07-08T06:29:22
180,651,995
0
0
null
null
null
null
UTF-8
Java
false
false
573
java
package binary.tree; public class Node { int data; Node leftNode; Node rightNode; public Node(int data){this.data = data;} public int getData() { return data; } public void setData(int data) { this.data = data; } public Node getLeftNode() { return leftNode; } public void setLeftNode(Node leftNode) { this.leftNode = leftNode; } public Node getRightNode() { return rightNode; } public void setRightNode(Node rightNode) { this.rightNode = rightNode; } }
[ "rakeshkandpal1982@gmail.com" ]
rakeshkandpal1982@gmail.com
cc3aa68c95f06b5d7dda314aadfed11e3ee0d4e4
bd415d33cb62d583f673a2616aaed4db9e181862
/ProyectosCajaRegistrador/CRJPAsrc/src/main/java/crjpa/Articulocodigoexterno.java
bd719e402263da989f65916bb6390a969b1ff86d
[ "Apache-2.0" ]
permissive
macor003/desarrollosAndroid
05f88ae6da0cc812b343eb62d2520b2a5033e2d4
0b8ebe0da371c002e533898626712c1cd68ddfc6
refs/heads/master
2020-04-21T18:13:13.394252
2018-11-22T13:54:26
2018-11-22T13:54:26
169,761,275
0
0
null
null
null
null
UTF-8
Java
false
false
5,478
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package crjpa; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.xml.bind.annotation.XmlRootElement; /** * * @author eve0014321 * @version $Revision: 1.0 $ */ @Entity @Table(name = "articulocodigoexterno") @XmlRootElement @NamedQueries({ @NamedQuery(name = "Articulocodigoexterno.findAll", query = "SELECT a FROM Articulocodigoexterno a"), @NamedQuery(name = "Articulocodigoexterno.findById", query = "SELECT a FROM Articulocodigoexterno a WHERE a.id = :id"), @NamedQuery(name = "Articulocodigoexterno.findByCodigoExterno", query = "SELECT a FROM Articulocodigoexterno a WHERE a.codigoExterno = :codigoExterno"), @NamedQuery(name = "Articulocodigoexterno.findByFecha", query = "SELECT a FROM Articulocodigoexterno a WHERE a.fecha = :fecha") }) public class Articulocodigoexterno implements Serializable { /** * Field serialVersionUID. (value is 1) */ private static final long serialVersionUID = 1L; /** * Field id. */ @Id @Basic(optional = false) @Column(name = "id") private Long id; /** * Field codigoExterno. */ @Basic(optional = false) @Column(name = "codigo_externo") private String codigoExterno; /** * Field fecha. */ @Basic(optional = false) @Column(name = "fecha") @Temporal(TemporalType.TIMESTAMP) private Date fecha; /** * Field idArticulo. */ @JoinColumn(name = "id_articulo", referencedColumnName = "id") @ManyToOne(optional = false) private Articulo idArticulo; /** * Field estaactivo. */ @Basic(optional = false) @Column(name = "estaactivo") private String estaactivo; /** * Constructor for Articulocodigoexterno. */ public Articulocodigoexterno() { } /** * Constructor for Articulocodigoexterno. * * @param id * Long */ public Articulocodigoexterno(Long id) { this.id = id; } /** * Constructor for Articulocodigoexterno. * * @param id * Long * @param codigoExterno * String * @param fecha * Date */ public Articulocodigoexterno(Long id, String codigoExterno, Date fecha) { this.id = id; this.codigoExterno = codigoExterno; this.fecha = fecha; } /** * Method getId. * * @return Long */ public Long getId() { return id; } /** * Method setId. * * @param id * Long */ public void setId(Long id) { this.id = id; } /** * Method getCodigoExterno. * * @return String */ public String getCodigoExterno() { return codigoExterno; } /** * Method setCodigoExterno. * * @param codigoExterno * String */ public void setCodigoExterno(String codigoExterno) { this.codigoExterno = codigoExterno; } /** * Method getFecha. * * @return Date */ public Date getFecha() { return fecha; } /** * Method setFecha. * * @param fecha * Date */ public void setFecha(Date fecha) { this.fecha = fecha; } /** * Method getIdArticulo. * * @return Articulo */ public Articulo getIdArticulo() { return idArticulo; } /** * Method setIdArticulo. * * @param idArticulo * Articulo */ public void setIdArticulo(Articulo idArticulo) { this.idArticulo = idArticulo; } /** * Method getEstaactivo. * * @return String */ public String getEstaactivo() { return estaactivo; } /** * Method setEstaactivo. * * @param estaactivo * String */ public void setEstaactivo(String estaactivo) { this.estaactivo = estaactivo; } /** * Method hashCode. * * @return int */ @Override public int hashCode() { int hash = 0; hash += (id != null ? id.hashCode() : 0); return hash; } /** * Method equals. * * @param object * Object * @return boolean */ @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are // not set if (!(object instanceof Articulocodigoexterno)) { return false; } Articulocodigoexterno other = (Articulocodigoexterno) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; } /** * Method toString. * * @return String */ @Override public String toString() { String separator = "@@"; String enclosed = "|"; String nullStr = "\\N"; String endStr = "\r\n"; SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); StringBuilder sb = new StringBuilder(); sb.append(id); sb.append(separator); if (idArticulo.getId() == null) { sb.append(nullStr); } else { sb.append(idArticulo.getId()); } sb.append(separator); sb.append(enclosed); sb.append(codigoExterno.replaceAll("[^a-zA-Z0-9]+", "").trim()); sb.append(enclosed); sb.append(separator); sb.append(fecha == null ? nullStr : simpleDateFormat.format(fecha)); sb.append(separator); sb.append(estaactivo); sb.append(endStr); return sb.toString(); } }
[ "mortega@intelix.biz" ]
mortega@intelix.biz
0e7fd786ea4bab142afc278dda0abd446c7014dc
5725405b6f788c5c57250b1c4d09a9aa56e14cc6
/tapestry-core/src/main/java/org/apache/tapestry5/internal/test/ComponentInvoker.java
ea3338ebe4763dc44fc59ad93bdf86c0be316b3b
[ "Apache-2.0", "LGPL-2.0-or-later", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "MIT", "MIT-0", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-or-later", "GPL-1.0-or-later", "MPL-1.1", "CC-BY-2.5" ]
permissive
nirvdrum/tapestry5
614aff41a1b88ccfd5d907f9682d606b234089c9
773c7480d77826d80f50dee03057d56cab3ac824
refs/heads/5.0
2022-12-23T01:42:32.675122
2009-01-13T17:54:26
2009-01-13T17:54:26
180,714
1
1
Apache-2.0
2022-12-09T22:04:32
2009-05-13T00:17:00
Java
UTF-8
Java
false
false
1,107
java
// Copyright 2006, 2007 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.internal.test; import org.apache.tapestry5.dom.Document; import org.apache.tapestry5.internal.services.ComponentInvocation; /** * Invokes a {@link org.apache.tapestry5.internal.services.ComponentInvocation}. */ public interface ComponentInvoker { /** * @param invocation The ComponentInvocation object to be invoked. * @return The DOM created. Typically you will assert against it. */ Document invoke(ComponentInvocation invocation); }
[ "hlship@apache.org" ]
hlship@apache.org
61cc0c4859b0137343d21789aa73f0d617a81de6
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/19/19_a64332ad794b77120050ef669d85b1d39ab1fe5d/DropsToInventory/19_a64332ad794b77120050ef669d85b1d39ab1fe5d_DropsToInventory_t.java
da46731c7be116650a87a2b531c764c5f78e89f8
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
4,705
java
package net.amunak.bukkit.plugin_DropsToInventory; /** * Copyright 2013 Jiří Barouš * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import org.bukkit.Location; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.entity.EntityType; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.HandlerList; import org.bukkit.event.Listener; import org.bukkit.event.entity.EntityDeathEvent; import org.bukkit.inventory.ItemStack; import org.bukkit.plugin.java.JavaPlugin; /** * This is the main class of plugin DropsToInventory. It acts both as a plugin * and listener. * * @author Amunak */ public class DropsToInventory extends JavaPlugin implements Listener { protected static Log log; protected FileConfiguration config; public List<String> allowedEntities; @Override public void onEnable() { log = new Log(this); log.raiseFineLevel = true; log.fine("Plugin enabled"); log.fine("Fine logging will be seen"); this.saveDefaultConfig(); config = this.getConfig(); allowedEntities = config.getStringList("lists.allowedEntities"); Common.fixEnumLists(allowedEntities); if (config.getBoolean("options.general.checkVersion")) { CheckVersion.check(this); } this.getServer().getPluginManager().registerEvents(this, this); if (config.getBoolean("options.blocks.allow")) { this.getServer().getPluginManager().registerEvents(new BlockBreakEventListener(this), this); } } @Override public void onDisable() { HandlerList.unregisterAll((JavaPlugin) this); log.fine("Plugin disabled"); } private void reloadConfigurtion() { /** * We need to re-register event listeners when reloading configuration! */ throw new UnsupportedOperationException("Not yet implemented"); } @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true) public void onEntityDeath(EntityDeathEvent event){ log.fine("Entity " + event.getEntityType() + " died by " + event.getEntity().getKiller()); //We ignore everything not killed by a player if ((event.getEntity().getKiller() != null) && (event.getEntity().getKiller() instanceof Player)) { if (config.getBoolean("options.entities.allow") && allowedEntities.contains(event.getEntity().getType().toString())) { log.fine("dropping inventory of dead " + event.getEntityType() + " to " + event.getEntity().getKiller()); this.moveDropToInventory(event.getEntity().getKiller(), event.getDrops(), event.getDroppedExp(), event.getEntity().getLocation()); event.setDroppedExp(0); event.getDrops().clear(); } } } /** * moves drop and xp into player's inventory, leaving leftover on specified * location * * @param player the player * @param drop collection of drop * @param xp amount of xp * @param leftoverDropLocation the location for leftover */ protected void moveDropToInventory(Player player, Collection<ItemStack> drop, Integer xp, Location leftoverDropLocation) { HashMap<Integer, ItemStack> leftover; if (xp != null) { log.fine("giving " + xp + " xp"); player.giveExp(xp); } leftover = player.getInventory().addItem(drop.toArray(new ItemStack[0])); for (Map.Entry<Integer, ItemStack> entry : leftover.entrySet()) { player.getWorld().dropItemNaturally(leftoverDropLocation, entry.getValue()); } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
6ca4d55af97223e1ffec9b177ff95e2a0fb13b48
10eec5ba9e6dc59478cdc0d7522ff7fc6c94cd94
/maind/src/main/java/com/vvt/capture/b/a.java
219b2444699addc310cee1844eadb607f6a485ff
[]
no_license
EchoAGI/Flexispy.re
a2f5fec409db083ee3fe0d664dc2cca7f9a4f234
ba65a5b8b033b92c5867759f2727c5141b7e92fc
refs/heads/master
2023-04-26T02:52:18.732433
2018-07-16T07:46:56
2018-07-16T07:46:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,719
java
package com.vvt.capture.b; import com.vvt.im.events.info.ICallLogData; import com.vvt.im.events.info.ICallLogData.IsMonitor; public class a extends c implements ICallLogData { private long c; private long d; private String e; private String f; private int g; private ICallLogData.IsMonitor h; private int i; public long a() { return this.d; } public void a(int paramInt) { this.g = paramInt; } public void a(long paramLong) { this.d = paramLong; } public void a(ICallLogData.IsMonitor paramIsMonitor) { this.h = paramIsMonitor; } public void a(String paramString) { this.e = paramString; } public String b() { return this.e; } public void b(int paramInt) { this.i = paramInt; } public void b(String paramString) { this.f = paramString; } public String c() { return this.f; } public int d() { return this.g; } public ICallLogData.IsMonitor e() { return this.h; } public int f() { return this.i; } public String toString() { StringBuilder localStringBuilder = new java/lang/StringBuilder; localStringBuilder.<init>(); localStringBuilder.append("ViberCallLogData {"); Object localObject1 = localStringBuilder.append("id:"); long l = this.c; ((StringBuilder)localObject1).append(l).append(", "); localObject1 = localStringBuilder.append("duration:"); l = this.d; ((StringBuilder)localObject1).append(l).append(", "); Object localObject2 = localStringBuilder.append("userId:"); localObject1 = this.e; if (localObject1 == null) { localObject1 = ""; ((StringBuilder)localObject2).append((String)localObject1).append(", "); localObject2 = localStringBuilder.append("contactName:"); localObject1 = this.f; if (localObject1 != null) { break label193; } } label193: for (localObject1 = "";; localObject1 = this.f) { ((StringBuilder)localObject2).append((String)localObject1).append(", "); localObject1 = localStringBuilder.append("time:"); l = h(); ((StringBuilder)localObject1).append(l).append(", "); localObject1 = localStringBuilder.append("direction:"); localObject2 = i(); ((StringBuilder)localObject1).append(localObject2).append(", "); localStringBuilder.append("}"); return localStringBuilder.toString(); localObject1 = this.e; break; } } } /* Location: /Volumes/D1/codebase/android/POC/assets/product/maind/classes-enjarify.jar!/com/vvt/capture/removeFromPath/a.class * Java compiler version: 5 (49.0) * JD-Core Version: 0.7.1 */
[ "52388483@qq.com" ]
52388483@qq.com
4d8a4a03e5dac2a3760afcf37985af4d35ef908b
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/2/2_ea6a9b8cd9f516c5caf97bb6b8306896ac1b9583/RegTest/2_ea6a9b8cd9f516c5caf97bb6b8306896ac1b9583_RegTest_s.java
38bfa4ce292811e1e20b27ecda4308c1bf87034e
[]
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
8,093
java
/* * Copyright 2005,2009 Ivan SZKIBA * * 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.ini4j; import org.ini4j.sample.Dwarfs; import org.ini4j.test.DwarfsData; import org.ini4j.test.Helper; import static org.junit.Assert.assertArrayEquals; import org.junit.Test; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.StringReader; public class RegTest extends Ini4jCase { private static final String DWARFS_PATH = Helper.DWARFS_REG_PATH + "\\dwarfs\\"; @Test public void proba() throws Exception { } @Test public void testDwarfs() throws Exception { Reg reg = Helper.loadDwarfsReg(); Dwarfs dwarfs = reg.as(Dwarfs.class, DWARFS_PATH); assertNotNull(dwarfs); Helper.assertEquals(DwarfsData.dwarfs, dwarfs); } @Test public void testInvalidFileFormatException() throws Exception { try { new Reg(Helper.getResourceReader(Helper.DWARFS_INI)); missing(InvalidFileFormatException.class); } catch (InvalidFileFormatException x) { // } } @Test public void testIsWindwos() { assertEquals(isWindows(), Reg.isWindows()); } @Test public void testLoad() throws Exception { Reg r1 = new Reg(new InputStreamReader(Helper.getResourceStream(Helper.DWARFS_REG), "UnicodeLittle")); Reg r2 = new Reg(Helper.getResourceStream(Helper.DWARFS_REG)); Reg r3 = new Reg(Helper.getResourceURL(Helper.DWARFS_REG)); File f = Helper.getSourceFile(Helper.DWARFS_REG); Reg r4 = new Reg(f); Reg r5 = new Reg(); r5.setFile(f); r5.load(); Helper.assertEquals(DwarfsData.dwarfs, r1.as(Dwarfs.class, DWARFS_PATH)); Helper.assertEquals(DwarfsData.dwarfs, r2.as(Dwarfs.class, DWARFS_PATH)); Helper.assertEquals(DwarfsData.dwarfs, r3.as(Dwarfs.class, DWARFS_PATH)); Helper.assertEquals(DwarfsData.dwarfs, r4.as(Dwarfs.class, DWARFS_PATH)); Helper.assertEquals(DwarfsData.dwarfs, r5.as(Dwarfs.class, DWARFS_PATH)); assertSame(f, r4.getFile()); } @Test public void testLoadFileNotFoundException() throws Exception { Reg reg = new Reg(); try { reg.load(); missing(FileNotFoundException.class); } catch (FileNotFoundException x) { // } } @Test public void testLoadSave() throws Exception { Reg reg = new Reg(Helper.getResourceURL(Helper.TEST_REG)); checkLoadSave(Helper.TEST_REG, reg); } @Test public void testMissingVersion() throws Exception { try { new Reg(new StringReader("\r\n\r\n[section]\r\n\"option\"=\"value\"")); missing(InvalidFileFormatException.class); } catch (InvalidFileFormatException x) { // } } @Test public void testUnixExec() throws Exception { if (isSkip(isUnix(), "testUnixExec")) { return; } Reg reg = new Reg(); reg.exec(new String[] { "/bin/true" }); try { reg.exec(new String[] { "/bin/ls", "no such file" }); fail("IOException expected"); } catch (IOException x) { assert true; } } @Test public void testReadException() throws Exception { if (!isWindows()) { try { new Reg(Reg.Hive.HKEY_CURRENT_USER.toString()); fail("missing UnsupportedOperationException"); } catch (UnsupportedOperationException x) { assert true; } } else { try { new Reg("no such key"); fail("missing IOException"); } catch (IOException x) { assert true; } } } @Test public void testReadWrite() throws Exception { if (isSkip(!isWindows(), "testReadWrite")) { return; } Reg reg = Helper.loadDwarfsReg(); reg.write(); Reg dup = new Reg(Helper.DWARFS_REG_PATH); Helper.assertEquals(reg.get(Helper.DWARFS_REG_PATH), dup.get(Helper.DWARFS_REG_PATH)); Dwarfs dwarfs = dup.as(Dwarfs.class, DWARFS_PATH); assertNotNull(dwarfs); Helper.assertEquals(DwarfsData.dwarfs, dwarfs); } @Test public void testStore() throws Exception { Reg reg = Helper.loadDwarfsReg(); File tmp = File.createTempFile(Reg.TMP_PREFIX, Reg.DEFAULT_SUFFIX); tmp.deleteOnExit(); reg.setFile(tmp); reg.store(); reg = new Reg(tmp); Helper.assertEquals(DwarfsData.dwarfs, reg.as(Dwarfs.class, DWARFS_PATH)); tmp.delete(); } @Test public void testStoreFileNotFoundException() throws Exception { try { new Reg().store(); missing(FileNotFoundException.class); } catch (FileNotFoundException x) { // } } @Test public void testUnsupportedOperatingSystem() throws Exception { if (isSkip(isWindows(), "testUnsupportedOperatingSystem")) { return; } Reg reg = new Reg(); try { reg.read(Helper.DWARFS_REG_PATH); fail("UnsupportedOperationException expected"); } catch (UnsupportedOperationException x) { assert true; } try { reg.write(); fail("UnsupportedOperationException expected"); } catch (UnsupportedOperationException x) { assert true; } } private boolean isSkip(boolean flag, String testName) { if (!flag) { System.out.println("Skipping " + getClass().getName() + '#' + testName); } return flag; } private boolean isWindows() { String family = System.getProperty("os.family"); return (family != null) && family.equals("windows"); } private boolean isUnix() { String family = System.getProperty("os.family"); return (family != null) && family.equals("unix"); } private void checkLoadSave(String path, Reg reg) throws Exception { File tmp = File.createTempFile(Reg.TMP_PREFIX, Reg.DEFAULT_SUFFIX); tmp.deleteOnExit(); reg.store(new FileOutputStream(tmp)); assertArrayEquals(read(Helper.getResourceStream(path)), read(new FileInputStream(tmp))); } private byte[] read(InputStream input) throws Exception { ByteArrayOutputStream out = new ByteArrayOutputStream(); byte[] buff = new byte[81912]; int n; while ((n = input.read(buff)) >= 0) { out.write(buff, 0, n); } return out.toByteArray(); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
e3f067202d0c63d0d10ee5457dd01df269f28603
fde8954411245ced754cf84e742d95f928b3ecbf
/src/main/java/com/sensei/search/nodes/impl/NoopIndexingManager.java
a2e7f0e47994a53c705750afffd6a07b169ad366
[]
no_license
xiaoyang/sensei
7d089b705b9c693ad7a29f03d663dfa551fdd575
d6d565d9cd5eb02301a92042f14e96afaab16eb6
refs/heads/master
2021-01-20T21:59:12.542719
2011-04-09T08:12:32
2011-04-09T08:12:32
533,081
1
0
null
null
null
null
UTF-8
Java
false
false
681
java
package com.sensei.search.nodes.impl; import java.util.Map; import proj.zoie.api.DefaultZoieVersion; import proj.zoie.api.Zoie; import com.browseengine.bobo.api.BoboIndexReader; import com.sensei.search.nodes.SenseiIndexingManager; public class NoopIndexingManager<D> implements SenseiIndexingManager<D,DefaultZoieVersion> { @Override public void initialize( Map<Integer, Zoie<BoboIndexReader, D, DefaultZoieVersion>> zoieSystemMap) throws Exception { // TODO Auto-generated method stub } @Override public void shutdown() { // TODO Auto-generated method stub } @Override public void start() throws Exception { // TODO Auto-generated method stub } }
[ "john.wang@gmail.com" ]
john.wang@gmail.com
7b04fe70f437206b17d4923718f6b326785ba2db
e76c78aa9208564b09bff5535610b470323ff876
/OptimisY3/TRECCommon/TRECManagerWeb/src/main/java/eu/optimis/mi/gui/client/model/ServiceVMs.java
c164f4e13c73bf114f9b52614b9cd6f5e0e08e0c
[ "Apache-2.0" ]
permissive
ldionmarcil/optimistoolkit
d9bb06e6e1e7262323cff553fc53b32d3b8bba8a
5733efef99d523de19f6be4a819ddc6b9f755499
refs/heads/master
2021-01-21T21:22:20.528698
2013-06-07T21:52:35
2013-06-07T21:52:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,427
java
/** * Copyright 2013 University of Leeds * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package eu.optimis.mi.gui.client.model; import java.util.ArrayList; /** * * @author scsmk */ public class ServiceVMs { String serviceId =null; ArrayList<String> vmids = new ArrayList<String>(); ArrayList<String> vm_avail= new ArrayList<String>(); public ServiceVMs() { } public void setserviceId(String sid) { serviceId=sid; } public String getserviceId() { return serviceId; } /* public void setserviceId(String sid) { serviceId=sid; } public String getserviceId() { return serviceId; } public void setserviceId(String sid) { serviceId=sid; } public String getserviceId() { return serviceId; } */ }
[ "A136603@ES-CNU2040FVS.es.int.atosorigin.com" ]
A136603@ES-CNU2040FVS.es.int.atosorigin.com
b232d7389a484b0338e6aacc5aaac09d867018cf
329b2cb3c91a0c953458efd253c4fcdce6f539c4
/graphsdk/src/main/java/com/microsoft/graph/extensions/IMultiValueLegacyExtendedPropertyRequest.java
1e5912c5022f79af7e43891c8f9d6933cfb258f3
[ "MIT" ]
permissive
sbolotovms/msgraph-sdk-android
255eeddf19c1b15f04ee3b1549f0cae70d561fdd
1320795ba1c0b5eb36ef8252b73799d15fc46ba1
refs/heads/master
2021-01-20T05:09:00.148739
2017-04-28T23:20:23
2017-04-28T23:20:23
89,751,501
1
0
null
2017-04-28T23:20:37
2017-04-28T23:20:37
null
UTF-8
Java
false
false
959
java
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ package com.microsoft.graph.extensions; import com.microsoft.graph.concurrency.*; import com.microsoft.graph.core.*; import com.microsoft.graph.extensions.*; import com.microsoft.graph.http.*; import com.microsoft.graph.generated.*; import com.microsoft.graph.options.*; import com.microsoft.graph.serializer.*; import java.util.Arrays; import java.util.List; // This file is available for extending, afterwards please submit a pull request. /** * The interface for the Multi Value Legacy Extended Property Request. */ public interface IMultiValueLegacyExtendedPropertyRequest extends IBaseMultiValueLegacyExtendedPropertyRequest { }
[ "brianmel@microsoft.com" ]
brianmel@microsoft.com
8c91fbc4ef83a12ff95f541a44f2f0fbe53b9b65
c3129bb0866cfb619579d7218156ccd84c6a490c
/netty/src/main/java/com/java/netty/google/StudentProto.java
7a996cc4cb57820f64e27011f1c16ea30016e3a1
[]
no_license
xwzl/notes
004c52d123fc4378be11e4dfb67beb7f0ac36076
7fc7af8f7c75f67a8824a4ed2825f6e6ea88b282
refs/heads/master
2020-05-09T10:04:54.206377
2019-09-16T10:15:40
2019-09-16T10:15:40
181,023,755
0
0
null
null
null
null
UTF-8
Java
false
true
7,442
java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Student.proto package com.java.netty.google; public final class StudentProto { private StudentProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } static final com.google.protobuf.Descriptors.Descriptor internal_static_com_java_netty_proto_MyRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_java_netty_proto_MyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_com_java_netty_proto_MyResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_java_netty_proto_MyResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_com_java_netty_proto_StudentRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_java_netty_proto_StudentRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_com_java_netty_proto_StudentResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_java_netty_proto_StudentResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_com_java_netty_proto_StudentResponseList_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_java_netty_proto_StudentResponseList_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_com_java_netty_proto_StreamRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_java_netty_proto_StreamRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_com_java_netty_proto_StreamResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_java_netty_proto_StreamResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\rStudent.proto\022\024com.java.netty.proto\"\035\n" + "\tMyRequest\022\020\n\010username\030\001 \001(\t\"\036\n\nMyRespon" + "se\022\020\n\010realname\030\002 \001(\t\"\035\n\016StudentRequest\022\013" + "\n\003age\030\001 \001(\005\":\n\017StudentResponse\022\014\n\004name\030\001" + " \001(\t\022\013\n\003age\030\002 \001(\005\022\014\n\004city\030\003 \001(\t\"U\n\023Stude" + "ntResponseList\022>\n\017studentResponse\030\001 \003(\0132" + "%.com.java.netty.proto.StudentResponse\"%" + "\n\rStreamRequest\022\024\n\014request_info\030\001 \001(\t\"\'\n" + "\016StreamResponse\022\025\n\rresponse_info\030\001 \001(\t2\235" + "\003\n\016StudentService\022\\\n\025GetRealNameByUserna" + "me\022\037.com.java.netty.proto.MyRequest\032 .co" + "m.java.netty.proto.MyResponse\"\000\022c\n\020GetSt" + "udentsByAge\022$.com.java.netty.proto.Stude" + "ntRequest\032%.com.java.netty.proto.Student" + "Response\"\0000\001\022o\n\030GetStudentsWrapperByAges" + "\022$.com.java.netty.proto.StudentRequest\032)" + ".com.java.netty.proto.StudentResponseLis" + "t\"\000(\001\022W\n\004Chat\022#.com.java.netty.proto.Str" + "eamRequest\032$.com.java.netty.proto.Stream" + "Response\"\000(\0010\001B\'\n\025com.java.netty.googleB" + "\014StudentProtoP\001b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_com_java_netty_proto_MyRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_java_netty_proto_MyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_java_netty_proto_MyRequest_descriptor, new java.lang.String[] { "Username", }); internal_static_com_java_netty_proto_MyResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_java_netty_proto_MyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_java_netty_proto_MyResponse_descriptor, new java.lang.String[] { "Realname", }); internal_static_com_java_netty_proto_StudentRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_com_java_netty_proto_StudentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_java_netty_proto_StudentRequest_descriptor, new java.lang.String[] { "Age", }); internal_static_com_java_netty_proto_StudentResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_com_java_netty_proto_StudentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_java_netty_proto_StudentResponse_descriptor, new java.lang.String[] { "Name", "Age", "City", }); internal_static_com_java_netty_proto_StudentResponseList_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_com_java_netty_proto_StudentResponseList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_java_netty_proto_StudentResponseList_descriptor, new java.lang.String[] { "StudentResponse", }); internal_static_com_java_netty_proto_StreamRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_com_java_netty_proto_StreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_java_netty_proto_StreamRequest_descriptor, new java.lang.String[] { "RequestInfo", }); internal_static_com_java_netty_proto_StreamResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_com_java_netty_proto_StreamResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_java_netty_proto_StreamResponse_descriptor, new java.lang.String[] { "ResponseInfo", }); } // @@protoc_insertion_point(outer_class_scope) }
[ "624244232@qq.com" ]
624244232@qq.com
75e22f8ded958bed6c0715a858e2f7631901741d
3a99f2a3a7d368641592e41806bae1a882c6263b
/KalturaClient/src/main/java/com/kaltura/client/enums/UnicornDistributionProfileOrderBy.java
529909ab4689738a80f48fe350b25b063d254d35
[ "MIT" ]
permissive
fahadnasrullah109/KalturaClient-Android
762934a818ecdd0527ff7275594beb6e60724354
f753b968023e55b7629ccefce845e2482d2f6dae
refs/heads/master
2020-04-04T18:50:15.830303
2018-11-05T10:56:19
2018-11-05T10:56:19
156,181,417
0
0
null
null
null
null
UTF-8
Java
false
false
2,530
java
// =================================================================================================== // _ __ _ _ // | |/ /__ _| | |_ _ _ _ _ __ _ // | ' </ _` | | _| || | '_/ _` | // |_|\_\__,_|_|\__|\_,_|_| \__,_| // // This file is part of the Kaltura Collaborative Media Suite which allows users // to do with audio, video, and animation what Wiki platfroms allow them to do with // text. // // Copyright (C) 2006-2018 Kaltura Inc. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // // @ignore // =================================================================================================== package com.kaltura.client.enums; /** * This class was generated using exec.php * against an XML schema provided by Kaltura. * * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. */ public enum UnicornDistributionProfileOrderBy implements EnumAsString { CREATED_AT_ASC("+createdAt"), UPDATED_AT_ASC("+updatedAt"), CREATED_AT_DESC("-createdAt"), UPDATED_AT_DESC("-updatedAt"); private String value; UnicornDistributionProfileOrderBy(String value) { this.value = value; } @Override public String getValue() { return this.value; } public void setValue(String value) { this.value = value; } public static UnicornDistributionProfileOrderBy get(String value) { if(value == null) { return null; } // goes over UnicornDistributionProfileOrderBy defined values and compare the inner value with the given one: for(UnicornDistributionProfileOrderBy item: values()) { if(item.getValue().equals(value)) { return item; } } // in case the requested value was not found in the enum values, we return the first item as default. return UnicornDistributionProfileOrderBy.values().length > 0 ? UnicornDistributionProfileOrderBy.values()[0]: null; } }
[ "fahad.nasrullah@sofodynamix.com" ]
fahad.nasrullah@sofodynamix.com
c9bd72677d200984ce41a2b0c7428a01a751208a
74e8082cd0b6ca3062c33f39fba99833eb5632d0
/src/main/java/edu/emory/cci/aiw/i2b2etl/dest/metadata/DemographicsBuilder.java
4614e1ed8ae703dad41276548ae78e609e951a09
[ "MPL-2.0", "BSD-3-Clause", "GPL-2.0-only", "Apache-2.0", "CDDL-1.1", "EPL-1.0", "Classpath-exception-2.0", "LGPL-2.0-or-later", "CDDL-1.0", "MIT", "LGPL-2.1-only" ]
permissive
eurekaclinical/aiw-i2b2-etl
f30cd8c08614ff569376650b00f6d7a91805fa36
2cd162d13fa389478060693d8199dafd701d8c32
refs/heads/master
2021-01-26T06:35:47.495534
2021-01-12T15:30:10
2021-01-12T15:30:10
45,768,566
0
5
Apache-2.0
2021-01-12T15:23:58
2015-11-08T05:41:23
Java
UTF-8
Java
false
false
2,006
java
package edu.emory.cci.aiw.i2b2etl.dest.metadata; /* * #%L * AIW i2b2 ETL * %% * Copyright (C) 2012 - 2015 Emory University * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ import org.protempa.KnowledgeSourceCache; /** * * @author Andrew Post */ public class DemographicsBuilder extends ParentBuilder implements SubtreeBuilder { private Concept root; public DemographicsBuilder(KnowledgeSourceCache cache, Metadata metadata) throws OntologyBuildException { super(metadata, "Demographics", MetadataUtil.DEFAULT_CONCEPT_ID_PREFIX_INTERNAL + "|DEM", metadata.getSettings().getSkipDemographicsHierarchy(), new DemographicsAgeBuilder(metadata), new DemographicsGenderBuilder(cache, metadata), new DemographicsLanguageBuilder(cache, metadata), new DemographicsMaritalStatusBuilder(cache, metadata), new DemographicsRaceBuilder(cache, metadata), new DemographicsReligionBuilder(cache, metadata), new DemographicsVitalStatusBuilder(cache, metadata)); } @Override public void build(Concept parent) throws OntologyBuildException { super.build(parent); this.root = parent; } @Override public Concept[] getRoots() { if (this.root != null) { return new Concept[]{this.root}; } else { return EMPTY_CONCEPT_ARRAY; } } }
[ "arpost@emory.edu" ]
arpost@emory.edu
40c66429b6fe22e33706074537be7a353a1c08ab
9410ef0fbb317ace552b6f0a91e0b847a9a841da
/src/main/java/com/tencentcloudapi/vm/v20210922/models/BucketInfo.java
216f0ea0a97eea2f9e622d2db2c1f5759e715880
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-sdk-java-intl-en
274de822748bdb9b4077e3b796413834b05f1713
6ca868a8de6803a6c9f51af7293d5e6dad575db6
refs/heads/master
2023-09-04T05:18:35.048202
2023-09-01T04:04:14
2023-09-01T04:04:14
230,567,388
7
4
Apache-2.0
2022-05-25T06:54:45
2019-12-28T06:13:51
Java
UTF-8
Java
false
false
3,062
java
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.tencentcloudapi.vm.v20210922.models; import com.tencentcloudapi.common.AbstractModel; import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.Expose; import java.util.HashMap; public class BucketInfo extends AbstractModel{ /** * Name of the COS bucket */ @SerializedName("Bucket") @Expose private String Bucket; /** * Region */ @SerializedName("Region") @Expose private String Region; /** * Object key */ @SerializedName("Object") @Expose private String Object; /** * Get Name of the COS bucket * @return Bucket Name of the COS bucket */ public String getBucket() { return this.Bucket; } /** * Set Name of the COS bucket * @param Bucket Name of the COS bucket */ public void setBucket(String Bucket) { this.Bucket = Bucket; } /** * Get Region * @return Region Region */ public String getRegion() { return this.Region; } /** * Set Region * @param Region Region */ public void setRegion(String Region) { this.Region = Region; } /** * Get Object key * @return Object Object key */ public String getObject() { return this.Object; } /** * Set Object key * @param Object Object key */ public void setObject(String Object) { this.Object = Object; } public BucketInfo() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public BucketInfo(BucketInfo source) { if (source.Bucket != null) { this.Bucket = new String(source.Bucket); } if (source.Region != null) { this.Region = new String(source.Region); } if (source.Object != null) { this.Object = new String(source.Object); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "Bucket", this.Bucket); this.setParamSimple(map, prefix + "Region", this.Region); this.setParamSimple(map, prefix + "Object", this.Object); } }
[ "tencentcloudapi@tencent.com" ]
tencentcloudapi@tencent.com
0024d7b1cceb981ed98e24a727a5e8707e916f31
4d8b3ed0f9443aa85e7df86fa68c9f40735e892a
/kasperni/MaritimeCloudClient/src/main/java/net/maritimecloud/internal/client/configuration/TestIt.java
aedd1e07241f6de6fac7c727c508735c10e05f23
[ "Apache-2.0" ]
permissive
dma-graveyard/Sandbox
cb32af5b43e495222020fba86299767ce1776ab8
679dffccabd76238ff7cbb7fa684e5c0b7470b6e
refs/heads/master
2021-06-15T22:57:13.986318
2017-04-17T21:33:44
2017-04-17T21:33:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,171
java
/* Copyright (c) 2011 Danish Maritime Authority. * * 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 net.maritimecloud.internal.client.configuration; /** * * @author Kasper Nielsen */ public class TestIt { // public static void maind(String[] args) throws InterruptedException, ExecutionException { // MmsClientConfiguration conf = MmsClientConfiguration.create("mmsi:123321323"); // conf.setHost("mms03.maritimecloud.net"); // // MmsClient mc = conf.build(); // // // for (MaritimeTextingService s : mc.endpointLocate(MaritimeTextingService.class).findAll().get()) { // System.out.println(s.getRemoteId()); // } // // // MaritimeTextingService s = mc.endpointCreate(MaritimeId.create("mmsi:111222333"), MaritimeTextingService.class); // // EndpointInvocationFuture<Void> f = s.sendMessage(new MaritimeText().setMsg("hejhej").setSeverity( // MaritimeTextingNotificationSeverity.MESSAGE)); // // System.out.println("Waiting"); // f.get(); // System.out.println("GOT IT"); // } // // // public static void main(String[] args) throws InterruptedException, ExecutionException { // MmsClientConfiguration conf = MmsClientConfiguration.create("mmsi:123321323"); // conf.setHost("mms03.maritimecloud.net"); // // MmsClient mc = conf.build(); // // mc.endpointRegister(new AbstractMaritimeTextingService() { // // @Override // protected void sendMessage(MessageHeader header, MaritimeText msg) { // System.out.println("Got " + msg.toJSON()); // // } // }); // // Thread.sleep(100000000); // } }
[ "kasperni@gmail.com" ]
kasperni@gmail.com
5a4da3650dfb815dd224c7baa35d5de01365602e
139960e2d7d55e71c15e6a63acb6609e142a2ace
/mobile_app1/module949/src/main/java/module949packageJava0/Foo882.java
470870bbcec361aa4b56fbb472414b3385d94b0d
[ "Apache-2.0" ]
permissive
uber-common/android-build-eval
448bfe141b6911ad8a99268378c75217d431766f
7723bfd0b9b1056892cef1fef02314b435b086f2
refs/heads/master
2023-02-18T22:25:15.121902
2023-02-06T19:35:34
2023-02-06T19:35:34
294,831,672
83
7
Apache-2.0
2021-09-24T08:55:30
2020-09-11T23:27:37
Java
UTF-8
Java
false
false
551
java
package module949packageJava0; import java.lang.Integer; public class Foo882 { Integer int0; Integer int1; public void foo0() { new module949packageJava0.Foo881().foo9(); } public void foo1() { foo0(); } public void foo2() { foo1(); } public void foo3() { foo2(); } public void foo4() { foo3(); } public void foo5() { foo4(); } public void foo6() { foo5(); } public void foo7() { foo6(); } public void foo8() { foo7(); } public void foo9() { foo8(); } }
[ "oliviern@uber.com" ]
oliviern@uber.com
d6cde00e0b2050ccd85ad578b21e12d6c186b821
92c389a549b1805d20f9714437690c4e47b6a6ca
/zhiquwang/src/main/java/com/icarexm/zhiquwang/bean/CreatChatBean.java
dca15ba7ea04ed51a14818302d912f1eecf21acc
[]
no_license
PursueMxy/zhiqu
110b335631eaa9781b19fe7df816cd5674f7fd38
f6ef4e9c7f782f619aa02b3efeb4020bab3f714d
refs/heads/master
2020-08-30T20:44:26.631698
2020-04-28T11:27:39
2020-04-28T11:27:39
218,482,492
0
0
null
null
null
null
UTF-8
Java
false
false
6,876
java
package com.icarexm.zhiquwang.bean; import java.util.List; public class CreatChatBean { /** * code : 1 * msg : success * data : {"job_zone":1,"salary_structure":"底薪+加班费+绩效+岗位津贴","job_name":"达运包吃住美女多","label_arr":[{"label_name":"电子行业"}],"salary_start":"3500.00","salary_end":"5000.00","salary_hour":"底薪+加班费+绩效+岗位津贴","age_start":18,"age_end":35,"admin_id":1,"job_id":29,"age":"18-35","chat_id":13,"user_id":3,"user_avatar":"/uploads/20191206/41f13f8bee25b1d28ca8ec6e5966106c.jpg","admin_name":"JinJuan","word":[{"id":1,"word":"名企","create_time":"2020-03-24 13:47:56"},{"id":2,"word":"大厂","create_time":"2020-03-24 13:48:03"}]} */ private int code; private String msg; private DataBean data; public int getCode() { return code; } public void setCode(int code) { this.code = code; } public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } public DataBean getData() { return data; } public void setData(DataBean data) { this.data = data; } public static class DataBean { /** * job_zone : 1 * salary_structure : 底薪+加班费+绩效+岗位津贴 * job_name : 达运包吃住美女多 * label_arr : [{"label_name":"电子行业"}] * salary_start : 3500.00 * salary_end : 5000.00 * salary_hour : 底薪+加班费+绩效+岗位津贴 * age_start : 18 * age_end : 35 * admin_id : 1 * job_id : 29 * age : 18-35 * chat_id : 13 * user_id : 3 * user_avatar : /uploads/20191206/41f13f8bee25b1d28ca8ec6e5966106c.jpg * admin_name : JinJuan * word : [{"id":1,"word":"名企","create_time":"2020-03-24 13:47:56"},{"id":2,"word":"大厂","create_time":"2020-03-24 13:48:03"}] */ private int job_zone; private String salary_structure; private String job_name; private String salary_start; private String salary_end; private String salary_hour; private int age_start; private int age_end; private int admin_id; private int job_id; private String age; private int chat_id; private int user_id; private String user_avatar; private String admin_name; private List<LabelArrBean> label_arr; private List<WordBean> word; public int getJob_zone() { return job_zone; } public void setJob_zone(int job_zone) { this.job_zone = job_zone; } public String getSalary_structure() { return salary_structure; } public void setSalary_structure(String salary_structure) { this.salary_structure = salary_structure; } public String getJob_name() { return job_name; } public void setJob_name(String job_name) { this.job_name = job_name; } public String getSalary_start() { return salary_start; } public void setSalary_start(String salary_start) { this.salary_start = salary_start; } public String getSalary_end() { return salary_end; } public void setSalary_end(String salary_end) { this.salary_end = salary_end; } public String getSalary_hour() { return salary_hour; } public void setSalary_hour(String salary_hour) { this.salary_hour = salary_hour; } public int getAge_start() { return age_start; } public void setAge_start(int age_start) { this.age_start = age_start; } public int getAge_end() { return age_end; } public void setAge_end(int age_end) { this.age_end = age_end; } public int getAdmin_id() { return admin_id; } public void setAdmin_id(int admin_id) { this.admin_id = admin_id; } public int getJob_id() { return job_id; } public void setJob_id(int job_id) { this.job_id = job_id; } public String getAge() { return age; } public void setAge(String age) { this.age = age; } public int getChat_id() { return chat_id; } public void setChat_id(int chat_id) { this.chat_id = chat_id; } public int getUser_id() { return user_id; } public void setUser_id(int user_id) { this.user_id = user_id; } public String getUser_avatar() { return user_avatar; } public void setUser_avatar(String user_avatar) { this.user_avatar = user_avatar; } public String getAdmin_name() { return admin_name; } public void setAdmin_name(String admin_name) { this.admin_name = admin_name; } public List<LabelArrBean> getLabel_arr() { return label_arr; } public void setLabel_arr(List<LabelArrBean> label_arr) { this.label_arr = label_arr; } public List<WordBean> getWord() { return word; } public void setWord(List<WordBean> word) { this.word = word; } public static class LabelArrBean { /** * label_name : 电子行业 */ private String label_name; public String getLabel_name() { return label_name; } public void setLabel_name(String label_name) { this.label_name = label_name; } } public static class WordBean { /** * id : 1 * word : 名企 * create_time : 2020-03-24 13:47:56 */ private int id; private String word; private String create_time; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getWord() { return word; } public void setWord(String word) { this.word = word; } public String getCreate_time() { return create_time; } public void setCreate_time(String create_time) { this.create_time = create_time; } } } }
[ "971679951@qq.com" ]
971679951@qq.com
07de77459f0e814ecd29ddac2341b55d688cbf83
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
/sources/com/avito/android/util/text/LegacyAttributedTextFormatter.java
2b9f782a0aac393cc5c126239b8800f6a18c374e
[]
no_license
Auch-Auch/avito_source
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
76fdcc5b7e036c57ecc193e790b0582481768cdc
refs/heads/master
2023-05-06T01:32:43.014668
2021-05-25T10:19:22
2021-05-25T10:19:22
370,650,685
0
0
null
null
null
null
UTF-8
Java
false
false
2,594
java
package com.avito.android.util.text; import android.text.Editable; import android.text.style.CharacterStyle; import com.avito.android.remote.auth.AuthSource; import com.avito.android.remote.model.text.AttributedText; import com.avito.android.util.TemplateFormatter; import java.util.Objects; import kotlin.Deprecated; import kotlin.Metadata; import kotlin.jvm.internal.Intrinsics; import kotlin.text.StringsKt__StringsKt; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @Deprecated(message = "Consider using AttributedTextFormatter along with DI") @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\r\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u000b\u0010\fJ\u0017\u0010\u0005\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0005\u0010\u0006R\u0016\u0010\n\u001a\u00020\u00078\u0002@\u0002X‚\u0004¢\u0006\u0006\n\u0004\b\b\u0010\t¨\u0006\r"}, d2 = {"Lcom/avito/android/util/text/LegacyAttributedTextFormatter;", "", "Lcom/avito/android/remote/model/text/AttributedText;", "attributedText", "", "format", "(Lcom/avito/android/remote/model/text/AttributedText;)Ljava/lang/CharSequence;", "Lcom/avito/android/util/TemplateFormatter;", AuthSource.SEND_ABUSE, "Lcom/avito/android/util/TemplateFormatter;", "templateFormatter", "<init>", "()V", "text-formatters_release"}, k = 1, mv = {1, 4, 2}) public final class LegacyAttributedTextFormatter { public final TemplateFormatter a = new TemplateFormatter(); public static final void access$setSpan(LegacyAttributedTextFormatter legacyAttributedTextFormatter, Editable editable, int i, String str, String str2, CharacterStyle characterStyle) { Objects.requireNonNull(legacyAttributedTextFormatter); editable.replace(i, str.length() + i, str2); editable.setSpan(characterStyle, i, str2.length() + i, 0); } @Nullable public final CharSequence format(@NotNull AttributedText attributedText) { Intrinsics.checkNotNullParameter(attributedText, "attributedText"); CharSequence format = this.a.format(attributedText.getText(), new LegacyAttributedTextFormatter$format$charSequence$1(this, attributedText)); if (StringsKt__StringsKt.contains$default(format, (CharSequence) "{{", false, 2, (Object) null) || StringsKt__StringsKt.contains$default(format, (CharSequence) "}}", false, 2, (Object) null)) { return null; } return format; } }
[ "auchhunter@gmail.com" ]
auchhunter@gmail.com
11a9790fe118cb9cc3565c79f58b6a5c2c69d767
dd4b50b6407479d4745317c04940f28380445165
/pac4j-core/src/main/java/org/pac4j/core/matching/Matcher.java
2c6dd56e62b19d0b5251989317273cc31365ebd3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
qmwu2000/pac4j
f3344b8204ac44a7ded0b53d03c45e1dab370dbb
7ec522cc7179c63014edfe1c0af3b2db1f006a3a
refs/heads/master
2021-01-17T06:36:52.321221
2016-03-05T08:41:13
2016-03-05T08:41:13
53,256,748
0
1
null
2016-03-06T13:41:42
2016-03-06T13:41:41
null
UTF-8
Java
false
false
221
java
package org.pac4j.core.matching; import org.pac4j.core.context.WebContext; /** * To match requests. * * @author Jerome Leleu * @since 1.8.1 */ public interface Matcher { boolean matches(WebContext context); }
[ "leleuj@gmail.com" ]
leleuj@gmail.com
62d1cc0db93f66abe26ef0e29770c5dcc4f51387
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/RxJava/2016/12/FlowableOnBackpressureErrorTest.java
fb0290b49030909820fce8ee176d63e1a2c9098c
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Java
false
false
1,816
java
/** * Copyright 2016 Netflix, Inc. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed to in writing, software distributed under the License is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See * the License for the specific language governing permissions and limitations under the License. */ package io.reactivex.internal.operators.flowable; import org.junit.Test; import org.reactivestreams.Publisher; import io.reactivex.*; import io.reactivex.functions.Function; public class FlowableOnBackpressureErrorTest { @Test public void dispose() { TestHelper.checkDisposed(Observable.just(1).toFlowable(BackpressureStrategy.ERROR)); } @Test public void badRequest() { TestHelper.assertBadRequestReported(Observable.just(1).toFlowable(BackpressureStrategy.ERROR)); } @Test public void doubleOnSubscribe() { TestHelper.checkDoubleOnSubscribeFlowable(new Function<Flowable<Object>, Publisher<Object>>() { @Override public Publisher<Object> apply(Flowable<Object> f) throws Exception { return new FlowableOnBackpressureError<Object>(f); } }); } @Test public void badSource() { TestHelper.<Integer>checkBadSourceFlowable(new Function<Flowable<Integer>, Object>() { @Override public Object apply(Flowable<Integer> f) throws Exception { return new FlowableOnBackpressureError<Integer>(f); } }, false, 1, 1, 1); } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
5eb806531d7b9184305328e8ed5347f14dd8b13d
16bd29d56e7c722f1f5fca21626b3359a40baf36
/arqoid/arqoid-module/src/main/java/com/hp/hpl/jena/sparql/pfunction/ProcedurePF.java
9d926f10a8a93acd0ed66d48e34c043ed6f5af5d
[ "Apache-2.0" ]
permissive
william-vw/android-reasoning
948d6a39372e29e5eff8c4851899d4dfc986ca62
eb1668b88207a8e3a174361562efa066f2c75978
refs/heads/master
2023-02-07T20:50:25.015940
2023-01-24T19:26:37
2023-01-24T19:26:37
138,166,750
1
1
null
null
null
null
UTF-8
Java
false
false
3,394
java
/* * (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP * All rights reserved. * [See end of file] */ package com.hp.hpl.jena.sparql.pfunction; import com.hp.hpl.jena.graph.Node; import com.hp.hpl.jena.sparql.engine.ExecutionContext; import com.hp.hpl.jena.sparql.engine.QueryIterator; import com.hp.hpl.jena.sparql.expr.ExprList; import com.hp.hpl.jena.sparql.procedure.Procedure; import com.hp.hpl.jena.sparql.serializer.SerializationContext; import com.hp.hpl.jena.sparql.util.FmtUtils; import com.hp.hpl.jena.sparql.util.IndentedWriter; import com.hp.hpl.jena.sparql.util.PrintSerializableBase; /** Adapter between property functions and server procedures * When called, this wrapper reconstructs the usual property function calling conventions. * * @author Andy Seaborne */ public class ProcedurePF extends PrintSerializableBase implements Procedure { private PropertyFunction propFunc ; private PropFuncArg subjArg ; private PropFuncArg objArg ; private Node pfNode ; public ProcedurePF(PropertyFunction propFunc, PropFuncArg subjArg, Node pfNode, PropFuncArg objArg) { this.propFunc = propFunc ; this.subjArg = subjArg ; this.pfNode = pfNode ; this.objArg = objArg ; } // Procedure interface public QueryIterator proc(QueryIterator input, ExecutionContext execCxt) { return propFunc.exec(input, subjArg, pfNode, objArg, execCxt) ; } public void build(Node procId, ExprList args, ExecutionContext execCxt) {} public void output(IndentedWriter out, SerializationContext sCxt) { out.print("ProcedurePF ["+FmtUtils.stringForNode(pfNode, sCxt)+"]") ; out.print("[") ; subjArg.output(out, sCxt) ; out.print("][") ; objArg.output(out, sCxt) ; out.print("]") ; out.println() ; } } /* * (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
[ "william.van.woensel@gmail.com" ]
william.van.woensel@gmail.com
6d8a13e8f766393121d4dbad95d5cce29bf63959
de3c2d89f623527b35cc5dd936773f32946025d2
/src/main/java/net/lucode/hackware/magicindicator/buildins/commonnavigator/indicators/BezierPagerIndicator.java
79180bab69b260e19c8aaf47272f375190851374
[]
no_license
ren19890419/lvxing
5f89f7b118df59fd1da06aaba43bd9b41b5da1e6
239875461cb39e58183ac54e93565ec5f7f28ddb
refs/heads/master
2023-04-15T08:56:25.048806
2020-06-05T10:46:05
2020-06-05T10:46:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,833
java
package net.lucode.hackware.magicindicator.buildins.commonnavigator.indicators; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Paint.Style; import android.graphics.Path; import android.view.View; import android.view.animation.AccelerateInterpolator; import android.view.animation.DecelerateInterpolator; import android.view.animation.Interpolator; import java.util.Arrays; import java.util.List; import net.lucode.hackware.magicindicator.FragmentContainerHelper; import net.lucode.hackware.magicindicator.buildins.ArgbEvaluatorHolder; import net.lucode.hackware.magicindicator.buildins.UIUtil; import net.lucode.hackware.magicindicator.buildins.commonnavigator.p695a.IPagerIndicator; import net.lucode.hackware.magicindicator.buildins.commonnavigator.p696b.PositionData; public class BezierPagerIndicator extends View implements IPagerIndicator { /* renamed from: a */ private List<PositionData> f28124a; /* renamed from: b */ private float f28125b; /* renamed from: c */ private float f28126c; /* renamed from: d */ private float f28127d; /* renamed from: e */ private float f28128e; /* renamed from: f */ private float f28129f; /* renamed from: g */ private float f28130g; /* renamed from: h */ private float f28131h; /* renamed from: i */ private Paint f28132i; /* renamed from: j */ private Path f28133j = new Path(); /* renamed from: k */ private List<Integer> f28134k; /* renamed from: l */ private Interpolator f28135l = new AccelerateInterpolator(); /* renamed from: m */ private Interpolator f28136m = new DecelerateInterpolator(); /* renamed from: a */ public void mo20768a(int i) { } /* renamed from: b */ public void mo20771b(int i) { } public BezierPagerIndicator(Context context) { super(context); m35685a(context); } /* renamed from: a */ private void m35685a(Context context) { this.f28132i = new Paint(1); this.f28132i.setStyle(Style.FILL); this.f28130g = (float) UIUtil.m35640a(context, 3.5d); this.f28131h = (float) UIUtil.m35640a(context, 2.0d); this.f28129f = (float) UIUtil.m35640a(context, 1.5d); } /* access modifiers changed from: protected */ public void onDraw(Canvas canvas) { canvas.drawCircle(this.f28126c, (((float) getHeight()) - this.f28129f) - this.f28130g, this.f28125b, this.f28132i); canvas.drawCircle(this.f28128e, (((float) getHeight()) - this.f28129f) - this.f28130g, this.f28127d, this.f28132i); m35686a(canvas); } /* renamed from: a */ private void m35686a(Canvas canvas) { this.f28133j.reset(); float height = (((float) getHeight()) - this.f28129f) - this.f28130g; this.f28133j.moveTo(this.f28128e, height); this.f28133j.lineTo(this.f28128e, height - this.f28127d); Path path = this.f28133j; float f = this.f28128e; float f2 = this.f28126c; path.quadTo(f + ((f2 - f) / 2.0f), height, f2, height - this.f28125b); this.f28133j.lineTo(this.f28126c, this.f28125b + height); Path path2 = this.f28133j; float f3 = this.f28128e; path2.quadTo(((this.f28126c - f3) / 2.0f) + f3, height, f3, this.f28127d + height); this.f28133j.close(); canvas.drawPath(this.f28133j, this.f28132i); } /* renamed from: a */ public void mo20769a(int i, float f, int i2) { List<PositionData> list = this.f28124a; if (list != null && !list.isEmpty()) { List<Integer> list2 = this.f28134k; if (list2 != null && list2.size() > 0) { this.f28132i.setColor(ArgbEvaluatorHolder.m35639a(f, ((Integer) this.f28134k.get(Math.abs(i) % this.f28134k.size())).intValue(), ((Integer) this.f28134k.get(Math.abs(i + 1) % this.f28134k.size())).intValue())); } PositionData a = FragmentContainerHelper.m35616a(this.f28124a, i); PositionData a2 = FragmentContainerHelper.m35616a(this.f28124a, i + 1); float f2 = (float) (a.f28116a + ((a.f28118c - a.f28116a) / 2)); float f3 = ((float) (a2.f28116a + ((a2.f28118c - a2.f28116a) / 2))) - f2; this.f28126c = (this.f28135l.getInterpolation(f) * f3) + f2; this.f28128e = f2 + (f3 * this.f28136m.getInterpolation(f)); float f4 = this.f28130g; this.f28125b = f4 + ((this.f28131h - f4) * this.f28136m.getInterpolation(f)); float f5 = this.f28131h; this.f28127d = f5 + ((this.f28130g - f5) * this.f28135l.getInterpolation(f)); invalidate(); } } /* renamed from: a */ public void mo20770a(List<PositionData> list) { this.f28124a = list; } public float getMaxCircleRadius() { return this.f28130g; } public void setMaxCircleRadius(float f) { this.f28130g = f; } public float getMinCircleRadius() { return this.f28131h; } public void setMinCircleRadius(float f) { this.f28131h = f; } public float getYOffset() { return this.f28129f; } public void setYOffset(float f) { this.f28129f = f; } public void setColors(Integer... numArr) { this.f28134k = Arrays.asList(numArr); } public void setStartInterpolator(Interpolator interpolator) { this.f28135l = interpolator; if (this.f28135l == null) { this.f28135l = new AccelerateInterpolator(); } } public void setEndInterpolator(Interpolator interpolator) { this.f28136m = interpolator; if (this.f28136m == null) { this.f28136m = new DecelerateInterpolator(); } } }
[ "593746220@qq.com" ]
593746220@qq.com
10773a02fef870e3c19ab8249111f66ae0e6322a
20eb62855cb3962c2d36fda4377dfd47d82eb777
/IntroClassJava/dataset/grade/fe9d5fb933c758c2cbbd859e3ecbd2d2eaecc2843b57cfd97da99af24de59f189a144d13ce81ec585d7c2f7367f70c0fb2aec8269eed1fd8380def614817ef7c/003/mutations/112/grade_fe9d5fb9_003.java
a6cf94882ec66832d6434a1f4387b883d8f20693
[]
no_license
ozzydong/CapGen
356746618848065cce4e253e5d3c381baa85044a
0ba0321b6b1191443276021f1997833342f02515
refs/heads/master
2023-03-18T20:12:02.923428
2020-08-21T03:08:28
2020-08-21T03:08:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,576
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class grade_fe9d5fb9_003 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { grade_fe9d5fb9_003 mainClass = new grade_fe9d5fb9_003 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { FloatObj grade1 = new FloatObj (), grade2 = new FloatObj (), grade3 = new FloatObj (), grade4 = new FloatObj (), score = new FloatObj (); output += (String.format ("Enter thresholds for A, B, C, D\n")); if (true) return ; output += (String.format ("in that order, decreasing percentages > ")); grade1.value = scanner.nextFloat (); grade2.value = scanner.nextFloat (); grade3.value = scanner.nextFloat (); grade4.value = scanner.nextFloat (); output += (String.format ("Thank you. Now enter student score (percent) > ")); score.value = scanner.nextFloat (); if (score.value >= grade1.value) { output += (String.format ("Student has an A grade\n")); } else if (score.value >= grade2.value && score.value < grade1.value) { output += (String.format ("Student has a B grade\n")); } else if (score.value >= grade3.value && score.value < grade2.value) { output += (String.format ("Student has a C grade\n")); } else if (score.value >= grade4.value && score.value < grade3.value) { output += (String.format ("Student has a D grade\n")); } else { output += (String.format ("Student has failed the course\n")); } if (true) return;; } }
[ "justinwm@163.com" ]
justinwm@163.com
0d87fab89c5e06cb4ba2902390f1fa92fd69e333
7dd38abb6ff41d9b1dcd7801d9fd954e89d0932f
/java/src/com/mtsmda/java8/jsNashorn/Java8JS.java
d15d779e86f87337684ea6ce71468480a5621ea2
[]
no_license
akbars95SM/job
f25035fb2e979e7d8a1e0c1b01246a6b2c32991f
c86b284355ccdbb1dea4a40c587d6936af7dcee4
refs/heads/master
2016-09-06T11:46:17.505985
2016-01-28T11:57:33
2016-01-28T11:58:07
42,805,173
0
0
null
null
null
null
UTF-8
Java
false
false
653
java
package com.mtsmda.java8.jsNashorn; import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; public class Java8JS { public static void main(String[] args) { ScriptEngineManager scriptEngineManager = new ScriptEngineManager(); ScriptEngine engineByName = scriptEngineManager.getEngineByName("nashorn"); String name = "Mahesh"; Integer result = null; try{ engineByName.eval("print('" + name + "')"); result = (Integer) engineByName.eval("10 + 2"); } catch(Exception e){ System.out.println(e.getMessage() + "______ " + e.getClass().getName()); } System.out.println("result = " + result); } }
[ "mynzat.dmitrii@gmail.com" ]
mynzat.dmitrii@gmail.com
ce6ce3da5c06f6091986d1934d0707d11eed0ac3
0c84263b56e4e138bbe1d6586f81b9bf90f0bfaf
/fabric/ios-mopub/src/main/java/org/robovm/pods/fabric/mopub/MPRewardedVideoDelegateAdapter.java
a308d3073b1438a88944a447c901f8c96f89d9f6
[]
no_license
florianf/robovm-robopods
34b8506fc53694f69d9305992a56f144c4b07dea
7736020669dee26be4068666fee3efc5dead3de3
refs/heads/master
2021-01-21T13:34:57.892861
2016-07-12T17:16:33
2016-07-12T17:16:33
62,055,591
3
0
null
2016-06-27T12:47:56
2016-06-27T12:47:55
null
UTF-8
Java
false
false
2,641
java
/* * Copyright (c) 2015, RoboVM AB. All Rights Reserved. * * Redistribution and use is subject to the RoboVM Software License terms * available at (http://robovm.com) * * This notice and attribution to RoboVM AB may not be removed. */ package org.robovm.pods.fabric.mopub; /*<imports>*/ import java.io.*; import java.nio.*; import java.util.*; import org.robovm.objc.*; import org.robovm.objc.annotation.*; import org.robovm.objc.block.*; import org.robovm.rt.*; import org.robovm.rt.annotation.*; import org.robovm.rt.bro.*; import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.corelocation.*; import org.robovm.apple.uikit.*; /*</imports>*/ /*<javadoc>*/ /*</javadoc>*/ /*<annotations>*//*</annotations>*/ /*<visibility>*/public/*</visibility>*/ class /*<name>*/MPRewardedVideoDelegateAdapter/*</name>*/ extends /*<extends>*/NSObject/*</extends>*/ /*<implements>*/implements MPRewardedVideoDelegate/*</implements>*/ { /*<ptr>*/ /*</ptr>*/ /*<bind>*/ /*</bind>*/ /*<constants>*//*</constants>*/ /*<constructors>*//*</constructors>*/ /*<properties>*/ /*</properties>*/ /*<members>*//*</members>*/ /*<methods>*/ @NotImplemented("rewardedVideoAdDidLoadForAdUnitID:") public void didLoad(String adUnitID) {} @NotImplemented("rewardedVideoAdDidFailToLoadForAdUnitID:error:") public void didFailToLoadAd(String adUnitID, NSError error) {} @NotImplemented("rewardedVideoAdDidExpireForAdUnitID:") public void didExpire(String adUnitID) {} @NotImplemented("rewardedVideoAdDidFailToPlayForAdUnitID:error:") public void didFailToPlayAd(String adUnitID, NSError error) {} @NotImplemented("rewardedVideoAdWillAppearForAdUnitID:") public void willAppear(String adUnitID) {} @NotImplemented("rewardedVideoAdDidAppearForAdUnitID:") public void didAppear(String adUnitID) {} @NotImplemented("rewardedVideoAdWillDisappearForAdUnitID:") public void willDisappear(String adUnitID) {} @NotImplemented("rewardedVideoAdDidDisappearForAdUnitID:") public void didDisappear(String adUnitID) {} @NotImplemented("rewardedVideoAdDidReceiveTapEventForAdUnitID:") public void didReceiveTapEvent(String adUnitID) {} @NotImplemented("rewardedVideoAdWillLeaveApplicationForAdUnitID:") public void willLeaveApplication(String adUnitID) {} @NotImplemented("rewardedVideoAdShouldRewardForAdUnitID:reward:") public void shouldReward(String adUnitID, MPRewardedVideoReward reward) {} /*</methods>*/ }
[ "blueriverteam@gmail.com" ]
blueriverteam@gmail.com
7ba312b3a7b5fe006d068271bd88bd42ee8d16a8
573a66e4f4753cc0f145de8d60340b4dd6206607
/JS-CS-Detection-byExample/Dataset (ALERT 5 GB)/362855/quickfix-1.7.0/quickfix-1.7.0/src/java/src/quickfix/field/NoUnderlyingStips.java
01d79f1332777ceb72e87bb853dd44623bf493dd
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
mkaouer/Code-Smells-Detection-in-JavaScript
3919ec0d445637a7f7c5f570c724082d42248e1b
7130351703e19347884f95ce6d6ab1fb4f5cfbff
refs/heads/master
2023-03-09T18:04:26.971934
2022-03-23T22:04:28
2022-03-23T22:04:28
73,915,037
8
3
null
2023-02-28T23:00:07
2016-11-16T11:47:44
null
UTF-8
Java
false
false
299
java
package quickfix.field; import quickfix.IntField; import java.util.Date; public class NoUnderlyingStips extends IntField { public static final int FIELD = 887; public NoUnderlyingStips() { super(887); } public NoUnderlyingStips(int data) { super(887, data); } }
[ "mmkaouer@umich.edu" ]
mmkaouer@umich.edu
f56e486bf77f821bbe218bdd093197f522bf4e62
55b93ddeb025281f1e5bdfa165cb5074ec622544
/graphsdk/src/main/java/com/microsoft/graph/extensions/GroupLifecyclePolicyRemoveGroupRequestBuilder.java
3944d5cf55f2bba7e92dc78fe29aa88d5c854751
[ "MIT" ]
permissive
Glennmen/msgraph-sdk-android
7c13e8367fb6cb7bb9a655860a4c14036601296b
cb774abbaa1abde0c63229a70256b3d97f212a3e
refs/heads/master
2020-03-30T15:56:29.622277
2018-10-03T09:07:00
2018-10-03T09:07:00
151,386,422
1
0
NOASSERTION
2018-10-03T09:03:00
2018-10-03T09:02:59
null
UTF-8
Java
false
false
1,502
java
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ package com.microsoft.graph.extensions; import com.microsoft.graph.concurrency.*; import com.microsoft.graph.core.*; import com.microsoft.graph.extensions.*; import com.microsoft.graph.http.*; import com.microsoft.graph.generated.*; import com.microsoft.graph.options.*; import com.microsoft.graph.serializer.*; import java.util.Arrays; import java.util.EnumSet; // This file is available for extending, afterwards please submit a pull request. /** * The class for the Group Lifecycle Policy Remove Group Request Builder. */ public class GroupLifecyclePolicyRemoveGroupRequestBuilder extends BaseGroupLifecyclePolicyRemoveGroupRequestBuilder implements IGroupLifecyclePolicyRemoveGroupRequestBuilder { /** * The request builder for this GroupLifecyclePolicyRemoveGroup * * @param requestUrl The request url * @param client The service client * @param requestOptions The options for this request */ public GroupLifecyclePolicyRemoveGroupRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List<Option> requestOptions, final String groupId) { super(requestUrl, client, requestOptions, groupId); } }
[ "caitbal@microsoft.com" ]
caitbal@microsoft.com
c17dc6219b34309b7633bf42fd9b14d3cc393369
fc7bb33acc394f34924563bb5ccdc2030dc56ad5
/vsat_2021_final_2.0/VsatIdService/src/main/java/com/elcom/id/model/dto/UserProfileDTO.java
235df1f049ea58f2919174f34f3ef5fbf002ba0c
[]
no_license
sweettime8/vsat_khaithac
9047eb85aa47d60d7193626762f624da0dacbe5c
7b1848fdec56d1a1b157cd92fbfc9ba6d248b281
refs/heads/main
2023-05-14T03:04:07.255873
2021-05-24T00:26:52
2021-05-24T00:26:52
370,185,351
0
0
null
null
null
null
UTF-8
Java
false
false
1,040
java
package com.elcom.id.model.dto; import java.io.Serializable; import java.util.List; /** * * @author ducnh */ public class UserProfileDTO implements Serializable { private static final long serialVersionUID = 1L; private String uuid; private String username; private String fullname; List<ListUserProfileDTO> lstUserProfile; public String getUuid() { return uuid; } public void setUuid(String uuid) { this.uuid = uuid; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getFullname() { return fullname; } public void setFullname(String fullname) { this.fullname = fullname; } public List<ListUserProfileDTO> getLstUserProfile() { return lstUserProfile; } public void setLstUserProfile(List<ListUserProfileDTO> lstUserProfile) { this.lstUserProfile = lstUserProfile; } }
[ "nghduc91@gmail.com" ]
nghduc91@gmail.com
cde9f1d583b65f2c3797ee659c6a60bdec389794
7970c7bad16ab75bbf2f69e56b079062c8e68ede
/Flowchart.java
8e532257161a3ebdc583773b8623a142c13df7b7
[]
no_license
shantinavgurukul/IfElseStatement
940d9ebc450811e01daa53f4403bca76df424857
6ab16015fdcdebd2770675a14586ba0d36409fbb
refs/heads/master
2020-12-11T17:14:23.735144
2020-01-14T18:38:30
2020-01-14T18:38:30
233,909,399
0
0
null
null
null
null
UTF-8
Java
false
false
237
java
package demoifelse; public class Flowchart { public static void main(String[] args) { int a = 5, b = 7; if (a > b) { System.out.println(" kya a se b chhota hain"); } else System.out.println(" kya b se a bada hain"); } }
[ "you@example.com" ]
you@example.com
e7a03dba397437a2a42fc12de96f5cb4e96b1eae
6baf1fe00541560788e78de5244ae17a7a2b375a
/hollywood/com.oculus.browser-base/sources/defpackage/C4357q90.java
a06c1bdf8c61697945f8e6d52894f0bfb383285e
[]
no_license
phwd/quest-tracker
286e605644fc05f00f4904e51f73d77444a78003
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
refs/heads/main
2023-03-29T20:33:10.959529
2021-04-10T22:14:11
2021-04-10T22:14:11
357,185,040
4
2
null
2021-04-12T12:28:09
2021-04-12T12:28:08
null
UTF-8
Java
false
false
629
java
package defpackage; import android.os.Parcel; import android.os.Parcelable; import androidx.preference.ListPreference; /* renamed from: q90 reason: default package and case insensitive filesystem */ /* compiled from: chromium-OculusBrowser.apk-stable-281887347 */ public final class C4357q90 implements Parcelable.Creator { @Override // android.os.Parcelable.Creator public Object createFromParcel(Parcel parcel) { return new ListPreference.SavedState(parcel); } @Override // android.os.Parcelable.Creator public Object[] newArray(int i) { return new ListPreference.SavedState[i]; } }
[ "cyuubiapps@gmail.com" ]
cyuubiapps@gmail.com
8fbff5c76b91425b86ed0411722799ab47001f0a
5bb09e01494eb9708716ff125f325277aafefed8
/sabot/kernel/src/main/java/com/dremio/exec/planner/sql/handlers/refresh/FileSystemPartitionValidator.java
a5fc068ba6b787f67143b39162346600cf56177b
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
scc-digitalhub/dremio-oss
968b373bf12976ad75fae47978a7dd4daeb1ae16
d41cb52143b6b0289fc8ed4d970bfcf410a669e8
refs/heads/master
2022-11-12T09:22:56.667116
2022-06-22T22:41:01
2022-06-22T22:41:01
187,240,816
1
3
Apache-2.0
2020-04-26T07:30:31
2019-05-17T15:31:00
Java
UTF-8
Java
false
false
1,359
java
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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.dremio.exec.planner.sql.handlers.refresh; import java.util.concurrent.atomic.AtomicInteger; import com.dremio.exec.planner.sql.parser.SqlRefreshDataset; import com.google.common.base.Preconditions; public class FileSystemPartitionValidator extends RefreshDatasetValidator { public FileSystemPartitionValidator(UnlimitedSplitsMetadataProvider metadataProvider) { super(metadataProvider); } @Override public void validate(SqlRefreshDataset sqlNode) { super.validate(sqlNode); AtomicInteger i = new AtomicInteger(); partitionValues.stream().forEach(x -> { Preconditions.checkArgument(x.getColumn().matches("dir" + i), "Input error. Expected partition dir" + i); i.getAndIncrement(); }); } }
[ "yongyan@dremio.com" ]
yongyan@dremio.com
ee3c344cc0d18f2bf197d915a7a28316b3f312e1
a2a79783b7b5464e8c1593dd3d2c076c2648fe79
/src/main/java/it/algos/wiki/request/QueryWriteTitle.java
8978b3fff673ee2a687d5b83d7614eb618baca7a
[]
no_license
algos-soft/vaadwiki
289341a1e57223ee1f6371cc09485bbf6214b9ff
1b3639cc8a384a6ddd7f3ca66a745b595c59ba40
refs/heads/master
2023-06-22T20:23:39.777104
2022-04-05T19:04:25
2022-04-05T19:04:25
151,759,582
0
0
null
2023-06-14T22:22:15
2018-10-05T18:02:13
Java
UTF-8
Java
false
false
1,616
java
package it.algos.wiki.request; import it.algos.wiki.WikiLoginOld; import java.net.URLEncoder; /** * Query standard per scrivere il contenuto di una pagina * Usa il titolo della pagina * Necessita di Login per scrivere */ public class QueryWriteTitle extends QueryWrite { /** * Costruttore * Rinvia al costruttore completo */ public QueryWriteTitle(String title, String testoNew) { this(title, testoNew, ""); }// fine del metodo costruttore /** * Costruttore * Rinvia al costruttore completo */ public QueryWriteTitle(String title, String testoNew, String summary) { this(title, testoNew, summary, null); }// fine del metodo costruttore /** * Costruttore completo * Rinvia al costruttore della superclasse */ public QueryWriteTitle(String title, String testoNew, String summary, WikiLoginOld login) { super(title, testoNew, summary, login); }// fine del metodo costruttore /** * Costruisce la stringa della request * Domain per l'URL dal titolo della pagina o dal pageid (a seconda del costruttore usato) * * @return domain */ @Override protected String getDomain() { String domain = ""; String titolo = ""; try { // prova ad eseguire il codice titolo = URLEncoder.encode(title, "UTF-8"); } catch (Exception unErrore) { // intercetta l'errore }// fine del blocco try-catch domain = API_BASE + TAG_EDIT + TAG_PROP + TAG_TITOLO + titolo; return domain; } // fine del metodo }// end of class
[ "gac@algos.it" ]
gac@algos.it
ce4a22f4201d4492a475d850bf1361298d4354cb
93249ac332c0f24bf7642caa21f27058ba99189b
/core/plugins/org.csstudio.security.ui/src/org/csstudio/security/ui/PasswordFieldEditor.java
fed8321555690d341d0906f1dc7d9b5de98319a2
[]
no_license
crispd/cs-studio
0678abd0db40f024fbae4420eeda87983f109382
32dd49d1eb744329dc1083b4ba30b65155000ffd
refs/heads/master
2021-01-17T23:59:55.878433
2014-06-20T17:55:02
2014-06-20T17:55:02
21,135,201
1
0
null
null
null
null
UTF-8
Java
false
false
5,566
java
/******************************************************************************* * Copyright (c) 2013 Oak Ridge National Laboratory. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html ******************************************************************************/ package org.csstudio.security.ui; import java.util.logging.Level; import java.util.logging.Logger; import org.csstudio.security.preferences.SecurePreferences; import org.eclipse.equinox.security.storage.ISecurePreferences; import org.eclipse.jface.preference.FieldEditor; import org.eclipse.swt.SWT; import org.eclipse.swt.events.DisposeEvent; import org.eclipse.swt.events.DisposeListener; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Text; /** Preference editor for 'passwords' * * <p>If no secure preference is set, read the 'normal' preference. * The 'default' value is also fetched from the normal preference store, * to allow setting a default in plugin_custommization.ini etc. * Entered passwords, however, are always writes to the secure preference store. * * <p>Corollary: You should use {@link SecurePreferences} resp. * {@link ISecurePreferences} to read preferences, * falling back to the normal preference store when * nothing found in the secure store. * * <p>Hides the actual text, uses secure preference store. * * TODO Check on Linux if copy/paste allows users to peek passwords. * * @author Kay Kasemir * @author Xihui Chen - Original org.csstudio.auth.ui.security.PasswordFieldEditor */ @SuppressWarnings("nls") public class PasswordFieldEditor extends FieldEditor { // Based on Eclipse 3.7.2 StringFieldEditor private ISecurePreferences preferences; private Text textField; private String oldValue; /** Initialize * @param plugin_id Plugin ID used to locate preferences * @param key Preference key * @param label GUI Label * @param parent Parent widget */ public PasswordFieldEditor(final String plugin_id, final String key, final String label, final Composite parent) { super(key, label, parent); try { preferences = SecurePreferences.getSecurePreferences().node(plugin_id); } catch (Exception ex) { Logger.getLogger(getClass().getName()) .log(Level.WARNING, "Cannot access preferences", ex); } } /** {@inheritDoc} */ @Override public int getNumberOfControls() { return 2; } /** {@inheritDoc} */ @Override protected void adjustForNumColumns(final int numColumns) { final GridData gd = (GridData) textField.getLayoutData(); gd.horizontalSpan = numColumns - 1; // We only grab excess space if we have to // If another field editor has more columns then // we assume it is setting the width. gd.grabExcessHorizontalSpace = gd.horizontalSpan == 1; } /** {@inheritDoc} */ @Override protected void doFillIntoGrid(final Composite parent, final int numColumns) { getLabelControl(parent); textField = new Text(parent, SWT.BORDER | SWT.PASSWORD); textField.setFont(parent.getFont()); final GridData gd = new GridData(); gd.horizontalSpan = numColumns - 1; gd.horizontalAlignment = GridData.FILL; gd.grabExcessHorizontalSpace = true; textField.setLayoutData(gd); textField.addDisposeListener(new DisposeListener() { @Override public void widgetDisposed(DisposeEvent e) { textField = null; } }); } /** {@inheritDoc} */ @Override protected void doLoad() { if (textField == null) return; try { oldValue = preferences.get(getPreferenceName(), null); if (oldValue == null) oldValue = getPreferenceStore().getString(getPreferenceName()); if (oldValue == null) oldValue = ""; textField.setText(oldValue); } catch (Throwable ex) { getPage().setErrorMessage("Cannot read " + getPreferenceName()); Logger.getLogger(getClass().getName()) .log(Level.WARNING, "Cannot read preferences", ex); } } /** {@inheritDoc} */ @Override protected void doLoadDefault() { if (textField == null) return; // Load default from ordinary preferences oldValue = getPreferenceStore().getDefaultString(getPreferenceName()); if (oldValue == null) oldValue = ""; textField.setText(oldValue); // Remove what might be in secure preferences, // since that would be used instead of the default that // was just requested try { preferences.put(getPreferenceName(), null, false); preferences.flush(); } catch (Throwable ex) { getPage().setErrorMessage("Cannot clear value for " + getPreferenceName()); Logger.getLogger(getClass().getName()) .log(Level.WARNING, "Cannot clear value for " + getPreferenceName(), ex); } } /** {@inheritDoc} */ @Override protected void doStore() { if (textField.getText().equals(oldValue)) return; try { preferences.put(getPreferenceName(), textField.getText(), true); preferences.flush(); } catch (Throwable ex) { getPage().setErrorMessage("Cannot write " + getPreferenceName()); Logger.getLogger(getClass().getName()) .log(Level.WARNING, "Cannot write preferences", ex); } } }
[ "kasemirk@ornl.gov" ]
kasemirk@ornl.gov
789a9fc22af8684e27983e42d3d6a3c233d3a47e
41e64f80dafe6d99e3f36cb7cc13810c54f10a01
/src/com/aneedo/search/bean/QueryFacetDetail.java
81d6b7e9cc59c50b6cdb4e057385926542eb1fdd
[]
no_license
vishwajeetkumar93/QAssist
f8796a8202da3e2131df3f1692d4ceb42ab64137
a1ac3e99e30a17b79ad115ad986a8ce2a2131102
refs/heads/master
2021-05-03T18:08:40.331118
2012-05-24T12:12:47
2012-05-24T12:12:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
353
java
package com.aneedo.search.bean; public class QueryFacetDetail { String facet; Boolean isRelevant; public String getFacet() { return facet; } public void setFacet(String facet) { this.facet = facet; } public Boolean IsRelevant() { return isRelevant; } public void setRelevant(Boolean isRelevant) { this.isRelevant = isRelevant; } }
[ "kulashish@gmail.com" ]
kulashish@gmail.com
348661d6c8964dcd318c981c0e1c6926254c9a6b
a1154942ff165fafbc3d037d22708ddd35b49e95
/src/stock/bo/StockUtil.java
185aa94d1cf304064353ad2e6c03e34dcc42ea35
[]
no_license
renjie120/myMoneyProject
2eeea647ca6575b56e8dae210ed1a111885fabd8
5eea5e5639b4519c3b7c02ee069285531df05213
refs/heads/master
2021-01-02T23:03:03.952671
2013-02-23T01:06:12
2013-02-23T01:06:12
null
0
0
null
null
null
null
GB18030
Java
false
false
7,242
java
package stock.bo; import java.util.Date; import myOwnLibrary.util.Util; import stock.pojo.StockConfigVO; import stock.pojo.StockHolderOnVO; import stock.pojo.StockVO; import stock.dao.StockDao; /** * 关于股票的持有信息的运算类。 * 包括:开仓(新增股票),清仓(卖出股票),加仓,减仓等 * @author renjie120 419723443@qq.com * */ public class StockUtil { public static void main(String[] a){ StockHolderOnVO stockHolderOnVO = new StockHolderOnVO(); StockConfigVO buyConfig = new StockConfigVO(1,0.001,0,5); StockConfigVO sellConfig = new StockConfigVO(2,0.001,0.001,5); StockVO stockVO = new StockVO("test","test",13.18,1200,new Date()); StockUtil.bindStockConfig(stockVO, buyConfig); stockHolderOnVO = StockUtil.addStock(stockHolderOnVO, stockVO); StockVO stockVO2 = new StockVO("test","test",13.97,400,new Date()); StockUtil.bindStockConfig(stockVO2, sellConfig); stockHolderOnVO = StockUtil.reduceStock(stockHolderOnVO, stockVO2); StockVO stockVO3 = new StockVO("test","test",14.15,400,new Date()); StockUtil.bindStockConfig(stockVO3, sellConfig); stockHolderOnVO = StockUtil.reduceStock(stockHolderOnVO, stockVO3); StockVO stockVO4 = new StockVO("test","test",14.20,400,new Date()); StockUtil.bindStockConfig(stockVO4, sellConfig); System.out.println(StockUtil.reduceStock(stockHolderOnVO, stockVO4)); } /** * 设置费率 * @param stockVO * @param config */ public static void bindStockConfig(StockVO stockVO,StockConfigVO config){ double buyPrice = stockVO.getDealPrice(); int buyNum = stockVO.getDealStockNum(); double marketMoney = Util.multiply(buyPrice, buyNum); double stockFee= Util.multiply(marketMoney, config.getStockFee()); stockFee = stockFee>config.getMinFee()?stockFee:config.getMinFee(); double taxFee = Util.multiply(marketMoney, config.getTaxFee()); //设置交易手续费 stockVO.setDealFee(stockFee); //设置印花税 stockVO.setDealTax(taxFee); } /** * 买入股票 * @param stockHolderOnVO * @param stockVO * @return */ public static StockHolderOnVO addStock(StockHolderOnVO stockHolderOnVO,StockVO stockVO){ double buyPrice = stockVO.getDealPrice(); int buyNum = stockVO.getDealStockNum(); //收益金额 double profitMoney; //收益率 double profit; //买入纯价值 double marketMoney = Util.multiply(buyPrice, buyNum); //统计手续费 stockHolderOnVO.setDealFee(getDealFee(stockHolderOnVO,stockVO)); //统计印花税 stockHolderOnVO.setDealTax(getDealTax(stockHolderOnVO,stockVO)); //计算持有股数 stockHolderOnVO.setStockNum((int)Util.add(stockHolderOnVO.getStockNum(), stockVO.getDealStockNum())); //计算买入的股票全部成本 stockHolderOnVO.setCostMoney(Util.add(Util.add(Util.add(stockHolderOnVO.getCostMoney(), marketMoney),stockVO.getDealFee()),stockVO.getDealTax())); //计算买入的平均价格 stockHolderOnVO.setCostPrice(Util.divide(stockHolderOnVO.getCostMoney(),stockHolderOnVO.getStockNum() ,4)); //计算市场价格 stockHolderOnVO.setRealPrice(stockVO.getDealPrice()); //计算市场价值 stockHolderOnVO.setMarketMoney(Util.multiply(stockVO.getDealPrice(), stockHolderOnVO.getStockNum())); //如果持有股票信息中的买入时间为空,说明是新建仓的股票!要设置第一次买入时间! if(stockHolderOnVO.getFitstBuyTime()==null){ //设置建仓时间,股票号码,股票名称 stockHolderOnVO.setFitstBuyTime(stockVO.getDealTime()); stockHolderOnVO.setDealType(StockDao.BUY); stockHolderOnVO.setStockCode(stockVO.getDealStockCode()); stockHolderOnVO.setStockName(stockVO.getDealStockName()); //建仓的收益金额就是损失的手续费和印花税!! profitMoney = 0.0-stockHolderOnVO.getDealFee()-stockHolderOnVO.getDealTax(); } else{ profitMoney = Util.subtract(stockHolderOnVO.getMarketMoney(),stockHolderOnVO.getCostMoney()); } profit = Util.divide(profitMoney, stockHolderOnVO.getCostMoney(),4); stockHolderOnVO.setProfit(profit); stockHolderOnVO.setProfitMoney(profitMoney); return stockHolderOnVO; } /** * 卖出股票 * @param stockHolderOnVO * @param stockVO * @return */ public static StockHolderOnVO reduceStock(StockHolderOnVO stockHolderOnVO,StockVO stockVO){ double sellPrice = stockVO.getDealPrice(); int sellNum = stockVO.getDealStockNum(); //卖出价值 double marketMoney = Util.multiply(sellNum, sellPrice); //统计手续费 stockHolderOnVO.setDealFee(getDealFee(stockHolderOnVO,stockVO)); //统计印花税 stockHolderOnVO.setDealTax(getDealTax(stockHolderOnVO,stockVO)); //计算股数 stockHolderOnVO.setStockNum((int)Util.subtract(stockHolderOnVO.getStockNum(), stockVO.getDealStockNum())); //收益金额: 持仓市场价值-持仓的股票成本 double profitMoney; //收益率 double profit; //如果剩余股票数目为0,说明已经全部卖出去了.设置卖出时间, if(stockHolderOnVO.getStockNum()==0){ stockHolderOnVO.setSellTime(stockVO.getDealTime()); stockHolderOnVO.setDealType(StockDao.SELL); //清仓情况下,股票的成本: 已经持有的成本+手续费+印花税 stockHolderOnVO.setCostMoney(Util.add(Util.add(stockHolderOnVO.getCostMoney(), stockVO.getDealFee()),stockVO.getDealTax())); //计算持有股票的平均价格: 持仓股票的成本/卖出的股数 stockHolderOnVO.setCostPrice(Util.divide(stockHolderOnVO.getCostMoney(),stockVO.getDealStockNum() ,4)); //计算持仓股票的市场价值: 市场价格*卖出的股数 stockHolderOnVO.setMarketMoney(Util.multiply(stockVO.getDealPrice(), stockVO.getDealStockNum())); } else{ //计算持仓的股票的成本: 已经持有的成本-卖出的市场价值+手续费+印花税 stockHolderOnVO.setCostMoney(Util.add(Util.add(Util.subtract(stockHolderOnVO.getCostMoney(), marketMoney),stockVO.getDealFee()),stockVO.getDealTax())); //计算持有股票的平均价格: 持仓股票的成本/持有股数 stockHolderOnVO.setCostPrice(Util.divide(stockHolderOnVO.getCostMoney(),stockHolderOnVO.getStockNum() ,4)); //计算持仓股票的市场价值: 市场价格*持有股数 stockHolderOnVO.setMarketMoney(Util.multiply(stockVO.getDealPrice(), stockHolderOnVO.getStockNum())); } profitMoney =Util.subtract(stockHolderOnVO.getMarketMoney(),stockHolderOnVO.getCostMoney()); profit = Util.divide(profitMoney, stockHolderOnVO.getCostMoney(),4); stockHolderOnVO.setSellTime(stockVO.getDealTime()); stockHolderOnVO.setProfit(profit); stockHolderOnVO.setProfitMoney(profitMoney); stockHolderOnVO.setRealPrice(stockVO.getDealPrice()); return stockHolderOnVO; } /** * 计算交易的手续费 * @param stockHolderOnVO * @param stockVO * @return */ private static double getDealFee(StockHolderOnVO stockHolderOnVO,StockVO stockVO){ return Util.add(stockHolderOnVO.getDealFee(), stockVO.getDealFee()); } /** * 计算交易的印花税 * @param stockHolderOnVO * @param stockVO * @return */ private static double getDealTax(StockHolderOnVO stockHolderOnVO,StockVO stockVO){ return Util.add(stockHolderOnVO.getDealTax(), stockVO.getDealTax()); } }
[ "lishuiqing110@163.com" ]
lishuiqing110@163.com
a8a5e34b5d885308c678e568abc3d575bf7a5f97
15d55ff9cddff64dd1460b0134d98803adac2f44
/gulimall-member/src/main/java/cn/lxtkj/gulimall/member/service/impl/MemberStatisticsInfoServiceImpl.java
de39f8b8e8c18440ac6d9f75dbc7df43a3dc2032
[ "Apache-2.0" ]
permissive
leiphp/gulimall
b70bb4ac62b09bca61b5d321240ad4018401ab4c
6c53e6db69444cac73899f97e1d5c47b8d5fb43a
refs/heads/master
2023-08-22T22:14:29.676944
2021-10-18T09:42:47
2021-10-18T09:42:47
394,718,467
0
0
null
null
null
null
UTF-8
Java
false
false
1,109
java
package cn.lxtkj.gulimall.member.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import cn.lxtkj.common.utils.PageUtils; import cn.lxtkj.common.utils.Query; import cn.lxtkj.gulimall.member.dao.MemberStatisticsInfoDao; import cn.lxtkj.gulimall.member.entity.MemberStatisticsInfoEntity; import cn.lxtkj.gulimall.member.service.MemberStatisticsInfoService; @Service("memberStatisticsInfoService") public class MemberStatisticsInfoServiceImpl extends ServiceImpl<MemberStatisticsInfoDao, MemberStatisticsInfoEntity> implements MemberStatisticsInfoService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<MemberStatisticsInfoEntity> page = this.page( new Query<MemberStatisticsInfoEntity>().getPage(params), new QueryWrapper<MemberStatisticsInfoEntity>() ); return new PageUtils(page); } }
[ "657106593@qq.com" ]
657106593@qq.com
6b69bba86e087c9cc2c49a010c181717e1371bee
24fae99a278e8022b3944908a4db05b3d3148551
/sources/com/google/firebase/auth/GetTokenResult.java
ba85250e4ab72cf1ec7258f89a3d1ecdfd43d7fd
[]
no_license
bigmanstan/FurniAR-college-Minor-project
53cad4bc90d65aadcb76613ba386306672cfd011
3ceba7e1fcaf5e847e3a72dd92712c308d484189
refs/heads/master
2020-05-26T03:04:18.538119
2019-05-26T12:33:47
2019-05-26T12:33:47
188,084,904
3
0
null
null
null
null
UTF-8
Java
false
false
1,153
java
package com.google.firebase.auth; import android.support.annotation.Nullable; import com.google.android.gms.common.annotation.KeepForSdk; import java.util.Map; public class GetTokenResult { private String zza; private Map<String, Object> zzb; @KeepForSdk public GetTokenResult(String token, Map<String, Object> claims) { this.zza = token; this.zzb = claims; } @Nullable public String getToken() { return this.zza; } public long getExpirationTimestamp() { return zza("exp"); } public long getAuthTimestamp() { return zza("auth_time"); } public long getIssuedAtTimestamp() { return zza("iat"); } @Nullable public String getSignInProvider() { Map map = (Map) this.zzb.get("firebase"); if (map != null) { return (String) map.get("sign_in_provider"); } return null; } public Map<String, Object> getClaims() { return this.zzb; } private long zza(String str) { Integer num = (Integer) this.zzb.get(str); return num == null ? 0 : num.longValue(); } }
[ "theonlyrealemailid@gmail.com" ]
theonlyrealemailid@gmail.com
4c2d68be5dd17859746cd69abba385b7e41341f2
187ccbd587dc6b946a4845d3fff353aa6838f6f1
/src/main/java/filescanner/library/Book.java
5e723e92e904b7f3e950d58100d9171c721d9c3c
[]
no_license
lippaitamas1021/training
dd1b52db60804ffeb1699254869393ffc7fa6e24
1f3f28d0286eff6798368b5c2a68b650046c3be1
refs/heads/master
2023-04-07T13:56:35.191872
2021-04-21T09:04:52
2021-04-21T09:04:52
345,300,131
0
0
null
null
null
null
UTF-8
Java
false
false
936
java
package filescanner.library; public class Book { private int registrationNumber; private String author; private String title; private int year; public Book(int registrationNumber, String author, String title, int year) { this.registrationNumber = registrationNumber; this.author = author; this.title = title; this.year = year; } public int getRegistrationNumber() { return registrationNumber; } public String getAuthor() { return author; } public String getTitle() { return title; } public int getYear() { return year; } @Override public String toString() { return "Book{" + "registrationNumber=" + registrationNumber + ", author='" + author + '\'' + ", title='" + title + '\'' + ", year=" + year + '}'; } }
[ "lippaitamas1021@gmail.com" ]
lippaitamas1021@gmail.com
c3f0076ab27a888d77ffa464a1ecc79ee5db8984
fe2247685ec1a2d37015132232e8b0eecc1e6308
/src/main/java/warmer/star/blog/util/QiniuFileQueryItem.java
698afacbac0e9080327161c800d2acc722c1b614
[]
no_license
MiracleTanC/warmerblog
24a957767c2f4394a9e2e7df1732f4790a690915
df8888e35f053f7d8d8ac88878ff16efe99a3716
refs/heads/master
2023-05-11T10:30:54.427053
2022-04-06T00:50:12
2022-04-06T00:50:12
144,241,594
57
27
null
2023-04-29T02:05:11
2018-08-10T05:39:02
Java
UTF-8
Java
false
false
202
java
package warmer.star.blog.util; import lombok.Data; @Data public class QiniuFileQueryItem { private String marker; private int limit; private String prefix; private String delimiter; }
[ "1130196938@qq.com" ]
1130196938@qq.com
da33a3265b82b8b471e327c05dda152a4ba7583c
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/15/15_2f1d6bae69b5040cde4dffd7f4f0592e3946af53/Rational/15_2f1d6bae69b5040cde4dffd7f4f0592e3946af53_Rational_s.java
1c50e8fb4031622b80cd8bbe997a94aef8dd5c91
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
4,584
java
package org.plt.types; public class Rational implements Number { int n, d; public static Rational ZERO = new Rational(0, 1); public static Rational ONE = new Rational(1, 1); public Rational(int n, int d) { if (d == 0) { throw new IllegalArgumentException("denominator can't be zero."); } if (d < 0) { n = -n; d = -d; } int divisor = gcd(n, d); this.n = n / divisor; this.d = d / divisor; } public int numerator() { return this.n; } public int denominator() { return this.d; } public int toInt() { return n/d; } public FloatPoint toFloatPoint() { return (FloatPoint) FloatPoint.fromInt(n).numericDivide(FloatPoint.fromInt(d)); } public boolean numericGreaterThan(Number _other) { Rational other = (Rational) _other; return n * other.denominator() > d * other.numerator(); } public boolean numericLessThan(Number _other) { Rational other = (Rational) _other; return n * other.denominator() < d * other.numerator(); } public boolean numericEqual(Number _other) { Rational other = (Rational) _other; return n * other.denominator() == d * other.numerator(); } public Number numericPlus(Number _other) { Rational other = (Rational) _other; return new Rational(n * other.denominator() + d * other.numerator(), d * other.denominator()); } public Number numericMinus(Number _other) { Rational other = (Rational) _other; return new Rational(n * other.denominator() - d * other.numerator(), d * other.denominator()); } public Number numericMultiply(Number _other) { Rational other = (Rational) _other; return new Rational(n * other.numerator(), d * other.denominator()); } public Number numericDivide(Number _other) { Rational other = (Rational) _other; return new Rational(n * other.denominator(), d * other.numerator()); } public Number abs() { return new Rational(n < 0 ? -n : n, d); } public Number sqrt() { return ((FloatPoint) this.toFloatPoint()).sqrt(); } public Number modulo(Number other) { if (!this.isInteger()) { throw new RuntimeException ("modulo expects integer as first argument"); } if (! other.isInteger()) { throw new RuntimeException ("modulo expects integer as second argument"); } int result = this.toInt() % other.toInt(); if (result < 0) { return new Rational(result + other.toInt(), 1); } else { return new Rational(result, 1); } } public boolean isInteger() { return this.d == 1; } public boolean isZero() { return this.n == 0; } // Returns the positive gcd of a and b. private int gcd(int a, int b) { if (a < 0) a = -a; if (b < 0) b = -b; while (b != 0) { int t = b; b = a % b; a = t; } return a; } public Number floor() { if (this.n % this.d == 0) { return new Rational(this.n/this.d, 1); } else if (this.n > 0) { return new Rational(this.n/this.d, 1); } else { return new Rational(this.n/this.d - 1, 1); } } public Number ceiling() { if (this.n % this.d == 0) { return new Rational(this.n/this.d, 1); } else if (this.n > 0) { return new Rational((this.n + this.d)/this.d, 1); } else { return new Rational(this.n/this.d, 1); } } public Number acos() { return maybeRationalize(this.toFloatPoint().acos()); } public Number sin() { return maybeRationalize(this.toFloatPoint().sin()); } public Number asin() { return maybeRationalize(this.toFloatPoint().asin()); } public Number atan() { return maybeRationalize(this.toFloatPoint().atan()); } public Number cos() { return maybeRationalize(this.toFloatPoint().cos()); } // maybeRationalize will either return a rationalzed version of n // if we don't lose information, or otherwise just return the input as is. public static Number maybeRationalize(Number n) { if (n.isInteger()) { return new Rational(n.toInt(), 1); } else { return n; } } public String toString() { return "" + n + "/" + d; } public boolean equals(Object _other) { if (_other instanceof Rational) { Rational other = (Rational) _other; return (this.numerator() == other.numerator() && this.denominator() == other.denominator()); } else { return false; } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
6883e20dc3154c2d205f9c8e14291dbf356acd98
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/alibaba--druid/a29eb6e0d2ef52f79699ee04a3faf112ef16a005/before/SQLBinaryOpExpr.java
ad3af8f10af99a5120d14efd37aa1be198c2144f
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
4,039
java
/* * Copyright 1999-2017 Alibaba Group Holding 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.alibaba.druid.sql.ast.expr; import java.io.Serializable; import com.alibaba.druid.sql.SQLUtils; import com.alibaba.druid.sql.ast.SQLExpr; import com.alibaba.druid.sql.ast.SQLExprImpl; import com.alibaba.druid.sql.visitor.SQLASTVisitor; public class SQLBinaryOpExpr extends SQLExprImpl implements Serializable { private static final long serialVersionUID = 1L; private SQLExpr left; private SQLExpr right; private SQLBinaryOperator operator; private String dbType; public SQLBinaryOpExpr(){ } public SQLBinaryOpExpr(String dbType){ this.dbType = dbType; } public SQLBinaryOpExpr(SQLExpr left, SQLBinaryOperator operator, SQLExpr right){ this(left, operator, right, null); } public SQLBinaryOpExpr(SQLExpr left, SQLBinaryOperator operator, SQLExpr right, String dbType){ setLeft(left); setRight(right); this.operator = operator; this.dbType = dbType; } public SQLBinaryOpExpr(SQLExpr left, SQLExpr right, SQLBinaryOperator operator){ setLeft(left); setRight(right); this.operator = operator; } public String getDbType() { return dbType; } public void setDbType(String dbType) { this.dbType = dbType; } public SQLExpr getLeft() { return this.left; } public void setLeft(SQLExpr left) { if (left != null) { left.setParent(this); } this.left = left; } public SQLExpr getRight() { return this.right; } public void setRight(SQLExpr right) { if (right != null) { right.setParent(this); } this.right = right; } public SQLBinaryOperator getOperator() { return this.operator; } public void setOperator(SQLBinaryOperator operator) { this.operator = operator; } protected void accept0(SQLASTVisitor visitor) { if (visitor.visit(this)) { acceptChild(visitor, this.left); acceptChild(visitor, this.right); } visitor.endVisit(this); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((left == null) ? 0 : left.hashCode()); result = prime * result + ((operator == null) ? 0 : operator.hashCode()); result = prime * result + ((right == null) ? 0 : right.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof SQLBinaryOpExpr)) { return false; } SQLBinaryOpExpr other = (SQLBinaryOpExpr) obj; if (left == null) { if (other.left != null) { return false; } } else if (!left.equals(other.left)) { return false; } if (operator != other.operator) { return false; } if (right == null) { if (other.right != null) { return false; } } else if (!right.equals(other.right)) { return false; } return true; } public String toString() { return SQLUtils.toSQLString(this, getDbType()); } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
10f6997e23ee286572861d1ffb9a7fc6a90e343b
034416becb36f4a9922053daf5f1175349a2843f
/mmall-facade/src/main/java/com/xyl/mmall/oms/facade/impl/PickSkuFacadeImpl.java
1ecd21a676cc1b03c21a8f165f47f17b2c69282b
[]
no_license
timgle/utilcode
40ee8d05e96ac324f452fccb412e07b4465e5345
a8c81c90ec1965d45589dd7be8d2c8b0991a6b6a
refs/heads/master
2021-05-09T22:39:11.417003
2016-03-20T14:30:52
2016-03-20T14:30:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,237
java
package com.xyl.mmall.oms.facade.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import com.xyl.mmall.framework.annotation.Facade; import com.xyl.mmall.oms.enums.PickStateType; import com.xyl.mmall.oms.facade.PickSkuFacade; import com.xyl.mmall.oms.meta.PickSkuItemForm; import com.xyl.mmall.oms.service.PickSkuService; @Facade public class PickSkuFacadeImpl implements PickSkuFacade { @Autowired private PickSkuService pickSkuService; @Override public int unPickCountOfPoOrderId(String poId) { int unPick = 0; List<PickSkuItemForm> list = pickSkuService.getUnPickSkuByPoOrderId(poId); if(list!= null && list.size()>0){ for(PickSkuItemForm pickSku:list){ if("0".equals(pickSku.getPickOrderId())) unPick+=pickSku.getSkuQuantity(); } } return unPick; } @Override public int unShipCountOfPoOrderId(String poId) { int unShip = 0; List<PickSkuItemForm> list = pickSkuService.getUnPickSkuByPoOrderId(poId); if(list!= null && list.size()>0){ for(PickSkuItemForm pickSku:list){ if(!"0".equals(pickSku.getPickOrderId()) && pickSku.getPickStates()==PickStateType.PICKING) unShip += pickSku.getSkuQuantity(); } } return unShip; } }
[ "jack_lhp@163.com" ]
jack_lhp@163.com
5d116171c3b1294f46015ff7a7f187908b5d6855
e32eb170db5419fd849058ba0a7fd63d3e35f16a
/utils/utils-api/src/main/java/com/redshape/utils/auth/adapters/IAuthenticator.java
dac1f16c41b3859db2006acbea5b842b762e5d23
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
nikelin/Redshape-AS
9803f6825e310fdc0b0870513c977fea06d1c069
252d10988daadb9ca5972b61da2ef9d84eedafac
refs/heads/3.1.6
2022-09-02T23:48:47.958888
2012-11-13T10:02:03
2012-11-13T10:02:03
6,657,575
0
1
Apache-2.0
2022-09-01T22:51:08
2012-11-12T17:39:26
Java
UTF-8
Java
false
false
3,091
java
/* * Copyright 2012 Cyril A. Karpenko * * 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.redshape.utils.auth.adapters; import com.redshape.utils.auth.AuthResult; import com.redshape.utils.auth.AuthenticationException; import com.redshape.utils.auth.AuthenticatorAttribute; import com.redshape.utils.auth.IIdentity; import java.util.Map; /** * Interface for entities responsible for providing authentication * logic. * * @param <T> * @author nikelin */ public interface IAuthenticator<T extends IIdentity> { /** * Set new attribute on current entity. * * @param name * @param value */ public void setAttribute( AuthenticatorAttribute name, Object value ); /** * Check is that entity authentication session not expired * * @param identity * @return */ public boolean isAuthExpired( T identity ); /** * Proceed given entity authentication * @param identity * @return * @throws AuthenticationException */ public AuthResult authenticate( T identity ) throws AuthenticationException; /** * Proceed authentication based on given authority credentials * * @param credentials * @return */ public AuthResult authenticate( Map<String, Object> credentials ) throws AuthenticationException; /** * Proceed authentication based on given authority credentials * * @param credentials * @return */ public AuthResult authenticate( Map<String, Object> credentials, Map<AuthenticatorAttribute, Object> configuration ) throws AuthenticationException; /** * Proceed given entity authentication with respect to provided * configuration options, which will have higher priority comparing to global attributes * of authenticator provided through setAttribute(*,*) method. * * @param identity * @return AuthResult */ public AuthResult authenticate( T identity, Map<AuthenticatorAttribute, Object> configuration ) throws AuthenticationException; /** * Get entity by given ID from related storage. * * Null will be returned if entity not presents in authenticated entities * storage. * * @deprecated * @param id * @return Identity */ public T getIdentity( Object id ); /** * Remove given entity from authenticated entities store. * * @param identity * @return AuthenticatorInterface */ public void forget( T identity ); }
[ "self@nikelin.ru" ]
self@nikelin.ru
18fdf5fae5a56c88db9ba1b9fe2a21beb8d3d3f3
f3dcd34ccf03730e7d68e96784d1557972277782
/common/src/test/java/com/sishuok/es/common/entity/SchoolInfo.java
4e24c7092d4c380399cb3b5dc6d616362bb91446
[ "Apache-2.0" ]
permissive
zhuruiboqq/romantic-factor_baseOnES
7e2aace3e284403998f404947194e28c92893658
1c05bda53a36475f60989a790eca31e4ba1665bb
refs/heads/master
2021-01-21T12:58:00.788593
2016-05-05T14:07:22
2016-05-05T14:07:22
49,350,203
0
1
null
null
null
null
UTF-8
Java
false
false
1,096
java
/** * Copyright (c) 2005-2012 https://github.com/zhuruiboqq * * Licensed under the Apache License, Version 2.0 (the "License"); */ package com.sishuok.es.common.entity; import javax.persistence.*; /** * <p>学校信息</p> * <p>User: Zhang Kaitao * <p>Date: 13-1-14 下午2:14 * <p>Version: 1.0 */ @Entity @Table(name = "user_schoolinfo") public class SchoolInfo extends BaseEntity<Long> { @ManyToOne() @JoinColumn(name = "user_id", nullable = false) private User user; /** * 学校名称 */ @Column(name = "name", length = 200) private String name; @Column(name = "type", length = 2) @Enumerated(EnumType.ORDINAL) private SchoolType type; public User getUser() { return user; } public void setUser(User user) { this.user = user; } public String getName() { return name; } public void setName(String name) { this.name = name; } public SchoolType getType() { return type; } public void setType(SchoolType type) { this.type = type; } }
[ "bzhuorui@163.com" ]
bzhuorui@163.com
33bd4d8bf3ca02116e5722fd15e8c3fb19af03df
e1e331081bd55490e69456c9e0d97d8107c33e4e
/src/main/java/org/dominokit/domino/ui/forms/CheckBox.java
215d0f289330e97e950bb6477d1502d2517679ce
[]
no_license
wytten/domino-ui
008a5e2809741a35e4a7c7425d4c774abc1ac8b7
94ed38372eddb1f560fd09ba856c981a1f8cbdfc
refs/heads/master
2020-03-18T10:27:06.999367
2018-05-20T07:21:18
2018-05-20T07:21:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,613
java
package org.dominokit.domino.ui.forms; import elemental2.dom.HTMLDivElement; import elemental2.dom.HTMLElement; import elemental2.dom.HTMLInputElement; import elemental2.dom.HTMLLabelElement; import org.dominokit.domino.ui.style.Color; import org.dominokit.domino.ui.utils.*; import org.jboss.gwt.elemento.core.Elements; import org.jboss.gwt.elemento.core.IsElement; import java.util.ArrayList; import java.util.List; public class CheckBox implements IsElement<HTMLElement>, HasValue<Boolean>, CanEnable<CheckBox>, CanDisable<CheckBox>, HasName<CheckBox>, Checkable<CheckBox> { private HTMLDivElement container = Elements.div().asElement(); private HTMLInputElement inputElement = Elements.input("checkbox").asElement(); private HTMLLabelElement labelElement = Elements.label().asElement(); private List<CheckHandler> checkHandlers = new ArrayList<>(); private Color color; public CheckBox(String title) { container.appendChild(inputElement); container.appendChild(labelElement); setTitle(title); container.addEventListener("click", evt -> { if (!isDisbaled()) { if (isChecked()) uncheck(); else check(); } }); } private void onCheck() { for (CheckHandler handler : checkHandlers) handler.onCheck(isChecked()); } public static CheckBox create(String title) { return new CheckBox(title); } @Override public HTMLElement asElement() { return container; } @Override public CheckBox check() { inputElement.checked = true; onCheck(); return this; } @Override public CheckBox uncheck() { inputElement.checked = false; onCheck(); return this; } @Override public boolean isChecked() { return inputElement.checked; } public CheckBox setTitle(String title) { labelElement.textContent = title; return this; } @Override public CheckBox addCheckHandler(CheckHandler handler) { this.checkHandlers.add(handler); return this; } public CheckBox filledIn() { inputElement.classList.add("filled-in"); return this; } public CheckBox filledOut() { inputElement.classList.remove("filled-in"); return this; } @Override public CheckBox enable() { inputElement.disabled = false; return this; } @Override public CheckBox disable() { inputElement.disabled = true; return this; } public boolean isDisbaled() { return inputElement.disabled; } public CheckBox setColor(Color color) { if (this.color != null) inputElement.classList.remove("chk-" + this.color.getStyle()); inputElement.classList.add("chk-" + color.getStyle()); this.color = color; return this; } public HTMLInputElement getInputElement() { return inputElement; } public HTMLLabelElement getLabelElement() { return labelElement; } @Override public void setValue(Boolean value) { if (value != null && value) check(); else uncheck(); } @Override public Boolean getValue() { return isChecked(); } @Override public String getName() { return inputElement.name; } @Override public CheckBox setName(String name) { inputElement.name = name; return this; } }
[ "rafat.albarouki@gmail.com" ]
rafat.albarouki@gmail.com
0fc13e0094e82bf10d5af913e0ffb805c4e9a500
ed4e98d7e9db183f6dc8e1991c6808ebbd7d30f9
/gchr-security-demo/src/main/java/com/gchr/web/async/MockQueue.java
3835a23dd8eae0e1895bd6261b160bec6f0572ae
[]
no_license
gongchunru/security
b941f6c0a52527a1db92e392e61aa0925876b792
e27f965635c468326e7ab7c8ea08c0247e268591
refs/heads/master
2021-08-22T13:45:56.778443
2017-11-30T10:23:37
2017-11-30T10:23:37
110,221,100
0
0
null
null
null
null
UTF-8
Java
false
false
1,142
java
package com.gchr.web.async; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; /** * @author gongchunru * Date:2017/11/15. * Time:15:19 */ @Component public class MockQueue { private String placeOrder; private String completeOrder; private Logger logger = LoggerFactory.getLogger(getClass()); public String getPlaceOrder() { return placeOrder; } public void setPlaceOrder(String placeOrder) { new Thread(()->{ logger.info("接到下单请求,"+placeOrder); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } this.completeOrder = placeOrder; logger.info("下单请求处理完成,"+completeOrder); }).start(); this.placeOrder = placeOrder; } public String getCompleteOrder() { return completeOrder; } public void setCompleteOrder(String completeOrder) { this.completeOrder = completeOrder; } }
[ "gongchunru@163.com" ]
gongchunru@163.com
6f2a56388575a59b1e7f732d69ea971ba54b8018
ff7795b46a8cb634dd573932aa073e8caf0200ab
/src/aladinjasmine/Main.java
f9265aeebaa126a43963997a57509cb0fefd24f6
[]
no_license
antoinecronier/aladinjasmine
facb87d4afcb1bbc3d1cab6434933c1adced6435
ddc5d1947f4b033b64b4b5a882a8966deb162826
refs/heads/master
2021-08-30T16:13:40.177895
2017-12-18T15:45:25
2017-12-18T15:45:25
114,658,617
0
0
null
null
null
null
UTF-8
Java
false
false
824
java
package aladinjasmine; public class Main { public static void main(String[] args) { People aladin = new People(Sex.male); People jasmine = new People(Sex.female); AppleField apple_field = new AppleField(100); apple_field.TakeApple(aladin, 100); apple_field.TakeApple(jasmine, 10); if (aladin.getName().equals("Aladin")) { System.out.println("aladin is aladin"); }else { System.out.println("aladin is not aladin"); } if (aladin.getName() == "Aladin") { System.out.println("aladin is aladin"); }else { System.out.println("aladin is not aladin"); } aladin.PrintBase(); jasmine.PrintBase(); aladin.GiveApple(jasmine.getBag(), 90); aladin.PrintBase2(); jasmine.PrintBase2(); Apple myApple = new Apple(); myApple.setWeight(15); myApple.Print(); aladin.Print(); } }
[ "antoine.cronier@tactfactory.com" ]
antoine.cronier@tactfactory.com
a25b293ac9cab035b232a91c247a2346c3689d11
b8332ff21523210a5377a485dcc0a5757f4a4d61
/app/src/main/java/com/youjing/yjeducation/takephoto/compress/CompressImageImpl.java
f3d86b4a35f07d3741200173d5a0d6d9cd9d6786
[]
no_license
sun529417168/youjingmain
c59e54c8d53112ca53e105db011a56ef59ad9266
ae575c5bafedcef57008faf9738d96192a70e8fb
refs/heads/master
2021-01-21T18:21:22.632571
2017-05-22T09:30:50
2017-05-22T09:30:50
92,035,873
0
0
null
null
null
null
UTF-8
Java
false
false
961
java
package com.youjing.yjeducation.takephoto.compress; import android.text.TextUtils; import java.io.File; /** * 压缩照片2.0 * @author JPH * Date 2015-08-26 下午1:44:26 */ public class CompressImageImpl implements CompressImage{ private CompressImageUtil compressImageUtil; public CompressImageImpl(CompressConfig config) { compressImageUtil=new CompressImageUtil(config); } @Override public void compress(String imagePath, CompressListener listener) { if (TextUtils.isEmpty(imagePath)){ listener.onCompressFailed(imagePath,"要压缩的文件不存在"); return; } File file=new File(imagePath); if (file==null||!file.exists()||!file.isFile()){//如果文件不存在,则不做任何处理 listener.onCompressFailed(imagePath,"要压缩的文件不存在"); return; } compressImageUtil.compress(imagePath,listener); } }
[ "xue7758521" ]
xue7758521
b914d62ccf00a512735c98afa5ba6194145c8b2e
f96fe513bfdf2d1dbd582305e1cbfda14a665bec
/net.sf.smbt.nmea1083/src-model/net/sf/smbt/gps/nmea1083/HDT.java
7ca5ef051712d037dfe5b2462bd486afd2e4deb0
[]
no_license
lucascraft/ubq_wip
04fdb727e7b2dc384ba1d2195ad47e895068e1e4
eff577040f21be71ea2c76c187d574f1617703ce
refs/heads/master
2021-01-22T02:28:20.687330
2015-06-10T12:38:47
2015-06-10T12:38:47
37,206,324
0
0
null
null
null
null
UTF-8
Java
false
false
383
java
/** * <copyright> * </copyright> * * $Id$ */ package net.sf.smbt.gps.nmea1083; import org.eclipse.emf.ecore.EObject; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>HDT</b></em>'. * <!-- end-user-doc --> * * * @see net.sf.smbt.gps.nmea1083.Nmea1083Package#getHDT() * @model * @generated */ public interface HDT extends EObject { } // HDT
[ "lucas.bigeardel@gmail.com" ]
lucas.bigeardel@gmail.com
718dddc915dd1cd682203a6a2baed934c47d5bcf
b9b1109f2e0931d6a8381994da926d532b44f3ac
/bitcamp-java-basic/src/main/java/com/eomcs/corelib/ex01/Exam0151.java
b75b322ddcf0a3370d072399cd799f3e5203f9b5
[]
no_license
eomjinyoung/bitcamp-20200713
a1ba5ec8c352cd33d6549d8e31ca44f2e3df4db7
d791bd087b073a186facacbc562ddce24970447d
refs/heads/master
2023-02-08T14:51:58.820397
2021-01-01T01:35:21
2021-01-01T01:35:21
279,742,777
2
3
null
2020-10-28T08:31:29
2020-07-15T02:33:14
Java
UTF-8
Java
false
false
2,535
java
// hash code 응용 - 문제 해결! package com.eomcs.corelib.ex01; import java.util.HashSet; public class Exam0151 { static class Student { String name; int age; boolean working; public Student(String name, int age, boolean working) { this.name = name; this.age = age; this.working = working; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + age; result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + (working ? 1231 : 1237); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Student other = (Student) obj; if (age != other.age) return false; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; if (working != other.working) return false; return true; } } public static void main(String[] args) { Student s1 = new Student("홍길동", 20, false); Student s2 = new Student("홍길동", 20, false); Student s3 = new Student("임꺽정", 21, true); Student s4 = new Student("유관순", 22, true); System.out.println(s1 == s2); System.out.println(s1.hashCode()); System.out.println(s2.hashCode()); System.out.println(s3.hashCode()); System.out.println(s4.hashCode()); System.out.println("--------------------"); // 해시셋(집합)에 객체를 보관한다. HashSet<Student> set = new HashSet<Student>(); set.add(s1); set.add(s2); set.add(s3); set.add(s4); // 해시셋에 보관된 객체를 꺼낸다. Object[] list = set.toArray(); for (Object obj : list) { Student student = (Student) obj; System.out.printf("%s, %d, %s\n", student.name, student.age, student.working ? "재직중" : "실업중"); } // 인스턴스가 다르더라도 인스턴스의 필드 값이 같을 경우 // HashSet에 중복 저장되지 않도록 하려면, // hashCode()와 equals() 모두 오버라이딩 하라! // => hashCode()는 같은 필드 값을 갖는 경우 같은 해시코드를 리턴하도록 변경하고, // => equals()는 필드 값이 같을 경우 true를 리턴하도록 변경한다. // } }
[ "jinyoung.eom@gmail.com" ]
jinyoung.eom@gmail.com
14efffbf904bd19e852b35c203a0356cb0f2a1b7
4eea13dc72e0ff8ec79c7a94deca38e55868b603
/chapter10/Outer.java
512989e09a87dc045c53040b4f575b7be6550910
[ "Apache-2.0" ]
permissive
helloShen/thinkinginjava
1a9bfad9afa68b226684f6e063e9fa2ae36d898c
8986b74b2b7ea1753df33af84cd56287b21b4239
refs/heads/master
2021-01-11T20:38:09.259654
2017-03-07T03:52:54
2017-03-07T03:52:54
79,158,702
3
0
null
null
null
null
UTF-8
Java
false
false
1,252
java
/** * Simple inner class */ package com.ciaoshen.thinkinjava.chapter10; import java.util.*; public class Outer { /** * PRIVATE INNER CLASS */ private class Inner { //methods private void privateInnerMethod(){ privateOuterMethod(); info="privatedInnerMethod visit info!"; } //constructor of inner private Inner() {System.out.println("Hello I am Inner Class!");} } /** * PUBLIC METHODS */ public Inner getInner(){return new Inner();} public void callPrivateInner(){ Inner theInner=getInner(); theInner.privateInnerMethod(); System.out.println(info); } private void privateOuterMethod(){System.out.println("Private Outer Method visited!");} /** * PRIVATE CONSTRUCTOR */ public Outer(String inStr){ info=inStr; System.out.println("Hello I am Outer Class!"); System.out.println(info); } /** * PRIVATE FIELDS */ private String info; /** * MAIN */ public static void main(String[] args) { Outer testOuter=new Outer("Inner class haven't visited info!"); testOuter.callPrivateInner(); } }
[ "symantec__@hotmail.com" ]
symantec__@hotmail.com
ccc96ae22c823e4f1710e34e83fd9640ea3bd320
ad61ceb121222774b5a2073e64b13073c5d0192e
/com.conx.logistics.kernel/com.conx.logistics.kernel.ui/kernel.ui.common/src/main/java/com/conx/logistics/kernel/ui/common/mvp/StartableApplicationEventBus.java
422fb87a793167921d3a17a74b7085d230557ecc
[]
no_license
conxgit/conxlogistics-gerrit2
d7500be2546ed05181e7de326e943094f3d15571
eee9949a2084dd21f3653e58a90635cc4c451009
refs/heads/master
2016-09-10T12:23:04.956163
2012-07-31T23:06:14
2012-07-31T23:06:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
377
java
package com.conx.logistics.kernel.ui.common.mvp; import org.vaadin.mvp.eventbus.EventBus; import org.vaadin.mvp.eventbus.annotation.Event; import com.conx.logistics.kernel.ui.common.mvp.MainMVPApplication; public interface StartableApplicationEventBus extends EventBus { @Event(handlers = { MainPresenter.class }) public void start(MainMVPApplication app); }
[ "mduduzi.keswa@bconv.com" ]
mduduzi.keswa@bconv.com
f311c78e2b759c4ee9a4aa5d53ffdc05d7eb5732
fadfc40528c5473c8454a4835ba534a83468bb3b
/domain-web/jbb-board-web/src/test/java/org/jbb/board/web/forum/controller/AcpForumManagementControllerIT.java
a83d429ca168434f51f93da5de4f4eaeef58ae5f
[ "Apache-2.0" ]
permissive
jbb-project/jbb
8d04e72b2f2d6c088b870e9a6c9dba8aa2e1768e
cefa12cda40804395b2d6e8bea0fb8352610b761
refs/heads/develop
2023-08-06T15:26:08.537367
2019-08-25T21:32:19
2019-08-25T21:32:19
60,918,871
4
3
Apache-2.0
2023-09-01T22:21:04
2016-06-11T17:20:33
Java
UTF-8
Java
false
false
3,630
java
/* * Copyright (C) 2017 the original author or authors. * * This file is part of jBB Application Project. * * Licensed under the Apache License, Version 2.0 (the "License"); * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 */ package org.jbb.board.web.forum.controller; import com.google.common.collect.Lists; import org.jbb.board.api.forum.BoardService; import org.jbb.board.api.forum.Forum; import org.jbb.board.api.forum.ForumCategory; import org.jbb.board.web.BaseIT; import org.junit.Before; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.ResultActions; import org.springframework.test.web.servlet.setup.MockMvcBuilders; import org.springframework.web.context.WebApplicationContext; import java.util.List; import static org.mockito.BDDMockito.given; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.model; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view; public class AcpForumManagementControllerIT extends BaseIT { @Autowired WebApplicationContext wac; @Autowired private BoardService boardServiceMock; private MockMvc mockMvc; @Before public void setUp() throws Exception { mockMvc = MockMvcBuilders.webAppContextSetup(wac).build(); } @Test public void shouldUseAcpForumManagementView_whenAcpForumManagementUrlInvoked() throws Exception { // given given(boardServiceMock.getForumCategories()).willReturn(Lists.newArrayList()); // when ResultActions result = mockMvc.perform(get("/acp/general/forums")); // then result.andExpect(status().isOk()) .andExpect(view().name("acp/general/forums")); } @Test public void shouldStoreForumStructureInModel_whenAcpForumManagementUrlInvoked() throws Exception { // given given(boardServiceMock.getForumCategories()).willReturn(exampleForumStructure()); // when ResultActions result = mockMvc.perform(get("/acp/general/forums")); // then result.andExpect(status().isOk()) .andExpect(model().attributeExists("forumStructure")); } private List<ForumCategory> exampleForumStructure() { ForumCategory firstCategory = new ForumCategory() { @Override public Long getId() { return 1L; } @Override public String getName() { return "example category"; } @Override public List<Forum> getForums() { return Lists.newArrayList(new Forum() { @Override public Long getId() { return 1L; } @Override public String getName() { return "forum name"; } @Override public String getDescription() { return null; } @Override public Boolean isClosed() { return false; } }); } }; return Lists.newArrayList(firstCategory); } }
[ "baart92@gmail.com" ]
baart92@gmail.com
eefe3f33677ba03ce373f64156f7b999f1130fae
4364f8e72fe2a3e04bd7c9257234a6f55474f968
/AMS_算法公式组件/code/.svn/pristine/ee/eeabdf535109c53b96c918dc0d7948c5cb516681.svn-base
dece097fdec40327bc16419b6da57a9f0d310cb3
[]
no_license
l871993962/liminglei
f511ac1cc0c53a8811eaee6a7038f72f6a7ee4cc
acbd64ce548e97a729b964418fb6edd0c9e78302
refs/heads/master
2023-08-03T03:39:25.813790
2021-09-27T01:44:51
2021-09-27T01:44:51
409,838,699
2
0
null
null
null
null
UTF-8
Java
false
false
3,575
package com.yss.ams.db.upgrade.algorithm.structs.tables; import com.yss.fast.db.upgrade.support.api.BaseStructDesc; import com.yss.fast.db.upgrade.support.api.TableBuilder; import com.yss.fast.db.upgrade.support.script.enums.UpdateType; import com.yss.fast.db.upgrade.support.struct.enums.OraColumnTypeNeedPrecision; import com.yss.fast.db.upgrade.support.struct.enums.OraColumnTypeNoLength; import com.yss.fast.db.upgrade.support.struct.enums.OraColunmnTypeOnlyLength; /** * * @ClassName: AlgorithmTableDescImpl * @Description: STORY #55342 算法公式管理组件独立 * @author: mazhongyuan * @date: 2018年5月2日 下午7:54:58 */ public class AlgorithmTableDescImpl extends BaseStructDesc { private TableBuilder tableBuilder = null; @Override public void execute() throws Exception { tableBuilder = getTableBuilder(); // STORY #55342 算法公式管理组件独立 builderT_V_AA_ADV_ALGO_DESC(); // STORY #55342 算法公式管理组件独立 builderT_V_AA_ADV_ALGO_ZH(); // 分布式改造,数据库表解耦 算法公式表从FAST迁移至估值中 buildT_V_AA_ADV_ALGO(); } private void builderT_V_AA_ADV_ALGO_ZH() throws Exception { tableBuilder.createTable("T_V_AA_ADV_ALGO_ZH") .addColumn("c_algo_code", OraColunmnTypeOnlyLength.VARCHAR2, 50, false, "", "算法code") .addColumn("c_formula", OraColumnTypeNoLength.CLOB, false, "' '", "算法中文形式") .build(UpdateType.REQUEST, "31713", "算法公式配置优化", "马向峰", "20170908"); } private void builderT_V_AA_ADV_ALGO_DESC() throws Exception { tableBuilder.createTable("T_V_AA_ADV_ALGO_DESC") .addColumn("c_algo_code", OraColunmnTypeOnlyLength.VARCHAR2, 50, false, "", "算法code") .addColumn("c_desc", OraColumnTypeNoLength.CLOB, false, "' '", "算法描述") .build(UpdateType.REQUEST, "31713", "算法公式配置优化", "马向峰", "20170908"); } /** * 高级算法设置 #comment# * * @author caobin * @throws Exception */ private void buildT_V_AA_ADV_ALGO() throws Exception { tableBuilder .createTable("T_V_AA_ADV_ALGO", "高级算法设置") .addColumn("C_ALGO_CODE", OraColunmnTypeOnlyLength.VARCHAR2, 50, false, "' '", "算法代码") .addColumn("C_ALGO_NAME", OraColunmnTypeOnlyLength.VARCHAR2, 100, false, "' '", "算法名称") .addColumn("C_DESC", OraColunmnTypeOnlyLength.VARCHAR2, 2000, true, "", "描述") .addColumn("N_CHECK_STATE", OraColumnTypeNeedPrecision.NUMBER, 3, 0, false, "0 ", "审核状态") .addColumn("C_UPDATE_BY", OraColunmnTypeOnlyLength.VARCHAR2, 20, false, "' '", "更新人") .addColumn("C_UPDATE_TIME", OraColunmnTypeOnlyLength.VARCHAR2, 20, false, "' '", "更新时间") .addColumn("C_CHECK_BY", OraColunmnTypeOnlyLength.VARCHAR2, 20, true, "", "审核人") .addColumn("C_CHECK_TIME", OraColunmnTypeOnlyLength.VARCHAR2, 20, true, "", "审核时间") .addColumn("C_ALGO_FORMULA_TRANSFORM", OraColunmnTypeOnlyLength.VARCHAR2, 4000, false, "' '", "算法公式转换") .addColumn("C_DV_ALGO_TYPE", OraColunmnTypeOnlyLength.VARCHAR2, 20, false, "' '", "算法类型") .addColumn("C_IDEN", OraColunmnTypeOnlyLength.VARCHAR2, 20, false, "", "自动ID") .addColumn("C_ALGO_FORMULA", OraColumnTypeNoLength.CLOB, true, "", "算法公式") .addPrimaryConstraint("PK_V_AA_ADV_ALGO", "C_IDEN") .createUniqueIndex("IDX_V_AA_ADV_ALGO", "C_ALGO_CODE") .build(UpdateType.REQUEST, "000001", "新建", "caobin@ysstech.com", "2017-05-03"); } }
[ "l871993962@gmail.com" ]
l871993962@gmail.com
d33c0fd08cf3345efe7dd502b824af86e1f9ae5e
d4896a7eb2ee39cca5734585a28ca79bd6cc78da
/sources/com/google/android/gms/internal/ads/zzaar.java
076ef92c6e7a9318c0f4a35d12a3295690413d3b
[]
no_license
zadweb/zadedu.apk
a235ad005829e6e34ac525cbb3aeca3164cf88be
8f89db0590333929897217631b162e39cb2fe51d
refs/heads/master
2023-08-13T03:03:37.015952
2021-10-12T21:22:59
2021-10-12T21:22:59
416,498,604
0
0
null
null
null
null
UTF-8
Java
false
false
4,144
java
package com.google.android.gms.internal.ads; import android.content.Intent; import android.os.Bundle; import android.os.IBinder; import android.os.Parcel; import android.os.RemoteException; import com.google.android.gms.dynamic.IObjectWrapper; public final class zzaar extends zzej implements zzaap { zzaar(IBinder iBinder) { super(iBinder, "com.google.android.gms.ads.internal.overlay.client.IAdOverlay"); } @Override // com.google.android.gms.internal.ads.zzaap public final void onActivityResult(int i, int i2, Intent intent) throws RemoteException { Parcel obtainAndWriteInterfaceToken = obtainAndWriteInterfaceToken(); obtainAndWriteInterfaceToken.writeInt(i); obtainAndWriteInterfaceToken.writeInt(i2); zzel.zza(obtainAndWriteInterfaceToken, intent); transactAndReadExceptionReturnVoid(12, obtainAndWriteInterfaceToken); } @Override // com.google.android.gms.internal.ads.zzaap public final void onBackPressed() throws RemoteException { transactAndReadExceptionReturnVoid(10, obtainAndWriteInterfaceToken()); } @Override // com.google.android.gms.internal.ads.zzaap public final void onCreate(Bundle bundle) throws RemoteException { Parcel obtainAndWriteInterfaceToken = obtainAndWriteInterfaceToken(); zzel.zza(obtainAndWriteInterfaceToken, bundle); transactAndReadExceptionReturnVoid(1, obtainAndWriteInterfaceToken); } @Override // com.google.android.gms.internal.ads.zzaap public final void onDestroy() throws RemoteException { transactAndReadExceptionReturnVoid(8, obtainAndWriteInterfaceToken()); } @Override // com.google.android.gms.internal.ads.zzaap public final void onPause() throws RemoteException { transactAndReadExceptionReturnVoid(5, obtainAndWriteInterfaceToken()); } @Override // com.google.android.gms.internal.ads.zzaap public final void onRestart() throws RemoteException { transactAndReadExceptionReturnVoid(2, obtainAndWriteInterfaceToken()); } @Override // com.google.android.gms.internal.ads.zzaap public final void onResume() throws RemoteException { transactAndReadExceptionReturnVoid(4, obtainAndWriteInterfaceToken()); } @Override // com.google.android.gms.internal.ads.zzaap public final void onSaveInstanceState(Bundle bundle) throws RemoteException { Parcel obtainAndWriteInterfaceToken = obtainAndWriteInterfaceToken(); zzel.zza(obtainAndWriteInterfaceToken, bundle); Parcel transactAndReadException = transactAndReadException(6, obtainAndWriteInterfaceToken); if (transactAndReadException.readInt() != 0) { bundle.readFromParcel(transactAndReadException); } transactAndReadException.recycle(); } @Override // com.google.android.gms.internal.ads.zzaap public final void onStart() throws RemoteException { transactAndReadExceptionReturnVoid(3, obtainAndWriteInterfaceToken()); } @Override // com.google.android.gms.internal.ads.zzaap public final void onStop() throws RemoteException { transactAndReadExceptionReturnVoid(7, obtainAndWriteInterfaceToken()); } @Override // com.google.android.gms.internal.ads.zzaap public final void zzax() throws RemoteException { transactAndReadExceptionReturnVoid(9, obtainAndWriteInterfaceToken()); } @Override // com.google.android.gms.internal.ads.zzaap public final boolean zznj() throws RemoteException { Parcel transactAndReadException = transactAndReadException(11, obtainAndWriteInterfaceToken()); boolean zza = zzel.zza(transactAndReadException); transactAndReadException.recycle(); return zza; } @Override // com.google.android.gms.internal.ads.zzaap public final void zzo(IObjectWrapper iObjectWrapper) throws RemoteException { Parcel obtainAndWriteInterfaceToken = obtainAndWriteInterfaceToken(); zzel.zza(obtainAndWriteInterfaceToken, iObjectWrapper); transactAndReadExceptionReturnVoid(13, obtainAndWriteInterfaceToken); } }
[ "midoekid@gmail.com" ]
midoekid@gmail.com
02e953b0a88bc8393865e4665fb38720bf8fbc2b
41342d00358ce96ad44cbdb9ee84fb87c4b314d6
/Other Java/Tedt/src/Test1.java
5d066a1151185079cebe8faa064f80128a5819d9
[]
no_license
plasmatic1/archived-projects
4ca1fedaf952565c7a4f73f011f2281f9a1d14db
7e3ef8fb2b8b8e9ed8c97e8f24800b25ddb0e0e4
refs/heads/master
2022-12-12T08:58:45.335886
2019-05-23T13:55:31
2019-05-23T13:55:31
157,481,583
0
0
null
2022-12-07T16:55:12
2018-11-14T02:57:32
Python
UTF-8
Java
false
false
203
java
public class Test1 extends Application{ public Test1() { // TODO Auto-generated constructor stub } public void start(Stage arg0) throws Exception { // TODO Auto-generated method stub } }
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
3025d484f43615f2c866bdb315638fa3980a8529
aaac30301a5b18e8b930d9932a5e11d514924c7e
/framework/rabbitmq/rabbitmqdemo/src/main/java/me/maiz/trainning/framework/simple/Reciever.java
71c6f3ae0cadd7e5e0124dcf83fa441c52e2424c
[]
no_license
stickgoal/trainning
9206e30fc0b17c817c5826a6e212ad25a3b9d8a6
58348f8a3d21e91cad54d0084078129e788ea1f4
refs/heads/master
2023-03-14T12:29:11.508957
2022-12-01T09:17:50
2022-12-01T09:17:50
91,793,279
1
0
null
2023-02-22T06:55:38
2017-05-19T10:06:01
JavaScript
UTF-8
Java
false
false
1,420
java
package me.maiz.trainning.framework.simple; import com.rabbitmq.client.*; import java.io.IOException; import java.util.concurrent.TimeoutException; public class Reciever { public static void main(String[] args) { ConnectionFactory f = new ConnectionFactory(); f.setHost("localhost"); try { Connection connection = f.newConnection(); Channel channel = connection.createChannel(); channel.queueDeclare(Sender.QUEUE_NAME,false,false,false,null); System.out.println(" [*] Waiting for messages. To exit press CTRL+C"); DeliverCallback deliverCallback = new DeliverCallback() { @Override public void handle(String consumerTag, Delivery delivery) throws IOException { String message = new String(delivery.getBody(), "UTF-8"); System.out.println(" [x] Received '" + message + "'"); } }; CancelCallback emptyCallback = new CancelCallback() { @Override public void handle(String consumerTag) throws IOException { } }; channel.basicConsume(Sender.QUEUE_NAME, deliverCallback, emptyCallback); } catch (IOException e) { e.printStackTrace(); } catch (TimeoutException e) { e.printStackTrace(); } } }
[ "stick.goal@163.com" ]
stick.goal@163.com
90c4faf077f73209c6edcaa3af5fdc126593d72b
660cee34af3d34c8c5d39700b7b253185693a413
/HibernateCRUD_Operation_1/src/com/hibernate/entities/Employee.java
2c4e0d5815e5fbe82d792a8cd28472880ac18f85
[]
no_license
keyur2714/hibernate
88c2b8d544dba5f40d125019bf46e5914dbafef1
d420d1d5821fcc73a9709c1fe11b98aa303600f6
refs/heads/master
2021-05-14T05:13:10.871458
2018-01-04T04:55:14
2018-01-04T04:55:14
116,215,608
0
0
null
null
null
null
UTF-8
Java
false
false
1,113
java
package com.hibernate.entities; import java.util.Date; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "employee_details") public class Employee { @Id private int employeeId; private String employeeName; private Double salary; private Date doj; private String deptName; private String email; public int getEmployeeId() { return employeeId; } public void setEmployeeId(int employeeId) { this.employeeId = employeeId; } public String getEmployeeName() { return employeeName; } public void setEmployeeName(String employeeName) { this.employeeName = employeeName; } public Double getSalary() { return salary; } public void setSalary(Double salary) { this.salary = salary; } public Date getDoj() { return doj; } public void setDoj(Date doj) { this.doj = doj; } public String getDeptName() { return deptName; } public void setDeptName(String deptName) { this.deptName = deptName; } public void setEmail(String email) { this.email = email; } public String getEmail() { return email; } }
[ "keyur.555kn@gmail.com" ]
keyur.555kn@gmail.com
6efaec32b52e4abcc0ed5fc0235ea929a31e86c1
6baf1fe00541560788e78de5244ae17a7a2b375a
/hollywood/com.oculus.companion.server-CompanionServer/sources/android/arch/lifecycle/LifecycleRegistryOwner.java
59c50d91e7d43e708a3f8b83220fb7d4345b6e57
[]
no_license
phwd/quest-tracker
286e605644fc05f00f4904e51f73d77444a78003
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
refs/heads/main
2023-03-29T20:33:10.959529
2021-04-10T22:14:11
2021-04-10T22:14:11
357,185,040
4
2
null
2021-04-12T12:28:09
2021-04-12T12:28:08
null
UTF-8
Java
false
false
205
java
package android.arch.lifecycle; @Deprecated public interface LifecycleRegistryOwner extends LifecycleOwner { @Override // android.arch.lifecycle.LifecycleOwner LifecycleRegistry getLifecycle(); }
[ "cyuubiapps@gmail.com" ]
cyuubiapps@gmail.com
3d6ced0ae2418ce78a5958888f97b73fcce81543
c67d2754e6a774a14ef918d1a41ecda7037c78d1
/core/src/main/java/io/mateu/ui/core/rest/ClienteRestTeavm.java
338d54f4e4d3fe7fefa887d3b106370707be6ece
[ "Beerware" ]
permissive
miguelperezcolom/mateu-ui
4b24d5f815c7c7714aab39381703f7128849b1f7
6dbb96d452bf22ccb63005391b63be9d70ef6b4f
refs/heads/master
2020-04-02T04:40:31.854203
2018-07-05T20:45:22
2018-07-05T20:45:22
65,230,110
1
0
null
null
null
null
UTF-8
Java
false
false
1,023
java
package io.mateu.ui.core.rest; import org.teavm.jso.ajax.XMLHttpRequest; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; /** * Created by miguel on 3/7/17. */ public class ClienteRestTeavm { public static void main(String... args) { new ClienteRestTeavm().test1(); } private void test1() { XMLHttpRequest xhr = XMLHttpRequest.create(); xhr.onComplete(() -> receiveResponse(xhr.getResponseText())); xhr.setRequestHeader("Accept", "application/json"); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.open("POST", "http://xxx"); String c = ""; try { if (!"".equals(c)) c += "&"; c += "parametro=" + URLEncoder.encode("", "utf-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } xhr.send(c); } private void receiveResponse(String responseText) { System.out.println(responseText); } }
[ "miguelperezcolom@gmail.com" ]
miguelperezcolom@gmail.com
6b25245eeffd5c5e5aab2f381c9b453c58b7c1c3
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Time/2/org/joda/time/chrono/BasicChronology_getDaysInMonthMax_649.java
df81f1785a7c5e3e3add1ffdad7261b20f8e0fb5
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
1,235
java
org joda time chrono abstract implement calendar system typic dai month year leap year leapyear model util method requir subclass reflect intent defin basic chronolog basicchronolog thread safe immut subclass author stephen colebourn author brian neill o'neil author gui allard renam base chronolog basegjchronolog basic chronolog basicchronolog assembl chronolog assembledchronolog maximum dai month param month month max dai dai month max getdaysinmonthmax month
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
499e2fecc6c31a287c4d4f1f7314df6b0db4e228
6d8cb7dd55e817e896fe4efc4f383fd7423109c9
/TestThread/src/main/java/completionService/Main.java
169fd6c568c97e5bb5405c03c2ebaf19830b939f
[]
no_license
xujunmeng/Test-Project-master
4ae66a27d849d495c116a97a52046053cdb31c82
92787bfb1c276658b3098085ae4670130ec8ab2d
refs/heads/master
2022-12-21T20:16:52.328399
2020-07-23T06:33:27
2020-07-23T06:33:27
124,840,814
0
0
null
2022-12-16T05:32:53
2018-03-12T06:01:29
Java
UTF-8
Java
false
false
1,216
java
package completionService; import java.util.Random; import java.util.concurrent.*; /** @author junmeng.xu @date 2016年4月3日下午3:57:53 */ public class Main { public static void main(String[] args) { ExecutorService exec = Executors.newFixedThreadPool(10); //容量为10的阻塞队列 BlockingQueue<Future<Integer>> queue = new LinkedBlockingDeque<>(100); //实例化CompletionService CompletionService<Integer> completionService = new ExecutorCompletionService<>(exec, queue); /** * 模拟瞬间产生100个任务,且每个任务执行时间不一致 */ for(int i = 0 ; i < 100 ; i++){ completionService.submit(() -> { try { int ran = new Random().nextInt(100); Thread.sleep(ran); System.out.println(Thread.currentThread().getName() + " 休息了 " + ran); int aaa = 0/0; return ran; } catch (Exception e) { throw new RuntimeException("模拟运行时异常"); } }); } /** * 立即数据结果 */ for(int i = 0 ; i < 100 ; i++){ try { Future<Integer> f = completionService.take(); System.out.println(f.get()); } catch (Exception e) { e.printStackTrace(); } } exec.shutdown(); } }
[ "xujunmeng2012@163.com" ]
xujunmeng2012@163.com
309260003259201b7d5feb3a374d2f0005784b48
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mobileqqi/classes.jar/com/tencent/mobileqq/filemanager/discoperation/IFileHttpUploderSink.java
f1867f125dc0de34fc04a845bdab1e01b6855392
[]
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
870
java
package com.tencent.mobileqq.filemanager.discoperation; import com.tencent.mobileqq.transfile.NetResp; public abstract interface IFileHttpUploderSink { public abstract long a(NetResp paramNetResp, FileReportData paramFileReportData); public abstract void a(long paramLong1, long paramLong2); public abstract void a(FileReportData paramFileReportData); public abstract void a(boolean paramBoolean, FileReportData paramFileReportData); public abstract byte[] a(byte[] paramArrayOfByte, long paramLong, FileReportData paramFileReportData); public abstract void b(FileReportData paramFileReportData); } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mobileqqi\classes2.jar * Qualified Name: com.tencent.mobileqq.filemanager.discoperation.IFileHttpUploderSink * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
f70d73a6f5398d35fef8854e9bf60a3e41c246d5
0633a91895b6c61f4d44832267c29170f6dead63
/bwallet-common/src/main/java/com/sharingif/wallet/common/dao/impl/BaseDAOImpl.java
b32c186252bb4490f7d86cb71ec8c0550639372a
[]
no_license
xlslin/bcoin-exchange
bd8ec272061d2335d05fe3ca613e576a2e28373e
c93126f6561522df16ac1a1ea742b7bc91323d75
refs/heads/master
2020-05-02T10:41:50.316114
2019-03-06T09:51:08
2019-03-06T09:51:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
969
java
package com.sharingif.wallet.common.dao.impl; import com.sharingif.cube.components.sequence.ISequenceHandler; import com.sharingif.cube.persistence.database.pagination.IPaginationHandler; import com.sharingif.cube.persistence.mybatis.dao.CubeMyBatisDAOImpl; import org.mybatis.spring.SqlSessionTemplate; import javax.annotation.Resource; import java.io.Serializable; public class BaseDAOImpl<T, ID extends Serializable> extends CubeMyBatisDAOImpl<T, ID> { @Override @Resource public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) { super.setSqlSessionTemplate(sqlSessionTemplate); } @Override @Resource public void setPaginationHandler(IPaginationHandler mySqlPaginationHandler) { super.setPaginationHandler(mySqlPaginationHandler); } @Override @Resource public void setSequenceHandler(ISequenceHandler sequenceHandler) { super.setSequenceHandler(sequenceHandler); } }
[ "JolyEmail@Gmail.COM" ]
JolyEmail@Gmail.COM
f0d5e8fed7fcfa1750fb81737950e58ecaeafa73
b07968d5519a345c7b53b5fa33720c32d6812a88
/heima_store/src/com/itheima/domain/OrderItem.java
c0844b6343f4346d51979a8590afe001248b914a
[]
no_license
ni247/jialian_c-2Java
d67a24800a53844b352e5ca7febc16d254e28249
1b478c10699c45ee0da70f29548029ae338ad0d9
refs/heads/master
2021-01-02T08:48:47.588902
2017-08-05T14:32:29
2017-08-05T14:32:29
99,066,589
0
0
null
null
null
null
UTF-8
Java
false
false
1,143
java
package com.itheima.domain; import java.io.Serializable; public class OrderItem implements Serializable { private String itemid; private Integer count; private Double subtotal; private String pid; private String oid; private Order order; private Product product; public String getItemid() { return itemid; } public void setItemid(String itemid) { this.itemid = itemid; } public Integer getCount() { return count; } public void setCount(Integer count) { this.count = count; } public Double getSubtotal() { return subtotal; } public void setSubtotal(Double subtotal) { this.subtotal = subtotal; } public String getPid() { return pid; } public void setPid(String pid) { this.pid = pid; } public String getOid() { return oid; } public void setOid(String oid) { this.oid = oid; } public Order getOrder() { return order; } public void setOrder(Order order) { this.order = order; } public Product getProduct() { return product; } public void setProduct(Product product) { this.product = product; } }
[ "Administrator@DESKTOP-SLN17N8" ]
Administrator@DESKTOP-SLN17N8
d61748da2c4578e08fdfc4761c77432a7c6eb22b
c0542546866385891c196b665d65a8bfa810f1a3
/decompiled/java/nio/channels/ServerSocketChannel.java
a8f5fa3b2fad8f41d664038beb085fb20b8ba621
[]
no_license
auxor/android-wear-decompile
6892f3564d316b1f436757b72690864936dd1a82
eb8ad0d8003c5a3b5623918c79334290f143a2a8
refs/heads/master
2016-09-08T02:32:48.433800
2015-10-12T02:17:27
2015-10-12T02:19:32
42,517,868
5
1
null
null
null
null
UTF-8
Java
false
false
691
java
package java.nio.channels; import java.io.IOException; import java.net.ServerSocket; import java.nio.channels.spi.AbstractSelectableChannel; import java.nio.channels.spi.SelectorProvider; public abstract class ServerSocketChannel extends AbstractSelectableChannel { public abstract SocketChannel accept() throws IOException; public abstract ServerSocket socket(); protected ServerSocketChannel(SelectorProvider selectorProvider) { super(selectorProvider); } public static ServerSocketChannel open() throws IOException { return SelectorProvider.provider().openServerSocketChannel(); } public final int validOps() { return 16; } }
[ "itop.my@gmail.com" ]
itop.my@gmail.com
0abbc33ec28324655ed2250b24af2fa9bd5d8532
c19435aface677d3de0958c7fa8b0aa7e3b759f3
/base/config/src/test/java/org/artifactory/version/converter/v207/FolderDownloadForAnonymousConfigConverterTest.java
c160af3c9dc0aabbcb60b071a44441e59bcabd8d
[]
no_license
apaqi/jfrog-artifactory-5.11.0
febc70674b4a7b90f37f2dfd126af36b90784c28
6a4204ed9ce9334d3eb7a8cb89c1d9dc72d709c1
refs/heads/master
2020-03-18T03:13:41.286825
2018-05-21T06:57:30
2018-05-21T06:57:30
134,229,368
0
0
null
null
null
null
UTF-8
Java
false
false
2,051
java
/* * * Artifactory is a binaries repository manager. * Copyright (C) 2016 JFrog Ltd. * * Artifactory is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Artifactory is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Artifactory. If not, see <http://www.gnu.org/licenses/>. * */ package org.artifactory.version.converter.v207; import org.artifactory.convert.XmlConverterTest; import org.jdom2.Document; import org.jdom2.Element; import org.jdom2.Namespace; import org.testng.annotations.Test; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertTrue; /** * @author Rotem Kfir */ @Test public class FolderDownloadForAnonymousConfigConverterTest extends XmlConverterTest { @Test public void convert() throws Exception { Document document = convertXml("/config/test/config.2.0.7.with_adminToken.xml", new FolderDownloadForAnonymousConfigConverter()); Element rootElement = document.getRootElement(); Namespace namespace = rootElement.getNamespace(); Element folderDownloadConfig = rootElement.getChild("folderDownloadConfig", namespace); assertTrue(folderDownloadConfig != null, "Expected to find 'folderDownloadConfig' section"); // Make sure the element was added in the right location and with the correct default value assertEquals(((Element) folderDownloadConfig.getContent(3)).getName(), "enabledForAnonymous"); assertEquals(folderDownloadConfig.getChildText("enabledForAnonymous", folderDownloadConfig.getNamespace()), "false"); } }
[ "wangpeixuan00@126.com" ]
wangpeixuan00@126.com
fa7bdfdfdb12adcb1e7bdf45546dfdabb84d0e38
da95adefe07fd099f3b9cfda44e931e503a85f68
/plan-module-service/src/main/java/com/gsafety/plan/service/impl/UserServiceImpl.java
8f38d20f197f03e85af4b1710b732d6bbee12de3
[]
no_license
GeeekUnion/Preplan
c2f1b1520da9a52a8589a3d9083b9d99bc3651dc
ab1fbb57833b2eacfba940d9b97111d7a8126f09
refs/heads/master
2021-01-11T10:50:24.718742
2018-05-16T05:11:12
2018-05-16T05:11:12
76,160,272
0
0
null
null
null
null
UTF-8
Java
false
false
298
java
package com.gsafety.plan.service.impl; import org.springframework.stereotype.Service; import com.gsafety.cloudframework.common.base.service.impl.BaseServiceImpl; import com.gsafety.plan.service.UserService; @Service public class UserServiceImpl extends BaseServiceImpl implements UserService{ }
[ "83903944@qq.com" ]
83903944@qq.com
92077b4c7e895666d052c6931db612bc389aa07e
79595075622ded0bf43023f716389f61d8e96e94
/app/src/main/java/sun/security/provider/certpath/CertId.java
9651de594edc23900c3ad66a20a2e7056fbef206
[]
no_license
dstmath/OppoR15
96f1f7bb4d9cfad47609316debc55095edcd6b56
b9a4da845af251213d7b4c1b35db3e2415290c96
refs/heads/master
2020-03-24T16:52:14.198588
2019-05-27T02:24:53
2019-05-27T02:24:53
142,840,716
7
4
null
null
null
null
UTF-8
Java
false
false
4,442
java
package sun.security.provider.certpath; import java.io.IOException; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.security.PublicKey; import java.security.cert.X509Certificate; import java.util.Arrays; import javax.security.auth.x500.X500Principal; import sun.misc.HexDumpEncoder; import sun.security.util.DerInputStream; import sun.security.util.DerOutputStream; import sun.security.util.DerValue; import sun.security.x509.AlgorithmId; import sun.security.x509.SerialNumber; public class CertId { private static final AlgorithmId SHA1_ALGID = new AlgorithmId(AlgorithmId.SHA_oid); private static final boolean debug = false; private final SerialNumber certSerialNumber; private final AlgorithmId hashAlgId; private final byte[] issuerKeyHash; private final byte[] issuerNameHash; private int myhash; public CertId(X509Certificate issuerCert, SerialNumber serialNumber) throws IOException { this(issuerCert.getSubjectX500Principal(), issuerCert.getPublicKey(), serialNumber); } public CertId(X500Principal issuerName, PublicKey issuerKey, SerialNumber serialNumber) throws IOException { this.myhash = -1; try { MessageDigest md = MessageDigest.getInstance("SHA1"); this.hashAlgId = SHA1_ALGID; md.update(issuerName.getEncoded()); this.issuerNameHash = md.digest(); DerValue val = new DerValue(issuerKey.getEncoded()); md.update(new DerValue[]{val.data.getDerValue(), val.data.getDerValue()}[1].getBitString()); this.issuerKeyHash = md.digest(); this.certSerialNumber = serialNumber; } catch (NoSuchAlgorithmException nsae) { throw new IOException("Unable to create CertId", nsae); } } public CertId(DerInputStream derIn) throws IOException { this.myhash = -1; this.hashAlgId = AlgorithmId.parse(derIn.getDerValue()); this.issuerNameHash = derIn.getOctetString(); this.issuerKeyHash = derIn.getOctetString(); this.certSerialNumber = new SerialNumber(derIn); } public AlgorithmId getHashAlgorithm() { return this.hashAlgId; } public byte[] getIssuerNameHash() { return this.issuerNameHash; } public byte[] getIssuerKeyHash() { return this.issuerKeyHash; } public BigInteger getSerialNumber() { return this.certSerialNumber.getNumber(); } public void encode(DerOutputStream out) throws IOException { DerOutputStream tmp = new DerOutputStream(); this.hashAlgId.encode(tmp); tmp.putOctetString(this.issuerNameHash); tmp.putOctetString(this.issuerKeyHash); this.certSerialNumber.encode(tmp); out.write((byte) 48, tmp); } public int hashCode() { if (this.myhash == -1) { int i; this.myhash = this.hashAlgId.hashCode(); for (i = 0; i < this.issuerNameHash.length; i++) { this.myhash += this.issuerNameHash[i] * i; } for (i = 0; i < this.issuerKeyHash.length; i++) { this.myhash += this.issuerKeyHash[i] * i; } this.myhash += this.certSerialNumber.getNumber().hashCode(); } return this.myhash; } public boolean equals(Object other) { if (this == other) { return true; } if (other == null || ((other instanceof CertId) ^ 1) != 0) { return false; } CertId that = (CertId) other; return this.hashAlgId.equals(that.getHashAlgorithm()) && Arrays.equals(this.issuerNameHash, that.getIssuerNameHash()) && Arrays.equals(this.issuerKeyHash, that.getIssuerKeyHash()) && this.certSerialNumber.getNumber().equals(that.getSerialNumber()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("CertId \n"); sb.append("Algorithm: ").append(this.hashAlgId.toString()).append("\n"); sb.append("issuerNameHash \n"); HexDumpEncoder encoder = new HexDumpEncoder(); sb.append(encoder.encode(this.issuerNameHash)); sb.append("\nissuerKeyHash: \n"); sb.append(encoder.encode(this.issuerKeyHash)); sb.append("\n").append(this.certSerialNumber.toString()); return sb.toString(); } }
[ "toor@debian.toor" ]
toor@debian.toor
a823100723acd372ee7ffe871f884d4c65b49470
968447bedbea5842c2d0f62ff47c0bd4c2258012
/patterns/interpreter/barista/interpreter/Drink.java
a984b05bdfced59828360562d8aa58f35d39118a
[]
no_license
paulnguyen/cmpe202
5c3fe070515e4664385ca8fde5d97564f35557e4
153b243e888f083733a180c571e0290ec49a67dd
refs/heads/master
2022-12-14T13:14:04.001730
2022-11-12T21:56:09
2022-11-12T21:56:09
10,661,668
53
441
null
2022-12-06T19:25:07
2013-06-13T08:09:27
Java
UTF-8
Java
false
false
956
java
package interpreter ; public class Drink implements Expression { public String interpret(String option) { String[] split1 = option.split("\\[") ; String[] split2 = split1[1].split("\\]") ; String value = split2[0] ; if ( "A".equals(value) ) return "Caffe Americano\n" ; else if ( "L".equals(value) ) return "Latte\n" ; else if ( "M".equals(value) ) return "Caffe Mocha\n" ; else if ( "C".equals(value) ) return "Cappuccino\n" ; else if ( "CM".equals(value) ) return "Caramel Macchiato\n" ; else if ( "CDL".equals(value) ) return "Cinnamon Dolce Latte\n" ; else if ( "E".equals(value) ) return "Espresso\n" ; else if ( "ECP".equals(value) ) return "Espresso Con Panna\n" ; else return "Unkown Drink Option: " + value + "\n" ; } }
[ "paul.nguyen@sjsu.edu" ]
paul.nguyen@sjsu.edu
a0d6109a792463d4e0821b04d0fd73fed950c61b
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Time/9/org/joda/time/base/AbstractInterval_isAfter_321.java
8b0d0d276e877cb7b424d34021fd1e1b24c25d9b
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
1,075
java
org joda time base abstract interv abstractinterv common behaviour time interv gener directli api user link readabl interv readableinterv kind interv referenc abstract interv abstractinterv subclass mutabl thread safe author brian neill o'neil author stephen colebourn abstract interv abstractinterv readabl interv readableinterv time interv millisecond instant interv inclus start instant exclus end param milli instant millisinst instant compar millisecond instant t00 01t00 00z time interv instant isaft milli instant millisinst start milli getstartmilli milli instant millisinst
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
27668731e5e4df0f5705437dd598025eb31fc5bf
94408e7db20441cbf183054cc45f76084a7e8edf
/src/main/java/com/mjx/service/impl/UserServiceImpl.java
f751448ff9051c75a8edc5f3a6127b470caddc2b
[]
no_license
miaojiaxin/ssm
de3799894ee3b5f3e1f488aea082bce685aad776
0fe35a37173c5855b2d1911ad2a1825b22a5df19
refs/heads/master
2023-04-29T00:16:31.743580
2021-05-08T15:05:22
2021-05-08T15:05:22
365,542,206
0
0
null
null
null
null
UTF-8
Java
false
false
671
java
package com.mjx.service.impl; import com.mjx.dao.User; import com.mjx.domain.UserClass; import com.mjx.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; /** * @author mjx * @create 2021-05-07 20:05 */ @Service public class UserServiceImpl implements UserService { @Resource private User userDao ; @Override public int addUser(UserClass user) { int i = userDao.insertUser(user); return i; } @Override public List<UserClass> findUsers() { return userDao.selectUsers(); } }
[ "123" ]
123
e33aa0d19e76e9f9b58833ec65c94af6cc57b9cb
c8bb8f434b7d8b39b433dc2decbfc0c18263c3ea
/transaction.java
3afbe33c4526e19fa49ec06a5a56d99c7e734e92
[]
no_license
takagotch/JDBC
f5539bdf678b872275e1bb2182df8f69839c465c
ad6dcfcabd28149cf3affbea2753ec71800e2190
refs/heads/master
2018-09-30T16:41:16.662809
2018-06-10T23:19:48
2018-06-10T23:19:48
120,474,463
0
0
null
null
null
null
UTF-8
Java
false
false
871
java
import java.sql.*; import oracle.jdbc.driver.*; public clas jdbcTest{ jdbcTest(){ } public static void main(String args[]){ try{ DriverManager.registerDriver( new OracleDriver()); Connection connection = DriverManager.getConnection("jdbc:oracle:thin", "scott", "tiger"); connection.setAutoCommit(false); Statement statement = connection.createStatement(); try{ statement.execute( "INSERT INTO foo VALUES('tky', 23, '090-1111-1111')"); statement.execute( "INSERT INTO foo VALUES('tky', 23, '090-2222-2222')"); connection.commit(); } catch(SQLException ex){ System.out.println(ex.toString()); connection.rollback(); } statement.close(); connection.close(); } catch(SQLException ex){ System.out.println(ex.toString()); } } }
[ "dyaccb@gmail.com" ]
dyaccb@gmail.com
0d87e045553af5a542bd859311b3ff9b02831475
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
/sources/com/google/android/exoplayer2/source/DefaultCompositeSequenceableLoaderFactory.java
4cc867eda2697b6fa39400a794bbdd3d9d1ee443
[]
no_license
Auch-Auch/avito_source
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
76fdcc5b7e036c57ecc193e790b0582481768cdc
refs/heads/master
2023-05-06T01:32:43.014668
2021-05-25T10:19:22
2021-05-25T10:19:22
370,650,685
0
0
null
null
null
null
UTF-8
Java
false
false
434
java
package com.google.android.exoplayer2.source; public final class DefaultCompositeSequenceableLoaderFactory implements CompositeSequenceableLoaderFactory { @Override // com.google.android.exoplayer2.source.CompositeSequenceableLoaderFactory public SequenceableLoader createCompositeSequenceableLoader(SequenceableLoader... sequenceableLoaderArr) { return new CompositeSequenceableLoader(sequenceableLoaderArr); } }
[ "auchhunter@gmail.com" ]
auchhunter@gmail.com
88dfcde8eb0e5e1423c52b5d82e3bb8c2bda19ad
ad0300c29aa79d6b25e430efd128344f1c283369
/clojure/core_sync.java
f23df5aa796f8b7de3073a93e46b18622170196f
[]
no_license
galdolber/clojure-core-java
d7cedc6e68d3755f3ff446e9bbec988d8739c74d
1ef06a7ecd400fa9f91cb17f636ebcf308f3b320
refs/heads/master
2016-09-10T12:52:54.014593
2014-01-25T22:04:10
2014-01-25T22:04:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,115
java
package clojure; import clojure.lang.*; public final class core_sync extends clojure.lang.RestFn { public static final clojure.lang.Var const__0; public static final clojure.lang.Var const__1; public static final clojure.lang.Var const__2; public static final clojure.lang.Symbol const__3; public static final clojure.lang.Symbol const__4; public static final clojure.lang.Symbol const__5; public static final clojure.lang.Symbol const__6; public static final clojure.lang.Var const__7; public static final clojure.lang.Var const__8; static { const__0 = (clojure.lang.Var)RT.var("clojure.core", "seq"); const__1 = (clojure.lang.Var)RT.var("clojure.core", "concat"); const__2 = (clojure.lang.Var)RT.var("clojure.core", "list"); const__3 = (clojure.lang.Symbol)Symbol.intern(null, "."); const__4 = (clojure.lang.Symbol)Symbol.intern(null, "clojure.lang.LockingTransaction"); const__5 = (clojure.lang.Symbol)Symbol.intern("clojure.core", "runInTransaction"); const__6 = (clojure.lang.Symbol)Symbol.intern("clojure.core", "fn"); const__7 = (clojure.lang.Var)RT.var("clojure.core", "apply"); const__8 = (clojure.lang.Var)RT.var("clojure.core", "vector"); } public core_sync() { super(); } public java.lang.Object doInvoke(java.lang.Object _AMPERSAND_form1, java.lang.Object _AMPERSAND_env2, java.lang.Object flags_ignored_for_now3, java.lang.Object body4) { return ((IFn)const__0.getRawRoot()).invoke(((IFn)const__1.getRawRoot()).invoke(((IFn)const__2.getRawRoot()).invoke(const__3), ((IFn)const__2.getRawRoot()).invoke(const__4), ((IFn)const__2.getRawRoot()).invoke(((IFn)const__0.getRawRoot()).invoke(((IFn)const__1.getRawRoot()).invoke(((IFn)const__2.getRawRoot()).invoke(const__5), ((IFn)const__2.getRawRoot()).invoke(((IFn)const__0.getRawRoot()).invoke(((IFn)const__1.getRawRoot()).invoke(((IFn)const__2.getRawRoot()).invoke(const__6), ((IFn)const__2.getRawRoot()).invoke(((IFn)const__7.getRawRoot()).invoke(const__8.getRawRoot(), ((IFn)const__0.getRawRoot()).invoke(((IFn)const__1.getRawRoot()).invoke()))), body4)))))))); } public int getRequiredArity() { return 3; } }
[ "gal.dolber@gmail.com" ]
gal.dolber@gmail.com
92af84017b6c8f09cae634a54ac5ba8be317cd64
d54cc14cd058d20f27c56107b88d76cc27d4fd29
/leopard-boot-mvc-parent/leopard-boot-xparam/src/main/java/io/leopard/boot/xparam/SizeXParam.java
1e7d907f306bac9dc6e06239aec538dc0899207e
[ "Apache-2.0" ]
permissive
ailu5949/leopard-boot
a59cea1a03b1b41712d29cf4091be76dca8316a7
33201a2962821475772a53ddce64f7f823f62242
refs/heads/master
2020-04-02T09:28:01.286249
2018-10-23T08:46:00
2018-10-23T08:46:00
154,294,038
1
0
Apache-2.0
2018-10-23T08:46:20
2018-10-23T08:46:20
null
UTF-8
Java
false
false
1,759
java
package io.leopard.boot.xparam; import java.lang.annotation.Annotation; import javax.servlet.http.HttpServletRequest; import org.springframework.core.MethodParameter; import org.springframework.stereotype.Service; /** * 获取当前页码. * * @author 阿海 * */ @Service public class SizeXParam implements XParam { @Override public Object getValue(HttpServletRequest request, MethodParameter parameter) { int size = XParamUtil.toInt(request.getParameter("size")); if (size <= 0) { size = this.getSize(parameter); } if (size <= 0) { size = 10; } // request.setAttribute("paging_size", size);// TODO ahai 耦合 return size; } // TODO ahai 增加缓存 protected int getSize(MethodParameter parameter) { if (this.getKey().equalsIgnoreCase(parameter.getParameterName())) { None none = parameter.getParameterAnnotation(None.class); if (none == null) { return 0; } else { return Integer.parseInt(none.value()); } } String[] names = XParamUtil.getParameterNames(parameter); Annotation[][] annotations = parameter.getMethod().getParameterAnnotations(); for (int i = 0; i < names.length; i++) { if (this.getKey().equalsIgnoreCase(names[i])) { None none = find(annotations[i]); if (none == null) { return 0; } else { return Integer.parseInt(none.value()); } } } return 0; } protected None find(Annotation[] annotations) { for (Annotation anno : annotations) { if (anno instanceof None) { return (None) anno; } } return null; } @Override public String getKey() { return "size"; } // @Override // public void override(XParam xparam) { // // } }
[ "tanhaichao@gmail.com" ]
tanhaichao@gmail.com
cc965a8bde3d599646983b047b71d9b1bc8a3fb1
b1af7c61dcea66cb9e94806359818a464879dbe7
/bssv/JP56E002/valueobject/B5643512Reply.java
a2cc11cb570db4b6cdcae8bc5e1f102966aaab64
[]
no_license
PPatel0212/Java-Web-Services-JDE
aa8c17bac68a73db153de903129246bf2d1f06ae
c296873106455f69aa541e45ae73a15756e9a413
refs/heads/master
2022-12-29T18:17:41.801803
2020-10-07T21:09:57
2020-10-07T21:09:57
264,015,732
0
0
null
2020-06-22T01:14:32
2020-05-14T20:15:26
Java
UTF-8
Java
false
false
3,413
java
package be.e1.bssv.JP56E002.valueobject; import java.io.Serializable; import oracle.e1.bssvfoundation.base.MessageValueObject; /** * TODO: Java Doc comments for Value Object here */ public class B5643512Reply extends MessageValueObject implements Serializable { /** * Printer Name * <p> * TODO: Description using Glossary Text from EnterpriseOne if appropriate. * </p> * TODO: EnterpriseOne Key Field: false <br> * EnterpriseOne Alias: PNTR <br> * EnterpriseOne field length: 30 <br> */ private String printerName = null; /** * Version History * <p> * TODO: Description using Glossary Text from EnterpriseOne if appropriate. * </p> * TODO: EnterpriseOne Key Field: false <br> * EnterpriseOne Alias: VERS <br> * EnterpriseOne field length: 10 <br> */ private String versionHistory = null; /** * Document (Voucher, Invoice, etc.) * <p> * TODO: Description using Glossary Text from EnterpriseOne if appropriate. * </p> * TODO: EnterpriseOne Key Field: false <br> * EnterpriseOne Alias: DOC <br> * EnterpriseOne field length: 8 <br> * EnterpriseOne decimal places: 0 <br> */ private Integer documentVoucherInvoiceetc = null; /** * Document Company * <p> * TODO: Description using Glossary Text from EnterpriseOne if appropriate. * </p> * TODO: EnterpriseOne Key Field: false <br> * EnterpriseOne Alias: KCO <br> * EnterpriseOne field length: 5 <br> */ private String documentCompany = null; /** * Document Type * <p> * TODO: Description using Glossary Text from EnterpriseOne if appropriate. * </p> * TODO: EnterpriseOne Key Field: false <br> * EnterpriseOne Alias: DCT <br> * EnterpriseOne field length: 2 <br> */ private String documentType = null; /** * TODO: Default public constructor for instantiating: B5643512Reply */ public B5643512Reply() { } public B5643512Reply(B5643512Internal intVO){ this.setDocumentCompany(intVO.getSzCompanyKey()); this.setDocumentType(intVO.getSzDocumentType()); this.setDocumentVoucherInvoiceetc(intVO.getMnDocVoucherInvoiceE().intValue()); this.setPrinterName(intVO.getSzPrinterName()); this.setVersionHistory(intVO.getSzVersion()); } public void setPrinterName(String printerName) { this.printerName = printerName; } public String getPrinterName() { return printerName; } public void setVersionHistory(String versionHistory) { this.versionHistory = versionHistory; } public String getVersionHistory() { return versionHistory; } public void setDocumentVoucherInvoiceetc(Integer documentVoucherInvoiceetc) { this.documentVoucherInvoiceetc = documentVoucherInvoiceetc; } public Integer getDocumentVoucherInvoiceetc() { return documentVoucherInvoiceetc; } public void setDocumentCompany(String documentCompany) { this.documentCompany = documentCompany; } public String getDocumentCompany() { return documentCompany; } public void setDocumentType(String documentType) { this.documentType = documentType; } public String getDocumentType() { return documentType; } }
[ "parineeta.ailani@gmail.com" ]
parineeta.ailani@gmail.com
3607a18206d8a3e14b60fccca1d1ad61728c11b6
5eae683a6df0c4b97ab1ebcd4724a4bf062c1889
/bin/ext-integration/sap/asynchronousOM/saporderexchange/testsrc/de/hybris/platform/sap/orderexchange/outbound/impl/DefaultPaymentContributorTest.java
e4dec3db05804b5ab98dae8af94c5440c0df2fcd
[]
no_license
sujanrimal/GiftCardProject
1c5e8fe494e5c59cca58bbc76a755b1b0c0333bb
e0398eec9f4ec436d20764898a0255f32aac3d0c
refs/heads/master
2020-12-11T18:05:17.413472
2020-01-17T18:23:44
2020-01-17T18:23:44
233,911,127
0
0
null
2020-06-18T15:26:11
2020-01-14T18:44:18
null
UTF-8
Java
false
false
3,810
java
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with SAP. */ package de.hybris.platform.sap.orderexchange.outbound.impl; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import de.hybris.bootstrap.annotations.UnitTest; import de.hybris.platform.core.model.order.OrderModel; import de.hybris.platform.core.model.order.payment.CreditCardPaymentInfoModel; import de.hybris.platform.payment.model.PaymentTransactionModel; import de.hybris.platform.sap.orderexchange.constants.OrderCsvColumns; import de.hybris.platform.sap.orderexchange.constants.PaymentCsvColumns; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.junit.Before; import org.junit.Test; @SuppressWarnings("javadoc") @UnitTest public class DefaultPaymentContributorTest { private static final String SUBSCRIPTION_ID = "SubscriptionId"; private static final String OWNER = "Owner"; private static final String VALID_TO_YEAR = "ValidToYear"; private static final String VALID_TO_MONTH = "ValidToMonth"; private static final String REQUEST_ID = "RequestId"; private static final String PAYMENT_PROVIDER = "PaymentProvider"; private static final String CODE = "Code"; private DefaultPaymentContributor cut; @Before public void setUp() { cut = new DefaultPaymentContributor(){ @Override public Map<String, String> getBatchIdAttributes() { Map<String, String> batchIdAttributes = new HashMap<String, String>(); batchIdAttributes.put("dh_batchId", "000001"); batchIdAttributes.put("dh_sourceId", "HYBRIS"); batchIdAttributes.put("dh_type", "SALESORDER_CREATE"); return batchIdAttributes; } }; } @Test public void testGetColumns() { final Set<String> columns = cut.getColumns(); assertTrue(columns.contains(OrderCsvColumns.ORDER_ID)); assertTrue(columns.contains(PaymentCsvColumns.CC_OWNER)); assertTrue(columns.contains(PaymentCsvColumns.VALID_TO_MONTH)); assertTrue(columns.contains(PaymentCsvColumns.VALID_TO_YEAR)); assertTrue(columns.contains(PaymentCsvColumns.SUBSCRIPTION_ID)); assertTrue(columns.contains(PaymentCsvColumns.PAYMENT_PROVIDER)); assertTrue(columns.contains(PaymentCsvColumns.REQUEST_ID)); } @Test public void testCreateRow() { final OrderModel order = new OrderModel(); final PaymentTransactionModel payment = new PaymentTransactionModel(); final CreditCardPaymentInfoModel paymentInfo = new CreditCardPaymentInfoModel(); order.setPaymentTransactions(Arrays.asList(payment)); order.setPaymentInfo(paymentInfo); order.setCode(CODE); payment.setPaymentProvider(PAYMENT_PROVIDER); payment.setRequestId(REQUEST_ID); paymentInfo.setCcOwner(OWNER); paymentInfo.setValidToMonth(VALID_TO_MONTH); paymentInfo.setValidToYear(VALID_TO_YEAR); paymentInfo.setSubscriptionId(SUBSCRIPTION_ID); final List<Map<String, Object>> rows = cut.createRows(order); final Map<String, Object> row = rows.get(0); assertEquals(CODE, row.get(OrderCsvColumns.ORDER_ID)); assertEquals(PAYMENT_PROVIDER, row.get(PaymentCsvColumns.PAYMENT_PROVIDER)); assertEquals(REQUEST_ID, row.get(PaymentCsvColumns.REQUEST_ID)); assertEquals(OWNER, row.get(PaymentCsvColumns.CC_OWNER)); assertEquals(VALID_TO_MONTH, row.get(PaymentCsvColumns.VALID_TO_MONTH)); assertEquals(VALID_TO_YEAR, row.get(PaymentCsvColumns.VALID_TO_YEAR)); assertEquals(SUBSCRIPTION_ID, row.get(PaymentCsvColumns.SUBSCRIPTION_ID)); } }
[ "travis.d.crawford@accenture.com" ]
travis.d.crawford@accenture.com
66b177ce9252d45cabecfb816f4302f42f7f79f4
4f4f84152b04246be5c323d20083ea3d00319ffc
/app/neuralnet/ensemble/training/LevenbergMarquardtFactory.java
f0f3d3cc530833073c4b10f3c3222274b78df28e
[ "Apache-2.0" ]
permissive
GeorgeIwu/breast-cancer-prognosis
0d2f1d63b02c23e9afec1176d4bfe6e3e4feab58
98ef64dbe049bc2866386a8f8eebdff473ef9f9c
refs/heads/master
2021-08-11T05:01:49.585167
2017-11-13T06:16:30
2017-11-13T06:16:30
110,506,755
0
0
null
null
null
null
UTF-8
Java
false
false
1,787
java
/* * Encog(tm) Core v3.3 - Java Version * http://www.heatonresearch.com/encog/ * https://github.com/encog/encog-java-core * Copyright 2008-2014 Heaton Research, 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. * * For more information on Heaton Research copyrights, licenses * and trademarks visit: * http://www.heatonresearch.com/copyright */ package neuralnet.ensemble.training; import neuralnet.ensemble.EnsembleTrainFactory; import neuralnet.ml.MLMethod; import neuralnet.ml.data.MLDataSet; import neuralnet.ml.train.MLTrain; import neuralnet.neural.networks.BasicNetwork; import neuralnet.neural.networks.training.lma.LevenbergMarquardtTraining; public class LevenbergMarquardtFactory implements EnsembleTrainFactory { @Override public MLTrain getTraining(MLMethod mlMethod, MLDataSet trainingData) { return this.getTraining(mlMethod, trainingData, 0); } @Override public MLTrain getTraining(MLMethod mlMethod, MLDataSet trainingData, double dropoutRate) { return (MLTrain) new LevenbergMarquardtTraining((BasicNetwork) mlMethod, trainingData); } @Override public String getLabel() { return "LMQ"; } @Override public void setDropoutRate(double rate) { throw new RuntimeException("LMQ does not support dropout rates"); } }
[ "c.georgeiwu@gmail.com" ]
c.georgeiwu@gmail.com
fe8d64ce8e6aa744dbf0641a876ae930723e643f
b4048016903ba8b8666142f67ed10d24592c5745
/app/src/main/java/com/thinkcoo/mobile/model/rest/ServerResponse.java
b026eb91396c65c6d862b9d633b7aea927883211
[]
no_license
yaolu0311/ThinkcooMobileRefactor
eeb88f595a7b2a102121bd6c5dcfb2e4fa117539
1e4df57dc6039e3bfaf65f32541c2b99b4d464ad
refs/heads/master
2021-01-01T05:21:19.696865
2016-05-22T14:19:13
2016-05-22T14:19:13
59,281,146
0
1
null
null
null
null
UTF-8
Java
false
false
1,943
java
package com.thinkcoo.mobile.model.rest; import android.util.Log; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import java.lang.reflect.Type; import java.util.Collections; import java.util.List; /** * Created by Robert.yao on 2016/3/22. */ public class ServerResponse { public static final String TAG = "ServerResponse"; public static final String STATUS_OK = "1"; private String msg; private String status; private String data; public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public String getData() { return data; } public void setData(String data) { this.data = data; } public boolean isSuccess() { return status.equals(STATUS_OK); } public <T extends Object> T getDataEntity(T onExceptionHappendReturnEntity) { Gson gson = new Gson(); try{ Type type = new TypeToken<T>() {}.getType(); T t = gson.fromJson(data,type); return t; }catch (Exception e){ Log.e(TAG,e.getMessage(),e); return onExceptionHappendReturnEntity; } } public <T extends Object> List<T> getDataEntityList(){ Gson gson = new Gson(); List<T> list = null; try { list = gson.fromJson(data, new TypeToken<List<T>>() { }.getType()); }catch (Exception e) { Log.e(TAG,e.getMessage(),e); } return processNullList(list); } private <T extends Object> List<T> processNullList(List<T> list) { if (null == list ){ return Collections.emptyList(); }else { return list; } } }
[ "yaolu0311@163.com" ]
yaolu0311@163.com
599797ff3e9968d30bbafc8360cbfdf316065a27
9a9f93532adb7a26307270a0f6876e24658117cd
/app/src/main/java/com/video/newqu/bean/ChatEmoji.java
19fb1a3dd1e8bfead0b7d9732c85ae4657cf4af4
[]
no_license
jinkailong888/Video
fda7c0606eff676ca6672000c620fd8832af43d6
4513c2de0380b09896d9f2d5a5ff1c16f80854ec
refs/heads/master
2020-04-24T08:55:37.866468
2018-04-28T09:20:59
2018-04-28T09:20:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,016
java
package com.video.newqu.bean; /** * TinyHung@outlook.com * 2017/6/13 17:36 * 永固个人中心的视频列表 */ public class ChatEmoji { /** 表情资源图片对应的ID */ private int id; /** 表情资源对应的文字描述 */ private String character; /** 表情资源的文件名 */ private String faceName; /** 表情资源图片对应的ID */ public int getId() { return id; } /** 表情资源图片对应的ID */ public void setId(int id) { this.id=id; } /** 表情资源对应的文字描述 */ public String getCharacter() { return character; } /** 表情资源对应的文字描述 */ public void setCharacter(String character) { this.character=character; } /** 表情资源的文件名 */ public String getFaceName() { return faceName; } /** 表情资源的文件名 */ public void setFaceName(String faceName) { this.faceName=faceName; } }
[ "584312311@qq.com" ]
584312311@qq.com
4ee8cf4b2a18480d39d9f3c83d8e239e011fd062
6baf1fe00541560788e78de5244ae17a7a2b375a
/hollywood/com.oculus.updater-OSUpdater/sources/com/facebook/acra/anr/ANRDetectorRunnable.java
58942cf5c4a035280c7e1d4f6d7692b0f69c02fd
[]
no_license
phwd/quest-tracker
286e605644fc05f00f4904e51f73d77444a78003
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
refs/heads/main
2023-03-29T20:33:10.959529
2021-04-10T22:14:11
2021-04-10T22:14:11
357,185,040
4
2
null
2021-04-12T12:28:09
2021-04-12T12:28:08
null
UTF-8
Java
false
false
366
java
package com.facebook.acra.anr; import com.facebook.infer.annotation.Nullsafe; @Nullsafe(Nullsafe.Mode.LOCAL) public class ANRDetectorRunnable implements Runnable { private volatile int mTick = 0; public synchronized void run() { this.mTick = (this.mTick + 1) % 10; } public synchronized int getTick() { return this.mTick; } }
[ "cyuubiapps@gmail.com" ]
cyuubiapps@gmail.com
b3f11c30d6b0977663422eab71e3dd8921796d1a
fd9ef6499e17b014f02c7ea32676230b0de02c31
/one-code-gen/src/main/java/com/lcw/one/codegen/core/generate/impl/VueEditGenerator.java
da4d7f62b73cf27925bcbd51d02fcedc13e4a837
[]
no_license
javaso/one
2ce69cea99c5160eda01d54e0f0d3dc7f82a1dbf
5bde557919e541242156605ca8b76eedbc522624
refs/heads/master
2020-03-28T12:19:37.398170
2018-09-02T15:30:15
2018-09-02T15:30:52
148,288,049
2
0
null
2018-09-11T08:48:57
2018-09-11T08:48:57
null
UTF-8
Java
false
false
1,773
java
package com.lcw.one.codegen.core.generate.impl; import com.lcw.one.codegen.bean.CodeBean; import com.lcw.one.codegen.bean.CodeGenStrategy; import com.lcw.one.codegen.bean.TableGen; import com.lcw.one.codegen.core.generate.IGenerator; import com.lcw.one.codegen.core.template.impl.BeeTlTemplateImpl; import com.lcw.one.codegen.core.template.IFillTemplate; import com.lcw.one.codegen.util.CodeGenUtil; import com.lcw.one.base.config.GlobalConfig; import java.io.File; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; public class VueEditGenerator implements IGenerator { private IFillTemplate iFillTemplate = new BeeTlTemplateImpl(); @Override public List<CodeBean> generate(TableGen table, CodeGenStrategy strategy) { Map<String, Object> params = new HashMap<>(); params.put("table", table); params.put("strategy", strategy); params.put("restPath", GlobalConfig.getRestApiPath()); params.put("moduleName", strategy.getModuleSimpleName()); params.put("fieldListLength", table.getFieldList().size()); CodeBean vueCodeBean = generateVue(table, strategy.getModuleSimpleName(), params); return Arrays.asList(vueCodeBean); } public CodeBean generateVue(TableGen table, String moduleName, Map<String, Object> params) { String code = iFillTemplate.fill("VueEdit.vue", params); String path = getVuePath(table, moduleName); return new CodeBean(code, path); } public String getVuePath(TableGen table, String moduleName) { return CodeGenUtil.getUICodeSavePath() + "views" + File.separator + moduleName + File.separator + table.getRestPath() + File.separator + table.getClassNameNoEO() + "Edit.vue"; } }
[ "lcw2004@163.com" ]
lcw2004@163.com
f92585bc9931038244c6d5a171a07b7ed3f3092b
f43d5de70d14179639192e091c923ccd27112faa
/src/com/codeHeap/threads/optimisticBlocking/FastSimulationV2.java
33aa7a20625707379e48eb97971ba9cca909a6d6
[]
no_license
basumatarau/trainingJavaCore
2c80d02d539fc6e2e599f6e9240e8f6543ef1bdf
1efc944b77b1ac7aea44bee89b84daa843670630
refs/heads/master
2020-04-04T23:13:47.929352
2019-01-09T09:51:35
2019-01-09T09:51:35
156,351,368
0
0
null
null
null
null
UTF-8
Java
false
false
1,828
java
package com.codeHeap.threads.optimisticBlocking; import java.util.Random; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; public class FastSimulationV2 { static final int N_ELEMENTS = 100000; static final int N_GENES = 30; static final int N_EVOLVERS = 50; static final int[][] GRID = new int[N_ELEMENTS][N_GENES]; private static long mutationCounter = 0; static Random random = new Random(47); static class Evolver implements Runnable{ @Override public void run() { while(!Thread.interrupted()){ int element = random.nextInt(N_ELEMENTS); for (int i = 0; i < N_GENES; i++) { int previous = element - 1; if(previous<0) previous = N_ELEMENTS - 1; int next = element + 1; if(next>=N_ELEMENTS){ next = 0; } synchronized (GRID) { mutationCounter++; GRID[element][i] += GRID[previous][i] + GRID[next][i]; } } } } } public static void main(String[] args) throws InterruptedException{ ExecutorService executorService = Executors.newCachedThreadPool(); for (int i = 0; i < N_ELEMENTS; i++) { for (int j = 0; j < N_GENES; j++) { GRID[i][j] = random.nextInt(); } } for (int i = 0; i < N_EVOLVERS; i++) { executorService.execute(new Evolver()); } TimeUnit.MILLISECONDS.sleep(5000); executorService.shutdownNow(); System.out.println("Mutations: " + mutationCounter); } }
[ "basumatarau@gmail.com" ]
basumatarau@gmail.com
5815b502aeb2339f2d7f712df462334527881335
1b1c401d5facb2839c233773fcebefe346f3c076
/reactorplugin/src/main/java/chabernac/reactorplugin/PlusMinStatementFactory.java
914b37d608ab8f0f53d33cae3962c460baf40745
[]
no_license
guychauliac/p2pmessenger
a0836cc8ff9c83b5ba95879f0ebfc8d5a1eea321
1652844014ddb9de00497505ffb14f122adcf57a
refs/heads/master
2023-05-09T01:29:36.992687
2017-11-20T15:09:57
2017-11-20T15:09:57
43,264,205
0
0
null
2021-06-04T01:00:10
2015-09-27T20:43:38
Java
UTF-8
Java
false
false
1,816
java
/** * Copyright (c) 2011 Axa Holding Belgium, SA. All rights reserved. * This software is the confidential and proprietary information of the AXA Group. */ package chabernac.reactorplugin; import java.util.Random; public class PlusMinStatementFactory implements iStatementFactory { private final Random myRandom = new Random(); private final int myLimit = 20; private final int myTrueFactor = 3; private final String[] myOperations = new String[]{"+","-"}; @Override public AbstractStatement createStatement() { int theVar1 = Math.abs(myRandom.nextInt() % myLimit); int theVar2 = Math.abs(myRandom.nextInt() % myLimit); boolean isTrue = (myRandom.nextInt() % myTrueFactor == 0); String theOperation = myOperations[Math.abs( myRandom.nextInt()) % myOperations.length]; int theResult = getResult( theVar1, theVar2,theOperation, isTrue); return new PlusMinStatement( theOperation, theVar1, theVar2, theResult); } private int getResult(int aVar1, int aVar2, String anOperation, boolean isTrue){ if("+".equals( anOperation)){ int theTrueResult = aVar1 + aVar2; if(isTrue) { return theTrueResult; } else { int theResult = theTrueResult; while( theResult == theTrueResult){ theResult = Math.abs(myRandom.nextInt() % (2 * myLimit)); } return theResult; } } else if("-".equals( anOperation)){ int theTrueResult = aVar1 - aVar2; if(isTrue) { return theTrueResult; } else { int theResult = theTrueResult; while( theResult == theTrueResult){ theResult = myRandom.nextInt() % myLimit; } return theResult; } } return 0; } }
[ "guy.chauliac@418331b0-0465-11df-b0f7-87f4a55fea09" ]
guy.chauliac@418331b0-0465-11df-b0f7-87f4a55fea09
9b115a70d05e276ce39fbc22dfb44325aa70a41b
6ee92ecc85ba29f13769329bc5a90acea6ef594f
/bizcore/WEB-INF/caf_custom_src/com/terapico/caf/appview/CRGroupData.java
b617ae3676a311b4ab2a4b8a0fa990c7b92b59ed
[]
no_license
doublechaintech/scm-biz-suite
b82628bdf182630bca20ce50277c41f4a60e7a08
52db94d58b9bd52230a948e4692525ac78b047c7
refs/heads/master
2023-08-16T12:16:26.133012
2023-05-26T03:20:08
2023-05-26T03:20:08
162,171,043
1,387
500
null
2023-07-08T00:08:42
2018-12-17T18:07:12
Java
UTF-8
Java
false
false
3,863
java
package com.terapico.caf.appview; import com.terapico.changerequest.CRSpec; import com.terapico.utils.CollectionUtils; import com.terapico.utils.MapUtil; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class CRGroupData { protected String id; protected String name; // : person_info.male, > group的命名保证整个CR中不重复即可 protected String title; // : 男方信息 protected boolean hidden; // protected List<CRFieldData> fieldList; protected List<CRAction> actionList; protected Map<String, CRAction> actions; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public boolean isHidden() { return hidden; } public void setHidden(boolean hidden) { this.hidden = hidden; } public List<CRFieldData> getFieldList() { return fieldList; } public void setFieldList(List<CRFieldData> fieldList) { this.fieldList = fieldList; } public List<CRAction> getActionList() { return actionList; } public void setActionList(List<CRAction> actionList) { this.actionList = actionList; } public Map<String, CRAction> getActions() { return actions; } public void setActions(Map<String, CRAction> actions) { this.actions = actions; } /* * ******** ********** ************ */ public void addField(CRFieldData fieldData) { ensureFieldList().add(fieldData); } protected List<CRFieldData> ensureFieldList() { if (this.getFieldList() == null) { this.setFieldList(new ArrayList<>()); } return this.getFieldList(); } public void addAction(CRSpec crSpec, String code, String title, String url) { CRAction action = new CRAction(); action.setCode(code); action.setTitle(title); action.setLinkToUrl(url); ensureActionList().add(action); ensureActions().put(code, action); } protected List<CRAction> ensureActionList() { if (actionList == null) { actionList = new ArrayList<>(); } return actionList; } protected Map<String, CRAction> ensureActions() { if (actions == null) { actions = new HashMap<>(); } return actions; } public CRFieldSelector tryField(String fieldId, String fieldName) { return new CRFieldSelector(this, fieldId, fieldName, false); } public CRFieldSelector ensureField(String fieldId, String fieldName) { return new CRFieldSelector(this, fieldId, fieldName, true); } public void addPreviousExistsInList(List<Object> existsRecordList) { if (existsRecordList == null || existsRecordList.isEmpty()) { return; } CRFieldData data = makeCrFieldDataByExistsList(existsRecordList); fieldList.add(0, data); } public void addNextExistsInList(List<Object> existsRecordList) { if (existsRecordList == null || existsRecordList.isEmpty()) { return; } CRFieldData data = makeCrFieldDataByExistsList(existsRecordList); fieldList.add(data); } protected CRFieldData makeCrFieldDataByExistsList(List<Object> existsRecordList) { CRFieldData data = new CRFieldData(); data.setDisabled(true); data.setType("display-field"); data.setValue( MapUtil.put( "kids", CollectionUtils.toList( MapUtil.put("id", 1) .put("type", "listof") .put("list", existsRecordList) .into_map()) ).into_map()); data.setRequired(false); return data; } }
[ "zhangxilai@doublechaintech.com" ]
zhangxilai@doublechaintech.com
d4db77dc19a7db0883f7ffcc3201356f0f84f9f1
c8e89c3babc4982ed979171312ba80ec95b6cfdd
/app/src/main/java/cn/payadd/majia/entity/MonthPaymentBean.java
599b08f3ed74da81f5ad42c64b283309bf55be59
[]
no_license
bfylu/xybApp
0f1178f3dd0f8c6f4bc26907dce9c1a0569da654
878095f0a4c6f1833065ebd3177a7c5f2b489c69
refs/heads/master
2022-04-25T23:44:34.845805
2020-04-22T12:49:15
2020-04-22T12:49:15
257,886,543
0
0
null
null
null
null
UTF-8
Java
false
false
2,412
java
package cn.payadd.majia.entity; import java.util.List; /** * Created by lang on 2018/5/25. */ public class MonthPaymentBean extends BaseBean { private DataBean data; public DataBean getData() { return data; } public void setData(DataBean data) { this.data = data; } public class DataBean { private String installmentAmt; private int installmentMonth; private List<InstallmentMonthDetailBean> installmentMonthDetail; public String getInstallmentAmt() { return installmentAmt; } public void setInstallmentAmt(String installmentAmt) { this.installmentAmt = installmentAmt; } public int getInstallmentMonth() { return installmentMonth; } public void setInstallmentMonth(int installmentMonth) { this.installmentMonth = installmentMonth; } public List<InstallmentMonthDetailBean> getInstallmentMonthDetail() { return installmentMonthDetail; } public void setInstallmentMonthDetail(List<InstallmentMonthDetailBean> installmentMonthDetail) { this.installmentMonthDetail = installmentMonthDetail; } public class InstallmentMonthDetailBean { private int thePhase;//分期期数 private String repayDate;//分期还款日期 private String repayAmt;//还款金额 private String chargeAmt;//利息 public int getThePhase() { return thePhase; } public void setThePhase(int thePhase) { this.thePhase = thePhase; } public String getRepayDate() { return repayDate; } public void setRepayDate(String repayDate) { this.repayDate = repayDate; } public String getRepayAmt() { return repayAmt; } public void setRepayAmt(String repayAmt) { this.repayAmt = repayAmt; } public String getChargeAmt() { return chargeAmt; } public void setChargeAmt(String chargeAmt) { this.chargeAmt = chargeAmt; } } } }
[ "18279544224@163.com" ]
18279544224@163.com
096402d370345eddd701fa3b393f5d52b7c8ed65
acbb56922b48774b9c4d03a335d8c971dd64b80d
/GOLauncher1.5_main/src/com/jiubang/ggheart/data/theme/bean/ThemeNotifyBean.java
7a0f9044db8202f50eb94418af203ba47ad189a1
[]
no_license
Lakkichand/smartapp-src
91284c469308e9e40c45a7782d0bdb79c80bf9e2
1a174a9dd6a8a784d5faf204404e9a0abede4fa5
refs/heads/master
2021-01-10T16:51:09.042107
2015-03-28T15:15:06
2015-03-28T15:15:06
45,905,976
4
7
null
null
null
null
UTF-8
Java
false
false
1,459
java
package com.jiubang.ggheart.data.theme.bean; import android.graphics.drawable.Drawable; /** * * <br>类描述: * <br>功能详细描述: * * @author rongjinsong * @date [2012-11-8] */ public class ThemeNotifyBean { private boolean mShowMenu = false; //是否在菜单上显示new private long mShowStartTime; //显示开始时间 private long mShowEndTime; private String mShowContent; //显示内容 private String mShowIconUrl; private Drawable mDrawable; private int mType; public ThemeNotifyBean() { // TODO Auto-generated constructor stub } public void setIsShowMenu(boolean bool) { mShowMenu = bool; } public void setShowStatTime(long time) { mShowStartTime = time; } public void setShowEndTime(long time) { mShowEndTime = time; } public void setShowIconUrl(String url) { mShowIconUrl = url; } public boolean getIsShowMenu() { return mShowMenu; } public long getShowStatTime() { return mShowStartTime; } public long getShowEndTime() { return mShowEndTime; } public String getShowIconUrl() { return mShowIconUrl; } public Drawable getShowDrawable() { return mDrawable; } public void setShowDrawable(Drawable drawable) { mDrawable = drawable; } public void setType(int type) { mType = type; } public int getType() { return mType; } public String getShowContent() { return mShowContent; } public void setShowContent(String content) { mShowContent = content; } }
[ "yijiajia1988@gmail.com@702b21dd-f629-e120-7dff-525d4d49388d" ]
yijiajia1988@gmail.com@702b21dd-f629-e120-7dff-525d4d49388d