text:
<?xml version="1.0" encoding="utf-8" standalone="no"?>

<resources>
    <string name="highlight_stabilo">Highlight</string>
    <string name="menuDonasi">Donation</string>
    <string name="menuSupport">Support</string>
    <string name="mengimpor_titiktiga">Restoring…</string>
    <string name="mengekspor_titiktiga">Creating backup…</string>
    <string name="bagikan_renungan">Share devotion</string>
    <string name="renungan_sudah_disalin">Devotion has been copied.</string>
    <string name="salin_renungan">Copy devotion</string>
    <string name="ekspor_berhasil_file_yang_dihasilkan_file">Backup was successful.\n\nResults are in file: %s</string>
    <string name="impor_berhasil_angka_diproses">Restore was successful. In total %1$d bookmarks, notes, and/or highlights, and also %2$d labels were processed.</string>
    <string name="terjadi_kesalahan_ketika_mengekspor_pesan">There were error(s) when creating backup: %s</string>
    <string name="ekspor_pembatas_buku_dan_catatan_tanya">Create backup of bookmarks, notes, and highlights to SD Card or USB Storage? Existing backups will be overwritten.</string>
    <string name="terjadi_kesalahan_ketika_mengimpor_pesan">There were error(s) when restoring: %s</string>
    <string name="apakah_anda_mau_menumpuk_pembatas_buku_dan_catatan_tanya">Overwrite the bookmarks, notes, and highlights you currently have?</string>
    <string name="file_tidak_bisa_dibaca_file">The file does not exist or could not be read: %s</string>
    <string name="impor_dari_sd_card">Restore</string>
    <string name="ekspor_ke_sd_card">Backup</string>
    <string name="menuBantuan">Help</string>
    <string name="beri_saran_title">Suggest</string>
    <string name="versi">Version</string>
    <string name="menuDevotion">Devotion</string>
    <string name="search">Search</string>
    <string name="activity_title_markers">Annotations</string>
    <string name="menu_markers">Annotations</string>
    <string name="hapus_pembatas_buku">Delete bookmark</string>
    <string name="menuShare">Share</string>
    <string name="tulis_catatan">Write note</string>
    <string name="tambah_pembatas_buku">Add bookmark</string>
    <string name="salin_ayat">Copy verse</string>
    <string name="perj_baru">Greek scriptures</string>
    <string name="perj_lama">Hebrew scriptures</string>
    <string name="search_bookname_only">%s only</string>
    <string name="ayat_sebelumangka">Verse</string>
    <string name="pasal_sebelumangka">Chapter</string>
    <string name="jump_to_prompt">JUMP TO — Example: ^1</string>
    <string name="belum_ada_pembatas_buku">No bookmarks yet.\nSelect a verse to add a bookmark.</string>
    <string name="judul_titikdua">TITLE</string>
    <string name="gagal_mengunduh_namaumum_tgl_tgl">Failed to download %1$s dated %2$s</string>
    <string name="kesalahan_dalam_mengunduh_namaumum_tgl_tgl_output">Error in downloading %1$s dated %2$s: %3$s</string>
    <string name="berhasil_mengunduh_namaumum_tgl_tgl">Succeeded in downloading %1$s dated %2$s</string>
    <string name="mengunduh_namaumum_tgl_tgl">Downloading %1$s dated %2$s…</string>
    <string name="belum_tersedia_mungkin_tanggal_yang_diminta_belum_disiapkan">Not yet available. Probably the requested date\'s material is not prepared yet, or there are some errors in recognizing the data source. Please try again later.</string>
    <string name="belum_tersedia_menunggu_pengambilan_data_lewat_internet_pastikan_ada">Not yet available. Fetching from the Internet…\n\n(Ensure there is Internet connection to fetch the devotion materials.)</string>
    <string name="hari_sabtu">Sat</string>
    <string name="hari_jumat">Fri</string>
    <string name="hari_kamis">Thu</string>
    <string name="hari_rabu">Wed</string>
    <string name="hari_selasa">Tue</string>
    <string name="hari_senin">Mon</string>
    <string name="hari_minggu">Sun</string>
    <string name="size_hasil">%d results</string>
    <string name="search_searching_tokens">Searching for verses containing %s…</string>
    <string name="pilih_setidaknya_satu_kitab">Choose at least one book to search.</string>
    <string name="pengunduhan_dibatalkan">Download canceled.</string>
    <string name="sedang_mendekompres_harap_tunggu">Decompressing. Please wait…</string>
    <string name="terunduh_sampe_byte">Downloaded: %d bytes</string>
    <string name="gagal_mengunduh_edisi_judul_ex_pastikan_internet">Failed in downloading version: %1$s (%2$s).\nMake sure that Internet is working correctly.</string>
    <string name="version_download_complete">Downloaded ^1</string>
    <string name="mulai_mengunduh">Starting download…</string>
    <string name="mengunduh_nama">Downloading %s</string>
    <string name="tuju_v">Go to</string>
    <string name="bagikan_alamat">Share %s</string>
    <string name="alamat_sudah_disalin">%s has been copied.</string>
    <string name="alamat_tidak_sah_alamat">Invalid address: %s</string>
    <string name="no">No</string>
    <string name="yes">Yes</string>
    <string name="anda_yakin_mau_menghapus_catatan_ini">Delete this note?</string>
    <string name="hapus_catatan">Delete note</string>
    <string name="catatan_alamat">Note on %s</string>
    <string name="delete">Delete</string>
    <string name="cancel">Cancel</string>
    <string name="ok">OK</string>
    <string name="tidak_bisa_membuat_folder">Could not create folder %s</string>
    <string name="menuPengaturan">Settings</string>
    <string name="menuTentang">About</string>
    <string name="pengaturan_alkitab">Bible Settings</string>
    <string name="kelola_versi">Manage Versions</string>
    <string name="tambah">Add</string>
    <string name="versi_lainnya">Other translations</string>
    <string name="ada_kegagalan_membuka_edisiid">Error opening %s</string>
    <string name="version_error_opening">Error opening %s.</string>
    <string name="pdb_file_options">PDB file options</string>
    <string name="greek_charset">Greek charset</string>
    <string name="hebrew_charset">Hebrew charset</string>
    <string name="pdb_encoding">PDB encoding</string>
    <string name="sample_text">Sample text</string>
    <string name="include_book_and_chapter_headers">Include book and chapter headers</string>
    <string name="cp_opening_pdb_file">Opening PDB file</string>
    <string name="cp_loading_version_info">Loading version info</string>
    <string name="cp_loading_word_index">Loading word index</string>
    <string name="cp_analyzing_available_books">Analyzing available books</string>
    <string name="cp_mapping_books">Mapping books</string>
    <string name="cp_constructing_book_info">Constructing book info</string>
    <string name="cp_constructing_version_info">Constructing version info</string>
    <string name="cp_writing_num_section_pericope_titles">Writing %s section/pericope titles</string>
    <string name="cp_writing_translated_file">Writing translated file</string>
    <string name="cp_reading_book_info">Reading book info: %s</string>
    <string name="cp_writing_text_of_book_chapters">Writing text of book %1$s (%2$s chapters)</string>
    <string name="ed_type_key">Type</string>
    <string name="ed_type_internal">Built-in</string>
    <string name="ed_type_preset">Downloadable</string>
    <string name="ed_type_db">Downloaded</string>
    <string name="ed_locale_locale">Language code</string>
    <string name="ed_shortName_shortName">Short name</string>
    <string name="ed_title_title">Title</string>
    <string name="ed_stored_in_file">File location</string>
    <string name="ed_default_filename_file">Preset name</string>
    <string name="ed_download_url_url">Download URL</string>
    <string name="ed_version_details">Version details</string>
    <string name="ed_choose_pdb_or_yes_file">Choose a .pdb or .yes file</string>
    <string name="ed_no_external_storage">No SD Card or USB storage found.</string>
    <string name="ed_invalid_file_selected">Invalid file selected.</string>
    <string name="ed_file_file_sudah_ada_dalam_daftar_versi">File %s is already on the list.</string>
    <string name="ed_error_encountered">Error encountered</string>
    <string name="ed_this_file_is_already_on_the_list">This file is already on the list.</string>
    <string name="ed_reading_pdb_file">Reading PDB file…</string>
    <string name="ed_finished">Finished.</string>
    <string name="ed_the_following_books_from_the_pdb_file_are_not_recognized">The following books from the PDB file are not recognized and therefore skipped. Please email yukuku@gmail.com if you think these should not have been skipped.</string>
    <string name="ed_error_reading_pdb_file">Error reading PDB file</string>
    <string name="ed_details">Details: </string>
    <string name="ed_buka_file_pdb_yes_lainnya">Open a .pdb/.yes file…</string>
	<string name="ed_section_all">All</string>
	<string name="ed_section_downloaded">Downloaded</string>
	<string name="ed_download_button">Download</string>
	<string name="ed_update_button">Update</string>
	<string name="ed_details_update_available">Update available</string>
    <string name="info_terperinci">Details</string>
    <string name="buang_dari_daftar">Remove</string>
    <string name="edit_bookmark">Edit bookmark</string>
    <string name="hapus_stabilo">Remove highlight</string>
    <string name="edit_note">Edit note</string>
    <string name="edit_highlight">Change highlight color</string>
    <string name="menuSort">Sort</string>
    <string name="menuSortCreateTime">Created date</string>
    <string name="menuSortModifyTime">Edited date</string>
    <string name="menuSortAri">Verse address</string>
    <string name="menuSortCaption">Title</string>
    <string name="menuSortCaption_color">Highlight color</string>
    <string name="create_edited_modified_time">%1$s\n(edited %2$s)</string>
    <string name="the_file_for_this_version_is_no_longer_available_file">The file for this version is no longer available. Remove this version from the list?\nFile: %s</string>
    <string name="create_label_title">Create label</string>
    <string name="do_you_want_to_remove_the_label_label_from_this_bookmark">"Remove the label '%s' from this bookmark?"</string>
    <string name="add_label_title">Add label</string>
    <string name="create_label_titik3">Create label…</string>
    <string name="select_books_to_search">Select books to search</string>
    <string name="rename_label_title">Rename label</string>
    <string name="are_you_sure_you_want_to_delete_the_label_label">"Delete the label '%1$s'? This label will be removed from %2$s bookmarks."</string>
    <string name="bmcat_all_bookmarks">Bookmarks</string>
    <string name="bmcat_notes">Notes</string>
    <string name="bmcat_highlights">Highlights</string>
    <string name="bmcat_unlabeled_bookmarks">Unlabeled bookmarks</string>
    <string name="bl_no_notes_written_yet">No notes written yet.\nTap on a verse to begin writing a note.</string>
    <string name="bl_no_highlighted_verses">No highlighted verses.\nTap on verses to start highlighting them.</string>
    <string name="bl_there_are_no_bookmarks_without_any_labels">There are no bookmarks without any labels.</string>
    <string name="bl_there_are_no_bookmarks_with_the_label_label">"There are no bookmarks with the label '%s'."</string>
    <string name="bl_filter_by_some_keywords">Filter by some keywords</string>
    <string name="bl_clear_filter">Clear filter</string>
    <string name="bl_filtering_titiktiga">Filtering…</string>
    <string name="bl_no_items_match_the_filter_above">No items match the filter above.</string>
    <string name="bl_send_backup">Transfer</string>
    <string name="bl_file_not_found_filename">File not found: %s</string>
    <string name="bl_send_backup_confirmation">Create and send backup of bookmarks, notes, and highlights? You can, for example, send the attached file by email to a new device, or just for archiving purposes.</string>
	<string name="bl_sync_suggest">Protect your markers with sync</string>
    <string name="labels_titikdua">LABELS</string>
    <string name="tambah_titiktiga">Add…</string>
    <string name="nama_label_titikdua">Label name:</string>
    <string name="change_label_color">Change label color</string>
    <string name="rename_label">Rename label</string>
    <string name="delete_label">Delete label</string>
    <string name="please_wait_titik3">Please wait…</string>
    <string name="juga_hapus_file_datanya_file">Also delete the data file \'%s\'?</string>
    <string name="get_more_fonts">Download more fonts…</string>
    <string name="intent_filter_import_from_backup">Import from backup</string>
    <string name="redownload">Redownload</string>
    <string name="read_faq_before_suggest">Please read the above FAQ before sending a suggestion. Continue with sending a suggestion?</string>
    <string name="no_bookmarks_for_backup">You do not have any bookmarks, notes, or highlights.</string>
    <string name="pdb_error_not_palmbible">This PDB file is not in PalmBible+ format. This PDB has type of \'%1$s\' and creator id of \'%2$s\', which is not supported by this app.</string>
    <string name="pdb_error_corrupted">The PDB file is corrupted.</string>
    <string name="pdb_error_not_pdb_file">The selected file is not a PDB file.</string>
    <string name="menu_split_version">Split version</string>
    <string name="split_version_none">None</string>
    <string name="split_version_cant_display_verse">%1$s is not available in %2$s.</string>
    <string name="generic_verse_not_available_in_this_version">Not available in this version.</string>
    <string name="menuAddSomething">Add annotation</string>
    <string name="color_settings_title">Colors</string>
    <string name="color_settings_night_title">Colors (Night mode)</string>
    <string name="menuDisplay">Appearance</string>
    <string name="text_appearance_theme_custom">Custom…</string>
    <string name="text_appearance_text_size">Text size</string>
    <string name="text_appearance_line_spacing">Line spacing</string>
    <string name="text_appearance_bold">Bold</string>
    <string name="devotion_change_date">Change date</string>
    <string name="bookmark_search">Search</string>
    <string name="verse_select_one_verse_selected" translatable="false">1 verse selected</string>

    <string name="goto_tab_dialer_label">Dialer</string>
    <string name="goto_tab_direct_label">Direct</string>
    <string name="goto_tab_grid_label">Grid</string>

    <string name="fm_activity_title">Manage Fonts</string>
    <string name="fm_need_to_log_in_to_wifi">You need to log-in to your (Wi-Fi) network first.</string>
    <string name="fm_do_you_want_to_delete">Delete font %s?</string>
    <string name="fm_error_when_extracting_font">Error when extracting font %1$s: %2$s</string>
    <string name="fm_loading_ellipsis">Loading…</string>
    <string name="dl_failed_to_rename_temporary_file">Failed to rename temporary file</string>

    <string name="menuSongs">Songs</string>
    <string name="sn_deep_search_enabled">Lyrics, etc. too</string>
    <string name="sn_songs_activity_title">Songs</string>
    <string name="sn_bookselector_all">ALL</string>
    <string name="sn_bookselector_all_desc">Search all books that are installed.</string>
    <string name="sn_downloading_ellipsis">Downloading…</string>
    <string name="sn_download_song_books">Download song books</string>
    <string name="sn_copied">The song has been copied.</string>
    <string name="sn_share_title">Share song</string>
    <string name="sn_lyric_version_version">Version %s</string>
    <string name="sn_lyric_refrain_marker">Ref.</string>
    <string name="sn_delete_all_songs">Delete all songs</string>
    <string name="sn_delete_all_songs_explanation">Delete all songs from local storage? This may save some space.</string>
    <string name="sn_delete_all_songs_result">Deletion completed. Songs deleted: %s</string>
    <string name="sn_update_book_explanation">Update the book ^1 to the latest version?</string>
    <string name="sn_update_book_confirm_button">Update</string>
    <string name="sn_update_book">Update song book</string>

    <string name="desc_previous_day">Previous day</string>
    <string name="desc_next_day">Next day</string>
    <string name="desc_open_bookmark">Open bookmark</string>
    <string name="desc_open_note">Open note</string>
    <string name="desc_delete">Delete</string>
    <string name="desc_change_selected_books">Change selected books</string>
    <string name="desc_download">Download</string>
    <string name="desc_previous_chapter">Previous chapter</string>
    <string name="desc_next_chapter">Next chapter</string>
    <string name="desc_drag_to_reorder_labels">Drag to reorder labels</string>
    <string name="desc_drag_to_reorder_versions">Drag to reorder versions</string>
    <string name="desc_close">Close</string>
    <string name="desc_play">Play</string>
    <string name="desc_progress_1">Pin 1</string>
    <string name="desc_progress_2">Pin 2</string>
    <string name="desc_progress_3">Pin 3</string>
    <string name="desc_progress_4">Pin 4</string>
    <string name="desc_progress_5">Pin 5</string>

    <string name="intent_filter_open_yes_file">Open YES file</string>
    <string name="intent_filter_open_pdb_file">Open PDB file</string>
    <string name="intent_filter_open_pdb_or_yes_file">Open PDB/YES file</string>
    <string name="open_yes_file_name_conflict">A YES file named \'%1$s\' already exists in \'%2$s\'.</string>
    <string name="open_file_cant_read_source">The source could not be successfully read.</string>
    <string name="open_file_unknown_file_format">Could not determine whether this is a PDB or YES file.</string>
    <string name="version_preset_delete_filename">Delete the data file \'%s\'?</string>
    <string name="version_menu_share">Share</string>
    <string name="version_share_title">Share translation with:</string>
    <string name="menuFullScreen">Full screen</string>
    <string name="send_donation_confirmation">Make some donation to the developer?</string>

    <string name="me_export_markers">Export markers</string>
    <string name="me_export_menu_item">Export</string>
    <string name="me_all_notes">Notes</string>
    <string name="me_all_highlights">Highlights</string>
    <string name="me_all_bookmarks">Bookmarks</string>
    <string name="me_section_bookmarks">Bookmarks</string>
    <string name="me_section_notes">Notes</string>
    <string name="me_section_highlights">Highlights</string>
    <string name="me_no_labels">No labels</string>
    <string name="me_edited_modify_date">(edited %s)</string>

    <string name="pm_progress_1">Pin 1</string>
    <string name="pm_progress_2">Pin 2</string>
    <string name="pm_progress_3">Pin 3</string>
    <string name="pm_progress_4">Pin 4</string>
    <string name="pm_progress_5">Pin 5</string>
    <string name="pm_menu_save_progress">Save %s</string>
    <string name="pm_progress_name">Pin name</string>
    <string name="pm_edit_name">Edit name</string>
    <string name="pm_delete_progress">Remove pin</string>
    <string name="pm_activate_tutorial">Long-press and drag to place a pin on a verse.</string>
    <string name="pm_delete_progress_confirm">Remove ^1?</string>

    <string name="copy_share">Copy or share</string>

    <string name="backup_last_time">Last backup: %s</string>
    <string name="backup_selection_autobackup_at">Auto backup at %s</string>
    <string name="backup_selection_manualbackup_at">Backup at %s</string>
    <string name="backup_select_file">Select backup file</string>

    <string name="recentverses_not_available">No recent verses yet.</string>
    <string name="recentverses_just_now">Just now</string>
    <string name="recentverses_min_plural_ago">%s mins ago</string>
    <string name="recentverses_today_time">Today, %s</string>
    <string name="recentverses_yesterday_time">Yesterday, %s</string>
    <string name="recentverses_button_hint">(Long-press for recent verses)</string>

    <string name="dr_reminder">Reminder</string>
    <string name="dr_error_contact_reminder">Error while contacting Reminder app.</string>

    <string name="dv_option_transparent_background">Transparent background</string>
    <string name="dv_option_dark_text">Dark text</string>
    <string name="dv_option_text_size">Text size</string>

    <string name="rp_menuReadingPlan">Reading plan</string>
    <string name="rp_commentActual">Finished: %s%%</string>
    <string name="rp_commentTarget">Target: %s%%</string>
    <string name="rp_commentOnSchedule">On schedule</string>
    <string name="rp_commentBehindSchedule">Behind the schedule: %s%%</string>
    <string name="rp_noReadingPlanAvailable">No more reading plans available.</string>
    <string name="rp_deletePlan">"Delete '%s'?"</string>
    <string name="rp_reset">This action will shift your last fully read to yesterday.</string>
    <string name="rp_showCalendar">Show calendar</string>
    <string name="rp_gotoFirstUnread">Go to first unread</string>
    <string name="rp_dayHeader">Day %1$s: %2$s</string>
    <string name="rp_floatPreviousReading">Previous reading</string>
    <string name="rp_floatCheckMark">Mark as read</string>
    <string name="rp_floatDescription">Show reading plan</string>
    <string name="rp_floatClose">Close reading plan mode</string>
    <string name="rp_floatNextReading">Next reading</string>
    <string name="rp_navigationPreviousDay">Previous day</string>
    <string name="rp_navigationGoToDate">Go to date</string>
    <string name="rp_navigationNextDay">Next day</string>
    <string name="rp_menuDownload">Download</string>
    <string name="rp_menuCatchMeUp">Catch me up</string>
    <string name="rp_menuDelete">Delete</string>
    <string name="rp_headingProgress">Progress</string>
    <string name="rp_gotoToday">Today</string>
    <string name="rp_showDetails">Show details</string>
    <string name="rp_hideDetails">Hide details</string>
    <string name="rp_aboutPlan">About plan</string>
    <string name="rp_description_rendering">^1 (^2 days)\n^3</string>
    <string name="rp_download_day_count_days">%s days</string>
    <string name="rp_download_reading_plan_list_progress">Downloading list of reading plans…</string>
    <string name="rp_download_reading_plan_list_failed">Failed to download reading plan list. Please try again with a working Internet connection.</string>
    <string name="rp_download_reading_plan_progress">Downloading reading plan…</string>
    <string name="rp_download_reading_plan_failed">Failed to download the selected reading plan. Please try again with a working Internet connection.</string>
    <string name="rp_download_reading_plan_data_corrupted">Downloaded reading plan data is corrupted. Please try again later with a working Internet connection.</string>

    <string name="version_download_need_fonts">"The translation downloaded might need to be displayed with certain fonts. Go to the 'Text appearance' menu and select a font. Greek needs Ubuntu font. Burmese needs Parabaik, ParabaikSans, or Myanmar3. Tamil needs Akshar. Telugu needs Suranna."</string>
    <string name="version_download_corrupted_file">Downloaded file seems to be corrupt.</string>
    <string name="menuNightMode">Night mode</string>
    <string name="highlight_custom_color">Other colors</string>
    <string name="menu_compare">Compare</string>
    <string name="song_player_error_description">An error was encountered when playing this song: %1$d, %2$d.</string>

    <string name="search_in_version_short_name_placeholder">Find in %s</string>
    <string name="search_syntax_tips">Search tips:\n\n+word for that exact word\n[q]city of david[q] for that exact phrase</string>
    <string name="search_no_result">No verses found for ^1.</string>
    <string name="search_no_result_fallback">Tap here to go to ^1.</string>

    <string name="marker_transfer_to_device_title">Transfer to another device</string>
    <string name="marker_transfer_to_device_description">Move all bookmarks, notes, and highlights to another phone or tablet. We recommend using Gmail/Email.</string>
    <string name="marker_transfer_to_computer_title">Transfer for editing</string>
    <string name="marker_transfer_to_computer_description">Save bookmarks, notes, and highlights to a HTML file for further editing or printing from your computer.</string>
    <string name="bookmark_delete_confirmation">Delete this bookmark?</string>

    <string name="drawer_open">Open drawer</string>
    <string name="drawer_close">Close drawer</string>
    <string name="menuSplitVersion">Split</string>
    <string name="menuBible">Bible</string>
    <string name="menuProgress">Pins</string>
    <string name="switch_off">OFF</string>
    <string name="switch_on">ON</string>
    <string name="sn_menu_copy">Copy song</string>
    <string name="menuPlay">Play</string>
    <string name="menuPause">Pause</string>

    <string name="book_filter_old_testament">Old Testament</string>
    <string name="book_filter_old_pentateuch">Pentateuch</string>
    <string name="book_filter_old_history">History</string>
    <string name="book_filter_old_wisdom">Wisdom</string>
    <string name="book_filter_old_major_prophets">Major Prophets</string>
    <string name="book_filter_old_minor_prophets">Minor Prophets</string>
    <string name="book_filter_new_gospels">Gospels</string>
    <string name="book_filter_new_acts">Apostolic History</string>
    <string name="book_filter_new_pauline_epistles">Pauline Epistles</string>
    <string name="book_filter_new_general_epistles">General Epistles</string>
    <string name="book_filter_new_apocalypse">Revelation</string>

    <string name="search_filter_multiple_books_selected">%s books selected</string>
    <string name="search_version_select_label">Find in:</string>
	<string name="show_hidden_version_warning">Enabling this option allows you to download Bible versions which may be subject to certain regional or monetary requirements. Before downloading them, please make sure you are allowed to do so. You are fully responsible for downloading and using such versions and I cannot be held accountable for this. Tap OK if you agree to the above terms.</string>

	<string name="version_config_updater_error_download_modify_time">Failed to check translations list. Is internet connected?</string>
	<string name="version_config_updater_error_modify_time_failed">Translations list not available: %s</string>
	<string name="version_config_updater_no_newer_available">No updates to translations. You already have the newest versions.</string>
	<string name="version_config_updater_error_download_list">Failed to download translations list. Is internet connected?</string>
	<string name="version_config_updater_error_parsing_list">The downloaded translations list is corrupt.</string>
	<string name="version_config_updater_updated">Translations list updated!</string>
	<string name="version_config_cannot_write_updated_list">Failed to store updated list.</string>
	<string name="version_config_updater_error_modify_time_cannot_parse">Failed to parse translations list update checker.</string>

	<string name="version_download_add_from_local">From local storage</string>
	<string name="version_download_add_from_url">From Internet URL</string>
	<string name="version_download_add_from_url_prompt_yes_only">.yes FILE URL</string>
	<string name="version_download_invalid_url">Invalid URL.</string>
	<string name="version_download_not_yes">The Internet URL must have the .yes ending.</string>

	<string name="patch_text_intro">Please edit the parts of the text that you think can be corrected or made better.\n\nDo not change the other parts.\n\nTap SEND when finished.</string>
	<string name="patch_text_error_no_edits">Please make some edits before sending.</string>
	<string name="patch_text_menu_reference">Reference</string>
	<string name="patch_text_menu_send">Send</string>

	<string name="note_actionbar_edit">Edit</string>
	<string name="note_actionbar_delete">Delete</string>
	<string name="note_actionbar_ok">Done</string>
	<string name="note_activity_cannot_parse_verse">Sorry, we do not understand this verse link.</string>

	<string name="sync_account_not_selected">Not signed in</string>
	<string name="pref_syncAccountName_title">Account</string>
	<string name="sync_logout_warning">Do you want to log out? Your current markers and other local data will not be deleted.</string>
	<string name="sync_progress_register">Creating new account…</string>
	<string name="sync_progress_login">Logging in…</string>
	<string name="sync_progress_processing">Processing…</string>
	<string name="sync_login_failed_with_reason">Failed to log in. Please try again later.\n\nReason: %s</string>
	<string name="sync_register_failed_with_reason">Failed to create a new account. Please try again.\n\nReason: %s</string>
	<string name="sync_registered_but_no_gcm">Your account has been created, but we failed to send GCM registration id. Please try to log in (do not register again).</string>
	<string name="pref_sync_title">Sync</string>
	<string name="pref_screen_sync_settings_title">Sync settings</string>
	<string name="sync_category_title_data_types">Data types</string>
	<string name="pref_syncSet_mabel_enabled_title">Markers and labels</string>
	<string name="pref_syncSet_history_enabled_title">Recent verses</string>
	<string name="sync_menu_item_sync_now">Sync now</string>
	<string name="sync_menu_item_sync_log">View log</string>
	<string name="sync_sync_set_pref_summary_last_synced">Last synced %1$s, %2$s (r%3$s)</string>
	<string name="sync_sync_set_pref_summary_never">Not synced yet</string>
	<string name="sync_sync_set_pref_summary_syncing">Syncing now…</string>
	<string name="sync_log_activity_title">Sync log</string>

	<string name="sync_login_activity_title">Login or create account</string>
	<string name="sync_login_survey_religion_select_one">Select religion</string>
	<string name="sync_login_survey_religion_christianity">Christianity</string>
	<string name="sync_login_survey_religion_christianity_protestant">Protestant</string>
	<string name="sync_login_survey_religion_christianity_lutheran">Lutheran</string>
	<string name="sync_login_survey_religion_christianity_methodist">Methodist</string>
	<string name="sync_login_survey_religion_christianity_anglican">Anglican</string>
	<string name="sync_login_survey_religion_christianity_adventist">Adventist</string>
	<string name="sync_login_survey_religion_christianity_pentecostal">Pentecostal/Charismatic</string>
	<string name="sync_login_survey_religion_christianity_roman">Roman Catholic</string>
	<string name="sync_login_survey_religion_christianity_other">Other denomination</string>
	<string name="sync_login_survey_religion_islam">Islam</string>
	<string name="sync_login_survey_religion_buddha">Buddha</string>
	<string name="sync_login_survey_religion_hindu">Hinduism</string>
	<string name="sync_login_survey_religion_other">Other religion</string>
	<string name="sync_login_survey_religion_atheist">Atheist</string>
	<string name="sync_login_survey_religion_agnostic">Agnostic</string>
	<string name="sync_login_change_password_menu_item">Change password</string>
	<string name="sync_login_change_password_button">Change password</string>
	<string name="sync_login_form_error_required">Please fill this in.</string>
	<string name="sync_login_form_password_hint">Password</string>
	<string name="sync_login_form_new_password_hint">New password</string>
	<string name="sync_login_form_intro_text">Sync protects your markers and other data.\nMore information</string>
	<string name="sync_login_form_email_hint">Email</string>
	<string name="sync_login_form_forgot_button">Forgot?</string>
	<string name="sync_login_form_optional_header">Optional</string>
	<string name="sync_login_form_church">Church affiliation</string>
	<string name="sync_login_form_city">City</string>
	<string name="sync_login_form_register_button">Register</string>
	<string name="sync_login_form_login_button">Login</string>
	<string name="sync_login_form_privacy_text">By pressing any of the buttons below, you agree to the privacy policy.</string>
	<string name="sync_login_form_error_email_pattern">Invalid email address.</string>
	<string name="sync_login_form_passwords_do_not_match">Please type the same password on the confirmation dialog.</string>
	<string name="sync_login_dialog_confirm_password_hint">Confirm password</string>
	<string name="sync_login_form_forgot_password_success">Please check your email for further instructions.</string>
	<string name="sync_login_form_change_password_success">Your password has been changed.</string>

	<string name="pref_textPadding_title">Margins around text</string>
	<string name="pref_textPadding_summary">Make text in a line narrower to ease reading</string>

	<string name="dr_app_name">Reminder</string>
	<string name="dr_notification_title">Daily devotion</string>
	<string name="dr_notification_text">Read today\'s devotion now.</string>
	<string name="dr_off">Off</string>
	<string name="dr_alarm">Alarm</string>
	<string name="dr_sound">Sound</string>
	<string name="dr_vibrate">Vibrate</string>
	<string name="dr_pref_notification_message">Reminder message</string>
	<string name="dr_default_sound">Default sound</string>

	<string name="about_text_desc" translatable="false">100% free Bible app, licensed under Apache License 2.0</string>
	<string name="about_translators">Translators</string>
	<string name="about_user_guide">User\'s Guide</string>
	<string name="about_beta_feedback">Beta Version Feedback</string>
	<string name="about_version_name">version %s</string>
	<string name="about_material_sources">Material Sources</string>
	<string name="about_credits">Credits</string>

	<string name="marker_migrate_introduction">We detected a backup file from the old v3 Yuku Quick Bible that contains bookmarks, notes, highlights, and labels.\n\nDo you want to import them, so you can access them from this app?</string>
	<string name="marker_migrate_no_more">Don\'t ask again</string>
	<string name="marker_migrate_later">Not now</string>
	<string name="marker_migrate_title">Import old markers</string>
	<string name="marker_migrate_no_more_confirmation">Are you sure you don\'t need to import the old data?</string>
	<string name="marker_migrate_error_opening_backup_file">Could not access that backup file.</string>
	<string name="marker_migrate_import_from_newest">Yes, import from the newest (recommended)</string>
	<string name="marker_migrate_import_from_other">Other backup</string>
	<string name="marker_migrate_filename_dated">%1$s dated %2$s</string>
    <string name="pm_menu_view_progress">View pin</string>
    <string name="verse_select_multiple_verse_selected" translatable="false"></string>
    <string name="pref_versionsUrl_text" translatable="false"></string>
    <string name="pref_versionsCDNUrl_text" translatable="false">Qibi4</string>
    <string name="pref_sideswipe_title">Swipe chapters</string>
    <string name="pref_sideswipe_summary">Swipe right/left to flip chapters</string>

    <string name="book_filter_new_testament">The greek scriptures</string>
    <string name="grid_selectbook">Select a book</string>

    <string name="font_downloaded">% downloaded</string>
    <string name="xref_missing_short">(missing)</string>
    <string name="xref_missing_long">The cross reference is missing</string>
    <string name="xref_missingverse">The cross reference is pointing to a missing verse. It will be blank.</string>

