text:
@article{porter2012research,
  title={Research coordination networks: evidence of the relationship between funded interdisciplinary networking and scholarly impact},
  author={Porter, Alan L and Garner, Jon and Crowl, Todd},
  journal={Bioscience},
  volume={62},
  number={3},
  pages={282--288},
  year={2012},
  publisher={Oxford University Press}
}

@article{bellotti2012getting,
  title={Getting funded. Multi-level network of physicists in Italy},
  author={Bellotti, Elisa},
  journal={Social Networks},
  volume={34},
  number={2},
  pages={215--229},
  year={2012},
  publisher={Elsevier}
}

@article{feinerer2012tm,
  title={tm: Text Mining Package},
  author={Feinerer, Ingo and Hornik, Kurt},
  journal={R package version 0.5-7.1},
  year={2012}
}

@article{fournier2015volunteer,
  title={Volunteer field technicians are bad for wildlife ecology},
  author={Fournier, Auriel and Bond, Alexander L},
  journal={Wildlife Society Bulletin},
  year={2015},
  publisher={Wiley Online Library}
}

@Misc{team2014r,
  Title                    = {R: {A} Language and Environment for Statistical Computing (Version 3.1. 0). Vienna, {Austria}: {R} {F}oundation for {S}tatistical {C}omputing},

  Author                   = {Team, R Core},
  Year                     = {2014}
}

@article{meyer2008text,
  title={Text mining infrastructure in R},
  author={Meyer, David and Hornik, Kurt and Feinerer, Ingo},
  journal={Journal of Statistical Software},
  volume={25},
  number={5},
  pages={1--54},
  year={2008},
  publisher={American Statistical Association}
}

