text:
@proceedings{ws-2019-machine-translation,
    title = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    editor = "Bojar, Ond{\v{r}}ej  and
      Chatterjee, Rajen  and
      Federmann, Christian  and
      Fishel, Mark  and
      Graham, Yvette  and
      Haddow, Barry  and
      Huck, Matthias  and
      Yepes, Antonio Jimeno  and
      Koehn, Philipp  and
      Martins, Andr{\'e}  and
      Monz, Christof  and
      Negri, Matteo  and
      N{\'e}v{\'e}ol, Aur{\'e}lie  and
      Neves, Mariana  and
      Post, Matt  and
      Turchi, Marco  and
      Verspoor, Karin",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5300",
}
@inproceedings{barrault-etal-2019-findings,
    title = "Findings of the 2019 Conference on Machine Translation ({WMT}19)",
    author = {Barrault, Lo{\"\i}c  and
      Bojar, Ond{\v{r}}ej  and
      Costa-juss{\`a}, Marta R.  and
      Federmann, Christian  and
      Fishel, Mark  and
      Graham, Yvette  and
      Haddow, Barry  and
      Huck, Matthias  and
      Koehn, Philipp  and
      Malmasi, Shervin  and
      Monz, Christof  and
      M{\"u}ller, Mathias  and
      Pal, Santanu  and
      Post, Matt  and
      Zampieri, Marcos},
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5301",
    doi = "10.18653/v1/W19-5301",
    pages = "1--61",
}
@inproceedings{ma-etal-2019-results,
    title = "Results of the {WMT}19 Metrics Shared Task: Segment-Level and Strong {MT} Systems Pose Big Challenges",
    author = "Ma, Qingsong  and
      Wei, Johnny  and
      Bojar, Ond{\v{r}}ej  and
      Graham, Yvette",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5302",
    doi = "10.18653/v1/W19-5302",
    pages = "62--90",
}
@inproceedings{li-etal-2019-findings,
    title = "Findings of the First Shared Task on Machine Translation Robustness",
    author = "Li, Xian  and
      Michel, Paul  and
      Anastasopoulos, Antonios  and
      Belinkov, Yonatan  and
      Durrani, Nadir  and
      Firat, Orhan  and
      Koehn, Philipp  and
      Neubig, Graham  and
      Pino, Juan  and
      Sajjad, Hassan",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5303",
    doi = "10.18653/v1/W19-5303",
    pages = "91--102",
}
@inproceedings{bawden-etal-2019-university,
    title = "The University of {E}dinburgh{'}s Submissions to the {WMT}19 News Translation Task",
    author = "Bawden, Rachel  and
      Bogoychev, Nikolay  and
      Germann, Ulrich  and
      Grundkiewicz, Roman  and
      Kirefu, Faheem  and
      Miceli Barone, Antonio Valerio  and
      Birch, Alexandra",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5304",
    doi = "10.18653/v1/W19-5304",
    pages = "103--115",
}
@inproceedings{bei-etal-2019-gtcom,
    title = "{GTCOM} Neural Machine Translation Systems for {WMT}19",
    author = "Bei, Chao  and
      Zong, Hao  and
      Yuan, Conghu  and
      Liu, Qingming  and
      Fan, Baoyong",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5305",
    doi = "10.18653/v1/W19-5305",
    pages = "116--121",
}
@inproceedings{bicici-2019-machine,
    title = "Machine Translation with parfda, {M}oses, kenlm, nplm, and {PRO}",
    author = "Bi{\c{c}}ici, Ergun",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5306",
    doi = "10.18653/v1/W19-5306",
    pages = "122--128",
}
@inproceedings{bougares-etal-2019-liums,
    title = "{LIUM}{'}s Contributions to the {WMT}2019 News Translation Task: Data and Systems for {G}erman-{F}rench Language Pairs",
    author = {Bougares, Fethi  and
      Wottawa, Jane  and
      Baillot, Anne  and
      Barrault, Lo{\"\i}c  and
      Bardet, Adrien},
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5307",
    doi = "10.18653/v1/W19-5307",
    pages = "129--133",
}
@inproceedings{briakou-carpuat-2019-university,
    title = "The University of {M}aryland{'}s {K}azakh-{E}nglish Neural Machine Translation System at {WMT}19",
    author = "Briakou, Eleftheria  and
      Carpuat, Marine",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5308",
    doi = "10.18653/v1/W19-5308",
    pages = "134--140",
}
@inproceedings{budiwati-etal-2019-dbms,
    title = "{DBMS}-{KU} Interpolation for {WMT}19 News Translation Task",
    author = "Budiwati, Sari Dewi  and
      Siagian, Al Hafiz Akbar Maulana  and
      Fatyanosa, Tirana Noor  and
      Aritsugi, Masayoshi",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5309",
    doi = "10.18653/v1/W19-5309",
    pages = "141--146",
}
@inproceedings{burlot-2019-lingua,
    title = "Lingua Custodia at {WMT}{'}19: Attempts to Control Terminology",
    author = "Burlot, Franck",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5310",
    doi = "10.18653/v1/W19-5310",
    pages = "147--154",
}
@inproceedings{casas-etal-2019-talp,
    title = "The {TALP}-{UPC} Machine Translation Systems for {WMT}19 News Translation Task: Pivoting Techniques for Low Resource {MT}",
    author = "Casas, Noe  and
      Fonollosa, Jos{\'e} A. R.  and
      Escolano, Carlos  and
      Basta, Christine  and
      Costa-juss{\`a}, Marta R.",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5311",
    doi = "10.18653/v1/W19-5311",
    pages = "155--162",
}
@inproceedings{cromieres-kurohashi-2019-kyoto,
    title = "{K}yoto University Participation to the {WMT} 2019 News Shared Task",
    author = "Cromieres, Fabien  and
      Kurohashi, Sadao",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5312",
    doi = "10.18653/v1/W19-5312",
    pages = "163--167",
}
@inproceedings{dabre-etal-2019-nicts,
    title = "{NICT}{'}s Supervised Neural Machine Translation Systems for the {WMT}19 News Translation Task",
    author = "Dabre, Raj  and
      Chen, Kehai  and
      Marie, Benjamin  and
      Wang, Rui  and
      Fujita, Atsushi  and
      Utiyama, Masao  and
      Sumita, Eiichiro",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5313",
    doi = "10.18653/v1/W19-5313",
    pages = "168--174",
}
@inproceedings{ding-tao-2019-university,
    title = "The University of {S}ydney{'}s Machine Translation System for {WMT}19",
    author = "Ding, Liang  and
      Tao, Dacheng",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5314",
    doi = "10.18653/v1/W19-5314",
    pages = "175--182",
}
@inproceedings{espana-bonet-ruiter-2019-uds,
    title = "{U}d{S}-{DFKI} Participation at {WMT} 2019: Low-Resource (en-gu) and Coreference-Aware (en-de) Systems",
    author = "Espa{\~n}a-Bonet, Cristina  and
      Ruiter, Dana",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5315",
    doi = "10.18653/v1/W19-5315",
    pages = "183--190",
}
@inproceedings{goyal-sharma-2019-iiit,
    title = "The {IIIT}-H {G}ujarati-{E}nglish Machine Translation System for {WMT}19",
    author = "Goyal, Vikrant  and
      Sharma, Dipti Misra",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5316",
    doi = "10.18653/v1/W19-5316",
    pages = "191--195",
}
@inproceedings{guo-etal-2019-kingsofts,
    title = "Kingsoft{'}s Neural Machine Translation System for {WMT}19",
    author = "Guo, Xinze  and
      Liu, Chang  and
      Li, Xiaolong  and
      Wang, Yiran  and
      Li, Guoliang  and
      Wang, Feng  and
      Xu, Zhitao  and
      Yang, Liuyi  and
      Ma, Li  and
      Li, Changliang",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5317",
    doi = "10.18653/v1/W19-5317",
    pages = "196--202",
}
@inproceedings{gwinnup-etal-2019-afrl,
    title = "The {AFRL} {WMT}19 Systems: Old Favorites and New Tricks",
    author = "Gwinnup, Jeremy  and
      Erdmann, Grant  and
      Anderson, Tim",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5318",
    doi = "10.18653/v1/W19-5318",
    pages = "203--208",
}
@inproceedings{hokamp-etal-2019-evaluating,
    title = "Evaluating the Supervised and Zero-shot Performance of Multi-lingual Translation Models",
    author = "Hokamp, Chris  and
      Glover, John  and
      Gholipour Ghalandari, Demian",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5319",
    doi = "10.18653/v1/W19-5319",
    pages = "209--217",
}
@inproceedings{iranzo-sanchez-etal-2019-mllp,
    title = "The {MLLP}-{UPV} Supervised Machine Translation Systems for {WMT}19 News Translation Task",
    author = "Iranzo-S{\'a}nchez, Javier  and
      Garc{\'e}s D{\'\i}az-Mun{\'\i}o, Gon{\c{c}}al  and
      Civera, Jorge  and
      Juan, Alfons",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5320",
    doi = "10.18653/v1/W19-5320",
    pages = "218--224",
}
@inproceedings{junczys-dowmunt-2019-microsoft,
    title = "{M}icrosoft Translator at {WMT} 2019: Towards Large-Scale Document-Level Neural Machine Translation",
    author = "Junczys-Dowmunt, Marcin",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5321",
    doi = "10.18653/v1/W19-5321",
    pages = "225--233",
}
@inproceedings{kocmi-bojar-2019-cuni,
    title = "{CUNI} Submission for Low-Resource Languages in {WMT} News 2019",
    author = "Kocmi, Tom  and
      Bojar, Ond{\v{r}}ej",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5322",
    doi = "10.18653/v1/W19-5322",
    pages = "234--240",
}
@inproceedings{kvapilikova-etal-2019-cuni,
    title = "{CUNI} Systems for the Unsupervised News Translation Task in {WMT} 2019",
    author = "Kvapil{\'\i}kov{\'a}, Ivana  and
      Mach{\'a}{\v{c}}ek, Dominik  and
      Bojar, Ond{\v{r}}ej",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5323",
    doi = "10.18653/v1/W19-5323",
    pages = "241--248",
}
@inproceedings{li-specia-2019-comparison,
    title = "A Comparison on Fine-grained Pre-trained Embeddings for the {WMT}19{C}hinese-{E}nglish News Translation Task",
    author = "Li, Zhenhao  and
      Specia, Lucia",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5324",
    doi = "10.18653/v1/W19-5324",
    pages = "249--256",
}
@inproceedings{li-etal-2019-niutrans,
    title = "The {N}iu{T}rans Machine Translation Systems for {WMT}19",
    author = "Li, Bei  and
      Li, Yinqiao  and
      Xu, Chen  and
      Lin, Ye  and
      Liu, Jiqiang  and
      Liu, Hui  and
      Wang, Ziyang  and
      Zhang, Yuhao  and
      Xu, Nuo  and
      Wang, Zeyang  and
      Feng, Kai  and
      Chen, Hexuan  and
      Liu, Tengbo  and
      Li, Yanyang  and
      Wang, Qiang  and
      Xiao, Tong  and
      Zhu, Jingbo",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5325",
    doi = "10.18653/v1/W19-5325",
    pages = "257--266",
}
@inproceedings{littell-etal-2019-multi,
    title = "Multi-Source Transformer for {K}azakh-{R}ussian-{E}nglish Neural Machine Translation",
    author = "Littell, Patrick  and
      Lo, Chi-kiu  and
      Larkin, Samuel  and
      Stewart, Darlene",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5326",
    doi = "10.18653/v1/W19-5326",
    pages = "267--274",
}
@inproceedings{liu-etal-2019-incorporating-word,
    title = "Incorporating Word and Subword Units in Unsupervised Machine Translation Using Language Model Rescoring",
    author = "Liu, Zihan  and
      Xu, Yan  and
      Winata, Genta Indra  and
      Fung, Pascale",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5327",
    doi = "10.18653/v1/W19-5327",
    pages = "275--282",
}
@inproceedings{mahata-etal-2019-jumt,
    title = "{JUMT} at {WMT}2019 News Translation Task: A Hybrid Approach to Machine Translation for {L}ithuanian to {E}nglish",
    author = "Mahata, Sainik Kumar  and
      Garain, Avishek  and
      Rayala, Adityar  and
      Das, Dipankar  and
      Bandyopadhyay, Sivaji",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5328",
    doi = "10.18653/v1/W19-5328",
    pages = "283--286",
}
@inproceedings{marchisio-etal-2019-johns,
    title = "{J}ohns {H}opkins University Submission for {WMT} News Translation Task",
    author = "Marchisio, Kelly  and
      Lal, Yash Kumar  and
      Koehn, Philipp",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5329",
    doi = "10.18653/v1/W19-5329",
    pages = "287--293",
}
@inproceedings{marie-etal-2019-nicts,
    title = "{NICT}{'}s Unsupervised Neural and Statistical Machine Translation Systems for the {WMT}19 News Translation Task",
    author = "Marie, Benjamin  and
      Sun, Haipeng  and
      Wang, Rui  and
      Chen, Kehai  and
      Fujita, Atsushi  and
      Utiyama, Masao  and
      Sumita, Eiichiro",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5330",
    doi = "10.18653/v1/W19-5330",
    pages = "294--301",
}
@inproceedings{molchanov-2019-promt,
    title = "{PROMT} Systems for {WMT} 2019 Shared Translation Task",
    author = "Molchanov, Alexander",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5331",
    doi = "10.18653/v1/W19-5331",
    pages = "302--307",
}
@inproceedings{mondal-etal-2019-ju,
    title = "{JU}-{S}aarland Submission to the {WMT}2019 {E}nglish{--}{G}ujarati Translation Shared Task",
    author = "Mondal, Riktim  and
      Nayek, Shankha Raj  and
      Chowdhury, Aditya  and
      Pal, Santanu  and
      Naskar, Sudip Kumar  and
      van Genabith, Josef",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5332",
    doi = "10.18653/v1/W19-5332",
    pages = "308--313",
}
@inproceedings{ng-etal-2019-facebook,
    title = "{F}acebook {FAIR}{'}s {WMT}19 News Translation Task Submission",
    author = "Ng, Nathan  and
      Yee, Kyra  and
      Baevski, Alexei  and
      Ott, Myle  and
      Auli, Michael  and
      Edunov, Sergey",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5333",
    doi = "10.18653/v1/W19-5333",
    pages = "314--319",
}
@inproceedings{oravecz-etal-2019-etranslations,
    title = "e{T}ranslation{'}s Submissions to the {WMT} 2019 News Translation Task",
    author = "Oravecz, Csaba  and
      Bontcheva, Katina  and
      Lardilleux, Adrien  and
      Tihanyi, L{\'a}szl{\'o}  and
      Eisele, Andreas",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5334",
    doi = "10.18653/v1/W19-5334",
    pages = "320--326",
}
@inproceedings{pinnis-etal-2019-tildes,
    title = "Tilde{'}s Machine Translation Systems for {WMT} 2019",
    author = "Pinnis, Marcis  and
      Kri{\v{s}}lauks, Rihards  and
      Rikters, Mat{\=\i}ss",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5335",
    doi = "10.18653/v1/W19-5335",
    pages = "327--334",
}
@inproceedings{pirinen-2019-apertium,
    title = "Apertium-fin-eng{--}Rule-based Shallow Machine Translation for {WMT} 2019 Shared Task",
    author = "Pirinen, Tommi",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5336",
    doi = "10.18653/v1/W19-5336",
    pages = "335--341",
}
@inproceedings{popel-etal-2019-english,
    title = "{E}nglish-{C}zech Systems in {WMT}19: Document-Level Transformer",
    author = "Popel, Martin  and
      Mach{\'a}{\v{c}}ek, Dominik  and
      Auersperger, Michal  and
      Bojar, Ond{\v{r}}ej  and
      Pecina, Pavel",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5337",
    doi = "10.18653/v1/W19-5337",
    pages = "342--348",
}
@inproceedings{rosendahl-etal-2019-rwth,
    title = "The {RWTH} Aachen University Machine Translation Systems for {WMT} 2019",
    author = "Rosendahl, Jan  and
      Herold, Christian  and
      Kim, Yunsu  and
      Gra{\c{c}}a, Miguel  and
      Wang, Weiyue  and
      Bahar, Parnia  and
      Gao, Yingbo  and
      Ney, Hermann",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5338",
    doi = "10.18653/v1/W19-5338",
    pages = "349--355",
}
@inproceedings{sanchez-cartagena-etal-2019-universitat,
    title = "The {U}niversitat d{'}Alacant Submissions to the {E}nglish-to-{K}azakh News Translation Task at {WMT} 2019",
    author = "S{\'a}nchez-Cartagena, V{\'\i}ctor M.  and
      P{\'e}rez-Ortiz, Juan Antonio  and
      S{\'a}nchez-Mart{\'\i}nez, Felipe",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5339",
    doi = "10.18653/v1/W19-5339",
    pages = "356--363",
}
@inproceedings{stahlberg-etal-2019-cued,
    title = "CUED@WMT19:EWC{\&}LMs",
    author = "Stahlberg, Felix  and
      Saunders, Danielle  and
      de Gispert, Adri{\`a}  and
      Byrne, Bill",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5340",
    doi = "10.18653/v1/W19-5340",
    pages = "364--373",
}
@inproceedings{sun-etal-2019-baidu,
    title = "{B}aidu Neural Machine Translation Systems for {WMT}19",
    author = "Sun, Meng  and
      Jiang, Bojian  and
      Xiong, Hao  and
      He, Zhongjun  and
      Wu, Hua  and
      Wang, Haifeng",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5341",
    doi = "10.18653/v1/W19-5341",
    pages = "374--381",
}
@inproceedings{tattar-etal-2019-university,
    title = "University of Tartu{'}s Multilingual Multi-domain {WMT}19 News Translation Shared Task Submission",
    author = {T{\"a}ttar, Andre  and
      Korotkova, Elizaveta  and
      Fishel, Mark},
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5342",
    doi = "10.18653/v1/W19-5342",
    pages = "382--385",
}
@inproceedings{toral-etal-2019-neural,
    title = "Neural Machine Translation for {E}nglish{--}{K}azakh with Morphological Segmentation and Synthetic Data",
    author = "Toral, Antonio  and
      Edman, Lukas  and
      Yeshmagambetova, Galiya  and
      Spenader, Jennifer",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5343",
    doi = "10.18653/v1/W19-5343",
    pages = "386--392",
}
@inproceedings{stojanovski-etal-2019-lmu,
    title = "The {LMU} Munich Unsupervised Machine Translation System for {WMT}19",
    author = "Stojanovski, Dario  and
      Hangya, Viktor  and
      Huck, Matthias  and
      Fraser, Alexander",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5344",
    doi = "10.18653/v1/W19-5344",
    pages = "393--399",
}
@inproceedings{stojanovski-fraser-2019-combining,
    title = "Combining Local and Document-Level Context: The {LMU} Munich Neural Machine Translation System at {WMT}19",
    author = "Stojanovski, Dario  and
      Fraser, Alexander",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5345",
    doi = "10.18653/v1/W19-5345",
    pages = "400--406",
}
@inproceedings{sen-etal-2019-iitp,
    title = "{IITP}-{MT} System for {G}ujarati-{E}nglish News Translation Task at {WMT} 2019",
    author = "Sen, Sukanta  and
      Gupta, Kamal Kumar  and
      Ekbal, Asif  and
      Bhattacharyya, Pushpak",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5346",
    doi = "10.18653/v1/W19-5346",
    pages = "407--411",
}
@inproceedings{talman-etal-2019-university,
    title = "The University of {H}elsinki Submissions to the {WMT}19 News Translation Task",
    author = {Talman, Aarne  and
      Sulubacak, Umut  and
      V{\'a}zquez, Ra{\'u}l  and
      Scherrer, Yves  and
      Virpioja, Sami  and
      Raganato, Alessandro  and
      Hurskainen, Arvi  and
      Tiedemann, J{\"o}rg},
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5347",
    doi = "10.18653/v1/W19-5347",
    pages = "412--423",
}
@inproceedings{xia-etal-2019-microsoft,
    title = "{M}icrosoft Research Asia{'}s Systems for {WMT}19",
    author = "Xia, Yingce  and
      Tan, Xu  and
      Tian, Fei  and
      Gao, Fei  and
      He, Di  and
      Chen, Weicong  and
      Fan, Yang  and
      Gong, Linyuan  and
      Leng, Yichong  and
      Luo, Renqian  and
      Wang, Yiren  and
      Wu, Lijun  and
      Zhu, Jinhua  and
      Qin, Tao  and
      Liu, Tie-Yan",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5348",
    doi = "10.18653/v1/W19-5348",
    pages = "424--433",
}
@inproceedings{yu-2019-en,
    title = "The En-{R}u Two-way Integrated Machine Translation System Based on Transformer",
    author = "Yu, Doron",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5349",
    doi = "10.18653/v1/W19-5349",
    pages = "434--439",
}
@inproceedings{zhang-van-genabith-2019-dfki,
    title = "{DFKI}-{NMT} Submission to the {WMT}19 News Translation Task",
    author = "Zhang, Jingyi  and
      van Genabith, Josef",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5350",
    doi = "10.18653/v1/W19-5350",
    pages = "440--444",
}
@inproceedings{avramidis-etal-2019-linguistic,
    title = "Linguistic Evaluation of {G}erman-{E}nglish Machine Translation Using a Test Suite",
    author = "Avramidis, Eleftherios  and
      Macketanz, Vivien  and
      Strohriegel, Ursula  and
      Uszkoreit, Hans",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5351",
    doi = "10.18653/v1/W19-5351",
    pages = "445--454",
}
@inproceedings{rysova-etal-2019-test,
    title = "A Test Suite and Manual Evaluation of Document-Level {NMT} at {WMT}19",
    author = "Rysov{\'a}, Kate{\v{r}}ina  and
      Rysov{\'a}, Magdal{\'e}na  and
      Musil, Tom{\'a}{\v{s}}  and
      Pol{\'a}kov{\'a}, Lucie  and
      Bojar, Ond{\v{r}}ej",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5352",
    doi = "10.18653/v1/W19-5352",
    pages = "455--463",
}
@inproceedings{popovic-2019-evaluating,
    title = "Evaluating Conjunction Disambiguation on {E}nglish-to-{G}erman and {F}rench-to-{G}erman {WMT} 2019 Translation Hypotheses",
    author = "Popovi{\'c}, Maja",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5353",
    doi = "10.18653/v1/W19-5353",
    pages = "464--469",
}
@inproceedings{raganato-etal-2019-mucow,
    title = "The {M}u{C}o{W} Test Suite at {WMT} 2019: Automatically Harvested Multilingual Contrastive Word Sense Disambiguation Test Sets for Machine Translation",
    author = {Raganato, Alessandro  and
      Scherrer, Yves  and
      Tiedemann, J{\"o}rg},
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5354",
    doi = "10.18653/v1/W19-5354",
    pages = "470--480",
}
@inproceedings{vojtechova-etal-2019-sao,
    title = "{SAO} {WMT}19 Test Suite: Machine Translation of Audit Reports",
    author = "Vojt{\v{e}}chov{\'a}, Tereza  and
      Nov{\'a}k, Michal  and
      Klou{\v{c}}ek, Milo{\v{s}}  and
      Bojar, Ond{\v{r}}ej",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5355",
    doi = "10.18653/v1/W19-5355",
    pages = "481--493",
}
@inproceedings{chow-etal-2019-wmdo,
    title = "{WMDO}: Fluency-based Word Mover{'}s Distance for Machine Translation Evaluation",
    author = "Chow, Julian  and
      Specia, Lucia  and
      Madhyastha, Pranava",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5356",
    doi = "10.18653/v1/W19-5356",
    pages = "494--500",
}
@inproceedings{guo-hu-2019-meteor,
    title = "Meteor++ 2.0: Adopt Syntactic Level Paraphrase Knowledge into Machine Translation Evaluation",
    author = "Guo, Yinuo  and
      Hu, Junfeng",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5357",
    doi = "10.18653/v1/W19-5357",
    pages = "501--506",
}
@inproceedings{lo-2019-yisi,
    title = "{Y}i{S}i - a Unified Semantic {MT} Quality Evaluation and Estimation Metric for Languages with Different Levels of Available Resources",
    author = "Lo, Chi-kiu",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5358",
    doi = "10.18653/v1/W19-5358",
    pages = "507--513",
}
@inproceedings{stanchev-etal-2019-eed,
    title = "{EED}: Extended Edit Distance Measure for Machine Translation",
    author = "Stanchev, Peter  and
      Wang, Weiyue  and
      Ney, Hermann",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5359",
    doi = "10.18653/v1/W19-5359",
    pages = "514--520",
}
@inproceedings{yoshimura-etal-2019-filtering,
    title = "Filtering Pseudo-References by Paraphrasing for Automatic Evaluation of Machine Translation",
    author = "Yoshimura, Ryoma  and
      Shimanaka, Hiroki  and
      Matsumura, Yukio  and
      Yamagishi, Hayahide  and
      Komachi, Mamoru",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5360",
    doi = "10.18653/v1/W19-5360",
    pages = "521--525",
}
@inproceedings{berard-etal-2019-naver,
    title = "Naver Labs {E}urope{'}s Systems for the {WMT}19 Machine Translation Robustness Task",
    author = "Berard, Alexandre  and
      Calapodescu, Ioan  and
      Roux, Claude",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5361",
    doi = "10.18653/v1/W19-5361",
    pages = "526--532",
}
@inproceedings{dabre-sumita-2019-nicts-supervised,
    title = "{NICT}{'}s Supervised Neural Machine Translation Systems for the {WMT}19 Translation Robustness Task",
    author = "Dabre, Raj  and
      Sumita, Eiichiro",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5362",
    doi = "10.18653/v1/W19-5362",
    pages = "533--536",
}
@inproceedings{grozea-2019-system,
    title = "System Description: The Submission of {FOKUS} to the {WMT} 19 Robustness Task",
    author = "Grozea, Cristian",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5363",
    doi = "10.18653/v1/W19-5363",
    pages = "537--538",
}
@inproceedings{helcl-etal-2019-cuni,
    title = "{CUNI} System for the {WMT}19 Robustness Task",
    author = "Helcl, Jind{\v{r}}ich  and
      Libovick{\'y}, Jind{\v{r}}ich  and
      Popel, Martin",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5364",
    doi = "10.18653/v1/W19-5364",
    pages = "539--543",
}
@inproceedings{murakami-etal-2019-ntts,
    title = "{NTT}{'}s Machine Translation Systems for {WMT}19 Robustness Task",
    author = "Murakami, Soichiro  and
      Morishita, Makoto  and
      Hirao, Tsutomu  and
      Nagata, Masaaki",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5365",
    doi = "10.18653/v1/W19-5365",
    pages = "544--551",
}
@inproceedings{post-duh-2019-jhu,
    title = "{JHU} 2019 Robustness Task System Description",
    author = "Post, Matt  and
      Duh, Kevin",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5366",
    doi = "10.18653/v1/W19-5366",
    pages = "552--558",
}
@inproceedings{zheng-etal-2019-robust,
    title = "Robust Machine Translation with Domain Sensitive Pseudo-Sources: {B}aidu-{OSU} {WMT}19 {MT} Robustness Shared Task System Report",
    author = "Zheng, Renjie  and
      Liu, Hairong  and
      Ma, Mingbo  and
      Zheng, Baigong  and
      Huang, Liang",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5367",
    doi = "10.18653/v1/W19-5367",
    pages = "559--564",
}
@inproceedings{zhou-etal-2019-improving,
    title = "Improving Robustness of Neural Machine Translation with Multi-task Learning",
    author = "Zhou, Shuyan  and
      Zeng, Xiangkai  and
      Zhou, Yingqi  and
      Anastasopoulos, Antonios  and
      Neubig, Graham",
    booktitle = "Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/W19-5368",
    doi = "10.18653/v1/W19-5368",
    pages = "565--571",
}

repository: emorynlp/nlprankings

license_type: permissive

repo_name: emorynlp/nlprankings

branch_name: refs/heads/master

gha_license_id: NOASSERTION

gha_language: TeX

extension: bib


text:
@article{alamdari2017assessing,
 author = {Alamdari, Nasrin and Sample, David J and Steinberg, Peter and Ross, Andrew C and Easton, Zachary M},
 journal = {Water},
 number = {7},
 pages = {464},
 publisher = {Multidisciplinary Digital Publishing Institute},
 title = {Assessing the Effects of Climate Change on Water Quantity and Quality in an Urban Watershed Using a Calibrated Stormwater Model},
 volume = {9},
 year = {2017}
}

license: MIT

repository: andrew-c-ross/academic-kickstart

repo_name: andrew-c-ross/academic-kickstart

gha_license_id: MIT


text:
package qp

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestUnique(t *testing.T) {
	u = 0
	assert.Equal(t, unique(), 1)
	assert.Equal(t, unique(), 2)
	assert.Equal(t, unique(), 3)
}

repository: qp/go

repo_name: qp/go

extension: go


text:
@phdthesis{NewVerificationMethod_thacker_2009,
 author = {Thacker, Robert},
 month = {December},
 school = {University of Utah},
 title = {A New Verification Method For Embedded Systems},
 type = {Ph.D. Dissertation},
 year = {2009}
}


text:
package tcp

import (
	"errors"
	"log"
	"net"
	"time"
)

const (
	readChanSize  = 100
	writeChanSize = 100
)

var removeChan = make(chan string, 100)

type TCPServer struct {
	addr         string
	listener     *net.TCPListener
	callback     CallBack
	protocol     Protocol
	exitChan     chan struct{}
	readTimeOut  time.Duration
	writeTimeOut time.Duration
	bucket       *ConnBucket
}

func NewTCPServer(addr string, callback CallBack, protocol Protocol) *TCPServer {
	return &TCPServer{
		addr:     addr,
		callback: callback,
		protocol: protocol,
		bucket:   NewConnBucket(),
		exitChan: make(chan struct{}),
	}
}

func (srv *TCPServer) ListenAndServe() error {
	addr, err := net.ResolveTCPAddr("tcp4", srv.addr)
	if err != nil {
		return err
	}
	srv.listener, err = net.ListenTCP("tcp4", addr)
	if err != nil {
		return err
	}
	err = srv.Serve(srv.listener)
	if err != nil {
		return err
	}
	return nil
}

func (srv *TCPServer) Serve(l *net.TCPListener) error {
	defer func() {
		if r := recover(); r != nil {
			log.Println("Serve error", r)
		}
		_ = srv.listener.Close()
	}()

	go srv.bucket.removeClosedTCPConnLoop()

	var tempDelay time.Duration
	for {
		select {
		case <-srv.exitChan:
			return errors.New("Server Closed")
		default:
		}
		conn, err := srv.listener.AcceptTCP()
		if err != nil {
			if n, ok := err.(net.Error); ok && n.Temporary() {
				if tempDelay == 0 {
					tempDelay = 5 * time.Millisecond
				} else {
					tempDelay *= 2
				}
				if max := 1 * time.Second; tempDelay > max {
					tempDelay = max
				}
				time.Sleep(tempDelay)
				continue
			}
			log.Println("listen error:", err.Error())
			return err
		}
		tempDelay = 0
		tcpConn, _ := srv.newTCPConn(conn, srv.callback, srv.protocol)
		tcpConn.setReadTimeOut(srv.readTimeOut)
		tcpConn.setWriteTimeOut(srv.writeTimeOut)
		srv.bucket.Put(tcpConn.GetRemoteAddr().String(), tcpConn)
	}
}

func (srv *TCPServer) newTCPConn(conn *net.TCPConn, callback CallBack, protocol Protocol) (*TCPConnection, error) {
	c := NewTCPConnection(conn, callback, protocol)
	e := c.Serve()
	return c, e
}

func (srv *TCPServer) Connect(ip string, callback CallBack, protocol Protocol) (*TCPConnection, error) {
	addr, err := net.ResolveTCPAddr("tcp", ip)
	if err != nil {
		return nil, err
	}
	conn, err := net.DialTCP("tcp", nil, addr)
	if err != nil {
		return nil, err
	}
	return srv.newTCPConn(conn, callback, protocol)
}

func (srv *TCPServer) Close() {
	defer func() {
		err := srv.listener.Close()
		if err != nil {
			log.Printf("err close listener: %s\n", err.Error())
		}
	}()
	for _, c := range srv.bucket.GetAll() {
		if !c.IsClosed() {
			c.Close(0)
		}
	}
}

func (srv *TCPServer) GetAllTCPConn() []*TCPConnection {
	var conns []*TCPConnection
	for _, conn := range srv.bucket.GetAll() {
		conns = append(conns, conn)
	}
	return conns
}

func (srv *TCPServer) GetTCPConn(key string) *TCPConnection {
	return srv.bucket.Get(key)
}

func (srv *TCPServer) SetReadTimeOut(t time.Duration) {
	srv.readTimeOut = t
}

func (srv *TCPServer) SetWriteTimeOut(t time.Duration) {
	srv.writeTimeOut = t
}

repository: diablur/tcp

repo_name: diablur/tcp


text:
@misc{alkema2014national_app,
  author = {Alkema, Leontine and Chao, Fengqing and You, Danzhen and Pedersen, Jon and Sawyer, Cheryl C},
  title = {Supplementary appendix: National, regional, and global sex ratios of infant, child, and under-5 mortality and identification of countries with outlying ratios: a systematic assessment},
  howpublished = {figshare},
  year = 2014,
  DOI = {10.6084/m9.figshare.12442175}
  note = {Available at: \url{https://doi.org/10.6084/m9.figshare.12442175}}
}

repository: pinwheelovefaye/academic-kickstart

repo_name: pinwheelovefaye/academic-kickstart


text:
package main

import (
	"fmt"
	"github.com/gofunct/goexec"
	"os"
)

func init() {

}

var (
	exe = goexec.NewCommand("cloudscript", "a scripting utility tool for cloud development", "0.1")
)

func main() {
	exe.Act("setup", "set gcloud project", func(cmd *goexec.Command) error {
		_ = cmd.Prompt("project", "what is the id of your gcloud project?")
		cmd.AddScript(`gcloud config set project {{ .project }}`)
		cmd.AddScript(`gcloud components update`)
		return cmd.Run()
	})
	exe.Act("install", "install cloudctl tool", func(cmd *goexec.Command) error {
		cmd.AddScript(`go mod vendor`)
		cmd.AddScript(`go generate {{ .pwd }}/...`)
		cmd.AddScript(`go fmt {{ .pwd }}/...`)
		cmd.AddScript(`go install {{ .gopath }}/src/{{ .target }}`)
		return cmd.Run()
	})
	exe.Act("rebuild", "rebuild this cloudscript tool", func(cmd *goexec.Command) error {
		cmd.AddScript(`go mod vendor`)
		cmd.AddScript(`go fmt {{ .pwd }}/...`)
		cmd.AddScript(`go install {{ .gopath }}/src/{{ .rebuild }}`)
		return cmd.Run()
	})
	exe.Act("token", "rebuild this cloudscript tool", func(cmd *goexec.Command) error {
		cmd.AddScript(`gcloud auth application-default print-access-token
`)
		return cmd.Run()
	})

	if err := exe.Execute(); err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	}
}

repository: gofunct/cloud

repo_name: gofunct/cloud


text:
/*
Copyright 2022 Codenotary Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

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

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

package sql

import (
	"context"
	"testing"

	"github.com/stretchr/testify/require"
)

func TestValuesRowReader(t *testing.T) {
	_, err := newValuesRowReader(nil, nil, nil, "", nil)
	require.ErrorIs(t, err, ErrIllegalArguments)

	cols := []ColDescriptor{
		{Column: "col1"},
	}

	_, err = newValuesRowReader(nil, nil, cols, "", nil)
	require.ErrorIs(t, err, ErrIllegalArguments)

	_, err = newValuesRowReader(nil, nil, cols, "", nil)
	require.ErrorIs(t, err, ErrIllegalArguments)

	_, err = newValuesRowReader(nil, nil, cols, "table1", nil)
	require.NoError(t, err)

	_, err = newValuesRowReader(nil, nil, cols, "table1",
		[][]ValueExp{
			{
				&Bool{val: true},
				&Bool{val: false},
			},
		})
	require.ErrorIs(t, err, ErrInvalidNumberOfValues)

	_, err = newValuesRowReader(nil, nil,
		[]ColDescriptor{
			{Table: "table1", Column: "col1"},
		}, "", nil)
	require.ErrorIs(t, err, ErrIllegalArguments)

	values := [][]ValueExp{
		{
			&Bool{val: true},
		},
	}

	params := map[string]interface{}{
		"param1": 1,
	}

	rowReader, err := newValuesRowReader(nil, params, cols, "table1", values)
	require.NoError(t, err)
	require.Nil(t, rowReader.OrderBy())
	require.Nil(t, rowReader.ScanSpecs())

	require.Equal(t, params, rowReader.Parameters())

	paramTypes := make(map[string]string)
	err = rowReader.InferParameters(context.Background(), paramTypes)
	require.NoError(t, err)

	require.NoError(t, rowReader.Close())
	require.ErrorIs(t, rowReader.Close(), ErrAlreadyClosed)
}

repository: codenotary/immudb

repo_name: codenotary/immudb

gha_language: Go


text:
@inproceedings{Hellendoorn:2017:DNN:3106237.3106290,
 author = {Hellendoorn, Vincent J. and Devanbu, Premkumar},
 title = {Are Deep Neural Networks the Best Choice for Modeling Source Code?},
 booktitle = {Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering},
 series = {ESEC/FSE 2017},
 year = {2017},
 isbn = {978-1-4503-5105-8},
 location = {Paderborn, Germany},
 pages = {763--773},
 numpages = {11},
 url = {http://doi.acm.org/10.1145/3106237.3106290},
 doi = {10.1145/3106237.3106290},
 acmid = {3106290},
 publisher = {ACM},
 address = {New York, NY, USA},
}

url: https://raw.githubusercontent.com/Hugh-Shi/DL-NLP-Readings/924e4d189e5660c5b5d4854278f3df755ae2231d/Bibtex/Are Deep Neural Networks the Best Choice for Modeling Source Code.bib

repository: Hugh-Shi/DL-NLP-Readings

repo_name: Hugh-Shi/DL-NLP-Readings


text:
package api

import (
	"go-xops/dto/response"

	"github.com/gin-gonic/gin"
)

// 检查服务器是否通畅
func Ping(c *gin.Context) {
	response.Success()
}

repository: celeyad/go-xops

repo_name: celeyad/go-xops


text:
@article{russo2014vmsbase,
 author = {Russo, Tommaso and D'Andrea, Lorenzo and Parisi, Antonio and Cataudella, Stefano},
 journal = {PloS one},
 number = {6},
 pages = {e100195},
 publisher = {Public Library of Science},
 title = {VMSbase: an R-package for VMS and logbook data management and analysis in fisheries ecology},
 volume = {9},
 year = {2014}
}

repository: d-lorenz/academic-kickstart

repo_name: d-lorenz/academic-kickstart


text:
package openal_test

import (
	"fmt"
	"io/ioutil"
	"time"

	openal "./"
)

func ExamplePlay() {
	device := openal.OpenDevice("")
	defer device.CloseDevice()

	context := device.CreateContext()
	defer context.Destroy()
	context.Activate()

	source := openal.NewSource()
	defer source.Pause()
	source.SetLooping(false)

	buffer := openal.NewBuffer()

	if err := openal.Err(); err != nil {
		fmt.Println(err)
		return
	}

	data, err := ioutil.ReadFile("data/welcome.wav")
	if err != nil {
		fmt.Println(err)
		return
	}

	buffer.SetData(openal.FormatMono16, data, 44100)

	source.SetBuffer(buffer)
	source.Play()
	for source.State() == openal.Playing {
		// loop long enough to let the wave file finish
		time.Sleep(time.Millisecond * 100)
	}
	source.Delete()
	fmt.Println("sound played")
	// Output: sound played
}

func ExampleMonitor() {
	const (
		frequency    = 44100
		format       = openal.FormatStereo16
		captureSize  = 512
		buffersCount = 10
	)
	mic := openal.CaptureOpenDevice("", frequency, format, frequency*2)
	mic.CaptureStart()
	defer mic.CloseDevice()

	device := openal.OpenDevice("")
	defer device.CloseDevice()

	context := device.CreateContext()
	context.Activate()
	defer context.Destroy()

	source := openal.NewSource()
	source.SetLooping(false)
	defer source.Stop()

	buffers := openal.NewBuffers(buffersCount)
	samples := make([]byte, captureSize*format.SampleSize())

	start := time.Now()
	for time.Since(start) < time.Second { // play for 1 second
		if err := openal.Err(); err != nil {
			fmt.Println("error:", err)
			return
		}
		// Get any free buffers
		if prcessed := source.BuffersProcessed(); prcessed > 0 {
			buffersNew := make(openal.Buffers, prcessed)
			source.UnqueueBuffers(buffersNew)
			buffers = append(buffers, buffersNew...)
		}
		if len(buffers) == 0 {
			continue
		}

		if mic.CapturedSamples() >= captureSize {
			mic.CaptureTo(samples)
			buffer := buffers[len(buffers)-1]
			buffers = buffers[:len(buffers)-1]
			buffer.SetData(format, samples, frequency)
			source.QueueBuffer(buffer)

			// If we have enough buffers, start playing
			if source.State() != openal.Playing {
				if source.BuffersQueued() > 2 {
					source.Play()
				}
			}
		}
	}
	fmt.Println(source.State())
	// Output: Playing
}

gha_language: C


text:
package providers

import (
	"github.com/prometheus/client_golang/prometheus"
	"sigs.k8s.io/controller-runtime/pkg/metrics"
)

const namespace = "konsumerator"
const subsystem = "prometheus_mp"

var (
	requestsTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace:   namespace,
			Subsystem:   subsystem,
			Name:        "requests_total",
			Help:        "Total number of Prometheus provider requests",
			ConstLabels: nil,
		},
		[]string{"consumer", "type"},
	)
	requestErrors = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace:   namespace,
			Subsystem:   subsystem,
			Name:        "requests_errors_total",
			Help:        "Total number of error requests to Prometheus provider",
			ConstLabels: nil,
		},
		[]string{"consumer", "type"},
	)
	requestDuration = prometheus.NewSummaryVec(
		prometheus.SummaryOpts{
			Namespace:  namespace,
			Subsystem:  subsystem,
			Name:       "request_duration_seconds",
			Help:       "Prometheus provider request duration",
			Objectives: map[float64]float64{0.5: 1e-1, 0.9: 1e-2, 0.99: 1e-3, 0.999: 1e-4, 1: 1e-5},
		},
		[]string{"consumer", "type"},
	)
	subRequestTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: namespace,
			Subsystem: subsystem,
			Name:      "sub_requests_total",
			Help:      "Total number of HTTP requests to Prometheus",
		},
		[]string{"consumer", "addr"},
	)
	subRequestErrors = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: namespace,
			Subsystem: subsystem,
			Name:      "sub_requests_errors_total",
			Help:      "Total number of HTTP request errors to Prometheus",
		},
		[]string{"consumer", "addr"},
	)
	subRequestDuration = prometheus.NewSummaryVec(
		prometheus.SummaryOpts{
			Namespace:  namespace,
			Subsystem:  subsystem,
			Name:       "sub_request_duration_seconds",
			Help:       "Prometheus HTTP request duration",
			Objectives: map[float64]float64{0.5: 1e-1, 0.9: 1e-2, 0.99: 1e-3, 0.999: 1e-4, 1: 1e-5},
		},
		[]string{"consumer", "addr"},
	)
	lagObserved = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Namespace: namespace,
			Subsystem: subsystem,
			Name:      "lag_observed_seconds",
			Help:      "Lag in seconds as seen by konsumerator (uses production rate and messages behind",
		},
		[]string{"consumer", "partition"},
	)
	samplesReceivedTotal = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Namespace: namespace,
			Subsystem: subsystem,
			Name:      "samples_received_total",
			Help:      "Number of timeseries samples received from the prometheus",
		},
		[]string{"consumer", "type"},
	)
	zeroValuesTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: namespace,
			Subsystem: subsystem,
			Name:      "zero_values_total",
			Help:      "Total number of estimation queries that returned 0 - NO DATA(metrics are missing, not even a cache)",
		},
		[]string{"consumer", "partition", "type"},
	)
)

func initMetrics() {
	metrics.Registry.MustRegister(requestsTotal, requestErrors, requestDuration,
		subRequestTotal, subRequestErrors, subRequestDuration, lagObserved,
		zeroValuesTotal, samplesReceivedTotal)
}

repository: lwolf/konsumerator

repo_name: lwolf/konsumerator


text:
@InProceedings{10.1007/978-3-642-70358-4_20,
author="de Haan, J.",
editor="K{\"u}nzel, Wolfgang",
title="Short- and Long-Term Variability in Fetal Heart Rate Pattern and Its Relation to Basal Heart Frequency",
booktitle="Fetal Heart Rate Monitoring",
year="1985",
publisher="Springer Berlin Heidelberg",
address="Berlin, Heidelberg",
pages="191--200",
abstract="Since the introduction of cardiotocography, variability within the fetal heart rate pattern has received attention. The significance of this phenomenon with respect to the assessment of fetal condition and later on with respect to the analysis of fetal activity states has been studied extensively (Hammacher et al. 1968, 1974). Detailed and/or quantitative analysis of this variability presents, however, a number of problems due to technical and scaling factors and definition problems (de Haan 1973a, b). This means that, especially in research concerning this parameter, its correct definition and quantification is necessary.",
isbn="978-3-642-70358-4"
}

@article{MLforCardio,
  title={Use of machine learning algorithms for prediction of fetal risk using cardiotocographic data},
  author={Hoodbhoy, Zahra and Noman, Mohammad and Shafique, Ayesha and Nasim, Ali and Chowdhury, Devyani and Hasan, Babar},
  journal={International Journal of Applied and Basic Medical Research},
  volume={9},
  number={4},
  pages={226},
  year={2019},
  publisher={Wolters Kluwer--Medknow Publications}
}

@article{Campos2000SisPorto2A,
  title={SisPorto 2.0: a program for automated analysis of cardiotocograms.},
  author={D Ayres-de Campos and Jo{\~a}o Bernardes and Anibal Garrido and J. P. MarquesDeSa and Lu{\'i}s Pereira‐Leite},
  journal={The Journal of maternal-fetal medicine},
  year={2000},
  volume={9 5},
  pages={
          311-8
        }
}

@misc{Campos:2000 ,
author = "Ayres-de-Campos Bernardes Garrido Marques-de-Sa Pereira-Leite",
year = "2000",
title = "{UCI} Machine Learning Repository",
url = "https://archive.ics.uci.edu/ml/datasets/cardiotocography",
institution = "Universidade do Porto, Portugal"
}

@book{Haykin1998,
author = {Haykin, Simon},
title = {Neural Networks: A Comprehensive Foundation},
year = {1998},
isbn = {0132733501},
publisher = {Prentice Hall PTR},
address = {USA},
edition = {2nd}
}

@misc{ManoharSMOTE,
author = "Manohar",
year =  "2012",
title = "SMOTE (Synthetic Minority Over-Sampling Technique)",
url = "https://www.mathworks.com/matlabcentral/fileexchange/38830-smote-synthetic-minority-over-sampling-technique",
note = {Online; Retrieved March 2, 2020}
}

@misc{NetParamInit,
author = "MathWorks",
year =  "2020",
title = "initnw (Nguyen-Widrow layer initialization function)",
url = "https://uk.mathworks.com/help/deeplearning/ref/initnw.html",
note = {Online; Retrieved March 23, 2020}
}

@misc{FeatureImportance,
author = "MathWorks",
year =  "2020",
title = "Rank features for classification using minimum redundancy maximum relevance (MRMR) algorithm",
url = "https://uk.mathworks.com/help/stats/fscmrmr.html",
note = {Online; Retrieved March 24, 2020}
}

@inproceedings{Golik2013CrossentropyVS,
  title={Cross-entropy vs. squared error training: a theoretical and experimental comparison},
  author={Pavel Golik and Patrick Doetsch and Hermann Ney},
  booktitle={INTERSPEECH},
  year={2013}
}

@book{hastie2009elements,
  title={The elements of statistical learning: data mining, inference, and prediction},
  author={Hastie, Trevor and Tibshirani, Robert and Friedman, Jerome},
  year={2009},
  publisher={Springer Science \& Business Media}
}

@article{CGATrain,
  author={C. {Charalambous}},
  journal={IEE Proceedings G - Circuits, Devices and Systems},
  title={Conjugate gradient algorithm for efficient training of artificial neural networks},
  year={1992},
  volume={139},
  number={3},
  pages={301-310}
  }

@article{doi:10.1002/uog.3933,
author = {Sheiner, E. and Hackmon, R. and Shoham-Vardi, I. and Pombar, X. and Hussey, M. J. and Strassner, H. T. and Abramowicz, J. S.},
title = {A comparison between acoustic output indices in 2D and 3D/4D ultrasound in obstetrics},
journal = {Ultrasound in Obstetrics \& Gynecology},
volume = {29},
number = {3},
pages = {326-328},
keywords = {3D ultrasound, 4D ultrasound, acoustic output, mechanical index, safety, thermal index},
doi = {10.1002/uog.3933},
year = {2007}
}


text: @inproceedings{LopesINForum2018,	author = {B. L. Lopes and A. Pedroso and J. Correia and F. Araujo and J. Cardoso and R. P. Paiva},	booktitle = {10º Simposio de Informatica (INForum)},	date-added = {2018-12-15 09:39:22 +0000},	date-modified = {2018-12-15 10:07:06 +0000},	title = {DataScience4NP - A Data Science Service for Non-Programmers},	webpdf = {/Papers/CP-2018-087-DataScience4NP-A-Data-Science-Service-for-Non-Programmers.pdf},	year = {2018}}


text:
% use `texdoc biblatex` to get help
@inproceedings{dauphin2014identifying,
  title={Identifying and attacking the saddle point problem in high-dimensional non-convex optimization},
  author={Dauphin, Yann N and Pascanu, Razvan and Gulcehre, Caglar and Cho, Kyunghyun and Ganguli, Surya and Bengio, Yoshua},
  booktitle={Advances in neural information processing systems},
  pages={2933--2941},
  year={2014}
}

@article{bertsekas1997nonlinear,
  title={Nonlinear programming},
  author={Bertsekas, Dimitri P},
  journal={Journal of the Operational Research Society},
  volume={48},
  number={3},
  pages={334--334},
  year={1997},
  publisher={Taylor \& Francis}
}

@article{sun2019optimization,
  title={Optimization for deep learning: theory and algorithms},
  author={Sun, Ruoyu},
  journal={arXiv preprint arXiv:1912.08957},
  year={2019}
}

@article{shamir2018exponential,
  title={Exponential convergence time of gradient descent for one-dimensional deep linear neural networks},
  author={Shamir, Ohad},
  journal={arXiv preprint arXiv:1809.08587},
  year={2018}
}

@article{bray2007statistics,
  title={Statistics of critical points of Gaussian fields on large-dimensional spaces},
  author={Bray, Alan J and Dean, David S},
  journal={Physical review letters},
  volume={98},
  number={15},
  pages={150201},
  year={2007},
  publisher={APS}
}

@article{mishkin2015all,
  title={All you need is a good init},
  author={Mishkin, Dmytro and Matas, Jiri},
  journal={arXiv preprint arXiv:1511.06422},
  year={2015}
}

@article{romero2014fitnets,
  title={Fitnets: Hints for thin deep nets},
  author={Romero, Adriana and Ballas, Nicolas and Kahou, Samira Ebrahimi and Chassang, Antoine and Gatta, Carlo and Bengio, Yoshua},
  journal={arXiv preprint arXiv:1412.6550},
  year={2014}
}

@inproceedings{glorot2010understanding,
  title={Understanding the difficulty of training deep feedforward neural networks},
  author={Glorot, Xavier and Bengio, Yoshua},
  booktitle={Proceedings of the thirteenth international conference on artificial intelligence and statistics},
  pages={249--256},
  year={2010}
}

@inproceedings{jia2014caffe,
  title={Caffe: Convolutional architecture for fast feature embedding},
  author={Jia, Yangqing and Shelhamer, Evan and Donahue, Jeff and Karayev, Sergey and Long, Jonathan and Girshick, Ross and Guadarrama, Sergio and Darrell, Trevor},
  booktitle={Proceedings of the 22nd ACM international conference on Multimedia},
  pages={675--678},
  year={2014}
}

@inproceedings{he2015delving,
  title={Delving deep into rectifiers: Surpassing human-level performance on imagenet classification},
  author={He, Kaiming and Zhang, Xiangyu and Ren, Shaoqing and Sun, Jian},
  booktitle={Proceedings of the IEEE international conference on computer vision},
  pages={1026--1034},
  year={2015}
}

@article{saxe2013exact,
  title={Exact solutions to the nonlinear dynamics of learning in deep linear neural networks},
  author={Saxe, Andrew M and McClelland, James L and Ganguli, Surya},
  journal={arXiv preprint arXiv:1312.6120},
  year={2013}
}

@article{qian1999momentum,
  title={On the momentum term in gradient descent learning algorithms},
  author={Qian, Ning},
  journal={Neural networks},
  volume={12},
  number={1},
  pages={145--151},
  year={1999},
  publisher={Elsevier}
}

@article{burden2010numerical,
  title={Numerical analysis},
  author={Burden, Richard L and Faires, Douglas J},
  year={2010},
  publisher={Richard Stratton}
}

@inproceedings{nesterov1983method,
  title={A method for unconstrained convex minimization problem with the rate of convergence O (1/k\^{} 2)},
  author={Nesterov, Yurii},
  booktitle={Doklady an ussr},
  volume={269},
  pages={543--547},
  year={1983}
}

@book{sutskever2013training,
  title={Training recurrent neural networks},
  author={Sutskever, Ilya},
  year={2013},
  publisher={University of Toronto Toronto, Ontario, Canada}
}

@Misc{momentum,
howpublished = {\url{https://www.willamette.edu/~gorr/classes/cs449/momrate.html}},
note = {Accessed Feburary 20, 2020},
title = {Momentum and Learning Rate Adaptation},
author = {Genevieve B. Orr}
}

@Misc{rmsprop,
howpublished = {\url{http://www.cs.toronto.edu/~tijmen/csc321/slides/lecture_slides_lec6.pdf}},
note = {Accessed Feburary 21, 2020},
title = {Overview of Mini-batch Gradient Descent},
author = {Geoff Hinton}
}

@article{duchi2011adaptive,
  title={Adaptive subgradient methods for online learning and stochastic optimization},
  author={Duchi, John and Hazan, Elad and Singer, Yoram},
  journal={Journal of machine learning research},
  volume={12},
  number={Jul},
  pages={2121--2159},
  year={2011}
}

@article{zeiler2012adadelta,
  title={Adadelta: an adaptive learning rate method},
  author={Zeiler, Matthew D},
  journal={arXiv preprint arXiv:1212.5701},
  year={2012}
}

@article{kingma2014adam,
  title={Adam: A method for stochastic optimization},
  author={Kingma, Diederik P and Ba, Jimmy},
  journal={arXiv preprint arXiv:1412.6980},
  year={2014}
}

@article{dozat2016incorporating,
  title={Incorporating nesterov momentum into adam},
  author={Dozat, Timothy},
  year={2016}
}

@techreport{poggio2016theory,
  title={Theory i: Why and when can deep networks avoid the curse of dimensionality?},
  author={Poggio, Tomaso and Mhaskar, Hrushikesh and Rosasco, Lorenzo and Miranda, Brando and Liao, Qianli},
  year={2016},
  institution={Center for Brains, Minds and Machines (CBMM), arXiv}
}

@phdthesis{poggio2017theory,
  title={Theory II: Landscape of the empirical risk in deep learning},
  author={Poggio, Tomaso and Liao, Qianli},
  year={2017},
  school={Center for Brains, Minds and Machines (CBMM), arXiv}
}

@article{banburski2019theory,
  title={Theory III: Dynamics and generalization in deep networks},
  author={Banburski, Andrzej and Liao, Qianli and Miranda, Brando and Rosasco, Lorenzo and Liang, Bob and Hidary, Jack and Poggio, Tomaso},
  journal={arXiv preprint arXiv:1903.04991},
  year={2019}
}

@article{mhaskar1996neural,
  title={Neural networks for optimal approximation of smooth and analytic functions},
  author={Mhaskar, Hrushikesh N},
  journal={Neural computation},
  volume={8},
  number={1},
  pages={164--177},
  year={1996},
  publisher={MIT Press}
}

@Misc{bezout,
howpublished = {\url{http://math.mit.edu/~lguth/PolyMethod/lect13.pdf}},
note = {Accessed Feburary 22, 2020},
title = {Bezout Theorem},
author = {MIT}
}

@Misc{hyperbolic,
howpublished = {\url{https://wikivisually.com/wiki/Hyperbolic_equilibrium_point}},
note = {Accessed Feburary 23, 2020},
title = {Hyperbolic Equilibrium Point},
author = {Wikipedia}
}

@Misc{mnist,
howpublished = {\url{http://yann.lecun.com/exdb/mnist/}},
note = {Accessed Feburary 28, 2020},
title = {THE MNIST DATABASE of handwritten digits},
author = {Yann LeCun}
}

repository: xuebashuoge/Neural-Network-Overview

repo_name: xuebashuoge/Neural-Network-Overview


text:
## This is an automatically-generated file.
## It could get re-generated if the ALLOW_IDL_GENERATION flag is on

set(headers include/BTCmd.h)
set(sources src/BTCmd.cpp)

repository: tonaaskarwur/YARP-Behavior-Trees

repo_name: tonaaskarwur/YARP-Behavior-Trees

extension: cmake


text:
SUMMARY = "A minimal Elixir application with Erlang NIF written in C"
SECTION = "examples"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4072a65404e353b02008ca87f23e6002"

S = "${WORKDIR}/${BPN}"

SRCREV = "0b925bb4ab0013b2341068effcf8af5fa1d5d979"
PV = "0.1.0-git${SRCPV}"
SRC_URI = "git://github.com/meta-erlang/hello-world;branch=master;subpath=${BPN};protocol=https"

inherit mix

repository: adrians/meta-erlang

repo_name: adrians/meta-erlang

extension: bb


text:
package layouts

import (
	"errors"
	"fmt"

	"github.com/jameycribbs/cribbnotes_cui/config"
	"github.com/jroimartin/gocui"
)

func keybindingsLayout(g *gocui.Gui) error {
	var err error
	var maxX, maxY int
	var v *gocui.View

	maxX, maxY = g.Size()

	if v, err = g.SetView("help", maxX-34, 2, maxX, maxY-25); err != nil {
		if err != gocui.ErrUnknownView {
			return errors.New("(keybindingsLayout) error setting view: " + err.Error())
		}

		v.Title = "[ Keybindings ]"

		if config.VimMode {
			fmt.Fprintln(v, "[j/k]           - scroll line")
			fmt.Fprintln(v, "[Ctrl+f/Ctrl+b] - scroll page")
			fmt.Fprintln(v, "[Ctrl+j/Ctrl+k] - switch views")
			fmt.Fprintln(v, "[i]             - Insert mode")
			fmt.Fprintln(v, "[Esc]           - Command mode")
			fmt.Fprintln(v, "[:]             - Ex mode")
			fmt.Fprintln(v, "[x]             - Delete Char")
			fmt.Fprintln(v, "[F3]            - find notes")
			fmt.Fprintln(v, "[F4]            - clear filter")
			fmt.Fprintln(v, "[Ctrl+i]        - new note")
			fmt.Fprintln(v, "[Ctrl+d]        - delete note")
			fmt.Fprintln(v, "[Ctrl+t]        - edit title")
		} else {
			fmt.Fprintln(v, "[Down/Up]       - scroll line")
			fmt.Fprintln(v, "[PgDown/PgUp]   - scroll page")
			fmt.Fprintln(v, "[F3]            - find notes")
			fmt.Fprintln(v, "[F4]            - clear filter")
			fmt.Fprintln(v, "[F6]            - switch views")
			fmt.Fprintln(v, "[Ctrl+n]        - new note")
			fmt.Fprintln(v, "[Ctrl+s]        - save note")
			fmt.Fprintln(v, "[Ctrl+d]        - delete note")
			fmt.Fprintln(v, "[Ctrl+t]        - edit title")
			fmt.Fprintln(v, "[Ctrl+q]        - quit")
		}
	}

	return nil
}

license: ISC,MIT

detected_licenses: ISC MIT


text:
@article{PhysRevA.73.011602,
 author = {Lamacraft, A.},
 bdsk-url-1 = {https://link.aps.org/doi/10.1103/PhysRevA.73.011602},
 bdsk-url-2 = {https://doi.org/10.1103/PhysRevA.73.011602},
 date-added = {2019-11-02 22:05:55 +0000},
 date-modified = {2019-11-02 22:05:55 +0000},
 doi = {10.1103/PhysRevA.73.011602},
 issue = {1},
 journal = {Phys. Rev. A},
 month = {Jan},
 numpages = {4},
 pages = {011602},
 publisher = {American Physical Society},
 title = {Particle correlations in a Fermi superfluid},
 url = {https://link.aps.org/doi/10.1103/PhysRevA.73.011602},
 volume = {73},
 year = {2006}
}

repository: AustenLamacraft/dooftown

repo_name: AustenLamacraft/dooftown


text:
---
---

@inproceedings{redan,
  abbr={NSDI},
  title={{RDMA is Turing complete, we just did not know it yet!}},
  author={Reda, Waleed and Canini, Marco and Kosti{\'c}, Dejan and Peter, Simon},
  booktitle={19th USENIX Symposium on Networked Systems Design and Implementation (NSDI)},
  year={2022},
  abstract={It is becoming increasingly popular for distributed systems to exploit offload to reduce load on the CPU. Remote Direct Memory Access (RDMA) offload, in particular, has become popular. However, RDMA still requires CPU intervention for complex offloads that go beyond simple remote memory access. As such, the offload potential is limited and RDMA-based systems usually have to work around such limitations. We present RedN, a principled, practical approach to implementing complex RDMA offloads, without requiring any hardware modifications. Using self-modifying RDMA chains, we lift the existing RDMA verbs interface to a Turing complete set of programming abstractions. We explore what is possible in terms of offload complexity and performance with a commodity RDMA NIC. We show how to integrate these RDMA chains into applications, such as the Memcached key-value store, allowing us to offload complex tasks such as key lookups. RedN can reduce the latency of key-value get operations by up to 2.6× compared to state-of-the-art KV designs that use one-sided RDMA primitives (e.g., FaRM-KV), as well as traditional RPC-over-RDMA approaches. Moreover, compared to these baselines, RedN provides performance isolation and, in the presence of contention, can reduce latency by up to 35× while providing applications with failure resiliency to OS and process crashes.},
  pdf={redn-nsdi22.pdf},
  code={https://redn.io},
  selected={true}
}

@inproceedings{kim2021linefs,
  abbr={SOSP},
  title={LineFS: Efficient SmartNIC Offload of a Distributed File System with Pipeline Parallelism},
  author={Kim, Jongyul and Jang, Insu and Reda, Waleed and Im, Jaeseong and Canini, Marco and Kosti{\'c}, Dejan and Kwon, Youngjin and Peter, Simon and Witchel, Emmett},
  booktitle={Proceedings of the ACM SIGOPS 28th Symposium on Operating Systems Principles (SOSP)},
  year={2021},
  pages={756--771},
  organization={ACM},
  abstract={In multi-tenant systems, the CPU overhead of distributed file systems (DFSes) is increasingly a burden to application performance. CPU and memory interference cause degraded and unstable application and storage performance, in particular for operation latency. Recent client-local DFSes for persistent memory (PM) accelerate this trend. DFS offload to SmartNICs is a promising solution to these problems, but it is challenging to fit the complex demands of a DFS onto simple SmartNIC processors located across PCIe. We present LineFS, a SmartNIC-offloaded, high-performance DFS with support for client-local PM. To fully leverage the SmartNIC architecture, we decompose DFS operations into execution stages that can be offloaded to a parallel datapath execution pipeline on the SmartNIC. LineFS offloads CPU-intensive DFS tasks, like replication, compression, data publication, index and consistency management to a Smart-NIC. We implement LineFS on the Mellanox BlueField Smart-NIC and compare it to Assise, a state-of-the-art PM DFS. LineFS improves latency in LevelDB up to 80% and throughput in Filebench up to 79%, while providing extended DFS availability during host system failures.},
  pdf={linefs-sosp21.pdf},
  code={https://github.com/casys-kaist/LineFS},
  award={Best Paper},
  selected={true}
}

@inproceedings{assise,
  abbr={OSDI},
  title={{Assise: Performance and Availability via Client-local NVM in a Distributed File System}},
  author={Anderson, Thomas E and Canini, Marco and Kim, Jongyul and Kosti{\'c}, Dejan and Kwon, Youngjin and Peter, Simon and Reda, Waleed* and Schuh, Henry N and Witchel, Emmett},
  booktitle={14th USENIX Symposium on Operating Systems Design and Implementation (OSDI)},
  pages={1011--1027},
  year={2020},
  doi={10.5555/3488766.3488823},
  abstract={The adoption of low latency persistent memory modules (PMMs) upends the long-established model of remote storage for distributed file systems. Instead, by colocating computation with PMM storage, we can provide applications with much higher IO performance, sub-second application failover, and strong consistency. To demonstrate this, we built the Assise distributed file system, based on a persistent, replicated coherence protocol that manages client-local PMM as a linearizable and crash-recoverable cache between applications and slower (and possibly remote) storage. Assise maximizes locality for all file IO by carrying out IO on process-local, socket-local, and client-local PMM whenever possible. Assise minimizes coherence overhead by maintaining consistency at IO operation granularity, rather than at fixed block sizes.
We compare Assise to Ceph/BlueStore, NFS, and Octopus on a cluster with Intel Optane DC PMMs and SSDs for common cloud applications and benchmarks, such as LevelDB, Postfix, and FileBench. We find that Assise improves write latency up to 22x, throughput up to 56x, fail-over time up to 103x, and scales up to 6x better than its counterparts, while providing stronger consistency semantics.},
  pdf = {assise-osdi20.pdf},
  code = {https://github.com/ut-osa/assise},
  addendum={* Lead student author},
  selected={true}
}

@article{rambler,
  abbr={SIGCOMM},
  title={{Path Persistence in the Cloud: A Study of the Effects of Inter-Region Traffic Engineering in a Large Cloud Provider's Network}},
  author={Reda, Waleed and Bogdanov, Kirill and Milolidakis, Alexandros and Ghasemirahni, Hamid and Chiesa, Marco and Maguire Jr, Gerald Q and Kosti{\'c}, Dejan},
  journal={ACM SIGCOMM Computer Communication Review},
  year={2020},
  publisher={ACM New York, NY, USA},
  pages = {11–23},
  doi = {10.1145/3402413.3402416},
  abstract = {A commonly held belief is that traffic engineering and routing changes are infrequent. However, based on our measurements over a number of years of traffic between data centers in one of the largest cloud provider's networks, we found that it is common for flows to change paths at ten-second intervals or even faster. These frequent path and, consequently, latency variations can negatively impact the performance of cloud applications, specifically, latency-sensitive and geo-distributed applications. Our recent measurements and analysis focused on observing path changes and latency variations between different Amazon aws regions. To this end, we devised a path change detector that we validated using both ad hoc experiments and feedback from cloud networking experts. The results provide three main insights: (1) Traffic Engineering (TE) frequently moves (TCP and UDP) flows among network paths of different latency, (2) Flows experience unfair performance, where a subset of flows between two machines can suffer large latency penalties (up to 32% at the 95th percentile) or excessive number of latency changes, and (3) Tenants may have incentives to selfishly move traffic to low latency classes (to boost the performance of their applications). We showcase this third insight with an example using rsync synchronization. To the best of our knowledge, this is the first paper to reveal the high frequency of TE activity within a large cloud provider's network. Based on these observations, we expect our paper to spur discussions and future research on how cloud providers and their tenants can ultimately reconcile their independent and possibly conflicting objectives. Our data is publicly available for reproducibility and further analysis at http://goo.gl/25BKte.},
  pdf = {rambler-ccr20.pdf},
  selected={true}
}

@inproceedings{bogdanov2018fast,
  abbr={SOCC},
  title={Fast and accurate load balancing for geo-distributed storage systems},
  author={Bogdanov, Kirill L and Reda, Waleed and Maguire Jr, Gerald Q and Kosti{\'c}, Dejan and Canini, Marco},
  booktitle={Proceedings of the ACM Symposium on Cloud Computing},
  pages={386--400},
  abstract={The increasing density of globally distributed datacenters reduces the network latency between neighboring datacenters and allows replicated services deployed across neighboring locations to share workload when necessary, without violating strict Service Level Objectives (SLOs). We present Kurma, a practical implementation of a fast and accurate load balancer for geo-distributed storage systems. At run-time, Kurma integrates network latency and service time distributions to accurately estimate the rate of SLO violations for requests redirected across geo-distributed datacenters. Using these estimates, Kurma solves a decentralized rate-based performance model enabling fast load balancing (in the order of seconds) while taming global SLO violations. We integrate Kurma with Cassandra, a popular storage system. Using real-world traces along with a geo-distributed deployment across Amazon EC2, we demonstrate Kurma's ability to effectively share load among datacenters while reducing SLO violations by up to a factor of 3 in high load settings or reducing the cost of running the service by up to 17%.},
  pdf={kurma-socc18.pdf},
  year={2018}
}

@inproceedings{rein,
  abbr={EuroSys},
  title={{Rein: Taming Tail Latency in Key-Value Stores via Multiget Scheduling}},
  author={Reda, Waleed and Canini, Marco and Suresh, Lalith and Kosti{\'c}, Dejan and Braithwaite, Sean},
  booktitle={Twelfth European Conference on Computer Systems (EuroSys)},
  year={2017},
  organization={ACM},
  doi = {10.1145/3064176.3064209},
  pages = {95–110},
  abstract = {We tackle the problem of reducing tail latencies in distributed key-value stores, such as the popular Cassandra database. We focus on workloads of multiget requests, which batch together access to several data elements and parallelize read operations across the data store machines. We first analyze a production trace of a real system and quantify the skew due to multiget sizes, key popularity, and other factors. We then proceed to identify opportunities for reduction of tail latencies by recognizing the composition of aggregate requests and by carefully scheduling bottleneck operations that can otherwise create excessive queues. We design and implement a system called Rein, which reduces latency via inter-multiget scheduling using low overhead techniques. We extensively evaluate Rein via experiments in Amazon Web Services (AWS) and simulations. Our scheduling algorithms reduce the median, 95th, and 99th percentile latencies by factors of 1.5, 1.5, and 1.9, respectively.},
  pdf={rein-eurosys17.pdf}
}


text:
package ethkms

import (
	"context"
	"encoding/base64"
	"testing"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/kms"
	"github.com/ethereum/go-ethereum/crypto"
	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"
)

const testKeyID = "88c8e79f-262f-4893-a02f-5ecfdbee65a3"
const testKeyPubBase64 = "BD6zglZaze8Q61HsI8+QbxcRwTKmlfW3hSFvbCUJYg2tHShw3wxyLG4nVuVwDVX1ZN38C0lVI/vA/y0yS40ERds="

var testKeyPub []byte

func init() {
	pub, err := base64.StdEncoding.DecodeString(testKeyPubBase64)
	if err != nil {
		panic(err)
	}
	testKeyPub = pub
}

func TestGetPublicKey(t *testing.T) {
	ctx, cancel := context.WithCancel(context.Background())
	defer cancel()
	awsSession := session.Must(session.NewSession())
	kmsClient := kms.New(awsSession)

	signer := NewSignerFromID(kmsClient, testKeyID)
	pubKey, err := signer.PublicKey(ctx)
	require.Nil(t, err)
	assert.Equal(t, crypto.FromECDSAPub(pubKey), testKeyPub)
}

func TestCreateKey(t *testing.T) {
	ctx, cancel := context.WithCancel(context.Background())
	defer cancel()

	awsSession := session.Must(session.NewSession())
	kmsClient := kms.New(awsSession)

	s, err := CreateKey(ctx, kmsClient)
	require.Nil(t, err)
	require.NotNil(t, s.KeyID)

	_, err = kmsClient.ScheduleKeyDeletionWithContext(ctx, &kms.ScheduleKeyDeletionInput{
		KeyId:               &s.KeyID,
		PendingWindowInDays: aws.Int64(7),
	})
	require.Nil(t, err)
}

func TestSign(t *testing.T) {
	ctx, cancel := context.WithCancel(context.Background())
	defer cancel()

	awsSession := session.Must(session.NewSession())
	kmsClient := kms.New(awsSession)
	s := NewSignerFromID(kmsClient, testKeyID)
	digest := crypto.Keccak256([]byte("test"))

	sig, err := s.Sign(ctx, digest)
	require.Nil(t, err)
	assert.Len(t, sig, 65)

	recovered, err := crypto.Ecrecover(digest, sig)
	require.Nil(t, err)
	assert.Equal(t, testKeyPub, recovered)
}

repository: quorumcontrol/eth-kms

repo_name: quorumcontrol/eth-kms


text:
/*=============================================================
 Authour URI: www.binarycart.com
 Version: 1.1
 License: MIT

 http://opensource.org/licenses/MIT

 100% To use For Personal And Commercial Use.

 ========================================================  */

/*(function($) {
	"use strict";*/
	// AJAX function to save user checkpoints ///

	$(document).ready(function() {

		$(".accordion").accordion({
			collapsible : true,
			active : false,
			heightStyle : "content"
		});

		$(".flightplan_checkpoints_mobile").on('change', function(e) {
			//console.log("Perfectly clicked", changeCheckbox.checked);
			var curr = this;
			var checked = curr.checked;

			if (checked != true) {
				$.ajax({
					url : '/gefp/api/plan/saveStudentCheckpoint.html',
					data : {
						message : "",
						userId : $(curr).attr("data-userId"),
						accessKey : $("#accessKey").val(),
						id : $(curr).val(),
						checked : checked
					},
					type : 'POST',
					success : function(response) {
						// console.log(response);
						/*
						 * $("#successMessage").show(); setTimeout(function(){
						 * $(curr).parent().find(".CommentIcon").remove();
						 * $("#successMessage").hide(); },3000);
						 */
					}
				});
			} else {

				$.ajax({
					url : '/gefp/api/plan/saveStudentCheckpoint.html',
					data : {
						message : "",
						userId : $(curr).attr("data-userId"),
						accessKey : $("#accessKey").val(),
						id : $(curr).val(),
						checked : checked
					},
					type : 'POST',
					success : function(response) {
						// console.log(response);
						/*
						 * $("#successMessage").show(); setTimeout(function(){
						 * $("#successMessage").hide(); },3000);
						 */
					}
				});
			}

			// console.log("Checkpoint ID is : " + $(this).val() + " state is "
			// + this.checked );
		});
	});

/*}(jQuery));*/

repository: cysun/gefp

repo_name: cysun/gefp

extension: js


text:
@article{tnsm-SantosCGB2011,
 author = {Santos, Flavio Roberto and da Costa Cordeiro, Weverton Luis and Gaspary, Luciano Paschoal and Barcellos, Marinho P},
 doi = {10.1109/TNSM.2011.110311.110104},
 file = {:Users/mbarcell/Google Drive (mbarcell@waikato.ac.nz)/Work/Research/MendeleyPaperBase/Santos et al/IEEE TNSM_2011_Santos et al.pdf:pdf},
 journal = {IEEE TNSM},
 number = {4},
 pages = {310--321},
 title = {Funnel: Choking Polluters in BitTorrent File Sharing Communities},
 url = {https://doi.org/10.1109/TNSM.2011.110311.110104},
 volume = {8},
 year = {2011}
}

repository: marinho-barcellos/academic-kickstart

repo_name: marinho-barcellos/academic-kickstart


text:
DESCRIPTION = "Grafik files for openttd"
HOMEPAGE = "http://bundles.openttdcoop.org/opengfx/"
LICENSE = "GPLv2"

PACKAGE_ARCH = "all"

SRC_URI = "http://bundles.openttdcoop.org/download.php?file=opengfx%2Freleases%2Fopengfx-${PV}.zip"

do_install() {
	mv ${WORKDIR}/docs/license.txt ${WORKDIR}/gfx_license.txt
	install -d ${D}${datadir}/games/openttd/data/
	install -m 0644 ${WORKDIR}/opengfx-${PV}.tar ${D}${datadir}/games/openttd/data/
	install -m 0644 ${WORKDIR}/gfx_license.txt ${D}${datadir}/games/openttd/data/
}

FILES_${PN} = "${datadir}"

SRC_URI[md5sum] = "1f959407f2d4a1ab0e84c2e89438c922"
SRC_URI[sha256sum] = "c0eefb2dda166f91e1bfb317cf681165029f6f2709fa966d84dc568ffef6a31e"

repository: overo/overo-oe-natty

repo_name: overo/overo-oe-natty

branch_name: HEAD


text:
package api

import (
	"sync"
)

func NewUsageTracker() *UsageTracker {
	return &UsageTracker{
		usages: make(map[string]*Usage),
	}
}

type UsageTracker struct {
	usages map[string]*Usage
	sync.Mutex
}

func (u *UsageTracker) TrackUploads(id string) (bytes, requests chan int64) {
	u.Lock()
	defer u.Unlock()
	if _, ok := u.usages[id]; !ok {
		u.usages[id] = &Usage{
			UploadBytesChan:      make(chan int64),
			DownloadBytesChan:    make(chan int64),
			UploadRequestsChan:   make(chan int64),
			DownloadRequestsChan: make(chan int64),
		}
	}
	return u.usages[id].UploadBytesChan, u.usages[id].UploadRequestsChan
}

func (u *UsageTracker) TrackDownloads(id string) (bytes, requests chan int64) {
	u.Lock()
	defer u.Unlock()
	if _, ok := u.usages[id]; !ok {
		u.usages[id] = &Usage{
			UploadBytesChan:      make(chan int64),
			DownloadBytesChan:    make(chan int64),
			UploadRequestsChan:   make(chan int64),
			DownloadRequestsChan: make(chan int64),
		}
	}
	return u.usages[id].DownloadBytesChan, u.usages[id].DownloadRequestsChan
}

type Usage struct {
	UploadedBytes        int64
	UploadBytesChan      chan int64
	DownloadedBytes      int64
	DownloadBytesChan    chan int64
	UploadRequests       int64
	UploadRequestsChan   chan int64
	DownloadRequests     int64
	DownloadRequestsChan chan int64
}

func (u *Usage) collect() {
	for {
		select {
		case b, ok := <-u.UploadBytesChan:
			if !ok {
				u.UploadBytesChan = nil
			}
			u.UploadedBytes += b
		case r, ok := <-u.UploadRequestsChan:
			if !ok {
				u.UploadRequestsChan = nil
			}
			u.UploadRequests += r
		case b, ok := <-u.DownloadBytesChan:
			if !ok {
				u.DownloadBytesChan = nil
			}
			u.DownloadedBytes += b
		case r, ok := <-u.DownloadRequestsChan:
			if !ok {
				u.DownloadRequestsChan = nil
			}
			u.DownloadRequests += r
		}
		if u.UploadBytesChan == nil && u.UploadRequestsChan == nil && u.DownloadBytesChan == nil && u.DownloadRequestsChan == nil {
			break
		}
	}
}

repository: secondbit/gifs-api

repo_name: secondbit/gifs-api


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

package surefilexml

import (
	"github.com/pkg/errors"
	"github.com/sirupsen/logrus"

	"github.com/erda-project/erda-proto-go/dop/qa/unittest/pb"
	"github.com/erda-project/erda/pkg/cloudstorage"
	"github.com/erda-project/erda/pkg/qaparser"
	"github.com/erda-project/erda/pkg/qaparser/types"
)

type DefaultParser struct {
}

// parse xml to entity
// 1. get file from cloud storage
// 2. parse
func init() {
	logrus.Info("register Default Parser to manager")
	(DefaultParser{}).Register()
}

func (d DefaultParser) Register() {
	qaparser.Register(d, types.Default, types.JUnit)
}

func (DefaultParser) Parse(endpoint, ak, sk, bucket, objectName string) ([]*pb.TestSuite, error) {
	client, err := cloudstorage.New(endpoint, ak, sk)
	if err != nil {
		return nil, errors.Wrap(err, "get cloud storage client")
	}

	byteArray, err := client.DownloadFile(bucket, objectName)
	if err != nil {
		return nil, errors.Wrapf(err, "download filename=%s", objectName)
	}

	var suites []*pb.TestSuite
	if suites, err = Ingest(byteArray); err != nil {
		return nil, err
	}

	return suites, nil
}

repository: erda-project/erda

repo_name: erda-project/erda


text:
package views

import (
	"fmt"
	"net/http"

	"github.com/mozillazg/comic/models"
)

func AtomView(w http.ResponseWriter, r *http.Request) {
	db, err := models.NewConnect(dbPath)
	defer db.Close()

	c, err := models.AllComic(db, "")
	if err != nil {
		fmt.Printf("%p", err)
		http.Error(w, http.StatusText(404), 404)
		return
	}
	type data struct {
		Comics     []*models.Comic
		LastUpdate string
	}
	renderTemplate(w, data{c, c[0].Date}, "atom.html", "template/atom.xml")
}

repository: wangjun/comic

repo_name: wangjun/comic


text:
@article{staras1972accuracy,
	title={The accuracy of vehicle location by trilateration in a dense urban environment},
	author={Staras, Harold and Honickman, SN},
	journal={IEEE Transactions on Vehicular Technology},
	volume={21},
	number={1},
	pages={38--43},
	year={1972},
	publisher={IEEE}
}

@article{hochreiter1997long,
	title={Long short-term memory},
	author={Hochreiter, Sepp and Schmidhuber, J{\"u}rgen},
	journal={Neural computation},
	volume={9},
	number={8},
	pages={1735--1780},
	year={1997},
	publisher={MIT Press}
}

@article{cho2014learning,
	title={Learning phrase representations using RNN encoder-decoder for statistical machine translation},
	author={Cho, Kyunghyun and Van Merri{\"e}nboer, Bart and Gulcehre, Caglar and Bahdanau, Dzmitry and Bougares, Fethi and Schwenk, Holger and Bengio, Yoshua},
	journal={arXiv preprint arXiv:1406.1078},
	year={2014}
}

@inproceedings{sak2014long,
	title={Long short-term memory recurrent neural network architectures for large scale acoustic modeling},
	author={Sak, Ha{\c{s}}im and Senior, Andrew and Beaufays, Fran{\c{c}}oise},
	booktitle={Fifteenth annual conference of the international speech communication association},
	year={2014}
}

@article{schuster1997bidirectional,
	title={Bidirectional recurrent neural networks},
	author={Schuster, Mike and Paliwal, Kuldip K},
	journal={IEEE Transactions on Signal Processing},
	volume={45},
	number={11},
	pages={2673--2681},
	year={1997},
	publisher={IEEE}
}