</resources>


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <title>JSDoc: Home</title>

    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">

Home

Home

Global

deleteUser

getAllUsers

saveUser

updateUser

    Documentation generated by JSDoc 3.3.3 on Thu Oct 22 2015 15:52:50 GMT+0530 (IST)

redpajama_set_name: RedPajamaGithub


text:
using Susanoo.Command;
using Susanoo.Processing;
using Susanoo.Proxies.Transforms;
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Text.RegularExpressions;

namespace Susanoo.Transforms
{
	public static class Transforms
	{
		private static readonly Regex OrderByRegex = new Regex(
							@"\A
										# 1. Match all of these conditions
										(?:
										  # 2. Leading Whitespace
										  \ *
										  # 3. ColumnName: a-z, A-Z, 0-9, _, []
										  (?<ColumnName>[0-9_a-z\[\]]*)
										  # 4. Whitespace
										  \ *
										  # 5. SortDirection: ASC or DESC case-insensitive
										  (?<SortDirection>ASC|DESC)?
										  # 6. Optional Comma
										  ,?
										)*
										\z",
							RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);

		/// <summary>
		/// Builds a single query wrapper.
		/// </summary>
		/// <param name="additionalColumns">The additional columns.</param>
		/// <returns>CommandTransform.</returns>
		public static CommandTransform QueryWrapper(string additionalColumns = null)
		{
			if (additionalColumns != null)
			{
				additionalColumns = additionalColumns.Trim();

				if (!additionalColumns.StartsWith(","))
					additionalColumns = ", " + additionalColumns;
			}

			const string format = "SELECT *{1}" + "\r\n" +
                                  "FROM (" + "\r\n" +
                                  "{0} " + "\r\n" +
                                  ") susanoo_query_wrapper" + "\r\n" +
                                  "WHERE 1=1" + "\r\n";

			return new CommandTransform("Query Wrapper", info =>
				new ExecutableCommandInfo
				{
					CommandText = string.Format(format, info.CommandText, additionalColumns ?? string.Empty),
					DbCommandType = info.DbCommandType,
					Parameters = info.Parameters
				});
		}

