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
0d5f429de8d06161afd8da1997f292b2831812db
bc5c2fb730f4562feb9bbe4b6c1bcfc8a32fe217
/app/src/main/java/com/xaqinren/healthyelders/moduleLiteav/service/DownMusicBean.java
f4691e4bcccd0d766e99a5c7a5c90c3cd342c54b
[ "Apache-2.0" ]
permissive
Supopo/HealthElder
9238a3cea78fd8f9b76b4c31b08ef37c8240331c
03d8e11e03aa041aaf435d8b32986537e35bc4c8
refs/heads/master
2023-08-20T03:00:23.614887
2021-09-16T08:36:01
2021-09-16T08:36:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
157
java
package com.xaqinren.healthyelders.moduleLiteav.service; public class DownMusicBean { public String path; public String id; public long size; }
[ "xiyezifeng@163.com" ]
xiyezifeng@163.com
35327227611140ef29c013f1862b33ced0f7aa43
b26fa0b184d9121c8ce8a77b1cb983e63f8bc609
/contest/leetcode_week_236/leetcode_1823_Find_the_Winner_of_the_Circular_Game.java
7a5423eac7a90e428fb4b2dfa1f3736da82fcc9a
[]
no_license
Ignorance-of-Dong/Algorithm
ecc1e143ddccd56f2c5e556cfc0de936ac4831f5
ee3403dcd73c302674e0f911bcfec4d648d3229a
refs/heads/master
2023-08-16T11:02:23.156599
2023-08-13T06:41:37
2023-08-13T06:41:37
246,977,114
1
0
null
2023-09-12T11:56:06
2020-03-13T03:03:46
Java
UTF-8
Java
false
false
1,242
java
// AC: 模拟 // Runtime: 198 ms, faster than 33.33% of Java online submissions for Find the Winner of the Circular Game. // Memory Usage: 38.3 MB, less than 33.33% of Java online submissions for Find the Winner of the Circular Game. class Solution { public int findTheWinner(int n, int k) { if (n == 1 || k == 1) { return n; } int[] record = new int[n + 1]; for(int i = 0; i < n + 1; i++) { record[i] = 0; } Stack<Integer> losed = new Stack<>(); int pos = 1; boolean startFirstLoop = false; while(losed.size() < n) { int tempK = k; if (!startFirstLoop) { tempK--; pos = (pos + 1) % (n + 1); startFirstLoop = true; } while (true) { if (pos != 0 && record[pos] != 1) { if (tempK > 0) { tempK--; } if (tempK == 0) { break; } } pos = (pos + 1) % (n + 1); } record[pos] = 1; losed.add(pos); } return losed.peek(); } }
[ "1460018362@qq.com" ]
1460018362@qq.com
601d336afdad763cb98226700deed2bc6055de6c
384228892b2e32441066f33c38b5f23106553644
/src/test/java/web/swipBox/PageObject/SwipBoxHOme.java
dfac064303939ebf95e4f3446606a619393e09a4
[]
no_license
Unsa123/PageObjectModel
7bc8c58852365b507d4b792ac4ae44a963890cbe
30145d488a92e1610a857f4278b1eaf18310e13c
refs/heads/master
2023-08-31T09:52:01.599014
2019-06-16T11:18:40
2019-06-16T11:18:40
192,180,972
0
0
null
2023-07-22T08:29:28
2019-06-16T11:02:42
HTML
UTF-8
Java
false
false
1,575
java
package web.swipBox.PageObject; import org.openqa.selenium.By; import web.swipBox.PageController.Page; public class SwipBoxHOme extends Page { // WebDriver driver; // public SwipBoxHOme(WebDriver driver) { // this.driver=driver; // } public void toggleDashboard() { driver.findElement(By.xpath("//*[@id=\"sidebarToggle\"]/i")).click(); } public void goToDashboard() { driver.findElement(By.xpath("//*[@id=\"outer-most-wrapper\"]/div[1]/app-sidebar/div[2]/div[1]/ul/li[1]/a/span")).click(); } public void goToShipments() { driver.findElement(By.cssSelector("#outer-most-wrapper > div.app-sidebar > app-sidebar > div.sidebar-content.ps-container.ps-theme-default > div.nav-container > ul > li:nth-child(2) > a > span")).click(); analyzeLog("goToShipments"); } public void goToServicePoints() { driver.findElement(By.xpath("//*[@id=\"outer-most-wrapper\"]/div[1]/app-sidebar/div[2]/div[1]/ul/li[3]/a/span")).click(); } public void goToCarriers() { driver.findElement(By.xpath("//*[@id=\"outer-most-wrapper\"]/div[1]/app-sidebar/div[2]/div[1]/ul/li[4]/a/span")).click(); } public void goToPartners() { driver.findElement(By.xpath("//*[@id=\"outer-most-wrapper\"]/div[1]/app-sidebar/div[2]/div[1]/ul/li[5]/a/span")).click(); } public void goToUserSettings() { driver.findElement(By.xpath("//*[@id=\"outer-most-wrapper\"]/div[1]/app-sidebar/div[2]/div[1]/ul/li[6]/a/span")).click(); } public void goToAdmin() { driver.findElement(By.xpath("//*[@id=\"outer-most-wrapper\"]/div[1]/app-sidebar/div[2]/div[1]/ul/li[7]/a/span")).click(); } }
[ "you@example.com" ]
you@example.com
b3c1416d6df495b1c24ff08281d9bdf7b2fd1ddd
66e2f35b7b56865552616cf400e3a8f5928d12a2
/src/main/java/com/alipay/api/domain/FsServiceDynamicInfo.java
41201eec5b9cf8653512040d678a347e4fe907d6
[ "Apache-2.0" ]
permissive
xiafaqi/alipay-sdk-java-all
18dc797400847c7ae9901566e910527f5495e497
606cdb8014faa3e9125de7f50cbb81b2db6ee6cc
refs/heads/master
2022-11-25T08:43:11.997961
2020-07-23T02:58:22
2020-07-23T02:58:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,820
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 服务动态信息 * * @author auto create * @since 1.0, 2019-10-28 20:33:22 */ public class FsServiceDynamicInfo extends AlipayObject { private static final long serialVersionUID = 5526499321586361943L; /** * 内容键 subjectData:主体数据 */ @ApiField("content_key") private String contentKey; /** * 数据类型; YIELD_TYPE:收益率,SUM:累计次数,CHANGE:涨跌幅,PRICE:价格,GOLD_PRICE:黄金价格,PROBABILITY:概率 */ @ApiField("content_type") private String contentType; /** * 内容值 */ @ApiField("content_value") private String contentValue; /** * 终止有效期(含) */ @ApiField("end_valid_date") private String endValidDate; /** * 数据其实有效期(含) */ @ApiField("start_valid_date") private String startValidDate; public String getContentKey() { return this.contentKey; } public void setContentKey(String contentKey) { this.contentKey = contentKey; } public String getContentType() { return this.contentType; } public void setContentType(String contentType) { this.contentType = contentType; } public String getContentValue() { return this.contentValue; } public void setContentValue(String contentValue) { this.contentValue = contentValue; } public String getEndValidDate() { return this.endValidDate; } public void setEndValidDate(String endValidDate) { this.endValidDate = endValidDate; } public String getStartValidDate() { return this.startValidDate; } public void setStartValidDate(String startValidDate) { this.startValidDate = startValidDate; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
6facfaa7ecbc7a9219d69bc95cc8b00aff8e2073
7f20b1bddf9f48108a43a9922433b141fac66a6d
/core3/vizmap-gui-impl/tags/vizmap-gui-impl-3.0.0-alpha2/src/main/java/org/cytoscape/view/vizmap/gui/internal/action/AbstractVizMapperAction.java
ead46aaf285edb62bbb5c75eb241e9658a0fbe9d
[]
no_license
ahdahddl/cytoscape
bf783d44cddda313a5b3563ea746b07f38173022
a3df8f63dba4ec49942027c91ecac6efa920c195
refs/heads/master
2020-06-26T16:48:19.791722
2013-08-28T04:08:31
2013-08-28T04:08:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,960
java
/* Copyright (c) 2006, 2007, The Cytoscape Consortium (www.cytoscape.org) The Cytoscape Consortium is: - Institute for Systems Biology - University of California San Diego - Memorial Sloan-Kettering Cancer Center - Institut Pasteur - Agilent Technologies This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and documentation provided hereunder is on an "as is" basis, and the Institute for Systems Biology and the Whitehead Institute have no obligations to provide maintenance, support, updates, enhancements or modifications. In no event shall the Institute for Systems Biology and the Whitehead Institute be liable to any party for direct, indirect, special, incidental or consequential damages, including lost profits, arising out of the use of this software and its documentation, even if the Institute for Systems Biology and the Whitehead Institute have been advised of the possibility of such damage. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ package org.cytoscape.view.vizmap.gui.internal.action; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.util.Properties; import javax.swing.AbstractAction; import javax.swing.JMenuItem; import org.cytoscape.session.CyApplicationManager; import org.cytoscape.view.vizmap.VisualMappingManager; import org.cytoscape.view.vizmap.gui.DefaultViewEditor; import org.cytoscape.view.vizmap.gui.SelectedVisualStyleManager; import org.cytoscape.view.vizmap.gui.action.VizMapUIAction; import org.cytoscape.view.vizmap.gui.internal.EditorWindowManager; import org.cytoscape.view.vizmap.gui.internal.VizMapPropertySheetBuilder; import org.cytoscape.view.vizmap.gui.internal.VizMapperMainPanel; import org.cytoscape.view.vizmap.gui.internal.theme.IconManager; import com.l2fprod.common.propertysheet.PropertySheetPanel; /** * Action class to process commands. */ public abstract class AbstractVizMapperAction extends AbstractAction implements VizMapUIAction, PropertyChangeListener { private static final long serialVersionUID = 1499424630636172107L; protected DefaultViewEditor defViewEditor; protected VisualMappingManager vmm; protected CyApplicationManager applicationManager; protected VizMapperMainPanel vizMapperMainPanel; protected IconManager iconManager; protected VizMapPropertySheetBuilder vizMapPropertySheetBuilder; protected PropertySheetPanel propertySheetPanel; protected EditorWindowManager editorWindowManager; protected Properties vizmapUIResource; protected String menuLabel; protected String iconId; protected JMenuItem menuItem; protected SelectedVisualStyleManager manager; public AbstractVizMapperAction() { } /** * DOCUMENT ME! * * @param defAppBldr DOCUMENT ME! */ public void setDefaultAppearenceBuilder(DefaultViewEditor defViewEditor) { this.defViewEditor = defViewEditor; } /** * DOCUMENT ME! * * @param vmm DOCUMENT ME! */ public void setVmm(VisualMappingManager vmm) { this.vmm = vmm; } /** * DOCUMENT ME! * * @param vizMapperMainPanel DOCUMENT ME! */ public void setVizMapperMainPanel(VizMapperMainPanel vizMapperMainPanel) { this.vizMapperMainPanel = vizMapperMainPanel; } /** * DOCUMENT ME! * * @param menuLabel DOCUMENT ME! */ public void setMenuLabel(final String menuLabel) { this.menuLabel = menuLabel; } /** * DOCUMENT ME! * * @param iconId DOCUMENT ME! */ public void setIconId(final String iconId) { this.iconId = iconId; } /** * DOCUMENT ME! * * @param iconManager DOCUMENT ME! */ public void setIconManager(IconManager iconManager) { this.iconManager = iconManager; } /** * DOCUMENT ME! * * @return DOCUMENT ME! */ public JMenuItem getMenu() { if (menuItem == null) { //TODO: where should I set listener? //vizMapperMainPanel.getPropertyChangeSupport().addPropertyChangeListener(this); menuItem = new JMenuItem(menuLabel); //menuItem.setIcon(iconManager.getIcon(iconId)); menuItem.addActionListener(this); } return menuItem; } public void execute() { // Should be implemented by the action classes. } /** * DOCUMENT ME! */ public void propertyChange(PropertyChangeEvent e) { System.out.println(e.getSource()); } }
[ "mes@0ecc0d97-ab19-0410-9704-bfe1a75892f5" ]
mes@0ecc0d97-ab19-0410-9704-bfe1a75892f5
104e6a651f6bc70ed3763a17fcc91f1bb1eb98b5
a3ceb4b4dc0cfb57c742c460d5dcb6c30e238fe6
/src/main/java/br/com/anteros/persistence/sql/parser/node/EqualNode.java
4a66c90480a9d3483ee16adb416085af6c705181
[]
no_license
anterostecnologia/anterospersistencecore
40ea6d334c3161b39a5a53421c29a8272315cc5b
39fec71be92379dd9b4a1aea7abef3f400f89f52
refs/heads/master
2023-04-05T00:17:28.040989
2023-03-30T23:27:23
2023-03-30T23:27:23
56,242,755
1
1
null
2023-08-24T20:26:32
2016-04-14T14:10:07
Java
UTF-8
Java
false
false
1,393
java
/******************************************************************************* * Copyright 2012 Anteros Tecnologia * * 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. *******************************************************************************/ /******************************************************************************* * Copyright (c) 2007 - 2009 ZIGEN * Eclipse Public License - v 1.0 * http://www.eclipse.org/legal/epl-v10.html *******************************************************************************/ package br.com.anteros.persistence.sql.parser.node; import br.com.anteros.persistence.sql.parser.ParserVisitor; public class EqualNode extends SymbolNode { public EqualNode(int offset, int length, int scope) { super("=", offset, length, scope); } public Object accept(ParserVisitor visitor, Object data) { return visitor.visit(this, data); } }
[ "edsonmartins2005@gmail.com" ]
edsonmartins2005@gmail.com
371888b26b63dc902dfe05512684369babba3603
06b714f9a948872358989813a1c3e01b9443485b
/src/exception/ArrayException.java
5427bf4923b5122c32b8ab1118bd53164214bbe5
[]
no_license
NoneMSG/chapter02
ce9a677e9cbdfd60f1a973dde706646868cc83da
addaaf1d77d06e348bbe984d9e3d4677b0a13e9b
refs/heads/master
2021-01-19T20:02:55.309681
2017-04-20T08:25:58
2017-04-20T08:25:58
88,476,879
0
0
null
null
null
null
UTF-8
Java
false
false
494
java
package exception; public class ArrayException { public static void main( String[] args ) { try{ int[] intArray = new int[5]; intArray[0] = 0; for( int i = 0; i < 5; i++ ) { intArray[ i+1 ] = i + 1 + intArray[ i ]; // i = 4인 경우 예외 발생 System.out.println( "intArray[" + i + "]" + "=" + intArray[ i ] ); } }catch(Exception ex){ ex.printStackTrace(); } } }
[ "bit-user@bit" ]
bit-user@bit
a171cbf903a16b4d772e3a2c753d4f5aa7d09110
2905bd04202a203cf4caa6a7613f469bbffd291b
/src/main/java/com/oneliang/tools/builder/android/base/AndroidApi.java
083eff4a6a0f8a7afef1e743b1af8c4edf2cf8c6
[ "Apache-2.0" ]
permissive
oneliang/builder-android
5d760fe6bc557e8ef347605c778479502a2d2692
e337fce93e9e508ae2823af1c433cfbf2f23630e
refs/heads/master
2020-05-21T22:11:25.048518
2018-11-02T03:45:08
2018-11-02T03:45:08
60,591,761
0
0
null
null
null
null
UTF-8
Java
false
false
2,411
java
package com.oneliang.tools.builder.android.base; import java.util.List; import java.util.Properties; import com.oneliang.util.common.StringUtil; public class AndroidApi { static final String SOURCE_PROPERTIES="source.properties"; private static final String ANDROID_VERSION_API_LEVEL="AndroidVersion.ApiLevel"; private static final String ANDROID_VERSION_CODE_NAME="AndroidVersion.CodeName"; private static final String PKG_REVISION="Pkg.Revision"; private static final String ANDROID="android-"; private int apiLevel=0; private String codeName=null; private int pkgRevision=0; private String directory=null; private String target=null; private List<String> jarList=null; public AndroidApi(Properties properties){ this.apiLevel=Integer.parseInt(properties.getProperty(ANDROID_VERSION_API_LEVEL, String.valueOf(0)).trim()); this.codeName=properties.getProperty(ANDROID_VERSION_CODE_NAME); this.pkgRevision=Integer.parseInt(properties.getProperty(PKG_REVISION, String.valueOf(0)).trim()); if(StringUtil.isNotBlank(this.codeName)){ this.target=ANDROID+this.codeName; }else{ this.target=ANDROID+this.apiLevel; } } /** * @return the directory */ public String getDirectory() { return directory; } /** * @param directory the directory to set */ void setDirectory(String directory) { this.directory = directory; } /** * @return the apiLevel */ public int getApiLevel() { return apiLevel; } /** * @param apiLevel the apiLevel to set */ void setApiLevel(int apiLevel) { this.apiLevel = apiLevel; } /** * @return the target */ public String getTarget() { return target; } /** * @return the jarList */ public List<String> getJarList() { return jarList; } /** * @param jarList the jarList to set */ void setJarList(List<String> jarList) { this.jarList = jarList; } /** * @return the codeName */ public String getCodeName() { return codeName; } /** * @param codeName the codeName to set */ void setCodeName(String codeName) { this.codeName = codeName; } /** * @return the pkgRevision */ public int getPkgRevision() { return pkgRevision; } /** * @param pkgRevision the pkgRevision to set */ void setPkgRevision(int pkgRevision) { this.pkgRevision = pkgRevision; } }
[ "oneliang@tencent.com" ]
oneliang@tencent.com
9b202504467f227a458298271e48282f13389838
d89773fe7c14529bf59447e27ac0560d7eaf106c
/src/main/java/com/logiciel/presence/web/rest/vm/LoginVM.java
a9d83cc3626fa74791c0538c2de423ae05e2b41d
[]
no_license
sandalothier/jh-presence
448046edd52456aa589a021b762b999ddd7abce2
e910570fc6a1939915366bf661d9ab783b5a4dd4
refs/heads/master
2022-12-23T17:35:20.611571
2020-01-20T16:46:00
2020-01-20T16:46:00
235,149,350
0
0
null
2022-12-16T05:55:43
2020-01-20T16:45:45
Java
UTF-8
Java
false
false
1,058
java
package com.logiciel.presence.web.rest.vm; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; /** * View Model object for storing a user's credentials. */ public class LoginVM { @NotNull @Size(min = 1, max = 50) private String username; @NotNull @Size(min = 4, max = 100) private String password; private Boolean rememberMe; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Boolean isRememberMe() { return rememberMe; } public void setRememberMe(Boolean rememberMe) { this.rememberMe = rememberMe; } @Override public String toString() { return "LoginVM{" + "username='" + username + '\'' + ", rememberMe=" + rememberMe + '}'; } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
1653331331b91781b54b8e20c9bd64b88af189b9
14d4fa5f2eb32853f72f791de4bf92f76022b9da
/SimpleSDK/src/org/bouncycastle/crypto/params/NaccacheSternKeyParameters.java
5b7f4fcd3159ceffd4b96b10ab4c9af500ded866
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "LicenseRef-scancode-proprietary-license", "JSON", "LicenseRef-scancode-warranty-disclaimer", "EPL-1.0" ]
permissive
SKT-ThingPlug2/device-sdk-javame
253ece8b8f41286256c27bae07a242dc551ff8c6
2a965a8d882b3a4e36753c7b81f152a9b56614d3
refs/heads/master
2021-05-02T12:52:01.394954
2018-03-09T08:22:25
2018-03-09T08:22:25
120,748,806
1
5
Apache-2.0
2018-03-23T06:16:34
2018-02-08T10:48:43
Java
UTF-8
Java
false
false
1,009
java
package org.bouncycastle.crypto.params; import javax.math.BigInteger; /** * Public key parameters for NaccacheStern cipher. For details on this cipher, * please see * * http://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf */ public class NaccacheSternKeyParameters extends AsymmetricKeyParameter { private BigInteger g, n; int lowerSigmaBound; /** * @param privateKey */ public NaccacheSternKeyParameters(boolean privateKey, BigInteger g, BigInteger n, int lowerSigmaBound) { super(privateKey); this.g = g; this.n = n; this.lowerSigmaBound = lowerSigmaBound; } /** * @return Returns the g. */ public BigInteger getG() { return g; } /** * @return Returns the lowerSigmaBound. */ public int getLowerSigmaBound() { return lowerSigmaBound; } /** * @return Returns the n. */ public BigInteger getModulus() { return n; } }
[ "lesmin@sk.com" ]
lesmin@sk.com
3e32e97cd696dfbe2fec3c276bb514df340ba7dd
48b86298de88d3075468f4d747962506e39a7dc7
/net.solarnetwork.node/src/net/solarnetwork/node/domain/AtmosphericDatum.java
aeae540eb194c40ea79026187fc0ecd961b05212
[ "Apache-2.0" ]
permissive
Tsvetelin98/Solar
91f9254dd935f859f56d6c438f8bad8b804eeb63
350341d4f6a32d53efd48778ee7a8ba89a591978
refs/heads/master
2020-03-23T09:33:10.914041
2018-07-18T07:26:19
2018-07-18T07:26:19
141,395,087
0
0
null
null
null
null
UTF-8
Java
false
false
5,251
java
/* ================================================================== * AtmosphericDatum.java - Aug 26, 2014 1:52:01 PM * * Copyright 2007-2014 SolarNetwork.net Dev Team * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA * ================================================================== */ package net.solarnetwork.node.domain; import java.math.BigDecimal; /** * Standardized API for atmospheric related datum to implement. * * @author matt * @version 1.3 */ public interface AtmosphericDatum extends Datum { /** * A {@link net.solarnetwork.domain.GeneralNodeDatumSamples} instantaneous * sample key for {@link AtmosphericDatum#getTemperature()} values. */ String TEMPERATURE_KEY = "temp"; /** * A {@link net.solarnetwork.domain.GeneralDatumSamples} instantaneous * sample key for {@link AtmosphericDatum#getHumidity()} values. */ String HUMIDITY_KEY = "humidity"; /** * A {@link net.solarnetwork.domain.GeneralDatumSamples} instantaneous * sample key for {@link AtmosphericDatum#getDewPoint()} values. */ String DEW_POINT_KEY = "dew"; /** * A {@link net.solarnetwork.domain.GeneralDatumSamples} instantaneous * sample key for {@link AtmosphericDatum#getAtmosphericPressure()} values. */ String ATMOSPHERIC_PRESSURE_KEY = "atm"; /** * A {@link net.solarnetwork.domain.GeneralDatumSamples} instantaneous * sample key for {@link AtmosphericDatum#getAtmosphericPressure()} values. */ String VISIBILITY_KEY = "visibility"; /** * A {@link net.solarnetwork.domain.GeneralDatumSamples} status sample key * for {@link AtmosphericDatum#getSkyConditions()} values. */ String SKY_CONDITIONS_KEY = "sky"; /** * A {@link net.solarnetwork.domain.GeneralDatumSamples} status sample key * for {@link AtmosphericDatum#getWindSpeed()} values. * * @since 1.2 */ String WIND_SPEED_KEY = "wspeed"; /** * A {@link net.solarnetwork.domain.GeneralDatumSamples} status sample key * for {@link AtmosphericDatum#getWindDirection()} values. * * @since 1.2 */ String WIND_DIRECTION_KEY = "wdir"; /** * A {@link net.solarnetwork.domain.GeneralDatumSamples} status sample key * for {@link AtmosphericDatum#getRain()} values. * * @since 1.2 */ String RAIN_KEY = "rain"; /** * A {@link net.solarnetwork.domain.GeneralDatumSamples} status sample key * for {@link AtmosphericDatum#getSnow()} values. * * @since 1.2 */ String SNOW_KEY = "snow"; /** * A {@link net.solarnetwork.domain.GeneralDatumSamples} status sample key * for {@link AtmosphericDatum#getIrradiance()} values. * * @since 1.3 */ String IRRADIANCE_KEY = "irradiance"; /** A tag for an "indoor" atmosphere sample. */ String TAG_ATMOSPHERE_INDOOR = "indoor"; /** A tag for an "outdoor" atmosphere sample. */ String TAG_ATMOSPHERE_OUTDOOR = "outdoor"; /** * A tag for a forecast atmosphere sample, as opposed to an actual * measurement. * * @since 1.2 */ String TAG_FORECAST = "forecast"; /** * Get the instantaneous temperature, in degrees Celsius. * * @return the temperature, in degrees Celsius */ BigDecimal getTemperature(); /** * Get the instantaneous dew point, in degrees Celsius. * * @return the dew point, in degrees celsius */ BigDecimal getDewPoint(); /** * Get the instantaneous humidity, as an integer percentage (where 100 * represents 100%). * * @return the humidity, as an integer percentage */ Integer getHumidity(); /** * Get the instantaneous atmospheric pressure, in pascals. * * @return the atmospheric pressure, in pascals */ Integer getAtmosphericPressure(); /** * Get the instantaneous visibility, in meters. * * @return visibility, in meters */ Integer getVisibility(); /** * Get a textual description of the sky conditions, e.g. "clear", "cloudy", * etc. * * @return general sky conditions */ String getSkyConditions(); /** * Get the wind speed, in meters / second. * * @return wind speed * @since 1.2 */ BigDecimal getWindSpeed(); /** * Get the wind direction, in degrees. * * @return wind direction * @since 1.2 */ Integer getWindDirection(); /** * Get the rain accumulation, in millimeters. * * @return rain accumulation * @since 1.2 */ Integer getRain(); /** * Get the snow accumulation, in millimeters. * * @return snow accumulation * @since 1.2 */ Integer getSnow(); /** * Get the solar irradiance level, in watts / square meter. * * @return irradiance level * @since 1.3 */ BigDecimal getIrradiance(); }
[ "eniware@eniware" ]
eniware@eniware
82d1695e28e193144aa81b98b5b5b8b73a5303b5
82eba08b9a7ee1bd1a5f83c3176bf3c0826a3a32
/ZmailClient/src/java/org/zmail/client/event/ZModifyItemEvent.java
5318f2a7cd97a2485f9578d1e022f8f4243a42a2
[ "MIT" ]
permissive
keramist/zmailserver
d01187fb6086bf3784fe180bea2e1c0854c83f3f
762642b77c8f559a57e93c9f89b1473d6858c159
refs/heads/master
2021-01-21T05:56:25.642425
2013-10-21T11:27:05
2013-10-22T12:48:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
761
java
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 VMware, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://www.zimbra.com/license. * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. * ***** END LICENSE BLOCK ***** */ package org.zmail.client.event; import org.zmail.common.service.ServiceException; public interface ZModifyItemEvent extends ZModifyEvent { public String getId() throws ServiceException; }
[ "bourgerie.quentin@gmail.com" ]
bourgerie.quentin@gmail.com
41d9bda8df99e2f74c8334f94345782d8dd140a0
fe4490671d80b325b3f4ff9cce450dc99a3996ad
/dynamic-programming/Java/0877-stone-game/src/Solution7.java
2595ab64fc683de76d444f9c322383e1c06c5240
[ "Apache-2.0" ]
permissive
lapam2/LeetCode-Solutions-in-Good-Style
733c32e7f9618dd773bc51b3f6ccbd0bd95dfd78
9c61cb7a653ba0d4a3cf2e7c5d67b1910cf3bdd7
refs/heads/master
2022-11-20T17:33:20.385073
2020-07-22T04:40:30
2020-07-22T04:40:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
677
java
public class Solution7 { // 花花酱的思路 2:动态规划 public boolean stoneGame(int[] piles) { int len = piles.length; int[][] dp = new int[len][len]; for (int i = 0; i < len; i++) { dp[i][i] = piles[i]; } // 注意顺序,新值一定要参考旧址 for (int k = 2; k <= len; k++) { // i 表示左边界 for (int i = 0; i < len - k + 1; i++) { // j 表示右边界 int j = i + k - 1; dp[i][j] = Math.max(piles[i] - dp[i + 1][j], piles[j] - dp[i][j - 1]); } } return dp[0][len - 1] > 0; } }
[ "liweiwei1419@gmail.com" ]
liweiwei1419@gmail.com
8ca464b8941decb0ebaccf0825866ff2399907fa
ed5159d056e98d6715357d0d14a9b3f20b764f89
/test/irvine/oeis/a290/A290608Test.java
2b5fc78ab4c1bb29672cd66b8e68747b6045fb0c
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
195
java
package irvine.oeis.a290; import irvine.oeis.AbstractSequenceTest; /** * Tests the corresponding class. * @author Sean A. Irvine */ public class A290608Test extends AbstractSequenceTest { }
[ "sairvin@gmail.com" ]
sairvin@gmail.com
bf7590852c54fcab989d9ff3d96251d8cc9bb5a0
38bc1f60f7f092116d2b7268efd279052d35f111
/src/main/java/com/lancq/sso/controller/BaseController.java
5d3c38aae4c402dfa57889c7921010c41c9465d5
[]
no_license
lanchunqiu/mall-sso
f8fa14021b0be16b58f5fe28fb53e630c58903b5
8decc60ea5c9c7db500126352f4e10838b309729
refs/heads/master
2020-03-22T01:52:49.985683
2018-07-15T02:41:16
2018-07-15T02:41:16
139,336,050
0
0
null
null
null
null
UTF-8
Java
false
false
350
java
package com.lancq.sso.controller; /** * @Author lancq * @Description * @Date 2018/7/5 **/ public class BaseController { static ThreadLocal<String> uidThreadLocal = new ThreadLocal<String>(); public void setUid(String uid){ uidThreadLocal.set(uid); } public String getUid(){ return uidThreadLocal.get(); } }
[ "1046582540@qq.com" ]
1046582540@qq.com
23c591272bc22235622fe6847327144b0b70990f
e5bbe51d30d9609feae89033d5047bde4c765235
/app/src/androidTest/java/mook/winning/com/bottomsheetcenter/ExampleInstrumentedTest.java
32ed30fca3510a5587db3fac60c48fc7ed68def2
[]
no_license
SharkChao/BottomSheetCenter
f1cd35059b3e1b434bbc7d9b09b3c941b7d8dea8
c8ee8ab401b38d321a171e59176faa36abaf783a
refs/heads/master
2020-03-17T20:29:07.069589
2018-05-18T06:24:54
2018-05-18T06:24:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
752
java
package mook.winning.com.bottomsheetcenter; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("mook.winning.com.bottomsheetcenter", appContext.getPackageName()); } }
[ "15235174661@163.com" ]
15235174661@163.com
9d93847192a741e922726f4de0bec1371fac4d77
e6e73de5d41a6ee7c5386cd9c9c2e854646a0a1f
/wisdomregulation_app/src/main/java/com/wisdomregulation/test/UnderMoreActivity.java
4dd90f2b8ac5957e572a18cdbeaa61fb2517f4da
[]
no_license
srxffcc1/WisdomRegulation
7cd358b4e4837fe241f865400ce4763ed3abd85d
4d67d25380d0ff806c143966ee858179c2ec2de3
refs/heads/master
2020-06-17T15:48:06.492703
2017-08-14T05:38:50
2017-08-14T05:38:50
94,157,268
0
0
null
null
null
null
UTF-8
Java
false
false
2,787
java
package com.wisdomregulation.test; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ListView; import android.widget.PopupWindow; import com.wisdomregulation.R; import com.wisdomregulation.staticlib.Static_InfoApp; public class UnderMoreActivity extends Activity{ @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.test_list); final List<String> testl=new ArrayList<String>(); for (int i = 0; i < 10; i++) { testl.add(new String(i+"")); } ListView ll=(ListView) this.findViewById(R.id.testlist); ll.setAdapter(new BaseAdapter() { @Override public View getView(int position, View convertView, ViewGroup parent) { convertView=LayoutInflater.from(UnderMoreActivity.this).inflate(R.layout.test_listitem, null); View view=LayoutInflater.from(UnderMoreActivity.this).inflate(R.layout.test_pop, null); final PopupWindow popupWindow = new PopupWindow(view, (int)Static_InfoApp.create().getAppScreenWidth()/2, 300); convertView.findViewById(R.id.showpop).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { popupWindow.setTouchable(true); popupWindow.setOutsideTouchable(true); // popupWindow.setTouchInterceptor(new OnTouchListener() { // // @Override // public boolean onTouch(View v, MotionEvent event) { // // // return false; // // 这里如果返回true的话,touch事件将被拦截 // // 拦截后 PopupWindow的onTouchEvent不被调用,这样点击外部区域无法dismiss // } // }); // 如果不设置PopupWindow的背景,无论是点击外部区域还是Back键都无法dismiss弹框 // 我觉得这里是API的一个bug popupWindow.setBackgroundDrawable(UnderMoreActivity.this.getResources().getDrawable(R.color.tomato)); if(popupWindow.isShowing()){ popupWindow.dismiss(); }else{ popupWindow.showAsDropDown(v); } // 设置好参数之后再show } }); return convertView; } @Override public long getItemId(int position) { // TODO Auto-generated method stub return position; } @Override public Object getItem(int position) { // TODO Auto-generated method stub return position; } @Override public int getCount() { // TODO Auto-generated method stub return testl.size(); } }); } }
[ "3521829873@qq.com" ]
3521829873@qq.com
d624e2ebcf5029d4ad19b28ebeea6d5120535e7e
b92e9a907716a1d7097ac1e7994fe727c7529ada
/src/com/zjut/oj/service/system/MessageAttachService.java
447ccede2a7db9d2d655b6ddfa22886e0a3eda1b
[]
no_license
water-fu/zjutoj
4914e8b12050793d9ea1070bba8b8a4d45fab08d
7e3480eef03d6a73dde096612f8c6404ed5e4e4b
refs/heads/master
2020-04-15T17:32:06.570871
2016-03-26T09:36:48
2016-03-26T09:36:48
30,512,747
0
0
null
null
null
null
UTF-8
Java
false
false
523
java
package com.zjut.oj.service.system; import com.zjut.oj.entity.system.MessageAttachBean; import com.zjut.oj.util.ApplicationException; public interface MessageAttachService { int insert(MessageAttachBean messageAttachBean) throws ApplicationException; void delete(MessageAttachBean messageAttachBean) throws ApplicationException; void update(MessageAttachBean messageAttachBean) throws ApplicationException; MessageAttachBean findById(Integer id) throws ApplicationException; }
[ "fusj@ce2a1918-1c78-4d5b-8570-6b617fc693f1" ]
fusj@ce2a1918-1c78-4d5b-8570-6b617fc693f1
bfb9a9f9568d355514d9edd06086ceb09a4b1847
c90297ad68c36c5560fed61261e96363cdc12341
/LmsApi/src/main/java/com/softech/vu360/lms/webservice/message/lmsapi/types/enrollment/package-info.java
f05f847a78d71e1bf46241416888a01100dfe81d
[]
no_license
quickstart75/gateway-final
c2bddf90ba469544e6a239ca14f5a8c555fee2db
e9ce8280f1358de8d4d16cae40826517e4f948af
refs/heads/master
2022-12-21T22:03:44.418660
2020-01-28T14:41:44
2020-01-28T14:41:44
234,112,794
0
1
null
2022-12-16T10:32:16
2020-01-15T15:37:34
Java
UTF-8
Java
false
false
601
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 // 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.04.25 at 07:11:10 PM PKT // @javax.xml.bind.annotation.XmlSchema(namespace = "http://enrollment.types.lmsapi.message.webservice.lms.vu360.softech.com", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package com.softech.vu360.lms.webservice.message.lmsapi.types.enrollment;
[ "syed.zeeshan@360training.com" ]
syed.zeeshan@360training.com
193d0c9b858013475df407576dd4f4532986b69e
6a5e53d54a8e9787b390f9c3b69db2d7153d08bb
/core/modules/web/src/main/java/org/onetwo/common/web/view/ftl/DirectivesUtils.java
2f3a7c111720ea96626203d255d677710baa6e9c
[ "Apache-2.0" ]
permissive
wayshall/onetwo
64374159b23fc8d06373a01ecc989db291e57714
44c9cd40bc13d91e4917c6eb6430a95f395f906a
refs/heads/master
2023-08-17T12:26:47.634987
2022-07-05T06:54:30
2022-07-05T06:54:30
47,802,308
23
13
Apache-2.0
2023-02-22T07:08:34
2015-12-11T03:17:58
Java
UTF-8
Java
false
false
7,609
java
package org.onetwo.common.web.view.ftl; import java.beans.PropertyDescriptor; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import javax.servlet.http.HttpServletRequest; import org.apache.commons.lang3.StringUtils; import org.onetwo.common.exception.BaseException; import org.onetwo.common.reflect.ReflectUtils; import org.onetwo.common.spring.ftl.FtlUtils; import org.onetwo.common.utils.ArrayUtils; import org.onetwo.common.utils.Assert; import org.onetwo.common.utils.LangUtils; import org.onetwo.common.utils.Page; import org.onetwo.common.web.view.HtmlElement; import org.onetwo.common.web.view.ftl.OverrideDirective.OverrideBodyWraper; import org.springframework.web.servlet.support.RequestContext; import freemarker.core.Environment; import freemarker.ext.beans.BeanModel; import freemarker.ext.beans.SimpleMapModel; import freemarker.ext.beans.StringModel; import freemarker.ext.servlet.HttpRequestHashModel; import freemarker.template.TemplateDirectiveBody; import freemarker.template.TemplateModel; @SuppressWarnings({"unchecked", "rawtypes"}) public class DirectivesUtils { public static final String ENCODING = "UTF-8"; public static final String REQUEST_CONTEX = "request"; public static final String REQUEST = "Request"; public static final String OVERRIDE_BODY = "__FTL_EXTENDS_OVERRIDE_BODY__"; // public static final String ALREADY_RENDER_BODY = "__FTL_EXTENDS_ALREADY_RENDER_BODY__"; // public static final String CUURENT_OVERRIDE_BODY = "__FTL_EXTENDS_CUURENT_OVERRIDE_BODY__"; // private static final Logger logger = MyLoggerFactory.getLogger(DirectivesUtils.class); private DirectivesUtils(){ } public static Page<?> toPage(Object dsValue){ Page page = null; if(dsValue==null){ page = Page.create(); }else if (dsValue instanceof Page) { page = (Page) dsValue; }else { List list = null; if(SimpleMapModel.class.isInstance(dsValue)){ Map dataMap = (Map)((SimpleMapModel) dsValue).getWrappedObject(); list = new ArrayList(); for(Entry entry : (Set<Entry>)dataMap.entrySet()){ // list.add(KVEntry.create(entry)); list.add(DirectivesUtils.wrapAsBeanModel(entry)); } }else{ list = LangUtils.asList(dsValue); } if (list == null) list = Collections.EMPTY_LIST; page = new Page(); page.setResult(list); page.setTotalCount(list.size()); page.setPageSize(list.size()); } return page; } public static void render(String tag, Environment env, TemplateDirectiveBody body){ FtlUtils.render(tag, env, body); } public static TemplateModel getVariable(Environment env, String name, boolean throwIfError){ return FtlUtils.getVariable(env, name, throwIfError); } public static TemplateModel getRequiredVariable(Environment env, String name){ return getRequiredVariable(env, name, null); } public static RequestContext getRequestContext(Environment env){ StringModel val = (StringModel) getVariable(env, REQUEST_CONTEX, true); return (RequestContext)val.getWrappedObject(); } public static HttpServletRequest getRequest(Environment env){ HttpRequestHashModel req = (HttpRequestHashModel) getVariable(env, REQUEST, true); return req.getRequest(); } public static void setParamsTo(Map params, Object obj){ Assert.notNull(obj); PropertyDescriptor[] pds = ReflectUtils.desribProperties(obj.getClass()); for(PropertyDescriptor pd : pds){ Object val = params.get(pd.getName()); if(val!=null){ ReflectUtils.invokeMethod(pd.getWriteMethod(), obj); } } } public static TemplateModel getRequiredVariable(Environment env, String name, String msg){ TemplateModel model = getVariable(env, name, true); if(model==null){ if(StringUtils.isBlank(msg)){ throw new BaseException("the variable["+name+"] can not be null!"); } } return model; } public static String getOverrideBodyName(String name){ Assert.hasText(name); return OVERRIDE_BODY + name; } public static OverrideBodyWraper getOverrideBody(Environment env, String name){ return (OverrideBodyWraper)getVariable(env, getOverrideBodyName(name), false); } public static void setOverrideBody(Environment env, String name, OverrideBodyWraper body){ env.setVariable(getOverrideBodyName(name), body); } public static void setVariable(Environment env, String name, Object val){ FtlUtils.setVariable(env, name, val); } public static BeanModel wrapAsBeanModel(Object obj){ return FtlUtils.wrapAsBeanModel(obj); } public static void setVariable(Environment env, String name, TemplateModel val){ FtlUtils.setVariable(env, name, val); } public static void setObjectVariable(Environment env, String name, Object val){ FtlUtils.setObjectVariable(env, name, val); } public static Object getObjectVariable(Environment env, String name){ return FtlUtils.getObjectVariable(env, name); } public static String getRequiredParameterByString(Map params, String name){ return FtlUtils.getRequiredParameterByString(params, name); } public static String getParameterByString(Map params, String name, String def){ return FtlUtils.getParameterByString(params, name, def); } public static boolean getParameterByBoolean(Map params, String name, boolean def){ return FtlUtils.getParameterByBoolean(params, name, def); } public static int getParameterByInt(Map params, String name, int def){ return FtlUtils.getParameterByInt(params, name, def); } public static TemplateModel getRequiredParameter(Map params, String name){ return getParameter(params, name, true); } public static String getParameter(Map params, String name, String defVal){ return FtlUtils.getParameter(params, name, defVal); } public static <T> T getParameter(Map params, String name, boolean throwIfNotExist){ return FtlUtils.getParameter(params, name, throwIfNotExist); } public static void setParamsToHtmlElement(Map params, HtmlElement html, String...excludeFields){ String prop = ""; String def = null; if(!ArrayUtils.contains(excludeFields, "name")){ prop = DirectivesUtils.getParameterByString(params, "name", def); if(StringUtils.isNotBlank(prop)) html.setName(prop); } if(!ArrayUtils.contains(excludeFields, "id")){ prop = DirectivesUtils.getParameterByString(params, "id", def); if(StringUtils.isNotBlank(prop)) html.setId(prop); } if(!ArrayUtils.contains(excludeFields, "title")){ prop = DirectivesUtils.getParameterByString(params, "title", def); if(StringUtils.isNotBlank(prop)) html.setTitle(prop); } if(!ArrayUtils.contains(excludeFields, "cssStyle")){ prop = DirectivesUtils.getParameterByString(params, "cssStyle", def); if(StringUtils.isNotBlank(prop)) html.setCssStyle(prop); } if(!ArrayUtils.contains(excludeFields, "cssClass")){ prop = DirectivesUtils.getParameterByString(params, "cssClass", def); if(StringUtils.isNotBlank(prop)) html.setCssClass(prop); } if(!ArrayUtils.contains(excludeFields, "onclick")){ prop = DirectivesUtils.getParameterByString(params, "onclick", def); if(StringUtils.isNotBlank(prop)) html.setOnclick(prop); } if(!ArrayUtils.contains(excludeFields, "label")){ prop = DirectivesUtils.getParameterByString(params, "label", def); if(StringUtils.isNotBlank(prop)) html.setLabel(prop); } /*if(!ArrayUtils.contains(excludeFields, "attributes")){ prop = DirectivesUtils.getParameterByString(params, "attributes", def); if(StringUtils.isNotBlank(prop)) html.setAttributes(prop); }*/ } }
[ "weishao.zeng@gmail.com" ]
weishao.zeng@gmail.com
0a651968a01b58b0ac7cfdca4afcc90a471a91f5
99f3951bd06f70769cfd4c9b48f902eadd60679c
/javashop-consumer/src/main/java/com/enation/app/core/receiver/GoodsReasonReceiver.java
d453c4f8065df94e55b7e78e2a62385c512d008b
[]
no_license
chenzijin6/java-shop
de8e47c8616386421098d7819ba6e3947cb219f2
e21c6cd3c7ec3e90a3a6fcddcd78847f926931e0
refs/heads/master
2020-12-02T00:40:24.875439
2018-01-25T22:33:37
2018-01-25T22:33:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,017
java
package com.enation.app.core.receiver; import java.util.List; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.enation.app.core.event.IGoodsReasonEvent; import com.enation.framework.jms.support.goods.GoodsReasonMsg; /** * * 商品附带原因变化消费者 * * @author yanlin * @version v1.0 * @since v6.4.0 * @date 2017年10月20日 下午2:09:12 */ @Component public class GoodsReasonReceiver { protected final Logger logger = Logger.getLogger(getClass()); @Autowired(required = false) private List<IGoodsReasonEvent> events; /** * 商品变化 * * @param goodsReasonMsg */ public void goodsReason(GoodsReasonMsg goodsReasonMsg) { try { if (events != null) { for (IGoodsReasonEvent event : events) { event.goodsReason(goodsReasonMsg); } } } catch (Exception e) { this.logger.error("处理商品变化消息出错", e); e.printStackTrace(); } } }
[ "king0ver@yeah.net" ]
king0ver@yeah.net
928ecb2a965f02d390a4c49642fc738eb7efd9e8
b0a70e691bf838258ec4a62e8a2668a378165248
/apiClient/src/main/java/io/swagger/client/model/TwoFactorCodeModel.java
fe8782630a38d55de0df6978d301c68a202df3b2
[]
no_license
LinuXperia/android-client
e5d676986db5e1e33caa759ec9e32d712a417d37
4bfe11edc317a39ba06473183cfe3a293d1574a1
refs/heads/master
2023-04-01T02:17:01.503842
2020-09-22T09:48:44
2020-09-22T09:48:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,582
java
/* * Core API v2.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: v2.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package io.swagger.client.model; import android.os.Parcel; import android.os.Parcelable; import com.google.gson.annotations.SerializedName; import java.util.Objects; import io.swagger.v3.oas.annotations.media.Schema; /** * TwoFactorCodeModel */ public class TwoFactorCodeModel implements Parcelable { public static final Parcelable.Creator<TwoFactorCodeModel> CREATOR = new Parcelable.Creator<TwoFactorCodeModel>() { public TwoFactorCodeModel createFromParcel(Parcel in) { return new TwoFactorCodeModel(in); } public TwoFactorCodeModel[] newArray(int size) { return new TwoFactorCodeModel[size]; } }; @SerializedName("twoFactorCode") private String twoFactorCode = null; public TwoFactorCodeModel() { } TwoFactorCodeModel(Parcel in) { twoFactorCode = (String) in.readValue(null); } public TwoFactorCodeModel twoFactorCode(String twoFactorCode) { this.twoFactorCode = twoFactorCode; return this; } /** * Get twoFactorCode * * @return twoFactorCode **/ @Schema(description = "") public String getTwoFactorCode() { return twoFactorCode; } public void setTwoFactorCode(String twoFactorCode) { this.twoFactorCode = twoFactorCode; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } TwoFactorCodeModel twoFactorCodeModel = (TwoFactorCodeModel) o; return Objects.equals(this.twoFactorCode, twoFactorCodeModel.twoFactorCode); } @Override public int hashCode() { return Objects.hash(twoFactorCode); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TwoFactorCodeModel {\n"); sb.append(" twoFactorCode: ").append(toIndentedString(twoFactorCode)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } public void writeToParcel(Parcel out, int flags) { out.writeValue(twoFactorCode); } public int describeContents() { return 0; } }
[ "dev.prus@gmail.com" ]
dev.prus@gmail.com
11660d2d06056fd913a341b03b77a279b88e7dff
f3a620da1778ae4b9654433bec65841a95ff5067
/src/core/lombok/eclipse/handlers/HandleValue.java
6093864979837fa7360aa1a7b5ec4dfce791d630
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
niclash/lombok
7180dc799f7ebd8e6ba0d0005066a1115b214ce3
e1c39bbc601408decb0ae147d181708a5af41307
refs/heads/master
2021-01-18T22:27:26.747011
2013-06-18T02:23:15
2013-06-18T02:23:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,068
java
/* * Copyright (C) 2012-2013 The Project Lombok Authors. * * 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 lombok.eclipse.handlers; import static lombok.eclipse.handlers.EclipseHandlerUtil.*; import java.util.Collections; import lombok.AccessLevel; import lombok.core.AnnotationValues; import lombok.core.HandlerPriority; import lombok.eclipse.EclipseAnnotationHandler; import lombok.eclipse.EclipseNode; import lombok.eclipse.handlers.HandleConstructor.SkipIfConstructorExists; import lombok.experimental.NonFinal; import lombok.experimental.Value; import org.eclipse.jdt.internal.compiler.ast.Annotation; import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration; import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; import org.mangosdk.spi.ProviderFor; /** * Handles the {@code lombok.Value} annotation for eclipse. */ @ProviderFor(EclipseAnnotationHandler.class) @HandlerPriority(-512) //-2^9; to ensure @EqualsAndHashCode and such pick up on this handler making the class final and messing with the fields' access levels, run earlier. public class HandleValue extends EclipseAnnotationHandler<Value> { public void handle(AnnotationValues<Value> annotation, Annotation ast, EclipseNode annotationNode) { Value ann = annotation.getInstance(); EclipseNode typeNode = annotationNode.up(); TypeDeclaration typeDecl = null; if (typeNode.get() instanceof TypeDeclaration) typeDecl = (TypeDeclaration) typeNode.get(); int modifiers = typeDecl == null ? 0 : typeDecl.modifiers; boolean notAClass = (modifiers & (ClassFileConstants.AccInterface | ClassFileConstants.AccAnnotation | ClassFileConstants.AccEnum)) != 0; if (typeDecl == null || notAClass) { annotationNode.addError("@Value is only supported on a class."); return; } // Make class final. if (!hasAnnotation(NonFinal.class, typeNode)) { if ((typeDecl.modifiers & ClassFileConstants.AccFinal) == 0) { typeDecl.modifiers |= ClassFileConstants.AccFinal; typeNode.rebuild(); } } new HandleFieldDefaults().generateFieldDefaultsForType(typeNode, annotationNode, AccessLevel.PRIVATE, true, true); //Careful: Generate the public static constructor (if there is one) LAST, so that any attempt to //'find callers' on the annotation node will find callers of the constructor, which is by far the //most useful of the many methods built by @Value. This trick won't work for the non-static constructor, //for whatever reason, though you can find callers of that one by focusing on the class name itself //and hitting 'find callers'. new HandleGetter().generateGetterForType(typeNode, annotationNode, AccessLevel.PUBLIC, true); new HandleEqualsAndHashCode().generateEqualsAndHashCodeForType(typeNode, annotationNode); new HandleToString().generateToStringForType(typeNode, annotationNode); new HandleConstructor().generateAllArgsConstructor(typeNode, AccessLevel.PUBLIC, ann.staticConstructor(), SkipIfConstructorExists.YES, Collections.<Annotation>emptyList(), ast); } }
[ "reinier@zwitserloot.com" ]
reinier@zwitserloot.com
e8d8aedd4743fdeaea6fcf651c95648b7f5e1a57
edc01f9ab10e4a660d2fa8ba29ecc8bd7e2c2f5f
/app/src/main/java/com/fl/test/utils/regUtils/RegUtils.java
19ed602233593ba426f9ed6fa4debad12c8d8704
[]
no_license
jianyufeng/Test
e87a8b97d641df4400a63d2e7ee66638056c006a
2088cdd709d9eb74e12c1d468044241ded2016a1
refs/heads/master
2021-01-22T00:09:30.282637
2017-09-02T09:09:05
2017-09-02T09:09:05
102,185,328
0
0
null
null
null
null
UTF-8
Java
false
false
4,464
java
package com.fl.test.utils.regUtils; import android.text.TextUtils; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Created by Administrator on 2016/4/1. */ public class RegUtils { /** * Don't let anyone instantiate this class. */ private RegUtils() { throw new Error("Do not need instantiate!"); } /** * 邮箱检测 * * @param email 可能是Email的字符串 * @return 是否是Email */ public static boolean isEmail(String email) { Pattern pattern = Pattern .compile("^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$"); Matcher matcher = pattern.matcher(email); return matcher.matches(); } /** * 非空验证 * * @param data 源字符串 * @return 是否为空 */ public static boolean isEmpoty(String data) { return TextUtils.isEmpty(data); } /** * 邮箱验证 * * @param data 可能是Email的字符串 * @return 是否是Email */ public static boolean isEmail2(String data) { String expr = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$"; return data.matches(expr); } /** * 移动手机号码验证 * * @param data 可能是手机号码字符串 * @return 是否是手机号码 */ public static boolean isMobileNumber(String data) { String expr = "^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$"; return data.matches(expr); } /** * 只含字母和数字 * * @param data 可能只包含字母和数字的字符串 * @return 是否只包含字母和数字 */ public static boolean isNumberLetter(String data) { String expr = "^[A-Za-z0-9]+$"; return data.matches(expr); } /** * 只含数字 * * @param data 可能只包含数字的字符串 * @return 是否只包含数字 */ public static boolean isNumber(String data) { String expr = "^[0-9]+$"; return data.matches(expr); } /** * 只含字母 * * @param data 可能只包含字母的字符串 * @return 是否只包含字母 */ public static boolean isLetter(String data) { String expr = "^[A-Za-z]+$"; return data.matches(expr); } /** * 只是中文 * * @param data 可能是中文的字符串 * @return 是否只是中文 */ public static boolean isChinese(String data) { String expr = "^[\u0391-\uFFE5]+$"; return data.matches(expr); } /** * 包含中文 * * @param data 可能包含中文的字符串 * @return 是否包含中文 */ public static boolean isContainChinese(String data) { String chinese = "[\u0391-\uFFE5]"; if (!isEmpoty(data)) { for (int i = 0; i < data.length(); i++) { String temp = data.substring(i, i + 1); boolean flag = temp.matches(chinese); if (flag) { return true; } } } return false; } /** * 小数点位数 * @param data 可能包含小数点的字符串 * @param length 小数点后的长度 * @return 是否小数点后有length位数字 */ public static boolean isDianWeiShu(String data, int length) { String expr = "^[1-9][0-9]+\\.[0-9]{" + length + "}$"; return data.matches(expr); } /** * 身份证号码验证 * * @param data 可能是身份证号码的字符串 * @return 是否是身份证号码 */ public static boolean isCard(String data) { String expr = "^[0-9]{17}[0-9xX]$"; return data.matches(expr); } /** * 邮政编码验证 * * @param data 可能包含邮政编码的字符串 * @return 是否是邮政编码 */ public static boolean isPostCode(String data) { String expr = "^[0-9]{6,10}"; return data.matches(expr); } /** * 长度验证 * * @param data 源字符串 * @param length 期望长度 * @return 是否是期望长度 */ public static boolean isLength(String data, int length) { return data != null && data.length() == length; } }
[ "907507643@qq.com" ]
907507643@qq.com
38ddb66a1a34dbf16f81aa5c0f97ea7ee57e6ee4
5d6c374a2518d469d674a1327d21d8e0cf2b54f7
/modules/ogc/net.opengis.ows/src/net/opengis/ows11/validation/WGS84BoundingBoxTypeValidator.java
68a455dbcb1424d51e54ca60cadccf8547e2a23e
[]
no_license
HGitMaster/geotools-osgi
648ebd9343db99a1e2688d9aefad857f6521898d
09f6e327fb797c7e0451e3629794a3db2c55c32b
refs/heads/osgi
2021-01-19T08:33:56.014532
2014-03-19T18:04:03
2014-03-19T18:04:03
4,750,321
3
0
null
2014-03-19T13:50:54
2012-06-22T11:21:01
Java
UTF-8
Java
false
false
647
java
/** * <copyright> * </copyright> * * $Id: WGS84BoundingBoxTypeValidator.java 29859 2008-04-09 04:42:44Z jdeolive $ */ package net.opengis.ows11.validation; /** * A sample validator interface for {@link net.opengis.ows11.WGS84BoundingBoxType}. * This doesn't really do anything, and it's not a real EMF artifact. * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. */ public interface WGS84BoundingBoxTypeValidator { boolean validate(); }
[ "devnull@localhost" ]
devnull@localhost
c7a422f52a9823883b8e738d2c1f435d4cef7ebd
c2d782fc19a27ce8b6c2f5a924d6f3c66f85e013
/Theory_Questions/Theory_questions/DiscussionOnSortingTechniqueAndHashmap.java
24b19b2fa4a48c63c4ca5331b20a7f8dbdf3c6c4
[]
no_license
ravicode/github
5fe94e553e2a6c953bde484ee4458a35602820bc
9e97a9655212456bd1149229a8d6b0a38c4f3f3a
refs/heads/master
2021-01-01T04:40:16.943559
2016-04-23T20:20:01
2016-04-23T20:20:01
56,939,062
0
1
null
null
null
null
UTF-8
Java
false
false
350
java
package Theory_questions; /*Discussion on different types of sorting techniques. Difference between merge sort and quick sort. When and where are they used. Discussion on counting sort. 3. Discussion on hash-map. Design a data structure which will provide the same function as hash-map. */ public class DiscussionOnSortingTechniqueAndHashmap { }
[ "ravi.ters@gmail.com" ]
ravi.ters@gmail.com
b4ca11866820299666c7ea2fb04ba26313bb13f4
159e86d3281e83b436fba01456ec19db1b14da48
/src/main/java/org/lastaflute/web/exception/ExecuteMethodIllegalDefinitionException.java
b6beb4ba1d885d61399220edd2ae53a2e92f1d21
[ "Apache-2.0" ]
permissive
nabedge/lastaflute
7230c985ee53d4ab378814b3fef5f317b08fa37c
d9d892d26912029d2dc21725445af602b9fff7a7
refs/heads/master
2021-01-14T11:23:24.506932
2015-11-08T14:57:55
2015-11-08T14:57:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,063
java
/* * Copyright 2014-2015 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.lastaflute.web.exception; /** * @author modified by jflute (originated in Seasar) */ public class ExecuteMethodIllegalDefinitionException extends RuntimeException { private static final long serialVersionUID = 1L; public ExecuteMethodIllegalDefinitionException(String msg) { super(msg); } public ExecuteMethodIllegalDefinitionException(String msg, Throwable cause) { super(msg, cause); } }
[ "dbflute@gmail.com" ]
dbflute@gmail.com
c11cd5e3eb69772404a3ebb32d8025f05ebb3d39
53a4b190dde859d5a26fbba9facfa4a851a8380b
/src/main/java/ru/gorbach/hw17/city/search/CityOrderByField.java
8afaeac678f3d7ce1cb42ba363fee74ec8238803
[]
no_license
gorbach-d-v/EpamCourse
d73beca26473abc16f7317f6a5dcf3af443017a9
1a684682ce25aea2f31456fb4fdcdc24710d9102
refs/heads/master
2020-04-24T19:48:09.162768
2019-04-15T12:19:45
2019-04-15T12:19:45
172,223,682
0
0
null
null
null
null
UTF-8
Java
false
false
348
java
package ru.gorbach.hw17.city.search; public enum CityOrderByField { NAME("cityName"), POPULATION("cityPopulation"); CityOrderByField(String requestParamName) { this.requestParamName = requestParamName; } private String requestParamName; public String getRequestParamName() { return requestParamName; } }
[ "gorbach.d.v@yandex.ru" ]
gorbach.d.v@yandex.ru
4ac9261af275cc56a62e9a7e9db827d1a6be3396
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/imarketing-20220704/src/main/java/com/aliyun/imarketing20220704/models/ConfirmSampleShippedResponse.java
7ba116d5f9b869e7296a309e19a19966a0b5981d
[ "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,424
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.imarketing20220704.models; import com.aliyun.tea.*; public class ConfirmSampleShippedResponse 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 ConfirmSampleShippedResponseBody body; public static ConfirmSampleShippedResponse build(java.util.Map<String, ?> map) throws Exception { ConfirmSampleShippedResponse self = new ConfirmSampleShippedResponse(); return TeaModel.build(map, self); } public ConfirmSampleShippedResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public ConfirmSampleShippedResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public ConfirmSampleShippedResponse setBody(ConfirmSampleShippedResponseBody body) { this.body = body; return this; } public ConfirmSampleShippedResponseBody getBody() { return this.body; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
533b33fa57390c37f2b89a8eb6b71dd8e076afee
e1ab5b1554905891f20502010565e8e2fed6a6ad
/pitwin-ejb/src/main/java/tn/esprit/transport/PlanningServiceRemote.java
d1be0f81a204675e8eccbf20c8eff182bd94d3c6
[]
no_license
moetaz-benabdallah/Transport-community-platform
d1147f8acc66656e76283504bd3418ca4c35fd61
9dbfced78bf3c9edfeeb2d6369772233c50b5c63
refs/heads/master
2020-12-24T08:48:18.426160
2016-11-09T19:59:15
2016-11-09T19:59:15
73,316,690
0
0
null
null
null
null
UTF-8
Java
false
false
217
java
package tn.esprit.transport; import java.util.List; import javax.ejb.Remote; import tn.esprit.persistance.Planning; @Remote public interface PlanningServiceRemote { }
[ "root@localhost.localdomain" ]
root@localhost.localdomain
5f1b16ddd7e32e514cb1e444e8a59a026799aed5
4a907890f759ca4850cb7b13b76e4f37bada475f
/AL-Game/data/scripts/system/handlers/admincommands/Agent.java
a40dac89adec285752d34bf8c97815bad264c8c0
[]
no_license
determinated/Aion-Project-5.1
dfcbe74f5f3aa1638f27a87c804dc89825b7f63f
14e7fccf3b970c31fa8ea5d4fe4c13f62e5442bd
refs/heads/master
2020-07-06T12:48:39.532969
2019-02-25T02:40:53
2019-02-25T02:40:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,433
java
package admincommands; import com.aionemu.gameserver.model.gameobjects.player.Player; import com.aionemu.gameserver.services.AgentService; import com.aionemu.gameserver.utils.PacketSendUtility; import com.aionemu.gameserver.utils.chathandlers.AdminCommand; import com.aionemu.gameserver.network.aion.serverpackets.*; import com.aionemu.gameserver.world.World; import com.aionemu.gameserver.world.knownlist.Visitor; import org.apache.commons.lang.math.NumberUtils; public class Agent extends AdminCommand { private static final String COMMAND_START = "start"; private static final String COMMAND_STOP = "stop"; private static final String COMMAND_DRAW = "draw"; public Agent() { super("agent"); } @Override public void execute(Player player, String... params) { if (params.length == 0) { showHelp(player); return; } if (COMMAND_STOP.equalsIgnoreCase(params[0]) || COMMAND_DRAW.equalsIgnoreCase(params[0]) || COMMAND_START.equalsIgnoreCase(params[0])) { handleStartStopFight(player, params); } } protected void handleStartStopFight(Player player, String... params) { if (params.length != 2 || !NumberUtils.isDigits(params[1])) { showHelp(player); return; } int agentId = NumberUtils.toInt(params[1]); if (!isValidAgentLocationId(player, agentId)) { showHelp(player); return; } if (COMMAND_START.equalsIgnoreCase(params[0])) { if (AgentService.getInstance().isFightInProgress(agentId)) { PacketSendUtility.sendMessage(player, "<Agent Fight> " + agentId + " is already start"); } else { PacketSendUtility.sendMessage(player, "<Agent Fight> " + agentId + " started!"); World.getInstance().doOnAllPlayers(new Visitor<Player>() { @Override public void visit(Player player) { PacketSendUtility.sendPacket(player, SM_SYSTEM_MESSAGE.STR_MSG_LDF4_Advance_GodElite); } }); AgentService.getInstance().startAgentFight(agentId); } } else if (COMMAND_STOP.equalsIgnoreCase(params[0])) { if (!AgentService.getInstance().isFightInProgress(agentId)) { PacketSendUtility.sendMessage(player, "<Agent Fight> " + agentId + " is not start!"); } else { PacketSendUtility.sendMessage(player, "<Agent Fight> " + agentId + " stopped!"); AgentService.getInstance().stopAgentFight(agentId); AgentService.getInstance().onRewardDraw(); } } else if (COMMAND_DRAW.equalsIgnoreCase(params[0])) { if (!AgentService.getInstance().isFightInProgress(agentId)) { PacketSendUtility.sendMessage(player, "<Agent Fight> " + agentId + " is not start!"); } else { PacketSendUtility.sendMessage(player, "<Agent Fight> " + agentId + " stopped!"); World.getInstance().doOnAllPlayers(new Visitor<Player>() { @Override public void visit(Player player) { PacketSendUtility.sendBrightYellowMessageOnCenter(player, "<Agent Fight> Draw, You Have Acquired Reward. Check Your inventory."); } }); AgentService.getInstance().onRewardDraw(); AgentService.getInstance().stopAgentFight(agentId); } } } protected boolean isValidAgentLocationId(Player player, int agentId) { if (!AgentService.getInstance().getAgentLocations().keySet().contains(agentId)) { PacketSendUtility.sendMessage(player, "Id " + agentId + " is invalid"); return false; } return true; } protected void showHelp(Player player) { PacketSendUtility.sendMessage(player, "AdminCommand //agent start|stop <Id>"); } }
[ "naxdevil@gmail.com" ]
naxdevil@gmail.com
90ce62533f87a3dd7c3856d0d73a6760f18dec93
f28d1b8398af9ac3889173b72153946f9baf8e6e
/mafs-core-data/src/main/java/com/mikealbert/data/dao/VrbDiscountDAO.java
ff536ef052bbe18a4fcd628a22d9f446bbdbd7d7
[]
no_license
rajnishkg/Java_study
ab76f81bd2ce5e33b7e3056c1821cb0d543881ee
1f5b88fa0bafb5f30f035c7f1d024edbef90f0e4
refs/heads/master
2021-10-08T22:33:34.195637
2018-12-18T14:17:31
2018-12-18T14:17:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
849
java
package com.mikealbert.data.dao; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import com.mikealbert.data.entity.VrbDiscount; public interface VrbDiscountDAO extends VrbDiscountDAOCustom, JpaRepository<VrbDiscount, Long>{ @Query("from VrbDiscount where eaAccountCode = ?1 and mdlMdlId = ?2") public List<VrbDiscount> findByAccountCodeAndModel(String accountCode, Long modelId); @Query("SELECT vrb FROM VrbDiscount vrb WHERE vrb.eaAccountCode = ?1 and vrb.mrgMrgId = ?2") public List<VrbDiscount> findByAccountCodeAndModelRange(String accountCode, Long mrgId); @Query("SELECT vrb FROM VrbDiscount vrb WHERE vrb.eaAccountCode = ?1 and vrb.makMakId = ?2") public List<VrbDiscount> findByAccountCodeAndMake(String accountCode, Long makId); }
[ "amritrajsingh13@gmail.com" ]
amritrajsingh13@gmail.com
d3c6e1428c259a795375c4a9342abd43b3ba7106
6e0fe0c6b38e4647172259d6c65c2e2c829cdbc5
/modules/base/lang-impl/src/main/java/com/intellij/ide/ui/newItemPopup/NewItemWithTemplatesPopupPanel.java
129b953229ff41eb87033090c685f476f77a8e61
[ "Apache-2.0", "LicenseRef-scancode-jgraph" ]
permissive
TCROC/consulo
3f9a6df84e0fbf2b6211457b8a5f5857303b3fa6
cda24a03912102f916dc06ffce052892a83dd5a7
refs/heads/master
2023-01-30T13:19:04.216407
2020-12-06T16:57:00
2020-12-06T16:57:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,224
java
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.ide.ui.newItemPopup; import com.intellij.ui.ScrollingUtil; import com.intellij.ui.components.JBList; import com.intellij.ui.components.JBScrollPane; import com.intellij.ui.scale.JBUIScale; import com.intellij.util.ui.JBUI; import consulo.awt.TargetAWT; import javax.annotation.Nonnull; import javax.swing.*; import javax.swing.border.Border; import java.awt.*; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util.ArrayList; import java.util.Collection; import java.util.List; public class NewItemWithTemplatesPopupPanel<T> extends NewItemSimplePopupPanel { protected final JList<T> myTemplatesList; private final MyListModel myTemplatesListModel; private final Box templatesListHolder; private final Collection<TemplatesListVisibilityListener> myVisibilityListeners = new ArrayList<>(); public NewItemWithTemplatesPopupPanel(List<T> templatesList, ListCellRenderer<T> renderer) { setBackground(JBUI.CurrentTheme.NewClassDialog.panelBackground()); myTemplatesListModel = new MyListModel(templatesList); myTemplatesList = createTemplatesList(myTemplatesListModel, renderer); ScrollingUtil.installMoveUpAction(myTemplatesList, (JComponent)TargetAWT.to(myTextField)); ScrollingUtil.installMoveDownAction(myTemplatesList, (JComponent)TargetAWT.to(myTextField)); JBScrollPane scrollPane = new JBScrollPane(myTemplatesList); scrollPane.setBorder(JBUI.Borders.empty()); scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); templatesListHolder = new Box(BoxLayout.Y_AXIS); Border border = JBUI.Borders .merge(JBUI.Borders.emptyTop(JBUI.CurrentTheme.NewClassDialog.fieldsSeparatorWidth()), JBUI.Borders.customLine(JBUI.CurrentTheme.NewClassDialog.bordersColor(), 1, 0, 0, 0), true); templatesListHolder.setBorder(border); templatesListHolder.add(scrollPane); add(templatesListHolder, BorderLayout.CENTER); } public void addTemplatesVisibilityListener(TemplatesListVisibilityListener listener) { myVisibilityListeners.add(listener); } public void removeTemplatesVisibilityListener(TemplatesListVisibilityListener listener) { myVisibilityListeners.remove(listener); } protected void setTemplatesListVisible(boolean visible) { if (templatesListHolder.isVisible() != visible) { templatesListHolder.setVisible(visible); myVisibilityListeners.forEach(l -> l.visibilityChanged(visible)); } } protected void updateTemplatesList(List<T> templatesList) { myTemplatesListModel.update(templatesList); } @Nonnull private JBList<T> createTemplatesList(@Nonnull ListModel<T> model, ListCellRenderer<T> renderer) { JBList<T> list = new JBList<>(model); MouseAdapter mouseListener = new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { if (myApplyAction != null && e.getClickCount() > 1) myApplyAction.consume(e); } }; list.addMouseListener(mouseListener); list.setCellRenderer(renderer); list.setFocusable(false); list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); Border border = JBUI.Borders.merge(JBUI.Borders.emptyLeft(JBUIScale.scale(5)), JBUI.Borders.customLine(JBUI.CurrentTheme.NewClassDialog.bordersColor(), 1, 0, 0, 0), true); list.setBorder(border); return list; } protected class MyListModel extends AbstractListModel<T> { private final List<T> myItems = new ArrayList<>(); private MyListModel(List<T> items) { myItems.addAll(items); } public void update(List<T> newItems) { if (!myItems.isEmpty()) { int end = myItems.size() - 1; myItems.clear(); fireIntervalRemoved(this, 0, end); } if (!newItems.isEmpty()) { myItems.addAll(newItems); fireIntervalAdded(this, 0, myItems.size() - 1); } } @Override public int getSize() { return myItems.size(); } @Override public T getElementAt(int index) { return myItems.get(index); } } }
[ "vistall.valeriy@gmail.com" ]
vistall.valeriy@gmail.com
1122ecc7eaf4254e22875a3546cee73336a7d31e
e42c98daf48cb6b70e3dbd5f5af3517d901a06ab
/modules/uctool-manager/src/main/java/com/cisco/axl/api/_10/UpdateAarGroupReq.java
274a5e75fbe04abfa8725df874a1975889137fdf
[]
no_license
mgnext/UCTOOL
c238d8f295e689a8babcc1156eb0b487cba31da0
5e7aeb422a33b3cf33fca0231616ac0416d02f1a
refs/heads/master
2020-06-03T04:07:57.650216
2015-08-07T10:44:04
2015-08-07T10:44:04
39,693,900
2
1
null
null
null
null
UTF-8
Java
false
false
1,404
java
package com.cisco.axl.api._10; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for UpdateAarGroupReq complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="UpdateAarGroupReq"> * &lt;complexContent> * &lt;extension base="{http://www.cisco.com/AXL/API/10.5}NameAndGUIDRequest"> * &lt;sequence> * &lt;element name="newName" type="{http://www.cisco.com/AXL/API/10.5}String32" minOccurs="0"/> * &lt;/sequence> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "UpdateAarGroupReq", propOrder = { "newName" }) public class UpdateAarGroupReq extends NameAndGUIDRequest { protected String newName; /** * Gets the value of the newName property. * * @return * possible object is * {@link String } * */ public String getNewName() { return newName; } /** * Sets the value of the newName property. * * @param value * allowed object is * {@link String } * */ public void setNewName(String value) { this.newName = value; } }
[ "agentmilindu@gmail.com" ]
agentmilindu@gmail.com
85bb5af9436ee63e79cd832345972b4aa117a43f
717e062e3b2f7cccba034cf4b94be6aa326adee1
/admin/src/main/java/com/ccb/dianping/dal/ShopMapper.java
13bfca8bc6ac091753e5f8e378564958bc3e8fe4
[]
no_license
2568808909/dianping
009cecd17c485037636d2f83eeed2e82e2c3d831
c545f8c2053be4e4464027ac820ade733f4725ca
refs/heads/master
2022-07-23T21:55:01.483565
2020-01-27T13:08:26
2020-01-27T13:08:26
235,999,748
0
0
null
2022-06-21T02:41:41
2020-01-24T12:34:26
Java
UTF-8
Java
false
false
1,762
java
package com.ccb.dianping.dal; import com.ccb.dianping.model.bean.Shop; import org.apache.ibatis.annotations.Select; import java.util.List; public interface ShopMapper { /** * This method was generated by MyBatis Generator. * This method corresponds to the database table shop * * @mbg.generated Mon Jan 27 11:47:50 CST 2020 */ int deleteByPrimaryKey(Integer id); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table shop * * @mbg.generated Mon Jan 27 11:47:50 CST 2020 */ int insert(Shop record); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table shop * * @mbg.generated Mon Jan 27 11:47:50 CST 2020 */ int insertSelective(Shop record); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table shop * * @mbg.generated Mon Jan 27 11:47:50 CST 2020 */ Shop selectByPrimaryKey(Integer id); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table shop * * @mbg.generated Mon Jan 27 11:47:50 CST 2020 */ int updateByPrimaryKeySelective(Shop record); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table shop * * @mbg.generated Mon Jan 27 11:47:50 CST 2020 */ int updateByPrimaryKey(Shop record); @Select("select count(*) from dianping_db.`shop`") Long shopCount(); @Select("select * from dianping_db.`shop` limit #{pageStart},#{pageSize}") List<Shop> selectPage(Integer pageStart, Integer pageSize); }
[ "2568808909@qq.com" ]
2568808909@qq.com
d7630e66a3c68300d09a071ac6600fff3d12e54b
32c9d0e8cca8ac21800e0d71fabcef6266101057
/WindSingle_ENS/src/com/zt/thread/THD_SYS.java
ff9729b907a1fc0f60ba0ff2cc0794f4cc0abfe3
[]
no_license
NoelZhou/myjavasoftwave
b5f2b7aabcd55302cfce6150ee5e2dcfa9978c73
904d7f265d0ca93fd52112169742b526385d8f2a
refs/heads/master
2021-07-20T09:53:38.701675
2017-10-31T06:16:08
2017-10-31T06:16:08
108,952,712
0
0
null
null
null
null
UTF-8
Java
false
false
972
java
package com.zt.thread; import com.zt.panel.SystemMessagePanel; import com.zt.pojo.SaveMessage; public class THD_SYS extends Thread { private boolean _run = true; private SaveMessage sMessage; private SystemMessagePanel sMessagePanel; public THD_SYS() { this.sMessage = SaveMessage.getInstance(); } public void stopThread(){ this._run = !_run; } @Override public void run() { while (_run) { try { sleep(1000); String strValue =sMessage.getStrValue(); sMessagePanel.sendSystemMessageParams(sMessage.getSystemMessage(),strValue); sMessagePanel.sendSystemImage(strValue); sMessagePanel.sendDebugState(strValue); sMessagePanel.updateUI(); sMessagePanel.validate(); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } public void setSystemPanel(SystemMessagePanel sMessagePanel) { this.sMessagePanel = sMessagePanel; } }
[ "1137420083@qq.com" ]
1137420083@qq.com
f4a4d4dcc8c6fa2a05a12866fb8b3581ecd1d397
1e109337f4a2de0d7f9a33f11f029552617e7d2e
/libraries/jcatapult-crud/tags/1.0-RC13/src/java/test/unit/org/jcatapult/crud/service/DefaultSearchServiceTest.java
1aba02b03f438f389eeb303a8771a985504c5032
[]
no_license
Letractively/jcatapult
54fb8acb193bc251e5984c80eba997793844059f
f903b78ce32cc5468e48cd7fde220185b2deecb6
refs/heads/master
2021-01-10T16:54:58.441959
2011-12-29T00:43:26
2011-12-29T00:43:26
45,956,606
0
0
null
null
null
null
UTF-8
Java
false
false
3,185
java
/* * Copyright (c) 2001-2007, JCatapult.org, 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 org.jcatapult.crud.service; import java.sql.SQLException; import java.util.List; import org.jcatapult.crud.domain.User; import org.jcatapult.persistence.service.PersistenceService; import org.jcatapult.persistence.test.JPABaseTest; import static org.junit.Assert.*; import org.junit.Test; import com.google.inject.Inject; /** * <p> * This class tests the search service impl. * </p> * * @author Brian Pontarelli */ public class DefaultSearchServiceTest extends JPABaseTest { private SearchService searchService; private PersistenceService persistenceService; @Inject public void setServices(SearchService searchService, PersistenceService persistenceService) { this.searchService = searchService; this.persistenceService = persistenceService; } @Test public void testSearchSimple() throws SQLException { clearTable("User"); makeUser("Fred", 42); UserSearchCriteria criteria = new UserSearchCriteria(); List<User> users = searchService.find(criteria); assertEquals(1, users.size()); assertEquals(1, searchService.totalCount(criteria)); } @Test public void testName() throws SQLException { clearTable("User"); makeUser("Fred", 42); makeUser("George", 32); makeUser("Betsy", 29); UserSearchCriteria criteria = new UserSearchCriteria(); criteria.setName("Fred"); List<User> users = searchService.find(criteria); assertEquals(1, users.size()); assertEquals("Fred", users.get(0).getName()); assertEquals(42, (int) users.get(0).getAge()); assertEquals(1, searchService.totalCount(criteria)); } @Test public void testAge() throws SQLException { clearTable("User"); makeUser("Fred", 42); makeUser("George", 32); makeUser("Betsy", 29); UserSearchCriteria criteria = new UserSearchCriteria(); criteria.setAge(40); List<User> users = searchService.find(criteria); assertEquals(2, users.size()); assertEquals("George", users.get(0).getName()); assertEquals(32, (int) users.get(0).getAge()); assertEquals("Betsy", users.get(1).getName()); assertEquals(29, (int) users.get(1).getAge()); assertEquals(2, searchService.totalCount(criteria)); } private void makeUser(String name, Integer age) { User user = new User(); user.setName(name); user.setAge(age); persistenceService.persist(user); } }
[ "bpontarelli@b10e9645-db3f-0410-a6c5-e135923ffca7" ]
bpontarelli@b10e9645-db3f-0410-a6c5-e135923ffca7
ca714b79f4309f1116b9f97af33df37aade33aa7
07e483bda34e91a43cc517933beab1133c7cb59c
/tests/com/reason/lang/ocaml/WhileParsingTest.java
b72664f14f9e395ee9b2a845c92afce7fef545b2
[ "MIT" ]
permissive
samdfonseca/reasonml-idea-plugin
02a95d19ab7b6f3da730423ddebbc3a900615c33
a3cb65f2b60aaeacb307b458d1838dad185458d3
refs/heads/master
2020-12-02T11:05:59.749358
2019-12-20T15:57:12
2019-12-20T15:58:00
230,992,461
0
0
MIT
2019-12-30T23:14:10
2019-12-30T23:14:09
null
UTF-8
Java
false
false
1,361
java
package com.reason.lang.ocaml; import com.reason.lang.BaseParsingTestCase; import com.reason.lang.core.psi.PsiFunction; import com.reason.lang.core.psi.PsiLet; import com.reason.lang.core.psi.PsiWhile; import java.util.Collection; @SuppressWarnings("ConstantConditions") public class WhileParsingTest extends BaseParsingTestCase { public WhileParsingTest() { super("", "ml", new OclParserDefinition()); } // https://github.com/reasonml-editor/reasonml-idea-plugin/issues/176 public void testGH_176() { PsiLet e = first(letExpressions(parseCode("let x = while true do match x with | _ -> () done"))); PsiWhile while_ = (PsiWhile) e.getBinding().getFirstChild(); assertEquals("true", while_.getCondition().getText()); } // https://github.com/reasonml-editor/reasonml-idea-plugin/issues/189 public void testGH_189() { Collection<PsiLet> es = letExpressions(parseCode("let utf8_length s = while !p < len do () done; ()\n" + "let foo x = x")); PsiWhile while_ = (PsiWhile) ((PsiFunction) first(es).getBinding().getFirstChild()).getBody().getFirstChild(); assertEquals("!p < len", while_.getCondition().getText()); assertEquals("()", while_.getBody().getText()); assertSize(2, es); assertEquals("foo", second(es).getName()); } }
[ "giraud.contact@yahoo.fr" ]
giraud.contact@yahoo.fr
20e9d0e31be543d69a7211ad8615074ad9ca7dbb
880482932c510635c1c44ec0e2e56d43d1f4267c
/src/jack/rm/log/LogSource.java
7ee4a7f4b1f8fb712f3caa62829817b86682229e
[ "MIT" ]
permissive
Jakz/rom-manager
8a8ada9d5771f79b249f7a0cce7f3df6dcaf3f75
aba048dac3ee589b9d167f639d6f585a30f4f193
refs/heads/master
2023-08-10T19:37:28.594706
2023-07-21T11:24:50
2023-07-21T11:24:50
38,851,442
8
2
null
null
null
null
UTF-8
Java
false
false
266
java
package jack.rm.log; import com.pixbits.lib.log.LogScope; public enum LogSource implements LogScope { STATUS, DOWNLOADER, ORGANIZER, SCANNER, IMPORTER, PLUGINS, DAT_DOWNLOADER ; public String toString() { return this.name().toLowerCase(); } }
[ "jack@pixbits.com" ]
jack@pixbits.com
5afcac4cdf2c166615f687b9a036c96bb373989d
1701253874455d4091f61c68da63e2a5c545e8cf
/mode1/src/main/java/com/example/mode1/base/BaseFragment.java
36d9e795125f3b98e756a465e3ee24c033047ba4
[]
no_license
xubaoyu11/My1
da7364915b0af39359d86d206a114698bad445b4
27ea6bbd2d61a8e04df3b82de251ad857fe0e2af
refs/heads/master
2021-04-07T13:54:34.674763
2020-03-20T06:10:26
2020-03-20T06:10:26
248,681,388
0
0
null
null
null
null
UTF-8
Java
false
false
998
java
package com.example.mode1.base; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; public abstract class BaseFragment extends Fragment { public View view; @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { int i = initLayoutId(); view = View.inflate(getContext(), i, null); return view; } @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); initView(); initListener(); initData(); } protected abstract int initLayoutId(); protected abstract void initView(); protected abstract void initData(); protected abstract void initListener(); }
[ "you@example.com" ]
you@example.com
b219be61d30c84b34d17c104a6bbc8b9e0a77fe2
8294bbedd27c50a99bae00eccc83a87ac9232875
/app/src/main/java/com/netease/music/domain/request/NewAlbumRequest.java
9087fc16ee1a212156a0c4a2332a1a233249442f
[]
no_license
99kyuu/NeteaseCloudMusic-MVVM
c3ff6a40a73422b268763793905962951dd51897
a6c1b07ff283e3977b5b23eb7655168b85bbba7c
refs/heads/master
2022-12-03T16:54:02.497873
2020-08-24T02:39:44
2020-08-24T02:39:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,632
java
package com.netease.music.domain.request; import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; import com.imooc.lib_api.model.search.AlbumSearchBean; import com.imooc.lib_network.ApiEngine; import com.kunminx.architecture.domain.request.BaseRequest; import io.reactivex.Observer; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.disposables.Disposable; import io.reactivex.schedulers.Schedulers; public class NewAlbumRequest extends BaseRequest { //Banner数据 private MutableLiveData<AlbumSearchBean.ResultBean> mAlbumLiveData; public LiveData<AlbumSearchBean.ResultBean> getAlbumLiveData() { if (mAlbumLiveData == null) { mAlbumLiveData = new MutableLiveData<>(); } return mAlbumLiveData; } public void requestAlbumData() { ApiEngine.getInstance().getApiService().getNewAlbum() .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(new Observer<AlbumSearchBean.ResultBean>() { @Override public void onSubscribe(Disposable d) { } @Override public void onNext(AlbumSearchBean.ResultBean resultBean) { mAlbumLiveData.postValue(resultBean); } @Override public void onError(Throwable e) { } @Override public void onComplete() { } }); } }
[ "1025618933@qq,com" ]
1025618933@qq,com
ceed7203a6ba039f1ca3a3986dfcbe6a9eef19a0
11675a3aa173ce47ff99c751e10b4a176f0f8848
/src/main/java/pl/quider/web/model/Bill.java
a57c1c2962c1914e35a7dc538fff6fb618f06f5e
[]
no_license
Esmelealem/springWebPage
41e708335c77b4021589d12fef432a557c796860
0484899b169e0ac66a83ee86875b1180e1eb090c
refs/heads/master
2021-01-13T05:25:26.353167
2017-02-07T13:46:44
2017-02-07T13:46:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
503
java
package pl.quider.web.model; import javax.persistence.Column; import javax.persistence.Entity; import java.math.BigDecimal; /** * Created by Adrian on 20.01.2017. */ @Entity(name = "bill") public class Bill extends AccountingDocument { @Column(name = "gross_value", nullable = true) private BigDecimal grossValue; public BigDecimal getGrossValue() { return grossValue; } public void setGrossValue(BigDecimal grossValue) { this.grossValue = grossValue; } }
[ "adrian.kozlowski@outlook.com" ]
adrian.kozlowski@outlook.com
3a5126e6bdfb227fb576e5eb54f6e7de46b02128
b8b82368967b636b4a38fbfd10ccf0bca7c61459
/DesignPattern/2-代理模式/src/com/ly/cglibProxy/ProxyFactory.java
d4ed4a78e4edb56e0f31c891facce26bea84055e
[]
no_license
gloomysun/daydayup
077a918452d265ca0e08307e378c81d65d0c8b67
1b118457ba43106d2300997cf7364bc6423aa4b5
refs/heads/master
2020-03-19T09:34:15.811379
2018-11-05T09:55:25
2018-11-05T09:55:25
136,299,662
0
0
null
null
null
null
UTF-8
Java
false
false
1,043
java
package com.ly.cglibProxy; import org.springframework.cglib.proxy.Enhancer; import org.springframework.cglib.proxy.MethodInterceptor; import org.springframework.cglib.proxy.MethodProxy; import java.lang.reflect.Method; public class ProxyFactory implements MethodInterceptor { private RealSubject target; public ProxyFactory(RealSubject target) { this.target = target; } //创建代理类 public Object getProxyInstance() { //1.工具类 Enhancer enhancer = new Enhancer(); //2.设置父类 enhancer.setSuperclass(target.getClass()); //3.设置回调函数 enhancer.setCallback(this); //4.创建子类(代理对象) return enhancer.create(); } @Override public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable { System.out.println("begin..."); Object result = method.invoke(target, objects); System.out.println("end..."); return result; } }
[ "409575046@qq.com" ]
409575046@qq.com
9776d91eb06a0c55f0a474ad7019b1501bfa356c
c52772715b4e3e72cdbd605846a3f52d24bc8599
/src/net/sourceforge/plantuml/sequencediagram/teoz/ElseTile.java
13cb6a649648d6b2d0f27cf929da0343a2095690
[ "MIT" ]
permissive
vsujeesh/plantuml-mit
c172b089441a98e943c6acc559a4506d775da5a0
e7133c02afdda24b556a8ddb7b5cc416cc0365d6
refs/heads/master
2022-02-21T22:23:47.415151
2019-10-14T17:03:26
2019-10-14T17:03:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,252
java
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * (C) Copyright 2009-2020, Arnaud Roques * * Project Info: http://plantuml.com * * If you like this project or if you find it useful, you can support us at: * * http://plantuml.com/patreon (only 1$ per month!) * http://plantuml.com/paypal * * This file is part of PlantUML. * * Licensed under The MIT License (Massachusetts Institute of Technology License) * * See http://opensource.org/licenses/MIT * * 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. * * * Original Author: Arnaud Roques */ package net.sourceforge.plantuml.sequencediagram.teoz; import java.awt.geom.Dimension2D; import net.sourceforge.plantuml.ISkinParam; import net.sourceforge.plantuml.SkinParamBackcolored; import net.sourceforge.plantuml.cucadiagram.Display; import net.sourceforge.plantuml.graphic.StringBounder; import net.sourceforge.plantuml.real.Real; import net.sourceforge.plantuml.sequencediagram.Event; import net.sourceforge.plantuml.sequencediagram.GroupingLeaf; import net.sourceforge.plantuml.skin.Component; import net.sourceforge.plantuml.skin.ComponentType; import net.sourceforge.plantuml.skin.rose.Rose; import net.sourceforge.plantuml.ugraphic.UGraphic; public class ElseTile extends AbstractTile implements TileWithCallbackY { private final Rose skin; private final ISkinParam skinParam; private final GroupingLeaf anElse; private final Tile parent; public Event getEvent() { return anElse; } @Override public double getYPoint(StringBounder stringBounder) { return 0; } public ElseTile(GroupingLeaf anElse, Rose skin, ISkinParam skinParam, Tile parent) { this.anElse = anElse; this.skin = skin; this.skinParam = skinParam; this.parent = parent; } public Component getComponent(StringBounder stringBounder) { // final Display display = Display.create(anElse.getTitle()); final ISkinParam tmp = new SkinParamBackcolored(skinParam, anElse.getBackColorElement(), anElse.getBackColorGeneral()); final Display display = Display.create(anElse.getComment()); final Component comp = skin.createComponent(anElse.getUsedStyles(), ComponentType.GROUPING_ELSE, null, tmp, display); return comp; } public void drawU(UGraphic ug) { // final StringBounder stringBounder = ug.getStringBounder(); // final Component comp = getComponent(stringBounder); // final Dimension2D dim = comp.getPreferredDimension(stringBounder); // final Real min = getMinX(stringBounder); // final Real max = getMaxX(stringBounder); // final Context2D context = (Context2D) ug; // double height = dim.getHeight(); // // if (context.isBackground() && parent instanceof GroupingTile) { // // final double startingY = ((GroupingTile) parent).getStartY(); // // final double totalParentHeight = parent.getPreferredHeight(stringBounder); // // height = totalParentHeight - (startingY - y); // // } // final Area area = new Area(max.getCurrentValue() - min.getCurrentValue(), height); // ug = ug.apply(new UTranslate(min.getCurrentValue(), 0)); // comp.drawU(ug, area, context); } public double getPreferredHeight(StringBounder stringBounder) { final Component comp = getComponent(stringBounder); final Dimension2D dim = comp.getPreferredDimension(stringBounder); double height = dim.getHeight(); if (anElse.getComment() != null) { height += 10; } return height; } public void addConstraints(StringBounder stringBounder) { // final Component comp = getComponent(stringBounder); // final Dimension2D dim = comp.getPreferredDimension(stringBounder); // final double width = dim.getWidth(); } public Real getMinX(StringBounder stringBounder) { return parent.getMinX(stringBounder); } public Real getMaxX(StringBounder stringBounder) { final Component comp = getComponent(stringBounder); final Dimension2D dim = comp.getPreferredDimension(stringBounder); return getMinX(stringBounder).addFixed(dim.getWidth()); } private double y; public void callbackY(double y) { this.y = y; } public double getCallbackY() { return y; } }
[ "plantuml@gmail.com" ]
plantuml@gmail.com
443e670f34ac7d704868ca2c71dcceae2c84b96c
c4483a632017464cf2f3f70b2f9ab9ee5b8b4636
/imdb/src/main/java/com/zaki/imdb/imdb/exception/InvalidEntityDataException.java
7f9c2c6645fba69dd738e241bd4132e331858296
[]
no_license
zaki1993/fadata-spring-course
c8c5adc979b284edbb46b70af80628dcc6300adc
260888ebba6debd972b6d835207e567bb2864b60
refs/heads/master
2023-01-04T06:35:53.290500
2020-11-03T14:14:30
2020-11-03T14:14:30
303,298,964
2
0
null
null
null
null
UTF-8
Java
false
false
253
java
package com.zaki.imdb.imdb.exception; import com.zaki.imdb.imdb.exception.base.BaseIMDBException; public class InvalidEntityDataException extends BaseIMDBException { public InvalidEntityDataException(String msg) { super(msg, 400); } }
[ "zaki1993@abv.bg" ]
zaki1993@abv.bg
38445ba9c5672891f0bd04c1e2e6de06347a54ac
05948ca1cd3c0d2bcd65056d691c4d1b2e795318
/classes/com/xiaoenai/app/classes/common/mvp/view/b.java
3396ffde30c73dd20474a5a11db7e9594a6188a2
[]
no_license
waterwitness/xiaoenai
356a1163f422c882cabe57c0cd3427e0600ff136
d24c4d457d6ea9281a8a789bc3a29905b06002c6
refs/heads/master
2021-01-10T22:14:17.059983
2016-10-08T08:39:11
2016-10-08T08:39:11
70,317,042
0
8
null
null
null
null
UTF-8
Java
false
false
559
java
package com.xiaoenai.app.classes.common.mvp.view; import java.util.List; public abstract interface b<T> extends a { public abstract void a(List<T> paramList, boolean paramBoolean); public abstract void a(boolean paramBoolean); public abstract void b(List<T> paramList, boolean paramBoolean); public abstract void h_(); public abstract void j_(); } /* Location: E:\apk\xiaoenai2\classes-dex2jar.jar!\com\xiaoenai\app\classes\common\mvp\view\b.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "1776098770@qq.com" ]
1776098770@qq.com
b958af238bec11ac431c65dc02d3688dc2048bb9
85fdcf0631ca2cc72ce6385c2bc2ac3c1aea4771
/temp/src/minecraft/net/minecraft/src/StructureStrongholdStones.java
8de95e47e7c0e81bc57bf62cd103b827799590b5
[]
no_license
lcycat/Cpsc410-Code-Trip
c3be6d8d0d12fd7c32af45b7e3b8cd169e0e28d4
cb7f76d0f98409af23b602d32c05229f5939dcfb
refs/heads/master
2020-12-24T14:45:41.058181
2014-11-21T06:54:49
2014-11-21T06:54:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,430
java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) braces deadcode fieldsfirst package net.minecraft.src; import java.util.Random; // Referenced classes of package net.minecraft.src: // StructurePieceBlockSelector, Block, StructureStrongholdPieceWeight2 class StructureStrongholdStones extends StructurePieceBlockSelector { private StructureStrongholdStones() { } public void func_75062_a(Random p_75062_1_, int p_75062_2_, int p_75062_3_, int p_75062_4_, boolean p_75062_5_) { if(p_75062_5_) { field_75066_a = Block.field_72007_bm.field_71990_ca; float f = p_75062_1_.nextFloat(); if(f < 0.2F) { field_75065_b = 2; } else if(f < 0.5F) { field_75065_b = 1; } else if(f < 0.55F) { field_75066_a = Block.field_72006_bl.field_71990_ca; field_75065_b = 2; } else { field_75065_b = 0; } } else { field_75066_a = 0; field_75065_b = 0; } } StructureStrongholdStones(StructureStrongholdPieceWeight2 p_i3849_1_) { this(); } }
[ "kye.13@hotmail.com" ]
kye.13@hotmail.com
326d6dc3b1a4d75a6d725d7193fb131c17e5357d
4c5188cf67f62c15380e791e1d25cb5d8216d89e
/01_intro_OOobjetos/src/ejercicios/Ejercicio03Apartado3.java
0e2f9b6c8639fb50c2252fdbd02e2e003a97475d
[]
no_license
EugenioMartinDev/LearningJava
39254189d8fabd081c547d7c97a9f966402b2f28
2e951fca0b48ae1dc80cdd0466258531d0eea50a
refs/heads/master
2022-12-22T03:35:15.865575
2020-02-24T13:21:03
2020-02-24T13:21:03
222,642,311
0
0
null
2022-12-16T13:56:01
2019-11-19T08:07:36
Java
ISO-8859-1
Java
false
false
1,042
java
package ejercicios; public class Ejercicio03Apartado3 { public static void main(String[] args) { /* * 1.- Declarar variables. * 2.- Obtener los datos de entrada * 3.- Procesar los datos de entrada - Generar salida parcial y/o total * 4.- Escribir estadísticas */ int l1 = 0; int l2 = 0; //reading simulation l1 = 3; l2 = 4; System.out.println("Lados del rectángulo = " + l1 + " y " + l2); System.out.println("Perímetro = " + (2 * (l1 + l2))); System.out.println("Área = " + (l1 * l2)); System.out.println("Hipotenusa = " + Math.sqrt(Math.pow(l1, 2)+Math.pow(l2, 2))); int lado1 = 0; int lado2 = 0; int perimetro = 0; int area = 0; double hipotenusa = 0; lado1 = 7; lado2 = 4; perimetro = 2 * (lado1 + lado2); area = lado1 * lado2; hipotenusa = Math.sqrt(Math.pow(lado1, 2)+Math.pow(lado2, 2)); System.out.println("Lados = " + lado1 + " y " + lado2 + " ==> perímetro = " + perimetro + " área = " + area + " hipotenusa = " + hipotenusa); } }
[ "you@example.com" ]
you@example.com
64cb84b5ee71b958170ff5d09fb66a5f1238f089
836aeeb5310276ff2fd9bc4dbd27fb46acd66377
/hotcomm-community-common/src/main/java/com/hotcomm/community/common/bean/en/system/UserEN.java
b01081ada08e4abdf38ae4e0ff970680ba6134d3
[]
no_license
jiajiales/hotcomm-communitys
d345488ad5a7459110bc63952ec759e3e66ba55d
abda57b2bb1ed5a2eece156e622b7aec2195a8ba
refs/heads/master
2020-04-22T17:14:05.153135
2019-02-13T15:44:54
2019-02-13T15:44:54
170,533,655
2
1
null
null
null
null
UTF-8
Java
false
false
1,677
java
package com.hotcomm.community.common.bean.en.system; public class UserEN { public enum UserType { SYSTEM(1, "系统"), COMMUNITY(2, "社区"); private Integer value; private String name; UserType(Integer value, String name) { this.value = value; this.name = name; } public Integer getValue() { return value; } public String getName() { return name; } public static UserType getByValue(Integer value) { for (UserType obj : UserType.values()) { if (obj.getValue().equals(value)) { return obj; } } return null; } } public enum UserStatus { VALID(1, "有效"), INVALID(2, "无效"); private Integer value; private String name; UserStatus(Integer value, String name) { this.value = value; this.name = name; } public Integer getValue() { return value; } public String getName() { return name; } public static UserStatus getByValue(Integer value) { for (UserStatus obj : UserStatus.values()) { if (obj.getValue().equals(value)) { return obj; } } return null; } } public enum IsDelete { NO(1, "否"), YES(2, "是"); private Integer value; private String name; IsDelete(Integer value, String name) { this.value = value; this.name = name; } public Integer getValue() { return value; } public String getName() { return name; } public static IsDelete getByValue(Integer value) { for (IsDelete obj : IsDelete.values()) { if (obj.getValue().equals(value)) { return obj; } } return null; } } }
[ "562910919@qq.com" ]
562910919@qq.com
a85ceac72a9df4dd4ec3630ee9084aadfb6d8750
8ec2cbabd6125ceeb00e0c6192c3ce84477bdde6
/com.nokia.as.autoconfig/src/com/nokia/as/autoconfig/test/bundle/factory/HelloServiceImpl.java
49133eb9c8b9fbc72f553bd0126fd8552328cb74
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
nokia/osgi-microfeatures
2cc2b007454ec82212237e012290425114eb55e6
50120f20cf929a966364550ca5829ef348d82670
refs/heads/main
2023-08-28T12:13:52.381483
2021-11-12T20:51:05
2021-11-12T20:51:05
378,852,173
1
1
null
null
null
null
UTF-8
Java
false
false
688
java
// Copyright 2000-2021 Nokia // // Licensed under the Apache License 2.0 // SPDX-License-Identifier: Apache-2.0 // package com.nokia.as.autoconfig.test.bundle.factory; import org.apache.felix.dm.annotation.api.Component; import com.nokia.as.autoconfig.test.bundle.api.HelloService; @Component(factoryPid="com.nokia.as.autoconfig.test.bundle.factory.HelloConfiguration", propagate = true) public class HelloServiceImpl implements HelloService { private String greeting; public void updated(HelloConfiguration conf) { greeting = conf.getGreetingMessage(); } public String sayHello(String name) { return greeting + " " + name; } }
[ "pierre.de_rop@nokia.com" ]
pierre.de_rop@nokia.com
9446c7657314e698e300f8bf67b8dcc6bbfdfeca
3a59bd4f3c7841a60444bb5af6c859dd2fe7b355
/sources/kotlin/sequences/SequencesKt___SequencesKt$filterNotNull$1.java
424dae39892568547f5aa8c8b7d6930ada348daf
[]
no_license
sengeiou/KnowAndGo-android-thunkable
65ac6882af9b52aac4f5a4999e095eaae4da3c7f
39e809d0bbbe9a743253bed99b8209679ad449c9
refs/heads/master
2023-01-01T02:20:01.680570
2020-10-22T04:35:27
2020-10-22T04:35:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,001
java
package kotlin.sequences; import kotlin.Metadata; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.Lambda; import org.jetbrains.annotations.Nullable; @Metadata(mo39784bv = {1, 0, 3}, mo39785d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u0001\"\b\b\u0000\u0010\u0002*\u00020\u00032\b\u0010\u0004\u001a\u0004\u0018\u0001H\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, mo39786d2 = {"<anonymous>", "", "T", "", "it", "invoke", "(Ljava/lang/Object;)Z"}, mo39787k = 3, mo39788mv = {1, 1, 15}) /* compiled from: _Sequences.kt */ final class SequencesKt___SequencesKt$filterNotNull$1 extends Lambda implements Function1<T, Boolean> { public static final SequencesKt___SequencesKt$filterNotNull$1 INSTANCE = new SequencesKt___SequencesKt$filterNotNull$1(); SequencesKt___SequencesKt$filterNotNull$1() { super(1); } public final boolean invoke(@Nullable T t) { return t == null; } }
[ "joshuahj.tsao@gmail.com" ]
joshuahj.tsao@gmail.com
b3ed3cb9259aaee580924599c0de57163dcaca2b
86746294f3c83c89ed6fea54522944b04fdd5b18
/cdt-examples/src/main/java/com/github/kklisura/cdt/examples/TracingExample.java
7ad0eb88c73de08096166e224b5a8d1b041eea7c
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sechawk/chrome-devtools-java-client
cd029ce51fe0339cedb822fa84a0049798de6b7a
5720062f2ac4918c322d93f717c1f6e5f66ab7f0
refs/heads/master
2021-06-25T04:09:49.619320
2020-12-18T18:28:01
2020-12-18T18:28:01
186,698,915
0
0
Apache-2.0
2019-05-14T20:53:53
2019-05-14T20:53:53
null
UTF-8
Java
false
false
2,437
java
package com.github.kklisura.cdt.examples; import com.fasterxml.jackson.databind.ObjectMapper; import com.github.kklisura.cdt.launch.ChromeLauncher; import com.github.kklisura.cdt.protocol.commands.Page; import com.github.kklisura.cdt.protocol.commands.Tracing; import com.github.kklisura.cdt.services.ChromeDevToolsService; import com.github.kklisura.cdt.services.ChromeService; import com.github.kklisura.cdt.services.types.ChromeTab; import java.io.File; import java.io.IOException; import java.util.LinkedList; import java.util.List; /** * Tracing example. * * @author Kenan Klisura */ public class TracingExample { public static void main(String[] args) { // Create chrome launcher. final ChromeLauncher launcher = new ChromeLauncher(); // Launch chrome either as headless (true) or regular (false). final ChromeService chromeService = launcher.launch(false); // Create empty tab ie about:blank. final ChromeTab tab = chromeService.createTab(); // Get DevTools service to this tab final ChromeDevToolsService devToolsService = chromeService.createDevToolsService(tab); // Get individual commands final Page page = devToolsService.getPage(); final Tracing tracing = devToolsService.getTracing(); final List<Object> dataCollectedList = new LinkedList<>(); // Add tracing data to dataCollectedList tracing.onDataCollected( event -> { if (event.getValue() != null) { dataCollectedList.addAll(event.getValue()); } }); // When tracing is complete, dump dataCollectedList to JSON file. tracing.onTracingComplete( event -> { // Dump tracing to file. System.out.println("Tracing completed! Dumping to a file."); dump("tracing.json", dataCollectedList); devToolsService.close(); }); page.onLoadEventFired( event -> { tracing.end(); }); // Enable page events. page.enable(); // Start tracing tracing.start(); // Navigate to github.com. page.navigate("http://github.com"); devToolsService.waitUntilClosed(); } private static void dump(String fileName, List<Object> data) { final ObjectMapper objectMapper = new ObjectMapper(); try { File file = new File(fileName); objectMapper.writeValue(file, data); } catch (IOException e) { e.printStackTrace(); } } }
[ "kklisura@hotmail.com" ]
kklisura@hotmail.com
bb92112f3ab155a29ab741ed05f1b9e2dca055d2
4067c98a27fdfe6f893a04a38ad14a5d10639d6b
/src/main/java/org/jtheque/films/stats/view/impl/panels/JPanelStatsRealizers.java
db279a565606671d0337c94b021ebe86cded846c
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
wichtounet/jtheque-stats-module
73e7022cc6d572cc16ac894c96158b5eb49d4e58
02842fe26e328b320dd33ebfa272fe79a283226f
refs/heads/master
2021-01-01T05:35:24.531553
2010-07-05T14:42:10
2010-07-05T14:42:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,128
java
package org.jtheque.films.stats.view.impl.panels; /* * Copyright JTheque (Baptiste Wicht) * * 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. */ import org.jtheque.core.utils.ui.PanelBuilder; import org.jtheque.utils.ui.GridBagUtils; /** * A stats panel for realizers. * * @author Baptiste Wicht */ public final class JPanelStatsRealizers extends PanelStats { private static final long serialVersionUID = 2330748896262486492L; private static final double AN_HALF = 0.5; /** * Construct a new JPanelStatsRealizers. */ public JPanelStatsRealizers() { super(); PanelBuilder builder = new PanelBuilder(this); setHeader("stats.realizers.title", getStatsService().getTitles()[0]); builder.add(getHeader(), builder.gbcSet(0, 0)); builder.add(createPieChartPanel("stats.realizers.pie.country", getStatsService().getInformations().getStatsOfRealizersByCountry()), builder.gbcSet(0, 1, GridBagUtils.BOTH, GridBagUtils.BASELINE, 1.0, AN_HALF)); builder.add(createPieChartPanel("stats.realizers.pie.note", getStatsService().getInformations().getStatsOfRealizersByNote()), builder.gbcSet(0, 2, GridBagUtils.BOTH, GridBagUtils.BASELINE, 1.0, AN_HALF)); } @Override public void refreshText() { getHeader().setTitle(getResources().getMessage("stats.realizers.title")); getHeader().setDescription(getStatsService().getInformations().getNumberOfRealizers() + " " + getResources().getMessage("stats.realizers.realizers").toLowerCase(getResources().getCurrentLocale())); } }
[ "baptistewicht@gmail.com" ]
baptistewicht@gmail.com
38a746a289f2c4b647e31de38a025ec3ab682795
416bd15696c9371e94b2807813e1434570e314df
/27.04.2018/genericCollection/src/genericCollection/Run.java
b26d9556b474b5e05a7b0199eedbb8522066b680
[]
no_license
danielanikolova/ItSteps
be7a2ed58f0bb3d05901df8e5aca7a31681b6e93
8cb0dae499207ddaee313eefd4f33d340ca83408
refs/heads/master
2020-03-09T16:31:25.334607
2018-08-15T09:05:18
2018-08-15T09:05:18
128,887,077
0
1
null
null
null
null
UTF-8
Java
false
false
342
java
package genericCollection; import java.util.ArrayList; import java.util.Collection; public class Run { public static void main(String[] args) { Collection<Student> myCollection; myCollection = new ArrayList<>(); myCollection = new ArrayList<>(); for (Student e : myCollection) { e.toString(); } } }
[ "daniela.a.nikolova@gmail.com" ]
daniela.a.nikolova@gmail.com
a88ec8b9f4257c053623339b83bcb7ee2fae326f
fb2b27f0638feaa8a435425a563910de48925931
/df_miniapp/classes/com/ss/android/ugc/aweme/miniapp/g/aa.java
9f011f49892002d605f3c71ee00b7f31644837df
[]
no_license
0moura/tiktok_source
168fdca45a76e9dc41a4667e41b7743c54692e45
dc2f1740f1f4adcb16448107e5c15fabc40ed8e5
refs/heads/master
2023-01-08T22:51:02.019984
2020-11-03T13:18:24
2020-11-03T13:18:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,271
java
package com.ss.android.ugc.aweme.miniapp.g; import android.app.Activity; import android.content.Context; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.os.Handler; import android.os.Looper; import android.support.v4.content.c; import android.text.SpannableString; import android.text.TextPaint; import android.text.TextUtils; import android.text.method.LinkMovementMethod; import android.text.style.ClickableSpan; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.TextView; import com.bytedance.common.utility.p; import com.tt.miniapp.thread.ThreadUtil; import com.tt.miniapp.util.DevicesUtil; import com.tt.miniapp.util.ToolUtils; import com.tt.miniapphost.AppbrandContext; import com.tt.miniapphost.entity.FeignHostConfig; import com.tt.option.y.a; public class aa extends a { public void initFeignHostConfig(Context paramContext) { FeignHostConfig feignHostConfig = FeignHostConfig.inst(); feignHostConfig.setAppCapsuleDrawable((Drawable)new ColorDrawable(0)).setAppCapsuleBlackDrawable((Drawable)new ColorDrawable(0)).setAppLoadingCapsuleDrawable((Drawable)new ColorDrawable(0)).setAppCloseIconDrawable(c.a(paramContext, 2097479821)).setAppMoreMenuDrawable(c.a(paramContext, 2097479823)).setAppCloseIconBlackDrawable(c.a(paramContext, 2097479820)).setAppMoreMenuBlackDrawable(c.a(paramContext, 2097479822)).setAppLoadingCloseIconDrawable(c.a(paramContext, 2097479821)).setAppLoadingMoreMenuDrawable(c.a(paramContext, 2097479823)); FrameLayout frameLayout = new FrameLayout(paramContext); View view = LayoutInflater.from(paramContext).inflate(2097676361, null); view.findViewById(2097545236).setVisibility(0); Handler handler = new Handler(Looper.getMainLooper()); feignHostConfig.setAppLaunchLoadingView((View)frameLayout).setAppLaunchLoadingListener(new FeignHostConfig.LaunchLoadingListener(this, frameLayout, view, handler, paramContext) { public final void onLoadingEnd() { if (Looper.getMainLooper() == Looper.myLooper()) { this.a.removeView(this.b); return; } this.c.post(new Runnable(this) { public final void run() { this.a.a.removeView(this.a.b); } }); } public final void onLoadingFail(String param1String) { ThreadUtil.runOnUIThread(new Runnable(this, param1String) { public final void run() { this.b.a.removeView(this.b.b); aa aa = this.b.e; Context context = this.b.d; FrameLayout frameLayout = this.b.a; String str = this.a; if (context != null && frameLayout != null) { if (TextUtils.isEmpty(str)) return; View view = LayoutInflater.from(context).inflate(2097676363, null); FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, -2); layoutParams.gravity = 16; view.setLayoutParams((ViewGroup.LayoutParams)layoutParams); frameLayout.addView(view); TextView textView = (TextView)frameLayout.findViewById(2097545497); float f1 = DevicesUtil.getScreenWidth(context) - p.b(context, 66.0F) * 2.0F; TextPaint textPaint = textView.getPaint(); String str1 = context.getString(2097742068); float f2 = textPaint.measureText(" "); float f3 = textPaint.measureText(str); if (textPaint.measureText(str1) < f1 - f3 % f1 - f2) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append(str); stringBuilder.append(" "); stringBuilder.append(str1); str = stringBuilder.toString(); } else { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append(str); stringBuilder.append("\n"); stringBuilder.append(str1); str = stringBuilder.toString(); } SpannableString spannableString = new SpannableString(str); spannableString.setSpan(new ClickableSpan(aa, context) { public final void onClick(View param1View) { ToolUtils.onActivityExit((Activity)AppbrandContext.getInst().getCurrentActivity(), 13); } public final void updateDrawState(TextPaint param1TextPaint) { param1TextPaint.setColor(c.c(this.a, 2097348697)); param1TextPaint.setUnderlineText(false); } }str.length() - str1.length(), str.length(), 33); textView.setHighlightColor(0); textView.setText((CharSequence)spannableString); textView.setMovementMethod(LinkMovementMethod.getInstance()); } } }); } public final void onLoadingStart() { if (Looper.getMainLooper() == Looper.myLooper()) { this.a.addView(this.b); return; } this.c.post(new Runnable(this) { public final void run() { this.a.a.addView(this.a.b); } }); } }); } } /* Location: C:\Users\august\Desktop\tik\df_miniapp\classes.jar!\com\ss\androi\\ugc\aweme\miniapp\g\aa.class * Java compiler version: 6 (50.0) * JD-Core Version: 1.1.3 */
[ "augustgl@protonmail.ch" ]
augustgl@protonmail.ch
7dc541aa01159734fc8dae083807fc36e9aaf899
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
/Code Snippet Repository/Jetty/Jetty3019.java
7008c8b2e978dc8e621ee84cdfd0109f79c90d9a
[]
no_license
saber13812002/DeepCRM
3336a244d4852a364800af3181e03e868cf6f9f5
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
refs/heads/master
2023-03-16T00:08:06.473699
2018-04-18T05:29:50
2018-04-18T05:29:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
436
java
public boolean checkContextPath(String uri) { // Are we not the root context? if (_contextPath.length() > 1) { // reject requests that are not for us if (!uri.startsWith(_contextPath)) return false; if (uri.length() > _contextPath.length() && uri.charAt(_contextPath.length()) != '/') return false; } return true; }
[ "Qing.Mi@my.cityu.edu.hk" ]
Qing.Mi@my.cityu.edu.hk
1974a343fe9620d22102b1789d279cd4287aa81b
b6ede16e87a6a08104051332ee6ab5555e0e719f
/regexExamples/src/main/java/regexExamples/Regex02.java
37bbf395a6060b415bc76b4d67e9ff7fdabbd1be
[]
no_license
krzysztofkolcz/java
96929e4b993ddfb4b3c00b312dcb4fa56366fdf0
f10f14cd4fd8050be3e35ea0d65b2d8dc9cbd55f
refs/heads/master
2021-01-20T20:47:51.571515
2019-10-12T12:47:48
2019-10-12T12:47:48
64,404,216
0
0
null
2020-10-13T11:40:46
2016-07-28T14:53:34
Java
UTF-8
Java
false
false
915
java
package regexExamples; import java.io.Console; import java.util.regex.Pattern; import java.util.regex.Matcher; public class Regex02{ public static void main(String[] args){ String regex = "([0-9]+)\\s(\\p{L}*)\\s"; Pattern pattern = Pattern.compile(regex); String txt = "123451 Test "; Matcher matcher = pattern.matcher(txt); boolean match = matcher.matches(); String group = ""; printInfo(txt,match,regex); if(match){ int n = matcher.groupCount(); for(int i = 0; i<=n; i++){ group = matcher.group(i); System.out.println(group); } } txt = "123 234"; matcher.reset(txt); match = matcher.matches(); printInfo(txt,match,regex); } public static void printInfo(String txt,boolean match,String regex){ System.out.println("Tekst: " + txt + "\n" + (match ? " " : "NIE ") + "pasuje do wzorca: " + regex); } }
[ "krzysztof.kolcz@gmail.com" ]
krzysztof.kolcz@gmail.com
964193b213e367f1e3fe855540d9575db6119594
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/methods/Method_27908.java
4975d84bf1e98333f9e72c00d98d2e4f4dc64021
[]
no_license
P79N6A/icse_20_user_study
5b9c42c6384502fdc9588430899f257761f1f506
8a3676bc96059ea2c4f6d209016f5088a5628f3c
refs/heads/master
2020-06-24T08:25:22.606717
2019-07-25T15:31:16
2019-07-25T15:31:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
132
java
@Override public void onSortOptionSelected(String selectedSortOption){ getPresenter().onSortOptionSelected(selectedSortOption); }
[ "sonnguyen@utdallas.edu" ]
sonnguyen@utdallas.edu
96328bdbfa74534a53fa641116917f36cc75413f
02d23a346883c46c9b321260331441aa87f5aa52
/lintcode/NQueensII.java
a979206d4a41a2a0bf2e65322180e7f39147799a
[]
no_license
whztt07/AlgoSolutions
9870d02df1d70cd9e5002950643c92666b6fee04
a13e2207b6b87c94825bf6299a66b7d149017722
refs/heads/master
2020-07-11T02:45:24.206198
2019-07-30T11:45:57
2019-07-30T11:45:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,193
java
/* * Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions. Example For n=4, there are 2 distinct solutions. */ public class NQueensII { /** * Calculate the total number of distinct N-Queen solutions. * @param n: The number of queens. * @return: The total number of distinct solutions. */ int result = 0; public int totalNQueens(int n) { int[] board = new int[n]; dfs(board, 0); return result; } public void dfs(int[] board, int row) { if (row == board.length) { result++; return; } for (int col = 0; col < board.length; ++col) { if (canPlace(board, row, col)) { board[row] = col; dfs(board, row + 1); board[row] = 0; } } } public boolean canPlace(int[] board, int row, int col) { for (int i = 0; i < row; ++i) { if (board[i] == col || Math.abs(row - i) == Math.abs(col - board[i])) { return false; } } return true; } }
[ "mitcc@qq.com" ]
mitcc@qq.com
8811e1cbebb17b3de95d8b4fb4b78c26d49f0443
3d13242cf39f0feaeae9dcc559e4965013e238e1
/backend/src/main/java/br/com/sisdb/dslearn/dto/DeliverRevisionDTO.java
3fccd0ff8b165a103455713789a78d15527a525a
[]
no_license
danielbortolozo/ds-learn
b44cfdfa54dfb79272d754449a2f50b684a78fed
688f4786b6e22a3119fcfe05fd9e9f4fa521d533
refs/heads/main
2023-03-23T19:33:17.171513
2021-03-07T08:34:33
2021-03-07T08:34:33
340,787,569
0
0
null
null
null
null
UTF-8
Java
false
false
1,670
java
package br.com.sisdb.dslearn.dto; import br.com.sisdb.dslearn.entities.Deliver; import br.com.sisdb.dslearn.entities.enums.DeliverStatus; import java.io.Serializable; import java.util.Objects; public class DeliverRevisionDTO implements Serializable { private static final long serialVersionUID = 1L; private DeliverStatus status; private String feedback; private Integer correctCount; public DeliverRevisionDTO() { } public DeliverRevisionDTO(DeliverStatus status, String feedback, Integer correctCount) { this.status = status; this.feedback = feedback; this.correctCount = correctCount; } public DeliverRevisionDTO(Deliver entity) { status = entity.getStatus(); feedback = entity.getFeedback(); correctCount = entity.getCorrectCount(); } public DeliverStatus getStatus() { return status; } public void setStatus(DeliverStatus status) { this.status = status; } public String getFeedback() { return feedback; } public void setFeedback(String feedback) { this.feedback = feedback; } public Integer getCorrectCount() { return correctCount; } public void setCorrectCount(Integer correctCount) { this.correctCount = correctCount; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; DeliverRevisionDTO that = (DeliverRevisionDTO) o; return status == that.status; } @Override public int hashCode() { return Objects.hash(status); } }
[ "danielbortolozo@hotmail.com" ]
danielbortolozo@hotmail.com
840e53793680dbbca2e70d0ab45bdd35851d89ad
38dd87f19b3c7ec5506ced73bbf1bff6e407f553
/plugins/org.sidiff.graphpattern/src/org/sidiff/graphpattern/attributes/JavaSciptParser.java
c0d60c38faafbdb02beeb5a37531e2c65bff7337
[]
no_license
mohrndorf/repairvision
487da1b64e1d024b7599f7b21b1b136ec0565e8e
cf2d0f9678b684f1e5ff7bf0dd45a286bc7803fa
refs/heads/master
2021-07-06T14:41:36.526163
2020-09-29T19:19:58
2020-09-29T19:19:58
137,498,466
0
0
null
null
null
null
UTF-8
Java
false
false
5,802
java
package org.sidiff.graphpattern.attributes; import java.io.StringWriter; import java.lang.ref.Reference; import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.script.ScriptContext; import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; import javax.script.SimpleScriptContext; import org.eclipse.emf.ecore.EDataType; /** * Parsing of constants and script expressions in attribute values. * * @author Manuel Ohrndorf */ public class JavaSciptParser { // NOTE: Currently asserts that all constants are quoted, e.g., "true". // All none quoted strings are interpreted as script expressions or single variables. /** * The JavaScript engine to parse expressions. */ private static Reference<ScriptEngine> engine; /** * Matches a string which starts and ends with quotation marks. The string must * also not contain any not escaped quotation marks. */ private static Pattern MATCH_CONSTANT = Pattern.compile("^\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"$"); /** * Matches a simple variable name. */ private static Pattern MATCH_VARIABLE = Pattern.compile("^([a-zA-Z\\d_$]*)$"); /** * @return An instance of the JavaScript engine to parse expressions. */ protected static ScriptEngine getEngine() { synchronized (JavaSciptParser.class) { if ((engine == null) || (engine.get() == null)) { ScriptEngine weakSingleton = createJavaScriptEngine(); engine = new WeakReference<ScriptEngine>(weakSingleton); } return engine.get(); } } /** * @return Creates an instance of the JavaScript engine to parse expressions. */ protected static ScriptEngine createJavaScriptEngine() { return new ScriptEngineManager().getEngineByName("nashorn"); } /** * @param eDataType The object type of the literal. * @param literalValue The object as a literal string. * @return An instance of the data type. */ protected static Object createFromString(EDataType eDataType, String literalValue) { return eDataType.getEPackage().getEFactoryInstance().createFromString(eDataType, literalValue); } /** * @param type The type of the expression result. * @param expression An expression. * @return If the expression contains a single constant value, the constant as * primitive data type or <code>null</code>. */ public static Object getConstant(EDataType type, String expression) { if (isConstant(expression)) { expression = expression.substring(1, expression.length() - 1); try { return createFromString(type, expression); } catch (Exception e) { } } return null; } /** * @param type The type of the expression result. * @param expression An expression. * @return <code>true</code> if the expression contains a single constant * (quoted) value; <code>false</code> otherwise. */ public static boolean isConstant(String expression) { if (expression != null) { if (expression.startsWith("\"") && expression.endsWith("\"")) { // optimization return MATCH_CONSTANT.matcher(expression).find(); } } return false; } /** * @param expression An expression. * @return <code>true</code> if the expression is a single variable; * <code>false</code> otherwise. */ public static boolean isVariable(String expression) { if (expression != null) { return MATCH_VARIABLE.matcher(expression).find(); } return false; } /** * @param type The type of the expression result. * @param expression An expression. * @return <code>true</code> if the expression is not a constant value; * <code>false</code> otherwise. * @see JavaSciptParser#isQuoted(String) */ public static boolean isExpression(String expression) { if (expression != null) { return !isConstant(expression); } return false; } /** * @param type The type of the expression result. * @param expression An expression. * @return The variables contained in the expression; an empty list otherwise. */ public static List<String> getVariables(EDataType type, String expression) { // no content: if (expression.isEmpty()) { return Collections.emptyList(); } // one variable: if (isVariable(expression)) { return Collections.singletonList(expression); } // constant: if (isExpression(expression)) { // java script expression: try { expression = expression.replace("\"", "'"); String script = "load(\"nashorn:parser.js\");\r\n" + "var ast = parse(\"" + expression + "\");" + "print(JSON.stringify(ast));"; ScriptEngine engine= getEngine(); StringWriter output = new StringWriter(); ScriptContext scriptContext = new SimpleScriptContext(); scriptContext.setWriter(output); engine.eval(script, scriptContext); String ast = output.toString(); String attributeASTPattern = "(.*?)(\\{\"type\":\"Identifier\",\"name\":\")(.*?)(\"\\})(.*?)"; Pattern compiledAttributeASTPattern = Pattern.compile(attributeASTPattern); Matcher matcher = compiledAttributeASTPattern.matcher(ast); List<String> variables = new ArrayList<>(); while(matcher.find()) { String variable = matcher.group(3); if (!variable.isEmpty()) { variables.add(variable); } } return variables; } catch (ScriptException e) { e.printStackTrace(); } } return Collections.emptyList(); } }
[ "manuel.ohrndorf@gmx.net" ]
manuel.ohrndorf@gmx.net
6d9a72ca9c4afef5f925365a9ed1c389563060c8
99dc65f91c1f5dee1a2d138057af58a50eb58091
/spring-webclient-demo/src/main/java/com/example/springwebclientdemo/model/Coffee.java
8149182e64800b4fe8b9ed651801e8f787ef6feb
[]
no_license
luolili/springbootdemo
697886b347965e7f79ff78d51291c9e06230bc9c
1676b7139fbcdee3ac81d0fdef58385e76a5bfb8
refs/heads/master
2022-06-30T04:53:15.143852
2020-04-12T05:46:38
2020-04-12T05:46:38
189,696,533
0
0
null
2022-06-21T03:11:32
2019-06-01T06:00:28
Java
UTF-8
Java
false
false
473
java
package com.example.springwebclientdemo.model; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import org.joda.money.Money; import java.io.Serializable; import java.util.Date; @Data @Builder @NoArgsConstructor @AllArgsConstructor public class Coffee implements Serializable { private Long id; private String name; private Money price; private Date createTime; private Date updateTime; }
[ "2084267015@qq.com" ]
2084267015@qq.com
9fb623b0ed26749ccc57d6e464e8a2a4c386482c
7a18ebb74f37dfe4eb655f174e2b974560965378
/purchase/src/com/mbusiness/impl/GetmyDoctor.java
012df2c72a5b800aa9ce41c45dcf5950292bc832
[]
no_license
873008390/yabao
0479b40f01e05f70ce553d238f3340402a1f5ca5
8f6bb129e269f5089caca3062882fb03e1b24b0c
refs/heads/master
2021-01-22T19:59:25.047032
2017-03-21T02:30:58
2017-03-21T02:30:58
85,261,799
0
0
null
null
null
null
UTF-8
Java
false
false
729
java
package com.mbusiness.impl; import java.util.List; import org.hibernate.Session; public class GetmyDoctor { private String doctorids = ""; public String get(Session session, String salerids){ if(salerids.equalsIgnoreCase("")){ salerids = "0"; } List<Object> o11 = session.createSQLQuery("select id from users where status=1 and customerid in(select id from customer where status=1 and type=2 and salerid in("+ salerids +"))").list();//doctor if(!o11.isEmpty()){ for(int i=0;i<o11.size();i++){ if(doctorids.equalsIgnoreCase("")){ doctorids = o11.get(i).toString(); }else{ doctorids = doctorids +","+ o11.get(i).toString(); } } } return doctorids; } }
[ "your_email@youremail.com" ]
your_email@youremail.com
353b71f35f390eafcb5140cc9a04a6983302d6c3
c5845067d27e01087d245b9869ad6e749650708d
/atu-erp-domain/src/main/java/com/atu/erp/domain/query/BusinessUserExtQuery.java
087280822d0adb8c5e3107b15731614ed0ee92ae
[]
no_license
chongziliuxing/atu
0cc93feaab1406a668bfb516ee470b4e7d1af76f
73d1adc945f9cd7003225c37ee04e4ac66add3d6
refs/heads/master
2021-08-22T21:10:56.968793
2017-12-01T09:06:05
2017-12-01T09:06:05
112,717,787
0
0
null
2017-12-01T08:59:15
2017-12-01T08:59:15
null
UTF-8
Java
false
false
3,531
java
package com.atu.erp.domain.query; import java.io.Serializable; import java.util.Date; import com.atu.erp.domain.common.BaseSearchForMysqlVo; public class BusinessUserExtQuery extends BaseSearchForMysqlVo implements Serializable{ /** * */ private static final long serialVersionUID = 1L; /** 用户ID=商家用户ID */ private Integer userId; /** 店铺名称 */ private String shopName; /** 店铺状态 */ private Integer status; /** 开户行 */ private String bank; /** 开户行账号 */ private String bankAc; /** 开户行支行 */ private String branch; /** 开户行支行联行号 */ private String CNAPSCode; /** 开户行支行联行号 */ private String bankProvince; /** 开户行支行联行号 */ private String bankCity; /** 银行账号审核状态 */ private Integer bankStatus; /** 银行账号审核备注 */ private String bankRemark; /** 银行账号创建时间 */ private Date bankCreated; /** 银行账号审核时间 */ private Date bankChecked; private String commision; /** 企业资质链接 */ private String qualificationUrl; /** 用户类型 */ private Integer userType; public Integer getUserType() { return userType; } public void setUserType(Integer userType) { this.userType = userType; } public Integer getUserId() { return userId; } public void setUserId(Integer userId) { this.userId = userId; } public String getShopName() { return shopName; } public void setShopName(String shopName) { this.shopName = shopName; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public String getBank() { return bank; } public void setBank(String bank) { this.bank = bank; } public String getBankAc() { return bankAc; } public void setBankAc(String bankAc) { this.bankAc = bankAc; } public String getBranch() { return branch; } public void setBranch(String branch) { this.branch = branch; } public String getCNAPSCode() { return CNAPSCode; } public void setCNAPSCode(String cNAPSCode) { CNAPSCode = cNAPSCode; } public String getBankProvince() { return bankProvince; } public void setBankProvince(String bankProvince) { this.bankProvince = bankProvince; } public String getBankCity() { return bankCity; } public void setBankCity(String bankCity) { this.bankCity = bankCity; } public Integer getBankStatus() { return bankStatus; } public void setBankStatus(Integer bankStatus) { this.bankStatus = bankStatus; } public String getBankRemark() { return bankRemark; } public void setBankRemark(String bankRemark) { this.bankRemark = bankRemark; } public Date getBankCreated() { return bankCreated; } public void setBankCreated(Date bankCreated) { this.bankCreated = bankCreated; } public Date getBankChecked() { return bankChecked; } public void setBankChecked(Date bankChecked) { this.bankChecked = bankChecked; } public String getCommision() { return commision; } public void setCommision(String commision) { this.commision = commision; } public String getQualificationUrl() { return qualificationUrl; } public void setQualificationUrl(String qualificationUrl) { this.qualificationUrl = qualificationUrl; } }
[ "359953111@qq.com" ]
359953111@qq.com
15a740314151188b06e651335fe48f9106ef89a6
a711d39bb5a362de95dc176e0da6db04eee9adc0
/provider/src/main/java/com/gtc/provider/clients/common/pusher/dto/PusherEvent.java
49054fed804ce4c6cb907378f2ecb2022c414b6b
[ "MIT" ]
permissive
aspineon/GTC-all-repo
81e458415b0b95c4659263898f805056bc1226db
e4ca91147a9bffd7f5820da413507f532f179085
refs/heads/master
2022-04-07T09:52:40.367277
2020-01-19T09:47:23
2020-01-19T09:47:23
null
0
0
null
null
null
null
UTF-8
Java
false
false
241
java
package com.gtc.provider.clients.common.pusher.dto; import lombok.Data; /** * Created by Valentyn Berezin on 12.01.18. */ @Data public class PusherEvent { private String channel; private String data; private String event; }
[ "valentyn.berezin@aurea.com" ]
valentyn.berezin@aurea.com
5ab4042fa2b84ca5b693115b178521e13c219ee0
8ad5a77fa61c1b0f35a03721fbf053bd3bf63a2b
/src/main/java/com/lohika/jclub/graphqljava/GraphqlJavaApplication.java
983f4b8e6d9d74d07790c0ec938ed593df10d01d
[ "MIT" ]
permissive
lvivJavaClub/graphql-java
21dbf21b638326bbd3f075e42211025ded1a4878
269df130657de912eec2f518026df89df72cd7c2
refs/heads/master
2020-03-20T20:22:15.175603
2018-07-05T13:31:15
2018-07-05T13:31:15
137,683,859
0
0
null
null
null
null
UTF-8
Java
false
false
330
java
package com.lohika.jclub.graphqljava; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class GraphqlJavaApplication { public static void main(String[] args) { SpringApplication.run(GraphqlJavaApplication.class, args); } }
[ "banadiga@gmail.com" ]
banadiga@gmail.com
caae8e8624bb2eefe8eb871296cacc9d8ecbf2ce
1550f394fe50631463274758a1809ce29aff66bc
/src/main/java/io/openliberty/sample/hello/HelloResource.java
a0906140006a9f56c9fb42f79b235e4d58d974d4
[ "Apache-2.0" ]
permissive
sdaschner/jenkins-x-quickstart-liberty
a0d08439875bb4a4da18d608cc0d695236066ec8
db85b70b483406e296774fa67c889373134b718d
refs/heads/master
2021-07-08T22:24:27.883977
2019-09-23T08:25:45
2019-09-23T08:25:45
200,991,885
0
0
Apache-2.0
2020-10-13T15:09:41
2019-08-07T06:59:03
Java
UTF-8
Java
false
false
204
java
package io.openliberty.sample.hello; import javax.ws.rs.GET; import javax.ws.rs.Path; @Path("hello") public class HelloResource { @GET public String hello() { return "Hello"; } }
[ "git@sebastian-daschner.de" ]
git@sebastian-daschner.de
bfa74fe63635b51ba09b4844ca71240b8f35cf08
ba2eef5e3c914673103afb944dd125a9e846b2f6
/AL-Game/data/scripts/system/handlers/quest/beshmundir/_30302MysteriousMotives.java
db07712a63803a161f207a22b0633897db6264d7
[]
no_license
makifgokce/Aion-Server-4.6
519d1d113f483b3e6532d86659932a266d4da2f8
0a6716a7aac1f8fe88780aeed68a676b9524ff15
refs/heads/master
2022-10-07T11:32:43.716259
2020-06-10T20:14:47
2020-06-10T20:14:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,472
java
/** * This file is part of Aion-Lightning <aion-lightning.org>. * * Aion-Lightning 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. * * Aion-Lightning 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 Aion-Lightning. * If not, see <http://www.gnu.org/licenses/>. */ package quest.beshmundir; import com.aionemu.gameserver.model.gameobjects.Npc; import com.aionemu.gameserver.model.gameobjects.player.Player; import com.aionemu.gameserver.network.aion.serverpackets.SM_DIALOG_WINDOW; import com.aionemu.gameserver.questEngine.handlers.QuestHandler; import com.aionemu.gameserver.model.DialogAction; import com.aionemu.gameserver.questEngine.model.QuestEnv; import com.aionemu.gameserver.questEngine.model.QuestState; import com.aionemu.gameserver.questEngine.model.QuestStatus; import com.aionemu.gameserver.utils.PacketSendUtility; /** * @author Gigi */ public class _30302MysteriousMotives extends QuestHandler { private final static int questId = 30302; public _30302MysteriousMotives() { super(questId); } @Override public void register() { qe.registerQuestNpc(799225).addOnQuestStart(questId); qe.registerQuestNpc(799225).addOnTalkEvent(questId); qe.registerQuestNpc(799240).addOnTalkEvent(questId); qe.registerQuestNpc(799243).addOnTalkEvent(questId); } @Override public boolean onDialogEvent(QuestEnv env) { final Player player = env.getPlayer(); int targetId = 0; if (env.getVisibleObject() instanceof Npc) { targetId = ((Npc) env.getVisibleObject()).getNpcId(); } QuestState qs = player.getQuestStateList().getQuestState(questId); if (targetId == 799225) { if (qs == null) { if (env.getDialog() == DialogAction.QUEST_SELECT) { return sendQuestDialog(env, 1011); } else { return sendQuestStartDialog(env); } } } else if (targetId == 799240) { if (qs != null && qs.getStatus() == QuestStatus.START && qs.getQuestVarById(0) == 0) { if (env.getDialog() == DialogAction.QUEST_SELECT) { return sendQuestDialog(env, 1352); } else if (env.getDialog() == DialogAction.SETPRO1) { qs.setQuestVarById(0, qs.getQuestVarById(0) + 1); updateQuestStatus(env); PacketSendUtility.sendPacket(player, new SM_DIALOG_WINDOW(env.getVisibleObject().getObjectId(), 10)); return true; } else { return sendQuestStartDialog(env); } } } else if (targetId == 799243) { if (qs != null) { if (env.getDialog() == DialogAction.QUEST_SELECT && qs.getStatus() == QuestStatus.START) { return sendQuestDialog(env, 2375); } else if (env.getDialogId() == DialogAction.SELECT_QUEST_REWARD.id() && qs.getStatus() != QuestStatus.COMPLETE && qs.getStatus() != QuestStatus.NONE) { qs.setQuestVar(3); qs.setStatus(QuestStatus.REWARD); updateQuestStatus(env); return sendQuestEndDialog(env); } else { return sendQuestEndDialog(env); } } } return false; } }
[ "Falke_34@080676fd-0f56-412f-822c-f8f0d7cea3b7" ]
Falke_34@080676fd-0f56-412f-822c-f8f0d7cea3b7
be50831d913b61de37a39941ee002e48090f8951
044782efb5a96264419b93de7735265a5b300f3a
/app/src/main/java/com/vma/speechrobot/presenter/impl/ITaskCreatePresenter.java
6d45dacc9529887450cae0b6493344dee5c9aa97
[]
no_license
Bingoliallen/SpeechRobot
c285593ce5feedc03079590ca39a533006d63c75
3756877a1d934685982af9947b13d57dd9a14864
refs/heads/master
2022-07-31T11:08:25.442831
2020-05-26T07:34:50
2020-05-26T07:34:50
266,972,255
0
1
null
null
null
null
UTF-8
Java
false
false
2,182
java
package com.vma.speechrobot.presenter.impl; import com.example.common.presenter.IBasePresenter; import com.vma.speechrobot.bean.CreateTask; import com.vma.speechrobot.bean.Customer; import com.vma.speechrobot.bean.Employee; import com.vma.speechrobot.bean.MessageCount; import com.vma.speechrobot.bean.MessageTemplate; import com.vma.speechrobot.bean.PageBean; import com.vma.speechrobot.bean.ReqAddTask; import com.vma.speechrobot.bean.TaskCardOption; import com.vma.speechrobot.bean.TaskDefault; import com.vma.speechrobot.bean.TimeTemplateOption; import com.vma.speechrobot.bean.WhisperingOption; /** * Created by Administrator on 2018/12/31. */ public interface ITaskCreatePresenter extends IBasePresenter { void transferemployee(); void createtask(ReqAddTask mReqAddTask); void taskdefault(); void message_count(); void messageTemplate(Integer type); void messageTemplate2(Integer type); void employee(String employee_name); void getFreeTaskCardOption(); void getWhisperingOption(); void getTaskCardOption(); void taskTimeTemplateOption(); void getHumanCardRelate(); // void firm_task(); void customer_list(Integer is_use , Integer page_num,Integer page_size); // void customerDeatil(Integer id); interface IView extends IBasePresenter.IView { void fillgetTaskCardOption(TaskCardOption[] data); void fillgetWhisperingOption(WhisperingOption[] data); void fillgetFreeTaskCardOption(TaskCardOption[] data); void fillemployee(Employee[] data); void fillmessage_count(MessageCount data); void fillmessageTemplate(MessageTemplate[] data); void fillmessageTemplate2(MessageTemplate[] data); void filltaskTimeTemplateOption(TimeTemplateOption[] data); void fillgetHumanCardRelate(TaskCardOption[] data); void fillcustomer_list(PageBean<Customer> data); //void fillfirm_task(FirmTask[] data); // void fillcustomerDeatil(CustomerDeatil data); void filltaskdefault(TaskDefault data); void fillcreatetask(CreateTask data); void filltransferemployee(Employee[] data); } }
[ "1241903717@qq.com" ]
1241903717@qq.com
59a38f8bf77755c920dc50f10d4a2a7001414c96
5f7149583cbe2e556b8bd4677f3654ed810b2c03
/gen/net/masterthought/dlanguage/psi/impl/DLanguageEnumBodyImpl.java
04e969d8ff375e0a5fc7712d952d69c8f3c81f4a
[]
no_license
FrankLIKE/DLanguage
73426dc1d845e7eb65e2dc8aa7728f3aa7eaa293
9e8dda435e5b8d07c422bd30b330e535cbcdf1ae
refs/heads/master
2021-01-22T03:08:30.845571
2014-12-17T20:52:54
2014-12-17T20:52:54
null
0
0
null
null
null
null
UTF-8
Java
false
true
1,204
java
// This is a generated file. Not intended for manual editing. package net.masterthought.dlanguage.psi.impl; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.lang.ASTNode; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; import static net.masterthought.dlanguage.psi.DLanguageTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; import net.masterthought.dlanguage.psi.*; public class DLanguageEnumBodyImpl extends ASTWrapperPsiElement implements DLanguageEnumBody { public DLanguageEnumBodyImpl(ASTNode node) { super(node); } public void accept(@NotNull PsiElementVisitor visitor) { if (visitor instanceof DLanguageVisitor) ((DLanguageVisitor)visitor).visitEnumBody(this); else super.accept(visitor); } @Override @NotNull public List<DLanguageEnumMember> getEnumMemberList() { return PsiTreeUtil.getChildrenOfTypeAsList(this, DLanguageEnumMember.class); } @Override @Nullable public PsiElement getLBrace() { return findChildByType(LBRACE); } @Override @Nullable public PsiElement getRBrace() { return findChildByType(RBRACE); } }
[ "kingsleyhendrickse@me.com" ]
kingsleyhendrickse@me.com
6e0d87271fe45186fb0c7d0057914a459cbab89c
fb079e82c42cea89a3faea928d4caf0df4954b05
/Физкультура/ВДНХ/VelnessBMSTU_v1.2b_apkpure.com_source_from_JADX/com/google/android/gms/internal/zzeex.java
10b747168e35c74b6e9f79d3f7781c91e1f001c8
[]
no_license
Belousov-EA/university
33c80c701871379b6ef9aa3da8f731ccf698d242
6ec7303ca964081c52f259051833a045f0c91a39
refs/heads/master
2022-01-21T17:46:30.732221
2022-01-10T20:27:15
2022-01-10T20:27:15
123,337,018
1
1
null
null
null
null
UTF-8
Java
false
false
2,885
java
package com.google.android.gms.internal; import com.google.android.gms.measurement.AppMeasurement.Param; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; public final class zzeex { public static zzecy zza(zzecy com_google_android_gms_internal_zzecy, Map<String, Object> map) { zzecy zzbvq = zzecy.zzbvq(); Iterator it = com_google_android_gms_internal_zzecy.iterator(); zzecy com_google_android_gms_internal_zzecy2 = zzbvq; while (it.hasNext()) { Entry entry = (Entry) it.next(); com_google_android_gms_internal_zzecy2 = com_google_android_gms_internal_zzecy2.zze((zzedk) entry.getKey(), zza((zzekd) entry.getValue(), (Map) map)); } return com_google_android_gms_internal_zzecy2; } public static zzekd zza(zzekd com_google_android_gms_internal_zzekd, Map<String, Object> map) { Map map2; Object value = com_google_android_gms_internal_zzekd.zzbzv().getValue(); if (value instanceof Map) { map2 = (Map) value; if (map2.containsKey(".sv")) { value = map.get((String) map2.get(".sv")); } } zzekd zzc = zzekj.zzc(null, value); if (com_google_android_gms_internal_zzekd.zzbzu()) { value = com_google_android_gms_internal_zzekd.getValue(); if (value instanceof Map) { map2 = (Map) value; if (map2.containsKey(".sv")) { String str = (String) map2.get(".sv"); if (map.containsKey(str)) { value = map.get(str); } } } return (value.equals(com_google_android_gms_internal_zzekd.getValue()) && zzc.equals(com_google_android_gms_internal_zzekd.zzbzv())) ? com_google_android_gms_internal_zzekd : zzekg.zza(value, zzc); } else if (com_google_android_gms_internal_zzekd.isEmpty()) { return com_google_android_gms_internal_zzekd; } else { zzeji com_google_android_gms_internal_zzeji = (zzeji) com_google_android_gms_internal_zzekd; zzefa com_google_android_gms_internal_zzefa = new zzefa(com_google_android_gms_internal_zzeji); com_google_android_gms_internal_zzeji.zza(new zzeez(map, com_google_android_gms_internal_zzefa), false); return !com_google_android_gms_internal_zzefa.zzbwr().zzbzv().equals(zzc) ? com_google_android_gms_internal_zzefa.zzbwr().zzf(zzc) : com_google_android_gms_internal_zzefa.zzbwr(); } } public static Map<String, Object> zza(zzeli com_google_android_gms_internal_zzeli) { Map<String, Object> hashMap = new HashMap(); hashMap.put(Param.TIMESTAMP, Long.valueOf(com_google_android_gms_internal_zzeli.millis())); return hashMap; } }
[ "Belousov.EA98@gmail.com" ]
Belousov.EA98@gmail.com
930458ac855ec657076ad737b2de34f8c7145927
ca030864a3a1c24be6b9d1802c2353da4ca0d441
/classes11.dex_source_from_JADX/com/facebook/feedplugins/instagram/InstagramPromoteUnitHScrollPartDefinition.java
4a455bf6abb3602451d54bec2bbc22adb9565e3d
[]
no_license
pxson001/facebook-app
87aa51e29195eeaae69adeb30219547f83a5b7b1
640630f078980f9818049625ebc42569c67c69f7
refs/heads/master
2020-04-07T20:36:45.758523
2018-03-07T09:04:57
2018-03-07T09:04:57
124,208,458
4
0
null
null
null
null
UTF-8
Java
false
false
8,025
java
package com.facebook.feedplugins.instagram; import android.content.Context; import com.facebook.common.propertybag.PropertyBag; import com.facebook.common.util.SizeUtil; import com.facebook.feed.environment.HasContext; import com.facebook.feed.environment.HasPersistentState; import com.facebook.feed.environment.HasPositionInformation; import com.facebook.feed.rows.core.parts.MultiRowSinglePartDefinition; import com.facebook.feed.rows.core.props.FeedProps; import com.facebook.feed.rows.sections.hscrollrecyclerview.HScrollRecyclerViewRowType; import com.facebook.feed.rows.sections.hscrollrecyclerview.PageStyle; import com.facebook.feed.rows.sections.hscrollrecyclerview.PageSwitcherPartDefinition; import com.facebook.feed.rows.sections.hscrollrecyclerview.PageSwitcherPartDefinition.Controller; import com.facebook.feed.rows.sections.hscrollrecyclerview.PersistentRecyclerPartDefinition; import com.facebook.feed.rows.sections.hscrollrecyclerview.PersistentRecyclerPartDefinition.Callbacks; import com.facebook.feed.rows.styling.BackgroundPartDefinition; import com.facebook.feed.rows.styling.BackgroundPartDefinition.StylingData; import com.facebook.feed.util.render.FeedRenderUtils; import com.facebook.feedplugins.instagram.InstagramPromoteUnitItemPartDefinition.Props; import com.facebook.graphql.model.GraphQLInstagramPhotosFromFriendsFeedUnit; import com.facebook.graphql.model.InstagramPhotosFromFriendsPhoto; import com.facebook.graphql.model.ScrollableItemListFeedUnitImpl; import com.facebook.graphql.model.VisibleItemHelper; import com.facebook.graphql.model.interfaces.CacheableEntity; import com.facebook.inject.ContextScope; import com.facebook.inject.ContextScoped; import com.facebook.inject.InjectorLike; import com.facebook.inject.InjectorThreadStack; import com.facebook.inject.ProvisioningException; import com.facebook.inject.ScopeSet; import com.facebook.multirow.api.AnyEnvironment; import com.facebook.multirow.api.SinglePartDefinitionWithViewType; import com.facebook.multirow.api.SubParts; import com.facebook.multirow.api.ViewType; import com.facebook.widget.hscrollrecyclerview.HScrollRecyclerView; import com.google.common.collect.ImmutableList; import javax.inject.Inject; @ContextScoped /* compiled from: creationTimeMs */ public class InstagramPromoteUnitHScrollPartDefinition<E extends HasPositionInformation & HasPersistentState & HasContext> extends MultiRowSinglePartDefinition<FeedProps<GraphQLInstagramPhotosFromFriendsFeedUnit>, Void, E, HScrollRecyclerView> { private static InstagramPromoteUnitHScrollPartDefinition f7925g; private static final Object f7926h = new Object(); private final BackgroundPartDefinition f7927a; private final PageSwitcherPartDefinition f7928b; private final PersistentRecyclerPartDefinition<Props, E> f7929c; public final InstagramPromoteUnitItemPartDefinition f7930d; private final Context f7931e; private final FeedRenderUtils f7932f; private static InstagramPromoteUnitHScrollPartDefinition m9016b(InjectorLike injectorLike) { return new InstagramPromoteUnitHScrollPartDefinition(BackgroundPartDefinition.a(injectorLike), PersistentRecyclerPartDefinition.a(injectorLike), PageSwitcherPartDefinition.a(injectorLike), InstagramPromoteUnitItemPartDefinition.m9032a(injectorLike), (Context) injectorLike.getInstance(Context.class), FeedRenderUtils.a(injectorLike)); } public final Object m9018a(SubParts subParts, Object obj, AnyEnvironment anyEnvironment) { FeedProps feedProps = (FeedProps) obj; final GraphQLInstagramPhotosFromFriendsFeedUnit graphQLInstagramPhotosFromFriendsFeedUnit = (GraphQLInstagramPhotosFromFriendsFeedUnit) feedProps.a; final Controller controller = new Controller(); subParts.a(this.f7927a, new StylingData(feedProps, PageStyle.a)); subParts.a(this.f7928b, controller); int c = SizeUtil.c(this.f7931e, (float) this.f7932f.a()); PersistentRecyclerPartDefinition persistentRecyclerPartDefinition = this.f7929c; PageStyle a = PageStyle.a(c, true, true); int ac_ = graphQLInstagramPhotosFromFriendsFeedUnit.ac_(); final ImmutableList a2 = ScrollableItemListFeedUnitImpl.a(graphQLInstagramPhotosFromFriendsFeedUnit); subParts.a(persistentRecyclerPartDefinition, new PersistentRecyclerPartDefinition.Props(a, ac_, new Callbacks<Props, E>(this) { final /* synthetic */ InstagramPromoteUnitHScrollPartDefinition f7924d; public final SinglePartDefinitionWithViewType<Props, ?, ? super E, ?> m9012a(int i) { return this.f7924d.f7930d; } public final Object m9013b(int i) { return new Props((InstagramPhotosFromFriendsPhoto) a2.get(i), controller); } public final void m9014c(int i) { VisibleItemHelper.a(graphQLInstagramPhotosFromFriendsFeedUnit, a2, i); } public final int m9011a() { return a2.size(); } }, graphQLInstagramPhotosFromFriendsFeedUnit.g(), new CacheableEntity(this) { final /* synthetic */ InstagramPromoteUnitHScrollPartDefinition f7920b; public final String m9010g() { return graphQLInstagramPhotosFromFriendsFeedUnit.g(); } })); return null; } @Inject public InstagramPromoteUnitHScrollPartDefinition(BackgroundPartDefinition backgroundPartDefinition, PersistentRecyclerPartDefinition persistentRecyclerPartDefinition, PageSwitcherPartDefinition pageSwitcherPartDefinition, InstagramPromoteUnitItemPartDefinition instagramPromoteUnitItemPartDefinition, Context context, FeedRenderUtils feedRenderUtils) { this.f7927a = backgroundPartDefinition; this.f7929c = persistentRecyclerPartDefinition; this.f7928b = pageSwitcherPartDefinition; this.f7930d = instagramPromoteUnitItemPartDefinition; this.f7931e = context; this.f7932f = feedRenderUtils; } public static InstagramPromoteUnitHScrollPartDefinition m9015a(InjectorLike injectorLike) { ScopeSet a = ScopeSet.a(); byte b = a.b((byte) 8); try { Context b2 = injectorLike.getScopeAwareInjector().b(); if (b2 == null) { throw new ProvisioningException("Called context scoped provider outside of context scope"); } InstagramPromoteUnitHScrollPartDefinition b3; ContextScope contextScope = (ContextScope) injectorLike.getInstance(ContextScope.class); PropertyBag a2 = ContextScope.a(b2); synchronized (f7926h) { InstagramPromoteUnitHScrollPartDefinition instagramPromoteUnitHScrollPartDefinition; if (a2 != null) { instagramPromoteUnitHScrollPartDefinition = (InstagramPromoteUnitHScrollPartDefinition) a2.a(f7926h); } else { instagramPromoteUnitHScrollPartDefinition = f7925g; } if (instagramPromoteUnitHScrollPartDefinition == null) { InjectorThreadStack injectorThreadStack = injectorLike.getInjectorThreadStack(); contextScope.a(b2, injectorThreadStack); try { b3 = m9016b(injectorThreadStack.e()); if (a2 != null) { a2.a(f7926h, b3); } else { f7925g = b3; } } finally { ContextScope.a(injectorThreadStack); } } else { b3 = instagramPromoteUnitHScrollPartDefinition; } } return b3; } finally { a.c(b); } } public final ViewType m9017a() { return HScrollRecyclerViewRowType.a; } public final boolean m9019a(Object obj) { return true; } }
[ "son.pham@jmango360.com" ]
son.pham@jmango360.com
41d1d00c7a415bbe0010cfbf9635b11bafe7bc5e
995f73d30450a6dce6bc7145d89344b4ad6e0622
/Honor5C-7.0/src/main/java/com/android/internal/net/LegacyVpnInfo.java
7c8dea22e55aff4dd02c148ff2c3bea5316688e1
[]
no_license
morningblu/HWFramework
0ceb02cbe42585d0169d9b6c4964a41b436039f5
672bb34094b8780806a10ba9b1d21036fd808b8e
refs/heads/master
2023-07-29T05:26:14.603817
2021-09-03T05:23:34
2021-09-03T05:23:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,424
java
package com.android.internal.net; import android.app.PendingIntent; import android.net.NetworkInfo; import android.net.NetworkInfo.DetailedState; import android.os.Parcel; import android.os.Parcelable; import android.os.Parcelable.Creator; import android.util.Log; public class LegacyVpnInfo implements Parcelable { private static final /* synthetic */ int[] -android-net-NetworkInfo$DetailedStateSwitchesValues = null; public static final Creator<LegacyVpnInfo> CREATOR = null; public static final int STATE_CONNECTED = 3; public static final int STATE_CONNECTING = 2; public static final int STATE_DISCONNECTED = 0; public static final int STATE_FAILED = 5; public static final int STATE_INITIALIZING = 1; public static final int STATE_TIMEOUT = 4; private static final String TAG = "LegacyVpnInfo"; public PendingIntent intent; public String key; public int state; private static /* synthetic */ int[] -getandroid-net-NetworkInfo$DetailedStateSwitchesValues() { if (-android-net-NetworkInfo$DetailedStateSwitchesValues != null) { return -android-net-NetworkInfo$DetailedStateSwitchesValues; } int[] iArr = new int[DetailedState.values().length]; try { iArr[DetailedState.AUTHENTICATING.ordinal()] = STATE_FAILED; } catch (NoSuchFieldError e) { } try { iArr[DetailedState.BLOCKED.ordinal()] = 6; } catch (NoSuchFieldError e2) { } try { iArr[DetailedState.CAPTIVE_PORTAL_CHECK.ordinal()] = 7; } catch (NoSuchFieldError e3) { } try { iArr[DetailedState.CONNECTED.ordinal()] = STATE_INITIALIZING; } catch (NoSuchFieldError e4) { } try { iArr[DetailedState.CONNECTING.ordinal()] = STATE_CONNECTING; } catch (NoSuchFieldError e5) { } try { iArr[DetailedState.DISCONNECTED.ordinal()] = STATE_CONNECTED; } catch (NoSuchFieldError e6) { } try { iArr[DetailedState.DISCONNECTING.ordinal()] = 8; } catch (NoSuchFieldError e7) { } try { iArr[DetailedState.FAILED.ordinal()] = STATE_TIMEOUT; } catch (NoSuchFieldError e8) { } try { iArr[DetailedState.IDLE.ordinal()] = 9; } catch (NoSuchFieldError e9) { } try { iArr[DetailedState.OBTAINING_IPADDR.ordinal()] = 10; } catch (NoSuchFieldError e10) { } try { iArr[DetailedState.SCANNING.ordinal()] = 11; } catch (NoSuchFieldError e11) { } try { iArr[DetailedState.SUSPENDED.ordinal()] = 12; } catch (NoSuchFieldError e12) { } try { iArr[DetailedState.VERIFYING_POOR_LINK.ordinal()] = 13; } catch (NoSuchFieldError e13) { } -android-net-NetworkInfo$DetailedStateSwitchesValues = iArr; return iArr; } static { /* JADX: method processing error */ /* Error: jadx.core.utils.exceptions.DecodeException: Load method exception in method: com.android.internal.net.LegacyVpnInfo.<clinit>():void at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:113) at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:256) at jadx.core.ProcessClass.process(ProcessClass.java:34) at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:281) at jadx.api.JavaClass.decompile(JavaClass.java:59) at jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:161) Caused by: jadx.core.utils.exceptions.DecodeException: in method: com.android.internal.net.LegacyVpnInfo.<clinit>():void at jadx.core.dex.instructions.InsnDecoder.decodeInsns(InsnDecoder.java:46) at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:98) ... 5 more Caused by: java.lang.IllegalArgumentException: bogus opcode: 0073 at com.android.dx.io.OpcodeInfo.get(OpcodeInfo.java:1197) at com.android.dx.io.OpcodeInfo.getFormat(OpcodeInfo.java:1212) at com.android.dx.io.instructions.DecodedInstruction.decode(DecodedInstruction.java:72) at jadx.core.dex.instructions.InsnDecoder.decodeInsns(InsnDecoder.java:43) ... 6 more */ /* // Can't load method instructions. */ throw new UnsupportedOperationException("Method not decompiled: com.android.internal.net.LegacyVpnInfo.<clinit>():void"); } public LegacyVpnInfo() { this.state = -1; } public int describeContents() { return STATE_DISCONNECTED; } public void writeToParcel(Parcel out, int flags) { out.writeString(this.key); out.writeInt(this.state); out.writeParcelable(this.intent, flags); } public static int stateFromNetworkInfo(NetworkInfo info) { switch (-getandroid-net-NetworkInfo$DetailedStateSwitchesValues()[info.getDetailedState().ordinal()]) { case STATE_INITIALIZING /*1*/: return STATE_CONNECTED; case STATE_CONNECTING /*2*/: return STATE_CONNECTING; case STATE_CONNECTED /*3*/: return STATE_DISCONNECTED; case STATE_TIMEOUT /*4*/: return STATE_FAILED; default: Log.w(TAG, "Unhandled state " + info.getDetailedState() + " ; treating as disconnected"); return STATE_DISCONNECTED; } } }
[ "dstmath@163.com" ]
dstmath@163.com
b2190f15ffb153ebe4aa204124a4bc03e65c4a80
75950d61f2e7517f3fe4c32f0109b203d41466bf
/tests/tags/ci-1.9.6/test-xquery-exist/test-xquery-exist/src/main/java/tests/xquery/AdvancedService.java
9d4bd0217a4d3da592affce95fd76a0eff0762dd
[]
no_license
codehaus/fabric3
3677d558dca066fb58845db5b0ad73d951acf880
491ff9ddaff6cb47cbb4452e4ddbf715314cd340
refs/heads/master
2023-07-20T00:34:33.992727
2012-10-31T16:32:19
2012-10-31T16:32:19
36,338,853
0
0
null
null
null
null
UTF-8
Java
false
false
1,759
java
/* * Fabric3 * Copyright � 2008 Metaform Systems Limited * * This proprietary software may be used only connection with the Fabric3 license * (the �License�), a copy of which is included in the software or may be * obtained at: http://www.metaformsystems.com/licenses/license.html. * Software distributed under the License is distributed on an �as is� basis, * without warranties or conditions of any kind. See the License for the * specific language governing permissions and limitations of use of the software. * This software is distributed in conjunction with other software licensed under * different terms. See the separate licenses for those programs included in the * distribution for the permitted and restricted uses of such software. * */ package tests.xquery; import java.util.List; import org.w3c.dom.Document; import org.w3c.dom.Node; import org.w3c.dom.NodeList; /** * @version $Rev$ $Date$ */ public interface AdvancedService { //XMLStreamReader xmlStream(XMLStreamReader reader); Document xmlDoc(Document doc ); NodeList xmlNodeList(NodeList list); Node xmlNode(Node node); boolean primativeBoolean(boolean boo); double primativeDouble(double dbl); float primativeFloat(float fl); int primativeInteger(int in); short primativeShort(short srt); //char primativeCharacter(char cr); String primativeString(String str); void primativeVoid(); String primativeNull(String val); String [] listArray(String [] list); List listList(List list); String subFunction(String str); String multiParmFunction(String str, int[] list1,List list2, float flt, Document doc); String referenceFunction(String val, String[] list); //String varFunction(); }
[ "jmarino@83866bfc-822f-0410-aa35-bd5043b85eaf" ]
jmarino@83866bfc-822f-0410-aa35-bd5043b85eaf
4005023d0186e25d9f4e87fbec801f143c115022
cd6cfb020af04c4e08046b4f63f292048e859d10
/src/main/java/jp/co/daitoku_sh/dfcm/dfcmmain/dao/sei/impl/Sei0103d01Dao.java
3ed05e1f70d0ecfe530525e2f565133fb19d12c3
[]
no_license
ka-kou/hello-world
460045d66f589699cc3e5b3bb6a5d7cb68de1174
3bc0dab3123cbf2549a910591c73eca825ad0a24
refs/heads/master
2020-04-01T05:57:49.952578
2017-08-15T07:02:34
2017-08-15T07:02:34
152,927,261
0
0
null
null
null
null
UTF-8
Java
false
false
1,306
java
/* * パッケージ名:jp.co.daitoku_sh.dfcm.dfcmmain.dao.sei.impl * ファイル名:Sei0103d01Dao.java * * 作成者:都築電気株式会社 * 作成日:2015/11/27 * * 履歴 * ------------------------------------------------------------------------- * 日付 指示者 担当 内容 * ------------------------------------------------------------------------- * 2015/11/27 1.00 ACT)ANZAI 新規開発 * ------------------------------------------------------------------------- * * ALL RIGHTS RESERVED COPYRIGHT (C)2015 TSUZUKI DENKI CO.,LTD. */ package jp.co.daitoku_sh.dfcm.dfcmmain.dao.sei.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import jp.co.daitoku_sh.dfcm.dfcmmain.db.mapper.Sei0103d01Mapper; /** * 臨時請求締め処理用 Dao * * @author anzai * @version 1.0.0 * @since 1.0.0 * */ @Component public class Sei0103d01Dao { @Autowired private Sei0103d01Mapper sei0103d01Mapper; /** * sei0103d01Mapper getter. * */ public Sei0103d01Mapper getSei0103d01Mapper() { return sei0103d01Mapper; } /** * sei0103d01Mapper setter. * */ public void setSei0103d01Mapper(Sei0103d01Mapper sei0103d01Mapper) { this.sei0103d01Mapper = sei0103d01Mapper; } }
[ "hiepit07@gmail.com" ]
hiepit07@gmail.com
7c7a9dd17f6c45dec43912207441eb412f608921
704507754a9e7f300dfab163e97cd976b677661b
/src/java/awt/peer/ListPeer.java
6291f61d430dfd316b6344c842fbcbe757ec3e89
[]
no_license
ossaw/jdk
60e7ca5e9f64541d07933af25c332e806e914d2a
b9d61d6ade341b4340afb535b499c09a8be0cfc8
refs/heads/master
2020-03-27T02:23:14.010857
2019-08-07T06:32:34
2019-08-07T06:32:34
145,785,700
0
0
null
null
null
null
UTF-8
Java
false
false
3,210
java
/* * Copyright (c) 1995, 1998, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.awt.peer; import java.awt.Dimension; import java.awt.List; /** * The peer interface for {@link List}. * The peer interfaces are intended only for use in porting the AWT. They are * not intended for use by application developers, and developers should not * implement peers nor invoke any of the peer methods directly on the peer * instances. */ public interface ListPeer extends ComponentPeer { /** * Returns the indices of the list items that are currently selected. The * returned array is not required to be a copy, the callers of this method * already make sure it is not modified. * * @return the indices of the list items that are currently selected * @see List#getSelectedIndexes() */ int[] getSelectedIndexes(); /** * Adds an item to the list at the specified index. * * @param item * the item to add to the list * @param index * the index where to add the item into the list * @see List#add(String, int) */ void add(String item, int index); /** * Deletes items from the list. All items from start to end should are * deleted, including the item at the start and end indices. * * @param start * the first item to be deleted * @param end * the last item to be deleted */ void delItems(int start, int end); /** * Removes all items from the list. * * @see List#removeAll() */ void removeAll(); /** * Selects the item at the specified {@code index}. * * @param index * the index of the item to select * @see List#select(int) */ void select(int index); /** * De-selects the item at the specified {@code index}. * * @param index * the index of the item to de-select * @see List#deselect(int) */ void deselect(int index); /** * Makes sure that the item at the specified {@code index} is visible, by * scrolling the list or similar. * * @param index * the index of the item to make visible * @see List#makeVisible(int) */ void makeVisible(int index); /** * Toggles multiple selection mode on or off. * * @param m * {@code true} for multiple selection mode, {@code false} for * single selection mode * @see List#setMultipleMode(boolean) */ void setMultipleMode(boolean m); /** * Returns the preferred size for a list with the specified number of rows. * * @param rows * the number of rows * @return the preferred size of the list * @see List#getPreferredSize(int) */ Dimension getPreferredSize(int rows); /** * Returns the minimum size for a list with the specified number of rows. * * @param rows * the number of rows * @return the minimum size of the list * @see List#getMinimumSize(int) */ Dimension getMinimumSize(int rows); }
[ "jianghao7625@gmail.com" ]
jianghao7625@gmail.com
1d5cbd2aa38376187a9608bcb4d86325e34f6d84
dddbc98625203127ffc5190b25a013334b7ec690
/dependencies/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/view/CDOViewTargetChangedEvent.java
74500727039738b933d7e9a4ebeb69baea30b790
[ "LicenseRef-scancode-free-unknown", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain", "EPL-1.0" ]
permissive
IHTSDO/snow-owl
55fdcd5966fba335d5226c52002405334c17d0db
90c17b806956ad15cdc66649aa4e193bad21ff46
refs/heads/master
2021-01-19T06:25:04.680073
2019-08-09T09:26:27
2019-08-09T09:26:27
32,463,362
12
1
Apache-2.0
2019-05-23T08:55:43
2015-03-18T14:22:29
Java
UTF-8
Java
false
false
957
java
/* * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: * Victor Roldan Betancort - initial API and implementation * Eike Stepper - maintenance */ package org.eclipse.emf.cdo.view; import org.eclipse.emf.cdo.common.branch.CDOBranchPoint; /** * A {@link CDOViewEvent view event} fired when the branch point of a {@link CDOView view} has changed. * * @author Victor Roldan Betancort * @since 3.0 * @noextend This interface is not intended to be extended by clients. * @noimplement This interface is not intended to be implemented by clients. */ public interface CDOViewTargetChangedEvent extends CDOViewEvent { public CDOBranchPoint getBranchPoint(); }
[ "bbanfai@b2international.com" ]
bbanfai@b2international.com
6cb0c9152af9f8453858757292dddfe873e2d2f6
6249a2b3928e2509b8a5d909ef9d8e18221d9637
/revolsys-odata/src/main/java/org/apache/olingo/commons/api/edm/annotation/EdmIsOf.java
a92d301c0f09ff755bae77bd86aca31124709c56
[ "Apache-2.0" ]
permissive
revolsys/com.revolsys.open
dbcdc3bdcee3276dc3680311948e91ec64e1264e
7f4385c632094eb5ed67c0646ee3e2e258fba4e4
refs/heads/main
2023-08-22T17:18:48.499931
2023-05-31T01:59:22
2023-05-31T01:59:22
2,709,026
5
11
NOASSERTION
2023-05-31T01:59:23
2011-11-04T12:33:49
Java
UTF-8
Java
false
false
1,880
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.olingo.commons.api.edm.annotation; import org.apache.olingo.commons.api.edm.EdmAnnotatable; import org.apache.olingo.commons.api.edm.EdmType; import org.apache.olingo.commons.api.edm.geo.SRID; /** * The edm:IsOf expression evaluates a child expression and returns a Boolean value indicating whether * the child expression returns the specified type */ public interface EdmIsOf extends EdmDynamicExpression, EdmAnnotatable { /** * Facet MaxLength * @return fact MaxLength */ Integer getMaxLength(); /** * Facet Precision * @return fact Precision */ Integer getPrecision(); /** * Facet Scale * @return facet Scale */ Integer getScale(); /** * Facet SRID * @return facet SRID */ SRID getSrid(); /** * The type which is checked again the child expression * @return EdmType */ EdmType getType(); /** * Returns true if the child expression returns the specified typed * @return Returns true if the child expression returns the specified typed */ EdmExpression getValue(); }
[ "pauldaustin@users.noreply.github.com" ]
pauldaustin@users.noreply.github.com
8a013afa0b5e31eb788b79bbfcbad5de23e5b54a
810f0996d31824a28d32ec8fac169dc9e3b91b5d
/java-collections/src/com/Map_Colln_Demo.java
1bd6a68dd95f101c56e274be02be0ea6a2f58c53
[]
no_license
nagabhushanamn/cts-avm
f5e432ca52a764489494803ced3c33552d5680e5
b3b251f5274090cbe222bb393244f502ead7f938
refs/heads/master
2021-01-15T08:27:37.995523
2017-08-24T10:16:21
2017-08-24T10:16:21
99,566,731
0
1
null
null
null
null
UTF-8
Java
false
false
480
java
package com; import java.util.Map; import java.util.Set; import java.util.TreeMap; public class Map_Colln_Demo { public static void main(String[] args) { Map<String, String> map = new TreeMap<>(); map.put("123456", "value1"); map.put("456789", "value2"); // System.out.println(map.get("123456")); // ------------------------------------- Set<String> keys = map.keySet(); for (String key : keys) { System.out.println(key + "\t" + map.get(key)); } } }
[ "nagabhushanamn@gmail.com" ]
nagabhushanamn@gmail.com
26fdd1fe6dbab3ccffe3f3b995382cb0c24c40ca
293b1640eba7ddc7dd75a14b33b9aaa803caa906
/src/ec/ssr/functions/X733.java
087bda310b8bd6935bfa94329d795931c7665359
[]
no_license
luizvbo/ssr
a5703087456b3037c64082760c41e98cc31d4dcf
522ae0b7d72eb60f19cba30b876950871c7ae6db
refs/heads/master
2020-03-29T20:53:24.718687
2016-12-02T00:08:25
2016-12-02T00:08:25
150,337,098
0
0
null
null
null
null
UTF-8
Java
false
false
182
java
package ec.ssr.functions; public class X733 extends X{ @Override public String getVariableName() { return "x733"; } @Override public int getInputIndex() { return 732; } }
[ "luiz.vbo@gmail.com" ]
luiz.vbo@gmail.com
c1adbf3b9944ff53c038cdec4e8cb8f309e1f791
40665051fadf3fb75e5a8f655362126c1a2a3af6
/ibinti-bugvm/0248eed76c67ba07a04a79c2b55fb9581eae50b2/5389/Ping.java
ce58356390f68b7c399ee3c50c7c74e7e4f0532d
[]
no_license
fermadeiral/StyleErrors
6f44379207e8490ba618365c54bdfef554fc4fde
d1a6149d9526eb757cf053bc971dbd92b2bfcdf1
refs/heads/master
2020-07-15T12:55:10.564494
2019-10-24T02:30:45
2019-10-24T02:30:45
205,546,543
2
0
null
null
null
null
UTF-8
Java
false
false
1,999
java
/* * Copyright (C) 2012 Square, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.okhttp.internal.spdy; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; /** * A locally-originated ping. */ public final class Ping { private final CountDownLatch latch = new CountDownLatch(1); private long sent = -1; private long received = -1; Ping() { } void send() { if (sent != -1) throw new IllegalStateException(); sent = System.nanoTime(); } void receive() { if (received != -1 || sent == -1) throw new IllegalStateException(); received = System.nanoTime(); latch.countDown(); } void cancel() { if (received != -1 || sent == -1) throw new IllegalStateException(); received = sent - 1; latch.countDown(); } /** * Returns the round trip time for this ping in nanoseconds, waiting for the * response to arrive if necessary. Returns -1 if the response was * cancelled. */ public long roundTripTime() throws InterruptedException { latch.await(); return received - sent; } /** * Returns the round trip time for this ping in nanoseconds, or -1 if the * response was cancelled, or -2 if the timeout elapsed before the round * trip completed. */ public long roundTripTime(long timeout, TimeUnit unit) throws InterruptedException { if (latch.await(timeout, unit)) { return received - sent; } else { return -2; } } }
[ "fer.madeiral@gmail.com" ]
fer.madeiral@gmail.com
4318ca980c0a8e8bb0ee283e914689b0203368d1
b6ce7d6fd23aa20f6c30bafc0f376583b71d9cc6
/LeetCode/Problem_907_Sum_Of_Subarray_Minimums.java
e76bdc41250b43f44ab4fcb0d58828c26360dfa8
[]
no_license
Chiranjivee/ds-algo-practice-cj
d6b62b8c63aea1767ed40cd90870596e80314323
f72f6b0a69e6b03481c2439ef7a72879ad7d925d
refs/heads/develop
2023-02-08T17:37:21.828035
2020-12-30T09:03:06
2020-12-30T09:03:06
142,831,230
10
5
null
2020-12-04T06:12:22
2018-07-30T05:57:43
Java
UTF-8
Java
false
false
801
java
class Solution { public int sumSubarrayMins(int[] A) { int MOD = 1_000_000_007; Stack<RepInteger> stack = new Stack(); int ans = 0, dot = 0; for (int j = 0; j < A.length; ++j) { // Add all answers for subarrays [i, j], i <= j int count = 1; while (!stack.isEmpty() && stack.peek().val >= A[j]) { RepInteger node = stack.pop(); count += node.count; dot -= node.val * node.count; } stack.push(new RepInteger(A[j], count)); dot += A[j] * count; ans += dot; ans %= MOD; } return ans; } } class RepInteger { int val, count; RepInteger(int v, int c) { val = v; count = c; } }
[ "cjthehacker7@gmail.com" ]
cjthehacker7@gmail.com
1a80eb7e74865df223c1df29a64374bf96b44471
e75be673baeeddee986ece49ef6e1c718a8e7a5d
/submissions/blizzard/Corpus/eclipse.jdt.ui/5589.java
6a7c03255e9a83c5346f142a220906fec887be0d
[ "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
316
java
package p; import java.util.HashMap; import java.util.Iterator; import java.util.Map; class A { void sets() { Map map = new HashMap(); map.put("key", new Integer(17)); Iterator iter = map.entrySet().iterator(); Map.Entry entry = (Map.Entry) iter.next(); } }
[ "tim.menzies@gmail.com" ]
tim.menzies@gmail.com
f17c015887e641488f8a47ba195810f73d12addd
ca0e9689023cc9998c7f24b9e0532261fd976e0e
/src/com/tencent/mm/d/a/lj$b.java
3cde0f8e9ca154c2fc553d358e175195451db2bb
[]
no_license
honeyflyfish/com.tencent.mm
c7e992f51070f6ac5e9c05e9a2babd7b712cf713
ce6e605ff98164359a7073ab9a62a3f3101b8c34
refs/heads/master
2020-03-28T15:42:52.284117
2016-07-19T16:33:30
2016-07-19T16:33:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
224
java
package com.tencent.mm.d.a; public final class lj$b { public String aHN; public String aHP; } /* Location: * Qualified Name: com.tencent.mm.d.a.lj.b * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
5fa7ea8756eed773b32721ce7c198382069096b3
35632ad905d8f7057fafd811613e0f2383305e3c
/subgrade-stack/src/main/java/com/dwarfeng/subgrade/stack/cache/KeyListCache.java
d1b760ab30d694438e11f94b953bad213e9c21ad
[ "Apache-2.0" ]
permissive
DwArFeng/subgrade
82a1589863676598701525e4deb80b5ae014e0cb
b41da26629b1d3b46e549784cc4786a4a2ca03ea
refs/heads/master
2023-08-22T17:51:16.659855
2023-08-07T05:20:05
2023-08-07T06:44:49
235,097,227
2
0
Apache-2.0
2023-09-01T16:00:49
2020-01-20T12:32:41
Java
UTF-8
Java
false
false
3,279
java
package com.dwarfeng.subgrade.stack.cache; import com.dwarfeng.subgrade.stack.bean.dto.PagingInfo; import com.dwarfeng.subgrade.stack.bean.entity.Entity; import com.dwarfeng.subgrade.stack.bean.key.Key; import com.dwarfeng.subgrade.stack.exception.CacheException; import java.util.Collection; import java.util.List; /** * 列表型缓存。 * <p>记录主键对应列表的缓存情形。</p> * * @author DwArFeng * @since 0.0.3-beta */ public interface KeyListCache<K extends Key, E extends Entity<? extends Key>> extends Cache<E> { /** * 获取缓存中指定的键是否存在。 * * @param key 指定的键。 * @return 指定的键是否存在。 */ boolean exists(K key) throws CacheException; /** * 获取缓存中的元素数量。 * * @param key 指定的键。 * @return 缓存中的元素数量。 * @throws CacheException 缓存异常。 */ int size(K key) throws CacheException; /** * 获取缓存中指定键对应的实体列表。 * * @param key 指定的键。 * @return 指定的键对应的实体列表。 * @throws CacheException 缓存异常。 */ List<E> get(K key) throws CacheException; /** * 获取缓存中指定的键对应的实体列表的子列表。 * * @param key 指定的键。 * @param beginIndex 子列表的起始元素。 * @param maxEntity 子列表的最大元素数量。 * @return 指定的键对应的实体列表的子列表。 * @throws CacheException 缓存异常。 */ List<E> get(K key, int beginIndex, int maxEntity) throws CacheException; /** * 获取缓存中指定的分页信息对应的实体列表的子列表。 * * @param key 指定的键。 * @param pagingInfo 指定的分页信息。 * @return 缓存中指定的分页信息对应的实体列表的子列表。 * @throws CacheException 缓存异常。 */ List<E> get(K key, PagingInfo pagingInfo) throws CacheException; /** * 将指定的键对应的列表设置为指定的集合。 * * @param key 指定的键。 * @param entities 指定的实体集合。 * @param timeout 超时时间。 * @throws CacheException 缓存异常。 */ void set(K key, Collection<E> entities, long timeout) throws CacheException; /** * 向指定的键对应的列表的左侧推入指定的元素集合。 * * @param key 指定的键。 * @param entities 指定的实体元素集合。 * @param timeout 超时时间。 * @throws CacheException 缓存异常。 */ void leftPush(K key, Collection<E> entities, long timeout) throws CacheException; /** * 向指定的键对应的列表的右侧推入指定的元素集合。 * * @param key 指定的键。 * @param entities 指定的实体元素集合。 * @param timeout 超时时间。 * @throws CacheException 缓存异常。 */ void rightPush(K key, Collection<E> entities, long timeout) throws CacheException; /** * 从缓存中删除指定的键。 * * @param key 指定的键。 */ void delete(K key) throws CacheException; }
[ "915724865@qq.com" ]
915724865@qq.com
49e97882d2bee3e22aa4f211441432f01465f1cc
097df92ce1bfc8a354680725c7d10f0d109b5b7d
/com/amazon/ws/emr/hadoop/fs/shaded/com/google/common/collect/MapConstraints$ConstrainedSortedSetMultimap.java
bd1dfa2f4d556bd45cd7bd6f178255c8667d21c5
[]
no_license
cozos/emrfs-hadoop
7a1a1221ffc3aa8c25b1067cf07d3b46e39ab47f
ba5dfa631029cb5baac2f2972d2fdaca18dac422
refs/heads/master
2022-10-14T15:03:51.500050
2022-10-06T05:38:49
2022-10-06T05:38:49
233,979,996
2
2
null
2022-10-06T05:41:46
2020-01-15T02:24:16
Java
UTF-8
Java
false
false
1,098
java
package com.amazon.ws.emr.hadoop.fs.shaded.com.google.common.collect; import java.util.Comparator; import java.util.SortedSet; class MapConstraints$ConstrainedSortedSetMultimap<K, V> extends MapConstraints.ConstrainedSetMultimap<K, V> implements SortedSetMultimap<K, V> { MapConstraints$ConstrainedSortedSetMultimap(SortedSetMultimap<K, V> delegate, MapConstraint<? super K, ? super V> constraint) { super(delegate, constraint); } public SortedSet<V> get(K key) { return (SortedSet)super.get(key); } public SortedSet<V> removeAll(Object key) { return (SortedSet)super.removeAll(key); } public SortedSet<V> replaceValues(K key, Iterable<? extends V> values) { return (SortedSet)super.replaceValues(key, values); } public Comparator<? super V> valueComparator() { return ((SortedSetMultimap)delegate()).valueComparator(); } } /* Location: * Qualified Name: com.amazon.ws.emr.hadoop.fs.shaded.com.google.common.collect.MapConstraints.ConstrainedSortedSetMultimap * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "Arwin.tio@adroll.com" ]
Arwin.tio@adroll.com
e2ffaa0e6018fad5230f69a5484388d8dfdb1bdb
5891f8be7e845fab2b841e67ac080aa5c1c199f4
/src/main/java/life/majiang/community2/controller/ProfileController.java
623bfc664e7a17d8a418c9aaebf16f8bc3baa83d
[]
no_license
clown14/communityDIY
4d473d0fe92a36adf5ed43515ebda74d8c4d701a
cbb1fc614f744cadde8bbb6de35f2cf107b70548
refs/heads/master
2022-07-28T20:16:26.724087
2019-12-01T06:01:15
2019-12-01T06:01:15
210,358,117
0
0
null
null
null
null
UTF-8
Java
false
false
2,802
java
package life.majiang.community2.controller; import life.majiang.community2.dto.PaginationDTO; import life.majiang.community2.mapper.UserMapper; import life.majiang.community2.model.User; import life.majiang.community2.service.NotificationService; import life.majiang.community2.service.QuestionService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestParam; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; /** * @program: community2 * @author: onion * @create: 2019-10-11 22:56 **/ @Controller public class ProfileController { @Autowired private UserMapper userMapper; @Autowired private QuestionService questionService; @Autowired private NotificationService notificationService; @GetMapping("/profile/{action}") public String profile(@PathVariable(name = "action") String action, @RequestParam(name = "page",defaultValue = "1") Integer page, @RequestParam(name = "size",defaultValue = "5") Integer size, HttpServletRequest request, Model model) { // Cookie[] cookies = request.getCookies(); // User user = null; // if (cookies != null && cookies.length != 0) { // for (Cookie cookie : cookies) { // if (cookie.getName().equals("token")) { // String token = cookie.getValue(); // user = userMapper.findByToken(token); // if (user != null) { // request.getSession().setAttribute("user", user); // } // break; // } // } // } User user = (User) request.getSession().getAttribute("user"); if (user == null) { return "redirect:/"; } if ("questions".equals(action)) { model.addAttribute("section", "questions"); model.addAttribute("sectionName", "我的提问"); PaginationDTO paginationDTO = questionService.list(user.getId(), page, size); model.addAttribute("pagination", paginationDTO); } else if ("replies".equals(action)) { PaginationDTO paginationDTO = notificationService.list(user.getId(), page, size); model.addAttribute("pagination", paginationDTO); model.addAttribute("section", "replies"); model.addAttribute("sectionName", "最新回复"); } return "profile"; } }
[ "785613198@qq.com" ]
785613198@qq.com
18126a08b2daf88cc59eaa0830e06fed1ca35707
2de7f310a579dd4beb4f74009072f25dd477044e
/app/controllers/Customers.java
8e03e1aea4e49b4fd81d498f0fd6429e5f3943ed
[]
no_license
payforme/sphere-snowflake
acdb0b1f8b5ded41e2bb436171dc997c05106640
e70bf6a6f4a2dba66d1beb16d1f9c2d4b4aec0b3
refs/heads/master
2020-12-24T18:22:35.530078
2013-04-24T12:23:35
2013-04-24T12:23:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
427
java
package controllers; import controllers.actions.Authorization; import io.sphere.client.shop.model.Customer; import play.mvc.Result; import play.mvc.With; import sphere.ShopController; @With(Authorization.class) public class Customers extends ShopController { public static Result show() { Customer customer = sphere().currentCustomer().fetch(); return ok(views.html.customers.render(customer)); } }
[ "laura.luiz@commercetools.de" ]
laura.luiz@commercetools.de
4d3feed8c0bb8ee52ffaf251b2ae71b6533e2706
7596b13ad3a84feb67f05aeda486e8b9fc93f65f
/getAndroidAPI/src/java/text/StringCharacterIterator.java
999c87c161e523a185bf67380fb3783bc75b6551
[]
no_license
WinterPan2017/Android-Malware-Detection
7aeacfa03ca1431e7f3ba3ec8902cfe2498fd3de
ff38c91dc6985112e958291867d87bfb41c32a0f
refs/heads/main
2023-02-08T00:02:28.775711
2020-12-20T06:58:01
2020-12-20T06:58:01
303,900,592
1
0
null
null
null
null
UTF-8
Java
false
false
1,859
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: StringCharacterIterator.java package java.text; // Referenced classes of package java.text: // CharacterIterator public final class StringCharacterIterator implements CharacterIterator { public StringCharacterIterator(String text) { throw new RuntimeException("Stub!"); } public StringCharacterIterator(String text, int pos) { throw new RuntimeException("Stub!"); } public StringCharacterIterator(String text, int begin, int end, int pos) { throw new RuntimeException("Stub!"); } public void setText(String text) { throw new RuntimeException("Stub!"); } public char first() { throw new RuntimeException("Stub!"); } public char last() { throw new RuntimeException("Stub!"); } public char setIndex(int p) { throw new RuntimeException("Stub!"); } public char current() { throw new RuntimeException("Stub!"); } public char next() { throw new RuntimeException("Stub!"); } public char previous() { throw new RuntimeException("Stub!"); } public int getBeginIndex() { throw new RuntimeException("Stub!"); } public int getEndIndex() { throw new RuntimeException("Stub!"); } public int getIndex() { throw new RuntimeException("Stub!"); } public boolean equals(Object obj) { throw new RuntimeException("Stub!"); } public int hashCode() { throw new RuntimeException("Stub!"); } public Object clone() { throw new RuntimeException("Stub!"); } }
[ "panwentao1301@163.com" ]
panwentao1301@163.com
40cfd75ed041bbe193da972ceaef34a841dd8686
81d4069c762958673dc537bcca75c3fc0e6a6c46
/01-creational/05-PrototypePattern/src/main/java/cn/colg/example/_04/FAR.java
a7ca0794d0be34fc2b34336d560421bea304aff7
[]
no_license
sheep-cloud/design-pattern
7a0c59ac93429d8db021e67f7c3e5561e0112c62
f15caa665ddac979e5e6f3862145850512b450e5
refs/heads/master
2021-10-19T07:37:09.437900
2019-02-19T08:12:33
2019-02-19T08:12:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
528
java
package cn.colg.example._04; import lombok.extern.slf4j.Slf4j; /** * 具体原型类 - 可行性分析报告(Feasibility Analysis Report)类 * * @author colg */ @Slf4j public class FAR implements OfficialDocument { @Override public OfficialDocument shallowClone() throws CloneNotSupportedException { OfficialDocument far = (OfficialDocument)super.clone(); return far; } @Override public void display() { log.info("《可行性分析报告》"); } }
[ "121529654@qq.com" ]
121529654@qq.com
ee0d0c37f9651343367cefdc47010a0059ca8340
0082d066d69e9e78b7c6ba6a6b87dc906a4c9f63
/GroupListIfc.java
f1a915f1c242f381a4886bfd8389dd82226ae96b
[]
no_license
GridOPTICS/com.powerdata.openpa
91e0b95e89bcbef2677f510a7ee3e3ee644ee78f
9d68c07b70987143c026a61c30840dc04d359a85
refs/heads/master
2021-01-18T02:08:57.831998
2015-01-17T04:48:06
2015-01-17T04:48:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,072
java
package com.powerdata.openpa; public interface GroupListIfc<T extends Group> extends BaseList<T> { /** * Get Buses contained in group * @param ndx group index * @return Buses contained in group */ BusList getBuses(int ndx) throws PAModelException; SwitchList getSwitches(int ndx) throws PAModelException; LineList getLines(int ndx) throws PAModelException; SeriesReacList getSeriesReactors(int ndx) throws PAModelException; SeriesCapList getSeriesCapacitors(int ndx) throws PAModelException; TransformerList getTransformers(int ndx) throws PAModelException; PhaseShifterList getPhaseShifters(int ndx) throws PAModelException; TwoTermDCLineList getTwoTermDCLines(int ndx) throws PAModelException; GenList getGenerators(int ndx) throws PAModelException; LoadList getLoads(int ndx) throws PAModelException; ShuntReacList getShuntReactors(int ndx) throws PAModelException; ShuntCapList getShuntCapacitors(int ndx) throws PAModelException; SVCList getSVCs(int ndx) throws PAModelException; T getByBus(Bus b) throws PAModelException; }
[ "chris@powerdata.com" ]
chris@powerdata.com
f5d259a9b2dfdfd6687c9396807ba9f367d13533
fa622aa8d5ddd44c33cbd5a3513c980f29bac2e2
/com.archimatetool.editor/src/com/archimatetool/editor/diagram/figures/EllipseFigureDelegate.java
37b237ba7d636a6ac1cfc7c483ba1a8673582508
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
nicorikken/archi
7ca3d9fdbdac5db040b8e284d3da1dda4d2da82b
eaef02d995345835c8bedd07c55bca04a63a95e1
refs/heads/master
2020-09-14T05:20:14.938612
2019-11-18T14:31:21
2019-11-18T14:31:21
223,030,901
1
0
MIT
2019-11-20T21:28:48
2019-11-20T21:28:47
null
UTF-8
Java
false
false
1,758
java
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.editor.diagram.figures; import org.eclipse.draw2d.Graphics; import org.eclipse.draw2d.geometry.Rectangle; import org.eclipse.swt.graphics.Pattern; import com.archimatetool.editor.preferences.IPreferenceConstants; import com.archimatetool.editor.preferences.Preferences; /** * Ellipse Figure Delegate * * @author Phillip Beauvoir */ public class EllipseFigureDelegate extends AbstractFigureDelegate { public EllipseFigureDelegate(IDiagramModelObjectFigure owner) { super(owner); } @Override public void drawFigure(Graphics graphics) { graphics.pushState(); Rectangle bounds = getBounds(); graphics.setAlpha(getAlpha()); if(!isEnabled()) { setDisabledState(graphics); } graphics.setBackgroundColor(getFillColor()); Pattern gradient = null; if(Preferences.STORE.getBoolean(IPreferenceConstants.SHOW_GRADIENT)) { gradient = FigureUtils.createGradient(graphics, bounds, getFillColor(), getAlpha()); graphics.setBackgroundPattern(gradient); } graphics.fillOval(bounds); if(gradient != null) { gradient.dispose(); } // Outline bounds.width--; bounds.height--; graphics.setAlpha(getLineAlpha()); graphics.setForegroundColor(getLineColor()); graphics.drawOval(bounds); graphics.popState(); } }
[ "p.beauvoir@dadabeatnik.com" ]
p.beauvoir@dadabeatnik.com
52dd379d25ca112cd7ceebe2e470302fa2585358
f968c2d293e29509405cc0f2bc5993a640034285
/src/main/java/org/chm/boot/swagger/DemoController.java
d15d25d9a4cc4045c994f29aef669fa05b787611
[]
no_license
charmingfst/springboot
be6363f602ac6fbb0b3878dcc7cf43f3c6fb56c2
28e974817bad28d03722eb12e57035460c24df5a
refs/heads/master
2020-12-02T16:15:51.189139
2017-07-12T05:11:12
2017-07-12T05:11:12
96,526,270
0
0
null
null
null
null
UTF-8
Java
false
false
1,049
java
package org.chm.boot.swagger; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.context.annotation.Bean; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import springfox.documentation.service.ApiInfo; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.swagger2.annotations.EnableSwagger2; import static springfox.documentation.builders.PathSelectors.regex; /** * Created by charming on 2017/7/6. */ @RestController @RequestMapping("/demo") @Api(value = "订单类",tags = "订单类测试接口") public class DemoController { @RequestMapping(value = "/demo2.do", method = RequestMethod.GET) @ApiOperation(value = "获取helloWorld", notes = "简单SpringMVC请求") String getDemo() { return "Hello World \n" + "Spring boot3"; } }
[ "572663328@qq.com" ]
572663328@qq.com
8f12c0499fbb5ed7fad8a3ccb3bdf9cdfab14cef
b3d3b41f2023f1c969bc01dea85ef99bba0b8cdd
/src/main/java/com/amazonaws/services/identitymanagement/model/transform/DeactivateMFADeviceRequestMarshaller.java
30615a8298c4fe2a6d1d637f369ac9de3c1c0472
[ "JSON", "Apache-2.0" ]
permissive
carljparker/aws-sdk-for-java
67fe76c0fa8ff347dd3252cdca10b26be497c1f6
902235186eefaf131fadd18c47d85d9167cbe963
refs/heads/master
2021-01-15T21:02:29.480581
2011-10-21T00:18:29
2011-10-21T18:45:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,121
java
/* * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.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 com.amazonaws.services.identitymanagement.model.transform; import java.util.HashMap; import java.util.List; import java.util.Map; import com.amazonaws.AmazonClientException; import com.amazonaws.Request; import com.amazonaws.DefaultRequest; import com.amazonaws.services.identitymanagement.model.*; import com.amazonaws.transform.Marshaller; import com.amazonaws.util.StringUtils; /** * Deactivate M F A Device Request Marshaller */ public class DeactivateMFADeviceRequestMarshaller implements Marshaller<Request<DeactivateMFADeviceRequest>, DeactivateMFADeviceRequest> { public Request<DeactivateMFADeviceRequest> marshall(DeactivateMFADeviceRequest deactivateMFADeviceRequest) { if (deactivateMFADeviceRequest == null) { throw new AmazonClientException("Invalid argument passed to marshall(...)"); } Request<DeactivateMFADeviceRequest> request = new DefaultRequest<DeactivateMFADeviceRequest>(deactivateMFADeviceRequest, "AmazonIdentityManagement"); request.addParameter("Action", "DeactivateMFADevice"); request.addParameter("Version", "2010-05-08"); if (deactivateMFADeviceRequest.getUserName() != null) { request.addParameter("UserName", StringUtils.fromString(deactivateMFADeviceRequest.getUserName())); } if (deactivateMFADeviceRequest.getSerialNumber() != null) { request.addParameter("SerialNumber", StringUtils.fromString(deactivateMFADeviceRequest.getSerialNumber())); } return request; } }
[ "aws-dr-tools@amazon.com" ]
aws-dr-tools@amazon.com
92cfd1804f02d58cc0a1c964241c3208ef91df7f
1825325703c6a69e0ac2b726a7384c197705fb55
/MyNotes_Hibernate/src/com/hibernate/inheritance/singleTableStatergy/HibernateInheritanceSingleTableTest.java
be86750d128e8eaa9b5945e7563b5d420e4bd809
[]
no_license
dhananjay12/MyNotes_Hibernate
037b417d4c1082164d74b21c6594ea3cf1ac45b5
b2dd46b4f7abff693cb85ed4b6f7699cbb3d7ba5
refs/heads/master
2021-01-22T23:53:33.741845
2017-05-07T15:48:38
2017-05-07T15:48:38
22,088,340
0
0
null
null
null
null
UTF-8
Java
false
false
1,050
java
package com.hibernate.inheritance.singleTableStatergy; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateInheritanceSingleTableTest { public static void main(String[] args) { ComputerDetails aComputerDetails = new ComputerDetails(); aComputerDetails.setOperatingSystem("Windows 8.1"); Desktop aDesktop=new Desktop(); aDesktop.setOperatingSystem("Windows 7"); aDesktop.setKeyBoardDetails("From iBall"); Laptop aLaptop=new Laptop(); aLaptop.setOperatingSystem("Ubuntu 14.04"); aLaptop.setChargerId("QWERT123"); SessionFactory sessionFactory = new Configuration().configure("/com/hibernate/inheritance/singleTableStatergy/hibernate.cfg.xml").buildSessionFactory(); Session session = sessionFactory.openSession(); session.beginTransaction(); session.save(aComputerDetails); session.save(aDesktop); session.save(aLaptop); session.getTransaction().commit(); session.close(); } }
[ "dhananjay1204@gmail.com" ]
dhananjay1204@gmail.com
a2e9c79dcd9bdd8224faeaadb334a9bbbef2efe7
cd3ccc969d6e31dce1a0cdc21de71899ab670a46
/agp-7.1.0-alpha01/tools/base/deploy/deployer/src/main/java/com/android/tools/deployer/ApkEntryExtractor.java
b324c14d1d650cf3791969c1fc0c1f5255ebecd5
[ "Apache-2.0" ]
permissive
jomof/CppBuildCacheWorkInProgress
75e76e1bd1d8451e3ee31631e74f22e5bb15dd3c
9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51
refs/heads/main
2023-05-28T19:03:16.798422
2021-06-10T20:59:25
2021-06-10T20:59:25
374,736,765
0
1
Apache-2.0
2021-06-07T21:06:53
2021-06-07T16:44:55
Java
UTF-8
Java
false
false
4,092
java
/* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.tools.deployer; import com.android.tools.deployer.model.Apk; import com.android.tools.deployer.model.ApkEntry; import com.android.tools.deployer.model.FileDiff; import com.android.tools.idea.protobuf.ByteString; import com.android.zipflinger.ZipArchive; import com.google.common.collect.ArrayListMultimap; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.file.Paths; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.SortedMap; import java.util.TreeMap; import java.util.function.Predicate; public class ApkEntryExtractor { // Used to restrict the APK entries that are extracted base on each entry's name. private final Predicate<String> filter; public ApkEntryExtractor() { this.filter = t -> true; } public ApkEntryExtractor(Predicate<String> filter) { this.filter = filter; } public SortedMap<ApkEntry, ByteString> extractFromDiffs(List<FileDiff> diffs) throws DeployerException { ArrayListMultimap<Apk, ApkEntry> entriesToExtract = ArrayListMultimap.create(); diffs.stream() .filter(this::shouldExtract) .forEach(diff -> entriesToExtract.put(diff.newFile.getApk(), diff.newFile)); return extractFromApks(entriesToExtract); } public SortedMap<ApkEntry, ByteString> extractFromEntries(Collection<ApkEntry> entries) throws DeployerException { ArrayListMultimap<Apk, ApkEntry> entriesToExtract = ArrayListMultimap.create(); entries.stream() .filter(entry -> filter.test(entry.getName())) .forEach(entry -> entriesToExtract.put(entry.getApk(), entry)); return extractFromApks(entriesToExtract); } private SortedMap<ApkEntry, ByteString> extractFromApks( ArrayListMultimap<Apk, ApkEntry> entriesToExtract) throws DeployerException { SortedMap<ApkEntry, ByteString> extracted = new TreeMap<>(ApkEntryExtractor::compareApkEntries); for (Apk apk : entriesToExtract.keySet()) { extractFromApk(apk, entriesToExtract.get(apk), extracted); } return extracted; } private void extractFromApk( Apk apk, List<ApkEntry> entries, Map<ApkEntry, ByteString> extracted) throws DeployerException { try (ZipArchive zip = new ZipArchive(Paths.get(apk.path))) { for (ApkEntry apkEntry : entries) { ByteBuffer content = zip.getContent(apkEntry.getName()); if (content == null) { throw DeployerException.entryNotFound(apkEntry.getName(), apk.path); } extracted.put(apkEntry, ByteString.copyFrom(content)); } } catch (IOException io) { throw DeployerException.entryUnzipFailed(io); } } private boolean shouldExtract(FileDiff diff) { switch (diff.status) { case CREATED: case MODIFIED: case RESOURCE_NOT_IN_OVERLAY: return filter.test(diff.newFile.getName()); case DELETED: return false; default: throw new IllegalArgumentException("Unexpected diff status: " + diff.status); } } private static int compareApkEntries(ApkEntry a, ApkEntry b) { return a.getQualifiedPath().compareTo(b.getQualifiedPath()); } }
[ "jomof@google.com" ]
jomof@google.com
da10d4ea790a59469385f677b67d8b7fc29b3070
962600b88ba9fecde6b667855f877d64c9881eb9
/microservice-consumer-movie-feign-hystrix-fallback-factory/src/main/java/com/guier/controller/dao/User.java
c22142a109adf59e809dcfcc7d3c9d1c53bffa0d
[]
no_license
EverYouDo/springcloud-Finchley
0eda91a887737599ab31daa4d383182c3f8eab8b
d92921d25dd7a8b6092699e56bf103d50cc82d6e
refs/heads/master
2020-05-01T13:48:01.820125
2019-12-03T06:51:52
2019-12-03T06:51:52
177,502,253
0
0
null
null
null
null
UTF-8
Java
false
false
340
java
package com.guier.dao; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.math.BigDecimal; @Data @AllArgsConstructor @NoArgsConstructor public class User { private Long id; private String username; private String name; private Integer age; private BigDecimal balance; }
[ "466007639@qq.com" ]
466007639@qq.com
cfa918f1e2ae0f814339d94139cb14224ba10e58
48631c3851b15fbc20e61e29b82480b64eec2885
/upup/src/main/java/com/prosayj/springboot/designmode/研磨设计模式/_15_Template_method/example4/NormalLogin2.java
49768c91542c75e0cf634fdfbf8a6dea1d38facf
[ "Apache-2.0" ]
permissive
ProSayJ/springbootstudy
56cb7f80502888d2c564d7a4bda23dd0650750f7
04b5ce563b9e6163ab6d6217292d7dd266e105c3
refs/heads/master
2022-12-25T10:42:49.047945
2021-04-09T15:20:12
2021-04-09T15:20:12
147,488,466
0
0
Apache-2.0
2022-12-16T03:22:22
2018-09-05T08:52:00
Java
UTF-8
Java
false
false
1,549
java
package com.prosayj.springboot.designmode.研磨设计模式._15_Template_method.example4; /** * 普通用户登录控制加强版的逻辑处理 */ public class NormalLogin2 extends LoginTemplate { @Override public LoginModel findLoginUser(String loginId) { // 这里省略具体的处理,仅做示意,返回一个有默认数据的对象 //注意一点:这里使用的是自己需要的数据模型了 NormalLoginModel nlm = new NormalLoginModel(); nlm.setLoginId(loginId); nlm.setPwd("testpwd"); nlm.setQuestion("testQuestion"); nlm.setAnswer("testAnswer"); return nlm; } @Override public boolean match(LoginModel lm, LoginModel dbLm) { //这个方法需要覆盖,因为现在进行登录控制的时候, //需要检测4个值是否正确,而不仅仅是缺省的2个 //先调用父类实现好的,检测编号和密码是否正确 boolean f1 = super.match(lm, dbLm); if (f1) { //如果编号和密码正确,继续检查问题和答案是否正确 //先把数据转换成自己需要的数据 NormalLoginModel nlm = (NormalLoginModel) lm; NormalLoginModel dbNlm = (NormalLoginModel) dbLm; //检查问题和答案是否正确 if (dbNlm.getQuestion().equals(nlm.getQuestion()) && dbNlm.getAnswer().equals(nlm.getAnswer())) { return true; } } return false; } }
[ "yangjian@bubi.cn" ]
yangjian@bubi.cn
29d47260571460cc7106a31bbbe71db9dfdac5b1
80c668f5ec920e99762ea3297aabefa96f3c7668
/src/mythought/reflection/relfectionvscodegen/Test.java
a5ae158ffb7ac6f6dcf1abbcfd0d7621dbfb0e82
[]
no_license
stefanofiorenza/learning-java
c2f7eb48700b13f502814fffd45caa5f162859d0
43ec7c38b4298e836c8b2840db2e8c2e5a7adc1a
refs/heads/master
2023-02-20T03:42:52.471854
2019-12-28T15:21:10
2019-12-28T15:21:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,140
java
package mythought.reflection.relfectionvscodegen; import java.util.concurrent.TimeUnit; /** * @author vonzhou * @date 2019/1/15 */ public class Test { static class B { } public static long timeDiff(long old) { return System.nanoTime() - old; } public static void main(String args[]) throws Exception { int numTrials = 10000000; B[] bees = new B[numTrials]; Class<B> c = B.class; for (int i = 0; i < numTrials; i++) { bees[i] = c.newInstance(); } for (int i = 0; i < numTrials; i++) { bees[i] = new B(); } long nanos; nanos = System.nanoTime(); for (int i = 0; i < numTrials; i++) { bees[i] = c.newInstance(); } System.out.println("Reflecting instantiation took:" + TimeUnit.NANOSECONDS.toMillis(timeDiff(nanos)) + "ms"); nanos = System.nanoTime(); for (int i = 0; i < numTrials; i++) { bees[i] = new B(); } System.out.println("Normal instaniation took: " + TimeUnit.NANOSECONDS.toMillis(timeDiff(nanos)) + "ms"); } }
[ "vonzhou@163.com" ]
vonzhou@163.com
d1a64e30153b48c867c154b11c2a6ff382b6f102
c041f6a4b6c761bf7c72d79afe5d2db0645a3bbf
/src/test/java/com/restfb/types/ads/IDNameTest.java
08586fe576bb93ec26c528678096bfc8776142f7
[ "MIT" ]
permissive
nunam-ru/restfb
9ba0183c2ab0e60b3010b4cef248848d803cb436
92f7534aaafce3e04e004ce78b79fdb84afb4bf4
refs/heads/master
2023-09-03T01:17:19.138213
2021-11-18T13:42:33
2021-11-18T13:42:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,858
java
/* * Copyright (c) 2010-2021 Mark Allen, Norbert Bartels. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package com.restfb.types.ads; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import com.restfb.AbstractJsonMapperTests; import org.junit.jupiter.api.Test; class IDNameTest extends AbstractJsonMapperTests { @Test void test() { IDName idname = createJsonMapper().toJavaObject(jsonFromClasspath("ads/v2_6/idname"), IDName.class); assertNotNull(idname); assertEquals("123123", idname.getId()); assertEquals("testname", idname.getName()); } @Test void checkConstructor() { IDName idname = new IDName("3456", "foobar"); assertEquals("3456", idname.getId()); assertEquals("foobar", idname.getName()); } }
[ "n.bartels@phpmonkeys.de" ]
n.bartels@phpmonkeys.de