text:
and Aquatic Sciences},
	author = {Hsieh, Chih-hao and Reiss, Christian S. and Hewitt, Roger P. and Sugihara, George},
	year = {2008},
	pages = {947--961},
	file = {[PDF] from ucv.ve:/Users/phil/Dropbox/biblio/zotero/storage/D27E7AF8/Hsieh et al. - 2008 - Spatial analysis shows that fishing enhances the c.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/B394I8EQ/cookieAbsent.html:text/html}
}

@article{perry:sensitivity:2010,
	title = {Sensitivity of marine systems to climate and fishing: {Concepts}, issues and management responses},
	volume = {79},
	shorttitle = {Sensitivity of marine systems to climate and fishing},
	url = {ftp://205.193.112.140/pub/ocean/CCS-WG:References/Loder%20Refs/Other%20Pubs/JMS79-2010/Perryetal-sdarticle.pdf},
	urldate = {2014-02-18},
	journal = {Journal of Marine Systems},
	author = {Perry, R. Ian and Cury, Philippe and Brander, Keith and Jennings, Simon},
	year = {2010},
	pages = {427--435},
	file = {[PDF] from imber.info:/Users/phil/Dropbox/biblio/zotero/storage/KIW8N9RF/Perry et al. - 2010 - Sensitivity of marine systems to climate and fishi.pdf:application/pdf;[PDF] from pices.int:/Users/phil/Dropbox/biblio/zotero/storage/ZX65EMK9/Perry et al. - Sensitivity of marine systems to climate and fishi.pdf:application/pdf}
}

@article{stige:predicting:2013,
	title = {Predicting fish recruitment from juvenile abundance and environmental indices},
	url = {https://www.duo.uio.no/handle/10852/37231},
	urldate = {2014-02-18},
	author = {Stige, Leif Christian and Hunsicker, Mary E. and Bailey, Kevin M. and Yaragina, Natalia A. and Hunt Jr, George L.},
	year = {2013},
	file = {[PDF] from uio.no:/Users/phil/Dropbox/biblio/zotero/storage/RZ4UVUU9/Stige et al. - 2013 - Predicting fish recruitment from juvenile abundanc.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/IIVBEMD7/37231.html:text/html}
}

@article{forster:warming-induced:2012,
	title = {Warming-induced reductions in body size are greater in aquatic than terrestrial species},
	volume = {109},
	issn = {0027-8424, 1091-6490},
	url = {http://www.pnas.org/content/109/47/19310},
	doi = {10.1073/pnas.1210460109},
	abstract = {Most ectothermic organisms mature at smaller body sizes when reared in warmer conditions. This phenotypically plastic response, known as the “temperature-size rule” (TSR), is one of the most taxonomically widespread patterns in biology. However, the TSR remains a longstanding life-history puzzle for which no dominant driver has been found. We propose that oxygen supply plays a central role in explaining the magnitude of ectothermic temperature-size responses. Given the much lower oxygen availability and greater effort required to increase uptake in water vs. air, we predict that the TSR in aquatic organisms, especially larger species with lower surface area–body mass ratios, will be stronger than in terrestrial organisms. We performed a meta-analysis of 1,890 body mass responses to temperature in controlled experiments on 169 terrestrial, freshwater, and marine species. This reveals that the strength of the temperature-size response is greater in aquatic than terrestrial species. In animal species of ∼100 mg dry mass, the temperature-size response of aquatic organisms is 10 times greater than in terrestrial organisms (−5.0\% °C−1 vs. −0.5\% °C−1). Moreover, although the size response of small ({\textless}0.1 mg dry mass) aquatic and terrestrial species is similar, increases in species size cause the response to become increasingly negative in aquatic species, as predicted, but on average less negative in terrestrial species. These results support oxygen as a major driver of temperature-size responses in aquatic organisms. Further, the environment-dependent differences parallel latitudinal body size clines, and will influence predicted impacts of climate warming on food production, community structure, and food-web dynamics.},
	language = {en},
	number = {47},
	urldate = {2014-06-18},
	journal = {Proceedings of the National Academy of Sciences},
	author = {Forster, Jack and Hirst, Andrew G. and Atkinson, David},
	month = nov,
	year = {2012},
	pmid = {23129645},
	keywords = {aerobic scope, physiology, plasticity, scaling},
	pages = {19310--19314},
	file = {Forster et al. - 2012 - Warming-induced reductions in body size are greate.pdf:/Users/phil/Dropbox/biblio/zotero/storage/RP2VQ4HF/Forster et al. - 2012 - Warming-induced reductions in body size are greate.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/43XVAWH2/19310.html:text/html}
}

@article{planque:how:2010,
	title = {How does fishing alter marine populations and ecosystems sensitivity to climate?},
	volume = {79},
	url = {http://www.researchgate.net/publication/41126830:How:does:fishing:alter:marine:populations:and:ecosystems:sensitivity:to:climate/file/79e4150cee34ca0f14.pdf},
	number = {3-4},
	urldate = {2014-02-18},
	journal = {Journal of Marine Systems},
	author = {Planque, Benjamin and Fromentinb, Jean-Marc and Curyb, Philippe and Drinkwaterc, Kenneth F. and Jenningsd, Simon and Perrye, R. Ian and Kifanif, Souad},
	year = {2010},
	pages = {403--417},
	file = {[PDF] from researchgate.net:/Users/phil/Dropbox/biblio/zotero/storage/RFTSTXNZ/Planquea et al. - 2010 - How does fishing alter marine populations and ecos.pdf:application/pdf}
}

@article{portner:ecosystem:2008,
	title = {Ecosystem effects of ocean acidification in times of ocean warming: a physiologist’s view},
	volume = {373},
	shorttitle = {Ecosystem effects of ocean acidification in times of ocean warming},
	url = {http://www.int-res.com/articles/theme/m373p203},
	urldate = {2014-06-18},
	journal = {Mar Ecol Prog Ser},
	author = {Pörtner, Hans-O.},
	year = {2008},
	pages = {203--217},
	file = {[PDF] from int-res.com:/Users/phil/Dropbox/biblio/zotero/storage/VQXG5823/Pörtner - 2008 - Ecosystem effects of ocean acidification in times .pdf:application/pdf}
}

@book{dunn:fish:2009,
	title = {Fish abundance and climate trends in {New} {Zealand}},
	url = {http://docs.niwa.co.nz/library/public/NZAEBR31.pdf},
	urldate = {2014-02-03},
	publisher = {Ministry of Fisheries},
	author = {Dunn, Matthew R. and Hurst, Rosie and Renwick, Jim and Francis, Chris and Devine, Jennifer and McKenzie, Andy},
	year = {2009}
}

@article{guinotte:ocean:2008,
	title = {Ocean acidification and its potential effects on marine ecosystems},
	volume = {1134},
	issn = {0077-8923},
	doi = {10.1196/annals.1439.013},
	abstract = {Ocean acidification is rapidly changing the carbonate system of the world oceans. Past mass extinction events have been linked to ocean acidification, and the current rate of change in seawater chemistry is unprecedented. Evidence suggests that these changes will have significant consequences for marine taxa, particularly those that build skeletons, shells, and tests of biogenic calcium carbonate. Potential changes in species distributions and abundances could propagate through multiple trophic levels of marine food webs, though research into the long-term ecosystem impacts of ocean acidification is in its infancy. This review attempts to provide a general synthesis of known and/or hypothesized biological and ecosystem responses to increasing ocean acidification. Marine taxa covered in this review include tropical reef-building corals, cold-water corals, crustose coralline algae, Halimeda, benthic mollusks, echinoderms, coccolithophores, foraminifera, pteropods, seagrasses, jellyfishes, and fishes. The risk of irreversible ecosystem changes due to ocean acidification should enlighten the ongoing CO(2) emissions debate and make it clear that the human dependence on fossil fuels must end quickly. Political will and significant large-scale investment in clean-energy technologies are essential if we are to avoid the most damaging effects of human-induced climate change, including ocean acidification.},
	language = {eng},
	journal = {Annals of the New York Academy of Sciences},
	author = {Guinotte, John M and Fabry, Victoria J},
	year = {2008},
	pmid = {18566099},
	keywords = {Animals, ecosystem, Hydrogen-Ion Concentration, Oceans and Seas, Seawater, Water Pollution},
	pages = {320--342}
}

@article{pinsky:lagged:2012,
	title = {Lagged social-ecological responses to climate and range shifts in fisheries},
	volume = {115},
	url = {http://link.springer.com/article/10.1007/s10584-012-0599-x},
	number = {3-4},
	urldate = {2014-06-19},
	journal = {Climatic change},
	author = {Pinsky, Malin L. and Fogarty, Michael},
	year = {2012},
	pages = {883--891},
	file = {[PDF] from princeton.edu:/Users/phil/Dropbox/biblio/zotero/storage/6STW58EA/Pinsky and Fogarty - 2012 - Lagged social-ecological responses to climate and .pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/JQWZFP4U/s10584-012-0599-x.html:text/html}
}

@article{ciannelli:theory:2013,
	title = {Theory, consequences and evidence of eroding population spatial structure in harvested marine fishes: a review},
	shorttitle = {Theory, consequences and evidence of eroding population spatial structure in harvested marine fishes},
	url = {http://scholarsarchive.library.oregonstate.edu/xmlui/handle/1957/38940},
	urldate = {2014-02-18},
	author = {Ciannelli, Lorenzo and Fisher, Jonathan AD and Skern-Mauritzen, Mette and Hunsicker, Mary E. and Hidalgo, Manuel and Frank, Kenneth T. and Bailey, Kevin M.},
	year = {2013},
	file = {[PDF] from oregonstate.edu:/Users/phil/Dropbox/biblio/zotero/storage/RRKXUNQW/Ciannelli et al. - 2013 - Theory, consequences and evidence of eroding popul.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/V6Z2DX2F/38940.html:text/html}
}

@article{hollowed:framework:2009,
	title = {A framework for modelling fish and shellfish responses to future climate change},
	volume = {66},
	issn = {1054-3139, 1095-9289},
	url = {http://icesjms.oxfordjournals.org/content/66/7/1584},
	doi = {10.1093/icesjms/fsp057},
	abstract = {Hollowed, A. B., Bond, N. A., Wilderbuer, T. K., Stockhausen, W. T., A'mar, Z. T., Beamish, R. J., Overland, J. E., and Schirripa, M. J. 2009. A framework for modelling fish and shellfish responses to future climate change. – ICES Journal of Marine Science, 66: 1584–1594.A framework is outlined for a unified approach to forecasting the implications of climate change on production of marine fish. The framework involves five steps: (i) identification of mechanisms underlying the reproductive success, growth, and distribution of major fish and shellfish populations, (ii) assessment of the feasibility of downscaling implications of climate scenarios derived from Intergovernmental Panel on Climate Change (IPCC) models for regional ecosystems to select and estimate relevant environmental variables, (iii) evaluation of climate model scenarios and select IPCC models that appear to provide valid representations of forcing for the region of study, (iv) extraction of environmental variables from climate scenarios and incorporation into projection models for fish and shellfish, and (v) evaluation of the mean, variance, and trend in fish and shellfish production under a changing ecosystem. This framework was applied to forecast summer sea surface temperature in the Bering Sea from 2001 to 2050. The mean summer surface temperature was predicted to increase by 2°C by 2050. The forecasting framework was also used to estimate the effects of climate change on production of northern rock sole (Lepidopsetta polyxystra) through projected changes in cross-shelf transport of larvae in the Bering Sea. Results suggest that climate change will lead to a modest increase in the production of strong year classes of northern rock sole.},
	language = {en},
	number = {7},
	urldate = {2014-06-19},
	journal = {ICES Journal of Marine Science: Journal du Conseil},
	author = {Hollowed, Anne Babcock and Bond, Nicholas A. and Wilderbuer, Thomas K. and Stockhausen, William T. and A'mar, Z. Teresa and Beamish, Richard J. and Overland, James E. and Schirripa, Michael J.},
	month = aug,
	year = {2009},
	keywords = {climate change, fish and shellfish management, fisheries oceanography, spawner–recruitment, stock projection models},
	pages = {1584--1594},
	file = {Full Text PDF:/Users/phil/Dropbox/biblio/zotero/storage/NDF3CMZP/Hollowed et al. - 2009 - A framework for modelling fish and shellfish respo.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/3C8E2XIB/1584.html:text/html}
}

@article{brander:impacts:2010,
	title = {Impacts of climate change on fisheries},
	volume = {79},
	issn = {0924-7963},
	doi = {10.1016/j.jmarsys.2008.12.015},
	abstract = {Evidence of the impacts of anthropogenic climate change on marine ecosystems is accumulating, but must be evaluated in the context of the "normal" climate cycles and variability which have caused fluctuations in fisheries throughout human history. The impacts on fisheries are due to a variety of direct and indirect effects of a number of physical and chemical factors, which include temperature, winds, vertical mixing, salinity, oxygen, pH and others. The direct effects act on the physiology, development rates, reproduction, behaviour and survival of individuals and can in some cases be studied experimentally and in controlled conditions. Indirect effects act via ecosystem processes and changes in the production of food or abundance of competitors, predators and pathogens. Recent studies of the effects of climate on primary production are reviewed and the consequences for fisheries production are evaluated through regional examples. Regional examples are also used to show changes in distribution and phenology of plankton and fish, which are attributed to climate. The role of discontinuous and extreme events (regime shifts, exceptional warm periods) is discussed. Changes in fish population processes can be investigated in experiments and by analysis of field data, particularly by assembling comparative data from regional examples. Although our existing knowledge is in many respects incomplete it nevertheless provides an adequate basis for improved management of fisheries and of marine ecosystems and for adapting to climate change. in order to adapt to changing climate, future monitoring and research must be closely linked to responsive, flexible and reflexive management systems. (C) 2009 Elsevier B.V. All rights reserved.},
	number = {3-4},
	journal = {Journal of Marine Systems},
	author = {Brander, Keith and Brander, Keith},
	year = {2010},
	pages = {389--402},
	file = {[PDF] from imber.info:/Users/phil/Dropbox/biblio/zotero/storage/JXTMEIGF/Brander - 2010 - Impacts of climate change on fisheries.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/5ZJJWWCF/S0924796309000931.html:text/html}
}

@article{roessig:effects:2004,
	title = {Effects of global climate change on marine and estuarine fishes and fisheries},
	volume = {14},
	url = {http://link.springer.com/article/10.1007/s11160-004-6749-0},
	number = {2},
	urldate = {2014-04-04},
	journal = {Reviews in Fish Biology and Fisheries},
	author = {Roessig, Julie M. and Woodley, Christa M. and Cech Jr, Joseph J. and Hansen, Lara J.},
	year = {2004},
	pages = {251--275}
}

@article{cheung:integrating:2011,
	title = {Integrating ecophysiology and plankton dynamics into projected maximum fisheries catch potential under climate change in the {Northeast} {Atlantic}},
	volume = {68},
	url = {http://icesjms.oxfordjournals.org/content/68/6/1008.short},
	number = {6},
	urldate = {2014-02-24},
	journal = {ICES Journal of Marine Science: Journal du Conseil},
	author = {Cheung, William WL and Dunne, John and Sarmiento, Jorge L. and Pauly, Daniel},
	year = {2011},
	keywords = {biogeochemistry, climate change, fisheries catch, Northeast Atlantic, ocean acidification, oxygen, range shift},
	pages = {1008--1018},
	file = {Full Text PDF:/Users/phil/Dropbox/biblio/zotero/storage/KMR6S6SM/Cheung et al. - 2011 - Integrating ecophysiology and plankton dynamics in.pdf:application/pdf;Full Text PDF:/Users/phil/Dropbox/biblio/zotero/storage/SNNK5HAE/Cheung et al. - 2011 - Integrating ecophysiology and plankton dynamics in.pdf:application/pdf;[HTML] from oxfordjournals.org:/Users/phil/Dropbox/biblio/zotero/storage/ZB83IECB/1008.html:text/html;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/7U2XW6WW/1008.html:text/html;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/7VFHCI2C/1008.html:text/html;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/WFUXSCJT/1008.html:text/html}
}

@article{crozier:plastic:2013,
	title = {Plastic and evolutionary responses to climate change in fish},
	copyright = {© 2013 The Authors. Evolutionary Applications published by John Wiley \& Sons Ltd., This is an open access article under the terms of the Creative Commons Attribution License, which permits use, distribution and reproduction in any medium, provided the original work is properly cited.},
	issn = {1752-4571},
	url = {http://onlinelibrary.wiley.com/doi/10.1111/eva.12135/abstract},
	doi = {10.1111/eva.12135},
	abstract = {The physical and ecological ‘fingerprints’ of anthropogenic climate change over the past century are now well documented in many environments and taxa. We reviewed the evidence for phenotypic responses to recent climate change in fish. Changes in the timing of migration and reproduction, age at maturity, age at juvenile migration, growth, survival and fecundity were associated primarily with changes in temperature. Although these traits can evolve rapidly, only two studies attributed phenotypic changes formally to evolutionary mechanisms. The correlation-based methods most frequently employed point largely to ‘fine-grained’ population responses to environmental variability (i.e. rapid phenotypic changes relative to generation time), consistent with plastic mechanisms. Ultimately, many species will likely adapt to long-term warming trends overlaid on natural climate oscillations. Considering the strong plasticity in all traits studied, we recommend development and expanded use of methods capable of detecting evolutionary change, such as the long term study of selection coefficients and temporal shifts in reaction norms, and increased attention to forecasting adaptive change in response to the synergistic interactions of the multiple selection pressures likely to be associated with climate change.},
	language = {en},
	urldate = {2014-01-06},
	journal = {Evolutionary Applications},
	author = {Crozier, Lisa G. and Hutchings, Jeffrey A.},
	year = {2013},
	keywords = {adaptation, climate change, evolutionary theory, fisheries management, life-history evolution, phenotypic plasticity},
	pages = {n/a--n/a},
	file = {eva12135.pdf:/Users/phil/Dropbox/biblio/zotero/storage/88J5DGDA/eva12135.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/5J8NMHPJ/abstract.html:text/html;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/R6KSVM2V/full.html:text/html}
}

@article{jackson:historical:2001,
	title = {Historical overfishing and the recent collapse of coastal ecosystems},
	volume = {293},
	url = {http://www.sciencemag.org/content/293/5530/629.short},
	number = {5530},
	urldate = {2014-02-19},
	journal = {science},
	author = {Jackson, Jeremy BC and Kirby, Michael X. and Berger, Wolfgang H. and Bjorndal, Karen A. and Botsford, Louis W. and Bourque, Bruce J. and Bradbury, Roger H. and Cooke, Richard and Erlandson, Jon and Estes, James A.},
	year = {2001},
	pages = {629--637},
	file = {[PDF] from umb.edu:/Users/phil/Dropbox/biblio/zotero/storage/NTJI7B9V/Jackson et al. - 2001 - Historical overfishing and the recent collapse of .pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/HARWIHQ6/629.html:text/html}
}

@article{richardson:climate:2012,
	title = {Climate change and marine life},
	volume = {8},
	issn = {1744-9561, 1744-957X},
	url = {http://rsbl.royalsocietypublishing.org/cgi/doi/10.1098/rsbl.2012.0530},
	doi = {10.1098/rsbl.2012.0530},
	number = {6},
	urldate = {2014-01-28},
	journal = {Biology Letters},
	author = {Richardson, A. J. and Brown, C. J. and Brander, K. and Bruno, J. F. and Buckley, L. and Burrows, M. T. and Duarte, C. M. and Halpern, B. S. and Hoegh-Guldberg, O. and Holding, J. and Kappel, C. V. and Kiessling, W. and Moore, P. J. and O'Connor, M. I. and Pandolfi, J. M. and Parmesan, C. and Schoeman, D. S. and Schwing, F. and Sydeman, W. J. and Poloczanska, E. S.},
	month = jul,
	year = {2012},
	pages = {907--909}
}

@article{mackinson:combined:2013,
	title = {Combined analyses reveal environmentally driven changes in the {North} {Sea} ecosystem and raise questions regarding what makes an ecosystem model’s performance credible?},
	volume = {71},
	url = {http://www.nrcresearchpress.com/doi/abs/10.1139/cjfas-2013-0173},
	number = {1},
	urldate = {2014-06-18},
	journal = {Canadian Journal of Fisheries and Aquatic Sciences},
	author = {Mackinson, Steven},
	year = {2013},
	pages = {31--46},
	file = {Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/CTGX5FVD/cookieAbsent.html:text/html}
}

@article{rall:taxonomic:2011,
	title = {Taxonomic versus allometric constraints on non-linear interaction strengths},
	volume = {120},
	url = {http://onlinelibrary.wiley.com/doi/10.1111/j.1600-0706.2010.18860.x/full},
	number = {4},
	urldate = {2014-06-17},
	journal = {Oikos},
	author = {Rall, Björn Christian and Kalinkat, Gregor and Ott, David and Vucic-Pestic, Olivera and Brose, Ulrich},
	year = {2011},
	pages = {483--492},
	file = {[PDF] from ucv.ve:/Users/phil/Dropbox/biblio/zotero/storage/N8DPI9F8/Rall et al. - 2011 - Taxonomic versus allometric constraints on non-lin.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/8ATVT9JE/full.html:text/html}
}

@article{rose:modeling:2013,
	title = {Modeling marine ecosystem responses to global climate change: {Where} are we now and where should we be going?},
	volume = {264},
	shorttitle = {Modeling marine ecosystem responses to global climate change},
	url = {http://www.sciencedirect.com/science/article/pii/S0304380013002184},
	urldate = {2014-06-18},
	journal = {Ecological Modelling},
	author = {Rose, Kenneth Alan and Allen, J.},
	year = {2013},
	pages = {1--6},
	file = {Rose and Allen - 2013 - Modeling marine ecosystem responses to global clim.html:/Users/phil/Dropbox/biblio/zotero/storage/2HVP2J9K/Rose and Allen - 2013 - Modeling marine ecosystem responses to global clim.html:text/html}
}

@article{bakun:linking:2010,
	title = {Linking climate to population variability in marine ecosystems characterized by non-simple dynamics: conceptual templates and schematic constructs},
	volume = {79},
	shorttitle = {Linking climate to population variability in marine ecosystems characterized by non-simple dynamics},
	url = {http://www.sciencedirect.com/science/article/pii/S0924796309000918},
	number = {3},
	urldate = {2014-02-18},
	journal = {Journal of Marine Systems},
	author = {Bakun, Andrew},
	year = {2010},
	pages = {361--373},
	file = {[PDF] from univ-mrs.fr:/Users/phil/Dropbox/biblio/zotero/storage/JS3VIBRZ/Bakun - 2010 - Linking climate to population variability in marin.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/NA4PB67C/S0924796309000918.html:text/html}
}

@article{oconnor:temperature:2007,
	title = {Temperature control of larval dispersal and the implications for marine ecology, evolution, and conservation},
	volume = {104},
	issn = {0027-8424, 1091-6490},
	url = {http://www.pnas.org/content/104/4/1266},
	doi = {10.1073/pnas.0603422104},
	abstract = {Temperature controls the rate of fundamental biochemical processes and thereby regulates organismal attributes including development rate and survival. The increase in metabolic rate with temperature explains substantial among-species variation in life-history traits, population dynamics, and ecosystem processes. Temperature can also cause variability in metabolic rate within species. Here, we compare the effect of temperature on a key component of marine life cycles among a geographically and taxonomically diverse group of marine fish and invertebrates. Although innumerable lab studies document the negative effect of temperature on larval development time, little is known about the generality versus taxon-dependence of this relationship. We present a unified, parameterized model for the temperature dependence of larval development in marine animals. Because the duration of the larval period is known to influence larval dispersal distance and survival, changes in ocean temperature could have a direct and predictable influence on population connectivity, community structure, and regional-to-global scale patterns of biodiversity.},
	language = {en},
	number = {4},
	urldate = {2014-06-18},
	journal = {Proceedings of the National Academy of Sciences},
	author = {O'Connor, Mary I. and Bruno, John F. and Gaines, Steven D. and Halpern, Benjamin S. and Lester, Sarah E. and Kinlan, Brian P. and Weiss, Jack M.},
	month = jan,
	year = {2007},
	pmid = {17213327},
	keywords = {larval development, metabolic scaling, population connectivity, Survival, temperature dependence},
	pages = {1266--1271},
	file = {Full Text PDF:/Users/phil/Dropbox/biblio/zotero/storage/E6AGZF6N/O'Connor et al. - 2007 - Temperature control of larval dispersal and the im.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/ARBXSTSQ/1266.html:text/html}
}

@article{brander:global:2007,
	title = {Global fish production and climate change},
	volume = {104},
	url = {http://www.pnas.org/content/104/50/19709.short},
	number = {50},
	urldate = {2014-02-19},
	journal = {Proceedings of the National Academy of Sciences},
	author = {Brander, Keith M.},
	year = {2007},
	pages = {19709--19714},
	file = {[PDF] from startinternational.org:/Users/phil/Dropbox/biblio/zotero/storage/87V6ZJQD/Brander - 2007 - Global fish production and climate change.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/J8ZN8CD4/19709.html:text/html}
}

@article{rudolf:resolving:2014,
	title = {Resolving the roles of body size and species identity in driving functional diversity},
	volume = {281},
	url = {http://rspb.royalsocietypublishing.org/content/281/1781/20133203.short},
	number = {1781},
	urldate = {2014-06-18},
	journal = {Proceedings of the Royal Society B: Biological Sciences},
	author = {Rudolf, Volker HW and Rasmussen, Nick L. and Dibble, Christopher J. and Van Allen, Benjamin G.},
	year = {2014},
	pages = {20133203},
	file = {[PDF] from rice.edu:/Users/phil/Dropbox/biblio/zotero/storage/PCPKI5W4/Rudolf et al. - 2014 - Resolving the roles of body size and species ident.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/IA5ES4TS/20133203.html:text/html}
}

@article{branch:impacts:2013,
	title = {Impacts of ocean acidification on marine seafood},
	volume = {28},
	issn = {0169-5347},
	doi = {10.1016/j.tree.2012.10.001},
	abstract = {Ocean acidification is a series of chemical reactions due to increased CO(2) emissions. The resulting lower pH impairs the senses of reef fishes and reduces their survival, and might similarly impact commercially targeted fishes that produce most of the seafood eaten by humans. Shelled molluscs will also be negatively affected, whereas cephalopods and crustaceans will remain largely unscathed. Habitat changes will reduce seafood production from coral reefs, but increase production from seagrass and seaweed. Overall effects of ocean acidification on primary productivity and, hence, on food webs will result in hard-to-predict winners and losers. Although adaptation, parental effects, and evolution can mitigate some effects of ocean acidification, future seafood platters will look rather different unless CO(2) emissions are curbed.},
	language = {eng},
	number = {3},
	journal = {Trends in ecology \& evolution},
	author = {Branch, Trevor A and DeJoseph, Bonnie M and Ray, Liza J and Wagner, Cherie A},
	month = mar,
	year = {2013},
	pmid = {23122878},
	keywords = {Acclimatization, Animals, Aquaculture, Aquatic Organisms, ecosystem, Food Chain, Hydrogen-Ion Concentration, Oceans and Seas, Seafood, Seawater},
	pages = {178--186}
}

@article{doney:climate:2012,
	title = {Climate {Change} {Impacts} on {Marine} {Ecosystems}},
	volume = {4},
	issn = {1941-1405, 1941-0611},
	url = {http://www.annualreviews.org/eprint/fzUZd7Z748TeHmB7p8cn/full/10.1146/annurev-marine-041911-111611},
	doi = {10.1146/annurev-marine-041911-111611},
	language = {en},
	number = {1},
	urldate = {2014-06-18},
	journal = {Annual Review of Marine Science},
	author = {Doney, Scott C. and Ruckelshaus, Mary and Emmett Duffy, J. and Barry, James P. and Chan, Francis and English, Chad A. and Galindo, Heather M. and Grebmeier, Jacqueline M. and Hollowed, Anne B. and Knowlton, Nancy and Polovina, Jeffrey and Rabalais, Nancy N. and Sydeman, William J. and Talley, Lynne D.},
	month = jan,
	year = {2012},
	pages = {11--37},
	file = {annurev-marine-041911-111611.pdf:/Users/phil/Dropbox/biblio/zotero/storage/MNPPE79H/annurev-marine-041911-111611.pdf:application/pdf;Climate Change Impacts on Marine Ecosystems - Annual Review of Marine Science, 4(1)\:11:/Users/phil/Dropbox/biblio/zotero/storage/R2BKT8DQ/annurev-marine-041911-111611.html:text/html}
}

@article{hollowed:projected:2013,
	title = {Projected impacts of climate change on marine fish and fisheries},
	volume = {70},
	issn = {1054-3139, 1095-9289},
	url = {http://icesjms.oxfordjournals.org/cgi/doi/10.1093/icesjms/fst081},
	doi = {10.1093/icesjms/fst081},
	number = {5},
	urldate = {2014-01-28},
	journal = {ICES Journal of Marine Science},
	author = {Hollowed, A. B. and Barange, M. and Beamish, R. J. and Brander, K. and Cochrane, K. and Drinkwater, K. and Foreman, M. G. G. and Hare, J. A. and Holt, J. and Ito, S.-i. and Kim, S. and King, J. R. and Loeng, H. and MacKenzie, B. R. and Mueter, F. J. and Okey, T. A. and Peck, M. A. and Radchenko, V. I. and Rice, J. C. and Schirripa, M. J. and Yatsu, A. and Yamanaka, Y.},
	month = jul,
	year = {2013},
	keywords = {climate change, fish, fisheries, fisheries-dependent communities, uncertainty, vulnerability assessment},
	pages = {1023--1037},
	file = {Hollowed et al 13 ICES JMS.pdf:/Users/phil/Dropbox/biblio/zotero/storage/8NG4SITV/Hollowed et al 13 ICES JMS.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/JIGNTI2S/1023.html:text/html}
}

@article{durant:introduction::2013,
	title = {{INTRODUCTION}: {Impact} of climate and fisheries on sub-{Arctic} stocks},
	shorttitle = {{INTRODUCTION}},
	url = {https://www.duo.uio.no/handle/10852/37237},
	urldate = {2014-02-18},
	author = {Durant, Joel Marcel and Ottersen, Geir and Stenseth, Nils Christian},
	year = {2013},
	file = {[PDF] from uio.no:/Users/phil/Dropbox/biblio/zotero/storage/NV5MV7BV/Durant et al. - 2013 - INTRODUCTION Impact of climate and fisheries on s.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/TNQXPR6F/37237.html:text/html}
}

@article{woodworth-jefcoats:examining:????,
	title = {Examining the {Impacts} of {Climate} {Change} and {Fishing} from {Both} {Species}-{Based} and {Size}-{Based} {Modeling} {Perspectives}},
	url = {http://www.eposters.net/pdfs/examining-the-impacts-of-climate-change-and-fishing-from-both-species-based-and-size-based-modeling.pdf},
	urldate = {2014-06-17},
	author = {Woodworth-Jefcoats, Phoebe A. and Polovina, Jeffrey J. and Howell, Evan A. and Blanchard, Julia L.},
	file = {[PDF] from eposters.net:/Users/phil/Dropbox/biblio/zotero/storage/GXCNUWAW/Woodworth-Jefcoats et al. - Examining the Impacts of Climate Change and Fishin.pdf:application/pdf;[PDF] from eposters.net:/Users/phil/Dropbox/biblio/zotero/storage/J7MRTB59/Woodworth-Jefcoats et al. - Examining the Impacts of Climate Change and Fishin.pdf:application/pdf}
}

@article{allison:vulnerability:2009,
	title = {Vulnerability of national economies to the impacts of climate change on fisheries},
	volume = {10},
	url = {http://onlinelibrary.wiley.com/doi/10.1111/j.1467-2979.2008.00310.x/full},
	number = {2},
	urldate = {2014-02-19},
	journal = {Fish and fisheries},
	author = {Allison, Edward H. and Perry, Allison L. and Badjeck, Marie-Caroline and Neil Adger, W. and Brown, Katrina and Conway, Declan and Halls, Ashley S. and Pilling, Graham M. and Reynolds, John D. and Andrew, Neil L.},
	year = {2009},
	pages = {173--196},
	file = {[PDF] from earthmind.net:/Users/phil/Dropbox/biblio/zotero/storage/5DJTA3MW/Allison et al. - 2009 - Vulnerability of national economies to the impacts.pdf:application/pdf;[PDF] from earthmind.net:/Users/phil/Dropbox/biblio/zotero/storage/7WSZBNF8/Allison et al. - 2009 - Vulnerability of national economies to the impacts.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/F4QCHM6R/full.html:text/html;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/H7J254ZE/full.html:text/html}
}

@article{ottersen:stock:2013,
	title = {stock and temperature},
	volume = {480},
	url = {http://www.int-res.com/articles/theme/m480:ThemeSection.pdf#page=7},
	urldate = {2014-02-18},
	journal = {Harvested fish stocks in a changing environment},
	author = {Ottersen, Geir and Stige, Leif Christian and Durant, Joël M. and Chan, Kung-Sik and Rouyer, Tristan A. and Drinkwater, Kenneth F. and Stenseth, Nils Chr},
	year = {2013},
	pages = {205--225},
	file = {[PDF] from int-res.com:/Users/phil/Dropbox/biblio/zotero/storage/G468NGSD/Ottersen et al. - 2013 - stock and temperature.pdf:application/pdf}
}

@phdthesis{wong:end--end:2014,
	type = {phd},
	title = {End-to-end models of marine ecosystems: exploring the consequences of climate change and fishing using a minimal framework},
	shorttitle = {End-to-end models of marine ecosystems},
	url = {http://etheses.whiterose.ac.uk/6624/},
	abstract = {Marine ecosystems are vital to human society: as a source of food, for economic growth and for their potential to mitigate climate change.  With marine ecosystems threatened by climate change and overfishing, there is a need for sustainable fisheries management, which has been the basis for an ecosystem-based approach to management.  This has led to considerable interest in end-to-end ecosystem models, where the physical effects of the environment and the population dynamics of all marine organisms are coupled together into one framework.  In this thesis, I studied an end-to-end model which coupled together a box-component model representing phytoplankton and zooplankton, with a size-structured fish community model.

I investigated the potential artefacts in model results, caused by numerical methods or by model architecture.  I found that care needs to be taken with the choice of numerical method used to simulate size-structured models, as the choice of numerical resolution can yield numerically stable results but can also affect large-scale behaviours of the system, such as the slope and mathematical stability of the size-spectra solutions.  With regards to model architecture, coupling together two submodels which differ in structure and resolution can lead to large-scale behaviours of the system which appear plausible and consistent with empirical data, but which impose serious discrepancies in the underlying life-histories of the fish.

By distinguishing model artefacts from ecosystem-effects, the interactions and feedbacks between the higher and lower trophic level organisms can be investigated.  I studied the potential impact of climate change upon the marine ecosystem, and in particular, upon the seasonal dynamics of phytoplankton.  I found that under a warming climate, the spring phytoplankton bloom occurs earlier and for a longer duration, and the model predicts the loss of the autumn phytoplankton bloom.  These changes were not solely due to the direct effect of temperature, but also due to the indirect effect of the interactions of the fish population with zooplankton.  The effect of fishing upon the marine ecosystem was also explored with this end-to-end model, with two potential fishing strategies applied to the system.  Regardless of the choice of fishing strategy, intensive exploitation of fish stocks can lead to a significant shift in the dynamics of phytoplankton.  The phytoplankton's dynamics change from stable annual patterns to unpredictable periodic behaviours.

This thesis has developed an end-to-end model which uses a minimal framework to study the interactions of organisms at different trophic levels, and highlights the importance of these interactions and the associated feedbacks under different scenarios.  It combines important theoretical insights into the consequences of model architecture and model-derived artefacts upon ecosystem-scale behaviours, at the same time as highlighting the potential for end-to-end models as a practical and flexible management tool.},
	urldate = {2015-01-06},
	school = {University of York},
	author = {Wong, Celina See Wing},
	month = mar,
	year = {2014},
	file = {Full Text PDF:/Users/phil/Dropbox/biblio/zotero/storage/9ES5IVCA/Wong - 2014 - End-to-end models of marine ecosystems exploring .pdf:application/pdf;Full Text PDF:/Users/phil/Dropbox/biblio/zotero/storage/PR54ADTV/Wong - 2014 - End-to-end models of marine ecosystems exploring .pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/8V6BWNPC/6624.html:text/html;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/V7RQT8BP/6624.html:text/html}
}

@article{gilljam:seeing:2011,
	title = {Seeing {Double}:: {Size}-{Based} and {Taxonomic} {Views} of {Food} {Web} {Structure}},
	volume = {45},
	shorttitle = {Seeing {Double}},
	url = {http://books.google.co.nz/books?hl=en&lr=&id=jRrBKnAf5FAC&oi=fnd&pg=PA67&ots=7mAeLKsR0U&sig=P3oIDCHenLE4lJr8Yl58Yn4w::g},
	urldate = {2015-01-06},
	journal = {Advances In Ecological Research},
	author = {Gilljam, David and Thierry, Aaron and Edwards, Francois K. and Figueroa, David and Ibbotson, Anton T. and Jones, JIwan and Lauridsen, Rasmus B. and Petchey, Owen L. and Woodward, Guy and Ebenman, Bo},
	year = {2011},
	pages = {67--133},
	file = {[PDF] from researchgate.net:/Users/phil/Dropbox/biblio/zotero/storage/725A8ECI/Gilljam et al. - 2011 - Seeing Double Size-Based and Taxonomic Views of .pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/Z33SA8ZP/books.html:text/html}
}

@article{pinsky:emerging:????,
	title = {Emerging {Adaptation} {Approachesfor}},
	volume = {27},
	url = {http://www.tos.org/oceanography/archive/27-4:pinsky.pdf},
	number = {4},
	urldate = {2015-01-06},
	journal = {Oceanography},
	author = {Pinsky, Malin L. and Mantua, Nathan J.},
	pages = {146},
	file = {[PDF] from tos.org:/Users/phil/Dropbox/biblio/zotero/storage/KEJA97TB/Pinsky and Mantua - Emerging Adaptation Approachesfor.pdf:application/pdf}
}

@article{woodworth-jefcoats:two:2015,
	title = {Two takes on the ecosystem impacts of climate change and fishing: {Comparing} a size-based and a species-based ecosystem model in the central {North} {Pacific}},
	issn = {00796611},
	shorttitle = {Two takes on the ecosystem impacts of climate change and fishing},
	url = {http://linkinghub.elsevier.com/retrieve/pii/S0079661115000646},
	doi = {10.1016/j.pocean.2015.04.004},
	language = {en},
	urldate = {2015-06-09},
	journal = {Progress in Oceanography},
	author = {Woodworth-Jefcoats, Phoebe A. and Polovina, Jeffrey J. and Howell, Evan A. and Blanchard, Julia L.},
	month = apr,
	year = {2015},
	file = {Progress in Oceanography 2015 Woodworth-Jefcoats.pdf:/Users/phil/Dropbox/biblio/zotero/storage/MAQI2WPH/Progress in Oceanography 2015 Woodworth-Jefcoats.pdf:application/pdf}
}

@article{deutsch:climate:2015,
	title = {Climate change tightens a metabolic constraint on marine habitats},
	volume = {348},
	issn = {0036-8075, 1095-9203},
	url = {http://www.sciencemag.org/content/348/6239/1132},
	doi = {10.1126/science.aaa1605},
	abstract = {Warming of the oceans and consequent loss of dissolved oxygen (O2) will alter marine ecosystems, but a mechanistic framework to predict the impact of multiple stressors on viable habitat is lacking. Here, we integrate physiological, climatic, and biogeographic data to calibrate and then map a key metabolic index—the ratio of O2 supply to resting metabolic O2 demand—across geographic ranges of several marine ectotherms. These species differ in thermal and hypoxic tolerances, but their contemporary distributions are all bounded at the equatorward edge by a minimum metabolic index of {\textasciitilde}2 to 5, indicative of a critical energetic requirement for organismal activity. The combined effects of warming and O2 loss this century are projected to reduce the upper ocean’s metabolic index by {\textasciitilde}20\% globally and by {\textasciitilde}50\% in northern high-latitude regions, forcing poleward and vertical contraction of metabolically viable habitats and species ranges.
Double trouble
It is well known that climate change will warm ocean waters, but dissolved oxygen levels also decrease as water warms. Deutsch et al. combined data on metabolism, temperature, and demographics to determine the impact of marine deoxygenation on a variety of fish and crustacean species (see the Perspective by Kleypas). Predicted climate and oxygen conditions can be expected to contract the distribution of marine fish poleward, as equatorward waters become too low in oxygen to support their energy needs. Furthermore, even the more-poleward waters will have reduced oxygen levels.
Science, this issue p. 1132; see also p. 1086},
	language = {en},
	number = {6239},
	urldate = {2015-08-05},
	journal = {Science},
	author = {Deutsch, Curtis and Ferrel, Aaron and Seibel, Brad and Pörtner, Hans-Otto and Huey, Raymond B.},
	month = jun,
	year = {2015},
	pages = {1132--1135},
	file = {Full Text PDF:/Users/phil/Dropbox/biblio/zotero/storage/2BFEAMDP/Deutsch et al. - 2015 - Climate change tightens a metabolic constraint on .pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/N23WFRTW/1132.html:text/html}
}

@article{bakshy:exposure:2015,
	title = {Exposure to ideologically diverse news and opinion on {Facebook}},
	volume = {348},
	issn = {0036-8075, 1095-9203},
	url = {http://www.sciencemag.org/cgi/doi/10.1126/science.aaa1160},
	doi = {10.1126/science.aaa1160},
	language = {en},
	number = {6239},
	urldate = {2015-08-05},
	journal = {Science},
	author = {Bakshy, E. and Messing, S. and Adamic, L. A.},
	month = jun,
	year = {2015},
	pages = {1130--1132},
	file = {Science-2015-Deutsch-1132-5.pdf:/Users/phil/Dropbox/biblio/zotero/storage/5NSUMGZ4/Science-2015-Deutsch-1132-5.pdf:application/pdf}
}

@article{portner:climate:2007,
	title = {Climate {Change} {Affects} {Marine} {Fishes} {Through} the {Oxygen} {Limitation} of {Thermal} {Tolerance}},
	volume = {315},
	issn = {0036-8075, 1095-9203},
	url = {http://www.sciencemag.org/cgi/doi/10.1126/science.1135471},
	doi = {10.1126/science.1135471},
	language = {en},
	number = {5808},
	urldate = {2015-08-05},
	journal = {Science},
	author = {Portner, H. O. and Knust, R.},
	month = jan,
	year = {2007},
	pages = {95--97},
	file = {Oxygenl.pdf:/Users/phil/Dropbox/biblio/zotero/storage/R2F7JP7B/Oxygenl.pdf:application/pdf}
}

@article{portner:physiology:2008,
	title = {Physiology and {Climate} {Change}},
	volume = {322},
	issn = {0036-8075, 1095-9203},
	url = {http://www.sciencemag.org/content/322/5902/690},
	doi = {10.1126/science.1163156},
	abstract = {Studies of physiological mechanisms are needed to predict climate effects on ecosystems at species and community levels.},
	language = {en},
	number = {5902},
	urldate = {2015-08-05},
	journal = {Science},
	author = {Pörtner, Hans O. and Farrell, Anthony P.},
	month = oct,
	year = {2008},
	pmid = {18974339},
	pages = {690--692},
	file = {Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/6QMMKAW6/690.html:text/html}
}

@article{portner:ecosystem:2008-1,
	title = {Ecosystem effects of ocean acidification in times of ocean warming: a physiologist’s view},
	volume = {373},
	shorttitle = {Ecosystem effects of ocean acidification in times of ocean warming},
	url = {http://www.researchgate.net/profile/Hans:Otto:Poertner2/publication/250219282:Ecosystem:effects:of:ocean:acidification:in:times:of:ocean:warming:a:physiologists:view/links/54f8c51c0cf210398e96ca3c.pdf},
	urldate = {2015-08-05},
	journal = {Mar Ecol Prog Ser},
	author = {Pörtner, Hans-O.},
	year = {2008},
	pages = {203--217},
	file = {[PDF] from researchgate.net:/Users/phil/Dropbox/biblio/zotero/storage/EET7F9SS/Pörtner - 2008 - Ecosystem effects of ocean acidification in times .pdf:application/pdf}
}

@article{portner:niche:2010,
	title = {Niche {Dimensions} in {Fishes}: {An} {Integrative} {View}*},
	volume = {83},
	shorttitle = {Niche {Dimensions} in {Fishes}},
	url = {http://www.jstor.org/stable/10.1086/655977},
	number = {5},
	urldate = {2015-08-05},
	journal = {Physiological and Biochemical Zoology},
	author = {Pörtner, Hans-Otto and Schulte, P. M. and Wood, C. M. and Schiemer, F.},
	year = {2010},
	pages = {808--826},
	file = {[HTML] from jstor.org:/Users/phil/Dropbox/biblio/zotero/storage/GFJWMC43/cookieAbsent.html:text/html}
}

@article{chust:biomass:2014,
	title = {Biomass changes and trophic amplification of plankton in a warmer ocean},
	volume = {20},
	url = {http://onlinelibrary.wiley.com/doi/10.1111/gcb.12562/full},
	number = {7},
	urldate = {2015-09-07},
	journal = {Global change biology},
	author = {Chust, Guillem and Allen, J. and Bopp, Laurent and Schrum, Corinna and Holt, Jason and Tsiaras, Kostas and Zavatarelli, Marco and Chifflet, Marina and Cannaby, Heather and Dadou, Isabelle and {others}},
	year = {2014},
	pages = {2124--2139},
	file = {[PDF] from zenodo.org:/Users/phil/Dropbox/biblio/zotero/storage/8Z6UMF92/Chust et al. - 2014 - Biomass changes and trophic amplification of plank.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/J7H7SRFE/full.html:text/html}
}

@article{lefort:spatial:2015,
	title = {Spatial and body-size dependent response of marine pelagic communities to projected global climate change},
	volume = {21},
	url = {http://onlinelibrary.wiley.com/doi/10.1111/gcb.12679/full},
	number = {1},
	urldate = {2015-09-07},
	journal = {Global change biology},
	author = {Lefort, Stelly and Aumont, Olivier and Bopp, Laurent and Arsouze, Thomas and Gehlen, Marion and Maury, Olivier},
	year = {2015},
	pages = {154--164},
	file = {[PDF] from researchgate.net:/Users/phil/Dropbox/biblio/zotero/storage/I54KIXQS/Lefort et al. - 2015 - Spatial and body-size dependent response of marine.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/HM94VA7T/full.html:text/html}
}

@article{brander:improving:2015,
	title = {Improving the {Reliability} of {Fishery} {Predictions} {Under} {Climate} {Change}},
	volume = {1},
	issn = {2198-6061},
	url = {http://link.springer.com/article/10.1007/s40641-015-0005-7},
	doi = {10.1007/s40641-015-0005-7},
	language = {en},
	number = {1},
	urldate = {2015-09-07},
	journal = {Current Climate Change Reports},
	author = {Brander, Keith},
	month = feb,
	year = {2015},
	keywords = {adaptation, Atmospheric Sciences, climate, climate change, Climate Change Management and Policy, Climatology, Fish distribution, fisheries, Fishery management, Fishery potential, Global models, IPCC, marine ecosystems, Oceanography, Recruitment, Regional impacts, Spatial dynamics, Temperature impacts},
	pages = {40--48},
	file = {Full Text PDF:/Users/phil/Dropbox/biblio/zotero/storage/D64JWEGR/Brander - 2015 - Improving the Reliability of Fishery Predictions U.pdf:application/pdf;Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/I5GAUABI/s40641-015-0005-7.html:text/html}
}

@article{elliott:force:2015,
	title = {Force majeure: {Will} climate change affect our ability to attain {Good} {Environmental} {Status} for marine biodiversity?},
	volume = {95},
	issn = {0025-326X},
	shorttitle = {Force majeure},
	url = {http://www.sciencedirect.com/science/article/pii/S0025326X15001472},
	doi = {10.1016/j.marpolbul.2015.03.015},
	abstract = {The EU Marine Strategy Framework Directive (MSFD) requires that Good Environmental Status (GEnS), is achieved for European seas by 2020. These may deviate from GEnS, its 11 Descriptors, targets and baselines, due to endogenic managed pressures (from activities within an area) and externally due to exogenic unmanaged pressures (e.g. climate change). Conceptual models detail the likely or perceived changes expected on marine biodiversity and GEnS Descriptors in the light of climate change. We emphasise that marine management has to accommodate ‘shifting baselines’ caused by climate change particularly during GEnS monitoring, assessment and management and ‘unbounded boundaries’ given the migration and dispersal of highly-mobile species. We suggest climate change may prevent GEnS being met, but Member States may rebut legal challenges by claiming that this is outside its control, force majeure or due to ‘natural causes’ (Article 14 of the MSFD). The analysis is relevant to management of other global seas.},
	number = {1},
	urldate = {2015-09-07},
	journal = {Marine Pollution Bulletin},
	author = {Elliott, Michael and Borja, Ángel and McQuatters-Gollop, Abigail and Mazik, Krysia and Birchenough, Silvana and Andersen, Jesper H. and Painting, Suzanne and Peck, Myron},
	month = jun,
	year = {2015},
	keywords = {climate change, European, Habitat management, Legislation, Marine Strategy Framework Directive, Oceans Acts},
	pages = {7--27},
	file = {ScienceDirect Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/ZFMGKDBF/S0025326X15001472.html:text/html}
}

@article{nagelkerken:global:2015,
	title = {Global alteration of ocean ecosystem functioning due to increasing human {CO}2 emissions},
	issn = {0027-8424, 1091-6490},
	url = {http://www.pnas.org/content/early/2015/10/06/1510856112},
	doi = {10.1073/pnas.1510856112},
	abstract = {Rising anthropogenic CO2 emissions are anticipated to drive change to ocean ecosystems, but a conceptualization of biological change derived from quantitative analyses is lacking. Derived from multiple ecosystems and latitudes, our metaanalysis of 632 published experiments quantified the direction and magnitude of ecological change resulting from ocean acidification and warming to conceptualize broadly based change. Primary production by temperate noncalcifying plankton increases with elevated temperature and CO2, whereas tropical plankton decreases productivity because of acidification. Temperature increases consumption by and metabolic rates of herbivores, but this response does not translate into greater secondary production, which instead decreases with acidification in calcifying and noncalcifying species. This effect creates a mismatch with carnivores whose metabolic and foraging costs increase with temperature. Species diversity and abundances of tropical as well as temperate species decline with acidification, with shifts favoring novel community compositions dominated by noncalcifiers and microorganisms. Both warming and acidification instigate reduced calcification in tropical and temperate reef-building species. Acidification leads to a decline in dimethylsulfide production by ocean plankton, which as a climate gas, contributes to cloud formation and maintenance of the Earth’s heat budget. Analysis of responses in short- and long-term experiments and of studies at natural CO2 vents reveals little evidence of acclimation to acidification or temperature changes, except for microbes. This conceptualization of change across whole communities and their trophic linkages forecast a reduction in diversity and abundances of various key species that underpin current functioning of marine ecosystems.},
	language = {en},
	urldate = {2015-10-20},
	journal = {Proceedings of the National Academy of Sciences},
	author = {Nagelkerken, Ivan and Connell, Sean D.},
	month = oct,
	year = {2015},
	pmid = {26460052},
	keywords = {acclimation, climate change, diversity, metaanalysis, ocean acidification},
	pages = {201510856},
	file = {Snapshot:/Users/phil/Dropbox/biblio/zotero/storage/ADA5ATS2/1510856112.html:text/html}
}

repository: Philipp-Neubauer/FFWD-Fish

repo_name: Philipp-Neubauer/FFWD-Fish


text:
package main

import (
	"context"
	"flag"
	"log"
	"os"
	"os/signal"
	"sync"
	"time"

	"github.com/gopcua/opcua"
	"github.com/gopcua/opcua/debug"
	"github.com/gopcua/opcua/monitor"
	"github.com/gopcua/opcua/ua"
)

func main() {
	var (
		endpoint = flag.String("endpoint", "opc.tcp://localhost:4840", "OPC UA Endpoint URL")
		policy   = flag.String("policy", "", "Security policy: None, Basic128Rsa15, Basic256, Basic256Sha256. Default: auto")
		mode     = flag.String("mode", "", "Security mode: None, Sign, SignAndEncrypt. Default: auto")
		certFile = flag.String("cert", "", "Path to cert.pem. Required for security mode/policy != None")
		keyFile  = flag.String("key", "", "Path to private key.pem. Required for security mode/policy != None")
		nodeID   = flag.String("node", "", "node id to subscribe to")
		interval = flag.Duration("interval", opcua.DefaultSubscriptionInterval, "subscription interval")
	)
	flag.BoolVar(&debug.Enable, "debug", false, "enable debug logging")
	flag.Parse()

	// log.SetFlags(0)

	signalCh := make(chan os.Signal, 1)
	signal.Notify(signalCh, os.Interrupt)

	ctx, cancel := context.WithCancel(context.Background())
	defer cancel()

	go func() {
		<-signalCh
		println()
		cancel()
	}()

	endpoints, err := opcua.GetEndpoints(ctx, *endpoint)
	if err != nil {
		log.Fatal(err)
	}

	ep := opcua.SelectEndpoint(endpoints, *policy, ua.MessageSecurityModeFromString(*mode))
	if ep == nil {
		log.Fatal("Failed to find suitable endpoint")
	}

	log.Print("*", ep.SecurityPolicyURI, ep.SecurityMode)

	opts := []opcua.Option{
		opcua.SecurityPolicy(*policy),
		opcua.SecurityModeString(*mode),
		opcua.CertificateFile(*certFile),
		opcua.PrivateKeyFile(*keyFile),
		opcua.AuthAnonymous(),
		opcua.SecurityFromEndpoint(ep, ua.UserTokenTypeAnonymous),
	}

	c, err := opcua.NewClient(ep.EndpointURL, opts...)
	if err != nil {
		log.Fatal(err)
	}
	if err := c.Connect(ctx); err != nil {
		log.Fatal(err)
	}

	defer c.Close(ctx)

	m, err := monitor.NewNodeMonitor(c)
	if err != nil {
		log.Fatal(err)
	}

	m.SetErrorHandler(func(_ *opcua.Client, sub *monitor.Subscription, err error) {
		log.Printf("error: sub=%d err=%s", sub.SubscriptionID(), err.Error())
	})
	wg := &sync.WaitGroup{}

	// start callback-based subscription
	wg.Add(1)
	go startCallbackSub(ctx, m, *interval, 0, wg, *nodeID)

	// start channel-based subscription
	wg.Add(1)
	go startChanSub(ctx, m, *interval, 0, wg, *nodeID)

	<-ctx.Done()
	wg.Wait()
}

func startCallbackSub(ctx context.Context, m *monitor.NodeMonitor, interval, lag time.Duration, wg *sync.WaitGroup, nodes ...string) {
	sub, err := m.Subscribe(
		ctx,
		&opcua.SubscriptionParameters{
			Interval: interval,
		},
		func(s *monitor.Subscription, msg *monitor.DataChangeMessage) {
			if msg.Error != nil {
				log.Printf("[callback] sub=%d error=%s", s.SubscriptionID(), msg.Error)
			} else {
				log.Printf("[callback] sub=%d ts=%s node=%s value=%v", s.SubscriptionID(), msg.SourceTimestamp.UTC().Format(time.RFC3339), msg.NodeID, msg.Value.Value())
			}
			time.Sleep(lag)
		},
		nodes...)

	if err != nil {
		log.Fatal(err)
	}

	defer cleanup(ctx, sub, wg)

	<-ctx.Done()
}

func startChanSub(ctx context.Context, m *monitor.NodeMonitor, interval, lag time.Duration, wg *sync.WaitGroup, nodes ...string) {
	ch := make(chan *monitor.DataChangeMessage, 16)
	sub, err := m.ChanSubscribe(ctx, &opcua.SubscriptionParameters{Interval: interval}, ch, nodes...)

	if err != nil {
		log.Fatal(err)
	}

	defer cleanup(ctx, sub, wg)

	for {
		select {
		case <-ctx.Done():
			return
		case msg := <-ch:
			if msg.Error != nil {
				log.Printf("[channel ] sub=%d error=%s", sub.SubscriptionID(), msg.Error)
			} else {
				log.Printf("[channel ] sub=%d ts=%s node=%s value=%v", sub.SubscriptionID(), msg.SourceTimestamp.UTC().Format(time.RFC3339), msg.NodeID, msg.Value.Value())
			}
			time.Sleep(lag)
		}
	}
}

func cleanup(ctx context.Context, sub *monitor.Subscription, wg *sync.WaitGroup) {
	log.Printf("stats: sub=%d delivered=%d dropped=%d", sub.SubscriptionID(), sub.Delivered(), sub.Dropped())
	sub.Unsubscribe(ctx)
	wg.Done()
}

license: MIT

repository: gopcua/opcua

license_type: permissive

repo_name: gopcua/opcua

branch_name: refs/heads/main

gha_license_id: MIT

gha_language: Go

extension: go


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

# this wasn't released, the PV is set just to signify that this SRCREV was tested together
# with 5.4.1 version of other modules
PV = "5.4.1"
DEFAULT_PREFERENCE = "1"

QT_MODULE_BRANCH = "dev"

# qtsystems wasn't released yet, last tag before this SRCREV is 5.0.0-beta1
# qt5-git PV is only to indicate that this recipe is compatible with qt5 5.4.0

SRCREV = "44f70d99a2ecd5f3f320650461f1d69142d11bcc"

branch_name: refs/heads/master

extension: bb


text:
LICENSE = "GPLv2"

inherit autotools pkgconfig gconf

PROVIDES = "galculator"
DESCRIPTION = "GTK Advanced Calculator"
DEPENDS = "virtual/libc gtk+ libglade gnome-desktop"
RDEPENDS_${PN} = "gnome-desktop"
SECTION = "gpe"
PRIORITY = "optional"
PR = "r1"

SRC_URI = "${SOURCEFORGE_MIRROR}/project/${PN}/${PN}/${PV}/${PN}-${PV}.tar.bz2"

LDFLAGS += '-Wl,--export-dynamic'

do_install_append() {
       ln -s galculator.png ${D}${datadir}/pixmaps/galculator_48x48.png
}

FILES_${PN} += "${datadir}/pixmaps/galculator_48x48.png"

SRC_URI[md5sum] = "d30e6fbf5947bb1c873bc9d5a21046f1"
SRC_URI[sha256sum] = "9d6c6f13d9249719d1af71f45f97f64d70aefb959d3bfe2cd375e076d4c5943d"

repository: overo/overo-oe-natty

repo_name: overo/overo-oe-natty

branch_name: HEAD


text:
@InProceedings{salvador_adapting_2016,
  title = {Adapting Multicomponent Predictive Systems using Hybrid Adaptation Strategies with Auto-WEKA in Process Industry},
  author = {Manuel Martin Salvador and Marcin Budka and Bogdan Gabrys},
  pages = {48-57},
  abstract = {Automation of composition and optimisation of multicomponent predictive systems (MCPSs) made of a number of preprocessing steps and predictive models is a challenging problem that has been addressed in recent works. However, one of the current challenges is how to adapt these systems in dynamic environments where data is changing over time. In this work we propose a hybrid approach combining different adaptation strategies with the Bayesian optimisation techniques for parametric, structural and hyperparameter optimisation of entire MCPSs. Experiments comparing different adaptation strategies have been performed on 7 datasets from real chemical production processes. Experimental analysis shows that optimisation of entire MCPSs as a method of adaptation to changing environments is feasible and that hybrid strategies perform better in most of the analysed cases.},
}

repository: mreid/papersite

repo_name: mreid/papersite

gha_language: TeX

extension: bib


text:
@InProceedings{conf/robocup/BaiWC12,
  title =	"{RoboCup} 2D Soccer Simulation League: Evaluation Challenges",
  author =	"Mikhail Prokopenko and Peter Wang and Sebastian Marian and Aijun Bai and Xiao Li and Xiaoping Chen",
  publisher =	"Springer",
  year = 	"2017",
  booktitle =	"RoboCup-2017: Robot World Cup XX",
  series =	"Lecture Notes in Computer Science",
}


text:
@inproceedings{n-gram-basedtext,
    author = {William B. Cavnar and John M. Trenkle},
    title = {N-Gram-Based Text Categorization},
    booktitle = {Proceedings of SDAIR-94, 3\textsuperscript{rd} Annual Symposium on Document Analysis and Information Retrieval},
    year = 1994,
    pages = {161--175}
}

@inproceedings{rehurek-kolkus,
    author = {Radim Řehůřek, Milan Kolkus},
    title = {Language Identification on the Web: Extending the Dictionary Method},
    booktitle = {10\textsuperscript{th} International Conference in Computational Linguistics and Intelligent Text Processing.},
    year = {2009},
    month     = {March},
    address   = {Mexico},
    pages = {357--368}
}

@inproceedings{mihalcea-tarau,
  author    = {Mihalcea, Rada  and  Tarau, Paul},
  title     = {TextRank: Bringing Order into Texts},
  booktitle = {Proceedings of EMNLP 2004},
  editor = {Dekang Lin and Dekai Wu},
  year      = 2004,
  month     = {July},
  address   = {Barcelona, Spain},
  publisher = {Association for Computational Linguistics},
  pages     = {404--411}
}

@inproceedings{pageetal98,
  added-at = {2008-01-09T21:02:24.000+0100},
  address = {Brisbane, Australia},
  author = {Page, L. and Brin, S. and Motwani, R. and Winograd, T.},
  biburl = {http://www.bibsonomy.org/bibtex/2ac49c33e114ca171db40cece6a0ae4d6/sac},
  booktitle = {Proceedings of the 7th International World Wide Web Conference},
  interhash = {ca10cf0b0dd668c64b1f378ff0775849},
  intrahash = {ac49c33e114ca171db40cece6a0ae4d6},
  keywords = {2007 kde pagerank seminar web},
  pages = {161--172},
  timestamp = {2008-01-09T21:02:24.000+0100},
  title = {The PageRank citation ranking: Bringing order to the Web},
  url = {citeseer.nj.nec.com/page98pagerank.html},
  year = 1998
}

@article{erkan,
  added-at = {2007-03-22T18:01:00.000+0100},
  author = {Erkan, Günes and Radev, Dragomir R.},
  biburl = {http://www.bibsonomy.org/bibtex/223e4f85edf4799b580e603ecc0bf87f5/schmitz},
  date = {2005-02-08},
  description = {dblp},
  ee = {http://www.cs.washington.edu/research/jair/abstracts/erkan04a.html},
  interhash = {97c888f6aeaabce00b79841c28ced06a},
  intrahash = {23e4f85edf4799b580e603ecc0bf87f5},
  journal = {J. Artif. Intell. Res. (JAIR)},
  keywords = {centrality semanticweb summarization},
  pages = {457-479},
  timestamp = {2007-03-22T18:01:00.000+0100},
  title = {LexRank: Graph-based Lexical Centrality as Salience in Text Summarization.},
  url = {http://dblp.uni-trier.de/db/journals/jair/jair22.html#ErkanR04},
  volume = 22,
  year = 2004
}

@book{introductionir,
  added-at = {2011-11-16T19:06:53.000+0100},
  author = {{Christopher D. Manning, Prabhakar Raghavan}, Hinrich Schütze},
  biburl = {http://www.bibsonomy.org/bibtex/29e12edc4fe0e9ac1121b947aa0098d75/tapu},
  interhash = {6b779b7c4b6e85b614707e21f4f86a48},
  intrahash = {9e12edc4fe0e9ac1121b947aa0098d75},
  keywords = {information introduction irhhu retrieval to},
  publisher = {Cambridge University Press},
  timestamp = {2011-11-16T19:06:53.000+0100},
  title = {Introduction to Information Retrieval},
  year = 2008
}

@PhdThesis{miranda,
	title = "{Modelos para la generación automática de resúmenes abstractivos basado en grafos conceptuales}",
	author = "Miranda Jiménez Sabino",
	school = "Instituto politécnico nacional",
	month = "August",
	year = "2013",
}

@inproceedings{Lin2004a,
  added-at = {2008-04-05T19:02:54.000+0200},
  author = {Lin, Chin-Yew},
  biburl = {http://www.bibsonomy.org/bibtex/2d5e87aebed6aa8a12255afc6b3f20b1e/fsteeg},
  booktitle = {Proceedings of the Workshop on Text Summarization Branches Out (WAS 2004), Barcelona, Spain},
  interhash = {21c182e3172dd7e2be8d7aa530cb435d},
  intrahash = {d5e87aebed6aa8a12255afc6b3f20b1e},
  keywords = {diss evaluation},
  timestamp = {2009-04-30T14:23:47.000+0200},
  title = {ROUGE: a Package for Automatic Evaluation of Summaries},
  year = 2004
}

@inproceedings{hovy,
  added-at = {2009-08-21T18:02:30.000+0200},
  address = {Washington D.C.},
  author = {Lin, Chin-Yew and Hovy, E. H.},
  biburl = {http://www.bibsonomy.org/bibtex/2099aba168ce22592fbfe777c1b1f8c89/jfmaas},
  booktitle = {Proceedings of 5th Conference on Applied Natural Language Processing},
  interhash = {d8f1f89a2fe9856a4da48c5a8c9d826d},
  intrahash = {099aba168ce22592fbfe777c1b1f8c89},
  keywords = {imported},
  month = {March},
  timestamp = {2009-08-21T18:02:30.000+0200},
  title = {Identifying Topics by Position},
  year = 1997
}

@article{barzilay,
  added-at = {2006-07-25T00:00:00.000+0200},
  author = {Barzilay, Regina and McKeown, Kathleen},
  biburl = {http://www.bibsonomy.org/bibtex/2251ff2f1ba3a01cf6e8af5f0dadceabb/dblp},
  date = {2006-07-25},
  description = {dblp},
  ee = {http://dx.doi.org/10.1162/089120105774321091},
  interhash = {a656df5b0a2be86abc9c4efb1b9f1972},
  intrahash = {251ff2f1ba3a01cf6e8af5f0dadceabb},
  journal = {Computational Linguistics},
  keywords = {dblp},
  number = 3,
  pages = {297-328},
  timestamp = {2006-07-25T00:00:00.000+0200},
  title = {Sentence Fusion for Multidocument News Summarization.},
  url = {http://dblp.uni-trier.de/db/journals/coling/coling31.html#BarzilayM05},
  volume = 31,
  year = 2005
}

@article{marcu,
  added-at = {2000-04-03T00:00:00.000+0200},
  author = {Marcu, Daniel},
  biburl = {http://www.bibsonomy.org/bibtex/27c9572e23bf3e1b17e465ab53fcdd729/dblp},
  date = {2000-04-03},
  description = {dblp},
  interhash = {c01c5b7a6884965c84dfef1035596550},
  intrahash = {7c9572e23bf3e1b17e465ab53fcdd729},
  journal = {Computational Linguistics},
  keywords = {dblp},
  number = 1,
  pages = {81-83},
  timestamp = {2000-04-03T00:00:00.000+0200},
  title = {The Theory and Practice of Discourse Parsing and Summarization},
  url = {http://dblp.uni-trier.de/db/journals/coling/coling28.html#Hahn02},
  volume = 28,
  year = 2000
}

@article{salton,
  added-at = {2011-03-14T01:06:44.000+0100},
  author = {Salton, G. and Singhal, A. and Mitra, M. and Buckley, C.},
  biburl = {http://www.bibsonomy.org/bibtex/213775ac1128aa33e9e6c003d0ade8dbd/lantiq},
  file = {full paper:Salton1997.pdf:PDF},
  groups = {public},
  interhash = {7714739266a2aa805e0a6553f154a800},
  intrahash = {13775ac1128aa33e9e6c003d0ade8dbd},
  journal = {Information Processing and Management},
  keywords = {language summarization NLP},
  number = 2,
  pages = {193 - 207},
  timestamp = {2011-08-28T03:11:58.000+0200},
  title = {Automatic Text Structuring and Summarization},
  username = {lantiq},
  volume = 33,
  year = 1997
}

@article{luhn,
 author = {Luhn, H. P.},
 title = {The Automatic Creation of Literature Abstracts},
 journal = {IBM J. Res. Dev.},
 issue_date = {April 1958},
 volume = {2},
 number = {2},
 month = apr,
 year = {1958},
 issn = {0018-8646},
 pages = {159--165},
 numpages = {7},
 url = {http://dx.doi.org/10.1147/rd.22.0159},
 doi = {10.1147/rd.22.0159},
 acmid = {1662360},
 publisher = {IBM Corp.},
 address = {Riverton, NJ, USA},
}

@online{duc2002-guidelines,
   author   =       {{Document Understanding Conference}},
   title    =       {DUC 2002 guidelines},
   url      =       {http://www-nlpir.nist.gov/projects/duc/guidelines/2002.html},
   month    =       {July},
   year     =       {2002},
   urldate  =       {2015-04-25}
}

@inproceedings{rehurek_lrec,
      title = {{Software Framework for Topic Modelling with Large Corpora}},
      author = {Radim {\v R}eh{\r u}{\v r}ek and Petr Sojka},
      booktitle = {{Proceedings of the LREC 2010 Workshop on New
           Challenges for NLP Frameworks}},
      pages = {45--50},
      year = 2010,
      month = May,
      day = 22,
      publisher = {ELRA},
      address = {Valletta, Malta},
      note={\url{http://is.muni.cz/publication/884893/en}},
      language={English}
}

@book{gusfield,
 author = {Gusfield, Dan},
 title = {Algorithms on Strings, Trees, and Sequences: Computer Science and Computational Biology},
 year = {1997},
 isbn = {0-521-58519-8},
 publisher = {Cambridge University Press},
 address = {New York, NY, USA},
}

@inproceedings{robertson,
  author    = {S.E. Robertson and S. Walker and S. Jones and M.M. Hancock-Beaulieu and M. Gatford},
  title     = {Okapi at {TREC-3}},
  booktitle = {Proceedings of The Third Text REtrieval Conference, {TREC} 1994, Gaithersburg,
               Maryland, USA, November 2-4, 1994},
  pages     = {109--126},
  year      = {1994},
  url       = {http://trec.nist.gov/pubs/trec3/papers/city.ps.gz},
}

@inproceedings{lv,
  author    = {Lv, Yuanhua and Zhai, ChengXiang},
  title     = {Lower-bounding term frequency normalization},
  booktitle = {Proceedings of the 20th {ACM} Conference on Information and Knowledge
               Management, {CIKM} 2011, Glasgow, United Kingdom, October 24-28, 2011},
  pages     = {7--16},
  year      = {2011}
}

@article{singhal,
  author    = {Amit Singhal},
  title     = {Modern Information Retrieval: {A} Brief Overview},
  journal = {Bulletin of the IEEE Computer Society Technical Committee on Data Engineering},
  volume    = {24},
  number    = {4},
  pages     = {35--43},
  url = {http://singhal.info/ieee2001.pdf},
  year      = {2001},
}

@article{lexical_chains,
 author = {Ercan, Gonenc and Cicekli, Ilyas},
 title = {Using Lexical Chains for Keyword Extraction},
 journal = {Inf. Process. Manage.},
 issue_date = {November, 2007},
 volume = {43},
 number = {6},
 month = nov,
 year = {2007},
 issn = {0306-4573},
 pages = {1705--1714},
 numpages = {10},
 url = {http://dx.doi.org/10.1016/j.ipm.2007.01.015},
 doi = {10.1016/j.ipm.2007.01.015},
 acmid = {1285164},
 publisher = {Pergamon Press, Inc.},
 address = {Tarrytown, NY, USA},
 keywords = {Keyword extraction, Lexical chains, Machine learning, Natural language processing},
}

@inproceedings{scalable_summarization,
    author = {Mandar Mitrat and Amit Singhal and Chris Buckleytt},
    booktitle = {Intelligent Scalable Text Summarization},
    title = {Automatic Text Summarization by paragraph Extraction},
    url = {http://www.aclweb.org/anthology/W97-0707},
    year = {1997},
    pages = {39--46}
}

@techreport{a_survey,
  author={Dipanjan Das and Andr{\'e} F. T. Martins},
  title={A Survey on Automatic Text Summarization},
  institution = {Carnegie Mellon University, Language Technologies Institute},
  year=2007,
}

@techreport{herings,
title = {Measuring the Power of Nodes in Digraphs},
author = {Herings, P. Jean-Jacques and van der Laan, Gerard and Talman, Dolf},
year = {2001},
institution = {Maastricht University, Maastricht Research School of Economics of Technology and Organization (METEOR)},
type = {Research Memorandum},
number = {007},
abstract = {Many economic and social situations can be represented by a digraph. Both axiomatic and iterative methods to determine the strength or power of all the nodes in a digraph have been proposed in the literature. We propose a new method, where the power of a node is determined by both the number of its successors, as in axiomatic methods, and the powers of its successors, as in iterative methods. Contrary to other iterative methods, we obtain a full ranking of the nodes for any digraph. The new power function, called the positional power function, can either be determined as the unique solution to a system of equations, or as the limit point of an iterative process. The solution is also explicitly characterized. This characterization enables us to derive a number of interesting properties of the positional power function. Next we consider a number of extensions, like the positional weakness function and the position function.},
keywords = {mathematical economics and econometrics ;},
url = {http://EconPapers.repec.org/RePEc:unm:umamet:2001007}
}

@inproceedings{similarity_functions,
  author = {Ouyang, You and Li, Wenjie and Wei, Furu and Lu, Qin},
  biburl = {http://www.bibsonomy.org/bibtex/2a384bf22d20ddc2109a885587ddebada/dblp},
  booktitle = {ICCPOL},
  date = {2009-03-29},
  description = {dblp},
  editor = {Li, Wenjie and Aliod, Diego Mollá},
  ee = {http://dx.doi.org/10.1007/978-3-642-00831-3_18},
  interhash = {e8457ef0e7335cce958d0916ad0ae030},
  intrahash = {a384bf22d20ddc2109a885587ddebada},
  isbn = {978-3-642-00830-6},
  keywords = {dblp},
  pages = {189-200},
  publisher = {Springer},
  series = {Lecture Notes in Computer Science},
  timestamp = {2009-03-31T11:33:24.000+0200},
  title = {Learning Similarity Functions in Graph-Based Document Summarization.},
  url = {http://dblp.uni-trier.de/db/conf/iccpol/iccpol2009.html#OuyangLWL09},
  volume = 5459,
  year = 2009
}

@article{kleinberg,
 author = {Kleinberg, Jon M.},
 title = {Authoritative Sources in a Hyperlinked Environment},
 journal = {J. ACM},
 issue_date = {Sept. 1999},
 volume = {46},
 number = {5},
 month = sep,
 year = {1999},
 issn = {0004-5411},
 pages = {604--632},
 numpages = {29},
 url = {http://doi.acm.org/10.1145/324133.324140},
 doi = {10.1145/324133.324140},
 acmid = {324140},
 publisher = {ACM},
 address = {New York, NY, USA},
 keywords = {World Wide Web, graph algorithms, hypertext structure, link analysis},
}

@inproceedings{garg,
  author    = {Nikhil Garg and
               Beno{\^{\i}}t Favre and
               Korbinian Riedhammer and
               Dilek Hakkani{-}T{\"{u}}r},
  title     = {Clusterrank: a graph based method for meeting summarization},
  booktitle = {{INTERSPEECH} 2009, 10th Annual Conference of the International Speech
               Communication Association, Brighton, United Kingdom, September 6-10,
               2009},
  pages     = {1499--1502},
  year      = {2009},
  url       = {http://www.isca-speech.org/archive/interspeech_2009/i09_1499.html},
  timestamp = {Wed, 09 Mar 2011 07:51:21 +0100},
  biburl    = {http://dblp.uni-trier.de/rec/bib/conf/interspeech/GargFRH09},
  bibsource = {dblp computer science bibliography, http://dblp.org}
}

@inproceedings{balcerzak,
 author = {Balcerzak, Bartomiej and Jaworski, Wojciech and Wierzbicki, Adam},
 title = {Application of TextRank Algorithm for Credibility Assessment},
 booktitle = {Proceedings of the 2014 IEEE/WIC/ACM International Joint Conferences on Web Intelligence (WI) and Intelligent Agent Technologies (IAT) - Volume 01},
 series = {WI-IAT '14},
 year = {2014},
 isbn = {978-1-4799-4143-8-01},
 pages = {451--454},
 numpages = {4},
 url = {http://dx.doi.org/10.1109/WI-IAT.2014.70},
 doi = {10.1109/WI-IAT.2014.70},
 acmid = {2682756},
 publisher = {IEEE Computer Society},
 address = {Washington, DC, USA},
 keywords = {Text Summarization, TextRank, Information Credibility, Web 2.0},
}

@inproceedings{mihalcea,
 author = {Mihalcea, Rada},
 title = {Graph-based Ranking Algorithms for Sentence Extraction, Applied to Text Summarization},
 booktitle = {Proceedings of the ACL 2004 on Interactive Poster and Demonstration Sessions},
 series = {ACLdemo '04},
 year = {2004},
 location = {Barcelona, Spain},
 articleno = {20},
 url = {http://dx.doi.org/10.3115/1219044.1219064},
 doi = {10.3115/1219044.1219064},
 acmid = {1219064},
 publisher = {Association for Computational Linguistics},
 address = {Stroudsburg, PA, USA},
}

repository: FaycalBorsali/langdetect

repo_name: FaycalBorsali/langdetect


text:
var ParseData = cc.Class({
    ctor() {
        this.cards = [];            // 牌的数据
        this.type = 0;              // 类型(默认是非法牌型)
        this.typeWeight = 0;        // 类型权重
        this.startCard = 0;         // 开始的牌
        this.step = 1;              // 递增步数
        this.carryCards = [];       // 携带的牌
        this.parseDataFormat = [];  // 用于牌型检测的数据结构
    }
});

module.exports = ParseData;

extension: js


text:
@Article{sanchez:ijhr:2020,
  author    = {S{\'a}nchez, Daniel and Wan, Weiwei and Kanehiro, Fumio and Harada, Kensuke},
  title     = {Re-posing Objects Considering Bipedal Stability Constraints: An Approach for Stability Preservation During Humanoid Manipulation},
  journal   = {International Journal of Humanoid Robotics},
  year      = {2020},
  volume    = {17},
  number    = {02},
  pages     = {2050005},
  month     = {April},
  doi       = {https://doi.org/10.1142/S021984362050005X},
  url       = {https://www.worldscientific.com/doi/abs/10.1142/S021984362050005X?journalCode=ijhr},
  keywords  = {Re-grasp planning, robot balance, manipulation constraints},
  abstract  = {This paper presents a balance-centered planner for object re-posing. It uses Center-of-Mass (CoM) constraints to preserve robot stability and provides stable, IK-feasible, and collision-free upper-body poses, allowing the robot to complete dexterous object manipulation tasks with different objects. The technical contributions of the planner are two-fold. First, it evaluates the robot stability margin for each robot pose during manipulation planning to find a stable manipulation motion. Second, it provides an RRT-inspired task-related stability estimation used to compare different bipedal stances. Simulations and real-world experiments are performed with the HRP-5P humanoid robot, the 5th generation of the HRP robot family, to validate the planner and compare different robot stances and approaches for object re-posing. The experiment results suggest that the proposed planner provides robust behavior for the humanoid robot while performing re-posing tasks.},
  publisher = {World Scientific Publ Co PTE Ltd},
  address   = {5 Toh Tuck Link, Singapore 596224, Singapore}
}


text:
//                           _       _
// __      _____  __ ___   ___  __ _| |_ ___
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
//  \ V  V /  __/ (_| |\ V /| | (_| | ||  __/
//   \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
//
//  Copyright © 2016 - 2023 Weaviate B.V. All rights reserved.
//
//  CONTACT: hello@weaviate.io
//

package classification

import (
	"fmt"
	"time"

	libfilters "github.com/weaviate/weaviate/entities/filters"
	"github.com/weaviate/weaviate/entities/models"
	"github.com/weaviate/weaviate/entities/modulecapabilities"
	"github.com/weaviate/weaviate/entities/schema"
	"github.com/weaviate/weaviate/entities/search"
	libclassification "github.com/weaviate/weaviate/usecases/classification"
)

type tfidfScorer interface {
	GetAllTerms(docIndex int) []TermWithTfIdf
}

type contextualPreparationContext struct {
	tfidf   map[string]tfidfScorer    // map[basedOnProp]scorer
	targets map[string]search.Results // map[classifyProp]targets
}

func (c *Classifier) prepareContextualClassification(schema schema.Schema,
	vectorRepo modulecapabilities.VectorClassSearchRepo, params models.Classification,
	filters libclassification.Filters, items search.Results,
) (contextualPreparationContext, error) {
	p := &contextualPreparer{
		inputItems: items,
		params:     params,
		repo:       vectorRepo,
		filters:    filters,
		schema:     schema,
	}

	return p.do()
}

type contextualPreparer struct {
	inputItems []search.Result
	params     models.Classification
	repo       modulecapabilities.VectorClassSearchRepo
	filters    libclassification.Filters
	schema     schema.Schema
}

func (p *contextualPreparer) do() (contextualPreparationContext, error) {
	pctx := contextualPreparationContext{}

	targets, err := p.findTargetsForProps()
	if err != nil {
		return pctx, err
	}

	pctx.targets = targets

	tfidf, err := p.calculateTfidfForProps()
	if err != nil {
		return pctx, err
	}

	pctx.tfidf = tfidf

	return pctx, nil
}

func (p *contextualPreparer) calculateTfidfForProps() (map[string]tfidfScorer, error) {
	props := map[string]tfidfScorer{}

	for _, basedOnName := range p.params.BasedOnProperties {
		calc := NewTfIdfCalculator(len(p.inputItems))
		for _, obj := range p.inputItems {
			schemaMap, ok := obj.Schema.(map[string]interface{})
			if !ok {
				return nil, fmt.Errorf("no or incorrect schema map present on source object '%s': %T", obj.ID, obj.Schema)
			}

			var docCorpus string
			if basedOn, ok := schemaMap[basedOnName]; ok {
				basedOnString, ok := basedOn.(string)
				if !ok {
					return nil, fmt.Errorf("property '%s' present on %s, but of unexpected type: want string, got %T",
						basedOnName, obj.ID, basedOn)
				}

				docCorpus = basedOnString
			}

			calc.AddDoc(docCorpus)
		}

		calc.Calculate()
		props[basedOnName] = calc
	}

	return props, nil
}

func (p *contextualPreparer) findTargetsForProps() (map[string]search.Results, error) {
	targetsMap := map[string]search.Results{}

	for _, targetProp := range p.params.ClassifyProperties {
		class, err := p.classAndKindOfTarget(targetProp)
		if err != nil {
			return nil, fmt.Errorf("target prop '%s': find target class: %v", targetProp, err)
		}

		targets, err := p.findTargets(class)
		if err != nil {
			return nil, fmt.Errorf("target prop '%s': find targets: %v", targetProp, err)
		}

		targetsMap[targetProp] = targets
	}

	return targetsMap, nil
}

func (p *contextualPreparer) findTargets(class schema.ClassName) (search.Results, error) {
	ctx, cancel := contextWithTimeout(30 * time.Second)
	defer cancel()
	res, err := p.repo.VectorClassSearch(ctx, modulecapabilities.VectorClassSearchParams{
		Filters: p.filters.Target(),
		Pagination: &libfilters.Pagination{
			Limit: 10000,
		},
		ClassName:  string(class),
		Properties: []string{"id"},
	})
	if err != nil {
		return nil, fmt.Errorf("search closest target: %v", err)
	}

	if len(res) == 0 {
		return nil, fmt.Errorf("no potential targets found of class '%s'", class)
	}

	return res, nil
}

func (p *contextualPreparer) classAndKindOfTarget(propName string) (schema.ClassName, error) {
	prop, err := p.schema.GetProperty(schema.ClassName(p.params.Class), schema.PropertyName(propName))
	if err != nil {
		return "", fmt.Errorf("get target prop '%s': %v", propName, err)
	}

	dataType, err := p.schema.FindPropertyDataType(prop.DataType)
	if err != nil {
		return "", fmt.Errorf("extract dataType of prop '%s': %v", propName, err)
	}

	// we have passed validation, so it is safe to assume that this is a ref prop
	targetClasses := dataType.Classes()

	// len=1 is guaranteed from validation
	targetClass := targetClasses[0]

	return targetClass, nil
}

repository: weaviate/weaviate

repo_name: weaviate/weaviate


text:
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
  "C"
  )
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_C
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/calloc.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/calloc.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/ctype.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/ctype.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/free.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/free.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/malloc.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/malloc.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/malloc_common.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/malloc_common.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/memchr.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/memchr.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/memcmp.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/memcmp.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/memcpy.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/memcpy.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/memset.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/memset.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/printf.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/printf.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/realloc.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/realloc.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/strchr.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/strchr.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/strcmp.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/strcmp.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/strcpy.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/strcpy.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/strlen.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/strlen.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/strncpy.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/strncpy.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/strsep.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/strsep.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/lib/strtol.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/lib/strtol.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/src/coffee.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/src/coffee.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/src/main.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/src/main.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/src/message.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/src/message.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/src/msg_queue.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/src/msg_queue.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/src/packet.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/src/packet.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/src/request.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/src/request.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/src/response.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/src/response.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/src/user.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/src/user.c.o"
  "/vagrant/driller/data/linux/processed-challenges/LulzChat/cb_2/src/util.c" "/vagrant/driller/data/linux/processed-challenges/LulzChat/bin/CMakeFiles/LulzChat_2_patched.dir/cb_2/src/util.c.o"
  )
set(CMAKE_C_COMPILER_ID "Clang")

# Preprocessor definitions for this target.
set(CMAKE_TARGET_DEFINITIONS
  "FORTIFY_SOURCE=0"
  "LINUX"
  "PATCHED"
  "errno=__cgc_errno"
  )

# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
  "/vagrant/driller/data/linux/build/include/CMakeFiles/cgc.dir/DependInfo.cmake"
  "/vagrant/driller/data/linux/build/include/tiny-AES128-C/CMakeFiles/tiny-AES128-C.dir/DependInfo.cmake"
  )

# The include file search paths:
set(CMAKE_C_TARGET_INCLUDE_PATH
  "../include"
  "../processed-challenges/LulzChat/cb_2/lib"
  "../processed-challenges/LulzChat/cb_2/src"
  "../processed-challenges/LulzChat/cb_2/include"
  "../include/tiny-AES128-C"
  )
set(CMAKE_CXX_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_Fortran_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_ASM_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})

repository: siddk/driller-lite

repo_name: siddk/driller-lite

extension: cmake


text:
require networkmanager-0.7.inc

DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE_angstrom = "1"

SRCREV = "9b61ec7c58e8106c28d01b33ad0b263aefb1f347"
PV = "0.8.2+git"
PR_append = ".gitr${SRCREV}"

inherit gnome

SRC_URI = "git://anongit.freedesktop.org/NetworkManager/NetworkManager;protocol=git;branch=NM_0_8"

S = "${WORKDIR}/git"

SRC_URI += " \
    file://remove-gtk-doc-make.patch \
    file://nm-system-settings.conf \
    file://NetworkManager \
    file://gtk-doc.make \
"

EXTRA_OECONF += " --with-dhclient=${base_sbindir}/dhclient \
                  --with-iptables=${sbindir}/iptables \
"

do_configure_prepend() {
    cp ${WORKDIR}/gtk-doc.make ${S}/
    echo "EXTRA_DIST = version.xml" > gnome-doc-utils.make
    sed -i -e 's:man \\:man:' -e s:docs::g ${S}/Makefile.am
    sed -i -e /^docs/d ${S}/configure.ac
}

do_install_append () {
	install -d ${D}/etc/NetworkManager/
	install -m 0644 ${WORKDIR}/nm-system-settings.conf ${D}/etc/NetworkManager/NetworkManager.conf
	install -m 0755 ${WORKDIR}/NetworkManager ${D}/etc/init.d

	# Install an empty VPN folder as nm-connection-editor will happily segfault without it :o.
	# With or without VPN support built in ;).
	install -d ${D}/etc/NetworkManager/VPN
}

FILES_${PN} += " ${datadir}/polkit-1/"
RRECOMMENDS_${PN} += "iptables"


text:
package main

type MinuteOPR struct {
	Minimum uint64
	Chunks  []uint64
	Latest  uint64
}

func NewMinuteOPR(base uint64) *MinuteOPR {
	m := new(MinuteOPR)
	m.Minimum = base
	m.Latest = base
	return m
}

func (m *MinuteOPR) AddPOW(score uint64) {
	if score > m.Latest {
		m.Latest = score
	}
}

func (m *MinuteOPR) WantsMore() bool {
	return m.Latest < m.Minimum
}

func (m *MinuteOPR) Finish() {
	if len(m.Chunks) > 0 && m.Latest < m.Minimum {
		m.Minimum = m.Latest
	}
	m.Chunks = append(m.Chunks, m.Latest)
	m.Latest = 0
}

repository: WhoSoup/sim-minuteopr

repo_name: WhoSoup/sim-minuteopr


text:
package recovertests

import (
	"steve/client_pb/msgid"
	"steve/client_pb/room"
	"steve/simulate/global"
	"steve/simulate/utils"
	"testing"

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

// Test_QuitRecover 退出后再进入恢复牌局
// step1: 开局 0号玩家为庄家
// step2: 0号玩家在收到 自询 后，记录桌面信息，发送 退出游戏请求
// step3: 3号玩家收到 自询通知 后，0号玩家发送 加入桌面请求
// step4: 0号玩家收到 加入桌面请求应答：有正在进行的游戏，发送 恢复牌局请求
// step5: 0号玩家收到 恢复牌局应答 判断数据的正确性
func Test_QuitRecover(t *testing.T) {
	params := global.NewCommonStartGameParams()
	params.WallCards = []uint32{31, 31, 31, 31, 32, 32, 32, 32}
	quitSeat := params.BankerSeat
	mopaiSeat := (quitSeat + 1) % len(params.Cards)
	// step 1
	deskData, err := utils.StartGame(params)
	assert.Nil(t, err)
	assert.NotNil(t, deskData)
	// step 2
	quitPlayer := utils.GetDeskPlayerBySeat(quitSeat, deskData)
	expector, _ := quitPlayer.Expectors[msgid.MsgID_ROOM_ZIXUN_NTF]
	ntf1 := &room.RoomZixunNtf{}
	assert.Nil(t, expector.Recv(global.DefaultWaitMessageTime, ntf1))
	assert.Nil(t, utils.SendQuitReq(deskData, quitSeat))

	// step 3、4
	mopaiPlayer := utils.GetDeskPlayerBySeat(mopaiSeat, deskData)
	expector, _ = mopaiPlayer.Expectors[msgid.MsgID_ROOM_ZIXUN_NTF]
	ntf2 := &room.RoomZixunNtf{}
	assert.Nil(t, expector.Recv(global.DefaultWaitMessageTime, ntf2))

	// TODO 匹配功能还未完善，先不测这个
	// rsp, err := utils.ApplyJoinDesk(quitPlayer.Player, common.GameId_GAMEID_XUELIU)
	// assert.Nil(t, err)
	// assert.Equal(t, room.RoomError_DESK_GAME_PLAYING, rsp.GetErrCode())
	assert.Nil(t, utils.SendRecoverGameReq(quitSeat, deskData))

	// step 5
	expector, _ = quitPlayer.Expectors[msgid.MsgID_ROOM_RESUME_GAME_RSP]
	ntf3 := &room.RoomResumeGameRsp{}
	assert.Nil(t, expector.Recv(global.DefaultWaitMessageTime, ntf3))
	assert.Equal(t, room.RoomError_SUCCESS, ntf3.GetResumeRes())
	assert.Equal(t, room.GameStage_GAMESTAGE_PLAYCARD, ntf3.GetGameInfo().GetGameStage())
	var player *room.GamePlayerInfo
	for _, player = range ntf3.GetGameInfo().GetPlayers() {
		if player.GetPlayerInfo().GetSeat() == uint32(quitSeat) {
			break
		}
	}
	assert.False(t, player.GetIsTuoguan())
	assert.Equal(t, room.XingPaiState_XP_STATE_NORMAL, player.GetXpState())
	assert.Equal(t, room.GameId_GAMEID_XUELIU, ntf3.GetGameInfo().GetGameId())
}


text:
include(FetchContent)

FetchContent_Declare(
  AudioDeviceLib
  GIT_REPOSITORY https://github.com/fredemmott/AudioDeviceLib
  GIT_TAG be72a483704505c8453beed5dad458217db85f16
)

FetchContent_GetProperties(AudioDeviceLib)

if(NOT audiodevicelib_POPULATED)
  FetchContent_Populate(AudioDeviceLib)
  add_subdirectory("${audiodevicelib_SOURCE_DIR}" "${audiodevicelib_BINARY_DIR}" EXCLUDE_FROM_ALL)
endif()

repository: fredemmott/StreamDeck-AudioSwitcher

repo_name: fredemmott/StreamDeck-AudioSwitcher

gha_language: CSS