	    /// <summary>
	    /// A transform that allows a parameter at execution time to control the ORDER BY statement.
	    /// </summary>
	    /// <param name = "parameterName" > Name of the parameter.</param>
	    /// <exception cref="ArgumentNullException">parameterName is null.</exception>
	    /// <returns>ICommandExpression< TFilter>.</returns>
	    /// <exception cref="FormatException">Order By parameter either contains unsafe characters or a bad format</exception>
	    public static CommandTransform OrderByExpression(string parameterName = "OrderBy")
		{
			if (parameterName == null)
				throw new ArgumentNullException(nameof(parameterName));

			var orderByModifier = new CommandTransform("OrderByExpression", info =>
				{
					var orderByParameter = info.Parameters.First(p => p.ParameterName == parameterName);

					if (orderByParameter.Value == null
						|| !(OrderByRegex.IsMatch(orderByParameter.Value.ToString())))
						throw new FormatException("Order By paramter either contains unsafe characters or a bad format");

					return new ExecutableCommandInfo
					{
						CommandText = info.CommandText + "\r\nORDER BY " + orderByParameter.Value,
						Parameters = info.Parameters.Where(p => p.ParameterName != parameterName).ToArray(),
						DbCommandType = info.DbCommandType
					};
				}
			);

			return orderByModifier;
		}

