blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
410
content_id
stringlengths
40
40
detected_licenses
listlengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
131 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
32 values
content
stringlengths
3
9.45M
authors
listlengths
1
1
author_id
stringlengths
0
313
d598c6a7672c22c9dea354f8dd235a25b25b5d2b
1d00faa6c8b53bfd4048d3128af12d905265e68d
/sdk/src/main/java/io/hasura/sdk/responseListener/SyncStatusListener.java
1956b1965075a375ab8addca032e9f112611b38d
[ "MIT" ]
permissive
carlosgub/android-sdk
ed468b963e11c6e61a40b3724ff017b8cf44089e
6ceba4bb956a5ca66d33babf347e3e8ee41aa7a0
refs/heads/master
2020-03-31T14:39:26.403311
2017-10-03T06:46:52
2017-10-03T06:46:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
163
java
package io.hasura.sdk.responseListener; /** * Created by jaison on 19/06/17. */ public interface SyncStatusListener extends SuccessFailureResponseListener { }
[ "jaison@hasura.io" ]
jaison@hasura.io
f6578ac8986041d7e317523be262154bb918a3a4
3992ec7e3c1bf0d7d38aa5f93aa75348408cf5df
/opetations/Division.java
811ba3558a59abb286f027d20e88e36a1528ea30
[]
no_license
AndreyDMokhov/ExaminatorHW
7341cf965120f5a81eb09ae438ca7bd0c21a69a9
9746a372b263382fa5171f6de10cb742cd7c2fc7
refs/heads/master
2020-07-09T11:06:54.571746
2019-08-23T08:10:39
2019-08-23T08:10:39
203,954,446
0
0
null
null
null
null
UTF-8
Java
false
false
686
java
package homework.exercises.opetations; import homework.exercises.Exercise; import homework.exercises.OperationEnum; import static homework.exercises.RandomUtil.getRandomInRangeInteger; public class Division implements Operation { @Override public Exercise getExercise(int min, int max) { double a = getRandomInRangeInteger(min, max); double b; do{ b = getRandomInRangeInteger(min, max); }while (b==0); double answer = a / b; return Exercise.builder(). a(a). b(b). answer(answer). operationEnum(OperationEnum.DIV) .build(); } }
[ "Oksana76" ]
Oksana76
670c37da8171ba0aa02b3e2f1d83d4041e1f9699
3aa52410c284ec887e849afe53432782015c86fe
/src/org/jhi/testcases/Validations_Homepage.java
81e8e6f4cf9173e04deff5e5181acec612895646
[]
no_license
PrasantaBanerjee/E2E-Automation-JHInvestments
0abbab2822fc64600cc76a10a46ed974b083c7f3
1d566c70a761c5bb19bbce02fdb6a59efd510824
refs/heads/master
2022-04-23T06:31:41.689882
2020-04-28T16:42:41
2020-04-28T16:42:41
258,524,889
0
0
null
null
null
null
UTF-8
Java
false
false
1,434
java
package org.jhi.testcases; import static org.testng.Assert.assertEquals; import java.util.ArrayList; import java.util.List; import java.util.stream.Stream; import org.jhi.main.Base; import org.jhi.page_objects.HomePage; import org.openqa.selenium.WebElement; /* * @auth: Prasanta. * @desc: This class will contain all the test cases w.r.t Homepage. * */ public class Validations_Homepage extends Base { HomePage homepage = new HomePage(getDriver()); public void TC1_validateHomepageUrl() { String pageUrl = getDriver().getCurrentUrl(); String expectedUrl = "https://www.jhinvestments.com/"; assertEquals(pageUrl, expectedUrl, "Mismatch found in Homepage URL."); } public void TC2_validateHomepageTitle() { String pageTitle = getDriver().getTitle(); String expectedTitle = "John Hancock Investment Mgmt | A better way to invest"; assertEquals(pageTitle, expectedTitle, "Mismatch found in Homepage Title."); } public void TC3_validateNavigationMenuOptions() { List<String> expectedMenuOptions = new ArrayList<>(); Stream.of("Dashboard", "Investments", "Fund Compare", "Viewpoints", "Resources", "About us").forEach(x -> expectedMenuOptions.add(x)); List<String> actualMenu = new ArrayList<>(); List<WebElement> optionsAtExecution = homepage.getHomepageNavigMenu(); optionsAtExecution.stream().forEach(x -> actualMenu.add(x.getText())); assertEquals(actualMenu, expectedMenuOptions); } }
[ "Prasanta.Banerjee77@gmail.com" ]
Prasanta.Banerjee77@gmail.com
f4a20a85d7ff831a0eff1959296fb3a3289cb62e
bac1863011cb926e5a4fc703052ddbd6a8eefe6d
/src/com/yzy/im/customview/MsgHeader.java
61b9254920012871c33f8a014930e2fafd479d22
[]
no_license
343829084/IM
60253ab8db216c06a36dfd4570a05b5356286f44
fb05ab34795f71c34cacd03dccfb560ab0f20f7c
refs/heads/master
2020-12-14T18:50:11.547344
2014-11-09T14:16:04
2014-11-09T14:16:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,642
java
/** * @file XListViewHeader.java * @create Apr 18, 2012 5:22:27 PM * @author Maxwin * @description XListView's header */ package com.yzy.im.customview; import android.content.Context; import android.util.AttributeSet; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.TextView; import com.yzy.im.R; public class MsgHeader extends LinearLayout { private LinearLayout mContainer; private ProgressBar mProgressBar; private TextView mHintTextView; private int mState = STATE_NORMAL; public final static int STATE_NORMAL = 0; public final static int STATE_READY = 1; public final static int STATE_REFRESHING = 2; public MsgHeader(Context context) { super(context); initView(context); } /** * @param context * @param attrs */ public MsgHeader(Context context, AttributeSet attrs) { super(context, attrs); initView(context); } private void initView(Context context) { // 初始情况,设置下拉刷新view高度为0 LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( LayoutParams.FILL_PARENT, 0); mContainer = (LinearLayout) LayoutInflater.from(context).inflate( R.layout.message_header, null); addView(mContainer, lp); setGravity(Gravity.BOTTOM); mHintTextView = (TextView) findViewById(R.id.xlistview_header_hint_textview); mProgressBar = (ProgressBar) findViewById(R.id.xlistview_header_progressbar); } public void setState(int state) { if (state == mState) return; if (state == STATE_REFRESHING) { // 显示进度 mProgressBar.setVisibility(View.VISIBLE); } else { // 显示箭头图片 mProgressBar.setVisibility(View.INVISIBLE); } switch (state) { case STATE_NORMAL: if (mState == STATE_READY) { } if (mState == STATE_REFRESHING) { } mHintTextView.setVisibility(View.VISIBLE); mHintTextView.setText("显示更多消息"); break; case STATE_READY: if (mState != STATE_READY) { mHintTextView.setVisibility(View.VISIBLE); mHintTextView.setText("释放即可显示"); } break; case STATE_REFRESHING: // mHintTextView.setText(R.string.xlistview_header_hint_loading); mHintTextView.setVisibility(View.GONE); break; default: } mState = state; } public void setVisiableHeight(int height) { if (height < 0) height = 0; LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) mContainer .getLayoutParams(); lp.height = height; mContainer.setLayoutParams(lp); } public int getVisiableHeight() { return mContainer.getHeight(); } }
[ "yuanzeyao@163.com" ]
yuanzeyao@163.com
81da039efa32fcc6e5cd27dcd9bef846437cbd8a
7729a24027f284e3574c7b2cb53d58de7104a5dc
/sell/src/main/java/com/chen/service/impl/CategoryServiceImpl.java
e7264719931e6432516dec7232ccc2c6008bd74c
[]
no_license
cjj50640/weixin
fbf84ba47c9ff812b27428bbdd608e2abeaed14e
53119e243d4c571d3fb55bd1bfcdc28d5f1ab705
refs/heads/master
2020-03-24T04:01:36.917405
2018-07-26T12:52:59
2018-07-26T12:52:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
998
java
package com.chen.service.impl; import com.chen.dataobject.ProductCategory; import com.chen.repository.ProductCategoryRepository; import com.chen.service.CategoryService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class CategoryServiceImpl implements CategoryService { @Autowired private ProductCategoryRepository repository; @Override public ProductCategory findone(Integer categoryId) { return repository.findById(categoryId).orElse(null); } @Override public List<ProductCategory> findall() { return repository.findAll(); } @Override public List<ProductCategory> findByCategoryTypeIn(List<Integer> catagoryTypeList) { return repository.findByCategoryTypeIn(catagoryTypeList); } @Override public ProductCategory save(ProductCategory productCategory) { return repository.save(productCategory); } }
[ "39826032+cjj50640@users.noreply.github.com" ]
39826032+cjj50640@users.noreply.github.com
82950d73d07734bdbf5a41d5785c81f507e65b38
f51707542294cab16a1275eafd7e5c6d9563998e
/BuildStore/priv/test_src/com/buildml/model/undo/TestFileUndoOp.java
46a61beebfea77f92480fcf163269563baf926c4
[]
no_license
VijayEluri/Disco-Build-System
1024f38e7d1e50aafbb32ec26a2bfd833e23ee2f
8226e3694e2f4dfe48b13bd9dcd2936fdde6677e
refs/heads/master
2020-05-20T11:03:34.645079
2014-05-13T10:50:11
2014-05-13T10:50:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,999
java
/******************************************************************************* * Copyright (c) 2013 Arapiki Solutions Inc. * 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: * "Peter Smith <psmith@arapiki.com>" - initial API and * implementation and/or initial documentation *******************************************************************************/ package com.buildml.model.undo; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; import com.buildml.model.CommonTestUtils; import com.buildml.model.IBuildStore; import com.buildml.model.IFileMgr; import com.buildml.model.IPackageMemberMgr; import com.buildml.model.IPackageMemberMgr.PackageDesc; import com.buildml.model.IPackageMgr; import com.buildml.utils.errors.ErrorCode; /** * Test cases for the FileUndoOp class. * * @author "Peter Smith <psmith@arapiki.com>" */ public class TestFileUndoOp { /** Our BuildStore object, used in many test cases */ private IBuildStore buildStore; /** The managers associated with this BuildStore */ IFileMgr fileMgr; /*-------------------------------------------------------------------------------------*/ /** * @throws java.lang.Exception */ @Before public void setUp() throws Exception { /* get a new empty BuildStore */ buildStore = CommonTestUtils.getEmptyBuildStore(); /* fetch the associated manager objects */ fileMgr = buildStore.getFileMgr(); } /*-------------------------------------------------------------------------------------*/ /** * Test undo/redo of removing a path */ @Test public void testRemovePath() { int pathId = fileMgr.addFile("/a/b/file.c"); assertFalse(fileMgr.isPathTrashed(pathId)); /* create and execute a remove operation */ FileUndoOp op = new FileUndoOp(buildStore, pathId); op.recordRemovePath(); op.redo(); /* test that the path is now gone */ assertTrue(fileMgr.isPathTrashed(pathId)); /* undo the delete */ op.undo(); assertFalse(fileMgr.isPathTrashed(pathId)); /* redo the delete */ op.redo(); assertTrue(fileMgr.isPathTrashed(pathId)); } /*-------------------------------------------------------------------------------------*/ /** * Test undo/redo of change a path's package. */ @Test public void testChangePackage() { IPackageMgr pkgMgr = buildStore.getPackageMgr(); IPackageMemberMgr pkgMemberMgr = buildStore.getPackageMemberMgr(); /* create a file and a couple of packages, and set the file's initial package */ int pathId = fileMgr.addFile("@workspace/a/file.c"); int pkgA = pkgMgr.addPackage("PkgA"); int pkgB = pkgMgr.addPackage("PkgB"); assertEquals(ErrorCode.OK, pkgMemberMgr.setPackageOfMember( IPackageMemberMgr.TYPE_FILE, pathId, pkgA, IPackageMemberMgr.SCOPE_PRIVATE)); /* create an operation that moves it to pkgB/Public */ FileUndoOp op = new FileUndoOp(buildStore, pathId); op.recordChangePackage(pkgA, IPackageMemberMgr.SCOPE_PRIVATE, pkgB, IPackageMemberMgr.SCOPE_PUBLIC); /* do the operation */ op.redo(); PackageDesc desc = pkgMemberMgr.getPackageOfMember(IPackageMemberMgr.TYPE_FILE, pathId); assertEquals(pkgB, desc.pkgId); assertEquals(IPackageMemberMgr.SCOPE_PUBLIC, desc.pkgScopeId); /* undo the operation */ op.undo(); desc = pkgMemberMgr.getPackageOfMember(IPackageMemberMgr.TYPE_FILE, pathId); assertEquals(pkgA, desc.pkgId); assertEquals(IPackageMemberMgr.SCOPE_PRIVATE, desc.pkgScopeId); /* redo the operation */ op.redo(); desc = pkgMemberMgr.getPackageOfMember(IPackageMemberMgr.TYPE_FILE, pathId); assertEquals(pkgB, desc.pkgId); assertEquals(IPackageMemberMgr.SCOPE_PUBLIC, desc.pkgScopeId); } /*-------------------------------------------------------------------------------------*/ }
[ "psmith@arapiki.com" ]
psmith@arapiki.com
237ea4726636353f1a23673a56fc112873111545
0ab61f7f2a6d42d4ef954c40300e14171d4c4c8e
/OPUS_LOGI/src/test/java/Logi/SummaryDashboardReport/Validate_SummaryDashboard_Report_UIValidation.java
2410ab8370d24b5c4e328c347738e81f427c6712
[]
no_license
priyesh0do/Own-Framework
3a48c43de57324361b6b392c3bd5bd41d7d1db2f
c282efe2bd1ba1eb2cb34e0b548b545826a44759
refs/heads/master
2021-04-09T14:21:37.475045
2018-04-12T03:19:21
2018-04-12T03:19:21
125,634,327
0
0
null
null
null
null
UTF-8
Java
false
false
6,902
java
package Logi.SummaryDashboardReport; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.openqa.selenium.By; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import Driver.BrowserOpen; import ObjectRepository.General.FilterSection; import ObjectRepository.General.GraphSection; import ObjectRepository.General.HomePage; import ObjectRepository.General.Login; import ObjectRepository.Logi.EfficiencyPerformanceReport; import ObjectRepository.Logi.EfficiencySummaryReport; import ObjectRepository.Logi.SummaryDashboardReport; import Opus.BaseClass; import SupportLibraries.Excel; import SupportLibraries.GlobalVariables; import SupportLibraries.Report; import SupportLibraries.Util; import TestData.GlobalExpectedColumns; import TestData.GlobalTestData; public class Validate_SummaryDashboard_Report_UIValidation extends BaseClass{ Login login; HomePage sdiMegaObj; FilterSection sdoFilterObj; GraphSection graphObj; SummaryDashboardReport SummaryDashboardObj; @Test(groups = "Opus", dataProvider = "LOGI_Reports_Data") public void Validate_SummaryDashboard_Report(String Scenario,String RunMode,String ReportName, String SiteID, String LOB, String FromDate, String ToDate, String Route,String Driver,String ClockInTime,String ClockOutTime,String Ticket) throws Exception { if(Scenario.equalsIgnoreCase("Validate_SummaryDashboard_Report_UIValidation") & RunMode.equals("Yes")) { try { test = Report.testCreate(extent, test, "Validate_SummaryDashboard_Report_UIValidation"); driver = BrowserOpen.StartBrowser(driver, configProp.getProperty("Browser"), configProp.getProperty("URL")); login = new Login(driver, test); login.LoginSDI(configProp.getProperty("userId"), configProp.getProperty("Password")); System.out.println("Login successfully done"); List<String> actualSummaryTableColumns=new ArrayList<>(); // Select Summary Dashboard sdiMegaObj = new HomePage(driver, test); sdoFilterObj=new FilterSection(driver, test); graphObj = new GraphSection(driver, test); ReportName = "Summary Dashboard"; sdiMegaObj.ClickOnReport(ReportName); SummaryDashboardObj = new SummaryDashboardReport(driver,test); //sdiMegaObj.ClickOnReport("Efficiency Performance"); //Validate the max value selection from drop down Util.validateMaxValueSelectionOnFilter("islGroupFilter"); Util.validateMaxValueSelectionOnFilter("islBUFilter"); Util.validateMaxValueSelectionOnFilter("islSiteFilter"); //Validate whether values in filters are sorted or not Util.validateSortingOfFilterValues("islGroupFilter"); // Tier Filter Util.validateSortingOfFilterValues("islAreaFilter"); // Area Filter Util.validateSortingOfFilterValues("islBUFilter"); // BU Filter Util.validateSortingOfFilterValues("islSiteFilter"); // Sites Filter Util.validateFromAndToDate(ReportName); graphObj.validateGraphSection(ReportName,SiteID); graphObj.ValidateGraphLegends(); //Enter the site sdoFilterObj.selectSite(SiteID); //Enter the required date range sdoFilterObj.selectFromDate(FromDate); sdoFilterObj.selectToDate(ToDate); //GO sdoFilterObj.GoBtn(); Thread.sleep(3000); //Validate Summary column Names of the Driver Tab > Summary Dashboard actualSummaryTableColumns = Util.getColumnNames("dtOverview"); Util.validateColumns(actualSummaryTableColumns, GlobalExpectedColumns.driverTabSummaryDashboardColumns, "Summary Dashboard"); //Export PDF //Reading the Overview Table for Driver Util.switchToDefaultWindow(); Util.selectFrame("opusReportContainer,subReportContainer"); Map<String, List<String>> actualDriverSummaryTable = SummaryDashboardObj.getActualDriverSummaryTableData(); //Switching to Efficiency Summary Table sdoFilterObj.openReportInNewTab("Efficiency Summary"); EfficiencySummaryReport effSummaryObj=new EfficiencySummaryReport(driver, test); sdoFilterObj.selectLOB("Commercial"); //Enter date range if required sdoFilterObj.GoBtn(); //Reading data from Efficiency Summary Table Util.switchToDefaultWindow(); Util.selectFrame("opusReportContainer,subReportContainer"); Map<String,List<String>> efficiencySummaryComTableData=effSummaryObj.getActualSummaryTableData(); sdoFilterObj.selectLOB("Residential"); sdoFilterObj.GoBtn(); Util.switchToDefaultWindow(); Util.selectFrame("opusReportContainer,subReportContainer"); Map<String,List<String>> efficiencySummaryResiTableData=effSummaryObj.getActualSummaryTableData(); sdoFilterObj.selectLOB("Roll Off"); sdoFilterObj.GoBtn(); Util.switchToDefaultWindow(); Util.selectFrame("opusReportContainer,subReportContainer"); Map<String,List<String>> efficiencySummaryROTableData=effSummaryObj.getActualSummaryTableData(); driver.close(); Util.switchToDefaultTab(); sdoFilterObj.openReportInNewTab("Efficiency Performance"); EfficiencyPerformanceReport effPerfObj=new EfficiencyPerformanceReport(driver, test); sdoFilterObj.selectSite(SiteID); sdoFilterObj.selectLOB("Commercial"); //Enter date range if required sdoFilterObj.GoBtn(); Util.switchToDefaultWindow(); Util.selectFrame("opusReportContainer,subReportContainer"); Map<String,List<String>> efficiencyPerformanceCOMSummaryTableData=effPerfObj.getActualSummaryTableData(); //SummaryDashboardObj.validateDriverOverviewTableData(actualDriverSummaryTable,efficiencySummaryComTableData); //SummaryDashboardObj.validateDriverOverviewTableData(actualDriverSummaryTable,efficiencySummaryResiTableData); //SummaryDashboardObj.validateDriverOverviewTableData(actualDriverSummaryTable,efficiencySummaryROTableData); //select the Driver & Helper Tab //Validate Summary column Names of the Driver Tab > Summary Dashboard actualSummaryTableColumns = Util.getColumnNames("dtOverviewHlp"); Util.validateColumns(actualSummaryTableColumns, GlobalExpectedColumns.driverAndHelperTabSummaryDashboardColumns, "Summary Dashboard"); Util.switchToDefaultWindow(); Util.selectFrame("opusReportContainer,subReportContainer"); Map<String, List<String>> actualDriverAndHelperSummaryTable = SummaryDashboardObj.getActualDriverAndHelperSummaryTableData(); } catch (Exception e) { System.out.println(e.getMessage()); } } } @DataProvider(name = "LOGI_Reports_Data") public Object[][] testData() throws Exception { Excel ex = new Excel(); Object[][] arrayObject = ex.getTableArray(configProp.getProperty("LOGITestCaseExcel"), configProp.getProperty("LOGITestDataSheet")); return arrayObject; } }
[ "priyesh@priyesh-PC" ]
priyesh@priyesh-PC
775918c6981aece2e783849b7aad440b917717a1
b00ff00f170b60a92ce6a6e46dfc866ace9aeeb6
/velocity/src/main/java/com/rw/velocity/OAuthBuilder.java
740dfaa9bd2eee0d685189195eedcd344e02cac2
[ "MIT" ]
permissive
mainam/velocity
f142953830652520415282d92aeaf1eaf8720b20
b5029f2d130f168e6d507f4c5d6b97f606869d98
refs/heads/master
2021-01-22T13:51:57.742472
2017-08-14T04:44:42
2017-08-14T04:44:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,398
java
package com.rw.velocity; import java.io.UnsupportedEncodingException; /** * Created by ravindu on 6/07/17. */ public class OAuthBuilder { String user = ""; String pass = ""; String scope = ""; String grantType = ""; String clientId = ""; String clientSecret = ""; String clientIdSecretHash = ""; String url = ""; Velocity.OAuthListener callback; public enum GrantType { password } private OAuthBuilder() { this.url = null; } OAuthBuilder(String url) { this.url = url; } /** * set resource owner username * @param username username * @return OAuthBuilder */ public OAuthBuilder withUsername(String username) { this.user = username; return this; } /** * set resource owner password * @param password password * @return OAuthBuilder */ public OAuthBuilder withPassword(String password) { this.pass = password; return this; } /** * set OAuth scope * @param scope required scope * @return OAuthBuilder */ public OAuthBuilder withScope(String scope) { this.scope = scope; return this; } /** * set OAuth grant type. currently only "password" is supported * @param grantType grant type * @return OAuthBuilder */ public OAuthBuilder withGrantType(GrantType grantType) { this.grantType = grantType.toString(); return this; } /** * set the client details * @param id client id string (plaintext) * @param secret client secret string (plaintext) * @return OAuthBuilder */ public OAuthBuilder withClient(String id, String secret) { this.clientSecret = secret; this.clientId = id; return this; } /** * set the hashed client secret : Base64("client_id:client_secret") * @param hash hashed client secret * @return OAuthBuilder */ public OAuthBuilder withClientSecretHash(String hash) { this.clientIdSecretHash = hash; return this; } /** * Initialize the login process * @param callback login token callback */ public void initiate(Velocity.OAuthListener callback) { this.callback = callback; new OAuthHandler().init(this); } }
[ "ravindu@vortilla.com" ]
ravindu@vortilla.com
4776e529160797dd1a50e35d3393d322658e8c94
56e50844ca1a9ca93e35ea6729b4f0a7e4857e89
/Android/app/src/main/java/com/macmanus/jamie/bikerentalapp/view/FindBikeFragment.java
bd3410131e15719dc243698c4a71f898bbd544a8
[]
no_license
FrankSun96/SystemsAnalysisDesignProject
e5afb8bcdec49f9fdc5809bf3428288a8df25203
b11fd829d4bdc49b19b108fa5bd2cdcb16d9cb31
refs/heads/master
2020-04-02T04:21:35.470833
2018-11-04T15:01:47
2018-11-04T15:01:47
154,013,291
0
0
null
2018-10-21T13:48:59
2018-10-21T13:48:59
null
UTF-8
Java
false
false
913
java
package com.macmanus.jamie.bikerentalapp.view; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.macmanus.jamie.bikerentalapp.R; public class FindBikeFragment extends Fragment { public static FindBikeFragment newInstance() { return new FindBikeFragment(); } @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_find_bike, container, false); } @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); } }
[ "jamiemac96@hotmail.com" ]
jamiemac96@hotmail.com
af8fc9e39abaefab4394a1935dfa31c42cbb884a
d69ee1ef4a100b776eeb9ad09740a3db3f258d5c
/flnet-system/src/main/java/com/flnet/system/service/impl/SysMenuServiceImpl.java
9483ad075e4c1d44d18bdf251ea9b8a0a537d47e
[ "MIT" ]
permissive
zyhyszf233/treasure
dc671e1e3cdcd99360f08c361274e1cdf601c7e0
25b2362cf93345b42aaafecce9d81d4d66445d37
refs/heads/master
2020-04-22T15:00:05.523557
2019-02-13T07:43:09
2019-02-13T07:43:09
170,463,312
0
0
null
null
null
null
UTF-8
Java
false
false
9,871
java
package com.flnet.system.service.impl; import java.text.MessageFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.flnet.common.constant.UserConstants; import com.flnet.common.utils.StringUtils; import com.flnet.system.domain.SysMenu; import com.flnet.system.domain.SysRole; import com.flnet.system.domain.SysUser; import com.flnet.system.mapper.SysMenuMapper; import com.flnet.system.mapper.SysRoleMenuMapper; import com.flnet.system.service.ISysMenuService; /** * 菜单 业务层处理 * * @author flnet */ @Service public class SysMenuServiceImpl implements ISysMenuService { public static final String PREMISSION_STRING = "perms[\"{0}\"]"; @Autowired private SysMenuMapper menuMapper; @Autowired private SysRoleMenuMapper roleMenuMapper; /** * 根据用户查询菜单 * * @param user 用户信息 * @return 菜单列表 */ @Override public List<SysMenu> selectMenusByUser(SysUser user) { List<SysMenu> menus = new LinkedList<SysMenu>(); // 管理员显示所有菜单信息 if (user.isAdmin()) { menus = menuMapper.selectMenuNormalAll(); } else { menus = menuMapper.selectMenusByUserId(user.getUserId()); } return getChildPerms(menus, 0); } /** * 查询菜单集合 * * @return 所有菜单信息 */ @Override public List<SysMenu> selectMenuList(SysMenu menu) { return menuMapper.selectMenuList(menu); } /** * 查询菜单集合 * * @return 所有菜单信息 */ @Override public List<SysMenu> selectMenuAll() { return menuMapper.selectMenuAll(); } /** * 根据用户ID查询权限 * * @param userId 用户ID * @return 权限列表 */ @Override public Set<String> selectPermsByUserId(Long userId) { List<String> perms = menuMapper.selectPermsByUserId(userId); Set<String> permsSet = new HashSet<>(); for (String perm : perms) { if (StringUtils.isNotEmpty(perm)) { permsSet.addAll(Arrays.asList(perm.trim().split(","))); } } return permsSet; } /** * 根据角色ID查询菜单 * * @param role 角色对象 * @return 菜单列表 */ @Override public List<Map<String, Object>> roleMenuTreeData(SysRole role) { Long roleId = role.getRoleId(); List<Map<String, Object>> trees = new ArrayList<Map<String, Object>>(); List<SysMenu> menuList = menuMapper.selectMenuAll(); if (StringUtils.isNotNull(roleId)) { List<String> roleMenuList = menuMapper.selectMenuTree(roleId); trees = getTrees(menuList, true, roleMenuList, true); } else { trees = getTrees(menuList, false, null, true); } return trees; } /** * 查询所有菜单 * * @return 菜单列表 */ @Override public List<Map<String, Object>> menuTreeData() { List<Map<String, Object>> trees = new ArrayList<Map<String, Object>>(); List<SysMenu> menuList = menuMapper.selectMenuAll(); trees = getTrees(menuList, false, null, false); return trees; } /** * 查询系统所有权限 * * @return 权限列表 */ @Override public LinkedHashMap<String, String> selectPermsAll() { LinkedHashMap<String, String> section = new LinkedHashMap<>(); List<SysMenu> permissions = menuMapper.selectMenuAll(); if (StringUtils.isNotEmpty(permissions)) { for (SysMenu menu : permissions) { section.put(menu.getUrl(), MessageFormat.format(PREMISSION_STRING, menu.getPerms())); } } return section; } /** * 对象转菜单树 * * @param menuList 菜单列表 * @param isCheck 是否需要选中 * @param roleMenuList 角色已存在菜单列表 * @param permsFlag 是否需要显示权限标识 * @return */ public List<Map<String, Object>> getTrees(List<SysMenu> menuList, boolean isCheck, List<String> roleMenuList, boolean permsFlag) { List<Map<String, Object>> trees = new ArrayList<Map<String, Object>>(); for (SysMenu menu : menuList) { Map<String, Object> deptMap = new HashMap<String, Object>(); deptMap.put("id", menu.getMenuId()); deptMap.put("pId", menu.getParentId()); deptMap.put("name", transMenuName(menu, roleMenuList, permsFlag)); deptMap.put("title", menu.getMenuName()); if (isCheck) { deptMap.put("checked", roleMenuList.contains(menu.getMenuId() + menu.getPerms())); } else { deptMap.put("checked", false); } trees.add(deptMap); } return trees; } public String transMenuName(SysMenu menu, List<String> roleMenuList, boolean permsFlag) { StringBuffer sb = new StringBuffer(); sb.append(menu.getMenuName()); if (permsFlag) { sb.append("<font color=\"#888\">&nbsp;&nbsp;&nbsp;" + menu.getPerms() + "</font>"); } return sb.toString(); } /** * 删除菜单管理信息 * * @param menuId 菜单ID * @return 结果 */ @Override public int deleteMenuById(Long menuId) { return menuMapper.deleteMenuById(menuId); } /** * 根据菜单ID查询信息 * * @param menuId 菜单ID * @return 菜单信息 */ @Override public SysMenu selectMenuById(Long menuId) { return menuMapper.selectMenuById(menuId); } /** * 查询子菜单数量 * * @param parentId 父级菜单ID * @return 结果 */ @Override public int selectCountMenuByParentId(Long parentId) { return menuMapper.selectCountMenuByParentId(parentId); } /** * 查询菜单使用数量 * * @param menuId 菜单ID * @return 结果 */ @Override public int selectCountRoleMenuByMenuId(Long menuId) { return roleMenuMapper.selectCountRoleMenuByMenuId(menuId); } /** * 新增保存菜单信息 * * @param menu 菜单信息 * @return 结果 */ @Override public int insertMenu(SysMenu menu) { return menuMapper.insertMenu(menu); } /** * 修改保存菜单信息 * * @param menu 菜单信息 * @return 结果 */ @Override public int updateMenu(SysMenu menu) { return menuMapper.updateMenu(menu); } /** * 校验菜单名称是否唯一 * * @param menu 菜单信息 * @return 结果 */ @Override public String checkMenuNameUnique(SysMenu menu) { Long menuId = StringUtils.isNull(menu.getMenuId()) ? -1L : menu.getMenuId(); SysMenu info = menuMapper.checkMenuNameUnique(menu.getMenuName(), menu.getParentId()); if (StringUtils.isNotNull(info) && info.getMenuId().longValue() != menuId.longValue()) { return UserConstants.MENU_NAME_NOT_UNIQUE; } return UserConstants.MENU_NAME_UNIQUE; } /** * 根据父节点的ID获取所有子节点 * * @param list 分类表 * @param parentId 传入的父节点ID * @return String */ public List<SysMenu> getChildPerms(List<SysMenu> list, int parentId) { List<SysMenu> returnList = new ArrayList<SysMenu>(); for (Iterator<SysMenu> iterator = list.iterator(); iterator.hasNext();) { SysMenu t = (SysMenu) iterator.next(); // 一、根据传入的某个父节点ID,遍历该父节点的所有子节点 if (t.getParentId() == parentId) { recursionFn(list, t); returnList.add(t); } } return returnList; } /** * 递归列表 * * @param list * @param t */ private void recursionFn(List<SysMenu> list, SysMenu t) { // 得到子节点列表 List<SysMenu> childList = getChildList(list, t); t.setChildren(childList); for (SysMenu tChild : childList) { if (hasChild(list, tChild)) { // 判断是否有子节点 Iterator<SysMenu> it = childList.iterator(); while (it.hasNext()) { SysMenu n = (SysMenu) it.next(); recursionFn(list, n); } } } } /** * 得到子节点列表 */ private List<SysMenu> getChildList(List<SysMenu> list, SysMenu t) { List<SysMenu> tlist = new ArrayList<SysMenu>(); Iterator<SysMenu> it = list.iterator(); while (it.hasNext()) { SysMenu n = (SysMenu) it.next(); if (n.getParentId().longValue() == t.getMenuId().longValue()) { tlist.add(n); } } return tlist; } /** * 判断是否有子节点 */ private boolean hasChild(List<SysMenu> list, SysMenu t) { return getChildList(list, t).size() > 0 ? true : false; } }
[ "544500992@qq.com" ]
544500992@qq.com
808f4e3929121193327985dbce8f7f2723b51f9d
52fafc8e3d8723a37f5f0e257263c81562b946db
/src/com/dmide/ui/IDEProgressHandler.java
c543eb00b6cf11c739935f2af3085ad14c0508d1
[]
no_license
Rockdtben/JDMIDE2
2df40a3bb81f1f0b62765635b0fc021ffba77861
a263d211627c5f63f48b448b0a3ad95d46eae60a
refs/heads/master
2021-05-26T13:07:15.482753
2012-10-06T04:02:24
2012-10-06T04:02:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,337
java
package com.dmide.ui; import java.util.ArrayList; import javax.swing.JProgressBar; import com.dmide.util.events.IDEEvent; import com.dmide.util.events.IDEEventWatcher; import com.dmide.util.misc.IDEProcess; public class IDEProgressHandler implements IDEEventWatcher { JProgressBar progressBar; ArrayList<IDEProcess> processes = new ArrayList<>(); public IDEProgressHandler(JProgressBar progressBar) { this.progressBar = progressBar; } @Override public void eventRecieved(IDEEvent e) { if(e.getEventName().equals("progress.start")) { this.addProcess(e.getArgument(IDEProcess.class)); } else if(e.getEventName().equals("progress.change")) { this.processProgressChanged(e.getArgument(IDEProcess.class)); } else if(e.getEventName().equals("progress.end")) { this.removeProcess(e.getArgument(IDEProcess.class)); } } public void addProcess(IDEProcess p) { if(p != null) {this.processes.add(p); this.updateProgress();} } public void removeProcess(IDEProcess p) { if(p != null) {this.processes.remove(p); this.updateProgress();} } public void processProgressChanged(IDEProcess p) { if(this.processes.contains(p)) { this.updateProgress(); } } public void updateProgress() { if(this.progressBar == null) return; int max = 0; final StringBuilder sbtasks = new StringBuilder(); boolean first = true; for(IDEProcess p : this.processes) { if(!first) {sbtasks.append(", ");} else {first = false;} sbtasks.append(p.getDescription()); if(max != -1) { max += p.getProgress(); if(p.getProgress() < 0) { max = -1; // indeterminate... } } } final int _max = max; final int n = this.processes.size(); final JProgressBar pbar = this.progressBar; Runnable prun = null; if(max == -1) { prun = new Runnable() {@Override public void run() { pbar.setIndeterminate(true); pbar.setToolTipText(sbtasks.toString()); }}; } else if(max == 0 || n < 1) { prun = new Runnable() { @Override public void run() { pbar.setIndeterminate(false); pbar.setValue(0); pbar.setToolTipText("No tasks at this time..."); }}; } else { prun = new Runnable() { @Override public void run() { pbar.setValue( _max / n ); pbar.setToolTipText(sbtasks.toString()); }}; } UIUtil.toEventQueue(prun); } }
[ "dolphyO.o@gmail.com" ]
dolphyO.o@gmail.com
ed05ce230f007a778329cd7ff2c9f963bee9b5fa
304b77c19acb1a8fdd78c391129df1cfd66fb08f
/loja/src/main/java/br/com/jonataslaet/microservice/loja/client/FornecedorClient.java
da99d09f2d8ca36405baffe6ff0f4d455fe409e4
[]
no_license
jonataslaet/microfloricultura
4918686276e29e82e15df3bd4de267bff9844f2d
e1e806e7f3525bd36e45b07a2ed432ae021a2c3d
refs/heads/master
2023-03-12T05:18:00.206434
2021-03-02T02:58:54
2021-03-02T02:58:54
334,066,758
0
0
null
null
null
null
UTF-8
Java
false
false
841
java
package br.com.jonataslaet.microservice.loja.client; import java.util.List; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import br.com.jonataslaet.microservice.loja.controller.dto.InfoFornecedorDTO; import br.com.jonataslaet.microservice.loja.controller.dto.InfoPedidoDTO; import br.com.jonataslaet.microservice.loja.controller.dto.ItemCompraDTO; @FeignClient("fornecedor") public interface FornecedorClient { @RequestMapping("/info/{estado}") InfoFornecedorDTO getInfoPorEstado(@PathVariable String estado); @RequestMapping(method = RequestMethod.POST, value = "/pedidos") InfoPedidoDTO realizaPedido(List<ItemCompraDTO> itens); }
[ "jonataslaetprogramador@gmail.com" ]
jonataslaetprogramador@gmail.com
8bf81dd57414b4fd7994bff85963a45525eddca7
708aa6d50d5b80f5ff0d72ce9cb930907ce7a493
/xcommon/src/main/java/com/xcommon/face/IFaceOperation.java
d25472321b9a3d5e620af9776dbebeb6c0370dc7
[]
no_license
xgs925/PicApp
0720fdbd5f05debf31f9190808be3e089372cb25
79354278a53d19f657e0c75c673fa684e6dfcf9f
refs/heads/master
2021-01-19T19:54:49.024295
2017-04-17T03:04:03
2017-04-17T03:04:03
88,462,331
1
0
null
null
null
null
UTF-8
Java
false
false
468
java
package com.xcommon.face; import android.content.Context; import com.xcommon.face.model.TJLayer; import java.util.List; /** * Created by Photostsrs on 2016/11/17. */ public interface IFaceOperation { void getModuleList(Context context, IFaceModuleListListener listener); List<TJLayer> readXml(String xmlName); void writeXml(List<TJLayer> tjLayers); void downloadModule(Context context, String xmlName, IFaceModuleDownloadListener listener); }
[ "xgs925@163.com" ]
xgs925@163.com
03a4905954352186be80b2e8722962d0110e4c66
3d5bb0440c9ebe3e62733a6405aca2ab031be548
/Practice/src/main/java/com/paranike/linkedlist/Main.java
92742c43de408b42ac0b3962e44c7c8d4f1c93f4
[]
no_license
nnikunj/Prac
8bc1dc341d3304291490f8ce7318e1d1882d8909
1d20d31beb6f0a8ee75d06a65faabad52b4027be
refs/heads/master
2020-04-15T17:04:20.750456
2019-01-26T01:07:44
2019-01-26T01:07:44
164,859,477
0
0
null
null
null
null
UTF-8
Java
false
false
855
java
package com.paranike.linkedlist; public class Main { public static void main(String[] args) { ListNode<String> head = new ListNode<String>("1"); SinglyLinkedList<String> list = new SinglyLinkedList<>(head); head = list.addFirst("0"); head = list.addFirst("-1"); head = list.addLast("2"); head = list.addLast("3"); list.visitAllNodes(head, (x) -> System.out.println(x)); ListNode<String> mid = list.getMidNode(); System.out.println("ZZZZZZZZZ"); System.out.println(mid.getInfo()); System.out.println("ZZZZZZZZZ"); ListNode<String> revHead = list.getReversedList(head); System.out.println("ZZZZZZZZZ"); list.visitAllNodes(revHead, (x) -> System.out.println(x)); System.out.println("ZZZZZZZZZ"); ListNode<String> revHead2 = list.getReversedList(revHead); list.visitAllNodes(revHead2, (x) -> System.out.println(x)); } }
[ "nikunjnilabh@gmail.com" ]
nikunjnilabh@gmail.com
651829080f45dff657117ec3d4f3d1236c06d9a0
438679ac193d6d10c96c850d368d128ed8accc88
/src/com/nompor/app/object/Target.java
53d9e21620ba4c82cf2f0acc372baaf8273da832
[]
no_license
nompor/TargetHitting
7250f61a7f28f5f7dcae25b2ec7a3dcb84bf770e
ee191d9ecc4f7312b02d549a0f1c35ac0cbef69f
refs/heads/master
2021-04-29T21:38:45.179380
2018-03-13T15:42:54
2018-03-13T15:42:54
121,620,456
0
0
null
null
null
null
UTF-8
Java
false
false
3,505
java
package com.nompor.app.object; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Point; import com.nompor.app.manager.AppManager; import com.nompor.gtk.animation.FadeAnimation; import com.nompor.gtk.animation.ImageDrawAnimation; import com.nompor.gtk.animation.ParallelAnimation; import com.nompor.gtk.animation.RotateAnimation; import com.nompor.gtk.animation.ScaleAnimation; import com.nompor.gtk.draw.GraphicsUtil; import com.nompor.gtk.geom.Circle; //的を表すクラス public class Target{ private Circle circle; private ImageDrawAnimation img; private int mx; private int my; private boolean isAlive=true; private int lastScorePoint=-1; private int sy; private int deleteFrame; private static Font font = new Font(Font.MONOSPACED, Font.BOLD, 20); //並列アニメーションオブジェクト //拡大、フェードアウト、回転を同時実行する private ParallelAnimation animation; public Target(int x, int y, int mx, int my) { //画像アニメーション this.img = new ImageDrawAnimation(AppManager.getTargetImage(),100,100,1); animation = new ParallelAnimation( new ScaleAnimation(img, 0.1) , new FadeAnimation(img, -0.12f) , new RotateAnimation(img, 10) ); //最後の画像を表示したら終了 img.setAnimationEndOfLastImageIndex(); //円オブジェクト(引数x,yは画像の左上座標を想定しているため+50が的の中央 circle = new Circle(x+50, y+50, 25); //移動量 this.mx = mx; this.my = my; } //的が破壊されていないか public boolean isAlive() { return isAlive; } //的を削除するか public boolean isDelete() { return !isAlive && deleteFrame > 60; } //破壊処理の要求メソッド public void breakProcess() { isAlive = false; } //描画 public void draw(Graphics g) { //破壊されたら破壊アニメーション if ( !isAlive ) { //アフィン変換アニメーション animation.update(); //画像差し替えアニメーション img.update(); deleteFrame++; } else { circle.cx+=mx; circle.cy+=my; } //アニメーション結果を適用した描画を実行 img.draw(g, circle.getICX()-50, circle.getICY()-50); if ( lastScorePoint != -1 ) { //破壊後の得点の描画 sy--; g.setColor(Color.WHITE); g.setFont(font); GraphicsUtil.drawCenteringString(g, ""+lastScorePoint, circle.getICX(), circle.getICY()+sy); } } //的との当たり判定用メソッド public boolean isHit(Point p, Circle c) { return c.contains(p.x, p.y); } //的との当たり判定用メソッド public boolean isHit(Point p) { return isHit(p, circle); } //的と中心点との計算を実行しスコアポイントを計算 public int getScorePoint(Point p) { //中心点への距離が近いほど高得点を返すように処理する double r = circle.getRadius(); r *= r; double vx = p.x - circle.cx; double vy = p.y - circle.cy; double r2 = vx*vx+vy*vy; int result = (int)Math.round((1.0 - r2 / r) * 100); lastScorePoint = (result < 0 ? 0 : result); return lastScorePoint; } //的の左端座標を返す public int getLeft() { return circle.getILeft(); } //的の上端座標を返す public int getTop() { return circle.getITop(); } //的の右端座標を返す public int getRight() { return circle.getIRight(); } //的の下端座標を返す public int getBottom() { return circle.getIBottom(); } }
[ "34595864+nompor@users.noreply.github.com" ]
34595864+nompor@users.noreply.github.com
c11693dc110af407086f25f7625d847108c17254
cf2b76d380774c048336126e644f8bfa2edd9f34
/项目备份/e3-main/e3-share/src/main/java/com/e3expo/e3/model/RfpDetail.java
bc1d28a9ac8634f5cd572837a49859e0b0472990
[]
no_license
cirsyou/web_daily
fc13abcad5b19e90bac35e876e4338f8ef4a7555
a8f79ff0e3adc0aa4edb113fa3d0362402e67769
refs/heads/master
2021-09-23T09:41:57.961435
2018-09-21T06:42:19
2018-09-21T06:42:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
11,500
java
package com.e3expo.e3.model; import com.e3expo.e3.validation.group.RfpDetailGroup; import com.e3expo.e3.validation.group.RfpGroup; import org.apache.ibatis.type.Alias; import javax.validation.constraints.NotNull; import java.io.Serializable; @Alias("rfpDetail") public class RfpDetail implements Serializable { @NotNull(groups = {RfpDetailGroup.UpdateDraft.class}) private Integer id; @NotNull(groups = {RfpDetailGroup.Create.class, RfpDetailGroup.UpdateDraft.class, RfpDetailGroup.CreateDraft.class}) private Integer rfpId; /** * 开口 */ @NotNull(groups = {RfpDetailGroup.Create.class}) private Integer open; /** * 特殊需求:1双层,2吊顶 */ private Integer specialDemand; /** * 主体结构 */ @NotNull(groups = {RfpDetailGroup.Create.class}) private Integer structure; private String structureRemark; /** * 材质 */ @NotNull(groups = {RfpDetailGroup.Create.class}) private Integer material; /** * 主体颜色 */ @NotNull(groups = {RfpDetailGroup.Create.class}) private String mainColor; /** * 辅助颜色 */ private String subColor; private String colorRemark; private String relativeLogoPath; private String specialDemandAndWarnings; private String referenceCiStandardPath; private String referencePosterPath; private String referenceHistoryGraphPath; private String referenceOtherFilePath; private Integer receptionAreaNum; private Integer productAreaNum; private Integer talkDeskNum; private Integer talkChairNum; private String talkRemark; private Integer seal; private String electronicsLedNum; private String electronicsIpadNum; private String electronicsRemark; private String otherEquipment; private String otherEquipmentRemark; private String storageAreaNum; private String storageAreaLength; private String storageAreaWidth; private String storageAreaRemark; private String activityAreaNum; private String activityAreaLength; private String activityAreaWidth; private String activityAreaRemark; private String exhibitionGoal; private String exhibitionGoalRemark; private String exhibitionAudience; private String exhibitionAudienceRemark; private String productDescription; private String rival; private String slogan; private String designConceptAdvice; private Long posterNum; private Long updateTime; private Integer status; private Integer userId; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getRfpId() { return rfpId; } public void setRfpId(Integer rfpId) { this.rfpId = rfpId; } public Integer getOpen() { return open; } public void setOpen(Integer open) { this.open = open; } public Integer getStructure() { return structure; } public void setStructure(Integer structure) { this.structure = structure; } public String getStructureRemark() { return structureRemark; } public void setStructureRemark(String structureRemark) { this.structureRemark = structureRemark; } public Integer getMaterial() { return material; } public void setMaterial(Integer material) { this.material = material; } public String getMainColor() { return mainColor; } public void setMainColor(String mainColor) { this.mainColor = mainColor; } public String getSubColor() { return subColor; } public void setSubColor(String subColor) { this.subColor = subColor; } public String getColorRemark() { return colorRemark; } public void setColorRemark(String colorRemark) { this.colorRemark = colorRemark; } public String getRelativeLogoPath() { return relativeLogoPath; } public void setRelativeLogoPath(String relativeLogoPath) { this.relativeLogoPath = relativeLogoPath; } public String getSpecialDemandAndWarnings() { return specialDemandAndWarnings; } public void setSpecialDemandAndWarnings(String specialDemandAndWarnings) { this.specialDemandAndWarnings = specialDemandAndWarnings; } public String getReferenceCiStandardPath() { return referenceCiStandardPath; } public void setReferenceCiStandardPath(String referenceCiStandardPath) { this.referenceCiStandardPath = referenceCiStandardPath; } public String getReferencePosterPath() { return referencePosterPath; } public void setReferencePosterPath(String referencePosterPath) { this.referencePosterPath = referencePosterPath; } public String getReferenceHistoryGraphPath() { return referenceHistoryGraphPath; } public void setReferenceHistoryGraphPath(String referenceHistoryGraphPath) { this.referenceHistoryGraphPath = referenceHistoryGraphPath; } public String getReferenceOtherFilePath() { return referenceOtherFilePath; } public void setReferenceOtherFilePath(String referenceOtherFilePath) { this.referenceOtherFilePath = referenceOtherFilePath; } public Integer getReceptionAreaNum() { return receptionAreaNum; } public void setReceptionAreaNum(Integer receptionAreaNum) { this.receptionAreaNum = receptionAreaNum; } public Integer getProductAreaNum() { return productAreaNum; } public void setProductAreaNum(Integer productAreaNum) { this.productAreaNum = productAreaNum; } public Integer getTalkDeskNum() { return talkDeskNum; } public void setTalkDeskNum(Integer talkDeskNum) { this.talkDeskNum = talkDeskNum; } public Integer getTalkChairNum() { return talkChairNum; } public void setTalkChairNum(Integer talkChairNum) { this.talkChairNum = talkChairNum; } public String getTalkRemark() { return talkRemark; } public void setTalkRemark(String talkRemark) { this.talkRemark = talkRemark; } public Integer getSeal() { return seal; } public void setSeal(Integer seal) { this.seal = seal; } public String getElectronicsLedNum() { return electronicsLedNum; } public void setElectronicsLedNum(String electronicsLedNum) { this.electronicsLedNum = electronicsLedNum; } public String getElectronicsIpadNum() { return electronicsIpadNum; } public void setElectronicsIpadNum(String electronicsIpadNum) { this.electronicsIpadNum = electronicsIpadNum; } public String getElectronicsRemark() { return electronicsRemark; } public void setElectronicsRemark(String electronicsRemark) { this.electronicsRemark = electronicsRemark; } public String getOtherEquipment() { return otherEquipment; } public void setOtherEquipment(String otherEquipment) { this.otherEquipment = otherEquipment; } public String getOtherEquipmentRemark() { return otherEquipmentRemark; } public void setOtherEquipmentRemark(String otherEquipmentRemark) { this.otherEquipmentRemark = otherEquipmentRemark; } public String getStorageAreaNum() { return storageAreaNum; } public void setStorageAreaNum(String storageAreaNum) { this.storageAreaNum = storageAreaNum; } public String getStorageAreaLength() { return storageAreaLength; } public void setStorageAreaLength(String storageAreaLength) { this.storageAreaLength = storageAreaLength; } public String getStorageAreaWidth() { return storageAreaWidth; } public void setStorageAreaWidth(String storageAreaWidth) { this.storageAreaWidth = storageAreaWidth; } public String getStorageAreaRemark() { return storageAreaRemark; } public void setStorageAreaRemark(String storageAreaRemark) { this.storageAreaRemark = storageAreaRemark; } public String getActivityAreaNum() { return activityAreaNum; } public void setActivityAreaNum(String activityAreaNum) { this.activityAreaNum = activityAreaNum; } public String getActivityAreaLength() { return activityAreaLength; } public void setActivityAreaLength(String activityAreaLength) { this.activityAreaLength = activityAreaLength; } public String getActivityAreaWidth() { return activityAreaWidth; } public void setActivityAreaWidth(String activityAreaWidth) { this.activityAreaWidth = activityAreaWidth; } public String getActivityAreaRemark() { return activityAreaRemark; } public void setActivityAreaRemark(String activityAreaRemark) { this.activityAreaRemark = activityAreaRemark; } public String getExhibitionGoal() { return exhibitionGoal; } public void setExhibitionGoal(String exhibitionGoal) { this.exhibitionGoal = exhibitionGoal; } public String getExhibitionGoalRemark() { return exhibitionGoalRemark; } public void setExhibitionGoalRemark(String exhibitionGoalRemark) { this.exhibitionGoalRemark = exhibitionGoalRemark; } public String getExhibitionAudience() { return exhibitionAudience; } public void setExhibitionAudience(String exhibitionAudience) { this.exhibitionAudience = exhibitionAudience; } public String getExhibitionAudienceRemark() { return exhibitionAudienceRemark; } public void setExhibitionAudienceRemark(String exhibitionAudienceRemark) { this.exhibitionAudienceRemark = exhibitionAudienceRemark; } public String getProductDescription() { return productDescription; } public void setProductDescription(String productDescription) { this.productDescription = productDescription; } public String getRival() { return rival; } public void setRival(String rival) { this.rival = rival; } public String getSlogan() { return slogan; } public void setSlogan(String slogan) { this.slogan = slogan; } public String getDesignConceptAdvice() { return designConceptAdvice; } public void setDesignConceptAdvice(String designConceptAdvice) { this.designConceptAdvice = designConceptAdvice; } public Long getPosterNum() { return posterNum; } public void setPosterNum(Long posterNum) { this.posterNum = posterNum; } public Long getUpdateTime() { return updateTime; } public void setUpdateTime(Long updateTime) { this.updateTime = updateTime; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public Integer getUserId() { return userId; } public void setUserId(Integer userId) { this.userId = userId; } public Integer getSpecialDemand() { return specialDemand; } public void setSpecialDemand(Integer specialDemand) { this.specialDemand = specialDemand; } }
[ "path2017@126.com" ]
path2017@126.com
1f047ee876ad1b73dc8c3ff3aaa243d8471d5ced
bb3f586282077ce757ad541f8e79101b2cc0d1bd
/src/pl/coderslab/TaskManager.java
2b3c6138ab127e308adb5c1f658fb4135efe6fef
[]
no_license
Slugi/TaskManager
c4d4cd24e398609e44f5b9d9ed4c7e98925f8e47
0288436a13a4be3d66445a9daaf468e2e69f52e7
refs/heads/master
2022-12-28T18:54:22.091624
2020-10-10T13:40:24
2020-10-10T13:40:24
291,475,294
0
0
null
null
null
null
UTF-8
Java
false
false
4,343
java
package pl.coderslab; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.math.NumberUtils; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class TaskManager { static final String FILE_NAME = "tasks.csv"; static final String[] OPTIONS = {"add", "remove", "list", "exit"}; static String[][] zadania; public static void main(String[] args) { zadania = odczyt(FILE_NAME); odczyt(FILE_NAME); wybierzOpcje(OPTIONS); menu(OPTIONS); } public static String[][] odczyt(String fileName) { Path dir = Paths.get(fileName); if (!Files.exists(dir)) { System.out.println("Plik nie istnieje."); System.exit(0); } String[][] tab = null; try { List<String> strings = Files.readAllLines(dir); tab = new String[strings.size()][strings.get(0).split(",").length]; for (int i = 0; i < strings.size(); i++) { String[] splitt = strings.get(i).split(","); System.arraycopy(splitt, 0, tab[i], 0, splitt.length); } } catch (IOException e) { e.printStackTrace(); } return tab; } public static void wybierzOpcje(String[] tab) { menu(OPTIONS); Scanner scan = new Scanner(System.in); while (scan.hasNextLine()) { String input = scan.nextLine(); switch (input) { case "list" -> pokazListe(zadania); case "remove" -> { usuwanieZadania(zadania, podajNumer()); System.out.println("Punkt został pomyślnie usunięty."); } case "add" -> dodawanieZadania(); case "exit" -> { zapiszWPliku(FILE_NAME, zadania); System.out.println(ConsoleColors.RED); System.out.println("Bye, bye."); System.exit(0); } default -> System.out.println("Wybierz prawidłową opcję"); } menu(OPTIONS); } } public static void pokazListe(String[][] tab) { for (int i = 0; i < tab.length; i++) { System.out.print(i + " : "); for (int j = 0; j < tab[i].length; j++) { System.out.print(tab[i][j] + " "); } System.out.println(); } } public static void menu(String[] tab) { System.out.println(ConsoleColors.BLUE); System.out.println("Wybierz opcję: " + ConsoleColors.RESET); for (String option : tab) { System.out.println(option); } } public static boolean czyWiekszaRownaZero(String input) { if (NumberUtils.isParsable(input)) { return Integer.parseInt(input) >= 0; } return false; } public static int podajNumer() { Scanner scanner = new Scanner(System.in); System.out.println("Podaj numer zadania do usunięcia:"); String num = scanner.nextLine(); while (!czyWiekszaRownaZero(num)) { System.out.println("Nieprawidłowa watrość. Podaj numer większy lub równy 0."); scanner.nextLine(); } return Integer.parseInt(num); } private static void usuwanieZadania(String[][] tab, int index) { try { if (index < tab.length) { zadania = ArrayUtils.remove(tab, index); } } catch (ArrayIndexOutOfBoundsException ex) { System.err.println("Podany element nie występuje na liście."); } } private static void dodawanieZadania() { Scanner scanner = new Scanner(System.in); System.out.println("Podaj opis zadania."); String opis = scanner.nextLine(); System.out.println("Podaj termin wykonania zadania."); String data = scanner.nextLine(); System.out.println("Czy zadanie jest ważne: true/false."); String czyWazne = scanner.nextLine(); zadania = Arrays.copyOf(zadania, zadania.length + 1); zadania[zadania.length - 1] = new String[3]; zadania[zadania.length - 1][0] = opis; zadania[zadania.length - 1][1] = data; zadania[zadania.length - 1][2] = czyWazne; } public static void zapiszWPliku(String fileName, String[][] tab) { Path dir = Paths.get(fileName); String[] lista = new String[zadania.length]; for (int i = 0; i < tab.length; i++) { lista[i] = String.join(", ", tab[i]); } try { Files.write(dir, Arrays.asList(lista)); } catch (IOException ex) { ex.printStackTrace(); } } }
[ "slugii@hotmail.com" ]
slugii@hotmail.com
2895af613f7371d7642c697cb60da3d882753ce8
cb0a1b0ac15f5c827b33bd764a5329aaa5070ff9
/xdroid/build/generated/source/r/androidTest/debug/com/zhy/autolayout/R.java
e88aee2073cedd75eb3b22afe9fe0e4c97d5567b
[]
no_license
liuhui2013/TuanFan
fd338bda696793a6a9449a746454a09e0f8c24f3
1180a188808717d96b15f704b13929a9c8d6ffdb
refs/heads/master
2021-08-31T17:21:03.242805
2017-12-22T06:15:20
2017-12-22T06:15:20
115,073,210
0
0
null
null
null
null
UTF-8
Java
false
false
81,220
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package com.zhy.autolayout; public final class R { public static final class anim { public static final int abc_fade_in = 0x7f050000; public static final int abc_fade_out = 0x7f050001; public static final int abc_grow_fade_in_from_bottom = 0x7f050002; public static final int abc_popup_enter = 0x7f050003; public static final int abc_popup_exit = 0x7f050004; public static final int abc_shrink_fade_out_from_bottom = 0x7f050005; public static final int abc_slide_in_bottom = 0x7f050006; public static final int abc_slide_in_top = 0x7f050007; public static final int abc_slide_out_bottom = 0x7f050008; public static final int abc_slide_out_top = 0x7f050009; } public static final class attr { public static final int actionBarDivider = 0x7f0100a8; public static final int actionBarItemBackground = 0x7f0100a9; public static final int actionBarPopupTheme = 0x7f0100a2; public static final int actionBarSize = 0x7f0100a7; public static final int actionBarSplitStyle = 0x7f0100a4; public static final int actionBarStyle = 0x7f0100a3; public static final int actionBarTabBarStyle = 0x7f01009e; public static final int actionBarTabStyle = 0x7f01009d; public static final int actionBarTabTextStyle = 0x7f01009f; public static final int actionBarTheme = 0x7f0100a5; public static final int actionBarWidgetTheme = 0x7f0100a6; public static final int actionButtonStyle = 0x7f0100c3; public static final int actionDropDownStyle = 0x7f0100bf; public static final int actionLayout = 0x7f0101a9; public static final int actionMenuTextAppearance = 0x7f0100aa; public static final int actionMenuTextColor = 0x7f0100ab; public static final int actionModeBackground = 0x7f0100ae; public static final int actionModeCloseButtonStyle = 0x7f0100ad; public static final int actionModeCloseDrawable = 0x7f0100b0; public static final int actionModeCopyDrawable = 0x7f0100b2; public static final int actionModeCutDrawable = 0x7f0100b1; public static final int actionModeFindDrawable = 0x7f0100b6; public static final int actionModePasteDrawable = 0x7f0100b3; public static final int actionModePopupWindowStyle = 0x7f0100b8; public static final int actionModeSelectAllDrawable = 0x7f0100b4; public static final int actionModeShareDrawable = 0x7f0100b5; public static final int actionModeSplitBackground = 0x7f0100af; public static final int actionModeStyle = 0x7f0100ac; public static final int actionModeWebSearchDrawable = 0x7f0100b7; public static final int actionOverflowButtonStyle = 0x7f0100a0; public static final int actionOverflowMenuStyle = 0x7f0100a1; public static final int actionProviderClass = 0x7f0101ab; public static final int actionViewClass = 0x7f0101aa; public static final int activityChooserViewStyle = 0x7f0100cb; public static final int alertDialogButtonGroupStyle = 0x7f0100f0; public static final int alertDialogCenterButtons = 0x7f0100f1; public static final int alertDialogStyle = 0x7f0100ef; public static final int alertDialogTheme = 0x7f0100f2; public static final int arrowHeadLength = 0x7f01015f; public static final int arrowShaftLength = 0x7f010160; public static final int autoCompleteTextViewStyle = 0x7f0100f7; public static final int background = 0x7f010066; public static final int backgroundSplit = 0x7f010068; public static final int backgroundStacked = 0x7f010067; public static final int backgroundTint = 0x7f010244; public static final int backgroundTintMode = 0x7f010245; public static final int barLength = 0x7f010161; public static final int borderlessButtonStyle = 0x7f0100c8; public static final int buttonBarButtonStyle = 0x7f0100c5; public static final int buttonBarNegativeButtonStyle = 0x7f0100f5; public static final int buttonBarNeutralButtonStyle = 0x7f0100f6; public static final int buttonBarPositiveButtonStyle = 0x7f0100f4; public static final int buttonBarStyle = 0x7f0100c4; public static final int buttonPanelSideLayout = 0x7f01007b; public static final int buttonStyle = 0x7f0100f8; public static final int buttonStyleSmall = 0x7f0100f9; public static final int buttonTint = 0x7f010137; public static final int buttonTintMode = 0x7f010138; public static final int checkboxStyle = 0x7f0100fa; public static final int checkedTextViewStyle = 0x7f0100fb; public static final int closeIcon = 0x7f0101cf; public static final int closeItemLayout = 0x7f010078; public static final int collapseContentDescription = 0x7f01022a; public static final int collapseIcon = 0x7f010229; public static final int color = 0x7f01015b; public static final int colorAccent = 0x7f0100e7; public static final int colorButtonNormal = 0x7f0100eb; public static final int colorControlActivated = 0x7f0100e9; public static final int colorControlHighlight = 0x7f0100ea; public static final int colorControlNormal = 0x7f0100e8; public static final int colorPrimary = 0x7f0100e5; public static final int colorPrimaryDark = 0x7f0100e6; public static final int colorSwitchThumbNormal = 0x7f0100ec; public static final int commitIcon = 0x7f0101d4; public static final int contentInsetEnd = 0x7f010071; public static final int contentInsetLeft = 0x7f010072; public static final int contentInsetRight = 0x7f010073; public static final int contentInsetStart = 0x7f010070; public static final int controlBackground = 0x7f0100ed; public static final int customNavigationLayout = 0x7f010069; public static final int defaultQueryHint = 0x7f0101ce; public static final int dialogPreferredPadding = 0x7f0100bd; public static final int dialogTheme = 0x7f0100bc; public static final int displayOptions = 0x7f01005f; public static final int divider = 0x7f010065; public static final int dividerHorizontal = 0x7f0100ca; public static final int dividerPadding = 0x7f010197; public static final int dividerVertical = 0x7f0100c9; public static final int drawableSize = 0x7f01015d; public static final int drawerArrowStyle = 0x7f010006; public static final int dropDownListViewStyle = 0x7f0100dc; public static final int dropdownListPreferredItemHeight = 0x7f0100c0; public static final int editTextBackground = 0x7f0100d1; public static final int editTextColor = 0x7f0100d0; public static final int editTextStyle = 0x7f0100fc; public static final int elevation = 0x7f010076; public static final int expandActivityOverflowButtonDrawable = 0x7f01007a; public static final int gapBetweenBars = 0x7f01015e; public static final int goIcon = 0x7f0101d0; public static final int height = 0x7f010008; public static final int hideOnContentScroll = 0x7f01006f; public static final int homeAsUpIndicator = 0x7f0100c2; public static final int homeLayout = 0x7f01006a; public static final int icon = 0x7f010063; public static final int iconifiedByDefault = 0x7f0101cc; public static final int indeterminateProgressStyle = 0x7f01006c; public static final int initialActivityCount = 0x7f010079; public static final int isLightTheme = 0x7f010009; public static final int itemPadding = 0x7f01006e; public static final int layout = 0x7f0101cb; public static final int layout_auto_baseheight = 0x7f01010c; public static final int layout_auto_basewidth = 0x7f01010b; public static final int listChoiceBackgroundIndicator = 0x7f0100e4; public static final int listDividerAlertDialog = 0x7f0100be; public static final int listItemLayout = 0x7f01007f; public static final int listLayout = 0x7f01007c; public static final int listPopupWindowStyle = 0x7f0100dd; public static final int listPreferredItemHeight = 0x7f0100d7; public static final int listPreferredItemHeightLarge = 0x7f0100d9; public static final int listPreferredItemHeightSmall = 0x7f0100d8; public static final int listPreferredItemPaddingLeft = 0x7f0100da; public static final int listPreferredItemPaddingRight = 0x7f0100db; public static final int logo = 0x7f010064; public static final int logoDescription = 0x7f01022d; public static final int maxButtonHeight = 0x7f010227; public static final int measureWithLargestChild = 0x7f010195; public static final int metro_divider = 0x7f0101b2; public static final int multiChoiceItemLayout = 0x7f01007d; public static final int navigationContentDescription = 0x7f01022c; public static final int navigationIcon = 0x7f01022b; public static final int navigationMode = 0x7f01005e; public static final int overlapAnchor = 0x7f0101ba; public static final int paddingEnd = 0x7f010242; public static final int paddingStart = 0x7f010241; public static final int panelBackground = 0x7f0100e1; public static final int panelMenuListTheme = 0x7f0100e3; public static final int panelMenuListWidth = 0x7f0100e2; public static final int popupMenuStyle = 0x7f0100ce; public static final int popupTheme = 0x7f010077; public static final int popupWindowStyle = 0x7f0100cf; public static final int preserveIconSpacing = 0x7f0101b0; public static final int progressBarPadding = 0x7f01006d; public static final int progressBarStyle = 0x7f01006b; public static final int queryBackground = 0x7f0101d6; public static final int queryHint = 0x7f0101cd; public static final int radioButtonStyle = 0x7f0100fd; public static final int ratingBarStyle = 0x7f0100fe; public static final int searchHintIcon = 0x7f0101d2; public static final int searchIcon = 0x7f0101d1; public static final int searchViewStyle = 0x7f0100d6; public static final int selectableItemBackground = 0x7f0100c6; public static final int selectableItemBackgroundBorderless = 0x7f0100c7; public static final int showAsAction = 0x7f0101a8; public static final int showDividers = 0x7f010196; public static final int showText = 0x7f0101e6; public static final int singleChoiceItemLayout = 0x7f01007e; public static final int spinBars = 0x7f01015c; public static final int spinnerDropDownItemStyle = 0x7f0100c1; public static final int spinnerStyle = 0x7f010102; public static final int splitTrack = 0x7f0101e5; public static final int state_above_anchor = 0x7f0101bb; public static final int submitBackground = 0x7f0101d7; public static final int subtitle = 0x7f010060; public static final int subtitleTextAppearance = 0x7f010220; public static final int subtitleTextColor = 0x7f01022f; public static final int subtitleTextStyle = 0x7f010062; public static final int suggestionRowLayout = 0x7f0101d5; public static final int switchMinWidth = 0x7f0101e3; public static final int switchPadding = 0x7f0101e4; public static final int switchStyle = 0x7f010103; public static final int switchTextAppearance = 0x7f0101e2; public static final int textAllCaps = 0x7f01008c; public static final int textAppearanceLargePopupMenu = 0x7f0100b9; public static final int textAppearanceListItem = 0x7f0100de; public static final int textAppearanceListItemSmall = 0x7f0100e0; public static final int textAppearanceSearchResultSubtitle = 0x7f0100d4; public static final int textAppearanceSearchResultTitle = 0x7f0100d3; public static final int textAppearanceSmallPopupMenu = 0x7f0100ba; public static final int textColorAlertDialogListItem = 0x7f0100f3; public static final int textColorSearchUrl = 0x7f0100d5; public static final int theme = 0x7f010243; public static final int thickness = 0x7f010162; public static final int thumbTextPadding = 0x7f0101e1; public static final int title = 0x7f01005a; public static final int titleMarginBottom = 0x7f010225; public static final int titleMarginEnd = 0x7f010223; public static final int titleMarginStart = 0x7f010222; public static final int titleMarginTop = 0x7f010224; public static final int titleMargins = 0x7f010226; public static final int titleTextAppearance = 0x7f01021f; public static final int titleTextColor = 0x7f01022e; public static final int titleTextStyle = 0x7f010061; public static final int toolbarNavigationButtonStyle = 0x7f0100cd; public static final int toolbarStyle = 0x7f0100cc; public static final int track = 0x7f0101de; public static final int voiceIcon = 0x7f0101d3; public static final int windowActionBar = 0x7f010093; public static final int windowActionBarOverlay = 0x7f010095; public static final int windowActionModeOverlay = 0x7f010096; public static final int windowFixedHeightMajor = 0x7f01009a; public static final int windowFixedHeightMinor = 0x7f010098; public static final int windowFixedWidthMajor = 0x7f010097; public static final int windowFixedWidthMinor = 0x7f010099; public static final int windowMinWidthMajor = 0x7f01009b; public static final int windowMinWidthMinor = 0x7f01009c; public static final int windowNoTitle = 0x7f010094; } public static final class bool { public static final int abc_action_bar_embed_tabs = 0x7f0b0000; public static final int abc_config_actionMenuItemAllCaps = 0x7f0b0002; public static final int abc_config_closeDialogWhenTouchOutside = 0x7f0b0003; public static final int abc_config_showMenuShortcutsWhenKeyboardPresent = 0x7f0b0004; } public static final class color { public static final int abc_background_cache_hint_selector_material_dark = 0x7f0d0087; public static final int abc_background_cache_hint_selector_material_light = 0x7f0d0088; public static final int abc_color_highlight_material = 0x7f0d008b; public static final int abc_input_method_navigation_guard = 0x7f0d0001; public static final int abc_primary_text_disable_only_material_dark = 0x7f0d008e; public static final int abc_primary_text_disable_only_material_light = 0x7f0d008f; public static final int abc_primary_text_material_dark = 0x7f0d0090; public static final int abc_primary_text_material_light = 0x7f0d0091; public static final int abc_search_url_text = 0x7f0d0092; public static final int abc_search_url_text_normal = 0x7f0d0002; public static final int abc_search_url_text_pressed = 0x7f0d0003; public static final int abc_search_url_text_selected = 0x7f0d0004; public static final int abc_secondary_text_material_dark = 0x7f0d0093; public static final int abc_secondary_text_material_light = 0x7f0d0094; public static final int accent_material_dark = 0x7f0d0006; public static final int accent_material_light = 0x7f0d0007; public static final int background_floating_material_dark = 0x7f0d0008; public static final int background_floating_material_light = 0x7f0d0009; public static final int background_material_dark = 0x7f0d000a; public static final int background_material_light = 0x7f0d000b; public static final int bright_foreground_disabled_material_dark = 0x7f0d000c; public static final int bright_foreground_disabled_material_light = 0x7f0d000d; public static final int bright_foreground_inverse_material_dark = 0x7f0d000e; public static final int bright_foreground_inverse_material_light = 0x7f0d000f; public static final int bright_foreground_material_dark = 0x7f0d0010; public static final int bright_foreground_material_light = 0x7f0d0011; public static final int button_material_dark = 0x7f0d0012; public static final int button_material_light = 0x7f0d0013; public static final int dim_foreground_disabled_material_dark = 0x7f0d002e; public static final int dim_foreground_disabled_material_light = 0x7f0d002f; public static final int dim_foreground_material_dark = 0x7f0d0030; public static final int dim_foreground_material_light = 0x7f0d0031; public static final int foreground_material_dark = 0x7f0d0038; public static final int foreground_material_light = 0x7f0d0039; public static final int highlighted_text_material_dark = 0x7f0d003b; public static final int highlighted_text_material_light = 0x7f0d003c; public static final int material_blue_grey_800 = 0x7f0d0047; public static final int material_blue_grey_900 = 0x7f0d0048; public static final int material_blue_grey_950 = 0x7f0d0049; public static final int material_deep_teal_200 = 0x7f0d004a; public static final int material_deep_teal_500 = 0x7f0d004b; public static final int material_grey_100 = 0x7f0d004c; public static final int material_grey_300 = 0x7f0d004d; public static final int material_grey_50 = 0x7f0d004e; public static final int material_grey_600 = 0x7f0d004f; public static final int material_grey_800 = 0x7f0d0050; public static final int material_grey_850 = 0x7f0d0051; public static final int material_grey_900 = 0x7f0d0052; public static final int primary_dark_material_dark = 0x7f0d0065; public static final int primary_dark_material_light = 0x7f0d0066; public static final int primary_material_dark = 0x7f0d0067; public static final int primary_material_light = 0x7f0d0068; public static final int primary_text_default_material_dark = 0x7f0d0069; public static final int primary_text_default_material_light = 0x7f0d006a; public static final int primary_text_disabled_material_dark = 0x7f0d006b; public static final int primary_text_disabled_material_light = 0x7f0d006c; public static final int ripple_material_dark = 0x7f0d006d; public static final int ripple_material_light = 0x7f0d006e; public static final int secondary_text_default_material_dark = 0x7f0d006f; public static final int secondary_text_default_material_light = 0x7f0d0070; public static final int secondary_text_disabled_material_dark = 0x7f0d0071; public static final int secondary_text_disabled_material_light = 0x7f0d0072; public static final int switch_thumb_disabled_material_dark = 0x7f0d0074; public static final int switch_thumb_disabled_material_light = 0x7f0d0075; public static final int switch_thumb_material_dark = 0x7f0d00a0; public static final int switch_thumb_material_light = 0x7f0d00a1; public static final int switch_thumb_normal_material_dark = 0x7f0d0076; public static final int switch_thumb_normal_material_light = 0x7f0d0077; } public static final class dimen { public static final int abc_action_bar_content_inset_material = 0x7f09000d; public static final int abc_action_bar_default_height_material = 0x7f090001; public static final int abc_action_bar_default_padding_end_material = 0x7f09000f; public static final int abc_action_bar_default_padding_start_material = 0x7f090010; public static final int abc_action_bar_icon_vertical_padding_material = 0x7f090021; public static final int abc_action_bar_overflow_padding_end_material = 0x7f090022; public static final int abc_action_bar_overflow_padding_start_material = 0x7f090023; public static final int abc_action_bar_progress_bar_size = 0x7f090002; public static final int abc_action_bar_stacked_max_height = 0x7f090024; public static final int abc_action_bar_stacked_tab_max_width = 0x7f090025; public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f090026; public static final int abc_action_bar_subtitle_top_margin_material = 0x7f090027; public static final int abc_action_button_min_height_material = 0x7f090028; public static final int abc_action_button_min_width_material = 0x7f090029; public static final int abc_action_button_min_width_overflow_material = 0x7f09002a; public static final int abc_alert_dialog_button_bar_height = 0x7f090000; public static final int abc_button_inset_horizontal_material = 0x7f09002b; public static final int abc_button_inset_vertical_material = 0x7f09002c; public static final int abc_button_padding_horizontal_material = 0x7f09002d; public static final int abc_button_padding_vertical_material = 0x7f09002e; public static final int abc_config_prefDialogWidth = 0x7f090005; public static final int abc_control_corner_material = 0x7f090030; public static final int abc_control_inset_material = 0x7f090031; public static final int abc_control_padding_material = 0x7f090032; public static final int abc_dialog_min_width_major = 0x7f09000a; public static final int abc_dialog_min_width_minor = 0x7f09000b; public static final int abc_dialog_padding_material = 0x7f090035; public static final int abc_dialog_padding_top_material = 0x7f090036; public static final int abc_disabled_alpha_material_dark = 0x7f090038; public static final int abc_disabled_alpha_material_light = 0x7f090039; public static final int abc_dropdownitem_icon_width = 0x7f09003a; public static final int abc_dropdownitem_text_padding_left = 0x7f09003b; public static final int abc_dropdownitem_text_padding_right = 0x7f09003c; public static final int abc_edit_text_inset_bottom_material = 0x7f09003d; public static final int abc_edit_text_inset_horizontal_material = 0x7f09003e; public static final int abc_edit_text_inset_top_material = 0x7f09003f; public static final int abc_floating_window_z = 0x7f090040; public static final int abc_list_item_padding_horizontal_material = 0x7f090041; public static final int abc_panel_menu_list_width = 0x7f090042; public static final int abc_search_view_preferred_width = 0x7f090045; public static final int abc_switch_padding = 0x7f09001b; public static final int abc_text_size_body_1_material = 0x7f090049; public static final int abc_text_size_body_2_material = 0x7f09004a; public static final int abc_text_size_button_material = 0x7f09004b; public static final int abc_text_size_caption_material = 0x7f09004c; public static final int abc_text_size_display_1_material = 0x7f09004d; public static final int abc_text_size_display_2_material = 0x7f09004e; public static final int abc_text_size_display_3_material = 0x7f09004f; public static final int abc_text_size_display_4_material = 0x7f090050; public static final int abc_text_size_headline_material = 0x7f090051; public static final int abc_text_size_large_material = 0x7f090052; public static final int abc_text_size_medium_material = 0x7f090053; public static final int abc_text_size_menu_material = 0x7f090055; public static final int abc_text_size_small_material = 0x7f090056; public static final int abc_text_size_subhead_material = 0x7f090057; public static final int abc_text_size_subtitle_material_toolbar = 0x7f090003; public static final int abc_text_size_title_material = 0x7f090058; public static final int abc_text_size_title_material_toolbar = 0x7f090004; public static final int disabled_alpha_material_dark = 0x7f09008f; public static final int disabled_alpha_material_light = 0x7f090090; public static final int highlight_alpha_material_colored = 0x7f090098; public static final int highlight_alpha_material_dark = 0x7f090099; public static final int highlight_alpha_material_light = 0x7f09009a; public static final int notification_large_icon_height = 0x7f0900cd; public static final int notification_large_icon_width = 0x7f0900ce; public static final int notification_subtext_size = 0x7f0900d2; } public static final class drawable { public static final int abc_ab_share_pack_mtrl_alpha = 0x7f020000; public static final int abc_action_bar_item_background_material = 0x7f020001; public static final int abc_btn_borderless_material = 0x7f020002; public static final int abc_btn_check_material = 0x7f020003; public static final int abc_btn_check_to_on_mtrl_000 = 0x7f020004; public static final int abc_btn_check_to_on_mtrl_015 = 0x7f020005; public static final int abc_btn_colored_material = 0x7f020006; public static final int abc_btn_default_mtrl_shape = 0x7f020007; public static final int abc_btn_radio_material = 0x7f020008; public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f020009; public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f02000a; public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f02000b; public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f02000c; public static final int abc_cab_background_internal_bg = 0x7f02000d; public static final int abc_cab_background_top_material = 0x7f02000e; public static final int abc_cab_background_top_mtrl_alpha = 0x7f02000f; public static final int abc_control_background_material = 0x7f020010; public static final int abc_edit_text_material = 0x7f020012; public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f020016; public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f020018; public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f020019; public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f02001b; public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f02001c; public static final int abc_ic_menu_share_mtrl_alpha = 0x7f02001d; public static final int abc_item_background_holo_dark = 0x7f020026; public static final int abc_item_background_holo_light = 0x7f020027; public static final int abc_list_divider_mtrl_alpha = 0x7f020028; public static final int abc_list_focused_holo = 0x7f020029; public static final int abc_list_longpressed_holo = 0x7f02002a; public static final int abc_list_pressed_holo_dark = 0x7f02002b; public static final int abc_list_pressed_holo_light = 0x7f02002c; public static final int abc_list_selector_background_transition_holo_dark = 0x7f02002d; public static final int abc_list_selector_background_transition_holo_light = 0x7f02002e; public static final int abc_list_selector_disabled_holo_dark = 0x7f02002f; public static final int abc_list_selector_disabled_holo_light = 0x7f020030; public static final int abc_list_selector_holo_dark = 0x7f020031; public static final int abc_list_selector_holo_light = 0x7f020032; public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f020033; public static final int abc_popup_background_mtrl_mult = 0x7f020034; public static final int abc_spinner_mtrl_am_alpha = 0x7f020040; public static final int abc_spinner_textfield_background_material = 0x7f020041; public static final int abc_switch_thumb_material = 0x7f020042; public static final int abc_switch_track_mtrl_alpha = 0x7f020043; public static final int abc_tab_indicator_material = 0x7f020044; public static final int abc_tab_indicator_mtrl_alpha = 0x7f020045; public static final int abc_text_cursor_material = 0x7f020046; public static final int abc_textfield_activated_mtrl_alpha = 0x7f02004d; public static final int abc_textfield_default_mtrl_alpha = 0x7f02004e; public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f02004f; public static final int abc_textfield_search_default_mtrl_alpha = 0x7f020050; public static final int abc_textfield_search_material = 0x7f020051; public static final int notification_template_icon_bg = 0x7f0200b8; } public static final class id { public static final int action0 = 0x7f0e0168; public static final int action_bar = 0x7f0e00e4; public static final int action_bar_activity_content = 0x7f0e0004; public static final int action_bar_container = 0x7f0e00e3; public static final int action_bar_root = 0x7f0e00df; public static final int action_bar_spinner = 0x7f0e0005; public static final int action_bar_subtitle = 0x7f0e00c3; public static final int action_bar_title = 0x7f0e00c2; public static final int action_context_bar = 0x7f0e00e5; public static final int action_divider = 0x7f0e016c; public static final int action_menu_divider = 0x7f0e0006; public static final int action_menu_presenter = 0x7f0e0007; public static final int action_mode_bar = 0x7f0e00e1; public static final int action_mode_bar_stub = 0x7f0e00e0; public static final int action_mode_close_button = 0x7f0e00c4; public static final int activity_chooser_view_content = 0x7f0e00c5; public static final int alertTitle = 0x7f0e00d8; public static final int always = 0x7f0e00b1; public static final int beginning = 0x7f0e00a6; public static final int buttonPanel = 0x7f0e00cb; public static final int cancel_action = 0x7f0e0169; public static final int checkbox = 0x7f0e00db; public static final int chronometer = 0x7f0e0171; public static final int collapseActionView = 0x7f0e00b2; public static final int contentPanel = 0x7f0e00ce; public static final int custom = 0x7f0e00d5; public static final int customPanel = 0x7f0e00d4; public static final int decor_content_parent = 0x7f0e00e2; public static final int default_activity_button = 0x7f0e00c8; public static final int disableHome = 0x7f0e0061; public static final int edit_query = 0x7f0e00e6; public static final int end = 0x7f0e0030; public static final int end_padder = 0x7f0e0177; public static final int expand_activities_button = 0x7f0e00c6; public static final int expanded_menu = 0x7f0e00da; public static final int height = 0x7f0e0074; public static final int home = 0x7f0e000b; public static final int homeAsUp = 0x7f0e0062; public static final int icon = 0x7f0e00ca; public static final int id_tag_autolayout_margin = 0x7f0e000c; public static final int id_tag_autolayout_padding = 0x7f0e000d; public static final int id_tag_autolayout_size = 0x7f0e000e; public static final int ifRoom = 0x7f0e00b3; public static final int image = 0x7f0e00c7; public static final int info = 0x7f0e0172; public static final int line1 = 0x7f0e0010; public static final int line3 = 0x7f0e0011; public static final int listMode = 0x7f0e005e; public static final int list_item = 0x7f0e00c9; public static final int margin = 0x7f0e0075; public static final int marginBottom = 0x7f0e0076; public static final int marginLeft = 0x7f0e0077; public static final int marginRight = 0x7f0e0078; public static final int marginTop = 0x7f0e0079; public static final int maxHeight = 0x7f0e0081; public static final int maxWidth = 0x7f0e0082; public static final int media_actions = 0x7f0e016b; public static final int middle = 0x7f0e00a7; public static final int minHeight = 0x7f0e0083; public static final int minWidth = 0x7f0e0084; public static final int multiply = 0x7f0e006d; public static final int never = 0x7f0e00b4; public static final int none = 0x7f0e0040; public static final int normal = 0x7f0e005f; public static final int padding = 0x7f0e007a; public static final int paddingBottom = 0x7f0e007b; public static final int paddingLeft = 0x7f0e007c; public static final int paddingRight = 0x7f0e007d; public static final int paddingTop = 0x7f0e007e; public static final int parentPanel = 0x7f0e00cd; public static final int progress_circular = 0x7f0e0016; public static final int progress_horizontal = 0x7f0e0017; public static final int radio = 0x7f0e00dd; public static final int screen = 0x7f0e006e; public static final int scrollView = 0x7f0e00d0; public static final int search_badge = 0x7f0e00e8; public static final int search_bar = 0x7f0e00e7; public static final int search_button = 0x7f0e00e9; public static final int search_close_btn = 0x7f0e00ee; public static final int search_edit_frame = 0x7f0e00ea; public static final int search_go_btn = 0x7f0e00f0; public static final int search_mag_icon = 0x7f0e00eb; public static final int search_plate = 0x7f0e00ec; public static final int search_src_text = 0x7f0e00ed; public static final int search_voice_btn = 0x7f0e00f1; public static final int select_dialog_listview = 0x7f0e00f2; public static final int shortcut = 0x7f0e00dc; public static final int showCustom = 0x7f0e0063; public static final int showHome = 0x7f0e0064; public static final int showTitle = 0x7f0e0065; public static final int split_action_bar = 0x7f0e001d; public static final int src_atop = 0x7f0e006f; public static final int src_in = 0x7f0e0070; public static final int src_over = 0x7f0e0071; public static final int status_bar_latest_event_content = 0x7f0e016a; public static final int submit_area = 0x7f0e00ef; public static final int tabMode = 0x7f0e0060; public static final int text = 0x7f0e001f; public static final int text2 = 0x7f0e0020; public static final int textSize = 0x7f0e007f; public static final int textSpacerNoButtons = 0x7f0e00d2; public static final int time = 0x7f0e0170; public static final int title = 0x7f0e0023; public static final int title_template = 0x7f0e00d7; public static final int topPanel = 0x7f0e00d6; public static final int up = 0x7f0e002d; public static final int useLogo = 0x7f0e0066; public static final int width = 0x7f0e0080; public static final int withText = 0x7f0e00b5; public static final int wrap_content = 0x7f0e0073; } public static final class integer { public static final int abc_config_activityDefaultDur = 0x7f0c0001; public static final int abc_config_activityShortDur = 0x7f0c0002; public static final int cancel_button_image_alpha = 0x7f0c0006; public static final int status_bar_notification_info_maxnum = 0x7f0c000f; } public static final class layout { public static final int abc_action_bar_title_item = 0x7f040000; public static final int abc_action_bar_up_container = 0x7f040001; public static final int abc_action_menu_item_layout = 0x7f040002; public static final int abc_action_menu_layout = 0x7f040003; public static final int abc_action_mode_bar = 0x7f040004; public static final int abc_action_mode_close_item_material = 0x7f040005; public static final int abc_activity_chooser_view = 0x7f040006; public static final int abc_activity_chooser_view_list_item = 0x7f040007; public static final int abc_alert_dialog_material = 0x7f040009; public static final int abc_dialog_title_material = 0x7f04000b; public static final int abc_expanded_menu_layout = 0x7f04000c; public static final int abc_list_menu_item_checkbox = 0x7f04000d; public static final int abc_list_menu_item_icon = 0x7f04000e; public static final int abc_list_menu_item_layout = 0x7f04000f; public static final int abc_list_menu_item_radio = 0x7f040010; public static final int abc_popup_menu_item_layout = 0x7f040012; public static final int abc_screen_content_include = 0x7f040013; public static final int abc_screen_simple = 0x7f040014; public static final int abc_screen_simple_overlay_action_mode = 0x7f040015; public static final int abc_screen_toolbar = 0x7f040016; public static final int abc_search_dropdown_item_icons_2line = 0x7f040017; public static final int abc_search_view = 0x7f040018; public static final int abc_select_dialog_material = 0x7f040019; public static final int notification_media_action = 0x7f040059; public static final int notification_media_cancel_action = 0x7f04005a; public static final int notification_template_big_media = 0x7f04005b; public static final int notification_template_big_media_narrow = 0x7f04005d; public static final int notification_template_media = 0x7f040062; public static final int notification_template_part_chronometer = 0x7f040064; public static final int notification_template_part_time = 0x7f040065; public static final int select_dialog_item_material = 0x7f04006a; public static final int select_dialog_multichoice_material = 0x7f04006b; public static final int select_dialog_singlechoice_material = 0x7f04006c; public static final int support_simple_spinner_dropdown_item = 0x7f04006d; } public static final class string { public static final int abc_action_bar_home_description = 0x7f080000; public static final int abc_action_bar_up_description = 0x7f080001; public static final int abc_action_menu_overflow_description = 0x7f080002; public static final int abc_action_mode_done = 0x7f080003; public static final int abc_activity_chooser_view_see_all = 0x7f080004; public static final int abc_activitychooserview_choose_application = 0x7f080005; public static final int abc_search_hint = 0x7f080008; public static final int abc_searchview_description_clear = 0x7f080009; public static final int abc_searchview_description_query = 0x7f08000a; public static final int abc_searchview_description_search = 0x7f08000b; public static final int abc_searchview_description_submit = 0x7f08000c; public static final int abc_searchview_description_voice = 0x7f08000d; public static final int abc_shareactionprovider_share_with = 0x7f08000e; public static final int abc_shareactionprovider_share_with_application = 0x7f08000f; public static final int abc_toolbar_collapse_description = 0x7f080010; public static final int app_name = 0x7f080043; public static final int status_bar_notification_info_overflow = 0x7f080012; } public static final class style { public static final int AlertDialog_AppCompat = 0x7f0a00a8; public static final int AlertDialog_AppCompat_Light = 0x7f0a00a9; public static final int Animation_AppCompat_Dialog = 0x7f0a00aa; public static final int Animation_AppCompat_DropDownUp = 0x7f0a00ab; public static final int Base_AlertDialog_AppCompat = 0x7f0a00af; public static final int Base_AlertDialog_AppCompat_Light = 0x7f0a00b0; public static final int Base_Animation_AppCompat_Dialog = 0x7f0a00b1; public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0a00b2; public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0a00b6; public static final int Base_DialogWindowTitle_AppCompat = 0x7f0a00b5; public static final int Base_TextAppearance_AppCompat = 0x7f0a003d; public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f0a003e; public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f0a003f; public static final int Base_TextAppearance_AppCompat_Button = 0x7f0a002a; public static final int Base_TextAppearance_AppCompat_Caption = 0x7f0a0040; public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f0a0041; public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f0a0042; public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f0a0043; public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f0a0044; public static final int Base_TextAppearance_AppCompat_Headline = 0x7f0a0045; public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f0a000c; public static final int Base_TextAppearance_AppCompat_Large = 0x7f0a0046; public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f0a000d; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0a0047; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0a0048; public static final int Base_TextAppearance_AppCompat_Medium = 0x7f0a0049; public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f0a000e; public static final int Base_TextAppearance_AppCompat_Menu = 0x7f0a004a; public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0a00b7; public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0a004b; public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f0a004c; public static final int Base_TextAppearance_AppCompat_Small = 0x7f0a004d; public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f0a000f; public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f0a004e; public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f0a0010; public static final int Base_TextAppearance_AppCompat_Title = 0x7f0a004f; public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f0a0011; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0a0097; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0a0050; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0a0051; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0a0052; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0a0053; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0a0054; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0a0055; public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f0a0056; public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0a0098; public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0a00b9; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0a0058; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0a0059; public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f0a005a; public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0a005b; public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0a00ba; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0a005c; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0a005d; public static final int Base_ThemeOverlay_AppCompat = 0x7f0a00bf; public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0a00c0; public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0a00c1; public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0a00c2; public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0a00c3; public static final int Base_Theme_AppCompat = 0x7f0a005e; public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0a00bb; public static final int Base_Theme_AppCompat_Dialog = 0x7f0a0012; public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f0a0002; public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0a0013; public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0a00bc; public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0a0014; public static final int Base_Theme_AppCompat_Light = 0x7f0a005f; public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0a00bd; public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f0a0015; public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f0a0003; public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0a0016; public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0a00be; public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0a0017; public static final int Base_V11_Theme_AppCompat_Dialog = 0x7f0a001a; public static final int Base_V11_Theme_AppCompat_Light_Dialog = 0x7f0a001b; public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView = 0x7f0a0026; public static final int Base_V12_Widget_AppCompat_EditText = 0x7f0a0027; public static final int Base_V21_Theme_AppCompat = 0x7f0a0060; public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f0a0061; public static final int Base_V21_Theme_AppCompat_Light = 0x7f0a0062; public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f0a0063; public static final int Base_V22_Theme_AppCompat = 0x7f0a0095; public static final int Base_V22_Theme_AppCompat_Light = 0x7f0a0096; public static final int Base_V23_Theme_AppCompat = 0x7f0a0099; public static final int Base_V23_Theme_AppCompat_Light = 0x7f0a009a; public static final int Base_V7_Theme_AppCompat = 0x7f0a00c5; public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0a00c6; public static final int Base_V7_Theme_AppCompat_Light = 0x7f0a00c7; public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0a00c8; public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0a00ca; public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0a00cb; public static final int Base_Widget_AppCompat_ActionBar = 0x7f0a00cd; public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0a00ce; public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0a00cf; public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f0a0066; public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f0a0067; public static final int Base_Widget_AppCompat_ActionButton = 0x7f0a0068; public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f0a0069; public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f0a006a; public static final int Base_Widget_AppCompat_ActionMode = 0x7f0a00d0; public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0a00d1; public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f0a0028; public static final int Base_Widget_AppCompat_Button = 0x7f0a006b; public static final int Base_Widget_AppCompat_ButtonBar = 0x7f0a006f; public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0a00d3; public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f0a006c; public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f0a006d; public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0a00d2; public static final int Base_Widget_AppCompat_Button_Colored = 0x7f0a009b; public static final int Base_Widget_AppCompat_Button_Small = 0x7f0a006e; public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f0a0070; public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f0a0071; public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0a00d4; public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f0a0000; public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0a00d5; public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f0a0072; public static final int Base_Widget_AppCompat_EditText = 0x7f0a0029; public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0a00d6; public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0a00d7; public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0a00d8; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f0a0074; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0a0075; public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f0a0076; public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f0a0077; public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0a0078; public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f0a0079; public static final int Base_Widget_AppCompat_ListView = 0x7f0a007a; public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f0a007b; public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f0a007c; public static final int Base_Widget_AppCompat_PopupMenu = 0x7f0a007d; public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f0a007e; public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0a00da; public static final int Base_Widget_AppCompat_ProgressBar = 0x7f0a001d; public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f0a001e; public static final int Base_Widget_AppCompat_RatingBar = 0x7f0a007f; public static final int Base_Widget_AppCompat_SearchView = 0x7f0a00db; public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0a00dc; public static final int Base_Widget_AppCompat_Spinner = 0x7f0a0081; public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f0a0004; public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f0a0082; public static final int Base_Widget_AppCompat_Toolbar = 0x7f0a00a7; public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0a0083; public static final int Platform_AppCompat = 0x7f0a0021; public static final int Platform_AppCompat_Light = 0x7f0a0022; public static final int Platform_ThemeOverlay_AppCompat = 0x7f0a0085; public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f0a0086; public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f0a0087; public static final int Platform_V11_AppCompat = 0x7f0a0023; public static final int Platform_V11_AppCompat_Light = 0x7f0a0024; public static final int Platform_V14_AppCompat = 0x7f0a002b; public static final int Platform_V14_AppCompat_Light = 0x7f0a002c; public static final int Platform_Widget_AppCompat_Spinner = 0x7f0a0025; public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f0a002e; public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f0a002f; public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f0a0030; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f0a0031; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f0a0032; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f0a0033; public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f0a0039; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f0a0034; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f0a0035; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f0a0036; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f0a0037; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f0a0038; public static final int TextAppearance_AppCompat = 0x7f0a00ea; public static final int TextAppearance_AppCompat_Body1 = 0x7f0a00eb; public static final int TextAppearance_AppCompat_Body2 = 0x7f0a00ec; public static final int TextAppearance_AppCompat_Button = 0x7f0a00ed; public static final int TextAppearance_AppCompat_Caption = 0x7f0a00ee; public static final int TextAppearance_AppCompat_Display1 = 0x7f0a00ef; public static final int TextAppearance_AppCompat_Display2 = 0x7f0a00f0; public static final int TextAppearance_AppCompat_Display3 = 0x7f0a00f1; public static final int TextAppearance_AppCompat_Display4 = 0x7f0a00f2; public static final int TextAppearance_AppCompat_Headline = 0x7f0a00f3; public static final int TextAppearance_AppCompat_Inverse = 0x7f0a00f4; public static final int TextAppearance_AppCompat_Large = 0x7f0a00f5; public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0a00f6; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0a00f7; public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0a00f8; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0a00f9; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0a00fa; public static final int TextAppearance_AppCompat_Medium = 0x7f0a00fb; public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0a00fc; public static final int TextAppearance_AppCompat_Menu = 0x7f0a00fd; public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0a00fe; public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0a00ff; public static final int TextAppearance_AppCompat_Small = 0x7f0a0100; public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0a0101; public static final int TextAppearance_AppCompat_Subhead = 0x7f0a0102; public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0a0103; public static final int TextAppearance_AppCompat_Title = 0x7f0a0104; public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0a0105; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0a0106; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0a0107; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0a0108; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0a0109; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0a010a; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0a010b; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0a010c; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0a010d; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0a010e; public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0a010f; public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0a0112; public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0a0113; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0a0115; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0a0116; public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0a0117; public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0a0118; public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0a0123; public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0a0124; public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0a0125; public static final int ThemeOverlay_AppCompat = 0x7f0a013b; public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f0a013c; public static final int ThemeOverlay_AppCompat_Dark = 0x7f0a013d; public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0a013e; public static final int ThemeOverlay_AppCompat_Light = 0x7f0a0141; public static final int Theme_AppCompat = 0x7f0a0126; public static final int Theme_AppCompat_CompactMenu = 0x7f0a0127; public static final int Theme_AppCompat_Dialog = 0x7f0a0128; public static final int Theme_AppCompat_DialogWhenLarge = 0x7f0a012b; public static final int Theme_AppCompat_Dialog_Alert = 0x7f0a0129; public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f0a012a; public static final int Theme_AppCompat_Light = 0x7f0a012c; public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f0a012d; public static final int Theme_AppCompat_Light_Dialog = 0x7f0a012e; public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0a0131; public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f0a012f; public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0a0130; public static final int Theme_AppCompat_Light_NoActionBar = 0x7f0a0132; public static final int Theme_AppCompat_NoActionBar = 0x7f0a0133; public static final int Widget_AppCompat_ActionBar = 0x7f0a0143; public static final int Widget_AppCompat_ActionBar_Solid = 0x7f0a0144; public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f0a0145; public static final int Widget_AppCompat_ActionBar_TabText = 0x7f0a0146; public static final int Widget_AppCompat_ActionBar_TabView = 0x7f0a0147; public static final int Widget_AppCompat_ActionButton = 0x7f0a0148; public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f0a0149; public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f0a014a; public static final int Widget_AppCompat_ActionMode = 0x7f0a014b; public static final int Widget_AppCompat_ActivityChooserView = 0x7f0a014c; public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f0a014d; public static final int Widget_AppCompat_Button = 0x7f0a014e; public static final int Widget_AppCompat_ButtonBar = 0x7f0a0154; public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0a0155; public static final int Widget_AppCompat_Button_Borderless = 0x7f0a014f; public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f0a0150; public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0a0151; public static final int Widget_AppCompat_Button_Colored = 0x7f0a0152; public static final int Widget_AppCompat_Button_Small = 0x7f0a0153; public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f0a0156; public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f0a0157; public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f0a0158; public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f0a0159; public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f0a015a; public static final int Widget_AppCompat_EditText = 0x7f0a015b; public static final int Widget_AppCompat_Light_ActionBar = 0x7f0a015d; public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f0a015e; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f0a015f; public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0a0160; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f0a0161; public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f0a0162; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0a0163; public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f0a0164; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f0a0165; public static final int Widget_AppCompat_Light_ActionButton = 0x7f0a0166; public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f0a0167; public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f0a0168; public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f0a0169; public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f0a016a; public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f0a016b; public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f0a016c; public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f0a016d; public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f0a016e; public static final int Widget_AppCompat_Light_PopupMenu = 0x7f0a016f; public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0a0170; public static final int Widget_AppCompat_Light_SearchView = 0x7f0a0171; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f0a0172; public static final int Widget_AppCompat_ListPopupWindow = 0x7f0a0174; public static final int Widget_AppCompat_ListView = 0x7f0a0175; public static final int Widget_AppCompat_ListView_DropDown = 0x7f0a0176; public static final int Widget_AppCompat_ListView_Menu = 0x7f0a0177; public static final int Widget_AppCompat_PopupMenu = 0x7f0a0178; public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f0a0179; public static final int Widget_AppCompat_PopupWindow = 0x7f0a017a; public static final int Widget_AppCompat_ProgressBar = 0x7f0a017b; public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f0a017c; public static final int Widget_AppCompat_RatingBar = 0x7f0a017d; public static final int Widget_AppCompat_SearchView = 0x7f0a0180; public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f0a0181; public static final int Widget_AppCompat_Spinner = 0x7f0a0184; public static final int Widget_AppCompat_Spinner_DropDown = 0x7f0a0185; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f0a0186; public static final int Widget_AppCompat_Spinner_Underlined = 0x7f0a0187; public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f0a0188; public static final int Widget_AppCompat_Toolbar = 0x7f0a0189; public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0a018a; } public static final class styleable { public static final int[] ActionBar = { 0x7f010008, 0x7f01005a, 0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061, 0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065, 0x7f010066, 0x7f010067, 0x7f010068, 0x7f010069, 0x7f01006a, 0x7f01006b, 0x7f01006c, 0x7f01006d, 0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071, 0x7f010072, 0x7f010073, 0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077, 0x7f0100c2 }; public static final int[] ActionBarLayout = { 0x010100b3 }; public static final int ActionBarLayout_android_layout_gravity = 0; public static final int ActionBar_background = 10; public static final int ActionBar_backgroundSplit = 12; public static final int ActionBar_backgroundStacked = 11; public static final int ActionBar_contentInsetEnd = 21; public static final int ActionBar_contentInsetLeft = 22; public static final int ActionBar_contentInsetRight = 23; public static final int ActionBar_contentInsetStart = 20; public static final int ActionBar_customNavigationLayout = 13; public static final int ActionBar_displayOptions = 3; public static final int ActionBar_divider = 9; public static final int ActionBar_elevation = 26; public static final int ActionBar_height = 0; public static final int ActionBar_hideOnContentScroll = 19; public static final int ActionBar_homeAsUpIndicator = 28; public static final int ActionBar_homeLayout = 14; public static final int ActionBar_icon = 7; public static final int ActionBar_indeterminateProgressStyle = 16; public static final int ActionBar_itemPadding = 18; public static final int ActionBar_logo = 8; public static final int ActionBar_navigationMode = 2; public static final int ActionBar_popupTheme = 27; public static final int ActionBar_progressBarPadding = 17; public static final int ActionBar_progressBarStyle = 15; public static final int ActionBar_subtitle = 4; public static final int ActionBar_subtitleTextStyle = 6; public static final int ActionBar_title = 1; public static final int ActionBar_titleTextStyle = 5; public static final int[] ActionMenuItemView = { 0x0101013f }; public static final int ActionMenuItemView_android_minWidth = 0; public static final int[] ActionMenuView = { }; public static final int[] ActionMode = { 0x7f010008, 0x7f010061, 0x7f010062, 0x7f010066, 0x7f010068, 0x7f010078 }; public static final int ActionMode_background = 3; public static final int ActionMode_backgroundSplit = 4; public static final int ActionMode_closeItemLayout = 5; public static final int ActionMode_height = 0; public static final int ActionMode_subtitleTextStyle = 2; public static final int ActionMode_titleTextStyle = 1; public static final int[] ActivityChooserView = { 0x7f010079, 0x7f01007a }; public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; public static final int ActivityChooserView_initialActivityCount = 0; public static final int[] AlertDialog = { 0x010100f2, 0x7f01007b, 0x7f01007c, 0x7f01007d, 0x7f01007e, 0x7f01007f, 0x7f010080 }; public static final int AlertDialog_android_layout = 0; public static final int AlertDialog_buttonPanelSideLayout = 1; public static final int AlertDialog_listItemLayout = 5; public static final int AlertDialog_listLayout = 2; public static final int AlertDialog_multiChoiceItemLayout = 3; public static final int AlertDialog_singleChoiceItemLayout = 4; public static final int[] AppCompatTextView = { 0x01010034, 0x7f01008c, 0x7f01008d, 0x7f01008e, 0x7f01008f, 0x7f010090, 0x7f010091, 0x7f010092 }; public static final int AppCompatTextView_android_textAppearance = 0; public static final int AppCompatTextView_textAllCaps = 1; public static final int[] AutoLayout_Layout = { 0x7f01010b, 0x7f01010c }; public static final int AutoLayout_Layout_layout_auto_baseheight = 1; public static final int AutoLayout_Layout_layout_auto_basewidth = 0; public static final int[] CompoundButton = { 0x01010107, 0x7f010137, 0x7f010138 }; public static final int CompoundButton_android_button = 0; public static final int CompoundButton_buttonTint = 1; public static final int CompoundButton_buttonTintMode = 2; public static final int[] DrawerArrowToggle = { 0x7f01015b, 0x7f01015c, 0x7f01015d, 0x7f01015e, 0x7f01015f, 0x7f010160, 0x7f010161, 0x7f010162 }; public static final int DrawerArrowToggle_arrowHeadLength = 4; public static final int DrawerArrowToggle_arrowShaftLength = 5; public static final int DrawerArrowToggle_barLength = 6; public static final int DrawerArrowToggle_color = 0; public static final int DrawerArrowToggle_drawableSize = 2; public static final int DrawerArrowToggle_gapBetweenBars = 3; public static final int DrawerArrowToggle_spinBars = 1; public static final int DrawerArrowToggle_thickness = 7; public static final int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f010065, 0x7f010195, 0x7f010196, 0x7f010197 }; public static final int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 }; public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0; public static final int LinearLayoutCompat_Layout_android_layout_height = 2; public static final int LinearLayoutCompat_Layout_android_layout_weight = 3; public static final int LinearLayoutCompat_Layout_android_layout_width = 1; public static final int LinearLayoutCompat_android_baselineAligned = 2; public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; public static final int LinearLayoutCompat_android_gravity = 0; public static final int LinearLayoutCompat_android_orientation = 1; public static final int LinearLayoutCompat_android_weightSum = 4; public static final int LinearLayoutCompat_divider = 5; public static final int LinearLayoutCompat_dividerPadding = 8; public static final int LinearLayoutCompat_measureWithLargestChild = 6; public static final int LinearLayoutCompat_showDividers = 7; public static final int[] ListPopupWindow = { 0x010102ac, 0x010102ad }; public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0; public static final int ListPopupWindow_android_dropDownVerticalOffset = 1; public static final int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 }; public static final int MenuGroup_android_checkableBehavior = 5; public static final int MenuGroup_android_enabled = 0; public static final int MenuGroup_android_id = 1; public static final int MenuGroup_android_menuCategory = 3; public static final int MenuGroup_android_orderInCategory = 4; public static final int MenuGroup_android_visible = 2; public static final int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f0101a6, 0x7f0101a7, 0x7f0101a8, 0x7f0101a9, 0x7f0101aa, 0x7f0101ab, 0x7f0101ac, 0x7f0101ad, 0x7f0101ae, 0x7f0101af }; public static final int MenuItem_actionLayout = 16; public static final int MenuItem_actionProviderClass = 18; public static final int MenuItem_actionViewClass = 17; public static final int MenuItem_android_alphabeticShortcut = 9; public static final int MenuItem_android_checkable = 11; public static final int MenuItem_android_checked = 3; public static final int MenuItem_android_enabled = 1; public static final int MenuItem_android_icon = 0; public static final int MenuItem_android_id = 2; public static final int MenuItem_android_menuCategory = 5; public static final int MenuItem_android_numericShortcut = 10; public static final int MenuItem_android_onClick = 12; public static final int MenuItem_android_orderInCategory = 6; public static final int MenuItem_android_title = 7; public static final int MenuItem_android_titleCondensed = 8; public static final int MenuItem_android_visible = 4; public static final int MenuItem_showAsAction = 15; public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f0101b0, 0x7f0101b1 }; public static final int MenuView_android_headerBackground = 4; public static final int MenuView_android_horizontalDivider = 2; public static final int MenuView_android_itemBackground = 5; public static final int MenuView_android_itemIconDisabledAlpha = 6; public static final int MenuView_android_itemTextAppearance = 1; public static final int MenuView_android_verticalDivider = 3; public static final int MenuView_android_windowAnimationStyle = 0; public static final int MenuView_preserveIconSpacing = 7; public static final int[] MetroLayout = { 0x7f0101b2 }; public static final int MetroLayout_metro_divider = 0; public static final int[] PopupWindow = { 0x01010176, 0x010102c9, 0x7f0101ba }; public static final int[] PopupWindowBackgroundState = { 0x7f0101bb }; public static final int PopupWindowBackgroundState_state_above_anchor = 0; public static final int PopupWindow_android_popupBackground = 0; public static final int PopupWindow_overlapAnchor = 2; public static final int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f0101cb, 0x7f0101cc, 0x7f0101cd, 0x7f0101ce, 0x7f0101cf, 0x7f0101d0, 0x7f0101d1, 0x7f0101d2, 0x7f0101d3, 0x7f0101d4, 0x7f0101d5, 0x7f0101d6, 0x7f0101d7 }; public static final int SearchView_android_focusable = 0; public static final int SearchView_android_imeOptions = 3; public static final int SearchView_android_inputType = 2; public static final int SearchView_android_maxWidth = 1; public static final int SearchView_closeIcon = 8; public static final int SearchView_commitIcon = 13; public static final int SearchView_defaultQueryHint = 7; public static final int SearchView_goIcon = 9; public static final int SearchView_iconifiedByDefault = 5; public static final int SearchView_layout = 4; public static final int SearchView_queryBackground = 15; public static final int SearchView_queryHint = 6; public static final int SearchView_searchHintIcon = 11; public static final int SearchView_searchIcon = 10; public static final int SearchView_submitBackground = 16; public static final int SearchView_suggestionRowLayout = 14; public static final int SearchView_voiceIcon = 12; public static final int[] Spinner = { 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, 0x7f010077 }; public static final int Spinner_android_dropDownWidth = 3; public static final int Spinner_android_popupBackground = 1; public static final int Spinner_android_prompt = 2; public static final int Spinner_popupTheme = 4; public static final int[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f0101dc, 0x7f0101dd, 0x7f0101de, 0x7f0101df, 0x7f0101e0, 0x7f0101e1, 0x7f0101e2, 0x7f0101e3, 0x7f0101e4, 0x7f0101e5, 0x7f0101e6 }; public static final int SwitchCompat_android_textOff = 1; public static final int SwitchCompat_android_textOn = 0; public static final int SwitchCompat_android_thumb = 2; public static final int SwitchCompat_showText = 13; public static final int SwitchCompat_splitTrack = 12; public static final int SwitchCompat_switchMinWidth = 10; public static final int SwitchCompat_switchPadding = 11; public static final int SwitchCompat_switchTextAppearance = 9; public static final int SwitchCompat_thumbTextPadding = 8; public static final int SwitchCompat_track = 5; public static final int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x0101009a, 0x0101009b, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x010103ac, 0x7f01008c, 0x7f010092 }; public static final int TextAppearance_android_textColor = 3; public static final int TextAppearance_android_textSize = 0; public static final int TextAppearance_android_textStyle = 2; public static final int TextAppearance_android_typeface = 1; public static final int TextAppearance_textAllCaps = 11; public static final int[] Theme = { 0x7f010213 }; public static final int[] Toolbar = { 0x010100af, 0x01010140, 0x7f01005a, 0x7f010060, 0x7f010064, 0x7f010070, 0x7f010071, 0x7f010072, 0x7f010073, 0x7f010074, 0x7f010075, 0x7f010077, 0x7f01021f, 0x7f010220, 0x7f010221, 0x7f010222, 0x7f010223, 0x7f010224, 0x7f010225, 0x7f010226, 0x7f010227, 0x7f010228, 0x7f010229, 0x7f01022a, 0x7f01022b, 0x7f01022c, 0x7f01022d, 0x7f01022e, 0x7f01022f }; public static final int Toolbar_android_gravity = 0; public static final int Toolbar_android_minHeight = 1; public static final int Toolbar_collapseContentDescription = 23; public static final int Toolbar_collapseIcon = 22; public static final int Toolbar_contentInsetEnd = 6; public static final int Toolbar_contentInsetLeft = 7; public static final int Toolbar_contentInsetRight = 8; public static final int Toolbar_contentInsetStart = 5; public static final int Toolbar_logo = 4; public static final int Toolbar_logoDescription = 26; public static final int Toolbar_maxButtonHeight = 20; public static final int Toolbar_navigationContentDescription = 25; public static final int Toolbar_navigationIcon = 24; public static final int Toolbar_popupTheme = 11; public static final int Toolbar_subtitle = 3; public static final int Toolbar_subtitleTextAppearance = 13; public static final int Toolbar_subtitleTextColor = 28; public static final int Toolbar_title = 2; public static final int Toolbar_titleMarginBottom = 18; public static final int Toolbar_titleMarginEnd = 16; public static final int Toolbar_titleMarginStart = 15; public static final int Toolbar_titleMarginTop = 17; public static final int Toolbar_titleMargins = 19; public static final int Toolbar_titleTextAppearance = 12; public static final int Toolbar_titleTextColor = 27; public static final int[] View = { 0x01010000, 0x010100da, 0x7f010241, 0x7f010242, 0x7f010243 }; public static final int[] ViewBackgroundHelper = { 0x010100d4, 0x7f010244, 0x7f010245 }; public static final int ViewBackgroundHelper_android_background = 0; public static final int ViewBackgroundHelper_backgroundTint = 1; public static final int ViewBackgroundHelper_backgroundTintMode = 2; public static final int[] ViewStubCompat = { 0x010100d0, 0x010100f2, 0x010100f3 }; public static final int ViewStubCompat_android_id = 0; public static final int ViewStubCompat_android_inflatedId = 2; public static final int ViewStubCompat_android_layout = 1; public static final int View_android_focusable = 1; public static final int View_android_theme = 0; public static final int View_paddingEnd = 3; public static final int View_paddingStart = 2; public static final int View_theme = 4; } }
[ "1272784979@qq.com" ]
1272784979@qq.com
e569c01859b4670083f002101643cc7c3a4d2d59
8d4033508c01524a390d9302e24d4942c3d83938
/src/main/java/pl/fxboot/demo/service/interfaces/HistoryService.java
6e7cd2f87132426329a773472566dc2b24dcf1a3
[]
no_license
i1010011010/fxBoot
e88d0fe276b0821b8d59c2fe0f04ecb8dccd6a18
15dc3709890fd170cf85e89e14ea0dcd4391d2ec
refs/heads/master
2022-11-20T21:16:03.279586
2020-07-20T19:42:39
2020-07-20T19:42:39
280,207,404
0
1
null
2020-07-20T09:10:14
2020-07-16T16:46:57
Java
UTF-8
Java
false
false
684
java
package pl.fxboot.demo.service.interfaces; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; import pro.xstore.api.message.codes.PERIOD_CODE; import java.util.List; import java.util.Map; @Component public interface HistoryService { List<Double> getTickPricesRecord(List<String> symbols, Long timestamp); Map<Long, Double> getOpenPricesRange(String symbol, PERIOD_CODE code, Long start, Long end, Long ticks); Map<String, Double> getOpenPricesRangeFormattedTime(String symbol, PERIOD_CODE code, Long start, Long end, Long ticks); List<Double> testGetOpenPricesRange(); List<Long> testGetPricesTimeRange(); }
[ "waclaw.ilski@gmail.com" ]
waclaw.ilski@gmail.com
39ed5eeb38c247a15900c8d0445ebd931e63e3f7
8fe040500c122c333cef910324461b6e28867a8b
/app/src/main/java/com/shoppin/customer/model/NavigationDrawerMenuItem.java
d2f96ac8def3909162d1b4620a52d15ab6c20e6a
[]
no_license
ddandroid/Project_Shoppin_Customer
d9fe20977727492abafae4365e20a7602b1d27da
0bb1dc4ef6257d74a456f5dc15cb40b0042da763
refs/heads/master
2020-04-12T05:39:02.899459
2016-08-16T12:00:50
2016-08-16T12:00:50
65,601,886
0
0
null
null
null
null
UTF-8
Java
false
false
431
java
package com.shoppin.customer.model; /** * Model class for navigation left side drawer * * @author chitrang */ public class NavigationDrawerMenuItem { public String menuName; public int menuTagId; public int menuIcon; public NavigationDrawerMenuItem(String menuName, int menuTagId, int menuIcon) { this.menuName = menuName; this.menuTagId = menuTagId; this.menuIcon = menuIcon; } }
[ "chitrangiisc@gmail.com" ]
chitrangiisc@gmail.com
da2de0b2bc12114a393d91ecd38b799af1039c98
ecd1b618074050cbac548b415f9a5df232809db9
/sdks/jreleaser-nexus2-java-sdk/src/main/java/org/jreleaser/sdk/nexus2/api/StagingRepository.java
ae98673e966fd4d2b6b763a9a5699d50589160ea
[ "MIT", "CC0-1.0", "BSD-2-Clause-Views", "BSD-3-Clause", "Apache-2.0", "BSD-2-Clause" ]
permissive
helpermethod/jreleaser
e179d80f08602a9d1f19c64a271c11a7e5b6b9e2
95f2efc2bbee7ffdd9d88370e70add13b6906828
refs/heads/main
2023-08-03T09:27:27.726252
2023-07-15T06:23:04
2023-07-15T06:23:04
394,959,951
0
0
Apache-2.0
2021-08-11T11:06:13
2021-08-11T11:06:12
null
UTF-8
Java
false
false
1,181
java
/* * SPDX-License-Identifier: Apache-2.0 * * Copyright 2020-2023 The JReleaser authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jreleaser.sdk.nexus2.api; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; /** * @author Andres Almiray * @since 1.3.0 */ @JsonIgnoreProperties(ignoreUnknown = true) public class StagingRepository { private String id; private String name; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
[ "aalmiray@gmail.com" ]
aalmiray@gmail.com
2e529841fea6e4cda8f230e4635a3f57d1eb6d32
23d5894b723765b4200889da55aa05ec37e8ab69
/sellingpartner-product-fees-api/src/main/java/com/amazon/spapi/productfees/model/GetMyFeesEstimateResult.java
059365638ac23e01b9199bfcb8a3d573d7e8b430
[]
no_license
penghaiping/selling-partner-sdk
420b5e2a48aa98189aa9e0d16514004377e53685
8a89d17b492f1fb1c319cc1fa5a7cc0a30abc8b9
refs/heads/master
2023-05-31T12:10:01.348630
2021-07-05T02:24:55
2021-07-05T02:24:55
322,236,368
19
8
null
null
null
null
UTF-8
Java
false
false
2,797
java
/* * Selling Partner API for Product Fees * The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing. * * OpenAPI spec version: v0 * * * 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 com.amazon.spapi.productfees.model; import java.util.Objects; import java.util.Arrays; import com.amazon.spapi.productfees.model.FeesEstimateResult; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; /** * Response schema. */ @ApiModel(description = "Response schema.") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:52:41.175+08:00") public class GetMyFeesEstimateResult { @SerializedName("FeesEstimateResult") private FeesEstimateResult feesEstimateResult = null; public GetMyFeesEstimateResult feesEstimateResult(FeesEstimateResult feesEstimateResult) { this.feesEstimateResult = feesEstimateResult; return this; } /** * The item&#39;s estimated fees. * @return feesEstimateResult **/ @ApiModelProperty(value = "The item's estimated fees.") public FeesEstimateResult getFeesEstimateResult() { return feesEstimateResult; } public void setFeesEstimateResult(FeesEstimateResult feesEstimateResult) { this.feesEstimateResult = feesEstimateResult; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } GetMyFeesEstimateResult getMyFeesEstimateResult = (GetMyFeesEstimateResult) o; return Objects.equals(this.feesEstimateResult, getMyFeesEstimateResult.feesEstimateResult); } @Override public int hashCode() { return Objects.hash(feesEstimateResult); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetMyFeesEstimateResult {\n"); sb.append(" feesEstimateResult: ").append(toIndentedString(feesEstimateResult)).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 "); } }
[ "penghp@pingpongx.com" ]
penghp@pingpongx.com
98020892a419d57e0b3a4e377ca7a5498b53bf6b
0b841f8c1248c3c00452ad254cb2a0b5fa8ea75b
/src/org/dbms/ks/api/ProjectAPI.java
47114fa2323d36f4f5803a11f42846883a86f2b7
[ "MIT" ]
permissive
eshine2017/KickStarter
e9cfa5301c48fc83def5a7b839dc65c9ec23ad12
771ac29a43f805f61097c2809cc170cbe0b86991
refs/heads/master
2020-03-13T17:15:11.198112
2018-04-26T21:51:58
2018-04-26T21:51:58
131,214,045
0
1
null
null
null
null
UTF-8
Java
false
false
4,355
java
package org.dbms.ks.api; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import org.dbms.ks.models.Backer; import org.dbms.ks.models.Location; import org.dbms.ks.models.Owner; import org.dbms.ks.models.Project; import org.dbms.ks.util.DBUtil; import org.dbms.ks.util.DBUtil.DBConnection; import org.json.JSONArray; import org.json.JSONObject; @Path("/project") public class ProjectAPI { @GET @Produces(MediaType.APPLICATION_JSON) @Path("/{id}") public Response getProject(@PathParam("id") int id) { return Response.ok(Project.fetch(id)._getRaw().toString()).build(); } JSONObject attr = new JSONObject("{ fill: \"#ff5722\", stroke: \"#ced8d0\"}"); @GET @Produces(MediaType.APPLICATION_JSON) @Path("/{id}/moneymovement") public Response getProjectMoneyMovement(@PathParam("id") int id) { JSONObject resp = new JSONObject(); DBConnection con = null; try { Project project = Project.fetch(id); con = DBUtil.getConnection(); con.prepareQuery("get.moneymovement") .setQueryParam(1, id) .executeQuery(); JSONObject plots = new JSONObject(), links = new JSONObject(); Location baseLocation = project.getLocation(); JSONObject tooltip1 = new JSONObject(); tooltip1.put("content", baseLocation.getDisplayableName()); baseLocation._getRaw().put("text", tooltip1); baseLocation._getRaw().put("attrs", attr); Location loc; plots.put(baseLocation.getSlug(), baseLocation._getRaw()); while(con.hasNext()) { loc = con.getNext(Location.class); if(!plots.has(loc.getSlug())) { JSONObject tooltip = new JSONObject(); tooltip.put("content", loc.getDisplayableName()); loc._getRaw().put("text", tooltip); plots.put(loc.getSlug(), loc._getRaw()); } JSONObject link = new JSONObject(); JSONArray latlong = new JSONArray(); latlong.put(baseLocation._getRaw()); latlong.put(loc._getRaw()); // link.put("size", 0); link.put("between", latlong); links.put(baseLocation.getSlug() + loc.getSlug(), link); } resp.put("plots", plots); resp.put("links", links); } catch(Exception e) { //LOG e.printStackTrace(); } finally { if(con!=null) con.safeClose(); } return Response.ok(resp.toString()).build(); } @GET @Produces(MediaType.APPLICATION_JSON) @Path("/{id}/nearby") public Response getNearbyProjects(@PathParam("id") int id) { JSONArray nearbyProjects = new JSONArray(); try { Project project = Project.fetch(id); for(Project nearby : project.getNearbyProjects()) { nearbyProjects.put(nearby._getRaw()); } } catch(Exception e) { e.printStackTrace(); } return Response.ok(nearbyProjects.toString()).build(); } @GET @Produces(MediaType.APPLICATION_JSON) @Path("/{id}/similar") public Response getSimilarProjects(@PathParam("id") int id) { JSONArray similarProjects = new JSONArray(); try { Project project = Project.fetch(id); for(Project similar : project.getSimilarProjects()) { similarProjects.put(similar._getRaw()); } } catch(Exception e) { e.printStackTrace(); } return Response.ok(similarProjects.toString()).build(); } @GET @Produces(MediaType.APPLICATION_JSON) @Path("/{id}/backers") public Response getBackers(@PathParam("id") int id) { JSONArray backers = new JSONArray(); try { Project project = Project.fetch(id); for(Backer backer : project.getBackers()) { backers.put(backer._getRaw()); } } catch(Exception e) { e.printStackTrace(); } return Response.ok(backers.toString()).build(); } @GET @Produces(MediaType.APPLICATION_JSON) @Path("/{id}/backerlocations") public Response getProjectBackerLocations(@PathParam("id") int id) { JSONArray response = new JSONArray(); for(Project p : DBUtil.getAll("get.project.backerlocations", Project.class, id)) { response.put(p._getRaw()); } return Response.ok(response.toString()).build(); } @GET @Produces(MediaType.APPLICATION_JSON) @Path("/{id}/owners") public Response getOwners(@PathParam("id") int id) { JSONArray owners = new JSONArray(); Project project = Project.fetch(id); Owner owner = project.getOwner(); owners.put(owner._getRaw()); return Response.ok(owners.toString()).build(); } }
[ "deng.pan.sjtu@gmail.com" ]
deng.pan.sjtu@gmail.com
28b1b793155ca3dc7214e79e9cc47ba7d06d94e3
260e1e27b9a3772fafab1362e70376bcaca42227
/ThreadPool/src/main/java/enumpackge/Main.java
05df46a2e09ee46b738bab0879359dadb0f637d6
[]
no_license
yuemingming/zookeeper
d1c2ed8ded6b9ee676e0b38452ac3567a9e88ea0
1702503cef4e35f0421cfe8f6246d1cd24d729bb
refs/heads/master
2020-03-07T03:39:03.224252
2018-03-29T07:20:03
2018-03-29T07:20:03
127,242,566
1
1
null
null
null
null
UTF-8
Java
false
false
3,172
java
package enumpackge; import javax.sound.midi.SoundbankResource; import java.util.Scanner; /** * @author Mingming * @Description * @Date Created in 18:57 2018/3/22 * @Modificd By */ class Point{ int x; int y; public Point(int x,int y){ this.x = x; this.y = y; } public double distance(Point point){ return Math.sqrt((x-point.x)*(x-point.x)+(y-point.y)*(y-point.y)); } public Point xiangliang(Point point){ return new Point(x-point.x,y-point.y); } public boolean chuizhi(Point point){ if(x*point.x+y*point.y == 0) return true; else return false; } } public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N; N = Integer.valueOf(scanner.nextLine()); while (N-- >0){ String xstr = scanner.nextLine(); String ystr = scanner.nextLine(); String[] xstrs = xstr.split(" "); String[] ystrs = ystr.split(" "); int x1 = Integer.valueOf(xstrs[0]); int x2 = Integer.valueOf(xstrs[1]); int x3 = Integer.valueOf(xstrs[2]); int x4 = Integer.valueOf(xstrs[3]); int y1 = Integer.valueOf(ystrs[0]); int y2 = Integer.valueOf(ystrs[1]); int y3 = Integer.valueOf(ystrs[2]); int y4 = Integer.valueOf(ystrs[3]); Point point1 = new Point(x1,y1); Point point2 = new Point(x2,y2); Point point3 = new Point(x3,y3); Point point4 = new Point(x4,y4); double distance1 = point1.distance(point2); double distance2 = point1.distance(point3); double distance3 = point1.distance(point4); boolean flag = false; if (distance1 == distance2 && distance1 != distance3){ if(point4.distance(point2) == point4.distance(point3)){ Point pointx = point1.xiangliang(point2); Point pointy = point1.xiangliang(point3); if (pointx.chuizhi(pointy)){ flag = true; } } } if (distance1 == distance3 && distance1 != distance2){ if(point3.distance(point2) == point3.distance(point4)){ Point pointx = point1.xiangliang(point2); Point pointy = point1.xiangliang(point4); if (pointx.chuizhi(pointy)){ flag = true; } } } if (distance2 == distance3 && distance1 != distance2){ if(point2.distance(point3) == point2.distance(point4)){ Point pointx = point1.xiangliang(point3); Point pointy = point1.xiangliang(point4); if (pointx.chuizhi(pointy)){ flag = true; } } } if(flag) System.out.println("Yes"); else System.out.println("No"); } } }
[ "573157451@qq.com" ]
573157451@qq.com
a4a78f57ff6863b6897021a01d1507706a69196d
6ae47e53ba9043cd177982be0e38604491665667
/src/main/java/PDP/fitness/TopologyContact.java
346b542011d4630e37a3e9fd379f587b581388ae
[]
no_license
vidalfontoura/hypdp
562f8a53ab57a5927a36a1943ceed7e3f427c10a
2be9b8e523f7b12f768b7c8d6ee26e2fea39fe64
refs/heads/master
2021-01-17T02:48:44.868835
2016-08-30T18:16:56
2016-08-30T18:16:56
57,252,233
2
0
null
2016-09-19T20:23:15
2016-04-27T22:11:18
Java
UTF-8
Java
false
false
1,435
java
/* * Copyright 2015, Charter Communications, All rights reserved. */ package PDP.fitness; /** * * * @author user */ public class TopologyContact { private Residue r1; private Residue r2; /** * @param r1 * @param r2 */ public TopologyContact(Residue r1, Residue r2) { super(); this.r1 = r1; this.r2 = r2; } /** * @return the r1 */ public Residue getR1() { return r1; } /** * @param r1 * the r1 to set */ public void setR1(Residue r1) { this.r1 = r1; } /** * @return the r2 */ public Residue getR2() { return r2; } /** * @param r2 * the r2 to set */ public void setR2(Residue r2) { this.r2 = r2; } /* * (non-Javadoc) * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((r1 == null) ? 0 : r1.hashCode() + r2.hashCode()); return result; } /* * (non-Javadoc) * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; TopologyContact other = (TopologyContact) obj; if (this.r1.equals(other.r1) && this.r2.equals(other.r2)) { return true; } if (this.r2.equals(other.r1) && this.r1.equals(other.r2)) { return true; } return false; } }
[ "vfontoura@kenzan.com" ]
vfontoura@kenzan.com
c97c6ae275fdfcc5b26b18304d3adc01b8bc7372
29ea1424be62adb18b8d6441b73ccd2776ef9e30
/src/main/java/com/example/demo/transformers/VisitTransformer.java
0707952604193d51a856773647296cf05643db9f
[ "MIT" ]
permissive
bschalme/demo-spring-int
5cb94e9777910d15209bc43b48987fe88714ba50
fb5950580c6620e4780a766a54ae7c3eb76cbddc
refs/heads/master
2021-01-21T18:58:44.359514
2017-05-23T00:59:09
2017-05-23T00:59:09
92,104,733
0
0
null
null
null
null
UTF-8
Java
false
false
457
java
/** * */ package com.example.demo.transformers; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.example.demo.dao.VisitDao; import com.example.demo.domain.Visit; /** * @author Brian Schalme * */ @Service public class VisitTransformer { @Autowired private VisitDao dao; public Visit findVisit(Visit visit) { return dao.findOne(visit.getVisitId()); } }
[ "bschalme@airspeed.ca" ]
bschalme@airspeed.ca
f635ac25ef14308fec79380cb20d1ce20b6ae2ca
e049822829e72b7dcd698d869b6f8d4c73e2fccc
/Kosarka.Common/src/entities/KriterijumPretrage.java
fabec3d9be0d2d97387a9e4ab0239a4961e815f0
[]
no_license
nemanjazecevic/ProjekatPS
8ab91099c6622b7004f53663ec291dcedcd29f02
f52a08ba1864255f0efaad2cb2d6d5c7e87a60de
refs/heads/master
2023-07-31T19:20:21.337946
2021-09-15T13:33:49
2021-09-15T13:33:49
406,755,722
0
0
null
null
null
null
UTF-8
Java
false
false
2,435
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package entities; import java.io.Serializable; import java.sql.ResultSet; import java.util.List; /** * * @author PC */ public class KriterijumPretrage implements IDomenskiObjekat, Serializable{ private String text; private Object object; public KriterijumPretrage(String text, Object object) { this.text = text; this.object = object; } public String getText() { return text; } public void setText(String text) { this.text = text; } public Object getObject() { return object; } public void setObject(Object object) { this.object = object; } @Override public String nazivTabeleBaza() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } @Override public String nazivTabeleBazaPlus() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } @Override public String vrednostiUnosBaza() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } @Override public String naziviKolonaUnosBaza() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } @Override public String vrednostiIzmenaBaza() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } @Override public String joinUslovBaza() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } @Override public String whereUslovBaza() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } @Override public List<IDomenskiObjekat> objektiBaza(ResultSet rs) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } }
[ "zecevicn1@gmail.com" ]
zecevicn1@gmail.com
62c8721d1c6ff79212012d4b5041442efe11e08f
ea554f1a2f443b190cd88c00738c1e6c70f5c7fe
/modules/web/src/com/haulmont/sampler/web/ui/charts/charts/serial/smoothedline/SmootheredLineChartSample.java
c289f6ae3cb6bddfdc7933ebdefe3bc76cfd8389
[ "Apache-2.0" ]
permissive
cuba-platform/sampler
36d3df46a49f451bae13ba8a7bc2f3bc771800a6
f2047016d2856d83acea076706b976b59c955120
refs/heads/master
2021-12-11T19:23:04.724659
2021-12-07T06:33:36
2021-12-07T06:33:36
127,406,182
6
9
Apache-2.0
2020-04-21T20:41:46
2018-03-30T08:57:35
Java
UTF-8
Java
false
false
443
java
package com.haulmont.sampler.web.ui.charts.charts.serial.smoothedline; import com.haulmont.cuba.gui.screen.LoadDataBeforeShow; import com.haulmont.cuba.gui.screen.ScreenFragment; import com.haulmont.cuba.gui.screen.UiController; import com.haulmont.cuba.gui.screen.UiDescriptor; @UiController("smoothedline-chart") @UiDescriptor("smoothedline-chart.xml") @LoadDataBeforeShow public class SmootheredLineChartSample extends ScreenFragment { }
[ "glebfox@gmail.com" ]
glebfox@gmail.com
17cb9cd0720da0aa8f25eb47dd952e8b2e44086a
3c946094efcccffa1151140382f66ba87b87337e
/src/com/source/AbstractCollection.java
a6afee512c6e3a6c3286d02c4b021397bb2feb47
[]
no_license
JavaMrYang/lambda
6f139142fb888c7f8003b6aa719c9060aeaea875
d54bb2dbe5649fd60fafce41a4bb16b59ac0a1a4
refs/heads/master
2020-05-17T18:32:37.565942
2019-06-14T06:30:48
2019-06-14T06:30:48
183,886,865
0
0
null
null
null
null
UTF-8
Java
false
false
5,383
java
/* package com.source; import java.util.Arrays; import java.util.Objects; public abstract class AbstractCollection<E> implements Collection<E> { protected AbstractCollection() { } public abstract Iterator<E> iterator(); public abstract int size(); public boolean isEmpty() { return size() == 0; } public boolean contains(Object o) { Iterator<E> it = iterator(); if (o == null) { while (it.hasNext()) if (it.next() == null) return true; } else { while (it.hasNext()) { if (o.equals(it.next())) return true; } } return false; } public Object[] toArray() { // Estimate size of array; be prepared to see more or fewer elements Object[] r = new Object[size()]; Iterator<E> it = iterator(); for (int i = 0; i < r.length; i++) { if (!it.hasNext()) // fewer elements than expected return Arrays.copyOf(r, i); r[i] = it.next(); } return it.hasNext() ? finishToArray(r, it) : r; } public <T> T[] toArray(T[] a) { // Estimate size of array; be prepared to see more or fewer elements int size = size(); T[] r = a.length >= size ? a : (T[]) java.lang.reflect.Array .newInstance(a.getClass().getComponentType(), size); Iterator<E> it = iterator(); for (int i = 0; i < r.length; i++) { if (!it.hasNext()) { // fewer elements than expected if (a == r) { r[i] = null; // null-terminate } else if (a.length < i) { return Arrays.copyOf(r, i); } else { System.arraycopy(r, 0, a, 0, i); if (a.length > i) { a[i] = null; } } return a; } r[i] = (T) it.next(); } // more elements than expected return it.hasNext() ? finishToArray(r, it) : r; } private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; private static <T> T[] finishToArray(T[] r, Iterator<?> it) { int i = r.length; while (it.hasNext()) { int cap = r.length; if (i == cap) { int newCap = cap + (cap >> 1) + 1; // overflow-conscious code if (newCap - MAX_ARRAY_SIZE > 0) newCap = hugeCapacity(cap + 1); r = Arrays.copyOf(r, newCap); } r[i++] = (T) it.next(); } // trim if overallocated return (i == r.length) ? r : Arrays.copyOf(r, i); } private static int hugeCapacity(int minCapacity) { if (minCapacity < 0) // overflow throw new OutOfMemoryError ("Required array size too large"); return (minCapacity > MAX_ARRAY_SIZE) ? Integer.MAX_VALUE : MAX_ARRAY_SIZE; } public boolean add(E e) { throw new UnsupportedOperationException(); } public boolean remove(Object o) { Iterator<E> it = iterator(); if (o == null) { while (it.hasNext()) { if (it.next() == null) { it.remove(); return true; } } } else { while (it.hasNext()) { if (o.equals(it.next())) { it.remove(); return true; } } } return false; } public boolean containsAll(Collection<?> c) { for (Object e : c) if (!contains(e)) return false; return true; } public boolean addAll(Collection<? extends E> c) { boolean modified = false; for (E e : c) if (add(e)) modified = true; return modified; } public boolean removeAll(Collection<?> c) { Objects.requireNonNull(c); boolean modified = false; Iterator<?> it = iterator(); while (it.hasNext()) { if (c.contains(it.next())) { it.remove(); modified = true; } } return modified; } public boolean retainAll(Collection<?> c) { Objects.requireNonNull(c); boolean modified = false; Iterator<E> it = iterator(); while (it.hasNext()) { if (!c.contains(it.next())) { it.remove(); modified = true; } } return modified; } public void clear() { Iterator<E> it = iterator(); while (it.hasNext()) { it.next(); it.remove(); } } public String toString() { Iterator<E> it = iterator(); if (!it.hasNext()) return "[]"; StringBuilder sb = new StringBuilder(); sb.append('['); for (; ; ) { E e = it.next(); sb.append(e == this ? "(this Collection)" : e); if (!it.hasNext()) return sb.append(']').toString(); sb.append(',').append(' '); } } } */
[ "liuyang@tcloudata.com" ]
liuyang@tcloudata.com
999f99020ec03553f95eab2f54164a7735c5734a
627beead771fcc14304ba40b5b1275e560babadc
/personal-project-master/CaesarCipher.java
2a216e9c2ff651deb36ca7c5c4a7881fe25f610f
[]
no_license
LuciusLiciniusLucullus/selfProjects
0bb49710f6257ee46b7a89a1f3f16205c799a59a
6f5436dae1ecd4a7a8983cc806008ddfe3c5cd8b
refs/heads/master
2022-11-08T00:00:28.448910
2020-06-23T04:18:50
2020-06-23T04:18:50
274,306,218
0
0
null
null
null
null
UTF-8
Java
false
false
2,603
java
import java.util.Scanner; public class main { public static final String letters = "abcdefghijklmnopqrstuvwxyz"; public static final Scanner sc = new Scanner(System.in); public static void main(String[] args){ Boolean quit = false; while(quit == false){ System.out.println("Welcome to IMPERATOR CIPHER MACHINE 1.0"); System.out.println("Made by Sean Lin - 2018 Copyright"); System.out.println("press 1 to encrypt a message, press 2 to decrypt a message, press 0 to exit"); int ch = sc.nextInt(); switch(ch){ case 1: System.out.println("Enter message to be encrypted"); Message(); String message = Message(); //System.out.println("Enter shift number"); //int num = sc.nextInt(); encrypt(message.toLowerCase()); break; case 2: System.out.println("Enter message to be decrypted"); Message(); String deMessage = Message(); decrypt(deMessage.toLowerCase()); break; case 0: System.out.println("Closing IMPERATOR CIPHER MACHINE 1.0"); quit = true; break; default: System.out.println("Invalid input!"); break; } } } public static String Message(){ String m = sc.nextLine(); return m; } public static void encrypt(String message){ StringBuilder eMessage = new StringBuilder(); int len = message.length(); for(int i = 0; i < len; i++){ char c = message.charAt(i); int charPosition = letters.indexOf(c); //gets the position of the char in String message in reference to String letters if(message.charAt(i) == ' '){ eMessage.append(' '); continue; } int encryptPosition = (charPosition + 3) % 26; //position of the encrypted char, e.g. 3 + 8 % 26 = 11, h is now encrypted as k char replaceVal = letters.charAt(encryptPosition); //the position of k is 11, and it is now placed into the char replaceVal eMessage.append(replaceVal); } System.out.println("Encrypted message is:"); System.out.println(eMessage); } public static void decrypt(String message){ StringBuilder deMessage = new StringBuilder(); int len = message.length(); for(int i = 0; i < len; i++){ char c = message.charAt(i); int charPosition = letters.indexOf(c); if(message.charAt(i) == ' '){ deMessage.append(' '); } int decryptPosition = (charPosition - 3) % 26; char replaceVal = letters.charAt(decryptPosition); deMessage.append(replaceVal); } System.out.println("Decrypted Message is:"); System.out.println(deMessage); } }
[ "noreply@github.com" ]
LuciusLiciniusLucullus.noreply@github.com
73ef88bfde4019cee4f5ab5377feed5c1ca34b82
0dd6622c10788ee2e44ae1c4536fc6f6cce74494
/src/main/java/com/github/bartoszpogoda/auth/entity/Role.java
1e74ff96699adb94108f4fe9b8eaa264a68061f3
[]
no_license
bartoszpogoda/auth-microservice
efb3418b5a6cfb1574c857a961c00a92b6181ec9
86e331f8500d4ee90d75f32fd680594bff3e67c8
refs/heads/master
2020-07-06T05:08:16.929135
2019-08-18T09:48:52
2019-08-18T09:48:52
202,901,510
0
0
null
null
null
null
UTF-8
Java
false
false
527
java
package com.github.bartoszpogoda.auth.entity; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.ManyToMany; import java.util.List; @Entity @Data @Builder @NoArgsConstructor @AllArgsConstructor public class Role { @Id private String name; @ManyToMany(cascade = CascadeType.PERSIST) private List<Permission> permissions; }
[ "bartek.pogoda1@gmail.com" ]
bartek.pogoda1@gmail.com
5c3616f2d372af0bbfdac3527a7ebc7ffb512fec
680bd5a8dccbc81633073693229d84741687b1aa
/baseframework/src/main/java/com/zjy/baseframework/ZipHelper.java
40fff4614f9a2e8267b6a8fcf6c26ec3076be690
[]
no_license
chahongjing/java_ToolSiteMvc4J
8b15119c3b887bc4cd63dac4d686881dab377d79
3f45646182244a62aeb4169c76b4c222325c1662
refs/heads/master
2022-12-15T00:45:54.919012
2022-07-14T11:40:01
2022-07-14T11:40:01
77,321,652
0
1
null
2022-12-09T05:57:27
2016-12-25T10:49:53
JavaScript
UTF-8
Java
false
false
7,853
java
package com.zjy.baseframework; import com.zjy.baseframework.enums.FileSuffix; import net.lingala.zip4j.core.ZipFile; import net.lingala.zip4j.exception.ZipException; import net.lingala.zip4j.model.FileHeader; import net.lingala.zip4j.model.ZipParameters; import net.lingala.zip4j.util.Zip4jConstants; import org.apache.commons.lang3.StringUtils; import java.io.File; import java.nio.charset.StandardCharsets; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; /** * Created by Administrator on 2017/2/14. */ public class ZipHelper { private ZipHelper() { } /** * 压缩文件 * * @param file 文件路径 * @return */ public static String zip(String file) throws Exception { File f = new File(file); String outputPath = file; if (f.isDirectory()) { outputPath = Paths.get(f.getPath(), f.getName() + FileSuffix.ZIP.getValue()).toString(); } else { String prefix = f.getName().substring(f.getName().lastIndexOf('.')); if (prefix != null) outputPath = outputPath.replace(prefix, StringUtils.EMPTY) + FileSuffix.ZIP.getValue(); } return zip(file, outputPath); } /** * 压缩文件 * * @param file 文件路径 * @param zipFilePath 压缩文件存放地址 * @return */ public static String zip(String file, String zipFilePath) throws Exception { return zip(file, zipFilePath, null); } /** * 压缩文件 * * @param file 文件路径 * @param zipFilePath 压缩文件存放地址 * @param password 密码 * @return */ public static String zip(String file, String zipFilePath, String password) throws Exception { return zip(new String[]{file}, zipFilePath, password); } /** * 压缩文件 * * @param files 文件路径列表 * @param zipFilePath 压缩文件存放地址 * @return */ public static String zip(String[] files, String zipFilePath) throws Exception { return zip(files, zipFilePath, null); } /** * 压缩文件 * * @param files 文件路径列表 * @param zipFilePath 压缩文件存放地址 * @param password 密码 * @return */ public static String zip(String[] files, String zipFilePath, String password) throws Exception { File dest = new File(zipFilePath); if (dest.isDirectory()) { throw new ServiceException("目标文件不是有效的压缩文件!"); } ZipParameters parameters = new ZipParameters(); // 压缩方式 parameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE); // 压缩级别 parameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL); if (!(password == null || password == StringUtils.EMPTY)) { parameters.setEncryptFiles(true); // 加密方式 parameters.setEncryptionMethod(Zip4jConstants.ENC_METHOD_STANDARD); parameters.setPassword(password.toCharArray()); } try { if (!dest.getParentFile().exists()) { dest.getParentFile().mkdirs(); } ZipFile zipFile = new ZipFile(zipFilePath); for (String item : files) { File file = new File(item); if (file.exists()) { if (file.isDirectory()) { zipFile.addFolder(file, parameters); } else { zipFile.addFile(file, parameters); } } } zipFile.setComment("abc"); return zipFilePath; } catch (ZipException e) { e.printStackTrace(); } return null; } /** * 解压文件 * * @param zipPath 压缩文件路径 */ public static void unzip(String zipPath) { File file = new File(zipPath); unzip(zipPath, file.getParent()); } /** * 解压文件 * * @param zipPath 压缩文件路径 * @param outputPath 解压目录 * @return */ public static File[] unzip(String zipPath, String outputPath) { return unzip(zipPath, outputPath, null); } /** * 解压文件 * * @param zipPath 压缩文件路径 * @param outputPath 解压目录 * @param password 密码 * @return */ public static File[] unzip(String zipPath, String outputPath, String password) { try { ZipFile zipFile = new ZipFile(zipPath); zipFile.setFileNameCharset(StandardCharsets.UTF_8.name()); if (!zipFile.isValidZipFile()) { throw new ZipException("压缩文件不合法,可能被损坏."); } File destDir = new File(outputPath); if (destDir.isDirectory() && !destDir.exists()) { destDir.mkdir(); } if (zipFile.isEncrypted()) { if(StringUtils.isNotBlank(password)) { zipFile.setPassword(password.toCharArray()); } else { throw new ZipException("密码参数不能为空!"); } } zipFile.extractAll(outputPath); List<FileHeader> headerList = zipFile.getFileHeaders(); List<File> extractedFileList = new ArrayList<>(); for (FileHeader fileHeader : headerList) { if (!fileHeader.isDirectory()) { extractedFileList.add(new File(destDir, fileHeader.getFileName())); } } File[] extractedFiles = new File[extractedFileList.size()]; extractedFileList.toArray(extractedFiles); return extractedFiles; } catch (ZipException e) { e.printStackTrace(); } return new File[0]; } /** * 从压缩文件中删除指定的目录 * * @param file 压缩文件路径 * @param removeDir 要删除的目录,如a/b/ * @throws ZipException */ public static void removeZipDir(String file, String removeDir) throws ZipException { // 创建ZipFile并设置编码 ZipFile zipFile = new ZipFile(file); zipFile.setFileNameCharset(StandardCharsets.UTF_8.name()); // 给要删除的目录加上路径分隔符 if (!removeDir.endsWith(File.separator)) removeDir += File.separator; // 如果目录不存在, 直接返回 FileHeader dirHeader = zipFile.getFileHeader(removeDir); if (null == dirHeader) return; // 遍历压缩文件中所有的FileHeader, 将指定删除目录下的子文件名保存起来 List headersList = zipFile.getFileHeaders(); List<String> removeHeaderNames = new ArrayList<>(); for (int i = 0, len = headersList.size(); i < len; i++) { FileHeader subHeader = (FileHeader) headersList.get(i); if (subHeader.getFileName().startsWith(dirHeader.getFileName()) && !subHeader.getFileName().equals(dirHeader.getFileName())) { removeHeaderNames.add(subHeader.getFileName()); } } // 遍历删除指定目录下的所有子文件, 最后删除指定目录(此时已为空目录) for (String headerNameString : removeHeaderNames) { zipFile.removeFile(headerNameString); } zipFile.removeFile(dirHeader); } }
[ "310510906@qq.com" ]
310510906@qq.com
cc44865ff6e5c283bd680638b568e60d2a4abae7
9b214b754a3b9baf57a1539c4619c06aaec7984e
/src/main/java/com/carTrading/configuration/MyHandler.java
23c3dec67d2fb1e0e843798b4ebb05c19fbcf50b
[]
no_license
HardTank/GraduationProject-carTrading
318160301abed8f54d7f6de9206dc7bdd340190c
50b8fa417b76fc7245bc67aa7e071306a89ed11e
refs/heads/master
2022-06-21T16:54:11.024632
2020-07-03T02:28:55
2020-07-03T02:28:55
173,080,397
1
0
null
2022-06-21T01:46:25
2019-02-28T09:18:26
JavaScript
UTF-8
Java
false
false
1,027
java
package com.carTrading.configuration; import com.alibaba.fastjson.JSONObject; import org.springframework.web.socket.TextMessage; import org.springframework.web.socket.WebSocketSession; import org.springframework.web.socket.handler.TextWebSocketHandler; import java.util.HashMap; import java.util.Map; /** * @author tanlixin * @description * @since 2019-04-29 */ public class MyHandler extends TextWebSocketHandler { protected void handleTextMessage(WebSocketSession session, TextMessage message) throws Exception { String payload = message.getPayload(); Map<String, String> map = JSONObject.parseObject(payload, HashMap.class); System.out.println("=====接受到的数据"+map); System.out.println("=====接受到的数据"+map.get("id")); System.out.println("=====接受到的数据"+map.get("message")); System.out.println("=====接受到的数据"+map.get("text")); session.sendMessage(new TextMessage("服务器返回收到的信息," + payload)); } }
[ "hardstanks@gmail.com" ]
hardstanks@gmail.com
ecf79b3046bde2461695e2b7e481bc3362d83a07
2e079a270e0ceb1d2ad7f729c782947cd21a2cfb
/src/leetcode/_985.java
e2141f428bb4c36054ef450b772ff5c82038606c
[]
no_license
lydxlx1/icpc
b07dbdb043697cb66bcc5527036bce59102248cc
b74678b46b8b43fdcf95568dc50e68d0187cdadb
refs/heads/master
2023-07-09T23:01:58.275507
2023-07-05T06:03:18
2023-07-05T06:03:18
89,440,141
0
0
null
null
null
null
UTF-8
Java
false
false
672
java
package leetcode; import java.util.stream.IntStream; /** * LeetCode 985 - Sum of Even Numbers After Queries */ public class _985 { public int[] sumEvenAfterQueries(int[] A, int[][] queries) { int[] res = new int[queries.length]; int sum = IntStream.of(A).filter(i -> i % 2 == 0).sum(); for (int i = 0; i < queries.length; i++) { int val = queries[i][0], idx = queries[i][1]; if (A[idx] % 2 == 0) { sum -= A[idx]; } A[idx] += val; if (A[idx] % 2 == 0) { sum += A[idx]; } res[i] = sum; } return res; } }
[ "4112003+lydxlx1@users.noreply.github.com" ]
4112003+lydxlx1@users.noreply.github.com
fef216d7ef15b831358e709d3ed58789ef010882
faad9426e40b868103f7995aad166f2328060f00
/TestModel/mymode/src/main/java/yuncar/aten/com/mymode/banner/transformer/ZoomInTransformer.java
b132e9f69547d886bea98c6925eb13b9d60cb6e7
[]
no_license
jkabcd/TestModel
f46f193a3a688e35e1283e93263c01762ff0d8e9
6ea474ab4784475fc30f65d5a8f32cacbaf262b3
refs/heads/master
2020-03-23T12:05:24.058614
2018-08-03T09:03:46
2018-08-03T09:03:46
141,536,287
0
0
null
null
null
null
UTF-8
Java
false
false
1,099
java
/* * Copyright 2014 Toxic Bakery * * 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 yuncar.aten.com.mymode.banner.transformer; import android.view.View; public class ZoomInTransformer extends ABaseTransformer { @Override protected void onTransform(View view, float position) { final float scale = position < 0 ? position + 1f : Math.abs(1f - position); view.setScaleX(scale); view.setScaleY(scale); view.setPivotX(view.getWidth() * 0.5f); view.setPivotY(view.getHeight() * 0.5f); view.setAlpha(position < -1f || position > 1f ? 0f : 1f - (scale - 1f)); } }
[ "610184089@qq.com" ]
610184089@qq.com
d24c01ac1c25720c4652391761da539e377cf24b
dc62a058c467a0be2d58a8b4c37ccb050f0f8d94
/src/main/java/Management/Service/IUserService.java
65092ade2b52d99e20a1682f641599936d0aa5d3
[]
no_license
yss123yss/OpenGMS-TeamModeling
40c8b53af1f5531c7c6f771769a98efb68220472
fcb4b938c5708a0f9efd05bc6cdd6b4c4eff7a62
refs/heads/master
2022-12-07T15:08:44.127284
2022-11-25T07:40:52
2022-11-25T07:40:52
164,181,083
0
0
null
null
null
null
UTF-8
Java
false
false
592
java
package Management.Service; import Management.Domain.User; import com.mongodb.client.MongoCollection; import org.bson.Document; public interface IUserService { /*登录*/ String userRegister(User user); /*注册*/ boolean userLogin(User user); /*验证用户是否存在*/ String checkUserExist(MongoCollection<Document> collection, String email, String mobilephone); /*验证邮箱格式*/ boolean checkEmailFormat(String account); /*验证账号密码*/ Document checkPassword(String account, String password); //ToDO 邮箱权限验证 }
[ "yss123yss@126.com" ]
yss123yss@126.com
08de41ce018d4a07dadaf3e52b02d16b6df74b06
2136fcf6d2738ddd1df361c0519189090c0b2dd3
/app/src/main/java/fr/ozf/fmr/fmrSaintBreton.java
80e50e5f3d86ddc496b7a16b36fdcef5303f97b3
[]
no_license
jplozf/ephemerides
f57ec6ce576d86078f6e5a514021e18df62fe13c
7dfbd05821d450f5a1664ac60d6ac7de8955421f
refs/heads/master
2020-04-20T07:09:17.426973
2017-09-13T07:17:04
2017-09-13T07:17:04
168,703,642
0
0
null
null
null
null
UTF-8
Java
false
false
41,295
java
package fr.ozf.fmr; public class fmrSaintBreton { //****************************************************************************** // getSaintBreton() //****************************************************************************** public static String getSaintBreton(fmrDate d) { int day = d.Day; int month = d.Month; String saint = ""; switch (month) { case 1: // Genver switch (day) { case 1: saint = "Kalanna"; break; case 2: saint = "Santez Koupaia"; break; case 3: saint = "Santez Jenovefa"; break; case 4: saint = "Sant Rumon"; break; case 5: saint = "Sant Konwoion"; break; case 6: saint = "Sant Peran"; break; case 7: saint = "Sant Gourzelv"; break; case 8: saint = "Sant Gurvant"; break; case 9: saint = "Sant Adrian"; break; case 10: saint = "Sant Radian"; break; case 11: saint = "Sant Hernin"; break; case 12: saint = "Sant Aofred"; break; case 13: saint = "Sant Enogad"; break; case 14: saint = "Sant Hiler"; break; case 15: saint = "Sant Mor, Aouregan"; break; case 16: saint = "Sant Enored"; break; case 17: saint = "Sant Anton"; break; case 18: saint = "Sant Gwendal"; break; case 19: saint = "Sant Brevalaer"; break; case 20: saint = "Sant Tarieg"; break; case 21: saint = "Santez Oanez, Eumaël, Haeloc"; break; case 22: saint = "Sant Dozhwal"; break; case 23: saint = "Sant Laouenan"; break; case 24: saint = "Sant Kadeg"; break; case 25: saint = "Sant Konhouarn"; break; case 26: saint = "Sant Tujen"; break; case 27: saint = "Sant Gildwen"; break; case 28: saint = "Alwena, Juluan, Maunoir"; break; case 29: saint = "Sant Gweltaz"; break; case 30: saint = "Santez Marzhina"; break; case 31: saint = "Sant Gaud"; break; } break; case 2: // C'hwevrer switch (day) { case 1: saint = "Santez Berc'hed, Ignoroc"; break; case 2: saint = "Ar Goulou, Gutual"; break; case 3: saint = "Sant Morvred"; break; case 4: saint = "Sant Kido"; break; case 5: saint = "Sant Merin"; break; case 6: saint = "Sant Aman"; break; case 7: saint = "Sant Aodren, Derhen"; break; case 8: saint = "Sant Jagu"; break; case 9: saint = "Sant Telio"; break; case 10: saint = "Sant Fagan, Velle"; break; case 11: saint = "Sant Ehouarn"; break; case 12: saint = "Sant Riog, Glaode"; break; case 13: saint = "Sant Gwengad"; break; case 14: saint = "Sant Biavali"; break; case 15: saint = "Sant Levenou"; break; case 16: saint = "Sant Eliaz"; break; case 17: saint = "Sant Gireg"; break; case 18: saint = "Sant Riwan"; break; case 19: saint = "Sant Tiernvael"; break; case 20: saint = "Sant Luc'her"; break; case 21: saint = "Santez Gwenn"; break; case 22: saint = "Sant Tevarzeg"; break; case 23: saint = "Tad Rigolen, Madeg"; break; case 24: saint = "Sant Kenan"; break; case 25: saint = "Sant Roparzh"; break; case 26: saint = "Sant Koulfinid"; break; case 27: saint = "Santez Sesilina"; break; case 28: saint = "Sant Rivelen"; break; case 29: saint = "Santez Sisilia"; break; } break; case 3: // Meurzh switch (day) { case 1: saint = "Sant Dewi"; break; case 2: saint = "Sant Jaoua"; break; case 3: saint = "Sant Gwenole"; break; case 4: saint = "Sant Jeran"; break; case 5: saint = "Sant Piran"; break; case 6: saint = "Sant Senan"; break; case 7: saint = "Nevenou"; break; case 8: saint = "Sant Senou"; break; case 9: saint = "Sant Ilan"; break; case 10: saint = "Santez Kanna"; break; case 11: saint = "Sant Yann K."; break; case 12: saint = "Sant Paol"; break; case 13: saint = "Sant Kemo"; break; case 14: saint = "Sant Hagareg"; break; case 15: saint = "Sant Bozien"; break; case 16: saint = "Sant Abram"; break; case 17: saint = "Sant Padrig"; break; case 18: saint = "Santez Derwella"; break; case 19: saint = "Sant Jozeb"; break; case 20: saint = "Sant Siril"; break; case 21: saint = "Sant Benniged"; break; case 22: saint = "Sant Alouarnl"; break; case 23: saint = "Sant Justog"; break; case 24: saint = "Santez Kristel"; break; case 25: saint = "Sant Mordiern"; break; case 26: saint = "Sant Emmanuel, Goau"; break; case 27: saint = "Sant Louarn"; break; case 28: saint = "Sant Karn"; break; case 29: saint = "Sant Gwelle"; break; case 30: saint = "Sant Malon"; break; case 31: saint = "Sant Gwion"; break; } break; case 4: // Ebrel switch (day) { case 1: saint = "Sant Konwal"; break; case 2: saint = "Sant Aoperzh"; break; case 3: saint = "Sant Izuned"; break; case 4: saint = "Sant Goneri"; break; case 5: saint = "Sant Visant"; break; case 6: saint = "Sant Neven"; break; case 7: saint = "Sant Brenac'h"; break; case 8: saint = "Sant Devan"; break; case 9: saint = "Santez Merzherian"; break; case 10: saint = "Sant Adeodat"; break; case 11: saint = "Sant Paolenan"; break; case 12: saint = "Santez Ida"; break; case 13: saint = "Sant Karadeg"; break; case 14: saint = "Sant Donan"; break; case 15: saint = "Santez Juved"; break; case 16: saint = "Sant Padern"; break; case 17: saint = "Sant Ewen"; break; case 18: saint = "Sant Keveren"; break; case 19: saint = "Sant Arouestl"; break; case 20: saint = "Sant Serv"; break; case 21: saint = "Sant Hamon"; break; case 22: saint = "Sant Konvarc'h"; break; case 23: saint = "Sant Jord"; break; case 24: saint = "Sant Felan"; break; case 25: saint = "Sant Gourloez"; break; case 26: saint = "Sant Klet"; break; case 27: saint = "Sant Konwen"; break; case 28: saint = "Sant Loudiern"; break; case 29: saint = "Sant Segondel"; break; case 30: saint = "Santez Onenn"; break; } break; case 5: // Mae switch (day) { case 1: saint = "Sant Brieg"; break; case 2: saint = "Sant Ave"; break; case 3: saint = "Sant Ewen"; break; case 4: saint = "Sant Eneour"; break; case 5: saint = "Sant Endal"; break; case 6: saint = "Sant Pever"; break; case 7: saint = "Sant Neventer"; break; case 8: saint = "Santez Tunvez"; break; case 9: saint = "Sant Gregor"; break; case 10: saint = "Santez Libouban, Gwenganton"; break; case 11: saint = "Sant Tudi"; break; case 12: saint = "Sant Servan"; break; case 13: saint = "Sant Mael"; break; case 14: saint = "Sant Servez"; break; case 15: saint = "Sant Privel"; break; case 16: saint = "Sant Brendan"; break; case 17: saint = "Sant Tudon"; break; case 18: saint = "Sant Erig"; break; case 19: saint = "Sant Erwan"; break; case 20: saint = "Sant Terezhien"; break; case 21: saint = "Sant Marc'han"; break; case 22: saint = "Sant Aotrom"; break; case 23: saint = "Sant Bili"; break; case 24: saint = "Sant Donasian"; break; case 25: saint = "Sant Urvan"; break; case 26: saint = "Sant Seog"; break; case 27: saint = "Sant Bed"; break; case 28: saint = "Sant Joran"; break; case 29: saint = "Sant Riagad"; break; case 30: saint = "Sant Izidor"; break; case 31: saint = "Sant Nerin"; break; } break; case 6: // Mezheven switch (day) { case 1: saint = "Sant Ronan"; break; case 2: saint = "Sant Jugon"; break; case 3: saint = "Santez Klotilda"; break; case 4: saint = "Santez Ninog"; break; case 5: saint = "Sant Tuno"; break; case 6: saint = "Sant Goal"; break; case 7: saint = "Sant Meriadeg"; break; case 8: saint = "Sant Medar"; break; case 9: saint = "Sant Koulmkell"; break; case 10: saint = "Sant Kijo"; break; case 11: saint = "Sant Majan"; break; case 12: saint = "Sant Gourhan"; break; case 13: saint = "Sant Herbod"; break; case 14: saint = "Sant Dogmael"; break; case 15: saint = "Sant Nouga"; break; case 16: saint = "Sant Similian"; break; case 17: saint = "Sant Herve"; break; case 18: saint = "Sant Marselan"; break; case 19: saint = "Santez Riwanon"; break; case 20: saint = "Sant Marcan"; break; case 21: saint = "Sant Meven"; break; case 22: saint = "Sant Alban"; break; case 23: saint = "Santez Gwentrog"; break; case 24: saint = "Sant Tutael"; break; case 25: saint = "Sant Salaun"; break; case 26: saint = "Sant Gwenvred"; break; case 27: saint = "Sant Meldreg"; break; case 28: saint = "Sant Eostol"; break; case 29: saint = "Sant Per"; break; case 30: saint = "Santez Kast"; break; } break; case 7: // Gouere switch (day) { case 1: saint = "Sant Goulwen"; break; case 2: saint = "Sant Ouzog"; break; case 3: saint = "Sant Diboan"; break; case 4: saint = "Sant Balae"; break; case 5: saint = "Sant Meurzh"; break; case 6: saint = "Santez Nolwenn"; break; case 7: saint = "Sant Teï"; break; case 8: saint = "Sant Bronvel"; break; case 9: saint = "Sante Kirio"; break; case 10: saint = "Sant Pasker"; break; case 11: saint = "Sant Judog"; break; case 12: saint = "Sant Menou"; break; case 13: saint = "Sant Turio"; break; case 14: saint = "Sant Elen"; break; case 15: saint = "Sant Riwal"; break; case 16: saint = "Sant Tenonan"; break; case 17: saint = "Sant Elier"; break; case 18: saint = "Sant Tivizio"; break; case 19: saint = "Sant Maden"; break; case 20: saint = "Santez Marc'harid A."; break; case 21: saint = "Santez Trifin"; break; case 22: saint = "Santez Madalen"; break; case 23: saint = "Santez Sev"; break; case 24: saint = "Santez Gwengalon"; break; case 25: saint = "Sant KriSantof"; break; case 26: saint = "Santez Anna"; break; case 27: saint = "Sant Brewen"; break; case 28: saint = "Samzun, Heneg"; break; case 29: saint = "Sant Gwilherm, Loig, Raffig"; break; case 30: saint = "Sant Geneve"; break; case 31: saint = "Sant Jermen"; break; } break; case 8: // EoSant switch (day) { case 1: saint = "Sant Fransez"; break; case 2: saint = "Sant Friard"; break; case 3: saint = "Sant Pergad"; break; case 4: saint = "Sant Uniac"; break; case 5: saint = "Sant Avel, Ahès"; break; case 6: saint = "Sant Dahud"; break; case 7: saint = "Sant Levan"; break; case 8: saint = "Sant Gwenneg"; break; case 9: saint = "Sant Erle"; break; case 10: saint = "Santez Santeredenn"; break; case 11: saint = "Sant Ergad"; break; case 12: saint = "Santez Sklerijenn"; break; case 13: saint = "Sant Riowen"; break; case 14: saint = "Sant Merwen"; break; case 15: saint = "Santez Mari"; break; case 16: saint = "Sant Arzhel"; break; case 17: saint = "Sant Gulian"; break; case 18: saint = "Santez Elena"; break; case 19: saint = "Sant Gwennin"; break; case 20: saint = "Sant Bernez"; break; case 21: saint = "Santez Yuna"; break; case 22: saint = "Sant Emilion"; break; case 23: saint = "Santez Tedvil, Rozenn"; break; case 24: saint = "Sant Bertele"; break; case 25: saint = "Sant Loeiz"; break; case 26: saint = "Sant Gorgon"; break; case 27: saint = "Sant Armans"; break; case 28: saint = "Sant Elouan"; break; case 29: saint = "Sant Fiakr"; break; case 30: saint = "Sant Edern"; break; case 31: saint = "Santez Trec'her"; break; } break; case 9: // Gwengolo switch (day) { case 1: saint = "Sant Jili"; break; case 2: saint = "Sant Just"; break; case 3: saint = "Sant Kavan"; break; case 4: saint = "Santez Roza"; break; case 5: saint = "Sant Bertin"; break; case 6: saint = "Santez Bega"; break; case 7: saint = "Sant Koneg"; break; case 8: saint = "Sant Alan ar Roc'h"; break; case 9: saint = "Santez Ozvan"; break; case 10: saint = "Sant Kolaz T."; break; case 11: saint = "Sant Glen"; break; case 12: saint = "Sant Leviaz"; break; case 13: saint = "Sant Aman"; break; case 14: saint = "Sant Modan"; break; case 15: saint = "Nigouden, Erell"; break; case 16: saint = "Sant Korneli"; break; case 17: saint = "Sant Urfol"; break; case 18: saint = "Sant Dider"; break; case 19: saint = "Sant Riware"; break; case 20: saint = "Santez Gwenlaouen, Egat"; break; case 21: saint = "Sant Mazhe"; break; case 22: saint = "Sant Morvan, Emeran"; break; case 23: saint = "Sant Solen"; break; case 24: saint = "Sant Maogad"; break; case 25: saint = "Santez Lupita"; break; case 26: saint = "Santez Justina"; break; case 27: saint = "Santez Oran, Comméan"; break; case 28: saint = "Sant Konan"; break; case 29: saint = "Sant Mikael, Charlez"; break; case 30: saint = "Sant Leri"; break; } break; case 10: // Here switch (day) { case 1: saint = "Santez Uriell"; break; case 2: saint = "Sant Meler"; break; case 3: saint = "Sant Fragan"; break; case 4: saint = "Sant Fransez A."; break; case 5: saint = "Sant Moris"; break; case 6: saint = "Sant Ivi"; break; case 7: saint = "Sant Ké-Collédoc"; break; case 8: saint = "Sant Morgan"; break; case 9: saint = "Sant Denez"; break; case 10: saint = "Sant Kler"; break; case 11: saint = "Sant Gwinien"; break; case 12: saint = "Sant Charlez B."; break; case 13: saint = "Sant Luner"; break; case 14: saint = "Santez Enora"; break; case 15: saint = "Sant Konogan"; break; case 16: saint = "Sant Gall"; break; case 17: saint = "Sant Segal"; break; case 18: saint = "Sant Lucaz"; break; case 19: saint = "Sant Ezhvin"; break; case 20: saint = "Sant Moran"; break; case 21: saint = "Santez Sterenn"; break; case 22: saint = "Morvan"; break; case 23: saint = "Sant Gwidel"; break; case 24: saint = "Sant Maglor"; break; case 25: saint = "Sant Gouenou"; break; case 26: saint = "Sant Alor"; break; case 27: saint = "Sant Milio, Argantel"; break; case 28: saint = "Sant Jud, Santez Libouban"; break; case 29: saint = "Santez Landouen"; break; case 30: saint = "Sant Hernin"; break; case 31: saint = "Sant Beuzi"; break; } break; case 11: // Du switch (day) { case 1: saint = "Hollsent"; break; case 2: saint = "An anaon"; break; case 3: saint = "Sant Gwenael, Levenez"; break; case 4: saint = "Sant Juvad"; break; case 5: saint = "Sant Gwezheneg, Kerrien"; break; case 6: saint = "Sant Gwenneg, Efflam, Condeloc, Melaine"; break; case 7: saint = "Ildut, Blenlived"; break; case 8: saint = "Sant Treveur"; break; case 9: saint = "Sant Matilin"; break; case 10: saint = "Sant Govrian"; break; case 11: saint = "Sant Marzhin T., Franseza, Arneg"; break; case 12: saint = "Sant Meog"; break; case 13: saint = "Sant Briz"; break; case 14: saint = "Sant Devrig"; break; case 15: saint = "Sant Malo"; break; case 16: saint = "Perlezenn"; break; case 17: saint = "Sant Agnan"; break; case 18: saint = "Sant Maodez"; break; case 19: saint = "Sant Ethbin, Sant Tangi"; break; case 20: saint = "Sant Bran"; break; case 21: saint = "Sant Koulman"; break; case 22: saint = "Santez Aziliz"; break; case 23: saint = "Sant Bieuzi"; break; case 24: saint = "Santez Bleuzenn"; break; case 25: saint = "Santez Katell"; break; case 26: saint = "Santez Delfinez"; break; case 27: saint = "Sant Goustan"; break; case 28: saint = "Santez Heodez"; break; case 29: saint = "Sant Sadornin"; break; case 30: saint = "Sant Andrev, Sant Tudal"; break; } break; case 12: // Kerzu switch (day) { case 1: saint = "Sant Bretoch"; break; case 2: saint = "Sant Tadec"; break; case 3: saint = "Sant Avran"; break; case 4: saint = "Santez Barban"; break; case 5: saint = "Sant Houarvian"; break; case 6: saint = "Sant Nicolaz"; break; case 7: saint = "Santez Azenor"; break; case 8: saint = "Sant Budog"; break; case 9: saint = "Sant Kerne"; break; case 10: saint = "Sant Koulizh"; break; case 11: saint = "Sant Deniel T."; break; case 12: saint = "Sant Kaourintin"; break; case 13: saint = "Sant Juzeg"; break; case 14: saint = "Sant Gwinier"; break; case 15: saint = "Du"; break; case 16: saint = "Sant Judikael"; break; case 17: saint = "Sant Briag"; break; case 18: saint = "Sant Gasian"; break; case 19: saint = "Sant Juzel"; break; case 20: saint = "Sant Douegar"; break; case 21: saint = "Sant Tomaz"; break; case 22: saint = "Sant Deved"; break; case 23: saint = "Sant Gwenvael"; break; case 24: saint = "Sant Denoal"; break; case 25: saint = "Nedeleg"; break; case 26: saint = "Sant Santefan"; break; case 27: saint = "Sant Yann"; break; case 28: saint = "Sant Servan"; break; case 29: saint = "Sant Bernez N."; break; case 30: saint = "Santez Tirid"; break; case 31: saint = "Sant Maeleg"; break; } break; } return saint; } }
[ "jpl@ozf.fr" ]
jpl@ozf.fr
8befbf1355ec0f80d757bb2001f113612bdea400
a3a25c91f8f6d84a6b14c3081b950f8770bf1668
/src/main/java/com/company/sumpla/services/product/ProductServiceImpl.java
e5bda018dbc2db1d684f23103173a300fdafe273
[]
no_license
jeansumaraleopoldo/company-api
b322689871ca99ecb485a33c35141e2346b5a465
ba701e627e33fec7bbb13e87b3904f1c244fae05
refs/heads/master
2020-05-17T12:18:53.526965
2019-05-03T12:57:42
2019-05-03T12:57:42
183,707,647
0
0
null
null
null
null
UTF-8
Java
false
false
1,315
java
package com.company.sumpla.services.product; import com.company.sumpla.exceptions.NotFoundException; import com.company.sumpla.model.Product; import com.company.sumpla.repositories.ProductRepository; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; import java.util.Optional; @Service public class ProductServiceImpl implements ProductService{ private final ProductRepository productRepository; public ProductServiceImpl(ProductRepository productRepository) { this.productRepository = productRepository; } @Override public List<Product> getProducts() { ArrayList<Product> list = new ArrayList<>(); productRepository.findAll().iterator().forEachRemaining(list::add); return list; } @Override public Product findById(Long id) { Optional<Product> product = productRepository.findById(id); if (!product.isPresent()) { throw new NotFoundException("Entity Product not found for ID: " + id); } return product.get(); } @Override public Product saveProduct(Product product) { return productRepository.save(product); } @Override public void deleteById(Long idProduct) { productRepository.deleteById(idProduct); } }
[ "jean_leopoldo@hotmail.com" ]
jean_leopoldo@hotmail.com
b2406c14a864d3e54df951da26a6a7f813edacf8
69e3d1a50abff8cca9ac1cd1956c97f1f17c95d0
/src/br/com/caelum/livraria/interceptador/LogInterceptador.java
d5b53e69bdc848170b973e45595ca8e1931cf157
[]
no_license
j19791/livraria_ejb
01425fe9decbcfadd0db9ae03619215aca233a36
ba337a1ecdfa09d0aa12e64308989ade2e0746c7
refs/heads/master
2021-01-24T16:52:58.589635
2018-03-17T03:21:39
2018-03-17T03:21:39
123,218,093
0
0
null
null
null
null
UTF-8
Java
false
false
1,555
java
package br.com.caelum.livraria.interceptador; import javax.interceptor.AroundInvoke; import javax.interceptor.InvocationContext; //Um interceptador é útil para relacionar uma funcionalidades com vários Session Beans. No lugar de repetir a funcionalidade em cada Session Bean, podemos centralizar o código em um lugar apenas e configurar aonde aplicar. // é preciso fazer um monitoramento: pode ser necessário monitorar o tempo de acesso ao banco de dados. Para tal existem os interceptadores que separam bem essa responsabilidade em um único lugar. public class LogInterceptador { @AroundInvoke // deixa claro para o EJB Container que o método intercepta o fluxo public Object intercepta(InvocationContext context) throws Exception { // o método sempre deve retornar um Object long millis = System.currentTimeMillis(); // Através InvocationContext podemos continuar a execução da aplicação, ou seja, // chamar o método no DAO chamada do método do dao Object o = context.proceed(); // O retorno desse método representa o possível retorno do método do DAO String metodo = context.getMethod().getName(); // nome do metodo q estamos interceptando String nomeClasse = context.getTarget().getClass().getSimpleName(); // nome da classe q estamos intecepatando System.out.println("Classe e metodo inteceptado: " + nomeClasse + "." + metodo + ". Tempo gasto: " + (System.currentTimeMillis() - millis)); return o; // retorno do metodo dao, aonde vai ser aplicado o interceptador } }
[ "jeffrm@gmail.com" ]
jeffrm@gmail.com
89f0ec5c9bbdd8ae246652f36a5eb02bb5522fba
7bf370d218b7de9e89717274eb873cc98fc23ac8
/Chapter_9/src/exercise_15/Ex15.java
28bd33c87a3267d863e59762665f05f9f68f11d0
[]
no_license
zhaoyang1221/ThinkingInJava
bd79d047a69cfcf550667f9a9275c2f74770c8ac
168a667b88a3603c02e2476d831d6082a20f7681
refs/heads/master
2020-03-09T22:05:55.085834
2018-07-27T02:29:26
2018-07-27T02:29:26
129,026,467
1
0
null
null
null
null
UTF-8
Java
false
false
1,279
java
package exercise_15; /** * Created with IntelliJ IDEA. * User: zhaoyang * Date: 2018/5/2 0002 * To change this template use File | Settings | File Templates. * Description: */ interface DoA { void a(); void a1(); } interface DoB { void b(); void b1(); } interface DoC { void c(); void c1(); } interface DoAll extends DoA, DoB, DoC { void all(); } abstract class person { private int i = 0; abstract void doSomething (); } class personDo extends person implements DoAll { @Override public void a() { } @Override public void a1() { } @Override public void b() { } @Override public void b1() { } @Override public void c() { } @Override public void c1() { } @Override public void all() { } @Override void doSomething() { System.out.println("dosomething"); } } public class Ex15 { public static void m1(DoA a) {}; public static void m2(DoB b) {}; public static void m3(DoC c) {}; public static void m4(DoA all) {}; public static void main(String[] args) { personDo personDo = new personDo(); m1(personDo); m2(personDo); m3(personDo); m4(personDo); } }
[ "164258541@qq.com" ]
164258541@qq.com
901f574f7144f52f5c8b16342223ee37ff7cc7be
1addc08ad530f3cf02fe4292f5fa6aaf949f3d6a
/src/zadatak2/ZadatakArray.java
d93c79ea50243e075a5c19f806e90665a315b751
[]
no_license
mikecivan0/javaZadaci
b6c92447a7bb2cc539cb07f9c5c1920e5c5ad121
6aab4968a1866f1176d99db32275789669810134
refs/heads/main
2023-06-23T04:30:21.253947
2021-07-10T12:03:47
2021-07-10T12:03:47
380,022,875
0
0
null
null
null
null
WINDOWS-1250
Java
false
false
811
java
package zadatak2; public class ZadatakArray { public static void main(String[] args) { String[] mjesta = { "Osijek", "Valpovo", "Čepin", "Osijek", "Lug", "Belišće", "Čepin", "Osijek", "Lug" }; // zadatak 1 // program pronalazi i ispisuje duple vrijednosti u nizu String listaDuplihMjesta = ""; for (int i = 0; i < mjesta.length; i++) { for (int j = i + 1; j < mjesta.length; j++) { if (mjesta[j] == mjesta[i] && !listaDuplihMjesta.contains(mjesta[j])) { listaDuplihMjesta += mjesta[j] + "\n"; } } } System.out.println(listaDuplihMjesta); // zadatak 2 // program ispisuje broj pojava određenog grada u stringu String mjestaString = "Osijek,Valpovo,Čepin,Osijek,Lug,Belišće,Čepin,Osijek,Lug"; Alati.countOccurrancesInString(mjestaString); } }
[ "mikecivan0@gmail.com" ]
mikecivan0@gmail.com
891476f53c078a18fef352065ec3dead369d9a15
83e81c25b1f74f88ed0f723afc5d3f83e7d05da8
/core/java/android/bluetooth/BluetoothOutputStream.java
2579f78cfe43cf48a6747e5f0456cd5adbc1dc76
[ "Apache-2.0", "LicenseRef-scancode-unicode" ]
permissive
Ankits-lab/frameworks_base
8a63f39a79965c87a84e80550926327dcafb40b7
150a9240e5a11cd5ebc9bb0832ce30e9c23f376a
refs/heads/main
2023-02-06T03:57:44.893590
2020-11-14T09:13:40
2020-11-14T09:13:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,701
java
/* * Copyright (C) 2009 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 android.bluetooth; import java.io.IOException; import java.io.OutputStream; /** * BluetoothOutputStream. * * Used to read from a Bluetooth socket. * * @hide */ /*package*/ final class BluetoothOutputStream extends OutputStream { private BluetoothSocket mSocket; /*package*/ BluetoothOutputStream(BluetoothSocket s) { mSocket = s; } /** * Close this output stream and the socket associated with it. */ public void close() throws IOException { mSocket.close(); } /** * Writes a single byte to this stream. Only the least significant byte of * the integer {@code oneByte} is written to the stream. * * @param oneByte the byte to be written. * @throws IOException if an error occurs while writing to this stream. * @since Android 1.0 */ public void write(int oneByte) throws IOException { byte[] b = new byte[1]; b[0] = (byte) oneByte; mSocket.write(b, 0, 1); } /** * Writes {@code count} bytes from the byte array {@code buffer} starting * at position {@code offset} to this stream. * * @param b the buffer to be written. * @param offset the start position in {@code buffer} from where to get bytes. * @param count the number of bytes from {@code buffer} to write to this stream. * @throws IOException if an error occurs while writing to this stream. * @throws IndexOutOfBoundsException if {@code offset < 0} or {@code count < 0}, or if {@code * offset + count} is bigger than the length of {@code buffer}. * @since Android 1.0 */ public void write(byte[] b, int offset, int count) throws IOException { if (b == null) { throw new NullPointerException("buffer is null"); } if ((offset | count) < 0 || count > b.length - offset) { throw new IndexOutOfBoundsException("invalid offset or length"); } mSocket.write(b, offset, count); } }
[ "keneankit01@gmail.com" ]
keneankit01@gmail.com
2026cf0b2ebdf32843c3f94aba5b8d37974cc43d
12cce485d290ecc207fd24e159dcc233090d4c3b
/src/Fonction/ServiceReservationSalle.java
0f78f99de5b5c8a67cc6be2bcaa55055e82d61b4
[]
no_license
Novack18/CiteDeCulture
e647b4ccf9dc49f3942f85dca79f7fd9c7e026a0
afe8a82ed12dfc5b75e199dbf28880bd236da926
refs/heads/master
2020-05-15T09:57:23.678186
2019-04-19T03:30:39
2019-04-19T03:30:39
182,185,817
0
0
null
null
null
null
UTF-8
Java
false
false
292
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Fonction; /** * * @author I.O.I */ public class ServiceReservationSalle { }
[ "salem.mahbouli@esprit.tn" ]
salem.mahbouli@esprit.tn
6c09579c18e44cd9993b23dd8dcd9b65126ef155
c820c4a53d9700e48c7b6e562a7e35b3ff7b3f38
/src/lottery/view/menu/shortterm/HighLowTableMenu.java
47f4b029c57bdbdd19cd60eb73c7da9f79a813d3
[]
no_license
gomhan/ssq
9e633c025576cedf71de77f7aba9aebe46fef36e
c8b90d214f175cc5a47198ea4f6f2c4b4a9497b0
refs/heads/master
2022-01-15T14:23:17.241862
2019-07-06T02:56:32
2019-07-06T02:56:32
115,704,381
0
0
null
null
null
null
WINDOWS-1252
Java
false
false
944
java
package lottery.view.menu.shortterm; import java.util.List; import lottery.function.shortterm.HighLowDeviationStatistic; import lottery.function.shortterm.HighLowDeviationStatistic.LowHighNumber; import lottery.itf.Result; import lottery.view.funcview.HighLowInTableFrame; import lottery.view.menu.AbstractTermMenu; public class HighLowTableMenu extends AbstractTermMenu { /** * */ private static final long serialVersionUID = 6071326861450893056L; public HighLowTableMenu() { super(); } @Override protected void initialize() { // TODO Auto-generated method stub super.initialize(); setName("HighLowTableMenu"); setText("´óСƫ²î"); function = new HighLowDeviationStatistic(); } @Override public void showGraphics(Result result) { // TODO Auto-generated method stub HighLowInTableFrame frame = new HighLowInTableFrame( (List<LowHighNumber>) result.getValue(), length); frame.display(); } }
[ "xuhan1983@163.com" ]
xuhan1983@163.com
121985a785e8cd502303ca502eb05584f4da772c
866adae97852afc4367014d02c3c33791d8f35f1
/JunitBook/src/test/java/com/practicalunittesting/MoneyParameterizedTest.java
5308566e51198a718334eb1dcbb53c16d8d2b4f0
[]
no_license
raj4dev/junit-book
4945b6fa5ae8114fdc8858d95113a67b3aeb73a7
ce5f425f34db5ca78c37c6699b4614eea7e8dc3e
refs/heads/master
2021-01-18T20:44:06.240053
2016-03-21T23:53:55
2016-03-21T23:53:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
767
java
package com.practicalunittesting; import static org.junit.Assert.assertEquals; import junitparams.JUnitParamsRunner; import junitparams.Parameters; import org.junit.Test; import org.junit.runner.RunWith; @RunWith(JUnitParamsRunner.class) public class MoneyParameterizedTest { private static final Object[] getMoney() { Object[] test_params_1 = { 10, "USD" }; Object[] test_params_2 = { 15, "EUR" }; Object[] all_test_params = { test_params_1, test_params_2 }; return all_test_params; } @Test @Parameters(method = "getMoney") public void constructorShouldSetAmountAndCurrency(int amount, String currency) { Money money = new Money(amount, currency); assertEquals(amount, money.getAmount()); assertEquals(currency, money.getCurrency()); } }
[ "rb@email.com" ]
rb@email.com
1e37688c97a5852e5fff3abee6a230a4c6ceec24
5612eee7a5148312db86fe2eca074f735a20a007
/chiliad-parser-pdf/src/main/java/chiliad/parser/pdf/PDFLoadingException.java
c652e5f17d32d9bab200fb9a51dff9faff675625
[]
no_license
kpt79/chiliad
7b4dcf04405a6ee1fab50bfc0dcbc5a9de43427d
4359ddc95fdb0361041bb620b3183066bea70039
refs/heads/master
2021-01-10T21:31:30.117425
2015-05-14T00:52:25
2015-05-14T00:52:25
35,064,592
0
0
null
null
null
null
UTF-8
Java
false
false
874
java
/* * Copyright 2015 Kovacs Peter Tibor * * 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 chiliad.parser.pdf; public class PDFLoadingException extends RuntimeException { private static final long serialVersionUID = -4013183942737764794L; public PDFLoadingException(String message, Throwable cause) { super(message, cause); } }
[ "kpt79.dev@gmail.com" ]
kpt79.dev@gmail.com
94c5adc18a5b8087ae9871f2b046ff48ad9f0fde
3feb5b3f06d7d8eca021cf8bf33d147e486467fe
/src/Firefoxdriver.java
4fdd8ef1b3cb380933e47059dc3f96c81fb7d91e
[]
no_license
bchiplun/GettingStartedwithSelenium
68cf6bd988864bbc47af73021b4df35ec7621e9e
57385e302e551ada56a4a5ad90b7cbe952714504
refs/heads/master
2023-02-17T22:16:25.562465
2021-01-20T10:29:25
2021-01-20T10:29:25
311,204,275
1
0
null
null
null
null
UTF-8
Java
false
false
959
java
import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class Firefoxdriver { public static void main(String[] args) { // TODO Auto-generated method stub // first selenium code to automate chrome // Creating driver object for chrome driver // implementing methods of webdriver interface and using class name ChromDriver //FIrst invoking .exe file for chrome System.setProperty("webdriver.gecko.driver", "C:\\Users\\chipl\\Java\\eclipse-workspace\\geckodriver-v0.28.0-win64\\geckodriver.exe"); // implementing methods of webdriver interface and using class name ChromDriver WebDriver driver = new FirefoxDriver(); //Loading site on chrome driver.get("http://yahoo.com"); //getting title of page System.out.println(driver.getTitle()); } }
[ "noreply@github.com" ]
bchiplun.noreply@github.com
35ed3416e17a0682f18104bcda977a55bf570a7d
be954e5cfc62793de7f838437b91c84966aaaa73
/src/main/java/com/emart/proxyservice/service/ServiceDefinitionsContext.java
15c380b111dc918ae5b15e6113bb9ae253947490
[]
no_license
Online-market-clone/api-gateway
9f886b812006eb4e5ad385bc02e74203c3c9d197
cd1f0d049baef7d9630302bdbfb905bab16e8a4f
refs/heads/master
2023-01-04T17:28:03.343172
2020-10-29T15:31:45
2020-10-29T15:31:45
308,375,282
1
1
null
2020-10-30T12:45:20
2020-10-29T15:45:45
Java
UTF-8
Java
false
false
1,333
java
package com.emart.proxyservice.service; import java.util.List; import java.util.concurrent.ConcurrentHashMap; import java.util.stream.Collectors; import org.springframework.beans.factory.config.ConfigurableBeanFactory; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import springfox.documentation.swagger.web.SwaggerResource; @Component @Scope(scopeName = ConfigurableBeanFactory.SCOPE_SINGLETON) public class ServiceDefinitionsContext { private final ConcurrentHashMap<String, String> serviceDescriptions; private ServiceDefinitionsContext() { serviceDescriptions = new ConcurrentHashMap<String, String>(); } public void addServiceDefinition(String serviceName, String serviceDescription) { serviceDescriptions.put(serviceName, serviceDescription); } public String getSwaggerDefinition(String serviceId) { return this.serviceDescriptions.get(serviceId); } public List<SwaggerResource> getSwaggerDefinitions() { return serviceDescriptions.entrySet().stream().map(serviceDefinition -> { SwaggerResource resource = new SwaggerResource(); resource.setLocation("/service/" + serviceDefinition.getKey()); resource.setName(serviceDefinition.getKey()); resource.setSwaggerVersion("2.0"); return resource; }).collect(Collectors.toList()); } }
[ "darshanshah.sculptsoft@gmail.com" ]
darshanshah.sculptsoft@gmail.com
822d80e0ee5bfb57f96379d25ed7f5c38c56591a
0867daf2aeb9d4f03d07c1123876f646d71c0e51
/src/main/java/in/nit/SpringBootAutoComponentScanningApplication.java
406fc14a711973cd5156653c8fe6c6df7e31010b
[]
no_license
SagarJain111/AutoComponent
5d2c951baae997d710ae65841c569cd84befe39d
e0dd131a4cc3ee665b33f7a1370f17f8a71f78ef
refs/heads/master
2023-08-29T13:35:24.064221
2021-09-16T14:25:42
2021-09-16T14:25:42
407,142,725
0
0
null
null
null
null
UTF-8
Java
false
false
496
java
package in.nit; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; @SpringBootApplication @ComponentScan({ "in.nit.security", "in.nit.runner" }) public class SpringBootAutoComponentScanningApplication { public static void main(String[] args) { SpringApplication.run(SpringBootAutoComponentScanningApplication.class, args); System.out.println("Runnn"); } }
[ "34002406+SagarJain111@users.noreply.github.com" ]
34002406+SagarJain111@users.noreply.github.com
dbc61681283b0129c546bc7d0c694010fe2a1f3b
49496333dfd7dc732a7b04b16eb4e4e80e858485
/src/com/theo/formais/FormaisUI.java
b3eefc7d41fccc0358971778ba0249ecb9760b40
[]
no_license
lowellausen/sentence_generator
2b31a7c7203e3518c7fd46fa3e42b27476c4f68a
cf963da34db1c2f9c072922165622b8fb700aec4
refs/heads/master
2023-03-02T15:10:42.628462
2021-02-18T01:11:34
2021-02-18T01:11:34
339,879,134
0
0
null
null
null
null
UTF-8
Java
false
false
3,883
java
package com.theo.formais; import com.theo.formais.adapter.GrammarAdapter; import com.theo.formais.models.*; import com.theo.formais.utils.IOUtils; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import java.util.ArrayList; import java.util.List; /** * Created by theolm on 08/05/16. */ public class FormaisUI { private JPanel panelMain; private JButton btnOpenGrammar; private JTextField txtInput; private JButton btnGo; private JButton btnGenerateDialog; private Grammar grammar; private String generatedPhrase; public FormaisUI() { btnOpenGrammar.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { File file = IOUtils.openFile(panelMain); if (file != null){ grammar = GrammarAdapter.parseFile(file); } showOnGrammarLoadMessage(); } }); btnGo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { try { StructureD d = grammar.parseInputText(txtInput.getText()); if(accept(d)){ for (StructureOne x : d.dList) { int i=1; if(x.pointer == -1 && x.group == 0) { if(x.rule.ini.variable.contentEquals(grammar.initialVar.variable)) { JOptionPane.showMessageDialog(panelMain, "Arvore " + i++ +" " +grammar.initialVar.variable +x.history); } } } } else { JOptionPane.showMessageDialog(panelMain, "A gramática NÃO aceita essa entrada."); } } catch (Exception e1){ JOptionPane.showMessageDialog(panelMain, "A gramática NÃO aceita essa entrada."); } } }); btnGenerateDialog.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { if (grammar != null) { generatedPhrase = grammar.generateRandomText(); JOptionPane.showMessageDialog(panelMain, generatedPhrase); } else { JOptionPane.showMessageDialog(panelMain, "Primeiro é necessário carregar uma gramática válida"); } } }); } public boolean accept (StructureD d){ for (StructureOne x : d.dList){ if (x.pointer == -1 && x.group == 0) { if (x.rule.ini.variable.contentEquals(grammar.initialVar.variable)){ return true; } } } return false; } public static void main(String[] args) { JFrame frame = new JFrame("FormaisUI"); frame.setContentPane(new FormaisUI().panelMain); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.pack(); frame.setVisible(true); } private void showOnGrammarLoadMessage(){ if (grammar != null){ String msg = "A gramática contém " + String.valueOf(grammar.terminals.size()) + " terminais, " + String.valueOf(grammar.rules.size()) + " regras, " + "e começa pela variavel " + String.valueOf(grammar.initialVar.variable); JOptionPane.showMessageDialog(panelMain, msg); } else { String msg = "Gramática não reconhecida"; JOptionPane.showMessageDialog(panelMain, msg); } } }
[ "lwellausen@gmail.com" ]
lwellausen@gmail.com
76ea206a822cfd8fa1080243c9571dc52a0b81c1
7c8d9f259da5341fdccc7607cb614577a46fc174
/app/src/main/java/in/karan/suman/foodka/Model/MyResponse.java
d42ae0347dc05a83dcdca3d655d1c249848fb6ec
[]
no_license
sumankaran003/Foodie
94812aebf86e90cd81587f01e5805baae6271a3b
552164e59b54eaee508b65a10d1ec8cea6d585ca
refs/heads/master
2020-03-22T18:39:53.817429
2018-07-10T18:47:28
2018-07-10T18:47:28
140,474,320
0
0
null
null
null
null
UTF-8
Java
false
false
278
java
package in.karan.suman.foodka.Model; import java.util.List; /** * Created by Suman on 19-Dec-17. */ public class MyResponse { public long multicast_id; public int success; public int failure; public int canonical_ids; public List<Result> results; }
[ "sumankaran003@gmail.com" ]
sumankaran003@gmail.com
a47b624414dba4bc6e523f7085c664506753fd7a
9372aa3f42616cfb81c8651d82d1b96e95bcefdd
/src/main/java/ua/lv/controller/LoginController.java
97f04eb3d188bbec41f91ff8a82cdf31958c96a8
[]
no_license
Oleglogin/MyShop
0c3181c24276c426659af4db27c161391d24218a
beb5d13a2be1860bb8a5c897a5d96b57a1ead239
refs/heads/master
2020-05-09T14:04:56.039307
2019-05-07T20:39:19
2019-05-07T20:39:19
181,180,623
0
0
null
null
null
null
UTF-8
Java
false
false
608
java
package ua.lv.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import ua.lv.service.ProductService; /** * Created by User on 09.03.2019. */ @Controller public class LoginController { @Autowired ProductService productService; @RequestMapping(value = "/login") public String toLogin(Model model){ model.addAttribute("productSortList",productService.productSortList()); return "/login"; } }
[ "Travolta@I.ua" ]
Travolta@I.ua
7b118e36a112d5b696712da5e5859c68737ebf73
9d07c0b1007a07bcc7bdad9c85d8df0dfaaf46e8
/src/main/java/ch/megil/teliaengine/vulkan/buffer/VulkanIndexBuffer.java
4e114037e35a50ae7eb7e9f3441a89cfbca950a9
[]
no_license
Megil-Entertainment/Telia-Engine
817e432bedecff5602e71cc80ff0b29f0da037cc
29de992f03b8f8a9a176588f46c1c8835b36fc9f
refs/heads/master
2020-08-10T17:21:07.745043
2019-10-11T08:48:47
2019-10-11T08:48:47
214,384,361
0
0
null
null
null
null
UTF-8
Java
false
false
2,070
java
package ch.megil.teliaengine.vulkan.buffer; import static org.lwjgl.vulkan.VK10.VK_BUFFER_USAGE_INDEX_BUFFER_BIT; import static org.lwjgl.vulkan.VK10.VK_MEMORY_PROPERTY_HOST_COHERENT_BIT; import static org.lwjgl.vulkan.VK10.VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT; import ch.megil.teliaengine.vulkan.VulkanLogicalDevice; import ch.megil.teliaengine.vulkan.VulkanPhysicalDevice; import ch.megil.teliaengine.vulkan.exception.VulkanException; import ch.megil.teliaengine.vulkan.obj.VulkanObject; /** * This class needs setup first with {@link #init} and * needs to be cleaned up before destruction with {@link #cleanUp}. */ public class VulkanIndexBuffer extends VulkanBuffer { public static final int INDEX_SIZE = 2; private static final boolean BIND_MEMORY = true; private int maxIndicies; /** * @param physicalDevice An initialized {@link VulkanPhysicalDevice} * @param logicalDevice An initialized {@link VulkanLogicalDevice} * @param queueFamilyIndecies of the queues the buffer will be used on */ public void init(VulkanPhysicalDevice physicalDevice, VulkanLogicalDevice logicalDevice, int maxIndicies, int[] queueFamilyIndecies) throws VulkanException { super.init(physicalDevice, logicalDevice, INDEX_SIZE*maxIndicies, VK_BUFFER_USAGE_INDEX_BUFFER_BIT, queueFamilyIndecies, (VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT)); this.maxIndicies = maxIndicies; } public void writeIndicies(VulkanLogicalDevice logicalDevice, VulkanObject vulkanObject) throws VulkanException { super.write(logicalDevice, vulkanObject.getIndiciesAddress(), vulkanObject.getIndiciesSize(), BIND_MEMORY); } public void writeIndicies(VulkanLogicalDevice logicalDevice, VulkanObject vulkanObject, int indexOffset) throws VulkanException { super.write(logicalDevice, vulkanObject.getIndiciesAddress(), vulkanObject.getIndiciesSize(), INDEX_SIZE*indexOffset, BIND_MEMORY); } public void cleanUp(VulkanLogicalDevice logicalDevice) { super.cleanUp(logicalDevice); } public int getMaxIndicies() { return maxIndicies; } }
[ "samichr1@students.zhaw.ch" ]
samichr1@students.zhaw.ch
2bbfb3b66f7ec75e4d4178160897eeaaacca804b
f64a18517bd0b6879bc16706447ef211173088be
/src/main/java/ir/sharif/math/ap98/hearthstone/gui/panels/collections/SidePanel.java
20cd480682c369357b35ebd318b9f2a91a52aa24
[]
no_license
alireza-shirzad/Hearthstone
24adcc76fb5234f10c120e75e7bc1d4684f5a5e5
9b91428ee296e62059286cb652ec11678486e5fa
refs/heads/master
2022-12-08T00:49:22.625695
2020-06-12T10:41:47
2020-06-12T10:41:47
269,919,306
0
0
null
null
null
null
UTF-8
Java
false
false
911
java
package ir.sharif.math.ap98.hearthstone.gui.panels.collections; import ir.sharif.math.ap98.hearthstone.gui.GUIConstants; import ir.sharif.math.ap98.hearthstone.gui.panels.MyPanel; import javax.swing.*; import javax.swing.border.Border; import javax.swing.border.LineBorder; import javax.swing.border.TitledBorder; import java.awt.*; import static ir.sharif.math.ap98.hearthstone.gui.GUIConstants.COLOR3; public abstract class SidePanel extends MyPanel { public SidePanel(String name){ designBorder(name); this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); } public void designBorder(String name){ Border tmpBorder = new LineBorder(COLOR3,3); TitledBorder title = new TitledBorder(tmpBorder,name); title.setTitleFont(new Font(GUIConstants.HEADER1_FONT_NAME, Font.BOLD, 30)); title.setTitleColor(COLOR3); this.setBorder(title); } }
[ "alr.shirzad@gmail.com" ]
alr.shirzad@gmail.com
0e63e6582d6485d6954791b72edd7c209c98d9de
0af8b92686a58eb0b64e319b22411432aca7a8f3
/single-large-project/src/main/java/org/gradle/test/performancenull_354/Productionnull_35336.java
d66bd004779df495ddba09051fbee127d026bc3e
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
588
java
package org.gradle.test.performancenull_354; public class Productionnull_35336 { private final String property; public Productionnull_35336(String param) { this.property = param; } public String getProperty() { return property; } private String prop0; public String getProp0() { return prop0; } public void setProp0(String value) { prop0 = value; } private String prop1; public String getProp1() { return prop1; } public void setProp1(String value) { prop1 = value; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
4ed2b47ac54b0d980a1599177490fdf7eee99779
6b61af5e0fa1bc168582da43c0923607a13121bc
/java/src/Done/twostones.java
d763689bdd65548ad0b0d8fda1b2554d22edfcbd
[]
no_license
Archived47/Kattis
5e18a9b82cec869d9e536447f91ac5570a3c62f6
930e25d63571e604d3ee7bc2571f0dff025ac21a
refs/heads/master
2023-09-04T03:14:54.370057
2018-10-25T17:01:30
2018-10-25T17:01:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
432
java
package Done; import java.io.*; public class twostones { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out)); int stones = Integer.parseInt(in.readLine()); out.write(stones % 2 == 0 ? "Bob" : "Alice"); out.close(); } }
[ "lucasvdlaan@gmail.com" ]
lucasvdlaan@gmail.com
8c520e3ada1e96dbc9d900fe18accd9a098f53a8
211c25783829a91559ce6afc5b5aa26be86b24dd
/src/main/java/com/elvin/aaos/core/model/repository/RoomRepository.java
59460d9169bd827fa0e953f653a9b06681a77d71
[ "MIT" ]
permissive
elwyncrestha/AAOS
8148f99fdb3251d7819da0a78a38f12270c39bfa
119e057177e40d77eb84a10dc2bde5c700e4d02a
refs/heads/master
2022-12-21T09:06:13.176976
2022-01-08T04:43:53
2022-01-08T04:43:53
177,934,582
0
1
MIT
2022-12-16T15:30:35
2019-03-27T06:46:18
Java
UTF-8
Java
false
false
745
java
package com.elvin.aaos.core.model.repository; import com.elvin.aaos.core.model.entity.Room; import com.elvin.aaos.core.model.enums.RoomType; import com.elvin.aaos.core.model.enums.Status; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import java.util.List; public interface RoomRepository extends JpaRepository<Room, Long> { long countRoomsByRoomType(RoomType roomType); Room findRoomByName(String name); @Query("SELECT r FROM Room r where r.status!=?1") List<Room> findByStatusExcept(Status status); Room findRoomById(long id); @Query("select COUNT(r) from Room r where r.building.id=?1") long countRoomsByBuildingId(long buildingId); }
[ "elwyncrestha@gmail.com" ]
elwyncrestha@gmail.com
7570c58cd3f4e2fe5c9ef3f85c1c8d55d15b819d
78d1cc160181eee36e0fed53a1c27519e78f0747
/src/main/java/org/kavaproject/kavatouch/internal/SessionProvider.java
f8bbd87f688589979494cf3d0197b58c357e8035
[ "BSD-3-Clause", "MIT", "Apache-2.0", "BSD-2-Clause" ]
permissive
KavaProject/KavaTouch
ed3c30c1b3d8ce5d20d12e013c09d82302764c52
a5a815797c62694f0ad2e56334365548b7db1cc2
refs/heads/master
2021-01-25T08:36:59.365774
2014-03-29T11:20:20
2014-03-29T11:20:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
629
java
/* * Copyright 2013 The Kava Project Developers. See the COPYRIGHT file at the top-level directory of this distribution * and at http://kavaproject.org/COPYRIGHT. * * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the * MIT license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. This file may not be copied, * modified, or distributed except according to those terms. */ package org.kavaproject.kavatouch.internal; import org.kavaproject.kavatouch.uikit.Session; public class SessionProvider { public static Session session; }
[ "m6s@kavaproject.org" ]
m6s@kavaproject.org
b0bc78b5ff4335187f12f257405e713f6027602d
c36b3bacc4cf0d268d63d351b51a8a2517d571d1
/OM/src/com/rr/om/emea/exchange/ets/ETSSocketConfig.java
cd9be1d084ded82a86bfa52c6ecddd1438366f18
[]
no_license
renicl/alphaProject
e4ced0c8de85b933f8b3af1903577bd0143a9acf
1785ecc8c7d930fda2c60452504a141e417712b6
refs/heads/master
2021-05-15T09:02:55.542649
2017-12-03T16:32:05
2017-12-03T16:32:05
108,066,861
0
1
null
null
null
null
UTF-8
Java
false
false
4,617
java
/******************************************************************************* * Copyright (c) 2015 Low Latency Trading Limited : Author Richard Rose * 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.rr.om.emea.exchange.ets; import com.rr.core.lang.ViewString; import com.rr.core.lang.ZString; import com.rr.core.recycler.MessageRecycler; import com.rr.core.session.socket.SocketConfig; import com.rr.core.utils.SMTRuntimeException; import com.rr.model.generated.internal.events.factory.EventRecycler; public class ETSSocketConfig extends SocketConfig implements ETSConfig { private boolean _disconnectOnMissedHB = true; private int _heartBeatIntSecs = 60; private boolean _isRecoverFromLoginSeqNumTooLow = false; private ZString _userName = new ViewString( "" ); public ETSSocketConfig() { super( EventRecycler.class ); } public ETSSocketConfig( boolean disconnectOnMissedHB, Class<? extends MessageRecycler> recycler, boolean isServer, ZString host, ZString adapter, int port, ZString userName ) { super( recycler, isServer, host, adapter, port ); _disconnectOnMissedHB = disconnectOnMissedHB; _userName = userName; } public ETSSocketConfig( Class<? extends MessageRecycler> recycler, boolean isServer, ZString host, ZString adapter, int port, ZString userName ) { super( recycler, isServer, host, adapter, port ); _disconnectOnMissedHB = true; _userName = userName; } @Override public String info() { return super.info() + ", userName=" + _userName + ", recoverFromLowSeqNum=" + _isRecoverFromLoginSeqNumTooLow; } @Override public boolean isDisconnectOnMissedHB() { return _disconnectOnMissedHB; } @Override public int getHeartBeatIntSecs() { return _heartBeatIntSecs; } @Override public void setHeartBeatIntSecs( int heartBeatIntSecs ) { _heartBeatIntSecs = heartBeatIntSecs; } /** * if other side send an nextSeqNum less than expected in log on message then can optionally truncate down automatically * * THIS IS NOT USUALLY ADVISABLE WITH EXCHANGE BUT MAYBE SO FOR CLIENTS * * @return true if should truncate down expected seq num from other side */ @Override public boolean isRecoverFromLoginSeqNumTooLow() { return _isRecoverFromLoginSeqNumTooLow; } @Override public void setRecoverFromLoginSeqNumTooLow( boolean isRecoverFromLoginSeqNumTooLow ) { _isRecoverFromLoginSeqNumTooLow = isRecoverFromLoginSeqNumTooLow; } @Override public ZString getUserName() { return _userName; } public void setDisconnectOnMissedHB( boolean disconnectOnMissedHB ) { _disconnectOnMissedHB = disconnectOnMissedHB; } public void setUserName( ZString userName ) { _userName = userName; } @Override public void validate() throws SMTRuntimeException { super.validate(); if ( isUnset( _userName ) ) throw new SMTRuntimeException( "ETSSocketConfig missing userName" ); } private boolean isUnset( ZString val ) { return val == null || val.toString().length() == 0; } @Override public int getMaxSeqNum() { return 0; } }
[ "lucasrenick@lucass-mbp.fios-router.home" ]
lucasrenick@lucass-mbp.fios-router.home
afdd33b8de03509c76a8acdd0e177456065e8773
61fd833d2676ec21386f1b3b2634bbecfe574935
/ccl-codegen/src/main/java/com/ccl/rain/codegen/OverrideImpl.java
1187aa7342d5b91d710f78117d1380b4141d0017
[]
no_license
freedom541/raindrop
7bff92421642a9a33671f0c295a0bec669ac099e
1131a4ae0a845b67e3feccc6a227eb6594e02340
refs/heads/master
2021-07-11T01:37:48.579479
2017-09-30T02:44:47
2017-09-30T02:44:47
101,834,248
0
0
null
null
null
null
UTF-8
Java
false
false
274
java
package com.ccl.rain.codegen; import java.lang.annotation.Annotation; /** * @author ccl * @date 2017/8/27. */ public class OverrideImpl implements Override { @Override public Class<? extends Annotation> annotationType() { return Override.class; } }
[ "chencl@jiagouyun.com" ]
chencl@jiagouyun.com
a49501f5144f2d48873d6fbc8f064314d78aad2c
c8a7373650a0bf792c87ac9198389fa7985be752
/src/test/java/novi/spring/projectlocally/ProjectLocallyApplicationTests.java
60025b512633a3bceb9fb923c02270d9ae2a7c7e
[]
no_license
warnerverduijn/projectlocallyspringboot
ba25f9c9900b97fc84d9048ca0754078f06003ca
042414648648c40a6b6d578f4817568f9fbbb1ad
refs/heads/master
2022-12-22T16:07:34.605785
2020-09-21T07:52:44
2020-09-21T07:52:44
296,881,111
0
0
null
null
null
null
UTF-8
Java
false
false
226
java
package novi.spring.projectlocally; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class ProjectLocallyApplicationTests { @Test void contextLoads() { } }
[ "w.verduijn@novi-education.nl" ]
w.verduijn@novi-education.nl
069abbf51680542ce9bbd3b48d24122166813207
15b6090653b92034a5c03bbe6ae0ee8004f3a27c
/Module - 8/src/controller/WindowAFinalFormController.java
2b3b0d16a2ffb20f425248ebcb167950d9235b12
[]
no_license
YasiruLak/AllInOne
b1ccab7eac4abcfda8c5516a83e75a81be56c61a
c45eac48f1ff7de3e263929344438435402fd424
refs/heads/master
2023-06-06T10:04:27.219232
2021-06-26T18:13:21
2021-06-26T18:13:21
380,567,896
0
0
null
null
null
null
UTF-8
Java
false
false
552
java
package controller; import javafx.event.ActionEvent; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.AnchorPane; import javafx.stage.Stage; import java.io.IOException; public class WindowAFinalFormController { public AnchorPane windowAContext; public void backToHome(ActionEvent actionEvent) throws IOException { Stage window = (Stage) windowAContext.getScene().getWindow(); window.setScene(new Scene(FXMLLoader.load(getClass().getResource("../view/DashBoardFinalForm.fxml")))); } }
[ "yasirudahanayaka19@gmail.com" ]
yasirudahanayaka19@gmail.com
2a55f7c26f820640c9b9c82929c98092721a0a88
4c39fb566dda9f8ea5d5c9a56bdb0e689288b783
/src/main/java/com/hujiang/project/zhgd/sbGroupTitle/mapper/SbGroupTitleMapper.java
06c3047fbb66c53bb9c0dec2f29e1d12fc9d17bc
[ "MIT" ]
permissive
xieyagit/zhgd
5ed86dfb5a34705ba39cac774226d8c438f2dfb5
45ac870a62c7323a1bb40b99fb8f0c93e38aed0d
refs/heads/master
2021-04-23T19:40:18.508261
2020-05-21T09:20:44
2020-05-21T09:20:44
249,984,958
0
0
MIT
2020-03-25T13:24:35
2020-03-25T13:24:35
null
UTF-8
Java
false
false
1,327
java
package com.hujiang.project.zhgd.sbGroupTitle.mapper; import com.hujiang.project.zhgd.sbGroupTitle.domain.SbGroupTitle; import java.util.List; /** * 项目标题 数据层 * * @author hujiang * @date 2020-01-03 */ public interface SbGroupTitleMapper { /** * 查询项目标题信息 * * @param id 项目标题ID * @return 项目标题信息 */ public SbGroupTitle selectSbGroupTitleById(Integer id); /** * 查询项目标题列表 * * @param sbGroupTitle 项目标题信息 * @return 项目标题集合 */ public List<SbGroupTitle> selectSbGroupTitleList(SbGroupTitle sbGroupTitle); /** * 新增项目标题 * * @param sbGroupTitle 项目标题信息 * @return 结果 */ public int insertSbGroupTitle(SbGroupTitle sbGroupTitle); /** * 修改项目标题 * * @param sbGroupTitle 项目标题信息 * @return 结果 */ public int updateSbGroupTitle(SbGroupTitle sbGroupTitle); /** * 删除项目标题 * * @param id 项目标题ID * @return 结果 */ public int deleteSbGroupTitleById(Integer id); /** * 批量删除项目标题 * * @param ids 需要删除的数据ID * @return 结果 */ public int deleteSbGroupTitleByIds(String[] ids); }
[ "mrchencq@163.com" ]
mrchencq@163.com
b2248f2cd15a58a8534a7bca3da7d9aba295882a
e32479a53c8ade548fd7e100e6dd4ceba9f92f8e
/experiments/subjects/math_60/fuzzing/src/test/org/apache/commons/math/random/RandomVectorGenerator.java
ea65860326b95c11484ec80390670e247522dd01
[ "MIT" ]
permissive
yannicnoller/hydiff
5d4981006523c6a7ce6afcc0f44017799359c65c
4df7df1d2f00bf28d6fb2e2ed7a14103084c39f3
refs/heads/master
2021-08-28T03:42:09.297288
2021-08-09T07:02:18
2021-08-09T07:02:18
207,993,923
24
4
null
null
null
null
UTF-8
Java
false
false
1,142
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 test.org.apache.commons.math.random; /** This interface represents a random generator for whole vectors. * * @since 1.2 * @version $Revision$ $Date$ * */ public interface RandomVectorGenerator { /** Generate a random vector. * @return a random vector as an array of double. */ double[] nextVector(); }
[ "nolleryc@gmail.com" ]
nolleryc@gmail.com
3e95b34015d99d067fbd17b679b73e0e024c2bdf
42709be4bd8f01618b69b4aa995193c13214ca2c
/src/main/java/pl/agh/jtp/lab03_home/visitor/Visitable.java
58a29bfe085c95d0e9e5f92970165ff1a16a9778
[]
no_license
raduy/JTPII
74dd0fdfd6bd38feea65b93520d8805e1c5902e3
562cd53eb1b4b79d7e461e14141f73e59ff649e3
refs/heads/master
2016-09-05T22:40:34.444488
2013-09-02T16:10:35
2013-09-02T16:10:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
207
java
package pl.agh.jtp.lab03_home.visitor; /** * @author Lukasz Raduj <raduj.lukasz@gmail.com> */ public interface Visitable { /** * * @param visitor */ void accept(Visitor visitor); }
[ "raduj.lukasz@gmail.com" ]
raduj.lukasz@gmail.com
c7e78961168ec222b2fade6ca84771113372b274
58a204ee78a71d39cc19d5032ef69a72ebadad59
/src/main/java/me/aboullaite/nlpmessengerbot/NlpMessengerBotApplication.java
1efe1805bc41cd0f6155d18b07162dccb81bf5c1
[]
no_license
aboullaite/Messenger-Bot-NLP
1a5fb6cbc380a8aec1704e063ba5a58c4257142e
b41fe905fa6853d8e7243d3f566e3cabfb8add4c
refs/heads/master
2021-01-16T18:10:43.712602
2017-08-11T17:07:06
2017-08-11T17:07:06
100,046,293
2
0
null
null
null
null
UTF-8
Java
false
false
339
java
package me.aboullaite.nlpmessengerbot; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class NlpMessengerBotApplication { public static void main(String[] args) { SpringApplication.run(NlpMessengerBotApplication.class, args); } }
[ "aboullaite.mohammed@gmail.com" ]
aboullaite.mohammed@gmail.com
b25ceaef733b20f17bca046a5ee3898cc2a322dd
7e0cd497666845df975a11aac489165389038a0f
/src/main/java/com/emp/portal/assignment/controller/EmployeeAccountController.java
109b2641787ea2523faa5156db60d09ebf41c9c0
[]
no_license
ajaychauhan22/EmployeePortal
bf972a3832347fc9f018915e145b20fc16f3d31c
313fd4187dc1406d8e69ec43c5671edabab2c4dd
refs/heads/master
2022-11-13T05:00:44.831069
2020-07-12T12:51:17
2020-07-12T12:51:17
276,312,483
0
0
null
null
null
null
UTF-8
Java
false
false
4,167
java
package com.emp.portal.assignment.controller; import java.util.Objects; import java.util.stream.Collectors; import javax.validation.Valid; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.support.DefaultMessageSourceResolvable; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.validation.Errors; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.emp.portal.assignment.config.util.Constants; import com.emp.portal.assignment.entity.Employee; import com.emp.portal.assignment.model.RestResponse; import com.emp.portal.assignment.service.EmployeeAccountService; /** * * @author ajaychauhan01 * */ @RestController @RequestMapping("/employee") public class EmployeeAccountController { private static final Logger log = LogManager.getLogger(EmployeeAccountController.class); @Autowired private EmployeeAccountService employeeAccountService; @PostMapping("/login") public ResponseEntity<RestResponse<String>> login(@Valid @RequestBody Employee employee, Errors errors) { log.info("Checking whether employee exists or not"); try { if (errors.hasErrors()) { log.info("Required parameters are missing for logining employee"); return new ResponseEntity<>( new RestResponse<String>(null, HttpStatus.BAD_REQUEST.toString(), errors.getAllErrors().stream().map(DefaultMessageSourceResolvable::getDefaultMessage) .collect(Collectors.joining(Constants.VALIDATION_ERROR_SEPARATOR))), HttpStatus.BAD_REQUEST); } Employee existingEmployee = employeeAccountService.checkForAlreadyExistsEmployee(employee.getEmail()); if (Objects.nonNull(existingEmployee) && existingEmployee.getPassword().equals(employee.getPassword())) { return new ResponseEntity<>(new RestResponse<String>(Constants.EMPLOYEE_LOGIN_SUCCESS, HttpStatus.OK.toString(), Constants.REQUEST_COMPLETED), HttpStatus.OK); } else { return new ResponseEntity<>(new RestResponse<String>(Constants.EMPLOYEE_LOGIN_FAIL, HttpStatus.BAD_REQUEST.toString(), Constants.REQUEST_FAIL), HttpStatus.BAD_REQUEST); } } catch (Exception e) { log.error("Exception in loging employee", e); return new ResponseEntity<>(new RestResponse<String>(null, HttpStatus.INTERNAL_SERVER_ERROR.toString(), Constants.ADMIN_CONTACT_MESSAGE), HttpStatus.INTERNAL_SERVER_ERROR); } } @PostMapping("/signup") public ResponseEntity<RestResponse<String>> singUp(@Valid @RequestBody Employee employee, Errors errors) { log.info("Registering new Employee"); try { if (errors.hasErrors()) { log.info("Required parameters are missing for registering employee"); return new ResponseEntity<>( new RestResponse<String>(null, HttpStatus.BAD_REQUEST.toString(), errors.getAllErrors().stream().map(DefaultMessageSourceResolvable::getDefaultMessage) .collect(Collectors.joining(Constants.VALIDATION_ERROR_SEPARATOR))), HttpStatus.BAD_REQUEST); } Employee existingEmployee = employeeAccountService.checkForAlreadyExistsEmployee(employee.getEmail()); if (Objects.nonNull(existingEmployee)) { return new ResponseEntity<>(new RestResponse<String>(Constants.EMPLOYEE_REGISTER_FAIL, HttpStatus.BAD_REQUEST.toString(), Constants.REQUEST_FAIL), HttpStatus.BAD_REQUEST); } else { employeeAccountService.addEmployee(employee); return new ResponseEntity<>(new RestResponse<String>(Constants.EMPLOYEE_REGISTER_SUCCESS, HttpStatus.CREATED.toString(), Constants.REQUEST_COMPLETED), HttpStatus.CREATED); } } catch (Exception e) { log.error("Exception in creating employee", e); return new ResponseEntity<>(new RestResponse<String>(null, HttpStatus.INTERNAL_SERVER_ERROR.toString(), Constants.ADMIN_CONTACT_MESSAGE), HttpStatus.INTERNAL_SERVER_ERROR); } } }
[ "ajaychauhan01@ajaychauhan01.mshome.net" ]
ajaychauhan01@ajaychauhan01.mshome.net
a7ef9ebdf1bf01cf182b6629217b4b4c589708cc
6f2bcbec15d6e1dbd0ca9ca2b09984bf2ea016ae
/src/GamesFX/gui/controller/NonogramController.java
3ece946ce421d1bbb9bc359e96663604bf85d9c5
[]
no_license
evayann/GamesFX
1fb1ce72d3146f0c024b884890b1c9a20c17ad23
26f9aa8a1106929498c75f3e51df7c48735892b5
refs/heads/master
2022-11-24T10:46:42.819123
2020-07-24T19:45:56
2020-07-24T19:45:56
282,301,198
0
0
null
null
null
null
UTF-8
Java
false
false
4,772
java
/** * Project, GamesFX * @version 0.2020 * @author Yann Zavattero * http://yann.fzcommunication.fr/index.php/ */ package GamesFX.gui.controller; // region Imports import GamesFX.games.Case; import GamesFX.games.Nonogram; import GamesFX.games.Parameters; import GamesFX.gui.UIManager; import GamesFX.gui.utility.UtilityFX; import GamesFX.user.User; import javafx.fxml.FXML; import javafx.geometry.Pos; import javafx.scene.Node; import javafx.scene.control.Alert; import javafx.scene.control.Label; import javafx.scene.input.MouseButton; import javafx.scene.layout.GridPane; import java.util.ArrayList; import java.util.List; // endregion Imports enum NonoState { Colored("colored"), Cross("cross"), Nothings(""); private String m_state; NonoState(String _state) { m_state = _state; } @Override public String toString() { return m_state; } } public class NonogramController implements Controller { // region Attributes @FXML private GridPane m_games; private Nonogram m_nono; private List<Case> m_colored; private UIManager m_uim; private Parameters m_parameters; // endregion Attributes // region Methods @FXML void initialize() { m_uim = UIManager.getInstance(); m_colored = new ArrayList<>(); reset(); } @FXML void reset() { m_colored.clear(); m_games.getChildren().clear(); User u = m_uim.getCurrentUser(); if (u != null) { m_parameters = u.getParameters(); m_nono = new Nonogram(m_parameters.getNonogramWidth(), m_parameters.getNonogramHeight()); draw(); } } private void draw() { int width = m_parameters.getNonogramWidth(); int height = m_parameters.getNonogramHeight(); UtilityFX.computeGrid(m_games, width + 1, height + 1); // Label for indication makeLabelIndices(); // Button to play for (int x = 0; x < width; x++) { for (int y = 0; y < height; y++) { Case c = new Case(x, y, NonoState.Nothings); c.setOnMouseClicked(event -> { if (event.getButton() == MouseButton.PRIMARY) colorButton(c); else if (event.getButton() == MouseButton.SECONDARY) updateCross(c); }); m_games.add(c, x + 1, y + 1); } } } private void makeLabelIndices() { int i = 0; for (String str : m_nono.getColsIndices()) { m_games.add(createLabel(str.equals("") ? "0" : str), i + 1, 0); i++; } i = 0; for (String str : m_nono.getRowsIndices()) { m_games.add(createLabel(str.equals("") ? "0" : str), 0, i + 1); i++; } } private Label createLabel(String _str) { Label l = new Label(_str); l.getStyleClass().add("case"); l.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE); l.setAlignment(Pos.CENTER); return l; } void updateCross(Case _case) { NonoState state = (NonoState) _case.getData(); if (state == NonoState.Nothings) _case.setData(NonoState.Cross); else if (state == NonoState.Cross) _case.setData(NonoState.Nothings); _case.setCaseStyle(_case.getData().toString()); } void gameOver() { for (Node n : m_games.getChildren()) { n.setDisable(true); n.setOpacity(1); } Alert alert = new Alert(Alert.AlertType.INFORMATION); String text = "Win"; alert.setTitle(text); alert.setHeaderText(text); alert.getDialogPane().getStylesheets().clear(); alert.getDialogPane().getStylesheets().add(UIManager.CSS); alert.show(); } void colorButton(Case _case) { NonoState state = (NonoState) _case.getData(); if (state == NonoState.Colored) { _case.setData(NonoState.Nothings); _case.setCaseStyle(NonoState.Nothings.toString()); for (Case f : m_colored) { if (f.equals(_case)) { m_colored.remove(f); return; } } } else if (state == NonoState.Nothings) { m_colored.add(_case); // Add new colored tile _case.setData(NonoState.Colored); _case.setCaseStyle(NonoState.Colored.toString()); if (m_nono.isDiscover(m_colored)) gameOver(); } } // region Override @Override public void load() { reset(); } // endregion Override // endregion Methods }
[ "yann.zavattero@hotmail.com" ]
yann.zavattero@hotmail.com
ea74eba59349f84d37fef0e84597da16ff5f8de0
c769f4f9bad0c641a5d398a9076e17aa9c8cff18
/Workshops/app/src/test/java/android/bignerdranch/com/ExampleUnitTest.java
7db44de620b7229d204ab6ff26a1e2f091c00c10
[]
no_license
usc-aja028/MobileAppDev.Weekly_Tasks
c5939e602af5010e652e7013d24e904c343089e6
288c9ec5a2c068ecf2630823e5f713951a362a74
refs/heads/master
2020-06-30T23:37:26.884483
2019-08-07T06:12:44
2019-08-07T06:12:44
200,984,106
0
0
null
null
null
null
UTF-8
Java
false
false
401
java
package android.bignerdranch.com; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() { assertEquals(4, 2 + 2); } }
[ "noreply@github.com" ]
usc-aja028.noreply@github.com
09519d88a0e0117f706068ea7ebd58177263d342
1601d57919aa4e30d67473c16e5bffcdfb5b4c9d
/app/src/main/java/com/example/giada/colonnine_elettriche/riga_colonnina.java
8576f30c50edf8a3d87c261744bd7676b3fca7f4
[]
no_license
Giada95/Colonnine_elettriche
70f7368e3c2ea9ef29df43766c943ffcf0bd31f6
cd850e0fb1356150b1c6c8c53a7b50f3a1ddc0ec
refs/heads/master
2020-03-14T10:50:42.861932
2018-05-09T07:34:42
2018-05-09T07:34:42
131,577,417
0
0
null
null
null
null
UTF-8
Java
false
false
1,029
java
package com.example.giada.colonnine_elettriche; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; public class riga_colonnina extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_riga_colonnina); // Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); // setSupportActionBar(toolbar); FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) .setAction("Action", null).show(); } }); } }
[ "giada.mastropietro@studenti.unicampania.it" ]
giada.mastropietro@studenti.unicampania.it
502b66076d1bdaa9ee98f0be31fda9803abe45a0
f124c006c0ecb10182d82fab23a930eb0b295936
/src/main/java/zw/co/afrosoft/controller/ProductController.java
01bec8c85a408b74147439abc8060d4636cb8ff0
[]
no_license
tyfahpundo/ControllerAdvice
ee658bb0d43f4279041a3efae68bfb51b54e8824
1dbb659de804ae208b70fe973dd2895e28681368
refs/heads/main
2023-06-29T09:56:49.437058
2021-08-03T11:28:00
2021-08-03T11:28:00
392,258,688
0
0
null
null
null
null
UTF-8
Java
false
false
733
java
package zw.co.afrosoft.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RestController; import zw.co.afrosoft.model.Product; import zw.co.afrosoft.service.ProductService; import java.util.List; @RestController public class ProductController { @Autowired ProductService service; @GetMapping("/products") public List<Product> getAllProducts(){ return service.getProducts(); } @GetMapping("/products/{id}") public Product getProduct(@PathVariable long id){ return service.getProduct(id); } }
[ "tafadzwaallentyfah@gmail.com" ]
tafadzwaallentyfah@gmail.com
3a6b308d9fb7d789b6559bc9d8dc45fb3b482215
bd3abeb2599d7fe7bfe91bba5e8d5db46334f15b
/app/src/main/java/com/example/paintingsonline/Utils/SectionPagerAdapter.java
302b5a8632194ae19fb4ae7a7437e6a875d72bd6
[]
no_license
khaled2095/PaintingsOnline
f06c4548ec080375976e8c6ad898641f1030b259
fe52c12dde5266b353a4344faaa896b0ef65db3e
refs/heads/master
2020-05-17T19:56:39.764374
2019-04-28T16:19:20
2019-04-28T16:19:20
182,610,149
0
0
null
null
null
null
UTF-8
Java
false
false
82
java
package com.example.paintingsonline.Utils; public class SectionPagerAdapter { }
[ "100082095@students.swinburne.edu.my" ]
100082095@students.swinburne.edu.my
c7ae70864ffbadfdfd8e46d7cf30407b598a29f0
d3e0dee6d98d2973902104c60967cc95db8dc1d7
/app/src/main/java/com/example/navendu/rbstrack/model/posts.java
69f3ee6e15932dc8bdfa2ca6048e0da244733230
[]
no_license
navendu29/RBSTrack
c1eeb13047d240569c10e50d3b6640d531e53047
df4d7b95b2d062944757087c4fe8875dd4fe237b
refs/heads/master
2022-01-18T05:32:52.386124
2019-07-22T16:18:51
2019-07-22T16:18:51
198,261,808
0
0
null
null
null
null
UTF-8
Java
false
false
1,022
java
package com.example.navendu.rbstrack.model; /** * Created by navendu on 28/6/18. */ public class posts { int userId; int id; String title; String email; public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } String body; public posts() {} public posts(int i1,int i2,String s1,String s2){ this.userId=i1; this.id=i2; this.body=s2; this.title=s1; } public int getUserId() { return userId; } public void setUserId(int userId) { this.userId = userId; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getBody() { return body; } public void setBody(String body) { this.body = body; } }
[ "navendugupta29@gmail.com" ]
navendugupta29@gmail.com
d21cdd44aab214fc956601ec6293177ecf57eeaa
d18689294d367fa3424ab8ae4b0eaf57d6dd50bb
/app/src/main/java/com/example/proloy/office_management/Activity/Fragment/StaffsFragment.java
8e501da0ed1ca21aa7ff3dcd0f9484752082f305
[]
no_license
ProloySimulation/Office_Management_User
5ddc61d3e063f3c074237a771173f1809029461d
b0a987bb30fdda33df6a3dab3f6e2526dffe48e9
refs/heads/master
2020-06-24T11:52:47.724933
2019-07-26T05:49:38
2019-07-26T05:49:40
198,953,646
0
0
null
null
null
null
UTF-8
Java
false
false
197
java
package com.example.proloy.office_management.Activity.Fragment; import android.support.v4.app.Fragment; /** * Created by Proloy on 5/7/2017. */ public class StaffsFragment extends Fragment { }
[ "git config --global user.email xtrmproloy875@gmail.com" ]
git config --global user.email xtrmproloy875@gmail.com
aadbd0cc69459fbeaa08f395901201dc010fef90
a89a66470833fdd0b9037f616413e2f626e4ef30
/src/Main/Main.java
ef14e9ee981e1557debbfb98ba929f34844859fb
[]
no_license
PabloDavidCruzCruz/-front-end_Recu1_201222
1009de1845e47e6f2a6e28d2a360b141878089e9
4030d49d74e5fd8c8f9966363db22e5482b72220
refs/heads/master
2023-06-29T06:55:47.117466
2021-07-26T20:57:14
2021-07-26T20:57:14
389,756,939
0
0
null
null
null
null
UTF-8
Java
false
false
563
java
package Main; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; public class Main extends Application { @Override public void start(Stage primaryStage) throws Exception{ Parent root = FXMLLoader.load(getClass().getResource("sample.fxml")); primaryStage.setTitle("CLIENTE"); primaryStage.setScene(new Scene(root)); primaryStage.show(); } public static void main(String[] args) { launch(args); } }
[ "201222@ids.upchiapas.edu.mx" ]
201222@ids.upchiapas.edu.mx
65390356d31b14249f61f0c620980276eeb231b3
6c778e6fa7183bb563ae7149e63e32d2831c4fa0
/FlipView/src/android/widget/FlipView.java
6b965c29838aa90038242db0a5aafcc829e97cf4
[]
no_license
amoikevin/android-libs
0350a75a435483e0bba22e685d402129e3b17fd6
d7c6990094de7b3feb36b67c093f151d7d51f0d5
refs/heads/master
2016-09-06T09:46:16.657268
2015-07-08T11:19:11
2015-07-08T11:19:11
38,736,350
0
0
null
null
null
null
UTF-8
Java
false
false
17,374
java
/* Copyright 2012 Aphid Mobile 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 android.widget; import android.content.Context; import android.content.res.Configuration; import android.content.res.TypedArray; import android.database.DataSetObserver; import android.graphics.Bitmap; import android.graphics.PixelFormat; import android.opengl.GLSurfaceView; import android.os.Handler; import android.os.Message; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.view.ViewDebug; import android.view.ViewGroup; import android.widget.AbsListView; import android.widget.Adapter; import android.widget.AdapterView; import android.widget.flipview.R; import android.widget.utils.AphidLog; import junit.framework.Assert; import java.util.LinkedList; public class FlipView extends AdapterView<Adapter> { public static final int VERTICAL = 0; public static final int HORIZONTAL = 1; public static interface ViewFlipListener { void onViewFlipped(View view, int position); } private static final int MAX_RELEASED_VIEW_SIZE = 1; static final int MSG_SURFACE_CREATED = 1; private Handler handler = new Handler(new Handler.Callback() { @Override public boolean handleMessage(Message msg) { if (msg.what == MSG_SURFACE_CREATED) { contentWidth = 0; contentHeight = 0; requestLayout(); return true; } else { AphidLog.w("Unknown msg.what: " + msg.what); } return false; } }); private GLSurfaceView surfaceView; private FlipRenderer renderer; private FlipCards cards; private int contentWidth; private int contentHeight; @ViewDebug.ExportedProperty private int flipOrientation; private volatile boolean inFlipAnimation = false; //AdapterView Related private Adapter adapter; private int adapterDataCount = 0; private DataSetObserver adapterDataObserver; private final LinkedList<View> bufferedViews = new LinkedList<View>(); private final LinkedList<View> releasedViews = new LinkedList<View>(); //XXX: use a SparseArray to keep the related view indices? private int bufferIndex = -1; private int adapterIndex = -1; private final int sideBufferSize = 1; private float touchSlop; private ViewFlipListener onViewFlipListener; private boolean overFlipEnabled = true; private boolean flipByTouchEnabled = true; @ViewDebug.ExportedProperty private Bitmap.Config animationBitmapFormat = Bitmap.Config.ARGB_8888; public FlipView(Context context) { this(context, VERTICAL); } public FlipView(Context context, int flipOrientation) { super(context); init(context, flipOrientation); } /** * Constructor required for XML inflation. */ public FlipView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); int orientation = VERTICAL; TypedArray a = context.getTheme().obtainStyledAttributes(attrs, R.styleable.FlipView, 0, 0); try { int value = a.getInteger(R.styleable.FlipView_orientation, VERTICAL); if (value == HORIZONTAL) { orientation = HORIZONTAL; } value = a.getInteger(R.styleable.FlipView_animationBitmapFormat, 0); if (value == 1) { setAnimationBitmapFormat(Bitmap.Config.ARGB_4444); } else if (value == 2) { setAnimationBitmapFormat(Bitmap.Config.RGB_565); } else { setAnimationBitmapFormat(Bitmap.Config.ARGB_8888); } } finally { a.recycle(); } init(context, orientation); } /** * Constructor required for XML inflation. */ public FlipView(Context context, AttributeSet attrs) { this(context, attrs, 0); } private void init(Context context, int orientation) { ViewConfiguration configuration = ViewConfiguration.get(getContext()); touchSlop = configuration.getScaledTouchSlop(); this.flipOrientation = orientation; setupSurfaceView(context); } public Bitmap.Config getAnimationBitmapFormat() { return animationBitmapFormat; } /** * Set the bitmap config for the animation, default is ARGB_8888, which provides the best quality * with large peak memory consumption. * * @param animationBitmapFormat ALPHA_8 is not supported and will throw exception when binding * textures */ public void setAnimationBitmapFormat(Bitmap.Config animationBitmapFormat) { this.animationBitmapFormat = animationBitmapFormat; } public ViewFlipListener getOnViewFlipListener() { return onViewFlipListener; } public void setOnViewFlipListener(ViewFlipListener onViewFlipListener) { this.onViewFlipListener = onViewFlipListener; } public void onResume() { surfaceView.onResume(); } public void onPause() { surfaceView.onPause(); } /** * Request the animator to update display if the pageView has been preloaded. <p/> If the pageView * is being used in the animation or its content has been buffered, the animator forcibly reloads * it. <p/> The reloading process is a bit heavy for an active page, so please don't invoke it too * frequently for an active page. The cost is trivial for inactive pages. */ public void refreshPage(View pageView) { if (cards.refreshPageView(pageView)) { requestLayout(); } } /** * @see #refreshPage(android.view.View) */ public void refreshPage(int pageIndex) { if (cards.refreshPage(pageIndex)) { requestLayout(); } } /** * Force the animator reload all preloaded pages */ public void refreshAllPages() { cards.refreshAllPages(); requestLayout(); } public boolean isOverFlipEnabled() { return overFlipEnabled; } public void setOverFlipEnabled(boolean overFlipEnabled) { this.overFlipEnabled = overFlipEnabled; } public boolean isFlipByTouchEnabled() { return flipByTouchEnabled; } public void setFlipByTouchEnabled(boolean flipByTouchEnabled) { this.flipByTouchEnabled = flipByTouchEnabled; } //-------------------------------------------------------------------------------------------------------------------- // Touch Event @Override public boolean onInterceptTouchEvent(MotionEvent event) { if (flipByTouchEnabled) { return cards.handleTouchEvent(event, false); } else { return false; } } @Override public boolean onTouchEvent(MotionEvent event) { if (flipByTouchEnabled) { return cards.handleTouchEvent(event, true); } else { return false; } } //-------------------------------------------------------------------------------------------------------------------- // Orientation @Override protected void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); //XXX: adds a global layout listener? } //-------------------------------------------------------------------------------------------------------------------- // AdapterView<Adapter> @Override public Adapter getAdapter() { return adapter; } @Override public void setAdapter(Adapter adapter) { setAdapter(adapter, 0); } public void setAdapter(Adapter adapter, int initialPosition) { if (this.adapter != null) { this.adapter.unregisterDataSetObserver(adapterDataObserver); } Assert.assertNotNull("adapter should not be null", adapter); this.adapter = adapter; adapterDataCount = adapter.getCount(); adapterDataObserver = new MyDataSetObserver(); this.adapter.registerDataSetObserver(adapterDataObserver); if (adapterDataCount > 0) { setSelection(initialPosition); } } @Override public View getSelectedView() { return (bufferIndex < bufferedViews.size() && bufferIndex >= 0) ? bufferedViews.get(bufferIndex) : null; } @Override public void setSelection(int position) { if (adapter == null) { return; } Assert.assertTrue("Invalid selection position", position >= 0 && position < adapterDataCount); releaseViews(); View selectedView = viewFromAdapter(position, true); bufferedViews.add(selectedView); for (int i = 1; i <= sideBufferSize; i++) { int previous = position - i; int next = position + i; if (previous >= 0) { bufferedViews.addFirst(viewFromAdapter(previous, false)); } if (next < adapterDataCount) { bufferedViews.addLast(viewFromAdapter(next, true)); } } bufferIndex = bufferedViews.indexOf(selectedView); adapterIndex = position; requestLayout(); updateVisibleView(inFlipAnimation ? -1 : bufferIndex); cards.resetSelection(position, adapterDataCount); } @Override public int getSelectedItemPosition() { return adapterIndex; } //-------------------------------------------------------------------------------------------------------------------- // Layout @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { if (AphidLog.ENABLE_DEBUG) { AphidLog.d("onLayout: %d, %d, %d, %d; child %d", l, t, r, b, bufferedViews.size()); } for (View child : bufferedViews) { child.layout(0, 0, r - l, b - t); } if (changed || contentWidth == 0) { int w = r - l; int h = b - t; surfaceView.layout(0, 0, w, h); if (contentWidth != w || contentHeight != h) { contentWidth = w; contentHeight = h; } } if (bufferedViews.size() >= 1) { View frontView = bufferedViews.get(bufferIndex); View backView = null; if (bufferIndex < bufferedViews.size() - 1) { backView = bufferedViews.get(bufferIndex + 1); } renderer.updateTexture(adapterIndex, frontView, backView == null ? -1 : adapterIndex + 1, backView); } } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); for (View child : bufferedViews) { child.measure(widthMeasureSpec, heightMeasureSpec); } surfaceView.measure(widthMeasureSpec, heightMeasureSpec); } //-------------------------------------------------------------------------------------------------------------------- //internal exposed properties & methods float getTouchSlop() { return touchSlop; } GLSurfaceView getSurfaceView() { return surfaceView; } FlipRenderer getRenderer() { return renderer; } int getContentWidth() { return contentWidth; } int getContentHeight() { return contentHeight; } void sendMessage(int message) { handler.sendMessage(Message.obtain(handler, message)); } //-------------------------------------------------------------------------------------------------------------------- // Internals private void setupSurfaceView(Context context) { surfaceView = new GLSurfaceView(getContext()); cards = new FlipCards(this, flipOrientation == VERTICAL); renderer = new FlipRenderer(this, cards); surfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0); surfaceView.setZOrderOnTop(true); surfaceView.setRenderer(renderer); surfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT); surfaceView.setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY); addViewInLayout(surfaceView, -1, new AbsListView.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT), false); } private void releaseViews() { for (View view : bufferedViews) { releaseView(view); } bufferedViews.clear(); bufferIndex = -1; adapterIndex = -1; } private void releaseView(View view) { Assert.assertNotNull(view); detachViewFromParent(view); addReleasedView(view); } private void addReleasedView(View view) { Assert.assertNotNull(view); if (releasedViews.size() < MAX_RELEASED_VIEW_SIZE) { releasedViews.add(view); } } private View viewFromAdapter(int position, boolean addToTop) { Assert.assertNotNull(adapter); View releasedView = releasedViews.isEmpty() ? null : releasedViews.removeFirst(); View view = adapter.getView(position, releasedView, this); if (releasedView != null && view != releasedView) { addReleasedView(releasedView); } setupAdapterView(view, addToTop, view == releasedView); return view; } private void setupAdapterView(View view, boolean addToTop, boolean isReusedView) { LayoutParams params = view.getLayoutParams(); if (params == null) { params = new AbsListView.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT, 0); } if (isReusedView) { attachViewToParent(view, addToTop ? 0 : 1, params); } else { addViewInLayout(view, addToTop ? 0 : 1, params, true); } } private void updateVisibleView(int index) { for (int i = 0; i < bufferedViews.size(); i++) { bufferedViews.get(i).setVisibility(index == i ? VISIBLE : GONE); } } private void debugBufferedViews() { if (AphidLog.ENABLE_DEBUG) { AphidLog.d("bufferedViews: %s; buffer index %d, adapter index %d", bufferedViews, bufferIndex, adapterIndex); } } void postFlippedToView(final int indexInAdapter) { handler.post(new Runnable() { @Override public void run() { flippedToView(indexInAdapter, true); } }); } void flippedToView(final int indexInAdapter, boolean isPost) { if (AphidLog.ENABLE_DEBUG) { AphidLog.d("flippedToView: %d, isPost %s", indexInAdapter, isPost); } debugBufferedViews(); if (indexInAdapter >= 0 && indexInAdapter < adapterDataCount) { if (indexInAdapter == adapterIndex + 1) { //forward one page if (adapterIndex < adapterDataCount - 1) { adapterIndex++; View old = bufferedViews.get(bufferIndex); if (bufferIndex + 1 > sideBufferSize) { releaseView(bufferedViews.removeFirst()); } if (adapterIndex + sideBufferSize < adapterDataCount) { bufferedViews.addLast(viewFromAdapter(adapterIndex + sideBufferSize, true)); } bufferIndex = bufferedViews.indexOf(old) + 1; requestLayout(); updateVisibleView(bufferIndex); } } else if (indexInAdapter == adapterIndex - 1) { if (adapterIndex > 0) { adapterIndex--; View old = bufferedViews.get(bufferIndex); if (bufferIndex - 1 + sideBufferSize < bufferedViews.size() - 1) { releaseView(bufferedViews.removeLast()); } if (adapterIndex - sideBufferSize >= 0) { bufferedViews.addFirst(viewFromAdapter(adapterIndex - sideBufferSize, false)); } bufferIndex = bufferedViews.indexOf(old) - 1; requestLayout(); updateVisibleView(bufferIndex); } } else { AphidLog.e("Should not happen: indexInAdapter %d, adapterIndex %d", indexInAdapter, adapterIndex); } } else { Assert.fail("Invalid indexInAdapter: " + indexInAdapter); } //debugBufferedViews(); } void showFlipAnimation() { if (!inFlipAnimation) { inFlipAnimation = true; cards.setVisible(true); cards.setFirstDrawFinished(false); surfaceView.requestRender(); } } void postHideFlipAnimation() { if (inFlipAnimation) { handler.post(new Runnable() { @Override public void run() { hideFlipAnimation(); } }); } } private void hideFlipAnimation() { if (inFlipAnimation) { inFlipAnimation = false; updateVisibleView(bufferIndex); if (onViewFlipListener != null) { onViewFlipListener.onViewFlipped(bufferedViews.get(bufferIndex), adapterIndex); } handler.post(new Runnable() { public void run() { if (!inFlipAnimation) { cards.setVisible(false); surfaceView.requestRender(); //ask OpenGL to clear its display } } }); } } private void onDataChanged() { adapterDataCount = adapter.getCount(); int activeIndex; if (adapterIndex < 0) { activeIndex = 0; } else { activeIndex = Math.min(adapterIndex, adapterDataCount - 1); } releaseViews(); setSelection(activeIndex); } private class MyDataSetObserver extends DataSetObserver { @Override public void onChanged() { onDataChanged(); } @Override public void onInvalidated() { onDataChanged(); } } }
[ "1033304289@qq.com" ]
1033304289@qq.com
5eac84f7f75febaa9c0a171028c8907914ff6cda
42fffdc9c62efd9f4d93cc3c9600f6002135b644
/src/main/java/cn/aposoft/tutorial/net/ssl/clientauth/SimpleSslServer.java
c5419f8cdd62f4847e54e826a4a933dfab52020e
[ "Apache-2.0" ]
permissive
pipi668/java-tutorials
a30074136b5d6268d692ec774a661b3bfe30aff7
a735ec58402806e80fcc86d7edb33eacbac78372
refs/heads/master
2022-12-10T18:41:32.124890
2021-05-24T01:08:59
2021-05-24T01:08:59
86,699,154
0
0
Apache-2.0
2022-11-16T06:22:09
2017-03-30T12:18:48
Java
UTF-8
Java
false
false
3,973
java
/** * Copyright : www.aposoft.cn */ package cn.aposoft.tutorial.net.ssl.clientauth; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.net.InetAddress; import java.nio.charset.StandardCharsets; import javax.net.ssl.SSLParameters; import javax.net.ssl.SSLServerSocket; import javax.net.ssl.SSLServerSocketFactory; import javax.net.ssl.SSLSocket; /** * 双向认证服务 SSL Socket Demo * * @author LiuJian * @date 2017年4月10日 * */ public class SimpleSslServer { /** * * @param args */ public static void main(String[] args) throws Exception { // System.setProperty("javax.net.debug", "all,ssl,handshake"); System.setProperty("javax.net.debug", "ssl,handshake"); System.setProperty("javax.net.ssl.keyStore", "F:/key/aposoft.cn.jks"); System.setProperty("javax.net.ssl.keyStorePassword", "changeit"); System.setProperty("javax.net.ssl.trustStore", "F:/key/aposoft.cn.jks"); System.setProperty("javax.net.ssl.trustStorePassword", "changeit"); // Strict Mode System.setProperty("sun.security.ssl.allowUnsafeRenegotiation", "false"); System.setProperty("sun.security.ssl.allowLegacyHelloMessages", "false"); final String host = "aposoft.cn"; final InetAddress inetAddress = InetAddress.getByName(host); final int port = 9101; try (SSLServerSocket serverSocket = (SSLServerSocket) SSLServerSocketFactory.getDefault().createServerSocket(port, 0, inetAddress);) { serverSocket.setEnabledProtocols(new String[] { "TLSv1", "TLSv1.1", "TLSv1.2" }); // 要求客户端身份验证 serverSocket.setNeedClientAuth(true); SSLParameters paramSSLParameters = serverSocket.getSSLParameters(); // identificationAlgorithm EndpointIdentificationAlgorithm // HTTPS , LDAPS paramSSLParameters.setEndpointIdentificationAlgorithm("HTTPS"); while (true) { SSLSocket socket = (SSLSocket) serverSocket.accept(); Accepter accepter = new Accepter(socket); accepter.service(); } } } static class Accepter implements Runnable { private SSLSocket socket; public Accepter(SSLSocket socket) { this.socket = socket; } public void service() { Thread thread = new Thread(this); thread.start(); } @Override public void run() { try (InputStream inputStream = socket.getInputStream(); InputStreamReader inputstreamreader = new InputStreamReader(inputStream, StandardCharsets.UTF_8); OutputStream outputStream = socket.getOutputStream(); OutputStreamWriter outputstreamwriter = new OutputStreamWriter(outputStream, StandardCharsets.UTF_8);) { try (BufferedReader bufferedreader = new BufferedReader(inputstreamreader); BufferedWriter bufferedwriter = new BufferedWriter(outputstreamwriter);) { String string = null; while ((string = bufferedreader.readLine()) != null) { System.out.println(string); bufferedwriter.write(string); bufferedwriter.write("\r\n"); bufferedwriter.flush(); System.out.println("resp:" + string); } } } catch (IOException e) { // replace with other code e.printStackTrace(); } } } }
[ "liujian1@gomeholdings.com" ]
liujian1@gomeholdings.com
184cd942d6e4ad79712d187511f0e1cab94595a4
ebb160ae32e1bf46c5c1339f88de71a15c02088d
/src/main/java/com/huawei/www/bme/cbsinterface/cbs/businessmgrmsg/NewSubscriberExtRequestMsg.java
a490e12048cd9f4bfd71a876874ec63022001f41
[]
no_license
benjamin-Ndugga/ocsconnect
55b583c0f5135a753eaaa853042987a5ba6946a1
9e66bc99456dbf8c279cc973d80bc0d43d9ab47e
refs/heads/master
2023-04-06T01:20:54.801374
2020-04-15T17:55:35
2020-05-19T13:36:39
352,567,373
0
0
null
null
null
null
UTF-8
Java
false
false
5,883
java
/** * NewSubscriberExtRequestMsg.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.huawei.www.bme.cbsinterface.cbs.businessmgrmsg; public class NewSubscriberExtRequestMsg implements java.io.Serializable { private com.huawei.www.bme.cbsinterface.common.RequestHeader requestHeader; private com.huawei.www.bme.cbsinterface.cbs.businessmgr.NewSubscriberExtRequest newSubscriberExtRequest; public NewSubscriberExtRequestMsg() { } public NewSubscriberExtRequestMsg( com.huawei.www.bme.cbsinterface.common.RequestHeader requestHeader, com.huawei.www.bme.cbsinterface.cbs.businessmgr.NewSubscriberExtRequest newSubscriberExtRequest) { this.requestHeader = requestHeader; this.newSubscriberExtRequest = newSubscriberExtRequest; } /** * Gets the requestHeader value for this NewSubscriberExtRequestMsg. * * @return requestHeader */ public com.huawei.www.bme.cbsinterface.common.RequestHeader getRequestHeader() { return requestHeader; } /** * Sets the requestHeader value for this NewSubscriberExtRequestMsg. * * @param requestHeader */ public void setRequestHeader(com.huawei.www.bme.cbsinterface.common.RequestHeader requestHeader) { this.requestHeader = requestHeader; } /** * Gets the newSubscriberExtRequest value for this NewSubscriberExtRequestMsg. * * @return newSubscriberExtRequest */ public com.huawei.www.bme.cbsinterface.cbs.businessmgr.NewSubscriberExtRequest getNewSubscriberExtRequest() { return newSubscriberExtRequest; } /** * Sets the newSubscriberExtRequest value for this NewSubscriberExtRequestMsg. * * @param newSubscriberExtRequest */ public void setNewSubscriberExtRequest(com.huawei.www.bme.cbsinterface.cbs.businessmgr.NewSubscriberExtRequest newSubscriberExtRequest) { this.newSubscriberExtRequest = newSubscriberExtRequest; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof NewSubscriberExtRequestMsg)) return false; NewSubscriberExtRequestMsg other = (NewSubscriberExtRequestMsg) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.requestHeader==null && other.getRequestHeader()==null) || (this.requestHeader!=null && this.requestHeader.equals(other.getRequestHeader()))) && ((this.newSubscriberExtRequest==null && other.getNewSubscriberExtRequest()==null) || (this.newSubscriberExtRequest!=null && this.newSubscriberExtRequest.equals(other.getNewSubscriberExtRequest()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getRequestHeader() != null) { _hashCode += getRequestHeader().hashCode(); } if (getNewSubscriberExtRequest() != null) { _hashCode += getNewSubscriberExtRequest().hashCode(); } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(NewSubscriberExtRequestMsg.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.huawei.com/bme/cbsinterface/cbs/businessmgrmsg", ">NewSubscriberExtRequestMsg")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("requestHeader"); elemField.setXmlName(new javax.xml.namespace.QName("", "RequestHeader")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.huawei.com/bme/cbsinterface/common", "RequestHeader")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("newSubscriberExtRequest"); elemField.setXmlName(new javax.xml.namespace.QName("", "NewSubscriberExtRequest")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.huawei.com/bme/cbsinterface/cbs/businessmgr", "NewSubscriberExtRequest")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer( _javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer( _javaType, _xmlType, typeDesc); } }
[ "" ]
99dca8a929cc1c05a41dbc77239a52b4385af0ce
952ea2966f2e472ab35756e5a0d5e1ffec6aa6da
/src/main/java/de/inoxio/spring/cloudwatchmetrics/WidgetDTO.java
68cb8b79c67b46c859b01be5f9643a7a35418469
[]
no_license
inoxio/spring-cloudwatch-metrics
4178003f55dc9b6ea7c9cd636693520e6ff284e4
66317c04737073f8ce98dee0c3c270bc854556c0
refs/heads/master
2023-08-03T05:39:03.923389
2023-08-02T21:44:42
2023-08-02T21:44:42
155,216,846
0
0
null
2023-06-24T06:38:17
2018-10-29T13:30:19
Java
UTF-8
Java
false
false
878
java
package de.inoxio.spring.cloudwatchmetrics; public class WidgetDTO extends BaseDTO { private PropertyDTO properties; public PropertyDTO getProperties() { return properties; } public void setProperties(final PropertyDTO properties) { this.properties = properties; } public static final class WidgetBuilder { private PropertyDTO properties; private WidgetBuilder() { } public static WidgetBuilder widgetBuilder() { return new WidgetBuilder(); } public WidgetBuilder properties(final PropertyDTO properties) { this.properties = properties; return this; } public WidgetDTO build() { final var widgetDTO = new WidgetDTO(); widgetDTO.setProperties(properties); return widgetDTO; } } }
[ "mkunze@inoxio.de" ]
mkunze@inoxio.de
b4734944a577976dccbe7be86953fa4b2e0c9bcf
f949f4d9ef4dac307fbdf479de59945958e70b23
/ismp-situation/src/main/java/org/infosec/ismp/situation/service/SituationEventService.java
37b7e03f3aef9d7b0caeca5ee1172333ab6b85dd
[]
no_license
zhausong/ismp_manager
2828f89cdc643fe60573a2aaabffd1022fe7c49f
ef914b8728c614e144c888a15d45788ba1e67a85
refs/heads/master
2021-07-29T23:08:32.237372
2013-06-21T01:50:23
2013-06-21T01:50:23
null
0
0
null
null
null
null
UTF-8
Java
false
false
368
java
package org.infosec.ismp.situation.service; import java.util.List; import org.infosec.ismp.situation.model.SituationEvent; public interface SituationEventService { /** * 存入一个对象 * @param alarm */ void save(SituationEvent situationEvent); /** * 存入多个对象 * @param alarms */ void save(List<SituationEvent> situationEvents); }
[ "lewking@foxmail.com" ]
lewking@foxmail.com
5736e521e75529a68fce6cb23b29d7604906956b
e209f7535e2b7ad796d63ae09ca31f4fb759d27c
/azkarra-api/src/main/java/io/streamthoughts/azkarra/api/streams/KafkaStreamsContainer.java
0b70f2ed9bf94b7b5ffaeb4b3999b4c1afdf2f7b
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
savulchik/azkarra-streams
0a1e91eeb05beacf5533eb407dddb72204763d45
340564f2d88800f04ad48425ea44ab6e6e348220
refs/heads/master
2020-12-15T22:23:31.061244
2020-01-15T18:10:06
2020-01-15T18:28:08
235,272,616
0
0
Apache-2.0
2020-01-21T06:38:19
2020-01-21T06:38:18
null
UTF-8
Java
false
false
15,854
java
/* * Copyright 2019 StreamThoughts. * * 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 io.streamthoughts.azkarra.api.streams; import io.streamthoughts.azkarra.api.StreamsLifecycleChain; import io.streamthoughts.azkarra.api.StreamsLifecycleContext; import io.streamthoughts.azkarra.api.config.Conf; import io.streamthoughts.azkarra.api.model.TimestampedValue; import io.streamthoughts.azkarra.api.monad.Try; import io.streamthoughts.azkarra.api.query.LocalStoreAccessor; import io.streamthoughts.azkarra.api.streams.topology.TopologyContainer; import io.streamthoughts.azkarra.api.streams.topology.TopologyMetadata; import io.streamthoughts.azkarra.api.time.Time; import org.apache.kafka.common.Metric; import org.apache.kafka.common.MetricName; import org.apache.kafka.common.TopicPartition; import org.apache.kafka.common.serialization.Serde; import org.apache.kafka.common.serialization.Serializer; import org.apache.kafka.streams.KafkaStreams; import org.apache.kafka.streams.StreamsConfig; import org.apache.kafka.streams.TopologyDescription; import org.apache.kafka.streams.processor.ThreadMetadata; import org.apache.kafka.streams.state.QueryableStoreType; import org.apache.kafka.streams.state.QueryableStoreTypes; import org.apache.kafka.streams.state.ReadOnlyKeyValueStore; import org.apache.kafka.streams.state.ReadOnlySessionStore; import org.apache.kafka.streams.state.ReadOnlyWindowStore; import org.apache.kafka.streams.state.StreamsMetadata; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional; import java.util.Set; import java.util.concurrent.CompletableFuture; import java.util.concurrent.Executor; import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.stream.Collectors; public class KafkaStreamsContainer { private static final Logger LOG = LoggerFactory.getLogger(KafkaStreamsContainer.class); private final KafkaStreamsFactory streamsFactory; private KafkaStreams kafkaStreams; private long started = -1; private volatile Throwable lastObservedException; private volatile TimestampedValue<State> state; private final TopologyContainer topologyContainer; private volatile Set<ThreadMetadata> threadMetadata; private final String applicationServer; private final LinkedBlockingQueue<StateChangeWatcher> stateChangeWatchers = new LinkedBlockingQueue<>(); /** * The {@link Executor} which is used for starting the internal streams in a non-blocking way. */ private Executor executor; /** * Creates a new {@link KafkaStreamsContainer} instance. * * @param topologyContainer the {@link TopologyContainer} instance. * @param streamsFactory the {@link KafkaStreamsFactory} instance. */ KafkaStreamsContainer(final TopologyContainer topologyContainer, final KafkaStreamsFactory streamsFactory) { Objects.requireNonNull(topologyContainer, "topologyContainer cannot be null"); Objects.requireNonNull(streamsFactory, "streamsFactory cannot be null"); setState(State.NOT_CREATED); this.streamsFactory = streamsFactory; this.topologyContainer = topologyContainer; this.applicationServer = streamsConfig() .getOptionalString(StreamsConfig.APPLICATION_SERVER_CONFIG) .orElse(null); } /** * Asynchronously start the underlying {@link KafkaStreams} instance. * * @param executor the {@link Executor} instance to be used for starting the streams. * * @return the future {@link org.apache.kafka.streams.KafkaStreams.State} of the streams. */ public synchronized Future<KafkaStreams.State> start(final Executor executor) { this.executor = executor; started = Time.SYSTEM.milliseconds(); kafkaStreams = streamsFactory.make( topologyContainer.topology(), topologyContainer.streamsConfig() ); setState(State.CREATED); // start() may block during a undefined period of time if the topology has defined GlobalKTables. // https://issues.apache.org/jira/browse/KAFKA-7380 return CompletableFuture.supplyAsync(() -> { LOG.info("Starting Kafka Streams instance for application.id: {}", applicationId()); StreamsLifecycleChain streamsLifeCycle = new InternalStreamsLifeCycleChain( topologyContainer.interceptors().iterator(), (interceptor, chain) -> interceptor.onStart(new InternalStreamsLifeCycleContext(), chain), () -> kafkaStreams.start() ); streamsLifeCycle.execute(); return kafkaStreams.state(); }, executor); } private void setState(final State state) { this.state = new TimestampedValue<>(state); } /** * Gets the current state of the streams. * * @return a {@link TimestampedValue} instance; */ public TimestampedValue<State> state() { return state; } /** * Gets the default {@link Serde} configured for key. * * @return a optional {@link Serde} instance. */ public Optional<Serde> getDefaultKeySerde() { if (!streamsConfig().hasPath(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG)) { return Optional.empty(); } return Try.failable(() -> streamsConfig().getClass(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, Serde.class) ).toOptional(); } /** * Gets the local thread metadata. * * @return a set of {@link ThreadMetadata} instance. */ public Set<ThreadMetadata> threadMetadata() { return threadMetadata; } /** * Gets the started epoch-time in milliseconds. * * @return a unix epoch-time in milliseconds. */ public long startedSince() { return started; } /** * Gets the configuration for this {@link KafkaStreams} instance. * * @return a {@link Conf} instance. */ public Conf streamsConfig() { return topologyContainer.streamsConfig(); } /** * Gets configured {@link StreamsConfig#APPLICATION_ID_CONFIG} for this {@link KafkaStreams} instance. * * @return a string application.id. */ public String applicationId() { return streamsConfig().getString(StreamsConfig.APPLICATION_ID_CONFIG); } /** * Gets the last observed exception thrown the {@link KafkaStreams} instance. * * @return a {@link Throwable} instance. */ public Optional<Throwable> exception() { return Optional.ofNullable(this.lastObservedException); } /** * Gets the {@link TopologyMetadata} about the topology runs by this {@link KafkaStreams} instance. * * @return a {@link TopologyMetadata} instance. */ public TopologyMetadata topologyMetadata() { return topologyContainer.metadata(); } public TopologyDescription topologyDescription() { return topologyContainer.description(); } /** * Gets all the current {@link Metric}s for this {@link KafkaStreams} instance. * * @return a map of {@link Metric}. */ public Map<MetricName, ? extends Metric> metrics() { return kafkaStreams.metrics(); } /** * Closes this {@link KafkaStreams} instance. */ public void close() { close(false); } /** * Closes this {@link KafkaStreams} instance. * * @param cleanUp flag to clean up the local streams states. */ public void close(final boolean cleanUp) { StreamsLifecycleChain streamsLifeCycle = new InternalStreamsLifeCycleChain( topologyContainer.interceptors().iterator(), (interceptor, chain) -> interceptor.onStop(new InternalStreamsLifeCycleContext(), chain), () -> { kafkaStreams.close(); if (cleanUp) { kafkaStreams.cleanUp(); } } ); streamsLifeCycle.execute(); } public void restart() { if (isNotRunning()) { restartNow(); // Restart internal streams immediately } else { // Register a watcher that will restart the streams as soon as the state is NOT_RUNNING. stateChangeWatchers.add(new StateChangeWatcher() { @Override public boolean accept(final KafkaStreams.State state) { return state == KafkaStreams.State.NOT_RUNNING; } @Override public void apply() { restartNow(); } }); // While restarting the streams we should not cleanup the local states. close(false); } } private void restartNow() { CompletableFuture<KafkaStreams.State> f = (CompletableFuture<KafkaStreams.State>) start(executor); f.handle((state, throwable) -> { if (throwable != null) { LOG.error("Unexpected error happens while restarting streams", throwable); } return state; }); } public Optional<StreamsServerInfo> getLocalServerInfo() { return getAllMetadata() .stream() .filter(StreamsServerInfo::isLocal) .findFirst(); } public Set<StreamsServerInfo> getAllMetadata() { if (isNotRunning()) { return Collections.emptySet(); } // allMetadata throw an IllegalAccessException if instance is not running return kafkaStreams.allMetadata() .stream() .map(this::newServerInfoFor) .collect(Collectors.toSet()); } public Collection<StreamsServerInfo> getAllMetadataForStore(final String storeName) { Objects.requireNonNull(storeName, "storeName cannot be null"); Collection<StreamsMetadata> metadata = kafkaStreams.allMetadataForStore(storeName); return metadata.stream() .map(this::newServerInfoFor) .collect(Collectors.toList()); } public <K> StreamsServerInfo getMetadataForStoreAndKey(final String storeName, final K key, final Serializer<K> keySerializer) { Objects.requireNonNull(storeName, "storeName cannot be null"); Objects.requireNonNull(key, "key cannot be null"); Objects.requireNonNull(keySerializer, "keySerializer cannot be null"); StreamsMetadata metadata = kafkaStreams.metadataForKey(storeName, key, keySerializer); return newServerInfoFor(metadata); } public <K, V> LocalStoreAccessor<ReadOnlyKeyValueStore<K, V>> getLocalKeyValueStore(final String storeName) { return getLocalStoreAccess(storeName, QueryableStoreTypes.keyValueStore()); } public <K, V> LocalStoreAccessor<ReadOnlyWindowStore<K, V>> getLocalWindowStore(final String storeName) { return getLocalStoreAccess(storeName, QueryableStoreTypes.windowStore()); } public <K, V> LocalStoreAccessor<ReadOnlySessionStore<K, V>> getLocalSessionStore(final String storeName) { return getLocalStoreAccess(storeName, QueryableStoreTypes.sessionStore()); } public <T> LocalStoreAccessor<T> getLocalStoreAccess(final String storeName, final QueryableStoreType<T> storeType) { return new LocalStoreAccessor<>(() -> kafkaStreams.store(storeName, storeType)); } Logger logger() { return LOG; } boolean isNotRunning() { final State state = state().value(); return !(state == State.RUNNING || state == State.REBALANCING); } void stateChanges(final long now, final KafkaStreams.State newState, final KafkaStreams.State oldstate) { state = new TimestampedValue<>(now, State.valueOf(newState.name())); if (newState == KafkaStreams.State.RUNNING) { threadMetadata = kafkaStreams.localThreadsMetadata(); } else { threadMetadata = Collections.emptySet(); } if (!stateChangeWatchers.isEmpty()) { List<StateChangeWatcher> watchers = new ArrayList<>(stateChangeWatchers.size()); stateChangeWatchers.drainTo(watchers); for (StateChangeWatcher listener : watchers) { if (listener.accept(newState)) { listener.apply(); } else { stateChangeWatchers.add(listener); } } } } void setException(final Throwable throwable) { lastObservedException = throwable; } private StreamsServerInfo newServerInfoFor(final StreamsMetadata metadata) { return new StreamsServerInfo( applicationId(), metadata.host(), metadata.port(), metadata.stateStoreNames(), groupByTopicThenGet(metadata.topicPartitions()), isLocal(metadata) ); } private boolean isLocal(final StreamsMetadata metadata) { return (metadata.host() + ":" + metadata.port()).equals(applicationServer); } private static Set<TopicPartitions> groupByTopicThenGet(final Set<TopicPartition> topicPartitions) { return topicPartitions .stream() .collect(Collectors.groupingBy(TopicPartition::topic)) .entrySet() .stream() .map( entry -> new TopicPartitions( entry.getKey(), entry.getValue().stream().map(TopicPartition::partition).collect(Collectors.toSet())) ).collect(Collectors.toSet()); } private interface StateChangeWatcher { boolean accept(final KafkaStreams.State state); void apply(); } public class InternalStreamsLifeCycleContext implements StreamsLifecycleContext { /** * {@inheritDoc} */ @Override public String getApplicationId() { return applicationId(); } /** * {@inheritDoc} */ @Override public TopologyDescription getTopology() { return topologyContainer.description(); } /** * {@inheritDoc} */ @Override public Conf getStreamConfig() { return topologyContainer.streamsConfig(); } /** * {@inheritDoc} */ @Override public State getState() { return state().value(); } /** * {@inheritDoc} */ @Override public void setState(final State state) { KafkaStreamsContainer.this.setState(state); } } }
[ "florian.hussonnois@gmail.com" ]
florian.hussonnois@gmail.com
303e50acd6672d9382a5f39f8b7f288d14df2529
40c443b311bea9f030659d3567322c05f8fd50e6
/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/codesystems/V3EntityStatus.java
ec6a8db756292c15dacd81111811642b64881a24
[ "Apache-2.0" ]
permissive
hhund/org.hl7.fhir.core
6af7012d1489e830caf08bc6b3ce9193a1aadab8
fe780de63476dda40cd3c866f7cdd18f834e8108
refs/heads/master
2020-08-03T21:38:01.591281
2019-09-30T06:42:48
2019-09-30T06:42:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,366
java
package org.hl7.fhir.r5.model.codesystems; /*- * #%L * org.hl7.fhir.r5 * %% * Copyright (C) 2014 - 2019 Health Level 7 * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ /* Copyright (c) 2011+, HL7, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of HL7 nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Generated on Sun, Jun 30, 2019 16:52-0400 for FHIR v4.1.0 import org.hl7.fhir.exceptions.FHIRException; public enum V3EntityStatus { /** * The 'typical' state. Excludes "nullified" which represents the termination state of an Entity record instance that was created in error. */ NORMAL, /** * The state representing the fact that the Entity record is currently active. */ ACTIVE, /** * Definition: The state representing the fact that the entity is inactive. */ INACTIVE, /** * The state representing the normal termination of an Entity record. */ TERMINATED, /** * The state representing the termination of an Entity record instance that was created in error. */ NULLIFIED, /** * added to help the parsers */ NULL; public static V3EntityStatus fromCode(String codeString) throws FHIRException { if (codeString == null || "".equals(codeString)) return null; if ("normal".equals(codeString)) return NORMAL; if ("active".equals(codeString)) return ACTIVE; if ("inactive".equals(codeString)) return INACTIVE; if ("terminated".equals(codeString)) return TERMINATED; if ("nullified".equals(codeString)) return NULLIFIED; throw new FHIRException("Unknown V3EntityStatus code '"+codeString+"'"); } public String toCode() { switch (this) { case NORMAL: return "normal"; case ACTIVE: return "active"; case INACTIVE: return "inactive"; case TERMINATED: return "terminated"; case NULLIFIED: return "nullified"; default: return "?"; } } public String getSystem() { return "http://terminology.hl7.org/CodeSystem/v3-EntityStatus"; } public String getDefinition() { switch (this) { case NORMAL: return "The 'typical' state. Excludes \"nullified\" which represents the termination state of an Entity record instance that was created in error."; case ACTIVE: return "The state representing the fact that the Entity record is currently active."; case INACTIVE: return "Definition: The state representing the fact that the entity is inactive."; case TERMINATED: return "The state representing the normal termination of an Entity record."; case NULLIFIED: return "The state representing the termination of an Entity record instance that was created in error."; default: return "?"; } } public String getDisplay() { switch (this) { case NORMAL: return "normal"; case ACTIVE: return "active"; case INACTIVE: return "inactive"; case TERMINATED: return "terminated"; case NULLIFIED: return "nullified"; default: return "?"; } } }
[ "noreply@github.com" ]
hhund.noreply@github.com
192926d4e2904084ca1573dd6c1a407f2d1da05b
57c64f7270c6e78d91857f3e3d4ff4cad0bf6090
/CloudCheck/src/com/ningze/rest/setting/AjaxResponseFilter.java
38902266e727ad4fcd06fc6b5833bbc62aa5bb4c
[]
no_license
goleming/CloudCheck
6d73899e7abbbe3c813c4b1c8c9672957ef8d78a
b22628a82a049eb927828335925d0f2e536e9a39
refs/heads/master
2020-04-13T06:55:52.567286
2018-12-25T08:01:38
2018-12-25T08:01:38
163,035,018
0
0
null
null
null
null
UTF-8
Java
false
false
715
java
/** * */ package com.ningze.rest.setting; import java.io.IOException; import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerResponseContext; import javax.ws.rs.container.ContainerResponseFilter; import javax.ws.rs.ext.Provider; /** * @author ptero * */ @Provider public class AjaxResponseFilter implements ContainerResponseFilter { @Override public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException { responseContext.getHeaders().add("Access-Control-Allow-Origin", "*"); responseContext.getHeaders().add("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); } }
[ "ptero@192.168.1.104" ]
ptero@192.168.1.104
0cac666f383cbdbdfdbc36029ae35540c3b9f23e
23c01976d1652bb0b8201013834bc406a1a3d606
/src/main/java/com/example/JwtSampleApplication.java
8020fea72eac59ce6f132833c90aab8ba61a3afd
[]
no_license
scizeron/jwt-sample
aa5383bbf72e37d1d82b12101191a43fdc217570
816d336da5a0e3451cc3f85db41868631acb2ff7
refs/heads/master
2020-07-27T02:23:52.651471
2017-04-21T09:19:55
2017-04-21T09:19:55
73,704,889
0
0
null
null
null
null
UTF-8
Java
false
false
309
java
package com.example; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class JwtSampleApplication { public static void main(String[] args) { SpringApplication.run(JwtSampleApplication.class, args); } }
[ "stephane.cizeron@gmail.com" ]
stephane.cizeron@gmail.com
d21eaf0ead02a7f634022569760ad9cfe41aefd6
8d8fb4dfd7be299076651e02d26eba6cd879428c
/agent-bridge/src/main/java/com/newrelic/agent/bridge/NoOpLogger.java
b2a692a5bd7f0a469c58a74a38884b848b7e2f68
[ "Apache-2.0" ]
permissive
newrelic/newrelic-java-agent
db6dd20f6ba3f43909b004ce4a058f589dd4b017
eb298ecd8d31f93622388aa12d3ba1e68a58f912
refs/heads/main
2023-08-31T05:14:44.428903
2023-08-29T10:37:35
2023-08-30T18:08:38
275,016,355
177
150
Apache-2.0
2023-09-11T14:50:06
2020-06-25T21:13:42
Java
UTF-8
Java
false
false
3,331
java
/* * * * Copyright 2020 New Relic Corporation. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * */ package com.newrelic.agent.bridge; import com.newrelic.api.agent.Logger; import java.util.logging.Level; class NoOpLogger implements Logger { static final Logger INSTANCE = new NoOpLogger(); private NoOpLogger() { } @Override public boolean isLoggable(Level level) { return false; } @Override public void log(Level level, String pattern, Object[] msg) { } @Override public void log(Level level, String pattern) { } @Override public void log(Level level, Throwable t, String pattern) { } @Override public void log(Level level, String pattern, Object part1) { } @Override public void log(Level level, String pattern, Object part1, Object part2) { } @Override public void log(Level level, String pattern, Object part1, Object part2, Object part3) { } @Override public void log(Level level, String pattern, Object part1, Object part2, Object part3, Object part4) { } @Override public void log(Level level, String pattern, Object part1, Object part2, Object part3, Object part4, Object part5) { } @Override public void log(Level level, String pattern, Object part1, Object part2, Object part3, Object part4, Object part5, Object part6) { } @Override public void log(Level level, String pattern, Object part1, Object part2, Object part3, Object part4, Object part5, Object part6, Object part7) { } @Override public void log(Level level, String pattern, Object part1, Object part2, Object part3, Object part4, Object part5, Object part6, Object part7, Object... otherParts) { } @Override public void log(Level level, Throwable t, String pattern, Object[] msg) { } @Override public void log(Level level, Throwable t, String pattern, Object part1) { } @Override public void log(Level level, Throwable t, String pattern, Object part1, Object part2) { } @Override public void log(Level level, Throwable t, String pattern, Object part1, Object part2, Object part3) { } @Override public void log(Level level, Throwable t, String pattern, Object part1, Object part2, Object part3, Object part4) { } @Override public void log(Level level, Throwable t, String pattern, Object part1, Object part2, Object part3, Object part4, Object part5) { } @Override public void log(Level level, Throwable t, String pattern, Object part1, Object part2, Object part3, Object part4, Object part5, Object part6) { } @Override public void log(Level level, Throwable t, String pattern, Object part1, Object part2, Object part3, Object part4, Object part5, Object part6, Object part7) { } @Override public void log(Level level, Throwable t, String pattern, Object part1, Object part2, Object part3, Object part4, Object part5, Object part6, Object part7, Object... otherParts) { } @Override public void logToChild(String childName, Level level, String pattern, Object part1, Object part2, Object part3, Object part4) { } }
[ "49817386+jeffalder@users.noreply.github.com" ]
49817386+jeffalder@users.noreply.github.com
459f1372bbcec62fb27983285eb564913613fa58
74e4bc5625ef0e3e725ffb5751924d1f7f5220f4
/src/android/NewActivity.java
d6e4ac6c6a1b0f8cb3f146f12e29e124fb47583b
[]
no_license
hahalinjiang/EappPlugin
2cc56f010fbd99c4d44cead7461109245383f6f1
bd75849bf1f517047d6c002978b7ad3f93f238f6
refs/heads/master
2020-09-07T22:11:38.985157
2019-11-11T07:43:31
2019-11-11T07:43:31
220,927,063
0
0
null
null
null
null
UTF-8
Java
false
false
2,762
java
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package com.skytech.eapp; import android.os.Bundle; import android.view.KeyEvent; import android.widget.Toast; import org.apache.cordova.*; public class NewActivity extends CordovaActivity { private final String BOTTOMTOTOP = "by_bottom"; private final String RIGHTTOLEFT = "by_right"; @Override public void onCreate(Bundle savedInstanceState) { ChangePush(); super.onCreate(savedInstanceState); try { launchUrl=getIntent().getExtras().getString("url"); }catch (Exception e){ launchUrl=""; Toast.makeText(NewActivity.this,"要填写地址啊",Toast.LENGTH_SHORT).show(); } // enable Cordova apps to be started in the background Bundle extras = getIntent().getExtras(); if (extras != null && extras.getBoolean("cdvStartInBackground", false)) { moveTaskToBack(true); } // Set by <content src="index.html" /> in config.xml loadUrl(launchUrl); } private void ChangePush() { int ZOOMENTERTOP=getResources().getIdentifier("zoom_enter_top","anim",getPackageName()); int ZOOMOUTTOP=getResources().getIdentifier("zoom_out_top","anim",getPackageName()); int ZOOMENTERLEFT=getResources().getIdentifier("zoom_enter_left","anim",getPackageName()); int ZOOMOULEFT=getResources().getIdentifier("zoom_out_left","anim",getPackageName()); if(BOTTOMTOTOP.equals(EappPlugin.OPENTYPE)){ overridePendingTransition(ZOOMENTERTOP, ZOOMOUTTOP); }else { overridePendingTransition(ZOOMENTERLEFT,ZOOMOULEFT); } } public void onBack(){ finish(); ChangePush(); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { return true; } return false; } }
[ "linjiang92@163.com" ]
linjiang92@163.com
789ac3cb1ede1f1c2c9171c4a0b54f83e76432cf
e24ceadb0437ecc04ce830483c1128b16644759d
/src/getpoint/GetPoint.java
2c668e1be6e52f07b3d1b7bf09e8090ea4794d68
[]
no_license
kongfanwu/GetThePoint0.1
bb1e6d658eda14730c0d513501bc1f1a0ccb6645
1105d82e6cf028e29cca10f810db8d0ea3c8f082
refs/heads/master
2021-01-19T14:06:34.841850
2016-09-03T08:20:35
2016-09-03T08:20:35
88,124,563
1
1
null
2017-04-13T04:19:52
2017-04-13T04:19:52
null
UTF-8
Java
false
false
1,297
java
package getpoint; import util.Point; import util.Triangle; public interface GetPoint { public Point getPoint(); /** * 通过给定三角形和内点p到三顶点距离求该内点p * * @param tri * 三角形 * @param pA * @param pB * @param pC * 内点p到三角形三顶点距离 * @return * p点坐标 */ public Point getPoint(Triangle tri, double pA, double pB, double pC); /** * 通过给定三角形三个顶点和内点p到三顶点距离求该内点p * * @param a * @param b * @param c * 三角形三个顶点 * @param pA * @param pB * @param pC * 内点p到三角形三顶点距离 * @return * p点坐标 */ public Point getPoint(Point a, Point b, Point c, double pA, double pB, double pC); /** * 通过给定三角形三个顶点具体坐标和内点p到三顶点距离求该内点p * * @param x1 * @param y1 * 三角形A顶点 * @param x2 * @param y2 * 三角形B顶点 * @param x3 * @param y3 * 三角形C顶点 * @param pA * @param pB * @param pC * 内点p到三角形三顶点距离 * @return * p点坐标 */ public Point getPoint(double x1, double y1, double x2, double y2, double x3, double y3, double pA, double pB, double pC); }
[ "liuyuchen0504@foxmail.com" ]
liuyuchen0504@foxmail.com
36c672480243a40ad66183f2cdb3196129bc8878
c0c696999c7d54be439d01f7f5374d51df9c6684
/src/crypto/DataProcess.java
f357a4bd0f540ee9c36c9d6d7074e32b3fefb7e1
[]
no_license
MrMurder/encryption-decryption
61e42d71ad338548e01c2cf52e44637905357e0d
d993442ddc25706d49073a45791e0ba30bb27fef
refs/heads/master
2020-05-16T18:33:59.586316
2019-05-14T14:09:36
2019-05-14T14:09:36
183,230,818
0
0
null
2019-04-24T13:06:43
2019-04-24T13:06:43
null
UTF-8
Java
false
false
2,308
java
package encryptdecrypt; import java.io.FileNotFoundException; import java.io.FileReader; import java.util.Scanner; class DataProcess { private String algorithm; private String operation = "enc"; private String dataOutFile = null; private String data = ""; private int key = 0; String getAlgorithm() { return algorithm; } String getOperation() { return operation; } String getDataOutFile() { return dataOutFile; } String getData() { return data; } int getKey() { return key; } DataProcess(String[] args) { boolean checker = false; for (int i = 0; i < args.length; i++) { switch (args[i]) { case "-mode": { this.operation = args[++i]; break; } case "-key": { this.key = Integer.parseInt(args[++i]); break; } case "-data": { this.data = args[++i]; checker = true; break; } case "-in": { this.data = DataProcess.dataFromFile(args[++i]); checker = true; break; } case "-out": { this.dataOutFile = args[++i]; break; } case "-alg": { this.algorithm = args[++i]; break; } } } if (!checker) { Scanner sc = new Scanner(System.in); this.data = sc.nextLine(); this.key = sc.nextInt(); sc.close(); } } private static String dataFromFile(String dataInFile) { StringBuilder str = new StringBuilder(); try { FileReader in = new FileReader(dataInFile); Scanner scanner = new Scanner(in); while (scanner.hasNext()) { str.append(scanner.nextLine()).append("\n"); } } catch (FileNotFoundException e) { System.out.println("There is no file with such a name: " + dataInFile); } return str.toString(); } }
[ "noreply@github.com" ]
MrMurder.noreply@github.com
4877aeaa36a80b90e6c4b1ce34401847d3596012
b75673b2519707a621eeaefaf0a090ce6061de3b
/src/application/Program.java
f2119c07c03b6cefc35c1adf8a668507f8190a90
[]
no_license
RichardBrayan22/chess-system-java
797fbf59f74c88b8b5e3aa9b7a2aa15cf9f647ad
5e1d1c636ddcdb57b02effd78e155a54cf6bc2df
refs/heads/main
2023-07-28T22:31:00.874680
2021-09-16T19:49:01
2021-09-16T19:49:01
401,761,145
0
0
null
null
null
null
UTF-8
Java
false
false
1,133
java
package application; import java.util.InputMismatchException; import java.util.Scanner; import chess.ChessException; import chess.ChessMatch; import chess.ChessPiece; import chess.ChessPosition; public class Program { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ChessMatch chessMatch = new ChessMatch(); while (true) { try { UI.clearScreen(); UI.printBoard(chessMatch.getPieces()); System.out.println(); System.out.print("Source: "); ChessPosition source = UI.readChessPosition(sc); boolean [][] possibleMoves = chessMatch.possibleMoves(source); UI.clearScreen(); UI.printBoard(chessMatch.getPieces(), possibleMoves); System.out.println(); System.out.print("Target: "); ChessPosition target = UI.readChessPosition(sc); ChessPiece capturedPiece = chessMatch.performChessMove(source, target); } catch(ChessException e) { System.out.println(e.getMessage()); sc.nextLine(); } catch (InputMismatchException e) { System.out.println(e.getMessage()); sc.nextLine(); } } } }
[ "richardbrayan2009@gmail.com" ]
richardbrayan2009@gmail.com
14cc091319cc986499fc580866a0f89830a7bbf0
ecd7d2f685e74bed090c875e5418edcec36c0979
/src/main/java/com/codingdojo/dojosNinjas/models/Dojo.java
c85a40a3a6bbcf70788ff61f7c848d7205ca4e74
[]
no_license
MatthewBolan/dojosNinjas
9c7ccba8feabd2c123f9d9fbdee361f194370ead
effdccffa9640f9151c22e429d914cc7b029476c
refs/heads/master
2023-08-28T19:13:37.927856
2021-10-13T20:40:00
2021-10-13T20:40:00
414,995,694
0
0
null
null
null
null
UTF-8
Java
false
false
2,803
java
package com.codingdojo.dojosNinjas.models; import java.sql.Date; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Table; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import org.springframework.format.annotation.DateTimeFormat; @Entity @Table(name="dojos") public class Dojo { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @NotNull @Size(min=3, max=25, message = "Dojo Name needs to be atleast 3 characters or under the Max (25)") private String name; @Column(updatable=false) @DateTimeFormat(pattern="yyyy-MM-dd") private Date createdAt; @DateTimeFormat(pattern="yyyy-MM-dd") private Date updatedAt; @OneToMany(mappedBy="dojo", fetch = FetchType.LAZY) private List<Ninja> ninjas; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name="user_id") private User user; public Dojo() {} public Dojo( @NotNull @Size(min = 3, max = 25, message = "Dojo Name Needs to be within 3 - 25 letters!") String name) { super(); this.name = name; } public Dojo( @NotNull @Size(min = 3, max = 25, message = "Dojo Name Needs to be within 3 - 25 letters!") String name, List<Ninja> ninjas) { super(); this.name = name; this.ninjas = ninjas; } public Dojo( @NotNull @Size(min = 3, max = 25, message = "Dojo Name needs to be atleast 3 characters or under the Max (25)") String name, User user) { super(); this.name = name; this.user = user; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Date getCreatedAt() { return createdAt; } public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; } public Date getUpdatedAt() { return updatedAt; } public void setUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; } public List<Ninja> getNinjas() { return ninjas; } public void setNinjas(List<Ninja> ninjas) { this.ninjas = ninjas; } public User getUser() { return user; } public void setUser(User user) { this.user = user; } // getters and setters removed for brevity }
[ "Bolan.Matthew.MB@Gmail.com" ]
Bolan.Matthew.MB@Gmail.com
d319ddab1b5ecebaa2f723ab07a6a7b008a3d16b
07b745d706c0ad145faa3921838aa4fbe2e223c0
/app/src/test/java/krb/com/teravinfilm/ExampleUnitTest.java
476408a320b51446960c15b5a779728b8f443564
[]
no_license
SartikaHsb/TeravinFilm
c8fdf429ab540be4fef457ab2f7dc8d8441b136e
ea1cefc06efe3241631ab787d144dda80ebd2bd7
refs/heads/master
2021-01-24T08:15:25.501512
2016-10-04T23:39:54
2016-10-04T23:39:54
70,015,260
0
0
null
null
null
null
UTF-8
Java
false
false
312
java
package krb.com.teravinfilm; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
[ "sartikasarihasibuan@gmail.com" ]
sartikasarihasibuan@gmail.com
3f800529f2074a9ee5d01eae2e1ee94f3285543f
b9a08f22a10b44b0fc9cce0b994b37150fdfedc6
/Selenium/Activity14_1.java
c9b7ed8a87aa56238a83b8d3434b2874106a51ea
[]
no_license
sharmistha5556/SDET-Training
d09197b512173744fe26f2941aa3ad2af26bed39
73423aab3194c50b313062c6c4bd35ce4db34fb7
refs/heads/main
2023-02-01T12:25:32.622270
2020-12-21T10:36:07
2020-12-21T10:36:07
307,599,397
0
0
null
null
null
null
UTF-8
Java
false
false
1,102
java
package selenium_session1; import java.io.FileReader; import java.io.IOException; import java.util.Iterator; import java.util.List; import com.opencsv.CSVReader; import com.opencsv.exceptions.CsvException; public class Activity14_1 { public static void main(String[] args) throws IOException, CsvException { //Load CSV file CSVReader reader = new CSVReader(new FileReader("src/test/java/tests/sample.csv")); //Load content into list List<String[]> list = reader.readAll(); System.out.println("Total number of rows are: " + list.size()); //Create Iterator reference Iterator<String[]> itr = list.iterator(); //Iterate all values while(itr.hasNext()) { String[] str = itr.next(); System.out.print("Values are: "); System.out.print("The array size is: " + str.length); for(int i=0;i<str.length;i++) { System.out.print(" " + str[i]); } System.out.println(" "); } reader.close(); } }
[ "noreply@github.com" ]
sharmistha5556.noreply@github.com
249a4f35324523c3d3a829ef930b705cd36f92a4
1ae3a2e08b027ed90303382b0594293f5301dcb5
/WX_JVXXS/src/main/java/com/dao/prientTaskDao.java
24c8e6c935527116e8abc87fb6d745596417eddc
[]
no_license
Funny0018/WeChat_Pro
f25c40dcbd39d9b462801e905a1ba0add6153124
cedd88ba1033c250ccbf644c7af7ce48366edd5d
refs/heads/master
2022-12-23T10:48:17.153814
2019-08-27T01:20:05
2019-08-27T01:20:05
204,589,607
1
1
null
2022-12-16T04:43:37
2019-08-27T01:01:53
JavaScript
UTF-8
Java
false
false
207
java
package com.dao; import com.entity.prientTask; import org.springframework.stereotype.Repository; @Repository("prientTaskDao") public interface prientTaskDao { public void add(prientTask prientTask); }
[ "wj910018@163.com" ]
wj910018@163.com
293653df4df1624c43f23f5bc10e50b8aa755d6d
d7e4736e3cca95ea0ee72d52fbb9ae16286229fe
/deltaspike-dbunit/src/test/java/com/github/deltaspikedbunit/operation/DefaultDatabaseOperationLookupTest.java
7ac119aae1b06ed02c5da369d409ca462dd69292
[ "Apache-2.0" ]
permissive
lbitonti/deltaspike-dbunit
c5b8febff598ba6c3a807b3207f2e29f4654a67b
d2c16a809d8e328d9845a70ac33b008fbd9144f4
refs/heads/master
2021-01-10T09:17:06.836547
2016-02-25T16:58:47
2016-02-25T16:58:47
44,263,579
6
3
null
2016-02-25T17:01:08
2015-10-14T17:12:05
Java
UTF-8
Java
false
false
1,835
java
/* * Copyright 2002-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 com.github.deltaspikedbunit.operation; import static org.junit.Assert.assertSame; import org.junit.Test; import com.github.deltaspikedbunit.annotation.DatabaseOperation; /** * Tests for {@link DefaultDatabaseOperationLookup}. * * @author Luigi Bitonti * @author Phillip Webb */ public class DefaultDatabaseOperationLookupTest { @Test public void shouldLookup() throws Exception { DefaultDatabaseOperationLookup lookup = new DefaultDatabaseOperationLookup(); assertSame(org.dbunit.operation.DatabaseOperation.UPDATE, lookup.get(DatabaseOperation.UPDATE)); assertSame(org.dbunit.operation.DatabaseOperation.INSERT, lookup.get(DatabaseOperation.INSERT)); assertSame(org.dbunit.operation.DatabaseOperation.REFRESH, lookup.get(DatabaseOperation.REFRESH)); assertSame(org.dbunit.operation.DatabaseOperation.DELETE, lookup.get(DatabaseOperation.DELETE)); assertSame(org.dbunit.operation.DatabaseOperation.DELETE_ALL, lookup.get(DatabaseOperation.DELETE_ALL)); assertSame(org.dbunit.operation.DatabaseOperation.TRUNCATE_TABLE, lookup.get(DatabaseOperation.TRUNCATE_TABLE)); assertSame(org.dbunit.operation.DatabaseOperation.CLEAN_INSERT, lookup.get(DatabaseOperation.CLEAN_INSERT)); } }
[ "uknadors@yahoo.com" ]
uknadors@yahoo.com
ecaa0218f49af3e981e8ac626dcb5443ce55b807
d900d565c0aa1baca50281ff3ab17748a1bd8825
/jOOQ-test/src/org/jooq/test/mysql2/generatedclasses/tables/T_639NumbersTable.java
06d681834761a5134145bac6c54ba27386e8772e
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
rtvt123/jOOQ
61db17e27c88d39faead0977b1753051b4011c78
93fcf815c1a81c08e7f7940787b5ae95d6853733
refs/heads/master
2022-09-18T21:20:21.039490
2013-12-19T09:37:35
2013-12-19T09:37:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,040
java
/** * This class is generated by jOOQ */ package org.jooq.test.mysql2.generatedclasses.tables; /** * This class is generated by jOOQ. */ @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class T_639NumbersTable extends org.jooq.impl.TableImpl<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord> { private static final long serialVersionUID = -240160998; /** * The singleton instance of <code>test2.t_639_numbers_table</code> */ public static final org.jooq.test.mysql2.generatedclasses.tables.T_639NumbersTable T_639_NUMBERS_TABLE = new org.jooq.test.mysql2.generatedclasses.tables.T_639NumbersTable(); /** * The class holding records for this type */ @Override public java.lang.Class<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord> getRecordType() { return org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord.class; } /** * The column <code>test2.t_639_numbers_table.ID</code>. */ public final org.jooq.TableField<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Integer> ID = createField("ID", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this); /** * The column <code>test2.t_639_numbers_table.BYTE</code>. */ public final org.jooq.TableField<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Byte> BYTE = createField("BYTE", org.jooq.impl.SQLDataType.TINYINT, this); /** * The column <code>test2.t_639_numbers_table.SHORT</code>. */ public final org.jooq.TableField<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Short> SHORT = createField("SHORT", org.jooq.impl.SQLDataType.SMALLINT, this); /** * The column <code>test2.t_639_numbers_table.INTEGER</code>. */ public final org.jooq.TableField<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Integer> INTEGER = createField("INTEGER", org.jooq.impl.SQLDataType.INTEGER, this); /** * The column <code>test2.t_639_numbers_table.LONG</code>. */ public final org.jooq.TableField<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Long> LONG = createField("LONG", org.jooq.impl.SQLDataType.BIGINT, this); /** * The column <code>test2.t_639_numbers_table.BYTE_DECIMAL</code>. */ public final org.jooq.TableField<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Byte> BYTE_DECIMAL = createField("BYTE_DECIMAL", org.jooq.impl.SQLDataType.TINYINT, this); /** * The column <code>test2.t_639_numbers_table.SHORT_DECIMAL</code>. */ public final org.jooq.TableField<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Short> SHORT_DECIMAL = createField("SHORT_DECIMAL", org.jooq.impl.SQLDataType.SMALLINT, this); /** * The column <code>test2.t_639_numbers_table.INTEGER_DECIMAL</code>. */ public final org.jooq.TableField<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Integer> INTEGER_DECIMAL = createField("INTEGER_DECIMAL", org.jooq.impl.SQLDataType.INTEGER, this); /** * The column <code>test2.t_639_numbers_table.LONG_DECIMAL</code>. */ public final org.jooq.TableField<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Long> LONG_DECIMAL = createField("LONG_DECIMAL", org.jooq.impl.SQLDataType.BIGINT, this); /** * The column <code>test2.t_639_numbers_table.BIG_INTEGER</code>. */ public final org.jooq.TableField<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord, java.math.BigInteger> BIG_INTEGER = createField("BIG_INTEGER", org.jooq.impl.SQLDataType.DECIMAL_INTEGER.precision(22), this); /** * The column <code>test2.t_639_numbers_table.BIG_DECIMAL</code>. */ public final org.jooq.TableField<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord, java.math.BigDecimal> BIG_DECIMAL = createField("BIG_DECIMAL", org.jooq.impl.SQLDataType.DECIMAL.precision(22, 5), this); /** * The column <code>test2.t_639_numbers_table.FLOAT</code>. */ public final org.jooq.TableField<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Double> FLOAT = createField("FLOAT", org.jooq.impl.SQLDataType.FLOAT, this); /** * The column <code>test2.t_639_numbers_table.DOUBLE</code>. */ public final org.jooq.TableField<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Double> DOUBLE = createField("DOUBLE", org.jooq.impl.SQLDataType.DOUBLE, this); /** * Create a <code>test2.t_639_numbers_table</code> table reference */ public T_639NumbersTable() { super("t_639_numbers_table", org.jooq.test.mysql2.generatedclasses.Test2.TEST2); } /** * Create an aliased <code>test2.t_639_numbers_table</code> table reference */ public T_639NumbersTable(java.lang.String alias) { super(alias, org.jooq.test.mysql2.generatedclasses.Test2.TEST2, org.jooq.test.mysql2.generatedclasses.tables.T_639NumbersTable.T_639_NUMBERS_TABLE); } /** * {@inheritDoc} */ @Override public org.jooq.UniqueKey<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord> getPrimaryKey() { return org.jooq.test.mysql2.generatedclasses.Keys.KEY_T_639_NUMBERS_TABLE_PRIMARY; } /** * {@inheritDoc} */ @Override public java.util.List<org.jooq.UniqueKey<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord>> getKeys() { return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.test.mysql2.generatedclasses.tables.records.T_639NumbersTableRecord>>asList(org.jooq.test.mysql2.generatedclasses.Keys.KEY_T_639_NUMBERS_TABLE_PRIMARY); } /** * {@inheritDoc} */ @Override public org.jooq.test.mysql2.generatedclasses.tables.T_639NumbersTable as(java.lang.String alias) { return new org.jooq.test.mysql2.generatedclasses.tables.T_639NumbersTable(alias); } }
[ "lukas.eder@gmail.com" ]
lukas.eder@gmail.com
7aa2e9cedd595df532a586bcf3a2173636e973a5
7a88a6d286d4cd26d7c52dee2864f8d5080a77a9
/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/WEB_002dINF/views/test_jsp.java
9f58be95a7317b2a63d483ca2cbe126ca202a408
[]
no_license
PaulXuOuyang/ssh
2335a9d506841200d107d5ce042c5560a18de699
820d016df9dbab198d16cde25aad65ccb927a6a6
refs/heads/master
2020-03-09T11:59:53.794181
2018-04-10T03:43:34
2018-04-10T03:43:34
128,774,476
0
0
null
null
null
null
UTF-8
Java
false
false
3,073
java
/* * Generated by the Jasper component of Apache Tomcat * Version: Apache Tomcat/7.0.37 * Generated at: 2018-04-04 08:54:51 UTC * Note: The last modified time of this file was set to * the last modified time of the source file after * generation to assist with modification tracking. */ package org.apache.jsp.WEB_002dINF.views; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class test_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final javax.servlet.jsp.JspFactory _jspxFactory = javax.servlet.jsp.JspFactory.getDefaultFactory(); private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants; private javax.el.ExpressionFactory _el_expressionfactory; private org.apache.tomcat.InstanceManager _jsp_instancemanager; public java.util.Map<java.lang.String,java.lang.Long> getDependants() { return _jspx_dependants; } public void _jspInit() { _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig()); } public void _jspDestroy() { } public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("<html>\r\n"); out.write("<body>\r\n"); out.write("<center>\r\n"); out.write("<h2 style=\"color: #ff261a;\">this is my test page!</h2>\r\n"); out.write("</center>\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) {} if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } } }
[ "347444050@qq.com" ]
347444050@qq.com
ee432b83116d9e517395144c59c0a265b17cbff6
f7ddebdf7c4c503cd0c1fa2f86c9f27e586e7d7c
/gen/com/aarbot/BreakBooks/R.java
c4d5b9cce29bbd07459da256855a51f86e7f0ad6
[ "Apache-2.0" ]
permissive
AaronBDC/BreakBooks
e6e7198b649e8e7c138c1de59089ea8c90bdc155
25d8a839a4f39101b75f67d201fe006f100303e6
refs/heads/master
2021-01-21T16:15:35.407939
2017-05-20T10:34:13
2017-05-20T10:34:13
91,881,784
0
0
null
null
null
null
UTF-8
Java
false
false
9,429
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.aarbot.BreakBooks; public final class R { public static final class array { public static final int difficultyNames=0x7f080000; public static final int difficultyValues=0x7f080001; } public static final class attr { } public static final class color { public static final int ic_dark_blue=0x7f050003; public static final int ic_dark_green=0x7f050005; public static final int ic_dark_orange=0x7f050006; public static final int ic_dark_purple=0x7f050004; public static final int ic_dark_red=0x7f050007; public static final int ic_lite_blue=0x7f050008; public static final int ic_lite_green=0x7f05000a; public static final int ic_lite_orange=0x7f05000b; public static final int ic_lite_purple=0x7f050009; public static final int ic_lite_red=0x7f05000c; public static final int my_black=0x7f050002; public static final int my_blue=0x7f050000; public static final int my_red=0x7f050001; } public static final class dimen { public static final int newMaxHeigth=0x7f060000; } public static final class drawable { public static final int ic_action_name=0x7f020000; public static final int ic_action_name2=0x7f020001; public static final int ic_action_name_menu=0x7f020002; public static final int ic_books=0x7f020003; public static final int ic_break=0x7f020004; public static final int ic_launcher=0x7f020005; public static final int ic_launcher2=0x7f020006; public static final int ic_launcher3=0x7f020007; public static final int ic_launcher4=0x7f020008; public static final int ic_launcher5=0x7f020009; public static final int ic_launcher6=0x7f02000a; public static final int ic_launcher7=0x7f02000b; public static final int ic_launcher_menu=0x7f02000c; public static final int ic_menu=0x7f02000d; public static final int ic_menu_name=0x7f02000e; public static final int ic_menu_name2=0x7f02000f; public static final int ic_menu_name3=0x7f020010; public static final int ic_stages=0x7f020011; public static final int ic_stat_name=0x7f020012; public static final int icon=0x7f020013; public static final int logo=0x7f020014; public static final int superlogo=0x7f020015; public static final int texture01=0x7f020016; } public static final class id { public static final int TableLayout1=0x7f0b000a; public static final int TestLayout1=0x7f0b0001; public static final int TestLayout2=0x7f0b0002; public static final int cannonStart=0x7f0b0008; public static final int cannonViewEasy=0x7f0b0004; public static final int cannonViewHard=0x7f0b0006; public static final int cannonViewMed=0x7f0b0009; public static final int group_social=0x7f0b0013; public static final int imageView1=0x7f0b0007; public static final int item_blog=0x7f0b0011; public static final int item_depot=0x7f0b0012; public static final int item_email=0x7f0b000f; public static final int item_facebook=0x7f0b0015; public static final int item_pause=0x7f0b000c; public static final int item_prefs=0x7f0b000e; public static final int item_resume=0x7f0b000d; public static final int item_review=0x7f0b0010; public static final int item_start_sound=0x7f0b0017; public static final int item_stop_sound=0x7f0b0016; public static final int item_twitter=0x7f0b0014; public static final int jellyViewEasy=0x7f0b0000; public static final int listView1=0x7f0b0005; public static final int tableRow1=0x7f0b000b; public static final int tableRow2=0x7f0b0003; } public static final class layout { public static final int easy=0x7f030000; public static final int ghost=0x7f030001; public static final int hard=0x7f030002; public static final int how=0x7f030003; public static final int main=0x7f030004; public static final int med=0x7f030005; public static final int start=0x7f030006; } public static final class menu { public static final int menu=0x7f0a0000; } public static final class raw { public static final int blocker_hit=0x7f040000; public static final int booster=0x7f040001; public static final int booster_two=0x7f040002; public static final int cannon_fire=0x7f040003; public static final int doink=0x7f040004; public static final int freeze=0x7f040005; public static final int hiscore=0x7f040006; public static final int target_hit=0x7f040007; public static final int you_lose=0x7f040008; public static final int you_win=0x7f040009; } public static final class string { public static final int Mute=0x7f070045; public static final int app_name=0x7f070023; public static final int backgroundPaint_setColor=0x7f070021; public static final int barrelEnd=0x7f070018; public static final int blocker_end=0x7f07000e; public static final int blocker_start=0x7f07000d; public static final int blockerBeginning=0x7f070006; public static final int blockerDistance=0x7f070005; public static final int blockerEnd=0x7f070007; public static final int blockerPaint_setColor=0x7f070003; public static final int blockerPaint_setStrokeWidth=0x7f07001e; public static final int blockerTwo_end=0x7f070010; public static final int blockerTwo_start=0x7f07000f; public static final int blockerTwoBeginning=0x7f070009; public static final int blockerTwoDistance=0x7f070008; public static final int blockerTwoEnd=0x7f07000a; public static final int blockerTwoPaint_setColor=0x7f070004; public static final int blockerTwoPaint_setStrokeWidth=0x7f07001f; public static final int blog=0x7f070042; public static final int boosterblock_one=0x7f070034; public static final int boosterblock_two=0x7f070035; public static final int cannonPaint_setColor=0x7f07001d; public static final int cannonPaint_setStrokeWidth=0x7f07001c; public static final int cannonballPaint_setColor=0x7f070022; public static final int cannonballRadius=0x7f070000; public static final int cannonballSpeed=0x7f070001; public static final int cannonstart=0x7f07002d; public static final int depot=0x7f070041; public static final int easy=0x7f07002a; public static final int facebook=0x7f07003f; public static final int ghost=0x7f070038; public static final int greenblocks=0x7f070032; public static final int hard=0x7f07002c; public static final int how=0x7f070039; public static final int initialBlockerTwoVelocity=0x7f07000c; public static final int initialBlockerVelocity=0x7f07000b; public static final int initialTargetVelocity=0x7f070015; public static final int instructions=0x7f070036; public static final int item_review=0x7f07003b; public static final int lineWidth=0x7f070002; public static final int lose=0x7f070027; public static final int medium=0x7f07002b; public static final int menu_settings=0x7f07002e; public static final int mute=0x7f070047; public static final int next_level=0x7f070037; public static final int pause=0x7f070043; public static final int pieceLength=0x7f070014; public static final int preferences=0x7f070031; public static final int reset_game=0x7f070025; public static final int results_format=0x7f070024; public static final int resume=0x7f070044; public static final int scoreboard=0x7f070029; public static final int send_email=0x7f07003a; public static final int sound_off=0x7f07002f; public static final int sound_on=0x7f070030; public static final int stage_one=0x7f07003c; public static final int stage_three=0x7f07003e; public static final int stage_two=0x7f07003d; public static final int target_end=0x7f070017; public static final int target_start=0x7f070016; public static final int targetBeginning=0x7f070012; public static final int targetDistance=0x7f070011; public static final int targetEnd=0x7f070013; public static final int targetPaint_setStrokeWidth=0x7f070020; public static final int textPaint_setAntiAlias=0x7f07001a; public static final int textPaint_setColor=0x7f07001b; public static final int textPaint_setTextSize=0x7f070019; public static final int thetarget=0x7f070033; public static final int time_remaining_format=0x7f070028; public static final int twitter=0x7f070040; public static final int unmute=0x7f070046; public static final int win=0x7f070026; } public static final class style { public static final int AppTheme=0x7f090000; } }
[ "aaronbdc@mail.com" ]
aaronbdc@mail.com
2d59fdf2271af44289e32704cf4dabc0f9381439
e6023252f2150f40288fc4b1608be6585ba80585
/app/src/main/java/com/example/q/cs496_2/views/MarkerView.java
1303bfa805c16d4c58898656ae2150b43ae68246
[]
no_license
estanie/cs496_2
27e0f4cc8df0180db89b69d17671630588d7679d
901264daec4092fe36e86350a02a284800737d9d
refs/heads/master
2020-04-14T11:01:24.621527
2019-01-09T05:10:47
2019-01-09T05:10:47
163,802,090
0
0
null
null
null
null
UTF-8
Java
false
false
3,412
java
package com.example.q.cs496_2.views; import android.content.Context; import android.graphics.Canvas; import android.graphics.Rect; import android.util.AttributeSet; import android.view.KeyEvent; import android.view.MotionEvent; import android.widget.ImageView; public class MarkerView extends ImageView { public interface MarkerListener { public void markerTouchStart(MarkerView marker, float pos); public void markerTouchMove(MarkerView marker, float pos); public void markerTouchEnd(MarkerView marker); public void markerFocus(MarkerView marker); public void markerLeft(MarkerView marker, int velocity); public void markerRight(MarkerView marker, int velocity); public void markerEnter(MarkerView marker); public void markerKeyUp(); public void markerDraw(); }; private int mVelocity; private MarkerListener mListener; public MarkerView(Context context, AttributeSet attrs) { super(context, attrs); // Make sure we get keys setFocusable(true); mVelocity = 0; mListener = null; } public void setListener(MarkerListener listener) { mListener = listener; } @Override public boolean onTouchEvent(MotionEvent event) { switch(event.getAction()) { case MotionEvent.ACTION_DOWN: requestFocus(); // We use raw x because this window itself is going to // move, which will screw up the "local" coordinates mListener.markerTouchStart(this, event.getRawX()); break; case MotionEvent.ACTION_MOVE: // We use raw x because this window itself is going to // move, which will screw up the "local" coordinates mListener.markerTouchMove(this, event.getRawX()); break; case MotionEvent.ACTION_UP: mListener.markerTouchEnd(this); break; } return true; } @Override protected void onFocusChanged(boolean gainFocus, int direction, Rect previouslyFocusedRect) { if (gainFocus && mListener != null) mListener.markerFocus(this); super.onFocusChanged(gainFocus, direction, previouslyFocusedRect); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); if (mListener != null) mListener.markerDraw(); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { mVelocity++; int v = (int)Math.sqrt(1 + mVelocity / 2); if (mListener != null) { if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT) { mListener.markerLeft(this, v); return true; } else if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT) { mListener.markerRight(this, v); return true; } else if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { mListener.markerEnter(this); return true; } } return super.onKeyDown(keyCode, event); } @Override public boolean onKeyUp(int keyCode, KeyEvent event) { mVelocity = 0; if (mListener != null) mListener.markerKeyUp(); return super.onKeyDown(keyCode, event); } }
[ "estanie@sm.ac.kr" ]
estanie@sm.ac.kr
b485cb7c37baa3ef3030558b2eba5e11253b0340
aaa59b0a62b1e0796b56ecf624ee13f258bc8649
/L203/src/lab3/BoxDriver.java
1e0ed06c3c8f5b9b5d0f8e9980f158e560f8c519
[]
no_license
zwh18123/0911
b748a207a717ca807d52959d5d676206eb39e39c
d798ffa49125c3b6b3f439330c20fb75e17efacc
refs/heads/master
2020-03-28T12:42:34.936762
2018-09-28T16:00:20
2018-09-28T16:00:20
148,326,454
0
0
null
null
null
null
UTF-8
Java
false
false
2,363
java
/* Name: zhshuorong Lab Section: L2 Lecture Section:03 Date:06/09/2018 Assignment:Lab3 Description:Part_2 */ package lab3; public class BoxDriver { public static void main( String[] args ) { Box box1 = new Box( ); // this references the no-arg constructor Box box2 = new Box( 20., 30., 40., "green" ); Box box3 = new Box(); // Instantiate an object of type Box and name it box3. Set the dimensions // to be height = 18, width = 36, depth = 18. The color is blue. box3.setcolour("blue"); box3.setheight(18); box3.setwidth(36); box3.setdepth(18); Box box4 = new Box(box3);// Instantiate an object of type Box using the copy constructor. Name the object box4.setcolour("red");// Change the box color for box4 to red: box1.setwidth(24);// Change the width dimension of box1 to 24. : // Display the surface area of each box and label your output by box color. System.out.println(box1.getcolour()+"area is" + "\n" + box1.boxarea()); System.out.println(box2.getcolour()+ "area is" + "\n" + box2.boxarea()); System.out.println(box3.getcolour()+ "area is" + "\n" + box3.boxarea()); System.out.println(box4.getcolour()+ "area is" + "\n" + box4.boxarea()); System.out.println("the all 4 box area is " + box1.boxarea()+box2.boxarea()+box3.boxarea()+box4.boxarea()); // Display the total surface area of all the combined boxes: // Display the volume of each individual box and label the box by color: System.out.println(box1.getcolour()+"volume is" + "\n" + box1.boxvolume()); System.out.println(box2.getcolour()+"volume is" + "\n" + box2.boxvolume()); System.out.println(box3.getcolour()+"volume is" + "\n" + box3.boxvolume()); System.out.println(box4.getcolour()+"volume is" + "\n" + box4.boxvolume()); // Display the total storage volume of all the combined boxes: System.out.println("the all 4 box bolume is " + box1.boxvolume()+box2.boxvolume()+box3.boxvolume()+box4.boxvolume()); box1.setcolour("yellow"); box1.setheight(15);// Change the color of box1 to yellow and change its height to 15. // Use the Box toString method to show the state of each object. System.out.println(box1.toString()); System.out.println(box2.toString()); System.out.println(box3.toString()); System.out.println(box4.toString()); } }
[ "zwh18123@sina.com" ]
zwh18123@sina.com
47439058cd9a3e09f7ad1524ef32dbf0ec3a3aa7
d7cdc2ee0ae891fbb62901c8c1a82a98152fe91c
/src/main/java/com/cdtian/socket/read/Server.java
52a5cff4f23e4977c341cc312526374521b3113a
[]
no_license
cdtian/java-tutorials
ab3492d40659b71cf55c256b001cd5048dd91371
f7cb2f04c8f986f13e0c32bfcb6b0ec10f3f903e
refs/heads/master
2021-07-07T13:52:23.840505
2019-08-14T10:51:24
2019-08-14T10:51:24
197,298,753
0
0
null
2020-10-13T14:38:44
2019-07-17T02:17:49
Java
UTF-8
Java
false
false
2,202
java
package com.cdtian.socket.read; import java.io.BufferedInputStream; import java.io.DataInputStream; import java.net.ServerSocket; import java.net.Socket; import java.nio.charset.StandardCharsets; public class Server { public void runServer(int port) { //Start the server and wait for connection try { ServerSocket server = new ServerSocket(port); System.out.println("Server Started. Waiting for connection ..."); Socket socket = server.accept(); System.out.println("Got connection from client."); //Get input stream from socket variable and convert the same to DataInputStream DataInputStream in = new DataInputStream(new BufferedInputStream(socket.getInputStream())); //Read type and length of data char dataType = in.readChar(); int length = in.readInt(); System.out.println("Type : "+dataType); System.out.println("Lenght :"+length); if(dataType == 's') { //Read String data in bytes byte[] messageByte = new byte[length]; boolean end = false; StringBuilder dataString = new StringBuilder(length); int totalBytesRead = 0; //We need to run while loop, to read all data in that stream while(!end) { int currentBytesRead = in.read(messageByte); totalBytesRead = currentBytesRead + totalBytesRead; if(totalBytesRead <= length) { dataString.append(new String(messageByte,0,currentBytesRead,StandardCharsets.UTF_8)); } else { dataString.append(new String(messageByte,0,length - totalBytesRead + currentBytesRead,StandardCharsets.UTF_8)); } if(dataString.length()>=length) { end = true; } } System.out.println("Read "+length+" bytes of message from client. Message = "+dataString); } } catch (Exception e) { e.printStackTrace(); } } }
[ "tianyj3@lenovo.com" ]
tianyj3@lenovo.com