text
stringlengths
1
1.04M
language
stringclasses
25 values
Mysore/Mysuru: Even as the indefinite strike launched by the employees of the four State-run Road Transport Corporations (RTCs) – KSRTC, BMTC, NWKRTC and NEKRTC seeking fulfilment of their various demands entered the fourteenth day today, City Bus services returned to near normal this morning, with the operation of over 220 buses in the first shift…. Virajpet: K. B. Harshavardhan (45), Vice-President of Virajpet Town Panchayat and a prominent BJP leader of Kodagu district, passed away following a heart attack on Monday morning. Harshavardhan, who suffered a heart attack, was immediately rushed to a hospital in Virajpet, where he breathed his last. Harshavardhan was elected from Meenpet Ward in the Town Panchayat….
english
import axios from 'axios'; const corsAnywhere = 'https://cors-anywhere.herokuapp.com/'; const apiUrl = process.env.REACT_APP_API_URL; // Internal APIs /** * * @param {object} body - the body object contains all the required * key value pairs for signing up the user * @returns - returns an object with the login token */ export const signUp = async (body) => { try { const url = `${apiUrl}/rest-auth/registration/`; const data = await axios.post(url, body); localStorage.setItem('user', JSON.stringify({ username: body.username })); return data; } catch (err) { return { error: err.response }; } }; /** * * @param {object} body - the body object contains all the required * key value pairs for logging a user * @returns - returns an object with the login token */ export const login = async (body) => { try { const url = `${apiUrl}/rest-auth/login/`; const data = await axios.post(url, body); localStorage.setItem('user', JSON.stringify({ username: body.username })); return data; } catch (err) { return { error: err.response }; } }; /** * * @param {string} slug - unique string for the snippet to be fetched * @returns - Returns an object with data for that particular snippet */ export const getSnip = async (slug) => { try { const url = `${apiUrl}/snip/${slug}/`; const { data } = await axios.get(url); return data; } catch (err) { console.log(err.response); } }; /** * * @param {string} slug - unique string for the snippet to be updated * @param {object} body - Updated object of the snippet */ export const updateSnip = async (slug, body) => { try { const url = `${apiUrl}/snip/${slug}/`; const data = await axios.put(url, body); return data; } catch (err) { console.log(err.response); } }; /** * * @param {object} body - data of the snippet to be saved in the backend * @returns - Returns an object with data for that particular snippet */ export const saveSnip = async (body) => { try { const url = `${apiUrl}/snip/`; const data = await axios.post(url, body); return data; } catch (err) { console.log(err.response); } }; /** * * @param {string} username - the user's name whose programs have to be fetched * @returns - the data object containing information and programs of a specific user */ export const getAllSnips = async (username) => { try { const url = `${apiUrl}/snip/user/${username}`; const { data } = await axios.get(url); return data; } catch (err) { console.log(err.response); } }; /** * * @param {object} body - object that contains all the submission inputs * @returns - a token which can be used to fetch the submission details */ const getSubmissionToken = async (body) => { try { const url = 'https://judge0.p.rapidapi.com/submissions'; const options = { headers: { 'x-rapidapi-host': process.env.REACT_APP_RAPID_API_HOST, 'x-rapidapi-key': process.env.REACT_APP_RAPID_API_KEY, 'content-type': 'application/json', accept: 'application/json', }, }; const { data: { token }, } = await axios.post(url, body, options); return token; } catch (err) { console.log(err); } }; /** * * @param {string} token - a unique string used to get the subimission details of a particular submission * @returns - an object with all the details of the submission */ const getSubmissionDetails = async (token) => { try { let success = 0; let dataObj; const url = `https://judge0.p.rapidapi.com/submissions/${token}`; const options = { headers: { 'x-rapidapi-host': process.env.REACT_APP_RAPID_API_HOST, 'x-rapidapi-key': process.env.REACT_APP_RAPID_API_KEY, }, }; while (!success) { const { data } = await axios.get(url, options); if (data.status.description === 'Accepted') { success = 1; dataObj = data; } } return dataObj; } catch (err) { return { error: 'Please check your program for errors!' }; } }; /** * @param {object} body - object that contains all the submission inputs * @returns - the object will all submission details */ export const runCode = async (body) => { const token = await getSubmissionToken(body); const data = await getSubmissionDetails(token); return data; }; // // External API // /** * * @param {object} formData - data of the form to be sent to the API server * @returns - Object containing the URL and other information of the hosted Image */ export const uploadImage = async (formData) => { try { const token = process.env.REACT_APP_IMGBB_API_KEY; const url = `${corsAnywhere}${process.env.REACT_APP_IMAGEBB_URL}?key=${token}`; const options = { headers: { 'content-type': 'multipart/form-data', }, }; const { data: { data }, } = await axios.post(url, formData, options); return data; } catch (res) { return { err: res.response.data.error.message }; } };
javascript
Man of the Match: David Miller (South Africa) LIVE CRICKET SCORE & UPDATES, SA 158/7 in 19.2 overs: David Miller 53 (51), Chris Morris 6 (14): SA WIN!!!! That’s it, Miller’s unbeaten half-century guides Proteas to a comfortable and thrilling three-wicket win over the Aussies, as they go 1-0 up in the htree-match series. Can the Australians bounce back in the next tie at Johannesberg? OUT! Chris Morris c Aaron Finch b Nathan Coulter-Nile 8 (19) LIVE CRICKET SCORE & UPDATES, SA 113/6 in 15 overs: David Miller 17 (16), Chris Morris 6 (6): GONE!!!! David Wiese has been run out for mere 13 following a big mix-up with striker David Miller, as Chris Morris makes his way in, while South Africa are up with their 100 runs. Still a close call for the match. OUT! David Wiese run out 13 (11) LIVE CRICKET SCORE & UPDATES, SA 56/3 in 8 overs: Faf du Plessis 33(22), Rilee Rossouw 11(8): South Africa are struggling at the moment. However, Faf is leading by example. Has played a very sublime innings so far. But he will require to partner him nicely at the other end. Rilee Rossouw is looking good though. LIVE CRICKET SCORE & UPDATES, AUS 157/9 in 20 overs: Adam Zampa 5(5), Andrew Tye 0(2): After the kind off blazing start they had in the powerplay, Australia will be a little disappointed with what they have put on board. They would have wanted to touch about 180 at least, but in the larger picture, this is actually a tough surface. It should be farely challenging for South Africa. LIVE CRICKET SCORE & UPDATES, AUS 147/7 in 18 overs: Mitchell Marsh 32(21), Nathan Coulter-Nile 8(6): This is a very good innings by Mitchell Marsh. Things were going downwards for the Aussies and 150 looked a little out of reach, but he kept his cool and has taken Australia to a decent score. He’ll look to propel them to about 165 by end of the innings. LIVE CRICKET SCORE & UPDATES, AUS 98/5 in 12 overs: Mitchell Marsh 3(4), Peter Nevill 0(1): Things are going downhill for Australia after a very good start. They are losing wickets in a cluster. Wiese removed Steven Smith while Morris got Maxwell out the next over. LIVE CRICKET SCORE & UPDATES, AUS 54/1 in 5 overs: Aaron Finch 39(16), David Warner 5(4): Australia have snatched the advantage from South Africa, thanks to Finch’s brutal assault on JP Duminy in the fifth over. In the third over, Khawaja fell to Rabada for a 10-ball 9. Finch is striking the ball very well though. LIVE CRICKET SCORE & UPDATES, AUS 14/0 in 2 overs: Usman Khawaja 8(8), Aaron Finch 5(4): The first two overs are indicative that there is decent support for batsmen as well as bowlers. Khawaja and Finch have both looked quite comfortable in the stroke-making, but Kagiso Rabada is working some good pace. However, the batting line-up of Australia that features the likes of David Warner, Aaron Finch, Steven Smith, Usman Khawaja and James Faulkner will any day dominate even the best of the bowling attacks. South Africa have a sigh of relief with the return of their ace pacer, Dale Steyn. While South Africa will be led by their regular T20I skipper, Faf du Plessis, Australia will be led by Steven Smith who was handed the captaincy of all formats recently after Cricket Australia sacked Finch prior to the ICC World T20 2016. It is the only trophy absent in Australia’s cabinet and Smith has a huge task on him.
english
<reponame>bayrell/Core.Components.Input<filename>module.json<gh_stars>0 { "name": "Runtime.Web.Input", "assets": [ "Button", "Helper", "Input", "Label", "Select", "SelectText", "TextArea", "ModuleDescription" ] }
json
Arunachal Pradesh Chief Minister Pema Khandu on Friday released the basic grant for this year to the Panchayati raj institutions (PRIs) amounting to Rs 79. 21 crore. The amount accounts for 70 per cent of the basic grant to state PRIs, while the rest 30 per cent, which will be performance based, would be released after review of performances of the PRIs in their respective jurisdictions. Handing over the amount to the concerned department at a function held here by All Arunachal Pradesh Panchayati Raj Parishad (AAPPRP) as 'thanksgiving' to the state government, Khandu informed that the grant amount is from the state-owned resource tax revenue. "Instead of looking for help from the Centre for each and everything, we have allocated Rs 123 crore from our internal resources to PRIs for this year and this is the basic grant we are releasing today," he said. Stating that as per the 73rd Constitutional amendment, the state government has decided to devolve power to PRIs on 29 subjects, Khandu called upon PRIs to work with more vigour and energy to take development in rural pockets of the state to a new height. Khandu said besides the grants from state owned resources, PRIs would be funded with provisions under the 14th Finance Commission as well as the 15th Finance Commission. The chief minister revealed that Rs 200 crore has already been released under the 15th Finance Commission for PRIs and the balance Rs 800 crore will be released by the Commission spread over the next five years provided utilization certificates are submitted as required and on time. Khandu observed that guided by the SPICE (Sustainable, Participative, Inclusive, Comprehensive and Empowerment) module, PRIs must be able to successfully function as institutions of self-government and accelerate development at the grassroots levels. "There is no dearth of funds. What we lack is coordinated and synchronized efforts," he said and urged all stakeholders including local MLA, PRIs, the district administration, concerned departments to coordinate with each other in implementation of developmental projects at the panchayat levels. Khandu further emphasized on 'convergence' of different schemes and programmes for overall development of rural areas. "We are committed to empower PRIs with the 3 Fs functions, functionaries and funds," he said. Asserting that officials in the districts have a big role to play, Khandu urged them to go the extra mile in assisting and guiding PRI members to avail government schemes for development of the villages. He also requested Zilla Parishad Chairpersons (ZPCs) to periodically review projects in their respective districts with PRI members and officials concerned and advised them to personally visit work sites and keep themselves updated with each and every project. The chief minister lauded that out of total 241 ZPMs, 90 are women while of the 25 ZPCs, 13 are women. "Role of women in development at the grassroot level is significant. With such a huge presence in the PRI, there's no doubt that our villages and villagers are at good hands. I hope this is replicated in the coming assembly elections and we witness a significant increase in women legislators in our Assembly," Khandu said. He claimed that Arunachal Pradesh has done wonders in the last few years in terms of generating revenue from its own resources. "When I took over as chief minister in 2016 the annual state budget was 12,553 crore. Compare it with this year's budget of Rs 26,111 crore, which is almost three times that of 2016. This proves that we can generate revenue from our own resources if we have that political will," he said. Khandu pointed out that revenue generation would further increase in coming years with the completion of major hydropower projects like the Subansiri Lower and Dibang, boost in tourism and agriculture and allied sectors following the boost in state's connectivity vis a vis road, air, rail and digital connectivity. "The more we generate revenue the more we can invest on developmental projects," he added. Panchayati Raj Minister Bamang Felix, in his deliberation, expressed confidence on the dedication of the PRIs towards transforming rural-Arunachal into self-sustainable. In regard to the release of 70 per cent of state own resource grant to the 25 Zilla Parishads, Felix advised that the funds should be utilized with accountability and strictly adhering to SOPs. He urged the PRIs to work as a team and add to the state revenue by proper utilization of the state grant. The minister said that this in turn will create a larger pool of fund for the PRIs to uplift rural-Arunachal. The chief minister also launched the SPICE manual and a handbook of SOPs for use of PRI members. (Only the headline and picture of this report may have been reworked by the Business Standard staff; the rest of the content is auto-generated from a syndicated feed. )
english
<gh_stars>10-100 [{"win_team_name":"タコ","win_team_mvp":"いっつみー"},{"win_team_name":"タコ","win_team_mvp":"イカかも"},{"win_team_name":"タコ","win_team_mvp":"えすぱ"},{"win_team_name":"イカ","win_team_mvp":"Uyuni"},{"win_team_name":"タコ","win_team_mvp":"3フレット"},{"win_team_name":"イカ","win_team_mvp":"MUTU"},{"win_team_name":"タコ","win_team_mvp":"か の 。"},{"win_team_name":"タコ","win_team_mvp":"さつまきりこ"},{"win_team_name":"タコ","win_team_mvp":"インドリアン"},{"win_team_name":"イカ","win_team_mvp":"しょうご"},{"win_team_name":"イカ","win_team_mvp":"あー"},{"win_team_name":"タコ","win_team_mvp":"まさる"},{"win_team_name":"タコ","win_team_mvp":"やぴ"},{"win_team_name":"イカ","win_team_mvp":"われはゴリラなり。"},{"win_team_name":"イカ","win_team_mvp":"Aias"},{"win_team_name":"タコ","win_team_mvp":"ponzuu84"},{"win_team_name":"タコ","win_team_mvp":"ぴぃ"},{"win_team_name":"タコ","win_team_mvp":"ともや"},{"win_team_name":"イカ","win_team_mvp":"KH"},{"win_team_name":"タコ","win_team_mvp":"カブトムシ"},{"win_team_name":"タコ","win_team_mvp":"masa"},{"win_team_name":"イカ","win_team_mvp":"who"},{"win_team_name":"イカ","win_team_mvp":"はるか"},{"win_team_name":"イカ","win_team_mvp":"まなみちゃん"},{"win_team_name":"イカ","win_team_mvp":"かに"},{"win_team_name":"タコ","win_team_mvp":"ジエイ"},{"win_team_name":"イカ","win_team_mvp":"ゆきんこ"},{"win_team_name":"タコ","win_team_mvp":"スナフラシ"},{"win_team_name":"イカ","win_team_mvp":"ふぉもち"},{"win_team_name":"イカ","win_team_mvp":"Ken-G"},{"win_team_name":"タコ","win_team_mvp":"なちお"},{"win_team_name":"タコ","win_team_mvp":"ゆうき"},{"win_team_name":"タコ","win_team_mvp":"こころのよりどころ"},{"win_team_name":"イカ","win_team_mvp":"ゆな"},{"win_team_name":"イカ","win_team_mvp":"ZEEZ"},{"win_team_name":"イカ","win_team_mvp":"バシャwwバシャww"},{"win_team_name":"イカ","win_team_mvp":"さおりん"},{"win_team_name":"イカ","win_team_mvp":"Seiryu"},{"win_team_name":"イカ","win_team_mvp":"HMスプライバさんじ"},{"win_team_name":"イカ","win_team_mvp":"miyutake"},{"win_team_name":"タコ","win_team_mvp":"ろうもん"},{"win_team_name":"タコ","win_team_mvp":"スコップ"},{"win_team_name":"タコ","win_team_mvp":"ガッキー"},{"win_team_name":"タコ","win_team_mvp":"も"},{"win_team_name":"イカ","win_team_mvp":"ソラ"},{"win_team_name":"タコ","win_team_mvp":"トリニティ"},{"win_team_name":"イカ","win_team_mvp":"はるまり"},{"win_team_name":"イカ","win_team_mvp":"あおい.fzk"},{"win_team_name":"タコ","win_team_mvp":"まこっちゃん"},{"win_team_name":"イカ","win_team_mvp":"シレン"},{"win_team_name":"タコ","win_team_mvp":"もりのひと"},{"win_team_name":"イカ","win_team_mvp":"ふしゅ"},{"win_team_name":"タコ","win_team_mvp":"なほたる"},{"win_team_name":"イカ","win_team_mvp":"ぷりん MIN"},{"win_team_name":"タコ","win_team_mvp":"GTŁ◇アカザ"},{"win_team_name":"タコ","win_team_mvp":"ブーちゃん"},{"win_team_name":"イカ","win_team_mvp":"シラス"},{"win_team_name":"イカ","win_team_mvp":"ケイリュウ"},{"win_team_name":"イカ","win_team_mvp":"すらいむ"},{"win_team_name":"タコ","win_team_mvp":"だいすけ"},{"win_team_name":"タコ","win_team_mvp":"ショーゴ"},{"win_team_name":"イカ","win_team_mvp":"カズ"},{"win_team_name":"イカ","win_team_mvp":"ワラにぃ"},{"win_team_name":"タコ","win_team_mvp":"モジ"},{"win_team_name":"タコ","win_team_mvp":"AKY.3*"},{"win_team_name":"イカ","win_team_mvp":"ダ・メーポ"},{"win_team_name":"タコ","win_team_mvp":"Rinsyu"},{"win_team_name":"イカ","win_team_mvp":"*コマさん*☆IKA"},{"win_team_name":"タコ","win_team_mvp":"ナヲエ"},{"win_team_name":"イカ","win_team_mvp":"マヒロ"},{"win_team_name":"イカ","win_team_mvp":"higapin"},{"win_team_name":"イカ","win_team_mvp":"ニドネ"},{"win_team_name":"イカ","win_team_mvp":"くまぴよ"},{"win_team_name":"イカ","win_team_mvp":"オフトゥン"},{"win_team_name":"イカ","win_team_mvp":"カネキ"},{"win_team_name":"タコ","win_team_mvp":"うまいイカしうまい"},{"win_team_name":"タコ","win_team_mvp":"かげひな"},{"win_team_name":"タコ","win_team_mvp":"しょしんしゃ"},{"win_team_name":"タコ","win_team_mvp":"りょうた"},{"win_team_name":"タコ","win_team_mvp":"イエローぺんぎん"},{"win_team_name":"イカ","win_team_mvp":"りり"},{"win_team_name":"タコ","win_team_mvp":"infel yor"},{"win_team_name":"タコ","win_team_mvp":"あふろぼんばー"},{"win_team_name":"タコ","win_team_mvp":"ゆたんぽ"},{"win_team_name":"イカ","win_team_mvp":"こうちゃ"},{"win_team_name":"イカ","win_team_mvp":"なー"},{"win_team_name":"タコ","win_team_mvp":"けとる"},{"win_team_name":"イカ","win_team_mvp":"とまと"},{"win_team_name":"タコ","win_team_mvp":"にじる"},{"win_team_name":"イカ","win_team_mvp":"ひまわり"},{"win_team_name":"タコ","win_team_mvp":"みさきち"}]
json
// Copyright (c) 2020, QuantStack and XVega Contributors // // Distributed under the terms of the BSD 3-Clause License. // // The full license is in the file LICENSE, distributed with this software. #ifndef XVEGA_MARK_SQUARE_HPP #define XVEGA_MARK_SQUARE_HPP #include "../marks.hpp" namespace xv { struct mark_square : public mark<mark_square> { // Square Mark Properties XPROPERTY(xtl::xoptional<double>, mark_square, size); XVEGA_API mark_square(); }; XVEGA_API void to_json(nl::json&, const mark_square&); } #endif
cpp
West Indies cricket captain Darren Sammy said his bowlers gave away 20 runs too many which allowed India to raise what proved to be a winning total in their one-off Twenty20 match here on Saturday. West Indies cricket captain Darren Sammy said his bowlers gave away 20 runs too many which allowed India to raise what proved to be a winning total in their one-off Twenty20 match here on Saturday. Chasing 160, West Indies went down by 16 runs, their first T20 loss to India, Sammy admitted his side lacked belief to rotate the strike and play spinners adequately. “We gave them over 70 runs in the final five overs,” he said. But batting was no better and no less than 50 balls or 8. 2 overs of the West Indian innings were dot balls. “When chasing such a competitive total, there is no way you can play so many dot balls and still expect to win,” he said. The obvious inference was the inability of batsmen to rotate strike, a malaise which has undone the West Indians many a times. “We hope it would improve. We do practice a lot but then it comes down to belief in the middle. We now have batting coach in Desmond Haynes and I expect things to improve,” suggested Sammy. Sammy’s ire was also reserved for the pitch in the middle where the ball turned square and it played right into hands of three Indians spinners who conceded only 75 runs from their combined 12 overs. “We have been having this issue with the pitch right through, even against Pakistan. Our coach Ottis Gibson has drawn attention to it but then it is not in our hands,” he said. Sammy hoped the situation would improve in the one-dayers, which start tomorrow, once proven players such as Kieron Pollard, Dwayne Bravo and Ramnaresh Sarwan returned to the side. “We have won the last two one-dayers of ours so there is a bit of momentum. The return of these stars would obviously be a help,” he said. Ironically, while West Indies made a late rally to match the Indians’ total, mercurial Chris Gayle was spotted sitting in the Trini Posse stand and enjoying the match. He is in town for the annual awards ceremony of the West Indies Players Association (WIPA) but what Sammy must have wished was his presence in the middle too. The first and second one-day international would be played at this very venue on Monday and Wednesday.
english
import { Callable } from '../util/callable' import * as mocha from 'mocha' import * as chai from 'chai' import * as chaiAsPromised from 'chai-as-promised' chai.use(chaiAsPromised) chai.should() class TestCallable extends Callable<any> { __call__(): any { return 1 } } describe('callable', () => { it('should call', () => { let tc = new TestCallable() tc().should.equal(1) }) })
typescript
<reponame>tdg5-cookbooks/docker_registry # docker_registry Installs and manages a docker container running the docker registry. For more information see: - [Deploying a registry server](https://github.com/docker/distribution/blob/master/docs/deploying.md) - [Registry Configuration Reference](https://github.com/docker/distribution/blob/master/docs/configuration.md)
markdown
{ "vorgangId": "154723", "VORGANG": { "WAHLPERIODE": "12", "VORGANGSTYP": "Selbständiger Antrag von Ländern auf Entschließung", "TITEL": "Entschließung des Bundesrates zur Novellierung der Verpackungsverordnung (G-SIG: 12021853)", "INITIATIVE": "Hamburg", "AKTUELLER_STAND": "Nicht abgeschlossen - Einzelheiten siehe Vorgangsablauf", "SIGNATUR": "", "GESTA_ORDNUNGSNUMMER": "", "WICHTIGE_DRUCKSACHE": { "DRS_HERAUSGEBER": "BR", "DRS_NUMMER": "643/93", "DRS_TYP": "Antrag" }, "EU_DOK_NR": "", "SCHLAGWORT": [ "Abfallverwertung", "Duales System Deutschland Gesellschaft für Abfallvermeidung und Sekundärrohstoffgewinnung mbH", { "_fundstelle": "true", "__cdata": "Verpackungsverordnung" } ], "ABSTRAKT": "Aufforderung an die BRg, die rechtlichen Regelungen zur Entsorgung von Verpackungsabfällen grundlegend neuzuordnen, u.a. durch: eine Verpflichtung, Massengetränke nur noch in Mehrwegverpackungen zu verkaufen; Erlaß einer Mehrwegverordnung; Kennzeichnung von Verpackungen hinsichtlich ihrer Entsorgung; Sammlung nur solcher Verpackungsabfälle, die zweifelsfrei ökologisch sinnvoll verwertet werden können; Entscheidung der Frage der Verwertungsfähigkeit auf Basis wissenschaftlicher Bewertungen, etwa durch das Umweltbundesamt; Erhebung einer Abgabe für nicht verwertbare Verpackungen; Verbot umweltschädlicher Verpackungen " }, "VORGANGSABLAUF": { "VORGANGSPOSITION": [ { "ZUORDNUNG": "BR", "URHEBER": "Länderantrag, Urheber : Hamburg ", "FUNDSTELLE": "10.09.1993 - BR-Drucksache 643/93" }, { "ZUORDNUNG": "BR", "URHEBER": "Ausschusszuweisung", "FUNDSTELLE": "24.09.1993 - BR-Plenarprotokoll 660, S. 401D", "FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/brp/660.pdf#P.401", "PERSOENLICHER_URHEBER": [ { "VORNAME": "Peter", "NACHNAME": "Zumkley", "FUNKTION": "MdBR", "FUNKTIONSZUSATZ": "Sen BevollmBund", "BUNDESLAND": "Hamburg", "AKTIVITAETSART": "Rede (zu Protokoll gegeben)", "SEITE": "428B-429C/Anl" }, { "VORNAME": "Uwe", "NACHNAME": "Beckmeyer", "FUNKTION": "MdBR", "FUNKTIONSZUSATZ": "Sen Häfen u. Sen Bundesangel", "BUNDESLAND": "Bremen", "AKTIVITAETSART": "Rede (zu Protokoll gegeben)", "SEITE": "429C-431A/Anl" }, { "VORNAME": "Clemens", "NACHNAME": "Stroetmann", "FUNKTION": "Staatssekr.", "RESSORT": "Bundesministerium für Umwelt, Naturschutz und Reaktorsicherheit", "AKTIVITAETSART": "Rede (zu Protokoll gegeben)", "SEITE": "431A-432B/Anl" } ], "VP_ABSTRAKT": "Mittlg: S.401D - Ausschußzuweisung: AfUmwelt (fdf), FinanzA, InnenA, WirtschA" }, { "ZUORDNUNG": "BR", "URHEBER": "Empfehlungen der Ausschüsse, Urheber : Ausschuss für Innere Angelegenheiten, Ausschuss für Umwelt, Naturschutz und Reaktorsicherheit, Finanzausschuss, Wirtschaftsausschuss ", "FUNDSTELLE": "18.04.1994 - BR-Drucksache 317/94", "VP_ABSTRAKT": "Vorlage einer gemeinsamen Neufassung aus Drsn 637/93 und 643/93 unter dem Titel \"Entschließung des Bundesrates zur Novellierung der Verpackungsverordnung und zur Abfallvermeidung\"" }, { "ZUORDNUNG": "BR", "URHEBER": "Plenarantrag, Urheber : Schleswig-Holstein ", "FUNDSTELLE": "26.04.1994 - BR-Drucksache 317/1/94", "VP_ABSTRAKT": "Änderungen Ziffer 10 in Drs 317/94" }, { "ZUORDNUNG": "BR", "URHEBER": "Absetzung von der TO", "FUNDSTELLE": "29.04.1994 - BR-Plenarprotokoll 668, S. 129B", "FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/brp/668.pdf#P.129", "VP_ABSTRAKT": "Mittlg: S.402D - Absetzung von TO" } ] } }
json
<gh_stars>10-100 { "description": "An exploration of the architectural challenges within government and how the Ministry of Justice is introducing true digital transformation by tackling the underlying problems within the system.\n\nOver the last couple of years the UK Government has delivered the first wave of Digital Services but they have been hampered by integrations with legacy systems locked away inside walled gardens and immutable monoliths.\n\nMicroservice architecture offers both a compelling alternative and an achievable plan to slay these lumbering giants by slicing them up into smaller systems which do one thing well, have proportionate security and are highly connected over less trusted networks.\n\nThis talk will explore the far-reaching consequences of adopting microservice architecture in government, particularly focusing on real examples inside Criminal Justice.", "favorite": "0", "length": "50:59", "likes": "0", "recorded": "2016-06-08", "speakers": [ "stephen-strudwick" ], "tags": [], "thumbnail_url": "https://i.ytimg.com/vi/AYIYrYsF8dE/hqdefault.jpg", "title": "Monoliths to Microservices: Transforming the architecture of Criminal Justice", "videos": [ { "code": "AYIYrYsF8dE", "type": "youtube" } ], "views": "190" }
json
Memphis Grizzlies rising star Desmond Bane trash-talks LeBron James by saying his ‘footsteps ain’t scary’ after the King was slow to get back on defense. The Memphis Grizzlies have been one of the surprise packages in the league this season. Currently sitting with a 36-18 record, they are the 4th seed in the Western Conference and look like a dark horse when it comes to the playoffs this year. Despite being one of the youngest teams in the NBA, Memphis don’t back down from anyone. Even if it’s the King. When they went up against LeBron James earlier this year, the Grizzlies, especially Desmond Bane was constantly in his face and had to be separated multiple times. Ja Morant and Desmond Bane reveal their thoughts on dispute with LeBron James. While Ja Morant and Desmond Bane have turned the franchise from “Grit and Grind” to “Showtime” Grizzlies, the squad still possess have a grit synonymous with the Memphis teams of old. Sometimes, youth can bring with it a certain audacity and confidence. That appears to be the case with the Grizzlies. As the Grizzlies’ lead swells to 17 early in the third quarter of the Jan. 9 game, the Lakers call timeout and Morant makes a detour to reply to a front-row fan who taunted him after a turnover the previous possession, several of his teammates strut and celebrate on the Crypto.com Arena court. But all this Grizzlies fun is too much for LeBron James, who didn’t make it past the free-throw line in the backcourt during Memphis’ latest highlight. A minute later, a Lakers turnover leads to another fast break for the Grizzlies. Bane swishes a trailer 3 — wide open because James is slow getting back in transition — and lets the all-time great know about it: “All of us on our team pretty much grew up watching [James] play. All of us are still fans of this guy. We know he’s one of the greatest ever to touch a basketball, but inside those four lines, if you’re buddy-buddy, you’re lost. It’s clear by now that the Grizzlies squad fears absolutely no one. And that sentiment will not change even if the opponent is one of the best players ever. With the way the seeding is currently, there is a high chance that the Grizzlies could meet LeBron James and Co in the playoffs, and if that does happen, get your popcorn ready! Because it’s gonna be must see TV.
english
RBSE Rajasthan Board 5th Result 2023 Link: The Rajasthan Board of Secondary Education (RBSE), Bikarner declared Class 5 final exams results today at 1:30 pm. Over 14 lakh BSER Class 5 students appeared for the exam this year. The Bikaner Board has activated the Class 5 result link at the official website – rajshaladarpan. nic. in. Once released, students or their guardians will be able to check their scores at the official websites — rajeduboard. rajasthan. gov. in and rajshaladarpan. nic. in. Students check their result by entering their roll number and date of birth on the link given on the homepage. The score card will have various details such as student’s name, roll number, school’s name, marks and more. The RBSE Class 5 exams were conducted from April 13 to 21. Over 14 students appeared for the exam.
english
{"generator": "bdist_wheel (0.26.0)", "summary": "Lightweight, super fast library for sequence alignment using edit (Levenshtein) distance.", "extensions": {"python.details": {"project_urls": {"Home": "https://github.com/Martinsos/edlib"}, "contacts": [{"email": "<EMAIL>", "name": "<NAME>", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}}}, "keywords": ["edit", "distance", "levenshtein", "align", "sequence", "bioinformatics"], "license": "MIT", "metadata_version": "2.0", "name": "edlib", "version": "1.2.3.post1"}
json
<filename>tpls/pressio/include/pressio/ops/eigen/ops_rank1_update.hpp /* //@HEADER // ************************************************************************ // // ops_rank1_update.hpp // Pressio // Copyright 2019 // National Technology & Engineering Solutions of Sandia, LLC (NTESS) // // Under the terms of Contract DE-NA0003525 with NTESS, the // U.S. Government retains certain rights in this software. // // Pressio is licensed under BSD-3-Clause terms of use: // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // 2. 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. // // 3. 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. // // Questions? Contact <NAME> (<EMAIL>) // // ************************************************************************ //@HEADER */ #ifndef OPS_EIGEN_OPS_RANK1_UPDATE_HPP_ #define OPS_EIGEN_OPS_RANK1_UPDATE_HPP_ namespace pressio{ namespace ops{ //---------------------------------------------------------------------- // computing: V = a * V + b * V1 //---------------------------------------------------------------------- template<typename T, typename T1, typename ScalarType> ::pressio::mpl::enable_if_t< ::pressio::Traits<T>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T1>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T>::rank == 1 and ::pressio::Traits<T1>::rank == 1 > update(T & v, const ScalarType a, const T1 & v1, const ScalarType b) { static_assert (::pressio::are_scalar_compatible<T,T1>::value, "Arguments are not scalar compatible"); auto & v_n = impl::get_native(v); const auto & v_n1 = impl::get_native(v1); v_n = a*v_n + b*v_n1; } //---------------------------------------------------------------------- // overloads for computing this: V = a * V + b * V1 + c * V2 //---------------------------------------------------------------------- template<typename T, typename T1, typename T2, typename ScalarType> ::pressio::mpl::enable_if_t< ::pressio::Traits<T>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T1>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T2>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T>::rank == 1 and ::pressio::Traits<T1>::rank == 1 and ::pressio::Traits<T2>::rank == 1 > update(T & v, const ScalarType &a, const T1 & v1, const ScalarType &b, const T2 & v2, const ScalarType &c) { static_assert (::pressio::are_scalar_compatible<T,T1,T2>::value, "Arguments are not scalar compatible"); auto & v_n = impl::get_native(v); const auto & v_n1 = impl::get_native(v1); const auto & v_n2 = impl::get_native(v2); v_n = a*v_n + b*v_n1 + c*v_n2; } //---------------------------------------------------------------------- // overloads for computing: // V = a * V + b * V1 + c * V2 + d * V3 //---------------------------------------------------------------------- template<typename T, typename T1, typename T2, typename T3, typename ScalarType> ::pressio::mpl::enable_if_t< ::pressio::Traits<T>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T1>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T2>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T3>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T>::rank == 1 and ::pressio::Traits<T1>::rank == 1 and ::pressio::Traits<T2>::rank == 1 and ::pressio::Traits<T3>::rank == 1 > update(T & v, const ScalarType &a, const T1 & v1, const ScalarType &b, const T2 & v2, const ScalarType &c, const T3 & v3, const ScalarType &d) { static_assert (::pressio::are_scalar_compatible<T,T1,T2,T3>::value, "Arguments are not scalar compatible"); auto & v_n = impl::get_native(v); const auto & v_n1 = impl::get_native(v1); const auto & v_n2 = impl::get_native(v2); const auto & v_n3 = impl::get_native(v3); v_n = a*v_n + b*v_n1 + c*v_n2 + d*v_n3; } //---------------------------------------------------------------------- // overloads for computing: // V = a * V + b * V1 + c * V2 + d * V3 + e * V4 //---------------------------------------------------------------------- template< typename T, typename T1, typename T2, typename T3, typename T4, typename ScalarType> ::pressio::mpl::enable_if_t< ::pressio::Traits<T>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T1>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T2>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T3>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T4>::package_identifier == PackageIdentifier::Eigen and ::pressio::Traits<T>::rank == 1 and ::pressio::Traits<T1>::rank == 1 and ::pressio::Traits<T2>::rank == 1 and ::pressio::Traits<T3>::rank == 1 and ::pressio::Traits<T4>::rank == 1 > update(T & v, const ScalarType &a, const T1 & v1, const ScalarType &b, const T2 & v2, const ScalarType &c, const T3 & v3, const ScalarType &d, const T4 & v4, const ScalarType &e) { static_assert (::pressio::are_scalar_compatible<T,T1,T2,T3,T4>::value, "Arguments are not scalar compatible"); auto & v_n = impl::get_native(v); const auto & v_n1 = impl::get_native(v1); const auto & v_n2 = impl::get_native(v2); const auto & v_n3 = impl::get_native(v3); const auto & v_n4 = impl::get_native(v4); v_n = a*v_n + b*v_n1 + c*v_n2 + d*v_n3 + e*v_n4; } }}//end namespace pressio::ops #endif // OPS_EIGEN_OPS_RANK1_UPDATE_HPP_
cpp
H5.define("System.Tuple"); H5.define("System.Tuple$1", function (T1) { return { }; }); H5.define("System.Tuple$2", function (T1, T2) { return { }; }); H5.define("System.Tuple$3", function (T1, T2, T3) { return { }; }); H5.define("System.Tuple$4", function (T1, T2, T3, T4) { return { }; }); H5.define("System.Tuple$5", function (T1, T2, T3, T4, T5) { return { }; }); H5.define("System.Tuple$6", function (T1, T2, T3, T4, T5, T6) { return { }; }); H5.define("System.Tuple$7", function (T1, T2, T3, T4, T5, T6, T7) { return { }; }); H5.define("System.Tuple$8", function (T1, T2, T3, T4, T5, T6, T7, TRest) { return { }; });
javascript
{"ast":null,"code":"import Routes from \"./Routes\";\nexport default Routes;","map":{"version":3,"sources":["/Users/jakubstawiarz/Desktop/react_native/projekt/src/routes/index.js"],"names":["Routes"],"mappings":"AAAA,OAAOA,MAAP;AAEA,eAAeA,MAAf","sourcesContent":["import Routes from './Routes'\n\nexport default Routes\n"]},"metadata":{},"sourceType":"module"}
json
{ "name": "@cardstack/requirejs-monaco-ember-polyfill", "version": "0.0.1", "lockfileVersion": 1 }
json
Bangladeshi police Tuesday killed nine suspected Islamist extremists believed to be planning another mass attack following a deadly cafe assault this month, the country’s police chief said. Police who stormed their hideout said the men belonged to a Bangladeshi group blamed for the Dhaka cafe attack in which 20 hostages, mostly foreigners, were killed. “From police intelligence sources we learnt that they were planning to carry out a major incident. We conducted the operation to foil any such incident,” national police chief A. K. M Shahidul Hoque told reporters. “They were wearing the same extremist dress as worn in the Gulshan attack,” he said, referring to the upscale neighbourhood where the cafe was located. One other suspected extremist was shot and arrested during the raid in the capital’s Kalyanpur neighbourhood, according to police. Hoque said all 10 were suspected members of the homegrown extremist group Jamayetul Mujahideen Bangladesh (JMB), which local authorities blamed for the Dhaka cafe attack. But a police official said one wounded survivor of the raid had said all of those inside the hideout were followers of the Islamic State group. “His name is Hasan. He said they are IS members,” the police official told AFP on condition of anonymity. He said the 25-year-old was a cook and came from the northern district of Bogra, home to two of the five cafe attackers. IS claimed responsibility for the July 1 attack on the Holey Artisan Bakery in Gulshan in which two policemen and 20 hostages were killed, among them nine Italians and seven Japanese nationals. Gruesome images of the carnage were posted on media sites who have links to IS before the military stormed the cafe. But Bangladeshi authorities have rejected the IS link, saying international jihadist networks have no presence in the world’s third largest Muslim-majority nation. Hoque said the nine killed in Tuesday’s operation had no connection with the IS, even though they were wearing the group’s signature black robes and Islamic turbans. “We have not found any link with IS. They are all local Bangladeshi militants,” he said. Prime Minister Sheikh Hasina thanked police for a “very successful operation” and said their swift action had saved the country from a “terrible situation”. “We don’t want Bangladesh to become a sanctuary for the terrorist activities,” she said, adding her government would eliminate extremism at all costs. Police said they had cordoned off a five-storey apartment building in Dhaka after suspects threw a small bomb at officers. A gunfight ensued during which cries of “Allahu Akbar” (“God is Greatest”) could be heard through the night as hundreds of heavily armed police and elite security forces sealed off the area. Police said they had found university identity cards at the scene and were checking whether they were genuine. Three were from the North South University (NSU), which hit the headlines when seven students were convicted and jailed for the killing of an atheist blogger. Two of the Gulshan café attackers were also former students of NSU. “We are now checking whether these university ID cards are genuine or they just used the cards to rent the flat,” deputy commissioner of Dhaka Metropolitan Police Masud Ahmed told AFP. Bangladesh is reeling from a wave of deadly attacks by Islamist extremists. Days after the cafe siege, gunmen attacked the country’s largest Eid prayer rally where some 250,000 people were marking the end of Ramadan, killing at least three people. Some 80 secular activists, foreigners and members of religious minorities have been killed since 2013, with IS and the South Asian branch of Al-Qaeda claiming responsibility for many of those attacks. The government and police, however, say homegrown extremists are responsible. They have launched a nationwide crackdown, arresting more than 11,000 people. Among them were over a dozen suspected extremists including one of JMB’s regional heads.
english
package phoenix.idex.ServerRequestCallBacks; /** * Created by Ravinder on 3/19/16. */ public interface JSONOStringCallBack { void jsonString(String JSONString); }
java
Watch as South Africa captain Faf du Plessis laments his side's failure to do the basics well enough to beat India in the semi-finals of the ICC World Twenty20. South Africa conceded nine wides as India chased down their target of 173 with five balls to spare, something du Plessis was quick to pinpoint as one of the reasons why his side are now out of the competition. "If you're looking to win a World Cup, it's real important that you do the small things and the basics well," du Plessis said at his post-match press conference. "And that's definitely one of the things that was a real... not a match-changer, but it definitely put us on the back foot. "Nine extra balls, I mean not just the extra run you give away, but you have to consider the amount of runs they score from that extra ball. "So, you're probably looking at an extra 15-20 run game-swing, just by bowling nine wides. "But like I said, if you want to win these games, you've got to beat quality opposition like India, "You've got to make sure that those 'one per cent-ers' you do really well." India will now play Sri Lanka in the final on Sunday (6th April). Video provided by SNTV and will be available until 19th April 2014, after which time the video player above will display the latest available content.
english
Defending champion Paula Badosa advanced into the quarterfinals with a 6-4, 6-4 victory over US Open finalist Leylah Fernandez here in California on Tuesday. Defending champion Paula Badosa advanced into the quarterfinals with a 6-4, 6-4 victory over US Open finalist Leylah Fernandez here in California on Tuesday. Badosa came up with a straight-set win over US Open finalist Leylah Fernandez of Canada. The 24-year-old Badosa extended her unbeaten streak in the California desert and will face either Veronika Kudermetova or Marketa Vondrousova for a semifinal spot. Day 9 of Indian Wells starred with many anticipated clashes, and most of the battles were won by top-seeded players. No. 3 seed Iga Swiatek navigate a 4-6, 6-2, 6-3 victory over former World No. 1 and Grand Slam champion, Angelique Kerber of Germany. After an early exchange, Kerber took charge in the first set with 3-2 and the German held on to seal the one-set lead. An unreturnable serve closed the match, and Swiatek had once again pulled off a three-set comeback. Swiatek will now face No. 25 seed Madison Keys of the United States in the quarter-final clash. While, Sorana Cirstea crashed out as fellow Romanian Simona Halep rallied for a 6-1, 6-4 victory. The 24th-seeded Halep closed the match with a win in 86 minutes. In the quarters, Halep will take on Petra Martic of Croatia. Martic upset 28th seed Liudmila Samsonova 7-6(6), 6-4 in an hour and 54 minutes. ( With inputs from ANI )
english
The opener got to the milestone in the first over of the West Indian second innings. Chris Gayle became the 45th batsman and eighth West Indian in Test history to get to 7,000 Test runs when he made 10 runs against New Zealand at his home ground of Kingston in Jamaica. Gayle, playing in his 100th Test match, needed 67 runs at the start of the match to get to 7,000 runs. He managed to score 64 runs in the first innings, thereby falling short by just three runs. However, he got the runs in the very first over of the second innings, as he struck Trent Boult for two boundaries. He was dismissed soon thereafter, caught behind of Tim Southee. West Indies went to tea at a precarious 15 for two chasing down a mammoth 403. The two batsmen in the middle were Kirk Edwards and Darren Bravo.
english
{"snapper-init.js":"sha256-PEwpCW7vMs8IiUS5qzbTXGJyI1wtqYZV9oYmyhSqRmU=","snapper.css":"sha256-e5nlqbsPa+pJhLayIMZpT2HElvx5PtvdnF80Aa/n2xs=","snapper.js":"sha256-WYOP654iiyHLVkW+JTd8OnAmmFyhx4+NR/Ef8rmGQQc=","snapper.min.css":"sha256-H5PUg+3OW1l8NccMWjatUsUDcIMwm4FthiYB3/vBoVY=","snapper.min.js":"sha256-EZpFGaZH2+I3mUc+CqiNgo3QxXlQo8srAk/qPp5GAP4="}
json
<filename>src/dialog/animation-stack.json {"index.html":"<html><head><link href=\"https://cdn.syncfusion.com/ej2/material.css\" rel=\"stylesheet\">\n\n <link href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" rel=\"stylesheet\">\n\n <style>\n body{\n touch-action:none;\n }\n </style></head><body><div class=\"stackblitz-container {{theme}}\">\n<div id=\"target\" class=\"col-lg-12 control-section\" style=\"height:100%; width:100%;\">\n <div id=\"customization\">\n <div class=\"animate\">\n <button class=\"text btn-animate\" id=\"Zoom\">Zoom in/out</button>\n </div>\n <div class=\"animate\">\n <button class=\"text btn-animate\" id=\"FlipXDown\">FlipX Down</button>\n </div>\n <div class=\"animate\">\n <button class=\"text btn-animate\" id=\"FlipXUp\">FlipX Up</button>\n </div>\n <div class=\"animate\">\n <button class=\"text btn-animate\" id=\"FlipYLeft\">FlipY Left</button>\n </div>\n <div class=\"animate\">\n <button class=\"text btn-animate\" id=\"FlipYRight\">FlipY Right</button>\n </div>\n <div id=\"dialog\"></div>\n </div>\n</div>\n\n \n<style>\n html,\n body, \n #container {\n height: 100%;\n overflow: hidden;\n width: 100%;\n position: relative;\n min-height: 400px;\n }\n\n .text {\n text-transform: capitalize;\n }\n \n #customization {\n display: inline-block;\n margin: 0 auto;\n }\n\n .animate {\n display: inline-block;\n padding: 10px;\n }\n .control-wrapper{\n text-align: center;\n }\n</style>\n\n\n</div></body></html>","index.ts":"{{ripple}}\r\nimport { Dialog, DialogEffect } from '@syncfusion/ej2-popups';\r\nimport { enableRipple } from '@syncfusion/ej2-base';\r\nimport { Button } from '@syncfusion/ej2-buttons';\r\n/**\r\n * Animation Dialog sample\r\n */\r\n\r\n \r\n //Render Button components\r\n let zoom: Button = new Button({ cssClass: 'e-outline', isPrimary: true });\r\n zoom.appendTo('#Zoom');\r\n\r\n let flipXDown: Button = new Button({ cssClass: 'e-outline', isPrimary: true });\r\n flipXDown.appendTo('#FlipXDown');\r\n\r\n let flipXUp: Button = new Button({ cssClass: 'e-outline', isPrimary: true });\r\n flipXUp.appendTo('#FlipXUp');\r\n\r\n let flipYLeft : Button = new Button({ cssClass: 'e-outline', isPrimary: true });\r\n flipYLeft.appendTo('#FlipYLeft');\r\n\r\n let flipYRight: Button = new Button({ cssClass: 'e-outline', isPrimary: true });\r\n flipYRight.appendTo('#FlipYRight');\r\n\r\n enableRipple(true);\r\n // Initialization of Dialog component\r\n let dialog: Dialog = new Dialog({\r\n // Enables the header\r\n header: 'Animation Dialog',\r\n // Enables the close icon button in header\r\n showCloseIcon: true,\r\n // Dialog content\r\n content: '<span>The dialog is configured with animation effect. It is opened or closed with \"Zoom In or Out\" animation.</span>',\r\n // The Dialog shows within the target element\r\n target: document.getElementById('target'),\r\n width: '285px',\r\n isModal: true,\r\n animationSettings: { effect: 'Zoom' },\r\n buttons: [{\r\n click: dlgButtonClick,\r\n buttonModel: { content: 'Hide', isPrimary: true }\r\n }],\r\n });\r\n // Render initialized Dialog\r\n dialog.appendTo('#dialog');\r\n\r\n function dlgButtonClick(): void {\r\n dialog.hide();\r\n }\r\n let list: NodeList = document.getElementsByClassName('btn-animate');\r\n\r\n for (let i: number = 0 ; i < list.length; i++) {\r\n list[i].addEventListener('click', (e: any): void => {\r\n onAnimationChange(e);\r\n });\r\n }\r\n function onAnimationChange(e: any): void {\r\n let effects: DialogEffect = e.target.id;\r\n let txt: string = e.target.parentElement.innerText;\r\n txt = (txt === 'Zoom In/Out') ? 'Zoom In or Out' : txt;\r\n dialog.content = 'The dialog is configured with animation effect. It is opened or closed with \"' + txt + '\" animation.';\r\n dialog.animationSettings = { effect: effects, duration: 400 };\r\n dialog.show();\r\n }\r\n"}
json
A 17-year-old boy allegedly hit his girlfriend with a metal rod, killing her after he got to know that she was chatting with another boy on Instagram, police said on Saturday. The girl’s body was found in a field in Jharkhand’s Godda district on Thursday morning after she went missing on Holi, they said. The boy and the girl, who studied in the same class at a reputed English medium school in Urjanagar, were in a relationship. Infuriated after getting to know that she was talking to another boy on Instagram, he hit her with an iron rod on Wednesday evening when she was on the way to her friend’s place to celebrate Holi, a police officer said. The accused has confessed his crime during interrogation, Superintendent of Police Nathu Singh Meena said. The metal rod used in the crime and the girl’s mobile phone were found a few metres away from where the body was found, he said. A special team was formed with Sub-Divisional Police Officer (SDPO) Shiv Shankar Tiwary as its head to investigate the case. The boy has been sent to a remand home, Meena said. Read all the Latest India News here(This story has not been edited by News18 staff and is published from a syndicated news agency feed - PTI)
english
<reponame>ekzemplaro/librivox_database<filename>ext/filter_ext/ft_1691.json {"id_1691":{"title":"City of God","language":"English","totaltime":"40:27:16","url_librivox":"http://librivox.org/the-city-of-god-by-st-augustine-of-hippo/","url_iarchive":"http://www.archive.org/details/city_of_god_ds_librivox","readers":["1324"],"authors":"79","genres":"Religion"}}
json
The National Stock Exchange (NSE) banned the trading in futures and options (F&O) of up to six stocks/securities on Thursday, July 13, 2023. Hindustan Copper, Punjab National Bank, Manappuram Finance, Indiabulls Housing Finance, ZEEL, and India Cements are the stocks/securities placed on the National Stock Exchange’s futures and options (F&O) ban for trade on Thursday. According to the NSE, the stocks mentioned above are prohibited in the F&O sector because they have exceeded 95% of the market-wide position limit (MWPL). During the F&O ban period, no new positions are permitted for F&O contracts in that stock. “The Indian equity markets started the session on a mild note, but the benchmark index refrained from continuing its northward journey and witnessed a small bout of profit booking during the initial half of the session. The bulls failed to withhold the higher grounds, which led the market to slip slightly in the red, signifying a sense of timidity at upper levels. Though nothing significant has been changed on the technical structure as the overall posture remains upbeat,” said Osho Krishan, Sr. Analyst, Technical & Derivative Research, Angel One Ltd. “As far as levels are concerned, a decisive closure beyond the sturdy hurdle of 19500-19520 could only trigger fresh longs in the system. Whereas on the downside, 19300 is likely to provide a cushion from a short-term blip, while the sacrosanct support lies around the bullish gap of 19200-19235 in the comparable period. Meanwhile, we remain sanguine with broader-market participation, which is likely to contribute to the buoyant undertone in the market,” Osho Krishan added. Punjab National Bank, Manappuram Finance, Delta Corp, Indiabulls Housing Finance, ZEEL, India Cements, Granules India, and BHEL stocks/securities were put on the F&O ban earlier on Wednesday, July 12, 2023. On Wednesday, NSE Nifty 50 and BSE Sensex ended in the red. The Nifty 50 sank 55.10 points or 0.28% to 19,384.30 and Sensex tumbled 223.94 points or 0.34% to 65,393.90. In sectoral indices, Bank Nifty plunged 105.60 points or 0.24% to 44,639.45, Nifty Financial Services fell 0.23%, Nifty IT tanked 0.71% and Nifty Private Bank declined 0.29% while Nifty FMCG rose 0.18%, Nifty Pharma gained 0.30% and Nifty PSU Bank surged 0.83%.
english
{"randomColor.js":"sha256-M2r6Q8LKhLE3OlvaHmi69IDLEKSBQ+RQuILS9bNStFY=","randomColor.min.js":"sha256-vCJSGCdP2sT9Jc9MZTjK2oXAvE5bvDZ+hcFOqh0X/fc="}
json
{ "name": "the_cat", "version": "1.0.0", "description": "A discord bot who send all messages was sent by everyone in only one channel for the moderation", "main": "index.js", "scripts": { "start": "node index.js" }, "repository": { "type": "git", "url": "https://github.com/Acaretia/The-Cat-that-tells.git" }, "bugs": { "url": "https://github.com/Acaretia/The-Cat-that-tells/issues" }, "keywords": [ "le", "chat", "qui", "racontait", "des", "histoires", "discord", "bot", "channel", "moderation", "messages" ], "author": "Acaretia", "license": "MIT", "dependencies": { "discord.js": "^11.4.2" } }
json
import numpy as np import json import cPickle import matplotlib.pyplot as plt from theano import config import matplotlib.cm as cmx import matplotlib.colors as colors from sklearn.metrics import roc_curve from utils.loader import load_train_data from utils.config_name_creator import * from utils.data_scaler import scale_across_features, scale_across_time from cnn.conv_net import ConvNet config.floatX = 'float32' def get_cmap(N): color_norm = colors.Normalize(vmin=0, vmax=N - 1) scalar_map = cmx.ScalarMappable(norm=color_norm, cmap='hsv') def map_index_to_rgb_color(index): return scalar_map.to_rgba(index) return map_index_to_rgb_color def plot_train_probs(subject, data_path, model_path): with open(model_path + '/' + subject + '.pickle', 'rb') as f: state_dict = cPickle.load(f) cnn = ConvNet(state_dict['params']) cnn.set_weights(state_dict['weights']) scalers = state_dict['scalers'] d = load_train_data(data_path, subject) x, y = d['x'], d['y'] x, _ = scale_across_time(x, x_test=None, scalers=scalers) if state_dict['params']['scale_time'] \ else scale_across_features(x, x_test=None, scalers=scalers) cnn.batch_size.set_value(x.shape[0]) probs = cnn.get_test_proba(x) fpr, tpr, threshold = roc_curve(y, probs) c = np.sqrt((1-tpr)**2+fpr**2) opt_threshold = threshold[np.where(c==np.min(c))[0]] print opt_threshold x_coords = np.zeros(len(y), dtype='float64') rng = np.random.RandomState(42) x_coords += rng.normal(0.0, 0.08, size=len(x_coords)) plt.scatter(x_coords, probs, c=y, s=60) plt.title(subject) plt.show() if __name__ == '__main__': with open('SETTINGS.json') as f: settings_dict = json.load(f) data_path = settings_dict['path']['processed_data_path'] + '/' + create_fft_data_name(settings_dict) model_path = settings_dict['path']['model_path'] + '/' + create_cnn_model_name(settings_dict) subjects = ['Patient_1', 'Patient_2', 'Dog_1', 'Dog_2', 'Dog_3', 'Dog_4', 'Dog_5'] for subject in subjects: print '***********************', subject, '***************************' plot_train_probs(subject, data_path, model_path)
python
<filename>rhusics-ecs/src/physics/setup.rs use std::fmt::Debug; use std::ops::{Add, Mul, Sub}; use cgmath::{ BaseFloat, Basis2, EuclideanSpace, InnerSpace, Matrix3, Point2, Point3, Quaternion, Rotation, Transform, Vector3, Zero, }; use collision::dbvt::TreeValue; use collision::{Bound, ComputeBound, Contains, Discrete, HasBound, SurfaceArea, Union}; use core::{ ApplyAngular, BroadPhase, GetId, Inertia, NarrowPhase, PartialCrossProduct, PhysicsTime, Pose, Primitive, }; use specs::prelude::{Component, DispatcherBuilder, Entity, Tracked}; /// Create systems and add to a `Dispatcher` graph. /// /// ### Parameters /// /// - `dispatcher`: The dispatcher to add the systems to. /// - `broad_phase`: Broad phase to use /// - `narrow_phase`: Narrow phase to use /// - `spatial`: If spatial or basic collision detection should be used /// /// ### Type parameters: /// /// - `P`: Shape primitive /// - `T`: Pose (transform) /// - `B`: Bounding volume /// - `D`: Broad phase data, usually `TreeValueWrapped`. /// - `Y`: Collider /// - `V`: Broad phase algorithm /// - `N`: Narrow phase algorithm /// - `R`: Rotational quantity, `Basis2` or `Quaternion` /// - `A`: Angular velocity, `Scalar` or `Vector3` /// - `I`: Inertia, `Scalar` or `Matrix3` /// - `DT`: Time quantity, usually `DeltaTime` /// - `O`: Internal type used to abstract cross product for 2D vs 3D, `Scalar` or `Vector3` pub fn setup_dispatch<'a, 'b, P, T, B, D, Y, V, N, R, A, I, DT, O>( dispatcher: &mut DispatcherBuilder<'a, 'b>, broad_phase: V, narrow_phase: N, spatial: bool, ) where V: BroadPhase<D> + BroadPhase<(usize, D)> + 'static, N: NarrowPhase<P, T, B, Y> + 'static, P: Primitive + ComputeBound<B> + Send + Sync + 'static, P::Point: Debug + Send + Sync + 'static, <P::Point as EuclideanSpace>::Scalar: BaseFloat + Send + Sync + 'static, <P::Point as EuclideanSpace>::Diff: InnerSpace + PartialCrossProduct<<P::Point as EuclideanSpace>::Diff, Output = O> + Debug + Send + Sync + 'static, T: Debug + Component + Pose<P::Point, R> + Transform<P::Point> + Send + Sync + Clone + 'static, T::Storage: Tracked, Y: Default + Send + Sync + 'static, B: Bound<Point = P::Point> + Send + Sync + 'static + Union<B, Output = B> + Clone + Contains<B> + SurfaceArea<Scalar = <P::Point as EuclideanSpace>::Scalar> + Discrete<B> + Debug, (usize, D): HasBound<Bound = B>, D: TreeValue<Bound = B> + HasBound<Bound = B> + From<(Entity, B)> + GetId<Entity> + Send + Sync + 'static, R: Rotation<P::Point> + ApplyAngular<<P::Point as EuclideanSpace>::Scalar, A> + Send + Sync + 'static, I: Inertia<Orientation = R> + Mul<A, Output = A> + Mul<O, Output = O> + Send + Sync + 'static, A: Mul<<P::Point as EuclideanSpace>::Scalar, Output = A> + PartialCrossProduct< <P::Point as EuclideanSpace>::Diff, Output = <P::Point as EuclideanSpace>::Diff, > + Zero + Clone + Copy + Send + Sync + 'static, DT: PhysicsTime<<P::Point as EuclideanSpace>::Scalar> + Default + Send + Sync + 'static, O: PartialCrossProduct< <P::Point as EuclideanSpace>::Diff, Output = <P::Point as EuclideanSpace>::Diff, > + Send + Sync + 'static, for<'c> &'c A: Sub<O, Output = A> + Add<O, Output = A>, { use { BasicCollisionSystem, ContactResolutionSystem, CurrentFrameUpdateSystem, NextFrameSetupSystem, SpatialCollisionSystem, SpatialSortingSystem, }; dispatcher.add( CurrentFrameUpdateSystem::<P::Point, R, A, T>::new(), "physics_solver_system", &[], ); dispatcher.add( NextFrameSetupSystem::<P::Point, R, I, A, T, DT>::new(), "next_frame_setup", &["physics_solver_system"], ); if spatial { dispatcher.add( SpatialSortingSystem::<P, T, D, B, Y>::new(), "spatial_sorting_system", &["next_frame_setup"], ); dispatcher.add( SpatialCollisionSystem::<P, T, (usize, D), B, Y>::new() .with_broad_phase(broad_phase) .with_narrow_phase(narrow_phase), "collision_system", &["spatial_sorting_system"], ); } else { dispatcher.add( BasicCollisionSystem::<P, T, D, B, Y>::new() .with_broad_phase(broad_phase) .with_narrow_phase(narrow_phase), "collision_system", &["next_frame_setup"], ); } dispatcher.add( ContactResolutionSystem::<P::Point, R, I, A, O, T>::new(), "contact_resolution", &["collision_system"], ); } /// Create systems for 2D and add to a `Dispatcher` graph. /// /// ### Parameters /// /// - `dispatcher`: The dispatcher to add the systems to. /// - `broad_phase`: Broad phase to use /// - `narrow_phase`: Narrow phase to use /// - `spatial`: If spatial or basic collision detection should be used /// /// ### Type parameters: /// /// - `S`: Scalar type, `f32` or `f64` /// - `P`: Shape primitive /// - `T`: Pose (transform) /// - `B`: Bounding volume /// - `D`: Broad phase data, usually `TreeValueWrapped`. /// - `Y`: Collider /// - `V`: Broad phase algorithm /// - `N`: Narrow phase algorithm /// - `DT`: Time quantity, usually `DeltaTime` pub fn setup_dispatch_2d<'a, 'b, S, P, T, B, D, Y, V, N, DT>( dispatcher: &mut DispatcherBuilder<'a, 'b>, broad_phase: V, narrow_phase: N, spatial: bool, ) where V: BroadPhase<D> + BroadPhase<(usize, D)> + 'static, N: NarrowPhase<P, T, B, Y> + 'static, P: Primitive<Point = Point2<S>> + ComputeBound<B> + Send + Sync + 'static, S: Inertia<Orientation = Basis2<S>> + BaseFloat + Send + Sync + 'static, T: Component + Pose<Point2<S>, Basis2<S>> + Debug + Transform<Point2<S>> + Send + Sync + Clone + 'static, T::Storage: Tracked, Y: Default + Send + Sync + 'static, B: Bound<Point = Point2<S>> + Send + Sync + 'static + Union<B, Output = B> + Clone + Contains<B> + SurfaceArea<Scalar = S> + Discrete<B> + Debug, (usize, D): HasBound<Bound = B>, D: TreeValue<Bound = B> + HasBound<Bound = B> + From<(Entity, B)> + GetId<Entity> + Send + Sync + 'static, DT: PhysicsTime<S> + Default + Send + Sync + 'static, for<'c> &'c S: Sub<S, Output = S> + Add<S, Output = S>, { setup_dispatch::<P, T, B, D, Y, V, N, Basis2<S>, S, S, DT, S>( dispatcher, broad_phase, narrow_phase, spatial, ); } /// Create systems for 3sD and add to a `Dispatcher` graph. /// /// ### Parameters /// /// - `dispatcher`: The dispatcher to add the systems to. /// - `broad_phase`: Broad phase to use /// - `narrow_phase`: Narrow phase to use /// - `spatial`: If spatial or basic collision detection should be used /// /// ### Type parameters: /// /// - `S`: Scalar type, `f32` or `f64` /// - `P`: Shape primitive /// - `T`: Pose (transform) /// - `B`: Bounding volume /// - `D`: Broad phase data, usually `TreeValueWrapped`. /// - `Y`: Collider /// - `V`: Broad phase algorithm /// - `N`: Narrow phase algorithm /// - `DT`: Time quantity, usually `DeltaTime` pub fn setup_dispatch_3d<S, P, T, B, D, Y, V, N, DT>( dispatcher: &mut DispatcherBuilder, broad_phase: V, narrow_phase: N, spatial: bool, ) where V: BroadPhase<D> + BroadPhase<(usize, D)> + 'static, N: NarrowPhase<P, T, B, Y> + 'static, P: Primitive<Point = Point3<S>> + ComputeBound<B> + Send + Sync + 'static, S: BaseFloat + Send + Sync + 'static, T: Component + Pose<Point3<S>, Quaternion<S>> + Transform<Point3<S>> + Debug + Send + Sync + Clone + 'static, T::Storage: Tracked, Y: Default + Send + Sync + 'static, B: Bound<Point = Point3<S>> + Send + Sync + 'static + Union<B, Output = B> + Clone + Contains<B> + SurfaceArea<Scalar = S> + Discrete<B> + Debug, (usize, D): HasBound<Bound = B>, D: TreeValue<Bound = B> + HasBound<Bound = B> + From<(Entity, B)> + GetId<Entity> + Send + Sync + 'static, DT: PhysicsTime<S> + Default + Send + Sync + 'static, { setup_dispatch::<P, T, B, D, Y, V, N, Quaternion<S>, Vector3<S>, Matrix3<S>, DT, Vector3<S>>( dispatcher, broad_phase, narrow_phase, spatial, ); } #[cfg(test)] mod tests { use super::*; use collide2d::{BodyPose2, SweepAndPrune2, GJK2}; use collide3d::{BodyPose3, SweepAndPrune3, GJK3}; use collision::dbvt::TreeValueWrapped; use collision::primitive::{Primitive2, Primitive3}; use collision::{Aabb2, Aabb3}; use DeltaTime; #[test] fn test_dispatch() { let mut builder = DispatcherBuilder::new(); setup_dispatch::< Primitive2<f32>, BodyPose2<f32>, Aabb2<f32>, TreeValueWrapped<Entity, Aabb2<f32>>, (), _, _, _, _, f32, DeltaTime<f32>, _, >(&mut builder, SweepAndPrune2::new(), GJK2::new(), false); } #[test] fn test_dispatch_2d() { let mut builder = DispatcherBuilder::new(); setup_dispatch_2d::< _, Primitive2<f32>, BodyPose2<f32>, Aabb2<f32>, TreeValueWrapped<Entity, Aabb2<f32>>, (), _, _, DeltaTime<f32>, >(&mut builder, SweepAndPrune2::new(), GJK2::new(), false); } #[test] fn test_dispatch_3d() { let mut builder = DispatcherBuilder::new(); setup_dispatch_3d::< _, Primitive3<f32>, BodyPose3<f32>, Aabb3<f32>, TreeValueWrapped<Entity, Aabb3<f32>>, (), _, _, DeltaTime<f32>, >(&mut builder, SweepAndPrune3::new(), GJK3::new(), false); } }
rust
<reponame>iamhuy/rumour-veracity-verification {"contributors":null,"truncated":false,"text":"<NAME> shooting latest: 12 dead and gunmen still at large http:\/\/t.co\/6jRqXgPogM http:\/\/t.co\/hO7lvftma5","in_reply_to_status_id":null,"id":552802654641225728,"favorite_count":22,"source":"<a href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\">TweetDeck<\/a>","retweeted":false,"coordinates":null,"entities":{"symbols":[],"user_mentions":[],"hashtags":[],"urls":[{"url":"http:\/\/t.co\/6jRqXgPogM","indices":[65,87],"expanded_url":"http:\/\/i100.io\/W5R7DKe","display_url":"i100.io\/W5R7DKe"}],"media":[{"expanded_url":"http:\/\/twitter.com\/thei100\/status\/552802654641225728\/photo\/1","display_url":"pic.twitter.com\/hO7lvftma5","url":"http:\/\/t.co\/hO7lvftma5","media_url_https":"https:\/\/pbs.twimg.com\/media\/B6vy8E6CUAAQQ-4.jpg","id_str":"552802493206253568","sizes":{"small":{"h":176,"resize":"fit","w":340},"large":{"h":530,"resize":"fit","w":1024},"medium":{"h":310,"resize":"fit","w":600},"thumb":{"h":150,"resize":"crop","w":150}},"indices":[88,110],"type":"photo","id":552802493206253568,"media_url":"http:\/\/pbs.twimg.com\/media\/B6vy8E6CUAAQQ-4.jpg"}]},"in_reply_to_screen_name":null,"id_str":"552802654641225728","retweet_count":120,"in_reply_to_user_id":null,"favorited":false,"user":{"follow_request_sent":false,"profile_use_background_image":true,"profile_text_color":"333333","default_profile_image":false,"id":2461887810,"profile_background_image_url_https":"https:\/\/pbs.twimg.com\/profile_background_images\/489772334010474496\/UqlyIb4G.png","verified":false,"profile_location":null,"profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/572746090546360320\/VGdAsU3b_normal.png","profile_sidebar_fill_color":"DDEEF6","entities":{"url":{"urls":[{"url":"http:\/\/t.co\/gfReaEz2dn","indices":[0,22],"expanded_url":"http:\/\/i100.independent.co.uk\/","display_url":"i100.independent.co.uk"}]},"description":{"urls":[]}},"followers_count":53449,"profile_sidebar_border_color":"FFFFFF","id_str":"2461887810","profile_background_color":"FFFFFF","listed_count":671,"is_translation_enabled":false,"utc_offset":null,"statuses_count":11588,"description":"Putting the 'the' into i100, a news site from the @independent and @theipaper. Bringing you the stories you want to read, in the order you want to read them.","friends_count":54,"location":"London","profile_link_color":"B30000","profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/572746090546360320\/VGdAsU3b_normal.png","following":false,"geo_enabled":false,"profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/2461887810\/1405517989","profile_background_image_url":"http:\/\/pbs.twimg.com\/profile_background_images\/489772334010474496\/UqlyIb4G.png","name":"i100","lang":"en","profile_background_tile":false,"favourites_count":0,"screen_name":"thei100","notifications":false,"url":"http:\/\/t.co\/gfReaEz2dn","created_at":"Thu Apr 24 16:23:55 +0000 2014","contributors_enabled":false,"time_zone":null,"protected":false,"default_profile":false,"is_translator":false},"geo":null,"in_reply_to_user_id_str":null,"possibly_sensitive":false,"lang":"en","created_at":"Wed Jan 07 12:23:18 +0000 2015","in_reply_to_status_id_str":null,"place":null,"extended_entities":{"media":[{"expanded_url":"http:\/\/twitter.com\/thei100\/status\/552802654641225728\/photo\/1","display_url":"pic.twitter.com\/hO7lvftma5","url":"http:\/\/t.co\/hO7lvftma5","media_url_https":"https:\/\/pbs.twimg.com\/media\/B6vy8E6CUAAQQ-4.jpg","id_str":"552802493206253568","sizes":{"small":{"h":176,"resize":"fit","w":340},"large":{"h":530,"resize":"fit","w":1024},"medium":{"h":310,"resize":"fit","w":600},"thumb":{"h":150,"resize":"crop","w":150}},"indices":[88,110],"type":"photo","id":552802493206253568,"media_url":"http:\/\/pbs.twimg.com\/media\/B6vy8E6CUAAQQ-4.jpg"}]}}
json
- 47 min ago 5 Best Microwave Ovens For Your Kitchen: Deals To Consider As Amazon Sale 2023 Is Nearing! - Movies Mammootty And Yusuff Ali's Epic London Encounter Sets Social Media Ablaze! - Travel Have you been to Vishveshwaraya Falls in Mandya yet? If not, this is the best time! Obesity may put children at increased risk of hip disease, a condition that can cause life-long morbidity, suggests new research. Slipped Capital Femoral Epiphysis (SCFE) is the most common hip disease of adolescence. The condition always requires surgery, can cause significant pain, and often leads to a hip replacement in adolescence or early adulthood. "Ultimately this study helps us to better understand one of the main diseases affecting the hip in childhood," said one of the study authors Daniel Perry from the Institute of Translational Medicine, University of Liverpool, in Britain. Children with a SCFE experience a decrease in their range of motion, and are often unable to complete hip flexion or fully rotate the hip inward. Early recognition of SCFE is important as the deformity may worsen if the slip remains untreated. In an effort to identify children at higher risk of this condition, the researchers examined hospital and community based records to explore factors associated with SCFE, and explanations for diagnostic delays. All of the records examined were of individuals under 16-years-of-age with a diagnosis of SCFE and whose electronic medical record was held by one of 650 primary care practices in Britain between 1990 and 2013. Using the height and weight of children recorded in the notes at some point before the disease was diagnosed, the researchers were able to identify that obese children appear at highest risk of this condition, according to the study published in the journal Archives of Disease in Childhood. "This is the best evidence available linking this disease to childhood obesity -- which makes this condition to be one of the only obesity-related disease that can cause life-long morbidity starting in childhood," Perry said. - pregnancy parentingAre Pregnancy Cravings What The Baby Likes? - pregnancy parentingWorld Brain Tumour Day: Is It Common For Kids To Get Brain Tumour? What Are The Signs?
english
* { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */ } body { -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */ -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */ -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */ background-color: #E4E4E4; background-attachment: fixed; font-family: 'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif; font-size: 12px; height: 100%; margin: 0px; padding: 0px; text-transform: uppercase; width: 100%; } /* Landscape layout (with min-width) */ @media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {} h1 { font-size: 24px; font-weight: normal; margin: 0px; overflow: visible; padding: 0px; text-align: center; } .event { border-radius: 4px; -webkit-border-radius: 4px; color: #FFFFFF; font-size: 12px; margin: 0px 30px; padding: 2px 0px; text-align: center; } .event.listening { background-color: #333333; display: block; } .event.received { background-color: #4B946A; display: none; } @keyframes fade { from { opacity: 1.0; } 50% { opacity: 0.4; } to { opacity: 1.0; } } @-webkit-keyframes fade { from { opacity: 1.0; } 50% { opacity: 0.4; } to { opacity: 1.0; } } .blink { animation: fade 3000ms infinite; -webkit-animation: fade 3000ms infinite; } .scan-result { overflow-y: scroll; } .scan-result p { font-size: 1.2em; text-align: center; } .scan-action { position: fixed; bottom: 1em; margin-left: 15%; } .scan-action button { padding: 10px; margin: 5px; border-radius: 5px; font-size: 2em; outline: none; color: #fff; border: 0; } #start-btn { background-color: #25da5b; } #start-btn:active { background-color: #29a74f; } #clear-btn { background-color: #da257b } #clear-btn:active { background-color: #981855; } #always-btn { background-color: #debd28; } #always-btn:active { background-color: #af951f; }
css
import express = require('express'); export let userRouter: express.Router = express.Router(); let userScripts = require('./../controllers/userScripts'); let auth = require('./auth'); userRouter.post('/register', auth.optional, userScripts.register); userRouter.post('/login', auth.optional, userScripts.login); userRouter.get('/all/:userId?', auth.required, userScripts.getAll); userRouter.put('/follow', auth.required, userScripts.follow); userRouter.put('/unfollow',auth.required, userScripts.unFollow); userRouter.get('/user', auth.optional, function (req, res){res.status(200).send({message: 'It works'})}); userRouter.put('/activity/:userId/:slice', auth.required, userScripts.updateActivity); userRouter.get('/profile/:userId', auth.required, userScripts.getProfile); userRouter.get('/followers/:userId', auth.required, userScripts.getFollowers); userRouter.get('/following/:userId', auth.required, userScripts.getFollowing); userRouter.get('/posts/:userId/:slice', auth.required, userScripts.getPosts); userRouter.get('/events/:userId/:slice', auth.required, userScripts.getEvents); userRouter.get('/events/:userId', auth.required, userScripts.getEventsFromUser); userRouter.get('/search', auth.required, userScripts.search); userRouter.post('/image/edit', auth.required, userScripts.editImage); userRouter.get('/image', auth.required, userScripts.getImage); userRouter.delete('/:userId', auth.required, userScripts.dropOut); userRouter.post('/message', auth.required, userScripts.postMessage); userRouter.get('/messages/:userId', auth.required, userScripts.getMessages); //Receiver wants to ACK senders' messages userRouter.put('/message/:senderId/:receiverId', auth.optional, userScripts.ackMessages); userRouter.put('/erasmusInfo/:userId', auth.optional, userScripts.addErasmusInfo); userRouter.get('/erasmusInfo/:userId', auth.optional, userScripts.getErasmusInfo); export default userRouter;
typescript
# Generated by Django 3.0.8 on 2020-07-28 14:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('sites', '0002_alter_domain_unique'), ('database', '0002_auto_20190129_2304'), ] operations = [ migrations.AddField( model_name='constance', name='site', field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='sites.Site'), ), migrations.AlterField( model_name='constance', name='key', field=models.CharField(max_length=255), ), migrations.AlterUniqueTogether( name='constance', unique_together={('key', 'site')}, ), ]
python
package at.rocworks.oa4j.logger.query; import at.rocworks.oa4j.logger.data.Dp; import at.rocworks.oa4j.var.TimeVar; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; import at.rocworks.oa4j.var.Variable; import org.json.simple.JSONArray; import org.json.simple.JSONObject; public class DpGetPeriodResultOracle extends DpGetPeriodResult { private final SimpleDateFormat fmtDate = new SimpleDateFormat(TimeVar.FMT_DATE_OA_MS); private final JSONArray arr = new JSONArray(); private String json; public DpGetPeriodResultOracle() { super(); fmtDate.setTimeZone(TimeZone.getTimeZone("UTC")); } private String toJSONString() { if (json == null) { json = arr.toJSONString(); } return json; } @SuppressWarnings("unchecked") @Override public void addValue(Dp dp, Date ts, Object value) { JSONObject obj = new JSONObject(); // column obj.put("t", fmtDate.format(ts)); obj.put("e", dp.getFQN()); obj.put("v", value); synchronized (arr) { arr.add(obj); } if (json!=null) json=null; size++; } @Override public void addVariable(Dp dp, Date ts, Variable value) { addValue(dp, ts, value.getValueObject()); } @Override public byte[] getBytes() { return toJSONString().getBytes(); } @Override public DpGetPeriodResult getChunk() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } }
java
<filename>tests/packagedcode/data/godeps/medium2/Godeps.json { "ImportPath": "github.com/sanbornm/go-selfupdate/selfupdate", "GoVersion": "go1.3", "Deps": [ { "ImportPath": "bitbucket.org/kardianos/osext", "Comment": "null-13", "Rev": "5d3ddcf53a508cc2f7404eaebf546ef2cb5cdb6e" }, { "ImportPath": "github.com/inconshreveable/go-update", "Rev": "3f0466666779bd2143f368a207b0641f0ed536e8" }, { "ImportPath": "github.com/kr/binarydist", "Rev": "9955b0ab8708602d411341e55fffd7e0700f86bd" } ] }
json
Compressing files is now easier! A free and simple car racing game! Twitch: The much-awaited app is finally here! Gacha Life: Create an adorable anime avatar and shape your own virtual world. oCam: Capture your screen with ease. Silhouette Studio - Make your designs come true.
english
So among the present three musketeers Spice is the best? What is this Xolo One and how are you saying that it will get L? What is this Xolo One and how are you saying that it will get L? So among the present three musketeers Spice is the best? What is this Xolo One and how are you saying that it will get L? My opinion of Spice is pretty poor based on the handsets seen in the hands of few cousins. No idea about their service. However I have read elsewhere too that one of these 3 is best it could be spice itself. And are they the only one to bundle a MicroSD card in the box? Some one said it is bundled. Only for MMX? Please continue discussion there. [MENTION=77264]Vyom[/MENTION], close this thread.
english
{ "name": "@microsoft/atlas-design", "version": "1.0.0", "description": "The Atlas Design System used by Microsoft's Developer Relations platform.", "private": true, "homepage": "https://github.com/microsoft/atlas-design", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "lint": "npm run --prefix css lint", "lint:fix": "npm run lint --fix", "start": "npm run serve:site", "serve:site": "npm run --prefix site start", "serve:css": "npm run --prefix css start", "build:css": "npm run --prefix css build", "build:site": "npm run --prefix site build", "build:tokens": "npm run --prefix css tokens", "toc": "npm run --prefix site toc", "prettier": "prettier --write \"**/*.{scss,ts,js,json,yml,md}\"", "prettier-check": "prettier --check \"**/*.{scss,ts,js,json,yml}\" --loglevel debug", "pretty-quick": "pretty-quick --staged --pattern \"**/*.{scss,ts,js,json,yml}\"", "prestart": "npm run build:tokens", "prebuild:site": "npm run build:tokens", "release": "npx changeset publish" }, "repository": { "type": "git", "url": "https://github.com/microsoft/atlas-design" }, "workspaces": { "packages": [ "css", "plugins/*", "site" ] }, "installConfig": { "pnp": false }, "keywords": [ "microsoft", "atlas", "design-system", "css", "scss" ], "devDependencies": { "@changesets/cli": "^2.14.1", "husky": "4.3.0", "prettier": "^2.2.1", "pretty-quick": "3.0.2" }, "husky": { "hooks": { "pre-commit": "npm run pretty-quick", "pre-push": "npm run lint" } }, "prettier": { "useTabs": true, "singleQuote": true, "printWidth": 100, "trailingComma": "none", "arrowParens": "avoid", "endOfLine": "auto" }, "author": "<NAME>", "license": "MIT" }
json
Kerala SSLC results 2018: The result of Secondary School Leaving Certificate (SSLC) examinations has been released by the Department of Higher Secondary Education today, on May 3 at 10:30 am. As many as 4,31,762 have qualified the exam and the overall pass percentage stands at 97. 84 which is nearly 2 per cent higher than previous year’s 95. 98. A total of 34,313 students got A+ in all subjects. A total of 1565 schools, comprising of 517 government schools and 659 aided schoools scored 100 per cent results this year. Additionally, Kerala education minister C Raveendranath also declared the results of THSLC, THSLC (Hearing impaired), AHSLC, SSLC (hearing impaired) examinations. Among districts, Ernakulam has registered highest pass percentage at 99. 12 per cent while Wayanad district has the least pass percentage – 93. 87. The Kerala Board will conduct the Say exam from May 21 to 25, results of which will be announced in the first week of June. Those who wish for apply for revaluation can do so online starting from May 5 till May 10. As per reports, the admission process for Plus One will begin on May 9. All those students who are eagerly waiting for the results can check their respective scores at the official websites — kerala. gov. in and keralaresults. nic. in. The examinations were started from March 7 and concluded on March 28 at nearly 2,935 centres in the state and nine each in Lakshadweep and the Middle East. About 4. 41 lakh students appeared for the SSLC exam. 544 students appeared in nine examination centres in the Gulf, out of which 538 students qualified for higher education, with a pass percentage of an impressive 98. 9. The highest number of students (2435 of them, to be precise) getting A plus in all their subjects are from Malappuram district in Kerala. In case due to heavy traffic, students are unable to open the same, they can check out their scores at various other partner websites such as — results. itschool. gov. in, cdit. org, prd. kerala. gov. in, results. nic. in, educationkerala. gov. in and examresults. net/kerala. The results will also be available at their official app, “Saphalam” which is available for download from Google Playstore. As per sources, the evaluation process was over last week and the result is expected to be out by May 3. This year due to paper leak, the Kerala Board had to re-conduct the Maths paper. The mathematics examination held on March 20 was cancelled after authorities found similarities between question in the examination paper and those in the model question paper of Merit. Last year too, the Kerala education department had to postpone the maths examination and the re-examination was conducted on March 30.
english
اَوَلَمْ يَرَ الْاِنْسَانُ اَنَّا خَلَقْنٰهُ مِنْ نُّطْفَةٍ فَاِذَا هُوَ خَصِيْمٌ مُّبِيْنٌ ( يس: ٧٧ ) Awalam yaral insaanu annaa khalaqnaahu min nutfatin fa-izaa huwa khaseemum mubeen (Yāʾ Sīn 36:77) Sahih International: Does man not consider that We created him from a [mere] sperm-drop – then at once he is a clear adversary? (Ya-Sin [36] : 77) Did man not see that We have created him from a drop of semen? Then suddenly he stood as an open adversary (to Us). Do people not see that We have created them from a sperm-drop, then—behold!—they openly challenge ˹Us˺? Does man not see that We have created him from a sperm drop, then he becomes a clear adversary, Has not man regarded how that We created him of a sperm-drop? Then lo, he is a manifest adversary. Can man not see that We created him from a drop of fluid? Yet- lo and behold!- he disputes openly, Beholdest not man that We have created him from a sperm? Yet lo! he is a manifest disputer? Doth not man see that it is We Who created him from sperm? yet behold! he (stands forth) as an open adversary! Does man not see that We created him of a sperm drop, and lo! he is flagrantly contentious? Does not man see We created him from a drop of semen? Even then he becomes an open contender, And did not man see that We have created him from a drop of semen? Yet he is an open quarreller! Does not man see that We created him from a drop of [seminal] fluid, and, behold, he is an open contender!? Has human not considered that We have created him from (so slight a beginning as) a drop of (seminal) fluid? Yet, he turns into an open, fierce adversary (selfishly disputing against the truth). Has not a human being seen how We have created him out of a (very insignificant) sperm drop? Yet behold! he is an open adversary (to Us). Does not the human/mankind see/understand that We created him from a drop/male`s or female`s secretion , so then he is a clear/evident disputer/adversary/arguer? And did not man see that We have created him from a drop of semen? Yet he is an open quarreller! Does not man see that We have created him from a small seed? Then lo! He is an open disputant. Does not man see that We have created him from Nutfah (mixed male and female discharge semen drops). Yet behold! He (stands forth) as an open opponent. So let not their speech grieve thee. Surely We know what they do in secret and what they do openly. Does not man see that We have created him from the small seed? Then lo! he is an open disputant. Hath not man seen that We have created him from a drop of seed? Yet lo! he is an open opponent. Has the human being not considered that We have created him from a drop of fluid. He is openly quarrelsome. Has the human not seen how We created him from a drop (of sperm)? Yet he is a clear opponent. Does not man see that We have created him from Nutfah. Yet behold he (stands forth) as an open opponent. Does not man see that We created him from a drop. Yet there he is, flagrantly contentious, Does the human being not consider that We created him from a seed? Yet he becomes a fierce adversary. Or has man -- namely, [the like of] al-`s b. W'il -- not seen, [has he not] realised, that We created him from a drop, of sperm [and so on in stages] until We made him powerful and strong. Then lo! he is an open adversary, severely antagonistic towards Us, [openly] making this manifest by his denial of resurrection. Mujahid, Ikrimah, Urwah bin Az-Zubayr, As-Suddi and Qatadah said, "Ubayy bin Khalaf, may Allah curse him, came to the Messenger of Allah with a dry bone in his hand, which he was crumbling and scattering in the air, saying, `O Muhammad! Are you claiming that Allah will resurrect this.' He said; Yes, Allah, may He be exalted, will cause you to die, then He will resurrect you and will gather you into the Fire." Then these Ayat at the end of Surah Ya Sin were revealed; Does not man see that We have created him from Nutfah. -- until the end of the Surah. Ibn Abi Hatim recorded that Ibn Abbas, may Allah be pleased with him, said, "Al-`As bin Wa'il took a bone from the bed of a valley and crumbled it in his hand, then he said to the Messenger of Allah;`Will Allah bring this back to life after it has disintegrated.' The Messenger of Allah said; Yes, Allah will cause you to die, then He will bring you back to life, then He will make you enter Hell. Then the Ayat at the end of Surah Ya Sin were revealed." This was recorded by Ibn Jarir from Sa`id bin Jubayr. (Does not man (Al-Insan) see...) is generic, applying to all those who deny the Resurrection. that We have created him from Nutfah. Yet behold he (stands forth) as an open opponent. means, the one who is denying the resurrection, cannot see that the One Who initiated creation can recreate it. For Allah initiated the creation of man from semen of despised fluid, creating him from something insignificant, weak and despised, as Allah says; Did We not create you from a despised water? Then We placed it in a place of safety, for a known period. (77;20-22) Verily, We have created man from Nutfah. (76;2) which means, from a mixture of different fluids. The One Who created man from this weak Nutfah is not unable to recreate him after his death. Imam Ahmad recorded in his Musnad that Bishr bin Jahhash said, "One day the Messenger of Allah spat in his hand and put his finger on it, then the Messenger of Allah said; Allah, may He be exalted, says; "Son of Adam, how can you outrun Me when I have created you from something like this, and when I have fashioned you and formed you, you walk in your cloak on the earth and it groans beneath your tread. You accumulate and do not spend until the death rattle reaches your throat, then you say, `I want to give in charity,' but it is too late for charity."" It was also recorded by Ibn Majah. Allah says;
english
<filename>lda2vec/README.md # Topic Modeling with lda2vec ### Note: Use [this](https://github.com/Rochan-A/lda2vec) forked version of lda2vec. Original version can be found [here](https://github.com/cemoody/lda2vec) ## Files * `preprocess.py` Use the tokenized output from `parse.py` that can be found [here](https://github.com/Rochan-A/TopicModeling/blob/master/lda%26w2vec/parse.py). * Use either `filtered.txt` or `tokens.txt` as the input * `lda2vec_run.py` Executes model. Requires CUDA * `lda2vec_model.py` lda2vec (class) model ## Usage Generate the `corpus`, `data.npz`, `tokens` and `vocab` files. `$ python preprocess.py -h` ``` usage: preprocess.py [-h] [-i INPUT_PATH] [-o OUTPUT_PATH] optional arguments: -h, --help show this help message and exit -i INPUT_PATH, --input-path INPUT_PATH Path to tokenized sentences -o OUTPUT_PATH, --output-path OUTPUT_PATH Destination for parsed and preprocessed output ```
markdown
Callington Honey Fair 2023. Callington Honey Fair. Lanterns, Lights, & 'luminations 2023. Saltash Christmas Festival. Tavistock Town Hall Bedford Square PL19 0AE Tavistock Devon. Facebook event: https://www.facebook.com/events/3141905299409021/. Find and buy gifts and treats for Christmas that are unique at the best DIVERSE Christmas Market! Come and shop early for Christmas this year. We have everything from Christmas cards to sparkly jewellery, as well as candles, cookware, and Christmas roasts. All guests and visitors will enjoy a free day at Tavistock Town Hall, with a variety of stands to explore. The only thing that is allowed in the exhibitor space is a table measuring 6ft by 2ft. Each tree planted can sequester an estimated 0.3 tonnes CO2. You can read more about our trees here: https://www.diverse-events.com/plant-a-tree/.
english
Hiring an Office Assistant for Dubai. Helping organize and maintain office common areas. Greeting clients and visitors as needed. Handling incoming calls and other communications. Managing filing system. Recording information as needed. Organizing travel by booking accommodations and reservations needs as required. Updating paperwork, maintaining documents and word processing. Coordinating events as necessary. Maintaining supply inventory. Maintaining office equipment as needed. High School Diploma. Previous experience as an Office Assistant. Exceptional filing, record keeping, and organizational skills. Ability to liaise internally and externally on administrative matters. Working knowledge of printers, copiers, scanners, and fax machines. Advanced proficiency in managing documents, spreadsheets, and databases.
english
According to a recent report from TechRadar, Netflix is partnering with Telltale Games to bring game experiences to its TV service, starting with a Minecraft game. Netflix is now clarifying that it’s not a “game,” exactly, it’s an interactive story. The company announced a year ago it would begin experimenting with a new way to stream video, through “choose your own adventure”-style stories that allow viewers to pick what happens next. This allows for the same story to have multiple variations. It’s the sort of thing that would have never been possible through traditional linear TV, but is enabled through an online platform like Netflix. The stories could also make for a selling point for families with younger children, in terms of being a differentiating feature for its service. The company confirms that “Minecraft: Story Mode” is a licensed 5-episode interactive narrative series that will be coming to its service this fall, in partnership with Telltale. The gaming publisher Telltale Games already offers “Minecraft: Story Mode” across other platforms, including Steam, game consoles, Google Play and the App Store. While Telltale and others consider “Minecraft: Story Mode” to be a type of game, Netflix does not. It’s a narrative you work your way through, similar to the others, it believes. (The story does take place in the Minecraft universe, however.) “We don’t have any plans to get into gaming,” a Netflix spokesperson said, in response to TechRadar’s report. “There’s a broad spectrum of entertainment available today. Games have become increasingly cinematic, but we view this as interactive narrative storytelling on our service,” they explained. Meanwhile, the other gaming project TechRadar had uncovered – a game related to the Netflix hit “Stranger Things” – is something that will launch in Telltale’s platform at a later date, Netflix says. It’s not a game coming to Netflix’s service, and is instead part of Netflix’s ongoing marketing and title promotion efforts. The company already has a Stranger Things game today, and often promotes its shows in other ways on mobile. For example, it launched a standalone “Orange is the New Black” app back in 2014, and when it was promoting the new season of “Arrested Development,” it introduced a “FakeBlock” app. “Stranger Things” lends itself more to a mobile gaming format, though. And Netflix does use video games to drive awareness of its brand and content. As the company stated in a recent job posting for a Manager of Interactive Licensing: We are pursuing video games because we believe it will drive meaningful show awareness/buzz and allow fans to “play” our most popular content. We want the interactive category to help promote our titles so they become part of the zeitgeist for longer periods of time and we want to use games as a marketing tactic to capture demand and delight our member community. Of course, interactive stories do blur the line between games and narrative storytelling – something that’s a newer trend across online platforms these days. For example, one of Apple’s Design Award winners this year was a part-story, part-game called “Florence,” which involved both narrative elements and interactive features. To what extent these work as well on Netflix’s platform as they do on smartphones still remains to be seen, given that the format is still new to streaming services. Time will tell if it’s worth the continued investment, or if Netflix’s experimentation will one day conclude.
english
<reponame>BestFinderGit/apk-scrape { "name": "apk-scrape", "version": "1.0.0", "description": "Scrape and download APK using package identifier from https://apkpure.com", "main": "index.js", "bin": { "apk-scrape": "index.js" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "<NAME> <<EMAIL>> (https://hasanbayat.me)", "license": "MIT", "dependencies": { "async": "^2.6.0", "cheerio": "^1.0.0-rc.2", "commander": "^2.14.0", "got": "^8.0.3", "mkdirp": "^0.5.1" }, "repository": { "type": "git", "url": "git+https://github.com/EmpireWorld/apk-scrape.git" }, "keywords": [ "apk", "scrape", "scraping", "apkpure" ], "bugs": { "url": "https://github.com/EmpireWorld/apk-scrape/issues" }, "homepage": "https://github.com/EmpireWorld/apk-scrape#readme" }
json
use crate::error::Result; use crate::model::comments::*; use crate::schema::comments; use diesel::mysql::MysqlConnection; use diesel::prelude::*; pub fn create(conn: &MysqlConnection, new_comment: NewComment) -> Result<usize> { diesel::insert_into(comments::table) .values(&new_comment) .execute(conn) .map_err(|e| e.into()) } pub fn by_id(conn: &MysqlConnection, _id: u32) -> Result<Option<Comment>> { use crate::schema::comments::dsl::*; comments .filter(id.eq(_id)) .load(conn) .map_err(|e| e.into()) .map(|mut c| { if c.len() > 0 { Some(c.pop().unwrap()) } else { None } }) } pub fn by_post_id(conn: &MysqlConnection, _post_id: u32) -> Result<Vec<Comment>> { use crate::schema::comments::dsl::*; comments .filter(post_id.eq(_post_id)) .load(conn) .map_err(|e| e.into()) } pub fn delete(conn: &MysqlConnection, _id: u32) -> Result<usize> { use crate::schema::comments::dsl::*; diesel::delete(comments.filter(id.eq(_id))) .execute(conn) .map_err(|e| e.into()) }
rust
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { EuiLink, EuiLinkAnchorProps } from '@elastic/eui'; import React from 'react'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; // union type constisting of valid guide sections that we link to type DocsSection = '/apm/get-started' | '/x-pack' | '/apm/server' | '/kibana'; interface Props extends EuiLinkAnchorProps { section: DocsSection; path: string; } export function ElasticDocsLink({ section, path, children, ...rest }: Props) { const { docLinks } = useApmPluginContext().core; const baseUrl = docLinks.ELASTIC_WEBSITE_URL; const version = docLinks.DOC_LINK_VERSION; const href = `${baseUrl}guide/en${section}/${version}${path}`; return typeof children === 'function' ? ( children(href) ) : ( <EuiLink href={href} {...rest}> {children} </EuiLink> ); }
typescript
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>QuantumLibrary: Class Members</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">QuantumLibrary </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @license-end */ </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('functions_p.html','');}); /* @license-end */ </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all class members with links to the classes they belong to:</div> <h3><a id="index_p"></a>- p -</h3><ul> <li>page_size() : <a class="el" href="d4/df4/structBloomberg_1_1quantum_1_1StackTraitsProxy.html#a4ccf036102237f7e020686a816bf3cf7">Bloomberg::quantum::StackTraitsProxy</a> </li> <li>pageSize() : <a class="el" href="d7/d9d/structBloomberg_1_1quantum_1_1StackTraits.html#a978289fa448cd973472de70aa616f00d">Bloomberg::quantum::StackTraits</a> </li> <li>pinToCore() : <a class="el" href="d4/dd1/classBloomberg_1_1quantum_1_1IoQueue.html#a8d7bacf4e0aeb3b203df8b1b2aa83b46">Bloomberg::quantum::IoQueue</a> , <a class="el" href="d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a2b26630f2b788587cbfdc6b9cdfa32f5">Bloomberg::quantum::IQueue</a> , <a class="el" href="d8/d06/classBloomberg_1_1quantum_1_1TaskQueue.html#a538a6332f83626076d5850438bbcdcc9">Bloomberg::quantum::TaskQueue</a> </li> <li>pointer : <a class="el" href="d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html#aeb88577cc102c74bf30fa1f5e9148b06">Bloomberg::quantum::ContiguousPoolManager&lt; T &gt;</a> , <a class="el" href="d2/da6/structBloomberg_1_1quantum_1_1HeapAllocator.html#a34e0975aa00af1955e8d80447d7f56d6">Bloomberg::quantum::HeapAllocator&lt; T &gt;</a> , <a class="el" href="d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#afb0b543ebb88f939d5e2a0428d55a322">Bloomberg::quantum::StackAllocator&lt; T, SIZE &gt;</a> </li> <li>post() : <a class="el" href="d8/df7/classBloomberg_1_1quantum_1_1Context.html#ac928e4597e14090fa7c79dd108e307c8">Bloomberg::quantum::Context&lt; RET &gt;</a> , <a class="el" href="d0/da5/classBloomberg_1_1quantum_1_1Dispatcher.html#a5c160004cdf4b6c0a18bdaf138b650ac">Bloomberg::quantum::Dispatcher</a> , <a class="el" href="da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a826579f9aaf8b89a38bbc45c16e865b3">Bloomberg::quantum::DispatcherCore</a> , <a class="el" href="d5/dd1/structBloomberg_1_1quantum_1_1ICoroContext.html#a7e16a0f4dda08ea619bbd3997f31a51e">Bloomberg::quantum::ICoroContext&lt; RET &gt;</a> , <a class="el" href="d7/d45/classBloomberg_1_1quantum_1_1Sequencer.html#a937a0e6d89e61676c3f41fbac6113190">Bloomberg::quantum::Sequencer&lt; SequenceKey, Hash, KeyEqual, Allocator &gt;</a> </li> <li>postAll() : <a class="el" href="d7/d45/classBloomberg_1_1quantum_1_1Sequencer.html#ac9d8c07adb82569e164e9855bc276d88">Bloomberg::quantum::Sequencer&lt; SequenceKey, Hash, KeyEqual, Allocator &gt;</a> </li> <li>postAsyncIo() : <a class="el" href="d8/df7/classBloomberg_1_1quantum_1_1Context.html#a18431eacd784c497f727852c508597b5">Bloomberg::quantum::Context&lt; RET &gt;</a> , <a class="el" href="d0/da5/classBloomberg_1_1quantum_1_1Dispatcher.html#a24ea411ae684451cb800f2ef705095e3">Bloomberg::quantum::Dispatcher</a> , <a class="el" href="da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a2f58dcf2f653fb41460b97c48d467d5d">Bloomberg::quantum::DispatcherCore</a> , <a class="el" href="d5/dd1/structBloomberg_1_1quantum_1_1ICoroContext.html#aafa32c808db9c73262f5336b03f2055a">Bloomberg::quantum::ICoroContext&lt; RET &gt;</a> </li> <li>postedCount() : <a class="el" href="d5/de7/structBloomberg_1_1quantum_1_1IQueueStatistics.html#aba8248cf132ffc17dd27d7460f8e053b">Bloomberg::quantum::IQueueStatistics</a> , <a class="el" href="d1/d7b/classBloomberg_1_1quantum_1_1QueueStatistics.html#acf68d2d8726923dbe1e437901adec864">Bloomberg::quantum::QueueStatistics</a> </li> <li>postFirst() : <a class="el" href="d8/df7/classBloomberg_1_1quantum_1_1Context.html#a2dc486e2e5a28985565be243738d395b">Bloomberg::quantum::Context&lt; RET &gt;</a> , <a class="el" href="d0/da5/classBloomberg_1_1quantum_1_1Dispatcher.html#a1ea6c5d5a3355cc92a1ac989ba0731e5">Bloomberg::quantum::Dispatcher</a> , <a class="el" href="d5/dd1/structBloomberg_1_1quantum_1_1ICoroContext.html#a4563ab7eb43249f2ad8677935b0b002c">Bloomberg::quantum::ICoroContext&lt; RET &gt;</a> </li> <li>postImpl() : <a class="el" href="d8/df7/classBloomberg_1_1quantum_1_1Context.html#a244e5fc4adaabf4cbf383ccffbbafe2d">Bloomberg::quantum::Context&lt; RET &gt;</a> </li> <li>print() : <a class="el" href="d5/de7/structBloomberg_1_1quantum_1_1IQueueStatistics.html#a45ee33d36fa6bfdc9841ae533d1d94e9">Bloomberg::quantum::IQueueStatistics</a> , <a class="el" href="d1/d7b/classBloomberg_1_1quantum_1_1QueueStatistics.html#a4e680a3d7765f9a3f422ccacb67df395">Bloomberg::quantum::QueueStatistics</a> </li> <li>Promise : <a class="el" href="dc/d14/classBloomberg_1_1quantum_1_1Future.html#a38b7a1d0cb5a6365a03c19b76293e519">Bloomberg::quantum::Future&lt; T &gt;</a> , <a class="el" href="d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a0ad555bf9dfa709076983d66edd359d4">Bloomberg::quantum::Promise&lt; T &gt;</a> </li> <li>Promise&lt; Buffer&lt; T &gt; &gt; : <a class="el" href="de/df2/classBloomberg_1_1quantum_1_1SharedState_3_01Buffer_3_01T_01_4_01_4.html#a60828f7c21c9cf3c2c98a302a537f714">Bloomberg::quantum::SharedState&lt; Buffer&lt; T &gt; &gt;</a> </li> <li>Promise&lt; T &gt; : <a class="el" href="d2/df0/classBloomberg_1_1quantum_1_1SharedState.html#a697fa51a09bfecabc58fd6d07ce8f501">Bloomberg::quantum::SharedState&lt; T &gt;</a> </li> <li>promiseAllocSize() : <a class="el" href="db/df0/structBloomberg_1_1quantum_1_1AllocatorTraits.html#a9ce8aa3d4060f9c27f3ec7861935ba65">Bloomberg::quantum::AllocatorTraits</a> </li> <li>PromiseAlreadySatisfiedException() : <a class="el" href="d4/df4/structBloomberg_1_1quantum_1_1PromiseAlreadySatisfiedException.html#aec283b1c25343764321e294f43b70dbc">Bloomberg::quantum::PromiseAlreadySatisfiedException</a> </li> <li>PromiseNotSatisfiedException() : <a class="el" href="d1/dc1/structBloomberg_1_1quantum_1_1PromiseNotSatisfiedException.html#a90eaf4d7501bbfa1f9098d7169b424f0">Bloomberg::quantum::PromiseNotSatisfiedException</a> </li> <li>propagate_on_container_copy_assignment : <a class="el" href="d2/da6/structBloomberg_1_1quantum_1_1HeapAllocator.html#a31210303c3451dfa56cd99da49041597">Bloomberg::quantum::HeapAllocator&lt; T &gt;</a> , <a class="el" href="d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a3969fa542b465d690e78e520cd52246e">Bloomberg::quantum::StackAllocator&lt; T, SIZE &gt;</a> </li> <li>propagate_on_container_move_assignment : <a class="el" href="d2/da6/structBloomberg_1_1quantum_1_1HeapAllocator.html#ac609935f471d0aa454ccb8f8e42a352c">Bloomberg::quantum::HeapAllocator&lt; T &gt;</a> , <a class="el" href="d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ad380d00f9ed75d74b50d3c39900cd05b">Bloomberg::quantum::StackAllocator&lt; T, SIZE &gt;</a> </li> <li>propagate_on_container_swap : <a class="el" href="d2/da6/structBloomberg_1_1quantum_1_1HeapAllocator.html#a81d6baacda564ec462154c99e9911ad4">Bloomberg::quantum::HeapAllocator&lt; T &gt;</a> , <a class="el" href="d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a1ea7c6056316ed4e73652045dde737ae">Bloomberg::quantum::StackAllocator&lt; T, SIZE &gt;</a> </li> <li>Ptr : <a class="el" href="d8/df7/classBloomberg_1_1quantum_1_1Context.html#a93fbe0e7fa77b4b98f35ee2935dfaa83">Bloomberg::quantum::Context&lt; RET &gt;</a> , <a class="el" href="dc/d14/classBloomberg_1_1quantum_1_1Future.html#a89190725c7965a1114b1c55f2e4af9c3">Bloomberg::quantum::Future&lt; T &gt;</a> , <a class="el" href="d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Bloomberg::quantum::IContextBase</a> , <a class="el" href="d5/dd1/structBloomberg_1_1quantum_1_1ICoroContext.html#afda4bb817480a24960e407f6e977ed28">Bloomberg::quantum::ICoroContext&lt; RET &gt;</a> , <a class="el" href="de/d67/structBloomberg_1_1quantum_1_1ICoroContextBase.html#aa480ed235fb4eddf594fe5731c54ccab">Bloomberg::quantum::ICoroContextBase</a> , <a class="el" href="d6/daf/structBloomberg_1_1quantum_1_1ICoroFuture.html#af79854523a3ab9e3aaa6bc8bdcebf7cd">Bloomberg::quantum::ICoroFuture&lt; T &gt;</a> , <a class="el" href="dc/d82/structBloomberg_1_1quantum_1_1ICoroFutureBase.html#a8fdb9918c64ffca16815929757df77fe">Bloomberg::quantum::ICoroFutureBase</a> , <a class="el" href="d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#a47c0bcd8812fab42118f7c987d9ae89a">Bloomberg::quantum::ICoroPromise&lt; PROMISE, T &gt;</a> , <a class="el" href="d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html#a109b2c4b7d70d53d48bb640a9d849b29">Bloomberg::quantum::ICoroSync</a> , <a class="el" href="d4/d8b/classBloomberg_1_1quantum_1_1IoTask.html#af433efa37f8b3dffd03e3aa614acc9f5">Bloomberg::quantum::IoTask</a> , <a class="el" href="df/de4/structBloomberg_1_1quantum_1_1IPromiseBase.html#a50506be87412ef38d4bd954ff6285b3e">Bloomberg::quantum::IPromiseBase</a> , <a class="el" href="d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#ab4c4a3db733a93ad451c9dc7ffe62824">Bloomberg::quantum::IQueue</a> , <a class="el" href="df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">Bloomberg::quantum::ITask</a> , <a class="el" href="d0/d96/structBloomberg_1_1quantum_1_1ITaskAccessor.html#a77cb6ef586bd4e2ee6ae9d3efabf5be9">Bloomberg::quantum::ITaskAccessor</a> , <a class="el" href="d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#ad476dfb42152a7407ca71ad9a24941ac">Bloomberg::quantum::ITaskContinuation</a> , <a class="el" href="da/de3/structBloomberg_1_1quantum_1_1IThreadContext.html#a0b7724a925c43a5a9661e90f7f331651">Bloomberg::quantum::IThreadContext&lt; RET &gt;</a> , <a class="el" href="da/d4d/structBloomberg_1_1quantum_1_1IThreadContextBase.html#a95643a462eecd0836f9fd348703f77a2">Bloomberg::quantum::IThreadContextBase</a> , <a class="el" href="dc/d82/structBloomberg_1_1quantum_1_1IThreadFuture.html#ac374cb79ae4bc8b192033c1b8aebf5cd">Bloomberg::quantum::IThreadFuture&lt; T &gt;</a> , <a class="el" href="d1/d2d/structBloomberg_1_1quantum_1_1IThreadFutureBase.html#a7a5e5adf9e104bef3f570aace79ecf5c">Bloomberg::quantum::IThreadFutureBase</a> , <a class="el" href="da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#af1e82db2454481d25c450d3abfb6b92a">Bloomberg::quantum::IThreadPromise&lt; PROMISE, T &gt;</a> , <a class="el" href="d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a632081b74c109e66c55e18ea4117fe4f">Bloomberg::quantum::Promise&lt; T &gt;</a> , <a class="el" href="d0/d90/classBloomberg_1_1quantum_1_1Task.html#a2d6e0bcef2e9f07d966c9734f92f4969">Bloomberg::quantum::Task</a> </li> <li>pull() : <a class="el" href="d1/d87/classBloomberg_1_1quantum_1_1Buffer.html#afa86fb6ab65316f884e2392050bf2aed">Bloomberg::quantum::Buffer&lt; T, ALLOCATOR &gt;</a> , <a class="el" href="d8/df7/classBloomberg_1_1quantum_1_1Context.html#a92e7d6dac6001c2f0fd9da6934e81440">Bloomberg::quantum::Context&lt; RET &gt;</a> , <a class="el" href="dc/d14/classBloomberg_1_1quantum_1_1Future.html#a546ee39f9b5b6614497835998a7c9ed2">Bloomberg::quantum::Future&lt; T &gt;</a> , <a class="el" href="d5/dd1/structBloomberg_1_1quantum_1_1ICoroContext.html#a218dc6b764b01a685e37840a796fe0eb">Bloomberg::quantum::ICoroContext&lt; RET &gt;</a> , <a class="el" href="d6/daf/structBloomberg_1_1quantum_1_1ICoroFuture.html#a6764fb2a13c0521db128e0c91e3b9fed">Bloomberg::quantum::ICoroFuture&lt; T &gt;</a> , <a class="el" href="da/de3/structBloomberg_1_1quantum_1_1IThreadContext.html#a65ced94956cdfff4ad094897b14f8234">Bloomberg::quantum::IThreadContext&lt; RET &gt;</a> , <a class="el" href="dc/d82/structBloomberg_1_1quantum_1_1IThreadFuture.html#af5ee4328e6105cf062a76ef7268b7d3e">Bloomberg::quantum::IThreadFuture&lt; T &gt;</a> , <a class="el" href="de/df2/classBloomberg_1_1quantum_1_1SharedState_3_01Buffer_3_01T_01_4_01_4.html#a09d5297a97ea5931bdf462091d977b40">Bloomberg::quantum::SharedState&lt; Buffer&lt; T &gt; &gt;</a> </li> <li>push() : <a class="el" href="d1/d87/classBloomberg_1_1quantum_1_1Buffer.html#a0f7ff17c89f6dcfc4651f31b6e466b16">Bloomberg::quantum::Buffer&lt; T, ALLOCATOR &gt;</a> , <a class="el" href="d8/df7/classBloomberg_1_1quantum_1_1Context.html#a6cc68322709515d1586cf453276f2100">Bloomberg::quantum::Context&lt; RET &gt;</a> , <a class="el" href="d5/dd1/structBloomberg_1_1quantum_1_1ICoroContext.html#a18a76d5a8b8d68567bf706f468d69ea2">Bloomberg::quantum::ICoroContext&lt; RET &gt;</a> , <a class="el" href="d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#ad6b20a026f8e96948fdf06a87f20bf7c">Bloomberg::quantum::ICoroPromise&lt; PROMISE, T &gt;</a> , <a class="el" href="da/de3/structBloomberg_1_1quantum_1_1IThreadContext.html#ab6e481262f106b0ed5fd5c0b86978c03">Bloomberg::quantum::IThreadContext&lt; RET &gt;</a> , <a class="el" href="da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#a1daff44dbd6d5daf7a576dd4fdb55884">Bloomberg::quantum::IThreadPromise&lt; PROMISE, T &gt;</a> , <a class="el" href="d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a04d4a67e84d5c7d64c6d6f5145827af1">Bloomberg::quantum::Promise&lt; T &gt;</a> , <a class="el" href="de/df2/classBloomberg_1_1quantum_1_1SharedState_3_01Buffer_3_01T_01_4_01_4.html#a6f57375a8c3b853308f9bfb973b500dc">Bloomberg::quantum::SharedState&lt; Buffer&lt; T &gt; &gt;</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> </ul> </div> </body> </html>
html
Mangaluru: Two prisoners were injured in a clash between the inmates at the district Sub jail here on April 25. According to Police commissioner Sashi Kumar, the accused Sameer who was arrested in a robbery case in Panambur who is in jail since July 2020 on April 25 assaulted Ansar another inmate who was arrested in the Mulki Police station limits last month. Sameer used kitchen items and assaulted Ansar and Jainuddin who was arrested in the Moodbidri Dacoity case. Ansar has been injured in his arm and leg and Jainuddin has been in the shoulder and back. Police commissioner Sashi Kumar visited the District Jail to assess the situation and further investigations. After the incident, nearly 20 prisoners have been shifted to the jails in Belgaum, Shivamogga and Dharwad. Two cases of assault on Ansar and Jainuddin have been registered in Barke Police station under sections 307 and rioting. The Prison and Civil police have taken up two more cases of assault and obstruction of duty of police have also been filed separately. Police custody of the accused will be taken for investigations.
english
<filename>data/countries/cxr.json<gh_stars>10-100 { "capital": "Flying Fish Cove", "continent": "AS", "name": "<NAME>", "officialName": null, "distSign": "AUS", "dialCode": "61", "edgar": null, "fifa": "CXR", "fips": "KT", "gaul": "54", "geoNameId": "2078138", "olympicsId": null, "iso2": "CX", "iso3": "CXR", "currencyCode": null, "currencyCountryName": null, "currencyMinorUnit": null, "currencyName": null, "currencyNumericCode": null, "itu": "CHR", "isIndependent": "Territory of AU", "languages": [ "en", "zh", "ms-CC" ], "m49": 162, "marc": "xa", "tld": ".cx", "wmo": "KI" }
json
New Delhi: Metro travellers who use the Metro to commute to work will have to face a tough time as the contract workers of Delhi Metro Rail Corporation’s (DMRC) resorting to protests once again. The contract workers have been protesting since August 17 demanding pending payments since nine months from DMRC and FEMC Pratibha. Apart from sending half of his monthly income home to his mother and three siblings in Katihar, Bihar, 19-year-old Anzar Alam saves a tiny sum every month for emergencies. But now that his village has been hit by a flood, he feels helpless. “I haven’t been paid in the last two months, so I have spent my savings on rent and food…I need money urgently so my family in Katihar can survive,” said Alam, one of the 1,600 labourers with the Delhi Metro Rail Corporation (DMRC) protesting at Jantar Mantar since August 17. Along with the labourers, contractors too have taken to the streets demanding “pending payments of nine months from DMRC and FEMC Pratibha,” which, according to labour contractor Ashish Dwivedi, amounts to “Rs 25 crore”. “We are paid by FEMC Pratibha but nine months ago when we stopped work, DMRC intervened and assured us that they will pay us… since then, partial payments have been made over a month or two,” said Dwivedi, who has 300 labourers under him. “A section of workers hired by one of DMRC’s contractors, M/s FEMC Pratibha have been agitating over alleged non-payment of dues for the last few days. DMRC would like to clarify that these workers have not been directly recruited or hired by Delhi Metro. ”, said Anuj Dayal, DMRC Spokesperson. Even as the rain brought the city to a standstill on Saturday, hundreds continued to sit on a dharna at Jantar Mantar, along with 25 labour contractors. “I have paid salaries of the 250 labourers under me for seven months by taking loans…I am in debt now, no longer capable of paying them, which is why we are protesting,” said contractor Babloo Tripathi. The labourers and contractors also revealed that work on Delhi Metro phase III is on hold due to the protest. “At the moment, no work is happening at the nine Metro stations of phase III, which is already delayed by many months…if they don’t meet our demand, we will also put functioning metro service on hold, and lie down on the tracks in protest,” said Tripathi. It is worth mentioning here that due to non-fulfillment of salary revision agreement, corruption in recruitment and illegal termination of a metro employee who was working as RTI Supervisor in Metro Bhawan over 9000 Delhi Metro employees were on protest in last month and the protest was stopped after a series of high level meeting in presence of Urban Development Secretary D. S. Mishra, Chief Secretary Govt. of Delhi M. M. Kutty, Principal Advisor Dr. E. Sreedharan and DMRC, MD Mangu Singh with Staff Council members after giving written assurance by the Delhi Metro administration. However, sources said that DMRC management still not fulfilled their demands as promised in the meeting. The terminated RTI Supervisor not yet received his reinstatement letter from the DMRC.
english
package com.domker.weather.util; import java.io.Closeable; import java.io.IOException; /** * Created by wanlipeng on 2020-01-16 20:59 */ public final class IOUtils { /** * 关闭流 * * @param closeable */ public static void close(Closeable closeable) { if (closeable != null) { try { closeable.close(); } catch (IOException e) { e.printStackTrace(); } } } }
java
{ "translations": { "Could not revert: %s" : "Không thể khôi phục: %s", "Versions" : "Phiên bản", "Failed to revert {file} to revision {timestamp}." : "Thất bại khi trở lại {file} khi sử đổi {timestamp}.", "Restore" : "Khôi phục", "More versions..." : "Nhiều phiên bản ...", "No other versions available" : "Không có các phiên bản khác có sẵn" },"pluralForm" :"nplurals=1; plural=0;" }
json
{ "id": 10497, "cites": 15, "cited_by": 70, "reference": [ "<NAME> (1960), Gold and the Dollar Crisis, New Haven: Yale University Press.", "<NAME> and <NAME> (1977), Economic Policy Beyond the Headlines, Chicago: University of Chicago Press.", "<NAME> (1967), The Dollar and World Liquidity, New York: Random House.", "Meltzer, <NAME>. (1991), U.S. Policy in the Bretton Woods Era, Federal Reserve Bank of St. Louis Review 73 (May/June), pp.54-83.", "Meltzer, <NAME>. (1966), The Regulation of Bank Payments Abroad, Another Failure for the Governments Balance of Payments Program, in <NAME> and <NAME> (eds), Guidelines, Informal Controls, and the Market Place, Chicago: University of Chicago Press, pp.183-208.", "<NAME> and <NAME> (1973), Japanese Economic Growth, Stanford: Stanford University Press.", "Gowa, <NAME>. (1983), Closing the Gold Window, Ithaca: Cornell University Press.", "<NAME> (1993), The Collapse of the Bretton Woods Fixed Exchange Rate System, in <NAME> and <NAME> (eds), A Retrospective on the Bretton Woods System: Lessons for International Monetary Reform, Chicago: University of Chicago Press, pp.461-494.", "<NAME> (2004), Chinese Currency Controversies, Asian Economic Papers (forthcoming).", "<NAME>, <NAME> and <NAME> (2002), An Essay on the Revived Bretton Woods System, NBER Working Paper no. 9971 (September).", "<NAME> and <NAME> (1998), Implications of the Great Depression for the Development of the International Monetary System, in <NAME>, <NAME> and <NAME> (eds), The Defining Moment: The Great Depression and the American Economy in the Twentieth Century, Chicago: University of Chicago Press, pp.402-453.", "Block, <NAME>. (1977), The Origins of International Economic Disorder: A Study of United States International Monetary Policy from World War II to the Present, Berkeley: University of California Press.", "<NAME> (1979), Money and the Price Level under the International Gold Standard, Economic Journal 89, pp.13-33.", "Kindleberger, <NAME>. (1965), Balance of Payments Deficits and the International Market for Liquidity, Princeton Essays in International Finance no. 46, International Finance Section Department of Economics, Princeton University.", "Eichengreen, Barry (1996b), Globalizing Capital: A History of the International Monetary System, Princeton: Princeton University Press." ] }
json
Anuradha ma’am was reading aloud ‘The Forsaken Merman’ written by Mathew Arnold: In a voice that she will know: (Call once more) to a mother’s ear; Children’s voices should be dear Children’s voices, wild with pain. Surely she will come again. Call her once and come away. This way, this way! He was reminiscing: ‘Once she sate with you and me, On a red gold throne in the heart of the sea, And the youngest sate on her knee. Whatever lesson she taught, Anuradha ma’am forgot herself and became one of the characters in the lesson. The woman had left her husband, a merman, and their children. The merman was goading the children to call her back. The teacher was so involved that her voice grew hoarse as she became the merman – ‘Here came a mortal, but faithless was she.’ I listened and tears flowed down my cheeks. The lesson was ending. The last lines: ‘There dwells a loved one, but cruel was she!’ As the teacher spoke these lines, the last bell rang. I do not know how I came home, but I scurried out of the class so that my tears would not betray me. ‘But cruel was she!’ rang in my ears. I threw the framed photo of my mother that I had brought with me when I had come here with my aunt on to the floor in anger. Eventually, I picked up the photograph and got it laminated so that it would not tear a second time. But I kept it at the bottom of the trunk. I wept my heart out. ‘Cruel was she!’ I wondered how my brother was so stoical. It was I who wailed for her, craved for her, yearned for and was angry with her. But still I could never forget her. She was my shadow – a shadow that was long now, short the next time and vanished altogether at times. I would pretend the shadow did not exist. She was my mother – a mother who made me a motherless child; a mother who made my childhood an ocean of tears. ‘The day I brought you with me and saw you wailing, holding my legs, I did not think I would be able to keep you with me this long. We have become so close. I realized how much a girl can add to my life when she moves about in the house. You have brought all my efforts to fruition and have been successful in your studies. Go! Take your father’s blessings now before joining your new job. He is your father, after all. Take some sweets for the children and clothes for your father and her,’ advised my aunt. She hugged me close before I left. I could not understand whether he was being sarcastic or sincere. Another heavenly spirit had walked in with her singing . . . Aao huzoor tumko sitaaron mein le chaloon (‘Let me take you to the realm of stars’). Did she get the love she sought, at least there? How would I know? When I cannot concentrate on the book at hand or when sleep plays hide and seek with me, I get a call from my brother across the Atlantic. Only he knows when to call me. ‘What news, Ammadu?’ he asked. ‘Santosh from Samalkot has assured me that he will convince his parents to agree to the match even though I am Damayanti’s daughter. Of course, he has already made thorough enquiries from my colleagues,’ I replied. ‘What more do you need then? He has chosen you. Best of luck! He must be very shrewd. Along with the marriage symbol of bottu, he will also stick the bottu of the stigma of your mother on your forehead and use it whenever he thinks necessary. You will be indebted to him all through your life for his generosity. And if, by chance, sometime in the future you become conscious of your education, job and intellect and answer him back, the stigma of your mother will work like a paperweight,’ he laughed. I love asking the same question again and again, hearing his usual answer – his philosophizing in an emotionless voice. I had no answer. I don’t know what answer she had! (to be continued..) పి. సత్యవతి గుంటూరు జిల్లా కొలకలూరులో 1940 జులై 2న జన్మించారు. ఆంధ్రవిశ్వకళాపరిషత్ లో ఎం.ఎ. ఇంగ్లిషు పూర్తి చేశారు. విజయవాడలోని ఎస్.ఎ.ఎస్. కాలేజ్ లో అధ్యాపకులుగా పని చేసి పదవీవిరమణ పొందారు. ఆమెకు అపారమైన బోధానానుభవమే కాదు, తెలుగు, ఆంగ్ల సాహిత్యాలపై పూర్తి పట్టు ఉంది. అన్నిటికి మించి తెలుగు సమాజాన్ని క్షుణ్ణంగా దగ్గరనుంచి పరిశీలిస్తున్నారు. అందుకే నాలుగు దశాబ్దాల తెలుగు స్త్రీ, వారి రచనల్లో మనకు కనిపిస్తుంది. వీరి తొలి కథ 1964లో ఆదివారం కోసం రాశారు. దీనిలో ఆదివారమైనా స్త్రీకి సెలవు ఉండాలని, అది వ్యక్తిగతమైన పనులు చేసుకోడానికి అవసరమని వివరిస్తుంది. 1975లో మర్రినీడ కథా సంపుటి వీరిని రచయిత్రిగా పాఠకలోకానికి పరిచయం చేసింది. ఆంధ్రజ్యోతి సచిత్రవారపత్రిక ప్రచురించిన కథలలో పాఠకుల అభిప్రాయాల ద్వారా ఈ కథకు బహుమతి వచ్చింది. పి. సత్యవతి కేవలం కధా రచయిత్రే కాదు నవలలు, వ్యాసాలు, అనువాదాలు కూడా చేశారు.
english
Dizo Watch R Talk Go Launched With 110 Sports Modes; Is It Coming To India? Realme Techlife brand Dizo has released several wearables since its establishment. One such device is the Dizo Watch R Talk Go, which joins the R Talk series. The newly launched smartwatch seems to be inspired by the Samsung Galaxy Watch lineup, featuring two buttons on the side. Can the new Dizo Watch R Talk Go take on similarly priced smartwatches? Unlike most of the usual launches from the brand, the new Dizo Watch R Talk Go was announced via the AliExpress store. The new smartwatch has launched globally and can be shipped even to India. The smartwatch features an aluminum chassis and 7H hardness tempered glass for all kinds of rough usage. Upfront, the newly launched Dizo Watch R Talk Go features a 1. 39-inch display with 360 x 360 pixels resolution and 550 nits brightness. As mentioned previously, it includes two buttons on the side. The Dizo wearable comes with several health-centric features, including a real-time heart rate sensor, SpO2 blood oxygen monitor, sleep tracker, steps and calorie tracker, menstrual tracker, stress and mood monitor, among others. The Dizo Watch R Talk Go comes with more than 110 sports modes like running, hiking, swimming, cycling, and more. The Dizo Watch R Talk Go also packs in the usual connectivity options like Bluetooth 5. 2. As the name suggests, the smartwatch supports Bluetooth calling features, allowing users to answer and make calls. One can also mute or reject calls on their smartwatch. However, the Dizo Watch R Talk Go skips a built-in GPS tracker. Users will need to rely on their smartphone's GPS to track their activities. Lastly, the new Dizo smartwatch claims to offer 10 days of battery on a single charge with normal use. With the Bluetooth calling feature, the Dizo Watch R Talk Go claims to last up to nine days and will take up to two hours to fully charge. The new Dizo Watch R Talk Go can be purchased on AliExpress and is available in Thunder Blue, Silver White, and Classic Black color options. The Dizo Watch R Talk Go is priced at ₹5,027 at the online retailer. Since it's dispatched from China, one might have to pay additional customs duties and charges. For the asking price, the Dizo Watch R Talk Go makes a good deal, especially for its Bluetooth calling feature. Moreover, its premium design further makes it a stylish purchase. However, it skips in-built GPS, which might be a drawback. One can also check out similarly priced smartwatches from Amazfit, Noise, and Fire-Boltt.
english
{"id": 72107, "date": "2015-12-29 14:30:55", "user": "starservices", "post": "Powerful Box is a hosting and computer services provider in Winchester, Hampshire that offers a wide hosting of services across the hosting and computer services from VPS and Server Hosting to Computer repair and Refurbished Laptops &amp; Desktops.\r\n\r\nToday we are here to promote our Tiny Box VPS Plan which is the following specification:\r\n\r\nTiny Box&lt;br&gt;\r\n1x2.6Ghz CPU &lt;br&gt;\r\n512MB RAM &lt;br&gt;\r\n15GB SSD disk space &lt;br&gt;\r\n3000GB Traffic 1Gbps port 50Mbps guaranteed &lt;br&gt;\r\n1 IPv4 address (more available) &lt;br&gt;\r\nChoose between Centos, Debian , Ubuntu or Fedora (Windows also available) &lt;br&gt;\r\nIPv6 Can be enabled on request&lt;br&gt;\r\nAnit-DDoS included &lt;br&gt;\r\n[$5.95(\u00a33.99) a month Click here to Order now!](https://www.powerfulbox.co.uk/vps-hosting.php)\r\n\r\n&lt;br&gt;"}
json
import React, {Component} from 'react'; import ReactDOM from 'react-dom'; import './css/index.css'; import Intro from './components/Intro'; import Header from './components/Header'; import Footer from './components/Footer' import { Route, BrowserRouter } from "react-router-dom"; import registerServiceWorker from './registerServiceWorker'; class Base extends Component { render() { return ( <BrowserRouter> <div className="container"> <Header/> <Route exact path="/" component={Intro}/> <Route path="/article" component={Intro}/> <Footer/> </div> </BrowserRouter> ) } } ReactDOM.render(<Base/>, document.getElementById('root')); registerServiceWorker();
javascript
import curry from "../base/curry"; export default curry(function *takeL(l, iter) { for (const a of iter) { if (a instanceof Promise) yield a.then(a => (--l, a)); else yield (--l, a); if (!l) break; } });
javascript
{ "type": "silentgear:gear_crafting", "ingredients": [ { "item": "silentgear:elytra_wings" }, { "type": "silentgear:part_type", "part_type": "silentgear:binding" } ], "result": { "item": "silentgear:elytra" } }
json
The material created by researchers at Rice University in Texas, US combines self-healing and reversible self-stiffening properties. Called SAC (self-adaptive composite), the material consists of what amounts to sticky, micron-scale rubber balls that form a solid matrix. The researchers made SAC by mixing two polymers and a solvent that evaporates when heated, leaving a porous mass of gooey spheres. When cracked, the matrix quickly heals, over and over. Like a sponge, it returns to its original form after compression. Researchers suggest that SAC may be a useful bio-compatible material for tissue engineering or a lightweight, defect-tolerant structural component. "Other 'self-healing' materials encapsulate liquid in solid shells that leak their healing contents when cracked. Those are very cool, but we wanted to introduce more flexibility," said Pei Dong from Rice University. "We wanted a biomimetic material that could change itself, or its inner structure, to adapt to external stimulation and thought introducing more liquid would be a way. But we wanted the liquid to be stable instead of flowing everywhere," said Dong. In SAC, tiny spheres of polyvinylidene fluoride (PVDF) encapsulate much of the liquid. The viscous polydimethylsiloxane (PDMS) further coats the entire surface. The spheres are extremely resilient as their thin shells deform easily. Their liquid contents enhance their viscoelasticity, a measure of their ability to absorb the strain and return to their original state, while the coatings keep the spheres together. The spheres also have the freedom to slide past each other when compressed, but remain attached. "The sample does not give you the impression that it contains any liquid. That is very different from a gel," said Lou. "This is not really squishy; it is more like a sugar cube that you can compress quite a lot. The nice thing is that it recovers," Lou added. Making SAC is simple, and the process can be tuned - a little more liquid or a little more solid - to regulate the product's mechanical behaviour, researchers said. The polymer components begin as powder and viscous liquid. With the addition of a solvent and controlled heating, the PDMS stabilises into solid spheres that provide the reconfigurable internal structure. In tests, scientists found a maximum of 683 percent increase in the material's storage modulus - a size-independent parameter used to characterise self-stiffening behaviour. This is much larger than that reported for solid composites and other materials, researchers said. The findings were published in the journal ACS Applied Materials and Interfaces. Catch the latest from the Consumer Electronics Show on Gadgets 360, at our CES 2024 hub.
english
--- title: Configurar a VM hospedada em Microsoft Azure para o Azure Marketplace description: Explica como dimensionar, atualizar e generalizar uma VM hospedada no Azure. services: Azure, Marketplace, Cloud Partner Portal, author: v-miclar ms.service: marketplace ms.subservice: partnercenter-marketplace-publisher ms.topic: conceptual ms.date: 10/19/2018 ms.author: pabutler ms.openlocfilehash: ce7fe49b07dc250a9f56ff73229e347b997f0cc0 ms.sourcegitcommit: ac56ef07d86328c40fed5b5792a6a02698926c2d ms.translationtype: MT ms.contentlocale: pt-BR ms.lasthandoff: 11/08/2019 ms.locfileid: "73824489" --- # <a name="configure-the-azure-hosted-vm"></a>Configurar a VM hospedada no Azure Este artigo explica como dimensionar, atualizar e generalizar uma VM (máquina virtual) hospedada no Azure. Essas etapas são necessárias para preparar a VM para ser implantada no Azure Marketplace. ## <a name="sizing-the-vhds"></a>Dimensionar os VHDs <!--TD: Check if the following assertion is true. I didn't understand the original content. --> Se você tiver selecionado uma das VMs pré-configuradas com um sistema operacional (e, opcionalmente, serviços adicionais), você já selecionou um tamanho de VM do Azure padrão, conforme descrito na [guia SKUs da máquina virtual](./cpp-skus-tab.md). Iniciar sua solução com um sistema operacional pré-configurado é a abordagem recomendada. No entanto, se você estiver instalando um sistema operacional manualmente, será necessário dimensionar o VHD principal na imagem da VM: - Para Windows, o VHD do sistema operacional deve ser criado como um VHD de formato fixo de 127-128 GB. - Para Linux, esse VHD deve ser criado como um VHD de formato fixo de 30 a 50 GB. Se o tamanho físico for menor que 127-128 GB, o VHD deverá ser esparso. As imagens básicas do Windows e SQL Server fornecidas já atenderam a esses requisitos; portanto, não altere o formato nem o tamanho do VHD obtido. Discos de dados podem ser de até 1 TB. Ao decidir sobre o tamanho, lembre-se de que os clientes não podem redimensionar VHDs dentro de uma imagem no momento da implantação. Os VHDs de disco de dados devem ser criados como VHDs de formato fixo. Eles também devem ser esparsos. Os discos de dados podem inicialmente estar vazios ou conter dados. ## <a name="install-the-most-current-updates"></a>Instalar as atualizações mais atuais As imagens de base das VMs do sistema operacional contêm as atualizações mais recentes até a data publicada. Antes de publicar o VHD do sistema operacional que você criou, assegure-se de atualizar o sistema operacional e todos os serviços instalados com os patches de segurança e manutenção mais recentes. Para Windows Server 2016, execute o comando **Verificar se há atualizações**. Caso contrário, para versões mais antigas do Windows, consulte [Como obter uma atualização através do Windows Update](https://support.microsoft.com/help/3067639/how-to-get-an-update-through-windows-update). A atualização do Windows instalará automaticamente as atualizações de segurança críticas e importantes mais recentes. Para distribuições Linux, as atualizações geralmente são baixadas e instaladas por meio de uma ferramenta de linha de comando ou de um utilitário gráfico. Por exemplo, o Ubuntu Linux fornece o comando [apt-get](https://manpages.ubuntu.com/manpages/cosmic/man8/apt-get.8.html) e a ferramenta [Gerenciador de Atualização](https://manpages.ubuntu.com/manpages/cosmic/man8/update-manager.8.html) para atualizar o SO. ## <a name="perform-additional-security-checks"></a>Realizar verificações de segurança adicionais Você deve manter um alto nível de segurança para as imagens de solução no Azure Marketplace. O artigo a seguir fornece uma lista de verificação de configurações e procedimentos de segurança para ajudá-lo nesse objetivo: [Recomendações de segurança para as imagens do Azure Marketplace](https://docs.microsoft.com/azure/security/security-recommendations-azure-marketplace-images). Algumas dessas recomendações são específicas para imagens baseadas em Linux, mas a maioria aplica-se a qualquer imagem de VM. ## <a name="perform-custom-configuration-and-scheduled-tasks"></a>Executar configuração personalizada e tarefas agendadas Se uma configuração adicional for necessária, a abordagem recomendada é usar uma tarefa agendada que seja executada na inicialização para fazer qualquer alteração final na VM após a implantação. Considere também as seguintes recomendações: - Se for uma tarefa de execução única, é recomendável que a tarefa seja excluída após a conclusão ser realizada com êxito. - As configurações não devem depender de unidades diferentes de C ou D, porque somente essas duas unidades sempre terão a garantia de existir. A unidade C é o disco do sistema operacional e a unidade D é o disco local temporário. Para obter mais informações sobre personalizações do Linux, consulte [Recursos e extensões da máquina virtual para Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/features-linux). ## <a name="generalize-the-image"></a>Generalizar a imagem Todas as imagens do Azure Marketplace devem ser reutilizáveis de uma forma genérica. Para obter essa reutilização, o VHD do sistema operacional deve ser *generalizado*, uma operação que remove todos os identificadores específicos de instância e drivers de software de uma VM. ### <a name="windows"></a>Windows Os discos do sistema operacional do Windows são generalizados com a [ferramenta sysprep](https://docs.microsoft.com/windows-hardware/manufacture/desktop/sysprep--system-preparation--overview). Se você atualizar ou reconfigurar o sistema operacional subsequentemente, deverá executar novamente o sysprep. > [!WARNING] > Como as atualizações poderão ser executadas automaticamente após executar o sysprep, você deverá desativar a VM até que ela seja implantada. Esse desligamento evitará atualizações subsequentes de alterações específicas da instância no sistema operacional do VHD ou serviços instalados. Para obter mais informações sobre como executar o Sysprep, consulte [etapas para generalizar um VHD](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource#generalize-the-windows-vm-using-sysprep) ### <a name="linux"></a>Linux O processo de duas etapas a seguir generaliza uma VM Linux e a implanta novamente como uma VM separada. Essas duas etapas são apenas os conceitos básicos do processo. Para obter mais informações sobre essas duas etapas e por que elas devem ser feitas, consulte [como criar uma imagem de uma máquina virtual ou VHD](../../../virtual-machines/linux/capture-image.md). Para fins de criação do VHD para sua oferta do Azure Marketplace, você pode parar quando chegar à seção "criar uma VM com base na imagem capturada". #### <a name="remove-the-azure-linux-agent"></a>Remover o agente Linux do Azure 1. Conecte-se à VM do Linux usando um cliente SSH. 2. Na janela SSH, digite o seguinte comando: <br/> `sudo waagent -deprovision+user` 3. Digite `y` para continuar. (Você pode adicionar o parâmetro `-force` ao comando anterior para evitar essa etapa de confirmação.) 4. Depois que o comando for concluído, digite `exit` para fechar o cliente SSH. <!-- TD: I need to add meat and/or references to the following steps --> #### <a name="capture-the-image"></a>Capturar a imagem 1. Acesse o portal do Azure, selecione seu RG (grupo de recursos) e desaloque a VM. 2. O VHD é generalizado e você poderá criar uma nova VM usando esse VHD. ## <a name="create-one-or-more-copies"></a>Criar uma ou mais cópias A criação de cópias da VM geralmente é útil para backup, teste, failover personalizado ou balanceamento de carga para oferecer diferentes configurações de uma solução, e assim por diante. Para obter informações sobre como duplicar e baixar um VHD primário, para criar um clone não gerenciado, consulte: - VM do Linux: [Baixar um VHD do Linux pelo Azure](../../../virtual-machines/linux/download-vhd.md) - VM do Windows: [Baixar um VHD do Windows pelo Azure](../../../virtual-machines/windows/download-vhd.md) ## <a name="next-steps"></a>Próximas etapas Depois que a VM for generalizada, tiver sido desalocada e você tiver criado uma imagem da VM, você estará pronto para [implantar uma máquina virtual de um disco rígido virtual](./cpp-deploy-vm-vhd.md).
markdown
<reponame>dany-freeman/material-ui "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime"); var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { d: "M1 13c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm7.89-2.89 4.53-1.21-.78-2.9-4.53 1.21c-.8.21-1.28 1.04-1.06 172.16.17.32 1.04 1.28 1.84 1.06zM20.5 5.9 23 3l-1-1-3 3-2 4-9.48 2.87c-.82.2-1.39.89-1.5 1.68L5.24 18 2.4 21.8 4 23l3-4 1.14-3.14L14 14l5-3.5 1.5-4.6z" }), 'ScubaDivingTwoTone'); exports.default = _default;
javascript
<filename>.vs/VSWorkspaceState.json { "ExpandedNodes": [ "", "\\chartjs-plugin-datasource", "\\css", "\\js" ], "SelectedNode": "\\js\\charts.js", "PreviewInSolutionExplorer": false }
json
<reponame>ctechhindi/Semantic-UI-Alerts .masthead.segment { min-height: 576px; padding: 1em 0em; } .masthead h1.ui.header { margin-top: 2em; margin-bottom: 0em; font-size: 4em; font-weight: normal; } .masthead h2 { font-size: 1.7em; font-weight: normal; } .masthead a.github { margin-bottom: 7px; } .precode { overflow: auto; background-color: #f5f2f0; padding-left: 10px; } .ui.form .inline.fields .field>:only-child { margin: 1px 0px 7px } @media (max-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ .masthead h1.ui.header { font-size: 2.8em; } .masthead h2 { font-size: 1.1em; } .segment pre.code { font-size: smaller; } } @media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ .masthead h1.ui.header { font-size: 2.8em; } .masthead h2 { font-size: 1.1em; } .segment pre.code { font-size: smaller; } } @media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ } @media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ } @media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ .masthead h1.ui.header { font-size: 4em; } .masthead h2 { font-size: 1.7em; } .segment pre.code { font-size: 1em; width: fit-content; } } @media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ } @media (min-width:1281px) { /* hi-res laptops and desktops */ }
css
from course_lib.Base.BaseRecommender import BaseRecommender import numpy as np import scipy.sparse as sps class SearchFieldWeightICMRecommender(BaseRecommender): """ Search Field Weight ICM Recommender """ RECOMMENDER_NAME = "SearchFieldWeightICMRecommender" def __init__(self, URM_train, ICM_train, recommender_class: classmethod, recommender_par: dict, item_feature_to_range_mapper: dict, verbose=True): super(SearchFieldWeightICMRecommender, self).__init__(URM_train, verbose=verbose) self.recommender_class = recommender_class self.recommender_par = recommender_par self.item_feature_to_range_mapper = item_feature_to_range_mapper self.ICM_train: sps.csr_matrix = ICM_train self.model = None def fit(self, **field_weights): item_feature_weights = np.ones(shape=self.ICM_train.shape[1]) for feature_name, weight in field_weights.items(): start, end = self.item_feature_to_range_mapper[feature_name] item_feature_weights[start:end] = item_feature_weights[start:end]*weight user_feature_weights_diag = sps.diags(item_feature_weights) self.ICM_train = self.ICM_train.dot(user_feature_weights_diag) self.model = self.recommender_class(self.URM_train, self.ICM_train) self.model.fit(**self.recommender_par) def _compute_item_score(self, user_id_array, items_to_compute=None): return self.model._compute_item_score(user_id_array=user_id_array, items_to_compute=items_to_compute) def save_model(self, folder_path, file_name=None): pass
python
/** * @file alignof.hpp * * @brief BKSGE_ALIGNOF の定義 * * @author myoukaku */ #ifndef BKSGE_FND_CONFIG_SUFFIX_ALIGNOF_HPP #define BKSGE_FND_CONFIG_SUFFIX_ALIGNOF_HPP // // alignof workaround // #if !defined(BKSGE_ALIGNOF) # if defined(BKSGE_HAS_CXX11_ALIGNOF) # define BKSGE_ALIGNOF(type) alignof(type) # elif defined(_MSC_VER) # define BKSGE_ALIGNOF(type) __alignof(type) # elif defined(__GNUC__) # define BKSGE_ALIGNOF(type) __alignof__(type) # else # define BKSGE_ALIGNOF(type) # define BKSGE_NO_ALIGNOF # endif #endif #endif // BKSGE_FND_CONFIG_SUFFIX_ALIGNOF_HPP
cpp
In the realm of numbers and numerology, the digit one stands as a beacon of new beginnings. It is the genesis, the starting point of all numerical journeys. When we encounter the number one, it is as if the universe is whispering to us, "Embrace the fresh start." Consider it the cosmic inkling for a reset. It signifies the rewriting of our life's story, the reframing of our perspective, and the dawn of something entirely novel. In the grand tapestry of numerals, one holds the distinction of being the very first brushstroke—a stroke of possibility and potential. It's the inception of a grand narrative, the inaugural chapter of a book yet to be written. In its simplicity, number one invites us to shed the old and venture into uncharted territory. It's the first step, the initial note of a symphony waiting to be composed. As the foundational digit, it reminds us that every journey, every achievement, every transformation commences with that single step. Number one encourages us to embrace the pristine canvas of the present and paint upon it the vision of our dreams. So, as you navigate the intricate web of numbers and their meanings, remember the significance of this solitary digit—a potent symbol of renewal, rebirth, and the boundless potential of every new beginning. In the symphony of numbers and their mystical meanings, the number two emerges as the embodiment of duality—a harmonious dance between opposing forces. It signifies the delicate balance of light and dark, positive and negative, yin and yang. When the number two graces our path, it beckons us to navigate the realms of choice. Imagine it as a crossroads, where the choices we make carve the pathways of our existence. In the world of duality, decisions are the guiding stars. It's a realm where we encounter puzzles and challenges, as the contrasting elements vie for our attention. Number two whispers that life is filled with moments of choice, where the scales of balance teeter. It reminds us that within the duality, we possess the gift of free will. The power to choose becomes our compass, steering us through the labyrinth of decisions. Picture it as a canvas of possibilities, each stroke of choice shaping the masterpiece of our journey. In this dualistic realm, we are both the artists and the art, the architects of our destiny. So, when the number two graces your presence, embrace it as a reminder of the profound gift of free choice. It signifies that the journey ahead may be intricate, but within the duality lies the magic of human decision—a potent force that can mold reality itself. In the enigmatic language of numbers and their profound symbolism, the number three assumes the role of a catalytic force. Picture it as the invisible hand that sets things into motion, a silent conductor orchestrating the cosmic dance. Number three is the maestro of energies, a catalyst in its purest form. It possesses a unique quality—it moves, it transforms, it inspires, all without altering its own essence. It remains steadfast, unwavering, as it stirs the waters of change around it. It's the gentle nudge that propels us forward on our spiritual journey, the catalyst that accelerates growth and transformation. Think of healers and teachers, those luminous souls who guide us toward enlightenment. They are often adorned with the presence of threes, a silent testament to their catalytic roles in our lives. They stir our inner energies, awakening dormant potentials, and igniting the flames of wisdom. Number three beckons us to recognize the profound power of influence. It reminds us that we, too, can be catalysts for change, agents of transformation in our own lives and the lives of others. In its simplicity, it carries a profound message: the power to move mountains resides within the gentlest of gestures. So, when you encounter the number three, embrace it as a reminder of your potential as a catalyst, a force that can ripple through the fabric of reality, awakening, healing, and guiding the way toward higher understanding and enlightenment.
english
Join CIM in celebrating its 125th anniversary. Building Trust to Decarbonize the World Join us and help advance the industry. France Margaret Belanger Honourable Brian V. Tobin. Students & Young Leaders. Preliminary program. Recap of the 2019 Convention 475 Exhibiting Companies. What do people think about CIMBC22? Topic: Decarbonization through technology and collaboration. Luncheons for industry leaders with special guests are only by invitation. David Cataford CEO of Champion Iron, our Convention chair, gives a preview of the convention. The actions and subsequent follow-up have initiated a change in the perception of the mining industry. Great presentations and lots of collaboration among industry and operations. The venue, atmosphere, expo, Galas, panels, etc. were all great. There was a lot of variety... Well attended and very well organized. Montreal 2023 is coming up! CIM pulled together an excellent program after two years of being apart because of the pandemic. There were many networking opportunities. It was well worth it. It was a great opportunity to see and renew old friends. Thank you for making the CIM Annual General Meeting such a success. CIM Conventions are a great way to meet peers and exchange ideas, which is a crucial part of progressing our industry. You can talk to people who do the job every day. This really helps to change your perspective and better understand what we're all trying to achieve. The industry was awash with hope, desire, and effort to improve in every aspect.
english
OMFC - you guys here are Bozos, ditto. Obama won because America needed a change in the leadership of a vast country. However, whether he will live up to his promise, we have yet to see. True, Bush was a terrible president, but that doesn't mean that Barack Obama will be a better President. Nevertheless, it is finally good for U.S. to realize that war is bad, civil rights is great, and change is inevitable. Don't be too quick to praise Barack Obama, fellow geeks, and Indian, for that matter! He represents a fresh new start in the U.S. but there is no certainty that U.S. will change for the better even as he is now President. It is good to know that anybody, if hard-working and American-born, can rise up to the status of President of the United States, but Barack is still young, so he is bound to make mistakes as well...just because there is a photo of him imitating Superman doesn't mean he will effect positive outcomes right away. He is still human and no one, not even the mighty leaders of yesterday is perfect or immune to error.
english
#define BOOST_TEST_MODULE fps_fs__buffered_file #include <boost/test/unit_test.hpp> #include "fps_fs/test/common.h" #include "fps_fs/buffered_file.h" #include "fps_process/process.h" #include <iostream> using namespace fps ; struct NewlineExtractor { static const char * apply( const char * begin, uint32_t length ) { const char * end = begin + length ; while( begin < end && *begin != '\n' ) { ++begin ; } return (*begin == '\n') ? begin + 1 : NULL ; } } ; BOOST_AUTO_TEST_CASE( fps_file__buffered_file ) { fs::Path test_dir( "/tmp", "fps_fs.buffered_file.unit_test" /*, String::sprintf( "fps_fs.buffered_file.unit_test.%s.%d" , process::uname().c_str() , process::pid() ) */ ) ; test_dir.mkdirs() ; std::cout << "[ Unit Test -> fps::fs::BufferedFile ]" <<std::endl ; fs::test::to_stdout( test_dir, "Created Test Directory" ) ; { fs::Path f1_path( test_dir, "test_01.buffered_file.txt" ) ; fs::BufferedFile f1_file( f1_path.str(), "w" ) ; fs::test::to_stdout( f1_file, "Opened Test File" ) ; f1_file.write( "abcd\n", 5 ) ; // f1_file.writef( "'%s' : { v1: %u, v2: %u }\n", "test_object", 1, 2 ) ; } std::cout << std::endl ; // test_dir.rmtree() ; }
cpp
{"number":"46.405","title":"Subcontracts.","children":[{"text":"(a) Government contract quality assurance on subcontracted supplies or services shall be performed only when required in the Government’s interest. The primary purpose is to assist the contract administration office cognizant of the prime contractor’s plant in determining the conformance of subcontracted supplies or services with contract requirements or to satisfy one or more of the factors included in (b) of this section. It does not relieve the prime contractor of any responsibilities under the contract. When appropriate, the prime contractor shall be requested to arrange for timely Government access to the subcontractor facility.","type":"paragraph","level":null},{"text":"(b) The Government shall perform quality assurance at the subcontract level when—","type":"paragraph","level":null},{"text":"(1) The item is to be shipped from the subcontractor’s plant to the using activity and inspection at source is required;","type":"outline","level":1},{"text":"(2) The conditions for quality assurance at source are applicable (see 46.402);","type":"outline","level":1},{"text":"(3) The contract specifies that certain quality assurance functions, which can be performed only at the subcontractor’s plant, are to be performed by the Government; or","type":"outline","level":1},{"text":"(4) It is otherwise required by the contract or determined to be in the Government’s interest.","type":"outline","level":1},{"text":"(c) Supplies or services for which certificates, records, reports, or similar evidence of quality are available at the prime contractor’s plant shall not be inspected at the subcontractor’s plant, except occasionally to verify this evidence or when required under (b) of this section.","type":"paragraph","level":null},{"text":"(d) All oral and written statements and contract terms and conditions relating to Government quality assurance actions at the subcontract level shall be worded so as not to—","type":"paragraph","level":null},{"text":"(1) Affect the contractual relationship between the prime contractor and the Government, or between the prime contractor and the subcontractor;","type":"outline","level":1},{"text":"(2) Establish a contractual relationship between the Government and the subcontractor; or","type":"outline","level":1},{"text":"(3) Constitute a waiver of the Government’s right to accept or reject the supplies or services.","type":"outline","level":1}]}
json
<reponame>3lvia/yopass<filename>pkg/yopass/client_test.go package yopass_test import ( "context" "errors" "fmt" "net/http/httptest" "testing" "github.com/3lvia/onetime-yopass/pkg/server" "github.com/3lvia/onetime-yopass/pkg/yopass" "github.com/prometheus/client_golang/prometheus" ) func TestFetch(t *testing.T) { db := testDB(map[string]string{}) y := server.New(&db, 1024, prometheus.NewRegistry(), false) ts := httptest.NewServer(y.HTTPHandler()) defer ts.Close() key := "<KEY>" msg := "test secret message" if err := db.Put(context.Background(), key, yopass.Secret{Message: msg}); err != nil { t.Fatal(err) } got, err := yopass.Fetch(ts.URL, key) if err != nil { t.Fatal(err) } if msg != got { t.Errorf("expected fetched message to be %q, got %q", msg, got) } _, err = yopass.Fetch(ts.URL, "4b9502b0-112a-40f5-a872-000000000000") if want := new(yopass.ServerError); !errors.As(err, &want) { t.Errorf("expected a ServerError, got %v", err) } } func TestFetchInvalidServer(t *testing.T) { _, err := yopass.Fetch("127.0.0.1:9999/invalid", "1337") if err == nil { t.Error("expected error, got none") } } func ToDoFixTestStore(t *testing.T) { db := testDB(map[string]string{}) y := server.New(&db, 1024, prometheus.NewRegistry(), false) ts := httptest.NewServer(y.HTTPHandler()) defer ts.Close() //TODO: Fix test without ElvID access token. // msg := "--- ciphertext ---" // id, err := yopass.Store(ts.URL, yopass.Secret{Expiration: 3600, Message: msg}) // if err != nil { // t.Fatal(err) // } // got, err := db.Get(context.Background(), id) // if err != nil { // t.Fatal(err) // } // if msg != got.Message { // t.Errorf("expected stored message to be %q, got %q", msg, got.Message) // } } type testDB map[string]string func (db *testDB) Get(context context.Context, key string) (yopass.Secret, error) { msg, ok := (map[string]string(*db))[key] if !ok { return yopass.Secret{}, fmt.Errorf("secret not found") } return yopass.Secret{Message: msg}, nil } func (db *testDB) Put(context context.Context, key string, secret yopass.Secret) error { (map[string]string(*db))[key] = secret.Message return nil } func (db *testDB) Delete(context context.Context, key string) error { delete((map[string]string(*db)), key) return nil }
go
Currently, all the attention is focused on the Goods and Service Tax (GST) which will be rolled out from July 1, after a special midnight session of Parliament. However, the Aadhaar will also be getting a major boost from July 1, with the identification becoming compulsory for many financial and personal transactions. Here are five of them: All employees who opt for the Employees' Provident Fund must now link their account to their Aadhaar numbers by June 30. The EPFO has stated that this move will lower the time taken for settlement of payments, down to ten days from the current 20 days. The rule also applies to pensioners. If you want to get a new PAN card after Saturday, please ensure you have an Aadhaar number first. The move is yet another step by the government to ensure that a citizen's activities are tracked at all times, through a common point. The government has made it mandatory for all PAN cards in the country to be associated with an Aadhaar. While the PAN card is required for significant financial transactions, as the Govt seems to have realised with some delay - those looking to jump tax simply made several PAN cards. The move to link the Aadhaar is hoped to be a way to stop this scam. From July 1, as per a notification from the Ministry of External Affairs, no new passports will be issued without an Aadhaar. The identification number has been made one of the required documents when applying for your passport. Considering that barely 2% of this country even pays income tax, it is obvious that a huge number are skipping the tax. The govt has decided to make the Aadhaar compulsory for filing your IT returns from July 1. The move is a two-pronged one. Obviously, the govt can verify if you have paid your tax or not. But secondly, thanks to the linking with the PAN, the govt can also verify if those registered for a PAN have paid their taxes.
english
// package const { Conflux, Drip } = require('./js-conflux-sdk-master/src'); const BN = require('bignumber.js') const util = require('util'); const lodash = require('lodash'); const path = require("path"); const fs = require("fs"); // cfx const cfx = new Conflux({ url: "http://main.confluxrpc.org", defaultGasPrice: 100, defaultGas: 1000000, logger: console, }); // approve max const maxApproveAmount = "115792089237316195423570985008687907853269984665640564039457584007913129639935"; // ABI const moonswapPairABI = require('./pairABI.json'); const IERC20 = require('./IERC20.json'); const IERC20ABI = IERC20.abi; const moonswapFactoryABI = require('./FactoryABI.json'); const moonswapRouterABI = require('./RouterABI.json'); // contract Address const moonswapFactoryAddress = "0x865f55a399bf9250ae781adfbed71e70c12bd2d8"; const moonswapRouterAddress = '0x80ae6a88ce3351e9f729e8199f2871ba786ad7c5'; // pair info const wcfxAddress = "0x8d7df9316faa0586e175b5e6d03c6bda76e3d950"; // token1 const cUSDTAddress = "0x8b8689c7f3014a4d86e4d1d0daaf74a47f5e0f27"; // token0 const productName = "CFX-USDT"; //router contract const moonswapRouterContract = cfx.Contract({ address: moonswapRouterAddress, abi: moonswapRouterABI, }) //token contract const wcfxContract = cfx.Contract({ address: wcfxAddress, abi: IERC20ABI.abi, }); const cUSDTContract = cfx.Contract({ address: cUSDTAddress, abi: IERC20ABI.abi, }); // moondex const MatchFlowClient = require('matchflow'); const matchflow = new MatchFlowClient({ network: 'mainnet' }); const miniAmount = 0.0001; const totalGas = 0.25; // account private_key const PRIVATE_KEY = '0x****************************************'; // replace your private key here, add 0x prefix const account = cfx.wallet.addPrivateKey(PRIVATE_KEY); // get token1 name var token1Name, token0Name; // total buy/sell times var buyTimes = 0, sellTimes = 0; // pair Address var pairAddress; // arbitrary json logs var data = { code: 0, ok: true, beginTime: 0, errorTimes: 0, list: [] }; // statistics, usdt var totalDexSell=0, totalDexBuy=0, totalSwapSell=0, totalSwapBuy=0; var bestAmount=0.0, bestProfit = 0.0; var errorTimes = 0; async function main() { // record begin time var myDate = new Date(); data.beginTime = myDate.toLocaleString(); // pre Approve await approveToken(cUSDTAddress, moonswapRouterAddress, account); await approveToken(wcfxAddress, moonswapRouterAddress, account); token1Name = await matchflow.currency.getTokenName(wcfxAddress); console.log("Token1 Name:", token1Name); token0Name = await matchflow.currency.getTokenName(cUSDTAddress); console.log("Token0 Name:", token0Name); pairAddress = await getPairAddress(cUSDTAddress, wcfxAddress, moonswapFactoryAddress); // loop arbitrary start(); } async function start() { try { actionBool = await arbitrary(cUSDTAddress, wcfxAddress, token0Name, token1Name); //testAmount = 0.001 if(actionBool) timerId = setTimeout(start, 10000); //time interval, ms else{ if(data.list.length > 0) printJsonLog(); timerId = setTimeout(start, 20000); //10s didn't enough for rebalance confirmed. } } catch(err) { errorTimes++; console.log("error time(s):", errorTimes); var myDate = new Date(); console.log("Time: ", myDate.toLocaleString()); if(data.list.length > 0) printJsonLog("_error"); console.log(err); // test try again start(); } } function printJsonLog(note = "") { data.errorTimes = errorTimes; errorTimes = 0; console.log(data); var content = JSON.stringify(data); // confirm the documentary,__dirname show the name of the js's parent directory var timeStamp = Date.now(); var file = path.join(__dirname, "data/arbitraryLogs" + timeStamp.toString() + note + ".json"); // write file fs.writeFile(file, content, function(err) { if (err) { return console.log(err); } console.log("Successfully create json. Address: " + file); }); // clear data.list = []; } // strictly restricted to run ONCE before arbitrary loop. async function approveToken(tokenAddress, allowanceAddress, account) { console.log("Try approve. "); if(tokenAddress == wcfxAddress){ console.log("The user try to swap CFX. No need to approve."); return false; } tokenContract = cfx.Contract({ address: tokenAddress, abi: IERC20ABI, }); preAllowance = await tokenContract.allowance(account.address, allowanceAddress); console.log("Contract pre-approve tokens: ", preAllowance); swapAmount = await getSwapAccount(account, tokenAddress); if(BN(swapAmount).lte(BN(preAllowance))) { console.log("Have done Approval."); return false; } // to avoid ctoken balance's error(require) if(preAllowance > 0 ) { console.log("Token has approval balance. Try to mini-swap to CFX") await moonswapRouterContract.swapExactTokensForCFX( preAllowance, 0, [tokenAddress, wcfxAddress], account.address, creatDeadline(), ) .sendTransaction({ from: account, }) .executed(); console.log("Mini-swap success.") } await tokenContract.approve( allowanceAddress, maxApproveAmount, ) .sendTransaction({ from: account, }) .executed(); console.log("Approve success"); return true; } async function arbitrary(token0Address, token1Address, token0Name, token1Name, testAmount = 0) { //cusdt, wcfx var myDate = new Date(); console.log("Start one action. Time: ", myDate.toLocaleString()); dexDepth = await getMoonDexDepth(productName); buyFirst = dexDepth.Buy[0]; // first ask // notice buy amount = 0.0001 if(buyFirst.amount == miniAmount) buyFirst = dexDepth.Buy[1]; sellFirst = dexDepth.Sell[0]; // first bid // notice sell amount = 0.0001 if(sellFirst.amount == miniAmount) sellFirst = dexDepth.Sell[1]; console.log("Dex ask %s: ", token1Name, buyFirst); console.log("Dex bid %s", token1Name, sellFirst); //pairAddress = await getPairAddress(token0Address, token1Address, moonswapFactoryAddress); reserves = await getPairReserves(pairAddress); token0Res = reserves[0]; // cUSDT, 1e18 token1Res = reserves[1]; // wcfx, 1e18 // estimated price console.log("Estimate Price:"); eAmount = 0.1; sellToken1Price = getAmountOut(token1Res, token0Res, eAmount) / eAmount; buyToken1Price = eAmount / getAmountOut(token0Res, token1Res, eAmount); console.log("Swap buy %s: ", token1Name, buyToken1Price); console.log("Swap sell %s: ",token1Name, sellToken1Price); /* //test price console.log(getAmountOut(token1Res, token0Res, eAmount)); console.log(getAmountIn(token1Res, token0Res, eAmount)); console.log(getAmountOut(token0Res, token1Res, eAmount)); console.log(getAmountIn(token0Res, token1Res, eAmount)) */ //amount become Drip // dex amount scale could not larger than 4 if(buyFirst.price > buyToken1Price) { console.log("Buy %s from swap. Sell %s in Dex", token1Name, token1Name); dexPrice = buyFirst.price; if (testAmount > 0) maxAmount = testAmount; else maxAmount = buyFirst.amount; res = await buyMax( token0Res, token1Res, maxAmount, dexPrice, account, token0Address, token1Address ); // check whether user has enough token availableAmount = res.amount; minState = res.state; availableAmount = (BN(availableAmount).toNumber() - miniAmount).toFixed(4); //scale to 4 console.log("available amount: ", availableAmount); tmp = getAmountIn(token0Res, token1Res, BN(availableAmount).times(BN(1e18))); tSwapBuy = BN(tmp).div(1e18).toNumber(); tDexSell = availableAmount * dexPrice; if(availableAmount <= 0 ) { console.log("Insufficient swap/dex!"); await rebalance(token0Address, token0Name, account); await rebalance(token1Address, token1Name, account); return false; } /* // mini amount benefit, skip trading if((tDexSell-tSwapBuy) < dexPrice * totalGas) { console.log("Profit too small."); return true; } */ await createLimitSellOrder(account, productName, {price: dexPrice, amount: availableAmount}); await swapTokens( 'Buy', availableAmount, dexPrice, {fromAddress: token0Address, toAddress: token1Address}, account ); buyTimes++; // create record state state = "Buy " + token1Name + " from swap. Sell " + token1Name + " in Dex"; totalSwapBuy += tSwapBuy; totalDexSell += tDexSell; console.log(state, totalSwapBuy, totalDexSell); var myDate = new Date(); var obj = { time: myDate.toLocaleString(), state: state, buyPrice: BN(tmp).div(1e18).div(availableAmount).toNumber(), sellPrice: dexPrice, arbitraryAmount: availableAmount, bestAmount: bestAmount, bestProfit: bestProfit, dexAmount: buyFirst.amount, thisBuy: tSwapBuy, thisSell: tDexSell, totalDexBuy: totalDexBuy, totalDexSell: totalDexSell, totalSwapBuy: totalSwapBuy, totalSwapSell: totalSwapSell, token0Res: token0Res, token1Res: token1Res, } bestAmount = 0.0; data.list.push(obj); if(minState == false) { await rebalance(token0Address, token0Name, account); await rebalance(token1Address, token1Name, account); return false; } } if(sellFirst.price < sellToken1Price) { console.log("Sell %s from swap, Buy %s in Dex", token1Name, token1Name); dexPrice = sellFirst.price; if(testAmount > 0 ) maxAmount = testAmount; else maxAmount = sellFirst.amount; res = await sellMax( token0Res, token1Res, maxAmount, dexPrice, account, token0Address, token1Address ); // check whether user has enough token availableAmount = res.amount; minState = res.state; availableAmount = (BN(availableAmount).toNumber() - miniAmount).toFixed(4); tDexBuy = availableAmount * dexPrice; tmp = getAmountOut(token1Res, token0Res, BN(availableAmount).times(BN(1e18))); tSwapSell = BN(tmp).div(1e18).toNumber(); if(availableAmount <= 0) { // deal with accidental error console.log("Insufficient swap/dex!"); await rebalance(token0Address, token0Name, account); await rebalance(token1Address, token1Name, account); return false; } // token1 amount await createLimitBuyOrder(account, productName, {price: dexPrice, amount: availableAmount}); await swapTokens( 'Sell', availableAmount, dexPrice, {fromAddress: token1Address, toAddress: token0Address}, account ); sellTimes++; // create record state state = "Sell " + token1Name + " from swap. Buy " + token1Name + " in Dex"; totalDexBuy += tDexBuy; totalSwapSell += tSwapSell; console.log(state, totalSwapSell, totalDexBuy); var myDate = new Date(); var obj = { time: myDate.toLocaleString(), state: state, buyPrice: dexPrice, sellPrice: BN(tmp).div(1e18).div(availableAmount).toNumber(), arbitraryAmount: availableAmount, bestAmount: bestAmount, bestProfit: bestProfit, dexAmount: sellFirst.amount, thisBuy: tDexBuy, thisSell: tSwapSell, totalDexBuy: totalDexBuy, totalDexSell: totalDexSell, totalSwapBuy: totalSwapBuy, totalSwapSell: totalSwapSell, token0Res: token0Res, token1Res: token1Res, } bestAmount = 0.0; data.list.push(obj); if(minState == false) { await rebalance(token0Address, token0Name, account); await rebalance(token1Address, token1Name, account); return false; } } console.log("Finish one action. Buy %s %d time(s). Sell %s %d time(s).", token1Name, buyTimes, token1Name, sellTimes); return true; } // tool functions // test pass function getMin(tmax, dex, swap) { if(BN(tmax).lte(BN(dex)) && BN(tmax).lte(BN(swap))) { console.log("best Amount."); return {amount: BN(tmax).div(BN(1e18)).toFixed(), state: true}; } else if(BN(dex).lte(BN(tmax)) && BN(dex).lte(BN(swap))) { console.log("dex insuffient."); return {amount: BN(dex).div(BN(1e18)).toFixed(), state: false}; } else { console.log("swap insuffient."); return {amount: BN(swap).div(BN(1e18)).toFixed(), state: false}; } } // test pass async function createLimitBuyOrder(account, productName, {price, amount}) { console.log("start limit buy."); // Load a specific product const product = await matchflow.product.get(productName) // Get a user const user = await matchflow.user.get(account.address) // Get user accounts //await user.accounts().then(console.log) // Create a buy order const buyOrder = user.limitBuy(product, { price, amount }); const result = await buyOrder.place(account); console.log("Finish limit buy.", JSON.stringify(result, null, 4)); } // test pass async function createLimitSellOrder(account, productName, {price, amount}) { console.log("Start limit sell."); // Load a specific product const product = await matchflow.product.get(productName) // Get a user const user = await matchflow.user.get(account.address) // Get user accounts await user.accounts().then(console.log) // Create a buy order const sellOrder = user.limitSell(product, { price, amount }); const result = await sellOrder.place(account); console.log("Finish limit sell.", JSON.stringify(result, null, 4)); } async function rebalance(tokenAddress, tokenName, account) { console.log("Begin rebalance %s.", tokenName); // balance token dexAccount = await getDexAccount(account, tokenAddress); dexAccount = BN(dexAccount).div(1e18).toNumber(); swapAccount = await getSwapAccount(account, tokenAddress); swapAccount = BN(swapAccount).div(1e18).toNumber(); balanceAmount = (dexAccount + swapAccount) / 2; balanceAmount = balanceAmount.toFixed(3); console.log("balance amount: ", balanceAmount); if (dexAccount < balanceAmount) { transferAmount = balanceAmount - dexAccount; await deposit(tokenName, transferAmount, account, account.address); } else if(dexAccount > balanceAmount) { transferAmount = dexAccount - balanceAmount; await withdraw(tokenName, transferAmount, account, account.address); } console.log("Finish rebalance %s.", tokenName); return true; } // test pass async function withdraw(currencyName, amount, account, recipient) { // Load a specific currency const currency = await matchflow.currency.get(currencyName); //test const withdrawFee = await matchflow.currency.getWithdrawFee(currencyName); console.log(withdrawFee); // fetch current balance /* let balance = await currency.Contract(cfx).balanceOf(account.address); console.log('Balance before withdraw:', balance.toString()); let recipientBalance = await currency.TokenContract(cfx).balanceOf(recipient); console.log('Recipient balance before withdraw:', recipientBalance.toString()); */ await currency.withdraw(account, recipient, amount, withdrawFee); } // test pass async function deposit(currencyName, amount, account, recipient) { const currency = await matchflow.currency.get(currencyName); // fetch current balance /* let balance = await currency.Contract(cfx).balanceOf(recipient); console.log('Balance before deposit:', balance.toString()); let recipientBalance = await currency.TokenContract(cfx).balanceOf(account.address); console.log('Recipient balance before deposit:', recipientBalance.toString()); */ await currency.deposit(account, recipient, amount, cfx); } // test pass async function getMoonDexDepth(productName) { const nowDepth = await matchflow.market.depth(productName); //test console.log("depth: ", nowDepth); // test end return nowDepth; } /* Buy: [ { price: 0.176, amount: 835.9488, count: 1 }, { price: 0.175, amount: 10498.4401, count: 4 }, { price: 0.174, amount: 4928.1609, count: 1 }, { price: 0.173, amount: 4945.0867, count: 1 }, { price: 0.172, amount: 5188.9535, count: 1 } ], Sell: [ { price: 0.1819, amount: 2883.4039, count: 1 }, { price: 0.182, amount: 2889, count: 1 }, { price: 0.1842, amount: 0.2983, count: 1 }, { price: 0.185, amount: 127, count: 1 }, { price: 0.19, amount: 6680.7737, count: 3 } ] */ //test pass async function getDexAccount(account, tokenAddress) {// cfx amount, 1e18 console.log("getDexAccount"); const currencyName = await matchflow.currency.getTokenName(tokenAddress); const user = await matchflow.user.get(account.address) const userInfo = await user.accounts(currencyName); console.log(userInfo.items); // pick specific currency tmp = lodash.pickBy(userInfo.items, (cur) => { return (cur.currency == currencyName); }); currencyInfo = Object.values(tmp)[0]; console.log("getDexAccount Success"); return Drip.fromCFX(currencyInfo.availableString); } /* { total: 2, items: [ { id: 698, userId: 283, currency: 'CFX', hold: 0, available: 2.5649717514124295, status: 'Normal', balance: 2.5649717514124295, holdString: '0', availableString: '2.564971751412429378', balanceString: '2.564971751412429378' }, { id: 698, userId: 283, currency: 'USDT', hold: 0.1, available: 0.29923, status: 'Normal', balance: 0.39923, holdString: '0.1', availableString: '0.299230000000000001', balanceString: '0.399230000000000001' } ] } */ // test pass async function getPairAddress(token0Address, token1Address, moonswapFactoryAddress) { //factory contract const factoryContract = cfx.Contract({ address: moonswapFactoryAddress, abi: moonswapFactoryABI, }); let moonswapPairAddress = await factoryContract.getPair(token0Address, token1Address); console.log("Successfully get pair address. Address: ", moonswapPairAddress); return moonswapPairAddress; } // test pass async function getPairReserves(pairAddress) { const moonswapPairContract = cfx.Contract({ address: pairAddress, abi: moonswapPairABI, }); let reserves = await moonswapPairContract.getReserves(); console.log("Successfully get pair reserves. res0: ", reserves[0], "res1: ", reserves[1]); return reserves; } // test pass function getAmountOut(Rin, Rout, AmountIn) { amountInWithFee = BN(AmountIn).times(997); num = BN(Rout).times(amountInWithFee); den = BN(Rin).times(1000).plus(amountInWithFee); // use + lead to type degraded return num.div(den).toFixed(); } // test pass function getAmountIn(Rin, Rout, AmountOut) { if(BN(Rout).lte(BN(AmountOut))) { console.log("Invalid AmountOut."); throw new Error("Function getAmountIn Error: Invalid AmountOut."); } num = BN(Rin).times(BN(AmountOut)).times(1000); den = BN(Rout).minus(BN(AmountOut)).times(997); //return num.div(den).plus(1).toFixed(); return num.div(den).toFixed(); //1e18 } // test pass async function getSwapAccount(account, tokenAddress) { // 1e18 console.log("getSwapAccount"); if (tokenAddress == wcfxAddress) { let balance = await cfx.getBalance(account.address); console.log("Successfully get swapAccount. Balance:", balance); return balance; } else { const tokenContract = cfx.Contract({ address: tokenAddress, abi: IERC20ABI, }); let balance = await tokenContract.balanceOf(account); console.log("Successfully get swapAccount. Balance: ", balance); return balance; } } // test pass function findSellBest(token0Res, token1Res, dexPrice, toDripAmountIn) { console.log("Find sell best amount"); k = BN(token0Res).times(BN(token1Res)); // test tmp = k.times(997).times(1000).div(dexPrice).sqrt(); tToken0num = tmp.minus(BN(token1Res).times(1000)); tToken0 = tToken0num.div(997).times(BN(dexPrice)); tmaxAmount = getAmountOut(token0Res, token1Res, tToken0); bestAmount = BN(tmaxAmount).div(BN(1e18)).toFixed(); console.log("best amount: ", bestAmount); // best profit bestProfit = BN(tToken0).div(BN(1e18)).toNumber() - bestAmount * dexPrice; console.log("best profit: ", bestProfit); return tmaxAmount; } // test pass async function sellMax( token0Res, //1e18 token1Res, //1e18 maxAmount, dexPrice, account, token0Address, token1Address) { toDripAmount = BN(maxAmount).times(BN(1e18)); swapCostTokens = getAmountOut(token1Res, token0Res, toDripAmount); realPrice = BN(swapCostTokens).div(BN(toDripAmount)).toFixed(); console.log("real Price: ", realPrice, dexPrice); let tmaxAmount = findSellBest(token0Res, token1Res, dexPrice, toDripAmount); // 1e18 if (BN(toDripAmount).lte(BN(tmaxAmount))) { tmaxAmount = toDripAmount; console.log("All-in available"); bestAmount = "All-in"; bestProfit = realPrice * maxAmount - dexPrice * maxAmount; } dexToken1Balance = await getDexAccount(account, token0Address); dexMaxBuy = dexToken1Balance / dexPrice;// to 1e18 token1Balance = await getSwapAccount(account, token1Address); swapMaxSell = token1Balance; //1e18 console.log(tmaxAmount, dexMaxBuy, swapMaxSell); return getMin(tmaxAmount, dexMaxBuy, swapMaxSell); // cfx Amount } // test pass function findBuyBest(token0Res, token1Res, dexPrice, toDripAmountIn) { console.log("Find buy best amount."); k = BN(token0Res).times(BN(token1Res)); // test tToken0mid = k.times(997).div(1000).times(dexPrice).sqrt(); tToken0 = tToken0mid.minus(BN(token0Res)).toFixed(); tmaxAmount = getAmountOut(token0Res, token1Res, tToken0); //1e18 bestAmount = BN(tmaxAmount).div(BN(1e18)).toFixed(); console.log("best amount: ",bestAmount); // best profit bestProfit = bestAmount * dexPrice - BN(tToken0).div(BN(1e18)).toNumber(); console.log("best profit: ", bestProfit); return tmaxAmount; // 1e18 } //test pass async function buyMax( token0Res, //1e18 token1Res, //1e18 maxAmount, dexPrice, account, token0Address, token1Address) { toDripAmount = BN(maxAmount).times(BN(1e18)); swapCostTokens = getAmountIn(token0Res, token1Res, toDripAmount); realPrice = BN(swapCostTokens).div(BN(toDripAmount)).toFixed(); console.log("real price: ", realPrice, dexPrice); let tmaxAmount = findBuyBest(token0Res, token1Res, dexPrice, toDripAmount); // 1e18 if (BN(toDripAmount).lte(BN(tmaxAmount))) { tmaxAmount = toDripAmount; console.log("All-in available"); bestAmount = "All-in"; bestProfit = dexPrice * maxAmount - realPrice * maxAmount; } dexMaxSell = await getDexAccount(account, token1Address); // to 1e18 token0Balance = await getSwapAccount(account, token0Address); swapMaxBuy = getAmountOut(token0Res, token1Res, token0Balance); //1e18 return getMin(tmaxAmount, dexMaxSell, swapMaxBuy); // cfx Amount } async function swapTokens( side, // buy or sell amount, priceControl, // profit limit {fromAddress, toAddress}, // approve exact tokens account) { console.log("Begin swap tokens"); if (side == 'Sell') { if(fromAddress == wcfxAddress) { // direct send transaction await moonswapRouterContract.swapExactCFXForTokens( BN(amount).times(BN(priceControl)).times(BN(1e18)).toString(), // price control [fromAddress, toAddress], account.address, creatDeadline(), ) .sendTransaction({ from: account, to: moonswapRouterAddress, value: BN(amount).times(BN(1e18)).toString() }) .executed(); } else{ await moonswapRouterContract.swapExactTokensForTokens( BN(amount).times(BN(1e18)).toString(), BN(priceControl).times(BN(amount)).times(BN(1e18)).toString(), //price controll [fromAddress, toAddress], account.address, creatDeadline(), ) .sendTransaction({ from: account, }) .executed(); } } else if (side == 'Buy') { if(toAddress == wcfxAddress) { console.log(amount, priceControl*amount); await moonswapRouterContract.swapTokensForExactCFX( BN(amount).times(BN(1e18)).toString(), BN(priceControl).times(BN(amount).times(BN(1e18))).toString(), //price controll [fromAddress, toAddress], account.address, creatDeadline(), ) .sendTransaction({ from: account, }) .executed(); } else { await moonswapRouterContract.swapTokensForExactTokens( BN(amount).times(BN(1e18)).toString(), BN(priceControl).times(BN(amount).times(BN(1e18))).toString(), //price controll [fromAddress, toAddress], account.address, creatDeadline(), ) .sendTransaction({ from: account, }) .executed(); } } else { throw new error("Invalid method"); } console.log("Finish swap tokens"); } // test pass function creatDeadline() { console.log("deadline test: ", Math.floor(Date.now() / 1000) + 20); return Math.floor(Date.now() / 1000) + 20; } main().catch(e => console.error(e));
javascript
<filename>ARSDecisionUnit/tags/PA Framework Created/DecisionUnits/src/pa/interfaces/I2_9.java /** * I2_9.java: DecisionUnits - pa.interfaces * * @author deutsch * 11.08.2009, 14:04:46 */ package pa.interfaces; /** * DOCUMENT (deutsch) - insert description * * @author deutsch * 11.08.2009, 14:04:46 * */ public interface I2_9 { public void receive_I2_9(int pnData); }
java
<reponame>1690296356/jdk /* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. * */ import org.testng.annotations.*; import java.io.IOException; import java.io.InputStream; import java.nio.charset.StandardCharsets; import java.nio.file.FileSystem; import java.nio.file.FileSystems; import java.nio.file.Files; import java.nio.file.Path; import java.security.SecureRandom; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; import static java.lang.String.format; import static java.util.stream.Collectors.joining; import static org.testng.Assert.*; /** * @test * @bug 8231093 * @summary Test Zip FS compressionMethod property * @modules jdk.zipfs * @run testng CompressionModeTest */ public class CompressionModeTest { private static final Path HERE = Path.of("."); /** * Number of ZIP entries to create */ private static final int ENTRIES = 5; /** * Value used for creating the required entries in a ZIP or JAR file */ private static final String ZIP_FILE_VALUE = "US Open 2019"; private static final byte[] ZIP_FILE_ENTRY = ZIP_FILE_VALUE.getBytes(StandardCharsets.UTF_8); private static final SecureRandom random = new SecureRandom(); /** * Validate that you can create a ZIP file with and without compression * and that entries are created with the specified compression method. * * @param env Properties used for creating the ZIP Filesystem * @param compression Indicates whether the files are DEFLATED(default) * or STORED * @throws Exception If an error occurs during the creation, verification or * deletion of the ZIP file */ @Test(dataProvider = "validCompressionMethods", enabled = true) public void testValidCompressionMehods(Map<String, String> env, int compression) throws Exception { System.out.printf("ZIP FS Map = %s, Compression mode= %s%n ", formatMap(env), compression); Path zipfile = generatePath(HERE, "test", ".zip"); Files.deleteIfExists(zipfile); createZipFile(zipfile, env, ENTRIES); verify(zipfile, compression, ENTRIES, 0); Files.deleteIfExists(zipfile); } /** * Validate that an IllegalArgumentException is thrown when an invalid * value is specified for the compressionMethod property. * * @param env Properties used for creating the ZIP Filesystem * @throws Exception if an error occurs other than the expected * IllegalArgumentException */ @Test(dataProvider = "invalidCompressionMethod") public void testInvalidCompressionMethod(Map<String, String> env) throws Exception { System.out.printf("ZIP FS Map = %s%n ", formatMap(env)); Path zipfile = generatePath(HERE, "test", ".zip"); Files.deleteIfExists(zipfile); assertThrows(IllegalArgumentException.class, () -> createZipFile(zipfile, env, ENTRIES)); Files.deleteIfExists(zipfile); } /** * Create a ZIP File System using the specified properties and a ZIP file * with the specified number of entries * * @param zipFile Path to the ZIP File to create * @param env Properties used for creating the ZIP Filesystem * @param entries Number of entries to add to the ZIP File * @throws IOException If an error occurs while creating the ZIP file */ private void createZipFile(Path zipFile, Map<String, String> env, int entries) throws IOException { System.out.printf("Creating file = %s%n", zipFile); try (FileSystem zipfs = FileSystems.newFileSystem(zipFile, env)) { for (int i = 0; i < entries; i++) { Files.writeString(zipfs.getPath("Entry-" + i), ZIP_FILE_VALUE); } } } /** * DataProvider used to validate that you can create a ZIP file with and * without compression. */ @DataProvider(name = "validCompressionMethods") private Object[][] validCompressionMethods() { return new Object[][]{ {Map.of("create", "true"), ZipEntry.DEFLATED}, {Map.of("create", "true", "noCompression", "true"), ZipEntry.STORED}, {Map.of("create", "true", "noCompression", "false"), ZipEntry.DEFLATED}, {Map.of("create", "true", "compressionMethod", "STORED"), ZipEntry.STORED}, {Map.of("create", "true", "compressionMethod", "DEFLATED"), ZipEntry.DEFLATED}, {Map.of("create", "true", "compressionMethod", "stored"), ZipEntry.STORED}, {Map.of("create", "true", "compressionMethod", "deflated"), ZipEntry.DEFLATED} }; } /** * DataProvider used to validate that an IllegalArgumentException is thrown * for an invalid value for the compressionMethod property. */ @DataProvider(name = "invalidCompressionMethod") private Object[][] invalidCompressionMethod() { HashMap<String, String> map = new HashMap<>(); map.put("create", "true"); map.put("compressionMethod", null); return new Object[][]{ {map}, {Map.of("create", "true", "compressionMethod", "")}, {Map.of("create", "true", "compressionMethod", Integer.parseInt("5"))}, {Map.of("create", "true", "compressionMethod", "invalid")} }; } /** * Verify that the given path is a ZIP file containing the * expected entries. * * @param zipfile ZIP file to be validated * @param method Expected Compression method: STORED or DEFLATED * @param entries Number of expected entries * @param start Starting number for verifying entries * @throws Exception If an error occurs while examining the ZIP file */ private static void verify(Path zipfile, int method, int entries, int start) throws Exception { // check entries with ZIP API try (ZipFile zf = new ZipFile(zipfile.toFile())) { // check entry count assertEquals(entries, zf.size()); // check compression method and content of each entry for (int i = start; i < entries; i++) { ZipEntry ze = zf.getEntry("Entry-" + i); assertNotNull(ze); assertEquals(method, ze.getMethod()); try (InputStream is = zf.getInputStream(ze)) { byte[] bytes = is.readAllBytes(); assertTrue(Arrays.equals(bytes, ZIP_FILE_ENTRY)); } } } // check entries with FileSystem API try (FileSystem fs = FileSystems.newFileSystem(zipfile)) { // check entry count Path top = fs.getPath("/"); long count = Files.find(top, Integer.MAX_VALUE, (path, attrs) -> attrs.isRegularFile() || (attrs.isDirectory() && path.getFileName() != null && path.getFileName().toString().equals("META-INF"))) .count(); assertEquals(entries, count); // check content of each entry for (int i = start; i < entries; i++) { Path file = fs.getPath("Entry-" + i); byte[] bytes = Files.readAllBytes(file); assertTrue(Arrays.equals(bytes, ZIP_FILE_ENTRY)); } } } /** * Generate a temporary file Path * * @param dir Directory used to create the path * @param prefix The prefix string used to create the path * @param suffix The suffix string used to create the path * @return Path that was generated */ private static Path generatePath(Path dir, String prefix, String suffix) { long n = random.nextLong(); String s = prefix + Long.toUnsignedString(n) + suffix; Path name = dir.getFileSystem().getPath(s); // the generated name should be a simple file name if (name.getParent() != null) throw new IllegalArgumentException("Invalid prefix or suffix"); return dir.resolve(name); } /** * Utility method to return a formatted String of the key:value entries for * a Map * * @param env Map to format * @return Formatted string of the Map entries */ private static String formatMap(Map<String, String> env) { return env.entrySet().stream() .map(e -> format("(%s:%s)", e.getKey(), e.getValue())) .collect(joining(", ")); } }
java
India and China should put the border issue in its “appropriate” place and ease the situation to a “normalised control”, Chinese foreign minister Qin Gang told external affairs minister S Jaishankar during their meeting on the margins of the G20 foreign ministers’ meeting in New Delhi on Thursday. “We should put the border issue in the appropriate place in bilateral relations and promote the early shift of the border situation to normalised control,” Qin told Jaishankar during the meeting, their first since Qin took over as China’s foreign minister replacing Wang Yi. “The two sides should implement the important consensus between the leaders of the two countries, maintain dialogue, settle differences, and promote the improvement of bilateral relations as soon as possible and move forward steadily,” Qin said, according to a Chinese foreign ministry readout released on Friday morning, several hours after the bilateral meeting took place in New Delhi. “China is willing to accelerate the resumption of exchanges and cooperation with India in various fields, resume direct flights as soon as possible and facilitate people-to-people exchanges,” Qin said. Direct flights between the two countries have remained suspended since March 2020 when China shuttered its international borders because of the Covid-19 outbreak in the country. Lifting Covid-19 related restrictions in the recent months, Beijing has resumed direct flights with several countries in recent months, including South Asian countries such as Bangladesh and Pakistan. The continuing suspension of flights between India and China is interpreted by many as a symptom of the worst chill in ties between the two countries since the Galwan Valley incident in June 2020, when India lost 20 soldiers and China at least four troops in a brutal fight over a disputed section along the Line of Actual Control (LAC) in eastern Ladakh. The Indian minister was direct with his Chinese counterpart in explaining New Delhi’s consistent stand on the ongoing dispute. “We spent maybe about 45 minutes talking to each other and the bulk of our conversation, understandably, was about the current state of our relationship, which many of you have heard me describe as abnormal,” Jaishankar told a media briefing on Thursday evening. “And [that was] among the adjectives that I used in that meeting. There are real problems in that relationship that need to be looked at, that need to be discussed very openly and candidly between us. That’s what we sought to do today,” Jaishankar said. New Delhi has consistently dismissed Beijing’s allegations of acting in a provocative manner since the border standoff began in May 2020, and said that it was the Chinese People’s Liberation Army (PLA) that trespassed across the LAC in eastern Ladakh and triggered the tension. . Indian and Chinese border troops clashed as recently as on December 9 last year in the Tawang sector of Arunachal Pradesh in the eastern side of the LAC, thousands of kilometres away from Ladakh, a clear sign of mistrust and suspicion not only between the two armies but between New Delhi and Beijing. Thousands of troops remain deployed on both sides of the LAC, though frontline soldiers have disengaged from most of the friction points that were at the centre of the dispute in 2020. Qin added that China and India have extensive common interests in safeguarding the rights and interests of developing countries, promoting South-South cooperation and addressing global challenges such as climate change.
english
package de.blau.android; import java.io.InputStream; import android.os.AsyncTask; import android.util.Log; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.FragmentActivity; import de.blau.android.dialogs.ErrorAlert; import de.blau.android.dialogs.Progress; import de.blau.android.exception.OsmException; import de.blau.android.osm.ViewBox; import de.blau.android.resources.DataStyle; import de.blau.android.util.ACRAHelper; /** * Simple extension around AsyncTask for loading OSM data files or similar which typically a lot of template code * * @author simon * */ public abstract class ReadAsyncClass extends AsyncTask<Boolean, Void, ReadAsyncResult> { private static final String DEBUG_TAG = "ReadAsyncClass"; final FragmentActivity activity; final Map map; final InputStream is; final boolean add; final PostAsyncActionHandler postLoad; final ViewBox viewBox; /** * Construct a new instance * * @param activity the calling FragmentActivity * @param is the InputStream * @param add if true add to exiting data (not always used) * @param postLoad a handler to call afte the load has completed */ protected ReadAsyncClass(@NonNull final FragmentActivity activity, @NonNull final InputStream is, boolean add, @Nullable final PostAsyncActionHandler postLoad) { this.activity = activity; this.is = is; this.add = add; this.postLoad = postLoad; map = activity instanceof Main ? ((Main) activity).getMap() : null; viewBox = App.getLogic().getViewBox(); } @Override protected void onPreExecute() { Progress.showDialog(activity, Progress.PROGRESS_LOADING); } @Override protected void onPostExecute(ReadAsyncResult result) { Progress.dismissDialog(activity, Progress.PROGRESS_LOADING); if (map != null) { try { viewBox.setRatio(map, (float) map.getWidth() / (float) map.getHeight()); } catch (OsmException e) { Log.d(DEBUG_TAG, "onPostExecute got " + e.getMessage()); } DataStyle.updateStrokes(App.getLogic().strokeWidth(viewBox.getWidth())); } int code = result.getCode(); if (code != 0) { if (code == ErrorCodes.OUT_OF_MEMORY && App.getDelegator().isDirty()) { code = ErrorCodes.OUT_OF_MEMORY_DIRTY; } try { if (!activity.isFinishing()) { ErrorAlert.showDialog(activity, code, result.getMessage()); } } catch (Exception ex) { // now and then this seems to throw a WindowManager.BadTokenException, ACRAHelper.nocrashReport(ex, ex.getMessage()); } if (postLoad != null) { postLoad.onError(); } } else { if (postLoad != null) { postLoad.onSuccess(); } } if (map != null) { map.invalidate(); } activity.invalidateOptionsMenu(); } }
java
Season 8 of Bravo's hit reality TV show, Southern Charm, will have a mix of old-timers and some new faces like Olivia Flowers. Raised in South Carolina and Dallas, Olivia has previously also called Laguna Beach and Los Angeles home. The former Los Angeles girl has been a part of the entertainment industry, donning roles on and off the screen. Olivia's rumored relationship with Austen Kroll will be a significant draw for the new season of the Charleston-based series. Olivia's bio on Bravo TV's website reveals: Oliva Flowers is a true Southern Belle who returned home to Charleston shortly before the pandemic hit—and what was supposed to be a weeklong vacation turned into a permanent stay! Southern Charm is not Olivia's first reality TV appearance. The 1992-born former model was also featured in an episode of the hugely popular MTV show Teen Cribs. Olivia showcased her Dallas home for the show when she was 17 in an episode that also featured her brother, Connor Flowers. The 'Southern Belle' is also a Westlake Academy alumna where she played for the Varsity Basketball team and emerged as a State Champion. Olivia graduated from Wilbur O. and Ann Powers College of Business at Clemson University with a Bachelors in Sociology and English. According to her LinkedIn profile, Olivia worked as a production assistant for Paramount Pictures in 2015 for a year, where she worked on sets of The Colony and VH1's drama series Hit The Floor. Olivia's Bravo TV bio further states that: Before coming back to her hometown, Olivia was working as a production assistant in Los Angeles. She is staying with her parents in Charleston until she gets her feet back on the ground. After a DM from Austen, she finds herself smitten. After working as a production assistant, she did a three-year-long stint as an events coordinator for STK Atlanta. Olivia accommodated VIP guests and helped with "coordinating buyouts for TV/Film productions" and handling "social/corporate private dinners" for STK Atlanta. The Southern Charm debutante has also worked with acting coach Crystal Carson. Olivia worked as her assistant and production manager for Crystal's Auditioning By Heart Studios. Not surprisingly, Olivia has also worked as an actress featuring in shows like the 2017 comedy series, We're Pretty Terrible. Olivia also appeared in two short films, We Follow You (2019) and Chasing Waves (2016). More recently, Olivia has been working with Charleston-based Koz films. Fans can expect a romantic sojourn between Olivia and Austen in the new season. Austen's dating history has been showcased on the show previously as well. The Southern Charm star was consistently in an on-off relationship with co-star Madison LeCroy. Since they began to date in 2018, their televised rollercoaster relationship has provided a lot of drama to Southern Charm. Madison and Austen called it off officially in 2020, and Madison has since been engaged to Brett Randle. Olivia and Austen seem to be in a good place though they haven't made their relationship Instagram official. Austen told US Magazine, “I’ve known her now for a year and a half”. It will be interesting to see this burgeoning love story play out on the reality show. Tune in to watch Southern Charm Season 8 on Thursday, June 23, 2022, at 9.00 PM ET on Bravo.
english
<filename>test/unit/lib/common-test.js const common = require('../../../lib/common'), faker = require('faker') describe('common should', () => { test('export urls for the service', async () => { let expectedUrl = { api: 'https://api.mobile.endomondo.com/', paths: { auth: 'mobile/auth', activitiesList: 'mobile/api/workout/list', activity: { get: 'mobile/api/workout/get', post: 'mobile/track' } } } expect(common.urls).toEqual(expectedUrl) }) test('export regex for workout', async () => { let expectedWorkoutRegex = { isOk: /OK\n/, } expect(common.regex.workout).toEqual(expectedWorkoutRegex) }) test('export regex for auth', async () => { let expectedAuthRegex = { isOk: /OK\n/, authToken: /authToken=(.*?)\n/, measure: /measure=(.*?)\n/, displayName: /displayName=(.*?)\n/, userId: /userId=(.*?)\n/, facebookConnected: /facebookConnected=(.*?)\n/, secureToken: /secureToken=(.*?)\n/ } expect(common.regex.auth).toEqual(expectedAuthRegex) }) test('handle error should use same error than passed', async () => { let errorExpected = faker.random.uuid() let error = common.handleError(errorExpected) expect(error).toEqual(errorExpected) }) test('handle error should return specific string if no error passed', async () => { let error = common.handleError() expect(error).toEqual('result body is not compliant') }) })
javascript
<filename>data/glosses/uhl/v0.1/content/2633.json {"brief":"wealth","long":"<i>Meaning:</i> \"wealth\".<br/><i>Usage:</i> riches, strength, treasure.<br/><i>Source:</i> from \"H2630\";"}
json
<reponame>Ash-Shaun/visualstudio-docs --- title: "How to: Programmatically open text files as workbooks" ms.custom: "" ms.date: "02/02/2017" ms.technology: - "office-development" ms.topic: "conceptual" dev_langs: - "VB" - "CSharp" helpviewer_keywords: - "workbooks, opening text files as" - "text [Office development in Visual Studio], text files" - "text files, opening as workbooks" author: TerryGLee ms.author: tglee manager: douge ms.workload: - "office" --- # How to: Programmatically open text files as workbooks You can open a text file as a workbook. You must pass in the name of the text file you want to open. You can specify several optional parameters, such as which row number to start parsing on and the column format of the data in the file. [!INCLUDE[appliesto_xlalldocapp](../vsto/includes/appliesto-xlalldocapp-md.md)] ## Example [!code-csharp[Trin_VstcoreExcelAutomation#80](../vsto/codesnippet/CSharp/Trin_VstcoreExcelAutomationCS/Sheet1.cs#80)] [!code-vb[Trin_VstcoreExcelAutomation#80](../vsto/codesnippet/VisualBasic/Trin_VstcoreExcelAutomation/Sheet1.vb#80)] ## Compile the code This example requires the following components: - A comma-delimited text file named `Test.txt` that contains at least three lines of text. - The text file `Test.txt` to be stored on drive C. ## See also [Work with workbooks](../vsto/working-with-workbooks.md) [How to: Programmatically open workbooks](../vsto/how-to-programmatically-open-workbooks.md) [How to: Programmatically create new workbooks](../vsto/how-to-programmatically-create-new-workbooks.md) [How to: Programmatically save workbooks](../vsto/how-to-programmatically-save-workbooks.md) [How to: Programmatically close workbooks](../vsto/how-to-programmatically-close-workbooks.md) [Optional parameters in Office solutions](../vsto/optional-parameters-in-office-solutions.md)
markdown
Wednesday December 20, 2017, There are nearly 650 million mobile phone users in India -- and over 300 million of them have a smartphone. For these users, Chinese players became the first choice this year as they launched devices with compelling features, thus dominating the budget and mid-range price segment in the country. Chinese vendors captured 49 percent of the Indian mobile phone handset market in the first quarter of 2017 -- with a 180 percent (year-on-year) revenue growth -- threatening to wipe out domestic players from the overall handset segment. Among the top Chinese brands, Xiaomi witnessed the biggest growth this year. With a market share of 23.5 per cent and having shipped 9.2 million smartphones in the third quarter this year, Xiaomi became the fastest-growing smartphone brand with a growth rate of nearly 300 per cent (year-on-year) in the third quarter this year. According to IDC, Samsung had 23.5 per cent market share in India, similar to Xiaomi, the Lenovo-Motorola combine was at 9 per cent, Vivo at 8.5 per cent and OPPO at 7.9 per cent. For Xiaomi, its Redmi Note 4 device that was launched in January at Rs 9,999 for the base model (2GB RAM and 32GB onboard storage) proved to be a game-changer and its best-selling smartphone too. The company shipped approximately four million units of the device in this quarter, said IDC. Chinese brands like Huawei (which sells its youth-centric sub-brand Honor in India), Vivo, Motorola (a Lenovo brand) and OPPO's performance remained strong and contributed to more than half of the total smartphone shipments in the country. Aiming to push its position up in the highly competitive Indian market, Honor launched flagship products at "unbeatable prices", like the highly-successful Honor 8 Pro (Rs 29,999) and Honor 7X (starting at Rs 12,999). Vivo and OPPO's aggressive marketing spends also paid them hefty dividends. With smartphone growth nearing saturation in metros, Chinese players were also busy building their base in the tier II and III cities. When it comes to manufacturing in India, Xiaomi announced its third plant in the country based out of Noida and the first facility for power banks in partnership with Hipad Technology. Spread across 230,000 square feet, the Noida unit is a dedicated facility for Xiaomi power banks where the Mi Power Bank 2i will be assembled. The company already has two smartphone manufacturing plants in Sri City, Andhra Pradesh, where more than 95 per cent of its smartphones sold in India are assembled locally. Meanwhile, South Korean giant Samsung also announced that it would invest Rs 4,915 crore in expanding its Noida manufacturing plant to double the production capacity of both mobile phones and consumer electronics. The Foreign Investment Promotion Board approved OPPO's request to open single-brand retail stores in the country. With this decision, OPPO became the first smartphone company to get this opportunity in India. The Chinese players also handled the post-demonetisation ripples well with high decibel marketing, increased credit line to distributors and efficient channel management. Global vendors, led by Samsung, were able to withstand the aggressive Chinese players post-demonetisation owing to their good distributor coverage and penetration in the Indian market. Aiming to gain a further foothold in the offline smartphone market, Xiaomi opened its first "Mi Home" store in Bengaluru in May and plans to add 100 such stores in the next two years. Similarly, Lenovo-owned Motorola opened six "Moto Hubs" in Delhi-NCR and Mumbai and plans to open 50 more by the end of this year. Huawei's sub-brand Honor announced opening four more exclusive service centres in Kolkata, Hyderabad, Lucknow and Guwahati. Its service centres are already operating in 17 cities. India this year surpassed the US to become the second-largest smartphone market in the world after China. Yet, according to Counterpoint Research, only one fourth of India's population uses smartphones, thus making the country an attractive destination for Chinese players in the mobile ecosystem.
english
<reponame>ianwalter/find-key<gh_stars>0 { "name": "@ianwalter/find-nested", "version": "2.0.3", "description": "A utility that searches through nested layers for values", "main": "dist/find-nested.js", "module": "dist/find-nested.m.js", "scripts": { "lint": "eslint index.js tests", "pretest": "dist", "test": "bff" }, "files": [ "dist" ], "repository": { "type": "git", "url": "git+https://github.com/ianwalter/find-nested.git" }, "keywords": [ "find", "get", "key", "nested", "object" ], "author": "<NAME> <<EMAIL>> (https://iankwalter.com)", "license": "SEE LICENSE IN LICENSE", "bugs": { "url": "https://github.com/ianwalter/find-nested/issues" }, "homepage": "https://github.com/ianwalter/find-nested#readme", "devDependencies": { "@ianwalter/bff": "^9.9.1", "@ianwalter/dist": "^6.0.0", "@ianwalter/eslint-config": "^6.2.0", "@ianwalter/release": "^5.0.2", "@ianwalter/renovate-config": "^1.4.3" }, "eslintConfig": { "root": true, "extends": [ "@ianwalter" ] }, "renovate": { "extends": [ "@ianwalter" ] } }
json
<gh_stars>10-100 import config as cfg import utils import native_code.executor as executor number_performed_tests = 0 expectations_correct = 0 expectations_wrong = 0 def reset_stats(): global number_performed_tests, expectations_correct, expectations_wrong number_performed_tests = 0 expectations_correct = 0 expectations_wrong = 0 def get_number_performed_tests(): global number_performed_tests return number_performed_tests def get_expectations_correct(): global expectations_correct return expectations_correct def get_expectations_wrong(): global expectations_wrong return expectations_wrong def assert_success(result): global number_performed_tests number_performed_tests += 1 if result.status != executor.Execution_Status.SUCCESS: utils.msg("[-] ERROR: Returned status was not SUCCESS") raise Exception() def assert_crash(result): global number_performed_tests number_performed_tests += 1 if result.status != executor.Execution_Status.CRASH: utils.msg("[-] ERROR: Returned status was not CRASH") raise Exception() def assert_exception(result): global number_performed_tests number_performed_tests += 1 if result.status != executor.Execution_Status.EXCEPTION_THROWN and result.status != executor.Execution_Status.EXCEPTION_CRASH: utils.msg("[-] ERROR: Returned status was not EXCEPTION") raise Exception() def assert_timeout(result): global number_performed_tests number_performed_tests += 1 if result.status != executor.Execution_Status.TIMEOUT: utils.msg("[-] ERROR: Returned status was not TIMEOUT") raise Exception() def assert_output_equals(result, expected_output): global number_performed_tests number_performed_tests += 1 if result.output.strip() != expected_output.strip(): utils.msg("[-] ERROR: Returned output (%s) was not correct (%s)" % (result.output.strip(), expected_output)) raise Exception() def execute_program(code_to_execute): cfg.exec_engine.restart_engine() result = cfg.exec_engine.execute_safe(code_to_execute) return result def restart_exec_engine(): cfg.exec_engine.restart_engine() def execute_program_from_restarted_engine(code_to_execute): restart_exec_engine() return execute_program(code_to_execute) def assert_int_value_equals(value_real, value_expected, error_msg): global number_performed_tests number_performed_tests += 1 if value_real == value_expected: return # Test PASSED utils.msg("[-] ERROR: %s (expected: %d ,real: %d)" % (error_msg, value_expected, value_real)) # In this case I throw an exception to stop execution because speed optimized functions must always be correct raise Exception() # Raising an exception shows the stacktrace which contains the line number where a check failed def assert_string_value_equals(string_real, string_expected, error_msg): global number_performed_tests number_performed_tests += 1 if string_real == string_expected: return # Test PASSED print("[-] ERROR: %s (expected: %s ,real: %s)" % (error_msg, string_expected, string_real)) # In this case I throw an exception to stop execution because speed optimized functions must always be correct raise Exception() # Raising an exception shows the stacktrace which contains the line number where a check failed def assert_no_new_coverage(result): global number_performed_tests number_performed_tests += 1 if result.status != executor.Execution_Status.SUCCESS: utils.msg("[-] ERROR: Returned status was not SUCCESS") # but the result must always be SUCCESS raise Exception() if result.num_new_edges == 0: return # test PASSED print("[-] ERROR: Found new coverage (%d) but expected that there is no new coverage!" % result.num_new_edges) # In this case I throw an exception to stop execution because speed optimized functions must always be correct raise Exception() # Raising an exception shows the stacktrace which contains the line number where a check failed def assert_new_coverage(result): global number_performed_tests number_performed_tests += 1 if result.status != executor.Execution_Status.SUCCESS: utils.msg("[-] ERROR: Returned status was not SUCCESS") # but the result must always be SUCCESS raise Exception() if result.num_new_edges != 0: return # test PASSED print("[-] ERROR: Found no new coverage but there should be one!") # In this case I throw an exception to stop execution because speed optimized functions must always be correct raise Exception() # Raising an exception shows the stacktrace which contains the line number where a check failed # The expect functions don't throw an exception like the assert_* functions # Instead, they just count how often the expected result was true def expect_no_new_coverage(result): global expectations_correct, expectations_wrong, number_performed_tests number_performed_tests += 1 if result.status != executor.Execution_Status.SUCCESS: utils.msg("[-] ERROR: Returned status was not SUCCESS") # but the result must always be SUCCESS raise Exception() if result.num_new_edges == 0: expectations_correct += 1 else: expectations_wrong += 1 # The expect functions don't throw an exception like the assert_* functions # Instead, they just count how often the expected result was true def expect_new_coverage(result): global expectations_correct, expectations_wrong, number_performed_tests number_performed_tests += 1 if result.status != executor.Execution_Status.SUCCESS: utils.msg("[-] ERROR: Returned status was not SUCCESS") # but the result must always be SUCCESS raise Exception() if result.num_new_edges != 0: expectations_correct += 1 else: expectations_wrong += 1
python
Xiaomi on Thursday announced the launch of three new models in its Mi TV range — the Mi TV 4C Pro with a 32-inch display, Mi TV 4A Pro with a 49-inch panel, and the Mi TV 4 Pro with a 55-inch display. All the new Mi TV models, much like the previous ones, will be powered by Xiaomi's custom PatchWall UI that has been personalised for Indian users. Apart from PatchWall UI, the three new Mi TV variants come with Android TV (Android Oreo 8.1) out-of-the-box with a physical button on the remote to switch between the two interfaces. Another major feature headed to the Xiaomi TVs is voice search, which uses the new Bluetooth remote and Google Voice to let users navigate the UI using just voice commands. At the event, Xiaomi also said it has 650 TV service points across India. Mi TV 4C Pro price in India is set at Rs. 14,999 for the base 32-inch variant, and Rs. 29,999 for the Mi TV 4A Pro 49-inch model. Both these models will go on sale at 9pm on October 9 via Amazon.in and Mi.com. As for the 55-inch Mi TV 4 Pro price in India, buyers will have to shell out Rs. 49,999 and it will go on sale on October 10 at 12pm via Flipkart and Mi.com. However, it should be noted that the prices of the 49-inch and 55-inch models are introductory in nature and will be valid for one month only. All three models will be heading to Mi Home stores and other offline channel partners soon. All three models in the Mi TV 4A Pro range come with Bluetooth v4.2 support, and get the new 11-button remote with a dedicated voice search button. Xiaomi at the event also announced new content partners in India — including Eros Now, Jio Cinema, Hooq, and Epic. The company also announced that support for Amazon Prime Video on PatchWall UI will come soon to the new TV models (as an OTA update), and later on for the older Mi TV 4 and Mi TV 4A models. Xiaomi did not comment on Netflix support on any of the Mi TV variants. The Mi TV 4 Pro sports a 55-inch 4K HDR frameless display, the 49-inch Mi TV 4A Pro gets a 1080p full-HD "Ultra Bright" display with HDR support, and the Mi TV 4C Pro has an HD Ready panel. The 55-inch Mi TV 4 Pro has a thickness of just 4.9mm, much like the 55-inch Mi TV 4 launched earlier this year. The new Mi TV variants also come with 20W stereo speakers with DTS-HD, an AmLogic 64-bit quad-core processor with 7th-gen imaging technology, and Mali-450 graphics. Other common features include Bluetooth 4,2, single-band Wi-Fi (2.4GHz), and Ethernet. The three new Mi TV models sport three HDMI ports, 2 USB port, and an S/PDIF port. 2GB RAM/ 8GB of inbuilt storage is present on 49-inch and 55-inch models while the 32-inch model gets 1GB RAM/ 8GB storage. Thanks to Android TV, the new Mi TV 4 models come with Google Play Store, Chromecast support built-in, and other Google apps like YouTube, Play Music, etc. As mentioned above, the bundled Mi Remote supports voice controls and uses Google Voice Search for voice commands to access the TV. The new PatchWall experience will be rolled out to all existing Mi TVs in the coming months, starting with the 32-inch and 43-inch Mi TV 4A models early next year.
english
{"type":"Feature","id":"node/2840130410","properties":{"addr:city":"Rijpwetering","addr:housenumber":"1a","addr:postcode":"2375AP","addr:street":"Zuidweg","email":"<EMAIL>","name":"<NAME>","opening_hours":"Wo, Sa 08:30-16:00 vending_machine: 07:00-19:00","operator":"fam. Rotteveel","produce":"cheese, milk, jams","shop":"farm","source":"BAG","source:date":"2014-03-24","vending":"cheese","vending_machine":"yes","website":"https://www.rotteveelboerenkaas.nl","id":"node/2840130410"},"geometry":{"type":"Point","coordinates":[4.5901931,52.1857918]}}
json
<filename>messages/src/packet.rs use serde::{Deserialize, Serialize}; use std::collections::HashMap; use std::convert::TryInto; use std::error::Error; #[derive(Debug)] pub struct NotCompleteError; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct Packet { pub id: Vec<u8>, pub source: Option<Vec<u8>>, pub data: Vec<u8>, pub size: Vec<u8>, pub packet_number: Vec<u8>, pub total_packets: Vec<u8>, pub return_receipt: u8, } impl Packet { pub fn new( id: Vec<u8>, source: Option<Vec<u8>>, data: Vec<u8>, size: Vec<u8>, packet_number: Vec<u8>, total_packets: Vec<u8>, return_receipt: u8, ) -> Packet { Packet { id, source, data, size, packet_number, total_packets, return_receipt, } } pub fn convert_packet_number(self) -> [u8; 8] { self.packet_number .try_into() .unwrap_or_else(|_| panic!("Expected a Vec of length 8")) } pub fn convert_total_packets(self) -> [u8; 8] { self.total_packets .try_into() .unwrap_or_else(|_| panic!("Expected a Vec of length 8")) } pub fn is_complete(&self) -> bool { usize::from_be_bytes(self.clone().convert_total_packets()) == 1 } pub fn as_bytes(&self) -> Vec<u8> { self.to_string().as_bytes().to_vec() } pub fn to_string(&self) -> String { serde_json::to_string(self).unwrap() } pub fn from_bytes(data: &[u8]) -> Packet { serde_json::from_slice(data).unwrap() } pub fn from_str(data: &str) -> Packet { serde_json::from_str(data).unwrap() } } pub trait Packetize { fn into_packets(&self) -> Vec<Packet>; fn as_packet_bytes(&self) -> Vec<Vec<u8>>; fn assemble(map: &mut HashMap<u32, Packet>) -> Vec<u8>; fn try_assemble(map: &mut HashMap<u32, Packet>) -> Result<Vec<u8>, NotCompleteError>; } impl Error for NotCompleteError {} impl std::fmt::Display for NotCompleteError { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { write!(f, "NotCompleteError") } }
rust
<filename>wallpaper_demo/wallpaper/data/category/women0164.json {"origin": "http://wallbase.cc/wallpaper/2367654", "download_link": "http://wallpapers.wallbase.cc/rozne/wallpaper-2367654.png", "views": 6884, "x_resolution": 1920, "filetype": "png", "site": "wallbase.cc", "y_resolution": 1200, "colors": ["#4e664c", "#111129", "#966963", "#dacaa5", "#c09783"], "comments": [""], "favorites": 124, "descriptors": ["tattoos", "legs", "panties", "ass", "underwear", "scrunch butt"], "uploader": " lalo175"}
json
The prestigious Subroto Cup tournament will come back with another edition after a two-year gap due to the pandemic. The 61st edition of Subroto Cup International Football Tournament that was suspended due to the Covid 19 pandemic will resume after a gap of two years as announced by the Subroto Mukherjee Sports Education Society (SMSES), the organisers of the tournament along with the Indian Air Force. The tournament is scheduled to be held as usual in New Delhi from 6th September to 13th October, 2022. Speaking on the occasion, Wing Commander Yashwant Singh Panghal, Honorary Secretary General, Subroto Mukerjee Sports Education Society said, "With immense happiness we share the news of the resumption of the Subroto Cup, a beacon in promoting football at grass root level in this country. Due to the pandemic, the tournament could not be conducted in the previous two years, but all that is behind us now and we look forward to a wonderful football season in September, involving the future stars of the game in India. We wish all the participating teams, all the very best." The tournament will be conducted in three categories beginning with the Sub Junior Boys (Under 14) kicking off from September 6th, 2022, with the finals to be held on September 15th, 2022. This will be followed by Junior Girls (Under 17) that is scheduled to begin on September 19th , 2022, with the finals scheduled on September 28th, 2022. The Junior Boys (Under 17) will start October 3rd, 2022 and the finals of the same will be played on October 22nd, 2022, the same day as the closing ceremony of the event. The Opening Ceremony and all the finals will be telecast LIVE on DD Sports. A total prize money in excess of INR 23,00,000 has been set aside across the three categories for the winners and the runners-up. Other cash prizes include those for the semi-finalists, quarter finalists, Fair Play, Best Player, Best Goalkeeper, Best Coach and Best School. The Subroto Cup 2022 will be held in four different venues this year namely Dr. BR Ambedkar Stadium (Delhi Gate), Tejas Football Ground (Race Course), Subroto Park and Jawaharlal Nehru Stadium. Around 85 different school teams representing their respective states are expected to participate in one of the most important inter school competitions in Asia. A school from Bangladesh has also confirmed to participate in the competition. Additionally, a selection committee consisting of eminent footballers will select 25 outstanding players in each category for awarding of scholarships. All the players selected will be awarded a scholarship (one time grant) of INR 25,000/- in the Junior Boys and Junior Girls categories and INR 15,000/- for the Sub-Junior Boys category. Many prominent Indian footballers past and present have come through the Subroto Cup ranks to bring laurels for the country. Legends like Shyam Thapa, and Bhaichung Bhutia as well as players like Robin Singh, Bruno Coutinho, Parimal Dey, Victor Amal Raj, Harjinder Singh, VP Sathyan, Shyamal Banerjee, Uttam Rai and Jacki Chand Singh are just some names who have played the Cup in their growing up days. International legends like Rivaldo, Roberto Carlos (both in 2016) and the greatest of them all, Pele (2015), have also graced the tournament as Guest of Honour in its earlier editions.
english
Top seed and heavy favourite Juan Martin del Potro marched into the semifinals of the Los Cabos Open with ease on Thursday. The Argentine defeated world number 301 Egor Gerasimov 6-1, 6-1 in just 61 minutes at the ATP 250 event, as he aims to win his third title of a resurgent season. Standing between the 29-year-old and a place in the decider will be third seed Damir Dzumhur, who accounted for American Michael Mmoh 6-2, 6-3. In the other half of the draw, Britain's Cameron Norrie upset Frenchman Adrian Mannarino to win 6-4, 6-4. Norrie's semifinal opponent will be Fabio Fognini, the Italian having eased past Yoshihito Nishioka 6-2, 6-2.
english
{"pos":"v","translits":{"yiś·gê":{"dan.6.25|13":["Peace to you","be multiplied.",null],"dan.4.1|11":["Peace to you","be multiplied.",null],"ezr.4.22|7":["why","should increase","damage"]}},"meanings":{"multiply":2,"increase":1},"meaningsCount":2,"occurences":3}
json
import { makeStyles } from '@material-ui/core'; export const useStyles = makeStyles((theme) => ({ selector: { background: theme.palette.background.paper, '&:hover': { borderColor: '#fff' } } }));
javascript
<filename>FormStuffs/FormStuffs.md **FormStuffs** --------- >Input masks, fields validator, all this kind of stuff you can find here. **Input Masks** >- **[dateInput](#)**
markdown