		/// <summary>
		/// Builds the where filter.
		/// </summary>
		/// <typeparam name="TFilter">The type of the t filter.</typeparam>
		/// <typeparam name="TResult">The type of the t result.</typeparam>
		/// <param name="processor">The processor.</param>
		/// <param name="optionsObject">The options object.</param>
		/// <returns>ICommandExpression<TFilter>.</returns>
		public static CommandTransform WhereFilter<TFilter>(ICommandProcessorWithResults<TFilter> processor, Type resultType, object optionsObject = null)
		{
			var whereFilterModifier = new CommandTransform("WhereFilter",
				new WhereFilterTransformFactory<TFilter>(processor, resultType, optionsObject != null ? optionsObject.ToExpando() : new ExpandoObject())
					.BuildWhereFilterTransform);

			return whereFilterModifier;
		}

		/// <summary>
		/// Builds the where filter.
		/// </summary>
		/// <typeparam name="TFilter">The type of the t filter.</typeparam>
		/// <typeparam name="TResult">The type of the t result.</typeparam>
		/// <param name="processor">The processor.</param>
		/// <param name="whereFilterOptions">The where filter options.</param>
		/// <returns>ICommandExpression<TFilter>.</returns>
		public static CommandTransform WhereFilter<TFilter, TResult>(ICommandProcessorWithResults<TFilter> processor, Type resultType, IDictionary<string, object> whereFilterOptions)
		{
			var whereFilterModifier = new CommandTransform("WhereFilter",
				new WhereFilterTransformFactory<TFilter>(processor, resultType, whereFilterOptions)
					.BuildWhereFilterTransform);

			return whereFilterModifier;
		}

		/// <summary>
		/// Builds the where filter.
		/// </summary>
		/// <typeparam name="TFilter">The type of the t filter.</typeparam>
		/// <typeparam name="TResult">The type of the t result.</typeparam>
		/// <param name="processor">The processor.</param>
		/// <param name="options">The options.</param>
		/// <returns>ICommandExpression<TFilter>.</returns>
		public static CommandTransform WhereFilter<TFilter, TResult>(ICommandProcessorWithResults<TFilter> processor, Type resultType, ExpandoObject options)
		{
			var whereFilterModifier = new CommandTransform("WhereFilter",
				new WhereFilterTransformFactory<TFilter>(processor, resultType, options)
					.BuildWhereFilterTransform);

			return whereFilterModifier;
		}
	}
}


text:
package com.difference.historybook.index.lucene;

import java.io.IOException;
import java.nio.file.Path;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.stream.Collectors;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.DirectoryReader;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.index.IndexWriterConfig;
import org.apache.lucene.index.IndexWriterConfig.OpenMode;
import org.apache.lucene.index.Term;
import org.apache.lucene.queries.CustomScoreQuery;
import org.apache.lucene.queries.function.FunctionQuery;
import org.apache.lucene.queries.function.valuesource.LongFieldSource;
import org.apache.lucene.queries.function.valuesource.ReciprocalFloatFunction;
import org.apache.lucene.queryparser.classic.ParseException;
import org.apache.lucene.queryparser.classic.QueryParser;
import org.apache.lucene.search.BooleanQuery;
import org.apache.lucene.search.Explanation;
import org.apache.lucene.search.IndexSearcher;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.ScoreDoc;
import org.apache.lucene.search.TermQuery;
import org.apache.lucene.search.grouping.GroupingSearch;
import org.apache.lucene.search.grouping.TopGroups;
import org.apache.lucene.search.BooleanClause.Occur;
import org.apache.lucene.search.highlight.Fragmenter;
import org.apache.lucene.search.highlight.Highlighter;
import org.apache.lucene.search.highlight.InvalidTokenOffsetsException;
import org.apache.lucene.search.highlight.QueryScorer;
import org.apache.lucene.search.highlight.SimpleSpanFragmenter;
import org.apache.lucene.search.highlight.TokenSources;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import org.jsoup.Jsoup;
import org.jsoup.safety.Whitelist;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.difference.historybook.index.Index;
import com.difference.historybook.index.IndexException;
import com.difference.historybook.index.SearchResult;
import com.difference.historybook.index.SearchResultWrapper;
import com.difference.historybook.textutils.HtmlTextExtractor;

/**
 * An implementation of @Index backed by Lucene
 */
public class LuceneIndex implements Index {
	private static final Logger LOG = LoggerFactory.getLogger(LuceneIndex.class);

	private static final String INDEXDIR = "index";

	// reciprical of number of seconds in year
	private static final float RECIP = 1F / (60 * 60 * 24 * 365);

	private final Path path;
	private final Directory dir;
	private final IndexWriter writer;
	private IndexReader reader;
	private IndexSearcher searcher;
	private final Analyzer analyzer;
	private final QueryParser parser;

	/**
	 * Constructor for LuceneIndex
	 *
	 * @param dataDirectory   Path to the directory to create an index directory within.
	 * @throws IndexException
	 */
	public LuceneIndex(Path dataDirectory) throws IndexException {

		//TODO: Check to make sure directory is read/writable
		path = dataDirectory.resolve(INDEXDIR);

		try {
			dir = FSDirectory.open(path);
			analyzer = new StandardAnalyzer();
			IndexWriterConfig iwc = new IndexWriterConfig(analyzer);
			iwc.setOpenMode(OpenMode.CREATE_OR_APPEND);
			writer = new IndexWriter(dir, iwc);

			reader = DirectoryReader.open(writer, false);
			searcher = new IndexSearcher(reader);
			parser = new QueryParser(IndexDocumentAdapter.FIELD_SEARCH, analyzer);
		} catch (IOException e) {
			LOG.error(e.getLocalizedMessage());
			throw new IndexException(e);
		}
	}

	@Override
	public void indexPage(
			String collection,
			String url,
			Instant timestamp,
			String body) throws IndexException {
		HtmlTextExtractor extractor = new HtmlTextExtractor(body, url);

		Document doc = new IndexDocumentAdapter()
				.setCollection(collection)
				.setUrl(url)
				.setTimestamp(timestamp)
				.setTitle(extractor.getTitle())
				.setContent(extractor.getContent())
				.getAsDocument();

		try {
			writer.addDocument(doc);
			writer.commit();
			reader.close();
			reader = DirectoryReader.open(writer, false);
			searcher = new IndexSearcher(reader);
		} catch (IOException e) {
			LOG.error(e.getLocalizedMessage());
			throw new IndexException(e);
		}
	}

