text
stringlengths 13
30k
|
---|
{"texts": ["Q:\n\nHow to create a Junction Point using WinApi?", "\n\nThere is CreateHardLink function to create Hardlinks.(Since Win2000)\nAnd there is CreateSymbolicLink function since Vista has been released.", "\nBut why isn't there a CreateJunction?", "\nHow does mklink make a junction?", "\nAnd How do I write codes to make junction in my app?", "\n\nA:\n\nThey're reparse points, so FSCTL_SET_REPARSE_POINT is the magic FSCTL. ", "Here's an example, never tried it but seems right:\nhttp://www.flexhex.com/docs/articles/hard-links.phtml\n-scott\n\nA:\n\nThere's currently no built-in single function for creating junctions like there is for symbolic links or hard links. ", "Like snoone said, it's a reparse point, so you have to use DeviceIoControl to interact with it. ", "If I remember correctly, the source he linked is the same source I played around with when I was trying to figure this out, and I don't think I ran into any issues with it.", "\nAlternatively, if you're not against using an external library in your application, and you're going to need functionality for reading/checking/deleting junctions, you might want to look into reparselib, which is a pretty decent library wrapping junctions, symbolic links, mount points, and custom reparse points.", "\n\n"], "meta": {"pile_set_name": "StackExchange"}, "scores": [0.0008140528225339949, 0.0006875795661471784, 0.0006583126960322261, 0.0007892994326539338, 0.0007581829559057951, 0.017668571323156357, 0.0006814006483182311, 0.0013454413274303079, 0.0005593349924311042, 0.0006023389287292957, 0.001995444530621171], "avg_score": 0.0024145417476326906, "num_sents": 11}
|
{"texts": ["Q:\n\nCustomize \"New\" tab in Word backstage to add custom templates\n\nI want customize Word's backstage to add custom templates in \"New\" tab and not another.", "\nTemplates come from a web service. ", "I use Office 2010. ", "Application is develop in C# with Visual Studio 2010.", "\nIs it possible?", "\n\nA:\n\nYou can add custom templates to the New tab of Word's backstage view by providing an XML manifest, which describes the template and the location of a preview image.", "\nThe detailed steps are described here:\n\nDeploy custom templates in the 2007 Office system \n\nBe aware though that this is a rarely used feature and therefore is rather poorly supported. ", "For example, I found the following shortcomings:\n\nWhen opening the folder with the custom templates the first time, the view is empty. ", "The second time you access the backstage view, the templates are shown.", "\nPreview and thumbnail images are cached locally. ", "However, I never found a way to update the local cache (the location of the cache is %LOCALAPPDATA%\\Microsoft\\Office\\Spotlight\\14, replace 14 with whatever your Office version is). ", "When manually deleting the cache, you will also have to delete the following Registry key: HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\14.0\\Common\\Spotlight\\Content\\<provider name> (replace 14 with whatever your Office version is).", "\n\n"], "meta": {"pile_set_name": "StackExchange"}, "scores": [0.0006280966917984188, 0.0006090660463087261, 0.000629324174951762, 0.0006030831136740744, 0.0007495089084841311, 0.0005527454777620733, 0.0005615523550659418, 0.0006405394524335861, 0.0005872776382602751, 0.0005818939534947276, 0.0007051686407066882, 0.0009271132876165211, 0.001995444530621171], "avg_score": 0.0007516010977829305, "num_sents": 13}
|
{"texts": ["Integrating Data From Randomized Controlled Trials and Observational Studies to Assess Survival in Rare Diseases.", "\nBackground Conducting randomized controlled trials to investigate survival in a rare disease like pulmonary arterial hypertension has considerable ethical and logistical constraints. ", "In many studies, such as the Study with an Endothelin Receptor Antagonist in Pulmonary Arterial Hypertension to Improve Clinical Outcome (SERAPHIN) randomized controlled trial, evaluating survival is further complicated by bias introduced by allowing active therapy among placebo-treated patients who clinically deteriorate. ", "Methods and Results SERAPHIN enrolled and followed patients in the same time frame as the US Registry to Evaluate Early And Long-term PAH Disease Management, providing an opportunity to compare observed survival for SERAPHIN patients with predicted survival had they received real-world treatment as in the Registry to Evaluate Early And Long-term PAH Disease Management. ", "From the Registry to Evaluate Early And Long-term PAH Disease Management (N=3515), 734 patients who met SERAPHIN eligibility criteria were selected and their data used to build a prediction model for time to death up to 3 years based on 10 baseline prognostic variables. ", "The model was used to predict a survival curve for each of the 742 SERAPHIN patients via their baseline variables. ", "The average of these predicted survival curves was compared with observed survival of the placebo (n=250) and macitentan 10 mg (n=242) groups using a log-rank test and Cox proportional hazard model. ", "Observed mortality risk for patients randomized to placebo, 62% of whom were taking background pulmonary arterial hypertension therapy, tended to be lower than that predicted for all SERAPHIN patients (16% lower; P=0.259). ", "The observed placebo survival curve closely approximated the predicted survival curve for the first 15 months. ", "Beyond that time, observed risk of mortality decreased compared with predicted mortality, potentially reflecting the impact of crossover of patients in the placebo group to active therapy. ", "Over 3 years, risk of mortality observed with macitentan 10 mg was 35% lower than predicted mortality ( P=0.010). ", "Conclusions These analyses show that, in a rare disease, real-world observational data can complement randomized controlled trial data to overcome some challenges associated with assessing survival in the setting of a randomized controlled trial. ", "Clinical Trial Registration https://www.clinicaltrials.gov . ", "Unique identifiers: NCT00660179 and NCT00370214."], "meta": {"pile_set_name": "PubMed Abstracts"}, "scores": [0.0005604967591352761, 0.0005671794642694294, 0.0006038849242031574, 0.0007097789784893394, 0.0007616156945005059, 0.0007283241720870137, 0.0006691266316920519, 0.0006553118000738323, 0.0005511748022399843, 0.0005714736762456596, 0.0006897840648889542, 0.0005620939773507416, 0.0005975093226879835, 0.0006444593309424818], "avg_score": 0.0006337295427718865, "num_sents": 14}
|
{"texts": ["Q:\n\nBeautifulsoup: Loop through class and extract information\n\nimport requests\nfrom bs4 import BeautifulSoup\n\nres = requests.get('https://www.amcham.com.au/web/Events/Web/Events/Upcoming_Events.aspx?hkey=6f098583-ca3d-4a6f-87de-cd4f13d50b11')\nsoup = BeautifulSoup(res.text,\"lxml\")\n\nevent_title = soup.find('span', {'class': 'eventTitle'})\nevent_location = soup.find('span', {'class': 'city'})\nevent_place = soup.find('span', {'class': 'place'})\nevent_date = soup.find('span', {'class': 'eventDate'})\n\nprint(event_title.text)\nprint(event_place.text,event_location.text)\nprint(event_date.text)\n\nI'm using this code to extract upcoming events Titles,location,date information from the website. ", " \nI'm looking forward to loop throught the entire series on events in the website and extract event title,location,place,date information, Can some one help me with the same?", "\n\nA:\n\nYou need to use findAll to get a full listing for each:\nevent_title = [i.text for i in soup.findAll('span', {'class': 'eventTitle'})]\nevent_location = [i.text for i in soup.findAll('span', {'class': 'city'})]\nevent_place = [i.text for i in soup.findAll('span', {'class': 'place'})]\nevent_date = [i.text for i in soup.findAll('span', {'class': 'eventDate'})]\n\n"], "meta": {"pile_set_name": "StackExchange"}, "scores": [0.0008266548393294215, 0.0005752410506829619, 0.0007032834109850228], "avg_score": 0.0007017264336658021, "num_sents": 3}
|
{"texts": ["This application is for a new training program in the mechanisms of signal transduction in the nervous system at New York University Medical Center. ", "The training faculty include fifteen distinguished scientists representing the Departments of Physiology and Neuroscience, Pharmacology, Microbiology Biochemistry and Cell Biology. ", "The research interests of the program faculty encompass a broad range of fields, including growth factors, cytokines, chemokines, neurotrophic factors and the mechanisms by which extracellular and intracellular signals are transduced; cell adhesion molecules that influence neuronal axonal pathfinding and process outgrowth; selection of synaptic targets; ion channel function; and processes that lead to axonal-glial cell communication. ", "The purpose of this program is to foster the training of graduate students and postdoctoral fellows in basic mechanisms by which neuronal, glial and neuromuscular structure and function are determined. ", "The underlying theme of the program is that cell specification and function in the nervous system are dependent upon ligand-receptor interactions and activation of second messenger pathways. ", "Based upon a record of productive interactions, research collaborations among the trainees and between the participating faculty will be fostered. ", "Trainees will participate in activities including weekly seminars and journal clubs in cellular and developmental neurosciences, journal clubs, and meetings that are designed to provide a broad educational exposure. ", "The emphasis in this training program will be on fundamental biochemical and cellular mechanisms, which are relevant to disorders of the nervous system, including Alzheimer's disease, Parkinson's disease, paralysis, multiple sclerosis and muscular dystrophy."], "meta": {"pile_set_name": "NIH ExPorter"}, "scores": [0.0005671359831467271, 0.0005578614654950798, 0.0006858118576928973, 0.0008120702113956213, 0.000631774659268558, 0.0005014313501305878, 0.000565617170650512, 0.0008452563197351992], "avg_score": 0.0006458698771893978, "num_sents": 8}
|
{"task": "b9c562f6_guide_to_the_World_of_Warcraft__22", "input": "[0] Gruul's Lair [1] Cleared [2] Cleared [3] Cleared [4] Cleared [5] Cleared [6] Cleared [7] Cleared [8] Cleared [9] Cleared [10] Cleared [11] Cleared [12] Cleared [13] Cleared [14] Cleared [15] Cleared [16] Cleared [17] Cleared [18] Cleared [19] Cleared [20] Cleared [21] Cleared [23] Cleared [24] Cleared [25] Cleared [22] ", "output": "Cleared", "options": [["B", "l", "o", "o", "d", " ", "o", "f", " ", "R", "e", "a", "l", "i", "t", "y"], ["C", "l", "e", "a", "r", "e", "d"], ["L", "e", "o", "t", "h", "e", "r", "a", "s", " ", "t", "h", "e", " ", "B", "l", "i", "n", "d"], ["A", "l", "'", "a", "r"], ["A", "z", "g", "a", "l", "o", "r"], ["S", "h", "a", "d", "e", " ", "o", "f", " ", "A", "k", "a", "m", "a"], ["-"]], "pageTitle": "Server:Daggerspine US - WoWWiki - Your guide to the World of Warcraft", "outputColName": "22", "url": "http://wowwiki.wikia.com/Server:Daggerspine_US", "wdcFile": "39/1438042989126.22_20150728002309-00007-ip-10-236-191-2_266949694_3.json"}
|
{"task": "b9c562f6_guide_to_the_World_of_Warcraft__22", "input": "[0] Magtheridon [1] Cleared [2] Cleared [3] Cleared [4] Cleared [5] Cleared [6] Cleared [7] Cleared [8] Cleared [9] Cleared [10] Cleared [11] Cleared [12] Cleared [13] Cleared [14] Cleared [15] Cleared [16] Cleared [17] Cleared [18] Cleared [19] Cleared [20] Cleared [21] Cleared [23] Cleared [24] Cleared [25] Cleared [22] ", "output": "Cleared", "options": [["B", "l", "o", "o", "d", " ", "o", "f", " ", "R", "e", "a", "l", "i", "t", "y"], ["C", "l", "e", "a", "r", "e", "d"], ["L", "e", "o", "t", "h", "e", "r", "a", "s", " ", "t", "h", "e", " ", "B", "l", "i", "n", "d"], ["A", "l", "'", "a", "r"], ["A", "z", "g", "a", "l", "o", "r"], ["S", "h", "a", "d", "e", " ", "o", "f", " ", "A", "k", "a", "m", "a"], ["-"]], "pageTitle": "Server:Daggerspine US - WoWWiki - Your guide to the World of Warcraft", "outputColName": "22", "url": "http://wowwiki.wikia.com/Server:Daggerspine_US", "wdcFile": "39/1438042989126.22_20150728002309-00007-ip-10-236-191-2_266949694_3.json"}
|
{"task": "b9c562f6_guide_to_the_World_of_Warcraft__22", "input": "[0] Serpentshrine Cavern [1] Cleared [2] Cleared [3] Cleared [4] Cleared [5] Cleared [6] Cleared [7] Cleared [8] Cleared [9] Cleared [10] Cleared [11] Cleared [12] Cleared [13] Cleared [14] Lady Vashj [15] Leotheras the Blind [16] Cleared [17] Cleared [18] Cleared [19] Cleared [20] Cleared [21] Leotheras the Blind [23] Cleared [24] Leotheras the Blind [25] Leotheras the Blind [22] ", "output": "Leotheras the Blind", "options": [["B", "l", "o", "o", "d", " ", "o", "f", " ", "R", "e", "a", "l", "i", "t", "y"], ["C", "l", "e", "a", "r", "e", "d"], ["L", "e", "o", "t", "h", "e", "r", "a", "s", " ", "t", "h", "e", " ", "B", "l", "i", "n", "d"], ["A", "l", "'", "a", "r"], ["A", "z", "g", "a", "l", "o", "r"], ["S", "h", "a", "d", "e", " ", "o", "f", " ", "A", "k", "a", "m", "a"], ["-"]], "pageTitle": "Server:Daggerspine US - WoWWiki - Your guide to the World of Warcraft", "outputColName": "22", "url": "http://wowwiki.wikia.com/Server:Daggerspine_US", "wdcFile": "39/1438042989126.22_20150728002309-00007-ip-10-236-191-2_266949694_3.json"}
|
{"task": "b9c562f6_guide_to_the_World_of_Warcraft__22", "input": "[0] The Eye [1] Cleared [2] Cleared [3] Cleared [4] Cleared [5] Cleared [6] Cleared [7] Cleared [8] Cleared [9] Cleared [10] Cleared [11] Cleared [12] Void Reaver, Al'ar [13] Cleared [14] - [15] Al'ar [16] Al'ar [17] Al'ar [18] Al'ar [19] Al'ar [20] Al'ar [21] Al'ar [23] Cleared [24] Al'ar [25] Al'ar [22] ", "output": "Al'ar", "options": [["B", "l", "o", "o", "d", " ", "o", "f", " ", "R", "e", "a", "l", "i", "t", "y"], ["C", "l", "e", "a", "r", "e", "d"], ["L", "e", "o", "t", "h", "e", "r", "a", "s", " ", "t", "h", "e", " ", "B", "l", "i", "n", "d"], ["A", "l", "'", "a", "r"], ["A", "z", "g", "a", "l", "o", "r"], ["S", "h", "a", "d", "e", " ", "o", "f", " ", "A", "k", "a", "m", "a"], ["-"]], "pageTitle": "Server:Daggerspine US - WoWWiki - Your guide to the World of Warcraft", "outputColName": "22", "url": "http://wowwiki.wikia.com/Server:Daggerspine_US", "wdcFile": "39/1438042989126.22_20150728002309-00007-ip-10-236-191-2_266949694_3.json"}
|
{"task": "b9c562f6_guide_to_the_World_of_Warcraft__22", "input": "[0] Mount Hyjal [1] Cleared [2] Cleared [3] Cleared [4] Cleared [5] Cleared [6] Cleared [7] Cleared [8] Cleared [9] Cleared [10] Cleared [11] Cleared [12] Cleared [13] Azgalor [14] Cleared [15] Cleared [16] Azgalor [17] Azgalor [18] Azgalor [19] Azgalor [20] Kaz'rogal [21] Azgalor [23] Azgalor [24] Anetheron [25] Anetheron [22] ", "output": "Azgalor", "options": [["B", "l", "o", "o", "d", " ", "o", "f", " ", "R", "e", "a", "l", "i", "t", "y"], ["C", "l", "e", "a", "r", "e", "d"], ["L", "e", "o", "t", "h", "e", "r", "a", "s", " ", "t", "h", "e", " ", "B", "l", "i", "n", "d"], ["A", "l", "'", "a", "r"], ["A", "z", "g", "a", "l", "o", "r"], ["S", "h", "a", "d", "e", " ", "o", "f", " ", "A", "k", "a", "m", "a"], ["-"]], "pageTitle": "Server:Daggerspine US - WoWWiki - Your guide to the World of Warcraft", "outputColName": "22", "url": "http://wowwiki.wikia.com/Server:Daggerspine_US", "wdcFile": "39/1438042989126.22_20150728002309-00007-ip-10-236-191-2_266949694_3.json"}
|
{"task": "b9c562f6_guide_to_the_World_of_Warcraft__22", "input": "[0] The Black Temple [1] Cleared [2] Cleared [3] Cleared [4] Cleared [5] Cleared [6] Cleared [7] Cleared [8] Cleared [9] Illidari Council [10] Mother Shahraz [11] - [12] Mother Shahraz [13] Reliquary of Souls [14] Shade of Akama [15] Reliquary of Souls [16] Teron Gorefiend [17] Shade of Akama [18] Shade of Akama [19] Supremus [20] Supremus [21] Shade of Akama [23] Reliquary of Souls [24] Shade of Akama [25] Shade of Akama [22] ", "output": "Shade of Akama", "options": [["B", "l", "o", "o", "d", " ", "o", "f", " ", "R", "e", "a", "l", "i", "t", "y"], ["C", "l", "e", "a", "r", "e", "d"], ["L", "e", "o", "t", "h", "e", "r", "a", "s", " ", "t", "h", "e", " ", "B", "l", "i", "n", "d"], ["A", "l", "'", "a", "r"], ["A", "z", "g", "a", "l", "o", "r"], ["S", "h", "a", "d", "e", " ", "o", "f", " ", "A", "k", "a", "m", "a"], ["-"]], "pageTitle": "Server:Daggerspine US - WoWWiki - Your guide to the World of Warcraft", "outputColName": "22", "url": "http://wowwiki.wikia.com/Server:Daggerspine_US", "wdcFile": "39/1438042989126.22_20150728002309-00007-ip-10-236-191-2_266949694_3.json"}
|
{"task": "b9c562f6_guide_to_the_World_of_Warcraft__22", "input": "[0] Sunwell Plateau [1] Cleared [2] Cleared [3] Cleared [4] M'uru [5] Cleared [6] Felmyst [7] Kalecgos [8] Kalecgos [9] - [10] - [11] Brutallus [12] - [13] - [14] Kalecgos [15] - [16] - [17] - [18] - [19] - [20] - [21] - [23] - [24] - [25] - [22] ", "output": "-", "options": [["B", "l", "o", "o", "d", " ", "o", "f", " ", "R", "e", "a", "l", "i", "t", "y"], ["C", "l", "e", "a", "r", "e", "d"], ["L", "e", "o", "t", "h", "e", "r", "a", "s", " ", "t", "h", "e", " ", "B", "l", "i", "n", "d"], ["A", "l", "'", "a", "r"], ["A", "z", "g", "a", "l", "o", "r"], ["S", "h", "a", "d", "e", " ", "o", "f", " ", "A", "k", "a", "m", "a"], ["-"]], "pageTitle": "Server:Daggerspine US - WoWWiki - Your guide to the World of Warcraft", "outputColName": "22", "url": "http://wowwiki.wikia.com/Server:Daggerspine_US", "wdcFile": "39/1438042989126.22_20150728002309-00007-ip-10-236-191-2_266949694_3.json"}
|
{"task": "05036e70_inals_system__2_in_MLB___Scout__3", "input": "[0] NLC Org. [1] Pirates [2] Cardinals [4] Reds [5] Brewers [3] ", "output": "Cubs", "options": [["C", "u", "b", "s"], ["A"], ["C", "+"], ["C"], ["B", "+"]], "pageTitle": "BaseballHQ pegs Cardinals system #2 in MLB - Scout", "outputColName": "3", "url": "http://www.scout.com/2/1262711.html", "wdcFile": "39/1438042989126.22_20150728002309-00284-ip-10-236-191-2_698815387_2.json"}
|
{"task": "05036e70_inals_system__2_in_MLB___Scout__3", "input": "[0] Hitting [1] A- [2] B [4] C [5] C+ [3] ", "output": "A", "options": [["C", "u", "b", "s"], ["A"], ["C", "+"], ["C"], ["B", "+"]], "pageTitle": "BaseballHQ pegs Cardinals system #2 in MLB - Scout", "outputColName": "3", "url": "http://www.scout.com/2/1262711.html", "wdcFile": "39/1438042989126.22_20150728002309-00284-ip-10-236-191-2_698815387_2.json"}
|
{"id": 3132353830343836, "text": "Maricopa County weather forecast for this week", "label": 25, "label_text": "GET_WEATHER"}
|
{"id": 3136363730313437, "text": "When will my next alarm start", "label": 24, "label_text": "GET_ALARM"}
|
{"id": 3232353833343937, "text": "text Matthew and Helen that are you free", "label": 0, "label_text": "SEND_MESSAGE"}
|
{"id": 3133303534343534, "text": "what ingredients do is have left", "label": 59, "label_text": "GET_INFO_RECIPES"}
|
{"id": 3231323335353436, "text": "Cancel my reminder about my dentist appointment", "label": 42, "label_text": "DELETE_REMINDER"}
|
{"id": 39353731323132, "text": "I would like a news update.", "label": 18, "label_text": "GET_STORIES_NEWS"}
|
{"id": 3135323839353534, "text": "Read Health newreport please", "label": 18, "label_text": "GET_STORIES_NEWS"}
|
{"article": "The logo of cryptocurrency exchange Binance displayed on a smartphone with the word \"cancelled\" on a computer screen in the background.Budrul Chukrut | SOPA Images | LightRocket via Getty ImagesBinance said Monday that it is temporarily pausing bitcoin withdrawals \"due to a stuck transaction causing a backlog.\"At first, Binance founder and CEO Changpeng Zhao said in a tweet that the issue would be fixed within 30 minutes. But he later amended that to say, \"Likely this is going to take a bit longer to fix than my initial estimate.\" He added that, \"[t]his is only impacting the Bitcoin network,\" and that holders \"can still withdraw Bitcoin on other networks like BEP-20.\"\"Funds are SAFU,\" he added. The acronym stands for \"secure asset fund for users,\" which is a fund the company established in 2018 to help safeguard users.The news comes as bitcoin tumbled more than 10% on Monday, breaking below $24,000 and sinking to the lowest level since December 2020.The largest cryptocurrency has been hit by macroeconomic concerns, including rampant inflation.Binance is the world's largest crypto exchange. The company handles spot trading volumes of more than $14 billion and nearly $50 billion in derivatives volume in a single day, according to data from CoinGecko.- CNBC's Ryan Browne contributed reporting.", "headline": "Binance pauses bitcoin withdrawals due to a 'stuck transition' as crypto sell-off deepens."}
|
{"article": "Police officers, some in riot gear, guard a group of men, who police say are among 31 arrested for conspiracy to riot and are affiliated with the group Patriot Front, after they were found in the rear of a U Haul van in the vicinity of a Pride event in Coeur d'Alene, Idaho, U.S. June 11, 2022 in this still image obtained from a social media video. North Country Off Grid/Youtube/via REUTERS Register now for FREE unlimited access to Reuters.comJune 13 (Reuters) - Thirty-one members of the white nationalist group Patriot Front were expected to appear in an Idaho court on Monday for an arraignment following their weekend arrest on suspicion of plotting to violently disrupt an LGBTQ pride event.The men, arrested on Saturday after the U-Haul rental truck they were riding in was pulled over, face misdemeanor charges of conspiracy to riot and possibly additional offenses, according to Lee White, the police chief in Coeur d'Alene, Idaho.A local resident called authorities after spotting the group of men, all dressed alike with white gaiter-style masks and carrying shields, loading themselves into the truck \"like a little army,\" White told reporters following the arrests.Register now for FREE unlimited access to Reuters.comHe said the truck was stopped by police about 10 minutes after the call a short distance from the \"Pride in the Park\" event in Coeur d'Alene, an Idaho Panhandle city about 380 miles north of the capital, Boise, and about 36 miles east of Spokane, Washington.Video taken at the scene of the arrest and posted online showed a group of men in police custody, kneeling next to the truck with their hands bound, wearing similar khaki pants, blue shirts, white masks and baseball caps.Police officers seized at least one smoke grenade, a collection of shields and shin guards and documents that included an \"operations plan\" from the truck, all of which made their intentions clear, White said.\"They came to riot downtown,\" he said.The men had come from at least 11 states across the country, White said, including Texas, Colorado and Virginia.The Patriot Front formed in the aftermath of the 2017 white nationalist \"Unite the Right\" rally in Charlottesville, Virginia, breaking off from another extremist group, Vanguard America, according to the Southern Poverty Law Center, which tracks hate groups.Saturday's pride event, described by organizers as the largest ever seen in North Idaho, drew a crowd of several hundred people for festivities that included a talent show and drag queen dance hour, local media reported.KREM-TV in Spokane reported several smaller groups turned out to protest the gathering, with dozens of individuals seen carrying guns on the fringe of the park in what organizers said was an attempt to intimidate those attending the LGBTQ event.Register now for FREE unlimited access to Reuters.comReporting by Joseph Ax; Editing by Daniel Wallis and Chris ReeseOur Standards: The Thomson Reuters Trust Principles.", "headline": "White nationalist group members face riot-planning charges in Idaho court."}
|
{"article": "A woman walks past a row of cash machines outside a branch of Lloyds Bank in Manchester, Britain, February 21, 2017. REUTERS/Phil NobleRegister now for FREE unlimited access to Reuters.comLONDON, June 13 (Reuters) - Britain's biggest domestic bank Lloyds (LLOY.L) told staff on Monday it would give the vast majority of them a one-off 1,000 pound ($1,220) payment to help combat the soaring cost of living.The offer has been made to around 64,000 of the lender's staff, with executives and senior managers exempted from the payout, according to a memo seen by Reuters.The move highlights the pressures on employers to help mitigate the impact of price rises on staff, with inflation in Britain forecast by the Bank of England to top 10% later this year. read more Register now for FREE unlimited access to Reuters.comLloyds said in the memo the one-off payments would be made in August, adding it would factor in the economic picture into its pay negotiations with employees for 2023.Employee union Unite had demonstrated outside Lloyds' annual general meeting in Edinburgh in May to highlight the plight of bank staff struggling with the costs of food, fuel and heating.\"Staff will welcome the 1,000 pound bonus but there is still a long way to go to eradicate low pay in what is one of the economy's most profitable sectors,\" said Sharon Graham, Unite's general secretary.($1 = 0.8189 pounds)Register now for FREE unlimited access to Reuters.comReporting by Iain Withers\nEditing by Lawrence White and Mark PotterOur Standards: The Thomson Reuters Trust Principles.", "headline": "Lloyds to give staff 1,000 pounds to ease cost of living crisis."}
|
{"article": "The Amazon logo is seen outside its JFK8 distribution center in Staten Island, New York, U.S. November 25, 2020. REUTERS/Brendan McDermid.Register now for FREE unlimited access to Reuters.comBRUSSELS, June 13 (Reuters) - Amazon (AMZN.O) has offered to share marketplace data with sellers and boost the visibility of rival products on its platform, trying to persuade EU antitrust regulators to close their investigations without a fine by the end of the year, people familiar with the matter said.The world's largest online retailer is hoping its concessions will stave off a potential European Union fine that could be as much as 10% of its global turnover, Reuters reported last year. read more The European Commission in 2020 charged Amazon with using its size, power and data to push its own products and gain an unfair advantage over rival merchants that sell on its online platform.Register now for FREE unlimited access to Reuters.comIt also launched an investigation into Amazon's possible preferential treatment of its own retail offers and those of marketplace sellers that use its logistics and delivery services.Amazon's process for choosing which retailer appears in the \"buy box\" on its website and which generates the bulk of its sales also came under the spotlight.Amazon has now proposed to allow sellers access to some marketplace data while its commercial arm will not be able to use seller data collected by its retail unit, the people said.The company will also create a second buy box for rival products in the event an Amazon product appears in the first buy box, the people said.The EU competition enforcer is expected to seek feedback from rivals and users in the coming weeks, which could lead to tweaks in the proposal and a final decision by the end of the year, the people said.The Commission and Amazon declined to comment. The company had previously said it disagreed with the watchdog's assertions and that it represents less than 1% of the global retail market.Register now for FREE unlimited access to Reuters.comReporting by Foo Yun Chee\nEditing by Emdund Blair and Mark PotterOur Standards: The Thomson Reuters Trust Principles.", "headline": "Amazon offers to share data, boost rivals to dodge EU antitrust fines - sources."}
|
{"article": "An unexploded shell from a multiple rocket launch system is seen stuck in the ground, as Russia's attack on Ukraine continues, in the town of Lysychansk, Luhansk region, Ukraine June 10, 2022. REUTERS/Oleksandr RatushniakRegister now for FREE unlimited access to Reuters.comHELSINKI, June 13 (Reuters) - Finnish President Sauli Niinisto said on Monday both sides in the war in Ukraine were using heavier weapons, including in Russia's case thermobaric bombs.\"We are supporting Ukraine with increasingly heavy weaponry. And on the other hand Russia has also begun to use very powerful weapons, thermobaric bombs that are in fact weapons of mass destruction,\" Niinisto said during security policy talks at his summer residence in Naantali, Finland.Ukraine and NATO countries have also accused Russia of using thermobaric bombs, which are also known as vacuum bombs and are much more devastating than conventional explosives.Finland and neighbouring Sweden have applied to join NATO following Russia's invasion of Ukraine on Feb. 24.Register now for FREE unlimited access to Reuters.comReporting by Anne Kauranen\nEditing by Gareth JonesOur Standards: The Thomson Reuters Trust Principles.", "headline": "Both sides using heavier weapons in war in Ukraine, says Finnish president."}
|
{"article": "U.S. Defense Secretary Lloyd Austin reviews an honour guard as he meets with Thailand's Prime Minister and Minister of Defense Prayuth Chan-ocha (not pictured) during his official visit to Thailand, in Bangkok, Thailand, June 13, 2022. REUTERS/Athit PerawongmethaRegister now for FREE unlimited access to Reuters.comBANGKOK, June 13 (Reuters) - U.S. Defense Secretary Lloyd Austin said on Monday that his meeting with China's defense minister was an important step in efforts to develop lines of communication between the two militaries.Austin and Chinese Defence Minister General Wei Fenghe met on the sidelines of the Shangri-La Dialogue security summit in Singapore for nearly an hour on Friday, with both sides standing firm on their opposing views over Taiwan's right to rule itself. read more Despite tensions between the United States and China, U.S. military officials have long sought to have open lines of communication with their Chinese counterparts to be able to mitigate potential flare-ups or deal with any accidents.Register now for FREE unlimited access to Reuters.com\"It was an important step in our efforts to develop open lines of communication with PLA (People Liberation Army) leadership ... It was an important opportunity to raise our concerns about the potential for instability in the Taiwan Strait,\" Austin told reporters during a visit to Thailand.The United States is Taiwan's most important international supporter and arms supplier, a source of constant friction between Washington and Beijing.China, which claims self-ruled Taiwan as its own territory, has increased military activity near the island over the past two years, responding to what it calls \"collusion\" between Taipei and Washington.In a speech on Sunday, Wei said it was up to the United States to improve the bilateral relationship with his country, as ties were at a critical juncture. read more Austin said in his speech at the meeting on Saturday that there had been an \"alarming\" increase in the number of unsafe and unprofessional encounters between Chinese planes and vessels with those of other countries. He added that the United States would stand by its allies, including Taiwan.Register now for FREE unlimited access to Reuters.comReporting by Idrees Ali. Additional reporting by Martin Petty; Editing by Catherine Evans and Alison WilliamsOur Standards: The Thomson Reuters Trust Principles.", "headline": "China meeting a step in effort to develop lines of communication, U.S. defense secretary says."}
|
{"show_id": "s1", "type": "Movie", "title": "Dick Johnson Is Dead", "director": "Kirsten Johnson", "cast": null, "country": "United States", "date_added": "September 25, 2021", "release_year": 2020, "rating": "PG-13", "duration": "90 min", "listed_in": "Documentaries", "description": "As her father nears the end of his life, filmmaker Kirsten Johnson stages his death in inventive and comical ways to help them both face the inevitable."}
|
{"show_id": "s2", "type": "TV Show", "title": "Blood & Water", "director": null, "cast": "Ama Qamata, Khosi Ngema, Gail Mabalane, Thabang Molaba, Dillon Windvogel, Natasha Thahane, Arno Greeff, Xolile Tshabalala, Getmore Sithole, Cindy Mahlangu, Ryle De Morny, Greteli Fincham, Sello Maake Ka-Ncube, Odwa Gwanya, Mekaila Mathys, Sandi Schultz, Duane Williams, Shamilla Miller, Patrick Mofokeng", "country": "South Africa", "date_added": "September 24, 2021", "release_year": 2021, "rating": "TV-MA", "duration": "2 Seasons", "listed_in": "International TV Shows, TV Dramas, TV Mysteries", "description": "After crossing paths at a party, a Cape Town teen sets out to prove whether a private-school swimming star is her sister who was abducted at birth."}
|
{"show_id": "s3", "type": "TV Show", "title": "Ganglands", "director": "Julien Leclercq", "cast": "Sami Bouajila, Tracy Gotoas, Samuel Jouy, Nabiha Akkari, Sofia Lesaffre, Salim Kechiouche, Noureddine Farihi, Geert Van Rampelberg, Bakary Diombera", "country": null, "date_added": "September 24, 2021", "release_year": 2021, "rating": "TV-MA", "duration": "1 Season", "listed_in": "Crime TV Shows, International TV Shows, TV Action & Adventure", "description": "To protect his family from a powerful drug lord, skilled thief Mehdi and his expert team of robbers are pulled into a violent and deadly turf war."}
|
{"show_id": "s4", "type": "TV Show", "title": "Jailbirds New Orleans", "director": null, "cast": null, "country": null, "date_added": "September 24, 2021", "release_year": 2021, "rating": "TV-MA", "duration": "1 Season", "listed_in": "Docuseries, Reality TV", "description": "Feuds, flirtations and toilet talk go down among the incarcerated women at the Orleans Justice Center in New Orleans on this gritty reality series."}
|
{"show_id": "s6", "type": "TV Show", "title": "Midnight Mass", "director": "Mike Flanagan", "cast": "Kate Siegel, Zach Gilford, Hamish Linklater, Henry Thomas, Kristin Lehman, Samantha Sloyan, Igby Rigney, Rahul Kohli, Annarah Cymone, Annabeth Gish, Alex Essoe, Rahul Abburi, Matt Biedel, Michael Trucco, Crystal Balint, Louis Oliver", "country": null, "date_added": "September 24, 2021", "release_year": 2021, "rating": "TV-MA", "duration": "1 Season", "listed_in": "TV Dramas, TV Horror, TV Mysteries", "description": "The arrival of a charismatic young priest brings glorious miracles, ominous mysteries and renewed religious fervor to a dying town desperate to believe."}
|
{"show_id": "s8", "type": "Movie", "title": "Sankofa", "director": "Haile Gerima", "cast": "Kofi Ghanaba, Oyafunmike Ogunlano, Alexandra Duah, Nick Medley, Mutabaruka, Afemo Omilami, Reggie Carter, Mzuri", "country": "United States, Ghana, Burkina Faso, United Kingdom, Germany, Ethiopia", "date_added": "September 24, 2021", "release_year": 1993, "rating": "TV-MA", "duration": "125 min", "listed_in": "Dramas, Independent Movies, International Movies", "description": "On a photo shoot in Ghana, an American model slips back in time, becomes enslaved on a plantation and bears witness to the agony of her ancestral past."}
|
{"show_id": "s9", "type": "TV Show", "title": "The Great British Baking Show", "director": "Andy Devonshire", "cast": "Mel Giedroyc, Sue Perkins, Mary Berry, Paul Hollywood", "country": "United Kingdom", "date_added": "September 24, 2021", "release_year": 2021, "rating": "TV-14", "duration": "9 Seasons", "listed_in": "British TV Shows, Reality TV", "description": "A talented batch of amateur bakers face off in a 10-week competition, whipping up their best dishes in the hopes of being named the U.K.'s best."}
|
{"text": "GADSBY"}
|
{"text": "If Youth, throughout all history, had had a champion to stand up for"}
|
{"text": "it; to show a doubting world that a child can think; and, possibly,"}
|
{"text": "do it practically; you wouldn't constantly run across folks today"}
|
{"text": "who claim that \"a child don't know anything.\" A child's brain starts"}
|
{"text": "functioning at birth; and has, amongst its many infant convolutions,"}
|
{"id": 7, "title": "Contamination Question Answering", "context": "A large waterborne outbreak of NoV occurred in Lilla Edet in Sweden in 2008. On 11 September 2008, the County Medical Ofcer (CMO) was informed about an unusually high number of individuals who had suddenly fallen ill with gastrointestinal symptoms during the previous days in Lilla Edet, a small municipality in southwest Sweden. Cases of gastroenteritis were reported from different places in the municipality, e.g. from the nursery schools, schools, nursing homes and from the Primary Healthcare Centre (PHC). The CMO notified the Environmental Office in the municipality about the ongoing outbreak. As the initial information indicated that drinking water was a possible source of the outbreak a boil water recommendation was issued on the same day. Investigations were initiated to identify the causative agents, the extent of the outbreak and possible sources of infection. Efforts were also made to inform the inhabitants in the municipality about the ongoing outbreak, the issued boil water recommendation, and medical advice for people with gastrointestinal symptoms. Information was spread via the media, the homepage of the municipality website, posters and local radio as VMA, i.e important message to the public. In addition to the cases reported from the municipality of Lilla Edet, the CMO was notified that 7/17 athletes of a team that had visited the municipality during the afternoon on 7 September had fallen ill with gastrointestinal symptoms 2 days after their visit. To estimate the proportion of the 13000 inhabitants in Lilla Edet that fell sick during the outbreak, questionnaires were sent by mail on 19 September to 1199 randomly selected inhabitants between the ages of 19 and 75 years. A case was defined as a household member with acute gastroenteritis with date of onset between 5 and 21 September. Fifty stool samples from outpatients with symptoms of acute gastroenteritis attending Lilla Edet PHC during 12-26 September were collected and examined for enteric pathogens, as described by Nenonen et al. [20]. Water samples, i.e. raw water from the Gta lv river, drinking water from different parts of the distribution network, and water from reservoirs in Lilla Edet, were collected on 12 September and analyzed at the microbiological laboratory at SMI for the presence of E. coli and coliform bacteria by Colilert 18 (IDEXX, USA), intestinal enterococci by Enterolert (IDEXX), (oo)cysts of Giardia spp. and Cryptosporidium spp. according to ISO 15553:2006, Clostridium perfringens according to ISO/CD 6461-2:2002, somatic coliphages according to ISO 10705-1:2000, Campylobacter spp. by culture on CCDA agar (in-house method), Salmonella spp. according to ISO 6340:1995, Verotoxin-producing E. coli (VTEC) by PCR screening for vt genes and NoV by seminested PCR [22]. Additional water samples were collected on 17 September and analyzed for presence of NoV and coliphages. From the questionnaire survey it could be calculated that out of the 7500 inhabitant that lived in households supplied by drinking water from Lilla Edet WTP, about 2000 (26.7%) fell ill with acute gastroenteritis. NoV was detected in 33/50 stool samples collected from patients with symptoms of acute gastroenteritis. NoV strains of genogroup I (GI) predominated in 31 of these samples and mixed genotypes of GI infections occurred in ve samples, as described by Nenonen et al. [20]. Adenovirus was detected in one, sapovirus in one and rotavirus in three stool samples. Campylobacter spp. were isolated from two stool samples. In samples from the drinking water system in Lilla Edet collected on 12 September, E. coli, coliforms, enterococci, Giardia, Cryptosporidium, Clostridium, Campylobacter or NoV could not be detected, while faecal indicator bacteria and coliphages [300 plaque- forming units (p.f.u.)/100 ml] were found in raw water samples from the Gta lv river. However, somatic coliphages in concentrations between 4 and 42 p.f.u./100 ml were detected in samples from the drinking water system collected on 17 September and in samples from the raw water collected on the same date. In the Lilla Edet outbreak early detection of NoV strain diversity in stool samples strengthened the initial hypothesis that contaminated drinking water was the point source. Thus, the waterborne outbreak in Lilla Edet was most probably a consequence of the heavy faecal contamination of the raw water from Gta lv river [20]. \n", "question": "What symptoms did the people had?", "answers": "{'answer_start': [3200], 'text': ['acute gastroenteritis']}"}
|
{"id": 18, "title": "Contamination Question Answering", "context": "A large waterborne outbreak of NoV occurred in Lilla Edet in Sweden in 2008. On 11 September 2008, the County Medical Ofcer (CMO) was informed about an unusually high number of individuals who had suddenly fallen ill with gastrointestinal symptoms during the previous days in Lilla Edet, a small municipality in southwest Sweden. Cases of gastroenteritis were reported from different places in the municipality, e.g. from the nursery schools, schools, nursing homes and from the Primary Healthcare Centre (PHC). The CMO notified the Environmental Office in the municipality about the ongoing outbreak. As the initial information indicated that drinking water was a possible source of the outbreak a boil water recommendation was issued on the same day. Investigations were initiated to identify the causative agents, the extent of the outbreak and possible sources of infection. Efforts were also made to inform the inhabitants in the municipality about the ongoing outbreak, the issued boil water recommendation, and medical advice for people with gastrointestinal symptoms. Information was spread via the media, the homepage of the municipality website, posters and local radio as VMA, i.e important message to the public. In addition to the cases reported from the municipality of Lilla Edet, the CMO was notified that 7/17 athletes of a team that had visited the municipality during the afternoon on 7 September had fallen ill with gastrointestinal symptoms 2 days after their visit. To estimate the proportion of the 13000 inhabitants in Lilla Edet that fell sick during the outbreak, questionnaires were sent by mail on 19 September to 1199 randomly selected inhabitants between the ages of 19 and 75 years. A case was defined as a household member with acute gastroenteritis with date of onset between 5 and 21 September. Fifty stool samples from outpatients with symptoms of acute gastroenteritis attending Lilla Edet PHC during 12-26 September were collected and examined for enteric pathogens, as described by Nenonen et al. [20]. Water samples, i.e. raw water from the Gta lv river, drinking water from different parts of the distribution network, and water from reservoirs in Lilla Edet, were collected on 12 September and analyzed at the microbiological laboratory at SMI for the presence of E. coli and coliform bacteria by Colilert 18 (IDEXX, USA), intestinal enterococci by Enterolert (IDEXX), (oo)cysts of Giardia spp. and Cryptosporidium spp. according to ISO 15553:2006, Clostridium perfringens according to ISO/CD 6461-2:2002, somatic coliphages according to ISO 10705-1:2000, Campylobacter spp. by culture on CCDA agar (in-house method), Salmonella spp. according to ISO 6340:1995, Verotoxin-producing E. coli (VTEC) by PCR screening for vt genes and NoV by seminested PCR [22]. Additional water samples were collected on 17 September and analyzed for presence of NoV and coliphages. From the questionnaire survey it could be calculated that out of the 7500 inhabitant that lived in households supplied by drinking water from Lilla Edet WTP, about 2000 (26.7%) fell ill with acute gastroenteritis. NoV was detected in 33/50 stool samples collected from patients with symptoms of acute gastroenteritis. NoV strains of genogroup I (GI) predominated in 31 of these samples and mixed genotypes of GI infections occurred in ve samples, as described by Nenonen et al. [20]. Adenovirus was detected in one, sapovirus in one and rotavirus in three stool samples. Campylobacter spp. were isolated from two stool samples. In samples from the drinking water system in Lilla Edet collected on 12 September, E. coli, coliforms, enterococci, Giardia, Cryptosporidium, Clostridium, Campylobacter or NoV could not be detected, while faecal indicator bacteria and coliphages [300 plaque- forming units (p.f.u.)/100 ml] were found in raw water samples from the Gta lv river. However, somatic coliphages in concentrations between 4 and 42 p.f.u./100 ml were detected in samples from the drinking water system collected on 17 September and in samples from the raw water collected on the same date. In the Lilla Edet outbreak early detection of NoV strain diversity in stool samples strengthened the initial hypothesis that contaminated drinking water was the point source. Thus, the waterborne outbreak in Lilla Edet was most probably a consequence of the heavy faecal contamination of the raw water from Gta lv river [20]. \n", "question": "What type of samples were analyzed?\n", "answers": "{'answer_start': [1835], 'text': ['stool samples']}"}
|
{"id": 16, "title": "Contamination Question Answering", "context": "A large waterborne outbreak of NoV occurred in Lilla Edet in Sweden in 2008. On 11 September 2008, the County Medical Ofcer (CMO) was informed about an unusually high number of individuals who had suddenly fallen ill with gastrointestinal symptoms during the previous days in Lilla Edet, a small municipality in southwest Sweden. Cases of gastroenteritis were reported from different places in the municipality, e.g. from the nursery schools, schools, nursing homes and from the Primary Healthcare Centre (PHC). The CMO notified the Environmental Office in the municipality about the ongoing outbreak. As the initial information indicated that drinking water was a possible source of the outbreak a boil water recommendation was issued on the same day. Investigations were initiated to identify the causative agents, the extent of the outbreak and possible sources of infection. Efforts were also made to inform the inhabitants in the municipality about the ongoing outbreak, the issued boil water recommendation, and medical advice for people with gastrointestinal symptoms. Information was spread via the media, the homepage of the municipality website, posters and local radio as VMA, i.e important message to the public. In addition to the cases reported from the municipality of Lilla Edet, the CMO was notified that 7/17 athletes of a team that had visited the municipality during the afternoon on 7 September had fallen ill with gastrointestinal symptoms 2 days after their visit. To estimate the proportion of the 13000 inhabitants in Lilla Edet that fell sick during the outbreak, questionnaires were sent by mail on 19 September to 1199 randomly selected inhabitants between the ages of 19 and 75 years. A case was defined as a household member with acute gastroenteritis with date of onset between 5 and 21 September. Fifty stool samples from outpatients with symptoms of acute gastroenteritis attending Lilla Edet PHC during 12-26 September were collected and examined for enteric pathogens, as described by Nenonen et al. [20]. Water samples, i.e. raw water from the Gta lv river, drinking water from different parts of the distribution network, and water from reservoirs in Lilla Edet, were collected on 12 September and analyzed at the microbiological laboratory at SMI for the presence of E. coli and coliform bacteria by Colilert 18 (IDEXX, USA), intestinal enterococci by Enterolert (IDEXX), (oo)cysts of Giardia spp. and Cryptosporidium spp. according to ISO 15553:2006, Clostridium perfringens according to ISO/CD 6461-2:2002, somatic coliphages according to ISO 10705-1:2000, Campylobacter spp. by culture on CCDA agar (in-house method), Salmonella spp. according to ISO 6340:1995, Verotoxin-producing E. coli (VTEC) by PCR screening for vt genes and NoV by seminested PCR [22]. Additional water samples were collected on 17 September and analyzed for presence of NoV and coliphages. From the questionnaire survey it could be calculated that out of the 7500 inhabitant that lived in households supplied by drinking water from Lilla Edet WTP, about 2000 (26.7%) fell ill with acute gastroenteritis. NoV was detected in 33/50 stool samples collected from patients with symptoms of acute gastroenteritis. NoV strains of genogroup I (GI) predominated in 31 of these samples and mixed genotypes of GI infections occurred in ve samples, as described by Nenonen et al. [20]. Adenovirus was detected in one, sapovirus in one and rotavirus in three stool samples. Campylobacter spp. were isolated from two stool samples. In samples from the drinking water system in Lilla Edet collected on 12 September, E. coli, coliforms, enterococci, Giardia, Cryptosporidium, Clostridium, Campylobacter or NoV could not be detected, while faecal indicator bacteria and coliphages [300 plaque- forming units (p.f.u.)/100 ml] were found in raw water samples from the Gta lv river. However, somatic coliphages in concentrations between 4 and 42 p.f.u./100 ml were detected in samples from the drinking water system collected on 17 September and in samples from the raw water collected on the same date. In the Lilla Edet outbreak early detection of NoV strain diversity in stool samples strengthened the initial hypothesis that contaminated drinking water was the point source. Thus, the waterborne outbreak in Lilla Edet was most probably a consequence of the heavy faecal contamination of the raw water from Gta lv river [20]. \n", "question": "What caused the event?", "answers": "{'answer_start': [4363], 'text': ['faecal contamination']}"}
|
{"id": 18, "title": "Contamination Question Answering", "context": "A large waterborne outbreak of NoV occurred in Lilla Edet in Sweden in 2008. On 11 September 2008, the County Medical Ofcer (CMO) was informed about an unusually high number of individuals who had suddenly fallen ill with gastrointestinal symptoms during the previous days in Lilla Edet, a small municipality in southwest Sweden. Cases of gastroenteritis were reported from different places in the municipality, e.g. from the nursery schools, schools, nursing homes and from the Primary Healthcare Centre (PHC). The CMO notified the Environmental Office in the municipality about the ongoing outbreak. As the initial information indicated that drinking water was a possible source of the outbreak a boil water recommendation was issued on the same day. Investigations were initiated to identify the causative agents, the extent of the outbreak and possible sources of infection. Efforts were also made to inform the inhabitants in the municipality about the ongoing outbreak, the issued boil water recommendation, and medical advice for people with gastrointestinal symptoms. Information was spread via the media, the homepage of the municipality website, posters and local radio as VMA, i.e important message to the public. In addition to the cases reported from the municipality of Lilla Edet, the CMO was notified that 7/17 athletes of a team that had visited the municipality during the afternoon on 7 September had fallen ill with gastrointestinal symptoms 2 days after their visit. To estimate the proportion of the 13000 inhabitants in Lilla Edet that fell sick during the outbreak, questionnaires were sent by mail on 19 September to 1199 randomly selected inhabitants between the ages of 19 and 75 years. A case was defined as a household member with acute gastroenteritis with date of onset between 5 and 21 September. Fifty stool samples from outpatients with symptoms of acute gastroenteritis attending Lilla Edet PHC during 12-26 September were collected and examined for enteric pathogens, as described by Nenonen et al. [20]. Water samples, i.e. raw water from the Gta lv river, drinking water from different parts of the distribution network, and water from reservoirs in Lilla Edet, were collected on 12 September and analyzed at the microbiological laboratory at SMI for the presence of E. coli and coliform bacteria by Colilert 18 (IDEXX, USA), intestinal enterococci by Enterolert (IDEXX), (oo)cysts of Giardia spp. and Cryptosporidium spp. according to ISO 15553:2006, Clostridium perfringens according to ISO/CD 6461-2:2002, somatic coliphages according to ISO 10705-1:2000, Campylobacter spp. by culture on CCDA agar (in-house method), Salmonella spp. according to ISO 6340:1995, Verotoxin-producing E. coli (VTEC) by PCR screening for vt genes and NoV by seminested PCR [22]. Additional water samples were collected on 17 September and analyzed for presence of NoV and coliphages. From the questionnaire survey it could be calculated that out of the 7500 inhabitant that lived in households supplied by drinking water from Lilla Edet WTP, about 2000 (26.7%) fell ill with acute gastroenteritis. NoV was detected in 33/50 stool samples collected from patients with symptoms of acute gastroenteritis. NoV strains of genogroup I (GI) predominated in 31 of these samples and mixed genotypes of GI infections occurred in ve samples, as described by Nenonen et al. [20]. Adenovirus was detected in one, sapovirus in one and rotavirus in three stool samples. Campylobacter spp. were isolated from two stool samples. In samples from the drinking water system in Lilla Edet collected on 12 September, E. coli, coliforms, enterococci, Giardia, Cryptosporidium, Clostridium, Campylobacter or NoV could not be detected, while faecal indicator bacteria and coliphages [300 plaque- forming units (p.f.u.)/100 ml] were found in raw water samples from the Gta lv river. However, somatic coliphages in concentrations between 4 and 42 p.f.u./100 ml were detected in samples from the drinking water system collected on 17 September and in samples from the raw water collected on the same date. In the Lilla Edet outbreak early detection of NoV strain diversity in stool samples strengthened the initial hypothesis that contaminated drinking water was the point source. Thus, the waterborne outbreak in Lilla Edet was most probably a consequence of the heavy faecal contamination of the raw water from Gta lv river [20]. \n", "question": "What symptoms did people report?", "answers": "{'answer_start': [1766], 'text': ['gastroenteritis']}"}
|
{"id": 22, "title": "Contamination Question Answering", "context": "A large waterborne outbreak of NoV occurred in Lilla Edet in Sweden in 2008. On 11 September 2008, the County Medical Ofcer (CMO) was informed about an unusually high number of individuals who had suddenly fallen ill with gastrointestinal symptoms during the previous days in Lilla Edet, a small municipality in southwest Sweden. Cases of gastroenteritis were reported from different places in the municipality, e.g. from the nursery schools, schools, nursing homes and from the Primary Healthcare Centre (PHC). The CMO notified the Environmental Office in the municipality about the ongoing outbreak. As the initial information indicated that drinking water was a possible source of the outbreak a boil water recommendation was issued on the same day. Investigations were initiated to identify the causative agents, the extent of the outbreak and possible sources of infection. Efforts were also made to inform the inhabitants in the municipality about the ongoing outbreak, the issued boil water recommendation, and medical advice for people with gastrointestinal symptoms. Information was spread via the media, the homepage of the municipality website, posters and local radio as VMA, i.e important message to the public. In addition to the cases reported from the municipality of Lilla Edet, the CMO was notified that 7/17 athletes of a team that had visited the municipality during the afternoon on 7 September had fallen ill with gastrointestinal symptoms 2 days after their visit. To estimate the proportion of the 13000 inhabitants in Lilla Edet that fell sick during the outbreak, questionnaires were sent by mail on 19 September to 1199 randomly selected inhabitants between the ages of 19 and 75 years. A case was defined as a household member with acute gastroenteritis with date of onset between 5 and 21 September. Fifty stool samples from outpatients with symptoms of acute gastroenteritis attending Lilla Edet PHC during 12-26 September were collected and examined for enteric pathogens, as described by Nenonen et al. [20]. Water samples, i.e. raw water from the Gta lv river, drinking water from different parts of the distribution network, and water from reservoirs in Lilla Edet, were collected on 12 September and analyzed at the microbiological laboratory at SMI for the presence of E. coli and coliform bacteria by Colilert 18 (IDEXX, USA), intestinal enterococci by Enterolert (IDEXX), (oo)cysts of Giardia spp. and Cryptosporidium spp. according to ISO 15553:2006, Clostridium perfringens according to ISO/CD 6461-2:2002, somatic coliphages according to ISO 10705-1:2000, Campylobacter spp. by culture on CCDA agar (in-house method), Salmonella spp. according to ISO 6340:1995, Verotoxin-producing E. coli (VTEC) by PCR screening for vt genes and NoV by seminested PCR [22]. Additional water samples were collected on 17 September and analyzed for presence of NoV and coliphages. From the questionnaire survey it could be calculated that out of the 7500 inhabitant that lived in households supplied by drinking water from Lilla Edet WTP, about 2000 (26.7%) fell ill with acute gastroenteritis. NoV was detected in 33/50 stool samples collected from patients with symptoms of acute gastroenteritis. NoV strains of genogroup I (GI) predominated in 31 of these samples and mixed genotypes of GI infections occurred in ve samples, as described by Nenonen et al. [20]. Adenovirus was detected in one, sapovirus in one and rotavirus in three stool samples. Campylobacter spp. were isolated from two stool samples. In samples from the drinking water system in Lilla Edet collected on 12 September, E. coli, coliforms, enterococci, Giardia, Cryptosporidium, Clostridium, Campylobacter or NoV could not be detected, while faecal indicator bacteria and coliphages [300 plaque- forming units (p.f.u.)/100 ml] were found in raw water samples from the Gta lv river. However, somatic coliphages in concentrations between 4 and 42 p.f.u./100 ml were detected in samples from the drinking water system collected on 17 September and in samples from the raw water collected on the same date. In the Lilla Edet outbreak early detection of NoV strain diversity in stool samples strengthened the initial hypothesis that contaminated drinking water was the point source. Thus, the waterborne outbreak in Lilla Edet was most probably a consequence of the heavy faecal contamination of the raw water from Gta lv river [20]. \n", "question": "What were the first steps of investigation?", "answers": "{'answer_start': [1590], 'text': ['questionnaires']}"}
|
{"id": 20, "title": "Contamination Question Answering", "context": "A large waterborne outbreak of NoV occurred in Lilla Edet in Sweden in 2008. On 11 September 2008, the County Medical Ofcer (CMO) was informed about an unusually high number of individuals who had suddenly fallen ill with gastrointestinal symptoms during the previous days in Lilla Edet, a small municipality in southwest Sweden. Cases of gastroenteritis were reported from different places in the municipality, e.g. from the nursery schools, schools, nursing homes and from the Primary Healthcare Centre (PHC). The CMO notified the Environmental Office in the municipality about the ongoing outbreak. As the initial information indicated that drinking water was a possible source of the outbreak a boil water recommendation was issued on the same day. Investigations were initiated to identify the causative agents, the extent of the outbreak and possible sources of infection. Efforts were also made to inform the inhabitants in the municipality about the ongoing outbreak, the issued boil water recommendation, and medical advice for people with gastrointestinal symptoms. Information was spread via the media, the homepage of the municipality website, posters and local radio as VMA, i.e important message to the public. In addition to the cases reported from the municipality of Lilla Edet, the CMO was notified that 7/17 athletes of a team that had visited the municipality during the afternoon on 7 September had fallen ill with gastrointestinal symptoms 2 days after their visit. To estimate the proportion of the 13000 inhabitants in Lilla Edet that fell sick during the outbreak, questionnaires were sent by mail on 19 September to 1199 randomly selected inhabitants between the ages of 19 and 75 years. A case was defined as a household member with acute gastroenteritis with date of onset between 5 and 21 September. Fifty stool samples from outpatients with symptoms of acute gastroenteritis attending Lilla Edet PHC during 12-26 September were collected and examined for enteric pathogens, as described by Nenonen et al. [20]. Water samples, i.e. raw water from the Gta lv river, drinking water from different parts of the distribution network, and water from reservoirs in Lilla Edet, were collected on 12 September and analyzed at the microbiological laboratory at SMI for the presence of E. coli and coliform bacteria by Colilert 18 (IDEXX, USA), intestinal enterococci by Enterolert (IDEXX), (oo)cysts of Giardia spp. and Cryptosporidium spp. according to ISO 15553:2006, Clostridium perfringens according to ISO/CD 6461-2:2002, somatic coliphages according to ISO 10705-1:2000, Campylobacter spp. by culture on CCDA agar (in-house method), Salmonella spp. according to ISO 6340:1995, Verotoxin-producing E. coli (VTEC) by PCR screening for vt genes and NoV by seminested PCR [22]. Additional water samples were collected on 17 September and analyzed for presence of NoV and coliphages. From the questionnaire survey it could be calculated that out of the 7500 inhabitant that lived in households supplied by drinking water from Lilla Edet WTP, about 2000 (26.7%) fell ill with acute gastroenteritis. NoV was detected in 33/50 stool samples collected from patients with symptoms of acute gastroenteritis. NoV strains of genogroup I (GI) predominated in 31 of these samples and mixed genotypes of GI infections occurred in ve samples, as described by Nenonen et al. [20]. Adenovirus was detected in one, sapovirus in one and rotavirus in three stool samples. Campylobacter spp. were isolated from two stool samples. In samples from the drinking water system in Lilla Edet collected on 12 September, E. coli, coliforms, enterococci, Giardia, Cryptosporidium, Clostridium, Campylobacter or NoV could not be detected, while faecal indicator bacteria and coliphages [300 plaque- forming units (p.f.u.)/100 ml] were found in raw water samples from the Gta lv river. However, somatic coliphages in concentrations between 4 and 42 p.f.u./100 ml were detected in samples from the drinking water system collected on 17 September and in samples from the raw water collected on the same date. In the Lilla Edet outbreak early detection of NoV strain diversity in stool samples strengthened the initial hypothesis that contaminated drinking water was the point source. Thus, the waterborne outbreak in Lilla Edet was most probably a consequence of the heavy faecal contamination of the raw water from Gta lv river [20]. \n", "question": "What is the date of the event?\n", "answers": "{'answer_start': [71], 'text': ['2008']}"}
|
{"id": 34, "title": "Contamination Question Answering", "context": "A large waterborne outbreak of NoV occurred in Lilla Edet in Sweden in 2008. On 11 September 2008, the County Medical Ofcer (CMO) was informed about an unusually high number of individuals who had suddenly fallen ill with gastrointestinal symptoms during the previous days in Lilla Edet, a small municipality in southwest Sweden. Cases of gastroenteritis were reported from different places in the municipality, e.g. from the nursery schools, schools, nursing homes and from the Primary Healthcare Centre (PHC). The CMO notified the Environmental Office in the municipality about the ongoing outbreak. As the initial information indicated that drinking water was a possible source of the outbreak a boil water recommendation was issued on the same day. Investigations were initiated to identify the causative agents, the extent of the outbreak and possible sources of infection. Efforts were also made to inform the inhabitants in the municipality about the ongoing outbreak, the issued boil water recommendation, and medical advice for people with gastrointestinal symptoms. Information was spread via the media, the homepage of the municipality website, posters and local radio as VMA, i.e important message to the public. In addition to the cases reported from the municipality of Lilla Edet, the CMO was notified that 7/17 athletes of a team that had visited the municipality during the afternoon on 7 September had fallen ill with gastrointestinal symptoms 2 days after their visit. To estimate the proportion of the 13000 inhabitants in Lilla Edet that fell sick during the outbreak, questionnaires were sent by mail on 19 September to 1199 randomly selected inhabitants between the ages of 19 and 75 years. A case was defined as a household member with acute gastroenteritis with date of onset between 5 and 21 September. Fifty stool samples from outpatients with symptoms of acute gastroenteritis attending Lilla Edet PHC during 12-26 September were collected and examined for enteric pathogens, as described by Nenonen et al. [20]. Water samples, i.e. raw water from the Gta lv river, drinking water from different parts of the distribution network, and water from reservoirs in Lilla Edet, were collected on 12 September and analyzed at the microbiological laboratory at SMI for the presence of E. coli and coliform bacteria by Colilert 18 (IDEXX, USA), intestinal enterococci by Enterolert (IDEXX), (oo)cysts of Giardia spp. and Cryptosporidium spp. according to ISO 15553:2006, Clostridium perfringens according to ISO/CD 6461-2:2002, somatic coliphages according to ISO 10705-1:2000, Campylobacter spp. by culture on CCDA agar (in-house method), Salmonella spp. according to ISO 6340:1995, Verotoxin-producing E. coli (VTEC) by PCR screening for vt genes and NoV by seminested PCR [22]. Additional water samples were collected on 17 September and analyzed for presence of NoV and coliphages. From the questionnaire survey it could be calculated that out of the 7500 inhabitant that lived in households supplied by drinking water from Lilla Edet WTP, about 2000 (26.7%) fell ill with acute gastroenteritis. NoV was detected in 33/50 stool samples collected from patients with symptoms of acute gastroenteritis. NoV strains of genogroup I (GI) predominated in 31 of these samples and mixed genotypes of GI infections occurred in ve samples, as described by Nenonen et al. [20]. Adenovirus was detected in one, sapovirus in one and rotavirus in three stool samples. Campylobacter spp. were isolated from two stool samples. In samples from the drinking water system in Lilla Edet collected on 12 September, E. coli, coliforms, enterococci, Giardia, Cryptosporidium, Clostridium, Campylobacter or NoV could not be detected, while faecal indicator bacteria and coliphages [300 plaque- forming units (p.f.u.)/100 ml] were found in raw water samples from the Gta lv river. However, somatic coliphages in concentrations between 4 and 42 p.f.u./100 ml were detected in samples from the drinking water system collected on 17 September and in samples from the raw water collected on the same date. In the Lilla Edet outbreak early detection of NoV strain diversity in stool samples strengthened the initial hypothesis that contaminated drinking water was the point source. Thus, the waterborne outbreak in Lilla Edet was most probably a consequence of the heavy faecal contamination of the raw water from Gta lv river [20]. \n", "question": "What is the location of the event?\n", "answers": "{'answer_start': [61], 'text': ['Sweden']}"}
|
{"id": 14, "title": "Contamination Question Answering", "context": "A large waterborne outbreak of NoV occurred in Lilla Edet in Sweden in 2008. On 11 September 2008, the County Medical Ofcer (CMO) was informed about an unusually high number of individuals who had suddenly fallen ill with gastrointestinal symptoms during the previous days in Lilla Edet, a small municipality in southwest Sweden. Cases of gastroenteritis were reported from different places in the municipality, e.g. from the nursery schools, schools, nursing homes and from the Primary Healthcare Centre (PHC). The CMO notified the Environmental Office in the municipality about the ongoing outbreak. As the initial information indicated that drinking water was a possible source of the outbreak a boil water recommendation was issued on the same day. Investigations were initiated to identify the causative agents, the extent of the outbreak and possible sources of infection. Efforts were also made to inform the inhabitants in the municipality about the ongoing outbreak, the issued boil water recommendation, and medical advice for people with gastrointestinal symptoms. Information was spread via the media, the homepage of the municipality website, posters and local radio as VMA, i.e important message to the public. In addition to the cases reported from the municipality of Lilla Edet, the CMO was notified that 7/17 athletes of a team that had visited the municipality during the afternoon on 7 September had fallen ill with gastrointestinal symptoms 2 days after their visit. To estimate the proportion of the 13000 inhabitants in Lilla Edet that fell sick during the outbreak, questionnaires were sent by mail on 19 September to 1199 randomly selected inhabitants between the ages of 19 and 75 years. A case was defined as a household member with acute gastroenteritis with date of onset between 5 and 21 September. Fifty stool samples from outpatients with symptoms of acute gastroenteritis attending Lilla Edet PHC during 12-26 September were collected and examined for enteric pathogens, as described by Nenonen et al. [20]. Water samples, i.e. raw water from the Gta lv river, drinking water from different parts of the distribution network, and water from reservoirs in Lilla Edet, were collected on 12 September and analyzed at the microbiological laboratory at SMI for the presence of E. coli and coliform bacteria by Colilert 18 (IDEXX, USA), intestinal enterococci by Enterolert (IDEXX), (oo)cysts of Giardia spp. and Cryptosporidium spp. according to ISO 15553:2006, Clostridium perfringens according to ISO/CD 6461-2:2002, somatic coliphages according to ISO 10705-1:2000, Campylobacter spp. by culture on CCDA agar (in-house method), Salmonella spp. according to ISO 6340:1995, Verotoxin-producing E. coli (VTEC) by PCR screening for vt genes and NoV by seminested PCR [22]. Additional water samples were collected on 17 September and analyzed for presence of NoV and coliphages. From the questionnaire survey it could be calculated that out of the 7500 inhabitant that lived in households supplied by drinking water from Lilla Edet WTP, about 2000 (26.7%) fell ill with acute gastroenteritis. NoV was detected in 33/50 stool samples collected from patients with symptoms of acute gastroenteritis. NoV strains of genogroup I (GI) predominated in 31 of these samples and mixed genotypes of GI infections occurred in ve samples, as described by Nenonen et al. [20]. Adenovirus was detected in one, sapovirus in one and rotavirus in three stool samples. Campylobacter spp. were isolated from two stool samples. In samples from the drinking water system in Lilla Edet collected on 12 September, E. coli, coliforms, enterococci, Giardia, Cryptosporidium, Clostridium, Campylobacter or NoV could not be detected, while faecal indicator bacteria and coliphages [300 plaque- forming units (p.f.u.)/100 ml] were found in raw water samples from the Gta lv river. However, somatic coliphages in concentrations between 4 and 42 p.f.u./100 ml were detected in samples from the drinking water system collected on 17 September and in samples from the raw water collected on the same date. In the Lilla Edet outbreak early detection of NoV strain diversity in stool samples strengthened the initial hypothesis that contaminated drinking water was the point source. Thus, the waterborne outbreak in Lilla Edet was most probably a consequence of the heavy faecal contamination of the raw water from Gta lv river [20]. \n", "question": "What pathogen was connected to the outbreak?", "answers": "{'answer_start': [3738], 'text': ['faecal indicator bacteria and coliphages']}"}
|
{"id": 31, "title": "Contamination Question Answering", "context": "A large waterborne outbreak of NoV occurred in Lilla Edet in Sweden in 2008. On 11 September 2008, the County Medical Ofcer (CMO) was informed about an unusually high number of individuals who had suddenly fallen ill with gastrointestinal symptoms during the previous days in Lilla Edet, a small municipality in southwest Sweden. Cases of gastroenteritis were reported from different places in the municipality, e.g. from the nursery schools, schools, nursing homes and from the Primary Healthcare Centre (PHC). The CMO notified the Environmental Office in the municipality about the ongoing outbreak. As the initial information indicated that drinking water was a possible source of the outbreak a boil water recommendation was issued on the same day. Investigations were initiated to identify the causative agents, the extent of the outbreak and possible sources of infection. Efforts were also made to inform the inhabitants in the municipality about the ongoing outbreak, the issued boil water recommendation, and medical advice for people with gastrointestinal symptoms. Information was spread via the media, the homepage of the municipality website, posters and local radio as VMA, i.e important message to the public. In addition to the cases reported from the municipality of Lilla Edet, the CMO was notified that 7/17 athletes of a team that had visited the municipality during the afternoon on 7 September had fallen ill with gastrointestinal symptoms 2 days after their visit. To estimate the proportion of the 13000 inhabitants in Lilla Edet that fell sick during the outbreak, questionnaires were sent by mail on 19 September to 1199 randomly selected inhabitants between the ages of 19 and 75 years. A case was defined as a household member with acute gastroenteritis with date of onset between 5 and 21 September. Fifty stool samples from outpatients with symptoms of acute gastroenteritis attending Lilla Edet PHC during 12-26 September were collected and examined for enteric pathogens, as described by Nenonen et al. [20]. Water samples, i.e. raw water from the Gta lv river, drinking water from different parts of the distribution network, and water from reservoirs in Lilla Edet, were collected on 12 September and analyzed at the microbiological laboratory at SMI for the presence of E. coli and coliform bacteria by Colilert 18 (IDEXX, USA), intestinal enterococci by Enterolert (IDEXX), (oo)cysts of Giardia spp. and Cryptosporidium spp. according to ISO 15553:2006, Clostridium perfringens according to ISO/CD 6461-2:2002, somatic coliphages according to ISO 10705-1:2000, Campylobacter spp. by culture on CCDA agar (in-house method), Salmonella spp. according to ISO 6340:1995, Verotoxin-producing E. coli (VTEC) by PCR screening for vt genes and NoV by seminested PCR [22]. Additional water samples were collected on 17 September and analyzed for presence of NoV and coliphages. From the questionnaire survey it could be calculated that out of the 7500 inhabitant that lived in households supplied by drinking water from Lilla Edet WTP, about 2000 (26.7%) fell ill with acute gastroenteritis. NoV was detected in 33/50 stool samples collected from patients with symptoms of acute gastroenteritis. NoV strains of genogroup I (GI) predominated in 31 of these samples and mixed genotypes of GI infections occurred in ve samples, as described by Nenonen et al. [20]. Adenovirus was detected in one, sapovirus in one and rotavirus in three stool samples. Campylobacter spp. were isolated from two stool samples. In samples from the drinking water system in Lilla Edet collected on 12 September, E. coli, coliforms, enterococci, Giardia, Cryptosporidium, Clostridium, Campylobacter or NoV could not be detected, while faecal indicator bacteria and coliphages [300 plaque- forming units (p.f.u.)/100 ml] were found in raw water samples from the Gta lv river. However, somatic coliphages in concentrations between 4 and 42 p.f.u./100 ml were detected in samples from the drinking water system collected on 17 September and in samples from the raw water collected on the same date. In the Lilla Edet outbreak early detection of NoV strain diversity in stool samples strengthened the initial hypothesis that contaminated drinking water was the point source. Thus, the waterborne outbreak in Lilla Edet was most probably a consequence of the heavy faecal contamination of the raw water from Gta lv river [20]. \n", "question": "What is the source that started the event?\n", "answers": "{'answer_start': [4224], 'text': ['contaminated drinking water']}"}
|
{"id": 30, "title": "Contamination Question Answering", "context": "A large waterborne outbreak of NoV occurred in Lilla Edet in Sweden in 2008. On 11 September 2008, the County Medical Ofcer (CMO) was informed about an unusually high number of individuals who had suddenly fallen ill with gastrointestinal symptoms during the previous days in Lilla Edet, a small municipality in southwest Sweden. Cases of gastroenteritis were reported from different places in the municipality, e.g. from the nursery schools, schools, nursing homes and from the Primary Healthcare Centre (PHC). The CMO notified the Environmental Office in the municipality about the ongoing outbreak. As the initial information indicated that drinking water was a possible source of the outbreak a boil water recommendation was issued on the same day. Investigations were initiated to identify the causative agents, the extent of the outbreak and possible sources of infection. Efforts were also made to inform the inhabitants in the municipality about the ongoing outbreak, the issued boil water recommendation, and medical advice for people with gastrointestinal symptoms. Information was spread via the media, the homepage of the municipality website, posters and local radio as VMA, i.e important message to the public. In addition to the cases reported from the municipality of Lilla Edet, the CMO was notified that 7/17 athletes of a team that had visited the municipality during the afternoon on 7 September had fallen ill with gastrointestinal symptoms 2 days after their visit. To estimate the proportion of the 13000 inhabitants in Lilla Edet that fell sick during the outbreak, questionnaires were sent by mail on 19 September to 1199 randomly selected inhabitants between the ages of 19 and 75 years. A case was defined as a household member with acute gastroenteritis with date of onset between 5 and 21 September. Fifty stool samples from outpatients with symptoms of acute gastroenteritis attending Lilla Edet PHC during 12-26 September were collected and examined for enteric pathogens, as described by Nenonen et al. [20]. Water samples, i.e. raw water from the Gta lv river, drinking water from different parts of the distribution network, and water from reservoirs in Lilla Edet, were collected on 12 September and analyzed at the microbiological laboratory at SMI for the presence of E. coli and coliform bacteria by Colilert 18 (IDEXX, USA), intestinal enterococci by Enterolert (IDEXX), (oo)cysts of Giardia spp. and Cryptosporidium spp. according to ISO 15553:2006, Clostridium perfringens according to ISO/CD 6461-2:2002, somatic coliphages according to ISO 10705-1:2000, Campylobacter spp. by culture on CCDA agar (in-house method), Salmonella spp. according to ISO 6340:1995, Verotoxin-producing E. coli (VTEC) by PCR screening for vt genes and NoV by seminested PCR [22]. Additional water samples were collected on 17 September and analyzed for presence of NoV and coliphages. From the questionnaire survey it could be calculated that out of the 7500 inhabitant that lived in households supplied by drinking water from Lilla Edet WTP, about 2000 (26.7%) fell ill with acute gastroenteritis. NoV was detected in 33/50 stool samples collected from patients with symptoms of acute gastroenteritis. NoV strains of genogroup I (GI) predominated in 31 of these samples and mixed genotypes of GI infections occurred in ve samples, as described by Nenonen et al. [20]. Adenovirus was detected in one, sapovirus in one and rotavirus in three stool samples. Campylobacter spp. were isolated from two stool samples. In samples from the drinking water system in Lilla Edet collected on 12 September, E. coli, coliforms, enterococci, Giardia, Cryptosporidium, Clostridium, Campylobacter or NoV could not be detected, while faecal indicator bacteria and coliphages [300 plaque- forming units (p.f.u.)/100 ml] were found in raw water samples from the Gta lv river. However, somatic coliphages in concentrations between 4 and 42 p.f.u./100 ml were detected in samples from the drinking water system collected on 17 September and in samples from the raw water collected on the same date. In the Lilla Edet outbreak early detection of NoV strain diversity in stool samples strengthened the initial hypothesis that contaminated drinking water was the point source. Thus, the waterborne outbreak in Lilla Edet was most probably a consequence of the heavy faecal contamination of the raw water from Gta lv river [20]. \n", "question": "How was the event first detected?\n", "answers": "{'answer_start': [162], 'text': ['high number of individuals ']}"}
|
{"evaluation_suite_name": "glue_suite", "task_groups": [{"task_type": "text-classification", "tasks": [{"data": "glue", "name": "cola", "split": "test[:10]", "args_for_task": {"metric": "accuracy", "input_column": "sentence", "label_column": "label", "label_mapping": {"LABEL_0": 0.0, "LABEL_1": 1.0, "LABEL_2": null}, "second_input_column": null}}, {"data": "glue", "name": "sst2", "split": "validation[:10]", "args_for_task": {"metric": "accuracy", "input_column": "sentence", "label_column": "label", "label_mapping": {"LABEL_0": 0.0, "LABEL_1": 1.0, "LABEL_2": null}, "second_input_column": null}}, {"data": "glue", "name": "mnli", "split": "validation_mismatched[:10]", "args_for_task": {"metric": "accuracy", "input_column": "premise", "label_column": "label", "label_mapping": {"LABEL_0": 0.0, "LABEL_1": 1.0, "LABEL_2": 2}, "second_input_column": "hypothesis"}}, {"data": "glue", "name": "mrpc", "split": "validation[:10]", "args_for_task": {"metric": "accuracy", "input_column": "sentence1", "label_column": "label", "label_mapping": {"LABEL_0": 0.0, "LABEL_1": 1.0, "LABEL_2": null}, "second_input_column": "sentence2"}}, {"data": "glue", "name": "qqp", "split": "validation[:10]", "args_for_task": {"metric": "accuracy", "input_column": "question1", "label_column": "label", "label_mapping": {"LABEL_0": 0.0, "LABEL_1": 1.0, "LABEL_2": null}, "second_input_column": "question2"}}, {"data": "glue", "name": "qnli", "split": "validation[:10]", "args_for_task": {"metric": "accuracy", "input_column": "question", "label_column": "label", "label_mapping": {"LABEL_0": 0.0, "LABEL_1": 1.0, "LABEL_2": null}, "second_input_column": "sentence"}}, {"data": "glue", "name": "rte", "split": "validation[:10]", "args_for_task": {"metric": "accuracy", "input_column": "sentence1", "label_column": "label", "label_mapping": {"LABEL_0": 0.0, "LABEL_1": 1.0, "LABEL_2": null}, "second_input_column": "sentence2"}}, {"data": "glue", "name": "wnli", "split": "validation[:10]", "args_for_task": {"metric": "accuracy", "input_column": "sentence1", "label_column": "label", "label_mapping": {"LABEL_0": 0.0, "LABEL_1": 1.0, "LABEL_2": null}, "second_input_column": "sentence2"}}]}]}
|
{"answers": ["The immediate impact of the success of the manhattan project was the only cloud hanging over the impressive achievement of the atomic researchers and engineers is what their success truly meant; hundreds of thousands of innocent lives obliterated."], "query": ")what was the immediate impact of the success of the manhattan project?", "query_id": 1185869, "query_type": "DESCRIPTION", "positive_ctx": "The presence of communication amid scientific minds was equally important to the success of the Manhattan Project as scientific intellect was. The only cloud hanging over the impressive achievement of the atomic researchers and engineers is what their success truly meant; hundreds of thousands of innocent lives obliterated."}
|
{"answers": ["Restorative justice that fosters dialogue between victim and offender has shown the highest rates of victim satisfaction and offender accountability."], "query": "_________ justice is designed to repair the harm to victim, the community and the offender caused by the offender criminal act. question 19 options:", "query_id": 1185868, "query_type": "DESCRIPTION", "positive_ctx": "The approach is based on a theory of justice that considers crime and wrongdoing to be an offense against an individual or community, rather than the State. Restorative justice that fosters dialogue between victim and offender has shown the highest rates of victim satisfaction and offender accountability."}
|
{"answers": ["The reasons why Stalin wanted to control Eastern Europe are Russia has historically no secure border and they wanted to set up satellite countries."], "query": "why did stalin want control of eastern europe", "query_id": 1185854, "query_type": "DESCRIPTION", "positive_ctx": "There are 3 main reasons why Stalin wanted to control Eastern Europe. 1.) Russia has historically no secure border. 2.) They wanted to set up satellite countries. 3.)"}
|
{"answers": ["Nails rust in water because water allows the iron to react with any oxygen present, which forms iron oxide. Nails rust due to presence of some impurities in the water, particularly salts, which speeds up the transfer of electrons from iron to oxygen."], "query": "why do nails get rusty", "query_id": 1185755, "query_type": "DESCRIPTION", "positive_ctx": "A: Nails rust in water because water allows the iron to react with any oxygen present, which forms iron oxide, known as rust. In order to cause rust quickly, there must be some impurities in the water, particularly salts, since these speed up the transfer of electrons from iron to oxygen."}
|
{"answers": ["Depona Ab is a library in Vilhelmina, Sweden."], "query": "depona ab", "query_id": 1184773, "query_type": "DESCRIPTION", "positive_ctx": "Depona Ab is a library in Vilhelmina, Sweden. The company is located at Slggatan 1. This private company was founded in 1999 (about 16 years ago). A typical library has between 4 and 80 employees, meaning that Depona Ab, with a reported 5 employees, employs a typical amount of people for the industry within Sweden."}
|
{"answers": ["$43,746 for the 2014-2015 academic year."], "query": "nyu tuition cost", "query_id": 467556, "query_type": "NUMERIC", "positive_ctx": "tuition for new york university is $ 43746 for the 2014 2015 academic year this is 73 % more expensive than the national average private non profit four year college tuition of $ 25240he net out of pocket total cost you end up paying or financing though student loans is known as the net price the reported new york university net price for in state students $ 34268 for the 2013 2014 academic year this net price includes housing and meal expenses"}
|
{"answers": ["Americans brush for just under the two minutes on average."], "query": "average teeth brushing time", "query_id": 44588, "query_type": "NUMERIC", "positive_ctx": "On average, Americans brush for just under the two minutes recommended by dental professionals. African Americans brush 18 seconds longer than Americans as a whole, while younger adults ages 18 to 24 spend 16 seconds longer than average brushing. Nearly six of 10 Americans brush their teeth at bedtime and as soon as they wake up in the morning, while 38 percent brush after breakfast. About 17 percent brush after lunch, and 21 percent brush after dinner."}
|
{"answers": ["Yes, funner is a word."], "query": "is funner a word?", "query_id": 410717, "query_type": "DESCRIPTION", "positive_ctx": "Funner is, of course, a word in the same sense that ponyfraggis is a word, if word is defined as a pronounceable sequence of letters delimited by whitespace. In terms of usage, the frequency of use of More fun vs funner in formal writing suggest that funner is spoken slang. Naturally it is a word, too."}
|
{"source": "promise_1", "reqs": "The product shall respond fast to keep up-to-date data in the display.", "class": 2, "__index_level_0__": 7}
|
{"source": "promise_3", "reqs": "The system will notify affected parties for routine communication purposes including but not limited to informing students of upcoming offered classes (timeline) and what their schedule will be/shall be.", "class": 0, "__index_level_0__": 138}
|
{"source": "promise_2", "reqs": "The system shall update or create new property listings in the MLS", "class": 0, "__index_level_0__": 61}
|
{"source": "promise_1", "reqs": "The system shall display data from the Sync Matrix 1.0 and Exercise Management Tool 1.0 applications", "class": 0, "__index_level_0__": 18}
|
{"source": "promise_14", "reqs": "The application shall be able to complete every user transaction within one fourth of a second of receiving the request over the network.", "class": 2, "__index_level_0__": 606}
|
{"source": "promise_8", "reqs": "Data integrity scripts will be run on a weekly basis to verify the integrity of the database.", "class": 3, "__index_level_0__": 432}
|
{"source": "promise_1", "reqs": "The product shall ensure that it can only be accessed by authorized users. The product will be able to distinguish between authorized and unauthorized users in all access attempts", "class": 3, "__index_level_0__": 5}
|
{"source": "promise_6", "reqs": "The product shall have an intuitive user interface.", "class": 0, "__index_level_0__": 348}
|
{"source": "promise_5", "reqs": "The recycled parts audit report shall be returned to the user within 10 seconds. The audit report shall be returned within 10 seconds.", "class": 2, "__index_level_0__": 218}
|
{"source": "promise_3", "reqs": "Staff members shall be able to complete a set of tasks in a timely manner.", "class": 2, "__index_level_0__": 76}
|
{"Unnamed: 0": 0, "text": "<|endoftext|>religion: You made me confess the fears that I have. But I will tell you also what I do not fear. I do not fear to be alone or to be spurned for another or to leave whatever I have to leave. And I am not afraid to make a mistake, even a great mistake, a lifelong mistake and perhaps as long as eternity too.<|endoftext|>"}
|
{"Unnamed: 0": 1, "text": "<|endoftext|>funny: I will never buy a fish tank, because I don't believe in supporting the funding of aquatic war machines.<|endoftext|>"}
|
{"Unnamed: 0": 2, "text": "<|endoftext|>love: And I still love you in my own fucked-up way. I miss you, I really do. Can we still be friends?<|endoftext|>"}
|
{"Unnamed: 0": 3, "text": "<|endoftext|>hope: I know we can't always know what medical surprises may happen during childbirth. But my hope is to go fully natural - no epidural, no interventions. Wish me luck.<|endoftext|>"}
|
{"Unnamed: 0": 4, "text": "<|endoftext|>romance: Maybe 'Okay' will be our 'always'...<|endoftext|>"}
|
{"Unnamed: 0": 5, "text": "<|endoftext|>books: The books transported her into new worlds and introduced her to amazing people who lived exciting lives. She went on olden-day sailing ships with Joseph Conrad. She went to Africa with Ernest Hemingway and to India with Rudyard Kipling. She travelled all over the world while sitting in her little room in an English village.<|endoftext|>"}
|
{"Unnamed: 0": 6, "text": "<|endoftext|>positive: The purpose of quantum linguistics is to survey the spirit of linguistics and finding solutions to the common barrier problems faced by means of deliberate use of language.<|endoftext|>"}
|
{"Unnamed: 0": 7, "text": "<|endoftext|>wisdom: The Shaod, it was called. The Transformation... When it came, the fortuante person's life ended and began anew; he would discard his old, mundane existence and move to Elantris. Elantris, where he could live in bliss, rule in wisdom, and be worshiped for eternity.Eternity ended ten years ago.<|endoftext|>"}
|
{"Unnamed: 0": 8, "text": "<|endoftext|>love: Last time I saw you, I said that it hurt too much to love you. But I was wrong about that. The truth is it hurts too much not to love you.<|endoftext|>"}
|
{"Unnamed: 0": 9, "text": "<|endoftext|>inspiration: Right now, we're living in an ugly chapter of our lives, but books always get better!<|endoftext|>"}
|
{"text": "x 2 cuff Bracelets \"Arcana\" - Gothic - lace black red\nIvory White Gothic Lace Pentagram Wicca Burlesque Choker Necklace", "metadata": [{"key": "website_description", "type": "global", "value": "This website is an American e-commerce company focused on handmade or vintage items and craft supplies."}]}
|
{"text": "Don's Food Stores - Longview, TX | Groupon\n301 Mobberly Avenue, Longview, TX 75602 301 Mobberly Avenue, Longview Directions\n301 Mobberly Avenue,\nDon's Food Stores welcomes customers to its one-of-a-kind grocery store, beloved by local patrons at its location in Longview, TX.\nGrocery shopping shouldn't be a chore and at Don's Food Stores in Longview it isn't. Stop by the store today and have fun picking out new eats.\nMany parking options are available in the area. Fresh food that lasts longer is just asking to be bought. Find it at Longview's Don's Food Stores.\nGroupon has verified that the customer actually visited Don's Food Stores.", "metadata": [{"key": "website_description", "type": "global", "value": "This website is an American global e-commerce marketplace connecting subscribers with local merchants by offering activities, travel, goods and services in 15 countries. Based in Chicago, Groupon was launched there in November 2008, launching soon after in Boston, New York City and Toronto."}]}
|
{"text": "About Kristina Statler\nKristina Statler is an ALACE Certified and DONA trained Birth Doula, Apprentice Midwife, Childbirth Educator, Lactation Counselor, Positive Birth Movement Facilitator and Communications Coordinator for Pacific Birth Collective. Kristina has been working with birthing families on the island of Maui for 20 years and has three sons of her own.\nA portion of each sale of an e-book from Kristina's Navigate Series will go to Pacific Birth Collective. See what they are up to at pacificbirthcollective.org!\nBooks By Kristina Statler\nHow to Navigate a Hospital Birth on Maui: A Guide for Families and Birth Doulas (Navigation Series Book 1) Feb 28, 2017\nHow to Navigate an Out of Hospital Birth on Maui: A Guide for Island Families (Navigation Series Book 2) Feb 28, 2017", "metadata": [{"key": "website_description", "type": "global", "value": "This website is an American multinational technology company which focuses on e-commerce, cloud computing, digital streaming, and artificial intelligence."}]}
|
{"text": "See more: create custom business directory wordpress, business directory drupal wordpress, business directory plugin elgg framework, classified directory wordpress theme, school directory wordpress theme, olomo listings & directory wordpress theme, business listing template in themeforest, xwp directory wordpress theme, wordpress theme directories, wordpress theme my listings, wordpress business directory, business directory script wordpress, business directory solution wordpress, create paid write reviews plugin wordpress, elgg business directory plugin, socialengine business directory plugin radcodes, wordpress business directory plugin searchable, business directory using wordpress, wordpress theme business directory, business card plugin wordpress\nProject ID: #19000919\nI worked a little with Business Directory Plugin in the past and have some knowledge of it, however for page modification etc the plugin actually uses the default archive pages from your Wordpress Theme using custom po More\n32 freelancers are bidding on average $341 for this job\nhy! yes we already do such type of work Dear how are you? hope you will be fine. i read your project description and ready to create theme for your business directory so please come in chat without wasting time so th More\nHello? How are you? I have seen the project - \"Edit/Create theme for Business Directory Plugin on WordPress. - I have mockups and fields ready.\" I have been working in these fields((CSS, HTML, Javascript, PHP, Word More\nI like to do this job. I'll work with you in your site for Business Directory Plugin customization. I'll use advance technologies like, PHP5, MySQL, HTML5, CSS3, JS, Jquery, Ajax, and Bootstrap, as per required. I' More\nHello! I am a WEB expert! Especially I am good at wordpress I am interested in you project. I wanna work with you. If you hire me, I am gonna do my best for your project. I hope you have a dialog with me so that More\nHello, Lovely Dear. I just read your job. I have skill that customized Business Directory Plugin in the past. Besides, I already have main knowledge such as PHP, HTML/CSS and JavaScript. I am full time and ful More\nFeel fee to contact me forEdit/Create theme for Business Directory Plugin on WordPress. - I have mockups and fields ready .Shoot me message to discuss further more details .We provide the comments,images,videos,demos More\nONCE MODIFY THEN PAY US ____ OUR PORTFOLIO https://www.freelancer.com/u/BrandedThemes1 Following are some random projects we completed for our prestigious clients: [login to view URL] [login to view URL] More\nHi, 1. Kindly provide us MOCK_UP ? We are expert in developing websites and mobile sites through PHP, Wordpress, Shopify, Codeigniter, Larvel, Magento, Drupal, Angular, bootstrap, HTML, HTML5, CSS, Jquery, AJAX, More", "metadata": [{"key": "website_description", "type": "global", "value": "This website is an Australian freelance marketplace website, which allows potential employers to post jobs that freelancers can then bid to complete. Founded in 2009, its headquarters is located in Sydney, Australia, though it also has offices in Vancouver, London, Buenos Aires, Manila, and Jakarta."}]}
|
{"text": "Democracy Now! Wednesday, November 6, 2002 : Free Download & Streaming : Internet Archive\nDemocracy Now! Wednesday, November 6, 2002\n[archiveorg dn2002-1106_vid width=560 height=384 frameborder=0 webkitallowfullscreen=true mozallowfullscreen=true]\nGraphic Violence Graphic Sexual Content Spam, Scam or Fraud Broken or Empty Data moviesDemocracy Now! Wednesday, November 6, 2002 Published November 6, 2002\nDemocracy Now! television program for Wednesday, November 6, 2002\nDemocracy Now! Wednesday, November 6, 2013 Nov 6, 2013\nDemocracy Now! Wednesday, May 15, 2002 Feb 24, 2007\nDemocracy Now! Wednesday, April 3, 2002 Feb 16, 2007\nDemocracy Now! Wednesday, July 10, 2002 Apr 1, 2007", "metadata": [{"key": "website_description", "type": "global", "value": "This website is an American digital library with the stated mission of \"universal access to all knowledge\". It provides free public access to collections of digitized materials, including websites, software applications/games, music, movies/videos, moving images, and millions of books."}]}
|
{"code": "'use strict';\n\nvar clear = require('es5-ext/array/#/clear')\n , eIndexOf = require('es5-ext/array/#/e-index-of')\n , setPrototypeOf = require('es5-ext/object/set-prototype-of')\n , callable = require('es5-ext/object/valid-callable')\n , d = require('d')\n , ee = require('event-emitter')\n , Symbol = require('es6-symbol')\n , iterator = require('es6-iterator/valid-iterable')\n , forOf = require('es6-iterator/for-of')\n , Iterator = require('./lib/iterator')\n , isNative = require('./is-native-implemented')\n\n , call = Function.prototype.call, defineProperty = Object.defineProperty\n , SetPoly, getValues;\n\nmodule.exports = SetPoly = function (/*iterable*/) {\n\tvar iterable = arguments[0];\n\tif (!(this instanceof SetPoly)) return new SetPoly(iterable);\n\tif (this.__setData__ !== undefined) {\n\t\tthrow new TypeError(this + \" cannot be reinitialized\");\n\t}\n\tif (iterable != null) iterator(iterable);\n\tdefineProperty(this, '__setData__', d('c', []));\n\tif (!iterable) return;\n\tforOf(iterable, function (value) {\n\t\tif (eIndexOf.call(this, value) !== -1) return;\n\t\tthis.push(value);\n\t}, this.__setData__);\n};\n\nif (isNative) {\n\tif (setPrototypeOf) setPrototypeOf(SetPoly, Set);\n\tSetPoly.prototype = Object.create(Set.prototype, {\n\t\tconstructor: d(SetPoly)\n\t});\n}\n\nee(Object.defineProperties(SetPoly.prototype, {\n\tadd: d(function (value) {\n\t\tif (this.has(value)) return this;\n\t\tthis.emit('_add', this.__setData__.push(value) - 1, value);\n\t\treturn this;\n\t}),\n\tclear: d(function () {\n\t\tif (!this.__setData__.length) return;\n\t\tclear.call(this.__setData__);\n\t\tthis.emit('_clear');\n\t}),\n\tdelete: d(function (value) {\n\t\tvar index = eIndexOf.call(this.__setData__, value);\n\t\tif (index === -1) return false;\n\t\tthis.__setData__.splice(index, 1);\n\t\tthis.emit('_delete', index, value);\n\t\treturn true;\n\t}),\n\tentries: d(function () { return new Iterator(this, 'key+value'); }),\n\tforEach: d(function (cb/*, thisArg*/) {\n\t\tvar thisArg = arguments[1], iterator, result, value;\n\t\tcallable(cb);\n\t\titerator = this.values();\n\t\tresult = iterator._next();\n\t\twhile (result !== undefined) {\n\t\t\tvalue = iterator._resolve(result);\n\t\t\tcall.call(cb, thisArg, value, value, this);\n\t\t\tresult = iterator._next();\n\t\t}\n\t}),\n\thas: d(function (value) {\n\t\treturn (eIndexOf.call(this.__setData__, value) !== -1);\n\t}),\n\tkeys: d(getValues = function () { return this.values(); }),\n\tsize: d.gs(function () { return this.__setData__.length; }),\n\tvalues: d(function () { return new Iterator(this); }),\n\ttoString: d(function () { return '[object Set]'; })\n}));\ndefineProperty(SetPoly.prototype, Symbol.iterator, d(getValues));\ndefineProperty(SetPoly.prototype, Symbol.toStringTag, d('c', 'Set'));\n", "repo_name": "Socratacom/socrata-europe", "path": "wp-content/themes/sage/node_modules/asset-builder/node_modules/main-bower-files/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/unique-stream/node_modules/es6-set/polyfill.js", "language": "JavaScript", "license": "gpl-2.0", "size": 2730}
|
{"code": "'use strict';\n\nconst TYPE = Symbol.for('type');\n\nclass Data {\n\n constructor(options) {\n // File details\n this.filepath = options.filepath;\n\n // Type\n this[TYPE] = 'data';\n\n // Data\n Object.assign(this, options.data);\n }\n}\n\nmodule.exports = Data;\n", "repo_name": "mshick/velvet", "path": "core/classes/data.js", "language": "JavaScript", "license": "isc", "size": 266}
|
{"code": "\nfunction collectWithWildcard(test) {\n\ttest.expect(4);\n\n\tvar api_server = new Test_ApiServer(function handler(request, callback) {\n\t\tvar url = request.url;\n\n\t\tswitch (url) {\n\t\t\tcase '/accounts?username=chariz*':\n\t\t\t\tlet account = new Model_Account({\n\t\t\t\t\tusername: 'charizard'\n\t\t\t\t});\n\n\t\t\t\treturn void callback(null, [\n\t\t\t\t\taccount.redact()\n\t\t\t\t]);\n\n\t\t\tdefault:\n\t\t\t\tlet error = new Error('Invalid url: ' + url);\n\n\t\t\t\treturn void callback(error);\n\t\t}\n\t});\n\n\tvar parameters = {\n\t\tusername: 'chariz*'\n\t};\n\n\tfunction handler(error, results) {\n\t\ttest.equals(error, null);\n\t\ttest.equals(results.length, 1);\n\n\t\tvar account = results[0];\n\n\t\ttest.equals(account.get('username'), 'charizard');\n\t\ttest.equals(account.get('type'), Enum_AccountTypes.MEMBER);\n\n\t\tapi_server.destroy();\n\n\t\ttest.done();\n\t}\n\n\tResource_Accounts.collect(parameters, handler);\n}\n\nmodule.exports = {\n\tcollectWithWildcard\n};\n", "repo_name": "burninggarden/burninggarden", "path": "test/unit/resource/accounts.js", "language": "JavaScript", "license": "isc", "size": 886}
|
{"code": "angular.module('appTesting').service(\"LoginLocalStorage\", function () {\n \"use strict\";\n\n var STORE_NAME = \"login\";\n\n var setUser = function setUser(user) {\n localStorage.setItem(STORE_NAME, JSON.stringify(user));\n }\n\n var getUser = function getUser() {\n var storedTasks = localStorage.getItem(STORE_NAME);\n if (storedTasks) {\n return JSON.parse(storedTasks);\n }\n return {};\n }\n\n return {\n setUser: setUser,\n getUser: getUser\n }\n});", "repo_name": "pikachumetal/cursoangular05", "path": "app/loginModule/services/localstorage.js", "language": "JavaScript", "license": "isc", "size": 515}
|
{"code": "// flow-typed signature: d37503430b92ad584be6e2c6f8d1fc08\n// flow-typed version: <<STUB>>/ua-parser-js_v1.0.2/flow_v0.171.0\n\n/**\n * This is an autogenerated libdef stub for:\n *\n * 'ua-parser-js'\n *\n * Fill this stub out by replacing all the `any` types.\n *\n * Once filled out, we encourage you to share your work with the\n * community by sending a pull request to:\n * https://github.com/flowtype/flow-typed\n */\n\ndeclare module 'ua-parser-js' {\n declare module.exports: any;\n}\n\n/**\n * We include stubs for each file inside this npm package in case you need to\n * require those files directly. Feel free to delete any files that aren't\n * needed.\n */\ndeclare module 'ua-parser-js/dist/ua-parser.min' {\n declare module.exports: any;\n}\n\ndeclare module 'ua-parser-js/dist/ua-parser.pack' {\n declare module.exports: any;\n}\n\ndeclare module 'ua-parser-js/package' {\n declare module.exports: any;\n}\n\ndeclare module 'ua-parser-js/src/ua-parser' {\n declare module.exports: any;\n}\n\ndeclare module 'ua-parser-js/test/test' {\n declare module.exports: any;\n}\n\n// Filename aliases\ndeclare module 'ua-parser-js/dist/ua-parser.min.js' {\n declare module.exports: $Exports<'ua-parser-js/dist/ua-parser.min'>;\n}\ndeclare module 'ua-parser-js/dist/ua-parser.pack.js' {\n declare module.exports: $Exports<'ua-parser-js/dist/ua-parser.pack'>;\n}\ndeclare module 'ua-parser-js/package.js' {\n declare module.exports: $Exports<'ua-parser-js/package'>;\n}\ndeclare module 'ua-parser-js/src/ua-parser.js' {\n declare module.exports: $Exports<'ua-parser-js/src/ua-parser'>;\n}\ndeclare module 'ua-parser-js/test/test.js' {\n declare module.exports: $Exports<'ua-parser-js/test/test'>;\n}\n", "repo_name": "julien-noblet/cad-killer", "path": "flow-typed/npm/ua-parser-js_vx.x.x.js", "language": "JavaScript", "license": "isc", "size": 1660}
|
{"code": "/* eslint-disable no-console */\nconst buildData = require('./build_data');\nconst buildSrc = require('./build_src');\nconst buildCSS = require('./build_css');\n\nlet _currBuild = null;\n\n// if called directly, do the thing.\nbuildAll();\n\n\nfunction buildAll() {\n if (_currBuild) return _currBuild;\n\n return _currBuild =\n Promise.resolve()\n .then(() => buildCSS())\n .then(() => buildData())\n .then(() => buildSrc())\n .then(() => _currBuild = null)\n .catch((err) => {\n console.error(err);\n _currBuild = null;\n process.exit(1);\n });\n}\n\nmodule.exports = buildAll;\n", "repo_name": "kartta-labs/iD", "path": "build.js", "language": "JavaScript", "license": "isc", "size": 591}
|
{"code": "function LetterProps(o, sw, sc, fc, m, p) {\r\n this.o = o;\r\n this.sw = sw;\r\n this.sc = sc;\r\n this.fc = fc;\r\n this.m = m;\r\n this.p = p;\r\n this._mdf = {\r\n o: true,\r\n sw: !!sw,\r\n sc: !!sc,\r\n fc: !!fc,\r\n m: true,\r\n p: true,\r\n };\r\n}\r\n\r\nLetterProps.prototype.update = function (o, sw, sc, fc, m, p) {\r\n this._mdf.o = false;\r\n this._mdf.sw = false;\r\n this._mdf.sc = false;\r\n this._mdf.fc = false;\r\n this._mdf.m = false;\r\n this._mdf.p = false;\r\n var updated = false;\r\n\r\n if (this.o !== o) {\r\n this.o = o;\r\n this._mdf.o = true;\r\n updated = true;\r\n }\r\n if (this.sw !== sw) {\r\n this.sw = sw;\r\n this._mdf.sw = true;\r\n updated = true;\r\n }\r\n if (this.sc !== sc) {\r\n this.sc = sc;\r\n this._mdf.sc = true;\r\n updated = true;\r\n }\r\n if (this.fc !== fc) {\r\n this.fc = fc;\r\n this._mdf.fc = true;\r\n updated = true;\r\n }\r\n if (this.m !== m) {\r\n this.m = m;\r\n this._mdf.m = true;\r\n updated = true;\r\n }\r\n if (p.length && (this.p[0] !== p[0] || this.p[1] !== p[1] || this.p[4] !== p[4] || this.p[5] !== p[5] || this.p[12] !== p[12] || this.p[13] !== p[13])) {\r\n this.p = p;\r\n this._mdf.p = true;\r\n updated = true;\r\n }\r\n return updated;\r\n};\r\n", "repo_name": "damienmortini/dlib", "path": "node_modules/lottie-web/player/js/utils/text/LetterProps.js", "language": "JavaScript", "license": "isc", "size": 1212}
|
{"code": "System.register([\"angular2/test_lib\", \"angular2/src/test_lib/test_bed\", \"angular2/src/core/annotations_impl/annotations\", \"angular2/src/core/annotations_impl/view\", \"angular2/src/core/compiler/dynamic_component_loader\", \"angular2/src/core/compiler/element_ref\", \"angular2/src/directives/if\", \"angular2/src/render/dom/direct_dom_renderer\", \"angular2/src/dom/dom_adapter\"], function($__export) {\n \"use strict\";\n var AsyncTestCompleter,\n beforeEach,\n ddescribe,\n xdescribe,\n describe,\n el,\n dispatchEvent,\n expect,\n iit,\n inject,\n beforeEachBindings,\n it,\n xit,\n TestBed,\n Component,\n View,\n DynamicComponentLoader,\n ElementRef,\n If,\n DirectDomRenderer,\n DOM,\n ImperativeViewComponentUsingNgComponent,\n ChildComp,\n DynamicallyCreatedComponentService,\n DynamicComp,\n DynamicallyCreatedCmp,\n DynamicallyLoaded,\n DynamicallyLoaded2,\n DynamicallyLoadedWithHostProps,\n Location,\n MyComp;\n function main() {\n describe('DynamicComponentLoader', function() {\n describe(\"loading into existing location\", (function() {\n it('should work', inject([TestBed, AsyncTestCompleter], (function(tb, async) {\n tb.overrideView(MyComp, new View({\n template: '<dynamic-comp #dynamic></dynamic-comp>',\n directives: [DynamicComp]\n }));\n tb.createView(MyComp).then((function(view) {\n var dynamicComponent = view.rawView.locals.get(\"dynamic\");\n expect(dynamicComponent).toBeAnInstanceOf(DynamicComp);\n dynamicComponent.done.then((function(_) {\n view.detectChanges();\n expect(view.rootNodes).toHaveText('hello');\n async.done();\n }));\n }));\n })));\n it('should inject dependencies of the dynamically-loaded component', inject([TestBed, AsyncTestCompleter], (function(tb, async) {\n tb.overrideView(MyComp, new View({\n template: '<dynamic-comp #dynamic></dynamic-comp>',\n directives: [DynamicComp]\n }));\n tb.createView(MyComp).then((function(view) {\n var dynamicComponent = view.rawView.locals.get(\"dynamic\");\n dynamicComponent.done.then((function(ref) {\n expect(ref.instance.dynamicallyCreatedComponentService).toBeAnInstanceOf(DynamicallyCreatedComponentService);\n async.done();\n }));\n }));\n })));\n it('should allow to destroy and create them via viewcontainer directives', inject([TestBed, AsyncTestCompleter], (function(tb, async) {\n tb.overrideView(MyComp, new View({\n template: '<div><dynamic-comp #dynamic template=\"if: ctxBoolProp\"></dynamic-comp></div>',\n directives: [DynamicComp, If]\n }));\n tb.createView(MyComp).then((function(view) {\n view.context.ctxBoolProp = true;\n view.detectChanges();\n var dynamicComponent = view.rawView.viewContainers[0].views[0].locals.get(\"dynamic\");\n dynamicComponent.done.then((function(_) {\n view.detectChanges();\n expect(view.rootNodes).toHaveText('hello');\n view.context.ctxBoolProp = false;\n view.detectChanges();\n expect(view.rawView.viewContainers[0].views.length).toBe(0);\n expect(view.rootNodes).toHaveText('');\n view.context.ctxBoolProp = true;\n view.detectChanges();\n var dynamicComponent = view.rawView.viewContainers[0].views[0].locals.get(\"dynamic\");\n return dynamicComponent.done;\n })).then((function(_) {\n view.detectChanges();\n expect(view.rootNodes).toHaveText('hello');\n async.done();\n }));\n }));\n })));\n }));\n describe(\"loading next to an existing location\", (function() {\n it('should work', inject([DynamicComponentLoader, TestBed, AsyncTestCompleter], (function(loader, tb, async) {\n tb.overrideView(MyComp, new View({\n template: '<div><location #loc></location></div>',\n directives: [Location]\n }));\n tb.createView(MyComp).then((function(view) {\n var location = view.rawView.locals.get(\"loc\");\n loader.loadNextToExistingLocation(DynamicallyLoaded, location.elementRef).then((function(ref) {\n expect(view.rootNodes).toHaveText(\"Location;DynamicallyLoaded;\");\n async.done();\n }));\n }));\n })));\n it('should return a disposable component ref', inject([DynamicComponentLoader, TestBed, AsyncTestCompleter], (function(loader, tb, async) {\n tb.overrideView(MyComp, new View({\n template: '<div><location #loc></location></div>',\n directives: [Location]\n }));\n tb.createView(MyComp).then((function(view) {\n var location = view.rawView.locals.get(\"loc\");\n loader.loadNextToExistingLocation(DynamicallyLoaded, location.elementRef).then((function(ref) {\n loader.loadNextToExistingLocation(DynamicallyLoaded2, location.elementRef).then((function(ref2) {\n expect(view.rootNodes).toHaveText(\"Location;DynamicallyLoaded;DynamicallyLoaded2;\");\n ref2.dispose();\n expect(view.rootNodes).toHaveText(\"Location;DynamicallyLoaded;\");\n async.done();\n }));\n }));\n }));\n })));\n it('should update host properties', inject([DynamicComponentLoader, TestBed, AsyncTestCompleter], (function(loader, tb, async) {\n tb.overrideView(MyComp, new View({\n template: '<div><location #loc></location></div>',\n directives: [Location]\n }));\n tb.createView(MyComp).then((function(view) {\n var location = view.rawView.locals.get(\"loc\");\n loader.loadNextToExistingLocation(DynamicallyLoadedWithHostProps, location.elementRef).then((function(ref) {\n ref.instance.id = \"new value\";\n view.detectChanges();\n var newlyInsertedElement = DOM.childNodesAsList(view.rootNodes[0])[1];\n expect(newlyInsertedElement.id).toEqual(\"new value\");\n async.done();\n }));\n }));\n })));\n }));\n describe('loading into a new location', (function() {\n it('should allow to create, update and destroy components', inject([TestBed, AsyncTestCompleter], (function(tb, async) {\n tb.overrideView(MyComp, new View({\n template: '<imp-ng-cmp #impview></imp-ng-cmp>',\n directives: [ImperativeViewComponentUsingNgComponent]\n }));\n tb.createView(MyComp).then((function(view) {\n var userViewComponent = view.rawView.locals.get(\"impview\");\n userViewComponent.done.then((function(childComponentRef) {\n view.detectChanges();\n expect(view.rootNodes).toHaveText('hello');\n childComponentRef.instance.ctxProp = 'new';\n view.detectChanges();\n expect(view.rootNodes).toHaveText('new');\n childComponentRef.dispose();\n expect(view.rootNodes).toHaveText('');\n async.done();\n }));\n }));\n })));\n }));\n });\n }\n $__export(\"main\", main);\n return {\n setters: [function($__m) {\n AsyncTestCompleter = $__m.AsyncTestCompleter;\n beforeEach = $__m.beforeEach;\n ddescribe = $__m.ddescribe;\n xdescribe = $__m.xdescribe;\n describe = $__m.describe;\n el = $__m.el;\n dispatchEvent = $__m.dispatchEvent;\n expect = $__m.expect;\n iit = $__m.iit;\n inject = $__m.inject;\n beforeEachBindings = $__m.beforeEachBindings;\n it = $__m.it;\n xit = $__m.xit;\n }, function($__m) {\n TestBed = $__m.TestBed;\n }, function($__m) {\n Component = $__m.Component;\n }, function($__m) {\n View = $__m.View;\n }, function($__m) {\n DynamicComponentLoader = $__m.DynamicComponentLoader;\n }, function($__m) {\n ElementRef = $__m.ElementRef;\n }, function($__m) {\n If = $__m.If;\n }, function($__m) {\n DirectDomRenderer = $__m.DirectDomRenderer;\n }, function($__m) {\n DOM = $__m.DOM;\n }],\n execute: function() {\n ImperativeViewComponentUsingNgComponent = (function() {\n var ImperativeViewComponentUsingNgComponent = function ImperativeViewComponentUsingNgComponent(self, dynamicComponentLoader, renderer) {\n var div = el('<div></div>');\n renderer.setImperativeComponentRootNodes(self.parentView.render, self.boundElementIndex, [div]);\n this.done = dynamicComponentLoader.loadIntoNewLocation(ChildComp, self, div, null);\n };\n return ($traceurRuntime.createClass)(ImperativeViewComponentUsingNgComponent, {}, {});\n }());\n Object.defineProperty(ImperativeViewComponentUsingNgComponent, \"annotations\", {get: function() {\n return [new Component({selector: 'imp-ng-cmp'}), new View({renderer: 'imp-ng-cmp-renderer'})];\n }});\n Object.defineProperty(ImperativeViewComponentUsingNgComponent, \"parameters\", {get: function() {\n return [[ElementRef], [DynamicComponentLoader], [DirectDomRenderer]];\n }});\n ChildComp = (function() {\n var ChildComp = function ChildComp() {\n this.ctxProp = 'hello';\n };\n return ($traceurRuntime.createClass)(ChildComp, {}, {});\n }());\n Object.defineProperty(ChildComp, \"annotations\", {get: function() {\n return [new Component({selector: 'child-cmp'}), new View({template: '{{ctxProp}}'})];\n }});\n DynamicallyCreatedComponentService = (function() {\n var DynamicallyCreatedComponentService = function DynamicallyCreatedComponentService() {\n ;\n };\n return ($traceurRuntime.createClass)(DynamicallyCreatedComponentService, {}, {});\n }());\n DynamicComp = (function() {\n var DynamicComp = function DynamicComp(loader, location) {\n this.done = loader.loadIntoExistingLocation(DynamicallyCreatedCmp, location);\n };\n return ($traceurRuntime.createClass)(DynamicComp, {}, {});\n }());\n Object.defineProperty(DynamicComp, \"annotations\", {get: function() {\n return [new Component({selector: 'dynamic-comp'})];\n }});\n Object.defineProperty(DynamicComp, \"parameters\", {get: function() {\n return [[DynamicComponentLoader], [ElementRef]];\n }});\n DynamicallyCreatedCmp = (function() {\n var DynamicallyCreatedCmp = function DynamicallyCreatedCmp(a) {\n this.greeting = \"hello\";\n this.dynamicallyCreatedComponentService = a;\n };\n return ($traceurRuntime.createClass)(DynamicallyCreatedCmp, {}, {});\n }());\n Object.defineProperty(DynamicallyCreatedCmp, \"annotations\", {get: function() {\n return [new Component({\n selector: 'hello-cmp',\n injectables: [DynamicallyCreatedComponentService]\n }), new View({template: \"{{greeting}}\"})];\n }});\n Object.defineProperty(DynamicallyCreatedCmp, \"parameters\", {get: function() {\n return [[DynamicallyCreatedComponentService]];\n }});\n DynamicallyLoaded = (function() {\n var DynamicallyLoaded = function DynamicallyLoaded() {\n ;\n };\n return ($traceurRuntime.createClass)(DynamicallyLoaded, {}, {});\n }());\n Object.defineProperty(DynamicallyLoaded, \"annotations\", {get: function() {\n return [new Component({selector: 'dummy'}), new View({template: \"DynamicallyLoaded;\"})];\n }});\n DynamicallyLoaded2 = (function() {\n var DynamicallyLoaded2 = function DynamicallyLoaded2() {\n ;\n };\n return ($traceurRuntime.createClass)(DynamicallyLoaded2, {}, {});\n }());\n Object.defineProperty(DynamicallyLoaded2, \"annotations\", {get: function() {\n return [new Component({selector: 'dummy'}), new View({template: \"DynamicallyLoaded2;\"})];\n }});\n DynamicallyLoadedWithHostProps = (function() {\n var DynamicallyLoadedWithHostProps = function DynamicallyLoadedWithHostProps() {\n this.id = \"default\";\n };\n return ($traceurRuntime.createClass)(DynamicallyLoadedWithHostProps, {}, {});\n }());\n Object.defineProperty(DynamicallyLoadedWithHostProps, \"annotations\", {get: function() {\n return [new Component({\n selector: 'dummy',\n hostProperties: {'id': 'id'}\n }), new View({template: \"DynamicallyLoadedWithHostProps;\"})];\n }});\n Location = (function() {\n var Location = function Location(elementRef) {\n this.elementRef = elementRef;\n };\n return ($traceurRuntime.createClass)(Location, {}, {});\n }());\n Object.defineProperty(Location, \"annotations\", {get: function() {\n return [new Component({selector: 'location'}), new View({template: \"Location;\"})];\n }});\n Object.defineProperty(Location, \"parameters\", {get: function() {\n return [[ElementRef]];\n }});\n MyComp = (function() {\n var MyComp = function MyComp() {\n this.ctxBoolProp = false;\n };\n return ($traceurRuntime.createClass)(MyComp, {}, {});\n }());\n Object.defineProperty(MyComp, \"annotations\", {get: function() {\n return [new Component({selector: 'my-comp'}), new View({directives: []})];\n }});\n }\n };\n});\n//# sourceMappingURL=dynamic_component_loader_spec.es6.map\n\n//# sourceMappingURL=./dynamic_component_loader_spec.js.map", "repo_name": "denzp/pacman", "path": "application/lib/angular2/test/core/compiler/dynamic_component_loader_spec.js", "language": "JavaScript", "license": "isc", "size": 13760}
|
{"code": "// The following are instance methods and variables\nvar Note = Class.create({\n initialize: function(id, is_new, raw_body) {\n if (Note.debug) {\n console.debug(\"Note#initialize (id=%d)\", id)\n }\n\n this.id = id\n this.is_new = is_new\n this.document_observers = [];\n\n // Cache the elements\n this.elements = {\n box: $('note-box-' + this.id),\n corner: $('note-corner-' + this.id),\n body: $('note-body-' + this.id),\n image: $('image')\n }\n\n // Cache the dimensions\n this.fullsize = {\n left: this.elements.box.offsetLeft,\n top: this.elements.box.offsetTop,\n width: this.elements.box.clientWidth,\n height: this.elements.box.clientHeight\n }\n\n // Store the original values (in case the user clicks Cancel)\n this.old = {\n raw_body: raw_body,\n formatted_body: this.elements.body.innerHTML\n }\n for (p in this.fullsize) {\n this.old[p] = this.fullsize[p]\n }\n\n // Make the note translucent\n if (is_new) {\n this.elements.box.setOpacity(0.2)\n } else {\n this.elements.box.setOpacity(0.5)\n }\n\n if (is_new && raw_body == '') {\n this.bodyfit = true\n this.elements.body.style.height = \"100px\"\n }\n\n // Attach the event listeners\n this.elements.box.observe(\"mousedown\", this.dragStart.bindAsEventListener(this))\n this.elements.box.observe(\"mouseout\", this.bodyHideTimer.bindAsEventListener(this))\n this.elements.box.observe(\"mouseover\", this.bodyShow.bindAsEventListener(this))\n this.elements.corner.observe(\"mousedown\", this.resizeStart.bindAsEventListener(this))\n this.elements.body.observe(\"mouseover\", this.bodyShow.bindAsEventListener(this))\n this.elements.body.observe(\"mouseout\", this.bodyHideTimer.bindAsEventListener(this))\n this.elements.body.observe(\"click\", this.showEditBox.bindAsEventListener(this))\n\n this.adjustScale()\n },\n\n // Returns the raw text value of this note\n textValue: function() {\n if (Note.debug) {\n console.debug(\"Note#textValue (id=%d)\", this.id)\n }\n\n return this.old.raw_body.strip()\n },\n\n // Removes the edit box\n hideEditBox: function(e) {\n if (Note.debug) {\n console.debug(\"Note#hideEditBox (id=%d)\", this.id)\n }\n\n var editBox = $('edit-box')\n\n if (editBox != null) {\n var boxid = editBox.noteid\n\n $(\"edit-box\").stopObserving()\n $(\"note-save-\" + boxid).stopObserving()\n $(\"note-cancel-\" + boxid).stopObserving()\n $(\"note-remove-\" + boxid).stopObserving()\n $(\"note-history-\" + boxid).stopObserving()\n $(\"edit-box\").remove()\n }\n },\n\n // Shows the edit box\n showEditBox: function(e) {\n if (Note.debug) {\n console.debug(\"Note#showEditBox (id=%d)\", this.id)\n }\n\n this.hideEditBox(e)\n\n var insertionPosition = Note.getInsertionPosition()\n var top = insertionPosition[0]\n var left = insertionPosition[1]\n var html = \"\"\n\n html += '<div id=\"edit-box\" style=\"top: '+top+'px; left: '+left+'px; position: absolute; visibility: visible; z-index: 100; background: white; border: 1px solid black; padding: 12px;\">'\n html += '<form onsubmit=\"return false;\" style=\"padding: 0; margin: 0;\">'\n html += '<textarea rows=\"7\" id=\"edit-box-text\" style=\"width: 350px; margin: 2px 2px 12px 2px;\">' + this.textValue() + '</textarea>'\n html += '<input type=\"submit\" value=\"Save\" name=\"save\" id=\"note-save-' + this.id + '\">'\n html += '<input type=\"submit\" value=\"Cancel\" name=\"cancel\" id=\"note-cancel-' + this.id + '\">'\n html += '<input type=\"submit\" value=\"Remove\" name=\"remove\" id=\"note-remove-' + this.id + '\">'\n html += '<input type=\"submit\" value=\"History\" name=\"history\" id=\"note-history-' + this.id + '\">'\n html += '</form>'\n html += '</div>'\n\n $(\"note-container\").insert({bottom: html})\n $('edit-box').noteid = this.id\n $(\"edit-box\").observe(\"mousedown\", this.editDragStart.bindAsEventListener(this))\n $(\"note-save-\" + this.id).observe(\"click\", this.save.bindAsEventListener(this))\n $(\"note-cancel-\" + this.id).observe(\"click\", this.cancel.bindAsEventListener(this))\n $(\"note-remove-\" + this.id).observe(\"click\", this.remove.bindAsEventListener(this))\n $(\"note-history-\" + this.id).observe(\"click\", this.history.bindAsEventListener(this))\n $(\"edit-box-text\").focus()\n },\n\n // Shows the body text for the note\n bodyShow: function(e) {\n if (Note.debug) {\n console.debug(\"Note#bodyShow (id=%d)\", this.id)\n }\n\n if (this.dragging) {\n return\n }\n\n if (this.hideTimer) {\n clearTimeout(this.hideTimer)\n this.hideTimer = null\n }\n\n if (Note.noteShowingBody == this) {\n return\n }\n\n if (Note.noteShowingBody) {\n Note.noteShowingBody.bodyHide()\n }\n\n Note.noteShowingBody = this\n\n if (Note.zindex >= 9) {\n /* don't use more than 10 layers (+1 for the body, which will always be above all notes) */\n Note.zindex = 0\n for (var i=0; i< Note.all.length; ++i) {\n Note.all[i].elements.box.style.zIndex = 0\n }\n }\n\n this.elements.box.style.zIndex = ++Note.zindex\n this.elements.body.style.zIndex = 10\n this.elements.body.style.top = 0 + \"px\"\n this.elements.body.style.left = 0 + \"px\"\n\n var dw = document.documentElement.scrollWidth\n this.elements.body.style.visibility = \"hidden\"\n this.elements.body.style.display = \"block\"\n if (!this.bodyfit) {\n this.elements.body.style.height = \"auto\"\n this.elements.body.style.minWidth = \"140px\"\n var w = null, h = null, lo = null, hi = null, x = null, last = null\n w = this.elements.body.offsetWidth\n h = this.elements.body.offsetHeight\n if (w/h < 1.6180339887) {\n /* for tall notes (lots of text), find more pleasant proportions */\n lo = 140, hi = 400\n do {\n last = w\n x = (lo+hi)/2\n this.elements.body.style.minWidth = x + \"px\"\n w = this.elements.body.offsetWidth\n h = this.elements.body.offsetHeight\n if (w/h < 1.6180339887) lo = x\n else hi = x\n } while ((lo < hi) && (w > last))\n } else if (this.elements.body.scrollWidth <= this.elements.body.clientWidth) {\n /* for short notes (often a single line), make the box no wider than necessary */\n // scroll test necessary for Firefox\n lo = 20, hi = w\n\n do {\n x = (lo+hi)/2\n this.elements.body.style.minWidth = x + \"px\"\n if (this.elements.body.offsetHeight > h) lo = x\n else hi = x\n } while ((hi - lo) > 4)\n if (this.elements.body.offsetHeight > h)\n this.elements.body.style.minWidth = hi + \"px\"\n }\n\n if (Prototype.Browser.IE) {\n // IE7 adds scrollbars if the box is too small, obscuring the text\n if (this.elements.body.offsetHeight < 35) {\n this.elements.body.style.minHeight = \"35px\"\n }\n\n if (this.elements.body.offsetWidth < 47) {\n this.elements.body.style.minWidth = \"47px\"\n }\n }\n this.bodyfit = true\n }\n this.elements.body.style.top = (this.elements.box.offsetTop + this.elements.box.clientHeight + 5) + \"px\"\n // keep the box within the document's width\n var l = 0, e = this.elements.box\n do { l += e.offsetLeft } while (e = e.offsetParent)\n l += this.elements.body.offsetWidth + 10 - dw\n if (l > 0)\n this.elements.body.style.left = this.elements.box.offsetLeft - l + \"px\"\n else\n this.elements.body.style.left = this.elements.box.offsetLeft + \"px\"\n this.elements.body.style.visibility = \"visible\"\n },\n\n // Creates a timer that will hide the body text for the note\n bodyHideTimer: function(e) {\n if (Note.debug) {\n console.debug(\"Note#bodyHideTimer (id=%d)\", this.id)\n }\n this.hideTimer = setTimeout(this.bodyHide.bindAsEventListener(this), 250)\n },\n\n // Hides the body text for the note\n bodyHide: function(e) {\n if (Note.debug) {\n console.debug(\"Note#bodyHide (id=%d)\", this.id)\n }\n\n this.elements.body.hide()\n if (Note.noteShowingBody == this) {\n Note.noteShowingBody = null\n }\n },\n\n addDocumentObserver: function(name, func)\n {\n document.observe(name, func);\n this.document_observers.push([name, func]);\n },\n\n clearDocumentObservers: function(name, handler)\n {\n for(var i = 0; i < this.document_observers.length; ++i)\n {\n var observer = this.document_observers[i];\n document.stopObserving(observer[0], observer[1]);\n }\n\n this.document_observers = [];\n },\n\n // Start dragging the note\n dragStart: function(e) {\n if (Note.debug) {\n console.debug(\"Note#dragStart (id=%d)\", this.id)\n }\n\n this.addDocumentObserver(\"mousemove\", this.drag.bindAsEventListener(this))\n this.addDocumentObserver(\"mouseup\", this.dragStop.bindAsEventListener(this))\n this.addDocumentObserver(\"selectstart\", function() {return false})\n\n this.cursorStartX = e.pointerX()\n this.cursorStartY = e.pointerY()\n this.boxStartX = this.elements.box.offsetLeft\n this.boxStartY = this.elements.box.offsetTop\n this.boundsX = new ClipRange(5, this.elements.image.clientWidth - this.elements.box.clientWidth - 5)\n this.boundsY = new ClipRange(5, this.elements.image.clientHeight - this.elements.box.clientHeight - 5)\n this.dragging = true\n this.bodyHide()\n },\n\n // Stop dragging the note\n dragStop: function(e) {\n if (Note.debug) {\n console.debug(\"Note#dragStop (id=%d)\", this.id)\n }\n\n this.clearDocumentObservers()\n\n this.cursorStartX = null\n this.cursorStartY = null\n this.boxStartX = null\n this.boxStartY = null\n this.boundsX = null\n this.boundsY = null\n this.dragging = false\n\n this.bodyShow()\n },\n\n ratio: function() {\n return this.elements.image.width / this.elements.image.getAttribute(\"large_width\")\n // var ratio = this.elements.image.width / this.elements.image.getAttribute(\"large_width\")\n // if (this.elements.image.scale_factor != null)\n // ratio *= this.elements.image.scale_factor;\n // return ratio\n },\n\n // Scale the notes for when the image gets resized\n adjustScale: function() {\n if (Note.debug) {\n console.debug(\"Note#adjustScale (id=%d)\", this.id)\n }\n\n var ratio = this.ratio()\n for (p in this.fullsize) {\n this.elements.box.style[p] = this.fullsize[p] * ratio + 'px'\n }\n },\n\n // Update the note's position as it gets dragged\n drag: function(e) {\n var left = this.boxStartX + e.pointerX() - this.cursorStartX\n var top = this.boxStartY + e.pointerY() - this.cursorStartY\n left = this.boundsX.clip(left)\n top = this.boundsY.clip(top)\n\n this.elements.box.style.left = left + 'px'\n this.elements.box.style.top = top + 'px'\n var ratio = this.ratio()\n this.fullsize.left = left / ratio\n this.fullsize.top = top / ratio\n\n e.stop()\n },\n\n // Start dragging the edit box\n editDragStart: function(e) {\n if (Note.debug) {\n console.debug(\"Note#editDragStart (id=%d)\", this.id)\n }\n\n var node = e.element().nodeName\n if (node != 'FORM' && node != 'DIV') {\n return\n }\n\n this.addDocumentObserver(\"mousemove\", this.editDrag.bindAsEventListener(this))\n this.addDocumentObserver(\"mouseup\", this.editDragStop.bindAsEventListener(this))\n this.addDocumentObserver(\"selectstart\", function() {return false})\n\n this.elements.editBox = $('edit-box');\n this.cursorStartX = e.pointerX()\n this.cursorStartY = e.pointerY()\n this.editStartX = this.elements.editBox.offsetLeft\n this.editStartY = this.elements.editBox.offsetTop\n this.dragging = true\n },\n\n // Stop dragging the edit box\n editDragStop: function(e) {\n if (Note.debug) {\n console.debug(\"Note#editDragStop (id=%d)\", this.id)\n }\n this.clearDocumentObservers()\n\n this.cursorStartX = null\n this.cursorStartY = null\n this.editStartX = null\n this.editStartY = null\n this.dragging = false\n },\n\n // Update the edit box's position as it gets dragged\n editDrag: function(e) {\n var left = this.editStartX + e.pointerX() - this.cursorStartX\n var top = this.editStartY + e.pointerY() - this.cursorStartY\n\n this.elements.editBox.style.left = left + 'px'\n this.elements.editBox.style.top = top + 'px'\n\n e.stop()\n },\n\n // Start resizing the note\n resizeStart: function(e) {\n if (Note.debug) {\n console.debug(\"Note#resizeStart (id=%d)\", this.id)\n }\n\n this.cursorStartX = e.pointerX()\n this.cursorStartY = e.pointerY()\n this.boxStartWidth = this.elements.box.clientWidth\n this.boxStartHeight = this.elements.box.clientHeight\n this.boxStartX = this.elements.box.offsetLeft\n this.boxStartY = this.elements.box.offsetTop\n this.boundsX = new ClipRange(10, this.elements.image.clientWidth - this.boxStartX - 5)\n this.boundsY = new ClipRange(10, this.elements.image.clientHeight - this.boxStartY - 5)\n this.dragging = true\n\n this.clearDocumentObservers()\n this.addDocumentObserver(\"mousemove\", this.resize.bindAsEventListener(this))\n this.addDocumentObserver(\"mouseup\", this.resizeStop.bindAsEventListener(this))\n\n e.stop()\n this.bodyHide()\n },\n\n // Stop resizing teh note\n resizeStop: function(e) {\n if (Note.debug) {\n console.debug(\"Note#resizeStop (id=%d)\", this.id)\n }\n\n this.clearDocumentObservers()\n\n this.boxCursorStartX = null\n this.boxCursorStartY = null\n this.boxStartWidth = null\n this.boxStartHeight = null\n this.boxStartX = null\n this.boxStartY = null\n this.boundsX = null\n this.boundsY = null\n this.dragging = false\n\n e.stop()\n },\n\n // Update the note's dimensions as it gets resized\n resize: function(e) {\n var width = this.boxStartWidth + e.pointerX() - this.cursorStartX\n var height = this.boxStartHeight + e.pointerY() - this.cursorStartY\n width = this.boundsX.clip(width)\n height = this.boundsY.clip(height)\n\n this.elements.box.style.width = width + \"px\"\n this.elements.box.style.height = height + \"px\"\n var ratio = this.ratio()\n this.fullsize.width = width / ratio\n this.fullsize.height = height / ratio\n\n e.stop()\n },\n\n // Save the note to the database\n save: function(e) {\n if (Note.debug) {\n console.debug(\"Note#save (id=%d)\", this.id)\n }\n\n var note = this\n for (p in this.fullsize) {\n this.old[p] = this.fullsize[p]\n }\n this.old.raw_body = $('edit-box-text').value\n this.old.formatted_body = this.textValue()\n // FIXME: this is not quite how the note will look (filtered elems, <tn>...). the user won't input a <script> that only damages him, but it might be nice to \"preview\" the <tn> here\n this.elements.body.update(this.textValue())\n\n this.hideEditBox(e)\n this.bodyHide()\n this.bodyfit = false\n\n var params = {\n \"id\": this.id,\n \"note[x]\": this.old.left,\n \"note[y]\": this.old.top,\n \"note[width]\": this.old.width,\n \"note[height]\": this.old.height,\n \"note[body]\": this.old.raw_body\n }\n\n if (this.is_new) {\n params[\"note[post_id]\"] = Note.post_id\n }\n\n notice(\"Saving note...\")\n\n new Ajax.Request('/note/update.json', {\n parameters: params,\n\n onComplete: function(resp) {\n var resp = resp.responseJSON\n\n if (resp.success) {\n notice(\"Note saved\")\n var note = Note.find(resp.old_id)\n\n if (resp.old_id < 0) {\n note.is_new = false\n note.id = resp.new_id\n note.elements.box.id = 'note-box-' + note.id\n note.elements.body.id = 'note-body-' + note.id\n note.elements.corner.id = 'note-corner-' + note.id\n }\n note.elements.body.innerHTML = resp.formatted_body\n note.elements.box.setOpacity(0.5)\n note.elements.box.removeClassName('unsaved')\n } else {\n notice(\"Error: \" + resp.reason)\n note.elements.box.addClassName('unsaved')\n }\n }\n })\n\n e.stop()\n },\n\n // Revert the note to the last saved state\n cancel: function(e) {\n if (Note.debug) {\n console.debug(\"Note#cancel (id=%d)\", this.id)\n }\n\n this.hideEditBox(e)\n this.bodyHide()\n\n var ratio = this.ratio()\n for (p in this.fullsize) {\n this.fullsize[p] = this.old[p]\n this.elements.box.style[p] = this.fullsize[p] * ratio + 'px'\n }\n this.elements.body.innerHTML = this.old.formatted_body\n\n e.stop()\n },\n\n // Remove all references to the note from the page\n removeCleanup: function() {\n if (Note.debug) {\n console.debug(\"Note#removeCleanup (id=%d)\", this.id)\n }\n\n this.elements.box.remove()\n this.elements.body.remove()\n\n var allTemp = []\n for (i=0; i<Note.all.length; ++i) {\n if (Note.all[i].id != this.id) {\n allTemp.push(Note.all[i])\n }\n }\n\n Note.all = allTemp\n Note.updateNoteCount()\n },\n\n // Removes a note from the database\n remove: function(e) {\n if (Note.debug) {\n console.debug(\"Note#remove (id=%d)\", this.id)\n }\n\n this.hideEditBox(e)\n this.bodyHide()\n this_note = this\n\n if (this.is_new) {\n this.removeCleanup()\n notice(\"Note removed\")\n\n } else {\n notice(\"Removing note...\")\n\n new Ajax.Request('/note/update.json', {\n parameters: {\n \"id\": this.id,\n \"note[is_active]\": \"0\"\n },\n onComplete: function(resp) {\n var resp = resp.responseJSON\n\n if (resp.success) {\n notice(\"Note removed\")\n this_note.removeCleanup()\n } else {\n notice(\"Error: \" + resp.reason)\n }\n }\n })\n }\n\n e.stop()\n },\n\n // Redirect to the note's history\n history: function(e) {\n if (Note.debug) {\n console.debug(\"Note#history (id=%d)\", this.id)\n }\n\n this.hideEditBox(e)\n\n if (this.is_new) {\n notice(\"This note has no history\")\n } else {\n location.href = '/history?search=notes:' + this.id\n }\n\n e.stop()\n }\n})\n\n// The following are class methods and variables\nObject.extend(Note, {\n zindex: 0,\n counter: -1,\n all: [],\n display: true,\n debug: false,\n\n // Show all notes\n show: function() {\n if (Note.debug) {\n console.debug(\"Note.show\")\n }\n\n $(\"note-container\").show()\n },\n\n // Hide all notes\n hide: function() {\n if (Note.debug) {\n console.debug(\"Note.hide\")\n }\n\n $(\"note-container\").hide()\n },\n\n // Find a note instance based on the id number\n find: function(id) {\n if (Note.debug) {\n console.debug(\"Note.find\")\n }\n\n for (var i=0; i<Note.all.size(); ++i) {\n if (Note.all[i].id == id) {\n return Note.all[i]\n }\n }\n\n return null\n },\n\n // Toggle the display of all notes\n toggle: function() {\n if (Note.debug) {\n console.debug(\"Note.toggle\")\n }\n\n if (Note.display) {\n Note.hide()\n Note.display = false\n } else {\n Note.show()\n Note.display = true\n }\n },\n\n // Update the text displaying the number of notes a post has\n updateNoteCount: function() {\n if (Note.debug) {\n console.debug(\"Note.updateNoteCount\")\n }\n\n if (Note.all.length > 0) {\n var label = \"\"\n\n if (Note.all.length == 1)\n label = \"note\"\n else\n label = \"notes\"\n\n $('note-count').innerHTML = \"This post has <a href=\\\"/note/history?post_id=\" + Note.post_id + \"\\\">\" + Note.all.length + \" \" + label + \"</a>\"\n } else {\n $('note-count').innerHTML = \"\"\n }\n },\n\n // Create a new note\n create: function() {\n if (Note.debug) {\n console.debug(\"Note.create\")\n }\n\n\t\tNote.show()\n\n var insertion_position = Note.getInsertionPosition()\n var top = insertion_position[0]\n var left = insertion_position[1]\n var html = ''\n html += '<div class=\"note-box unsaved\" style=\"width: 150px; height: 150px; '\n html += 'top: ' + top + 'px; '\n html += 'left: ' + left + 'px;\" '\n html += 'id=\"note-box-' + Note.counter + '\">'\n html += '<div class=\"note-corner\" id=\"note-corner-' + Note.counter + '\"></div>'\n html += '</div>'\n html += '<div class=\"note-body\" title=\"Click to edit\" id=\"note-body-' + Note.counter + '\"></div>'\n $(\"note-container\").insert({bottom: html})\n var note = new Note(Note.counter, true, \"\")\n Note.all.push(note)\n Note.counter -= 1\n },\n\n // Find a suitable position to insert new notes\n getInsertionPosition: function() {\n if (Note.debug) {\n console.debug(\"Note.getInsertionPosition\")\n }\n\n // We want to show the edit box somewhere on the screen, but not outside the image.\n var scroll_x = $(\"image\").cumulativeScrollOffset()[0]\n var scroll_y = $(\"image\").cumulativeScrollOffset()[1]\n var image_left = $(\"image\").positionedOffset()[0]\n var image_top = $(\"image\").positionedOffset()[1]\n var image_right = image_left + $(\"image\").width\n var image_bottom = image_top + $(\"image\").height\n var left = 0\n var top = 0\n\n if (scroll_x > image_left) {\n left = scroll_x\n } else {\n left = image_left\n }\n\n if (scroll_y > image_top) {\n top = scroll_y\n } else {\n top = image_top + 20\n }\n\n if (top > image_bottom) {\n top = image_top + 20\n }\n\n return [top, left]\n }\n})\n", "repo_name": "rhaphazard/moebooru", "path": "lib/assets/javascripts/moe-legacy/notes.js", "language": "JavaScript", "license": "isc", "size": 21067}
|
{"code": "describe('dJSON', function () {\n 'use strict';\n\n var chai = require('chai');\n var expect = chai.expect;\n\n var dJSON = require('../lib/dJSON');\n\n var path = 'x.y[\"q.{r}\"].z';\n var obj;\n beforeEach(function () {\n obj = {\n x: {\n y: {\n 'q.{r}': {\n z: 635\n },\n q: {\n r: {\n z: 1\n }\n }\n }\n },\n 'x-y': 5,\n falsy: false\n };\n });\n it('gets a value from an object with a path containing properties which contain a period', function () {\n expect(dJSON.get(obj, path)).to.equal(635);\n expect(dJSON.get(obj, 'x.y.q.r.z')).to.equal(1);\n });\n\n it('sets a value from an object with a path containing properties which contain a period', function () {\n dJSON.set(obj, path, 17771);\n expect(dJSON.get(obj, path)).to.equal(17771);\n expect(dJSON.get(obj, 'x.y.q.r.z')).to.equal(1);\n });\n\n it('will return undefined when requesting a property with a dash directly', function () {\n expect(dJSON.get(obj, 'x-y')).to.be.undefined;\n });\n\n it('will return the proper value when requesting a property with a dash by square bracket notation', function () {\n expect(dJSON.get(obj, '[\"x-y\"]')).to.equal(5);\n });\n\n it('returns a value that is falsy', function () {\n expect(dJSON.get(obj, 'falsy')).to.equal(false);\n });\n\n it('sets a value that is falsy', function () {\n dJSON.set(obj, 'new', false);\n expect(dJSON.get(obj, 'new')).to.equal(false);\n });\n\n it('uses an empty object as default for the value in the set method', function () {\n var newObj = {};\n dJSON.set(newObj, 'foo.bar.lorem');\n expect(newObj).to.deep.equal({\n foo: {\n bar: {\n lorem: {}\n }\n }\n });\n });\n\n it('does not create an object when a path exists as empty string', function () {\n var newObj = {\n nestedObject: {\n anArray: [\n 'i have a value',\n ''\n ]\n }\n };\n var newPath = 'nestedObject.anArray[1]';\n\n dJSON.set(newObj, newPath, 17771);\n expect(newObj).to.deep.equal({\n nestedObject: {\n anArray: [\n 'i have a value',\n 17771\n ]\n }\n });\n });\n\n it('creates an object from a path with a left curly brace', function () {\n var newObj = {};\n\n dJSON.set(newObj, path.replace('}', ''), 'foo');\n expect(newObj).to.be.deep.equal({\n x: {\n y: {\n 'q.{r': {\n z: 'foo'\n }\n }\n }\n });\n });\n it('creates an object from a path with a right curly brace', function () {\n var newObj = {};\n\n dJSON.set(newObj, path.replace('{', ''), 'foo');\n expect(newObj).to.be.deep.equal({\n x: {\n y: {\n 'q.r}': {\n z: 'foo'\n }\n }\n }\n });\n });\n it('creates an object from a path with curly braces', function () {\n var newObj = {};\n\n dJSON.set(newObj, path, 'foo');\n expect(newObj).to.be.deep.equal({\n x: {\n y: {\n 'q.{r}': {\n z: 'foo'\n }\n }\n }\n });\n });\n it('creates an object from a path without curly braces', function () {\n var newObj = {};\n\n dJSON.set(newObj, path.replace('{', '').replace('}', ''), 'foo');\n expect(newObj).to.be.deep.equal({\n x: {\n y: {\n 'q.r': {\n z: 'foo'\n }\n }\n }\n });\n });\n});\n", "repo_name": "bsander/dJSON", "path": "test/dJSON.spec.js", "language": "JavaScript", "license": "isc", "size": 3391}
|
{"caption id": "0", "text": "= = = Initial inquiry = = ="}
|
{"caption id": "1", "text": "Needing a place to hold a reception for him , Philadelphia renovated the Old State House ( today Independence Hall ) , which might otherwise have been torn down ."}
|
{"caption id": "2", "text": "He left for New York in February 1831 and released a third volume of poems , simply titled Poems ."}
|
{"caption id": "3", "text": "Born after Judgment Day , Star is mute due to the trauma of the post @-@ apocalyptic world ."}
|
{"caption id": "5", "text": "In South Africa it is listed as an invasive species which must be controlled , or removed and destroyed ."}
|
{"caption id": "6", "text": "Contemporary author Ben Shapiro noted the verse \" seems to be Madonna 's credo ."}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.