text
stringlengths
1
1.04M
language
stringclasses
25 values
{"solution_size":885,"ok":true,"resemblance":0.804785,"problem_id":2068,"solution_spec_hash":"ef83718c25d4d1fb84eaef621abb1a7f498423b9"}
json
Clix recently held a livestream co-starring NRG’s Bucke and controversial online personality Andrew Tate to discuss several topics and issues. During the stream, they talked about a girl Clix was into, and instead of being the Fortnite pro’s wingman, Tate suggested that once the girl was 18, he knew a real man, implying that it would be him that would fly out and hook up with her. An agitated Clix began calling Tate "weird" for his views, to which the British-American kickboxer replied: (Clip begins at 2:05:53) Andrew Tate would spend time in the debate stream after other guests had left, trying to be the wingman for Clix and the girl that had joined him on stream. He talked the Fortnite pro up, how he’s amazing and has true intentions to be with her and not mess around. Tate would call Clix "scared" and say that the girl needed to be nice to him because he was nervous. Tate urged the girl to kiss Clix, saying it would blow his mind and be the best day of his life. Tate would then tell the girl, after Clix didn’t do what he said, that he’d find her a "real man" if Clix messed up again. He would then suggest he "knew a guy" for her once she turned 18. The girl in Clix’s stream questioned Tate and asked who the guy was that he knew. The kickboxer would backpedal and refuse to give a straight answer to her question. A visibly upset Clix then took the headphones and berated Andrew Tate for talking about picking up his girl, who was 16 or 17. Clix briefly complimented his guest before criticizing him, saying it was strange of Andrew Tate to say he would wait for her to turn 18 before scooping her up. The 17-year-old esports streamer then hit out at Tate and said that a 35-year-old man waiting on someone to turn 18 is weird. Tate would interrupt Clix’s rant, making no bones about how he felt about the situation. Clix responded, not willing to back down from Tate: In between the screaming match, Tate would then add that he wouldn’t mess it up like Clix and that there was no way that Andrew Tate would beat Clix up since the girl would want him and not Tate. Ultimately, Clix would kiss his guest, though Bucke and Tate both claimed it was weak. The stream would end shortly after, with Andrew Tate leaving. Bucke and Clix would then have a shouting match and an off-camera scuffle, with the stream ending abruptly. As it turns out, the LivestreamFails subreddit was not especially impressed by Andrew Tate’s claim of saying he would wait for the teenage girl to be of legal age to be with her. Some would compare Andrew Tate to people like Destiny and Keemstar. One Redditor would sum up the situation as incredibly cringeworthy, saying it was weird how this was all about the girl’s approval. They would point out that Clix wasn’t upset that Andrew Tate was hitting on a 16-year-old girl, only that he was supposed to be Clix’s wingman and tried to "steal his girl. " Some hoped that this would be what would get Andrew Tate banned on Twitch, with a response saying that the former kickboxer is only popular on Twitch because so many streamers create drama with him, which only adds to their engagement and popularity. Many were disgusted by someone hitting on an underage girl and then trying to intimidate a young person like Clix as well, finding the whole thing incredibly sad. There were others on Reddit who thought all three of them were pretty sad in this situation. Users found the notion of Tate trying to date teenage girls to be creepy by several on LivestreamFails, with some mentioning the streamer's on-stream spat with xQc, calling Tate "creepy. " It was a conversation and moment that did not go down well with many, and while Andrew Tate continues to have his fans and following, the internet found his behavior repulsive. GTA 5's mammoth $7,700,000,000 earnings set to be challenged by upcoming game! Know more here.
english
{ "danceability" : 0.476, "energy" : 0.788, "key" : 9, "loudness" : -4.821, "mode" : 0, "speechiness" : 0.0446, "acousticness" : 0.237, "instrumentalness" : 0.0000249, "liveness" : 0.106, "valence" : 0.746, "tempo" : 90.066, "type" : "audio_features", "id" : "0H2iJVgorRR0ZFgRqGUjUM", "uri" : "spotify:track:0H2iJVgorRR0ZFgRqGUjUM", "track_href" : "https://api.spotify.com/v1/tracks/0H2iJVgorRR0ZFgRqGUjUM", "analysis_url" : "https://api.spotify.com/v1/audio-analysis/0H2iJVgorRR0ZFgRqGUjUM", "duration_ms" : 289333, "time_signature" : 4 }
json
connections in Bokaro district in Jharkhand out of which 30,000 (thirty thousand) are basic phone connections and 15,000 (fifteen thousand) are mobile phone connections. Besides, there are 15,000 (fifteen thousand) applications in the waiting list for mobile phones and 5,000 (five thousand) in the waiting list for basic phone connections which adds upto a total of 65,000 (sixty five thousand) connections. Bokaro has not been made a telecommunications district despite the fact that it has 14 telephone exchanges whereas smaller districts such as Gumla, Deoghar, Khagadiya etc. have been made telecommunications districts. Bokaro has fulfilled all the criteria for being made a telecommunications district since 1985. The consumers and the employees of the district have to make rounds of Dhanbad as a result of the denial of this status. Hence, I would like to request the Government to bestow the status of a telecommunications district on Dhanbad in public interest without further delay. (i) Need to accord Scheduled Tribe status to Koch-Rajbangshi community of Assam SHRI ANWAR HUSSAIN (Dhubri): Sir, the KuchRajbangshi communities of Assam have been agitating over last two decades demanding Scheduled Tribe status. In the different phases of their agitation at district, State and National headquarters, they observed satyagrahas, anasanas, dhamas including several hundred-hour bandhs. During the Narasimha Rao regime, an Ordinance was made by the President of India fulfilling their aspirations by re-scheduling them as Scheduled Tribes. They enjoyed it for some time. But the successive Union Governments did not bring legislation and made the Ordinance lapse. The ALA and the Government of Assam have duly and repeatedly proposed and pressed for it; and also, in many States, Koch-Rajbangshis are alerady listed as Scheduled Tribes. The INC, in its election manifesto in Assam, promised to do so. I urge upon the UPA Government to ensure social justice and reschedule the Koch-Rajbangshi of Assam as Scheduled Tribe immediately. The Adivasi people of Assam serving in tea gardens and also the ex-tea garden Adivasis deserve Scheduled Tribe status. I urge upon the Government to include them as Scheduled Tribes. Matters under Rule 377 522 (III) Need to prepare and implement a time-bound action plan for the development of villages In Chandigarh SHRI PAWAN KUMAR BANSAL (Chandigarh): Sir, the twenty-two villages of U.T. Chandigarh, with an allocation of just one per cent of the UT's plan allocation to the panchayats and resultant neglect cry for an urgent attention. With manifold increase in population over the years, lack of commensurate expenditure on roads and streets, sanitation and health has reduced the UT villages to virtual slums. Declaration of pious intentions to convert the villages into model villages have yet to be translated into action. Non-formulation of a perspective plan for their development involving active participation of the stakeholders and denial of electricity and water connections only point to the urgency of the issue. Various Central Schemes for rural areas have also not been availed of by the Chandigarh Administration. Accordingly, I urge the Govemment to prepare and implement a time-bound action plan for the development of Chandigarh UT villages. MR. DEPUTY SPEAKER: Shri Rayapati Sambasiva Rao not present. (iv) Need to accord the status of a Central University to Jai Narain Vyas University in Jodhpur, Rajasthan SHRI JASWANT SINGH BISHNOI (Jodhpur): Mr. Deputy Speaker, Sir, Jodhpur city in Rajasthan is a very ancient city. It has been a leading seat of education since the time of British. There are several educational institutes such as Ayurved College, National Law University, Jai Narayan Vyas University, MBM Engineering College in Jodhpur. It is the most important city of the Western Rajasthan. On several occasions, I have demanded to accord the status of a Central University to Jai Naraian Vyas University in the city. I am requesting hon'ble Minister of Human Resources through hon'ble Sp to accord the status of a Central University to the Jai Narain Vyas University, situated in Jodhpur. (v) Need to develop the barren unproductive land in Dholpur district of Rajasthan for generating employment SHRI RAMSWAROOP KOLI (Bayana): Mr. Deputy Speaker, Sir, in the Dholpur District of my parliamentary [Shri Ramswaroop Koli] constituency, there is a large area of barren land which is lying waste. This land could not be made fertile despite efforts made for many years. I request the Government to establish any public or joint undertaking on the said land to provide employment to people on one hand and compensation to the owners of land on the other hand. I hope, the Government will take immediate steps for welfare of poor people. (vi) Need to extend the Eighth Bipartite Pay Revision settlement to Regional Rural Banks (RRB) at par with Commercial Banks SHRI SANTOSH GANGWAR (Bareilly): Sir, this refers to implementation of Eighth Bipartite Pay Revision Settlement in Regional Rural Banks in terms with National Industrial Tribunal Award and hon. Supreme Court orders dated 31.01.2001 and 07.03.2002. It may be recalled that the employees of Regional Rural Banks have been considered at par with their counterparts sponsor commercial banks staff and their salary is revised as and when any bipartite settlement is held in Banking Industry. Since, the Eighth Bipartite Settlement has been implemented in other commercial banks, the same is to be extended further to RRBs staff through notification by the Central Government under section 17(1) of RRB Act 1976. In this regard, it may also be mentioned here that RRBS Employees are entitled for the actual wage hike as decided for commercial banks staff. Hence, it is requested that RRBs staff should be given all benefits admissible under the Eighth Bipartite Settlement like Computer Increment, Computer Operator Allowance, Transport Allowance and other Staff Welfare Loan Schemes and payment of arrears be decided as has been done in case of sponsor commercial banks, so as to maintain parity with the sponsor banks. It concerns industrial relations and unrest among RRBs Staff. This matter is resting at Government's end, and I would therefore, urge upon the Government to expeditiously issue notification in this regard. (vii) Need to expedite the relief and rehabilitation measures in landslides-affected Uttar Kashi district of Uttaranchal LT. COL. (RETD.) MANABENDRA SHAH (Tehri Garhwal): Sir, due to rock sliding in Varunavat hills in Uttarkashi district of Uttaranchal entire city of Uttarkashi was ruined and the Gangotri-Risikesh National Highway was completely blocked in the year 2003. The Central Government had sanctioned a package of Rs. 250 crore to save the city, assist the people affected by rock sliding in Varunavat hills and repair the said hills and the State Government had invited proposals from M/S Jai Prakash Industries, M/S Karam Chand Thapar and Brothers., M/S Hydel Construction Company and Sharing Construction Company. It seems strange that the Sharing construction company which was earlier known as Raj Kumar construction company, was awarded the work and an advance of Rs. 5.61 crore was given to company for purchasing machines etc. as they did not have the same. The company did not complete the work on time and cited the reason for this that the design was not proper. The Government renewed the contract and paid another 27 crore rupees to the same company. The work in Uttarkachi city and on the Yatra-road is very slow and there is a consistent threat of sliding of Varunavat hills. 1, therefore, request the Minister of Environment and Forests to take action to save the Varunavat from sliding, save the city and provide relief funds which have yet not been provided to the affected people and whatever little assistance has been provided is negligible. In addition to this, a CBI enquiry be instituted to investigate in to the scam of the funds provided so far by the Central Government. (viii) Need to Accord Approval to the Proposal of Maharashtra Govt. for Lifting Ban on NikLakhori Pulse and its by Products SHRI SHISHUPAL N. PATALE (Bhandara): Sir, a ban on the sale of Nik-Lakhori pulse and the items and there from has been imposed. Medical Education and Drugs department of Maharashtra Govemment has not detected and adverse effect of the said pulse on health. Therefore the Central Government should accord formal permission to lift the ban on sale of the said crop which has proved profitable to the farmers. An early decision in this regard will give immediate benefit to the farmers as the produce is available with them and all the farmers will be able to benefit themselves from to. Therefore, it is urged upon the Government to accord formal sanction to the decision of the Maharashtra Government to lift the ban on sale of the said pulse and the food items made therefrom. (lx) Need for stringent action to check sexual harassment at workplace and other atrocities against women SHRIMATI JYOTIRMOYEE SIKDAR (Krishnagar): Sir, on 8.8.2005, the hon. Minister of State in the Ministry of Human Resource Development, in her written reply, informed the Rajya Sabha that from 2001 to 2005 (till date), 287 complaints of sexual harassment at workplace have been received by the National Commission of Women. Again, according to data compiled by the Ministry of Home Affairs, 7,11,778 cases of atrocities on women had been reported during 2000-2004. The Government claims that it has initiated different actions to prevent sexual harassment at workplace as well as other crimes being committed against women. But the ever-rising graphs on these two scores prove that initiation of actions, as claimed by Government, is not enough to control this social menace. I, therefore, demand stringent action against the offenders. I also demand establishment of special court for speedy trial of all such cases. Thank you. (x) Need to convert the existing BareillyLakhimpur-Sitapur-Lucknow Railway Section from Metre Gauge to Broad Gauge SHRI RAVI PRAKASH VERMA (Kheri): Mr. Dy. Speaker, Sir, I want to draw the attention of Hon'ble Minister of Railways through you towards the backwardness of the Tarai (foothill) area of Uttar Pradesh. This region remains cut-off from the rest of the country due to not being connected with broad gauge railway line. The people inhabiting this region face major problems in absence of a broad gauge railway line there. The matter has all along been raised in the House by the Members of Parliament elected from the Tarai region, but to no avail. Matters under Rule 377 526 Mr. Dy. Speaker, Sir, I request the Hon'ble Minister to have the Bareilly Lakhimpur-Sitapur-Lucknow metre gauge railway line converted into broad gauge, to bring about proper development of the Tarai region and affinity with the other regions of the country through the broadgauge line. SHRI SANTOSH GANGWAR (Bareilly): Mr. Dy. Speaker, Sir, I associate myself with it. (xi) Need to expedite setting up of Centre for sale of Agricultural Products under National Horticulture Mission at Patna SHRI RAM KRIPAL YADAV (Patna): The Government has talked of setting up of National Horticulture Mission in this year's budget. Hon'ble Prime Minister has also mentioned about this mission several times. Through this mission, a single window system is proposed to be provided for research, production, post harvesting management, processing and adequate marketing in an integrated form. The horticulture sector, with just 8.5 per cent of the total cultivated land, constitutes 20 percent of the agricultural sector and 50% of the export component thereof in the Gross Domestic Product. This sector has immense potential to increase production. There is a scheme for setting up of outlets for agricultural products in various parts of the country under this mission; out of which one is to be set up at Patna also. I want to draw the attention of Hon'ble Minister of Agriculture through this House and request him to take immediate steps for setting up of this centre at Patna as early as possible so that the farmers of the State get benefited. (xii) Need to include all the villages with a population of more than One Thousand people in Hardoi and Khiri districts of Uttar Pradesh under Pradhan Mantri Gram Sadak Yojna during the year 2005-2006 SHRI ILYAS AZMI (Shahabad): Two districts of Uttar Pradesh namely Hardoi and Khiri falls under any Parliamentary constituency. At present work is in progress under the Pradhan Mantri Gram Sadak Yojna with the package provided for the year 2003-2004 and there is no information about the package for the year 2004-2005. In the year 2005-2006 all the villages with a population of one thousand and more are to be covered [Shri Ilyas Azmi] under the said scheme. In the core note drafted by the department most of the villages with a population of more than one thousand have been left out. On my recommendation a number of villages have been included in it still many villages have been left out. Through this august House I request the Government that authorities of both the districts should be directed that any village with a population of one thousand or more should not be left out in the scheme for the year 2005-2006. SHRI RAVI PRAKASH VERMA (Kheri): Mr. Deputy Speaker, Sir, I associate myself with it. MR. DEPUTY SPEAKER: All right. (xill) Need to ensure uninterrupted gas supply from GAIL to various Industrial units in Nagapattinam parliamentary constituency, Y Tamil Nadu SHRI A.K.S. VIJAYAN (Nagapattinam): In my Nagapattinam constituency, there is an edible oil mill run by a Gujarat-based businessman. In this oil mill, around 500 workers are employed directly and indirectly. This mill uses gas fuel as energy source instead of diesel to protect environment from pollution and hazardous effect. Moreover, in my constituency availability of natural gas is there as ONGC is exploring oil and gas from these places and it is supplying gas to GAIL and it sells and distributes gas to the needy people and companies. As such, this edible oil mill and M/s. Kannappan's Steel Factory are getting gas from GAIL since its inception, that is, for the past several years. Now, the GAIL is refusing to supply gas to these factories without citing any reason. On the one side, ONGC is supplying plenty of gas to GAIL as much as they want or require, and on the other side, the extra gas produced by ONGC is burnt as flare. Due to this, these companies are not getting gas to continue their operation. Both ONGC and GAIL offices are functioning in my constituency, but they are not ready to supply gas to these factories which are located in my constituency. At the same time, they are willing to sell to outside agencies in my constituency. I understand that ONGC office, which is currently functioning effectively without any problems from Nagapattinam is, sought to be shifted to some other place. Matters under Rule 377 528 Hence, I urge upon the Government to take immediate steps to ensure uninterrupted supply of gas to these industrial units and also stop the move to shift ONGC office from Nagapattinam. (xiv) Need to declare Nagpur in Maharashtra as the sub-capital of India SHRI TUKARAM GANPAT RAO RENGE PATIL (Parbhani): Mr. Deputy Speaker, Sir, Nagpur should be made second capital of the country as it is situated in the middle of the country. Geographically Nagpur is located in the centre of the country. People from every nook and comer of the country can come easily here within the shortest possible time. One can see the composite culture of entire India here and this city represents the people of various castes living in India. Besides this city has the pleasant climate through-out the year. Maharashtra Government has constructed an Assembly hall there where one session of the Lok Sabha can easily be run. This city has its own historical importance. Through this House I request the Government to declare Nagpur the second capital of the country where one session of both Houses of the Parliament in a year should be held. (xv) Need to accord approval to the proposal of Government of Orissa for linking the State with the network under Edusat programme of ISRO SHRI ARJUN SETHI (Bhadrak): Sir, the Edusat Satellite dedicated exclusively for educational services have been launched in the geo-synchronous orbit by ISRO on 20th September 2004. It is primarily meant for providing connectivity to schools, colleges and higher levels of education and also to impart formal distant education including developmental communication, especially, for development of the rural and remote regions. Besides the extensive coverage of VSAT and DRS Network of Gram-Sat pilot project, Orissa have a studio and digital satellite uplink, which can serve as the regional hub for Orissa for the Edusat programme. The Government of Orissa have recently riginally 450 High Schools in Orissa through the Eleventh Finance Commission (EFC) grant. These schools can be brought under the Edusat network, besides schools located in close proximity to the VSAT and DRS nodes of the GramSat network. The Universities, Engineering Colleges and Polytechnic Schools/Institutions can also be covered under the Edusat network. In view of the above, the Government of Orissa have requested the Department of Space, Government of India to consider the needs of the State for networking with Edusat and select Orisa as one of the two pilot States to be covered under Edusat programme by ISRO, Department of Space, Government of India. ISRO, Department of Space, Government of India have also been requested to arrange to evaluate the existing network capability of Gram-Sat network and advise Government of Orissa to rigina our needs and support the same technically and financially. Hence, I urge upon the Government to accord their approval to the project as per the request made by the State Government of Orisas in this regard. (xvi) Need to widen the National Highway No. 202 on Hyderabad-Warrangal section, with a view to streamline the flow of traffic SHRI B. VINOD KUMAR (Hanamkonda): Sir, the National Highway 202 Hyderabad-Bhopalpatnam passes through Warangal district. The traffic between HyderabadWarangal is heavy, and for the last few months many accidents are occurring regularly, which are causing many casualties. Such an accident occurred last week, that is, on 15 August 2005 costing ten lives and injuring fortyfive. This road has to be widened, particularly, from Hyderabad to Warangal, which is about 150 km. only. Hence, I draw the attention of the Ministry of Road and Transport to take necessary steps immediately. (xvii) Need to set up a Food processing with cold storage facility in Chamrajanagar Parliamentary Constituency, Karnataka *SHRI M. SHIVANNA (Chamrajanagar); Sir, the farmers, particularly vegetable, fruit and flower growers, are facing a lot of problems due to lack of marketing facilities in Karnataka. The tomato growers in Chamrajanagar, Mysore, Kolar, Tumkur, and many other areas are forced to throw tomatoes on the roads as "Translation of the speech originally delivered in Kannada. Matters under Rule 377 530 there were no takers. This has happened three months ago. Now, the onion growers, including rose-onion growers, are facing the same problem at present. There is a set back for the flower exporters also. Chilly growers of Karnataka and Maharashtra are also agitating for the last several years demanding remunerative price for their produce. The result of all these problems has led to suicide of farmers as they cannot pay back the bank loan. Chamrajanagar became a district headquarter seven years ago and since then the people, particularly the farmers, are demanding setting up of a food processing rigin. Unfortunately, till today, this has not been taken seriously by the Centre. There is an urgent and genuine need to set up a food processing rigin in Chamrajanagar. 1, therefore, urge upon the Centre to provide sufficient funds and set up a food processing rigin in Chamrajanagar immediately. MR. DEPUTY SPEAKER: I request the hon. Members to read only the text that they have already given. The text, which has already been approved, will only go on record. (xviil) Need to take preventive measures against various industrial units spreading toxic effluents and waste in Amroha Parliamentary Constituency, Uttar Pradesh SHRI HARISH NAGPAL (Amroha): A number of factory units owned by the company of Jubilant Organosys are situated in a wide stretch on a single plot in Gajraula city of my parliamentary constituency Amroha in Uttar Pradesh which have now has become synonymous with emitting pollution and toxic wastes. The land there has become barren due to the toxic effluents emanating from these factories and water has become contaminated. The local people are suffering from various diseases like blindness, Levan, skin disease, T.B. etc. Crops cannot ripen under the impact of toxic effluents. Fruit trees are not bearing fruits and cattle are growing weaker. The milk cattle now have little or no milk left in them. Most of the children have become prone to illness and are having a stunted growth due to the release of toxic gases in the water and air. Drinking water has become contaminated with toxins. Crops are getting damaged due to the use of contaminated water in irrigation. The farmers [Shri Harish Nagpal] are in great trouble. A major tragedy, even bigger in scale than the Bhopal gas tragedy, can take place here any time due to gas leakage. Every time the inquiry is conducted by the Government and report is repeatedly given in favour of the said factories. Factory owners threaten the farmers and ask them to sell their land at good rates and leave the place. Therefore through this House urge upon the Government to take stern and immediate steps against those factory units which are adversely impacting the human life. NATIONAL RURAL EMPLOYMENT GUARANTEE BILL, 2004 MR. DEPUTY SPEAKER: Now, we will take up item No. 21, that is, further consideration of the National Rural Employment Guarantee Bill. The time allotted was eight hours; we have taken 3 hours and 53 minutes; and the time left with us is 4 hours 07 minutes. Last time when the House was adjourned, no Member was on his feet. I would now give the floor to Shri Priya Ranjan Dasmunsi. THE MINISTER OF WATER RESOURCES (SHRI PRIYA RANJAN DASMUNSI): Mr. Deputy Speaker, Sir, I rise to put before you my views in detail in support of this Bill brought in the House by the responsible Minister of Rural Development Raghuvansh Prasad ji. Firstly, I want to congratulate the hon. Members of the Standing Committee and their Chairman Kalyan Singh ji who have put in great effort in presenting the report in the House unanimously. The cabinet had an in depth discussion on the report. Thereafter, the Government presented this legislation in the House. SHRI DEVENDRA PRASAD YADAV (Jhanjharpur): Not legislation, but a Bill has been presented in the House. SHRI PRIYA RANJAN DASMUNSI: Please, help me in my speech in Hindi. I want to put some points before you regarding this Bill. There an be numerous arguments either from this side or that side but it is not possible for any Government to find a solution to the problem of unemployment or poverty easily. The Government has taken a step to instil confidence among these people by legally introducing it in the form of social security. The population of the country is rising rapidly. I had participated in a symposium a few days back. Irrespective of how much production is there, how many resources are collected, all the efforts will fail in a day if the increasing population is not checked. The same point was reiterated in this House in 1974 by Indira ji that any programme in the country should be looked at by linking it with the issue of the rising population. However good a scheme may be, it will not work in such time. Sir, today, I want to speak on two or three issues. A serious debate was held on this issue in the House. I have read all the speeches with due respect relating to the debate which took place on it a day before yesterday. Every one expressed concem over it and said that it should not be taken in haste and what can be done with the paltry sum of Rs. 55. After calculations, Nitish ji asked as to what could be possible to accompalish with such lowly and meagre amount and how it would be possible for there to manage. He said it rightly that whether any party can present a single policy here? We do not have magic wand. Can we solve the problem of all the poor and unemployed people out of the population of 100 crore through that magic wand? Nobody has such a magic wand, it is neither with us nor with you, but it is necessary to show the path. I want to begin from here to put across the point before you for which I have come here. Shri Kalyan Singh ji, who has the experience of the office of the Chief Minister and is also one of the senior leaders in the party of Vajpayee ji, said at the beginning of his maiden speech, "I want to congratulate for adopting the right view point even after 40-50 years. Secondly, I want to congratulate that till now, the Congress had kept the country in illusion by the slogan of 'Garibi Hatao'. They contested elections and also won on that basis but the common man could not understand the meaning of this slogan." It is right to talk about and throw light on the shortcomings of any legislation or Bill in Politics. But, I can confidently claim that whatever be the level of globalization in the world prior to adding socialism in the preamble of our constitution, Indira ji had taken the first revolutionary step. You all can ask about that by going to each and every part of the country and ask whether the poor people did not gain from that step or not? Indira ji had said in this House that the Government wants to help the poor by taking over the Banks from the capitalists such as Birla, Tata, Singhania and Goenka etc. We did not get support form all sides in the House that day. But, Indira ji amended the constitution immediately on her come back after getting the majority. What is the situation today? One can see printed on the back of any cart, rickshaw, public bus that this vehicle is hypothecated to a Government bank, thereby proving that nobody is a slave in our society. If today's record is considered then as per the NPA's estimate which I had studied in the previous House, the unemployed people and group cooperatives had received the relief and their loans were waived of. They waived the 90% loan of the NPA but the 10% was not waived of by big and medium industrialists. Therefore, I want to say that the benefits of the first step of nationalisation of banks went to the poor. Whatever be the number of tractors used by farmers, agricultural implements employed in the agricultural development in the country; nothing could have been possible without the help of land development bank or national banks had the banks not been nationalised. This step was taken earlier. We are disregarding this step. Shri Kalyan Singh ji said that nothing has been done for the last 40-50 years. I would like to read out a statement before you. It is not exactly a statement but a reply given in the House. Shri Sunderlal Patwa ji is a respected politician and I heard his views during the last session. He had also held the portfolio of the Minister of Rural Development in the past also. He was asked if any measures were being taken to provide employment to the unemployed people in order to reduce poverty in the country. He had replied[English] Yes Sir, Government have been implementing a number of programmes, poverty alleviation programmes from time to time. Some major poverty alleviation schemes were launched in the past. Further he said-IRDP, TRAINI, TRISEM, DWACRA, JRY, MWS, EAS, SITRA, JGSY all these schemes are being implemented. Then he was asked about the results achieved from such schemes. He gave a positive reply. He said the programmes have successfully achieved, their objectives and helped in alleviating the rural poverty in the country. Statement is now placed to justify the facts. Shri Sunderlal Patwaji had experience. He had rightly said that although the objectives of such programmes being run for som time now have been achieved to la large extent, yet a lot remains to be done. This does not mean that the Congress has not done any work in the States since the last 40-50 years. I would like to say that the State Government and the Union Government both have to contribute a stipulated share for the implementation of each of the programmes and the actual implementation is carried out by the State Governments. Is it not a fact that during the last 50-55 years Congress has not been the sole party in power. If we look at the State Governments, Uttar Pradesh, the most prominent among the States, has been governed by parties other than the Congress for the longest period of time. The same holds true for Bihar as well as Bengal which is under the governance of another party for the last 28 years. The rest of the States have got the chance to be governed by other parties for five, six or nine years and at the Centre, parties other than the Congress have got the chance to govern for a total of eleven years. Hence, we do not wish to point fingers at any one party. We have already said that it is a serious problem and we have to find a way to deal with it. Shri Rajiv Gandhi had adopted the right approach and had said that the Parliament and the State Assemblies may pass any number of legislations but their effect would not reach the villages till the time we do not transfer democracy through constitutional means. The 73rd and 75th amendments gave new life to the 'Panchayats'. 535 National Rural Employment [Shri Priya Ranjan Dasmunsi] [Translation] Had Rajiv Gandhiji not adopted this approach at that time the infrastructure to implement so many schemes with such efficiency would not have become available in the villages. It can be observed that the Gram Panchayat has been vested with the basic powers under law. Gram Panchayat has been bestowed the right to choose the king. Villages have been granted parliamentary rights. The legislation lays down that the decision to enforce the said rights has to be taken in consultation with the people of the villages. What else can be more important than this work? The National Rural Employment Guarantee Bill lays down the method implementation of this work keeping in mind the maturity of the Indian democracy. I believe that the Parliament as a whole should support the decentralized democratization of the whole power, empowerment to the panchayats is necessary. One-third of the seats have been reserved for women in the Panchayats. The schemes that have been made in the context of this basic premise should be welcomed without making undue comments in this regard. Yes, there is a shortage of resources and a shortage of funds. A person may earn ten or twenty rupees a day by begging but the mafia which promotes such activities snatches the earnings of the beggars. The poor have their compulsions but what have we done for them? We are saying the same thing that late Rajiv Gandhi had said. He had said that the poor do not need pity, they need empowerment. They should not be at the mercy of the Panchayat, the SDO or the municipality. Constitution can grant actual powers. So far we had been calling this scheme Rural Employment Programme. That had implied munificence because it was within the power of the District Magistrate or the BDO to refuse implementation of the scheme citing lack of funds or the Panchayat not being in place as reasons for doing so. Now, this work should be started. Today, this is no longer munificence but a right. We can move forward in 200 districts. Yes, we can move forward. IRDP was implemented in 54 districts in 1976 and it was later-one extended to 100 districts. In 1980, when late Indiraji was in power, the concept of implementing IRDP in the whole of the country was given clearance. Therefore, now we are going to make a start. Initially, the funds that remain unutilized this year would be utilized for the Food for Work and IRDP programme. A fund of nearly eleven thousand crore rupees would be created next year. We had thought that the NREG Bill would lighten the fiscal burden of the State Governments but we had not imagined it would make such a big difference, but it did. The released funds would definitely reach the 200 districts which would be increased later on. If there is one young man in a family he would be reassured that he would not have to resort to begging. He would mobilize some amount on his own and look towards the country for the rest. I have not said, we are not saying, and Soniaji never said that this is the end of everything. It is the beginning to restore confidence in terms of social security in the villages of the country. All we have to do is to take them as the pilot projects. No scheme can be successful without having confidence. I say that let us have confidence in Panchayats. Whatever the politics may be there but it is the Panchayat only which can really know where a nullah should be constructed. Our Ministry of Water Resources has a major role in this scheme. We will say that we will irrigate 10 hectares of land, let us pick up the spade and go to village, rain water is coming, let us store it. People will be identified for their contribution in the reconstruction of the country. There is no contractor in between these things. It is a very beautiful and very revolutionary concept of the whole system. Therefore, I request everybody not to play politics in it. Who says that nothing has been done? You will be surprised to know the facts. In the main market of a city, a boy along with his mother came and started begging in front of our car. I thought that whatever had been done had proved a shame but the officer told me that it 537 National Rural Employment was not the case and something was being done for them. He told me that we could know the facts if we visited three or four markets. I saw that when a boy came in front of a silk saree shop, the shop keeper stopped him. It does not mean that all have got rid of their plight. I believe that efforts have not been made to alleviate poverty in a regimental way. We should not implement family planning programmes by adopting coercive means. We should not take any steps in the society contrary to the democratic norms. In view of the rate of our population growth, family planning does not seem to be successful as Shri Sharad Pawar was saying that day. That day, Shri Sharad Pawarji was informing that the Prime Minister has constituted a Committee which will suggest measures to double the food production during the 11th Plan. Sharad Ji himself has told us that he would work in this direction and the farmers of our country would also work to double the production, and to double the irrigation facilities. But we should have a long term perspective in this regard as to what should be the ultimate programme for the country. I, therefore, want to tell everybody that the introduction of the Bill by the U.P.A. does not involve any political motive. How there is no politics in it-Nitish ji said that political mileage should not be taken from it. U.P.A. has got a clear mandate and we have to strengthen our national unity and secularism. We have to think on priority basis about every step to give a new direction to the poor. We have to do a balancing act keeping both these aspects in mind. We have seen that Jawahar Rojgar Yojana has welfare as its basis and so is the case with Employment Assurance Scheme and these schemes create employment opportunities for the people but there is not cent percent certainty for providing employment. But we want to give them a legal right to employment rather than on ground of mercy. This shift in approach has been brought by us. These steps are the ideas and political approach of U.P.A. Whatever one may feel about it but we are sure that this is a measure to make the people confident. All political parties are there and all are present in this august House. The person who will get money under this law will get more in consecutive years which will make all of us proud. All of us will together think. The Indian Parliament thought together that it is an issue beyond politics. It is a dedication of the Indian Parliament to ensure social security and confidence of the poorest of the poor in this country with another Guarantee Bill, 2004 538 commitment to ensure that further poverty is not extended and population management is under control. That should be the logical consequence and the conclusion of the entire theme of the Employment Guarantee Bill. The word 'guarantee' itself is a confidence. The amount of Rs. 500, 1000 or 1500 is not an issue, it may increase gradually. This will replace our Food for Work Programme. In addition to this Employment Guarantee Scheme, we will also further strengthen other existing schemes. The hon. Members should take into account the approach of the Government and understand this concept. I am not saying all this just for the sake of saying. Is a jump from Rs. 4,500 crore to Rs. 11,000 crore in the food for work programme not a paradigm shift of the whole approach to the rural poverty by the UPA Government! You may ask as to where the funds will come from. We have already said that there is no problem for the current year. We will make provisions after the fund is created. We are not going to run away, we all will decide together. The Prime Minister has directed all the ministries and departments to stop extravagance. I am not saying this for my own party. Serious thought was given to this aspect in the meeting held in Guwahati in the year 1984. Soniaji herself had observed that mere delivering speeches to the unemployed is not going to yield any results. Plan some models as pilot projects. Start with the first step followed by next ones, if this can make them confident to some extent, then we should hope to get some thing for sure. To begin with, gather 50 people of every village of these 200 districts to educate them about the provisions of the Employment Guarantee Bill. This is beginning not the end. The end will come when we will come to this august House and say that the Bill is no more required as we have surpassed by the targets fixed thereunder. Now repeal it as our villages have become prosperous. But while speaking on the Bill introduced to create confidence among the people, it is not fair to say that nothing has been done during last fifty years. 539 National Rural Employment [Shri Priya Ranjan Dasmunsi] Had there been no progress during last fifty years. This House would have not been in function. This is vitality of Indian democracy. I want try too hard to regulate this allegation that we have done nothing during the last fifty years. Had there been the case and we been able to remove poverty, the Member belonging to our party would have been seen sitting on either sides of the House i.e. on treasury benches as well as on opposition benches. We could not remove poverty; hence we could not occupy either of the sides in sufficient number. I have no hesitation in accepting it. The opposition may say that they got opportunity for seven years only whereas we got the same for longer period. You can imagine the condition of the country at the time of independence when Panditji became Prime Minister. You know the quantity of food grains produced in the country at that time and the quantity imported from outside. How much starvation we had faced and how many battles we had fought. A large number of refugees came here from East and West Pakistan and we had to provide them food and shelter. I would not like to go into the detail of all these things because they are now part of history. But I would like to state that the Bill which has been introduced in the House is a resolution that we have to provide security on all counts-social security, food security and above all the security of the country. The security of the country can not be ensured by means of weapons only. The first step towards country's security is the social security of the people of India and especially the downtrodden. National security of the country gets strengthened with their social security and self-confidence. i am surprised to see a number of young men wandering in the villages. I would like to talk about West Bengal. Earlier narcotic drugs were not available in our State, but now they have started pouring in. Young men are getting addicted. We tried to stop it. I do not give credit only to the Congress but good people from all the parties whether they belong to this side or that, are trying to fight this menace. Today main problem before us is that how to tackle this problem. Ten major industrialists did not return the loan taken from bank and hence the policy of bank to provide loan to the youth has been made more restrictive. I am proud that our UPA Government is restoring the earlier policy so that the doors of the bank may remain open for self-reliant courageous youth. I would talk about two more schemes. I belong to rural area. DWACRA Programme has been launched under Panchayati Raj in India these days. I do not know people from which sect have adopted it. In every Panchayat un er DWACRA. I can tell you with confidence that at least in my State and in my constituency, in every village panchayat that programme is there and it involves not less than 500 women belonging to Scheduled Castes, Scheduled Tribes and other communities. It is the case with the municipal towns also. I addressed the workshop last week, where we had 3,000 women. SHRI KINJARAPU YERRANNAIDU (Srikakulam): It is there in Andhra Pradesh also. SHRI PRIYA RANJAN DASMUNSI: I am happy that you are admitting it. Women participation is there in DWACRA Programme. Our Government initiated this programme. ICDS is a programme of child development in which 6th, 5th or 3rd pass ladies are working in Anganwadi. Do you know their numbers? I have seen 10000 ladies myself in a procession. No flat of any party-whether it be BJP, or Congress or CPM-was seen in that procession. IV or V standard pass women are working in ICDS Anganwadi Programme. How did it become possible? It became possible through Panchayati Raj programme. Who launched this programme? This programme was launched by Indiraji under 20 point programme. Minister of Environment is not present. I can say with confidence that social forestry programme implemented by Panchayati Raj has registered progress as many as seven times more than the deep forestation programme. You know that social forestry programme was one of the important programme of 20 point programme passed by Indiraji. SHRI SUSHIL KUMAR MODI (Bhagalpur): Nothing was done in Bihar. SHRI PRIYA RANJAN DASMUNSI: Modijee, I do not want to say anything about Bihar, because you are 541 National Rural Employment responsible for Bihar; we are responsible; Laluji is responsible and all are responsible for that. You had parted your ways only for some time that is the another matter. In social forest. Seven times the coverage was extended only through the Panchayati Raj scheme. That is why, while launching the 20-Point Programme, the Poverty Alleviation Programme. Indira ji had correctly said that it would help us in removing poverty and the programme would continue as long as poverty was not removed. Removing poverty can not be done through a magical wand. Programme should be launched to remove poverty. I say with confidence anybody can challenge me, that the tribal folk of the country, the Scheduled Castes in the village. Shri Yerannaidu of Andhra Pradesh knows that, with the help received through these programmes the poor people have become self-dependent and started sending their children to schools. Its benefit will be seen in Sarva Siksha Abhiyan. A large number of women have their participation in SC and ST programme. We never thought of figures. Only the negative picture was projected before the country that nobody can harm us. I am not talking in favour of Shri Tony Blair. liked it very much. On the 27th of June, I was in Europe when Tony Blair addressed the European Parliament for the first time. In the past, China used to be the synonyum of Asia in their eyes. For the first time he acknowledged that it would not be wise for the entire Europe to have any underway it stance regard China as well as India. We have a pool of scientific talent, rural manpower, and innovative ideas. Please go through his speech on internet. He said that Europe was overlooking India. Let India develop Guarantee Bill, 2004 542 quickly. Do not overlook India. Earlier they used to say'destination China', but now they say-Destination India and China. It was started in 200 districts in India, now it will be started in 600 districts in India. 50 families will be benefited in each village. We do not have money for 100 families. We can say honestly with courage that more than one thousand families will be benefited in next ten years. This is importance of our programme. I am ready to say even that Mr. Chidambaram will present budget next time for allocating funds for this programme. I also ask Shri Raghuvansh Prasadji to start to getting funds from MPs. Take money from MPLAD funds. It would begin from home. This will generate self-confidence. Funds for each State govt. will be created. We shall also ask the officers to provide funds. The sum total of the money will not be more than hundred crore. This is a scheme involving Rs. 36 or 40 thousand crore. The contribution of 100 crore rupees will show us the direction. The Indian democracy, cutting across Party lines, fought to ensure the social security concept for the people of India who are in villages. As far as cities are concemed, Nitishji and Kalyanji asked whether there was any scheme for towns too? There are 4-5 ways to generate confidence in towns. The people residing in towns may get employment by setting up of industries, establishing offices and opening shops. Villages are being urabinsed, expanded and agriculture is being transgressed upon. I do not want to go into detail, this will invite argument. But works should be done to provide food to increasing population and to connect rural infrastructure to irrigation projects. If you include youth in this scheme, I think, it will initiate new progress in India and its villages. I would like to say that we should not question BJP about the work done by them in seven years neither should they ask us as to what we have done. Sir, we shall say such things, it will be an endless matter. Schemes to eradicate poverty were initiated during Third Five Year Plan. It can be seen from Third Five Year Plan. Poverty could have been eradicated by implementing programmes on poverty eradication from Third Five Year Plan to Tenth Five Year Plan. But we would not check population increasing at the rate of 20 percent. Therefore, poverty could not be eradicated from the country. [Shri Priya Ranjan Dasmunsi] [English] That is why, when I saw the Business that there is going to be further discussion regarding increasing population in the country raised by Shri Prabodh Panda, I was delighted. The population management should go together with our economic management. Irrespective of Party lines, we are united on this issue. We may differ on many issues. If all Parties give a combined-mandate for the population management and economic management at the grassroot, I tell you that India will prosper and become the greatest democratic nation with wealth as also economic achievement and grow in the whole world very soon. Mr. Deputy Speaker, thank you for giving me opportunity to speak. *SHRI P. MOHAN (Madurai): Hon. Deputy Speaker, Sir, the Union Government led by the United Progressive Alliance has introduced the National Rural Employment Guarantee Bill in this august House. I welcome and support this Bill on behalf of my party, Marxist Communist Party of India. At least after 58 years of independence we have evolved a near comprehensive bill to provide guaranteed job to the rural poor. I am happy to note that our CPI (M) and other left parties have played major role in introducing this historic Bill in this session. The salient features of this Bill are noteworthy. One hundred days of guaranteed job at a minimum daily wage of Rs. 60 with specified developmental work for enhancing infrastructure facilities in the rural areas are the highlights of this Bill. This Bill also provides for 33% reservation of jobs for women under this scheme. Various works under the scheme will be implemented through the departments concerned is another assured aspect in this Bill. Firstly, the Bill states categorically that no work under this scheme will employ machines like earth movers and pokline. I wholeheartedly welcome this. Providing jobs to the needy poor who are prepared to render manual labour is the aim of this BHI. It has been ensured that funds allotted for this scheme will be spent only on men but not on machines. I welcome it. Rain fed districts and States that depend on river irrigation would find this scheme a boom. More particularly the States like Tamil Nadu, Kerala; Translation of the speech originally delivered in Tamil. Karnataka and Andhra Pradesh will be greatly benefited by this scheme. Only 150 districts were originally intended to be covered under this scheme. Now 50 more districts have been added to this. In Tamil Nadu there are 29 revenue districts and only 4 districts from Tamil Nadu come under the ambit of this scheme. I had already stated the need to include all the districts that have more dry land and depend on rain and rain fed river irrigation. Hence I feel more districts from the southern States especially from Tamil Nadu should have been included in this scheme. Tamil Nadu is not a fertile State with perennial rivers like Punjab, the State which our hon. Deputy Speaker hail from. Tamil Nadu is dependent on release of water from neighbouring States. Hence there is a need to bring the entire Tamil Nadu under the ambit of this scheme. I would like to reiterate the same through this august House. Respective departments must take up the job themselves and must not go in for contract system. No contractors and middlemen should be there in the implementation of this scheme. It is a welcome aspect that contract system will not be there. I would like to know from the hon. Rural Development Minister as to how they implement the scheme with departments taking them up directly involving people directly. In this regard I would like to point out what I had witnessed myself in the 'Food for Work' programme in Melur that come under my constituency. Though the scheme envisages that only local ble would be involved and no machines would be utilised, about Rs. 98 lakh worth of jobs were undertaken using earth movers like pokline machines. I had verified myself this on my spot visit to monitor the progress. Machines were fully used and engaged to complete the jobs for the entire allocated funds there. Men were given work only for about Rs. 8 lakh worth of job. Manual labour was not resorted to in the 'Food for Work' programme. I would like to record a serious and verified allegation that 'Food for Work' programme in my constituency and in all other constituencies in the entire Tamil Nadu were carried out by the ruling party men and their 'benamis' using earth movers and machines like 'Pokline'. I had taken up this with the Union Minister concerned. I had written about this and I am yet to get a reply in this regard. I want a reply about his study of the ground reality there. Thiruvannamalai, Nagapattinam, Cuddalore, Villupuram are the 4 districts that are covered in this NREG Scheme. Even in these 4 districts every development work employes more machines than men thereby depriving 545 National Rural Employment people of jobs. There is no involvement of local people, no identification of local beneficiaries and no manual labour. This NREG Bill is a very good scheme. It is a historical one. For the first time a National Rural Employment Guarantee scheme is conceived to give 100 days of work to the rural poor. Those who have no other livelihood would be greatly benefited by this scheme. In case when guaranteed job is not provided then unemployment allowance would be paid as a compensation under this scheme/ I appreciate the Government for this bold and humanitarian initiative. At the same time I would like to express my eagemess to see that this scheme shall be implemented ensuring that the intended beneficiaries get all the benefits of this scheme. There is a monitoring mechanism at Panchayat level and I feel it is not enough and beneficiaries should also be included in the monitoring committees and councils. Machines are not supposed to be used in the completion of jobs pertaining to this scheme. If machines are used then such jobs must be scrapped from this scheme. No funds should be utilised for such deviations. The intended benefits must reach the poor for whom this scheme has been conceived. Hon. Minister who intervened in this discussion was referring to bank nationalisation. It is true that bank nationalisation has helped the country and our countrymen in many ways. But at the same time public sector banks have also given rise to non performing assets. About 12 lakh crore of rupees extended as loans could not be recovered. Bigwigs like industrialists and corporates took huge loans and fleeced the PSU banks as NPAs. Why do I point out at this? We have now evolved a very good scheme. We must ensure that all loopholes are plugged and there is no scope for any lacunae. We must ensure that the goals are achieved and the aims are accomplished. We must see that the people at the grass root level reap the benefits of this scheme. Even 5 year plans, all the ten of them, were aiming high but we could not achieve the target as intended. We are still anguished that the plan schemes did not reach the needy. I want this scheme not to face with such failures. 'Garibi hatao'-'remove poverty' was a slogan used earlier. This scheme is here to achieve that ideal. So I welcome this Bill on my own behalf and on behalf of CPI(M). The minimum wage rate fixed in this Bill is Rs. 60 per day. Similarly I find only 200 districts all over the country that have been identified for this Guarantee Bill, 2004 546 scheme. I wish the Government enhances soon the wage and increase the number of beneficiary districts. All the rain-fed, drought-prone districts must come under the ambit of this Act soon. Only then this Bill could accomplish its purpose fully. With this, I conclude my speech and thank the Chair for the opportunity given. SHRI DHARMENDRA PRADHAN (Deogarh): Mr. Deputy Speaker, Sir, I express gratefulness to you for providing me an opportunity to participate in this important discussion. The House supports this bill in principle rising above party level. I, too, support this bill. Especially, I would like to thank Shri Raghuvansh Prasad Singh, Hon'ble Minister of Rural Development. As far as I know, the effort of Raghuvansh Babu has come in a new form for the poor people in India. Therefore we should thank him. I also thank Shri Kalyan Singhji, the Chairman of Standing Committee, since it was unanimous view of the Standing Committee. It was a separate matter of discussion in the Standing Committee and views expressed were unanimous. I want to thank the mature Republic of India for discussing such an important issue after fifty eight years of independence. The matter of today's discussion is also the need of the time. The matter was also discussed at the time when the constitution was framed and it was demanded that the right to employment should be included in the category of fundamental rights. If you go through the speech of Constituency assembly in November 1949, you will see the then Deputy Chairman of Planning Commission. Shri K.T. Shah and Baba Saheb Ambedkarji were of the view that right to employment be brought into the category of fundamental rights. But it was included in the list of directive principle instead of fundamental rights. Such demands are being raised continuously since then and today this dream seems to become true. The Parliament of India is going to pass it. If this bill is passed, then it will also be homage to those great leaders. I was listening to the speech of Shri Priya Ranjan Dasmunsi. Priya Ranjanji delivered a good speech and I agree with him. But he has some misgivings about the question asked by Kalyan Singhji which he has sought to know why Congress felt after 40 years that there should be a law on the matter. Kalyan Singhji has delivered a good speech. He had said in his speech that thank God, Congress had thought of removing poverty by framing a
english
{"@class":"ConeMesh","id":{"uuid":"C11FFECB-D4B6-422B-A2C6-002C47FD3121"},"hasPositions":true,"hasColors":false,"hasUV":true,"hasNormals":true,"hasTangents":true,"hasBinormals":true,"hasSkinAttributes":false,"radiusTop":0.5,"radiusBottom":0.5,"height":1.0,"radialSegmentCount":32,"heightSegmentCount":32}
json
Chinese short-form video app TikTok is still working on its plan to launch live shopping in the US, after reports surfaced that it has given up on the plans. According to a report from the Financial Times, the platform is looking to join TalkShopLive to launch live shopping features in the US. TalkShopLive is a live shopping platform based in Los Angeles, and is being used by Walmart and Microsoft's MSN for shopping livestreams. According to the report, TikTok could leverage TalkShopLive's technology to allow creators to host live shopping sessions on its own platform. The company may launch live shopping in this festive season. In a statement, TikTok said it's "constantly exploring new and different options for how we can best serve our community, creators and merchants in markets around the world". The Chinese short-form video app continued its reign as the top grossing non-game app worldwide across the App Store and Google Play combined in the third quarter this year. TikTok saw approximately $914. 4 million in consumer spending this quarter, bringing its lifetime total to roughly $6. 3 billion, according to Sensor Tower report. "TikTok was the No. 1 revenue-generating non-game app on the App Store, while on Google Play it came second to Google One, which maintained its No. 1 spot with a little more than $330 million," it added. (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>0 { "clientID": "your client's ID", "clientSecret": "your client's sectret", "callbackUrl": "http://localhost:3000/login/callback", "userAgent": "the user-agent to use for requests to the github API" }
json
<reponame>sguzman/book-repo<gh_stars>1-10 {"categories":["Operating Systems","Sysadmin"],"desc":"\n","details":{"authors":"<NAME>","format":"pdf","isbn-10":"073567535X","isbn-13":"978-0735675353","pages":"258 pages","publication date":"September 18, 2012","publisher":"Microsoft Press","size":"17.75Mb"},"img":"http://172.16.58.38/covers/8f/8fc749367231aa878d9a413c9d82a470.jpg","link":"https://rapidhosting.info/files/g3x","title":"Introducing Windows Server 2012 RTM Edition"}
json
const chai = require("chai"); const expect = require("chai").expect; const commonPaths = require("../../../app/paths/files/app-paths"); const commonFunctions = require(commonPaths.testCommon); const arrayFunctions = require(commonPaths.testArray); const objectFunctions = require(commonPaths.testObject); const defineFile = require(commonPaths.defineApi); function testDefine() { describe("Manufacturer Array", function() { it("Array Exists", function() { objectFunctions.testPropExists(defineFile, 'definitions'); arrayFunctions.testPopulated(defineFile.definitions); }); it("Valid Contents", function() { manufacturerArrayLoop(); }); }); } function manufacturerArrayLoop() { var loopIndex = 0; var currentElement = null; for (loopIndex = 0; loopIndex < defineFile.definitions.length; loopIndex = loopIndex + 1) { currentElement = defineFile.definitions[loopIndex]; commonFunctions.testString(currentElement); } } module.exports = testDefine;
javascript
For example, in Pan's Labrynth, the frog and the three tasks line felt like something you read about as a kid, but there really never was a story like that at all. . There were fantasy movies but never like this. (Slow but not great, but good, visually just awesome) (My ever best movie, if not yet seen, please watch) (Its slow, its serious and its not my cup of tea. May be serious movie lovers would like it) (Awesome!!! in word) (I had spent my precious 6 hours for it. First a mall refused us as its all shows were house-full today. We went to another and got tickets of 10.30PM show. U know we bought these @8PM!!!) Well, there is nothing new in this movie. U have seen such movies so many times that u can even tell it while u r asleep. Same old jokes, same old comic situations. So many un-necessary characters, same Priyadarshan treatment to story. Katrrina again proveds that she can't act and dance. Ranbir Kapoor showed that he can overact and Upen Patel (oh just leave him....) Worst. It felt like eternity. Everytime I thought now its gonna end, a new character/twist comes. Forcefully stretched. Good songs but misplaced. If its so bad why its in Must watch thread? Well, its an one time watch only in morning shows. Never waste more than 70/- for this.
english
LA Knight is one of WWE's hottest stars, and Triple H knows that. However, his handling of the megastar has been far from perfect, and he may have just made another potentially huge error with him on RAW this week. The August 21st episode of RAW saw The Miz face Akira Tozawa - a man who hadn't won a singles match on RAW since 2017. He also has the distinct honor of being the only man (so far) to be defeated by Rhea Ripley in a singles match. That's why everybody assumed that The Miz would be winning. Instead, LA Knight's interference eventually led to Tozawa defeating two-time Grand Slam Champion The Miz. Given Tozawa's status as an enhancement talent, it looks like Triple H made a massive error by having him defeat a legend like The Miz. It instantly devalues LA Knight's inevitable win over The A-Lister. The Miz has always done what he has been told, but there is no denying that he shouldn't be losing to enhancement talent. It isn't a knock on Tozawa, but he fits the comedic role better. Because Triple H decided to have The Miz lose, LA Knight won't benefit when he eventually beats him. What do you think? Was it the wrong decision to have Tozawa win on RAW? Let us know what you think in the comments section below!
english
( 6 Mehn Israel ko eri mweselsang pwarer kan en Sahkan, mwesellahng Mosera. Wasao Aaron ahpw sipalla oh seridi ie, a nah pwutak Eleasar ahpw wiliandi nan dewen samworo. Nempe 20.28; 33.38. 7 Sang wasao re ahpw inenlahng Kudkoda, oh sang Kudkoda re kohdilahng Sotpada, wasa kisin piletik kei mi ie. 8 Eri, ni ahnsowo KAUN-O ahpw ketin koasoanehdi pwe kadaudok en Lipai en pwukoahki apwahpwalih Kohpwahn Inowo, oh papah nin duwen samworo kei, oh wia kapaiamwahu kan ni mwaren KAUN-O, duwen me kin wiewiawi kohdo lel rahnwet. Nempe 3.5-8. 9 Ih kahrepen kadaudok en Lipai ar sohte iang sapwasapw duwehte kadaudok teikan. Pwe arail sohso, iei re en wia samworo en KAUN-O, duwen KAUN-O, amwail Koht, e ketin inoukihda.) 10 “I mihmihki pohn nahnao erein rahn pahisek oh pwohng pahisek, duwehte me I wiahier mahso. KAUN-O eri pil ketin karonge ei pekipek ahnsowo, oh kupwurehda en dehr ketin kamwomwkumwailla. Eks. 34.28. 11 E ahpw mahsanihong ie, ‘Eri, met, mwesel oh kohwei mwohn noumw aramas akan oh kahluwa irail pwe re en kak pedolong oh sapwenikihla sahpw me I inoukihong arail pahpa kahlap ako me I pahn kihong irail. 12 “Eri met, kumwail mehn Israel, kumwail rong dahme KAUN-O, amwail Koht, ketin kupwurki sang rehmwail. Kumwail en lemmwiki KAUN-O oh kapwaiada sapwellime mahsen koaros. Poakohng ih oh papah ni mohngiongimwail unsek. 13 Kapwaiada sapwellime kosonned koaros me I kehkehlingkihong kumwail rahnwet pwe kumwail en nsenamwahu. 14 KAUN-O me sapwellimaniki pahnlahng oh sampah oh pil audepe kan koaros. 15 Pwehki KAUN-O eh ketin loaloale mehlel amwail pahpa kahlap ako, ihme e ketin pilkinkumwailda, e ahpw sohte ketin pilada aramas teikan, oh kumwail wialahr sapwellime aramas pilipil kei lel rahnwet. 16 Eri, sang met kohla kumwail peikiong KAUN-O oh tokedihsang amwail keptakai. 17 KAUN-O, amwail Koht, me ketin lapalapasang koht akan koaros oh manaman koaros. Ih me Wasa Lapalahpie oh roson; eri mehkoaros en peikiong ih. E sohte kin ketin lipilipilki aramas oh e sohte kin ketin uhpalihki me sapwung. 1 Tim. 6.15; Kaud. 17.14; 19.16; Wie. 10.34; Rom 2.11; Kal. 2.6; Ep. 6.9. 18 E kin ketin koasoanehdi pwuhng ong me sepwoupwou kan oh ong liohdi kan; e kin ketin poakohng mehn liki kan me koukousoan rehn atail aramas akan oh e kin ketin katungoale oh kalikawih irail. Sir. 35.12-15. 19 Eri, kumwail pil kasalehda amwail poakohng mehn liki kan, pwe kumwail pil wia mehn liki mahso nan Isip. 20 Kumwail lemmwiki KAUN-O, amwail Koht, oh kaudokiong ihete. Loalopwoat ong ih oh kahula ni mwarehte. 21 Kapinga ih—ih me amwail Koht, oh kumwail pein kilangki masamwail kan sapwellime wiewia lapalap oh kapwuriamwei me e ketin wiahiong kumwail. 22 Ni amwail pahpa kahlap ako arail kohdilahng Isip, irail mehte isiakan, ahpw met KAUN-O, amwail Koht, ketin kahngedereikumwaillahr duwehte usuhn pahnlahng kan.” Sen. 46.27; b Sen. 15.5; 22.17.
english
package org.joverseer.ui.listviews.renderers; import java.awt.Color; import java.awt.Component; import java.util.Locale; import javax.swing.JTable; import javax.swing.table.DefaultTableCellRenderer; import org.joverseer.JOApplication; import org.joverseer.domain.IBelongsToNation; import org.joverseer.domain.NationRelations; import org.joverseer.game.Game; import org.joverseer.metadata.domain.NationAllegianceEnum; import org.joverseer.preferences.PreferenceRegistry; import org.joverseer.support.GameHolder; import org.springframework.context.MessageSource; import org.springframework.richclient.table.BeanTableModel; import org.springframework.richclient.table.SortableTableModel; /** * Cell renderer that colors the row background according to the allegiance of the item shown * The Item must implement the IBelongsToNation interface * * Can be used only with with tables that use BeanTableModels * * @author <NAME> */ @SuppressWarnings("serial") public class AllegianceColorCellRenderer extends DefaultTableCellRenderer { BeanTableModel tableModel; public AllegianceColorCellRenderer(BeanTableModel tableModel) { this.tableModel = tableModel; } @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); String pval = PreferenceRegistry.instance().getPreferenceValue("listviews.bgColor"); if (pval.equals("none")) return c; if (isSelected) { return c; } int objRow = ((SortableTableModel) table.getModel()).convertSortedIndexToDataIndex(row); Object obj = this.tableModel.getRow(objRow); if (IBelongsToNation.class.isInstance(obj)) { IBelongsToNation natObj = (IBelongsToNation) obj; if (natObj == null || natObj.getNationNo() == null) return c; int nationNo = natObj.getNationNo(); Game g = GameHolder.instance().getGame(); NationRelations nr = g.getTurn().getNationRelations(nationNo); NationAllegianceEnum allegiance = null; if (nr != null && nationNo > 0) { allegiance = nr.getAllegiance(); } MessageSource colorSource = JOApplication.getColorSource(); String colorKey = allegiance != null ? "Listview." + allegiance.toString() + ".color" : "ListView.unknownAllegiance.color"; Color bg = Color.decode(colorSource.getMessage(colorKey, new Object[] {}, Locale.getDefault())); c.setBackground(bg); return c; } else { return c; } } public BeanTableModel getTableModel() { return this.tableModel; } public void setTableModel(BeanTableModel tableModel) { this.tableModel = tableModel; } }
java
package com.fundynamic.d2tm.game.terrain; // marker interface to tell if anything can be constructed upon this terrain public interface ConstructionGround { }
java
{ "translations": { "Activities" : "Activités", "Error loading activities" : "Erreur au chargement de l'activité", "No activities" : "Aucune activité", "Load more activities" : "Charger plus d'activités", ", " : ", ", "{parameterList} and {lastParameter}" : "{parameterList} et {lastParameter}", "_{parameterList} and {linkStart}%n more{linkEnd}_::_{parameterList} and {linkStart}%n more{linkEnd}_" : ["{parameterList} et {linkStart}%n autre{linkEnd}","{parameterList} et {linkStart}%n autres{linkEnd}"], "in {directory}" : "dans {directory}", "This stream will show events like additions, changes & shares" : "Ce flux liste les événements tels que les ajouts, les modifications et les partages", "There are no events for this filter" : "Il n'y a pas d'événement pour ce filtre", "Today" : "Auj.", "Yesterday" : "Hier", "Personal activity feed for %s" : "Flux d'activité personnel de %s", "Your feed URL is invalid" : "Votre adresse de fil d’activité n'est pas valide", "Your settings have been updated." : "Vos paramètres ont été mis à jour.", "Mail" : "Mail", "Stream" : "Flux", "\"remote user\"" : "\"utilisateur distant\"", "Activity notification" : "Notification d'activité", "All Activities" : "Toutes activités", "Activities by you" : "Vos activités", "Activities by others" : "L'activité des autres", "%s and %s" : "%s et %s", "Hello %s," : "Bonjour %s,", "You are receiving this email because the following things happened at %s" : "Vous recevez ce message car l'activité suivante a eu lieu sur %s", "* %1$s - %2$s" : "* %1$s - %2$s", "_* and %n more _::_* and %n more _" : ["* et %n autre","* et %n autres"], "You are receiving this email because the following things happened at <a href=\"%s\">%s</a>" : "Vous recevez ce courriel car l'activité suivante a eu lieu sur <a href=\"%s\">%s</a>", "%1$s - %2$s" : "%1$s - %2$s", "_and %n more _::_and %n more _" : ["et %n supplémentaire","et %n supplémentaires"], "Activity" : "Activité", "List your own file actions in the stream" : "Liste de vos propres actions dans le flux", "Notify about your own actions via email" : "M'informer de mes propres actions par courriel", "You need to set up your email address before you can receive notification emails." : "Il est nécessaire de configurer une adresse courriel avant de pouvoir recevoir les notifications par courriel.", "Send emails:" : "Envoyer des courriels :", "As soon as possible" : "Aussi rapidement que possible", "Hourly" : "Toutes les heures", "Daily" : "Quotidiennement", "Weekly" : "Chaque semaine", "Activity feed" : "Fil d'activité", "Enable RSS feed" : "Activer les flux RSS", "No activity yet" : "Pas d'activité pour le moment", "No more events to load" : "Plus aucun événement à charger", "Files" : "Fichiers" },"pluralForm" :"nplurals=2; plural=(n > 1);" }
json
A Chinese black comedy, a movie lauding the benefits of generic anti-cancer drugs manufactured in India, has gone on to become a huge hit in China, raking in USD 36. 14 mn in two days since its release on Thursday. Dying to Survive has been released in the backdrop of increasing calls for cooperation between India and China in the pharmaceutical sector. Generic drugs manufactured in India are popular in China for their low cost and efficacy. During Prime Minister Narendra Modi’s recent visit to China in June, it had been agreed upon that China would encourage Indian pharma companies to register for high-quality pharma products in the Chinese market. The movie, directed by Ning Hao, tackles the issue of rising healthcare costs in China. Nearly 40 per cent of healthcare spendings are on drugs alone. The film, released on Thursday and making waves in China’s festival circuit, is based on the story of Lu Yong, a textile trader from Wuxi, Jiangsu province. Diagnosed with chronic myeloid leukemia in 2002, Lu had been taking Gleevec, developed by Swiss pharmaceutical giant Novartis for use in the treatment of multiple cancers. The medicine had been costing him around 23,500 yuan (around Rs 2. 5 lakh) a month. In 2004, Lu began to directly procure a version of the same medicine, called Veenat, from India which cost him only 3,000 yuan. He shared this information with 1,000 other patients in support groups and also provided help in sourcing these medicines from India. But since the drug was unregistered in China, it was deemed counterfeit and Lu was arrested in 2014. After spending four months in prison, Lu was released after Chinese courts found that he had not personally profited from this activity. Many cancer patients had also petitioned for his release. Lu’s character in the movie has been fictionalised into Cheng Yong, a peddler of ointments. The movie pairs him with a bunch of other eccentric fellow smugglers who help him in his pursuit of Indian drugs to help those afflicted by cancer. Actor Xu Zheng, who has also co-produced the movie, plays Cheng’s character. Parts of Dying to Survive have been shot in Mumbai. Indian drugs are extremely popular in China with frequent cases being registered of smuggling and selling Indian-made drugs. There is also a massive underground market for Indian medicines in the treatment of diseases such as cancer. About 4. 3 million people are diagnosed with cancer annually in China, according to a report on China Central Television. The percentage of Indian drugs that are sold legally in the Chinese market is very low. Chinese experts have over the months been calling for increased cooperation between India and China in the field of pharmaceuticals with some calling for joint development of drugs.
english
<reponame>salingers/reactjs101-master<filename>Appendix02/ReactNativeFirebaseMotto/src/components/ListItem/listItemStyles.js import { StyleSheet } from 'react-native'; export default StyleSheet.create({ listItemContainer: { flex: 1, flexDirection: 'row', padding: 10, margin: 5, }, listItemText: { flex: 10, fontSize: 18, color: '#212121', } });
javascript
<reponame>xcshuan/messageswap // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: message.proto package messageswap_pb import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" import _ "github.com/gogo/protobuf/gogoproto" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package type Message_MessageType int32 const ( Message_PUT_VALUE Message_MessageType = 0 Message_GET_VALUE Message_MessageType = 1 Message_ADD_PROVIDER Message_MessageType = 2 Message_GET_PROVIDERS Message_MessageType = 3 Message_FIND_NODE Message_MessageType = 4 Message_PING Message_MessageType = 5 Message_GET_PREFIX Message_MessageType = 6 Message_APPEND_VALUE Message_MessageType = 7 Message_META_SYNC Message_MessageType = 8 Message_User_Init_Req Message_MessageType = 9 Message_User_Init_Res Message_MessageType = 10 Message_User_NewKP_Req Message_MessageType = 11 Message_New_User_Notif Message_MessageType = 12 Message_Block_Meta Message_MessageType = 13 Message_Delete_Block Message_MessageType = 14 Message_Challenge Message_MessageType = 15 Message_Proof Message_MessageType = 16 Message_Proof_Sync Message_MessageType = 17 Message_Repair Message_MessageType = 18 Message_Query_Info Message_MessageType = 19 Message_Repair_Res Message_MessageType = 20 Message_Storage_Sync Message_MessageType = 21 Message_MetaInfo Message_MessageType = 22 Message_MetaBroadcast Message_MessageType = 23 ) var Message_MessageType_name = map[int32]string{ 0: "PUT_VALUE", 1: "GET_VALUE", 2: "ADD_PROVIDER", 3: "GET_PROVIDERS", 4: "FIND_NODE", 5: "PING", 6: "GET_PREFIX", 7: "APPEND_VALUE", 8: "META_SYNC", 9: "User_Init_Req", 10: "User_Init_Res", 11: "User_NewKP_Req", 12: "New_User_Notif", 13: "Block_Meta", 14: "Delete_Block", 15: "Challenge", 16: "Proof", 17: "Proof_Sync", 18: "Repair", 19: "Query_Info", 20: "Repair_Res", 21: "Storage_Sync", 22: "MetaInfo", 23: "MetaBroadcast", } var Message_MessageType_value = map[string]int32{ "PUT_VALUE": 0, "GET_VALUE": 1, "ADD_PROVIDER": 2, "GET_PROVIDERS": 3, "FIND_NODE": 4, "PING": 5, "GET_PREFIX": 6, "APPEND_VALUE": 7, "META_SYNC": 8, "User_Init_Req": 9, "User_Init_Res": 10, "User_NewKP_Req": 11, "New_User_Notif": 12, "Block_Meta": 13, "Delete_Block": 14, "Challenge": 15, "Proof": 16, "Proof_Sync": 17, "Repair": 18, "Query_Info": 19, "Repair_Res": 20, "Storage_Sync": 21, "MetaInfo": 22, "MetaBroadcast": 23, } func (x Message_MessageType) String() string { return proto.EnumName(Message_MessageType_name, int32(x)) } func (Message_MessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_message_59eb3dadee47de0f, []int{0, 0} } // `protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/gogo/protobuf/protobuf // --gogo_out=. *.proto` type Message struct { Type Message_MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=messageswap.pb.Message_MessageType" json:"type,omitempty"` Key Message_Key `protobuf:"bytes,2,opt,name=key" json:"key"` Value [][]byte `protobuf:"bytes,3,rep,name=value" json:"value,omitempty"` Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Message) Reset() { *m = Message{} } func (m *Message) String() string { return proto.CompactTextString(m) } func (*Message) ProtoMessage() {} func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor_message_59eb3dadee47de0f, []int{0} } func (m *Message) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Message.Unmarshal(m, b) } func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Message.Marshal(b, m, deterministic) } func (dst *Message) XXX_Merge(src proto.Message) { xxx_messageInfo_Message.Merge(dst, src) } func (m *Message) XXX_Size() int { return xxx_messageInfo_Message.Size(m) } func (m *Message) XXX_DiscardUnknown() { xxx_messageInfo_Message.DiscardUnknown(m) } var xxx_messageInfo_Message proto.InternalMessageInfo func (m *Message) GetType() Message_MessageType { if m != nil { return m.Type } return Message_PUT_VALUE } func (m *Message) GetKey() Message_Key { if m != nil { return m.Key } return Message_Key{} } func (m *Message) GetValue() [][]byte { if m != nil { return m.Value } return nil } func (m *Message) GetTimestamp() string { if m != nil { return m.Timestamp } return "" } type Message_Key struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Arguments [][]byte `protobuf:"bytes,2,rep,name=arguments" json:"arguments,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Message_Key) Reset() { *m = Message_Key{} } func (m *Message_Key) String() string { return proto.CompactTextString(m) } func (*Message_Key) ProtoMessage() {} func (*Message_Key) Descriptor() ([]byte, []int) { return fileDescriptor_message_59eb3dadee47de0f, []int{0, 0} } func (m *Message_Key) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Message_Key.Unmarshal(m, b) } func (m *Message_Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Message_Key.Marshal(b, m, deterministic) } func (dst *Message_Key) XXX_Merge(src proto.Message) { xxx_messageInfo_Message_Key.Merge(dst, src) } func (m *Message_Key) XXX_Size() int { return xxx_messageInfo_Message_Key.Size(m) } func (m *Message_Key) XXX_DiscardUnknown() { xxx_messageInfo_Message_Key.DiscardUnknown(m) } var xxx_messageInfo_Message_Key proto.InternalMessageInfo func (m *Message_Key) GetID() string { if m != nil { return m.ID } return "" } func (m *Message_Key) GetArguments() [][]byte { if m != nil { return m.Arguments } return nil } func init() { proto.RegisterType((*Message)(nil), "messageswap.pb.Message") proto.RegisterType((*Message_Key)(nil), "messageswap.pb.Message.Key") proto.RegisterEnum("messageswap.pb.Message_MessageType", Message_MessageType_name, Message_MessageType_value) } func init() { proto.RegisterFile("message.proto", fileDescriptor_message_59eb3dadee47de0f) } var fileDescriptor_message_59eb3dadee47de0f = []byte{ // 485 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6e, 0xda, 0x40, 0x14, 0x45, 0x03, 0x36, 0x04, 0x3f, 0xc0, 0x9d, 0x4c, 0xd3, 0x16, 0xa5, 0x95, 0x8a, 0xd2, 0x0d, 0x9b, 0x12, 0x29, 0x2c, 0xba, 0x86, 0xd8, 0x89, 0x2c, 0x8a, 0xe3, 0x1a, 0x88, 0xda, 0xd5, 0x68, 0xa0, 0x0f, 0x07, 0x05, 0x3c, 0xae, 0x3d, 0x2e, 0xf2, 0x77, 0xf4, 0xa7, 0xfa, 0x15, 0xfd, 0x8c, 0xae, 0xab, 0x19, 0x83, 0xd2, 0x56, 0xca, 0xca, 0x73, 0xef, 0xdc, 0x73, 0xdf, 0xb3, 0x34, 0xd0, 0xde, 0x62, 0x96, 0xf1, 0x08, 0xfb, 0x49, 0x2a, 0xa4, 0xa0, 0xf6, 0x5e, 0x66, 0x3b, 0x9e, 0xf4, 0x93, 0xc5, 0xd9, 0xfb, 0x68, 0x2d, 0xef, 0xf3, 0x45, 0x7f, 0x29, 0xb6, 0x17, 0x91, 0x88, 0xc4, 0x85, 0x8e, 0x2d, 0xf2, 0x95, 0x56, 0x5a, 0xe8, 0x53, 0x89, 0x9f, 0xff, 0x36, 0xe1, 0x78, 0x52, 0x36, 0xd0, 0x0f, 0x60, 0xca, 0x22, 0xc1, 0x4e, 0xa5, 0x5b, 0xe9, 0xd9, 0x97, 0xef, 0xfa, 0xff, 0x36, 0xf7, 0xf7, 0xb1, 0xc3, 0x77, 0x56, 0x24, 0x18, 0x6a, 0x80, 0x0e, 0xc0, 0x78, 0xc0, 0xa2, 0x53, 0xed, 0x56, 0x7a, 0xcd, 0xcb, 0xd7, 0x4f, 0x71, 0x63, 0x2c, 0x46, 0xe6, 0xcf, 0x5f, 0x6f, 0x8f, 0x42, 0x95, 0xa6, 0xa7, 0x50, 0xfb, 0xce, 0x37, 0x39, 0x76, 0x8c, 0xae, 0xd1, 0x6b, 0x85, 0xa5, 0xa0, 0x6f, 0xc0, 0x92, 0xeb, 0x2d, 0x66, 0x92, 0x6f, 0x93, 0x8e, 0xd9, 0xad, 0xf4, 0xac, 0xf0, 0xd1, 0x38, 0x1b, 0x80, 0x31, 0xc6, 0x82, 0xda, 0x50, 0xf5, 0x1c, 0xbd, 0xa6, 0x15, 0x56, 0x3d, 0x47, 0x41, 0x3c, 0x8d, 0xf2, 0x2d, 0xc6, 0x32, 0xeb, 0x54, 0x75, 0xdd, 0xa3, 0x71, 0xfe, 0xc3, 0x80, 0xe6, 0x5f, 0x3b, 0xd3, 0x36, 0x58, 0xc1, 0x7c, 0xc6, 0xee, 0x86, 0x1f, 0xe7, 0x2e, 0x39, 0x52, 0xf2, 0xc6, 0x3d, 0xc8, 0x0a, 0x25, 0xd0, 0x1a, 0x3a, 0x0e, 0x0b, 0xc2, 0xdb, 0x3b, 0xcf, 0x71, 0x43, 0x52, 0xa5, 0x27, 0xd0, 0x56, 0x81, 0x83, 0x33, 0x25, 0x86, 0x62, 0xae, 0x3d, 0xdf, 0x61, 0xfe, 0xad, 0xe3, 0x12, 0x93, 0x36, 0xc0, 0x0c, 0x3c, 0xff, 0x86, 0xd4, 0xa8, 0x0d, 0x50, 0x66, 0xdd, 0x6b, 0xef, 0x33, 0xa9, 0xeb, 0xb6, 0x20, 0x70, 0x7d, 0x67, 0xdf, 0x7f, 0xac, 0xd0, 0x89, 0x3b, 0x1b, 0xb2, 0xe9, 0x17, 0xff, 0x8a, 0x34, 0x54, 0xf9, 0x3c, 0xc3, 0x94, 0x79, 0xf1, 0x5a, 0xb2, 0x10, 0xbf, 0x11, 0xeb, 0x7f, 0x2b, 0x23, 0x40, 0x29, 0xd8, 0xda, 0xf2, 0x71, 0x37, 0x0e, 0x74, 0xac, 0xa9, 0x3c, 0x1f, 0x77, 0xac, 0xf4, 0x85, 0x5c, 0xaf, 0x48, 0x4b, 0x8d, 0x1f, 0x6d, 0xc4, 0xf2, 0x81, 0x4d, 0x50, 0x72, 0xd2, 0x56, 0xe3, 0x1d, 0xdc, 0xa0, 0x44, 0xa6, 0x6d, 0x62, 0xab, 0xf1, 0x57, 0xf7, 0x7c, 0xb3, 0xc1, 0x38, 0x42, 0xf2, 0x8c, 0x5a, 0x50, 0x0b, 0x52, 0x21, 0x56, 0x84, 0x28, 0x56, 0x1f, 0xd9, 0xb4, 0x88, 0x97, 0xe4, 0x84, 0x02, 0xd4, 0x43, 0x4c, 0xf8, 0x3a, 0x25, 0x54, 0xdd, 0x7d, 0xca, 0x31, 0x2d, 0x98, 0x17, 0xaf, 0x04, 0x79, 0xae, 0x74, 0x79, 0xa7, 0xf7, 0x3b, 0x55, 0x73, 0xa6, 0x52, 0xa4, 0x3c, 0xc2, 0x92, 0x7e, 0x41, 0x5b, 0xd0, 0x50, 0x3b, 0xe8, 0xfc, 0x4b, 0xf5, 0x4b, 0x4a, 0x8d, 0x52, 0xc1, 0xbf, 0x2e, 0x79, 0x26, 0xc9, 0xab, 0x45, 0x5d, 0xbf, 0xbf, 0xc1, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x5e, 0xbf, 0x74, 0xcf, 0x02, 0x00, 0x00, }
go
package crypto import ( "crypto/sha1" "golang.org/x/crypto/pbkdf2" ) const HardcodedSalt = "someHardcodedPlaintextSalt" type PBKDF2KeyGen struct { salt []byte } func NewPBKDF2KeyGen(desiredSalt []byte) *PBKDF2KeyGen { salt := desiredSalt if salt == nil { salt = randBytes(10) } return &PBKDF2KeyGen{salt} } func (k *PBKDF2KeyGen) DeriveKey(password string) []byte { return pbkdf2.Key([]byte(password), k.salt, 4096, 32, sha1.New) }
go
2537 Written Answers SRAVANA 8, 1890 (SAKA) Written Answers 2538 Strike by Railway Firemen (c) It is not possible to exactly assess its effect on the prices of other commodities as it will depend upon various other factors such as the extent to which the incidence of the increased cost of production has been shifted from industries to consumers, the increase in productivity, the demand for their products, the market conditions, the substitution of steel by other raw materials etc. Allotment of Steel for fabrication of Drums and Barrels *190. SHRI SITARAM KESRI: Will the Minister of INDUSTRIAL DEVELOPMENT AND COMPANY AFFAIRS be pleased to refer to the reply given to Unstarred Question No. 9903 on the 7th May, 1968 and (a) whether it was possible for the original licensed fabricators to meet the increased requirement of oil barrels; (b) whether steel sheets were ever allotted to these original licensed fabricators even on one full shift basis of their licensed capacities before assessing their capacities; and (c) if not, the reasons for not allotting steel sheets to these units on two shifts basis? THE MINISTER OF INDUSTRIAL DEVELOPMENT AND COMPANY AFFAIRS (SHRI F. A. AHMED): (a) Reference is invited to reply to Lok Sabha Unstarred Question No. 1852 on the 27-2-1968 and Unstarred Question No. 2848 on the 5-3-1968, wherein it has been explained that the needed supply rate of 4,700 tonnes per month for the petroleum industry and other consumers could not be effected unless the existing capacities were revised upward or new capacities created. The total assessed capacity at that time of the oil barrel Industry was about 3,000 tonnes per month. (b) and (c). The allocation of steel sheets to this industry has all along been made on the basis of single shift assessed capacities only. *191. SHRI R. K. SINHA: SHRI C. K. CHAKRAPANI: SHRI KANWAR LAL SHRI VASUDEVAN NAIR: SHRI S. R. RANE: SHRI MAHANT DIGVIJAI NATH: SHRI RAMAVTAR SHRI D. B. RAJU: SHRI J. H. PATEL: SHRI G. S. REDDI: SHRI BAL RAJ MADHOK: SHRI SHARDA NAND: SHRI BHARAT SINGH SHRI JAGANNATH RAO JOSHI: SHRI ATAL BIHARI SHRI SRADHAKAR SHRI K. G. DESHMUKH: SHRI V. NARASIMHA: RAO: Will the Minister of RAILWAYS be pleased to state: (a) whether it is a fact that several trains had to be cancelled on the Sourthern and South Central Railways as a result of the strike by firemen in the first week of July; (b) if so, the reasons for the strike and the steps taken to end the strike; and (c) the number of trains affected and the estimated loss during the THE MINISTER OF RAILWAYS (SHRI C. M. POONACHA): (a) Yes Sir; due to the absence of a large number of firemen. train services, both passenger and goods, on certain divisions on these two Railways were affected. (b) The reasons for this absence were reported to be non-redressal of the grievances of the Firemen. It is reported that the agitation was called off by the Firemen in pursuance of a decision taken by their Joint action committee, on 18-7-68. JULY 30, (c) As regards the number of trains affected, a statement is laid on the table of the House. [Placed in Library. See No. LT-1511 68.] Regarding estimated loss, the same is being worked out by the zonal Railways. It has, however, been tenis tatively estimated that the same of the order of Rs. 103 lakhs. स्कूटरों का निर्माण डा० सूर्य प्रकाश पुरी : श्री रामावतार शर्मा : श्री शिव कुमार शास्त्री : श्री प्रकाशवीर शास्त्री : श्री स्वतन्त्र सिंह कोठारी : श्री अब्दुल गनी वार : क्या प्रौद्योगिक विकास तथा समवायकार्य मंत्री यह बताने की कृपा करेंगे कि : ( क ) क्या देश में स्कूटरों के उत्पादन के बारे में आगे कोई प्रगति हुई है; ( ख ) क्या कुछ और नई कम्पनियों को लाइसेंस देने की योजना पर भी विचार हो रहा है; और (ग) स्कूटर उत्पादन क्षमता को कत्र क बढ़ाया जायेगा ? प्रौद्योगिक विकास तथा समवाय कार्य मंत्री (श्री फखरुद्दीन अली अहमद ) : (क) स्कूटरों का उत्पादन प्रति वर्ष लगातार बढ़ता जा रहा है । 1966 में इनकी उत्पादन संख्या 20,971, 1967 में 30,296 तथा 1968 के पहले छः महीनों में 17,539 थो । (ख) स्कूटरों की बढ़ती हुई मांग को पूरा करने के लिए सरकार ने उपयुक्त लाभप्रद क्षमता के एक और कारखाने को लाइसेंस देने का निश्चय किया है। प्राप्त हुई लगभग 190 योजनाओं में से जिन तीन पार्टियों की योजना सबसे अधिक अच्छी समझी गई उनसे विस्तृत परियोजना रिपोर्ट प्रस्तुत करने के लिए कहा गया है । परियोजना रिपोर्टों की जांच करने के पश्चात् सबसे अधिक उपयुक्त योजना को लाइसेंस देने के लिए छांटा जायेगा । आशा है कि यह प्रक्रिया लगभग इस वर्ष के अन्त तक पूरी हो जायेगी । (ग) नये कारखाने में लाइसेंस दिये जाने के पश्चात् लगभग दो वर्षों में उत्पादन शुरू हो जाने की आशा की जा सकती है । Indianisation of Staff * 1.93. SHRI K. LAKKAPPA: Will the Minister of INDUSTRIAL DEVELOPMENT AND COMPANY AF FAIRS be pleased to state: (a) whether it is a fact that a large number of foreign firms are reluctant to Indianise their senior staff;' (b) if so, what are the reasons therefor; and (c) the action taken by Government in the matter ? THE MINISTER OF INDUSTRIAL DEVELOPMENT AND COMPANY AFFAIRS (SHRI F. A. AHMED): (a) In view of the progressive increase in the per-centage of Indians-from 7.9 per cent in 1947 to 90.5 per cent in 1967 – employed by the foreign owned/controlled firms in the superior positions carrying total monthly emoluments of Rs. 1000 and above, it will appear that the foreign firms are taking steps to indianise their senior staff. Do not arise.
english
<filename>src/TextExtractPar.java //***********************************************************************************************// ///////////////////// This file contains the generation of the database DB, i.e., building a plaintext look-up table that associates every keyword to the set fo documents identifiers ///////////////////////////// /*TEXT extractor parses the content of documents into raw text * the output of this parser is given to Lucene for tokenization. * The tokenization used is a standard one where stop words are eliminated. * A more sophisticated tokenization is possible such as Porter stemming algorithm. * This part can be modified to handle a more specific user grammar. * The actual parser handles the following extensions: - .txt, html etc - Microsoft documents .doc and .docx, EXCEEL sheet .xls and Powerpoint presentation .ppt - Pdf files .pdf - All media files such as pictures and videos are not parsed and only the title of the media file is taken as input gif, jpeg, .wmv, .mpeg, .mp4 */ //***********************************************************************************************// import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Set; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.en.EnglishAnalyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.analysis.util.CharArraySet; import org.apache.pdfbox.cos.COSDocument; import org.apache.pdfbox.pdfparser.PDFParser; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.util.PDFTextStripper; import org.apache.poi.hwpf.extractor.WordExtractor; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.apache.poi.openxml4j.exceptions.OpenXML4JException; import org.apache.poi.openxml4j.opc.OPCPackage; import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; import org.apache.poi.xslf.extractor.XSLFPowerPointExtractor; import org.apache.poi.xssf.extractor.XSSFExcelExtractor; import org.apache.poi.xwpf.extractor.XWPFWordExtractor; import org.apache.poi.xwpf.usermodel.XWPFDocument; import org.apache.xmlbeans.XmlException; import com.google.common.base.Charsets; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.Multimap; import com.google.common.io.Files; public class TextExtractPar implements Serializable { public static int lengthStrings=0; public static int totalNumberKeywords =0; //lookup stores a plaintext inverted index of the dataset, i.e., the association between the keyword and documents that contain the keyword Multimap<String, String> lookup1 = ArrayListMultimap.create(); static Multimap<String, String> lp1 = ArrayListMultimap.create(); //lookup2 stores the document identifier (title) and the keywords containd in this document Multimap<String, String> lookup2 = ArrayListMultimap.create(); static Multimap<String, String> lp2 = ArrayListMultimap.create(); static int counter=0; public TextExtractPar( Multimap<String, String> lookup, Multimap<String, String> lookup2){ this.lookup1=lookup; this.lookup2=lookup2; } public Multimap<String, String> getL1(){ return this.lookup1; } public Multimap<String, String> getL2(){ return this.lookup2; } public static void extractTextPar(ArrayList<File> listOfFile) throws InterruptedException, ExecutionException, IOException { int threads =0; if (Runtime.getRuntime().availableProcessors()>listOfFile.size()){ threads = listOfFile.size(); } else{ threads = Runtime.getRuntime().availableProcessors(); } ExecutorService service = Executors.newFixedThreadPool(threads); ArrayList<File[]> inputs=new ArrayList<File[]>(threads); System.out.println("Number of Threads "+threads); for (int i=0;i<threads;i++){ File[] tmp; if (i == threads-1){ tmp=new File[listOfFile.size()/threads + listOfFile.size() % threads]; for (int j=0;j<listOfFile.size()/threads + listOfFile.size() % threads;j++){ tmp[j]=listOfFile.get((listOfFile.size()/threads) * i + j); } } else{ tmp=new File[listOfFile.size()/threads]; for (int j=0;j<listOfFile.size()/threads;j++){ tmp[j]=listOfFile.get((listOfFile.size()/threads) * i + j); } } inputs.add(i, tmp); } List<Future<TextExtractPar>> futures = new ArrayList<Future<TextExtractPar>>(); for (final File[] input : inputs) { Callable<TextExtractPar> callable = new Callable<TextExtractPar>() { public TextExtractPar call() throws Exception { TextExtractPar output = extractOneDoc(input); return output; } }; futures.add(service.submit(callable)); } service.shutdown(); for (Future<TextExtractPar> future : futures) { Set<String> keywordSet1 = future.get().getL1().keySet(); Set<String> keywordSet2 = future.get().getL2().keySet(); for (String key : keywordSet1){ lp1.putAll(key,future.get().getL1().get(key)); } for (String key : keywordSet2){ lp2.putAll(key,future.get().getL2().get(key)); } } } private static TextExtractPar extractOneDoc(File[] listOfFile) throws FileNotFoundException{ Multimap<String, String> lookup1 = ArrayListMultimap.create(); Multimap<String, String> lookup2 = ArrayListMultimap.create(); for (File file:listOfFile){ for (int j=0;j<100;j++){ if (counter == (int) ((j+1) * listOfFile.length/100)){ //System.out.println(counter); System.out.println("Number of files read equals"+ j +" %"); break; } } List<String> lines= new ArrayList<String>(); counter++; FileInputStream fis = new FileInputStream(file); //***********************************************************************************************// ///////////////////// .docx ///////////////////////////// //***********************************************************************************************// if (file.getName().endsWith(".docx")){ XWPFDocument doc; try { //System.out.println("File read: "+file.getName()); doc = new XWPFDocument(fis); XWPFWordExtractor ex = new XWPFWordExtractor(doc); lines.add(ex.getText()); } catch (IOException e) { // TODO Auto-generated catch block System.out.println("File not read: "+file.getName()); } } //***********************************************************************************************// ///////////////////// .pptx ///////////////////////////// //***********************************************************************************************// else if (file.getName().endsWith(".pptx")){ OPCPackage ppt; try { //System.out.println("File read: "+file.getName()); ppt = OPCPackage.open(fis); XSLFPowerPointExtractor xw = new XSLFPowerPointExtractor(ppt); lines.add(xw.getText()); } catch (XmlException e) { // TODO Auto-generated catch block System.out.println("File not read: "+file.getName()); } catch (IOException e) { // TODO Auto-generated catch block System.out.println("File not read: "+file.getName()); } catch (OpenXML4JException e){ System.out.println("File not read: "+file.getName()); } } //***********************************************************************************************// ///////////////////// .xlsx ///////////////////////////// //***********************************************************************************************// else if (file.getName().endsWith(".xlsx")){ OPCPackage xls; try { //System.out.println("File read: "+file.getName()); xls = OPCPackage.open(fis); XSSFExcelExtractor xe = new XSSFExcelExtractor(xls); lines.add(xe.getText()); } catch (InvalidFormatException e) { // TODO Auto-generated catch block System.out.println("File not read: "+file.getName()); } catch (IOException e){ System.out.println("File not read: "+file.getName()); } catch (XmlException e) { // TODO Auto-generated catch block System.out.println("File not read: "+file.getName()); } catch(OpenXML4JException e){ System.out.println("File not read: "+file.getName()); } } //***********************************************************************************************// ///////////////////// .doc ///////////////////////////// //***********************************************************************************************// else if (file.getName().endsWith(".doc")){ NPOIFSFileSystem fs; try { //System.out.println("File read: "+file.getName()); fs = new NPOIFSFileSystem(file); WordExtractor extractor = new WordExtractor(fs.getRoot()); for(String rawText : extractor.getParagraphText()) { lines.add(extractor.stripFields(rawText)); } } catch (IOException e) { // TODO Auto-generated catch block System.out.println("File not read: "+file.getName()); } } //***********************************************************************************************// ///////////////////// .pdf ///////////////////////////// //***********************************************************************************************// else if (file.getName().endsWith(".pdf")){ PDFParser parser; try { //System.out.println("File read: "+file.getName()); parser = new PDFParser(fis); parser.parse(); COSDocument cd = parser.getDocument(); PDFTextStripper stripper = new PDFTextStripper(); lines.add(stripper.getText(new PDDocument(cd))); } catch (IOException e) { // TODO Auto-generated catch block System.out.println("File not read: "+file.getName()); } } //***********************************************************************************************// ///////////////////// Media Files such as gif, jpeg, .wmv, .mpeg, .mp4 ///////////////////////////// //***********************************************************************************************// else if (file.getName().endsWith(".gif") && file.getName().endsWith(".jpeg") && file.getName().endsWith(".wmv") && file.getName().endsWith(".mpeg") && file.getName().endsWith(".mp4")){ lines.add(file.getName()); } //***********************************************************************************************// ///////////////////// raw text extensions ///////////////////////////// //***********************************************************************************************// else{ try { //System.out.println("File read: "+file.getName()); lines = Files.readLines(file, Charsets.UTF_8); } catch (IOException e) { // TODO Auto-generated catch block System.out.println("File not read: "+file.getName()); }finally { try { fis.close(); } catch (IOException ioex) { //omitted. } } } //***********************************************************************************************// ///////////////////// Begin word extraction ///////////////////////////// //***********************************************************************************************// int temporaryCounter =0; for (int i=0;i<lines.size();i++){ CharArraySet noise=EnglishAnalyzer.getDefaultStopSet(); // We are using a standard tokenizer that eliminates the stop words. We can use Stemming tokenizer such Porter // A set of English noise keywords is used that will eliminates words such as "the, a, etc" Analyzer analyzer = new StandardAnalyzer(noise); List<String> token=Tokenizer.tokenizeString(analyzer, lines.get(i)); temporaryCounter = temporaryCounter + token.size(); for (int j=0;j<token.size();j++){ // Avoid counting occurrences of words in the same file if (!lookup2.get(file.getName()).contains(token.get(j))){ lookup2.put(file.getName(), token.get(j)); } // Avoid counting occurrences of words in the same file if (!lookup1.get(token.get(j)).contains(file.getName())){ lookup1.put(token.get(j),file.getName()); } } } } //System.out.println(lookup.toString()); return new TextExtractPar(lookup1, lookup2); } }
java
Leadfeeder, a Helsinki-based startup that helps B2B companies generate new leads from website analytics, has closed a €3.1 million in series A funding. Leading the round is Dutch growth capital firm Endeit Capital, with Finland’s Superhero Capital and Vendep Capital participating. The Finnish company says the new capital will be used to further develop its “AI-powered” lead automation tool, and to grow the Leadfeeder team with an eye on international expansion. I’m also told the Series A investment comes after a 12 month period that has seen the startup cross the €4M ARR mark and garner around 3,000 paying customers. “B2B companies try to generate sales leads through their website, but 98 percent of visitors never leave their contact information,” says Leadfeeder co-founder and CEO Pekka Koskinen, describing the problem the company has set out to solve. To remedy this, Leadfeeder uses Google Analytics data to reveal the names and behaviour of companies visiting a website. That data is then fed into a company’s existing CRM and email marketing tools, pointing the sales department in the direction of potential B2N customers that have already showed an interest in its services. Leadfeeder says it is fully GDPR compliant and does not capture any personally identifiable information. “Leadfeeder scores the leads based on their behaviour and combines the data with insights from their CRM and email marketing tool,” explains Koskinen. “The leads are enriched with company background and decision maker data and sent directly to the customer’s CRM. By receiving this kind of intent data into the CRM, salespeople are more informed about what’s happening on their website and can focus their sales efforts on most potential opportunities”. Koskinen tells me Leadfeeder’s typical customers are marketing and sales departments at small and mid-sized B2B companies, both in Europe and in the U.S. “Many customers are from [the] software or professional services industry,” he says. “In those industries the value of a sales lead is high and they are doing active outbound sales”. To that end, the startup generates revenue by charging customers a monthly subscription fee based on their website traffic. I’m told that pricing starts from $59 per month and customers typically pay around $110 per month.
english
Up until now, fwix has stuck to indexing and serving up hyperlocal news from neighborhood blogs and news sites. Its main competitor in that respect is Outside.in. But fwix is moving beyond local news to create a broader geo index via publisher widgets and its API. In addition to its existing local news API (which is already being tested by the New York Times Co. and the UPI), fwix is adding geo-tagged status updates (from Twitter, Foursquare, Gowalla, and Brightkite), geo-photos (from Flickr, yfrog, Smugmug, and Twitpic), local events (from Eventbrite, Eventful, Upcoming, and Zvents), nearby reviews and restaurants (from Yelp and Citysearch), concerts (Songkick), local crime and government data, weather, listings (Oodle, Trulia), and deals from local merchants (Groupon, Town Hog, and Living Social). A little map pops down you tell you where these places are. Publishers and sites can pick and choose whatever data they want and create widgets with a customized local feed they can place in a sidebar. These could include Tweets about about the publisher’s business, Flickr photos, check-ins, or Yelp reviews. Widget publishers can also opt to include ads in the widgets targeted to the same location and content on their sites and split the revenues with fwix. Affiliate links to group buying deals is another source of revenue. “What we are building is this massive geo index,’ says CEO Darian Shiraz. Developers can use the API to pull in localized status updates, photos, and more. Publishers can create their own widget from any of the given geo streams. Mobile apps can also use the data. Fwix is at first exposing all of this new data only through its widgets and APIs. Eventually, fwix will roll it out on its own site as well.
english
<gh_stars>0 import React, { Component } from "react"; import { connect } from "react-redux"; class Header extends Component { render() { return ( <div className="header"> <img className="header__img" src="http://via.placeholder.com/50x50" /> <div className="header__links"> {this.props.headerLinks.map((link, index) => { return ( <a className="header__link" key={index} onClick={() => console.log("trying to switch tab") } > {link.title} </a> ); })} </div> </div> ); } } function mapStateToProps(state) { const { headerLinks } = state.headerNavbar; return { headerLinks, }; } Header = connect(mapStateToProps)(Header); export default Header;
javascript
{"name":"Token 32jK","symbol":"32jKN","decimals":6,"address":"32jKNSDW8YGmNTvd4LsqoDmpUQW3VX94Lw71qPKx7CTb","chainId":103}
json
<filename>RandomForest.py<gh_stars>0 import DNAClassifier from pandas.core.frame import DataFrame from DataSplit import * # Las losowy. # Bierze zestaw danych i buduje n drzew ID3. # Przeprowadza klasyfikację przez wybranie odpowiedzi, którą zwróciło najwięcej drzew. class RandomForest(object): def __init__(self, size: int, data: DataFrame, class_label: str, split_ratio: float, attribute_choice_fn, test: bool = False): n = attribute_choice_fn(len([x for x in data.columns]) - 1) self.trees = [] self.stats = [] self.class_label = class_label for i in range(size): (train_data, test_data) = splitDataRandom(data, split_ratio, not test) train_data = chooseNAttributes(train_data, n, class_label) tree = DNAClassifier.build_ID3(train_data, class_label) self.trees.append(tree) if test: stat = DNAClassifier.testID3(tree, test_data, class_label) self.stats.append(stat) # Klasyfikuje podany zestaw atrybutów def classify(self, row): results = {} for tree in self.trees: result = DNAClassifier.classify(tree, row) if result in results: results[result] += 1 else: results[result] = 1 max = 0 max_result = None for key in results: value = results[key] if value > max: max = value max_result = key return max_result # Testuje las losowy za pomocą podanych danych # Zwraca celność lasu na podanych danych def test(self, test_data: DataFrame) -> float: test_rows = test_data.shape[0] test_success = 0 for i in range(test_rows): obj = test_data.iloc[i].drop(self.class_label) c = test_data.iloc[i].at[self.class_label] result = self.classify(obj) if result == c: test_success += 1 return test_success / test_rows
python
At least 100 members of the Takfiri Daesh terrorist group have fled from Syria’s southwestern province of Dara’a toward Jordan’s border areas after losing ground to advancing Syrian army troops, a monitor says. The so-called Syrian Observatory for Human Rights reported the development on Thursday, adding that the Daesh terrorists had escaped from the Yarmouk Base in in Dara’a toward the villages of Beit Ara and Koya, located in the vicinity of Jordan’s border. The report added that the terrorists were using local inhabitants of the rural areas as human shields against alleged airstrikes by the Syrian military. It further said that dozens of Daesh terrorists had already surrendered to Syrian government troops, and some 30 others had been executed by the terror outfit itself. The government has been making swift advances in the southern and southwestern regions of Syria. President Bashar al-Assad said earlier in the week that final victory over terrorism was close thanks to the sacrifices of the Syrian Armed Forces. The full liberation of both Dara’a and Quneitra by Syrian government forces would cut the much-reported collaboration between the illegal Zionist entity and the Takfiri terrorists operating in the two regions.
english
<filename>src/components/FFVII-Remake/Dialog/DialogButton.stories.js import DialogButton from "./DialogButton.svelte"; import DialogButtonDecorator from "./DialogButtonDecorator.svelte"; export default { component: DialogButton, decorators: [() => DialogButtonDecorator], title: "FFVII Remake/Dialog/DialogButton", } export const Default = () => ({ Component: DialogButton, props: { button: { label: "Yes", onClick: () => { } } } });
javascript
{ "Name": "Sig BRAVO4 4X30 Scope", "ShortName": "BRAVO4", "Description": "Designed by Sig, BRAVO4 4X30 optical scope sight features the uniquely large FOV, 43% wider than closest competitors. It also has an extra rail mount on top of it that allows installation of backup compact sight." }
json
31 January 2023, Bhutan: The planting of maize hybrid Wengkhar Hybrid Maize 1 (WHM-1) has helped farmers in the Mongar district of Bhutan double their maize yield. WHM-1 was developed in partnership with the International Maize and Wheat Improvement Center (CIMMYT) and became the first maize hybrid to be released in Bhutan to combat the negative effect of increasing temperature or extreme heat events on maize. The hybrid was designed with characteristics of heat and drought tolerance, as well as a resistance to stem and root lodging. It also had additional stay-green traits after cob maturity and produced a high yield. The success of the implementation in Bhutan is leading to an increased production of WHM-1, which will aim to meet national demand and work towards country’s self-sufficiency. Dechen Yangden is one of the smallholder beneficiaries in Tsakaling, a sub-district in Mongar in the east of the country, who have boosted their maize yield by planting WHM-1. “My attempt to grow WHM-1 has doubled my maize production compared to last season where I cultivated some other maize varieties (2. 5 metric tons (mt) in one hectare (ha)),” she said. Since its official release in 2020, the national maize program based at Agriculture Research & Development Center (ARDC) started producing hybrid seeds and maintaining parental lines. To test the success of the ARDC’s work, planting was carried out in the Tsakaling and Waichur hamlets in Mongar districts, covering an area of six acres. Maize farmers in Tsakaling shared that although the crop was affected by the insect fall armyworm during the early vegetative stage, the productivity of the crop was not affected, as it recovered at later stage. Meanwhile, ARDSC Khangma carried out yield monitoring during the harvest, where WHM-1 yielded 5. 8 mt ha-1, which is noticeable rise on the national average of 3. 7 mt ha-1. Following the conclusion of their harvest, farmers in the two localities shared their views on the newly released maize in order to review the effect of the implementation of WHM-1. Both sets of growers reported an improved performance from the use of WHM-1 and noted that, unlike other maize varieties, the hybrid has shorter and uniform plant height along with a higher resistance to lodging, which is an essential trait given the conditions it is grown in. Furthermore, the stay-green trait of the hybrid after maturity of cobs gave farmers an added advantage of green fodder, which can be used for feeding their cattle. In Waichur, the growers found that this hybrid had a tight husk and fully filled kernels. They shared similar views to growers in Tsakaling, reporting positive lodging resistance in the hybrid. Both communities expressed their interest in continuing to use WHM-1, given the availability and accessibility of the seeds. As a response, the National Maize Program at ARDC Wengkhar, is looking to deploy the newly released hybrid on a larger scale, which will ultimately contribute towards enhancing maize self-sufficiency in the country. WHM-1 was developed through partnership of the National Maize Program at Wengkhar and CIMMYT under the Heat Stress Tolerant Maize for Asia (HTMA) project for germplasm and technical assistance and the Commercial Agriculture and Resilient Livelihoods Enhancement Program (CARLEP-IFAD/MoAF) for on-farm research and intensification. Feasibility mapping for WHM-1 showed that its adaption stretches along the southern foothills and some parts of eastern district. The National Maize Program, sister research centers, and farmers are currently working on upscaling the seed production for intensification of national maize production to meet the domestic demands. (For Latest Agriculture News & Updates, follow Krishak Jagat on Google News)
english
- Sports CSK vs GT, IPL 2023 Final: MS Dhoni emotional after golden duck in the final, is it the end? OnePlus recently rolled out the OxygenOS 12 update that was based on Android 12 OS. The update was introduced for the OnePlus 9 and the OnePlus 9 Pro smartphones. However, bug issues and other faults have forced OnePlus to pull down the update. The continuous reports of bugs and other issues drove the decision, a report said. The popular Chinese brand released the OxygenOS 12 update to the first of the OnePlus 9 devices, which are the vanilla and the Pro models. But now, OnePlus is pulling down the update after users complained of bugs and other issues. A new report by Android Police explains that OnePlus is aware of the issues caused by the update and it would be suspending it for the time being. The bugs troubling the OnePlus 9 and OnePlus 9 Pro users include issues with calls, broken autofill, and so on. These issues were spotted after users updated their phones to OxygenOS 12. Some of the other issues include faulty animation, slower Wi-Fi speeds, and so on. Moreover, the new OxygenOS comes after an announcement from CEO Pete Lau. He mentioned a deeper integration with the parent company, Oppo. The new OxygenOS 12 update comes as a revised and revamped custom skin based on Oppo's ColorOS software. Several reports suggest the faulty and buggy issues on the new OxygenOS 12 are arriving after the deeper integration with ColorOS. For instance, users have also reported disruptive transitions between apps and so on. OxygenOS 12 Update: When Will New Version Arrive? Further, the report says the OnePlus software team is working on a fix for the issue. But until then, the OxygenOS 12 update based on Android 12 would be suspended. A new and revised version of the update would be rolled out once the issue is fixed. To note, OnePlus had conducted multiple beta testing for the new OxygenOS 12. However, it's surprising to see a buggy released despite numerous trials. That said, it remains unclear when OnePlus will release the stable version of the OS. Until then, one can try a factory reset to fix the issue after backing up your data.
english
import React, { ReactElement } from 'react'; import { push, link, RouterLocation } from './Router'; interface Props extends RouterLocation { children: ReactElement | string; } export default function Link({ name, path, args, context, children, ...props }: Props) { const location = { name, path, args, context, }; return ( <a {...props} href={link(location)} onClick={function onClick(e: React.MouseEvent) { e.preventDefault(); push(location); }} > {children} </a> ); }
typescript
Indian men’s hockey team forward Yuvraj Walmiki may have been cold-shouldered by the Indian hockey selectors given the umpteen occasions when he has been recalled and dropped from the national side. The 25-year-old, who last played for India in the Hockey World League Semifinal Round in Belgium and even score in one game alongside his younger brother Devinder, has something to gloat about on the professional front. The nippy forward, who is employed with Indian Railways, has inked a lucrative contract to feature in the popular reality show Khatron Ke Khiladi which will be aired on Colors channel early next year. Undoubtedly, the Mumbai lad is excited about his latest assignment. “Till now we used to see cricketers appear in reality shows and I think it is the first time that an Indian hockey player is getting a chance to appear in a reality show, and since the show is Khatron Ke Khiladi it doesn’t get any bigger than this. Hockey players are more known by sports journalists and officials and not by people not connected with hockey, but through this show I’m sure a lot of people from outside hockey space will know about me,” gushes Yuvraj in an informal chat. The out-of-favour Indian striker is excited about the fact that the new show has a new host in Arjun Kapoor, who replaces Rohit Shetty, who took charge in the last show held in South Africa. “Of course, Arjun Kapoor is the new host for the show and this time the show will be shot in Argentina. I’m a big fan of Arjun Kapoor and it was really great to interact with him during the show unveiling function in Mumbai recently,” he says. Yuvraj will competing in the rugged reality show alongside popular anchor Jay Bhanushali, his wife Mahhi Vij, actors Sidharth Shukla, Tanishaa Mukerji, Sana Saeed, Himmanshoo Malhotra, Aishwarya Sakhuja, Tina Dutta, Vivan Bhatena , Jhalak Dikhhla Jaa Reloaded winner Faisal Khan and dancing stalwarts Mukti Mohan and Raghav Juyal . “Rubbing shoulders with thirteen celebrity contestants will be fun no doubt. I have already become good friends with Tina Dutta, Jay Bhanushali and his wife Mahhi Vij. I’m sure I will befriend more contestants once we land in Argentina for the show,” Yuvraj quips. So for now, hockey will take a backseat for Yuvraj at least until the 2016 Hero Hockey India League to be held early next year. “I’m not in the national team now and it makes sense to do something that keeps me excited. I hope to use this time nicely and later get ready for the 2016 HIL and hopefully make it to the team for the 2016 Rio Olympics,” he signs off. The shooting for the show is expected to begin in early November.
english
{"nom":"Treize-Septiers","circ":"4ème circonscription","dpt":"Vendée","inscrits":2316,"abs":1313,"votants":1003,"blancs":46,"nuls":23,"exp":934,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":525},{"nuance":"UDI","nom":"<NAME>","voix":409}]}
json
{"phaser-arcade-physics.js":"sha256-yD7uM33DKVUYfSGHf2tAGvugwL+MHQmtu52Ljvlc3PY=","phaser-arcade-physics.min.js":"<KEY>,"phaser-facebook-instant-games.js":"<KEY>,"phaser-facebook-instant-games.min.js":"sha256-iGCVBbb4JZsjFrIiNDJ5G4JYS3IYNPjUyyyH7Ry6g44=","phaser.js":"sha256-u5LlxJJI/DN4z1KLZbhUnP/qIks8J3iK54kukQ4i3uM=","phaser.min.js":"sha2<KEY>}
json
{"website":"www.samariteranstalten.de","school_type":"Schule mit dem sonderpäd. Förderschwerpunkt geistige Entwicklung","fax":"03562 9599027","name":"Wichernschule Schule mit dem sonderpädagogischen Förderschwerpunkt \"geistige Entwicklung\"","address":"Wiesenstraße 18 03149 Forst (Lausitz)","id":"BB-401420","director":"<NAME>","phone":"03562 8258","provider":"Handelsgesellschaft o. Verein (sonst. ev. Einr.)","email":"h.heinemann|at|samariteranstalten.de\n","state":"BB","full_time_school":false,"programs":{"programs":[]},"lon":14.633029,"lat":51.736292}
json
{ "description": "runtime: remove unused goc2c.c\n Its functionality has been moved into cmd/dist.", "cc": [ "<EMAIL>", "<EMAIL>", "<EMAIL>" ], "reviewers": [], "messages": [ { "sender": "<EMAIL>", "recipients": [ "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>" ], "text": "I'm not sure certain is unused everywhere (gccgo for instance) but believe it is. Leaving for rsc and iant.", "disapproval": false, "date": "2012-03-19 20:53:02.469137", "approval": false }, { "sender": "<EMAIL>", "recipients": [ "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>" ], "text": "Hello <EMAIL> (cc: <EMAIL>),\n\nI'd like you to review this change to\nhttps://code.google.com/p/go/", "disapproval": false, "date": "2012-03-18 20:25:00.838329", "approval": false }, { "sender": "<EMAIL>", "recipients": [ "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>" ], "text": "LGTM", "disapproval": false, "date": "2012-03-19 22:10:20.341890", "approval": true }, { "sender": "<EMAIL>", "recipients": [ "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>" ], "text": "*** Submitted as http://code.google.com/p/go/source/detail?r=641b20b35565 ***\n\nruntime: remove unused goc2c.c\n Its functionality has been moved into cmd/dist.\n\nR=golang-dev, r, iant\nCC=golang-dev\nhttp://codereview.appspot.com/5843062", "disapproval": false, "date": "2012-03-20 16:49:55.068177", "approval": false } ], "owner_email": "<EMAIL>", "private": false, "base_url": "", "owner": "minux", "subject": "code review 5843062: runtime: remove unused goc2c.c", "created": "2012-03-18 20:22:17.637227", "patchsets": [ 1, 2001, 4002 ], "modified": "2012-03-20 16:49:58.409311", "closed": true, "issue": 5843062 }
json
An Indian Air Force IAF helicopter carrying 14 army personnel, including the chief of defence staff Bipin Rawat, crashed near Coonoor in the nearby hilly Nilgiris district in Tamil Nadu. This incident took place today. Bipin Rawat was among 14 passengers on board, including his wife. The chopper took off from Air Force station in Sulur, Coimbatore and it was headed to Wellington Defence Services Staff college where CDS was due to deliver a lecture. As per the police report, the chopper was on its way from Sulur IAF base to the Defence Services College at Wellington when it crashed. Tamil Nadu forest minister K Ramachandran visited the spot, and said seven bodies were recovered from the crash site. 3 people on board were seriously injured and they have been taken to a hospital. Thirteen people have been confirmed dead in the incident. There is no information on the condition of General Rawat. The sources say that Bipin Rawat and his wife including defense assistant, security commandos and IAF pilot were on board the Mi-series chopper when it crashed between Coimbatore and Sulur in TN. The Indian Air Force confirmed the incident on Twitter. PM Narendra Modi and Rajnath Singh have been briefed on the incident.
english
package com.study.guildOfNothing.service.onlyInterface; import com.study.guildOfNothing.model.Character; import java.util.List; public interface CharacterService { List<Character> getCharacters(List<Character> characters); }
java
<reponame>ingratexr/unity-ar-boilerplate<gh_stars>1-10 var hierarchy = [ [ "MonoBehaviour", null, [ [ "ARPinchZoom", "class_a_r_pinch_zoom.html", null ], [ "ARPlacementMgr", "class_a_r_placement_mgr.html", null ], [ "ARPlacementUI", "class_a_r_placement_u_i.html", null ], [ "ARRotateGesture", "class_a_r_rotate_gesture.html", null ], [ "AboutMenu", "class_about_menu.html", null ], [ "AdMgr", "class_ad_mgr.html", null ], [ "CamRaycastInput", "class_cam_raycast_input.html", null ], [ "CanvasAspect", "class_canvas_aspect.html", null ], [ "CopyCamera", "class_copy_camera.html", null ], [ "ForceUpdate", "class_force_update.html", null ], [ "MainParent", "class_main_parent.html", null ], [ "MainUI", "class_main_u_i.html", null ] ] ] ];
javascript
<filename>src/lib.rs<gh_stars>1-10 #![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/README.md"))] use std::{ fmt::{self, Display, Formatter}, fs::File, io::{Read, Result}, path::Path, str, }; /// Generates [`FileFormat`] enum. macro_rules! file_formats { { $( - variant: $variant:ident name: $name:literal media_type: $media_type:literal extension: $extension:literal )* } => { /// A file format. #[derive(Clone, Debug, PartialEq)] pub enum FileFormat { $( #[doc=concat!($name, " (", $extension, ")")] $variant, )* } impl FileFormat { /// Returns the name of the `FileFormat`. /// /// # Examples /// /// ```rust /// use file_format::FileFormat; /// /// let format = FileFormat::MpegAudioLayer3; /// assert_eq!(format.name(), "MPEG-1/2 Audio Layer III"); ///``` pub fn name(&self) -> &str { match self { $( FileFormat::$variant => $name, )* } } /// Returns the media type (formerly known as MIME type) of the `FileFormat`. /// /// # Examples /// /// ```rust /// use file_format::FileFormat; /// /// let format = FileFormat::Zstandard; /// assert_eq!(format.media_type(), "application/zstd"); ///``` pub fn media_type(&self) -> &str { match self { $( FileFormat::$variant => $media_type, )* } } /// Returns the extension of the `FileFormat`. /// /// # Examples /// /// ```rust /// use file_format::FileFormat; /// /// let format = FileFormat::WindowsMediaVideo; /// assert_eq!(format.extension(), "wmv"); ///``` pub fn extension(&self) -> &str { match self { $( FileFormat::$variant => $extension, )* } } } }; } /// Generates [`FileFormat::from_signature`] function. macro_rules! signatures { { $( - file_format: $file_format:ident signatures: $( - parts: $( - offset: $offset:literal value: $signature:literal )+ )+ )* } => { impl FileFormat { /// Determines `FileFormat` by checking its signature. fn from_signature(bytes: &[u8]) -> Option<FileFormat> { $( if $( $( bytes.len() >= $offset + $signature.len() && &bytes[$offset..$offset + $signature.len()] == $signature )&&* )||* { return Some(FileFormat::$file_format); } )* None } } }; } file_formats! { - variant: AdaptiveMultiRate name: "Adaptive Multi-Rate" media_type: "audio/amr" extension: "amr" - variant: AdobeFlashPlayerAudio name: "Adobe Flash Player Audio" media_type: "audio/mp4" extension: "f4a" - variant: AdobeFlashPlayerAudiobook name: "Adobe Flash Player Audiobook" media_type: "audio/mp4" extension: "f4b" - variant: AdobeFlashPlayerProtectedVideo name: "Adobe Flash Player Protected Video" media_type: "video/mp4" extension: "f4p" - variant: AdobeFlashPlayerVideo name: "Adobe Flash Player Video" media_type: "video/mp4" extension: "f4v" - variant: AdobeInDesignDocument name: "Adobe InDesign Document" media_type: "application/x-indesign" extension: "indd" - variant: AdobePhotoshopDocument name: "Adobe Photoshop Document" media_type: "image/vnd.adobe.photoshop" extension: "psd" - variant: AdvancedAudioCoding name: "Advanced Audio Coding" media_type: "audio/aac" extension: "aac" - variant: Alz name: "ALZ" media_type: "application/x-alz-compressed" extension: "alz" - variant: Ani name: "ANI" media_type: "application/x-navi-animation" extension: "ani" - variant: AnimatedPortableNetworkGraphics name: "Animated Portable Network Graphics" media_type: "image/apng" extension: "apng" - variant: ApacheArrowColumnar name: "Apache Arrow Columnar" media_type: "application/x-apache-arrow" extension: "arrow" - variant: AppleDiskImage name: "Apple Disk Image" media_type: "application/x-apple-diskimage" extension: "dmg" - variant: AppleIconImage name: "Apple Icon Image" media_type: "image/x-icns" extension: "icns" - variant: AppleItunesAudio name: "Apple iTunes Audio" media_type: "audio/x-m4a" extension: "m4a" - variant: AppleItunesAudiobook name: "Apple iTunes Audiobook" media_type: "audio/mp4" extension: "m4b" - variant: AppleItunesProtectedAudio name: "Apple iTunes Protected Audio" media_type: "audio/mp4" extension: "m4p" - variant: AppleItunesVideo name: "Apple iTunes Video" media_type: "video/x-m4v" extension: "m4v" - variant: AppleQuickTime name: "Apple QuickTime" media_type: "video/quicktime" extension: "mov" - variant: ArbitraryBinaryData name: "Arbitrary Binary Data" media_type: "application/octet-stream" extension: "bin" - variant: ArchivedByRobertJung name: "Archived by <NAME>" media_type: "application/x-arj" extension: "arj" - variant: Au name: "Au" media_type: "audio/basic" extension: "au" - variant: AudioCodec3 name: "Audio Codec 3" media_type: "audio/vnd.dolby.dd-raw" extension: "ac3" - variant: AudioInterchangeFileFormat name: "Audio Interchange File Format" media_type: "audio/aiff" extension: "aiff" - variant: AudioVideoInterleave name: "Audio Video Interleave" media_type: "video/avi" extension: "avi" - variant: Av1ImageFileFormat name: "AV1 Image File Format" media_type: "image/avif" extension: "avif" - variant: Av1ImageFileFormatSequence name: "AV1 Image File Format Sequence" media_type: "image/avif-sequence" extension: "avifs" - variant: BetterPortableGraphics name: "Better Portable Graphics" media_type: "image/bpg" extension: "bpg" - variant: Blender name: "Blender" media_type: "application/x-blender" extension: "blend" - variant: Bzip2 name: "bzip2" media_type: "application/x-bzip2" extension: "bz2" - variant: Cabinet name: "Cabinet" media_type: "application/vnd.ms-cab-compressed" extension: "cab" - variant: CanonRaw2 name: "Canon Raw 2" media_type: "image/x-canon-cr2" extension: "cr2" - variant: CanonRaw3 name: "Canon Raw 3" media_type: "image/x-canon-cr3" extension: "cr3" - variant: Cineon name: "Cineon" media_type: "image/cineon" extension: "cin" - variant: CompoundFileBinary name: "Compound File Binary" media_type: "application/x-cfb" extension: "cfb" - variant: Cpio name: "cpio" media_type: "application/x-cpio" extension: "cpio" - variant: Cur name: "CUR" media_type: "image/x-icon" extension: "cur" - variant: DalvikExecutable name: "Dalvik Executable" media_type: "application/vnd.android.dex" extension: "dex" - variant: DebianBinaryPackage name: "Debian Binary Package" media_type: "application/vnd.debian.binary-package" extension: "deb" - variant: DigitalImagingAndCommunicationsInMedicine name: "Digital Imaging and Communications in Medicine" media_type: "application/dicom" extension: "dcm" - variant: DigitalPictureExchange name: "Digital Picture Exchange" media_type: "image/x-dpx" extension: "dpx" - variant: EmbeddedOpenType name: "Embedded OpenType" media_type: "application/vnd.ms-fontobject" extension: "eot" - variant: ExecutableAndLinkableFormat name: "Executable and Linkable Format" media_type: "application/x-executable" extension: "elf" - variant: ExperimentalComputingFacility name: "Experimental Computing Facility" media_type: "image/x-xcf" extension: "xcf" - variant: ExtensibleArchive name: "Extensible Archive" media_type: "application/x-xar" extension: "xar" - variant: FastTracker2ExtendedModule name: "FastTracker 2 Extended Module" media_type: "audio/x-xm" extension: "xm" - variant: FlashVideo name: "Flash Video" media_type: "video/x-flv" extension: "flv" - variant: FlexibleImageTransportSystem name: "Flexible Image Transport System" media_type: "image/fits" extension: "fits" - variant: FreeLosslessAudioCodec name: "Free Lossless Audio Codec" media_type: "audio/x-flac" extension: "flac" - variant: FreeLosslessImageFormat name: "Free Lossless Image Format" media_type: "image/flif" extension: "flif" - variant: FujifilmRaw name: "Fujifilm Raw" media_type: "image/x-fuji-raf" extension: "raf" - variant: GameBoyAdvanceRom name: "Game Boy Advance ROM" media_type: "application/x-gba-rom" extension: "gba" - variant: GameBoyColorRom name: "Game Boy Color ROM" media_type: "application/x-gameboy-color-rom" extension: "gbc" - variant: GameBoyRom name: "Game Boy ROM" media_type: "application/x-gameboy-rom" extension: "gb" - variant: GlTransmissionFormatBinary name: "GL Transmission Format Binary" media_type: "model/gltf-binary" extension: "glb" - variant: GoogleChromeExtension name: "Google Chrome Extension" media_type: "application/x-google-chrome-extension" extension: "crx" - variant: GraphicsInterchangeFormat name: "Graphics Interchange Format" media_type: "image/gif" extension: "gif" - variant: Gzip name: "gzip" media_type: "application/gzip" extension: "gz" - variant: HighEfficiencyImageCoding name: "High Efficiency Image Coding" media_type: "image/heic" extension: "heic" - variant: HighEfficiencyImageCodingSequence name: "High Efficiency Image Coding Sequence" media_type: "image/heic-sequence" extension: "heics" - variant: HighEfficiencyImageFileFormat name: "High Efficiency Image File Format" media_type: "image/heif" extension: "heif" - variant: HighEfficiencyImageFileFormatSequence name: "High Efficiency Image File Format Sequence" media_type: "image/heif-sequence" extension: "heifs" - variant: Ico name: "ICO" media_type: "image/x-icon" extension: "ico" - variant: ImpulseTrackerModule name: "Impulse Tracker Module" media_type: "audio/x-it" extension: "it" - variant: Iso9660 name: "ISO 9660" media_type: "application/x-iso9660-image" extension: "iso" - variant: JavaClass name: "Java Class" media_type: "application/java-vm" extension: "class" - variant: JavaKeyStore name: "Java KeyStore" media_type: "application/x-java-keystore" extension: "jks" - variant: JointPhotographicExpertsGroup name: "Joint Photographic Experts Group" media_type: "image/jpeg" extension: "jpg" - variant: Jpeg2000Part1 name: "JPEG 2000 Part 1" media_type: "image/jp2" extension: "jp2" - variant: Jpeg2000Part2 name: "JPEG 2000 Part 1" media_type: "image/jpx" extension: "jpx" - variant: Jpeg2000Part3 name: "JPEG 2000 Part 3" media_type: "image/mj2" extension: "mj2" - variant: Jpeg2000Part6 name: "JPEG 2000 Part 6" media_type: "image/jpm" extension: "jpm" - variant: JpegExtendedRange name: "JPEG Extended Range" media_type: "image/jxr" extension: "jxr" - variant: JpegXl name: "JPEG XL" media_type: "image/jxl" extension: "jxl" - variant: KhronosTexture name: "Khronos Texture" media_type: "image/ktx" extension: "ktx" - variant: KhronosTexture2 name: "Khronos Texture 2" media_type: "image/ktx2" extension: "ktx2" - variant: LempelZivFiniteStateEntropy name: "Lempel–Ziv Finite State Entropy" media_type: "application/x-lzfse" extension: "lzfse" - variant: Lha name: "LHA" media_type: "application/x-lzh-compressed" extension: "lzh" - variant: LongRangeZip name: "Long Range ZIP" media_type: "application/x-lrzip" extension: "lrz" - variant: Lz4 name: "LZ4" media_type: "application/x-lz4" extension: "lz4" - variant: Lzip name: "lzip" media_type: "application/x-lzip" extension: "lz" - variant: Lzop name: "lzop" media_type: "application/x-lzop" extension: "lzo" - variant: MacOsAlias name: "macOS Alias" media_type: "application/x-apple-alias" extension: "alias" - variant: MaterialExchangeFormat name: "Material Exchange Format" media_type: "application/mxf" extension: "mxf" - variant: MatroskaVideo name: "Matroska Video" media_type: "video/x-matroska" extension: "mkv" - variant: MicrosoftCompiledHtmlHelp name: "Microsoft Compiled HTML Help" media_type: "application/vnd.ms-htmlhelp" extension: "chm" - variant: MicrosoftDirectDrawSurface name: "Microsoft DirectDraw Surface" media_type: "image/vnd-ms.dds" extension: "dds" - variant: MicrosoftVirtualHardDisk name: "Microsoft Virtual Hard Disk" media_type: "application/x-vhd" extension: "vhd" - variant: MicrosoftVirtualHardDisk2 name: "Microsoft Virtual Hard Disk 2" media_type: "application/x-vhdx" extension: "vhdx" - variant: Mobipocket name: "Mobipocket" media_type: "application/x-mobipocket-ebook" extension: "mobi" - variant: MonkeysAudio name: "Monkey's Audio" media_type: "audio/x-ape" extension: "ape" - variant: Mpeg1Video name: "MPEG-1 Video" media_type: "video/mpeg" extension: "mpg" - variant: Mpeg4Part14Video name: "MPEG-4 Part 14 Video" media_type: "video/mp4" extension: "mp4" - variant: MpegAudioLayer3 name: "MPEG-1/2 Audio Layer III" media_type: "audio/mpeg" extension: "mp3" - variant: Musepack name: "Musepack" media_type: "audio/x-musepack" extension: "mpc" - variant: MusicalInstrumentDigitalInterface name: "Musical Instrument Digital Interface" media_type: "audio/midi" extension: "mid" - variant: NikonElectronicFile name: "Nikon Electronic File" media_type: "image/x-nikon-nef" extension: "nef" - variant: Nintendo64Rom name: "Nintendo 64 ROM" media_type: "application/x-n64-rom" extension: "z64" - variant: NintendoDsRom name: "Nintendo DS ROM" media_type: "application/x-nintendo-ds-rom" extension: "nds" - variant: NintendoEntertainmentSystemRom name: "Nintendo Entertainment System ROM" media_type: "application/x-nintendo-nes-rom" extension: "nes" - variant: OggFlac name: "Ogg FLAC" media_type: "audio/ogg" extension: "oga" - variant: OggMedia name: "Ogg Media" media_type: "video/ogg" extension: "ogm" - variant: OggMultiplexedMedia name: "Ogg Multiplexed Media" media_type: "application/ogg" extension: "ogx" - variant: OggOpus name: "Ogg Opus" media_type: "audio/opus" extension: "opus" - variant: OggSpeex name: "Ogg Speex" media_type: "audio/ogg" extension: "spx" - variant: OggTheora name: "Ogg Theora" media_type: "video/ogg" extension: "ogv" - variant: OggVorbis name: "Ogg Vorbis" media_type: "audio/ogg" extension: "ogg" - variant: OlympusRawFormat name: "Olympus Raw Format" media_type: "image/x-olympus-orf" extension: "orf" - variant: OpenExr name: "OpenEXR" media_type: "image/x-exr" extension: "exr" - variant: OpenType name: "OpenType" media_type: "font/otf" extension: "otf" - variant: PanasonicRaw name: "Panasonic Raw" media_type: "image/x-panasonic-rw2" extension: "rw2" - variant: PcapDump name: "PCAP Dump" media_type: "application/vnd.tcpdump.pcap" extension: "pcap" - variant: PcapNextGenerationDump name: "PCAP Next Generation Dump" media_type: "application/x-pcapng" extension: "pcapng" - variant: PortableDocumentFormat name: "Portable Document Format" media_type: "application/pdf" extension: "pdf" - variant: PortableNetworkGraphics name: "Portable Network Graphics" media_type: "image/png" extension: "png" - variant: QualcommPureVoice name: "Qualcomm PureVoice" media_type: "audio/qcelp" extension: "qcp" - variant: RadianceHdr name: "Radiance HDR" media_type: "image/vnd.radiance" extension: "hdr" - variant: RedHatPackageManager name: "Red Hat Package Manager" media_type: "application/x-rpm" extension: "rpm" - variant: RoshalArchive name: "Roshal Archive" media_type: "application/vnd.rar" extension: "rar" - variant: ScreamTracker3Module name: "ScreamTracker 3 Module" media_type: "audio/x-s3m" extension: "s3m" - variant: SeqBox name: "SeqBox" media_type: "application/x-sbx" extension: "sbx" - variant: SevenZip name: "7-Zip" media_type: "application/x-7z-compressed" extension: "7z" - variant: Shapefile name: "Shapefile" media_type: "application/x-esri-shape" extension: "shp" - variant: SketchUp name: "SketchUp" media_type: "application/vnd.sketchup.skp" extension: "skp" - variant: SmallWebFormat name: "Small Web Format" media_type: "application/x-shockwave-flash" extension: "swf" - variant: Snappy name: "Snappy" media_type: "application/x-snappy-framed" extension: "sz" - variant: SonyDsdStreamFile name: "Sony DSD Stream File" media_type: "audio/x-dsf" extension: "dsf" - variant: Sqlite3 name: "SQLite 3" media_type: "application/vnd.sqlite3" extension: "sqlite" - variant: TagImageFileFormat name: "Tag Image File Format" media_type: "image/tiff" extension: "tiff" - variant: TapeArchive name: "Tape Archive" media_type: "application/x-tar" extension: "tar" - variant: ThirdGenerationPartnershipProject name: "3rd Generation Partnership Project" media_type: "video/3gpp" extension: "3gp" - variant: ThirdGenerationPartnershipProject2 name: "3rd Generation Partnership Project 2" media_type: "video/3gpp2" extension: "3g2" - variant: TrueType name: "TrueType" media_type: "font/ttf" extension: "ttf" - variant: UnixArchiver name: "UNIX archiver" media_type: "application/x-archive" extension: "ar" - variant: UnixCompress name: "UNIX compress" media_type: "application/x-compress" extension: "Z" - variant: VirtualBoxVirtualDiskImage name: "VirtualBox Virtual Disk Image" media_type: "application/x-virtualbox-vdi" extension: "vdi" - variant: WavPack name: "WavPack" media_type: "audio/wavpack" extension: "wv" - variant: WaveformAudio name: "Waveform Audio" media_type: "audio/vnd.wave" extension: "wav" - variant: WebAssemblyBinary name: "WebAssembly Binary" media_type: "application/wasm" extension: "wasm" - variant: WebOpenFontFormat name: "Web Open Font Format" media_type: "font/woff" extension: "woff" - variant: WebOpenFontFormat2 name: "Web Open Font Format 2" media_type: "font/woff2" extension: "woff2" - variant: WebP name: "WebP" media_type: "image/webp" extension: "webp" - variant: WindowsBitmap name: "Windows Bitmap" media_type: "image/bmp" extension: "bmp" - variant: WindowsExecutable name: "Windows Executable" media_type: "application/x-msdownload" extension: "exe" - variant: WindowsMediaVideo name: "Windows Media Video" media_type: "video/x-ms-asf" extension: "wmv" - variant: WindowsMetafile name: "Windows Metafile" media_type: "image/wmf" extension: "wmf" - variant: WindowsShortcut name: "Windows Shortcut" media_type: "application/x-ms-shortcut" extension: "lnk" - variant: Xz name: "XZ" media_type: "application/x-xz" extension: "xz" - variant: Zip name: "ZIP" media_type: "application/zip" extension: "zip" - variant: Zoo name: "zoo" media_type: "application/x-zoo" extension: "zoo" - variant: Zstandard name: "Zstandard" media_type: "application/zstd" extension: "zst" } signatures! { // 39-byte signatures - file_format: VirtualBoxVirtualDiskImage signatures: - parts: - offset: 0 value: b"<<< Oracle VM VirtualBox Disk Image >>>" // 32-byte signatures - file_format: SketchUp signatures: - parts: - offset: 0 value: b"\xFF\xFE\xFF\x0E\x53\x00\x6B\x00\x65\x00\x74\x00\x63\x00\x68\x00" - offset: 16 value: b"\x55\x00\x70\x00\x20\x00\x4D\x00\x6F\x00\x64\x00\x65\x00\x6C\x00" // 29-byte signatures - file_format: FlexibleImageTransportSystem signatures: - parts: - offset: 0 value: b"\x49\x4D\x50\x4C\x45\x20\x20\x3D\x20\x20\x20\x20\x20\x20\x20" - offset: 15 value: b"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x54" // 21-byte signatures - file_format: DebianBinaryPackage signatures: - parts: - offset: 0 value: b"!<arch>\ndebian-binary" // 20-byte signatures - file_format: WindowsShortcut signatures: - parts: - offset: 0 value: b"\x4C\x00\x00\x00\x01\x14\x02\x00\x00\x00\x00\x00\xC0\x00\x00\x00\x00\x00\x00\x46" // 16-byte signatures - file_format: AdobeInDesignDocument signatures: - parts: - offset: 0 value: b"\x06\x06\xED\xF5\xD8\x1D\x46\xE5\xBD\x31\xEF\xE7\xFE\x74\xB7\x1D" - file_format: FastTracker2ExtendedModule signatures: - parts: - offset: 0 value: b"Extended Module:" - file_format: MacOsAlias signatures: - parts: - offset: 0 value: b"\x62\x6F\x6F\x6B\x00\x00\x00\x00\x6D\x61\x72\x6B\x00\x00\x00\x00" - file_format: Sqlite3 signatures: - parts: - offset: 0 value: b"\x53\x51\x4C\x69\x74\x65\x20\x66\x6F\x72\x6D\x61\x74\x20\x33\x00" - file_format: WindowsMediaVideo signatures: - parts: - offset: 0 value: b"\x30\x26\xB2\x75\x8E\x66\xCF\x11\xA6\xD9\x00\xAA\x00\x62\xCE\x6C" // 15-byte signatures - file_format: FujifilmRaw signatures: - parts: - offset: 0 value: b"FUJIFILMCCD-RAW" // 14-byte signatures - file_format: MaterialExchangeFormat signatures: - parts: - offset: 0 value: b"\x06\x0E\x2B\x34\x02\x05\x01\x01\x0D\x01\x02\x01\x01\x02" // 12-byte signatures - file_format: AnimatedPortableNetworkGraphics signatures: - parts: - offset: 0 value: b"\x89\x50\x4E\x47\x0D\x0A\x1A\x0A" - offset: 0x25 value: b"acTL" - file_format: JointPhotographicExpertsGroup signatures: - parts: - offset: 0 value: b"\xFF\xD8\xFF\xE0\x00\x10\x4A\x46\x49\x46\x00\x01" - parts: - offset: 0 value: b"\xFF\xD8\xFF\xE1" - offset: 6 value: b"\x45\x78\x69\x66\x00\x00" - parts: - offset: 0 value: b"\xFF\xD8\xFF\xDB" - parts: - offset: 0 value: b"\xFF\xD8\xFF\xEE" - file_format: JpegXl signatures: - parts: - offset: 0 value: b"\x00\x00\x00\x0C\x4A\x58\x4C\x20\x0D\x0A\x87\x0A" - parts: - offset: 0 value: b"\xFF\x0A" - file_format: KhronosTexture signatures: - parts: - offset: 0 value: b"\xAB\x4B\x54\x58\x20\x31\x31\xBB\x0D\x0A\x1A\x0A" - file_format: KhronosTexture2 signatures: - parts: - offset: 0 value: b"\xAB\x4B\x54\x58\x20\x32\x30\xBB\x0D\x0A\x1A\x0A" - file_format: MatroskaVideo signatures: - parts: - offset: 0 value: b"\x1A\x45\xDF\xA3" - offset: 24 value: b"matroska" - file_format: OggOpus signatures: - parts: - offset: 0 value: b"OggS" - offset: 28 value: b"OpusHead" - file_format: PanasonicRaw signatures: - parts: - offset: 0 value: b"\x49\x49\x55\x00\x18\x00\x00\x00\x88\xE7\x74\xD8" // 11-byte signatures - file_format: OggSpeex signatures: - parts: - offset: 0 value: b"OggS" - offset: 28 value: b"Speex " - file_format: OggTheora signatures: - parts: - offset: 0 value: b"OggS" - offset: 28 value: b"\x80\x74\x68\x65\x6F\x72\x61" - file_format: OggVorbis signatures: - parts: - offset: 0 value: b"OggS" - offset: 28 value: b"\x01\x76\x6F\x72\x62\x69\x73" - file_format: RadianceHdr signatures: - parts: - offset: 0 value: b"\x23\x3F\x52\x41\x44\x49\x41\x4E\x43\x45\x0A" // 10-byte signatures - file_format: AppleQuickTime signatures: - parts: - offset: 0 value: b"\x00\x00\x00\x14" - offset: 4 value: b"ftypqt" - parts: - offset: 4 value: b"\x66\x72\x65\x65" - parts: - offset: 4 value: b"\x6D\x64\x61\x74" - parts: - offset: 4 value: b"\x6D\x6F\x6F\x76" - parts: - offset: 4 value: b"\x77\x69\x64\x65" - file_format: OggMedia signatures: - parts: - offset: 0 value: b"OggS" - offset: 28 value: b"\x01\x76\x69\x64\x65\x6F" - file_format: Snappy signatures: - parts: - offset: 0 value: b"\xFF\x06\x00\x00\x73\x4E\x61\x50\x70\x59" // 9-byte signatures - file_format: GameBoyColorRom signatures: - parts: - offset: 0x104 value: b"\xCE\xED\x66\x66\xCC\x0D\x00\x0B" - offset: 0x143 value: b"\x80" - parts: - offset: 0x104 value: b"\xCE\xED\x66\x66\xCC\x0D\x00\x0B" - offset: 0x143 value: b"\xC0" - file_format: Lzop signatures: - parts: - offset: 0 value: b"\x89\x4C\x5A\x4F\x00\x0D\x0A\x1A\x0A" - file_format: MicrosoftVirtualHardDisk signatures: - parts: - offset: 0 value: b"connectix" - file_format: OggFlac signatures: - parts: - offset: 0 value: b"OggS" - offset: 28 value: b"\x7F\x46\x4C\x41\x43" - file_format: OlympusRawFormat signatures: - parts: - offset: 0 value: b"\x49\x49\x52\x4F\x08\x00\x00\x00\x18" // 8-byte signatures - file_format: Ani signatures: - parts: - offset: 0 value: b"RIFF" - offset: 8 value: b"ACON" - file_format: AudioInterchangeFileFormat signatures: - parts: - offset: 0 value: b"FORM" - offset: 8 value: b"AIFF" - parts: - offset: 0 value: b"FORM" - offset: 8 value: b"AIFC" - file_format: AudioVideoInterleave signatures: - parts: - offset: 0 value: b"RIFF" - offset: 8 value: b"\x41\x56\x49\x20" - file_format: Av1ImageFileFormat signatures: - parts: - offset: 4 value: b"ftypavif" - file_format: Av1ImageFileFormatSequence signatures: - parts: - offset: 4 value: b"ftypavis" - file_format: CompoundFileBinary signatures: - parts: - offset: 0 value: b"\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1" - file_format: DalvikExecutable signatures: - parts: - offset: 0 value: b"\x64\x65\x78\x0A\x30\x33\x35\x00" - file_format: ExperimentalComputingFacility signatures: - parts: - offset: 0 value: b"gimp xcf" - file_format: GameBoyAdvanceRom signatures: - parts: - offset: 4 value: b"\x24\xFF\xAE\x51\x69\x9A\xA2\x21" - file_format: GameBoyRom signatures: - parts: - offset: 0x104 value: b"\xCE\xED\x66\x66\xCC\x0D\x00\x0B" - file_format: HighEfficiencyImageCoding signatures: - parts: - offset: 4 value: b"ftypheic" - parts: - offset: 4 value: b"ftypheix" - file_format: HighEfficiencyImageCodingSequence signatures: - parts: - offset: 4 value: b"ftyphevc" - parts: - offset: 4 value: b"ftyphevx" - file_format: HighEfficiencyImageFileFormat signatures: - parts: - offset: 4 value: b"ftypmif1" - file_format: HighEfficiencyImageFileFormatSequence signatures: - parts: - offset: 4 value: b"ftypmsf1" - file_format: Jpeg2000Part1 signatures: - parts: - offset: 16 value: b"ftypjp2 " - file_format: Jpeg2000Part2 signatures: - parts: - offset: 16 value: b"ftypjpx " - file_format: Jpeg2000Part3 signatures: - parts: - offset: 16 value: b"ftypmjp2" - file_format: Jpeg2000Part6 signatures: - parts: - offset: 16 value: b"ftypjpm " - file_format: MicrosoftVirtualHardDisk2 signatures: - parts: - offset: 0 value: b"vhdxfile" - file_format: Mobipocket signatures: - parts: - offset: 60 value: b"BOOKMOBI" - file_format: Mpeg4Part14Video signatures: - parts: - offset: 4 value: b"ftypavc1" - parts: - offset: 4 value: b"ftypdash" - parts: - offset: 4 value: b"ftypiso2" - parts: - offset: 4 value: b"ftypiso3" - parts: - offset: 4 value: b"ftypiso4" - parts: - offset: 4 value: b"ftypiso5" - parts: - offset: 4 value: b"ftypiso6" - parts: - offset: 4 value: b"ftypisom" - parts: - offset: 4 value: b"ftypmmp4" - parts: - offset: 4 value: b"ftypmp41" - parts: - offset: 4 value: b"ftypmp42" - parts: - offset: 4 value: b"ftypmp4v" - parts: - offset: 4 value: b"ftypmp71" - parts: - offset: 4 value: b"ftypMSNV" - parts: - offset: 4 value: b"ftypNDAS" - parts: - offset: 4 value: b"ftypNDSC" - parts: - offset: 4 value: b"ftypNDSH" - parts: - offset: 4 value: b"ftypNDSM" - parts: - offset: 4 value: b"ftypNDSP" - parts: - offset: 4 value: b"ftypNDSS" - parts: - offset: 4 value: b"ftypNDXC" - parts: - offset: 4 value: b"ftypNDXH" - parts: - offset: 4 value: b"ftypNDXM" - parts: - offset: 4 value: b"ftypNDXP" - file_format: NikonElectronicFile signatures: - parts: - offset: 0 value: b"\x4D\x4D\x00\x2A" - offset: 8 value: b"\x1C\x00\xFE\x00" - parts: - offset: 0 value: b"\x4D\x4D\x00\x2A" - offset: 8 value: b"\x1F\x00\x0B\x00" - parts: - offset: 0 value: b"\x49\x49\x2A\x00" - offset: 8 value: b"\x1C\x00\xFE\x00" - parts: - offset: 0 value: b"\x49\x49\x2A\x00" - offset: 8 value: b"\x1F\x00\x0B\x00" - file_format: Nintendo64Rom signatures: - parts: - offset: 0 value: b"\x80\x37\x12\x40\x00\x00\x00\x0F" - parts: - offset: 0 value: b"\x37\x80\x40\x12\x00\x00\x0F\x00" - parts: - offset: 0 value: b"\x12\x40\x80\x37\x00\x0F\x00\x00" - parts: - offset: 0 value: b"\x40\x12\x37\x80\x0F\x00\x00\x00" - file_format: NintendoDsRom signatures: - parts: - offset: 0xC0 value: b"\x24\xFF\xAE\x51\x69\x9A\xA2\x21" - parts: - offset: 0xC0 value: b"\xC8\x60\x4F\xE2\x01\x70\x8F\xE2" - file_format: PortableNetworkGraphics signatures: - parts: - offset: 0 value: b"\x89\x50\x4E\x47\x0D\x0A\x1A\x0A" - file_format: QualcommPureVoice signatures: - parts: - offset: 0 value: b"RIFF" - offset: 8 value: b"QLCM" - file_format: RoshalArchive signatures: - parts: - offset: 0 value: b"\x52\x61\x72\x21\x1A\x07\x01\x00" - parts: - offset: 0 value: b"\x52\x61\x72\x21\x1A\x07\x00" - file_format: TapeArchive signatures: - parts: - offset: 257 value: b"\x75\x73\x74\x61\x72\x00\x30\x30" - parts: - offset: 257 value: b"\x75\x73\x74\x61\x72\x20\x20\x00" - file_format: WaveformAudio signatures: - parts: - offset: 0 value: b"RIFF" - offset: 8 value: b"WAVE" - file_format: WebP signatures: - parts: - offset: 0 value: b"RIFF" - offset: 8 value: b"WEBP" // 7-byte signatures - file_format: AdobeFlashPlayerAudio signatures: - parts: - offset: 4 value: b"ftypF4A" - file_format: AdobeFlashPlayerAudiobook signatures: - parts: - offset: 4 value: b"ftypF4B" - file_format: AdobeFlashPlayerProtectedVideo signatures: - parts: - offset: 4 value: b"ftypF4P" - file_format: AdobeFlashPlayerVideo signatures: - parts: - offset: 4 value: b"ftypF4V" - file_format: AppleItunesAudio signatures: - parts: - offset: 4 value: b"ftypM4A" - file_format: AppleItunesAudiobook signatures: - parts: - offset: 4 value: b"ftypM4B" - file_format: AppleItunesProtectedAudio signatures: - parts: - offset: 4 value: b"ftypM4P" - file_format: AppleItunesVideo signatures: - parts: - offset: 4 value: b"ftypM4V" - file_format: Blender signatures: - parts: - offset: 0 value: b"BLENDER" - file_format: CanonRaw3 signatures: - parts: - offset: 4 value: b"ftypcrx" - file_format: ThirdGenerationPartnershipProject signatures: - parts: - offset: 4 value: b"ftyp3gp" - file_format: ThirdGenerationPartnershipProject2 signatures: - parts: - offset: 4 value: b"ftyp3g2" - file_format: UnixArchiver signatures: - parts: - offset: 0 value: b"!<arch>" // 6-byte signatures - file_format: ApacheArrowColumnar signatures: - parts: - offset: 0 value: b"ARROW1" - file_format: CanonRaw2 signatures: - parts: - offset: 0 value: b"\x4D\x4D\x00\x2A" - offset: 8 value: b"CR" - parts: - offset: 0 value: b"\x49\x49\x2A\x00" - offset: 8 value: b"CR" - file_format: GraphicsInterchangeFormat signatures: - parts: - offset: 0 value: b"GIF87a" - parts: - offset: 0 value: b"GIF89a" - file_format: SevenZip signatures: - parts: - offset: 0 value: b"\x37\x7A\xBC\xAF\x27\x1C" - file_format: Xz signatures: - parts: - offset: 0 value: b"\xFD\x37\x7A\x58\x5A\x00" // 5-byte signatures - file_format: AdaptiveMultiRate signatures: - parts: - offset: 0 value: b"#!AMR" - file_format: EmbeddedOpenType signatures: - parts: - offset: 8 value: b"\x00\x00\x01" - offset: 34 value: b"\x4C\x50" - parts: - offset: 8 value: b"\x01\x00\x02" - offset: 34 value: b"\x4C\x50" - parts: - offset: 8 value: b"\x02\x00\x02" - offset: 34 value: b"\x4C\x50" - file_format: Iso9660 signatures: - parts: - offset: 0x8001 value: b"CD001" - parts: - offset: 0x8801 value: b"CD001" - parts: - offset: 0x9001 value: b"CD001" - file_format: Lha signatures: - parts: - offset: 2 value: b"-lh0-" - parts: - offset: 2 value: b"-lh1-" - parts: - offset: 2 value: b"-lh2-" - parts: - offset: 2 value: b"-lh3-" - parts: - offset: 2 value: b"-lh4-" - parts: - offset: 2 value: b"-lh5-" - parts: - offset: 2 value: b"-lh6-" - parts: - offset: 2 value: b"-lh7-" - parts: - offset: 2 value: b"-lzs-" - parts: - offset: 2 value: b"-lz4-" - parts: - offset: 2 value: b"-lz5-" - parts: - offset: 2 value: b"-lhd-" - file_format: OpenType signatures: - parts: - offset: 0 value: b"\x4F\x54\x54\x4F\x00" - file_format: PortableDocumentFormat signatures: - parts: - offset: 0 value: b"%PDF-" - file_format: TrueType signatures: - parts: - offset: 0 value: b"\x00\x01\x00\x00\x00" // 4-byte signatures - file_format: AdobePhotoshopDocument signatures: - parts: - offset: 0 value: b"8BPS" - file_format: Alz signatures: - parts: - offset: 0 value: b"\x41\x4C\x5A\x01" - file_format: AppleIconImage signatures: - parts: - offset: 0 value: b"icns" - file_format: Au signatures: - parts: - offset: 0 value: b".snd" - file_format: BetterPortableGraphics signatures: - parts: - offset: 0 value: b"\x42\x50\x47\xFB" - file_format: Cabinet signatures: - parts: - offset: 0 value: b"MSCF" - parts: - offset: 0 value: b"ISc(" - file_format: Cineon signatures: - parts: - offset: 0 value: b"\x80\x2A\x5F\xD7" - file_format: Cur signatures: - parts: - offset: 0 value: b"\x00\x00\x02\x00" - file_format: DigitalImagingAndCommunicationsInMedicine signatures: - parts: - offset: 128 value: b"\x44\x49\x43\x4D" - file_format: DigitalPictureExchange signatures: - parts: - offset: 0 value: b"SDPX" - parts: - offset: 0 value: b"XPDS" - file_format: ExecutableAndLinkableFormat signatures: - parts: - offset: 0 value: b"\x7F\x45\x4C\x46" - file_format: ExtensibleArchive signatures: - parts: - offset: 0 value: b"xar!" - file_format: FlashVideo signatures: - parts: - offset: 0 value: b"\x46\x4C\x56\x01" - file_format: FreeLosslessAudioCodec signatures: - parts: - offset: 0 value: b"fLaC" - file_format: FreeLosslessImageFormat signatures: - parts: - offset: 0 value: b"FLIF" - file_format: GlTransmissionFormatBinary signatures: - parts: - offset: 0 value: b"glTF" - file_format: GoogleChromeExtension signatures: - parts: - offset: 0 value: b"Cr24" - file_format: Ico signatures: - parts: - offset: 0 value: b"\x00\x00\x01\x00" - file_format: ImpulseTrackerModule signatures: - parts: - offset: 0 value: b"IMPM" - file_format: JavaClass signatures: - parts: - offset: 0 value: b"\xCA\xFE\xBA\xBE" - file_format: JavaKeyStore signatures: - parts: - offset: 0 value: b"\xFE\xED\xFE\xED" - file_format: LempelZivFiniteStateEntropy signatures: - parts: - offset: 0 value: b"bvx-" - parts: - offset: 0 value: b"bvx1" - parts: - offset: 0 value: b"bvx2" - parts: - offset: 0 value: b"bvxn" - file_format: LongRangeZip signatures: - parts: - offset: 0 value: b"LRZI" - file_format: Lz4 signatures: - parts: - offset: 0 value: b"\x04\x22\x4D\x18" - file_format: Lzip signatures: - parts: - offset: 0 value: b"LZIP" - file_format: MicrosoftCompiledHtmlHelp signatures: - parts: - offset: 0 value: b"ITSF" - file_format: MicrosoftDirectDrawSurface signatures: - parts: - offset: 0 value: b"DDS " - file_format: MonkeysAudio signatures: - parts: - offset: 0 value: b"MAC " - file_format: Mpeg1Video signatures: - parts: - offset: 0 value: b"\x00\x00\x01\xBA" - parts: - offset: 0 value: b"\x00\x00\x01\xB3" - file_format: Musepack signatures: - parts: - offset: 0 value: b"MPCK" - parts: - offset: 0 value: b"MP+" - file_format: MusicalInstrumentDigitalInterface signatures: - parts: - offset: 0 value: b"MThd" - file_format: NintendoEntertainmentSystemRom signatures: - parts: - offset: 0 value: b"\x4E\x45\x53\x1A" - file_format: OggMultiplexedMedia signatures: - parts: - offset: 0 value: b"OggS" - file_format: OpenExr signatures: - parts: - offset: 0 value: b"\x76\x2F\x31\x01" - file_format: PcapDump signatures: - parts: - offset: 0 value: b"\xA1\xB2\xC3\xD4" - parts: - offset: 0 value: b"\xD4\xC3\xB2\xA1" - file_format: PcapNextGenerationDump signatures: - parts: - offset: 0 value: b"\x0A\x0D\x0D\x0A" - file_format: RedHatPackageManager signatures: - parts: - offset: 0 value: b"\xED\xAB\xEE\xDB" - file_format: ScreamTracker3Module signatures: - parts: - offset: 44 value: b"SCRM" - file_format: Shapefile signatures: - parts: - offset: 0 value: b"\x00\x00\x27\x0A" - file_format: SonyDsdStreamFile signatures: - parts: - offset: 0 value: b"DSD " - file_format: TagImageFileFormat signatures: - parts: - offset: 0 value: b"\x4D\x4D\x00\x2A" - parts: - offset: 0 value: b"\x49\x49\x2A\x00" - parts: - offset: 0 value: b"\x4D\x4D\x00\x2B" - parts: - offset: 0 value: b"\x49\x49\x2B\x00" - file_format: WavPack signatures: - parts: - offset: 0 value: b"wvpk" - file_format: WebAssemblyBinary signatures: - parts: - offset: 0 value: b"\x00\x61\x73\x6D" - file_format: WebOpenFontFormat signatures: - parts: - offset: 0 value: b"wOFF" - file_format: WebOpenFontFormat2 signatures: - parts: - offset: 0 value: b"wOF2" - file_format: WindowsMetafile signatures: - parts: - offset: 0 value: b"\xD7\xCD\xC6\x9A" - parts: - offset: 0 value: b"\x02\x00\x09\x00" - parts: - offset: 0 value: b"\x01\x00\x09\x00" - file_format: Zip signatures: - parts: - offset: 0 value: b"\x50\x4B\x03\x04" - parts: - offset: 0 value: b"\x50\x4B\x05\x06" - parts: - offset: 0 value: b"\x50\x4B\x07\x08" - file_format: Zstandard signatures: - parts: - offset: 0 value: b"\x28\xB5\x2F\xFD" // 3-byte signatures - file_format: Bzip2 signatures: - parts: - offset: 0 value: b"BZh" - file_format: JpegExtendedRange signatures: - parts: - offset: 0 value: b"\x49\x49\xBC" - file_format: MpegAudioLayer3 signatures: - parts: - offset: 0 value: b"ID3" - file_format: SeqBox signatures: - parts: - offset: 0 value: b"SBx" - file_format: SmallWebFormat signatures: - parts: - offset: 0 value: b"\x43\x57\x53" - parts: - offset: 0 value: b"\x46\x57\x53" - file_format: Zoo signatures: - parts: - offset: 0 value: b"ZOO" // 2-byte signatures - file_format: AdvancedAudioCoding signatures: - parts: - offset: 0 value: b"\xFF\xF1" - parts: - offset: 0 value: b"\xFF\xF9" - file_format: AppleDiskImage signatures: - parts: - offset: 0 value: b"\x78\x01" - file_format: ArchivedByRobertJung signatures: - parts: - offset: 0 value: b"\x60\xEA" - file_format: AudioCodec3 signatures: - parts: - offset: 0 value: b"\x0B\x77" - file_format: Cpio signatures: - parts: - offset: 0 value: b"\xC7\x71" - parts: - offset: 0 value: b"\x71\xC7" - file_format: Gzip signatures: - parts: - offset: 0 value: b"\x1F\x8B" - file_format: UnixCompress signatures: - parts: - offset: 0 value: b"\x1F\xA0" - parts: - offset: 0 value: b"\x1F\x9D" - file_format: WindowsBitmap signatures: - parts: - offset: 0 value: b"BM" - file_format: WindowsExecutable signatures: - parts: - offset: 0 value: b"MZ" } impl FileFormat { /// Maximum number of bytes to read to detect the `FileFormat`. const MAX_BYTES: u64 = 36870; /// Determines `FileFormat` from bytes. /// /// If the `FileFormat` is not recognized, the [default value] will be returned. /// /// # Examples /// /// Detects from the first bytes of a PNG file: /// /// ```rust /// use file_format::FileFormat; /// /// let format = FileFormat::from_bytes(b"\x89\x50\x4E\x47\x0D\x0A\x1A\x0A"); /// assert_eq!(format, FileFormat::PortableNetworkGraphics); ///``` /// /// Detects from a zeroed buffer: /// /// ```rust /// use file_format::FileFormat; /// /// let format = FileFormat::from_bytes(&[0; 1000]); /// assert_eq!(format, FileFormat::ArbitraryBinaryData); ///``` /// /// [default value]: FileFormat::default #[inline] pub fn from_bytes(bytes: &[u8]) -> FileFormat { FileFormat::from_signature(bytes).unwrap_or_default() } /// Determines `FileFormat` from a file. /// /// # Examples /// /// ```rust /// use file_format::FileFormat; /// /// let format = FileFormat::from_file("fixtures/video/sample.mkv")?; /// assert_eq!(format, FileFormat::MatroskaVideo); /// # Ok::<(), std::io::Error>(()) ///``` pub fn from_file<P: AsRef<Path>>(path: P) -> Result<FileFormat> { let mut buffer = [0; FileFormat::MAX_BYTES as usize]; let read = File::open(path)? .take(FileFormat::MAX_BYTES) .read(&mut buffer)?; Ok(FileFormat::from_bytes(&buffer[0..read])) } } impl Default for FileFormat { /// Returns the default `FileFormat` which corresponds to [`FileFormat::ArbitraryBinaryData`]. #[inline] fn default() -> FileFormat { FileFormat::ArbitraryBinaryData } } impl Display for FileFormat { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { write!(f, "{}", self.name()) } }
rust
import {css} from '@emotion/core'; export const styles = css` margin-bottom: 13px; .title { fontsize: 16px; display: inline-block; vertical-align: middle; margin: 0 15px 0 0; color: #999; } .react-datepicker-wrapper:first-of-type { margin-right: 20px; } .react-datepicker__input-container input { width: 135px; padding: 7px; color: #666; border: 1px solid #ddd; border-radius: 2px; } `;
javascript
{ "env": "default", "publicPath": "localhost:8080", "host": "localhost", "port": "8080", "jsSourcePath": "src/js", "s3Deploy": false, "optimization": { "commonMinCount": 3, "cssExclusion": true, "analyzeMode": false, "analyze": { "port": 8888 } }, "html": [ { "name": "homepage", "title": "DJI to GPX", "template": "_default.html", "filename": "index.html" } ], "app": { "description": "config inside 'app' will be injected to your frontend code automatically" } }
json
import React, { useMemo } from "react"; import { Link } from "react-router-dom"; import { Container } from "react-bootstrap"; import ReactJson from "react-json-view"; import { getLoginForAlias, getAliasForLogin } from "../students"; import useReselect from "../lib/useReselect"; import useSelect from "../lib/useSelect"; import { getUser, extractUserWeeks, getUsers, makeGetPrevUser, makeGetNextUser, getUserScore } from "../ducks"; import { IssuesList, Punchcard, PunchcardUser } from "../components"; export function UsersAliasPage({ match }) { const { alias } = match.params; const login = getLoginForAlias(alias); const user = useSelect(getUser, login); const state = useSelect(state => state); const userScore = getUserScore(state, login); const userScores = useMemo(() => [userScore], [userScore]); const users = useSelect(getUsers, login); const prev = useReselect(makeGetPrevUser, user); const next = useReselect(makeGetNextUser, user); const reviews = useMemo(() => user && user.reviews.map(r => r.issue), [user]); if (!user) { console.log({ match, alias, login, user, users }); return null; } return ( <> <Container> <div> {!prev && <Link to="/users">« List</Link>} {prev && ( <Link to={`/users/${getAliasForLogin(prev.login)}`}>« Prev</Link> )} {" |"} [{alias}] {next && "| "} {next && ( <Link to={`/users/${getAliasForLogin(next.login)}`}>Next »</Link> )} </div> <h2>{alias}</h2> <ReactJson src={user} collapsed /> <ReactJson src={userScore} collapsed /> <h2>Score</h2> <Punchcard scores={userScores} /> </Container> <Container> <h3>Issues</h3> </Container> <IssuesList issues={user.issues} /> <Container> <h3>Develops</h3> </Container> <IssuesList issues={user.develops} /> <Container> <h3>Merges</h3> </Container> <IssuesList issues={user.merges} /> <Container> <h3>Reviews</h3> </Container> <IssuesList issues={reviews} /> </> ); }
javascript
const passport = require('passport'); const localLoginStrategy = require('./utils/local-login.js'); const localSignupStrategy = require('./utils/local-signup.js'); const serializeUser = require('./utils/serializeUser.js'); const deserializeUser = require('./utils/deserializeUser.js'); passport.deserializeUser(deserializeUser); passport.serializeUser(serializeUser); passport.use('local-login', localLoginStrategy); passport.use('local-signup', localSignupStrategy); module.exports = passport;
javascript
{"from":"Mount Olive, MS USA","name":"<NAME>","num":5963,"comps":[{"name":"MS FTC Championship Tournament ","place":"Mississippi","date":"02-Mar-13","highest":100,"QP":12,"RP":56,"matches":6}]}
json
<filename>tweets/15237.json<gh_stars>0 { "body": "WHETHER A NEED OF THEM TO THAT END CAME NOT IN, IN THE MANNER FOLLOWING, I CRAVE LEAVE TO INQUIRE.", "next": "https://raw.githubusercontent.com/CAPSELOCKE/CAPSELOCKE/master/tweets/15238.json" }
json
New York, Aug 20 (IANS) Although individuals who use marijuana plus tobacco have smaller a hippocampus, their memory function is greater, reveals a new study. “Hippocampal size of non-users reflects a direct relationship to memory function — the smaller the hippocampus, the poorer the memory function,” said principal investigator Francesca Filbey from the University of Texas at Dallas. “However, individuals who use marijuana plus tobacco show an inverse relationship — the smaller the hippocampus size, the greater memory the function,” Fibley said. The study found that the size of the hippocampus — an area of the brain associated with memory and learning — is significantly smaller in both the marijuana group and marijuana plus tobacco group compared to non-using controls and individuals who use tobacco exclusively. Also, the number of nicotine cigarettes smoked per day in the marijuana and nicotine-using group appeared to be related to the severity of hippocampal shrinkage. The greater the number of cigarettes smoked per day, the smaller the hippocampal volume and the greater the memory performance. There were no significant associations between hippocampal size and memory performance in individuals who only use tobacco or only use marijuana. Approximately 70 percent of individuals who use marijuana also use tobacco, the study noted. “Our findings confirm that the interaction between marijuana and nicotine is indeed much more complicated due to the different mechanisms at play,” Filbey said. The study appeared online in the journal Behavioural Brain Research.
english
Why did Apple kill Google Maps from iOS and make its own maps? The logical thinking was some combination of getting Google off iOS and Apple and Google's Google Maps contract agreement being over. That's only half true. Apple still could've used Google maps for another year under their current agreement, Apple just decided to blindside Google by going in its own direction. Yes. You heard that right. According to the Verge, Apple had another year left before Apple's contract with Google Maps expired. Meaning, you could totally have perfectly capable Google Maps on iOS 6 right now instead of the buggy listings, melty world, Apple crap maps fiasco on your iPhone right now. Instead of using that extra year to build the Apple Maps app into something better and reliable, Apple left it on the table so they could catch Google off guard.
english
New Delhi: After five people were killed in the last 48 hours by terrorists in Kashmir, the Congress on Thursday condemned the incident, and said the BJP has failed to protect the Kashmiri Pandits in the valley. Sonia Gandhi also instructed the party in J&K to extend support to the grieving families. The statement from the Congress said, “The BJP govt’s inability to protect the Kashmiri Pandit community and civilians at large is a direct result of the instability they have caused in the region. The increase in militancy and rise in violence is proof of this government’s weak and apathetic attitude”. The party said in the last 48 hours five persons, including M. L. Bindroo — a prominent Kashmiri Pandit — have been killed in terror incidents. Earlier in the day, two teachers were shot and killed by terrorists inside a government higher secondary school in the Eidgah area of Srinagar. Reports here said among the slain teachers, was the principal of the school, Supinder Kaur and a Kashmiri Pandit teacher, Deepak Chand. Thursday’s killings come two days after the terrorists shot a local Pandit, M. L. Bindroo, a non-local vendor from Bihar and a local taxi driver in Kashmir.
english
<reponame>hansry02/CS440_project_6 /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package simpledb.query; import simpledb.record.*; /** * * @author rynehanson */ public class AntijoinScan implements Scan { private Scan prod; private Predicate pred; /** * Creates a select scan having the specified underlying * scan and predicate. * @param s the scan of the underlying query * @param pred the selection predicate */ public AntijoinScan(Scan s1, Scan s2, Scan s3, Predicate pred) { this.prod = new ProductScan(s1, s2); this.pred = pred; s1.next(); } // Scan methods public void beforeFirst() { prod.beforeFirst(); } /** * Move to the next record satisfying the predicate. * The method repeatedly calls next on the underlying scan * until a suitable record is found, or the underlying scan * contains no more records. * @see simpledb.query.Scan#next() */ public boolean next() { while (prod.next()) if (pred.isSatisfied(prod)) return true; return false; } public void close() { prod.close(); } public Constant getVal(String fldname) { return prod.getVal(fldname); } public int getInt(String fldname) { return prod.getInt(fldname); } public String getString(String fldname) { return prod.getString(fldname); } public boolean hasField(String fldname) { return prod.hasField(fldname); } }
java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE> [whatwg] rel/rev for &lt;form&gt; ? </TITLE> <LINK REL="Index" HREF="index.html" > <LINK REL="made" HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20rel/rev%20for%20%3Cform%3E%20%3F&In-Reply-To=%3C84ce626f0511050230r168ffc95td1002663fcc375c4%40mail.gmail.com%3E"> <META NAME="robots" CONTENT="index,nofollow"> <style type="text/css"> pre { white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ } </style> <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> <LINK REL="Previous" HREF="047318.html"> <LINK REL="Next" HREF="047320.html"> </HEAD> <BODY BGCOLOR="#ffffff"> <H1>[whatwg] rel/rev for &lt;form&gt; ?</H1> <!--htdig_noindex--> <B><NAME></B> <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20rel/rev%20for%20%3Cform%3E%20%3F&In-Reply-To=%3C84ce626f0511050230r168ffc95td1002663fcc375c4%40mail.gmail.com%3E" TITLE="[whatwg] rel/rev for &lt;form&gt; ?"><EMAIL> </A><BR> <I>Sat Nov 5 02:30:11 PST 2005</I> <P><UL> <LI>Previous message: <A HREF="047318.html">[whatwg] rel/rev for &lt;form&gt; ? </A></li> <LI>Next message: <A HREF="047320.html">[whatwg] rel/rev for &lt;form&gt; ? </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#47319">[ date ]</a> <a href="thread.html#47319">[ thread ]</a> <a href="subject.html#47319">[ subject ]</a> <a href="author.html#47319">[ author ]</a> </LI> </UL> <HR> <!--/htdig_noindex--> <!--beginarticle--> <PRE>Hello, On 11/5/05, ROBO Design &lt;<A HREF="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">robodesign at gmail.com</A>&gt; wrote: &gt;<i> On Sat, 05 Nov 2005 00:17:27 +0200, <NAME> </I>&gt;<i> &lt;<A HREF="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">supercanadian at gmail.com</A>&gt; wrote: </I>&gt;<i> </I>&gt;<i> &gt; Hello, </I>&gt;<i> &gt; </I>&gt;<i> &lt;...&gt; </I>&gt;<i> &gt; </I>&gt;<i> &gt; Let me ask you some questions. (Your answers will help me know how to </I>&gt;<i> &gt; explain things better.) </I> [...] &gt;<i> &gt; * Do you think being able to provide semantics between 2 resources </I>&gt;<i> &gt; -- between 2 URI's -- is important? </I>&gt;<i> </I>&gt;<i> Yes, but not really for &lt;form&gt;. </I>&gt;<i> </I>&gt;<i> Reason: generally speaking, an URI specified in the ACTION attribute of </I>&gt;<i> the &lt;form&gt; is not a web page that shows general information, good for web </I>&gt;<i> crawlers nor the like. I wouldn't like bots going crazy in my &lt;form&gt;s :). </I> I think I see one thing I didn't explain properly. Web crawlers would NOT &quot;submit&quot; forms. But they would discover them. In essence, &quot;rel&quot; and &quot;rev&quot; based formats on the &lt;form&gt; element would allow web crawlers to discover API's. And (web crawlers or user agents, etc) could present these forms to the user, and allow the user to fill them in and &quot;submit&quot; them outside of the web page they are embedding in. Essentially, &quot;rel&quot; and &quot;rev&quot; based formats on the &lt;form&gt; element could allow you to turn the &lt;form&gt; element into a kind of IDL. Consider a blog post. We have rel-author to specify the author blog post. We have rel-tag to specify the keywords phrases the author tagged the blog post with. We have rel-license to license of the blog post. (And all these can be done within the body of the blog post.) But how do you specify the API to post a comment to the blog post? How do you specify the API to change how you tagged the blog post? (Having &quot;rel&quot; and &quot;rev&quot; based formats on the &lt;form&gt; element could allow you to do this.) [...] &gt;<i> </I>&gt;<i> &gt; * Do you think that be able to use other HTTP methods, other than </I>&gt;<i> &gt; GET, is important? </I>&gt;<i> </I>&gt;<i> In this case, not. The way I see it, web crawlers, extensions, user </I>&gt;<i> scripts, user agents and the like can use the URIs of any resource, based </I>&gt;<i> on the REL. For example, rel=&quot;author&quot;: this *should* give an URI to the </I>&gt;<i> author of the web page, but how would this work with a &lt;form&gt;? Would you </I>&gt;<i> require it to use POST or another method? Forms are more complex than </I>&gt;<i> simple links, they require user interaction (fill the fields and most </I>&gt;<i> likely a JavaScript on the page that validates the values). </I>&gt;<i> </I>&gt;<i> Also, forms are not for &quot;general availability&quot;, in the sense of ... web </I>&gt;<i> crawlers should *not* try to submit them (that's what the bad spam bots do </I>&gt;<i> when trying to post spam comments). </I> Again, I am NOT suggesting that web crawlers fill them in. I am suggestion that web cralwers use &quot;rel&quot; and &quot;rev&quot; formats on &lt;form&gt;'s to discover API's. [...] &gt;<i> &gt; (One thing though. Re-reading my message over, it seems to kind of </I>&gt;<i> &gt; have a &quot;rude&quot; connotation. But please note that is not my intent.) </I>&gt;<i> </I>&gt;<i> True, but no problems :). </I>&gt;<i> </I>&gt;<i> My general idea is this: I'm not against adding rel/rev to &lt;form&gt;, but I </I>&gt;<i> currently do not see any precise example of a use case. </I> What's driven me to suggest it is to allow for the discovering of API's. So that a &lt;form&gt; element with a &quot;rel&quot; or &quot;rev&quot; could act like an IDL. &gt;<i> Also, you need to take into consideration the implications of having </I>&gt;<i> rel/rev for &lt;form&gt;. </I> Could you elaborate on this please. [...] See ya -- <NAME>, B.Sc. <EMAIL> <EMAIL> developer weblog: <A HREF="http://ChangeLog.ca/">http://ChangeLog.ca/</A> ___________________________________________________________________________ Never forget where you came from </PRE> <!--endarticle--> <!--htdig_noindex--> <HR> <P><UL> <!--threads--> <LI>Previous message: <A HREF="047318.html">[whatwg] rel/rev for &lt;form&gt; ? </A></li> <LI>Next message: <A HREF="047320.html">[whatwg] rel/rev for &lt;form&gt; ? </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#47319">[ date ]</a> <a href="thread.html#47319">[ thread ]</a> <a href="subject.html#47319">[ subject ]</a> <a href="author.html#47319">[ author ]</a> </LI> </UL> <hr> <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg mailing list</a><br> <!--/htdig_noindex--> </body></html>
html
<reponame>743834110/im-backend { path: '/routine', icon: 'routine', name: 'routine', routes: [ { path: '/routine/routineList', name: 'routineList', component: './Routine/RoutineList' }, { path: '/routine/routineForm/', name: 'routineForm', component: './Routine/RoutineForm' }, { path: '/routine/routineForm/:routineId', hideInMenu: true, name: 'routineForm', component: './Routine/RoutineForm' } ] }
json
{ "name": "commerce-sdk", "private": true, "scripts": { "postinstall": "lerna bootstrap --hoist", "updateApis": "lerna run updateApis", "build": "lerna run build", "redis": "npm run redis --prefix ./package/core", "redis:shutdown": "npm run redis:shutdown --prefix ./package/core", "redis:debug": "npm run redis:debug --prefix ./package/core", "redis:debug:shutdown": "npm run redis:debug:shutdown --prefix ./package/core", "test": "lerna run test", "test:debug": "lerna run test:debug", "test:integration:bundle": "lerna run test:integration", "test:integration:bundle:redis": "lerna run test:integration:redis", "test:integration:bundle:redis:debug": "lerna run test:integration:redis:debug", "test:integration": "npm run test:integration:bundle --prefix ./integrationTests", "test:integration:redis": "npm run test:integration:bundle:redis --prefix ./integrationTests", "test:integration:redis:debug": "npm run test:integration:bundle:redis:debug --prefix ./integrationTests", "test:all": "npm run test && npm run test:integration", "test:all:redis": "npm run test && npm run test:integration:redis", "test:all:redis:debug": "npm run test && npm run test:integration:redis:debug", "clean": "lerna run clean && npm run clean --prefix ./integrationTests", "clean:node": "lerna run clean:node && npm run clean:node --prefix ./integrationTests", "clean:all": "npm run clean && npm run clean:node && npm run clean:all --prefix ./integrationTests", "test:core": "lerna run --scope @commerce-apps/core test:debug", "test:generator": "lerna run --scope commerce-sdk test:debug", "publish": "lerna publish from-git --yes" }, "dependencies": {}, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^0.1.3", "@types/chai": "^4.2.3", "@types/chai-as-promised": "^7.1.2", "@types/fs-extra": "^8.0.0", "@types/handlebars-helpers": "^0.5.2", "@types/lodash": "^4.14.146", "@types/mocha": "^5.2.7", "@types/node": "^12.6.9", "@types/qs": "^6.5.3", "@types/sinon": "^7.5.0", "@types/tmp": "^0.1.0", "@typescript-eslint/eslint-plugin": "^2.30.0", "@typescript-eslint/parser": "^2.30.0", "chai": "^4.2.0", "chai-as-promised": "^7.1.1", "conditional-type-checks": "^1.0.5", "cross-env": "^5.2.0", "eslint": "^6.6.0", "eslint-config-prettier": "^6.4.0", "eslint-config-xo": "^0.27.1", "eslint-config-xo-typescript": "^0.19.0", "eslint-plugin-header": "^3.0.0", "handlebars": "^4.7.6", "handlebars-helpers": "^0.10.0", "lerna": "^3.20.2", "mocha": "^6.2.0", "nyc": "^14.1.1", "qs": "^6.9.0", "sinon": "^7.5.0", "source-map-support": "^0.5.16", "tmp": "^0.2.0", "ts-node": "^8.6.2", "typedoc": "^0.17.7", "typescript": "^3.9.5", "xo": "^0.25.3" } }
json
In a big relief to students of Telangana ahead of commencement of new academic year, its government has unanimously decided to bear the fee reimbursement in professional colleges and meet their scholarships in the new State alone while leaving out those of Andhra Pradesh and other States from the purview. It effectively meant that students belonging to Telangana, irrespective of whether they are pursuing courses in the State or outside the borders, will be reimbursed fee and paid scholarships. But, the scheme will not apply to students of Andhra Pradesh and other States who are studying in Hyderabad or other Telangana districts. Their fee has to be met by the respective State governments. The decision was taken at an all-party meeting convened by Chief Minister K. Chandrasekhar Rao at the Secretariat on Monday evening. Briefing reporters about the outcome of the meeting, Deputy Chief Minister T. Rajaiah and Education Minister G. Jagadish Reddy said the students eligible for fee reimbursement would be identified on the basis of their income and domicile certificates submitted in the past. There was no change in the criteria of their selection by the previous governments. The arrears in fee of outside students would also have to be paid by their State governments. The fee reimbursement and scholarships is expected to impose a financial burden of Rs. 2,500 crore on the Telangana government in 2014-15. It was Rs. 1,779 crore for 12. 64 lakh students in 2011-12, Rs. 2,156 crore for 14. 45 lakh students in 2012-13 and Rs. 2,091 crore for 14. 32 lakh students in 2013-14. The scheme was implemented by previous governments with a cap of Rs. 2 lakh in the annual income of parents in the case of SC and ST students. The limit was Rs. 1 lakh for BC, physically challenged, minorities and economically backward class students. Students who secured below 10,000th rank in engineering stream of EAMCET were fully reimbursed fee while only Rs. 35,000 was paid for others. However, the government did not take a view on medical students in second year and above. The Ministers said the same criteria of payment would be followed by the new government. Senior Congress leaders D. Srinivas and J. Geeta Reddy hailed the decision of the government saying it showed the positive attitude of the government on the issue.
english
<reponame>Hans-Tsai/nodejs-express-practice const nodemailer = require('nodemailer') const htmlToFormattedText = require('html-to-formatted-text') module.exports = credentials => { const mailTransport = nodemailer.createTransport({ host: 'smtp.sendgrid.net', auth: { user: credentials.sendgrid.user, pass: <PASSWORD>, }, }) const from = '"Meadowlark Travel" <<EMAIL>>' const errorRecipient = '<EMAIL>' return { send: (to, subject, html) => mailTransport.sendMail({ from, to, subject, html, text: htmlToFormattedText(html), }), } }
javascript
<reponame>tdsymonds/django-custom-authentication # -*- coding: utf-8 -*- from django.db import models from django.utils import timezone from django.utils.http import urlquote from django.utils.translation import ugettext_lazy as _ from django.core.mail import send_mail from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, BaseUserManager from uuslug import uuslug from .managers import CustomUserManager class CustomUser(AbstractBaseUser, PermissionsMixin): """ A fully featured User model with admin-compliant permissions that uses a full-length email field as the username. Email and password are required. Other fields are optional. """ email = models.EmailField(_('email address'), max_length=254, unique=True) first_name = models.CharField(_('first name'), max_length=30, blank=True) last_name = models.CharField(_('last name'), max_length=30, blank=True) is_staff = models.BooleanField(_('staff status'), default=False, help_text=_('Designates whether the user can log into this admin ' 'site.')) is_active = models.BooleanField(_('active'), default=True, help_text=_('Designates whether this user should be treated as ' 'active. Unselect this instead of deleting accounts.')) date_joined = models.DateTimeField(_('date joined'), default=timezone.now) slug = models.SlugField(_('slug'), max_length=255, blank=True, allow_unicode=True) objects = CustomUserManager() USERNAME_FIELD = 'email' REQUIRED_FIELDS = [] class Meta: verbose_name = _('user') verbose_name_plural = _('users') def save(self, *args, **kwargs): if not self.slug: self.slug = uuslug(self.get_full_name(), instance=self, start_no=2) super(CustomUser, self).save(*args, **kwargs) def get_absolute_url(self): return "/users/%s/" % urlquote(self.email) def get_full_name(self): """ Returns the first_name plus the last_name, with a space in between. """ full_name = '%s %s' % (self.first_name, self.last_name) return full_name.strip() def get_short_name(self): "Returns the short name for the user." return self.first_name def email_user(self, subject, message, from_email=None): """ Sends an email to this User. """ send_mail(subject, message, from_email, [self.email])
python
import React from 'react' import Banner from '../components/layouts/banner/banner' import Layout from '../components/layouts/layout/layout' import Quickstart from '../components/layouts/quickstart/quickstart' import SEO from '../components/layouts/seo/seo' import SimpleText from '../components/layouts/simple-text/simple-text' import Team from '../components/layouts/team/team' import TeamImage from '../components/layouts/team/team-image' import * as content from '../page-content/content-about' import { sharedBannerHiring } from '../page-content/shared/content-banner' import * as team from '../page-content/shared/content-team' const AboutPage = () => ( <Layout> <SEO {...content.seo} /> <SimpleText {...content.about} /> <Team {...team.team} /> <Banner {...sharedBannerHiring} /> <Team {...team.collaborators} /> <TeamImage {...team.community} /> <Quickstart {...content.quickstart} /> </Layout> ) export default AboutPage
typescript
Major Sandeep Unnikrishnan’s biographical movie, titled Major is a stupendous blockbuster, directed by Shashi Kiran Tikka. It stars Adivi Sesh and Saiee Manjrekar in the lead roles. Being a successful feature film, Major has created many records in the film industry. Now, it has added another feather in its cap by getting selected for the 53rd International Film Festival of India (IFFI). The news was announced by the lead actor of the film on social media. It is a prestigious honour for the entire team receiving the award. Other successful movies of this year like RRR, Jai Bhim etc are also included in the list. The International Film Festival of India, founded in 1952, is one of the most significant film festivals in Asia. It aims at providing a common platform for the cinemas of the world to show the excellence of the film art; contributing to the understanding and appreciation of film cultures of different nations in the context of their social and cultural ethos and promoting friendship and cooperation among people of the world.
english
self.__precacheManifest = (self.__precacheManifest || []).concat([ { "revision": "abee6502f6d72bfe5435d50ed547284a", "url": "/index.html" }, { "revision": "e024c9d34bb5a868eebb", "url": "/static/css/main.34de6062.chunk.css" }, { "revision": "debb8b651d243f4ab7de", "url": "/static/js/2.e34e30bc.chunk.js" }, { "revision": "e024c9d34bb5a868eebb", "url": "/static/js/main.6ce6c631.chunk.js" }, { "revision": "89f76e77b957256acf6f", "url": "/static/js/runtime-main.eff5ba5b.js" } ]);
javascript
package com.spring.snapkitten.interfaces; import android.view.ViewGroup; import android.widget.LinearLayout; import android.widget.RelativeLayout; /** * Created by spring on 12/3/2017. */ public interface CubParent extends CubBuild { CubParentMethods from(ViewGroup parent); CubParentMethods from(); CubParentMethods from(RelativeLayout parent); }
java
{"t":"paka'eminen","h":[{"d":[{"f":"讓…全部完成。","e":["`Adihay~ `ko~ `futing~, `paka'emin~`e~`n~ `kiso~ `a~ `komaen~ `han~?魚這麼多,你能全部吃完嗎?","`Paka'emin~`e~`n~ `kako~ `tona~ `tilid~ `anini~ `i~ `'ayaw~ `no~ `kalahokan~.在中午前,我能看完這些書。"]}]}],"stem":"'emin"}
json
<filename>cup/src/main/java/com/lvcoding/config/WebSocketConfig.java /* * * Copyright (c) 2021-2015, wuyanshen All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the lvcoding.com developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: wuyanshen * */ package com.lvcoding.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.socket.server.standard.ServerEndpointExporter; /** * @author wuyanshen * @date 2020-06-03 1:13 下午 * @description websocket配置 */ //@Configuration public class WebSocketConfig { @Bean public ServerEndpointExporter serverEndpointExporter () { return new ServerEndpointExporter(); } }
java
import { app } from "@arkecosystem/core-container"; import { setUpContainer } from "@arkecosystem/core-test-utils/src/helpers/container"; import { database } from "../../src/database"; import { webhookManager } from "../../src/manager"; import { startServer } from "../../src/server"; jest.setTimeout(60000); async function setUp() { process.env.CORE_WEBHOOKS_ENABLED = "true"; await setUpContainer({ exclude: ["@arkecosystem/core-api", "@arkecosystem/core-graphql", "@arkecosystem/core-forger"], }); await database.setUp({ dialect: "sqlite", storage: `${process.env.CORE_PATH_DATA}/webhooks.sqlite`, logging: process.env.CORE_DB_LOGGING, }); await webhookManager.setUp(); await startServer({ enabled: false, host: process.env.CORE_WEBHOOKS_HOST || "0.0.0.0", port: process.env.CORE_WEBHOOKS_PORT || 4004, whitelist: ["127.0.0.1", "::ffff:127.0.0.1"], pagination: { limit: 100, include: ["/api/webhooks"], }, }); } async function tearDown() { await app.tearDown(); } export { setUp, tearDown };
typescript
export interface NoisemapOptions { seed: number | string; octaves: number[]; useHeightCurve?: boolean; useDistance?: boolean; normalize?: boolean; }
typescript
The American day of independence has its share of all American food. Let's take a look at some of the most popular meals on this day. The crucial information was provided by the lone surviving suspect Dzhokhar Tsarnaev. Americans prepared to celebrate the nation's 238th birthday on Friday. India vs West Indies 1st Test highlights: India are in the driver's seat after Day 1 of the first Test, thanks to Ashwin's bowling followed by Rohit Sharma-Yashasvi Jaiswal opening stand. A four-member BJP fact-finding team, led by the former Union minister Ravi Shankar Prasad, visited violence-hit areas of West Bengal on Wednesday. The state government signed agreements with Rajiv Samajik Shiksha Sewa Sansthan for establishing a medical college in Mau district and Gyan Chetna Educational Society for a medical college in Shamli. A former two-time MLA from Bastar, Baij was among two Congress candidates out of 11 who won from the state in 2019 Lok Sabha polls. He is at present a member of the consultative committee, Ministry of Tribal Affairs. As chilli and tomatoes are priced at around Rs 100 and Rs 140 a kilo, respectively in June, people and establishments are struggling to them on the table. The protesters invite Nitesh Rane to spend four days with the community to learn about its struggles. The pandal was being erected for the outreach programme ‘Shasan Aplya Dari’ in Pune’s Purandar tehsil to be held on Thursday. The government has postponed the event due to ‘unavoidable reasons’.
english
<filename>elements/app-content/app-content.css :host { display: block; } .packages-list { display: block; list-style: none; margin: 0; padding: 12px; overflow-y: visible; } .packages-list li { margin-bottom: 12px; }
css
<gh_stars>1-10 package chapter.android.aweme.ss.com.chapter1.intent; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.ContactsContract; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; import chapter.android.aweme.ss.com.chapter1.R; public class IntentActivity extends AppCompatActivity { private static final int REQUEST_CODE = 101; private TextView mContactName; private Button mButtonSetting; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_intent); mContactName = findViewById(R.id.tv_contact); mButtonSetting = findViewById(R.id.btn_setting); } public void noMatch(View view) { Intent it = new Intent(); it.setAction("this is a not match action"); startActivity(it); } /** * 隐式intent预埋 * * @param view */ public void openBrowser(View view) { Intent it = new Intent(); it.setAction(Intent.ACTION_VIEW); it.setData(Uri.parse("http://www.baidu.com")); startActivity(it); } /** * 自定义的隐式intent 携带data&type * * @param view */ public void customImplicit(View view) { Intent it = new Intent(); Uri uri = Uri.parse("ispring://blog.github.net/huohuo"); it.setDataAndType(uri, "text/plain"); it.setAction("my_action"); it.addCategory("my_category"); startActivity(it); } /** * startActivityForResult with Bundle 显式 * * @param view */ public void wechatAuthorize(View view) { Intent intent = new Intent(this, AuthorizeActivity.class); Bundle bundle = new Bundle(); bundle.putString("douyin_id", "huohuo666"); bundle.putString("name", "<NAME>"); bundle.putInt("age", 18); intent.putExtra("user", bundle); startActivityForResult(intent, REQUEST_CODE);//带着讲 forResult } @Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == REQUEST_CODE && resultCode == AuthorizeActivity.AUTHOR_CODE) { if (data != null) { String authMsg = data.getStringExtra(AuthorizeActivity.AUTHOR_STATE); Toast.makeText(this, authMsg, Toast.LENGTH_SHORT).show(); mButtonSetting.setTextColor(getResources().getColor(R.color.colorAccent)); mButtonSetting.setText(authMsg); } } } }
java
<reponame>lunodrade/eslint-example { "name": "eslint-example", "version": "0.0.1", "description": "Exemplo de configuração de projeto usando eslint-prettier", "main": "index.js", "scripts": { "test": "echo \"Error: nenhum teste especificado\" && exit 1", "eslint": ".\\node_modules\\.bin\\eslint --init" }, "repository": { "type": "git", "url": "git+https://github.com/lunodrade/eslint-example.git" }, "keywords": [ "prettier" ], "author": "<NAME>", "license": "MIT", "bugs": { "url": "https://github.com/lunodrade/eslint-example/issues" }, "homepage": "https://github.com/lunodrade/eslint-example#readme", "devDependencies": { "@prettier/plugin-php": "^0.11.2", "eslint": "^6.0.1", "eslint-config-google": "^0.13.0", "prettier": "^1.18.2" }, "dependencies": {} }
json
<reponame>marcelojean10/marcelojean10-blackthorn import { CreateCartModel } from '../models/create-cart.model'; /** * * * @export * @abstract * @class CreateCartProtocol * - Defines the contract for implementation by external layers (not core) of performing the creation of Cart */ export abstract class CreateCartProtocol { abstract call(data: CreateCartModel): Promise<CreateCartModel>; }
typescript
/* * (C) Copyright 2019. <NAME> and others. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * Contributors: * <NAME> <<EMAIL>> */ package com.github.benchdoos.weblocopener.gui.panels; import com.github.benchdoos.weblocopener.core.Translation; import com.github.benchdoos.weblocopener.core.constants.ApplicationConstants; import com.github.benchdoos.weblocopener.core.constants.SettingsConstants; import com.github.benchdoos.weblocopener.gui.PlaceholderTextField; import com.github.benchdoos.weblocopener.gui.Translatable; import com.github.benchdoos.weblocopener.gui.panels.simpleTimePickerListeners.ValueChangeListener; import com.github.benchdoos.weblocopener.preferences.PreferencesManager; import com.github.benchdoos.weblocopener.service.gui.darkMode.DarkModeValue; import com.github.benchdoos.weblocopener.service.gui.darkMode.Location; import com.github.benchdoos.weblocopener.service.gui.darkMode.LocationManager; import com.github.benchdoos.weblocopener.service.gui.darkMode.SimpleTime; import com.github.benchdoos.weblocopener.utils.FrameUtils; import com.intellij.uiDesigner.core.GridConstraints; import com.intellij.uiDesigner.core.GridLayoutManager; import com.intellij.uiDesigner.core.Spacer; import lombok.extern.log4j.Log4j2; import javax.swing.*; import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; import java.awt.*; import java.io.IOException; import java.nio.charset.Charset; import java.time.ZoneId; import java.util.Date; import java.util.ResourceBundle; @Log4j2 public class AppearanceSetterPanel extends JPanel implements SettingsPanel, Translatable { private JPanel contentPane; private JPanel byLocationPanel; private JComboBox<Location> locationComboBox; private JRadioButton disabledDarkModeRadioButton; private JRadioButton alwaysDarkModeRadioButton; private JRadioButton byTimeDarkModeRadioButton; private JRadioButton byLocationDarkModeRadioButton; private JPanel byTimePanel; private JTextField locationTextField; private JLabel locationStatusLabel; private JLabel timeStatusLabel; private SimpleTimePicker beginningTimePicker; private SimpleTimePicker endingTimePicker; private JLabel darkModeLabel; public AppearanceSetterPanel() { $$$setupUI$$$(); initGui(); } @Override public String getName() { return Translation.getTranslatedString("SettingsDialogBundle", "settingsAppearancePanelName"); } /** * Method generated by IntelliJ IDEA GUI Designer * >>> IMPORTANT!! <<< * DO NOT edit this method OR call it in your code! * * @noinspection ALL */ private void $$$setupUI$$$() { createUIComponents(); contentPane = new JPanel(); contentPane.setLayout(new GridLayoutManager(1, 1, new Insets(10, 10, 10, 10), -1, -1)); final JPanel panel1 = new JPanel(); panel1.setLayout(new GridLayoutManager(4, 2, new Insets(0, 0, 0, 0), -1, -1)); contentPane.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); darkModeLabel = new JLabel(); this.$$$loadLabelText$$$(darkModeLabel, ResourceBundle.getBundle("translations/AppearanceSetterPanelBundle").getString("darkMode")); panel1.add(darkModeLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final Spacer spacer1 = new Spacer(); panel1.add(spacer1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); byLocationPanel = new JPanel(); byLocationPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1)); panel1.add(byLocationPanel, new GridConstraints(3, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); final Spacer spacer2 = new Spacer(); byLocationPanel.add(spacer2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); final JPanel panel2 = new JPanel(); panel2.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1)); byLocationPanel.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); locationStatusLabel = new JLabel(); locationStatusLabel.setHorizontalAlignment(2); locationStatusLabel.setHorizontalTextPosition(2); locationStatusLabel.setIcon(new ImageIcon(getClass().getResource("/images/emojiCross16.png"))); panel2.add(locationStatusLabel, new GridConstraints(0, 1, 2, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(16, 16), new Dimension(16, 16), new Dimension(16, 16), 0, false)); panel2.add(locationTextField, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, new Dimension(420, -1), new Dimension(420, -1), new Dimension(420, -1), 0, false)); locationComboBox = new JComboBox(); locationComboBox.setMaximumRowCount(10); panel2.add(locationComboBox, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, new Dimension(420, -1), new Dimension(420, -1), new Dimension(420, -1), 0, false)); byTimePanel = new JPanel(); byTimePanel.setLayout(new GridLayoutManager(2, 4, new Insets(0, 0, 0, 0), -1, -1)); panel1.add(byTimePanel, new GridConstraints(2, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); final JLabel label1 = new JLabel(); this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle("translations/AppearanceSetterPanelBundle").getString("beginning")); byTimePanel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final JLabel label2 = new JLabel(); this.$$$loadLabelText$$$(label2, ResourceBundle.getBundle("translations/AppearanceSetterPanelBundle").getString("ending")); byTimePanel.add(label2, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); timeStatusLabel = new JLabel(); timeStatusLabel.setIcon(new ImageIcon(getClass().getResource("/images/emojiCross16.png"))); timeStatusLabel.setText(""); byTimePanel.add(timeStatusLabel, new GridConstraints(0, 2, 2, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(16, 16), new Dimension(16, 16), new Dimension(16, 16), 0, false)); final Spacer spacer3 = new Spacer(); byTimePanel.add(spacer3, new GridConstraints(0, 3, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); endingTimePicker = new SimpleTimePicker(); byTimePanel.add(endingTimePicker.$$$getRootComponent$$$(), new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); beginningTimePicker = new SimpleTimePicker(); byTimePanel.add(beginningTimePicker.$$$getRootComponent$$$(), new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); final JPanel panel3 = new JPanel(); panel3.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1)); panel1.add(panel3, new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); disabledDarkModeRadioButton = new JRadioButton(); disabledDarkModeRadioButton.setSelected(true); this.$$$loadButtonText$$$(disabledDarkModeRadioButton, ResourceBundle.getBundle("translations/AppearanceSetterPanelBundle").getString("disabledName")); panel3.add(disabledDarkModeRadioButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); byTimeDarkModeRadioButton = new JRadioButton(); this.$$$loadButtonText$$$(byTimeDarkModeRadioButton, ResourceBundle.getBundle("translations/AppearanceSetterPanelBundle").getString("byTimeName")); panel3.add(byTimeDarkModeRadioButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); alwaysDarkModeRadioButton = new JRadioButton(); this.$$$loadButtonText$$$(alwaysDarkModeRadioButton, ResourceBundle.getBundle("translations/AppearanceSetterPanelBundle").getString("alwaysName")); panel3.add(alwaysDarkModeRadioButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); byLocationDarkModeRadioButton = new JRadioButton(); this.$$$loadButtonText$$$(byLocationDarkModeRadioButton, ResourceBundle.getBundle("translations/AppearanceSetterPanelBundle").getString("byLocationName")); panel3.add(byLocationDarkModeRadioButton, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final Spacer spacer4 = new Spacer(); panel3.add(spacer4, new GridConstraints(0, 2, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); ButtonGroup buttonGroup; buttonGroup = new ButtonGroup(); buttonGroup.add(disabledDarkModeRadioButton); buttonGroup.add(alwaysDarkModeRadioButton); buttonGroup.add(byTimeDarkModeRadioButton); buttonGroup.add(byLocationDarkModeRadioButton); buttonGroup.add(byTimeDarkModeRadioButton); } /** * @noinspection ALL */ private void $$$loadLabelText$$$(JLabel component, String text) { StringBuffer result = new StringBuffer(); boolean haveMnemonic = false; char mnemonic = '\0'; int mnemonicIndex = -1; for (int i = 0; i < text.length(); i++) { if (text.charAt(i) == '&') { i++; if (i == text.length()) break; if (!haveMnemonic && text.charAt(i) != '&') { haveMnemonic = true; mnemonic = text.charAt(i); mnemonicIndex = result.length(); } } result.append(text.charAt(i)); } component.setText(result.toString()); if (haveMnemonic) { component.setDisplayedMnemonic(mnemonic); component.setDisplayedMnemonicIndex(mnemonicIndex); } } /** * @noinspection ALL */ private void $$$loadButtonText$$$(AbstractButton component, String text) { StringBuffer result = new StringBuffer(); boolean haveMnemonic = false; char mnemonic = '\0'; int mnemonicIndex = -1; for (int i = 0; i < text.length(); i++) { if (text.charAt(i) == '&') { i++; if (i == text.length()) break; if (!haveMnemonic && text.charAt(i) != '&') { haveMnemonic = true; mnemonic = text.charAt(i); mnemonicIndex = result.length(); } } result.append(text.charAt(i)); } component.setText(result.toString()); if (haveMnemonic) { component.setMnemonic(mnemonic); component.setDisplayedMnemonicIndex(mnemonicIndex); } } /** * @noinspection ALL */ public JComponent $$$getRootComponent$$$() { return contentPane; } private boolean byLocationSettingsValid() { return true; } private boolean byTimeSettingsValid() { final Date beginTime = beginningTimePicker.getSelectedSimpleTime().toDate(); final Date endTime = endingTimePicker.getSelectedSimpleTime().toDate(); return beginTime.after(endTime); } private void createUIComponents() { locationTextField = new PlaceholderTextField(); ((PlaceholderTextField) locationTextField).setPlaceholder( Translation.getTranslatedString("AppearanceSetterPanelBundle", "yourLocation")); } private void initDarkModeButtonGroup() { disabledDarkModeRadioButton.addChangeListener(e -> { if (disabledDarkModeRadioButton.isSelected()) { byTimePanel.setVisible(false); byLocationPanel.setVisible(false); } }); alwaysDarkModeRadioButton.addChangeListener(e -> { if (alwaysDarkModeRadioButton.isSelected()) { byTimePanel.setVisible(false); byLocationPanel.setVisible(false); } }); byTimeDarkModeRadioButton.addChangeListener(e -> { if (byTimeDarkModeRadioButton.isSelected()) { byTimePanel.setVisible(true); byLocationPanel.setVisible(false); } }); byLocationDarkModeRadioButton.addChangeListener(e -> { if (byLocationDarkModeRadioButton.isSelected()) { byTimePanel.setVisible(false); byLocationPanel.setVisible(true); } }); } private void initDefaultsForPanels() { byTimePanel.setVisible(false); byLocationPanel.setVisible(false); } private void initGui() { setLayout(new GridLayout()); add(contentPane); initTimePickers(); initDefaultsForPanels(); initLocationUI(); initDarkModeButtonGroup(); validateSimpleTimePanels(); translate(); } private void initLocationUI() { locationComboBox.setRenderer(new DefaultListCellRenderer() { @Override public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { if (value instanceof Location) { return super.getListCellRendererComponent(list, ((Location) value).getAddress(), index, isSelected, cellHasFocus); } return super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); } }); locationTextField.getDocument().addDocumentListener(new DocumentListener() { String locationName = null; Timer timer = new Timer(1000, e -> { if (locationName != null && !locationName.isEmpty()) { final String encodedLocationName = new String(this.locationName.getBytes( Charset.forName(ApplicationConstants.DEFAULT_APPLICATION_CHARSET))); LocationManager locationManager = new LocationManager(encodedLocationName); Location[] locations; try { locations = locationManager.getLocations(); } catch (IOException e1) { log.warn("Could not get locations for name: {}", this.locationName, e1); locations = new Location[0]; } updateLocationVerificationStatus(locations.length > 0); DefaultComboBoxModel<Location> model = new DefaultComboBoxModel<>(locations); locationComboBox.setModel(model); } else { updateLocationVerificationStatus(false); } }); @Override public void changedUpdate(DocumentEvent e) { /*NOP*/ } @Override public void insertUpdate(DocumentEvent e) { updateData(); } @Override public void removeUpdate(DocumentEvent e) { updateData(); } private void updateData() { locationComboBox.setModel(new DefaultComboBoxModel<>()); locationName = locationTextField.getText(); if (locationName.isEmpty()) { updateLocationVerificationStatus(false); } else { setLocationStatusLabelLoading(); } timer.setRepeats(false); timer.restart(); } }); locationTextField.addKeyListener(FrameUtils.getSmartKeyAdapter(locationComboBox)); } private void initTimePickers() { beginningTimePicker.setTime(SettingsConstants.DARK_MODE_BEGINNING_DEFAULT_TIME); endingTimePicker.setTime(SettingsConstants.DARK_MODE_ENDING_DEFAULT_TIME); final ValueChangeListener validate = e -> { validateSimpleTimePanels(); }; beginningTimePicker.addValueChangeListener(validate); endingTimePicker.addValueChangeListener(validate); } private void loadByLocationSettings(DarkModeValue realDarkModeValue) { byLocationDarkModeRadioButton.setSelected(true); locationTextField.setText(realDarkModeValue.getLocation().getAddress()); locationComboBox.setSelectedItem(realDarkModeValue.getLocation()); } private void loadByTimeSettings(DarkModeValue realDarkModeValue) { byTimeDarkModeRadioButton.setSelected(true); final Date startTime = realDarkModeValue.getNext().getStart(); final Date endTime = realDarkModeValue.getPrevious().getEnd(); final int startHour = startTime.toInstant().atZone(ZoneId.systemDefault()).getHour(); final int startMinute = startTime.toInstant().atZone(ZoneId.systemDefault()).getMinute(); final int endHour = endTime.toInstant().atZone(ZoneId.systemDefault()).getHour(); final int endMinute = endTime.toInstant().atZone(ZoneId.systemDefault()).getMinute(); beginningTimePicker.setTime(new SimpleTime(startHour, startMinute)); endingTimePicker.setTime(new SimpleTime(endHour, endMinute)); } @Override public void loadSettings() { final Object object = PreferencesManager.getRealDarkMode(); if (object instanceof Boolean) { Boolean b = (Boolean) object; if (b) { alwaysDarkModeRadioButton.setSelected(true); } else { disabledDarkModeRadioButton.setSelected(true); } } else if (object instanceof DarkModeValue) { final DarkModeValue realDarkModeValue = (DarkModeValue) object; if (realDarkModeValue.getNext() != null && realDarkModeValue.getPrevious() != null) { loadByTimeSettings(realDarkModeValue); } else if (realDarkModeValue.getLocation() != null) { loadByLocationSettings(realDarkModeValue); } } } private void saveByTimeSettings() { final String begins = beginningTimePicker.getSelectedSimpleTime().getHour() + ":" + beginningTimePicker.getSelectedSimpleTime().getMinute(); final String ends = endingTimePicker.getSelectedSimpleTime().getHour() + ":" + endingTimePicker.getSelectedSimpleTime().getMinute(); final String value = begins + ";" + ends; PreferencesManager.setDarkMode(value); log.info("Saving settings: dark mode: {}", value); } @Override public void saveSettings() { if (disabledDarkModeRadioButton.isSelected()) { final String value = PreferencesManager.DARK_MODE.DISABLED.toString(); PreferencesManager.setDarkMode(value); log.info("Saving settings: dark mode: {}", value); } else if (alwaysDarkModeRadioButton.isSelected()) { final String value = PreferencesManager.DARK_MODE.ALWAYS.toString(); PreferencesManager.setDarkMode(value); log.info("Saving settings: dark mode: {}", value); } else if (byTimeDarkModeRadioButton.isSelected()) { if (byTimeSettingsValid()) { saveByTimeSettings(); } else { final SimpleTime begins = beginningTimePicker.getSelectedSimpleTime(); final SimpleTime ends = endingTimePicker.getSelectedSimpleTime(); log.warn("Saving settings: dark mode: declined, settings set are not valid - begin time: {} is not after ending time: {}", begins, ends); } } else { if (byLocationSettingsValid()) { final Location location = ((Location) locationComboBox.getSelectedItem()); if (location != null) { String value = location.getAddress() + "|" + location.getLongitude() + ";" + location.getLatitude(); PreferencesManager.setDarkMode(value); log.info("Saving settings: dark mode: {}", value); } else { log.warn("Saving settings: dark mode: could not get location: null"); } } } } private void setLocationStatusLabelLoading() { try { ImageIcon imageIcon; if (PreferencesManager.isDarkModeEnabledNow()) { imageIcon = new ImageIcon(AppearanceSetterPanel.class.getResource("/images/loadingDark.gif")); } else { imageIcon = new ImageIcon(AppearanceSetterPanel.class.getResource("/images/loading.gif")); } locationStatusLabel.setIcon(imageIcon); } catch (Exception e) { /*NOP*/ } } @Override public void translate() { Translation translation = new Translation("AppearanceSetterPanelBundle"); darkModeLabel.setText(translation.getTranslatedString("darkMode")); disabledDarkModeRadioButton.setText(translation.getTranslatedString("disabledName")); alwaysDarkModeRadioButton.setText(translation.getTranslatedString("alwaysName")); byTimeDarkModeRadioButton.setText(translation.getTranslatedString("byTimeName")); byLocationDarkModeRadioButton.setText(translation.getTranslatedString("byLocationName")); } private void updateLocationVerificationStatus(boolean b) { if (b) { locationStatusLabel.setIcon(new ImageIcon(getClass().getResource("/images/emojiSuccess16.png"))); } else { locationStatusLabel.setIcon(new ImageIcon(getClass().getResource("/images/emojiCross16.png"))); } } private void updateTimeVerificationStatus(boolean b) { if (b) { timeStatusLabel.setIcon(new ImageIcon(getClass().getResource("/images/emojiSuccess16.png"))); } else { timeStatusLabel.setIcon(new ImageIcon(getClass().getResource("/images/emojiCross16.png"))); } } private void validateSimpleTimePanels() { final SimpleTime begin = beginningTimePicker.getSelectedSimpleTime(); final SimpleTime end = endingTimePicker.getSelectedSimpleTime(); AppearanceSetterPanel.this.updateTimeVerificationStatus(!begin.equals(end)); } }
java
package com.core.rerest.models; import com.core.rerest.enums.RestResponseResolutionStrategy; import javafx.util.Pair; import lombok.Data; import lombok.extern.slf4j.Slf4j; import org.springframework.http.ResponseEntity; import org.springframework.scheduling.annotation.Async; import java.util.HashMap; import java.util.Map; import java.util.concurrent.CompletableFuture; @Data @Slf4j @SuppressWarnings("ALL") public class ActiveRestRequestsContainer { private final Map<String,RestResponseSubscriptionList> requestToSubscriptionListMap = new HashMap<>(); public synchronized Pair<RestResponseResolutionStrategy,CompletableFuture<ResponseEntity<?>>> registerRequestAsObserverAndProvideResponseResolutionStrategy(final String stringifiedRequestEntity) { final CompletableFuture<ResponseEntity<?>> completableFuture = new CompletableFuture<>(); if (requestToSubscriptionListMap.containsKey(stringifiedRequestEntity)) { requestToSubscriptionListMap.get(stringifiedRequestEntity).registerObserver( completableFuture ); return new Pair<>(RestResponseResolutionStrategy.AWAIT_RESPONSE,completableFuture); } log.debug("Inserting New Observable List. Current State : {}",requestToSubscriptionListMap); requestToSubscriptionListMap.put( stringifiedRequestEntity, RestResponseSubscriptionList.registerFirstObserver(completableFuture) ); return new Pair<>(RestResponseResolutionStrategy.PROCEED_WITH_INVOCATION,null); } @Async public synchronized void doNotifyAllObservers(final ResponseEntity<?> responseEntity, final String stringifiedRequestEntity) { if(!requestToSubscriptionListMap.containsKey(stringifiedRequestEntity)){ return; } requestToSubscriptionListMap.get(stringifiedRequestEntity).notifyAllObservers(responseEntity); requestToSubscriptionListMap.remove(stringifiedRequestEntity); } @Async public synchronized void doNotifyAllObservers(final Exception restException, final String stringifiedRequestEntity) { if(!requestToSubscriptionListMap.containsKey(stringifiedRequestEntity)){ return; } requestToSubscriptionListMap.get(stringifiedRequestEntity).notifyAllObservers(restException); requestToSubscriptionListMap.remove(stringifiedRequestEntity); } }
java
// Copyright 2016 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // See the License for the specific language governing permissions and // limitations under the License. package expression import ( "bytes" "encoding/json" "fmt" "strings" "github.com/juju/errors" "github.com/pingcap/tidb/ast" "github.com/pingcap/tidb/context" "github.com/pingcap/tidb/evaluator" "github.com/pingcap/tidb/model" "github.com/pingcap/tidb/mysql" "github.com/pingcap/tidb/util/codec" "github.com/pingcap/tidb/util/types" ) // Expression represents all scalar expression in SQL. type Expression interface { fmt.Stringer json.Marshaler // Eval evaluates an expression through a row. Eval(row []types.Datum, ctx context.Context) (types.Datum, error) // Get the expression return type. GetType() *types.FieldType // DeepCopy copies an expression totally. DeepCopy() Expression // HashCode create the hashcode for expression HashCode() []byte } // EvalBool evaluates expression to a boolean value. func EvalBool(expr Expression, row []types.Datum, ctx context.Context) (bool, error) { data, err := expr.Eval(row, ctx) if err != nil { return false, errors.Trace(err) } if data.IsNull() { return false, nil } i, err := data.ToBool() if err != nil { return false, errors.Trace(err) } return i != 0, nil } // Column represents a column. type Column struct { FromID string ColName model.CIStr DBName model.CIStr TblName model.CIStr RetType *types.FieldType ID int64 // Position means the position of this column that appears in the select fields. // e.g. SELECT name as id , 1 - id as id , 1 + name as id, name as id from src having id = 1; // There are four ids in the same schema, so you can't identify the column through the FromID and ColName. Position int // IsAggOrSubq means if this column is referenced to a Aggregation column or a Subquery column. // If so, this column's name will be the plain sql text. IsAggOrSubq bool // only used during execution Index int Correlated bool data *types.Datum } // Equal checks if two columns are equal func (col *Column) Equal(expr Expression) bool { if newCol, ok := expr.(*Column); ok { return newCol.FromID == col.FromID && newCol.Position == col.Position } return false } // String implements Stringer interface. func (col *Column) String() string { result := col.ColName.L if col.TblName.L != "" { result = col.TblName.L + "." + result } if col.DBName.L != "" { result = col.DBName.L + "." + result } return result } // MarshalJSON implements json.Marshaler interface. func (col *Column) MarshalJSON() ([]byte, error) { buffer := bytes.NewBufferString(fmt.Sprintf("\"%s\"", col)) return buffer.Bytes(), nil } // SetValue sets value for correlated columns. func (col *Column) SetValue(d *types.Datum) { col.data = d } // GetType implements Expression interface. func (col *Column) GetType() *types.FieldType { return col.RetType } // Eval implements Expression interface. func (col *Column) Eval(row []types.Datum, _ context.Context) (types.Datum, error) { if col.Correlated { return *col.data, nil } return row[col.Index], nil } // DeepCopy implements Expression interface. func (col *Column) DeepCopy() Expression { if col.Correlated { return col } newCol := *col return &newCol } // HashCode implements Expression interface. func (col *Column) HashCode() []byte { var bytes []byte bytes, _ = codec.EncodeValue(bytes, types.NewStringDatum(col.FromID), types.NewIntDatum(int64(col.Position))) return bytes } // Schema stands for the row schema get from input. type Schema []*Column // String implements fmt.Stringer interface. func (s Schema) String() string { strs := make([]string, 0, len(s)) for _, col := range s { strs = append(strs, col.String()) } return "[" + strings.Join(strs, ",") + "]" } // DeepCopy copies the total schema. func (s Schema) DeepCopy() Schema { result := make(Schema, 0, len(s)) for _, col := range s { newCol := *col result = append(result, &newCol) } return result } // FindColumn finds an Column from schema for a ast.ColumnName. It compares the db/table/column names. // If there are more than one result, it will raise ambiguous error. func (s Schema) FindColumn(astCol *ast.ColumnName) (*Column, error) { dbName, tblName, colName := astCol.Schema, astCol.Table, astCol.Name idx := -1 for i, col := range s { if (dbName.L == "" || dbName.L == col.DBName.L) && (tblName.L == "" || tblName.L == col.TblName.L) && (colName.L == col.ColName.L) { if idx == -1 { idx = i } else { return nil, errors.Errorf("Column %s is ambiguous", col.String()) } } } if idx == -1 { return nil, nil } return s[idx], nil } // InitIndices sets indices for columns in schema. func (s Schema) InitIndices() { for i, c := range s { c.Index = i } } // RetrieveColumn retrieves column in expression from the columns in schema. func (s Schema) RetrieveColumn(col *Column) *Column { index := s.GetIndex(col) if index != -1 { return s[index] } return nil } // GetIndex finds the index for a column. func (s Schema) GetIndex(col *Column) int { for i, c := range s { if c.FromID == col.FromID && c.Position == col.Position { return i } } return -1 } // ScalarFunction is the function that returns a value. type ScalarFunction struct { Args []Expression FuncName model.CIStr // TODO: Implement type inference here, now we use ast's return type temporarily. RetType *types.FieldType Function evaluator.BuiltinFunc ArgValues []types.Datum } // String implements fmt.Stringer interface. func (sf *ScalarFunction) String() string { result := sf.FuncName.L + "(" for i, arg := range sf.Args { result += arg.String() if i+1 != len(sf.Args) { result += ", " } } result += ")" return result } // MarshalJSON implements json.Marshaler interface. func (sf *ScalarFunction) MarshalJSON() ([]byte, error) { buffer := bytes.NewBufferString(fmt.Sprintf("\"%s\"", sf)) return buffer.Bytes(), nil } // NewFunction creates a new scalar function or constant. func NewFunction(funcName string, retType *types.FieldType, args ...Expression) (Expression, error) { _, canConstantFolding := evaluator.DynamicFuncs[funcName] canConstantFolding = !canConstantFolding f, ok := evaluator.Funcs[funcName] if !ok { return nil, errors.Errorf("Function %s is not implemented.", funcName) } if len(args) < f.MinArgs || (f.MaxArgs != -1 && len(args) > f.MaxArgs) { return nil, evaluator.ErrInvalidOperation.Gen("number of function arguments must in [%d, %d].", f.MinArgs, f.MaxArgs) } datums := make([]types.Datum, 0, len(args)) for i := 0; i < len(args) && canConstantFolding; i++ { if v, ok := args[i].(*Constant); ok { datums = append(datums, types.NewDatum(v.Value.GetValue())) } else { canConstantFolding = false } } if canConstantFolding { fn := f.F newArgs, err := fn(datums, nil) if err != nil { return nil, errors.Trace(err) } return &Constant{ Value: newArgs, RetType: retType, }, nil } funcArgs := make([]Expression, len(args)) copy(funcArgs, args) return &ScalarFunction{ Args: funcArgs, FuncName: model.NewCIStr(funcName), RetType: retType, Function: f.F, ArgValues: make([]types.Datum, len(funcArgs))}, nil } //Schema2Exprs converts []*Column to []Expression. func Schema2Exprs(schema Schema) []Expression { result := make([]Expression, 0, len(schema)) for _, col := range schema { result = append(result, col) } return result } //ScalarFuncs2Exprs converts []*ScalarFunction to []Expression. func ScalarFuncs2Exprs(funcs []*ScalarFunction) []Expression { result := make([]Expression, 0, len(funcs)) for _, col := range funcs { result = append(result, col) } return result } // DeepCopy implements Expression interface. func (sf *ScalarFunction) DeepCopy() Expression { newFunc := &ScalarFunction{ FuncName: sf.FuncName, Function: sf.Function, RetType: sf.RetType, ArgValues: make([]types.Datum, len(sf.Args))} newFunc.Args = make([]Expression, 0, len(sf.Args)) for _, arg := range sf.Args { newFunc.Args = append(newFunc.Args, arg.DeepCopy()) } return newFunc } // GetType implements Expression interface. func (sf *ScalarFunction) GetType() *types.FieldType { return sf.RetType } // Eval implements Expression interface. func (sf *ScalarFunction) Eval(row []types.Datum, ctx context.Context) (types.Datum, error) { var err error for i, arg := range sf.Args { sf.ArgValues[i], err = arg.Eval(row, ctx) if err != nil { return types.Datum{}, errors.Trace(err) } } return sf.Function(sf.ArgValues, ctx) } // HashCode implements Expression interface. func (sf *ScalarFunction) HashCode() []byte { var bytes []byte v := make([]types.Datum, 0, len(sf.Args)+1) bytes, _ = codec.EncodeValue(bytes, types.NewStringDatum(sf.FuncName.L)) v = append(v, types.NewBytesDatum(bytes)) for _, arg := range sf.Args { v = append(v, types.NewBytesDatum(arg.HashCode())) } bytes = bytes[:0] bytes, _ = codec.EncodeValue(bytes, v...) return bytes } // Constant stands for a constant value. type Constant struct { Value types.Datum RetType *types.FieldType } // String implements fmt.Stringer interface. func (c *Constant) String() string { return fmt.Sprintf("%v", c.Value.GetValue()) } // MarshalJSON implements json.Marshaler interface. func (c *Constant) MarshalJSON() ([]byte, error) { buffer := bytes.NewBufferString(fmt.Sprintf("\"%s\"", c)) return buffer.Bytes(), nil } // DeepCopy implements Expression interface. func (c *Constant) DeepCopy() Expression { con := *c return &con } // GetType implements Expression interface. func (c *Constant) GetType() *types.FieldType { return c.RetType } // Eval implements Expression interface. func (c *Constant) Eval(_ []types.Datum, _ context.Context) (types.Datum, error) { return c.Value, nil } // HashCode implements Expression interface. func (c *Constant) HashCode() []byte { var bytes []byte bytes, _ = codec.EncodeValue(bytes, c.Value) return bytes } // composeConditionWithBinaryOp composes condition with binary operator into a balance deep tree, which benefits a lot for pb decoder/encoder. func composeConditionWithBinaryOp(conditions []Expression, funcName string) Expression { length := len(conditions) if length == 0 { return nil } if length == 1 { return conditions[0] } expr, _ := NewFunction(funcName, types.NewFieldType(mysql.TypeTiny), composeConditionWithBinaryOp(conditions[:length/2], funcName), composeConditionWithBinaryOp(conditions[length/2:], funcName)) return expr } // ComposeCNFCondition composes CNF items into a balance deep CNF tree, which benefits a lot for pb decoder/encoder. func ComposeCNFCondition(conditions []Expression) Expression { return composeConditionWithBinaryOp(conditions, ast.AndAnd) } // ComposeDNFCondition composes DNF items into a balance deep DNF tree. func ComposeDNFCondition(conditions []Expression) Expression { return composeConditionWithBinaryOp(conditions, ast.OrOr) } // Assignment represents a set assignment in Update, such as // Update t set c1 = hex(12), c2 = c3 where c2 = 1 type Assignment struct { Col *Column Expr Expression } // splitNormalFormItems split CNF(conjunctive normal form) like "a and b and c", or DNF(disjunctive normal form) like "a or b or c" func splitNormalFormItems(onExpr Expression, funcName string) []Expression { switch v := onExpr.(type) { case *ScalarFunction: if v.FuncName.L == funcName { var ret []Expression for _, arg := range v.Args { ret = append(ret, splitNormalFormItems(arg, funcName)...) } return ret } } return []Expression{onExpr} } // SplitCNFItems splits CNF items. // CNF means conjunctive normal form, e.g. "a and b and c". func SplitCNFItems(onExpr Expression) []Expression { return splitNormalFormItems(onExpr, ast.AndAnd) } // SplitDNFItems splits DNF items. // DNF means disjunctive normal form, e.g. "a or b or c". func SplitDNFItems(onExpr Expression) []Expression { return splitNormalFormItems(onExpr, ast.OrOr) }
go
<filename>Server/prediction/admin.py<gh_stars>0 from django.contrib import admin from prediction.models import product from prediction.models import price # Register your models here. admin.site.register(product) admin.site.register(price)
python
- Movies Entertainment Live Blog: SRK's Jawan Prevue Shatters Records, Ananya Panday CONFIRMS Dating Aditya Roy Kapur? - Travel Have you been to Vishveshwaraya Falls in Mandya yet? If not, this is the best time! Paneer or cottage cheese is one of the healthiest dairy products. For vegetarians, paneer is the most important ingredient. They love to add this dairy product in several dishes. Paneer is used to celebrate Indian festivals. If you love paneer and want to try a new recipe to surprise your brother this Rakhi, then check out the procedure to make paneer baby corn masala. It is sweet, spicy and filling. You can make this recipe within 30 minutes before you meet your brother. - Paneer- 1 cup (cubes) - Onions- 2 (chopped) - Tomato- 2 (grated) - Baby corns- 5-7 (sliced) - Green chillies- 3-4 (sliced) - Blend green chillies, red chillies and onion to make a smooth paste. Add little water to make it smooth. - Heat oil in a skillet. Add cumin seeds and when they start popping, add the ginger garlic paste. Mix it on medium flame for few seconds and then add the blended paste. Saute for 1 minute. - Add tomatoes, salt and turmeric powder. Cook for a minute and then add other spices namely, coriander, red chilli powder and garam masala. Cook on a medium flame for 4-6 minutes. (you can add tomato ketchup to make it sweeter) - Now add the paneer cubes and sliced baby corn. Mix well and cook on low flame for 8-10 minutes. Stir gently so that the paneer cubes do not break. Put the pan off the flame after the gravy is thick and a thin layer of oil forms on the surface. Enjoy this Rakhi dish. Garnish with chopped coriander leaves and serve it hot. If you want, you can fry the paneer and baby corn in oil to make it crisp. Even the gravy can be made by adding little water while cooking paneer and baby corn in the skillet. It all depends on the requirement.
english
AFCAT 2023 registration starts on careerairforce. nic. in and afcat. cdac. in. Indian Air Force (IAF) has invited applications from eligible candidates for Air Force Common Admission Test or AFCAT 2023. AFCAT 2023 registration is hosted on careerairforce. nic. in and afcat. cdac. in. The last date to apply is December 30. Here are more details about the vacancies: AFCAT entry: Ground Duty (Non Technical) for Men: Ground Duty (Non-Technical) for Women: The engagement period for Flying Branch (Men and Women) SSC Officers is 14 years. The initial tenure for Ground Duty (Technical & Non-Technical) SSC Officers would be 10 years with the provision of an extension of four years. Eligibility criteria, including educational qualification and age limit are different for each post. Check the notice below for more information.
english
It is a momentous occasion as Vindhyagiri, the sixth Stealth Frigate of Project 17A currently under construction at GRSE, touched the waters of the Hoogly River on Thursday, August 17. The boat was launched by President Droupadi Murmu. The launch of Vindhyagiri adds another chapter to the story of M/s GRSE’s partnership with the Indian Navy. This shipyard has firmly established its reliability through multiple successful conventional launches. As Vindhyagiri joins other ships at the Outfitting Jetty, the focus shifts towards the remaining activities and equipment trials that will culminate in their eventual delivery and commissioning. Project 17A Frigates, an evolution from the Project 17 (Shivalik Class) Frigates, encompass enhanced stealth capabilities, advanced weaponry & sensors, and cutting-edge platform management systems. The ongoing construction of seven Project 17A Frigates at MDL and GRSE underlines the Warship Design Bureau’s ingenuity in crafting technologically advanced vessels for the Indian Navy. This launch reinforces the prowess of India’s indigenous expertise and engineering capabilities, fostering self-reliance, reducing dependence on foreign sources, and nurturing a robust defense industrial foundation. With over 75 percent of Project 17A orders placed with indigenous firms including MSMEs, the project echoes the Government’s vision of ‘AatmaNirbhar Bharat’, fostering economic development, employment opportunities, and ancillary industry growth. In her address, the President expressed satisfaction and admiration for the achievements of the Warship Design Bureau and Naval Teams in realizing the nation’s goal of self-reliance in warship construction. She also praised GRSE for its unwavering dedication to warship production. The shipyard’s contribution has significantly fortified the Indian Navy’s prowess in the Indian Ocean Region, aligning with the vessel’s name, ‘Vindhyagiri’, symbolizing unwavering strength akin to the mountains it’s named after. As Vindhyagiri sets sail, it embodies determination, upholding cherished values. This warship stands as a resounding testament to our dedication to national security and the vision of a prosperous and secure future. Who attended the launch ceremony? The ceremony was attended by CV Ananda Bose, Governor of West Bengal, Ms Mamata Banerjee Chief Minister of West Bengal, Ajay Bhatt Minister of State defence, Admiral R Hari Kumar, Chief of the Naval Staff, and other senior officers from the Indian Navy and Ministry of Defence. Also present were the senior officials of the shipyard and other stakeholders.
english
<gh_stars>0 { "_comment": "DO NOT EDIT MANUALLY - See ../../../README.md", "name": "medeina", "full_name": "imdario/medeina", "owner": "imdario", "private": false, "html_url": "https://github.com/imdario/medeina", "description": "Go HTTP routing tree based on HttpRouter. Inspired by Roda and Cuba.", "fork": false, "url": "https://api.github.com/repos/imdario/medeina", "languages_url": "https://api.github.com/repos/imdario/medeina/languages", "pulls_url": "https://api.github.com/repos/imdario/medeina/pulls{/number}", "created_at": "2014-08-08T21:16:10Z", "updated_at": "2018-07-29T09:59:44Z", "pushed_at": "2015-01-17T21:50:50Z", "homepage": "https://github.com/imdario/medeina", "size": 210, "stargazers_count": 18, "language": "Go", "mirror_url": null, "archived": true, "license": { "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit", "node_id": "MDc6TGljZW5zZTEz" }, "default_branch": "master", "contributors": { "edulix": 1, "imdario": 21 }, "pulls_authors": [ "edulix" ], "languages": { "Go": { "bytes": 30663, "color": "#375eab" } }, "fetched_at": "2018-09-11T20:48:09.315Z" }
json
Oruthee actor Vinayakan issues an apology for his controversial statement on the 'Mee Too Movement' After receiving backlash for his controversial statement on the 'Mee Too Movement', Vinayakan issued an apology. Vinayakan, the lead actor of the recently released film Oruthee, which is receiving a good response from the audiences, has recently made headlines with his controversial statements towards the Me Too Movement. The actor's statements didn't go quite well among the netizens and media. Now after receiving backlash, he has took his Facebook to handle to issue an apology. Vinayakan penned the apology letter by calling the journalist ‘Sister’ and apologized for using certain language if she found it derogatory. He also added in his note that his comments were not targeted on a personal level. NET Worth: ~ 41.7 MN USD (RS 345 cr)
english
Lucknow : Policenama Online – Bahujan Samaj Party (BSP) chief Mayawati on Wednesday said that she would have attended the all-party meeting called by Prime Minister Narendra Modi if it was on Electronic Voting Machines (EVMs). The BSP chief alleged that people’s faith in the EVMs had dwindled to a “worrisome level”. issues like poverty. Mayawati’s statement came hours before the all-party meeting called by Modi in the national capital to discuss several issues, including the idea of “one nation, one election”, celebration of 150 years of Mahatma Gandhi’s birth anniversary this year and 75 years of Independence in 2022. She further said that the stubbornness of conducting elections through electronic voting machines instead of ballot papers is the real threat to the democracy and Constitution of the country. “In these circumstances, if the meeting was convened to deliberate upon the detrimental issue, then I would have definitely attended it,” she added. The “one nation, one election” was part of the Bhartiya Janata Party’s (BJP) Lok Sabha election manifesto. Last August, the Law Commission had recommended holding simultaneous elections to the Lok Sabha and state Assemblies to save public money. In its draft recommendations, the commission had said simultaneous polls, with an exception of Jammu and Kashmir, would help the government of the day focus on “developmental activities rather than electioneering”. It, however, cautioned that holding simultaneous elections was not possible within the existing framework of the Constitution. Last week, the Prime Minister called for widespread debate and consultations on simultaneous elections for the Lok Sabha and Vidhan Sabhas, keeping in view various aspects such as the resulting financial savings and consequent better utilization of resources.
english
module.exports = { //about: require('./aboutModels'), messages: require('./messagesModels'), users: require('./usersModels'), //home: require('./homeController'), friends: require('./friendsModels'), };
javascript
<filename>manuscript/page-22/body.html <div class="leaf "><div class="inner justify"><p class="no-indent ">Would they ever have the means to send him to a public school, to buy him a practice, or start him in business? Besides, with cheek a man always gets on in the world.” <NAME> bit her lips, and the child knocked about the village.</p><p>He went after the labourers, drove away with clods of earth the ravens that were flying about. He ate blackberries along the hedges, minded the geese with a long switch, went haymaking during harvest, ran about in the woods, played hop-scotch under the church porch on rainy days, and at great fetes begged the beadle to let him toll the bells, that he might hang all his weight on the long rope and feel himself borne upward by it in its swing. Meanwhile he grew like an oak; he was strong on hand, fresh of colour.</p><p class=" stretch-last-line ">When he was twelve years old his mother had her own way; he began lessons. The cure took him in hand; but the lessons were so short and irregular that they</p></div> </div>
html
<reponame>CyanSalt/eslint-plugin-galaxy<gh_stars>1-10 import rule from '../../src/rules/non-control-statement-curly' import { ruleTester } from '../tester' ruleTester.run('non-control-statement-curly', rule, { valid: [ { code: ` if (foo) { bar() } `, }, { code: `function demo() { if (foo) return }`, }, { code: `if (foo) throw new Error('An error occurred.')`, }, ], invalid: [ { code: `if (foo) bar()`, errors: [ { messageId: 'non-control-statement-curly' }, ], output: `if (foo) { bar() }`, }, ], })
typescript
<reponame>pporzig/SQE-Damascus import mysql.connector from mysql.connector.pooling import MySQLConnectionPool from shapely import wkt, wkb, affinity, geometry import json dbconfig = {'host': "127.0.0.1", 'port': '3307', 'user': "root", 'password': "<PASSWORD>", 'database': "SQE_DEV" } cnxpool = mysql.connector.pooling.MySQLConnectionPool(pool_name = "mypool", pool_size = 30, **dbconfig) def arrangeArtefactsOfScroll(scroll, side): db = cnxpool.get_connection() cursor = db.cursor() query = """SELECT artefact_position.artefact_position_id, ST_ASWKT(artefact_shape.region_in_sqe_image), ST_X(ST_PointN(ST_ExteriorRing(ST_ENVELOPE(artefact_shape.region_in_sqe_image)), 1)) AS x, ST_Y(ST_PointN(ST_ExteriorRing(ST_ENVELOPE(artefact_shape.region_in_sqe_image)), 1)) AS y, ST_X(ST_PointN(ST_ExteriorRing(ST_ENVELOPE(artefact_shape.region_in_sqe_image)), 3)) AS width, ST_Y(ST_PointN(ST_ExteriorRing(ST_ENVELOPE(artefact_shape.region_in_sqe_image)), 3)) AS height, SQE_image.dpi FROM artefact_position JOIN artefact_position_owner USING (artefact_position_id) JOIN artefact_shape USING(artefact_id) JOIN SQE_image USING(sqe_image_id) JOIN image_catalog USING(image_catalog_id) WHERE artefact_position.scroll_id = '%s' AND image_catalog.catalog_side = '%s' """ cursor.execute(query% (scroll, side)) current_x = 0 max_x = 0 current_width = 0 current_y = 0 master_scale = 1215 for (art_id, poly, x, y, width, height, dpi) in cursor: print('\n') print('Art id: %s' % art_id) if current_y > 10000: current_width = max_x current_x = max_x current_y = 0 scale = master_scale / dpi wkt_poly = wkt.loads(poly) first_translate = affinity.translate(wkt_poly, xoff=-x, yoff=-y) scaled_poly = affinity.scale(first_translate, scale, scale, 1.0, geometry.Point(0, 0, 0)) translated_poly = affinity.translate(scaled_poly, current_x, current_y) # translated_poly = affinity.translate(first_translate, current_x, current_y) translated_wkt_poly = wkt.dumps(translated_poly) wkt_point = wkt.loads('POINT(0 0)') translate_point = affinity.translate(wkt_point, current_x, current_y) translated_wkt_point = wkt.dumps(translate_point) matrix = {"matrix": [[1, 0, current_x], [0, 1, current_y]]} print("Artefact is is %s" % art_id) print("Matrix is %s" % matrix) try: db2 = cnxpool.get_connection() cursor2 = db2.cursor() query2 = """UPDATE artefact_position SET transform_matrix = '%s' WHERE artefact_position_id = %s """ print(query2 % (json.dumps(matrix), int(art_id))) cursor2.execute(query2 % (json.dumps(matrix), int(art_id))) db2.commit() print("The last inserted id was: ", cursor2.lastrowid) cursor2 .close() db2.close() except mysql.connector.Error as error: print(art_id) cursor.close() db.close() print('Current y: %s' % current_y) print('Original poly bounds: %s, %s, %s, %s' % wkt_poly.bounds) print('x: %s, y: %s' % (-x, -y)) print('Poly bound: %s, %s, %s, %s' % first_translate.bounds) print('Height %s' % (translated_poly.bounds[3] - translated_poly.bounds[1])) print('Y shift: %s' % translated_poly.bounds[3]) current_y = translated_poly.bounds[3] if translated_poly.bounds[2] > max_x: max_x = translated_poly.bounds[2] cursor.close() db.close() scrollDB = cnxpool.get_connection() scrollCursor = scrollDB.cursor() scrollQuery = """SELECT DISTINCT scroll_id FROM artefact_shape JOIN SQE_image_to_edition_catalog USING (sqe_image_id) JOIN edition_catalog USING(edition_catalog_id) """ scrollCursor.execute(scrollQuery) for result in scrollCursor.fetchall(): arrangeArtefactsOfScroll(result[0], 0) arrangeArtefactsOfScroll(result[0], 1) scrollCursor.close() scrollDB.close()
python
{ "name": "mankees-tag", "description": "Tags and updates your package.json. Pass version as a parameter", "author": "<NAME> <<EMAIL>>", "version": "0.3.0", "dependencies": { "git-wrapper": "0.1.1" }, "keywords": [ "mankees" ], "repository": { "type": "git", "url": "https://github.com/mankees/tag.git" }, "licenses": [ { "type": "MIT", "url": "https://github.com/mankees/tag/blob/master/LICENSE" } ] }
json
/** @RequestAction(LoadPilotListAction.class) * Copyright 2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package ph.rye.flight.controller.action; import javax.ejb.EJB; import ph.rye.flight.controller.AirplaneList; import ph.rye.flight.model.Airplane; import ph.rye.flight.service.AirplaneBean; import ph.rye.saf.EventAction; import ph.rye.saf.SafConstant; import ph.rye.saf.ann.AcceptEvent; import ph.rye.saf.ann.Param; /** * @author royce * */ @AcceptEvent(SafConstant.Button.SAVE) public class AirplaneSaveAction extends EventAction { /** */ private static final long serialVersionUID = 1L; @Param private String planeMake; @Param private String modelName; @Param private Integer seatingCapacity; @EJB private AirplaneBean airplaneBean; /** {@inheritDoc} */ @Override public void execute() { final Airplane newAirplane = new Airplane(); newAirplane.setPlaneMake(planeMake); newAirplane.setModelName(modelName); newAirplane.setSeatingCapacity(seatingCapacity); airplaneBean.addEntity(newAirplane); if (isCreate()) { addMessageSuccess( String.format( "Airplane with id %s has been successfully created", newAirplane.getId())); redirect(AirplaneList.URL); } } }
java
{ "manifest_version": 2, "name": "웨않되 - 맞춤법 검사기", "version": "1.0.1", "description": "웨일 브라우저용 한글 맞춤법 검사기 (feat. NAVER 맞춤법 검사기)", "icons": { "16": "image/icons/contextmenu_logo_16.png", "32": "image/icons/contextmenu_logo_32.png", "48": "image/icons/application_logo_48.png", "64": "image/icons/application_logo_64.png", "128": "image/icons/application_logo_128.png" }, "sidebar_action": { "default_page": "sidebar.html", "default_icon": { "32": "image/icons/sidebar_logo_32.png", "48": "image/icons/sidebar_logo_48.png", "64": "image/icons/sidebar_logo_64.png" }, "default_title": "웨않되 맞춤법검사", "use_navigation_bar": false, "mobile_user_agent": true }, "background": { "scripts": [ "js/background.js" ] }, "content_scripts": [ { "matches": ["https://m.search.naver.com/search.naver?from=whale-grammar&query=*"], "css": ["css/content-script.sidebar.css"], "js": ["js/content-script.sidebar.js", "js/content-script.sidebar.iframe.js"], "all_frames": true, "run_at": "document_start" }, { "matches": ["<all_urls>"], "css": ["css/content-script.inspection.css"], "js": ["js/content-script.inspection.js"], "run_at": "document_start", "all_frames": true, "match_about_blank": true } ], "permissions": [ "https://m.search.naver.com/", "tabs", "storage", "contextMenus", "<all_urls>" ], "web_accessible_resources": [ "image/default.png", "image/contest_logo.png", "image/naver_logo.png", "image/power.svg", "image/loading.svg", "image/caution.svg", "image/error.svg", "css/grammar-extension.element.css" ], "content_security_policy": "script-src 'self' 'unsafe-eval' https://m.search.naver.com; object-src 'self'", "commands" : { "grammar_check": { "suggested_key": { "default": "Ctrl+Shift+X", "mac": "Command+Shift+X" }, "description": "start grammar check" } } }
json
package org.devon.data.structures; public class SkipNode<E> { private E data; private SkipNode[] forwards; private int maxLevel; public SkipNode(E data, int maxLevel) { this.data = data; this.maxLevel = maxLevel; this.forwards = new SkipNode[maxLevel]; } public E getData() { return data; } public void setData(E data) { this.data = data; } public SkipNode[] getForwards() { return forwards; } public void setForwards(SkipNode[] forwards) { this.forwards = forwards; } public int getMaxLevel() { return maxLevel; } public void setMaxLevel(int maxLevel) { this.maxLevel = maxLevel; } }
java
<filename>components/core/Layout.js import React from 'react'; import Head from 'next/head'; import Link from 'next/link'; import PropTypes from 'prop-types'; import { motion } from 'framer-motion'; import styles from '../../styles/components/Layout.module.css'; export default function Layout({ title, children }) { var pageName = title ? `${title} | Rickipedia` : 'Rickipedia'; return ( <motion.div className={styles.container} initial="pageInitial" animate="pageAnimate" variants={{ pageInitial: { opacity: 0 }, pageAnimate: { opacity: 1 } }}> <Head> <title>{pageName}</title> <link rel="icon" href="/icons/favicon.ico" /> </Head> <main>{children}</main> <footer> <Link href="https://www.adultswim.com/" passHref> <img src="/adult-swim.svg" alt="Vercel Logo" className={styles.logo} /> </Link> </footer> </motion.div> ); } Layout.propTypes = { title: PropTypes.string, children: PropTypes.node.isRequired };
javascript
It's Samantha Akkineni's birthday today and the star actress is in a celebratory mood with her husband and 'Majili' co-star Naga Chaitanya. As the clock struck 12 in the mid-night, Chay had his cute wife cut a chocolate cake baked by him. The 'Oh Baby' actress did so after praying to God. "Family (no points for guessing what I am praying for)," Sam said, posting a pic of her praying. Sam, who loves her pet dog, made it a point to post a pic of it on Instagram on the special occasion. Just the other day, she clicked Chay as the pet slept in his lap. "Perfection (especially the snoring)," she wrote. Follow us on Google News and stay updated with the latest!
english
{ "main.header.title": "立即开始一场神奇的旅行吧!", "main.header.welcome": "欢迎,", "main.header.personalInfo": "个人信息", "main.header.changePassword": "<PASSWORD>", "main.header.logout": "注销", "main.header.logout.title": "退出确认", "main.header.logout.content": "您是否要退出系统?" }
json
Bharti Walmart, the joint venture between Bharti Enterprises and America's Wal-Mart Stores, on Thursday said it would hire over 1,000 people by this year-end as part of expansion of its wholesale business. The company is planning to open 60 retail stores by the end of 2010 to take the number to 140. “The additional manpower will be deployed at our cash-and-carry stores. We will be adding 60 new stores and this manpower will help in streamlining our operations,” Bharti Walmart Managing Director and CEO Raj Jain told journalists here. Bharti Enterprises and Wal-Mart Stores entered into a joint venture in August 2007. Bharti Walmart also opened its second training centre in Delhi on Thursday in association with the Delhi Government. “Our mission is to provide productive job-oriented vocational skills to address the employability issue in Delhi and adjoining townships. We have received tremendous response from our training centre in Amritsar, and we hope to replicate this here,” Mr. Jain added.
english
{ "repo": "https://github.com/richardjkendall/validate-jwt-api.git", "branch": "master", "blah": "blah" }
json
{"bootstrap-native-v4.js":"sha256-NJr/GLBmqOLWV4ZWE+1+rmXfwfcJcPpCaVZ2gURf2d0=","bootstrap-native-v4.min.js":"sha256-RD3nVy1D0S4xfj5DyNqAHYDt+mBIW9E+DGacFg7961c=","bootstrap-native.js":"sha256-LgFRTDOw1gF0u1I1Ev0CXuFBuGzW1GdUKsgtuvlOkQ0=","bootstrap-native.min.js":"sha256-kt/YqgPVyvFduJQmCQ2bBW7rVhyh96zFnwprMtI7E7E=","polyfill.js":"sha256-OyP7OLS8VF+WCAH3W3ODwzd14M+U16VIC4jLD/be02A=","polyfill.min.js":"sha256-H+ETBMCg8Q8bUrUF6YAtdAtyAJwmElEkpRePbFY3GjA="}
json
Sharad Deep is a versatile sports journalist, who loves writing on cricket and Olympic sport. He has played cricket at the university level and has been writing for Hindustan Times since 1997. IT WAS a perfect send-off for the Asiad-bound Indian women's hockey team under the leadership of Jyoti Kullu, who appeared confident of doing well in the Doha. LONG BEFORE the much-publicised Abhijeet Kale-Kiran More selection-for-bribe issue could hit the headlines, the selection process in the Uttar Pradesh Cricket Association was rocked by serious charges against Gopal Sharma, Sashikant Khandekar and Fasahat Ali. THE ONGOING scramble for Uttar Pradesh team? s top job for the upcoming Ranji Trophy season took a dramatic turn on Friday with one of the senior-most members of the team Ashish Winston Zaidi putting his foot forward for the captaincy of the team. IT WAS rather a low key affair when Tahir Abbas-led Uttar Pradesh boys laid their hands on their maiden Under-22 Col CK Nayudu Trophy in March this year on the basis of the first innings lead against Bengal here, after UP men had won the coveted Ranji Trophy title for the first time just a few days back. THE CONTROVERSIAL Sports Act-2005 has put the State Government on the back foot, as cancellation looms large over five major events, including the country? s biggest prize money race, the Indira Marathon. The UP Amateur Athletics Association has so far not given its permission to the UP Sports Directorate to hold the Indira Marathon on November 19 in Allahabad, as per directives of the Athletics Federation of India. WHO IS Piyush Chawla? This was the common question of cricket lovers till February last. But, once the young leggie removed the bails of master blaster Sachin Tendulkar with a quicker googly during the NKP Salve Challenger Trophy at the Chepauk Stadium, his name was on the lips of everyone. UP? s very own ? pitch panthers? They can gorge out the guts from any opposition. They have the ? teeth? to rip apart any opponent. And, all these panthers of the pitch have been groomed in Uttar Pradesh! TUESDAY TURNED out to be a big day for Uttar Pradesh as six of its cricketers were chosen for the four-day Challenger Series, beginning on October 1 in Chennai. IT IS perhaps the worst of times for sports and sportspersons in Uttar Pradesh. An ego clash over the Sports Act-2005 has brought things to such a pass that it appears neither the State Government, nor the State Sports Associations want sports activities to take place, leaving lakhs of sportspersons in the lurch. The government wants the associations to blink first and implement the controversial Sports Act-2005. But the associations want the government to scrap the Act. Even as a kid, Mukuljit Singh wanted to handle the rifle that belonged to his father Raja Satayjit Singh? ace trap-shooter of his days. So, the day, Mukuljit was ? allowed? to touch the ? beauty? , he was ready. Within a few minutes and in a few tries, he smashed the target to pieces. THE SPAT between the State Government and the sports associations, including the Uttar Pradesh Olympic Association and its parent body Indian Olympic Association, over the controversial Sports Act-2005 is likely to end at an ? all-party? meet called here on September 5. If this happens, the chances of Uttar Pradesh holding the 2009 National Games, withdrawn last month by the IOA Executive Committee, may once again be there. WHAT IS common among national-level junior shuttlers Pawan Kumar, Jai Singh and Dharamveer? All three are sons of Class IV employees of the KD Singh ? Babu? Stadium. They developed fascination for the sport by occasionally accompanying their fathers to the badminton hall. Get married first then, I will allow you to go to the Munich Olympics! That? s what his father NS Chauhan told him in 1972. Vijay Singh agreed. But while he was getting married, and during the days leading up to it, big dreams were on his mind. He left for Munich two days after his marriage and finished 17th among 164 athletes in the decathlon. Only 102 actually completed that event. Get married first then, I will allow you to go to the Munich Olympics! That? s what his father NS Chauhan told him in 1972. Vijay Singh agreed. But while he was getting married, and during the days leading up to it, big dreams were on his mind. He left for Munich two days after his marriage and finished 17th among 164 athletes in the decathlon. Only 102 actually completed that event. Final ball gives bettors a kick! THE BETTING genie is out of the bottle again with Zinedine Zidane? s France and Alessandro Del Piero? s Italy making it to the FIFA World Cup final in Germany. City punters have swung into action for the July 9 summit clash in Berlin. Though the Special Task Force has no report about World Cup betting in any part of the State, soccer fans and punters alike have reportedly staked huge money on the mega final. Why is India off the goal? ASK GOPAL Mullick about Team India star S Sreesanth, he will simply shake his head in no. But, he will quickly tell you the details of any international soccer player as soon as you ask his name. It keeps your eyeballs rolling! SWAMI VIVEKNAND? s quote? ? ? It would be better to play football than read the Gita? you will definitely win the world by kicking the ball up high in the sky. The higher the kick, the higher you rise. ? HE LOOKS like ex-Dutch footballer Ruud Gullit, who dominated the world of soccer during the 1980s and 1990s. He does maintain similar flowing hair! Yes, Ram Prakash Singh began his career in soccer and played upto the sub-junior nationals to help UP finish runners-up in 1980 at Kolkata. But, within two years of diversion towards hockey, he showed his authority in the National Games with a bang, fashioning UP? s scintillating title win in the Sub-Junior Nationals at Kolkata in 1982. Time to kick the ball high! SOMENDRA NATH Chaudhury appears quite upset over the present condition of football in the country as well as in the State Capital. He wants everyone should come together to help upgrade the soccer at least in the city. Where? s the skill factor nowadays? EIGHTY-FIVE-year-old Prafull Kumar Dutta doesn? t like the current trends catching on in the ? footballing world? but he? s cheering for defending champions Brazil in this year? s World Cup, beginning from June 9, in Germany. QUOTA GENIE is ? out of the bottle? again for the sportspersons of the State as the government has reportedly ordered for immediate implementation of the quota system in the admissions of Guru Gobind Singh College (Lucknow) and Vir Bahadur Singh Sports College (Gorakhpur). And if it? s implemented, then 50 per cent seats in both the sports colleges would be reserved for OBC (27 per cent), SC (21 per cent) and ST (2 per cent). RED T-SHIRT. Jeans. White shoes. But, no bat! And his female guests shout, ? he looks good and plays well too. ? Young Shaira gushed about Team India star Suresh Raina, when she met the stunning young Raina at a function on Thursday night. Another teenager, Sangeeta, lauded the game (and of course, looks! ) of the new charmer boy in the Indian team. Pramod Kumar Gupta? s biggest dream was to play the Gentlemen? s Game at top-level and he even made it to the 20-member Uttar Pradesh Ranji Trophy team in 1985 under the captaincy of Sunil Chaturvedi, but couldn? t make it to the Playing XI. But life gave his passion a special twist. WOULD YOU spend Rs 3,000 in five minutes on a certain gentleman with the name Park Chu Young? If you squint your eyes and mumble something inaudible then, count yourself of a generation past! Old enough to be ? man of the match? ? ARE YOU old enough to ride this bike,? former England skipper Mike Atherton asked Suresh Raina jovially soon after the young UPite was named ? man of the match? for his scintillating performance which helped India take a 2-0 lead in the ODI series against England at Faridabad on Friday. LATE ON Sunday night, another shameful chapter was added to Indian cricket? s burgeoning roster of shame. An unseemly fight for control of cricket in the state between the Uttar Pradesh government and the UP Cricket Association resulted in the Ranji Trophy one-day final between UP and Railways, slated to be held here on Tuesday, being shifted to Mumbai. FOR AMARJEET Narang, the day began with a ? breaking news? . Her son Gagan Narang (extreme left) rang her up at 6 in the morning on Friday to tell her about his golden achievement in the 18th Commonwealth Games at Melbourne (Australia). THURSDAY TURNED out to be yet another golden day in the history of Uttar Pradesh cricket when four of its players Mohd Kaif, Suresh Raina, Rudra Pratap Singh and young leggie Piyush Chawla made it to the Indian team for the first cricket Test against England beginning in Nagpur on March 1. Piyush Chawla has revived leg spin, almost a dying art in today? s cricket. The 16-year old prodigy stood out in the Challenger Trophy and his terrific display gives rise to hope that India may have a player ready to take over when Anil Kumble calls it a day. Even before becoming skipper, Ravikant Shukla had promised of the Indian team? s fascinating show against Australia in the one-day series a few months ago.
english
<gh_stars>1-10 body{ background-color: rgb(3, 3, 44); height: 100vh; margin: 0; background-image: url(img/star.jpeg) } header b { font-size: 30pt; } header{ height: 10vh; width: 100vw; background-color: rgba(0, 0, 0, 0.411); align-items: center; justify-content: center; display: flex; flex-direction: column; font-family: sans-serif; animation: 2s infinite; animation-name: sobe; } header h1{ color: white; margin: 0; } section{ height: 90vh; width: 100vw; justify-content: space-evenly; align-items: center; flex-direction: column; display: flex; } button{ font-size: 30pt; border-radius: 10px; height: 10vh; width: 80vw; background-color: rgba(255, 255, 255, 0.171); } #btnV{ font-size: 20pt; border-radius: 10px; height: 10vh; width: 30vw; background-color: #44074441; } .tela2{ height: 100vh; display: none; background: url(img/ezgif.com-video-to-gif.gif); } .planet{ animation: 2s infinite; animation-name: sobe; width: auto; height: auto; } .info{ margin-top: 20px; height: 40vh; width: 90vw; background-color: rgba(255, 255, 255, 0.226); border-radius: 20px; justify-content: center; align-items: center; flex-direction: column; display: flex; padding: 0px 10px; font-size: 17pt; font-family: sans-serif; } @keyframes sobe{ 0% { transform: translateY(0px); } 50% { transform: translateY(20px); } 100% { transform: translateY(0px); } }
css
<filename>src/components/Notification/components/MySnackbarContentWrapper.styles.js import { makeStyles } from '@material-ui/core/styles'; import { colors } from '@material-ui/core'; export const useStyles = makeStyles(theme => ({ default: { backgroundColor: theme.palette.primary.main, color: theme.palette.primary.contrastText, }, success: { backgroundColor: colors.green[600], color: theme.palette.common.white, }, info: { backgroundColor: colors.lightBlue[600], color: theme.palette.common.white, }, warning: { backgroundColor: colors.orange[900], color: theme.palette.common.white, }, error: { backgroundColor: theme.palette.error.main, color: theme.palette.error.contrastText, }, icon: { fontSize: 20, }, iconVariant: { opacity: 0.9, marginRight: theme.spacing(1), }, message: { display: 'flex', alignItems: 'center', color: '#fff', }, }));
javascript
@import url("tomswan-inc.css"); body { width: 75%; float: right; margin-right: 12.5% } #footer-text { color: white; text-align: center } #footer-text a { text-decoration: none; } #footer-text a:link { color: yellow; } #footer-text a:visited { color: yellow; } #footer-text a:hover { text-decoration: underline; } #footer-text a:active { text-decoration: underline; }
css
Actors Mithila Palkar and Dhruv Sehgal inform that they share a very sweet friendship. Little Things Season 4 is around the corner, and in an exclusive conversation with Pinkvilla, it’s stars Mithila Palkar and Dhruv Sehgal talk about their friendship, which has grown over the years. “From the time we barely knew each other, I remember in the first season we didn’t really speak much. It was also a small shoot, 12-13 days. I was also figuring a lot of things out, and she had just come from shooting Muramba. We didn’t speak much then, but over the years, because we have spent so much time together, you get to know the other person. It's a nice cute little friendship, like we describe it. Lot of respect and mutual admiration, and a lot of care for each other,” shares Dhruv. However, Mithila is quick to add that they aren’t regularly in touch. “You would imagine that these guys have been working together for many years, they must be best friends. We aren’t, and we know that. Yet there is a very sweet friendship that we share. We have each other's back, we know that we will be there for each other, we love and respect each other and care for each other. It’s a very sweet friendship, in fact I cherish this a lot. I am sure even after Little Things, it’s not that we are going to forget about each other. Even if we talk once in six months, we know that one message of, ‘Hi, are you doing fine? How are your parents?’, is enough for us to know that we care. We don’t have to make big strokes about that,” infoms Mithila. The actors also talk about their respective love lives. Dhruv informs that he got married recently. “Two-three months back. Pandemic shaadi. Saste mein nipat gaya, to someone that I knew since college,” he shares. To see the full interview, watch the below video:
english
import copy from src.models.schema_reader import SchemaReader from src.utils.exceptions import PopulatorException from src.utils.dict import dictdeepget, dictdeepset class BaseModel: item_type = None # specify `computed_properties` for normalizer to strip off these fields so that they don't get stored in db computed_properties = set() dot_representations_for_embedding = [ # embed a single object # 'submitted_by' # embed a list of objects # 'segregation.variants[]' ] map_dot_representation_to_item_type = { # item examples below. Note that we're not adding `[]` in suffix for array fields # 'submitted_by': 'user', # 'segregation.variants': 'variant' } def __init__(self, item_type=None): if not self.item_type: self.item_type = item_type self._load_dot_representations_for_embedding() def __str__(self): return self.item_type def __repr__(self): return self.__str__() def did_populate(self, populated_parent): '''Override this method to add custom logic for modifying the fully populated object. Please modify `populated_parent` in-place. ''' def is_array_dot_representation(self, dot_representation: str): return dot_representation.endswith('[]') def get_dot_representation_keys(self): singular_keys = [] plural_keys = [] for dot_representation in self.dot_representations_for_embedding: if self.is_array_dot_representation(dot_representation): plural_keys.append(dot_representation.replace('[]', '')) else: singular_keys.append(dot_representation) return singular_keys, plural_keys def _load_dot_representations_for_embedding(self): if not self.item_type: raise Exception('item_type not set') self.dot_representations_for_embedding = [] self.schema = parent_schema = SchemaReader.get_schema(self.item_type) stack = [('', parent_schema)] while stack: dot_representation, schema = stack.pop() for field_key, field_schema in schema.items(): key = '.'.join([dot_representation, field_key]) if dot_representation else field_key if SchemaReader.is_singular_relational_field(field_schema): item_type, _ = SchemaReader.parse_schema_string(field_schema['$schema']) # e.g. `...submitted_by` self.dot_representations_for_embedding.append(key) self.map_dot_representation_to_item_type[key] = item_type elif SchemaReader.is_plural_relational_field(field_schema): item_type, _ = SchemaReader.parse_schema_string(field_schema['items']['$schema']) # e.g. `...variants[]` key_with_brackets = key + '[]' self.dot_representations_for_embedding.append(key_with_brackets) self.map_dot_representation_to_item_type[key] = item_type elif SchemaReader.is_nested_field(field_schema): # e.g. `...segregation` stack.append((key, field_schema['properties'])) # make sure the list is unique self.dot_representations_for_embedding = list(set(self.dot_representations_for_embedding)) class IndividualModel(BaseModel): item_type = 'individual' computed_properties = set([ 'associatedGroups', 'associatedFamilies' ]) class FamilyModel(BaseModel): item_type = 'family' computed_properties = set([ 'associatedGroups' ]) def did_populate(self, populated_parent: dict): # add associated field for case level evidence fields for individual in populated_parent.get('individualIncluded', []): individual['associatedFamilies'] = [populated_parent['PK']] class GroupModel(BaseModel): def did_populate(self, populated_parent: dict): # add associated field for case level evidence fields for individual in populated_parent.get('individualIncluded', []): individual['associatedGroups'] = [populated_parent['PK']] for family in populated_parent.get('familyIncluded', []): family['associatedGroups'] = [populated_parent['PK']] ITEM_TYPE_TO_MODEL = { 'affiliation': BaseModel, 'annotation': BaseModel, 'article': BaseModel, 'assessment': BaseModel, 'caseControl': BaseModel, 'computational': BaseModel, 'curated-evidence': BaseModel, 'disease': BaseModel, 'evaluation': BaseModel, 'evidenceScore': BaseModel, 'experimental': BaseModel, 'family': FamilyModel, 'functional': BaseModel, 'gdm': BaseModel, 'gene': BaseModel, 'group': GroupModel, 'individual': IndividualModel, 'interpretation': BaseModel, 'pathogenicity': BaseModel, 'population': BaseModel, 'provisional_variant': BaseModel, 'provisionalClassification': BaseModel, 'user': BaseModel, 'variant': BaseModel, 'snapshot': BaseModel, 'vp_save': BaseModel, 'vp_export': BaseModel, 'variantScore': BaseModel, } ITEM_TYPE_TO_MODEL_INSTANCE = {}
python