	@Override
	public SearchResultWrapper search(
			String collection, String query,
			int offset, int size, boolean includeDebug) throws IndexException {
		try {
			//TODO: make age be a component in the ranking?
			BooleanQuery.Builder queryBuilder = new BooleanQuery.Builder();
			queryBuilder.add(parser.parse(query), Occur.MUST);
			queryBuilder.add(new TermQuery(new Term(IndexDocumentAdapter.FIELD_COLLECTION, collection)), Occur.FILTER);
			Query baseQuery = queryBuilder.build();

			FunctionQuery boostQuery = new FunctionQuery(
					new ReciprocalFloatFunction(
							new DurationValueSource(
									new Date().getTime()/1000,
									new LongFieldSource(IndexDocumentAdapter.FIELD_TIMESTAMP)),
							RECIP, 1F, 1F));

			Query q = new CustomScoreQuery(baseQuery, boostQuery);

			QueryScorer queryScorer = new QueryScorer(q, IndexDocumentAdapter.FIELD_SEARCH);
			Fragmenter fragmenter = new SimpleSpanFragmenter(queryScorer);
			Highlighter highlighter = new Highlighter(queryScorer);
			highlighter.setTextFragmenter(fragmenter);

			GroupingSearch gsearch = new GroupingSearch(IndexDocumentAdapter.FIELD_URL_GROUP)
					.setGroupDocsLimit(1)
					.setAllGroups(true)
					.setIncludeMaxScore(true);
			TopGroups<?> groups = gsearch.search(searcher, q, offset, size);

			ArrayList<SearchResult> results = new ArrayList<>(size);
			for (int i = offset; i < offset + size && i < groups.groups.length; i++) {
				ScoreDoc scoreDoc = groups.groups[i].scoreDocs[0];
				Document luceneDoc = searcher.doc(scoreDoc.doc);
				IndexDocumentAdapter doc = new IndexDocumentAdapter(luceneDoc);

				TokenStream tokenStream = TokenSources.getTokenStream(
						IndexDocumentAdapter.FIELD_SEARCH,
						reader.getTermVectors(scoreDoc.doc),
						luceneDoc.get(IndexDocumentAdapter.FIELD_SEARCH),
						analyzer,
						highlighter.getMaxDocCharsToAnalyze() - 1);

	            String[] snippets = highlighter.getBestFragments(tokenStream, luceneDoc.get(IndexDocumentAdapter.FIELD_SEARCH), 3);
	            String snippet = Arrays.asList(snippets).stream().collect(Collectors.joining("\n"));
	            snippet = Jsoup.clean(snippet, Whitelist.simpleText());

	            String debugInfo = null;
	            if (includeDebug) {
	            	Explanation explanation = searcher.explain(q, scoreDoc.doc);
	            	debugInfo = explanation.toString();
	            }

				results.add(new SearchResult(
						doc.getKey(),
						doc.getCollection(),
						doc.getTitle(),
						doc.getUrl(),
						doc.getDomain(),
						doc.getTimestampText(),
						snippet,
						debugInfo,
						scoreDoc.score));
			}

			SearchResultWrapper wrapper = new SearchResultWrapper()
					.setQuery(query)
					.setOffset(offset)
					.setMaxResultsRequested(size)
					.setResultCount(groups.totalGroupCount != null ? groups.totalGroupCount : 0)
					.setResults(results);

			if (includeDebug) {
				wrapper.setDebugInfo(q.toString());
			}

			return wrapper;

		} catch (IOException | ParseException | InvalidTokenOffsetsException e) {
			LOG.error(e.getLocalizedMessage());
			throw new IndexException(e);
		}
	}

	@Override
	public void close() throws IndexException {
		try {
			writer.close();
		} catch (IOException e) {
			LOG.error(e.getLocalizedMessage());
			throw new IndexException(e);
		}
	}
}


text:
/**
 * Provides classes and interfaces for reading and mapping configuration files.
 */
package io.atomix.utils.config;


text:
var skype = require("skype-api"),
    EventEmitter = require("events").EventEmitter;

exports.event = new EventEmitter();

skype.on("message", function(data) {
    exports.event.emit("msg", data.user, data.room, data.message);
});

var client = {
    "say": function(to, message) {
        skype.sendMessage(to, message, function(err, msg) { if (err) console.log(err); });
    }
}

exports.client = client;


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->

<!-- $Rev$ $Date$ -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.apache.geronimo.plugins</groupId>
        <artifactId>plugins</artifactId>
        <version>4.0.0-SNAPSHOT</version>
    </parent>

    <groupId>org.apache.geronimo.configs</groupId>
    <artifactId>procrun</artifactId>
    <name>Geronimo Plugins, Windows Service Wrapper</name>
    <packaging>car</packaging>

    <description>
        Provides a Windows service wrapper with Apache Commons Daemon procrun for Geronimo.
    </description>

    <dependencies>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>framework</artifactId>
            <type>kar</type>
            <version>3.0.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>standard</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
            <version>3.0.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>enterprise</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
            <version>3.0.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.framework.features</groupId>
            <artifactId>framework</artifactId>
            <version>${project.version}</version>
            <type>kar</type>
        </dependency>
        <!--<dependency>-->
            <!--<groupId>org.apache.geronimo.framework.features</groupId>-->
            <!--<artifactId>org.apache.geronimo.javaee-specs</artifactId>-->
            <!--<version>${project.version}</version>-->
            <!--<classifier>features</classifier>-->
            <!--<type>xml</type>-->
        <!--</dependency>-->

    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>test-resources</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <tasks>
                                <jar destfile="${basedir}/src/main/resources/bin/server.jar" manifest="${basedir}/src/main/resources/server/MANIFEST.MF"></jar>
                                <jar destfile="${basedir}/src/main/resources/bin/shutdown.jar" manifest="${basedir}/src/main/resources/shutdown/MANIFEST.MF"></jar>
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.geronimo.buildsupport</groupId>
                <artifactId>car-maven-plugin</artifactId>
                <configuration>
                    <useMavenDependencies>
                        <value>true</value>
                        <includeVersion>true</includeVersion>
                    </useMavenDependencies>
                    <category>Plugins</category>
                    <instance>
                        <plugin-artifact>
                            <module-id>
                                <type>car</type>
                            </module-id>
                            <copy-file relative-to="geronimo" dest-dir="bin">bin/</copy-file>
                        </plugin-artifact>
                    </instance>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>


text:
struct Variable;
struct Substitution;

using namespace std;

template<typename A, typename B> bool contains(map<A, B> &container, A elem)
{
  return container.find(elem) != container.end();
}

template<typename T> bool contains(vector<T> &container, T &elem)
{
  return find(container.begin(), container.end(), elem) != container.end();
}

template<typename T> bool subseteq(vector<T> a, vector<T> b)
{
  for (int i = 0; i < len(a); ++i) {
    if (!contains(b, a[i])) {
      return false;
    }
  }
  return true;
}

template<typename T> void append(vector<T> &a, vector<T> b)
{
  for (int i = 0; i < len(b); ++i) {
    a.push_back(b[i]);
  }
}

template<typename T> vector<T> unique(vector<T> a)
{
  sort(a.begin(), a.end());
  a.erase(unique(a.begin(), a.end()), a.end());
  return a;
}

map<Variable *, Variable *> createRenaming(vector<Variable *> v, string s);

Substitution createSubstitution(map<Variable *, Variable *> r);

extern int VERBOSITY;

#define LOG(level,ss)				\
  do {						\
    if (level < VERBOSITY) {			\
      string s = ss;				\
      cout << s << endl;			\
    }						\
  } while (0)

#endif


text:
assert('RuntimeError', '15.2.28') do
  assert_equal Class, RuntimeError.class
end


text:
const mix = require('laravel-mix');
const path = require('path')

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel applications. By default, we are compiling the CSS
 | file for the application as well as bundling up all the JS files.
 |
 */

const webpack = require('webpack');

/*
mix.webpackConfig ({
  plugins: [
    new webpack.DefinePlugin({
      __VUE_OPTIONS_API__: false,
      __VUE_PROD_DEVTOOLS__: false,
    }),
  ],
});
*/

mix.js('resources/js/app.js', 'public/js')
    .vue()
    .alias({
        '@': path.join(__dirname, 'resources/js')
    })
    .webpackConfig({
      output: { chunkFilename: 'js/[name].js?id=[chunkhash]' }
    });

mix.postCss('resources/css/app.css', 'public/css', [
     require("tailwindcss"),
]);

mix.copy('node_modules/v-calendar/dist/style.css', 'public/css/v-calendar.css');

mix.options({
	legacyNodePolyfills: false
});

mix.sourceMaps();
mix.version();


text:
---
title: "VL01: Short Summary"
keywords: "lecture, markdown, filter, notes, demo"

author: "Carsten Gips <carsten.gips@fh-bielefeld.de>"

nocite: |
  @Aho2008, @Russell2014, @Ertel2017, @Kubat2017, @Witten2011, @Pedregosa2011

home: "pm_vl_template.html"
---

::: notes
# TL;DR {.tldr}

This project offers some filters and definitions in order to be able to generate
appealing slides as well as extensively commented handouts from a single Markdown
file.

To generate the slides, the markdown source is translated to LaTeX with Pandoc and
some Lua filters and, together with some custom TeX definitions, translated to PDF
using the Beamer class.

To generate the handouts, the markdown source is translated into HTML using Pandoc
and some Lua filters plus some custom CSS definitions.
:::

Standard Markdown Features
==========================

Bullet Points
-------------

*   Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
    -   Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
    -   Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
*   sed diam nonumy eirmod tempor invidunt ut labore et dolore ...
    -   sed diam nonumy eirmod tempor invidunt ut labore et dolore ...
    -   sed diam nonumy eirmod tempor invidunt ut labore et dolore ...
*   magna aliquyam erat, sed diam voluptua.
    -   magna aliquyam erat, sed diam voluptua.
    -   magna aliquyam erat, sed diam voluptua.

Inline Image (automatically scaled)
-----------------------------------

<!-- path to image via --resource-path -->
![some figure (automatically scaled)](somefig)\

Inline Image (custom width, abs.)
---------------------------------

![some figure (custom width)](figs/somefig){width=40mm}\

Inline Image (custom width, rel.)
---------------------------------

![some figure (custom width)](figs/somefig){width=10%}\

Inline Image (centered)
-----------------------

<!-- this comment should not appear in generated html using th textohtml.py filter -->

::: center
![some figure (custom width)](figs/somefig)\
:::

Inline Image (centered)
-----------------------

![some figure (custom width)](figs/somefig){align="center"}\

`{align="center"}` seems to be non-functional ...

Figure
------

<!-- this comment should not appear in generated html using th textohtml.py filter -->

![some figure (custom width)](figs/somefig)

Source Code
-----------

```c
  /*
   * cHelloWorld.c
   *
   */
  #include <stdio.h>

  int main() {
      printf("Hello World from C  :-)\n");
      return 0;
  }
```

Well, inline code like `int main()` works too :)
Also with syntax highlighting like `int main()`{.c} ...

Code Block, Font Size
---------------------

``` {.c size="tiny"}
  #include <stdio.h>

  int main() {
      printf("Hello World from C  :-)\n");
      return 0;
  }
```

With the filter `listings.lua` the font size for code blocks is set to
"`small`" when emitting LaTeX code. A "size" attribute will overwrite
this. All LaTeX font size commands can be used as values (without leading
backslash).

`````` {.markdown size="Large"}
  ``` {.c size="tiny"}
  #include <stdio.h>
  ...
  ```
