blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
410
content_id
stringlengths
40
40
detected_licenses
listlengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
131 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
32 values
content
stringlengths
3
9.45M
authors
listlengths
1
1
author_id
stringlengths
0
313
3f4357b164ae39d7593d72d30f6cf3f6f37ecad8
25e60e6b1ef901c1308915579e5dc9cc7faa501e
/sources/android/support/p003v7/appcompat/C0257R.java
3e124a800aa1f2b4f8eb932f8990ed301ff55ec8
[]
no_license
Abhiroopks/Temp_Sensor
03022e1b5a5d613b18bdef8b42f8abf1d96278af
05c448b844e0db377ffd59265f2aaf7f574fad2e
refs/heads/master
2022-12-29T20:22:12.911696
2020-09-29T16:46:05
2020-09-29T16:46:05
299,677,908
0
0
null
null
null
null
UTF-8
Java
false
false
120,080
java
package android.support.p003v7.appcompat; import abhiroopkodandapursanjeeva.vest.C0010R; /* renamed from: android.support.v7.appcompat.R */ public final class C0257R { /* renamed from: android.support.v7.appcompat.R$anim */ public static final class anim { public static final int abc_fade_in = 2130771968; public static final int abc_fade_out = 2130771969; public static final int abc_grow_fade_in_from_bottom = 2130771970; public static final int abc_popup_enter = 2130771971; public static final int abc_popup_exit = 2130771972; public static final int abc_shrink_fade_out_from_bottom = 2130771973; public static final int abc_slide_in_bottom = 2130771974; public static final int abc_slide_in_top = 2130771975; public static final int abc_slide_out_bottom = 2130771976; public static final int abc_slide_out_top = 2130771977; public static final int abc_tooltip_enter = 2130771978; public static final int abc_tooltip_exit = 2130771979; } /* renamed from: android.support.v7.appcompat.R$attr */ public static final class attr { public static final int actionBarDivider = 2130837504; public static final int actionBarItemBackground = 2130837505; public static final int actionBarPopupTheme = 2130837506; public static final int actionBarSize = 2130837507; public static final int actionBarSplitStyle = 2130837508; public static final int actionBarStyle = 2130837509; public static final int actionBarTabBarStyle = 2130837510; public static final int actionBarTabStyle = 2130837511; public static final int actionBarTabTextStyle = 2130837512; public static final int actionBarTheme = 2130837513; public static final int actionBarWidgetTheme = 2130837514; public static final int actionButtonStyle = 2130837515; public static final int actionDropDownStyle = 2130837516; public static final int actionLayout = 2130837517; public static final int actionMenuTextAppearance = 2130837518; public static final int actionMenuTextColor = 2130837519; public static final int actionModeBackground = 2130837520; public static final int actionModeCloseButtonStyle = 2130837521; public static final int actionModeCloseDrawable = 2130837522; public static final int actionModeCopyDrawable = 2130837523; public static final int actionModeCutDrawable = 2130837524; public static final int actionModeFindDrawable = 2130837525; public static final int actionModePasteDrawable = 2130837526; public static final int actionModePopupWindowStyle = 2130837527; public static final int actionModeSelectAllDrawable = 2130837528; public static final int actionModeShareDrawable = 2130837529; public static final int actionModeSplitBackground = 2130837530; public static final int actionModeStyle = 2130837531; public static final int actionModeWebSearchDrawable = 2130837532; public static final int actionOverflowButtonStyle = 2130837533; public static final int actionOverflowMenuStyle = 2130837534; public static final int actionProviderClass = 2130837535; public static final int actionViewClass = 2130837536; public static final int activityChooserViewStyle = 2130837537; public static final int alertDialogButtonGroupStyle = 2130837538; public static final int alertDialogCenterButtons = 2130837539; public static final int alertDialogStyle = 2130837540; public static final int alertDialogTheme = 2130837541; public static final int allowStacking = 2130837542; public static final int alpha = 2130837543; public static final int alphabeticModifiers = 2130837544; public static final int arrowHeadLength = 2130837545; public static final int arrowShaftLength = 2130837546; public static final int autoCompleteTextViewStyle = 2130837547; public static final int autoSizeMaxTextSize = 2130837548; public static final int autoSizeMinTextSize = 2130837549; public static final int autoSizePresetSizes = 2130837550; public static final int autoSizeStepGranularity = 2130837551; public static final int autoSizeTextType = 2130837552; public static final int background = 2130837553; public static final int backgroundSplit = 2130837554; public static final int backgroundStacked = 2130837555; public static final int backgroundTint = 2130837556; public static final int backgroundTintMode = 2130837557; public static final int barLength = 2130837558; public static final int borderlessButtonStyle = 2130837561; public static final int buttonBarButtonStyle = 2130837562; public static final int buttonBarNegativeButtonStyle = 2130837563; public static final int buttonBarNeutralButtonStyle = 2130837564; public static final int buttonBarPositiveButtonStyle = 2130837565; public static final int buttonBarStyle = 2130837566; public static final int buttonGravity = 2130837567; public static final int buttonIconDimen = 2130837568; public static final int buttonPanelSideLayout = 2130837569; public static final int buttonStyle = 2130837570; public static final int buttonStyleSmall = 2130837571; public static final int buttonTint = 2130837572; public static final int buttonTintMode = 2130837573; public static final int checkboxStyle = 2130837575; public static final int checkedTextViewStyle = 2130837576; public static final int closeIcon = 2130837577; public static final int closeItemLayout = 2130837578; public static final int collapseContentDescription = 2130837579; public static final int collapseIcon = 2130837580; public static final int color = 2130837581; public static final int colorAccent = 2130837582; public static final int colorBackgroundFloating = 2130837583; public static final int colorButtonNormal = 2130837584; public static final int colorControlActivated = 2130837585; public static final int colorControlHighlight = 2130837586; public static final int colorControlNormal = 2130837587; public static final int colorError = 2130837588; public static final int colorPrimary = 2130837589; public static final int colorPrimaryDark = 2130837590; public static final int colorSwitchThumbNormal = 2130837591; public static final int commitIcon = 2130837592; public static final int contentDescription = 2130837596; public static final int contentInsetEnd = 2130837597; public static final int contentInsetEndWithActions = 2130837598; public static final int contentInsetLeft = 2130837599; public static final int contentInsetRight = 2130837600; public static final int contentInsetStart = 2130837601; public static final int contentInsetStartWithNavigation = 2130837602; public static final int controlBackground = 2130837603; public static final int coordinatorLayoutStyle = 2130837604; public static final int customNavigationLayout = 2130837605; public static final int defaultQueryHint = 2130837606; public static final int dialogPreferredPadding = 2130837607; public static final int dialogTheme = 2130837608; public static final int displayOptions = 2130837609; public static final int divider = 2130837610; public static final int dividerHorizontal = 2130837611; public static final int dividerPadding = 2130837612; public static final int dividerVertical = 2130837613; public static final int drawableSize = 2130837614; public static final int drawerArrowStyle = 2130837615; public static final int dropDownListViewStyle = 2130837616; public static final int dropdownListPreferredItemHeight = 2130837617; public static final int editTextBackground = 2130837618; public static final int editTextColor = 2130837619; public static final int editTextStyle = 2130837620; public static final int elevation = 2130837621; public static final int expandActivityOverflowButtonDrawable = 2130837623; public static final int font = 2130837624; public static final int fontFamily = 2130837625; public static final int fontProviderAuthority = 2130837626; public static final int fontProviderCerts = 2130837627; public static final int fontProviderFetchStrategy = 2130837628; public static final int fontProviderFetchTimeout = 2130837629; public static final int fontProviderPackage = 2130837630; public static final int fontProviderQuery = 2130837631; public static final int fontStyle = 2130837632; public static final int fontWeight = 2130837633; public static final int gapBetweenBars = 2130837634; public static final int goIcon = 2130837635; public static final int height = 2130837636; public static final int hideOnContentScroll = 2130837637; public static final int homeAsUpIndicator = 2130837638; public static final int homeLayout = 2130837639; public static final int icon = 2130837640; public static final int iconTint = 2130837641; public static final int iconTintMode = 2130837642; public static final int iconifiedByDefault = 2130837643; public static final int imageButtonStyle = 2130837644; public static final int indeterminateProgressStyle = 2130837645; public static final int initialActivityCount = 2130837646; public static final int isLightTheme = 2130837647; public static final int itemPadding = 2130837648; public static final int keylines = 2130837649; public static final int layout = 2130837650; public static final int layout_anchor = 2130837651; public static final int layout_anchorGravity = 2130837652; public static final int layout_behavior = 2130837653; public static final int layout_dodgeInsetEdges = 2130837695; public static final int layout_insetEdge = 2130837704; public static final int layout_keyline = 2130837705; public static final int listChoiceBackgroundIndicator = 2130837707; public static final int listDividerAlertDialog = 2130837708; public static final int listItemLayout = 2130837709; public static final int listLayout = 2130837710; public static final int listMenuViewStyle = 2130837711; public static final int listPopupWindowStyle = 2130837712; public static final int listPreferredItemHeight = 2130837713; public static final int listPreferredItemHeightLarge = 2130837714; public static final int listPreferredItemHeightSmall = 2130837715; public static final int listPreferredItemPaddingLeft = 2130837716; public static final int listPreferredItemPaddingRight = 2130837717; public static final int logo = 2130837718; public static final int logoDescription = 2130837719; public static final int maxButtonHeight = 2130837720; public static final int measureWithLargestChild = 2130837721; public static final int multiChoiceItemLayout = 2130837722; public static final int navigationContentDescription = 2130837723; public static final int navigationIcon = 2130837724; public static final int navigationMode = 2130837725; public static final int numericModifiers = 2130837726; public static final int overlapAnchor = 2130837727; public static final int paddingBottomNoButtons = 2130837728; public static final int paddingEnd = 2130837729; public static final int paddingStart = 2130837730; public static final int paddingTopNoTitle = 2130837731; public static final int panelBackground = 2130837732; public static final int panelMenuListTheme = 2130837733; public static final int panelMenuListWidth = 2130837734; public static final int popupMenuStyle = 2130837735; public static final int popupTheme = 2130837736; public static final int popupWindowStyle = 2130837737; public static final int preserveIconSpacing = 2130837738; public static final int progressBarPadding = 2130837739; public static final int progressBarStyle = 2130837740; public static final int queryBackground = 2130837741; public static final int queryHint = 2130837742; public static final int radioButtonStyle = 2130837743; public static final int ratingBarStyle = 2130837744; public static final int ratingBarStyleIndicator = 2130837745; public static final int ratingBarStyleSmall = 2130837746; public static final int searchHintIcon = 2130837747; public static final int searchIcon = 2130837748; public static final int searchViewStyle = 2130837749; public static final int seekBarStyle = 2130837750; public static final int selectableItemBackground = 2130837751; public static final int selectableItemBackgroundBorderless = 2130837752; public static final int showAsAction = 2130837757; public static final int showDividers = 2130837758; public static final int showText = 2130837759; public static final int showTitle = 2130837760; public static final int singleChoiceItemLayout = 2130837761; public static final int spinBars = 2130837762; public static final int spinnerDropDownItemStyle = 2130837763; public static final int spinnerStyle = 2130837764; public static final int splitTrack = 2130837765; public static final int srcCompat = 2130837766; public static final int state_above_anchor = 2130837767; public static final int statusBarBackground = 2130837768; public static final int subMenuArrow = 2130837769; public static final int submitBackground = 2130837770; public static final int subtitle = 2130837771; public static final int subtitleTextAppearance = 2130837772; public static final int subtitleTextColor = 2130837773; public static final int subtitleTextStyle = 2130837774; public static final int suggestionRowLayout = 2130837775; public static final int switchMinWidth = 2130837776; public static final int switchPadding = 2130837777; public static final int switchStyle = 2130837778; public static final int switchTextAppearance = 2130837779; public static final int textAllCaps = 2130837780; public static final int textAppearanceLargePopupMenu = 2130837781; public static final int textAppearanceListItem = 2130837782; public static final int textAppearanceListItemSecondary = 2130837783; public static final int textAppearanceListItemSmall = 2130837784; public static final int textAppearancePopupMenuHeader = 2130837785; public static final int textAppearanceSearchResultSubtitle = 2130837786; public static final int textAppearanceSearchResultTitle = 2130837787; public static final int textAppearanceSmallPopupMenu = 2130837788; public static final int textColorAlertDialogListItem = 2130837789; public static final int textColorSearchUrl = 2130837790; public static final int theme = 2130837791; public static final int thickness = 2130837792; public static final int thumbTextPadding = 2130837793; public static final int thumbTint = 2130837794; public static final int thumbTintMode = 2130837795; public static final int tickMark = 2130837796; public static final int tickMarkTint = 2130837797; public static final int tickMarkTintMode = 2130837798; public static final int tint = 2130837799; public static final int tintMode = 2130837800; public static final int title = 2130837801; public static final int titleMargin = 2130837802; public static final int titleMarginBottom = 2130837803; public static final int titleMarginEnd = 2130837804; public static final int titleMarginStart = 2130837805; public static final int titleMarginTop = 2130837806; public static final int titleMargins = 2130837807; public static final int titleTextAppearance = 2130837808; public static final int titleTextColor = 2130837809; public static final int titleTextStyle = 2130837810; public static final int toolbarNavigationButtonStyle = 2130837811; public static final int toolbarStyle = 2130837812; public static final int tooltipForegroundColor = 2130837813; public static final int tooltipFrameBackground = 2130837814; public static final int tooltipText = 2130837815; public static final int track = 2130837816; public static final int trackTint = 2130837817; public static final int trackTintMode = 2130837818; public static final int viewInflaterClass = 2130837819; public static final int voiceIcon = 2130837820; public static final int windowActionBar = 2130837821; public static final int windowActionBarOverlay = 2130837822; public static final int windowActionModeOverlay = 2130837823; public static final int windowFixedHeightMajor = 2130837824; public static final int windowFixedHeightMinor = 2130837825; public static final int windowFixedWidthMajor = 2130837826; public static final int windowFixedWidthMinor = 2130837827; public static final int windowMinWidthMajor = 2130837828; public static final int windowMinWidthMinor = 2130837829; public static final int windowNoTitle = 2130837830; } /* renamed from: android.support.v7.appcompat.R$bool */ public static final class bool { public static final int abc_action_bar_embed_tabs = 2130903040; public static final int abc_allow_stacked_button_bar = 2130903041; public static final int abc_config_actionMenuItemAllCaps = 2130903042; public static final int abc_config_showMenuShortcutsWhenKeyboardPresent = 2130903043; } /* renamed from: android.support.v7.appcompat.R$color */ public static final class color { public static final int abc_background_cache_hint_selector_material_dark = 2130968576; public static final int abc_background_cache_hint_selector_material_light = 2130968577; public static final int abc_btn_colored_borderless_text_material = 2130968578; public static final int abc_btn_colored_text_material = 2130968579; public static final int abc_color_highlight_material = 2130968580; public static final int abc_hint_foreground_material_dark = 2130968581; public static final int abc_hint_foreground_material_light = 2130968582; public static final int abc_input_method_navigation_guard = 2130968583; public static final int abc_primary_text_disable_only_material_dark = 2130968584; public static final int abc_primary_text_disable_only_material_light = 2130968585; public static final int abc_primary_text_material_dark = 2130968586; public static final int abc_primary_text_material_light = 2130968587; public static final int abc_search_url_text = 2130968588; public static final int abc_search_url_text_normal = 2130968589; public static final int abc_search_url_text_pressed = 2130968590; public static final int abc_search_url_text_selected = 2130968591; public static final int abc_secondary_text_material_dark = 2130968592; public static final int abc_secondary_text_material_light = 2130968593; public static final int abc_tint_btn_checkable = 2130968594; public static final int abc_tint_default = 2130968595; public static final int abc_tint_edittext = 2130968596; public static final int abc_tint_seek_thumb = 2130968597; public static final int abc_tint_spinner = 2130968598; public static final int abc_tint_switch_track = 2130968599; public static final int accent_material_dark = 2130968600; public static final int accent_material_light = 2130968601; public static final int background_floating_material_dark = 2130968602; public static final int background_floating_material_light = 2130968603; public static final int background_material_dark = 2130968604; public static final int background_material_light = 2130968605; public static final int bright_foreground_disabled_material_dark = 2130968606; public static final int bright_foreground_disabled_material_light = 2130968607; public static final int bright_foreground_inverse_material_dark = 2130968608; public static final int bright_foreground_inverse_material_light = 2130968609; public static final int bright_foreground_material_dark = 2130968610; public static final int bright_foreground_material_light = 2130968611; public static final int button_material_dark = 2130968612; public static final int button_material_light = 2130968613; public static final int dim_foreground_disabled_material_dark = 2130968617; public static final int dim_foreground_disabled_material_light = 2130968618; public static final int dim_foreground_material_dark = 2130968619; public static final int dim_foreground_material_light = 2130968620; public static final int error_color_material = 2130968621; public static final int foreground_material_dark = 2130968622; public static final int foreground_material_light = 2130968623; public static final int highlighted_text_material_dark = 2130968624; public static final int highlighted_text_material_light = 2130968625; public static final int material_blue_grey_800 = 2130968626; public static final int material_blue_grey_900 = 2130968627; public static final int material_blue_grey_950 = 2130968628; public static final int material_deep_teal_200 = 2130968629; public static final int material_deep_teal_500 = 2130968630; public static final int material_grey_100 = 2130968631; public static final int material_grey_300 = 2130968632; public static final int material_grey_50 = 2130968633; public static final int material_grey_600 = 2130968634; public static final int material_grey_800 = 2130968635; public static final int material_grey_850 = 2130968636; public static final int material_grey_900 = 2130968637; public static final int notification_action_color_filter = 2130968638; public static final int notification_icon_bg_color = 2130968639; public static final int primary_dark_material_dark = 2130968641; public static final int primary_dark_material_light = 2130968642; public static final int primary_material_dark = 2130968643; public static final int primary_material_light = 2130968644; public static final int primary_text_default_material_dark = 2130968645; public static final int primary_text_default_material_light = 2130968646; public static final int primary_text_disabled_material_dark = 2130968647; public static final int primary_text_disabled_material_light = 2130968648; public static final int ripple_material_dark = 2130968649; public static final int ripple_material_light = 2130968650; public static final int secondary_text_default_material_dark = 2130968651; public static final int secondary_text_default_material_light = 2130968652; public static final int secondary_text_disabled_material_dark = 2130968653; public static final int secondary_text_disabled_material_light = 2130968654; public static final int switch_thumb_disabled_material_dark = 2130968655; public static final int switch_thumb_disabled_material_light = 2130968656; public static final int switch_thumb_material_dark = 2130968657; public static final int switch_thumb_material_light = 2130968658; public static final int switch_thumb_normal_material_dark = 2130968659; public static final int switch_thumb_normal_material_light = 2130968660; public static final int tooltip_background_dark = 2130968661; public static final int tooltip_background_light = 2130968662; } /* renamed from: android.support.v7.appcompat.R$dimen */ public static final class dimen { public static final int abc_action_bar_content_inset_material = 2131034112; public static final int abc_action_bar_content_inset_with_nav = 2131034113; public static final int abc_action_bar_default_height_material = 2131034114; public static final int abc_action_bar_default_padding_end_material = 2131034115; public static final int abc_action_bar_default_padding_start_material = 2131034116; public static final int abc_action_bar_elevation_material = 2131034117; public static final int abc_action_bar_icon_vertical_padding_material = 2131034118; public static final int abc_action_bar_overflow_padding_end_material = 2131034119; public static final int abc_action_bar_overflow_padding_start_material = 2131034120; public static final int abc_action_bar_progress_bar_size = 2131034121; public static final int abc_action_bar_stacked_max_height = 2131034122; public static final int abc_action_bar_stacked_tab_max_width = 2131034123; public static final int abc_action_bar_subtitle_bottom_margin_material = 2131034124; public static final int abc_action_bar_subtitle_top_margin_material = 2131034125; public static final int abc_action_button_min_height_material = 2131034126; public static final int abc_action_button_min_width_material = 2131034127; public static final int abc_action_button_min_width_overflow_material = 2131034128; public static final int abc_alert_dialog_button_bar_height = 2131034129; public static final int abc_alert_dialog_button_dimen = 2131034130; public static final int abc_button_inset_horizontal_material = 2131034131; public static final int abc_button_inset_vertical_material = 2131034132; public static final int abc_button_padding_horizontal_material = 2131034133; public static final int abc_button_padding_vertical_material = 2131034134; public static final int abc_cascading_menus_min_smallest_width = 2131034135; public static final int abc_config_prefDialogWidth = 2131034136; public static final int abc_control_corner_material = 2131034137; public static final int abc_control_inset_material = 2131034138; public static final int abc_control_padding_material = 2131034139; public static final int abc_dialog_fixed_height_major = 2131034140; public static final int abc_dialog_fixed_height_minor = 2131034141; public static final int abc_dialog_fixed_width_major = 2131034142; public static final int abc_dialog_fixed_width_minor = 2131034143; public static final int abc_dialog_list_padding_bottom_no_buttons = 2131034144; public static final int abc_dialog_list_padding_top_no_title = 2131034145; public static final int abc_dialog_min_width_major = 2131034146; public static final int abc_dialog_min_width_minor = 2131034147; public static final int abc_dialog_padding_material = 2131034148; public static final int abc_dialog_padding_top_material = 2131034149; public static final int abc_dialog_title_divider_material = 2131034150; public static final int abc_disabled_alpha_material_dark = 2131034151; public static final int abc_disabled_alpha_material_light = 2131034152; public static final int abc_dropdownitem_icon_width = 2131034153; public static final int abc_dropdownitem_text_padding_left = 2131034154; public static final int abc_dropdownitem_text_padding_right = 2131034155; public static final int abc_edit_text_inset_bottom_material = 2131034156; public static final int abc_edit_text_inset_horizontal_material = 2131034157; public static final int abc_edit_text_inset_top_material = 2131034158; public static final int abc_floating_window_z = 2131034159; public static final int abc_list_item_padding_horizontal_material = 2131034160; public static final int abc_panel_menu_list_width = 2131034161; public static final int abc_progress_bar_height_material = 2131034162; public static final int abc_search_view_preferred_height = 2131034163; public static final int abc_search_view_preferred_width = 2131034164; public static final int abc_seekbar_track_background_height_material = 2131034165; public static final int abc_seekbar_track_progress_height_material = 2131034166; public static final int abc_select_dialog_padding_start_material = 2131034167; public static final int abc_switch_padding = 2131034168; public static final int abc_text_size_body_1_material = 2131034169; public static final int abc_text_size_body_2_material = 2131034170; public static final int abc_text_size_button_material = 2131034171; public static final int abc_text_size_caption_material = 2131034172; public static final int abc_text_size_display_1_material = 2131034173; public static final int abc_text_size_display_2_material = 2131034174; public static final int abc_text_size_display_3_material = 2131034175; public static final int abc_text_size_display_4_material = 2131034176; public static final int abc_text_size_headline_material = 2131034177; public static final int abc_text_size_large_material = 2131034178; public static final int abc_text_size_medium_material = 2131034179; public static final int abc_text_size_menu_header_material = 2131034180; public static final int abc_text_size_menu_material = 2131034181; public static final int abc_text_size_small_material = 2131034182; public static final int abc_text_size_subhead_material = 2131034183; public static final int abc_text_size_subtitle_material_toolbar = 2131034184; public static final int abc_text_size_title_material = 2131034185; public static final int abc_text_size_title_material_toolbar = 2131034186; public static final int compat_button_inset_horizontal_material = 2131034187; public static final int compat_button_inset_vertical_material = 2131034188; public static final int compat_button_padding_horizontal_material = 2131034189; public static final int compat_button_padding_vertical_material = 2131034190; public static final int compat_control_corner_material = 2131034191; public static final int disabled_alpha_material_dark = 2131034192; public static final int disabled_alpha_material_light = 2131034193; public static final int highlight_alpha_material_colored = 2131034194; public static final int highlight_alpha_material_dark = 2131034195; public static final int highlight_alpha_material_light = 2131034196; public static final int hint_alpha_material_dark = 2131034197; public static final int hint_alpha_material_light = 2131034198; public static final int hint_pressed_alpha_material_dark = 2131034199; public static final int hint_pressed_alpha_material_light = 2131034200; public static final int notification_action_icon_size = 2131034201; public static final int notification_action_text_size = 2131034202; public static final int notification_big_circle_margin = 2131034203; public static final int notification_content_margin_start = 2131034204; public static final int notification_large_icon_height = 2131034205; public static final int notification_large_icon_width = 2131034206; public static final int notification_main_column_padding_top = 2131034207; public static final int notification_media_narrow_margin = 2131034208; public static final int notification_right_icon_size = 2131034209; public static final int notification_right_side_padding_top = 2131034210; public static final int notification_small_icon_background_padding = 2131034211; public static final int notification_small_icon_size_as_large = 2131034212; public static final int notification_subtext_size = 2131034213; public static final int notification_top_pad = 2131034214; public static final int notification_top_pad_large_text = 2131034215; public static final int tooltip_corner_radius = 2131034216; public static final int tooltip_horizontal_padding = 2131034217; public static final int tooltip_margin = 2131034218; public static final int tooltip_precise_anchor_extra_offset = 2131034219; public static final int tooltip_precise_anchor_threshold = 2131034220; public static final int tooltip_vertical_padding = 2131034221; public static final int tooltip_y_offset_non_touch = 2131034222; public static final int tooltip_y_offset_touch = 2131034223; } /* renamed from: android.support.v7.appcompat.R$drawable */ public static final class C0258drawable { public static final int abc_ab_share_pack_mtrl_alpha = 2131099649; public static final int abc_action_bar_item_background_material = 2131099650; public static final int abc_btn_borderless_material = 2131099651; public static final int abc_btn_check_material = 2131099652; public static final int abc_btn_check_to_on_mtrl_000 = 2131099653; public static final int abc_btn_check_to_on_mtrl_015 = 2131099654; public static final int abc_btn_colored_material = 2131099655; public static final int abc_btn_default_mtrl_shape = 2131099656; public static final int abc_btn_radio_material = 2131099657; public static final int abc_btn_radio_to_on_mtrl_000 = 2131099658; public static final int abc_btn_radio_to_on_mtrl_015 = 2131099659; public static final int abc_btn_switch_to_on_mtrl_00001 = 2131099660; public static final int abc_btn_switch_to_on_mtrl_00012 = 2131099661; public static final int abc_cab_background_internal_bg = 2131099662; public static final int abc_cab_background_top_material = 2131099663; public static final int abc_cab_background_top_mtrl_alpha = 2131099664; public static final int abc_control_background_material = 2131099665; public static final int abc_dialog_material_background = 2131099666; public static final int abc_edit_text_material = 2131099667; public static final int abc_ic_ab_back_material = 2131099668; public static final int abc_ic_arrow_drop_right_black_24dp = 2131099669; public static final int abc_ic_clear_material = 2131099670; public static final int abc_ic_commit_search_api_mtrl_alpha = 2131099671; public static final int abc_ic_go_search_api_material = 2131099672; public static final int abc_ic_menu_copy_mtrl_am_alpha = 2131099673; public static final int abc_ic_menu_cut_mtrl_alpha = 2131099674; public static final int abc_ic_menu_overflow_material = 2131099675; public static final int abc_ic_menu_paste_mtrl_am_alpha = 2131099676; public static final int abc_ic_menu_selectall_mtrl_alpha = 2131099677; public static final int abc_ic_menu_share_mtrl_alpha = 2131099678; public static final int abc_ic_search_api_material = 2131099679; public static final int abc_ic_star_black_16dp = 2131099680; public static final int abc_ic_star_black_36dp = 2131099681; public static final int abc_ic_star_black_48dp = 2131099682; public static final int abc_ic_star_half_black_16dp = 2131099683; public static final int abc_ic_star_half_black_36dp = 2131099684; public static final int abc_ic_star_half_black_48dp = 2131099685; public static final int abc_ic_voice_search_api_material = 2131099686; public static final int abc_item_background_holo_dark = 2131099687; public static final int abc_item_background_holo_light = 2131099688; public static final int abc_list_divider_mtrl_alpha = 2131099689; public static final int abc_list_focused_holo = 2131099690; public static final int abc_list_longpressed_holo = 2131099691; public static final int abc_list_pressed_holo_dark = 2131099692; public static final int abc_list_pressed_holo_light = 2131099693; public static final int abc_list_selector_background_transition_holo_dark = 2131099694; public static final int abc_list_selector_background_transition_holo_light = 2131099695; public static final int abc_list_selector_disabled_holo_dark = 2131099696; public static final int abc_list_selector_disabled_holo_light = 2131099697; public static final int abc_list_selector_holo_dark = 2131099698; public static final int abc_list_selector_holo_light = 2131099699; public static final int abc_menu_hardkey_panel_mtrl_mult = 2131099700; public static final int abc_popup_background_mtrl_mult = 2131099701; public static final int abc_ratingbar_indicator_material = 2131099702; public static final int abc_ratingbar_material = 2131099703; public static final int abc_ratingbar_small_material = 2131099704; public static final int abc_scrubber_control_off_mtrl_alpha = 2131099705; public static final int abc_scrubber_control_to_pressed_mtrl_000 = 2131099706; public static final int abc_scrubber_control_to_pressed_mtrl_005 = 2131099707; public static final int abc_scrubber_primary_mtrl_alpha = 2131099708; public static final int abc_scrubber_track_mtrl_alpha = 2131099709; public static final int abc_seekbar_thumb_material = 2131099710; public static final int abc_seekbar_tick_mark_material = 2131099711; public static final int abc_seekbar_track_material = 2131099712; public static final int abc_spinner_mtrl_am_alpha = 2131099713; public static final int abc_spinner_textfield_background_material = 2131099714; public static final int abc_switch_thumb_material = 2131099715; public static final int abc_switch_track_mtrl_alpha = 2131099716; public static final int abc_tab_indicator_material = 2131099717; public static final int abc_tab_indicator_mtrl_alpha = 2131099718; public static final int abc_text_cursor_material = 2131099719; public static final int abc_text_select_handle_left_mtrl_dark = 2131099720; public static final int abc_text_select_handle_left_mtrl_light = 2131099721; public static final int abc_text_select_handle_middle_mtrl_dark = 2131099722; public static final int abc_text_select_handle_middle_mtrl_light = 2131099723; public static final int abc_text_select_handle_right_mtrl_dark = 2131099724; public static final int abc_text_select_handle_right_mtrl_light = 2131099725; public static final int abc_textfield_activated_mtrl_alpha = 2131099726; public static final int abc_textfield_default_mtrl_alpha = 2131099727; public static final int abc_textfield_search_activated_mtrl_alpha = 2131099728; public static final int abc_textfield_search_default_mtrl_alpha = 2131099729; public static final int abc_textfield_search_material = 2131099730; public static final int abc_vector_test = 2131099731; public static final int notification_action_background = 2131099735; public static final int notification_bg = 2131099736; public static final int notification_bg_low = 2131099737; public static final int notification_bg_low_normal = 2131099738; public static final int notification_bg_low_pressed = 2131099739; public static final int notification_bg_normal = 2131099740; public static final int notification_bg_normal_pressed = 2131099741; public static final int notification_icon_background = 2131099742; public static final int notification_template_icon_bg = 2131099743; public static final int notification_template_icon_low_bg = 2131099744; public static final int notification_tile_bg = 2131099745; public static final int notify_panel_notification_icon_bg = 2131099746; public static final int tooltip_frame_dark = 2131099747; public static final int tooltip_frame_light = 2131099748; } /* renamed from: android.support.v7.appcompat.R$id */ public static final class C0259id { public static final int action_bar = 2131165210; public static final int action_bar_activity_content = 2131165211; public static final int action_bar_container = 2131165212; public static final int action_bar_root = 2131165213; public static final int action_bar_spinner = 2131165214; public static final int action_bar_subtitle = 2131165215; public static final int action_bar_title = 2131165216; public static final int action_container = 2131165217; public static final int action_context_bar = 2131165218; public static final int action_divider = 2131165219; public static final int action_image = 2131165220; public static final int action_menu_divider = 2131165221; public static final int action_menu_presenter = 2131165222; public static final int action_mode_bar = 2131165223; public static final int action_mode_bar_stub = 2131165224; public static final int action_mode_close_button = 2131165225; public static final int action_text = 2131165226; public static final int actions = 2131165227; public static final int activity_chooser_view_content = 2131165228; public static final int add = 2131165229; public static final int alertTitle = 2131165230; public static final int async = 2131165233; public static final int blocking = 2131165236; public static final int bottom = 2131165237; public static final int buttonPanel = 2131165238; public static final int checkbox = 2131165244; public static final int chronometer = 2131165245; public static final int contentPanel = 2131165249; public static final int custom = 2131165250; public static final int customPanel = 2131165251; public static final int decor_content_parent = 2131165252; public static final int default_activity_button = 2131165253; public static final int edit_query = 2131165257; public static final int end = 2131165258; public static final int expand_activities_button = 2131165260; public static final int expanded_menu = 2131165261; public static final int forever = 2131165265; public static final int home = 2131165269; public static final int icon = 2131165271; public static final int icon_group = 2131165272; public static final int image = 2131165274; public static final int info = 2131165276; public static final int italic = 2131165278; public static final int left = 2131165279; public static final int line1 = 2131165280; public static final int line3 = 2131165281; public static final int listMode = 2131165282; public static final int list_item = 2131165283; public static final int message = 2131165285; public static final int multiply = 2131165287; public static final int none = 2131165289; public static final int normal = 2131165290; public static final int notification_background = 2131165291; public static final int notification_main_column = 2131165292; public static final int notification_main_column_container = 2131165293; public static final int parentPanel = 2131165296; public static final int progress_circular = 2131165298; public static final int progress_horizontal = 2131165299; public static final int radio = 2131165300; public static final int right = 2131165301; public static final int right_icon = 2131165302; public static final int right_side = 2131165303; public static final int screen = 2131165304; public static final int scrollIndicatorDown = 2131165305; public static final int scrollIndicatorUp = 2131165306; public static final int scrollView = 2131165307; public static final int search_badge = 2131165308; public static final int search_bar = 2131165309; public static final int search_button = 2131165310; public static final int search_close_btn = 2131165311; public static final int search_edit_frame = 2131165312; public static final int search_go_btn = 2131165313; public static final int search_mag_icon = 2131165314; public static final int search_plate = 2131165315; public static final int search_src_text = 2131165316; public static final int search_voice_btn = 2131165317; public static final int select_dialog_listview = 2131165318; public static final int shortcut = 2131165319; public static final int spacer = 2131165323; public static final int split_action_bar = 2131165324; public static final int src_atop = 2131165327; public static final int src_in = 2131165328; public static final int src_over = 2131165329; public static final int start = 2131165331; public static final int submenuarrow = 2131165333; public static final int submit_area = 2131165334; public static final int tabMode = 2131165335; public static final int tag_transition_group = 2131165336; public static final int text = 2131165337; public static final int text2 = 2131165338; public static final int textSpacerNoButtons = 2131165339; public static final int textSpacerNoTitle = 2131165340; public static final int time = 2131165342; public static final int title = 2131165343; public static final int titleDividerNoCustom = 2131165344; public static final int title_template = 2131165345; public static final int top = 2131165346; public static final int topPanel = 2131165347; public static final int uniform = 2131165348; /* renamed from: up */ public static final int f28up = 2131165349; public static final int wrap_content = 2131165353; } /* renamed from: android.support.v7.appcompat.R$integer */ public static final class integer { public static final int abc_config_activityDefaultDur = 2131230720; public static final int abc_config_activityShortDur = 2131230721; public static final int cancel_button_image_alpha = 2131230722; public static final int config_tooltipAnimTime = 2131230723; public static final int status_bar_notification_info_maxnum = 2131230724; } /* renamed from: android.support.v7.appcompat.R$layout */ public static final class layout { public static final int abc_action_bar_title_item = 2131296256; public static final int abc_action_bar_up_container = 2131296257; public static final int abc_action_menu_item_layout = 2131296258; public static final int abc_action_menu_layout = 2131296259; public static final int abc_action_mode_bar = 2131296260; public static final int abc_action_mode_close_item_material = 2131296261; public static final int abc_activity_chooser_view = 2131296262; public static final int abc_activity_chooser_view_list_item = 2131296263; public static final int abc_alert_dialog_button_bar_material = 2131296264; public static final int abc_alert_dialog_material = 2131296265; public static final int abc_alert_dialog_title_material = 2131296266; public static final int abc_dialog_title_material = 2131296267; public static final int abc_expanded_menu_layout = 2131296268; public static final int abc_list_menu_item_checkbox = 2131296269; public static final int abc_list_menu_item_icon = 2131296270; public static final int abc_list_menu_item_layout = 2131296271; public static final int abc_list_menu_item_radio = 2131296272; public static final int abc_popup_menu_header_item_layout = 2131296273; public static final int abc_popup_menu_item_layout = 2131296274; public static final int abc_screen_content_include = 2131296275; public static final int abc_screen_simple = 2131296276; public static final int abc_screen_simple_overlay_action_mode = 2131296277; public static final int abc_screen_toolbar = 2131296278; public static final int abc_search_dropdown_item_icons_2line = 2131296279; public static final int abc_search_view = 2131296280; public static final int abc_select_dialog_material = 2131296281; public static final int abc_tooltip = 2131296282; public static final int notification_action = 2131296287; public static final int notification_action_tombstone = 2131296288; public static final int notification_template_custom_big = 2131296295; public static final int notification_template_icon_group = 2131296296; public static final int notification_template_part_chronometer = 2131296300; public static final int notification_template_part_time = 2131296301; public static final int select_dialog_item_material = 2131296302; public static final int select_dialog_multichoice_material = 2131296303; public static final int select_dialog_singlechoice_material = 2131296304; public static final int support_simple_spinner_dropdown_item = 2131296305; } /* renamed from: android.support.v7.appcompat.R$string */ public static final class string { public static final int abc_action_bar_home_description = 2131492864; public static final int abc_action_bar_up_description = 2131492865; public static final int abc_action_menu_overflow_description = 2131492866; public static final int abc_action_mode_done = 2131492867; public static final int abc_activity_chooser_view_see_all = 2131492868; public static final int abc_activitychooserview_choose_application = 2131492869; public static final int abc_capital_off = 2131492870; public static final int abc_capital_on = 2131492871; public static final int abc_font_family_body_1_material = 2131492872; public static final int abc_font_family_body_2_material = 2131492873; public static final int abc_font_family_button_material = 2131492874; public static final int abc_font_family_caption_material = 2131492875; public static final int abc_font_family_display_1_material = 2131492876; public static final int abc_font_family_display_2_material = 2131492877; public static final int abc_font_family_display_3_material = 2131492878; public static final int abc_font_family_display_4_material = 2131492879; public static final int abc_font_family_headline_material = 2131492880; public static final int abc_font_family_menu_material = 2131492881; public static final int abc_font_family_subhead_material = 2131492882; public static final int abc_font_family_title_material = 2131492883; public static final int abc_search_hint = 2131492884; public static final int abc_searchview_description_clear = 2131492885; public static final int abc_searchview_description_query = 2131492886; public static final int abc_searchview_description_search = 2131492887; public static final int abc_searchview_description_submit = 2131492888; public static final int abc_searchview_description_voice = 2131492889; public static final int abc_shareactionprovider_share_with = 2131492890; public static final int abc_shareactionprovider_share_with_application = 2131492891; public static final int abc_toolbar_collapse_description = 2131492892; public static final int search_menu_title = 2131492894; public static final int status_bar_notification_info_overflow = 2131492895; } /* renamed from: android.support.v7.appcompat.R$style */ public static final class style { public static final int AlertDialog_AppCompat = 2131558400; public static final int AlertDialog_AppCompat_Light = 2131558401; public static final int Animation_AppCompat_Dialog = 2131558402; public static final int Animation_AppCompat_DropDownUp = 2131558403; public static final int Animation_AppCompat_Tooltip = 2131558404; public static final int Base_AlertDialog_AppCompat = 2131558406; public static final int Base_AlertDialog_AppCompat_Light = 2131558407; public static final int Base_Animation_AppCompat_Dialog = 2131558408; public static final int Base_Animation_AppCompat_DropDownUp = 2131558409; public static final int Base_Animation_AppCompat_Tooltip = 2131558410; public static final int Base_DialogWindowTitleBackground_AppCompat = 2131558412; public static final int Base_DialogWindowTitle_AppCompat = 2131558411; public static final int Base_TextAppearance_AppCompat = 2131558413; public static final int Base_TextAppearance_AppCompat_Body1 = 2131558414; public static final int Base_TextAppearance_AppCompat_Body2 = 2131558415; public static final int Base_TextAppearance_AppCompat_Button = 2131558416; public static final int Base_TextAppearance_AppCompat_Caption = 2131558417; public static final int Base_TextAppearance_AppCompat_Display1 = 2131558418; public static final int Base_TextAppearance_AppCompat_Display2 = 2131558419; public static final int Base_TextAppearance_AppCompat_Display3 = 2131558420; public static final int Base_TextAppearance_AppCompat_Display4 = 2131558421; public static final int Base_TextAppearance_AppCompat_Headline = 2131558422; public static final int Base_TextAppearance_AppCompat_Inverse = 2131558423; public static final int Base_TextAppearance_AppCompat_Large = 2131558424; public static final int Base_TextAppearance_AppCompat_Large_Inverse = 2131558425; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131558426; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131558427; public static final int Base_TextAppearance_AppCompat_Medium = 2131558428; public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 2131558429; public static final int Base_TextAppearance_AppCompat_Menu = 2131558430; public static final int Base_TextAppearance_AppCompat_SearchResult = 2131558431; public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 2131558432; public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 2131558433; public static final int Base_TextAppearance_AppCompat_Small = 2131558434; public static final int Base_TextAppearance_AppCompat_Small_Inverse = 2131558435; public static final int Base_TextAppearance_AppCompat_Subhead = 2131558436; public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 2131558437; public static final int Base_TextAppearance_AppCompat_Title = 2131558438; public static final int Base_TextAppearance_AppCompat_Title_Inverse = 2131558439; public static final int Base_TextAppearance_AppCompat_Tooltip = 2131558440; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131558441; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131558442; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131558443; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 2131558444; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131558445; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131558446; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 2131558447; public static final int Base_TextAppearance_AppCompat_Widget_Button = 2131558448; public static final int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131558449; public static final int Base_TextAppearance_AppCompat_Widget_Button_Colored = 2131558450; public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 2131558451; public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 2131558452; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131558453; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131558454; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131558455; public static final int Base_TextAppearance_AppCompat_Widget_Switch = 2131558456; public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131558457; public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131558458; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131558459; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 2131558460; public static final int Base_ThemeOverlay_AppCompat = 2131558475; public static final int Base_ThemeOverlay_AppCompat_ActionBar = 2131558476; public static final int Base_ThemeOverlay_AppCompat_Dark = 2131558477; public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 2131558478; public static final int Base_ThemeOverlay_AppCompat_Dialog = 2131558479; public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 2131558480; public static final int Base_ThemeOverlay_AppCompat_Light = 2131558481; public static final int Base_Theme_AppCompat = 2131558461; public static final int Base_Theme_AppCompat_CompactMenu = 2131558462; public static final int Base_Theme_AppCompat_Dialog = 2131558463; public static final int Base_Theme_AppCompat_DialogWhenLarge = 2131558467; public static final int Base_Theme_AppCompat_Dialog_Alert = 2131558464; public static final int Base_Theme_AppCompat_Dialog_FixedSize = 2131558465; public static final int Base_Theme_AppCompat_Dialog_MinWidth = 2131558466; public static final int Base_Theme_AppCompat_Light = 2131558468; public static final int Base_Theme_AppCompat_Light_DarkActionBar = 2131558469; public static final int Base_Theme_AppCompat_Light_Dialog = 2131558470; public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 2131558474; public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 2131558471; public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 2131558472; public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 2131558473; public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 2131558486; public static final int Base_V21_Theme_AppCompat = 2131558482; public static final int Base_V21_Theme_AppCompat_Dialog = 2131558483; public static final int Base_V21_Theme_AppCompat_Light = 2131558484; public static final int Base_V21_Theme_AppCompat_Light_Dialog = 2131558485; public static final int Base_V22_Theme_AppCompat = 2131558487; public static final int Base_V22_Theme_AppCompat_Light = 2131558488; public static final int Base_V23_Theme_AppCompat = 2131558489; public static final int Base_V23_Theme_AppCompat_Light = 2131558490; public static final int Base_V26_Theme_AppCompat = 2131558491; public static final int Base_V26_Theme_AppCompat_Light = 2131558492; public static final int Base_V26_Widget_AppCompat_Toolbar = 2131558493; public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 2131558498; public static final int Base_V7_Theme_AppCompat = 2131558494; public static final int Base_V7_Theme_AppCompat_Dialog = 2131558495; public static final int Base_V7_Theme_AppCompat_Light = 2131558496; public static final int Base_V7_Theme_AppCompat_Light_Dialog = 2131558497; public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 2131558499; public static final int Base_V7_Widget_AppCompat_EditText = 2131558500; public static final int Base_V7_Widget_AppCompat_Toolbar = 2131558501; public static final int Base_Widget_AppCompat_ActionBar = 2131558502; public static final int Base_Widget_AppCompat_ActionBar_Solid = 2131558503; public static final int Base_Widget_AppCompat_ActionBar_TabBar = 2131558504; public static final int Base_Widget_AppCompat_ActionBar_TabText = 2131558505; public static final int Base_Widget_AppCompat_ActionBar_TabView = 2131558506; public static final int Base_Widget_AppCompat_ActionButton = 2131558507; public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 2131558508; public static final int Base_Widget_AppCompat_ActionButton_Overflow = 2131558509; public static final int Base_Widget_AppCompat_ActionMode = 2131558510; public static final int Base_Widget_AppCompat_ActivityChooserView = 2131558511; public static final int Base_Widget_AppCompat_AutoCompleteTextView = 2131558512; public static final int Base_Widget_AppCompat_Button = 2131558513; public static final int Base_Widget_AppCompat_ButtonBar = 2131558519; public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 2131558520; public static final int Base_Widget_AppCompat_Button_Borderless = 2131558514; public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 2131558515; public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131558516; public static final int Base_Widget_AppCompat_Button_Colored = 2131558517; public static final int Base_Widget_AppCompat_Button_Small = 2131558518; public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 2131558521; public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 2131558522; public static final int Base_Widget_AppCompat_CompoundButton_Switch = 2131558523; public static final int Base_Widget_AppCompat_DrawerArrowToggle = 2131558524; public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 2131558525; public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 2131558526; public static final int Base_Widget_AppCompat_EditText = 2131558527; public static final int Base_Widget_AppCompat_ImageButton = 2131558528; public static final int Base_Widget_AppCompat_Light_ActionBar = 2131558529; public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 2131558530; public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 2131558531; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 2131558532; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131558533; public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 2131558534; public static final int Base_Widget_AppCompat_Light_PopupMenu = 2131558535; public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 2131558536; public static final int Base_Widget_AppCompat_ListMenuView = 2131558537; public static final int Base_Widget_AppCompat_ListPopupWindow = 2131558538; public static final int Base_Widget_AppCompat_ListView = 2131558539; public static final int Base_Widget_AppCompat_ListView_DropDown = 2131558540; public static final int Base_Widget_AppCompat_ListView_Menu = 2131558541; public static final int Base_Widget_AppCompat_PopupMenu = 2131558542; public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 2131558543; public static final int Base_Widget_AppCompat_PopupWindow = 2131558544; public static final int Base_Widget_AppCompat_ProgressBar = 2131558545; public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 2131558546; public static final int Base_Widget_AppCompat_RatingBar = 2131558547; public static final int Base_Widget_AppCompat_RatingBar_Indicator = 2131558548; public static final int Base_Widget_AppCompat_RatingBar_Small = 2131558549; public static final int Base_Widget_AppCompat_SearchView = 2131558550; public static final int Base_Widget_AppCompat_SearchView_ActionBar = 2131558551; public static final int Base_Widget_AppCompat_SeekBar = 2131558552; public static final int Base_Widget_AppCompat_SeekBar_Discrete = 2131558553; public static final int Base_Widget_AppCompat_Spinner = 2131558554; public static final int Base_Widget_AppCompat_Spinner_Underlined = 2131558555; public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 2131558556; public static final int Base_Widget_AppCompat_Toolbar = 2131558557; public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 2131558558; public static final int Platform_AppCompat = 2131558559; public static final int Platform_AppCompat_Light = 2131558560; public static final int Platform_ThemeOverlay_AppCompat = 2131558561; public static final int Platform_ThemeOverlay_AppCompat_Dark = 2131558562; public static final int Platform_ThemeOverlay_AppCompat_Light = 2131558563; public static final int Platform_V21_AppCompat = 2131558564; public static final int Platform_V21_AppCompat_Light = 2131558565; public static final int Platform_V25_AppCompat = 2131558566; public static final int Platform_V25_AppCompat_Light = 2131558567; public static final int Platform_Widget_AppCompat_Spinner = 2131558568; public static final int RtlOverlay_DialogWindowTitle_AppCompat = 2131558569; public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 2131558570; public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 2131558571; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 2131558572; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 2131558573; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 2131558574; public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 2131558580; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 2131558575; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 2131558576; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 2131558577; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 2131558578; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 2131558579; public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 2131558581; public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 2131558582; public static final int TextAppearance_AppCompat = 2131558583; public static final int TextAppearance_AppCompat_Body1 = 2131558584; public static final int TextAppearance_AppCompat_Body2 = 2131558585; public static final int TextAppearance_AppCompat_Button = 2131558586; public static final int TextAppearance_AppCompat_Caption = 2131558587; public static final int TextAppearance_AppCompat_Display1 = 2131558588; public static final int TextAppearance_AppCompat_Display2 = 2131558589; public static final int TextAppearance_AppCompat_Display3 = 2131558590; public static final int TextAppearance_AppCompat_Display4 = 2131558591; public static final int TextAppearance_AppCompat_Headline = 2131558592; public static final int TextAppearance_AppCompat_Inverse = 2131558593; public static final int TextAppearance_AppCompat_Large = 2131558594; public static final int TextAppearance_AppCompat_Large_Inverse = 2131558595; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 2131558596; public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 2131558597; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131558598; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131558599; public static final int TextAppearance_AppCompat_Medium = 2131558600; public static final int TextAppearance_AppCompat_Medium_Inverse = 2131558601; public static final int TextAppearance_AppCompat_Menu = 2131558602; public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 2131558603; public static final int TextAppearance_AppCompat_SearchResult_Title = 2131558604; public static final int TextAppearance_AppCompat_Small = 2131558605; public static final int TextAppearance_AppCompat_Small_Inverse = 2131558606; public static final int TextAppearance_AppCompat_Subhead = 2131558607; public static final int TextAppearance_AppCompat_Subhead_Inverse = 2131558608; public static final int TextAppearance_AppCompat_Title = 2131558609; public static final int TextAppearance_AppCompat_Title_Inverse = 2131558610; public static final int TextAppearance_AppCompat_Tooltip = 2131558611; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131558612; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131558613; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131558614; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 2131558615; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131558616; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131558617; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 2131558618; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 2131558619; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 2131558620; public static final int TextAppearance_AppCompat_Widget_Button = 2131558621; public static final int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131558622; public static final int TextAppearance_AppCompat_Widget_Button_Colored = 2131558623; public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 2131558624; public static final int TextAppearance_AppCompat_Widget_DropDownItem = 2131558625; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131558626; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131558627; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131558628; public static final int TextAppearance_AppCompat_Widget_Switch = 2131558629; public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131558630; public static final int TextAppearance_Compat_Notification = 2131558631; public static final int TextAppearance_Compat_Notification_Info = 2131558632; public static final int TextAppearance_Compat_Notification_Line2 = 2131558634; public static final int TextAppearance_Compat_Notification_Time = 2131558637; public static final int TextAppearance_Compat_Notification_Title = 2131558639; public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131558641; public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131558642; public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 2131558643; public static final int ThemeOverlay_AppCompat = 2131558665; public static final int ThemeOverlay_AppCompat_ActionBar = 2131558666; public static final int ThemeOverlay_AppCompat_Dark = 2131558667; public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 2131558668; public static final int ThemeOverlay_AppCompat_Dialog = 2131558669; public static final int ThemeOverlay_AppCompat_Dialog_Alert = 2131558670; public static final int ThemeOverlay_AppCompat_Light = 2131558671; public static final int Theme_AppCompat = 2131558644; public static final int Theme_AppCompat_CompactMenu = 2131558645; public static final int Theme_AppCompat_DayNight = 2131558646; public static final int Theme_AppCompat_DayNight_DarkActionBar = 2131558647; public static final int Theme_AppCompat_DayNight_Dialog = 2131558648; public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 2131558651; public static final int Theme_AppCompat_DayNight_Dialog_Alert = 2131558649; public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 2131558650; public static final int Theme_AppCompat_DayNight_NoActionBar = 2131558652; public static final int Theme_AppCompat_Dialog = 2131558653; public static final int Theme_AppCompat_DialogWhenLarge = 2131558656; public static final int Theme_AppCompat_Dialog_Alert = 2131558654; public static final int Theme_AppCompat_Dialog_MinWidth = 2131558655; public static final int Theme_AppCompat_Light = 2131558657; public static final int Theme_AppCompat_Light_DarkActionBar = 2131558658; public static final int Theme_AppCompat_Light_Dialog = 2131558659; public static final int Theme_AppCompat_Light_DialogWhenLarge = 2131558662; public static final int Theme_AppCompat_Light_Dialog_Alert = 2131558660; public static final int Theme_AppCompat_Light_Dialog_MinWidth = 2131558661; public static final int Theme_AppCompat_Light_NoActionBar = 2131558663; public static final int Theme_AppCompat_NoActionBar = 2131558664; public static final int Widget_AppCompat_ActionBar = 2131558672; public static final int Widget_AppCompat_ActionBar_Solid = 2131558673; public static final int Widget_AppCompat_ActionBar_TabBar = 2131558674; public static final int Widget_AppCompat_ActionBar_TabText = 2131558675; public static final int Widget_AppCompat_ActionBar_TabView = 2131558676; public static final int Widget_AppCompat_ActionButton = 2131558677; public static final int Widget_AppCompat_ActionButton_CloseMode = 2131558678; public static final int Widget_AppCompat_ActionButton_Overflow = 2131558679; public static final int Widget_AppCompat_ActionMode = 2131558680; public static final int Widget_AppCompat_ActivityChooserView = 2131558681; public static final int Widget_AppCompat_AutoCompleteTextView = 2131558682; public static final int Widget_AppCompat_Button = 2131558683; public static final int Widget_AppCompat_ButtonBar = 2131558689; public static final int Widget_AppCompat_ButtonBar_AlertDialog = 2131558690; public static final int Widget_AppCompat_Button_Borderless = 2131558684; public static final int Widget_AppCompat_Button_Borderless_Colored = 2131558685; public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131558686; public static final int Widget_AppCompat_Button_Colored = 2131558687; public static final int Widget_AppCompat_Button_Small = 2131558688; public static final int Widget_AppCompat_CompoundButton_CheckBox = 2131558691; public static final int Widget_AppCompat_CompoundButton_RadioButton = 2131558692; public static final int Widget_AppCompat_CompoundButton_Switch = 2131558693; public static final int Widget_AppCompat_DrawerArrowToggle = 2131558694; public static final int Widget_AppCompat_DropDownItem_Spinner = 2131558695; public static final int Widget_AppCompat_EditText = 2131558696; public static final int Widget_AppCompat_ImageButton = 2131558697; public static final int Widget_AppCompat_Light_ActionBar = 2131558698; public static final int Widget_AppCompat_Light_ActionBar_Solid = 2131558699; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 2131558700; public static final int Widget_AppCompat_Light_ActionBar_TabBar = 2131558701; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 2131558702; public static final int Widget_AppCompat_Light_ActionBar_TabText = 2131558703; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131558704; public static final int Widget_AppCompat_Light_ActionBar_TabView = 2131558705; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 2131558706; public static final int Widget_AppCompat_Light_ActionButton = 2131558707; public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 2131558708; public static final int Widget_AppCompat_Light_ActionButton_Overflow = 2131558709; public static final int Widget_AppCompat_Light_ActionMode_Inverse = 2131558710; public static final int Widget_AppCompat_Light_ActivityChooserView = 2131558711; public static final int Widget_AppCompat_Light_AutoCompleteTextView = 2131558712; public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 2131558713; public static final int Widget_AppCompat_Light_ListPopupWindow = 2131558714; public static final int Widget_AppCompat_Light_ListView_DropDown = 2131558715; public static final int Widget_AppCompat_Light_PopupMenu = 2131558716; public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 2131558717; public static final int Widget_AppCompat_Light_SearchView = 2131558718; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 2131558719; public static final int Widget_AppCompat_ListMenuView = 2131558720; public static final int Widget_AppCompat_ListPopupWindow = 2131558721; public static final int Widget_AppCompat_ListView = 2131558722; public static final int Widget_AppCompat_ListView_DropDown = 2131558723; public static final int Widget_AppCompat_ListView_Menu = 2131558724; public static final int Widget_AppCompat_PopupMenu = 2131558725; public static final int Widget_AppCompat_PopupMenu_Overflow = 2131558726; public static final int Widget_AppCompat_PopupWindow = 2131558727; public static final int Widget_AppCompat_ProgressBar = 2131558728; public static final int Widget_AppCompat_ProgressBar_Horizontal = 2131558729; public static final int Widget_AppCompat_RatingBar = 2131558730; public static final int Widget_AppCompat_RatingBar_Indicator = 2131558731; public static final int Widget_AppCompat_RatingBar_Small = 2131558732; public static final int Widget_AppCompat_SearchView = 2131558733; public static final int Widget_AppCompat_SearchView_ActionBar = 2131558734; public static final int Widget_AppCompat_SeekBar = 2131558735; public static final int Widget_AppCompat_SeekBar_Discrete = 2131558736; public static final int Widget_AppCompat_Spinner = 2131558737; public static final int Widget_AppCompat_Spinner_DropDown = 2131558738; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 2131558739; public static final int Widget_AppCompat_Spinner_Underlined = 2131558740; public static final int Widget_AppCompat_TextView_SpinnerItem = 2131558741; public static final int Widget_AppCompat_Toolbar = 2131558742; public static final int Widget_AppCompat_Toolbar_Button_Navigation = 2131558743; public static final int Widget_Compat_NotificationActionContainer = 2131558744; public static final int Widget_Compat_NotificationActionText = 2131558745; public static final int Widget_Support_CoordinatorLayout = 2131558746; } /* renamed from: android.support.v7.appcompat.R$styleable */ public static final class styleable { public static final int[] ActionBar = {C0010R.attr.background, C0010R.attr.backgroundSplit, C0010R.attr.backgroundStacked, C0010R.attr.contentInsetEnd, C0010R.attr.contentInsetEndWithActions, C0010R.attr.contentInsetLeft, C0010R.attr.contentInsetRight, C0010R.attr.contentInsetStart, C0010R.attr.contentInsetStartWithNavigation, C0010R.attr.customNavigationLayout, C0010R.attr.displayOptions, C0010R.attr.divider, C0010R.attr.elevation, C0010R.attr.height, C0010R.attr.hideOnContentScroll, C0010R.attr.homeAsUpIndicator, C0010R.attr.homeLayout, C0010R.attr.icon, C0010R.attr.indeterminateProgressStyle, C0010R.attr.itemPadding, C0010R.attr.logo, C0010R.attr.navigationMode, C0010R.attr.popupTheme, C0010R.attr.progressBarPadding, C0010R.attr.progressBarStyle, C0010R.attr.subtitle, C0010R.attr.subtitleTextStyle, C0010R.attr.title, C0010R.attr.titleTextStyle}; public static final int[] ActionBarLayout = {16842931}; public static final int ActionBarLayout_android_layout_gravity = 0; 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[] ActionMenuItemView = {16843071}; public static final int ActionMenuItemView_android_minWidth = 0; public static final int[] ActionMode = {C0010R.attr.background, C0010R.attr.backgroundSplit, C0010R.attr.closeItemLayout, C0010R.attr.height, C0010R.attr.subtitleTextStyle, C0010R.attr.titleTextStyle}; 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 = {C0010R.attr.expandActivityOverflowButtonDrawable, C0010R.attr.initialActivityCount}; public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0; public static final int ActivityChooserView_initialActivityCount = 1; public static final int[] AlertDialog = {16842994, C0010R.attr.buttonIconDimen, C0010R.attr.buttonPanelSideLayout, C0010R.attr.listItemLayout, C0010R.attr.listLayout, C0010R.attr.multiChoiceItemLayout, C0010R.attr.showTitle, C0010R.attr.singleChoiceItemLayout}; 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[] AppCompatImageView = {16843033, C0010R.attr.srcCompat, C0010R.attr.tint, C0010R.attr.tintMode}; 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 = {16843074, C0010R.attr.tickMark, C0010R.attr.tickMarkTint, C0010R.attr.tickMarkTintMode}; 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 = {16842804, 16843117, 16843118, 16843119, 16843120, 16843666, 16843667}; public static final int AppCompatTextHelper_android_drawableBottom = 2; public static final int AppCompatTextHelper_android_drawableEnd = 6; 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_drawableTop = 1; public static final int AppCompatTextHelper_android_textAppearance = 0; public static final int[] AppCompatTextView = {16842804, C0010R.attr.autoSizeMaxTextSize, C0010R.attr.autoSizeMinTextSize, C0010R.attr.autoSizePresetSizes, C0010R.attr.autoSizeStepGranularity, C0010R.attr.autoSizeTextType, C0010R.attr.fontFamily, C0010R.attr.textAllCaps}; 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_fontFamily = 6; public static final int AppCompatTextView_textAllCaps = 7; public static final int[] AppCompatTheme = {16842839, 16842926, C0010R.attr.actionBarDivider, C0010R.attr.actionBarItemBackground, C0010R.attr.actionBarPopupTheme, C0010R.attr.actionBarSize, C0010R.attr.actionBarSplitStyle, C0010R.attr.actionBarStyle, C0010R.attr.actionBarTabBarStyle, C0010R.attr.actionBarTabStyle, C0010R.attr.actionBarTabTextStyle, C0010R.attr.actionBarTheme, C0010R.attr.actionBarWidgetTheme, C0010R.attr.actionButtonStyle, C0010R.attr.actionDropDownStyle, C0010R.attr.actionMenuTextAppearance, C0010R.attr.actionMenuTextColor, C0010R.attr.actionModeBackground, C0010R.attr.actionModeCloseButtonStyle, C0010R.attr.actionModeCloseDrawable, C0010R.attr.actionModeCopyDrawable, C0010R.attr.actionModeCutDrawable, C0010R.attr.actionModeFindDrawable, C0010R.attr.actionModePasteDrawable, C0010R.attr.actionModePopupWindowStyle, C0010R.attr.actionModeSelectAllDrawable, C0010R.attr.actionModeShareDrawable, C0010R.attr.actionModeSplitBackground, C0010R.attr.actionModeStyle, C0010R.attr.actionModeWebSearchDrawable, C0010R.attr.actionOverflowButtonStyle, C0010R.attr.actionOverflowMenuStyle, C0010R.attr.activityChooserViewStyle, C0010R.attr.alertDialogButtonGroupStyle, C0010R.attr.alertDialogCenterButtons, C0010R.attr.alertDialogStyle, C0010R.attr.alertDialogTheme, C0010R.attr.autoCompleteTextViewStyle, C0010R.attr.borderlessButtonStyle, C0010R.attr.buttonBarButtonStyle, C0010R.attr.buttonBarNegativeButtonStyle, C0010R.attr.buttonBarNeutralButtonStyle, C0010R.attr.buttonBarPositiveButtonStyle, C0010R.attr.buttonBarStyle, C0010R.attr.buttonStyle, C0010R.attr.buttonStyleSmall, C0010R.attr.checkboxStyle, C0010R.attr.checkedTextViewStyle, C0010R.attr.colorAccent, C0010R.attr.colorBackgroundFloating, C0010R.attr.colorButtonNormal, C0010R.attr.colorControlActivated, C0010R.attr.colorControlHighlight, C0010R.attr.colorControlNormal, C0010R.attr.colorError, C0010R.attr.colorPrimary, C0010R.attr.colorPrimaryDark, C0010R.attr.colorSwitchThumbNormal, C0010R.attr.controlBackground, C0010R.attr.dialogPreferredPadding, C0010R.attr.dialogTheme, C0010R.attr.dividerHorizontal, C0010R.attr.dividerVertical, C0010R.attr.dropDownListViewStyle, C0010R.attr.dropdownListPreferredItemHeight, C0010R.attr.editTextBackground, C0010R.attr.editTextColor, C0010R.attr.editTextStyle, C0010R.attr.homeAsUpIndicator, C0010R.attr.imageButtonStyle, C0010R.attr.listChoiceBackgroundIndicator, C0010R.attr.listDividerAlertDialog, C0010R.attr.listMenuViewStyle, C0010R.attr.listPopupWindowStyle, C0010R.attr.listPreferredItemHeight, C0010R.attr.listPreferredItemHeightLarge, C0010R.attr.listPreferredItemHeightSmall, C0010R.attr.listPreferredItemPaddingLeft, C0010R.attr.listPreferredItemPaddingRight, C0010R.attr.panelBackground, C0010R.attr.panelMenuListTheme, C0010R.attr.panelMenuListWidth, C0010R.attr.popupMenuStyle, C0010R.attr.popupWindowStyle, C0010R.attr.radioButtonStyle, C0010R.attr.ratingBarStyle, C0010R.attr.ratingBarStyleIndicator, C0010R.attr.ratingBarStyleSmall, C0010R.attr.searchViewStyle, C0010R.attr.seekBarStyle, C0010R.attr.selectableItemBackground, C0010R.attr.selectableItemBackgroundBorderless, C0010R.attr.spinnerDropDownItemStyle, C0010R.attr.spinnerStyle, C0010R.attr.switchStyle, C0010R.attr.textAppearanceLargePopupMenu, C0010R.attr.textAppearanceListItem, C0010R.attr.textAppearanceListItemSecondary, C0010R.attr.textAppearanceListItemSmall, C0010R.attr.textAppearancePopupMenuHeader, C0010R.attr.textAppearanceSearchResultSubtitle, C0010R.attr.textAppearanceSearchResultTitle, C0010R.attr.textAppearanceSmallPopupMenu, C0010R.attr.textColorAlertDialogListItem, C0010R.attr.textColorSearchUrl, C0010R.attr.toolbarNavigationButtonStyle, C0010R.attr.toolbarStyle, C0010R.attr.tooltipForegroundColor, C0010R.attr.tooltipFrameBackground, C0010R.attr.viewInflaterClass, C0010R.attr.windowActionBar, C0010R.attr.windowActionBarOverlay, C0010R.attr.windowActionModeOverlay, C0010R.attr.windowFixedHeightMajor, C0010R.attr.windowFixedHeightMinor, C0010R.attr.windowFixedWidthMajor, C0010R.attr.windowFixedWidthMinor, C0010R.attr.windowMinWidthMajor, C0010R.attr.windowMinWidthMinor, C0010R.attr.windowNoTitle}; 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_android_windowAnimationStyle = 1; public static final int AppCompatTheme_android_windowIsFloating = 0; 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_dialogPreferredPadding = 59; public static final int AppCompatTheme_dialogTheme = 60; public static final int AppCompatTheme_dividerHorizontal = 61; public static final int AppCompatTheme_dividerVertical = 62; public static final int AppCompatTheme_dropDownListViewStyle = 63; public static final int AppCompatTheme_dropdownListPreferredItemHeight = 64; public static final int AppCompatTheme_editTextBackground = 65; public static final int AppCompatTheme_editTextColor = 66; public static final int AppCompatTheme_editTextStyle = 67; public static final int AppCompatTheme_homeAsUpIndicator = 68; public static final int AppCompatTheme_imageButtonStyle = 69; public static final int AppCompatTheme_listChoiceBackgroundIndicator = 70; public static final int AppCompatTheme_listDividerAlertDialog = 71; public static final int AppCompatTheme_listMenuViewStyle = 72; public static final int AppCompatTheme_listPopupWindowStyle = 73; public static final int AppCompatTheme_listPreferredItemHeight = 74; public static final int AppCompatTheme_listPreferredItemHeightLarge = 75; public static final int AppCompatTheme_listPreferredItemHeightSmall = 76; public static final int AppCompatTheme_listPreferredItemPaddingLeft = 77; public static final int AppCompatTheme_listPreferredItemPaddingRight = 78; public static final int AppCompatTheme_panelBackground = 79; public static final int AppCompatTheme_panelMenuListTheme = 80; public static final int AppCompatTheme_panelMenuListWidth = 81; public static final int AppCompatTheme_popupMenuStyle = 82; public static final int AppCompatTheme_popupWindowStyle = 83; public static final int AppCompatTheme_radioButtonStyle = 84; public static final int AppCompatTheme_ratingBarStyle = 85; public static final int AppCompatTheme_ratingBarStyleIndicator = 86; public static final int AppCompatTheme_ratingBarStyleSmall = 87; public static final int AppCompatTheme_searchViewStyle = 88; public static final int AppCompatTheme_seekBarStyle = 89; public static final int AppCompatTheme_selectableItemBackground = 90; public static final int AppCompatTheme_selectableItemBackgroundBorderless = 91; public static final int AppCompatTheme_spinnerDropDownItemStyle = 92; public static final int AppCompatTheme_spinnerStyle = 93; public static final int AppCompatTheme_switchStyle = 94; public static final int AppCompatTheme_textAppearanceLargePopupMenu = 95; public static final int AppCompatTheme_textAppearanceListItem = 96; public static final int AppCompatTheme_textAppearanceListItemSecondary = 97; public static final int AppCompatTheme_textAppearanceListItemSmall = 98; public static final int AppCompatTheme_textAppearancePopupMenuHeader = 99; public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 100; public static final int AppCompatTheme_textAppearanceSearchResultTitle = 101; public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 102; public static final int AppCompatTheme_textColorAlertDialogListItem = 103; public static final int AppCompatTheme_textColorSearchUrl = 104; public static final int AppCompatTheme_toolbarNavigationButtonStyle = 105; public static final int AppCompatTheme_toolbarStyle = 106; public static final int AppCompatTheme_tooltipForegroundColor = 107; public static final int AppCompatTheme_tooltipFrameBackground = 108; public static final int AppCompatTheme_viewInflaterClass = 109; public static final int AppCompatTheme_windowActionBar = 110; public static final int AppCompatTheme_windowActionBarOverlay = 111; public static final int AppCompatTheme_windowActionModeOverlay = 112; public static final int AppCompatTheme_windowFixedHeightMajor = 113; public static final int AppCompatTheme_windowFixedHeightMinor = 114; public static final int AppCompatTheme_windowFixedWidthMajor = 115; public static final int AppCompatTheme_windowFixedWidthMinor = 116; public static final int AppCompatTheme_windowMinWidthMajor = 117; public static final int AppCompatTheme_windowMinWidthMinor = 118; public static final int AppCompatTheme_windowNoTitle = 119; public static final int[] ButtonBarLayout = {C0010R.attr.allowStacking}; public static final int ButtonBarLayout_allowStacking = 0; public static final int[] ColorStateListItem = {16843173, 16843551, C0010R.attr.alpha}; public static final int ColorStateListItem_alpha = 2; public static final int ColorStateListItem_android_alpha = 1; public static final int ColorStateListItem_android_color = 0; public static final int[] CompoundButton = {16843015, C0010R.attr.buttonTint, C0010R.attr.buttonTintMode}; public static final int CompoundButton_android_button = 0; public static final int CompoundButton_buttonTint = 1; public static final int CompoundButton_buttonTintMode = 2; public static final int[] CoordinatorLayout = {C0010R.attr.keylines, C0010R.attr.statusBarBackground}; public static final int[] CoordinatorLayout_Layout = {16842931, C0010R.attr.layout_anchor, C0010R.attr.layout_anchorGravity, C0010R.attr.layout_behavior, C0010R.attr.layout_dodgeInsetEdges, C0010R.attr.layout_insetEdge, C0010R.attr.layout_keyline}; public static final int CoordinatorLayout_Layout_android_layout_gravity = 0; public static final int CoordinatorLayout_Layout_layout_anchor = 1; public static final int CoordinatorLayout_Layout_layout_anchorGravity = 2; public static final int CoordinatorLayout_Layout_layout_behavior = 3; public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4; public static final int CoordinatorLayout_Layout_layout_insetEdge = 5; public static final int CoordinatorLayout_Layout_layout_keyline = 6; public static final int CoordinatorLayout_keylines = 0; public static final int CoordinatorLayout_statusBarBackground = 1; public static final int[] DrawerArrowToggle = {C0010R.attr.arrowHeadLength, C0010R.attr.arrowShaftLength, C0010R.attr.barLength, C0010R.attr.color, C0010R.attr.drawableSize, C0010R.attr.gapBetweenBars, C0010R.attr.spinBars, C0010R.attr.thickness}; 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 = {C0010R.attr.fontProviderAuthority, C0010R.attr.fontProviderCerts, C0010R.attr.fontProviderFetchStrategy, C0010R.attr.fontProviderFetchTimeout, C0010R.attr.fontProviderPackage, C0010R.attr.fontProviderQuery}; public static final int[] FontFamilyFont = {16844082, 16844083, 16844095, C0010R.attr.font, C0010R.attr.fontStyle, C0010R.attr.fontWeight}; public static final int FontFamilyFont_android_font = 0; public static final int FontFamilyFont_android_fontStyle = 2; public static final int FontFamilyFont_android_fontWeight = 1; public static final int FontFamilyFont_font = 3; public static final int FontFamilyFont_fontStyle = 4; public static final int FontFamilyFont_fontWeight = 5; 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[] LinearLayoutCompat = {16842927, 16842948, 16843046, 16843047, 16843048, C0010R.attr.divider, C0010R.attr.dividerPadding, C0010R.attr.measureWithLargestChild, C0010R.attr.showDividers}; public static final int[] LinearLayoutCompat_Layout = {16842931, 16842996, 16842997, 16843137}; public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0; public static final int LinearLayoutCompat_Layout_android_layout_height = 2; public static final int LinearLayoutCompat_Layout_android_layout_weight = 3; public static final int LinearLayoutCompat_Layout_android_layout_width = 1; public static final int LinearLayoutCompat_android_baselineAligned = 2; public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; public static final int LinearLayoutCompat_android_gravity = 0; public static final int LinearLayoutCompat_android_orientation = 1; public static final int LinearLayoutCompat_android_weightSum = 4; public static final int LinearLayoutCompat_divider = 5; public static final int LinearLayoutCompat_dividerPadding = 6; public static final int LinearLayoutCompat_measureWithLargestChild = 7; public static final int LinearLayoutCompat_showDividers = 8; public static final int[] ListPopupWindow = {16843436, 16843437}; public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0; public static final int ListPopupWindow_android_dropDownVerticalOffset = 1; public static final int[] MenuGroup = {16842766, 16842960, 16843156, 16843230, 16843231, 16843232}; public static final int MenuGroup_android_checkableBehavior = 5; public static final int MenuGroup_android_enabled = 0; public static final int MenuGroup_android_id = 1; public static final int MenuGroup_android_menuCategory = 3; public static final int MenuGroup_android_orderInCategory = 4; public static final int MenuGroup_android_visible = 2; public static final int[] MenuItem = {16842754, 16842766, 16842960, 16843014, 16843156, 16843230, 16843231, 16843233, 16843234, 16843235, 16843236, 16843237, 16843375, C0010R.attr.actionLayout, C0010R.attr.actionProviderClass, C0010R.attr.actionViewClass, C0010R.attr.alphabeticModifiers, C0010R.attr.contentDescription, C0010R.attr.iconTint, C0010R.attr.iconTintMode, C0010R.attr.numericModifiers, C0010R.attr.showAsAction, C0010R.attr.tooltipText}; 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_android_alphabeticShortcut = 9; public static final int MenuItem_android_checkable = 11; public static final int MenuItem_android_checked = 3; public static final int MenuItem_android_enabled = 1; public static final int MenuItem_android_icon = 0; public static final int MenuItem_android_id = 2; public static final int MenuItem_android_menuCategory = 5; public static final int MenuItem_android_numericShortcut = 10; public static final int MenuItem_android_onClick = 12; public static final int MenuItem_android_orderInCategory = 6; public static final int MenuItem_android_title = 7; public static final int MenuItem_android_titleCondensed = 8; public static final int MenuItem_android_visible = 4; public static final int MenuItem_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 = {16842926, 16843052, 16843053, 16843054, 16843055, 16843056, 16843057, C0010R.attr.preserveIconSpacing, C0010R.attr.subMenuArrow}; public static final int MenuView_android_headerBackground = 4; public static final int MenuView_android_horizontalDivider = 2; public static final int MenuView_android_itemBackground = 5; public static final int MenuView_android_itemIconDisabledAlpha = 6; public static final int MenuView_android_itemTextAppearance = 1; public static final int MenuView_android_verticalDivider = 3; public static final int MenuView_android_windowAnimationStyle = 0; public static final int MenuView_preserveIconSpacing = 7; public static final int MenuView_subMenuArrow = 8; public static final int[] PopupWindow = {16843126, 16843465, C0010R.attr.overlapAnchor}; public static final int[] PopupWindowBackgroundState = {C0010R.attr.state_above_anchor}; public static final int PopupWindowBackgroundState_state_above_anchor = 0; public static final int PopupWindow_android_popupAnimationStyle = 1; public static final int PopupWindow_android_popupBackground = 0; public static final int PopupWindow_overlapAnchor = 2; public static final int[] RecycleListView = {C0010R.attr.paddingBottomNoButtons, C0010R.attr.paddingTopNoTitle}; public static final int RecycleListView_paddingBottomNoButtons = 0; public static final int RecycleListView_paddingTopNoTitle = 1; public static final int[] SearchView = {16842970, 16843039, 16843296, 16843364, C0010R.attr.closeIcon, C0010R.attr.commitIcon, C0010R.attr.defaultQueryHint, C0010R.attr.goIcon, C0010R.attr.iconifiedByDefault, C0010R.attr.layout, C0010R.attr.queryBackground, C0010R.attr.queryHint, C0010R.attr.searchHintIcon, C0010R.attr.searchIcon, C0010R.attr.submitBackground, C0010R.attr.suggestionRowLayout, C0010R.attr.voiceIcon}; public static final int SearchView_android_focusable = 0; public static final int SearchView_android_imeOptions = 3; public static final int SearchView_android_inputType = 2; public static final int SearchView_android_maxWidth = 1; public static final int SearchView_closeIcon = 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 = {16842930, 16843126, 16843131, 16843362, C0010R.attr.popupTheme}; public static final int Spinner_android_dropDownWidth = 3; 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_popupTheme = 4; public static final int[] SwitchCompat = {16843044, 16843045, 16843074, C0010R.attr.showText, C0010R.attr.splitTrack, C0010R.attr.switchMinWidth, C0010R.attr.switchPadding, C0010R.attr.switchTextAppearance, C0010R.attr.thumbTextPadding, C0010R.attr.thumbTint, C0010R.attr.thumbTintMode, C0010R.attr.track, C0010R.attr.trackTint, C0010R.attr.trackTintMode}; public static final int SwitchCompat_android_textOff = 1; public static final int SwitchCompat_android_textOn = 0; public static final int SwitchCompat_android_thumb = 2; public static final int SwitchCompat_showText = 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 = {16842901, 16842902, 16842903, 16842904, 16842906, 16842907, 16843105, 16843106, 16843107, 16843108, 16843692, C0010R.attr.fontFamily, C0010R.attr.textAllCaps}; public static final int TextAppearance_android_fontFamily = 10; 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_textColor = 3; public static final int TextAppearance_android_textColorHint = 4; public static final int TextAppearance_android_textColorLink = 5; public static final int TextAppearance_android_textSize = 0; public static final int TextAppearance_android_textStyle = 2; public static final int TextAppearance_android_typeface = 1; public static final int TextAppearance_fontFamily = 11; public static final int TextAppearance_textAllCaps = 12; public static final int[] Toolbar = {16842927, 16843072, C0010R.attr.buttonGravity, C0010R.attr.collapseContentDescription, C0010R.attr.collapseIcon, C0010R.attr.contentInsetEnd, C0010R.attr.contentInsetEndWithActions, C0010R.attr.contentInsetLeft, C0010R.attr.contentInsetRight, C0010R.attr.contentInsetStart, C0010R.attr.contentInsetStartWithNavigation, C0010R.attr.logo, C0010R.attr.logoDescription, C0010R.attr.maxButtonHeight, C0010R.attr.navigationContentDescription, C0010R.attr.navigationIcon, C0010R.attr.popupTheme, C0010R.attr.subtitle, C0010R.attr.subtitleTextAppearance, C0010R.attr.subtitleTextColor, C0010R.attr.title, C0010R.attr.titleMargin, C0010R.attr.titleMarginBottom, C0010R.attr.titleMarginEnd, C0010R.attr.titleMarginStart, C0010R.attr.titleMarginTop, C0010R.attr.titleMargins, C0010R.attr.titleTextAppearance, C0010R.attr.titleTextColor}; 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_navigationContentDescription = 14; public static final int Toolbar_navigationIcon = 15; public static final int Toolbar_popupTheme = 16; public static final int Toolbar_subtitle = 17; public static final int Toolbar_subtitleTextAppearance = 18; public static final int Toolbar_subtitleTextColor = 19; public static final int Toolbar_title = 20; public static final int Toolbar_titleMargin = 21; public static final int Toolbar_titleMarginBottom = 22; public static final int Toolbar_titleMarginEnd = 23; public static final int Toolbar_titleMarginStart = 24; public static final int Toolbar_titleMarginTop = 25; public static final int Toolbar_titleMargins = 26; public static final int Toolbar_titleTextAppearance = 27; public static final int Toolbar_titleTextColor = 28; public static final int[] View = {16842752, 16842970, C0010R.attr.paddingEnd, C0010R.attr.paddingStart, C0010R.attr.theme}; public static final int[] ViewBackgroundHelper = {16842964, C0010R.attr.backgroundTint, C0010R.attr.backgroundTintMode}; 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 = {16842960, 16842994, 16842995}; public static final int ViewStubCompat_android_id = 0; public static final int ViewStubCompat_android_inflatedId = 2; public static final int ViewStubCompat_android_layout = 1; public static final int View_android_focusable = 1; public static final int View_android_theme = 0; public static final int View_paddingEnd = 2; public static final int View_paddingStart = 3; public static final int View_theme = 4; } }
[ "abhiroopks@gmail.com" ]
abhiroopks@gmail.com
390df335f9b9e931ce06fb46afcda6b87d943583
2cf441bed0533a689b2681cbfbdcef234111b7b3
/core/src/com/game/melodi/Audiofullread/MusicPlayer.java
f8171d0cc5bf5a0eb4fff680ff2a407462d1dc7f
[]
no_license
paradoxsyn/Melodi-Desktop
c8d66cbca26c3a884bafe5a1bfae844de7fb80e7
c322135cf3314cfe196b1700ae5867b5129333d3
refs/heads/master
2018-07-18T19:54:46.535169
2018-06-29T21:24:17
2018-06-29T21:24:17
115,759,742
0
0
null
null
null
null
UTF-8
Java
false
false
5,873
java
package com.game.melodi.Audiofullread; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.files.FileHandle; import com.game.melodi.Audiostream.File; import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.InputStream; import java.io.IOException; import javazoom.jl.player.AudioDevice; import javazoom.jl.player.FactoryRegistry; import javazoom.jl.decoder.JavaLayerException; /** * Provide basic playing of MP3 files via the javazoom library. * See http://www.javazoom.net/ * * @author David J. Barnes and Michael Kölling * @version 2011.07.31 */ public class MusicPlayer { // The current player. It might be null. public MusicFilePlayer player; // The current file being played. private String filename; private boolean musicStopped; /** * Constructor for objects of class MusicPlayer */ public MusicPlayer() { player = null; filename = ""; } /** * Start playing the given audio file. * The method returns once the playing has been started. * @param filename The file to be played. */ public void startPlaying(final String filename) { try { setupPlayer(filename); playFrom(0); } catch (JavaLayerException ex) { reportProblem(); } } public void startPlaying2(final String filename){ try { setupPlayer2(filename); playFrom(0); } catch (JavaLayerException ex) { reportProblem(); } } /**Gets the current filename * * @return */ public String getName(){ return filename; } /** * Stop playing the current file. */ public void stop() { killPlayer(); musicStopped = true; } public boolean getMusicStopped(){ return musicStopped; } /** * Pause the current file. */ public void pause() { if(player != null) { try { player.pause(); } catch(JavaLayerException e) { reportProblem(); killPlayer(); } } } /** * Resume playing following a pause. */ public void resume() { if(player != null) { Thread playerThread = new Thread() { public void run() { try { player.resume(); } catch(JavaLayerException e) { reportProblem(); killPlayer(); } } }; playerThread.setPriority(Thread.MIN_PRIORITY); playerThread.start(); } } /** * Seek to the given position in the current file. * The track will be paused as a result of this operation. * * @param position What position in the file to move to. */ public void seekTo(int position) { if(player != null && position >= 0 && position < player.getLength()) { // Set the player's position. } } /** * Return the length of the current music file, if any. * The length is in 'frames' rather than seconds, for instance. * * @return The file length in frames. */ public int getLength() { if(player != null) { return player.getLength(); } else { return 0; } } /** * Set up the player ready to play the given file. * @param filename The name of the file to play. */ private void setupPlayer(String filename) { try { if(player != null) { killPlayer(); } this.filename = filename; //player = new MusicFilePlayer(filename); player = new MusicFilePlayer(File.internal(filename)); } catch(JavaLayerException e) { System.out.println("Problem setting up player"); e.printStackTrace(); reportProblem(); killPlayer(); } } /**Other player for one main file source * */ private void setupPlayer2(String filename) { try { if(player != null) { killPlayer(); } this.filename = filename; player = new MusicFilePlayer(File.absolute(filename)); //player = new MusicFilePlayer(File.external("/Music/"+filename)); } catch(JavaLayerException e) { System.out.println("Problem setting up player"); e.printStackTrace(); reportProblem(); killPlayer(); } } /** * Play from the given position. * @param start The starting position for playing. * Must be within the current file's length. */ private void playFrom(final int start) throws JavaLayerException { Thread playerThread = new Thread() { public void run() { try { player.playFrom(start); } catch(JavaLayerException e) { reportProblem(); killPlayer(); } } }; playerThread.setPriority(Thread.MIN_PRIORITY); playerThread.start(); } /** * Terminate the player, if there is one. */ private void killPlayer() { synchronized(this) { if(player != null) { player.stop(); player = null; filename = ""; } } } /** * Report a problem playing the current file. */ private void reportProblem() { System.out.println("There was a problem playing: " + filename); } }
[ "paradoxsyn@gmail.com" ]
paradoxsyn@gmail.com
02346444f8410532dc182ed2979b623671148a96
4783e319219825401f24e620a16c9a27aae9c9eb
/src/test/java/com/thomas/HelloServiceMockTest.java
45732abd8f242da89ba861bc691a16089c972698
[]
no_license
thomascolomba/SpringBoot-springTest_springWithBDDMockito
1c7968166f1f527377f6118fc914078ed6ae2a9b
f5b342ade42f138555f35b5ff78bcccab0003363
refs/heads/master
2022-11-26T23:50:21.450970
2020-07-28T17:27:33
2020-07-28T17:27:33
283,281,571
0
0
null
null
null
null
UTF-8
Java
false
false
1,650
java
package com.thomas; import com.thomas.repository.HelloRepository; import com.thomas.services.HelloService; import com.thomas.services.HelloServiceImpl; import org.junit.jupiter.api.Test; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.Mockito; import org.springframework.boot.test.context.SpringBootTest; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.BDDMockito.given; import static org.mockito.BDDMockito.then; @SpringBootTest public class HelloServiceMockTest { @Mock private HelloRepository helloRepository; @InjectMocks private HelloService helloService = new HelloServiceImpl(); @Test void testReturnedValueWithMockito() { //Arrange given(helloRepository.get("teststringAddedFromHelloServiceImpl")).willReturn("Hello from Mockito mocked repository"); //Act String actualValue = helloService.get("test"); //Assert String expectedValue = "Hello from Mockito mocked repository"; assertEquals(expectedValue, actualValue); } @Test void testServiceBeanUsesRepositoryBeanWithBDDMockito() { //Arrange // nothing to arrange... //Act helloService.get("test"); //Assert then(helloRepository) .should() .get("teststringAddedFromHelloServiceImpl"); } @Test void testNumberOfCallsWithMockito() { //Arrange // nothing to arrange... //Act helloService.get("test"); helloService.get("test"); //Assert then(helloRepository) .should(Mockito.times(2)) .get("teststringAddedFromHelloServiceImpl"); } }
[ "thomas.colomba30@gmail.com" ]
thomas.colomba30@gmail.com
6d1b3648699caec0c263aeb43fd4982b08545bc4
51ae5fbda9d23df931fefa87b89f170c0bcfd6b2
/app/src/test/java/bigboss27051/liveat500px/ExampleUnitTest.java
b982f307a2641864976d9e9eea85378073156151
[]
no_license
bigboss27051/Android_liveAt500px
c7ef2b3f2dc9872397ca3d3d61ac68c12582058f
a2719d867b083cf0df60419cd511db1996242e8a
refs/heads/master
2021-01-01T05:19:42.064803
2016-05-19T16:33:14
2016-05-19T16:33:14
58,876,377
0
0
null
null
null
null
UTF-8
Java
false
false
317
java
package bigboss27051.liveat500px; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
[ "tanawut" ]
tanawut
63c4abe3e2dc2f6f2d1462d22c91b20178e3d197
02496ed2421652fea9bb8e87179018346df5a7be
/EasySend2/src/java/model/TipoCurso.java
475410bc565948814a167a9a301732eba21988c9
[]
no_license
projetohermes/projeto
9a6e2a1743a8538725b63ea71469189c7ba822d5
9dade5dd664f34a12c20e2723f7fd3d98ae4df26
refs/heads/master
2020-04-08T07:38:00.501788
2015-06-28T14:46:39
2015-06-28T14:46:39
37,815,869
0
0
null
null
null
null
UTF-8
Java
false
false
699
java
package model; import java.util.ArrayList; public class TipoCurso { private int idTipoCurso; private String nome; public TipoCurso() { } public TipoCurso(String nome) { this.nome = nome; } public String getNome() { return nome; } public int getIdTipoCurso() { return idTipoCurso; } public void setIdTipoCurso(int idTipoCurso) { this.idTipoCurso = idTipoCurso; } public void setNome(String nome) { this.nome = nome; } public TipoCurso(int idTipoCurso, String nome) { this.idTipoCurso = idTipoCurso; this.nome = nome; } }
[ "vinicius.aaf@hotmail.com" ]
vinicius.aaf@hotmail.com
4836f8beba5936c2ebd9a464f3e580587b23cbe3
72154e27f0ff86c027c6215cc54367fd0c36c47c
/src/Test/Test.java
9f47cd4bc84d38938e821687bf899f107c03347a
[]
no_license
my-name-is-njuno/java-fx-optical-software
212b8f310fa7047a4dfa2042b2bb06cf51995199
bc197e1088fb98d60522aa3a6042f9578be691f0
refs/heads/master
2020-04-07T02:48:09.979365
2018-11-17T14:19:29
2018-11-17T14:19:29
157,990,461
0
0
null
null
null
null
UTF-8
Java
false
false
143
java
package Test; import dbmanager.Db; public class Test { public static void main(String[] args) { Db handler = Db.getInstance(); } }
[ "appsnjuno@gmail.com" ]
appsnjuno@gmail.com
4728f167c2ad22f187db21d1a58645232378d181
2eee5eb44afabefc14f3ea62e56965be005d6bbc
/src/main/java/com/design/chain/proto/ConcreteHandler1.java
e84bcd4c6c497e1c44fc4a8f5fda9d60578807d2
[]
no_license
luyifei/design
917723ab5a80e31a8ffa57fb585ad7b1cef7248a
0b1f20fe4bdb51824f2367c9fb87b5e2ad7ccd9c
refs/heads/master
2021-01-19T05:39:19.430453
2017-07-30T16:26:29
2017-07-30T16:26:29
87,439,900
0
0
null
null
null
null
GB18030
Java
false
false
382
java
package com.design.chain.proto; public class ConcreteHandler1 extends Handler { @Override public Level getHandlerLevel() { // 返回等级 return null; } @Override public Response getResponse(Request request) { // 业务处理 System.out.println("ConcreteHandler1业务处理"); return null; } }
[ "sunny899030@gmail.com" ]
sunny899030@gmail.com
6d35906bdb7c610c7b8c5d81980a01933e9e0fe8
6c1f184d0da46d21711a237a1c606b9d49077f3d
/library/src/main/java/com/laiyifen/library/utils/RootCheckUtils.java
ce959fc3f6b3fb95c7910f2e76d3320cc376b37f
[]
no_license
BIGMONK/QuickStart
1580ba692c29304c13606754a36d11b5a9052121
5d7f99751a62ad23d9c31a2ade91d859eb98d15a
refs/heads/master
2020-04-11T15:09:55.754346
2018-05-08T05:34:20
2018-05-08T05:34:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
8,046
java
package com.laiyifen.library.utils; import android.util.Log; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.ArrayList; /** * 检查运行环境是否root */ public class RootCheckUtils { private static String LOG_TAG = "RootCheckUtils"; public static boolean isDeviceRooted() { //查看系统是否测试版 if (checkDeviceDebuggable()) { Log.d(LOG_TAG,"checkDeviceDebuggable"); return true; }//check buildTags //检查是否存在Superuser.apk if (checkSuperuserApk()) { Log.d(LOG_TAG,"checkSuperuserApk"); return true; } //find su in some path if (checkRootPathSU()) { Log.d(LOG_TAG,"checkRootPathSU"); return true; } //find su use 'which' if (checkRootWhichSU()) { Log.d(LOG_TAG,"checkRootWhichSU"); return true; } //用于执行linux的命令,这部分是被android隐藏的 /* if (checkBusybox()) { Log.d(LOG_TAG,"checkBusybox"); return true; }*/ //find su use 'which' 访问/data目录,查看读写权限 // if (checkAccessRootData()) { // return true; // } //find su use 'which' 执行su if (checkGetRootAuth()) { Log.d(LOG_TAG,"checkGetRootAuth"); return true; }//exec su return false; } private static boolean checkDeviceDebuggable() { String buildTags = android.os.Build.TAGS; if (buildTags != null && buildTags.contains("test-keys")) { Log.i(LOG_TAG, "buildTags=" + buildTags); return true; } return false; } private static boolean checkSuperuserApk() { try { File file = new File("/system/app/Superuser.apk"); if (file.exists()) { Log.i(LOG_TAG, "/system/app/Superuser.apk exist"); return true; } } catch (Exception e) { } return false; } private static boolean checkRootPathSU() { File f = null; final String kSuSearchPaths[] = {"/system/bin/", "/system/xbin/", "/system/sbin/", "/sbin/", "/vendor/bin/"}; try { for (int i = 0; i < kSuSearchPaths.length; i++) { f = new File(kSuSearchPaths[i] + "su"); if (f != null && f.exists()) { Log.i(LOG_TAG, "find su in : " + kSuSearchPaths[i]); return true; } } } catch (Exception e) { e.printStackTrace(); } return false; } private static boolean checkRootWhichSU() { String[] strCmd = new String[]{"/system/xbin/which", "su"}; ArrayList<String> execResult = executeCommand(strCmd); if (execResult != null) { Log.i(LOG_TAG, "execResult=" + execResult.toString()); return true; } else { Log.i(LOG_TAG, "execResult=null"); return false; } } private static ArrayList<String> executeCommand(String[] shellCmd) { String line = null; ArrayList<String> fullResponse = new ArrayList<String>(); Process localProcess = null; try { Log.i(LOG_TAG, "to shell exec which for find su :"); localProcess = Runtime.getRuntime().exec(shellCmd); } catch (Exception e) { return null; } BufferedWriter out = new BufferedWriter(new OutputStreamWriter(localProcess.getOutputStream())); BufferedReader in = new BufferedReader(new InputStreamReader(localProcess.getInputStream())); try { while ((line = in.readLine()) != null) { Log.i(LOG_TAG, "–> Line received: " + line); fullResponse.add(line); } } catch (Exception e) { e.printStackTrace(); } Log.i(LOG_TAG, "–> Full response was: " + fullResponse); return fullResponse; } private static synchronized boolean checkGetRootAuth() { Process process = null; DataOutputStream os = null; try { Log.i(LOG_TAG, "to exec su"); process = Runtime.getRuntime().exec("su"); os = new DataOutputStream(process.getOutputStream()); os.writeBytes("exit\n"); os.flush(); int exitValue = process.waitFor(); Log.i(LOG_TAG, "exitValue=" + exitValue); if (exitValue == 0) { return true; } else { return false; } } catch (Exception e) { Log.i(LOG_TAG, "Unexpected error - Here is what I know: " + e.getMessage()); return false; } finally { try { if (os != null) { os.close(); } if(process!=null){ process.destroy(); } } catch (Exception e) { e.printStackTrace(); } } } private static synchronized boolean checkBusybox() { try { Log.i(LOG_TAG, "to exec busybox df"); String[] strCmd = new String[]{"busybox", "df"}; ArrayList<String> execResult = executeCommand(strCmd); if (execResult != null) { Log.i(LOG_TAG, "execResult=" + execResult.toString()); return true; } else { Log.i(LOG_TAG, "execResult=null"); return false; } } catch (Exception e) { Log.i(LOG_TAG, "Unexpected error - Here is what I know: " + e.getMessage()); return false; } } private static synchronized boolean checkAccessRootData() { try { Log.i(LOG_TAG, "to write /data"); String fileContent = "test_ok"; Boolean writeFlag = writeFile("/data/su_test", fileContent); if (writeFlag) { Log.i(LOG_TAG, "write ok"); } else { Log.i(LOG_TAG, "write failed"); } Log.i(LOG_TAG, "to read /data"); String strRead = readFile("/data/su_test"); Log.i(LOG_TAG, "strRead=" + strRead); if (fileContent.equals(strRead)) { return true; } else { return false; } } catch (Exception e) { Log.i(LOG_TAG, "Unexpected error - Here is what I know: " + e.getMessage()); return false; } } //写文件 private static Boolean writeFile(String fileName, String message) { try { FileOutputStream fout = new FileOutputStream(fileName); byte[] bytes = message.getBytes(); fout.write(bytes); fout.close(); return true; } catch (Exception e) { e.printStackTrace(); return false; } } //读文件 private static String readFile(String fileName) { File file = new File(fileName); try { FileInputStream fis = new FileInputStream(file); byte[] bytes = new byte[1024]; ByteArrayOutputStream bos = new ByteArrayOutputStream(); int len; while ((len = fis.read(bytes)) > 0) { bos.write(bytes, 0, len); } String result = new String(bos.toByteArray()); Log.i(LOG_TAG, result); return result; } catch (Exception e) { e.printStackTrace(); return null; } } }
[ "wuyishun_kmk@outlook.com" ]
wuyishun_kmk@outlook.com
800193b097de95a66a43c7cbf8a3c026ab12da38
a78cb207d9f65210b3b6c52c64809217157b6902
/ulewo2.5/src/com/ulewo/enums/TrendsType.java
71729c8626e2ae54272b73fc75d451690923775f
[]
no_license
songdragon/mycode
4cfbf00cd0eef0bd6f42490706cd25009b064964
33c3d6ea6b554a8025783e233f97e02b319a5c4b
refs/heads/master
2021-01-18T09:59:39.771585
2014-10-13T03:55:58
2014-10-13T03:55:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
231
java
package com.ulewo.enums; public enum TrendsType { ALL(0), TOPIC(1), RE(2), MYTOPIC(3), MYRE(4); private int type; TrendsType(int type) { this.type = type; } public int getValue() { return type; } }
[ "308106363@qq.com" ]
308106363@qq.com
4b5017b39d78bb505a65e8edd3f0a782b1695690
326bdc606d2836763ee044d157553320c1d90b86
/lms_backend/src/test/java/com/azharjk/lms_backend/user/UserServiceTest.java
7b848321251270d3565c68a43f3bf59cc9e5335b
[]
no_license
azharjk/learning-management-system
9f610e98b5c30d3844bdb456c900a0cdb7f1612e
92a4c84607cc426f8454b3a9e351ffc285097740
refs/heads/master
2023-08-13T21:47:21.275628
2021-09-26T10:32:12
2021-09-26T10:32:12
406,217,351
0
0
null
2021-09-19T10:39:00
2021-09-14T03:56:23
JavaScript
UTF-8
Java
false
false
2,257
java
package com.azharjk.lms_backend.user; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.util.List; import java.util.Optional; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.mock.mockito.MockBean; @SpringBootTest public class UserServiceTest { @Autowired private UserService userService; @MockBean private UserRepository userRepository; @Test public void getAllUsers_shouldReturnListOfUserObject() { when(userRepository.findAll()).thenReturn(List.of( new User(1L, "Mark Rockwell", "markrck@g.com", "markhans12"), new User(2L, "Tike Misery", "tikmis@g.com", "tikmis1") )); assertEquals(2, userService.getAllUsers().size()); } @Test public void getUserById_shouldReturnUserObject_ifIdIsPresented() { when(userRepository.findById(1L)).thenReturn(Optional.of( new User(1L, "Mark Rockwell", "markrck@g.com", "markhans12") )); assertEquals("Mark Rockwell", userService.getUserById(1L).getFullname()); } @Test public void getUserById_shouldReturnNull_ifIdNotPresented() { when(userRepository.findById(2L)).thenReturn(Optional.empty()); assertEquals(null, userService.getUserById(2L)); } @Test public void createUser_shouldReturnUserObject() { User user = new User(1L, "Mark Rockwell", "markrck@g.com", "markhans12"); when(userRepository.save(user)).thenReturn(user); assertEquals(user.getFullname(), userService.createUser(user).getFullname()); } @Test public void editUser_shouldReturnUserObject() { User user = new User(1L, "Mark Rockwell", "markrck@g.com", "markhans12"); User updatedUser = new User(1L, "John Manner", "jhnsmnnr@g.com", "ilikeujon"); when(userRepository.save(user)).thenReturn(updatedUser); assertEquals(user.getId(), userService.editUser(user, 1L).getId()); } @Test public void deleteUser_shouldBeCalled() { userService.deleteUser(anyLong()); verify(userRepository).deleteById(anyLong()); } }
[ "azhr.project@gmail.com" ]
azhr.project@gmail.com
3a2b7944e827bf5a4c076411c689d10bc862978d
23e2ee9b120d892c01f255348c52d7b6cd581ac8
/RecyclerView/Week2/app/src/test/java/com/example/joycelan/week2/ExampleUnitTest.java
330aa7c3820eee06bfb35e85d96afbd1f079a2ba
[]
no_license
joyce0101/Android_Learn
96c3b09e999f34436e0e93ec3733351bf80160f2
6a7e61d26536e74aeb85fbe890094b6063b335a4
refs/heads/master
2020-04-09T08:14:47.672958
2018-12-24T06:40:23
2018-12-24T06:40:23
160,187,152
0
0
null
null
null
null
UTF-8
Java
false
false
389
java
package com.example.joycelan.week2; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() { assertEquals( 4, 2 + 2 ); } }
[ "joycelan@tencent.com" ]
joycelan@tencent.com
0cc1a192464e4a3429c38592998c3bcddec98d50
a2f9dbd0388e4a3e6755b2b7e53988c600240a65
/src/main/java/top/leonx/vanity/ai/tree/composite/GoapTask.java
25b20cf6d44a7b9163d7b33802e7608dc10fcbc2
[]
no_license
leon-o/mc-vanity
c58dad325bdb6624dafe985179df69296971e481
120d8d3422a0f42f676d10161bf6515d2ea3542e
refs/heads/master
2023-01-01T12:49:21.977457
2020-10-21T08:01:11
2020-10-21T08:01:11
293,076,354
0
0
null
null
null
null
UTF-8
Java
false
false
3,893
java
package top.leonx.vanity.ai.tree.composite; import net.minecraft.util.Tuple; import net.minecraft.world.server.ServerWorld; import top.leonx.vanity.ai.goap.GoapCost; import top.leonx.vanity.ai.goap.GoapGoal; import top.leonx.vanity.ai.goap.PurposefulTaskRegistry; import top.leonx.vanity.ai.goap.PurposefulTaskWrap; import top.leonx.vanity.ai.tree.BehaviorTreeTask; import top.leonx.vanity.entity.OutsiderEntity; import java.util.*; import java.util.stream.Collectors; public class GoapTask extends CompositeTask<OutsiderEntity> { public GoapGoal goal; public GoapTask(String name,GoapGoal goapGoal) { super(name); this.goal = goapGoal; } @Override protected void onEnd(ServerWorld world, OutsiderEntity entity, long executionDuration) { getChildren().clear(); } @Override protected void onStart(ServerWorld world, OutsiderEntity entity, long executionDuration) { plan(entity); if (getChildren().size() == 0) submitResult(Result.FAIL); else { getLastChild().callForStart(world, entity, executionDuration); if(getLastChild().getResult()==Result.FAIL) submitResult(Result.FAIL); } } @Override protected void onUpdate(ServerWorld world, OutsiderEntity entity, long executionDuration) { if(getChildren().size()==0) { submitResult(Result.FAIL); return; } BehaviorTreeTask<OutsiderEntity> task = getLastChild(); task.callForUpdate(world, entity, executionDuration); if (task.getResult() == Result.SUCCESS) { task.callForEnd(world, entity, executionDuration); getChildren().remove(getChildren().size()-1); if (getChildren().size()==0) { submitResult(Result.SUCCESS); return; } getLastChild().callForStart(world, entity, executionDuration); } else if (task.getResult() == Result.FAIL) { submitResult(Result.FAIL); } } private BehaviorTreeTask<OutsiderEntity> getLastChild() { return getChildren().get(getChildren().size()-1); } private void plan(OutsiderEntity entity) { getChildren().clear(); Stack<PurposefulTaskWrap> wrapChoose=new Stack<>(); Stack<BehaviorTreeTask<OutsiderEntity>> taskChoose=new Stack<>(); Stack<GoapGoal> goalChoose=new Stack<>(); HashSet<PurposefulTaskWrap> deprecatedWrap=new HashSet<>(); GoapGoal currentGoal = goal; while (!currentGoal.isFit.apply(entity)) { GoapGoal finalCurrentGoal = currentGoal; Optional<Tuple<PurposefulTaskWrap,GoapCost>> taskWrapMinCost = PurposefulTaskRegistry.purposefulTasks.stream() .map(t -> new Tuple<>(t, t.handleGoapGoal(finalCurrentGoal))) .filter(t -> !deprecatedWrap.contains(t.getA())&&!t.getB().equals(GoapCost.PASS)) .min(Comparator.comparingInt(t -> t.getB().getCost())); // Didn't find. This means previous task is unable to complete. Roll back and find another. if(!taskWrapMinCost.isPresent()) { deprecatedWrap.add(wrapChoose.pop()); taskChoose.pop(); goalChoose.pop(); if(wrapChoose.size()==0) break; currentGoal=goalChoose.peek(); }else{ PurposefulTaskWrap taskWrap = taskWrapMinCost.get().getA(); wrapChoose.push(taskWrap); taskChoose.push(taskWrap.task.apply(currentGoal)); goalChoose.push(currentGoal); currentGoal=taskWrap.precondition.apply(currentGoal); //create next goal by this task's precondition. } } getChildren().addAll(taskChoose); } }
[ "q593648942@outlook.com" ]
q593648942@outlook.com
4f524fff33d2ec5ef54b7d743102bccd4e5c18e2
7d22b9b4ba22bd29b99d35b33ac2716641a1f193
/src/test/java/by/jrr/collectionsapi/listsyntax/ListMethodsTest.java
04d14d61e6ce1ead94f243ad6740832b9f5dee10
[]
no_license
javaGuruBY/jis-lecture12-CollectionApi
38c1ebf6b8b3ead2b7c8cf42982f60067c25c5c2
0ed6e92249b96090d81529032ad19574359f8817
refs/heads/master
2022-12-18T08:50:59.093293
2020-09-25T18:44:12
2020-09-25T18:44:12
296,691,891
0
0
null
null
null
null
UTF-8
Java
false
false
3,705
java
package by.jrr.collectionsapi.listsyntax; import by.jrr.collectionsapi.App; import by.jrr.collectionsapi.mapex.Person; import by.jrr.collectionsapi.mapex.Student; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.ConcurrentModificationException; import java.util.List; import static by.jrr.collectionsapi.App.log; import static org.junit.Assert.*; public class ListMethodsTest { @Test public void basicSyntax() { List<Integer> list = new ArrayList<Integer>(); list.add(0, 1); list.add(0, 2); list.add(0, 3); log.info("{}", list); } @Test(expected = UnsupportedOperationException.class) public void basicSyntax_Unmodifiable() { List<Integer> list = List.of(); list.add(0, 1); list.add(0, 2); list.add(0, 3); log.info("{}", list); } @Test public void convert() { List<Object> list =Arrays.asList("a", "b"); String[] result = list.toArray(new String[0]); } @Test public void listHoldsReferences_Immutable() { List<Integer> list = new ArrayList<>(); Integer one = new Integer(1); Integer two = new Integer(2); Integer three = new Integer(3); list.addAll(Arrays.asList(one, two, three)); two = 5; // new Object created. List<Integer> expected = Arrays.asList(1, 2, 3); assertEquals(expected, list); } @Test public void listHoldsReferences_Mutable() { List<Person> list = new ArrayList<>(); Person one = new Person("one", "boxMax"); Person two = new Person("two", "boxMax"); Person three = new Person("three", "boxMax"); list.addAll(Arrays.asList(one, two, three)); two.setName("five"); List<Person> expected = Arrays.asList( new Person("one", "boxMax"), new Person("five", "boxMax"), new Person("three", "boxMax") ); assertEquals(expected, list); } @Test public void sublistTest() { List<String> initialList = new ArrayList<>(); initialList.addAll(Arrays.asList("a", "b", "c", "d", "e")); List<String> sublist = initialList.subList(1, 3); log.info("{}", sublist); sublist.add("x"); log.info("{}", initialList); initialList.add(1, "z"); // log.info("{}", sublist); // throws exception } @Test(expected = UnsupportedOperationException.class) public void basicSyntax_Unmodifiable2() { List<String> list = List.of("ex", "ze"); list.add("xs"); } @Test(expected = UnsupportedOperationException.class) public void basicSyntax_Unmodifiable3() { List<String> list = List.of("ex", "ze"); list.set(0, "xs"); } @Test public void basicSyntax_Unmodifiable4() { List<Person> list = List.of( new Person("one", "boxMax"), new Person("five", "boxMax"), new Person("three", "boxMax") ); Person expected = new Person("New Name", "boxMax"); list.get(0).setName("New Name"); assertEquals(expected, list.get(0)); } @Test public void sublistTestWithCopyOf() { List<String> initialList = new ArrayList<>(); initialList.addAll(Arrays.asList("a", "b", "c", "d", "e")); List<String> sublist = initialList.subList(1, 3); log.info("{}", sublist); sublist.add("x"); log.info("{}", initialList); List<String> copyOfSublist = List.copyOf(sublist); initialList.add(1, "z"); log.info("{}", copyOfSublist); } }
[ "6666350@gmail.com" ]
6666350@gmail.com
daefa0ef4131d22ac1f9b3a963b9e25caddb3f11
5a80002735018913fd193df5ff14d9e823bbb1dc
/admin/admin-settlement/src/main/java/no/valg/eva/admin/settlement/domain/event/CandidateSeatEvent.java
e44aba94428905e7b8f9e72e8b459f77cf7a7298
[]
no_license
GhostNwa/election-eva-admin
8e6dcea25346e96fc92a4fa84f7ddbd6a3cbb16b
662d7ff2a20f1587eaee4ca1c63036a2308bbefd
refs/heads/master
2022-12-09T13:05:12.291789
2019-09-26T14:32:58
2019-09-26T14:36:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,166
java
package no.valg.eva.admin.settlement.domain.event; import static org.apache.commons.lang3.builder.ToStringStyle.SHORT_PREFIX_STYLE; import java.math.BigDecimal; import no.valg.eva.admin.configuration.domain.model.Affiliation; import no.valg.eva.admin.configuration.domain.model.Candidate; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.ToStringBuilder; public class CandidateSeatEvent implements Event { private final Affiliation affiliation; private final Candidate candidate; private final Integer dividend; private final BigDecimal divisor; public CandidateSeatEvent(Affiliation affiliation, Candidate candidate, BigDecimal divisor) { this.affiliation = affiliation; this.candidate = candidate; this.dividend = null; this.divisor = divisor; } public CandidateSeatEvent(Affiliation affiliation, Candidate candidate, int dividend) { this.affiliation = affiliation; this.candidate = candidate; this.dividend = dividend; this.divisor = null; } public Affiliation getAffiliation() { return affiliation; } public Candidate getCandidate() { return candidate; } public Integer getDividend() { return dividend; } public BigDecimal getDivisor() { return divisor; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof CandidateSeatEvent)) { return false; } CandidateSeatEvent that = (CandidateSeatEvent) o; return new EqualsBuilder() .append(affiliation, that.affiliation) .append(candidate, that.candidate) .append(dividend, that.dividend) .append(divisor, that.divisor) .isEquals(); } @Override public int hashCode() { return new HashCodeBuilder(17, 37) .append(affiliation) .append(candidate) .append(dividend) .append(divisor) .toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, SHORT_PREFIX_STYLE) .append("affiliation", affiliation) .append("candidate", candidate) .append("dividend", dividend) .append("divisor", divisor) .toString(); } }
[ "" ]
987e4c5c3abbacc2591d4694c790a1d37a492122
b1f51f8ba05ad83ecfbd80e6e7f140e70850bf01
/ACE_ERP/src/transfer/tr00301_s3.java
bf101c7599891061e3cde464035c506f441e039d
[]
no_license
hyundaimovex-asanwas/asanwas-homepage
27e0ba1ed7b41313069e732f3dc9df20053caddd
75e30546f11258d8b70159cfbe8ee36b18371bd0
refs/heads/master
2023-06-07T03:41:10.170367
2021-07-01T10:23:54
2021-07-01T10:23:54
376,739,168
1
1
null
null
null
null
UHC
Java
false
false
2,771
java
package transfer; import com.gauce.*; import com.gauce.io.*; import com.gauce.common.*; import com.gauce.log.*; import com.gauce.db.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; // class 이름은 화일명과 항상 동일해야 함. public class tr00301_s3 extends HttpServlet { // 웹페이지의 폼의 전송방식이 Post 타입일 경우 public void doGet(HttpServletRequest req, HttpServletResponse res) { res.setContentType("text/html;charset=ksc5601"); ServiceLoader loader = new ServiceLoader(req, res); GauceService service = null; GauceContext context = null; Logger logger = null; GauceDBConnection conn = null; GauceStatement stmt =null; GauceDataSet dSet = null; try { service = loader.newService(); context = service.getContext(); logger = context.getLogger(); GauceRequest GauceReq = service.getGauceRequest(); GauceResponse GauceRes = service.getGauceResponse(); try { conn = service.getDBConnection(); dSet = new GauceDataSet(); /********************************************************************************************** 실제 업무에서 적용하실 부분 **********************************************************************************************/ // 웹페이지에서 조건값을 넘겨받음 String gstr1 = GauceReq.getParameter("v_str1"); GauceRes.enableFirstRow(dSet); String[] strArrCN = new String[]{"CNT"}; int[] intArrCN = new int[] {10}; int[] intArrCN2 = new int[]{0}; for (int i=0; i<strArrCN.length; i++) { // set column column switch ( intArrCN2[i] ) { case -1 : dSet.addDataColumn(new GauceDataColumn(strArrCN[i], GauceDataColumn.TB_STRING, intArrCN[i])); break; default : dSet.addDataColumn( new GauceDataColumn( strArrCN[i], GauceDataColumn.TB_DECIMAL, intArrCN[i], intArrCN2[i] ) ); break; } } StringBuffer sql = new StringBuffer(); sql.append( " SELECT COUNT(*) CNT \n") .append( " FROM TRANSFER.LTACCPLCAR \n") .append( " WHERE CAR_SEQ_NO = '" + gstr1 + "' "); stmt = conn.getGauceStatement(sql.toString()); stmt.executeQuery(dSet); /*********************************************************************************************/ } catch(Exception e) { logger.err.println(this,e); GauceRes.writeException("Sql",":",e.toString()); } finally { if (stmt != null) try { stmt.close(); } catch (Exception e) {} if (conn != null) try {conn.close(true);} catch (Exception e) {} } dSet.flush(); GauceRes.commit(); GauceRes.close(); } catch (Exception e) { logger.err.println(this,e); logger.dbg.println(this,e.toString()); } finally { loader.restoreService(service); } } }
[ "86274611+evnmoon@users.noreply.github.com" ]
86274611+evnmoon@users.noreply.github.com
1334d0444c84f5e41a4f300955ceb2cc55bf2e0e
5e254729e400851ee8178461e93623a59343d954
/lambdas/src/test/java/com/thecodingpark/lambdas/CollectorsTest.java
de75e8bcab4633abf8b23d629a80f30dfbda111d
[]
no_license
thecodingpark/thecodingpark
983e8fdf2cba91de3a83a02f8ead60c47ea9ceaa
2fe309ba53e5705410bb681b654af697a3c83359
refs/heads/master
2021-07-05T05:00:57.177283
2019-06-26T19:39:16
2019-06-26T19:39:16
190,065,275
2
1
null
2020-10-13T13:44:29
2019-06-03T19:03:45
Java
UTF-8
Java
false
false
5,959
java
package com.thecodingpark.lambdas; import org.junit.Test; import java.util.List; import java.util.Map; import java.util.TreeMap; import java.util.Set; import java.util.Optional; import java.util.Comparator; import java.util.stream.Collectors; import java.util.stream.Stream; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; public class CollectorsTest { @Test public void joining() { Stream<String> vehicles = Stream.of("car", "boat", "plane"); String result = vehicles.collect(Collectors.joining(", ")); assertEquals("car, boat, plane", result); } @Test public void averagingInt() { Stream<String> vehicles = Stream.of("car", "boat", "plane"); Double result = vehicles.collect(Collectors.averagingInt(String::length)); assertEquals(4.0, result.doubleValue(), 0.101); } @Test public void collectingInMaps() { Stream<String> vehicles = Stream.of("car", "boat", "plane"); Map<String, Integer> map = vehicles.collect(Collectors.toMap(string -> string, String::length)); assertTrue(map.containsKey("car")); assertTrue(map.containsKey("boat")); assertTrue(map.containsKey("plane")); assertEquals(3, map.get("car").longValue()); assertEquals(4, map.get("boat").longValue()); assertEquals(5, map.get("plane").longValue()); } @Test public void collectingInMergedMaps() { Stream<String> vehicles = Stream.of("car", "boat", "plane", "bike"); Map<Integer, String> map = vehicles.collect(Collectors.toMap( String::length, k -> k, (s1, s2) -> s1 + "," + s2 )); assertEquals("{3=car, 4=boat,bike, 5=plane}", map.toString()); assertEquals("class java.util.HashMap", map.getClass().toString()); } @Test public void collectingInTreeMap() { Stream<String> vehicles = Stream.of("car", "boat", "plane", "bike"); TreeMap<Integer, String> map = vehicles.collect(Collectors.toMap( String::length, k -> k, (s1, s2) -> s1 + "," + s2, TreeMap::new)); assertEquals("{3=car, 4=boat,bike, 5=plane}", map.toString()); assertEquals("class java.util.TreeMap", map.getClass().toString()); } @Test public void collectingByGroupingInList() { Stream<String> vehicles = Stream.of("car", "boat", "plane", "bike"); Map<Integer, List<String>> map = vehicles.collect(Collectors.groupingBy(String::length)); assertEquals("{3=[car], 4=[boat, bike], 5=[plane]}", map.toString()); } @Test public void collectingByGroupingInSet() { Stream<String> vehicles = Stream.of("car", "boat", "plane", "bike"); Map<Integer, Set<String>> map = vehicles.collect(Collectors.groupingBy(String::length, Collectors.toSet())); assertEquals("{3=[car], 4=[boat, bike], 5=[plane]}", map.toString()); } @Test public void collectingByGroupingInTreeMap() { Stream<String> vehicles = Stream.of("car", "boat", "plane", "bike"); TreeMap<Integer, Set<String>> map = vehicles.collect(Collectors.groupingBy(String::length, TreeMap::new, Collectors.toSet())); assertEquals("{3=[car], 4=[boat, bike], 5=[plane]}", map.toString()); } @Test public void collectingByGroupingInTreeMapAndList() { Stream<String> vehicles = Stream.of("car", "boat", "plane", "bike"); TreeMap<Integer, List<String>> map = vehicles.collect(Collectors.groupingBy(String::length, TreeMap::new, Collectors.toList())); assertEquals("{3=[car], 4=[boat, bike], 5=[plane]}", map.toString()); } @Test public void collectingByPartitioning() { Stream<String> vehicles = Stream.of("car", "boat", "plane", "bike"); Map<Boolean, List<String>> map = vehicles.collect(Collectors.partitioningBy(s -> s.length() <= 3)); assertEquals("{false=[boat, plane, bike], true=[car]}", map.toString()); } @Test public void collectingByPartitioningToSet() { Stream<String> vehicles = Stream.of("car", "boat", "plane", "bike"); Map<Boolean, Set<String>> map = vehicles.collect(Collectors.partitioningBy(s -> s.length() <= 10, Collectors.toSet())); assertEquals("{false=[], true=[plane, car, boat, bike]}", map.toString()); } @Test public void collectingByCounting() { Stream<String> vehicles = Stream.of("car", "boat", "plane", "bike"); Map<Integer, Long> map = vehicles.collect(Collectors.groupingBy(String::length, Collectors.counting())); assertEquals("{3=1, 4=2, 5=1}", map.toString()); } @Test public void collectingByGroupingAndMapping() { Stream<String> vehicles = Stream.of("car", "boat", "plane", "bike"); Map<Integer, Optional<Character>> map = vehicles.collect( Collectors.groupingBy( String::length, Collectors.mapping(s -> s.charAt(0), Collectors.minBy((Comparator<Character>)Comparator.naturalOrder()) ) ) ); assertEquals("{3=Optional[c], 4=Optional[b], 5=Optional[p]}", map.toString()); } @Test public void mapping() { Stream<String> vehicles = Stream.of("car", "boat", "plane"); // Optional<Integer> maxLength = ohMy // .collect( // Collectors.mapping( // s -> s.length(), // Collectors.maxBy(Integer::compareTo) // ) // ); // Optional<Integer> maxLength = ohMy // .map(String::length).collect(Collectors.maxBy(Integer::compareTo)); Optional<Integer> maxLength = vehicles .map(String::length) .max(Integer::compareTo); assertEquals(5, maxLength.get().longValue()); } }
[ "marcoslerin@gmail.com" ]
marcoslerin@gmail.com
aed7bcb332f4a0f33efbe3d5ec3f6312df929d34
e44b14243596e719b71459b22ae6beb9e975b603
/catalog2readme.java
015e57abb3b471008918567f5c489c431c736674
[]
no_license
nandorholozsnyak/jbang-catalog-1
925a2cc36dcf44a17fa1d134e95b9a742af7a4ac
89f670b879d41ecf5d1fb8675af7f9413ed4465e
refs/heads/main
2023-08-18T14:11:41.333099
2021-10-09T06:22:19
2021-10-09T06:29:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,211
java
///usr/bin/env jbang "$0" "$@" ; exit $? // Update the Quarkus version to what you want here or run jbang with // `-Dquarkus.version=<version>` to override it. //DEPS io.quarkus:quarkus-bom:${quarkus.version:1.13.0.Final}@pom //DEPS io.quarkus:quarkus-picocli //DEPS io.quarkus:quarkus-jackson //DEPS io.quarkus:quarkus-qute //Q:CONFIG quarkus.banner.enabled=false //Q:CONFIG quarkus.log.level=WARN //Q:CONFIG quarkus.qute.property-not-found-strategy=throw-exception //FILES templates/index.txt=index.txt.qute import java.io.File; import java.io.IOException; import java.util.Map; import javax.inject.Inject; import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility; import com.fasterxml.jackson.annotation.PropertyAccessor; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.PropertyNamingStrategy; import io.quarkus.qute.Template; import picocli.CommandLine; @CommandLine.Command public class catalog2readme implements Runnable { @CommandLine.Parameters(index = "0", description = "The file to print", defaultValue = "jbang-catalog.json") File file; @CommandLine.Option(names = "-l", required = false) String location; @Inject CommandLine.IFactory factory; final ObjectMapper mapper; @Inject Template index; public catalog2readme(ObjectMapper mapper) { this.mapper = mapper; mapper// .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES,true) .setPropertyNamingStrategy(PropertyNamingStrategy.KEBAB_CASE) .setVisibility(PropertyAccessor.FIELD, Visibility.ANY); } @Override public void run() { try { Catalog catalog; catalog = mapper.readValue(file, Catalog.class); System.out.println(index.data("catalog", catalog).data("location", location).render()); } catch (IOException e) { e.printStackTrace(); } } static public class Catalog { public Map<String, Alias> aliases; public String baseRef; public String description; } static public class Alias { public String scriptRef; public String description; } }
[ "max@xam.dk" ]
max@xam.dk
fa756006fc2de1f64553679859ee5063a193e5b5
1b33bb4e143b18de302ccd5f107e3490ea8b31aa
/learn.java/src/main/java/utils/javaClass/hierrarchy/methods/none/fruit/SilverApple.java
3ec8009c54338082e39c045ca75a4533d677dee8
[]
no_license
cip-git/learn
db2e4eb297e36db475c734a89d18e98819bdd07f
b6d97f529ed39f25e17b602c00ebad01d7bc2d38
refs/heads/master
2022-12-23T16:39:56.977803
2022-12-18T13:57:37
2022-12-18T13:57:37
97,759,022
0
1
null
2020-10-13T17:06:36
2017-07-19T20:37:29
Java
UTF-8
Java
false
false
99
java
package utils.javaClass.hierrarchy.methods.none.fruit; public class SilverApple extends Apple { }
[ "ciprian.dorin.tanase@ibm.com" ]
ciprian.dorin.tanase@ibm.com
4fa324edc9ad718a019db7d66e148ec51d2e7663
67f917e602600ed5ea24de16649197ef37da56ca
/pinyougou-interface/src/main/java/com/pinyougou/service/SpecificationOptionService.java
868d0de67c35c0b6ec3c8f95f1e8cf4f23be2abc
[]
no_license
yzbyaozhibin/pinyougou
85603fbe763cc40d38bff274f81559598852bea2
6d54b0ef6c25e411f935c457010abea75253dce6
refs/heads/master
2020-05-18T11:30:05.042950
2019-04-29T03:59:55
2019-04-29T03:59:55
184,381,238
1
0
null
null
null
null
UTF-8
Java
false
false
815
java
package com.pinyougou.service; import com.pinyougou.pojo.SpecificationOption; import java.util.List; import java.io.Serializable; /** * SpecificationOptionService 服务接口 * @date 2019-03-28 09:58:00 * @version 1.0 */ public interface SpecificationOptionService { /** 添加方法 */ void save(SpecificationOption specificationOption); /** 修改方法 */ void update(SpecificationOption specificationOption); /** 根据主键id删除 */ void delete(Serializable id); /** 批量删除 */ void deleteAll(Serializable[] ids); /** 根据主键id查询 */ SpecificationOption findOne(Serializable id); /** 查询全部 */ List<SpecificationOption> findAll(); /** 多条件分页查询 */ List<SpecificationOption> findByPage(SpecificationOption specificationOption, int page, int rows); }
[ "lixiaohua@itcast.cn" ]
lixiaohua@itcast.cn
a9ef6d2447980de17e786e3b38d3ebac93e239ab
c7e00a4ee8bcada12370b42c38b34c6a52b35ee5
/src/task/OctagonalButton.java
ba354196d97170e568a04c6365442a45a5130567
[]
no_license
RieAkiba/Illustlation_Application
31a8bd861f3db65c368961c6051ec9bd3a98b617
a9c02e096a3951be6e31c2d994d75226549b59e9
refs/heads/master
2020-04-13T07:20:10.417137
2019-02-07T15:11:19
2019-02-07T15:11:19
163,048,516
0
0
null
null
null
null
UTF-8
Java
false
false
534
java
package task5; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; public class OctagonalButton extends JButton{ private StateManager stateManager; public OctagonalButton(StateManager stateManager) { super("Octagonal"); addActionListener(new OctagonalListener()); this.stateManager = stateManager; } class OctagonalListener implements ActionListener{ public void actionPerformed(ActionEvent e) { stateManager.setState(new OctagonalState(stateManager)); } } }
[ "noreply@github.com" ]
RieAkiba.noreply@github.com
873cf106ac88e064a2a55363b45a81140b947edc
40d844c1c780cf3618979626282cf59be833907f
/src/testcases/CWE129_Improper_Validation_of_Array_Index/s03/CWE129_Improper_Validation_of_Array_Index__large_fixed_array_write_no_check_75b.java
545dae5ba7f32c68def78599573e2de95226e0ad
[]
no_license
rubengomez97/juliet
f9566de7be198921113658f904b521b6bca4d262
13debb7a1cc801977b9371b8cc1a313cd1de3a0e
refs/heads/master
2023-06-02T00:37:24.532638
2021-06-23T17:22:22
2021-06-23T17:22:22
379,676,259
1
0
null
null
null
null
UTF-8
Java
false
false
7,216
java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE129_Improper_Validation_of_Array_Index__large_fixed_array_write_no_check_75b.java Label Definition File: CWE129_Improper_Validation_of_Array_Index.label.xml Template File: sources-sinks-75b.tmpl.java */ /* * @description * CWE: 129 Improper Validation of Array Index * BadSource: large_fixed Set data to a value greater than the size of the array * GoodSource: A hardcoded non-zero, non-min, non-max, even number * Sinks: array_write_no_check * GoodSink: Write to array after verifying index * BadSink : Write to array without any verification of index * Flow Variant: 75 Data flow: data passed in a serialized object from one method to another in different source files in the same package * * */ package testcases.CWE129_Improper_Validation_of_Array_Index.s03; import testcasesupport.*; import java.io.ByteArrayInputStream; import java.io.ObjectInputStream; import java.io.IOException; import java.util.logging.Level; import javax.servlet.http.*; public class CWE129_Improper_Validation_of_Array_Index__large_fixed_array_write_no_check_75b { public void badSink(byte[] dataSerialized ) throws Throwable { /* unserialize data */ ByteArrayInputStream streamByteArrayInput = null; ObjectInputStream streamObjectInput = null; try { streamByteArrayInput = new ByteArrayInputStream(dataSerialized); streamObjectInput = new ObjectInputStream(streamByteArrayInput); int data = (Integer)streamObjectInput.readObject(); /* Need to ensure that the array is of size > 3 and < 101 due to the GoodSource and the large_fixed BadSource */ int array[] = { 0, 1, 2, 3, 4 }; /* POTENTIAL FLAW: Attempt to write to array at location data, which may be outside the array bounds */ array[data] = 42; /* Skip reading back data from array since that may be another out of bounds operation */ } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "IOException in deserialization", exceptIO); } catch (ClassNotFoundException exceptClassNotFound) { IO.logger.log(Level.WARNING, "ClassNotFoundException in deserialization", exceptClassNotFound); } finally { /* clean up stream reading objects */ try { if (streamObjectInput != null) { streamObjectInput.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing ObjectInputStream", exceptIO); } try { if (streamByteArrayInput != null) { streamByteArrayInput.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing ByteArrayInputStream", exceptIO); } } } /* goodG2B() - use GoodSource and BadSink */ public void goodG2BSink(byte[] dataSerialized ) throws Throwable { /* unserialize data */ ByteArrayInputStream streamByteArrayInput = null; ObjectInputStream streamObjectInput = null; try { streamByteArrayInput = new ByteArrayInputStream(dataSerialized); streamObjectInput = new ObjectInputStream(streamByteArrayInput); int data = (Integer)streamObjectInput.readObject(); /* Need to ensure that the array is of size > 3 and < 101 due to the GoodSource and the large_fixed BadSource */ int array[] = { 0, 1, 2, 3, 4 }; /* POTENTIAL FLAW: Attempt to write to array at location data, which may be outside the array bounds */ array[data] = 42; /* Skip reading back data from array since that may be another out of bounds operation */ } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "IOException in deserialization", exceptIO); } catch (ClassNotFoundException exceptClassNotFound) { IO.logger.log(Level.WARNING, "ClassNotFoundException in deserialization", exceptClassNotFound); } finally { /* clean up stream reading objects */ try { if (streamObjectInput != null) { streamObjectInput.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing ObjectInputStream", exceptIO); } try { if (streamByteArrayInput != null) { streamByteArrayInput.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing ByteArrayInputStream", exceptIO); } } } /* goodB2G() - use BadSource and GoodSink */ public void goodB2GSink(byte[] dataSerialized ) throws Throwable { /* unserialize data */ ByteArrayInputStream streamByteArrayInput = null; ObjectInputStream streamObjectInput = null; try { streamByteArrayInput = new ByteArrayInputStream(dataSerialized); streamObjectInput = new ObjectInputStream(streamByteArrayInput); int data = (Integer)streamObjectInput.readObject(); /* Need to ensure that the array is of size > 3 and < 101 due to the GoodSource and the large_fixed BadSource */ int array[] = { 0, 1, 2, 3, 4 }; /* FIX: Verify index before writing to array at location data */ if (data >= 0 && data < array.length) { array[data] = 42; } else { IO.writeLine("Array index out of bounds"); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "IOException in deserialization", exceptIO); } catch (ClassNotFoundException exceptClassNotFound) { IO.logger.log(Level.WARNING, "ClassNotFoundException in deserialization", exceptClassNotFound); } finally { /* clean up stream reading objects */ try { if (streamObjectInput != null) { streamObjectInput.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing ObjectInputStream", exceptIO); } try { if (streamByteArrayInput != null) { streamByteArrayInput.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing ByteArrayInputStream", exceptIO); } } } }
[ "you@example.com" ]
you@example.com
8ac57d9604fbd86cf13772eaa3c53bef88870f5a
a1f0d82da5293ffd0bc5d1e6af456f64fa612beb
/src/minesweeper/score/HallOfFame.java
d4a4a4bd6be896813658b40d2a16e81833ab8b20
[]
no_license
mmravec/Mines
51a589aa6b0b8651faff049d33e7db4dfbfecc9b
604613a9c0db3b3b8e4385c47f963e0c620a76ab
refs/heads/master
2021-01-10T06:05:35.806205
2016-01-14T07:22:31
2016-01-14T07:22:31
49,629,773
0
0
null
null
null
null
UTF-8
Java
false
false
658
java
package minesweeper.score; import java.util.ArrayList; import java.util.List; public abstract class HallOfFame { public abstract void addScore(String name, int time) throws Exception; public abstract List<UserScore> loadScore() throws Exception; @Override public String toString() { List<UserScore> scores; try { scores = loadScore(); } catch (Exception e) { scores = new ArrayList<>(); } StringBuilder sb = new StringBuilder(); int index = 1; for (UserScore score : scores) { sb.append(index + ". " + score.getName() + " " + score.getTime() + "\n"); index++; } return sb.toString(); } }
[ "P3502441@C3500100375.ness.com" ]
P3502441@C3500100375.ness.com
ba712dd54ae206a5eb512a5d0e24fcbb7c34fd23
c4a14d70951d7ec5aac7fe7ebb2db891cfe6c0b1
/modulos/apps/LOCALGIS-Workbench/src/main/java/com/geopista/ui/plugin/clipboard/GeopistaCutSelectedItemsPlugIn.java
2005377ecdff581482dc31648ea4f3659f4c2228
[]
no_license
pepeysusmapas/allocalgis
925756321b695066775acd012f9487cb0725fcde
c14346d877753ca17339f583d469dbac444ffa98
refs/heads/master
2020-09-14T20:15:26.459883
2016-09-27T10:08:32
2016-09-27T10:08:32
null
0
0
null
null
null
null
WINDOWS-1252
Java
false
false
2,057
java
/** * GeopistaCutSelectedItemsPlugIn.java * © MINETUR, Government of Spain * This program is part of LocalGIS * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. * You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ package com.geopista.ui.plugin.clipboard; import com.geopista.ui.plugin.GeopistaDeleteSelectedItemsPlugIn; import com.vividsolutions.jump.util.StringUtil; import com.vividsolutions.jump.workbench.WorkbenchContext; import com.vividsolutions.jump.workbench.plugin.AbstractPlugIn; import com.vividsolutions.jump.workbench.plugin.MacroPlugIn; import com.vividsolutions.jump.workbench.plugin.MultiEnableCheck; import com.vividsolutions.jump.workbench.plugin.PlugIn; import com.vividsolutions.jump.workbench.ui.plugin.DeleteSelectedItemsPlugIn; import com.vividsolutions.jump.workbench.ui.plugin.clipboard.CopySelectedItemsPlugIn; public class GeopistaCutSelectedItemsPlugIn extends MacroPlugIn { public GeopistaCutSelectedItemsPlugIn () { super(new PlugIn[] { new CopySelectedItemsPlugIn(), new GeopistaDeleteSelectedItemsPlugIn() }); } public String getName() { return AbstractPlugIn.createName(getClass()); } public String getNameWithMnemonic() { return StringUtil.replace(getName(), "t", "&t", false); } public static MultiEnableCheck createEnableCheck(WorkbenchContext workbenchContext) { return DeleteSelectedItemsPlugIn.createEnableCheck(workbenchContext); } }
[ "jorge.martin@cenatic.es" ]
jorge.martin@cenatic.es
c93b11cdbfe223af845845eb55ac35df38dad752
9507d6f151ed45f4954513a46c289e05efc8c4c6
/uebung2/loesung/ueb2-spring-server-loesung/src/main/java/de/qaware/rookiecamp/sstdesign/ueb2/loesung/api/QAcoffeeAdminAPI.java
a82ffc30548656c3c31da35083c54adcedb816e5
[]
no_license
martinb77/RookieCampSSTDesign2017
fb8429564511f364c3582ae0bb1aa9b73aa76e23
5f2e6e4606e614529798bb84c38d66806d21f34b
refs/heads/master
2021-09-04T00:46:32.421016
2018-01-13T14:36:00
2018-01-13T14:36:00
111,391,532
0
2
null
null
null
null
UTF-8
Java
false
false
3,949
java
package de.qaware.rookiecamp.sstdesign.ueb2.loesung.api; import de.qaware.rookiecamp.sstdesign.ueb2.loesung.api.model.Beverage; import de.qaware.rookiecamp.sstdesign.ueb2.loesung.api.model.Errors; import de.qaware.rookiecamp.sstdesign.ueb2.loesung.api.response.BeverageResponse; import de.qaware.rookiecamp.sstdesign.ueb2.loesung.api.response.BooleanResponse; import io.swagger.annotations.*; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @Api(description = "Administrative functions for the QAcoffe application", tags = {"data"}) @RequestMapping(path = "/data", produces = "application/json") @Controller public class QAcoffeeAdminAPI { @ApiOperation(value = "Create a new beverage. Requires ADMIN role.", notes = "Return value is the stored data including its new beverageId.") @ApiResponses(value = { @ApiResponse(code = 200, message = "Successful operation, may contain business errors.", response = BeverageResponse.class), @ApiResponse(code = 400, message = "Wrong parameters, unable to process the request in a proper way.", response = Errors.class), @ApiResponse(code = 500, message = "An internal error occurred, unable to process the request in a proper way.", response = Errors.class)}) @RequestMapping(path = "/beverages", method = RequestMethod.POST) public ResponseEntity<BeverageResponse> createBeverage(@ApiParam(value = "The beverage which should be created, 'beverageId' must be not set.", required = true) @RequestBody Beverage beverage) { //business actions here return ResponseEntity.ok().build(); } @ApiOperation(value = "Update a given beverage. Requires ADMIN role.", notes = "The beverage must be already existent. Return value is the updated and stored data.") @ApiResponses(value = { @ApiResponse(code = 200, message = "Successful operation, may contain business errors.", response = BeverageResponse.class), @ApiResponse(code = 400, message = "Wrong parameters, unable to process the request in a proper way.", response = Errors.class), @ApiResponse(code = 500, message = "An internal error occurred, unable to process the request in a proper way.", response = Errors.class)}) @RequestMapping(path = "/beverages", method = RequestMethod.PUT) public ResponseEntity<BeverageResponse> updateBeverage(@ApiParam(value = "The updated data of the beverage", required = true) @RequestBody Beverage beverage) { //business actions here return ResponseEntity.ok().build(); } @ApiOperation(value = "Delete a certain beverage. Requires ADMIN role.", notes = "Deletes the beverage in the database") @ApiResponses(value = { @ApiResponse(code = 200, message = "Successful operation, may contain business errors.", response = BooleanResponse.class), @ApiResponse(code = 400, message = "Wrong parameters, unable to process the request in a proper way.", response = Errors.class), @ApiResponse(code = 500, message = "An internal error occurred, unable to process the request in a proper way.", response = Errors.class)}) @RequestMapping(path = "/beverages/{beverage}", method = RequestMethod.DELETE) public ResponseEntity<BooleanResponse> deleteBeverage(@ApiParam(value = "the ID of the beverage", required = true) @PathVariable Integer beverage) { //business actions here return ResponseEntity.ok().build(); } }
[ "martin.binder@qaware.de" ]
martin.binder@qaware.de
fb42cabc13d5fc8e17a4cef59735e6628095bee1
817fdd0e226b27ff7f5fbafd7be61d577824a745
/DIHiltJava/app/src/main/java/com/example/dihiltjava/MyHiltApplication.java
b133580317c19958a9ead0dc34d177dca18cbf52
[]
no_license
bagus-stimata/DI-Hilt-Dagger
1529fa1bac77ac4bec3607602a3b79c02803fdd5
9fbcd77c898ef108536990ea8ab0ebd6a965b4fc
refs/heads/master
2023-02-10T12:05:29.141200
2021-01-11T07:27:26
2021-01-11T07:27:26
309,604,662
1
0
null
null
null
null
UTF-8
Java
false
false
256
java
package com.example.dihiltjava; import android.app.Application; import dagger.hilt.android.HiltAndroidApp; @HiltAndroidApp public class MyHiltApplication extends Application { @Override public void onCreate() { super.onCreate(); } }
[ "bagus.stimata@gmail.com" ]
bagus.stimata@gmail.com
d697338eb6e631d3796413ae23b4e7712b21c1df
130f321a23dee784274f861c352ae2bf19cf4aeb
/src/variables/task.java
5d0cea48e351a1827c53cebcaad5d1b234a98dc4
[]
no_license
venerakadyr/Java_Project_B14
ef2da72c7f25b56639ce253f1a8d1ebd8a07f17e
f4c90b6e53ee07c3a71c8104016abbf800c398e2
refs/heads/master
2022-09-17T20:05:51.176889
2020-05-27T19:52:22
2020-05-27T19:52:22
220,682,456
0
0
null
2020-05-27T19:52:23
2019-11-09T18:03:12
Java
UTF-8
Java
false
false
316
java
package variables; public class task { public static void main(String[] args) { // You have a temperature in Fahrenheit: 72.5 //Print out the temperature in celsius //Formula: degrees celsius = 5 (degrees F - 32) / 9 double tempF=72.5; System.out.println(5*(tempF-32)/9); } }
[ "57569728+venerakadyr@users.noreply.github.com" ]
57569728+venerakadyr@users.noreply.github.com
0ff999c028cc2ff3a0947c6417a043bbffb43ac5
d4220980e56f7e958a561744d944d77d88f0b1c9
/VillaKathrine/VillaKathrine/obj/Debug/android/src/md5839ece1ad673f025203fb3eb247aa9b5/TouchImageView_DoubleTapZoom.java
d120b155d71a9c0c7c949ec5225ee7941d63b817
[]
no_license
CSC496-MobileProject/VillaKatherine
9f791f305ed21cf5eafe41bc87d3bf259be28077
5bf7ade5a8fbe4a573cb1f460459886bb4622361
refs/heads/master
2020-12-31T06:23:54.106645
2017-04-25T21:51:41
2017-04-25T21:51:41
80,589,512
0
0
null
2017-02-15T01:44:54
2017-02-01T04:29:03
null
UTF-8
Java
false
false
2,205
java
package md5839ece1ad673f025203fb3eb247aa9b5; public class TouchImageView_DoubleTapZoom extends java.lang.Object implements mono.android.IGCUserPeer, java.lang.Runnable { /** @hide */ public static final String __md_methods; static { __md_methods = "n_run:()V:GetRunHandler:Java.Lang.IRunnableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\n" + ""; mono.android.Runtime.register ("VillaKathrine.TouchImageView+DoubleTapZoom, VillaKathrine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", TouchImageView_DoubleTapZoom.class, __md_methods); } public TouchImageView_DoubleTapZoom () throws java.lang.Throwable { super (); if (getClass () == TouchImageView_DoubleTapZoom.class) mono.android.TypeManager.Activate ("VillaKathrine.TouchImageView+DoubleTapZoom, VillaKathrine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "", this, new java.lang.Object[] { }); } public TouchImageView_DoubleTapZoom (md5839ece1ad673f025203fb3eb247aa9b5.TouchImageView p0, float p1, float p2, float p3, boolean p4) throws java.lang.Throwable { super (); if (getClass () == TouchImageView_DoubleTapZoom.class) mono.android.TypeManager.Activate ("VillaKathrine.TouchImageView+DoubleTapZoom, VillaKathrine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "VillaKathrine.TouchImageView, VillaKathrine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null:System.Single, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e:System.Single, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e:System.Single, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e:System.Boolean, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", this, new java.lang.Object[] { p0, p1, p2, p3, p4 }); } public void run () { n_run (); } private native void n_run (); private java.util.ArrayList refList; public void monodroidAddReference (java.lang.Object obj) { if (refList == null) refList = new java.util.ArrayList (); refList.add (obj); } public void monodroidClearReferences () { if (refList != null) refList.clear (); } }
[ "rainwbr@quincy.edu" ]
rainwbr@quincy.edu
e0f81f6abbbb13e6894e36d16051dfacba046591
335b97b192bb276727018c86151895bafd55a81c
/zookeeper/blockingQueue/src/main/java/com/shawn/blockingQueue/AppConstant.java
ce3a4c6197354f5167dd1adc0b7c083038e24b4f
[]
no_license
zhangxiulin/precious
cf1b203be5a78bb9fe2f47e60687fdbc75b26c92
3d954b23a4fa2030d55084745bba91d1932efb8b
refs/heads/master
2023-01-01T19:52:17.930573
2020-08-24T15:54:33
2020-08-24T15:54:33
256,669,436
0
0
null
2020-10-13T21:17:24
2020-04-18T04:28:45
HTML
UTF-8
Java
false
false
244
java
package com.shawn.blockingQueue; public interface AppConstant { static String ZK_CONNECT_STR = "127.0.0.1:2181"; static String NODE_PATH = "/mailbox"; static String CHILD_NODE_PATH = "/mail_"; static int MAILBOX_SIZE = 10; }
[ "1029443231@qq.com" ]
1029443231@qq.com
340094521286e666eb03793f9066e4b9e976e5b5
271a378b5db9288dd6d00423decc6e30dbc3f42d
/JavaCollections/task2028/CustomTree.java
ab2bc8864d1bf381b51724eadfbae33c59e81ef9
[]
no_license
Oleksandr-Kononiuk/JavaRushStudy
83fc4c4046f16fd81363027b2f8bd03587806435
8d6a6e2f6761d97f9772dc0c403325f17dcb6a01
refs/heads/master
2020-09-15T08:33:48.989716
2020-08-10T14:00:00
2020-08-10T14:00:00
223,396,011
0
0
null
null
null
null
UTF-8
Java
false
false
15,958
java
package com.javarush.task.task20.task2028; import java.io.Serializable; import java.util.*; /* Построй дерево(1) Добавлять в дерево элементы мы можем, теперь займись удалением: Необходимо реализовать метод remove(Object o), который будет удалять элемент дерева имя которого было полученного в качестве параметра. Если переданный объект не является строкой, метод должен бросить UnsupportedOperationException. Если в дереве присутствует несколько элементов с переданным именем - можешь удалить только первый найденный. Не забывай сверять поведение своего дерева с картинкой: [Картинка] Что будет если удалить из дерева элементы "3", "4", "5" и "6", а затем попытаемся добавить новый елемент? В таком случае элементы "1" и "2" должны восстановить возможность иметь потомков (возможно придется внести изменения в метод add()). Требования: 1. После удаления последнего добавленного элемента из дерева с помощью метода remove, метод size должен возвращать N-1. 2. После удаления второго элемента добавленного в дерево, метод size должен возвращать N/2 + 1 (для случаев где N > 2 и является степенью двойки), N - размер дерева до удаления. 3. Если переданный объект не является строкой, метод remove() должен бросить UnsupportedOperationException. 4. Если ни один элемент не способен иметь потомков, необходимо восстановить такую возможность. */ public class CustomTree extends AbstractList<String> implements Cloneable, Serializable { Entry<String> root; private int size = 0; public CustomTree() { this.root = new Entry("0"); } @Override public String get(int index) { Entry<String> current = root; // Starting from root node. while (current.index != index) { // While we find it. if (index < current.index) { // Left side? current = current.leftChild; } else { current = current.rightChild; // Or right? } if (current == null) { // Haven`t child return null; // Don`t found node. } } return current.elementName; } public String getParent(String s) { Entry<String> current = root; String parent = null; Stack<Entry<String>> stack = new Stack<>(); stack.add(current); if (root.elementName.equals(s)) { return null; } do { if (current != null & current.elementName.equals(s)) { parent = current.parent.elementName; } if (current.leftChild != null) stack.add(current.leftChild); if (current.rightChild != null) stack.add(current.rightChild); if (!stack.empty()) current = stack.pop(); } while (!stack.empty()); return parent; } @Override public String set(int index, String element) { throw new UnsupportedOperationException(); } @Override public boolean remove(Object o) { if (o instanceof String) { String element = (String)o; Stack<Entry<String>> stack = new Stack<>(); Entry<String> current = root; // Starting from root node. Entry<String> parent = root; stack.add(current); // Looking up our node in the tree do { if (current != null) { if (current.elementName.equals(element)) { parent = current.parent; break; } if (current.leftChild != null) stack.add(current.leftChild); if (current.rightChild != null) stack.add(current.rightChild); } if (!stack.empty()) { current = stack.pop(); } } while (!stack.empty()); // Looking up all the nodes from "current" node. It`s doing for to clarify the size. stack.clear(); stack.add(current); int stackSize = 0; do { if (current != null) { if (current.leftChild != null) stack.add(current.leftChild); if (current.rightChild != null) stack.add(current.rightChild); } if (!stack.empty()) { current = stack.pop(); stackSize++; } } while (!stack.empty()); // Delete parent link on the current and current link on the parent. // Destroying the connection between parent and child. // After GC doing his work. if (parent.leftChild == null || parent.leftChild.equals(current)) { parent.leftChild = null; } else { parent.rightChild = null; } if (!parent.availableToAddLeftChildren) { parent.availableToAddLeftChildren = true; } else { parent.availableToAddRightChildren = true; } size = size - stackSize; current.parent = null; } else { throw new UnsupportedOperationException(); } return true; ///////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// // //This block is a classical realization of remove method from book Lafore Robert Data Structures and Algorithms in Java // //Maybe code is bad because it`s if...else blocks and who-is-who for nodes is confuses ^_^ // if (o instanceof String) { // String element = (String)o; // Stack<Entry<String>> stack = new Stack<>(); // // Entry<String> current = root; // Starting from root node. // Entry<String> parent = root; // // stack.add(current); // // //Looking up node // do { // if (current != null) { // if (current.elementName.equals(element)) { // parent = current.parent; // break; // } // if (current.leftChild != null) // stack.add(current.leftChild); // if (current.rightChild != null) // stack.add(current.rightChild); // } // if (!stack.empty()) { // current = stack.pop(); // } // } while (!stack.empty()); // // //node is leaf // if (current.rightChild == null && current.leftChild == null) { // if (current.equals(root)) { // root = null; // } else { // current.parent = null; // // if (parent.leftChild != null && parent.leftChild.equals(current)) //isLeftChild // parent.leftChild = null; // else // parent.rightChild = null; // } // } else //Deleting node have one child node // if (current.rightChild == null) { // Left child // if (current == root) { // root = current.leftChild; // root.parent = null; // } else if (parent.leftChild.equals(current)) { // parent.leftChild = current.leftChild; // current.leftChild.parent = parent; // } else { // parent.rightChild = current.rightChild; // } // } else if (current.leftChild == null) { // Right child // if (current == root) { // root = current.rightChild; // root.parent = null; // } else if (parent.rightChild.equals(current)) { // parent.rightChild = current.rightChild; // current.rightChild.parent = parent; // } else { // parent.leftChild = current.leftChild; // } // } else { //Deleting node have two child nodes // Entry<String> successor = getSuccessor(current); // // if (successor.equals(current.rightChild)) { // if (current == root) { // root = successor; // successor.parent = null; // } else if (parent.leftChild != null & parent.leftChild.equals(current)) { // parent.leftChild = successor; // successor.parent = parent; // successor.leftChild = current.leftChild; // current.leftChild.parent = successor; // //Clear current connections // current.leftChild = null; // current.rightChild = null; // current.parent = null; // // } else { // parent.rightChild = successor; // successor.parent = parent; // successor.leftChild = current.leftChild; // current.leftChild.parent = successor; // // current.leftChild = null; // current.rightChild = null; // current.parent = null; // } // } else {// Successor right child have left child // //maybe this block need move to getSuccessor() method // successor.parent.leftChild = successor.rightChild; // successor.rightChild.parent = successor.parent; // // successor.rightChild = current.rightChild; // successor.rightChild.parent = successor; // // parent.rightChild = successor; // successor.parent = parent; // // successor.leftChild = current.leftChild; // successor.leftChild.parent = successor; // // current.leftChild = null; // current.rightChild = null; // current.parent = null; // }// For tests // try { System.out.println("successor " + successor.elementName); // } catch (NullPointerException e) { System.out.println("successor null"); // } // try { System.out.println("successor.leftChild " + successor.leftChild.elementName); // } catch (NullPointerException e) {System.out.println("successor.leftChild null"); // } // try { System.out.println("successor.rightChild " + successor.rightChild.elementName); // } catch (NullPointerException e) {System.out.println("successor.rightChild null"); // } // try { System.out.println("successor.parent " + successor.parent.elementName); // } catch (NullPointerException e) {System.out.println("successor.parent null"); // } // } // } // return true; } private Entry<String> getSuccessor(Entry<String> delNode){ Entry<String> successorParent = delNode; Entry<String> successor = delNode; Entry<String> current = delNode.rightChild; // Go to the right child while(current != null) { successorParent = successor; successor = current; current = current.leftChild; // go to the lest child } if(successor != delNode.rightChild) { // If successor isn`t right child make connections between nodes successorParent.leftChild = successor.rightChild; successor.rightChild = delNode.rightChild; } return successor; } @Override public boolean addAll(int index, Collection<? extends String> c) { throw new UnsupportedOperationException(); } @Override public List<String> subList(int fromIndex, int toIndex) { throw new UnsupportedOperationException(); } @Override protected void removeRange(int fromIndex, int toIndex) { throw new UnsupportedOperationException(); } @Override public boolean add(String element) { Entry<String> top = root; Entry<String> current = new Entry<>(element); Queue<Entry<String>> queue = new LinkedList<>(); do { if (top.leftChild != null) { // If in the left side is node - adding it in the queue. queue.add(top.leftChild); } else { top.leftChild = current; // Create new node in the left subtree. top.cantMakeChildren(); // Parent cant have child on this direction. current.parent = top; // Set parent. size++; return true; } if (top.rightChild != null) { // Similar as for left subtree. queue.add(top.rightChild); } else { top.rightChild = current; top.cantMakeChildren(); current.parent = top; size++; return true; } if (!queue.isEmpty()) { top = queue.poll(); // Take node from the queue head and delete his from queue. } } while (!queue.isEmpty()); queue.clear(); return false; } @Override public int size() { if (root == null){ return 0; } return size; } static class Entry<T> implements Serializable { String elementName; boolean availableToAddLeftChildren, availableToAddRightChildren; Entry<T> parent, leftChild, rightChild; int index; public Entry(String elementName) { this.elementName = elementName; this.availableToAddLeftChildren = true; this.availableToAddRightChildren = true; } private void cantMakeChildren() { if (leftChild != null) availableToAddLeftChildren = false; if (rightChild != null) availableToAddRightChildren = false; } // Don`t know why we create this method ^_^ public boolean isAvailableToAddChildren() { return availableToAddLeftChildren || availableToAddRightChildren; } } }
[ "morganblack@ukr.net" ]
morganblack@ukr.net
968ea21b77360b11e91921d83d48cf63b0ad44b5
9e20645e45cc51e94c345108b7b8a2dd5d33193e
/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestMoveToLocationInVehicle.java
532911157996a9a972e5d415b720ab1b85c5c3e9
[]
no_license
Enryu99/L2jMobius-01-11
2da23f1c04dcf6e88b770f6dcbd25a80d9162461
4683916852a03573b2fe590842f6cac4cc8177b8
refs/heads/master
2023-09-01T22:09:52.702058
2021-11-02T17:37:29
2021-11-02T17:37:29
423,405,362
2
2
null
null
null
null
UTF-8
Java
false
false
4,133
java
/* * This file is part of the L2J Mobius project. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; import org.l2jmobius.commons.network.PacketReader; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.BoatInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.type.WeaponType; import org.l2jmobius.gameserver.network.GameClient; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.ActionFailed; import org.l2jmobius.gameserver.network.serverpackets.MoveToLocationInVehicle; import org.l2jmobius.gameserver.network.serverpackets.StopMoveInVehicle; public class RequestMoveToLocationInVehicle implements IClientIncomingPacket { private int _boatId; private int _targetX; private int _targetY; private int _targetZ; private int _originX; private int _originY; private int _originZ; @Override public boolean read(GameClient client, PacketReader packet) { _boatId = packet.readD(); // objectId of boat _targetX = packet.readD(); _targetY = packet.readD(); _targetZ = packet.readD(); _originX = packet.readD(); _originY = packet.readD(); _originZ = packet.readD(); return true; } @Override public void run(GameClient client) { final PlayerInstance player = client.getPlayer(); if (player == null) { return; } if ((Config.PLAYER_MOVEMENT_BLOCK_TIME > 0) && !player.isGM() && (player.getNotMoveUntil() > Chronos.currentTimeMillis())) { player.sendPacket(SystemMessageId.YOU_CANNOT_MOVE_WHILE_SPEAKING_TO_AN_NPC_ONE_MOMENT_PLEASE); player.sendPacket(ActionFailed.STATIC_PACKET); return; } if ((_targetX == _originX) && (_targetY == _originY) && (_targetZ == _originZ)) { player.sendPacket(new StopMoveInVehicle(player, _boatId)); return; } if (player.isAttackingNow() && (player.getActiveWeaponItem() != null) && (player.getActiveWeaponItem().getItemType() == WeaponType.BOW)) { player.sendPacket(ActionFailed.STATIC_PACKET); return; } if (player.isSitting() || player.isMovementDisabled()) { player.sendPacket(ActionFailed.STATIC_PACKET); return; } if (player.hasSummon()) { player.sendPacket(SystemMessageId.YOU_SHOULD_RELEASE_YOUR_PET_OR_SERVITOR_SO_THAT_IT_DOES_NOT_FALL_OFF_OF_THE_BOAT_AND_DROWN); player.sendPacket(ActionFailed.STATIC_PACKET); return; } if (player.isTransformed()) { player.sendPacket(SystemMessageId.YOU_CANNOT_POLYMORPH_WHILE_RIDING_A_BOAT); player.sendPacket(ActionFailed.STATIC_PACKET); return; } BoatInstance boat; if (player.isInBoat()) { boat = player.getBoat(); if (boat.getObjectId() != _boatId) { boat = BoatManager.getInstance().getBoat(_boatId); player.setVehicle(boat); } } else { boat = BoatManager.getInstance().getBoat(_boatId); player.setVehicle(boat); } final Location pos = new Location(_targetX, _targetY, _targetZ); final Location originPos = new Location(_originX, _originY, _originZ); player.setInVehiclePosition(pos); player.broadcastPacket(new MoveToLocationInVehicle(player, pos, originPos)); } }
[ "MobiusDevelopment@7325c9f8-25fd-504a-9f63-8876acdc129b" ]
MobiusDevelopment@7325c9f8-25fd-504a-9f63-8876acdc129b
911a4f504c2d9b3e128526037e67a504da5cb6f4
0c1673d963d6a3cd67380e1d00f6cc53fac49f65
/src/com/craig/IFizzBuzz.java
15e370f9fc58810aba7c854ef25c117a9ce9a9fe
[]
no_license
jcruz63/craigCodingAssessment
e0567ee552390f0758ba054b46c859b7769a34b0
cc2c1533684d70698159a47645827ba644ac6427
refs/heads/master
2022-12-29T09:41:21.592512
2020-10-19T12:26:15
2020-10-19T12:26:15
305,303,188
0
0
null
null
null
null
UTF-8
Java
false
false
81
java
package com.craig; public interface IFizzBuzz { public void doFizzBuzz(); }
[ "46271776+jcruz63@users.noreply.github.com" ]
46271776+jcruz63@users.noreply.github.com
5558566278b784317ba82a7c3ea90e3d79e5fbac
73b61f8d3bdbb315af2730a873285df1659e882a
/src/main/java/com/firstpeak/TFIDFTester.java
dd2d162a17277874a174911e28d4febfb84db2c6
[]
no_license
mmingfeilam/opennlp-categorizer
a05d8f975411609db8c9de12acea039b3f48924e
f335926ac377a5fdba41598b038dfac4a1fe152b
refs/heads/master
2021-01-10T06:10:16.446660
2016-04-04T08:06:47
2016-04-04T08:06:47
55,394,568
0
1
null
null
null
null
UTF-8
Java
false
false
7,433
java
package com.firstpeak; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.commons.io.FileUtils; import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.SequenceFile; import org.apache.hadoop.io.Text; import org.apache.hadoop.io.Writable; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.mahout.common.Pair; import org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable; import org.apache.mahout.vectorizer.DictionaryVectorizer; import org.apache.mahout.vectorizer.DocumentProcessor; import org.apache.mahout.vectorizer.common.PartialVectorMerger; import org.apache.mahout.vectorizer.tfidf.TFIDFConverter; public class TFIDFTester { String outputFolder; Configuration configuration; FileSystem fileSystem; Path documentsSequencePath; Path tokenizedDocumentsPath; Path tfidfPath; Path termFrequencyVectorsPath; public static void main(String args[]) throws Exception { TFIDFTester tester = new TFIDFTester(); tester.createTestDocuments2(); tester.calculateTfIdf(); tester.printSequenceFile(tester.documentsSequencePath); System.out.println("\n Step 1: Word count "); tester.printSequenceFile(new Path(tester.outputFolder + "wordcount/part-r-00000")); System.out.println("\n Step 2: Word dictionary "); tester.printSequenceFile(new Path(tester.outputFolder, "dictionary.file-0")); System.out.println("\n Step 3: Term Frequency Vectors "); tester.printSequenceFile(new Path(tester.outputFolder + "tf-vectors/part-r-00000")); System.out.println("\n Step 4: Document Frequency "); tester.printSequenceFile(new Path(tester.outputFolder + "tfidf/df-count/part-r-00000")); System.out.println("\n Step 5: TFIDF "); List<Integer> indexList = new ArrayList<Integer>(); List<Float> tfidfList = new ArrayList<Float>(); double seventyFivePercentile = tester.printSequenceFileTFIDF(new Path(tester.outputFolder + "tfidf/tfidf-vectors/part-r-00000"), indexList, tfidfList); System.out.format("75 percentile: %s", seventyFivePercentile); } public TFIDFTester() throws IOException { configuration = new Configuration(); fileSystem = FileSystem.get(configuration); outputFolder = "output/"; documentsSequencePath = new Path(outputFolder, "sequence"); tokenizedDocumentsPath = new Path(outputFolder, DocumentProcessor.TOKENIZED_DOCUMENT_OUTPUT_FOLDER); tfidfPath = new Path(outputFolder + "tfidf"); termFrequencyVectorsPath = new Path(outputFolder + DictionaryVectorizer.DOCUMENT_VECTOR_OUTPUT_FOLDER); } public void createTestDocuments() throws IOException { SequenceFile.Writer writer = new SequenceFile.Writer(fileSystem, configuration, documentsSequencePath, Text.class, Text.class); Text id1 = new Text("Document 1"); Text text1 = new Text("I saw a yellow car and a green car. Google stock is tanking"); writer.append(id1, text1); Text id2 = new Text("Document 2"); Text text2 = new Text("You saw a red car. Google stock is taking a dive"); writer.append(id2, text2); writer.close(); } public void createTestDocuments2() throws IOException { SequenceFile.Writer writer = new SequenceFile.Writer(fileSystem, configuration, documentsSequencePath, Text.class, Text.class); String content = readFile("input/google_bad.txt"); Text id1 = new Text("Document 1"); Text text1 = new Text(content); writer.append(id1, text1); content = readFile("input/google_good.txt"); Text id2 = new Text("Document 2"); Text text2 = new Text(content); writer.append(id2, text2); writer.close(); } public void calculateTfIdf() throws ClassNotFoundException, IOException, InterruptedException { // Tokenize the documents using Apache Lucene StandardAnalyzer DocumentProcessor.tokenizeDocuments(documentsSequencePath, StandardAnalyzer.class, tokenizedDocumentsPath, configuration); DictionaryVectorizer.createTermFrequencyVectors(tokenizedDocumentsPath, new Path(outputFolder), DictionaryVectorizer.DOCUMENT_VECTOR_OUTPUT_FOLDER, configuration, 1, 1, 0.0f, PartialVectorMerger.NO_NORMALIZING, true, 1, 100, false, false); Pair<Long[], List<Path>> documentFrequencies = TFIDFConverter .calculateDF(termFrequencyVectorsPath, tfidfPath, configuration, 100); TFIDFConverter.processTfIdf(termFrequencyVectorsPath, tfidfPath, configuration, documentFrequencies, 1, 100, PartialVectorMerger.NO_NORMALIZING, false, false, false, 1); } void printSequenceFile(Path path) { SequenceFileIterable<Writable, Writable> iterable = new SequenceFileIterable<Writable, Writable>( path, configuration); for (Pair<Writable, Writable> pair : iterable) { System.out .format("%10s -> %s\n", pair.getFirst(), pair.getSecond()); } } double printSequenceFileTFIDF(Path path, List<Integer> indexList, List<Float> tfidfList) { SequenceFileIterable<Writable, Writable> iterable = new SequenceFileIterable<Writable, Writable>( path, configuration); for (Pair<Writable, Writable> pair : iterable) { String docString = pair.getSecond().toString(); docString = docString.substring(1, docString.lastIndexOf('}')-1); String[] pairs = docString.split(","); for(int i=0; i<pairs.length; i++){ String pair1 = pairs[i]; String[] pair2 = pair1.split(":"); indexList.add(Integer.parseInt(pair2[0])); tfidfList.add(Float.parseFloat(pair2[1])); } System.out .format("%10s -> %s\n", pair.getFirst(), pair.getSecond()); } DescriptiveStatistics stats = new DescriptiveStatistics(); // Add the data from the array Object[] inputArray = tfidfList.toArray(); for( int i = 0; i < inputArray.length; i++) { stats.addValue((Float)inputArray[i]); } double seventyFivePercentile = stats.getPercentile(75); return seventyFivePercentile; } protected String readFile(String fileName) { File file = new File(fileName); String str = null; try { str = FileUtils.readFileToString(file, "UTF-8"); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return str; } }
[ "admin@admins-MacBook-Pro-2.local" ]
admin@admins-MacBook-Pro-2.local
da3db9dcd63f4444db12a9e13ef9d2781920f589
c00b0135e26f8e3b9e97e0916529318fe1816dbe
/bitcamp-java-basic/src/main/java/algorithm/data_structure/stack/step3/Stack.java
c02f9e702ce15166393af2a87ec20e5c4073d450
[]
no_license
jisoo0516/bitcamp-java-20190527
40c0ae9fe7b07201cd977de7c12a182e398487ec
0e1efcd7405f088f6ad0fbcc21778d9142968f4c
refs/heads/master
2020-06-13T20:15:13.951155
2019-10-11T10:55:15
2019-10-11T10:55:15
194,775,331
0
0
null
2020-04-30T11:45:58
2019-07-02T02:41:01
Java
UTF-8
Java
false
false
310
java
// 상속 문법을 이용하여 스택 만들기 package algorithm.data_structure.stack.step3; public class Stack<E> extends LinkedList<E> { public void push(E value) { add(value); } public E pop() { return remove(size() -1); } public boolean empty() { return size() == 0; } }
[ "classy960516@gmail.com" ]
classy960516@gmail.com
8376d44cf43a7fc7787b2fa59bfcfac5ded41e2d
0b85e873533b87ad235934118b7c80429f5a913b
/basicJava/JavaEE练习题/src/day03list和set集合/Person.java
eb76791bf556188771bbad20c4d3582cbdcd9f8a
[]
no_license
lqt1401737962/Java-Notes
0eeed847d45957b0e8f5d2017287238eea910e62
9ceb16dd89fe9343fd80cf5a861fe6da5e502b07
refs/heads/master
2022-08-05T21:43:04.183997
2021-04-06T09:04:26
2021-04-06T09:04:26
228,815,761
0
0
null
2022-06-21T04:16:04
2019-12-18T10:28:35
Java
UTF-8
Java
false
false
1,029
java
package day03list和set集合; import java.util.Objects; public class Person { String name; int age; public Person() { } public Person(String name, int age) { this.name = name; this.age = age; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Person person = (Person) o; return age == person.age && name.equals(person.name); } @Override public int hashCode() { return Objects.hash(name, age); } @Override public String toString() { return "Person{" + "name='" + name + '\'' + ", age=" + age + '}'; } }
[ "1401737962@qq.com" ]
1401737962@qq.com
5ca37bad5bb405a48847ff9569069075fa3946f9
3259f8f39966525ae5e131751be3a8ce0f7fc0b9
/Contacts/app/src/main/java/com/example/contacts/Contact.java
e6ed34ba1ce782e41be5589e8909b1219ebca746
[]
no_license
dittonjs/2410-video-code
04ddfecd13d198fcbb51db81aec28ad4ef149426
d8f8bbee60900d2969c1899079bcdf1e41795a67
refs/heads/main
2023-02-16T09:16:41.007183
2021-01-04T17:41:05
2021-01-04T17:41:05
326,761,529
0
0
null
null
null
null
UTF-8
Java
false
false
534
java
package com.example.contacts; public class Contact { private String personName; private String phoneNumber; private String email; public Contact(String personName, String phoneNumber, String email) { this.personName = personName; this.phoneNumber = phoneNumber; this.email = email; } public String getPersonName() { return personName; } public String getPhoneNumber() { return phoneNumber; } public String getEmail() { return email; } }
[ "jditton.atomic@gmail.com" ]
jditton.atomic@gmail.com
a54192ad9aca5e2f3b415d2fd0ae5fff8657f38c
034e8f67d7aa5b28790ce9d0484202fca260241c
/cloverandroidapi/src/main/java/com/trubeacon/cloverandroidapi/order/service/DeleteOrderDiscount.java
0f6fe7d80d04b4f38f17e8f51504c50c36e37a33
[]
no_license
aminturn/od-premium
012250c4207b3ca840a577e3dacee5b3b3d48d1a
29621f79a76a90d5c048faedb26d51a1bf67d4a1
HEAD
2016-08-12T05:51:45.860993
2016-03-03T21:14:02
2016-03-03T21:14:02
53,337,916
0
0
null
null
null
null
UTF-8
Java
false
false
1,914
java
package com.trubeacon.cloverandroidapi.order.service; import com.fasterxml.jackson.core.type.TypeReference; import com.trubeacon.cloverandroidapi.CloverService; import com.trubeacon.cloverandroidapi.client.RESTException; import com.trubeacon.cloverandroidapi.client.RESTMethod; import com.trubeacon.cloverandroidapi.client.http.HttpMethod; import com.trubeacon.cloverandroidapi.client.param.Param; import com.trubeacon.cloverandroidapi.order.Discount; public class DeleteOrderDiscount extends RESTMethod<Discount> { private static final String URL = "/merchants/{merchantId}/orders/{orderId}/discounts/{discountId}"; private static final HttpMethod METHOD = HttpMethod.DELETE; public interface DeleteOrderDiscountCallback { public void onDeleteOrderDiscount(Discount result); public void onFailDeleteOrderDiscount(com.trubeacon.cloverandroidapi.client.error.Error error); } public DeleteOrderDiscount(String merchantId, String token, String orderId, String discountId) { super(token, new TypeReference<Discount>(){}, CloverService.getBaseUrl() + URL, METHOD); super.addPathParam(Param.path("merchantId", merchantId)); super.addPathParam(Param.path("orderId", orderId)); super.addPathParam(Param.path("discountId", discountId)); } @Override public Discount execute() throws RESTException { return super.execute(); } public void execute(final DeleteOrderDiscountCallback callback) { super.execute(new Callback<Discount>() { @Override public void onReceiveResult(Discount result) { if (callback != null) { callback.onDeleteOrderDiscount(result); } } @Override public void onReceiveError(com.trubeacon.cloverandroidapi.client.error.Error error) { if (callback != null) { callback.onFailDeleteOrderDiscount(error); } } }); } }
[ "andrew@trubeacon.com" ]
andrew@trubeacon.com
995f799d68cc93cdadcce528e3e93bb7877166c4
6f1569f0ddbe6e9987662ee3abc7a89ca5c0e316
/src/com/neuedu/web02/dao/JudgequestionMapper.java
33326dfc795cc99401171ef81cee0634a1125c62
[]
no_license
immortalHoliday/guardians-of-the-galaxy
cd183df2a0953e7b312c3806d4eea0e91486a03c
c9260778118d8e241f5c078bacb0aac3875a155c
refs/heads/master
2022-06-23T07:02:25.371070
2019-07-03T02:05:19
2019-07-03T02:05:19
191,532,194
0
0
null
2022-06-21T01:20:42
2019-06-12T08:40:51
Java
UTF-8
Java
false
false
974
java
package com.neuedu.web02.dao; import com.neuedu.web02.entity.Judgequestion; import com.neuedu.web02.entity.JudgequestionExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface JudgequestionMapper { int countByExample(JudgequestionExample example); int deleteByExample(JudgequestionExample example); int deleteByPrimaryKey(Integer id); int insert(Judgequestion record); int insertSelective(Judgequestion record); List<Judgequestion> selectByExample(JudgequestionExample example); Judgequestion selectByPrimaryKey(Integer id); int updateByExampleSelective(@Param("record") Judgequestion record, @Param("example") JudgequestionExample example); int updateByExample(@Param("record") Judgequestion record, @Param("example") JudgequestionExample example); int updateByPrimaryKeySelective(Judgequestion record); int updateByPrimaryKey(Judgequestion record); }
[ "525162941@qq.com" ]
525162941@qq.com
c8bce43a08ca46fe7d365c46a3b5b526eacb6849
816aaff8a46a8f34348d521b7b55a2785d03cce6
/code/shoppingmall/src/bookshop/bean/MngrDBBean.java
772c66e0ac722c089d64b2ca97efe17ba372593f
[]
no_license
Tak-kuen/18-2
0fd09f64308c095648513a580397e8f3061a8ade
900f2c398784312d6c27a9462d4fa62a93981f95
refs/heads/master
2021-08-10T08:53:32.747362
2018-12-06T11:18:50
2018-12-06T11:18:50
146,859,373
0
0
null
null
null
null
UTF-8
Java
false
false
1,351
java
package bookshop.bean; import java.sql.*; import javax.naming.*; import javax.sql.DataSource; public class MngrDBBean { //싱글톤 DBBean 생성 private static MngrDBBean instance = new MngrDBBean(); public static MngrDBBean getInstance() {return instance;} private MngrDBBean() {} //커넥션풀 가져오는 메소드 private Connection getConnection() throws Exception { Context initCtx = new InitialContext(); Context envCtx = (Context)initCtx.lookup("java:comp/env"); DataSource ds = (DataSource)envCtx.lookup("jdbc/test"); return ds.getConnection(); } public int userCheck(String id, String passwd) { Connection conn=null; PreparedStatement pstmt=null; ResultSet rs=null; int x=-1; try { conn=getConnection(); pstmt=conn.prepareStatement("select managerPasswd from manager where managerId=?"); pstmt.setString(1, id); rs=pstmt.executeQuery(); if(rs.next()) { String dbpass=rs.getString("managerPasswd"); if(passwd.equals(dbpass)) { x=1; }else { x=0; } }else { x=-1; }//rs.next } catch(Exception ex) { ex.printStackTrace(); }finally { if(rs!=null) try {rs.close();} catch(SQLException ex) {} if(pstmt!=null) try {rs.close();} catch(SQLException ex) {} if(conn!=null) try {rs.close();} catch(SQLException ex) {} } return x; }//userCheck }
[ "songtak456@naver.com" ]
songtak456@naver.com
b30a995646703d37d3c086cad940fc15f114aa31
401c228cf3672c8754330711af7a7e5128f1cf19
/kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-backend/src/test/java/org/kie/workbench/common/stunner/bpmn/backend/service/diagram/marshalling/tasks/NoneTaskTest.java
0308d51431869b36e70d3b8e1fcde6ec2bb3294d
[ "Apache-2.0" ]
permissive
gitgabrio/kie-wb-common
f2fb145536a2c5bd60ddbaf1cb41dec5e93912ec
57ffa0afc6819d784e60bd675bbdee5d0660ad1b
refs/heads/master
2020-03-21T08:00:52.572728
2019-05-13T13:03:14
2019-05-13T13:03:14
138,314,007
0
0
Apache-2.0
2019-09-27T12:27:30
2018-06-22T14:46:16
Java
UTF-8
Java
false
false
14,800
java
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * 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.kie.workbench.common.stunner.bpmn.backend.service.diagram.marshalling.tasks; import org.junit.Test; import org.kie.workbench.common.stunner.bpmn.backend.service.diagram.marshalling.Marshaller; import org.kie.workbench.common.stunner.bpmn.definition.NoneTask; import org.kie.workbench.common.stunner.bpmn.definition.property.task.EmptyTaskExecutionSet; import org.kie.workbench.common.stunner.core.diagram.Diagram; import org.kie.workbench.common.stunner.core.diagram.Metadata; import org.kie.workbench.common.stunner.core.graph.Graph; import static org.junit.Assert.assertNotNull; public class NoneTaskTest extends Task<NoneTask> { private static final String BPMN_TASK_FILE_PATH = "org/kie/workbench/common/stunner/bpmn/backend/service/diagram/noneTasks.bpmn"; private static final String EMPTY_TOP_LEVEL_TASK_ID = "D9666725-31FB-4D20-8E81-579D8BA893CE"; private static final String FILLED_TOP_LEVEL_TASK_ID = "4EE0C527-0D2E-411C-B277-1E6A60C9053B"; private static final String EMPTY_SUBPROCESS_LEVEL_TASK_ID = "9DD93380-3FFB-4DD3-88B9-5423E29FB3CF"; private static final String FILLED_SUBPROCESS_LEVEL_TASK_ID = "740A426C-9E13-4502-8031-FC002E6FCFA3"; private static final String EMPTY_ONE_INCOME_SUBPROCESS_LEVEL_TASK_ID = "51C523B0-594E-4BBF-B50F-D190A3F6A567"; private static final String FILLED_ONE_INCOME_SUBPROCESS_LEVEL_TASK_ID = "B6137593-169A-41A9-A1BD-240B54EF3F1E"; private static final String EMPTY_ONE_INCOME_TOP_LEVEL_TASK_ID = "D7A75B7F-E37E-4960-BF0F-EC8867EC143A"; private static final String FILLED_ONE_INCOME_TOP_LEVEL_TASK_ID = "C5F45AA4-2B5B-4BFE-8BEC-1FCCFA3A0E2A"; private static final String EMPTY_TWO_INCOMES_SUBPROCESS_LEVEL_TASK_ID = "981DEA00-9B6A-4FA1-86AB-7835D802A151"; private static final String FILLED_TWO_INCOMES_SUBPROCESS_LEVEL_TASK_ID = "344AC834-66D4-4FF9-89CF-EB90A3ECABCE"; private static final String EMPTY_TWO_INCOMES_TOP_LEVEL_TASK_ID = "F4D41CC4-B8A4-40C5-8973-0FF278F4324A"; private static final String FILLED_TWO_INCOMES_TOP_LEVEL_TASK_ID = "715FE636-0609-4031-96D4-7394B2B0D88D"; private static final int AMOUNT_OF_NODES_IN_DIAGRAM = 36; private static Diagram<Graph, Metadata> oldDiagram; private static Diagram<Graph, Metadata> oldRoundTripDiagram; private static Diagram<Graph, Metadata> newDiagram; private static Diagram<Graph, Metadata> newRoundTripDiagram; public NoneTaskTest(Marshaller marshallerType) throws Exception { super(marshallerType, marshallers()); } @Override synchronized Diagram<Graph, Metadata> getOldDiagram() { return oldDiagram; } @Override void setOldDiagram(Diagram<Graph, Metadata> diagram) { oldDiagram = diagram; } @Override Diagram<Graph, Metadata> getOldRoundTripDiagram() { return oldRoundTripDiagram; } @Override void setOldRoundTripDiagram(Diagram<Graph, Metadata> diagram) { oldRoundTripDiagram = diagram; } @Override synchronized Diagram<Graph, Metadata> getNewDiagram() { return newDiagram; } @Override void setNewDiagram(Diagram<Graph, Metadata> diagram) { newDiagram = diagram; } @Override Diagram<Graph, Metadata> getNewRoundTripDiagram() { return newRoundTripDiagram; } @Override void setNewRoundTripDiagram(Diagram<Graph, Metadata> diagram) { newRoundTripDiagram = diagram; } @Test @Override public void testUnmarshallTopLevelTaskFilledProperties() { final String TASK_NAME = "Task01 name ~!@#$%^&*()_+`-={}[]:\"|;'\\<>?,./"; final String TASK_DOCUMENTATION = "Task01 doc\n ~!@#$%^&*()_+`1234567890-={}[]:\"|;'\\<>?,./"; assertDiagram(getDiagram(), AMOUNT_OF_NODES_IN_DIAGRAM); NoneTask filledTopLevelTask = getTaskNodeById(getDiagram(), FILLED_TOP_LEVEL_TASK_ID, ZERO_INCOME_EDGES, HAS_NO_OUTCOME_EDGE); assertGeneralSet(filledTopLevelTask.getGeneral(), TASK_NAME, TASK_DOCUMENTATION); assertNoneTaskExecutionSet(filledTopLevelTask.getExecutionSet()); } @Test @Override public void testUnmarshallTopLevelEmptyTaskProperties() { assertDiagram(getDiagram(), AMOUNT_OF_NODES_IN_DIAGRAM); NoneTask emptyTopLevelTask = getTaskNodeById(getDiagram(), EMPTY_TOP_LEVEL_TASK_ID, ZERO_INCOME_EDGES, HAS_NO_OUTCOME_EDGE); assertGeneralSet(emptyTopLevelTask.getGeneral(), EMPTY_VALUE, EMPTY_VALUE); assertNoneTaskExecutionSet(emptyTopLevelTask.getExecutionSet()); } @Test @Override public void testUnmarshallSubprocessLevelTaskFilledProperties() { final String TASK_NAME = "Task03 name ~!@#$%^&*()_+`-={}[]:\"|;'\\<>?,./"; final String TASK_DOCUMENTATION = "Task03 doc\n ~!@#$%^&*()_+`1234567890-={}[]:\"|;'\\<>?,./"; assertDiagram(getDiagram(), AMOUNT_OF_NODES_IN_DIAGRAM); NoneTask filledSubprocessLevelTask = getTaskNodeById(getDiagram(), FILLED_SUBPROCESS_LEVEL_TASK_ID, ZERO_INCOME_EDGES, HAS_NO_OUTCOME_EDGE); assertGeneralSet(filledSubprocessLevelTask.getGeneral(), TASK_NAME, TASK_DOCUMENTATION); assertNoneTaskExecutionSet(filledSubprocessLevelTask.getExecutionSet()); } @Test @Override public void testUnmarshallSubprocessLevelTaskEmptyProperties() { assertDiagram(getDiagram(), AMOUNT_OF_NODES_IN_DIAGRAM); NoneTask emptySubprocessLevelTask = getTaskNodeById(getDiagram(), EMPTY_SUBPROCESS_LEVEL_TASK_ID, ZERO_INCOME_EDGES, HAS_NO_OUTCOME_EDGE); assertGeneralSet(emptySubprocessLevelTask.getGeneral(), EMPTY_VALUE, EMPTY_VALUE); assertNoneTaskExecutionSet(emptySubprocessLevelTask.getExecutionSet()); } @Test @Override public void testUnmarshallTopLevelTaskOneIncomeFilledProperties() { final String TASK_NAME = "Task02 name ~!@#$%^&*()_+`-={}[]:\"|;'\\<>?,./"; final String TASK_DOCUMENTATION = "Task02 doc\n ~!@#$%^&*()_+`1234567890-={}[]:\"|;'\\<>?,./"; assertDiagram(getDiagram(), AMOUNT_OF_NODES_IN_DIAGRAM); NoneTask filledTopLevelTask = getTaskNodeById(getDiagram(), FILLED_ONE_INCOME_TOP_LEVEL_TASK_ID, ONE_INCOME_EDGE, HAS_OUTCOME_EDGE); assertGeneralSet(filledTopLevelTask.getGeneral(), TASK_NAME, TASK_DOCUMENTATION); assertNoneTaskExecutionSet(filledTopLevelTask.getExecutionSet()); } @Test @Override public void testUnmarshallTopLevelTaskOneIncomeEmptyProperties() { assertDiagram(getDiagram(), AMOUNT_OF_NODES_IN_DIAGRAM); NoneTask emptyTopLevelTask = getTaskNodeById(getDiagram(), EMPTY_ONE_INCOME_TOP_LEVEL_TASK_ID, ONE_INCOME_EDGE, HAS_OUTCOME_EDGE); assertGeneralSet(emptyTopLevelTask.getGeneral(), EMPTY_VALUE, EMPTY_VALUE); assertNoneTaskExecutionSet(emptyTopLevelTask.getExecutionSet()); } @Test @Override public void testUnmarshallSubprocessLevelTaskOneIncomeEmptyProperties() { assertDiagram(getDiagram(), AMOUNT_OF_NODES_IN_DIAGRAM); NoneTask emptySubprocessLevelTask = getTaskNodeById(getDiagram(), EMPTY_ONE_INCOME_SUBPROCESS_LEVEL_TASK_ID, ONE_INCOME_EDGE, HAS_OUTCOME_EDGE); assertGeneralSet(emptySubprocessLevelTask.getGeneral(), EMPTY_VALUE, EMPTY_VALUE); assertNoneTaskExecutionSet(emptySubprocessLevelTask.getExecutionSet()); } @Test @Override public void testUnmarshallSubprocessLevelTaskOneIncomeFilledProperties() { final String TASK_NAME = "Task04 name ~!@#$%^&*()_+`-={}[]:\"|;'\\<>?,./"; final String TASK_DOCUMENTATION = "Task04 doc\n ~!@#$%^&*()_+`1234567890-={}[]:\"|;'\\<>?,./"; assertDiagram(getDiagram(), AMOUNT_OF_NODES_IN_DIAGRAM); NoneTask filledSubprocessLevelTask = getTaskNodeById(getDiagram(), FILLED_ONE_INCOME_SUBPROCESS_LEVEL_TASK_ID, ONE_INCOME_EDGE, HAS_OUTCOME_EDGE); assertGeneralSet(filledSubprocessLevelTask.getGeneral(), TASK_NAME, TASK_DOCUMENTATION); assertNoneTaskExecutionSet(filledSubprocessLevelTask.getExecutionSet()); } @Test @Override public void testUnmarshallTopLevelTaskTwoIncomesFilledProperties() { final String TASK_NAME = "Task05 name ~!@#$%^&*()_+`-={}[]:\"|;'\\<>?,./"; final String TASK_DOCUMENTATION = "Task05 doc\n ~!@#$%^&*()_+`1234567890-={}[]:\"|;'\\<>?,./"; assertDiagram(getDiagram(), AMOUNT_OF_NODES_IN_DIAGRAM); NoneTask filledTopLevelTask = getTaskNodeById(getDiagram(), FILLED_TWO_INCOMES_TOP_LEVEL_TASK_ID, TWO_INCOME_EDGES, HAS_OUTCOME_EDGE); assertGeneralSet(filledTopLevelTask.getGeneral(), TASK_NAME, TASK_DOCUMENTATION); assertNoneTaskExecutionSet(filledTopLevelTask.getExecutionSet()); } @Test @Override public void testUnmarshallTopLevelTaskTwoIncomesEmptyProperties() { assertDiagram(getDiagram(), AMOUNT_OF_NODES_IN_DIAGRAM); NoneTask filledTopLevelTask = getTaskNodeById(getDiagram(), EMPTY_TWO_INCOMES_TOP_LEVEL_TASK_ID, TWO_INCOME_EDGES, HAS_OUTCOME_EDGE); assertGeneralSet(filledTopLevelTask.getGeneral(), EMPTY_VALUE, EMPTY_VALUE); assertNoneTaskExecutionSet(filledTopLevelTask.getExecutionSet()); } @Test @Override public void testUnmarshallSubprocessLevelTaskTwoIncomesEmptyProperties() { assertDiagram(getDiagram(), AMOUNT_OF_NODES_IN_DIAGRAM); NoneTask emptySubprocessLevelTask = getTaskNodeById(getDiagram(), EMPTY_TWO_INCOMES_SUBPROCESS_LEVEL_TASK_ID, TWO_INCOME_EDGES, HAS_OUTCOME_EDGE); assertGeneralSet(emptySubprocessLevelTask.getGeneral(), EMPTY_VALUE, EMPTY_VALUE); assertNoneTaskExecutionSet(emptySubprocessLevelTask.getExecutionSet()); } @Test @Override public void testUnmarshallSubprocessLevelTaskTwoIncomesFilledProperties() { final String TASK_NAME = "Task06 name ~!@#$%^&*()_+`-={}[]:\"|;'\\<>?,./"; final String TASK_DOCUMENTATION = "Task06 doc\n ~!@#$%^&*()_+`1234567890-={}[]:\"|;'\\<>?,./"; assertDiagram(getDiagram(), AMOUNT_OF_NODES_IN_DIAGRAM); NoneTask filledSubprocessLevelTask = getTaskNodeById(getDiagram(), FILLED_TWO_INCOMES_SUBPROCESS_LEVEL_TASK_ID, TWO_INCOME_EDGES, HAS_OUTCOME_EDGE); assertGeneralSet(filledSubprocessLevelTask.getGeneral(), TASK_NAME, TASK_DOCUMENTATION); assertNoneTaskExecutionSet(filledSubprocessLevelTask.getExecutionSet()); } @Override String getBpmnTaskFilePath() { return BPMN_TASK_FILE_PATH; } @Override Class<NoneTask> getTaskType() { return NoneTask.class; } @Override String getFilledTopLevelTaskId() { return FILLED_TOP_LEVEL_TASK_ID; } @Override String getEmptyTopLevelTaskId() { return EMPTY_TOP_LEVEL_TASK_ID; } @Override String getFilledSubprocessLevelTaskId() { return FILLED_SUBPROCESS_LEVEL_TASK_ID; } @Override String getEmptySubprocessLevelTaskId() { return EMPTY_SUBPROCESS_LEVEL_TASK_ID; } @Override String getFilledTopLevelTaskOneIncomeId() { return FILLED_ONE_INCOME_TOP_LEVEL_TASK_ID; } @Override String getEmptyTopLevelTaskOneIncomeId() { return EMPTY_ONE_INCOME_TOP_LEVEL_TASK_ID; } @Override String getFilledSubprocessLevelTaskOneIncomeId() { return FILLED_ONE_INCOME_SUBPROCESS_LEVEL_TASK_ID; } @Override String getEmptySubprocessLevelTaskOneIncomeId() { return EMPTY_ONE_INCOME_SUBPROCESS_LEVEL_TASK_ID; } @Override String getFilledTopLevelTaskTwoIncomesId() { return FILLED_TWO_INCOMES_TOP_LEVEL_TASK_ID; } @Override String getEmptyTopLevelTaskTwoIncomesId() { return EMPTY_TWO_INCOMES_TOP_LEVEL_TASK_ID; } @Override String getFilledSubprocessLevelTaskTwoIncomesId() { return FILLED_TWO_INCOMES_SUBPROCESS_LEVEL_TASK_ID; } @Override String getEmptySubprocessLevelTaskTwoIncomesId() { return EMPTY_TWO_INCOMES_SUBPROCESS_LEVEL_TASK_ID; } private void assertNoneTaskExecutionSet(EmptyTaskExecutionSet executionSet) { assertNotNull(executionSet); } }
[ "roger600@gmail.com" ]
roger600@gmail.com
f6958d27343fd15de2c813ace92650b7bec3691c
14d2f23802064f14ce3f87e56d7f9b8defd7f00d
/src/main/java/com/niranzan/tutor/controller/UserSessionController.java
19df1c9132b02ffa30c4b87da945b8ce3b451f8b
[]
no_license
niranjanmaharana/tutor-services
1a8992831b51362684626085d15157667f945006
4378a6e832de29584b59cfc264e867fac4a4836f
refs/heads/main
2022-12-27T21:11:49.153781
2020-10-15T16:25:48
2020-10-15T16:25:48
278,997,921
0
0
null
null
null
null
UTF-8
Java
false
false
1,407
java
/** * */ package com.niranzan.tutor.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.niranzan.tutor.constant.AppConstants; import com.niranzan.tutor.service.UserSessionService; import com.niranzan.tutor.view.response.SimpleResponseEntity; import com.niranzan.tutor.view.response.UserSessionResponseView; import io.swagger.annotations.Api; /** * @author Niranjan * */ @Api(value = "Usersession", description = "Operations on user sessions.") @RestController @RequestMapping("/session") public class UserSessionController { @Autowired private UserSessionService userSessionService; @GetMapping("/{username}") public ResponseEntity<SimpleResponseEntity> getUserSessionsByUsername(@PathVariable("username") String username) { List<UserSessionResponseView> responses = userSessionService.getSessionByUsername(username); return new ResponseEntity<SimpleResponseEntity>( new SimpleResponseEntity(HttpStatus.OK.value(), AppConstants.SUCCESS_RESPONSE_MSG, responses), HttpStatus.OK); } }
[ "niranjanmaharana95@gmail.com" ]
niranjanmaharana95@gmail.com
cfbf79fd5b42114bc1b4647d5941f0ce90fd10fa
83a0e9a080455c39bed0e16fdd579a7fd5c7f40c
/IdeaProjects/FreedomTest/src/main/java/random/RunTest.java
e6932a5e463b664c70615d589093d61ac546d8a0
[]
no_license
Silverados/JavaTest
442aa692435e2d685c0fed8f58c49f13f6a7206a
b4c199784777aa7a7bedaa2936f34b5a06b97495
refs/heads/master
2020-03-09T16:29:54.850752
2018-08-01T12:10:19
2018-08-01T12:10:19
128,886,533
0
0
null
null
null
null
UTF-8
Java
false
false
860
java
package random; public class RunTest { public static void main(String[] args){ long first = System.currentTimeMillis(); long start = System.nanoTime(); int a = 2000%4; System.out.println(a); long second = System.currentTimeMillis(); long end = System.nanoTime(); System.out.println(second - first); System.out.println(end - first); long third = System.currentTimeMillis(); long thirdNaono = System.nanoTime(); int b = 2000&3; System.out.println(b); long forth = System.currentTimeMillis(); long forthNano = System.nanoTime(); System.out.println(forth - third); long nanoResult = forthNano - thirdNaono; System.out.println(nanoResult); } }
[ "295843706@qq.com" ]
295843706@qq.com
55179aa5116434c285190d88d043999ac2ee4cea
71b9b2ebc883352a464c75e337e31c15725f5da6
/app/src/main/java/com/example/priya/riyaproject/Fetchitem.java
d505ba5a1f6034f98edc8f9fd806705b94e80beb
[]
no_license
priya9b98/Riyaproject
9f5fddb0ee83b45bd7b043fff76da1eb611c3392
dd8bd8f8b53b1957de034276d9905856810d1ed1
refs/heads/master
2020-05-15T22:19:28.219497
2019-06-16T19:26:42
2019-06-16T19:26:42
182,524,332
0
0
null
null
null
null
UTF-8
Java
false
false
2,566
java
package com.example.priya.riyaproject; import android.content.Context; import android.os.AsyncTask; import android.widget.TextView; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.List; import static com.amazonaws.mobile.auth.core.internal.util.ThreadUtils.runOnUiThread; public class Fetchitem extends AsyncTask<Void,Void,List<String>> { String data =""; private List_of_booksActivity activity; Context mc; List<String> list; Fetchitem(List_of_booksActivity context,Context mc){ activity=context; this.mc=mc; } @Override protected List<String> doInBackground(Void... voids) { try { URL url = new URL("http://useruserfinal-env.xwik2y2dnd.us-east-1.elasticbeanstalk.com/api/1239"); HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection(); InputStream inputStream = httpURLConnection.getInputStream(); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); String line=""; list=new ArrayList<>(); while(line != null){ line = bufferedReader.readLine(); data = data + line; } // line = bufferedReader.readLine(); // i++; int j=0; int i=0; /*while(j<6){ if(data.charAt(i)=='<' ){ i=i+3; list.add(f); f=""; j++; } else f=f+Character.toString(data.charAt(i)); i++; } */ String f=""; while(j<6){ f=""; while(data.charAt(i)!='<'){ f=f.concat(Character.toString(data.charAt(i))); i++; } if(data.charAt(i-3)!='n'){ list.add(f); j++;} i=i+4;} } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return null; } @Override protected void onPostExecute(List<String> str) { super.onPostExecute(str); str=list; activity.setList(str); } }
[ "priyagopalbist9@gmail.com" ]
priyagopalbist9@gmail.com
90300b613e926ad92997c796d5749789c3d371a5
4223cdb1fc0b7427a8a794050ae066e00c0a9d3c
/client/src/org/springframework/android/showcase/AbstractWebViewActivity.java
0eb73343ce17d8cff1bfbd1a1fbdd2596180c4fa
[]
no_license
patpeti/TrackerClient
95b806e900fb217c00af199a051c23c68b8416d9
620c5f7e6a25bfcabeaa9fc7b878e311cf3e490c
refs/heads/master
2020-05-06T12:17:23.072582
2012-08-30T12:42:17
2012-08-30T12:42:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,379
java
package org.springframework.android.showcase; import android.app.Activity; import android.app.ProgressDialog; import android.os.Bundle; import android.view.Window; import android.webkit.WebChromeClient; import android.webkit.WebView; import at.ac.tuwien.client.android.R; public abstract class AbstractWebViewActivity extends Activity implements AsyncActivity { protected static final String TAG = AbstractWebViewActivity.class.getSimpleName(); private Activity _activity; private WebView _webView; private ProgressDialog _progressDialog = null; private boolean _destroyed = false; //*************************************** // Activity methods //*************************************** @Override public MainApplication getApplicationContext() { return (MainApplication) super.getApplicationContext(); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_PROGRESS); getWindow().setFeatureInt(Window.FEATURE_PROGRESS, Window.PROGRESS_VISIBILITY_ON); _webView = new WebView(this); setContentView(_webView); _activity = this; _webView.setWebChromeClient( new WebChromeClient() { public void onProgressChanged(WebView view, int progress) { _activity.setTitle("Loading..."); _activity.setProgress(progress * 100); if (progress == 100) { _activity.setTitle(R.string.app_name); } } } ); } //*************************************** // Protected methods //*************************************** protected WebView getWebView() { return _webView; } //*************************************** // Public methods //*************************************** public void showLoadingProgressDialog() { showProgressDialog("Loading. Please wait..."); } public void showProgressDialog(CharSequence message) { if (_progressDialog == null) { _progressDialog = new ProgressDialog(this); _progressDialog.setIndeterminate(true); } _progressDialog.setMessage(message); _progressDialog.show(); } public void dismissProgressDialog() { if (_progressDialog != null && !_destroyed) { _progressDialog.dismiss(); } } }
[ "PETER@PETERNOTEBOOK" ]
PETER@PETERNOTEBOOK
635d13732b74d86855503710591a70208e427fa0
d5c9e50234cf7c7466ea207ebb39b1c13ca7101b
/app/src/main/java/com/rescribe/doctor/notification/MessageNotification.java
8e8bf151116305068d3cbbfdd6915b0d35398e6c
[]
no_license
sandeepbahalkar123/DMS_EMRD_repo
21077f84aeec0ba584a466f65dca1bf003819a43
ba5094959a24d959c8c7fb26627f4c3027d91366
refs/heads/master
2020-03-15T05:43:02.253296
2018-05-03T12:41:53
2018-05-03T12:41:53
131,992,923
1
0
null
null
null
null
UTF-8
Java
false
false
7,422
java
package com.rescribe.doctor.notification; import android.annotation.TargetApi; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.os.Build; import android.support.v4.app.NotificationCompat; import android.support.v4.app.RemoteInput; import android.support.v4.content.ContextCompat; import com.rescribe.doctor.R; import com.rescribe.doctor.model.chat.MQTTMessage; import com.rescribe.doctor.services.MQTTService; import com.rescribe.doctor.ui.activities.ChatActivity; import com.rescribe.doctor.ui.activities.PatientConnectActivity; import com.rescribe.doctor.util.RescribeConstants; import java.util.ArrayList; import static com.rescribe.doctor.broadcast_receivers.ReplayBroadcastReceiver.MESSAGE_LIST; import static com.rescribe.doctor.services.MQTTService.REPLY_ACTION; import static com.rescribe.doctor.util.RescribeConstants.FILE.AUD; import static com.rescribe.doctor.util.RescribeConstants.FILE.DOC; import static com.rescribe.doctor.util.RescribeConstants.FILE.IMG; import static com.rescribe.doctor.util.RescribeConstants.FILE.LOC; import static com.rescribe.doctor.util.RescribeConstants.FILE.VID; import static com.rescribe.doctor.util.RescribeConstants.SALUTATION; /** * Helper class for showing and canceling new message * notifications. * <p> * This class makes heavy use of the {@link NotificationCompat.Builder} helper * class to create notifications in a backward-compatible way. */ public class MessageNotification { /** * The unique identifier for this type of notification. */ private static final String NOTIFICATION_TAG = "RescribeMessage"; private static final String GROUP = "RescribeMessages"; public static void notify(final Context context, final ArrayList<MQTTMessage> messageContent, final String userName, Bitmap picture, final int unread, PendingIntent replyPendingIntent, final int notificationId) { MQTTMessage lastMessage = messageContent.get(messageContent.size() - 1); String content = getContent(lastMessage); String salutation = ""; if (lastMessage.getSalutation() != 0) salutation = SALUTATION[lastMessage.getSalutation() - 1]; String title; if (unread > 1) title = salutation + userName + " (" + unread + " messages)"; else title = salutation + userName; // start your activity for Android M and below Intent resultIntent = new Intent(context, ChatActivity.class); resultIntent.setAction(REPLY_ACTION); resultIntent.putExtra(MESSAGE_LIST, lastMessage); resultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); PendingIntent resultPendingIntent = PendingIntent.getActivity( context, lastMessage.getDocId(), resultIntent, PendingIntent.FLAG_UPDATE_CURRENT ); NotificationCompat.InboxStyle inboxStyle = new NotificationCompat.InboxStyle() .setBigContentTitle(title) .setSummaryText("New Message"); for (MQTTMessage message : messageContent) inboxStyle.addLine(getContent(message)); // Create the RemoteInput specifying above key RemoteInput remoteInput = new RemoteInput.Builder(MQTTService.KEY_REPLY) .setLabel("Reply") .build(); // Add to your action, enabling Direct Reply NotificationCompat.Action mAction = new NotificationCompat.Action.Builder(R.drawable.ic_action_stat_reply, "Reply", replyPendingIntent) .addRemoteInput(remoteInput) .setAllowGeneratedReplies(true) .build(); final NotificationCompat.Builder builder = new NotificationCompat.Builder(context) // Set appropriate defaults for the notification light, sound, // and vibration. .setDefaults(Notification.DEFAULT_ALL) // Bundle Notification .setGroupSummary(true) .setGroup(GROUP) // Set required fields, including the small icon, the // notification title, and text. .setSmallIcon(R.drawable.logosmall) .setContentTitle(title) .setContentText(content) // Set Color .setColor(ContextCompat.getColor(context, R.color.tagColor)) // All fields below this line are optional. // Use a default priority (recognized on devices running Android // 4.1 or later) .setPriority(NotificationCompat.PRIORITY_HIGH) // Provide a large icon, shown with the notification in the // notification drawer on devices running Android 3.0 or later. .setLargeIcon(picture) // Set ticker text (preview) information for this notification. .setTicker(title) // Show a number. This is useful when stacking notifications of // a single type. .setNumber(unread) // Set Style and Action .setStyle(inboxStyle) .addAction(mAction) // Click Event on notification .setContentIntent(resultPendingIntent) // Automatically dismiss the notification when it is touched. .setAutoCancel(true); notify(context, builder.build(), notificationId); } @TargetApi(Build.VERSION_CODES.ECLAIR) private static void notify(final Context context, final Notification notification, int notificationId) { final NotificationManager nm = (NotificationManager) context .getSystemService(Context.NOTIFICATION_SERVICE); nm.notify(NOTIFICATION_TAG, notificationId, notification); } @TargetApi(Build.VERSION_CODES.ECLAIR) public static void cancel(final Context context, int notificationId) { final NotificationManager nm = (NotificationManager) context .getSystemService(Context.NOTIFICATION_SERVICE); nm.cancel(NOTIFICATION_TAG, notificationId); } private static String getContent(MQTTMessage mqttMessage) { String content; if (mqttMessage.getFileType() != null) { switch (mqttMessage.getFileType()) { case DOC: content = RescribeConstants.FILE_EMOJI.DOC_FILE; break; case AUD: content = RescribeConstants.FILE_EMOJI.AUD_FILE; break; case VID: content = RescribeConstants.FILE_EMOJI.VID_FILE; break; case LOC: content = RescribeConstants.FILE_EMOJI.LOC_FILE; break; case IMG: content = RescribeConstants.FILE_EMOJI.IMG_FILE; break; default: content = mqttMessage.getMsg(); break; } } else content = mqttMessage.getMsg(); return content; } }
[ "ganesh9405@gmail.com" ]
ganesh9405@gmail.com
2dcd38c6a2f9fde39a0ffd2158032735175f71fc
91ae645347ecc58bb941982a2aa13c1c2c0e966c
/02-java-oop/01-java-oop/05-object-master-pt1/Samurai.java
432ceece6e6636af6fe4da10a2aaa8a510df96e5
[]
no_license
codingdojo-java-06-19/MatthewS
ecbbf7111ec9e060d57aa186e5bb5a9ec607dfb5
dc73cbf5d7a0afaf5101385b6075c17bf1988931
refs/heads/master
2020-05-31T03:57:11.446442
2019-06-21T07:07:57
2019-06-21T07:07:57
190,090,630
0
0
null
null
null
null
UTF-8
Java
false
false
716
java
class Samurai extends Human { private static int numSamurai = 0; public Samurai() { this.health = 200; numSamurai++; } public void deathBlow(Human otherHuman) { otherHuman.health = otherHuman.health - otherHuman.health; this.health = this.health / 2; System.out.println( "The Samurai has dealt a DEATH BLOW, Killing the other player, but decreasing his own health by half."); } public void meditate() { this.health = this.health += this.health / 2; System.out.println("The Samurai channeled his inner Yanni and healed himself for half his health!"); } public void howMany() { System.out.println("There are currently " + numSamurai + " up in here."); } }
[ "maugustschiller@gmail.com" ]
maugustschiller@gmail.com
2022383ed0de8b34a9ded43b6d57b91726144bf3
42f4789ab1cbe545d62f5f37afa5f14553fbe578
/compnetquizzes/src/Utilities/Pair.java
1fdc137e8196c9846dc6a22e9afe07eafd1d21a6
[]
no_license
behemoth2358/ComputerNetworkingQuizzes
28fc3c7953d16d7fc3752596beebb8333f2e58d6
da000815e57ef2ca2e5a74f4dd9a61f2d7374bae
refs/heads/master
2021-10-29T19:38:48.726704
2019-04-25T14:08:44
2019-04-25T14:08:44
121,890,745
2
1
null
null
null
null
UTF-8
Java
false
false
369
java
package Utilities; public class Pair<X, Y> implements IPair<X, Y> { private final X first; private final Y second; public Pair(X first, Y second) { this.first = first; this.second = second; } @Override public X getFirst() { return first; } @Override public Y getSecond() { return second; } }
[ "bogdanboboc97@gmail.com" ]
bogdanboboc97@gmail.com
b72614b240cace3e82d6e7b7c820c49bd4c588d4
37e210590bcd56bba7aa8a12275663c3b506def8
/src/main/java/edu/gdei/gdeiassistant/Controller/ClientDownload/RestController/ClientDownloadRestController.java
91a6fac689fc225e63f73186a62560506b36fedc
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
RyanLiu0808/GdeiAssistant
045d7f8b8d25cef8e0d67a3bc8977831ec92d353
93ddda016f2e2dab22bed5ccd69d49f230f5158e
refs/heads/master
2020-07-19T10:34:01.162454
2019-09-04T14:16:36
2019-09-04T14:24:43
206,431,197
1
0
NOASSERTION
2019-09-04T23:12:18
2019-09-04T23:12:18
null
UTF-8
Java
false
false
2,506
java
package edu.gdei.gdeiassistant.Controller.ClientDownload.RestController; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import java.util.HashMap; import java.util.Map; @RestController public class ClientDownloadRestController { private String androidDownloadURL; private String androidGooglePlayDownloadURL; private String androidAmazonDownloadURL; private String uwpStoreDownloadURL; @Value("#{propertiesReader['update.android.gooleplayURL']}") public void setAndroidGooglePlayDownloadURL(String androidGooglePlayDownloadURL) { this.androidGooglePlayDownloadURL = androidGooglePlayDownloadURL; } @Value("#{propertiesReader['update.android.downloadURL']}") public void setAndroidDownloadURL(String androidDownloadURL) { this.androidDownloadURL = androidDownloadURL; } @Value("#{propertiesReader['update.android.amazonURL']}") public void setAndroidAmazonDownloadURL(String androidAmazonDownloadURL) { this.androidAmazonDownloadURL = androidAmazonDownloadURL; } @Value("#{propertiesReader['update.uwp.storeURL']}") public void setUwpStoreDownloadURL(String uwpStoreDownloadURL){ this.uwpStoreDownloadURL = uwpStoreDownloadURL; } @RequestMapping(value = "/download/android", method = RequestMethod.GET) public Map<String, String> GetAndroidDownloadURl() { Map<String, String> map = new HashMap<>(); map.put("url", androidDownloadURL); return map; } @RequestMapping(value = "/download/android/googleplay", method = RequestMethod.GET) public Map<String, String> GetAndroidGooglePlayDownloadURL() { Map<String, String> map = new HashMap<>(); map.put("url", androidGooglePlayDownloadURL); return map; } @RequestMapping(value = "/download/android/amazon", method = RequestMethod.GET) public Map<String, String> GetAndroidAmazonDownloadURL() { Map<String, String> map = new HashMap<>(); map.put("url", androidAmazonDownloadURL); return map; } @RequestMapping(value = "/download/uwp",method = RequestMethod.GET) public Map<String,String> GetUWPStoreDownloadURL(){ Map<String, String> map = new HashMap<>(); map.put("url", uwpStoreDownloadURL); return map; } }
[ "20649888+PeachShrubFizz@users.noreply.github.com" ]
20649888+PeachShrubFizz@users.noreply.github.com
2ae4495f0ece2d626718666d7c1f983d2c36ffcd
ba2607fd3635e53137d4a098763b1ff97d85ab90
/src/main/java/hw1/spark/Job2Spark.java
8129064566c05e8caf489a06c55c314ebc86b9dd
[]
no_license
mrsambo93/BigData2018
4238227c0e2213a56ce53a9867db8782a3f646e4
84e3a9eee0c15d519cf7c4b145e87792d02f4200
refs/heads/master
2020-03-17T19:02:11.604766
2018-05-25T14:51:57
2018-05-25T14:51:57
133,843,647
0
0
null
null
null
null
UTF-8
Java
false
false
3,004
java
package hw1.spark; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaPairRDD; import org.apache.spark.api.java.JavaRDD; import org.apache.spark.api.java.JavaSparkContext; import com.opencsv.RFC4180Parser; import hw1.utils.ColumnIndexes; import hw1.utils.UnixTime2Year; import scala.Tuple2; public class Job2Spark { private static String inputPathToFile; private static String outputPathFile; public Job2Spark(String inputPath, String outputPath) { Job2Spark.inputPathToFile = inputPath; Job2Spark.outputPathFile = outputPath; } public static void main(String[] args) { double startTime = System.currentTimeMillis(); SparkConf conf = new SparkConf().setAppName("Job2Spark"); JavaSparkContext sc = new JavaSparkContext(conf); if(args.length < 2) { System.err.println("Usage: <input-file> <output-folder>"); } Job2Spark job = new Job2Spark(args[0], args[1]); job.calculateScore(sc).sortByKey().saveAsTextFile(outputPathFile); sc.close(); sc.stop(); double stopTime = System.currentTimeMillis(); double executionTime = (stopTime - startTime) / 1000; System.out.println("TEMPO DI ESECUZIONE:\t" + executionTime + "s"); } public JavaPairRDD<String, Tuple2<Integer, Double>> loadData(JavaSparkContext sc) { JavaRDD<String> words = sc.textFile(inputPathToFile); JavaPairRDD<String, Tuple2<Integer, Double>> result = words.mapPartitionsWithIndex((idx, iter) -> { if (idx == 0 && iter.hasNext()) { iter.next(); } return iter; }, true) .mapToPair(line -> { RFC4180Parser parser = new RFC4180Parser(); String[] fields = parser.parseLine(line); int year = UnixTime2Year.unixTime2Year(Long.parseLong(fields[ColumnIndexes.TIME])); return new Tuple2<String, Tuple2<Integer, Double>>(fields[ColumnIndexes.PRODUCT_ID], new Tuple2<Integer, Double>(year, Double.parseDouble(fields[ColumnIndexes.SCORE]))); }); return result; } public JavaPairRDD<String, List<Tuple2<Integer, Double>>> calculateScore(JavaSparkContext sc) { JavaPairRDD<String, Tuple2<Integer, Double>> couples = loadData(sc); JavaPairRDD<String, List<Tuple2<Integer, Double>>> result = couples .groupByKey() .mapToPair(tuple -> { List<Tuple2<Integer, Double>> elements = new ArrayList<>(); tuple._2.forEach(elements::add); Map<Integer, Double> avgScoresPerYear = elements.stream() .filter(t -> t._1 >= 2003 && t._1 <= 2012) .collect(Collectors.groupingBy(e -> e._1, Collectors.averagingDouble(e -> e._2))); List<Tuple2<Integer, Double>> count = new ArrayList<>(); avgScoresPerYear.forEach((key, value) -> { Tuple2<Integer, Double> tp = new Tuple2<>(key, value); count.add(tp); }); return new Tuple2<String, List<Tuple2<Integer, Double>>>(tuple._1, count); }); return result.filter(el -> !el._2.isEmpty()); } }
[ "sambora93@gmail.com" ]
sambora93@gmail.com
4cc0eac06a821007b538c57ffbde01d1ffeeb9bf
47311845fed9b2626ed5003cf544de8e595f5e28
/hcw-tec-sign/src/main/java/hcw/tec/rsa/RSAEncrypt.java
570bb92513b9d56862ba326137fa47d889e275ee
[]
no_license
hechengwen/spring-tec
31311041fdc7462f9660a17158880dc5e91fbac1
505892a59bfc951026187c55207776584c7dff84
refs/heads/master
2021-05-11T22:15:48.512478
2018-06-12T03:28:21
2018-06-12T03:28:21
117,490,088
0
0
null
2018-05-02T09:44:52
2018-01-15T02:58:35
Java
UTF-8
Java
false
false
11,669
java
package hcw.tec.rsa; import javax.crypto.BadPaddingException; import javax.crypto.Cipher; import javax.crypto.IllegalBlockSizeException; import javax.crypto.NoSuchPaddingException; import java.io.*; import java.security.*; import java.security.interfaces.RSAPrivateKey; import java.security.interfaces.RSAPublicKey; import java.security.spec.InvalidKeySpecException; import java.security.spec.PKCS8EncodedKeySpec; import java.security.spec.X509EncodedKeySpec; /** * Copyright (C), 2017,jumore Tec. * Author: hechengwen * Version: * Date: 2017/12/11 15:15 * Description: * Others: */ public class RSAEncrypt { /** * 字节数据转字符串专用集合 */ private static final char[] HEX_CHAR = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; /** * 随机生成密钥对 */ public static void genKeyPair(String filePath) { // KeyPairGenerator类用于生成公钥和私钥对,基于RSA算法生成对象 KeyPairGenerator keyPairGen = null; try { keyPairGen = KeyPairGenerator.getInstance("RSA"); } catch (NoSuchAlgorithmException e) { // TODO Auto-generated catch block e.printStackTrace(); } // 初始化密钥对生成器,密钥大小为96-1024位 keyPairGen.initialize(1024, new SecureRandom()); // 生成一个密钥对,保存在keyPair中 KeyPair keyPair = keyPairGen.generateKeyPair(); // 得到私钥 RSAPrivateKey privateKey = (RSAPrivateKey) keyPair.getPrivate(); // 得到公钥 RSAPublicKey publicKey = (RSAPublicKey) keyPair.getPublic(); try { // 得到公钥字符串 String publicKeyString = Base64.encode(publicKey.getEncoded()); // 得到私钥字符串 String privateKeyString = Base64.encode(privateKey.getEncoded()); // 将密钥对写入到文件 FileWriter pubfw = new FileWriter(filePath + "/publicKey.keystore"); FileWriter prifw = new FileWriter(filePath + "/privateKey.keystore"); BufferedWriter pubbw = new BufferedWriter(pubfw); BufferedWriter pribw = new BufferedWriter(prifw); pubbw.write(publicKeyString); pribw.write(privateKeyString); pubbw.flush(); pubbw.close(); pubfw.close(); pribw.flush(); pribw.close(); prifw.close(); } catch (Exception e) { e.printStackTrace(); } } /** * 从文件中输入流中加载公钥 * * @param path 公钥输入流 * @throws Exception 加载公钥时产生的异常 */ public static String loadPublicKeyByFile(String path) throws Exception { try { BufferedReader br = new BufferedReader(new FileReader(path + "/publicKey.keystore")); String readLine = null; StringBuilder sb = new StringBuilder(); while ((readLine = br.readLine()) != null) { sb.append(readLine); } br.close(); return sb.toString(); } catch (IOException e) { throw new Exception("公钥数据流读取错误"); } catch (NullPointerException e) { throw new Exception("公钥输入流为空"); } } /** * 从字符串中加载公钥 * * @param publicKeyStr 公钥数据字符串 * @throws Exception 加载公钥时产生的异常 */ public static RSAPublicKey loadPublicKeyByStr(String publicKeyStr) throws Exception { try { byte[] buffer = Base64.decode(publicKeyStr); KeyFactory keyFactory = KeyFactory.getInstance("RSA"); X509EncodedKeySpec keySpec = new X509EncodedKeySpec(buffer); return (RSAPublicKey) keyFactory.generatePublic(keySpec); } catch (NoSuchAlgorithmException e) { throw new Exception("无此算法"); } catch (InvalidKeySpecException e) { throw new Exception("公钥非法"); } catch (NullPointerException e) { throw new Exception("公钥数据为空"); } } /** * 从文件中加载私钥 * * @param path 私钥文件名 * @return 是否成功 * @throws Exception */ public static String loadPrivateKeyByFile(String path) throws Exception { try { BufferedReader br = new BufferedReader(new FileReader(path + "/privateKey.keystore")); String readLine = null; StringBuilder sb = new StringBuilder(); while ((readLine = br.readLine()) != null) { sb.append(readLine); } br.close(); return sb.toString(); } catch (IOException e) { throw new Exception("私钥数据读取错误"); } catch (NullPointerException e) { throw new Exception("私钥输入流为空"); } } public static RSAPrivateKey loadPrivateKeyByStr(String privateKeyStr) throws Exception { try { byte[] buffer = Base64.decode(privateKeyStr); PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(buffer); KeyFactory keyFactory = KeyFactory.getInstance("RSA"); return (RSAPrivateKey) keyFactory.generatePrivate(keySpec); } catch (NoSuchAlgorithmException e) { throw new Exception("无此算法"); } catch (InvalidKeySpecException e) { throw new Exception("私钥非法"); } catch (NullPointerException e) { throw new Exception("私钥数据为空"); } } /** * 公钥加密过程 * * @param publicKey 公钥 * @param plainTextData 明文数据 * @return * @throws Exception 加密过程中的异常信息 */ public static byte[] encrypt(RSAPublicKey publicKey, byte[] plainTextData) throws Exception { if (publicKey == null) { throw new Exception("加密公钥为空, 请设置"); } Cipher cipher = null; try { // 使用默认RSA cipher = Cipher.getInstance("RSA"); // cipher= Cipher.getInstance("RSA", new BouncyCastleProvider()); cipher.init(Cipher.ENCRYPT_MODE, publicKey); byte[] output = cipher.doFinal(plainTextData); return output; } catch (NoSuchAlgorithmException e) { throw new Exception("无此加密算法"); } catch (NoSuchPaddingException e) { e.printStackTrace(); return null; } catch (InvalidKeyException e) { throw new Exception("加密公钥非法,请检查"); } catch (IllegalBlockSizeException e) { throw new Exception("明文长度非法"); } catch (BadPaddingException e) { throw new Exception("明文数据已损坏"); } } /** * 私钥加密过程 * * @param privateKey 私钥 * @param plainTextData 明文数据 * @return * @throws Exception 加密过程中的异常信息 */ public static byte[] encrypt(RSAPrivateKey privateKey, byte[] plainTextData) throws Exception { if (privateKey == null) { throw new Exception("加密私钥为空, 请设置"); } Cipher cipher = null; try { // 使用默认RSA cipher = Cipher.getInstance("RSA"); cipher.init(Cipher.ENCRYPT_MODE, privateKey); byte[] output = cipher.doFinal(plainTextData); return output; } catch (NoSuchAlgorithmException e) { throw new Exception("无此加密算法"); } catch (NoSuchPaddingException e) { e.printStackTrace(); return null; } catch (InvalidKeyException e) { throw new Exception("加密私钥非法,请检查"); } catch (IllegalBlockSizeException e) { throw new Exception("明文长度非法"); } catch (BadPaddingException e) { throw new Exception("明文数据已损坏"); } } /** * 私钥解密过程 * * @param privateKey 私钥 * @param cipherData 密文数据 * @return 明文 * @throws Exception 解密过程中的异常信息 */ public static byte[] decrypt(RSAPrivateKey privateKey, byte[] cipherData) throws Exception { if (privateKey == null) { throw new Exception("解密私钥为空, 请设置"); } Cipher cipher = null; try { // 使用默认RSA cipher = Cipher.getInstance("RSA"); // cipher= Cipher.getInstance("RSA", new BouncyCastleProvider()); cipher.init(Cipher.DECRYPT_MODE, privateKey); byte[] output = cipher.doFinal(cipherData); return output; } catch (NoSuchAlgorithmException e) { throw new Exception("无此解密算法"); } catch (NoSuchPaddingException e) { e.printStackTrace(); return null; } catch (InvalidKeyException e) { throw new Exception("解密私钥非法,请检查"); } catch (IllegalBlockSizeException e) { throw new Exception("密文长度非法"); } catch (BadPaddingException e) { throw new Exception("密文数据已损坏"); } } /** * 公钥解密过程 * * @param publicKey 公钥 * @param cipherData 密文数据 * @return 明文 * @throws Exception 解密过程中的异常信息 */ public static byte[] decrypt(RSAPublicKey publicKey, byte[] cipherData) throws Exception { if (publicKey == null) { throw new Exception("解密公钥为空, 请设置"); } Cipher cipher = null; try { // 使用默认RSA cipher = Cipher.getInstance("RSA"); // cipher= Cipher.getInstance("RSA", new BouncyCastleProvider()); cipher.init(Cipher.DECRYPT_MODE, publicKey); byte[] output = cipher.doFinal(cipherData); return output; } catch (NoSuchAlgorithmException e) { throw new Exception("无此解密算法"); } catch (NoSuchPaddingException e) { e.printStackTrace(); return null; } catch (InvalidKeyException e) { throw new Exception("解密公钥非法,请检查"); } catch (IllegalBlockSizeException e) { throw new Exception("密文长度非法"); } catch (BadPaddingException e) { throw new Exception("密文数据已损坏"); } } /** * 字节数据转十六进制字符串 * * @param data 输入数据 * @return 十六进制内容 */ public static String byteArrayToString(byte[] data) { StringBuilder stringBuilder = new StringBuilder(); for (int i = 0; i < data.length; i++) { // 取出字节的高四位 作为索引得到相应的十六进制标识符 注意无符号右移 stringBuilder.append(HEX_CHAR[(data[i] & 0xf0) >>> 4]); // 取出字节的低四位 作为索引得到相应的十六进制标识符 stringBuilder.append(HEX_CHAR[(data[i] & 0x0f)]); if (i < data.length - 1) { stringBuilder.append(' '); } } return stringBuilder.toString(); } }
[ "1404069367@qq.com" ]
1404069367@qq.com
52c0c92781dcb2a72202b13d759a08878424b424
343eea43f4d813f24da65a5a7c85ca80eec34374
/accelerometer/src/androidTest/java/com/mirea/denisignatenko/accelerometer/ExampleInstrumentedTest.java
3dba7f3f972533642346fc94d9127df4f5f7ba8e
[]
no_license
xeeeion/Practice_5
3501d0281b9960cb39d19c191daf71b371911eda
006e7c5fbccb0c09bdb2fb7922a5cf9ce0645596
refs/heads/main
2023-05-08T04:31:44.907253
2021-05-30T22:37:39
2021-05-30T22:37:39
367,986,618
0
0
null
null
null
null
UTF-8
Java
false
false
790
java
package com.mirea.denisignatenko.accelerometer; import android.content.Context; import androidx.test.platform.app.InstrumentationRegistry; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("com.mirea.denisignatenko.accelerometer", appContext.getPackageName()); } }
[ "Denisssig+GitKraken@gmail.com" ]
Denisssig+GitKraken@gmail.com
a5dd44f5835e6aa1cd36a3a5bc953812a1760f48
d17389d681a1a1d32df54e3acb2830ae03089796
/mindhelper-web/src/main/java/com/fuyuda/blog/BlogController.java
903d79f848b8f1fedfa0211206c702238182be0d
[]
no_license
sparic/mindhelper
94b5c2b89230df81fb4a3e71e6e004fc9b37ba23
36d12bf136fe720df3c5304b89aa6abf66a777a3
refs/heads/master
2020-03-17T07:00:02.588864
2018-05-14T15:52:36
2018-05-14T15:52:36
133,378,133
1
0
null
null
null
null
UTF-8
Java
false
false
570
java
package com.fuyuda.blog; import com.fuyuda.AjaxResult; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * Created by Administrator on 2018/3/4. */ @RestController @RequestMapping("blog") @Slf4j public class BlogController { @GetMapping("test") public AjaxResult test() { log.info("test() executed successfully!"); return AjaxResult.success("winner is ray"); } }
[ "704337316@qq.com" ]
704337316@qq.com
d8de8bf3655cf58dcc0708f17c07a3aa126c92c7
b99091f69ffc205d8c91c7137b7396d528e352fb
/iTunes/src/EasyWriter.java
575fb5f408bf44f14233185acb1e0c02dedbd945
[]
no_license
simonalford42/Everything
4d081b4be5ce1c2c0f6ebf252c3a78cd282fcf96
655391a358674c88a2d1899e8e0ef2cf53821955
refs/heads/master
2021-01-17T06:13:21.137146
2017-06-25T22:50:40
2017-06-25T22:50:40
28,244,562
0
0
null
null
null
null
UTF-8
Java
false
false
3,982
java
// package com.skylit.io; import java.io.*; /** * @author Gary Litvin * @version 1.2, 5/30/02 * * Written as part of * * <i>Java Methods: An Introduction to Object-Oriented Programming</i> * (Skylight Publishing 2001, ISBN 0-9654853-7-4) * * and * * <i>Java Methods AB: Data Structures</i> * (Skylight Publishing 2003, ISBN 0-9654853-1-5) * * EasyWriter provides simple methods for opening and * writing to text files. All exceptions are handled * inside the class and are hidden from the user. * * * 10/29/02 GL: Added print(Object obj) and println(Object obj) * * * <xmp> * Example: * ======= * * EasyWriter outFile = new EasyWriter("anyname.txt"); * if (outFile.bad()) * { * System.err.println("Can't create anyname.txt\n"); * System.exit(1); * } * outFile.print("2 + 2 = "); * outFile.println(4); * outFile.println(); // an extra blank line * outFile.close(); // optional * </xmp> * */ public class EasyWriter { protected String myFileName; protected PrintWriter myOutFile; protected int myErrorFlags = 0; protected static final int OPENERROR = 0x0001; protected static final int CLOSEERROR = 0x0002; protected static final int WRITEERROR = 0x0004; /** * Constructor. Creates a new file (or truncates an existing file) * @param fileName the name of the file to be created */ public EasyWriter(String fileName) { this(fileName, null); } /** * Constructor. Creates a new file. If the file exists * can append to it. * @param fileName the name of the file to be created * @param mode if equals to "app" opens in append mode */ public EasyWriter(String fileName, String mode) { myFileName = fileName; myErrorFlags = 0; try { myOutFile = new PrintWriter( new FileWriter(fileName, "app".equals(mode))); } catch (IOException e) { myErrorFlags |= OPENERROR; myFileName = null; } } /** * Closes the file */ public void close() { if (myFileName != null) myOutFile.close(); } /** * Checks the status of the file * @return true if en error occurred opening or writing to the file, * false otherwise */ public boolean bad() { return myErrorFlags != 0; } /** * Writes one character to the file * @param ch character to be written */ public void print(char ch) { myOutFile.print(ch); } /** * Writes an integer to the file * @param k number to be written */ public void print(int k) { myOutFile.print(k); } /** * Writes a double to the file * @param x number to be written */ public void print(double x) { myOutFile.print(x); } /** * Writes a string to the file * @param s string to be written */ public void print(String s) { myOutFile.print(s); } /** * Writes an object to the file * @param obj object to be written */ public void print(Object obj) { myOutFile.print(obj); } /** * Writes a newline character to the file */ public void println() { myOutFile.println(); } /** * Writes one character and newline to the file * @param ch character to be written */ public void println(char ch) { myOutFile.println(ch); } /** * Writes an integer and newline to the file * @param k number to be written */ public void println(int k) { myOutFile.println(k); } /** * Writes a double and newline to the file * @param x number to be written */ public void println(double x) { myOutFile.println(x); } /** * Writes a string and newline to the file * @param s string to be written */ public void println(String s) { myOutFile.println(s); } /** * Writes an object and newline to the file * @param obj object to be written */ public void println(Object obj) { myOutFile.println(obj); } }
[ "simonalford42@gmail.com" ]
simonalford42@gmail.com
51fda24bdaf8f33bde6c4b1328dd995c68bf006e
a9ac8a54476de79fc4f0ccee1aada992477a327b
/app/src/main/java/com/sundeep/notification/MyService.java
ba7a8fc8dd008c1f725bc9dcdedea05e56cc6b2d
[]
no_license
rathishudhay/abcdef
31cb11197a1a08c757c59afc45fe68196edc3d84
0edd29a54bef721b25b85f2e2000b09ee2abfd93
refs/heads/master
2022-11-11T02:36:21.038172
2020-07-01T06:46:56
2020-07-01T06:46:56
265,262,114
0
0
null
null
null
null
UTF-8
Java
false
false
1,297
java
package com.sundeep.notification; import android.app.Service; import android.content.Intent; import android.os.IBinder; import androidx.work.Data; import androidx.work.OneTimeWorkRequest; import androidx.work.WorkManager; import static androidx.work.ExistingWorkPolicy.REPLACE; import static java.util.concurrent.TimeUnit.MILLISECONDS; public class MyService extends Service { @Override public int onStartCommand(Intent intent, int flags, int startId) { //TODO do something useful String NOTIFICATION_ID = "appName_notification_id"; String NOTIFICATION_WORK = "appName_notification_work"; Long delay=4*1000l; Data data = new Data.Builder() .putInt(NOTIFICATION_ID, 100) .build(); OneTimeWorkRequest notificationWork = new OneTimeWorkRequest.Builder(NotifyWork.class).setInitialDelay(delay, MILLISECONDS).setInputData(data).build(); WorkManager instanceWorkManager = WorkManager.getInstance(this); instanceWorkManager.beginUniqueWork(NOTIFICATION_WORK, REPLACE, notificationWork).enqueue(); return Service.START_STICKY; } @Override public IBinder onBind(Intent intent) { //TODO for communication return IBinder implementation return null; } }
[ "rathishudhay@gmail.com" ]
rathishudhay@gmail.com
6061c845c7d63369f948ed0de26331439adbd4a0
b1060e3c723a7e8bfde1bea48ac816df016f8758
/selpost/src/main/java/org/selpost/service/MainService.java
b9b7cf19eba55fb6940028f9356ab4874f5721e8
[]
no_license
raonomicsweb/selpost
771b1fccb6dbae83e4ea8cd633209a4ba2eab3d9
7678cbbd5b3b3677b874a6f62d71d775adce10d7
refs/heads/master
2021-01-19T06:40:45.267931
2015-03-02T02:34:47
2015-03-02T02:34:47
30,520,268
0
0
null
null
null
null
UTF-8
Java
false
false
570
java
package org.selpost.service; import java.util.List; import javax.inject.Inject; import org.selpost.mapper.MainMapper; import org.selpost.util.Criteria; import org.selpost.util.PageMaker; import org.selpost.vo.NewsVO; import org.springframework.stereotype.Service; @Service public class MainService implements MainMapper { @Inject private MainMapper mm; @Override public List<NewsVO> listPage(Criteria cri) throws Exception { return mm.listPage(cri); } public PageMaker countPaging(Criteria cri) throws Exception { return mm.countPaging(cri); } }
[ "teraix@naver.com" ]
teraix@naver.com
53dc9925dca64105827c1f1731c241b543191b9d
8a4dd231c41dad70b2d6272d8a2ae418db3b4a19
/src/main/java/de/MiningPickaxe/dimension/UniverseDimPortal.java
0cbc23109417afce60f8f6c2cab6cf47b98f7bf1
[]
no_license
MiningPickaxe/UniverseDimensions
28dd2335c98b7985911fe2c13e07a8f887b5e755
429ce5865fa54c1b9ea77872a3d099562e6b9953
refs/heads/master
2021-01-10T16:23:43.812034
2015-11-21T12:49:04
2015-11-21T12:49:04
46,615,080
0
0
null
null
null
null
UTF-8
Java
false
false
17,556
java
package de.MiningPickaxe.dimension; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import de.MiningPickaxe.UniverseDimensions.Main; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.block.BlockBreakable; import net.minecraft.block.material.Material; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemMonsterPlacer; import net.minecraft.server.MinecraftServer; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.ChunkCoordinates; import net.minecraft.util.Direction; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; public class UniverseDimPortal extends BlockBreakable { public static final int[][] field_150001_a = new int[][] {new int[0], {3, 1}, {2, 0}}; public UniverseDimPortal() { super(Main.MODID + ":portal", Material.portal, false); this.setTickRandomly(true); } /** * Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been * cleared to be reused) */ public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_) { return null; } /** * Updates the blocks bounds based on its current state. Args: world, x, y, z */ public void setBlockBoundsBasedOnState(IBlockAccess p_149719_1_, int p_149719_2_, int p_149719_3_, int p_149719_4_) { int l = func_149999_b(p_149719_1_.getBlockMetadata(p_149719_2_, p_149719_3_, p_149719_4_)); if (l == 0) { if (p_149719_1_.getBlock(p_149719_2_ - 1, p_149719_3_, p_149719_4_) != this && p_149719_1_.getBlock(p_149719_2_ + 1, p_149719_3_, p_149719_4_) != this) { l = 2; } else { l = 1; } if (p_149719_1_ instanceof World && !((World)p_149719_1_).isRemote) { ((World)p_149719_1_).setBlockMetadataWithNotify(p_149719_2_, p_149719_3_, p_149719_4_, l, 2); } } float f = 0.125F; float f1 = 0.125F; if (l == 1) { f = 0.5F; } if (l == 2) { f1 = 0.5F; } this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f1, 0.5F + f, 1.0F, 0.5F + f1); } /** * If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc) */ public boolean renderAsNormalBlock() { return false; } public static boolean func_150000_e(World p_150000_1_, int p_150000_2_, int p_150000_3_, int p_150000_4_) { UniverseDimPortal.Size size = new UniverseDimPortal.Size(p_150000_1_, p_150000_2_, p_150000_3_, p_150000_4_, 1); UniverseDimPortal.Size size1 = new UniverseDimPortal.Size(p_150000_1_, p_150000_2_, p_150000_3_, p_150000_4_, 2); if (size.func_150860_b() && size.field_150864_e == 0) { size.func_150859_c(); return true; } else if (size1.func_150860_b() && size1.field_150864_e == 0) { size1.func_150859_c(); return true; } else { return false; } } /** * Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are * their own) Args: x, y, z, neighbor Block */ public void onNeighborBlockChange(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_) { int l = func_149999_b(p_149695_1_.getBlockMetadata(p_149695_2_, p_149695_3_, p_149695_4_)); UniverseDimPortal.Size size = new UniverseDimPortal.Size(p_149695_1_, p_149695_2_, p_149695_3_, p_149695_4_, 1); UniverseDimPortal.Size size1 = new UniverseDimPortal.Size(p_149695_1_, p_149695_2_, p_149695_3_, p_149695_4_, 2); if (l == 1 && (!size.func_150860_b() || size.field_150864_e < size.field_150868_h * size.field_150862_g)) { p_149695_1_.setBlock(p_149695_2_, p_149695_3_, p_149695_4_, Blocks.air); } else if (l == 2 && (!size1.func_150860_b() || size1.field_150864_e < size1.field_150868_h * size1.field_150862_g)) { p_149695_1_.setBlock(p_149695_2_, p_149695_3_, p_149695_4_, Blocks.air); } else if (l == 0 && !size.func_150860_b() && !size1.func_150860_b()) { p_149695_1_.setBlock(p_149695_2_, p_149695_3_, p_149695_4_, Blocks.air); } } /** * Returns true if the given side of this block type should be rendered, if the adjacent block is at the given * coordinates. Args: blockAccess, x, y, z, side */ @SideOnly(Side.CLIENT) public boolean shouldSideBeRendered(IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_) { int i1 = 0; if (p_149646_1_.getBlock(p_149646_2_, p_149646_3_, p_149646_4_) == this) { i1 = func_149999_b(p_149646_1_.getBlockMetadata(p_149646_2_, p_149646_3_, p_149646_4_)); if (i1 == 0) { return false; } if (i1 == 2 && p_149646_5_ != 5 && p_149646_5_ != 4) { return false; } if (i1 == 1 && p_149646_5_ != 3 && p_149646_5_ != 2) { return false; } } boolean flag = p_149646_1_.getBlock(p_149646_2_ - 1, p_149646_3_, p_149646_4_) == this && p_149646_1_.getBlock(p_149646_2_ - 2, p_149646_3_, p_149646_4_) != this; boolean flag1 = p_149646_1_.getBlock(p_149646_2_ + 1, p_149646_3_, p_149646_4_) == this && p_149646_1_.getBlock(p_149646_2_ + 2, p_149646_3_, p_149646_4_) != this; boolean flag2 = p_149646_1_.getBlock(p_149646_2_, p_149646_3_, p_149646_4_ - 1) == this && p_149646_1_.getBlock(p_149646_2_, p_149646_3_, p_149646_4_ - 2) != this; boolean flag3 = p_149646_1_.getBlock(p_149646_2_, p_149646_3_, p_149646_4_ + 1) == this && p_149646_1_.getBlock(p_149646_2_, p_149646_3_, p_149646_4_ + 2) != this; boolean flag4 = flag || flag1 || i1 == 1; boolean flag5 = flag2 || flag3 || i1 == 2; return flag4 && p_149646_5_ == 4 ? true : (flag4 && p_149646_5_ == 5 ? true : (flag5 && p_149646_5_ == 2 ? true : flag5 && p_149646_5_ == 3)); } /** * Returns the quantity of items to drop on block destruction. */ public int quantityDropped(Random p_149745_1_) { return 0; } /** * Triggered whenever an entity collides with this block (enters into the block). Args: world, x, y, z, entity */ public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity) { if((par5Entity.ridingEntity == null) && (par5Entity.riddenByEntity == null) && ((par5Entity instanceof EntityPlayerMP))){ EntityPlayerMP player = (EntityPlayerMP) par5Entity; MinecraftServer mcserver = MinecraftServer.getServer(); if(player.timeUntilPortal > 0){ player.timeUntilPortal = 10; }else if(player.dimension != Main.dimid) { player.timeUntilPortal = 10; player.mcServer.getConfigurationManager().transferPlayerToDimension(player, Main.dimid, new UniverseDimTeleporter(mcserver.worldServerForDimension(Main.dimid))); }else{ player.timeUntilPortal = 10; player.mcServer.getConfigurationManager().transferPlayerToDimension(player, 0, new UniverseDimTeleporter(mcserver.worldServerForDimension(0))); } } } /** * Returns which pass should this block be rendered on. 0 for solids and 1 for alpha */ @SideOnly(Side.CLIENT) public int getRenderBlockPass() { return 1; } /** * A randomly called display update to be able to add particles or other items for display */ @SideOnly(Side.CLIENT) public void randomDisplayTick(World p_149734_1_, int p_149734_2_, int p_149734_3_, int p_149734_4_, Random p_149734_5_) { if (p_149734_5_.nextInt(100) == 0) { p_149734_1_.playSound((double)p_149734_2_ + 0.5D, (double)p_149734_3_ + 0.5D, (double)p_149734_4_ + 0.5D, "random.fizz", 0.5F, p_149734_5_.nextFloat() * 0.4F + 0.8F, false); } for (int l = 0; l < 4; ++l) { double d0 = (double)((float)p_149734_2_ + p_149734_5_.nextFloat()); double d1 = (double)((float)p_149734_3_ + p_149734_5_.nextFloat()); double d2 = (double)((float)p_149734_4_ + p_149734_5_.nextFloat()); double d3 = 0.0D; double d4 = 0.0D; double d5 = 0.0D; int i1 = p_149734_5_.nextInt(2) * 2 - 1; d3 = ((double)p_149734_5_.nextFloat() - 0.5D) * 0.5D; d4 = ((double)p_149734_5_.nextFloat() - 0.5D) * 0.5D; d5 = ((double)p_149734_5_.nextFloat() - 0.5D) * 0.5D; if (p_149734_1_.getBlock(p_149734_2_ - 1, p_149734_3_, p_149734_4_) != this && p_149734_1_.getBlock(p_149734_2_ + 1, p_149734_3_, p_149734_4_) != this) { d0 = (double)p_149734_2_ + 0.5D + 0.25D * (double)i1; d3 = (double)(p_149734_5_.nextFloat() * 2.0F * (float)i1); } else { d2 = (double)p_149734_4_ + 0.5D + 0.25D * (double)i1; d5 = (double)(p_149734_5_.nextFloat() * 2.0F * (float)i1); } p_149734_1_.spawnParticle("reddust", d0, d1, d2, d3, d4, d5); } } public static int func_149999_b(int p_149999_0_) { return p_149999_0_ & 3; } /** * Gets an item for the block being called on. Args: world, x, y, z */ @SideOnly(Side.CLIENT) public Item getItem(World p_149694_1_, int p_149694_2_, int p_149694_3_, int p_149694_4_) { return Item.getItemById(0); } public static class Size { private final World field_150867_a; private final int field_150865_b; private final int field_150866_c; private final int field_150863_d; private int field_150864_e = 0; private ChunkCoordinates field_150861_f; private int field_150862_g; private int field_150868_h; private static final String __OBFID = "CL_00000285"; public Size(World p_i45415_1_, int p_i45415_2_, int p_i45415_3_, int p_i45415_4_, int p_i45415_5_) { this.field_150867_a = p_i45415_1_; this.field_150865_b = p_i45415_5_; this.field_150863_d = UniverseDimPortal.field_150001_a[p_i45415_5_][0]; this.field_150866_c = UniverseDimPortal.field_150001_a[p_i45415_5_][1]; for (int i1 = p_i45415_3_; p_i45415_3_ > i1 - 21 && p_i45415_3_ > 0 && this.func_150857_a(p_i45415_1_.getBlock(p_i45415_2_, p_i45415_3_ - 1, p_i45415_4_)); --p_i45415_3_) { ; } int j1 = this.func_150853_a(p_i45415_2_, p_i45415_3_, p_i45415_4_, this.field_150863_d) - 1; if (j1 >= 0) { this.field_150861_f = new ChunkCoordinates(p_i45415_2_ + j1 * Direction.offsetX[this.field_150863_d], p_i45415_3_, p_i45415_4_ + j1 * Direction.offsetZ[this.field_150863_d]); this.field_150868_h = this.func_150853_a(this.field_150861_f.posX, this.field_150861_f.posY, this.field_150861_f.posZ, this.field_150866_c); if (this.field_150868_h < 2 || this.field_150868_h > 21) { this.field_150861_f = null; this.field_150868_h = 0; } } if (this.field_150861_f != null) { this.field_150862_g = this.func_150858_a(); } } protected int func_150853_a(int p_150853_1_, int p_150853_2_, int p_150853_3_, int p_150853_4_) { int j1 = Direction.offsetX[p_150853_4_]; int k1 = Direction.offsetZ[p_150853_4_]; int i1; Block block; for (i1 = 0; i1 < 22; ++i1) { block = this.field_150867_a.getBlock(p_150853_1_ + j1 * i1, p_150853_2_, p_150853_3_ + k1 * i1); if (!this.func_150857_a(block)) { break; } Block block1 = this.field_150867_a.getBlock(p_150853_1_ + j1 * i1, p_150853_2_ - 1, p_150853_3_ + k1 * i1); if (block1 != Main.portalstone) { break; } } block = this.field_150867_a.getBlock(p_150853_1_ + j1 * i1, p_150853_2_, p_150853_3_ + k1 * i1); return block == Main.portalstone ? i1 : 0; } protected int func_150858_a() { int i; int j; int k; int l; label56: for (this.field_150862_g = 0; this.field_150862_g < 21; ++this.field_150862_g) { i = this.field_150861_f.posY + this.field_150862_g; for (j = 0; j < this.field_150868_h; ++j) { k = this.field_150861_f.posX + j * Direction.offsetX[UniverseDimPortal.field_150001_a[this.field_150865_b][1]]; l = this.field_150861_f.posZ + j * Direction.offsetZ[UniverseDimPortal.field_150001_a[this.field_150865_b][1]]; Block block = this.field_150867_a.getBlock(k, i, l); if (!this.func_150857_a(block)) { break label56; } if (block == Main.portal) { ++this.field_150864_e; } if (j == 0) { block = this.field_150867_a.getBlock(k + Direction.offsetX[UniverseDimPortal.field_150001_a[this.field_150865_b][0]], i, l + Direction.offsetZ[UniverseDimPortal.field_150001_a[this.field_150865_b][0]]); if (block != Main.portalstone) { break label56; } } else if (j == this.field_150868_h - 1) { block = this.field_150867_a.getBlock(k + Direction.offsetX[UniverseDimPortal.field_150001_a[this.field_150865_b][1]], i, l + Direction.offsetZ[UniverseDimPortal.field_150001_a[this.field_150865_b][1]]); if (block != Main.portalstone) { break label56; } } } } for (i = 0; i < this.field_150868_h; ++i) { j = this.field_150861_f.posX + i * Direction.offsetX[UniverseDimPortal.field_150001_a[this.field_150865_b][1]]; k = this.field_150861_f.posY + this.field_150862_g; l = this.field_150861_f.posZ + i * Direction.offsetZ[UniverseDimPortal.field_150001_a[this.field_150865_b][1]]; if (this.field_150867_a.getBlock(j, k, l) != Main.portalstone) { this.field_150862_g = 0; break; } } if (this.field_150862_g <= 21 && this.field_150862_g >= 3) { return this.field_150862_g; } else { this.field_150861_f = null; this.field_150868_h = 0; this.field_150862_g = 0; return 0; } } protected boolean func_150857_a(Block p_150857_1_) { return p_150857_1_.getMaterial() == Material.air || p_150857_1_ == Main.portalmaker || p_150857_1_ == Main.portal; } public boolean func_150860_b() { return this.field_150861_f != null && this.field_150868_h >= 2 && this.field_150868_h <= 21 && this.field_150862_g >= 3 && this.field_150862_g <= 21; } public void func_150859_c() { for (int i = 0; i < this.field_150868_h; ++i) { int j = this.field_150861_f.posX + Direction.offsetX[this.field_150866_c] * i; int k = this.field_150861_f.posZ + Direction.offsetZ[this.field_150866_c] * i; for (int l = 0; l < this.field_150862_g; ++l) { int i1 = this.field_150861_f.posY + l; this.field_150867_a.setBlock(j, i1, k, Main.portal, this.field_150865_b, 2); } } } } }
[ "stop-motion@t-online.de" ]
stop-motion@t-online.de
00d41ec4ea2e1bdf362578847e86649bff5cdb7e
f6fce76e10252570bc94b9e0693d3acc1abac809
/trabajoPractico01/consigna02/src/main/java/trabajoPractico01/consigna02/Fecha.java
dd60feb068b49e9e6ed3b9fe786bb3de29462333
[]
no_license
FrancoAlfano/programacion2
38bb5ada4fd527b61082fabdedca569d675fa0c0
455831228bd8766bf18103c1d1ca323eb6f30faf
refs/heads/master
2022-07-26T17:57:21.912381
2019-10-08T23:08:34
2019-10-08T23:08:34
127,041,002
0
0
null
2022-07-07T00:51:03
2018-03-27T20:16:22
Java
UTF-8
Java
false
false
1,971
java
package trabajoPractico01.consigna02; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class Fecha { private int dia; private int mes; private int anho; public Fecha() { } public Fecha(int dia, int mes, int anho) { dia = this.dia; mes = this.mes; anho = this.anho; } public int getDia() { return dia; } public void setDia(int dia) { this.dia = dia; } public int getMes() { return mes; } public void setMes(int mes) { this.mes = mes; } public int getAnho() { return anho; } public void setAnho(int anho) { this.anho = anho; } public void input(int dia, int mes, int anho) { setDia(dia); setAnho(anho); setMes(mes); } public int comparar(String date1, String date2) throws ParseException{ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Date d1 = sdf.parse(date1); Date d2 = sdf.parse(date2); System.out.println("Fecha1 : " + sdf.format(d1)); System.out.println("Fecha2 : " + sdf.format(d2)); if (d1.compareTo(d2) > 0) { System.out.println(sdf.format(d1)+" es despues de "+sdf.format(d2)); return 1; } else if (d1.compareTo(d2) < 0) { System.out.println(sdf.format(d1)+" es antes de "+sdf.format(d2)); return -1; } else if (d1.compareTo(d2) == 0) { System.out.println(sdf.format(d1)+" es el mismo dia que "+sdf.format(d2)); return 0; } else { System.out.println("nope"); } return 0; } public void desplazar(String fecha, int dias) throws ParseException { Calendar c = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Date f1 = sdf.parse(fecha); c.setTime(f1); c.add(Calendar.DATE, dias); System.out.println("Fecha agregada: " + sdf.format(c.getTime())); } }
[ "franco.alfano.95@gmail.com" ]
franco.alfano.95@gmail.com
a895502a3a0c157976cdd874dad1cea89b8d6081
92f9d7a9bef8ab3a854926716e9e3d48bec34b8e
/Grad/ThirdYear/DistributedSystems/FirstProject-BikeRenting/BikeRenting/binas-ws/src/main/java/org/binas/domain/StationsComparator.java
9d305c623fb344244946a9d1721f82ff1afce8d7
[]
no_license
RafaelMenesesRibeiro/CollegeProjects
3a7b287d71421bcc2349d5a2bad1cb6bbab8acb0
eac068d6aa074a0b2b5b96d7f61552b4fcb0e228
refs/heads/master
2020-09-19T03:07:53.714526
2019-11-26T15:33:13
2019-11-26T15:33:13
224,192,175
0
0
null
null
null
null
UTF-8
Java
false
false
998
java
package org.binas.domain; import java.util.Comparator; import org.binas.ws.CoordinatesView; import org.binas.ws.StationView; /** * This class compares the coordinates of Two different stations by implementing the euclidean distance * */ public class StationsComparator implements Comparator<StationView> { private CoordinatesView coordinates; public StationsComparator(CoordinatesView coordinates) { this.coordinates = coordinates; } // Comparison based on Euclidean Distance public int compare(StationView s1, StationView s2) { CoordinatesView coordsS1 = s1.getCoordinate(); CoordinatesView coordsS2 = s2.getCoordinate(); double distS1 = Math.sqrt(Math.pow(coordsS1.getY() - this.coordinates.getY(), 2) + Math.pow(coordsS1.getX() - this.coordinates.getX(), 2)); double distS2 = Math.sqrt(Math.pow(coordsS2.getY() - this.coordinates.getY(), 2) + Math.pow(coordsS2.getX() - this.coordinates.getX(), 2)); return Double.compare(distS1, distS2); } }
[ "rafaelmmribeiro@gmail.com" ]
rafaelmmribeiro@gmail.com
c7b9149301395020b448772727e6c8fa639e61c9
90050a3e13dc894bfefb8ca5a8925a98ec2589b7
/src/test/java/movement/MoveBallTest.java
a4678195d19f89724769a90e52661f4079efe3c3
[]
no_license
marc28/BallGameRevisited
0bf7fa0c6eaee7838d24253e1350bffd00610b1b
0bc42ca929408a6c539613917f2eb72d8a5c2a4e
refs/heads/master
2021-01-17T10:23:35.893356
2016-06-08T21:09:06
2016-06-08T21:09:06
59,421,938
0
0
null
null
null
null
UTF-8
Java
false
false
535
java
package movement; import static org.junit.Assert.*; import java.util.ArrayList; import java.util.List; import org.junit.Before; import org.junit.Test; import components.Ball; public class MoveBallTest { List<Ball> balls; MoveBall moveUtil; @Before public void setUp() throws Exception { balls = new ArrayList<Ball>(); balls.add(new Ball(0, 0)); moveUtil = new MoveBall(balls); } @Test public void test() { assertTrue(balls.get(0).getX() == 0); moveUtil.moveBall(); assertTrue(balls.get(0).getX() != 0); } }
[ "elmarco18@yahoo.ie" ]
elmarco18@yahoo.ie
b319030037ca3582af49377624a7a34cae7ee134
467a61212e7d09819d76c975e709fe3788068e63
/itrip-sso-web/src/main/java/org/java/sso/controller/UserController.java
2395951c24b42bbf35751b6f9d9fa482d157558a
[ "MIT" ]
permissive
licai1007/itrip
512d5a79d9def9bb9dace4c78f4f5884f503f034
1ad62a4f1dba482f6aa5ecddd123fc2dc1fb5073
refs/heads/master
2022-06-14T12:31:28.269512
2020-04-04T14:33:59
2020-04-04T14:33:59
230,061,542
0
0
MIT
2022-06-10T20:01:57
2019-12-25T07:29:32
CSS
UTF-8
Java
false
false
4,297
java
package org.java.sso.controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang3.StringUtils; import org.java.common.pojo.ItripResult; import org.java.common.util.CookieUtils; import org.java.common.util.JsonUtils; import org.java.pojo.User; import org.java.sso.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.MediaType; import org.springframework.http.converter.json.MappingJacksonValue; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; 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; @Controller public class UserController { @Autowired private UserService userService; @Value("${ITRIP_COOKIE}") private String ITRIP_COOKIE; @RequestMapping("/user/check/{param}/{type}") @ResponseBody public ItripResult checkData(@PathVariable(value="param") String param, @PathVariable(value="type") Integer type){ return userService.checkData(param,type); } @RequestMapping(value="/user/register",method=RequestMethod.POST) @ResponseBody public ItripResult register(User user){ return userService.register(user); } @RequestMapping(value="/user/login",method=RequestMethod.POST) @ResponseBody public ItripResult login(String username,String password, HttpServletRequest request,HttpServletResponse response){ ItripResult result = userService.login(username,password); //判断是否登录成功 if(result.getStatus() == 200){ //表示成功,将token放入到cookie中 CookieUtils.setCookie(request,response,ITRIP_COOKIE,result.getData().toString()); } return result; } //第一种jsonp处理方案:要求spring的版本是4.1或以上 /*@RequestMapping(value="/user/token/{token}",method=RequestMethod.GET) @ResponseBody public Object getUserByToken(@PathVariable("token") String token,String callback){ ItripResult result = userService.getUserByToken(token); //处理json跨域请求 if(StringUtils.isNotBlank(callback)){ //请求参数中有callback,表示一个jsonp的请求(要求json跨域请求) MappingJacksonValue jacksonValue = new MappingJacksonValue(result); //设置回调方法 jacksonValue.setJsonpFunction(callback); return jacksonValue; } //非json跨域请求 return result; }*/ //对于spring是4.1以下的同志必须使用如下处理方案(强行将返回的对象转换成文本进行返回) @RequestMapping(value="/user/token/{token}",method=RequestMethod.GET,produces=MediaType.APPLICATION_JSON_UTF8_VALUE) @ResponseBody public String getUserByToken(@PathVariable("token") String token,String callback){ ItripResult result = userService.getUserByToken(token); //处理json跨域请求 if(StringUtils.isNotBlank(callback)){ //表示是jsonp的请求 String str = callback + "(" + JsonUtils.objectToJson(result) + ");"; return str; } //非json跨域请求 return JsonUtils.objectToJson(result); } @RequestMapping(value="/user/logout/{token}",method=RequestMethod.GET) public String logout(@PathVariable("token") String token, HttpServletRequest request,HttpServletResponse response){ //在浏览器中删除cookie CookieUtils.deleteCookie(request,response,ITRIP_COOKIE); return "redirect:http://localhost:8081"; } @RequestMapping(value="/user/jihuo",method=RequestMethod.GET) public String jihuo(@RequestParam(name="code",required=false,defaultValue="") String code){ //进行激活 ItripResult result = userService.jihuo(code); if(result.getStatus()==400){ //表示激活失败,应该跳转到一个失败页面 } //激活成功 return "redirect:/user/showLogin"; } @RequestMapping(value="/user/sendCode",method=RequestMethod.POST) public void sendCode(@RequestParam(name="phone",required=true) String phone){ userService.sendCode(phone); } }
[ "254522287@qq.com" ]
254522287@qq.com
1045497390726f75f186dc69cd56615cf9c259b4
903c3042b7fb0c81764695a5c73547070632c918
/Backend/bodega_api/src/main/java/co/edu/uniajc/wse_bodega/service/BodegaService.java
3ba8f99bc3623f64eebd6d0ba408cbf6e0ed48ad
[]
no_license
alejoduran0109/apivuesoa
0990bb09763801439bf09ae14663a2505cca11ab
a7a80be65bc7fe268240aa832c2d85f411cded44
refs/heads/master
2022-12-25T07:56:28.060892
2019-11-18T00:12:40
2019-11-18T00:12:40
222,329,475
0
0
null
2022-12-11T13:46:47
2019-11-17T23:57:27
Java
UTF-8
Java
false
false
838
java
package co.edu.uniajc.wse_bodega.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import co.edu.uniajc.wse_bodega.model.Bodega; import co.edu.uniajc.wse_bodega.repository.BodegaRepository; @Service public class BodegaService { @Autowired BodegaRepository bodegaRepository; public Bodega saveEstado(Bodega bodega) { return bodegaRepository.save(bodega); } public Bodega updateEstado(Bodega bodega) { return bodegaRepository.save(bodega); } public void deleteEstado(int id) { bodegaRepository.deleteById(id); } public List<Bodega> listar(){ return bodegaRepository.findAll(); } /* public Estados getByIdEstado(int id) { return estadosRepository.findByIdEstado(id); } */ }
[ "alejoduran0109@hotmail.com" ]
alejoduran0109@hotmail.com
7d0613163e1e37e5cca9b02fa33a6522c46ed9b1
604088877c272e89650ba7b144b630b7fada46ca
/Assignments/class-7 assignment/pattern.java
280d4a2e328f480a5262fff68aa5810bf61e7f12
[]
no_license
bindal-acadview/Acadview
d71d12a9d890acf4806c0fa89e26ba84da35a0fc
feec4961b74ae96dd19157314d83c536c87e9da3
refs/heads/master
2020-03-16T06:53:13.280234
2018-07-21T12:43:37
2018-07-21T12:43:37
132,564,675
0
0
null
null
null
null
UTF-8
Java
false
false
277
java
public class pattern { public static void main(String[] args) { String s1="abc",s2; int len=s1.length(); for(int i=1;i<=len;i++) { s2=(String) s1.subSequence(0,i); System.out.println(s2); } } }
[ "ghainitesh007@gmail.com" ]
ghainitesh007@gmail.com
12e0ec4d15ef638ef904d53a7c6103e49e39fa4c
731a50b8618714b4e0b923587550a8506320ae31
/src/main/java/com/csc680/orbit/model/dto/CreateCourseDTO.java
2f21a06b3696c4ce1f2b3a925ab9c17aabf0c6e0
[]
no_license
Orbit-680/orbit-api
4d0e7f2afa8cbd7b6511f226985ce09286c623fb
d76e3a6262f020297e8395d0e1e3a4ca3af451de
refs/heads/master
2021-09-12T21:21:52.128052
2018-04-18T15:02:52
2018-04-18T15:02:52
105,838,476
0
0
null
2018-04-21T01:43:38
2017-10-05T01:45:06
Java
UTF-8
Java
false
false
582
java
package com.csc680.orbit.model.dto; import com.csc680.orbit.model.pojo.User; public class CreateCourseDTO { private int teacherID; private String name; public CreateCourseDTO(){ } public CreateCourseDTO(int teacherID, String name){ this.teacherID = teacherID; this.name = name; } public int getTeacherID() { return teacherID; } public void setTeacherID(int teacherID) { this.teacherID = teacherID; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
[ "kevin.patrick.stanley@gmail.com" ]
kevin.patrick.stanley@gmail.com
07522f35d45f176eb018341c946ddcebc6d3469c
827bf064e482700d7ded2cd0a3147cb9657db883
/AndroidPOS/src/com/google/android/gms/maps/model/MarkerOptions.java
235a2769949c86aa2d4fcbcc47c1536b59a706eb
[]
no_license
cody0117/LearnAndroid
d30b743029f26568ccc6dda4313a9d3b70224bb6
02fd4d2829a0af8a1706507af4b626783524813e
refs/heads/master
2021-01-21T21:10:18.553646
2017-02-12T08:43:24
2017-02-12T08:43:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,130
java
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.google.android.gms.maps.model; import android.os.IBinder; import android.os.Parcel; import com.google.android.gms.a.c; import com.google.android.gms.a.d; import com.google.android.gms.common.internal.safeparcel.SafeParcelable; import com.google.android.gms.maps.internal.b; // Referenced classes of package com.google.android.gms.maps.model: // k, a, LatLng public final class MarkerOptions implements SafeParcelable { public static final k CREATOR = new k(); private final int a; private LatLng b; private String c; private String d; private a e; private float f; private float g; private boolean h; private boolean i; private boolean j; private float k; private float l; private float m; private float n; public MarkerOptions() { f = 0.5F; g = 1.0F; i = true; j = false; k = 0.0F; l = 0.5F; m = 0.0F; n = 1.0F; a = 1; } MarkerOptions(int i1, LatLng latlng, String s, String s1, IBinder ibinder, float f1, float f2, boolean flag, boolean flag1, boolean flag2, float f3, float f4, float f5, float f6) { f = 0.5F; g = 1.0F; i = true; j = false; k = 0.0F; l = 0.5F; m = 0.0F; n = 1.0F; a = i1; b = latlng; c = s; d = s1; a a1; if (ibinder == null) { a1 = null; } else { a1 = new a(com.google.android.gms.a.d.a(ibinder)); } e = a1; f = f1; g = f2; h = flag; i = flag1; j = flag2; k = f3; l = f4; m = f5; n = f6; } final int a() { return a; } final IBinder b() { if (e == null) { return null; } else { return e.a().asBinder(); } } public final LatLng c() { return b; } public final String d() { return c; } public final int describeContents() { return 0; } public final String e() { return d; } public final float f() { return f; } public final float g() { return g; } public final boolean h() { return h; } public final boolean i() { return i; } public final boolean j() { return j; } public final float k() { return k; } public final float l() { return l; } public final float m() { return m; } public final float n() { return n; } public final void writeToParcel(Parcel parcel, int i1) { if (com.google.android.gms.maps.internal.b.a()) { int j1 = com.google.android.gms.common.internal.safeparcel.c.a(parcel); com.google.android.gms.common.internal.safeparcel.c.a(parcel, 1, a); com.google.android.gms.common.internal.safeparcel.c.a(parcel, 2, b, i1, false); com.google.android.gms.common.internal.safeparcel.c.a(parcel, 3, c, false); com.google.android.gms.common.internal.safeparcel.c.a(parcel, 4, d, false); com.google.android.gms.common.internal.safeparcel.c.a(parcel, 5, b()); com.google.android.gms.common.internal.safeparcel.c.a(parcel, 6, f); com.google.android.gms.common.internal.safeparcel.c.a(parcel, 7, g); com.google.android.gms.common.internal.safeparcel.c.a(parcel, 8, h); com.google.android.gms.common.internal.safeparcel.c.a(parcel, 9, i); com.google.android.gms.common.internal.safeparcel.c.a(parcel, j1); return; } else { com.google.android.gms.maps.model.k.a(this, parcel, i1); return; } } }
[ "em3888@gmail.com" ]
em3888@gmail.com
bad4983b062a3eca63b98822110f9ac86a4fb4c4
6afae86a31a6d9a46874a58cefe42ec619374d4e
/app/src/main/java/org/tensorflow/lite/examples/classification/env/BorderedText.java
657ebf8b5cd33a7044dcad3ddf1e8d43cea186b2
[]
no_license
Techieali/tfliteAPP
557a4ae8d3fac07e37413ff70b92724dce0dfd12
942cb18d74d96ea2d0cc977fcc178476a5dcf124
refs/heads/main
2023-03-15T22:28:29.638197
2021-02-28T07:26:04
2021-02-28T07:26:04
342,790,568
0
0
null
null
null
null
UTF-8
Java
false
false
129
java
version https://git-lfs.github.com/spec/v1 oid sha256:753f014eccb1e8e55533ee7bd2739b720218b9b1d4675369dce74a9e87925dcb size 3720
[ "alimahroof09@gmail.com" ]
alimahroof09@gmail.com
96003a38ba9168cd262b9e67a046284e88320c15
a770e95028afb71f3b161d43648c347642819740
/sources/org/telegram/tgnet/TLRPC$TL_storage_fileGif.java
91fd9f2e3f81dc606298ead1b59fa7d1db40d58b
[]
no_license
Edicksonjga/TGDecompiledBeta
d7aa48a2b39bbaefd4752299620ff7b72b515c83
d1db6a445d5bed43c1dc8213fb8dbefd96f6c51b
refs/heads/master
2023-08-25T04:12:15.592281
2021-10-28T20:24:07
2021-10-28T20:24:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
290
java
package org.telegram.tgnet; public class TLRPC$TL_storage_fileGif extends TLRPC$storage_FileType { public static int constructor = -NUM; public void serializeToStream(AbstractSerializedData abstractSerializedData) { abstractSerializedData.writeInt32(constructor); } }
[ "fabian_pastor@msn.com" ]
fabian_pastor@msn.com
69d003dfa447729b1deacc6549d228722c9ff45f
02864049709e724be2b9666af90021ab276f3526
/Array/src/array/ArrayTrial4.java
008c193059826b4fe3b5336ec4320cce0c48921c
[]
no_license
selinaksx/Array
e0b1d274b5e8ad1c8800e767775f6645d0f120f3
bfb56bf839036684fe69f60d8f2f46895e171f4d
refs/heads/master
2022-05-07T19:07:40.775611
2017-01-29T06:58:53
2017-01-29T06:58:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
883
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 array; /** * * @author Shelin */ public class ArrayTrial4 { int nis[][] = {{210651},{210651},{210652}}; String nama [][] = {{"Harun Ulum"},{"Nur Azmi"},{"Devita Fahma"}}; public void tampil (String n){ System.out.println("Identitas Siswa Angkatan 24"); } public void namanis (int n){ for (int i=0; i<1; i++){ for(int j=0; j<1; j++){ System.out.println(nama[1][j]+":"+nis[1][j]); } } } public static void main (String[]args){ ArrayTrial4 siswa = new ArrayTrial4(); siswa.tampil(null); siswa.namanis(0); } }
[ "skusmiawati@gmail.com" ]
skusmiawati@gmail.com
5f718e79ba3f6194ce67b175f9f2ca849e8fff6b
4a29699bec8f6f844cbadd251fe59ddcd1219cd5
/iotwearable.gen/src/iotwearable/gen/Gen.java
51e9a67ca1b96a388c1856a0e5917168ff297cb0
[]
no_license
tonlongphuoc/DSL4Wearable
a54795dbfe8acb917b0be051854e89075e87b35c
b417893be575f73d286afb5800f55339c5879848
refs/heads/master
2020-03-11T22:57:23.484412
2018-04-20T04:24:28
2018-04-20T04:24:28
130,308,077
1
0
null
null
null
null
UTF-8
Java
false
false
1,363
java
package iotwearable.gen; import java.io.File; import java.io.IOException; import iotwearable.gen.analyzer.DevicesAnalyzer; import iotwearable.gen.analyzer.StateSchemaAnalyzer; import iotwearable.gen.formatter.Formatter; import iotwearable.model.iotw.Mainboard; import iotwearable.model.iotw.StateSchema; import iotwearable.utilities.FileUtils; public class Gen { private File mainboardFile; private File schemaFile; private String src = ""; public Gen(File mainboard, File schema) { this.mainboardFile = mainboard; this.schemaFile = schema; } public String run(){ Mainboard mainboard = ModelConverter.convertToMainboard(mainboardFile.getAbsolutePath()); StateSchema schema = ModelConverter.convertToStateSchema(schemaFile.getAbsolutePath()); if(mainboard == null || schema == null){ return src; } try { String path = this.getClass().getProtectionDomain().getCodeSource() .getLocation().getPath(); this.src = FileUtils.readFile(path+"/src/iotwearable/gen/IoTWApp.txt"); } catch (IOException e) { e.printStackTrace(); } DevicesAnalyzer ioAnalyzer = new DevicesAnalyzer(); StateSchemaAnalyzer schemaAnalyzer = new StateSchemaAnalyzer(schema, mainboard); src = ioAnalyzer.analyze(mainboard, src); src = schemaAnalyzer.analyze(src); src = CodeWriter.clean(src); src = Formatter.format(src); return src; } }
[ "tonlongphuocvn@gmail.com" ]
tonlongphuocvn@gmail.com
cd25b0ecb1c460f55e5d7237189c90427763b2df
50a6bd95f3070fc7caf4cfa9dfe1629749d68db4
/nl.finalist.liferay.lam.api/src/main/java/nl/finalist/liferay/lam/api/TagImpl.java
62939dac7502f7f68d45819b6d591cfa5e289ddd
[]
no_license
aschaeffer/liferay-lam
c0cd7b43d8f2524233f959e5069156c408113903
430c214b6d7f6ff51a2d29b09d89cd295ec99361
refs/heads/master
2022-04-22T14:34:13.465734
2018-03-28T13:09:57
2018-03-28T13:09:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,020
java
package nl.finalist.liferay.lam.api; import com.liferay.asset.kernel.model.AssetTag; import com.liferay.asset.kernel.service.AssetTagLocalService; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.model.Group; import com.liferay.portal.kernel.service.GroupLocalService; import com.liferay.portal.kernel.service.ServiceContext; import com.liferay.portal.kernel.util.Validator; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.Reference; @Component(immediate = true, service = Tag.class) public class TagImpl implements Tag { private static final Log LOG = LogFactoryUtil.getLog(TagImpl.class); @Reference AssetTagLocalService assetTagLocalService; @Reference private GroupLocalService groupLocalService; @Reference private DefaultValue defaultValue; @Override public void createTag(String name, String siteFriendlyURL) { long userId = defaultValue.getDefaultUserId(); long groupId = getGroupId(siteFriendlyURL); AssetTag tag = getAssetTagIfExists(name, groupId); if(Validator.isNull(tag)){ try { assetTagLocalService.addTag(userId, groupId, name, new ServiceContext()); LOG.info(String.format("Tag %s succesfully added.", name)); } catch (PortalException e) { LOG.error(String.format("PortalException while creating tag %s", name)+e); } } else{ LOG.info(String.format("Tag %s already exists.", name)); } } @Override public void deleteTag(String name, String siteFriendlyURL) { long groupId = getGroupId(siteFriendlyURL); AssetTag assetTag = getAssetTagIfExists(name, groupId); if(Validator.isNull(assetTag)){ LOG.info(String.format("Tag %s does not exist", name)); } else{ assetTagLocalService.deleteAssetTag(assetTag); LOG.info(String.format("Tag %s successfully deleted", name)); } } private AssetTag getAssetTagIfExists(String name, long groupId){ AssetTag tag = assetTagLocalService.fetchTag(groupId, name); return tag; } private long getGroupId(String siteFriendlyURL){ long companyId = defaultValue.getDefaultCompany().getCompanyId(); long groupId = defaultValue.getGlobalGroupId(); if(Validator.isNotNull(siteFriendlyURL) && !Validator.isBlank(siteFriendlyURL)){ Group group = groupLocalService.fetchFriendlyURLGroup(companyId, siteFriendlyURL); if(Validator.isNotNull(group)){ groupId = group.getGroupId(); } else{ LOG.error(String.format("Site %s can not be found, tag is added to or deleted from global group", siteFriendlyURL)); } } return groupId; } }
[ "danielle.ardon@gmail.com" ]
danielle.ardon@gmail.com
c8affb5baaf5980cab3fcf9862903caa1f13ed2c
bfc0f5f63d621bc7f830c80adff99ab1ae87acf3
/JavaWebDev/src/thirdWeek/rec/KorNameSplit.java
8e2ede084f4568646b44d9e53cbe6db3df9a68a1
[]
no_license
roqhdehd502/WebDev
2bebcff78b402d371f1f4c247d58845b13802f55
4bd0dc07a7f199739387f62f47b654a03c2aa256
refs/heads/main
2023-04-03T04:29:34.809722
2021-04-10T00:29:57
2021-04-10T00:29:57
324,692,125
2
1
null
null
null
null
UTF-8
Java
false
false
1,243
java
package thirdWeek.rec; import java.util.Scanner; public class KorNameSplit { private String name; public KorNameSplit() { } public KorNameSplit(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } private void inputName() { Scanner scanner = new Scanner(System.in); System.out.println("당신의 한글명을 띄어서 입력해주세요."); System.out.println("ex) 홍 길동"); System.out.print("입력: "); name = scanner.nextLine(); scanner.close(); } private static boolean isBlank(String name) { // 문자열 공백여부 검사 for (int i = 0; i < name.length(); i++) { if (name.charAt(i) == ' ') { return true; } } return false; // 공백이 없으면 false로 리턴 } private String firstName() { String[] nmeSplt = name.split(" "); return nmeSplt[1]; } private String lastName() { String[] nmeSplt = name.split(" "); return nmeSplt[0]; } public void user() { inputName(); if ((isBlank(name)) == false) { System.out.println("공백이 없군요. 다시 입력해주세요."); } else { System.out.println("성 = " + lastName() + ", 이름 = " + firstName()); } } }
[ "natorque5552@naver.com" ]
natorque5552@naver.com
2843bda350e6851b12c782614e7d5d603ad4b6d1
838dd559456dbc975e238caf19fa2017b3426997
/hg-generator/src/main/java/com/fxp/hg/model/PmsProductExample.java
94a25cb40a6c416b39abf858720ef7428b814b61
[]
no_license
xpfu/hg
0509113294a9cf4b40f2bc032f6d8c6bf2337f35
ea6d92633bbe276bd1085eff99fce30552aa4c7c
refs/heads/master
2022-06-21T19:46:47.609972
2020-01-02T10:37:19
2020-01-02T10:37:19
231,356,970
0
0
null
2022-06-21T02:33:41
2020-01-02T10:17:28
Java
UTF-8
Java
false
false
90,961
java
package com.fxp.hg.model; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; public class PmsProductExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public PmsProductExample() { oredCriteria = new ArrayList<Criteria>(); } 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<Criterion>(); } 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(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andBrandIdIsNull() { addCriterion("brand_id is null"); return (Criteria) this; } public Criteria andBrandIdIsNotNull() { addCriterion("brand_id is not null"); return (Criteria) this; } public Criteria andBrandIdEqualTo(Long value) { addCriterion("brand_id =", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdNotEqualTo(Long value) { addCriterion("brand_id <>", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdGreaterThan(Long value) { addCriterion("brand_id >", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdGreaterThanOrEqualTo(Long value) { addCriterion("brand_id >=", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdLessThan(Long value) { addCriterion("brand_id <", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdLessThanOrEqualTo(Long value) { addCriterion("brand_id <=", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdIn(List<Long> values) { addCriterion("brand_id in", values, "brandId"); return (Criteria) this; } public Criteria andBrandIdNotIn(List<Long> values) { addCriterion("brand_id not in", values, "brandId"); return (Criteria) this; } public Criteria andBrandIdBetween(Long value1, Long value2) { addCriterion("brand_id between", value1, value2, "brandId"); return (Criteria) this; } public Criteria andBrandIdNotBetween(Long value1, Long value2) { addCriterion("brand_id not between", value1, value2, "brandId"); return (Criteria) this; } public Criteria andProductCategoryIdIsNull() { addCriterion("product_category_id is null"); return (Criteria) this; } public Criteria andProductCategoryIdIsNotNull() { addCriterion("product_category_id is not null"); return (Criteria) this; } public Criteria andProductCategoryIdEqualTo(Long value) { addCriterion("product_category_id =", value, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdNotEqualTo(Long value) { addCriterion("product_category_id <>", value, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdGreaterThan(Long value) { addCriterion("product_category_id >", value, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdGreaterThanOrEqualTo(Long value) { addCriterion("product_category_id >=", value, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdLessThan(Long value) { addCriterion("product_category_id <", value, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdLessThanOrEqualTo(Long value) { addCriterion("product_category_id <=", value, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdIn(List<Long> values) { addCriterion("product_category_id in", values, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdNotIn(List<Long> values) { addCriterion("product_category_id not in", values, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdBetween(Long value1, Long value2) { addCriterion("product_category_id between", value1, value2, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdNotBetween(Long value1, Long value2) { addCriterion("product_category_id not between", value1, value2, "productCategoryId"); return (Criteria) this; } public Criteria andFeightTemplateIdIsNull() { addCriterion("feight_template_id is null"); return (Criteria) this; } public Criteria andFeightTemplateIdIsNotNull() { addCriterion("feight_template_id is not null"); return (Criteria) this; } public Criteria andFeightTemplateIdEqualTo(Long value) { addCriterion("feight_template_id =", value, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdNotEqualTo(Long value) { addCriterion("feight_template_id <>", value, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdGreaterThan(Long value) { addCriterion("feight_template_id >", value, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdGreaterThanOrEqualTo(Long value) { addCriterion("feight_template_id >=", value, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdLessThan(Long value) { addCriterion("feight_template_id <", value, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdLessThanOrEqualTo(Long value) { addCriterion("feight_template_id <=", value, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdIn(List<Long> values) { addCriterion("feight_template_id in", values, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdNotIn(List<Long> values) { addCriterion("feight_template_id not in", values, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdBetween(Long value1, Long value2) { addCriterion("feight_template_id between", value1, value2, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdNotBetween(Long value1, Long value2) { addCriterion("feight_template_id not between", value1, value2, "feightTemplateId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdIsNull() { addCriterion("product_attribute_category_id is null"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdIsNotNull() { addCriterion("product_attribute_category_id is not null"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdEqualTo(Long value) { addCriterion("product_attribute_category_id =", value, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdNotEqualTo(Long value) { addCriterion("product_attribute_category_id <>", value, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdGreaterThan(Long value) { addCriterion("product_attribute_category_id >", value, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdGreaterThanOrEqualTo(Long value) { addCriterion("product_attribute_category_id >=", value, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdLessThan(Long value) { addCriterion("product_attribute_category_id <", value, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdLessThanOrEqualTo(Long value) { addCriterion("product_attribute_category_id <=", value, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdIn(List<Long> values) { addCriterion("product_attribute_category_id in", values, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdNotIn(List<Long> values) { addCriterion("product_attribute_category_id not in", values, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdBetween(Long value1, Long value2) { addCriterion("product_attribute_category_id between", value1, value2, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdNotBetween(Long value1, Long value2) { addCriterion("product_attribute_category_id not between", value1, value2, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andNameIsNull() { addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List<String> values) { addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List<String> values) { addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } public Criteria andPicIsNull() { addCriterion("pic is null"); return (Criteria) this; } public Criteria andPicIsNotNull() { addCriterion("pic is not null"); return (Criteria) this; } public Criteria andPicEqualTo(String value) { addCriterion("pic =", value, "pic"); return (Criteria) this; } public Criteria andPicNotEqualTo(String value) { addCriterion("pic <>", value, "pic"); return (Criteria) this; } public Criteria andPicGreaterThan(String value) { addCriterion("pic >", value, "pic"); return (Criteria) this; } public Criteria andPicGreaterThanOrEqualTo(String value) { addCriterion("pic >=", value, "pic"); return (Criteria) this; } public Criteria andPicLessThan(String value) { addCriterion("pic <", value, "pic"); return (Criteria) this; } public Criteria andPicLessThanOrEqualTo(String value) { addCriterion("pic <=", value, "pic"); return (Criteria) this; } public Criteria andPicLike(String value) { addCriterion("pic like", value, "pic"); return (Criteria) this; } public Criteria andPicNotLike(String value) { addCriterion("pic not like", value, "pic"); return (Criteria) this; } public Criteria andPicIn(List<String> values) { addCriterion("pic in", values, "pic"); return (Criteria) this; } public Criteria andPicNotIn(List<String> values) { addCriterion("pic not in", values, "pic"); return (Criteria) this; } public Criteria andPicBetween(String value1, String value2) { addCriterion("pic between", value1, value2, "pic"); return (Criteria) this; } public Criteria andPicNotBetween(String value1, String value2) { addCriterion("pic not between", value1, value2, "pic"); return (Criteria) this; } public Criteria andProductSnIsNull() { addCriterion("product_sn is null"); return (Criteria) this; } public Criteria andProductSnIsNotNull() { addCriterion("product_sn is not null"); return (Criteria) this; } public Criteria andProductSnEqualTo(String value) { addCriterion("product_sn =", value, "productSn"); return (Criteria) this; } public Criteria andProductSnNotEqualTo(String value) { addCriterion("product_sn <>", value, "productSn"); return (Criteria) this; } public Criteria andProductSnGreaterThan(String value) { addCriterion("product_sn >", value, "productSn"); return (Criteria) this; } public Criteria andProductSnGreaterThanOrEqualTo(String value) { addCriterion("product_sn >=", value, "productSn"); return (Criteria) this; } public Criteria andProductSnLessThan(String value) { addCriterion("product_sn <", value, "productSn"); return (Criteria) this; } public Criteria andProductSnLessThanOrEqualTo(String value) { addCriterion("product_sn <=", value, "productSn"); return (Criteria) this; } public Criteria andProductSnLike(String value) { addCriterion("product_sn like", value, "productSn"); return (Criteria) this; } public Criteria andProductSnNotLike(String value) { addCriterion("product_sn not like", value, "productSn"); return (Criteria) this; } public Criteria andProductSnIn(List<String> values) { addCriterion("product_sn in", values, "productSn"); return (Criteria) this; } public Criteria andProductSnNotIn(List<String> values) { addCriterion("product_sn not in", values, "productSn"); return (Criteria) this; } public Criteria andProductSnBetween(String value1, String value2) { addCriterion("product_sn between", value1, value2, "productSn"); return (Criteria) this; } public Criteria andProductSnNotBetween(String value1, String value2) { addCriterion("product_sn not between", value1, value2, "productSn"); return (Criteria) this; } public Criteria andDeleteStatusIsNull() { addCriterion("delete_status is null"); return (Criteria) this; } public Criteria andDeleteStatusIsNotNull() { addCriterion("delete_status is not null"); return (Criteria) this; } public Criteria andDeleteStatusEqualTo(Integer value) { addCriterion("delete_status =", value, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusNotEqualTo(Integer value) { addCriterion("delete_status <>", value, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusGreaterThan(Integer value) { addCriterion("delete_status >", value, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusGreaterThanOrEqualTo(Integer value) { addCriterion("delete_status >=", value, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusLessThan(Integer value) { addCriterion("delete_status <", value, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusLessThanOrEqualTo(Integer value) { addCriterion("delete_status <=", value, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusIn(List<Integer> values) { addCriterion("delete_status in", values, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusNotIn(List<Integer> values) { addCriterion("delete_status not in", values, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusBetween(Integer value1, Integer value2) { addCriterion("delete_status between", value1, value2, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusNotBetween(Integer value1, Integer value2) { addCriterion("delete_status not between", value1, value2, "deleteStatus"); return (Criteria) this; } public Criteria andPublishStatusIsNull() { addCriterion("publish_status is null"); return (Criteria) this; } public Criteria andPublishStatusIsNotNull() { addCriterion("publish_status is not null"); return (Criteria) this; } public Criteria andPublishStatusEqualTo(Integer value) { addCriterion("publish_status =", value, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusNotEqualTo(Integer value) { addCriterion("publish_status <>", value, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusGreaterThan(Integer value) { addCriterion("publish_status >", value, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusGreaterThanOrEqualTo(Integer value) { addCriterion("publish_status >=", value, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusLessThan(Integer value) { addCriterion("publish_status <", value, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusLessThanOrEqualTo(Integer value) { addCriterion("publish_status <=", value, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusIn(List<Integer> values) { addCriterion("publish_status in", values, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusNotIn(List<Integer> values) { addCriterion("publish_status not in", values, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusBetween(Integer value1, Integer value2) { addCriterion("publish_status between", value1, value2, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusNotBetween(Integer value1, Integer value2) { addCriterion("publish_status not between", value1, value2, "publishStatus"); return (Criteria) this; } public Criteria andNewStatusIsNull() { addCriterion("new_status is null"); return (Criteria) this; } public Criteria andNewStatusIsNotNull() { addCriterion("new_status is not null"); return (Criteria) this; } public Criteria andNewStatusEqualTo(Integer value) { addCriterion("new_status =", value, "newStatus"); return (Criteria) this; } public Criteria andNewStatusNotEqualTo(Integer value) { addCriterion("new_status <>", value, "newStatus"); return (Criteria) this; } public Criteria andNewStatusGreaterThan(Integer value) { addCriterion("new_status >", value, "newStatus"); return (Criteria) this; } public Criteria andNewStatusGreaterThanOrEqualTo(Integer value) { addCriterion("new_status >=", value, "newStatus"); return (Criteria) this; } public Criteria andNewStatusLessThan(Integer value) { addCriterion("new_status <", value, "newStatus"); return (Criteria) this; } public Criteria andNewStatusLessThanOrEqualTo(Integer value) { addCriterion("new_status <=", value, "newStatus"); return (Criteria) this; } public Criteria andNewStatusIn(List<Integer> values) { addCriterion("new_status in", values, "newStatus"); return (Criteria) this; } public Criteria andNewStatusNotIn(List<Integer> values) { addCriterion("new_status not in", values, "newStatus"); return (Criteria) this; } public Criteria andNewStatusBetween(Integer value1, Integer value2) { addCriterion("new_status between", value1, value2, "newStatus"); return (Criteria) this; } public Criteria andNewStatusNotBetween(Integer value1, Integer value2) { addCriterion("new_status not between", value1, value2, "newStatus"); return (Criteria) this; } public Criteria andRecommandStatusIsNull() { addCriterion("recommand_status is null"); return (Criteria) this; } public Criteria andRecommandStatusIsNotNull() { addCriterion("recommand_status is not null"); return (Criteria) this; } public Criteria andRecommandStatusEqualTo(Integer value) { addCriterion("recommand_status =", value, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusNotEqualTo(Integer value) { addCriterion("recommand_status <>", value, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusGreaterThan(Integer value) { addCriterion("recommand_status >", value, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusGreaterThanOrEqualTo(Integer value) { addCriterion("recommand_status >=", value, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusLessThan(Integer value) { addCriterion("recommand_status <", value, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusLessThanOrEqualTo(Integer value) { addCriterion("recommand_status <=", value, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusIn(List<Integer> values) { addCriterion("recommand_status in", values, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusNotIn(List<Integer> values) { addCriterion("recommand_status not in", values, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusBetween(Integer value1, Integer value2) { addCriterion("recommand_status between", value1, value2, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusNotBetween(Integer value1, Integer value2) { addCriterion("recommand_status not between", value1, value2, "recommandStatus"); return (Criteria) this; } public Criteria andVerifyStatusIsNull() { addCriterion("verify_status is null"); return (Criteria) this; } public Criteria andVerifyStatusIsNotNull() { addCriterion("verify_status is not null"); return (Criteria) this; } public Criteria andVerifyStatusEqualTo(Integer value) { addCriterion("verify_status =", value, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusNotEqualTo(Integer value) { addCriterion("verify_status <>", value, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusGreaterThan(Integer value) { addCriterion("verify_status >", value, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusGreaterThanOrEqualTo(Integer value) { addCriterion("verify_status >=", value, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusLessThan(Integer value) { addCriterion("verify_status <", value, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusLessThanOrEqualTo(Integer value) { addCriterion("verify_status <=", value, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusIn(List<Integer> values) { addCriterion("verify_status in", values, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusNotIn(List<Integer> values) { addCriterion("verify_status not in", values, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusBetween(Integer value1, Integer value2) { addCriterion("verify_status between", value1, value2, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusNotBetween(Integer value1, Integer value2) { addCriterion("verify_status not between", value1, value2, "verifyStatus"); return (Criteria) this; } public Criteria andSortIsNull() { addCriterion("sort is null"); return (Criteria) this; } public Criteria andSortIsNotNull() { addCriterion("sort is not null"); return (Criteria) this; } public Criteria andSortEqualTo(Integer value) { addCriterion("sort =", value, "sort"); return (Criteria) this; } public Criteria andSortNotEqualTo(Integer value) { addCriterion("sort <>", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThan(Integer value) { addCriterion("sort >", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThanOrEqualTo(Integer value) { addCriterion("sort >=", value, "sort"); return (Criteria) this; } public Criteria andSortLessThan(Integer value) { addCriterion("sort <", value, "sort"); return (Criteria) this; } public Criteria andSortLessThanOrEqualTo(Integer value) { addCriterion("sort <=", value, "sort"); return (Criteria) this; } public Criteria andSortIn(List<Integer> values) { addCriterion("sort in", values, "sort"); return (Criteria) this; } public Criteria andSortNotIn(List<Integer> values) { addCriterion("sort not in", values, "sort"); return (Criteria) this; } public Criteria andSortBetween(Integer value1, Integer value2) { addCriterion("sort between", value1, value2, "sort"); return (Criteria) this; } public Criteria andSortNotBetween(Integer value1, Integer value2) { addCriterion("sort not between", value1, value2, "sort"); return (Criteria) this; } public Criteria andSaleIsNull() { addCriterion("sale is null"); return (Criteria) this; } public Criteria andSaleIsNotNull() { addCriterion("sale is not null"); return (Criteria) this; } public Criteria andSaleEqualTo(Integer value) { addCriterion("sale =", value, "sale"); return (Criteria) this; } public Criteria andSaleNotEqualTo(Integer value) { addCriterion("sale <>", value, "sale"); return (Criteria) this; } public Criteria andSaleGreaterThan(Integer value) { addCriterion("sale >", value, "sale"); return (Criteria) this; } public Criteria andSaleGreaterThanOrEqualTo(Integer value) { addCriterion("sale >=", value, "sale"); return (Criteria) this; } public Criteria andSaleLessThan(Integer value) { addCriterion("sale <", value, "sale"); return (Criteria) this; } public Criteria andSaleLessThanOrEqualTo(Integer value) { addCriterion("sale <=", value, "sale"); return (Criteria) this; } public Criteria andSaleIn(List<Integer> values) { addCriterion("sale in", values, "sale"); return (Criteria) this; } public Criteria andSaleNotIn(List<Integer> values) { addCriterion("sale not in", values, "sale"); return (Criteria) this; } public Criteria andSaleBetween(Integer value1, Integer value2) { addCriterion("sale between", value1, value2, "sale"); return (Criteria) this; } public Criteria andSaleNotBetween(Integer value1, Integer value2) { addCriterion("sale not between", value1, value2, "sale"); return (Criteria) this; } public Criteria andPriceIsNull() { addCriterion("price is null"); return (Criteria) this; } public Criteria andPriceIsNotNull() { addCriterion("price is not null"); return (Criteria) this; } public Criteria andPriceEqualTo(BigDecimal value) { addCriterion("price =", value, "price"); return (Criteria) this; } public Criteria andPriceNotEqualTo(BigDecimal value) { addCriterion("price <>", value, "price"); return (Criteria) this; } public Criteria andPriceGreaterThan(BigDecimal value) { addCriterion("price >", value, "price"); return (Criteria) this; } public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) { addCriterion("price >=", value, "price"); return (Criteria) this; } public Criteria andPriceLessThan(BigDecimal value) { addCriterion("price <", value, "price"); return (Criteria) this; } public Criteria andPriceLessThanOrEqualTo(BigDecimal value) { addCriterion("price <=", value, "price"); return (Criteria) this; } public Criteria andPriceIn(List<BigDecimal> values) { addCriterion("price in", values, "price"); return (Criteria) this; } public Criteria andPriceNotIn(List<BigDecimal> values) { addCriterion("price not in", values, "price"); return (Criteria) this; } public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) { addCriterion("price between", value1, value2, "price"); return (Criteria) this; } public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("price not between", value1, value2, "price"); return (Criteria) this; } public Criteria andPromotionPriceIsNull() { addCriterion("promotion_price is null"); return (Criteria) this; } public Criteria andPromotionPriceIsNotNull() { addCriterion("promotion_price is not null"); return (Criteria) this; } public Criteria andPromotionPriceEqualTo(BigDecimal value) { addCriterion("promotion_price =", value, "promotionPrice"); return (Criteria) this; } public Criteria andPromotionPriceNotEqualTo(BigDecimal value) { addCriterion("promotion_price <>", value, "promotionPrice"); return (Criteria) this; } public Criteria andPromotionPriceGreaterThan(BigDecimal value) { addCriterion("promotion_price >", value, "promotionPrice"); return (Criteria) this; } public Criteria andPromotionPriceGreaterThanOrEqualTo(BigDecimal value) { addCriterion("promotion_price >=", value, "promotionPrice"); return (Criteria) this; } public Criteria andPromotionPriceLessThan(BigDecimal value) { addCriterion("promotion_price <", value, "promotionPrice"); return (Criteria) this; } public Criteria andPromotionPriceLessThanOrEqualTo(BigDecimal value) { addCriterion("promotion_price <=", value, "promotionPrice"); return (Criteria) this; } public Criteria andPromotionPriceIn(List<BigDecimal> values) { addCriterion("promotion_price in", values, "promotionPrice"); return (Criteria) this; } public Criteria andPromotionPriceNotIn(List<BigDecimal> values) { addCriterion("promotion_price not in", values, "promotionPrice"); return (Criteria) this; } public Criteria andPromotionPriceBetween(BigDecimal value1, BigDecimal value2) { addCriterion("promotion_price between", value1, value2, "promotionPrice"); return (Criteria) this; } public Criteria andPromotionPriceNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("promotion_price not between", value1, value2, "promotionPrice"); return (Criteria) this; } public Criteria andGiftGrowthIsNull() { addCriterion("gift_growth is null"); return (Criteria) this; } public Criteria andGiftGrowthIsNotNull() { addCriterion("gift_growth is not null"); return (Criteria) this; } public Criteria andGiftGrowthEqualTo(Integer value) { addCriterion("gift_growth =", value, "giftGrowth"); return (Criteria) this; } public Criteria andGiftGrowthNotEqualTo(Integer value) { addCriterion("gift_growth <>", value, "giftGrowth"); return (Criteria) this; } public Criteria andGiftGrowthGreaterThan(Integer value) { addCriterion("gift_growth >", value, "giftGrowth"); return (Criteria) this; } public Criteria andGiftGrowthGreaterThanOrEqualTo(Integer value) { addCriterion("gift_growth >=", value, "giftGrowth"); return (Criteria) this; } public Criteria andGiftGrowthLessThan(Integer value) { addCriterion("gift_growth <", value, "giftGrowth"); return (Criteria) this; } public Criteria andGiftGrowthLessThanOrEqualTo(Integer value) { addCriterion("gift_growth <=", value, "giftGrowth"); return (Criteria) this; } public Criteria andGiftGrowthIn(List<Integer> values) { addCriterion("gift_growth in", values, "giftGrowth"); return (Criteria) this; } public Criteria andGiftGrowthNotIn(List<Integer> values) { addCriterion("gift_growth not in", values, "giftGrowth"); return (Criteria) this; } public Criteria andGiftGrowthBetween(Integer value1, Integer value2) { addCriterion("gift_growth between", value1, value2, "giftGrowth"); return (Criteria) this; } public Criteria andGiftGrowthNotBetween(Integer value1, Integer value2) { addCriterion("gift_growth not between", value1, value2, "giftGrowth"); return (Criteria) this; } public Criteria andGiftPointIsNull() { addCriterion("gift_point is null"); return (Criteria) this; } public Criteria andGiftPointIsNotNull() { addCriterion("gift_point is not null"); return (Criteria) this; } public Criteria andGiftPointEqualTo(Integer value) { addCriterion("gift_point =", value, "giftPoint"); return (Criteria) this; } public Criteria andGiftPointNotEqualTo(Integer value) { addCriterion("gift_point <>", value, "giftPoint"); return (Criteria) this; } public Criteria andGiftPointGreaterThan(Integer value) { addCriterion("gift_point >", value, "giftPoint"); return (Criteria) this; } public Criteria andGiftPointGreaterThanOrEqualTo(Integer value) { addCriterion("gift_point >=", value, "giftPoint"); return (Criteria) this; } public Criteria andGiftPointLessThan(Integer value) { addCriterion("gift_point <", value, "giftPoint"); return (Criteria) this; } public Criteria andGiftPointLessThanOrEqualTo(Integer value) { addCriterion("gift_point <=", value, "giftPoint"); return (Criteria) this; } public Criteria andGiftPointIn(List<Integer> values) { addCriterion("gift_point in", values, "giftPoint"); return (Criteria) this; } public Criteria andGiftPointNotIn(List<Integer> values) { addCriterion("gift_point not in", values, "giftPoint"); return (Criteria) this; } public Criteria andGiftPointBetween(Integer value1, Integer value2) { addCriterion("gift_point between", value1, value2, "giftPoint"); return (Criteria) this; } public Criteria andGiftPointNotBetween(Integer value1, Integer value2) { addCriterion("gift_point not between", value1, value2, "giftPoint"); return (Criteria) this; } public Criteria andUsePointLimitIsNull() { addCriterion("use_point_limit is null"); return (Criteria) this; } public Criteria andUsePointLimitIsNotNull() { addCriterion("use_point_limit is not null"); return (Criteria) this; } public Criteria andUsePointLimitEqualTo(Integer value) { addCriterion("use_point_limit =", value, "usePointLimit"); return (Criteria) this; } public Criteria andUsePointLimitNotEqualTo(Integer value) { addCriterion("use_point_limit <>", value, "usePointLimit"); return (Criteria) this; } public Criteria andUsePointLimitGreaterThan(Integer value) { addCriterion("use_point_limit >", value, "usePointLimit"); return (Criteria) this; } public Criteria andUsePointLimitGreaterThanOrEqualTo(Integer value) { addCriterion("use_point_limit >=", value, "usePointLimit"); return (Criteria) this; } public Criteria andUsePointLimitLessThan(Integer value) { addCriterion("use_point_limit <", value, "usePointLimit"); return (Criteria) this; } public Criteria andUsePointLimitLessThanOrEqualTo(Integer value) { addCriterion("use_point_limit <=", value, "usePointLimit"); return (Criteria) this; } public Criteria andUsePointLimitIn(List<Integer> values) { addCriterion("use_point_limit in", values, "usePointLimit"); return (Criteria) this; } public Criteria andUsePointLimitNotIn(List<Integer> values) { addCriterion("use_point_limit not in", values, "usePointLimit"); return (Criteria) this; } public Criteria andUsePointLimitBetween(Integer value1, Integer value2) { addCriterion("use_point_limit between", value1, value2, "usePointLimit"); return (Criteria) this; } public Criteria andUsePointLimitNotBetween(Integer value1, Integer value2) { addCriterion("use_point_limit not between", value1, value2, "usePointLimit"); return (Criteria) this; } public Criteria andSubTitleIsNull() { addCriterion("sub_title is null"); return (Criteria) this; } public Criteria andSubTitleIsNotNull() { addCriterion("sub_title is not null"); return (Criteria) this; } public Criteria andSubTitleEqualTo(String value) { addCriterion("sub_title =", value, "subTitle"); return (Criteria) this; } public Criteria andSubTitleNotEqualTo(String value) { addCriterion("sub_title <>", value, "subTitle"); return (Criteria) this; } public Criteria andSubTitleGreaterThan(String value) { addCriterion("sub_title >", value, "subTitle"); return (Criteria) this; } public Criteria andSubTitleGreaterThanOrEqualTo(String value) { addCriterion("sub_title >=", value, "subTitle"); return (Criteria) this; } public Criteria andSubTitleLessThan(String value) { addCriterion("sub_title <", value, "subTitle"); return (Criteria) this; } public Criteria andSubTitleLessThanOrEqualTo(String value) { addCriterion("sub_title <=", value, "subTitle"); return (Criteria) this; } public Criteria andSubTitleLike(String value) { addCriterion("sub_title like", value, "subTitle"); return (Criteria) this; } public Criteria andSubTitleNotLike(String value) { addCriterion("sub_title not like", value, "subTitle"); return (Criteria) this; } public Criteria andSubTitleIn(List<String> values) { addCriterion("sub_title in", values, "subTitle"); return (Criteria) this; } public Criteria andSubTitleNotIn(List<String> values) { addCriterion("sub_title not in", values, "subTitle"); return (Criteria) this; } public Criteria andSubTitleBetween(String value1, String value2) { addCriterion("sub_title between", value1, value2, "subTitle"); return (Criteria) this; } public Criteria andSubTitleNotBetween(String value1, String value2) { addCriterion("sub_title not between", value1, value2, "subTitle"); return (Criteria) this; } public Criteria andOriginalPriceIsNull() { addCriterion("original_price is null"); return (Criteria) this; } public Criteria andOriginalPriceIsNotNull() { addCriterion("original_price is not null"); return (Criteria) this; } public Criteria andOriginalPriceEqualTo(BigDecimal value) { addCriterion("original_price =", value, "originalPrice"); return (Criteria) this; } public Criteria andOriginalPriceNotEqualTo(BigDecimal value) { addCriterion("original_price <>", value, "originalPrice"); return (Criteria) this; } public Criteria andOriginalPriceGreaterThan(BigDecimal value) { addCriterion("original_price >", value, "originalPrice"); return (Criteria) this; } public Criteria andOriginalPriceGreaterThanOrEqualTo(BigDecimal value) { addCriterion("original_price >=", value, "originalPrice"); return (Criteria) this; } public Criteria andOriginalPriceLessThan(BigDecimal value) { addCriterion("original_price <", value, "originalPrice"); return (Criteria) this; } public Criteria andOriginalPriceLessThanOrEqualTo(BigDecimal value) { addCriterion("original_price <=", value, "originalPrice"); return (Criteria) this; } public Criteria andOriginalPriceIn(List<BigDecimal> values) { addCriterion("original_price in", values, "originalPrice"); return (Criteria) this; } public Criteria andOriginalPriceNotIn(List<BigDecimal> values) { addCriterion("original_price not in", values, "originalPrice"); return (Criteria) this; } public Criteria andOriginalPriceBetween(BigDecimal value1, BigDecimal value2) { addCriterion("original_price between", value1, value2, "originalPrice"); return (Criteria) this; } public Criteria andOriginalPriceNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("original_price not between", value1, value2, "originalPrice"); return (Criteria) this; } public Criteria andStockIsNull() { addCriterion("stock is null"); return (Criteria) this; } public Criteria andStockIsNotNull() { addCriterion("stock is not null"); return (Criteria) this; } public Criteria andStockEqualTo(Integer value) { addCriterion("stock =", value, "stock"); return (Criteria) this; } public Criteria andStockNotEqualTo(Integer value) { addCriterion("stock <>", value, "stock"); return (Criteria) this; } public Criteria andStockGreaterThan(Integer value) { addCriterion("stock >", value, "stock"); return (Criteria) this; } public Criteria andStockGreaterThanOrEqualTo(Integer value) { addCriterion("stock >=", value, "stock"); return (Criteria) this; } public Criteria andStockLessThan(Integer value) { addCriterion("stock <", value, "stock"); return (Criteria) this; } public Criteria andStockLessThanOrEqualTo(Integer value) { addCriterion("stock <=", value, "stock"); return (Criteria) this; } public Criteria andStockIn(List<Integer> values) { addCriterion("stock in", values, "stock"); return (Criteria) this; } public Criteria andStockNotIn(List<Integer> values) { addCriterion("stock not in", values, "stock"); return (Criteria) this; } public Criteria andStockBetween(Integer value1, Integer value2) { addCriterion("stock between", value1, value2, "stock"); return (Criteria) this; } public Criteria andStockNotBetween(Integer value1, Integer value2) { addCriterion("stock not between", value1, value2, "stock"); return (Criteria) this; } public Criteria andLowStockIsNull() { addCriterion("low_stock is null"); return (Criteria) this; } public Criteria andLowStockIsNotNull() { addCriterion("low_stock is not null"); return (Criteria) this; } public Criteria andLowStockEqualTo(Integer value) { addCriterion("low_stock =", value, "lowStock"); return (Criteria) this; } public Criteria andLowStockNotEqualTo(Integer value) { addCriterion("low_stock <>", value, "lowStock"); return (Criteria) this; } public Criteria andLowStockGreaterThan(Integer value) { addCriterion("low_stock >", value, "lowStock"); return (Criteria) this; } public Criteria andLowStockGreaterThanOrEqualTo(Integer value) { addCriterion("low_stock >=", value, "lowStock"); return (Criteria) this; } public Criteria andLowStockLessThan(Integer value) { addCriterion("low_stock <", value, "lowStock"); return (Criteria) this; } public Criteria andLowStockLessThanOrEqualTo(Integer value) { addCriterion("low_stock <=", value, "lowStock"); return (Criteria) this; } public Criteria andLowStockIn(List<Integer> values) { addCriterion("low_stock in", values, "lowStock"); return (Criteria) this; } public Criteria andLowStockNotIn(List<Integer> values) { addCriterion("low_stock not in", values, "lowStock"); return (Criteria) this; } public Criteria andLowStockBetween(Integer value1, Integer value2) { addCriterion("low_stock between", value1, value2, "lowStock"); return (Criteria) this; } public Criteria andLowStockNotBetween(Integer value1, Integer value2) { addCriterion("low_stock not between", value1, value2, "lowStock"); return (Criteria) this; } public Criteria andUnitIsNull() { addCriterion("unit is null"); return (Criteria) this; } public Criteria andUnitIsNotNull() { addCriterion("unit is not null"); return (Criteria) this; } public Criteria andUnitEqualTo(String value) { addCriterion("unit =", value, "unit"); return (Criteria) this; } public Criteria andUnitNotEqualTo(String value) { addCriterion("unit <>", value, "unit"); return (Criteria) this; } public Criteria andUnitGreaterThan(String value) { addCriterion("unit >", value, "unit"); return (Criteria) this; } public Criteria andUnitGreaterThanOrEqualTo(String value) { addCriterion("unit >=", value, "unit"); return (Criteria) this; } public Criteria andUnitLessThan(String value) { addCriterion("unit <", value, "unit"); return (Criteria) this; } public Criteria andUnitLessThanOrEqualTo(String value) { addCriterion("unit <=", value, "unit"); return (Criteria) this; } public Criteria andUnitLike(String value) { addCriterion("unit like", value, "unit"); return (Criteria) this; } public Criteria andUnitNotLike(String value) { addCriterion("unit not like", value, "unit"); return (Criteria) this; } public Criteria andUnitIn(List<String> values) { addCriterion("unit in", values, "unit"); return (Criteria) this; } public Criteria andUnitNotIn(List<String> values) { addCriterion("unit not in", values, "unit"); return (Criteria) this; } public Criteria andUnitBetween(String value1, String value2) { addCriterion("unit between", value1, value2, "unit"); return (Criteria) this; } public Criteria andUnitNotBetween(String value1, String value2) { addCriterion("unit not between", value1, value2, "unit"); return (Criteria) this; } public Criteria andWeightIsNull() { addCriterion("weight is null"); return (Criteria) this; } public Criteria andWeightIsNotNull() { addCriterion("weight is not null"); return (Criteria) this; } public Criteria andWeightEqualTo(BigDecimal value) { addCriterion("weight =", value, "weight"); return (Criteria) this; } public Criteria andWeightNotEqualTo(BigDecimal value) { addCriterion("weight <>", value, "weight"); return (Criteria) this; } public Criteria andWeightGreaterThan(BigDecimal value) { addCriterion("weight >", value, "weight"); return (Criteria) this; } public Criteria andWeightGreaterThanOrEqualTo(BigDecimal value) { addCriterion("weight >=", value, "weight"); return (Criteria) this; } public Criteria andWeightLessThan(BigDecimal value) { addCriterion("weight <", value, "weight"); return (Criteria) this; } public Criteria andWeightLessThanOrEqualTo(BigDecimal value) { addCriterion("weight <=", value, "weight"); return (Criteria) this; } public Criteria andWeightIn(List<BigDecimal> values) { addCriterion("weight in", values, "weight"); return (Criteria) this; } public Criteria andWeightNotIn(List<BigDecimal> values) { addCriterion("weight not in", values, "weight"); return (Criteria) this; } public Criteria andWeightBetween(BigDecimal value1, BigDecimal value2) { addCriterion("weight between", value1, value2, "weight"); return (Criteria) this; } public Criteria andWeightNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("weight not between", value1, value2, "weight"); return (Criteria) this; } public Criteria andPreviewStatusIsNull() { addCriterion("preview_status is null"); return (Criteria) this; } public Criteria andPreviewStatusIsNotNull() { addCriterion("preview_status is not null"); return (Criteria) this; } public Criteria andPreviewStatusEqualTo(Integer value) { addCriterion("preview_status =", value, "previewStatus"); return (Criteria) this; } public Criteria andPreviewStatusNotEqualTo(Integer value) { addCriterion("preview_status <>", value, "previewStatus"); return (Criteria) this; } public Criteria andPreviewStatusGreaterThan(Integer value) { addCriterion("preview_status >", value, "previewStatus"); return (Criteria) this; } public Criteria andPreviewStatusGreaterThanOrEqualTo(Integer value) { addCriterion("preview_status >=", value, "previewStatus"); return (Criteria) this; } public Criteria andPreviewStatusLessThan(Integer value) { addCriterion("preview_status <", value, "previewStatus"); return (Criteria) this; } public Criteria andPreviewStatusLessThanOrEqualTo(Integer value) { addCriterion("preview_status <=", value, "previewStatus"); return (Criteria) this; } public Criteria andPreviewStatusIn(List<Integer> values) { addCriterion("preview_status in", values, "previewStatus"); return (Criteria) this; } public Criteria andPreviewStatusNotIn(List<Integer> values) { addCriterion("preview_status not in", values, "previewStatus"); return (Criteria) this; } public Criteria andPreviewStatusBetween(Integer value1, Integer value2) { addCriterion("preview_status between", value1, value2, "previewStatus"); return (Criteria) this; } public Criteria andPreviewStatusNotBetween(Integer value1, Integer value2) { addCriterion("preview_status not between", value1, value2, "previewStatus"); return (Criteria) this; } public Criteria andServiceIdsIsNull() { addCriterion("service_ids is null"); return (Criteria) this; } public Criteria andServiceIdsIsNotNull() { addCriterion("service_ids is not null"); return (Criteria) this; } public Criteria andServiceIdsEqualTo(String value) { addCriterion("service_ids =", value, "serviceIds"); return (Criteria) this; } public Criteria andServiceIdsNotEqualTo(String value) { addCriterion("service_ids <>", value, "serviceIds"); return (Criteria) this; } public Criteria andServiceIdsGreaterThan(String value) { addCriterion("service_ids >", value, "serviceIds"); return (Criteria) this; } public Criteria andServiceIdsGreaterThanOrEqualTo(String value) { addCriterion("service_ids >=", value, "serviceIds"); return (Criteria) this; } public Criteria andServiceIdsLessThan(String value) { addCriterion("service_ids <", value, "serviceIds"); return (Criteria) this; } public Criteria andServiceIdsLessThanOrEqualTo(String value) { addCriterion("service_ids <=", value, "serviceIds"); return (Criteria) this; } public Criteria andServiceIdsLike(String value) { addCriterion("service_ids like", value, "serviceIds"); return (Criteria) this; } public Criteria andServiceIdsNotLike(String value) { addCriterion("service_ids not like", value, "serviceIds"); return (Criteria) this; } public Criteria andServiceIdsIn(List<String> values) { addCriterion("service_ids in", values, "serviceIds"); return (Criteria) this; } public Criteria andServiceIdsNotIn(List<String> values) { addCriterion("service_ids not in", values, "serviceIds"); return (Criteria) this; } public Criteria andServiceIdsBetween(String value1, String value2) { addCriterion("service_ids between", value1, value2, "serviceIds"); return (Criteria) this; } public Criteria andServiceIdsNotBetween(String value1, String value2) { addCriterion("service_ids not between", value1, value2, "serviceIds"); return (Criteria) this; } public Criteria andKeywordsIsNull() { addCriterion("keywords is null"); return (Criteria) this; } public Criteria andKeywordsIsNotNull() { addCriterion("keywords is not null"); return (Criteria) this; } public Criteria andKeywordsEqualTo(String value) { addCriterion("keywords =", value, "keywords"); return (Criteria) this; } public Criteria andKeywordsNotEqualTo(String value) { addCriterion("keywords <>", value, "keywords"); return (Criteria) this; } public Criteria andKeywordsGreaterThan(String value) { addCriterion("keywords >", value, "keywords"); return (Criteria) this; } public Criteria andKeywordsGreaterThanOrEqualTo(String value) { addCriterion("keywords >=", value, "keywords"); return (Criteria) this; } public Criteria andKeywordsLessThan(String value) { addCriterion("keywords <", value, "keywords"); return (Criteria) this; } public Criteria andKeywordsLessThanOrEqualTo(String value) { addCriterion("keywords <=", value, "keywords"); return (Criteria) this; } public Criteria andKeywordsLike(String value) { addCriterion("keywords like", value, "keywords"); return (Criteria) this; } public Criteria andKeywordsNotLike(String value) { addCriterion("keywords not like", value, "keywords"); return (Criteria) this; } public Criteria andKeywordsIn(List<String> values) { addCriterion("keywords in", values, "keywords"); return (Criteria) this; } public Criteria andKeywordsNotIn(List<String> values) { addCriterion("keywords not in", values, "keywords"); return (Criteria) this; } public Criteria andKeywordsBetween(String value1, String value2) { addCriterion("keywords between", value1, value2, "keywords"); return (Criteria) this; } public Criteria andKeywordsNotBetween(String value1, String value2) { addCriterion("keywords not between", value1, value2, "keywords"); return (Criteria) this; } public Criteria andNoteIsNull() { addCriterion("note is null"); return (Criteria) this; } public Criteria andNoteIsNotNull() { addCriterion("note is not null"); return (Criteria) this; } public Criteria andNoteEqualTo(String value) { addCriterion("note =", value, "note"); return (Criteria) this; } public Criteria andNoteNotEqualTo(String value) { addCriterion("note <>", value, "note"); return (Criteria) this; } public Criteria andNoteGreaterThan(String value) { addCriterion("note >", value, "note"); return (Criteria) this; } public Criteria andNoteGreaterThanOrEqualTo(String value) { addCriterion("note >=", value, "note"); return (Criteria) this; } public Criteria andNoteLessThan(String value) { addCriterion("note <", value, "note"); return (Criteria) this; } public Criteria andNoteLessThanOrEqualTo(String value) { addCriterion("note <=", value, "note"); return (Criteria) this; } public Criteria andNoteLike(String value) { addCriterion("note like", value, "note"); return (Criteria) this; } public Criteria andNoteNotLike(String value) { addCriterion("note not like", value, "note"); return (Criteria) this; } public Criteria andNoteIn(List<String> values) { addCriterion("note in", values, "note"); return (Criteria) this; } public Criteria andNoteNotIn(List<String> values) { addCriterion("note not in", values, "note"); return (Criteria) this; } public Criteria andNoteBetween(String value1, String value2) { addCriterion("note between", value1, value2, "note"); return (Criteria) this; } public Criteria andNoteNotBetween(String value1, String value2) { addCriterion("note not between", value1, value2, "note"); return (Criteria) this; } public Criteria andAlbumPicsIsNull() { addCriterion("album_pics is null"); return (Criteria) this; } public Criteria andAlbumPicsIsNotNull() { addCriterion("album_pics is not null"); return (Criteria) this; } public Criteria andAlbumPicsEqualTo(String value) { addCriterion("album_pics =", value, "albumPics"); return (Criteria) this; } public Criteria andAlbumPicsNotEqualTo(String value) { addCriterion("album_pics <>", value, "albumPics"); return (Criteria) this; } public Criteria andAlbumPicsGreaterThan(String value) { addCriterion("album_pics >", value, "albumPics"); return (Criteria) this; } public Criteria andAlbumPicsGreaterThanOrEqualTo(String value) { addCriterion("album_pics >=", value, "albumPics"); return (Criteria) this; } public Criteria andAlbumPicsLessThan(String value) { addCriterion("album_pics <", value, "albumPics"); return (Criteria) this; } public Criteria andAlbumPicsLessThanOrEqualTo(String value) { addCriterion("album_pics <=", value, "albumPics"); return (Criteria) this; } public Criteria andAlbumPicsLike(String value) { addCriterion("album_pics like", value, "albumPics"); return (Criteria) this; } public Criteria andAlbumPicsNotLike(String value) { addCriterion("album_pics not like", value, "albumPics"); return (Criteria) this; } public Criteria andAlbumPicsIn(List<String> values) { addCriterion("album_pics in", values, "albumPics"); return (Criteria) this; } public Criteria andAlbumPicsNotIn(List<String> values) { addCriterion("album_pics not in", values, "albumPics"); return (Criteria) this; } public Criteria andAlbumPicsBetween(String value1, String value2) { addCriterion("album_pics between", value1, value2, "albumPics"); return (Criteria) this; } public Criteria andAlbumPicsNotBetween(String value1, String value2) { addCriterion("album_pics not between", value1, value2, "albumPics"); return (Criteria) this; } public Criteria andDetailTitleIsNull() { addCriterion("detail_title is null"); return (Criteria) this; } public Criteria andDetailTitleIsNotNull() { addCriterion("detail_title is not null"); return (Criteria) this; } public Criteria andDetailTitleEqualTo(String value) { addCriterion("detail_title =", value, "detailTitle"); return (Criteria) this; } public Criteria andDetailTitleNotEqualTo(String value) { addCriterion("detail_title <>", value, "detailTitle"); return (Criteria) this; } public Criteria andDetailTitleGreaterThan(String value) { addCriterion("detail_title >", value, "detailTitle"); return (Criteria) this; } public Criteria andDetailTitleGreaterThanOrEqualTo(String value) { addCriterion("detail_title >=", value, "detailTitle"); return (Criteria) this; } public Criteria andDetailTitleLessThan(String value) { addCriterion("detail_title <", value, "detailTitle"); return (Criteria) this; } public Criteria andDetailTitleLessThanOrEqualTo(String value) { addCriterion("detail_title <=", value, "detailTitle"); return (Criteria) this; } public Criteria andDetailTitleLike(String value) { addCriterion("detail_title like", value, "detailTitle"); return (Criteria) this; } public Criteria andDetailTitleNotLike(String value) { addCriterion("detail_title not like", value, "detailTitle"); return (Criteria) this; } public Criteria andDetailTitleIn(List<String> values) { addCriterion("detail_title in", values, "detailTitle"); return (Criteria) this; } public Criteria andDetailTitleNotIn(List<String> values) { addCriterion("detail_title not in", values, "detailTitle"); return (Criteria) this; } public Criteria andDetailTitleBetween(String value1, String value2) { addCriterion("detail_title between", value1, value2, "detailTitle"); return (Criteria) this; } public Criteria andDetailTitleNotBetween(String value1, String value2) { addCriterion("detail_title not between", value1, value2, "detailTitle"); return (Criteria) this; } public Criteria andPromotionStartTimeIsNull() { addCriterion("promotion_start_time is null"); return (Criteria) this; } public Criteria andPromotionStartTimeIsNotNull() { addCriterion("promotion_start_time is not null"); return (Criteria) this; } public Criteria andPromotionStartTimeEqualTo(Date value) { addCriterion("promotion_start_time =", value, "promotionStartTime"); return (Criteria) this; } public Criteria andPromotionStartTimeNotEqualTo(Date value) { addCriterion("promotion_start_time <>", value, "promotionStartTime"); return (Criteria) this; } public Criteria andPromotionStartTimeGreaterThan(Date value) { addCriterion("promotion_start_time >", value, "promotionStartTime"); return (Criteria) this; } public Criteria andPromotionStartTimeGreaterThanOrEqualTo(Date value) { addCriterion("promotion_start_time >=", value, "promotionStartTime"); return (Criteria) this; } public Criteria andPromotionStartTimeLessThan(Date value) { addCriterion("promotion_start_time <", value, "promotionStartTime"); return (Criteria) this; } public Criteria andPromotionStartTimeLessThanOrEqualTo(Date value) { addCriterion("promotion_start_time <=", value, "promotionStartTime"); return (Criteria) this; } public Criteria andPromotionStartTimeIn(List<Date> values) { addCriterion("promotion_start_time in", values, "promotionStartTime"); return (Criteria) this; } public Criteria andPromotionStartTimeNotIn(List<Date> values) { addCriterion("promotion_start_time not in", values, "promotionStartTime"); return (Criteria) this; } public Criteria andPromotionStartTimeBetween(Date value1, Date value2) { addCriterion("promotion_start_time between", value1, value2, "promotionStartTime"); return (Criteria) this; } public Criteria andPromotionStartTimeNotBetween(Date value1, Date value2) { addCriterion("promotion_start_time not between", value1, value2, "promotionStartTime"); return (Criteria) this; } public Criteria andPromotionEndTimeIsNull() { addCriterion("promotion_end_time is null"); return (Criteria) this; } public Criteria andPromotionEndTimeIsNotNull() { addCriterion("promotion_end_time is not null"); return (Criteria) this; } public Criteria andPromotionEndTimeEqualTo(Date value) { addCriterion("promotion_end_time =", value, "promotionEndTime"); return (Criteria) this; } public Criteria andPromotionEndTimeNotEqualTo(Date value) { addCriterion("promotion_end_time <>", value, "promotionEndTime"); return (Criteria) this; } public Criteria andPromotionEndTimeGreaterThan(Date value) { addCriterion("promotion_end_time >", value, "promotionEndTime"); return (Criteria) this; } public Criteria andPromotionEndTimeGreaterThanOrEqualTo(Date value) { addCriterion("promotion_end_time >=", value, "promotionEndTime"); return (Criteria) this; } public Criteria andPromotionEndTimeLessThan(Date value) { addCriterion("promotion_end_time <", value, "promotionEndTime"); return (Criteria) this; } public Criteria andPromotionEndTimeLessThanOrEqualTo(Date value) { addCriterion("promotion_end_time <=", value, "promotionEndTime"); return (Criteria) this; } public Criteria andPromotionEndTimeIn(List<Date> values) { addCriterion("promotion_end_time in", values, "promotionEndTime"); return (Criteria) this; } public Criteria andPromotionEndTimeNotIn(List<Date> values) { addCriterion("promotion_end_time not in", values, "promotionEndTime"); return (Criteria) this; } public Criteria andPromotionEndTimeBetween(Date value1, Date value2) { addCriterion("promotion_end_time between", value1, value2, "promotionEndTime"); return (Criteria) this; } public Criteria andPromotionEndTimeNotBetween(Date value1, Date value2) { addCriterion("promotion_end_time not between", value1, value2, "promotionEndTime"); return (Criteria) this; } public Criteria andPromotionPerLimitIsNull() { addCriterion("promotion_per_limit is null"); return (Criteria) this; } public Criteria andPromotionPerLimitIsNotNull() { addCriterion("promotion_per_limit is not null"); return (Criteria) this; } public Criteria andPromotionPerLimitEqualTo(Integer value) { addCriterion("promotion_per_limit =", value, "promotionPerLimit"); return (Criteria) this; } public Criteria andPromotionPerLimitNotEqualTo(Integer value) { addCriterion("promotion_per_limit <>", value, "promotionPerLimit"); return (Criteria) this; } public Criteria andPromotionPerLimitGreaterThan(Integer value) { addCriterion("promotion_per_limit >", value, "promotionPerLimit"); return (Criteria) this; } public Criteria andPromotionPerLimitGreaterThanOrEqualTo(Integer value) { addCriterion("promotion_per_limit >=", value, "promotionPerLimit"); return (Criteria) this; } public Criteria andPromotionPerLimitLessThan(Integer value) { addCriterion("promotion_per_limit <", value, "promotionPerLimit"); return (Criteria) this; } public Criteria andPromotionPerLimitLessThanOrEqualTo(Integer value) { addCriterion("promotion_per_limit <=", value, "promotionPerLimit"); return (Criteria) this; } public Criteria andPromotionPerLimitIn(List<Integer> values) { addCriterion("promotion_per_limit in", values, "promotionPerLimit"); return (Criteria) this; } public Criteria andPromotionPerLimitNotIn(List<Integer> values) { addCriterion("promotion_per_limit not in", values, "promotionPerLimit"); return (Criteria) this; } public Criteria andPromotionPerLimitBetween(Integer value1, Integer value2) { addCriterion("promotion_per_limit between", value1, value2, "promotionPerLimit"); return (Criteria) this; } public Criteria andPromotionPerLimitNotBetween(Integer value1, Integer value2) { addCriterion("promotion_per_limit not between", value1, value2, "promotionPerLimit"); return (Criteria) this; } public Criteria andPromotionTypeIsNull() { addCriterion("promotion_type is null"); return (Criteria) this; } public Criteria andPromotionTypeIsNotNull() { addCriterion("promotion_type is not null"); return (Criteria) this; } public Criteria andPromotionTypeEqualTo(Integer value) { addCriterion("promotion_type =", value, "promotionType"); return (Criteria) this; } public Criteria andPromotionTypeNotEqualTo(Integer value) { addCriterion("promotion_type <>", value, "promotionType"); return (Criteria) this; } public Criteria andPromotionTypeGreaterThan(Integer value) { addCriterion("promotion_type >", value, "promotionType"); return (Criteria) this; } public Criteria andPromotionTypeGreaterThanOrEqualTo(Integer value) { addCriterion("promotion_type >=", value, "promotionType"); return (Criteria) this; } public Criteria andPromotionTypeLessThan(Integer value) { addCriterion("promotion_type <", value, "promotionType"); return (Criteria) this; } public Criteria andPromotionTypeLessThanOrEqualTo(Integer value) { addCriterion("promotion_type <=", value, "promotionType"); return (Criteria) this; } public Criteria andPromotionTypeIn(List<Integer> values) { addCriterion("promotion_type in", values, "promotionType"); return (Criteria) this; } public Criteria andPromotionTypeNotIn(List<Integer> values) { addCriterion("promotion_type not in", values, "promotionType"); return (Criteria) this; } public Criteria andPromotionTypeBetween(Integer value1, Integer value2) { addCriterion("promotion_type between", value1, value2, "promotionType"); return (Criteria) this; } public Criteria andPromotionTypeNotBetween(Integer value1, Integer value2) { addCriterion("promotion_type not between", value1, value2, "promotionType"); return (Criteria) this; } public Criteria andBrandNameIsNull() { addCriterion("brand_name is null"); return (Criteria) this; } public Criteria andBrandNameIsNotNull() { addCriterion("brand_name is not null"); return (Criteria) this; } public Criteria andBrandNameEqualTo(String value) { addCriterion("brand_name =", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameNotEqualTo(String value) { addCriterion("brand_name <>", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameGreaterThan(String value) { addCriterion("brand_name >", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameGreaterThanOrEqualTo(String value) { addCriterion("brand_name >=", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameLessThan(String value) { addCriterion("brand_name <", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameLessThanOrEqualTo(String value) { addCriterion("brand_name <=", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameLike(String value) { addCriterion("brand_name like", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameNotLike(String value) { addCriterion("brand_name not like", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameIn(List<String> values) { addCriterion("brand_name in", values, "brandName"); return (Criteria) this; } public Criteria andBrandNameNotIn(List<String> values) { addCriterion("brand_name not in", values, "brandName"); return (Criteria) this; } public Criteria andBrandNameBetween(String value1, String value2) { addCriterion("brand_name between", value1, value2, "brandName"); return (Criteria) this; } public Criteria andBrandNameNotBetween(String value1, String value2) { addCriterion("brand_name not between", value1, value2, "brandName"); return (Criteria) this; } public Criteria andProductCategoryNameIsNull() { addCriterion("product_category_name is null"); return (Criteria) this; } public Criteria andProductCategoryNameIsNotNull() { addCriterion("product_category_name is not null"); return (Criteria) this; } public Criteria andProductCategoryNameEqualTo(String value) { addCriterion("product_category_name =", value, "productCategoryName"); return (Criteria) this; } public Criteria andProductCategoryNameNotEqualTo(String value) { addCriterion("product_category_name <>", value, "productCategoryName"); return (Criteria) this; } public Criteria andProductCategoryNameGreaterThan(String value) { addCriterion("product_category_name >", value, "productCategoryName"); return (Criteria) this; } public Criteria andProductCategoryNameGreaterThanOrEqualTo(String value) { addCriterion("product_category_name >=", value, "productCategoryName"); return (Criteria) this; } public Criteria andProductCategoryNameLessThan(String value) { addCriterion("product_category_name <", value, "productCategoryName"); return (Criteria) this; } public Criteria andProductCategoryNameLessThanOrEqualTo(String value) { addCriterion("product_category_name <=", value, "productCategoryName"); return (Criteria) this; } public Criteria andProductCategoryNameLike(String value) { addCriterion("product_category_name like", value, "productCategoryName"); return (Criteria) this; } public Criteria andProductCategoryNameNotLike(String value) { addCriterion("product_category_name not like", value, "productCategoryName"); return (Criteria) this; } public Criteria andProductCategoryNameIn(List<String> values) { addCriterion("product_category_name in", values, "productCategoryName"); return (Criteria) this; } public Criteria andProductCategoryNameNotIn(List<String> values) { addCriterion("product_category_name not in", values, "productCategoryName"); return (Criteria) this; } public Criteria andProductCategoryNameBetween(String value1, String value2) { addCriterion("product_category_name between", value1, value2, "productCategoryName"); return (Criteria) this; } public Criteria andProductCategoryNameNotBetween(String value1, String value2) { addCriterion("product_category_name not between", value1, value2, "productCategoryName"); 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); } } }
[ "woaihuan.xiao@163.com" ]
woaihuan.xiao@163.com
c9786faf4239a9ecbff3987fa89660193a6471a9
6e7e2c0d150e6f8286d2ce63873872b8d855de19
/Fire/src/obj/Storage.java
71c6a7a377026bff76fd4d0f3bfade3dc478bdbe
[]
no_license
Reinaldocoronel/Oldproyects
d9c21b753bfe4251425190e923860a63b4a3e659
a5b38195ba8dd1f13af4a256bc7cce1b3bfd674e
refs/heads/master
2022-08-26T07:46:49.019802
2020-05-24T22:59:37
2020-05-24T22:59:37
266,633,787
0
0
null
null
null
null
UTF-8
Java
false
false
112
java
package obj; public interface Storage { public String list(); public Collectables take(String name); }
[ "noreply@github.com" ]
Reinaldocoronel.noreply@github.com
cd2104befe7997cb88765857ef3bd0794528634e
8791955d76a1c2ab11879ead17100b85694c9faa
/src/main/java/edu/ouhk/comps380f/controller/MessageUserController.java
301b719d3f3e8828df2fed2903e55722a0cc8a46
[]
no_license
kitty5643/0410
ab60fb7319846f2a9c8ade067acb00d6082dc369
e274eb8a2699f0c6d304b9e7c962569ad77d638a
refs/heads/master
2021-01-19T09:46:36.195103
2017-04-10T08:08:20
2017-04-10T08:08:20
87,783,887
0
0
null
null
null
null
UTF-8
Java
false
false
3,065
java
package edu.ouhk.comps380f.controller; import edu.ouhk.comps380f.dao.MessageUserRepository; import edu.ouhk.comps380f.model.MessageUser; import java.io.IOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.View; import org.springframework.web.servlet.view.RedirectView; @Controller @RequestMapping("user") public class MessageUserController { private final Logger logger = LoggerFactory.getLogger(this.getClass()); @Autowired MessageUserRepository messageUserRepo; @Autowired private PasswordEncoder passwordEncoder; @RequestMapping(value = {"", "list"}, method = RequestMethod.GET) public String list(ModelMap model) { model.addAttribute("messageUsers", messageUserRepo.findAll()); return "listUser"; } public static class Form { private String username; private String password; private String[] roles; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String[] getRoles() { return roles; } public void setRoles(String[] roles) { this.roles = roles; } } @RequestMapping(value = "create", method = RequestMethod.GET) public ModelAndView create() { return new ModelAndView("addUser", "messageUser", new Form()); } @RequestMapping(value = "create", method = RequestMethod.POST) public View create(Form form) throws IOException { MessageUser user = new MessageUser(); user.setUsername(form.getUsername()); user.setPassword(passwordEncoder.encode(form.getPassword())); for (String role : form.getRoles()) { user.addRole(role); } messageUserRepo.create(user); logger.info("User " + form.getUsername() + " created."); return new RedirectView("/user/list", true); } @RequestMapping(value = "delete/{username}", method = RequestMethod.GET) public View deleteTicket(@PathVariable("username") String username) { messageUserRepo.deleteByUsername(username); logger.info("User " + username + " deleted."); return new RedirectView("/user/list", true); } }
[ "Kitty@DESKTOP-OR5OP7O" ]
Kitty@DESKTOP-OR5OP7O
ba7fa54abda3ed9139320e890a95abb55a4412a4
20c11b464786e2424a86ad0ce022f4de8bbf9278
/src/main/java/com/ordint/tcpears/server/udp/UdpServerChannelConfig.java
a2689e2baaa9705615c94013ea3a23042f4cb5fd
[]
no_license
CoursetrackLimited/tcp_ears
661ef8b2656637fca14e928fa9732247243a71de
8fe7355f41915acbcf30f730697899c98178f9d8
refs/heads/master
2022-12-22T15:13:53.368580
2017-05-17T20:38:23
2017-05-17T20:59:17
140,412,968
0
0
null
2022-12-16T04:47:50
2018-07-10T10:00:56
Java
UTF-8
Java
false
false
4,001
java
package com.ordint.tcpears.server.udp; import java.net.SocketException; import java.nio.channels.DatagramChannel; import io.netty.buffer.ByteBufAllocator; import io.netty.channel.Channel; import io.netty.channel.ChannelException; import io.netty.channel.DefaultChannelConfig; import io.netty.channel.FixedRecvByteBufAllocator; import io.netty.channel.MessageSizeEstimator; import io.netty.channel.RecvByteBufAllocator; import io.netty.channel.WriteBufferWaterMark; import io.netty.channel.socket.ServerSocketChannelConfig; public class UdpServerChannelConfig extends DefaultChannelConfig implements ServerSocketChannelConfig { private static final RecvByteBufAllocator recv_allocator = new FixedRecvByteBufAllocator(2048); private final DatagramChannel dchannel; public UdpServerChannelConfig(Channel channel, DatagramChannel dchannel) { super(channel); this.dchannel = dchannel; setRecvByteBufAllocator(recv_allocator); } @Override public int getBacklog() { return 1; } @Override public ServerSocketChannelConfig setBacklog(int backlog) { return this; } @Override public ServerSocketChannelConfig setConnectTimeoutMillis(int timeout) { return this; } @Override public ServerSocketChannelConfig setPerformancePreferences(int arg0, int arg1, int arg2) { return this; } @Override public ServerSocketChannelConfig setAllocator(ByteBufAllocator alloc) { super.setAllocator(alloc); return this; } @Override public ServerSocketChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator alloc) { super.setRecvByteBufAllocator(alloc); return this; } @Override public ServerSocketChannelConfig setAutoRead(boolean autoread) { super.setAutoRead(true); return this; } @Override @Deprecated public ServerSocketChannelConfig setMaxMessagesPerRead(int n) { super.setMaxMessagesPerRead(n); return this; } @Override public ServerSocketChannelConfig setMessageSizeEstimator(MessageSizeEstimator est) { super.setMessageSizeEstimator(est); return this; } @Override public ServerSocketChannelConfig setWriteSpinCount(int spincount) { super.setWriteSpinCount(spincount); return this; } public ServerSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark) { return (ServerSocketChannelConfig) super.setWriteBufferHighWaterMark(writeBufferHighWaterMark); } public ServerSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark) { return (ServerSocketChannelConfig) super.setWriteBufferLowWaterMark(writeBufferLowWaterMark); } public ServerSocketChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark) { return (ServerSocketChannelConfig) super.setWriteBufferWaterMark(writeBufferWaterMark); } @Override public int getReceiveBufferSize() { try { return dchannel.socket().getReceiveBufferSize(); } catch (SocketException ex) { throw new ChannelException(ex); } } @Override public ServerSocketChannelConfig setReceiveBufferSize(int size) { try { dchannel.socket().setReceiveBufferSize(size); } catch (SocketException ex) { throw new ChannelException(ex); } return this; } @Override public boolean isReuseAddress() { try { return dchannel.socket().getReuseAddress(); } catch (SocketException ex) { throw new ChannelException(ex); } } @Override public ServerSocketChannelConfig setReuseAddress(boolean reuseaddr) { try { dchannel.socket().setReuseAddress(true); } catch (SocketException ex) { throw new ChannelException(ex); } return this; } }
[ "tlyle@adhslx.com" ]
tlyle@adhslx.com
ef28dabb98a94e43869a9c30c9bc659cbf6fbfbc
9d2b59591c3839b2cbe6c7c7eba95676b23240c2
/src/FileRW/ReadFromFile.java
ee5901e7510e1b1ce17a6232450b83a229977cae
[]
no_license
JFourier/Test
a385bde68f97b6cad7c6e22809178257f68a360d
7f39297dc6ae410e14b035d41b8db6c06b15b9db
refs/heads/master
2020-04-02T20:25:58.750354
2019-10-28T08:30:33
2019-10-28T08:30:33
154,768,954
0
0
null
null
null
null
UTF-8
Java
false
false
6,937
java
package FileRW; import java.io.*; /** * @author He.H * @date 2019/1/10 19:48 **/ public class ReadFromFile { /** * 以字节为单位读取文件,常用于读二进制文件,如图片、声音、影像等文件。 */ public static void readFileByBytes(String fileName) { File file = new File(fileName); InputStream in = null; try { System.out.println("以字节为单位读取文件内容,一次读一个字节:"); // 一次读一个字节 in = new FileInputStream(file); int tempbyte; while ((tempbyte = in.read()) != -1) { System.out.write(tempbyte); } in.close(); } catch (IOException e) { e.printStackTrace(); return; } try { System.out.println("以字节为单位读取文件内容,一次读多个字节:"); // 一次读多个字节 byte[] tempbytes = new byte[100]; int byteread = 0; in = new FileInputStream(fileName); ReadFromFile.showAvailableBytes(in); // 读入多个字节到字节数组中,byteread为一次读入的字节数 while ((byteread = in.read(tempbytes)) != -1) { System.out.write(tempbytes, 0, byteread); } } catch (Exception e1) { e1.printStackTrace(); } finally { if (in != null) { try { in.close(); } catch (IOException e1) { } } } } /** * 以字符为单位读取文件,常用于读文本,数字等类型的文件 */ public static void readFileByChars(String fileName) { File file = new File(fileName); Reader reader = null; try { System.out.println("以字符为单位读取文件内容,一次读一个字节:"); // 一次读一个字符 reader = new InputStreamReader(new FileInputStream(file)); int tempchar; while ((tempchar = reader.read()) != -1) { // 对于windows下,\r\n这两个字符在一起时,表示一个换行。 // 但如果这两个字符分开显示时,会换两次行。 // 因此,屏蔽掉\r,或者屏蔽\n。否则,将会多出很多空行。 if (((char) tempchar) != '\r') { System.out.print((char) tempchar); } } reader.close(); } catch (Exception e) { e.printStackTrace(); } try { System.out.println("以字符为单位读取文件内容,一次读多个字节:"); // 一次读多个字符 char[] tempchars = new char[30]; int charread = 0; reader = new InputStreamReader(new FileInputStream(fileName)); // 读入多个字符到字符数组中,charread为一次读取字符数 while ((charread = reader.read(tempchars)) != -1) { // 同样屏蔽掉\r不显示 if ((charread == tempchars.length) && (tempchars[tempchars.length - 1] != '\r')) { System.out.print(tempchars); } else { for (int i = 0; i < charread; i++) { if (tempchars[i] == '\r') { continue; } else { System.out.print(tempchars[i]); } } } } } catch (Exception e1) { e1.printStackTrace(); } finally { if (reader != null) { try { reader.close(); } catch (IOException e1) { } } } } /** * 以行为单位读取文件,常用于读面向行的格式化文件 */ public static void readFileByLines(String fileName) { File file = new File(fileName); BufferedReader reader = null; try { System.out.println("以行为单位读取文件内容,一次读一整行:"); reader = new BufferedReader(new FileReader(file)); String tempString = null; int line = 1; // 一次读入一行,直到读入null为文件结束 while ((tempString = reader.readLine()) != null) { // 显示行号 System.out.println("line " + line + ": " + tempString); line++; } reader.close(); } catch (IOException e) { e.printStackTrace(); } finally { if (reader != null) { try { reader.close(); } catch (IOException e1) { } } } } /** * 随机读取文件内容 */ public static void readFileByRandomAccess(String fileName) { RandomAccessFile randomFile = null; try { System.out.println("随机读取一段文件内容:"); // 打开一个随机访问文件流,按只读方式 randomFile = new RandomAccessFile(fileName, "r"); // 文件长度,字节数 long fileLength = randomFile.length(); // 读文件的起始位置 int beginIndex = (fileLength > 4) ? 4 : 0; // 将读文件的开始位置移到beginIndex位置。 randomFile.seek(beginIndex); byte[] bytes = new byte[10]; int byteread = 0; // 一次读10个字节,如果文件内容不足10个字节,则读剩下的字节。 // 将一次读取的字节数赋给byteread while ((byteread = randomFile.read(bytes)) != -1) { System.out.write(bytes, 0, byteread); } } catch (IOException e) { e.printStackTrace(); } finally { if (randomFile != null) { try { randomFile.close(); } catch (IOException e1) { } } } } /** * 显示输入流中还剩的字节数 */ private static void showAvailableBytes(InputStream in) { try { System.out.println("当前字节输入流中的字节数为:" + in.available()); } catch (IOException e) { e.printStackTrace(); } } public static void main(String[] args) { String fileName = "C:\\Users\\He.H\\Desktop\\新建文本文档.txt"; ReadFromFile.readFileByBytes(fileName); ReadFromFile.readFileByChars(fileName); ReadFromFile.readFileByLines(fileName); ReadFromFile.readFileByRandomAccess(fileName); } }
[ "934087288@qq.com" ]
934087288@qq.com
63a588122ed5626ee8d19dafd0fc7cb9ee54cf2e
15955ccf896dd8f2d74a3aa20989a593015f84b0
/src/main/java/com/sww/launcher/gui/elements/ConsolePanel.java
1e706b3ddafb82ed1cedba1b57fd166a749d974c
[ "MIT" ]
permissive
yesimwearingpants/Launcher
a5a7d7d7f18303348c5e09e65ddf2fe554e5177c
52f09fd3073d3b54f1b1f82f54fc2563879ff5a8
refs/heads/dev
2020-05-18T12:12:26.925166
2015-07-02T02:04:44
2015-07-02T02:04:44
32,654,115
1
1
null
2015-03-26T08:00:16
2015-03-21T23:21:02
Java
UTF-8
Java
false
false
1,274
java
/** * Copyright (c) 2015 Greg Wright * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sub-license, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the terms of the MIT License * * @author yesimwearingpants * Created April 30, 2015 */ package com.sww.launcher.gui.elements; import java.awt.Dimension; import javax.swing.JTextArea; import com.sww.launcher.gui.elements.components.ConsoleStream; import com.sww.launcher.gui.elements.components.ScrollPane; import com.sww.logging.Logging; import com.sww.logging.TracingPrintStream; @SuppressWarnings("serial") public class ConsolePanel extends ScrollPane { private static JTextArea console = new JTextArea(); public ConsolePanel() { TracingPrintStream ps = new TracingPrintStream(Logging.log.getLogger(), new ConsoleStream(console, 1000)); setPreferredSize(new Dimension(705, 225)); console.setEditable(false); setViewportView(console); System.setOut(ps); System.setErr(ps); } }
[ "yesimwearingpants@gmail.com" ]
yesimwearingpants@gmail.com
62d8e40e196d32445b914a60041925f8cc050166
df263faa1c707121eccd168cb874017b81c767ab
/src/main/java/fr/ippon/tatami/service/util/GravatarUtil.java
11a2585ea2101b3f629902e8da61e75437697e69
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
iConsult2000/tatami
25dbe1dbd9a9bf20d595fab969128b0e6f19fd52
febeec06bcfe3b9d8170c651d705085051b0287c
refs/heads/master
2021-01-15T18:40:27.081309
2012-10-31T01:55:11
2012-10-31T01:55:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
915
java
package fr.ippon.tatami.service.util; import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; /** * Utility class for using Gravatar. * * @author Julien Dubois */ public class GravatarUtil { public static String getHash(String message) { try { MessageDigest md = MessageDigest.getInstance("MD5"); return hex(md.digest(message.getBytes("CP1252"))); } catch (NoSuchAlgorithmException e) { } catch (UnsupportedEncodingException e) { } return null; } private static String hex(byte[] array) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < array.length; ++i) { sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1, 3)); } return sb.toString(); } }
[ "jdubois@ippon.fr" ]
jdubois@ippon.fr
ca2af85a06e7d8805bc52abd45b30da95bf3810d
468d5e268e3bc593dceb3fd5210d1d578f1c35a0
/src/POO/Guanabara/Aula05/ContaBanco.java
d430d37e1e6d52b109f0c2555ddcbff117db234d
[ "MIT" ]
permissive
larissamartinsss/CursoJavaCompleto
60eedba81d6757b4c4a92b30d53c5218ea5ad8f4
3a54684506915fedd9c9286261a5a6bc9cec3347
refs/heads/main
2023-08-31T15:47:19.708309
2021-10-20T00:43:25
2021-10-20T00:43:25
381,136,495
0
0
null
null
null
null
UTF-8
Java
false
false
3,340
java
package POO.Guanabara.Aula05; public class ContaBanco { public int numConta; protected String tipo; private String dono; private double saldo; private double v; private boolean status; public void estadoAtual(){ System.out.println("--------------------------------"); System.out.println("Conta: "+this.getNumConta()); System.out.println("Tipo: "+this.getTipo()); System.out.println("Dono: "+this.getDono()); System.out.println("Saldo: "+this.getSaldo()); System.out.println("Status: "+this.getStatus()); System.out.println("--------------------------------"); } void abrirConta(String t){ setTipo(t); setStatus(true); this.status = true; if(t == "CC"){ System.out.println("Parabéns! Você ganhou R$50,00!"); this.setSaldo(50); }else{ System.out.println("Parabéns! Você ganhou R$150,00!"); this.setSaldo(150); } } void fecharConta(){ this.status = false; if(this.saldo >0){ System.out.println("Conta com dinheiro!"); } else if(saldo < 0){ System.out.println("Conta em débito!"); } else{ System.out.println("Fechando conta"); setStatus(false); } } void depositar(int v){ if(this.getStatus()){ this.saldo = this.saldo + v; this.setSaldo(saldo); System.out.println("Depósito realizado na conta de: "+this.getDono()); }else{ System.out.println("Impossivel depositar! "); } } void sacar(float v) { if (this.getStatus()) { if (this.getSaldo() >= v) { this.setSaldo(this.getSaldo() - v); System.out.println("Saque realizado na conta de: "+this.getDono()); } else { System.out.println("Saldo insuficiente!"); } } else { System.out.println("Impossivel sacar! Saldo insuficiente "); } } void pagarMensal() { double v = 0; if (this.getTipo() == "CC") { v = 12; } else if (this.getTipo() == "CP"){ v = 20; } if(getStatus()) { this.setSaldo(this.getSaldo() - v); System.out.println("Mensalidade paga com sucesso por: " + this.getDono()); } else{ System.out.println("Impossivel pagar uma conta fechada! "); } } public ContaBanco() { saldo = 0; status = false; } // Getters and Setters: public double getNumConta() { return numConta; } public void setNumConta(int n) { this.numConta = n; } public String getTipo() { return tipo; } public void setTipo(String t) { this.tipo = t; } public String getDono() { return dono; } public void setDono(String dono) { this.dono = dono; } public double getSaldo() { return saldo; } public void setSaldo(double saldo) { this.saldo = saldo; } public boolean getStatus() { return status; } public void setStatus(boolean s) { this.status = s; } }
[ "larissamartins.job@gmail.com" ]
larissamartins.job@gmail.com
341c2ecf69646a996f41356216622a02cece440b
3bfe631a82c81a7a0c4df89c1782fa1861415030
/src/avm/ed/to2/ContarMultiplos.java
b5d8e3b40af41c076edfcfeb1367e9c91f09bcb9
[]
no_license
cadeos48/ED-UD2-TO
8dedcdd2069739b9b5af1bde7010fc9079352b0b
fef500f7112001023aec1973ae222e17c9ddda0d
refs/heads/master
2020-04-09T12:21:16.792370
2018-12-04T11:22:46
2018-12-04T11:22:46
160,345,940
0
0
null
null
null
null
UTF-8
Java
false
false
743
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 avm.ed.to2; /** * * @author Usuario */ public class ContarMultiplos { public static void main(String[] args){ int contaDivDos = 0; int contaDivTres = 0; for (int cont = 1; cont <= 100; cont++){ if (cont%2 == 0) contaDivDos++; if (cont%3 == 0) contaDivTres++; } System.out.println("El total de números divisibles entre dos es: " +contaDivDos); System.out.println("El total de números divisibles entre tres es: " +contaDivTres); } }
[ "cadeos48@users.noreply.github.com" ]
cadeos48@users.noreply.github.com
fc3116b30c317dc8104a8a73a909b39f9cd5e5e8
0d19ed63e770ff2973a44f94af3d43df80c44da6
/spring-demo/src/test/java/bean/LookUpBase.java
1f138b6a1563697671d0c179ac8b46552cbbd42c
[]
no_license
jzyadmin/UtilsDemo
b6df6a5518781c29c5662ef7336354ec298a88da
8544e053043089b1844883a5a1612a0e3f7a041c
refs/heads/master
2022-09-29T10:32:35.660802
2020-06-04T12:05:14
2020-06-04T12:05:14
208,948,971
0
0
null
null
null
null
UTF-8
Java
false
false
317
java
package bean; import org.springframework.stereotype.Component; /** * lookupdemo * @author 孟星魂, mengxinghun@izjjf.cn * @create 2020/4/10 15:25 **/ @Component public class LookUpBase { public void printLog() { System.out.println(LookUpBase.class.getName() +" print log..............."); } }
[ "mengxinghun@jfun365.com" ]
mengxinghun@jfun365.com
2f3eccfddc9f465a7e0d880a1b705d2f50862edf
936fcf62b6271215fe473924f1c328eaae9447b1
/CobroCoactivo/src/java/CobroCoactivo/Bo/DetallePersonaBO.java
0e9c47c726a51e6985d1bd13781838fcb003c002
[]
no_license
andresmorenocivica/CobroCoactivo_v1
d8568c9498b76bdf3468e1d5c805171e2c223179
b2647d8caaca347b538e10dd8f59d81b9d96e9c4
refs/heads/master
2020-03-19T08:09:51.500883
2018-10-31T20:30:14
2018-10-31T20:30:14
136,180,726
0
0
null
null
null
null
UTF-8
Java
false
false
477
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 CobroCoactivo.Bo; import CobroCoactivo.Beans.BeanDetallePersonas; /** * * @author emadrid */ public interface DetallePersonaBO { void cargarTipoDocumento(BeanDetallePersonas bean) throws Exception; void cargarDatosPersonas(BeanDetallePersonas bean) throws Exception; }
[ "38669299+elkinmadrid@users.noreply.github.com" ]
38669299+elkinmadrid@users.noreply.github.com
90cebb9998b7ca326a5f626832b2db21fdd87544
3f3f5a1c94f8aadce045266f2bf6406c4e48b56c
/problems/Shortest Distance from All Buildings/shortestDistance.java
736d0ce8210cff3beb9350a25ba19888456d797f
[ "MIT" ]
permissive
gurfinkel/leetCode
ded3202bdddeaa8592da73e7ce98a2cc4138990c
ba41e63e12bee7cfe4e91966771077cdf765b598
refs/heads/master
2023-08-03T10:46:44.972331
2023-07-28T16:26:11
2023-07-28T16:26:11
235,543,939
2
0
null
null
null
null
UTF-8
Java
false
false
1,832
java
class Solution { public int shortestDistance(int[][] grid) { int result = Integer.MAX_VALUE; int rows = grid.length; int cols = grid[0].length; int[][] distances = new int[rows][cols]; int[][] directions = new int[][] {{-1,0},{1,0},{0,1},{0,-1}}; Queue<int[]> bfs = new LinkedList<>(); int builderCounter = 0; for (int row = 0; rows > row; ++row) { for (int col = 0; cols > col; ++col) { if (1 == grid[row][col]) { int distance = 1; result = Integer.MAX_VALUE; bfs.add(new int[] {row, col}); while (!bfs.isEmpty()) { for (int idx = bfs.size(); 0 < idx; --idx) { int[] item = bfs.poll(); for (int[] direction : directions) { int newRow = item[0] + direction[0]; int newCol = item[1] + direction[1]; if (0 <= newRow && rows > newRow && 0 <= newCol && cols > newCol && builderCounter == grid[newRow][newCol]) { --grid[newRow][newCol]; bfs.add(new int[] {newRow, newCol}); distances[newRow][newCol] += distance; result = Math.min(result, distances[newRow][newCol]); } } } ++distance; } --builderCounter; } } } return Integer.MAX_VALUE == result ? -1 : result; } }
[ "flatorez@ya.ru" ]
flatorez@ya.ru
e35bb780d074410983eac780c476c7f40fc86d0e
3918583e3cfd6a1841c8a0b8de06e966358a3651
/hashcode/hc2021/src/main/java/code/hc/prac/Pizza.java
0fbcaa767b1591e45bab32b98ba04b26c7ae3d8d
[ "Apache-2.0" ]
permissive
yang-feng-yfeng/common-interview-coding
9f864af994312676da5cec2eccec1c9af4c5cd40
6b3b4015508164464890c971c92b25f16271c07f
refs/heads/master
2023-08-31T14:39:16.844777
2021-10-22T09:11:11
2021-10-22T09:11:11
334,383,477
0
0
Apache-2.0
2021-01-30T10:15:39
2021-01-30T10:15:39
null
UTF-8
Java
false
false
623
java
package code.hc.prac; import java.util.Arrays; public class Pizza { public final int id; public final boolean[] ingres; public int score = -1; public Pizza(int id, boolean[] ingres) { this.id = id; this.ingres = ingres; } public int getScore() { if (score == -1) { score = count(); } return score; } public int count() { int trueCount = 0; for (int i = 0; i < ingres.length; i++) { if (ingres[i] /* or array[i] */) { trueCount++; } } return trueCount; } }
[ "yang.feng.yfeng@gmail.com" ]
yang.feng.yfeng@gmail.com
715e41469245bb7f2a97f535024c01c9951d3095
39c94cfe8225176c3502537a77e94e52479d3551
/myjavabase/src/ResponsiveUI.java
b0ac8adfff253890ef8a6e16484f17f162ee4797
[]
no_license
hellojst/myjava
5f715e957660b3166e81fc1585b9ca60976307d4
d8d0c31897ed213b5e6cc8dcead01247178e271d
refs/heads/master
2021-04-09T16:00:12.830437
2018-06-18T15:16:58
2018-06-18T15:16:58
125,636,412
0
0
null
null
null
null
UTF-8
Java
false
false
515
java
import java.io.IOException; import java.util.Scanner; /** * 守护线程 * @author stjia * @time 2018年3月18日 */ public class ResponsiveUI extends Thread { private static double d = 1; public ResponsiveUI () { setDaemon(true); start(); } @Override public void run() { // TODO Auto-generated method stub while (true) { d = d + (Math.PI + Math.E); } } public static void main(String[] args) throws IOException { new ResponsiveUI(); System.in.read(); System.out.println(d); } }
[ "shtjia@163.com" ]
shtjia@163.com
13aed754f38b75c98a593b748dca4ddaa8634ed1
2ad911a71e1c0374dbf3adccdfaa64b5cb732ada
/PFTApp/src/cz/cvut/fjfi/kse/pft/db/Difficulty.java
61c059f95b485ffc4aa46ab3b7b2a33e615e17ca
[]
no_license
hrusa/pft
621245ce242cc6596a9e8e62c55860e447618eeb
c7389f4dae3ff4ca4a955274863d8bc4c17deab3
refs/heads/master
2021-04-12T04:29:29.806607
2014-05-07T09:01:10
2014-05-07T09:01:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,151
java
/** * */ package cz.cvut.fjfi.kse.pft.db; import com.orm.SugarRecord; import android.content.Context; /** * @author Petr Hruška * */ public class Difficulty extends SugarRecord<Difficulty> implements ReferenceTableInterface{ private int iddifficulty = 0; private String name; /** * Constructors of entity Difficulty */ public Difficulty(Context ctx) { super(ctx); } /** * @param ctx * @param name */ public Difficulty(Context ctx, String name) { super(ctx); this.name = name; } /** * @param ctx * @param id * @param name */ public Difficulty(Context ctx, int id, String name) { super(ctx); this.iddifficulty = id; this.name = name; } /** * @return the id */ public int getWebId() { return iddifficulty; } /** * @param id, the id to set */ public void setWebId(int id) { this.iddifficulty = id; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } public String JSONString() { return "{\"id\":"+this.getWebId()+",\"name\":\""+name+"\"}"; } }
[ "Pjetrek@centrum.cz" ]
Pjetrek@centrum.cz
157e32ec1a7105f02624755c1b53861e32385175
4e791d0260dcda5c32999d118d84589395bb901c
/bos-service/src/main/java/com/sy/bos/service/impl/RegionServiceImpl.java
7d8179374e73e3d314cc1e77003caebc16092a6a
[]
no_license
sunYongEr/leo
59ba7916b2dc05846885c0351bc6d4d64bec1e09
a7d8c867a8354b7c33f9f322d1b7f67fdda6b6b6
refs/heads/master
2022-02-28T12:29:37.176569
2019-10-22T02:48:58
2019-10-22T02:48:58
208,990,731
0
0
null
2019-10-22T02:51:32
2019-09-17T07:44:45
JavaScript
UTF-8
Java
false
false
910
java
package com.sy.bos.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.sy.bos.dao.RegionDao; import com.sy.bos.domain.Region; import com.sy.bos.service.RegionService; import com.sy.bos.utils.PageBean; @Service @Transactional public class RegionServiceImpl implements RegionService { @Autowired private RegionDao regionDao; @Override public void save(List<Region> regionList) { for (Region region : regionList) { regionDao.saveOrupdate(region); } } @Override public void pageQuery(PageBean pageBean) { regionDao.pageQuery(pageBean); } @Override public List<Region> findAll() { return regionDao.findAll(); } @Override public List<Region> findListByQ(String q) { return regionDao.findListByQ(q); } }
[ "1151946450@qq.com" ]
1151946450@qq.com
05347d60bf3b8d75dfa721b01e1ab4a355e6dc0f
cf5e3245dd133bb3e2326e3d64235f84054b196c
/demo24/src/main/java/com/shopping/demo24/eda/SensorStatusMsg.java
5cadb1a56b4989fda1f9689a88c1863dfbd39666
[]
no_license
capthua/shopping
d328854652140b2bf6320674f1978331681abbfd
78a21d88d8bbd2c833981833229d5978b8171f32
refs/heads/master
2023-08-18T20:05:04.999521
2022-11-16T02:35:00
2022-11-16T02:35:00
218,947,752
0
0
null
null
null
null
UTF-8
Java
false
false
130
java
package com.shopping.demo24.eda; import com.shopping.common.eda.IotMessage; public class SensorStatusMsg extends IotMessage { }
[ "capthua24@gmail.com" ]
capthua24@gmail.com
f4752988713552712d895ec5ab201b4e265eda3c
d633851be9bb8ca705d150c2815c5537b894a71e
/src/main/java/library_project/controllers/BooksController.java
4863670d262a2ca1dfd0ce4f5d4a978a1b32a4e7
[]
no_license
paulinshek/libraryapi
864a967b77093e0b01285989303953c623ce85de
031a3e09d67e581832ee3452c17da59f54d23ca0
refs/heads/master
2020-04-06T06:59:24.007856
2016-08-23T09:22:36
2016-08-23T09:22:36
65,470,598
0
0
null
2016-08-23T09:20:19
2016-08-11T13:13:41
Java
UTF-8
Java
false
false
1,235
java
package library_project.controllers; import java.util.Iterator; import library_project.repos.Repository; import library_project.models.Book; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping("api/books") public class BooksController { private Repository<Book> bookRepo; public BooksController(Repository<Book> bookRepo){ this.bookRepo = bookRepo; } @RequestMapping(value="/books",method=RequestMethod.GET) public Iterator<Book> get() { return bookRepo.getAll(); } @RequestMapping(value="/values/{id}",method=RequestMethod.GET) public Book get(@PathVariable("id") long id) { return bookRepo.get(id); } @RequestMapping(value="/values",method=RequestMethod.POST) public void post(@RequestBody Book newBook) { bookRepo.add(newBook); } @RequestMapping(value="/values/{id}",method=RequestMethod.DELETE) public void delete(@PathVariable("id") long id) { bookRepo.remove(id); } @RequestMapping(value="/values/{id}", method=RequestMethod.PUT) public void put(@RequestBody Book newBook, @PathVariable("id") long id) { bookRepo.add(newBook); newBook.setId(id); } }
[ "pshek@scottlogic.com" ]
pshek@scottlogic.com
523f008c1d1c2116f6649482b1ffa40c7e9a8822
67d988f50b07c030b4d60dd73e0cbb3b5651f0ec
/src/com/cblue/ui/dialog/ToastDialogActivity.java
094928eb2d9ba72e3431c29938b7ee34863871c5
[]
no_license
pavelcode/Android
14d18c162b498685951c4a08a72af8ee01d81def
201848e0fec41035264a8fec5806295353fe4e6c
refs/heads/master
2021-01-21T14:01:59.532927
2016-04-12T16:46:32
2016-04-12T16:46:32
42,525,242
0
1
null
null
null
null
UTF-8
Java
false
false
897
java
package com.cblue.ui.dialog; import com.cblue.android.R; import android.app.Activity; import android.os.Bundle; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.widget.Toast; public class ToastDialogActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); Toast toast = new Toast(ToastDialogActivity.this); //得到布局内容 View view = LayoutInflater.from(ToastDialogActivity.this).inflate(R.layout.dialog_toast,null); //设置布局 toast.setView(view); //设置排列方式 参数1 排列方式 参数2 X方向 参数3 y方向 toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0); //持续时间 toast.setDuration(Toast.LENGTH_LONG); //显示 toast.show(); } }
[ "pavel686@163.com" ]
pavel686@163.com
2fcd5bb842c5b1962fb8b4947f686377d03c20e3
911a4f0f9a6cf085cfb9d7974e78ef25d70c5a9e
/src/main/java/cn/saintshaga/SpringInAction/springidol/impl/Volunteer.java
8cde7e318da18791892f68b0da626d3dc2d30a59
[]
no_license
saintshaga/SpringInAction
6646d9c392ce6de3344701ecf463549d006964d4
c19b98700eaa6625401d28f1627fd62a1aa875be
refs/heads/master
2021-03-12T19:37:02.297314
2014-07-16T15:03:39
2014-07-16T15:03:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
434
java
package cn.saintshaga.SpringInAction.springidol.impl; import org.springframework.stereotype.Component; import cn.saintshaga.SpringInAction.springidol.Thinker; @Component public class Volunteer implements Thinker { private String thoughts; public void thinkOfSomething(String thoughts) { this.thoughts = thoughts; System.out.println(thoughts); } public String getThoughts() { return this.thoughts; } }
[ "huang_f@worksap.co.jp" ]
huang_f@worksap.co.jp
0db41c6446e46f85ce8c97f4b84db755d85fd8c6
3287b4ec9a7342fe19e2bb2d0d6807915f79ef96
/src/main/java/test/spring/entity/Result.java
270e95cc7f15998ddc8ac1285a0b3131b2fada30
[]
no_license
alisure-web/AutoAPI
7aa1c50c40707dc9bad7601fd80138ce040111b9
37968d83a08567872f6af4eb0dd642939d10a27a
refs/heads/master
2022-12-23T08:14:38.434627
2017-10-25T08:33:59
2017-10-25T08:33:59
108,224,500
0
0
null
2022-12-16T05:11:37
2017-10-25T05:38:21
JavaScript
UTF-8
Java
false
false
996
java
package test.spring.entity; import com.wordnik.swagger.annotations.ApiModel; import com.wordnik.swagger.annotations.ApiModelProperty; import java.util.List; /** * Created by ALISURE on 2017/3/17. */ @ApiModel public class Result { @ApiModelProperty(value = "返回结果的状态,status=1代表OK",required = true) private String status = ""; @ApiModelProperty(value = "全部的用户数据",required = true) private List<TestEntity> testEntities = null; public Result() { } public Result(String status, List<TestEntity> testEntities) { this.status = status; this.testEntities = testEntities; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public List<TestEntity> getTestEntities() { return testEntities; } public void setTestEntities(List<TestEntity> testEntities) { this.testEntities = testEntities; } }
[ "562282219@qq.com" ]
562282219@qq.com
434924e9bf099dca47a3523a79837d1df1e8faaa
365c128729d1aa2b3127862425a378343ca958b2
/OldGloriesCal/tags/OldGloriesCalendar_v1.0/src/com/jmbg/oldgloriescalendar/data/PartidosSQLite.java
3ab2154e0a95045f9d52dcc6fb4844fae4882366
[]
no_license
MaeseChemy/AndroidProjects
105d0cffa353886bca59ea0ec7056ba47b5c4f76
db4b35ae98e42c872244ef8833684d8584f5e8b2
refs/heads/master
2016-08-05T14:10:50.193393
2014-10-21T20:06:00
2014-10-21T20:06:00
32,458,004
2
0
null
null
null
null
WINDOWS-1250
Java
false
false
3,898
java
package com.jmbg.oldgloriescalendar.data; import java.util.Calendar; import java.util.List; import java.util.Vector; import com.jmbg.oldgloriescalendar.util.LectorLiga; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android.database.sqlite.SQLiteOpenHelper; public class PartidosSQLite extends SQLiteOpenHelper { private Context context; private final static String DB_TABLA = "PARTIDOS"; private final static String DB_CAMPO_JORNADA = "JORNADA"; private final static String DB_CAMPO_FECHA = "FECHA"; private final static String DB_CAMPO_OPONENTE = "OPONENTE"; private final static String DB_CAMPO_CAMPO = "CAMPO"; private final static String DB_CAMPO_LOCAL = "LOCAL"; private final static String SENTENCIA_CREATE_TABLE = "CREATE TABLE " + DB_TABLA + " (" + DB_CAMPO_JORNADA + " TEXT PRIMARY KEY, " + DB_CAMPO_FECHA + " LONG," + "" + DB_CAMPO_OPONENTE + " TEXT," + "" + DB_CAMPO_CAMPO + " TEXT," + "" + DB_CAMPO_LOCAL + " INTEGER)"; private final static String SENTENCIA_DROP_TABLE = "DROP TABLE IF EXISTS " + DB_TABLA; public PartidosSQLite(Context context, String name, CursorFactory factory, int version) { super(context, name, factory, version); this.context = context; } @Override public void onCreate(SQLiteDatabase db) { db.execSQL(SENTENCIA_CREATE_TABLE); this.poblarBD(db); } private void poblarBD(SQLiteDatabase db) { LectorLiga lector = new LectorLiga(context); List<Partido> partidosFichero = lector.leerPartidos(); for (Partido partido : partidosFichero) { this.guardarPartido(partido, db); } } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { // Se elimina la versión anterior de la tabla db.execSQL(SENTENCIA_DROP_TABLE); // Se crea la nueva versión de la tabla onCreate(db); } public void guardarPartido(Partido partido, SQLiteDatabase db) { db.execSQL("INSERT INTO " + DB_TABLA + " VALUES('" + partido.getJornada() + "', " + partido.getFechaLong() + ", '" + partido.getOponente() + "', '" + partido.getLugar() + "', " + (partido.isLocal() ? 1 : 0) + ")"); } public Vector<Partido> listaPartidos() { Vector<Partido> partidos = new Vector<Partido>(); SQLiteDatabase db = getReadableDatabase(); Cursor cursor = db.rawQuery("SELECT " + DB_CAMPO_JORNADA + ", " + DB_CAMPO_FECHA + ", " + DB_CAMPO_OPONENTE + ", " + DB_CAMPO_CAMPO + ", " + DB_CAMPO_LOCAL + " FROM " + DB_TABLA, null); while (cursor.moveToNext()) { Partido partido = new Partido(); partido.setJornada(cursor.getString(0)); partido.setFechaLong(cursor.getLong(1)); partido.setOponente(cursor.getString(2)); partido.setLugar(cursor.getString(3)); partido.setLocal(cursor.getInt(4) == 0 ? false : true); partidos.add(partido); } db.close(); return partidos; } public Vector<Partido> listaPartidos(Calendar calendar) { Vector<Partido> partidos = new Vector<Partido>(); SQLiteDatabase db = getReadableDatabase(); Cursor cursor = db.rawQuery( "SELECT " + DB_CAMPO_JORNADA + ", " + DB_CAMPO_FECHA + ", " + DB_CAMPO_OPONENTE + ", " + DB_CAMPO_CAMPO + ", " + DB_CAMPO_LOCAL + " FROM " + DB_TABLA + " WHERE " + DB_CAMPO_FECHA + " >= " + calendar.getTimeInMillis(), null); while (cursor.moveToNext()) { Partido partido = new Partido(); partido.setJornada(cursor.getString(0)); partido.setFechaLong(cursor.getLong(1)); partido.setOponente(cursor.getString(2)); partido.setLugar(cursor.getString(3)); partido.setLocal(cursor.getInt(4) == 0 ? false : true); partidos.add(partido); } db.close(); return partidos; } }
[ "vishop1986@6d147a8d-8a67-a6f8-986d-c6b92ca603f8" ]
vishop1986@6d147a8d-8a67-a6f8-986d-c6b92ca603f8
cdb852ccb175ca68f6c7fc239cca45fce9ccf8e1
5498b32dd1051d7ec33a5124833cd68732b94c7e
/test/com/emmsframework/activiti/engine/ProcessEngineTestCase.java
40fa289c1d76562df7d9358b7825a54d14f3624a
[]
no_license
scobala/activiti-study
8bbfb1023d8d37e0d8d3f435fa9dcad6acaf866f
a9627de5100b07ec6998e8f4a5a38f69f7500a2e
refs/heads/master
2020-04-05T23:38:43.879079
2014-03-05T10:00:06
2014-03-05T10:00:06
30,746,675
0
1
null
2015-02-13T08:07:57
2015-02-13T08:07:57
null
UTF-8
Java
false
false
1,847
java
/** * @Project:emms * @Package:com.emmsframework.activiti.engine * @FileName:ProcessEngineTest.java * @Date:2013-8-16 下午3:34:47 * @Version V1.0.0 * Copyright(c)ShenZhen Expressway Engineering Consultants Co.,Ltd */ package com.emmsframework.activiti.engine; import static org.junit.Assert.assertNotNull; import org.activiti.engine.FormService; import org.activiti.engine.HistoryService; import org.activiti.engine.IdentityService; import org.activiti.engine.ManagementService; import org.activiti.engine.RepositoryService; import org.activiti.engine.RuntimeService; import org.activiti.engine.TaskService; import org.activiti.spring.ProcessEngineFactoryBean; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import com.emmsframework.controller.BaseControllerTestCase; /** * @ClassName:ProcessEngineTest * * @Author:joe * @Date:2013-8-16 下午3:34:47 * @Since:V 1.0 */ public class ProcessEngineTestCase extends BaseControllerTestCase { @Autowired private ProcessEngineFactoryBean engine; @Autowired private RepositoryService repositoryService; @Autowired private RuntimeService runtimeService; @Autowired private FormService formService; @Autowired private IdentityService identityService; @Autowired private TaskService taskService; @Autowired private HistoryService historyService; @Autowired private ManagementService managementService; /** * @Fileds:日志记录 * */ /** * 检测引擎是否能正常工作 */ @Test public void testProcessEngines() { assertNotNull(engine); assertNotNull(repositoryService); assertNotNull(runtimeService); assertNotNull(formService); assertNotNull(identityService); assertNotNull(taskService); assertNotNull(historyService); assertNotNull(managementService); } public void test() { } }
[ "zhuyuhua@qq.com" ]
zhuyuhua@qq.com
e73df2287f3c365948fdc9f4b666fc539bd7d2a4
cbea23d5e087a862edcf2383678d5df7b0caab67
/aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/CoreNetworkSegmentEdgeIdentifier.java
c982f0dc2f959f6c1302353b2fb568bdb6c471d4
[ "Apache-2.0" ]
permissive
phambryan/aws-sdk-for-java
66a614a8bfe4176bf57e2bd69f898eee5222bb59
0f75a8096efdb4831da8c6793390759d97a25019
refs/heads/master
2021-12-14T21:26:52.580137
2021-12-03T22:50:27
2021-12-03T22:50:27
4,263,342
0
0
null
null
null
null
UTF-8
Java
false
false
7,223
java
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.networkmanager.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** * <p> * Returns details about a core network edge. * </p> * * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/CoreNetworkSegmentEdgeIdentifier" * target="_top">AWS API Documentation</a> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CoreNetworkSegmentEdgeIdentifier implements Serializable, Cloneable, StructuredPojo { /** * <p> * The ID of a core network. * </p> */ private String coreNetworkId; /** * <p> * The name of the segment edge. * </p> */ private String segmentName; /** * <p> * The Region where the segment edge is located. * </p> */ private String edgeLocation; /** * <p> * The ID of a core network. * </p> * * @param coreNetworkId * The ID of a core network. */ public void setCoreNetworkId(String coreNetworkId) { this.coreNetworkId = coreNetworkId; } /** * <p> * The ID of a core network. * </p> * * @return The ID of a core network. */ public String getCoreNetworkId() { return this.coreNetworkId; } /** * <p> * The ID of a core network. * </p> * * @param coreNetworkId * The ID of a core network. * @return Returns a reference to this object so that method calls can be chained together. */ public CoreNetworkSegmentEdgeIdentifier withCoreNetworkId(String coreNetworkId) { setCoreNetworkId(coreNetworkId); return this; } /** * <p> * The name of the segment edge. * </p> * * @param segmentName * The name of the segment edge. */ public void setSegmentName(String segmentName) { this.segmentName = segmentName; } /** * <p> * The name of the segment edge. * </p> * * @return The name of the segment edge. */ public String getSegmentName() { return this.segmentName; } /** * <p> * The name of the segment edge. * </p> * * @param segmentName * The name of the segment edge. * @return Returns a reference to this object so that method calls can be chained together. */ public CoreNetworkSegmentEdgeIdentifier withSegmentName(String segmentName) { setSegmentName(segmentName); return this; } /** * <p> * The Region where the segment edge is located. * </p> * * @param edgeLocation * The Region where the segment edge is located. */ public void setEdgeLocation(String edgeLocation) { this.edgeLocation = edgeLocation; } /** * <p> * The Region where the segment edge is located. * </p> * * @return The Region where the segment edge is located. */ public String getEdgeLocation() { return this.edgeLocation; } /** * <p> * The Region where the segment edge is located. * </p> * * @param edgeLocation * The Region where the segment edge is located. * @return Returns a reference to this object so that method calls can be chained together. */ public CoreNetworkSegmentEdgeIdentifier withEdgeLocation(String edgeLocation) { setEdgeLocation(edgeLocation); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCoreNetworkId() != null) sb.append("CoreNetworkId: ").append(getCoreNetworkId()).append(","); if (getSegmentName() != null) sb.append("SegmentName: ").append(getSegmentName()).append(","); if (getEdgeLocation() != null) sb.append("EdgeLocation: ").append(getEdgeLocation()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CoreNetworkSegmentEdgeIdentifier == false) return false; CoreNetworkSegmentEdgeIdentifier other = (CoreNetworkSegmentEdgeIdentifier) obj; if (other.getCoreNetworkId() == null ^ this.getCoreNetworkId() == null) return false; if (other.getCoreNetworkId() != null && other.getCoreNetworkId().equals(this.getCoreNetworkId()) == false) return false; if (other.getSegmentName() == null ^ this.getSegmentName() == null) return false; if (other.getSegmentName() != null && other.getSegmentName().equals(this.getSegmentName()) == false) return false; if (other.getEdgeLocation() == null ^ this.getEdgeLocation() == null) return false; if (other.getEdgeLocation() != null && other.getEdgeLocation().equals(this.getEdgeLocation()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCoreNetworkId() == null) ? 0 : getCoreNetworkId().hashCode()); hashCode = prime * hashCode + ((getSegmentName() == null) ? 0 : getSegmentName().hashCode()); hashCode = prime * hashCode + ((getEdgeLocation() == null) ? 0 : getEdgeLocation().hashCode()); return hashCode; } @Override public CoreNetworkSegmentEdgeIdentifier clone() { try { return (CoreNetworkSegmentEdgeIdentifier) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.networkmanager.model.transform.CoreNetworkSegmentEdgeIdentifierMarshaller.getInstance().marshall(this, protocolMarshaller); } }
[ "" ]
46944698d33ce6123c3c2fc993bc0091df1c7de1
ce3eb64bf344cfb2c7384a95493fc09b5af5f296
/source/AuthorWorkplace.java
69377403a1f3df7d1c39dfb557bdc703286c0767
[ "MIT" ]
permissive
ngphloc/zebra
d8da06eb4578bac5af69c381c1b7462a08bf37af
2d99addaaec70d29bb9ed9ffcef95425ffb88bd0
refs/heads/master
2022-05-25T06:22:32.342128
2022-05-03T02:49:06
2022-05-03T02:49:06
41,139,150
2
2
null
null
null
null
UTF-8
Java
false
false
5,453
java
/* This file is part of WOW! based on AHA! (Adaptive Hypermedia for All) which is free software (GNU General Public License) developed by Paul De Bra - Eindhoven University of Technology and University WOW! is also open source software; */ /** * AuthorWorkplace.java 1.0, August 30, 2008 * *Copyright (c) 2006 by Eindhoven University of Technology and modified by University of Science, 2008, Vietnam. * All Rights Reserved. * * This software is proprietary information of Eindhoven University of Technology and University * of Science. It may be used according to the GNU license of Eindhoven University of Technology */ import javax.servlet.*; import javax.servlet.http.*; import vn.spring.WOW.WOWStatic; import vn.spring.WOW.config.*; import java.io.*; public class AuthorWorkplace extends HttpServlet { /** * */ private static final long serialVersionUID = 1L; AuthorsConfig aconf; WowAuthor wowAuthor=null; HttpSession session; public AuthorWorkplace() { } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); session = request.getSession(true); response.setContentType("text/html;charset=UTF-8"); response.addHeader("Cache-Control","no-cache"); String login=request.getParameter("login"); Boolean awloggedin=(Boolean)session.getAttribute("awloggedin"); aconf=new AuthorsConfig(); if (((awloggedin==null) || awloggedin.equals(Boolean.FALSE)) && (login==null)) { out.write("<html>\n"+ " <head>\n"+ " <title>WOW! Author Workplace</title>\n"+ "\n"+ " <!-- implement stylesheet -->\n"+ " </head>\n"+ "\n"+ " <body>\n"+ "\n"+ " <center>\n"+ "\n"+ " <form method=POST>\n"+ " <table>\n"+ " <tr>\n"+ " <th>Login</th><td><input name=\"login\" type=\"text\" size=16></td>\n"+ " </tr>\n"+ " <tr>\n"+ " <th>Password</th><td><input name=\"password\" type=\"password\" size=16></td>\n"+ " </tr>\n"+ " <tr><td colspan=2 align=\"center\"><input type=submit value=\"Login\"></td></tr>\n"+ " </table>\n"+ " </form>\n"+ " </center>\n"+ " Default author: author, default password: test\n"+ " </body>\n"+ "</html>\n"); } else { String passwd=request.getParameter("password"); if((login!=null) && (passwd!=null)) { wowAuthor=aconf.GetAuthor(login); awloggedin=new Boolean((wowAuthor!=null) && wowAuthor.checkPasswd(passwd)); session.setAttribute("awloggedin",awloggedin); session.setAttribute("login", login); } out.write("<html>\n"+ " <head>\n"+ " <title>WOW! Author Workplace</title>\n"+ "\n"+ " <!-- implement stylesheet -->\n"+ " <link rel=\"stylesheet\" href=\"wow.css\">\n"+ " </head>\n"+ "\n"+ " <body>\n"+ " <table>\n"+ " <tr>\n"+ " <td valign=\"top\">\n"+ "\n"+ "<!-- start menu -->\n"+ " <h2>AuthorWorkplace</h2>\n"+ " <br>\n"); if(awloggedin.booleanValue()) { //String cepath = WOWStatic.config.Get("genlisteditorpath").substring(1)+"GenerateListEditor.html"; out.write( " <h3>Authoring tools</h3><br>\n"+ " <a href=\""+WOWStatic.AMTPATH.substring(1)+"AMt.html"+"\" title=\"Application Management Tool\"><b>Application Manatement Tool</b></a><br>\n"+ " <a href=\""+WOWStatic.BAYESAUTHORPATH.substring(1)+"BayesAuthor.html"+"\" title=\"Bayesian Network Tool\"><b>Bayesian Network Tool</b></a><br>\n"+ " <a href=\""+WOWStatic.GENLISTEDITORPATH.substring(1)+"GenerateListEditor.html"+"\" title=\"concept editor\"><b>Concept Editor</b></a><br>\n"+ " <a href=\""+WOWStatic.GRAPHAUTHORPATH.substring(1)+"GraphAuthor.html"+"\" title=\"graph author\"><b>Graph Author</b></a><br>\n"+ " <a href=\""+WOWStatic.FORMEDITORPATH.substring(1)+"FormEditor.html"+"\" title=\"form editor\"><b>FormEditor</b></a><br>\n"+ " <a href=\""+WOWStatic.TESTEDITORPATH.substring(1)+"TestEditor.html"+"\" title=\"test editor\"><b>TestEditor</b></a><br>\n"+ " <br>\n"+ " <a href=\"AuthorChange?login="+(String)session.getAttribute("login")+"\" title=\"change author settings\">Change your settings</a><br>\n"+ " <a href=\"AuthorLogout\" title=\"Exit\">Logout</a><br>\n"); } else { out.write(" <a href=\"AuthorWorkplace\" title=\"Please login first\">login</a>\n"); } out.write("<!-- end menu -->\n"+ " </td>\n"+ " <td>\n"+ "<!-- start content -->\n"+ " <center>\n"); if(awloggedin.booleanValue()) { out.write(" <table bgcolor=\"#FFFFFF\"><tr><td><img src=\"images/hcmuns.gif\" alt=\"University of Science logo\"/></td></tr></table>\n"+ " <br><br>\n"+ "<font size=3 face=\"helvetica;ariel;sansserif\""+ "color=\"#00E000\"> ACCESS GRANTED"); } else { out.write(" <table bgcolor=\"#FFFFFF\"><tr><td><img src=\"images/no-hcmuns.gif\" alt=\"No University of Science logo\"/></td></tr></table>\n"+ " <br><br>\n"+ "<font size=3 face=\"helvetica;ariel;sansserif\" color=\"#E00000\"> ACCESS DENIED"); } out.write(" <br></font>\n"+ "\n"+ " </center>\n"+ "<!-- end of content -->\n"+ " </td>\n"+ " </tr>\n"+ " </table>\n"+ " </body>\n"+ "</html>\n"); } } }
[ "ngphloc@gmail.com" ]
ngphloc@gmail.com
fd5c87c82df59c6e6ba0e31b5026dd1c929526f8
bac9bea9adc019065df002152a9b2725135cde9c
/cms/leimingtech-core/src/main/java/com/leimingtech/core/service/impl/SystemServiceImpl.java
1f68c90509ddb1d2b3399c6350d6d71b08365c98
[]
no_license
344436738/cms
7301b33d847077fecc59a000b5d45b4e08201511
bb627cdd1fe715db3f0c26f787444cc6c05a3665
refs/heads/master
2020-03-25T05:07:14.943878
2018-08-04T02:01:27
2018-08-04T02:01:27
143,430,160
0
0
null
null
null
null
UTF-8
Java
false
false
6,320
java
package com.leimingtech.core.service.impl; import java.util.Date; import java.util.List; import javax.servlet.http.HttpServletRequest; import com.leimingtech.core.util.UserUtils; import org.hibernate.Query; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.leimingtech.base.entity.temp.ContentExtractoruleEntity; import com.leimingtech.base.entity.temp.PfConfigEntity; import com.leimingtech.base.entity.temp.TSLog; import com.leimingtech.base.entity.temp.TSType; import com.leimingtech.base.entity.temp.TSTypegroup; import com.leimingtech.base.entity.temp.TSUser; import com.leimingtech.base.entity.temp.WechatConfigEntity; import com.leimingtech.core.service.CommonService; import com.leimingtech.core.service.SystemService; import com.leimingtech.core.util.IpUtil; import com.leimingtech.core.util.browser.BrowserUtils; @Service("systemService") @Transactional public class SystemServiceImpl implements SystemService { @Autowired private CommonService commonService; public TSUser checkUserExits(TSUser user) { return getUserByUserIdAndUserNameExits(user); } /** * 检查用户是否存在 * */ public TSUser getUserByUserIdAndUserNameExits(TSUser user) { // String password = PasswordUtil.encrypt(user.getUserName(), // user.getPassword(), PasswordUtil.getStaticSalt()); String query = "from TSUser u where u.userName = :username and u.password=:passowrd"; Query queryObject = commonService.getSession().createQuery(query); queryObject.setParameter("username" , user.getUserName()); queryObject.setParameter("passowrd" , user.getPassword()); List<TSUser> users = queryObject.list(); if(users != null && users.size() > 0) { return users.get(0); } return null; } /** * 添加日志 */ public void addLog(String logcontent , Short loglevel , Short operatetype) { HttpServletRequest request = com.leimingtech.common.ContextHolderUtils.getRequest(); String broswer = BrowserUtils.checkBrowse(request); TSLog log = new TSLog(); log.setLogcontent(logcontent); log.setLoglevel(loglevel); log.setOperatetype(operatetype); // log.setNote(oConvertUtils.getIp()); log.setNote(IpUtil.getIpAddr(request)); log.setBroswer(broswer); log.setOperatetime(com.leimingtech.common.utils.date.DataUtils.gettimestamp()); log.setTSUser(UserUtils.getUser()); log.setCreatedtime(new Date());// 创建时间 commonService.save(log); } /** * 根据类型编码和类型名称获取Type,如果为空则创建一个 * * @param typecode * @param typename * @return */ public TSType getType(String typecode , String typename , TSTypegroup tsTypegroup) { TSType actType = commonService.findUniqueByProperty(TSType.class , "typecode" , typecode); if(actType == null) { actType = new TSType(); actType.setTypecode(typecode); actType.setTypename(typename); actType.setTSTypegroup(tsTypegroup); actType.setCreatedtime(new Date());// 创建时间 commonService.save(actType); } return actType; } /** * 根据类型分组编码和名称获取TypeGroup,如果为空则创建一个 * @return */ public TSTypegroup getTypeGroup(String typegroupcode , String typgroupename) { TSTypegroup tsTypegroup = commonService.findUniqueByProperty(TSTypegroup.class , "typegroupcode" , typegroupcode); if(tsTypegroup == null) { tsTypegroup = new TSTypegroup(); tsTypegroup.setTypegroupcode(typegroupcode); tsTypegroup.setTypegroupname(typgroupename); tsTypegroup.setCreatedtime(new Date());// 创建时间 commonService.save(tsTypegroup); } return tsTypegroup; } public TSTypegroup getTypeGroupByCode(String typegroupCode) { TSTypegroup tsTypegroup = commonService.findUniqueByProperty(TSTypegroup.class , "typegroupcode" , typegroupCode); return tsTypegroup; } public void initAllTypeGroups() { List<TSTypegroup> typeGroups = this.commonService.loadAll(TSTypegroup.class); for(TSTypegroup tsTypegroup : typeGroups) { TSTypegroup.allTypeGroups.put(tsTypegroup.getTypegroupcode().toLowerCase() , tsTypegroup); List<TSType> types = this.commonService.findByProperty(TSType.class , "TSTypegroup.id" , tsTypegroup.getId()); TSTypegroup.allTypes.put(tsTypegroup.getTypegroupcode().toLowerCase() , types); } } public void refleshTypesCach(TSType type) { TSTypegroup tsTypegroup = type.getTSTypegroup(); TSTypegroup typeGroupEntity = this.commonService.get(TSTypegroup.class , tsTypegroup.getId()); List<TSType> types = this.commonService.findByProperty(TSType.class , "TSTypegroup.id" , tsTypegroup.getId()); TSTypegroup.allTypes.put(typeGroupEntity.getTypegroupcode().toLowerCase() , types); } public void refleshTypeGroupCach() { TSTypegroup.allTypeGroups.clear(); List<TSTypegroup> typeGroups = this.commonService.loadAll(TSTypegroup.class); for(TSTypegroup tsTypegroup : typeGroups) { TSTypegroup.allTypeGroups.put(tsTypegroup.getTypegroupcode().toLowerCase() , tsTypegroup); } } public void initAllPfConfig() { List<PfConfigEntity> pfconfigs = this.commonService.loadAll(PfConfigEntity.class); for(PfConfigEntity pfconfig : pfconfigs) { PfConfigEntity.pfconfigCache.put(pfconfig.getConfigkey() , pfconfig.getConfigvalue()); } } public void refleshPfConfig() { PfConfigEntity.pfconfigCache.clear(); List<PfConfigEntity> pfconfigs = this.commonService.loadAll(PfConfigEntity.class); for(PfConfigEntity pfconfig : pfconfigs) { PfConfigEntity.pfconfigCache.put(pfconfig.getConfigkey() , pfconfig.getConfigvalue()); } } @Override public void loadContentExtractorule() { List<ContentExtractoruleEntity> list = this.commonService.loadAll(ContentExtractoruleEntity.class); ContentExtractoruleEntity.allContentExtractorule.clear(); ContentExtractoruleEntity.allContentExtractorule.addAll(list); } @Override public void reloadContentExtractorule() { this.loadContentExtractorule(); } @Override public void loadWechatConfig() { List<WechatConfigEntity> list = this.commonService.loadAll(WechatConfigEntity.class); WechatConfigEntity.allWechatConfig.clear(); WechatConfigEntity.allWechatConfig.addAll(list); } @Override public void reloadWechatConfig() { this.loadWechatConfig(); } }
[ "344436738@qq.com" ]
344436738@qq.com
889fc465076942e33c0c8bbf6be6168655725b40
bea816e0789683c5af42a17dad3b5b883dfddb4f
/app/src/main/java/com/example/hiraganamaster/EndingFail.java
0ae5a4dc4ae35e2d8f89d5f858eedf66326c3a09
[]
no_license
japkidzsola/HiraganaMaster2
47ee79a63da290763a1acfc94a89255503be0ab4
056ea100fa5a9f09a4b77f1895da20c14124cd5e
refs/heads/master
2022-04-10T05:51:51.723238
2020-03-30T10:46:48
2020-03-30T10:46:48
237,989,720
1
0
null
null
null
null
UTF-8
Java
false
false
2,400
java
package com.example.hiraganamaster; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.example.hiraganamaster.ui.hiraganalearn.HiraganaLearnFragment; import com.example.hiraganamaster.ui.test.TestFragment; public class EndingFail extends AppCompatActivity { Button failredomedium, failredobeginner, failredolearn; TextView mistakename; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_ending_fail); failredomedium = findViewById(R.id.failredomedium); failredobeginner = findViewById(R.id.failredobeginner); failredolearn = findViewById(R.id.failredolearn); mistakename = findViewById(R.id.mistakename); String mistakenamefromtest = getIntent().getExtras().getString("Mistake"); String mistake = getString(R.string.mistake); String timeout = getString(R.string.timeout); if(mistakenamefromtest.equals(timeout)) { mistakename.setText(timeout); } else { mistakename.setText(String.format("%s %s", mistake, mistakenamefromtest)); } final String testamount = getIntent().getExtras().getString("Value"); failredomedium.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(EndingFail.this, Medium.class); intent.putExtra("Value",testamount); startActivity(intent); finish(); } }); failredobeginner.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(EndingFail.this, Beginner.class); intent.putExtra("Value",testamount); startActivity(intent); finish(); } }); failredolearn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { finish(); } }); } }
[ "suzukipontzsolt@gmail.com" ]
suzukipontzsolt@gmail.com
7fd1fc1577b6769bead2f923bc672c7b71175335
7c087c4f38c370b42aa11f4370212ea16d88ff21
/app/src/main/java/com/stardust/covid19tracker/SplashActivity.java
43df43c6f1f52cc9f944da25a611848d656c4aca
[]
no_license
hack3rinsider/Covid19TrackerIndia
58bb324133f83516804971c28e45721af8c6a657
c5f0d31a005afbc48a0bdefbb73dd465b63f3bd4
refs/heads/master
2023-07-24T06:53:11.039868
2021-08-31T12:57:28
2021-08-31T12:57:28
401,703,456
0
0
null
null
null
null
UTF-8
Java
false
false
828
java
package com.stardust.covid19tracker; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; public class SplashActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); getSupportActionBar().hide(); Thread thread = new Thread(){ public void run(){ try { sleep(3000); }catch (Exception e){ e.printStackTrace(); }finally{ Intent intent = new Intent(SplashActivity.this ,MainActivity.class); startActivity(intent); } } };thread.start(); } }
[ "prashantshivadelic@gmail.com" ]
prashantshivadelic@gmail.com
9536ece59ebf76c31b62ccb7ddac67314e037803
6450bf49963fbbbc130d59841112fdbac4be4a7e
/source/src/com/ipx/json/facturaRespuesta.java
c33acd9bb5d066490237fa4dbf13e90602285dcd
[]
no_license
Alucarth/CascadaPosOffline
e997bdcf3235f9fc0560ee7afd2e1bf4da975955
17b484163f19237f6a12f86a46ed5abcd31e2dc4
refs/heads/master
2021-01-13T14:36:52.717997
2016-03-24T01:06:08
2016-03-24T01:06:08
43,385,199
0
0
null
null
null
null
UTF-8
Java
false
false
1,332
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 com.ipx.json; import org.json.me.JSONException; import org.json.me.JSONObject; /** * * @author David */ public class facturaRespuesta { private String resultado; private String invoice_number; public facturaRespuesta(String jsonText) { try { JSONObject json = new JSONObject(jsonText); if(json.has("resultado")) { this.setResultado(json.getString("resultado")); } if(json.has("invoice_number")) { this.setInvoice_number(json.getString("invoice_number")); } } catch (JSONException ex) { ex.printStackTrace(); } } public String getResultado() { return resultado; } public void setResultado(String resultado) { this.resultado = resultado; } public String getInvoice_number() { return invoice_number; } public void setInvoice_number(String invoice_number) { this.invoice_number = invoice_number; } }
[ "ltorrezs2008@gmail.com" ]
ltorrezs2008@gmail.com
9ebaf53805e07c37563da06e0ba049c577baa9da
c28064109ece73947eb37b522ed8bb5b9e4809bb
/ChaCha20/src/main/java/com/cryptoregistry/ml/chacha20/ChaCha20.java
7c33ba86e47b63dc4555a72b43afa3ecdead5223
[ "Apache-2.0" ]
permissive
buttermilk-crypto/microlibraries
f674ab0d968ca3f2c7d05e6e8107c1758b94f0bd
2aacd95998ff7e9eb36c350d9e7a862da4ffc932
refs/heads/master
2021-01-20T20:36:31.146551
2016-07-08T16:25:06
2016-07-08T16:25:06
62,864,943
1
0
null
null
null
null
UTF-8
Java
false
false
19,831
java
/* Copyright (c) 2000-2015 The Legion of the Bouncy Castle Inc. (http://www.bouncycastle.org) Copyright 2016, David R. Smith, All Rights Reserved This file is part of TweetPepper. TweetPepper is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. TweetPepper 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 TweetPepper. If not, see <http://www.gnu.org/licenses/>. */ package com.cryptoregistry.ml.chacha20; /** * ChaCha20 from BC with Microlibrary packaging. * * @author Dave * */ public class ChaCha20 { public ChaCha20() {} /** * Process buf with the streaming cipher. Key must be 128 or 256 bits. Nonce must be 64 bits. To decrypt, * just pass in buf filled the encrypted bytes instead of the raw ones. * * @param key * @param nonce * @param buf */ public void process(byte[] key, byte[] nonce, byte[] buf) { switch(key.length){ case 16: case 32: break; default: throw new RuntimeException("key must be 128 or 256 bits in size"); } if(nonce.length != 8) throw new RuntimeException("nonce must be 64 bits in size"); ChaChaEngine e = new ChaChaEngine(Salsa20Engine.DEFAULT_ROUNDS); e.init(true, new ParametersWithIV(new KeyParameter(key), nonce)); e.processBytes(buf, 0, buf.length, buf, 0); } } interface CipherParameters { } class KeyParameter implements CipherParameters { private byte[] key; public KeyParameter(byte[] key) { this(key, 0, key.length); } public KeyParameter(byte[] key, int keyOff, int keyLen) { this.key = new byte[keyLen]; System.arraycopy(key, keyOff, this.key, 0, keyLen); } public byte[] getKey() { return key; } } class ParametersWithIV implements CipherParameters { private byte[] iv; private CipherParameters parameters; public ParametersWithIV(CipherParameters parameters, byte[] iv) { this(parameters, iv, 0, iv.length); } public ParametersWithIV(CipherParameters parameters, byte[] iv, int ivOff, int ivLen) { this.iv = new byte[ivLen]; this.parameters = parameters; System.arraycopy(iv, ivOff, this.iv, 0, ivLen); } public byte[] getIV() { return iv; } public CipherParameters getParameters() { return parameters; } } class Salsa20Engine { public final static int DEFAULT_ROUNDS = 20; /** Constants */ private final static int STATE_SIZE = 16; // 16, 32 bit ints = 64 bytes private final int[] TAU_SIGMA = littleEndianToInt( toByteArray("expand 16-byte k" + "expand 32-byte k"), 0, 8); // from Pack private int[] littleEndianToInt(byte[] bs, int off, int count) { int[] ns = new int[count]; for (int i = 0; i < ns.length; ++i) { ns[i] = littleEndianToInt(bs, off); off += 4; } return ns; } protected void packTauOrSigma(int keyLength, int[] state, int stateOffset) { int tsOff = (keyLength - 16) / 4; state[stateOffset] = TAU_SIGMA[tsOff]; state[stateOffset + 1] = TAU_SIGMA[tsOff + 1]; state[stateOffset + 2] = TAU_SIGMA[tsOff + 2]; state[stateOffset + 3] = TAU_SIGMA[tsOff + 3]; } protected int rounds; /* * variables to hold the state of the engine during encryption and * decryption */ private int index = 0; protected int[] engineState = new int[STATE_SIZE]; // state protected int[] x = new int[STATE_SIZE]; // internal buffer private byte[] keyStream = new byte[STATE_SIZE * 4]; // expanded state, 64 // bytes private boolean initialised = false; /* * internal counter */ private int cW0, cW1, cW2; /** * Creates a 20 round Salsa20 engine. */ public Salsa20Engine() { this(DEFAULT_ROUNDS); } /** * Creates a Salsa20 engine with a specific number of rounds. * * @param rounds * the number of rounds (must be an even number). */ public Salsa20Engine(int rounds) { if (rounds <= 0 || (rounds & 1) != 0) { throw new IllegalArgumentException( "'rounds' must be a positive, even number"); } this.rounds = rounds; } /** * initialise a Salsa20 cipher. * * @param forEncryption * whether or not we are for encryption. * @param params * the parameters required to set up the cipher. * @exception IllegalArgumentException * if the params argument is inappropriate. */ public void init(boolean forEncryption, CipherParameters params) { /* * Salsa20 encryption and decryption is completely symmetrical, so the * 'forEncryption' is irrelevant. (Like 90% of stream ciphers) */ if (!(params instanceof ParametersWithIV)) { throw new IllegalArgumentException(getAlgorithmName() + " Init parameters must include an IV"); } ParametersWithIV ivParams = (ParametersWithIV) params; byte[] iv = ivParams.getIV(); if (iv == null || iv.length != getNonceSize()) { throw new IllegalArgumentException(getAlgorithmName() + " requires exactly " + getNonceSize() + " bytes of IV"); } CipherParameters keyParam = ivParams.getParameters(); if (keyParam == null) { if (!initialised) { throw new IllegalStateException( getAlgorithmName() + " KeyParameter can not be null for first initialisation"); } setKey(null, iv); } else if (keyParam instanceof KeyParameter) { setKey(((KeyParameter) keyParam).getKey(), iv); } else { throw new IllegalArgumentException( getAlgorithmName() + " Init parameters must contain a KeyParameter (or null for re-init)"); } reset(); initialised = true; } protected int getNonceSize() { return 8; } public String getAlgorithmName() { String name = "Salsa20"; if (rounds != DEFAULT_ROUNDS) { name += "/" + rounds; } return name; } public byte returnByte(byte in) { if (limitExceeded()) { throw new MaxBytesExceededException( "2^70 byte limit per IV; Change IV"); } byte out = (byte) (keyStream[index] ^ in); index = (index + 1) & 63; if (index == 0) { advanceCounter(); generateKeyStream(keyStream); } return out; } protected void advanceCounter(long diff) { int hi = (int) (diff >>> 32); int lo = (int) diff; if (hi > 0) { engineState[9] += hi; } int oldState = engineState[8]; engineState[8] += lo; if (oldState != 0 && engineState[8] < oldState) { engineState[9]++; } } protected void advanceCounter() { if (++engineState[8] == 0) { ++engineState[9]; } } protected void retreatCounter(long diff) { int hi = (int) (diff >>> 32); int lo = (int) diff; if (hi != 0) { if ((engineState[9] & 0xffffffffL) >= (hi & 0xffffffffL)) { engineState[9] -= hi; } else { throw new IllegalStateException( "attempt to reduce counter past zero."); } } if ((engineState[8] & 0xffffffffL) >= (lo & 0xffffffffL)) { engineState[8] -= lo; } else { if (engineState[9] != 0) { --engineState[9]; engineState[8] -= lo; } else { throw new IllegalStateException( "attempt to reduce counter past zero."); } } } protected void retreatCounter() { if (engineState[8] == 0 && engineState[9] == 0) { throw new IllegalStateException( "attempt to reduce counter past zero."); } if (--engineState[8] == -1) { --engineState[9]; } } public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) { if (!initialised) { throw new IllegalStateException(getAlgorithmName() + " not initialised"); } if ((inOff + len) > in.length) { throw new DataLengthException("input buffer too short"); } if ((outOff + len) > out.length) { throw new OutputLengthException("output buffer too short"); } if (limitExceeded(len)) { throw new MaxBytesExceededException( "2^70 byte limit per IV would be exceeded; Change IV"); } for (int i = 0; i < len; i++) { out[i + outOff] = (byte) (keyStream[index] ^ in[i + inOff]); index = (index + 1) & 63; if (index == 0) { advanceCounter(); generateKeyStream(keyStream); } } return len; } public long skip(long numberOfBytes) { if (numberOfBytes >= 0) { long remaining = numberOfBytes; if (remaining >= 64) { long count = remaining / 64; advanceCounter(count); remaining -= count * 64; } int oldIndex = index; index = (index + (int) remaining) & 63; if (index < oldIndex) { advanceCounter(); } } else { long remaining = -numberOfBytes; if (remaining >= 64) { long count = remaining / 64; retreatCounter(count); remaining -= count * 64; } for (long i = 0; i < remaining; i++) { if (index == 0) { retreatCounter(); } index = (index - 1) & 63; } } generateKeyStream(keyStream); return numberOfBytes; } public long seekTo(long position) { reset(); return skip(position); } public long getPosition() { return getCounter() * 64 + index; } public void reset() { index = 0; resetLimitCounter(); resetCounter(); generateKeyStream(keyStream); } protected long getCounter() { return ((long) engineState[9] << 32) | (engineState[8] & 0xffffffffL); } protected void resetCounter() { engineState[8] = engineState[9] = 0; } protected void setKey(byte[] keyBytes, byte[] ivBytes) { if (keyBytes != null) { if ((keyBytes.length != 16) && (keyBytes.length != 32)) { throw new IllegalArgumentException(getAlgorithmName() + " requires 128 bit or 256 bit key"); } int tsOff = (keyBytes.length - 16) / 4; engineState[0] = TAU_SIGMA[tsOff]; engineState[5] = TAU_SIGMA[tsOff + 1]; engineState[10] = TAU_SIGMA[tsOff + 2]; engineState[15] = TAU_SIGMA[tsOff + 3]; // Key littleEndianToInt(keyBytes, 0, engineState, 1, 4); littleEndianToInt(keyBytes, keyBytes.length - 16, engineState, 11, 4); } // IV littleEndianToInt(ivBytes, 0, engineState, 6, 2); } protected void generateKeyStream(byte[] output) { salsaCore(rounds, engineState, x); intToLittleEndian(x, output, 0); } /** * Salsa20 function * * @param input * input data */ public void salsaCore(int rounds, int[] input, int[] x) { if (input.length != 16) { throw new IllegalArgumentException(); } if (x.length != 16) { throw new IllegalArgumentException(); } if (rounds % 2 != 0) { throw new IllegalArgumentException("Number of rounds must be even"); } int x00 = input[0]; int x01 = input[1]; int x02 = input[2]; int x03 = input[3]; int x04 = input[4]; int x05 = input[5]; int x06 = input[6]; int x07 = input[7]; int x08 = input[8]; int x09 = input[9]; int x10 = input[10]; int x11 = input[11]; int x12 = input[12]; int x13 = input[13]; int x14 = input[14]; int x15 = input[15]; for (int i = rounds; i > 0; i -= 2) { x04 ^= rotl(x00 + x12, 7); x08 ^= rotl(x04 + x00, 9); x12 ^= rotl(x08 + x04, 13); x00 ^= rotl(x12 + x08, 18); x09 ^= rotl(x05 + x01, 7); x13 ^= rotl(x09 + x05, 9); x01 ^= rotl(x13 + x09, 13); x05 ^= rotl(x01 + x13, 18); x14 ^= rotl(x10 + x06, 7); x02 ^= rotl(x14 + x10, 9); x06 ^= rotl(x02 + x14, 13); x10 ^= rotl(x06 + x02, 18); x03 ^= rotl(x15 + x11, 7); x07 ^= rotl(x03 + x15, 9); x11 ^= rotl(x07 + x03, 13); x15 ^= rotl(x11 + x07, 18); x01 ^= rotl(x00 + x03, 7); x02 ^= rotl(x01 + x00, 9); x03 ^= rotl(x02 + x01, 13); x00 ^= rotl(x03 + x02, 18); x06 ^= rotl(x05 + x04, 7); x07 ^= rotl(x06 + x05, 9); x04 ^= rotl(x07 + x06, 13); x05 ^= rotl(x04 + x07, 18); x11 ^= rotl(x10 + x09, 7); x08 ^= rotl(x11 + x10, 9); x09 ^= rotl(x08 + x11, 13); x10 ^= rotl(x09 + x08, 18); x12 ^= rotl(x15 + x14, 7); x13 ^= rotl(x12 + x15, 9); x14 ^= rotl(x13 + x12, 13); x15 ^= rotl(x14 + x13, 18); } x[0] = x00 + input[0]; x[1] = x01 + input[1]; x[2] = x02 + input[2]; x[3] = x03 + input[3]; x[4] = x04 + input[4]; x[5] = x05 + input[5]; x[6] = x06 + input[6]; x[7] = x07 + input[7]; x[8] = x08 + input[8]; x[9] = x09 + input[9]; x[10] = x10 + input[10]; x[11] = x11 + input[11]; x[12] = x12 + input[12]; x[13] = x13 + input[13]; x[14] = x14 + input[14]; x[15] = x15 + input[15]; } /** * Rotate left * * @param x * value to rotate * @param y * amount to rotate x * * @return rotated x */ protected int rotl(int x, int y) { return (x << y) | (x >>> -y); } private void resetLimitCounter() { cW0 = 0; cW1 = 0; cW2 = 0; } private boolean limitExceeded() { if (++cW0 == 0) { if (++cW1 == 0) { return (++cW2 & 0x20) != 0; // 2^(32 + 32 + 6) } } return false; } /* * this relies on the fact len will always be positive. */ private boolean limitExceeded(int len) { cW0 += len; if (cW0 < len && cW0 >= 0) { if (++cW1 == 0) { return (++cW2 & 0x20) != 0; // 2^(32 + 32 + 6) } } return false; } // from Pack protected int littleEndianToInt(byte[] bs, int off) { int n = bs[off] & 0xff; n |= (bs[++off] & 0xff) << 8; n |= (bs[++off] & 0xff) << 16; n |= bs[++off] << 24; return n; } protected void littleEndianToInt(byte[] bs, int bOff, int[] ns, int nOff, int count) { for (int i = 0; i < count; ++i) { ns[nOff + i] = littleEndianToInt(bs, bOff); bOff += 4; } } protected void intToLittleEndian(int n, byte[] bs, int off) { bs[off] = (byte) (n); bs[++off] = (byte) (n >>> 8); bs[++off] = (byte) (n >>> 16); bs[++off] = (byte) (n >>> 24); } protected void intToLittleEndian(int[] ns, byte[] bs, int off) { for (int i = 0; i < ns.length; ++i) { intToLittleEndian(ns[i], bs, off); off += 4; } } // from Strings private byte[] toByteArray(String string) { byte[] bytes = new byte[string.length()]; for (int i = 0; i != bytes.length; i++) { char ch = string.charAt(i); bytes[i] = (byte) ch; } return bytes; } // Exceptions @SuppressWarnings("serial") static class RuntimeCryptoException extends RuntimeException { public RuntimeCryptoException() { } public RuntimeCryptoException(String message) { super(message); } } @SuppressWarnings("serial") static class DataLengthException extends RuntimeCryptoException { public DataLengthException() { } public DataLengthException(String message) { super(message); } } @SuppressWarnings("serial") static class MaxBytesExceededException extends RuntimeCryptoException { public MaxBytesExceededException() { } public MaxBytesExceededException(String message) { super(message); } } @SuppressWarnings("serial") static class OutputLengthException extends DataLengthException { public OutputLengthException(String msg) { super(msg); } } } class ChaChaEngine extends Salsa20Engine { public ChaChaEngine(int rounds) { super(rounds); } public String getAlgorithmName() { return "ChaCha" + rounds; } protected void advanceCounter(long diff) { int hi = (int) (diff >>> 32); int lo = (int) diff; if (hi > 0) { engineState[13] += hi; } int oldState = engineState[12]; engineState[12] += lo; if (oldState != 0 && engineState[12] < oldState) { engineState[13]++; } } protected void advanceCounter() { if (++engineState[12] == 0) { ++engineState[13]; } } protected void retreatCounter(long diff) { int hi = (int) (diff >>> 32); int lo = (int) diff; if (hi != 0) { if ((engineState[13] & 0xffffffffL) >= (hi & 0xffffffffL)) { engineState[13] -= hi; } else { throw new IllegalStateException( "attempt to reduce counter past zero."); } } if ((engineState[12] & 0xffffffffL) >= (lo & 0xffffffffL)) { engineState[12] -= lo; } else { if (engineState[13] != 0) { --engineState[13]; engineState[12] -= lo; } else { throw new IllegalStateException( "attempt to reduce counter past zero."); } } } protected void retreatCounter() { if (engineState[12] == 0 && engineState[13] == 0) { throw new IllegalStateException( "attempt to reduce counter past zero."); } if (--engineState[12] == -1) { --engineState[13]; } } protected long getCounter() { return ((long) engineState[13] << 32) | (engineState[12] & 0xffffffffL); } protected void resetCounter() { engineState[12] = engineState[13] = 0; } protected void setKey(byte[] keyBytes, byte[] ivBytes) { if (keyBytes != null) { if ((keyBytes.length != 16) && (keyBytes.length != 32)) { throw new IllegalArgumentException(getAlgorithmName() + " requires 128 bit or 256 bit key"); } packTauOrSigma(keyBytes.length, engineState, 0); // Key littleEndianToInt(keyBytes, 0, engineState, 4, 4); littleEndianToInt(keyBytes, keyBytes.length - 16, engineState, 8, 4); } // IV littleEndianToInt(ivBytes, 0, engineState, 14, 2); } protected void generateKeyStream(byte[] output) { chachaCore(rounds, engineState, x); intToLittleEndian(x, output, 0); } /** * ChaCha function * * @param input * input data */ public void chachaCore(int rounds, int[] input, int[] x) { if (input.length != 16) { throw new IllegalArgumentException(); } if (x.length != 16) { throw new IllegalArgumentException(); } if (rounds % 2 != 0) { throw new IllegalArgumentException("Number of rounds must be even"); } int x00 = input[0]; int x01 = input[1]; int x02 = input[2]; int x03 = input[3]; int x04 = input[4]; int x05 = input[5]; int x06 = input[6]; int x07 = input[7]; int x08 = input[8]; int x09 = input[9]; int x10 = input[10]; int x11 = input[11]; int x12 = input[12]; int x13 = input[13]; int x14 = input[14]; int x15 = input[15]; for (int i = rounds; i > 0; i -= 2) { x00 += x04; x12 = rotl(x12 ^ x00, 16); x08 += x12; x04 = rotl(x04 ^ x08, 12); x00 += x04; x12 = rotl(x12 ^ x00, 8); x08 += x12; x04 = rotl(x04 ^ x08, 7); x01 += x05; x13 = rotl(x13 ^ x01, 16); x09 += x13; x05 = rotl(x05 ^ x09, 12); x01 += x05; x13 = rotl(x13 ^ x01, 8); x09 += x13; x05 = rotl(x05 ^ x09, 7); x02 += x06; x14 = rotl(x14 ^ x02, 16); x10 += x14; x06 = rotl(x06 ^ x10, 12); x02 += x06; x14 = rotl(x14 ^ x02, 8); x10 += x14; x06 = rotl(x06 ^ x10, 7); x03 += x07; x15 = rotl(x15 ^ x03, 16); x11 += x15; x07 = rotl(x07 ^ x11, 12); x03 += x07; x15 = rotl(x15 ^ x03, 8); x11 += x15; x07 = rotl(x07 ^ x11, 7); x00 += x05; x15 = rotl(x15 ^ x00, 16); x10 += x15; x05 = rotl(x05 ^ x10, 12); x00 += x05; x15 = rotl(x15 ^ x00, 8); x10 += x15; x05 = rotl(x05 ^ x10, 7); x01 += x06; x12 = rotl(x12 ^ x01, 16); x11 += x12; x06 = rotl(x06 ^ x11, 12); x01 += x06; x12 = rotl(x12 ^ x01, 8); x11 += x12; x06 = rotl(x06 ^ x11, 7); x02 += x07; x13 = rotl(x13 ^ x02, 16); x08 += x13; x07 = rotl(x07 ^ x08, 12); x02 += x07; x13 = rotl(x13 ^ x02, 8); x08 += x13; x07 = rotl(x07 ^ x08, 7); x03 += x04; x14 = rotl(x14 ^ x03, 16); x09 += x14; x04 = rotl(x04 ^ x09, 12); x03 += x04; x14 = rotl(x14 ^ x03, 8); x09 += x14; x04 = rotl(x04 ^ x09, 7); } x[0] = x00 + input[0]; x[1] = x01 + input[1]; x[2] = x02 + input[2]; x[3] = x03 + input[3]; x[4] = x04 + input[4]; x[5] = x05 + input[5]; x[6] = x06 + input[6]; x[7] = x07 + input[7]; x[8] = x08 + input[8]; x[9] = x09 + input[9]; x[10] = x10 + input[10]; x[11] = x11 + input[11]; x[12] = x12 + input[12]; x[13] = x13 + input[13]; x[14] = x14 + input[14]; x[15] = x15 + input[15]; } }
[ "dave@cryptoregistry.com" ]
dave@cryptoregistry.com
f480848ad8e2f159cff05244b7f7af9596d85e09
84819f6ef75fc48cadfbfa1691f602d84e0baa75
/moon_ui_img_picker/src/main/java/com/meili/moon/imagepicker/adapter/ImageChooseListAdapter.java
89025d9ac4e58e3e24da2b9607f7294281996f23
[]
no_license
1181631922/ImagePicker
922960048d3d529c16e48a2d7b34bb4647fedd62
f219a16ed5ef846d6e93aab1d7a4e11b1e8d392c
refs/heads/master
2020-04-24T10:18:41.906480
2019-02-21T14:54:52
2019-02-21T14:54:52
171,889,108
0
0
null
null
null
null
UTF-8
Java
false
false
7,749
java
package com.meili.moon.imagepicker.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.util.DisplayMetrics; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; import android.widget.RelativeLayout; import com.meili.moon.imagepicker.MNImagePicker; import com.meili.moon.imagepicker.R; import com.meili.moon.imagepicker.ibean.IImageBean; import com.meili.moon.imagepicker.view.MNPickerView; import java.util.List; /** * Author: fanyafeng * Date: 18/7/6 下午6:52 * Email: fanyafeng@live.cn */ public class ImageChooseListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { private final static int ITEM_TYPE_ADD = 2000; private final static int ITEM_TYPE_PICTURE = 3000; private static int SCREEN_WIDTH; private static int ONE_DP; private static RelativeLayout.LayoutParams LAYOUTPARAMS; private boolean isShowAdd = true; private Context context; private List<IImageBean> imageBeanList; private OnChooseImgChangeListener onChooseImgChangeListener; public void setOnChooseImgChangeListener(OnChooseImgChangeListener onChooseImgChangeListener) { this.onChooseImgChangeListener = onChooseImgChangeListener; } public interface OnChooseImgChangeListener { void onChooseImgChangeListener(IImageBean imageBean, int position); } public ImageChooseListAdapter(Context context, List<IImageBean> imageBeanList) { this.context = context; this.imageBeanList = imageBeanList; SCREEN_WIDTH = getScreenWidth(context); ONE_DP = (int) dip2px(context, 1); LAYOUTPARAMS = new RelativeLayout.LayoutParams(SCREEN_WIDTH / 4, SCREEN_WIDTH / 4); LAYOUTPARAMS.setMargins(0, (int) (0.9 * ONE_DP), 0, 0); } public void refreshData(List<IImageBean> imageBeanList) { this.imageBeanList = imageBeanList; notifyDataSetChanged(); } @Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { switch (viewType) { case ITEM_TYPE_PICTURE: View viewPicture = LayoutInflater.from(context).inflate(R.layout.mn_item_picker_list_layout, parent, false); return new ImageChooseListViewHolder(viewPicture); case ITEM_TYPE_ADD: View viewAdd = LayoutInflater.from(context).inflate(R.layout.mn_item_picker_add_layout, parent, false); return new AddPictureViewHolder(viewAdd); } View viewPicture = LayoutInflater.from(context).inflate(R.layout.mn_item_picker_list_layout, parent, false); return new ImageChooseListViewHolder(viewPicture); } @Override public int getItemViewType(int position) { if (isShowAdd) { return position == 0 ? ITEM_TYPE_ADD : ITEM_TYPE_PICTURE; } else { return ITEM_TYPE_PICTURE; } } @Override public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) { if (holder instanceof ImageChooseListViewHolder) { final IImageBean imageBean = imageBeanList.get(isShowAdd ? position - 1 : position); ImageChooseListViewHolder viewHolder = (ImageChooseListViewHolder) holder; switch (position % 4) { case 0: viewHolder.layoutItemPickerList.setPadding(0, 0, (int) (0.9 * ONE_DP), 0); viewHolder.layoutItemPickerList.setLayoutParams(LAYOUTPARAMS); break; case 1: viewHolder.layoutItemPickerList.setPadding((int) (0.3 * ONE_DP), 0, (int) (0.6 * ONE_DP), 0); viewHolder.layoutItemPickerList.setLayoutParams(LAYOUTPARAMS); break; case 2: viewHolder.layoutItemPickerList.setPadding((int) (0.6 * ONE_DP), 0, (int) (0.3 * ONE_DP), 0); viewHolder.layoutItemPickerList.setLayoutParams(LAYOUTPARAMS); break; case 3: viewHolder.layoutItemPickerList.setPadding((int) (0.9 * ONE_DP), 0, 0, 0); viewHolder.layoutItemPickerList.setLayoutParams(LAYOUTPARAMS); break; } int width = SCREEN_WIDTH / 4 - ONE_DP; MNImagePicker.getInstance().getImageLoadFrame().loadPhoto(context, imageBean.getImgPath(), viewHolder.mnItemPickerList, width, width); //必须需要重置,否则复用会出问题 viewHolder.mnItemPickerList.setCancel(false); viewHolder.mnItemPickerList.setHasCancel(true); viewHolder.mnItemPickerList.setCanOperate(true); viewHolder.mnItemPickerList.setOnOperateListener(new MNPickerView.OnOperateListener() { @Override public void OnStatusListener() { // TODO: 18/7/6 执行删除操作 if (imageBeanList.contains(imageBean)) { imageBeanList.remove(imageBean); if (onChooseImgChangeListener != null) { onChooseImgChangeListener.onChooseImgChangeListener(imageBean, position); } notifyDataSetChanged(); } } }); } else if (holder instanceof AddPictureViewHolder) { AddPictureViewHolder viewHolder = (AddPictureViewHolder) holder; viewHolder.layoutItemPickerCamera.setPadding(0, 0, 1 * ONE_DP, 0); viewHolder.layoutItemPickerCamera.setLayoutParams(LAYOUTPARAMS); viewHolder.itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // MLImagePicker.getInstance().startPictureChoose((Activity) context, imageBeanList, 100); MNImagePicker.getInstance().photoPickForMulti(context,imageBeanList,100); } }); } } @Override public int getItemCount() { return isShowAdd ? imageBeanList.size() + 1 : imageBeanList.size(); } class ImageChooseListViewHolder extends RecyclerView.ViewHolder { private RelativeLayout layoutItemPickerList; private MNPickerView mnItemPickerList; public ImageChooseListViewHolder(View itemView) { super(itemView); layoutItemPickerList = itemView.findViewById(R.id.layoutItemPickerList); mnItemPickerList = itemView.findViewById(R.id.mnItemPickerList); } } class AddPictureViewHolder extends RecyclerView.ViewHolder { RelativeLayout layoutItemPickerCamera; MNPickerView mnItemPickerCamera; public AddPictureViewHolder(View itemView) { super(itemView); layoutItemPickerCamera = itemView.findViewById(R.id.layoutItemPickerCamera); mnItemPickerCamera = itemView.findViewById(R.id.mnItemPickerCamera); } } private int getScreenWidth(Context context) { if (context != null) { DisplayMetrics displayMetrics = new DisplayMetrics(); WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); windowManager.getDefaultDisplay().getMetrics(displayMetrics); return displayMetrics.widthPixels; } else { return 1080; } } private float dip2px(Context context, float dipValue) { final float scale = context.getResources().getDisplayMetrics().density; return (dipValue * scale + 0.5f); } }
[ "fanyafeng@365rili.com" ]
fanyafeng@365rili.com