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
0f8f7dd883261db2fcae0c875858bba907050a82
069db98b04c2c2b306ca6d0911ecfaa9d3484291
/chis/src/main/java/ctd/mvc/controller/util/UserRoleTokenUtils.java
241daedea75cdee41b3011c81960d3471ffa19a1
[]
no_license
zhouhui521/his
59270696d3667c8c6eb8f7104af0a9501a90942a
8d26b62e73d6ec95111eff66ab9d7aee61674f73
refs/heads/master
2023-02-03T16:20:57.561243
2020-12-24T06:33:46
2020-12-24T06:33:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,774
java
package ctd.mvc.controller.util; import java.util.HashMap; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import ctd.account.AccountCenter; import ctd.account.UserRoleToken; import ctd.account.user.User; import ctd.controller.exception.ControllerException; import ctd.security.exception.SecurityException; import ctd.util.S; import ctd.util.exception.CodedBaseException; public class UserRoleTokenUtils { public static final String SESSION_UID_KEY = "uid"; public static final String SESSION_TOKEN_KEY = "token"; @SuppressWarnings("unchecked") public static UserRoleToken getUserRoleToken(HttpServletRequest request) throws CodedBaseException{ String uid; Integer urt =null; HttpSession httpSession = request.getSession(false); uid = request.getParameter(SESSION_UID_KEY); String temp = request.getParameter(SESSION_TOKEN_KEY); if(S.isEmpty(uid) || S.isEmpty(temp)){ if(httpSession != null){ uid = (String)httpSession.getAttribute(SESSION_UID_KEY); urt = (Integer)httpSession.getAttribute(SESSION_TOKEN_KEY); } }else{ urt = Integer.parseInt(temp); } if(uid == null || urt == null){ throw new SecurityException(SecurityException.NOT_LOGON, "NotLogon"); } User user = AccountCenter.getUser(uid); UserRoleToken token = user.getUserRoleToken(urt); if(token == null){ throw new ControllerException(ControllerException.INSTANCE_NOT_FOUND,"userRoleToken[" + urt + "] for user[" + uid + "] not found"); } if(httpSession != null){ HashMap<String, Object> prop = (HashMap<String, Object>)httpSession.getAttribute("properties"); if(prop != null && prop.size() > 0){ for(String k : prop.keySet()){ token.setProperty(k, prop.get(k)); } } } return token; } }
[ "renw1@bsoft.com.cn" ]
renw1@bsoft.com.cn
d97496a9db0504315db02d50ce4991597fdcbd6c
df33941899dbe882b18729dc5f2cff5cd409253f
/app/build/generated/source/apt/release/com/nciebt/zyj/adapter/AddProductAdapter$AddViewHolder_ViewBinding.java
c6a987a2e9efcf6d89436bf002bd0dc338f73785
[]
no_license
ghl7231699/zyj-ghl
2016b7dec209db9ba6d44dabbcc1d7b49b1ec1bd
a76aa79a47a5e4cfb90c0c435ad6ddf62b1ef3fd
refs/heads/master
2021-01-20T13:10:26.738116
2017-09-04T11:14:27
2017-09-04T11:14:27
101,736,386
0
0
null
null
null
null
UTF-8
Java
false
false
1,342
java
// Generated code from Butter Knife. Do not modify! package com.nciebt.zyj.adapter; import android.support.annotation.CallSuper; import android.support.annotation.UiThread; import android.view.View; import android.widget.Button; import android.widget.TextView; import butterknife.Unbinder; import butterknife.internal.Utils; import com.nciebt.zyj.R; import java.lang.IllegalStateException; import java.lang.Override; public class AddProductAdapter$AddViewHolder_ViewBinding implements Unbinder { private AddProductAdapter.AddViewHolder target; @UiThread public AddProductAdapter$AddViewHolder_ViewBinding(AddProductAdapter.AddViewHolder target, View source) { this.target = target; target.mAdd = Utils.findRequiredViewAsType(source, R.id.add_product_add, "field 'mAdd'", Button.class); target.mCheck = Utils.findRequiredViewAsType(source, R.id.add_product_check, "field 'mCheck'", Button.class); target.mName = Utils.findRequiredViewAsType(source, R.id.add_product_name, "field 'mName'", TextView.class); } @Override @CallSuper public void unbind() { AddProductAdapter.AddViewHolder target = this.target; if (target == null) throw new IllegalStateException("Bindings already cleared."); this.target = null; target.mAdd = null; target.mCheck = null; target.mName = null; } }
[ "ghl1149660196@163.com" ]
ghl1149660196@163.com
ce62a2b92d128b48c87364e8f0521d711e3c6e9b
3247360ea20edce37f6f2ab727a403644bd44497
/bitcamp-java-application4-server/v56_4/src/main/java/com/eomcs/lms/Servlet/LessonUpdateServlet.java
66d8dea2272b3b42f507314ffcdc2fa4da6a4185
[]
no_license
choitaehoon1998/bitcamp-java-20190527
57b1774d50f245b0b77016f0ae541710233010b6
2450c3042642df3eae2fc896e12c376c7d27b048
refs/heads/master
2020-06-13T20:17:08.537015
2019-10-15T12:30:20
2019-10-15T12:30:20
194,775,340
0
0
null
2020-04-30T11:45:18
2019-07-02T02:41:02
Java
UTF-8
Java
false
false
1,865
java
package com.eomcs.lms.Servlet; import java.io.IOException; import java.sql.Date; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.context.ApplicationContext; import com.eomcs.lms.dao.LessonDao; import com.eomcs.lms.domain.Lesson; @WebServlet("/lesson/update") public class LessonUpdateServlet extends HttpServlet { private static final long serialVersionUID = 1L; private LessonDao lessonDao; @Override public void init() throws ServletException { ApplicationContext appCtx= (ApplicationContext)getServletContext().getAttribute("iocContainer"); lessonDao = appCtx.getBean(LessonDao.class); } @Override public void doPost(HttpServletRequest request, HttpServletResponse response)throws IOException, ServletException { try { Lesson lesson = new Lesson(); lesson.setNo(Integer.parseInt(request.getParameter("no"))); lesson.setTitle(request.getParameter("title")); lesson.setContents(request.getParameter("contents")); lesson.setStartDate(Date.valueOf(request.getParameter("startDate"))); lesson.setEndDate(Date.valueOf(request.getParameter("endDate"))); lesson.setTotalHours(Integer.parseInt(request.getParameter("totalHours"))); lesson.setDayHours(Integer.parseInt(request.getParameter("dayHours"))); lessonDao.update(lesson); response.sendRedirect("/lesson/list"); } catch (Exception e) { request.setAttribute("message", "데이터 저장에 실패했습니다!"); request.setAttribute("refresh", "/lesson/list"); request.setAttribute("error", e); request.getRequestDispatcher("/error").forward(request, response); } } }
[ "hugebigdream@gmail.com" ]
hugebigdream@gmail.com
5933d24fab32ed4e35eb21f49e71934a415e0746
a8e47979b45aa428a32e16ddc4ee2578ec969dfe
/storage/db/src/test/java/org/artifactory/storage/db/ha/entity/ArtifactoryServerTest.java
a8ca3a6856c8bc7cedec94fa888ba9463b228803
[]
no_license
nuance-sspni/artifactory-oss
da505cac1984da131a61473813ee2c7c04d8d488
af3fcf09e27cac836762e9957ad85bdaeec6e7f8
refs/heads/master
2021-07-22T20:04:08.718321
2017-11-02T20:49:33
2017-11-02T20:49:33
109,313,757
0
1
null
null
null
null
UTF-8
Java
false
false
7,044
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.storage.db.ha.entity; import org.apache.commons.codec.digest.DigestUtils; import org.artifactory.addon.ArtifactoryRunningMode; import org.artifactory.state.ArtifactoryServerState; import org.artifactory.storage.db.servers.model.ArtifactoryServer; import org.artifactory.storage.db.servers.model.ArtifactoryServerRole; import org.testng.annotations.Test; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertNull; /** * Date: 7/10/13 3:17 PM * * @author freds */ @Test public class ArtifactoryServerTest { public static final String SERVER_ID = DigestUtils.shaHex("test"); private static final String LICENSE_HASH = "aaffsdgdfgdffgdgddfgdfgdfgdfgdfgsvfsawui0"; public void basicArtifactoryServer() { long lastHeartbeat = System.currentTimeMillis(); ArtifactoryServer test = new ArtifactoryServer( SERVER_ID, 1000000L, "127.0.0.1:8080", 5700, ArtifactoryServerState.RUNNING, ArtifactoryServerRole.PRIMARY, lastHeartbeat, "3.0.1-test", 2, 3L, ArtifactoryRunningMode.OSS, LICENSE_HASH); assertEquals(test.getServerId(), SERVER_ID); assertEquals(test.getStartTime(), 1000000L); assertEquals(test.getContextUrl(), "127.0.0.1:8080"); assertEquals(test.getServerState(), ArtifactoryServerState.RUNNING); assertEquals(test.getServerRole(), ArtifactoryServerRole.PRIMARY); assertEquals(test.getLastHeartbeat(), lastHeartbeat); assertEquals(test.getArtifactoryVersion(), "3.0.1-test"); assertEquals(test.getArtifactoryRevision(), 2); assertEquals(test.getArtifactoryRelease(), 3L); assertEquals(test.getArtifactoryRunningMode(), ArtifactoryRunningMode.OSS); } public void maxNullArtifactoryServer() { ArtifactoryServer test = new ArtifactoryServer( SERVER_ID, 1000000L, null, 5700, ArtifactoryServerState.OFFLINE, ArtifactoryServerRole.STANDALONE, 1L, "2-t", 0, 0L, ArtifactoryRunningMode.HA, LICENSE_HASH); assertEquals(test.getServerId(), SERVER_ID); assertEquals(test.getStartTime(), 1000000L); assertNull(test.getContextUrl()); assertEquals(test.getServerState(), ArtifactoryServerState.OFFLINE); assertEquals(test.getServerRole(), ArtifactoryServerRole.STANDALONE); assertEquals(test.getLastHeartbeat(), 1L); assertEquals(test.getArtifactoryVersion(), "2-t"); assertEquals(test.getArtifactoryRevision(), 0); assertEquals(test.getArtifactoryRelease(), 0L); assertEquals(test.getArtifactoryRunningMode(), ArtifactoryRunningMode.HA); } public void maxNegArtifactoryServer() { ArtifactoryServer test = new ArtifactoryServer( SERVER_ID, 1000000L, null, 5700, ArtifactoryServerState.UNKNOWN, ArtifactoryServerRole.COPY, 1L, "3-t", -2, -3L, ArtifactoryRunningMode.OSS, LICENSE_HASH); assertEquals(test.getServerId(), SERVER_ID); assertEquals(test.getStartTime(), 1000000L); assertNull(test.getContextUrl()); assertEquals(test.getServerState(), ArtifactoryServerState.UNKNOWN); assertEquals(test.getServerRole(), ArtifactoryServerRole.COPY); assertEquals(test.getLastHeartbeat(), 1L); assertEquals(test.getArtifactoryVersion(), "3-t"); assertEquals(test.getArtifactoryRevision(), -2); assertEquals(test.getArtifactoryRelease(), -3L); assertEquals(test.getArtifactoryRunningMode(), ArtifactoryRunningMode.OSS); } @Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = ".*serverId.*cannot.*null.*") public void nullServerIdArtifactoryServer() { new ArtifactoryServer( null, 1000000L, "127.0.0.1:8080", 5700, ArtifactoryServerState.RUNNING, ArtifactoryServerRole.PRIMARY, 2L, "3.0.1-test", 2, 3L, ArtifactoryRunningMode.OSS, LICENSE_HASH); } @Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = ".*serverId.*cannot.*empty.*") public void emptyServerIdArtifactoryServer() { new ArtifactoryServer( " ", 1000000L, "127.0.0.1:8080", 5700, ArtifactoryServerState.RUNNING, ArtifactoryServerRole.PRIMARY, 2L, "3.0.1-test", 2, 3L, ArtifactoryRunningMode.OSS, LICENSE_HASH); } @Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = ".*start time.*cannot.*zero.*") public void zeroStartTimeArtifactoryServer() { new ArtifactoryServer( SERVER_ID, 0L, "127.0.0.1:8080", 5700, ArtifactoryServerState.RUNNING, ArtifactoryServerRole.PRIMARY, 2L, "3.0.1-test", 2, 3L, ArtifactoryRunningMode.OSS, LICENSE_HASH); } @Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = ".*start time.*cannot.*negative.*") public void negStartTimeArtifactoryServer() { new ArtifactoryServer( SERVER_ID, -3L, "127.0.0.1:8080", 5700, ArtifactoryServerState.RUNNING, ArtifactoryServerRole.PRIMARY, 2L, "3.0.1-test", 2, 3L, ArtifactoryRunningMode.OSS, LICENSE_HASH); } @Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = ".*server state.*cannot.*null.*") public void nullServerStateArtifactoryServer() { new ArtifactoryServer( SERVER_ID, 1000000L, "127.0.0.1:8080", 5700, null, ArtifactoryServerRole.PRIMARY, 2L, "3.0.1-test", 2, 3L, ArtifactoryRunningMode.OSS, LICENSE_HASH); } @Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = ".*role.*cannot.*null.*") public void nullServerRoleArtifactoryServer() { new ArtifactoryServer( SERVER_ID, 1000000L, "127.0.0.1:8080", 5700, ArtifactoryServerState.UNKNOWN, null, 2L, "3.0.1-test", 2, 3L, ArtifactoryRunningMode.OSS, LICENSE_HASH); } }
[ "tuan-anh.nguyen@nuance.com" ]
tuan-anh.nguyen@nuance.com
3a3a7b9ffb6dcf6c9ed09eb3f737ece4db991017
3cd8ad76778ddabfd62414b2bf044def955d0d88
/pw-new/ylb-ticket-service-api/src/main/java/com/ectrip/ticket/model/permitenter/Esbtripequiptab.java
b0b2fe227ff5174a8b38c0a57691b7e2823473fb
[]
no_license
dbc1024/demos
65f640eb6bbc5b6476645eeb7c42c28e7218f6cb
ebbe48de090af138f55e8a1923768328452f1d69
refs/heads/master
2020-03-30T19:08:35.871801
2019-05-08T03:14:59
2019-05-08T03:14:59
151,530,128
1
3
null
null
null
null
UTF-8
Java
false
false
3,631
java
package com.ectrip.ticket.model.permitenter; /** * Esbtripequiptab entity. @author MyEclipse Persistence Tools */ public class Esbtripequiptab implements java.io.Serializable { // Fields private Long itripid; //行程ID private Long isceniaid; //景点A ID private Long iscenibid; //景点B ID private String iscenicaname; //景点A 名称 private String iscenicbname; //景点B 名称 private Long byisstend; //是否起始点 private String szdata; //景点A游览耗时 private String szdatb; //景点B游览耗时 private String sztripdate; //行程耗时 private Long byisvenue; //是否码头 private Long byisuse; //是否启用 private String szmemo; //备注 //非数据库字段 private boolean flag; // Constructors /** default constructor */ public Esbtripequiptab() { } /** minimal constructor */ public Esbtripequiptab(Long itripid, String iscenicaname,Long isceniaid,Long iscenibid, String iscenicbname, Long byisstend, Long byisuse) { this.itripid = itripid; this.isceniaid=isceniaid; this.iscenibid=iscenibid; this.iscenicaname = iscenicaname; this.iscenicbname = iscenicbname; this.byisstend = byisstend; this.byisuse = byisuse; } /** full constructor */ public Esbtripequiptab(Long itripid, String iscenicaname,Long isceniaid,Long iscenibid, String iscenicbname, Long byisstend, String szdata, String szdatb, String sztripdate, Long byisvenue, Long byisuse, String szmemo) { this.itripid = itripid; this.isceniaid=isceniaid; this.iscenibid=iscenibid; this.iscenicaname = iscenicaname; this.iscenicbname = iscenicbname; this.byisstend = byisstend; this.szdata = szdata; this.szdatb = szdatb; this.sztripdate = sztripdate; this.byisvenue = byisvenue; this.byisuse = byisuse; this.szmemo = szmemo; } // Property accessors public Long getItripid() { return this.itripid; } public void setItripid(Long itripid) { this.itripid = itripid; } public String getIscenicaname() { return iscenicaname; } public void setIscenicaname(String iscenicaname) { this.iscenicaname = iscenicaname; } public String getIscenicbname() { return iscenicbname; } public void setIscenicbname(String iscenicbname) { this.iscenicbname = iscenicbname; } public Long getByisstend() { return this.byisstend; } public void setByisstend(Long byisstend) { this.byisstend = byisstend; } public String getSzdata() { return this.szdata; } public void setSzdata(String szdata) { this.szdata = szdata; } public String getSzdatb() { return this.szdatb; } public void setSzdatb(String szdatb) { this.szdatb = szdatb; } public String getSztripdate() { return this.sztripdate; } public void setSztripdate(String sztripdate) { this.sztripdate = sztripdate; } public Long getByisvenue() { return this.byisvenue; } public void setByisvenue(Long byisvenue) { this.byisvenue = byisvenue; } public Long getByisuse() { return this.byisuse; } public void setByisuse(Long byisuse) { this.byisuse = byisuse; } public String getSzmemo() { return this.szmemo; } public void setSzmemo(String szmemo) { this.szmemo = szmemo; } public Long getIsceniaid() { return isceniaid; } public void setIsceniaid(Long isceniaid) { this.isceniaid = isceniaid; } public Long getIscenibid() { return iscenibid; } public void setIscenibid(Long iscenibid) { this.iscenibid = iscenibid; } public boolean isFlag() { return flag; } public void setFlag(boolean flag) { this.flag = flag; } }
[ "cy991587100@163.com" ]
cy991587100@163.com
3e8b3e40f17e625f8ba0eefd6ecdcd3b25db1447
0b577b923c9e46cf072cd3d54e8af7f084c57f10
/Gloria/GloriaUtil/target/generated-sources/jaxb/com/volvo/group/purchaseorder/components/_1_0/DimensionType.java
248a26b28171f06b1d04a07296b9a2a0d4e7be23
[]
no_license
perlovdinger/gloria1
b0a9ea0e391f78f871b058a07ff8c3219ea7978f
b6a220f3c712a29289fe42be3736796a7b7a4065
refs/heads/master
2020-12-25T21:12:55.874655
2016-09-18T09:11:30
2016-09-18T09:11:30
68,508,862
1
1
null
null
null
null
UTF-8
Java
false
false
1,867
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.3-b01-fcs // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2016.09.09 at 04:05:26 em CEST // package com.volvo.group.purchaseorder.components._1_0; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for DimensionType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="DimensionType"> * &lt;complexContent> * &lt;extension base="{http://www.openapplications.org/oagis/9}DimensionABIEType"> * &lt;sequence> * &lt;element ref="{http://www.openapplications.org/oagis/9}UserArea" minOccurs="0"/> * &lt;/sequence> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DimensionType", propOrder = { "userArea" }) public class DimensionType extends DimensionABIEType { @XmlElement(name = "UserArea") protected UserAreaType userArea; /** * Gets the value of the userArea property. * * @return * possible object is * {@link UserAreaType } * */ public UserAreaType getUserArea() { return userArea; } /** * Sets the value of the userArea property. * * @param value * allowed object is * {@link UserAreaType } * */ public void setUserArea(UserAreaType value) { this.userArea = value; } }
[ "per.lovdinger@volvo.com" ]
per.lovdinger@volvo.com
a8fbfaa55d0761a4ffaddcaacf332c722f849669
c7b12351e75746deaa45f50c9357db3ef6839c6d
/whois-internal/src/main/java/net/ripe/db/whois/internal/logsearch/LogSearchQueryAnalyzer.java
1544836ca265ff6e552a8161a23df0ea1e7c6462
[ "BSD-3-Clause" ]
permissive
GaetanJUVIN/whois
fb0cd76a24b3488181ebfc6d210e0931a99740c2
880732ae895ae84be204d4ae5d7ebc4872313eb9
refs/heads/master
2020-12-24T14:53:23.906461
2014-07-11T15:20:10
2014-07-11T15:20:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,102
java
package net.ripe.db.whois.internal.logsearch; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.core.LowerCaseFilter; import org.apache.lucene.analysis.core.WhitespaceTokenizer; import org.apache.lucene.analysis.miscellaneous.WordDelimiterFilter; import org.apache.lucene.analysis.util.CharArraySet; import org.apache.lucene.util.Version; import java.io.Reader; public class LogSearchQueryAnalyzer extends Analyzer { private final Version matchVersion; public LogSearchQueryAnalyzer(final Version matchVersion) { this.matchVersion = matchVersion; } @Override protected TokenStreamComponents createComponents(final String fieldName, final Reader reader) { final WhitespaceTokenizer tokenizer = new WhitespaceTokenizer(matchVersion, reader); TokenStream tok = new WordDelimiterFilter(tokenizer, WordDelimiterFilter.PRESERVE_ORIGINAL, CharArraySet.EMPTY_SET); tok = new LowerCaseFilter(matchVersion, tok); return new TokenStreamComponents(tokenizer, tok); } }
[ "agoston@ripe.net" ]
agoston@ripe.net
2473cced5b9cdecfdcdd0ea7a31a2d323abdab34
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
/project_1_2/src/b/c/g/d/Calc_1_2_12636.java
d5ac8f5390bfafba83f772fbb9ba603d4aa85f60
[]
no_license
chalstrick/bigRepo1
ac7fd5785d475b3c38f1328e370ba9a85a751cff
dad1852eef66fcec200df10083959c674fdcc55d
refs/heads/master
2016-08-11T17:59:16.079541
2015-12-18T14:26:49
2015-12-18T14:26:49
48,244,030
0
0
null
null
null
null
UTF-8
Java
false
false
134
java
package b.c.g.d; public class Calc_1_2_12636 { /** @return the sum of a and b */ public int add(int a, int b) { return a+b; } }
[ "christian.halstrick@sap.com" ]
christian.halstrick@sap.com
903633b25a0bd29285abe9720abc1a46386e4fb0
3ad25a8a99df7a604004b374be2655453a273e87
/src/main/java/com/fute/wechat/service/impl/qy/txl/WechatQyUserServiceImpl.java
86ea6a727fa0b60911ae49c943e35261470699b8
[]
no_license
cnywb/ford-qiyewechat
fbae3f9396df0ab066dafb3b954cea9e6a0620ec
cab5fd126de7a7eec2ac679be6f5032362cb5d8c
refs/heads/master
2020-04-08T02:26:16.856012
2018-12-05T12:11:35
2018-12-05T12:11:35
158,935,708
0
0
null
null
null
null
UTF-8
Java
false
false
2,337
java
package com.fute.wechat.service.impl.qy.txl; import com.alibaba.fastjson.JSONObject; import com.fute.backer.service.SystemParameterService; import com.fute.wechat.model.auth.QyAuthUserInfo; import com.fute.wechat.service.qy.txl.WechatQyUserService; import com.fute.wechat.util.WechatQyUserUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import javax.annotation.Resource; @Service("wechatQyUserService") public class WechatQyUserServiceImpl implements WechatQyUserService{ private static final Logger logger= LoggerFactory.getLogger (WechatQyUserServiceImpl.class); @Resource private SystemParameterService systemParameterService; public String create(String json){ String corpId=systemParameterService.getValueByKey("WECHAT_QY_CORP_ID"); String corpSecret=systemParameterService.getValueByKey("WECHAT_QY_CORP_SECRET"); return WechatQyUserUtil.create(corpId, corpSecret, json); } public String update(String json){ String corpId=systemParameterService.getValueByKey("WECHAT_QY_CORP_ID"); String corpSecret=systemParameterService.getValueByKey("WECHAT_QY_CORP_SECRET"); return WechatQyUserUtil.update(corpId, corpSecret, json); } public String delete(String id){ String corpId=systemParameterService.getValueByKey("WECHAT_QY_CORP_ID"); String corpSecret=systemParameterService.getValueByKey("WECHAT_QY_CORP_SECRET"); return WechatQyUserUtil.delete(corpId, corpSecret, id); } public String queryById(String id){ String corpId=systemParameterService.getValueByKey("WECHAT_QY_CORP_ID"); String corpSecret=systemParameterService.getValueByKey("WECHAT_QY_CORP_SECRET"); return WechatQyUserUtil.getById(corpId, corpSecret, id); } public String getAuthUserInfoJsonStr(String code){ String corpId=systemParameterService.getValueByKey("WECHAT_QY_CORP_ID"); String corpSecret=systemParameterService.getValueByKey("WECHAT_QY_CORP_SECRET"); return WechatQyUserUtil.getAuthUserInfo(corpId,corpSecret,code) ; } /** * 得到授权用户信息 * @param code * @return */ public QyAuthUserInfo getAuthUserInfo(String code){ String json=getAuthUserInfoJsonStr(code); logger.info ("json:{}",json); QyAuthUserInfo userInfo= JSONObject.parseObject (json,QyAuthUserInfo.class); return userInfo; } }
[ "cn_ywb@163.com" ]
cn_ywb@163.com
4f5ec332e4032bb39628ed1c434e980f363e23dd
b45683d3130a937cd0262c960e1155a327ef4872
/firebase/ios-auth/src/main/java/org/robovm/pods/firebase/auth/FIRFederatedAuthProviderAdapter.java
99cff2e2d8dd136eec81176796667a269f669d9d
[]
no_license
CoderBaron/robovm-robopods
33324ccb54dcbf54c3716c7ec6e049a330261df9
346437b7b90798e4c9671cad2bae62b7e07b88a2
refs/heads/master
2023-08-04T08:55:11.971573
2023-07-23T00:36:21
2023-07-23T00:36:21
66,114,160
0
0
null
2016-08-19T21:42:07
2016-08-19T21:42:07
null
UTF-8
Java
false
false
1,788
java
/* * Copyright (C) 2013-2015 RoboVM AB * * 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.robovm.pods.firebase.auth; /*<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.uikit.*; /*</imports>*/ /*<javadoc>*/ /*</javadoc>*/ /*<annotations>*//*</annotations>*/ /*<visibility>*/public/*</visibility>*/ class /*<name>*/FIRFederatedAuthProviderAdapter/*</name>*/ extends /*<extends>*/NSObject/*</extends>*/ /*<implements>*/implements FIRFederatedAuthProvider/*</implements>*/ { /*<ptr>*/ /*</ptr>*/ /*<bind>*/ /*</bind>*/ /*<constants>*//*</constants>*/ /*<constructors>*//*</constructors>*/ /*<properties>*/ /*</properties>*/ /*<members>*//*</members>*/ /*<methods>*/ @NotImplemented("getCredentialWithUIDelegate:completion:") public void getCredential(FIRAuthUIDelegate UIDelegate, @Block VoidBlock2<FIRAuthCredential, NSError> completion) {} /*</methods>*/ }
[ "demyan.kimitsa@gmail.com" ]
demyan.kimitsa@gmail.com
7828fca4487e7e6efba39b8b974f92c2c5e8f816
c2c8dde458bf3303925f570db5de609567125d45
/src/main/java/com/zheng/rpc/sample/service/impl/HelloServiceImpl.java
bdf44fbff70b7dabbe691d7f5543e31510a7efb2
[]
no_license
zl736732419/rpc-sample-server
deb98cd94e98d60f0c969273eccccb8f6d4ad377
740cd32b32c8b0a6c92f13c38a0be6d965a2d812
refs/heads/master
2021-05-08T08:58:34.781180
2017-10-18T14:34:52
2017-10-18T14:34:52
107,151,458
0
0
null
null
null
null
UTF-8
Java
false
false
381
java
package com.zheng.rpc.sample.service.impl; import com.zheng.rpc.annotation.RpcService; import com.zheng.rpc.sample.service.HelloService; /** * 示例服务实现 * Created by zhenglian on 2017/10/15. */ @RpcService(value = "helloService") public class HelloServiceImpl implements HelloService { public String hello(String s) { return "rpc i love you !!!"; } }
[ "736732419@qq.com" ]
736732419@qq.com
b719d577de50323139d5b258747c65ab78f4c6a0
81a1ebcff9316a67d257648191a88274c508faad
/app/src/main/java/appewtc/masterung/sentlocationdrivingbetter/MainActivity.java
0e81a59149e7981e0f2b53c2b3bb37f1243fafb9
[]
no_license
masterUNG/Sent-Location-DrivingBetter
4d3320a2bce895a7b6aeb06f4803de472fed3e99
d6ef32ba261f35b092fbe73ecbd6fe93dc62e960
refs/heads/master
2021-01-10T07:23:14.572312
2016-02-26T10:56:00
2016-02-26T10:56:00
52,512,224
0
0
null
null
null
null
UTF-8
Java
false
false
6,253
java
package appewtc.masterung.sentlocationdrivingbetter; import android.content.Context; import android.location.Criteria; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.os.Handler; import android.os.StrictMode; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.widget.TextView; import android.widget.Toast; import org.apache.http.NameValuePair; import org.apache.http.client.HttpClient; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.message.BasicNameValuePair; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; public class MainActivity extends AppCompatActivity { //Explicit private TextView latTextView, lngTextView; private LocationManager locationManager; private Criteria criteria; private boolean GPSABoolean, networkABoolean; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //Bind Widget bindWidget(); //Setup Location setupLocation(); //Auto Update Location to mySQL updateLocationToMySQL(); } // Main Method private void updateLocationToMySQL() { DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); Date date = new Date(); String strCurrentDate = dateFormat.format(date); String strLat = latTextView.getText().toString(); String strLng = lngTextView.getText().toString(); try { //Change Policy StrictMode.ThreadPolicy threadPolicy = new StrictMode.ThreadPolicy .Builder().permitAll().build(); StrictMode.setThreadPolicy(threadPolicy); ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); nameValuePairs.add(new BasicNameValuePair("isAdd", "true")); nameValuePairs.add(new BasicNameValuePair("Date", strCurrentDate)); nameValuePairs.add(new BasicNameValuePair("Lat", strLat)); nameValuePairs.add(new BasicNameValuePair("Lng", strLng)); HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost("http://swiftcodingthai.com/car/php_add_location.php"); httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs, "UTF-8")); httpClient.execute(httpPost); } catch (Exception e) { Log.d("26Feb", "Error ==>>> " + e.toString()); } myLoop(); } // updateLocationToMySQL private void myLoop() { Handler handler = new Handler(); handler.postDelayed(new Runnable() { @Override public void run() { updateLocationToMySQL(); } }, 5000); } // myLoop @Override protected void onResume() { super.onResume(); locationManager.removeUpdates(locationListener); String strLat = "Unknow"; String strLng = "Unknow"; Location networkLocation = requestLocation(LocationManager.NETWORK_PROVIDER, "network Error"); if (networkLocation != null) { strLat = String.format("%.7f", networkLocation.getLatitude()); strLng = String.format("%.7f", networkLocation.getLongitude()); } //if Location GPSLocation = requestLocation(LocationManager.GPS_PROVIDER, "GPS Error"); if (GPSLocation != null) { strLat = String.format("%.7f", GPSLocation.getLatitude()); strLng = String.format("%.7f", GPSLocation.getLongitude()); } // if latTextView.setText(strLat); lngTextView.setText(strLng); } // onResume @Override protected void onStop() { super.onStop(); locationManager.removeUpdates(locationListener); } // onStop @Override protected void onStart() { super.onStart(); GPSABoolean = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); if (!GPSABoolean) { networkABoolean = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER); if (!networkABoolean) { Toast.makeText(MainActivity.this, "Cannot Find Location", Toast.LENGTH_SHORT).show(); } // if } // if } // onStart public Location requestLocation(String strProvider, String strError) { Location location = null; if (locationManager.isProviderEnabled(strProvider)) { locationManager.requestLocationUpdates(strProvider, 1000, 10, locationListener); location = locationManager.getLastKnownLocation(strProvider); } else { Log.d("gps", strError); } // if return location; } //Create Class public final LocationListener locationListener = new LocationListener() { @Override public void onLocationChanged(Location location) { latTextView.setText(String.format("%.7f", location.getLatitude())); lngTextView.setText(String.format("%.7f", location.getLongitude())); } @Override public void onStatusChanged(String s, int i, Bundle bundle) { } @Override public void onProviderEnabled(String s) { } @Override public void onProviderDisabled(String s) { } }; private void setupLocation() { locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); criteria = new Criteria(); criteria.setAccuracy(Criteria.ACCURACY_FINE); criteria.setAltitudeRequired(false); criteria.setBearingRequired(false); } //setupLocation private void bindWidget() { latTextView = (TextView) findViewById(R.id.textView2); lngTextView = (TextView) findViewById(R.id.textView4); } } // Main Class
[ "phrombutr@gmail.com" ]
phrombutr@gmail.com
cdf4fe4b36f02c7af4b587464bac7a0b3980ffdc
1d64bf4b7cec44c8a12e4086ad2918e8df6dcc76
/SpringRelatedJars/spring-framework-2.0.5/dist/org/springframework/transaction/interceptor/NameMatchTransactionAttributeSource.java
2e52d9915f41863e229e65391d13465f3dc842d4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
XerO00/AllJarFiles
03472690fad55b5c2fcae530ac7de6294c54521e
d546337cfa29f4d33c3d3c5a4479a35063771612
refs/heads/master
2020-05-07T15:51:39.184855
2019-04-10T20:08:57
2019-04-10T20:08:57
180,655,268
0
0
null
null
null
null
UTF-8
Java
false
false
5,844
java
/* * Copyright 2002-2006 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.transaction.interceptor; import java.io.Serializable; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Properties; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.util.ObjectUtils; import org.springframework.util.PatternMatchUtils; /** * Simple {@link TransactionAttributeSource} implementation that * allows attributes to be matched by registered name. * * @author Juergen Hoeller * @since 21.08.2003 * @see #isMatch * @see MethodMapTransactionAttributeSource */ public class NameMatchTransactionAttributeSource implements TransactionAttributeSource, Serializable { /** * Logger available to subclasses. * <p>Static for optimal serialization. */ protected static final Log logger = LogFactory.getLog(NameMatchTransactionAttributeSource.class); /** Keys are method names; values are TransactionAttributes */ private Map nameMap = new HashMap(); /** * Set a name/attribute map, consisting of method names * (e.g. "myMethod") and TransactionAttribute instances * (or Strings to be converted to TransactionAttribute instances). * @see TransactionAttribute * @see TransactionAttributeEditor */ public void setNameMap(Map nameMap) { Iterator it = nameMap.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); String name = (String) entry.getKey(); // Check whether we need to convert from String to TransactionAttribute. TransactionAttribute attr = null; if (entry.getValue() instanceof TransactionAttribute) { attr = (TransactionAttribute) entry.getValue(); } else { TransactionAttributeEditor editor = new TransactionAttributeEditor(); editor.setAsText(entry.getValue().toString()); attr = (TransactionAttribute) editor.getValue(); } addTransactionalMethod(name, attr); } } /** * Parses the given properties into a name/attribute map. * Expects method names as keys and String attributes definitions as values, * parsable into TransactionAttribute instances via TransactionAttributeEditor. * @see #setNameMap * @see TransactionAttributeEditor */ public void setProperties(Properties transactionAttributes) { TransactionAttributeEditor tae = new TransactionAttributeEditor(); for (Iterator it = transactionAttributes.keySet().iterator(); it.hasNext(); ) { String methodName = (String) it.next(); String value = transactionAttributes.getProperty(methodName); tae.setAsText(value); TransactionAttribute attr = (TransactionAttribute) tae.getValue(); addTransactionalMethod(methodName, attr); } } /** * Add an attribute for a transactional method. * <p>Method names can be exact matches, or of the pattern "xxx*", * "*xxx" or "*xxx*" for matching multiple methods. * @param methodName the name of the method * @param attr attribute associated with the method */ public void addTransactionalMethod(String methodName, TransactionAttribute attr) { if (logger.isDebugEnabled()) { logger.debug("Adding transactional method [" + methodName + "] with attribute [" + attr + "]"); } this.nameMap.put(methodName, attr); } public TransactionAttribute getTransactionAttribute(Method method, Class targetClass) { // look for direct name match String methodName = method.getName(); TransactionAttribute attr = (TransactionAttribute) this.nameMap.get(methodName); if (attr == null) { // Look for most specific name match. String bestNameMatch = null; for (Iterator it = this.nameMap.keySet().iterator(); it.hasNext();) { String mappedName = (String) it.next(); if (isMatch(methodName, mappedName) && (bestNameMatch == null || bestNameMatch.length() <= mappedName.length())) { attr = (TransactionAttribute) this.nameMap.get(mappedName); bestNameMatch = mappedName; } } } return attr; } /** * Return if the given method name matches the mapped name. * <p>The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches, * as well as direct equality. Can be overridden in subclasses. * @param methodName the method name of the class * @param mappedName the name in the descriptor * @return if the names match * @see org.springframework.util.PatternMatchUtils#simpleMatch(String, String) */ protected boolean isMatch(String methodName, String mappedName) { return PatternMatchUtils.simpleMatch(mappedName, methodName); } public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof NameMatchTransactionAttributeSource)) { return false; } NameMatchTransactionAttributeSource otherTas = (NameMatchTransactionAttributeSource) other; return ObjectUtils.nullSafeEquals(this.nameMap, otherTas.nameMap); } public int hashCode() { return NameMatchTransactionAttributeSource.class.hashCode(); } public String toString() { return getClass().getName() + ": " + this.nameMap; } }
[ "prasannadandhalkar1@gmail.com" ]
prasannadandhalkar1@gmail.com
ab91b8a481278d39a30b4c9d7cb8667c8aa6c402
ddfb3a710952bf5260dfecaaea7d515526f92ebb
/build/tmp/expandedArchives/forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-sources.jar_c582e790131b6dd3325b282fce9d2d3d/net/minecraft/client/gui/screen/WorldLoadProgressScreen.java
f4f9b371b7441a52f8d4cba693cd58707e933a0c
[ "Apache-2.0" ]
permissive
TheDarkRob/Sgeorsge
88e7e39571127ff3b14125620a6594beba509bd9
307a675cd3af5905504e34717e4f853b2943ba7b
refs/heads/master
2022-11-25T06:26:50.730098
2020-08-03T15:42:23
2020-08-03T15:42:23
284,748,579
0
0
Apache-2.0
2020-08-03T16:19:36
2020-08-03T16:19:35
null
UTF-8
Java
false
false
3,907
java
package net.minecraft.client.gui.screen; import it.unimi.dsi.fastutil.objects.Object2IntMap; import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap; import net.minecraft.client.gui.chat.NarratorChatListener; import net.minecraft.client.resources.I18n; import net.minecraft.util.Util; import net.minecraft.util.math.MathHelper; import net.minecraft.util.text.TranslationTextComponent; import net.minecraft.world.chunk.ChunkStatus; import net.minecraft.world.chunk.listener.TrackingChunkStatusListener; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; @OnlyIn(Dist.CLIENT) public class WorldLoadProgressScreen extends Screen { private final TrackingChunkStatusListener tracker; private long lastNarratorUpdateTime = -1L; private static final Object2IntMap<ChunkStatus> COLORS = Util.make(new Object2IntOpenHashMap<>(), (p_213039_0_) -> { p_213039_0_.defaultReturnValue(0); p_213039_0_.put(ChunkStatus.EMPTY, 5526612); p_213039_0_.put(ChunkStatus.STRUCTURE_STARTS, 10066329); p_213039_0_.put(ChunkStatus.STRUCTURE_REFERENCES, 6250897); p_213039_0_.put(ChunkStatus.BIOMES, 8434258); p_213039_0_.put(ChunkStatus.NOISE, 13750737); p_213039_0_.put(ChunkStatus.SURFACE, 7497737); p_213039_0_.put(ChunkStatus.CARVERS, 7169628); p_213039_0_.put(ChunkStatus.LIQUID_CARVERS, 3159410); p_213039_0_.put(ChunkStatus.FEATURES, 2213376); p_213039_0_.put(ChunkStatus.LIGHT, 13421772); p_213039_0_.put(ChunkStatus.SPAWN, 15884384); p_213039_0_.put(ChunkStatus.HEIGHTMAPS, 15658734); p_213039_0_.put(ChunkStatus.FULL, 16777215); }); public WorldLoadProgressScreen(TrackingChunkStatusListener p_i51113_1_) { super(NarratorChatListener.EMPTY); this.tracker = p_i51113_1_; } public boolean shouldCloseOnEsc() { return false; } public void removed() { NarratorChatListener.INSTANCE.say(I18n.format("narrator.loading.done")); } public void render(int p_render_1_, int p_render_2_, float p_render_3_) { this.renderBackground(); String s = MathHelper.clamp(this.tracker.getPercentDone(), 0, 100) + "%"; long i = Util.milliTime(); if (i - this.lastNarratorUpdateTime > 2000L) { this.lastNarratorUpdateTime = i; NarratorChatListener.INSTANCE.say((new TranslationTextComponent("narrator.loading", s)).getString()); } int j = this.width / 2; int k = this.height / 2; int l = 30; drawProgress(this.tracker, j, k + 30, 2, 0); this.drawCenteredString(this.font, s, j, k - 9 / 2 - 30, 16777215); } public static void drawProgress(TrackingChunkStatusListener trackerParam, int p_213038_1_, int p_213038_2_, int p_213038_3_, int p_213038_4_) { int i = p_213038_3_ + p_213038_4_; int j = trackerParam.getDiameter(); int k = j * i - p_213038_4_; int l = trackerParam.func_219523_d(); int i1 = l * i - p_213038_4_; int j1 = p_213038_1_ - i1 / 2; int k1 = p_213038_2_ - i1 / 2; int l1 = k / 2 + 1; int i2 = -16772609; if (p_213038_4_ != 0) { fill(p_213038_1_ - l1, p_213038_2_ - l1, p_213038_1_ - l1 + 1, p_213038_2_ + l1, -16772609); fill(p_213038_1_ + l1 - 1, p_213038_2_ - l1, p_213038_1_ + l1, p_213038_2_ + l1, -16772609); fill(p_213038_1_ - l1, p_213038_2_ - l1, p_213038_1_ + l1, p_213038_2_ - l1 + 1, -16772609); fill(p_213038_1_ - l1, p_213038_2_ + l1 - 1, p_213038_1_ + l1, p_213038_2_ + l1, -16772609); } for(int j2 = 0; j2 < l; ++j2) { for(int k2 = 0; k2 < l; ++k2) { ChunkStatus chunkstatus = trackerParam.getStatus(j2, k2); int l2 = j1 + j2 * i; int i3 = k1 + k2 * i; fill(l2, i3, l2 + p_213038_3_, i3 + p_213038_3_, COLORS.getInt(chunkstatus) | -16777216); } } } }
[ "iodiceandrea251@gmail.com" ]
iodiceandrea251@gmail.com
0386b8840b46d8b123949b6f7cb3af6c4269063d
0e163a0aa87768f8c6d9aa0d1b5a73fc854e3785
/modules/utils/src/main/java/org/springside/modules/utils/text/Charsets.java
64cbccc8c6113c1e4f67d51b492f9e392d7aad23
[ "Apache-2.0" ]
permissive
iori2oo2/springside4
fc9283739817dad47504565905925bf9bc85e712
56fbb8edfa27e8998f5bf4b8de12c9f14d0d6fb1
refs/heads/master
2020-04-05T08:50:20.684850
2017-01-22T03:01:11
2017-01-22T03:01:11
51,934,211
1
0
null
2017-01-17T02:40:35
2016-02-17T15:49:37
Java
UTF-8
Java
false
false
587
java
package org.springside.modules.utils.text; import java.nio.charset.Charset; /** * JDK7可直接使用java.nio.charset.StandardCharsets. * * 也可以直接使用Guava Charsets. * * 尽量使用Charsets.UTF8而不是"UTF-8",减少JDK里的Charset查找消耗. * * @author calvin */ public abstract class Charsets { public static final String UTF_8_NAME = "UTF-8"; public static final Charset UTF_8 = Charset.forName("UTF-8"); public static final Charset US_ASCII = Charset.forName("US-ASCII"); public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); }
[ "calvin.xiao@vipshop.com" ]
calvin.xiao@vipshop.com
0e889f54a6c90ce60878daf0750f10a57bb261eb
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project22/src/main/java/org/gradle/test/performance22_5/Production22_462.java
d04757eee63e8261219b150f8e578c2045528a54
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
305
java
package org.gradle.test.performance22_5; public class Production22_462 extends org.gradle.test.performance11_5.Production11_462 { private final String property; public Production22_462() { this.property = "foo"; } public String getProperty() { return property; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
189f7cdab6590b5c9c41a2ffb861722abca4617f
89dd9ffd409b690cfa3994bba7cdf6b6f0edd653
/Duels/src/me/rotem/duels/Manegers/ConfigManeger.java
6a35e099d0e293efee453beaf793bc0b1cfe5db8
[]
no_license
pr0tem/Duels
eea0aefe5adc9b82f4e6d690dfa3d86a9571227d
247db52cf2dfccb15847e9eeb8e0fb93c8aa8ba4
refs/heads/master
2022-12-30T06:55:27.047191
2020-10-19T05:53:29
2020-10-19T05:53:29
305,272,159
0
0
null
null
null
null
UTF-8
Java
false
false
1,662
java
package me.rotem.duels.Manegers; import me.rotem.duels.DuelsMain; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.YamlConfiguration; import java.awt.*; import java.io.File; import java.io.IOException; public class ConfigManeger { private DuelsMain pl; private FileConfiguration pointsConfig; private File pointsFile; public ConfigManeger(DuelsMain pl) { this.pl = pl; } public void setUp() { if (!pl.getDataFolder().exists()) { pl.getDataFolder().mkdir(); } pointsFile = new File(pl.getDataFolder(), "pointsFile.yml"); if (!pointsFile.exists()) { try { pointsFile.createNewFile(); } catch (IOException e) { Bukkit.getServer().getConsoleSender().sendMessage(Color.RED + "could not create file"); } } pointsConfig = YamlConfiguration.loadConfiguration(pointsFile); Bukkit.getServer().getConsoleSender().sendMessage(Color.green + "File has been created"); } public FileConfiguration getPoints() { return pointsConfig; } public void saveData() { System.out.println("mega boi"); try { pointsConfig.save(pointsFile); System.out.println("boi25"); Bukkit.getServer().getConsoleSender().sendMessage(ChatColor.RED + "nice bobs"); } catch (IOException e) { Bukkit.getServer().getConsoleSender().sendMessage(Color.green + "error while saving"); System.out.println("boi"); } } }
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
12f832b9fe0895a9482a6ca6f0e7a9ee4b902abf
b40a9ce69a555eb250975b341f98c76476b7574e
/thirdstage.mcon/src/main/java/thirdstage/mcon/meta/FieldMeta.java
3833934dd2ab8f39882c648d6197adfb5bb7eebb
[]
no_license
3rdstage/prototypes
07965b2f0b90140b2fb8b8ec93c71e1e47b73f3c
70a5f5213c2e6d786a494367824f5b43832e995d
refs/heads/master
2020-12-24T09:24:13.180727
2017-03-03T17:06:26
2017-03-03T17:06:26
73,292,495
0
0
null
null
null
null
UTF-8
Java
false
false
282
java
package thirdstage.mcon.meta; import java.util.List; import java.util.Map; public interface FieldMeta { public String getName(); public FieldType getType(); public String getDescription(); public List<FieldFacetType> getAppliableFacetTypes(); }
[ "halfface@chollian.net" ]
halfface@chollian.net
b3161e0542cb923d844f1d09873d8a6f31e1c78d
9bc8fe2941e58d6b3adca26654082859fb0a3840
/kinesis/source/lambdify/aws/events/kinesis/KinesisEvent.java
72cc3b2c3eed671596ea0005926460121374e3e6
[ "Apache-2.0" ]
permissive
lambdify/lambdify-aws-events
f94ebdceeff6a09ed5160fd87976b2529cd752cd
32e12c20b81eabd28e2a5b89186ea396da7c5b1b
refs/heads/master
2020-03-19T06:58:27.065008
2019-04-23T04:07:14
2019-04-23T04:07:14
136,072,331
0
0
null
null
null
null
UTF-8
Java
false
false
2,152
java
/* * This class was copied and rewritten from Amazon's default library. If you are interested on the original * class instead, please proceed to the original repository: https://git.io/fjYVv * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * https://www.apache.org/licenses/LICENSE-2.0 * * or in the "license" file accompanying this file. This file 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 lambdify.aws.events.kinesis; import lombok.*; import java.io.*; import java.nio.*; import java.util.*; /** * Represents an Amazon Kinesis event. */ @Data @AllArgsConstructor @NoArgsConstructor public class KinesisEvent implements Serializable, Cloneable { private static final long serialVersionUID = 8145257839787754632L; List<KinesisEventRecord> records; /** * Kinesis event records provide contextual data about a Kinesis record */ @Data @AllArgsConstructor @NoArgsConstructor public static class KinesisEventRecord implements Serializable, Cloneable { private static final long serialVersionUID = -3855723544907905206L; private String eventSource; private Record kinesis; private String eventID; private String invokeIdentityArn; private String eventName; private String eventVersion; private String eventSourceARN; private String awsRegion; } /** * The unit of data of an Amazon Kinesis stream */ @Data @AllArgsConstructor @NoArgsConstructor public static class Record implements Serializable, Cloneable { private static final long serialVersionUID = 7856672931457425976L; String kinesisSchemaVersion; String sequenceNumber; Date approximateArrivalTimestamp; ByteBuffer data; String partitionKey; String encryptionType; } }
[ "miere00@gmail.com" ]
miere00@gmail.com
c9c577bd7e529e403ffff1103448edf50cd48432
57edb737df8e9de3822d4f08d0de81f028403209
/spring-core/src/main/java/org/springframework/core/codec/DataBufferEncoder.java
f0cb4149b5177e7b41a95c889499a1dc79e30f39
[ "Apache-2.0" ]
permissive
haoxianrui/spring-framework
20d904fffe7ddddcd7d78445537f66e0b4cf65f5
e5163351c47feb69483e79fa782eec3e4d8613e8
refs/heads/master
2023-05-25T14:27:18.935575
2020-10-23T01:04:05
2020-10-23T01:04:05
260,652,424
1
1
null
null
null
null
UTF-8
Java
false
false
2,522
java
/* * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.core.codec; import java.util.Map; import org.reactivestreams.Publisher; import reactor.core.publisher.Flux; import org.springframework.core.ResolvableType; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBufferFactory; import org.springframework.lang.Nullable; import org.springframework.util.MimeType; import org.springframework.util.MimeTypeUtils; /** * Simple pass-through encoder for {@link DataBuffer DataBuffers}. * * @author Arjen Poutsma * @since 5.0 */ public class DataBufferEncoder extends AbstractEncoder<DataBuffer> { public DataBufferEncoder() { super(MimeTypeUtils.ALL); } @Override public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType) { Class<?> clazz = elementType.toClass(); return super.canEncode(elementType, mimeType) && DataBuffer.class.isAssignableFrom(clazz); } @Override public Flux<DataBuffer> encode(Publisher<? extends DataBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) { Flux<DataBuffer> flux = Flux.from(inputStream); if (logger.isDebugEnabled() && !Hints.isLoggingSuppressed(hints)) { flux = flux.doOnNext(buffer -> logValue(buffer, hints)); } return flux; } @Override public DataBuffer encodeValue(DataBuffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) { if (logger.isDebugEnabled() && !Hints.isLoggingSuppressed(hints)) { logValue(buffer, hints); } return buffer; } private void logValue(DataBuffer buffer, @Nullable Map<String, Object> hints) { String logPrefix = Hints.getLogPrefix(hints); logger.debug(logPrefix + "Writing " + buffer.readableByteCount() + " bytes"); } }
[ "1490493387@qq.com" ]
1490493387@qq.com
cd88ac090bcc442bd6d6ca9a47be9bfaed948c41
c173fc0a3d23ffda1a23b87da425036a6b890260
/hrsaas/src/org/struts/action/TravelManagement/TravelAdminMasterAction.java
666cc2a192439a67c2290ccda105c12c5e7a2dfa
[ "Apache-2.0" ]
permissive
ThirdIInc/Third-I-Portal
a0e89e6f3140bc5e5d0fe320595d9b02d04d3124
f93f5867ba7a089c36b1fce3672344423412fa6e
refs/heads/master
2021-06-03T05:40:49.544767
2016-08-03T07:27:44
2016-08-03T07:27:44
62,725,738
0
0
null
null
null
null
UTF-8
Java
false
false
6,584
java
/* * @author SaiPavanKumar * Date:11-08-2008 */ package org.struts.action.TravelManagement; import org.paradyne.bean.TravelManagement.TravelAdminMaster; import org.paradyne.model.TravelManagement.TravelAdminMasterModel; import org.struts.lib.ParaActionSupport; public class TravelAdminMasterAction extends ParaActionSupport { TravelAdminMaster Travelbean; @Override public void prepare_local() throws Exception { // TODO Auto-generated method stub Travelbean = new TravelAdminMaster(); Travelbean.setMenuCode(672); } public Object getModel() { // TODO Auto-generated method stub return Travelbean; } public TravelAdminMaster getTravelbean() { return Travelbean; } public void setTravelbean(TravelAdminMaster travelbean) { Travelbean = travelbean; } public String f9emp() { try { String query = "SELECT EMP_TOKEN,(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME) as name, EMP_ID " + "FROM HRMS_EMP_OFFC "; query += getprofileQuery(Travelbean); query += " AND EMP_STATUS='S'"; query += " ORDER BY upper(name)"; String[] headers = { "Employee ID", getMessage("travel.empname") }; String[] headerwidth = { "40", "60" }; String[] fieldNames = { "empToken", "Employeename", "empid" }; int[] columnIndex = { 0, 1, 2 }; String submitFlage = "false"; String submitToMethod = " "; setF9Window(query, headers, headerwidth, fieldNames, columnIndex, submitFlage, submitToMethod); } catch (Exception e) { // TODO: handle exception } return "f9page"; } public String f9branch() { /*System.out.println("ssstarting...!"); Travelbean.setEmpid(""); Travelbean.setEmployeename(""); System.out.println("eeeeeeeeeeeeee...!"+Travelbean.getEmployeename()); System.out.println("eeeeeeeeeeeeee...!"+Travelbean.getEmpid());*/ String query = " Select CENTER_ID,CENTER_NAME from hrms_center order by CENTER_ID"; String[] headers = { "Branch ID", getMessage("travel.branch") }; String[] headerwidth = { "40", "60" }; String[] fieldNames = { "Branchcode", "Branchname" }; int[] columnIndex = { 0, 1 }; String submitFlage = "true"; String submitToMethod = "TravelAdminMaster_reset1.action"; setF9Window(query, headers, headerwidth, fieldNames, columnIndex, submitFlage, submitToMethod); /*System.out.println("sssssssssssssssssssss"); Travelbean.setEmpid(""); Travelbean.setEmployeename("");*/ System.out.println("eeeeeeeeeeeeee...!" + Travelbean.getBranchname()); return "f9page"; } public String f9search() { String query = " select TRAVEL_ADMIN_CODE,HRMS_CENTER.CENTER_NAME,(office.EMP_FNAME||' '||office.EMP_MNAME||' '||office.EMP_LNAME) as name " + " ,TRAVEL_ADMIN_BRANCH_CODE,TRAVEL_ADMIN_EMP_ID from hrms_travel_admin " + " Left join hrms_emp_offc office on(office.EMP_ID=hrms_travel_admin.TRAVEL_ADMIN_EMP_ID)" + " Left join HRMS_CENTER on(HRMS_CENTER.CENTER_ID=hrms_travel_admin.TRAVEL_ADMIN_BRANCH_CODE)" + " order by TRAVEL_ADMIN_CODE"; String[] headers = { "Travel Code", getMessage("travel.branch"), getMessage("travel.empname") }; String[] headerwidth = { "20", "40", "40" }; String[] fieldNames = { "travelmastercode", "Branchname", "Employeename", "Branchcode", "empid" }; int[] columnIndex = { 0, 1, 2, 3, 4 }; String submitFlage = "false"; String submitToMethod = " "; setF9Window(query, headers, headerwidth, fieldNames, columnIndex, submitFlage, submitToMethod); //System.out.println("eeeeeeeeeeeeee...!"+Travelbean.getEmployeename()); return "f9page"; } public String save() { TravelAdminMasterModel model = new TravelAdminMasterModel(); model.initiate(context, session); if (Travelbean.getTravelmastercode().equals("")) { boolean result = model.adding(Travelbean); if (result) addActionMessage("Record saved successfully."); else addActionMessage("Record can't be saved!"); } else { boolean result = model.modify(Travelbean); if (result) addActionMessage("Record updated successfully!"); else addActionMessage("Record can't be updated!"); } model.Data(Travelbean, request); model.terminate(); return reset(); } public String delete() { TravelAdminMasterModel model = new TravelAdminMasterModel(); model.initiate(context, session); boolean result = model.delete(Travelbean); if (result) addActionMessage("Record deleted successfully!"); else addActionMessage("Record can't be deleted!"); model.Data(Travelbean, request); model.terminate(); return reset(); } public String reset() { Travelbean.setTravelmastercode(""); Travelbean.setEmpid(""); Travelbean.setEmployeename(""); Travelbean.setBranchcode(""); Travelbean.setBranchname(""); return "success"; } public String reset1() { Travelbean.setEmpid(""); Travelbean.setEmployeename(""); return "success"; } public void prepare_withLoginProfileDetails() throws Exception { TravelAdminMasterModel model = new TravelAdminMasterModel(); model.initiate(context, session); model.Data(Travelbean, request); model.terminate(); } public String callPage() throws Exception { TravelAdminMasterModel model = new TravelAdminMasterModel(); model.initiate(context, session); model.Data(Travelbean, request); model.terminate(); return SUCCESS; } public String calforedit() throws Exception { TravelAdminMasterModel model = new TravelAdminMasterModel(); model.initiate(context, session); model.calforedit(Travelbean); //getRecord(); model.Data(Travelbean, request); model.terminate(); return "success"; } public String delete1() throws Exception { String code[] = request.getParameterValues("hdeleteCode"); TravelAdminMasterModel model = new TravelAdminMasterModel(); model.initiate(context, session); boolean result = model.deletecheckedRecords(Travelbean, code); if (result) { addActionMessage(getText("delMessage", "")); } else { addActionMessage("One or more records can't be deleted \n as they are associated with some other records. "); } model.Data(Travelbean, request); model.terminate(); return reset(); } public String report() { TravelAdminMasterModel model = new TravelAdminMasterModel(); model.initiate(context, session); model.getReport(request, response, Travelbean); model.terminate(); return null; } }
[ "Jigar.V@jigar_vasani.THIRDI.COM" ]
Jigar.V@jigar_vasani.THIRDI.COM
c770f308b4284ec6b3f9b8d35f1ae2b7eb5a20c7
17e8438486cb3e3073966ca2c14956d3ba9209ea
/dso/branches/3.5/code/base/dso-l2/src/com/tc/net/utils/L2Utils.java
c2fea1868cc20e3a3c00af0503995e7224711eef
[]
no_license
sirinath/Terracotta
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
00a7662b9cf530dfdb43f2dd821fa559e998c892
refs/heads/master
2021-01-23T05:41:52.414211
2015-07-02T15:21:54
2015-07-02T15:21:54
38,613,711
1
0
null
null
null
null
UTF-8
Java
false
false
3,003
java
/* * All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. */ package com.tc.net.utils; import com.tc.bytes.TCByteBufferFactory; import com.tc.properties.TCPropertiesConsts; import com.tc.properties.TCPropertiesImpl; public class L2Utils { private static final int MAX_DEFAULT_COMM_THREADS = 16; private static final int MAX_DEFAULT_STAGE_THREADS = 16; public static final long MIN_COMMS_DIRECT_MEMORY_REQUIREMENT = 4 * 1024 * 1024; // 4MiB public static final long MAX_COMMS_DIRECT_MEMORY_REQUIREMENT = 256 * 1024 * 1024; // 256MiB public static int getOptimalCommWorkerThreads() { int def = Math.min(Runtime.getRuntime().availableProcessors() * 2, MAX_DEFAULT_COMM_THREADS); return TCPropertiesImpl.getProperties().getInt("l2.tccom.workerthreads", def); } public static int getOptimalStageWorkerThreads() { int def = Math.min(Runtime.getRuntime().availableProcessors() * 2, MAX_DEFAULT_STAGE_THREADS); return TCPropertiesImpl.getProperties().getInt("l2.seda.stage.workerthreads", def); } /** * Calculates max possible direct memory consumption by TC Communication system. In fact, TC Comms can ask for more * direct byte buffers than computed here if the buffer pool is fully used up, but its rare though. * * @return long - maximum consumable direct memory byte buffers in bytes by the comms system. */ public static long getMaxDirectMemmoryConsumable() { // L2<==L1, L2<==>L2 final int totalCommsThreads = getOptimalCommWorkerThreads() * 2; final boolean poolingEnabled = TCPropertiesImpl.getProperties() .getBoolean(TCPropertiesConsts.TC_BYTEBUFFER_POOLING_ENABLED); final int directMemoryCommonPool = (TCPropertiesImpl.getProperties() .getInt(TCPropertiesConsts.TC_BYTEBUFFER_COMMON_POOL_MAXCOUNT, 3000)); final int directMemoryThreadLocalPool = TCPropertiesImpl.getProperties() .getInt(TCPropertiesConsts.TC_BYTEBUFFER_THREADLOCAL_POOL_MAXCOUNT, 2000); long totalDirectMemeoryNeeded; if (poolingEnabled) { totalDirectMemeoryNeeded = (totalCommsThreads * directMemoryThreadLocalPool * TCByteBufferFactory.FIXED_BUFFER_SIZE) + (directMemoryCommonPool * TCByteBufferFactory.FIXED_BUFFER_SIZE); } else { int maxPossbileMessageBytesSend = (TCPropertiesImpl.getProperties() .getBoolean(TCPropertiesConsts.TC_MESSAGE_GROUPING_ENABLED) ? TCPropertiesImpl.getProperties() .getInt(TCPropertiesConsts.TC_MESSAGE_GROUPING_MAXSIZE_KB) * 1024 : 1024); totalDirectMemeoryNeeded = totalCommsThreads * maxPossbileMessageBytesSend * 4; } totalDirectMemeoryNeeded = (totalDirectMemeoryNeeded < MIN_COMMS_DIRECT_MEMORY_REQUIREMENT ? MIN_COMMS_DIRECT_MEMORY_REQUIREMENT : totalDirectMemeoryNeeded); return (totalDirectMemeoryNeeded > MAX_COMMS_DIRECT_MEMORY_REQUIREMENT ? MAX_COMMS_DIRECT_MEMORY_REQUIREMENT : totalDirectMemeoryNeeded); } }
[ "jvoegele@7fc7bbf3-cf45-46d4-be06-341739edd864" ]
jvoegele@7fc7bbf3-cf45-46d4-be06-341739edd864
fedc06c42f85285ac969784d0361771739c37031
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
/sources/com/avito/android/scroll_tracker/SnippetScrollDepthTrackerKt.java
92a5c6b32a222fb6d557787a05870bfac44d9faa
[]
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
240
java
package com.avito.android.scroll_tracker; import kotlin.Metadata; @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0002\n\u0000¨\u0006\u0000"}, d2 = {"serp-core_release"}, k = 2, mv = {1, 4, 2}) public final class SnippetScrollDepthTrackerKt { }
[ "auchhunter@gmail.com" ]
auchhunter@gmail.com
176b61553373f25d73d58d74a69326f58d625466
ccfd187b6425c1a61cab869593ef90bd17fb3d00
/gms-common/java/gms/shared/frameworks/frameworks-plugin-registry/src/test/java/gms/shared/frameworks/pluginregistry/fixtures/BarImplOne.java
b63103be4bb8e9491a896e4334145fffcb06268f
[ "LicenseRef-scancode-free-unknown", "BSD-3-Clause" ]
permissive
SNL-GMS/GMS-PI7-OPEN
d5287b0358d5fc867dab36eda25f46df23e03d87
4c5f2a33a45566b12897bcdc129609c9e6b95442
refs/heads/master
2023-01-22T14:55:19.535320
2019-12-17T22:07:07
2019-12-17T22:07:07
227,190,642
5
1
BSD-3-Clause
2023-01-11T19:53:26
2019-12-10T18:37:35
Java
UTF-8
Java
false
false
470
java
package gms.shared.frameworks.pluginregistry.fixtures; import com.google.auto.service.AutoService; import gms.shared.frameworks.pluginregistry.Plugin; @AutoService(Plugin.class) public class BarImplOne implements IBar { public static final String NAME = "bar_impl_1"; public static final long VALUE = 1; public BarImplOne() { } @Override public long getBarValue() { return VALUE; } @Override public String getName() { return NAME; } }
[ "teeriks@sandia.gov" ]
teeriks@sandia.gov
f7f296c079f271587e0915feb7c5386d6a49accc
9d864f5a053b29d931b4c2b4f773e13291189d27
/src/search/search-impl/impl/src/java/org/sakaiproject/search/journal/impl/ParallelIndexStorage.java
8f53b56f48ed236d28c21b325e1dad971e283aaf
[]
no_license
kyeddlapalli/sakai-cle
b1bd1e4431d8d96b6b650bfe9454eacd3e7042b2
1f06c7ac69c7cbe731c8d175d557313d0fb34900
refs/heads/master
2021-01-18T10:57:25.449065
2014-01-12T21:18:15
2014-01-12T21:18:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,269
java
/********************************************************************************** * $URL: https://source.sakaiproject.org/svn/search/trunk/search-impl/impl/src/java/org/sakaiproject/search/journal/impl/ParallelIndexStorage.java $ * $Id: ParallelIndexStorage.java 105078 2012-02-24 23:00:38Z ottenhoff@longsight.com $ *********************************************************************************** * * Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008 The Sakai Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/ECL-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.sakaiproject.search.journal.impl; import java.io.IOException; import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.IndexWriter; import org.apache.lucene.search.IndexSearcher; import org.apache.lucene.store.Directory; import org.sakaiproject.search.index.IndexReloadListener; import org.sakaiproject.search.index.IndexStorage; import org.sakaiproject.search.journal.api.IndexStorageProvider; /** * @author ieb */ public class ParallelIndexStorage implements IndexStorage { private static final Log log = LogFactory.getLog(ParallelIndexStorage.class); private IndexStorageProvider indexStorageProvider; public void init() { } public void destroy() { } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#addReloadListener(org.sakaiproject.search.index.IndexReloadListener) */ public void addReloadListener(IndexReloadListener indexReloadListener) { } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#centralIndexExists() */ public boolean centralIndexExists() { return false; } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#closeIndexReader(org.apache.lucene.index.IndexReader) */ public void closeIndexReader(IndexReader indexReader) throws IOException { throw new UnsupportedOperationException("IndexReader may not be closed "); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#closeIndexSearcher(org.apache.lucene.search.IndexSearcher) */ public void closeIndexSearcher(IndexSearcher oldRunningIndexSearcher) { throw new UnsupportedOperationException("IndexSercher may not be closed "); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#closeIndexWriter(org.apache.lucene.index.IndexWriter) */ public void closeIndexWriter(IndexWriter indexWrite) throws IOException { throw new UnsupportedOperationException("IndexWriter may not be closed "); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#doPostIndexUpdate() */ public void doPostIndexUpdate() throws IOException { throw new UnsupportedOperationException("No Index Updates allowed "); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#doPreIndexUpdate() */ public void doPreIndexUpdate() throws IOException { throw new UnsupportedOperationException("No Index Updates allowed "); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#forceNextReload() */ public void forceNextReload() { log.warn("Parallel Index Reader does not support a reload operation "); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#getAnalyzer() */ public Analyzer getAnalyzer() { return indexStorageProvider.getAnalyzer(); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#getIndexReader() */ public IndexReader getIndexReader() throws IOException { return indexStorageProvider.getIndexReader(); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#getIndexSearcher(boolean) */ public IndexSearcher getIndexSearcher(boolean reload) throws IOException { return indexStorageProvider.getIndexSearcher(); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#getIndexWriter(boolean) */ public IndexWriter getIndexWriter(boolean create) throws IOException { throw new UnsupportedOperationException("Index Writer is not available "); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#getLastLoad() */ public long getLastLoad() { return indexStorageProvider.getLastLoad(); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#getLastLoadTime() */ public long getLastLoadTime() { return indexStorageProvider.getLastLoadTime(); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#getLastUpdate() */ public long getLastUpdate() { return indexStorageProvider.getLastUpdate(); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#getSegmentInfoList() */ public List<Object[]> getSegmentInfoList() { return indexStorageProvider.getSegmentInfoList(); } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#indexExists() */ public boolean indexExists() { return true; } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#isMultipleIndexers() */ public boolean isMultipleIndexers() { return true; } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#removeReloadListener(org.sakaiproject.search.index.IndexReloadListener) */ public void removeReloadListener(IndexReloadListener indexReloadListener) { } /* * (non-Javadoc) * * @see org.sakaiproject.search.index.IndexStorage#setRecoverCorruptedIndex(boolean) */ public void setRecoverCorruptedIndex(boolean recover) { } /* * (non-Javadoc) * * @see org.sakaiproject.search.api.Diagnosable#disableDiagnostics() */ public void disableDiagnostics() { } /* * (non-Javadoc) * * @see org.sakaiproject.search.api.Diagnosable#enableDiagnostics() */ public void enableDiagnostics() { } /* * (non-Javadoc) * * @see org.sakaiproject.search.api.Diagnosable#hasDiagnostics() */ public boolean hasDiagnostics() { return false; } /** * @return the indexStorageProvider */ public IndexStorageProvider getIndexStorageProvider() { return indexStorageProvider; } /** * @param indexStorageProvider * the indexStorageProvider to set */ public void setIndexStorageProvider(IndexStorageProvider indexStorageProvider) { this.indexStorageProvider = indexStorageProvider; } public Directory getSpellDirectory() { return indexStorageProvider.getSpellDirectory(); } }
[ "noah@botimer.net" ]
noah@botimer.net
cc6aa733f9cd05599cc880e3902215f631f27817
d3fa6f4b385473573110bd62db243a78fbd3a58b
/Dao/src/main/java/by/htp/itacademy/hotel/dao/impl/UserDaoImpl.java
615a338e2348d5e3e4ce990257747754f270b7ff
[]
no_license
Fevor7/Hotel
cedf9276342dde04b8442c25964fa7a951ed2b33
ac769083e896db9efe635a8120337656c769cc0a
refs/heads/master
2021-08-31T12:16:42.683434
2017-12-21T08:14:37
2017-12-21T08:14:37
114,980,561
0
1
null
null
null
null
UTF-8
Java
false
false
882
java
package by.htp.itacademy.hotel.dao.impl; import javax.persistence.Query; import org.springframework.stereotype.Repository; import by.htp.itacademy.hotel.dao.UserDao; import by.htp.itacademy.hotel.domain.entity.User; /** * The object of this class sends a database query and processes the result. In * order to check the presence of a client with specific identification data. * * @author Viktor * */ @Repository public class UserDaoImpl extends DaoImpl<User> implements UserDao { public UserDaoImpl() { super(User.class); } @Override public User logIn(User user) { Query query = getEm().createQuery("select u from User u where (u.login = ?1 or u.email = ?2) and u.hashCodePass = ?3 "); query.setParameter(1, user.getLogin()) .setParameter(2, user.getLogin()) .setParameter(3, user.getHashCodePass()); return (User)query.getSingleResult(); } }
[ "you@example.com" ]
you@example.com
fc4038336acc193dd23c47afb1b7fd12d22a1c91
b12a74b3094c9ad76eb07f971893a1944bd8b226
/src/main/java/org/mismo/residential/_2009/schemas/QUALIFIEDMORTGAGEDETAIL.java
ed82792d462d846796cb2f9dbdfd7d7ee006263a
[]
no_license
suniltota/TransformX-Service-UCD-ConvertTemplate
fc80801d3e6acd916b1ef6aaddefd82a6584b012
8eefca11b2fd2eb93bdb15e3ce07420b15d3eda1
refs/heads/master
2021-01-22T19:42:40.495580
2017-08-07T10:56:23
2017-08-07T10:56:23
100,713,001
0
0
null
null
null
null
UTF-8
Java
false
false
2,282
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2016.12.01 at 06:02:48 PM IST // package org.mismo.residential._2009.schemas; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * Additional information about the Qualified Mortgage loan eligibility and status. * * <p>Java class for QUALIFIED_MORTGAGE_DETAIL complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="QUALIFIED_MORTGAGE_DETAIL"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="AbilityToRepayMethodType" type="{http://www.mismo.org/residential/2009/schemas}AbilityToRepayMethodEnum" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "QUALIFIED_MORTGAGE_DETAIL", propOrder = { "abilityToRepayMethodType" }) public class QUALIFIEDMORTGAGEDETAIL { @XmlElement(name = "AbilityToRepayMethodType") protected AbilityToRepayMethodEnum abilityToRepayMethodType; /** * Gets the value of the abilityToRepayMethodType property. * * @return * possible object is * {@link AbilityToRepayMethodEnum } * */ public AbilityToRepayMethodEnum getAbilityToRepayMethodType() { return abilityToRepayMethodType; } /** * Sets the value of the abilityToRepayMethodType property. * * @param value * allowed object is * {@link AbilityToRepayMethodEnum } * */ public void setAbilityToRepayMethodType(AbilityToRepayMethodEnum value) { this.abilityToRepayMethodType = value; } }
[ "shravan.boragala@compugain.com" ]
shravan.boragala@compugain.com
670186115c2e5a2a5c52329872273f57c25a5d4f
d66c441c6215dc808f3cf234f6703f245d87c152
/src/test/concurrence/rtxc/RTXC1.java
cc30d6259bfe343a05bd65dad36f62b60eeb7cf7
[ "Apache-2.0" ]
permissive
phantomDai/CMuJava
187efcd378179eae71e704767ee6e506d74e87d0
304586e81dacb2e099c4453920b8a501518fa8bf
refs/heads/master
2020-04-15T04:45:13.882963
2019-01-07T07:40:01
2019-01-07T07:40:01
164,395,125
0
1
null
null
null
null
UTF-8
Java
false
false
1,218
java
package test.concurrence.rtxc; class ThreadB extends Thread { public ThreadB(String name) { super(name); } public void run() { System.out.println(Thread.currentThread().getName() + " run "); // 死循环,不断运行。 while (true) { ; } // 这个线程与主线程无关,无 synchronized } } public class RTXC1 { public static void main(String[] args) { test(); } public static void test() { ThreadB t1 = new ThreadB("t1"); synchronized (t1) { try { // 启动“线程t1” System.out.println(Thread.currentThread().getName() + " start t1"); t1.start(); // 主线程等待t1通过notify()唤醒 或 notifyAll()唤醒,或超过3000ms延时;然后才被唤醒。 System.out.println(Thread.currentThread().getName() + " call wait "); t1.wait(3000); System.out.println(Thread.currentThread().getName() + " continue"); t1.wait(1500, 200); } catch (InterruptedException e) { e.printStackTrace(); } } } }
[ "daihepeng@sina.cn" ]
daihepeng@sina.cn
d9f6827b24fbf128560110fb6de49753551f8545
380ed7e000a6a0571b3e72cea7649af38dfc4947
/moco-runner/src/main/java/com/github/dreamhead/moco/runner/monitor/ShutdownMonitor.java
cecae942ebabe51eccfa642b1aaa4b40b16662e5
[ "MIT" ]
permissive
floatin/moco
745b927351b68ae844c53d5b5437d2a0059c6190
19917c4ee944b840168176504c9904c2d8e7e636
refs/heads/master
2021-01-17T23:02:46.125666
2013-08-02T22:55:54
2013-08-02T22:55:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,716
java
package com.github.dreamhead.moco.runner.monitor; import com.github.dreamhead.moco.internal.MocoServer; import com.google.common.io.CharStreams; import com.google.common.io.InputSupplier; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelInboundHandlerAdapter; import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelPipeline; import io.netty.channel.socket.SocketChannel; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import java.nio.charset.Charset; public class ShutdownMonitor implements Monitor { private final MocoServer server = new MocoServer(); private final int shutdownPort; private final String shutdownKey; private final ShutdownListener shutdownListener; public ShutdownMonitor(int shutdownPort, String shutdownKey, ShutdownListener shutdownListener) { this.shutdownPort = shutdownPort; this.shutdownKey = shutdownKey; this.shutdownListener = shutdownListener; } public void startMonitor() { server.start(this.shutdownPort, new ChannelInitializer<SocketChannel>() { @Override protected void initChannel(SocketChannel ch) throws Exception { ChannelPipeline pipeline = ch.pipeline(); pipeline.addLast("handler", new ShutdownHandler()); } }); } public void stopMonitor() { server.stop(); } private class ShutdownHandler extends ChannelInboundHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { ByteBuf buffer = (ByteBuf)msg; if (shouldShutdown(buffer.toString(Charset.defaultCharset()))) { shutdownListener.onShutdown(); shutdownMonitorSelf(); } } private void shutdownMonitorSelf() { new Thread(new Runnable() { @Override public void run() { stopMonitor(); } }).start(); } private boolean shouldShutdown(String message) { try { return shutdownKey.equals(CharStreams.readFirstLine(toSuppiler(message))); } catch (IOException e) { throw new RuntimeException(e); } } private InputSupplier<Reader> toSuppiler(final String content) { return new InputSupplier<Reader>() { @Override public Reader getInput() throws IOException { return new StringReader(content); } }; } } }
[ "dreamhead.cn@gmail.com" ]
dreamhead.cn@gmail.com
fc27d5267995791cf4e594827391c2cbe6b36986
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/dt-oc-info-20220829/src/main/java/com/aliyun/dt_oc_info20220829/models/GetOcIpSoftwareCopyrightResponse.java
90e5a4e6d96261d0a189c839d3c5e87f474276ab
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
1,464
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.dt_oc_info20220829.models; import com.aliyun.tea.*; public class GetOcIpSoftwareCopyrightResponse extends TeaModel { @NameInMap("headers") @Validation(required = true) public java.util.Map<String, String> headers; @NameInMap("statusCode") @Validation(required = true) public Integer statusCode; @NameInMap("body") @Validation(required = true) public GetOcIpSoftwareCopyrightResponseBody body; public static GetOcIpSoftwareCopyrightResponse build(java.util.Map<String, ?> map) throws Exception { GetOcIpSoftwareCopyrightResponse self = new GetOcIpSoftwareCopyrightResponse(); return TeaModel.build(map, self); } public GetOcIpSoftwareCopyrightResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public GetOcIpSoftwareCopyrightResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public GetOcIpSoftwareCopyrightResponse setBody(GetOcIpSoftwareCopyrightResponseBody body) { this.body = body; return this; } public GetOcIpSoftwareCopyrightResponseBody getBody() { return this.body; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
5673deb892d9c97e6075022487f96086c10dd2bf
16f282c2166176326f44d6f234cc3378c3ad7d7c
/HibernateSpringBootStreamAndMySQL/src/main/java/com/bookstore/service/BookstoreService.java
fff8120ec974c4a4ef93182ad05a638c8e0b5a4d
[ "Apache-2.0" ]
permissive
rzbrth/Hibernate-SpringBoot
78ad0b764764aff74ad95a7c0dd1aa6b611fea1b
e91e1e0b2c8f2129fa0b9559701ac94ca68206af
refs/heads/master
2020-12-13T05:59:51.024153
2020-01-15T16:38:39
2020-01-15T16:38:39
234,330,053
1
0
Apache-2.0
2020-01-16T13:47:45
2020-01-16T13:47:44
null
UTF-8
Java
false
false
1,425
java
package com.bookstore.service; import com.bookstore.entity.Author; import com.bookstore.repository.AuthorRepository; import java.util.ArrayList; import java.util.List; import java.util.concurrent.TimeUnit; import java.util.stream.Stream; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service public class BookstoreService { private final AuthorRepository authorRepository; public BookstoreService(AuthorRepository authorRepository) { this.authorRepository = authorRepository; } public void populateDatabase() { List<Author> authors = new ArrayList<>(); for (long i = 0; i < 1000; i++) { Author author = new Author(); author.setName("Author_" + i); author.setGenre("Genre_" + i); author.setAge((int) (Math.random() * 100)); authors.add(author); } authorRepository.saveAll(authors); } @Transactional(readOnly = true) public void streamDatabase() { long startTime = System.nanoTime(); try ( Stream<Author> authorStream = authorRepository.streamAll()) { authorStream.forEach(System.out::println); } System.out.println("Total time: " + TimeUnit.MILLISECONDS.convert((System.nanoTime() - startTime), TimeUnit.NANOSECONDS) + " ms"); } }
[ "leoprivacy@yahoo.com" ]
leoprivacy@yahoo.com
53b31dc7b600f776876883874c4b2c4d2f8269e0
c4623aa95fb8cdd0ee1bc68962711c33af44604e
/src/com/yelp/android/ui/activities/businesspage/ar.java
0e2fb6125da4930a230c19d16ff61288b2fe585e
[]
no_license
reverseengineeringer/com.yelp.android
48f7f2c830a3a1714112649a6a0a3110f7bdc2b1
b0ac8d4f6cd5fc5543f0d8de399b6d7b3a2184c8
refs/heads/master
2021-01-19T02:07:25.997811
2016-07-19T16:37:24
2016-07-19T16:37:24
38,555,675
1
0
null
null
null
null
UTF-8
Java
false
false
994
java
package com.yelp.android.ui.activities.businesspage; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import com.yelp.android.serializable.YelpBusinessReview; import com.yelp.android.ui.activities.reviewpage.bi; import com.yelp.android.util.ObjectDirtyEvent; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.Set; class ar extends BroadcastReceiver { ar(BusinessPageFragment paramBusinessPageFragment) {} public void onReceive(Context paramContext, Intent paramIntent) { paramContext = (YelpBusinessReview)ObjectDirtyEvent.a(paramIntent); paramIntent = BusinessPageFragment.k(a).keySet().iterator(); while (paramIntent.hasNext()) { ((bi)paramIntent.next()).a(paramContext); } BusinessPageFragment.l(a).a(paramContext); } } /* Location: * Qualified Name: com.yelp.android.ui.activities.businesspage.ar * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
119321b62dd0c63ab641e0c7b00669077203425f
88058552f2b4f16bf63e31ceb4b76dd9a84b32ea
/modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201609/cm/ReportDefinitionServiceInterfacegetReportFields.java
29fb777a0d0fa3e327fc6b03f61d7371573ae1aa
[ "Apache-2.0" ]
permissive
fgonzalo/googleads-java-lib
9a20f6986f7dc5302e41b37e1407656dfafea073
f696d2fd4d8608b138ae30392a836c8972960e6e
refs/heads/master
2021-01-19T17:27:28.625379
2017-08-15T21:14:59
2017-08-15T21:14:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,313
java
// Copyright 2016 Google Inc. 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.google.api.ads.adwords.jaxws.v201609.cm; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * * Returns the available report fields for a given report type. * When using this method the {@code clientCustomerId} header field is * optional. Callers are discouraged from setting the clientCustomerId * header field in calls to this method as its presence will trigger an * authorization error if the caller does not have access to the customer * with the included ID. * * @param reportType The type of report. * @return The list of available report fields. Each * {@link ReportDefinitionField} encapsulates the field name, the * field data type, and the enum values (if the field's type is * {@code enum}). * @throws ApiException if a problem occurred while fetching the * ReportDefinitionField information. * * * <p>Java class for getReportFields element declaration. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;element name="getReportFields"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="reportType" type="{https://adwords.google.com/api/adwords/cm/v201609}ReportDefinition.ReportType" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "reportType" }) @XmlRootElement(name = "getReportFields") public class ReportDefinitionServiceInterfacegetReportFields { @XmlSchemaType(name = "string") protected ReportDefinitionReportType reportType; /** * Gets the value of the reportType property. * * @return * possible object is * {@link ReportDefinitionReportType } * */ public ReportDefinitionReportType getReportType() { return reportType; } /** * Sets the value of the reportType property. * * @param value * allowed object is * {@link ReportDefinitionReportType } * */ public void setReportType(ReportDefinitionReportType value) { this.reportType = value; } }
[ "jradcliff@users.noreply.github.com" ]
jradcliff@users.noreply.github.com
43b0d5d7c2a5bb8b5e6bb85aafea90bbdaf26191
863194470dceb3dff433fb9cb8846de4e491f316
/src/main/java/com/github/fabriciolfj/javacodeproblems/features/concurrency/completablefuture/MainThenAccept.java
6077d4e4894faf42adb52f6299fa20c79242bc05
[]
no_license
fabriciolfj/javacodeproblems
b69c1bb8175a8a6b6acc3610778600215580d49e
43252b964f9a1ea67d7f5c0235cf15e8bb1d06e6
refs/heads/master
2023-06-13T03:30:32.541971
2021-07-16T13:46:16
2021-07-16T13:46:16
272,845,112
0
0
null
null
null
null
UTF-8
Java
false
false
1,245
java
package com.github.fabriciolfj.javacodeproblems.features.concurrency.completablefuture; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; /* * Pega o retorno e um outro completable future e executa outro completable future, retornando void * */ public class MainThenAccept { private static Logger logger = LoggerFactory.getLogger(MainThenAccept.class); public static void main(String[] args) throws ExecutionException, InterruptedException { fetchInvoiceTotalSign(); } private static void fetchInvoiceTotalSign() throws ExecutionException, InterruptedException { CompletableFuture<String> cfFetchInvoice = CompletableFuture.supplyAsync(() -> { logger.info("Fetch invoice by: " + Thread.currentThread().getName()); try { Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } return "Invoice #3344"; }); cfFetchInvoice .thenApply(o -> o + "Total: $145 ") .thenAccept(o -> logger.info(o + "Signed")); cfFetchInvoice.get(); } }
[ "fabricio.jacob@outlook.com" ]
fabricio.jacob@outlook.com
acf3c62791e128de7ab9147ad6362b9f7bcd9e73
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-12798-27-18-FEMO-WeightedSum:TestLen:CallDiversity/org/xwiki/rendering/internal/transformation/macro/MacroTransformation_ESTest_scaffolding.java
ec019a6ed60c9f69bbe6c458d8c3988a575889ab
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
473
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sat Apr 04 21:24:25 UTC 2020 */ package org.xwiki.rendering.internal.transformation.macro; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class MacroTransformation_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
4ee67da6565249e57eb6329606e62e80784ec9f1
4810a15f89f4481fa2f600386a73983e48c3fdfe
/java-basic/day07/MethodSub02.java
c12fe15b228ed80006c470d0591312732100b63d
[]
no_license
fship1124/java86
54d779e46f8296ce6fb5e38dd58bd5d8ead92d05
d116fa70af0829675e281f90fc6baa8128f60cc5
refs/heads/master
2022-12-08T17:20:16.713751
2020-08-20T12:18:30
2020-08-20T12:18:30
288,993,715
0
0
null
null
null
null
UHC
Java
false
false
818
java
// 반환타입 연습... // 만약, 반환타입이 void가 아니라면 // 반드시 메서드내에 return 값; // 이 있어야 한다. // return 문의 의미 // 1. 메서드를 종료시킨다. // 2. 메서드를 호출한 곳으로 값을 넘겨준다. package day07; import java.util.Random; public class MethodSub02 { int method1() { return 1; } char method2() { return 'a'; } String method3() { return "a"; } Random method4() { return new Random(); } int[] method5() { // int[] arr = new int[3]; // return arr; // return new int[3]; // int[] arr = {1, 2, 3}; // return arr; // int[] arr = new int[]{1, 2, 3}; // return arr; return new int[]{1, 2, 3}; } HaHaHa method6(HoHoHo ho) { return new HaHaHa(); } } class HaHaHa {} class HoHoHo {}
[ "fship1124@gmail.com" ]
fship1124@gmail.com
cd6fd1c4c2b174d66558a5252653480d4563621e
cc69ae4e6042c0ae18e07298768f37f3fce9c8df
/Tinsta_Client/src/main/java/ir/sharif/math/ap99_2/tinsta_client/config/config_model/TextAreaSize.java
8ae31f1d5718e41eec2ee36d52b4dfbd10570d2d
[]
no_license
MrSalahshour/Tinsta
e66f2a6e9f5c56bfa0f98c9af2ee3b291b1a6137
c72e948c14987b92beac16a04e6cc3fab7e0b570
refs/heads/main
2023-07-15T18:40:14.052321
2021-08-28T11:54:49
2021-08-28T11:54:49
400,775,914
1
0
null
null
null
null
UTF-8
Java
false
false
523
java
package ir.sharif.math.ap99_2.tinsta_client.config.config_model; public class TextAreaSize { private int width; private int height; public TextAreaSize(int width, int height) { this.width = width; this.height = height; } public int getWidth() { return width; } public void setWidth(int width) { this.width = width; } public int getHeight() { return height; } public void setHeight(int height) { this.height = height; } }
[ "salahshour80mahdi@gmail.com" ]
salahshour80mahdi@gmail.com
57037f6fa463cd23a3fa3a04af768b486da13036
180e78725121de49801e34de358c32cf7148b0a2
/dataset/protocol1/kylin/learning/5209/BroadcasterReceiveServlet.java
fa0fd70b946e2147f815c2a698c89c93721f6a3e
[]
no_license
ASSERT-KTH/synthetic-checkstyle-error-dataset
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
40c057e1669584bfc6fecf789b5b2854660222f3
refs/heads/master
2023-03-18T12:50:55.410343
2019-01-25T09:54:39
2019-01-25T09:54:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,409
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kylin.rest.broadcaster; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** */ public class BroadcasterReceiveServlet extends HttpServlet { private static final long serialVersionUID = 1L; public interface BroadcasterHandler { void handle(String type, String name, String event); } private final BroadcasterHandler handler; public BroadcasterReceiveServlet(BroadcasterHandler handler) { this.handler = handler; } private static final Pattern PATTERN = Pattern.compile("/(.+)/(.+)/(.+)"); private static final Pattern PATTERN2 = Pattern.compile("/(.+)/(.+)"); @Override protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws IOException { handle(req, resp); } @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { handle(req, resp); } private void handle( HttpServletRequest req, HttpServletResponse resp) throws IOException { final String startString = "/kylin/api/cache"; final String requestURI = req.getRequestURI(); final String substring = requestURI.substring(requestURI.indexOf(startString) + startString.length()); final Matcher matcher = PATTERN.matcher(substring); final Matcher matcher2 = PATTERN2.matcher(substring); if (matcher.matches()) { String type = matcher.group(1); String cacheKey = matcher.group(2); String event = matcher.group(3); if (handler != null) { handler.handle(type, cacheKey, event); } resp.getWriter().write("type:" + type + " name:" + cacheKey + " event:" + event); } else if (matcher2.matches()) { String type = matcher2.group(1); String event = matcher2.group(2); BufferedReader br = new BufferedReader(new InputStreamReader(req.getInputStream(), "utf-8")); String cacheKey = br.readLine(); br.close(); if (handler != null) { handler.handle(type, cacheKey, event); } resp.getWriter().write("type:" + type + " name:" + cacheKey + " event:" + event); } else { resp.getWriter().write("not valid uri"); } resp.getWriter().close(); } }
[ "bloriot97@gmail.com" ]
bloriot97@gmail.com
7bea6b3aac5d60674583079c24f9cc0a43401e30
bab635f36c600f40f373bd295d7ab726b00a2aa0
/src/main/java/io/jboot/app/JbootApplication.java
d5bc95b489c283148c1ffecb705834913af33e9e
[ "Apache-2.0" ]
permissive
gitQqqHs/jboot
fba87181d35080033d21c1eb1c5440905b7a2044
f08fcb94bf98a66e7c6f35dae8644c6bccd9595e
refs/heads/master
2020-12-07T18:39:28.765878
2020-01-06T03:02:43
2020-01-06T03:02:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,800
java
/** * Copyright (c) 2015-2019, Michael Yang 杨福海 (fuhai999@gmail.com). * <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.jboot.app; import com.jfinal.server.undertow.UndertowConfig; import com.jfinal.server.undertow.UndertowServer; import com.jfinal.server.undertow.WebBuilder; import io.jboot.app.config.JbootConfigManager; import io.jboot.app.undertow.JbootUndertowConfig; import io.jboot.app.undertow.JbootUndertowServer; import javax.servlet.DispatcherType; import java.net.URISyntaxException; import java.net.URL; public class JbootApplication { public static void main(String[] args) { run(args); } public static void run(String[] args) { start(createServer(args)); } public static void run(String[] args, JbootWebBuilderConfiger configer) { start(createServer(args, configer)); } public static void start(UndertowServer server) { server.start(); if (isDevMode()) { new JbootResourceLoader().start(); } } /** * 创建 Undertow 服务器,public 用于可以给第三方创建创建着急的 Server * * @param args * @return 返回 UndertowServer */ public static UndertowServer createServer(String[] args) { JbootApplicationConfig appConfig = getAppConfig(args); return createServer(appConfig, createUndertowConfig(appConfig), null); } /** * 创建 Undertow 服务器,public 用于可以给第三方创建创建着急的 Server * <p> * JbootApplication.start(JbootApplication.createServer(args,new MyWebBuilderConfiger())) * * @param args * @param configer 可以通过 Configer 来进行自定义配置 * @return */ public static UndertowServer createServer(String[] args, JbootWebBuilderConfiger configer) { JbootApplicationConfig appConfig = getAppConfig(args); return createServer(appConfig, createUndertowConfig(appConfig), configer); } public static UndertowServer createServer(JbootApplicationConfig appConfig , UndertowConfig undertowConfig , JbootWebBuilderConfiger configer) { printBannerInfo(appConfig); printApplicationInfo(appConfig); printClassPath(); return new JbootUndertowServer(undertowConfig) .setDevMode(isDevMode()) .configWeb(webBuilder -> { tryAddMetricsSupport(webBuilder); tryAddShiroSupport(webBuilder); tryAddWebSocketSupport(webBuilder); if (configer != null) { configer.onConfig(webBuilder); } }); } public static JbootApplicationConfig getAppConfig(String[] args) { JbootConfigManager.me().parseArgs(args); return getConfig(JbootApplicationConfig.class); } public static UndertowConfig createUndertowConfig(JbootApplicationConfig appConfig) { UndertowConfig undertowConfig = new JbootUndertowConfig(appConfig.getJfinalConfig()); undertowConfig.addSystemClassPrefix("io.jboot.app"); undertowConfig.addHotSwapClassPrefix("io.jboot"); return undertowConfig; } private static void tryAddMetricsSupport(WebBuilder webBuilder) { String url = getConfigValue("jboot.metric.url"); String reporter = getConfigValue("jboot.metric.reporter"); if (url != null && reporter != null) { webBuilder.addServlet("MetricsAdminServlet", "com.codahale.metrics.servlets.AdminServlet") .addServletMapping("MetricsAdminServlet", url.endsWith("/*") ? url : url + "/*"); webBuilder.addListener("io.jboot.support.metric.JbootMetricServletContextListener"); webBuilder.addListener("io.jboot.support.metric.JbootHealthCheckServletContextListener"); } } private static void tryAddShiroSupport(WebBuilder webBuilder) { String iniConfig = getConfigValue("jboot.shiro.ini"); if (iniConfig != null) { String urlMapping = getConfigValue("jboot.shiro.urlMapping"); if (urlMapping == null) { urlMapping = "/*"; } webBuilder.addListener("org.apache.shiro.web.env.EnvironmentLoaderListener"); webBuilder.addFilter("shiro", "io.jboot.support.shiro.JbootShiroFilter") .addFilterUrlMapping("shiro", urlMapping, DispatcherType.REQUEST); } } private static void tryAddWebSocketSupport(WebBuilder webBuilder) { String websocketEndpoint = getConfigValue("jboot.web.webSocketEndpoint"); if (websocketEndpoint != null && websocketEndpoint.trim().length() > 0) { String[] classStrings = websocketEndpoint.split(","); for (String c : classStrings) { webBuilder.addWebSocketEndpoint(c.trim()); } } } private static void printBannerInfo(JbootApplicationConfig appConfig) { if (appConfig.isBannerEnable()) { System.out.println(); System.out.println(Banner.getText(appConfig.getBannerFile())); System.out.println(); } } private static void printApplicationInfo(JbootApplicationConfig appConfig) { System.out.println(appConfig.toString()); } private static void printClassPath() { try { URL resourceURL = JbootApplication.class.getResource("/"); if (resourceURL != null) { System.out.println("Classpath : " + resourceURL.toURI().getPath()); } else { System.out.println("Classpath : application in one jar."); } } catch (URISyntaxException e) { e.printStackTrace(); } } private static <T> T getConfig(Class<T> clazz) { return JbootConfigManager.me().get(clazz); } private static String getConfigValue(String key) { return JbootConfigManager.me().getConfigValue(key); } public static void setBootArg(String key, Object value) { JbootConfigManager.me().setBootArg(key, value); } private static boolean isDevMode() { return JbootConfigManager.me().isDevMode(); } }
[ "fuhai999@gmail.com" ]
fuhai999@gmail.com
b5081f8c4974688d6c670b0f9521ec9d2f1a5b5f
4da9097315831c8639a8491e881ec97fdf74c603
/src/StockIT-v1-release_source_from_JADX/sources/org/unimodules/interfaces/taskManager/C3535R.java
ca6ab8aee1be6849411df0ab86876f9a5ed16231
[ "Apache-2.0" ]
permissive
atul-vyshnav/2021_IBM_Code_Challenge_StockIT
5c3c11af285cf6f032b7c207e457f4c9a5b0c7e1
25c26a4cc59a3f3e575f617b59acc202ee6ee48a
refs/heads/main
2023-08-11T06:17:05.659651
2021-10-01T08:48:06
2021-10-01T08:48:06
410,595,708
1
1
null
null
null
null
UTF-8
Java
false
false
167
java
package org.unimodules.interfaces.taskManager; /* renamed from: org.unimodules.interfaces.taskManager.R */ public final class C3535R { private C3535R() { } }
[ "57108396+atul-vyshnav@users.noreply.github.com" ]
57108396+atul-vyshnav@users.noreply.github.com
5ef9f16ba6c97a51d0d767eadca625448fe36536
139aa575296282ad3d3756b2472e8f6518a5024c
/QHDemo3.1.0/mylibrary/src/main/java/com/qhcloud/net/PersonalFileListInfo.java
7dc14d8dd510cab521d61967c3396445deb872c4
[]
no_license
Sarah-alsh/QLinqDemo
c02931f8057f34bbfa2d2986009aafcc83f02508
090de0cc2a4ebaee62c76b4be44a78e0ee608938
refs/heads/master
2020-04-18T02:26:12.445663
2019-01-23T10:22:24
2019-01-23T10:22:24
167,162,437
0
2
null
null
null
null
UTF-8
Java
false
false
544
java
package com.qhcloud.net; import java.util.List; /** * Function:处理私人文件列表返回的结构体 * Created by xuzhuyun on 2016/9/8. * QLINK_COMM_GET_PERSONAL_FILE_LIST */ public class PersonalFileListInfo { private int size; private List<Long> mLongs; public int getSize() { return size; } public void setSize(int size) { this.size = size; } public List<Long> getLongs() { return mLongs; } public void setLongs(List<Long> longs) { mLongs = longs; } }
[ "sarah.shughri@gmail.com" ]
sarah.shughri@gmail.com
5e8a8cf0c1c795bda79465fbc9a231e7e7faea9f
a26cb82c15e8706b95ea01505b779e7de45e3e58
/fast-admin/src/main/java/com/ylkget/modules/job/service/impl/ScheduleJobLogServiceImpl.java
e576e4898f7922a34ac33bd4a456b122ba5dd289
[ "MIT" ]
permissive
ylksty/lc-fast
f9e3edcb8ec4d7d3981ee58c69ebfe63b480ddaa
d99f27e0ac3adf42cb9bbb584fe366438b1ea8dc
refs/heads/main
2023-03-22T15:53:45.197806
2021-03-14T14:34:11
2021-03-14T14:34:11
346,523,153
0
0
null
null
null
null
UTF-8
Java
false
false
1,247
java
package com.ylkget.modules.job.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ylkget.common.utils.PageUtils; import com.ylkget.common.utils.Query; import com.ylkget.modules.job.dao.ScheduleJobLogDao; import com.ylkget.modules.job.entity.ScheduleJobLogEntity; import com.ylkget.modules.job.service.ScheduleJobLogService; import org.apache.commons.lang.StringUtils; import org.springframework.stereotype.Service; import java.util.Map; /** * <p> * * </p> * * @author joe 2021/3/14 10:37 */ @Service("scheduleJobLogService") public class ScheduleJobLogServiceImpl extends ServiceImpl<ScheduleJobLogDao, ScheduleJobLogEntity> implements ScheduleJobLogService { @Override public PageUtils queryPage(Map<String, Object> params) { String jobId = (String)params.get("jobId"); IPage<ScheduleJobLogEntity> page = this.page( new Query<ScheduleJobLogEntity>().getPage(params), new QueryWrapper<ScheduleJobLogEntity>().like(StringUtils.isNotBlank(jobId),"job_id", jobId) ); return new PageUtils(page); } }
[ "ylksty@163.com" ]
ylksty@163.com
46f0db267e8d3a8e1d5d234c216b982984e24abb
71071f98d05549b67d4d6741e8202afdf6c87d45
/files/Spring_Data_for_Apache_Cassandra/DATACASS-172/spring-data-cassandra/src/main/java/org/springframework/data/cassandra/mapping/CassandraPersistentEntity.java
3ad894c4c83e05dfcc7bbc01d9804dc9d6e8c893
[]
no_license
Sun940201/SpringSpider
0adcdff1ccfe9ce37ba27e31b22ca438f08937ad
ff2fc7cea41e8707389cb62eae33439ba033282d
refs/heads/master
2022-12-22T09:01:54.550976
2018-06-01T06:31:03
2018-06-01T06:31:03
128,649,779
1
0
null
2022-12-16T00:51:27
2018-04-08T14:30:30
Java
UTF-8
Java
false
false
1,740
java
/* * Copyright 2013-2014 the original author or authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.data.cassandra.mapping; import java.util.List; import org.springframework.cassandra.core.cql.CqlIdentifier; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.data.mapping.PersistentEntity; import org.springframework.data.mapping.model.MutablePersistentEntity; /** * Cassandra specific {@link PersistentEntity} abstraction. * * @author Alex Shvid * @author Matthew T. Adams */ public interface CassandraPersistentEntity<T> extends MutablePersistentEntity<T, CassandraPersistentProperty>, ApplicationContextAware { /** * Returns whether this entity represents a composite primary key. */ boolean isCompositePrimaryKey(); List<CassandraPersistentProperty> getCompositePrimaryKeyProperties(); /** * Returns the table name to which the entity shall be persisted. */ CqlIdentifier getTableName(); void setTableName(CqlIdentifier tableName); CassandraMappingContext getMappingContext(); ApplicationContext getApplicationContext(); void setForceQuote(boolean forceQuote); }
[ "527474541@qq.com" ]
527474541@qq.com
3adbaffb43e72e19c9f40b75a76496c6af8bd253
8e37ce3b79dacb00cb3c6506130eb1151a01fb7c
/gomint-server/src/main/java/io/gomint/server/inventory/item/ItemSoulSand.java
320ea3a7082e215712c0fb98be8c75749a18e5fe
[ "BSD-3-Clause" ]
permissive
GWD1/GoMint
344da1c973933ac05a155a610c566b051d3d68aa
8bdbb59bf19d7dc2ba23e38edbdca24aad570bd8
refs/heads/master
2021-09-15T23:05:48.832616
2017-11-25T21:38:35
2017-11-25T21:38:35
112,009,303
0
0
null
2018-04-16T11:35:30
2017-11-25T14:21:32
Java
UTF-8
Java
false
false
552
java
package io.gomint.server.inventory.item; import io.gomint.server.registry.RegisterInfo; import io.gomint.taglib.NBTTagCompound; /** * @author geNAZt * @version 1.0 */ @RegisterInfo( id = 88 ) public class ItemSoulSand extends ItemStack implements io.gomint.inventory.item.ItemSoulSand { // CHECKSTYLE:OFF public ItemSoulSand( short data, int amount ) { super( 88, data, amount ); } public ItemSoulSand( short data, int amount, NBTTagCompound nbt ) { super( 88, data, amount, nbt ); } // CHECKSTYLE:ON }
[ "fabian.fassbender42@googlemail.com" ]
fabian.fassbender42@googlemail.com
3036d05c144020b66d112bb5b991975ff7a14b40
f55e0f08bbbbde3bbf06b83c822a93d54819b1e8
/app/src/main/java/com/jqsoft/nursing/bean/request/TreatmentListRequestBean.java
3a40ad300b239367ea931d16be45e51b9eeae122
[]
no_license
moshangqianye/nursing
27e58e30a51424502f1b636ae47b60b81a3b2ca0
20cd5aace59555ef9d708df0fb03639b2fc843d0
refs/heads/master
2020-09-08T13:39:55.939252
2020-03-20T09:55:34
2020-03-20T09:55:34
221,147,807
0
0
null
null
null
null
UTF-8
Java
false
false
652
java
package com.jqsoft.nursing.bean.request; import com.jqsoft.nursing.bean.base.HttpListRequestBaseBean; /** * Created by Administrator on 2017-06-02. */ public class TreatmentListRequestBean extends HttpListRequestBaseBean { public TreatmentListRequestBean() { } public TreatmentListRequestBean(String keyword, String area, int page, int size) { super(keyword, area, page, size); } public TreatmentListRequestBean(String v, String timestamp, String token, String appkey, String sig, String keyword, String area, int page, int size) { super(v, timestamp, token, appkey, sig, keyword, area, page, size); } }
[ "123456" ]
123456
b87d9be862a6baf03aa62bbac0d1b7114f102dad
f65b2cdc1970308ab26a7cf36da52f470cb5238a
/app/src/main/java/com/homepaas/sls/httputils/Constants.java
1e5a3d853cd88eed0ed7ee58f9725f687805e2a7
[]
no_license
Miotlink/MAndroidClient
5cac8a0eeff2289eb676a4ddd51a90926a6ff7ad
83cbd50c38662a7a3662221b52d6b71f157d9740
refs/heads/master
2020-04-18T11:24:18.926374
2019-01-25T06:44:13
2019-01-25T06:44:13
167,498,578
0
0
null
null
null
null
UTF-8
Java
false
false
974
java
package com.homepaas.sls.httputils; import com.homepaas.sls.R; import com.homepaas.sls.SimpleTinkerInApplicationLike; /** * Created by mhy on 2017/7/25. */ public class Constants { public static String CLIENT_TIMEOUT_EXCEPTION = "小二繁忙,请稍等~~~"; public static String SOCKET_TIMEOUT_EXCEPTION = "服务器响应超时,请稍后重试"; public static String CONNECT_EXCEPTION = SimpleTinkerInApplicationLike.getMainApplication().getString(R.string.please_check_network); public static String UNKNOWN_HOST_EXCEPTION = "服务器异常,请稍后再试"; public static String NULL_POINT_EREXCEPTION = "空指针异常"; public static String HTTP_EXCEPTION = ""; public static String INTERNAL_SERVER_ERROR = "服务器内部错误"; public static String OTHER_EXCEPTION = "未知错误"; public static String PARSE_EXCEPTION = "客户端解析异常"; public static String SSL_HANDSHAKE_EXCEPTION = "证书错误"; }
[ "pm@miotlinl.com" ]
pm@miotlinl.com
47594824bf05fb4d439e6ee1843d9ed697019c30
890546f58f5e1c0dcb7d41a60fdb970e2ab91173
/app/src/main/java/com/shoppay/cqsp/bean/Dengji.java
efa802ba86e72b3af2c8e0e113857b181c58412f
[]
no_license
yy471101598/changqingshipin
f496138dbedc93252e7c8aedf710326c32b7134b
d5aafac1b6c593416f4487721e4ca6140d61475c
refs/heads/master
2020-04-11T11:56:47.570709
2018-12-15T08:34:56
2018-12-15T08:34:56
161,764,676
0
0
null
null
null
null
UTF-8
Java
false
false
333
java
package com.shoppay.cqsp.bean; /** * Created by songxiaotao on 2017/7/3. */ public class Dengji { /** * success : true * msg : 查询成功! * code : 1 * data : [{"LevelID":"0","LevelName":"A等级"},{"LevelID":"4","LevelName":"B等级"}] */ public String LevelID; public String LevelName; }
[ "471101598@qq.com" ]
471101598@qq.com
143819bf677c3e1ba492d391c3e419b56d301ac5
4eb13c57ddef0bf53ce8921b2f77debb3d56b053
/design_pattern/src/main/java/com/learn/concurrent/design/chapter7/ImmutableClient.java
f600cbfca907740e0af8e8a42ff80a52a076fbe8
[]
no_license
liu92/learn-java-concurrenty
76fa92290a914efae4b5fd2035fae1424b8b4279
cbb8218796b0b3a268ec1868c0e2af6674490c03
refs/heads/master
2021-04-11T05:49:57.761408
2020-05-07T08:07:04
2020-05-07T08:07:04
248,997,071
0
0
null
null
null
null
UTF-8
Java
false
false
969
java
package com.learn.concurrent.design.chapter7; import java.util.stream.IntStream; /** * @ClassName: ImmutableClient * @Description: * @Author: lin * @Date: 2020/3/27 13:23 * History: * @<version> 1.0 */ public class ImmutableClient { public static void main(String[] args) { //share data Person person = new Person("lin","cd"); //多个线程访问共享变量,看看有什么问题 // IntStream.range(0, 5).forEach(i -> { new UsePersonThread(person).start(); }); //输入的结果,可以看到 这个不可变对象在多线程下,不会改变 // 不可变对象 就是你不能改变他的任何状态 //xxx //Thread-0 print Person{name='lin', address='cd'} //Thread-3 print Person{name='lin', address='cd'} //Thread-2 print Person{name='lin', address='cd'} //Thread-1 print Person{name='lin', address='cd'} //xxx } }
[ "470437289@qq.com" ]
470437289@qq.com
f9149787e8b26304214d3d30f8c495d0035de1f5
949c9d796c6779418d1b13c730a0acc3c22a7be0
/src/oasis/names/specification/ubl/schema/xsd/commonbasiccomponents_2/SalesOrderLineIDType.java
d7708d67d3082686433c513692ac47349445be14
[]
no_license
gvilauy/XpandeDIAN
2c649a397e7423bffcbe5efc68824a4ee207eb3a
e27966b3b668ba2f3d4b89920e448aeebe3a3dbb
refs/heads/master
2023-04-02T09:35:04.702985
2021-04-06T14:52:52
2021-04-06T14:52:52
333,752,128
0
0
null
null
null
null
UTF-8
Java
false
false
1,249
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2021.01.28 at 09:51:24 AM UYT // package oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; import oasis.names.specification.ubl.schema.xsd.unqualifieddatatypes_2.IdentifierType; /** * <p>Java class for SalesOrderLineIDType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="SalesOrderLineIDType"> * &lt;simpleContent> * &lt;extension base="&lt;urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2>IdentifierType"> * &lt;/extension> * &lt;/simpleContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SalesOrderLineIDType") public class SalesOrderLineIDType extends IdentifierType { }
[ "gabrielvila13@gmail.com" ]
gabrielvila13@gmail.com
f708d1aed7dfda04b2b98c55fa345aad71deb42b
f23de50063f1eee99d486902ffa443c8e443c82e
/src/test/java/yoan/shopping/user/repository/mongo/SecuredUserMongoConverterTest.java
87e67154859a4c86e986c2f2d4034a5cc66d185f
[]
no_license
mingderwang/ShoppingAPI
6fb91de2c061ef00bba5b67f4c7469e5d1fbd6e1
334d547382e5fe165555d0f722e012a44811965f
refs/heads/master
2021-01-15T11:23:14.712416
2016-04-17T22:30:49
2016-04-17T22:30:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,137
java
package yoan.shopping.user.repository.mongo; import static org.fest.assertions.api.Assertions.assertThat; import static yoan.shopping.infra.rest.error.Level.ERROR; import static yoan.shopping.infra.util.error.CommonErrorCode.APPLICATION_ERROR; import static yoan.shopping.user.repository.UserRepositoryErrorMessage.UNABLE_TO_CONVERT_UNSECURE_USER; import static yoan.shopping.user.repository.mongo.SecuredUserMongoConverter.FIELD_PASSWORD; import static yoan.shopping.user.repository.mongo.SecuredUserMongoConverter.FIELD_SALT; import static yoan.shopping.user.repository.mongo.SecuredUserMongoConverter.FIELD_SECURITY; import static yoan.shopping.user.repository.mongo.UserMongoConverter.FIELD_CREATED; import static yoan.shopping.user.repository.mongo.UserMongoConverter.FIELD_EMAIL; import static yoan.shopping.user.repository.mongo.UserMongoConverter.FIELD_ID; import static yoan.shopping.user.repository.mongo.UserMongoConverter.FIELD_LAST_UPDATE; import static yoan.shopping.user.repository.mongo.UserMongoConverter.FIELD_NAME; import java.time.LocalDateTime; import java.util.Date; import java.util.UUID; import org.bson.Document; import org.junit.Test; import yoan.shopping.infra.util.error.ApplicationException; import yoan.shopping.infra.util.helper.DateHelper; import yoan.shopping.test.TestHelper; import yoan.shopping.user.SecuredUser; import yoan.shopping.user.User; public class SecuredUserMongoConverterTest { @Test public void fromDocument_should_return_null_with_null_document() { //given Document nullDoc = null; SecuredUserMongoConverter testedConverter = new SecuredUserMongoConverter(); //when User result = testedConverter.fromDocument(nullDoc); //then assertThat(result).isNull(); } @Test public void fromDocument_should_work_with_valid_doc() { //given UUID expectId = UUID.randomUUID(); String expectedName = "name"; String expectedMail = "mail"; LocalDateTime expectedCreationDate = LocalDateTime.now(); LocalDateTime expectedLastUpdate = LocalDateTime.now(); String expectedPassword = "password"; Object expectedSalt = UUID.randomUUID().toString(); Document doc = new Document(FIELD_ID, expectId) .append(FIELD_NAME, expectedName) .append(FIELD_EMAIL, expectedMail) .append(FIELD_CREATED, DateHelper.toDate(expectedCreationDate)) .append(FIELD_LAST_UPDATE, DateHelper.toDate(expectedLastUpdate)) .append(FIELD_SECURITY , new Document(FIELD_PASSWORD, expectedPassword) .append(FIELD_SALT, expectedSalt)); SecuredUserMongoConverter testedConverter = new SecuredUserMongoConverter(); //when SecuredUser result = testedConverter.fromDocument(doc); //then assertThat(result).isNotNull(); assertThat(result.getId()).isEqualTo(expectId); assertThat(result.getName()).isEqualTo(expectedName); assertThat(result.getEmail()).isEqualTo(expectedMail); assertThat(result.getCreationDate()).isEqualTo(expectedCreationDate); assertThat(result.getLastUpdate()).isEqualTo(expectedLastUpdate); assertThat(result.getPassword()).isEqualTo(expectedPassword); assertThat(result.getSalt()).isEqualTo(expectedSalt); } @Test public void toDocument_should_return_empty_doc_with_null_user() { //given SecuredUser nulluser = null; SecuredUserMongoConverter testedConverter = new SecuredUserMongoConverter(); //when Document result = testedConverter.toDocument(nulluser); //then assertThat(result).isNotNull(); assertThat(result).isEqualTo(new Document()); } @Test(expected = ApplicationException.class) public void fromDocument_should_fail_with_unsecure_user_doc() { //given UUID expectedId = UUID.randomUUID(); Document unsecureUserDoc = new Document(FIELD_ID, expectedId) .append(FIELD_NAME, "name") .append(FIELD_EMAIL, "mail") .append(FIELD_LAST_UPDATE, new Date()) .append(FIELD_CREATED, new Date()); SecuredUserMongoConverter testedConverter = new SecuredUserMongoConverter(); //when try { testedConverter.fromDocument(unsecureUserDoc); } catch(ApplicationException ae) { //then TestHelper.assertApplicationException(ae, ERROR, APPLICATION_ERROR, UNABLE_TO_CONVERT_UNSECURE_USER.getDevReadableMessage(expectedId)); throw ae; } } @Test public void toDocument_should_work_with_valid_user() { //given User user = TestHelper.generateRandomUser(); SecuredUser securedUser = SecuredUser.Builder.createFrom(user).build(); SecuredUserMongoConverter testedConverter = new SecuredUserMongoConverter(); //when Document result = testedConverter.toDocument(securedUser); //then assertThat(result).isNotNull(); assertThat(result.get(FIELD_ID)).isEqualTo(securedUser.getId()); assertThat(result.get(FIELD_NAME)).isEqualTo(securedUser.getName()); assertThat(result.get(FIELD_EMAIL)).isEqualTo(securedUser.getEmail()); assertThat(DateHelper.toLocalDateTime(result.getDate(FIELD_CREATED))).isEqualTo(user.getCreationDate()); assertThat(DateHelper.toLocalDateTime(result.getDate(FIELD_LAST_UPDATE))).isEqualTo(user.getLastUpdate()); assertThat(result.get(FIELD_SECURITY, Document.class).getString(FIELD_PASSWORD)).isEqualTo(securedUser.getPassword()); assertThat(result.get(FIELD_SECURITY, Document.class).get(FIELD_SALT)).isEqualTo(securedUser.getSalt()); } @Test public void getChangePasswordUpdate_should_be_correct() { //given SecuredUser securedUser = TestHelper.generateRandomSecuredUser(); SecuredUserMongoConverter testedConverter = new SecuredUserMongoConverter(); //when Document result = testedConverter.getChangePasswordUpdate(securedUser); //then assertThat(result).isNotNull(); Document updateDoc = result.get("$set", Document.class); assertThat(updateDoc).isNotNull(); assertThat(DateHelper.toLocalDateTime(updateDoc.getDate(FIELD_LAST_UPDATE))).isEqualTo(securedUser.getLastUpdate()); assertThat(updateDoc.get(FIELD_SECURITY, Document.class).getString(FIELD_PASSWORD)).isEqualTo(securedUser.getPassword()); assertThat(updateDoc.get(FIELD_SECURITY, Document.class).get(FIELD_SALT)).isEqualTo(securedUser.getSalt()); } }
[ "tyoras@gmail.com" ]
tyoras@gmail.com
95011828fc5952d30ee6e598e803b13cfae1b73f
6cd4bc0cc0152339ddb62673ba2ef265d49b87f3
/src/it/algos/base/evento/form/FormStatoLis.java
aa26618b384b93a0d0d5cc546a75e0502208324b
[]
no_license
algos-soft/cinquestelle
aa45513dc881e1f416d9a9478aa7b84e16862ffb
ae73ac4e925ae0fea5d975c875c885b35fa3ad6d
refs/heads/master
2023-06-08T12:44:33.534035
2021-07-01T16:58:34
2021-07-01T16:58:34
382,099,945
0
0
null
null
null
null
UTF-8
Java
false
false
1,447
java
/** * Title: CampoListener * Copyright: Copyright (c) 2004 * Company: Algos s.r.l. * Author: gac * Date: 25-feb-2004 */ package it.algos.base.evento.form; import it.algos.base.evento.BaseListener; /** * Listener per la modifica di un form che ha modificato il suo stato. * </p> * Questa interfaccia: <ul> * <li> Riceve gli eventi </li> * <li> La classe che è interessata a ricevere un evento, implementa * questa interfaccia </li> * <li> L'oggetto della classe interessata, si deve registrare presso * la classe FormBase che genera l'evento </li> * <li> Per registrarsi, usa il metodo <code>addListener</code> </li> * <li> Quando l'evento viene lanciato unCampo.fireStatoModificato(), * viene invocato il metodo formStatoAz nell'oggetto * della classe che implementa questa interfaccia </li> * </ul> * * @author Guido Andrea Ceresa, Alessandro Valbonesi * @author gac * @version 1.0 / 25-feb-2004 ore 13.55.03 * @see java.awt.event.ActionEvent */ public interface FormStatoLis extends BaseListener { /** * formStatoAz, da FormStatoLis. * </p> * Esegue l'azione <br> * Rimanda al metodo sovrascritto, nell'oggetto specifico * della classe che genera questo evento <br> * Sovrascritto nelle sottoclassi <br> * * @param unEvento evento che causa l'azione da eseguire <br> */ public void formStatoAz(FormStatoEve unEvento); }// fine della interfaccia
[ "algos12" ]
algos12
ee6a6226f1e9b67523135c7fea88ca02814305c9
8a7b1b29366d7256f3e4969df9d58a1989553838
/DoctorJump/src/com/zrong/view/CoverFlow.java
10f274fd8b95c9d8c7f4313fb3a51e554743f04b
[]
no_license
2006003845/zrlh
395dca4c00cc04b847a3d184fa59cc591f35cb85
7a8947f3783fea684d9fe217acff2f6ea26d2746
refs/heads/master
2021-01-11T09:31:33.492711
2017-02-08T02:46:12
2017-02-08T02:46:12
81,279,113
0
0
null
null
null
null
GB18030
Java
false
false
5,434
java
package com.zrong.view; import android.content.Context; import android.graphics.Camera; import android.graphics.Matrix; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.animation.Transformation; import android.widget.Gallery; import android.widget.ImageView; //自己定义的Gallery public class CoverFlow extends Gallery { private Camera mCamera = new Camera(); private int mMaxRotationAngle = 45; private int mMaxZoom = -450; private int mCoveflowCenter; private boolean mAlphaMode = false; private boolean mCircleMode = false; public CoverFlow(Context context) { super(context); this.setStaticTransformationsEnabled(true); setChildrenDrawingOrderEnabled(true); } public CoverFlow(Context context, AttributeSet attrs) { super(context, attrs); this.setStaticTransformationsEnabled(true); setChildrenDrawingOrderEnabled(true); } public CoverFlow(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); this.setStaticTransformationsEnabled(true); setChildrenDrawingOrderEnabled(true); } public int getMaxRotationAngle() { return mMaxRotationAngle; } public void setMaxRotationAngle(int maxRotationAngle) { mMaxRotationAngle = maxRotationAngle; } public boolean getCircleMode() { return mCircleMode; } public void setCircleMode(boolean isCircle) { mCircleMode = isCircle; } public boolean getAlphaMode() { return mAlphaMode; } public void setAlphaMode(boolean isAlpha) { mAlphaMode = isAlpha; } public int getMaxZoom() { return mMaxZoom; } public void setMaxZoom(int maxZoom) { mMaxZoom = maxZoom; } private int getCenterOfCoverflow() { return (getWidth() - getPaddingLeft() - getPaddingRight()) / 2 + getPaddingLeft(); } private static int getCenterOfView(View view) { return view.getLeft() + view.getWidth() / 2; } // 重写Garray方法 ,产生层叠和放大效果 @Override protected boolean getChildStaticTransformation(View child, Transformation t) { final int childCenter = getCenterOfView(child); final int childWidth = child.getWidth(); int rotationAngle = 0; t.clear(); t.setTransformationType(Transformation.TYPE_MATRIX); if (childCenter == mCoveflowCenter) { transformImageBitmap(child, t, 0, 0); } else { rotationAngle = (int) (((float) (mCoveflowCenter - childCenter) / childWidth) * mMaxRotationAngle); // Log.d("test", "recanglenum:"+Math.floor ((mCoveflowCenter - // childCenter) / childWidth)); if (Math.abs(rotationAngle) > mMaxRotationAngle) { rotationAngle = (rotationAngle < 0) ? -mMaxRotationAngle : mMaxRotationAngle; } transformImageBitmap( child, t, rotationAngle, (int) Math.floor((mCoveflowCenter - childCenter) / (childWidth == 0 ? 1 : childWidth))); } return true; } /** * This is called during layout when the size of this view has changed. If * you were just added to the view hierarchy, you're called with the old * values of 0. * * @param w * Current width of this view. * @param h * Current height of this view. * @param oldw * Old width of this view. * @param oldh * Old height of this view. */ protected void onSizeChanged(int w, int h, int oldw, int oldh) { mCoveflowCenter = getCenterOfCoverflow(); super.onSizeChanged(w, h, oldw, oldh); } /** * Transform the Image Bitmap by the Angle passed * * @param imageView * ImageView the ImageView whose bitmap we want to rotate * @param t * transformation * @param rotationAngle * the Angle by which to rotate the Bitmap */ private void transformImageBitmap(View child, Transformation t, int rotationAngle, int d) { mCamera.save(); final Matrix imageMatrix = t.getMatrix(); final int imageHeight = child.getLayoutParams().height; final int imageWidth = child.getLayoutParams().width; final int rotation = Math.abs(rotationAngle); mCamera.translate(0.0f, 0.0f, 100.0f); // As the angle of the view gets less, zoom in if (rotation <= mMaxRotationAngle) { float zoomAmount = (float) (mMaxZoom + (rotation * 1.5)); mCamera.translate(0.0f, 0.0f, zoomAmount); if (mCircleMode) { if (rotation < 40) mCamera.translate(0.0f, 155, 0.0f); else mCamera.translate(0.0f, (255 - rotation * 2.5f), 0.0f); } if (mAlphaMode) { ((ImageView) (child)).setAlpha((int) (255 - rotation * 2.5)); } } mCamera.rotateY(rotationAngle); mCamera.getMatrix(imageMatrix); imageMatrix.preTranslate(-(imageWidth / 2), -(imageHeight / 2)); imageMatrix.postTranslate((imageWidth / 2), (imageHeight / 2)); mCamera.restore(); } @Override protected int getChildDrawingOrder(int childCount, int i) { Log.i("Log5", "childCount" + childCount); Log.i("Log5", "i" + i); int first = getFirstVisiblePosition(); int ss = getSelectedItemPosition(); int index = ss - first; Log.i("Log5", "first" + getFirstVisiblePosition()); if (i < index) { return i; } else if (i == childCount - 1) { return index; } else if (i >= index && i < childCount - 1) { return childCount - (i - index) - 1; } return i; } @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { return super.onFling(e1, e2, velocityX / 2, velocityY); } }
[ "zhilongzhou@creditease.cn" ]
zhilongzhou@creditease.cn
46e8494da544fa3c139b98ef89afd76bfdc63472
5933b91e09fe60feec38f1ed06570dc80431b393
/src/at/ac/fh_kufstein/uebung_05/Classes/Wasserfahrzeug.java
17ee01ca1516a61cf46621bd592f682bfc76dc1f
[]
no_license
idrisdedication/1810653130_Aufgaben_Serie5
bb08a80d62a522b8e74906ff5749c5a9c43e0465
7a701be8ab7a1876222c91ea0a89e19fa45df868
refs/heads/master
2020-04-11T03:18:27.569949
2018-12-12T10:48:44
2018-12-12T10:48:44
161,474,009
0
0
null
null
null
null
UTF-8
Java
false
false
1,225
java
package at.ac.fh_kufstein.uebung_05.Classes; public class Wasserfahrzeug extends Fahrzeug { private double tiefgang; private short schrauben; private double ladung; public void entladen() throws InterruptedException { this.ladung = 0; Thread.sleep(500); } // Aufgabe 3 public double getTiefgang() { return tiefgang; } public void setTiefgang(double tiefgang) { this.tiefgang = tiefgang; } public short getSchrauben() { return schrauben; } public void setSchrauben(short schrauben) { this.schrauben = schrauben; } public double getLadung() { return ladung; } public void setLadung(double ladung) { this.ladung = ladung; } public Wasserfahrzeug(double tiefgang, short schrauben, double ladung, short reifen, String color, short ps, short tueren, short geschwindigkeit) { super(reifen, color, ps, tueren, geschwindigkeit); this.tiefgang = tiefgang; this.schrauben = schrauben; this.ladung = ladung; } }
[ "you@example.com" ]
you@example.com
510c4a987e23b8f2f5379175c36d4dd1e37e39e3
39a92b02467fdd96cd1b99a8d029bc2002b3f588
/server/src/main/java/moe/shizuku/server/utils/OsUtils.java
6ae570ad9b292c959b5b2bd8be1718343cc58163
[ "Apache-2.0" ]
permissive
android-tests-cbwang2016/Shizuku
aa808247d7290a38e549a117901394efcb8e6bb7
139eec7b3438abc49ff781a4afdec1f51dbd5d80
refs/heads/master
2023-05-09T14:33:21.838623
2021-05-30T11:02:14
2021-05-30T11:02:14
341,868,394
0
0
Apache-2.0
2021-03-21T12:57:10
2021-02-24T10:50:28
Kotlin
UTF-8
Java
false
false
680
java
package moe.shizuku.server.utils; import android.os.SELinux; public class OsUtils { private static final int UID = android.system.Os.getuid(); private static final int PID = android.system.Os.getpid(); private static final String SELINUX_CONTEXT; static { String context; try { context = SELinux.getContext(); } catch (Throwable tr) { context = null; } SELINUX_CONTEXT = context; } public static int getUid() { return UID; } public static int getPid() { return PID; } public static String getSELinuxContext() { return SELINUX_CONTEXT; } }
[ "rikka@shizuku.moe" ]
rikka@shizuku.moe
2789d821582ab5a120336244e359f57733fe5b30
e6ed2a1897310e08193c3f8b5d657ed5c92180f2
/app/src/main/java/com/kiosk/rfid/RFIDReaderManager.java
d3d440121f5eeb0a442d58a906ee4a0b1f783479
[]
no_license
loipn1804/VirtNet-Kiosk
1ef27c5aea9001750346f421d9ae38c15379ce19
853a89145c1ee7cdb938e3a8b9fd0c2e49d4a230
refs/heads/master
2021-01-01T05:08:20.952954
2016-05-25T11:39:50
2016-05-25T11:39:50
59,658,095
0
0
null
null
null
null
UTF-8
Java
false
false
742
java
package com.kiosk.rfid; import android.content.Context; /** * Created by HuynhBinh on 12/7/15. */ public class RFIDReaderManager { private Context mContext = null; RFIDReaderCallback callback = null; public interface RFIDReaderCallback { void onSuccess(String rfid); void onError(String strError); void onWarning(String strWarning); } public RFIDReaderManager(Context context, RFIDReaderCallback callback) { this.mContext = context; this.callback = callback; startRead(); } public void startRead() { String rfidData = "RFID123456"; if (callback != null) { callback.onSuccess(rfidData); } } }
[ "phanngocloi1804@gmail.com" ]
phanngocloi1804@gmail.com
33097c897b9bfcb7ed806795210da427cf35c4eb
ef1d87b64da817da712227fb869b2fd23b32e8a7
/bus-image/src/main/java/org/aoju/bus/image/galaxy/data/ElementDictionary.java
1580fc75efd6cce5c4f5b0a08e2e82b6f9c920ca
[ "MIT" ]
permissive
Touhousupports/bus
b4a91563df2118d4b52a7c1345a8eb9c21380fd9
e2e3951b9921d7a92c7e0fdce24781e08b588f00
refs/heads/master
2022-11-22T09:26:18.088266
2020-07-17T02:17:43
2020-07-17T02:17:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,132
java
/********************************************************************************* * * * The MIT License (MIT) * * * * Copyright (c) 2015-2020 aoju.org and other contributors. * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * * in the Software without restriction, including without limitation the rights * * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included in * * all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * * THE SOFTWARE. * ********************************************************************************/ package org.aoju.bus.image.galaxy.data; import java.util.ServiceLoader; /** * @author Kimi Liu * @version 6.0.3 * @since JDK 1.8+ */ public abstract class ElementDictionary { private static final ServiceLoader<ElementDictionary> loader = ServiceLoader.load(ElementDictionary.class); private final String privateCreator; private final Class<?> tagClass; protected ElementDictionary(String privateCreator, Class<?> tagClass) { this.privateCreator = privateCreator; this.tagClass = tagClass; } public static ElementDictionary getStandardElementDictionary() { return StandardDictionary.INSTANCE; } public static ElementDictionary getElementDictionary( String privateCreator) { if (privateCreator != null) synchronized (loader) { for (ElementDictionary dict : loader) if (privateCreator.equals(dict.getPrivateCreator())) return dict; } return getStandardElementDictionary(); } public static void reload() { synchronized (loader) { loader.reload(); } } public static VR vrOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).vrOf(tag); } public static String keywordOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).keywordOf(tag); } public static int tagForKeyword(String keyword, String privateCreatorID) { return getElementDictionary(privateCreatorID).tagForKeyword(keyword); } public final String getPrivateCreator() { return privateCreator; } public abstract VR vrOf(int tag); public abstract String keywordOf(int tag); public int tmTagOf(int daTag) { return 0; } public int daTagOf(int tmTag) { return 0; } public int tagForKeyword(String keyword) { if (tagClass != null) try { return tagClass.getField(keyword).getInt(null); } catch (Exception ignore) { } return -1; } }
[ "839536@qq.com" ]
839536@qq.com
c8f63a96a1950c4913d43680aaf308883bfe54e2
f9456e29108a59df11fb4c2cd63853fa781391e6
/src/main/java/org/txazo/openframework/httpclient/pool/HttpRequest.java
8799d6306bd039b80a809563648aebe0f788cf4e
[ "Apache-2.0" ]
permissive
txazo/java
5a974d9fbc589e9744b0e3bf2f03723468388a25
d3e9b20ee98c890bfaa464140554961d9850a06d
refs/heads/master
2022-12-25T14:58:34.752341
2021-09-16T14:41:21
2021-09-16T14:41:21
62,528,396
0
1
Apache-2.0
2022-12-10T03:27:23
2016-07-04T03:19:02
Java
UTF-8
Java
false
false
2,731
java
package org.txazo.openframework.httpclient.pool; import org.apache.commons.collections4.MapUtils; import org.apache.commons.lang3.StringUtils; import org.apache.http.HttpEntity; import org.apache.http.NameValuePair; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.ContentType; import org.apache.http.entity.mime.HttpMultipartMode; import org.apache.http.entity.mime.MultipartEntityBuilder; import org.apache.http.entity.mime.content.FileBody; import org.apache.http.entity.mime.content.StringBody; import org.apache.http.message.BasicNameValuePair; import java.io.File; import java.io.FileNotFoundException; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.List; import java.util.Map; public class HttpRequest extends HttpPost { private HttpResponseCallback callback; public HttpRequest(String url) throws UnsupportedEncodingException { super(url); } public HttpRequest(String url, Map<String, Object> params) throws UnsupportedEncodingException { super(url); setEntity(buildFormEntity(params)); } private static HttpEntity buildFormEntity(Map<String, Object> params) throws UnsupportedEncodingException { List<NameValuePair> formParams = new ArrayList<>(); if (MapUtils.isNotEmpty(params)) { for (Map.Entry<String, Object> entry : params.entrySet()) { if (StringUtils.isBlank(entry.getKey())) { continue; } formParams.add(new BasicNameValuePair(entry.getKey(), entry.getValue() == null ? StringUtils.EMPTY : entry.getValue().toString())); } } return new UrlEncodedFormEntity(formParams, "UTF-8"); } public void setFileEntity(Map<String, Object> params, String fileName, File file) throws FileNotFoundException { MultipartEntityBuilder entityBuilder = MultipartEntityBuilder.create(); entityBuilder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE); if (MapUtils.isNotEmpty(params)) { for (Map.Entry<String, Object> entry : params.entrySet()) { entityBuilder.addPart(entry.getKey(), new StringBody(entry.getValue() == null ? StringUtils.EMPTY : entry.getValue().toString(), ContentType.create("text/plain", "UTF-8"))); } } entityBuilder.addPart(fileName, new FileBody(file, ContentType.DEFAULT_BINARY)); setEntity(entityBuilder.build()); } public HttpResponseCallback getCallback() { return callback; } public void setCallback(HttpResponseCallback callback) { this.callback = callback; } }
[ "784990655@qq.com" ]
784990655@qq.com
6b6ea9e4a8fc8da480d1419429f51d5a108c9e00
e042eb6da97087e3ace484b2419bcaed5e7ea039
/CclaServices/CclaServices/CclaServices/src/cl/com/ccla/type/wsdashnotif/RQNotificarTrxWP.java
1dabc466a7a02f5e16dd2a391bb569dd28252aa4
[]
no_license
gmemo4523/S4tCcla
601627d34e4464db6545e6dc17ee5e36c5e86d38
d1c6536496a0597fccb44256be59d4e263f20048
refs/heads/master
2020-03-27T22:25:17.304662
2018-09-04T15:34:17
2018-09-04T15:34:17
147,229,436
0
0
null
null
null
null
UTF-8
Java
false
false
2,724
java
package cl.com.ccla.type.wsdashnotif; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for RQ_NotificarTrx_WP complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="RQ_NotificarTrx_WP"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="ID_TRX" type="{http://www.w3.org/2001/XMLSchema}string"/> * &lt;element name="TipoMov" type="{http://www.w3.org/2001/XMLSchema}string"/> * &lt;element name="dataWP" type="{http://producto.notificacion.dashboard.ws.ccla.cl/}RQ_Data_WP"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "RQ_NotificarTrx_WP", propOrder = { "idtrx", "tipoMov", "dataWP" }) public class RQNotificarTrxWP { @XmlElement(name = "ID_TRX", required = true) protected String idtrx; @XmlElement(name = "TipoMov", required = true) protected String tipoMov; @XmlElement(required = true) protected RQDataWP dataWP; /** * Gets the value of the idtrx property. * * @return * possible object is * {@link String } * */ public String getIDTRX() { return idtrx; } /** * Sets the value of the idtrx property. * * @param value * allowed object is * {@link String } * */ public void setIDTRX(String value) { this.idtrx = value; } /** * Gets the value of the tipoMov property. * * @return * possible object is * {@link String } * */ public String getTipoMov() { return tipoMov; } /** * Sets the value of the tipoMov property. * * @param value * allowed object is * {@link String } * */ public void setTipoMov(String value) { this.tipoMov = value; } /** * Gets the value of the dataWP property. * * @return * possible object is * {@link RQDataWP } * */ public RQDataWP getDataWP() { return dataWP; } /** * Sets the value of the dataWP property. * * @param value * allowed object is * {@link RQDataWP } * */ public void setDataWP(RQDataWP value) { this.dataWP = value; } }
[ "seed4tech" ]
seed4tech
76399235bddd1c4813d6cbde3cd819c8a47491ae
08b8d598fbae8332c1766ab021020928aeb08872
/src/gcom/faturamento/FiltroMotivoCancelamento.java
0cd6b70fcd51f34b4b92e50f2a825bef9fd2d2ce
[]
no_license
Procenge/GSAN-CAGEPA
53bf9bab01ae8116d08cfee7f0044d3be6f2de07
dfe64f3088a1357d2381e9f4280011d1da299433
refs/heads/master
2020-05-18T17:24:51.407985
2015-05-18T23:08:21
2015-05-18T23:08:21
25,368,185
3
1
null
null
null
null
WINDOWS-1252
Java
false
false
3,755
java
/* * Copyright (C) 2007-2007 the GSAN – Sistema Integrado de Gestão de Serviços de Saneamento * * This file is part of GSAN, an integrated service management system for Sanitation * * GSAN is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License. * * GSAN is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place – Suite 330, Boston, MA 02111-1307, USA */ /* * GSAN – Sistema Integrado de Gestão de Serviços de Saneamento * Copyright (C) <2007> * Adriano Britto Siqueira * Alexandre Santos Cabral * Ana Carolina Alves Breda * Ana Maria Andrade Cavalcante * Aryed Lins de Araújo * Bruno Leonardo Rodrigues Barros * Carlos Elmano Rodrigues Ferreira * Cláudio de Andrade Lira * Denys Guimarães Guenes Tavares * Eduardo Breckenfeld da Rosa Borges * Fabíola Gomes de Araújo * Flávio Leonardo Cavalcanti Cordeiro * Francisco do Nascimento Júnior * Homero Sampaio Cavalcanti * Ivan Sérgio da Silva Júnior * José Edmar de Siqueira * José Thiago Tenório Lopes * Kássia Regina Silvestre de Albuquerque * Leonardo Luiz Vieira da Silva * Márcio Roberto Batista da Silva * Maria de Fátima Sampaio Leite * Micaela Maria Coelho de Araújo * Nelson Mendonça de Carvalho * Newton Morais e Silva * Pedro Alexandre Santos da Silva Filho * Rafael Corrêa Lima e Silva * Rafael Francisco Pinto * Rafael Koury Monteiro * Rafael Palermo de Araújo * Raphael Veras Rossiter * Roberto Sobreira Barbalho * Rodrigo Avellar Silveira * Rosana Carvalho Barbosa * Sávio Luiz de Andrade Cavalcante * Tai Mu Shih * Thiago Augusto Souza do Nascimento * Tiago Moreno Rodrigues * Vivianne Barbosa Sousa * * Este programa é software livre; você pode redistribuí-lo e/ou * modificá-lo sob os termos de Licença Pública Geral GNU, conforme * publicada pela Free Software Foundation; versão 2 da * Licença. * Este programa é distribuído na expectativa de ser útil, mas SEM * QUALQUER GARANTIA; sem mesmo a garantia implícita de * COMERCIALIZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM * PARTICULAR. Consulte a Licença Pública Geral GNU para obter mais * detalhes. * Você deve ter recebido uma cópia da Licença Pública Geral GNU * junto com este programa; se não, escreva para Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307, USA. */ package gcom.faturamento; import gcom.util.filtro.Filtro; /** * Descrição da classe * * @author Eduardo Bianchi * @date 20/03/2007 */ public class FiltroMotivoCancelamento extends Filtro { /** * */ private static final long serialVersionUID = 1L; /** * Constructor for FiltroMotivoCancelamento object */ public FiltroMotivoCancelamento() { } /** * Constructor for FiltroMotivoCancelamento object * * @param campoOrderBy * Description of the Parameter */ public FiltroMotivoCancelamento(String campoOrderBy) { this.campoOrderBy = campoOrderBy; } /** * Description of the Field */ public final static String ID = "id"; /** * Descricao da Zona de Abastecimento */ public final static String DESCRICAO = "descricaoMotivoCancelContrato"; /** * Indicador de Uso da Zona de Abastecimento */ public final static String INDICADOR_USO = "indicadorUso"; }
[ "Yara.Souza@procenge.com.br" ]
Yara.Souza@procenge.com.br
d3609b3d0cf5c1729bd1ff626c61f6ca5e69ae32
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/16/16_a37eb1ff24a24a1401eb421cc7ae387c18bb74d7/PlayerTest/16_a37eb1ff24a24a1401eb421cc7ae387c18bb74d7_PlayerTest_s.java
45a68f90c15bf3f35a617504503c0e57ac612559
[]
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,302
java
/** * --------------------------------------------------------------------------- * File name: PlayerTest.java<br/> * Project name: quasiZork<br/> * --------------------------------------------------------------------------- * Creator's name and email: Matthew Paul, paulmr@goldmail.etsu.edu<br/> * Course: CSCI 1260-088<br/> * Creation Date: Mar 15, 2012<br/> * Date of Last Modification: Mar 15, 2012 * --------------------------------------------------------------------------- */ package test; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import weapons.Stick; import weapons.Sword; import weapons.Weapon; import core.Player; /** * Test driver for the person class.<br> * * <hr> * Date created: Mar 15, 2012<br> * Date last modified: Mar 15, 2012<br> * <hr> * @author Matthew Paul */ public class PlayerTest { /** * Main method for the driver. <br> * * <hr> * Date created: Mar 15, 2012 <br> * Date last modified: Mar 15, 2012 <br> * * <hr> * @param args */ public static void main(String [ ] args) { // create a new player and display him Player player = new Player("Gilgamesh", 100); System.out.println("Displaying player: " + player); // create a stick, give it to the player, and display him Weapon stick = new Stick(); System.out.println("Giving " + player.getName( ) + " a " + stick.getName( )); player.setWeapon(stick); System.out.println("Displaying player: " + player + "\n\n"); System.out.println(player.getWeapon( )); // create a copy of the player, change his name, and display him Player shadowPlayer = new Player(player); System.out.println("Oh Noes! " + player.getName( ) + "'s shadow has rebelled!"); shadowPlayer.setName("shadow " + player.getName( )); System.out.println(shadowPlayer.getName( ) + " was born!"); System.out.println(shadowPlayer + "\n\n"); System.out.println(shadowPlayer.getWeapon( )); // create a sword, give it to the player, and display both players Weapon sword = new Sword(); System.out.println("Giving " + player.getName( ) + " a " + sword.getName( ) + "."); player.setWeapon(sword); System.out.println(player); System.out.println(shadowPlayer + "\n\n"); // simulate the player wailing on his shadow while (shadowPlayer.getHealth( ) > 0) { int damage = player.attack( ); System.out.println(player.getName( ) + " attacks " + shadowPlayer.getName( ) + (damage == 0 ? " but misses." : " and hits for " + damage + " damage!")); shadowPlayer.takeDamage(damage); System.out.println(player); System.out.println(shadowPlayer + "\n\n"); if (shadowPlayer.getHealth( ) < 1) { System.out.println(shadowPlayer.getName( ) + " is dead."); } } // check the average hit rate of the player for off-by-1 errors int attackCount = 0; for (int c = 0; c < 10000; c++) { if (player.attack( ) != 0) attackCount++; } System.out.println("The average hit percent over 10,000 attacks is " + ((double)attackCount / 10000) + "."); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
e203232df02496325998c3a4984d893eb8f19025
7a493cb447fa7e415940c092b3203ebdf873a04d
/CloudSchoolBusTeacherAndroid/app/src/com/guokrspace/cloudschoolbus/teacher/entity/Teacher.java
18dc7f0ff49b828b5bbfd56010c0614d4358ec0e
[ "Apache-2.0" ]
permissive
GuokrSpaceTech/CloudSchoolBusAndroid
255bfc549015faa12263069144c0a911d12761ab
24c0aab45b5c59bb5525c5ad36159e8a5f23808f
refs/heads/master
2021-05-30T06:45:03.802614
2016-01-17T10:34:56
2016-01-17T10:34:56
28,945,730
0
1
null
null
null
null
UTF-8
Java
false
false
961
java
package com.guokrspace.cloudschoolbus.teacher.entity; import java.io.Serializable; /** * Created by kai on 12/25/14. */ // {"avatar":"http:\/\/cloud.yunxiaoche.com\/images\/teacher.jpg", // "id":"1234", // "duty":"班主任", // "name":"小美"}], public class Teacher implements Serializable { private String avatar; private String id; private String duty; private String name; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getDuty() { return duty; } public void setDuty(String duty) { this.duty = duty; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAvatar() { return avatar; } public void setAvatar(String avatar) { this.avatar = avatar; } }
[ "qch1970@gmail.com" ]
qch1970@gmail.com
a079232ed5907f17e1928996ec16a2dee4a39cca
65c37921c5000bc01a428d36f059578ce02ebaab
/jooq/src/main/test/test/generated/pg_catalog/routines/OnPs.java
b2ef1d2e97d6641d701fb7b37487b031d99059d2
[]
no_license
azeredoA/projetos
05dde053aaba32f825f17f3e951d2fcb2d3034fc
7be5995edfaad4449ec3c68d422247fc113281d0
refs/heads/master
2021-01-11T05:43:21.466522
2013-06-10T15:39:42
2013-06-10T15:40:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,548
java
/** * This class is generated by jOOQ */ package test.generated.pg_catalog.routines; /** * This class is generated by jOOQ. */ @javax.annotation.Generated(value = {"http://www.jooq.org", "2.6.0"}, comments = "This class is generated by jOOQ") @java.lang.SuppressWarnings("all") public class OnPs extends org.jooq.impl.AbstractRoutine<java.lang.Boolean> { private static final long serialVersionUID = -1377318974; /** * The procedure parameter <code>pg_catalog.on_ps.RETURN_VALUE</code> */ public static final org.jooq.Parameter<java.lang.Boolean> RETURN_VALUE = createParameter("RETURN_VALUE", org.jooq.impl.SQLDataType.BOOLEAN); /** * The procedure parameter <code>pg_catalog.on_ps._1</code> * <p> * The SQL type of this item (point) could not be mapped.<br/> * Deserialising this field might not work! */ public static final org.jooq.Parameter<java.lang.Object> _1 = createParameter("_1", org.jooq.util.postgres.PostgresDataType.getDefaultDataType("point")); /** * The procedure parameter <code>pg_catalog.on_ps._2</code> * <p> * The SQL type of this item (lseg) could not be mapped.<br/> * Deserialising this field might not work! */ public static final org.jooq.Parameter<java.lang.Object> _2 = createParameter("_2", org.jooq.util.postgres.PostgresDataType.getDefaultDataType("lseg")); /** * Create a new routine call instance */ public OnPs() { super("on_ps", test.generated.pg_catalog.PgCatalog.PG_CATALOG, org.jooq.impl.SQLDataType.BOOLEAN); setReturnParameter(RETURN_VALUE); addInParameter(_1); addInParameter(_2); } /** * Set the <code>_1</code> parameter IN value to the routine */ public void set__1(java.lang.Object value) { setValue(test.generated.pg_catalog.routines.OnPs._1, value); } /** * Set the <code>_1</code> parameter to the function * <p> * Use this method only, if the function is called as a {@link org.jooq.Field} in a {@link org.jooq.Select} statement! */ public void set__1(org.jooq.Field<java.lang.Object> field) { setField(_1, field); } /** * Set the <code>_2</code> parameter IN value to the routine */ public void set__2(java.lang.Object value) { setValue(test.generated.pg_catalog.routines.OnPs._2, value); } /** * Set the <code>_2</code> parameter to the function * <p> * Use this method only, if the function is called as a {@link org.jooq.Field} in a {@link org.jooq.Select} statement! */ public void set__2(org.jooq.Field<java.lang.Object> field) { setField(_2, field); } }
[ "lindomar_reitz@hotmail.com" ]
lindomar_reitz@hotmail.com
e25b9942a2569353a1928b8b538f68799e1cd469
54c2ba8bcede572abae27886fe7a599215030924
/src/main/java/com/jd/open/api/sdk/request/imgzone/ImgzonePictureQueryRequest.java
660299b25acddc033d8bc167517d155ea60c26b7
[]
no_license
pingjiang/jd-open-api-sdk-src
4c8bcc1e139657c0b6512126e9408cc71873ee30
0d82d3a14fb7f931a4a1e25dc18fb2f1cfaadd81
refs/heads/master
2021-01-01T17:57:04.734329
2014-06-26T03:49:36
2014-06-26T03:49:36
21,227,086
17
15
null
null
null
null
UTF-8
Java
false
false
3,064
java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) // Source File Name: ImgzonePictureQueryRequest.java package com.jd.open.api.sdk.request.imgzone; import com.jd.open.api.sdk.internal.util.JsonUtil; import com.jd.open.api.sdk.request.AbstractRequest; import com.jd.open.api.sdk.request.JdRequest; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Map; import java.util.TreeMap; public class ImgzonePictureQueryRequest extends AbstractRequest implements JdRequest { public ImgzonePictureQueryRequest() { } public void setPictureId(String pictureId) { this.pictureId = pictureId; } public String getPictureId() { return pictureId; } public void setPictureCateId(Integer pictureCateId) { this.pictureCateId = pictureCateId; } public Integer getPictureCateId() { return pictureCateId; } public void setPictureName(String pictureName) { this.pictureName = pictureName; } public String getPictureName() { return pictureName; } public void setStartDate(Date startDate) { this.startDate = startDate; } public Date getStartDate() { return startDate; } public void setEndDate(Date endDate) { this.endDate = endDate; } public Date getEndDate() { return endDate; } public void setPageNum(Integer pageNum) { this.pageNum = pageNum; } public Integer getPageNum() { return pageNum; } public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } public Integer getPageSize() { return pageSize; } public String getApiMethod() { return "jingdong.imgzone.picture.query"; } public String getAppJsonParams() throws IOException { Map pmap = new TreeMap(); pmap.put("picture_id", pictureId); pmap.put("picture_cate_id", pictureCateId); pmap.put("picture_name", pictureName); try { if (startDate != null) pmap.put("start_date", (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).format(startDate)); } catch (Exception e) { e.printStackTrace(); } try { if (endDate != null) pmap.put("end_Date", (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).format(endDate)); } catch (Exception e) { e.printStackTrace(); } pmap.put("page_num", pageNum); pmap.put("page_size", pageSize); return JsonUtil.toJson(pmap); } public Class getResponseClass() { return com.jd.open.api.sdk.response.imgzone.ImgzonePictureQueryResponse.class; } private String pictureId; private Integer pictureCateId; private String pictureName; private Date startDate; private Date endDate; private Integer pageNum; private Integer pageSize; }
[ "pingjiang1989@gmail.com" ]
pingjiang1989@gmail.com
9afdaa00ffff23eca8c5e13c9fb42a3964dc02fa
124df74bce796598d224c4380c60c8e95756f761
/com.raytheon.uf.viz.datadelivery/src/com/raytheon/uf/viz/datadelivery/subscription/subset/LevelParameterSelection.java
0691f395ae3f9db39b2448a4165c101df5d647ee
[]
no_license
Mapoet/AWIPS-Test
19059bbd401573950995c8cc442ddd45588e6c9f
43c5a7cc360b3cbec2ae94cb58594fe247253621
refs/heads/master
2020-04-17T03:35:57.762513
2017-02-06T17:17:58
2017-02-06T17:17:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,279
java
/** * This software was developed and / or modified by Raytheon Company, * pursuant to Contract DG133W-05-CQ-1067 with the US Government. * * U.S. EXPORT CONTROLLED TECHNICAL DATA * This software product contains export-restricted data whose * export/transfer/disclosure is restricted by U.S. law. Dissemination * to non-U.S. persons whether in the United States or abroad requires * an export license or other authorization. * * Contractor Name: Raytheon Company * Contractor Address: 6825 Pine Street, Suite 340 * Mail Stop B8 * Omaha, NE 68106 * 402.291.0100 * * See the AWIPS II Master Rights File ("Master Rights File.pdf") for * further licensing information. **/ package com.raytheon.uf.viz.datadelivery.subscription.subset; import java.util.ArrayList; import java.util.List; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; import com.raytheon.uf.common.datadelivery.registry.DataLevelType; import com.raytheon.viz.ui.widgets.duallist.DualList; import com.raytheon.viz.ui.widgets.duallist.DualListConfig; import com.raytheon.viz.ui.widgets.duallist.IUpdate; /** * Level/Parameter selection widgets. * * <pre> * * SOFTWARE HISTORY * * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- * Feb 16, 2012 mpduff Initial creation. * Aug 08, 2012 863 jpiatt Added clean & dirty checks. * * </pre> * * @author mpduff * @version 1.0 */ public class LevelParameterSelection extends Composite implements IUpdate { private final List<String> levelList; private final List<String> paramList; private final DataLevelType levelType; /** Dual list for levels */ private DualList dualLevelList; /** Dual list for parameters */ private DualList dualParamList; private final ISubset callback; private final String id; /** Flag to determine if tab has changed */ private boolean isDirty = false; /** * Constructor * * @param parent * @param style * @param levelType * @param levelList * @param paramList * @param callback * @param id */ public LevelParameterSelection(Composite parent, int style, DataLevelType levelType, List<String> levelList, List<String> paramList, ISubset callback, String id) { super(parent, style); this.levelType = levelType; this.levelList = levelList; this.paramList = paramList; this.callback = callback; this.id = id; init(); } private void init() { GridData gd = new GridData(SWT.DEFAULT, SWT.DEFAULT, false, false); GridLayout gl = new GridLayout(1, false); gl.verticalSpacing = 2; gl.marginHeight = 2; gl.marginWidth = 2; this.setLayout(gl); this.setLayoutData(gd); if (levelList != null && levelList.size() > 0) { DualListConfig levelConfig = new DualListConfig(); levelConfig.setAvailableListLabel("Available Levels:"); levelConfig.setSelectedListLabel("Selected Levels:"); levelConfig.setListHeight(75); levelConfig.setListWidth(100); levelConfig.setShowUpDownBtns(false); levelConfig.setFullList(levelList); dualLevelList = new DualList(this, SWT.NONE, levelConfig, this); } DualListConfig paramConfig = new DualListConfig(); paramConfig.setAvailableListLabel("Available Parameters:"); paramConfig.setSelectedListLabel("Selected Parameters:"); paramConfig.setListHeight(75); paramConfig.setListWidth(100); paramConfig.setShowUpDownBtns(false); paramConfig.setFullList(paramList); dualParamList = new DualList(this, SWT.NONE, paramConfig, this); } /* * (non-Javadoc) * * @see * com.raytheon.uf.viz.datadelivery.common.ui.IUpdate#hasEntries(boolean) */ @Override public void hasEntries(boolean entries) { if (dualParamList != null && dualLevelList != null) { if (dualParamList.getItemCount() > 0 && this.dualLevelList.getItemCount() > 0) { callback.updateSelectionState(true, id); } else { callback.updateSelectionState(false, id); } } else { if (dualParamList != null && dualParamList.getItemCount() > 0) { callback.updateSelectionState(true, id); } else { callback.updateSelectionState(false, id); } } } /** * Get the number of items in the level selected list. * * @return The number of items in the selected list */ public int getLevelSelectListCount() { return dualLevelList.getItemCount(); } /** * Get the number of items in the parameter selected list. * * @return The number of items in the selected list */ public int getParamSelectListCount() { return dualParamList.getItemCount(); } /** * Get the items in the selected parameter list. * * @return String[] of items */ public String[] getSelectedParameters() { return dualParamList.getSelectedListItems(); } /** * Get the items in the selected level list. * * @return String[] of items */ public String[] getSelectedLevels() { if (dualLevelList != null) { return dualLevelList.getSelectedListItems(); } return new String[0]; } /** * If items are selected in the list then can expand * * @return true if item can expand */ public boolean shouldExpand() { if (dualParamList != null && dualLevelList != null) { if (dualParamList.getItemCount() > 0 && this.dualLevelList.getItemCount() > 0) { return true; } } else { if (dualParamList.getItemCount() > 0) { return true; } } return false; } /** * Action when selecting Parameters on the vertical tab. * * @param levelList */ public void selectLevels(ArrayList<String> levelList) { dualLevelList .selectItems(levelList.toArray(new String[levelList.size()])); } /** * Action when selecting Parameters on the vertical tab. * * @param paramList */ public void selectParameters(ArrayList<String> paramList) { dualParamList .selectItems(paramList.toArray(new String[paramList.size()])); } /** * Set isDirty flag. * * @return isDirty */ public boolean isDirty() { return isDirty; } /** * Set parameters to clean. */ public void setClean() { isDirty = false; } @Override public void selectionChanged() { isDirty = true; } public DataLevelType getLevelType() { return levelType; } }
[ "joshua.t.love@saic.com" ]
joshua.t.love@saic.com
d67c230a810add4d837cbc8e3c57c06b56401642
5b89acddd55d942b87f217fc03f98de3ed24004e
/innodev-pdp-core/src/main/java/cn/com/innodev/pdp/framework/bizcommon/Gender.java
b3dfdf89932b15dc90532abe7321baa817233334
[]
no_license
soltex/pdp
5acd4a79c222fa2302f92138d05ac3bb6bb55e48
10d39984c51ad2cb9d85251b43d7d4fc6c32e423
refs/heads/master
2021-01-25T08:55:18.856224
2014-11-24T07:16:30
2014-11-24T07:16:30
26,630,100
1
2
null
null
null
null
UTF-8
Java
false
false
538
java
/** * */ package cn.com.innodev.pdp.framework.bizcommon; import com.vanstone.business.lang.BaseEnum; /** * @author shipeng * */ public enum Gender implements BaseEnum<Integer> { Male("男",1),FMale("女",0),None("保密",-1) ; private String desc; private Integer code; private Gender(String desc, Integer code) { this.desc = desc; this.code = code; } @Override public Integer getCode() { return this.code; } @Override public String getDesc() { return this.desc; } }
[ "shipengpipi@126.com" ]
shipengpipi@126.com
d0a86f5f11025cf3a5fbcb637681ba62393f4308
cb48d006a057fa73e6619a3706692a367958b87e
/src/main/java/com/steiner/config/ApplicationProperties.java
f4f259890aff163d978e60c62a6116055be7f59b
[]
no_license
BulkSecurityGeneratorProject1/crud
f7bd0fd6010d4b0b07eca33d3c9be11f619fc7e6
a91db198b1160fe304296f10b754d75d95a406d9
refs/heads/master
2022-12-15T14:46:02.691292
2017-05-20T22:44:02
2017-05-20T22:44:02
296,632,433
0
0
null
2020-09-18T13:42:32
2020-09-18T13:42:31
null
UTF-8
Java
false
false
348
java
package com.steiner.config; import org.springframework.boot.context.properties.ConfigurationProperties; /** * Properties specific to JHipster. * * <p> * Properties are configured in the application.yml file. * </p> */ @ConfigurationProperties(prefix = "application", ignoreUnknownFields = false) public class ApplicationProperties { }
[ "thiagosteiner@gmail.com" ]
thiagosteiner@gmail.com
f29ae23afa23520ea47a3f4eacef84c8b2ffa6a6
bcf03d43318239f6242e53e0bdd3c4753c08fc79
/java/defpackage/afz$1$1.java
50abdd00fa8f49d53c965481db96e108bafaccd7
[]
no_license
morristech/Candid
24699d45f9efb08787316154d05ad5e6a7a181a5
102dd9504cac407326b67ca7a36df8adf6a8b450
refs/heads/master
2021-01-22T21:07:12.067146
2016-12-22T18:40:30
2016-12-22T18:40:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
490
java
package defpackage; class afz$1$1 implements Runnable { final /* synthetic */ afz$1 a; afz$1$1(afz$1 afz_1) { this.a = afz_1; } public void run() { if (!this.a.d.c.a(this.a.b)) { return; } if (this.a.a.d().O()) { this.a.c.E().a("Device AppMeasurementService processed last upload request"); } else { this.a.c.E().a("Local AppMeasurementService processed last upload request"); } } }
[ "admin@timo.de.vc" ]
admin@timo.de.vc
0500db4fa6ed6244c48fe8e6033d5234fc49fcaf
38a87c581f606263e57165ab11a734f4146b640f
/src/oopPart2/composition/Dimensions.java
ef57bd0dde86b7d83ce30b703c28a0ad36341d95
[]
no_license
bartoszmaleta/javaUdemyMasterclassBuchalka
232667a95fa69b84c3b0852df75b07de2cce83fe
45a2014c0129ef37fc86c29360066738cf6d566f
refs/heads/master
2020-11-27T01:29:37.777448
2020-03-01T18:40:22
2020-03-01T18:40:22
229,256,832
0
0
null
null
null
null
UTF-8
Java
false
false
453
java
package oopPart2.composition; public class Dimensions { private int width; private int height; private int depth; public Dimensions(int width, int height, int depth) { this.width = width; this.height = height; this.depth = depth; } public int getWidth() { return width; } public int getHeight() { return height; } public int getDepth() { return depth; } }
[ "bartosz.maleta@gmail.com" ]
bartosz.maleta@gmail.com
39cac633c33aefc78e8d857cd5bbc9863cb0c341
7df5a7088d940ca150f2e4328bc95738fadf9c8b
/java/l2r/gameserver/engines/items/DocumentItem.java
ea96dac0a4bfecc1365269944ec799096e6446b4
[]
no_license
AwakeNz/L2J_SunriseProject_Purity
f707840a42b16b5271717b37fc3c49cc64fadb07
d13a7a63d99d067495bb26627bc50e44b59c4522
refs/heads/master
2022-03-27T21:05:37.716977
2019-12-13T20:01:07
2019-12-13T20:01:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,184
java
/* * Copyright (C) 2004-2015 L2J Server * * This file is part of L2J Server. * * L2J Server 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. * * L2J Server is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package l2r.gameserver.engines.items; import l2r.gameserver.engines.DocumentBase; import l2r.gameserver.model.StatsSet; import l2r.gameserver.model.conditions.Condition; import l2r.gameserver.model.items.L2Item; import l2r.gameserver.model.items.L2Weapon; import l2r.gameserver.model.items.type.ItemSkillType; import l2r.gameserver.model.stats.Stats; import l2r.gameserver.model.stats.functions.FuncTemplate; import org.w3c.dom.Document; import org.w3c.dom.Node; import java.io.File; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.List; /** * @author mkizub, JIV */ public final class DocumentItem extends DocumentBase { private Item _currentItem = null; private final List<L2Item> _itemsInFile = new ArrayList<>(); /** * @param file */ public DocumentItem(File file) { super(file); } @Override protected StatsSet getStatsSet() { return _currentItem.set; } @Override protected String getTableValue(String name) { return _tables.get(name)[_currentItem.currentLevel]; } @Override protected String getTableValue(String name, int idx) { return _tables.get(name)[idx - 1]; } @Override protected void parseDocument(Document doc) { for (Node n = doc.getFirstChild(); n != null; n = n.getNextSibling()) { if ("list".equalsIgnoreCase(n.getNodeName())) { for (Node d = n.getFirstChild(); d != null; d = d.getNextSibling()) { if ("item".equalsIgnoreCase(d.getNodeName())) { try { _currentItem = new Item(); parseItem(d); _itemsInFile.add(_currentItem.item); resetTable(); } catch (Exception e) { _log.warn("Cannot create item " + _currentItem.id, e); } } } } } } protected void parseItem(Node n) throws InvocationTargetException { int itemId = Integer.parseInt(n.getAttributes().getNamedItem("id").getNodeValue()); String className = n.getAttributes().getNamedItem("type").getNodeValue(); String itemName = n.getAttributes().getNamedItem("name").getNodeValue(); final String additionalName = n.getAttributes().getNamedItem("additionalName") != null ? n.getAttributes().getNamedItem("additionalName").getNodeValue() : null; _currentItem.id = itemId; _currentItem.name = itemName; _currentItem.type = className; _currentItem.set = new StatsSet(); _currentItem.set.set("item_id", itemId); _currentItem.set.set("name", itemName); _currentItem.set.set("additionalName", additionalName); Node first = n.getFirstChild(); for (n = first; n != null; n = n.getNextSibling()) { if ("table".equalsIgnoreCase(n.getNodeName())) { if (_currentItem.item != null) { throw new IllegalStateException("Item created but table node found! Item " + itemId); } parseTable(n); } else if ("set".equalsIgnoreCase(n.getNodeName())) { if (_currentItem.item != null) { throw new IllegalStateException("Item created but set node found! Item " + itemId); } parseBeanSet(n, _currentItem.set, 1); } else if ("for".equalsIgnoreCase(n.getNodeName())) { makeItem(); parseTemplate(n, _currentItem.item); } else if ("cond".equalsIgnoreCase(n.getNodeName())) { makeItem(); Condition condition = parseCondition(n.getFirstChild(), _currentItem.item); Node msg = n.getAttributes().getNamedItem("msg"); Node msgId = n.getAttributes().getNamedItem("msgId"); if ((condition != null) && (msg != null)) { condition.setMessage(msg.getNodeValue()); } else if ((condition != null) && (msgId != null)) { condition.setMessageId(Integer.decode(getValue(msgId.getNodeValue(), null))); Node addName = n.getAttributes().getNamedItem("addName"); if ((addName != null) && (Integer.decode(getValue(msgId.getNodeValue(), null)) > 0)) { condition.addName(); } } _currentItem.item.attach(condition); } // GC confirmed else if ("stats".equalsIgnoreCase(n.getNodeName())) { makeItem(); for (Node b = n.getFirstChild(); b != null; b = b.getNextSibling()) { if ("stat".equalsIgnoreCase(b.getNodeName())) { final Stats type = Stats.valueOfXml(b.getAttributes().getNamedItem("type").getNodeValue()); final double value = Double.valueOf(b.getTextContent()); if (!b.getAttributes().getNamedItem("type").getNodeValue().equalsIgnoreCase("randomdamage")) { _currentItem.item.attach(new FuncTemplate(null, null, "add", 0x00, type, value)); } else if (_currentItem.item instanceof L2Weapon) { ((L2Weapon) _currentItem.item)._rndDam = Integer.parseInt(b.getTextContent()); } } } } else if ("skills".equalsIgnoreCase(n.getNodeName())) { makeItem(); for (Node b = n.getFirstChild(); b != null; b = b.getNextSibling()) { if ("skill".equalsIgnoreCase(b.getNodeName())) { final int id = Integer.parseInt(b.getAttributes().getNamedItem("id").getNodeValue()); final int level = Integer.parseInt(b.getAttributes().getNamedItem("level").getNodeValue()); if (b.getAttributes().getNamedItem("type") != null) { if (ItemSkillType.valueOf(b.getAttributes().getNamedItem("type").getNodeValue()) != ItemSkillType.NORMAL) { if (ItemSkillType.valueOf(b.getAttributes().getNamedItem("type").getNodeValue()) == ItemSkillType.ON_UNEQUIP) { _currentItem.item.setUnEquipSkill(id, level); } if (ItemSkillType.valueOf(b.getAttributes().getNamedItem("type").getNodeValue()) == ItemSkillType.ON_ENCHANT) { _currentItem.item.setEnchant4Skill(id, level); } continue; } } _currentItem.item.addSkill(id, level); } } } } // bah! in this point item doesn't have to be still created makeItem(); } private void makeItem() throws InvocationTargetException { if (_currentItem.item != null) { return; // item is already created } try { Constructor<?> c = Class.forName("l2r.gameserver.model.items.L2" + _currentItem.type).getConstructor(StatsSet.class); _currentItem.item = (L2Item) c.newInstance(_currentItem.set); _currentItem.item.parseEnchant(); } catch (Exception e) { throw new InvocationTargetException(e); } } public List<L2Item> getItemList() { return _itemsInFile; } }
[ "dwarven-manufacture@outlook.com" ]
dwarven-manufacture@outlook.com
e822c0bad1eaf6ebb510c7b4ce8ceaca715ee3e6
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/elastic--elasticsearch/904cbf53409ae62bb67cd07c31ef88121cff9361/before/TemplateQueryParserTest.java
ab84b23d2c42edcca266c3cced6aeba05c0a3cc8
[]
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
7,319
java
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.elasticsearch.index.query; import org.apache.lucene.search.MatchAllDocsQuery; import org.apache.lucene.search.Query; import org.elasticsearch.Version; import org.elasticsearch.cluster.ClusterService; import org.elasticsearch.cluster.metadata.IndexMetaData; import org.elasticsearch.common.inject.AbstractModule; import org.elasticsearch.common.inject.Injector; import org.elasticsearch.common.inject.ModulesBuilder; import org.elasticsearch.common.inject.util.Providers; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.settings.SettingsModule; import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.env.Environment; import org.elasticsearch.env.EnvironmentModule; import org.elasticsearch.index.Index; import org.elasticsearch.index.IndexNameModule; import org.elasticsearch.index.analysis.AnalysisModule; import org.elasticsearch.index.cache.IndexCacheModule; import org.elasticsearch.index.query.functionscore.FunctionScoreModule; import org.elasticsearch.index.settings.IndexSettingsModule; import org.elasticsearch.index.similarity.SimilarityModule; import org.elasticsearch.indices.breaker.CircuitBreakerService; import org.elasticsearch.indices.breaker.NoneCircuitBreakerService; import org.elasticsearch.indices.query.IndicesQueriesModule; import org.elasticsearch.script.ScriptModule; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.threadpool.ThreadPool; import org.elasticsearch.threadpool.ThreadPoolModule; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.io.IOException; /** * Test parsing and executing a template request. */ // NOTE: this can't be migrated to ESSingleNodeTestCase because of the custom path.conf public class TemplateQueryParserTest extends ESTestCase { private Injector injector; private QueryParseContext context; @Before public void setup() throws IOException { Settings settings = Settings.settingsBuilder() .put("path.home", createTempDir().toString()) .put("path.conf", this.getDataPath("config")) .put("name", getClass().getName()) .put(IndexMetaData.SETTING_VERSION_CREATED, Version.CURRENT) .build(); Index index = new Index("test"); injector = new ModulesBuilder().add( new EnvironmentModule(new Environment(settings)), new SettingsModule(settings), new ThreadPoolModule(new ThreadPool(settings)), new IndicesQueriesModule(), new ScriptModule(settings), new IndexSettingsModule(index, settings), new IndexCacheModule(settings), new AnalysisModule(settings), new SimilarityModule(settings), new IndexNameModule(index), new FunctionScoreModule(), new AbstractModule() { @Override protected void configure() { bind(ClusterService.class).toProvider(Providers.of((ClusterService) null)); bind(CircuitBreakerService.class).to(NoneCircuitBreakerService.class); } } ).createInjector(); IndexQueryParserService queryParserService = injector.getInstance(IndexQueryParserService.class); context = new QueryParseContext(index, queryParserService); } @Override @After public void tearDown() throws Exception { super.tearDown(); terminate(injector.getInstance(ThreadPool.class)); } @Test public void testParser() throws IOException { String templateString = "{" + "\"query\":{\"match_{{template}}\": {}}," + "\"params\":{\"template\":\"all\"}" + "}"; XContentParser templateSourceParser = XContentFactory.xContent(templateString).createParser(templateString); context.reset(templateSourceParser); templateSourceParser.nextToken(); TemplateQueryParser parser = injector.getInstance(TemplateQueryParser.class); Query query = parser.parse(context); assertTrue("Parsing template query failed.", query instanceof MatchAllDocsQuery); } @Test public void testParseTemplateAsSingleStringWithConditionalClause() throws IOException { String templateString = "{" + " \"inline\" : \"{ \\\"match_{{#use_it}}{{template}}{{/use_it}}\\\":{} }\"," + " \"params\":{" + " \"template\":\"all\"," + " \"use_it\": true" + " }" + "}"; XContentParser templateSourceParser = XContentFactory.xContent(templateString).createParser(templateString); context.reset(templateSourceParser); TemplateQueryParser parser = injector.getInstance(TemplateQueryParser.class); Query query = parser.parse(context); assertTrue("Parsing template query failed.", query instanceof MatchAllDocsQuery); } /** * Test that the template query parser can parse and evaluate template * expressed as a single string but still it expects only the query * specification (thus this test should fail with specific exception). */ @Test(expected = QueryParsingException.class) public void testParseTemplateFailsToParseCompleteQueryAsSingleString() throws IOException { String templateString = "{" + " \"inline\" : \"{ \\\"size\\\": \\\"{{size}}\\\", \\\"query\\\":{\\\"match_all\\\":{}}}\"," + " \"params\":{" + " \"size\":2" + " }\n" + "}"; XContentParser templateSourceParser = XContentFactory.xContent(templateString).createParser(templateString); context.reset(templateSourceParser); TemplateQueryParser parser = injector.getInstance(TemplateQueryParser.class); parser.parse(context); } @Test public void testParserCanExtractTemplateNames() throws Exception { String templateString = "{ \"file\": \"storedTemplate\" ,\"params\":{\"template\":\"all\" } } "; XContentParser templateSourceParser = XContentFactory.xContent(templateString).createParser(templateString); context.reset(templateSourceParser); templateSourceParser.nextToken(); TemplateQueryParser parser = injector.getInstance(TemplateQueryParser.class); Query query = parser.parse(context); assertTrue("Parsing template query failed.", query instanceof MatchAllDocsQuery); } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
e905328e3c731719894b51711abc00dfca5d9023
74ca72a287d13b4a677069f6a82998e684e5af81
/dsj_house/dsj-pageLayout/dsj-pageLayout-service/src/main/java/com/dsj/modules/pagelayout/service/impl/WapItemSetServiceImpl.java
36c81e98337234011788a482d09cb9d02c0e6f1d
[]
no_license
tomdev2008/dsj_house
5d8187b3fca63bd2fc83ea781ea9cda0a91943a2
988ab003b1fec4dfb12d3712adde58a4abef067c
refs/heads/master
2020-03-29T05:17:18.866087
2017-12-01T11:53:58
2017-12-01T11:53:58
149,575,972
0
1
null
null
null
null
UTF-8
Java
false
false
632
java
package com.dsj.modules.pagelayout.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.dsj.common.core.service.BaseServiceImpl; import com.dsj.modules.pagelayout.service.WapItemSetService; import com.dsj.modules.pagelayout.dao.WapItemSetDao; import com.dsj.modules.pagelayout.po.WapItemSetPo; /** * * @描述: Service接口实现类. * @作者: gaocj * @创建时间: 2017-08-24 10:57:52. * @版本: 1.0 . */ @Service public class WapItemSetServiceImpl extends BaseServiceImpl<WapItemSetDao,WapItemSetPo> implements WapItemSetService { }
[ "940678055@qq.com" ]
940678055@qq.com
d820320b51b6d005600a218cee49cdf091cd5749
fa5ccd565d1b5c7b6bcca56ee14354336da04706
/cocoon/src/blocks/woody/java/org/apache/cocoon/woody/binding/AggregateJXPathBinding.java
9b366005a61dcc886f7e6c531b5f5221edda1dc2
[ "Apache-2.0" ]
permissive
digitalpixies/pdf
67abd9401af0e8b4aace2ff673ba6040369f82a9
77f82ec78bd8bcd847d32434cfb152845a0a24b1
refs/heads/master
2016-09-05T11:14:51.768026
2013-04-02T18:45:03
2013-04-02T18:45:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,504
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.cocoon.woody.binding; import org.apache.cocoon.woody.formmodel.AggregateField; import org.apache.cocoon.woody.formmodel.Widget; import org.apache.commons.jxpath.JXPathContext; /** * AggregateJXPathBinding provides an implementation of a {@link Binding} * that narrows the context towards provided childbindings. * <p> * NOTES: <ol> * <li>This Binding assumes that the provided widget-id points to a widget * that contains other widgets.</li> * </ol> * * @version CVS $Id: AggregateJXPathBinding.java 433543 2006-08-22 06:22:54Z crossley $ */ public class AggregateJXPathBinding extends ComposedJXPathBindingBase { private final String xpath; private final String widgetId; /** * Constructs AggregateJXPathBinding * @param widgetId * @param xpath * @param childBindings */ public AggregateJXPathBinding( JXPathBindingBuilderBase.CommonAttributes commonAtts, String widgetId, String xpath, JXPathBindingBase[] childBindings) { super(commonAtts, childBindings); this.widgetId = widgetId; this.xpath = xpath; } /** * Narrows the scope on the form-model to the member widget-field, and * narrows the scope on the object-model to the member xpath-context * before continuing the binding over the child-bindings. */ public void doLoad(Widget frmModel, JXPathContext jxpc) throws BindingException { AggregateField aggregate = (AggregateField)frmModel.getWidget(this.widgetId); JXPathContext subContext = jxpc.getRelativeContext(jxpc.getPointer(this.xpath)); super.doLoad(aggregate, subContext); aggregate.combineFields(); if (getLogger().isDebugEnabled()) { getLogger().debug("Done loading " + toString()); } } /** * Narrows the scope on the form-model to the member widget-field, and * narrows the scope on the object-model to the member xpath-context * before continuing the binding over the child-bindings. */ public void doSave(Widget frmModel, JXPathContext jxpc) throws BindingException { AggregateField aggregate = (AggregateField) frmModel.getWidget(this.widgetId); JXPathContext subContext = jxpc.getRelativeContext(jxpc.getPointer(this.xpath)); super.doSave(aggregate, subContext); if (getLogger().isDebugEnabled()) { getLogger().debug("Done saving " + toString()); } } public String toString() { return "AggregateJXPathBinding [widget=" + this.widgetId + ", xpath=" + this.xpath + "]"; } }
[ "rhuie@cpsbc.ca" ]
rhuie@cpsbc.ca
c3cb17861c51963d51147146d01717da6b36caec
c1b23a03926012ccee280b3895f100cec61d2407
/topdeep_web_common/server/common-core/src/main/java/topdeep/commonfund/entity/hundsun/C018OutputAdapta.java
fc5c0c0a4c1fed36c20ba1fbead5907f62be3f3d
[]
no_license
zhuangxiaotian/project
a0e548c88f01339993097d99ac68adcba9d11171
d0c96854b3678209c9a25d07c9729c613fe66d38
refs/heads/master
2020-12-05T23:14:27.354448
2016-09-01T07:19:22
2016-09-01T07:19:22
67,108,931
0
0
null
null
null
null
UTF-8
Java
false
false
610
java
package topdeep.commonfund.entity.hundsun; import java.io.Serializable; import java.util.*; import common.util.param.PropertyAttribute; /** * C018 功能输出转接器 */ public class C018OutputAdapta extends HundsunOutputAdapta { /** * 实际输出对象 */ private C018Output results; /** * 实际输出对象 */ public C018Output getResults() { return this.results; } /** * 实际输出对象 */ public void setResults(C018Output value) { this.results = value; } /** * 输出返回的实际对象 */ public HundsunBaseOutput getOut() { return this.results; } }
[ "xtian.zhuang@topdeep.com" ]
xtian.zhuang@topdeep.com
992b67b5f869cd53a57ba954444bd3fb6f065a52
37f812f590a6a5bf71768bf775c4b93fe21b9d55
/src/main/java/com/java/z_exam/catch_finaly/T01_ExceptionError.java
97f6a53a4dd1aa12feef5fb01d4ca944374fd75f
[]
no_license
jackagoodguy/Jvm_Learn
e690dae552d6c8c9eba74649d09bc9c2513fa0b4
cace1e8594b5a232b887143f14eda571fe05ca97
refs/heads/master
2023-01-22T08:04:29.480632
2020-11-24T11:21:32
2020-11-24T11:21:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,287
java
package com.java.z_exam.catch_finaly; import java.util.ArrayList; import java.util.List; /** * @Author: Lei * @E-mail: 843291011@qq.com * @Date: 2020-03-27 9:39 * @Version: 1.0 * @Modified By: * @Description: */ public class T01_ExceptionError { public static void main(String[] args) { test(); List<String> list = test2(); list.forEach(value -> System.out.println(value)); } private static int test() { int i = 0; try { i++; System.out.println("try block, i = " + i); return i; } catch (Exception e) { i++; System.out.println("catch block i = " + i); } finally { i++; System.out.println("finally block i = " + i); } return i; } private static List<String> test2() { List<String> list = new ArrayList<>(); try { list.add("step try"); System.out.println("try block"); return list; } catch (Exception e){ list.add("step catch"); System.out.println("catch block"); return list; } finally { list.add("step finally"); System.out.println("finally block"); } } }
[ "843291011@qq.com" ]
843291011@qq.com
f0fdbaeadf171c37415877caf027b19ddb99c268
471a1d9598d792c18392ca1485bbb3b29d1165c5
/jadx-MFP/src/main/java/kotlin/coroutines/Continuation.java
8b709c936caecc14e9fd45b3ee0cb60620c74025
[]
no_license
reed07/MyPreferencePal
84db3a93c114868dd3691217cc175a8675e5544f
365b42fcc5670844187ae61b8cbc02c542aa348e
refs/heads/master
2020-03-10T23:10:43.112303
2019-07-08T00:39:32
2019-07-08T00:39:32
129,635,379
2
0
null
null
null
null
UTF-8
Java
false
false
1,115
java
package kotlin.coroutines; import kotlin.Metadata; import kotlin.SinceKotlin; import org.jetbrains.annotations.NotNull; @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bg\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00002\u00020\u0002J\u001e\u0010\u0007\u001a\u00020\b2\f\u0010\t\u001a\b\u0012\u0004\u0012\u00028\u00000\nH&ø\u0001\u0000¢\u0006\u0002\u0010\u000bR\u0012\u0010\u0003\u001a\u00020\u0004X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006‚\u0002\u0004\n\u0002\b\u0019¨\u0006\f"}, d2 = {"Lkotlin/coroutines/Continuation;", "T", "", "context", "Lkotlin/coroutines/CoroutineContext;", "getContext", "()Lkotlin/coroutines/CoroutineContext;", "resumeWith", "", "result", "Lkotlin/Result;", "(Ljava/lang/Object;)V", "kotlin-stdlib"}, k = 1, mv = {1, 1, 13}) @SinceKotlin(version = "1.3") /* compiled from: Continuation.kt */ public interface Continuation<T> { @NotNull CoroutineContext getContext(); void resumeWith(@NotNull Object obj); }
[ "anon@ymous.email" ]
anon@ymous.email
b319f1e5836e8f19effcc832803bff25ceb6f2c1
e7e276ece390306ac721b0603a080cf842aa8f90
/app/src/main/java/com/sss/car/view/ActivityMyDataCarAdd.java
6f99aa6f03bcb4ca97374ca3e01a6495f4cc22a3
[]
no_license
michael007js/JuXiangChe
9b1b872063fcb5cdf00f22386b8ec4111bd53d90
9cca55b533d65d1e7c68e3ebbd46a3146545bb20
refs/heads/master
2020-03-08T08:11:04.352956
2018-04-27T05:24:44
2018-04-27T05:24:44
128,015,077
1
0
null
null
null
null
UTF-8
Java
false
false
6,333
java
package com.sss.car.view; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.TextView; import com.blankj.utilcode.activity.BaseActivity; import com.blankj.utilcode.constant.RequestModel; import com.blankj.utilcode.customwidget.Dialog.YWLoadingDialog; import com.blankj.utilcode.okhttp.callback.StringCallback; import com.blankj.utilcode.util.StringUtils; import com.blankj.utilcode.util.ToastUtils; import com.sss.car.Config; import com.sss.car.EventBusModel.CarName; import com.sss.car.EventBusModel.CreateCarModel; import com.sss.car.R; import com.sss.car.RequestWeb; import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; import org.json.JSONException; import org.json.JSONObject; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; import okhttp3.Call; /** * Created by leilei on 2017/12/12. */ public class ActivityMyDataCarAdd extends BaseActivity { @BindView(R.id.back_top) LinearLayout backTop; @BindView(R.id.title_top) TextView titleTop; @BindView(R.id.click_database) TextView clickDatabase; @BindView(R.id.et_one) EditText etOne; @BindView(R.id.et_two) EditText etTwo; @BindView(R.id.et_three) EditText etThree; @BindView(R.id.et_four) EditText etFour; @BindView(R.id.et_five) EditText etFive; @BindView(R.id.click_save) TextView clickSave; @BindView(R.id.activity_my_data_car_add) LinearLayout activityMyDataCarAdd; YWLoadingDialog ywLoadingDialog; @Override protected void TRIM_MEMORY_UI_HIDDEN() { } @Override protected void onDestroy() { backTop = null; titleTop = null; clickDatabase = null; etOne = null; etTwo = null; etThree = null; etFour = null; etFive = null; clickSave = null; activityMyDataCarAdd = null; super.onDestroy(); } @Subscribe(threadMode = ThreadMode.MAIN) public void onMessageEvent(CarName event) { finish(); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_my_data_car_add); ButterKnife.bind(this); customInit(activityMyDataCarAdd, false, true, true); titleTop.setText("添加爱车"); } @OnClick({R.id.back_top, R.id.click_database, R.id.click_save}) public void onViewClicked(View view) { switch (view.getId()) { case R.id.back_top: finish(); break; case R.id.click_database: if (getBaseActivityContext() != null) { startActivity(new Intent(getBaseActivityContext(), ActivityMyDataCarCarList.class)); } break; case R.id.click_save: add_vehicle(); break; } } public void add_vehicle() { if (StringUtils.isEmpty(etOne.getText().toString().trim()) || StringUtils.isEmpty(etTwo.getText().toString().trim()) || StringUtils.isEmpty(etThree.getText().toString().trim()) || StringUtils.isEmpty(etFour.getText().toString().trim()) || StringUtils.isEmpty(etFive.getText().toString().trim())){ ToastUtils.showShortToast(getBaseActivityContext(),"请填写完整"); return; } if (ywLoadingDialog != null) { ywLoadingDialog.dismiss(); } ywLoadingDialog = null; ywLoadingDialog = new YWLoadingDialog(getBaseActivityContext()); ywLoadingDialog.show(); try { addRequestCall(new RequestModel(System.currentTimeMillis() + "", RequestWeb.add_vehicle( new JSONObject() .put("member_id", Config.member_id) .put("name", etOne.getText().toString().trim()) .put("type", etTwo.getText().toString().trim()) .put("displacement", etThree.getText().toString().trim()) .put("year", etFour.getText().toString().trim()) .put("style", etFive.getText().toString().trim()) .toString() , new StringCallback() { @Override public void onError(Call call, Exception e, int id) { if (ywLoadingDialog != null) { ywLoadingDialog.dismiss(); } ToastUtils.showShortToast(getBaseActivityContext(), e.getMessage()); } @Override public void onResponse(String response, int id) { if (ywLoadingDialog != null) { ywLoadingDialog.dismiss(); } try { final JSONObject jsonObject = new JSONObject(response); if ("1".equals(jsonObject.getString("status"))) { EventBus.getDefault().post(new CreateCarModel()); EventBus.getDefault().post(new CarName(jsonObject.getJSONObject("data").getString("vehicle_name"))); finish(); } else { ToastUtils.showShortToast(getBaseActivityContext(), jsonObject.getString("message")); } } catch (JSONException e) { ToastUtils.showShortToast(getBaseActivityContext(), "数据解析错误Err:-2"); e.printStackTrace(); } } }))); } catch (JSONException e) { ToastUtils.showShortToast(getBaseActivityContext(), "数据解析错误Err:-0"); e.printStackTrace(); } } }
[ "616425434@qq.com" ]
616425434@qq.com
e6dee909f4d71e9b3d340f597146cd2eac1e9f3c
98e654e97b71a7d937dd512073fc1d05170a1a7d
/week_08/day_5/homework/src/main/java/models/Player.java
23aaed6e4e6d0482a919b86a33f6f3f8f3e14106
[]
no_license
edostler/codeclan_classwork
bfd980cc32e4ab649d392d0e9dc54189b9eded1f
6486a5b981e7d8f6d45f14462dad74298ae75758
refs/heads/master
2020-03-17T19:34:17.058501
2018-05-17T21:11:11
2018-05-17T21:11:11
133,868,880
0
0
null
null
null
null
UTF-8
Java
false
false
1,741
java
package models; import javax.persistence.*; @Entity @Table(name="players") public class Player extends Employee { private Team team; private PositionType position; private int shirtNumber; private int goalsScored; private int goalsAssisted; public Player() { } public Player(String name, int age, Team team, PositionType position, int shirtNumber) { super(name, age); this.team = team; this.position = position; this.shirtNumber = shirtNumber; this.goalsScored = 0; this.goalsAssisted = 0; } @ManyToOne @JoinColumn(name="team_id", nullable=false) public Team getTeam() { return team; } public void setTeam(Team team) { this.team = team; } @Column(name="position") public PositionType getPosition() { return position; } public void setPosition(PositionType position) { this.position = position; } @Column(name="shirt_number") public int getShirtNumber() { return shirtNumber; } public void setShirtNumber(int shirtNumber) { this.shirtNumber = shirtNumber; } @Column(name="goals_scored") public int getGoalsScored() { return goalsScored; } public void setGoalsScored(int goalsScored) { this.goalsScored = goalsScored; } @Column(name="goals_assisted") public int getGoalsAssisted() { return goalsAssisted; } public void setGoalsAssisted(int goalsAssisted) { this.goalsAssisted = goalsAssisted; } public void incrementGoalsScored() { this.goalsScored += 1; } public void incrementGoalsAssisted() { this.goalsAssisted += 1; } }
[ "edward.o@simul8.com" ]
edward.o@simul8.com
38fabdce9a9bb33062156ff00f1efff750080caf
1233610eb365e31c9ca3b321269865c949f6de59
/src/main/java/com/frostwire/jlibtorrent/alerts/BlockTimeoutAlert.java
d91704700fce6da03b0ef04e537376289d3b06b4
[ "MIT" ]
permissive
frostwire/frostwire-jlibtorrent
344357f5e4affe9b46e08c3034d2a167185288ee
7fc786851d66660aab944db405f536417e8e5753
refs/heads/master
2023-08-26T13:18:32.921254
2023-05-31T18:02:48
2023-05-31T18:02:48
22,651,419
452
184
MIT
2021-09-08T21:56:03
2014-08-05T16:51:08
C++
UTF-8
Java
false
false
618
java
package com.frostwire.jlibtorrent.alerts; import com.frostwire.jlibtorrent.swig.block_timeout_alert; /** * This alert is generated when a block request times out. * * @author gubatron * @author aldenml */ public final class BlockTimeoutAlert extends PeerAlert<block_timeout_alert> { BlockTimeoutAlert(block_timeout_alert alert) { super(alert); } /** * @return the block index */ public int blockIndex() { return alert.getBlock_index(); } /** * @return the piece index */ public int pieceIndex() { return alert.getPiece_index(); } }
[ "aldenml@gmail.com" ]
aldenml@gmail.com
b320c6719d0f0b91a25ad3e493d8e0f50db9d48b
47119d527d55e9adcb08a3a5834afe9a82dd2254
/controllersvc/src/main/java/com/emc/storageos/volumecontroller/impl/smis/vnx/VnxMirrorOperations.java
7a65f175dc7fd18fb86785b9a6fb0639d335b96f
[]
no_license
chrisdail/coprhd-controller
1c3ddf91bb840c66e4ece3d4b336a6df421b43e4
38a063c5620135a49013aae5e078aeb6534a5480
refs/heads/master
2020-12-03T10:42:22.520837
2015-06-08T15:24:36
2015-06-08T15:24:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
830
java
/** * Copyright 2015 EMC Corporation * All Rights Reserved */ /* * Copyright (c) $today_year. EMC Corporation * All Rights Reserved * * This software contains the intellectual property of EMC Corporation * or is licensed to EMC Corporation from third parties. Use of this * software and the intellectual property contained therein is expressly * limited to the terms and conditions of the License Agreement under which * it is provided by or on behalf of EMC. */ package com.emc.storageos.volumecontroller.impl.smis.vnx; import com.emc.storageos.volumecontroller.impl.smis.AbstractMirrorOperations; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class VnxMirrorOperations extends AbstractMirrorOperations { private static final Logger _log = LoggerFactory.getLogger(VnxMirrorOperations.class); }
[ "review-coprhd@coprhd.org" ]
review-coprhd@coprhd.org
a380346306b5397418d4bed5c7b32f570aaa9f3b
f2e744082c66f270d606bfc19d25ecb2510e337c
/sources/androidx/transition/ViewUtilsApi29.java
c14127b9f79093c5a54b1bc1ee2fc1e57c67c9ea
[]
no_license
AshutoshSundresh/OnePlusSettings-Java
365c49e178612048451d78ec11474065d44280fa
8015f4badc24494c3931ea99fb834bc2b264919f
refs/heads/master
2023-01-22T12:57:16.272894
2020-11-21T16:30:18
2020-11-21T16:30:18
314,854,903
4
2
null
null
null
null
UTF-8
Java
false
false
1,572
java
package androidx.transition; import android.graphics.Matrix; import android.view.View; class ViewUtilsApi29 extends ViewUtilsApi23 { ViewUtilsApi29() { } @Override // androidx.transition.ViewUtilsApi19, androidx.transition.ViewUtilsBase public void setTransitionAlpha(View view, float f) { view.setTransitionAlpha(f); } @Override // androidx.transition.ViewUtilsApi19, androidx.transition.ViewUtilsBase public float getTransitionAlpha(View view) { return view.getTransitionAlpha(); } @Override // androidx.transition.ViewUtilsBase, androidx.transition.ViewUtilsApi23 public void setTransitionVisibility(View view, int i) { view.setTransitionVisibility(i); } @Override // androidx.transition.ViewUtilsBase, androidx.transition.ViewUtilsApi22 public void setLeftTopRightBottom(View view, int i, int i2, int i3, int i4) { view.setLeftTopRightBottom(i, i2, i3, i4); } @Override // androidx.transition.ViewUtilsBase, androidx.transition.ViewUtilsApi21 public void transformMatrixToGlobal(View view, Matrix matrix) { view.transformMatrixToGlobal(matrix); } @Override // androidx.transition.ViewUtilsBase, androidx.transition.ViewUtilsApi21 public void transformMatrixToLocal(View view, Matrix matrix) { view.transformMatrixToLocal(matrix); } @Override // androidx.transition.ViewUtilsBase, androidx.transition.ViewUtilsApi21 public void setAnimationMatrix(View view, Matrix matrix) { view.setAnimationMatrix(matrix); } }
[ "ashutoshsundresh@gmail.com" ]
ashutoshsundresh@gmail.com
7860e35dfc5772ef86a7917aa1c9b72e800d6572
e75be673baeeddee986ece49ef6e1c718a8e7a5d
/submissions/blizzard/Corpus/eclipse.pde.ui/497.java
6a7c4faa55f6949235399be495a3a7477c2a23aa
[ "MIT" ]
permissive
zhendong2050/fse18
edbea132be9122b57e272a20c20fae2bb949e63e
f0f016140489961c9e3c2e837577f698c2d4cf44
refs/heads/master
2020-12-21T11:31:53.800358
2018-07-23T10:10:57
2018-07-23T10:10:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,059
java
/******************************************************************************* * Copyright (c) 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package a.b.c; import org.eclipse.pde.api.tools.annotations.NoImplement; /** * Test unsupported @NoImplement tag on fields in outer / inner annotation */ public @interface test5 { @interface inner { /** */ @NoImplement public int f2 = 0; @interface inner2 { /** */ @NoImplement public char[] f3 = {}; } } } @interface outer { /** */ @NoImplement public static Object f1 = null; }
[ "tim.menzies@gmail.com" ]
tim.menzies@gmail.com
a281f956b62fd418a17fcc88a09ed6e1312a115f
b19674396d9a96c7fd7abdcfa423fe9fea4bb5be
/ratis-proto-shaded/src/main/java/org/apache/ratis/shaded/io/netty/util/concurrent/ScheduledFutureTask.java
5f2f973b159511cb3e58720a48f4406544ea1038
[]
no_license
snemuri/ratis.github.io
0529ceed6f86ad916fbc559576b39ae123c465a0
85e1dd1890477d4069052358ed0b163c3e23db76
refs/heads/master
2020-03-24T07:18:03.130700
2018-07-27T13:29:06
2018-07-27T13:29:06
142,558,496
0
0
null
null
null
null
UTF-8
Java
false
false
5,592
java
/* * Copyright 2013 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ package org.apache.ratis.shaded.io.netty.util.concurrent; import java.util.Queue; import java.util.concurrent.Callable; import java.util.concurrent.Delayed; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicLong; @SuppressWarnings("ComparableImplementedButEqualsNotOverridden") final class ScheduledFutureTask<V> extends PromiseTask<V> implements ScheduledFuture<V> { private static final AtomicLong nextTaskId = new AtomicLong(); private static final long START_TIME = System.nanoTime(); static long nanoTime() { return System.nanoTime() - START_TIME; } static long deadlineNanos(long delay) { return nanoTime() + delay; } private final long id = nextTaskId.getAndIncrement(); private long deadlineNanos; /* 0 - no repeat, >0 - repeat at fixed rate, <0 - repeat with fixed delay */ private final long periodNanos; ScheduledFutureTask( AbstractScheduledEventExecutor executor, Runnable runnable, V result, long nanoTime) { this(executor, toCallable(runnable, result), nanoTime); } ScheduledFutureTask( AbstractScheduledEventExecutor executor, Callable<V> callable, long nanoTime, long period) { super(executor, callable); if (period == 0) { throw new IllegalArgumentException("period: 0 (expected: != 0)"); } deadlineNanos = nanoTime; periodNanos = period; } ScheduledFutureTask( AbstractScheduledEventExecutor executor, Callable<V> callable, long nanoTime) { super(executor, callable); deadlineNanos = nanoTime; periodNanos = 0; } @Override protected EventExecutor executor() { return super.executor(); } public long deadlineNanos() { return deadlineNanos; } public long delayNanos() { return Math.max(0, deadlineNanos() - nanoTime()); } public long delayNanos(long currentTimeNanos) { return Math.max(0, deadlineNanos() - (currentTimeNanos - START_TIME)); } @Override public long getDelay(TimeUnit unit) { return unit.convert(delayNanos(), TimeUnit.NANOSECONDS); } @Override public int compareTo(Delayed o) { if (this == o) { return 0; } ScheduledFutureTask<?> that = (ScheduledFutureTask<?>) o; long d = deadlineNanos() - that.deadlineNanos(); if (d < 0) { return -1; } else if (d > 0) { return 1; } else if (id < that.id) { return -1; } else if (id == that.id) { throw new Error(); } else { return 1; } } @Override public void run() { assert executor().inEventLoop(); try { if (periodNanos == 0) { if (setUncancellableInternal()) { V result = task.call(); setSuccessInternal(result); } } else { // check if is done as it may was cancelled if (!isCancelled()) { task.call(); if (!executor().isShutdown()) { long p = periodNanos; if (p > 0) { deadlineNanos += p; } else { deadlineNanos = nanoTime() - p; } if (!isCancelled()) { // scheduledTaskQueue can never be null as we lazy init it before submit the task! Queue<ScheduledFutureTask<?>> scheduledTaskQueue = ((AbstractScheduledEventExecutor) executor()).scheduledTaskQueue; assert scheduledTaskQueue != null; scheduledTaskQueue.add(this); } } } } } catch (Throwable cause) { setFailureInternal(cause); } } @Override public boolean cancel(boolean mayInterruptIfRunning) { boolean canceled = super.cancel(mayInterruptIfRunning); if (canceled) { ((AbstractScheduledEventExecutor) executor()).removeScheduled(this); } return canceled; } boolean cancelWithoutRemove(boolean mayInterruptIfRunning) { return super.cancel(mayInterruptIfRunning); } @Override protected StringBuilder toStringBuilder() { StringBuilder buf = super.toStringBuilder(); buf.setCharAt(buf.length() - 1, ','); return buf.append(" id: ") .append(id) .append(", deadline: ") .append(deadlineNanos) .append(", period: ") .append(periodNanos) .append(')'); } }
[ "snemuri@hortonworks.com" ]
snemuri@hortonworks.com
14b113a6cea44518b420f1ee45a5d853dc6b90cf
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project47/src/test/java/org/gradle/test/performance47_4/Test47_362.java
7f545edbdf72562235bc32aa98dce0b43cf9a255
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
292
java
package org.gradle.test.performance47_4; import static org.junit.Assert.*; public class Test47_362 { private final Production47_362 production = new Production47_362("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
f7794a42adc674009660f071daad6b216340a0e8
ac3a7a8d120d4e281431329c8c9d388fcfb94342
/src/main/java/com/leetcode/algorithm/medium/numberofcornerrectangles/Solution.java
4c40546b4ef0b4532d2da73d2ddc29abe44942c0
[ "MIT" ]
permissive
paulxi/LeetCodeJava
c69014c24cda48f80a25227b7ac09c6c5d6cfadc
10b4430629314c7cfedaae02c7dc4c2318ea6256
refs/heads/master
2021-04-03T08:03:16.305484
2021-03-02T06:20:24
2021-03-02T06:20:24
125,126,097
3
3
null
null
null
null
UTF-8
Java
false
false
777
java
package com.leetcode.algorithm.medium.numberofcornerrectangles; import java.util.Arrays; import java.util.HashMap; class Solution { public int countCornerRectangles(int[][] grid) { int ans = 0; HashMap<String, Integer> map = new HashMap<>(); for (int row = 0; row < grid.length; row++) { for (int col = 0; col < grid[0].length; col++) { if (grid[row][col] == 1) { for (int nextCol = col + 1; nextCol < grid[0].length; nextCol++) { if (grid[row][nextCol] == 1) { String pos = Arrays.toString(new int[] {col, nextCol}); int value = map.getOrDefault(pos, 0); ans += value; map.put(pos, value + 1); } } } } } return ans; } }
[ "paulxi@gmail.com" ]
paulxi@gmail.com
bbeb336bd17f70303c1c04ba381a03e88b3ed0d6
a504cd9b6be005f9ac4decee162a02e4db0aa9ac
/common/evilcraft/api/blockcomponents/EntityDropParticleFXBlockComponent.java
d85f9d428da3620c6e6e947a016f6b659dd116ac
[ "CC-BY-4.0" ]
permissive
ghostagent/EvilCraft
599f8d3e8e467d7a3e71ba4c81956ffa53f0f12f
9a22164830e27f4b5d9dd74838f9eea03a3e1dff
refs/heads/master
2021-01-22T20:19:25.305661
2014-04-11T09:17:48
2014-04-11T09:17:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,275
java
package evilcraft.api.blockcomponents; import java.util.Random; import net.minecraft.client.particle.EntityFX; import net.minecraft.world.World; import cpw.mods.fml.client.FMLClientHandler; import evilcraft.render.particle.ExtendedEntityDropParticleFX; /** * Component that can show drops of a certain color underneath blocks. * This has by default the same behaviour as lava and water drops underneath the blocks underneath them. * But this offset can be altered. * @author rubensworks * */ public class EntityDropParticleFXBlockComponent implements IEntityDropParticleFXBlock{ protected float particleRed; protected float particleGreen; protected float particleBlue; protected int offset = 1; protected int chance = 10; /** * Make a new instance. * @param particleRed Red color. * @param particleGreen Green color. * @param particleBlue Blue color. */ public EntityDropParticleFXBlockComponent(float particleRed, float particleGreen, float particleBlue) { this.particleRed = particleRed; this.particleGreen = particleGreen; this.particleBlue = particleBlue; } /** * Set the offset to a lower Y where the drops should appear. * @param offset Amount of blocks to a lower Y. */ public void setOffset(int offset) { this.offset = offset; } /** * Sets the chance for drop particles. * @param chance Every tick there will be a 1/chance chance. */ public void setChance(int chance) { this.chance = chance; } @Override public void randomDisplayTick(World world, int x, int y, int z, Random rand) { if (rand.nextInt(chance) == 0 && (offset == 0 || world.doesBlockHaveSolidTopSurface(x, y - offset, z)) && !world.getBlockMaterial(x, y - offset - 1, z).blocksMovement()) { double px = (double) ((float) x + rand.nextFloat()); double py = (double) y - 0.05D - offset; double pz = (double) ((float) z + rand.nextFloat()); EntityFX fx = new ExtendedEntityDropParticleFX(world, px, py, pz, particleRed, particleGreen, particleBlue); FMLClientHandler.instance().getClient().effectRenderer.addEffect(fx); } } }
[ "rubensworks@gmail.com" ]
rubensworks@gmail.com
c99b16344ae0fb04042502c925d5e607898efb6d
a17dd1e9f5db1c06e960099c13a5b70474d90683
/core/src/main/java/jp/co/sint/webshop/data/domain/UseValidType.java
ae6a0319228019717c9fc59b23c5edb3519feb30
[]
no_license
giagiigi/ec_ps
4e404afc0fc149c9614d0abf63ec2ed31d10bebb
6eb19f4d14b6f3a08bfc2c68c33392015f344cdd
refs/heads/master
2020-12-14T07:20:24.784195
2015-02-09T10:00:44
2015-02-09T10:00:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,971
java
// //Copyright(C) 2007-2008 System Integrator Corp. //All rights reserved. // // このファイルはコード定義ドキュメントから自動生成されます。 // 直接編集しないで下さい。 // package jp.co.sint.webshop.data.domain; import jp.co.sint.webshop.code.CodeAttribute; import jp.co.sint.webshop.utility.CodeUtil; import jp.co.sint.webshop.utility.StringUtil; /** * 「口座区分」のコード定義を表す列挙クラスです。 * * @author System Integrator Corp. * */ public enum UseValidType implements CodeAttribute { /** 「月」を表す値です。 */ MONTH("月", "1"), /** 「天」を表す値です。 */ DAY("天", "0"); private String name; private String value; private UseValidType(String name, String value) { this.name = name; this.value = value; } /** * コード名称を返します。 * @return コード名称 */ public String getName() { return StringUtil.coalesce(CodeUtil.getName(this), this.name); } /** * コード値を返します。 * @return コード値 */ public String getValue() { return StringUtil.coalesce(CodeUtil.getValue(this), this.value); } /** * Long型のコード値を返します。 * @return コード値 */ public Long longValue() { return Long.valueOf(this.value); } /** * 指定されたコード名を持つ口座区分を返します。 * * @param name コード名 * @return 口座区分 */ public static UseValidType fromName(String name) { for (UseValidType p : UseValidType.values()) { if (p.getName().equals(name)) { return p; } } return null; } /** * 指定されたコード値を持つ口座区分を返します。 * * @param value コード値 * @return 口座区分 */ public static UseValidType fromValue(String value) { for (UseValidType p : UseValidType.values()) { if (p.getValue().equals(value)) { return p; } } return null; } /** * 指定されたコード値を持つ口座区分を返します。 * * @param value コード値 * @return 口座区分 */ public static UseValidType fromValue(Long value) { return fromValue(Long.toString(value)); } /** * 指定されたコード値が有効かどうかを返します。 * * @param value コード値 * @return コード値が有効であればtrue */ public static boolean isValid(String value) { if (StringUtil.hasValue(value)) { for (UseValidType p : UseValidType.values()) { if (p.getValue().equals(value)) { return true; } } } return false; } /** * 指定されたコード値が有効かどうかを返します。 * * @param value コード値 * @return コード値が有効であればtrue */ public static boolean isValid(Long value) { return isValid(Long.toString(value)); } }
[ "fengperfect@126.com" ]
fengperfect@126.com
41037f6e0f8c51025d5fb5811f38243e72f763c3
c9a21b5c6e8d30210ee07e36f97c4bdedfaf0b67
/app/src/main/java/com/onezao/zao/mobilesafe/receiver/DeviceAdmin.java
2fa3edb47cedfd386c0e09186367e742f4e2223b
[]
no_license
cereuz/MobileSafe
cf09aa87d142831d3e0a4e01fe830eb3d53e9ffd
7a93045f5a35ce79b606337a942524956ad27467
refs/heads/master
2020-03-27T04:41:49.087350
2018-12-06T01:42:39
2018-12-06T01:42:39
145,961,413
0
0
null
null
null
null
UTF-8
Java
false
false
265
java
package com.onezao.zao.mobilesafe.receiver; import android.content.Context; import android.content.Intent; public class DeviceAdmin extends android.app.admin.DeviceAdminReceiver { @Override public void onReceive(Context context, Intent intent) { } }
[ "sunedo@163.com" ]
sunedo@163.com
f11dd89531ce95a758427aa86bb2094f419e5333
a1a185e3ea226c62b99086db33f70604cc611476
/sofa-demo/sofaboot_client/src/main/java/com/citydo/sofaboot_client/SofabootClientApplication.java
c2b0d99724a7ffd9325e74ba38aee56ef80c1244
[]
no_license
jianbo-feng/public-repository
4a680b1401c9fd2f7ba72386330a80079ee2d129
5481d6ebbb0b15374dfe08b8cd3d61e1eb692703
refs/heads/master
2022-08-11T06:07:02.485707
2020-05-27T14:11:29
2020-05-27T14:11:29
186,141,931
1
6
null
2022-06-21T01:12:00
2019-05-11T14:19:24
Java
UTF-8
Java
false
false
2,369
java
package com.citydo.sofaboot_client; import com.citydo.sofaboot_client.service.HelloCallbackService; import com.citydo.sofaboot_client.service.HelloFutureService; import com.citydo.sofaboot_client.service.HelloSyncService; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.ImportResource; /** * @author nick */ @ImportResource({"classpath:spring/rpc-sofa.xml"}) @SpringBootApplication public class SofabootClientApplication { public static void main(String[] args) { System.setProperty("server.port", "8081"); SpringApplication springApplication = new SpringApplication(SofabootClientApplication.class); ApplicationContext applicationContext = springApplication.run(args); HelloSyncService boltHelloSyncService = (HelloSyncService) applicationContext.getBean("boltHelloSyncServiceReference"); HelloSyncService restHelloSyncService = (HelloSyncService) applicationContext.getBean("restHelloSyncServiceReference"); HelloSyncService dubboHelloSyncService = (HelloSyncService) applicationContext.getBean("dubboHelloSyncServiceReference"); System.out.println("Bolt result:" + boltHelloSyncService.saySync("bolt")); System.out.println("Rest result:" + restHelloSyncService.saySync("rest")); System.out.println("Dubbo result:" + dubboHelloSyncService.saySync("dubbo")); // HelloFutureService helloFutureServiceReference = (HelloFutureService) applicationContext //// .getBean("helloFutureServiceReference"); //// helloFutureServiceReference.sayFuture("future"); //// try { //// String result = (String)SofaResponseFuture.getResponse(1000, true); //// System.out.println("Future result: " + result); //// } catch (InterruptedException e) { //// e.printStackTrace(); //// } HelloCallbackService helloCallbackServiceReference = (HelloCallbackService) applicationContext .getBean("helloCallbackServiceReference"); helloCallbackServiceReference.sayCallback("callback"); try { Thread.sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } } }
[ "445121408@qq.com" ]
445121408@qq.com
35ede429825c70646ffa14e5e07dace26d54e900
52c04ffd7714c69e77996adb32707592ad3b7e49
/src/org/redkale/convert/Reader.java
49b275530fb7a6f62c725552fb3a4097b5cfb9bf
[ "Apache-2.0" ]
permissive
beckhoho/redkale
4fa56f7fa358504037c9040be59e1e1565298935
fb51997c6b8151164149d321e752e8ed660e6136
refs/heads/master
2021-01-10T22:43:25.930920
2016-10-08T10:42:01
2016-10-08T10:42:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,628
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 org.redkale.convert; /** * * <p> * 详情见: http://redkale.org * * @author zhangjx */ public abstract class Reader { //当前对象字段名的游标 protected int fieldIndex; public static final short SIGN_NULL = -1; public static final short SIGN_NOLENGTH = -2; /** * 是否还存在下个元素或字段 * * @return 是否还存在下个元素或字段 */ public abstract boolean hasNext(); /** * 跳过值(不包含值前面的字段) */ public abstract void skipValue(); /** * /跳过字段与值之间的多余内容, json就是跳过:符, map跳过: */ public abstract void readBlank(); /** * 读取对象的类名, 返回 null 表示对象为null, 返回空字符串表示当前class与返回的class一致,返回非空字符串表示class是当前class的子类。 * * @param clazz 类名 * @return 返回字段数 */ public String readObjectB(final Class clazz) { this.fieldIndex = 0; return null; } /** * 读取对象的尾端 * * @param clazz 类名 */ public abstract void readObjectE(final Class clazz); /** * 读取数组的开头并返回数组的长度 * * @return 返回数组的长度 */ public abstract int readArrayB(); /** * 读取数组的尾端 * */ public abstract void readArrayE(); /** * 读取map的开头并返回map的size * * @return 返回map的size */ public abstract int readMapB(); /** * 读取数组的尾端 * */ public abstract void readMapE(); /** * 根据字段读取字段对应的DeMember * * @param members DeMember的全量集合 * @return 匹配的DeMember */ public abstract DeMember readFieldName(final DeMember[] members); /** * 读取一个boolean值 * * @return boolean值 */ public abstract boolean readBoolean(); /** * 读取一个byte值 * * @return byte值 */ public abstract byte readByte(); /** * 读取一个char值 * * @return char值 */ public abstract char readChar(); /** * 读取一个short值 * * @return short值 */ public abstract short readShort(); /** * 读取一个int值 * * @return int值 */ public abstract int readInt(); /** * 读取一个long值 * * @return long值 */ public abstract long readLong(); /** * 读取一个float值 * * @return float值 */ public abstract float readFloat(); /** * 读取一个double值 * * @return double值 */ public abstract double readDouble(); /** * 读取无转义字符长度不超过255的字符串, 例如枚举值、字段名、类名字符串等 * * @return String值 */ public abstract String readSmallString(); /** * 读取反解析对象的类名 * * @return 类名 */ public abstract String readClassName(); /** * 读取一个String值 * * @return String值 */ public abstract String readString(); }
[ "22250530@qq.com" ]
22250530@qq.com
d351bf44db15da331e1950d9bce7b01ba96ecfbc
4d361cd1287745e1ba82a051b73ec693b022fb04
/jOOQ/src/main/java/org/jooq/CreateIndexStep.java
eb3fe045e3dac5c1f1130f73fd6aad596dd9d70d
[ "Apache-2.0" ]
permissive
Vertabelo/jOOQ
db8619efea4b982983201c7d0e1d223421a4d715
e65f62d833286ea0689748e3be47dabe94a9f511
refs/heads/master
2021-01-18T09:34:29.600129
2014-11-07T15:32:33
2014-11-21T11:08:43
26,956,264
1
0
null
null
null
null
UTF-8
Java
false
false
2,316
java
/** * Copyright (c) 2009-2014, Data Geekery GmbH (http://www.datageekery.com) * All rights reserved. * * This work is dual-licensed * - under the Apache Software License 2.0 (the "ASL") * - under the jOOQ License and Maintenance Agreement (the "jOOQ License") * ============================================================================= * You may choose which license applies to you: * * - If you're using this work with Open Source databases, you may choose * either ASL or jOOQ License. * - If you're using this work with at least one commercial database, you must * choose jOOQ License * * For more information, please visit http://www.jooq.org/licenses * * Apache Software License 2.0: * ----------------------------------------------------------------------------- * 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. * * jOOQ License and Maintenance Agreement: * ----------------------------------------------------------------------------- * Data Geekery grants the Customer the non-exclusive, timely limited and * non-transferable license to install and use the Software under the terms of * the jOOQ License and Maintenance Agreement. * * This library is distributed with a LIMITED WARRANTY. See the jOOQ License * and Maintenance Agreement for more details: http://www.jooq.org/licensing */ package org.jooq; /** * A {@link Query} that can create indexes. * * @author Lukas Eder */ public interface CreateIndexStep { /** * Specify the table and column expressions on which to create an index. */ @Support CreateIndexFinalStep on(Table<?> table, Field<?>... fields); /** * Specify the table and column expressions on which to create an index. */ @Support CreateIndexFinalStep on(String tableName, String... fieldNames); }
[ "lukas.eder@gmail.com" ]
lukas.eder@gmail.com
703d7426e7c25c62577960824c525e56a6aa6f67
bce31e3c7517825fdfa3151322e5d60d6ee59538
/navisu-architecture/src/main/java/bzh/terrevirtuelle/navisu/architecture/impl/view/ComponentView.java
107af930c8b38d636a8c09a54568befa7337fddf
[]
no_license
terre-virtuelle/navisu
b0355461b9c77035834f79646036a9dc002f203d
97bc2baaed37f83c9b773f1973a2a65683dc9e79
refs/heads/master
2021-08-04T03:41:09.226887
2021-06-17T11:27:22
2021-06-17T11:27:22
14,243,882
31
16
null
null
null
null
UTF-8
Java
false
false
3,467
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 bzh.terrevirtuelle.navisu.architecture.impl.view; import bzh.terrevirtuelle.navisu.domain.architecture.Component; import java.awt.Image; import java.awt.Point; import java.util.List; import javax.swing.ImageIcon; import javax.swing.JComboBox; import org.netbeans.api.visual.vmd.VMDGraphScene; import org.netbeans.api.visual.vmd.VMDNodeWidget; import org.netbeans.api.visual.widget.ComponentWidget; /** * * @author serge * @date Nov 6, 2017 */ public class ComponentView { Image IMAGE_LIST = new ImageIcon("resources/list_16.png").getImage(); Image IMAGE_CANVAS = new ImageIcon("resources/custom_displayable_16.png").getImage(); Image IMAGE_COMMAND = new ImageIcon("resources/command_16.png").getImage(); Image IMAGE_ITEM = new ImageIcon("resources/item_16.png").getImage(); Image GLYPH_PRE_CODE = new ImageIcon("resources/preCodeGlyph.png").getImage(); Image GLYPH_POST_CODE = new ImageIcon("resources/postCodeGlyph.png").getImage(); Image GLYPH_CANCEL = new ImageIcon("resources/cancelGlyph.png").getImage(); private final Component component; private VMDGraphScene scene; private VMDNodeWidget widget; Image image; int x; int y; List<Image> glyphs; String type; String nodeID; public ComponentView(Component component, Image image, List<Image> glyphs, int x, int y) { this.component = component; this.image = image; this.x = x; this.y = y; this.glyphs = glyphs; nodeID = component.getName(); } @SuppressWarnings("unchecked") public void setScene(VMDGraphScene scene) { this.scene = scene; // System.out.println("scene : " + scene); widget = (VMDNodeWidget) this.scene.addNode(nodeID); // System.out.println("nodeID : " + nodeID); widget.setPreferredLocation(new Point(x, y)); widget.setNodeProperties(image, nodeID, component.getModule(), glyphs); ComponentWidget componentWidget = new ComponentWidget (scene, new JComboBox (new String[] { "First", "Second", "Third" })); widget.addChild(componentWidget); scene.addPin(nodeID, nodeID + VMDGraphScene.PIN_ID_DEFAULT_SUFFIX); // System.out.println("nodeID : " + nodeID); } public VMDNodeWidget getWidget() { return widget; } public void setWidget(VMDNodeWidget widget) { this.widget = widget; } public Image getImage() { return image; } public void setImage(Image image) { this.image = image; } public int getX() { return x; } public void setX(int x) { this.x = x; } public int getY() { return y; } public void setY(int y) { this.y = y; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getNodeID() { return nodeID; } public void setNodeID(String nodeID) { this.nodeID = nodeID; } public Component getComponent() { return component; } public void setVisible(boolean visible) { widget.setVisible(visible); } }
[ "serge@serge-XPS-8500" ]
serge@serge-XPS-8500
2378f14502857573c4b05525a1604dae22bc39dd
03485bb4f4577f81cb20b76c98bbf863067ec30f
/src/com/ssiot/remote/data/AjaxHistory.java
47b74b929427b21bf14b82c54ef4d01222c99510
[]
no_license
radtek/ssiot
f3e03cfe4032bd41e82d63c37412dbd0fde08df4
a328e246572b4aa527cfdeda85a4c38a023d7b86
refs/heads/master
2020-10-01T03:06:32.797388
2016-03-25T09:34:14
2016-03-25T09:34:14
227,441,239
1
1
null
2019-12-11T19:13:24
2019-12-11T19:13:23
null
UTF-8
Java
false
false
3,123
java
package com.ssiot.remote.data; import com.ssiot.remote.data.business.CompanyContent; import com.ssiot.remote.data.business.ProfilesContent; import com.ssiot.remote.data.business.TraceCertification; import com.ssiot.remote.data.business.TraceFertilizer; import com.ssiot.remote.data.business.TraceImages; import com.ssiot.remote.data.business.TracePesticides; import com.ssiot.remote.data.business.TraceProfiles; import com.ssiot.remote.data.model.CompanyContentModel; import com.ssiot.remote.data.model.ProfilesContentModel; import com.ssiot.remote.data.model.TraceCertificationModel; import com.ssiot.remote.data.model.TraceFertilizerModel; import com.ssiot.remote.data.model.TraceImagesModel; import com.ssiot.remote.data.model.TracePesticidesModel; import com.ssiot.remote.data.model.TraceProfileModel; import java.util.List; public class AjaxHistory{ private TraceProfiles traceProfilesBll = new TraceProfiles(); private ProfilesContent proContentBll = new ProfilesContent(); private CompanyContent mCompanyContentBll = new CompanyContent(); private TraceImages mTraceImagesBll = new TraceImages(); private TraceFertilizer mFertilizerBll = new TraceFertilizer(); private TracePesticides mPesticidesBll = new TracePesticides(); private TraceCertification mCertificationBll = new TraceCertification(); public TraceProfileModel getTraceProfile(String code){ List<TraceProfileModel> models = traceProfilesBll.GetModelList(" ProCode='" + code +"'"); if (null != models && models.size() > 0){ return models.get(0); } return null; } public List<TraceProfileModel> getUserTraceProfiles(int parentID){ return traceProfilesBll.GetModelList(" ProParentID=" + parentID +""); } public String getProfileContentStr(int profileContentID){//商品的描述信息 List<ProfilesContentModel> models = proContentBll.GetModelList(" ProfilesContentID=" + profileContentID); if (null != models && models.size() > 0){ return models.get(0)._profilecontent; } return null; } public CompanyContentModel getCompanyInfo(int companyId){//公司的描述信息 List<CompanyContentModel> models = mCompanyContentBll.GetModelList(" CompanyContentID=" + companyId); if (null != models && models.size() > 0){ return models.get(0); } return null; } public List<TraceImagesModel> geTraceImagesModels(int imgProID){//生长期图像 return mTraceImagesBll.GetModelList(" ImgProID=" + imgProID +" "); } public List<TraceFertilizerModel> getFertilizerModels(int ferProID){//肥料 return mFertilizerBll.GetModelList(" FerProID=" + ferProID +" "); } public List<TracePesticidesModel> getPesticidesModels(int pesProID){//农药 return mPesticidesBll.GetModelList(" PesProID=" + pesProID +" "); } public List<TraceCertificationModel> getCertificationModels(int certProID){//认证 return mCertificationBll.GetModelList(" CertProID=" + certProID +" "); } }
[ "gejingbo@163.com" ]
gejingbo@163.com
68a2bdfa5261ebca0d4c4914029d2533b418da06
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/6/6_36bcd1340522ff0a6504d853ccff7f54bf85965b/JSResultSetRow/6_36bcd1340522ff0a6504d853ccff7f54bf85965b_JSResultSetRow_t.java
1c39d55f57e31e215657f1bb9c8fca7e1ee67cfa
[]
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
7,108
java
/******************************************************************************* * Copyright (c) 2004 Actuate Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Actuate Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.birt.data.engine.script; import java.util.HashMap; import java.util.Map; import org.eclipse.birt.core.data.DataTypeUtil; import org.eclipse.birt.core.exception.BirtException; import org.eclipse.birt.core.script.JavascriptEvalUtil; import org.eclipse.birt.core.script.ScriptContext; import org.eclipse.birt.data.engine.api.IBaseExpression; import org.eclipse.birt.data.engine.api.IBinding; import org.eclipse.birt.data.engine.core.DataException; import org.eclipse.birt.data.engine.expression.ExprEvaluateUtil; import org.eclipse.birt.data.engine.i18n.DataResourceHandle; import org.eclipse.birt.data.engine.i18n.ResourceConstants; import org.eclipse.birt.data.engine.impl.ExprManager; import org.eclipse.birt.data.engine.impl.IExecutorHelper; import org.eclipse.birt.data.engine.odi.IResultIterator; import org.eclipse.birt.data.engine.odi.IResultObject; import org.mozilla.javascript.Context; import org.mozilla.javascript.Scriptable; import org.mozilla.javascript.ScriptableObject; /** * This JS object serves for the row of binding columns. */ public class JSResultSetRow extends ScriptableObject { private IResultIterator odiResult; private ExprManager exprManager; private Scriptable scope; private IExecutorHelper helper; private ScriptContext cx; private int currRowIndex; private Map valueCacheMap; /** */ private static final long serialVersionUID = 649424371394281464L; /** * @param odiResult * @param exprManager * @param scope * @param helper */ public JSResultSetRow( IResultIterator odiResult, ExprManager exprManager, Scriptable scope, IExecutorHelper helper, ScriptContext cx ) { this.odiResult = odiResult; this.exprManager = exprManager; this.scope = scope; this.helper = helper; this.cx = cx; this.currRowIndex = -1; this.valueCacheMap = new HashMap( ); } /* * @see org.mozilla.javascript.ScriptableObject#getClassName() */ public String getClassName( ) { return "ResultSetRow"; } /* * @see org.mozilla.javascript.ScriptableObject#has(int, * org.mozilla.javascript.Scriptable) */ public boolean has( int index, Scriptable start ) { return this.has( String.valueOf( index ), start ); } /* * @see org.mozilla.javascript.ScriptableObject#has(java.lang.String, * org.mozilla.javascript.Scriptable) */ public boolean has( String name, Scriptable start ) { try { return exprManager.getExpr( name ) != null; } catch ( DataException e ) { return false; } } /* * @see org.mozilla.javascript.ScriptableObject#get(int, * org.mozilla.javascript.Scriptable) */ public Object get( int index, Scriptable start ) { return this.get( String.valueOf( index ), start ); } /* * @see org.mozilla.javascript.ScriptableObject#get(java.lang.String, * org.mozilla.javascript.Scriptable) */ public Object get( String name, Scriptable start ) { if( ScriptConstants.OUTER_RESULT_KEYWORD.equalsIgnoreCase( name )) { if( this.helper.getParent( )!= null) return helper.getParent( ).getScriptable( ); else throw Context.reportRuntimeError( DataResourceHandle.getInstance( ).getMessage( ResourceConstants.NO_OUTER_RESULTS_EXIST ) ); } int rowIndex = -1; try { rowIndex = odiResult.getCurrentResultIndex( ); } catch ( BirtException e1 ) { // impossible, ignore } if( ScriptConstants.ROW_NUM_KEYWORD.equalsIgnoreCase( name )||"0".equalsIgnoreCase( name )) { return new Integer( rowIndex ); } if ( rowIndex == currRowIndex && valueCacheMap.containsKey( name ) ) { return valueCacheMap.get( name ); } else { Object value = null; try { IBinding binding = this.exprManager.getBinding( name ); if ( binding == null ) { throw Context.reportRuntimeError( DataResourceHandle.getInstance( ).getMessage( ResourceConstants.INVALID_BOUND_COLUMN_NAME, new String[]{name} ) ); } if ( binding.getAggrFunction( )!= null ) { return JavascriptEvalUtil.convertToJavascriptValue( DataTypeUtil.convert( this.odiResult.getAggrValue( name ), binding.getDataType( ) ), this.scope ); } IBaseExpression dataExpr = this.exprManager.getExpr( name ); if ( dataExpr == null ) { throw Context.reportRuntimeError( DataResourceHandle.getInstance( ).getMessage( ResourceConstants.INVALID_BOUND_COLUMN_NAME, new String[]{name} ) ); } value = ExprEvaluateUtil.evaluateValue( dataExpr, this.odiResult.getCurrentResultIndex( ), this.odiResult.getCurrentResult( ), this.scope, this.cx); value = JavascriptEvalUtil.convertToJavascriptValue( DataTypeUtil.convert( value, binding.getDataType( ) ), this.scope ); } catch ( BirtException e ) { throw Context.reportRuntimeError( e.getLocalizedMessage( ) ); } if ( this.currRowIndex != rowIndex ) { this.valueCacheMap.clear( ); this.currRowIndex = rowIndex; } valueCacheMap.put( name, value ); return value; } } /** * @param rsObject * @param index * @param name * @return value * @throws DataException */ public Object getValue( IResultObject rsObject, int index, String name ) throws DataException { Object value = null; if ( name.startsWith( "_{" ) ) { try { value = rsObject.getFieldValue( name ); } catch ( DataException e ) { // ignore } } else { IBaseExpression dataExpr = this.exprManager.getExpr( name ); try { value = ExprEvaluateUtil.evaluateValue( dataExpr, -1, rsObject, this.scope, this.cx); //value = JavascriptEvalUtil.convertJavascriptValue( value ); } catch ( BirtException e ) { } } return value; } /* * @see org.mozilla.javascript.ScriptableObject#put(int, * org.mozilla.javascript.Scriptable, java.lang.Object) */ public void put( int index, Scriptable scope, Object value ) { throw new IllegalArgumentException( "Put value on result set row is not supported." ); } /* * @see org.mozilla.javascript.ScriptableObject#put(java.lang.String, * org.mozilla.javascript.Scriptable, java.lang.Object) */ public void put( String name, Scriptable scope, Object value ) { throw new IllegalArgumentException( "Put value on result set row is not supported." ); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
e663bb0508294cb8b19890792e7c9b77f1e82a26
cd3cf25c4cf8fe7b8fbebdb2eec00b3e47c2843e
/src/main/java/com/crm/infrastructure/entity/task/ChecklistTemplate.java
c04fc3b3f5a0a29dc2690681fa5b1219d729d2e4
[]
no_license
mmaico/ddd-bouderies-example
78395c0efdd0d44a431e78ec856b5fbedd7a21a9
76f3de428c191d2c2582ee4f8c2afa2fe51591c9
refs/heads/master
2021-01-09T20:17:49.086305
2016-07-08T15:05:55
2016-07-08T15:05:55
62,310,325
0
0
null
null
null
null
UTF-8
Java
false
false
1,071
java
package com.crm.infrastructure.entity.task; import com.crm.infrastructure.entity.Identifiable; import org.hibernate.validator.constraints.NotBlank; import javax.persistence.*; import javax.validation.constraints.NotNull; @Entity @Table(name="checklist_templates") public class ChecklistTemplate extends Identifiable { @Id @GeneratedValue private Long id; @NotBlank(message = "checklist.template.name.invalid") private String name; @ManyToOne @JoinColumn(name="task_template_id") @NotNull(message = "checklist.template.tasktemplate.null") private TaskTemplate taskTemplate; @Override public Long getId() { return this.id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public TaskTemplate getTaskTemplate() { return taskTemplate; } public void setTaskTemplate(TaskTemplate taskTemplate) { this.taskTemplate = taskTemplate; } }
[ "mmaico@gmail.com" ]
mmaico@gmail.com
90139ba8fb9c67e7918b1e19514192507f41f890
d2697b2dc2ada2a5db3d3b763f00648be682a3c5
/bookexchangeUpdated(1)_source_from_JADX/sources/com/google/android/gms/internal/firebase_auth/zzar.java
cb15b806a7c1c6d33392e41921a1551ceea7b48e
[]
no_license
cseadnan16/Uncomplete-project--Android-
3639b51512c23bfe5baf97d0328a4939133bab15
3b7036115db7ae1f141678282cc892ed1bc5f56e
refs/heads/main
2023-03-06T20:25:28.244479
2021-02-21T07:35:29
2021-02-21T07:35:29
340,841,260
0
0
null
null
null
null
UTF-8
Java
false
false
711
java
package com.google.android.gms.internal.firebase_auth; import java.util.logging.Logger; import java.util.regex.Pattern; /* compiled from: com.google.firebase:firebase-auth@@19.3.0 */ final class zzar { private static final Logger zza = Logger.getLogger(zzar.class.getName()); private static final zzas zzb = new zza(); /* compiled from: com.google.firebase:firebase-auth@@19.3.0 */ static final class zza implements zzas { private zza() { } public final zzal zza(String str) { return new zzan(Pattern.compile(str)); } } private zzar() { } static zzal zza(String str) { zzav.zza(str); return zzb.zza(str); } }
[ "adnanan.cse2016@gmail.com" ]
adnanan.cse2016@gmail.com
86d315465315dde2538d4a7d795ffa98f179dc93
15967180997939687404c39475ad5073480ed675
/src/main/java/io/jboot/schedule/JbooScheduleConfig.java
dd56b51d6e31c00574b76c85ee59398c912b127e
[ "Apache-2.0" ]
permissive
jekey/jboot
4c9fe5258c9af44a0c7e1f83a5fc06f9f5dfacd4
4869553f52d5dd8dd15577854af0f40838633bba
refs/heads/master
2021-01-06T20:44:40.055251
2017-11-23T08:18:41
2017-11-23T08:18:41
99,553,857
1
0
null
2017-11-23T08:18:42
2017-08-07T08:14:18
Java
UTF-8
Java
false
false
1,252
java
/** * Copyright (c) 2015-2017, Michael Yang 杨福海 (fuhai999@gmail.com). * <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.jboot.schedule; import io.jboot.config.annotation.PropertieConfig; @PropertieConfig(prefix = "jboot.schedule") public class JbooScheduleConfig { private String cron4jFile = "cron4j.properties"; private int poolSize = Runtime.getRuntime().availableProcessors() * 8; public String getCron4jFile() { return cron4jFile; } public void setCron4jFile(String cron4jFile) { this.cron4jFile = cron4jFile; } public int getPoolSize() { return poolSize; } public void setPoolSize(int poolSize) { this.poolSize = poolSize; } }
[ "fuhai999@gmail.com" ]
fuhai999@gmail.com
484a85f850106beeabbba2410357545df4709800
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/OpenRefine/2018/4/GetMetadataCommand.java
87f7977016a72eea5de374dce02eace193cf9a93
[]
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,754
java
package com.google.refine.commands.project; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.everit.json.schema.ValidationException; import org.json.JSONException; import com.google.refine.commands.Command; import com.google.refine.model.Project; import com.google.refine.model.medadata.IMetadata; import com.google.refine.model.medadata.MetadataFactory; import com.google.refine.model.medadata.MetadataFormat; public class GetMetadataCommand extends Command { @Override public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { Project project; MetadataFormat metadataFormat; try { project = getProject(request); metadataFormat = MetadataFormat.valueOf(request.getParameter("metadataFormat")); } catch (ServletException e) { respond(response, "error", e.getLocalizedMessage()); return; } // for now, only the data package metadata is supported. if (metadataFormat != MetadataFormat.DATAPACKAGE_METADATA) { respond(response, "error", "metadata format is not supported"); return; } IMetadata metadata = MetadataFactory.buildDataPackageMetadata(project); respondJSONObject(response, metadata.getJSON()); } catch (JSONException e) { respondException(response, e); } catch (ValidationException e) { respondException(response, e); } } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
7142ba4a0a9e3a2a140f4ad73285d992d3789429
470638d559d0e626ea6cff28462e8d0ec97f11f3
/java/代码/Java-Base/src/base/A.java
52fc03b6acbc325a803b7ec4174e9ed49cdffbfc
[]
no_license
LiShuxue/BackEnd-Base
40069d6cc88501f170a0b30969b8bb978e453d31
5ab9d1e16b9924fe252933342fdb8c57f86631cd
refs/heads/master
2023-08-31T02:12:27.381616
2023-08-30T02:11:02
2023-08-30T02:11:02
93,992,632
0
0
null
2022-07-13T18:28:38
2017-06-11T08:49:05
HTML
GB18030
Java
false
false
193
java
package base; public class A { public static void main(String[] args) { System.out.println("姓名\t年龄\t爱好"); System.out.println("--------------------\n昊晨\t22\t美女"); } }
[ "1149926505@qq.com" ]
1149926505@qq.com
3b9bceb2bf94a69fdca53320edd3a2f8cdc10f9c
20eb62855cb3962c2d36fda4377dfd47d82eb777
/IntroClassJava/dataset/grade/cb243bebea400595cc274d1246f3307c507ba6a0e891f6e318cde2b80a72de40dab19eb7f76d3b6573a08e446bce6fb4435cdb016ae6489973b855a9bddd3b11/000/mutations/131/grade_cb243beb_000.java
f01871d08ad825c7da6b8cac4603991d4fc79a74
[]
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,464
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_cb243beb_000 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { grade_cb243beb_000 mainClass = new grade_cb243beb_000 (); 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 score = new FloatObj (), A = new FloatObj (), B = new FloatObj (), C = new FloatObj (), D = new FloatObj (); output += (String.format ("Enter thresholds for A, B, C, D\nin that order, decreasing percentages > ")); A.value = scanner.nextFloat (); B.value = scanner.nextFloat (); C.value = scanner.nextFloat (); D.value = scanner.nextFloat (); output += (String.format ("Thank you. Now enter student score (percent) >")); score.value = scanner.nextFloat (); if ((score.value) >= (C.value)) { output += (String.format ("Student has an A grade\n")); } else if (score.value < A.value && score.value >= B.value) { output += (String.format ("Student has an B grade\n")); } else if (score.value < B.value && score.value >= C.value) { output += (String.format ("Student has and C grade\n")); } else if (score.value < C.value && score.value >= D.value) { output += (String.format ("Student has an D grade\n")); } else { output += (String.format ("Student has an F grade\n")); } if (true) return;; } }
[ "justinwm@163.com" ]
justinwm@163.com
656735d35357606fcb0c5ffa5c9ea036e07b766e
a3e9de23131f569c1632c40e215c78e55a78289a
/alipay/alipay_sdk/src/main/java/com/alipay/api/response/AlipayMarketingCashvoucherTemplateCreateResponse.java
f0f9ddfdbe5916cd492911a2d6f6c86ba166c86c
[]
no_license
P79N6A/java_practice
80886700ffd7c33c2e9f4b202af7bb29931bf03d
4c7abb4cde75262a60e7b6d270206ee42bb57888
refs/heads/master
2020-04-14T19:55:52.365544
2019-01-04T07:39:40
2019-01-04T07:39:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,159
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.marketing.cashvoucher.template.create response. * * @author auto create * @since 1.0, 2018-09-17 11:06:24 */ public class AlipayMarketingCashvoucherTemplateCreateResponse extends AlipayResponse { private static final long serialVersionUID = 5775828636138739347L; /** * 模板支付确认链接 */ @ApiField("confirm_uri") private String confirmUri; /** * 资金订单号,模板支付时需要 */ @ApiField("fund_order_no") private String fundOrderNo; /** * 券模板ID */ @ApiField("template_id") private String templateId; public void setConfirmUri(String confirmUri) { this.confirmUri = confirmUri; } public String getConfirmUri( ) { return this.confirmUri; } public void setFundOrderNo(String fundOrderNo) { this.fundOrderNo = fundOrderNo; } public String getFundOrderNo( ) { return this.fundOrderNo; } public void setTemplateId(String templateId) { this.templateId = templateId; } public String getTemplateId( ) { return this.templateId; } }
[ "jiaojianjun1991@gmail.com" ]
jiaojianjun1991@gmail.com