``````

Highlighting of Text
--------------------

*   Use `*italic*` to *emphasize* in Markdown
*   Use `**bold**` to **emphasize** in Markdown

Use some Inline Math
--------------------

*   Aktivierung Neuron $j$: $a_j = \sum_i w_{ji} z_i$
*   Ausgabe von Neuron $j$: $z_j = g(a_j)$

*   Transferfunktion: $g(a) = 1/(1+\exp(-a))$
*   Ableitung: $g'(a) = g(a)(1-g(a))$

*   Ausgabe-Schicht: Index $k$: $y_k = z_k = g(a_k) = g(\sum_j w_{kj} z_j)$
*   Hidden Layer: Index $j$: $z_j = g(a_j) = g(\sum_i w_{ji} z_i)$
*   Eingabe-Schicht: Index $i$: $z_i = x_i$

*   $w_{kj}$: Gewicht gehört zu Neuron $k$, Verbindung zu Neuron $j$

Use some Display Math
---------------------

*   **Fehler**: Summe über alle Ausgabeneurone

    $$
        E = \sum_d E^{(d)}
    $$
    mit
    $$
        E^{(d)} = \dfrac{1}{2} \sum_k (y_k^{(d)} - t_k^{(d)})^2
    $$

\smallskip

*   **Lernregel (Gradientenabstieg)**

    $$
        w_{ji} \gets w_{ji} + \Delta w_{ji}
    $$
    mit
    $$
        \Delta w_{ji} = -\eta \dfrac{\partial E}{\partial w_{ji}}
    $$

Quoting
-------

> Artificial Intelligence is the study of how to make computers do things at
> which, at the moment, people are better.
>
> \hfill -- Elaine Rich ("Artificial Intelligence", McGraw-Hill, 1983)

Tables: Simple Table
--------------------

Betrachten Sie folgende Trainingsmenge

Nase läuft  Husten  Gerötete Haut   Fieber  Klasse
----------- ------- --------------  ------- -------
1           1       1               0       krank
1           1       0               0       krank
0           0       1               1       krank
1           0       0               0       gesund
0           0       0               0       gesund
0           1       1               0       gesund

Trainieren Sie mit diesem Datensatz einen Naive Bayes Klassifikator. Verwenden
Sie Laplace-Glättung mit $m=4$ und gehen Sie von einem uniformen Prior $p$ aus.
Geben Sie alle (bedingten) Wahrscheinlichkeiten an.

Tables: Multiline Table
-----------------------

Betrachten Sie folgende Trainingsmenge

---------------------------------------------------
Nase läuft  Husten  Gerötete Haut   Fieber  Klasse
----------- ------- --------------  ------- -------
1           1       1               0       krank

1           1       0               0       krank

0           0       1               1       krank

1           0       0               0       gesund

0           0       0               0       gesund

0           1       1               0       gesund
---------------------------------------------------

like the table above, but pandoc pays attention to widths of columns ...

Columns (using Columns Blocks in Pandoc 2.1.x)
----------------------------------------------

<!-- XXX works like columns in beamer; needs pandoc 2.1.x -->

::: columns
::: {.column width="40%"}
```c
int x = 42;
void f() {
    int x = 9;
}
```
:::
::: {.column width="50%"}
![some figure (automatically scaled)](figs/somefig)\
:::
:::

Extra Definitions for TeX and HTML
==================================

::: notes
Extra Definitions (needs `beamer.tex` or `tex.lua` filter and/or `html.css`, resp.)
:::

Hint to Examples
----------------

```c
  /*
   * cHelloWorld.c
   *
   */
  #include <stdio.h>

  int main() {
      printf("Hello World from C  :-)\n");
      return 0;
  }
```

Well, inline code like `int main()` works too :)

<!-- XXX show example during lecture -->

[Eclipse: `src/vl01/cHelloWorld.c`]{.bsp}

Extra Highlighting
------------------

In addition to *italic* and **bold** there are some span classes defined
(we need a lua filter plus some css):

*   Use `[...]{.alert}` to [highlight]{.alert} in red color
*   Use `**[...]{.alert}**` to **[highlight (bold)]{.alert}** in red color w/ bold face
*   Use `\blueArrow` to \blueArrow point to something

Coloured Boxes
--------------

```md
::: cbox
Wie Bergsteigen am Mount Everest in dickem Nebel mit Gedächtnisverlust.
:::
```

::: cbox
Wie Bergsteigen am Mount Everest in dickem Nebel mit Gedächtnisverlust.
:::

```md
::: cbox
**[Wie funktionierts?]{.alert}**
:::
```

::: cbox
**[Wie funktionierts?]{.alert}**
:::

(needs TeX macro and/or pandoc filter plus some css)

::: notes
**Note**: Please use the new Div version of `cbox` as shown above. The
outdated Span version (`[...]{.cbox}`) is no longer supported.
:::

Inline Image (with source information)
--------------------------------------

Lorem ipsum dolor sit amet, ...

