text:
@article{Hu_2016_IEJ,
  title={Investigation of earthquake jump distance for strike-slip step overs based on 3-D dynamic rupture simulations in an elastic half-space},
  author={Hu, Feng and Zhang, Zhenguo and Chen, Xiaofei},
  journal={JGR Solid Earth},
  volume={121},
  number={2},
  pages={994--1006},
  year={2016},
  publisher={Wiley Online Library}
}

@article{Li_2020_ERT,
  title={Earthquake Rupture Through a Step-Over Fault System: An Exploratory Numerical Study of the Leech River Fault, Southern Vancouver Island},
  author={Li, Ge and Liu, Yajing},
  journal={JGR Solid Earth},
  volume={125},
  number={11},
  pages={e2020JB020059},
  year={2020},
  publisher={Wiley Online Library}
}

@article{Pousse_2020_LPN,
  title={Localized afterslip at geometrical complexities revealed by InSAR after the 2016 Central Italy seismic sequence},
  author={Pousse-Beltran, L{\'e}a and Socquet, Anne and Benedetti, Lucilla and Doin, Marie-Pierre and Rizza, Magali and d'Agostino, Nicola},
  journal={Journal of Geophysical Research: Solid Earth},
  volume={125},
  number={11},
  pages={e2019JB019065},
  year={2020},
  publisher={Wiley Online Library}
}

@article{Improta_2019_AVN,
  title={Multi-segment rupture of the 2016 Amatrice-Visso-Norcia seismic sequence (central Italy) constrained by the first high-quality catalog of Early Aftershocks},
  author={Improta, Luigi and Latorre, Diana and Margheriti, Lucia and Nardi, Anna and Marchetti, Alessandro and Lombardi, Anna Maria and Castello, Barbara and Villani, Fabio and Ciaccio, Maria Grazia and Mele, Francesco Mariano and others},
  journal={Sci. Rep.},
  volume={9},
  number={1},
  pages={1--13},
  year={2019},
  publisher={Nature Publishing Group}
}

@article{Valoroso_2013_AQUILA,
  title={Radiography of a normal fault system by 64,000 high-precision earthquake locations: The 2009 L'Aquila (central Italy) case study},
  author={Valoroso, L and Chiaraluce, L and Piccinini, D and Di Stefano, R and Schaff, D and Waldhauser, Felix},
  journal={JGR Solid Earth},
  volume={118},
  number={3},
  pages={1156--1176},
  year={2013},
  publisher={Wiley Online Library}
}

@article{Bernard_1989_IRPINIA,
  title={The Irpinia (Italy) 1980 earthquake: detailed analysis of a complex normal faulting},
  author={Bernard, Pascal and Zollo, Aldo},
  journal={JGR Solid Earth},
  volume={94},
  number={B2},
  pages={1631--1647},
  year={1989},
  publisher={Wiley Online Library}
}

@article{Bai_2017_ESD,
  title={Effect of seismogenic depth and background stress on physical limits of earthquake rupture across fault step overs},
  author={Bai, Kangchen and Ampuero, Jean-Paul},
  journal={JGR Solid Earth},
  volume={122},
  number={12},
  pages={10--280},
  year={2017},
  publisher={Wiley Online Library}
}

@article{Walker_2021_FAULT2SHA,
  title={Fault2SHA Central Apennines database and structuring active fault data for seismic hazard assessment},
  author={Walker, Joanna Faure and Boncio, Paolo and Pace, Bruno and Roberts, Gerald and Benedetti, Lucilla and Scotti, Oona and Visini, Francesco and Peruzza, Laura},
  journal={Sci. Dat.},
  volume={8},
  number={1},
  pages={1--20},
  year={2021},
  publisher={Nature Publishing Group}
}

@inproceedings{Uphoff_2017_ESM,
  title={Extreme scale multi-physics simulations of the tsunamigenic 2004 sumatra megathrust earthquake},
  author={Uphoff, Carsten and Rettenberger, Sebastian and Bader, Michael and Madden, Elizabeth H and Ulrich, Thomas and Wollherr, Stephanie and Gabriel, Alice-Agnes},
  booktitle={Proc. Int. HPC},
  pages={1--16},
  year={2017}
}

@inproceedings{Breuer_2014_SPP,
  title={Sustained petascale performance of seismic simulations with SeisSol on SuperMUC},
  author={Breuer, Alexander and Heinecke, Alexander and Rettenberger, Sebastian and Bader, Michael and Gabriel, Alice-Agnes and Pelties, Christian},
  booktitle={Int. SupComp. Conf.},
  pages={1--18},
  year={2014},
  organization={Springer}
}
@article{Ulrich_2019_DVK,
  title={Dynamic viability of the 2016 Mw 7.8 Kaik{\=o}ura earthquake cascade on weak crustal faults},
  author={Ulrich, Thomas and Gabriel, Alice-Agnes and Ampuero, Jean-Paul and Xu, Wenbin},
  journal={Nat. Commun.},
  volume={10},
  number={1},
  pages={1--16},
  year={2019},
  publisher={Nature Publishing Group}
}
@incollection{Kaser_2010_SEISSOL,
  title={SeisSol--a software for seismic wave propagation simulations},
  author={K{\"a}ser, Martin and Castro, Cristobal and Hermann, Verena and Pelties, Christian},
  booktitle={HPC in Science},
  pages={281--292},
  year={2010},
  publisher={Springer}
}
@article{Ulrich_2019_CPB,
  title={Coupled, physics-based modeling reveals earthquake displacements are critical to the 2018 Palu, Sulawesi tsunami},
  author={Ulrich, Thomas and Vater, Stefan and Madden, Elizabeth H and Behrens, J{\"o}rn and van Dinther, Ylona and Van Zelst, Iris and Fielding, Eric J and Liang, Cunren and Gabriel, A-A},
  journal={Pure App. Geophys.},
  volume={176},
  number={10},
  pages={4069--4109},
  year={2019},
  publisher={Springer}
}
@article{Wollherr_2018_OFP,
  title={Off-fault plasticity in three-dimensional dynamic rupture simulations using a modal Discontinuous Galerkin method on unstructured meshes: implementation, verification and application},
  author={Wollherr, Stephanie and Gabriel, Alice-Agnes and Uphoff, Carsten},
  journal={GJI},
  volume={214},
  number={3},
  pages={1556--1584},
  year={2018},
  publisher={Oxford University Press}
}


text:
DESCRIPTION = "The Battle for Wesnoth is a turn-based strategy game with a fantasy theme."
HOMEPAGE = "http://www.wesnoth.org/"
SECTION = "games"
LICENSE = "GPL"

DEPENDS = "freetype libsdl-image libsdl-mixer libsdl-net libsdl-ttf zlib boost imagemagick-native pango libpng"
PR = "r0"

SRC_URI = "${SOURCEFORGE_MIRROR}/wesnoth/${PN}-${PV}.tar.bz2;name=tarball"
SRC_URI[tarball.md5sum] = "493826bbd9ba355930765a7e8fe3749a"
SRC_URI[tarball.sha256sum] = "7ef047ae364278a5bf9bdc69228f77d825f793f1c4d9adae8b47f0882e7f30d7"

ARM_INSTRUCTION_SET = "arm"

inherit cmake

EXTRA_OECMAKE = "\
	-DGUI=tiny \
	-DENABLE_EDITOR=ON \
	-DENABLE_LOW_MEM=ON \
	-DENABLE_FRIBIDI=OFF \
	\
	-DCMAKE_BUILD_TYPE=Debug \
	"

PACKAGES = "wesnoth-editor wesnoth-doc wesnoth-music wesnoth-sounds \
	wesnoth-aoi wesnoth-did wesnoth-ei wesnoth-httt wesnoth-l \
	wesnoth-nr wesnoth-sof wesnoth-sotbe wesnoth-thot wesnoth-trow \
	wesnoth-tsg wesnoth-tb wesnoth-utbs wesnoth-low\
	wesnoth-data \
	wesnoth-all-campaigns \
	wesnoth-all \
	wesnoth wesnoth-dbg \
	wesnothd \
	"

DESCRIPTION_wesnoth-editor = "Map Editor for The Battle for Wesnoth"
DESCRIPTION_wesnoth-all = "The Battle for Wesnoth with all campaigns, music and sounds"
DESCRIPTION_wesnoth-all-campaigns = "The Battle for Wesnoth with all campaigns."
DESCRIPTION_wesnoth-sounds = "Optional sound package for The Battle for Wesnoth"
DESCRIPTION_wesnoth-music = "Optional music package for The Battle for Wesnoth"
DESCRIPTION_wesnoth-data = "Mandatory data package for The Battle for Wesnoth"
DESCRIPTION_wesnothd = "Optional Battle for Wesnoth server"

do_configure_prepend(){
	export HOST_SYS="${HOST_SYS}"
	export BUILD_SYS="${BUILD_SYS}"
	export STAGING_LIBDIR="${STAGING_LIBDIR}"
	export STAGING_INCDIR="${STAGING_INCDIR}"
	rm -f ${S}/cmake/FindBoost.cmake
}

do_install_append() {
	#ugly hack but otherwise it would have required to
	#have MANDIR:STRING=share/man that would require a
	#second python function
	if [ -d ${D}${prefix}/man ];then
		mv ${D}${prefix}/man ${D}${mandir}
	fi
}

RDEPENDS_wesnoth = "wesnoth-data libpng"

RDEPENDS_wesnoth-editor = "wesnoth-data"

RDEPENDS_wesnoth-all-campaigns = "wesnoth \
	wesnoth-aoi wesnoth-did wesnoth-ei wesnoth-httt wesnoth-l \
	wesnoth-nr wesnoth-sof wesnoth-sotbe wesnoth-thot wesnoth-trow \
	wesnoth-tsg wesnoth-tb wesnoth-utbs wesnoth-low"

# Installing wesnoth-all should pull everything in (like in Debian).
RDEPENDS_wesnoth-all = "wesnoth wesnoth-sounds wesnoth-music"

FILES_wesnoth-music = "\
	${datadir}/wesnoth/data/core/music \
"

FILES_wesnoth-sounds = "\
	${datadir}/wesnoth/data/core/sounds \
"

# Picks up remaining translations and data. Must be packaged after
# wesnoth-music, wesnoth-sounds and all campaigns.
FILES_wesnoth-data = "\
  ${datadir}/wesnoth/sounds \
  ${datadir}/wesnoth/images \
  ${datadir}/wesnoth/data \
  ${datadir}/wesnoth/fonts \
  ${datadir}/wesnoth/translations \
"

FILES_${PN} = "\
  	${bindir}/wesnoth \
	${datadir}/icons \
	${datadir}/applications/wesnoth.desktop \
	${datadir}/pixmaps/wesnoth-icon.png \
"

FILES_wesnothd = "\
	${bindir}/wesnothd \
"

FILES_wesnoth-low ="\
       ${datadir}/wesnoth/data/campaigns/Legend_of_Wesmere \
       ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-aoi.mo \
"

FILES_wesnoth-editor = "\
	${bindir}/wesnoth_editor \
	${datadir}/applications/wesnoth_editor.desktop \
	${datadir}/pixmaps/wesnoth_editor-icon.png \
"

FILES_wesnoth-aoi = "\
	${datadir}/wesnoth/data/campaigns/An_Orcish_Incursion \
	${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-aoi.mo \
"

FILES_wesnoth-did = "\
	${datadir}/wesnoth/data/campaigns/Descent_Into_Darkness \
	${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-did.mo \
"

FILES_wesnoth-ei = "\
	${datadir}/wesnoth/data/campaigns/Eastern_Invasion \
	${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-ei.mo \
"

FILES_wesnoth-httt = "\
	${datadir}/wesnoth/data/campaigns/Heir_To_The_Throne \
	${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-httt.mo \
"

FILES_wesnoth-l = "\
	${datadir}/wesnoth/data/campaigns/Liberty \
	${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-l.mo \
"

FILES_wesnoth-nr = "\
	${datadir}/wesnoth/data/campaigns/Northern_Rebirth \
	${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-nr.mo \
"

FILES_wesnoth-sof = "\
	${datadir}/wesnoth/data/campaigns/Sceptre_Of_Fire \
	${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-sof.mo \
"

FILES_wesnoth-sotbe = "\
	${datadir}/wesnoth/data/campaigns/Son_Of_The_Black_Eye \
	${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-sotbe.mo \
"

FILES_wesnoth-thot = "\
	${datadir}/wesnoth/data/campaigns/The_Hammer_Of_Thursagan \
	${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-thot.mo \
"

FILES_wesnoth-trow = "\
	${datadir}/wesnoth/data/campaigns/The_Rise_Of_Wesnoth \
	${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-trow.mo \
"

FILES_wesnoth-tsg = "\
	${datadir}/wesnoth/data/campaigns/The_South_Guard \
	${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-tsg.mo \
"

FILES_wesnoth-tb = "\
	${datadir}/wesnoth/data/campaigns/Two_Brothers \
	${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-tb.mo \
"

FILES_wesnoth-utbs = "\
	${datadir}/wesnoth/data/campaigns/Under_the_Burning_Suns \
	${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-utbs.mo \
"

license: MIT

repository: overo/overo-oe-natty

license_type: permissive

repo_name: overo/overo-oe-natty

branch_name: HEAD

extension: bb


text:
@article{jaremka_threats_2018,
 abstract = {Purpose of ReviewThe first goal of this review is to discuss the evidence linking belonging threats to immune function and food intake. The second goal is to evaluate whether the links among belonging threats, immune function, and eating behavior differ based on gender.Recent FindingsThreats to belonging are linked to elevated herpesvirus antibody titers, dysregulated appetite-relevant hormones, and increased food consumption. Furthermore, these relationships are largely consistent for both men and women. Threats to belonging are also linked to elevated inflammation. However, some studies showed that these effects were stronger among women, others demonstrated that they were stronger among men, and others determined that the links were consistent for men and women.SummaryUnderstanding why belonging threats are inconsistently linked to inflammation across men and women is an important next step. We conclude the review with four concrete recommendations for researchers studying belonging threats, immune function, and eating behavior.},
 author = {Jaremka, Lisa M. and Lebed, Olga and Sunami, Naoyuki},
 copyright = {All rights reserved},
 doi = {10.1007/s11920-018-0939-2},
 file = {Jaremka et al_2018_Threats to Belonging, Immune Function, and Eating Behavior.pdf:/Users/naoyukisunami/Zotero/storage/FT6HWTPD/Jaremka et al_2018_Threats to Belonging, Immune Function, and Eating Behavior.pdf:application/pdf},
 issn = {1535-1645},
 journal = {Current Psychiatry Reports},
 language = {en},
 month = {August},
 number = {9},
 pages = {71},
 shorttitle = {Threats to Belonging, Immune Function, and Eating Behavior},
 title = {Threats to Belonging, Immune Function, and Eating Behavior: an Examination of Sex and Gender Differences},
 url = {https://doi.org/10.1007/s11920-018-0939-2},
 urldate = {2018-10-30},
 volume = {20},
 year = {2018}
}

branch_name: refs/heads/master

gha_license_id: MIT

gha_language: HTML

extension: bib


text:
DESCRIPTION = "libTorrent is a BitTorrent library written in C++ for *nix, \
with a focus on high performance and good code."
HOMEPAGE = "http://libtorrent.rakshasa.no/"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"

DEPENDS = "libsigc++-2.0 openssl cppunit"

SRC_URI = "http://libtorrent.rakshasa.no/downloads/${PN}-${PV}.tar.gz \
    file://don-t-run-code-while-configuring-package.patch \
"

SRC_URI[md5sum] = "e94f6c590bb02aaf4d58618f738a85f2"
SRC_URI[sha256sum] = "34317d6783b7f8d0805274c9467475b5432a246c0de8e28fc16e3b0b43f35677"

inherit autotools

repository: ExorEmbedded/exor-workspace

repo_name: ExorEmbedded/exor-workspace

gha_language: Python


text:
package legacytray

import (
	"os"
	"path/filepath"

	"github.com/ActiveState/cli/internal/constants"
	"github.com/ActiveState/cli/internal/errs"
	"github.com/ActiveState/cli/internal/fileutils"
	"github.com/ActiveState/cli/internal/osutils/user"
)

const trayIconFileName = "state-tray.svg"
const trayLaunchFileName = "state-tray.desktop"

func osSpecificRemoveTray(installPath, trayExec string) error {
	// Remove any .desktop files and icons installed.
	if homeDir, err := user.HomeDir(); err == nil {
		appDir := filepath.Join(homeDir, constants.ApplicationDir)
		if desktopFile := filepath.Join(appDir, trayLaunchFileName); fileutils.FileExists(desktopFile) {
			err = os.Remove(desktopFile)
			if err != nil {
				return errs.Wrap(err, "Unable to remove desktop file")
			}
		}
		iconsDir := filepath.Join(homeDir, constants.IconsDir)
		if iconFile := filepath.Join(iconsDir, trayIconFileName); fileutils.FileExists(iconFile) {
			err = os.Remove(iconFile)
			if err != nil {
				return errs.Wrap(err, "Unable to remove icon file")
			}
		}
	}
	return nil
}

repository: ActiveState/cli

repo_name: ActiveState/cli

gha_language: Go

extension: go


text:
file(REMOVE_RECURSE
  "CMakeFiles/CableGrind_pov_6.dir/pov_6/pov.c.o"
  "../pov/pov_6.pov.pdb"
  "../pov/pov_6.pov"
)

# Per-language clean rules from dependency scanning.
foreach(lang C)
  include(CMakeFiles/CableGrind_pov_6.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()

repository: siddk/driller-lite

repo_name: siddk/driller-lite

extension: cmake


text:
SUMMARY = "Laird Sterling LWB firmware files for braodcom (cypress) 2.4G and 5G radio module"
SECTION = "kernel"

inherit allarch

LRD_LWB_URI_BASE = "https://github.com/LairdCP/Sterling-LWB-and-LWB5-Release-Packages/releases/download/LRD-REL-${PV}"

SRC_URI:append = " \
	${LRD_LWB_URI_BASE}/laird-lwb-etsi-firmware-${PV}.tar.bz2;name=laird \
	${LRD_LWB_URI_BASE}/laird-lwb5-etsi-firmware-${PV}.tar.bz2;name=laird5G \
"

SRC_URI[laird.md5sum] = "7654dabc934e535a97eda31d5475a8b1"
SRC_URI[laird.sha256sum] = "12ccc8931ce0ed90cab897ab6d165a97db021271d99fe03b5495583eb1ec4d94"
SRC_URI[laird5G.md5sum] = "2b10109554f8677aeb942c7f74d39383"
SRC_URI[laird5G.sha256sum] = "bd609b249b176500f03cf21c76a88356d09ee4d8a1623ced2f781c8bd32b3f9c"

LICENSE = "Laird"
NO_GENERIC_LICENSE[Laird] = "LICENSE"
LIC_FILES_CHKSUM = "file://LICENSE;md5=53d3628b28a0bc3caea61587feade5f9"

RDEPENDS:${PN} = "linux-firmware-bcm43430"
RDEPENDS:${PN} += "linux-firmware-bcm4339"

do_configure[noexec] = "1"
do_compile[noexec] = "1"

S = "${WORKDIR}"
FIRMWARE_PATH = "${nonarch_base_libdir}/firmware/brcm"

do_install() {
	install -d ${D}${nonarch_base_libdir}/firmware/brcm/

	install -m 644 ${S}${FIRMWARE_PATH}/BCM43430A1.hcd ${D}${nonarch_base_libdir}/firmware/brcm/
	install -m 644 ${S}${FIRMWARE_PATH}/brcmfmac43430-sdio.txt ${D}${nonarch_base_libdir}/firmware/brcm/
	install -m 644 ${S}${FIRMWARE_PATH}/BCM4335C0.hcd ${D}${nonarch_base_libdir}/firmware/brcm/
	install -m 644 ${S}${FIRMWARE_PATH}/brcmfmac4339-sdio.txt ${D}${nonarch_base_libdir}/firmware/brcm/
}

FILES:${PN} = "${nonarch_base_libdir}/firmware/brcm/*"


text:
# add_copy_files(
#    <target>                          ## target name
#    [DESTINATION <destination>]       #  directory where files will be copied
#                                      #   Defaults to current binary directory
#    [GLOB <glob>]                     ## a glob to find target files to copy
#    [REPLACE <pattern> <replacement>] ## string(REGEX REPLACE) arguments on output filename
#    [FILES <list of files>]           ## list of files to copy. Cannot be used with GLOB or ARGN.
#    [<list of files>]                 ## list of files to copy. Cannot be used with GLOB or FILES.
# )

# add_copy_directory(<target>      ## target name
#    <path>                        ## directory to copy stuff from
#    [DESTINATION  <path>]         ## directory where stuff is copied
#                                  #  Defaults to current binary dir
#    [RELATIVE <path>]             ## files placed in <destination> from <directory>
#                                  #  will be named relative to this directory.
#                                  #  Defaults to <directory>.
#                                  #  In the example above, "copy/to/here" will contain
#                                  #  files such as "this/directory/somefile"
#    [GLOB <glob0> <glob1> ...]    ## Patterns copied files should match. Defaults to "*".
#    [EXCLUDE <glob0> <glob1> ...] ## Patterns of files that should not be copied
# )

function(add_copy_files FILECOPIER_TARGET)
    cmake_parse_arguments(
        FILECOPIER
        "VERBOSE"
        "DESTINATION;GLOB"
        "REPLACE;FILES"
        ${ARGN}
    )

    if(NOT TARGET "${FILECOPIER_TARGET}")
        add_custom_target(${FILECOPIER_TARGET})
    endif()
    get_target_property(result ${FILECOPIER_TARGET} TYPE)
    if(NOT FILECOPIER_DESTINATION)
        set(destination ${CMAKE_CURRENT_BINARY_DIR})
    else()
        get_filename_component(destination "${FILECOPIER_DESTINATION}" ABSOLUTE)
    endif()
    if(NOT FILECOPIER_GLOB AND NOT FILECOPIER_FILES)
        set(input_sources ${FILECOPIER_UNPARSED_ARGUMENTS})
    elseif(FILECOPIER_GLOB AND FILECOPIER_FILES)
        message(FATAL_ERROR "copy_files takes one of GLOB or FILES, not both")
    elseif(FILECOPIER_FILES)
        set(input_sources ${FILECOPIER_FILES})
    else()
        file(GLOB input_sources ${FILECOPIER_GLOB})
    endif()

    if(FILECOPIER_REPLACE)
        list(LENGTH FILECOPIER_REPLACE replace_length)
        if(NOT ${replace_length} EQUAL 2)
            message(FATAL_ERROR "copy_files argument REPLACE takes two inputs")
        endif()
        list(GET FILECOPIER_REPLACE 0 PATTERN)
        list(GET FILECOPIER_REPLACE 1 REPLACEMENT)
    endif()

    get_directory_property(to_clean ADDITIONAL_MAKE_CLEAN_FILES)
    foreach(input ${input_sources})
        get_filename_component(output ${input} NAME)
        if(NOT "${FILECOPIER_REPLACE}" STREQUAL "")
            string(REGEX REPLACE "${PATTERN}" "${REPLACEMENT}" output ${output})
        endif()
        set(output ${destination}/${output})
        get_filename_component(input_abs "${input}" ABSOLUTE)
        get_filename_component(output_abs "${output}" ABSOLUTE)
        set(verbosity COMMENT "Copying ${input} to ${destination}")
        if(NOT ${FILECOPIER_VERBOSE})
            unset(verbosity)
        endif()
        if(NOT "${input_abs}" STREQUAL "${output_abs}")
            add_custom_command(
                TARGET ${FILECOPIER_TARGET}
                PRE_BUILD
                COMMAND ${CMAKE_COMMAND} -E copy_if_different
                    ${input_abs} ${output_abs}
                ${verbosity}
                DEPENDS "${input}"
            )
            list(APPEND to_clean ${output_abs})
       endif()
    endforeach()
    set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${to_clean}")
endfunction()

function(add_copy_directory dircopy_TARGET directory)
    cmake_parse_arguments(dircopy
        "VERBOSE" "DESTINATION;RELATIVE" "EXCLUDE;GLOB" ${ARGN})

    get_filename_component(directory "${directory}" ABSOLUTE)
    if(NOT TARGET ${dircopy_TARGET})
        add_custom_target(${dircopy_TARGET})
    endif()
    if(NOT dircopy_GLOB)
        set(dircopy_GLOB "*")
    endif()
    if(NOT dircopy_EXCLUDE)
        unset(dircopy_EXCLUDE)
    endif()
    if(NOT dircopy_DESTINATION)
        set(dircopy_DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
    else()
        get_filename_component(dircopy_DESTINATION "${dircopy_DESTINATION}" ABSOLUTE)
    endif()
    if(NOT dircopy_RELATIVE)
        set(dircopy_RELATIVE "${directory}")
    else()
        get_filename_component(dircopy_RELATIVE "${dircopy_RELATIVE}" ABSOLUTE)
    endif()

    # Figure out globs for files that could be copied
    unset(in_globs)
    foreach(pattern ${dircopy_GLOB})
        list(APPEND in_globs "${directory}/${pattern}")
    endforeach()
    # Figure out globs for files that won't be copied
    unset(exclude_globs)
    foreach(pattern ${dircopy_EXCLUDE})
        list(APPEND exclude_globs "${directory}/${pattern}")
    endforeach()

    # Figure out files to copy
    file(GLOB_RECURSE in_files RELATIVE "${dircopy_RELATIVE}" ${in_globs})
    if(NOT "${exclude_globs}" STREQUAL "")
        file(GLOB_RECURSE exclude_files RELATIVE "${dircopy_RELATIVE}" ${exclude_globs})
        if(exclude_files)
          list(REMOVE_ITEM in_files ${exclude_files})
        endif()
    endif()

    # And do the copying
    get_directory_property(to_clean ADDITIONAL_MAKE_CLEAN_FILES)
    foreach(infile ${in_files})
        set(output "${dircopy_DESTINATION}/${infile}")
        set(input "${dircopy_RELATIVE}/${infile}")
        get_filename_component(output_abs "${output}" ABSOLUTE)
        get_filename_component(input_abs "${input}" ABSOLUTE)
        set(verbosity COMMENT "Copying ${infile} to ${dircopy_DESTINATION}")
        if(NOT ${dircopy_VERBOSE})
            unset(verbosity)
        endif()
        if(NOT "${input_abs}" STREQUAL "${output_abs}")
            add_custom_command(
                TARGET ${dircopy_TARGET}
                PRE_BUILD
                COMMAND ${CMAKE_COMMAND} -E copy_if_different
                    ${input_abs} ${output_abs}
                ${verbosity}
                DEPENDS "${input}"
            )
            list(APPEND to_clean ${output_abs})
        endif()
    endforeach()
    set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${to_clean}")
endfunction()

repository: sonulohani/vscode-lldb

repo_name: sonulohani/vscode-lldb


text:
package k8srestclient

import (
	"testing"

	"gotest.tools/v3/assert"
)

func Test_requestLatencyInstance_isInitialized(t *testing.T) {
	t.Parallel()

	// VERIFY
	assert.Assert(t, *requestLatencyInstance != requestLatency{})
}

// TODO add tests for requestLatency

repository: SAP/stewardci-core

repo_name: SAP/stewardci-core


text:
package strategy

import "fmt"

var (
	Prefix Strategy
)

type prefixStrategy struct {
	prefixes []string
}

// -----------------------------------------------------------------------------

func (s *prefixStrategy) Generate(domain, tld string) ([]string, error) {
	res := []string{}

	for _, prefix := range s.prefixes {
		fuzzed := fmt.Sprintf("%s%s", prefix, domain)
		fuzzed = combineTLD(fuzzed, tld)
		res = append(res, fuzzed)
	}

	return res, nil
}

func (s *prefixStrategy) GetName() string {
	return "Prefix"
}

func init() {
	Prefix = &prefixStrategy{
		prefixes: []string{
			"www",
			"www-",
			"mail",
			"mail-",
			"login",
			"login-",
			"auth",
			"auth-",
			"ftp",
			"ftp-",
			"smtp",
			"smtp-",
			"imap",
			"imap-",
			"account",
			"account-",
			"accounts",
			"accounts-",
			"users",
			"users-",
			"sso",
			"sso-",
		},
	}
}

repository: idealphase/DomainNameCollector

repo_name: idealphase/DomainNameCollector


text:
@online{Syllabus,
    title = {Конспект за ДИ за спец. статистика},
    year = {2018},
    url = {https://intranet.fmi.uni-sofia.bg/index.php/s/KOTdUnmqbrnd0sX},
    urldate = {2019-03-24}
}

@book{Fichtenholz,
  author = {Григорий Фихтенгольц},
  title = {Основы математического анализа. Том 2},
  edition = {Шестое издание},
  year = {1968}
}

gha_license_id: NOASSERTION


text:
DESCRIPTION = "Cross-platform clipboard utilities supporting both binary and text data."
HOMEPAGE = "https://github.com/spyoungtech/pyclip"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2b42edef8fa55315f34f2370b4715ca9"

SRC_URI[sha256sum] = "bd7cf7ebfc6e6080d48c21007a7f09661afdec00de54a3fd48903717e67b53ea"

inherit pypi setuptools3

do_configure:append () {
    install -d ${S}/docs
    cp ${S}/README.md ${S}/docs/README.md
}

BBCLASSEXTEND = "native nativesdk"

repository: webOS-ports/meta-webos-ports

repo_name: webOS-ports/meta-webos-ports

branch_name: refs/heads/kirkstone

gha_language: BitBake


text:
package config

import (
	"github.com/docker/distribution/registry/storage/driver"
	"github.com/docker/distribution/registry/storage/driver/factory"
	// this blank import is used to register the GCS driver with the storage driver factory
	_ "github.com/docker/distribution/registry/storage/driver/gcs"
)

const (
	bucketParam  = "bucket"
	keyFileParam = "keyfile"
)

// GCS is the Config implementation for the GCS client
type GCS struct {
	KeyFile    string `envconfig:"KEY_FILE" default:"/var/run/secrets/deis/objectstore/creds/key.json"`
	BucketFile string `envconfig:"BUCKET_FILE" default:"/var/run/secrets/deis/objectstore/creds/bucket"`
}

// CreateDriver is the Config interface implementation
func (g GCS) CreateDriver() (driver.StorageDriver, error) {
	files, err := readFiles(true, g.BucketFile)
	if err != nil {
		return nil, err
	}
	bucket := files[0]
	params := map[string]interface{}{
		bucketParam:  bucket,
		keyFileParam: g.KeyFile,
	}
	return factory.Create("gcs", params)
}

// String is the fmt.Stringer interface implementation
func (g GCS) String() string {
	return GCSStorageType.String()
}

repository: deis/object-storage-cli

repo_name: deis/object-storage-cli


text:
DESCRIPTION = "di is a disk information utility, displaying everything (and more) that your df(1) command does. It features the ability to display your disk usage in whatever format you desire/prefer/are used to. It is designed to be portable across many platforms. "
HOMEPAGE = "http://www.gentoo.com/di/"
LICENSE = "MIT-style"
SECTION = "base"
DEPENDS = "perl-native"

SRC_URI = "http://www.gentoo.com/di/di-${PV}.tar.gz"

do_install() {
	# install binary
	install -d ${D}${bindir}
	install -m 0755 ${S}/di ${D}${bindir}

	# install manpage
	install -d ${D}${mandir}/man1
	install -m 0644 ${S}/di.1 ${D}${mandir}/man1
}

SRC_URI[md5sum] = "be55b3a1693b318effa3db8d1c0243c1"
SRC_URI[sha256sum] = "46e124670fb2b63cb7500a8b36b7856c15858cb35658263ddad4933935d5e210"


text:
cmake_minimum_required(VERSION 3.14)

set(CC ${CMAKE_C_COMPILER})
set(CXX ${CMAKE_CXX_COMPILER})
set(ARCH_NAME ${CMAKE_SYSTEM_PROCESSOR})

set(JONES_DIR_ROOT_OUT ${CMAKE_CURRENT_SOURCE_DIR}/out/default)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${JONES_DIR_ROOT_OUT}/${CMAKE_PROJECT_NAME}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${JONES_DIR_ROOT_OUT}/${CMAKE_PROJECT_NAME}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${JONES_DIR_ROOT_OUT}/${CMAKE_PROJECT_NAME}/bin)

set(EXTERNAL_PROJECTS
    ncurses
    sndio
    sdl
    boost
    capstone
    gsl
    zlib
    png
    gzip
    spdlog
    cppcoro)

repository: JonForShort/nes-emulator

repo_name: JonForShort/nes-emulator


text:
package main

import (
	"fmt"
	"io/ioutil"
	"os"
	"strconv"
	"strings"
	"time"
)

type memo [10][7]int

func run(s string) interface{} {

	var f, g memo
	for i := 0; i < 10; i++ {
		f[i][0] = 1
		f[i][1] = 10 - i
		g[i][0] = 1
		g[i][1] = 10 - i
	}

	splits := strings.Split(s, "-")
	b1 := splits[0]
	b2 := splits[1]

	return calcHOver(f, g, b1) - calcHOver(f, g, b2)
}

func atoi(n uint8) int {
	return int(n-48)
}

func calcKOver(memG memo, b string) int {
	num, _ := strconv.Atoi(b)

	res := 0
	// case aaaXYZ
	{
		c1 := atoi(b[0])
		if c1 * 111111 < num {
			c1++
		}
		for k := c1; k < 10; k++ {
			res += calcG(memG, k, 1) + calcG(memG, k+1, 1) + calcG(memG, k+1, 2) + calcG(memG, k+1, 3)
		}
	}

	// case XaaaYZ
	{
		c1 := atoi(b[0])
		for k := c1 + 1; k < 10; k++ {
			if c1 * 100000 + k * 11111 < num {
				res += (k - c1 - 1) * (calcG(memG, k, 2) + 1)
			} else {
				res += (k - c1) * (calcG(memG, k, 2) + 1)
			}
		}
	}

	// case XYaaaZ
	{
		c1 := atoi(b[0])
		c2 := atoi(b[1])
		if c2 <= c1 {
			c2 = c1 + 1
		}
		threshold := c1 * 100000 + c2 * 10000
		for k := c1 + 2; k < 10; k++ {
			mult := 0
			if k > c2 {
				mult += k - c2
			}
			if k - 2 > c1 {
				mult += (k-c1-1)*(k-c1-2)/2
			}
			if mult <= 0 {
				continue
			}
			if k > c2 && threshold + k * 1111 < num {
				res += (mult - 1) * (10 - k)
			} else {
				res += mult * (10 - k)
			}
		}
	}

	// case XYZaaa
	{
		c1 := atoi(b[0])
		c2 := atoi(b[1])
		c3 := atoi(b[2])
		if c3 <= c2 {
			c3 = c2 + 1
		}
		if c2 <= c1 {
			c2 = c1 + 1
			c3 = c1 + 2
		}
		threshold := c1*100000 + c2*10000 + c3*1000
		for k := c1 + 3; k < 10; k++ {
			if 1000 * ((k-3) * 100 + (k-2) * 10 + k-1) < threshold {
				continue
			}
			mult := 0
			if k > c3 {
				mult += k-c3
			}
			if k - 2 > c2 {
				mult += (k-c2-1)*(k-c2-2)/2
			}
			for j := c1+1; j < k-2; j++{
				mult += (k-j-2)*(k-j-1)/2
			}
			if mult <= 0 {
				continue
			}
			if k > c3 && threshold+k*111 < num {
				res += mult - 1
			} else {
				res += mult
			}
		}
	}

	return res
}

func calcFOver(memF memo, b string) int {
	b = findFirstF(b)

	res := 1
	for i := 0; i < 6; i++ {
		res += calcF(memF, atoi(b[i])+1, 6-i)
	}
	return res
}

func findFirstF(b string) string {
	i := 1
	for i < 6 {
		if b[i-1] >= b[i] {
			break
		}
		i ++
	}
	if i == 6 {
		return b
	}
	res := b[:i]
	c := strconv.Itoa(atoi(b[i-1]))
	for j := i; j < 6; j++ {
		res += c
	}
	return res
}

func calcGOver(memG memo, b string, max int) int {
	b = findFirstG(b, max)
	if b == "" {
		return 0
	}

	res := 1
	for i := 0; i < max; i++ {
		res += calcG(memG, atoi(b[i])+1, max-i)
	}

	return res
}

func findFirstG(b string, max int) string {
	if atoi(b[0]) > (10-max) {
		return ""
	}
	i := 1
	for i < max {
		if atoi(b[i]) - i > (10-max) {
			break
		}
		if b[i-1] >= b[i] {
			break
		}
		i ++
	}
	if i == max {
		return b
	}
	res := ""
	if atoi(b[i]) - i > (10-max) {
		j := i - 1
		for j >= 0 {
			if atoi(b[j]) - j <= (9-max) {
				i = j
				break
			}
			j--
		}
		if j < 0 {
			return ""
		}
		res = b[:i]
		res += strconv.Itoa(atoi(b[i]) + 1)
		i++
	} else {
		res = b[:i]
	}
	a := atoi(res[i-1])
	for j := i; j < max; j++ {
		a++
		res += strconv.Itoa(a)
	}
	return res
}

func calcHOver(memF, memG memo, b string) int {
	return calcFOver(memF, b) - calcGOver(memG, b, 6) - calcKOver(memG, b)
}

func calcF(mem memo, a, n int) int {
	if a > 9 {
		return 0
	}
	if mem[a][n] != 0 {
		return mem[a][n]
	}
	s := 0
	for k := a; k < 10; k++ {
		s += calcF(mem, k, n-1)
	}
	mem[a][n] = s
	return s
}

func calcG(mem memo, a, n int) int {
	if a > 9 {
		return 0
	}
	if mem[a][n] != 0 {
		return mem[a][n]
	}
	s := 0
	for k := a+1; k < 10; k++ {
		s += calcG(mem, k, n-1)
	}
	mem[a][n] = s
	return s
}

func main() {
	// Uncomment this line to disable garbage collection
	// debug.SetGCPercent(-1)

	// Read input from stdin
	input, err := ioutil.ReadAll(os.Stdin)
	if err != nil {
		panic(err)
	}

	// Start resolution
	start := time.Now()
	result := run(string(input))

	// Print result
	fmt.Printf("_duration:%f\n", time.Now().Sub(start).Seconds()*1000)
	fmt.Println(result)
}


text:
#========================================================================
# Author: Benjamin A Thomas
# Author: Kris Thielemans
# Author: Edoardo Pasca
# Copyright 2017, 2020 University College London
# Copyright 2017, 2020 STFC
#
# This file is part of the CCP SyneRBI (formerly PETMR) Synergistic Image Reconstruction Framework (SIRF) SuperBuild.
#
# 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.txt
#
# 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.
#
#=========================================================================

# Add Armadillo
#
# Warning: CMake's FindArmadillo.cmake will always search in default CMake paths and cannot be
# forced to search first in an alternative location (e.g. via ARMADILLO_ROOT or so).
# Therefore future find_package statements might still find the system one even if you
# build your own.

#This needs to be unique globally
set(proj Armadillo)

# Set dependency list
set(${proj}_DEPENDENCIES "")

# Include dependent projects if any
ExternalProject_Include_Dependencies(${proj} DEPENDS_VAR ${proj}_DEPENDENCIES)

# Set external name (same as internal for now)
set(externalProjName ${proj})

SetCanonicalDirectoryNames(${proj})

if(NOT ( DEFINED "USE_SYSTEM_${externalProjName}" AND "${USE_SYSTEM_${externalProjName}}" ) )
  message(STATUS "${__indent}Adding project ${proj}")

  ### --- Project specific additions here

  # name after extraction
  set(${proj}_location Armadillo)

  if(CMAKE_COMPILER_IS_CLANGXX)
    set(CLANG_ARG -DCMAKE_COMPILER_IS_CLANGXX:BOOL=ON)
  endif()

  #set(${proj}_SOURCE_DIR ${SOURCE_DOWNLOAD_CACHE}/${proj}-prefix/src/${${proj}_location} )

  ExternalProject_Add(${proj}
    ${${proj}_EP_ARGS}
    URL ${${proj}_URL}
    URL_HASH MD5=${${proj}_MD5}

    ${${proj}_EP_ARGS_DIRS}

    #CONFIGURE_COMMAND ${CMAKE_COMMAND}
    #                         ${CLANG_ARG}
    #                         -DCMAKE_INSTALL_PREFIX:PATH=${${proj}_INSTALL_DIR} "${${proj}_SOURCE_DIR}"
    CMAKE_ARGS
      -DCMAKE_PREFIX_PATH:PATH=${SUPERBUILD_INSTALL_DIR}
      -DCMAKE_INSTALL_PREFIX:PATH=${${proj}_INSTALL_DIR}
      -DCMAKE_INSTALL_LIBDIR:PATH=${${proj}_INSTALL_DIR}/lib #force installation in lib (override GNUInstallDirs)
      -DDETECT_HDF5:BOOL=OFF
      ${CLANG_ARG}
  )

  # no point doing this as FindArmadillo doesn't honour any *_ROOT or *_DIR settings
  #set( ARMADILLO_ROOT ${${proj}_INSTALL_DIR} )
  #set(ARMADILLO_INCLUDE_DIRS ${${proj}_INSTALL_DIR}/include )
  # Instead, it might be possible to set ARMADILLO_INCLUDE_DIR and ARMADILLO_LIBRARY
  # as cached variables such that find_library doesn't attempt to find them again.
  # We haven't tried this, and it doesn't seem to be needed.
 else()
    if(${USE_SYSTEM_${externalProjName}})
      find_package(${proj} ${${externalProjName}_REQUIRED_VERSION} REQUIRED)
      message(STATUS "USING the system ${externalProjName}, found ARMADILLO_LIBRARIES=${ARMADILLO_LIBRARIES}}")
  endif()
  ExternalProject_Add_Empty(${proj} DEPENDS "${${proj}_DEPENDENCIES}"
    ${${proj}_EP_ARGS_DIRS}
  )
endif()

# no point doing this as FindArmadillo doesn't honour any *_ROOT or *_DIR settings
#mark_as_superbuild(
#  ALL_PROJECTS
#  VARS
#    ${externalProjName}_DIR:PATH
#  LABELS
#    "FIND_PACKAGE"
#)

repository: SyneRBI/SIRF-SuperBuild

repo_name: SyneRBI/SIRF-SuperBuild

gha_language: CMake


text:
%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/

%% Created for YYY at 2010-02-04 16:26:16 -0500

%% Saved with string encoding Unicode (UTF-8)

@conference{example-abstracts,
	Author = {{Mather, B.D.}},
	Booktitle = {{Ext. Abstracts CHI 2000}},
	Date-Added = {2009-03-07 17:10:20 +0000},
	Date-Modified = {2009-03-07 17:11:50 +0000},
	Pages = {1--2},
	Publisher = {ACM Press},
	Title = {{Making up titles for conference papers}},
	Year = {2000}}

@conference{example-conference2,
	Author = {{Zellweger, P.T., Bouvin, N.O., Jeh{\o}j, H. and Mackinlay, J.D.}},
	Booktitle = {Proc. Hypertext 2001},
	Date-Added = {2009-03-07 17:08:24 +0000},
	Date-Modified = {2009-03-07 17:12:39 +0000},
	Pages = {9--18},
	Publisher = {ACM Press},
	Title = {{Fluid Annotations in an Open World}},
	Year = {2001}}

@conference{example-conference,
	Author = {{Klemmer, R.S., Thomsen, M., Phelps-Goodman, E., Lee, R. and Landay, J.E.}},
	Booktitle = {Proc. CHI 2002},
	Date-Added = {2009-03-07 17:02:00 +0000},
	Date-Modified = {2010-02-04 16:24:18 -0500},
	Pages = {{1--8}},
	Publisher = {ACM Press},
	Title = {{Where do web site come from? Capturing and interacting with design history}},
	Year = {2002}}

@article{example-journal,
	Author = {{Anderson, R. E.}},
	Date-Added = {2009-03-07 16:57:41 +0000},
	Date-Modified = {2009-03-07 17:10:51 +0000},
	Journal = {Social Science Computing Review},
	Number = {2},
	Pages = {453--469},
	Title = {Social impacts of computing: COdes of professional ethics},
	Volume = {10},
	Year = {1992}}

@book{schwartz95,
	Address = {Bloomington, IN, USA},
	Author = {{Schwartz, M.}},
	Date-Added = {2009-03-07 16:20:46 +0000},
	Date-Modified = {2009-03-07 17:10:51 +0000},
	Publisher = {Indiana University Press},
	Title = {Guidelines for Bias-Free Writing},
	Year = {1995}}

@misc{github_dispenserProject,
	Date-Added = {2016-02-01 10:00:00 +0100},
	Date-Modified = {2016-05-17 13:59:59 +0100},
	Note = {\small{\url{https://github.com/Yndal/Dispenser-project}}},
	Title = {{Project source code at GitHub}},
	Url = {https://github.com/Yndal/Dispenser-project},
	Bdsk-Url-1 = {https://github.com/Yndal/Dispenser-project}}

@misc{solidworks_webpage,
	Date-Added = {2016-05-14 10:00:00 +0100},
	Note = {\small{\url{http://www.solidworks.com/}}},
	Title = {{SolidWorks}},
	Url = {http://www.solidworks.com/},
	Bdsk-Url-1 = {http://www.solidworks.com/}}

@misc{acrobat,
	Date-Added = {2009-03-07 16:11:01 +0000},
	Date-Modified = {2009-03-07 17:10:51 +0000},
	Note = {\small{\url{http://get.adobe.com/reader/}}},
	Title = {{Adobe Acrobat Reader}},
	Url = {http://get.adobe.com/reader/},
	Bdsk-Url-1 = {http://get.adobe.com/reader/}}

@misc{acm_categories,
	Date-Modified = {2009-03-07 17:10:51 +0000},
	Note = {\small{\url{http://www.acm.org/class/how_to_use.html}}},
	Title = {{How to Classify Works Using ACM's Computing Classification System}}}

repository: Yndal/Dispenser-project

path: /report/New structure/references - Copy.bib

repo_name: Yndal/Dispenser-project

filename: references - Copy.bib


text:
########################################
# BEGIN_COPYRIGHT
#
# Copyright (C) 2016-2019 SciDB, Inc.
# All Rights Reserved.
#
# SciDB is free software: you can redistribute it and/or modify
# it under the terms of the AFFERO GNU General Public License as published by
# the Free Software Foundation.
#
# SciDB is distributed "AS-IS" AND WITHOUT ANY WARRANTY OF ANY KIND,
# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
# NON-INFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE. See
# the AFFERO GNU General Public License for the complete license terms.
#
# You should have received a copy of the AFFERO GNU General Public License
# along with SciDB.  If not, see <http://www.gnu.org/licenses/agpl-3.0.html>
#
# END_COPYRIGHT
########################################

# Try to find the installed MKL BLAS libraries
#
# Use as FIND_PACKAGE(MKL_BLAS)
#  <name> is MKL_BLAS
#  when successful the following are set:
#
#  <name>_FOUND - system has MKL BLAS installed
#                 - but there are no include files that should be referenced at this time
#  <name>_LIBRARIES - list of the libraries that must be linked
#

include(LibFindMacros)

# 0. This file follows
#    http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules
#    retrieved 6/05/2013 with some addtional changes.
#    Extra verbosity is explanatory or to serve as a template for future
#    limited-function FindXXXX.cmake implementations.
# ------------------------------------------------------------
# 1. Dependencies:
#        use find_package to detect any libraries these depend on
#        note that QUIETLY and REQUIRED are to be forwarded to dependency lookups
# 2. optional use of pkg-config to detect include and library paths, if pkg-config available
# 3. use find_path and find_library
#        results SAVED in <name>_INCLUDE_DIR and <name>_LIBRARY (singular) [???]
#        (paths supplied by pkg-config should only be used as hints, the cmake hardcoded lookups must also be allowed)
# 4. set <name>_INCLUDE_DIRS (plural) to "<name>_INCLUDE_DIR <dependencyN>_INCLUDE_DIRS [...]"
# 5. set <name>_PROCESS_LIBS to "<name>_LIBRARY <dependencyN>_LIBRARIES [...]"
#    NOTE that dependencies are in the plural forms
# 6. call libfind_process() to do checks and set the <name>_FOUND variable and print the
#         standardized success or failure message
#         NOTE: at one time a call to find_package_handle_standard_args() was recommended
#         but the libfind_process() wrapper is now recommended
# --------------------------------------------------------------

# NOTE: these are the only locations we want to look for these files.  Any other location is suspect,
#       so we will not use find_library() as in normal Find modules.  This isn't a normal find module,
#       it is being used for making and installing some particular licensed binaries in a particular way.
find_path(MKL_BLAS_LIB_DIR libmkl_rt.so
          NO_DEFAULT_PATH
          PATHS /opt/intel/compilers_and_libraries/linux/mkl/lib/intel64)
          # above path is location where installed by yum from intel repo
          # if this does not work for other distros, add additional locations

if(MKL_BLAS_LIB_DIR)

    # 1. N/A
    # 2. N/A
    # 3. use find_path and find_library to find libmkl_rt
    #        results SAVED in <name>_INCLUDE_DIR and <name>_LIBRARY (singular) [???]
    # note: libmkl_rt.so is the directly called library. (rt means runtime selection of optimization)
    find_library(MKL_BLAS_LIBRARY mkl_rt NO_DEFAULT_PATH PATHS ${MKL_BLAS_LIB_DIR})
    message(STATUS "DEBUG MKL_BLAS_LIBRARY=${MKL_BLAS_LIBRARY}")
endif()

# 4. N/A
# 5. set(<name>_LIBRARIES to <name>_LIBRARY <dependencyN>_LIBRARIES [...])
#
set(MKL_BLAS_PROCESS_LIBS "MKL_BLAS_LIBRARY")

#
# 6. call libfind_process() to set the <name>_FOUND variable and print standard messages
#
libfind_process(MKL_BLAS)


text:
package postgres

import "github.com/shijuvar/gokit/examples/http-app/pkg/domain"

// ProductStore provides persistence logic for "products" table
type ProductStore struct {
	Store DataStore
}

// ToDO: Write CRUD operations here
// Create creates a new Product
func (productStore ProductStore) Create(product domain.Product) (domain.Product, error) {
	// ToDo: Write the code here
	return domain.Product{}, nil
}

repository: shijuvar/gokit

repo_name: shijuvar/gokit


text:
@inproceedings{frey-EtAl:2019:cmc-corpora,
 abstract = {In recent years, research data management has also become an important topic in the less data-intensive areas of the Social Sciences and Humanities (SSH). Funding agencies as well as research communities demand that empirical data collected and used for scientific research is managed and preserved in a way that research results are reproducible. In order to account for this the FAIR guiding principles for data stewardship have been established as a framework for good data management, aiming at the findability, accessibility, interoperability, and reusability of research data. This article investigates 24 European CMC corpora with regard to their compliance with the FAIR principles and discusses to what extent the deposit of research data in repositories of data preservation initiatives such as CLARIN, Zenodo or Metashare can assist in the provision of FAIR corpora.},
 author = {Frey, Jennifer-Carmen and König, Alexander and Stemle, Egon W.},
 booktitle = {Proceedings of the 7th Conference on CMC and Social Media Corpora for the Humanities (CMC-Corpora2019)},
 date = {2019-09-09},
 location = {Cergy-Pontoise University, France},
 pages = {25--30},
 title = {How FAIR are CMC Corpora?},
 url = {https://cmccorpora19.sciencesconf.org/resource/page/id/15},
 urlpdf = {https://api.zotero.org/users/332053/publications/items/QCRXF8RE/file/view},
 urltype = {publisher}
}


text:
SUMMARY = "Simple module to parse ISO 8601 dates"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b05625f2336fa024e8d57e65c6595844"

inherit setuptools

PR = "r1"

SRC_NAME = "iso8601"

SRC_URI = "https://pypi.python.org/packages/source/i/${SRC_NAME}/${SRC_NAME}-${PV}.tar.gz"
SRC_URI[md5sum] = "b06d11cd14a64096f907086044f0fe38"
SRC_URI[sha256sum] = "e8fb52f78880ae063336c94eb5b87b181e6a0cc33a6c008511bac9a6e980ef30"

S = "${WORKDIR}/${SRC_NAME}-${PV}"

repository: aelmadho/meta-iot-cloud

repo_name: aelmadho/meta-iot-cloud


text:
SUMMARY = "Light-weight package to set up cgroups at system boot."
DESCRIPTION =  "Light-weight package to set up cgroups at system boot."
HOMEPAGE = "http://packages.ubuntu.com/source/artful/cgroup-lite"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=5d5da4e0867cf06014f87102154d0102"
SRC_URI = "https://launchpad.net/ubuntu/+archive/primary/+files/cgroup-lite_1.15.tar.xz"
SRC_URI += "file://cgroups-init"
SRC_URI[md5sum] = "1438c1f4a7227c0dedfce5f86f02591d"
SRC_URI[sha256sum] = "02f44c70ed3cf27b9e89e5266492fddf4b455336ab4e03abc85e92297537201f"

FILES_${PN} += "${bindir}/"
FILES_${PN} += "${sysconfdir}/"

do_install() {
	install -d ${D}/bin
	install -m 0755 ${S}/scripts/cgroups-mount ${D}/bin
	install -m 0755 ${S}/scripts/cgroups-umount ${D}/bin

	install -d ${D}${sysconfdir}/init.d
	install -m 0755 ${WORKDIR}/cgroups-init ${D}${sysconfdir}/init.d/cgroups-init

	install -d ${D}${sysconfdir}/rcS.d
	install -d ${D}${sysconfdir}/rc2.d
	install -d ${D}${sysconfdir}/rc3.d
	install -d ${D}${sysconfdir}/rc4.d
	install -d ${D}${sysconfdir}/rc5.d
	ln -sf ../init.d/cgroups-init ${D}${sysconfdir}/rcS.d/S98cgroups
	ln -sf ../init.d/cgroups-init ${D}${sysconfdir}/rc2.d/S98cgroups
	ln -sf ../init.d/cgroups-init ${D}${sysconfdir}/rc3.d/S98cgroups
	ln -sf ../init.d/cgroups-init ${D}${sysconfdir}/rc4.d/S98cgroups
	ln -sf ../init.d/cgroups-init ${D}${sysconfdir}/rc5.d/S98cgroups
}


text:
SUMMARY = "An old-school polyphonic sampler"
HOMEPAGE = "http://samplv1.sourceforge.net"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"

DEPENDS += " \
    qtbase-native \
    qtbase \
    qtsvg \
    jack \
    lv2 \
    liblo \
"

inherit cmake_qt5 pkgconfig gtk-icon-cache mime mime-xdg

SRC_URI = " \
    ${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BPN}-${PV}.tar.gz \
    file://0002-Avoid-stripping-CMake.patch \
"
PV = "0.9.26"
SRC_URI[sha256sum] = "91b680d97efad89dcb98221b9cc7df733dcc8a437666184ba862c2341c1c1fe7"

FILES:${PN} += " \
    ${datadir}/appdata \
    ${datadir}/mime \
    ${datadir}/metainfo \
    ${datadir}/icons \
    ${libdir}/lv2 \
"

repository: schnitzeltony/meta-musicians

repo_name: schnitzeltony/meta-musicians


text:
package sorting

// SelectionSort ~ n² / 2
func SelectionSort(array []int) {
	for k := 0; k < len(array); k++ {
		lowIdx := k

		for i := k + 1; i < len(array); i++ {
			if array[i] < array[lowIdx] {
				lowIdx = i
			}
		}

		array[k], array[lowIdx] = array[lowIdx], array[k]
	}
}

license: Unlicense

repository: geeky-vfx/Algorithms

repo_name: geeky-vfx/Algorithms


text:
%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/

%% Created for Adrian Price-Whelan at 2017-06-29 10:23:42 -0400

%% Saved with string encoding Unicode (UTF-8)

@article{Sanders:2016,
	Adsnote = {Provided by the SAO/NASA Astrophysics Data System},
	Adsurl = {http://adsabs.harvard.edu/abs/2016MNRAS.457.3817S},
	Archiveprefix = {arXiv},
	Author = {{Sanders}, J.~L. and {Bovy}, J. and {Erkal}, D.},
	Date-Added = {2017-06-29 14:23:40 +0000},
	Date-Modified = {2017-06-29 14:23:41 +0000},
	Doi = {10.1093/mnras/stw232},
	Eprint = {1510.03426},
	Journal = {\mnras},
	Keywords = {Galaxy: halo, Galaxy: kinematics and dynamics, Galaxy: structure, cosmology: theory, dark matter},
	Month = apr,
	Pages = {3817-3835},
	Title = {{Dynamics of stream-subhalo interactions}},
	Volume = 457,
	Year = 2016,
	Bdsk-Url-1 = {http://dx.doi.org/10.1093/mnras/stw232}}

@article{Bovy:2017,
	Adsnote = {Provided by the SAO/NASA Astrophysics Data System},
	Adsurl = {http://adsabs.harvard.edu/abs/2017MNRAS.466..628B},
	Archiveprefix = {arXiv},
	Author = {{Bovy}, J. and {Erkal}, D. and {Sanders}, J.~L.},
	Date-Modified = {2017-06-29 14:13:36 +0000},
	Doi = {10.1093/mnras/stw3067},
	Eprint = {1606.03470},
	Journal = {\mnras},
	Keywords = {Galaxy: fundamental parameters, Galaxy: halo, Galaxy: kinematics and dynamics, Galaxy: structure, dark matter},
	Month = apr,
	Pages = {628-668},
	Title = {{Linear perturbation theory for tidal streams and the small-scale CDM power spectrum}},
	Volume = 466,
	Year = 2017,
	Bdsk-Url-1 = {http://dx.doi.org/10.1093/mnras/stw3067}}

repository: streamsoftwo/linearperturbations

repo_name: streamsoftwo/linearperturbations


text:
#
# Utility macros and functions dealing with KWIVER modules
#
include(CMakeParseArguments)

define_property(GLOBAL PROPERTY kwiver_modules_enabled
  BRIEF_DOCS "Active KWIVER modules"
  FULL_DOCS "List of all modules marked enabled (turned on). These are the modules to be built."
  )

#
# Add a directory as a named module.
#
#   kwiver_add_module(name directory [OPTIONAL]
#                    [DEPENDS module1 [module2 ...]])
#
# Register a module to be built. This module must be named in order to
# associate references. Names must be unique across added modules. A module
# may be labeled as OPTIONAL, creating an ENABLE/DISABLE flag for the module
# (disabled by default). Modules may also depend on other modules. This does
# not affect build dependencies, but ensures that the listed modules are
# enabled.
#
# The intended purpose for modules is ... (what is a module? How does
# it differ from a library?) Would this be like adding arrows? or arrows/core?
#
#
function(kwiver_add_module name directory)
  # Parsing args
  set(options OPTIONAL)
  set(multiValueArgs DEPENDS)
  cmake_parse_arguments(module "${options}" "" "${multiValueArgs}" ${ARGN})

  if(NOT "${module_UNPARSED_ARGUMENTS}" STREQUAL "")
    message(WARNING "kwiver_add_module called with unparsed args! (${module_UNPARSED_ARGUMENTS})")
  endif()

  if(module_OPTIONAL)
    option(ENABLE_MODULE_${name} "Enable optional module ${name}" OFF)
  else()
    # else this isn't an optional module, so turn it on!
    set(ENABLE_MODULE_${name} ON)
  endif()

  if(ENABLE_MODULE_${name})
    get_property(current_modules GLOBAL PROPERTY kwiver_modules_enabled)

    # Check that name is unique among modules registered so far
    list(FIND current_modules "${name}" duplicate_index)
    if(NOT duplicate_index EQUAL -1)
      message(FATAL_ERROR "Attempted to register duplicate module '${name}'!")
    endif()

    # Check that each dep is in module enable list
    foreach(dep IN LISTS module_DEPENDS)
      list(FIND current_modules ${dep} dep_index)
      if(dep_index EQUAL -1)
        message(SEND_ERROR "Module '${name}' missing dependency: '${dep}'")
        set(module_error TRUE)
      endif()
    endforeach()
    # suppresses an optional module's enable flag from appearing if we failed above check
    if(module_error)
      return()
    endif()

    add_subdirectory("${directory}")
    kwiver_create_doxygen("${name}" "${directory}" ${module_DEPENDS})
    set_property(GLOBAL APPEND PROPERTY kwiver_modules_enabled ${name})
  endif()
endfunction()

repository: Kitware/kwiver

repo_name: Kitware/kwiver


text:
# https://github.com/pmirshad/cmake-with-git-metadata/blob/master/CMakeLists.txt

if (DEFINED VERSION_H_NAME)
else ()
    set(VERSION_H_NAME "version.h")
endif ()

if (DEFINED ARCHIVE_NAME)
else ()
    set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${PROJECT_VERSION})
endif ()

if (DEFINED xVERSION_IN)
else ()
    set(xVERSION_IN ${CMAKE_SOURCE_DIR}/${CMAKE_SCRIPTS}/version.h.in)
endif ()
if (DEFINED xCONFIG_BASE_IN)
else ()
    set(xCONFIG_BASE_IN ${CMAKE_SOURCE_DIR}/${CMAKE_SCRIPTS}/config-base.h.in)
endif ()
message("Using version.in file: ${xVERSION_IN}, ARCHIVE_NAME = ${ARCHIVE_NAME}")

if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
    execute_process(
            COMMAND git rev-parse --abbrev-ref HEAD
            WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
            OUTPUT_VARIABLE GIT_BRANCH
            OUTPUT_STRIP_TRAILING_WHITESPACE
    )

    execute_process(
            COMMAND git log -1 --format=%h
            WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
            OUTPUT_VARIABLE GIT_COMMIT_HASH
            OUTPUT_STRIP_TRAILING_WHITESPACE
    )
else (EXISTS "${CMAKE_SOURCE_DIR}/.git")
    set(GIT_BRANCH "")
    set(GIT_COMMIT_HASH "")
endif (EXISTS "${CMAKE_SOURCE_DIR}/.git")

# get_git_head_revision(GIT_REFSPEC GIT_SHA1)
string(SUBSTRING "${GIT_COMMIT_HASH}" 0 12 GIT_REV)
if (NOT GIT_COMMIT_HASH)
    set(GIT_REV "0")
endif ()

message(STATUS "- Git current branch: ${GIT_BRANCH}")
message(STATUS "- Git commit hash:    ${GIT_COMMIT_HASH}")
message(STATUS "- Git rev:            ${GIT_REV}")

if (CMAKE_GENERATED_DIR)
else ()
    message(FATAL " >> ERROR: please include target-dirs.cmake at first.")
    # we need CMAKE_GENERATED_DIR at present.
endif ()

if (EXISTS ${xVERSION_IN})
    message(STATUS "Generating version.h from ${xVERSION_IN} to ${CMAKE_GENERATED_DIR} - Version ${PROJECT_VERSION}...")
    configure_file(
            ${xVERSION_IN}
            ${CMAKE_GENERATED_DIR}/${VERSION_H_NAME}
    )
    message(STATUS "Generated: ${CMAKE_GENERATED_DIR}/${VERSION_H_NAME}")
endif ()

if (EXISTS ${xCONFIG_BASE_IN})
    message(STATUS "Generating config-base.h from ${xCONFIG_BASE_IN} to ${CMAKE_GENERATED_DIR} - Version ${PROJECT_VERSION}...")
    configure_file(
            ${xCONFIG_BASE_IN}
            ${CMAKE_GENERATED_DIR}/hicc-config-base.hh
    )
    message(STATUS "Generated: ${CMAKE_GENERATED_DIR}/hicc-config-base.hh")
endif ()

repository: hedzr/hicc

repo_name: hedzr/hicc


text:
SECTION = "libs"
VIRTUAL_NAME = "virtual/db-native"
CONFLICTS = "db-native"
inherit native
require db3_${PV}.bb

FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/db3-${PV}', '${FILE_DIRNAME}/db3', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
PACKAGES = ""

repository: jdegges/gumstix-pip-oe

repo_name: jdegges/gumstix-pip-oe


text:
package slicediff

const (
	Remove = iota + 1
	Add
	Update
)

type Action struct {
	Id   int
	Type int
}

var ActionString = [3]string{"REMOVE", "ADD", "UPDATE"}

func Diff(dst func() []string, src func() []string) map[string]*Action {
	actions := make(map[string]*Action)
	m := make(map[string]bool)

	for id, s := range dst() {
		actions[s] = &Action{id, Remove}
	}

	for id, s := range src() {
		if _, ok := m[s]; !ok {
			m[s] = true
			_, ok := actions[s]
			if !ok {
				actions[s] = &Action{id, Add}
				continue
			}
			actions[s] = &Action{id, Update}
		}
	}

	return actions
}

repository: remogatto/slicediff

repo_name: remogatto/slicediff


text:
package cmd

import (
	"bytes"
	"encoding/json"
	"log"
)

// Must is a generic error handler
func Must(data []byte, err error) []byte {
	if err != nil {
		log.Fatal(err)
	}

	return data
}

// PrintMust logs data to the console
func PrintMust(data []byte) {
	var prettyJSON bytes.Buffer

	err := json.Indent(&prettyJSON, data, "", "\t")
	if err != nil {
		log.Fatal(err)
	}

	log.Println(string(prettyJSON.Bytes()))
}


text:
SUMMARY = "libqrtr-glib is a glib-based library to use and manage the QRTR bus."
DESCRIPTION = "libqrtr-glib is a glib-based library to use and manage the \
	       QRTR (Qualcomm IPC Router) bus"
HOMEPAGE = "https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = " \
    file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \
"
DEPENDS = "glib-2.0 glib-2.0-native"

inherit autotools pkgconfig bash-completion gobject-introspection

SRC_URI = "http://www.freedesktop.org/software/libqmi/${BPN}-${PV}.tar.xz"

SRC_URI[sha256sum] = "30d879b2ade6f8f461def3a677755db5c0238babf688d5c83c03b3e6abe35cee"

repository: loicpoulain/meta-qcom

repo_name: loicpoulain/meta-qcom


text:
LINUX_VERSION = "4.1.22"
LINUX_VERSION_SUFFIX = "-ltsi"

include linux-altera.inc

FILESEXTRAPATHS .= "${FILE_DIRNAME}/linux-altera-ltsi:"

SRC_URI += "\
           file://0001-compiler-gcc-integrate-the-various-compiler-gcc-345-.patch \
           file://0001-compiler-gcc-disable-ftracer-for-__noclone-functions.patch \
"


text:
@Article{guiatni:dsmc:2011,
  author    = {Guiatni, Mohamed and Kheddar, Abderrahmane},
  title     = {Modelling, identification and control of Peltier thermoelectric modules for telepresence},
  journal   = {Journal of Dynamic Systems Measurement and Control-Transactions of the ASME},
  year      = {2011},
  volume    = {133},
  number    = {3},
  pages     = {031010-1--031010-8},
  month     = {May},
  doi       = {https://doi.org/10.1115/1.4003381},
  url       = {https://pdfs.semanticscholar.org/b2d4/7cd051f5dfbd51ea9ef81038ab0164d7d35c.pdf},
  keywords  = {autoregressive moving average processes, heat pumps, Peltier effect, telecontrol, thermal conductivity},
  abstract  = {This research deals with thermal rendering for telepresence applications. We present the modeling and identification of thermo-electric modules (TEMs) to be used either as part of a thermal display or a remote thermal probe. First, TEMs are modeled in steady- and unsteady-state dynamics using recursive nonlinear autoregressive moving average models for both temperature and heat flux. The proposed models are convenient for simulation, control, electronic, and thermal engineering. They allow understanding the functionality of the heat pumps and facilitate the solving of cooling/heating problems without the need for expertise in thermal theory. Then, these models are used in a novel thermal rendering approach that is based on the estimation of the temperature in contact for both the finger and the probed remote object in a telepresence setup. The thermal feedback is provided by a bilateral control between the master (thermal display) and the slave (thermal probe robotic finger). Experimental results validating the models and the proposed thermal rendering scheme are presented and discussed.},
  publisher = {ASME},
  address   = {TWO PARK AVE, NEW YORK, NY 10016-5990 USA}
}

gha_language: TeX


text:
require qt5-git.inc
require ${PN}.inc

QT_MODULE_BRANCH = "release"
SRCREV = "29e526ad5c1e2fe0996ba0a776d83ec86f7197d7"


text:
package utils

import "time"

// RunWithRetry run a closure and retry for times when it fails
func RunWithRetry(f func() error, interval time.Duration, maxRetries int) (err error) {
	var times int
	for times < maxRetries {
		if err = f(); err != nil {
			times++

			time.Sleep(interval)
		} else {
			break
		}
	}
	return
}

repository: metrue/fx

repo_name: metrue/fx


text:
%See names-long.bib and names-short.bib for conference information.

@inproceedings{dahlin:cache:osdi1994,
author = "Michael D. Dahlin and Randolph Y. Wang and Thomas E. Anderson and David A. Patterson",
title = "Cooperative Caching: {U}sing Remote Client Memory to Improve File System Performance",
crossref = {osdi94},
pages = "267--280",
}

@inproceedings{musuvathi:chess:osdi2008,
author = "Madanlal Musuvathi and Shaz Qadeer and Thomas Ball and Gerard Basler and Piramanayagam Arumuga Nainar and Iulian Neamtiu",
title = "Finding and Reproducing {H}eisenbugs in Concurrent Programs",
crossref = {osdi08},
pages = "267--280",
}

@inproceedings{yin+kklm:gadara,
author = "Wang, Y. and Kelly, T. and Kudlur, M. and Lafortune, S. and Mahlke, S.",
title = "Gadara: {D}ynamic deadlock avoidance for multithreaded programs",
crossref = {osdi08},
}

@inproceedings{jula+tzc:deadlock,
author = "Jula, H. and Tralamazza, D. and Zamfir, C. and Candea, G.",
title = "Deadlock Immunity: {E}nabling Systems to Defend Against Deadlocks",
crossref = {osdi08},
}

@inproceedings{dean+g-mapreduce:2004,
 author = {Dean, Jeffrey and Ghemawat, Sanjay},
 title = {MapReduce: simplified data processing on large clusters},
 crossref = {osdi04},
 year = {2004},
 }

@inproceedings{chang:bigtable:osdi2006,
    author = "F. Chang and J. Dean and S. Ghemawhat and W.C. Hsieh and D.A. Wallach and M. Burrows and T. Chandra and A. Fikes and R.E. Gruber",
    title = "Bigtable: {A} distributed storage system for structured data",
    crossref = {osdi06},
    pages = "205-218",
}

@inproceedings{vahdat:modelnet:osdi2002,
author = "Amin Vahdat and Ken Yocum and Kevin Walsh and Priya Mahadevan and Dejan Kosti\'{c} and Jeff Chase and David Becker",
title = "Scalability and Accuracy in a Large-Scale Network Emulator",
crossref = {osdi02},
}

@inproceedings{saito:pangaea:osdi2002,
 author = {Saito, Yasushi and Karamanolis, Christos and Karlsson, Magnus and Mahalingam, Mallik},
 title = {Taming aggressive replication in the {P}angaea wide-area file system},
 crossref = {osdi02},
 pages = {15--30},
 doi = {http://doi.acm.org/10.1145/1060289.1060292},
}

@inproceedings{douceur:farsite:osdi2006,
  author    = {John R. Douceur and
               Jon Howell},
  title     = {Distributed Directory Service in the Farsite File System},
  crossref = {osdi06},
  pages     = {321--334},
  ee        = {http://www.usenix.org/events/osdi06/tech/douceur.html},
  abstract  = {We present the design, implementation, and evaluation of a fully distributed directory service for Farsite, a logically centralized file system that is physically implemented on a loosely coupled network of desktop computers. Prior to this work, the Farsite system included distributed mechanisms for file content but centralized mechanisms for file metadata. Our distributed directory service introduces tree-structured file identifiers that support dynamically partitioning metadata at arbitrary granularity, recursive path leases for scalably maintaining name-space consistency, and a protocol for consistently performing operations on files managed by separate machines. It also mitigates metadata hotspots via file-field leases and the new mechanism of disjunctive leases. We experimentally show that Farsite can dynamically partition file-system metadata while maintaining full file-system semantics.}
}

repository: dataseries/Lintel

repo_name: dataseries/Lintel

gha_language: Perl


text:
inherit pypi setuptools3
require python-periphery.inc

SRC_URI[md5sum] = "1d958f02575d4a19734ee2dd92336157"
SRC_URI[sha256sum] = "5da4d5f40ff8974cf6c724587baa674d7e0593f07b6f6ee896104f11c1be18ec"


text:
// Copyright (c) 2021 The BFE Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package ibasic

import (
	"context"

	"github.com/bfenetworks/api-server/lib/xerror"
	"github.com/bfenetworks/api-server/model/itxn"
)

type BFECluster struct {
	ID                 int64
	Name               string
	Pool               string
	Enabled            bool
	ExemptTrafficCheck bool
	Capacity           int64
}

type BFEClusterParam struct {
	Name     *string
	Pool     *string
	Capacity *int64
}

type BFEClusterFilter struct {
	Name *string
	Pool *string
}

type BFEClusterStorager interface {
	DeleteBFECluster(context.Context, *BFECluster) error
	CreateBFECluster(context.Context, *BFEClusterParam) error
	FetchBFEClusters(context.Context, *BFEClusterFilter) ([]*BFECluster, error)
}

type BFEClusterManager struct {
	storager BFEClusterStorager
	txn      itxn.TxnStorager
}

func NewBFEClusterManager(txn itxn.TxnStorager, storager BFEClusterStorager) *BFEClusterManager {
	return &BFEClusterManager{
		txn:      txn,
		storager: storager,
	}
}

func (pm *BFEClusterManager) FetchBFEClusters(ctx context.Context, param *BFEClusterFilter) (list []*BFECluster, err error) {
	err = pm.txn.AtomExecute(ctx, func(ctx context.Context) error {
		list, err = pm.storager.FetchBFEClusters(ctx, param)
		return err
	})

	return
}

func (pm *BFEClusterManager) CreateBFECluster(ctx context.Context, param *BFEClusterParam) (err error) {
	return pm.txn.AtomExecute(ctx, func(ctx context.Context) error {
		list, err := pm.storager.FetchBFEClusters(ctx, &BFEClusterFilter{
			Name: param.Name,
		})
		if err != nil {
			return err
		}
		if len(list) != 0 {
			return xerror.WrapRecordExisted("BFE Cluster")
		}

		return pm.storager.CreateBFECluster(ctx, param)
	})
}

func (pm *BFEClusterManager) DeleteBFECluster(ctx context.Context, param *BFEClusterParam) (err error) {
	return pm.txn.AtomExecute(ctx, func(ctx context.Context) error {
		_param := &BFEClusterFilter{
			Name: param.Name,
		}
		list, err := pm.storager.FetchBFEClusters(ctx, _param)
		if err != nil {
			return err
		}
		if len(list) == 0 {
			return xerror.WrapRecordNotExist("BFE Cluster")
		}

		return pm.storager.DeleteBFECluster(ctx, list[0])
	})
}

func BFEClusterID2NameMap(list []*BFECluster) map[int64]string {
	m := make(map[int64]string, len(list))
	for _, one := range list {
		m[one.ID] = one.Name
	}

	return m
}

func BFEClusterIDMap(list []*BFECluster) map[int64]*BFECluster {
	m := make(map[int64]*BFECluster, len(list))
	for _, one := range list {
		m[one.ID] = one
	}

	return m
}

func BFEClusterNameMap(list []*BFECluster) map[string]*BFECluster {
	m := make(map[string]*BFECluster, len(list))
	for _, one := range list {
		m[one.Name] = one
	}

	return m
}

repository: showsmall/api-server

repo_name: showsmall/api-server


text:
# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)

# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is
# your responsibility to verify that the values are complete and correct.
#
# The following license files were not able to be identified and are
# represented as "Unknown" below, you will need to check them yourself:
#   LICENSE

LICENSE = "Unknown"
LIC_FILES_CHKSUM = "file://LICENSE;md5=6c4db32a2fa8717faffa1d4f10136f47"

SRC_URI = "gitsm://github.com/flink-project/flinklib;protocol=https \
           file://0001-remove-cflags.patch \
           "

# Modify these as desired
PV = "1.0+git${SRCPV}"
# SRCREV = "90956e4f68e937ae0e0843a7cb3f4b51f5edf3db"

SRCREV = "v1.0.1"

S = "${WORKDIR}/git"

# NOTE: unable to map the following CMake package dependencies: Doxygen
inherit cmake

OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"

# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
OECMAKE_C_FLAGS_append = " -std=gnu99"

FILES_${PN}-staticdev_append = " \
/usr/lib/flink \
/usr/lib/flink/cmake \
/usr/lib/flink/cmake/flinkConfig.cmake \
/usr/lib/flink/cmake/flinkConfigVersion.cmake \
"

#FILES_${PN}-dev = ""

#FILES_${PN} = " \
#/usr/lib/flink \
#/usr/lib/flink/cmake \
#/usr/lib/flink/cmake/flinkConfig.cmake \
#/usr/lib/flink/cmake/flinkConfigVersion.cmake \
#/usr/include \
#/usr/lib/libflink.so \
#/usr/lib/libflink.so.1.0.1.0 \
#/usr/include/flinklib.h \
#/usr/include/flinkioctl.h \
#/usr/include/flink_funcid.h \
#/usr/bin/flinkinfo \
#/usr/bin/lsflink \
#/usr/bin/flinkanaloginput \
#/usr/bin/flinkanalogoutput \
#/usr/bin/flinkdio \
#/usr/bin/flinkpwm \
#/usr/bin/flinkcounter \
#/usr/bin/flinkwd \
#/usr/bin/flinkppwa \
#"

repository: zechenturm/meta-ntb

repo_name: zechenturm/meta-ntb


text:
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package cocoa

/*
#cgo CFLAGS: -x objective-c
#cgo LDFLAGS: -lobjc -framework Foundation
#define OBJC_OLD_DISPATCH_PROTOTYPES 1
#include <objc/runtime.h>
#include <objc/message.h>

*/
import "C"

import (
	"github.com/progrium/macdriver/core"
	"github.com/progrium/macdriver/objc"
)

const (
	NSBorderlessWindowMask          = 0
	NSTitledWindowMask              = 1 << 0
	NSClosableWindowMask            = 1 << 1
	NSMiniaturizableWindowMask      = 1 << 2
	NSResizableWindowMask           = 1 << 3
	NSTexturedBackgroundWindowMask  = 1 << 8
	NSWindowStyleMaskFullScreen     = 1 << 14
	NSFullSizeContentViewWindowMask = 32768

	NSWindowTitleVisible = 0
	NSWindowTitleHidden  = 1

	NSWindowAbove = 1
	NSWindowBelow = -1
	NSWindowOut   = 0

	NSBackingStoreRetained    = 0
	NSBackingStoreNonretained = 1
	NSBackingStoreBuffered    = 2

	NSFloatingWindowLevel = 3
	NSMainMenuWindowLevel = 24
)

type NSBackingStoreType uintptr

type NSWindow struct {
	objc.Object
}

var NSWindow_ = objc.Get("NSWindow")

func NSWindow_New() NSWindow {
	return NSWindow{NSWindow_.Alloc().Init()}
}

func NSWindow_WithContentViewController(controller objc.Object) NSWindow {
	return NSWindow{NSWindow_.Send("windowWithContentViewController:", controller)}
}

func NSWindow_Init(rect core.NSRect, windowStyle core.NSUInteger, bufferingType NSBackingStoreType, deferCreation bool) NSWindow {
	obj := NSWindow_.Alloc().
		Send("initWithContentRect:styleMask:backing:defer:",
			rect, windowStyle, bufferingType, deferCreation)
	return NSWindow{obj}
}

func (w NSWindow) Display() {
	w.Send("display")
}

func (w NSWindow) Center() {
	w.Send("center")
}

func (w NSWindow) MakeKeyAndOrderFront(sender objc.Object) {
	w.Send("makeKeyAndOrderFront:", sender)
}

func (w NSWindow) SetLevel(level int) {
	w.Send("setLevel:", level)
}

func (w NSWindow) Level() int64 {
	return w.Send("level").Int()
}

func (w NSWindow) SetStyleMask(mask int) {
	w.Send("setStyleMask:", mask)
}

func (w NSWindow) StyleMask() int64 {
	return w.Send("styleMask").Int()
}

func (w NSWindow) SetTitle(title string) {
	w.Send("setTitle:", core.String(title))
}

func (w NSWindow) Title() string {
	return w.Send("title").String()
}

func (w NSWindow) SetContentView(view objc.Object) {
	w.Send("setContentView:", view)
}

func (w NSWindow) ContentView() NSView {
	return NSView{w.Send("contentView")}
}

func (w NSWindow) IsVisible() bool {
	return w.Send("isVisible").Bool()
}

func (w NSWindow) Frame() (frame core.NSRect) {
	w.Send("frame", &frame)
	return frame
}

func (w NSWindow) ToggleFullScreen(s objc.Object) {
	w.Send("toggleFullScreen:", s)
}

func (w NSWindow) ContentRectForFrameRect(frameRect core.NSRect) (rect core.NSRect) {
	w.Send("contentRectForFrameRect:", frameRect, &rect)
	return rect
}

func (w NSWindow) SetTitlebarAppearsTransparent(b bool) {
	w.Set("titlebarAppearsTransparent:", b)
}

func (w NSWindow) TitlebarAppearsTransparent() bool {
	return w.Get("titlebarAppearsTransparent").Bool()
}

func (w NSWindow) SetTitleVisibility(v int) {
	w.Set("titleVisibility:", v)
}

func (w NSWindow) TitleVisibility() int64 {
	return w.Get("titleVisibility").Int()
}

func (w NSWindow) SetOpaque(b bool) {
	w.Set("opaque:", b)
}

func (w NSWindow) Opaque() bool {
	return w.Get("opaque").Bool()
}

func (w NSWindow) Close() {
	w.Send("close")
}

func (w NSWindow) SetIgnoresMouseEvents(b bool) {
	w.Set("ignoresMouseEvents:", b)
}

func (w NSWindow) IgnoresMouseEvents() bool {
	return w.Get("ignoresMouseEvents").Bool()
}

func (w NSWindow) SetMovableByWindowBackground(b bool) {
	w.Set("movableByWindowBackground:", b)
}

func (w NSWindow) MovableByWindowBackground() bool {
	return w.Get("movableByWindowBackground").Bool()
}

func (w NSWindow) BackgroundColor() NSColor {
	return NSColor{w.Get("backgroundColor")}
}

func (w NSWindow) SetBackgroundColor(color NSColor) {
	w.Set("backgroundColor:", color)
}

func (w NSWindow) SetFrameDisplay(frame core.NSRect, display bool) {
	w.Send("setFrame:display:", frame, display)
}

func (w NSWindow) CollectionBehavior() int64 {
	return w.Get("collectionBehavior").Int()
}
func (w NSWindow) SetCollectionBehavior(collectionBehavior int) {
	w.Set("collectionBehavior:", collectionBehavior)
}

repository: kyleparisi/macdriver

repo_name: kyleparisi/macdriver

branch_name: refs/heads/main


text:
// Copyright 2019 GoAdmin Core Team. All rights reserved.
// Use of this source code is governed by a Apache-2.0 style
// license that can be found in the LICENSE file.

package file

import (
	"mime/multipart"

	"github.com/GoAdminGroup/go-admin/modules/config"
)

// LocalFileUploader is an Uploader of local file engine.
type LocalFileUploader struct {
	BasePath string
}

// GetLocalFileUploader return the default Uploader.
func GetLocalFileUploader() Uploader {
	return &LocalFileUploader{
		config.GetStore().Path,
	}
}

// Upload implements the Uploader.Upload.
func (local *LocalFileUploader) Upload(form *multipart.Form) error {
	return Upload(func(fileObj *multipart.FileHeader, filename string) (string, error) {
		if err := SaveMultipartFile(fileObj, (*local).BasePath+"/"+filename); err != nil {
			return "", err
		}
		return filename, nil
	}, form)
}


text:
// SPDX-License-Identifier: ISC
// Copyright (c) 2014-2020 Bitmark Inc.
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

package blockrecord_test

import (
	"encoding/json"
	"testing"

	"github.com/bitmark-inc/bitmarkd/blockrecord"
)

// test JSON conversion
func TestInitialBits(t *testing.T) {

	nonces := []blockrecord.NonceType{
		0x1234567890abcdef,
		0x1234567890abcdef,
		0x1234567890abcdef,
	}

	for i, expected := range nonces {

		buffer, err := json.Marshal(expected)
		if nil != err {
			t.Fatalf("%d: JSON encode error: %s", i, err)
		}

		var actual blockrecord.NonceType
		err = json.Unmarshal(buffer, &actual)
		if nil != err {
			t.Fatalf("%d: JSON decode error: %s", i, err)
		}

		if actual != expected {
			t.Errorf("%d: JSON actual: %016x  expected: %016x", i, actual, expected)
		}
	}
}

license: ISC

repository: bitmark-inc/bitmarkd

repo_name: bitmark-inc/bitmarkd

gha_license_id: ISC


text:
# base recipe: meta/recipes-devtools/meson/meson_0.49.2.bb
# base branch: warrior
# base commit: d956c45baf65f8b28d732ed4dd3ca4b40e36ee66

include meson.inc

BBCLASSEXTEND = "native"

repository: mozoko/meta-debian-extended

repo_name: mozoko/meta-debian-extended

branch_name: refs/heads/warrior


text:
package account

import (
	"fmt"

	"github.com/jormin/gacode/commands"
	"github.com/jormin/gacode/config"
	"github.com/jormin/gacode/entity"
	"github.com/jormin/gacode/errors"
	"github.com/urfave/cli/v2"
)

// init
func init() {
	config.RegisterCommand(
		"account", &cli.Command{
			Name:      "rm",
			Usage:     "Remove specified or all accounts",
			Action:    Remove,
			ArgsUsage: "[name-1: first account name] [name-2] ... [name-n]",
			Flags: []cli.Flag{
				&cli.BoolFlag{
					Name:        "a",
					Usage:       "Remove all accounts",
					Required:    false,
					DefaultText: "false",
				},
			},
			Before: commands.BeforeFunc,
			After:  commands.AfterFunc,
		},
	)
}

// Remove Remove specified or all accounts
func Remove(ctx *cli.Context) error {
	removeAll := false
	flags := ctx.FlagNames()
	for _, v := range flags {
		switch v {
		case "a":
			removeAll = ctx.Bool("a")
		}
	}
	if removeAll {
		commands.Data.Accounts = []*entity.Account{}
		fmt.Println("remove all accounts success")
		return nil
	}
	if ctx.Args().Len() == 0 {
		return errors.ErrMissingRequiredArgument
	}
	for i := 0; i < ctx.Args().Len(); i++ {
		for index, account := range commands.Data.Accounts {
			if account.Name == ctx.Args().Get(i) {
				commands.Data.Accounts = append(commands.Data.Accounts[:index], commands.Data.Accounts[index+1:]...)
				fmt.Printf("remove account %s success\n", account.Name)
			}
		}
	}
	return nil
}

repository: yanyuxuanz/gacode

repo_name: yanyuxuanz/gacode


text:
require dbus-glib.inc

SRC_URI[md5sum] = "ad0920c7e3aad669163bb59171cf138e"
SRC_URI[sha256sum] = "a5bb42da921f51c28161e0e54a5a8241d94a1c0499a14007150e9ce743da6ac5"

repository: rzr/meta-tizen

repo_name: rzr/meta-tizen

gha_language: PHP