text
stringlengths
1
1.04M
language
stringclasses
25 values
New Delhi, March 13 (IANS): Force India take to the track in the season opening Australian Grand Prix this weekend confident of their financial future and a coveted podium finish – the travails of their co-owner Sahara’s Subrata Roy notwithstanding. Expectations are high from Force India who have spared no efforts to become a mid-field force since their first season in 2008. They showed reliability in the pre-season testing of the sport’s turbo engine era, recording the second highest number of laps in the final test in Bahrain last week. The Silverstone squad is well-placed for the race at Melbourne Park, having a Mercedes engine which proved more reliable than its rivals Ferrari and Renault during testing. The biggest off-the-track challenge for them would be to take their minds off the happenings in India where the Supreme Court sent Roy to jail for non-payment to investors and another co-owner Vijay Mallya struggling to keep his shrinking business empire afloat. Deputy team principal Robert Fernley assured IANS over the phone that the midfield outfit would be focused on the job at Albert Park. “We are saddened with what is happening in India and hope the situation improves soon. However, I can assure you that it won’t have any impact on our performance. I am sure the owners too would expect us to give our best. The team is in good shape for the season and the aim is to regularly challenge for podium finish,” Fernley told IANS ahead of what he calls the biggest technological change he has seen in his three-decade-old motorsport career. Force India finished sixth last season ahead of Sauber and Williams, and were leading McLaren until changes in tyre composition post the Silverstone blowouts derailed their campaign. “We would have got a podium had the tyre changes not happened and we also had our moments in 2012 when Nico (Hulkenberg) led the race in Brazil before finishing fifth,” recalled Fernley. He is confident that the team will make up for the lost opportunities and has its best chance of bagging a top-three finish in the initial rounds. Fernley ruled out the possibility of the cars not finishing the race. Reigning champions Red Bull struggled to keep their car on track during testing, prompting their four-time champion Sebastian Vettel to say that the team would be content with “some more running” in Melbourne. “I know most teams have reliability issues but the idea of none of the teams finishing is a little far fetched. The Mercedes-powered teams have started well but it is only a matter of time before top teams like Ferrari and Red Bull bounce back,” he said. Force India have one of the most promising drivers’ line-up in Hulkenberg and Sergio Perez. Which driver is more likely to give them their first podium since 2009? “Both are very capable and it all depends on how the race unfolds. I reckon qualifying and race will be two different aspects and we should do better in the race,” summed up Fernley.
english
[{"namaKab":"<NAME>","originalFilename":"POTO.jpg","namaPartai":"Partai Kebangkitan Bangsa","id":111962,"noUrut":1,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"ktp nanik - Copy.jpg","namaPartai":"Partai Kebangkitan Bangsa","id":112169,"noUrut":2,"nama":"<NAME>","stringJenisKelamin":"Perempuan"},{"namaKab":"<NAME>","originalFilename":"FOTO.jpg","namaPartai":"Partai Kebangkitan Bangsa","id":50677,"noUrut":3,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"L IZUDIN.jpg","namaPartai":"Partai Kebangkitan Bangsa","id":50897,"noUrut":4,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"POTO.jpeg","namaPartai":"Partai Kebangkitan Bangsa","id":187863,"noUrut":5,"nama":"<NAME>","stringJenisKelamin":"Perempuan"},{"namaKab":"<NAME>","originalFilename":"POTO.jpeg","namaPartai":"Partai Kebangkitan Bangsa","id":188763,"noUrut":6,"nama":"JAMALUDIN","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"FOTO WAIS AULAWI.jpg","namaPartai":"Partai Kebangkitan Bangsa","id":51246,"noUrut":7,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"FOTO.jpg","namaPartai":"Partai Kebang<NAME>","id":188319,"noUrut":8,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"POTO.jpeg","namaPartai":"Part<NAME>","id":302391,"noUrut":9,"nama":"<NAME>","stringJenisKelamin":"Perempuan"},{"namaKab":"<NAME>","originalFilename":"FOTO.jpg","namaPartai":"Part<NAME>","id":111821,"noUrut":10,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"}]
json
· In 1779, when a small colony established at Chatham Island, the conventional agriculture in a small area taken up to support the population. · This project subsequently abandoned due to aboriginal menace and diseases. · The first convict settlement in the Andaman Islands was done by Lord Mayo in 1870 by grant of tickets of leave and clearing a few hectares of land for cultivation of rice and vegetable around Port Blair. · Only about 18,000 ha. were cleared till 1931 because of the embargo to the entry to the Islands and fear from the aboriginal tribes. · The major clearance of forest and settlement on Agriculture was taken up after Independence with the settlement programme of refugees, landless people from mainland, repatriates of Srilanka and Burma and the ex-servicemen. · With the settlement by repatriation, land distribution started in Andaman and Nicobar Islands, providing each settler about 2 ha. paddy land, 2 ha. hilly land and 0.4 ha. of homestead land. This marked the INITIATION OF AGRICULTURE IN THESE ISLANDS. · Plantation of coconut and arecanut in Nicobar group of Island goes to 7th century. · It is gathered that Coconut and Arecanut bartered with foreign ships since the 7th century in exchange for iron and steel implements, cereals and pulses. · Department of Agriculture established in 1945 to develop agriculture in a systematic and scientific line. · After Independence, major stress was under area expansion up to the end of 4th Five Year Plan (1969-74). · From 5th Five Year Plan thrust diverted from area expansion to intensive agricultural practices in the existing area. · For spices development Central Sector Schemes for integrating development of spices introduced during 1976-77 with a sanctioned strength of 1Group-A, 3-GroupB, 7 Group-C & Group-D post). · Agriculture is important to the UT of Andaman and Nicobar Islands. · 50% of the UT population is directly/indirectly dependent on Agriculture & Allied activities. · Total land used for agriculture is relatively small due to paucity of non-forest land and numerous competing infrastructural demands. · Only about 6% of the non-forest land, i.e 50000 ha is available for agricultural purposes. · Paddy is the main field crop grown in about 8000 ha. Plantation crops occupy more than 50% of the total area. · After Tsunami only 45800 ha area available for cultivation. · About 4206 ha land submerged in 2004 Tsunami. Agriculture in these Islands is not very old. The original inhabitants of Andaman lived in isolation and were dependent for the food on forest products, fish and wild animals etc. for their survival. Cultivation of crops was unknown to them. In Nicobar group of Islands, the tribals have been growing plantation crops like coconut and arecanut for centuries . It is, reported that they used to exchange coconut and arecanut for rice and cloth etc. with foreign shippers visiting these Islands from China, Malaysia and Indonesia etc. In 1879, when a small colony was established at Chatham Island, the conventional agriculture in a small area was taken up to support the population to meet the demands of vegetables and also a few tropical fruits etc. However, this project was subsequently abandoned due to aboriginal menace and diseases. With the establishment of penal settlement during 1857 and with gradual increase of settlers by repatriation, land distribution started in Andaman and Nicobar Islands, providing each settler about 2 ha. paddy land, 2 ha. hilly land and 0.4 ha. of homestead land. This marked the initiation of agriculture in these Islands. Thus by and large the history of agriculture dates back a little more than a century, although plantation of coconut and arecanut in Nicobar group of Island goes to 7th century. The Department of Agriculture was established in 1945 to develop agriculture in these Islands in a systematic and scientific line. After Independence, major stress was under the area expansion and land for agriculture expanded up to the end of 4th Five Year Plan (1969-74). However, with the report of Mc Vean in 1976 on “Land use in the Andaman and Nicobar Islands”, which emphatically indicated these lands are essentially forest terrains and not suitable for large scale agriculture settlement and agro-based enterprise, the thrust was diverted from area expansion to intensive agricultural practices in the existing area. As on date, agricultural activities are therefore confined to an area of about 50,000 hects.
english
package ast import ( "testing" ) func Test_DropStmt_Table(t *testing.T) { DoTest(t, DeparseTest{ Query: `DROP TABLE temp;`, Expected: `DROP TABLE "temp"`, }) DoTest(t, DeparseTest{ Query: `drop table temp;`, Expected: `DROP TABLE "temp"`, }) DoTest(t, DeparseTest{ Query: `drop table "temp"`, Expected: `DROP TABLE "temp"`, }) } func Test_DropStmt_Table_Cascade(t *testing.T) { DoTest(t, DeparseTest{ Query: `DROP TABLE temp CASCADE;`, Expected: `DROP TABLE "temp" CASCADE`, }) DoTest(t, DeparseTest{ Query: `drop table temp cascade;`, Expected: `DROP TABLE "temp" CASCADE`, }) DoTest(t, DeparseTest{ Query: `drop table "temp" cascade`, Expected: `DROP TABLE "temp" CASCADE`, }) } func Test_DropStmt_Table_IfExists(t *testing.T) { DoTest(t, DeparseTest{ Query: `DROP TABLE IF EXISTS temp;`, Expected: `DROP TABLE IF EXISTS "temp"`, }) DoTest(t, DeparseTest{ Query: `drop table if exists temp;`, Expected: `DROP TABLE IF EXISTS "temp"`, }) DoTest(t, DeparseTest{ Query: `drop table if exists "temp" CASCADE`, Expected: `DROP TABLE IF EXISTS "temp" CASCADE`, }) } func Test_DropStmt_AccessMethod(t *testing.T) { DoTest(t, DeparseTest{ Query: `DROP ACCESS METHOD temp;`, Expected: `DROP ACCESS METHOD "temp"`, }) } func Test_DropStmt_Aggregate(t *testing.T) { DoTest(t, DeparseTest{ Query: `DROP AGGREGATE temp(bigint);`, Expected: `DROP AGGREGATE temp(bigint)`, }) DoTest(t, DeparseTest{ Query: `DROP AGGREGATE public.temp(integer);`, Expected: `DROP AGGREGATE public.temp(int)`, }) DoTest(t, DeparseTest{ Query: `DROP AGGREGATE public.temp(integer, text);`, Expected: `DROP AGGREGATE public.temp(int, text)`, }) } func Test_DropStmt_Cast(t *testing.T) { DoTest(t, DeparseTest{ Query: `DROP CAST (text AS int);`, Expected: `DROP CAST (text AS int)`, }) DoTest(t, DeparseTest{ Query: `DROP CAST (text AS integer);`, Expected: `DROP CAST (text AS int)`, }) DoTest(t, DeparseTest{ Query: `DROP CAST (BOOL AS text);`, Expected: `DROP CAST (bool AS text)`, }) } func Test_DropStmt_Collation(t *testing.T) { DoTest(t, DeparseTest{ Query: `DROP COLLATION thing;`, Expected: `DROP COLLATION "thing"`, }) DoTest(t, DeparseTest{ Query: `DROP COLLATION THING;`, Expected: `DROP COLLATION "thing"`, }) DoTest(t, DeparseTest{ Query: `DROP COLLATION "thing";`, Expected: `DROP COLLATION "thing"`, }) } func Test_DropStmt_Conversions(t *testing.T) { DoTest(t, DeparseTest{ Query: `DROP CONVERSION thing;`, Expected: `DROP CONVERSION "thing"`, }) DoTest(t, DeparseTest{ Query: `DROP CONVERSION THING;`, Expected: `DROP CONVERSION "thing"`, }) DoTest(t, DeparseTest{ Query: `DROP CONVERSION "thing";`, Expected: `DROP CONVERSION "thing"`, }) } func Test_DropStmt_Database(t *testing.T) { DoTest(t, DeparseTest{ Query: `DROP DATABASE thing;`, Expected: `DROP DATABASE thing`, }) DoTest(t, DeparseTest{ Query: `drop database thing;`, Expected: `DROP DATABASE thing`, }) DoTest(t, DeparseTest{ Query: `drop database IF EXISTS thing;`, Expected: `DROP DATABASE IF EXISTS thing`, }) }
go
{"name": "Benefit-Cost Ratio (BCR) Definition", "@id": "https://www.investopedia.com/terms/b/bcr.asp", "related": ["https://www.investopedia.com/terms/p/profitability-index-rule.asp", "https://www.investopedia.com/terms/c/cost-benefitanalysis.asp", "https://www.investopedia.com/terms/p/profitability.asp", "https://www.investopedia.com/terms/i/irr.asp", "https://www.investopedia.com/terms/n/npv.asp", "https://www.investopedia.com/terms/d/discounted-after-tax-cash-flow.asp"], "body": ["\nA benefit-cost ratio (BCR) is a ratio used in a <a class=\"CMY_Link CMY_Valid\" data-component=\"link\" data-ordinal=\"1\" data-source=\"inlineLink\" data-type=\"internalLink\" href=\"https://www.investopedia.com/terms/c/cost-benefitanalysis.asp\">cost-benefit analysis</a> to summarize the overall relationship between the relative costs and benefits of a proposed project. BCR can be expressed in monetary or qualitative terms. If a project has a BCR greater than 1.0, the project is expected to deliver a positive net present value to a firm and its investors.\n", "\nBenefit-cost ratios (BCRs) are most often used in <a class=\"CMY_Link CMY_Valid\" data-component=\"link\" data-ordinal=\"1\" data-source=\"inlineLink\" data-type=\"internalLink\" href=\"https://www.investopedia.com/terms/c/capitalbudgeting.asp\">capital budgeting</a> to analyze the overall value for money of undertaking a new project. However, the cost-benefit analyses for large projects can be hard to get right, because there are so many assumptions and uncertainties that are hard to quantify. This is why there is usually a wide range of potential BCR outcomes.\n", "\nThe BCR also does not provide any sense of how much economic value will be created, and so the BCR is usually used to get a rough idea about the viability of a project and how much the internal rate of return (IRR) exceeds the discount rate, which is the company\u2019s <a class=\"CMY_Link CMY_Valid\" data-component=\"link\" data-ordinal=\"1\" data-source=\"inlineLink\" data-type=\"internalLink\" href=\"https://www.investopedia.com/terms/w/wacc.asp\">weighted-average cost of capital</a> (WACC) \u2013 the opportunity cost of that capital.\n", "\nThe BCR is calculated by dividing the proposed total cash benefit of a project by the proposed total cash cost of the project. Prior to dividing the numbers, the net present value of the respective cash flows over the proposed lifetime of the project \u2013 taking into account the <a class=\"CMY_Link CMY_Valid\" data-component=\"link\" data-ordinal=\"1\" data-source=\"inlineLink\" data-type=\"internalLink\" href=\"https://www.investopedia.com/terms/t/terminalvalue.asp\">terminal values</a>, including salvage/remediation costs \u2013 are calculated.\n", "\nIf a project has a BCR that is greater than 1.0, the project is expected to deliver a positive net present value (NPV) and will have an internal rate of return (IRR) above the discount rate used in the DCF calculations. This suggests that the NPV of the project\u2019s cash flows outweighs the NPV of the costs, and the project should be considered.\n", "\nIf the BCR is equal to 1.0, the ratio indicates that the NPV of expected profits equals the costs. If a project's BCR is less than 1.0, the project's costs outweigh the benefits, and it should not be considered.\n", "\nAs an example, assume company ABC wishes to assess the profitability of a project that involves renovating an apartment building over the next year. The company decides to lease the equipment needed for the project for $50,000 rather than purchasing it. The inflation rate is 2%, and the renovations are expected to increase the company's annual profit by $100,000 for the next three years.\n", "\nThe NPV of the total cost of the lease does not need to be discounted, because the initial cost of $50,000 is paid up front. The NPV of the projected benefits is $288,388, or ($100,000 / (1 + 0.02)^1) + ($100,000 / (1 + 0.02)^2) + ($100,00 / (1 + 0.02)^3). Consequently, the BCR is 5.77, or $288,388 divided by $50,000.\n", "\nIn this example, our company has a BCR of 5.77, which indicates that the project's estimated benefits significantly outweigh its costs. Moreover, company ABC could expect $5.77 in benefits for each $1 of costs.\n", "\nThe primary limitation of the BCR is that it reduces a project to a simple number when the success or failure of an investment or expansion relies on many factors and can be undermined by unforeseen events. Simply following a rule that above 1.0 means success and below 1.0 spells failure is misleading and can provide a false sense of comfort with a project. The BCR must be used as a tool in conjunction with other types of analysis to make a well-informed decision.\n"]}
json
<filename>accounts/80.json { "type": "service_account", "project_id": "saf-2wdhp5vcmts25u6494rpxm3l2z", "private_key_id": "38e650075fe5b94d6ea43cd26e29f8d758bd597f", "private_key": "-----<KEY>", "client_email": "<EMAIL>", "client_id": "110142952739154023643", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/mfc-esfldxhxzirjvoerklbubx9xen%40saf-2wdhp5vcmts25u6494rpxm3l2z.iam.gserviceaccount.com" }
json
to charge South Africa to an imposing 365 which proved beyond the reach of the inexperienced Indian batting line-up in the third ODI in Ahmedabad. Bosman was feisty, Amla was elegant, de Villiers was destructive and Kallis and well ... Kallis - solid as ever. Together, the top order blasted South Africa to their highest score against India and helped avoid a clean sweep. It was de Villiers who played the most aggressive knock of the innings and it showcased his skill in picking gaps. The pitch was flat and India populated the on side, be it for spin or seam, and tried to force him to make mistakes while going for inside-out drives but he never erred. The bat swing was clean, the head was still and for the main part, he was looking to off drive and when the bowlers tried to cramp him with the alteration in line, he pinged the on side with five fours and two sixes. It was simple in its thought and complex in its execution but he pulled it off without seemingly breaking into a sweat. The best shot was probably a nonchalant inside-out lofted cover drive against Ravindra Jadeja, though there were two really sweetly timed peachy off drives off Sreesanth that stood out for its classy elegance. He reached his hundred with a six and a four off Rohit Sharma in the final over of the innings. While de Villiers indulged himself right from the start, it was Kallis who provided the necessary glue to hold the innings together in the middle overs. It was a typical Kallis innings; you didn't remember a stand-out shot in the first half of his knock and yet, he had reached his fifty from 68 balls with just one boundary. He dealt in nudges, pushes and gentle drives as he ensured South Africa held wickets intact for the fun in the end. As expected, he opened-up post fifty to muscle quite a few boundaries and overran de Villiers in the end with some clean hits. In the penultimate over, he crashed Sreesanth to the straight boundary before lifting him imperiously over long-off to bring up a very well-paced hundred. Before the de Villiers and Kallis show, it was a tango between Amla and Bosman that set up South Africa for the big total. If Amla applied the calm touch, Bosman provided the initial momentum at the top of the innings with a fiery cameo. If you had to pick a word to catch the spirit of Bosman's innings, it would have to be thump. It was filled with several crunchy blows but what really caught the eye was that he never went across the line. There were 11 boundaries in all but his first boundary, perhaps, was the sweetest of them all. He was just on 1 and the confidence to go for the big aerial hits hadn't yet sunk in and he just leaned forward to play a gorgeously timed on-the-up drive past Sreesanth. If Bosman thumped, Amla was all wristy elegance. He seemingly wristed even those on-the-up punchy shots through the off side where other batsmen would have used their arm a lot more but his best shot was a flicked boundary off Sreesanth - it was a short-of-length delivery on the off stump but Amla used the length to wrist it to the square-leg boundary. Unlike in the last ODI where the stiff target didn't allow him to pace his innings properly, he showed better judgement today: he sensed Bosman's confidence was on the rise and started to rotate the strike around and when Bosman fell, he realised he had to stay on for a big innings and started to work the angles for the singles. For their part India realised that pace, especially considering their inexperienced seamers, was not the way to go on this track and relied on the slow bowlers. But the inexperience of the attack proved too costly in the end. And when they chased, they could never get the momentum required to hunt down such a big target. The ball stopped occasionally on the dry pitch in the second half and the bowling was disciplined, without looking overtly threatening, but the pressure of the big target induced the mistakes from the inexperienced batting line-up. Virat Kohli and Rohit Sharma lifted India from 40 for 2 with a 95-run partnership but the run rate was slow. Roelf van der Merwe combined with Morne Morkel and Johan Botha to slip in a slew of tight overs and both batsmen couldn't break free. The run rate climbed and Dale Steyn used the resultant pressure to take out a couple of wickets. Though Suresh Raina later threw his bat around to collect a few boundaries, India were never really in the chase.
english
BUZZi Updates Coming Soon! Hello Steem community, We are currently updating BUZZi to bring new features to our users. During this update our current users may experience technical difficulties. Additionally, new users interested in joining BUZZi will not be able to download BUZZi from the Google Play Store. Stay tuned as we will make another announcement soon when we relaunch BUZZi with our new and improved updates! Previous Posts: - New Feature Updates: Notifications are now live!
english
--- extends: _layouts.post section: content image: https://i.dailymail.co.uk/1s/2020/09/26/15/33652808-0-image-a-21_1601131507193.jpg title: Fresh twist in case of carer charged over disabled woman left to rot in her own excrement description: <NAME>, who died in Adelaide in April, was allegedly left to rot in her own excrement by 69-year-old carer <NAME>. date: 2020-09-26-22-52-56 categories: [latest, news] featured: true --- A fresh twist in the case of a carer charged with manslaughter over a disabled woman's death was a witness to her final will, it has been revealed.  <NAME> died in the Royal Adelaide Hospital on April 6 from septic shock, multiple organ failure, severe pressure sores and malnourishment.  The 54-year-old, who had cerebral palsy and relied on NDIS support, was allegedly left to rot in her own excrement by 69-year-old carer <NAME>.  Maione was a key witness to <NAME>'s last will and testament which was also signed by a solicitor and dated December 18, 2013, The Advertiser reported.    <NAME> (pictured), 54, died at Royal Adelaide Hospital in April from septic shock, multiple organ failure, severe pressure sores and malnourishment <NAME> (pictured), 69, was charged with manslaughter over <NAME>'s death. She was a key witness on the 54-year-old's last will and testament  <NAME> (pictured) died after allegedly being left to rot in her own waste at at her home  Police have also alleged <NAME>'s jewellery was taken, her money was stolen and she was left in the same cane chair for 12 months.   <NAME>'s uncle, <NAME>, said he was not aware of any earlier wills and spoke out about the lack of financial safeguards protecting society's vulnerable people.    'How can a carer be a witness to the will of the person they are taking care of?' he said.  <NAME> explained his niece died with $150 in her bank account and had debts exceeding $80,000 despite a $325,000 inheritance from her father in 2009.  Ms Smith's final will left her entire estate to former carers and friends, but did not include Maione.    Two carers and a female friend were set to receive $2,000 and two male friends would be given <NAME>'s jewellery and pets. One of the men, <NAME>'s former school friend aged in his 50s, was an executor to her will and initiated probate, seeking to distribute her estate, on July 8.  South Australian police have released photos from inside Ms Smith's home where she sat in her final days. The 54-year-old was allegedly left in the same chair for 12 months  Maione (left) will remain under home detention until she appears in court in April next year He was set to receive the remainder of Ms Smith's estate, including her purpose-built Kensington Park house currently on the market for $929,000.  <NAME> said the oversight made by Maione's employer Integrity Care SA as well as the NDIS and state and federal governments had been an 'astounding failure'.   'How can probate begin when all the investigations are continuing, including her finances? It's simply beggars belief,' he said.  Mr Smith said safeguards were needed around witnesses signing legal documents for disabled, elderly and vulnerable people.  A police spokesman said Ms Smith's will had been viewed by police and no further comment could be made with the case before the courts. An investigation into <NAME>'s death and financial affairs is ongoing. Maione was granted bail to remain under home detention and will appear in Adelaide Magistrates Court in April 2021.  The 54-year-old lived alone in her Adelaide home (pictured) and relied on carers under the National Disability Insurance Scheme 
markdown
{ "name": "smartapis", "version": "1.0.0", "description": "Smart API specifications for various Ma'ayan Lab Tools. Testable versions of these specifications can be found at http://smart-api.info/registry, using the \"Maayanlab\" tag.", "main": "validate.js", "scripts": { "test": "npm run validate && npm run testapi", "testapi": "node test.js *.yml", "validate": "node validate.js *.yml" }, "repository": { "type": "git", "url": "git+https://github.com/MaayanLab/smartAPIs.git" }, "author": "", "license": "Apache-2.0", "bugs": { "url": "https://github.com/MaayanLab/smartAPIs/issues" }, "homepage": "https://github.com/MaayanLab/smartAPIs#readme", "devDependencies": { "glob": "^7.1.3", "openapi-schema-validation": "^0.4.2", "swagger-client": "^3.8.25", "yamljs": "^0.3.0" }, "dependencies": {} }
json
This video showcases how a lion comes to seek help from 7th Imam [as} The content of this video is extracted from the website al-islam.org Subscribe our channel to never miss empowering videos from the teachings of Ahlul Bayt (ams) Jazakullah Khair for watching and supporting us. We really appreciate it. May Allah (swt) accept our sincere services and provide us the taufiq to implement the teachings in our lives. AMEEN. #tehzeebulislamstudio, #imammusakazim, #imammusaibnjaffar, #musaal-kadhim, #kazim, #musaibnejafar, Send tehzeebulislamstudio a Message!
english
At more than 50 years of age, the semiconductor market is still sprightly, with growth this year in the 20 percent range. And with high growth comes short supply, which is why DRAM and flash prices have risen this year. Samsung, which already produces around half the world's supply of both commodities, plans a dramatic increase - almost 2.5x - in next year's capital expense (capex) budget in production facilities, to $26B. To put this in perspective, Intel's 2017 capital budget - after a 25 percent increase from 2016 - was only $12B. In fact, Samsung's bet is almost as large as the total 2017 capex budgets of the next three largest - Intel, TSMC, and SK Hynix - combined. Given that a greenfield plant now goes for $7B, this ups the ante in the high stakes poker of semiconductor manufacturing. The risk: industry-wide oversupply, slashed prices, and major balance sheet damage. But it's not all bad: we get cheaper memory and storage! For a while. Each of Samsung's top competitors now faces a difficult choice. Either they up their capital budgets to provide enough supply to maintain their market share, or give up trying to compete, as Samsung's higher volumes translate into economies of scale that no one else can match. Anyone who attempts to match Samsung faces the daunting prospect of industry-wide oversupply. falling prices, and massive losses. Semiconductor plants have to be run at full capacity to obtain lowest costs, so as long as prices cover all variable expenses, and make a contribution to fixed costs, such as debt service, it's worth it to keep them running, even at a loss. It isn't easy to decrease production. But if they don't ante up, competitors face the prospect of shrinking market share, higher costs, and eventually getting out of the business altogether. And don't count on an Intel and Micron joint venture to counter Samsung. Intel got out the DRAM business decades ago, and they've done very well despite it. Intel/Micron may be counting on their 3D XPoint non-volatile RAM - NVRAM - to rewire the DRAM and flash markets in their favor. But, IMHO, their decision to tie 3D XPoint tightly to Intel CPUs dooms that hope. Besides, Samsung can buy or license competing NVRAM technologies from Crossbar or Nantero. The good news for us consumers is that in 12-18 months we should start seeing a return to ever-cheaper DRAM and flash as new capacity comes on line. But longer term we could face a world where Samsung dominates DRAM and flash production, slowing price declines, and a dearth of competition. Ever cheaper memory and storage have driven our global conversion to a digital civilization. If we are to keep up the pace - and I'd argue it's essential for dealing with issues ranging from climate change to AI - we can't afford a permanent slowdown in their cost-effectiveness. This is bigger than a single industry. Courteous comments welcome, of course.
english
Bought PS3 160 GB console from croma in mumbai. HDMI cable works fine with my HD DTH settopbox (bundled with the dth) I already own a PS2 & also do gaming on my desktop. Was planning to get a PSP (E-1004 recently launched). Would like to know the gaming experience and if its worth buying.
english
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,200,300,600,700,900); div.content{ position: absolute; overflow-y:auto; margin-top : 60px; margin-left: 4%; height: 93.2%; width : 96%; z-index:0; } h1 { color: #fafafa; text-shadow: 1px 1px 2px #111111; } a.btn { background: #4f7bab; border-radius: 4px; box-shadow: 0 2px 0px 0 rgba(0, 0, 0, 0.25); color: #fafafa; display: inline-block; padding: 6px 30px 8px; position: relative; text-decoration: none; -webkit-transition: all 0.1s 0s ease-out; transition: all 0.1s 0s ease-out; } .no-touch a.btn:hover { background: #4f7bab; box-shadow: 0px 8px 2px 0 rgba(0, 0, 0, 0.075); -webkit-transform: translateY(-2px); transform: translateY(-2px); -webkit-transition: all 0.25s 0s ease-out; transition: all 0.25s 0s ease-out; } .no-touch a.btn:active, a.btn:active { background: #4f7bab; box-shadow: 0 1px 0px 0 rgba(255, 255, 255, 0.25); -webkit-transform: translate3d(0, 1px, 0); transform: translate3d(0, 1px, 0); -webkit-transition: all 0.025s 0s ease-out; transition: all 0.025s 0s ease-out; } *{padding:0;margin:0;} .float{ position:fixed; width:50px; height:50px; top:4px; right:5px; background-color:#4f7bab; color:#fafafa; border-radius:50px; text-align:center; box-shadow: 2px 2px 3px #999; } .float2{ position:fixed; width:50px; height:50px; top:4px; left:5px; background-color:#4f7bab; color:#fafafa; border-radius:5px; text-align:center; box-shadow: 2px 2px 3px #999; } .logo{ position:fixed; width:auto; height:50px; top:4px; left:70px; } .profile{ position:fixed; width:auto; top:4px; right:120px; } .username{ position:fixed; width:auto; top:21px; right:114px; } .my-float{ margin-top:19px; margin-left: 1px; } div.cards { margin-top : 3px; max-width: 1800px; text-align: center; margin: auto; } div.card { background: #fafafa; display: inline-block; margin: 8px; max-width: 300px; -webkit-perspective: 1000; perspective: 1000; position: relative; text-align: left; -webkit-transition: all 0.3s 0s ease-in; transition: all 0.3s 0s ease-in; z-index: 1; box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.50); } div.card img { max-width: 300px; } div.card div.card-title { background: #fafafa; padding: 6px 15px 10px; position: relative; z-index: 0; } div.card div.card-title a.toggle-info { border-radius: 32px; height: 32px; padding: 0; position: absolute; right: 15px; top: 10px; width: 32px; } div.card div.card-title a.toggle-info span { background: #fafafa; display: block; height: 2px; position: absolute; top: 16px; -webkit-transition: all 0.15s 0s ease-out; transition: all 0.15s 0s ease-out; width: 12px; } div.card div.card-title a.toggle-info span.left { right: 14px; -webkit-transform: rotate(45deg); transform: rotate(45deg); } div.card div.card-title a.toggle-info span.right { left: 14px; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } div.card div.card-title h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.05em; margin: 0; padding: 0; } div.card div.card-title h2 small { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.025em; } div.card div.card-description { padding: 0 15px 10px; position: relative; font-size: 14px; } div.card div.card-actions { box-shadow: 0 2px 0px 0 rgba(0, 0, 0, 0.075); padding: 10px 15px 20px; text-align: center; } div.card div.card-flap { background: #d9d9d9; position: absolute; width: 100%; -webkit-transform-origin: top; transform-origin: top; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } div.card div.flap1 { -webkit-transition: all 0.3s 0.3s ease-out; transition: all 0.3s 0.3s ease-out; z-index: -1; } div.card div.flap2 { -webkit-transition: all 0.3s 0s ease-out; transition: all 0.3s 0s ease-out; z-index: -2; } div.cards.showing div.card { cursor: pointer; opacity: 0.6; -webkit-transform: scale(0.88); transform: scale(0.88); } .no-touch div.cards.showing div.card:hover { opacity: 0.94; -webkit-transform: scale(0.92); transform: scale(0.92); } div.card.show { opacity: 1 !important; -webkit-transform: scale(1) !important; transform: scale(1) !important; } div.card.show div.card-title a.toggle-info { background: #ff6666 !important; } div.card.show div.card-title a.toggle-info span { top: 15px; } div.card.show div.card-title a.toggle-info span.left { right: 10px; } div.card.show div.card-title a.toggle-info span.right { left: 10px; } div.card.show div.card-flap { background: #fafafa; -webkit-transform: rotateX(0deg); transform: rotateX(0deg); } div.card.show div.flap1 { -webkit-transition: all 0.3s 0s ease-out; transition: all 0.3s 0s ease-out; } div.card.show div.flap2 { -webkit-transition: all 0.3s 0.2s ease-out; transition: all 0.3s 0.2s ease-out; } div.dropdown { color: #555; margin: 3px -22px 0 0; width: 143px; position: relative; height: 17px; text-align:left; } div.submenu { position: absolute; z-index: 100; width: 135px; display: none; margin-left: 10px; padding: 40px 0 5px; border-radius: 6px; } .dropdown li a { color: #555555; display: block; font-family: arial; font-weight: bold; padding: 6px 15px; cursor: pointer; text-decoration:none; } .dropdown li a:hover{ background:#155FB0; color: #FFFFFF; text-decoration: none; } a.account { font-size: 11px; line-height: 16px; color: #555; position: absolute; z-index: 110; display: block; padding: 11px 0 0 20px; height: 28px; width: 121px; margin: -11px 0 0 -10px; text-decoration: none; background: url(images/arrow.png) 80px 32px no-repeat; cursor:pointer; } .root { list-style: none; font-size: 11px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); background: #fff; padding: 10px 0 10px 0; border-radius: 5px 5px 5px 5px; margin: 21px 0 0 0; } .root:before { content: ''; display: inline-block; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 7px solid #ccc; border-bottom-color: #ffffff; position: absolute; color: #ffffff; top: 54px; left: 17px; } .profile-circle { width: 45px; height: 44px; background-size: cover; background-repeat: no-repeat; background-position: center center; -webkit-border-radius: 99em; -moz-border-radius: 99em; border-radius: 99em; border: 2px solid #eee; box-shadow: 0 3px 2px rgba(0, 0, 0, 0.3); vertical-align: middle; }
css
Love Hard is one of those romantic comedies where you can predict the ending within the movie's first half, but you can’t stop watching. The American-produced rom-com, directed by Hernán Jiménez and written by Danny Mackey and Rebecca Ewing, is available to watch on Netflix from today. Netflix synopsis of Love Hard reads, "After meeting her perfect match on a dating app, an L.A. writer learns she's been catfished when she flies 3,000 miles to surprise him for Christmas." So, how does the story unfold? What makes the film the perfect holiday rom-com despite it being so predictable? Let's find out. Love Hard follows the story of a girl named Natalie and her quest for true love, which eventually leads her to get catfished. Natalie is the atypical career woman who is a columnist making a living out of writing entertainment pieces inspired by her disastrous online dating life. Her boss commodifies her misery and encourages it as long as she turns in fabulous pieces that keep the growing readership entertained. She believes she is destined for this horrible dating life and frankly admits she can’t do it any longer until she finds her perfect match. Or what she thinks is her ideal match, Josh. In his online dating profile, it appears that Josh is the perfect sweet and sensitive man with a plus side - he is also unbelievably attractive. The two hit it off immediately, online, spending entire days in each others’ virtual company. Come Christmas, Natalie decides to fly 3000 miles from LA to Lake Placid to surprise and meet the guy she thinks will be her happy ending for the first time. Much to her horror and disappointment, she realized she had been catfished. Instead of meeting the handsome hunk, she ends up in the house of a nerdy little guy who lives with his parents. She walks out on him but soon bumps into the guy whose pictures Josh had been using on his profile, the guy she was attracted to, Tag. Natalie makes a deal with Josh, agreeing to pretend to be his girlfriend for Christmas, and in return, Josh sets her up with Tag. The deal was going pretty well until Josh asked Natalie to marry him to impress his family in the heat of the moment. At the same time, Natalie realizes how different she and Tag are, but she refuses to give up on what she thinks is the 'perfect guy' and keeps making compromises on her beliefs and identity to keep it going. Things soon start going downhill, and eventually, at a surprise engagement party that Josh's parents threw for them, Natalie comes clean with her lie. But that is not the end of it. Things soon start falling into place again, and the movie manages to package itself into a perfectly marketable predictable feel-good ending where Natalie comes back to Josh and accepts him for who he is, and there is your happily ever after. Love Hard stars Nina Dobrev as Natalie, Jimmy O. Yang as Josh, the guy who catfished her, and Darren Barnet as Tag, who Natalie thinks is her dream match. Is it worth your 1 hour and 45 minutes? After the movie is over, you cannot help but realize that our modern-day heroine is a crossover of Carrie Bradshaw from Sex and the City and Margaret from the 2009 film The Proposal. The similarities are starkly apparent. Apart from the predictable ending, what strikes you is a sense of unease as the Love Hard unfolds and you find yourself rooting for the 'good guy' Josh to end up with Natalie, despite the alarming red flag - he lied to her about his identity. And the supposedly independent, self-sufficient, self-respecting woman somehow does fall in love with him, and that leaves you with a sense of shock, even though you could see the ending from miles away. Love Hard makes for a pretty good lazy Sunday afternoon watch if you are into predictable rom-coms with a happily ever after. And if you are ready to recognize the problematic elements but put aside your principles for an hour and forty five minutes for some cheap thrills, you are good to go too. Despite being predictable, Love Hard does not disappoint. Catch the Love Hard streaming on Netflix from today.
english
// Arquivo cmd_register_logon_server.hpp // Criado em 03/12/2018 as 20:03 por Acrisio // Defini��o da classe CmdRegisterLogonServer #pragma once #ifndef _STDA_CMD_REGISTER_LOGON_SERVER_HPP #define _STDA_CMD_REGISTER_LOGON_SERVER_HPP #include "../../Projeto IOCP/PANGYA_DB/pangya_db.h" namespace stdA { class CmdRegisterLogonServer : public pangya_db { public: explicit CmdRegisterLogonServer(bool _waiter = false); CmdRegisterLogonServer(uint32_t _uid, std::string _server_id, bool _waiter = false); virtual ~CmdRegisterLogonServer(); uint32_t getUID(); void setUID(uint32_t _uid); std::string& getServerId(); void setServerId(std::string& _server_id); protected: void lineResult(result_set::ctx_res* _result, uint32_t _index_result) override; response* prepareConsulta(database& _db) override; std::string _getName() override { return "CmdRegisterLogonServer"; }; std::wstring _wgetName() override { return L"CmdRegisterLogonServer"; }; private: uint32_t m_uid; std::string m_server_id; const char* m_szConsulta = "pangya.ProcRegisterLogonServer"; }; } #endif // !_STDA_CMD_REGISTER_LOGON_SERVER_HPP
cpp
Why was Margaret Thatcher so afraid of German reunification? Why did a lifelong anti-Communist turn to the Soviet Union for support? And what lessons might be learned for Brexit Britain? According to the @Telegraph "Boris Johnson has speeded up plans to curb the judiciary". We must not be fooled by claims that this is about restoring "the sovereignty of Parliament".
english
The second-generation Apple AirPods Pro are not likely to include any fitness tracking features and won't arrive with temperature or heart rate detection this year. According to reports, the upcoming version of Apple device is likely to focus more on enhancing audio experience. Bloomberg's Mark Gurman said in a note that 2022 AirPods Pro refresh are "unlikely to get heart-rate monitoring. " On the ability to monitor the wearer's heart rate or body temperature, the noite said that neither feature is likely to arrive in the 2022 upgrade". The new features could include a microphone in the charging case, hearing aid functionality and a case speaker for the 'Find My network'. AirPods Pro are likely to enter mass production during the second half of the year. Apple analyst Ming-Chi Kuo recently said that AirPods Pro 2 will be manufactured in Vietnam, signaling a reduction in Apple's reliance on China. Apple is still expected to test and perfect AirPods Pro 2 manufacturing in China during the "New Product Introduction" phase of the process. In terms of features and changes to expect, Kuo predicted that the AirPods Pro 2 charging case will still feature a Lightning port for charging, dashing hopes for a switchover to USB-C this year.
english
{"appid": 435120, "name": "<NAME>", "windows": true, "mac": true, "linux": false, "early_access": false, "lookup_time": 1490991197}
json
NAIROBI, Kenya, Aug 21 – The United States African Command (AFRICOM) says it is increasingly concerned by the terror threats being issued to East African nations by the Al Shabaab network. US AFRICOM Commander Gen William Ward said his government will intensify surveillance on the Somali based radical group and others allied to the Al Qaeda led by Osama Bin Laden. “The threats are also in the Sahel with what goes on there with the Al Qaeda. But threats are more than just from those groups as well because there are other linkages that could be there,” he said citing other challenges that weigh in such as drug trafficking. Gen Ward’s visit to the continent which kicked off on Friday is part US efforts to coordinate and improve activities in support of military relations with African countries and organisations. Though he commended Kenya for its efforts in maintaining security and fighting terrorism in the region, Gen Ward said a lot more needed to be done. “The job is not over,” he emphasised. General Ward said Africom’s other major concerns at the moment include the crisis in Somalia and piracy on the Indian Ocean which he described as a global security challenge. AFRICOM as currently constituted has been training peacekeeping mission forces in Somalia and provides logistic support to AMISOM- the African Union’s mission in Somalia. “We will certainly continue to (support the African Union troops) as the numbers of AMISOM forces continue to rise,” he added. Currently, Gen Ward said, there are about 5000 AMISOM forces in Somalia.
english
With the Fortnite Chapter 4 Season 2 downtime ongoing, leaks have started to surface on social media platforms. The official gameplay trailer, which was released a few hours ago, has also revealed some exciting new features arriving in the new season. Among all the interesting leaks, HYPEX and iFireMonkey discovered unique game files indicating that the new season may offer cosmetic challenges for all players, regardless of whether they purchase the Battle Pass. This means that players can expect to receive free rewards every week in Chapter 4 Season 2. Collecting skins and cosmetics is an all-time favorite among players. Naturally, every time Epic Games announces free cosmetic rewards for challenges, free-to-play players end up having a field day. As it turns out, this might be a weekly occurrence in Chapter 4 Season 2. iFireMonkey recently posted on his Twitter account that he came across an exciting game file. Although the file is encrypted, its name gives a major hint regarding what players can expect in the upcoming season. The file named "quest_s24_weeklycosmetics_nobp_b04_q03" is rumored to have weekly quests, and players can earn free cosmetics by completing a few challenges. These quests will be available to every player, whether or not they have purchased the Battle Pass. Clearly, there isn't going to be a shortage of skins and cosmetics in Fortnite Chapter 4 Season 2, and the fact that many of them can be obtained for free makes things even more exciting. Players will have to wait for the downtime to end to see what kind of challenges and free cosmetics are waiting for them. Ever since a few of the skins were leaked, players have been excited to see the complete Battle Pass. A few hours ago, promo art for the pass was leaked, showcasing all of the skins coming in the next season. With the official update blog being released by Epic Games, players now have everything they need to decide whether they want to purchase the pass. The Fortnite Chapter 4 Season 2 Battle Pass will have seven base skins and a secret skin. Players will unlock the Renzo the Destroyer skin as soon as they purchase the pass. As they progress through the pass, they will also unlock the Imani, Thunder, Mystica, Stray, and Highwire skins. The Mizuki outfit will be the Tier 100 skin for the new season. Finally, Eren Jeager is waiting to be unlocked later in the season as the Mystery skin for Chapter 4 Season 2. Clearly, the all-new Fortnite Chapter 4 Season 2 Battle Pass is loaded with new and original cosmetics. All the new skins have exciting designs, with the likes of Thunder, Stray, and Renzo already ahead in the race for the best Battle Pass skin. The Battle Bus is heading into Fortnite Chapter 4 Season 4 soon! Check out the final Fortnite item shop today!
english
About a fortnight ago, Petroleum and Natural Gas Minister Hardeep Singh Puri said that the proposed privatisation of Bharat Petroleum Corporation Limited, or BPCL, was off the table. “We want to disinvest, but we cannot have a situation where there is only one bidder…For now, it is not on the table”, Mr Puri said on the sidelines of the 25th Energy Technology Meet in Mumbai. Endorsing such a stance, the Department of Investment and Public Asset Management also was reported to have stated that “owing to prevailing conditions in the global energy market, the majority of qualified interested parties have expressed their inability to continue in the current process of disinvestment of BPCL”. TO READ THE FULL STORY, SUBSCRIBE NOW NOW AT JUST RS 249 A MONTH. What you get on Business Standard Premium? - Unlock 30+ premium stories daily hand-picked by our editors, across devices on browser and app. - Pick your 5 favourite companies, get a daily email with all news updates on them. - Full access to our intuitive epaper - clip, save, share articles from any device; newspaper archives from 2006. - Preferential invites to Business Standard events. - Curated newsletters on markets, personal finance, policy & politics, start-ups, technology, and more.
english
import numpy as np import pandas as pd import xarray as xr import matplotlib.pyplot as plt import geocat.viz.util as gvutil path = r'H:\Python project 2021\climate_data_analysis_with_python\data\sst.mnmean.nc' ds= xr.open_dataset(path) # time slicing sst = ds.sst.sel(time=slice('1920-01-01','2020-12-01')) # anomaly with respect to 1971-2000 period clm = ds.sst.sel(time=slice('1971-01-01','2000-12-01')).groupby('time.month').mean(dim='time') anm = (sst.groupby('time.month') - clm) time = anm.time itime=np.arange(time.size) def wgt_areaave(indat, latS, latN, lonW, lonE): lat=indat.lat lon=indat.lon if ( ((lonW < 0) or (lonE < 0 )) and (lon.values.min() > -1) ): anm=indat.assign_coords(lon=( (lon + 180) % 360 - 180) ) lon=( (lon + 180) % 360 - 180) else: anm=indat iplat = lat.where( (lat >= latS ) & (lat <= latN), drop=True) iplon = lon.where( (lon >= lonW ) & (lon <= lonE), drop=True) # print(iplat) # print(iplon) wgt = np.cos(np.deg2rad(lat)) odat=anm.sel(lat=iplat,lon=iplon).weighted(wgt).mean(("lon", "lat"), skipna=True) return(odat) # bob sst bob_anm = wgt_areaave(anm,5,25,80,100) bob_ranm = bob_anm.rolling(time=7, center=True).mean('time') ## # Create a list of colors based on the color bar values colors = ['C1' if (value > 0) else 'C0' for value in bob_anm] fig = plt.figure(figsize=[8,5]) ax1 = fig.add_subplot(111) # Plot bar chart ax1.bar(itime, bob_anm, align='edge', edgecolor="none", color=colors, width=1.0) ax1.plot(itime, bob_ranm, color="black", linewidth=1.5) ax1.legend(['7-month running mean'],fontsize=12) # Use geocat.viz.util convenience function to add minor and major tick lines gvutil.add_major_minor_ticks(ax1, x_minor_per_major=4, y_minor_per_major=5, labelsize=12) # Use geocat.viz.util convenience function to set axes parameters ystr = 1920 yend = 2020 dyr = 20 ist, = np.where(time == pd.Timestamp(year=ystr, month=1, day=1) ) iet, = np.where(time == pd.Timestamp(year=yend, month=1, day=1) ) gvutil.set_axes_limits_and_ticks(ax1, ylim=(-1.5, 1), yticks=np.linspace(-1.5, 1, 6), yticklabels=np.linspace(-1.5, 1, 6), xlim=(itime[0], itime[-1]), xticks=itime[ist[0]:iet[0]+1:12*dyr], xticklabels=np.arange(ystr, yend+1, dyr)) # Use geocat.viz.util convenience function to set titles and labels gvutil.set_titles_and_labels(ax1, maintitle="SSTA in BoB (ERSST)", ylabel='Anomalies', xlabel= 'Year', maintitlefontsize=18, labelfontsize=15) plt.tight_layout() plt.savefig("bob_anomalies.png",dpi = 300) ########## BoB SST with respect to ENSO and IOD (ERSST) #nino 3.4 and dipole mode index plot together nino = wgt_areaave(anm,-5,5,-170,-120) nino = nino.rolling(time=7, center=True).mean('time') #IOD west: 50 ° E to 70 ° E and 10 ° S to 10 ° N. iod_west = wgt_areaave(anm,-10,10,50,70) # IOD east: 90 ° E to 110 ° E and 10 ° S to 0 ° S. iod_east = wgt_areaave(anm,-10,0,90,110) dmi = iod_west - iod_east dmi = dmi.rolling(time=7, center=True).mean('time') ### Figure Plot fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(8, 8)) ax1.set_title('BoB anomaly with repect to ENSO') ax1.plot(time, bob_ranm, '-', linewidth=1) ax1.plot(time, nino, '-', linewidth=1) ax1.tick_params(length = 7,right=True,labelsize=12) ax1.legend(['BoB anomaly','Nino3.4 Index'],fontsize=12,frameon=False) ax1.set_ylabel('SSTA (°C)',fontsize=12) ax2.set_title('BoB anomaly with respect to IOD') ax2.plot(time, bob_ranm, '-', linewidth=1) ax2.plot(time, dmi, '-', linewidth=1) ax2.tick_params(length = 7,right=True,labelsize=12) ax2.legend(['BoB anomaly','Dipole Mode Index'],fontsize=12,frameon=False) ax2.set_ylabel('SSTA (°C)',fontsize=12) # Show the plot plt.draw() plt.tight_layout() plt.savefig("nino-bob-dmi.png",dpi = 300) ####################### (Ploting Nino 3.4 Index) nino = wgt_areaave(anm,-5,5,-170,-120) rnino = nino.rolling(time=7, center=True).mean('time') #nino standard ninoSD=nino/nino.std(dim='time') rninoSD=ninoSD.rolling(time=7, center=True).mean('time') # -- -- -- -- -- -- -- -- - -- - -- --- -- - -- - -- - - -- - - # -- figure plot fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(8, 8)) # Create a list of colors based on the color bar values colors = ['C1' if (value > 0) else 'C0' for value in ninoSD] # Plot bar chart ax1.bar(itime, nino, align='edge', edgecolor="none", color=colors, width=1.0) ax1.plot(itime, rnino, color="black", linewidth=1.5) ax1.legend(['7-month running mean'],fontsize=12,frameon=False) ax2.bar(itime, ninoSD, align='edge', edgecolor="none", color=colors, width=1.0) ax2.plot(itime, rninoSD, color="black", linewidth=1.5) # Use geocat.viz.util convenience function to set axes parameters ystr = 1920 yend = 2020 dyr = 20 ist, = np.where(time == pd.Timestamp(year=ystr, month=1, day=1) ) iet, = np.where(time == pd.Timestamp(year=yend, month=1, day=1) ) gvutil.set_axes_limits_and_ticks(ax1, ylim=(-3, 3.5), yticks=np.linspace(-3, 3, 7), yticklabels=np.linspace(-3, 3, 7), xlim=(itime[0], itime[-1]), xticks=itime[ist[0]:iet[0]+1:12*dyr], xticklabels=np.arange(ystr, yend+1, dyr) ) gvutil.set_axes_limits_and_ticks(ax2, ylim=(-3, 3.5), yticks=np.linspace(-3, 3, 7), yticklabels=np.linspace(-3, 3, 7), xlim=(itime[0], itime[-1]), xticks=itime[ist[0]:iet[0]+1:12*dyr], xticklabels=np.arange(ystr, yend+1, dyr) ) # Use geocat.viz.util convenience function to add minor and major tick lines gvutil.add_major_minor_ticks(ax1, x_minor_per_major=4, y_minor_per_major=5, labelsize=12) gvutil.add_major_minor_ticks(ax2, x_minor_per_major=4, y_minor_per_major=5, labelsize=12) # Use geocat.viz.util convenience function to set titles and labels gvutil.set_titles_and_labels(ax1, maintitle="SSTA in Nino3.4 region", ylabel='Anomalies', maintitlefontsize=18, labelfontsize=15) gvutil.set_titles_and_labels(ax2, maintitle="Nino3.4 Index", ylabel='Standardized', xlabel='Year', maintitlefontsize=18, labelfontsize=15) plt.draw() plt.tight_layout() plt.savefig("nino3.4_ERSST.png",dpi=300) ############### (Ploting DMI Index) iod_west = wgt_areaave(anm,-10,10,50,70) # IOD east: 90 ° E to 110 ° E and 10 ° S to 0 ° S. iod_east = wgt_areaave(anm,-10,0,90,110) dmi = iod_west - iod_east rdmi = dmi.rolling(time=7, center=True).mean('time') colors = ['C1' if (value > 0) else 'C0' for value in dmi] fig = plt.figure(figsize=[8,5]) ax1 = fig.add_subplot(111) # Plot bar chart ax1.bar(itime, dmi, align='edge', edgecolor="none", color=colors, width=1.0) ax1.plot(itime, rdmi, color="black", linewidth=1.5) ax1.legend(['7-month running mean'],fontsize=12,frameon=False) # Use geocat.viz.util convenience function to add minor and major tick lines gvutil.add_major_minor_ticks(ax1, x_minor_per_major=4, y_minor_per_major=5, labelsize=12) # Use geocat.viz.util convenience function to set axes parameters ystr = 1920 yend = 2020 dyr = 20 ist, = np.where(time == pd.Timestamp(year=ystr, month=1, day=1) ) iet, = np.where(time == pd.Timestamp(year=yend, month=1, day=1) ) gvutil.set_axes_limits_and_ticks(ax1, ylim=(-1.5, 1.90), yticks=np.linspace(-1, 1.5, 6), yticklabels=np.linspace(-1, 1.5, 6), xlim=(itime[0], itime[-1]), xticks=itime[ist[0]:iet[0]+1:12*dyr], xticklabels=np.arange(ystr, yend+1, dyr)) # Use geocat.viz.util convenience function to set titles and labels gvutil.set_titles_and_labels(ax1, maintitle=" Dipole Mode Index", ylabel='Anomalies', xlabel= 'Year', maintitlefontsize=18, labelfontsize=15) plt.tight_layout() plt.savefig("dmi_ersst.png",dpi = 300) ### (Global vs BoB time Series -ERSST v5) # global vs bob sst anomaly glob_anom = anm.mean(('lon','lat'),skipna = True) glob_anom_ra = glob_anom.rolling(time=12, center=True).mean('time') bob_anm = wgt_areaave(anm,5,25,80,100) bob_anm_ra = bob_anm.rolling(time=12, center=True).mean('time') xr.corr(glob_anom_ra,bob_anm_ra) # plot fig = plt.figure(figsize=[8,5]) ax1 = fig.add_subplot(111) ax1.set_title('Global SSTA & BOB SSTA with 1 year moving average (ERSST v5)') ax1.plot(time, glob_anom_ra, '-', linewidth=1) ax1.plot(time, bob_anm_ra, '-', linewidth=1) ax1.tick_params(length = 7,right=True,labelsize=12) ax1.legend(['Globally averaged','BoB averaged'],fontsize=12,frameon=False) ax1.set_ylabel('SSTA (°C)',fontsize=12) ax1.set_xlabel('Year',fontsize=12) ax1.text(pd.to_datetime('1975-01-01'),-0.8,'Correlation Coefficient = 0.89',fontsize=12) #ax1.axis(xmin=pd.Timestamp("1982-01"), xmax=pd.Timestamp("2020-12")) # Show the plot plt.draw() plt.tight_layout() plt.savefig("bobvsgloobalanom_ersst.png",dpi = 300)
python
Stokes to Pretorius, out Caught by Root!! The reverse swing from the last over has paid dividends in this over. The ball angled in, Pretorius played it with a slightly open face only to edge it to the man at first slip. It flew low and Root did well to grab it. That ball again moved enough to induce the edge. This is top class stuff from Stokes. He is delivering again. Seems to be carrying 2019 with him. Pretorius c Root b Stokes 0(22)
english
<filename>857.py<gh_stars>0 """ ---> Minimum Cost to Hire K Workers ---> Hard """ from heapq import heappush, heappop class Solution: def mincostToHireWorkers(self, quality, wage, k: int) -> float: workers = [] ans = float('inf') ratio_sum = 0 heap = [] for w, q in zip(wage, quality): workers.append([float(w) / q, q]) workers.sort() for r, q in workers: heappush(heap, -q) ratio_sum += q if len(heap) > k: ratio_sum += heappop(heap) if len(heap) == k: ans = min(ans, ratio_sum * r) return ans in_quality = [3, 1, 10, 10, 1] in_wage = [4, 8, 2, 2, 7] in_k = 3 a = Solution() print(a.mincostToHireWorkers(in_quality, in_wage, in_k)) """ Use fractional rates to sort as the rates that come after a particular weight would have rate greater than previous ones Then use heap to get best quality """
python
import { GlNavItemDropdown, GlTooltip } from '@gitlab/ui'; import { shallowMount, mount } from '@vue/test-utils'; import TopNavApp from '~/nav/components/top_nav_app.vue'; import TopNavDropdownMenu from '~/nav/components/top_nav_dropdown_menu.vue'; import { TEST_NAV_DATA } from '../mock_data'; describe('~/nav/components/top_nav_app.vue', () => { let wrapper; const createComponent = (mountFn = shallowMount) => { wrapper = mountFn(TopNavApp, { propsData: { navData: TEST_NAV_DATA, }, }); }; const findNavItemDropdown = () => wrapper.findComponent(GlNavItemDropdown); const findMenu = () => wrapper.findComponent(TopNavDropdownMenu); const findTooltip = () => wrapper.findComponent(GlTooltip); afterEach(() => { wrapper.destroy(); }); describe('default', () => { beforeEach(() => { createComponent(); }); it('renders nav item dropdown', () => { expect(findNavItemDropdown().attributes('href')).toBeUndefined(); expect(findNavItemDropdown().attributes()).toMatchObject({ icon: 'dot-grid', text: TEST_NAV_DATA.activeTitle, 'no-flip': '', }); }); it('renders top nav dropdown menu', () => { expect(findMenu().props()).toStrictEqual({ primary: TEST_NAV_DATA.primary, secondary: TEST_NAV_DATA.secondary, views: TEST_NAV_DATA.views, }); }); it('renders tooltip', () => { expect(findTooltip().attributes()).toMatchObject({ 'boundary-padding': '0', placement: 'right', title: TopNavApp.TOOLTIP, }); }); }); describe('when full mounted', () => { beforeEach(() => { createComponent(mount); }); it('has dropdown toggle as tooltip target', () => { const targetFn = findTooltip().props('target'); expect(targetFn()).toBe(wrapper.find('.js-top-nav-dropdown-toggle').element); }); }); });
javascript
<reponame>ebt-site/ebt-data<gh_stars>10-100 { "thig1.14:0.1": "Strophen der altehrwürdigen Nonnen ", "thig1.14:0.2": "Das Einerbuch ", "thig1.14:0.3": "Sumanā ", "thig1.14:1.1": "Wenn du gesehen hast, dass die Elemente Leiden sind, ", "thig1.14:1.2": "sollst du nicht noch einmal wiedergeboren werden. ", "thig1.14:1.3": "Wenn du die Sehnsucht nach Wiedergeburt verworfen hast, ", "thig1.14:1.4": "wirst du in Frieden leben. " }
json
Elon Musk, the wealthiest man in the world, is reported to be worth $196.5 billion by Forbes. On the other hand, Logan Paul, a well-known YouTuber turned boxer, has an estimated net worth of $245 million. According to recent reports, Musk had offered 1 billion dollars to Logan to revive the vine culture on Twitter. Musk now owns an estimated 82% of Twitter after taking the company private with additional help from a $12.5 billion loan from a group of big banks. Follow UFC Fight Night Derrick Lewis vs. Sergey Spivac updates with insidesport.IN. Also Read: UFC India: How can an Indian fighter join the UFC? Elon Musk previously tweeted a public pole and questioned whether Vine should be brought back. Notably, 69.6% of voters supported the decision in the final results. In a nutshell, Vine was an American platform for sharing looping video segments six seconds in length. Elon intends to reintroduce the service to Twitter now that he is the platform’s torchbearer. Unexpectedly, a report claims he would shake hands with boxing celebrity Logan over the suggestion. According to Forbes, Elon Musk has an estimated net worth of $196.5 billion worth Elon Musk owns a lot of stock plus his ownership stakes in the businesses he co-founded, such as Tesla, SpaceX, the Boring Company, and now Twitter. Logan Paul Networth: How far is he from making it to the Elon Musk networth? Logan Paul’s networth is around 245 million dollar. Logan Paul has made more than $50 million from his boxing competitions. In 2013, Logan Paul gained popularity by publishing sketches on the video-sharing website Vine. Later, on August 29, 2015, Logan Paul launched the Logan Paul Vlogs channel, which currently has 23.6 million subscribers. Logan Paul recently joined WWE, which boosted his net worth.
english
<filename>app/src/main/java/com/carousell/news/utils/SortType.java package com.carousell.news.utils; public enum SortType { RECENT, POPULAR }
java
<filename>out/metrics.pkg.apis.metrics.v1alpha1.rs<gh_stars>1-10 /// ContainerMetrics sets resource usage metrics of a container. #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContainerMetrics { /// Container name corresponding to the one from pod.spec.containers. #[prost(string, optional, tag="1")] pub name: ::core::option::Option<::prost::alloc::string::String>, /// The memory usage is the memory working set. #[prost(map="string, message", tag="2")] pub usage: ::std::collections::HashMap<::prost::alloc::string::String, super::super::super::super::super::apimachinery::pkg::api::resource::Quantity>, } /// NodeMetrics sets resource usage metrics of a node. #[derive(Clone, PartialEq, ::prost::Message)] pub struct NodeMetrics { #[prost(message, optional, tag="1")] pub metadata: ::core::option::Option<super::super::super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>, /// The following fields define time interval from which metrics were /// collected from the interval [Timestamp-Window, Timestamp]. #[prost(message, optional, tag="2")] pub timestamp: ::core::option::Option<super::super::super::super::super::apimachinery::pkg::apis::meta::v1::Time>, #[prost(message, optional, tag="3")] pub window: ::core::option::Option<super::super::super::super::super::apimachinery::pkg::apis::meta::v1::Duration>, /// The memory usage is the memory working set. #[prost(map="string, message", tag="4")] pub usage: ::std::collections::HashMap<::prost::alloc::string::String, super::super::super::super::super::apimachinery::pkg::api::resource::Quantity>, } /// NodeMetricsList is a list of NodeMetrics. #[derive(Clone, PartialEq, ::prost::Message)] pub struct NodeMetricsList { /// Standard list metadata. /// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds #[prost(message, optional, tag="1")] pub metadata: ::core::option::Option<super::super::super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>, /// List of node metrics. #[prost(message, repeated, tag="2")] pub items: ::prost::alloc::vec::Vec<NodeMetrics>, } /// PodMetrics sets resource usage metrics of a pod. #[derive(Clone, PartialEq, ::prost::Message)] pub struct PodMetrics { #[prost(message, optional, tag="1")] pub metadata: ::core::option::Option<super::super::super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>, /// The following fields define time interval from which metrics were /// collected from the interval [Timestamp-Window, Timestamp]. #[prost(message, optional, tag="2")] pub timestamp: ::core::option::Option<super::super::super::super::super::apimachinery::pkg::apis::meta::v1::Time>, #[prost(message, optional, tag="3")] pub window: ::core::option::Option<super::super::super::super::super::apimachinery::pkg::apis::meta::v1::Duration>, /// Metrics for all containers are collected within the same time window. #[prost(message, repeated, tag="4")] pub containers: ::prost::alloc::vec::Vec<ContainerMetrics>, } /// PodMetricsList is a list of PodMetrics. #[derive(Clone, PartialEq, ::prost::Message)] pub struct PodMetricsList { /// Standard list metadata. /// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds #[prost(message, optional, tag="1")] pub metadata: ::core::option::Option<super::super::super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>, /// List of pod metrics. #[prost(message, repeated, tag="2")] pub items: ::prost::alloc::vec::Vec<PodMetrics>, }
rust
Eighty-year-old Abdullah’s full name is Abdullah Wadero. In Sindh, Wadero is a title given to big landowners. Abdullah used to own 150 acres of farmland in Kharo Chhan, a coastal area in Sindh’s Thatta district. Now he owns nothing. All the land has been swallowed by the Arabian Sea rising due to climate change; and by the sinking of the delta, as dams upstream have stopped the flow of sediments that build deltas. Since 2003, Abdullah has been living in Ibrahim Hyderi, a village near Karachi and running a fishing business. He could recall the 1960s, when nearly half a million lived in Kharo Chhan. They grew rice and other crops. They fished in the delta and the sea. Now all their lands have either been drowned by a rising sea or have turned saline. The 1960s was the decade of dam building in Pakistan – Guddu Barrage and Mangla Dam in 1962, and Tarbela Dam in 1968 were the biggest. All affected waters flow to the Indus delta and the sea in theory. In fact, until the 2010 flood, the Indus had not reached the sea for decades. Nazeer Mirbaher and his extended family of 17 were forced out of Kharo Chhan just two months ago. They have also settled in Ibrahim Hyderi. Mirbaher said in the election of 2018, just 1,200 voters were registered in Kharo Chhan. “Now, only a few people are left there,” he said. The major reason they were forced out of home is the scarcity of water. “Not only drinking water, we don’t even have water to bathe a corpse before burial,” he said. Moazzam Khan, World Wide Fund for Nature-Pakistan’s technical adviser for marine fisheries, points out that with the decline in water flow, the sediment flow stopped as well. Today, the sediment that earlier built the delta can be found spread over a 3,000 square metre area in the Indus riverbed, he says. That led to the sinking of the entire delta. This is not peculiar to Pakistan, the same thing has happened in the Ganga-Brahmaputra delta at the Eastern end of South Asia as well. On top of that, a major cyclone hit Sindh in 1999 from which the area has not fully recovered. “It may take another decade to overcome it,” said Moazzam Khan, pointing out that two big freshwater lakes, Narheri and Jhabbo, have turned saline. “Jhabbo is a Ramsar site.” That has not saved it. There is another reason for the sinking of the delta – excessive withdrawal of groundwater. Moazzam Khan pointed out that agriculture in Thatta, Sujawal and Badin regions of the Sindh coast are now all dependent on groundwater. “That has created another opportunity for the sea to penetrate.” Aquifers have gone increasingly saline. Usman Tanveer, the deputy commissioner of Thatta, said, “In the last four years, there has not been much sea intrusion in this district.” However, people have been showing him spots where they used to own land, but which is now under the sea. “Land erosion has also taken place in KT Bunder and other areas,” Tanveer added. Residents have adapted to the changes by migrating out of the region, first from one island to another, and then to Karachi or other big cities in Pakistan, and even abroad. Muhammad Ismail Rahoo, Agriculture Minister in the Sindh government, is a member of the provincial assembly from Badin district. He says he has repeatedly raised the issues of water scarcity and sea intrusion in his area. “But no action has been taken by the federal government,” said the minister’s spokesman Imran Sangi. Tahir Qureshi, senior adviser on coastal ecosystems at the International Union for the Conservation of Nature, refers to one Sindh government survey in the 1990s that had placed the area lost to sea intrusion at 2.3 million acres. However, one representative of the Sindh Board of Revenue says his department has no “concrete record”. Qureshi says the Indus delta actually started sinking in the 1920s, with the construction of the Sukkur Barrage in 1923. Before that, 150 million acre-feet water reached the delta every year. After that, “water kept slowing down and the scarcity started in 1950.” Kharo Chhan, KT Bunder, Shah Bunder, Sujawal, Jati – many well-known areas where once farmers grew paddy, wheat and other crops were lost to seawater intrusion. Now global warming contributes to saline water intrusion, as the sea level is rising. “Water level is rising in the sea. North and South Pole ice is melting.” Cyclones are getting more frequent and more intense. Qureshi referred to the International Union for the Conservation of Nature’s work to deal with the issue: “We are seeding mangroves. This can curb sea intrusion. Sindh Forests Department has done a good job: we are working with them. These biological walls can control sea intrusion. They can serve as the first defence line.” International Union for the Conservation of Nature activities stem from a comprehensive study it made in 2003 – called ecological disaster in the Indus Delta. Economically speaking, the Indus delta is the most significant part of Pakistan’s 1,000-kilometre coastline from Jewni in Baluchistan to Sir Creek in Sindh. Traditionally, the delta also had the most diverse ecology along the coastline. Nuzhat Khan, director-general of Pakistan’s National Institute of Oceanography, agreed that, “Indus water was compromised after the construction of dams and barrages.” Not only water, but sediment also nourished the delta. Now, except during floods, there is no sediment flowing with the water because it is held back by the dams and barrages upstream. And during floods, the water flow is so strong that all the sediment flushes away to the sea. This article first appeared on The Third Pole.
english
- Extortion runs rampant in Punjab, with an estimated 50-plus gangs that don't hesitate to subdue others to maintain dominance. - People like Nijjar and Sukha Dunnake are called Khalistanists but in reality they are all gangsters. NIA released the list of these so-called terrorists a day ago. Sukha Dunneke was also in it. If you open the list of their black deeds, you will find that most of them were tapori and then gradually became gangsters by forming their own gangs and then became Khalistanists to run their business. Most of the so-called agitators operating the Kam Khalistan Movement from Canada or other countries operate crime networks under the guise of the Khalistan movement. Ranging from extortion to drugs-weapons illegal business. As tensions between India and Canada flare up over the killing of Khalistan Tiger Force (KTF) terrorist Hardeep Singh Nijjar, one more Khalistanist has been killed in Canada. Gangster Sukhdul Singh Gill alias Sukha Dunnake was shot dead in Winnipeg, Canada. About 15 bullets were fired at Dunnake in Winnipeg, killing Sukho at the scene. Sukha Dunnake was on the list of the most dangerous category of terrorists by the National Anti-Terrorism Investigation Agency (NIA) of India. Terrorist Sukhdul Singh Gill alias Sukha Dunnake, who is included in the list of 41 terrorists and gangsters created by NIA, fled from Punjab to Canada in 2017. In Canada, Dunnake came in contact with Khalistani terrorist Arsh Dalla and was working at his behest. Sukhani had her own gang in India. Sukha was running an extortion network in Punjab in the name of Bambiha Group, but he had to flee to Canada due to increasing extortion here. In Canada Arshdeep Singh alias Arsh Dalla laid hands on him so he put all the men of his gang under Arshdeep's hands. Arshdeep's right-hand man, Sukha used to sit in Canada and extort money from the rich through the Sagaritos in India. He used to make his game without ransom, but someone in Canada made his own game. The Lawrence Bishnoi gang has claimed responsibility for Dunnake's murder. According to Bishnoi, the murder of gangster Sukha Dunnake was done in revenge for the murder of Gurlal Brar. Dunnake was a drug addict and a heroin addict. Sukha had destroyed many houses in her drunkenness so her fate was certain. In Canada, Khalistanist Hardeep Singh Nijjar was shot dead by two assailants in June this year. Nijjar was in his car outside the Gurdwara when he was shot dead. Sukha is also killed in the same style. Nijjar and Sukha were connected to each other. Arshdeep Dalla, whom Sukha worked for, was Nijjar's special man. Sukha is said to have committed many crimes in Punjab at the behest of Nijjar. Media calls people like Nijjar or Sukha Dunnake as Khalistanists but in reality they are all gangsters. NIA released the list of these so-called terrorists just a day ago. Sukha Dunneke was also in it. If you open the list of their black deeds, you will find that most of them were tapori and then gradually became gangsters by forming their own gangs and then became Khalistanists to run their business. Most of the so-called agitators who run the Kam Khalistan movement from Canada or other countries actually run gangs and operate crime networks under the guise of the Khalistan movement. Most of these are criminals who, like Sukha, are fleeing to Canada or the UK after the increase in extortion in India. The main occupation of these people is extortion. Their main business is to extort ransom from rich people of Punjab sitting in Canada, UK or America. Punjab is leading in agriculture so there is a train of rupees in Pankhaljab. Flour factories and rice mills are booming due to the bumper crop of wheat and rice in Punjab. It is also exported in large quantities, so not only rupees but also foreign currencies including dollars are not in short supply. Gangs of Khalistanists chase them. Apart from this, money is borrowed in the name of running Khalistan movement. Sikhs living abroad give money in the name of Khalistan. If the Sikhs do not like the Khalistan movement in India, they are threatened and pushed away. Apart from this, all these are also connected with drugs and arms business. The drug business is run at the behest of Pakistan's spy agency ISI. In the 1990s in Punjab, many Khalistanist terrorists fled to Pakistan after the police started responding to bullets with bullets. With their help, ISI has developed a drug smuggling network in Punjab. They are the first to be inducted into the network as they are handy to those running the Khalistan movement. Apart from drugs, weapons also come in large quantities from Pakistan. Gangs of so-called Khalistanists living abroad are doing all this. Sukha himself was a betel nut killer. Meaning, take betel nuts and kill him. Other so-called Khalistanists also have the same business. People like Nijjar do not kill anyone directly but get it done by people like Sukha or Arsh Dalla, so all Nijjar including them are gangsters. Canada has accused India of complicity in the killing of Nigers but in reality India does not have to do anything to kill such people. There is a tremendous gang war going on in extortion in Punjab. According to an estimate, there are more than fifty gangs in Punjab. These gangs do everything from selling fake liquor to bursting betel nuts. They do not shy away from killing each other to maintain their dominance, so killings happen. People like Nijjar and Sukha sat holding the flag of Khalistan and lived abroad so their murders are noticed everywhere, while in Punjab's gang war, one gangster dies every week and no one even knows about it. Sukha is also killed in the same way but Canada can blame India tomorrow to cover up its failure. Sukha Dunneke, who was killed in Canada, belongs to Moga district of Punjab. Sukha used to work in the government but later turned to the path of crime. He fled to Canada in 2017 by getting a police clearance certificate on fake documents that seemed to settle him in a police encounter when he started shouting his sins from the rooftops. Two policemen helped him and both were suspended. Faridkot was in jail before Sukha escaped to Dunnak. He was out on parole at the time of his mother's death and then fled abroad with forged documents. Seven criminal cases were registered against Sukha when she fled to Canada. In one murder case he was involved while in other cases he was accused of supplying arms and shooters. All these cases were of crimes committed in association with local gangs and had nothing to do with the Khalistan movement. After reaching Canada, Nijjar and Dalla changed hands and took on the Khalistanist seal. Pakistan has also jumped on the heels of Canada accusing India of being involved in the killing of Nijjars. Pakistan has alleged that India is killing and spreading terrorism all over the world through its agents. Pakistan also alleges India's involvement in the August 2021 bomb blast in Lahore. Pakistan, which nurtures terrorism, looks ridiculous when it makes these allegations. Four Khalistanists have been killed in the last six months. Apart from Sukha Dunnake and Hardeep Singh Nijjar, Paramjit Singh Panjwar and Avtar Singh Khanda have died in Tar Khalistan. Avtar Singh Khanda died in hospital weeks before Nijjar was shot dead by two assailants in Canada in June. Khanda, who was being treated for cancer at a Birmingham hospital, is said to have been poisoned to death. Khalistani terrorist and gangster Harpreet Singh alias Happy Sanghera was shot dead in November 2022 while Harwinder Singh Rinda was shot dead in Pakistan. All these were gangsters.
english
[{"postal_code":"72029","place_name":"<NAME>","place_type":"Colonia","county":"Puebla","state":"Puebla","city":"Heroica Puebla de Zaragoza"}]
json
Glasgow, Dec 23: Scottish Premier League team Rangers Football Club has appointed Graeme Murty as interim coach until the end of the 2017-18 season. In his second spell as interim coach for the Rangers in eight months, Murty is to succeed Pedro Caixnha, who was fired by Rangers management after a 229-day tenure. “The Club’s directors believe Graeme has demonstrated he is capable of handling this task successfully and are confident the players will continue to respond to his leadership in a positive manner,” the club said in a statement on Friday. “With so much still at stake in the current season this decision was not taken lightly but now that Graeme has been given full control, he can work towards the obvious targets with greater focus,” the statement added. Meanwhile, Murty, the former under-18 team coach, said he was delighted to take the helm.
english
import { IsAlpha, IsArray, IsEmail, IsNotEmpty, IsString, } from 'class-validator'; import { PhotoEntity } from '../../photos/entity/photo.entity'; export class CreateUserDto { @IsNotEmpty() @IsString() @IsEmail() readonly email: string; @IsNotEmpty() @IsString() readonly password: string; @IsArray() photos: PhotoEntity[] }
typescript
<filename>modules/example.ts import { createAction, handleActions } from 'redux-actions' const initialState = { example: false } export const EXAMPLE_MODULE = createAction('example/example_module') export default handleActions({ ['example/example_module']: (state, { payload }) => ({ ...state, ...payload }), }, initialState) export const exampleModule = (value: string) => { try { console.log(value) return EXAMPLE_MODULE({ example: true }) } catch (err) { throw new Error('this is error!') } }
typescript
That has a sound business enterprise credit rating, exceptional after-sales provider and modern producing facilities, we now have earned an superb standing amongst our buyers across the world for Prefab Houses Poland Homes, Store Product Display, Store Display Furniture, Greeting Card Display,Table Top Banner Display. With a wide range, good quality, realistic charges and stylish designs,Our products and solutions are widely recognized and trusted by users and can fulfill continuously changing economic and social needs. The product will supply to all over the world, such as Europe, America, Australia,Bangalore, Norwegian,Maldives, Houston.With a fully integrated operation system, our company has won a good fame for our high quality goods, reasonable prices and good services. Meanwhile, we have established a strict quality management system conducted in material incoming, processing and delivery. Abiding by the principle of "Credit first and customer supremacy", we sincerely welcome clients from home and abroad to cooperate with us and advance together to create a brilliant future.
english
<filename>pkg/package.json { "name": "@brecert/flakeid", "description": "Time based 64-bit unique id generator, inspired by Twitter id (snowflake)", "version": "2.0.1", "license": "MIT", "files": [ "dist-*/", "bin/" ], "pika": true, "sideEffects": false, "keywords": [ "snowflake", "flake", "unique", "id", "generator", "64-bit", "id", "generator" ], "homepage": "https://github.com/Brecert/FlakeId#readme", "bugs": { "url": "https://github.com/Brecert/FlakeId/issues" }, "contributors": [ "<NAME>", "<NAME>" ], "repository": { "type": "git", "url": "git+https://github.com/Brecert/FlakeId.git" }, "dependencies": {}, "devDependencies": { "@pika/cli": "^0.2.0", "@pika/plugin-build-node": "^0.7.1", "@pika/plugin-build-web": "^0.7.1", "@pika/plugin-ts-standard-pkg": "^0.7.1", "typescript": "^3.7.2" }, "engines": { "pnpm": ">=4" }, "source": "dist-src/index.js", "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" }
json
Top Indian shuttlers PV Sindhu and Lakshya Sen will be seen in action at the Canada Open 500, starting from Tuesday. This will be an important tournament for the duo, who have slipped considerably in the rankings, with the Olympic qualification period having started last month. Sindhu, who was a regular in the top 10 for a few years, slipped to world no.12 and doesn't look in the best of touches at the moment. After having sustained an injury during the CWG 2022, she hasn't played at her best and would like to change that in Canada, where she is the fourth seed. Having said that, she has shone in patches, when she was a runners-up at the Madrid Masters. She would face local challenger Talia NG in the opening round. On the other hand, eighth-seeded Japan’s Nozomi Okahara, against whom Sindhu has a 9-8 win-loss record, is likely to be India’s quarterfinal challenger. Later in the draw, she could be up against the top seed, Akane Yamaguchi of Japan. Interestingly, Sindhu holds a 14-10 record against the Japanese girl. Sen, one of India's brightest prospects, has slipped to world no. 19 this year due to health reasons. He has made as many as four first-round exits in the circuit, with his best coming at the Indonesia Masters, where he reached the quarters. He is trying to find form after his nose surgery. “Recovery was not really good. Whenever I was in training, I was getting injured or sick. Then I had to take a step back for a bit because, for the first two months, I didn’t have any idea that it could be this serious. I made a lot of changes in my foot, and also in the training load,” he told BWF. He will face second-seeded Kunlavut Vitidsarn of Thailand in the opening round.
english
Realme Narzo 20’s first sale starts on Monday at 12 noon at Flipkart and Realme online store. Launched on September 21, the Narzo 20 is a successor to the Narzo 10 (review). It features a HD+ resolution screen, quad rear camera, MediaTek’s gaming-centric processor, and big capacity battery with fast charge support. As for the specifications, the Narzo 20 sports a 6. 5-inch LCD screen of HD+ resolution. It is powered by MediaTek Helio G85 system-on-chip, paired with 4GB RAM and up to 128GB onboard storage. The dualSIM phone has a dedicated microSD card slot for storage expansion. TO READ THE FULL STORY, SUBSCRIBE NOW NOW AT JUST RS 249 A MONTH. What you get on Business Standard Premium? - Unlock 30+ premium stories daily hand-picked by our editors, across devices on browser and app. - Pick your 5 favourite companies, get a daily email with all news updates on them. - Full access to our intuitive epaper - clip, save, share articles from any device; newspaper archives from 2006. - Preferential invites to Business Standard events. - Curated newsletters on markets, personal finance, policy & politics, start-ups, technology, and more.
english
{ "name": "dot-gov-syntax", "theme": "syntax", "version": "1.1.0", "description": "A dark syntax theme for Atom using atom-material-syntax, however with a new colour palette", "keywords": [ "syntax", "theme", "material", "dot gov" ], "repository": "https://github.com/adam-cattermole/dot-gov-syntax", "license": "MIT", "engines": { "atom": ">=1.13.0 <2.0.0" } }
json
LSG vs MI: Batting great Sunil Gavaskar said Ishan Kishan is struggling against short-pitched deliveries and he will find it tough in bounce-rich conditions in Australia and South Africa. The MI batter was hit on the helmet during their 36-run loss to Lucknow Super Giants on Sunday. By India Today Web Desk: Former India captain Sunil Gavaskar on Sunday said Ishan Kishan's apparent weakness against short balls is not a good sign and that the Mumbai Indians batter will be in trouble on bounce-rich pitches in Australia and South Africa. Gavaskar's comments came after Ishan was hit on the helmet by Dushmantha Chameera as early as the 2nd over of Mumbai Indian's unsuccessful chase of 169 against Lucknow Super Giants at the Wankhede Stadium in Mumbai in Match 37 of IPL 2022. Ishan seemingly took his eyes off the rising ball and was struck on the helmet. The MI opener needed attention from the physios before he resumed his innings. However, it was a struggle for the young wicketkeeper-batter as he managed just 8 from 20 balls, putting pressure on his opening partner and captain Rohit Sharma, who made 39 off 31 balls. Ishan struggled for any kind of rhythm before he got out in a bizarre manner to Ravi Bishnoi. The MI star got an inside edge when he tried to flat bat a googly from Bishnoi. The ball hit the boot of Quinton de Kock before getting deflected straight into the hands of Jason Holder at first slip. Ishan started walking off even before the umpire gave him out. "He walked off. He had a miserable time. He just wanted to get out of the misery. Generally, when the ball is edged and it's caught at first slip, they still wait. Here is a man who when the ball maybe even had hit the turf, he was not interested. He started to walk till the umpire told him 'hang on, wait, let's have a referral'. It's just the mental situation he was in," Gavaskar told Star Sports. Commenting on Ishan's problems with bouncers, he added: "I think he was rattled by the blow he got. Don't forget, in the past, he had been hit on the helmet. It actually is not a good sign because it means, in places like Australia and South Africa where there is extra bounce, he is going to be like a rabbit caught in the headlights. "Every fast bowler is going to bang it short, nobody is going to pitch it where he likes, nothing is going to be below the waist. Anything above the waist, he is struggling at the moment. " Notably, Ishan was taken to the hospital during a T20I match against Sri Lanka earlier this year after he was hit on the helmet by a bouncer from Lahiru Kumara. The 23-year-old got off to a good start in IPL 2022, hitting two fifties on the trot, but has struggled ever since, failing to live up to the hefty price tag of Rs 15. 25 crore. Kishan has registered scores of 14, 26, 3, 13, 0, 8 since the strong start as MI are winless after playing 8 matches this season.
english
The UEFA Champions League is back in action with another round of matches this week as Bayern Munich take on Viktoria Plzen in a Group C clash at the Allianz Arena on Tuesday. Viktoria Plzen are at the top of the Czech First League at the moment and have been impressive on the domestic front so far. The away side played out a 1-1 draw against Bohemians 1905 last week and will need to be at their best in this fixture. Bayern Munich, on the other hand, are in third place in the Bundesliga table and are yet to hit their stride so far. The Bavarians eased past Bayer Leverkusen by a 4-0 margin in their previous game and will look to achieve a similar result this week. - Bayern Munich have a predictably flawless record against Viktoria Plzen and have won all the four matches that have been played between the two teams. - Viktoria Plzen have conceded at least five goals apiece in the two European games that they have played against Bayern Munich at the Allianz Arena. - Bayern Munich will be looking to secure three victories on the trot at the start of their UEFA Champions League campaign for the fourth consecutive season this week. - Viktoria Plzen have kept only one clean sheet in their 20 matches in the UEFA Champions League - the lowest percentage among teams to have played at least 15 matches in the competition. - Bayern Munich have made the Allianz Arena their European fortress and have not lost a home game in the group stage of the competition since the 2013-14 season. - Viktoria Plzen have conceded 25 goals in their last seven games away from home in the UEFA Champions League. Bayern Munich have an excellent track record in the UEFA Champions League but have stuttered on the domestic front this season. The likes of Leroy Sane and Sadio Mane could be lethal on their day and will need to step up this week. Viktoria Plzen find themselves in a difficult group and will need a miracle to take something away from this match. Bayern Munich are the better team on paper and should be able to win this game.
english
{ "name": "rxdb-plugin-adapter-check", "main": "../../dist/lib/plugins/adapter-check.js", "jsnext:main": "../../dist/es/plugins/adapter-check.js", "module": "../../dist/es/plugins/adapter-check.js" }
json
{ "gym-tracker adapter settings": "Ustawienia adaptera do trackera gimnastycznego", "searchStudio": "Wyszukaj studio", "noDataProvided": "Brak załadowanych danych — Uruchom ponownie adapter ręcznie lub zgłoś problem programiście, jeśli problem nadal występuje." }
json
<reponame>NTrevisani/cmssw // -*- C++ -*- // Package: STFilter // Class: STFilter /**\class STFilter STFilter.cc MyEDFilter/STFilter/src/STFilter.cc Description: ** used for single top t-channel events generated with MadEvent and matched the "Karlsruhe way" ** filter on 2->2 process events, where the crucial candidate (the 2nd b quark) is not available until parton showering is done ** filter criterion: transverse momentum of 2nd b quark "pT < pTMax" -> event accepted! ** How-To: include STFilter.cfg in your .cfg, replace pTMax by the desired value, include module "STFilter" in outpath Implementation: <Notes on implementation> */ // Original Author: <NAME> // Created: Wed Jan 23 15:12:46 CET 2008 #include <memory> #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "GeneratorInterface/GenFilters/interface/STFilter.h" #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h" #include "HepMC/GenEvent.h" STFilter::STFilter(const edm::ParameterSet& iConfig) : hepMCProductTag_( iConfig.getUntrackedParameter<edm::InputTag>("hepMCProductTag", edm::InputTag("generator", "unsmeared"))) { pTMax_ = iConfig.getParameter<double>("pTMax"); edm::LogInfo("SingleTopMatchingFilter") << "+++ maximum pt of associated-b pTMax = " << pTMax_; DEBUGLVL = iConfig.getUntrackedParameter<int>("debuglvl", 0); // get debug level input_events = 0; accepted_events = 0; // counters m_produceHistos = iConfig.getParameter<bool>("produceHistos"); // produce histograms? fOutputFileName = iConfig.getUntrackedParameter<std::string>("histOutFile"); // get name of output file with histograms conf_ = iConfig; } STFilter::~STFilter() {} bool STFilter::filter(edm::Event& iEvent, const edm::EventSetup& iSetup) { using namespace edm; bool accEvt = false; bool lo = false; int secBcount = 0; double pTSecB = 100; double etaSecB = 100; ++input_events; Handle<HepMCProduct> evt; iEvent.getByLabel(hepMCProductTag_, evt); const HepMC::GenEvent* myEvt = evt->GetEvent(); // GET EVENT FROM HANDLE bool bQuarksOpposite = false; for (HepMC::GenEvent::particle_const_iterator i = myEvt->particles_begin(); (*i)->status() == 3; ++i) { // abort after status 3 particles // logic: // - in 2->2 matrix elements, the incoming (top production) // b quark and the outgoing (top decay) b quark have same sign, // so we flip the bQuarksOpposite flag twice -> false // (opposite-sign b quark comes from the shower and has status 2) // - in 2->3 matrix elements, we have two outgoing b quarks with status // 3 and opposite signs -> true if ((*i)->pdg_id() == -5) bQuarksOpposite = !bQuarksOpposite; } // ---- 22 or 23? ---- if (!bQuarksOpposite) // 22 lo = true; else accEvt = true; // 23 // ---- filter only 22 events ---- if (lo) { for (HepMC::GenEvent::particle_const_iterator p = myEvt->particles_begin(); p != myEvt->particles_end(); ++p) { // ---- look in shower for 2nd b quark ---- if ((*p)->status() == 2 && abs((*p)->pdg_id()) == 5) { // ---- if b quark is found, loop over its parents ---- for (HepMC::GenVertex::particle_iterator m = (*p)->production_vertex()->particles_begin(HepMC::parents); m != (*p)->production_vertex()->particles_end(HepMC::parents); ++m) { // ---- found 2ndb-candidate in shower ---- // ---- check mother of this candidate ---- if (abs((*m)->barcode()) < 5) { if (secBcount == 1) break; secBcount++; pTSecB = (*p)->operator HepMC::FourVector().perp(); etaSecB = (*p)->operator HepMC::FourVector().eta(); } } } } if (pTSecB < pTMax_) accEvt = true; // fill histos if requested if (m_produceHistos) { hbPt->Fill(pTSecB); hbEta->Fill(etaSecB); if (accEvt) { hbPtFiltered->Fill(pTSecB); hbEtaFiltered->Fill(etaSecB); } } } if (accEvt) ++accepted_events; return accEvt; } void STFilter::beginJob() { if (m_produceHistos) { // initialize histogram output file edm::ParameterSet Parameters; edm::LogInfo("SingleTopMatchingFilter)") << "beginJob : creating histogram file: " << fOutputFileName.c_str() << std::endl; hOutputFile = new TFile(fOutputFileName.c_str(), "RECREATE"); hOutputFile->cd(); // book histograms Parameters = conf_.getParameter<edm::ParameterSet>("TH1bPt"); hbPt = new TH1D("bPt", "Pt of 2nd b quark", Parameters.getParameter<int32_t>("Nbinx"), Parameters.getParameter<double>("xmin"), Parameters.getParameter<double>("xmax")); Parameters = conf_.getParameter<edm::ParameterSet>("TH1bEta"); hbEta = new TH1D("bEta", "Eta of 2nd b quark", Parameters.getParameter<int32_t>("Nbinx"), Parameters.getParameter<double>("xmin"), Parameters.getParameter<double>("xmax")); Parameters = conf_.getParameter<edm::ParameterSet>("TH1bPtFiltered"); hbPtFiltered = new TH1D("bPtFiltered", "Pt of 2nd b quark filtered", Parameters.getParameter<int32_t>("Nbinx"), Parameters.getParameter<double>("xmin"), Parameters.getParameter<double>("xmax")); Parameters = conf_.getParameter<edm::ParameterSet>("TH1bEtaFiltered"); hbEtaFiltered = new TH1D("bEtaFiltered", "Eta of 2nd b quark filtered", Parameters.getParameter<int32_t>("Nbinx"), Parameters.getParameter<double>("xmin"), Parameters.getParameter<double>("xmax")); } } void STFilter::endJob() { if (m_produceHistos) { hOutputFile->cd(); hbPt->Write(); hbEta->Write(); hbPtFiltered->Write(); hbEtaFiltered->Write(); hOutputFile->Write(); hOutputFile->Close(); } // Write out histograms to file, then close it double fraction = (double)accepted_events / (double)input_events; double percent = 100. * fraction; double error = 100. * sqrt(fraction * (1 - fraction) / (double)input_events); std::cout << "STFilter ++ accepted_events/input_events = " << accepted_events << "/" << input_events << " = " << fraction << std::endl; std::cout << "STFilter ++ efficiency = " << percent << " % +/- " << error << " %" << std::endl; } //DEFINE_FWK_MODULE(STFilter);
cpp
<filename>db/data/repos/itaditya/Trace-Lazy-Load.json { "_comment": "DO NOT EDIT MANUALLY - See ../../../README.md", "name": "Trace-Lazy-Load", "full_name": "itaditya/Trace-Lazy-Load", "owner": "itaditya", "private": false, "html_url": "https://github.com/itaditya/Trace-Lazy-Load", "description": "Experimenting with webpack and Trace to build a cool lazy load feature in which an image is substituted with it's tracing till it loads", "fork": false, "url": "https://api.github.com/repos/itaditya/Trace-Lazy-Load", "languages_url": "https://api.github.com/repos/itaditya/Trace-Lazy-Load/languages", "created_at": "2017-10-19T13:50:19Z", "updated_at": "2018-05-16T17:21:26Z", "pushed_at": "2017-10-19T13:51:08Z", "homepage": "http://trace.surge.sh/", "size": 911, "stargazers_count": 2, "language": "JavaScript", "mirror_url": null, "archived": false, "license": null, "default_branch": "master", "contributors": { "itaditya": 1 }, "languages": { "JavaScript": { "bytes": 1336, "color": "#f1e05a" }, "CSS": { "bytes": 1138, "color": "#563d7c" }, "HTML": { "bytes": 737, "color": "#e34c26" } }, "fetched_at": "2018-07-20T05:20:21.309Z", "pulls_url": "https://api.github.com/repos/itaditya/Trace-Lazy-Load/pulls{/number}", "pulls_authors": [] }
json
package nanny import ( "bytes" "context" "log" "net/http" "net/http/httptest" "strings" "testing" "github.com/stretchr/testify/require" ) func Test_Recovery(t *testing.T) { var b bytes.Buffer r := &route{ handler: func(_ context.Context, req Request) (interface{}, error) { panic("random panic") }, logger: log.New(&b, "", log.LstdFlags), errorHandler: defaultErrorHandler(), middlewares: nil, } WithRecovery().ApplyRoute(r) handle := r.buildHandle() rr := httptest.NewRecorder() require.NotPanics(t, func() { handle(rr, &http.Request{}, nil) }) require.Equal(t, http.StatusServiceUnavailable, rr.Code) require.Equal(t, "{\"message\":\"Service Unavailable\"}\n", rr.Body.String()) require.True(t, strings.Contains(b.String(), "[PANIC RECOVER]")) require.True(t, strings.Contains(b.String(), "random panic")) }
go
<reponame>Elonsoft/elonkit-angular { "bundlerOptions": { "entryFile": "./projects/elonkit/src/theming/overrides.scss", "projectDirectory": "./projects/elonkit/src", "outFile": "./dist/elonkit/theming/overrides.scss", "logLevel": "error" } }
json
/* ID: felikju1 PROG: shopping LANG: C++ */ #include <cstdio> #include <cmath> #include <iostream> #include <string> #include <cstring> #include <algorithm> #include <vector> #include <stack> #include <queue> #include <map> #define fi first #define se second #define pb push_back #define mp make_pair #define pi 2*acos(0.0) #define eps 1e-9 #define PII pair<int,int> #define PDD pair<double,double> #define LL long long #define INF 1000000000 using namespace std; int code[1010],cost[10]; int S,N,A,x,y,z; map<vector<int>,int> dp; vector<pair<vector<int>,int> > offer; vector<int> dummy; int solve(vector<int> T) { if(dp.find(T)!=dp.end()) return(dp[T]); bool oke=true; int x,y,z; for(x=0;x<5;x++) if(T[x]) oke=false; if(oke) return(0); int &ret = dp[T] = INF; for(x=0;x<offer.size();x++) { oke=true; for(y=0;y<5;y++) if(T[y]<offer[x].fi[y]) oke=false; if(oke) { vector<int> next; for(y=0;y<5;y++) next.pb(T[y]-offer[x].fi[y]); ret=min(ret,offer[x].se+solve(next)); } } int temp=0; for(x=0;x<5;x++) temp+=T[x]*cost[x]; ret=min(ret,temp); return(ret); } int main() { freopen ("shopping.in","r",stdin); freopen ("shopping.out","w",stdout); for(x=0;x<5;x++) dummy.pb(0); scanf("%d",&S); memset(code,-1,sizeof(code)); A=0; while(S--) { scanf("%d",&N); offer.pb(mp(dummy,0)); for(x=0;x<N;x++) { scanf("%d",&y); if(code[y]==-1) code[y]=A++; scanf("%d",&offer.back().fi[code[y]]); } scanf("%d",&offer.back().se); } scanf("%d",&N); while(N--) { scanf("%d %d %d",&x,&y,&z); if(code[x]==-1) code[x]=A++; cost[code[x]]=z; dummy[code[x]]=y; } printf("%d\n",solve(dummy)); fclose(stdin); fclose(stdout); return 0; }
cpp
<filename>result/caleg/caleg_provinsi_292_10.json [{"namaKab":"BANGGAI","originalFilename":"WhatsApp Image 2018-07-08 at 11.47.35.jpeg","namaPartai":"Partai Persatuan pembangunan","id":76871,"noUrut":1,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"BANGGAI","originalFilename":"Untitled-1.jpg","namaPartai":"Partai Persatuan pembangunan","id":85460,"noUrut":2,"nama":"<NAME>","stringJenisKelamin":"Perempuan"},{"namaKab":"<NAME>","originalFilename":"pas foto.jpg","namaPartai":"Partai Persatuan pembangunan","id":118847,"noUrut":3,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"PAS FOTO.jpg","namaPartai":"Partai Persatuan pembangunan","id":204357,"noUrut":4,"nama":"SUPRIYANTO","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"PAS FOTO.jpg","namaPartai":"Partai Persatuan pembangunan","id":201158,"noUrut":5,"nama":"<NAME>","stringJenisKelamin":"Perempuan"},{"namaKab":"<NAME>","originalFilename":"PAS FOTO.jpg","namaPartai":"Partai Persatuan pembangunan","id":214112,"noUrut":6,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"BANGGAI","originalFilename":"SATRIA.jpg","namaPartai":"Partai Persatuan pembangunan","id":93044,"noUrut":7,"nama":"<NAME>, SE","stringJenisKelamin":"Laki-Laki"},{"namaKab":"BANGGAI","originalFilename":"FOTO.jpg","namaPartai":"Partai Persatuan pembangunan","id":177022,"noUrut":8,"nama":"<NAME>","stringJenisKelamin":"Perempuan"}]
json
The JD(U), which gave a below-par performance in the assembly elections last year, is exploring all options to expand its number and base. The meeting between two former close associates, Bihar chief minister Nitish Kumar and Rashtriya Lok Samata Party (RLSP) president and former Union minister Upendra Kushwaha on late Sunday evening, second in last two months, has left the political circle agog with speculations of a new political equation developing in the state with the possibility of a merger of RLSP with the JD(U). Earlier, Kushwaha had met Kumar on December 2, last year, after Kumar was sworn in as the chief minister again. Former JD(U) state president and Rajya Sabha MP Bashistha Narain Singh were also present during the meeting which lasted close to an hour. The meeting is considered important in view of the impending cabinet expansion in Bihar. The Janata Dal-United JD(U), which gave a below-par performance in the assembly elections last year, is exploring all options to expand its number and base. The party won on 43 seats against 74 won by the BJP. The lone independent MLA has also decided to extend support to the JD(U). Recently, the five AIMIM MLAs and the lone LJP MLA had also met Kumar leading to another speculation about them joining the JD(U). Kushwaha-led RLSP had contested the last assembly elections in alliance with the AIMIM and the BSP. The lone BSP MLA, Md Jama Khan, who won from Chainpur seat, had joined the JD(U) recently. The AIMIM had won five seats while the BSP could secure just one. The RLSP drew a blank. “If Kushwaha comes to the JD(U), he is most welcome. Nitish Kumar and Upendra Kushwaha are long-time friends. He is not only a leader of Luv-Kush society but more than that. We have worked together earlier and he never distanced himself from us. This will be good for Bihar politics,” said Singh. “A decision has to be taken by him,” he added. Kushwaha, who led the tirade against the Nitish Kumar government on different fronts, including education, and has targeted Kumar during the election, described the CM as his “bade bhai (elder brother)” after the meeting. Kushwaha, of late, had been supporting Kumar on different issues. The RLSP leader had criticised leader of opposition Tejashwi Prasad Yadav for making personal attacks on Nitish on the floor of the House during the discussion on the Governor’s address to the joint session of the state assembly and legislative council. “The kind of ‘abhadra (uncultured)’ language Tejashwi used in the assembly against Nitish is highly condemnable. Is assembly meant for such a ‘radi-betkhauki (tit for tat)’ fight,” he had tweeted. Kushwaha, at that point, had ruled out his return to the JD(U) by saying, “The statements have nothing to do with the return,” he had said. JD(U) top functionary believes that the two shaking hands will suit both the leaders, particularly after the JD(U) is finding itself on the back foot with the BJP asserting itself in governance. The Kushwaha-led party has a sizable support among the Kushwaha voters and was also instrumental in division of traditional votes of the JD(U). Kushwaha had been to assembly and Rajya Sabha on a JD(U) ticket. The RLSP had quit the NDA in December 2018 after the BJP refused to offer more than two seats to the RLSP for the 2019 Lok Sabha elections even as it went out of the way to accommodate Nitish Kumar’s JD(U).
english
What’s the story? Courtesy Reddit user “nivvd”—as posted on the Squared Circle Reddit page—Shinsuke Nakamura shooting on his real-life opinion regarding Brock Lesnar has been noted. Apparently, Nakamura’s autobiography—the English version of which is set to be released this year—reveals his less-than-desirable experience wrestling Lesnar during their time in NJPW. Shinsuke Nakamura’s autobiography “The King of Strong Style: 1980-2014” was released in 2014 in the Japanese language. The book chronicled Nakamura’s life as a professional wrestler—with the pro-wrestling world recently being set abuzz by news of Viz Media planning to release said book in English. One ought to note that after gaining worldwide notoriety in WWE back in the early-to-mid 2000s, Brock Lesnar performed on the Japanese pro-wrestling circuit from 2005 to 2007. Lesnar went on to win the IWGP Heavyweight Championship, and defended the title against Shinsuke Nakamura at the “Toukon Shidou Chapter 1” show aka NJPW’s January 4th annual event, back in 2006. Nakamura came up short in his bid to dethrone Lesnar, following which there was talk of him possibly being “loaned” to WWE as a part of his excursion storyline in NJPW at the time. Regardless, the banter proved to be nothing more than rumors, as Lesnar parted ways with the Japanese pro-wrestling industry in 2007, and Nakamura eventually became a huge superstar for NJPW. While the English version of Nakamura’s autobiography is yet to be released, the aforementioned Reddit user “nivvd” claims to have bought an advance copy—referencing which he has put forth the following statements of Nakamura giving a shoot interview regarding Lesnar. Another excerpt from Shinsuke Nakamura’s book: You had no choice but to do what the company wanted. But then Kazuyuki Fujita refused to accept a match with Brock Lesnar for the IWGP Heavyweight Championship which was scheduled to be the main event. Given your previous track record, you were selected to take his place and be the challenger. Why did you cry? Another match to defend the title was later canceled because of contract trouble with Lesnar. He was stripped of the IWGP Heavyweight Championship, but he never returned the belt itself; he ended up running off with it. “I felt like this was too much; he was seriously scoffing at us. Lesnar won the championship and took the belt home, I told Simon if the company didn't get it’s sh** in order, that belt was definitely going to get nicked. I didn't honestly believe that when we fought. But it ended up just like I feared. He has the physical stuff, plus a straightforward strength and a certain amount of flexibility, so there was a bit of the monster to him. But I didn't like his personality, you know? He might have made a real mark in UFC, but he didn't even seem to notice the audience booing. I was like, "Oh, this guy's a heel to the core. "” (*Credits--nivvd; Squared Circle; Reddit) What’s next? WWE United States Champion Shinsuke Nakamura is presently involved in a storyline with Jeff Hardy and Randy Orton—one which is expected to play out and conclude with a match at SummerSlam. On the other hand, WWE Universal Champion Brock Lesnar is set to defend his title against Roman Reigns at SummerSlam. The WWE’s SummerSlam PPV is scheduled to air from the Barclays Center in Brooklyn, New York on August 19th. The English version of Nakamura’s autobiography will be released this summer. What are your thoughts on Shinsuke Nakamura’s statements on Brock Lesnar? Sound off in the comments!
english
.bx-wrapper { position: relative; margin: 0 auto 60px; padding: 0; z-index:0; *zoom: 1; } .bx-wrapper .bx-loading { min-height: 50px; background: url(../images/bx_loader.gif) center center no-repeat #fff; height: 100%; width: 100%; position: absolute; top: 0; left: 0; z-index: 2000; } .bx-wrapper .bx-controls-direction a { position: absolute; top: 25%; margin-top: -16px; outline: 0; width: 50px; height: 88px; text-indent: -9999px; z-index: 9999; } .btn { height:35px; font-size:16px; padding: 8px 30px; border-radius: 2px; margin-top: 10px; } /* .navbar-inverse .navbar-nav > li > a:focus{ color: #eb0029; } /*rdy*/ #main-slider .carousel .item { opacity: 1; -webkit-transition: opacity ease-in-out 500ms; -moz-transition: opacity ease-in-out 500ms; -o-transition: opacity ease-in-out 500ms; transition: opacity ease-in-out 500ms; z-index: 1; margin:20px; border: 6px solid #ffffff; height:400px; background-size:cover !important; background-position:center center; background-repeat:no-repeat; } #main-slider .carousel .item.active { opacity: 1; -webkit-transition: opacity ease-in-out 500ms; -moz-transition: opacity ease-in-out 500ms; -o-transition: opacity ease-in-out 500ms; transition: opacity ease-in-out 500ms; z-index: 1; margin:20px; border: 6px solid #ffffff; } .inicio-slide h1 { font-family:'Gotham Light', sans-serif; font-size:77px; line-height:72px; font-weight:normal; } .bx-wrapper .bx-viewport{ height: 165px !important; } .bx-wrapper .bx-prev{ left: -50px !important; } .bx-wrapper .bx-next{ right: -40px !important; } .panels-e{ display: none; padding-top: 40px; background-color:#e2e2e2; padding-bottom: 40px; position:relative; } .minus_negro{ background-image:url(../images/menos.svg); background-position: 40% 50%; background-repeat:no-repeat; width:auto; height:50px; } .check_verde{ background-image:url(../images/check.png); background-position: 50% 50%; background-repeat:no-repeat; width:auto; height:40px; } .vinietas-docs-oficiales li{ list-style:none; color:#bd1352; border-bottom:#e1e3e2 solid 1px; padding-top:15px; padding-bottom:15px; padding-left:30px; background: url(../images/descarga.svg) left center no-repeat; background-size: 20px 20px; background-repeat: no-repeat; background-position: 0px 15px; } #accordion-mapa .panel-default-mapa>#accordion-mapa.panel-heading, #accordion-mapa .panel{ /*background-color: #eb0029; */ border:0 none; box-shadow:none; -moz-border-radius: 5px; -ms-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; margin-bottom:20px; } #accordion-mapa .panel-heading{ background: url(../images/arrow_down.svg); background-size: 20px 20px; background-repeat: no-repeat; padding-top:20px; background-position: 260px 15px; height:50px; } #accordion-mapa .panel-heading.active .panel-title>a{ color:#fff; background: url(../images/arrow_up.svg); background-size: 20px 20px; background-repeat: no-repeat; background-position: 0px 0px; padding-top:2px; } .resultados-busqueda { display:block; background-color:#f7f7f7; margin-top:10px; padding:25px; } .icon-telefono{ background-image:url(../images/telefono.svg); background-size:18px; background-repeat:no-repeat; width:31px; height:30px; } @media (max-width: 480px) { /*.logotipo {outline:#FF0 solid 2px;}*/ .borde-menu-right{ border-bottom: 1px solid #dedede; } .inicio-slide h2{ font-size:21px; } #titulo-tab{ font-size:20px; } .asistencia-title { padding-left:100px; background-size:80px; height:80px; } .asistencia-title h3{ font-size:22px; line-height:22px; } .asistencia p { padding-left:10px; padding-right:10px; } .asistencia .tels-big p{ font-size: 35px; padding-right:0px; margin-top:0px; line-height:40px; } .widget h3{ /*height:54px;*/ } .tels-big { height:40px; } .tels-small ul { padding-top:10px; } #inicio .inicio-slide h1 { font-size:50px; line-height:50px; } #inicio .inicio-slide h2 { font-size:21px; line-height:26px; } #legales { margin-top:20px; } #legales span{ display:block; margin-top:20px; } .nav-tabs>li { width:100%; } #sub-bottom ul { margin-top:0px; padding-top:0px; } .inicio-area-2nivel .btn-cotizar, .inicio-area-2nivel .btn-contratar{ width:175px; padding:8px 0px; } .breadcrumb-container{ padding: 10px 0; } .inicio-area{ height: auto; min-height: 380px; } .titulo-detalles{ font-size: 32px; } .resaltado{ font-size: 18px; line-height: 120%; } .logotipo{ width: 250px; padding-top: 23px; } .breadcrumb-container ul li{ line-height: initial; } #lista-botones li{ width: 100%; } #lista-botones li button{ margin: 0 0 10px !important; float: none !important; } .seguro-obligatorio-datos{ margin-bottom: 20px; } .pull-right{ float: none !important;} #sub-bottom, .breadcrumb-container ul li{ height: auto; } .consulta-proveedores-med-2{ padding-left: 0; } .col-sm-6.corrector-15{ padding-left: 15px; } .menuCotizadores{ display: none; } .navbar-collapse.in{ height: 100% !important; padding-bottom: 40px; } .inicio-area, .inicio-area-2nivel, #asistencia-page .inicio-area, #datos-generales-page .inicio-area, #mas-vision-page .inicio-area, #perdida-total-a-page .inicio-area-2nivel{ position: relative; } .inicio-area > .container, .inicio-area-2nivel > .container, #asistencia-page .inicio-area > .container, #datos-generales-page .inicio-area > .container, #mas-vision-page .inicio-area > .container, #perdida-total-a-page .inicio-area-2nivel > .container{ z-index: 1; position: relative; } .inicio-area:after, .inicio-area-2nivel:after, #asistencia-page .inicio-area:after, #datos-generales-page .inicio-area:after, #mas-vision-page .inicio-area:after, #perdida-total-a-page .inicio-area-2nivel:after{ position: absolute; height: 100%; width: 100%; background-color: rgba(54,54,54,0.5); content: ''; top: 0; left: 0; z-index: 1; } } #destacados { margin-top:-70px; } .destacado-btn { height:140px; width:220px; padding:20px 0px 0px 20px; margin-bottom:100px; } #asistencia-page .inicio-area { background-image:url(../images/shutterstock_131281658.jpg); } #menuCotiza div.left, #menuCotiza div.right { width: 250px; height: 100%; } .modal-footer{ border-top: none; margin-top: 0; } #landing-cotiza .inicio-area { background-image: url(../images/banner-landing-cotizadores.jpg); }
css
{% include tags.html %} <h1>Статьи по тегам</h1> {% for tag in tags %} <h2 id="{{ tag | slugify }}" class="tag tag--{{ tag }}">{{ tag }}</h2> <ul class="h-simple_list"> {% for post in site.tags[tag] %} <li> <a href="{{ post.url }}" class="h-simple_link">{{ post.title }}</a> </li> {% endfor %} </ul> {% endfor %}
html
The company, with a market capitalisation of ₹2.6 lakh crore, has placed uniquely structured bonds with a clutch of local private credit funds to mobilise ₹500 crore, said two persons familiar with the issuance that closed on January 9. Cooperation Minister Amit Shah announced that 241 Primary Agricultural Credit Societies (PACS) have established Jan Aushadi Kendras in rural areas, extending the availability of affordable generic medicines to the rural poor and farmers. Previously concentrated in urban areas, the move aims to benefit a broader population, offering quality medicines at significantly lower costs. It is a global phenomenon, when any new sector emerges, it gets extremely high valuation, then too much money flows into it. Then soon comes a phase of realization that it has become too hot to handle and then correction takes place which might take years. Microfinance companies have gone through this cycle. More than a decade back, first listing of a micro finance company was a massive success though it is a different matter very soon it was embroiled in a controversy and finally taken over by a large private bank. Since then a number of finance companies have got listed and after a phase of out performance, they have been facing headwinds but then headwinds also don't remain for ever. Is the worst over for them and is it time to once again look at them ? Hobbled by a series of scandals and failed restructuring plans under successive management teams, Credit Suisse had experienced massive deposit outflows in October 2022. Swiss National Bank Chairman Thomas Jordan and other officials believed the lender faced an existential crisis that could not be solved by just injecting cash, two of the sources said. Winter Wonderland 2023 is approaching in Overwatch 2, featuring the Winter Fair event, returning modes, and exclusive skins. Starting on December 19, players can unlock free cosmetics through the Winter Fair Event Pass, earning tickets and upgrading to the Premium track for additional items. "The Fed would like to see either a substantial fall in inflation, but also, the problem is the labor market is hot," Rajan, who is a well known commentator on the global economy, said Wednesday. "The Fed may think if rates are not doing damage, why worry." On CBAM or carbon tax, a kind of additional import duty, the report said that India must underscore how the CBAM potentially undermines the Paris Agreement's goals of fostering global cooperation, respecting differentiated responsibilities, supporting sustainable development, and utilizing market-based emission reduction mechanisms. "The CBAM's approach, by taxing rather than stopping the import of high- emission goods, could paradoxically fail to achieve the global emission reduction objectives central to the Paris Agreement. The CBAM does not stop import of polluting goods, only taxes them. This will not cut overall global emission as intended," it said. This initiative involves creating an inventory of degraded wastelands, which can be utilised for planting by individuals and organisations. Participants undertaking environmentally positive actions will receive tradable green credits. Reserve Bank of India Governor Shaktikanta Das uses the Mahabharata's character Arjuna to explain interest rate decisions, despite the complexity of the drivers and the difficulty in communicating them. This is not the first RBI Governor to use this analogy. ET explains why the RBI invokes the Mahabharata and what the reference has to do with inflation and growth. Fintech heavyweights such as Cred and PhonePe are exploring cross-selling options and forging partnerships with banks to act as distribution channels for their credit cards. This and more in today’s ETtech Morning Dispatch. Synopsis: As Fintech 2.0 players redefine the scope of the ever-evolving ‘finance for all’ space, experts shared insights into the next frontiers of growth for the evolving ecosystem. Here’s what some of the key stakeholders of the fintech sector had to say about regulatory compliances and more at the Delhi-NCR chapter of the ET Soonicorns Summit 2023. 'Kennedy' is produced by Zee Studios and Ranjan Singh & Kabir Ahuja of Good Bad Films. Sylvester Fonseca is the director of photography, and the music of the film is composed by Ashish Narula with Aamir Aziz & Boyblanck. At the ET Soonicorns Summit in Delhi on November 3, Jeet Vijay, CEO , MEITY Startup Hub and Geetika Dayal, Executive Director, TiE Delhi-NCR will deliver the keynote addresses on enabling Indian startups to become the engine for global economic growth and discuss the role of India’s deeptech startup opportunities in enabling the rise of future unicorns from sunrise sectors in India. ICRA, an investment information and credit ratings agency, predicts that the hospitality industry in India will experience double-digit revenue growth in fiscal year 2024. This growth will be driven by domestic leisure travel, demand from meetings and conferences, business travel, and an increase in foreign tourist arrivals. ICRA estimates that premium hotel occupancy will reach 70-72% in 2024, with average room rates expected to be around Rs 6,000-6,200. Additionally, the industry has benefited from events like the G20 summit and the ICC World Cup 2023. Google at the event announced that GPay will now enable the availability of reliable and responsible formal credit to people and small businesses by offering customised credit products from some of India's top lenders on the platform. The digital lending industry in India is expecting a quick rebound in business during the festive season. Fintech lenders are well-prepared to meet the heightened credit demand, with stronger and profitable balance sheets. Digital lending platforms anticipate an average increase of 15-20% in disbursals during the festive period. The National Credit Framework (NCrF) has proposed the Recognition of Prior Learning (RPL) program, which allows individuals to convert their work experience into credits towards obtaining a degree. The University Grants Commission (UGC), All India Council for Technical Education (AICTE), and the National Council for Vocational Education and Training (NCVET) are currently reviewing the proposal. The awards ceremony of the Economic Times Startup Awards 2023, scheduled to be held in Bengaluru on October 7, will see Union minister of commerce and industry Piyush Goyal and minister of state for information technology Rajeev Chandrasekhar attending as guests of honour. This and more in today’s ETtech Morning Dispatch. Credit Suisse has reduced its workforce by nearly 13% this year, with the number of employees falling to 33,968 at the end of June. The bank, which was taken over by UBS earlier this year, did not provide details on the breakdown between voluntary departures and job cuts, or the number of potential future job losses. UBS has already announced plans to cut 3,000 jobs in Switzerland.
english
<filename>lib/backend/k8s/conversion/conversion.go // Copyright (c) 2016-2019 Tigera, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package conversion import ( "crypto/sha1" "encoding/hex" "encoding/json" "fmt" "os" "sort" "strings" log "github.com/sirupsen/logrus" kapiv1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" apiv3 "github.com/unai-ttxu/libcalico-go/lib/apis/v3" "github.com/unai-ttxu/libcalico-go/lib/backend/model" "github.com/unai-ttxu/libcalico-go/lib/names" cnet "github.com/unai-ttxu/libcalico-go/lib/net" "github.com/unai-ttxu/libcalico-go/lib/numorstring" networkingv1 "k8s.io/api/networking/v1" "k8s.io/apimachinery/pkg/util/intstr" ) var ( protoTCP = kapiv1.ProtocolTCP ) type selectorType int8 const ( SelectorNamespace selectorType = iota SelectorPod ) // TODO: make this private and expose a public conversion interface instead type Converter struct{} // VethNameForWorkload returns a deterministic veth name // for the given Kubernetes workload (WEP) name and namespace. func VethNameForWorkload(namespace, podname string) string { // A SHA1 is always 20 bytes long, and so is sufficient for generating the // veth name and mac addr. h := sha1.New() h.Write([]byte(fmt.Sprintf("%s.%s", namespace, podname))) prefix := os.Getenv("FELIX_INTERFACEPREFIX") if prefix == "" { // Prefix is not set. Default to "cali" prefix = "cali" } else { // Prefix is set - use the first value in the list. splits := strings.Split(prefix, ",") prefix = splits[0] } log.WithField("prefix", prefix).Debugf("Using prefix to create a WorkloadEndpoint veth name") return fmt.Sprintf("%s%s", prefix, hex.EncodeToString(h.Sum(nil))[:11]) } // ParseWorkloadName extracts the Node name, Orchestrator, Pod name and endpoint from the // given WorkloadEndpoint name. // The expected format for k8s is <node>-k8s-<pod>-<endpoint> func (c Converter) ParseWorkloadEndpointName(workloadName string) (names.WorkloadEndpointIdentifiers, error) { return names.ParseWorkloadEndpointName(workloadName) } // NamespaceToProfile converts a Namespace to a Calico Profile. The Profile stores // labels from the Namespace which are inherited by the WorkloadEndpoints within // the Profile. This Profile also has the default ingress and egress rules, which are both 'allow'. func (c Converter) NamespaceToProfile(ns *kapiv1.Namespace) (*model.KVPair, error) { // Generate the labels to apply to the profile, using a special prefix // to indicate that these are the labels from the parent Kubernetes Namespace. labels := map[string]string{} for k, v := range ns.Labels { labels[NamespaceLabelPrefix+k] = v } // Create the profile object. name := NamespaceProfileNamePrefix + ns.Name profile := apiv3.NewProfile() profile.ObjectMeta = metav1.ObjectMeta{ Name: name, CreationTimestamp: ns.CreationTimestamp, UID: ns.UID, } profile.Spec = apiv3.ProfileSpec{ Ingress: []apiv3.Rule{{Action: apiv3.Allow}}, Egress: []apiv3.Rule{{Action: apiv3.Allow}}, } // Only set labels to apply when there are actually labels. This makes the // result of this function consistent with the struct as loaded directly // from etcd, which uses nil for the empty map. if len(labels) != 0 { profile.Spec.LabelsToApply = labels } // Embed the profile in a KVPair. kvp := model.KVPair{ Key: model.ResourceKey{ Name: name, Kind: apiv3.KindProfile, }, Value: profile, Revision: c.JoinProfileRevisions(ns.ResourceVersion, ""), } return &kvp, nil } // IsValidCalicoWorkloadEndpoint returns true if the pod should be shown as a workloadEndpoint // in the Calico API and false otherwise. Note: since we completely ignore notifications for // invalid Pods, it is important that pods can only transition from not-valid to valid and not // the other way. If they transition from valid to invalid, we'll fail to emit a deletion // event in the watcher. func (c Converter) IsValidCalicoWorkloadEndpoint(pod *kapiv1.Pod) bool { if c.IsHostNetworked(pod) { log.WithField("pod", pod.Name).Debug("Pod is host networked.") return false } else if !c.IsScheduled(pod) { log.WithField("pod", pod.Name).Debug("Pod is not scheduled.") return false } return true } // IsReadyCalicoPod returns true if the pod is a valid Calico WorkloadEndpoint and has // an IP address assigned (i.e. it's ready for Calico networking). func (c Converter) IsReadyCalicoPod(pod *kapiv1.Pod) bool { if !c.IsValidCalicoWorkloadEndpoint(pod) { return false } else if !c.HasIPAddress(pod) { log.WithField("pod", pod.Name).Debug("Pod does not have an IP address.") return false } return true } const ( // Completed is documented but doesn't seem to be in the API, it should be safe to include. // Maybe it's in an older version of the API? podCompleted kapiv1.PodPhase = "Completed" ) func (c Converter) IsFinished(pod *kapiv1.Pod) bool { switch pod.Status.Phase { case kapiv1.PodFailed, kapiv1.PodSucceeded, podCompleted: return true } return false } func (c Converter) IsScheduled(pod *kapiv1.Pod) bool { return pod.Spec.NodeName != "" } func (c Converter) IsHostNetworked(pod *kapiv1.Pod) bool { return pod.Spec.HostNetwork } func (c Converter) HasIPAddress(pod *kapiv1.Pod) bool { return pod.Status.PodIP != "" || pod.Annotations[AnnotationPodIP] != "" } // GetPodIPs extracts the IP addresses from a Kubernetes Pod. At present, only a single IP // is expected/supported. GetPodIPs loads the IP either from the PodIP field, if present, or // the calico podIP annotation. func (c Converter) GetPodIPs(pod *kapiv1.Pod) ([]string, error) { var podIP string if podIP = pod.Status.PodIP; podIP != "" { log.WithField("ip", podIP).Debug("PodIP field filled in.") } else if podIP = pod.Annotations[AnnotationPodIP]; podIP != "" { log.WithField("ip", podIP).Debug("PodIP missing, falling back on Calico annotation.") } else { log.WithField("ip", podIP).Debug("Pod has no IP.") return nil, nil } _, ipNet, err := cnet.ParseCIDROrIP(podIP) if err != nil { log.WithFields(log.Fields{"ip": podIP, "pod": pod.Name}).WithError(err).Error("Failed to parse pod IP") return nil, err } return []string{ipNet.String()}, nil } // PodToWorkloadEndpoint converts a Pod to a WorkloadEndpoint. It assumes the calling code // has verified that the provided Pod is valid to convert to a WorkloadEndpoint. // PodToWorkloadEndpoint requires a Pods Name and Node Name to be populated. It will // fail to convert from a Pod to WorkloadEndpoint otherwise. func (c Converter) PodToWorkloadEndpoint(pod *kapiv1.Pod) (*model.KVPair, error) { log.WithField("pod", pod).Debug("Converting pod to WorkloadEndpoint") // Get all the profiles that apply var profiles []string // Pull out the Namespace based profile off the pod name and Namespace. profiles = append(profiles, NamespaceProfileNamePrefix+pod.Namespace) // Pull out the Serviceaccount based profile off the pod SA and namespace if pod.Spec.ServiceAccountName != "" { profiles = append(profiles, serviceAccountNameToProfileName(pod.Spec.ServiceAccountName, pod.Namespace)) } wepids := names.WorkloadEndpointIdentifiers{ Node: pod.Spec.NodeName, Orchestrator: apiv3.OrchestratorKubernetes, Endpoint: "eth0", Pod: pod.Name, } wepName, err := wepids.CalculateWorkloadEndpointName(false) if err != nil { return nil, err } ipNets, err := c.GetPodIPs(pod) if err != nil { // IP address was present but malformed in some way, handle as an explicit failure. return nil, err } if c.IsFinished(pod) { // Pod is finished but not yet deleted. In this state the IP will have been freed and returned to the pool // so we need to make sure we don't let the caller believe it still belongs to this endpoint. // Pods with no IPs will get filtered out before they get to Felix in the watcher syncer cache layer. // We can't pretend the workload endpoint is deleted _here_ because that would confuse users of the // native v3 Watch() API. ipNets = nil } // Generate the interface name based on workload. This must match // the host-side veth configured by the CNI plugin. interfaceName := VethNameForWorkload(pod.Namespace, pod.Name) // Build the labels map. Start with the pod labels, and append two additional labels for // namespace and orchestrator matches. labels := pod.Labels if labels == nil { labels = make(map[string]string, 2) } labels[apiv3.LabelNamespace] = pod.Namespace labels[apiv3.LabelOrchestrator] = apiv3.OrchestratorKubernetes if pod.Spec.ServiceAccountName != "" { labels[apiv3.LabelServiceAccount] = pod.Spec.ServiceAccountName } // Pull out floating IP annotation var floatingIPs []apiv3.IPNAT if annotation, ok := pod.Annotations["cni.projectcalico.org/floatingIPs"]; ok && len(ipNets) > 0 { // Parse Annotation data var ips []string err := json.Unmarshal([]byte(annotation), &ips) if err != nil { return nil, fmt.Errorf("failed to parse '%s' as JSON: %s", annotation, err) } // Get target for NAT podip, podnet, err := cnet.ParseCIDROrIP(ipNets[0]) if err != nil { return nil, fmt.Errorf("Failed to parse pod IP: %s", err) } netmask, _ := podnet.Mask.Size() if netmask != 32 && netmask != 128 { return nil, fmt.Errorf("PodIP is not a valid IP: Mask size is %d, not 32 or 128", netmask) } for _, ip := range ips { floatingIPs = append(floatingIPs, apiv3.IPNAT{ InternalIP: podip.String(), ExternalIP: ip, }) } } // Map any named ports through. var endpointPorts []apiv3.EndpointPort for _, container := range pod.Spec.Containers { for _, containerPort := range container.Ports { if containerPort.Name != "" && containerPort.ContainerPort != 0 { var modelProto numorstring.Protocol switch containerPort.Protocol { case kapiv1.ProtocolUDP: modelProto = numorstring.ProtocolFromString("udp") case kapiv1.ProtocolTCP, kapiv1.Protocol("") /* K8s default is TCP. */ : modelProto = numorstring.ProtocolFromString("tcp") default: log.WithFields(log.Fields{ "protocol": containerPort.Protocol, "pod": pod, "port": containerPort, }).Debug("Ignoring named port with unknown protocol") continue } endpointPorts = append(endpointPorts, apiv3.EndpointPort{ Name: containerPort.Name, Protocol: modelProto, Port: uint16(containerPort.ContainerPort), }) } } } // Create the workload endpoint. wep := apiv3.NewWorkloadEndpoint() wep.ObjectMeta = metav1.ObjectMeta{ Name: wepName, Namespace: pod.Namespace, CreationTimestamp: pod.CreationTimestamp, UID: pod.UID, Labels: labels, GenerateName: pod.GenerateName, } wep.Spec = apiv3.WorkloadEndpointSpec{ Orchestrator: "k8s", Node: pod.Spec.NodeName, Pod: pod.Name, Endpoint: "eth0", InterfaceName: interfaceName, Profiles: profiles, IPNetworks: ipNets, Ports: endpointPorts, IPNATs: floatingIPs, } // Embed the workload endpoint into a KVPair. kvp := model.KVPair{ Key: model.ResourceKey{ Name: wepName, Namespace: pod.Namespace, Kind: apiv3.KindWorkloadEndpoint, }, Value: wep, Revision: pod.ResourceVersion, } return &kvp, nil } // K8sNetworkPolicyToCalico converts a k8s NetworkPolicy to a model.KVPair. func (c Converter) K8sNetworkPolicyToCalico(np *networkingv1.NetworkPolicy) (*model.KVPair, error) { // Pull out important fields. policyName := fmt.Sprintf(K8sNetworkPolicyNamePrefix + np.Name) // We insert all the NetworkPolicy Policies at order 1000.0 after conversion. // This order might change in future. order := float64(1000.0) // Generate the ingress rules list. var ingressRules []apiv3.Rule for _, r := range np.Spec.Ingress { rules, err := c.k8sRuleToCalico(r.From, r.Ports, np.Namespace, true) if err != nil { log.WithError(err).Warn("dropping k8s rule that couldn't be converted.") } else { ingressRules = append(ingressRules, rules...) } } // Generate the egress rules list. var egressRules []apiv3.Rule for _, r := range np.Spec.Egress { rules, err := c.k8sRuleToCalico(r.To, r.Ports, np.Namespace, false) if err != nil { log.WithError(err).Warn("dropping k8s rule that couldn't be converted") } else { egressRules = append(egressRules, rules...) } } // Calculate Types setting. ingress := false egress := false for _, policyType := range np.Spec.PolicyTypes { switch policyType { case networkingv1.PolicyTypeIngress: ingress = true case networkingv1.PolicyTypeEgress: egress = true } } types := []apiv3.PolicyType{} if ingress { types = append(types, apiv3.PolicyTypeIngress) } if egress { types = append(types, apiv3.PolicyTypeEgress) } else if len(egressRules) > 0 { // Egress was introduced at the same time as policyTypes. It shouldn't be possible to // receive a NetworkPolicy with an egress rule but without "Egress" specified in its types, // but we'll warn about it anyway. log.Warn("K8s PolicyTypes don't include 'egress', but NetworkPolicy has egress rules.") } // If no types were specified in the policy, then we're running on a cluster that doesn't // include support for that field in the API. In that case, the correct behavior is for the policy // to apply to only ingress traffic. if len(types) == 0 { types = append(types, apiv3.PolicyTypeIngress) } // Create the NetworkPolicy. policy := apiv3.NewNetworkPolicy() policy.ObjectMeta = metav1.ObjectMeta{ Name: policyName, Namespace: np.Namespace, CreationTimestamp: np.CreationTimestamp, UID: np.UID, } policy.Spec = apiv3.NetworkPolicySpec{ Order: &order, Selector: c.k8sSelectorToCalico(&np.Spec.PodSelector, SelectorPod), Ingress: ingressRules, Egress: egressRules, Types: types, } // Build and return the KVPair. return &model.KVPair{ Key: model.ResourceKey{ Name: policyName, Namespace: np.Namespace, Kind: apiv3.KindNetworkPolicy, }, Value: policy, Revision: np.ResourceVersion, }, nil } // k8sSelectorToCalico takes a namespaced k8s label selector and returns the Calico // equivalent. func (c Converter) k8sSelectorToCalico(s *metav1.LabelSelector, selectorType selectorType) string { // Only prefix pod selectors - this won't work for namespace selectors. selectors := []string{} if selectorType == SelectorPod { selectors = append(selectors, fmt.Sprintf("%s == 'k8s'", apiv3.LabelOrchestrator)) } if s == nil { return strings.Join(selectors, " && ") } // For namespace selectors, if they are present but have no terms, it means "select all // namespaces". We use empty string to represent the nil namespace selector, so use all() to // represent all namespaces. if selectorType == SelectorNamespace && len(s.MatchLabels) == 0 && len(s.MatchExpressions) == 0 { return "all()" } // matchLabels is a map key => value, it means match if (label[key] == // value) for all keys. keys := make([]string, 0, len(s.MatchLabels)) for k := range s.MatchLabels { keys = append(keys, k) } sort.Strings(keys) for _, k := range keys { v := s.MatchLabels[k] selectors = append(selectors, fmt.Sprintf("%s == '%s'", k, v)) } // matchExpressions is a list of in/notin/exists/doesnotexist tests. for _, e := range s.MatchExpressions { valueList := strings.Join(e.Values, "', '") // Each selector is formatted differently based on the operator. switch e.Operator { case metav1.LabelSelectorOpIn: selectors = append(selectors, fmt.Sprintf("%s in { '%s' }", e.Key, valueList)) case metav1.LabelSelectorOpNotIn: selectors = append(selectors, fmt.Sprintf("%s not in { '%s' }", e.Key, valueList)) case metav1.LabelSelectorOpExists: selectors = append(selectors, fmt.Sprintf("has(%s)", e.Key)) case metav1.LabelSelectorOpDoesNotExist: selectors = append(selectors, fmt.Sprintf("! has(%s)", e.Key)) } } return strings.Join(selectors, " && ") } func (c Converter) k8sRuleToCalico(rPeers []networkingv1.NetworkPolicyPeer, rPorts []networkingv1.NetworkPolicyPort, ns string, ingress bool) ([]apiv3.Rule, error) { rules := []apiv3.Rule{} peers := []*networkingv1.NetworkPolicyPeer{} ports := []*networkingv1.NetworkPolicyPort{} // Built up a list of the sources and a list of the destinations. for _, f := range rPeers { // We need to add a copy of the peer so all the rules don't // point to the same location. peers = append(peers, &networkingv1.NetworkPolicyPeer{ NamespaceSelector: f.NamespaceSelector, PodSelector: f.PodSelector, IPBlock: f.IPBlock, }) } for _, p := range rPorts { // We need to add a copy of the port so all the rules don't // point to the same location. port := networkingv1.NetworkPolicyPort{} if p.Port != nil { portval := intstr.FromString(p.Port.String()) port.Port = &portval // TCP is the implicit default (as per the definition of NetworkPolicyPort). // Make the default explicit here because our data-model always requires // the protocol to be specified if we're doing a port match. port.Protocol = &protoTCP } if p.Protocol != nil { protval := kapiv1.Protocol(fmt.Sprintf("%s", *p.Protocol)) port.Protocol = &protval } ports = append(ports, &port) } // If there no peers, or no ports, represent that as nil. if len(peers) == 0 { peers = []*networkingv1.NetworkPolicyPeer{nil} } if len(ports) == 0 { ports = []*networkingv1.NetworkPolicyPort{nil} } // Combine destinations with sources to generate rules. // TODO: This currently creates a lot of rules by making every combination of from / ports // into a rule. We can combine these so that we don't need as many rules! for _, port := range ports { protocol, calicoPorts, err := c.k8sPortToCalicoFields(port) if err != nil { return nil, fmt.Errorf("failed to parse k8s port: %s", err) } for _, peer := range peers { selector, nsSelector, nets, notNets := c.k8sPeerToCalicoFields(peer, ns) if ingress { // Build inbound rule and append to list. rules = append(rules, apiv3.Rule{ Action: "Allow", Protocol: protocol, Source: apiv3.EntityRule{ Selector: selector, NamespaceSelector: nsSelector, Nets: nets, NotNets: notNets, }, Destination: apiv3.EntityRule{ Ports: calicoPorts, }, }) } else { // Build outbound rule and append to list. rules = append(rules, apiv3.Rule{ Action: "Allow", Protocol: protocol, Destination: apiv3.EntityRule{ Ports: calicoPorts, Selector: selector, NamespaceSelector: nsSelector, Nets: nets, NotNets: notNets, }, }) } } } return rules, nil } func (c Converter) k8sPortToCalicoFields(port *networkingv1.NetworkPolicyPort) (protocol *numorstring.Protocol, dstPorts []numorstring.Port, err error) { // If no port info, return zero values for all fields (protocol, dstPorts). if port == nil { return } // Port information available. dstPorts, err = c.k8sPortToCalico(*port) if err != nil { return } protocol = c.k8sProtocolToCalico(port.Protocol) return } func (c Converter) k8sProtocolToCalico(protocol *kapiv1.Protocol) *numorstring.Protocol { if protocol != nil { p := numorstring.ProtocolFromString(string(*protocol)) return &p } return nil } func (c Converter) k8sPeerToCalicoFields(peer *networkingv1.NetworkPolicyPeer, ns string) (selector, nsSelector string, nets []string, notNets []string) { // If no peer, return zero values for all fields (selector, nets and !nets). if peer == nil { return } // Peer information available. // Determine the source selector for the rule. if peer.IPBlock != nil { // Convert the CIDR to include. _, ipNet, err := cnet.ParseCIDR(peer.IPBlock.CIDR) if err != nil { log.WithField("cidr", peer.IPBlock.CIDR).WithError(err).Error("Failed to parse CIDR") return } nets = []string{ipNet.String()} // Convert the CIDRs to exclude. notNets = []string{} for _, exception := range peer.IPBlock.Except { _, ipNet, err = cnet.ParseCIDR(exception) if err != nil { log.WithField("cidr", exception).WithError(err).Error("Failed to parse CIDR") return } notNets = append(notNets, ipNet.String()) } // If IPBlock is set, then PodSelector and NamespaceSelector cannot be. return } // IPBlock is not set to get here. // Note that k8sSelectorToCalico() accepts nil values of the selector. selector = c.k8sSelectorToCalico(peer.PodSelector, SelectorPod) nsSelector = c.k8sSelectorToCalico(peer.NamespaceSelector, SelectorNamespace) return } func (c Converter) k8sPortToCalico(port networkingv1.NetworkPolicyPort) ([]numorstring.Port, error) { var portList []numorstring.Port if port.Port != nil { p, err := numorstring.PortFromString(port.Port.String()) if err != nil { return nil, fmt.Errorf("invalid port %+v: %s", port.Port, err) } return append(portList, p), nil } // No ports - return empty list. return portList, nil } // ProfileNameToNamespace extracts the Namespace name from the given Profile name. func (c Converter) ProfileNameToNamespace(profileName string) (string, error) { // Profile objects backed by Namespaces have form "kns.<ns_name>" if !strings.HasPrefix(profileName, NamespaceProfileNamePrefix) { // This is not backed by a Kubernetes Namespace. return "", fmt.Errorf("Profile %s not backed by a Namespace", profileName) } return strings.TrimPrefix(profileName, NamespaceProfileNamePrefix), nil } // JoinNetworkPolicyRevisions constructs the revision from the individual CRD and K8s NetworkPolicy // revisions. func (c Converter) JoinNetworkPolicyRevisions(crdNPRev, k8sNPRev string) string { return crdNPRev + "/" + k8sNPRev } // SplitNetworkPolicyRevision extracts the CRD and K8s NetworkPolicy revisions from the combined // revision returned on the KDD NetworkPolicy client. func (c Converter) SplitNetworkPolicyRevision(rev string) (crdNPRev string, k8sNPRev string, err error) { if rev == "" { return } revs := strings.Split(rev, "/") if len(revs) != 2 { err = fmt.Errorf("ResourceVersion is not valid: %s", rev) return } crdNPRev = revs[0] k8sNPRev = revs[1] return } // serviceAccountNameToProfileName creates a profile name that is a join // of 'ksa.' + namespace + "." + serviceaccount name. func serviceAccountNameToProfileName(sa, namespace string) string { // Need to incorporate the namespace into the name of the sa based profile // to make them globally unique if namespace == "" { namespace = "default" } return ServiceAccountProfileNamePrefix + namespace + "." + sa } // ServiceAccountToProfile converts a ServiceAccount to a Calico Profile. The Profile stores // labels from the ServiceAccount which are inherited by the WorkloadEndpoints within // the Profile. func (c Converter) ServiceAccountToProfile(sa *kapiv1.ServiceAccount) (*model.KVPair, error) { // Generate the labels to apply to the profile, using a special prefix // to indicate that these are the labels from the parent Kubernetes ServiceAccount. labels := map[string]string{} for k, v := range sa.ObjectMeta.Labels { labels[ServiceAccountLabelPrefix+k] = v } name := serviceAccountNameToProfileName(sa.Name, sa.Namespace) profile := apiv3.NewProfile() profile.ObjectMeta = metav1.ObjectMeta{ Name: name, CreationTimestamp: sa.CreationTimestamp, UID: sa.UID, } // Only set labels to apply when there are actually labels. This makes the // result of this function consistent with the struct as loaded directly // from etcd, which uses nil for the empty map. if len(labels) != 0 { profile.Spec.LabelsToApply = labels } else { profile.Spec.LabelsToApply = nil } // Embed the profile in a KVPair. kvp := model.KVPair{ Key: model.ResourceKey{ Name: name, Kind: apiv3.KindProfile, }, Value: profile, Revision: c.JoinProfileRevisions("", sa.ResourceVersion), } return &kvp, nil } // ProfileNameToServiceAccount extracts the ServiceAccount name from the given Profile name. func (c Converter) ProfileNameToServiceAccount(profileName string) (ns, sa string, err error) { // Profile objects backed by ServiceAccounts have form "ksa.<namespace>.<sa_name>" if !strings.HasPrefix(profileName, ServiceAccountProfileNamePrefix) { // This is not backed by a Kubernetes ServiceAccount. err = fmt.Errorf("Profile %s not backed by a ServiceAccount", profileName) return } names := strings.SplitN(profileName, ".", 3) if len(names) != 3 { err = fmt.Errorf("Profile %s is not formatted correctly", profileName) return } ns = names[1] sa = names[2] return } // JoinProfileRevisions constructs the revision from the individual namespace and serviceaccount // revisions. // This is conditional on the feature flag for serviceaccount set or not. func (c Converter) JoinProfileRevisions(nsRev, saRev string) string { return nsRev + "/" + saRev } // SplitProfileRevision extracts the namespace and serviceaccount revisions from the combined // revision returned on the KDD service account based profile. // This is conditional on the feature flag for serviceaccount set or not. func (c Converter) SplitProfileRevision(rev string) (nsRev string, saRev string, err error) { if rev == "" { return } revs := strings.Split(rev, "/") if len(revs) != 2 { err = fmt.Errorf("ResourceVersion is not valid: %s", rev) return } nsRev = revs[0] saRev = revs[1] return }
go
<reponame>xy2401/local-doc-oracle-19c <!DOCTYPE html SYSTEM "about:legacy-compat"> <html xml:lang="en-us" lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>PROTL-00001 to PROTL-00604</title> <meta property="og:site_name" content="Oracle Help Center"> <meta property="og:title" content="Database Error Messages"> <meta property="og:description" content> <link rel="stylesheet" href="/sp_common/book-template/ohc-book-template/css/book.css"> <link rel="shortcut icon" href="/sp_common/book-template/ohc-common/img/favicon.ico"> <meta name="application-name" content="Database Error Messages"> <meta name="generator" content="DITA Open Toolkit version 1.8.5 (Mode = doc)"> <meta name="plugin" content="SP_docbuilder HTML plugin release 18.2.2"> <link rel="alternate" href="database-error-messages.pdf" title="PDF File" type="application/pdf"> <meta name="robots" content="all"> <link rel="schema.dcterms" href="http://purl.org/dc/terms/"> <meta name="dcterms.created" content="2019-04-16T07:32:34-07:00"> <meta name="dcterms.title" content="Database Error Messages"> <meta name="dcterms.dateCopyrighted" content="1996, 2019"> <meta name="dcterms.category" content="database"> <meta name="dcterms.identifier" content="E95938-03"> <meta name="dcterms.product" content="en/database/oracle/oracle-database/19"> <link rel="prev" href="PROC-00001.html" title="Previous" type="text/html"> <link rel="next" href="PROT-00001.html" title="Next" type="text/html"> <script> document.write('<style type="text/css">'); document.write('body > .noscript, body > .noscript ~ * { visibility: hidden; }'); document.write('</style>'); </script> <script data-main="/sp_common/book-template/ohc-book-template/js/book-config" src="/sp_common/book-template/requirejs/require.js"></script> <script> if (window.require === undefined) { document.write('<script data-main="sp_common/book-template/ohc-book-template/js/book-config" src="sp_common/book-template/requirejs/require.js"><\/script>'); document.write('<link href="sp_common/book-template/ohc-book-template/css/book.css" rel="stylesheet"/>'); } </script> <script type="application/json" id="ssot-metadata">{"primary":{"category":{"short_name":"database","element_name":"Database","display_in_url":true},"suite":{"short_name":"oracle","element_name":"Oracle","display_in_url":true},"product_group":{"short_name":"not-applicable","element_name":"Not applicable","display_in_url":false},"product":{"short_name":"oracle-database","element_name":"Oracle Database","display_in_url":true},"release":{"short_name":"19","element_name":"Release 19","display_in_url":true}}}</script> <meta name="dcterms.isVersionOf" content="ERRMG"> <meta name="dcterms.release" content="Release 19"> </head> <body> <div class="noscript alert alert-danger text-center" role="alert"> <a href="PROC-00001.html" class="pull-left"><span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>Previous</a> <a href="PROT-00001.html" class="pull-right">Next<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span></a> <span class="fa fa-exclamation-triangle" aria-hidden="true"></span> JavaScript must be enabled to correctly display this content </div> <article> <header> <ol class="breadcrumb" vocab="http://schema.org/" typeof="BreadcrumbList"> <li property="itemListElement" typeof="ListItem"><a href="index.html" property="item" typeof="WebPage"><span property="name">Database Error Messages</span></a></li> <li class="active" property="itemListElement" typeof="ListItem"> PROTL-00001 to PROTL-00604</li> </ol> <a id="GUID-313A2B22-E7EA-4895-A781-E26316134386" name="GUID-313A2B22-E7EA-4895-A781-E26316134386"></a> <h2 id="ERRMG-GUID-313A2B22-E7EA-4895-A781-E26316134386" class="sect2"><span class="enumeration_chapter">140 </span> PROTL-00001 to PROTL-00604 </h2> </header> <div class="ind"> <div> <dl> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-133179CE-5F1D-4E99-A224-3F2833A4899A"> <!-- --></a> PROTL-00001: Failed to initialize ocrconfig </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to initialize and start ocrconfig. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check log file for details about the failure. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-F66B0E16-445F-4440-82CA-E7C2714756AC"> <!-- --></a> PROTL-00002: Export file '<span class="variable" translate="no">string</span>' already exists </dt> <dd> <p> <span class="keyword">Cause:</span> Requested export file exists in the given path. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Change the location for export file or remove the old export file. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-E14EB46F-3ACB-40AB-A8C1-DA494BF7DF3B"> <!-- --></a> PROTL-00003: Failed to create export file '<span class="variable" translate="no">string</span>' </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to create or open file for exporting local registry data. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check access privilege or disk space of the requested path. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-66B65462-2EC4-4854-B13C-43F743EE25C7"> <!-- --></a> PROTL-00004: Failed to retrieve data from the local registry </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to retrieve necessary information from the local registry. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check the availability of the local registry and the details of the failure from the log file. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-25A96E22-01AC-49BF-94CA-5546A23FFF48"> <!-- --></a> PROTL-00006: The specified Oracle Local Registry import file '<span class="variable" translate="no">string</span>' is not accessible. </dt> <dd> <p> <span class="keyword">Cause:</span> An attempt to import Oracle Local Registry contents from the indicated import file failed because the import file did not exist or user did not have permission to open the import file. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Ensure that the import file exists and its permissions are correct and retry the import command. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-630D6003-12A0-420E-9535-1ECF30594874"> <!-- --></a> PROTL-00007: Failed to open the specified import file '<span class="variable" translate="no">string</span>' </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to access the specified import file. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check access privilege of the import file. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-75CEF516-6B4B-4791-BEB6-4D3D76CDE06A"> <!-- --></a> PROTL-00008: Failed to import data from specified file to the local registry </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to read data from the import file and import to the local registry. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check availability of the local registry and the details of the failure from the log file. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-2733E4B7-2E1D-4B3F-908D-52110A7D3117"> <!-- --></a> PROTL-00010: Failed to open the specified source local registry </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to access the specified source local registry. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check access privilege and location of the source local registry, and the log file for more detail. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-355908D9-6BFA-457B-B521-F33E2EA161BE"> <!-- --></a> PROTL-00011: Failed to open the specified destination local registry </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to access the specified destination local registry. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check access privilege and location of the destination local registry. Also check the log file for more details. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-8C8BBB03-DB62-420D-BA3D-C11D4FCF13D6"> <!-- --></a> PROTL-00012: Oracle Local Registry to be upgraded has an unsupported version </dt> <dd> <p> <span class="keyword">Cause:</span> Oracle Local Registry to be upgraded had an unsupported version. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Upgrade Oracle Local Registry to a version supported. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-599C072C-3EEF-48DE-8E95-6AE00AC1F0C5"> <!-- --></a> PROTL-00013: Oracle Local Registry is in current version </dt> <dd> <p> <span class="keyword">Cause:</span> Oracle Local Registry was in current version. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> No action required. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-B318F356-7496-4A9A-A301-FB92DD511A2D"> <!-- --></a> PROTL-00015: Unimplemented feature </dt> <dd> <p> <span class="keyword">Cause:</span> Requested feature has not been implemented in current release. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Try the feature again in the next release. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-3CC9FE23-D96A-4D70-B66B-A7B478C21FEB"> <!-- --></a> PROTL-00016: Internal Error </dt> <dd> <p> <span class="keyword">Cause:</span> This is a generic internal error for ocrconfig. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Contact Oracle Support Services. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-EB9DB4FE-3483-4464-AD63-D89F6F80ACDE"> <!-- --></a> PROTL-00017: Fatal Error </dt> <dd> <p> <span class="keyword">Cause:</span> This is a generic fatal error for ocrconfig. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Contact Oracle Support Services. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-05A33B8E-580A-437F-820A-B735FE5F14BC"> <!-- --></a> PROTL-00018: Failed to open the specified backup file '<span class="variable" translate="no">string</span>' </dt> <dd> <p> <span class="keyword">Cause:</span> File did not exist or user did not have permission to open the file. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Ensure that the file exists and its permissions are correct. Also check the log file for more details. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-C743619E-07BC-4F21-AED8-6EF7B97781A3"> <!-- --></a> PROTL-00019: Cannot proceed while the Oracle High Availability Service is running </dt> <dd> <p> <span class="keyword">Cause:</span> The Oracle High Availability Service was running. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Use the 'crsctl stop crs' command to shutdown the Oracle High Availability Service on the local node. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-DDA544EF-74E0-4EEF-B9FB-6AC7BB6BA595"> <!-- --></a> PROTL-00020: Insufficient permission to proceed. Require privileged user </dt> <dd> <p> <span class="keyword">Cause:</span> User was not a privileged user. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Run the command again using a privileged user. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-0CE0430D-31B0-4199-A162-29C87A1C0514"> <!-- --></a> PROTL-00021: Invalid parameter </dt> <dd> <p> <span class="keyword">Cause:</span> Input parameter was not valid. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check log file for more information. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-3FF94096-FA65-4D35-93C5-0D3C0A1F907D"> <!-- --></a> PROTL-00023: failed to back up Oracle Local Registry </dt> <dd> <p> <span class="keyword">Cause:</span> An attempt to back up the Oracle Local Registry failed. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Confirm that the registry exists ('ocrcheck -local') and that the clusterware stack is running ('crsctl check crs'). Ensure that there is sufficient free space at the backup location for the OLR size reported by ocrcheck. If necessary, use 'ocrconfig -local -backuploc' to specify a different location. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-C6DB3FDA-D06E-4CBA-AFF9-58E6DF09E6A5"> <!-- --></a> PROTL-00024: No auto backups of the OLR are available at this time. </dt> <dd> <p> <span class="keyword">Cause:</span> The command 'ocrconfig -local -showbackup' determined that no auto backups of the Oracle Local Registry (OLR) were available at that time. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Auto backups of the OLR are created once every day. Wait 24 hours, and then retry the 'showbackup' operation. Alternatively, use 'ocrconfig -local -manualbackup' command to take a manual backup. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-B374C376-D0E2-46DA-874C-E20AF80B5EFC"> <!-- --></a> PROTL-00025: Manual backups for the Oracle Local Registry are not available </dt> <dd> <p> <span class="keyword">Cause:</span> Manual backups for the Oracle Local Registry were not yet created. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Manual backups can be created using 'ocrconfig -local -manualbackup' command. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-C3742636-A501-455A-86C5-CF716F6FC873"> <!-- --></a> PROTL-00035: The configured OLR location is not accessible </dt> <dd> <p> <span class="keyword">Cause:</span> The configured Oracle local Registry (OLR) location did not exist, did not have the required permissions, or did not have sufficient disk space.. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Ensure that the location exists, that its permissions are correct, and that it has sufficient disk space. Also check the Clusterware alert log file for more details. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-4F7EEE2D-E1C5-4E8D-8217-A03C5C9B9021"> <!-- --></a> PROTL-00039: The specified file '<span class="variable" translate="no">string</span>' has an invalid format </dt> <dd> <p> <span class="keyword">Cause:</span> The specified file was not a valid Oracle Local Registry export/import file. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Specify a valid Oracle Local Registry file which was created using the 'ocrconfig -local -export' command. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-E34D4300-C2FA-4595-AA03-384F86136567"> <!-- --></a> PROTL-00040: The specified file '<span class="variable" translate="no">string</span>' has an invalid format </dt> <dd> <p> <span class="keyword">Cause:</span> The specified file was not a valid Oracle Local Registry backup file. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Use the 'ocrconfig -local -showbackup' command to list all available backups. Specify a valid Oracle Local Registry backup file listed by the above command. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-2E746416-9D03-4A3C-B182-ECF8489C2F82"> <!-- --></a> PROTL-00041: The specified backup location '<span class="variable" translate="no">string</span>' is not accessible </dt> <dd> <p> <span class="keyword">Cause:</span> The backup location did not exist or the required permissions were not granted. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Ensure that the location exists and the required file creation permissions are granted. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-43E9160A-DC86-415C-A315-FDC8E83950EB"> <!-- --></a> PROTL-00042: The specified backup location '<span class="variable" translate="no">string</span>' is not a directory </dt> <dd> <p> <span class="keyword">Cause:</span> The specified backup location was not a directory. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Specify a directory. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-924FA908-E783-4B0C-B6EF-20204F4C2619"> <!-- --></a> PROTL-00049: The Oracle Local Registry (OLR) integrity check failed. </dt> <dd> <p> <span class="keyword">Cause:</span> The integrity check failed for the configured Oracle Local Registry location. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check availability of backups using 'ocrconfig -local -showbackup' command and restore a compatible backup. If you are not able to resolve the problem, contact Oracle Support Services. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-7399EEE4-53F9-4A7C-A8F1-7CA0C83A8F2E"> <!-- --></a> PROTL-00052: failed to retrieve backup location of Oracle Local Registry </dt> <dd> <p> <span class="keyword">Cause:</span> An attempt to display the backup location for the Oracle Local Registry failed because the Oracle Local Registry was not accessible. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check the accessibility of Oracle Local Registry. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-585CFACF-4618-49C6-A96F-8E7911F13CF9"> <!-- --></a> PROTL-00054: failed to copy the Oracle Local Registry backup file to the specified destination '<span class="variable" translate="no">string</span>' </dt> <dd> <p> <span class="keyword">Cause:</span> An attempt to copy the Oracle Local Registry backup file to the specified location failed because it was not writable by the user or did not have sufficient space. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Ensure that the destination is writable by the user and that there is sufficient free space for the file. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-2632156A-855E-462B-B931-4FF79F8A9E66"> <!-- --></a> PROTL-00056: The file name [<span class="variable" translate="no">string</span>] specified for the 'ocrconfig -local -copy' command is invalid. </dt> <dd> <p> <span class="keyword">Cause:</span> An attempt to copy an Oracle Local Registry file failed because the specified destination file name argument did not specify a complete path name. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Reissue the command specifying a complete path name for the destination file. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-BE14B362-C402-48E8-82A8-BB09BD6B5801"> <!-- --></a> PROTL-00057: The back up file specified in the 'ocrconfig -local -manualbackup -filename' command already exists [<span class="variable" translate="no">string</span>]. </dt> <dd> <p> <span class="keyword">Cause:</span> The requested back up file already existed in the given path. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Change the back up file location for the 'ocrconfig -local -manualbackup -filename' command or remove the old back up file. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-8670BB1B-0666-4381-BE49-7A556E551832"> <!-- --></a> PROTL-00058: successfully exported the Oracle Local Registry contents to file '<span class="variable" translate="no">string</span>' </dt> <dd> <p> <span class="keyword">Cause:</span> The Oracle Local Registry contents were successfully exported to the specified file as requested by the user. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> None </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-30F2BC4F-3F40-4845-958C-75F9E88A87FE"> <!-- --></a> PROTL-00059: Manual backups for the Oracle Local Registry cannot be displayed. </dt> <dd> <p> <span class="keyword">Cause:</span> An attempt to display OLR Manual backup locations failed because a manual backup was in progress. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Retry the operation to display the manual backup locations using 'ocrconfig -local -showbackup manual' command after the in-progress backup completes. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-4E7FF7EE-18CB-4E06-A8C3-AD2831D63E97"> <!-- --></a> PROTL-00061: The Oracle Local Registry backup file created is '<span class="variable" translate="no">string</span>'. </dt> <dd> <p> <span class="keyword">Cause:</span> None, this is an informational message. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> None </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-5F320A39-FE4D-477D-A5FC-7790BE204359"> <!-- --></a> PROTL-00062: The Oracle Local Registry backup file '<span class="variable" translate="no">string</span>' could not be deleted. </dt> <dd> <p> <span class="keyword">Cause:</span> The Oracle Local Registry backup might not be accessible from the node on which the command was originated, or the user might not have appropriate permissions to delete the backup file. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check the accompanying errors and act accordingly. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-AA2E06AE-2750-4AF6-9A4D-2AA67CF0B61A"> <!-- --></a> PROTL-00302: Failed to initialize ocrdump </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to initialize and start ocrdump . </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check log file for details about the failure. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-640A665D-F38D-4E49-B3C0-500BB28AF907"> <!-- --></a> PROTL-00303: Dump file already exists [<span class="variable" translate="no">string</span>] </dt> <dd> <p> <span class="keyword">Cause:</span> Requested dump file exists in the given path. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Change the location for the dump file or remove the old dump file. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-882C3652-427B-407F-8596-8A73DA1CD9F3"> <!-- --></a> PROTL-00304: Failed to create dump file [<span class="variable" translate="no">string</span>] </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to create or open file for dumping local registry data. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check access privilege or disk space of the requested path. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-3F53ACC6-B289-4C1A-8000-F2C1F7155C17"> <!-- --></a> PROTL-00305: Failed to write to dump file [<span class="variable" translate="no">string</span>] </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to write to dump file while dumping local registry data. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check access privilege or disk space of the requested path. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-8C67EB83-B1B1-40DE-8A70-C60A513ED5EF"> <!-- --></a> PROTL-00306: Failed to retrieve local registry data </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to read local registry data. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check log file for details about the failure. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-10680E44-3AE2-4D49-952E-FC3B0AFA5C06"> <!-- --></a> PROTL-00307: The specified key does not exist in local registry </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to retrieve the specified key from local registry. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check log file for the key name. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-8A339CCD-7A7B-425B-8F90-60D522E1C663"> <!-- --></a> PROTL-00309: Failed to access the Oracle Local Registry backup file. </dt> <dd> <p> <span class="keyword">Cause:</span> The Oracle Local Registry backup file either did not exist or the user did not have the permission to open the file. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Ensure that the file exists and its permissions are correct. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-399112D2-25D5-4DD3-ABFC-50E4A59C582A"> <!-- --></a> PROTL-00310: Not all keys were dumped due to permissions. </dt> <dd> <p> <span class="keyword">Cause:</span> An attempt was made to dump one or more Oracle Local Registry keys for which the user does not have access permission. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Log on as a different user and retry. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-3D14517C-23A9-44BC-819A-D28FF2D408B8"> <!-- --></a> PROTL-00312: The specified file '<span class="variable" translate="no">string</span>' has an invalid format. </dt> <dd> <p> <span class="keyword">Cause:</span> The file argument to the ocrdump command specified a file that was not a valid Oracle Local Registry backup file. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Use the 'ocrconfig -local -showbackup' command to list all available backups. Reissue the ocrdump command specifying a valid Oracle Local Registry backup file as listed by the ocrconfig command. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-594C0FFE-5BDE-4093-937A-480F23846798"> <!-- --></a> PROTL-00601: Failed to initialize ocrcheck </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to initialize and start ocrcheck. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check log file for details about the failure. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-1D30B4C9-DC05-4A7A-A363-38FF81E3DBCF"> <!-- --></a> PROTL-00602: Failed to retrieve data from the local registry </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to retrieve necessary information from the local registry. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check the availability of the local registry and the details of the failure from the log file. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-1ABA0E2E-198C-448F-A212-D11D9D168C12"> <!-- --></a> PROTL-00603: Oracle Local Registry is logically corrupted </dt> <dd> <p> <span class="keyword">Cause:</span> A logical corruption was detected in the Oracle Local Registry. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check the log file for more information. </p> </dd> <dt class="dlterm"><a name="GUID-313A2B22-E7EA-4895-A781-E26316134386__GUID-7544E97C-2CEB-42FA-B6C2-07D13B7D2793"> <!-- --></a> PROTL-00604: Failed to retrieve the configured location of the local registry </dt> <dd> <p> <span class="keyword">Cause:</span> Unable to retrieve the location of local registry. </p> </dd> <dd class="ddexpand"> <p> <span class="keyword">Action:</span> Check log file for details about the failure. </p> </dd> </dl> </div> </div> </article> </body> </html>
html
Dances of national identity (1800–1940) In Peru and Mexico, sonecitos del país became the signature expressions of the burgeoning mestizo (the varying blend of indigenous, European-derived, and African-derived) fiesta dances. In Lima, the capital of the Viceroyalty of Peru, the zamacueca became the reigning mestizo dance of the 19th century. Its Spanish influences included an upright body posture, the expressive use of a handkerchief, accompaniment by instruments of the guitar or harp families (or both), and the use of Spanish in the song texts. In the music accompanying the zamacuecas, indigenous influence was seen in the use of the minor mode, which was reminiscent of indigenous scales. Afro-Peruvian influences included swinging and circling hips, rib cage contractions, and the use of a cajón (a sizable wooden box struck with the hands) as an accompanying percussion instrument. As Andean republics broke from Spanish rule and formed their own identities, the zamacueca dance assumed new names. In Chile and Bolivia it was called la cueca, and in Argentina it was known as la zamba. In Peru the name was changed to la marinera in honour of the Peruvian navy (marina) and the heroes who had died in the horrendous battles along the border between Peru and Chile in the War of the Pacific (1879–83). In most variations of the zamacueca, both male and female dancers used a handkerchief to embellish the rhythmic arm gestures and to send messages to their partner. If the woman wanted to cool the passionate advances of her partner, she held the handkerchief in front of her face. If the man wanted to entice his partner, he draped the handkerchief over her shoulder and slowly slid it off. The zamacueca developed further during the time of the extensive travels associated with the California gold rush (1849 and a few years after that). The Mexican Pacific ports were stops for Chilean ships as they traveled north. Chilean sailors introduced the cueca chilena, which in Mexico was simply called la chilena, to the states of Oaxaca and Guerrero. The Mexican version, among others, suggested an amorous conquest of the rooster over the hen; the man’s red handkerchief symbolized the cock’s comb. As the dance progressed, the man indicated changes of direction to his partner by flipping his handkerchief with one hand. His other arm was held low to represent the wing of the rooster as he circled around the hen to take her under his wing (embrace her). The dance ended with a zapateado step that imitated the rooster scratching the ground for bugs. This motion was intended to persuade his partner to move closer to him so that he could conclude the conquest. The violin, guitar, cajón, and harp accompanied the Mexican chilenas. In other areas of Mexico during the middle of the 18th century, the sonecitos del país developed into sones and jarabes, the most famous of which was the jarabe nacional (which became Mexico’s official national dance in 1921). This is the dance known to many North Americans as the “Mexican hat dance,” but its name is properly translated as the “national dance of Mexico.”After Mexico gained independence from Spain in 1810, its regions independently developed son dance styles that were categorized as bailes regionales (regional dances). During fiestas on haciendas and ranches, a tarima (wooden platform) was constructed for son dancers. In Mexico City and Puebla, taverns became another context for playing and dancing sones; however, the Roman Catholic Church quickly condemned many of the early sones and jarabes for their sensuality. The Latin American dances-of-two that permitted couples to touch were patterned after the European waltz and polka, transformed by the imprint of the Afro-Latino population. Eventually this broad category included the habanera, milonga, maxixe, and danzón. Because pelvic movement was included, whether soft sways as in the Cuban danzón or body-to-body hip grinds and the enlacing of the legs as in the Brazilian maxixe, the early 20th-century couple dances were seen as both titillating and wicked.
english
Municipal Administration and Urban Development Minister KT Rama Rao on Thursday inaugurated the 2BHK housing units block at Old Marredpally here. Speaking on the occasion, the Minister said the dwellings being provided as part of State government’s flagship 2BHK housing initiative, would become enduring symbols of self-respect for the poorer sections of the society. Spread over a 5. 18 acre site, the housing cluster has 468 dwellings with each of the house units built with 560 sft at a cost of Rs. 7. 75 lakh. Rama Rao said the 5. 18 acre land parcel worth around Rs 350 crore was transferred to the Greater Hyderabad Municipal Corporation (GHMC) to built these housing units in 22 blocks at a total cost of Rs. 36. 27 crore and provide to the beneficiaries without charging a paisa. Around 2. 72 lakh 2BHK houses were being built with a cost of Rs. 18,000 crore to be handed over to the eligible beneficiaries. “On seeing these houses, people in other States are wishing that they too had a Chief Minister like ours,” he said. Animal Husbandry Minister T. Srinivas Yadav said a double bedroom in this area would cost anywhere up to Rs. 1. 2 crore. The beneficiaries here will also have no water bills and though it is located in Cantonment limits under the union government, the State government has decided to extend all possible benefits, he said. Ministers Ch Malla Reddy and Mahmood Ali along with Mayor G. Vijayalaxmi and others were present on the occasion.
english
<gh_stars>1-10 import { takeLatest, fork } from 'redux-saga/effects'; import { FOREGROUND } from 'app/middlewares/redux-event-listener'; function* foregroundHandler() { console.log('App is foreground'); // eslint-disable-line no-console } function* foregroundWatcher() { yield takeLatest( FOREGROUND, foregroundHandler, ); } function* main() { yield fork(foregroundWatcher); } export default main;
javascript
MI vs KKR will be a special match as MI gave free entry to about 19,000 kids from 36 NGOs. Later in the day, the 2022 winners Gujarat Titans and runners-up Rajasthan Royals will clash for the first time in IPL 2023. By India Today Sports Desk: In the IPL 2023 double-header, Mumbai Indians will host Kolkata Knight Riders while Gujarat Titans will welcome Rajasthan Royals on Sunday (April 16). The match between MI and KKR will begin at 3:30 PM IST at the Wankhede Stadium, while GT vs RR will commence at 7:30 PM IST at the Narendra Modi Stadium. The clash between Mumbai Indians and Kolkata Knight Riders will be a special one, at least for fans, as the stadium will have a full house after MI gave free entry to about 19,000 kids from 36 NGOs. Mumbai Indians, who sit in the ninth position, opened their account after winning their third game. On the other hand, fifth-placed KKR dropped their last match when it seemed their campaign was back on track. The 2022 winners Gujarat Titans and runners-up Rajasthan Royals will clash for the first time in IPL 2023. Both sides are currently tied on six points in the standings, with RR leading the table with healthier net run rate and GT occupying the third spot. GT and RR have dropped only one game each and will head into the match on the back of wins. MI vs KKR: Kolkata Knight Riders beat Mumbai Indians twice last season. GT vs RR: Gujarat Titans beat Rajasthan Royals thrice last season, including the final. MI vs KKR: Mumbai Indians lead Kolkata Knight Riders, 22-9. GT vs RR: Gujarat Titans lead Rajasthan Royals, 3-0, including the 2022 Final. MI vs KKR: If Jofra Archer, who missed the last match after picking up a niggle, is expected to miss the match against KKR. His absence could let Riley Meredith continue. On the other hand, KKR could miss the services of Andre Russell, who suffered cramps in the last game. Russell could potentially be replaced by David Wiese. GT vs RR: There are no known injuries in the GT camp. On the other hand, it is to be seen whether Trent Boult, who missed the last game due to a small niggle, returns or misses the match against GT. MI vs KKR: Only one match has been played at the Wankhede Stadium in TPL 2023 and spin played a massive role. With the game being in the afternoon, both sides would back their spinners to spin a web. GT vs RR: At the Narendra Modi Stadium, Ahmedabad, chasing sides have enjoyed more success. The conditions are expected to be batting friendly. MI: Rohit Sharma (c), Ishan Kishan (wk), Suryakumar Yadav, Tilak Varma, Cameron Green, Nehal Wadhera, Kumar Kartikeya, Riley Meredith, Arshad Khan, Piyush Chawla, Jason Behrendorff. KKR: Jason Roy, N Jagadeesan (wk), Nitish Rana (c), Rinku Singh, Sunil Narine, Shardul Thakur, David Wiese, Umesh Yadav, Suyash Sharma, Tim Southee, Varun Chakaravarthy. GT: Wriddhiman Saha (wk), Shubman Gill, Sai Sudharsan, Hardik Pandya (c), David Miller, Rahul Tewatia, Vijay Shankar, Rashid Khan, Alzarri Joseph, Mohammed Shami, Joshua Little. RR: Yashasvi Jaiswal, Jos Buttler, Sanju Samson (c/wk), Devdutt Padikkal, Shimron Hetmyer, Dhruv Jurel, Ravichandran Ashwin, Jason Holder, Kuldeep Sen, Sandeep Sharma, Yuzvendra Chahal.
english
It all happened in a Major League Cricket (MLC) fixture between San Francisco Unicorns and Seattle Orcas. It all happened in the Major League Cricket (MLC) on Sunday as San Francisco Unicorns' batter Finn Allen's bizarre run out became the talk of the town during the match against Seattle Orcas. The incident happened in the fourth over when Cameron Gannon bowled a delivery to Allen who tapped it towards short mid-wicket to steal a quick single. However, Allen took a casual stroll and Shehan Jayasuriya was alert to the situation as he picked up the ball and affected the run out, and caught the batter napping. Allen was in a state of disbelief after his brainfade moment cost him his wicket. Notably, he was batting on 29 off just nine deliveries. WHAT JUST HAPPENED!? Was this the only way Finn Allen could get out tonight? HEADS-UP play and a BEAUTIFUL throw from Shehan Jayasuriya! Speaking of the match, the Seattle Orcas won the toss and elected to bat first. The Orcas did not have the best start, losing the wicket of explosive opener Quinton de Kock (9) within the first two overs. Nauman Anwar and Shehan Jayasuriya steadied the ship with a partnership that saw them cross the 50-run mark within the first powerplay. However, Anwar's (30 in 21 balls with five fours) wicket fell right at the end of the first powerplay. Heinrich Klaasen came out to bat and along with Jayasuriya constructed a magnificent partnership that the Orcas reach 177/4 in their 20 overs. In reply, the San Francisco Unicorns for 142 runs within 18 overs. Klassen won the 'Player of the Match' award for his performances. (With ANI Inputs)
english
#include "CSM.h" void CSM::LogSmStateEvent(const char* state, uint32_t event) { printf("CurState:%s: event:%d tid:%d\n", state, event, gettid()); } void CSM::StateIdle::OnEnter() { printf("StateIdle::OnEnter\n"); } void CSM::StateIdle::OnExit() { printf("StateIdle::OnExit\n"); } bool CSM::StateIdle::ProcessEvent(uint32_t event, void* p_data) { LogSmStateEvent("StateIdle", event); switch (event) { case kEventA: { TransitionTo(kStateTrackingStopped); break; } case kEventB: { break; } case kEventC: { break; } case kEventD: case kEventE: { break; } default: { printf("invliad csm event\n"); break; } } return true; } void CSM::StateTrackingStopped::OnEnter() { printf("StateTrackingStopped::OnEnter\n"); } void CSM::StateTrackingStopped::OnExit() { printf("StateTrackingStopped::OnExit\n"); } bool CSM::StateTrackingStopped::ProcessEvent(uint32_t event, void* p_data) { LogSmStateEvent("StateTrackingStopped", event); switch (event) { case kEventA: { break; } case kEventB: { TransitionTo(kStateTrackingStarted); break; } case kEventC: { break; } case kEventD: case kEventE: { break; } default: { printf("invliad csm event\n"); break; } } return true; } void CSM::StateTrackingStarted::OnEnter() { printf("StateTrackingStarted::OnEnter\n"); } void CSM::StateTrackingStarted::OnExit() { printf("StateTrackingStarted::OnExit\n"); } bool CSM::StateTrackingStarted::ProcessEvent(uint32_t event, void* p_data) { LogSmStateEvent("StateTrackingStarted", event); switch (event) { case kEventA: { break; } case kEventB: { break; } case kEventC: { TransitionTo(kStateIdle); break; } case kEventD: case kEventE: { break; } default: { printf("invliad csm event\n"); break; } } return true; } CSM::CSM() { mStateIdle = new StateIdle(*this); mStateTrackingStopped = new StateTrackingStopped(*this); mStateTrackingStarted = new StateTrackingStarted(*this); AddState(mStateIdle); AddState(mStateTrackingStopped); AddState(mStateTrackingStarted); SetInitialState(mStateIdle); mHandlerThread = new HandlerThread(); status_t r = mHandlerThread->start("StateMachine.Test"); if (r != NO_ERROR) { printf("cannot start handler thread, error:%d\n", r); return; } } void CSM::injectEvent(CSMEvent event) { printf("inject event:%d tid:%d\n", event, gettid()); mHandlerThread->getLooper()->sendMessage(this, Message(event)); } void CSM::handleMessage(const Message& message) { ProcessEvent(message.what, nullptr); } void CSM::onFirstRef() { printf("onFirstRef\n"); } CSM::~CSM() { printf("~CSM\n"); mHandlerThread->quit(); }
cpp
An Old Woman's Will Once there lived an old woman. She lived with her three daughters. She was quite rich and had 19 camels. One day she fell ill. The daughters called the doctor. The doctor tried his best but could not save the woman. After her death, the daughters read what she had written in her will. My eldest daughter will get My second daughter will get My third daughter will get of my camels The daughters were really puzzled. "How can I get of the 19 camels?” asked the eldest daughter. "Half of 19 is nine and a half. But we can't cut the camel!" The second daughter said. “That is right. But what will we do now?" asked the third daughter”. Just then they saw their aunt coming. The daughters told her their problem. "Show me the will. I have an idea. You take my camel. So you have 20 camels. Now can you divide them as your mother wanted." the aunt said. "You want half of the camels, don't you? Take 10 camels,” she said to the eldest daughter. "Take your share," the aunt told the second daughter. She took one-fourth of the camels and got "You can take one-fifth of the camels", the aunt told the third daughter. She got and counted their camels10+_
english
A free program for Android, by OpenPlay Technologies Pvt. Ltd. A free app for Android, by GAME ESPORTS AND EVENTS LIMITED. A free program for Android, by iamSHANSHAN. A free app for Android, by funworld. NBA Live Mobile is a guaranteed slam dunk!
english
<reponame>RobotLocomotion/RobotLocomotion.github.io<filename>pydrake/pydrake.multibody.benchmarks.acrobot.html <!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>pydrake.multibody.benchmarks.acrobot &mdash; pydrake documentation</title> <link rel="stylesheet" href="_static/css/theme.css" type="text/css" /> <link rel="stylesheet" href="_static/css/custom.css" type="text/css" /> <link rel="index" title="Index" href="genindex.html"/> <link rel="search" title="Search" href="search.html"/> <link rel="top" title="pydrake documentation" href="index.html"/> <link rel="up" title="pydrake.multibody.benchmarks" href="pydrake.multibody.benchmarks.html"/> <link rel="next" title="pydrake.multibody.benchmarks.all" href="pydrake.multibody.benchmarks.all.html"/> <link rel="prev" title="pydrake.multibody.benchmarks" href="pydrake.multibody.benchmarks.html"/> <script src="_static/js/modernizr.min.js"></script> </head> <body class="wy-body-for-nav" role="document"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search"> <a href="index.html" class="icon icon-home"> pydrake </a> <div role="search"> <form id="rtd-search-form" class="wy-form" action="search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="pydrake.all.html">pydrake.all</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.autodiffutils.html">pydrake.autodiffutils</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.common.html">pydrake.common</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.examples.html">pydrake.examples</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.forwarddiff.html">pydrake.forwarddiff</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.geometry.html">pydrake.geometry</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.lcm.html">pydrake.lcm</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.manipulation.html">pydrake.manipulation</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.math.html">pydrake.math</a></li> <li class="toctree-l1 current"><a class="reference internal" href="pydrake.multibody.html">pydrake.multibody</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="pydrake.multibody.all.html">pydrake.multibody.all</a></li> <li class="toctree-l2 current"><a class="reference internal" href="pydrake.multibody.benchmarks.html">pydrake.multibody.benchmarks</a><ul class="current"> <li class="toctree-l3 current"><a class="current reference internal" href="#">pydrake.multibody.benchmarks.acrobot</a></li> <li class="toctree-l3"><a class="reference internal" href="pydrake.multibody.benchmarks.all.html">pydrake.multibody.benchmarks.all</a></li> </ul> </li> <li class="toctree-l2"><a class="reference internal" href="pydrake.multibody.inverse_kinematics.html">pydrake.multibody.inverse_kinematics</a></li> <li class="toctree-l2"><a class="reference internal" href="pydrake.multibody.math.html">pydrake.multibody.math</a></li> <li class="toctree-l2"><a class="reference internal" href="pydrake.multibody.optimization.html">pydrake.multibody.optimization</a></li> <li class="toctree-l2"><a class="reference internal" href="pydrake.multibody.parsing.html">pydrake.multibody.parsing</a></li> <li class="toctree-l2"><a class="reference internal" href="pydrake.multibody.plant.html">pydrake.multibody.plant</a></li> <li class="toctree-l2"><a class="reference internal" href="pydrake.multibody.tree.html">pydrake.multibody.tree</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="pydrake.perception.html">pydrake.perception</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.polynomial.html">pydrake.polynomial</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.solvers.html">pydrake.solvers</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.symbolic.html">pydrake.symbolic</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.systems.html">pydrake.systems</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.trajectories.html">pydrake.trajectories</a></li> <li class="toctree-l1"><a class="reference internal" href="pydrake.visualization.html">pydrake.visualization</a></li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="index.html">pydrake</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="index.html">Docs</a> &raquo;</li> <li><a href="pydrake.multibody.html">pydrake.multibody</a> &raquo;</li> <li><a href="pydrake.multibody.benchmarks.html">pydrake.multibody.benchmarks</a> &raquo;</li> <li>pydrake.multibody.benchmarks.acrobot</li> <li class="wy-breadcrumbs-aside"> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="section" id="module-pydrake.multibody.benchmarks.acrobot"> <span id="pydrake-multibody-benchmarks-acrobot"></span><h1>pydrake.multibody.benchmarks.acrobot<a class="headerlink" href="#module-pydrake.multibody.benchmarks.acrobot" title="Permalink to this headline">¶</a></h1> <dl class="class"> <dt id="pydrake.multibody.benchmarks.acrobot.AcrobotParameters"> <em class="property">class </em><code class="descclassname">pydrake.multibody.benchmarks.acrobot.</code><code class="descname">AcrobotParameters</code><a class="headerlink" href="#pydrake.multibody.benchmarks.acrobot.AcrobotParameters" title="Permalink to this definition">¶</a></dt> <dd><p>This class is used to store the numerical parameters defining the model of an acrobot with the method MakeAcrobotPlant(). Refer to this the documentation of this class’s constructor for further details on the parameters stored by this class and their default values.</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">The default constructor initializes the parameters in accordance to the <code class="docutils literal"><span class="pre">acrobot.sdf</span></code> file in this same directory. Therefore this file and <code class="docutils literal"><span class="pre">acrobot.sdf</span></code> MUST be kept in sync.</p> </div> <dl class="method"> <dt id="pydrake.multibody.benchmarks.acrobot.AcrobotParameters.__init__"> <code class="descname">__init__</code><span class="sig-paren">(</span><em>self: pydrake.multibody.benchmarks.acrobot.AcrobotParameters</em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pydrake.multibody.benchmarks.acrobot.AcrobotParameters.__init__" title="Permalink to this definition">¶</a></dt> <dd><p>This class is used to store the numerical parameters defining the model of an acrobot with the method MakeAcrobotPlant(). Refer to this the documentation of this class’s constructor for further details on the parameters stored by this class and their default values.</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">The default constructor initializes the parameters in accordance to the <code class="docutils literal"><span class="pre">acrobot.sdf</span></code> file in this same directory. Therefore this file and <code class="docutils literal"><span class="pre">acrobot.sdf</span></code> MUST be kept in sync.</p> </div> </dd></dl> </dd></dl> <dl class="function"> <dt id="pydrake.multibody.benchmarks.acrobot.MakeAcrobotPlant"> <code class="descclassname">pydrake.multibody.benchmarks.acrobot.</code><code class="descname">MakeAcrobotPlant</code><span class="sig-paren">(</span><em>default_parameters: pydrake.multibody.benchmarks.acrobot.AcrobotParameters</em>, <em>finalize: bool</em>, <em>scene_graph: pydrake.geometry.SceneGraph_[float] = None</em><span class="sig-paren">)</span> &#x2192; pydrake.multibody.plant.MultibodyPlant_[float]<a class="headerlink" href="#pydrake.multibody.benchmarks.acrobot.MakeAcrobotPlant" title="Permalink to this definition">¶</a></dt> <dd><p>This method makes a MultibodyPlant model of the Acrobot - a canonical underactuated system as described in &lt;a href=”<a class="reference external" href="http://underactuated.mit.edu/underactuated.html?chapter=3">http://underactuated.mit.edu/underactuated.html?chapter=3</a>”&gt;Chapter 3 of Underactuated Robotics&lt;/a&gt;.</p> <dl class="docutils"> <dt>Parameter <code class="docutils literal"><span class="pre">default_parameters</span></code>:</dt> <dd>Default parameters of the model set at construction. These parameters include masses, link lengths, rotational inertias, etc. Refer to the documentation of AcrobotParameters for further details.</dd> <dt>Parameter <code class="docutils literal"><span class="pre">finalize</span></code>:</dt> <dd>If <code class="docutils literal"><span class="pre">True</span></code>, MultibodyPlant::Finalize() gets called on the new plant.</dd> <dt>Parameter <code class="docutils literal"><span class="pre">scene_graph</span></code>:</dt> <dd>If a SceneGraph is provided with this argument, this factory method will register the new multibody plant to be a source for that geometry system and it will also register geometry for visualization. If this argument is omitted, no geometry will be registered.</dd> </dl> </dd></dl> </div> </div> <div class="articleComments"> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="pydrake.multibody.benchmarks.all.html" class="btn btn-neutral float-right" title="pydrake.multibody.benchmarks.all" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a> <a href="pydrake.multibody.benchmarks.html" class="btn btn-neutral" title="pydrake.multibody.benchmarks" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> </p> </div> </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'./', VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: false, SOURCELINK_SUFFIX: '.txt' }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> <script type="text/javascript" src="_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.StickyNav.enable(); }); </script> </body> </html>
html
<reponame>rycus86/demo-site<filename>tests/dockerhub_payload_without_description.json { "affiliation": "owner", "build_on_cloud": null, "can_edit": true, "description": "Grafana time series analytics software - grafana.com", "full_description": null, "has_starred": false, "is_automated": true, "is_private": false, "last_updated": "2017-08-12T19:40:14.356920Z", "name": "grafana", "namespace": "rycus86", "permissions": { "admin": true, "read": true, "write": false }, "pull_count": 106, "repository_type": "image", "star_count": 0, "status": 1, "user": "rycus86" }
json
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.calcite.rel.logical; public class JoinReorderContext { /** left deep */ private boolean hasCommute = false; private boolean hasTopPushThrough = false; /** zig-zag */ private boolean hasCommuteZigZag = false; /** bushy */ private boolean hasExchange = false; private boolean hasRightAssociate = false; private boolean hasLeftAssociate = false; public JoinReorderContext() {} void copyFrom(JoinReorderContext joinReorderContext) { this.hasCommute = joinReorderContext.hasCommute; this.hasTopPushThrough = joinReorderContext.hasTopPushThrough; this.hasExchange = joinReorderContext.hasExchange; this.hasLeftAssociate = joinReorderContext.hasLeftAssociate; this.hasRightAssociate = joinReorderContext.hasRightAssociate; this.hasCommuteZigZag = joinReorderContext.hasCommuteZigZag; } public void clear() { hasCommute = false; hasTopPushThrough = false; hasCommuteZigZag = false; hasExchange = false; hasRightAssociate = false; hasLeftAssociate = false; } public void avoidParticipateInJoinReorder() { hasCommute = true; hasTopPushThrough = true; hasCommuteZigZag = true; hasExchange = true; hasRightAssociate = true; hasLeftAssociate = true; } public boolean isHasCommute() { return hasCommute; } public void setHasCommute(boolean hasCommute) { this.hasCommute = hasCommute; } public boolean isHasTopPushThrough() { return hasTopPushThrough; } public void setHasTopPushThrough(boolean hasTopPushThrough) { this.hasTopPushThrough = hasTopPushThrough; } public boolean isHasExchange() { return hasExchange; } public void setHasExchange(boolean hasExchange) { this.hasExchange = hasExchange; } public boolean isHasRightAssociate() { return hasRightAssociate; } public void setHasRightAssociate(boolean hasRightAssociate) { this.hasRightAssociate = hasRightAssociate; } public boolean isHasLeftAssociate() { return hasLeftAssociate; } public void setHasLeftAssociate(boolean hasLeftAssociate) { this.hasLeftAssociate = hasLeftAssociate; } public boolean isHasCommuteZigZag() { return hasCommuteZigZag; } public void setHasCommuteZigZag(boolean hasCommuteZigZag) { this.hasCommuteZigZag = hasCommuteZigZag; } }
java
The Federal Trade Commission has sued to block Procter & Gamble’s acquisition of Billie, a NY-based startup that sells razors and body wash. In the notice, the FTC alleged that the merger would “eliminate innovative nascent competitors for wet shave razors” to the loss of consumers. Billie was founded in 2017 with the goal of fighting the “pink tax” on goods marketed to women, including razors and body wash. It went up against companies like P&G and Edgewell Personal Care by offering high-quality and cheap razors. The company announced its intent to be acquired by P&G after raising just $35 million in venture capital in June. “As its sales grew, Billie was likely to expand into brick-and-mortar stores, posing a serious threat to P&G. If P&G can snuff out Billie’s rapid competitive growth, consumers will likely face higher prices,” Ian Conner, director of the FTC’s Bureau of Competition said in a statement. P&G has been on a buying spree as of late. Along with the Billie news, Procter & Gamble acquired Walker & Company, which created Bevel, a grooming line for men of color, and Form, a hair-care line for women of color. In February 2019, P&G announced plans to acquire This is L, a feminine-care brand that sells tampons, pads and wipes. If the FTC wins, this is another blow for direct-to-consumer brands on the base of competition dynamics. In May 2019, Edgewell Personal Care announced it intended to buy Harry’s, another direct-to-consumer shaving brand. In February 2020, the FTC filed a lawsuit to block the deal from happening, similarly citing how the deal would limit competition and innovation in the razor market. Unlike Harry’s, Billie was bought before it broke into brick-and-mortar retail stores. If the deal doesn’t close, Billie lost precious time it could have used to expand into new locations and markets — and P&G will lose some of its competitive advantage in the women’s shaving world. Harry’s and Billie’s blocks could negatively trickle down to hurt direct-to-consumer products looking at health and wellness more broadly. Note that exit market isn’t as dull for all companies in the consumer packaged goods (CPG) world. We’ve seen deals close like Blue Bunny’s buy of Halo Top, Mars’ acquisition of Kind Bars and, of course, Unilever’s $1 billion acquisition of Dollar Shave Club. Andrea Hernández, a founder and consultant on food and beverage CPG, says that DTC companies often need to partner with mega-businesses to get the distribution scale they need, focusing more on omni-channel presence versus a single seller point. That said, the coronavirus has even impacted food CPG companies by forcing them to slash SKUs (or stock keeping units) and prioritize essential goods. Whereas before, CPG companies might stock a variety of goods for a variety of customer needs, they’re now prioritizing a smaller slice of the pie to manage uncertainty among consumer behavior. Long-term, this means that CPGs might be buying fewer of the Billies and Harry’s of the world and just focusing on what’s working now. Regardless of how this plays out, today’s news shows that the FTC is paying more attention than ever to consumer and tech.
english
Salad with pasta - a popular Western European snack, has achieved the location and the Slavic inhabitants. Fans of versatility, they appreciated the carbohydrate basis, the company of vegetables and meat, and savory dressing, the final dish. Such food is a gift to fans of hearty breakfasts, simple office snacks and dinners in a hurry. Italian salad with pasta and ham is a recipe created based on the popular worldwide paste of the Carbonara. Using traditional components in a cold form, not only opened new flavors, but also pleasantly please the speed of cooking. You can combine classics and modernity, and the dish will get a new life. Ingredients: - "Bows" - 400 g; - ham - 300 g; - canned corn - 200 g; - mayonnaise - 190 g; - a handful of green onions; - crushed cheese - 180 g. - The first ingredient from the list is boiled. - Slice the ham into thin slices. - Combine all the ingredients and season, decorating the salad with pasta-bows with a handful of greens. Salad with tuna and pasta is a recipe that connected the three bases of proper nutrition. Solid wheat varieties and fish useful for their composition not only saturate, but also enrich the human body with an abundance of protein. Such food will be reinforced after training, will please the schoolboy at lunch time and will supplement the menu of losing weight. Use only pieces of pulp in your own juice. Ingredients: - sweet pepper - 1 piece; - tomatoes - 2 pcs . ; - red onions -1 pc . ; - canned tuna - 200 g; - oil - 50 ml; - lemon juice - 30 ml; - mustard - 1 teaspoon; - wine vinegar - 20 ml; - honey - 1 teaspoon; - "Spiral" - 400 g. - Dice the first four from the list. - Whip all liquid for refilling. - Cooked spirals, combine with sauce, fish and pieces of onion, pepper, tomatoes, mix and serve. Salad with fried pasta - an original snack, for those who are not used to spending time near the stove. Enough frying pan, a little water, a product of durum wheat - and a couple of minutes the base base is ready. Smartness will help to bring the matter to the end: add the favorite additions to the same frying pan, mix and fully dine. Ingredients: - "Tubules" - 250 g; - water - 500 ml; - dried canned tomatoes - 8 pcs . ; - purified cucumber - 1 piece; - red onions - 1 pc . ; - handful of parsley; - olive oil - 70 ml; - wine vinegar - 20 ml; - honey - 1 tsp. - First ingredient from the list, fry in a frying pan until golden, pour in a little water and hold for about 7 minutes on fire. Water must be absorbed into the product. - Slice the hard ingredients and combine them with the prepared ones. - Mix the fluids and pour into a warm base. - This version of the salad with pasta requires immediate filing. Salad with pasta and meat - a pleasant gastronomic surprise for the ghosts. Eye-catching foods that existed separately from each other, combined and created a nutritious and original food. A small portion will not only reinforce for the whole day, but will also provide all useful. This dish is proof of the correct food neighborhood. Ingredients: - fusilli - 300 g; - boiled chicken fillet - 150 g; - bacon - 80 g; - tomato - 1 pc . ; - handfuls of arugula; - vegetable oil - 70 ml; - lemon juice - 30 ml; - a pinch of black pepper. - Meat products, tomatoes, greens, cut, according to personal preferences. - Make the sauce by combining all the liquids together. - Cook the pasta. - Join the workpieces and, generously refueling, treat your loved ones. Even a banal dish - a salad of pasta with vegetables, will become a royal meal at a festive feast, if you trust your intuition and imagination. Bake your favorite vegetables, mix with a neutral base in the form of pasta from hard varieties, and soaked with aromatic juices dish, deservedly elevates you to the category of skillful cooks. Out of season you can use frozen assortment. Ingredients: - cherry tomatoes - 10 pieces; - zucchini - 1 piece; - sweet pepper - 1 piece; - "Spiral" - 250 g; - vegetable oil - 80 ml; - wine vinegar - 20 ml; - a pinch of dried basil. - Tomatoes, zucchini and peppers, cut, season and place in the oven at medium temperature for a quarter of an hour. - Cool and combine with boiled spirals. - Smear with a filling mixture of the last three components. By the way, instead of dried basil, you can add to the filling of a ready mix of Italian herbs. - Leave the salad with pasta soak. The pasta salad is a recipe, thanks to which the careful housewives can use the meat remnants with profit. Clear technology does not exist - everything that was at hand, sent to a snack. This approach not only saves podnadoevshie products, which did not find any other application, but also allow you to create a menu yourself. Ingredients: - fetuchini - 300 g; - smoked sausage - 120 g; - sweet pepper - 1 piece; - tomatoes - 1 pc . ; - olive oil - 60 ml; - lemon juice - 30 ml; - a handful of fresh dill. - Salad with pasta implies a base of pasta, so cooked "spirals" will be appropriate. - Cut the smoked meat, peppers and tomatoes in an arbitrary manner, mix with "spirals. " - From the liquid components, make the sauce and season the food immediately before serving. Salad with pasta and seafood - a return to Italian traditions. Shrimp, pasta and fragrant vegetables convey not only the palatable scale, but also the spirit of the sunny country. A popular Mediterranean masterpiece is akin to a high-end restaurant cuisine. Try to create it in your home, and this dietary snack will become a frequent guest of family feasts. Ingredients: - paste curly - 300 g; - shrimp - 200 g; - cherry tomatoes - 10 pcs . ; - sweet pepper - 1 piece; - oil - 40 ml; - lemon juice - 20 ml; - hard cheese - 120 g; - handful of parsley. - Cook the pasta until cooked, peel and cook the shrimp. - Cut the vegetables into slices and mix with the finished products. - For filling, whip the emulsion from butter and citrus juice. - Combine the finished ingredients and finish the salad with colored pasta grated cheese and greens. Salad with pasta and fish - the opportunity to spend time in the kitchen. After all, such food is an appropriate alternative to high-calorie fish sandwiches. Change the baked bread on a basis of durum wheat, caloric animal fat for natural sauce, and a universal snack created in a few minutes will amaze not only the appearance, but also the benefit. Ingredients: - pasta penne - 200 g; - slightly salted salmon - 150 g; - a bunch of basil; - olive oil - 70 ml; - garlic - 2 teeth; - pine nuts - 50 g; - Parmesan - 50 g. - Welded penne with fish cut into thin slices. - The remaining products are ground in a blender and mixed with previously prepared. - Pesto sauce, made at home, will add a salad with pasta spices.
english
<gh_stars>0 import template from './sw-version.html.twig'; import './sw-version.scss'; const { Component } = Shopware; /** * @private * @description Shows the header in the administration main menu * @status ready * @example-type static * @component-example * <div style="background: linear-gradient(to bottom, #303A4F, #2A3345); padding: 30px;"> * <sw-version class="collapsible-text"></sw-version> * </div> */ Component.register('sw-version', { template, computed: { version() { const version = Shopware.Context.config.version; const match = version.match(/(\d+\.?\d+?\.?\d+?)-?([a-z]+)?(\d+(.\d+)*)?/i); if (match === null) { return version; } let output = `v${match[1]}`; if (match[2]) { output += ` ${this.getHumanReadableText(match[2])}`; } else { output += ' Stable Version'; } if (match[3]) { output += ` ${match[3]}`; } return output; } }, methods: { getHumanReadableText(text) { if (text === 'dp') { return 'Developer Preview'; } if (text === 'rc') { return 'Release Candidate'; } if (text === 'dev') { return 'Developer Version'; } if (text === 'ea') { return 'Early Access'; } return text; } } });
javascript
<reponame>zburke/ui-inn-reach .mbSm { margin-bottom: 1rem; } .mbMd { margin-bottom: 2rem; }
css
Former India seamer Venkatesh Prasad gave a tour of MS Dhoni’s massive bike collection at his Ranchi farmhouse. Prasad shared a video of former India skipper MS Dhoni’s huge garage, which is fill with bikes and vintage cars. In an almost two minutes long video, Prasad was seen with former India selector Sunil Joshi, with MS Dhoni’s wife Sakshi doing the camera duty at Dhoni’s farmhouse in Ranchi. “One of the craziest passion i have seen in a person. What a collection and what a man MSD is . A great achiever and a even more incredible person. This is a glimpse of his collection of bikes and cars in his Ranchi house. Just blown away by the man and his passion @msdhoni,” tweeted Prasad. Prasad replied: “Amazing! No, not all (not my first time in Ranchi). It’s my fourth time, but this place (MS Dhoni’s bike collection) is crazy. During the conversation Venkatesh Prasad said unless and until someone is mad about this, you can’t have these many bikes. “Bike showroom ho sakta hay yeh (This can be a bike showroom). Someone needs to have a hell of a lot of passion to have something else, I’m telling you. Unless and until someone is mad about this, you can’t (have these many bikes),” said Prasad. “I would say mad,” said Sakshi. The video ended with MS Dhoni’s friend narrating a story about MS Dhoni’s first bike, how they used to ran out of the fuel and then used to call someone at home, who used to bring fuel in the car.
english
<filename>AWS/saa/zh/q-054.json<gh_stars>0 { "Update": "2020-03-23 15:28:16", "answer": [ "C" ], "category": "saa", "choices": [ "A.在公共子网中配置 NAT 网关, 并通过Nat网关将所有流量路由到 Amazon Kinesis 。", "B.为 Kinesis 配置 Gateway VPC 端点网关, 并通过 Gateway VPC 端点将所有流量路由到 Kinesis 。", "C.为 Kinesis 配置接口 VPC 端点接口, 并通过接口 VPC 端点将所有流量路由到 Kinesis 。", "D.为 Kinesis 配置 AWS Direct Connect 专用虚拟接口, 并通过虚拟接口将所有流量路由到 Kinesis 。" ], "detail": "应用程序正在私有子网中的 Amazon EC2 实例上运行。应用程序需要将数据读写到 Amazon Kinesis Data Streams, 公司政策要求此流量不应进入internet。如何满足这些要求?", "explanation": [ "正确答案是C, 因为接口 VPC 端点允许从私有子网中的实例访问kinesis数据流, 而无需通过internet路由流量。", "参考 AWS 文档- AWS Kinesis 和接口 VPC Endpoints ", "您可以使用接口 VPC 端点保持 Amazon VPC 和 Kinesis Data Streams 之间的通信量不离开 Amazon 网络。接口 VPC 端点不需要internet网关、 NAT 设备、 VPN 连接或 AWS Direct Connect 连接。接口 VPC 端点由 AWS PrivateLink提供支持, PrivateLink是一种 AWS 技术, 可通过弹性网络接口与 Amazon VPC 中的专用IP实现 AWS 服务之间的专用通信。" ], "id": 54, "saved_answer": "0010", "type": "Multiple Choice" }
json
{"id": 4984, "url": "http://proxy-pubminefi.diffusion.finances.gouv.fr/pub/document/18/15744.pdf", "author": null, "title": "NOTE AUX REDACTIONS - Déplacement de <NAME> au centre des finances publiques de Melun", "text": " \n \n \n<NAME> \nMINISTRE DELEGUE AUPRES DU MINISTRE DE L’ECONOMIE ET DES FINANCES, \nCHARGE DU BUDGET \n \nN o t e a u x r é d a c t i o n s \nN o t e a u x r é d a c t i o n s \nwww.economie.gouv.fr \nParis, le 11 septembre 2013 \nN° 796 \n \n \n \nDéplacement de <NAME> au centre des finances publiques \nde Melun \n \n \<NAME>, ministre délégué chargé du Budget, se rendra jeudi 12 septembre à la \nrencontre des usagers, des agents et des représentants des organisations syndicales du centre \ndes finances publiques de Melun. Il s’entretiendra avec les agents de la démarche de \nmodernisation de la direction générale des finances publiques (DGFIP), et de ses efforts constants \nvisant à rendre un meilleur service aux usagers, notamment en matière fiscale. Il échangera \négalement avec les contribuables présents. \n \nProgramme du déplacement accessible à la presse : \n \nDe 15h25 à 15h45 : Visite du Service des Impôts des Particuliers (SIP), échange avec les agents \nd’accueil et les usagers. \nDe 16h30 à 17h: Allocution de <NAME> à l’ensemble des agents du centre des \nfinances publiques, suivi d’un échange avec la presse. \n \nCes deux moments, accessibles aux journalistes, seront entrecoupés d’un échange entre Bernard \nCAZENEUVE et les cadres et agents du Service des Impôts des Particuliers (SIP) et du Service \ndes Impôts des Entreprises (SIE), entre 15h45 et 16h30. \n \n \nLieu du rendez-vous : Cité administrative, 20, quai Hippolyte Rossignol, Melun. \n \n \n \n \nAccréditation des journalistes auprès du service communication de la préfecture de Seine-et-Marne. \n<NAME> - 01 64 71 75 29 - <EMAIL> \n \n \n \n \n \nContact presse : \nCabinet de Bernard CAZENEUVE : 01 53 18 43 08 \n", "published_date": "2013-09-11", "section": "Communiques"}
json
India vs Pakistan - that is one cricket rivalry which throws up many stories that have the potential to become folklores. Virender Sehwag and Shoaib Akhtar are part of that cricket rivalry. While one was an ace opener, who changed the definition of batting at the top in Indian cricket, the other was one of the fastest bowlers that the world has ever seen. The two were fiercely competitive on the field, while off the field they shared a great friendship. They often indulged in banter too. A new episode that been added to that relationship. "You guys indulge in lot of banter. Is there any friendship under this banter?" Sehwag was asked on Breakfast With Champions. "Where there is love, there is banter or where there is friendship. With Shoaib Akhtar I have deep friendship since 2003-04. We have gone there twice, they have come twice. There's friendship and we pull each other's leg too. He made a statement. I have more notes than the amount of hair strands Virender Sehwag has on his head. Now My hair strands are more than your notes. That tagline would be cool for 'Breakfast With Champions'." The Indian Premier League (IPL) 2023 final turned out to be a sporting spectacle that saw Ravindra Jadeja score 10 runs from the final two balls of the match, taking Chennai Super Kings across the line. The final over of the match was all going as per plan for GT, with Mohit Sharma conceding just 3 runs from the first 4 balls. However, the veteran pacer's rhythm seems to have been shaken a bit following a brief chat with skipper Hardik Pandya, which former India cricketer Virender Sehwag wasn't pleased to see. In a chat on Cricbuzz, Sehwag lambasted Hardik for his decision to intervene despite Mohit managing to execute plans to perfection. "When some is bowling well and is delivering with yorkers, why will you go and have a word with him? He knows that the batter needs 10 from 2 and that he needs to stick with yorkers. Then why will you waste his time? Had Mohit been hit for runs, then he could have gone and had a word, but when the bowler is doing his job you want to get done with the over quickly. "It also could be that the captain might have come with a concern about whether the bowler would want any changes in the field for the last two balls. But still, if I would have been there, I wouldn't have disturbed him," Sehwag said after the match.
english
{ "latest_version": [ "0.4.4" ], "meta": { "description": "Port of the original facebook sdk <https://github.com/pythonforfacebook/facebook-sdk>to use geventhttpclient <https://github.com/gwik/geventhttpclient>This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement Facebook authentication", "homepage": "https://github.com/jneight/geventhttplib-facebook", "license": "Apache" }, "versions": { "0.4.4": { "sha256": "37b055a8b0fd2605058623254875de373b9e33ec9c7f1877c8a0455fd42410fc", "url": "https://files.pythonhosted.org/packages/f0/ec/5d6d4741f1fe1b4adf7918596e6ce1aca421d511b2018a463f0534c25bfd/geventhttpclient-facebook-0.4.4.tar.gz" } } }
json
<reponame>MYHUNBT/JavaSECode<gh_stars>1-10 package day11.classMember; /** * @author liuboting * @date 2020/7/25 13:58 */ public class Test { public static void main(String[] args) { Role role1 = new Role(0001, 100, "lbt"); Weapon weapon = new Weapon("98k", 66); Armour armour = new Armour("三级甲", 80); role1.setWeapon(weapon); role1.setArmour(armour); role1.attack(); role1.wear(); } }
java
Tura, Oct 17: Meghalaya Police on Tuesday arrested two persons, who had allegedly stolen Rs 25 lakh from a bank official in Tura. The duo had looted Richard Marak while he was repairing the punctured tyre of his vehicle (ML-08B 2526) in front of Tura Post Office, near the SBI main branch of West Garo Hills around 2:55 pm. The police recovered the stolen amount of Rs 25 lakh from the duo who were arrested from Phulbari town, about 106 km from Tura in West Garo Hills. Following the complaint filed by Marak, who works at Gambegre SBI branch, the police immediate began its raid across West Garo Hills. The police said their action began with basic lead of two people riding a black motorbike (Bajaj Pulsar) with two bags seen proceeding towards Tura Super Market and one of them wearing a black t-shirt while the other wearing a blue t-shirt. “We formed teams, including ka teams headed by gazetted officers and all the police stations were alerted to intercept the bike that was proceeding towards Garobadha. Also all neighbouring districts along the Assam-Meghalaya were informed,” West Garo Hills Superintendent of Police (SP) Raghuvendra Kumar said. He said based on “credible source information” all teams of the police were instructed to intercept the bike in which two persons were riding along with the bag. “After a thorough search was conducted and based on credible source information and corroborated technical inputs, the two persons were arrested from one passenger boat that was proceeding from Phulbari to Dhubri in the middle of Jhinjiram river on Meghalaya side,” said Kumar. The bike (AS01DE 9083) that was used to commit the crime was also recovered. The accused have been identified as Anurag Singh (27) from lslampur in West Bengal, while the other is a juvenile.
english
<filename>composer.json { "name": "andikabahari/query-builder", "description": "Make your SQL query with OOP style", "license": "MIT", "autoload": { "psr-4": {"QueryBuilder\\": "src/"} } }
json
<reponame>hltfbk/E3C-Corpus { "authors": [ { "author": "<NAME>" }, { "author": "<NAME>" }, { "author": "<NAME>" } ], "doi": "10.1186/1754-9493-5-25", "publication_date": "2011-10-18", "id": "EN117118", "url": "https://pubmed.ncbi.nlm.nih.gov/21999783", "source": "Patient safety in surgery", "source_url": "", "licence": "CC BY", "language": "en", "type": "pubmed", "description": "", "text": "A man struck by a motor vehicle suffered multiple traumatic injuries including numerous rib fractures, a mechanically unstable pelvic fracture, and also had suspicion for an aortic injury. Unfortunately, the upper thoracic segment (T1-5) was only visualized with axial images based on the electronic data. Several days later, a contrast CT scan obtained to check the status of suspected aortic injury revealed T3-T4 subluxation indicative of an unstable extension-type fracture in the setting of DISH. Due to the missed injury and delay in diagnosis, surgery was not performed until eight days after the injury. At surgery, the patient was found to have left T3-T4 facet joint infection as well as infected hematoma surrounding a left T4 transverse process fracture and a traumatic T4 costo-transverse joint fracture-subluxation. Despite presence of infection, an instrumented posterior spinal fusion from T1-T6 was performed and the patient recovered well after antibiotic treatment." }
json
<gh_stars>1-10 ''' BSD 3-Clause License Copyright (c) 2022, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ''' import math import numpy as np def combine_piecewise_functions(Fa, Fb, LFa, LFb): ''' Join two piecewise functions to create one piecewise function ecompassing the ranges and polynomials associated with each ''' functions = [Fa,Fb] LF = [LFa, LFb] # Gather the ranges for each piece of the the two input functions ab = [] for func in Fa: ab.append(func[1][0]) ab.append(func[1][1]) for func in Fb: ab.append(func[1][0]) ab.append(func[1][1]) ab = list(set(ab)) ab.sort() f_out = [] for i, j in enumerate(ab): if i == 0: piece_range = [0, j] else: piece_range = [ab[i-1], j] if piece_range == [0, 0]: pass else: f = [] for i,func in enumerate(functions): for piece in func: if piece[1][0] < piece_range[1] and piece[1][1] >= piece_range[1]: eq_len_delta = len(piece[0]) - len(f) # difference in number of coefficients if eq_len_delta > 0: f.extend([0]*eq_len_delta) elif eq_len_delta < 0: piece[0].extend([0]*abs(eq_len_delta)) else: pass f = [j*LF[i] + k for j,k in zip(piece[0], f)] else: pass f_out.append([f,piece_range]) return f_out def poly_eval(c_list,x): ''' evaluate a polynomial defined by a list of coeff. in ascending order C0 + C1x + C2x^2 + ... + Cnx^n = [C0,C1,C2,...,Cn] ''' i = 0 res=0 if all(c == 0 for c in c_list): pass else: for c in c_list: res = res + c*math.pow(x,i) i+=1 return res def eval_piece_function(piece_function, x): ''' Given a peicewise function and an x evaluate the results ''' # in the context of the beam model a tolerance of 1E-6 will # yield acceptable results as we are evaluating normal polynomials tol = 0.000001 # initialize res to avoid an ref before assignment error in # the case where the below reaches pass for all conditions. res = 0 if piece_function == []: res = 0 else: for line in piece_function: if (line[1][0]-tol) < x <= (line[1][1]+tol): res = poly_eval(line[0], x) else: # x is not in the current functions range pass return res def roots_piecewise_function(piece_function): ''' Given a piecewise function return a list of the location of zeros or sign change ''' zero_loc = [] i=0 for line in piece_function: if len(line[0]) == 1 and i==0: pass # If function is a value then there is no chance for a sign change else: a = poly_eval(line[0], line[1][0]+0.0001) # value at start of bounds b = poly_eval(line[0], line[1][1]-0.0001) # value at end of bounds if a==0: zero_loc.append(line[1][0]) elif b==0: zero_loc.append(line[1][1]) else: # if signs are the the same a/b will result in a positive value coeff = line[0][::-1] c = np.roots(coeff) # Some real solutions may contain a very small imaginary part # account for this with a tolerance on the imaginary # part of 1e-5 c = c.real[abs(c.imag)<1e-5] for root in c: # We only want roots that are with the piece range if line[1][0] < root <= line[1][1]: zero_loc.append(root) else: pass if i==0: pass else: d = poly_eval(piece_function[i-1][0], line[1][0]-0.0001) # value at end of previous bounds if d == 0: pass elif a/d < 0: zero_loc.append(line[1][0]) else: pass i+=1 zero_loc = sorted(set(zero_loc)) return zero_loc
python
<gh_stars>10-100 /** * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.aurora.scheduler.async; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ScheduledExecutorService; import com.google.common.base.Throwables; import com.google.common.util.concurrent.ThreadFactoryBuilder; import org.apache.aurora.common.quantity.Amount; import org.apache.aurora.common.quantity.Time; import org.apache.aurora.common.testing.easymock.EasyMockTest; import org.easymock.EasyMock; import org.easymock.IExpectationSetters; import org.junit.Before; import org.junit.Test; import static org.easymock.EasyMock.expectLastCall; import static org.junit.Assert.assertEquals; public class GatingDelayExecutorTest extends EasyMockTest { private static final Amount<Long, Time> ONE_SECOND = Amount.of(1L, Time.SECONDS); private ScheduledExecutorService gatedExecutor; private Runnable runnable; private GatingDelayExecutor gatingExecutor; @Before public void setUp() { gatedExecutor = createMock(ScheduledExecutorService.class); runnable = createMock(Runnable.class); gatingExecutor = new GatingDelayExecutor(gatedExecutor); } @Test public void testGateOpen() { gatedExecutor.execute(runnable); control.replay(); // The gate was not closed, so the work is executed immediately. gatingExecutor.execute(runnable); } private IExpectationSetters<?> invokeWorkWhenSubmitted() { return expectLastCall().andAnswer(() -> { ((Runnable) EasyMock.getCurrentArguments()[0]).run(); return null; }); } @Test public void testGateIsThreadSpecific() throws InterruptedException { gatedExecutor.execute(runnable); control.replay(); CountDownLatch gateClosed = new CountDownLatch(1); CountDownLatch unblock = new CountDownLatch(1); Runnable closer = () -> gatingExecutor.closeDuring(() -> { gateClosed.countDown(); try { unblock.await(); } catch (InterruptedException e) { throw Throwables.propagate(e); } return "hi"; }); new ThreadFactoryBuilder() .setDaemon(true) .setNameFormat("GateTest") .build() .newThread(closer) .start(); gateClosed.await(); gatingExecutor.execute(runnable); assertQueueSize(0); unblock.countDown(); } private void assertQueueSize(int size) { assertEquals(size, gatingExecutor.getQueueSize()); } @Test public void testReentrantClose() { gatedExecutor.execute(runnable); expectLastCall().times(3); control.replay(); gatingExecutor.execute(runnable); assertQueueSize(0); String result = gatingExecutor.closeDuring(() -> { gatingExecutor.execute(runnable); assertQueueSize(1); String result1 = gatingExecutor.closeDuring(() -> { gatingExecutor.execute(runnable); assertQueueSize(2); return "hello"; }); assertEquals("hello", result1); return "hi"; }); assertEquals("hi", result); assertQueueSize(0); } @Test public void testExecute() { gatedExecutor.execute(runnable); invokeWorkWhenSubmitted(); runnable.run(); expectLastCall(); control.replay(); gatingExecutor.execute(runnable); } @Test public void testExecuteAfterDelay() { gatedExecutor.schedule( runnable, ONE_SECOND.getValue().longValue(), ONE_SECOND.getUnit().getTimeUnit()); invokeWorkWhenSubmitted(); runnable.run(); control.replay(); gatingExecutor.execute(runnable, ONE_SECOND); } }
java
#include <Rcpp.h> using namespace Rcpp; // [[Rcpp::export]] RObject ErrorForecast(SEXP data_forecast, SEXP centers_) { Rcpp::NumericMatrix data_f(data_forecast); Rcpp::List centers(centers_); NumericMatrix result = NumericMatrix(centers.size(), data_f.cols()); for (int i = 0; i < result.rows(); i++) { NumericVector centers_i(centers[i]); for (int j = 0; j < result.cols(); j++) { double v = 0; for (int t = 0; t < centers_i.size(); t++) { v += data_f(centers_i[t], j); } v /= centers_i.size(); result(i,j) = v; } } return result; } void R_init_TimeSeriesForecast(DllInfo* info) { R_registerRoutines(info, NULL, NULL, NULL, NULL); R_useDynamicSymbols(info, TRUE); }
cpp
New Delhi, Sep 10 : Income Tax officials visited the offices of few news portals to conduct 'surveys' on Friday. Notably, the IT department clarified that these visits are being carried out to conduct 'surveys' and not 'raids'. Accordingly, the IT officials visited the offices of news portals NewsClick and Newslaundry to conduct surveys. People in the know of the developments said that the 'survey' operations are being conducted to verify certain tax payment details of these organisations.
english
{ "$schema": "https://schema.lowcodeunit.com/schemas/latest/InfrastructureApplicationSeedOption.json#", "Name": "<NAME>", "Description": "Start from a fathym forecast seed.", "ImageSource": "https://fathym.com/wp-content/uploads/2018/03/Fathym-Logo_Registered_xxsm.png", "SeedFork": { "Repository": "fathym-forecast", "Organization": "habistack" }, "Commands": [] }
json
The top court said failure to follow these directives would entail disciplinary action and proceedings for contempt of court. The Supreme Court on Tuesday said that a public servant cannot be arrested immediately after a complaint is filed against him under the Scheduled Castes and the Scheduled Tribes (Prevention of Atrocities) Act, PTI reported. In a move aimed at curbing the alleged misuse of the Act, the top court said an officer not below the rank of deputy superintendent must conduct a preliminary inquiry before a public servant is taken into custody. A bench of Justices Adarsh Goel and UU Lalit added that there shall be no absolute prohibition on granting anticipatory bail to public servants booked under the Act. The bench said that the public servant can be arrested only after the authority, which has appointed him, approves it. If the accused is not a public servant, he can be arrested after the senior superintendent of police of the district concerned grants permission, Bar and Bench reported. The Supreme Court added that failure to follow these directives would entail disciplinary action and proceedings for contempt of court, Live Law reported.
english
<reponame>llcwz/yunzhi<gh_stars>1-10 package com.union.yunzhi.yunzhi.activities.communication; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.os.Build; import android.support.annotation.RequiresApi; import android.support.design.widget.AppBarLayout; import android.support.v7.graphics.Palette; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; import android.text.TextUtils; import android.util.Log; import android.view.View; import android.view.Window; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; import com.union.yunzhi.common.app.ActivityM; import com.union.yunzhi.common.util.LogUtils; import com.union.yunzhi.common.widget.MyAdapter; import com.union.yunzhi.factories.moudles.classfication.CustomLinearLayoutManager; import com.union.yunzhi.factories.moudles.communication.CommentModel; import com.union.yunzhi.factories.moudles.communication.CommunicationConstant; import com.union.yunzhi.factories.moudles.communication.PostModel; import com.union.yunzhi.factories.moudles.me.CommentMeModel; import com.union.yunzhi.factories.moudles.me.UserModel; import com.union.yunzhi.yunzhi.R; import com.union.yunzhi.yunzhi.adapter.CommentAdapter; import com.union.yunzhi.yunzhi.adapter.PostAdapter; import com.union.yunzhi.yunzhi.communicationutils.CommentUtils; import com.union.yunzhi.yunzhi.communicationutils.LikeUtils; import com.union.yunzhi.yunzhi.fragment.communication.CommentDialogFragment; import com.union.yunzhi.yunzhi.manager.UserManager; import com.union.yunzhi.yunzhi.meutils.MeUtils; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import de.hdodenhof.circleimageview.CircleImageView; public class PostDetailsActivity extends ActivityM implements View.OnClickListener, CommentDialogFragment.OnGetCommentContentListener, CommentAdapter.OnReplyListener{ private static final String TAG = "PostDetailsActivity"; private UserManager mUserManager; private UserModel mUser; private PostModel mPostModel; private CommentAdapter mAdapter; private AppBarLayout mAppBar; private Toolbar mToolbar; private CircleImageView mIcon; private TextView mAuthor; private TextView mTime; private TextView mContent; private TextView mNoComment; private RecyclerView mRecyclerView; private ImageView mLike; // 点赞图标 private TextView mLikeCounts; // 点赞数 private ImageView mSendComment; // 发送评论 public static void newInstance(Context context, PostModel postModel) { Intent intent = new Intent(context, PostDetailsActivity.class); intent.putExtra(TAG, postModel); context.startActivity(intent); } @Override protected int getContentLayoutId() { return R.layout.activity_communication_post_details; } @Override protected void initWidget() { mUserManager = UserManager.getInstance(); mUser = MeUtils.getUser(); mPostModel = getIntent().getParcelableExtra(TAG); mAppBar = (AppBarLayout) findViewById(R.id.app_bar_layout); mToolbar = (Toolbar) findViewById(R.id.toolbar); mIcon = (CircleImageView) findViewById(R.id.ci_post_icon); mAuthor = (TextView) findViewById(R.id.tv_communication_author); mTime = (TextView) findViewById(R.id.tv_post_time); mContent = (TextView) findViewById(R.id.tv_post_content); mNoComment = (TextView) findViewById(R.id.tv_no_comment); mRecyclerView = (RecyclerView) findViewById(R.id.recycler); mLike = (ImageView) findViewById(R.id.iv_post_like); mLikeCounts = (TextView) findViewById(R.id.tv_post_like); mSendComment = (ImageView) findViewById(R.id.iv_post_comment); } // 获取数据 private void getData() { CommentUtils.newInstance(mUser, this).getComment(mPostModel.getMatrixId(), new CommentUtils.OnRequestCommentListener() { @Override public void getComments(List<CommentModel> commentModels) { if (commentModels == null) { MeUtils.showNoMessage(0, mNoComment, mRecyclerView, "暂无评论,快抢个沙发"); } else if (commentModels.size() != 0) { if (mAdapter != null) { // 页面重新请求 mAdapter.clear(); mAdapter.add(commentModels); }else { initAdapter(commentModels); } } else { MeUtils.showNoMessage(0, mNoComment, mRecyclerView, "暂无评论,快抢个沙发"); } } }); if (!TextUtils.isEmpty(mPostModel.getTitle())) { mToolbar.setTitle(mPostModel.getTitle()); } else { mToolbar.setTitle("交流区"); } mAuthor.setText(mPostModel.getName()); mTime.setText(mPostModel.getTime()); mContent.setText(mPostModel.getContent()); mSendComment.setOnClickListener(this); mLikeCounts.setText("" + mPostModel.getFavour()); // 根据头像改变背景颜色 MeUtils.showPalette(this, mPostModel.getPhotourl(), new MeUtils.OnShowPalleteListener() { @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) @Override public void show(Bitmap bitmap, List<Palette.Swatch> swatches) { if (bitmap != null) { mIcon.setImageBitmap(bitmap); Window window = getWindow(); for (int i = 0; i < swatches.size(); i++) { try { if (swatches.get(i) != null) { mAppBar.setBackgroundColor(swatches.get(i).getRgb()); window.setStatusBarColor(swatches.get(i).getRgb()); mToolbar.setTitleTextColor(swatches.get(i).getTitleTextColor()); break; } } catch (Exception e) { e.printStackTrace(); } } } } }); } // 初始化数据 private void initAdapter(List<CommentModel> commentModels) { mAdapter = new CommentAdapter(PostDetailsActivity.this, commentModels, new MyAdapter.AdapterListener<CommentModel>() { @Override public void onItemClick(MyAdapter.MyViewHolder holder, final CommentModel data) { CommentContentDetailsActivity.newInstance(PostDetailsActivity.this, mPostModel.getMatrixId(), data); } @Override public void onItemLongClick(MyAdapter.MyViewHolder holder, CommentModel data) { } @Override public Boolean setAddActionContinue() { return null; } @Override public void updataUI(Object object) { } }); CustomLinearLayoutManager linearLayoutManager=new CustomLinearLayoutManager(getApplication()); linearLayoutManager.setScrollEnabled(false); mRecyclerView.setLayoutManager(new LinearLayoutManager(this)); mRecyclerView.setAdapter(mAdapter); } @Override protected void initData() { mLike.setOnClickListener(this); } @Override protected void onResume() { super.onResume(); getData(); } @Override public void onClick(View view) { // 用户登录才能操作 if (mUserManager.hasLogined()) { // 如果用户登录了 switch (view.getId()) { case R.id.iv_post_comment: // 评论帖子 CommentDialogFragment commentDialogFragment = CommentDialogFragment.newInstance(mPostModel.getMatrixId(), null, mPostModel.getName()); commentDialogFragment.show(getSupportFragmentManager(), CommentDialogFragment.TAG); break; case R.id.iv_post_like: // 点赞帖子 LikeUtils.newInstance(mPostModel.getMatrixId(), CommunicationConstant.LIKE_TAG_POST, mUser, PostDetailsActivity.this, mLike, mLikeCounts) .iLike(); break; default: } } else { // 如果用户没有登录 Toast.makeText(this, "请先登录", Toast.LENGTH_SHORT).show(); } } /** * @function 获取新添加的评论 * @param id * @param content */ @Override public void getContent(String id,String replyId,String name,String content) { if (!id.equals(mPostModel.getMatrixId())) { // 如果不是评论帖子,那么就是评论评论,所以要追加“XXX评论了XXX:”作为评论内容 content = "回复 " + name + " 的评论:" + content; CommentUtils.newInstance(mUser, this) .addReply(mPostModel.getMatrixId(), id, replyId, content, new CommentUtils.OnAddCommentListener() { @Override public void getComment(Boolean result) { if (result) { getData(); } } }); } else { CommentUtils.newInstance(mUser, this).addComment(id, content, new CommentUtils.OnAddCommentListener() { @Override public void getComment(Boolean result) { if (result) { getData(); } } }); } } @Override public void doReply(CommentModel data) { CommentDialogFragment commentDialogFragment = CommentDialogFragment.newInstance(data.getNoteid(), data.getUserid(), data.getName()); commentDialogFragment.show(getSupportFragmentManager(), CommentDialogFragment.TAG); } }
java
<!DOCTYPE html> <Html> <head> <meta charset="utf-8"> <title>Ukkasha's CV</title> </head> <body> <table cellspacing="20"> <tr> <td> <img src="E:\web-Development\PicsArt_06-17-12.36.05.png" height="110" width="90" alt="my profile pcture"></img> </td> <td> <center> <h1><em>Curriculum Vitae of<br><strong>Ukkasha Mehmood</strong></h1></br> </center> </td> </tr> </table> <hr size="4"> <h2>SUMMRY :</h2> <p> My name <NAME>. i'm from Hazro city whose District is ATTOCK, Povonce PUNJAB.</br> This is my currculam Vitae and this includes everything which i have done in my education journey</br> and <strong>PROFESSIONAL LIFE</strong> as well.<br> </p> <h2><strong>EDUCATION :</h2> <font size="2" face="Times New Roman" > <table style="width:110%"> <th> <tr> <strong><td>Degreee :</td></strong> <strong><td>Marks/CGPA</td></strong> <strong><td>Year :</td></strong> </tr> </th> <tb> <tr> <td>Matric<br>from Govt high school</td> <td>2017</td> <td>1st devesion</td> </tr> <tr> <td>Intermidiate<br>from G.B.C Hazro</br></td> <td>2019</td> <td>1st devesion</td> </tr> <tr> <td>BsCs(continue)<br>From CUI Attock</td> <td>2019-2023</td> <td>3.16 CGPA<br>continue</br></td> </tr> </tb> </table> </font> <h2><strong>Social Media</h2> <p> If you want to check my activities or daily workouts.<br>Then must check out my social medi profiles. which are like : <ul> <li>Click here to check <a href="https://www.facebook.com/Muahammad%20Ukkasha">My Facebok Account</a></li> <li>Click here to check <a href="https://www.instagram.com/?hl=en">My Instagram Account</a></li> <li>Click here to check <a href="https://www.linkedin.com/feed/">My Linkdin Account</a></li> </ul> </p> <em>If you want to ask me something.<br> Feel free to mail me any time <a href="E:\web-Development\HtmlWork\contactme.html">on this.</a></em> <br><br> <hr></hr> <form class=" " action="MY_CV.Html" method="post"> <label>Make your choice and, Give me review Anout my profile.</label> <br> <input type="text" name="" value=" " > <input type="submit" > </form> </body> </Html>
html
<filename>tests/test_writers.py from pathlib import Path from pytest import mark from asreview import ASReviewData @mark.parametrize("test_file", [("baseline_tag-notes_labels.ris")]) def test_asreview_labels_ris(test_file, tmpdir): fp_in = Path("tests", "demo_data", test_file) asr_data = ASReviewData.from_file(fp_in) tmp_ris_fp_out = Path("tmp_labels.ris") asr_data.to_ris(tmp_ris_fp_out) asr_data_diff = ASReviewData.from_file(tmp_ris_fp_out) # Check if input file matches the export file assert list(asr_data.title) == list(asr_data_diff.title) assert list(asr_data.labels) == list(asr_data_diff.labels) @mark.parametrize("test_file", [("baseline_tag-notes.ris")]) def test_asreview_notes_ris(test_file, tmpdir): fp_in = Path("tests", "demo_data", test_file) asr_data = ASReviewData.from_file(fp_in) tmp_ris_fp_out = Path("tmp_notes.ris") asr_data.to_ris(tmp_ris_fp_out) asr_data_diff = ASReviewData.from_file(tmp_ris_fp_out) # Check if input file matches the export file assert list(asr_data.title) == list(asr_data_diff.title) assert list(asr_data.notes) == list(asr_data_diff.notes) def test_write_numpy_arrays(): # This test should catch cases where two numpy arrays # are to be evaluated in boolean context. Error is as follows: # "The truth value of an array with more than one element is ambiguous. # Use a.any() or a.all()" ### # For ris writer, a relevant bug was fixed with commit 70d9497 pass
python
{"derivation": "dual of H8145 (\u05e9\u05c1\u05b5\u05e0\u05b4\u05d9); feminine \u05e9\u05c1\u05b0\u05ea\u05bc\u05b7\u05d9\u05b4\u05dd;", "pron": "shen-ah'-yim", "outline": "<ol><li> two<ol><li> two (the cardinal number)<ol><li> two, both, double, twice</li></ol><li> second (the ordinal number)</li><li> in combination with other numbers</li><li> both (a dual number)</li></ol></li></ol>", "kjv_def": "both, couple, double, second, twain, [phrase] twelfth, [phrase] twelve, [phrase] twenty (sixscore) thousand, twice, two.", "lemma": "\u05e9\u05c1\u05b0\u05e0\u05b7\u05d9\u05b4\u05dd", "frequency": 769, "strongs_def": "two; also (as ordinal) twofold", "xlit": "sh\u1d49nayim"}
json
"""analog to itertools from standard library""" import operator from functools import partial from sicp_streams import Stream def smap(func, *streams): def resolve(): tails = [s.tail for s in streams] if not all(tails): return None else: return smap(func, *tails) return Stream(func(*(s.head for s in streams)), resolve) def szip(*streams): def resolve(): tails = [s.tail for s in streams] if not all(tails): return None return szip(*tails) return Stream(tuple(s.head for s in streams), resolve) def sfilter(func, stream): while stream is not None and not func(stream.head): stream = stream.tail if stream is None: return None return Stream(stream.head, lambda: sfilter(func, stream.tail)) def count(start=0, step=1): return Stream(start, partial(count, start + step, step)) def cycle(stream): first = None def tailfactory(st): nonlocal first if st is None: if first is None: return None else: return first s = Stream(st.head, lambda: tailfactory(st.tail)) if first is None: first = s return s return tailfactory(stream) def repeat(obj, times=None): if times is None: return cycle(Stream(obj, None)) if times <= 0: return None return Stream(obj, partial(repeat, obj, times - 1)) def accumulate(stream, func=operator.add, *, initial=None): if stream is None: if initial is None: return None return Stream(initial) def resolve(stream, initial): if stream is None: return None head = func(initial, stream.head) return Stream(head, lambda: resolve(stream.tail, head)) if initial is not None: return Stream(initial, lambda: resolve(stream, initial)) return Stream(stream.head, lambda: resolve(stream.tail, stream.head)) def chain(*streams): if not streams: return None first, *streams = streams if first is None: return chain(*streams) if not streams: return first return Stream(first.head, partial(chain, first.tail, *streams)) def chain_from_streams(streams): if streams is None: return None first = streams.head # streams = streams.tail if first is None: return chain_from_streams(streams.tail) # if streams.tail is None: # return first return Stream(first.head, lambda: chain_from_streams(Stream(first.tail, streams.tail))) def compress(data, selectors): while data and selectors and not selectors.head: data, selectors = data.tail, selectors.tail if data is None or selectors is None: return None return Stream(data.head, lambda: compress(data.tail, selectors.tail)) def dropwhile(predicate, stream): while stream and predicate(stream.head): stream = stream.tail return stream def filterfalse(func, stream): while stream is not None and func(stream.head): stream = stream.tail if stream is None: return None return Stream(stream.head, lambda: filterfalse(func, stream.tail)) def groupby(stream, key=None): if stream is None: return None if key is None: keyfunc = lambda x: x else: keyfunc = key del key def _grouper(stream, tgtkey): if stream is None or tgtkey != keyfunc(stream.head): return None return Stream(stream.head, lambda: _grouper(stream.tail, tgtkey)) currkey = keyfunc(stream.head) return Stream((currkey, _grouper(stream, currkey)), lambda: groupby(dropwhile(lambda x: currkey == keyfunc(x), stream), keyfunc)) def sslice(stream, *args): s = slice(*args) start, stop, step = s.start or 0, s.stop or float('+inf'), s.step or 1 if stop <= start: return None while stream is not None and start > 0: stream = stream.tail start -= 1 stop -= 1 if stream is None: return None return Stream(stream.head, lambda: sslice(stream, step, stop, step)) def starmap(func, stream): if not stream: return None return Stream(func(*stream.head), lambda: starmap(func, stream.tail)) def takewhile(predicate, stream): if stream is None or not predicate(stream.head): return None return Stream(stream.head, lambda: takewhile(predicate, stream.tail)) def tee(stream, n=2): """it is useless for stream since stream is not mutable. Kept for compatibility.""" return (stream,) * n def zip_longest(*streams, fillvalue=None): def resolve(): tails = [None if s is None else s.tail for s in streams] if not any(tails): return None # Stream(tuple(fillvalue if s is None else s.head for s in streams)) return zip_longest(*tails, fillvalue=fillvalue) return Stream(tuple(fillvalue if s is None else s.head for s in streams), resolve) def product(*streams, repeat=1): streams = streams * repeat # product() = [[]] if not streams: return Stream(()) first, *rest = streams # product(first, *rest) = first >>= \f -> product(*rest) >>= \r -> [(f, *r)] return chain_from_streams(smap(lambda f: smap(lambda r: (f, *r), product(*rest)), first)) def permutations(stream, r=None): pool = tuple(stream) n = len(pool) r = n if r is None else r return smap(lambda indices: tuple(pool[i] for i in indices), sfilter(lambda indices: len(set(indices)) == r, product(Stream(*range(n)), repeat=r))) def combinations(stream, r): pool = tuple(stream) n = len(pool) return smap(lambda indices: tuple(pool[i] for i in indices), sfilter(lambda indices: sorted(indices) == list(indices), permutations(Stream(*range(n)), r))) def combinations_with_replacement(stream, r): pool = tuple(stream) n = len(pool) return smap(lambda indices: tuple(pool[i] for i in indices), sfilter(lambda indices: sorted(indices) == list(indices), product(Stream(*range(n)), repeat=r)))
python
On paper neither side looks unbeatable. Both are quite top-heavy but have bright young talent in the mix as well. For RR, their opening duo has scored the bulk of the runs. Ajinkya Rahane sits at the No. 2 spot on the list of leading run-scorers. Shane Watson has been in good form as well, having scored a century in RR’s last match. Karun Nair, Sanju Samson, and Steven Smith have all done well at No. 3, though the constant shuffling of the batting order has hampered RR. Squads: Royal Challengers Bangalore: Virat Kohli (c), Chris Gayle, AB de Villiers, Mandeep Singh, Manvinder Bisla, Rilee Rossouw, Sarfaraz Khan, Iqbal Abdulla, Yuzvendra Chahal, Mitchell Starc, Harshal Patel, Varun Aaron, Subramaniam Badrinath, Sean Abbott, Dinesh Karthik (wk), Darren Sammy, Vijay Zol, Jalaj Saxena, David Wiese, Sandeep Warrier, Nic Maddinson, Sreenath Aravind, Shishir Bhavane, Ashok Dinda, Abu Nechim Ahmed. Rajasthan Royals: Shane Watson (c), Abhishek Nayar, Ajinkya Rahane, Ankit Nagendra Sharma, Ben Cutting, Deepak Hooda, Dhawal Kulkarni, Dishant Yagnik, James Faulkner, Kane Richardson, Karun Nair, Pravin Tambe, Rahul Tewatia, Rajat Bhatia, Sanju Samson (wk), Steven Smith, Stuart Binny, Tim Southee, Vikramjeet Malik, Chris Morris, Juan Theron, Brainder Sran, Dinesh Salunkhe, Sagar Trivedi, Pradeep Sahu. (Shiamak Unwalla, a reporter with CricketCountry, is a self-confessed Sci-Fi geek who loves cricket more than cricketers. His Twitter handle is @ShiamakUnwalla)
english
<filename>data/createplus/recipes/alloygery/smithing_anvil/andesite_alloy/andesite_alloy_shovel_head.json { "fabric:load_conditions": [ { "condition": "fabric:all_mods_loaded", "values": [ "alloygery" ] } ], "type": "alloygery:smithing_anvil", "group": "titanium_tool_heads", "hammer": { "item": "alloygery:anvil_hammer" }, "material": { "item": "create:andesite_alloy" }, "material_cost": 1, "result": { "item": "alloygery:alloygery_shovel_head", "data": { "PartMaterial": "createplus:materials/andesite_alloy" } } }
json
Satire: What if Premier League managers were teachers? It is September 5 and we are celebrating Teachers’ day. Managers also play the role of teachers, but what if they were actually teachers? In club football, the role of a manager is almost identical to that of a teacher. You even get summers-off! So what if the Premier League managers leave their jobs right now, and show up at a school near you? What if Premier League managers were actually teachers? Let’s take a look! Jose Mourinho (Man Utd) – Mourinho would make a good English teacher, wouldn’t he? After all, he has invented a lot of catch-phrases on his own – “The Special One”, “Specialist in Failure”, “I prefer not to speak”.. And oh, he does know how to teach students to “RESPECT! RESPECT! RESPECT!” their elders. Pep Guardiola (Man City) – He’s the type who remain strict with their students and give them a lot of homework. He’s obsessed about everyone ‘passing’ in his subject and created a school record last year when every student scored 100 points under him. Unai Emery (Arsenal) – A Maths teacher, obviously. He’s obsessed with charts and diagrams, focusses on acute details and wants complete precision. His students are annoyed, though, because the previous teacher had been in the job for 22 years and handed out the same question paper every semester. Jurgen Klopp (Liverpool) – Mad evil science teacher. Loves taking students to labs and waits for a chemical reaction to backfire, just so he can yell ‘BOOOM!’. He has his issues. Maurizio Sarri (Chelsea) – He takes his students to the roof and smokes-up with them. A proper dream professor for everyone. Introduced his own theory and even added it to the curriculum this year, though. Mauricio Pochettino (Tottenham) – Doesn’t involve himself in the staff-room wars, and gets decent results most of the time. His class was initially very weak in European geography, but slowly learning things now. (This is a work of fiction. Names, characters, businesses, places, events, locales, and incidents are either the products of the author’s imagination or used in a fictitious manner.)
english
{ "Fields": [ { "Feld": "RTF", "Datentyp": "String", "NamePROFFIX": "TextRTF", "Besonderes": " " }, { "Feld": "HTML", "Datentyp": "String", "NamePROFFIX": "TextHTML", "Besonderes": " " }, { "Feld": "Plain", "Datentyp": "String", "NamePROFFIX": "TextPlain", "Besonderes": " " } ], "Methods": [ { "Endpunkt": "POST /UTILS/Text/konvertieren", "Rueckgabewert": "HTTP 200Text", "Beschreibung": "Ein Feld muss gefüllt übergeben werden, die anderen beiden leer, die leeren Felder werden dann gefüllt zurück gegeben", "BenoetigteLizenz": "keine" } ], "Parameter": null }
json
{ "type": "service_account", "project_id": "cougartalk-f9536", "private_key_id": "98de235d7956fdf02a785d82f112268559967fee", "private_key": "-----<KEY>", "client_email": "<EMAIL>", "client_id": "115312361693894271997", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-5k9js%40cougartalk-f9536.iam.gserviceaccount.com" }
json
<reponame>hsleonis/ngMaker var Promise = require("nodegit-promise"); var promisify = require("promisify-node"); var rawApi; // Attempt to load the production release first, if it fails fall back to the // debug release. try { rawApi = require("../build/Release/nodegit.node"); } catch (ex) { /* istanbul ignore next */ if (ex.code !== "MODULE_NOT_FOUND") { throw ex; } rawApi = require("../build/Debug/nodegit.node"); } // Native methods do not return an identifiable function, so we // have to override them here /* jshint ignore:start */ var _AnnotatedCommit = rawApi.AnnotatedCommit; var _AnnotatedCommit_fromFetchhead = _AnnotatedCommit.fromFetchhead; _AnnotatedCommit.fromFetchhead = promisify(_AnnotatedCommit_fromFetchhead); var _AnnotatedCommit_fromRef = _AnnotatedCommit.fromRef; _AnnotatedCommit.fromRef = promisify(_AnnotatedCommit_fromRef); var _AnnotatedCommit_fromRevspec = _AnnotatedCommit.fromRevspec; _AnnotatedCommit.fromRevspec = promisify(_AnnotatedCommit_fromRevspec); var _AnnotatedCommit_lookup = _AnnotatedCommit.lookup; _AnnotatedCommit.lookup = promisify(_AnnotatedCommit_lookup); var _Attr = rawApi.Attr; var _Attr_get = _Attr.get; _Attr.get = promisify(_Attr_get); var _Blame = rawApi.Blame; var _Blame_buffer = _Blame.prototype.buffer; _Blame.prototype.buffer = promisify(_Blame_buffer); var _Blame_file = _Blame.file; _Blame.file = promisify(_Blame_file); var _Blob = rawApi.Blob; var _Blob_lookup = _Blob.lookup; _Blob.lookup = promisify(_Blob_lookup); var _Blob_lookupPrefix = _Blob.lookupPrefix; _Blob.lookupPrefix = promisify(_Blob_lookupPrefix); var _Branch = rawApi.Branch; var _Branch_create = _Branch.create; _Branch.create = promisify(_Branch_create); var _Branch_iteratorNew = _Branch.iteratorNew; _Branch.iteratorNew = promisify(_Branch_iteratorNew); var _Branch_lookup = _Branch.lookup; _Branch.lookup = promisify(_Branch_lookup); var _Branch_move = _Branch.move; _Branch.move = promisify(_Branch_move); var _Branch_name = _Branch.name; _Branch.name = promisify(_Branch_name); var _Buf = rawApi.Buf; var _Buf_grow = _Buf.prototype.grow; _Buf.prototype.grow = promisify(_Buf_grow); var _Buf_set = _Buf.prototype.set; _Buf.prototype.set = promisify(_Buf_set); var _Checkout = rawApi.Checkout; var _Checkout_head = _Checkout.head; _Checkout.head = promisify(_Checkout_head); var _Checkout_index = _Checkout.index; _Checkout.index = promisify(_Checkout_index); var _Checkout_tree = _Checkout.tree; _Checkout.tree = promisify(_Checkout_tree); var _Cherrypick = rawApi.Cherrypick; var _Cherrypick_cherrypick = _Cherrypick.cherrypick; _Cherrypick.cherrypick = promisify(_Cherrypick_cherrypick); var _Cherrypick_commit = _Cherrypick.commit; _Cherrypick.commit = promisify(_Cherrypick_commit); var _Clone = rawApi.Clone; var _Clone_clone = _Clone.clone; _Clone.clone = promisify(_Clone_clone); var _Commit = rawApi.Commit; var _Commit_headerField = _Commit.prototype.headerField; _Commit.prototype.headerField = promisify(_Commit_headerField); var _Commit_lookup = _Commit.lookup; _Commit.lookup = promisify(_Commit_lookup); var _Commit_lookupPrefix = _Commit.lookupPrefix; _Commit.lookupPrefix = promisify(_Commit_lookupPrefix); var _Commit_nthGenAncestor = _Commit.prototype.nthGenAncestor; _Commit.prototype.nthGenAncestor = promisify(_Commit_nthGenAncestor); var _Commit_parent = _Commit.prototype.parent; _Commit.prototype.parent = promisify(_Commit_parent); var _Config = rawApi.Config; var _Config_getStringBuf = _Config.prototype.getStringBuf; _Config.prototype.getStringBuf = promisify(_Config_getStringBuf); var _Config_openDefault = _Config.openDefault; _Config.openDefault = promisify(_Config_openDefault); var _Config_setString = _Config.prototype.setString; _Config.prototype.setString = promisify(_Config_setString); var _Config_snapshot = _Config.prototype.snapshot; _Config.prototype.snapshot = promisify(_Config_snapshot); var _Cred = rawApi.Cred; var _Cred_sshKeyMemoryNew = _Cred.sshKeyMemoryNew; _Cred.sshKeyMemoryNew = promisify(_Cred_sshKeyMemoryNew); var _Cred_usernameNew = _Cred.usernameNew; _Cred.usernameNew = promisify(_Cred_usernameNew); var _Diff = rawApi.Diff; var _Diff_blobToBuffer = _Diff.blobToBuffer; _Diff.blobToBuffer = promisify(_Diff_blobToBuffer); var _Diff_findSimilar = _Diff.prototype.findSimilar; _Diff.prototype.findSimilar = promisify(_Diff_findSimilar); var _Diff_getPerfdata = _Diff.prototype.getPerfdata; _Diff.prototype.getPerfdata = promisify(_Diff_getPerfdata); var _Diff_indexToWorkdir = _Diff.indexToWorkdir; _Diff.indexToWorkdir = promisify(_Diff_indexToWorkdir); var _Diff_treeToIndex = _Diff.treeToIndex; _Diff.treeToIndex = promisify(_Diff_treeToIndex); var _Diff_treeToTree = _Diff.treeToTree; _Diff.treeToTree = promisify(_Diff_treeToTree); var _Diff_treeToWorkdir = _Diff.treeToWorkdir; _Diff.treeToWorkdir = promisify(_Diff_treeToWorkdir); var _Diff_treeToWorkdirWithIndex = _Diff.treeToWorkdirWithIndex; _Diff.treeToWorkdirWithIndex = promisify(_Diff_treeToWorkdirWithIndex); var _Fetch = rawApi.Fetch; var _Filter = rawApi.Filter; var _Filter_listNew = _Filter.listNew; _Filter.listNew = promisify(_Filter_listNew); var _Giterr = rawApi.Giterr; var _Graph = rawApi.Graph; var _Graph_aheadBehind = _Graph.aheadBehind; _Graph.aheadBehind = promisify(_Graph_aheadBehind); var _Hashsig = rawApi.Hashsig; var _Hashsig_create = _Hashsig.create; _Hashsig.create = promisify(_Hashsig_create); var _Hashsig_createFromFile = _Hashsig.createFromFile; _Hashsig.createFromFile = promisify(_Hashsig_createFromFile); var _Ignore = rawApi.Ignore; var _Index = rawApi.Index; var _Index_addAll = _Index.prototype.addAll; _Index.prototype.addAll = promisify(_Index_addAll); var _Index_conflictGet = _Index.prototype.conflictGet; _Index.prototype.conflictGet = promisify(_Index_conflictGet); var _Index_open = _Index.open; _Index.open = promisify(_Index_open); var _Index_removeAll = _Index.prototype.removeAll; _Index.prototype.removeAll = promisify(_Index_removeAll); var _Index_updateAll = _Index.prototype.updateAll; _Index.prototype.updateAll = promisify(_Index_updateAll); var _Index_writeTree = _Index.prototype.writeTree; _Index.prototype.writeTree = promisify(_Index_writeTree); var _Index_writeTreeTo = _Index.prototype.writeTreeTo; _Index.prototype.writeTreeTo = promisify(_Index_writeTreeTo); var _Indexer = rawApi.Indexer; var _Libgit2 = rawApi.Libgit2; var _Merge = rawApi.Merge; var _Merge_base = _Merge.base; _Merge.base = promisify(_Merge_base); var _Merge_bases = _Merge.bases; _Merge.bases = promisify(_Merge_bases); var _Merge_commits = _Merge.commits; _Merge.commits = promisify(_Merge_commits); var _Merge_trees = _Merge.trees; _Merge.trees = promisify(_Merge_trees); var _Note = rawApi.Note; var _Note_create = _Note.create; _Note.create = promisify(_Note_create); var _Note_foreach = _Note.foreach; _Note.foreach = promisify(_Note_foreach); var _Note_iteratorNew = _Note.iteratorNew; _Note.iteratorNew = promisify(_Note_iteratorNew); var _Note_read = _Note.read; _Note.read = promisify(_Note_read); var _Note_remove = _Note.remove; _Note.remove = promisify(_Note_remove); var _Object = rawApi.Object; var _Object_dup = _Object.prototype.dup; _Object.prototype.dup = promisify(_Object_dup); var _Object_lookup = _Object.lookup; _Object.lookup = promisify(_Object_lookup); var _Object_lookupByPath = _Object.prototype.lookupByPath; _Object.prototype.lookupByPath = promisify(_Object_lookupByPath); var _Object_lookupPrefix = _Object.lookupPrefix; _Object.lookupPrefix = promisify(_Object_lookupPrefix); var _Object_peel = _Object.prototype.peel; _Object.prototype.peel = promisify(_Object_peel); var _Object_shortId = _Object.prototype.shortId; _Object.prototype.shortId = promisify(_Object_shortId); var _Odb = rawApi.Odb; var _Odb_open = _Odb.open; _Odb.open = promisify(_Odb_open); var _Odb_read = _Odb.prototype.read; _Odb.prototype.read = promisify(_Odb_read); var _Odb_write = _Odb.prototype.write; _Odb.prototype.write = promisify(_Odb_write); var _OdbObject = rawApi.OdbObject; var _OdbObject_dup = _OdbObject.prototype.dup; _OdbObject.prototype.dup = promisify(_OdbObject_dup); var _Oid = rawApi.Oid; var _Oidarray = rawApi.Oidarray; var _Openssl = rawApi.Openssl; var _Packbuilder = rawApi.Packbuilder; var _Patch = rawApi.Patch; var _Patch_fromBlobAndBuffer = _Patch.fromBlobAndBuffer; _Patch.fromBlobAndBuffer = promisify(_Patch_fromBlobAndBuffer); var _Patch_fromBlobs = _Patch.fromBlobs; _Patch.fromBlobs = promisify(_Patch_fromBlobs); var _Patch_fromDiff = _Patch.fromDiff; _Patch.fromDiff = promisify(_Patch_fromDiff); var _Patch_getHunk = _Patch.prototype.getHunk; _Patch.prototype.getHunk = promisify(_Patch_getHunk); var _Patch_getLineInHunk = _Patch.prototype.getLineInHunk; _Patch.prototype.getLineInHunk = promisify(_Patch_getLineInHunk); var _Pathspec = rawApi.Pathspec; var _Pathspec_matchDiff = _Pathspec.prototype.matchDiff; _Pathspec.prototype.matchDiff = promisify(_Pathspec_matchDiff); var _Pathspec_matchIndex = _Pathspec.prototype.matchIndex; _Pathspec.prototype.matchIndex = promisify(_Pathspec_matchIndex); var _Pathspec_matchTree = _Pathspec.prototype.matchTree; _Pathspec.prototype.matchTree = promisify(_Pathspec_matchTree); var _Pathspec_matchWorkdir = _Pathspec.prototype.matchWorkdir; _Pathspec.prototype.matchWorkdir = promisify(_Pathspec_matchWorkdir); var _Push = rawApi.Push; var _Rebase = rawApi.Rebase; var _Rebase_init = _Rebase.init; _Rebase.init = promisify(_Rebase_init); var _Rebase_next = _Rebase.prototype.next; _Rebase.prototype.next = promisify(_Rebase_next); var _Rebase_open = _Rebase.open; _Rebase.open = promisify(_Rebase_open); var _Refdb = rawApi.Refdb; var _Refdb_open = _Refdb.open; _Refdb.open = promisify(_Refdb_open); var _Reference = rawApi.Reference; var _Reference_create = _Reference.create; _Reference.create = promisify(_Reference_create); var _Reference_createMatching = _Reference.createMatching; _Reference.createMatching = promisify(_Reference_createMatching); var _Reference_dwim = _Reference.dwim; _Reference.dwim = promisify(_Reference_dwim); var _Reference_list = _Reference.list; _Reference.list = promisify(_Reference_list); var _Reference_lookup = _Reference.lookup; _Reference.lookup = promisify(_Reference_lookup); var _Reference_nameToId = _Reference.nameToId; _Reference.nameToId = promisify(_Reference_nameToId); var _Reference_peel = _Reference.prototype.peel; _Reference.prototype.peel = promisify(_Reference_peel); var _Reference_rename = _Reference.prototype.rename; _Reference.prototype.rename = promisify(_Reference_rename); var _Reference_resolve = _Reference.prototype.resolve; _Reference.prototype.resolve = promisify(_Reference_resolve); var _Reference_setTarget = _Reference.prototype.setTarget; _Reference.prototype.setTarget = promisify(_Reference_setTarget); var _Reference_symbolicCreate = _Reference.symbolicCreate; _Reference.symbolicCreate = promisify(_Reference_symbolicCreate); var _Reference_symbolicCreateMatching = _Reference.symbolicCreateMatching; _Reference.symbolicCreateMatching = promisify(_Reference_symbolicCreateMatching); var _Reference_symbolicSetTarget = _Reference.prototype.symbolicSetTarget; _Reference.prototype.symbolicSetTarget = promisify(_Reference_symbolicSetTarget); var _Reflog = rawApi.Reflog; var _Reflog_read = _Reflog.read; _Reflog.read = promisify(_Reflog_read); var _Refspec = rawApi.Refspec; var _Remote = rawApi.Remote; var _Remote_connect = _Remote.prototype.connect; _Remote.prototype.connect = promisify(_Remote_connect); var _Remote_createAnonymous = _Remote.createAnonymous; _Remote.createAnonymous = promisify(_Remote_createAnonymous); var _Remote_createWithFetchspec = _Remote.createWithFetchspec; _Remote.createWithFetchspec = promisify(_Remote_createWithFetchspec); var _Remote_delete = _Remote.delete; _Remote.delete = promisify(_Remote_delete); var _Remote_disconnect = _Remote.prototype.disconnect; _Remote.prototype.disconnect = promisify(_Remote_disconnect); var _Remote_download = _Remote.prototype.download; _Remote.prototype.download = promisify(_Remote_download); var _Remote_dup = _Remote.prototype.dup; _Remote.prototype.dup = promisify(_Remote_dup); var _Remote_fetch = _Remote.prototype.fetch; _Remote.prototype.fetch = promisify(_Remote_fetch); var _Remote_getFetchRefspecs = _Remote.prototype.getFetchRefspecs; _Remote.prototype.getFetchRefspecs = promisify(_Remote_getFetchRefspecs); var _Remote_getPushRefspecs = _Remote.prototype.getPushRefspecs; _Remote.prototype.getPushRefspecs = promisify(_Remote_getPushRefspecs); var _Remote_list = _Remote.list; _Remote.list = promisify(_Remote_list); var _Remote_lookup = _Remote.lookup; _Remote.lookup = promisify(_Remote_lookup); var _Remote_push = _Remote.prototype.push; _Remote.prototype.push = promisify(_Remote_push); var _Repository = rawApi.Repository; var _Repository_config = _Repository.prototype.config; _Repository.prototype.config = promisify(_Repository_config); var _Repository_configSnapshot = _Repository.prototype.configSnapshot; _Repository.prototype.configSnapshot = promisify(_Repository_configSnapshot); var _Repository_discover = _Repository.discover; _Repository.discover = promisify(_Repository_discover); var _Repository_fetchheadForeach = _Repository.prototype.fetchheadForeach; _Repository.prototype.fetchheadForeach = promisify(_Repository_fetchheadForeach); var _Repository_head = _Repository.prototype.head; _Repository.prototype.head = promisify(_Repository_head); var _Repository_index = _Repository.prototype.index; _Repository.prototype.index = promisify(_Repository_index); var _Repository_init = _Repository.init; _Repository.init = promisify(_Repository_init); var _Repository_initExt = _Repository.initExt; _Repository.initExt = promisify(_Repository_initExt); var _Repository_odb = _Repository.prototype.odb; _Repository.prototype.odb = promisify(_Repository_odb); var _Repository_open = _Repository.open; _Repository.open = promisify(_Repository_open); var _Repository_openBare = _Repository.openBare; _Repository.openBare = promisify(_Repository_openBare); var _Repository_openExt = _Repository.openExt; _Repository.openExt = promisify(_Repository_openExt); var _Repository_refdb = _Repository.prototype.refdb; _Repository.prototype.refdb = promisify(_Repository_refdb); var _Repository_setHead = _Repository.prototype.setHead; _Repository.prototype.setHead = promisify(_Repository_setHead); var _Repository_wrapOdb = _Repository.wrapOdb; _Repository.wrapOdb = promisify(_Repository_wrapOdb); var _Reset = rawApi.Reset; var _Reset_reset = _Reset.reset; _Reset.reset = promisify(_Reset_reset); var _Reset_default = _Reset.default; _Reset.default = promisify(_Reset_default); var _Revert = rawApi.Revert; var _Revert_commit = _Revert.commit; _Revert.commit = promisify(_Revert_commit); var _Revparse = rawApi.Revparse; var _Revparse_single = _Revparse.single; _Revparse.single = promisify(_Revparse_single); var _Revwalk = rawApi.Revwalk; var _Revwalk_next = _Revwalk.prototype.next; _Revwalk.prototype.next = promisify(_Revwalk_next); var _Signature = rawApi.Signature; var _Signature_dup = _Signature.prototype.dup; _Signature.prototype.dup = promisify(_Signature_dup); var _Stash = rawApi.Stash; var _Stash_apply = _Stash.apply; _Stash.apply = promisify(_Stash_apply); var _Stash_drop = _Stash.drop; _Stash.drop = promisify(_Stash_drop); var _Stash_foreach = _Stash.foreach; _Stash.foreach = promisify(_Stash_foreach); var _Stash_pop = _Stash.pop; _Stash.pop = promisify(_Stash_pop); var _Stash_save = _Stash.save; _Stash.save = promisify(_Stash_save); var _Status = rawApi.Status; var _Status_foreach = _Status.foreach; _Status.foreach = promisify(_Status_foreach); var _Status_foreachExt = _Status.foreachExt; _Status.foreachExt = promisify(_Status_foreachExt); var _StatusList = rawApi.StatusList; var _StatusList_getPerfdata = _StatusList.prototype.getPerfdata; _StatusList.prototype.getPerfdata = promisify(_StatusList_getPerfdata); var _StatusList_create = _StatusList.create; _StatusList.create = promisify(_StatusList_create); var _Strarray = rawApi.Strarray; var _Submodule = rawApi.Submodule; var _Submodule_addSetup = _Submodule.addSetup; _Submodule.addSetup = promisify(_Submodule_addSetup); var _Submodule_lookup = _Submodule.lookup; _Submodule.lookup = promisify(_Submodule_lookup); var _Submodule_repoInit = _Submodule.prototype.repoInit; _Submodule.prototype.repoInit = promisify(_Submodule_repoInit); var _Submodule_resolveUrl = _Submodule.resolveUrl; _Submodule.resolveUrl = promisify(_Submodule_resolveUrl); var _Tag = rawApi.Tag; var _Tag_annotationCreate = _Tag.annotationCreate; _Tag.annotationCreate = promisify(_Tag_annotationCreate); var _Tag_create = _Tag.create; _Tag.create = promisify(_Tag_create); var _Tag_createLightweight = _Tag.createLightweight; _Tag.createLightweight = promisify(_Tag_createLightweight); var _Tag_delete = _Tag.delete; _Tag.delete = promisify(_Tag_delete); var _Tag_list = _Tag.list; _Tag.list = promisify(_Tag_list); var _Tag_lookup = _Tag.lookup; _Tag.lookup = promisify(_Tag_lookup); var _Tag_lookupPrefix = _Tag.lookupPrefix; _Tag.lookupPrefix = promisify(_Tag_lookupPrefix); var _Transport = rawApi.Transport; var _Transport_sshWithPaths = _Transport.sshWithPaths; _Transport.sshWithPaths = promisify(_Transport_sshWithPaths); var _Tree = rawApi.Tree; var _Tree_entryByPath = _Tree.prototype.entryByPath; _Tree.prototype.entryByPath = promisify(_Tree_entryByPath); var _Tree_lookup = _Tree.lookup; _Tree.lookup = promisify(_Tree_lookup); var _Tree_lookupPrefix = _Tree.lookupPrefix; _Tree.lookupPrefix = promisify(_Tree_lookupPrefix); var _Treebuilder = rawApi.Treebuilder; var _Treebuilder_insert = _Treebuilder.prototype.insert; _Treebuilder.prototype.insert = promisify(_Treebuilder_insert); var _Treebuilder_create = _Treebuilder.create; _Treebuilder.create = promisify(_Treebuilder_create); /* jshint ignore:end */ // Set the exports prototype to the raw API. exports.__proto__ = rawApi; var importExtension = function(name) { try { require("./" + name); } catch (unhandledException) { if (unhandledException.code != "MODULE_NOT_FOUND") { throw unhandledException; } } }; // Load up utils rawApi.Utils = {}; require("./utils/lookup_wrapper"); require("./utils/normalize_options"); require("./utils/shallow_clone"); // Load up extra types; require("./convenient_line"); require("./convenient_hunk"); require("./convenient_patch"); require("./status_file"); require("./enums.js"); // Import extensions importExtension("annotated_commit"); importExtension("attr"); importExtension("blame"); importExtension("blame_hunk"); importExtension("blame_options"); importExtension("blob"); importExtension("branch"); importExtension("branch_iterator"); importExtension("buf"); importExtension("cert"); importExtension("cert_hostkey"); importExtension("cert_x509"); importExtension("checkout"); importExtension("checkout_options"); importExtension("cherrypick"); importExtension("cherrypick_options"); importExtension("clone"); importExtension("clone_options"); importExtension("commit"); importExtension("config"); importExtension("config_entry"); importExtension("config_entry"); importExtension("cred"); importExtension("cred_default"); importExtension("cred_username"); importExtension("cred_userpass_payload"); importExtension("cvar_map"); importExtension("describe_format_options"); importExtension("describe_options"); importExtension("diff"); importExtension("diff_binary"); importExtension("diff_binary_file"); importExtension("diff_delta"); importExtension("diff_file"); importExtension("diff_find_options"); importExtension("diff_hunk"); importExtension("diff_line"); importExtension("diff_options"); importExtension("diff_options"); importExtension("diff_perfdata"); importExtension("diff_perfdata"); importExtension("diff_stats"); importExtension("error"); importExtension("fetch"); importExtension("fetch_options"); importExtension("fetch_options"); importExtension("filter"); importExtension("filter"); importExtension("filter_list"); importExtension("giterr"); importExtension("graph"); importExtension("hashsig"); importExtension("ignore"); importExtension("index"); importExtension("index_conflict_iterator"); importExtension("index_entry"); importExtension("index_time"); importExtension("indexer"); importExtension("libgit2"); importExtension("mempack"); importExtension("merge"); importExtension("merge_file_input"); importExtension("merge_file_options"); importExtension("merge_file_result"); importExtension("merge_options"); importExtension("merge_options"); importExtension("merge_result"); importExtension("message"); importExtension("note"); importExtension("note_iterator"); importExtension("object"); importExtension("odb"); importExtension("odb_object"); importExtension("oid"); importExtension("oid_shorten"); importExtension("oidarray"); importExtension("openssl"); importExtension("packbuilder"); importExtension("patch"); importExtension("pathspec"); importExtension("pathspec_match_list"); importExtension("push"); importExtension("push_options"); importExtension("push_update"); importExtension("rebase"); importExtension("rebase_operation"); importExtension("rebase_options"); importExtension("refdb"); importExtension("reference"); importExtension("reflog"); importExtension("reflog_entry"); importExtension("refspec"); importExtension("remote"); importExtension("remote_callbacks"); importExtension("remote_callbacks"); importExtension("repository"); importExtension("repository_init_options"); importExtension("reset"); importExtension("revert"); importExtension("revert_options"); importExtension("revparse"); importExtension("revwalk"); importExtension("signature"); importExtension("smart"); importExtension("stash"); importExtension("stash_apply_options"); importExtension("status"); importExtension("status_entry"); importExtension("status_list"); importExtension("status_options"); importExtension("strarray"); importExtension("submodule"); importExtension("submodule_update_options"); importExtension("tag"); importExtension("time"); importExtension("trace"); importExtension("transaction"); importExtension("transfer_progress"); importExtension("transport"); importExtension("tree"); importExtension("tree_entry"); importExtension("treebuilder"); importExtension("writestream"); /* jshint ignore:start */ // Inherit directly from the original Cherrypick object. _Cherrypick.cherrypick.__proto__ = _Cherrypick; // Ensure we're using the correct prototype. _Cherrypick.cherrypick.prototype = _Cherrypick.prototype; // Assign the function as the root rawApi.Cherrypick = _Cherrypick.cherrypick; // Inherit directly from the original Clone object. _Clone.clone.__proto__ = _Clone; // Ensure we're using the correct prototype. _Clone.clone.prototype = _Clone.prototype; // Assign the function as the root rawApi.Clone = _Clone.clone; // Inherit directly from the original Merge object. _Merge.merge.__proto__ = _Merge; // Ensure we're using the correct prototype. _Merge.merge.prototype = _Merge.prototype; // Assign the function as the root rawApi.Merge = _Merge.merge; // Inherit directly from the original Reset object. _Reset.reset.__proto__ = _Reset; // Ensure we're using the correct prototype. _Reset.reset.prototype = _Reset.prototype; // Assign the function as the root rawApi.Reset = _Reset.reset; // Inherit directly from the original Revert object. _Revert.revert.__proto__ = _Revert; // Ensure we're using the correct prototype. _Revert.revert.prototype = _Revert.prototype; // Assign the function as the root rawApi.Revert = _Revert.revert; /* jshint ignore:end */ // Wrap asynchronous methods to return promises. promisify(exports); // Set version. exports.version = require("../package").version; // Expose Promise implementation. exports.Promise = Promise; // Initialize libgit2. exports.Libgit2.init();
javascript
Prime Minister Narendra Modi on Thursday called for a return to the path of dialogue and diplomacy to defuse the crisis in Ukraine as he and other Quad leaders discussed the Russian military offensive in the eastern European country and the humanitarian implications of it. A joint readout released by the White House said PM Modi, US President Joe Biden, Australian PM Scott Morrison and Japanese PM Fumio Kishida discussed in the virtual format the ongoing conflict and humanitarian crisis in Ukraine besides assessing its “broader implications". But it did not mention Russia or its military aggression. “The Quad leaders discussed the ongoing conflict and humanitarian crisis in Ukraine and assessed its broader implications," the joint readout said. “They agreed to stand up a new humanitarian assistance and disaster relief mechanism which will enable the Quad to meet future humanitarian challenges in the Indo-Pacific and provide a channel for communication as they each address and respond to the crisis in Ukraine," it said. It added that the Quad Leaders agreed to meet in person in Tokyo in the coming months. An Indian statement said, “Developments in Ukraine were discussed in the meeting, including its humanitarian implications. The prime minister emphasised the need to return to a path of dialogue and diplomacy. " It said Modi underlined that the Quad must remain focused on its “core objective" of promoting peace, stability and prosperity in the Indo-Pacific region and that he also reiterated the importance of adhering to the UN Charter, international law and respect for sovereignty and territorial integrity. “The meeting reviewed the progress on Quad initiatives since the September 2021 Quad Summit. The leaders agreed on accelerating cooperation, with an objective to achieve concrete outcomes by the summit in Japan later this year," it said. Though the joint readout did not directly refer to the Russian military offensive, Japanese PM Kishida’s office quoted him as saying that “unilateral changes to the status quo by force or coercion like the recent Russian aggression against Ukraine are also unacceptable in the Indo-Pacific region". “I met with my fellow Quad leaders Prime Minister Scott Morrison, Prime Minister Narendra Modi, and Prime Minister Kishida Fumio about Russia’s ongoing attack on Ukraine and our commitment to the sovereignty and territorial integrity around the world, including in the Indo-Pacific," Biden tweeted. Earlier, the White House said the meeting has been convened to discuss the “war against" Ukraine and its implications for the Indo-Pacific. The joint readout said the meeting was convened to reaffirm the commitment of the leaders to a free and open Indo-Pacific, in which the sovereignty and territorial integrity of all states is respected and countries are “free from military, economic, and political coercion". It said the leaders reaffirmed their dedication to the Quad as a mechanism to promote regional stability and prosperity. In a tweet, Modi described the meeting as “productive". “Participated in a productive virtual Quad Leaders’ meeting today with @POTUS @JoeBiden, PM @ScottMorrisonMP and @JPN_PMO Kishida. Reaffirmed our shared commitment to ensuring security, safety and prosperity in the Indo-Pacific," he said. The leaders also discussed other topical issues, including the situation in Southeast Asia, the Indian Ocean region and the Pacific Islands. “The leaders agreed to stay in touch and to work towards an ambitious agenda for the forthcoming Leaders’ Summit in Japan," the statement said. In March last year, Biden hosted the first-ever summit of the Quad leaders in the virtual format that was followed by an in-person summit in Washington in September for which Prime Minister Modi had travelled to the US. The Quad has been focusing on cooperation in areas such as producing vaccines, connectivity projects, facilitating the mobility of students and looking at promoting start-ups and technology collaboration.
english