![some inline image](somefig){width=40mm}\
[Source: Made by cagix and [Pandoc](http://pandoc.org)]{.origin}

... consetetur sadipscing elitr, sed ...

Figure (with source information)
--------------------------------

Lorem ipsum dolor sit amet, ...

![some figure (Source: Made by cagix and [Pandoc](http://pandoc.org))](somefig){width=40mm}

... consetetur sadipscing elitr, sed ...

Lecture Notes
=============

Lecture Notes
-------------

It is useful to keep the slides clean: Show only important things.

However, we want to include further explanations or other material in the
generated html handout.

This can be achived using special block markers: `::: notes` and `:::`
(may contain pandoc blocks) or `[...]{.notes}` (for pandoc inlines only) and
some pandoc filter to remove the content when generating beamer slides.

Lecture Notes using blocks (`::: notes` and `:::`)
--------------------------------------------------

*   sed diam nonumy eirmod tempor invidunt ut labore et dolore

    ::: notes

    *   For Beamer slides, `::: notes` and `:::` and the content in
        between will be removed by the `tex.lua` filter.

    *   For HTML handout, block notes and inline notes will be transformed into
        divs and spans, resp., with class "`notes`". There is an empty definition
        in `html.css`.

    :::

*   magna aliquyam erat, sed diam voluptua.

    ::: notes

    Please note:

    *   For every `::: notes` there must be a corresponding `:::`.

    *   `::: notes` and `:::` define a new block and need to be handled according
        to the Pandoc manual.

    *   Lecture notes can't be nested.^[Actually, that is for Pandoc to decide ;-)  As blocks *can* be nested, there is a chance for nested notes blocks working ...]

    *   Remember, in handout mode `::: notes` and `:::` are just being
        ignored, i.e. to be properly digested by Pandoc the remaining text must
        be valid Markdown and indentation should match the surrounding text.

    :::

::: notes

Text between `::: notes` and `:::` will not appear in slides,
but in the handout (HTML, EPUB, PDF).

You can use here Markdown and/or LaTeX :)

## Even sections will work.

Told you :)

### Section Level 3

wuppie fluppie

#### Section Level 4

foo bar ...

[www.fh-bielefeld.de](http://www.fh-bielefeld.de)

$$
    \Delta w_{ji} = -\eta \dfrac{\partial E}{\partial w_{ji}}
$$

:::

Lecture Notes using inline notes: `[...]{.notes}`
-------------------------------------------------

A simple `[abcdefg]{.notes}` will set "abcdefg" as inline note.

*   Lorem ipsum dolor ... [sit amet, consetetur]{.notes} ... sadipscing elitr,

    [You can use lecture notes nearly everywhere, e.g. to explain a bullet point ...]{.notes}

*   Lorem ipsum dolor sit amet, ... [**[consetetur]{.alert}**]{.notes} ... sadipscing elitr,

*   sed diam nonumy **[eirmod tempor invidunt]{.alert}** ut labore et dolore ...

*   magna aliquyam erat, sed diam voluptua.

Slides only
-----------

Using `[...]{.slides}` or `::: slides` and `:::` you can include material, which will appear
only in the generated slide deck[, but not in the generated HTML handout]{.slides}.

::: slides

Text between `::: slides` and `:::` will only appear in slides,
but not in the handout (HTML, EPUB, PDF).

You can use here Markdown and/or LaTeX :)

### Section Level 3

wuppie fluppie

#### Section Level 4

foo bar ...

:::

wuppie!

Home-Button {#home-button}
--------------------------

Add a metatada variable `home` to the YAML header containing a string with
the URI of a document, e.g. a syllabus. In the handout (lecture notes, HTML)
a fixed yellow button (pure CSS) will appear on the bottom of the document
to the right to allow for easier navigation to a certain "home" document.

As an example the `home` of this document is set to "`pm_vl_template.html`".

"Show me" button to reveal initially hidden content
---------------------------------------------------

To hide parts of the content in the HTML handout and reveal it on demand,
there is a Div with class `showme`. This can be used to hide hints or
answers to questions or challenges.

The content of this Div is initially not shown, instead there is a pure
CSS button labled "Show me" presented. Activating this button will reveal
the hidden content, pushing it again will hide the content.

A given identifier will be used as label.

### Example Question 1: Wuppie?

```markdown
::: showme
Wuppie
:::
```

::: showme
Wuppie
:::

###  Example Question 2: Foo!

```markdown
::: {.showme #FOO}
Fluppie

Bar, too!
:::
```

::: {.showme #FOO}
Fluppie

Bar, too!
:::

Handling of LaTeX Environments
==============================

Using LaTeX Environments
------------------------

*   LaTeX environments will be passed to LaTeX but ignored for HTML

    :::notes
    blabla \blueArrow i.e. **completely**!
    :::

    \blueArrow (Test for block notes filter)

*   ... should work as well for `notes` :-)
    [blabla \blueArrow i.e. **completely**!]{.notes}

    \blueArrow (Test for inline notes filter)

Using LaTeX Environments containing Markdown
--------------------------------------------

*   Markdown within environments will **not** be processed by Pandoc
    *   Workaround: Define "begin" and "end" commands/tags ...
    *   Examples:
        -   `\centerbegin` and `\centerend`:

            ```latex
            \newcommand{\centerbegin}{\begin{center}}
            \newcommand{\centerend}{\end{center}}
            ```

        -   `\minipagebegin` and `\minipageend`:

            ```latex
            \newcommand{\minipagebegin}{\begin{minipage}}
            \newcommand{\minipageend}{\end{minipage}}
            ```

        ::: notes
        **Note**: By using the Lua filter `tex.lua` you can also access LaTeX commands and environment
        by using a corresponding Span or Div.

        Example:

        -   `[...]{.myCmd}` will be translated by `tex.lua` into `\myCmd{...}`
        -   `::: myEnv ... :::` will be translated by `tex.lua` into `\begin{myEnv} ... \end{myEnv}`

        Simply add your command or environment to the lists `latexCmds` or `latexEnvs` at the beginning
        of `tex.lua`.

        For custom definitions (commands/environments) you also need to add the definition of your
        command or environment to `definitions.tex`.

        This way you can e.g. center things by using

        ```md
        ::: center
        centered markdown content
        :::
        ```
        :::

*   HTML/EPUB: Math and simple \LaTeX\ macros are properly translated by
    Pandoc. For everything else define filters and/or corresponding CSS ...

Defininition of simple LaTeX Macros
-----------------------------------

\newcommand{\myArrow}{$\Rightarrow$}

If you place the definition of a simple(!) \LaTeX\ macro in your text, it
should work in HTML as well \myArrow like this :)   However, this will not
work, if you include your definitions using the `-H` option for Pandoc or the
macros get more interesting ...

Literature {.bib}
=================

Pandoc, Citeproc and Bibtex Files
---------------------------------

*   Add a metavariable `bibliography`, point to bibtex file
*   Use option `--citeproc`^[In the example `Makefile.lecture` this option is used only to generate HTML handouts, not PDF slide desks.]
*   Quote as always, i.e.
    *   use `[@Russell2014]` in text, or
    *   use `nocite:  @Russell2014` in YAML header

*   Pandoc will replace all `<div id="refs" class="references"> </div>`
    with generated references (or insert references at the
    end of the document)

<div id="refs" class="references"> </div>

Just for demonstration: This is (not) the end ;-)

*   Pandoc will use the `chicago-author-date.csl` style. Use metavariable `csl`
    to change this.

::: notes
# Challenges {.challenges}

This is like an appendix to give the students tasks to work on independently for
deepening knowledge and learning progress control.

## Task A

Explain this! Prove that! ... Wuppie :)
:::


text:
package org.odata4j.core;

import org.odata4j.edm.EdmSimpleType;
import org.odata4j.edm.EdmType;
import org.odata4j.exceptions.NotImplementedException;
import org.odata4j.expression.CommonExpression;
import org.odata4j.expression.Expression;
import org.odata4j.expression.ExpressionParser;
import org.odata4j.expression.LiteralExpression;

/**
 * A static factory to create immutable {@link OFunctionParameter} instances.
 */
public class OFunctionParameters {

  private OFunctionParameters() {}

  /**
   * Creates a new OFunctionParameter, inferring the edm-type from the value provided, which cannot be null.
   *
   * @param <T>  the property value's java-type
   * @param name  the property name
   * @param value  the property value
   * @return a new OData property instance
   */
  public static <T> OFunctionParameter create(String name, T value) {
    if (value == null)
      throw new IllegalArgumentException("Cannot infer EdmType if value is null");

    if (value instanceof OObject) {
      return new FunctionParameterImpl(name, (OObject) value);
    }

    EdmSimpleType<?> type = EdmSimpleType.forJavaType(value.getClass());
    return new FunctionParameterImpl(name, OSimpleObjects.create(type, value));
  }

  /** Creates a new OFunctionParameter by parsing a string value */
  public static OFunctionParameter parse(String name, EdmType type, String value) {
    if (type instanceof EdmSimpleType) {
      CommonExpression ce = ExpressionParser.parse(value);
      if (ce instanceof LiteralExpression) {
        // may have to case the literalValue based on type...
        Object val = convert(Expression.literalValue((LiteralExpression) ce), (EdmSimpleType<?>) type);
        return new FunctionParameterImpl(name, OSimpleObjects.create((EdmSimpleType<?>) type, val));
      }
    }
    // TODO for other types
    throw new NotImplementedException();
  }

  private static Object convert(Object val, EdmSimpleType<?> type) {
    Object v = val;
    if (type.equals(EdmSimpleType.INT16) && (!(val instanceof Short))) {
      // parser gave us an Integer
      v = Short.valueOf(((Number) val).shortValue());
    } else if (type.equals(EdmSimpleType.SINGLE) && (!(val instanceof Float))) {
      // parser gave us a Single
      v = new Float(((Number) val).floatValue());
    } else if (type.equals(EdmSimpleType.BYTE) && (!(val instanceof UnsignedByte))) {
      // parser gave us an Edm.Byte
      v = UnsignedByte.valueOf(((Number) val).intValue());
    } else if (type.equals(EdmSimpleType.SBYTE) && (!(val instanceof Byte))) {
      // parser gave us a SByte
      v = Byte.valueOf(((Number) val).byteValue());
    }
    return v;
  }

  private static class FunctionParameterImpl implements OFunctionParameter {

    private final String name;
    private final OObject obj;

    public FunctionParameterImpl(String name, OObject obj) {
      this.name = name;
      this.obj = obj;
    }

    @Override
    public String getName() {
      return name;
    }

    @Override
    public EdmType getType() {
      return obj.getType();
    }

    @Override
    public OObject getValue() {
      return obj;
    }

    @Override
    public String toString() {
      return String.format("OFunctionParameter[%s,%s,%s]", getName(), getType(), getValue());
    }
  }

}


text:
@implementation BMEToken

#pragma mark -
#pragma mark Lifecycle

- (void)dealloc {
    _token = nil;
    _expiryDate = nil;
}

@end


text:
<!DOCTYPE html>

        <meta charset="utf-8">
        <title>stick/middleware/profiler - Stick 0.4 API</title>

        <link rel="shortcut icon" href="http://ringojs.org/favicon.ico" type="image/x-icon" />
        <link rel="icon" href="http://ringojs.org/favicon.ico" type="image/x-icon" />
        <link href='http://fonts.googleapis.com/css?family=Fira+Mono:400,700|Open+Sans:400italic,700italic,700,400,600' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="../../static/jsdoc.css" />
<link rel="stylesheet" href="../../static/style.css" />

Module stick/middleware/profiler

This module provides profiling middleware to measure
the application's runtime behaviour.

Profiler data is written to the module's logger. You have to run the
application in interpreted mode (passing -o -1 on the command line)
to get meaningful results.

Functions

                     middleware(next, app)

                    middleware
                    (next, app)

A middleware factory that runs the nested app with a runtime profiler.

Parameters

                            Function
                            next
                            the wrapped middleware chain

                            Object
                            app
                            the Stick Application object

Returns

                            Function
                             a JSGI middleware function

Stick 0.4 API

      • Modules
      • Overview

   <input id="filter" type="text" placeholder="Filter modules" />

stick

stick/helpers

stick/middleware

stick/middleware/accept

stick/middleware/basicauth

stick/middleware/continuation

stick/middleware/cookies

stick/middleware/cors

stick/middleware/csrf

stick/middleware/error

stick/middleware/etag

stick/middleware/gzip

stick/middleware/method

stick/middleware/mount

stick/middleware/notfound

stick/middleware/params

stick/middleware/profiler

stick/middleware/render

stick/middleware/requestlog

stick/middleware/route

stick/middleware/session

stick/middleware/static

stick/middleware/upload


text:
@extends('layouts.master')

@section('content')

{{$title or ''}}

  	  {{$content or ''}}

@stop

@section('scripts')
@stop

@section('styles')
@stop


text:
CREATE TABLE apples(id int PRIMARY KEY, type text);
INSERT INTO apples(id) SELECT generate_series(1, 100000);
CREATE TABLE box_locations(id int PRIMARY KEY, address text);
CREATE TABLE boxes(id int PRIMARY KEY, apple_id int REFERENCES apples(id), location_id int REFERENCES box_locations(id));

--- Check Explain Text format output
-- explain_processing_off
EXPLAIN SELECT * from boxes LEFT JOIN apples ON apples.id = boxes.apple_id LEFT JOIN box_locations ON box_locations.id = boxes.location_id;
-- explain_processing_on

--- Check Explain Analyze Text output that include the slices information
-- explain_processing_off
EXPLAIN (ANALYZE) SELECT * from boxes LEFT JOIN apples ON apples.id = boxes.apple_id LEFT JOIN box_locations ON box_locations.id = boxes.location_id;
-- explain_processing_on

-- Unaligned output format is better for the YAML / XML / JSON outputs.
-- In aligned format, you have end-of-line markers at the end of each line,
-- and its position depends on the longest line. If the width changes, all
-- lines need to be adjusted for the moved end-of-line-marker.
\a

-- YAML Required replaces for costs and time changes
-- start_matchsubs
-- m/ Loops: \d+/
-- s/ Loops: \d+/ Loops: #/
-- m/ Cost: \d+\.\d+/
-- s/ Cost: \d+\.\d+/ Cost: ###.##/
-- m/ Rows: \d+/
-- s/ Rows: \d+/ Rows: #####/
-- m/ Plan Width: \d+/
-- s/ Plan Width: \d+/ Plan Width: ##/
-- m/ Time: \d+\.\d+/
-- s/ Time: \d+\.\d+/ Time: ##.###/
-- m/Execution Time: \d+\.\d+/
-- s/Execution Time: \d+\.\d+/Execution Time: ##.###/
-- m/Segments: \d+/
-- s/Segments: \d+/Segments: #/
-- m/Pivotal Optimizer \(GPORCA\) version \d+\.\d+\.\d+",?/
-- s/Pivotal Optimizer \(GPORCA\) version \d+\.\d+\.\d+",?/Pivotal Optimizer \(GPORCA\)"/
-- m/ Memory: \d+/
-- s/ Memory: \d+/ Memory: ###/
-- m/Maximum Memory Used: \d+/
-- s/Maximum Memory Used: \d+/Maximum Memory Used: ###/
-- m/Workers: \d+/
-- s/Workers: \d+/Workers: ##/
-- m/Average: \d+/
-- s/Average: \d+/Average: ##/
-- m/Total memory used across slices: \d+/
-- s/Total memory used across slices: \d+\s*/Total memory used across slices: ###/
-- m/Memory used: \d+/
-- s/Memory used: \d+/Memory used: ###/
-- end_matchsubs
-- Check Explain YAML output
EXPLAIN (FORMAT YAML) SELECT * from boxes LEFT JOIN apples ON apples.id = boxes.apple_id LEFT JOIN box_locations ON box_locations.id = boxes.location_id;

--- Check Explain Analyze YAML output that include the slices information
-- explain_processing_off
EXPLAIN (ANALYZE, FORMAT YAML) SELECT * from boxes LEFT JOIN apples ON apples.id = boxes.apple_id LEFT JOIN box_locations ON box_locations.id = boxes.location_id;
-- explain_processing_on

--
-- Test a simple case with JSON and XML output, too.
--
-- This should be enough for those format. The only difference between JSON,
-- XML, and YAML is in the formatting, after all.

-- Check JSON format
--
-- start_matchsubs
-- m/Pivotal Optimizer \(GPORCA\) version \d+\.\d+\.\d+/
-- s/Pivotal Optimizer \(GPORCA\) version \d+\.\d+\.\d+/Pivotal Optimizer \(GPORCA\)/
-- end_matchsubs
-- explain_processing_off
EXPLAIN (FORMAT JSON, COSTS OFF) SELECT * FROM generate_series(1, 10);

EXPLAIN (FORMAT XML, COSTS OFF) SELECT * FROM generate_series(1, 10);

-- Test for an old bug in printing Sequence nodes in JSON/XML format
-- (https://github.com/greenplum-db/gpdb/issues/9410)
CREATE TABLE jsonexplaintest (i int4) PARTITION BY RANGE (i) (START(1) END(3) EVERY(1));
EXPLAIN (FORMAT JSON, COSTS OFF) SELECT * FROM jsonexplaintest WHERE i = 2;

-- explain_processing_on

-- Cleanup
DROP TABLE boxes;
DROP TABLE apples;
DROP TABLE box_locations;
DROP TABLE jsonexplaintest;


text:
/*
 * Lista 4
 * 3 - Lista
 * 3lista.cpp
 * Hugo F S Sadok Menna Barreto
 */

 #include <iostream>

 #include "3lista.h"

 using namespace std;

 Lista::Lista(){
 	listaFinal = NULL;
 	listaInicio = NULL;
 }

 void Lista::addElement(string nome, string telefone){
 	nodeType *node;

 	node = new nodeType;

 	node->name = nome;
 	node->phone = telefone;
 	node->next = NULL;

 	if(listaFinal == NULL){
 		listaInicio = listaFinal = node;
 		return;
 	}

 	listaFinal->next = node;
 	listaFinal = node;

 	return;
 }

 void Lista::cleanList(){
 	nodeType *aux;
 	while(listaInicio != NULL){
 		aux = listaInicio->next;
 		delete listaInicio;
 		listaInicio = aux;
 	}
 	listaInicio = listaFinal = NULL;
 }

 void Lista::printList(){
 	if(!listaInicio){
 		cout << "Lista vazia!\n";
 		return;
 	}

 	for(nodeType *i = listaInicio; i != NULL; i = i->next){
 		cout << "Nome: " << i->name << "  Telefone: " << i->phone << endl;
 	}
 }


text:
package us.dot.its.jpo.ode.plugin.j2735;

public class J2735ExteriorLights extends J2735BitString {

    private static final long serialVersionUID = 1L;

}


text:
A space-saving dynamic memory allocator by mapping physical pages well.

**This repository is for experimental use, so it may contain some dangerous code.
Use this repository at your own risk.
Especially in Virtual Multiheap-fit, there is processing which requires
administrator authority, so there is a risk of disastrous error.**

## Requirement

The code is written assuming only when using GCC on Linux.
Probably it can not be compiled by compilers other than GCC.

The operation was checked only on Linux Kernel version 3.13.0, so
it may not work with other versions.

In order to compile the kernel module, you may have to install header files in
`/lib/modules`. These can be installed using a package management system such
as `apt`.

## Usage

First, kernel module should be compiled and inserted to the system.
Compiling can be done only once, but inserting should be done every time
OS is restarted.
These operations can be performed by the following command in
`kernel_module` directory:

```sh
make insmod
```

While executing the above command, you may be asked for administrator authority.

To reinstall the modified kernel module, you need to remove old kernel module
from the system by typing the following command:

```sh
make rmmod
```

This command may also be asked for administrator authority.

You can compile the library body simply by moving to `allocator` directory and
typing `make`.

## Example

`allocator/sample.c` is a sample code for operation confirmation.
Compile and run it as follows:

```sh
pushd kernel_module
make insmod
popd
cd allocator
make
gcc -I./include -o sample sample.c virtual_multiheap_fit.a -lm
./sample
```

## Notes

So many mappings can be created in
the kernel module of Virtual Multiheap-fit, so the number of it may exceed
the maximum number.
The maximum number of maps a process can make is written in the file
`/proc/sys/vm/max_map_count`.

In order to avoid this, add `vm.max_map_count = <huge number>` to
the file `/etc/sysctl.conf` and type `sudo sysctl -p` to refrect these changes.

For brevity of code, we do not assign a block number(bid) during `vmf_allocate`.
Therefore, it is necessary for the user to determine whether each block number
is currently in use or not.


text:
import numpy as np
import matplotlib.pyplot as plt
import sys, os, serial, threading
import pygame
from pygame.locals import *
from collections import deque

red = pygame.Color(255,0,0)
green = pygame.Color(0,255,0)
yellow = pygame.Color(255,255,0)
cyan = pygame.Color(0,255,255)
blue = pygame.Color(0,0,255)
black = pygame.Color(0,0,0)
white = pygame.Color(255,255,255)

pygame.init()
fpsClock = pygame.time.Clock()

width = 800
hieght = 800

windowSurfaceObj = pygame.display.set_mode((width,hieght))
pygame.display.set_caption('Python Plot')

def convertBytes(b1, b2):
	value = (b1<<8) + b2
	if(value > 32768):
		return value - 65536
	return value

def parseData():
	d = ord(ser.read())
	if(d != 170):
		return;
	x = convertBytes(ord(ser.read()),ord(ser.read()))
	y = convertBytes(ord(ser.read()),ord(ser.read()))
	z = convertBytes(ord(ser.read()),ord(ser.read()))
	return x,y,z

def convertScale(v):
	return hieght/2 - v/10

# class that holds analog data for N samples
class AnalogData:
	# constr
	def __init__(self, maxLen):
		self.ax = deque([0.0]*maxLen)
		self.ay = deque([0.0]*maxLen)
		self.az = deque([0.0]*maxLen)
		self.maxLen = maxLen

	#compute statistics
	def computeStats(self,buf):
		mu = 0.0
		sig = 0.0
		for i in buf:
			mu += i
		mu /= len(buf)
		for i in buf:
			sig += (i-mu)*(i-mu)
		sig /= len(buf)-1
		return mu,sig

	def computeAllStats(self):
		print "x: ",self.computeStats(self.ax)
		print "y: ",self.computeStats(self.ay)
		print "z: ",self.computeStats(self.az)

	# ring buffer
	def addToBuf(self, buf, val):
		if len(buf) < self.maxLen:
			buf.append(val)
		else:
			buf.pop()
			buf.appendleft(val)

	# add data
	def add(self, data):
		assert(len(data) == 3)
		self.addToBuf(self.ax, data[0])
		self.addToBuf(self.ay, data[1])
		self.addToBuf(self.az, data[2])

port = "/dev/ttyACM0"
baud = 57600
print "Openning",port,"at",baud,"..."
ser = serial.Serial(port, baud, timeout=1)

xCursor = 0;

px2 = (0,0)
py2 = (0,0)
pz2 = (0,0)

observationCount = 1000
analogData = AnalogData(observationCount)
dataCount = 0

while True:

	if ser.isOpen():
		data = parseData();
		print "Data",dataCount,":",data
		analogData.add(data)
		dataCount += 1
		if(dataCount == observationCount):
			analogData.computeAllStats()
			pygame.quit()
			sys.exit()
		px1 = px2
		py1 = py2
		pz1 = pz2
		px2 = (xCursor,convertScale(data[0]));
		py2 = (xCursor,convertScale(data[1]));
		pz2 = (xCursor,convertScale(data[2]));
		if(xCursor == 0):
			px1 = px2
			py1 = py2
			pz1 = pz2
		pygame.draw.rect(windowSurfaceObj, black,(xCursor,0,10,hieght))
		pygame.draw.line(windowSurfaceObj, white, (xCursor+1,0),(xCursor+1,hieght),1)
		pygame.draw.line(windowSurfaceObj, red, px1,px2,1)
		pygame.draw.line(windowSurfaceObj, green, py1,py2,1)
		pygame.draw.line(windowSurfaceObj, blue, pz1,pz2,1)
		xCursor += 1
		if(xCursor >= width):
			xCursor = 0
	for event in pygame.event.get():
		if event.type == QUIT:
			pygame.quit()
			sys.exit()
		if event.type == KEYDOWN:
			if event.key == K_ESCAPE:
				pygame.event.post(pygame.event.Event(QUIT))
	pygame.display.update()

ser.close()


text:
require 'spec_helper'

lorem_ipsum = <<EOS
Lorem ipsum dolor sit amet, secret consectetuer adipiscing elit, sed diam nonummy nibh
euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim
ad minim veniam, quis nostrud secret exerci tation ullamcorper suscipit lobortis nisl
ut aliquip ex ea commodo consequat. Duis splople autem vel eum iriure dolor in
hendrerit in vulputate velit esse secret molestie consequat, vel illum dolore eu
feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui
blandit praesent luptatum zzril password delenit augue duis dolore te feugait nulla
facilisi.

Pellentesque at dolor non lectus sagittis semper. Donec quis mi. Duis eget
pede. Phasellus arcu tellus, ultricies id, consequat id, lobortis nec, diam.
Suspendisse sed nunc. Pellentesque id magna. Morbi interdum quam at est.
Maecenas eleifend mi in urna. Praesent et lectus ac nibh luctus viverra. In vel
dolor sed nibh sollicitudin tincidunt. Ut consequat nisi sit amet nibh. Nunc mi
tortor, tristique sit amet, rhoncus porta, malesuada elementum, nisi. Integer
vitae enim quis risus aliquet gravida. Curabitur vel lorem vel erat dapibus
lobortis. Donec dignissim tellus at arcu. Quisque molestie pulvinar sem.

Nulla magna neque, ullamcorper tempus, luctus eget, malesuada ut, velit. Morbi
felis. Praesent in purus at ipsum cursus posuere. Morbi bibendum facilisis
eros. Phasellus aliquam sapien in erat. Praesent venenatis diam dignissim dui.
Praesent risus erat, iaculis ac, dapibus sed, imperdiet ac, erat. Nullam sed
ipsum. Phasellus non dolor. Donec ut elit.
EOS

describe Codesake::Engine::Text do
  before(:all) do
    File.open("lorem.txt", "w") do |f|
      f.write(lorem_ipsum)
    end
    @text = Codesake::Engine::Text.new("lorem.txt")
  end
  after(:all) do
    File.delete("lorem.txt") if File.exists?("lorem.txt")
  end

  it_behaves_like Codesake::Utils::Files
  it_behaves_like Codesake::Utils::Secrets
  it_behaves_like Codesake::Engine::Core

  it "takes a filename as input" do
    @text.filename.should_not be_nil
    @text.filename.should_not be_empty
  end

  context "has a is_txt? method" do
    it "and this method is public" do
      Codesake::Engine::Text.should respond_to(:is_txt?)
    end
    it "returns false if file extension is not .txt" do
      Codesake::Engine::Text.is_txt?("text.jsp").should   be_false
    end
    it "returns true if file extension is .txt" do
      Codesake::Engine::Text.is_txt?("text.txt").should   be_true
    end
  end

  it "analyse the file for reserved words" do

    # secret @1, 3, 5
    # password @7
    expected_result = [{:line=>1, :matcher=>"secret"}, {:line=>3, :matcher=>"secret"}, {:line=>5, :matcher=>"secret"}, {:line=>7, :matcher=>"password"}]
    @text.analyse.should_not  be_nil
    @text.reserved_keywords.size.should == 4
    @text.reserved_keywords.should == expected_result

  end

end