@article{herrando2014ecology,
  title={Ecology needs a convention of nomenclature},
  author={Herrando-P{\'e}rez, Salvador and Brook, Barry W and Bradshaw, Corey JA},
  journal={BioScience},
  pages={biu013},
  year={2014},
  publisher={Oxford University Press}
}

@article{heffernan2014macrosystems,
  title={Macrosystems ecology: understanding ecological patterns and processes at continental scales},
  author={Heffernan, James B and Soranno, Patricia A and Angilletta Jr, Michael J and Buckley, Lauren B and Gruner, Daniel S and Keitt, Tim H and Kellner, James R and Kominoski, John S and Rocha, Adrian V and Xiao, Jingfeng and others},
  journal={Frontiers in Ecology and the Environment},
  volume={12},
  number={1},
  pages={5--14},
  year={2014},
  publisher={Eco Soc America}
}

@article{ciannelli2014transdisciplinary,
  title={Transdisciplinary graduate education in marine resource science and management},
  author={Ciannelli, Lorenzo and Hunsicker, Mary and Beaudreau, Anne and Bailey, Kevin and Crowder, Larry B and Finley, Carmel and Webb, Colleen and Reynolds, John and Sagmiller, Kay and Anderies, John M and others},
  journal={ICES Journal of Marine Science: Journal du Conseil},
  pages={fsu067},
  year={2014},
  publisher={Oxford University Press}
}

@article{harrison2015geochronology,
  title = {Geochronology: It's About Time},
  author = {Harrison, Mark, and Baldwin, Suzanne and Caffee, Marc and Gehrels, George and Schoene, Blair and Shuster, David and Singer, Brad},
  journal = {Eos},
  volume={96},
  year={2015},
  doi = {10.1029//2015EO041901}
}

@article{choi2006multidisciplinarity,
  title={Multidisciplinarity, interdisciplinarity and transdisciplinarity in health research, services, education and policy: 1. Definitions, objectives, and evidence of effectiveness},
  author={Choi, Bernard CK and Pak, Anita WP},
  journal={Clinical and investigative medicine},
  volume={29},
  number={6},
  pages={351},
  year={2006},
  publisher={Canadian Society for Clinical Investigation}
}

@article{romolini2013next,
  title={The next generation of scientists: Examining the experiences of graduate students in network-level social-ecological science},
  author={Romolini, Michele and Record, Sydne and Garvoille, Rebecca and Marusenko, Yevgeniy and Geiger, R Stuart},
  journal={Ecology and Society},
  volume={18},
  number={3},
  pages={42},
  year={2013}
}

@article{van2015interdisciplinary,
  title={Interdisciplinary research by the numbers},
  author={Van Noorden, Richard},
  journal={Nature},
  volume={525},
  number={7569},
  pages={306--307},
  year={2015},
  publisher={Nature Publishing Group}
}

@article{van2011factors,
  title={Factors associated with disciplinary and interdisciplinary research collaboration},
  author={Van Rijnsoever, Frank J and Hessels, Laurens K},
  journal={Research Policy},
  volume={40},
  number={3},
  pages={463--472},
  year={2011},
  publisher={Elsevier}
}

@Manual{chang2015shiny,
  title = {shiny: Web Application Framework for R},
  author = {Winston Chang and Joe Cheng and JJ Allaire and Yihui Xie and Jonathan McPherson},
  year = {2015},
  note = {R package version 0.12.2},
  url = {http://CRAN.R-project.org/package=shiny},
}

@Article{wood2004gamm,
    title = {Stable and efficient multiple smoothing parameter
      estimation for generalized additive models},
    journal = {Journal of the American Statistical Association},
    volume = {99},
    number = {467},
    pages = {673-686},
    year = {2004},
    author = {S. N. Wood},
  }

@article{cheruvelil2014creating,
  title={Creating and maintaining high-performing collaborative research teams: the importance of diversity and interpersonal skills},
  author={Cheruvelil, Kendra S and Soranno, Patricia A and Weathers, Kathleen C and Hanson, Paul C and Goring, Simon J and Filstrup, Christopher T and Read, Emily K},
  journal={Frontiers in Ecology and the Environment},
  volume={12},
  number={1},
  pages={31--38},
  year={2014},
  publisher={Eco Soc America}
}

@article{goring2014improving,
  title={Improving the culture of interdisciplinary collaboration in ecology by expanding measures of success},
  author={Goring, Simon J and Weathers, Kathleen C and Dodds, Walter K and Soranno, Patricia A and Sweet, Lynn C and Cheruvelil, Kendra S and Kominoski, John S and R{\"u}egg, Janine and Thorn, Alexandra M and Utz, Ryan M},
  journal={Frontiers in Ecology and the Environment},
  volume={12},
  number={1},
  pages={39--47},
  year={2014},
  publisher={Eco Soc America}
}

@article{basche2014challenges,
  title={Challenges and opportunities in transdisciplinary science: The experience of next generation scientists in an agriculture and climate research collaboration},
  author={Basche, Andrea D and Roesch-McNally, Gabrielle E and Pease, Lindsay A and Eidson, Christopher D and Lahdou, Guy Bou and Dunbar, Mike W and Frank, Trevor J and Frescoln, Laura and Gu, Lei and Nagelkirk, Ryan and others},
  journal={Journal of Soil and Water Conservation},
  volume={69},
  number={6},
  pages={176A--179A},
  year={2014},
  publisher={Soil and Water Conservation Society}
}

@article{hampton2011collaboration,
  title={Collaboration and productivity in scientific synthesis.},
  year ={2011},
  author={Hampton, SE and Parker, JN},
  journal={BioScience},
  volume={61},
  pages={900–10}
}

@article{fischer2012pretenure,
  title={Is pretenure interdisciplinary research a career risk?},
  author={Fischer, EV and Mackey, KRM and Cusack, DF and DeSantis, LRG and Hartzell-Nichols, L and Lutz, JA and Melbourne-Thomas, J and Meyer, R and Riveros-Iregui, DA and Sorte, CJB and others},
  journal={Eos, Transactions American Geophysical Union},
  volume={93},
  number={32},
  pages={311--312},
  year={2012},
  publisher={Wiley Online Library}
}

@article{stamp2015preparing,
  title={Preparing Graduate Students and Undergraduates for Interdisciplinary Research},
  author={Stamp, Nancy and Tan-Wilson, Anna and Silva, Alexsa},
  journal={BioScience},
  volume={65},
  number={4},
  pages={431--439},
  year={2015},
  publisher={Oxford University Press}
}

@article{wagner2012developing,
  title={Developing an interdisciplinary, distributed graduate course for twenty-first century scientists},
  author={Wagner, Helene H and Murphy, Melanie A and Holderegger, Rolf and Waits, Lisette},
  journal={BioScience},
  volume={62},
  number={2},
  pages={182--188},
  year={2012},
  publisher={Oxford University Press}
}

@article{schmidt2012new,
  title={A new model for training graduate students to conduct interdisciplinary, interorganizational, and international research},
  author={Schmidt, Amanda H and Robbins, Alicia ST and Combs, Julie K and Freeburg, Adam and Jesperson, Robert G and Rogers, Haldre S and Sheldon, Kimberly S and Wheat, Elizabeth},
  journal={BioScience},
  volume={62},
  number={3},
  pages={296--304},
  year={2012},
  publisher={Oxford University Press}
}

@Misc{Team2014,
  Title                    = {R: A Language and Environment for Statistical Computing (Version 3.1. 0). Vienna, {Austria}: R Foundation for Statistical Computing},

  Author                   = {Team, R Core},
  Year                     = {2014},

  __markedentry            = {[Simon Goring:6]},
  Owner                    = {Simon Goring},
  Timestamp                = {2015.10.01}
}

@article{dawson2011beyond,
  title={Beyond predictions: biodiversity conservation in a changing climate},
  author={Dawson, Terence P and Jackson, Stephen T and House, Joanna I and Prentice, Iain Colin and Mace, Georgina M},
  journal={science},
  volume={332},
  number={6025},
  pages={53--58},
  year={2011},
  publisher={American Association for the Advancement of Science}
}

@article{hibbert2014quest,
  title={The quest for effective interdisciplinary graduate supervision: A critical narrative analysis},
  author={Hibbert, Kathryn M and Lingard, Lorelei and Vanstone, Meredith and Kinsella, Elizabeth Anne and McKenzie, Pam and Wilson, Timothy D and Pitman, Allan},
  journal={Canadian Journal of Higher Education},
  volume={44},
  number={2},
  pages={85--104},
  year={2014}
}

@article{white2015next,
  title={The next generation of action ecology: novel approaches towards global ecological research},
  author={White, Rachel L and Sutton, Alexandra E and Salguero-Gomez, Roberto and Bray, Timothy C and Campbell, Heather and Cieraad, Ellen and Geekiyanage, Nalaka and Gherardi, Laureano and Hughes, Alice C and J{\o}rgensen, Peter S{\o}gaard and others},
  journal={Ecosphere},
  volume={6},
  number={8},
  pages={art134},
  year={2015},
  publisher={Eco Soc America}
}

@Article{LiawWiener2002RF,
  title = {Classification and Regression by randomForest},
  author = {Andy Liaw and Matthew Wiener},
  journal = {R News},
  year = {2002},
  volume = {2},
  number = {3},
  pages = {18-22},
  url = {http://CRAN.R-project.org/doc/Rnews/},
}

@misc{Kozorovitskiy2015,
  title = {Why today's long STEM postdoc positions are effectively anti-mother},
  author = {Yevgenia Kozorovitskiy},
  journal = {Phys.org, The Conversation},
  year = {2015},
  url = {http://phys.org/news/2015-12-today-stem-postdoc-positions-effectively.html}
}

@article{xue2015stem,
  title={STEM Crisis or STEM Surplus: Yes and Yes},
  author={Xue, Yi and Larson, Richard C},
  journal={Monthly Lab. Rev.},
  volume={138},
  pages={1},
  year={2015},
  publisher={HeinOnline}
}

@article{sauermann2012science,
  title={Science PhD career preferences: levels, changes, and advisor encouragement},
  author={Sauermann, Henry and Roach, Michael},
  journal={PloS one},
  volume={7},
  number={5},
  pages={e36307},
  year={2012},
  publisher={Public Library of Science}
}

@article{larson2014too,
  title={Too many PhD graduates or too few academic job openings: the basic reproductive number R0 in academia},
  author={Larson, Richard C and Ghaffarzadegan, Navid and Xue, Yi},
  journal={Systems research and behavioral science},
  volume={31},
  number={6},
  pages={745--750},
  year={2014},
  publisher={Wiley Online Library}
}

@article{board2012science,
  title={Science and engineering indicators 2012},
  author={Board, NS},
  journal={NS Foundation (Ed.). Arlington, VA: National Science Foundation},
  year={2012}
}

@article{aakerlind2009postdoctoral,
  title={Postdoctoral research positions as preparation for an academic career},
  author={{\AA}kerlind, Gerlese S},
  journal={International Journal for Researcher Development},
  volume={1},
  number={1},
  pages={84--96},
  year={2009},
  publisher={Emerald Group Publishing Limited}
}

@article{scaffidi2011positive,
  title={A positive postdoctoral experience is related to quality supervision and career mentoring, collaborations, networking and a nurturing research environment},
  author={Scaffidi, Amelia K and Berman, Judith E},
  journal={Higher Education},
  volume={62},
  number={6},
  pages={685--698},
  year={2011},
  publisher={Springer}
}

@article{laudel2008apprentice,
  title={From apprentice to colleague: The metamorphosis of early career researchers},
  author={Laudel, Grit and Gl{\"a}ser, Jochen},
  journal={Higher Education},
  volume={55},
  number={3},
  pages={387--406},
  year={2008},
  publisher={Springer}
}

@misc{burrell2015mentoring,
  title = {Mentoring Beyond Borders},
  author = {Teal Burrell},
  journal = {Science Careers},
  year = {2015},
  doi = {10.1126/science.caredit.a1500286},
  url = {http://www.sciencemag.org/careers/2015/12/mentoring-beyond-borders},
}

@misc{benderly2015case,
  title = {The Case of the Disappearing Postdocs},
  author = {Beryl Lieff Benderly},
  journal = {Science Careers},
  year = {2015},
  doi = {10.1126/science.caredit.a1500277},
  url = {http://www.sciencemag.org/careers/2015/12/case-disappearing-postdocs},
}

@article{sa2008interdisciplinary,
  title={‘Interdisciplinary strategies’ in US research universities},
  author={S{\'a}, Creso M},
  journal={Higher Education},
  volume={55},
  number={5},
  pages={537--552},
  year={2008},
  publisher={Springer}
}

@article{fuhrmann2011improving,
  title={Improving graduate education to support a branching career pipeline: recommendations based on a survey of doctoral students in the basic biomedical sciences},
  author={Fuhrmann, Cynthia N and Halme, DG and O’Sullivan, PS and Lindstaedt, B},
  journal={CBE-Life Sciences Education},
  volume={10},
  number={3},
  pages={239--249},
  year={2011},
  publisher={Am Soc Cell Biol}
}

@article{rhoten2004interdisciplinary,
  title={Interdisciplinary research: Trend or transition},
  author={Rhoten, Diana},
  journal={Items and Issues},
  volume={5},
  number={1-2},
  pages={6--11},
  year={2004}
}

@misc{tilghman1998trends,
  title={Trends in the Early Careers of Life Scientists, Report by the Committee on Dimensions, Causes, and Implications of Recent Trends in the Careers of Life Scientists, National Research Council},
  author={Tilghman, Shirley},
  year={1998},
  publisher={Washington, DC: National Academies Press}
}

@book{pfirman2011interdisciplinary,
  title={Interdisciplinary hiring and career development: guidance for individuals and institutions},
  author={Pfirman, SL and Martin, Paula and Danielson, A and Goodman, RM and Steen-Adams, M and Waggett, C and Mutter, J and Rikakis, T and Fletcher, M and Berry, L and others},
  year={2011},
  publisher={National Council for Science and the Environment Washington, DC}
}

@article{nelson2011interdisciplinary,
  title={Interdisciplinary studies: seeking the right toolkit},
  author={Nelson, Bryn},
  journal={Nature},
  volume={476},
  number={7358},
  pages={115--117},
  year={2011},
  publisher={Nature Publishing Group}
}

@article{nugent2013interdisciplinary,
  title={An interdisciplinary shift in demand for talent within the biotech industry},
  author={Nugent, Kathy L and Kulkarni, Avi},
  journal={Nature biotechnology},
  volume={31},
  number={9},
  pages={853--855},
  year={2013},
  publisher={Nature Publishing Group}
}

@misc{flaherty2015cluster,
  title={Cluster Hiring and Diversity},
  author={Colleen Flaherty},
  journal={Inside Higher Ed},
  year={2015},
  url={https://www.insidehighered.com/news/2015/05/01/new-report-says-cluster-hiring-can-lead-increased-faculty-diversity}
}

@misc{pollackandsnir,
  title={Promotion and Tenure of Interdisciplinary Faculty},
  author={Martha E. Pollack and Marc Snir},
  journal={Computing Research Association},
  year={XXXX},
  url={http://cra.org/resources/best-practice-memos/promotion-and-tenure-of-interdisciplinary-faculty/}
}

@misc{kelsky2014curse,
  title={The Professor is In: The Curse of the Interdisciplinary Ph.D.},
  author={Karen Kelsky},
  journal={Vitae},
  year={2014},
  url={https://chroniclevitae.com/news/548-the-professor-is-in-the-curse-of-the-interdisciplinary-ph-d}
}

@misc{cawley2015job,
  title={Job Market Mentor: The Interdisciplinary Ph.D.},
  author={John Cawley},
  journal={Vitae},
  year={2015},
  url={https://chroniclevitae.com/news/914-job-market-mentor-the-interdisciplinary-ph-d}
}

@misc{pfirman2012troubled,
  title={Troubled by Interdisciplinarity?},
  author={Stephanie Pfirman and Melissa Begg},
  journal={Science Careers},
  year={2012},
  doi={10.1126/science.caredit.a1200040},
  url={https://chroniclevitae.com/news/914-job-market-mentor-the-interdisciplinary-ph-d}
}


text:
DESCRIPTION = "NVIDIA-specific OpenGL headers"
HOMEPAGE = "http://developer.nvidia.com"
LICENSE = "Proprietary"

SRC_URI = "https://developer.download.nvidia.com/devzone/devcenter/mobile/jetpack_l4t/3.2.1/m8u2ki/JetPackL4T_321_b23/Tegra_Multimedia_API_R${PV}_aarch64.tbz2"
SRC_URI[md5sum] = "ffc676c2bfae02c74c7520e7b72ab757"
SRC_URI[sha256sum] = "cad2f36d5eb8be36984a0c1dcb4d8055c718b5f9da23ec52843cc48e47291466"

LIC_FILES_CHKSUM = "file://include/EGL/eglext_nv.h;beginline=8;endline=16;md5=60d5636609dae48b08c5cdcef3d376c3"

S = "${WORKDIR}/tegra_multimedia_api"
B = "${S}"

do_configure() {
    :
}

do_compile() {
    :
}

do_install() {
    install -d ${D}${includedir}/EGL ${D}${includedir}/GLES2
    install -m 0644 ${S}/include/EGL/eglext_nv.h ${D}${includedir}/EGL/
    install -m 0644 ${S}/include/GLES2/gl2ext_nv.h ${D}${includedir}/GLES2/
}

PACKAGES = "${PN}-dev ${PN}"
ALLOW_EMPTY_${PN} = "1"

license: MIT

repository: crosslore/meta-tegra

license_type: permissive

repo_name: crosslore/meta-tegra

branch_name: refs/heads/master

gha_license_id: MIT

gha_language: BitBake

extension: bb


text:
package v1alpha1

import (
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

const (
	RedisExporterImage     string = "riet/aliyun-redis-exporter"
	RedisExporterNamespace string = "ops-monitor"
	RedisExporterPort      int32  = 10003
)

type RedisAliyunAccount struct {
	Name            string   `json:"name"`
	AccessKeyId     string   `json:"accessKeyId"`
	AccessKeySecret string   `json:"accessKeySecret"`
	RegionId        string   `json:"regionId"`
	ExtraMetric     []string `json:"extraMetric,omitempty"`
}

// EDIT THIS FILE!  THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required.  Any new fields you add must have json tags for the fields to be serialized.

// RedisMonitorSpec defines the desired state of RedisMonitor
type RedisMonitorSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	RedisAliyunAccount []RedisAliyunAccount `json:"redisAliyunAccount"`
}

// RedisMonitorStatus defines the observed state of RedisMonitor
type RedisMonitorStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// RedisMonitor is the Schema for the redismonitors API
// +kubebuilder:subresource:status
// +kubebuilder:resource:path=redismonitors,scope=Namespaced
type RedisMonitor struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   RedisMonitorSpec   `json:"spec,omitempty"`
	Status RedisMonitorStatus `json:"status,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// RedisMonitorList contains a list of RedisMonitor
type RedisMonitorList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []RedisMonitor `json:"items"`
}

func init() {
	SchemeBuilder.Register(&RedisMonitor{}, &RedisMonitorList{})
}

repository: Riete/aliyun-monitor-operator

repo_name: Riete/aliyun-monitor-operator

extension: go


text:
@inproceedings{2013ASPC..476..305T,
 adsnote = {Provided by the SAO/NASA Astrophysics Data System},
 adsurl = {http://adsabs.harvard.edu/abs/2013ASPC..476..305T},
 author = {Tosaki, T. and Miura, R.~E. and Kohno, K. and Kuno, N. and
Onodera, S. and MAGiC Team},
 booktitle = {New Trends in Radio Astronomy in the ALMA Era: The 30th Anniversary of Nobeyama Radio Observatory},
 editor = {Kawabe, R. and Kuno, N. and Yamamoto, S.},
 month = {October},
 pages = {305},
 series = {Astronomical Society of the Pacific Conference Series},
 title = {Molecular Gas and Star formation in Giant HII Regions of M33},
 volume = {476},
 year = {2013}
}

repository: miurare/academic-kickstart

repo_name: miurare/academic-kickstart

extension: bib


text:
// Enable chromereload by uncommenting this line:
// import 'chromereload/devonly'

let key;
let errorMessageSpan;

const urls = {
  api: {
    tmdb: {
      isValidApiKey: (apiKey) => `https://api.themoviedb.org/3/find/nothing?external_source=imdb_id&language=en-US&api_key=${apiKey}`,
      multiSearch: (term) => `https://api.themoviedb.org/3/search/multi?include_adult=false&page=1&query=${encodeURIComponent(term)}&language=en-US&api_key=${key}`,
      getMovieById: (movieId) => `https://api.themoviedb.org/3/movie/${movieId}?language=en-US&api_key=${key}&append_to_response=external_ids`,
      getTvShowById: (showId) => `https://api.themoviedb.org/3/tv/${showId}?language=en-US&api_key=${key}&append_to_response=external_ids`,
    }
  }
}

function sendTMDBRequest(fn, url) {
  return requestUtils.get(urls.api.tmdb.getMovieById(id), {Authorization: 'Bearer ' + accessToken})
}

function isHavingApiKey() {
  return !!localStorage.getItem('apiKey');
}

function TmdbIconClickHandlerNoApiKey() {
  updateUrl('https://developers.themoviedb.org', false, true)
}

document.body.onload = () => {
  key = localStorage.getItem('apiKey')

  if (!key) {
    let apiKeyIn = document.getElementById('apiKey');
    apiKeyIn.onkeydown = setApiKeyEvent;
    apiKeyIn.focus();

    let tmdbIcon = document.getElementById('tmdbIcon');
    tmdbIcon.onclick = TmdbIconClickHandlerNoApiKey;
  } else {
    Array.from(document.getElementsByClassName('searchApi')).forEach((item) => {
      item.className = 'searchApi';
    });

    Array.from(document.getElementsByClassName('getApi')).forEach((item) => {
      item.className = 'getApi hidden';
    });

    let tmdbIcon = document.getElementById('tmdbIcon');
    tmdbIcon.onclick = searchNameByClick;
  }
  if (!searchNameIn) {
    searchNameIn = document.getElementById('searchName');
  }

  let errorMsgLink;

  errorMsgLink = document.getElementById('tmdbUrl');

  if (errorMsgLink) {
    errorMsgLink.onclick = TmdbIconClickHandlerNoApiKey;
  }

  if (searchNameIn) {
    searchNameIn.onkeydown = searchNameKeyEvent;
    searchNameIn.focus();
  }
};

function setApiKeyEvent(event) {
  if (!isEnter(event)) {
    return true;
  }

  const apiKey = event.target.value;

  requestUtils.get(urls.api.tmdb.isValidApiKey(apiKey))
    .then((res) => {
      if (res.status_code === 7) {
        throw {
          message: 'states code is 7',
          error: res
        };
      }
    })
    .then(() => {
      console.log('Setting the api key...');

      localStorage.setItem('apiKey', apiKey);
      key = apiKey;

      if (!errorMessageSpan) {
        errorMessageSpan = document.getElementById('keyErrorMessage');
      }

      if (errorMessageSpan) {
        errorMessageSpan.className = 'hidden';
      }

      Array.from(document.getElementsByClassName('searchApi')).forEach((item) => {
          item.className = 'searchApi';
        }
      );

      Array.from(document.getElementsByClassName('getApi')).forEach((item) => {
          item.className = 'getApi hidden';
        }
      );

      let tmdbIcon = document.getElementById('tmdbIcon');
      tmdbIcon.onclick = searchNameByClick;
    })
    .catch((error) => {
      console.error(error);
      if (!errorMessageSpan) {
        errorMessageSpan = document.getElementById('keyErrorMessage');
      }

      if (!errorMessageSpan) {
        console.error('no element with id keyErrorMessage');
        return;
      }

      errorMessageSpan.className = '';
    });

  return false;
}

// TODO - Set the input to be in focus

function searchNameKeyEvent(event) {
  if (isEnter(event)) {
    searchName(event.target.value);
    return false;
  }
  return true;
}

function searchNameByClick() {
  if (!searchNameIn) {
    searchNameIn = document.getElementById('searchName');
  }

  if (!searchNameIn) {
    console.error('search name input didn\'t found');
    return true;
  }

  searchName(searchNameIn.value);
  return false;
}

async function searchName(name) {
  search(await getIdByName(name));
}

function getIdByName(name) {
  return requestUtils.get(urls.api.tmdb.multiSearch(name))
    .then(parseResults)
    .catch((error) => {
      console.error(error);
      return null;
    });
}

let searchIn = document.getElementById('searchinput');
let searchBtn = getSearchBtn();
let searchNameIn = document.getElementById('searchName');

function search(imdbId) {
  updateUrl(`/torrents.php?imdb=${imdbId}`);
}

function updateUrl(url, relative = true, newTab = false) {
  if (newTab) {
    chrome.tabs.create({url: url, active: true});
    return;
  }

  const changePageUrlCode = `window.location${relative ? '' : '.href'} = '${url}'`;

  chrome.tabs.executeScript({code: changePageUrlCode});
  window.close();
}

function getSearchBtn() {
  let div = document.getElementById('searchTorrent');
  if (!div) {
    return null;
  }

  let buttons = div.getElementsByTagName('button');

  if (!buttons || buttons.length === 0) {
    return null;
  }

  return buttons[0];
}

function parseResults(obj) {

  return new Promise((resolve, reject) => {
    if (!obj || obj.total_results === 0 || !obj.results || !Array.isArray(obj.results) || obj.results.length === 0) {
      return null;
    }

    let id = null

    obj.results.find(async (item) => {
      if (item.media_type !== 'tv' && item.media_type !== 'movie') {
        return false;
      }

      id = await ((item.media_type === 'tv') ? getTVIMDBID(item.id, item.original_title) : getMovieIMDBID(item.id, item.original_title))

      if (id) {
        resolve(id);
        return true;
      }

    });

    return id;
  });

}

function getMovieIMDBID(id, title) {
  return requestUtils.get(urls.api.tmdb.getMovieById(id))
    .then((resObj) => {
      let imdbID = null;

      if (resObj && ((resObj.imdb_id && resObj.imdb_id.length !== 0) || (resObj.external_ids && resObj.external_ids.imdb_id && resObj.external_ids.imdb_id.length > 0)) && resObj.original_title === title) {
        imdbID = (resObj.imdb_id && resObj.imdb_id.length !== 0) ? resObj.imdb_id : resObj.external_ids.imdb_id;
      }

      return imdbID;
    })
    .catch((error) => {
      console.error(error);
      return null;
    });
}

function getTVIMDBID(id, title) {
  return requestUtils.get(urls.api.tmdb.getTvShowById(id))
    .then((resObj) => {
      var imdbID = null;

      if (resObj && ((resObj.imdb_id && resObj.imdb_id.length !== 0) || (resObj.external_ids && resObj.external_ids.imdb_id && resObj.external_ids.imdb_id.length > 0)) && resObj.original_title === title) {
        imdbID = (resObj.imdb_id && resObj.imdb_id.length !== 0) ? resObj.imdb_id : resObj.external_ids.imdb_id;
      }

      return imdbID;
    })
    .catch((error) => {
      console.error(error);
      return null;
    });
}

function isEnter(event) {
  return event && (event.which == 13 || event.keyCode == 13);
}

repository: rluvaton/search-rarbg-by-imdb-id

repo_name: rluvaton/search-rarbg-by-imdb-id

gha_language: JavaScript

extension: js


text:
@inproceedings{10.1145/3456727.3463770,
author = {Mustard, Craig and Goswami, Swati and Gharavi, Niloofar and Nider, Joel and Beschastnikh, Ivan and Fedorova, Alexandra},
title = {Jumpgate: Automating Integration of Network Connected Accelerators},
year = {2021},
isbn = {9781450383981},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3456727.3463770},
doi = {10.1145/3456727.3463770},
abstract = {Network-connected accelerators (NCA), such as programmable switches, ASICs, and FPGAs can speed up operations in data analytics. But so far, integration of NCAs into data analytics systems required manual effort.We present Jumpgate, a system that simplifies integration of existing NCA code into data analytics systems, such as Apache Spark or Presto. Jumpgate places most of the integration code into the analytics system, which needs to be written once, leaving NCA programmers to write only a couple hundred lines of code to integrate new NCAs. Jumpgate relies on dataflow graphs that most analytics systems use internally, and takes care of the invocation of NCAs, the necessary format conversion, and orchestration of their execution via novel staged network pipelines.Our implementation of Jumpgate in Apache Spark made it possible, for the first time, to study the benefits and drawbacks of using NCAs across the entire range of queries in the TPC-DS benchmark. Since we lack hardware that can accelerate all analytics operations, we implemented NCAs in software. We report on how and when analytics workloads will benefit from NCAs to motivate future designs.},
booktitle = {Proceedings of the 14th ACM International Conference on Systems and Storage},
articleno = {18},
numpages = {12},
location = {Haifa, Israel},
series = {SYSTOR '21}
}

branch_name: refs/heads/main


text:
package main

import (
	"archive/zip"
	"fmt"
	"io"
	"os"
	"path/filepath"
	"strings"
)

func main() {
	help := hasArg("-h") || hasArg("--help")

	if help {
		printHelp()
		return
	}

	filePath := os.Args[1]
	targetFolder := os.Args[2]

	fmt.Printf("Unzipping %s to %s\r\n", filePath, targetFolder)

	err := unzip(filePath, targetFolder)
	if err != nil {
		fmt.Printf("ERROR: %s\r\n", err)
		os.Exit(1)
	}

	fmt.Printf("Successfully uncompressed all files.\r\n")
}

func hasArg(arg string) bool {
	for _, a := range os.Args {
		if a == arg {
			return true
		}
	}

	return false
}

func unzip(filePath string, targetFolder string) error {
	reader, err := zip.OpenReader(filePath)
	if err != nil {
		return err
	}
	defer reader.Close()

	os.MkdirAll(targetFolder, os.ModePerm)

	for _, file := range reader.File {
		targetFilePath := fmt.Sprintf("%s%s%s", targetFolder, string(os.PathSeparator), file.Name)

		fmt.Printf("Unzip compressed file %s to %s\r\n", file.Name, targetFilePath)

		// Check for ZipSlip. More Info: http://bit.ly/2MsjAWE
		requiredPrefix := filepath.Clean(targetFolder) + string(os.PathSeparator)
		if !strings.HasPrefix(targetFilePath, requiredPrefix) {
			return fmt.Errorf("%s: illegal file path due to ZipSlip, see http://bit.ly/2MsjAWE, required prefix missing %s", targetFilePath, requiredPrefix)
		}

		if file.FileInfo().IsDir() {
			// Make Folder
			os.MkdirAll(targetFilePath, os.ModePerm)
			continue
		}

		outFile, err := os.OpenFile(targetFilePath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, file.Mode())
		if err != nil {
			return err
		}

		inputReader, err := file.Open()
		if err != nil {
			return err
		}

		_, err = io.Copy(outFile, inputReader)

		// Close the file without defer to close before next iteration of loop
		outFile.Close()
		inputReader.Close()

		if err != nil {
			return err
		}
	}

	return nil
}

func printHelp() {
	fmt.Printf("Unzip a file into a folder.\r\n")
	fmt.Printf("Usage: gounzip <archive_file> <target_folder>\r\n")
}

repository: Useurmind/gounzip

repo_name: Useurmind/gounzip


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

package mongodocstore

import (
	"context"
	"os"
	"testing"

	"gocloud.dev/docstore/drivertest"
	"gocloud.dev/internal/testing/setup"
)

// Run conformance tests on Azure Cosmos.

var (
	// See https://docs.microsoft.com/en-us/azure/cosmos-db/connect-mongodb-account
	// on how to get a MongoDB connection string for Azure Cosmos.
	cosmosConnString = os.Getenv("COSMOS_CONNECTION_STRING")
)

func TestConformanceCosmos(t *testing.T) {
	if !*setup.Record {
		t.Skip("replaying is not yet supported for Azure Cosmos")
	}
	if cosmosConnString == "" {
		t.Fatal("test harness requires COSMOS_CONNECTION_STRING environment variable to run")
	}

	ctx := context.Background()
	client, err := Dial(ctx, cosmosConnString)
	if err != nil {
		t.Fatalf("dialing to %s: %v", cosmosConnString, err)
	}
	if err := client.Ping(ctx, nil); err != nil {
		t.Fatalf("connecting to %s: %v", cosmosConnString, err)
	}
	defer func() {
		// Cleanup any resource to avoid wastes.
		client.Database(dbName).Drop(ctx)
		client.Disconnect(ctx)
	}()

	newHarness := func(context.Context, *testing.T) (drivertest.Harness, error) {
		return &harness{client.Database(dbName)}, nil
	}
	drivertest.RunConformanceTests(t, newHarness, codecTester{}, []drivertest.AsTest{verifyAs{}})
}

repository: google/go-cloud

repo_name: google/go-cloud

gha_language: Go


text:
SUMMARY = "Tools for taking the MD5 sum of ISO images"
DESCRIPTION = "Tools for taking the MD5 sum of ISO images"

DEPENDS = "popt python3 openssl curl popt-native"
RDEPENDS:${BPN} = "openssl curl"

LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"

SRC_URI = "git://github.com/rhinstaller/isomd5sum.git;branch=master;protocol=https \
           file://0001-tweak-install-prefix.patch \
           file://0002-fix-parallel-error.patch \
"

S = "${WORKDIR}/git"
inherit python3native

EXTRA_OEMAKE += " \
    DESTDIR='${D}' \
    PYTHONINCLUDE='-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}' \
    PYTHONSITEPACKAGES='${PYTHON_SITEPACKAGES_DIR}' \
"

do_install () {
    oe_runmake install
}

PACKAGES += "${PYTHON_PN}-${BPN}"

RPROVIDES:${BPN}-dbg += "${PYTHON_PN}-${BPN}-dbg"

FILES:${PYTHON_PN}-${BPN} = "${PYTHON_SITEPACKAGES_DIR}/pyisomd5sum.so"

SRCREV = "7860901f726f5d92689cb67243cc7f981f21f74b"

BBCLASSEXTEND = "native"

repository: openembedded/meta-openembedded

repo_name: openembedded/meta-openembedded


text:
vcpkg_from_github(
  OUT_SOURCE_PATH SOURCE_PATH
  REPO invor/glowl
  REF e80ae434618d7a3b0056f2765dcca9d6d64c1db7
  SHA512 d2db2e5d5753e157a1b6d394a7154a2bfe4d2b8410e7e0d65cbfc437c99c66b20fbcb57753ac7eddf8836e020c0208a4f2ce9fdeb751898e3bc507e6fb90e731
  HEAD_REF master
)

if ("glm" IN_LIST FEATURES)
  set(USE_GLM ON)
else ()
  set(USE_GLM OFF)
endif ()
if ("gl-extensions" IN_LIST FEATURES)
  set(USE_GL_EXT ON)
else ()
  set(USE_GL_EXT OFF)
endif ()

vcpkg_cmake_configure(
  SOURCE_PATH ${SOURCE_PATH}
  OPTIONS
    -DGLOWL_OPENGL_INCLUDE=GLAD2
    -DGLOWL_USE_GLM=${USE_GLM}
    -DGLOWL_USE_ARB_BINDLESS_TEXTURE=${USE_GL_EXT}
    -DGLOWL_USE_NV_MESH_SHADER=${USE_GL_EXT}
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/glowl)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

repository: invor/megamol

repo_name: invor/megamol

extension: cmake


text:
@inproceedings{magelinski2018comparison,
  title={Comparison of faction detection methods in application to Ukrainian parliamentary data},
  author={Magelinski, Thomas and Cruickshank, Iain and Carley, Kathleen M},
  booktitle={2018 International Conference on Social Computing, Behavioral-Cultural Modeling, and Prediction and Behavior Representation in Modeling and Simulation, Washington DC},
  year={2018}
}

repository: tmagelinski/tmagelinski-src

repo_name: tmagelinski/tmagelinski-src