blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
332
content_id
stringlengths
40
40
detected_licenses
listlengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
7
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
557 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
684M
star_events_count
int64
0
77.7k
fork_events_count
int64
0
48k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
82 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
5.41M
extension
stringclasses
11 values
content
stringlengths
7
5.41M
authors
listlengths
1
1
author
stringlengths
0
161
655240a2346acfc10bcf17c9eecb3882cc9fbc89
7d1c39cbb4c72a44b0e45f3c2edffa34f6d96706
/src/Main.java
a2c07027ce8f068eb154e01b7104578d67cb41ea
[]
no_license
Arsham1024/Numerical_Methods
09330a70dfdd7855ed42d653dbaff219b7b8036e
a3aae6e7c18adc9cd7a1fdc1a56813f168b634a3
refs/heads/master
2023-07-17T12:13:26.857637
2021-09-03T22:00:41
2021-09-03T22:00:41
399,250,774
0
0
null
null
null
null
UTF-8
Java
false
false
6,650
java
import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.Arrays; public class Main { public static void main(String[] args) throws IOException { FileWriter outputFile = new FileWriter("./output.txt"); /** * using bisection method to find the solutions. * we know there are 3 solutions and they are all between 0-4 * first solution is between 0-1 * second 1-2 * third 3-4 */ drawLine("Bisection Method"); testBisection(outputFile); /** * using False Position method to find the roots to the equations */ drawLine("False Position Method"); testFalsePosition(outputFile); /** * using Secant method to find the roots to the equations */ drawLine("Secant Method"); testSecantMethod(outputFile); /** * using Modified Secant method to find the roots to the equations */ drawLine("Modified Secant Method"); // testModifiedSecantMethod(outputFile); /** * using Newton's method to find the roots to the equations */ drawLine("Newton Method"); testNewtonsMethod(outputFile); } public static void testBisection(FileWriter outputFile) throws IOException { //This is the first equation test Bisection b1 = new Bisection(); System.out.println("Solutions for the first equation: "); System.out.printf("The solution: %.7f\n\n", b1.solve_F1Bisection(0,1)); System.out.printf("The solution: %.7f\n\n", b1.solve_F1Bisection(1,2)); System.out.printf("The solution: %.7f\n", b1.solve_F1Bisection(3,4)); System.out.println(b1.epsilonValues_Bisection.toString()); outputFile.write("\nbisection\nFirst equation: \n"); for (int i = 0; i <b1.epsilonValues_Bisection.size() ; i++) { outputFile.write(b1.epsilonValues_Bisection.get(i).toString() + "\n"); } dottedLine(); //This is the second equation test Bisection b2 = new Bisection(); System.out.println("Solutions for the second equation: "); System.out.println("The solution: " + b2.solve_F2Bisection(120,130)); System.out.println(); System.out.println(b2.epsilonValues_Bisection.toString()); outputFile.write("second equation: \n"); for (int i = 0; i <b2.epsilonValues_Bisection.size() ; i++) { outputFile.write(b2.epsilonValues_Bisection.get(i).toString() + "\n"); } } public static void testFalsePosition(FileWriter outputFile) throws IOException { False_Position fs1 = new False_Position(); System.out.println("Solutions to the first equation: "); System.out.printf("the solution: %.7f\n\n", fs1.solve_F1(0,1)); System.out.printf("the solution: %.7f\n\n", fs1.solve_F1(1,2)); System.out.printf("the solution: %.7f\n", fs1.solve_F1(3,4)); System.out.println(fs1.epsilonValues_FalsePosition.toString()); outputFile.write("\nFalse Position\nFirst equation: \n"); for (int i = 0; i <fs1.epsilonValues_FalsePosition.size() ; i++) { outputFile.write(fs1.epsilonValues_FalsePosition.get(i).toString() + "\n"); } dottedLine(); False_Position fs2 = new False_Position(); System.out.println("The solution to the second equation: "); System.out.println("The solution: " + fs2.solve_F2(120,130)); outputFile.write("second equation: \n"); for (int i = 0; i <fs2.epsilonValues_FalsePosition.size() ; i++) { outputFile.write(fs2.epsilonValues_FalsePosition.get(i).toString() + "\n"); } System.out.println(fs2.epsilonValues_FalsePosition.toString()); } private static void testSecantMethod(FileWriter outputFile) throws IOException { // here I am using values that are both located on one side of the root in order to check. Secant_Regular sr = new Secant_Regular(); sr.solve_F1(-1 , 0); sr.solve_F1(1 , 2); sr.solve_F1(2.3 , 3.3); System.out.println(sr.epsilonValues_Secant.toString()); outputFile.write("\nSecant Method\nFirst equation: \n"); for (int i = 0; i <sr.epsilonValues_Secant.size() ; i++) { outputFile.write(sr.epsilonValues_Secant.get(i).toString() + "\n"); } dottedLine(); Secant_Regular sr2 = new Secant_Regular(); sr2.solve_F2(120, 121); System.out.println(sr2.epsilonValues_Secant.toString()); outputFile.write("second equation: \n"); for (int i = 0; i <sr2.epsilonValues_Secant.size() ; i++) { outputFile.write(sr2.epsilonValues_Secant.get(i).toString() + "\n"); } } private static void testModifiedSecantMethod(FileWriter outputFile) { Secant_Modified sm = new Secant_Modified(); sm.solve_F1(0.5); dottedLine(); Secant_Modified sm2 = new Secant_Modified(); sm2.solve_F2(123); } private static void testNewtonsMethod(FileWriter outputFile) throws IOException { Newton_Raphson nr = new Newton_Raphson(); nr.solve_F1(0.75); nr.solve_F1(1.5); nr.solve_F1(5.5); System.out.println(nr.epsilonValues_Newton.toString()); outputFile.write("\nNewton Method\nFirst equation: \n"); for (int i = 0; i <nr.epsilonValues_Newton.size() ; i++) { outputFile.write(nr.epsilonValues_Newton.get(i).toString() + "\n"); } dottedLine(); Newton_Raphson nr2 = new Newton_Raphson(); nr2.solve_F2(123); System.out.println(nr2.epsilonValues_Newton.toString()); outputFile.write("\nSecond equation: \n"); for (int i = 0; i <nr2.epsilonValues_Newton.size() ; i++) { outputFile.write(nr2.epsilonValues_Newton.get(i).toString() + "\n"); } outputFile.close(); } //This method just draws a line public static void drawLine(String name){ for (int i = 0; i <20 ; i++) { System.out.print("-"); } System.out.printf("%S First Equation", name); for (int i = 0; i <20 ; i++) { System.out.print("-"); } System.out.println(); } public static void dottedLine(){ for (int i = 0; i <20 ; i++) { System.out.print("."); } System.out.print("Second Equation"); for (int i = 0; i <20 ; i++) { System.out.print("."); } System.out.println(); } }
[ "Arsham512@gmail.com" ]
Arsham512@gmail.com
add347a51bb2058e548b98deb204fe3733a8f351
037eed9b2b7ca4af8c26aab6d02361490d049a5a
/ eoclipse --username leforthomas/com.metaaps.eoclipse.viewers/src/com/metaaps/eoclipse/viewers/AllViewers.java
27a7c12b5bdb5009c27002d0581e572b631d016c
[]
no_license
TheProjecter/eoclipse
1a0ec19028ff3886767f024e49da7c2442f8ee95
9ca91e997846e480a33c44b039484797d847b444
refs/heads/master
2021-01-10T15:17:58.029427
2010-11-18T12:11:04
2010-11-18T12:11:04
43,222,378
0
0
null
null
null
null
UTF-8
Java
false
false
1,260
java
/******************************************************************************* * Copyright (c) 2010 METAAPS SRL(U). * 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: * METAAPS SRL(U) - created by Thomas Lefort - initial API and implementation ******************************************************************************/ package com.metaaps.eoclipse.viewers; import java.util.ArrayList; import java.util.List; import com.metaaps.eoclipse.common.IWorkFlow; import com.metaaps.eoclipse.common.datasets.IDataSets; import com.metaaps.eoclipse.common.views.IViewerImplementation; import com.metaaps.eoclipse.common.views.IViewerItem; import com.metaaps.eoclipse.common.views.IViewers; /** * @author leforthomas * * Utility Class for retrieving a viewer * */ public class AllViewers implements IViewers { public AllViewers() { // TODO Auto-generated constructor stub } @Override public IViewerItem findViewer(String viewID) { // TODO Auto-generated method stub return Viewers.getInstance().findViewer(viewID); } }
[ "leforthomas@gmail.com" ]
leforthomas@gmail.com
545e0444116df2204168206e2ab5c9fa8746e2aa
d7f314c83f22412a0f01e2dce484a5e7b066e75b
/SpringMvcDemo/src/com/springmvc/demo/StudentController.java
b054beb66dbe3c6cab42a9a041e3c34c6e041c26
[]
no_license
VineethaG/Java
322310be6762e3af094e300df16f05e718c141ed
f3f1d303129ae73a00dc844d6a26865248dcd62b
refs/heads/master
2023-07-23T08:39:07.493834
2019-07-12T02:27:16
2019-07-12T02:27:16
151,050,326
0
0
null
2023-07-18T07:45:39
2018-10-01T07:19:48
Java
UTF-8
Java
false
false
1,576
java
package com.springmvc.demo; import javax.validation.Valid; import javax.xml.bind.Binder; import org.springframework.beans.propertyeditors.StringTrimmerEditor; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.validation.BindingResult; import org.springframework.web.bind.WebDataBinder; import org.springframework.web.bind.annotation.InitBinder; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; @Controller @RequestMapping("/student") public class StudentController { // Add an initbinder, // trim input strings and remove the leading and trailing whitespaces @InitBinder public void initBinder(WebDataBinder databinder) { StringTrimmerEditor stringTimmerEditor = new StringTrimmerEditor(true); databinder.registerCustomEditor(String.class, stringTimmerEditor); } @RequestMapping("showForm") public String showForm(Model myModel) { Student student = new Student(); myModel.addAttribute("student", student); return "student-form"; } @RequestMapping("processForm") public String processForm(@Valid @ModelAttribute("student") Student student, BindingResult theBindingResult) { if (theBindingResult.hasErrors()) { System.out.println(student.getFirstName() + " ||" + student.getLastName() + "|| " + student.getCountry()); return "student-form"; } else { System.out.println(student.getFirstName() + "||" + student.getLastName() + "||" + student.getCountry()); return "student-confirmation"; } } }
[ "35466872+VineethaG@users.noreply.github.com" ]
35466872+VineethaG@users.noreply.github.com
2f1f6795ffb92ae320a57fe4036738f5149f6a3c
38360c38c6c355740cfbbb5d660ba7a5ce6ec505
/src/com/trilead/ssh2/crypto/digest/HMAC.java
8d52758dc0e859618cd1a82fbfa5af8d7d218279
[ "Apache-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-2.0-only" ]
permissive
vx/connectbot
4cbba6a249200e37f3994401cf28a4508cf165af
2091ae7f2e5c8903ec88bc8c42b92c5a4e27fa76
refs/heads/stable
2021-06-05T07:10:44.593308
2019-05-06T09:39:12
2019-05-06T09:39:12
2,919,224
111
36
Apache-2.0
2019-09-30T11:30:16
2011-12-05T19:20:09
Java
UTF-8
Java
false
false
1,578
java
package com.trilead.ssh2.crypto.digest; /** * HMAC. * * @author Christian Plattner, plattner@trilead.com * @version $Id: HMAC.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ public final class HMAC implements Digest { Digest md; byte[] k_xor_ipad; byte[] k_xor_opad; byte[] tmp; int size; public HMAC(Digest md, byte[] key, int size) { this.md = md; this.size = size; tmp = new byte[md.getDigestLength()]; final int BLOCKSIZE = 64; k_xor_ipad = new byte[BLOCKSIZE]; k_xor_opad = new byte[BLOCKSIZE]; if (key.length > BLOCKSIZE) { md.reset(); md.update(key); md.digest(tmp); key = tmp; } System.arraycopy(key, 0, k_xor_ipad, 0, key.length); System.arraycopy(key, 0, k_xor_opad, 0, key.length); for (int i = 0; i < BLOCKSIZE; i++) { k_xor_ipad[i] ^= 0x36; k_xor_opad[i] ^= 0x5C; } md.update(k_xor_ipad); } public final int getDigestLength() { return size; } public final void update(byte b) { md.update(b); } public final void update(byte[] b) { md.update(b); } public final void update(byte[] b, int off, int len) { md.update(b, off, len); } public final void reset() { md.reset(); md.update(k_xor_ipad); } public final void digest(byte[] out) { digest(out, 0); } public final void digest(byte[] out, int off) { md.digest(tmp); md.update(k_xor_opad); md.update(tmp); md.digest(tmp); System.arraycopy(tmp, 0, out, off, size); md.update(k_xor_ipad); } }
[ "kenny@the-b.org" ]
kenny@the-b.org
ee4d42d0bd3eca9fe9eb1f00a64a91c67d823413
666deea0f5aef45d56bc3e81d73a3e801bb9f07f
/sorella-mobile/android/app/src/main/java/com/sorella/MainActivity.java
c8373639a05b809cd77e8b4233c6d759ceea287c
[]
no_license
magga/hackathon-for-humanity-sorella
7ab6f21b04c56c5df7e326111c4624c841b51eb4
a24def416a020e40b56eda350635d6f25ca335ae
refs/heads/master
2021-09-07T14:41:38.195661
2018-02-24T06:13:31
2018-02-24T06:13:31
114,442,850
0
0
null
null
null
null
UTF-8
Java
false
false
359
java
package com.sorella; import com.facebook.react.ReactActivity; public class MainActivity extends ReactActivity { /** * Returns the name of the main component registered from JavaScript. * This is used to schedule rendering of the component. */ @Override protected String getMainComponentName() { return "Sorella"; } }
[ "magga.panna@live.com" ]
magga.panna@live.com
6e1c8354ec59e4522ffa72cfc691c628470963f6
20f7c0c37ec2f11196eae4ac443fa3e260eb2f71
/app/src/main/java/com/crs/musicapp/fragment/topdetail/TopSummaryFragment.java
57704bfc99f3c0da5567861b6c326a1ec9d0ff5a
[]
no_license
OtherSun/MusicApp
1200414542f3971a8bab35efce3c6cae326a79df
4fd767fc65e51967abbe067bda1efc4b7b1a564d
refs/heads/master
2021-01-12T02:45:32.645122
2017-01-05T08:17:55
2017-01-05T08:17:55
78,091,445
0
0
null
null
null
null
UTF-8
Java
false
false
724
java
package com.crs.musicapp.fragment.topdetail; import android.os.Bundle; 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.crs.musicapp.R; /** * Created by qf on 2016/12/23. */ public class TopSummaryFragment extends Fragment { private View inflateView; @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { if (inflateView == null) { inflateView = inflater.inflate(R.layout.top_detail_summary,container,false); } return inflateView; } }
[ "1982858558@qq.com" ]
1982858558@qq.com
0c05a8b1a978d844eea0484b63a462c8c96f3365
b35e42618890b01f01f5408c05741dc895db50a2
/opentsp-dongfeng-modules/opentsp-dongfeng-kafka/dongfeng-kafka-core/src/main/java/com/navinfo/opentsp/dongfeng/kafka/handler/Gps_3001_Handler.java
c806c944c422e8d17b7c97797970d06e15152f0e
[]
no_license
shanghaif/dongfeng-huanyou-platform
28eb5572a1f15452427456ceb3c7f3b3cf72dc84
67bcc02baab4ec883648b167717f356df9dded8d
refs/heads/master
2023-05-13T01:51:37.463721
2018-03-07T14:24:03
2018-03-07T14:26:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,428
java
package com.navinfo.opentsp.dongfeng.kafka.handler; import com.navinfo.opentsp.dongfeng.kafka.configuration.kafka.AbstractKafkaCommandHandler; import com.navinfo.opentsp.dongfeng.kafka.configuration.kafka.KafkaCommand; import com.navinfo.opentsp.dongfeng.kafka.configuration.kafka.KafkaConsumerHandler; import com.navinfo.opentsp.dongfeng.kafka.service.IGps_3001_Service; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; /** * 通用应答消费(kafka) * @author fengwm * @version 1.0 * @date 2017-03-29 * @modify * @copyright Navi Tsp */ @KafkaConsumerHandler(topic = "qq_poscan_pkt", commandId = "3001") @Component public class Gps_3001_Handler extends AbstractKafkaCommandHandler { private static final Logger logger = LoggerFactory.getLogger(Gps_3001_Handler.class); @Autowired private IGps_3001_Service gps_3001_Service; protected Gps_3001_Handler() { super(KafkaCommand.class); } @Override public void handle(KafkaCommand kafkaCommand) { try { logger.info("==========accept 3001 location data starting=========="); gps_3001_Service.businessManage(kafkaCommand); } catch (Exception e) { logger.error("==3001 location data format error!==", e); } } }
[ "zhangtiantong@aerozhonghuan.com" ]
zhangtiantong@aerozhonghuan.com
082610460f982a21d83a996c47a9174c756b684c
940f9ce97f052ab36db8d525df588f439b0f7ded
/src/main/java/com/fantasticsource/mctools/animation/LayerHeldItemEdit.java
02f397fcb3fd5246940319b50436d97d0c07e66e
[]
no_license
Laike-Endaril/Fantastic-Lib
c3b511413d52185ebf02d76d3e74aac37974ea8f
d03fd9011193eb353913bed147683ef8fa20d483
refs/heads/1.12.2
2022-12-22T11:53:04.388224
2022-12-18T20:00:53
2022-12-18T20:00:53
172,138,383
0
3
null
2020-07-10T21:03:45
2019-02-22T21:40:53
Java
UTF-8
Java
false
false
7,653
java
package com.fantasticsource.mctools.animation; import com.fantasticsource.tools.Tools; import com.fantasticsource.tools.component.path.CPath; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.block.model.ItemCameraTransforms; import net.minecraft.client.renderer.entity.RenderLivingBase; import net.minecraft.client.renderer.entity.layers.LayerHeldItem; import net.minecraft.entity.EntityLivingBase; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumHandSide; import org.lwjgl.opengl.GL11; public class LayerHeldItemEdit extends LayerHeldItem { public float[] leftItemScale = null, rightItemScale = null; public LayerHeldItemEdit(RenderLivingBase<?> livingEntityRendererIn) { super(livingEntityRendererIn); } public void doRenderLayer(EntityLivingBase entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale) { boolean flag = entitylivingbaseIn.getPrimaryHand() == EnumHandSide.RIGHT; ItemStack itemstack = flag ? entitylivingbaseIn.getHeldItemOffhand() : entitylivingbaseIn.getHeldItemMainhand(); ItemStack itemstack1 = flag ? entitylivingbaseIn.getHeldItemMainhand() : entitylivingbaseIn.getHeldItemOffhand(); if (!itemstack.isEmpty() || !itemstack1.isEmpty()) { GlStateManager.pushMatrix(); if (this.livingEntityRenderer.getMainModel().isChild) { GlStateManager.translate(0.0F, 0.75F, 0.0F); GlStateManager.scale(0.5F, 0.5F, 0.5F); } CPath.CPathData handItemSwap = CBipedAnimation.getCurrent(entitylivingbaseIn).handItemSwap; long millis = System.currentTimeMillis(); if (handItemSwap.path != null && handItemSwap.getRelativePosition(millis).values[0] < 0) { renderHeldItem(entitylivingbaseIn, itemstack, ItemCameraTransforms.TransformType.THIRD_PERSON_RIGHT_HAND, EnumHandSide.RIGHT, millis); renderHeldItem(entitylivingbaseIn, itemstack1, ItemCameraTransforms.TransformType.THIRD_PERSON_LEFT_HAND, EnumHandSide.LEFT, millis); } else { renderHeldItem(entitylivingbaseIn, itemstack1, ItemCameraTransforms.TransformType.THIRD_PERSON_RIGHT_HAND, EnumHandSide.RIGHT, millis); renderHeldItem(entitylivingbaseIn, itemstack, ItemCameraTransforms.TransformType.THIRD_PERSON_LEFT_HAND, EnumHandSide.LEFT, millis); } GlStateManager.popMatrix(); } } private void renderHeldItem(EntityLivingBase entity, ItemStack stack, ItemCameraTransforms.TransformType transformType, EnumHandSide handSide, long millis) { if (stack.isEmpty()) return; GlStateManager.pushMatrix(); if (entity.isSneaking()) GlStateManager.translate(0.0F, 0.2F, 0.0F); translateToHand(handSide); GlStateManager.rotate(-90.0F, 1.0F, 0.0F, 0.0F); GlStateManager.rotate(180.0F, 0.0F, 1.0F, 0.0F); boolean flag = handSide == EnumHandSide.LEFT; GlStateManager.translate((float) (flag ? -1 : 1) / 16.0F, 0.125F, -0.625F); CBipedAnimation animation = CBipedAnimation.getCurrent(entity); if (handSide == EnumHandSide.LEFT) { if (animation.leftItem.xScalePath.path != null) { leftItemScale = new float[]{(float) animation.leftItem.xScalePath.getRelativePosition(millis).values[0], 1, 1}; } if (animation.leftItem.yScalePath.path != null) { if (leftItemScale == null) leftItemScale = new float[]{1, (float) animation.leftItem.yScalePath.getRelativePosition(millis).values[0], 1}; else leftItemScale[1] = (float) animation.leftItem.yScalePath.getRelativePosition(millis).values[0]; } if (animation.leftItem.zScalePath.path != null) { if (leftItemScale == null) leftItemScale = new float[]{1, 1, (float) animation.leftItem.zScalePath.getRelativePosition(millis).values[0]}; else leftItemScale[2] = (float) animation.leftItem.zScalePath.getRelativePosition(millis).values[0]; } if (leftItemScale != null) GlStateManager.scale(leftItemScale[0], leftItemScale[1], leftItemScale[2]); GL11.glTranslatef(animation.leftItem.xPath.path == null ? 0 : (float) animation.leftItem.xPath.getRelativePosition(millis).values[0], animation.leftItem.yPath.path == null ? 0 : (float) animation.leftItem.yPath.getRelativePosition(millis).values[0], animation.leftItem.zPath.path == null ? 0 : (float) animation.leftItem.zPath.getRelativePosition(millis).values[0]); if (animation.leftItem.zRotPath.path != null) GL11.glRotated(Math.toDegrees(Tools.posMod(animation.leftItem.zRotPath.getRelativePosition(millis).values[0], Math.PI * 2)), 0, 0, 1); if (animation.leftItem.yRotPath.path != null) GL11.glRotated(Math.toDegrees(Tools.posMod(animation.leftItem.yRotPath.getRelativePosition(millis).values[0], Math.PI * 2)), 0, 1, 0); if (animation.leftItem.xRotPath.path != null) GL11.glRotated(Math.toDegrees(Tools.posMod(animation.leftItem.xRotPath.getRelativePosition(millis).values[0], Math.PI * 2)), 1, 0, 0); } else { if (animation.rightItem.xScalePath.path != null) { rightItemScale = new float[]{(float) animation.rightItem.xScalePath.getRelativePosition(millis).values[0], 1, 1}; } if (animation.rightItem.yScalePath.path != null) { if (rightItemScale == null) rightItemScale = new float[]{1, (float) animation.rightItem.yScalePath.getRelativePosition(millis).values[0], 1}; else rightItemScale[1] = (float) animation.rightItem.yScalePath.getRelativePosition(millis).values[0]; } if (animation.rightItem.zScalePath.path != null) { if (rightItemScale == null) rightItemScale = new float[]{1, 1, (float) animation.rightItem.zScalePath.getRelativePosition(millis).values[0]}; else rightItemScale[2] = (float) animation.rightItem.zScalePath.getRelativePosition(millis).values[0]; } if (rightItemScale != null) GlStateManager.scale(rightItemScale[0], rightItemScale[1], rightItemScale[2]); GL11.glTranslatef(animation.rightItem.xPath.path == null ? 0 : (float) animation.rightItem.xPath.getRelativePosition(millis).values[0], animation.rightItem.yPath.path == null ? 0 : (float) animation.rightItem.yPath.getRelativePosition(millis).values[0], animation.rightItem.zPath.path == null ? 0 : (float) animation.rightItem.zPath.getRelativePosition(millis).values[0]); if (animation.rightItem.zRotPath.path != null) GL11.glRotated(Math.toDegrees(Tools.posMod(animation.rightItem.zRotPath.getRelativePosition(millis).values[0], Math.PI * 2)), 0, 0, 1); if (animation.rightItem.yRotPath.path != null) GL11.glRotated(Math.toDegrees(Tools.posMod(animation.rightItem.yRotPath.getRelativePosition(millis).values[0], Math.PI * 2)), 0, 1, 0); if (animation.rightItem.xRotPath.path != null) GL11.glRotated(Math.toDegrees(Tools.posMod(animation.rightItem.xRotPath.getRelativePosition(millis).values[0], Math.PI * 2)), 1, 0, 0); } Minecraft.getMinecraft().getItemRenderer().renderItemSide(entity, stack, transformType, flag); GlStateManager.popMatrix(); } }
[ "silvertallon@gmail.com" ]
silvertallon@gmail.com
5bed3b9730f2e9d716c4e0b2f39d4bfd38aaadb1
3ef55e152decb43bdd90e3de821ffea1a2ec8f75
/large/module0459_public/tests/more/src/java/module0459_public_tests_more/a/Foo1.java
d4b6ef83efa91547f7f42d6f8c5d0f517dbfa02c
[ "BSD-3-Clause" ]
permissive
salesforce/bazel-ls-demo-project
5cc6ef749d65d6626080f3a94239b6a509ef145a
948ed278f87338edd7e40af68b8690ae4f73ebf0
refs/heads/master
2023-06-24T08:06:06.084651
2023-03-14T11:54:29
2023-03-14T11:54:29
241,489,944
0
5
BSD-3-Clause
2023-03-27T11:28:14
2020-02-18T23:30:47
Java
UTF-8
Java
false
false
1,596
java
package module0459_public_tests_more.a; import java.beans.beancontext.*; import java.io.*; import java.rmi.*; /** * Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut * labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. * Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. * * @see java.io.File * @see java.rmi.Remote * @see java.nio.file.FileStore */ @SuppressWarnings("all") public abstract class Foo1<X> extends module0459_public_tests_more.a.Foo0<X> implements module0459_public_tests_more.a.IFoo1<X> { java.sql.Array f0 = null; java.util.logging.Filter f1 = null; java.util.zip.Deflater f2 = null; public X element; public static Foo1 instance; public static Foo1 getInstance() { return instance; } public static <T> T create(java.util.List<T> input) { return module0459_public_tests_more.a.Foo0.create(input); } public String getName() { return module0459_public_tests_more.a.Foo0.getInstance().getName(); } public void setName(String string) { module0459_public_tests_more.a.Foo0.getInstance().setName(getName()); return; } public X get() { return (X)module0459_public_tests_more.a.Foo0.getInstance().get(); } public void set(Object element) { this.element = (X)element; module0459_public_tests_more.a.Foo0.getInstance().set(this.element); } public X call() throws Exception { return (X)module0459_public_tests_more.a.Foo0.getInstance().call(); } }
[ "gwagenknecht@salesforce.com" ]
gwagenknecht@salesforce.com
46e03788aa683ba413f20c55028b3f08804dee39
2cbd51ef9f84e75c334cff1c53293b5d696c41d3
/NewRetail_Common/src/main/java/com/feri/shop/newretail/common/util/JuHeSms_Util.java
b34139b9dcffc7a983ed3a00cd2161e897298198
[]
no_license
clawjqq/NewRetail
769cd688380adb6bd448058775be21d7c320d54e
63591789ccf0acb39200797a9400dedaf43f1754
refs/heads/master
2020-07-03T11:54:53.463429
2019-08-12T09:17:30
2019-08-12T09:17:30
201,897,593
1
0
null
2019-08-12T09:18:54
2019-08-12T09:18:53
null
UTF-8
Java
false
false
1,080
java
package com.feri.shop.newretail.common.util; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; /** *@Author feri *@Date Created in 2019/7/9 15:00 * 基于聚合数据 实现短信验证码的发送 */ public class JuHeSms_Util { public static final String SMS_URL="http://v.juhe.cn/sms/send"; public static final int TPL_Id=164087; public static final String SMS_KEY="97245bbce1178f6b82233a8c631e4c76"; public static boolean sendMsg(String phone,int code) throws UnsupportedEncodingException { StringBuffer buffer=new StringBuffer(SMS_URL); buffer.append("?mobile="+phone); buffer.append("&tpl_id="+TPL_Id); buffer.append("&tpl_value="+URLEncoder.encode("#code#="+code,"UTF-8")); buffer.append("&key="+SMS_KEY); String json=Http_Util.getStr(buffer.toString()); if(json!=null) { // JuheSms sms = JSON.parseObject(json, JuheSms.class); // return sms.getError_code() == 0; return true; }else { return false; } } }
[ "xingfei_work@163.com" ]
xingfei_work@163.com
b28930883840642469e9d1ceb5024260496ec9dc
b66f16394f82b3ce1afbbede99593a374c2519f8
/src/main/java/ch/ethz/idsc/gokart/gui/lab/AutoboxInitButton.java
5d1f9065986aa411214d330ac608e7b1770e3215
[]
no_license
btellstrom/retina
1ab2f09a58112ee5b405dcd4f410e01aa74ea210
0ec80bbc5df72c8e41d18e940cbcd336238d86fd
refs/heads/master
2020-04-08T12:45:27.049685
2018-11-27T15:36:13
2018-11-27T15:36:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
560
java
// code by jph package ch.ethz.idsc.gokart.gui.lab; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JComponent; abstract class AutoboxInitButton implements ActionListener { private final JButton jButton; AutoboxInitButton(String string) { jButton = new JButton(string); jButton.setEnabled(false); jButton.addActionListener(this); } final JComponent getComponent() { return jButton; } final void updateEnabled() { jButton.setEnabled(isEnabled()); } abstract boolean isEnabled(); }
[ "jan.hakenberg@gmail.com" ]
jan.hakenberg@gmail.com
7bcce0d1090b372e239ea637ecd10567f8e44079
c27d323c97650090f2f0a6350b7d71608f34f35a
/app/src/main/java/com/udacity/mozgul/popularmovies/Adapters/MovieAdapter.java
14d96657addadcb1292e301d4bac30b9d590a9eb
[]
no_license
muratozgul/udacity_android_PopularMovies
f0bdeb5d22fb278e71cd356ea696d8fbd1affe77
2f21e02e89c7972acf817f408d9afae4fd350453
refs/heads/master
2021-01-10T06:54:04.985032
2016-01-03T07:26:40
2016-01-03T07:26:40
48,906,368
0
0
null
null
null
null
UTF-8
Java
false
false
2,754
java
package com.udacity.mozgul.popularmovies.Adapters; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import com.squareup.picasso.Picasso; import com.udacity.mozgul.popularmovies.Models.Movie; import com.udacity.mozgul.popularmovies.R; import java.util.ArrayList; public class MovieAdapter extends RecyclerView.Adapter<MovieAdapter.MovieViewHolder> { private static final String TAG = "MovieAdapter"; private ArrayList<Movie> movies; private Context context; public static class MovieViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { public ImageView imageView; public MovieViewHolder(View itemView){ super(itemView); imageView = (ImageView) itemView.findViewById(R.id.movieThumbnailImageView); } @Override public void onClick(View v) { int position = this.getAdapterPosition(); } } public MovieAdapter(ArrayList<Movie> movies, Context context) { this.movies = movies; this.context = context; } public MovieAdapter(Context context) { this.movies = new ArrayList<Movie>(); this.context = context; } //############################ //Getters & Setters //############################ public ArrayList<Movie> getMovies() { return movies; } public void setMovies(ArrayList<Movie> movies) { this.movies = movies; } public Context getContext() { return context; } public void setContext(Context context) { this.context = context; } //############################ //Override //############################ // Create new views (invoked by the layout manager) @Override public MovieAdapter.MovieViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { //don't need final if not making a toast final View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.card_movie, parent, false); MovieViewHolder mvh = new MovieViewHolder(view); return mvh; } // Replace the contents of a view (invoked by the layout manager) @Override public void onBindViewHolder(MovieViewHolder mvh, int position) { Movie movie = getMovie(position); Picasso.with(context).load(movie.getPosterUrl()).fit().centerCrop().into(mvh.imageView); } @Override public int getItemCount() { return this.movies.size(); } public Movie getMovie(int position) { return this.movies.get(position); } }
[ "murat.ozgul@sv.cmu.edu" ]
murat.ozgul@sv.cmu.edu
20adaabeb61716faf832b1c8c0f886d1fcf255bc
24ae1745b16526d0e2925496e0c529b78315c3bf
/src/main/java/com/threezebra/domain/BaseResponse.java
c4eec3707fd475a5f88bea588c3b300ed2c4a120
[]
no_license
chenqi93/mongoRestSpingboot
41c5ef321693c05465563bcf0ca7c22641a6c961
10c55b3f7615f646a4ce29964869f68c7f8b54e2
refs/heads/master
2020-03-07T00:06:14.281381
2018-02-12T12:48:16
2018-02-12T12:48:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
561
java
package com.threezebra.domain; import io.swagger.annotations.ApiModel; @ApiModel public class BaseResponse { String response; String responseType; public BaseResponse(String response, String responseType) { this.response=response; this.responseType=responseType; } public String getResponse() { return response; } public void setResponse(String response) { this.response = response; } public String getResponseType() { return responseType; } public void setResponseType(String responseType) { this.responseType = responseType; } }
[ "vikas.sharma@valuelabs.com" ]
vikas.sharma@valuelabs.com
7de180bfa73cd35814a909689fb13bc19afc1105
09d5795df14ccf4e0f8023e3a869a7187ddbdaeb
/ch12/SpecialException.java
d90bb9141b978be31db09183fa27c305ea5e90d7
[]
no_license
huzhengatUCSD/Java_Course
549e7e89daf9a5d5cd2ea6f754744d40a0881fa6
80c4f711f385be5ddece0f1a17bdf6a534c0ac65
refs/heads/master
2023-02-20T09:30:35.597590
2023-02-13T13:27:22
2023-02-13T13:27:22
72,407,377
54
37
null
null
null
null
UTF-8
Java
false
false
165
java
package ch12; public class SpecialException extends Exception{ public SpecialException(){} public SpecialException(String msg){super(msg);} }
[ "huzheng.red@gmail.com" ]
huzheng.red@gmail.com
a032a2a20127f95a66978daab9d0c4985a4e748c
4536078b4070fc3143086ff48f088e2bc4b4c681
/v1.0.4/decompiled/com/microsoft/azure/sdk/iot/device/edge/TrustBundleProvider.java
f42d216c6361f029009dc00c984fbc3a6dc5f24f
[]
no_license
olealgoritme/smittestopp_src
485b81422752c3d1e7980fbc9301f4f0e0030d16
52080d5b7613cb9279bc6cda5b469a5c84e34f6a
refs/heads/master
2023-05-27T21:25:17.564334
2023-05-02T14:24:31
2023-05-02T14:24:31
262,846,147
0
0
null
null
null
null
UTF-8
Java
false
false
354
java
package com.microsoft.azure.sdk.iot.device.edge; public abstract interface TrustBundleProvider { public abstract String getTrustBundleCerts(String paramString1, String paramString2); } /* Location: * Qualified Name: base.com.microsoft.azure.sdk.iot.device.edge.TrustBundleProvider * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "olealgoritme@gmail.com" ]
olealgoritme@gmail.com
754f11888fca25cb8443b7ce242c027dba4e5089
cd74cc1c81682e7679aab3720547ed4c6464b37f
/D10/src/main/java/com/weikun/control/A.java
c8576003f7e7670c754c499689d1813e95b84280
[]
no_license
ystwei/1023
bf91f57c534678bace82c1dddc960a7550e13b36
97ed4feed43ecf4f3a855fc71386092495b28962
refs/heads/master
2021-01-21T04:55:10.693068
2016-07-25T04:09:05
2016-07-25T04:09:05
45,716,504
2
1
null
null
null
null
UTF-8
Java
false
false
307
java
package com.weikun.control; import java.util.HashMap; import java.util.Map; public class A { public static void main(String[] args) { Map<String,String> map=new HashMap<String,String>(); map.put("A", "B"); map.put("A", "C"); System.out.println(map.get("A")); } }
[ "wk2003119@163.com" ]
wk2003119@163.com
fe016b7a42bf29fceaf7477381da1a8d80bee0d5
5dbfb2e3d930002e07f910aa1aeee8a9e76189de
/src/reservation/ChoiceMinute.java
f4ae1cf5e9b7f0696b313bd8c4555e536bf4af2c
[]
no_license
rv058059/reservation
5f61f275df94d7389be7a57b7ebce6e92c3b784e
c1e92a9826ecc92fb52905218e03b8d6a5d1b659
refs/heads/master
2021-01-13T11:21:03.178266
2017-02-09T03:24:18
2017-02-09T03:24:18
81,402,704
0
0
null
null
null
null
UTF-8
Java
false
false
362
java
package reservation; import java.awt.Choice; public class ChoiceMinute extends Choice{ public ChoiceMinute(){ //00分と30分のみを登録 add("00"); add("30"); } //選択されている分を整数で返す public int getMinute(int index){ if( index == 0 ){ return 0; }else{ return 30; } } }
[ "rv058059@outlook.jp" ]
rv058059@outlook.jp
b3058a5571e840ff565b6586de763cf1767d655e
c6c57c912303f3dd289fbc9fb1656a67eee1bca9
/android/app/build/generated/not_namespaced_r_class_sources/debug/r/com/facebook/flipper/plugins/network/R.java
8db9c5d57cef6625d73722b58cdce32b2acfada5
[]
no_license
bingbingshao/ReactNative_WanAndroid
876dc9236a4d955f50077f881137cd7a4a186743
bcaa2dbb1535ef037e2e13fe07b8aef1174bd3b4
refs/heads/master
2023-06-08T23:27:40.477196
2020-06-02T08:02:46
2020-06-02T08:02:46
263,901,581
1
0
null
2023-01-05T20:17:02
2020-05-14T11:54:22
Java
UTF-8
Java
false
false
127,098
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.facebook.flipper.plugins.network; public final class R { private R() {} public static final class anim { private anim() {} public static final int abc_fade_in = 0x7f010000; public static final int abc_fade_out = 0x7f010001; public static final int abc_grow_fade_in_from_bottom = 0x7f010002; public static final int abc_popup_enter = 0x7f010003; public static final int abc_popup_exit = 0x7f010004; public static final int abc_shrink_fade_out_from_bottom = 0x7f010005; public static final int abc_slide_in_bottom = 0x7f010006; public static final int abc_slide_in_top = 0x7f010007; public static final int abc_slide_out_bottom = 0x7f010008; public static final int abc_slide_out_top = 0x7f010009; public static final int abc_tooltip_enter = 0x7f01000a; public static final int abc_tooltip_exit = 0x7f01000b; public static final int btn_checkbox_to_checked_box_inner_merged_animation = 0x7f01000c; public static final int btn_checkbox_to_checked_box_outer_merged_animation = 0x7f01000d; public static final int btn_checkbox_to_checked_icon_null_animation = 0x7f01000e; public static final int btn_checkbox_to_unchecked_box_inner_merged_animation = 0x7f01000f; public static final int btn_checkbox_to_unchecked_check_path_merged_animation = 0x7f010010; public static final int btn_checkbox_to_unchecked_icon_null_animation = 0x7f010011; public static final int btn_radio_to_off_mtrl_dot_group_animation = 0x7f010012; public static final int btn_radio_to_off_mtrl_ring_outer_animation = 0x7f010013; public static final int btn_radio_to_off_mtrl_ring_outer_path_animation = 0x7f010014; public static final int btn_radio_to_on_mtrl_dot_group_animation = 0x7f010015; public static final int btn_radio_to_on_mtrl_ring_outer_animation = 0x7f010016; public static final int btn_radio_to_on_mtrl_ring_outer_path_animation = 0x7f010017; } public static final class attr { private attr() {} public static final int actionBarDivider = 0x7f030000; public static final int actionBarItemBackground = 0x7f030001; public static final int actionBarPopupTheme = 0x7f030002; public static final int actionBarSize = 0x7f030003; public static final int actionBarSplitStyle = 0x7f030004; public static final int actionBarStyle = 0x7f030005; public static final int actionBarTabBarStyle = 0x7f030006; public static final int actionBarTabStyle = 0x7f030007; public static final int actionBarTabTextStyle = 0x7f030008; public static final int actionBarTheme = 0x7f030009; public static final int actionBarWidgetTheme = 0x7f03000a; public static final int actionButtonStyle = 0x7f03000b; public static final int actionDropDownStyle = 0x7f03000c; public static final int actionLayout = 0x7f03000d; public static final int actionMenuTextAppearance = 0x7f03000e; public static final int actionMenuTextColor = 0x7f03000f; public static final int actionModeBackground = 0x7f030010; public static final int actionModeCloseButtonStyle = 0x7f030011; public static final int actionModeCloseDrawable = 0x7f030012; public static final int actionModeCopyDrawable = 0x7f030013; public static final int actionModeCutDrawable = 0x7f030014; public static final int actionModeFindDrawable = 0x7f030015; public static final int actionModePasteDrawable = 0x7f030016; public static final int actionModePopupWindowStyle = 0x7f030017; public static final int actionModeSelectAllDrawable = 0x7f030018; public static final int actionModeShareDrawable = 0x7f030019; public static final int actionModeSplitBackground = 0x7f03001a; public static final int actionModeStyle = 0x7f03001b; public static final int actionModeWebSearchDrawable = 0x7f03001c; public static final int actionOverflowButtonStyle = 0x7f03001d; public static final int actionOverflowMenuStyle = 0x7f03001e; public static final int actionProviderClass = 0x7f03001f; public static final int actionViewClass = 0x7f030021; public static final int activityChooserViewStyle = 0x7f030022; public static final int alertDialogButtonGroupStyle = 0x7f030026; public static final int alertDialogCenterButtons = 0x7f030027; public static final int alertDialogStyle = 0x7f030028; public static final int alertDialogTheme = 0x7f030029; public static final int allowStacking = 0x7f03002b; public static final int alpha = 0x7f03002c; public static final int alphabeticModifiers = 0x7f03002d; public static final int arrowHeadLength = 0x7f030030; public static final int arrowShaftLength = 0x7f030031; public static final int autoCompleteTextViewStyle = 0x7f030032; public static final int autoSizeMaxTextSize = 0x7f030033; public static final int autoSizeMinTextSize = 0x7f030034; public static final int autoSizePresetSizes = 0x7f030035; public static final int autoSizeStepGranularity = 0x7f030036; public static final int autoSizeTextType = 0x7f030037; public static final int background = 0x7f030038; public static final int backgroundSplit = 0x7f030040; public static final int backgroundStacked = 0x7f030041; public static final int backgroundTint = 0x7f030042; public static final int backgroundTintMode = 0x7f030043; public static final int barLength = 0x7f030047; public static final int borderlessButtonStyle = 0x7f030055; public static final int buttonBarButtonStyle = 0x7f030064; public static final int buttonBarNegativeButtonStyle = 0x7f030065; public static final int buttonBarNeutralButtonStyle = 0x7f030066; public static final int buttonBarPositiveButtonStyle = 0x7f030067; public static final int buttonBarStyle = 0x7f030068; public static final int buttonCompat = 0x7f030069; public static final int buttonGravity = 0x7f03006a; public static final int buttonIconDimen = 0x7f03006b; public static final int buttonPanelSideLayout = 0x7f03006c; public static final int buttonStyle = 0x7f03006d; public static final int buttonStyleSmall = 0x7f03006e; public static final int buttonTint = 0x7f03006f; public static final int buttonTintMode = 0x7f030070; public static final int checkboxStyle = 0x7f03007a; public static final int checkedTextViewStyle = 0x7f030081; public static final int closeIcon = 0x7f030096; public static final int closeItemLayout = 0x7f03009d; public static final int collapseContentDescription = 0x7f03009e; public static final int collapseIcon = 0x7f03009f; public static final int color = 0x7f0300a2; public static final int colorAccent = 0x7f0300a3; public static final int colorBackgroundFloating = 0x7f0300a4; public static final int colorButtonNormal = 0x7f0300a5; public static final int colorControlActivated = 0x7f0300a6; public static final int colorControlHighlight = 0x7f0300a7; public static final int colorControlNormal = 0x7f0300a8; public static final int colorError = 0x7f0300a9; public static final int colorPrimary = 0x7f0300b0; public static final int colorPrimaryDark = 0x7f0300b1; public static final int colorSwitchThumbNormal = 0x7f0300b7; public static final int commitIcon = 0x7f0300ba; public static final int contentDescription = 0x7f0300be; public static final int contentInsetEnd = 0x7f0300bf; public static final int contentInsetEndWithActions = 0x7f0300c0; public static final int contentInsetLeft = 0x7f0300c1; public static final int contentInsetRight = 0x7f0300c2; public static final int contentInsetStart = 0x7f0300c3; public static final int contentInsetStartWithNavigation = 0x7f0300c4; public static final int controlBackground = 0x7f0300cb; public static final int customNavigationLayout = 0x7f0300de; public static final int defaultQueryHint = 0x7f0300e3; public static final int dialogCornerRadius = 0x7f0300e4; public static final int dialogPreferredPadding = 0x7f0300e5; public static final int dialogTheme = 0x7f0300e6; public static final int displayOptions = 0x7f0300e7; public static final int divider = 0x7f0300e8; public static final int dividerHorizontal = 0x7f0300e9; public static final int dividerPadding = 0x7f0300ea; public static final int dividerVertical = 0x7f0300eb; public static final int drawableBottomCompat = 0x7f0300ec; public static final int drawableEndCompat = 0x7f0300ed; public static final int drawableLeftCompat = 0x7f0300ee; public static final int drawableRightCompat = 0x7f0300ef; public static final int drawableSize = 0x7f0300f0; public static final int drawableStartCompat = 0x7f0300f1; public static final int drawableTint = 0x7f0300f2; public static final int drawableTintMode = 0x7f0300f3; public static final int drawableTopCompat = 0x7f0300f4; public static final int drawerArrowStyle = 0x7f0300f5; public static final int dropDownListViewStyle = 0x7f0300f6; public static final int dropdownListPreferredItemHeight = 0x7f0300f7; public static final int editTextBackground = 0x7f0300f8; public static final int editTextColor = 0x7f0300f9; public static final int editTextStyle = 0x7f0300fa; public static final int elevation = 0x7f0300fb; public static final int expandActivityOverflowButtonDrawable = 0x7f03010e; public static final int firstBaselineToTopHeight = 0x7f030128; public static final int font = 0x7f03012a; public static final int fontFamily = 0x7f03012b; public static final int fontProviderAuthority = 0x7f03012c; public static final int fontProviderCerts = 0x7f03012d; public static final int fontProviderFetchStrategy = 0x7f03012e; public static final int fontProviderFetchTimeout = 0x7f03012f; public static final int fontProviderPackage = 0x7f030130; public static final int fontProviderQuery = 0x7f030131; public static final int fontStyle = 0x7f030132; public static final int fontVariationSettings = 0x7f030133; public static final int fontWeight = 0x7f030134; public static final int gapBetweenBars = 0x7f030136; public static final int goIcon = 0x7f030137; public static final int height = 0x7f030139; public static final int hideOnContentScroll = 0x7f03013f; public static final int homeAsUpIndicator = 0x7f030145; public static final int homeLayout = 0x7f030146; public static final int icon = 0x7f030148; public static final int iconTint = 0x7f03014e; public static final int iconTintMode = 0x7f03014f; public static final int iconifiedByDefault = 0x7f030150; public static final int imageButtonStyle = 0x7f030151; public static final int indeterminateProgressStyle = 0x7f030152; public static final int initialActivityCount = 0x7f030153; public static final int isLightTheme = 0x7f030155; public static final int itemPadding = 0x7f03015f; public static final int lastBaselineToBottomHeight = 0x7f030171; public static final int layout = 0x7f030172; public static final int lineHeight = 0x7f0301b9; public static final int listChoiceBackgroundIndicator = 0x7f0301bb; public static final int listChoiceIndicatorMultipleAnimated = 0x7f0301bc; public static final int listChoiceIndicatorSingleAnimated = 0x7f0301bd; public static final int listDividerAlertDialog = 0x7f0301be; public static final int listItemLayout = 0x7f0301bf; public static final int listLayout = 0x7f0301c0; public static final int listMenuViewStyle = 0x7f0301c1; public static final int listPopupWindowStyle = 0x7f0301c2; public static final int listPreferredItemHeight = 0x7f0301c3; public static final int listPreferredItemHeightLarge = 0x7f0301c4; public static final int listPreferredItemHeightSmall = 0x7f0301c5; public static final int listPreferredItemPaddingEnd = 0x7f0301c6; public static final int listPreferredItemPaddingLeft = 0x7f0301c7; public static final int listPreferredItemPaddingRight = 0x7f0301c8; public static final int listPreferredItemPaddingStart = 0x7f0301c9; public static final int logo = 0x7f0301ca; public static final int logoDescription = 0x7f0301cb; public static final int maxButtonHeight = 0x7f0301e1; public static final int measureWithLargestChild = 0x7f0301e4; public static final int menu = 0x7f0301e5; public static final int multiChoiceItemLayout = 0x7f0301e7; public static final int navigationContentDescription = 0x7f0301e8; public static final int navigationIcon = 0x7f0301e9; public static final int navigationMode = 0x7f0301ea; public static final int numericModifiers = 0x7f0301ed; public static final int overlapAnchor = 0x7f0301ef; public static final int paddingBottomNoButtons = 0x7f0301f1; public static final int paddingEnd = 0x7f0301f2; public static final int paddingStart = 0x7f0301f3; public static final int paddingTopNoTitle = 0x7f0301f4; public static final int panelBackground = 0x7f0301f5; public static final int panelMenuListTheme = 0x7f0301f6; public static final int panelMenuListWidth = 0x7f0301f7; public static final int popupMenuStyle = 0x7f030200; public static final int popupTheme = 0x7f030201; public static final int popupWindowStyle = 0x7f030202; public static final int preserveIconSpacing = 0x7f030203; public static final int progressBarPadding = 0x7f030209; public static final int progressBarStyle = 0x7f03020a; public static final int queryBackground = 0x7f03020b; public static final int queryHint = 0x7f03020c; public static final int radioButtonStyle = 0x7f03020d; public static final int ratingBarStyle = 0x7f03020f; public static final int ratingBarStyleIndicator = 0x7f030210; public static final int ratingBarStyleSmall = 0x7f030211; public static final int searchHintIcon = 0x7f03022a; public static final int searchIcon = 0x7f03022b; public static final int searchViewStyle = 0x7f03022c; public static final int seekBarStyle = 0x7f03022d; public static final int selectableItemBackground = 0x7f03022e; public static final int selectableItemBackgroundBorderless = 0x7f03022f; public static final int showAsAction = 0x7f030235; public static final int showDividers = 0x7f030236; public static final int showText = 0x7f030238; public static final int showTitle = 0x7f030239; public static final int singleChoiceItemLayout = 0x7f03023b; public static final int spinBars = 0x7f030241; public static final int spinnerDropDownItemStyle = 0x7f030242; public static final int spinnerStyle = 0x7f030243; public static final int splitTrack = 0x7f030244; public static final int srcCompat = 0x7f030245; public static final int state_above_anchor = 0x7f03024c; public static final int subMenuArrow = 0x7f030257; public static final int submitBackground = 0x7f030258; public static final int subtitle = 0x7f030259; public static final int subtitleTextAppearance = 0x7f03025a; public static final int subtitleTextColor = 0x7f03025b; public static final int subtitleTextStyle = 0x7f03025c; public static final int suggestionRowLayout = 0x7f03025d; public static final int switchMinWidth = 0x7f03025e; public static final int switchPadding = 0x7f03025f; public static final int switchStyle = 0x7f030260; public static final int switchTextAppearance = 0x7f030261; public static final int textAllCaps = 0x7f03027c; public static final int textAppearanceLargePopupMenu = 0x7f030287; public static final int textAppearanceListItem = 0x7f030289; public static final int textAppearanceListItemSecondary = 0x7f03028a; public static final int textAppearanceListItemSmall = 0x7f03028b; public static final int textAppearancePopupMenuHeader = 0x7f03028d; public static final int textAppearanceSearchResultSubtitle = 0x7f03028e; public static final int textAppearanceSearchResultTitle = 0x7f03028f; public static final int textAppearanceSmallPopupMenu = 0x7f030290; public static final int textColorAlertDialogListItem = 0x7f030293; public static final int textColorSearchUrl = 0x7f030294; public static final int textLocale = 0x7f030297; public static final int theme = 0x7f030299; public static final int thickness = 0x7f03029b; public static final int thumbTextPadding = 0x7f03029c; public static final int thumbTint = 0x7f03029d; public static final int thumbTintMode = 0x7f03029e; public static final int tickMark = 0x7f03029f; public static final int tickMarkTint = 0x7f0302a0; public static final int tickMarkTintMode = 0x7f0302a1; public static final int tint = 0x7f0302a2; public static final int tintMode = 0x7f0302a3; public static final int title = 0x7f0302a4; public static final int titleMargin = 0x7f0302a6; public static final int titleMarginBottom = 0x7f0302a7; public static final int titleMarginEnd = 0x7f0302a8; public static final int titleMarginStart = 0x7f0302a9; public static final int titleMarginTop = 0x7f0302aa; public static final int titleMargins = 0x7f0302ab; public static final int titleTextAppearance = 0x7f0302ac; public static final int titleTextColor = 0x7f0302ad; public static final int titleTextStyle = 0x7f0302ae; public static final int toolbarNavigationButtonStyle = 0x7f0302b0; public static final int toolbarStyle = 0x7f0302b1; public static final int tooltipForegroundColor = 0x7f0302b2; public static final int tooltipFrameBackground = 0x7f0302b3; public static final int tooltipText = 0x7f0302b4; public static final int track = 0x7f0302b5; public static final int trackTint = 0x7f0302b6; public static final int trackTintMode = 0x7f0302b7; public static final int ttcIndex = 0x7f0302b8; public static final int viewInflaterClass = 0x7f0302bd; public static final int voiceIcon = 0x7f0302be; public static final int windowActionBar = 0x7f0302bf; public static final int windowActionBarOverlay = 0x7f0302c0; public static final int windowActionModeOverlay = 0x7f0302c1; public static final int windowFixedHeightMajor = 0x7f0302c2; public static final int windowFixedHeightMinor = 0x7f0302c3; public static final int windowFixedWidthMajor = 0x7f0302c4; public static final int windowFixedWidthMinor = 0x7f0302c5; public static final int windowMinWidthMajor = 0x7f0302c6; public static final int windowMinWidthMinor = 0x7f0302c7; public static final int windowNoTitle = 0x7f0302c8; } public static final class bool { private bool() {} public static final int abc_action_bar_embed_tabs = 0x7f040000; public static final int abc_allow_stacked_button_bar = 0x7f040001; public static final int abc_config_actionMenuItemAllCaps = 0x7f040002; } public static final class color { private color() {} public static final int abc_background_cache_hint_selector_material_dark = 0x7f050000; public static final int abc_background_cache_hint_selector_material_light = 0x7f050001; public static final int abc_btn_colored_borderless_text_material = 0x7f050002; public static final int abc_btn_colored_text_material = 0x7f050003; public static final int abc_color_highlight_material = 0x7f050004; public static final int abc_hint_foreground_material_dark = 0x7f050005; public static final int abc_hint_foreground_material_light = 0x7f050006; public static final int abc_input_method_navigation_guard = 0x7f050007; public static final int abc_primary_text_disable_only_material_dark = 0x7f050008; public static final int abc_primary_text_disable_only_material_light = 0x7f050009; public static final int abc_primary_text_material_dark = 0x7f05000a; public static final int abc_primary_text_material_light = 0x7f05000b; public static final int abc_search_url_text = 0x7f05000c; public static final int abc_search_url_text_normal = 0x7f05000d; public static final int abc_search_url_text_pressed = 0x7f05000e; public static final int abc_search_url_text_selected = 0x7f05000f; public static final int abc_secondary_text_material_dark = 0x7f050010; public static final int abc_secondary_text_material_light = 0x7f050011; public static final int abc_tint_btn_checkable = 0x7f050012; public static final int abc_tint_default = 0x7f050013; public static final int abc_tint_edittext = 0x7f050014; public static final int abc_tint_seek_thumb = 0x7f050015; public static final int abc_tint_spinner = 0x7f050016; public static final int abc_tint_switch_track = 0x7f050017; public static final int accent_material_dark = 0x7f050018; public static final int accent_material_light = 0x7f050019; public static final int background_floating_material_dark = 0x7f05001a; public static final int background_floating_material_light = 0x7f05001b; public static final int background_material_dark = 0x7f05001c; public static final int background_material_light = 0x7f05001d; public static final int bright_foreground_disabled_material_dark = 0x7f05001f; public static final int bright_foreground_disabled_material_light = 0x7f050020; public static final int bright_foreground_inverse_material_dark = 0x7f050021; public static final int bright_foreground_inverse_material_light = 0x7f050022; public static final int bright_foreground_material_dark = 0x7f050023; public static final int bright_foreground_material_light = 0x7f050024; public static final int button_material_dark = 0x7f050025; public static final int button_material_light = 0x7f050026; public static final int dim_foreground_disabled_material_dark = 0x7f050058; public static final int dim_foreground_disabled_material_light = 0x7f050059; public static final int dim_foreground_material_dark = 0x7f05005a; public static final int dim_foreground_material_light = 0x7f05005b; public static final int error_color_material_dark = 0x7f05005c; public static final int error_color_material_light = 0x7f05005d; public static final int foreground_material_dark = 0x7f05005e; public static final int foreground_material_light = 0x7f05005f; public static final int highlighted_text_material_dark = 0x7f050061; public static final int highlighted_text_material_light = 0x7f050062; public static final int material_blue_grey_800 = 0x7f050064; public static final int material_blue_grey_900 = 0x7f050065; public static final int material_blue_grey_950 = 0x7f050066; public static final int material_deep_teal_200 = 0x7f050067; public static final int material_deep_teal_500 = 0x7f050068; public static final int material_grey_100 = 0x7f050069; public static final int material_grey_300 = 0x7f05006a; public static final int material_grey_50 = 0x7f05006b; public static final int material_grey_600 = 0x7f05006c; public static final int material_grey_800 = 0x7f05006d; public static final int material_grey_850 = 0x7f05006e; public static final int material_grey_900 = 0x7f05006f; public static final int notification_action_color_filter = 0x7f0500ad; public static final int notification_icon_bg_color = 0x7f0500ae; public static final int primary_dark_material_dark = 0x7f0500af; public static final int primary_dark_material_light = 0x7f0500b0; public static final int primary_material_dark = 0x7f0500b1; public static final int primary_material_light = 0x7f0500b2; public static final int primary_text_default_material_dark = 0x7f0500b3; public static final int primary_text_default_material_light = 0x7f0500b4; public static final int primary_text_disabled_material_dark = 0x7f0500b5; public static final int primary_text_disabled_material_light = 0x7f0500b6; public static final int ripple_material_dark = 0x7f0500b7; public static final int ripple_material_light = 0x7f0500b8; public static final int secondary_text_default_material_dark = 0x7f0500b9; public static final int secondary_text_default_material_light = 0x7f0500ba; public static final int secondary_text_disabled_material_dark = 0x7f0500bb; public static final int secondary_text_disabled_material_light = 0x7f0500bc; public static final int switch_thumb_disabled_material_dark = 0x7f0500bd; public static final int switch_thumb_disabled_material_light = 0x7f0500be; public static final int switch_thumb_material_dark = 0x7f0500bf; public static final int switch_thumb_material_light = 0x7f0500c0; public static final int switch_thumb_normal_material_dark = 0x7f0500c1; public static final int switch_thumb_normal_material_light = 0x7f0500c2; public static final int tooltip_background_dark = 0x7f0500c5; public static final int tooltip_background_light = 0x7f0500c6; } public static final class dimen { private dimen() {} public static final int abc_action_bar_content_inset_material = 0x7f060000; public static final int abc_action_bar_content_inset_with_nav = 0x7f060001; public static final int abc_action_bar_default_height_material = 0x7f060002; public static final int abc_action_bar_default_padding_end_material = 0x7f060003; public static final int abc_action_bar_default_padding_start_material = 0x7f060004; public static final int abc_action_bar_elevation_material = 0x7f060005; public static final int abc_action_bar_icon_vertical_padding_material = 0x7f060006; public static final int abc_action_bar_overflow_padding_end_material = 0x7f060007; public static final int abc_action_bar_overflow_padding_start_material = 0x7f060008; public static final int abc_action_bar_stacked_max_height = 0x7f060009; public static final int abc_action_bar_stacked_tab_max_width = 0x7f06000a; public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f06000b; public static final int abc_action_bar_subtitle_top_margin_material = 0x7f06000c; public static final int abc_action_button_min_height_material = 0x7f06000d; public static final int abc_action_button_min_width_material = 0x7f06000e; public static final int abc_action_button_min_width_overflow_material = 0x7f06000f; public static final int abc_alert_dialog_button_bar_height = 0x7f060010; public static final int abc_alert_dialog_button_dimen = 0x7f060011; public static final int abc_button_inset_horizontal_material = 0x7f060012; public static final int abc_button_inset_vertical_material = 0x7f060013; public static final int abc_button_padding_horizontal_material = 0x7f060014; public static final int abc_button_padding_vertical_material = 0x7f060015; public static final int abc_cascading_menus_min_smallest_width = 0x7f060016; public static final int abc_config_prefDialogWidth = 0x7f060017; public static final int abc_control_corner_material = 0x7f060018; public static final int abc_control_inset_material = 0x7f060019; public static final int abc_control_padding_material = 0x7f06001a; public static final int abc_dialog_corner_radius_material = 0x7f06001b; public static final int abc_dialog_fixed_height_major = 0x7f06001c; public static final int abc_dialog_fixed_height_minor = 0x7f06001d; public static final int abc_dialog_fixed_width_major = 0x7f06001e; public static final int abc_dialog_fixed_width_minor = 0x7f06001f; public static final int abc_dialog_list_padding_bottom_no_buttons = 0x7f060020; public static final int abc_dialog_list_padding_top_no_title = 0x7f060021; public static final int abc_dialog_min_width_major = 0x7f060022; public static final int abc_dialog_min_width_minor = 0x7f060023; public static final int abc_dialog_padding_material = 0x7f060024; public static final int abc_dialog_padding_top_material = 0x7f060025; public static final int abc_dialog_title_divider_material = 0x7f060026; public static final int abc_disabled_alpha_material_dark = 0x7f060027; public static final int abc_disabled_alpha_material_light = 0x7f060028; public static final int abc_dropdownitem_icon_width = 0x7f060029; public static final int abc_dropdownitem_text_padding_left = 0x7f06002a; public static final int abc_dropdownitem_text_padding_right = 0x7f06002b; public static final int abc_edit_text_inset_bottom_material = 0x7f06002c; public static final int abc_edit_text_inset_horizontal_material = 0x7f06002d; public static final int abc_edit_text_inset_top_material = 0x7f06002e; public static final int abc_floating_window_z = 0x7f06002f; public static final int abc_list_item_height_large_material = 0x7f060030; public static final int abc_list_item_height_material = 0x7f060031; public static final int abc_list_item_height_small_material = 0x7f060032; public static final int abc_list_item_padding_horizontal_material = 0x7f060033; public static final int abc_panel_menu_list_width = 0x7f060034; public static final int abc_progress_bar_height_material = 0x7f060035; public static final int abc_search_view_preferred_height = 0x7f060036; public static final int abc_search_view_preferred_width = 0x7f060037; public static final int abc_seekbar_track_background_height_material = 0x7f060038; public static final int abc_seekbar_track_progress_height_material = 0x7f060039; public static final int abc_select_dialog_padding_start_material = 0x7f06003a; public static final int abc_switch_padding = 0x7f06003b; public static final int abc_text_size_body_1_material = 0x7f06003c; public static final int abc_text_size_body_2_material = 0x7f06003d; public static final int abc_text_size_button_material = 0x7f06003e; public static final int abc_text_size_caption_material = 0x7f06003f; public static final int abc_text_size_display_1_material = 0x7f060040; public static final int abc_text_size_display_2_material = 0x7f060041; public static final int abc_text_size_display_3_material = 0x7f060042; public static final int abc_text_size_display_4_material = 0x7f060043; public static final int abc_text_size_headline_material = 0x7f060044; public static final int abc_text_size_large_material = 0x7f060045; public static final int abc_text_size_medium_material = 0x7f060046; public static final int abc_text_size_menu_header_material = 0x7f060047; public static final int abc_text_size_menu_material = 0x7f060048; public static final int abc_text_size_small_material = 0x7f060049; public static final int abc_text_size_subhead_material = 0x7f06004a; public static final int abc_text_size_subtitle_material_toolbar = 0x7f06004b; public static final int abc_text_size_title_material = 0x7f06004c; public static final int abc_text_size_title_material_toolbar = 0x7f06004d; public static final int compat_button_inset_horizontal_material = 0x7f060053; public static final int compat_button_inset_vertical_material = 0x7f060054; public static final int compat_button_padding_horizontal_material = 0x7f060055; public static final int compat_button_padding_vertical_material = 0x7f060056; public static final int compat_control_corner_material = 0x7f060057; public static final int compat_notification_large_icon_max_height = 0x7f060058; public static final int compat_notification_large_icon_max_width = 0x7f060059; public static final int disabled_alpha_material_dark = 0x7f06008a; public static final int disabled_alpha_material_light = 0x7f06008b; public static final int highlight_alpha_material_colored = 0x7f06008f; public static final int highlight_alpha_material_dark = 0x7f060090; public static final int highlight_alpha_material_light = 0x7f060091; public static final int hint_alpha_material_dark = 0x7f060092; public static final int hint_alpha_material_light = 0x7f060093; public static final int hint_pressed_alpha_material_dark = 0x7f060094; public static final int hint_pressed_alpha_material_light = 0x7f060095; public static final int notification_action_icon_size = 0x7f06012f; public static final int notification_action_text_size = 0x7f060130; public static final int notification_big_circle_margin = 0x7f060131; public static final int notification_content_margin_start = 0x7f060132; public static final int notification_large_icon_height = 0x7f060133; public static final int notification_large_icon_width = 0x7f060134; public static final int notification_main_column_padding_top = 0x7f060135; public static final int notification_media_narrow_margin = 0x7f060136; public static final int notification_right_icon_size = 0x7f060137; public static final int notification_right_side_padding_top = 0x7f060138; public static final int notification_small_icon_background_padding = 0x7f060139; public static final int notification_small_icon_size_as_large = 0x7f06013a; public static final int notification_subtext_size = 0x7f06013b; public static final int notification_top_pad = 0x7f06013c; public static final int notification_top_pad_large_text = 0x7f06013d; public static final int tooltip_corner_radius = 0x7f06013f; public static final int tooltip_horizontal_padding = 0x7f060140; public static final int tooltip_margin = 0x7f060141; public static final int tooltip_precise_anchor_extra_offset = 0x7f060142; public static final int tooltip_precise_anchor_threshold = 0x7f060143; public static final int tooltip_vertical_padding = 0x7f060144; public static final int tooltip_y_offset_non_touch = 0x7f060145; public static final int tooltip_y_offset_touch = 0x7f060146; } public static final class drawable { private drawable() {} public static final int abc_ab_share_pack_mtrl_alpha = 0x7f070006; public static final int abc_action_bar_item_background_material = 0x7f070007; public static final int abc_btn_borderless_material = 0x7f070008; public static final int abc_btn_check_material = 0x7f070009; public static final int abc_btn_check_material_anim = 0x7f07000a; public static final int abc_btn_check_to_on_mtrl_000 = 0x7f07000b; public static final int abc_btn_check_to_on_mtrl_015 = 0x7f07000c; public static final int abc_btn_colored_material = 0x7f07000d; public static final int abc_btn_default_mtrl_shape = 0x7f07000e; public static final int abc_btn_radio_material = 0x7f07000f; public static final int abc_btn_radio_material_anim = 0x7f070010; public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f070011; public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f070012; public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f070013; public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f070014; public static final int abc_cab_background_internal_bg = 0x7f070015; public static final int abc_cab_background_top_material = 0x7f070016; public static final int abc_cab_background_top_mtrl_alpha = 0x7f070017; public static final int abc_control_background_material = 0x7f070018; public static final int abc_dialog_material_background = 0x7f070019; public static final int abc_edit_text_material = 0x7f07001a; public static final int abc_ic_ab_back_material = 0x7f07001b; public static final int abc_ic_arrow_drop_right_black_24dp = 0x7f07001c; public static final int abc_ic_clear_material = 0x7f07001d; public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f07001e; public static final int abc_ic_go_search_api_material = 0x7f07001f; public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f070020; public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f070021; public static final int abc_ic_menu_overflow_material = 0x7f070022; public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f070023; public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f070024; public static final int abc_ic_menu_share_mtrl_alpha = 0x7f070025; public static final int abc_ic_search_api_material = 0x7f070026; public static final int abc_ic_star_black_16dp = 0x7f070027; public static final int abc_ic_star_black_36dp = 0x7f070028; public static final int abc_ic_star_black_48dp = 0x7f070029; public static final int abc_ic_star_half_black_16dp = 0x7f07002a; public static final int abc_ic_star_half_black_36dp = 0x7f07002b; public static final int abc_ic_star_half_black_48dp = 0x7f07002c; public static final int abc_ic_voice_search_api_material = 0x7f07002d; public static final int abc_item_background_holo_dark = 0x7f07002e; public static final int abc_item_background_holo_light = 0x7f07002f; public static final int abc_list_divider_material = 0x7f070030; public static final int abc_list_divider_mtrl_alpha = 0x7f070031; public static final int abc_list_focused_holo = 0x7f070032; public static final int abc_list_longpressed_holo = 0x7f070033; public static final int abc_list_pressed_holo_dark = 0x7f070034; public static final int abc_list_pressed_holo_light = 0x7f070035; public static final int abc_list_selector_background_transition_holo_dark = 0x7f070036; public static final int abc_list_selector_background_transition_holo_light = 0x7f070037; public static final int abc_list_selector_disabled_holo_dark = 0x7f070038; public static final int abc_list_selector_disabled_holo_light = 0x7f070039; public static final int abc_list_selector_holo_dark = 0x7f07003a; public static final int abc_list_selector_holo_light = 0x7f07003b; public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f07003c; public static final int abc_popup_background_mtrl_mult = 0x7f07003d; public static final int abc_ratingbar_indicator_material = 0x7f07003e; public static final int abc_ratingbar_material = 0x7f07003f; public static final int abc_ratingbar_small_material = 0x7f070040; public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f070041; public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f070042; public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f070043; public static final int abc_scrubber_primary_mtrl_alpha = 0x7f070044; public static final int abc_scrubber_track_mtrl_alpha = 0x7f070045; public static final int abc_seekbar_thumb_material = 0x7f070046; public static final int abc_seekbar_tick_mark_material = 0x7f070047; public static final int abc_seekbar_track_material = 0x7f070048; public static final int abc_spinner_mtrl_am_alpha = 0x7f070049; public static final int abc_spinner_textfield_background_material = 0x7f07004a; public static final int abc_switch_thumb_material = 0x7f07004b; public static final int abc_switch_track_mtrl_alpha = 0x7f07004c; public static final int abc_tab_indicator_material = 0x7f07004d; public static final int abc_tab_indicator_mtrl_alpha = 0x7f07004e; public static final int abc_text_cursor_material = 0x7f07004f; public static final int abc_text_select_handle_left_mtrl_dark = 0x7f070050; public static final int abc_text_select_handle_left_mtrl_light = 0x7f070051; public static final int abc_text_select_handle_middle_mtrl_dark = 0x7f070052; public static final int abc_text_select_handle_middle_mtrl_light = 0x7f070053; public static final int abc_text_select_handle_right_mtrl_dark = 0x7f070054; public static final int abc_text_select_handle_right_mtrl_light = 0x7f070055; public static final int abc_textfield_activated_mtrl_alpha = 0x7f070056; public static final int abc_textfield_default_mtrl_alpha = 0x7f070057; public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f070058; public static final int abc_textfield_search_default_mtrl_alpha = 0x7f070059; public static final int abc_textfield_search_material = 0x7f07005a; public static final int abc_vector_test = 0x7f07005b; public static final int btn_checkbox_checked_mtrl = 0x7f07005e; public static final int btn_checkbox_checked_to_unchecked_mtrl_animation = 0x7f07005f; public static final int btn_checkbox_unchecked_mtrl = 0x7f070060; public static final int btn_checkbox_unchecked_to_checked_mtrl_animation = 0x7f070061; public static final int btn_radio_off_mtrl = 0x7f070062; public static final int btn_radio_off_to_on_mtrl_animation = 0x7f070063; public static final int btn_radio_on_mtrl = 0x7f070064; public static final int btn_radio_on_to_off_mtrl_animation = 0x7f070065; public static final int notification_action_background = 0x7f070081; public static final int notification_bg = 0x7f070082; public static final int notification_bg_low = 0x7f070083; public static final int notification_bg_low_normal = 0x7f070084; public static final int notification_bg_low_pressed = 0x7f070085; public static final int notification_bg_normal = 0x7f070086; public static final int notification_bg_normal_pressed = 0x7f070087; public static final int notification_icon_background = 0x7f070088; public static final int notification_template_icon_bg = 0x7f070089; public static final int notification_template_icon_low_bg = 0x7f07008a; public static final int notification_tile_bg = 0x7f07008b; public static final int notify_panel_notification_icon_bg = 0x7f07008c; public static final int tooltip_frame_dark = 0x7f07008f; public static final int tooltip_frame_light = 0x7f070090; } public static final class id { private id() {} public static final int accessibility_action_clickable_span = 0x7f08000a; public static final int accessibility_custom_action_0 = 0x7f08000c; public static final int accessibility_custom_action_1 = 0x7f08000d; public static final int accessibility_custom_action_10 = 0x7f08000e; public static final int accessibility_custom_action_11 = 0x7f08000f; public static final int accessibility_custom_action_12 = 0x7f080010; public static final int accessibility_custom_action_13 = 0x7f080011; public static final int accessibility_custom_action_14 = 0x7f080012; public static final int accessibility_custom_action_15 = 0x7f080013; public static final int accessibility_custom_action_16 = 0x7f080014; public static final int accessibility_custom_action_17 = 0x7f080015; public static final int accessibility_custom_action_18 = 0x7f080016; public static final int accessibility_custom_action_19 = 0x7f080017; public static final int accessibility_custom_action_2 = 0x7f080018; public static final int accessibility_custom_action_20 = 0x7f080019; public static final int accessibility_custom_action_21 = 0x7f08001a; public static final int accessibility_custom_action_22 = 0x7f08001b; public static final int accessibility_custom_action_23 = 0x7f08001c; public static final int accessibility_custom_action_24 = 0x7f08001d; public static final int accessibility_custom_action_25 = 0x7f08001e; public static final int accessibility_custom_action_26 = 0x7f08001f; public static final int accessibility_custom_action_27 = 0x7f080020; public static final int accessibility_custom_action_28 = 0x7f080021; public static final int accessibility_custom_action_29 = 0x7f080022; public static final int accessibility_custom_action_3 = 0x7f080023; public static final int accessibility_custom_action_30 = 0x7f080024; public static final int accessibility_custom_action_31 = 0x7f080025; public static final int accessibility_custom_action_4 = 0x7f080026; public static final int accessibility_custom_action_5 = 0x7f080027; public static final int accessibility_custom_action_6 = 0x7f080028; public static final int accessibility_custom_action_7 = 0x7f080029; public static final int accessibility_custom_action_8 = 0x7f08002a; public static final int accessibility_custom_action_9 = 0x7f08002b; public static final int action_bar = 0x7f080031; public static final int action_bar_activity_content = 0x7f080032; public static final int action_bar_container = 0x7f080033; public static final int action_bar_root = 0x7f080034; public static final int action_bar_spinner = 0x7f080035; public static final int action_bar_subtitle = 0x7f080036; public static final int action_bar_title = 0x7f080037; public static final int action_container = 0x7f080038; public static final int action_context_bar = 0x7f080039; public static final int action_divider = 0x7f08003a; public static final int action_image = 0x7f08003b; public static final int action_menu_divider = 0x7f08003c; public static final int action_menu_presenter = 0x7f08003d; public static final int action_mode_bar = 0x7f08003e; public static final int action_mode_bar_stub = 0x7f08003f; public static final int action_mode_close_button = 0x7f080040; public static final int action_text = 0x7f080041; public static final int actions = 0x7f080042; public static final int activity_chooser_view_content = 0x7f080043; public static final int add = 0x7f080044; public static final int alertTitle = 0x7f080045; public static final int async = 0x7f08004a; public static final int blocking = 0x7f08004e; public static final int buttonPanel = 0x7f080050; public static final int checkbox = 0x7f080059; public static final int checked = 0x7f08005a; public static final int chronometer = 0x7f08005d; public static final int content = 0x7f080064; public static final int contentPanel = 0x7f080065; public static final int custom = 0x7f080067; public static final int customPanel = 0x7f080068; public static final int decor_content_parent = 0x7f08006b; public static final int default_activity_button = 0x7f08006c; public static final int dialog_button = 0x7f080072; public static final int edit_query = 0x7f080077; public static final int expand_activities_button = 0x7f08007c; public static final int expanded_menu = 0x7f08007d; public static final int flipper_skip_view_traversal = 0x7f08008b; public static final int forever = 0x7f08008d; public static final int group_divider = 0x7f080093; public static final int home = 0x7f080096; public static final int icon = 0x7f080099; public static final int icon_group = 0x7f08009a; public static final int image = 0x7f08009c; public static final int info = 0x7f08009d; public static final int italic = 0x7f08009f; public static final int line1 = 0x7f0800a4; public static final int line3 = 0x7f0800a5; public static final int listMode = 0x7f0800a6; public static final int list_item = 0x7f0800a7; public static final int message = 0x7f0800a9; public static final int multiply = 0x7f0800c6; public static final int none = 0x7f0800ca; public static final int normal = 0x7f0800cb; public static final int notification_background = 0x7f0800cc; public static final int notification_main_column = 0x7f0800cd; public static final int notification_main_column_container = 0x7f0800ce; public static final int off = 0x7f0800cf; public static final int on = 0x7f0800d0; public static final int parentPanel = 0x7f0800d5; public static final int progress_circular = 0x7f0800db; public static final int progress_horizontal = 0x7f0800dc; public static final int radio = 0x7f0800dd; public static final int right_icon = 0x7f0800e0; public static final int right_side = 0x7f0800e1; public static final int screen = 0x7f0800ef; public static final int scrollIndicatorDown = 0x7f0800f1; public static final int scrollIndicatorUp = 0x7f0800f2; public static final int scrollView = 0x7f0800f3; public static final int search_badge = 0x7f0800f5; public static final int search_bar = 0x7f0800f6; public static final int search_button = 0x7f0800f7; public static final int search_close_btn = 0x7f0800f8; public static final int search_edit_frame = 0x7f0800f9; public static final int search_go_btn = 0x7f0800fa; public static final int search_mag_icon = 0x7f0800fb; public static final int search_plate = 0x7f0800fc; public static final int search_src_text = 0x7f0800fd; public static final int search_voice_btn = 0x7f0800fe; public static final int select_dialog_listview = 0x7f0800ff; public static final int shortcut = 0x7f080101; public static final int spacer = 0x7f08010c; public static final int split_action_bar = 0x7f08010d; public static final int src_atop = 0x7f080110; public static final int src_in = 0x7f080111; public static final int src_over = 0x7f080112; public static final int submenuarrow = 0x7f080116; public static final int submit_area = 0x7f080117; public static final int tabMode = 0x7f080118; public static final int tag_accessibility_actions = 0x7f080119; public static final int tag_accessibility_clickable_spans = 0x7f08011a; public static final int tag_accessibility_heading = 0x7f08011b; public static final int tag_accessibility_pane_title = 0x7f08011c; public static final int tag_screen_reader_focusable = 0x7f08011d; public static final int tag_transition_group = 0x7f08011e; public static final int tag_unhandled_key_event_manager = 0x7f08011f; public static final int tag_unhandled_key_listeners = 0x7f080120; public static final int text = 0x7f080123; public static final int text2 = 0x7f080124; public static final int textSpacerNoButtons = 0x7f080126; public static final int textSpacerNoTitle = 0x7f080127; public static final int time = 0x7f08012f; public static final int title = 0x7f080130; public static final int titleDividerNoCustom = 0x7f080131; public static final int title_template = 0x7f080132; public static final int topPanel = 0x7f080134; public static final int unchecked = 0x7f08013d; public static final int uniform = 0x7f08013e; public static final int up = 0x7f080140; public static final int wrap_content = 0x7f08014a; } public static final class integer { private integer() {} public static final int abc_config_activityDefaultDur = 0x7f090000; public static final int abc_config_activityShortDur = 0x7f090001; public static final int cancel_button_image_alpha = 0x7f090004; public static final int config_tooltipAnimTime = 0x7f090005; public static final int status_bar_notification_info_maxnum = 0x7f090016; } public static final class interpolator { private interpolator() {} public static final int btn_checkbox_checked_mtrl_animation_interpolator_0 = 0x7f0a0000; public static final int btn_checkbox_checked_mtrl_animation_interpolator_1 = 0x7f0a0001; public static final int btn_checkbox_unchecked_mtrl_animation_interpolator_0 = 0x7f0a0002; public static final int btn_checkbox_unchecked_mtrl_animation_interpolator_1 = 0x7f0a0003; public static final int btn_radio_to_off_mtrl_animation_interpolator_0 = 0x7f0a0004; public static final int btn_radio_to_on_mtrl_animation_interpolator_0 = 0x7f0a0005; public static final int fast_out_slow_in = 0x7f0a0006; } public static final class layout { private layout() {} public static final int abc_action_bar_title_item = 0x7f0b0000; public static final int abc_action_bar_up_container = 0x7f0b0001; public static final int abc_action_menu_item_layout = 0x7f0b0002; public static final int abc_action_menu_layout = 0x7f0b0003; public static final int abc_action_mode_bar = 0x7f0b0004; public static final int abc_action_mode_close_item_material = 0x7f0b0005; public static final int abc_activity_chooser_view = 0x7f0b0006; public static final int abc_activity_chooser_view_list_item = 0x7f0b0007; public static final int abc_alert_dialog_button_bar_material = 0x7f0b0008; public static final int abc_alert_dialog_material = 0x7f0b0009; public static final int abc_alert_dialog_title_material = 0x7f0b000a; public static final int abc_cascading_menu_item_layout = 0x7f0b000b; public static final int abc_dialog_title_material = 0x7f0b000c; public static final int abc_expanded_menu_layout = 0x7f0b000d; public static final int abc_list_menu_item_checkbox = 0x7f0b000e; public static final int abc_list_menu_item_icon = 0x7f0b000f; public static final int abc_list_menu_item_layout = 0x7f0b0010; public static final int abc_list_menu_item_radio = 0x7f0b0011; public static final int abc_popup_menu_header_item_layout = 0x7f0b0012; public static final int abc_popup_menu_item_layout = 0x7f0b0013; public static final int abc_screen_content_include = 0x7f0b0014; public static final int abc_screen_simple = 0x7f0b0015; public static final int abc_screen_simple_overlay_action_mode = 0x7f0b0016; public static final int abc_screen_toolbar = 0x7f0b0017; public static final int abc_search_dropdown_item_icons_2line = 0x7f0b0018; public static final int abc_search_view = 0x7f0b0019; public static final int abc_select_dialog_material = 0x7f0b001a; public static final int abc_tooltip = 0x7f0b001b; public static final int custom_dialog = 0x7f0b001c; public static final int notification_action = 0x7f0b004a; public static final int notification_action_tombstone = 0x7f0b004b; public static final int notification_template_custom_big = 0x7f0b004c; public static final int notification_template_icon_group = 0x7f0b004d; public static final int notification_template_part_chronometer = 0x7f0b004e; public static final int notification_template_part_time = 0x7f0b004f; public static final int select_dialog_item_material = 0x7f0b0053; public static final int select_dialog_multichoice_material = 0x7f0b0054; public static final int select_dialog_singlechoice_material = 0x7f0b0055; public static final int support_simple_spinner_dropdown_item = 0x7f0b0057; } public static final class string { private string() {} public static final int abc_action_bar_home_description = 0x7f0e0000; public static final int abc_action_bar_up_description = 0x7f0e0001; public static final int abc_action_menu_overflow_description = 0x7f0e0002; public static final int abc_action_mode_done = 0x7f0e0003; public static final int abc_activity_chooser_view_see_all = 0x7f0e0004; public static final int abc_activitychooserview_choose_application = 0x7f0e0005; public static final int abc_capital_off = 0x7f0e0006; public static final int abc_capital_on = 0x7f0e0007; public static final int abc_menu_alt_shortcut_label = 0x7f0e0008; public static final int abc_menu_ctrl_shortcut_label = 0x7f0e0009; public static final int abc_menu_delete_shortcut_label = 0x7f0e000a; public static final int abc_menu_enter_shortcut_label = 0x7f0e000b; public static final int abc_menu_function_shortcut_label = 0x7f0e000c; public static final int abc_menu_meta_shortcut_label = 0x7f0e000d; public static final int abc_menu_shift_shortcut_label = 0x7f0e000e; public static final int abc_menu_space_shortcut_label = 0x7f0e000f; public static final int abc_menu_sym_shortcut_label = 0x7f0e0010; public static final int abc_prepend_shortcut_label = 0x7f0e0011; public static final int abc_search_hint = 0x7f0e0012; public static final int abc_searchview_description_clear = 0x7f0e0013; public static final int abc_searchview_description_query = 0x7f0e0014; public static final int abc_searchview_description_search = 0x7f0e0015; public static final int abc_searchview_description_submit = 0x7f0e0016; public static final int abc_searchview_description_voice = 0x7f0e0017; public static final int abc_shareactionprovider_share_with = 0x7f0e0018; public static final int abc_shareactionprovider_share_with_application = 0x7f0e0019; public static final int abc_toolbar_collapse_description = 0x7f0e001a; public static final int search_menu_title = 0x7f0e007e; public static final int status_bar_notification_info_overflow = 0x7f0e0086; } public static final class style { private style() {} public static final int AlertDialog_AppCompat = 0x7f0f0000; public static final int AlertDialog_AppCompat_Light = 0x7f0f0001; public static final int Animation_AppCompat_Dialog = 0x7f0f0002; public static final int Animation_AppCompat_DropDownUp = 0x7f0f0003; public static final int Animation_AppCompat_Tooltip = 0x7f0f0004; public static final int Base_AlertDialog_AppCompat = 0x7f0f000a; public static final int Base_AlertDialog_AppCompat_Light = 0x7f0f000b; public static final int Base_Animation_AppCompat_Dialog = 0x7f0f000c; public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0f000d; public static final int Base_Animation_AppCompat_Tooltip = 0x7f0f000e; public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0f0011; public static final int Base_DialogWindowTitle_AppCompat = 0x7f0f0010; public static final int Base_TextAppearance_AppCompat = 0x7f0f0015; public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f0f0016; public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f0f0017; public static final int Base_TextAppearance_AppCompat_Button = 0x7f0f0018; public static final int Base_TextAppearance_AppCompat_Caption = 0x7f0f0019; public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f0f001a; public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f0f001b; public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f0f001c; public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f0f001d; public static final int Base_TextAppearance_AppCompat_Headline = 0x7f0f001e; public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f0f001f; public static final int Base_TextAppearance_AppCompat_Large = 0x7f0f0020; public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f0f0021; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0f0022; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0f0023; public static final int Base_TextAppearance_AppCompat_Medium = 0x7f0f0024; public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f0f0025; public static final int Base_TextAppearance_AppCompat_Menu = 0x7f0f0026; public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0f0027; public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0f0028; public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f0f0029; public static final int Base_TextAppearance_AppCompat_Small = 0x7f0f002a; public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f0f002b; public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f0f002c; public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f0f002d; public static final int Base_TextAppearance_AppCompat_Title = 0x7f0f002e; public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f0f002f; public static final int Base_TextAppearance_AppCompat_Tooltip = 0x7f0f0030; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0f0031; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0f0032; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0f0033; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0f0034; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0f0035; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0f0036; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0f0037; public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f0f0038; public static final int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0f0039; public static final int Base_TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0f003a; public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0f003b; public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0f003c; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0f003d; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0f003e; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0f003f; public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f0f0040; public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0f0041; public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0f0046; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0f0047; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0f0048; public static final int Base_ThemeOverlay_AppCompat = 0x7f0f006a; public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0f006b; public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0f006c; public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0f006d; public static final int Base_ThemeOverlay_AppCompat_Dialog = 0x7f0f006e; public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0f006f; public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0f0070; public static final int Base_Theme_AppCompat = 0x7f0f0049; public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0f004a; public static final int Base_Theme_AppCompat_Dialog = 0x7f0f004b; public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f0f004f; public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0f004c; public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0f004d; public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0f004e; public static final int Base_Theme_AppCompat_Light = 0x7f0f0050; public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0f0051; public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f0f0052; public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f0f0056; public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0f0053; public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0f0054; public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0f0055; public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f0f0084; public static final int Base_V21_Theme_AppCompat = 0x7f0f0080; public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f0f0081; public static final int Base_V21_Theme_AppCompat_Light = 0x7f0f0082; public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f0f0083; public static final int Base_V22_Theme_AppCompat = 0x7f0f0085; public static final int Base_V22_Theme_AppCompat_Light = 0x7f0f0086; public static final int Base_V23_Theme_AppCompat = 0x7f0f0087; public static final int Base_V23_Theme_AppCompat_Light = 0x7f0f0088; public static final int Base_V26_Theme_AppCompat = 0x7f0f0089; public static final int Base_V26_Theme_AppCompat_Light = 0x7f0f008a; public static final int Base_V26_Widget_AppCompat_Toolbar = 0x7f0f008b; public static final int Base_V28_Theme_AppCompat = 0x7f0f008c; public static final int Base_V28_Theme_AppCompat_Light = 0x7f0f008d; public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f0f0092; public static final int Base_V7_Theme_AppCompat = 0x7f0f008e; public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0f008f; public static final int Base_V7_Theme_AppCompat_Light = 0x7f0f0090; public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0f0091; public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0f0093; public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0f0094; public static final int Base_V7_Widget_AppCompat_Toolbar = 0x7f0f0095; public static final int Base_Widget_AppCompat_ActionBar = 0x7f0f0096; public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0f0097; public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0f0098; public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f0f0099; public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f0f009a; public static final int Base_Widget_AppCompat_ActionButton = 0x7f0f009b; public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f0f009c; public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f0f009d; public static final int Base_Widget_AppCompat_ActionMode = 0x7f0f009e; public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0f009f; public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f0f00a0; public static final int Base_Widget_AppCompat_Button = 0x7f0f00a1; public static final int Base_Widget_AppCompat_ButtonBar = 0x7f0f00a7; public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0f00a8; public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f0f00a2; public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f0f00a3; public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0f00a4; public static final int Base_Widget_AppCompat_Button_Colored = 0x7f0f00a5; public static final int Base_Widget_AppCompat_Button_Small = 0x7f0f00a6; public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f0f00a9; public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f0f00aa; public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0f00ab; public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f0f00ac; public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0f00ad; public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f0f00ae; public static final int Base_Widget_AppCompat_EditText = 0x7f0f00af; public static final int Base_Widget_AppCompat_ImageButton = 0x7f0f00b0; public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0f00b1; public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0f00b2; public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0f00b3; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f0f00b4; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0f00b5; public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f0f00b6; public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f0f00b7; public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0f00b8; public static final int Base_Widget_AppCompat_ListMenuView = 0x7f0f00b9; public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f0f00ba; public static final int Base_Widget_AppCompat_ListView = 0x7f0f00bb; public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f0f00bc; public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f0f00bd; public static final int Base_Widget_AppCompat_PopupMenu = 0x7f0f00be; public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f0f00bf; public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0f00c0; public static final int Base_Widget_AppCompat_ProgressBar = 0x7f0f00c1; public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f0f00c2; public static final int Base_Widget_AppCompat_RatingBar = 0x7f0f00c3; public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f0f00c4; public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f0f00c5; public static final int Base_Widget_AppCompat_SearchView = 0x7f0f00c6; public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0f00c7; public static final int Base_Widget_AppCompat_SeekBar = 0x7f0f00c8; public static final int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f0f00c9; public static final int Base_Widget_AppCompat_Spinner = 0x7f0f00ca; public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f0f00cb; public static final int Base_Widget_AppCompat_TextView = 0x7f0f00cc; public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f0f00cd; public static final int Base_Widget_AppCompat_Toolbar = 0x7f0f00ce; public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0f00cf; public static final int Platform_AppCompat = 0x7f0f00ef; public static final int Platform_AppCompat_Light = 0x7f0f00f0; public static final int Platform_ThemeOverlay_AppCompat = 0x7f0f00f5; public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f0f00f6; public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f0f00f7; public static final int Platform_V21_AppCompat = 0x7f0f00f8; public static final int Platform_V21_AppCompat_Light = 0x7f0f00f9; public static final int Platform_V25_AppCompat = 0x7f0f00fa; public static final int Platform_V25_AppCompat_Light = 0x7f0f00fb; public static final int Platform_Widget_AppCompat_Spinner = 0x7f0f00fc; public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f0f00fd; public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f0f00fe; public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f0f00ff; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f0f0100; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f0f0101; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Shortcut = 0x7f0f0102; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_SubmenuArrow = 0x7f0f0103; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f0f0104; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Title = 0x7f0f0105; public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f0f010b; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f0f0106; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f0f0107; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f0f0108; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f0f0109; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f0f010a; public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f0f010c; public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f0f010d; public static final int TextAppearance_AppCompat = 0x7f0f0132; public static final int TextAppearance_AppCompat_Body1 = 0x7f0f0133; public static final int TextAppearance_AppCompat_Body2 = 0x7f0f0134; public static final int TextAppearance_AppCompat_Button = 0x7f0f0135; public static final int TextAppearance_AppCompat_Caption = 0x7f0f0136; public static final int TextAppearance_AppCompat_Display1 = 0x7f0f0137; public static final int TextAppearance_AppCompat_Display2 = 0x7f0f0138; public static final int TextAppearance_AppCompat_Display3 = 0x7f0f0139; public static final int TextAppearance_AppCompat_Display4 = 0x7f0f013a; public static final int TextAppearance_AppCompat_Headline = 0x7f0f013b; public static final int TextAppearance_AppCompat_Inverse = 0x7f0f013c; public static final int TextAppearance_AppCompat_Large = 0x7f0f013d; public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0f013e; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0f013f; public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0f0140; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0f0141; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0f0142; public static final int TextAppearance_AppCompat_Medium = 0x7f0f0143; public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0f0144; public static final int TextAppearance_AppCompat_Menu = 0x7f0f0145; public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0f0146; public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0f0147; public static final int TextAppearance_AppCompat_Small = 0x7f0f0148; public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0f0149; public static final int TextAppearance_AppCompat_Subhead = 0x7f0f014a; public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0f014b; public static final int TextAppearance_AppCompat_Title = 0x7f0f014c; public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0f014d; public static final int TextAppearance_AppCompat_Tooltip = 0x7f0f014e; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0f014f; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0f0150; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0f0151; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0f0152; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0f0153; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0f0154; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0f0155; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0f0156; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0f0157; public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0f0158; public static final int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0f0159; public static final int TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0f015a; public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0f015b; public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0f015c; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0f015d; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0f015e; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0f015f; public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0f0160; public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0f0161; public static final int TextAppearance_Compat_Notification = 0x7f0f0162; public static final int TextAppearance_Compat_Notification_Info = 0x7f0f0163; public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0f0164; public static final int TextAppearance_Compat_Notification_Time = 0x7f0f0165; public static final int TextAppearance_Compat_Notification_Title = 0x7f0f0166; public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0f017e; public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0f017f; public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0f0180; public static final int ThemeOverlay_AppCompat = 0x7f0f01d6; public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f0f01d7; public static final int ThemeOverlay_AppCompat_Dark = 0x7f0f01d8; public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0f01d9; public static final int ThemeOverlay_AppCompat_DayNight = 0x7f0f01da; public static final int ThemeOverlay_AppCompat_DayNight_ActionBar = 0x7f0f01db; public static final int ThemeOverlay_AppCompat_Dialog = 0x7f0f01dc; public static final int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0f01dd; public static final int ThemeOverlay_AppCompat_Light = 0x7f0f01de; public static final int Theme_AppCompat = 0x7f0f0182; public static final int Theme_AppCompat_CompactMenu = 0x7f0f0183; public static final int Theme_AppCompat_DayNight = 0x7f0f0184; public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f0f0185; public static final int Theme_AppCompat_DayNight_Dialog = 0x7f0f0186; public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f0f0189; public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f0f0187; public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f0f0188; public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f0f018a; public static final int Theme_AppCompat_Dialog = 0x7f0f018b; public static final int Theme_AppCompat_DialogWhenLarge = 0x7f0f018e; public static final int Theme_AppCompat_Dialog_Alert = 0x7f0f018c; public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f0f018d; public static final int Theme_AppCompat_Light = 0x7f0f018f; public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f0f0190; public static final int Theme_AppCompat_Light_Dialog = 0x7f0f0191; public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0f0194; public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f0f0192; public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0f0193; public static final int Theme_AppCompat_Light_NoActionBar = 0x7f0f0195; public static final int Theme_AppCompat_NoActionBar = 0x7f0f0196; public static final int Widget_AppCompat_ActionBar = 0x7f0f0203; public static final int Widget_AppCompat_ActionBar_Solid = 0x7f0f0204; public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f0f0205; public static final int Widget_AppCompat_ActionBar_TabText = 0x7f0f0206; public static final int Widget_AppCompat_ActionBar_TabView = 0x7f0f0207; public static final int Widget_AppCompat_ActionButton = 0x7f0f0208; public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f0f0209; public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f0f020a; public static final int Widget_AppCompat_ActionMode = 0x7f0f020b; public static final int Widget_AppCompat_ActivityChooserView = 0x7f0f020c; public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f0f020d; public static final int Widget_AppCompat_Button = 0x7f0f020e; public static final int Widget_AppCompat_ButtonBar = 0x7f0f0214; public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0f0215; public static final int Widget_AppCompat_Button_Borderless = 0x7f0f020f; public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f0f0210; public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0f0211; public static final int Widget_AppCompat_Button_Colored = 0x7f0f0212; public static final int Widget_AppCompat_Button_Small = 0x7f0f0213; public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f0f0216; public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f0f0217; public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f0f0218; public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f0f0219; public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f0f021a; public static final int Widget_AppCompat_EditText = 0x7f0f021b; public static final int Widget_AppCompat_ImageButton = 0x7f0f021c; public static final int Widget_AppCompat_Light_ActionBar = 0x7f0f021d; public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f0f021e; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f0f021f; public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0f0220; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f0f0221; public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f0f0222; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0f0223; public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f0f0224; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f0f0225; public static final int Widget_AppCompat_Light_ActionButton = 0x7f0f0226; public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f0f0227; public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f0f0228; public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f0f0229; public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f0f022a; public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f0f022b; public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f0f022c; public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f0f022d; public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f0f022e; public static final int Widget_AppCompat_Light_PopupMenu = 0x7f0f022f; public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0f0230; public static final int Widget_AppCompat_Light_SearchView = 0x7f0f0231; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f0f0232; public static final int Widget_AppCompat_ListMenuView = 0x7f0f0233; public static final int Widget_AppCompat_ListPopupWindow = 0x7f0f0234; public static final int Widget_AppCompat_ListView = 0x7f0f0235; public static final int Widget_AppCompat_ListView_DropDown = 0x7f0f0236; public static final int Widget_AppCompat_ListView_Menu = 0x7f0f0237; public static final int Widget_AppCompat_PopupMenu = 0x7f0f0238; public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f0f0239; public static final int Widget_AppCompat_PopupWindow = 0x7f0f023a; public static final int Widget_AppCompat_ProgressBar = 0x7f0f023b; public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f0f023c; public static final int Widget_AppCompat_RatingBar = 0x7f0f023d; public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f0f023e; public static final int Widget_AppCompat_RatingBar_Small = 0x7f0f023f; public static final int Widget_AppCompat_SearchView = 0x7f0f0240; public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f0f0241; public static final int Widget_AppCompat_SeekBar = 0x7f0f0242; public static final int Widget_AppCompat_SeekBar_Discrete = 0x7f0f0243; public static final int Widget_AppCompat_Spinner = 0x7f0f0244; public static final int Widget_AppCompat_Spinner_DropDown = 0x7f0f0245; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f0f0246; public static final int Widget_AppCompat_Spinner_Underlined = 0x7f0f0247; public static final int Widget_AppCompat_TextView = 0x7f0f0248; public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f0f0249; public static final int Widget_AppCompat_Toolbar = 0x7f0f024a; public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0f024b; public static final int Widget_Compat_NotificationActionContainer = 0x7f0f024c; public static final int Widget_Compat_NotificationActionText = 0x7f0f024d; } public static final class styleable { private styleable() {} public static final int[] ActionBar = { 0x7f030038, 0x7f030040, 0x7f030041, 0x7f0300bf, 0x7f0300c0, 0x7f0300c1, 0x7f0300c2, 0x7f0300c3, 0x7f0300c4, 0x7f0300de, 0x7f0300e7, 0x7f0300e8, 0x7f0300fb, 0x7f030139, 0x7f03013f, 0x7f030145, 0x7f030146, 0x7f030148, 0x7f030152, 0x7f03015f, 0x7f0301ca, 0x7f0301ea, 0x7f030201, 0x7f030209, 0x7f03020a, 0x7f030259, 0x7f03025c, 0x7f0302a4, 0x7f0302ae }; public static final int ActionBar_background = 0; public static final int ActionBar_backgroundSplit = 1; public static final int ActionBar_backgroundStacked = 2; public static final int ActionBar_contentInsetEnd = 3; public static final int ActionBar_contentInsetEndWithActions = 4; public static final int ActionBar_contentInsetLeft = 5; public static final int ActionBar_contentInsetRight = 6; public static final int ActionBar_contentInsetStart = 7; public static final int ActionBar_contentInsetStartWithNavigation = 8; public static final int ActionBar_customNavigationLayout = 9; public static final int ActionBar_displayOptions = 10; public static final int ActionBar_divider = 11; public static final int ActionBar_elevation = 12; public static final int ActionBar_height = 13; public static final int ActionBar_hideOnContentScroll = 14; public static final int ActionBar_homeAsUpIndicator = 15; public static final int ActionBar_homeLayout = 16; public static final int ActionBar_icon = 17; public static final int ActionBar_indeterminateProgressStyle = 18; public static final int ActionBar_itemPadding = 19; public static final int ActionBar_logo = 20; public static final int ActionBar_navigationMode = 21; public static final int ActionBar_popupTheme = 22; public static final int ActionBar_progressBarPadding = 23; public static final int ActionBar_progressBarStyle = 24; public static final int ActionBar_subtitle = 25; public static final int ActionBar_subtitleTextStyle = 26; public static final int ActionBar_title = 27; public static final int ActionBar_titleTextStyle = 28; public static final int[] ActionBarLayout = { 0x10100b3 }; public static final int ActionBarLayout_android_layout_gravity = 0; public static final int[] ActionMenuItemView = { 0x101013f }; public static final int ActionMenuItemView_android_minWidth = 0; public static final int[] ActionMenuView = { }; public static final int[] ActionMode = { 0x7f030038, 0x7f030040, 0x7f03009d, 0x7f030139, 0x7f03025c, 0x7f0302ae }; public static final int ActionMode_background = 0; public static final int ActionMode_backgroundSplit = 1; public static final int ActionMode_closeItemLayout = 2; public static final int ActionMode_height = 3; public static final int ActionMode_subtitleTextStyle = 4; public static final int ActionMode_titleTextStyle = 5; public static final int[] ActivityChooserView = { 0x7f03010e, 0x7f030153 }; public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0; public static final int ActivityChooserView_initialActivityCount = 1; public static final int[] AlertDialog = { 0x10100f2, 0x7f03006b, 0x7f03006c, 0x7f0301bf, 0x7f0301c0, 0x7f0301e7, 0x7f030239, 0x7f03023b }; public static final int AlertDialog_android_layout = 0; public static final int AlertDialog_buttonIconDimen = 1; public static final int AlertDialog_buttonPanelSideLayout = 2; public static final int AlertDialog_listItemLayout = 3; public static final int AlertDialog_listLayout = 4; public static final int AlertDialog_multiChoiceItemLayout = 5; public static final int AlertDialog_showTitle = 6; public static final int AlertDialog_singleChoiceItemLayout = 7; public static final int[] AnimatedStateListDrawableCompat = { 0x101011c, 0x1010194, 0x1010195, 0x1010196, 0x101030c, 0x101030d }; public static final int AnimatedStateListDrawableCompat_android_dither = 0; public static final int AnimatedStateListDrawableCompat_android_visible = 1; public static final int AnimatedStateListDrawableCompat_android_variablePadding = 2; public static final int AnimatedStateListDrawableCompat_android_constantSize = 3; public static final int AnimatedStateListDrawableCompat_android_enterFadeDuration = 4; public static final int AnimatedStateListDrawableCompat_android_exitFadeDuration = 5; public static final int[] AnimatedStateListDrawableItem = { 0x10100d0, 0x1010199 }; public static final int AnimatedStateListDrawableItem_android_id = 0; public static final int AnimatedStateListDrawableItem_android_drawable = 1; public static final int[] AnimatedStateListDrawableTransition = { 0x1010199, 0x1010449, 0x101044a, 0x101044b }; public static final int AnimatedStateListDrawableTransition_android_drawable = 0; public static final int AnimatedStateListDrawableTransition_android_toId = 1; public static final int AnimatedStateListDrawableTransition_android_fromId = 2; public static final int AnimatedStateListDrawableTransition_android_reversible = 3; public static final int[] AppCompatImageView = { 0x1010119, 0x7f030245, 0x7f0302a2, 0x7f0302a3 }; public static final int AppCompatImageView_android_src = 0; public static final int AppCompatImageView_srcCompat = 1; public static final int AppCompatImageView_tint = 2; public static final int AppCompatImageView_tintMode = 3; public static final int[] AppCompatSeekBar = { 0x1010142, 0x7f03029f, 0x7f0302a0, 0x7f0302a1 }; public static final int AppCompatSeekBar_android_thumb = 0; public static final int AppCompatSeekBar_tickMark = 1; public static final int AppCompatSeekBar_tickMarkTint = 2; public static final int AppCompatSeekBar_tickMarkTintMode = 3; public static final int[] AppCompatTextHelper = { 0x1010034, 0x101016d, 0x101016e, 0x101016f, 0x1010170, 0x1010392, 0x1010393 }; public static final int AppCompatTextHelper_android_textAppearance = 0; public static final int AppCompatTextHelper_android_drawableTop = 1; public static final int AppCompatTextHelper_android_drawableBottom = 2; public static final int AppCompatTextHelper_android_drawableLeft = 3; public static final int AppCompatTextHelper_android_drawableRight = 4; public static final int AppCompatTextHelper_android_drawableStart = 5; public static final int AppCompatTextHelper_android_drawableEnd = 6; public static final int[] AppCompatTextView = { 0x1010034, 0x7f030033, 0x7f030034, 0x7f030035, 0x7f030036, 0x7f030037, 0x7f0300ec, 0x7f0300ed, 0x7f0300ee, 0x7f0300ef, 0x7f0300f1, 0x7f0300f2, 0x7f0300f3, 0x7f0300f4, 0x7f030128, 0x7f03012b, 0x7f030133, 0x7f030171, 0x7f0301b9, 0x7f03027c, 0x7f030297 }; public static final int AppCompatTextView_android_textAppearance = 0; public static final int AppCompatTextView_autoSizeMaxTextSize = 1; public static final int AppCompatTextView_autoSizeMinTextSize = 2; public static final int AppCompatTextView_autoSizePresetSizes = 3; public static final int AppCompatTextView_autoSizeStepGranularity = 4; public static final int AppCompatTextView_autoSizeTextType = 5; public static final int AppCompatTextView_drawableBottomCompat = 6; public static final int AppCompatTextView_drawableEndCompat = 7; public static final int AppCompatTextView_drawableLeftCompat = 8; public static final int AppCompatTextView_drawableRightCompat = 9; public static final int AppCompatTextView_drawableStartCompat = 10; public static final int AppCompatTextView_drawableTint = 11; public static final int AppCompatTextView_drawableTintMode = 12; public static final int AppCompatTextView_drawableTopCompat = 13; public static final int AppCompatTextView_firstBaselineToTopHeight = 14; public static final int AppCompatTextView_fontFamily = 15; public static final int AppCompatTextView_fontVariationSettings = 16; public static final int AppCompatTextView_lastBaselineToBottomHeight = 17; public static final int AppCompatTextView_lineHeight = 18; public static final int AppCompatTextView_textAllCaps = 19; public static final int AppCompatTextView_textLocale = 20; public static final int[] AppCompatTheme = { 0x1010057, 0x10100ae, 0x7f030000, 0x7f030001, 0x7f030002, 0x7f030003, 0x7f030004, 0x7f030005, 0x7f030006, 0x7f030007, 0x7f030008, 0x7f030009, 0x7f03000a, 0x7f03000b, 0x7f03000c, 0x7f03000e, 0x7f03000f, 0x7f030010, 0x7f030011, 0x7f030012, 0x7f030013, 0x7f030014, 0x7f030015, 0x7f030016, 0x7f030017, 0x7f030018, 0x7f030019, 0x7f03001a, 0x7f03001b, 0x7f03001c, 0x7f03001d, 0x7f03001e, 0x7f030022, 0x7f030026, 0x7f030027, 0x7f030028, 0x7f030029, 0x7f030032, 0x7f030055, 0x7f030064, 0x7f030065, 0x7f030066, 0x7f030067, 0x7f030068, 0x7f03006d, 0x7f03006e, 0x7f03007a, 0x7f030081, 0x7f0300a3, 0x7f0300a4, 0x7f0300a5, 0x7f0300a6, 0x7f0300a7, 0x7f0300a8, 0x7f0300a9, 0x7f0300b0, 0x7f0300b1, 0x7f0300b7, 0x7f0300cb, 0x7f0300e4, 0x7f0300e5, 0x7f0300e6, 0x7f0300e9, 0x7f0300eb, 0x7f0300f6, 0x7f0300f7, 0x7f0300f8, 0x7f0300f9, 0x7f0300fa, 0x7f030145, 0x7f030151, 0x7f0301bb, 0x7f0301bc, 0x7f0301bd, 0x7f0301be, 0x7f0301c1, 0x7f0301c2, 0x7f0301c3, 0x7f0301c4, 0x7f0301c5, 0x7f0301c6, 0x7f0301c7, 0x7f0301c8, 0x7f0301c9, 0x7f0301f5, 0x7f0301f6, 0x7f0301f7, 0x7f030200, 0x7f030202, 0x7f03020d, 0x7f03020f, 0x7f030210, 0x7f030211, 0x7f03022c, 0x7f03022d, 0x7f03022e, 0x7f03022f, 0x7f030242, 0x7f030243, 0x7f030260, 0x7f030287, 0x7f030289, 0x7f03028a, 0x7f03028b, 0x7f03028d, 0x7f03028e, 0x7f03028f, 0x7f030290, 0x7f030293, 0x7f030294, 0x7f0302b0, 0x7f0302b1, 0x7f0302b2, 0x7f0302b3, 0x7f0302bd, 0x7f0302bf, 0x7f0302c0, 0x7f0302c1, 0x7f0302c2, 0x7f0302c3, 0x7f0302c4, 0x7f0302c5, 0x7f0302c6, 0x7f0302c7, 0x7f0302c8 }; public static final int AppCompatTheme_android_windowIsFloating = 0; public static final int AppCompatTheme_android_windowAnimationStyle = 1; public static final int AppCompatTheme_actionBarDivider = 2; public static final int AppCompatTheme_actionBarItemBackground = 3; public static final int AppCompatTheme_actionBarPopupTheme = 4; public static final int AppCompatTheme_actionBarSize = 5; public static final int AppCompatTheme_actionBarSplitStyle = 6; public static final int AppCompatTheme_actionBarStyle = 7; public static final int AppCompatTheme_actionBarTabBarStyle = 8; public static final int AppCompatTheme_actionBarTabStyle = 9; public static final int AppCompatTheme_actionBarTabTextStyle = 10; public static final int AppCompatTheme_actionBarTheme = 11; public static final int AppCompatTheme_actionBarWidgetTheme = 12; public static final int AppCompatTheme_actionButtonStyle = 13; public static final int AppCompatTheme_actionDropDownStyle = 14; public static final int AppCompatTheme_actionMenuTextAppearance = 15; public static final int AppCompatTheme_actionMenuTextColor = 16; public static final int AppCompatTheme_actionModeBackground = 17; public static final int AppCompatTheme_actionModeCloseButtonStyle = 18; public static final int AppCompatTheme_actionModeCloseDrawable = 19; public static final int AppCompatTheme_actionModeCopyDrawable = 20; public static final int AppCompatTheme_actionModeCutDrawable = 21; public static final int AppCompatTheme_actionModeFindDrawable = 22; public static final int AppCompatTheme_actionModePasteDrawable = 23; public static final int AppCompatTheme_actionModePopupWindowStyle = 24; public static final int AppCompatTheme_actionModeSelectAllDrawable = 25; public static final int AppCompatTheme_actionModeShareDrawable = 26; public static final int AppCompatTheme_actionModeSplitBackground = 27; public static final int AppCompatTheme_actionModeStyle = 28; public static final int AppCompatTheme_actionModeWebSearchDrawable = 29; public static final int AppCompatTheme_actionOverflowButtonStyle = 30; public static final int AppCompatTheme_actionOverflowMenuStyle = 31; public static final int AppCompatTheme_activityChooserViewStyle = 32; public static final int AppCompatTheme_alertDialogButtonGroupStyle = 33; public static final int AppCompatTheme_alertDialogCenterButtons = 34; public static final int AppCompatTheme_alertDialogStyle = 35; public static final int AppCompatTheme_alertDialogTheme = 36; public static final int AppCompatTheme_autoCompleteTextViewStyle = 37; public static final int AppCompatTheme_borderlessButtonStyle = 38; public static final int AppCompatTheme_buttonBarButtonStyle = 39; public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 40; public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 41; public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 42; public static final int AppCompatTheme_buttonBarStyle = 43; public static final int AppCompatTheme_buttonStyle = 44; public static final int AppCompatTheme_buttonStyleSmall = 45; public static final int AppCompatTheme_checkboxStyle = 46; public static final int AppCompatTheme_checkedTextViewStyle = 47; public static final int AppCompatTheme_colorAccent = 48; public static final int AppCompatTheme_colorBackgroundFloating = 49; public static final int AppCompatTheme_colorButtonNormal = 50; public static final int AppCompatTheme_colorControlActivated = 51; public static final int AppCompatTheme_colorControlHighlight = 52; public static final int AppCompatTheme_colorControlNormal = 53; public static final int AppCompatTheme_colorError = 54; public static final int AppCompatTheme_colorPrimary = 55; public static final int AppCompatTheme_colorPrimaryDark = 56; public static final int AppCompatTheme_colorSwitchThumbNormal = 57; public static final int AppCompatTheme_controlBackground = 58; public static final int AppCompatTheme_dialogCornerRadius = 59; public static final int AppCompatTheme_dialogPreferredPadding = 60; public static final int AppCompatTheme_dialogTheme = 61; public static final int AppCompatTheme_dividerHorizontal = 62; public static final int AppCompatTheme_dividerVertical = 63; public static final int AppCompatTheme_dropDownListViewStyle = 64; public static final int AppCompatTheme_dropdownListPreferredItemHeight = 65; public static final int AppCompatTheme_editTextBackground = 66; public static final int AppCompatTheme_editTextColor = 67; public static final int AppCompatTheme_editTextStyle = 68; public static final int AppCompatTheme_homeAsUpIndicator = 69; public static final int AppCompatTheme_imageButtonStyle = 70; public static final int AppCompatTheme_listChoiceBackgroundIndicator = 71; public static final int AppCompatTheme_listChoiceIndicatorMultipleAnimated = 72; public static final int AppCompatTheme_listChoiceIndicatorSingleAnimated = 73; public static final int AppCompatTheme_listDividerAlertDialog = 74; public static final int AppCompatTheme_listMenuViewStyle = 75; public static final int AppCompatTheme_listPopupWindowStyle = 76; public static final int AppCompatTheme_listPreferredItemHeight = 77; public static final int AppCompatTheme_listPreferredItemHeightLarge = 78; public static final int AppCompatTheme_listPreferredItemHeightSmall = 79; public static final int AppCompatTheme_listPreferredItemPaddingEnd = 80; public static final int AppCompatTheme_listPreferredItemPaddingLeft = 81; public static final int AppCompatTheme_listPreferredItemPaddingRight = 82; public static final int AppCompatTheme_listPreferredItemPaddingStart = 83; public static final int AppCompatTheme_panelBackground = 84; public static final int AppCompatTheme_panelMenuListTheme = 85; public static final int AppCompatTheme_panelMenuListWidth = 86; public static final int AppCompatTheme_popupMenuStyle = 87; public static final int AppCompatTheme_popupWindowStyle = 88; public static final int AppCompatTheme_radioButtonStyle = 89; public static final int AppCompatTheme_ratingBarStyle = 90; public static final int AppCompatTheme_ratingBarStyleIndicator = 91; public static final int AppCompatTheme_ratingBarStyleSmall = 92; public static final int AppCompatTheme_searchViewStyle = 93; public static final int AppCompatTheme_seekBarStyle = 94; public static final int AppCompatTheme_selectableItemBackground = 95; public static final int AppCompatTheme_selectableItemBackgroundBorderless = 96; public static final int AppCompatTheme_spinnerDropDownItemStyle = 97; public static final int AppCompatTheme_spinnerStyle = 98; public static final int AppCompatTheme_switchStyle = 99; public static final int AppCompatTheme_textAppearanceLargePopupMenu = 100; public static final int AppCompatTheme_textAppearanceListItem = 101; public static final int AppCompatTheme_textAppearanceListItemSecondary = 102; public static final int AppCompatTheme_textAppearanceListItemSmall = 103; public static final int AppCompatTheme_textAppearancePopupMenuHeader = 104; public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 105; public static final int AppCompatTheme_textAppearanceSearchResultTitle = 106; public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 107; public static final int AppCompatTheme_textColorAlertDialogListItem = 108; public static final int AppCompatTheme_textColorSearchUrl = 109; public static final int AppCompatTheme_toolbarNavigationButtonStyle = 110; public static final int AppCompatTheme_toolbarStyle = 111; public static final int AppCompatTheme_tooltipForegroundColor = 112; public static final int AppCompatTheme_tooltipFrameBackground = 113; public static final int AppCompatTheme_viewInflaterClass = 114; public static final int AppCompatTheme_windowActionBar = 115; public static final int AppCompatTheme_windowActionBarOverlay = 116; public static final int AppCompatTheme_windowActionModeOverlay = 117; public static final int AppCompatTheme_windowFixedHeightMajor = 118; public static final int AppCompatTheme_windowFixedHeightMinor = 119; public static final int AppCompatTheme_windowFixedWidthMajor = 120; public static final int AppCompatTheme_windowFixedWidthMinor = 121; public static final int AppCompatTheme_windowMinWidthMajor = 122; public static final int AppCompatTheme_windowMinWidthMinor = 123; public static final int AppCompatTheme_windowNoTitle = 124; public static final int[] ButtonBarLayout = { 0x7f03002b }; public static final int ButtonBarLayout_allowStacking = 0; public static final int[] ColorStateListItem = { 0x10101a5, 0x101031f, 0x7f03002c }; public static final int ColorStateListItem_android_color = 0; public static final int ColorStateListItem_android_alpha = 1; public static final int ColorStateListItem_alpha = 2; public static final int[] CompoundButton = { 0x1010107, 0x7f030069, 0x7f03006f, 0x7f030070 }; public static final int CompoundButton_android_button = 0; public static final int CompoundButton_buttonCompat = 1; public static final int CompoundButton_buttonTint = 2; public static final int CompoundButton_buttonTintMode = 3; public static final int[] DrawerArrowToggle = { 0x7f030030, 0x7f030031, 0x7f030047, 0x7f0300a2, 0x7f0300f0, 0x7f030136, 0x7f030241, 0x7f03029b }; public static final int DrawerArrowToggle_arrowHeadLength = 0; public static final int DrawerArrowToggle_arrowShaftLength = 1; public static final int DrawerArrowToggle_barLength = 2; public static final int DrawerArrowToggle_color = 3; public static final int DrawerArrowToggle_drawableSize = 4; public static final int DrawerArrowToggle_gapBetweenBars = 5; public static final int DrawerArrowToggle_spinBars = 6; public static final int DrawerArrowToggle_thickness = 7; public static final int[] FontFamily = { 0x7f03012c, 0x7f03012d, 0x7f03012e, 0x7f03012f, 0x7f030130, 0x7f030131 }; public static final int FontFamily_fontProviderAuthority = 0; public static final int FontFamily_fontProviderCerts = 1; public static final int FontFamily_fontProviderFetchStrategy = 2; public static final int FontFamily_fontProviderFetchTimeout = 3; public static final int FontFamily_fontProviderPackage = 4; public static final int FontFamily_fontProviderQuery = 5; public static final int[] FontFamilyFont = { 0x1010532, 0x1010533, 0x101053f, 0x101056f, 0x1010570, 0x7f03012a, 0x7f030132, 0x7f030133, 0x7f030134, 0x7f0302b8 }; public static final int FontFamilyFont_android_font = 0; public static final int FontFamilyFont_android_fontWeight = 1; public static final int FontFamilyFont_android_fontStyle = 2; public static final int FontFamilyFont_android_ttcIndex = 3; public static final int FontFamilyFont_android_fontVariationSettings = 4; public static final int FontFamilyFont_font = 5; public static final int FontFamilyFont_fontStyle = 6; public static final int FontFamilyFont_fontVariationSettings = 7; public static final int FontFamilyFont_fontWeight = 8; public static final int FontFamilyFont_ttcIndex = 9; public static final int[] GradientColor = { 0x101019d, 0x101019e, 0x10101a1, 0x10101a2, 0x10101a3, 0x10101a4, 0x1010201, 0x101020b, 0x1010510, 0x1010511, 0x1010512, 0x1010513 }; public static final int GradientColor_android_startColor = 0; public static final int GradientColor_android_endColor = 1; public static final int GradientColor_android_type = 2; public static final int GradientColor_android_centerX = 3; public static final int GradientColor_android_centerY = 4; public static final int GradientColor_android_gradientRadius = 5; public static final int GradientColor_android_tileMode = 6; public static final int GradientColor_android_centerColor = 7; public static final int GradientColor_android_startX = 8; public static final int GradientColor_android_startY = 9; public static final int GradientColor_android_endX = 10; public static final int GradientColor_android_endY = 11; public static final int[] GradientColorItem = { 0x10101a5, 0x1010514 }; public static final int GradientColorItem_android_color = 0; public static final int GradientColorItem_android_offset = 1; public static final int[] LinearLayoutCompat = { 0x10100af, 0x10100c4, 0x1010126, 0x1010127, 0x1010128, 0x7f0300e8, 0x7f0300ea, 0x7f0301e4, 0x7f030236 }; public static final int LinearLayoutCompat_android_gravity = 0; public static final int LinearLayoutCompat_android_orientation = 1; public static final int LinearLayoutCompat_android_baselineAligned = 2; public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; public static final int LinearLayoutCompat_android_weightSum = 4; public static final int LinearLayoutCompat_divider = 5; public static final int LinearLayoutCompat_dividerPadding = 6; public static final int LinearLayoutCompat_measureWithLargestChild = 7; public static final int LinearLayoutCompat_showDividers = 8; public static final int[] LinearLayoutCompat_Layout = { 0x10100b3, 0x10100f4, 0x10100f5, 0x1010181 }; public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0; public static final int LinearLayoutCompat_Layout_android_layout_width = 1; public static final int LinearLayoutCompat_Layout_android_layout_height = 2; public static final int LinearLayoutCompat_Layout_android_layout_weight = 3; public static final int[] ListPopupWindow = { 0x10102ac, 0x10102ad }; public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0; public static final int ListPopupWindow_android_dropDownVerticalOffset = 1; public static final int[] MenuGroup = { 0x101000e, 0x10100d0, 0x1010194, 0x10101de, 0x10101df, 0x10101e0 }; public static final int MenuGroup_android_enabled = 0; public static final int MenuGroup_android_id = 1; public static final int MenuGroup_android_visible = 2; public static final int MenuGroup_android_menuCategory = 3; public static final int MenuGroup_android_orderInCategory = 4; public static final int MenuGroup_android_checkableBehavior = 5; public static final int[] MenuItem = { 0x1010002, 0x101000e, 0x10100d0, 0x1010106, 0x1010194, 0x10101de, 0x10101df, 0x10101e1, 0x10101e2, 0x10101e3, 0x10101e4, 0x10101e5, 0x101026f, 0x7f03000d, 0x7f03001f, 0x7f030021, 0x7f03002d, 0x7f0300be, 0x7f03014e, 0x7f03014f, 0x7f0301ed, 0x7f030235, 0x7f0302b4 }; public static final int MenuItem_android_icon = 0; public static final int MenuItem_android_enabled = 1; public static final int MenuItem_android_id = 2; public static final int MenuItem_android_checked = 3; public static final int MenuItem_android_visible = 4; public static final int MenuItem_android_menuCategory = 5; 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_alphabeticShortcut = 9; public static final int MenuItem_android_numericShortcut = 10; public static final int MenuItem_android_checkable = 11; public static final int MenuItem_android_onClick = 12; public static final int MenuItem_actionLayout = 13; public static final int MenuItem_actionProviderClass = 14; public static final int MenuItem_actionViewClass = 15; public static final int MenuItem_alphabeticModifiers = 16; public static final int MenuItem_contentDescription = 17; public static final int MenuItem_iconTint = 18; public static final int MenuItem_iconTintMode = 19; public static final int MenuItem_numericModifiers = 20; public static final int MenuItem_showAsAction = 21; public static final int MenuItem_tooltipText = 22; public static final int[] MenuView = { 0x10100ae, 0x101012c, 0x101012d, 0x101012e, 0x101012f, 0x1010130, 0x1010131, 0x7f030203, 0x7f030257 }; public static final int MenuView_android_windowAnimationStyle = 0; public static final int MenuView_android_itemTextAppearance = 1; public static final int MenuView_android_horizontalDivider = 2; public static final int MenuView_android_verticalDivider = 3; public static final int MenuView_android_headerBackground = 4; public static final int MenuView_android_itemBackground = 5; public static final int MenuView_android_itemIconDisabledAlpha = 6; public static final int MenuView_preserveIconSpacing = 7; public static final int MenuView_subMenuArrow = 8; public static final int[] PopupWindow = { 0x1010176, 0x10102c9, 0x7f0301ef }; public static final int PopupWindow_android_popupBackground = 0; public static final int PopupWindow_android_popupAnimationStyle = 1; public static final int PopupWindow_overlapAnchor = 2; public static final int[] PopupWindowBackgroundState = { 0x7f03024c }; public static final int PopupWindowBackgroundState_state_above_anchor = 0; public static final int[] RecycleListView = { 0x7f0301f1, 0x7f0301f4 }; public static final int RecycleListView_paddingBottomNoButtons = 0; public static final int RecycleListView_paddingTopNoTitle = 1; public static final int[] SearchView = { 0x10100da, 0x101011f, 0x1010220, 0x1010264, 0x7f030096, 0x7f0300ba, 0x7f0300e3, 0x7f030137, 0x7f030150, 0x7f030172, 0x7f03020b, 0x7f03020c, 0x7f03022a, 0x7f03022b, 0x7f030258, 0x7f03025d, 0x7f0302be }; public static final int SearchView_android_focusable = 0; public static final int SearchView_android_maxWidth = 1; public static final int SearchView_android_inputType = 2; public static final int SearchView_android_imeOptions = 3; public static final int SearchView_closeIcon = 4; public static final int SearchView_commitIcon = 5; public static final int SearchView_defaultQueryHint = 6; public static final int SearchView_goIcon = 7; public static final int SearchView_iconifiedByDefault = 8; public static final int SearchView_layout = 9; public static final int SearchView_queryBackground = 10; public static final int SearchView_queryHint = 11; public static final int SearchView_searchHintIcon = 12; public static final int SearchView_searchIcon = 13; public static final int SearchView_submitBackground = 14; public static final int SearchView_suggestionRowLayout = 15; public static final int SearchView_voiceIcon = 16; public static final int[] Spinner = { 0x10100b2, 0x1010176, 0x101017b, 0x1010262, 0x7f030201 }; public static final int Spinner_android_entries = 0; public static final int Spinner_android_popupBackground = 1; public static final int Spinner_android_prompt = 2; public static final int Spinner_android_dropDownWidth = 3; public static final int Spinner_popupTheme = 4; public static final int[] StateListDrawable = { 0x101011c, 0x1010194, 0x1010195, 0x1010196, 0x101030c, 0x101030d }; public static final int StateListDrawable_android_dither = 0; public static final int StateListDrawable_android_visible = 1; public static final int StateListDrawable_android_variablePadding = 2; public static final int StateListDrawable_android_constantSize = 3; public static final int StateListDrawable_android_enterFadeDuration = 4; public static final int StateListDrawable_android_exitFadeDuration = 5; public static final int[] StateListDrawableItem = { 0x1010199 }; public static final int StateListDrawableItem_android_drawable = 0; public static final int[] SwitchCompat = { 0x1010124, 0x1010125, 0x1010142, 0x7f030238, 0x7f030244, 0x7f03025e, 0x7f03025f, 0x7f030261, 0x7f03029c, 0x7f03029d, 0x7f03029e, 0x7f0302b5, 0x7f0302b6, 0x7f0302b7 }; public static final int SwitchCompat_android_textOn = 0; public static final int SwitchCompat_android_textOff = 1; public static final int SwitchCompat_android_thumb = 2; public static final int SwitchCompat_showText = 3; public static final int SwitchCompat_splitTrack = 4; public static final int SwitchCompat_switchMinWidth = 5; public static final int SwitchCompat_switchPadding = 6; public static final int SwitchCompat_switchTextAppearance = 7; public static final int SwitchCompat_thumbTextPadding = 8; public static final int SwitchCompat_thumbTint = 9; public static final int SwitchCompat_thumbTintMode = 10; public static final int SwitchCompat_track = 11; public static final int SwitchCompat_trackTint = 12; public static final int SwitchCompat_trackTintMode = 13; public static final int[] TextAppearance = { 0x1010095, 0x1010096, 0x1010097, 0x1010098, 0x101009a, 0x101009b, 0x1010161, 0x1010162, 0x1010163, 0x1010164, 0x10103ac, 0x1010585, 0x7f03012b, 0x7f030133, 0x7f03027c, 0x7f030297 }; public static final int TextAppearance_android_textSize = 0; public static final int TextAppearance_android_typeface = 1; public static final int TextAppearance_android_textStyle = 2; public static final int TextAppearance_android_textColor = 3; public static final int TextAppearance_android_textColorHint = 4; public static final int TextAppearance_android_textColorLink = 5; public static final int TextAppearance_android_shadowColor = 6; public static final int TextAppearance_android_shadowDx = 7; public static final int TextAppearance_android_shadowDy = 8; public static final int TextAppearance_android_shadowRadius = 9; public static final int TextAppearance_android_fontFamily = 10; public static final int TextAppearance_android_textFontWeight = 11; public static final int TextAppearance_fontFamily = 12; public static final int TextAppearance_fontVariationSettings = 13; public static final int TextAppearance_textAllCaps = 14; public static final int TextAppearance_textLocale = 15; public static final int[] Toolbar = { 0x10100af, 0x1010140, 0x7f03006a, 0x7f03009e, 0x7f03009f, 0x7f0300bf, 0x7f0300c0, 0x7f0300c1, 0x7f0300c2, 0x7f0300c3, 0x7f0300c4, 0x7f0301ca, 0x7f0301cb, 0x7f0301e1, 0x7f0301e5, 0x7f0301e8, 0x7f0301e9, 0x7f030201, 0x7f030259, 0x7f03025a, 0x7f03025b, 0x7f0302a4, 0x7f0302a6, 0x7f0302a7, 0x7f0302a8, 0x7f0302a9, 0x7f0302aa, 0x7f0302ab, 0x7f0302ac, 0x7f0302ad }; public static final int Toolbar_android_gravity = 0; public static final int Toolbar_android_minHeight = 1; public static final int Toolbar_buttonGravity = 2; public static final int Toolbar_collapseContentDescription = 3; public static final int Toolbar_collapseIcon = 4; public static final int Toolbar_contentInsetEnd = 5; public static final int Toolbar_contentInsetEndWithActions = 6; public static final int Toolbar_contentInsetLeft = 7; public static final int Toolbar_contentInsetRight = 8; public static final int Toolbar_contentInsetStart = 9; public static final int Toolbar_contentInsetStartWithNavigation = 10; public static final int Toolbar_logo = 11; public static final int Toolbar_logoDescription = 12; public static final int Toolbar_maxButtonHeight = 13; public static final int Toolbar_menu = 14; public static final int Toolbar_navigationContentDescription = 15; public static final int Toolbar_navigationIcon = 16; public static final int Toolbar_popupTheme = 17; public static final int Toolbar_subtitle = 18; public static final int Toolbar_subtitleTextAppearance = 19; public static final int Toolbar_subtitleTextColor = 20; public static final int Toolbar_title = 21; public static final int Toolbar_titleMargin = 22; public static final int Toolbar_titleMarginBottom = 23; public static final int Toolbar_titleMarginEnd = 24; public static final int Toolbar_titleMarginStart = 25; public static final int Toolbar_titleMarginTop = 26; public static final int Toolbar_titleMargins = 27; public static final int Toolbar_titleTextAppearance = 28; public static final int Toolbar_titleTextColor = 29; public static final int[] View = { 0x1010000, 0x10100da, 0x7f0301f2, 0x7f0301f3, 0x7f030299 }; public static final int View_android_theme = 0; public static final int View_android_focusable = 1; public static final int View_paddingEnd = 2; public static final int View_paddingStart = 3; public static final int View_theme = 4; public static final int[] ViewBackgroundHelper = { 0x10100d4, 0x7f030042, 0x7f030043 }; 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 = { 0x10100d0, 0x10100f2, 0x10100f3 }; public static final int ViewStubCompat_android_id = 0; public static final int ViewStubCompat_android_layout = 1; public static final int ViewStubCompat_android_inflatedId = 2; } }
[ "1145603059@qq.com" ]
1145603059@qq.com
70743333a78aca63888c0b109254e93b0c2f5adb
a1c968bffe2edea026cd09fe0f9527115a23f8db
/arrayDemo/src/com/Telstra/Main.java
62781efcfe675ab4defe5cb42c4201bcb5c29deb
[]
no_license
MohitGiri20/javageneric
e47619d4481f74e9252cdae8f174993384fd72c7
89e9457badb4fd53d30f8277986153e8083c7762
refs/heads/master
2023-07-08T23:45:33.741985
2021-08-11T12:47:49
2021-08-11T12:47:49
394,986,072
0
0
null
null
null
null
UTF-8
Java
false
false
710
java
package com.Telstra; import java.util.Scanner; public class Main { public static Scanner scn = new Scanner(System.in); public static void main(String[] args) { // TODO Auto-generated method stub int len = Integer.parseInt(args[0]); int [] arr = new int[len]; System.out.println("Enter the element in array:"); int sum=0; for(int i=0;i<arr.length;i++) { arr[i]=scn.nextInt(); sum+=arr[i]; } System.out.println(sum); int min = MinElement(arr); System.out.println(min); } public static int MinElement(int [] arr) { int min = arr[0]; for(int i=1;i<arr.length;i++) { if(arr[i]<min) { min=arr[i]; } } return min; } }
[ "Mohit.Giri@team.telstra.com" ]
Mohit.Giri@team.telstra.com
25d0edd4a9e77620369042e68a39119b759078a6
16cee9537c176c4b463d1a6b587c7417cb8e0622
/src/test/java/week07/d02/UserImplTest.java
e81c3da436fb701d8fddc7f1e47f9f91a0117ea9
[]
no_license
ipp203/training-solutions
23c1b615965326e6409fee2e3b9616d6bc3818bb
8f36a831d25f1d12097ec4dfb089128aa6a02998
refs/heads/master
2023-03-17T10:01:32.154321
2021-03-04T22:54:12
2021-03-04T22:54:12
308,043,249
0
0
null
null
null
null
UTF-8
Java
false
false
328
java
package week07.d02; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class UserImplTest { @Test void testCreate() { User user = User.of("JoDe", "John", "Doe"); assertEquals("JoDe", user.getUsername()); assertEquals("John Doe", user.getFullName()); } }
[ "ipp203@freemail.hu" ]
ipp203@freemail.hu
a5af3fb4f15a807aa5957b0386c831919ccc7f58
833c9df2c539939286873e27ffb2fdb73bc026fb
/src/aula08/Livro.java
c3eecb7ff29871812fb82fc68974b592b4e48d87
[]
no_license
renatoavila/curso_java_oo
4195343dcd1557d00a3c14bab5757067c62787bd
e28cf87a80f3827452455b9a280b15b972bf8f1b
refs/heads/master
2021-09-07T22:05:09.298297
2018-03-01T20:30:45
2018-03-01T20:30:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,269
java
package aula08; public class Livro { private String titulo; private String autor; private int paginas; private boolean lancamento; public Livro() { super(); System.out.println("Construtor default"); } public Livro(String titulo) { // super(); this.titulo = titulo; } public Livro(int paginas) { this.paginas = paginas; } public Livro(String titulo, String autor, int paginas, boolean lancamento) { // super(); this(); this.titulo = titulo; this.autor = autor; this.paginas = paginas; this.lancamento = lancamento; System.out.println("Construtor com 4 argumentos"); } public String getTitulo() { return titulo; } public void setTitulo(String titulo) { this.titulo = titulo; } public String getAutor() { return autor; } public void setAutor(String autor) { this.autor = autor; } public int getPaginas() { return paginas; } public void setPaginas(int paginas) { this.paginas = paginas; } public boolean isLancamento() { return lancamento; } public void setLancamento(boolean lancamento) { this.lancamento = lancamento; } @Override public String toString() { return "Livro [titulo=" + titulo + ", autor=" + autor + ", paginas=" + paginas + ", lancamento=" + lancamento + "]"; } }
[ "renatoavila@outlook.com" ]
renatoavila@outlook.com
0fef1e8c7b4ca67b54aca7c6f3d88ffb45d96d68
e5aa8f7c0d791f476bcdc8099e1d293cc7dfdb03
/src/main/java/com/example/CompuCom2/entity/DealsBanner.java
87696369e4d164d78a240c88905377c207d93ec1
[]
no_license
RichardGrac/CompuCom_2
55ae919f45187b367baf5428b4749a4af23e7a69
aa397d59c68085aa41679e2d3f41d8fb8ed43ba1
refs/heads/master
2021-05-15T13:15:05.605574
2018-06-09T21:14:56
2018-06-09T21:14:56
107,134,317
0
1
null
2018-01-05T20:39:51
2017-10-16T13:53:42
JavaScript
UTF-8
Java
false
false
598
java
package com.example.CompuCom2.entity; import lombok.*; import javax.persistence.*; @Entity @Getter @Setter @ToString @NoArgsConstructor @AllArgsConstructor @Builder public class DealsBanner { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Integer id; @Column(nullable = false) private String title; @Column(nullable = false, columnDefinition = "text") private String content; @Column(nullable = false) private String image; @Column(nullable = false, columnDefinition = "bit default 0") private Boolean active; private String color; }
[ "gojoshua195@gmail.com" ]
gojoshua195@gmail.com
c55ff64a9c7b3e2a13bf229f1d7dca595fbb6cae
b6a8ca0c2a477201c4f07169a3c53e8a58314d33
/src/main/java/org/springframework/data/solr/core/query/Update.java
a02323a8b57e8414f82001e84b52135c70d66c4e
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
spring-operator/spring-data-solr
bb6794341d0c3c0af08b5d2e41bf16e49c22945d
16b475f710534e567f108027c21df381438fae1c
refs/heads/master
2020-04-27T05:21:15.466946
2018-10-27T16:23:28
2019-02-28T16:14:07
174,078,935
0
0
Apache-2.0
2019-03-06T05:38:48
2019-03-06T05:38:47
null
UTF-8
Java
false
false
1,154
java
/* * Copyright 2012 - 2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.data.solr.core.query; import org.springframework.lang.Nullable; /** * Update one or more fields of a Document without touching the others. * * @author Christoph Strobl */ public interface Update { /** * get id field of document to update * * @return */ ValueHoldingField getIdField(); /** * List of fields and values to update * * @return */ Iterable<UpdateField> getUpdates(); /** * Document Version {@code _version_} * * @return */ @Nullable Object getVersion(); }
[ "mpaluch@pivotal.io" ]
mpaluch@pivotal.io
68e4cdf91947ca9eb0674c5eab3f3ebeabcc9d92
df7ef5b87030e03ca408fbed40ceaf7ead1b2ac8
/hbase-server/src/test/java/org/apache/hadoop/hbase/master/store/TestLocalRegionOnTwoFileSystems.java
94cfe40303f9def7f10b7f9e9294ec50efd25f39
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-protobuf", "CC-BY-3.0", "Apache-2.0" ]
permissive
bbbbpage/hbase
e9a3a1765a021d106428088a13a5aace88ee98c9
852150a23f3e198e12f2948bdf732d2709cd7511
refs/heads/master
2022-08-13T06:43:20.120051
2020-05-26T11:08:55
2020-05-26T11:08:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
8,461
java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hbase.master.store; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.concurrent.TimeUnit; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.HBaseClassTestRule; import org.apache.hadoop.hbase.HBaseCommonTestingUtility; import org.apache.hadoop.hbase.HBaseTestingUtility; import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.Server; import org.apache.hadoop.hbase.ServerName; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.ColumnFamilyDescriptorBuilder; import org.apache.hadoop.hbase.client.Put; import org.apache.hadoop.hbase.client.Result; import org.apache.hadoop.hbase.client.Scan; import org.apache.hadoop.hbase.client.TableDescriptor; import org.apache.hadoop.hbase.client.TableDescriptorBuilder; import org.apache.hadoop.hbase.regionserver.MemStoreLAB; import org.apache.hadoop.hbase.regionserver.RegionScanner; import org.apache.hadoop.hbase.testclassification.MasterTests; import org.apache.hadoop.hbase.testclassification.MediumTests; import org.apache.hadoop.hbase.util.Bytes; import org.apache.hadoop.hbase.util.CommonFSUtils; import org.apache.hadoop.hbase.util.HFileArchiveUtil; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.ClassRule; import org.junit.Test; import org.junit.experimental.categories.Category; import org.apache.hbase.thirdparty.com.google.common.collect.Iterables; @Category({ MasterTests.class, MediumTests.class }) public class TestLocalRegionOnTwoFileSystems { @ClassRule public static final HBaseClassTestRule CLASS_RULE = HBaseClassTestRule.forClass(TestLocalRegionOnTwoFileSystems.class); private static final HBaseCommonTestingUtility HFILE_UTIL = new HBaseCommonTestingUtility(); private static final HBaseTestingUtility WAL_UTIL = new HBaseTestingUtility(); private static byte[] CF = Bytes.toBytes("f"); private static byte[] CQ = Bytes.toBytes("q"); private static String REGION_DIR_NAME = "local"; private static TableDescriptor TD = TableDescriptorBuilder.newBuilder(TableName.valueOf("test:local")) .setColumnFamily(ColumnFamilyDescriptorBuilder.of(CF)).build(); private static int COMPACT_MIN = 4; private LocalRegion region; @BeforeClass public static void setUp() throws Exception { WAL_UTIL.startMiniCluster(3); Configuration conf = HFILE_UTIL.getConfiguration(); conf.setBoolean(MemStoreLAB.USEMSLAB_KEY, false); Path rootDir = HFILE_UTIL.getDataTestDir(); CommonFSUtils.setRootDir(conf, rootDir); Path walRootDir = WAL_UTIL.getDataTestDirOnTestFS(); FileSystem walFs = WAL_UTIL.getTestFileSystem(); CommonFSUtils.setWALRootDir(conf, walRootDir.makeQualified(walFs.getUri(), walFs.getWorkingDirectory())); } @AfterClass public static void tearDown() throws IOException { WAL_UTIL.shutdownMiniDFSCluster(); WAL_UTIL.cleanupTestDir(); HFILE_UTIL.cleanupTestDir(); } private LocalRegion createLocalRegion(ServerName serverName) throws IOException { Server server = mock(Server.class); when(server.getConfiguration()).thenReturn(HFILE_UTIL.getConfiguration()); when(server.getServerName()).thenReturn(serverName); LocalRegionParams params = new LocalRegionParams(); params.server(server).regionDirName(REGION_DIR_NAME).tableDescriptor(TD) .flushSize(TableDescriptorBuilder.DEFAULT_MEMSTORE_FLUSH_SIZE).flushPerChanges(1_000_000) .flushIntervalMs(TimeUnit.MINUTES.toMillis(15)).compactMin(COMPACT_MIN).maxWals(32) .useHsync(false).ringBufferSlotCount(16).rollPeriodMs(TimeUnit.MINUTES.toMillis(15)) .archivedWalSuffix(LocalStore.ARCHIVED_WAL_SUFFIX) .archivedHFileSuffix(LocalStore.ARCHIVED_HFILE_SUFFIX); return LocalRegion.create(params); } @Before public void setUpBeforeTest() throws IOException { Path rootDir = HFILE_UTIL.getDataTestDir(); FileSystem fs = rootDir.getFileSystem(HFILE_UTIL.getConfiguration()); fs.delete(rootDir, true); Path walRootDir = WAL_UTIL.getDataTestDirOnTestFS(); FileSystem walFs = WAL_UTIL.getTestFileSystem(); walFs.delete(walRootDir, true); region = createLocalRegion(ServerName.valueOf("localhost", 12345, System.currentTimeMillis())); } @After public void tearDownAfterTest() { region.close(true); } private int getStorefilesCount() { return Iterables.getOnlyElement(region.region.getStores()).getStorefilesCount(); } @Test public void testFlushAndCompact() throws Exception { for (int i = 0; i < COMPACT_MIN - 1; i++) { final int index = i; region .update(r -> r.put(new Put(Bytes.toBytes(index)).addColumn(CF, CQ, Bytes.toBytes(index)))); region.flush(true); } region.requestRollAll(); region.waitUntilWalRollFinished(); region.update(r -> r.put( new Put(Bytes.toBytes(COMPACT_MIN - 1)).addColumn(CF, CQ, Bytes.toBytes(COMPACT_MIN - 1)))); region.flusherAndCompactor.requestFlush(); HFILE_UTIL.waitFor(15000, () -> getStorefilesCount() == 1); // make sure the archived hfiles are on the root fs Path storeArchiveDir = HFileArchiveUtil.getStoreArchivePathForRootDir( HFILE_UTIL.getDataTestDir(), region.region.getRegionInfo(), CF); FileSystem rootFs = storeArchiveDir.getFileSystem(HFILE_UTIL.getConfiguration()); HFILE_UTIL.waitFor(15000, () -> { try { FileStatus[] fses = rootFs.listStatus(storeArchiveDir); return fses != null && fses.length == COMPACT_MIN; } catch (FileNotFoundException e) { return false; } }); // make sure the archived wal files are on the wal fs Path walArchiveDir = new Path(CommonFSUtils.getWALRootDir(HFILE_UTIL.getConfiguration()), HConstants.HREGION_OLDLOGDIR_NAME); HFILE_UTIL.waitFor(15000, () -> { try { FileStatus[] fses = WAL_UTIL.getTestFileSystem().listStatus(walArchiveDir); return fses != null && fses.length == 1; } catch (FileNotFoundException e) { return false; } }); } @Test public void testRecovery() throws IOException { int countPerRound = 100; for (int round = 0; round < 5; round++) { for (int i = 0; i < countPerRound; i++) { int row = round * countPerRound + i; Put put = new Put(Bytes.toBytes(row)).addColumn(CF, CQ, Bytes.toBytes(row)); region.update(r -> r.put(put)); } region.close(true); region = createLocalRegion( ServerName.valueOf("localhost", 12345, System.currentTimeMillis() + round + 1)); try (RegionScanner scanner = region.getScanner(new Scan())) { List<Cell> cells = new ArrayList<>(); boolean moreValues = true; for (int i = 0; i < (round + 1) * countPerRound; i++) { assertTrue(moreValues); moreValues = scanner.next(cells); assertEquals(1, cells.size()); Result result = Result.create(cells); cells.clear(); assertEquals(i, Bytes.toInt(result.getRow())); assertEquals(i, Bytes.toInt(result.getValue(CF, CQ))); } assertFalse(moreValues); } } } }
[ "noreply@github.com" ]
noreply@github.com
bec3a6da9db34147c8817df17bbde49c91e66c0c
9d80f1673739384b31a90c92fe32e56daafdc8bf
/app/src/androidTest/java/icurious/stackutilslibrary/ExampleInstrumentedTest.java
d0481855cf568db312dfb261b0de47912b250646
[]
no_license
meTowhid/mUtils
9b780607575df7943e6786412b478f2d3beb5d95
6bb1edff9b740ba776090a64f2e88cf431fed201
refs/heads/master
2021-01-18T16:30:31.212862
2017-08-16T08:33:31
2017-08-16T08:33:31
100,461,746
0
0
null
null
null
null
UTF-8
Java
false
false
756
java
package icurious.stackutilslibrary; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("icurious.stackutilslibrary", appContext.getPackageName()); } }
[ "towhid@stsbde.com" ]
towhid@stsbde.com
77fa1dadd2e6132d80acb07696dfb5c85a9bc1e0
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
/genny_JavaWithLambdas/applicationModule/src/main/java/applicationModulepackageJava5/Foo917.java
6abedf046fd18a854590b34b46ed6151c9635490
[]
no_license
NikitaKozlov/generated-project-for-desugaring
0bc1443ab3ddc84cd289331c726761585766aea7
81506b3711004185070ca4bb9a93482b70011d36
refs/heads/master
2020-03-20T00:35:06.996525
2018-06-12T09:30:37
2018-06-12T09:30:37
137,049,317
0
0
null
null
null
null
UTF-8
Java
false
false
575
java
package applicationModulepackageJava5; public class Foo917 { public void foo0() { final Runnable anything0 = () -> System.out.println("anything"); new applicationModulepackageJava5.Foo916().foo9(); } public void foo1() { foo0(); } public void foo2() { foo1(); } public void foo3() { foo2(); } public void foo4() { foo3(); } public void foo5() { foo4(); } public void foo6() { foo5(); } public void foo7() { foo6(); } public void foo8() { foo7(); } public void foo9() { foo8(); } }
[ "nikita.e.kozlov@gmail.com" ]
nikita.e.kozlov@gmail.com
14830a80b1ebff6e70d4c0c857ce65ced0c3b485
a7fd6a1642510db953a16e6673a6da309700ca4f
/src/main/java/br/com/ilia/pontoeletronico/service/UsuarioService.java
d4bdc4b376587ef1c20908225e416af24bc8d741
[]
no_license
eumoisescf7/pontoEletronico
212634689f15688d0b3c317c898079e942e4eb3c
b1ff412521e118a1913f58c9d09d40db6212fb42
refs/heads/master
2023-05-13T21:20:13.548440
2021-06-02T22:11:16
2021-06-02T22:11:16
335,846,046
0
0
null
null
null
null
UTF-8
Java
false
false
1,077
java
package br.com.ilia.pontoeletronico.service; import br.com.ilia.pontoeletronico.entity.Usuario; import br.com.ilia.pontoeletronico.repository.UsuarioRepository; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Service; import org.springframework.web.server.ResponseStatusException; import java.util.Optional; @Slf4j @Service @RequiredArgsConstructor(onConstructor_ = {@Autowired}) public class UsuarioService { private final UsuarioRepository repository; public Optional<Usuario> buscarUsuario(String cpf) throws Exception { try { var usuario = repository.findByCpf(cpf); if (usuario.isPresent()) { return usuario; } } catch (Exception e) { throw new Exception(e.getMessage()); } throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, "Usuario não consta na base de dados"); } }
[ "moisescarlos7@gmail.com" ]
moisescarlos7@gmail.com
59b0bb0fdd88b86cd702cfa6e0cccdc89be7b8f9
a4dc1ec42738adbe094446992cd096b5c1785a1f
/src/main/java/week9/TT5.java
5c0613ee7de5d253ff307f25c3d528124fdc2215
[]
no_license
ileadall42/lt-week
4cb3118ef0c21504738aa4d3c464cf09958310ac
94b77191c4660e76d0b5dd4b68d3c084b3058449
refs/heads/master
2023-08-13T21:54:49.446267
2021-09-20T12:04:52
2021-09-20T12:04:52
408,423,551
0
0
null
null
null
null
UTF-8
Java
false
false
4,095
java
package week9; import java.util.Arrays; import java.util.HashMap; public class TT5 { int targetRound; int targetNum; int[] arr; public static void main(String[] args) { TT5 tt5 = new TT5(); int[] arr = {288, 479, 157, 128, 401, 125, 380, 492, 493, 173, 90, 88, 248, 189, 136, 492, 438, 65, 399, 68, 213, 255, 32, 98, 212, 174, 2, 435, 323, 6, 54, 109, 133, 17, 156, 152, 22, 154, 289, 488, 181, 464, 445, 483, 247, 298, 77, 386, 384, 152, 225, 358, 171, 274, 282, 339, 388, 125, 20, 363, 393, 391, 444, 284, 434, 233, 138, 179, 140, 60, 246, 266, 319, 372, 446, 271, 50, 120, 85, 148, 233, 143, 100, 322, 269, 347, 370, 227, 336, 230, 42, 260, 251, 330, 359, 477, 342, 471, 102, 336, 480, 441, 401, 95, 22, 309, 147, 412, 442, 89, 435, 497, 249, 315, 173, 110, 350, 484, 56, 227, 30, 157, 204, 312, 95, 319, 44, 381, 422, 144, 198, 283, 26, 27, 465, 301, 407, 357, 452, 432, 228, 3, 404, 404, 291, 276, 336, 157, 28, 109, 434, 373, 356, 140, 295, 492, 52, 106, 294, 402, 354, 378, 109, 91, 51, 340, 102, 393, 313, 405, 146, 301, 2, 487, 268, 190, 6, 461, 372, 457, 44, 356, 272, 491, 349, 232, 1, 272, 154, 156, 214, 275, 460, 19, 289, 462, 163, 455, 22, 285, 464, 263, 330, 3, 193, 164, 52, 171, 247, 314, 83, 381, 239, 103, 407, 181, 315, 88, 147, 274, 341, 354, 229, 206, 298, 489, 297, 4, 415, 484, 295, 118, 372, 499, 272, 216, 248, 273, 49, 391, 489, 16, 266, 326, 428, 346, 426, 69, 354, 229, 24, 482, 497, 103, 112, 91, 331, 210, 230, 390, 183, 256, 172, 473, 494, 372, 249, 36, 464, 486, 121, 415, 273, 315, 472, 125, 59, 196, 334, 172, 196, 148, 351, 72, 99, 406, 304, 96, 429, 477, 453, 168, 187, 399, 299, 409, 483, 500, 431, 306, 153, 392, 386, 378, 220, 128, 42, 497, 104, 348, 307, 465, 119, 1, 220, 175, 201, 413, 7, 154, 423, 396, 167, 170, 407, 316, 26, 317, 334, 426, 343, 470, 70, 133, 255, 338, 392, 31, 45, 365, 479, 440, 179, 276, 68, 378, 259, 196, 473, 268, 204, 192, 56, 195, 325, 402, 342, 129, 385, 210, 83, 51, 64, 238, 21, 358, 153, 274, 375, 320, 31, 458, 180, 309, 134, 35, 272, 386, 255, 82, 370, 404, 334, 367, 423, 359, 398, 478, 102, 185, 262, 221, 337, 293, 277, 464, 477, 207, 312, 480, 337, 140, 39, 407, 41, 441, 417, 189, 218, 43, 369, 83, 87, 215, 218, 463, 127, 1, 87, 105, 170, 122, 87, 231, 261, 317, 310, 131, 201, 151, 440, 38, 115, 3, 347, 488, 15, 225, 66, 216, 351, 109, 383, 421, 257, 324, 271, 24, 161, 493, 100, 499, 329, 170, 183, 139, 281, 449, 81, 294, 191, 388, 71, 178, 279, 119, 342, 477, 175, 62, 148, 303, 468, 368, 321, 120, 208, 500, 417, 468, 319, 470, 486, 335, 389, 129, 223, 59, 400, 14, 461, 494, 50, 208, 423, 414, 148, 228, 497, 30}; boolean result = tt5.stoneGame(arr); System.out.println("the ans is:" + result); } public boolean stoneGame(int[] piles) { //轮次 this.targetRound = piles.length / 2; //大于等于这个和就能赢 this.targetNum = (Arrays.stream(piles).sum() + 1) / 2; this.arr = piles; return dp(-1, piles.length, 0, 0); } public boolean dp(int pl, int pr, int cus, int round) { if (cus >= this.targetNum) { return true; } if (round >= this.targetRound) { return false; } // //都选左边 // boolean win1 = dp(pl + 2, pr, cus + this.arr[pl + 1], round + 1); //// //// //都选右边 // boolean win2 = dp(pl, pr - 2, cus + this.arr[pr - 1], round + 1); //// //// //alex选左,lee选右 // boolean win3 = dp(pl + 1, pr - 1, cus + this.arr[pl + 1], round + 1); //// //// //alex选右,lee选左 // boolean win4 = dp(pl + 1, pr - 1, cus + this.arr[pr - 1], round + 1); //// //贪心,让lee每次拿小的,alex每次拿大的 boolean finalAns = dp(pl + 2, pr, cus + this.arr[pl + 1], round + 1) || dp(pl, pr - 2, cus + this.arr[pr - 1], round + 1) || dp(pl + 1, pr - 1, cus + this.arr[pl + 1], round + 1) || dp(pl + 1, pr - 1, cus + this.arr[pr - 1], round + 1); // return finalAns; } }
[ "595248227@qq.com" ]
595248227@qq.com
95ab6141dc96a24e9149620794d2081b30822e7e
671f910b8a7d2777d6e05860eaa29b94f9a91def
/src/main/java/com/github/ronlievens/demo/DemoAxonWebSpringBootApplication.java
37430d2d0ce1a13f4af7271ef4e72d5a22b40d92
[]
no_license
pdibenedetto/demo-axon-spring-boot-web
ae04bf40e4b6a4dece084b7a47bd9fb1e6254e6f
ac52a0ece5332225d4af85398a60097782406064
refs/heads/master
2022-12-27T02:13:39.440456
2020-09-24T06:32:57
2020-09-24T06:32:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
360
java
package com.github.ronlievens.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class DemoAxonWebSpringBootApplication { public static void main(String[] args) { SpringApplication.run(DemoAxonWebSpringBootApplication.class, args); } }
[ "ron.lievens@gmail.com" ]
ron.lievens@gmail.com
bc088c4b4ad8b27ac1d1060d71e960595ff3183e
532fddb243128c8a3bfbb548db2dfa45eb140287
/TileView.java
8e2fde23dca7576d48519c923c204a5142503a50
[]
no_license
Stefani237/MineSweeper
0d4cdcf871ec1192c6e130b1bd2bf4890d328500
8d9157afa324b83a4216a03fde0ed1545fce4a5e
refs/heads/master
2020-03-10T00:57:52.908960
2018-04-11T13:20:47
2018-04-11T13:20:47
129,096,550
0
0
null
null
null
null
UTF-8
Java
false
false
769
java
package com.example.dell.minesweeper; import android.content.Context; import android.graphics.Color; import android.view.Gravity; import android.view.ViewGroup; import android.widget.LinearLayout; import android.widget.TextView; public class TileView extends LinearLayout{ public TextView text; public TileView(Context context) { super(context); this.setOrientation(VERTICAL); text = new TextView(context); LayoutParams layoutParams = new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.MATCH_PARENT); text.setLayoutParams(layoutParams); text.setTextSize(20); text.setTextColor(Color.BLACK); text.setGravity(Gravity.CENTER); this.addView(text); } }
[ "34422589+Stefani237@users.noreply.github.com" ]
34422589+Stefani237@users.noreply.github.com
43e27c72fde2bd892688e1fbe89acb537e3af4a8
0becd1a4dab729ec57ac04e88326cddd8cdf5650
/data_general/src/main/java/com/alsyun/model/ImsYzPluginStoreOrderExample.java
73b163df2fd9981ab39c162816be9996fb3e20ed
[]
no_license
MarkburtOSH/datacloud
9cafa9d88c72aa65b78f6006b34439323941d2e8
1a0c2e1441810e55081ce72781b6b9435ebaf39f
refs/heads/master
2023-04-03T12:29:37.540189
2021-04-12T12:27:45
2021-04-12T12:27:45
357,184,836
0
0
null
null
null
null
UTF-8
Java
false
false
41,451
java
package com.alsyun.model; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; public class ImsYzPluginStoreOrderExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public ImsYzPluginStoreOrderExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Integer value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Integer value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Integer value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Integer value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Integer value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Integer value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Integer> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Integer> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Integer value1, Integer value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Integer value1, Integer value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andOrderIdIsNull() { addCriterion("order_id is null"); return (Criteria) this; } public Criteria andOrderIdIsNotNull() { addCriterion("order_id is not null"); return (Criteria) this; } public Criteria andOrderIdEqualTo(Integer value) { addCriterion("order_id =", value, "orderId"); return (Criteria) this; } public Criteria andOrderIdNotEqualTo(Integer value) { addCriterion("order_id <>", value, "orderId"); return (Criteria) this; } public Criteria andOrderIdGreaterThan(Integer value) { addCriterion("order_id >", value, "orderId"); return (Criteria) this; } public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) { addCriterion("order_id >=", value, "orderId"); return (Criteria) this; } public Criteria andOrderIdLessThan(Integer value) { addCriterion("order_id <", value, "orderId"); return (Criteria) this; } public Criteria andOrderIdLessThanOrEqualTo(Integer value) { addCriterion("order_id <=", value, "orderId"); return (Criteria) this; } public Criteria andOrderIdIn(List<Integer> values) { addCriterion("order_id in", values, "orderId"); return (Criteria) this; } public Criteria andOrderIdNotIn(List<Integer> values) { addCriterion("order_id not in", values, "orderId"); return (Criteria) this; } public Criteria andOrderIdBetween(Integer value1, Integer value2) { addCriterion("order_id between", value1, value2, "orderId"); return (Criteria) this; } public Criteria andOrderIdNotBetween(Integer value1, Integer value2) { addCriterion("order_id not between", value1, value2, "orderId"); return (Criteria) this; } public Criteria andStoreIdIsNull() { addCriterion("store_id is null"); return (Criteria) this; } public Criteria andStoreIdIsNotNull() { addCriterion("store_id is not null"); return (Criteria) this; } public Criteria andStoreIdEqualTo(Integer value) { addCriterion("store_id =", value, "storeId"); return (Criteria) this; } public Criteria andStoreIdNotEqualTo(Integer value) { addCriterion("store_id <>", value, "storeId"); return (Criteria) this; } public Criteria andStoreIdGreaterThan(Integer value) { addCriterion("store_id >", value, "storeId"); return (Criteria) this; } public Criteria andStoreIdGreaterThanOrEqualTo(Integer value) { addCriterion("store_id >=", value, "storeId"); return (Criteria) this; } public Criteria andStoreIdLessThan(Integer value) { addCriterion("store_id <", value, "storeId"); return (Criteria) this; } public Criteria andStoreIdLessThanOrEqualTo(Integer value) { addCriterion("store_id <=", value, "storeId"); return (Criteria) this; } public Criteria andStoreIdIn(List<Integer> values) { addCriterion("store_id in", values, "storeId"); return (Criteria) this; } public Criteria andStoreIdNotIn(List<Integer> values) { addCriterion("store_id not in", values, "storeId"); return (Criteria) this; } public Criteria andStoreIdBetween(Integer value1, Integer value2) { addCriterion("store_id between", value1, value2, "storeId"); return (Criteria) this; } public Criteria andStoreIdNotBetween(Integer value1, Integer value2) { addCriterion("store_id not between", value1, value2, "storeId"); return (Criteria) this; } public Criteria andUpdatedAtIsNull() { addCriterion("updated_at is null"); return (Criteria) this; } public Criteria andUpdatedAtIsNotNull() { addCriterion("updated_at is not null"); return (Criteria) this; } public Criteria andUpdatedAtEqualTo(Integer value) { addCriterion("updated_at =", value, "updatedAt"); return (Criteria) this; } public Criteria andUpdatedAtNotEqualTo(Integer value) { addCriterion("updated_at <>", value, "updatedAt"); return (Criteria) this; } public Criteria andUpdatedAtGreaterThan(Integer value) { addCriterion("updated_at >", value, "updatedAt"); return (Criteria) this; } public Criteria andUpdatedAtGreaterThanOrEqualTo(Integer value) { addCriterion("updated_at >=", value, "updatedAt"); return (Criteria) this; } public Criteria andUpdatedAtLessThan(Integer value) { addCriterion("updated_at <", value, "updatedAt"); return (Criteria) this; } public Criteria andUpdatedAtLessThanOrEqualTo(Integer value) { addCriterion("updated_at <=", value, "updatedAt"); return (Criteria) this; } public Criteria andUpdatedAtIn(List<Integer> values) { addCriterion("updated_at in", values, "updatedAt"); return (Criteria) this; } public Criteria andUpdatedAtNotIn(List<Integer> values) { addCriterion("updated_at not in", values, "updatedAt"); return (Criteria) this; } public Criteria andUpdatedAtBetween(Integer value1, Integer value2) { addCriterion("updated_at between", value1, value2, "updatedAt"); return (Criteria) this; } public Criteria andUpdatedAtNotBetween(Integer value1, Integer value2) { addCriterion("updated_at not between", value1, value2, "updatedAt"); return (Criteria) this; } public Criteria andCreatedAtIsNull() { addCriterion("created_at is null"); return (Criteria) this; } public Criteria andCreatedAtIsNotNull() { addCriterion("created_at is not null"); return (Criteria) this; } public Criteria andCreatedAtEqualTo(Integer value) { addCriterion("created_at =", value, "createdAt"); return (Criteria) this; } public Criteria andCreatedAtNotEqualTo(Integer value) { addCriterion("created_at <>", value, "createdAt"); return (Criteria) this; } public Criteria andCreatedAtGreaterThan(Integer value) { addCriterion("created_at >", value, "createdAt"); return (Criteria) this; } public Criteria andCreatedAtGreaterThanOrEqualTo(Integer value) { addCriterion("created_at >=", value, "createdAt"); return (Criteria) this; } public Criteria andCreatedAtLessThan(Integer value) { addCriterion("created_at <", value, "createdAt"); return (Criteria) this; } public Criteria andCreatedAtLessThanOrEqualTo(Integer value) { addCriterion("created_at <=", value, "createdAt"); return (Criteria) this; } public Criteria andCreatedAtIn(List<Integer> values) { addCriterion("created_at in", values, "createdAt"); return (Criteria) this; } public Criteria andCreatedAtNotIn(List<Integer> values) { addCriterion("created_at not in", values, "createdAt"); return (Criteria) this; } public Criteria andCreatedAtBetween(Integer value1, Integer value2) { addCriterion("created_at between", value1, value2, "createdAt"); return (Criteria) this; } public Criteria andCreatedAtNotBetween(Integer value1, Integer value2) { addCriterion("created_at not between", value1, value2, "createdAt"); return (Criteria) this; } public Criteria andDeletedAtIsNull() { addCriterion("deleted_at is null"); return (Criteria) this; } public Criteria andDeletedAtIsNotNull() { addCriterion("deleted_at is not null"); return (Criteria) this; } public Criteria andDeletedAtEqualTo(Integer value) { addCriterion("deleted_at =", value, "deletedAt"); return (Criteria) this; } public Criteria andDeletedAtNotEqualTo(Integer value) { addCriterion("deleted_at <>", value, "deletedAt"); return (Criteria) this; } public Criteria andDeletedAtGreaterThan(Integer value) { addCriterion("deleted_at >", value, "deletedAt"); return (Criteria) this; } public Criteria andDeletedAtGreaterThanOrEqualTo(Integer value) { addCriterion("deleted_at >=", value, "deletedAt"); return (Criteria) this; } public Criteria andDeletedAtLessThan(Integer value) { addCriterion("deleted_at <", value, "deletedAt"); return (Criteria) this; } public Criteria andDeletedAtLessThanOrEqualTo(Integer value) { addCriterion("deleted_at <=", value, "deletedAt"); return (Criteria) this; } public Criteria andDeletedAtIn(List<Integer> values) { addCriterion("deleted_at in", values, "deletedAt"); return (Criteria) this; } public Criteria andDeletedAtNotIn(List<Integer> values) { addCriterion("deleted_at not in", values, "deletedAt"); return (Criteria) this; } public Criteria andDeletedAtBetween(Integer value1, Integer value2) { addCriterion("deleted_at between", value1, value2, "deletedAt"); return (Criteria) this; } public Criteria andDeletedAtNotBetween(Integer value1, Integer value2) { addCriterion("deleted_at not between", value1, value2, "deletedAt"); return (Criteria) this; } public Criteria andHasWithdrawIsNull() { addCriterion("has_withdraw is null"); return (Criteria) this; } public Criteria andHasWithdrawIsNotNull() { addCriterion("has_withdraw is not null"); return (Criteria) this; } public Criteria andHasWithdrawEqualTo(Boolean value) { addCriterion("has_withdraw =", value, "hasWithdraw"); return (Criteria) this; } public Criteria andHasWithdrawNotEqualTo(Boolean value) { addCriterion("has_withdraw <>", value, "hasWithdraw"); return (Criteria) this; } public Criteria andHasWithdrawGreaterThan(Boolean value) { addCriterion("has_withdraw >", value, "hasWithdraw"); return (Criteria) this; } public Criteria andHasWithdrawGreaterThanOrEqualTo(Boolean value) { addCriterion("has_withdraw >=", value, "hasWithdraw"); return (Criteria) this; } public Criteria andHasWithdrawLessThan(Boolean value) { addCriterion("has_withdraw <", value, "hasWithdraw"); return (Criteria) this; } public Criteria andHasWithdrawLessThanOrEqualTo(Boolean value) { addCriterion("has_withdraw <=", value, "hasWithdraw"); return (Criteria) this; } public Criteria andHasWithdrawIn(List<Boolean> values) { addCriterion("has_withdraw in", values, "hasWithdraw"); return (Criteria) this; } public Criteria andHasWithdrawNotIn(List<Boolean> values) { addCriterion("has_withdraw not in", values, "hasWithdraw"); return (Criteria) this; } public Criteria andHasWithdrawBetween(Boolean value1, Boolean value2) { addCriterion("has_withdraw between", value1, value2, "hasWithdraw"); return (Criteria) this; } public Criteria andHasWithdrawNotBetween(Boolean value1, Boolean value2) { addCriterion("has_withdraw not between", value1, value2, "hasWithdraw"); return (Criteria) this; } public Criteria andHasSettlementIsNull() { addCriterion("has_settlement is null"); return (Criteria) this; } public Criteria andHasSettlementIsNotNull() { addCriterion("has_settlement is not null"); return (Criteria) this; } public Criteria andHasSettlementEqualTo(Boolean value) { addCriterion("has_settlement =", value, "hasSettlement"); return (Criteria) this; } public Criteria andHasSettlementNotEqualTo(Boolean value) { addCriterion("has_settlement <>", value, "hasSettlement"); return (Criteria) this; } public Criteria andHasSettlementGreaterThan(Boolean value) { addCriterion("has_settlement >", value, "hasSettlement"); return (Criteria) this; } public Criteria andHasSettlementGreaterThanOrEqualTo(Boolean value) { addCriterion("has_settlement >=", value, "hasSettlement"); return (Criteria) this; } public Criteria andHasSettlementLessThan(Boolean value) { addCriterion("has_settlement <", value, "hasSettlement"); return (Criteria) this; } public Criteria andHasSettlementLessThanOrEqualTo(Boolean value) { addCriterion("has_settlement <=", value, "hasSettlement"); return (Criteria) this; } public Criteria andHasSettlementIn(List<Boolean> values) { addCriterion("has_settlement in", values, "hasSettlement"); return (Criteria) this; } public Criteria andHasSettlementNotIn(List<Boolean> values) { addCriterion("has_settlement not in", values, "hasSettlement"); return (Criteria) this; } public Criteria andHasSettlementBetween(Boolean value1, Boolean value2) { addCriterion("has_settlement between", value1, value2, "hasSettlement"); return (Criteria) this; } public Criteria andHasSettlementNotBetween(Boolean value1, Boolean value2) { addCriterion("has_settlement not between", value1, value2, "hasSettlement"); return (Criteria) this; } public Criteria andSettlementDaysIsNull() { addCriterion("settlement_days is null"); return (Criteria) this; } public Criteria andSettlementDaysIsNotNull() { addCriterion("settlement_days is not null"); return (Criteria) this; } public Criteria andSettlementDaysEqualTo(BigDecimal value) { addCriterion("settlement_days =", value, "settlementDays"); return (Criteria) this; } public Criteria andSettlementDaysNotEqualTo(BigDecimal value) { addCriterion("settlement_days <>", value, "settlementDays"); return (Criteria) this; } public Criteria andSettlementDaysGreaterThan(BigDecimal value) { addCriterion("settlement_days >", value, "settlementDays"); return (Criteria) this; } public Criteria andSettlementDaysGreaterThanOrEqualTo(BigDecimal value) { addCriterion("settlement_days >=", value, "settlementDays"); return (Criteria) this; } public Criteria andSettlementDaysLessThan(BigDecimal value) { addCriterion("settlement_days <", value, "settlementDays"); return (Criteria) this; } public Criteria andSettlementDaysLessThanOrEqualTo(BigDecimal value) { addCriterion("settlement_days <=", value, "settlementDays"); return (Criteria) this; } public Criteria andSettlementDaysIn(List<BigDecimal> values) { addCriterion("settlement_days in", values, "settlementDays"); return (Criteria) this; } public Criteria andSettlementDaysNotIn(List<BigDecimal> values) { addCriterion("settlement_days not in", values, "settlementDays"); return (Criteria) this; } public Criteria andSettlementDaysBetween(BigDecimal value1, BigDecimal value2) { addCriterion("settlement_days between", value1, value2, "settlementDays"); return (Criteria) this; } public Criteria andSettlementDaysNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("settlement_days not between", value1, value2, "settlementDays"); return (Criteria) this; } public Criteria andAmountIsNull() { addCriterion("amount is null"); return (Criteria) this; } public Criteria andAmountIsNotNull() { addCriterion("amount is not null"); return (Criteria) this; } public Criteria andAmountEqualTo(BigDecimal value) { addCriterion("amount =", value, "amount"); return (Criteria) this; } public Criteria andAmountNotEqualTo(BigDecimal value) { addCriterion("amount <>", value, "amount"); return (Criteria) this; } public Criteria andAmountGreaterThan(BigDecimal value) { addCriterion("amount >", value, "amount"); return (Criteria) this; } public Criteria andAmountGreaterThanOrEqualTo(BigDecimal value) { addCriterion("amount >=", value, "amount"); return (Criteria) this; } public Criteria andAmountLessThan(BigDecimal value) { addCriterion("amount <", value, "amount"); return (Criteria) this; } public Criteria andAmountLessThanOrEqualTo(BigDecimal value) { addCriterion("amount <=", value, "amount"); return (Criteria) this; } public Criteria andAmountIn(List<BigDecimal> values) { addCriterion("amount in", values, "amount"); return (Criteria) this; } public Criteria andAmountNotIn(List<BigDecimal> values) { addCriterion("amount not in", values, "amount"); return (Criteria) this; } public Criteria andAmountBetween(BigDecimal value1, BigDecimal value2) { addCriterion("amount between", value1, value2, "amount"); return (Criteria) this; } public Criteria andAmountNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("amount not between", value1, value2, "amount"); return (Criteria) this; } public Criteria andFeeIsNull() { addCriterion("fee is null"); return (Criteria) this; } public Criteria andFeeIsNotNull() { addCriterion("fee is not null"); return (Criteria) this; } public Criteria andFeeEqualTo(BigDecimal value) { addCriterion("fee =", value, "fee"); return (Criteria) this; } public Criteria andFeeNotEqualTo(BigDecimal value) { addCriterion("fee <>", value, "fee"); return (Criteria) this; } public Criteria andFeeGreaterThan(BigDecimal value) { addCriterion("fee >", value, "fee"); return (Criteria) this; } public Criteria andFeeGreaterThanOrEqualTo(BigDecimal value) { addCriterion("fee >=", value, "fee"); return (Criteria) this; } public Criteria andFeeLessThan(BigDecimal value) { addCriterion("fee <", value, "fee"); return (Criteria) this; } public Criteria andFeeLessThanOrEqualTo(BigDecimal value) { addCriterion("fee <=", value, "fee"); return (Criteria) this; } public Criteria andFeeIn(List<BigDecimal> values) { addCriterion("fee in", values, "fee"); return (Criteria) this; } public Criteria andFeeNotIn(List<BigDecimal> values) { addCriterion("fee not in", values, "fee"); return (Criteria) this; } public Criteria andFeeBetween(BigDecimal value1, BigDecimal value2) { addCriterion("fee between", value1, value2, "fee"); return (Criteria) this; } public Criteria andFeeNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("fee not between", value1, value2, "fee"); return (Criteria) this; } public Criteria andFeePercentageIsNull() { addCriterion("fee_percentage is null"); return (Criteria) this; } public Criteria andFeePercentageIsNotNull() { addCriterion("fee_percentage is not null"); return (Criteria) this; } public Criteria andFeePercentageEqualTo(BigDecimal value) { addCriterion("fee_percentage =", value, "feePercentage"); return (Criteria) this; } public Criteria andFeePercentageNotEqualTo(BigDecimal value) { addCriterion("fee_percentage <>", value, "feePercentage"); return (Criteria) this; } public Criteria andFeePercentageGreaterThan(BigDecimal value) { addCriterion("fee_percentage >", value, "feePercentage"); return (Criteria) this; } public Criteria andFeePercentageGreaterThanOrEqualTo(BigDecimal value) { addCriterion("fee_percentage >=", value, "feePercentage"); return (Criteria) this; } public Criteria andFeePercentageLessThan(BigDecimal value) { addCriterion("fee_percentage <", value, "feePercentage"); return (Criteria) this; } public Criteria andFeePercentageLessThanOrEqualTo(BigDecimal value) { addCriterion("fee_percentage <=", value, "feePercentage"); return (Criteria) this; } public Criteria andFeePercentageIn(List<BigDecimal> values) { addCriterion("fee_percentage in", values, "feePercentage"); return (Criteria) this; } public Criteria andFeePercentageNotIn(List<BigDecimal> values) { addCriterion("fee_percentage not in", values, "feePercentage"); return (Criteria) this; } public Criteria andFeePercentageBetween(BigDecimal value1, BigDecimal value2) { addCriterion("fee_percentage between", value1, value2, "feePercentage"); return (Criteria) this; } public Criteria andFeePercentageNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("fee_percentage not between", value1, value2, "feePercentage"); return (Criteria) this; } public Criteria andVerificationClerkIdIsNull() { addCriterion("verification_clerk_id is null"); return (Criteria) this; } public Criteria andVerificationClerkIdIsNotNull() { addCriterion("verification_clerk_id is not null"); return (Criteria) this; } public Criteria andVerificationClerkIdEqualTo(Integer value) { addCriterion("verification_clerk_id =", value, "verificationClerkId"); return (Criteria) this; } public Criteria andVerificationClerkIdNotEqualTo(Integer value) { addCriterion("verification_clerk_id <>", value, "verificationClerkId"); return (Criteria) this; } public Criteria andVerificationClerkIdGreaterThan(Integer value) { addCriterion("verification_clerk_id >", value, "verificationClerkId"); return (Criteria) this; } public Criteria andVerificationClerkIdGreaterThanOrEqualTo(Integer value) { addCriterion("verification_clerk_id >=", value, "verificationClerkId"); return (Criteria) this; } public Criteria andVerificationClerkIdLessThan(Integer value) { addCriterion("verification_clerk_id <", value, "verificationClerkId"); return (Criteria) this; } public Criteria andVerificationClerkIdLessThanOrEqualTo(Integer value) { addCriterion("verification_clerk_id <=", value, "verificationClerkId"); return (Criteria) this; } public Criteria andVerificationClerkIdIn(List<Integer> values) { addCriterion("verification_clerk_id in", values, "verificationClerkId"); return (Criteria) this; } public Criteria andVerificationClerkIdNotIn(List<Integer> values) { addCriterion("verification_clerk_id not in", values, "verificationClerkId"); return (Criteria) this; } public Criteria andVerificationClerkIdBetween(Integer value1, Integer value2) { addCriterion("verification_clerk_id between", value1, value2, "verificationClerkId"); return (Criteria) this; } public Criteria andVerificationClerkIdNotBetween(Integer value1, Integer value2) { addCriterion("verification_clerk_id not between", value1, value2, "verificationClerkId"); return (Criteria) this; } public Criteria andPayTypeIdIsNull() { addCriterion("pay_type_id is null"); return (Criteria) this; } public Criteria andPayTypeIdIsNotNull() { addCriterion("pay_type_id is not null"); return (Criteria) this; } public Criteria andPayTypeIdEqualTo(Integer value) { addCriterion("pay_type_id =", value, "payTypeId"); return (Criteria) this; } public Criteria andPayTypeIdNotEqualTo(Integer value) { addCriterion("pay_type_id <>", value, "payTypeId"); return (Criteria) this; } public Criteria andPayTypeIdGreaterThan(Integer value) { addCriterion("pay_type_id >", value, "payTypeId"); return (Criteria) this; } public Criteria andPayTypeIdGreaterThanOrEqualTo(Integer value) { addCriterion("pay_type_id >=", value, "payTypeId"); return (Criteria) this; } public Criteria andPayTypeIdLessThan(Integer value) { addCriterion("pay_type_id <", value, "payTypeId"); return (Criteria) this; } public Criteria andPayTypeIdLessThanOrEqualTo(Integer value) { addCriterion("pay_type_id <=", value, "payTypeId"); return (Criteria) this; } public Criteria andPayTypeIdIn(List<Integer> values) { addCriterion("pay_type_id in", values, "payTypeId"); return (Criteria) this; } public Criteria andPayTypeIdNotIn(List<Integer> values) { addCriterion("pay_type_id not in", values, "payTypeId"); return (Criteria) this; } public Criteria andPayTypeIdBetween(Integer value1, Integer value2) { addCriterion("pay_type_id between", value1, value2, "payTypeId"); return (Criteria) this; } public Criteria andPayTypeIdNotBetween(Integer value1, Integer value2) { addCriterion("pay_type_id not between", value1, value2, "payTypeId"); return (Criteria) this; } public Criteria andWithdrawModeIsNull() { addCriterion("withdraw_mode is null"); return (Criteria) this; } public Criteria andWithdrawModeIsNotNull() { addCriterion("withdraw_mode is not null"); return (Criteria) this; } public Criteria andWithdrawModeEqualTo(Integer value) { addCriterion("withdraw_mode =", value, "withdrawMode"); return (Criteria) this; } public Criteria andWithdrawModeNotEqualTo(Integer value) { addCriterion("withdraw_mode <>", value, "withdrawMode"); return (Criteria) this; } public Criteria andWithdrawModeGreaterThan(Integer value) { addCriterion("withdraw_mode >", value, "withdrawMode"); return (Criteria) this; } public Criteria andWithdrawModeGreaterThanOrEqualTo(Integer value) { addCriterion("withdraw_mode >=", value, "withdrawMode"); return (Criteria) this; } public Criteria andWithdrawModeLessThan(Integer value) { addCriterion("withdraw_mode <", value, "withdrawMode"); return (Criteria) this; } public Criteria andWithdrawModeLessThanOrEqualTo(Integer value) { addCriterion("withdraw_mode <=", value, "withdrawMode"); return (Criteria) this; } public Criteria andWithdrawModeIn(List<Integer> values) { addCriterion("withdraw_mode in", values, "withdrawMode"); return (Criteria) this; } public Criteria andWithdrawModeNotIn(List<Integer> values) { addCriterion("withdraw_mode not in", values, "withdrawMode"); return (Criteria) this; } public Criteria andWithdrawModeBetween(Integer value1, Integer value2) { addCriterion("withdraw_mode between", value1, value2, "withdrawMode"); return (Criteria) this; } public Criteria andWithdrawModeNotBetween(Integer value1, Integer value2) { addCriterion("withdraw_mode not between", value1, value2, "withdrawMode"); return (Criteria) this; } public Criteria andSettleTimeIsNull() { addCriterion("settle_time is null"); return (Criteria) this; } public Criteria andSettleTimeIsNotNull() { addCriterion("settle_time is not null"); return (Criteria) this; } public Criteria andSettleTimeEqualTo(Integer value) { addCriterion("settle_time =", value, "settleTime"); return (Criteria) this; } public Criteria andSettleTimeNotEqualTo(Integer value) { addCriterion("settle_time <>", value, "settleTime"); return (Criteria) this; } public Criteria andSettleTimeGreaterThan(Integer value) { addCriterion("settle_time >", value, "settleTime"); return (Criteria) this; } public Criteria andSettleTimeGreaterThanOrEqualTo(Integer value) { addCriterion("settle_time >=", value, "settleTime"); return (Criteria) this; } public Criteria andSettleTimeLessThan(Integer value) { addCriterion("settle_time <", value, "settleTime"); return (Criteria) this; } public Criteria andSettleTimeLessThanOrEqualTo(Integer value) { addCriterion("settle_time <=", value, "settleTime"); return (Criteria) this; } public Criteria andSettleTimeIn(List<Integer> values) { addCriterion("settle_time in", values, "settleTime"); return (Criteria) this; } public Criteria andSettleTimeNotIn(List<Integer> values) { addCriterion("settle_time not in", values, "settleTime"); return (Criteria) this; } public Criteria andSettleTimeBetween(Integer value1, Integer value2) { addCriterion("settle_time between", value1, value2, "settleTime"); return (Criteria) this; } public Criteria andSettleTimeNotBetween(Integer value1, Integer value2) { addCriterion("settle_time not between", value1, value2, "settleTime"); return (Criteria) this; } public Criteria andSplitTimeIsNull() { addCriterion("split_time is null"); return (Criteria) this; } public Criteria andSplitTimeIsNotNull() { addCriterion("split_time is not null"); return (Criteria) this; } public Criteria andSplitTimeEqualTo(Integer value) { addCriterion("split_time =", value, "splitTime"); return (Criteria) this; } public Criteria andSplitTimeNotEqualTo(Integer value) { addCriterion("split_time <>", value, "splitTime"); return (Criteria) this; } public Criteria andSplitTimeGreaterThan(Integer value) { addCriterion("split_time >", value, "splitTime"); return (Criteria) this; } public Criteria andSplitTimeGreaterThanOrEqualTo(Integer value) { addCriterion("split_time >=", value, "splitTime"); return (Criteria) this; } public Criteria andSplitTimeLessThan(Integer value) { addCriterion("split_time <", value, "splitTime"); return (Criteria) this; } public Criteria andSplitTimeLessThanOrEqualTo(Integer value) { addCriterion("split_time <=", value, "splitTime"); return (Criteria) this; } public Criteria andSplitTimeIn(List<Integer> values) { addCriterion("split_time in", values, "splitTime"); return (Criteria) this; } public Criteria andSplitTimeNotIn(List<Integer> values) { addCriterion("split_time not in", values, "splitTime"); return (Criteria) this; } public Criteria andSplitTimeBetween(Integer value1, Integer value2) { addCriterion("split_time between", value1, value2, "splitTime"); return (Criteria) this; } public Criteria andSplitTimeNotBetween(Integer value1, Integer value2) { addCriterion("split_time not between", value1, value2, "splitTime"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
[ "wangye175005@163.com" ]
wangye175005@163.com
3ec7af3523605882c4a849e65d5b9e8a9dc967e4
1d11de6940e4c968c59da13e32703cfb2e273ecc
/src/main/java/com/cosium/vet/thirdparty/apache_commons_cli/Options.java
a0229a6aa23fba9623bfa009c3260b0112d0aa51
[ "MIT" ]
permissive
angoglez/vet
9f3f31e9f403b48c9433ac604b29db411195693d
c49b4d4c4ce5e80214b78cbd3519bdf9c273b919
refs/heads/master
2022-01-18T21:56:40.687376
2019-06-25T08:22:22
2019-06-25T08:22:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
9,832
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 * * <p>http://www.apache.org/licenses/LICENSE-2.0 * * <p>Unless required by applicable law or agreed to in writing, software distributed under the * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing permissions and * limitations under the License. */ package com.cosium.vet.thirdparty.apache_commons_cli; import java.io.Serializable; import java.util.*; /** * Main entry-point into the library. * * <p>Options represents a collection of {@link Option} objects, which describe the possible options * for a command-line. * * <p>It may flexibly parse long and short options, with or without values. Additionally, it may * parse only a portion of a commandline, allowing for flexible multi-stage parsing. * * @see CommandLine */ public class Options implements Serializable { /** The serial version UID. */ private static final long serialVersionUID = 1L; /** a map of the options with the character key */ private final Map<String, Option> shortOpts = new LinkedHashMap<String, Option>(); /** a map of the options with the long key */ private final Map<String, Option> longOpts = new LinkedHashMap<String, Option>(); /** a map of the required options */ // N.B. This can contain either a String (addOption) or an OptionGroup (addOptionGroup) // TODO this seems wrong private final List<Object> requiredOpts = new ArrayList<Object>(); /** a map of the option groups */ private final Map<String, OptionGroup> optionGroups = new LinkedHashMap<String, OptionGroup>(); /** * Add the specified option group. * * @param group the OptionGroup that is to be added * @return the resulting Options instance */ public Options addOptionGroup(final OptionGroup group) { if (group.isRequired()) { requiredOpts.add(group); } for (final Option option : group.getOptions()) { // an Option cannot be required if it is in an // OptionGroup, either the group is required or // nothing is required option.setRequired(false); addOption(option); optionGroups.put(option.getKey(), group); } return this; } /** * Lists the OptionGroups that are members of this Options instance. * * @return a Collection of OptionGroup instances. */ Collection<OptionGroup> getOptionGroups() { return new HashSet<OptionGroup>(optionGroups.values()); } /** * Add an option that only contains a short name. * * <p>The option does not take an argument. * * @param opt Short single-character name of the option. * @param description Self-documenting description * @return the resulting Options instance * @since 1.3 */ public Options addOption(final String opt, final String description) { addOption(opt, null, false, description); return this; } /** * Add an option that only contains a short-name. * * <p>It may be specified as requiring an argument. * * @param opt Short single-character name of the option. * @param hasArg flag signalling if an argument is required after this option * @param description Self-documenting description * @return the resulting Options instance */ public Options addOption(final String opt, final boolean hasArg, final String description) { addOption(opt, null, hasArg, description); return this; } /** * Add an option that contains a short-name and a long-name. * * <p>It may be specified as requiring an argument. * * @param opt Short single-character name of the option. * @param longOpt Long multi-character name of the option. * @param hasArg flag signalling if an argument is required after this option * @param description Self-documenting description * @return the resulting Options instance */ public Options addOption( final String opt, final String longOpt, final boolean hasArg, final String description) { addOption(new Option(opt, longOpt, hasArg, description)); return this; } /** * Add an option that contains a short-name and a long-name. * * <p>The added option is set as required. It may be specified as requiring an argument. This * method is a shortcut for: * * <pre> * <code> * Options option = new Option(opt, longOpt, hasArg, description); * option.setRequired(true); * options.add(option); * </code> * </pre> * * @param opt Short single-character name of the option. * @param longOpt Long multi-character name of the option. * @param hasArg flag signalling if an argument is required after this option * @param description Self-documenting description * @return the resulting Options instance * @since 1.4 */ public Options addRequiredOption( final String opt, final String longOpt, final boolean hasArg, final String description) { final Option option = new Option(opt, longOpt, hasArg, description); option.setRequired(true); addOption(option); return this; } /** * Adds an option instance * * @param opt the option that is to be added * @return the resulting Options instance */ public Options addOption(final Option opt) { final String key = opt.getKey(); // add it to the long option list if (opt.hasLongOpt()) { longOpts.put(opt.getLongOpt(), opt); } // if the option is required add it to the required list if (opt.isRequired()) { if (requiredOpts.contains(key)) { requiredOpts.remove(requiredOpts.indexOf(key)); } requiredOpts.add(key); } shortOpts.put(key, opt); return this; } /** * Retrieve a read-only list of options in this set * * @return read-only Collection of {@link Option} objects in this descriptor */ public Collection<Option> getOptions() { return Collections.unmodifiableCollection(helpOptions()); } /** * Returns the Options for use by the HelpFormatter. * * @return the List of Options */ List<Option> helpOptions() { return new ArrayList<Option>(shortOpts.values()); } /** * Returns the required options. * * @return read-only List of required options */ public List getRequiredOptions() { return Collections.unmodifiableList(requiredOpts); } /** * Retrieve the {@link Option} matching the long or short name specified. * * <p>The leading hyphens in the name are ignored (up to 2). * * @param opt short or long name of the {@link Option} * @return the option represented by opt */ public Option getOption(String opt) { opt = Util.stripLeadingHyphens(opt); if (shortOpts.containsKey(opt)) { return shortOpts.get(opt); } return longOpts.get(opt); } /** * Returns the options with a long name starting with the name specified. * * @param opt the partial name of the option * @return the options matching the partial name specified, or an empty list if none matches * @since 1.3 */ public List<String> getMatchingOptions(String opt) { opt = Util.stripLeadingHyphens(opt); final List<String> matchingOpts = new ArrayList<String>(); // for a perfect match return the single option only if (longOpts.keySet().contains(opt)) { return Collections.singletonList(opt); } for (final String longOpt : longOpts.keySet()) { if (longOpt.startsWith(opt)) { matchingOpts.add(longOpt); } } return matchingOpts; } /** * Returns whether the named {@link Option} is a member of this {@link Options}. * * @param opt short or long name of the {@link Option} * @return true if the named {@link Option} is a member of this {@link Options} */ public boolean hasOption(String opt) { opt = Util.stripLeadingHyphens(opt); return shortOpts.containsKey(opt) || longOpts.containsKey(opt); } /** * Returns whether the named {@link Option} is a member of this {@link Options}. * * @param opt long name of the {@link Option} * @return true if the named {@link Option} is a member of this {@link Options} * @since 1.3 */ public boolean hasLongOption(String opt) { opt = Util.stripLeadingHyphens(opt); return longOpts.containsKey(opt); } /** * Returns whether the named {@link Option} is a member of this {@link Options}. * * @param opt short name of the {@link Option} * @return true if the named {@link Option} is a member of this {@link Options} * @since 1.3 */ public boolean hasShortOption(String opt) { opt = Util.stripLeadingHyphens(opt); return shortOpts.containsKey(opt); } /** * Returns the OptionGroup the <code>opt</code> belongs to. * * @param opt the option whose OptionGroup is being queried. * @return the OptionGroup if <code>opt</code> is part of an OptionGroup, otherwise return null */ public OptionGroup getOptionGroup(final Option opt) { return optionGroups.get(opt.getKey()); } /** * Dump state, suitable for debugging. * * @return Stringified form of this object */ @Override public String toString() { final StringBuilder buf = new StringBuilder(); buf.append("[ Options: [ short "); buf.append(shortOpts.toString()); buf.append(" ] [ long "); buf.append(longOpts); buf.append(" ]"); return buf.toString(); } }
[ "reda.housnialaoui@gmail.com" ]
reda.housnialaoui@gmail.com
493b8a1ab20ca28cb41206ba41195f0053db00f9
47b71ff8a12367c10573e58289d6abbd41c2436f
/android/device/softwinner/fiber-common/prebuild/packages/TvdSettings/src/com/android/settings/WirelessSettings.java
7e22bfc7c5751d8a272fa9ba03280c933c414521
[ "Apache-2.0" ]
permissive
BPI-SINOVOIP/BPI-A31S-Android
d567fcefb8881bcca67f9401c5a4cfa875df5640
ed63ae00332d2fdab22efc45a4a9a46ff31b8180
refs/heads/master
2022-11-05T15:39:21.895636
2017-04-27T16:58:45
2017-04-27T16:58:45
48,844,096
2
4
null
2022-10-28T10:10:24
2015-12-31T09:34:31
null
UTF-8
Java
false
false
21,854
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 com.android.settings; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.admin.DevicePolicyManager; import android.content.ComponentName; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import android.content.BroadcastReceiver; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; import android.content.res.Resources; import android.graphics.drawable.Drawable; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.nfc.NfcAdapter; import android.os.Bundle; import android.os.SystemProperties; import android.os.UserHandle; import android.preference.CheckBoxPreference; import android.preference.Preference; import android.preference.Preference.OnPreferenceChangeListener; import android.preference.PreferenceScreen; import android.provider.Settings; import android.telephony.TelephonyManager; import android.text.TextUtils; import android.util.Log; import com.android.internal.telephony.SmsApplication; import com.android.internal.telephony.SmsApplication.SmsApplicationData; import com.android.internal.telephony.TelephonyIntents; import com.android.internal.telephony.TelephonyProperties; import com.android.settings.nfc.NfcEnabler; import com.android.settings.ethernet.EthernetSettings; import android.net.ethernet.EthernetManager; import java.util.Collection; public class WirelessSettings extends RestrictedSettingsFragment implements OnPreferenceChangeListener { private static final String TAG = "WirelessSettings"; private static final String KEY_TOGGLE_AIRPLANE = "toggle_airplane"; private static final String KEY_TOGGLE_NFC = "toggle_nfc"; private static final String KEY_WIMAX_SETTINGS = "wimax_settings"; private static final String KEY_ANDROID_BEAM_SETTINGS = "android_beam_settings"; private static final String KEY_VPN_SETTINGS = "vpn_settings"; private static final String KEY_TETHER_SETTINGS = "tether_settings"; private static final String KEY_PROXY_SETTINGS = "proxy_settings"; private static final String KEY_MOBILE_NETWORK_SETTINGS = "mobile_network_settings"; private static final String KEY_MANAGE_MOBILE_PLAN = "manage_mobile_plan"; private static final String KEY_SMS_APPLICATION = "sms_application"; private static final String KEY_ETHERNET_SETTINGS = "ethernet_settings"; private static final String KEY_TOGGLE_NSD = "toggle_nsd"; //network service discovery private static final String KEY_CELL_BROADCAST_SETTINGS = "cell_broadcast_settings"; public static final String EXIT_ECM_RESULT = "exit_ecm_result"; public static final int REQUEST_CODE_EXIT_ECM = 1; private AirplaneModeEnabler mAirplaneModeEnabler; private CheckBoxPreference mAirplaneModePreference; private PreferenceScreen mEthernetSettings; private NfcEnabler mNfcEnabler; private NfcAdapter mNfcAdapter; private NsdEnabler mNsdEnabler; private ConnectivityManager mCm; private TelephonyManager mTm; private final IntentFilter mFilter; private final BroadcastReceiver mEthIfReceiver; private static final int MANAGE_MOBILE_PLAN_DIALOG_ID = 1; private static final String SAVED_MANAGE_MOBILE_PLAN_MSG = "mManageMobilePlanMessage"; private SmsListPreference mSmsApplicationPreference; private EthernetManager mEthManager; public WirelessSettings() { super(null); mFilter = new IntentFilter(); mFilter.addAction(EthernetManager.ETHERNET_INTERFACE_CHANGED_ACTION); mEthIfReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { handleEvent(context, intent); } }; } /** * Invoked on each preference click in this hierarchy, overrides * PreferenceActivity's implementation. Used to make sure we track the * preference click events. */ @Override public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { if (ensurePinRestrictedPreference(preference)) { return true; } log("onPreferenceTreeClick: preference=" + preference); if (preference == mAirplaneModePreference && Boolean.parseBoolean( SystemProperties.get(TelephonyProperties.PROPERTY_INECM_MODE))) { // In ECM mode launch ECM app dialog startActivityForResult( new Intent(TelephonyIntents.ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS, null), REQUEST_CODE_EXIT_ECM); return true; } else if (preference == findPreference(KEY_MANAGE_MOBILE_PLAN)) { onManageMobilePlanClick(); } // Let the intents be launched by the Preference manager return super.onPreferenceTreeClick(preferenceScreen, preference); } private String mManageMobilePlanMessage; private static final String CONNECTED_TO_PROVISIONING_NETWORK_ACTION = "com.android.server.connectivityservice.CONNECTED_TO_PROVISIONING_NETWORK_ACTION"; public void onManageMobilePlanClick() { log("onManageMobilePlanClick:"); mManageMobilePlanMessage = null; Resources resources = getActivity().getResources(); NetworkInfo ni = mCm.getProvisioningOrActiveNetworkInfo(); if (mTm.hasIccCard() && (ni != null)) { // Get provisioning URL String url = mCm.getMobileProvisioningUrl(); if (!TextUtils.isEmpty(url)) { Intent intent = new Intent(CONNECTED_TO_PROVISIONING_NETWORK_ACTION); intent.putExtra("EXTRA_URL", url); Context context = getActivity().getBaseContext(); context.sendBroadcast(intent); mManageMobilePlanMessage = null; } else { // No provisioning URL String operatorName = mTm.getSimOperatorName(); if (TextUtils.isEmpty(operatorName)) { // Use NetworkOperatorName as second choice in case there is no // SPN (Service Provider Name on the SIM). Such as with T-mobile. operatorName = mTm.getNetworkOperatorName(); if (TextUtils.isEmpty(operatorName)) { mManageMobilePlanMessage = resources.getString( R.string.mobile_unknown_sim_operator); } else { mManageMobilePlanMessage = resources.getString( R.string.mobile_no_provisioning_url, operatorName); } } else { mManageMobilePlanMessage = resources.getString( R.string.mobile_no_provisioning_url, operatorName); } } } else if (mTm.hasIccCard() == false) { // No sim card mManageMobilePlanMessage = resources.getString(R.string.mobile_insert_sim_card); } else { // NetworkInfo is null, there is no connection mManageMobilePlanMessage = resources.getString(R.string.mobile_connect_to_internet); } if (!TextUtils.isEmpty(mManageMobilePlanMessage)) { log("onManageMobilePlanClick: message=" + mManageMobilePlanMessage); showDialog(MANAGE_MOBILE_PLAN_DIALOG_ID); } } private void updateSmsApplicationSetting() { log("updateSmsApplicationSetting:"); ComponentName appName = SmsApplication.getDefaultSmsApplication(getActivity(), true); if (appName != null) { String packageName = appName.getPackageName(); CharSequence[] values = mSmsApplicationPreference.getEntryValues(); for (int i = 0; i < values.length; i++) { if (packageName.contentEquals(values[i])) { mSmsApplicationPreference.setValueIndex(i); mSmsApplicationPreference.setSummary(mSmsApplicationPreference.getEntries()[i]); break; } } } } private void initSmsApplicationSetting() { log("initSmsApplicationSetting:"); Collection<SmsApplicationData> smsApplications = SmsApplication.getApplicationCollection(getActivity()); // If the list is empty the dialog will be empty, but we will not crash. int count = smsApplications.size(); CharSequence[] entries = new CharSequence[count]; CharSequence[] entryValues = new CharSequence[count]; Drawable[] entryImages = new Drawable[count]; PackageManager packageManager = getPackageManager(); int i = 0; for (SmsApplicationData smsApplicationData : smsApplications) { entries[i] = smsApplicationData.mApplicationName; entryValues[i] = smsApplicationData.mPackageName; try { entryImages[i] = packageManager.getApplicationIcon(smsApplicationData.mPackageName); } catch (NameNotFoundException e) { entryImages[i] = packageManager.getDefaultActivityIcon(); } i++; } mSmsApplicationPreference.setEntries(entries); mSmsApplicationPreference.setEntryValues(entryValues); mSmsApplicationPreference.setEntryDrawables(entryImages); updateSmsApplicationSetting(); } @Override public Dialog onCreateDialog(int dialogId) { log("onCreateDialog: dialogId=" + dialogId); switch (dialogId) { case MANAGE_MOBILE_PLAN_DIALOG_ID: return new AlertDialog.Builder(getActivity()) .setMessage(mManageMobilePlanMessage) .setCancelable(false) .setPositiveButton(com.android.internal.R.string.ok, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int id) { log("MANAGE_MOBILE_PLAN_DIALOG.onClickListener id=" + id); mManageMobilePlanMessage = null; } }) .create(); } return super.onCreateDialog(dialogId); } private void log(String s) { Log.d(TAG, s); } public static boolean isRadioAllowed(Context context, String type) { if (!AirplaneModeEnabler.isAirplaneModeOn(context)) { return true; } // Here we use the same logic in onCreate(). String toggleable = Settings.Global.getString(context.getContentResolver(), Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS); return toggleable != null && toggleable.contains(type); } private boolean isSmsSupported() { // Some tablet has sim card but could not do telephony operations. Skip those. return (mTm.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (savedInstanceState != null) { mManageMobilePlanMessage = savedInstanceState.getString(SAVED_MANAGE_MOBILE_PLAN_MSG); } log("onCreate: mManageMobilePlanMessage=" + mManageMobilePlanMessage); mCm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); mTm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); mEthManager = EthernetManager.getInstance(); addPreferencesFromResource(R.xml.wireless_settings); final boolean isSecondaryUser = UserHandle.myUserId() != UserHandle.USER_OWNER; final Activity activity = getActivity(); mAirplaneModePreference = (CheckBoxPreference) findPreference(KEY_TOGGLE_AIRPLANE); CheckBoxPreference nfc = (CheckBoxPreference) findPreference(KEY_TOGGLE_NFC); PreferenceScreen androidBeam = (PreferenceScreen) findPreference(KEY_ANDROID_BEAM_SETTINGS); CheckBoxPreference nsd = (CheckBoxPreference) findPreference(KEY_TOGGLE_NSD); mAirplaneModeEnabler = new AirplaneModeEnabler(activity, mAirplaneModePreference); mNfcEnabler = new NfcEnabler(activity, nfc, androidBeam); mEthernetSettings = (PreferenceScreen) findPreference(KEY_ETHERNET_SETTINGS); mSmsApplicationPreference = (SmsListPreference) findPreference(KEY_SMS_APPLICATION); mSmsApplicationPreference.setOnPreferenceChangeListener(this); initSmsApplicationSetting(); // Remove NSD checkbox by default getPreferenceScreen().removePreference(nsd); //mNsdEnabler = new NsdEnabler(activity, nsd); String toggleable = Settings.Global.getString(activity.getContentResolver(), Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS); //enable/disable wimax depending on the value in config.xml boolean isWimaxEnabled = !isSecondaryUser && this.getResources().getBoolean( com.android.internal.R.bool.config_wimaxEnabled); if (!isWimaxEnabled) { PreferenceScreen root = getPreferenceScreen(); Preference ps = (Preference) findPreference(KEY_WIMAX_SETTINGS); if (ps != null) root.removePreference(ps); } else { if (toggleable == null || !toggleable.contains(Settings.Global.RADIO_WIMAX ) && isWimaxEnabled) { Preference ps = (Preference) findPreference(KEY_WIMAX_SETTINGS); ps.setDependency(KEY_TOGGLE_AIRPLANE); } } protectByRestrictions(KEY_WIMAX_SETTINGS); // Manually set dependencies for Wifi when not toggleable. if (toggleable == null || !toggleable.contains(Settings.Global.RADIO_WIFI)) { findPreference(KEY_VPN_SETTINGS).setDependency(KEY_TOGGLE_AIRPLANE); } if (isSecondaryUser) { // Disable VPN removePreference(KEY_VPN_SETTINGS); } protectByRestrictions(KEY_VPN_SETTINGS); // Manually set dependencies for Bluetooth when not toggleable. if (toggleable == null || !toggleable.contains(Settings.Global.RADIO_BLUETOOTH)) { // No bluetooth-dependent items in the list. Code kept in case one is added later. } // Manually set dependencies for NFC when not toggleable. if (toggleable == null || !toggleable.contains(Settings.Global.RADIO_NFC)) { findPreference(KEY_TOGGLE_NFC).setDependency(KEY_TOGGLE_AIRPLANE); findPreference(KEY_ANDROID_BEAM_SETTINGS).setDependency(KEY_TOGGLE_AIRPLANE); } // Remove NFC if its not available mNfcAdapter = NfcAdapter.getDefaultAdapter(activity); if (mNfcAdapter == null) { getPreferenceScreen().removePreference(nfc); getPreferenceScreen().removePreference(androidBeam); mNfcEnabler = null; } // Remove Mobile Network Settings and Manage Mobile Plan if it's a wifi-only device. if (isSecondaryUser || Utils.isWifiOnly(getActivity())) { log("wifi only, remove mobile settings"); removePreference(KEY_MOBILE_NETWORK_SETTINGS); removePreference(KEY_MANAGE_MOBILE_PLAN); } protectByRestrictions(KEY_MOBILE_NETWORK_SETTINGS); protectByRestrictions(KEY_MANAGE_MOBILE_PLAN); // Remove SMS Application if the device does not support SMS if (!isSmsSupported()) { removePreference(KEY_SMS_APPLICATION); } // Remove Airplane Mode settings if it's a stationary device such as a TV. if (getActivity().getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEVISION)) { removePreference(KEY_TOGGLE_AIRPLANE); } // Enable Proxy selector settings if allowed. Preference mGlobalProxy = findPreference(KEY_PROXY_SETTINGS); DevicePolicyManager mDPM = (DevicePolicyManager) activity.getSystemService(Context.DEVICE_POLICY_SERVICE); // proxy UI disabled until we have better app support getPreferenceScreen().removePreference(mGlobalProxy); mGlobalProxy.setEnabled(mDPM.getGlobalProxyAdmin() == null); // Disable Tethering if it's not allowed or if it's a wifi-only device ConnectivityManager cm = (ConnectivityManager) activity.getSystemService(Context.CONNECTIVITY_SERVICE); if (isSecondaryUser || !cm.isTetheringSupported()) { getPreferenceScreen().removePreference(findPreference(KEY_TETHER_SETTINGS)); } else { Preference p = findPreference(KEY_TETHER_SETTINGS); p.setTitle(Utils.getTetheringLabel(cm)); } protectByRestrictions(KEY_TETHER_SETTINGS); // Enable link to CMAS app settings depending on the value in config.xml. boolean isCellBroadcastAppLinkEnabled = this.getResources().getBoolean( com.android.internal.R.bool.config_cellBroadcastAppLinks); try { if (isCellBroadcastAppLinkEnabled) { PackageManager pm = getPackageManager(); if (pm.getApplicationEnabledSetting("com.android.cellbroadcastreceiver") == PackageManager.COMPONENT_ENABLED_STATE_DISABLED) { isCellBroadcastAppLinkEnabled = false; // CMAS app disabled } } } catch (IllegalArgumentException ignored) { isCellBroadcastAppLinkEnabled = false; // CMAS app not installed } if (isSecondaryUser || !isCellBroadcastAppLinkEnabled) { PreferenceScreen root = getPreferenceScreen(); Preference ps = findPreference(KEY_CELL_BROADCAST_SETTINGS); if (ps != null) root.removePreference(ps); } protectByRestrictions(KEY_CELL_BROADCAST_SETTINGS); } @Override public void onStart() { super.onStart(); initSmsApplicationSetting(); } @Override public void onResume() { if(!mEthManager.isEthIfExist()) getPreferenceScreen().removePreference(mEthernetSettings); else getPreferenceScreen().addPreference(mEthernetSettings); getActivity().registerReceiver(mEthIfReceiver, mFilter); super.onResume(); mAirplaneModeEnabler.resume(); if (mNfcEnabler != null) { mNfcEnabler.resume(); } if (mNsdEnabler != null) { mNsdEnabler.resume(); } } @Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (!TextUtils.isEmpty(mManageMobilePlanMessage)) { outState.putString(SAVED_MANAGE_MOBILE_PLAN_MSG, mManageMobilePlanMessage); } } @Override public void onPause() { super.onPause(); mAirplaneModeEnabler.pause(); if (mNfcEnabler != null) { mNfcEnabler.pause(); } if (mNsdEnabler != null) { mNsdEnabler.pause(); } getActivity().unregisterReceiver(mEthIfReceiver); } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == REQUEST_CODE_EXIT_ECM) { Boolean isChoiceYes = data.getBooleanExtra(EXIT_ECM_RESULT, false); // Set Airplane mode based on the return value and checkbox state mAirplaneModeEnabler.setAirplaneModeInECM(isChoiceYes, mAirplaneModePreference.isChecked()); } super.onActivityResult(requestCode, resultCode, data); } @Override protected int getHelpResource() { return R.string.help_url_more_networks; } @Override public boolean onPreferenceChange(Preference preference, Object newValue) { if (preference == mSmsApplicationPreference && newValue != null) { SmsApplication.setDefaultApplication(newValue.toString(), getActivity()); updateSmsApplicationSetting(); return true; } return false; } private void handleEvent(Context context, Intent intent) { String action = intent.getAction(); if (EthernetManager.ETHERNET_INTERFACE_CHANGED_ACTION.equals(action)) { final int event = intent.getIntExtra(EthernetManager.ETHERNET_INTERFACE_CHANGED_ACTION, EthernetManager.ETHERNET_INTERFACT_REMOVED); switch(event) { case EthernetManager.ETHERNET_INTERFACT_ADDED: getPreferenceScreen().addPreference(mEthernetSettings); break; case EthernetManager.ETHERNET_INTERFACT_REMOVED: getPreferenceScreen().removePreference(mEthernetSettings); break; default: break; } } } }
[ "mingxin.android@gmail.com" ]
mingxin.android@gmail.com
5c16f029fd1a263432f25aabea4d58de4e080d3f
013d0cb7b49ae204ff9b59cac2121d697c853e75
/src/main/java/com/studyproject/config/AppConfig.java
ca43024515fda4b21ec474f41710fd0238138645
[]
no_license
limslimx/book_project
e5d5e942ad242cf93ce6c543c63f4bd1baeb9172
ae054cdf11cb293e9f34296d003b00fe9f38ce8e
refs/heads/master
2023-01-10T11:52:58.484940
2020-11-06T12:54:39
2020-11-06T12:54:39
277,405,678
0
0
null
null
null
null
UTF-8
Java
false
false
1,669
java
package com.studyproject.config; import org.modelmapper.ModelMapper; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.RedisConnectionFactory; import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer; import org.springframework.data.redis.serializer.StringRedisSerializer; import org.springframework.security.crypto.factory.PasswordEncoderFactories; import org.springframework.security.crypto.password.PasswordEncoder; @Configuration public class AppConfig { //비밀번호 암호화 위한 빈 설정 @Bean public PasswordEncoder passwordEncoder() { return PasswordEncoderFactories.createDelegatingPasswordEncoder(); } //modelmapper 빈 설정 @Bean public ModelMapper modelMapper() { return new ModelMapper(); } @Bean public RedisConnectionFactory redisConnectionFactory(){ LettuceConnectionFactory lettuceConnectionFactory=new LettuceConnectionFactory(); return lettuceConnectionFactory; } @Bean public RedisTemplate<String, Object> redisTemplate(){ RedisTemplate<String, Object> redisTemplate=new RedisTemplate<>(); redisTemplate.setConnectionFactory(redisConnectionFactory()); redisTemplate.setKeySerializer(new StringRedisSerializer()); redisTemplate.setValueSerializer(new Jackson2JsonRedisSerializer<>(DataSerializable.class)); return redisTemplate; } }
[ "saemyung2000@naver.com" ]
saemyung2000@naver.com
0b726174536e1737470c31e6db8b4809728161d1
1352a3f3fce0bca973ea7cc67a749a68bf81f4e1
/java/ch/fhnw/oop2/module08/ab1/Starter.java
37153e68ff6fb2ca3b3f296bd69929f3b463465f
[]
no_license
fhnw-oopI2/fs20-l08-ab-marc-scheidegger
2301bcb76316727b300e85622aec89f5d4ddd63a
f04cc421787f707aa8499e6c5dbe6894244fee1b
refs/heads/master
2022-04-22T04:10:11.085140
2020-04-20T13:21:19
2020-04-20T13:21:19
255,174,523
0
0
null
null
null
null
UTF-8
Java
false
false
600
java
package ch.fhnw.oop2.module08.ab1; import javafx.application.Application; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; public final class Starter extends Application{ public void start(Stage stage) { PresentationModel pm = new PresentationModel(); Parent rootPanel = new ApplicationUI(pm); Scene scene = new Scene(rootPanel); stage.setTitle("Arbeitsblatt 1"); stage.setScene(scene); stage.setWidth(500); stage.setHeight(500); stage.show(); } public static void main(String[]args) { Application.launch(args); } }
[ "marc.scheidegger@students.fhnw.ch" ]
marc.scheidegger@students.fhnw.ch
326b396ca9ff41901e773f3131d65a7b7a11c79d
d10954226c212af8b41a38294148031e2769411c
/ak/EnchantChanger/EcItemSword.java
8570d20e04b3b5eef2460d2f4e85f422104f5037
[]
no_license
aksource/EnchantChanger152
5f7724e0185cdf7d0dfd4718a5984b3966d57e58
b79f99e1a6341bd1fdb78a052d482bf473d5d7cc
refs/heads/master
2016-09-05T20:52:15.106391
2013-12-28T14:08:12
2013-12-28T14:08:12
11,115,467
0
1
null
null
null
null
UTF-8
Java
false
false
4,647
java
package ak.EnchantChanger; import java.io.DataOutputStream; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import net.minecraft.world.World; import net.minecraftforge.client.IItemRenderer; import ak.EnchantChanger.Client.EcKeyHandler; import ak.EnchantChanger.Client.EcModelCloudSword2; import ak.EnchantChanger.Client.EcModelCloudSwordCore2; import ak.EnchantChanger.Client.EcModelSephirothSword; import ak.EnchantChanger.Client.EcModelUltimateWeapon; import ak.EnchantChanger.Client.EcModelZackSword; import com.google.common.io.ByteArrayDataInput; import cpw.mods.fml.common.network.PacketDispatcher; public class EcItemSword extends ItemSword implements IItemRenderer { private static EcModelUltimateWeapon UModel = new EcModelUltimateWeapon(); private static EcModelCloudSwordCore2 CCModel = new EcModelCloudSwordCore2(); private static EcModelCloudSword2 CModel = new EcModelCloudSword2(); private static EcModelSephirothSword SModel = new EcModelSephirothSword(); private static EcModelZackSword ZModel = new EcModelZackSword(); private boolean toggle = false; public EcItemSword(int par1 , EnumToolMaterial toolMaterial) { super(par1, toolMaterial); this.setMaxDamage(-1); } @Override public void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5) { if(par3Entity instanceof EntityPlayer && par5) { if(par2World.isRemote) { this.toggle = EcKeyHandler.MagicKeyDown && EcKeyHandler.MagicKeyUp; PacketDispatcher.sendPacketToServer(Packet_EnchantChanger.getPacketSword(this)); } if(toggle) { EcKeyHandler.MagicKeyUp = false; doMagic(par1ItemStack, par2World, (EntityPlayer) par3Entity); } } } public static void doMagic(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { if(EnchantmentHelper.getEnchantmentLevel(EnchantChanger.EnchantmentMeteoId, par1ItemStack) > 0) { EcItemMateria.Meteo(par2World, par3EntityPlayer); } if(EnchantmentHelper.getEnchantmentLevel(EnchantChanger.EndhantmentHolyId, par1ItemStack) > 0) { EcItemMateria.Holy(par2World, par3EntityPlayer); } if(EnchantmentHelper.getEnchantmentLevel(EnchantChanger.EnchantmentTelepoId, par1ItemStack) > 0) { EcItemMateria.Teleport(par1ItemStack, par2World, par3EntityPlayer); } if(EnchantmentHelper.getEnchantmentLevel(EnchantChanger.EnchantmentThunderId, par1ItemStack) > 0) { EcItemMateria.Thunder(par2World, par3EntityPlayer); } } public static boolean hasFloat(ItemStack itemstack) { if(EnchantmentHelper.getEnchantmentLevel(EnchantChanger.EnchantmentFloatId, itemstack) > 0) { return true; } else { return false; } } public Item setNoRepair() { canRepair = false; return this; } @Override public boolean handleRenderType(ItemStack item, ItemRenderType type) { return type == ItemRenderType.EQUIPPED; } @Override public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { return false; } @Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { if(item.getItem() instanceof EcItemZackSword) ZModel.renderItem(item, (EntityLiving) data[1]); else if(item.getItem() instanceof EcItemCloudSword) CModel.renderItem(item, (EntityLiving) data[1]); else if(item.getItem() instanceof EcItemCloudSwordCore) CCModel.renderItem(item, (EntityLiving) data[1], ((EcItemCloudSwordCore)item.getItem()).ActiveMode); else if(item.getItem() instanceof EcItemSephirothSword || item.getItem() instanceof EcItemSephirothSwordImit) SModel.renderItem(item, (EntityLiving) data[1]); else if(item.getItem() instanceof EcItemUltimateWeapon) UModel.renderItem(item, (EntityLiving) data[1]); } // パケットの読み込み(パケットの受け取りはPacketHandlerで行う) public void readPacketData(ByteArrayDataInput data) { try { this.toggle = data.readBoolean(); } catch (Exception e) { e.printStackTrace(); } } // パケットの書き込み(パケットの生成自体はPacketHandlerで行う) public void writePacketData(DataOutputStream dos) { try { dos.writeBoolean(toggle); } catch (Exception e) { e.printStackTrace(); } } }
[ "akira.mew@gmail.com" ]
akira.mew@gmail.com
6da80b1bc39712bf6f741ee15e05a7bf229f3a56
0e71198f50f01ccede66117937adfff43d4435ac
/CalendarView/app/src/androidTest/java/com/xtagwgj/calendarviewtest/ExampleInstrumentedTest.java
aa8ad9a3c6f96185d25ded030defa7c5c8789bac
[]
no_license
xtagwgj/CalendarView
23e22e51e91df117ea290fdc2eb4244373083750
30eea1bb7dca1fff834211362c1219ff281b15dd
refs/heads/master
2020-12-03T07:56:35.276601
2017-06-28T09:43:03
2017-06-28T09:43:03
95,640,805
0
0
null
null
null
null
UTF-8
Java
false
false
756
java
package com.xtagwgj.calendarviewtest; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.xtagwgj.calendarview", appContext.getPackageName()); } }
[ "xtagwgj@163.com" ]
xtagwgj@163.com
2a9032be0cc1c22afd26e29877069803ba62df63
c4af946df601fc70b6eeca66cfccaf0cbf15cfbf
/app/src/main/java/com/gj/administrator/gjerp/fragment/GuestFragment.java
d112eb0dde21b932b6c3352911cb5059aa76fdf5
[ "Apache-2.0" ]
permissive
gjSCUT/MoonHotelMater
49d887bd2e32e00fe75f2b8dfd63b17784f92c5b
0d0387ef5314754e16c9cc96b53caff61c441d8b
refs/heads/master
2021-01-10T10:50:45.886472
2015-12-18T15:48:16
2015-12-18T15:48:16
47,670,722
0
2
null
2015-12-11T14:45:08
2015-12-09T05:28:40
Java
UTF-8
Java
false
false
3,443
java
package com.gj.administrator.gjerp.fragment; import android.content.Context; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.gj.administrator.gjerp.R; import com.gj.administrator.gjerp.adapter.RecyclerListAdapter; import com.gj.administrator.gjerp.base.BaseFragment; import com.gj.administrator.gjerp.view.DividerItemDecoration; import java.util.ArrayList; import java.util.List; public class GuestFragment extends BaseFragment { // TODO: Rename parameter arguments, choose names that match // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER // TODO: Rename and change types of parameters private String TAG = "GuestFragment"; protected Context context; private static RecyclerView mRecyclerView; private static RecyclerListAdapter mAdapter; private List<RecyclerListAdapter.rowData> mRowDataList; private int todayIncome; private int guestCount; public GuestFragment() { // Required empty public constructor mRowDataList = new ArrayList<>(); } public static GuestFragment getInstance(Context context) { GuestFragment fragment = new GuestFragment(); Bundle args = new Bundle(); fragment.setArguments(args); fragment.context = context; return fragment; } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment mView = inflater.inflate(R.layout.fragment_guest, container, false); return super.onCreateView(inflater, container, savedInstanceState); } @Override protected void initViews() { mRecyclerView = (RecyclerView) findViewById(R.id.guest_state_recyclerView); } @Override protected void initEvents() { mRecyclerView.addItemDecoration(new DividerItemDecoration(context, DividerItemDecoration.VERTICAL_LIST)); mRecyclerView.setHasFixedSize(true); fetchGuestList(); mAdapter = new RecyclerListAdapter(context, mRowDataList); mRecyclerView.setAdapter(mAdapter); mRecyclerView.setLayoutManager(new LinearLayoutManager(context)); TextView textView = (TextView) findViewById(R.id.guest_state_in_summary); textView.setText(String.format( getString(R.string.guest_state_in_summary_textView), guestCount, todayIncome ) ); } @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); } public void fetchGuestList() { //TODO: replace placeholder data generator with proper operations. mRowDataList.clear(); int temp = 0; todayIncome = 0; guestCount = 0; for (int i = 0; i < 10; i++) { temp = 800 + i; String name = "Guest No." + i; String timeSpanPlaceHolder = "PlaceHolder"; todayIncome += temp; mRowDataList.add(new RecyclerListAdapter.rowData("" + temp, name, "" + temp, timeSpanPlaceHolder)); } guestCount = mRowDataList.size(); } }
[ "ccy016@outlook.com" ]
ccy016@outlook.com
2279790dca69ed252afd3334df5b1b754459af4c
8e7bfb06d220bdac5fbfdae13a862c1efd25c525
/ShortRent2/src/com/fudan/action/DefaultAction.java
21371cffd470b08672dd01b295fb6183f43bd6d8
[]
no_license
maliut/archive
03ff135a28fe2a5b3519329818d47a8e62f11933
b8ce3de621390fbf077598c746c7aece6fec20cf
refs/heads/master
2021-06-16T00:51:23.568779
2021-04-17T06:18:39
2021-04-17T06:18:39
173,555,332
0
0
null
null
null
null
UTF-8
Java
false
false
785
java
package com.fudan.action; import java.util.List; import com.fudan.biz.impl.HouseBizImpl; import com.fudan.entity.*; import com.fudan.util.SearchUtil; public class DefaultAction { private List<House> list; private List<String> pics; HouseBizImpl hoBiz = new HouseBizImpl(); //用于获取信息后,跳转到主页2015/07/20 public String execute() { System.out.println("ok"); setList(hoBiz.findLatestHouses(6)); setPics(hoBiz.getPictures(5)); System.out.println("ok"); return "success"; } //getter and setter methods2015/07/20 public List<House> getList() { return list; } public void setList(List<House> list) { this.list = list; } public List<String> getPics() { return pics; } public void setPics(List<String> pics) { this.pics = pics; } }
[ "lqn619@163.com" ]
lqn619@163.com
6c87fc426d71b0792a00b02ff07f7907b87490f8
22ebdd4055a1ed3033f84ad29cf93fae12c16ac3
/heu_search/src/main/p_heu/entity/Node.java
cbd77687672988ae1bc3b032d1dcd909c46ae36d
[]
no_license
PFixConcurrency/Fix
1e11f15eeaa89f7f3c027bdec601c6cdaed31e94
68dc3f2b80e7735b816b69bc7a59c23a57a76e8c
refs/heads/master
2020-03-15T04:34:39.936157
2018-09-18T13:53:41
2018-09-18T13:53:41
131,968,984
4
0
null
null
null
null
UTF-8
Java
false
false
252
java
package p_heu.entity; public abstract class Node { protected int id; public int getId() { return this.id; } public abstract boolean isIdentical(Node node); public abstract boolean isSame(Node node); public abstract String toString(); }
[ "2017218031@tju.edu.cn" ]
2017218031@tju.edu.cn
0d6aae5df9870e4c0bedefec143edb6bf8ff4f5e
14245e347990ec1b0ab6a960cc95aa176e9118a2
/server-service/trans-service/src/main/java/stu/oop/yundisk/serverservice/transservice/service/impl/UploadExistFileServiceImpl.java
73a50f618d951854f08e4dcdf572b13c298a9469
[]
no_license
vslwj2012/yundisk
e7b88562a06ee96ffa56eead7a74dc6fb97ccf87
dd51f9ab57e7367fecb018b0673c62ac3ac698c0
refs/heads/master
2023-04-27T04:29:16.541750
2021-05-21T03:39:26
2021-05-21T03:39:26
317,183,370
0
0
null
null
null
null
UTF-8
Java
false
false
2,272
java
package stu.oop.yundisk.serverservice.transservice.service.impl; import com.alibaba.dubbo.config.annotation.Service; import org.springframework.beans.factory.annotation.Autowired; import stu.oop.yundisk.servercommon.entity.File; import stu.oop.yundisk.servercommon.model.Response; import stu.oop.yundisk.servercommon.model.ResponseMessage; import stu.oop.yundisk.servercommon.service.transservice.UploadExistFileService; import stu.oop.yundisk.serverservice.transservice.cache.FileInDiskCache; import stu.oop.yundisk.serverservice.transservice.dao.FileMapper; import stu.oop.yundisk.serverservice.transservice.dao.UserMapper; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.Set; @Service public class UploadExistFileServiceImpl implements UploadExistFileService { @Autowired private FileMapper fileMapper; @Autowired private UserMapper userMapper; @Autowired private FileInDiskCache fileInDiskCache; @Override public Response upLoadExistFile(File files) { Response response = new Response(); String filemd5 = files.getMd5(); Set<File> filesSet = fileInDiskCache.getResult(); if (filesSet != null && filesSet.size() != 0) { //判断是否有相同内容的文件存在在服务器中 for (File f : filesSet) { //如果存在与上传文件md5值相同的文件,则将云盘中的已存在的上传完毕的文件路径赋给新上传文件的引用路径 if (f.getMd5().equals(filemd5) && f.getUpstatus() == -1) { files.setFilepathGuide(f.getFilepath()); files.setUpstatus(-1); fileMapper.uploadFile(files); userMapper.updateUserSpaceByUsername(files.getUsername(), files.getFilesize()); response.setResponseMessage(ResponseMessage.EXIST_INTACT_FILE); Map<String, Object> params = new HashMap<>(); params.put("file", files); response.setParams(params); return response; } } } response.setResponseMessage(ResponseMessage.NO_EXIST_INTACT_FILE); return response; } }
[ "1285511377@qq.com" ]
1285511377@qq.com
9a22db3f5aed3fc67cac3ff24a0f6eff4ae4ab00
ab9bb43c30b5859c011e71d6909d55f2ff5c3b2c
/src/main/java/com/pranav/datastructure/algo/BinarySearch.java
c53d35ae958db8c45edce24d52322425441899c8
[]
no_license
kumarpranav1987/DataStructureOnGitHub
22fae652faf02471fbde8ec1a1e6a60f7a146478
1d9e9fc8d36d605d200c38681bca39b26752e115
refs/heads/master
2021-06-27T12:31:03.713824
2019-09-10T12:17:16
2019-09-10T12:17:16
47,250,380
0
0
null
2020-10-12T22:41:31
2015-12-02T09:22:48
Java
UTF-8
Java
false
false
1,409
java
package com.pranav.datastructure.algo; public class BinarySearch { public static void main(String[] args) { int[] data = new int[] { 1, 2, 4, 4, 4, 4, 4, 4, 5, 5 }; System.out.println(binarySearch(data, 4)); System.out.println(binarySearchLeftMost(data, 4)); System.out.println(binarySearchRightMost(data, 4)); } private static int binarySearch(int[] data, int element) { int start = 0; int end = data.length - 1; while (start <= end) { int mid = (start + end) / 2; if (data[mid] == element) { return mid; } else if (element > data[mid]) { start = mid + 1; } else { end = mid - 1; } } return -1; } private static int binarySearchLeftMost(int[] data, int element) { int result = -1; int start = 0; int end = data.length - 1; while (start <= end) { int mid = (start + end) / 2; if (data[mid] == element) { result = mid; end = mid - 1; } else if (element > data[mid]) { start = mid + 1; } else { end = mid - 1; } } return result; } private static int binarySearchRightMost(int[] data, int element) { int result = -1; int start = 0; int end = data.length - 1; while (start <= end) { int mid = (start + end) / 2; if (data[mid] == element) { result = mid; start = mid + 1; } else if (element > data[mid]) { start = mid + 1; } else { end = mid - 1; } } return result; } }
[ "pranav.kumar@iontrading.com" ]
pranav.kumar@iontrading.com
ff66432a412f6e21d4dfcfee4b41fa3c78ada152
5308d72201a85671f0299a0b3bdcacffde20f771
/src/main/java/communicate/XMPPConnectionManager/AbstractXMPPConnectionManager.java
74c6cbcff721023c83019929725ca2b59c37e066
[]
no_license
MMMMMM1028/wzcsmack
8b55e6943bb35a3898b8c58af3332c7dcd06e8c8
81461f75735194b60c8cf572595b276dfb6e4b4c
refs/heads/master
2021-06-11T01:39:55.388103
2019-06-24T11:38:02
2019-06-24T11:38:02
192,308,064
0
0
null
2021-06-04T02:01:23
2019-06-17T08:39:35
Java
UTF-8
Java
false
false
816
java
package communicate.XMPPConnectionManager; import org.jivesoftware.smack.AbstractXMPPConnection; public abstract class AbstractXMPPConnectionManager implements ConnectionManager { protected ConnectionManager connectionManager; // private AbstractXMPPConnection mConnection; public AbstractXMPPConnectionManager(ConnectionManager connectionManager){ this.connectionManager = connectionManager; } public AbstractXMPPConnection getConnection() { return connectionManager.getConnection(); } public boolean checkConnection() { return connectionManager.checkConnection(); } public boolean isAuthenticated() { return connectionManager.isAuthenticated(); } public void closeConnection() { connectionManager.closeConnection(); } }
[ "13240068700@163.com" ]
13240068700@163.com
bed96415f25438891951ee258d92a58009041e39
16390029b38abbe914fb54e814063c273ff53640
/src/main/java/tk/themcbros/uselessmod/jei/categories/CompressorRecipeCategory.java
404297b04969747970d3661a042debcd5e274a99
[]
no_license
modindex/UselessMod
6c92fc70753c8a115b3919391350639204878554
7dab68957519fcafc041c58ed23801ab098bc6e4
refs/heads/master
2020-06-27T10:23:11.779720
2019-07-27T23:57:47
2019-07-27T23:57:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,834
java
package tk.themcbros.uselessmod.jei.categories; import mezz.jei.api.constants.VanillaTypes; import mezz.jei.api.gui.IRecipeLayout; import mezz.jei.api.gui.drawable.IDrawable; import mezz.jei.api.gui.drawable.IDrawableAnimated; import mezz.jei.api.gui.drawable.IDrawableAnimated.StartDirection; import mezz.jei.api.gui.drawable.IDrawableStatic; import mezz.jei.api.gui.ingredient.IGuiItemStackGroup; import mezz.jei.api.helpers.IGuiHelper; import mezz.jei.api.ingredients.IIngredients; import mezz.jei.api.recipe.category.IRecipeCategory; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.FontRenderer; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import net.minecraft.util.text.TranslationTextComponent; import tk.themcbros.uselessmod.UselessMod; import tk.themcbros.uselessmod.jei.RecipeCategoryUid; import tk.themcbros.uselessmod.lists.ModBlocks; import tk.themcbros.uselessmod.recipes.CompressorRecipe; import tk.themcbros.uselessmod.tileentity.CompressorTileEntity; public class CompressorRecipeCategory implements IRecipeCategory<CompressorRecipe> { private final ResourceLocation TEXTURES = new ResourceLocation(UselessMod.MOD_ID + ":textures/gui/container/compressor.png"); private static final int input = 0; private static final int output = 1; private final IDrawableStatic staticEnergyBar; private final IDrawableAnimated animatedEnergyBar; private final IDrawableAnimated animatedArrow; private final IDrawable background, icon; private final String name; public CompressorRecipeCategory(IGuiHelper helper) { staticEnergyBar = helper.createDrawable(TEXTURES, 193, 31, 15, 60); animatedEnergyBar = helper.createAnimatedDrawable(staticEnergyBar, 300, StartDirection.TOP, true); IDrawableStatic staticArrow = helper.createDrawable(TEXTURES, 176, 14, 24, 17); animatedArrow = helper.createAnimatedDrawable(staticArrow, 200, StartDirection.LEFT, false); background = helper.createDrawable(TEXTURES, 55, 8, 107, 62); icon = helper.createDrawableIngredient(new ItemStack(ModBlocks.COMPRESSOR)); name = new TranslationTextComponent("container.uselessmod.compressor").getFormattedText(); } @Override public IDrawable getBackground() { return background; } @Override public void draw(CompressorRecipe recipe, double mouseX, double mouseY) { animatedEnergyBar.draw(91, 1); animatedArrow.draw(24, 26); Minecraft minecraft = Minecraft.getInstance(); FontRenderer fontRenderer = minecraft.fontRenderer; float experience = recipe.getExperience(); if (experience > 0) { String experienceString = new TranslationTextComponent("gui.jei.category.smelting.experience", experience).getFormattedText(); fontRenderer.drawString(experienceString, 0, 0, 0xFF808080); } int powerusage = CompressorTileEntity.RF_PER_TICK * recipe.getCompressTime(); String powerstring = powerusage + " FE"; fontRenderer.drawString(powerstring, 0, background.getHeight() - 8, 0xFF808080); } @Override public String getTitle() { return name; } @Override public ResourceLocation getUid() { return RecipeCategoryUid.COMPRESSOR; } @Override public void setRecipe(IRecipeLayout recipeLayout, CompressorRecipe recipe, IIngredients ingredients) { IGuiItemStackGroup stacks = recipeLayout.getItemStacks(); stacks.init(input, true, 0, 26); stacks.init(output, false, 60, 26); stacks.set(ingredients); } @Override public Class<? extends CompressorRecipe> getRecipeClass() { return CompressorRecipe.class; } @Override public IDrawable getIcon() { return icon; } @Override public void setIngredients(CompressorRecipe recipe, IIngredients ingredients) { ingredients.setInputIngredients(recipe.getIngredients()); ingredients.setOutput(VanillaTypes.ITEM, recipe.getRecipeOutput()); } }
[ "themcbrothers2016@gmail.com" ]
themcbrothers2016@gmail.com
6c6b1a80f2e33421b7e3b36e70d39ce435189dee
f7c0d92ce9c7e043d5b7ea42632627c971647a57
/src/main/java/com/virtusa/happinessbasket/controller/CusController.java
dd1d0511486b3f6941767ed8b533785e34806d30
[]
no_license
abhinavkrdeeps/happinessbasket-gaurav
e7eb87bc6c3aabb619dcae115a4bed2af323427d
7225b7b8c10f0b22f5c89b8c87e50d2b898a0c8c
refs/heads/master
2022-12-23T10:52:38.997644
2019-11-24T21:30:07
2019-11-24T21:30:07
222,047,633
0
0
null
2022-12-16T14:50:54
2019-11-16T04:37:43
Java
UTF-8
Java
false
false
7,566
java
package com.virtusa.happinessbasket.controller; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.servlet.ModelAndView; import com.virtusa.happinessbasket.dao.CustomerDaoImpl; import com.virtusa.happinessbasket.service.CustomerServiceImpl; import com.virtusa.happinessbasket.model.Cart; import com.virtusa.happinessbasket.model.Customer; import com.virtusa.happinessbasket.model.Product; @Controller public class CusController { @Autowired private CustomerDaoImpl dao; @Autowired private CustomerServiceImpl service; @RequestMapping(value = "cuscart",method = RequestMethod.GET) public ModelAndView cartCustomer(HttpSession session) { Customer customer = (Customer)session.getAttribute("customer"); Cart cart = customer.getCart(); ModelAndView modelAndView = new ModelAndView("customercart"); if(cart!=null) { List<Product> products = cart.getProduct(); if(products!=null) { modelAndView.addObject("lists",products); } }else { modelAndView.addObject("message","Cart is Empty"); } return modelAndView; } @RequestMapping(value = "/login",method = RequestMethod.POST) public String customerLogin(@RequestParam("email")String email,@RequestParam("password")String password,HttpSession session) { System.out.println("email controller "+ email); Customer customer = service.validateCustomer(email, password); if(customer!=null) { session.setAttribute("customer",customer); return "redirect:getproductlist"; }else { return "login"; } } //ADDING A CUSTOMER @RequestMapping(value="addcus",method=RequestMethod.GET) public ModelAndView getAdd() { return new ModelAndView("addCus","command",new Customer()); } @RequestMapping(value="addcus", method=RequestMethod.POST) public ModelAndView setAdd(@ModelAttribute("Add") Customer customer) { dao.addCustomer(customer); ModelAndView mv = new ModelAndView("successCus"); mv.addObject("Done", "Customer Added!"); return mv; } //CUSTOMER LIST @RequestMapping("getCus") public ModelAndView getdata(ModelAndView model) { List<Customer> allCustomers=dao.getAllCustomers(); model.addObject("lists", allCustomers); model.setViewName("cuslist"); return model; } //FIND BY CUSTOMER MAILID @RequestMapping(value = "findcus", method = RequestMethod.GET) public ModelAndView getemailid() { System.out.println("get"); return new ModelAndView("findcus","command",new Customer()); } @RequestMapping(value = "findcus", method = RequestMethod.POST) public ModelAndView setemailid(@ModelAttribute("Customer")Customer customer, @RequestParam("emailId") String emailId) { System.out.println("emailid"); Customer customerByemailId = dao.getCustomerByemailId(emailId); System.out.println(customerByemailId); ModelAndView model = new ModelAndView("cusbyid"); model.addObject("customer", customerByemailId); return model; } //DELETE BY CUSTOMER MAILID @RequestMapping(value = "delcus", method = RequestMethod.GET) public ModelAndView getdelcus() { System.out.println("get"); return new ModelAndView("deletecus","command",new Customer()); } @RequestMapping(value = "delcus", method = RequestMethod.POST) public ModelAndView setdelcus(@ModelAttribute("Customer")Customer customer, @RequestParam("emailId") String emailId) { System.out.println("emailid"); Customer customerByemailId = dao.getCustomerByemailId(emailId); dao.deletecustomer(customerByemailId); System.out.println(customerByemailId); ModelAndView mv = new ModelAndView("successDeleteCus"); mv.addObject("Done", "Achu is running"); return mv; } //UPDATE CUSTOMER @RequestMapping(value="updatecus",method=RequestMethod.GET) public ModelAndView getupdcus() { System.out.println("get"); return new ModelAndView("updatecus","command",new Customer()); } @RequestMapping(value = "updatecus", method = RequestMethod.POST) public ModelAndView setupdcus(@ModelAttribute Customer customer) { if (customer.getCustomerId() == 0) { dao.addCustomer(customer); } else { System.out.println("post"); dao.updateCustomer(customer); System.out.println("updated"); ModelAndView mv = new ModelAndView("successCus"); mv.addObject("Done", "Achu is running"); return mv; } return new ModelAndView("add"); } //GET BY CUSTOMER ID @RequestMapping(value = "getcusid", method = RequestMethod.GET) public ModelAndView getcustid() { System.out.println("get"); return new ModelAndView("getcusid","command",new Customer()); } @RequestMapping(value = "getcusid", method = RequestMethod.POST) public ModelAndView setcustid(HttpServletRequest request) { System.out.println("post"); int customerId=Integer.parseInt(request.getParameter("customerId")); System.out.println(customerId); Customer customerById = dao.getCustomerById(customerId); System.out.println(customerById); ModelAndView model = new ModelAndView("resultcusid"); model.addObject("customer", customerById); return model; } //LOGIN CHECKING @RequestMapping(value="loginCus",method=RequestMethod.GET) public ModelAndView Authenticate() { System.out.println("get"); return new ModelAndView("login","command",new Customer()); } //ALTERNATIVE TRIED PARTS /* @RequestMapping(value = "findcus", method = RequestMethod.POST) public ModelAndView setemailid(HttpServletRequest request) { System.out.println("post"); String emailid=request.getParameter("emailId"); System.out.println(emailid); Customer customerByemailId = dao.getCustomerByemailId(emailid); System.out.println(customerByemailId); ModelAndView model = new ModelAndView("resultfind"); model.addObject("customer", customerByemailId); return model; }*/ /*@RequestMapping(value="home",method=RequestMethod.POST) public ModelAndView verfication(HttpServletRequest request) { String emailId = request.getParameter("emailId"); String password = request.getParameter("password"); System.out.println(emailId); System.out.println(password); boolean checkLogin = service.checkLogin(emailId, password); if(checkLogin) { System.out.println("sdfsf"); ModelAndView mav = new ModelAndView("customerhome"); mav.addObject("home",emailId); return mav; } else { System.out.println("sfgsgsdg"); ModelAndView mv = new ModelAndView("login"); // mav.addObject("msg","wrong password or userid"); return mv; } // int customerid=request.getParameter("customerid"); // System.out.println("post"); // System.out.println("sam"); // dao.getCustomerById(customerId); // boolean var=//fetchById(admin); // ModelAndView mav = new ModelAndView("home"); // if(var) // { // System.out.println("sdfsf"); // mav.addObject("home",customer.getAid()); // // } // else // { // System.out.println("sfgsgsdg"); // mav.addObject("msg","wrong password or userid"); // } // return mav; }*/ }
[ "abhikrdips@gmail.com" ]
abhikrdips@gmail.com
c76d382a83cef091b5c5e0853b27ee59678d5d0c
6b2c327a1523ee8ba97d308ead5fb6050156062a
/src/com/javarush/test/level30/lesson15/big01/Connection.java
e8c96881b86119397737944c20772e050578d7a8
[]
no_license
uneikov/JavaRushHomeWork
d987413df192f0dbb9df4a59f561fcca467724a3
454c16d7ed5518ce38ef9a876c21f0075a5913b5
refs/heads/master
2020-12-24T17:26:42.804524
2017-02-07T15:28:20
2017-02-07T15:28:20
61,533,062
0
0
null
null
null
null
UTF-8
Java
false
false
1,243
java
package com.javarush.test.level30.lesson15.big01; import java.io.Closeable; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.Socket; import java.net.SocketAddress; /** * Created by URAN on 11.07.2016. */ public class Connection implements Closeable{ private final Socket socket; private final ObjectOutputStream out; private final ObjectInputStream in; public Connection(Socket socket) throws IOException{ this.socket = socket; this.out = new ObjectOutputStream(socket.getOutputStream()); this.in = new ObjectInputStream(socket.getInputStream()); } public void send(Message message) throws IOException{ synchronized (out){ out.writeObject(message); } } public Message receive() throws IOException, ClassNotFoundException{ Message message; synchronized (in){ message = (Message) in.readObject(); } return message; } public SocketAddress getRemoteSocketAddress(){ return socket.getRemoteSocketAddress(); } public void close() throws IOException { in.close(); out.close(); socket.close(); } }
[ "neikov@gmail.com" ]
neikov@gmail.com
a2e9c4e28527795e08857d23943e619ad13379ec
ec333f364c84c1957918c74af809c608dff6cfa3
/android/src/main/java/com/ato/reactlibrary/RNColorPanelManager.java
bb0e6f46dff529e6f895fffd7d93eca68cf2eb8d
[ "MIT" ]
permissive
NoumanSakhawat/react-native-color-panel
25fdf9102a99c755278333f10a970fdb8ce99337
395944301ba53f61219070420e33476d8954bd80
refs/heads/master
2020-12-13T01:04:57.462519
2019-02-19T21:22:29
2019-02-19T21:22:29
234,273,315
0
0
MIT
2020-01-16T08:38:55
2020-01-16T08:38:54
null
UTF-8
Java
false
false
1,212
java
package com.ato.reactlibrary; import com.facebook.react.common.MapBuilder; import com.facebook.react.uimanager.SimpleViewManager; import com.facebook.react.uimanager.ThemedReactContext; import com.facebook.react.uimanager.annotations.ReactProp; import java.util.Map; import javax.annotation.Nullable; public class RNColorPanelManager extends SimpleViewManager<RNColorPanel> { public static final String REACT_CLASS = "RNColorPanel"; public static final String PROP_COLOR = "color"; @Override public RNColorPanel createViewInstance(ThemedReactContext context) { return new RNColorPanel(context); } @Override public String getName() { return REACT_CLASS; } @ReactProp(name = PROP_COLOR) public void setColor(RNColorPanel view, @Nullable int color) { // view.setColor(color); } @Nullable @Override public Map<String, Object> getExportedCustomBubblingEventTypeConstants() { return MapBuilder.<String, Object>builder() .put( "colorDidChange", MapBuilder.of( "phasedRegistrationNames", MapBuilder.of("bubbled", "onColorChange"))) .build(); } }
[ "atoami@163.com" ]
atoami@163.com
40fd52fbc707cf9de55764d4e9749ca632531444
e402a15adfd5d3cab5d2ed853410ae8efa37ce48
/LettoriScrittori/src/Resource.java
eedfd7c9eafb5ba8aecf067c29507f4a6a19d66f
[]
no_license
Simosound94/JavaRepo
2ace1a34ce4e8c00177d76a219de8d534ee95c76
79691eaebb9383d7449227358db5fe62e047809c
refs/heads/master
2021-05-02T07:46:01.646019
2018-02-16T12:12:31
2018-02-16T12:12:31
120,837,419
0
0
null
null
null
null
UTF-8
Java
false
false
1,749
java
public class Resource<T extends ResourceInterface<T>> { private Object lockX, lockS; private T resource; private int readers, wreaders; boolean writing; public Resource(T res){ readers = 0; wreaders = 0; lockX = new Object(); lockS = new Object(); this.resource = res; writing = false; } public T startRead() throws InterruptedException{ synchronized(lockS){ wreaders++; while(writing) lockS.wait(); wreaders--; readers++; } //Sarebbe meglio una copia return (T) resource.clone(); } public void finishRead(){ /* * ------------------------ERRORE: * * qui c'è una corsa. * readers è una variabile dell'oggetto Resource * condivisa tra piu thread * DEVO proteggerla. se non la proteggo potrebbe succedere di tutto * es. decrementarla una volta invece che due ecc.. * */ readers--; if(readers == 0) synchronized(lockX){ lockX.notify(); } } public void write(T newValue, String name) throws InterruptedException{ synchronized(lockX){ /* * La mutua esclusione tra scrittori è effettuata con synchronized, perciò poi * non ce ne dobbiamo più occupare, in questo blocco di codice entra * solo uno scrittore per volta */ writing = true; while(readers > 0) lockX.wait(); System.out.println("Thread " + name + " writes"); Thread.sleep((long) (Math.random()*3000)); //resource.writeValue(newValue); // Writing..... writing = false; if(wreaders > 0) synchronized(lockS){ // /!\ // Devo notificare solo i reader, perchè mi blocco in wait solo se ci sono // reader in attesa, poi questi eseguiranno e sbloccheranno i lettori a lettura finita lockS.notifyAll(); } } } }
[ "simonemerello@hotmail.it" ]
simonemerello@hotmail.it
3d9f4eef2b1062005b46ab25fd3138619e918c09
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/2/2_89413c72ec2cb09bdaf29ddb247896a2348764b7/SuggestBox/2_89413c72ec2cb09bdaf29ddb247896a2348764b7_SuggestBox_s.java
fe3a3b2123646630cb5c3c07f62bfad90a3b6192
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
39,611
java
/* * Copyright 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.user.client.ui; import com.google.gwt.core.client.Scheduler.ScheduledCommand; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; import com.google.gwt.editor.client.IsEditor; import com.google.gwt.editor.client.LeafValueEditor; import com.google.gwt.editor.client.adapters.TakesValueEditor; import com.google.gwt.event.dom.client.HandlesAllKeyEvents; import com.google.gwt.event.dom.client.HasAllKeyHandlers; import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.dom.client.KeyDownEvent; import com.google.gwt.event.dom.client.KeyDownHandler; import com.google.gwt.event.dom.client.KeyPressEvent; import com.google.gwt.event.dom.client.KeyPressHandler; import com.google.gwt.event.dom.client.KeyUpEvent; import com.google.gwt.event.dom.client.KeyUpHandler; import com.google.gwt.event.logical.shared.HasSelectionHandlers; import com.google.gwt.event.logical.shared.SelectionEvent; import com.google.gwt.event.logical.shared.SelectionHandler; import com.google.gwt.event.logical.shared.ValueChangeEvent; import com.google.gwt.event.logical.shared.ValueChangeHandler; import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.PopupPanel.AnimationType; import com.google.gwt.user.client.ui.SuggestOracle.Callback; import com.google.gwt.user.client.ui.SuggestOracle.Request; import com.google.gwt.user.client.ui.SuggestOracle.Response; import com.google.gwt.user.client.ui.SuggestOracle.Suggestion; import java.util.Collection; import java.util.List; /** * A {@link SuggestBox} is a text box or text area which displays a * pre-configured set of selections that match the user's input. * * Each {@link SuggestBox} is associated with a single {@link SuggestOracle}. * The {@link SuggestOracle} is used to provide a set of selections given a * specific query string. * * <p> * By default, the {@link SuggestBox} uses a {@link MultiWordSuggestOracle} as * its oracle. Below we show how a {@link MultiWordSuggestOracle} can be * configured: * </p> * * <pre> * MultiWordSuggestOracle oracle = new MultiWordSuggestOracle(); * oracle.add("Cat"); * oracle.add("Dog"); * oracle.add("Horse"); * oracle.add("Canary"); * * SuggestBox box = new SuggestBox(oracle); * </pre> * * Using the example above, if the user types "C" into the text widget, the * oracle will configure the suggestions with the "Cat" and "Canary" * suggestions. Specifically, whenever the user types a key into the text * widget, the value is submitted to the <code>MultiWordSuggestOracle</code>. * * <p> * Note that there is no method to retrieve the "currently selected suggestion" * in a SuggestBox, because there are points in time where the currently * selected suggestion is not defined. For example, if the user types in some * text that does not match any of the SuggestBox's suggestions, then the * SuggestBox will not have a currently selected suggestion. It is more useful * to know when a suggestion has been chosen from the SuggestBox's list of * suggestions. A SuggestBox fires {@link SuggestionEvent SuggestionEvents} * whenever a suggestion is chosen, and handlers for these events can be added * using the {@link #addValueChangeHandler(ValueChangeHandler)} method. * </p> * * <p> * <img class='gallery' src='doc-files/SuggestBox.png'/> * </p> * * <h3>CSS Style Rules</h3> * <dl> * <dt>.gwt-SuggestBox</dt> * <dd>the suggest box itself</dd> * </dl> * * TODO(pdr): Add SafeHtml support to this and implementing classes. * * @see SuggestOracle * @see MultiWordSuggestOracle * @see TextBoxBase */ @SuppressWarnings("deprecation") public class SuggestBox extends Composite implements HasText, HasFocus, HasAnimation, HasEnabled, SourcesClickEvents, SourcesChangeEvents, SourcesKeyboardEvents, FiresSuggestionEvents, HasAllKeyHandlers, HasValue<String>, HasSelectionHandlers<Suggestion>, IsEditor<LeafValueEditor<String>> { /** * The callback used when a user selects a {@link Suggestion}. */ public static interface SuggestionCallback { void onSuggestionSelected(Suggestion suggestion); } /** * Used to display suggestions to the user. */ public abstract static class SuggestionDisplay { /** * Get the currently selected {@link Suggestion} in the display. * * @return the current suggestion, or null if none selected */ protected abstract Suggestion getCurrentSelection(); /** * Hide the list of suggestions from view. */ protected abstract void hideSuggestions(); /** * Highlight the suggestion directly below the current selection in the * list. */ protected abstract void moveSelectionDown(); /** * Highlight the suggestion directly above the current selection in the * list. */ protected abstract void moveSelectionUp(); /** * Set the debug id of widgets used in the SuggestionDisplay. * * @param suggestBoxBaseID the baseID of the {@link SuggestBox} * @see UIObject#onEnsureDebugId(String) */ protected void onEnsureDebugId(String suggestBoxBaseID) { } /** * Accepts information about whether there were more suggestions matching * than were provided to {@link #showSuggestions}. * * @param hasMoreSuggestions true if more matches were available * @param numMoreSuggestions number of more matches available. If the * specific number is unknown, 0 will be passed. */ protected void setMoreSuggestions(boolean hasMoreSuggestions, int numMoreSuggestions) { // Subclasses may optionally implement. } /** * Update the list of visible suggestions. * * Use care when using isDisplayStringHtml; it is an easy way to expose * script-based security problems. * * @param suggestBox the suggest box where the suggestions originated * @param suggestions the suggestions to show * @param isDisplayStringHTML should the suggestions be displayed as HTML * @param isAutoSelectEnabled if true, the first item should be selected * automatically * @param callback the callback used when the user makes a suggestion */ protected abstract void showSuggestions(SuggestBox suggestBox, Collection<? extends Suggestion> suggestions, boolean isDisplayStringHTML, boolean isAutoSelectEnabled, SuggestionCallback callback); /** * This is here for legacy reasons. It is intentionally not visible. * * @deprecated implemented in DefaultSuggestionDisplay */ @Deprecated boolean isAnimationEnabledImpl() { // Implemented in DefaultSuggestionDisplay. return false; } /** * This is here for legacy reasons. It is intentionally not visible. * * @deprecated implemented in DefaultSuggestionDisplay */ @Deprecated boolean isSuggestionListShowingImpl() { // Implemented in DefaultSuggestionDisplay. return false; } /** * This is here for legacy reasons. It is intentionally not visible. * * @param enable true to enable animation * * @deprecated implemented in DefaultSuggestionDisplay */ @Deprecated void setAnimationEnabledImpl(boolean enable) { // Implemented in DefaultSuggestionDisplay. } /** * This is here for legacy reasons. It is intentionally not visible. * * @param style the style name * * @deprecated implemented in DefaultSuggestionDisplay */ @Deprecated void setPopupStyleNameImpl(String style) { // Implemented in DefaultSuggestionDisplay. } } /** * <p> * The default implementation of {@link SuggestionDisplay} displays * suggestions in a {@link PopupPanel} beneath the {@link SuggestBox}. * </p> * * <h3>CSS Style Rules</h3> * <dl> * <dt>.gwt-SuggestBoxPopup</dt> * <dd>the suggestion popup</dd> * <dt>.gwt-SuggestBoxPopup .item</dt> * <dd>an unselected suggestion</dd> * <dt>.gwt-SuggestBoxPopup .item-selected</dt> * <dd>a selected suggestion</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupTopLeft</dt> * <dd>the top left cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupTopLeftInner</dt> * <dd>the inner element of the cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupTopCenter</dt> * <dd>the top center cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupTopCenterInner</dt> * <dd>the inner element of the cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupTopRight</dt> * <dd>the top right cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupTopRightInner</dt> * <dd>the inner element of the cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupMiddleLeft</dt> * <dd>the middle left cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupMiddleLeftInner</dt> * <dd>the inner element of the cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupMiddleCenter</dt> * <dd>the middle center cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupMiddleCenterInner</dt> * <dd>the inner element of the cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupMiddleRight</dt> * <dd>the middle right cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupMiddleRightInner</dt> * <dd>the inner element of the cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupBottomLeft</dt> * <dd>the bottom left cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupBottomLeftInner</dt> * <dd>the inner element of the cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupBottomCenter</dt> * <dd>the bottom center cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupBottomCenterInner</dt> * <dd>the inner element of the cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupBottomRight</dt> * <dd>the bottom right cell</dd> * <dt>.gwt-SuggestBoxPopup .suggestPopupBottomRightInner</dt> * <dd>the inner element of the cell</dd> * </dl> */ public static class DefaultSuggestionDisplay extends SuggestionDisplay implements HasAnimation { private final SuggestionMenu suggestionMenu; private final PopupPanel suggestionPopup; /** * We need to keep track of the last {@link SuggestBox} because it acts as * an autoHide partner for the {@link PopupPanel}. If we use the same * display for multiple {@link SuggestBox}, we need to switch the autoHide * partner. */ private SuggestBox lastSuggestBox = null; /** * Sub-classes making use of {@link decorateSuggestionList} to add * elements to the suggestion popup _may_ want those elements to show even * when there are 0 suggestions. An example would be showing a "No * matches" message. */ private boolean hideWhenEmpty = true; /** * Object to position the suggestion display next to, instead of the * associated suggest box. */ private UIObject positionRelativeTo; /** * Construct a new {@link DefaultSuggestionDisplay}. */ public DefaultSuggestionDisplay() { suggestionMenu = new SuggestionMenu(true); suggestionPopup = createPopup(); suggestionPopup.setWidget(decorateSuggestionList(suggestionMenu)); } @Override public void hideSuggestions() { suggestionPopup.hide(); } public boolean isAnimationEnabled() { return suggestionPopup.isAnimationEnabled(); } /** * Check whether or not the suggestion list is hidden when there are no * suggestions to display. * * @return true if hidden when empty, false if not */ public boolean isSuggestionListHiddenWhenEmpty() { return hideWhenEmpty; } /** * Check whether or not the list of suggestions is being shown. * * @return true if the suggestions are visible, false if not */ public boolean isSuggestionListShowing() { return suggestionPopup.isShowing(); } public void setAnimationEnabled(boolean enable) { suggestionPopup.setAnimationEnabled(enable); } /** * Sets the style name of the suggestion popup. * * @param style the new primary style name * @see UIObject#setStyleName(String) */ public void setPopupStyleName(String style) { suggestionPopup.setStyleName(style); } /** * Sets the UI object where the suggestion display should appear next to. * * @param uiObject the uiObject used for positioning, or null to position * relative to the suggest box */ public void setPositionRelativeTo(UIObject uiObject) { positionRelativeTo = uiObject; } /** * Set whether or not the suggestion list should be hidden when there are * no suggestions to display. Defaults to true. * * @param hideWhenEmpty true to hide when empty, false not to */ public void setSuggestionListHiddenWhenEmpty(boolean hideWhenEmpty) { this.hideWhenEmpty = hideWhenEmpty; } /** * Create the PopupPanel that will hold the list of suggestions. * * @return the popup panel */ protected PopupPanel createPopup() { PopupPanel p = new DecoratedPopupPanel(true, false, "suggestPopup"); p.setStyleName("gwt-SuggestBoxPopup"); p.setPreviewingAllNativeEvents(true); p.setAnimationType(AnimationType.ROLL_DOWN); return p; } /** * Wrap the list of suggestions before adding it to the popup. You can * override this method if you want to wrap the suggestion list in a * decorator. * * @param suggestionList the widget that contains the list of suggestions * @return the suggestList, optionally inside of a wrapper */ protected Widget decorateSuggestionList(Widget suggestionList) { return suggestionList; } @Override protected Suggestion getCurrentSelection() { if (!isSuggestionListShowing()) { return null; } MenuItem item = suggestionMenu.getSelectedItem(); return item == null ? null : ((SuggestionMenuItem) item).getSuggestion(); } /** * Get the {@link PopupPanel} used to display suggestions. * * @return the popup panel */ protected PopupPanel getPopupPanel() { return suggestionPopup; } @Override protected void moveSelectionDown() { // Make sure that the menu is actually showing. These keystrokes // are only relevant when choosing a suggestion. if (isSuggestionListShowing()) { // If nothing is selected, getSelectedItemIndex will return -1 and we // will select index 0 (the first item) by default. suggestionMenu.selectItem(suggestionMenu.getSelectedItemIndex() + 1); } } @Override protected void moveSelectionUp() { // Make sure that the menu is actually showing. These keystrokes // are only relevant when choosing a suggestion. if (isSuggestionListShowing()) { // if nothing is selected, then we should select the last suggestion by // default. This is because, in some cases, the suggestions menu will // appear above the text box rather than below it (for example, if the // text box is at the bottom of the window and the suggestions will not // fit below the text box). In this case, users would expect to be able // to use the up arrow to navigate to the suggestions. if (suggestionMenu.getSelectedItemIndex() == -1) { suggestionMenu.selectItem(suggestionMenu.getNumItems() - 1); } else { suggestionMenu.selectItem(suggestionMenu.getSelectedItemIndex() - 1); } } } /** * <b>Affected Elements:</b> * <ul> * <li>-popup = The popup that appears with suggestions.</li> * <li>-item# = The suggested item at the specified index.</li> * </ul> * * @see UIObject#onEnsureDebugId(String) */ @Override protected void onEnsureDebugId(String baseID) { suggestionPopup.ensureDebugId(baseID + "-popup"); suggestionMenu.setMenuItemDebugIds(baseID); } @Override protected void showSuggestions(final SuggestBox suggestBox, Collection<? extends Suggestion> suggestions, boolean isDisplayStringHTML, boolean isAutoSelectEnabled, final SuggestionCallback callback) { // Hide the popup if there are no suggestions to display. boolean anySuggestions = (suggestions != null && suggestions.size() > 0); if (!anySuggestions && hideWhenEmpty) { hideSuggestions(); return; } // Hide the popup before we manipulate the menu within it. If we do not // do this, some browsers will redraw the popup as items are removed // and added to the menu. if (suggestionPopup.isAttached()) { suggestionPopup.hide(); } suggestionMenu.clearItems(); for (final Suggestion curSuggestion : suggestions) { final SuggestionMenuItem menuItem = new SuggestionMenuItem( curSuggestion, isDisplayStringHTML); menuItem.setScheduledCommand(new ScheduledCommand() { public void execute() { callback.onSuggestionSelected(curSuggestion); } }); suggestionMenu.addItem(menuItem); } if (isAutoSelectEnabled && anySuggestions) { // Select the first item in the suggestion menu. suggestionMenu.selectItem(0); } // Link the popup autoHide to the TextBox. if (lastSuggestBox != suggestBox) { // If the suggest box has changed, free the old one first. if (lastSuggestBox != null) { suggestionPopup.removeAutoHidePartner(lastSuggestBox.getElement()); } lastSuggestBox = suggestBox; suggestionPopup.addAutoHidePartner(suggestBox.getElement()); } // Show the popup under the TextBox. suggestionPopup.showRelativeTo(positionRelativeTo != null ? positionRelativeTo : suggestBox); } @Override boolean isAnimationEnabledImpl() { return isAnimationEnabled(); } @Override boolean isSuggestionListShowingImpl() { return isSuggestionListShowing(); } @Override void setAnimationEnabledImpl(boolean enable) { setAnimationEnabled(enable); } @Override void setPopupStyleNameImpl(String style) { setPopupStyleName(style); } } /** * The SuggestionMenu class is used for the display and selection of * suggestions in the SuggestBox widget. SuggestionMenu differs from MenuBar * in that it always has a vertical orientation, and it has no submenus. It * also allows for programmatic selection of items in the menu, and * programmatically performing the action associated with the selected item. * In the MenuBar class, items cannot be selected programatically - they can * only be selected when the user places the mouse over a particlar item. * Additional methods in SuggestionMenu provide information about the number * of items in the menu, and the index of the currently selected item. */ private static class SuggestionMenu extends MenuBar { public SuggestionMenu(boolean vertical) { super(vertical); // Make sure that CSS styles specified for the default Menu classes // do not affect this menu setStyleName(""); setFocusOnHoverEnabled(false); } public int getNumItems() { return getItems().size(); } /** * Returns the index of the menu item that is currently selected. * * @return returns the selected item */ public int getSelectedItemIndex() { // The index of the currently selected item can only be // obtained if the menu is showing. MenuItem selectedItem = getSelectedItem(); if (selectedItem != null) { return getItems().indexOf(selectedItem); } return -1; } /** * Selects the item at the specified index in the menu. Selecting the item * does not perform the item's associated action; it only changes the style * of the item and updates the value of SuggestionMenu.selectedItem. * * @param index index */ public void selectItem(int index) { List<MenuItem> items = getItems(); if (index > -1 && index < items.size()) { itemOver(items.get(index), false); } } } /** * Class for menu items in a SuggestionMenu. A SuggestionMenuItem differs from * a MenuItem in that each item is backed by a Suggestion object. The text of * each menu item is derived from the display string of a Suggestion object, * and each item stores a reference to its Suggestion object. */ private static class SuggestionMenuItem extends MenuItem { private static final String STYLENAME_DEFAULT = "item"; private Suggestion suggestion; public SuggestionMenuItem(Suggestion suggestion, boolean asHTML) { super(suggestion.getDisplayString(), asHTML); // Each suggestion should be placed in a single row in the suggestion // menu. If the window is resized and the suggestion cannot fit on a // single row, it should be clipped (instead of wrapping around and // taking up a second row). DOM.setStyleAttribute(getElement(), "whiteSpace", "nowrap"); setStyleName(STYLENAME_DEFAULT); setSuggestion(suggestion); } public Suggestion getSuggestion() { return suggestion; } public void setSuggestion(Suggestion suggestion) { this.suggestion = suggestion; } } private static final String STYLENAME_DEFAULT = "gwt-SuggestBox"; /** * Creates a {@link SuggestBox} widget that wraps an existing &lt;input * type='text'&gt; element. * * This element must already be attached to the document. If the element is * removed from the document, you must call * {@link RootPanel#detachNow(Widget)}. * * @param oracle the suggest box oracle to use * @param element the element to be wrapped */ public static SuggestBox wrap(SuggestOracle oracle, Element element) { // Assert that the element is attached. assert Document.get().getBody().isOrHasChild(element); TextBox textBox = new TextBox(element); SuggestBox suggestBox = new SuggestBox(oracle, textBox); // Mark it attached and remember it for cleanup. suggestBox.onAttach(); RootPanel.detachOnWindowClose(suggestBox); return suggestBox; } private int limit = 20; private boolean selectsFirstItem = true; private SuggestOracle oracle; private String currentText; private LeafValueEditor<String> editor; private final SuggestionDisplay display; private final TextBoxBase box; private final Callback callback = new Callback() { public void onSuggestionsReady(Request request, Response response) { // If disabled while request was in-flight, drop it if (!isEnabled()) { return; } display.setMoreSuggestions(response.hasMoreSuggestions(), response.getMoreSuggestionsCount()); display.showSuggestions(SuggestBox.this, response.getSuggestions(), oracle.isDisplayStringHTML(), isAutoSelectEnabled(), suggestionCallback); } }; private final SuggestionCallback suggestionCallback = new SuggestionCallback() { public void onSuggestionSelected(Suggestion suggestion) { setNewSelection(suggestion); } }; /** * Constructor for {@link SuggestBox}. Creates a * {@link MultiWordSuggestOracle} and {@link TextBox} to use with this * {@link SuggestBox}. */ public SuggestBox() { this(new MultiWordSuggestOracle()); } /** * Constructor for {@link SuggestBox}. Creates a {@link TextBox} to use with * this {@link SuggestBox}. * * @param oracle the oracle for this <code>SuggestBox</code> */ public SuggestBox(SuggestOracle oracle) { this(oracle, new TextBox()); } /** * Constructor for {@link SuggestBox}. The text box will be removed from it's * current location and wrapped by the {@link SuggestBox}. * * @param oracle supplies suggestions based upon the current contents of the * text widget * @param box the text widget */ public SuggestBox(SuggestOracle oracle, TextBoxBase box) { this(oracle, box, new DefaultSuggestionDisplay()); } /** * Constructor for {@link SuggestBox}. The text box will be removed from it's * current location and wrapped by the {@link SuggestBox}. * * @param oracle supplies suggestions based upon the current contents of the * text widget * @param box the text widget * @param suggestDisplay the class used to display suggestions */ public SuggestBox(SuggestOracle oracle, TextBoxBase box, SuggestionDisplay suggestDisplay) { this.box = box; this.display = suggestDisplay; initWidget(box); addEventsToTextBox(); setOracle(oracle); setStyleName(STYLENAME_DEFAULT); } /** * * Adds a listener to receive change events on the SuggestBox's text box. The * source Widget for these events will be the SuggestBox. * * @param listener the listener interface to add * @deprecated use {@link #getTextBox}().addChangeHandler instead */ @Deprecated public void addChangeListener(final ChangeListener listener) { ListenerWrapper.WrappedLogicalChangeListener.add(box, listener).setSource( this); } /** * Adds a listener to receive click events on the SuggestBox's text box. The * source Widget for these events will be the SuggestBox. * * @param listener the listener interface to add * @deprecated use {@link #getTextBox}().addClickHandler instead */ @Deprecated public void addClickListener(final ClickListener listener) { ListenerWrapper.WrappedClickListener legacy = ListenerWrapper.WrappedClickListener.add( box, listener); legacy.setSource(this); } /** * Adds an event to this handler. * * @deprecated use {@link #addSelectionHandler} instead. */ @Deprecated public void addEventHandler(final SuggestionHandler handler) { ListenerWrapper.WrappedOldSuggestionHandler.add(this, handler); } /** * Adds a listener to receive focus events on the SuggestBox's text box. The * source Widget for these events will be the SuggestBox. * * @param listener the listener interface to add * @deprecated use {@link #getTextBox}().addFocusHandler/addBlurHandler() * instead */ @Deprecated public void addFocusListener(final FocusListener listener) { ListenerWrapper.WrappedFocusListener focus = ListenerWrapper.WrappedFocusListener.add( box, listener); focus.setSource(this); } /** * @deprecated Use {@link #addKeyDownHandler}, {@link #addKeyUpHandler} and * {@link #addKeyPressHandler} instead */ @Deprecated public void addKeyboardListener(KeyboardListener listener) { ListenerWrapper.WrappedKeyboardListener.add(this, listener); } public HandlerRegistration addKeyDownHandler(KeyDownHandler handler) { return addDomHandler(handler, KeyDownEvent.getType()); } public HandlerRegistration addKeyPressHandler(KeyPressHandler handler) { return addDomHandler(handler, KeyPressEvent.getType()); } public HandlerRegistration addKeyUpHandler(KeyUpHandler handler) { return addDomHandler(handler, KeyUpEvent.getType()); } public HandlerRegistration addSelectionHandler( SelectionHandler<Suggestion> handler) { return addHandler(handler, SelectionEvent.getType()); } public HandlerRegistration addValueChangeHandler( ValueChangeHandler<String> handler) { return addHandler(handler, ValueChangeEvent.getType()); } /** * Returns a {@link TakesValueEditor} backed by the SuggestBox. */ public LeafValueEditor<String> asEditor() { if (editor == null) { editor = TakesValueEditor.of(this); } return editor; } /** * Gets the limit for the number of suggestions that should be displayed for * this box. It is up to the current {@link SuggestOracle} to enforce this * limit. * * @return the limit for the number of suggestions */ public int getLimit() { return limit; } /** * Get the {@link SuggestionDisplay} used to display suggestions. * * @return the {@link SuggestionDisplay} */ public SuggestionDisplay getSuggestionDisplay() { return display; } /** * Gets the suggest box's {@link com.google.gwt.user.client.ui.SuggestOracle}. * * @return the {@link SuggestOracle} */ public SuggestOracle getSuggestOracle() { return oracle; } public int getTabIndex() { return box.getTabIndex(); } public String getText() { return box.getText(); } /** * Get the text box associated with this suggest box. * * @return this suggest box's text box */ public TextBoxBase getTextBox() { return box; } public String getValue() { return box.getValue(); } /** * Hide current suggestions in the {@link DefaultSuggestionDisplay}. Note that * this method is a no-op unless the {@link DefaultSuggestionDisplay} is used. * * @deprecated use {@link DefaultSuggestionDisplay#hideSuggestions()} instead */ @Deprecated public void hideSuggestionList() { display.hideSuggestions(); } /** * Check whether or not the {@link DefaultSuggestionDisplay} has animations * enabled. Note that this method only has a meaningful return value when the * {@link DefaultSuggestionDisplay} is used. * * @deprecated use {@link DefaultSuggestionDisplay#isAnimationEnabled()} * instead */ @Deprecated public boolean isAnimationEnabled() { return display.isAnimationEnabledImpl(); } /** * Returns whether or not the first suggestion will be automatically selected. * This behavior is on by default. * * @return true if the first suggestion will be automatically selected */ public boolean isAutoSelectEnabled() { return selectsFirstItem; } /** * Gets whether this widget is enabled. * * @return <code>true</code> if the widget is enabled */ public boolean isEnabled() { return box.isEnabled(); } /** * Check if the {@link DefaultSuggestionDisplay} is showing. Note that this * method only has a meaningful return value when the * {@link DefaultSuggestionDisplay} is used. * * @return true if the list of suggestions is currently showing, false if not * @deprecated use {@link DefaultSuggestionDisplay#isSuggestionListShowing()} */ @Deprecated public boolean isSuggestionListShowing() { return display.isSuggestionListShowingImpl(); } /** * Refreshes the current list of suggestions. */ public void refreshSuggestionList() { if (isAttached()) { refreshSuggestions(); } } /** * @deprecated Use the {@link HandlerRegistration#removeHandler} method on the * object returned by {@link #getTextBox}().addChangeHandler * instead */ @Deprecated public void removeChangeListener(ChangeListener listener) { ListenerWrapper.WrappedChangeListener.remove(box, listener); } /** * @deprecated Use the {@link HandlerRegistration#removeHandler} method on the * object returned by {@link #getTextBox}().addClickHandler * instead */ @Deprecated public void removeClickListener(ClickListener listener) { ListenerWrapper.WrappedClickListener.remove(box, listener); } /** * @deprecated Use the {@link HandlerRegistration#removeHandler} method no the * object returned by {@link #addSelectionHandler} instead */ @Deprecated public void removeEventHandler(SuggestionHandler handler) { ListenerWrapper.WrappedOldSuggestionHandler.remove(this, handler); } /** * @deprecated Use the {@link HandlerRegistration#removeHandler} method on the * object returned by {@link #getTextBox}().addFocusListener * instead */ @Deprecated public void removeFocusListener(FocusListener listener) { ListenerWrapper.WrappedFocusListener.remove(this, listener); } /** * @deprecated Use the {@link HandlerRegistration#removeHandler} method on the * object returned by {@link #getTextBox}().add*Handler instead */ @Deprecated public void removeKeyboardListener(KeyboardListener listener) { ListenerWrapper.WrappedKeyboardListener.remove(this, listener); } public void setAccessKey(char key) { box.setAccessKey(key); } /** * Enable or disable animations in the {@link DefaultSuggestionDisplay}. Note * that this method is a no-op unless the {@link DefaultSuggestionDisplay} is * used. * * @deprecated use * {@link DefaultSuggestionDisplay#setAnimationEnabled(boolean)} * instead */ @Deprecated public void setAnimationEnabled(boolean enable) { display.setAnimationEnabledImpl(enable); } /** * Turns on or off the behavior that automatically selects the first suggested * item. This behavior is on by default. * * @param selectsFirstItem Whether or not to automatically select the first * suggestion */ public void setAutoSelectEnabled(boolean selectsFirstItem) { this.selectsFirstItem = selectsFirstItem; } /** * Sets whether this widget is enabled. * * @param enabled <code>true</code> to enable the widget, <code>false</code> * to disable it */ public void setEnabled(boolean enabled) { box.setEnabled(enabled); if (!enabled) { display.hideSuggestions(); } } public void setFocus(boolean focused) { box.setFocus(focused); } /** * Sets the limit to the number of suggestions the oracle should provide. It * is up to the oracle to enforce this limit. * * @param limit the limit to the number of suggestions provided */ public void setLimit(int limit) { this.limit = limit; } /** * Sets the style name of the suggestion popup in the * {@link DefaultSuggestionDisplay}. Note that this method is a no-op unless * the {@link DefaultSuggestionDisplay} is used. * * @param style the new primary style name * @see UIObject#setStyleName(String) * @deprecated use {@link DefaultSuggestionDisplay#setPopupStyleName(String)} * instead */ @Deprecated public void setPopupStyleName(String style) { getSuggestionDisplay().setPopupStyleNameImpl(style); } public void setTabIndex(int index) { box.setTabIndex(index); } public void setText(String text) { box.setText(text); } public void setValue(String newValue) { box.setValue(newValue); } public void setValue(String value, boolean fireEvents) { box.setValue(value, fireEvents); } /** * Show the current list of suggestions. */ public void showSuggestionList() { if (isAttached()) { currentText = null; refreshSuggestions(); } } @Override protected void onEnsureDebugId(String baseID) { super.onEnsureDebugId(baseID); display.onEnsureDebugId(baseID); } void showSuggestions(String query) { if (query.length() == 0) { oracle.requestDefaultSuggestions(new Request(null, limit), callback); } else { oracle.requestSuggestions(new Request(query, limit), callback); } } private void addEventsToTextBox() { class TextBoxEvents extends HandlesAllKeyEvents implements ValueChangeHandler<String> { public void onKeyDown(KeyDownEvent event) { switch (event.getNativeKeyCode()) { case KeyCodes.KEY_DOWN: display.moveSelectionDown(); break; case KeyCodes.KEY_UP: display.moveSelectionUp(); break; case KeyCodes.KEY_ENTER: case KeyCodes.KEY_TAB: Suggestion suggestion = display.getCurrentSelection(); if (suggestion == null) { display.hideSuggestions(); } else { setNewSelection(suggestion); } break; } delegateEvent(SuggestBox.this, event); } public void onKeyPress(KeyPressEvent event) { delegateEvent(SuggestBox.this, event); } public void onKeyUp(KeyUpEvent event) { // After every user key input, refresh the popup's suggestions. refreshSuggestions(); delegateEvent(SuggestBox.this, event); } public void onValueChange(ValueChangeEvent<String> event) { delegateEvent(SuggestBox.this, event); } } TextBoxEvents events = new TextBoxEvents(); events.addKeyHandlersTo(box); box.addValueChangeHandler(events); } private void fireSuggestionEvent(Suggestion selectedSuggestion) { SelectionEvent.fire(this, selectedSuggestion); } private void refreshSuggestions() { // Get the raw text. String text = getText(); if (text.equals(currentText)) { return; } else { currentText = text; } showSuggestions(text); } /** * Set the new suggestion in the text box. * * @param curSuggestion the new suggestion */ private void setNewSelection(Suggestion curSuggestion) { assert curSuggestion != null : "suggestion cannot be null"; currentText = curSuggestion.getReplacementString(); setText(currentText); display.hideSuggestions(); fireSuggestionEvent(curSuggestion); } /** * Sets the suggestion oracle used to create suggestions. * * @param oracle the oracle */ private void setOracle(SuggestOracle oracle) { this.oracle = oracle; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
d4b7f243f3a3d25583eb7af98d22547764bddc9d
0f50d7f0655604bd5dc42b2adf501c5837fa483e
/study/src/main/java/com/jimu/study/model/LearnTime.java
94d380689be498005d7138f6e7bee36696cafe5d
[]
no_license
jimueducation/wcwkcourse
df292dbf1e54b7b8992944b87a3f3278bdf2c286
d16c042e59e4f8672143ed887ef5ff98200097a1
refs/heads/master
2022-12-22T22:58:16.049923
2020-03-04T10:25:52
2020-03-04T10:25:52
233,535,410
0
0
null
2022-12-10T05:55:51
2020-01-13T07:21:26
Java
UTF-8
Java
false
false
608
java
package com.jimu.study.model; import io.swagger.annotations.ApiModelProperty; import lombok.Data; /** * @author hxt */ @Data public class LearnTime { @ApiModelProperty("总视频时长") private Integer videoTime; @ApiModelProperty("总图文时长") private Integer picTime; @ApiModelProperty("总音频时长") private Integer audioTime; @ApiModelProperty("每日视频时长") private Integer videoTimeDay; @ApiModelProperty("每日图文时长") private Integer picTimeDay; @ApiModelProperty("每日音频时长") private Integer audioTimeDay; }
[ "1727035918@qq.com" ]
1727035918@qq.com
946d6cc10fc49e40661b1bb8e606cf79840d1362
bfad961fab0e7d488a13ba44933d592b74e71625
/Assigment01_Fix/src/Entity/Product.java
f9d6dff8de9e3547283505a96bc62d54b96306bc
[]
no_license
vantcde130099/assignment-1-CSD201
edc5ca78f3d64c807e964b374f4ae6b1cff7efec
99f8f846b7535027aeccd8561e4f428524c81391
refs/heads/master
2020-05-30T21:30:31.826034
2019-06-10T18:02:28
2019-06-10T18:02:28
189,972,616
0
0
null
null
null
null
UTF-8
Java
false
false
2,430
java
package Entity; import java.util.Objects; public class Product implements Comparable<Product>{ private String pcode; private String pro_name; private int quantity; private int saled; private double price; public Product() { } public Product(String pcode, String pro_name, int quantity, int saled, double price) { this.pcode = pcode; this.pro_name = pro_name; this.saled = saled; this.price = price; this.quantity = quantity; } public String getPcode() { return pcode; } public String getPro_name() { return pro_name; } public int getSaled() { return saled; } public double getPrice() { return price; } public void setPcode(String pcode) { this.pcode = pcode; } public void setPro_name(String pro_name) { this.pro_name = pro_name; } public void setSaled(int saled) { this.saled = saled; } public void setPrice(double price) { this.price = price; } public int getQuantity() { return quantity; } public void setQuantity(int quantity) { this.quantity = quantity; } @Override public String toString() { return "Product{" + "pcode=" + pcode + ", pro_name=" + pro_name + ", quantity=" + quantity + ", saled=" + saled + ", price=" + price + '}'; } // override equal. Compare 2 Product with pcode // return true or false. @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Product other = (Product) obj; if (!Objects.equals(this.pcode, other.pcode)) { return false; } return true; } // don't care about it. Not important now. @Override public int hashCode() { int hash = 5; hash = 37 * hash + Objects.hashCode(this.pcode); return hash; } // Compare 2 product // return 0 if equal, positive number if higher, negative number if lower @Override public int compareTo(Product t) { return t.getPcode().compareTo(pcode); } }
[ "noreply@github.com" ]
noreply@github.com
2b775630a2f052622275a150bfbbfe697d23ab75
c75e6df08eb4065ab80fcc1dcc1cb38ac1256f72
/web/plugins/com.seekon.nextbi.palo.gwt.core/src/com/tensegrity/palo/gwt/core/client/models/folders/XDynamicFolder.java
bbc29f5bcc1142a1ac95bfb522cf2bf45398d2ea
[]
no_license
jerome-nexedi/nextbi
7b219c1ec64b21bebf4ccf77c730e15a8ad1c6de
0179b30bf6a86ae6a070434a3161d7935f166b42
refs/heads/master
2021-01-10T09:06:15.838199
2012-11-14T11:59:53
2012-11-14T11:59:53
36,644,370
0
0
null
null
null
null
UTF-8
Java
false
false
1,676
java
/* * * @file XDynamicFolder.java * * Copyright (C) 2006-2009 Tensegrity Software GmbH * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License (Version 2) as published * by the Free Software Foundation at http://www.gnu.org/copyleft/gpl.html. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA * * If you are developing and distributing open source applications under the * GPL License, then you are free to use JPalo Modules under the GPL License. For OEMs, * ISVs, and VARs who distribute JPalo Modules with their products, and do not license * and distribute their source code under the GPL, Tensegrity provides a flexible * OEM Commercial License. * * @author Philipp Bouillon <Philipp.Bouillon@tensegrity-software.com> * * @version $Id: XDynamicFolder.java,v 1.2 2009/12/17 16:14:30 PhilippBouillon Exp $ * */ /* * (c) Tensegrity Software 2009 * All rights reserved */ package com.tensegrity.palo.gwt.core.client.models.folders; /** * <code>XDynamicFolder</code> TODO DOCUMENT ME * * @version $Id: XDynamicFolder.java,v 1.2 2009/12/17 16:14:30 PhilippBouillon * Exp $ **/ public class XDynamicFolder { }
[ "undyliu@126.com" ]
undyliu@126.com
2ed591eea0a9aa6ffef7058fee4bdf43da744e57
28687f6a87220921e3863888ac5b8e6f8ac93d1c
/src/org/ironrhino/sample/api/controller/UploadController.java
19a575f0ee7353e74df4587c3077818ceb07aeff
[]
no_license
changyu496/ironrhino
1fcf8a0a70977adeb159aa7a204b4fd0f0226ccc
1204ad611b70443947f25e3ce12c604bd57b0d36
refs/heads/master
2021-01-15T22:24:22.726203
2015-08-26T06:48:20
2015-08-26T06:49:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,327
java
package org.ironrhino.sample.api.controller; import java.util.HashMap; import java.util.Map; import org.ironrhino.core.metadata.Authorize; import org.ironrhino.core.security.role.UserRole; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.multipart.MultipartFile; @Controller @RequestMapping("/upload") @Authorize(ifAnyGranted = UserRole.ROLE_ADMINISTRATOR) public class UploadController { @RequestMapping(method = RequestMethod.GET) public String form() { return "sample/upload"; } @RequestMapping(method = RequestMethod.POST) @ResponseBody public Map<String, Object> upload(@RequestParam("name") String name, @RequestParam("file") MultipartFile file) { Map<String, Object> result = new HashMap<String, Object>(); result.put("name", name); if (!file.isEmpty()) { result.put("size", file.getSize()); result.put("contentType", file.getContentType()); result.put("filename", file.getName()); result.put("originalFilename", file.getOriginalFilename()); } return result; } }
[ "zhouyanming@gmail.com" ]
zhouyanming@gmail.com
3906d572791e1095cc96e72738a1c9ab50c4be89
79bb49dffc97706322614ce903c4ac0cd18e9cb8
/library/src/main/java/com/github/dewinjm/monthyearpicker/PickerView.java
53ce4ea344d885f6d4fc57a5a2b051fb5393a1f2
[ "Apache-2.0" ]
permissive
Kavita-7/monthyear-picker
1846cafb37c3852f37e0cde55721b5802c1b772e
32a9bdab7a1d1261a5c6976789481d7d352a73b9
refs/heads/master
2020-05-21T05:21:00.585863
2018-08-16T01:32:00
2018-08-16T01:32:00
185,920,198
1
0
Apache-2.0
2019-05-10T04:45:01
2019-05-10T04:45:01
null
UTF-8
Java
false
false
2,961
java
package com.github.dewinjm.monthyearpicker; import android.view.View; import android.widget.NumberPicker; import java.util.Arrays; import java.util.Calendar; public class PickerView implements IPickerView { private final NumberPicker monthSpinner; private final NumberPicker yearSpinner; private String[] shortMonths; PickerView(View view) { monthSpinner = view.findViewById(R.id.month); monthSpinner.setMinValue(0); monthSpinner.setOnLongPressUpdateInterval(200); yearSpinner = view.findViewById(R.id.year); yearSpinner.setOnLongPressUpdateInterval(100); } private void updateMonthSpinners(int max, int min, Calendar current) { monthSpinner.setDisplayedValues(null); monthSpinner.setMinValue(min); monthSpinner.setMaxValue(max); monthSpinner.setWrapSelectorWheel(min == 0); // make sure the month names are a zero based array // with the months in the month spinner String[] displayedValues = Arrays.copyOfRange( shortMonths, monthSpinner.getMinValue(), monthSpinner.getMaxValue() + 1); monthSpinner.setDisplayedValues(displayedValues); // set the spinner values monthSpinner.setValue(current.get(Calendar.MONTH)); } private void updateYearSpinners(int max, int min, Calendar current) { // year spinner range does not change based on the current date yearSpinner.setMinValue(min); yearSpinner.setMaxValue(max); yearSpinner.setWrapSelectorWheel(false); // set the spinner values yearSpinner.setValue(current.get(Calendar.YEAR)); } @Override public void setNumberOfMonth(int numberOfMonths) { monthSpinner.setMaxValue(numberOfMonths); } @Override public void dateUpdate(PickerField field, int max, int min, Calendar current) { switch (field) { case YEAR: updateYearSpinners(max, min, current); break; case MONTH: updateMonthSpinners(max, min, current); break; } } @Override public void setShortMonth(String[] shortMonths) { this.shortMonths = shortMonths; monthSpinner.setDisplayedValues(shortMonths); } @Override public void setOnValueChanged(NumberPicker.OnValueChangeListener onValueChangeListener) { monthSpinner.setOnValueChangedListener(onValueChangeListener); yearSpinner.setOnValueChangedListener(onValueChangeListener); } @Override public NumberPicker getMonthSpinner() { return monthSpinner; } @Override public NumberPicker getYearSpinner() { return yearSpinner; } @Override public void monthSetValue(int month) { monthSpinner.setValue(month); } @Override public void yearSetValue(int year) { yearSpinner.setValue(year); } }
[ "dewin.martinez@gmail.com" ]
dewin.martinez@gmail.com
9cc9484789e486852efd338e95cf4a104d374f34
b6c912bdf43be2fd99f3702619a832ec83ab1c54
/src/main/java/model/Taxi.java
56a1706bc402b3bf26b3938ecde7dc9e0e9f3590
[]
no_license
baranovskyvv/CabCompany3000
45b987e68885aa75123ce957702d3eded0b16a9e
dbe2de232267d1bb9f963b07f11373beb7ef94a8
refs/heads/master
2021-07-02T07:43:12.806498
2021-05-02T17:52:05
2021-05-02T17:52:05
230,911,262
0
0
null
2020-10-13T18:32:11
2019-12-30T12:22:46
Java
UTF-8
Java
false
false
36
java
package model; interface Taxi { }
[ "baran2009.95@mail.ru" ]
baran2009.95@mail.ru
527754069356a77e0beab68dc0759cc0449b0193
0bf070aedd970ebaacdececc65da540deb754de8
/app/src/main/java/com/zpauly/githubapp/presenter/issues/IssueCreateContract.java
d0291801039e64aac967173db94bda626fe09fb9
[ "Apache-2.0" ]
permissive
zpauly/GitHub_Android
dd35e557c750d0ff1eeb173f3eb44279dad0157a
c217091aa44c47c1d48079cc6e54019747f6855c
refs/heads/master
2020-05-21T20:52:49.933450
2017-02-10T13:51:00
2017-02-10T13:51:00
63,486,633
57
6
null
2016-11-27T13:24:04
2016-07-16T14:29:20
Java
UTF-8
Java
false
false
1,552
java
package com.zpauly.githubapp.presenter.issues; import com.zpauly.githubapp.base.BasePresenter; import com.zpauly.githubapp.base.BaseView; import com.zpauly.githubapp.entity.request.IssueRequestBean; import com.zpauly.githubapp.entity.response.AssigneeBean; import com.zpauly.githubapp.entity.response.issues.IssueBean; import com.zpauly.githubapp.entity.response.issues.LabelBean; import com.zpauly.githubapp.entity.response.MilestoneBean; import java.util.List; /** * Created by zpauly on 16/9/12. */ public class IssueCreateContract { public interface Presenter extends BasePresenter { void checkAssignee(); void getAssignees(); void getMilestones(); void getLabels(); void createAnIssue(); } public interface View extends BaseView<Presenter> { void checkSuccess(); void checkFail(); void checkNotFound(); void getAssigneesSuccess(); void getAssigneeFail(); void gettingAssignees(List<AssigneeBean> assigneeBeen); void getMilestonesSuccess(); void getMilestonesFail(); void gettingMilestones(List<MilestoneBean> milestoneBeen); void getLabelsSuccess(); void getLabelsFail(); void gettingLabels(List<LabelBean> labelBeen); void createIssueSuccess(); void createIssueFail(); void creatingIssue(IssueBean issueBean); IssueRequestBean getIssueBean(); String getOwner(); String getUsername(); String getRepoName(); } }
[ "zpauly1996@gmail.com" ]
zpauly1996@gmail.com
34b500f85f6e4e548df71074e8b0c0f2ae9f9095
a1ea4311d0e36e7adce8c71047bcc5a6ad7c4c1c
/common/src/test/java/net/sf/webdav/methods/DoDeleteTest.java
0aba3ee2a2208a92827e88af1880256530dfcc45
[ "Apache-2.0" ]
permissive
leocrawford/webdav-handler
658882d0dd28ee51f7a53e7176f965134ada26a9
e5da5dfe42572f58246b5e3304f148c7f25c6542
refs/heads/master
2020-12-25T10:34:50.891161
2014-05-26T17:35:17
2014-05-26T17:35:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
12,162
java
package net.sf.webdav.methods; import java.io.PrintWriter; import net.sf.webdav.StoredObject; import net.sf.webdav.WebdavStatus; import net.sf.webdav.locking.LockedObject; import net.sf.webdav.locking.ResourceLocks; import net.sf.webdav.spi.ITransaction; import net.sf.webdav.spi.IWebdavStore; import net.sf.webdav.spi.WebdavRequest; import net.sf.webdav.spi.WebdavResponse; import net.sf.webdav.testutil.MockTest; import org.jmock.Expectations; import org.junit.Test; public class DoDeleteTest extends MockTest { static IWebdavStore mockStore; static WebdavRequest mockReq; static WebdavResponse mockRes; static ITransaction mockTransaction; static byte[] resourceContent = new byte[] { '<', 'h', 'e', 'l', 'l', 'o', '/', '>' }; @Override public void setupFixtures() throws Exception { mockStore = _mockery.mock( IWebdavStore.class ); mockReq = _mockery.mock( WebdavRequest.class ); mockRes = _mockery.mock( WebdavResponse.class ); mockTransaction = _mockery.mock( ITransaction.class ); } @Test public void testDeleteIfReadOnlyIsTrue() throws Exception { _mockery.checking( new Expectations() { { one( mockRes ).sendError( WebdavStatus.SC_FORBIDDEN ); } } ); final ResourceLocks resLocks = new ResourceLocks(); final DoDelete doDelete = new DoDelete( mockStore, resLocks, readOnly ); doDelete.execute( mockTransaction, mockReq, mockRes ); _mockery.assertIsSatisfied(); } @Test public void testDeleteFileIfObjectExists() throws Exception { _mockery.checking( new Expectations() { { one( mockReq ).getAttribute( "javax.servlet.include.request_uri" ); will( returnValue( null ) ); one( mockReq ).getPathInfo(); will( returnValue( sourceFilePath ) ); one( mockRes ).setStatus( WebdavStatus.SC_NO_CONTENT ); final StoredObject fileSo = initFileStoredObject( resourceContent ); one( mockStore ).getStoredObject( mockTransaction, sourceFilePath ); will( returnValue( fileSo ) ); one( mockStore ).removeObject( mockTransaction, sourceFilePath ); } } ); final DoDelete doDelete = new DoDelete( mockStore, new ResourceLocks(), !readOnly ); doDelete.execute( mockTransaction, mockReq, mockRes ); _mockery.assertIsSatisfied(); } @Test public void testDeleteFileIfObjectNotExists() throws Exception { _mockery.checking( new Expectations() { { one( mockReq ).getAttribute( "javax.servlet.include.request_uri" ); will( returnValue( null ) ); one( mockReq ).getPathInfo(); will( returnValue( sourceFilePath ) ); one( mockRes ).setStatus( WebdavStatus.SC_NO_CONTENT ); final StoredObject fileSo = null; one( mockStore ).getStoredObject( mockTransaction, sourceFilePath ); will( returnValue( fileSo ) ); one( mockRes ).sendError( WebdavStatus.SC_NOT_FOUND ); } } ); final DoDelete doDelete = new DoDelete( mockStore, new ResourceLocks(), !readOnly ); doDelete.execute( mockTransaction, mockReq, mockRes ); _mockery.assertIsSatisfied(); } @Test public void testDeleteFolderIfObjectExists() throws Exception { _mockery.checking( new Expectations() { { one( mockReq ).getAttribute( "javax.servlet.include.request_uri" ); will( returnValue( null ) ); one( mockReq ).getPathInfo(); will( returnValue( sourceCollectionPath ) ); one( mockRes ).setStatus( WebdavStatus.SC_NO_CONTENT ); final StoredObject folderSo = initFolderStoredObject(); one( mockStore ).getStoredObject( mockTransaction, sourceCollectionPath ); will( returnValue( folderSo ) ); one( mockStore ).getChildrenNames( mockTransaction, sourceCollectionPath ); will( returnValue( new String[] { "subFolder", "sourceFile" } ) ); final StoredObject fileSo = initFileStoredObject( resourceContent ); one( mockStore ).getStoredObject( mockTransaction, sourceFilePath ); will( returnValue( fileSo ) ); one( mockStore ).removeObject( mockTransaction, sourceFilePath ); final StoredObject subFolderSo = initFolderStoredObject(); one( mockStore ).getStoredObject( mockTransaction, sourceCollectionPath + "/subFolder" ); will( returnValue( subFolderSo ) ); one( mockStore ).getChildrenNames( mockTransaction, sourceCollectionPath + "/subFolder" ); will( returnValue( new String[] { "fileInSubFolder" } ) ); final StoredObject fileInSubFolderSo = initFileStoredObject( resourceContent ); one( mockStore ).getStoredObject( mockTransaction, sourceCollectionPath + "/subFolder/fileInSubFolder" ); will( returnValue( fileInSubFolderSo ) ); one( mockStore ).removeObject( mockTransaction, sourceCollectionPath + "/subFolder/fileInSubFolder" ); one( mockStore ).removeObject( mockTransaction, sourceCollectionPath + "/subFolder" ); one( mockStore ).removeObject( mockTransaction, sourceCollectionPath ); } } ); final DoDelete doDelete = new DoDelete( mockStore, new ResourceLocks(), !readOnly ); doDelete.execute( mockTransaction, mockReq, mockRes ); _mockery.assertIsSatisfied(); } @Test public void testDeleteFolderIfObjectNotExists() throws Exception { _mockery.checking( new Expectations() { { one( mockReq ).getAttribute( "javax.servlet.include.request_uri" ); will( returnValue( null ) ); one( mockReq ).getPathInfo(); will( returnValue( sourceCollectionPath ) ); one( mockRes ).setStatus( WebdavStatus.SC_NO_CONTENT ); final StoredObject folderSo = null; one( mockStore ).getStoredObject( mockTransaction, sourceCollectionPath ); will( returnValue( folderSo ) ); one( mockRes ).sendError( WebdavStatus.SC_NOT_FOUND ); } } ); final DoDelete doDelete = new DoDelete( mockStore, new ResourceLocks(), !readOnly ); doDelete.execute( mockTransaction, mockReq, mockRes ); _mockery.assertIsSatisfied(); } @Test public void testDeleteFileInFolder() throws Exception { _mockery.checking( new Expectations() { { one( mockReq ).getAttribute( "javax.servlet.include.request_uri" ); will( returnValue( null ) ); one( mockReq ).getPathInfo(); will( returnValue( sourceFilePath ) ); one( mockRes ).setStatus( WebdavStatus.SC_NO_CONTENT ); final StoredObject fileSo = initFileStoredObject( resourceContent ); one( mockStore ).getStoredObject( mockTransaction, sourceFilePath ); will( returnValue( fileSo ) ); one( mockStore ).removeObject( mockTransaction, sourceFilePath ); } } ); final DoDelete doDelete = new DoDelete( mockStore, new ResourceLocks(), !readOnly ); doDelete.execute( mockTransaction, mockReq, mockRes ); _mockery.assertIsSatisfied(); } @Test public void testDeleteFileInLockedFolderWithWrongLockToken() throws Exception { final String lockedFolderPath = "/lockedFolder"; final String fileInLockedFolderPath = lockedFolderPath.concat( "/fileInLockedFolder" ); final String owner = new String( "owner" ); final ResourceLocks resLocks = new ResourceLocks(); resLocks.lock( mockTransaction, lockedFolderPath, owner, true, -1, TEMP_TIMEOUT, !TEMPORARY ); final LockedObject lo = resLocks.getLockedObjectByPath( mockTransaction, lockedFolderPath ); final String wrongLockToken = "(<opaquelocktoken:" + lo.getID() + "WRONG>)"; final PrintWriter pw = new PrintWriter( "/tmp/XMLTestFile" ); _mockery.checking( new Expectations() { { one( mockReq ).getAttribute( "javax.servlet.include.request_uri" ); will( returnValue( null ) ); one( mockReq ).getPathInfo(); will( returnValue( fileInLockedFolderPath ) ); one( mockReq ).getHeader( "If" ); will( returnValue( wrongLockToken ) ); one( mockRes ).setStatus( WebdavStatus.SC_MULTI_STATUS ); one( mockReq ).getRequestURI(); will( returnValue( "http://foo.bar".concat( lockedFolderPath ) ) ); one( mockRes ).getWriter(); will( returnValue( pw ) ); } } ); final DoDelete doDelete = new DoDelete( mockStore, resLocks, !readOnly ); doDelete.execute( mockTransaction, mockReq, mockRes ); _mockery.assertIsSatisfied(); } @Test public void testDeleteFileInLockedFolderWithRightLockToken() throws Exception { final String path = "/lockedFolder/fileInLockedFolder"; final String parentPath = "/lockedFolder"; final String owner = new String( "owner" ); final ResourceLocks resLocks = new ResourceLocks(); resLocks.lock( mockTransaction, parentPath, owner, true, -1, TEMP_TIMEOUT, !TEMPORARY ); final LockedObject lo = resLocks.getLockedObjectByPath( mockTransaction, "/lockedFolder" ); final String rightLockToken = "(<opaquelocktoken:" + lo.getID() + ">)"; _mockery.checking( new Expectations() { { one( mockReq ).getAttribute( "javax.servlet.include.request_uri" ); will( returnValue( null ) ); one( mockReq ).getPathInfo(); will( returnValue( path ) ); one( mockReq ).getHeader( "If" ); will( returnValue( rightLockToken ) ); one( mockRes ).setStatus( WebdavStatus.SC_NO_CONTENT ); final StoredObject so = initFileStoredObject( resourceContent ); one( mockStore ).getStoredObject( mockTransaction, path ); will( returnValue( so ) ); one( mockStore ).removeObject( mockTransaction, path ); } } ); final DoDelete doDelete = new DoDelete( mockStore, resLocks, !readOnly ); doDelete.execute( mockTransaction, mockReq, mockRes ); _mockery.assertIsSatisfied(); } @Test public void testDeleteFileInFolderIfObjectNotExists() throws Exception { final boolean readOnly = false; _mockery.checking( new Expectations() { { one( mockReq ).getAttribute( "javax.servlet.include.request_uri" ); will( returnValue( null ) ); one( mockReq ).getPathInfo(); will( returnValue( "/folder/file" ) ); one( mockRes ).setStatus( WebdavStatus.SC_NO_CONTENT ); final StoredObject nonExistingSo = null; one( mockStore ).getStoredObject( mockTransaction, "/folder/file" ); will( returnValue( nonExistingSo ) ); one( mockRes ).sendError( WebdavStatus.SC_NOT_FOUND ); } } ); final DoDelete doDelete = new DoDelete( mockStore, new ResourceLocks(), readOnly ); doDelete.execute( mockTransaction, mockReq, mockRes ); _mockery.assertIsSatisfied(); } }
[ "jdcasey@commonjava.org" ]
jdcasey@commonjava.org
3155e7069fb68149d0f05e1f34344ffa3ab28914
ac901449b15b2435cdf276146afa69c55df8c304
/Stack.java
63efe84314a85aa207578205fe87a03c9e6d749a
[]
no_license
Bikramjitsingh02/Algorithms
76ce1d3980d9be9aa5ac5d5782858addd2e73767
9092fe4924e07dabe406454e77cebb5688eadf72
refs/heads/master
2021-08-22T19:17:41.284817
2017-12-01T01:54:30
2017-12-01T01:54:30
112,679,575
0
0
null
null
null
null
UTF-8
Java
false
false
1,549
java
package javaProjectNew; import java.util.Iterator; import java.util.NoSuchElementException; public class Stack<Item> implements Iterable<Item>{ private Node<Item> first; private int n;//size of the stack private static class Node<Item>{ private Item item; private Node<Item> next; } public Stack(){ first=null; n=0; } private boolean isEmpty(){ return size()==0; } public void push(Item item){ Node<Item> oldfirst; oldfirst=first; first=new Node<Item>(); first.item=item; first.next=oldfirst; n++; } public Item pop(){ if(isEmpty()) throw new NoSuchElementException("stack underflow"); Item item; item=first.item; first=first.next; return item; } private int size(){ return n; } @Override public Iterator<Item> iterator() { // TODO Auto-generated method stub return new ListMe(first); } public class ListMe implements Iterator<Item>{ private Node<Item> current; ListMe(Node<Item> first){ current=first; } @Override public boolean hasNext() { // TODO Auto-generated method stub return current!=null; } @Override public Item next() { // TODO Auto-generated method stub Item item; item=current.item; current=current.next; return item; } } /* public static void main(String args[]) { Stack<Integer> stack=new Stack<Integer>(); stack.push(13); stack.push(45); for(int g: stack) { System.out.println(g); } }*/ }
[ "noreply@github.com" ]
noreply@github.com
05b4cbb6b2aa18f4dc22e5624e097d2d088220ed
6b16f274cb7a9ac3255ff4e487b91e17a329735d
/src/model/BeanMission.java
096c61f00de168074566f7f6e2dcbe7241c93058
[]
no_license
tzy502/management
4f8039caf90d2892825a802e1d013edbc84aed56
3f5affbd88365868b552b5c37c90d46bff3f73a3
refs/heads/master
2021-01-19T14:40:26.751305
2018-05-12T06:42:03
2018-05-12T06:42:03
100,910,233
1
0
null
null
null
null
UTF-8
Java
false
false
1,971
java
package model; import java.sql.Timestamp; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import org.springframework.format.annotation.DateTimeFormat; @Entity @Table(name = "mission") public class BeanMission { private int missionid; private String userid; private int stationid; private Timestamp startdate; private Timestamp enddate; private int status; private String description; private String missionname; private int type;//1手动 2定时 3报警 @Id @Column(name = "missionid") public int getMissionid() { return missionid; } public void setMissionid(int missionid) { this.missionid = missionid; } @Column(name = "missionname") public String getMissionname() { return missionname; } public void setMissionname(String missionname) { this.missionname = missionname; } @Column(name = "userid") public String getUserid() { return userid; } public void setUserid(String userid) { this.userid = userid; } @Column(name = "stationid") public int getStationid() { return stationid; } public void setStationid(int stationid) { this.stationid = stationid; } @Column(name = "startdate") public Timestamp getStartdate() { return startdate; } public void setStartdate(Timestamp startdate) { this.startdate = startdate; } @Column(name = "enddate") public Timestamp getEnddate() { return enddate; } public void setEnddate(Timestamp enddate) { this.enddate = enddate; } @Column(name = "status") public int getStatus() { return status; } public void setStatus(int status) { this.status = status; } @Column(name = "description") public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } @Column(name = "type") public int getType() { return type; } public void setType(int type) { this.type = type; } }
[ "270081484@qq.com" ]
270081484@qq.com
943de75084e042e202a0d55e5b163114f518b462
b85489e6092f842600802f879842f2e463d7853b
/src/GUI/CardapioTela.java
c698f17d4ce9969a371eb167981c600e3da1d582
[]
no_license
jonathanssaldanha/Projeto-Java-Pizzaria
b893797b0251acf57ff02304900773b6ed138378
8437d796f72df6c78c69c2fef42969f29b12d389
refs/heads/master
2020-04-29T13:36:19.427008
2019-03-21T22:38:45
2019-03-21T22:38:45
176,173,146
0
0
null
null
null
null
UTF-8
Java
false
false
3,255
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 GUI; /** * * @author jonat */ public class CardapioTela extends javax.swing.JFrame { /** * Creates new form CardapioTela */ public CardapioTela() { initComponents(); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 400, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) ); pack(); }// </editor-fold>//GEN-END:initComponents /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(CardapioTela.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(CardapioTela.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(CardapioTela.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(CardapioTela.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new CardapioTela().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables // End of variables declaration//GEN-END:variables }
[ "jonathanssaldanha@gmail.com" ]
jonathanssaldanha@gmail.com
2b217b3151e041f0ce75b0ea7c0b234bc8dfdbba
2da4a9c7028f75d8b0488fd837213643f5b3ed98
/q23.java
046518955cf6f26e8d0a804d32025c7dd9da91f2
[]
no_license
deepanjanjoth/core_java
4608c6538c50f2b6656634d67b45c97e9822d119
f2bd17bca719561d3ca23541df76991963fdab27
refs/heads/master
2022-12-27T18:29:02.304586
2020-10-12T05:12:19
2020-10-12T05:12:19
300,271,621
0
0
null
null
null
null
UTF-8
Java
false
false
582
java
public class q23{ public static void main(String[] args) { //Initialize array int [] arr = new int [] {1, 2, 3, 4, 5}; System.out.println("Original array: "); for (int i = 0; i < arr.length; i++) { System.out.print(arr[i] + " "); } System.out.println(); System.out.println("Array in reverse order: "); //Loop through the array in reverse order for (int i = arr.length-1; i >= 0; i--) { System.out.print(arr[i] + " "); } } }
[ "noreply@github.com" ]
noreply@github.com
ac7f8bade225890986e785589795ce8c5eefac9e
ac80050d76874453da25455b6c6105368887dab0
/ComputePIb.java
afa5470916f0966a9679b66825cfdf331cb0983d
[]
no_license
LiMengyang990726/JavaTutorial
b650ab7124de169c2d4f8e1075d9557d8631b5bd
51ee410b67d189291a9daeffd420d1927d40a2d0
refs/heads/master
2021-09-09T14:49:01.592161
2018-03-17T03:16:29
2018-03-17T03:16:29
124,911,119
1
0
null
2018-03-12T16:15:09
2018-03-12T15:33:11
Java
UTF-8
Java
false
false
486
java
import java.util.Scanner; public class ComputePIb { public static void main(String[] args) { int maxTerms; double terms = 0, result; Scanner in = new Scanner(System.in); System.out.println("Enter the number of terms used for computation: "); maxTerms = in.nextInt(); for (int counter = 1; counter <= maxTerms; counter++){ terms += (Math.pow(-1,counter+1))*(1.0/(2*counter-1)); } result = 4*terms; System.out.printf("The PI computed is: %.10f",result); } }
[ "noreply@github.com" ]
noreply@github.com
0534db7f895fdf112ee0268743c7c1a46ca86aeb
d2293d13ba4eced8a839df5dd4d49b0b0c97730e
/Methods(A deeper look)/src/com/makingADifference/LearnMultiplication.java
5be9a03e6ba3ada062ca37dbc8a028bade32d7c4
[]
no_license
Sanusi1997/Java_How_To_Programme_Practice_Questions
f4c30003318aa466054d923c6b4948ce40db222c
7aa78d0483e6e957bec0f9c4a164a0376100ec77
refs/heads/master
2022-12-19T02:19:39.243530
2020-09-07T21:18:16
2020-09-07T21:18:16
280,178,496
0
0
null
null
null
null
UTF-8
Java
false
false
3,723
java
package com.makingADifference; import java.security.SecureRandom; import java.util.Scanner; public class LearnMultiplication { private static final SecureRandom randomNumber = new SecureRandom(); private static int number1; private static int number2; private static int rightComment; private static int wrongComment; private static int wrongResponses = 0; private static int rightResponses = 0; private static int totalResponses = 0; public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner(System.in); questionGenerator(); int product = number1 * number2; System.out.printf("How much is %d times %d?%n", number1, number2); System.out.println("Enter your answer: "); int userAnswer = input.nextInt(); if (userAnswer == product) { rightCommentGenerator(); while (userAnswer == product) { questionGenerator(); product = number1 * number2; System.out.printf("How much is %d times %d?%n", number1, number2); System.out.println("Enter your answer: or -1 to end the session"); userAnswer = input.nextInt(); rightResponses++; if (userAnswer == product) { rightCommentGenerator(); } else if (userAnswer > 0 && userAnswer != product) { while (userAnswer != product) { System.out.println("No please try again"); System.out.printf("How much is %d times %d?%n", number1, number2); System.out.println("Enter your answer: "); userAnswer = input.nextInt(); wrongResponses++; if (userAnswer == product) { rightCommentGenerator(); break; } } } else if (userAnswer == -1) { break; } } } else if (userAnswer > 0 && userAnswer != product) { while (userAnswer != product) { wrongCommentGenerator(); System.out.printf("How much is %d times %d?%n", number1, number2); System.out.println("Enter your answer: "); userAnswer = input.nextInt(); wrongResponses++; if (userAnswer == product) { while (userAnswer == product) { rightCommentGenerator(); questionGenerator(); product = number1 * number2; System.out.printf("How much is %d times %d?%n", number1, number2); System.out.println("Enter your answer: or -1 to end the session"); userAnswer = input.nextInt(); rightResponses++; if (userAnswer == -1) { break; } } } if (userAnswer == -1) { break; } } } totalResponses = rightResponses + wrongResponses; double percentageCorrect = (( double) rightResponses / totalResponses) * 100; System.out.printf("Number of correct reponse(s) = %d%n", rightResponses); System.out.printf("Number of wrong reponse(s) = %d%n", wrongResponses); System.out.printf("Percentage correct = %.2f%s", percentageCorrect, "%"); } public static void questionGenerator() { number1 = 1 + randomNumber.nextInt(9); number2 = 1 + randomNumber.nextInt(9); } public static void rightCommentGenerator() { rightComment = 1 + randomNumber.nextInt(4); switch (rightComment) { case 1: System.out.println("Very good!"); break; case 2: System.out.println("Excellent!"); break; case 3: System.out.println("Nice work!"); break; case 4: System.out.println("Keep up the good work!"); break; } } public static void wrongCommentGenerator() { wrongComment = 1 + randomNumber.nextInt(4); switch (wrongComment) { case 1: System.out.println("No. Please try again"); break; case 2: System.out.println("Wrong. Try once more"); break; case 3: System.out.println("Don't give up!"); break; case 4: System.out.println("No. Keep trying"); break; } } }
[ "sanusihameedolayiwola@gmail.com" ]
sanusihameedolayiwola@gmail.com
6a472164c37c54c26f52a506af4b2afe012a17b5
3f6649b1366c905ad4466555c73988da5410ed6a
/demo/src/main/java/com/wutong/demo/domain/TUser.java
39b439a94e2e3473145321a577bbab6b60598608
[]
no_license
kekexiong/wutong
8ccfe7a9daae403ca90e7c63c68a4ee71f59ba27
c9f5f7e5b995ad75f191531152622a9297369fbd
refs/heads/master
2022-04-10T16:48:52.465834
2020-03-12T07:01:34
2020-03-12T07:01:34
238,353,775
2
0
null
2020-02-11T10:20:16
2020-02-05T02:44:50
HTML
UTF-8
Java
false
false
415
java
package com.wutong.demo.domain; import lombok.Data; /** * @description TUserdomain * @author zhao_qg * @date 20200213 20:56:33 * @review zhao_qg/2020-02-13 */ @Data public class TUser { /** * 名字 */ private String name; /** * 年龄 */ private String age; /** * 电话 */ private String tel; /** * 主键 */ private String uuid; }
[ "zhao_qg@suixingpay.com" ]
zhao_qg@suixingpay.com
cd753999913100148298bf2bb2f654f1729a6d75
6f4d3d55bb66edd0c0914c7f29f58285c43ee5fb
/Server_End/150415 - Buzz-Server/Buzz-Server/app/core/cache/Session.java
e2587920324562baa260e2beac193169264af0ad
[]
no_license
iamamir/UCLAFeeds
9b2b6145a02607b4aeaed50ed472522879077b56
faf32c029165f084d97649b7dca117efb65c9044
refs/heads/master
2021-01-10T10:16:42.107611
2015-06-04T07:42:15
2015-06-04T07:47:58
36,850,866
0
0
null
null
null
null
UTF-8
Java
false
false
1,962
java
package core.cache; import play.cache.Cache; import util.Util; public class Session { private static final int defaultTimeOut = 5 * 60; // seconds public static enum Namespace { USERS_BY_LEVEL ("search_users_by_lv"), MISSION_SAVE_RESULT ("mission_save_result"), MISSION_STAGE_BOSS_RESULT ("mission_stage_boss_result"), MISSION_ENEMY_RESULT ("mission_enemy_result"), MISSION_BATTLE_RESULT ("mission_battle_result"), MISSION_BATTLE_ASSETS_POINT ("mission_battle_assets_point"), USER_SHARD_MAP("user_shard_map"); private String value; private Namespace(String value) { this.value = value; } public String value() { return this.value; } } public static Object read(long userId, String key) { if (!Session.isValidKey(key)) { return null; } String cacheKey = userId + ":" + key; return Cache.get(cacheKey); } public static void writeWithKey(long userId, String key, Object value, int expiry) { String cacheKey = userId + ":" + key; Cache.set(cacheKey, value, expiry); } public static void writeWithKey(long userId, String key, Object value) { writeWithKey(userId, key, value, defaultTimeOut); } public static void writeWithRandomKey(long userId, Object value) { int randomNumber = (int)Util.getRandomNumberInRange(1, 100000); writeWithKey(userId, String.valueOf(randomNumber), value, defaultTimeOut); } public static void store(String key, Object value) { Cache.set(key, value, defaultTimeOut); } public static Object retrieve(String key) { if (!Session.isValidKey(key)) { return null; } return Cache.get(key); } public static void delete(long userId, String key) { if (!Session.isValidKey(key)) { //TODO: Uncomment the following code when it's support is available in the underlying framework (not available in 2.0) //Cache.remove(key) } } private static boolean isValidKey(String key) { return (key != null && key.length() <= 255); } }
[ "mkhan763@gmail.com" ]
mkhan763@gmail.com
0b09855173e4179ae5d271bc2200ecea7a649521
11fa09ae8413b915043b9f92d1ba632fd96ca75b
/src/main/java/org/sid/service/impl/RecruteurServiceImpl.java
da7d1aa5ab7d0428e3db28356e075b09775a7906
[]
no_license
yassine-O/pfa
782dc09adcb2c9d1da9cd703168480ce6459904d
fb33ac475c56892f7a44eac3b75da3e36e672d03
refs/heads/master
2022-12-07T03:30:48.825109
2020-09-03T23:08:57
2020-09-03T23:08:57
261,055,457
0
2
null
2020-05-08T23:47:16
2020-05-04T01:29:21
Java
UTF-8
Java
false
false
2,392
java
package org.sid.service.impl; import java.util.List; import org.sid.dao.CategorieRepository; import org.sid.dao.QuestionRepository; import org.sid.dao.RecruteurRepository; import org.sid.dao.TestRepository; import org.sid.model.Categorie; import org.sid.model.Question; import org.sid.model.Recruteur; import org.sid.model.Test; import org.sid.service.RecruteurService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Example; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service @Transactional public class RecruteurServiceImpl implements RecruteurService { @Autowired private RecruteurRepository recruteurRepository; @Autowired private CategorieRepository categorieRepository; @Autowired private QuestionRepository questionRepository; @Autowired private TestRepository testRepository; @Override public List<Categorie> findAllCategories(String email) { Recruteur recruteur = recruteurRepository.findByEmail(email); return recruteur.getCategories(); } @Override public List<Question> findQuestionsByCategorie(String email, long idCat) { Recruteur recruteur = recruteurRepository.findByEmail(email); Categorie categorie = categorieRepository.findById(idCat).get(); int index = recruteur.getCategories().indexOf(categorie); if(index!=-1) return categorie.getQuestions(); return null; } @Override public Categorie addCategorie(String email, String libelle) { Recruteur recruteur = recruteurRepository.findByEmail(email); Categorie categorie = new Categorie(); categorie.setLibelle(libelle); categorieRepository.save(categorie); recruteur.addCategorie(categorie); return categorie; } @Override public Question addQuestion(long idCategorie, String titre) { Categorie categorie = categorieRepository.getOne(idCategorie); Question question = new Question(); question.setTitre(titre); questionRepository.save(question); categorie.addQuestion(question); return question; } @Override public void addTest(String email, Test test) { Recruteur recruteur = recruteurRepository.findByEmail(email); testRepository.save(test); recruteur.getTestes().add(test); } }
[ "ouaal.yassine@gmail.com" ]
ouaal.yassine@gmail.com
cc06d8abb08c9516619f32cf611541395653e26b
2dcc440fa85d07e225104f074bcf9f061fe7a7ae
/gameserver/src/main/java/org/mmocore/gameserver/network/lineage/serverpackets/PartySmallWindowAdd.java
3b3d99104373622bb0409d69ab2cb87acde62869
[]
no_license
VitaliiBashta/L2Jts
a113bc719f2d97e06db3e0b028b2adb62f6e077a
ffb95b5f6e3da313c5298731abc4fcf4aea53fd5
refs/heads/master
2020-04-03T15:48:57.786720
2018-10-30T17:34:29
2018-10-30T17:35:04
155,378,710
0
3
null
null
null
null
UTF-8
Java
false
false
1,241
java
package org.mmocore.gameserver.network.lineage.serverpackets; import org.mmocore.gameserver.model.team.Party; import org.mmocore.gameserver.network.lineage.components.GameServerPacket; import org.mmocore.gameserver.object.Player; public class PartySmallWindowAdd extends GameServerPacket { private final int objectId; private final int lootType; private final PartySmallWindowAll.PartySmallWindowMemberInfo member; public PartySmallWindowAdd(final Party party, final Player member) { objectId = party.getGroupLeader().getObjectId(); lootType = party.getLootDistribution(); this.member = new PartySmallWindowAll.PartySmallWindowMemberInfo(member); } @Override protected final void writeData() { writeD(objectId); // c3 writeD(lootType); writeD(member.id); writeS(member.name); writeD(member.curCp); writeD(member.maxCp); writeD(member.curHp); writeD(member.maxHp); writeD(member.curMp); writeD(member.maxMp); writeD(member.level); writeD(member.class_id); writeD(0);//sex writeD(member.race_id); writeD(member.isDisguised); writeD(member.dominionId); } }
[ "Vitalii.Bashta@accenture.com" ]
Vitalii.Bashta@accenture.com
05eafd5c086d662e2eeccade7359ab4fe291f21c
e415396de49958853719091c89223abbec4fe132
/self-study-jdk/src/main/java/com/study/selfs/jdk5/util/concurrent/cyclicbarrier/CyclicBarrierDemo.java
537f4b8da3f3749391bfa27b0b60b9f473f652bb
[]
no_license
FanYingBo/Learning-program-gupao-or-myself
4ff17cd2550e8341a59627af31d9849f67b3c761
712205f2468d47e1486edecff8b660ef3842b59e
refs/heads/master
2023-03-15T22:54:12.424385
2022-09-20T08:40:58
2022-09-20T08:40:58
175,381,198
9
12
null
2023-03-08T17:34:11
2019-03-13T08:47:56
Java
UTF-8
Java
false
false
2,112
java
package com.study.selfs.jdk5.util.concurrent.cyclicbarrier; import java.util.concurrent.*; /** * 栅栏 * 一种闭锁, 能阻塞一组线程直到整个事件发生,栅栏和闭锁的区别在于,所有线程必须达到栅栏位置才能继续执行 * 闭锁用于等待事件,栅栏用于等待其他线程 * {@link CyclicBarrier} 可以使一定数量的参与方反复地在栅栏位置汇集,并行迭代算法中非常有用 */ public class CyclicBarrierDemo { public static void main(String[] args) { ExecutorService executorService = Executors.newFixedThreadPool(2); CyclicBarrier cyclicBarrier = new CyclicBarrier(2, ()->{ System.out.println("其他线程已执行完毕,合并执行结果"); }); executorService.submit(()->{ try { System.out.println("线程:A" +" 走到栅栏前"); cyclicBarrier.await(); System.out.println("线程:A" +" 退出"); } catch (Exception e) { e.printStackTrace(); } }); executorService.submit(()->{ try { System.out.println("线程:B" +" 走到栅栏前"); cyclicBarrier.await(); System.out.println("线程:B" +" 退出"); } catch (Exception e) { e.printStackTrace(); } }); executorService.submit(()->{ try { System.out.println("线程:C" +" 走到栅栏前"); cyclicBarrier.await(); System.out.println("线程:C"+" 退出"); } catch (Exception e) { e.printStackTrace(); } }); executorService.submit(()->{ try { System.out.println("线程:D" +" 走到栅栏前"); cyclicBarrier.await(); System.out.println("线程:D" +" 退出"); } catch (Exception e) { e.printStackTrace(); } }); executorService.shutdown(); } }
[ "15216814563@163.com" ]
15216814563@163.com
4cbffd37d2f55b0dedf5c2c5e30541e110ec72bc
fe03c167ae276a10ae90a4b965aef02938037e35
/cardboard-android-compare/cardboard-old/HeadMountedDisplay.java
080dbf960b987960e253fff07c01c26f7ff053ff
[]
no_license
wuwulailai/cardboardvr-ios
39aa7bfe403e1580aca1f008d96de01766523320
70e7f7718e7a9b16c61c33fe324a9917e8692cc5
refs/heads/master
2021-01-10T01:52:27.384213
2016-02-03T07:26:46
2016-02-03T07:26:46
50,972,857
2
1
null
null
null
null
UTF-8
Java
false
false
1,888
java
/* * Copyright 2014 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.vrtoolkit.cardboard; import android.view.Display; /** * Encapsulates the parameters describing a head mounted stereoscopic display device composed of a screen and a Cardboard-compatible device holding it. */ public class HeadMountedDisplay { private ScreenParams mScreen; private CardboardDeviceParams mCardboard; public HeadMountedDisplay(Display display) { mScreen = new ScreenParams(display); mCardboard = new CardboardDeviceParams(); } public HeadMountedDisplay(HeadMountedDisplay hmd) { mScreen = new ScreenParams(hmd.mScreen); mCardboard = new CardboardDeviceParams(hmd.mCardboard); } public void setScreen(ScreenParams screen) { mScreen = new ScreenParams(screen); } public ScreenParams getScreen() { return mScreen; } public void setCardboard(CardboardDeviceParams cardboard) { mCardboard = new CardboardDeviceParams(cardboard); } public CardboardDeviceParams getCardboard() { return mCardboard; } public boolean equals(Object other) { if (other == null) return false; if (other == this) return true; if (!(other instanceof HeadMountedDisplay)) return false; HeadMountedDisplay o = (HeadMountedDisplay)other; return (mScreen.equals(o.mScreen)) && (mCardboard.equals(o.mCardboard)); } }
[ "908715560@qq.com" ]
908715560@qq.com
f205a8f6c83fdf79fa6fc7ef9776d170e9db4aa5
447520f40e82a060368a0802a391697bc00be96f
/apks/comparison_androart/ro.btrl.pay/source/o/oC.java
75bab5ef332fb541ed28806087e5e14e4048c1e9
[ "Apache-2.0" ]
permissive
iantal/AndroidPermissions
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
d623b732734243590b5f004d167e542e2e2ae249
refs/heads/master
2023-07-19T01:29:26.689186
2019-09-30T19:01:42
2019-09-30T19:01:42
107,239,248
0
0
Apache-2.0
2023-07-16T07:41:38
2017-10-17T08:22:57
null
UTF-8
Java
false
false
7,480
java
package o; import java.io.Closeable; import java.io.Flushable; import java.io.IOException; import java.io.Writer; public class oC implements Closeable, Flushable { private static final String[] ˊ = new String['€']; private static final String[] ˎ; private String ʻ; private boolean ʼ; private boolean ʽ; private boolean ˊॱ; private final Writer ˋ; private int[] ˏ = new int[32]; private int ॱ = 0; private String ॱॱ; private String ᐝ; static { int i = 0; while (i <= 31) { ˊ[i] = String.format("\\u%04x", new Object[] { Integer.valueOf(i) }); i += 1; } ˊ[34] = "\\\""; ˊ[92] = "\\\\"; ˊ[9] = "\\t"; ˊ[8] = "\\b"; ˊ[10] = "\\n"; ˊ[13] = "\\r"; ˊ[12] = "\\f"; ˎ = (String[])ˊ.clone(); ˎ[60] = "\\u003c"; ˎ[62] = "\\u003e"; ˎ[38] = "\\u0026"; ˎ[61] = "\\u003d"; ˎ[39] = "\\u0027"; } public oC(Writer paramWriter) { ॱ(6); this.ʻ = ":"; this.ˊॱ = true; if (paramWriter == null) { throw new NullPointerException("out == null"); } this.ˋ = paramWriter; } private void ʻ() { if (this.ᐝ != null) { ˊॱ(); ˋ(this.ᐝ); this.ᐝ = null; } } private void ˊॱ() { int i = ˋ(); if (i == 5) { this.ˋ.write(44); } else if (i != 3) { throw new IllegalStateException("Nesting problem."); } ॱˊ(); ˋ(4); } private int ˋ() { if (this.ॱ == 0) { throw new IllegalStateException("JsonWriter is closed."); } return this.ˏ[(this.ॱ - 1)]; } private void ˋ(int paramInt) { this.ˏ[(this.ॱ - 1)] = paramInt; } private void ˋ(String paramString) { String[] arrayOfString; if (this.ʼ) { arrayOfString = ˎ; } else { arrayOfString = ˊ; } this.ˋ.write("\""); int j = 0; int m = paramString.length(); int i = 0; while (i < m) { int n = paramString.charAt(i); String str1; if (n < 128) { String str2 = arrayOfString[n]; str1 = str2; if (str2 == null) { k = j; break label143; } } else if (n == 8232) { str1 = "\\u2028"; } else { k = j; if (n != 8233) { break label143; } str1 = "\\u2029"; } if (j < i) { this.ˋ.write(paramString, j, i - j); } this.ˋ.write(str1); int k = i + 1; label143: i += 1; j = k; } if (j < m) { this.ˋ.write(paramString, j, m - j); } this.ˋ.write("\""); } private void ˋॱ() { switch (ˋ()) { default: break; case 7: if (!this.ʽ) { throw new IllegalStateException("JSON must have only one top-level value."); } case 6: ˋ(7); return; case 1: ˋ(2); ॱˊ(); return; case 2: this.ˋ.append(','); ॱˊ(); return; case 4: this.ˋ.append(this.ʻ); ˋ(5); return; } throw new IllegalStateException("Nesting problem."); } private oC ˎ(int paramInt, String paramString) { ˋॱ(); ॱ(paramInt); this.ˋ.write(paramString); return this; } private oC ˏ(int paramInt1, int paramInt2, String paramString) { int i = ˋ(); if ((i != paramInt2) && (i != paramInt1)) { throw new IllegalStateException("Nesting problem."); } if (this.ᐝ != null) { throw new IllegalStateException("Dangling name: " + this.ᐝ); } this.ॱ -= 1; if (i == paramInt2) { ॱˊ(); } this.ˋ.write(paramString); return this; } private void ॱ(int paramInt) { if (this.ॱ == this.ˏ.length) { arrayOfInt = new int[this.ॱ * 2]; System.arraycopy(this.ˏ, 0, arrayOfInt, 0, this.ॱ); this.ˏ = arrayOfInt; } int[] arrayOfInt = this.ˏ; int i = this.ॱ; this.ॱ = (i + 1); arrayOfInt[i] = paramInt; } private void ॱˊ() { if (this.ॱॱ == null) { return; } this.ˋ.write("\n"); int i = 1; int j = this.ॱ; while (i < j) { this.ˋ.write(this.ॱॱ); i += 1; } } public void close() { this.ˋ.close(); int i = this.ॱ; if ((i > 1) || ((i == 1) && (this.ˏ[(i - 1)] != 7))) { throw new IOException("Incomplete document"); } this.ॱ = 0; } public void flush() { if (this.ॱ == 0) { throw new IllegalStateException("JsonWriter is closed."); } this.ˋ.flush(); } public final boolean ʼ() { return this.ʼ; } public final boolean ʽ() { return this.ˊॱ; } public oC ˊ() { return ˏ(1, 2, "]"); } public final void ˊ(String paramString) { if (paramString.length() == 0) { this.ॱॱ = null; this.ʻ = ":"; return; } this.ॱॱ = paramString; this.ʻ = ": "; } public final void ˊ(boolean paramBoolean) { this.ˊॱ = paramBoolean; } public oC ˋ(Boolean paramBoolean) { if (paramBoolean == null) { return ॱॱ(); } ʻ(); ˋॱ(); Writer localWriter = this.ˋ; if (paramBoolean.booleanValue()) { paramBoolean = "true"; } else { paramBoolean = "false"; } localWriter.write(paramBoolean); return this; } public oC ˎ() { return ˏ(3, 5, "}"); } public oC ˎ(String paramString) { if (paramString == null) { throw new NullPointerException("name == null"); } if (this.ᐝ != null) { throw new IllegalStateException(); } if (this.ॱ == 0) { throw new IllegalStateException("JsonWriter is closed."); } this.ᐝ = paramString; return this; } public final void ˎ(boolean paramBoolean) { this.ʽ = paramBoolean; } public oC ˏ() { ʻ(); return ˎ(3, "{"); } public oC ˏ(Number paramNumber) { if (paramNumber == null) { return ॱॱ(); } ʻ(); String str = paramNumber.toString(); if ((!this.ʽ) && ((str.equals("-Infinity")) || (str.equals("Infinity")) || (str.equals("NaN")))) { throw new IllegalArgumentException("Numeric values must be finite, but was " + paramNumber); } ˋॱ(); this.ˋ.append(str); return this; } public final void ˏ(boolean paramBoolean) { this.ʼ = paramBoolean; } public oC ॱ() { ʻ(); return ˎ(1, "["); } public oC ॱ(long paramLong) { ʻ(); ˋॱ(); this.ˋ.write(Long.toString(paramLong)); return this; } public oC ॱ(String paramString) { if (paramString == null) { return ॱॱ(); } ʻ(); ˋॱ(); ˋ(paramString); return this; } public oC ॱ(boolean paramBoolean) { ʻ(); ˋॱ(); Writer localWriter = this.ˋ; String str; if (paramBoolean) { str = "true"; } else { str = "false"; } localWriter.write(str); return this; } public oC ॱॱ() { if (this.ᐝ != null) { if (this.ˊॱ) { ʻ(); } else { this.ᐝ = null; return this; } } ˋॱ(); this.ˋ.write("null"); return this; } public boolean ᐝ() { return this.ʽ; } }
[ "antal.micky@yahoo.com" ]
antal.micky@yahoo.com
77d7cf913dca87fa5068dc4ac4535b22b17133a3
0883b730803cc968cb2d07843f3d3987ff8b67ac
/app/src/androidTest/java/mobile/cem/moviesengine/ApplicationTest.java
43941fcbd9f14d3664c1de2ff85554b19d020059
[]
no_license
cemtkklc/Movie-S-Engine
24c610d9b5df0ee4af7ff3ea38085c9df453c939
93186a4f1dcddfd41e7636df3acd69ecffc6fca1
refs/heads/master
2020-03-25T20:44:55.663937
2018-08-09T11:35:53
2018-08-09T11:35:53
144,143,884
0
0
null
null
null
null
UTF-8
Java
false
false
354
java
package mobile.cem.moviesengine; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(Application.class); } }
[ "cemtkklc@hotmail.com" ]
cemtkklc@hotmail.com
a41464ec38a8a76073af6aeadca6670e52b103a0
3f08dbef8d00ac9af760e69b88cf3cf6104e102e
/shipments-api/src/main/java/org/karabacode/shipmentapi/ShipmentsApi.java
0ec9709b922051b53951a95d3ed7cba32560aece
[]
no_license
karabacode/shipments
226f71cb0da0ebe5c2b08922056fb145217c9f57
3775c557f72c429377a6e048f2b93041aec6c96d
refs/heads/master
2023-04-01T00:25:54.775701
2020-05-20T10:29:24
2020-05-20T10:29:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
322
java
package org.karabacode.shipmentapi; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ShipmentsApi { public static void main(String[] args) { SpringApplication.run(ShipmentsApi.class, args); } }
[ "lvilla@mgpsa.com" ]
lvilla@mgpsa.com
6f78899ceabfb5f668041edf8f09488015225c45
e429b7e70fa8f5e6eba73a2fadb9dc815f6a9228
/Day10/passengerDetails.java
7d2d317facb8b74b0eed0bb89a1b6de665d28733
[]
no_license
Prem3997/dxc
966b6c287029157dfbe86be53849395f53fb58be
2f92bf344674674a014f4a20b6cc820ea8310b43
refs/heads/master
2022-12-12T20:01:35.784499
2020-02-14T05:12:33
2020-02-14T05:12:33
208,713,331
0
0
null
2022-12-11T11:23:19
2019-09-16T04:59:40
Java
UTF-8
Java
false
false
1,098
java
public class passengerDetails { String pnrNumber; String mobileNumber; String passengerName; int fare; int cgst=100; int sgst=100; public void bookTicket() { pnrNumber="1234959"; mobileNumber="984738982"; passengerName="Prem Balaji"; fare=1200+cgst+sgst; System.out.println("Hi! "+passengerName+"! You have Booked the Ticket"); System.out.println("Your Mobile Number"+mobileNumber+"is added."); System.out.println("Total Fare is "+fare); } public void cancelTicket() { pnrNumber="123493"; mobileNumber="983273892"; passengerName="Roshan Thomas"; fare=10000+cgst+sgst; System.out.println("Hi! "+passengerName+"! You have Booked the Ticket"); System.out.println("Your Mobile Number"+mobileNumber+"is added."); System.out.println("Total Fare is "+fare); } public static void main(String[] args) { // TODO Auto-generated method stub passengerDetails details=new passengerDetails(); details.bookTicket(); System.out.println("----------------------------------------------------"); details.cancelTicket(); } }
[ "noreply@github.com" ]
noreply@github.com
e5c25cc273d0fdda76cd9e40202334dc01efe23b
e68a3d3147d46daad66f44c0b33b5c44d4c0d2a3
/Core/src/main/java/se/claremont/taf/core/support/TafUserInfoImpl.java
1190872c289bf3cec7e3192fd60ce167056c9a29
[ "Apache-2.0" ]
permissive
claremontqualitymanagement/TestAutomationFramework
742af2edea1b9199673a3efa099f02473dafb256
5ecacc5e6d9e9b7046150c1570bd6c53fdd9d3b4
refs/heads/development
2022-08-10T18:44:16.528076
2020-02-04T12:39:16
2020-02-04T12:39:16
68,586,699
16
8
Apache-2.0
2022-05-20T20:51:37
2016-09-19T08:46:33
Java
UTF-8
Java
false
false
3,134
java
package se.claremont.taf.core.support; import java.net.InetAddress; import java.net.UnknownHostException; /** * Created by magnusolsson on 2016-12-15. * * User info container for who is running the TAF. * */ @SuppressWarnings("AnonymousHasLambdaAlternative") public class TafUserInfoImpl implements TafUserInfo { //create localThread of the current thread private static final ThreadLocal<TafUserInfoImpl> myTafUserInfo = new ThreadLocal<TafUserInfoImpl>() { @Override protected TafUserInfoImpl initialValue() { return new TafUserInfoImpl(); } }; //get instace of the object and access all the methods of it public static TafUserInfoImpl getInstance(){ return myTafUserInfo.get(); } @Override public String getUserAccountName(){ try{ return System.getProperty( "user.name" ); } catch (Exception e){ return ""; } } @Override public String getUserHomeDirectory(){ try{ return System.getProperty( "user.home" ); } catch (Exception e){ return ""; } } @Override public String getUserWorkingDirectory(){ try{ return System.getProperty( "user.dir" ); } catch (Exception e){ return ""; } } @Override public String getOperatingSystemArchitecture(){ try{ return System.getProperty( "os.arch" ); } catch (Exception e){ return ""; } } @Override public String getOperatingSystemName(){ try{ return System.getProperty( "os.name" ); } catch (Exception e){ return ""; } } @Override public String getOperatingSystemVersion(){ try{ return System.getProperty( "os.version" ); } catch (Exception e){ return ""; } } @Override public String getJavaVersion(){ try{ return System.getProperty( "java.version" ); } catch (Exception e){ return ""; } } @Override public String getJavaHome(){ try{ return System.getProperty( "java.home" ); } catch (Exception e){ return ""; } } @Override public String getHostName(){ try { return InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException e) { e.printStackTrace(); return ""; } } @Override public String getCanonicalHostName(){ try { return InetAddress.getLocalHost().getCanonicalHostName(); } catch (UnknownHostException e) { e.printStackTrace(); return ""; } } @Override public String getHostAdress(){ try { return InetAddress.getLocalHost().getHostAddress(); } catch (UnknownHostException e) { e.printStackTrace(); return ""; } } }
[ "Fingal95" ]
Fingal95
8a8334a4a245b8c55b61d7fcaaea7e48fecc17db
a2d47e712a33f6810c6bbbe2126790a324490328
/flume/apache-flume-1.5.0-src/flume-ng-channels/flume-file-channel/src/test/java/org/apache/flume/channel/file/TestEventQueueBackingStoreFactory.java
10e6ecde2314901f399407d535bb7ef154257539
[]
no_license
bolixin/blog
cd30377b175a230884aa96cc55088ba0d92c3eee
e2ef566f77faa8157345caad9f95669ff147bf92
refs/heads/master
2016-08-11T20:28:37.473284
2015-11-16T02:10:33
2015-11-16T02:10:33
45,195,181
0
0
null
null
null
null
UTF-8
Java
false
false
11,630
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.flume.channel.file; import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Arrays; import java.util.Collections; import java.util.List; import junit.framework.Assert; import org.apache.commons.io.FileUtils; import org.junit.After; import org.junit.Before; import org.junit.Test; import com.google.common.collect.Lists; import com.google.common.io.Files; import com.google.protobuf.InvalidProtocolBufferException; import java.io.FileOutputStream; import java.io.RandomAccessFile; import java.util.Random; import org.apache.flume.channel.file.proto.ProtosFactory; public class TestEventQueueBackingStoreFactory { static final List<Long> pointersInTestCheckpoint = Arrays.asList(new Long[]{ 8589936804L, 4294969563L, 12884904153L, 8589936919L, 4294969678L, 12884904268L, 8589937034L, 4294969793L, 12884904383L }); File baseDir; File checkpoint; File inflightTakes; File inflightPuts; File queueSetDir; @Before public void setup() throws IOException { baseDir = Files.createTempDir(); checkpoint = new File(baseDir, "checkpoint"); inflightTakes = new File(baseDir, "takes"); inflightPuts = new File(baseDir, "puts"); queueSetDir = new File(baseDir, "queueset"); TestUtils.copyDecompressed("fileformat-v2-checkpoint.gz", checkpoint); } @After public void teardown() { FileUtils.deleteQuietly(baseDir); } @Test public void testWithNoFlag() throws Exception { verify(EventQueueBackingStoreFactory.get(checkpoint, 10, "test"), Serialization.VERSION_3, pointersInTestCheckpoint); } @Test public void testWithFlag() throws Exception { verify(EventQueueBackingStoreFactory.get(checkpoint, 10, "test", true), Serialization.VERSION_3, pointersInTestCheckpoint); } @Test public void testNoUprade() throws Exception { verify(EventQueueBackingStoreFactory.get(checkpoint, 10, "test", false), Serialization.VERSION_2, pointersInTestCheckpoint); } @Test(expected = BadCheckpointException.class) public void testDecreaseCapacity() throws Exception { Assert.assertTrue(checkpoint.delete()); EventQueueBackingStore backingStore = EventQueueBackingStoreFactory. get(checkpoint, 10, "test"); backingStore.close(); EventQueueBackingStoreFactory.get(checkpoint, 9, "test"); Assert.fail(); } @Test(expected = BadCheckpointException.class) public void testIncreaseCapacity() throws Exception { Assert.assertTrue(checkpoint.delete()); EventQueueBackingStore backingStore = EventQueueBackingStoreFactory. get(checkpoint, 10, "test"); backingStore.close(); EventQueueBackingStoreFactory.get(checkpoint, 11, "test"); Assert.fail(); } @Test public void testNewCheckpoint() throws Exception { Assert.assertTrue(checkpoint.delete()); verify(EventQueueBackingStoreFactory.get(checkpoint, 10, "test", false), Serialization.VERSION_3, Collections.<Long>emptyList()); } @Test(expected = BadCheckpointException.class) public void testCheckpointBadVersion() throws Exception { RandomAccessFile writer = new RandomAccessFile(checkpoint, "rw"); try { EventQueueBackingStore backingStore = EventQueueBackingStoreFactory. get(checkpoint, 10, "test"); backingStore.close(); writer.seek( EventQueueBackingStoreFile.INDEX_VERSION * Serialization.SIZE_OF_LONG); writer.writeLong(94L); writer.getFD().sync(); backingStore = EventQueueBackingStoreFactory.get(checkpoint, 10, "test"); } finally { writer.close(); } } @Test(expected = BadCheckpointException.class) public void testIncompleteCheckpoint() throws Exception { RandomAccessFile writer = new RandomAccessFile(checkpoint, "rw"); try { EventQueueBackingStore backingStore = EventQueueBackingStoreFactory. get(checkpoint, 10, "test"); backingStore.close(); writer.seek( EventQueueBackingStoreFile.INDEX_CHECKPOINT_MARKER * Serialization.SIZE_OF_LONG); writer.writeLong(EventQueueBackingStoreFile.CHECKPOINT_INCOMPLETE); writer.getFD().sync(); backingStore = EventQueueBackingStoreFactory.get(checkpoint, 10, "test"); } finally { writer.close(); } } @Test(expected = BadCheckpointException.class) public void testCheckpointVersionNotEqualToMeta() throws Exception { RandomAccessFile writer = new RandomAccessFile(checkpoint, "rw"); try { EventQueueBackingStore backingStore = EventQueueBackingStoreFactory. get(checkpoint, 10, "test"); backingStore.close(); writer.seek( EventQueueBackingStoreFile.INDEX_VERSION * Serialization.SIZE_OF_LONG); writer.writeLong(2L); writer.getFD().sync(); backingStore = EventQueueBackingStoreFactory.get(checkpoint, 10, "test"); } finally { writer.close(); } } @Test(expected = BadCheckpointException.class) public void testCheckpointVersionNotEqualToMeta2() throws Exception { FileOutputStream os = null; try { EventQueueBackingStore backingStore = EventQueueBackingStoreFactory. get(checkpoint, 10, "test"); backingStore.close(); Assert.assertTrue(checkpoint.exists()); Assert.assertTrue(Serialization.getMetaDataFile(checkpoint).length() != 0); FileInputStream is = new FileInputStream(Serialization.getMetaDataFile(checkpoint)); ProtosFactory.Checkpoint meta = ProtosFactory.Checkpoint.parseDelimitedFrom(is); Assert.assertNotNull(meta); is.close(); os = new FileOutputStream( Serialization.getMetaDataFile(checkpoint)); meta.toBuilder().setVersion(2).build().writeDelimitedTo(os); os.flush(); backingStore = EventQueueBackingStoreFactory.get(checkpoint, 10, "test"); } finally { os.close(); } } @Test(expected = BadCheckpointException.class) public void testCheckpointOrderIdNotEqualToMeta() throws Exception { RandomAccessFile writer = new RandomAccessFile(checkpoint, "rw"); try { EventQueueBackingStore backingStore = EventQueueBackingStoreFactory. get(checkpoint, 10, "test"); backingStore.close(); writer.seek( EventQueueBackingStoreFile.INDEX_WRITE_ORDER_ID * Serialization.SIZE_OF_LONG); writer.writeLong(2L); writer.getFD().sync(); backingStore = EventQueueBackingStoreFactory.get(checkpoint, 10, "test"); } finally { writer.close(); } } @Test(expected = BadCheckpointException.class) public void testCheckpointOrderIdNotEqualToMeta2() throws Exception { FileOutputStream os = null; try { EventQueueBackingStore backingStore = EventQueueBackingStoreFactory. get(checkpoint, 10, "test"); backingStore.close(); Assert.assertTrue(checkpoint.exists()); Assert.assertTrue(Serialization.getMetaDataFile(checkpoint).length() != 0); FileInputStream is = new FileInputStream(Serialization.getMetaDataFile(checkpoint)); ProtosFactory.Checkpoint meta = ProtosFactory.Checkpoint.parseDelimitedFrom(is); Assert.assertNotNull(meta); is.close(); os = new FileOutputStream( Serialization.getMetaDataFile(checkpoint)); meta.toBuilder().setWriteOrderID(1).build().writeDelimitedTo(os); os.flush(); backingStore = EventQueueBackingStoreFactory.get(checkpoint, 10, "test"); } finally { os.close(); } } @Test(expected = BadCheckpointException.class) public void testTruncateMeta() throws Exception { EventQueueBackingStore backingStore = EventQueueBackingStoreFactory. get(checkpoint, 10, "test"); backingStore.close(); Assert.assertTrue(checkpoint.exists()); File metaFile = Serialization.getMetaDataFile(checkpoint); Assert.assertTrue(metaFile.length() != 0); RandomAccessFile writer = new RandomAccessFile(metaFile, "rw"); writer.setLength(0); writer.getFD().sync(); writer.close(); backingStore = EventQueueBackingStoreFactory.get(checkpoint, 10, "test"); } @Test(expected = InvalidProtocolBufferException.class) public void testCorruptMeta() throws Throwable { EventQueueBackingStore backingStore = EventQueueBackingStoreFactory. get(checkpoint, 10, "test"); backingStore.close(); Assert.assertTrue(checkpoint.exists()); File metaFile = Serialization.getMetaDataFile(checkpoint); Assert.assertTrue(metaFile.length() != 0); RandomAccessFile writer = new RandomAccessFile(metaFile, "rw"); writer.seek(10); writer.writeLong(new Random().nextLong()); writer.getFD().sync(); writer.close(); try { backingStore = EventQueueBackingStoreFactory.get(checkpoint, 10, "test"); } catch (BadCheckpointException ex) { throw ex.getCause(); } } private void verify(EventQueueBackingStore backingStore, long expectedVersion, List<Long> expectedPointers) throws Exception { FlumeEventQueue queue = new FlumeEventQueue(backingStore, inflightTakes, inflightPuts, queueSetDir); List<Long> actualPointers = Lists.newArrayList(); FlumeEventPointer ptr; while ((ptr = queue.removeHead(0L)) != null) { actualPointers.add(ptr.toLong()); } Assert.assertEquals(expectedPointers, actualPointers); Assert.assertEquals(10, backingStore.getCapacity()); DataInputStream in = new DataInputStream(new FileInputStream(checkpoint)); long actualVersion = in.readLong(); Assert.assertEquals(expectedVersion, actualVersion); in.close(); } }
[ "bolixinblx@gmail.com" ]
bolixinblx@gmail.com
d8765fb8bc7fb28b4d104fcb3533439fab9e85dc
d523206fce46708a6fe7b2fa90e81377ab7b6024
/android/support/annotation/IdRes.java
6c815fccbed815b82dbdd5ed5747b2a29f68b9dc
[]
no_license
BlitzModder/BlitzJava
0ee94cc069dc4b7371d1399ff5575471bdc88aac
6c6d71d2847dfd5f9f4f7c716cd820aeb7e45f2c
refs/heads/master
2021-06-11T15:04:05.571324
2017-02-04T16:04:55
2017-02-04T16:04:55
77,459,517
1
2
null
null
null
null
UTF-8
Java
false
false
706
java
package android.support.annotation; import java.lang.annotation.Annotation; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Documented @Retention(RetentionPolicy.CLASS) @Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER, java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.LOCAL_VARIABLE}) public @interface IdRes {} /* Location: /Users/subdiox/Downloads/dex2jar-2.0/net.wargaming.wot.blitz-dex2jar.jar!/android/support/annotation/IdRes.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "subdiox@gmail.com" ]
subdiox@gmail.com
0c3a2be4385708473562e6756f78c099b999c90d
df6c8e291fdc52f9dc5b81857b7fff1c193339dc
/src/java/controller/CheckOutServ.java
5f17a78273a6fcc75dc251162352bf7366fc552a
[]
no_license
hoang-kim-duc/jshop_eCommercialWebsite
2edc4cc3641ca327bff5d3a1a3cc21d42eeae3b7
633261244db6b72b494cae772143993e2a07ea1c
refs/heads/main
2023-02-05T21:17:33.406301
2020-12-27T10:17:40
2020-12-27T10:17:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,991
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 controller; import DAL.ItemsInOrderDAO; import DAL.OrderDAO; import DAL.StatusDAO; import DAL.UserDAO; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import model.Item; import model.ItemsInOrder; import model.Order; import model.Status; import model.User; /** * * @author HKDUC */ public class CheckOutServ extends HttpServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { new CookieProcess().checkUserLogin(request, response); HttpSession session = request.getSession(); String username = (String) session.getAttribute("username"); User user = new UserDAO().getUser(username); request.setAttribute("user", user); request.getRequestDispatcher("checkout.jsp").forward(request,response); } @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setCharacterEncoding("UTF-8"); new CookieProcess().checkUserLogin(request, response); HttpSession session = request.getSession(); Order cart = new OrderDAO().getCart((String) session.getAttribute("username")); //Update price to itemsInOrder ArrayList<ItemsInOrder> cartInfo = cart.getOrderInfo(); ArrayList<Item> items = cart.getItems(); ItemsInOrderDAO db = new ItemsInOrderDAO(); int sum = 0; for (int i=0;i<items.size();i++){ ArrayList<Status> statusList = items.get(i).getStatusList(); ItemsInOrder inf = cartInfo.get(i); Status status = statusList.get(inf.getConditionNo()-1); inf.setPrice(status.getPrice()); db.updateItemsInCart(inf); sum += (inf.getPrice() * inf.getQuantity()); status.setQuantity(status.getQuantity()-inf.getQuantity()); new StatusDAO().updateStatus(status); } //set Attribute for order cart.setTotal_price(sum); cart.setProcessStepNo(2); cart.setCreated_date(new java.util.Date()); cart.setRecipientName(request.getParameter("receipientName")); cart.setAddress(request.getParameter("receipientAddress")); cart.setRecipientPhone(request.getParameter("receipientPhone")); new OrderDAO().updateOrder(cart); response.sendRedirect("list"); } @Override public String getServletInfo() { return "Short description"; }// </editor-fold> }
[ "duchk1@fsoft.com.vn" ]
duchk1@fsoft.com.vn
c26f4857290d759e0fd825cf8e0d81890c12dd62
284c5125b4c32d40de2c600d0914d32ceb327bf2
/src/main/java/pageObjects/landAndBuildings/academies/Academies_Impairments.java
10dcfb6415e82fd55682b3942c4ab5094b245472
[]
no_license
shaziachouglay/AR2_3
acebd7c4ad56e57e0b8de26b4183706b57684df1
9f859e5c74d0a2c0a3a350c83c296950995ca71d
refs/heads/master
2022-09-15T15:17:07.384835
2018-05-22T14:25:57
2018-05-22T14:25:57
211,291,877
0
0
null
2022-09-01T23:13:26
2019-09-27T10:10:08
HTML
UTF-8
Java
false
false
7,010
java
package pageObjects.landAndBuildings.academies; import org.openqa.selenium.*; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.How; import utilityClasses.CommonMethods; public class Academies_Impairments extends CommonMethods { private String pageName="LNB Academies Impairments "; @FindBy(xpath = "//div[@class='opa-main-panel']") private WebElement page_body; @FindBy(how= How.XPATH , using = "//div[@class='opa-screen-title'][contains(.,'Impairment')]") private WebElement page_header; public boolean isHeaderPresentAndDisplayed(){ return isPageHeaderPresentAndDisplayed(page_header,pageName); } public void setValueInFieldByRowNameAndColumnName(RowConstants row, ColumnConstant column, String inputValue){ int rowIncrementer=0; int rowCount=0; int columnIncrementer=0; int columnCount=0; switch(row){ case OriginalPriorYearClosingBalance: rowCount=rowIncrementer+1; break; case AdjustmentMadeToOpeningBalance: rowCount=rowIncrementer+2; break; case ChargedInPeriod: rowCount=rowIncrementer+3; break; case ReleasedInPeriod: rowCount=rowIncrementer+4; break; case TransferredInOnExistingAcademiesLeavingTheTrust: rowCount=rowIncrementer+5; break; case TransferredOutOnExistingAcademiesLeavingTheTrust: rowCount=rowIncrementer+6; break; case AtCloseOfPeriod: rowCount=rowIncrementer+7; break; } switch (column){ case FreeholdLandAndBuildings: columnCount=columnIncrementer+1; break; case LeaseholdLandAndBuildings: columnCount=columnIncrementer+2; break; case LeaseholdImprovements: columnCount=columnIncrementer+3; break; case AssetUnderContruction: columnCount=columnIncrementer+4; break; case Total: columnCount=columnIncrementer+5; break; } try { waitForAjax(); WebElement tableElement = page_body.findElement(By.xpath(".//tr[" + rowCount + "]/td[" + columnCount + "]//div/input")); waitForElementToBeVisible(tableElement); cleanAndRebuildElement(tableElement); setValueInElementInputJS(tableElement, inputValue); hitKeyboardButton(tableElement, Keys.TAB); explicitWait(150); } catch (StaleElementReferenceException sere){ warn("StaleElementReferenceException Occurred in"+pageName); takeScreenshot(); sere.printStackTrace(); } catch (NoSuchElementException nsee){ warn("NoSuchElementException Occurred in"+pageName); nsee.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } info("The value set in row : "+ row+ " and column : "+column+" is : "+inputValue+" in "+pageName); } public String getValueByRowNameAndColumnName(RowConstants row, ColumnConstant column){ String extractedText = "Not Text Extracted !"; int rowIncrementer=0; int rowCount=0; int columnIncrementer=0; int columnCount=0; switch(row){ case OriginalPriorYearClosingBalance: rowCount=rowIncrementer+1; break; case AdjustmentMadeToOpeningBalance: rowCount=rowIncrementer+2; break; case ChargedInPeriod: rowCount=rowIncrementer+3; break; case ReleasedInPeriod: rowCount=rowIncrementer+4; break; case TransferredInOnExistingAcademiesLeavingTheTrust: rowCount=rowIncrementer+5; break; case TransferredOutOnExistingAcademiesLeavingTheTrust: rowCount=rowIncrementer+6; break; case AtCloseOfPeriod: rowCount=rowIncrementer+7; break; } switch (column){ case FreeholdLandAndBuildings: columnCount=columnIncrementer+1; break; case LeaseholdLandAndBuildings: columnCount=columnIncrementer+2; break; case LeaseholdImprovements: columnCount=columnIncrementer+3; break; case AssetUnderContruction: columnCount=columnIncrementer+4; break; case Total: columnCount=columnIncrementer+5; break; } try { WebElement tableElement = page_body.findElement(By.xpath(".//tr[" + rowCount + "]/td[" + columnCount + "]//div/input")); hitKeyboardButton(tableElement,Keys.TAB); explicitWait(500); waitForJStoLoad(); waitForElementToBeVisible(tableElement); waitForAjax(); cleanAndRebuildElement(tableElement); extractedText = getElementAttributeValueWithRetry(tableElement, "value"); info("The extracted value from row : "+ row+ " and column : "+column+" is : "+extractedText); } catch (NoSuchElementException nsee){ warn("NoSuchElementException Occurred in"+pageName); nsee.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } return extractedText; } public enum RowConstants{ OriginalPriorYearClosingBalance, AdjustmentMadeToOpeningBalance, ChargedInPeriod, ReleasedInPeriod, TransferredInOnExistingAcademiesLeavingTheTrust, TransferredOutOnExistingAcademiesLeavingTheTrust, AtCloseOfPeriod } public enum ColumnConstant{ FreeholdLandAndBuildings, LeaseholdLandAndBuildings, LeaseholdImprovements, AssetUnderContruction, Total } }
[ "aniket@vedaitconsulting.co.uk" ]
aniket@vedaitconsulting.co.uk
9389b036f3e0f05040a36dfaf878d39b1c7373af
fb84fb991eb4d6ca36b893c1598d4e24cd0261f1
/model/src/main/java/me/tinggu/model/PrettyGirl.java
8b0173990ff223cb47c525a0f19eac908938600b
[]
no_license
tinggu/MrBaozi
c4cd06eb047ca7fe735b5bbca2296c7475b8c48e
bfc160ef1124e855f6afae8f5d56820f3aefc519
refs/heads/master
2021-01-10T02:38:30.358257
2016-01-21T07:17:51
2016-01-21T07:17:51
49,554,880
0
0
null
null
null
null
UTF-8
Java
false
false
969
java
package me.tinggu.model; import java.util.List; public class PrettyGirl extends BaseModel { public int id; public String created_at; public Meta meta; public String url; public String channel; @Override public String toString() { return "PrettyGirl{" + "id=" + id + ", created_at='" + created_at + '\'' + ", meta=" + meta + ", url='" + url + '\'' + ", channel='" + channel + '\'' + '}'; } public class Meta { public String type; public int width; public int height; public List<String> colors; @Override public String toString() { return "Meta{" + "type='" + type + '\'' + ", width=" + width + ", height=" + height + ", colors=" + colors + '}'; } } }
[ "tinggu@126.com" ]
tinggu@126.com
6e53edc7fc2496c1afcf88a4f1c1ce713f0c36f7
65a56ebd1f6821cbfa8bbaf2629a25b596d2a139
/presentation/src/main/java/com/innopolis/sergeypinkevich/bakingapp/feature/detail/DetailPresenter.java
39d77613bc2e25fb7b815cb3f27122e47eacab47
[]
no_license
SergeyPinkevich/BakingApp
5dfa7b241f51419d4932b9f55c4e25770bb38613
122093b5905a6cb658ff3ed45588c4b7d88e6b63
refs/heads/master
2020-03-16T09:53:40.873541
2018-08-07T14:57:16
2018-08-07T14:57:16
132,624,835
0
0
null
null
null
null
UTF-8
Java
false
false
577
java
package com.innopolis.sergeypinkevich.bakingapp.feature.detail; import com.arellomobile.mvp.InjectViewState; import com.arellomobile.mvp.MvpPresenter; import com.innopolis.sergeypinkevich.domain.entity.Recipe; import javax.inject.Inject; /** * @author Sergey Pinkevich */ @InjectViewState public class DetailPresenter extends MvpPresenter<DetailView> { @Inject public DetailPresenter() {} public void handleIntentData(Recipe recipe) { getViewState().setToolbarTitle(recipe.getName()); getViewState().showRecipeDetailFragment(recipe); } }
[ "SAPinkevich.SBT@sberbank.ru" ]
SAPinkevich.SBT@sberbank.ru
a246862107158bf4040ae0da92705be86e7caff1
5e6abc6bca67514b4889137d1517ecdefcf9683a
/Server/src/main/java/plugin/interaction/item/GodswordDismantlePlugin.java
dd9d5c47ea42a95d8ef2e61b6510b618421ff232
[]
no_license
dginovker/RS-2009-317
88e6d773d6fd6814b28bdb469f6855616c71fc26
9d285c186656ace48c2c67cc9e4fb4aeb84411a4
refs/heads/master
2022-12-22T18:47:47.487468
2019-09-20T21:24:34
2019-09-20T21:24:34
208,949,111
2
2
null
2022-12-15T23:55:43
2019-09-17T03:15:17
Java
UTF-8
Java
false
false
1,915
java
package plugin.interaction.item; import org.gielinor.cache.def.impl.ItemDefinition; import org.gielinor.game.interaction.OptionHandler; import org.gielinor.game.node.Node; import org.gielinor.game.node.entity.player.Player; import org.gielinor.game.node.item.Item; import org.gielinor.rs2.plugin.Plugin; /** * Represents the godsword dismantle plugin. * @author Emperor * @version 1.0 */ public final class GodswordDismantlePlugin extends OptionHandler { /** * Represents the godsword blade item. */ private static final Item BLADE = new Item(11690); @Override public Plugin<Object> newInstance(Object arg) throws Throwable { ItemDefinition.forId(11694).getConfigurations().put("option:dismantle", this); ItemDefinition.forId(11696).getConfigurations().put("option:dismantle", this); ItemDefinition.forId(11698).getConfigurations().put("option:dismantle", this); ItemDefinition.forId(11700).getConfigurations().put("option:dismantle", this); return this; } @Override public boolean handle(final Player player, Node node, String option) { final Item item = (Item) node; if (item.getSlot() < 0 || player.getInventory().getNew(item.getSlot()).getId() != item.getId()) { return true; } final int freeSlot = player.getInventory().freeSlot(); if (freeSlot == -1) { player.getActionSender().sendMessage("Not enough space in your inventory!"); return true; } player.getActionSender().sendMessage("You detach the hilt from the blade."); player.getInventory().replace(null, item.getSlot(), false); player.getInventory().add(BLADE, new Item(11702 + (item.getId() - 11694))); return true; } @Override public boolean isWalk() { return false; } }
[ "dcress01@uoguelph.ca" ]
dcress01@uoguelph.ca
c8863d111c00adf30fd723155ca1b3c5a7bb1803
6397a1266080a78bb40f71ff5972201bd86fa5ba
/BookMyFlight_Backend/src/main/java/com/bookmyflight/exception/FlightException.java
88401bda0e9d3813100be3ce01b81d5bea6d4026
[]
no_license
SoftTech-Course/Flight-Reservation-System-Spring-boot-React-MySql
a1394d5793111054ae85152e1bed1d8e274eeeee
6b5bf3d58924950f51469c718214f1410e24b666
refs/heads/main
2023-08-21T01:43:14.048592
2021-09-30T13:11:38
2021-09-30T13:11:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
388
java
package com.bookmyflight.exception; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; public class FlightException extends Exception{ public FlightException() { super(); // TODO Auto-generated constructor stub } public FlightException(String message) { super(message); // TODO Auto-generated constructor stub } }
[ "noreply@github.com" ]
noreply@github.com
66131f5bee519ea8973fb345dc96507906ead870
ce4ead49af301038c19d10b23cb44d39611397e1
/onlinebanking/src/main/java/com/banking/in/App.java
5b84909aa7ecf371d03458947ebccf82a9ef6505
[]
no_license
Madhhav3/indusind_repo
16f4092e77ef57a75c108ff64dd2c6cb02c55efb
9df6136f715f93bbae0104ad975455933eda3867
refs/heads/master
2020-05-20T23:25:16.748590
2017-03-11T07:15:20
2017-03-11T07:15:20
84,544,496
0
0
null
null
null
null
UTF-8
Java
false
false
177
java
package com.banking.in; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } }
[ "madhav.mankena@gmail.com" ]
madhav.mankena@gmail.com
f954f6962fd28ff7d389a19b86f696244575e43e
8c98d69d7496f4fb5a8b103309a2a1b45b055f4a
/src/main/java/org/hoshi/spark/ping/service/UserWebService.java
78cef28de734ddbfef72c98cb6f18275ed31c360
[ "MIT" ]
permissive
robosoul/spark-ping
a14d0fdc458a229a523a69cafaaa242ece7c1c20
03ab8520416e8e41b9ca285bdbec98ea23fa4820
refs/heads/master
2021-01-12T11:48:57.838657
2016-10-24T17:09:30
2016-10-24T17:09:30
70,151,090
0
0
null
null
null
null
UTF-8
Java
false
false
4,588
java
package org.hoshi.spark.ping.service; import org.hoshi.spark.ping.model.Action; import org.hoshi.spark.ping.model.User; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import spark.Request; import spark.Response; import spark.Route; import spark.Spark; import spark.utils.IOUtils; import javax.servlet.http.HttpServletResponse; import java.io.FileInputStream; import java.nio.channels.FileLockInterruptionException; import static spark.Spark.get; import static spark.Spark.halt; import static spark.Spark.port; import static spark.Spark.post; /** * @author robosoul */ public class UserWebService { public static final Logger logger = LoggerFactory.getLogger(UserWebService.class); private final int port; private final UserService userService; public UserWebService(final int port, final UserService userService) { this.port = port; this.userService = userService; } public void start() { logger.info("Starting UserWebService on port: {}.", port); userService.setup(); port(port); get("/api/v1/users/read", new ReadRoute(userService)); post("/api/v1/users/add", "application/json", new AddUserRoute(userService)); post("/api/v1/users/delete", "text/plain", new DeleteRoute(userService)); } public void stop() { userService.cleanup(); Spark.stop(); } private static abstract class UserRoute implements Route { private final UserService userService; UserRoute(final UserService userService) { this.userService = userService; } public UserService getUserService() { return userService; } } public static class DeleteRoute extends UserRoute { DeleteRoute(final UserService userService) { super(userService); } @Override public Object handle(final Request request, final Response response) throws Exception { final String body = request.body(); if (body == null || body.isEmpty()) { logger.error("Empty request body!"); halt(HttpServletResponse.SC_BAD_REQUEST); } final Action action = getUserService().delete(body); while (!action.isDone()) { logger.info("Waiting..."); Thread.sleep(5000); } logger.info("Delete done!"); response.status(HttpServletResponse.SC_OK); return ""; } } public static class AddUserRoute extends UserRoute { AddUserRoute(final UserService userService) { super(userService); } @Override public Object handle(final Request request, final Response response) throws Exception { final String body = request.body(); if (body == null || body.isEmpty()) { logger.error("Empty request body!"); halt(HttpServletResponse.SC_BAD_REQUEST); } try { // validating request body User.fromJson(body); final Action action = getUserService().upsert(body); while (!action.isDone()) { logger.info("Waiting..."); Thread.sleep(5000); } logger.info("Upsert done!"); response.status(HttpServletResponse.SC_CREATED); } catch (Exception ex) { logger.error("Failed reading request body: '{}'", body, ex); halt(HttpServletResponse.SC_BAD_REQUEST); } return ""; } } public static class ReadRoute extends UserRoute { ReadRoute(final UserService userService) { super(userService); } @Override public Object handle(final Request request, final Response response) throws Exception { try (final FileInputStream in = new FileInputStream(getUserService().read())) { response.raw().getOutputStream().write(IOUtils.toByteArray(in)); } catch (FileLockInterruptionException ex) { logger.error("File not found: '{}'.", getUserService().read(), ex); halt(HttpServletResponse.SC_NOT_FOUND); } catch (Exception ex) { logger.error("Failed reading from '{}'.", getUserService().read(), ex); halt(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } return ""; } } }
[ "nomorestories@gmail.com" ]
nomorestories@gmail.com
9613613d2e71042bddec3c9acf3f62a9d352d847
b16ef069b9b40ecdffb6d049700bf706c720556a
/src/main/java/org/spaceappschallenge/purifyairsupply/core/Listener.java
70d18d28cc77c962ba21394cfb7f3c6d970a53bc
[]
no_license
ahlinist/spaceapps-air-purifier
76ec93122f414a6c3b611efc8bcc4ec74acb7f54
db6cd49a020be2f68b05813d04ca054d56b9b44b
refs/heads/master
2022-09-12T22:02:24.085639
2020-05-31T09:17:49
2020-05-31T09:17:49
268,035,297
0
0
null
null
null
null
UTF-8
Java
false
false
85
java
package org.spaceappschallenge.purifyairsupply.core; public interface Listener { }
[ "anton.hlinisty@gmail.com" ]
anton.hlinisty@gmail.com
ea74e099ce5ec2aa4392ccd1160573750f27db3e
869d75cbf96cdd91a67482f4ec8e460525185f6b
/src/main/java/com/syncleus/grail/graph/package-info.java
e8fb5e17236b4f6a9ab28f5cd0f826f098c5a5fb
[]
no_license
Syncleus/GRAIL-core
9dbf21830fa34a96438c6ee98bb32a7d8a1b91d6
a939db12f20da721f0de2415dc435c7d47dd4ac1
refs/heads/master
2021-07-16T15:08:23.811146
2016-11-02T03:31:19
2016-11-02T03:31:19
26,394,749
7
1
null
null
null
null
UTF-8
Java
false
false
1,637
java
/****************************************************************************** * * * Copyright: (c) Syncleus, Inc. * * * * You may redistribute and modify this source code under the terms and * * conditions of the Open Source Community License - Type C version 1.0 * * or any later version as published by Syncleus, Inc. at www.syncleus.com. * * There should be a copy of the license included with this file. If a copy * * of the license is not included you are granted no right to distribute or * * otherwise use this file except through a legal and valid license. You * * should also contact Syncleus, Inc. at the information below if you cannot * * find a license: * * * * Syncleus, Inc. * * 2604 South 12th Street * * Philadelphia, PA 19148 * * * ******************************************************************************/ /** * The graph package handles all the base framework for querying, traversing, and persisting to and from a GRAIL graph. * * @since 0.1 */ package com.syncleus.grail.graph;
[ "jeffrey.freeman@syncleus.com" ]
jeffrey.freeman@syncleus.com
2f7291fbc30e2ba7fc40b1bd1eb29d97a003b6c7
b8413135d3882728789228df6efc84ecf9553d3f
/2.Abgabe/src/container/IContainerElement.java
7eed5ba50a519565751cd00ba3abc72edcb83e0a
[]
no_license
fugohan/oop
4d83ddd22e2fdc41a9967c6c2efb78da1e078c5c
096f5ddb90493c91856ebaf2f23d26335ae162c4
refs/heads/master
2021-07-20T03:20:46.924101
2020-06-16T20:25:46
2020-06-16T20:25:46
180,781,023
0
1
null
null
null
null
UTF-8
Java
false
false
207
java
package container; public interface IContainerElement<E> { void setNextElement(IContainerElement<E> next); boolean hasNextElement(); IContainerElement<E> getNextElement(); E getData() ; }
[ "fugohan@onlinetu.tk" ]
fugohan@onlinetu.tk
95065119a447de3b482ce1706cbd33ad843f1edf
5dea691549e72c4e547ccb0f2ef398b9ee171550
/drools-planner-benchmark/src/main/java/org/drools/planner/benchmark/core/statistic/SingleStatistic.java
2793b8767e4b3cd875e5297497559b23fb0b3560
[ "Apache-2.0" ]
permissive
erickeller/drools-planner
88f0141ef248a4a6f98ec6ad095b96a6445b10ca
7730e2f73507710013e9b97a4eec2c8b9c055ece
refs/heads/master
2021-01-23T23:35:10.440865
2012-08-18T15:01:08
2012-08-18T15:01:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
935
java
/* * Copyright 2012 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.drools.planner.benchmark.core.statistic; import java.io.File; import org.drools.planner.benchmark.core.ProblemBenchmark; import org.drools.planner.benchmark.core.SingleBenchmark; import org.drools.planner.core.Solver; /** * 1 statistic of {@link SingleBenchmark} */ public interface SingleStatistic { void close(); }
[ "gds.geoffrey.de.smet@gmail.com" ]
gds.geoffrey.de.smet@gmail.com
79eacde701ee24dcc1e0f9cec79011788112f1ce
275a406570c73f185d7e5d7005baa7aedea1c03e
/app/src/main/java/com/sadeveloper/sample_qna/Notification_activity.java
4d26391d2227e57bf0f2b3261b154d65d305a205
[ "MIT" ]
permissive
ShalikaAshan01/MAD-Project
51dbb101553a8204695ad4f47d8b375ad66b6631
727e5ff05c82411bbfb2f55a71141bcc6938be75
refs/heads/master
2021-06-23T09:12:31.399609
2019-08-12T15:55:23
2019-08-12T15:55:23
149,985,868
0
0
null
null
null
null
UTF-8
Java
false
false
656
java
package com.sadeveloper.sample_qna; 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; public class Notification_activity extends Fragment { @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView =inflater.inflate( R.layout.fragment_notification,container,false ); return rootView; } }
[ "shalikaashan@outlook.com" ]
shalikaashan@outlook.com
daa4fb2fcee3bea28488e65c2b9765bf51669538
846a7668ac964632bdb6db639ab381be11c13b77
/android/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/AppInstallTest.java
4e1bb3b9e70398a01603b037d88f0180d1029d75
[]
no_license
BPI-SINOVOIP/BPI-A64-Android8
f2900965e96fd6f2a28ced68af668a858b15ebe1
744c72c133b9bf5d2e9efe0ab33e01e6e51d5743
refs/heads/master
2023-05-21T08:02:23.364495
2020-07-15T11:27:51
2020-07-15T11:27:51
143,945,191
2
0
null
null
null
null
UTF-8
Java
false
false
5,573
java
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.performance.tests; import com.android.tradefed.config.Option; import com.android.tradefed.config.OptionClass; import com.android.tradefed.device.DeviceNotAvailableException; import com.android.tradefed.device.ITestDevice; import com.android.tradefed.log.LogUtil.CLog; import com.android.tradefed.result.ITestInvocationListener; import com.android.tradefed.testtype.IDeviceTest; import com.android.tradefed.testtype.IRemoteTest; import com.android.tradefed.util.AaptParser; import org.junit.Assert; import java.io.File; import java.util.HashMap; import java.util.Map; @OptionClass(alias = "app-install-perf") // Test framework that measures the install time for all apk files located under a given directory. // The test needs aapt to be in its path in order to determine the package name of the apk. The // package name is needed to clean up after the test is done. public class AppInstallTest implements IDeviceTest, IRemoteTest { @Option(name = "test-apk-dir", description = "Directory that contains the test apks.", importance= Option.Importance.ALWAYS) private String mTestApkPath; @Option(name = "test-label", description = "Unique test identifier label.") private String mTestLabel = "AppInstallPerformance"; @Option(name = "test-start-delay", description = "Delay in ms to wait for before starting the install test.") private long mTestStartDelay = 60000; private ITestDevice mDevice; /* * {@inheritDoc} */ @Override public void setDevice(ITestDevice device) { mDevice = device; } /* * {@inheritDoc} */ @Override public ITestDevice getDevice() { return mDevice; } /* * {@inheritDoc} */ @Override public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { // Delay test start time to give the background processes to finish. if (mTestStartDelay > 0) { try { Thread.sleep(mTestStartDelay); } catch (InterruptedException e) { CLog.e("Failed to delay test: %s", e.toString()); } } Assert.assertFalse(mTestApkPath.isEmpty()); File apkDir = new File(mTestApkPath); Assert.assertTrue(apkDir.isDirectory()); // Find all apks in directory. String[] files = apkDir.list(); Map<String, String> metrics = new HashMap<String, String> (); try { for (String fileName : files) { if (!fileName.endsWith(".apk")) { CLog.d("Skipping non-apk %s", fileName); continue; } File file = new File(apkDir, fileName); // Install app and measure time. String installTime = Long.toString(installAndTime(file)); metrics.put(fileName, installTime); } } finally { reportMetrics(listener, mTestLabel, metrics); } } /** * Install file and time its install time. Cleans up after itself. * @param packageFile apk file to install * @return install time in msecs. * @throws DeviceNotAvailableException */ long installAndTime(File packageFile) throws DeviceNotAvailableException { AaptParser parser = AaptParser.parse(packageFile); String packageName = parser.getPackageName(); String remotePath = "/data/local/tmp/" + packageFile.getName(); if (!mDevice.pushFile(packageFile, remotePath)) { throw new RuntimeException("Failed to push " + packageFile.getAbsolutePath()); } long start = System.currentTimeMillis(); String output = mDevice.executeShellCommand( String.format("pm install -r \"%s\"", remotePath)); long end = System.currentTimeMillis(); if (output == null || output.indexOf("Success") == -1) { CLog.e("Failed to install package %s with error %s", packageFile, output); return -1; } mDevice.executeShellCommand(String.format("rm \"%s\"", remotePath)); if (packageName != null) { CLog.d("Uninstalling: %s", packageName); mDevice.uninstallPackage(packageName); } return end - start; } /** * Report run metrics by creating an empty test run to stick them in * * @param listener the {@link ITestInvocationListener} of test results * @param runName the test name * @param metrics the {@link Map} that contains metrics for the given test */ void reportMetrics(ITestInvocationListener listener, String runName, Map<String, String> metrics) { // Create an empty testRun to report the parsed runMetrics CLog.d("About to report metrics: %s", metrics); listener.testRunStarted(runName, 0); listener.testRunEnded(0, metrics); } }
[ "mingxin.android@gmail.com" ]
mingxin.android@gmail.com
272bcee0dc58ed798eb4d36624eee3ffafad76cd
a9eda6cacfd210139fa9c40f3679b95d41a5131d
/lambda-study/src/com/lambda/study/functioninterface/Unrelated.java
805ba371a5c24d7bd6edbc03350c5defd4ed6fec
[]
no_license
bloodMoonLight/springboot-study-other
4251d09b0bed5668508c4d3c2a29c55d0b63fcc9
014ea46ee47478bf58d6470ba78d86657dadb375
refs/heads/master
2023-03-31T19:48:05.671800
2019-12-24T03:26:38
2019-12-24T03:26:38
220,978,692
0
0
null
2023-03-27T22:18:41
2019-11-11T12:40:20
Java
UTF-8
Java
false
false
279
java
package com.lambda.study.functioninterface; /** * @ClassName Unrelated * @Description TODO * @Author 张鸿志 * @Date 2019年12月8日20:51:33 20:51 * Version 1.0 **/ public class Unrelated { static String twice(String msg){ return msg + " " + msg; } }
[ "953639281@qq.com" ]
953639281@qq.com
88cdd2db5badd104ddf40b7f54e478ca8ecfc0a5
c54ca080feee0eb76daee03e17bc9d9c75aed27f
/sc-commons/src/main/java/com/commons/dto/reDto/FeedBackReDto.java
54688c8c7c558aa8f59240650ef7ca870d5012fc
[]
no_license
zihanbobo/smartCommunity-java
b041e3c0d4e32b46336faab26ad50d65c2c3f7e4
e26243f817684f9452beaa04219ea43327118ade
refs/heads/master
2022-01-09T16:27:48.687040
2018-08-10T07:02:09
2018-08-10T07:02:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
700
java
package com.commons.dto.reDto; import com.commons.entity.BaseIdEntity; import lombok.Data; import java.util.List; /** * @Description:意见回馈 * @Author:feihong * @Vsesion:v.10 * @Create:2018/05/03 11:11:41 */ @Data public class FeedBackReDto extends BaseIdEntity { /** *意见反馈内容 */ private String context; /** *用户id */ private String userId; /** *用户意见反馈提交图片 */ private String imgUrl; /** *反馈时间 */ private String feedbackTime; /** *'状态:0正常 1失效' */ private String status; /** *图片集 */ private List<String> list; }
[ "nonhung@aliyun.com" ]
nonhung@aliyun.com
0892c81b35641ba25925c2000460b719aedfaada
5a5a821d78474a0feab3f8e817f9c63b6766b952
/src/b_spring_di_/FootballCoach.java
3aefca23e9518456ed530103f72667a2ae2f3afb
[]
no_license
KhairulIslamAzam/SpringDemoConfigue
bdcce363820764ade6876314c0fbfa2152881c81
d5c949c77e53a57a2b2efe39d15494234f69d934
refs/heads/main
2022-12-26T06:24:44.042299
2020-10-06T02:31:31
2020-10-06T02:31:31
301,593,314
0
0
null
null
null
null
UTF-8
Java
false
false
504
java
package b_spring_di_; public class FootballCoach implements Coach { private League league; public FootballCoach() { System.out.println("Football constructor"); } public void setLeague(League league) { System.out.println("Set method for football"); this.league = league; } @Override public String getDailyWorkout() { return "Football workout"; } @Override public String getLeague() { return league.getLeague(); } }
[ "khairulislam.azam@gmail.com" ]
khairulislam.azam@gmail.com
5dbcf92fbe50b80be2af9b30bf229391c5fcdbe7
fe08e3f071967a66f6058b0c022fc058b95fe06e
/app/src/main/java/com/saiyu/foreground/utils/CallbackUtils.java
ad343baefe8c86bc2a111087e9efcc85f3327199
[]
no_license
wangsk/saiyu_foreground
7ee055225acdc78575f520533e5825c4556fd18b
cdf7102dd7c0744b5505d14a9fac4f9613ff8dc7
refs/heads/master
2020-04-24T15:40:07.789268
2019-05-06T10:46:15
2019-05-06T10:46:15
172,077,480
0
0
null
null
null
null
UTF-8
Java
false
false
3,750
java
package com.saiyu.foreground.utils; import android.content.Intent; import android.view.MotionEvent; import com.saiyu.foreground.https.response.BaseRet; public class CallbackUtils { /*** 网络请求回调**/ public interface ResponseCallback{ public void setOnResponseCallback(String method, BaseRet baseRet); } private static ResponseCallback mResponseCallback; public static void setCallback(ResponseCallback callback){ mResponseCallback = callback; } public static void doResponseCallBackMethod(String method,BaseRet baseRet){ if(mResponseCallback != null){ mResponseCallback.setOnResponseCallback(method,baseRet); } } /*** 页面回传数据回调**/ public interface OnActivityCallBack { public void onActivityResult(int requestCode, int resultCode, Intent data); } public static OnActivityCallBack mOnActivityCallBack; public static void setOnActivityCallBack(OnActivityCallBack onActivityCallBack) { mOnActivityCallBack = onActivityCallBack; } public static void doResponseCallback(int requestCode, int resultCode, Intent data){ if(mOnActivityCallBack != null){ mOnActivityCallBack.onActivityResult(requestCode,resultCode,data); } } public interface OnDispatchTouchEvent{ public void onDispatchTouchEvent(MotionEvent ev); } public static OnDispatchTouchEvent mOnDispatchTouchEvent; public static void setOnDispatchTouchEvent(OnDispatchTouchEvent dispatchTouchEvent){ mOnDispatchTouchEvent = dispatchTouchEvent; } public static void doOnDispatchTouchEvent(MotionEvent ev){ if(mOnDispatchTouchEvent != null){ mOnDispatchTouchEvent.onDispatchTouchEvent(ev); } } /*** 操作MainActivity界面bottom回调**/ public interface OnBottomSelectListener { void setOnBottomSelectListener(int position); } public static OnBottomSelectListener mOnBottomSelectListener; public static void setOnBottomSelectListener(OnBottomSelectListener bottomSelectListener){ mOnBottomSelectListener = bottomSelectListener; } public static void doBottomSelectCallback(int position){ if(mOnBottomSelectListener != null){ mOnBottomSelectListener.setOnBottomSelectListener(position); } } public interface OnPositionListener{ void setOnPositionListener(int position); } public static OnPositionListener mOnPositionListener; public static void setOnPositionListener(OnPositionListener onPositionListener){ mOnPositionListener = onPositionListener; } public static void doPositionCallback(int position){ if(mOnPositionListener != null){ mOnPositionListener.setOnPositionListener(position); } } public interface OnContentListener{ void setOnContentListener(String content); } public static OnContentListener mOnContentListener; public static void setOnContentListener(OnContentListener onContentListener){ mOnContentListener = onContentListener; } public static void doContentCallback(String content){ if(mOnContentListener != null){ mOnContentListener.setOnContentListener(content); } } public interface OnExitListener { void setOnExitListener(String code); } public static OnExitListener mOnExitListener; public static void setOnExitListener(OnExitListener onExitListener){ mOnExitListener = onExitListener; } public static void doExitCallback(String code){ if(mOnExitListener != null){ mOnExitListener.setOnExitListener(code); } } }
[ "736413509@qq.com" ]
736413509@qq.com
a9bafd4f1090fe0316a577b116015d2000476e8c
d516274739858f5319dc58f63909d2a38224c315
/eks2014/oppg2A/FlettingAvInt.java
bec0cad342ce609afd04ea43b05879e266a5655a
[]
no_license
byllgrim/inf1010
2b689f9d3f958b44be4a2a7df9791d44521003ad
32a6b2aea41fdcef03e12686c8e9cc4c2770bf9a
refs/heads/master
2020-04-09T16:02:59.610586
2019-03-12T09:33:28
2019-03-12T09:33:28
50,101,945
0
0
null
null
null
null
UTF-8
Java
false
false
572
java
public class FlettingAvInt { public static IntNode flettEnkleLister(IntNode liste1, IntNode liste2) { IntNode nyListe = new IntNode(); IntNode sisteNode = nyListe; while ((liste1 != null) && (liste2 != null)) { if (liste1.innhold < liste2.innhold) { sisteNode.neste = liste1; liste1 = liste1.neste; } else { sisteNode.neste = liste2; liste2 = liste2.neste; } } if (liste1 == null) sisteNode.neste = liste2; else sisteNode.neste = liste1; return nyListe.neste; /* skip dummy */ } }
[ "byllgrim@users.noreply.github.com" ]
byllgrim@users.noreply.github.com
c8cac4eb1c4039ed825d9e8323641bfdc1d85ae4
80e4b7e4a7b56a5e40b90942912c6a4b122aac4d
/src/helloworldwithtiers/model/ModelImplementation.java
fb287e0960e31b9a41e39d3a66a9c764b956a891
[]
no_license
uriajavi/DIN-UD1
cb449fabe633b550a6d54315c8c089dd14bf449a
c94edeb61413f8e2a4889de69a6472edcf7bd907
refs/heads/master
2020-03-22T06:19:34.057678
2019-09-25T12:10:57
2019-09-25T12:10:57
139,625,523
1
0
null
null
null
null
UTF-8
Java
false
false
568
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 helloworldwithtiers.model; /** * A Model implementation. * @author javi */ public class ModelImplementation implements Model{ /** * Get a greeting. * @return a String representing the greeting */ @Override public String getGreeting() { return "Hello World!! This is an application with tiers, factories and interfaces!!"; } }
[ "uriajavi@gmail.com" ]
uriajavi@gmail.com
5c3b9a535837547435836da3b4c9fa0a4a7849dd
ef5a990bef7bf5e2fac41b9e6bc823bd2f9d60e5
/Vize_ödevi_1/Main.java
00fbe1e9e7ad67399d9c80783b96046dd327121c
[]
no_license
Kutyba-Alharbe/NYP
605d28ceb36873f49c5565fe1e7c5be76b6bfcf5
b8521add0b3b789e45e7ea907932a71ca519b7bc
refs/heads/main
2023-08-25T13:57:53.407324
2021-11-02T15:59:07
2021-11-02T15:59:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,179
java
package javaHomework; public class Main { public static void main(String[] args) { float trianglePerimeter = MyUtils.trianglePerimeter(3, 3, 3); System.out.print("The perimeter of the triangle is: " + trianglePerimeter + "\n"); float triangleArea = MyUtils.triangleArea(3, 3, 3); System.out.print("The area of the triangle is: " + triangleArea + "\n"); float polygonPerimeter = MyUtils.polygonPerimeter(5, 10, 4, 8); System.out.print("The perimeter of the plygon is: " + polygonPerimeter + "\n"); float polygonArea = MyUtils.polygonArea(10, 6); System.out.print("The area of the plygon is: " + polygonArea + "\n"); int [] array = new int[201]; int temp = -100; for(int i = 0; i < array.length; i++) { array[i] = temp; temp ++; } double [] results = MyUtils.functionsResult(array); for(int i = 0; i < results.length; i++) { System.out.print(results[i] + "\n"); } } }
[ "noreply@github.com" ]
noreply@github.com
e629377f03c14da83ef5673b227d21908b6c0251
19d1d212a5b6c2efae0e2bbf54947c8626ad9c1c
/spring-data-jpax/src/main/java/net/gincat/jpax/JpaRepositoryExtend.java
59e484057f229575dc2eb03baa1904dfc0e6f99d
[]
no_license
moraleAK/Gincat
2fdaef0e1ea16b9a7a041bf81d2e5a5d1667ff92
0ab809ed8987f36085e9e40de369c289bdfe4ede
refs/heads/main
2023-01-16T05:58:27.889028
2020-11-30T03:12:07
2020-11-30T03:12:07
316,676,006
0
0
null
null
null
null
UTF-8
Java
false
false
722
java
package net.gincat.jpax; import org.springframework.data.domain.Page; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.repository.NoRepositoryBean; import java.util.List; import java.util.function.Function; @NoRepositoryBean public interface JpaRepositoryExtend<T, ID> extends JpaRepository<T, ID>, JpaSpecificationExecutor { List<T> findAllNoPageWith(Object o); <R> List<R> findAllWith(Object o, Function<T, R> transfer); <X extends PageRequest> Page<T> findAllWith(X pageRequest); <X extends PageRequest, R> PaginationResult<R> findAllWith(X query, Function<T, R> transfer); }
[ "838288125@qq.com" ]
838288125@qq.com
ea77581d4d82c8e72097f0f06466178be645039c
0497229adf84a293bb01df95e6ec13bc9d3d798e
/src/main/java/com/example/demo/BalanceIndexFinder.java
5337fb004f15b3f8b56e782643d9a27657d29fda
[]
no_license
pankajdubey1/demo
7c4982a6c3c45e0f1f204b9444d0844a3c0f747e
8093cf63b8e281185f6addb187488d9474541599
refs/heads/master
2020-03-26T16:22:15.779827
2018-08-20T13:09:18
2018-08-20T13:09:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,152
java
package com.example.demo; import java.util.Arrays; import java.util.List; public class BalanceIndexFinder { public static void main(String[] args) { List<Integer> list = Arrays.asList(1, 8, 4, 1, 1, 4, 1, 1, 1, 1, 1, 0, 24); int length = list.size(); int start = 0; int last = length - 1; int startSum = 0; int lastSum = 0; int startPrev = -1; int lastPrev = length; while (start != last) { if (startPrev < start) { startSum = startSum + list.get(start); } if (lastPrev > last) { lastSum = lastSum + list.get(last); } if (startSum == lastSum) { startPrev = start; lastPrev = last; start++; last--; } else if (startSum > lastSum) { lastPrev = last; startPrev = start; last--; } else { startPrev = start; lastPrev = last; start++; } } System.out.println(start); } }
[ "pankaj.dubey@nagarro.com" ]
pankaj.dubey@nagarro.com
802cef8d17b21fb73817a6ba4234c152c6ca9cb8
d817546c59e7a540643f5c4faf399f078e1d8444
/Kiddoy/src/java/DAOImp/userDAOImp.java
43ee5fc088d88f521e00519c1ff1955643f79d1e
[]
no_license
patelvaishakhi/justborn
0e4d5975e95404780fc7599cddf0320906f98c0d
53bf015de831a850e0702bf5681326ec5a1b1cb5
refs/heads/master
2021-05-06T01:35:44.272527
2018-03-04T05:11:49
2018-03-04T05:11:49
114,445,152
0
0
null
null
null
null
UTF-8
Java
false
false
1,869
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 DAOImp; import DAO.userDAO; import java.util.ArrayList; import java.util.List; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.Transaction; import model.user; /** * * @author DELL */ public class userDAOImp implements userDAO{ @Override public void saveUser(user usr) { Session session = HibernateUtil.getSessionFactory().openSession(); Transaction transaction = session.beginTransaction(); session.save(usr); transaction.commit(); session.close(); } @Override public List<user> showAllUser(){ List<user> userList = new ArrayList(); Session session = HibernateUtil.getSessionFactory().openSession(); Query query = session.createQuery("from user"); userList = query.list(); return userList; } @Override public void updateUser (int id, String name, String password, String contact, String email, String address){ Session session = HibernateUtil.getSessionFactory().openSession(); Transaction transaction = session.beginTransaction(); user usr = (user)session.load(user.class,id); usr.setName(name); usr.setPassword(password); usr.setContact(contact); usr.setEmail(email); usr.setAddress(address); session.update(usr); transaction.commit(); session.close(); } @Override public void deleteUser (user user){ Session session = HibernateUtil.getSessionFactory().openSession(); Transaction transaction = session.beginTransaction(); session.delete(user); transaction.commit(); session.close(); } }
[ "patelvaishakhi440@gmail.com" ]
patelvaishakhi440@gmail.com